-
Notifications
You must be signed in to change notification settings - Fork 25
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 --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6982a15
commit 851ee40
Showing
38 changed files
with
4,258 additions
and
4 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
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
57 changes: 57 additions & 0 deletions
57
...store-key-by-store-key-products-by-product-id-product-tailoring-images-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,57 @@ | ||
/** | ||
* 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 { ProductTailoring } from '../../models/product-tailoring' | ||
import { executeRequest, QueryParam } from '../../shared/utils/common-types' | ||
import { ApiRequest } from '../../shared/utils/requests-utils' | ||
/** | ||
**/ | ||
export class ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringImagesRequestBuilder { | ||
constructor( | ||
protected readonly args: { | ||
pathArgs: { | ||
projectKey: string | ||
storeKey: string | ||
productID: string | ||
} | ||
executeRequest: executeRequest | ||
baseUri?: string | ||
} | ||
) {} | ||
/** | ||
* Upload a JPEG, PNG and GIF file to a [ProductTailoringVariant](ctp:api:type:ProductTailoringVariant). The maximum file size of the image is 10MB. `variant` or `sku` is required to update a specific ProductVariant. Produces the [ProductTailoringImageAdded](/projects/messages#product-tailoring-image-added) Message when the `Small` version of the image has been uploaded to the CDN. | ||
* | ||
*/ | ||
public post(methodArgs: { | ||
queryArgs?: { | ||
filename?: string | ||
variant?: number | ||
sku?: string | ||
staged?: boolean | ||
[key: string]: QueryParam | ||
} | ||
body: Buffer | ||
headers: { | ||
'Content-Type': 'image/jpeg' | 'image/png' | 'image/gif' | ||
[key: string]: string | string[] | ||
} | ||
}): ApiRequest<ProductTailoring> { | ||
return new ApiRequest<ProductTailoring>( | ||
{ | ||
baseUri: this.args.baseUri, | ||
method: 'POST', | ||
uriTemplate: | ||
'/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images', | ||
pathVariables: this.args.pathArgs, | ||
headers: { | ||
...methodArgs?.headers, | ||
}, | ||
queryParams: methodArgs?.queryArgs, | ||
body: methodArgs?.body, | ||
}, | ||
this.args.executeRequest | ||
) | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...-key-by-store-key-products-key-by-product-key-product-tailoring-images-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,57 @@ | ||
/** | ||
* 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 { ProductTailoring } from '../../models/product-tailoring' | ||
import { executeRequest, QueryParam } from '../../shared/utils/common-types' | ||
import { ApiRequest } from '../../shared/utils/requests-utils' | ||
/** | ||
**/ | ||
export class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesRequestBuilder { | ||
constructor( | ||
protected readonly args: { | ||
pathArgs: { | ||
projectKey: string | ||
storeKey: string | ||
productKey: string | ||
} | ||
executeRequest: executeRequest | ||
baseUri?: string | ||
} | ||
) {} | ||
/** | ||
* Upload a JPEG, PNG and GIF file to a [ProductTailoringVariant](ctp:api:type:ProductTailoringVariant). The maximum file size of the image is 10MB. `variant` or `sku` is required to update a specific ProductVariant. Produces the [ProductTailoringImageAdded](/projects/messages#product-tailoring-image-added) Message when the `Small` version of the image has been uploaded to the CDN. | ||
* | ||
*/ | ||
public post(methodArgs: { | ||
queryArgs?: { | ||
filename?: string | ||
variant?: number | ||
sku?: string | ||
staged?: boolean | ||
[key: string]: QueryParam | ||
} | ||
body: Buffer | ||
headers: { | ||
'Content-Type': 'image/jpeg' | 'image/png' | 'image/gif' | ||
[key: string]: string | string[] | ||
} | ||
}): ApiRequest<ProductTailoring> { | ||
return new ApiRequest<ProductTailoring>( | ||
{ | ||
baseUri: this.args.baseUri, | ||
method: 'POST', | ||
uriTemplate: | ||
'/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images', | ||
pathVariables: this.args.pathArgs, | ||
headers: { | ||
...methodArgs?.headers, | ||
}, | ||
queryParams: methodArgs?.queryArgs, | ||
body: methodArgs?.body, | ||
}, | ||
this.args.executeRequest | ||
) | ||
} | ||
} |
Oops, something went wrong.