@teemill/product-catalog 1.97.1 → 1.99.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 +58 -82
  5. package/base.ts +1 -1
  6. package/common.ts +15 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +61 -84
  9. package/dist/api.js +3 -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 +61 -84
  17. package/dist/esm/api.js +3 -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 +11 -3
  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.99.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,36 @@ export interface TextApplicationPropertiesPersonalization {
1849
1835
  export declare const TextApplicationPropertiesPersonalizationTypeEnum: {
1850
1836
  readonly Text: "text";
1851
1837
  readonly Number: "number";
1838
+ readonly Textarea: "textarea";
1839
+ readonly Dropdown: "dropdown";
1852
1840
  };
1853
1841
  export type TextApplicationPropertiesPersonalizationTypeEnum = typeof TextApplicationPropertiesPersonalizationTypeEnum[keyof typeof TextApplicationPropertiesPersonalizationTypeEnum];
1854
1842
  export interface TextApplicationPropertiesPersonalizationRules {
1843
+ 'optional'?: PersonalizationOptional;
1855
1844
  /**
1856
- * The maximum length of the text, in characters.
1845
+ * The maximum length of the text, in characters. Only valid when metadata.personalization.type is \"text\"
1857
1846
  */
1858
1847
  'maxLength'?: number;
1859
1848
  /**
1860
- * If true, suspected profanities will be replaced by *. Only valid when metadata.personalization.type is \"text\"
1849
+ * If true, suspected profanities will be replaced by asterisks. Only valid when metadata.personalization.type is \"text\" or \"textarea\"
1861
1850
  */
1862
1851
  'profanityFilter'?: boolean;
1863
1852
  /**
1864
1853
  * 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
1854
  */
1866
1855
  'scaleToFit'?: boolean;
1856
+ /**
1857
+ * If true, all text on this element will be formatted to uppercase. Only valid when metadata.personalization.type is \"text\" or \"textarea\"
1858
+ */
1859
+ 'forceCapitalisation'?: boolean;
1860
+ /**
1861
+ * If true, customers can choose the colour of this element.
1862
+ */
1863
+ 'enableColourPicker'?: boolean;
1864
+ /**
1865
+ * Pre-defined text options a customer can choose from. Only valid when metadata.personalization.type is \"dropdown\"
1866
+ */
1867
+ 'enums'?: Array<string>;
1867
1868
  /**
1868
1869
  * The maximum value of the number. Only valid when metadata.personalization.type is \"number\"
1869
1870
  */
@@ -1873,7 +1874,7 @@ export interface TextApplicationPropertiesPersonalizationRules {
1873
1874
  */
1874
1875
  'minValue'?: number;
1875
1876
  /**
1876
- * If the entered number is below the specified digits it will be padded with 0s. E.g. 7 will become 007 when pad is 3. Only valid when metadata.personalization.type is number
1877
+ * If the entered number is below the specified digits it will be padded with 0s. E.g. 7 will become 007 when pad is 3. Only valid when metadata.personalization.type is \"number\"
1877
1878
  */
1878
1879
  'pad'?: number;
1879
1880
  }
@@ -2041,7 +2042,7 @@ export interface UpdateProductRequest {
2041
2042
  /**
2042
2043
  * Integration connections for the product
2043
2044
  */
2044
- 'integrationConnections'?: Array<UpdateProductRequestIntegrationConnectionsInner>;
2045
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
2045
2046
  /**
2046
2047
  * Whether to show a sale badge on the product
2047
2048
  */
@@ -2078,16 +2079,6 @@ export interface UpdateProductRequestBundleItemsInnerConfigValidOptionsInner {
2078
2079
  'name': string;
2079
2080
  'values': Array<string>;
2080
2081
  }
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
2082
  export interface UpdateProductsRequest {
2092
2083
  'products'?: Array<UpdateProductsRequestProductsInner>;
2093
2084
  }
@@ -2137,7 +2128,7 @@ export interface UpdateProductsRequestProductsInner {
2137
2128
  * 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
2129
  */
2139
2130
  'shopifyId'?: number | null;
2140
- 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerIntegrationConnectionsInner>;
2131
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
2141
2132
  /**
2142
2133
  * Whether to show a sale badge on the product
2143
2134
  */
@@ -2151,13 +2142,6 @@ export interface UpdateProductsRequestProductsInner {
2151
2142
  export interface UpdateProductsRequestProductsInnerCollectionsInner {
2152
2143
  'id': string;
2153
2144
  }
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
2145
  /**
2162
2146
  * 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
2147
  */
@@ -2342,7 +2326,7 @@ export interface Variant {
2342
2326
  * Key/value pairs that can be used to store additional information about the variant
2343
2327
  */
2344
2328
  'metafields'?: Array<MetaField>;
2345
- 'integrationConnections'?: Array<VariantIntegrationConnectionsInner>;
2329
+ 'integrationConnections'?: Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>;
2346
2330
  'wholesaleCost'?: VariantWholesaleCost;
2347
2331
  /**
2348
2332
  * @deprecated
@@ -2367,13 +2351,6 @@ export interface VariantGfnVariant {
2367
2351
  */
2368
2352
  'metafields'?: Array<MetaField>;
2369
2353
  }
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
2354
  export interface VariantProduct {
2378
2355
  /**
2379
2356
  * Unique object identifier
@@ -3717,7 +3694,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3717
3694
  * @param {*} [options] Override http request option.
3718
3695
  * @throws {RequiredError}
3719
3696
  */
3720
- autoMerchProducts(project: string, autoMerchProductsRequest?: AutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoMerchProducts202Response>>;
3697
+ autoMerchProducts(project: string, autoMerchProductsRequest?: AutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportProducts202Response>>;
3721
3698
  /**
3722
3699
  * 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
3700
  * @summary Create product
@@ -3753,7 +3730,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3753
3730
  * @param {*} [options] Override http request option.
3754
3731
  * @throws {RequiredError}
3755
3732
  */
3756
- duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateProducts202Response>>;
3733
+ duplicateProducts(project: string, duplicateProductsRequest?: DuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportProducts202Response>>;
3757
3734
  /**
3758
3735
  * Export the project\'s products and variants as a CSV file.
3759
3736
  * @summary Export products
@@ -3828,7 +3805,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
3828
3805
  * @param {*} [options] Override http request option.
3829
3806
  * @throws {RequiredError}
3830
3807
  */
3831
- seoOptimiseProducts(project: string, seoOptimiseProductsRequest?: SeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimiseProducts202Response>>;
3808
+ seoOptimiseProducts(project: string, seoOptimiseProductsRequest?: SeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportProducts202Response>>;
3832
3809
  /**
3833
3810
  * Updates a product by a given ID.
3834
3811
  * @summary Update product
@@ -3860,7 +3837,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3860
3837
  * @param {*} [options] Override http request option.
3861
3838
  * @throws {RequiredError}
3862
3839
  */
3863
- autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoMerchProducts202Response>;
3840
+ autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExportProducts202Response>;
3864
3841
  /**
3865
3842
  * 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
3843
  * @summary Create product
@@ -3892,7 +3869,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3892
3869
  * @param {*} [options] Override http request option.
3893
3870
  * @throws {RequiredError}
3894
3871
  */
3895
- duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DuplicateProducts202Response>;
3872
+ duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExportProducts202Response>;
3896
3873
  /**
3897
3874
  * Export the project\'s products and variants as a CSV file.
3898
3875
  * @summary Export products
@@ -3932,7 +3909,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
3932
3909
  * @param {*} [options] Override http request option.
3933
3910
  * @throws {RequiredError}
3934
3911
  */
3935
- seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimiseProducts202Response>;
3912
+ seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExportProducts202Response>;
3936
3913
  /**
3937
3914
  * Updates a product by a given ID.
3938
3915
  * @summary Update product
@@ -4241,7 +4218,7 @@ export declare class ProductsApi extends BaseAPI {
4241
4218
  * @param {*} [options] Override http request option.
4242
4219
  * @throws {RequiredError}
4243
4220
  */
4244
- autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AutoMerchProducts202Response, any, {}>>;
4221
+ autoMerchProducts(requestParameters: ProductsApiAutoMerchProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportProducts202Response, any, {}>>;
4245
4222
  /**
4246
4223
  * 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
4224
  * @summary Create product
@@ -4273,7 +4250,7 @@ export declare class ProductsApi extends BaseAPI {
4273
4250
  * @param {*} [options] Override http request option.
4274
4251
  * @throws {RequiredError}
4275
4252
  */
4276
- duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateProducts202Response, any, {}>>;
4253
+ duplicateProducts(requestParameters: ProductsApiDuplicateProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportProducts202Response, any, {}>>;
4277
4254
  /**
4278
4255
  * Export the project\'s products and variants as a CSV file.
4279
4256
  * @summary Export products
@@ -4313,7 +4290,7 @@ export declare class ProductsApi extends BaseAPI {
4313
4290
  * @param {*} [options] Override http request option.
4314
4291
  * @throws {RequiredError}
4315
4292
  */
4316
- seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimiseProducts202Response, any, {}>>;
4293
+ seoOptimiseProducts(requestParameters: ProductsApiSeoOptimiseProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportProducts202Response, any, {}>>;
4317
4294
  /**
4318
4295
  * Updates a product by a given ID.
4319
4296
  * @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.99.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -154,6 +154,8 @@ exports.TextApplicationPropertiesFontStyleEnum = {
154
154
  exports.TextApplicationPropertiesPersonalizationTypeEnum = {
155
155
  Text: 'text',
156
156
  Number: 'number',
157
+ Textarea: 'textarea',
158
+ Dropdown: 'dropdown',
157
159
  };
158
160
  exports.UpdateProductsRequestProductsInnerVariantsInnerAttributesInnerNameEnum = {
159
161
  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.99.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.99.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.99.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.99.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.99.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.99.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).