@teemill/product-catalog 1.97.1 → 1.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +2 -9
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +4 -11
  4. package/api.ts +51 -80
  5. package/base.ts +1 -1
  6. package/common.ts +15 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +54 -82
  9. package/dist/api.js +2 -1
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +6 -1
  13. package/dist/common.js +15 -4
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +1 -1
  16. package/dist/esm/api.d.ts +54 -82
  17. package/dist/esm/api.js +2 -1
  18. package/dist/esm/base.d.ts +1 -1
  19. package/dist/esm/base.js +1 -1
  20. package/dist/esm/common.d.ts +6 -1
  21. package/dist/esm/common.js +13 -3
  22. package/dist/esm/configuration.d.ts +1 -1
  23. package/dist/esm/configuration.js +1 -1
  24. package/dist/esm/index.d.ts +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/docs/ApplicationPropertiesMetadata.md +1 -1
  29. package/docs/ApplicationPropertiesPersonalizationRules.md +4 -0
  30. package/docs/ApplicationPropertiesProperties.md +2 -2
  31. package/docs/ApplicationSetRecord.md +1 -1
  32. package/docs/BundleProduct.md +1 -1
  33. package/docs/CreateApplicationProperties.md +2 -2
  34. package/docs/PersonalizationOptional.md +23 -0
  35. package/docs/Product.md +1 -1
  36. package/docs/ProductAttribute.md +1 -1
  37. package/docs/ProductBundleItemsInner.md +1 -1
  38. package/docs/ProductsApi.md +6 -6
  39. package/docs/TextApplicationProperties.md +2 -0
  40. package/docs/TextApplicationPropertiesMetadata.md +20 -0
  41. package/docs/TextApplicationPropertiesPersonalizationRules.md +7 -1
  42. package/docs/UpdateProductRequest.md +1 -1
  43. package/docs/UpdateProductsRequestProductsInner.md +1 -1
  44. package/docs/Variant.md +1 -1
  45. package/index.ts +1 -1
  46. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.97.1
5
+ * The version of the OpenAPI document: 1.98.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -220,12 +220,8 @@ export interface ApplicationProperties {
220
220
  'metadata'?: ApplicationPropertiesMetadata | null;
221
221
  }
222
222
  export interface ApplicationPropertiesMetadata {
223
- 'personalization'?: ApplicationPropertiesMetadataPersonalization;
223
+ 'personalization'?: ApplicationPropertiesPersonalization;
224
224
  }
225
- /**
226
- * @type ApplicationPropertiesMetadataPersonalization
227
- */
228
- export type ApplicationPropertiesMetadataPersonalization = ApplicationPropertiesPersonalization | TextApplicationPropertiesPersonalization;
229
225
  /**
230
226
  * Personalisation configuration for a design application, allowing end-users to customise the design.
231
227
  */
@@ -237,10 +233,15 @@ export interface ApplicationPropertiesPersonalization {
237
233
  'rules'?: ApplicationPropertiesPersonalizationRules;
238
234
  }
239
235
  export interface ApplicationPropertiesPersonalizationRules {
236
+ 'optional'?: PersonalizationOptional;
240
237
  /**
241
238
  * The fit of the image. This determines how an uploaded image will be resized to fit the application.
242
239
  */
243
240
  'fit'?: ApplicationPropertiesPersonalizationRulesFitEnum;
241
+ /**
242
+ * If true, customers can use AI artwork tools (redraw, upscale, remove background) on their uploaded image. The platform will be billed for this usage.
243
+ */
244
+ 'showAiArtworkTools'?: boolean;
244
245
  }
