Skip to content

Commit

Permalink
Update generated SDKs (#746)
Browse files Browse the repository at this point in the history
* build(codegen): updating SDK

* build(codegen): updating SDK

* build(codegen): updating SDK

---------

Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
  • Loading branch information
ct-sdks[bot] authored Jul 2, 2024
1 parent 851ee40 commit 345b09d
Show file tree
Hide file tree
Showing 16 changed files with 577 additions and 7 deletions.
23 changes: 23 additions & 0 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<details>
<summary>Added Property(s)</summary>

- added property `approvalRuleMode` to type `BusinessUnit`
- added property `approvalRuleMode` to type `BusinessUnitDraft`
- added property `approvalRuleMode` to type `Company`
- added property `approvalRuleMode` to type `CompanyDraft`
- added property `approvalRuleMode` to type `Division`
- added property `approvalRuleMode` to type `DivisionDraft`
- added property `metaTitle` to type `ProductTailoringCreatedMessage`
- added property `metaDescription` to type `ProductTailoringCreatedMessage`
- added property `metaKeywords` to type `ProductTailoringCreatedMessage`
Expand Down Expand Up @@ -47,6 +53,8 @@
<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/customers/search`
- added resource `/{projectKey}/customers/search/indexing-status`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
Expand Down Expand Up @@ -77,6 +85,9 @@
<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKey().customers().search().post()`
- added method `apiRoot.withProjectKey().customers().search().head()`
- added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().head()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().post()`
Expand Down Expand Up @@ -118,10 +129,20 @@
<details>
<summary>Added Type(s)</summary>

- added type `BusinessUnitApprovalRuleMode`
- added type `BusinessUnitChangeApprovalRuleModeAction`
- added type `CustomerIndexingProgress`
- added type `CustomerIndexingStatus`
- added type `CustomerPagedSearchResponse`
- added type `CustomerSearchIndexingStatusResponse`
- added type `CustomerSearchRequest`
- added type `CustomerSearchResult`
- added type `BusinessUnitApprovalRuleModeChangedMessage`
- added type `ProductTailoringImageAddedMessage`
- added type `ProductTailoringImagesSetMessage`
- added type `ProductVariantTailoringAddedMessage`
- added type `ProductVariantTailoringRemovedMessage`
- added type `BusinessUnitApprovalRuleModeChangedMessagePayload`
- added type `ProductTailoringImageAddedMessagePayload`
- added type `ProductTailoringImagesSetMessagePayload`
- added type `ProductVariantTailoringAddedMessagePayload`
Expand Down Expand Up @@ -149,6 +170,8 @@
- added type `ProductTailoringSetAssetTagsAction`
- added type `ProductTailoringSetExternalImagesAction`
- added type `ProductTailoringSetImageLabelAction`
- added type `CustomerSearchStatus`
- added type `ProjectChangeCustomerSearchStatusAction`
</details>

<details>
Expand Down
23 changes: 23 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
<details>
<summary>Added Property(s)</summary>

- added property `approvalRuleMode` to type `BusinessUnit`
- added property `approvalRuleMode` to type `BusinessUnitDraft`
- added property `approvalRuleMode` to type `Company`
- added property `approvalRuleMode` to type `CompanyDraft`
- added property `approvalRuleMode` to type `Division`
- added property `approvalRuleMode` to type `DivisionDraft`
- added property `metaTitle` to type `ProductTailoringCreatedMessage`
- added property `metaDescription` to type `ProductTailoringCreatedMessage`
- added property `metaKeywords` to type `ProductTailoringCreatedMessage`
Expand Down Expand Up @@ -43,6 +49,8 @@
<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/customers/search`
- added resource `/{projectKey}/customers/search/indexing-status`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
Expand Down Expand Up @@ -73,6 +81,9 @@
<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKey().customers().search().post()`
- added method `apiRoot.withProjectKey().customers().search().head()`
- added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().head()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().post()`
Expand Down Expand Up @@ -114,10 +125,20 @@
<details>
<summary>Added Type(s)</summary>

- added type `BusinessUnitApprovalRuleMode`
- added type `BusinessUnitChangeApprovalRuleModeAction`
- added type `CustomerIndexingProgress`
- added type `CustomerIndexingStatus`
- added type `CustomerPagedSearchResponse`
- added type `CustomerSearchIndexingStatusResponse`
- added type `CustomerSearchRequest`
- added type `CustomerSearchResult`
- added type `BusinessUnitApprovalRuleModeChangedMessage`
- added type `ProductTailoringImageAddedMessage`
- added type `ProductTailoringImagesSetMessage`
- added type `ProductVariantTailoringAddedMessage`
- added type `ProductVariantTailoringRemovedMessage`
- added type `BusinessUnitApprovalRuleModeChangedMessagePayload`
- added type `ProductTailoringImageAddedMessagePayload`
- added type `ProductTailoringImagesSetMessagePayload`
- added type `ProductVariantTailoringAddedMessagePayload`
Expand Down Expand Up @@ -145,6 +166,8 @@
- added type `ProductTailoringSetAssetTagsAction`
- added type `ProductTailoringSetExternalImagesAction`
- added type `ProductTailoringSetImageLabelAction`
- added type `CustomerSearchStatus`
- added type `ProjectChangeCustomerSearchStatusAction`
</details>

<details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import { executeRequest, QueryParam } from '../../shared/utils/common-types'
import { ApiRequest } from '../../shared/utils/requests-utils'
import { ByProjectKeyCustomersEmailConfirmRequestBuilder } from '../confirm/by-project-key-customers-email-confirm-request-builder'
import { ByProjectKeyCustomersEmailTokenRequestBuilder } from '../email-token/by-project-key-customers-email-token-request-builder'
import { ByProjectKeyCustomersSearchIndexingStatusRequestBuilder } from '../indexing-status/by-project-key-customers-search-indexing-status-request-builder'
import { ByProjectKeyCustomersPasswordTokenRequestBuilder } from '../password-token/by-project-key-customers-password-token-request-builder'
import { ByProjectKeyCustomersPasswordRequestBuilder } from '../password/by-project-key-customers-password-request-builder'
import { ByProjectKeyCustomersPasswordResetRequestBuilder } from '../reset/by-project-key-customers-password-reset-request-builder'
import { ByProjectKeyCustomersSearchRequestBuilder } from '../search/by-project-key-customers-search-request-builder'
import { ByProjectKeyCustomersByIDRequestBuilder } from './by-project-key-customers-by-id-request-builder'
import { ByProjectKeyCustomersEmailTokenByEmailTokenRequestBuilder } from './by-project-key-customers-email-token-by-email-token-request-builder'
import { ByProjectKeyCustomersKeyByKeyRequestBuilder } from './by-project-key-customers-key-by-key-request-builder'
Expand Down Expand Up @@ -127,6 +129,32 @@ export class ByProjectKeyCustomersRequestBuilder {
baseUri: this.args.baseUri,
})
}
/**
* This endpoint provides high-performance search queries over Customers.
*
*/
public search(): ByProjectKeyCustomersSearchRequestBuilder {
return new ByProjectKeyCustomersSearchRequestBuilder({
pathArgs: {
...this.args.pathArgs,
},
executeRequest: this.args.executeRequest,
baseUri: this.args.baseUri,
})
}
/**
* This endpoint provides information on the status of a Customer search for a project
*
*/
public searchIndexingStatus(): ByProjectKeyCustomersSearchIndexingStatusRequestBuilder {
return new ByProjectKeyCustomersSearchIndexingStatusRequestBuilder({
pathArgs: {
...this.args.pathArgs,
},
executeRequest: this.args.executeRequest,
baseUri: this.args.baseUri,
})
}

public get(methodArgs?: {
queryArgs?: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
*/
import { CustomerSearchIndexingStatusResponse } from '../../models/customer-search'
import { executeRequest } from '../../shared/utils/common-types'
import { ApiRequest } from '../../shared/utils/requests-utils'
/**
**/
export class ByProjectKeyCustomersSearchIndexingStatusRequestBuilder {
constructor(
protected readonly args: {
pathArgs: {
projectKey: string
}
executeRequest: executeRequest
baseUri?: string
}
) {}
public get(methodArgs?: {
headers?: {
[key: string]: string | string[]
}
}): ApiRequest<CustomerSearchIndexingStatusResponse> {
return new ApiRequest<CustomerSearchIndexingStatusResponse>(
{
baseUri: this.args.baseUri,
method: 'GET',
uriTemplate: '/{projectKey}/customers/search/indexing-status',
pathVariables: this.args.pathArgs,
headers: {
...methodArgs?.headers,
},
},
this.args.executeRequest
)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
*/
import {
CustomerPagedSearchResponse,
CustomerSearchRequest,
} from '../../models/customer-search'
import { executeRequest } from '../../shared/utils/common-types'
import { ApiRequest } from '../../shared/utils/requests-utils'
/**
**/
export class ByProjectKeyCustomersSearchRequestBuilder {
constructor(
protected readonly args: {
pathArgs: {
projectKey: string
}
executeRequest: executeRequest
baseUri?: string
}
) {}
public post(methodArgs: {
body: CustomerSearchRequest
headers?: {
[key: string]: string | string[]
}
}): ApiRequest<CustomerPagedSearchResponse> {
return new ApiRequest<CustomerPagedSearchResponse>(
{
baseUri: this.args.baseUri,
method: 'POST',
uriTemplate: '/{projectKey}/customers/search',
pathVariables: this.args.pathArgs,
headers: {
'Content-Type': 'application/json',
...methodArgs?.headers,
},
body: methodArgs?.body,
},
this.args.executeRequest
)
}
/**
* Checks whether a search index for the Project's Customers exists.
* Returns a `200 OK` status if the index exists or `404 Not Found` otherwise.
*
*/
public head(methodArgs?: {
headers?: {
[key: string]: string | string[]
}
}): ApiRequest<void> {
return new ApiRequest<void>(
{
baseUri: this.args.baseUri,
method: 'HEAD',
uriTemplate: '/{projectKey}/customers/search',
pathVariables: this.args.pathArgs,
headers: {
...methodArgs?.headers,
},
},
this.args.executeRequest
)
}
}
3 changes: 3 additions & 0 deletions packages/platform-sdk/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export * from './client/import/by-project-key-orders-import-request-builder'
export * from './client/in-business-unit/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-request-builder'
export * from './client/in-business-unit/by-project-key-in-business-unit-key-by-business-unit-key-request-builder'
export * from './client/in-store/by-project-key-in-store-key-by-store-key-request-builder'
export * from './client/indexing-status/by-project-key-customers-search-indexing-status-request-builder'
export * from './client/inventory/by-project-key-inventory-by-id-request-builder'
export * from './client/inventory/by-project-key-inventory-key-by-key-request-builder'
export * from './client/inventory/by-project-key-inventory-request-builder'
Expand Down Expand Up @@ -216,6 +217,7 @@ export * from './client/reset/by-project-key-me-password-reset-request-builder'
export * from './client/reviews/by-project-key-reviews-by-id-request-builder'
export * from './client/reviews/by-project-key-reviews-key-by-key-request-builder'
export * from './client/reviews/by-project-key-reviews-request-builder'
export * from './client/search/by-project-key-customers-search-request-builder'
export * from './client/search/by-project-key-orders-search-request-builder'
export * from './client/search/by-project-key-product-projections-search-request-builder'
export * from './client/search/by-project-key-products-search-request-builder'
Expand Down Expand Up @@ -280,6 +282,7 @@ export * from './models/common'
export * from './models/custom-object'
export * from './models/customer'
export * from './models/customer-group'
export * from './models/customer-search'
export * from './models/discount-code'
export * from './models/error'
export * from './models/extension'
Expand Down
Loading

0 comments on commit 345b09d

Please sign in to comment.