-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
344fd2d
commit 96c319a
Showing
31 changed files
with
472 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...-sdk/src/generated/client/discount-codes/by-project-key-discount-codes-request-builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}) | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...y-project-key-discount-codes-import-containers-by-import-container-key-request-builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ient/import-containers/by-project-key-discount-codes-import-containers-request-builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.