245
246
  export declare const ApplicationPropertiesPersonalizationRulesFitEnum: {
246
247
  readonly Contain: "contain";
@@ -310,6 +311,7 @@ export interface ApplicationPropertiesProperties {
310
311
  * The rotation of the text in degrees.
311
312
  */
312
313
  'rotation'?: number;
314
+ 'metadata'?: ApplicationPropertiesMetadata | null;
313
315
  /**
314
316
  * Width of the application in pixels
315
317
  */
@@ -318,7 +320,6 @@ export interface ApplicationPropertiesProperties {
318
320
  * Height of the application in pixels
319
321
  */
320
322
  'height'?: number | null;
321
- 'metadata'?: ApplicationPropertiesMetadata | null;
322
323
  }
323
324
  export declare const ApplicationPropertiesPropertiesFontWeightEnum: {
324
325
  readonly Lighter: "lighter";
@@ -394,7 +395,7 @@ export interface ApplicationSetRecord {
394
395
  /**
395
396
  * Attributes associated to a variant such as Colour and Size.
396
397
  */
397
- 'attributes'?: Array<Attributes1Inner>;
398
+ 'attributes'?: Array<UpdateApplicationSetRequestRecordsInnerAttributesInner>;
398
399
  /**
399
400
  * List of applications for this record
400
401
  */
@@ -469,16 +470,6 @@ export declare const AttributeThumbnailTypeEnum: {
469
470
  readonly Image: "image";
470
471
  };
471
472
  export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
472
- export interface Attributes1Inner {
473
- 'name'?: string;
474
- 'value'?: string;
475
- }
476
- export interface AutoMerchProducts202Response {
477
- /**
478
- * A message describing the auto merchandising status
479
- */
480
- 'message'?: string;
481
- }
482
473
  export interface AutoMerchProductsRequest {
483
474
  /**
484
475
  * A set of product IDs to AI auto merchandise.
@@ -605,7 +596,7 @@ export interface BundleProduct {
605
596
  * History of AI optimisations performed on the product
606
597
  */
607
598
  'optimisationHistory'?: Array<OptimisationHistoryItem>;
608
- 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerIntegrationConnectionsInner>;
599
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
609
600
  /**
610
601
  * Whether to show a sale badge on the product
611
602
  */
@@ -705,6 +696,7 @@ export interface CreateApplicationProperties {
705
696
  * The rotation of the text in degrees.
706
697
  */
707
698
  'rotation'?: number;
699
+ 'metadata'?: ApplicationPropertiesMetadata | null;
708
700
  /**
709
701
  * Width of the application in pixels
710
702
  */
@@ -713,7 +705,6 @@ export interface CreateApplicationProperties {
713
705
  * Height of the application in pixels
714
706
  */
715
707
  'height'?: number | null;
716
- 'metadata'?: ApplicationPropertiesMetadata | null;
717
708
  }
718
709
  export declare const CreateApplicationPropertiesFontWeightEnum: {
719
710
  readonly Lighter: "lighter";
@@ -1070,12 +1061,6 @@ export interface CreateProductVideosInner {
1070
1061
  export interface DeleteProductsRequest {
1071
1062
  'products'?: Array<string>;
1072
1063
  }
1073
- export interface DuplicateProducts202Response {
1074
- /**
1075
- * A message describing the duplication status
1076
- */
1077
- 'message'?: string;
1078
- }
1079
1064
  export interface DuplicateProductsRequest {
1080
1065
  /**
1081
1066
  * A set of product IDs to duplicate.
@@ -1244,6 +1229,19 @@ export interface OptimisationHistoryItem {
1244
1229
  */
1245
1230
  'createdAt'?: string;
1246
1231
  }
1232
+ /**
1233
+ * When present, this personalisation field is optional — the customer can leave it blank or fill it in for an additional charge.
1234
+ */
1235
+ export interface PersonalizationOptional {
1236
+ /**
1237
+ * Hides the placeholder design on the product preview image until the customer fills the field.
1238
+ */
1239
+ 'hidePlaceholder'?: boolean;
1240
+ /**
1241
+ * Additional price (in the project currency major unit) attributed to the product when the customer fills this optional field.
1242
+ */
1243
+ 'optionalPrice'?: number;
1244
+ }
1247
1245
  /**
1248
1246
  * Standard price definition that defines the amount and currency.
1249
1247
  */
@@ -1370,7 +1368,7 @@ export interface Product {
1370
1368
  * History of AI optimisations performed on the product
1371
1369
  */
1372
1370
  'optimisationHistory'?: Array<OptimisationHistoryItem>;
1373
- 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerIntegrationConnectionsInner>;
1371
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
1374
1372
  /**
1375
1373
  * Marketplace-specific listing data that can override product fields during integration syncs.
1376
1374
  */
@@ -1454,7 +1452,7 @@ export interface ProductAttribute {
1454
1452
  /**
1455
1453
  * Attribute values
1456
1454
  */
1457
- 'values': Array<ProductAttributeValue1>;
1455
+ 'values': Array<ProductAttributeValue>;
1458
1456
  }
1459
1457
  export interface ProductAttributeValue {
1460
1458
  /**
@@ -1466,16 +1464,6 @@ export interface ProductAttributeValue {
1466
1464
  */
1467
1465
  'value': string;
1468
1466
  }
1469
- export interface ProductAttributeValue1 {
1470
- /**
1471
- * Position of the value when ordered
1472
- */
1473
- 'sortOrder': number;
1474
- /**
1475
- * Product attribute value
1476
- */
1477
- 'value': string;
1478
- }
1479
1467
  export interface ProductBundleItemsInner {
1480
1468
  /**
1481
1469
  * The unique identifier of the bundle product.
@@ -1574,7 +1562,7 @@ export interface ProductBundleItemsInner {
1574
1562
  * History of AI optimisations performed on the product
1575
1563
  */
1576
1564
  'optimisationHistory'?: Array<OptimisationHistoryItem>;
1577
- 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerIntegrationConnectionsInner>;
1565
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
1578
1566
  /**
1579
1567
  * Whether to show a sale badge on the product
1580
1568
  */
@@ -1742,12 +1730,6 @@ export declare const SalePriceCurrencyCodeEnum: {
1742
1730
  readonly Gbp: "GBP";
1743
1731
  };
1744
1732
  export type SalePriceCurrencyCodeEnum = typeof SalePriceCurrencyCodeEnum[keyof typeof SalePriceCurrencyCodeEnum];
1745
- export interface SeoOptimiseProducts202Response {
1746
- /**
1747
- * A message describing the optimisation status
1748
- */
1749
- 'message'?: string;
1750
- }
1751
1733
  export interface SeoOptimiseProductsRequest {
1752
1734
  /**
1753
1735
  * A set of product IDs to AI SEO optimise.
@@ -1818,6 +1800,7 @@ export interface TextApplicationProperties {
1818
1800
  * The rotation of the text in degrees.
1819
1801
  */
1820
1802
  'rotation'?: number;
1803
+ 'metadata'?: TextApplicationPropertiesMetadata | null;
1821
1804
  }
1822
1805
  export declare const TextApplicationPropertiesFontWeightEnum: {
1823
1806
  readonly Lighter: "lighter";
@@ -1832,6 +1815,9 @@ export declare const TextApplicationPropertiesFontStyleEnum: {
1832
1815
  readonly Oblique: "oblique";
1833
1816
  };
1834
1817
  export type TextApplicationPropertiesFontStyleEnum = typeof TextApplicationPropertiesFontStyleEnum[keyof typeof TextApplicationPropertiesFontStyleEnum];
1818
+ export interface TextApplicationPropertiesMetadata {
1819
+ 'personalization'?: TextApplicationPropertiesPersonalization;
1820
+ }
1835
1821
  /**
1836
1822
  * Personalisation configuration for a text application, allowing end-users to customise the text content.
1837
1823
  */
@@ -1849,21 +1835,31 @@ export interface TextApplicationPropertiesPersonalization {
1849
1835
  export declare const TextApplicationPropertiesPersonalizationTypeEnum: {
1850
1836
  readonly Text: "text";
1851
1837
  readonly Number: "number";
1838
+ readonly Textarea: "textarea";
1852
1839
  };
1853
1840
  export type TextApplicationPropertiesPersonalizationTypeEnum = typeof TextApplicationPropertiesPersonalizationTypeEnum[keyof typeof TextApplicationPropertiesPersonalizationTypeEnum];
1854
1841
  export interface TextApplicationPropertiesPersonalizationRules {
1842
+ 'optional'?: PersonalizationOptional;
1855
1843
  /**
1856
1844
  * The maximum length of the text, in characters.
1857
1845
  */
1858
1846
  'maxLength'?: number;
1859
1847
  /**
1860
- * If true, suspected profanities will be replaced by *. Only valid when metadata.personalization.type is \"text\"
1848
+ * If true, suspected profanities will be replaced by *. Only valid when metadata.personalization.type is \"text\" or \"textarea\"
1861
1849
  */
1862
1850
  'profanityFilter'?: boolean;
1863
1851
  /**
1864
1852
  * If true, and the inputted text is longer than the original text, the font size will be reduced to keep the text within the application\'s original bounds.
1865
1853
  */
1866
1854
  'scaleToFit'?: boolean;
1855
+ /**
1856
+ * If true, all text on this element will be formatted to uppercase.
1857
+ */
1858
+ 'forceCapitalisation'?: boolean;
1859
+ /**
1860
+ * If true, customers can choose the colour of this element.
1861
+ */
1862
+ 'enableColourPicker'?: boolean;
1867
1863
  /**
1868
1864
  * The maximum value of the number. Only valid when metadata.personalization.type is \"number\"
1869
1865
  */
@@ -2041,7 +2037,7 @@ export interface UpdateProductRequest {
2041
2037
  /**
2042
2038
  * Integration connections for the product
2043
2039
  */
2044
- 'integrationConnections'?: Array<UpdateProductRequestIntegrationConnectionsInner>;
2040
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
2045
2041
  /**
2046
2042
  * Whether to show a sale badge on the product
2047
2043
  */
@@ -2078,16 +2074,6 @@ export interface UpdateProductRequestBundleItemsInnerConfigValidOptionsInner {
2078
2074
  'name': string;
2079
2075
  'values': Array<string>;
2080
2076
  }
2081
- export interface UpdateProductRequestIntegrationConnectionsInner {
2082
- /**
2083
- * Code identifying the integration
2084
- */
2085
- 'integrationCode': string;
2086
- /**
2087
- * The value of the identifying property on the foreign product
2088
- */
2089
- 'foreignKey': string;
2090
- }
2091
2077
  export interface UpdateProductsRequest {
2092
2078
  'products'?: Array<UpdateProductsRequestProductsInner>;
2093
2079
  }
@@ -2137,7 +2123,7 @@ export interface UpdateProductsRequestProductsInner {
2137
2123
  * For use with the Shopify integration. Use this to provide a Shopify product ID to link to an existing Shopify product rather than creating a new one.
2138
2124
  */
2139
2125
  'shopifyId'?: number | null;
2140
- 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerIntegrationConnectionsInner>;
2126
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
2141
2127
  /**
2142
2128
  * Whether to show a sale badge on the product
2143
2129
  */
@@ -2151,13 +2137,6 @@ export interface UpdateProductsRequestProductsInner {
2151
2137
  export interface UpdateProductsRequestProductsInnerCollectionsInner {
2152
2138
  'id': string;
2153
2139
  }
2154
- export interface UpdateProductsRequestProductsInnerIntegrationConnectionsInner {
2155
- 'integrationCode': string;
2156
- /**
2157
- * The value of the identifying property on the foreign product
2158
- */
2159
- 'foreignKey': string;
2160
- }
2161
2140
  /**
2162
2141
  * This field should be used when a product requires a valid license to manufacture, sell, or distribute — for example, officially licensed characters, brands, or artwork.
2163
2142
  */
@@ -2342,7 +2321,7 @@ export interface Variant {
2342
2321
  * Key/value pairs that can be used to store additional information about the variant
2343
2322
  */
2344
2323
  'metafields'?: Array<MetaField>;
2345
- 'integrationConnections'?: Array<VariantIntegrationConnectionsInner>;
2324
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
2346
2325
  'wholesaleCost'?: VariantWholesaleCost;
2347
2326
  /**
2348
2327
  * @deprecated
@@ -2367,13 +2346,6 @@ export interface VariantGfnVariant {
2367
2346
  */
2368
2347
  'metafields'?: Array<MetaField>;
2369
2348
  }
2370
- export interface VariantIntegrationConnectionsInner {
2371
- 'integrationCode': string;
2372
- /**
2373
- * The value of the identifying property on the foreign variant
2374
- */
2375
- 'foreignKey': string;
2376
- }
2377
2349
  export interface VariantProduct {
2378
2350
  /**
2379
2351
  * Unique object identifier
@@ -3717,7 +3689,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3717
3689
  * @param {*} [options] Override http request option.
3718
3690
  * @throws {RequiredError}
3719
3691
  */
3720
- autoMerchProducts(project: string, autoMerchProductsRequest?: AutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoMerchProducts202Response>>;
3692
+ autoMerchProducts(project: string, autoMerchProductsRequest?: AutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportProducts202Response>>;
3721
3693
  /**
3722
3694
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
3723
3695
  * @summary Create product
@@ -3753,7 +3725,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3753
3725
  * @param {*} [options] Override http request option.
3754
3726
  * @throws {RequiredError}
3755
3727
  */
3756
- duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
3728
+ duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportProducts202Response>>;
3757
3729
  /**
3758
3730
  * Export the project\'s products and variants as a CSV file.
3759
3731
  * @summary Export products
@@ -3828,7 +3800,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3828
3800
  * @param {*} [options] Override http request option.
3829
3801
  * @throws {RequiredError}
3830
3802
  */
3831
- seoOptimiseProducts(project: string, seoOptimiseProductsRequest?: SeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimiseProducts202Response>>;
3803
+ seoOptimiseProducts(project: string, seoOptimiseProductsRequest?: SeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportProducts202Response>>;
3832
3804
  /**
3833
3805
  * Updates a product by a given ID.
3834
3806
  * @summary Update product
@@ -3860,7 +3832,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3860
3832
  * @param {*} [options] Override http request option.
3861
3833
  * @throws {RequiredError}
3862
3834
  */
3863
- autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoMerchProducts202Response>;
3835
+ autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExportProducts202Response>;
3864
3836
  /**
3865
3837
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
3866
3838
  * @summary Create product
@@ -3892,7 +3864,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3892
3864
  * @param {*} [options] Override http request option.
3893
3865
  * @throws {RequiredError}
3894
3866
  */
3895
- duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
3867
+ duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExportProducts202Response>;
3896
3868
  /**
3897
3869
  * Export the project\'s products and variants as a CSV file.
3898
3870
  * @summary Export products
@@ -3932,7 +3904,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3932
3904
  * @param {*} [options] Override http request option.
3933
3905
  * @throws {RequiredError}
3934
3906
  */
3935
- seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimiseProducts202Response>;
3907
+ seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExportProducts202Response>;
3936
3908
  /**
3937
3909
  * Updates a product by a given ID.
3938
3910
  * @summary Update product
@@ -4241,7 +4213,7 @@ export declare class ProductsApi extends BaseAPI {
4241
4213
  * @param {*} [options] Override http request option.
4242
4214
  * @throws {RequiredError}
4243
4215
  */
4244
- autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AutoMerchProducts202Response, any, {}>>;
4216
+ autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportProducts202Response, any, {}>>;
4245
4217
  /**
4246
4218
  * Creates a new catalog product based on a product from the GFN Catalog, with the variants and design applications you provide. Use the [GFN Catalog API](/developer/api/gfn-catalog) to list available products and their variants (including exact attribute names and values) for the project.
4247
4219
  * @summary Create product
@@ -4273,7 +4245,7 @@ export declare class ProductsApi extends BaseAPI {
4273
4245
  * @param {*} [options] Override http request option.
4274
4246
  * @throws {RequiredError}
4275
4247
  */
4276
- duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any, {}>>;
4248
+ duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportProducts202Response, any, {}>>;
4277
4249
  /**
4278
4250
  * Export the project\'s products and variants as a CSV file.
4279
4251
  * @summary Export products
@@ -4313,7 +4285,7 @@ export declare class ProductsApi extends BaseAPI {
4313
4285
  * @param {*} [options] Override http request option.
4314
4286
  * @throws {RequiredError}
4315
4287
  */
4316
- seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimiseProducts202Response, any, {}>>;
4288
+ seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportProducts202Response, any, {}>>;
4317
4289
  /**
4318
4290
  * Updates a product by a given ID.
4319
4291
  * @summary Update product
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.97.1
8
+ * The version of the OpenAPI document: 1.98.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -154,6 +154,7 @@ exports.TextApplicationPropertiesFontStyleEnum = {
154
154
  exports.TextApplicationPropertiesPersonalizationTypeEnum = {
155
155
  Text: 'text',
156
156
  Number: 'number',
157
+ Textarea: 'textarea',
157
158
  };
158
159
  exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = {
159
160
  Size: 'Size',
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.97.1
5
+ * The version of the OpenAPI document: 1.98.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.97.1
8
+ * The version of the OpenAPI document: 1.98.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.97.1
5
+ * The version of the OpenAPI document: 1.98.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
48
48
  * @export
49
49
  */
50
50
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ * JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
53
+ * @export
54
+ */
55
+ export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
51
56
  /**
52
57
  *
53
58
  * @export
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Product Catalog
6
6
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
7
7
  *
8
- * The version of the OpenAPI document: 1.97.1
8
+ * The version of the OpenAPI document: 1.98.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
25
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
26
  const base_1 = require("./base");
27
27
  /**
28
28
  *
@@ -99,7 +99,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
99
99
  if (parameter == null)
100
100
  return;
101
101
  if (typeof parameter === "object") {
102
- if (Array.isArray(parameter)) {
102
+ if (Array.isArray(parameter) || parameter instanceof Set) {
103
103
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
104
104
  }
105
105
  else {
@@ -125,6 +125,17 @@ const setSearchParams = function (url, ...objects) {
125
125
  url.search = searchParams.toString();
126
126
  };
127
127
  exports.setSearchParams = setSearchParams;
128
+ /**
129
+ * JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
130
+ * @export
131
+ */
132
+ const replaceWithSerializableTypeIfNeeded = function (_key, value) {
133
+ if (value instanceof Set) {
134
+ return Array.from(value);
135
+ }
136
+ return value;
137
+ };
138
+ exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
128
139
  /**
129
140
  *
130
141
  * @export
@@ -135,7 +146,7 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
135
146
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
136
147
  : nonString;
137
148
  return needsSerialization
138
- ? JSON.stringify(value !== undefined ? value : {})
149
+ ? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
139
150
  : (value || "");
140
151
  };
141
152
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
@@ -2,7 +2,7 @@
2
2
  * Product Catalog
3
3
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
4
4
  *
5
- * The version of the OpenAPI document: 1.97.1
5
+ * The version of the OpenAPI document: 1.98.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Product Catalog
5
5
  * Manage your Product Catalog. A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a product from the GFN Catalog, plus listing information such as title, description and tags.
6
6
  *
7
- * The version of the OpenAPI document: 1.97.1
7
+ * The version of the OpenAPI document: 1.98.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).