Skip to content

Commit

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

* build(codegen): updating SDK

* build(codegen): updating SDK

* build(codegen): updating SDK

* build(codegen): updating SDK

* 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>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
ct-sdks[bot] and kodiakhq[bot] committed Apr 10, 2024
1 parent 344fd2d commit 96c319a
Show file tree
Hide file tree
Showing 31 changed files with 472 additions and 126 deletions.
25 changes: 25 additions & 0 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@commercetools/platform-sdk': minor
---

**Api changes**

<details>
<summary>Added Property(s)</summary>

- added property `attributedTo` to type `CreatedBy`
- added property `attributedTo` to type `LastModifiedBy`
</details>

<details>
<summary>Added Type(s)</summary>

- added type `Attribution`
- added type `AttributionSource`
</details>

<details>
<summary>Removed Method(s)</summary>

- :warning: removed method `apiRoot.withProjectKey().products().search().head()`
</details>
32 changes: 32 additions & 0 deletions .changeset/changes_import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
'@commercetools/importapi-sdk': minor
---

**Import changes**

<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/discount-codes`
- added resource `/{projectKey}/discount-codes/import-containers`
- added resource `/{projectKey}/discount-codes/import-containers/{importContainerKey}`
</details>

<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKeyValue().discountCodes().importContainers().withImportContainerKeyValue().post()`
</details>

<details>
<summary>Added Type(s)</summary>

- added type `DiscountCodeImportRequest`
- added type `DiscountCodeImport`
</details>

<details>
<summary>Added Enum(s)</summary>

- added enum `discount-code` to type `ImportResourceType`
</details>
98 changes: 27 additions & 71 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,94 +1,50 @@
**Api changes**

<details>
<summary>Added Enum(s)</summary>
<summary>Added Property(s)</summary>

- added enum `ManuallySuspended` to type `SubscriptionHealthStatus`
- added property `attributedTo` to type `CreatedBy`
- added property `attributedTo` to type `LastModifiedBy`
</details>

<details>
<summary>Added Property(s)</summary>
<summary>Added Type(s)</summary>

- added property `productsSearch` to type `SearchIndexingConfiguration`
- added property `mode` to type `ProjectChangeProductSearchIndexingEnabledAction`
- added type `Attribution`
- added type `AttributionSource`
</details>

<details>
<summary>Added Method(s)</summary>
<summary>Removed Method(s)</summary>

- added method `apiRoot.withProjectKey().products().search().post()`
- added method `apiRoot.withProjectKey().products().search().head()`
- :warning: removed method `apiRoot.withProjectKey().products().search().head()`
</details>

**Import changes**

<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/products/search`
- added resource `/{projectKey}/discount-codes`
- added resource `/{projectKey}/discount-codes/import-containers`
- added resource `/{projectKey}/discount-codes/import-containers/{importContainerKey}`
</details>

<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKeyValue().discountCodes().importContainers().withImportContainerKeyValue().post()`
</details>

<details>
<summary>Added Type(s)</summary>

- added type `LockedFieldError`
- added type `GraphQLLockedFieldError`
- added type `ProductPagedSearchResponse`
- added type `ProductSearchErrorResponse`
- added type `ProductSearchMatchingVariantEntry`
- added type `ProductSearchMatchingVariants`
- added type `ProductSearchProjectionParams`
- added type `ProductSearchRequest`
- added type `ProductSearchResult`
- added type `ProductSearchFacetCountExpression`
- added type `ProductSearchFacetCountLevelEnum`
- added type `ProductSearchFacetCountValue`
- added type `ProductSearchFacetDistinctBucketSortBy`
- added type `ProductSearchFacetDistinctBucketSortExpression`
- added type `ProductSearchFacetDistinctExpression`
- added type `ProductSearchFacetDistinctValue`
- added type `ProductSearchFacetExpression`
- added type `ProductSearchFacetRangesExpression`
- added type `ProductSearchFacetRangesFacetRange`
- added type `ProductSearchFacetRangesValue`
- added type `ProductSearchFacetResult`
- added type `ProductSearchFacetResultBucket`
- added type `ProductSearchFacetResultBucketEntry`
- added type `ProductSearchFacetResultCount`
- added type `ProductSearchFacetScope`
- added type `ProductSearchFacetScopeEnum`
- added type `ProductSearchIndexingMode`
- added type `ProductSearchStatus`
- added type `SearchAndExpression`
- added type `SearchAnyValue`
- added type `SearchCompoundExpression`
- added type `SearchDateRangeExpression`
- added type `SearchDateRangeValue`
- added type `SearchDateTimeRangeExpression`
- added type `SearchDateTimeRangeValue`
- added type `SearchExactExpression`
- added type `SearchExistsExpression`
- added type `SearchExistsValue`
- added type `SearchFieldType`
- added type `SearchFilterExpression`
- added type `SearchFullTextExpression`
- added type `SearchFullTextPrefixExpression`
- added type `SearchFullTextPrefixValue`
- added type `SearchFullTextValue`
- added type `SearchLongRangeExpression`
- added type `SearchLongRangeValue`
- added type `SearchMatchType`
- added type `SearchMatchingVariant`
- added type `SearchNotExpression`
- added type `SearchNumberRangeExpression`
- added type `SearchNumberRangeValue`
- added type `SearchOrExpression`
- added type `SearchPrefixExpression`
- added type `SearchQuery`
- added type `SearchQueryExpression`
- added type `SearchQueryExpressionValue`
- added type `SearchSortMode`
- added type `SearchSortOrder`
- added type `SearchSorting`
- added type `SearchTimeRangeExpression`
- added type `SearchTimeRangeValue`
- added type `SearchWildCardExpression`
- added type `DiscountCodeImportRequest`
- added type `DiscountCodeImport`
</details>

<details>
<summary>Added Enum(s)</summary>

- added enum `discount-code` to type `ImportResourceType`
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface Record {
*/
readonly modifiedBy: ModifiedBy
/**
* Date and time (UTC) when the change was made.
* Date and time (UTC) the change was made.
*
*/
readonly modifiedAt: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { executeRequest } from '../shared/utils/common-types'
import { ByProjectKeyCategoriesRequestBuilder } from './categories/by-project-key-categories-request-builder'
import { ByProjectKeyCustomersRequestBuilder } from './customers/by-project-key-customers-request-builder'
import { ByProjectKeyDiscountCodesRequestBuilder } from './discount-codes/by-project-key-discount-codes-request-builder'
import { ByProjectKeyImportContainersRequestBuilder } from './import-containers/by-project-key-import-containers-request-builder'
import { ByProjectKeyImportOperationsRequestBuilder } from './import-operations/by-project-key-import-operations-request-builder'
import { ByProjectKeyInventoriesRequestBuilder } from './inventories/by-project-key-inventories-request-builder'
Expand Down Expand Up @@ -166,4 +167,13 @@ export class ByProjectKeyRequestBuilder {
baseUri: this.args.baseUri,
})
}
public discountCodes(): ByProjectKeyDiscountCodesRequestBuilder {
return new ByProjectKeyDiscountCodesRequestBuilder({
pathArgs: {
...this.args.pathArgs,
},
executeRequest: this.args.executeRequest,
baseUri: this.args.baseUri,
})
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* 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 { executeRequest } from '../../shared/utils/common-types'
import { ByProjectKeyDiscountCodesImportContainersRequestBuilder } from '../import-containers/by-project-key-discount-codes-import-containers-request-builder'
/**
**/
export class ByProjectKeyDiscountCodesRequestBuilder {
constructor(
protected readonly args: {
pathArgs: {
projectKey: string
}
executeRequest: executeRequest
baseUri?: string
}
) {}
public importContainers(): ByProjectKeyDiscountCodesImportContainersRequestBuilder {
return new ByProjectKeyDiscountCodesImportContainersRequestBuilder({
pathArgs: {
...this.args.pathArgs,
},
executeRequest: this.args.executeRequest,
baseUri: this.args.baseUri,
})
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* 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 {
DiscountCodeImportRequest,
ImportResponse,
} from '../../models/importrequests'
import { executeRequest } from '../../shared/utils/common-types'
import { ApiRequest } from '../../shared/utils/requests-utils'
/**
**/
export class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
constructor(
protected readonly args: {
pathArgs: {
projectKey: string
importContainerKey: string
}
executeRequest: executeRequest
baseUri?: string
}
) {}
/**
* Creates a request for creating new Discount Codes or updating existing ones.
*/
public post(methodArgs: {
body: DiscountCodeImportRequest
headers?: {
[key: string]: string | string[]
}
}): ApiRequest<ImportResponse> {
return new ApiRequest<ImportResponse>(
{
baseUri: this.args.baseUri,
method: 'POST',
uriTemplate:
'/{projectKey}/discount-codes/import-containers/{importContainerKey}',
pathVariables: this.args.pathArgs,
headers: {
'Content-Type': 'application/json',
...methodArgs?.headers,
},
body: methodArgs?.body,
},
this.args.executeRequest
)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* 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 { executeRequest } from '../../shared/utils/common-types'
import { ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder } from './by-project-key-discount-codes-import-containers-by-import-container-key-request-builder'
/**
**/
export class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
constructor(
protected readonly args: {
pathArgs: {
projectKey: string
}
executeRequest: executeRequest
baseUri?: string
}
) {}
public withImportContainerKeyValue(childPathArgs: {
importContainerKey: string
}): ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
return new ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder(
{
pathArgs: {
...this.args.pathArgs,
...childPathArgs,
},
executeRequest: this.args.executeRequest,
baseUri: this.args.baseUri,
}
)
}
}
4 changes: 4 additions & 0 deletions packages/importapi-sdk/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ export * from './client/api-root'; //Root client that is used to access all the
export * from './client/by-project-key-request-builder'
export * from './client/categories/by-project-key-categories-request-builder'
export * from './client/customers/by-project-key-customers-request-builder'
export * from './client/discount-codes/by-project-key-discount-codes-request-builder'
export * from './client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder'
export * from './client/import-containers/by-project-key-categories-import-containers-request-builder'
export * from './client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder'
export * from './client/import-containers/by-project-key-customers-import-containers-request-builder'
export * from './client/import-containers/by-project-key-discount-codes-import-containers-by-import-container-key-request-builder'
export * from './client/import-containers/by-project-key-discount-codes-import-containers-request-builder'
export * from './client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder'
export * from './client/import-containers/by-project-key-import-containers-request-builder'
export * from './client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder'
Expand Down Expand Up @@ -57,6 +60,7 @@ export * from './models/categories'
export * from './models/common'
export * from './models/customers'
export * from './models/customfields'
export * from './models/discount-codes'
//models
export * from './models/errors'
export * from './models/importcontainers'
Expand Down
3 changes: 3 additions & 0 deletions packages/importapi-sdk/src/generated/models/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { CategoryImport } from './categories'
import { CustomerImport } from './customers'
import { Custom } from './customfields'
import { DiscountCodeImport } from './discount-codes'
import { InventoryImport } from './inventories'
import { PriceImport } from './prices'
import { ProductDraftImport } from './productdrafts'
Expand Down Expand Up @@ -179,6 +180,7 @@ export type _ImportResource =
| ImportResource
| CategoryImport
| CustomerImport
| DiscountCodeImport
| InventoryImport
| PriceImport
| ProductDraftImport
Expand Down Expand Up @@ -502,6 +504,7 @@ export interface PriceTier {
export type ImportResourceType =
| 'category'
| 'customer'
| 'discount-code'
| 'inventory'
| 'order'
| 'order-patch'
Expand Down
Loading

0 comments on commit 96c319a

Please sign in to comment.