@teemill/product-catalog 1.88.0 → 1.89.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 (47) hide show
  1. package/README.md +9 -2
  2. package/api.ts +135 -17
  3. package/base.ts +3 -3
  4. package/common.ts +3 -3
  5. package/configuration.ts +3 -3
  6. package/dist/api.d.ts +132 -17
  7. package/dist/api.js +13 -9
  8. package/dist/base.d.ts +3 -3
  9. package/dist/base.js +3 -3
  10. package/dist/common.d.ts +3 -3
  11. package/dist/common.js +3 -3
  12. package/dist/configuration.d.ts +3 -3
  13. package/dist/configuration.js +3 -3
  14. package/dist/esm/api.d.ts +132 -17
  15. package/dist/esm/api.js +11 -7
  16. package/dist/esm/base.d.ts +3 -3
  17. package/dist/esm/base.js +3 -3
  18. package/dist/esm/common.d.ts +3 -3
  19. package/dist/esm/common.js +3 -3
  20. package/dist/esm/configuration.d.ts +3 -3
  21. package/dist/esm/configuration.js +3 -3
  22. package/dist/esm/index.d.ts +3 -3
  23. package/dist/esm/index.js +3 -3
  24. package/dist/index.d.ts +3 -3
  25. package/dist/index.js +3 -3
  26. package/docs/Application.md +1 -1
  27. package/docs/ApplicationPropertiesPositionInference.md +1 -1
  28. package/docs/BundleProduct.md +2 -0
  29. package/docs/CreateApplication.md +1 -1
  30. package/docs/CreateDigitalProduct.md +25 -0
  31. package/docs/CreateDigitalProductVariantsInner.md +24 -0
  32. package/docs/CreateDigitalProductVariantsInnerAttributesInner.md +22 -0
  33. package/docs/CreateDigitalProductVariantsInnerImagesInner.md +20 -0
  34. package/docs/CreateProduct.md +2 -2
  35. package/docs/CreateProductRequest.md +4 -2
  36. package/docs/CreateProductVariant.md +2 -2
  37. package/docs/CreateProductVariantAttributesInner.md +22 -0
  38. package/docs/Product.md +2 -0
  39. package/docs/ProductBundleItemsInner.md +2 -0
  40. package/docs/ProductGfnProduct.md +25 -0
  41. package/docs/ProductWarehouseProduct.md +2 -1
  42. package/docs/ProductsApi.md +1 -1
  43. package/docs/Variant.md +2 -0
  44. package/docs/VariantGfnVariant.md +25 -0
  45. package/docs/VariantWarehouseVariant.md +2 -1
  46. package/index.ts +3 -3
  47. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ # CreateDigitalProductVariantsInnerImagesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **src** | **string** | Publicly available file URL. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { CreateDigitalProductVariantsInnerImagesInner } from '@teemill/product-catalog';
14
+
15
+ const instance: CreateDigitalProductVariantsInnerImagesInner = {
16
+ src,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **gfnProductRef** | **string** | Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API. | [default to undefined]
9
9
  **title** | **string** | Product title | [optional] [default to undefined]
10
10
  **description** | **string** | Product description | [optional] [default to undefined]
11
- **enabled** | **boolean** | Whether the product is enabled upon creation. | [optional] [default to undefined]
11
+ **enabled** | **boolean** | Whether the product is enabled upon creation. | [optional] [default to true]
12
12
  **slug** | **string** | A custom URL slug for the product. This must be unique for each product on the project. | [optional] [default to undefined]
13
13
  **brand** | **string** | The brand of the product. | [optional] [default to undefined]
14
14
  **seoMetadata** | [**UpdateProductsRequestProductsInnerSeoMetadata**](UpdateProductsRequestProductsInnerSeoMetadata.md) | | [optional] [default to undefined]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  **targetSearchPhraseSynonyms** | **Array<string>** | Synonyms for the target search phrase. **Note:** This field requires the website integration | [optional] [default to undefined]
17
17
  **tags** | **Array<string>** | Additional product tags used for searching and filtering. | [optional] [default to undefined]
18
18
  **internalTags** | **Array<string>** | Internal tags used for internal searching and filtering. | [optional] [default to undefined]
19
- **variants** | [**Array<CreateProductVariant>**](CreateProductVariant.md) | Variants | [default to undefined]
19
+ **variants** | [**Array<CreateProductVariant>**](CreateProductVariant.md) | The variants to create for this product. Each variant must specify attributes that match a variant in the GFN Catalog for the product referenced by gfnProductRef. Use the GFN Catalog API to list products and variants (e.g. GET /v1/gfn/catalog/products/{productId} and GET /v1/gfn/catalog/variants) to get the exact attribute names and values — they must match exactly, including casing. | [default to undefined]
20
20
  **images** | [**Array<CreateProductImagesInner>**](CreateProductImagesInner.md) | Images to attach to the product. For example, photos of models using/wearing the product. | [optional] [default to undefined]
21
21
  **videos** | [**Array<CreateProductVideosInner>**](CreateProductVideosInner.md) | Videos to attach to the product. | [optional] [default to undefined]
22
22
  **additionalFiles** | [**Array<CreateProductAdditionalFilesInner>**](CreateProductAdditionalFilesInner.md) | Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc. | [optional] [default to undefined]
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **gfnProductRef** | **string** | Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API. | [default to undefined]
9
- **title** | **string** | Product title | [optional] [default to undefined]
9
+ **title** | **string** | The title of the product | [default to undefined]
10
10
  **description** | **string** | Product description | [optional] [default to undefined]
11
11
  **enabled** | **boolean** | Whether the product is enabled upon creation. | [optional] [default to undefined]
12
12
  **slug** | **string** | A custom URL slug for the product. This must be unique for each product on the project. | [optional] [default to undefined]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  **targetSearchPhraseSynonyms** | **Array<string>** | Synonyms for the target search phrase. **Note:** This field requires the website integration | [optional] [default to undefined]
17
17
  **tags** | **Array<string>** | Additional product tags used for searching and filtering. | [optional] [default to undefined]
18
18
  **internalTags** | **Array<string>** | Internal tags used for internal searching and filtering. | [optional] [default to undefined]
19
- **variants** | [**Array<CreateProductVariant>**](CreateProductVariant.md) | Variants | [default to undefined]
19
+ **variants** | [**Array<CreateDigitalProductVariantsInner>**](CreateDigitalProductVariantsInner.md) | A list of variants to create for the product. | [default to undefined]
20
20
  **images** | [**Array<CreateProductImagesInner>**](CreateProductImagesInner.md) | Images to attach to the product. For example, photos of models using/wearing the product. | [optional] [default to undefined]
21
21
  **videos** | [**Array<CreateProductVideosInner>**](CreateProductVideosInner.md) | Videos to attach to the product. | [optional] [default to undefined]
22
22
  **additionalFiles** | [**Array<CreateProductAdditionalFilesInner>**](CreateProductAdditionalFilesInner.md) | Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc. | [optional] [default to undefined]
@@ -30,6 +30,7 @@ Name | Type | Description | Notes
30
30
  **retailPrice** | [**Price**](Price.md) | | [optional] [default to undefined]
31
31
  **salePrice** | [**SalePrice**](SalePrice.md) | | [optional] [default to undefined]
32
32
  **price** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
33
+ **isDigital** | **boolean** | An explicit flag to indicate that the product is a digital product. | [default to undefined]
33
34
 
34
35
  ## Example
35
36
 
@@ -62,6 +63,7 @@ const instance: CreateProductRequest = {
62
63
  retailPrice,
63
64
  salePrice,
64
65
  price,
66
+ isDigital,
65
67
  };
66
68
  ```
67
69
 
@@ -5,12 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **attributes** | [**Array<UpdateProductsRequestProductsInnerVariantsInnerAttributesInner>**](UpdateProductsRequestProductsInnerVariantsInnerAttributesInner.md) | Attributes associated to a variant such as Colour and Size. | [default to undefined]
8
+ **attributes** | [**Array<CreateProductVariantAttributesInner>**](CreateProductVariantAttributesInner.md) | One entry per attribute (e.g. Size, Colour). The name and value of each attribute must match the GFN Catalog API exactly — use the GFN Catalog API to list the product and its variants to get the exact strings (casing and spelling must match). | [default to undefined]
9
9
  **retailPrice** | [**UpdateProductsRequestProductsInnerVariantsInnerRetailPrice**](UpdateProductsRequestProductsInnerVariantsInnerRetailPrice.md) | | [default to undefined]
10
10
  **salePrice** | [**UpdateProductsRequestProductsInnerVariantsInnerSalePrice**](UpdateProductsRequestProductsInnerVariantsInnerSalePrice.md) | | [optional] [default to undefined]
11
11
  **sku** | **string** | A custom stock keeping unit for the variant. | [optional] [default to undefined]
12
12
  **applications** | [**Array<Application>**](Application.md) | Design applications. If not provided, the product will be blank. | [optional] [default to undefined]
13
- **images** | [**Array<CreateProductVariantImagesInner>**](CreateProductVariantImagesInner.md) | Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the warehouse product provided. Accepts PNG and JPEG files. | [optional] [default to undefined]
13
+ **images** | [**Array<CreateProductVariantImagesInner>**](CreateProductVariantImagesInner.md) | Only use if you want to override the main product image. If not provided, mockups will be generated using the design applications and the GFN Catalog product. Accepts PNG and JPEG files. | [optional] [default to undefined]
14
14
  **barcode** | **string** | The GTIN (Global Trade Item Number) or EAN (European Article Number) of the variant. Please note that a barcode can only be attached after the Barcodes module has been installed. | [optional] [default to undefined]
15
15
  **shopifyId** | **number** | For use with the Shopify integration. Use this to provide a Shopify variant ID to link to an existing Shopify variant rather than creating a new one. | [optional] [default to undefined]
16
16
  **integrationConnections** | [**Array<UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner>**](UpdateProductsRequestProductsInnerVariantsInnerIntegrationConnectionsInner.md) | | [optional] [default to undefined]
@@ -0,0 +1,22 @@
1
+ # CreateProductVariantAttributesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Attribute name as returned by the GFN Catalog API for this product (e.g. \"Size\", \"Colour\"). Must match exactly, including casing. | [default to undefined]
9
+ **value** | **string** | Attribute value as returned by the GFN Catalog API for this product (e.g. \"S\", \"White\"). Must match exactly, including casing. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CreateProductVariantAttributesInner } from '@teemill/product-catalog';
15
+
16
+ const instance: CreateProductVariantAttributesInner = {
17
+ name,
18
+ value,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Product.md CHANGED
@@ -36,6 +36,7 @@ Name | Type | Description | Notes
36
36
  **includeInDataFeeds** | **boolean** | | [optional] [default to undefined]
37
37
  **shopifyId** | **number** | For use with the Shopify integration. The Shopify product ID that this product is linked to. | [optional] [default to undefined]
38
38
  **warehouseProduct** | [**ProductWarehouseProduct**](ProductWarehouseProduct.md) | | [optional] [default to undefined]
39
+ **gfnProduct** | [**ProductGfnProduct**](ProductGfnProduct.md) | | [optional] [default to undefined]
39
40
  **metafields** | [**Array<MetaField>**](MetaField.md) | Key/value pairs that can be used to store additional information about the product | [optional] [default to undefined]
40
41
  **personalizationTemplate** | **string** | a JSON string representing the personalization template for the product | [optional] [default to undefined]
41
42
  **optimisationHistory** | [**Array<OptimisationHistoryItem>**](OptimisationHistoryItem.md) | History of AI optimisations performed on the product | [optional] [default to undefined]
@@ -81,6 +82,7 @@ const instance: Product = {
81
82
  includeInDataFeeds,
82
83
  shopifyId,
83
84
  warehouseProduct,
85
+ gfnProduct,
84
86
  metafields,
85
87
  personalizationTemplate,
86
88
  optimisationHistory,
@@ -35,6 +35,7 @@ Name | Type | Description | Notes
35
35
  **includeInDataFeeds** | **boolean** | | [optional] [default to undefined]
36
36
  **shopifyId** | **number** | For use with the Shopify integration. The Shopify product ID that this product is linked to. | [optional] [default to undefined]
37
37
  **warehouseProduct** | [**ProductWarehouseProduct**](ProductWarehouseProduct.md) | | [optional] [default to undefined]
38
+ **gfnProduct** | [**ProductGfnProduct**](ProductGfnProduct.md) | | [optional] [default to undefined]
38
39
  **metafields** | [**Array<MetaField>**](MetaField.md) | Key/value pairs that can be used to store additional information about the product | [optional] [default to undefined]
39
40
  **personalizationTemplate** | **string** | a JSON string representing the personalization template for the product | [optional] [default to undefined]
40
41
  **optimisationHistory** | [**Array<OptimisationHistoryItem>**](OptimisationHistoryItem.md) | History of AI optimisations performed on the product | [optional] [default to undefined]
@@ -79,6 +80,7 @@ const instance: ProductBundleItemsInner = {
79
80
  includeInDataFeeds,
80
81
  shopifyId,
81
82
  warehouseProduct,
83
+ gfnProduct,
82
84
  metafields,
83
85
  personalizationTemplate,
84
86
  optimisationHistory,
@@ -0,0 +1,25 @@
1
+ # ProductGfnProduct
2
+
3
+ The GFN Catalog product this catalog product is based on. Use the GFN Catalog API to list available products.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [optional] [default to undefined]
10
+ **gfnProductRef** | **string** | Reference to the product in the Global Fulfillment Network (GFN) catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API. | [optional] [default to undefined]
11
+ **metafields** | [**Array<MetaField>**](MetaField.md) | Meta fields from the GFN Catalog product | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ProductGfnProduct } from '@teemill/product-catalog';
17
+
18
+ const instance: ProductGfnProduct = {
19
+ id,
20
+ gfnProductRef,
21
+ metafields,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,5 +1,6 @@
1
1
  # ProductWarehouseProduct
2
2
 
3
+ The GFN Catalog product this catalog product is based on. Use the GFN Catalog API to list available products. (Deprecated Use `gfnProduct` instead)
3
4
 
4
5
  ## Properties
5
6
 
@@ -7,7 +8,7 @@ Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
9
  **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
10
  **gfnProductRef** | **string** | Reference to the product in the Global Fulfillment Network (GFN) catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API. | [optional] [default to undefined]
10
- **metafields** | [**Array<MetaField>**](MetaField.md) | Meta fields from the warehouse product | [optional] [default to undefined]
11
+ **metafields** | [**Array<MetaField>**](MetaField.md) | Meta fields from the GFN Catalog product | [optional] [default to undefined]
11
12
 
12
13
  ## Example
13
14
 
@@ -19,7 +19,7 @@ All URIs are relative to *https://api.podos.io*
19
19
  # **createProduct**
20
20
  > Product createProduct()
21
21
 
22
- Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
22
+ 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.
23
23
 
24
24
  ### Example
25
25
 
package/docs/Variant.md CHANGED
@@ -27,6 +27,7 @@ Name | Type | Description | Notes
27
27
  **integrationConnections** | [**Array<VariantIntegrationConnectionsInner>**](VariantIntegrationConnectionsInner.md) | | [optional] [default to undefined]
28
28
  **wholesaleCost** | [**VariantWholesaleCost**](VariantWholesaleCost.md) | | [optional] [default to undefined]
29
29
  **warehouseVariant** | [**VariantWarehouseVariant**](VariantWarehouseVariant.md) | | [optional] [default to undefined]
30
+ **gfnVariant** | [**VariantGfnVariant**](VariantGfnVariant.md) | | [optional] [default to undefined]
30
31
 
31
32
  ## Example
32
33
 
@@ -56,6 +57,7 @@ const instance: Variant = {
56
57
  integrationConnections,
57
58
  wholesaleCost,
58
59
  warehouseVariant,
60
+ gfnVariant,
59
61
  };
60
62
  ```
61
63
 
@@ -0,0 +1,25 @@
1
+ # VariantGfnVariant
2
+
3
+ The GFN Catalog variant this catalog variant corresponds to. Use the GFN Catalog API to list variants and their attributes.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique object identifier | [optional] [default to undefined]
10
+ **gfnVariantRef** | **string** | Reference to the variant in the Global Fulfillment Network (GFN) catalog. | [optional] [default to undefined]
11
+ **metafields** | [**Array<MetaField>**](MetaField.md) | Meta fields from the GFN Catalog variant | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { VariantGfnVariant } from '@teemill/product-catalog';
17
+
18
+ const instance: VariantGfnVariant = {
19
+ id,
20
+ gfnVariantRef,
21
+ metafields,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,5 +1,6 @@
1
1
  # VariantWarehouseVariant
2
2
 
3
+ The GFN Catalog variant this catalog variant corresponds to. Use the GFN Catalog API to list variants and their attributes. (Deprecated Use `gfnVariant` instead)
3
4
 
4
5
  ## Properties
5
6
 
@@ -7,7 +8,7 @@ Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
9
  **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
10
  **gfnVariantRef** | **string** | Reference to the variant in the Global Fulfillment Network (GFN) catalog. | [optional] [default to undefined]
10
- **metafields** | [**Array<MetaField>**](MetaField.md) | Meta fields from the warehouse variant | [optional] [default to undefined]
11
+ **metafields** | [**Array<MetaField>**](MetaField.md) | Meta fields from the GFN Catalog variant | [optional] [default to undefined]
11
12
 
12
13
  ## Example
13
14
 
package/index.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Product Catalog API
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 warehouse product, plus listing information such as title, description and tags.
4
+ * Product Catalog
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.88.0
7
+ * The version of the OpenAPI document: 1.89.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/product-catalog",
3
- "version": "1.88.0",
3
+ "version": "1.89.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {