@teemill/product-catalog 1.93.1 → 1.95.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.
package/dist/esm/index.js CHANGED
@@ -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.93.1
7
+ * The version of the OpenAPI document: 1.95.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.93.1
5
+ * The version of the OpenAPI document: 1.95.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.93.1
8
+ * The version of the OpenAPI document: 1.95.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Attribute.md CHANGED
@@ -1,14 +1,15 @@
1
1
  # Attribute
2
2
 
3
+ An attribute associated to a variant such as Colour and Size.
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | Attribute name | [default to undefined]
9
- **value** | **string** | Attribute value | [default to undefined]
9
+ **name** | **string** | Variant attribute name | [default to undefined]
10
+ **value** | **string** | Variant attribute value | [default to undefined]
10
11
  **thumbnail** | [**AttributeThumbnail**](AttributeThumbnail.md) | | [optional] [default to undefined]
11
- **tags** | **Array<string>** | Attribute tags | [optional] [default to undefined]
12
+ **tags** | **Array<string>** | Variant attribute tags | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
@@ -0,0 +1,20 @@
1
+ # AutoMerchProducts202Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | A message describing the auto merchandising status | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { AutoMerchProducts202Response } from '@teemill/product-catalog';
14
+
15
+ const instance: AutoMerchProducts202Response = {
16
+ message,
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)
@@ -0,0 +1,22 @@
1
+ # AutoMerchProductsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **ids** | **Array<string>** | A set of product IDs to AI auto merchandise. | [default to undefined]
9
+ **fields** | **Array<string>** | If provided, only the specified fields will be updated. Supports AI SEO field keys (e.g. \"title\", \"targetSearchPhraseData\") and merchandising field keys with an \"append\" or \"remove\" suffix (e.g. \"lifestyleImages.append\", \"colours.remove\"). | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AutoMerchProductsRequest } from '@teemill/product-catalog';
15
+
16
+ const instance: AutoMerchProductsRequest = {
17
+ ids,
18
+ fields,
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
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
17
17
  **targetSearchPhraseData** | [**TargetSearchPhraseData**](TargetSearchPhraseData.md) | | [optional] [default to undefined]
18
18
  **tags** | **Array<string>** | | [optional] [default to undefined]
19
19
  **internalTags** | **Array<string>** | | [optional] [default to undefined]
20
+ **attributes** | [**Array<ProductAttribute>**](ProductAttribute.md) | Attributes associated to a product such as product colours and sizes | [optional] [default to undefined]
20
21
  **createdAt** | **string** | | [optional] [default to undefined]
21
22
  **updatedAt** | **string** | | [optional] [default to undefined]
22
23
  **publishedAt** | **string** | | [optional] [default to undefined]
@@ -66,6 +67,7 @@ const instance: Product = {
66
67
  targetSearchPhraseData,
67
68
  tags,
68
69
  internalTags,
70
+ attributes,
69
71
  createdAt,
70
72
  updatedAt,
71
73
  publishedAt,
@@ -0,0 +1,22 @@
1
+ # ProductAttribute
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Attribute name, this can only be \'Colour\' or \'Size\' for now | [default to undefined]
9
+ **values** | [**Array<ProductAttributeValue1>**](ProductAttributeValue1.md) | Attribute values | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ProductAttribute } from '@teemill/product-catalog';
15
+
16
+ const instance: ProductAttribute = {
17
+ name,
18
+ values,
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)
@@ -0,0 +1,22 @@
1
+ # ProductAttributeValue
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sortOrder** | **number** | Position of the value when ordered | [default to undefined]
9
+ **value** | **string** | The specific size or colour value. This must match the GFN Catalog API exactly. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ProductAttributeValue } from '@teemill/product-catalog';
15
+
16
+ const instance: ProductAttributeValue = {
17
+ sortOrder,
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)
@@ -0,0 +1,22 @@
1
+ # ProductAttributeValue1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sortOrder** | **number** | Position of the value when ordered | [default to undefined]
9
+ **value** | **string** | Product attribute value | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ProductAttributeValue1 } from '@teemill/product-catalog';
15
+
16
+ const instance: ProductAttributeValue1 = {
17
+ sortOrder,
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)
@@ -4,6 +4,7 @@ All URIs are relative to *https://api.podos.io*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**autoMerchProducts**](#automerchproducts) | **POST** /v1/catalog/products/auto-merch | AI auto merchandise products.|
7
8
  |[**createProduct**](#createproduct) | **POST** /v1/catalog/products | Create product|
8
9
  |[**deleteProduct**](#deleteproduct) | **DELETE** /v1/catalog/products/{productId} | Delete catalog product|
9
10
  |[**deleteProducts**](#deleteproducts) | **DELETE** /v1/catalog/products | Delete products|
@@ -16,6 +17,66 @@ All URIs are relative to *https://api.podos.io*
16
17
  |[**updateProduct**](#updateproduct) | **PATCH** /v1/catalog/products/{productId} | Update product|
17
18
  |[**updateProducts**](#updateproducts) | **PATCH** /v1/catalog/products | Update products|
18
19
 
20
+ # **autoMerchProducts**
21
+ > AutoMerchProducts202Response autoMerchProducts()
22
+
23
+ AI auto merchandises products by a set of given IDs. Runs AI SEO optimisation alongside updates to mockups, colours and other merchandising properties.
24
+
25
+ ### Example
26
+
27
+ ```typescript
28
+ import {
29
+ ProductsApi,
30
+ Configuration,
31
+ AutoMerchProductsRequest
32
+ } from '@teemill/product-catalog';
33
+
34
+ const configuration = new Configuration();
35
+ const apiInstance = new ProductsApi(configuration);
36
+
37
+ let project: string; //What project it is (default to undefined)
38
+ let autoMerchProductsRequest: AutoMerchProductsRequest; //A set of product IDs to AI auto merchandise. (optional)
39
+
40
+ const { status, data } = await apiInstance.autoMerchProducts(
41
+ project,
42
+ autoMerchProductsRequest
43
+ );
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ |Name | Type | Description | Notes|
49
+ |------------- | ------------- | ------------- | -------------|
50
+ | **autoMerchProductsRequest** | **AutoMerchProductsRequest**| A set of product IDs to AI auto merchandise. | |
51
+ | **project** | [**string**] | What project it is | defaults to undefined|
52
+
53
+
54
+ ### Return type
55
+
56
+ **AutoMerchProducts202Response**
57
+
58
+ ### Authorization
59
+
60
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: application/json
65
+ - **Accept**: application/json
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ |**202** | Products queued for auto merchandising. | - |
72
+ |**400** | Failed validation. | - |
73
+ |**401** | Not authorised to access this resource. | - |
74
+ |**403** | Refuse to authorize. | - |
75
+ |**404** | Resource not found. | - |
76
+ |**500** | Unknown server error. | - |
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
79
+
19
80
  # **createProduct**
20
81
  > Product createProduct()
21
82
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
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]
13
13
  **brand** | **string** | The brand of the product. | [optional] [default to undefined]
14
+ **attributes** | [**Array<UpdateProductRequestAttributesInner>**](UpdateProductRequestAttributesInner.md) | Attributes associated to a product such as product colours and sizes. The name and values must match the GFN Catalog API exactly — use the GFN Catalog API to list the product to get the exact strings (casing and spelling must match). If present, any new variant attributes and values must be included in this list. | [optional] [default to undefined]
14
15
  **seoMetadata** | [**UpdateProductsRequestProductsInnerSeoMetadata**](UpdateProductsRequestProductsInnerSeoMetadata.md) | | [optional] [default to undefined]
15
16
  **targetSearchPhrase** | **string** | The primary target search phrase for the product that you wish to rank for in search engine results. **Note:** This field requires the website integration | [optional] [default to undefined]
16
17
  **targetSearchPhraseSynonyms** | **Array<string>** | Synonyms for the target search phrase. **Note:** This field requires the website integration | [optional] [default to undefined]
@@ -45,6 +46,7 @@ const instance: UpdateProductRequest = {
45
46
  enabled,
46
47
  slug,
47
48
  brand,
49
+ attributes,
48
50
  seoMetadata,
49
51
  targetSearchPhrase,
50
52
  targetSearchPhraseSynonyms,
@@ -0,0 +1,22 @@
1
+ # UpdateProductRequestAttributesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Product attribute name, this can only be \'Colour\' or \'Size\' for now | [default to undefined]
9
+ **values** | [**Array<ProductAttributeValue>**](ProductAttributeValue.md) | List of product attribute values, each including a sort order and an option value (e.g., \'Black\', \'Blue\', \'XL\', \'XXL\'). Any existing values not included here will be removed, along with any variants that use them. Any new values listed will be added to the product. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdateProductRequestAttributesInner } from '@teemill/product-catalog';
15
+
16
+ const instance: UpdateProductRequestAttributesInner = {
17
+ name,
18
+ values,
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/index.ts CHANGED
@@ -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.93.1
7
+ * The version of the OpenAPI document: 1.95.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.93.1",
3
+ "version": "1.95.0",
4
4
  "description": "OpenAPI client for @teemill/product-catalog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {