@teemill/product-catalog 1.90.2 → 1.92.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/.openapi-generator/FILES +3 -0
- package/README.md +5 -2
- package/api.ts +221 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +136 -3
- package/dist/api.js +88 -6
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +136 -3
- package/dist/esm/api.js +88 -6
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CreateProduct.md +2 -0
- package/docs/CreateProductRequest.md +2 -0
- package/docs/Product.md +4 -0
- package/docs/ProductAnalytics.md +29 -0
- package/docs/ProductStaticCollectionsInner.md +22 -0
- package/docs/ProductsApi.md +43 -1
- package/docs/UpdateProductRequest.md +2 -0
- package/docs/UpdateProductsRequestProductsInner.md +2 -0
- package/docs/UpdateProductsRequestProductsInnerCollectionsInner.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Product Catalog
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.92.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.
|
|
5
|
+
* The version of the OpenAPI document: 1.92.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.92.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.
|
|
5
|
+
* The version of the OpenAPI document: 1.92.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.92.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/CreateProduct.md
CHANGED
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**applicationSets** | **Array<string>** | List of application set UUIDs to associate with this product | [optional] [default to undefined]
|
|
24
24
|
**includeInDataFeeds** | **boolean** | Whether the product should be included in data feeds that can be provided to Google, Meta etc for advertising. | [optional] [default to true]
|
|
25
25
|
**shopifyId** | **number** | 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. | [optional] [default to undefined]
|
|
26
|
+
**collections** | [**Array<UpdateProductsRequestProductsInnerCollectionsInner>**](UpdateProductsRequestProductsInnerCollectionsInner.md) | An exclusive list of collection IDs to assign to the product. Replaces all existing static collection memberships. Requires the website integration. | [optional] [default to undefined]
|
|
26
27
|
**metafields** | [**Array<MetaField>**](MetaField.md) | Key/value pairs that can be used to store additional information about the product | [optional] [default to undefined]
|
|
27
28
|
**personalizationTemplate** | **string** | A JSON object that defines the personalization template for the product. | [optional] [default to undefined]
|
|
28
29
|
**license** | [**UpdateProductsRequestProductsInnerLicense**](UpdateProductsRequestProductsInnerLicense.md) | | [optional] [default to undefined]
|
|
@@ -51,6 +52,7 @@ const instance: CreateProduct = {
|
|
|
51
52
|
applicationSets,
|
|
52
53
|
includeInDataFeeds,
|
|
53
54
|
shopifyId,
|
|
55
|
+
collections,
|
|
54
56
|
metafields,
|
|
55
57
|
personalizationTemplate,
|
|
56
58
|
license,
|
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**applicationSets** | **Array<string>** | List of application set UUIDs to associate with this product | [optional] [default to undefined]
|
|
24
24
|
**includeInDataFeeds** | **boolean** | Whether the product should be included in data feeds that can be provided to Google, Meta etc for advertising. | [optional] [default to true]
|
|
25
25
|
**shopifyId** | **number** | 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. | [optional] [default to undefined]
|
|
26
|
+
**collections** | [**Array<UpdateProductsRequestProductsInnerCollectionsInner>**](UpdateProductsRequestProductsInnerCollectionsInner.md) | An exclusive list of collection IDs to assign to the product. Replaces all existing static collection memberships. Requires the website integration. | [optional] [default to undefined]
|
|
26
27
|
**metafields** | [**Array<MetaField>**](MetaField.md) | Key/value pairs that can be used to store additional information about the product | [optional] [default to undefined]
|
|
27
28
|
**personalizationTemplate** | **string** | A JSON object that defines the personalization template for the product. | [optional] [default to undefined]
|
|
28
29
|
**license** | [**UpdateProductsRequestProductsInnerLicense**](UpdateProductsRequestProductsInnerLicense.md) | | [optional] [default to undefined]
|
|
@@ -56,6 +57,7 @@ const instance: CreateProductRequest = {
|
|
|
56
57
|
applicationSets,
|
|
57
58
|
includeInDataFeeds,
|
|
58
59
|
shopifyId,
|
|
60
|
+
collections,
|
|
59
61
|
metafields,
|
|
60
62
|
personalizationTemplate,
|
|
61
63
|
license,
|
package/docs/Product.md
CHANGED
|
@@ -45,6 +45,8 @@ Name | Type | Description | Notes
|
|
|
45
45
|
**license** | [**License**](License.md) | | [optional] [default to undefined]
|
|
46
46
|
**createdBy** | **string** | The user ID of the user who created the product | [optional] [default to undefined]
|
|
47
47
|
**isDigital** | **boolean** | Whether the product is digital | [optional] [default to false]
|
|
48
|
+
**analytics** | [**ProductAnalytics**](ProductAnalytics.md) | | [optional] [default to undefined]
|
|
49
|
+
**staticCollections** | [**Array<ProductStaticCollectionsInner>**](ProductStaticCollectionsInner.md) | The static (non-dynamic/filter-based) collections this product belongs to. | [optional] [default to undefined]
|
|
48
50
|
|
|
49
51
|
## Example
|
|
50
52
|
|
|
@@ -92,6 +94,8 @@ const instance: Product = {
|
|
|
92
94
|
license,
|
|
93
95
|
createdBy,
|
|
94
96
|
isDigital,
|
|
97
|
+
analytics,
|
|
98
|
+
staticCollections,
|
|
95
99
|
};
|
|
96
100
|
```
|
|
97
101
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ProductAnalytics
|
|
2
|
+
|
|
3
|
+
Product analytics metrics. Only present when \'analytics\' is included in the fields query parameter.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**revenue** | **number** | Total revenue for this product within the date range | [optional] [default to undefined]
|
|
10
|
+
**sales** | **number** | Total number of sales for this product within the date range | [optional] [default to undefined]
|
|
11
|
+
**traffic** | **number** | Total page views for this product within the date range | [optional] [default to undefined]
|
|
12
|
+
**conversionRate** | **number** | Conversion rate as a percentage (sales / traffic * 100) | [optional] [default to undefined]
|
|
13
|
+
**basketRate** | **number** | Basket rate as a percentage (cart adds / traffic * 100) | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ProductAnalytics } from '@teemill/product-catalog';
|
|
19
|
+
|
|
20
|
+
const instance: ProductAnalytics = {
|
|
21
|
+
revenue,
|
|
22
|
+
sales,
|
|
23
|
+
traffic,
|
|
24
|
+
conversionRate,
|
|
25
|
+
basketRate,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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
|
+
# ProductStaticCollectionsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ProductStaticCollectionsInner } from '@teemill/product-catalog';
|
|
15
|
+
|
|
16
|
+
const instance: ProductStaticCollectionsInner = {
|
|
17
|
+
id,
|
|
18
|
+
title,
|
|
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/ProductsApi.md
CHANGED
|
@@ -478,6 +478,20 @@ let maxRetailPrice: number; //Specify the maximum retail price to filter by. Pro
|
|
|
478
478
|
let minRetailPrice: number; //Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value. (optional) (default to undefined)
|
|
479
479
|
let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 10)
|
|
480
480
|
let fields: string; //Filter response fields to only include a subset of the resource. (optional) (default to undefined)
|
|
481
|
+
let dateRangeStartDate: string; //Start date for the date range filter (ISO 8601 format) (optional) (default to undefined)
|
|
482
|
+
let dateRangeEndDate: string; //End date for the date range filter (ISO 8601 format) (optional) (default to undefined)
|
|
483
|
+
let minimumRevenue: number; //Filter to only include products with total revenue greater than or equal to this amount (optional) (default to undefined)
|
|
484
|
+
let maximumRevenue: number; //Filter to only include products with total revenue less than or equal to this amount (optional) (default to undefined)
|
|
485
|
+
let minimumSales: number; //Filter to only include products with total sales greater than or equal to this number (optional) (default to undefined)
|
|
486
|
+
let maximumSales: number; //Filter to only include products with total sales less than or equal to this number (optional) (default to undefined)
|
|
487
|
+
let minimumBasketPercent: number; //Filter to only include products where the average basket percentage is greater than or equal to this value (optional) (default to undefined)
|
|
488
|
+
let maximumBasketPercent: number; //Filter to only include products where the average basket percentage is less than or equal to this value (optional) (default to undefined)
|
|
489
|
+
let minimumTraffic: number; //Filter to only include products with total traffic greater than or equal to this number (optional) (default to undefined)
|
|
490
|
+
let maximumTraffic: number; //Filter to only include products with total traffic less than or equal to this number (optional) (default to undefined)
|
|
491
|
+
let createdBefore: string; //Filter to only include products created before the given date (optional) (default to undefined)
|
|
492
|
+
let createdAfter: string; //Filter to only include products created after the given date (optional) (default to undefined)
|
|
493
|
+
let updatedBefore: string; //Filter to only include products updated before the given date (optional) (default to undefined)
|
|
494
|
+
let updatedAfter: string; //Filter to only include products updated after the given date (optional) (default to undefined)
|
|
481
495
|
|
|
482
496
|
const { status, data } = await apiInstance.listProducts(
|
|
483
497
|
project,
|
|
@@ -490,7 +504,21 @@ const { status, data } = await apiInstance.listProducts(
|
|
|
490
504
|
maxRetailPrice,
|
|
491
505
|
minRetailPrice,
|
|
492
506
|
pageSize,
|
|
493
|
-
fields
|
|
507
|
+
fields,
|
|
508
|
+
dateRangeStartDate,
|
|
509
|
+
dateRangeEndDate,
|
|
510
|
+
minimumRevenue,
|
|
511
|
+
maximumRevenue,
|
|
512
|
+
minimumSales,
|
|
513
|
+
maximumSales,
|
|
514
|
+
minimumBasketPercent,
|
|
515
|
+
maximumBasketPercent,
|
|
516
|
+
minimumTraffic,
|
|
517
|
+
maximumTraffic,
|
|
518
|
+
createdBefore,
|
|
519
|
+
createdAfter,
|
|
520
|
+
updatedBefore,
|
|
521
|
+
updatedAfter
|
|
494
522
|
);
|
|
495
523
|
```
|
|
496
524
|
|
|
@@ -509,6 +537,20 @@ const { status, data } = await apiInstance.listProducts(
|
|
|
509
537
|
| **minRetailPrice** | [**number**] | Specify the minimum retail price to filter by. Products will be included so long as either at least one variant or the product itself (in the case of bundles) has a retail price greater than or equal to the specified value. | (optional) defaults to undefined|
|
|
510
538
|
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 10|
|
|
511
539
|
| **fields** | [**string**] | Filter response fields to only include a subset of the resource. | (optional) defaults to undefined|
|
|
540
|
+
| **dateRangeStartDate** | [**string**] | Start date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
|
|
541
|
+
| **dateRangeEndDate** | [**string**] | End date for the date range filter (ISO 8601 format) | (optional) defaults to undefined|
|
|
542
|
+
| **minimumRevenue** | [**number**] | Filter to only include products with total revenue greater than or equal to this amount | (optional) defaults to undefined|
|
|
543
|
+
| **maximumRevenue** | [**number**] | Filter to only include products with total revenue less than or equal to this amount | (optional) defaults to undefined|
|
|
544
|
+
| **minimumSales** | [**number**] | Filter to only include products with total sales greater than or equal to this number | (optional) defaults to undefined|
|
|
545
|
+
| **maximumSales** | [**number**] | Filter to only include products with total sales less than or equal to this number | (optional) defaults to undefined|
|
|
546
|
+
| **minimumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is greater than or equal to this value | (optional) defaults to undefined|
|
|
547
|
+
| **maximumBasketPercent** | [**number**] | Filter to only include products where the average basket percentage is less than or equal to this value | (optional) defaults to undefined|
|
|
548
|
+
| **minimumTraffic** | [**number**] | Filter to only include products with total traffic greater than or equal to this number | (optional) defaults to undefined|
|
|
549
|
+
| **maximumTraffic** | [**number**] | Filter to only include products with total traffic less than or equal to this number | (optional) defaults to undefined|
|
|
550
|
+
| **createdBefore** | [**string**] | Filter to only include products created before the given date | (optional) defaults to undefined|
|
|
551
|
+
| **createdAfter** | [**string**] | Filter to only include products created after the given date | (optional) defaults to undefined|
|
|
552
|
+
| **updatedBefore** | [**string**] | Filter to only include products updated before the given date | (optional) defaults to undefined|
|
|
553
|
+
| **updatedAfter** | [**string**] | Filter to only include products updated after the given date | (optional) defaults to undefined|
|
|
512
554
|
|
|
513
555
|
|
|
514
556
|
### Return type
|
|
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
|
|
|
31
31
|
**license** | [**UpdateProductsRequestProductsInnerLicense**](UpdateProductsRequestProductsInnerLicense.md) | | [optional] [default to undefined]
|
|
32
32
|
**integrationConnections** | [**Array<UpdateProductRequestIntegrationConnectionsInner>**](UpdateProductRequestIntegrationConnectionsInner.md) | Integration connections for the product | [optional] [default to undefined]
|
|
33
33
|
**showSaleBadge** | **boolean** | Whether to show a sale badge on the product | [optional] [default to true]
|
|
34
|
+
**collections** | [**Array<UpdateProductsRequestProductsInnerCollectionsInner>**](UpdateProductsRequestProductsInnerCollectionsInner.md) | An exclusive list of collection IDs to assign to the product. Replaces all existing static collection memberships. Requires the website integration. | [optional] [default to undefined]
|
|
34
35
|
|
|
35
36
|
## Example
|
|
36
37
|
|
|
@@ -64,6 +65,7 @@ const instance: UpdateProductRequest = {
|
|
|
64
65
|
license,
|
|
65
66
|
integrationConnections,
|
|
66
67
|
showSaleBadge,
|
|
68
|
+
collections,
|
|
67
69
|
};
|
|
68
70
|
```
|
|
69
71
|
|
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**shopifyId** | **number** | 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. | [optional] [default to undefined]
|
|
20
20
|
**integrationConnections** | [**Array<UpdateProductsRequestProductsInnerIntegrationConnectionsInner>**](UpdateProductsRequestProductsInnerIntegrationConnectionsInner.md) | | [optional] [default to undefined]
|
|
21
21
|
**showSaleBadge** | **boolean** | Whether to show a sale badge on the product | [optional] [default to true]
|
|
22
|
+
**collections** | [**Array<UpdateProductsRequestProductsInnerCollectionsInner>**](UpdateProductsRequestProductsInnerCollectionsInner.md) | An exclusive list of collection IDs to assign to the product. Replaces all existing static collection memberships. Requires the website integration. | [optional] [default to undefined]
|
|
22
23
|
**license** | [**UpdateProductsRequestProductsInnerLicense**](UpdateProductsRequestProductsInnerLicense.md) | | [optional] [default to undefined]
|
|
23
24
|
|
|
24
25
|
## Example
|
|
@@ -41,6 +42,7 @@ const instance: UpdateProductsRequestProductsInner = {
|
|
|
41
42
|
shopifyId,
|
|
42
43
|
integrationConnections,
|
|
43
44
|
showSaleBadge,
|
|
45
|
+
collections,
|
|
44
46
|
license,
|
|
45
47
|
};
|
|
46
48
|
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateProductsRequestProductsInnerCollectionsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateProductsRequestProductsInnerCollectionsInner } from '@teemill/product-catalog';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateProductsRequestProductsInnerCollectionsInner = {
|
|
16
|
+
id,
|
|
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)
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.92.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|