@teemill/product-catalog 1.6.3 → 1.6.5
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 +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -4
- package/dist/apis/ProductsApi.d.ts +10 -10
- package/dist/apis/ProductsApi.js +10 -10
- package/dist/apis/VariantsApi.d.ts +6 -6
- package/dist/apis/VariantsApi.js +6 -6
- package/dist/models/ApiError.d.ts +2 -2
- package/dist/models/ApiError.js +2 -2
- package/dist/models/Attribute.d.ts +2 -2
- package/dist/models/Attribute.js +2 -2
- package/dist/models/AttributeThumbnail.d.ts +3 -3
- package/dist/models/AttributeThumbnail.js +2 -2
- package/dist/models/CreateProductRequest.d.ts +7 -7
- package/dist/models/CreateProductRequest.js +2 -2
- package/dist/models/CreateProductRequestVariantsInner.d.ts +10 -10
- package/dist/models/CreateProductRequestVariantsInner.js +9 -7
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +12 -8
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +14 -8
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +4 -4
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +6 -5
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +3 -3
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +2 -2
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +37 -0
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +53 -0
- package/dist/models/Image.d.ts +2 -2
- package/dist/models/Image.js +2 -2
- package/dist/models/ImportProducts200Response.d.ts +2 -2
- package/dist/models/ImportProducts200Response.js +2 -2
- package/dist/models/Price.d.ts +2 -2
- package/dist/models/Price.js +2 -2
- package/dist/models/Product.d.ts +3 -3
- package/dist/models/Product.js +2 -2
- package/dist/models/ProductAdditionalFilesInner.d.ts +3 -3
- package/dist/models/ProductAdditionalFilesInner.js +2 -2
- package/dist/models/ProductsResponse.d.ts +2 -2
- package/dist/models/ProductsResponse.js +2 -2
- package/dist/models/Stock.d.ts +2 -2
- package/dist/models/Stock.js +2 -2
- package/dist/models/Variant.d.ts +2 -2
- package/dist/models/Variant.js +2 -2
- package/dist/models/VariantProduct.d.ts +2 -2
- package/dist/models/VariantProduct.js +2 -2
- package/dist/models/VariantsResponse.d.ts +2 -2
- package/dist/models/VariantsResponse.js +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +10 -10
- package/src/apis/VariantsApi.ts +6 -6
- package/src/models/ApiError.ts +2 -2
- package/src/models/Attribute.ts +2 -2
- package/src/models/AttributeThumbnail.ts +3 -3
- package/src/models/CreateProductRequest.ts +7 -7
- package/src/models/CreateProductRequestVariantsInner.ts +20 -18
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +20 -13
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +8 -6
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +3 -3
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +75 -0
- package/src/models/Image.ts +2 -2
- package/src/models/ImportProducts200Response.ts +2 -2
- package/src/models/Price.ts +2 -2
- package/src/models/Product.ts +3 -3
- package/src/models/ProductAdditionalFilesInner.ts +3 -3
- package/src/models/ProductsResponse.ts +2 -2
- package/src/models/Stock.ts +2 -2
- package/src/models/Variant.ts +2 -2
- package/src/models/VariantProduct.ts +2 -2
- package/src/models/VariantsResponse.ts +2 -2
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +2 -2
package/src/apis/ProductsApi.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -63,8 +63,8 @@ export interface ImportProductsRequest {
|
|
|
63
63
|
export class ProductsApi extends runtime.BaseAPI {
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Creates a catalog product
|
|
67
|
-
* Create
|
|
66
|
+
* 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.
|
|
67
|
+
* Create product
|
|
68
68
|
*/
|
|
69
69
|
async createProductRaw(requestParameters: CreateProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Product>> {
|
|
70
70
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
@@ -102,8 +102,8 @@ export class ProductsApi extends runtime.BaseAPI {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Creates a catalog product
|
|
106
|
-
* Create
|
|
105
|
+
* 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.
|
|
106
|
+
* Create product
|
|
107
107
|
*/
|
|
108
108
|
async createProduct(
|
|
109
109
|
project: string,
|
|
@@ -122,7 +122,7 @@ export class ProductsApi extends runtime.BaseAPI {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* Gets a product by
|
|
125
|
+
* Gets a product by a given ID.
|
|
126
126
|
* Get product
|
|
127
127
|
*/
|
|
128
128
|
async getProductRaw(requestParameters: GetProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Product>> {
|
|
@@ -166,7 +166,7 @@ export class ProductsApi extends runtime.BaseAPI {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Gets a product by
|
|
169
|
+
* Gets a product by a given ID.
|
|
170
170
|
* Get product
|
|
171
171
|
*/
|
|
172
172
|
async getProduct(
|
|
@@ -186,7 +186,7 @@ export class ProductsApi extends runtime.BaseAPI {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
|
-
* Lists all products
|
|
189
|
+
* Lists all enabled store listing products attached to the given project.
|
|
190
190
|
* List products
|
|
191
191
|
*/
|
|
192
192
|
async getProductsRaw(requestParameters: GetProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductsResponse>> {
|
|
@@ -234,7 +234,7 @@ export class ProductsApi extends runtime.BaseAPI {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
|
-
* Lists all products
|
|
237
|
+
* Lists all enabled store listing products attached to the given project.
|
|
238
238
|
* List products
|
|
239
239
|
*/
|
|
240
240
|
async getProducts(
|
package/src/apis/VariantsApi.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,7 +48,7 @@ export interface ListVariantsRequest {
|
|
|
48
48
|
export class VariantsApi extends runtime.BaseAPI {
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Gets a variant by
|
|
51
|
+
* Gets a variant by a given ID.
|
|
52
52
|
* Get variant
|
|
53
53
|
*/
|
|
54
54
|
async getVariantRaw(requestParameters: GetVariantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Variant>> {
|
|
@@ -92,7 +92,7 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* Gets a variant by
|
|
95
|
+
* Gets a variant by a given ID.
|
|
96
96
|
* Get variant
|
|
97
97
|
*/
|
|
98
98
|
async getVariant(
|
|
@@ -112,7 +112,7 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Lists all variants
|
|
115
|
+
* Lists all variants that belong to enabled products attached to the given project.
|
|
116
116
|
* List variants
|
|
117
117
|
*/
|
|
118
118
|
async listVariantsRaw(requestParameters: ListVariantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariantsResponse>> {
|
|
@@ -164,7 +164,7 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* Lists all variants
|
|
167
|
+
* Lists all variants that belong to enabled products attached to the given project.
|
|
168
168
|
* List variants
|
|
169
169
|
*/
|
|
170
170
|
async listVariants(
|
package/src/models/ApiError.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Attribute.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Attribute thumbnail, intended for interfaces like storefront colour selector
|
|
17
|
+
* Attribute thumbnail, intended for interfaces like storefront colour selector.
|
|
18
18
|
* @export
|
|
19
19
|
* @interface AttributeThumbnail
|
|
20
20
|
*/
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
*/
|
|
34
34
|
export interface CreateProductRequest {
|
|
35
35
|
/**
|
|
36
|
-
* Reference to the product in the GFN catalog that will be used as a base for this product. A list of available products can be obtained from the GFN Catalog API.
|
|
36
|
+
* 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.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateProductRequest
|
|
39
39
|
*/
|
|
@@ -51,19 +51,19 @@ export interface CreateProductRequest {
|
|
|
51
51
|
*/
|
|
52
52
|
description?: string;
|
|
53
53
|
/**
|
|
54
|
-
* Whether the product is enabled
|
|
54
|
+
* Whether the product is enabled upon creation.
|
|
55
55
|
* @type {boolean}
|
|
56
56
|
* @memberof CreateProductRequest
|
|
57
57
|
*/
|
|
58
58
|
enabled?: boolean;
|
|
59
59
|
/**
|
|
60
|
-
* A custom
|
|
60
|
+
* A custom URL slug for the product. This must be unique for each product on the project.
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof CreateProductRequest
|
|
63
63
|
*/
|
|
64
64
|
slug?: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Additional product tags used for searching and filtering.
|
|
67
67
|
* @type {Array<string>}
|
|
68
68
|
* @memberof CreateProductRequest
|
|
69
69
|
*/
|
|
@@ -75,7 +75,7 @@ export interface CreateProductRequest {
|
|
|
75
75
|
*/
|
|
76
76
|
variants: Array<CreateProductRequestVariantsInner>;
|
|
77
77
|
/**
|
|
78
|
-
* Additional files
|
|
78
|
+
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
79
79
|
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
80
80
|
* @memberof CreateProductRequest
|
|
81
81
|
*/
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
CreateProductRequestVariantsInnerImagesInnerFromJSONTyped,
|
|
32
32
|
CreateProductRequestVariantsInnerImagesInnerToJSON,
|
|
33
33
|
} from './CreateProductRequestVariantsInnerImagesInner';
|
|
34
|
-
import type {
|
|
34
|
+
import type { CreateProductRequestVariantsInnerRetailPrice } from './CreateProductRequestVariantsInnerRetailPrice';
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from './
|
|
36
|
+
CreateProductRequestVariantsInnerRetailPriceFromJSON,
|
|
37
|
+
CreateProductRequestVariantsInnerRetailPriceFromJSONTyped,
|
|
38
|
+
CreateProductRequestVariantsInnerRetailPriceToJSON,
|
|
39
|
+
} from './CreateProductRequestVariantsInnerRetailPrice';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
@@ -45,31 +45,31 @@ import {
|
|
|
45
45
|
*/
|
|
46
46
|
export interface CreateProductRequestVariantsInner {
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Attributes associated to a variant such as Colour and Size.
|
|
49
49
|
* @type {Array<CreateProductRequestVariantsInnerAttributesInner>}
|
|
50
50
|
* @memberof CreateProductRequestVariantsInner
|
|
51
51
|
*/
|
|
52
|
-
attributes
|
|
52
|
+
attributes: Array<CreateProductRequestVariantsInnerAttributesInner>;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {CreateProductRequestVariantsInnerRetailPrice}
|
|
56
56
|
* @memberof CreateProductRequestVariantsInner
|
|
57
57
|
*/
|
|
58
|
-
retailPrice
|
|
58
|
+
retailPrice: CreateProductRequestVariantsInnerRetailPrice;
|
|
59
59
|
/**
|
|
60
|
-
* A custom
|
|
60
|
+
* A custom stock keeping unit for the variant.
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof CreateProductRequestVariantsInner
|
|
63
63
|
*/
|
|
64
64
|
sku?: string;
|
|
65
65
|
/**
|
|
66
|
-
* Design applications.
|
|
66
|
+
* Design applications. If not provided, the product will be blank.
|
|
67
67
|
* @type {Array<CreateProductRequestVariantsInnerApplicationsInner>}
|
|
68
68
|
* @memberof CreateProductRequestVariantsInner
|
|
69
69
|
*/
|
|
70
70
|
applications?: Array<CreateProductRequestVariantsInnerApplicationsInner>;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* 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.
|
|
73
73
|
* @type {Array<CreateProductRequestVariantsInnerImagesInner>}
|
|
74
74
|
* @memberof CreateProductRequestVariantsInner
|
|
75
75
|
*/
|
|
@@ -81,6 +81,8 @@ export interface CreateProductRequestVariantsInner {
|
|
|
81
81
|
*/
|
|
82
82
|
export function instanceOfCreateProductRequestVariantsInner(value: object): boolean {
|
|
83
83
|
let isInstance = true;
|
|
84
|
+
isInstance = isInstance && "attributes" in value;
|
|
85
|
+
isInstance = isInstance && "retailPrice" in value;
|
|
84
86
|
|
|
85
87
|
return isInstance;
|
|
86
88
|
}
|
|
@@ -95,8 +97,8 @@ export function CreateProductRequestVariantsInnerFromJSONTyped(json: any, ignore
|
|
|
95
97
|
}
|
|
96
98
|
return {
|
|
97
99
|
|
|
98
|
-
'attributes':
|
|
99
|
-
'retailPrice':
|
|
100
|
+
'attributes': ((json['attributes'] as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerFromJSON)),
|
|
101
|
+
'retailPrice': CreateProductRequestVariantsInnerRetailPriceFromJSON(json['retailPrice']),
|
|
100
102
|
'sku': !exists(json, 'sku') ? undefined : json['sku'],
|
|
101
103
|
'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerFromJSON)),
|
|
102
104
|
'images': !exists(json, 'images') ? undefined : ((json['images'] as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerFromJSON)),
|
|
@@ -112,8 +114,8 @@ export function CreateProductRequestVariantsInnerToJSON(value?: CreateProductReq
|
|
|
112
114
|
}
|
|
113
115
|
return {
|
|
114
116
|
|
|
115
|
-
'attributes':
|
|
116
|
-
'retailPrice':
|
|
117
|
+
'attributes': ((value.attributes as Array<any>).map(CreateProductRequestVariantsInnerAttributesInnerToJSON)),
|
|
118
|
+
'retailPrice': CreateProductRequestVariantsInnerRetailPriceToJSON(value.retailPrice),
|
|
117
119
|
'sku': value.sku,
|
|
118
120
|
'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(CreateProductRequestVariantsInnerApplicationsInnerToJSON)),
|
|
119
121
|
'images': value.images === undefined ? undefined : ((value.images as Array<any>).map(CreateProductRequestVariantsInnerImagesInnerToJSON)),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,23 +20,23 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface CreateProductRequestVariantsInnerApplicationsInner {
|
|
22
22
|
/**
|
|
23
|
-
* Technology to use for the application
|
|
23
|
+
* Technology to use for the application.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
26
26
|
*/
|
|
27
|
-
technology
|
|
27
|
+
technology: CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum;
|
|
28
28
|
/**
|
|
29
|
-
* Placement of the application
|
|
29
|
+
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
32
32
|
*/
|
|
33
|
-
placement
|
|
33
|
+
placement: CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CreateProductRequestVariantsInnerApplicationsInner
|
|
38
38
|
*/
|
|
39
|
-
src
|
|
39
|
+
src: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
|
@@ -45,7 +45,8 @@ export interface CreateProductRequestVariantsInnerApplicationsInner {
|
|
|
45
45
|
*/
|
|
46
46
|
export const CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = {
|
|
47
47
|
Dtg: 'dtg',
|
|
48
|
-
Embroidery: 'embroidery'
|
|
48
|
+
Embroidery: 'embroidery',
|
|
49
|
+
Dtf: 'dtf'
|
|
49
50
|
} as const;
|
|
50
51
|
export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum];
|
|
51
52
|
|
|
@@ -54,7 +55,10 @@ export type CreateProductRequestVariantsInnerApplicationsInnerTechnologyEnum = t
|
|
|
54
55
|
*/
|
|
55
56
|
export const CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = {
|
|
56
57
|
Front: 'front',
|
|
57
|
-
Back: 'back'
|
|
58
|
+
Back: 'back',
|
|
59
|
+
Left: 'left',
|
|
60
|
+
Right: 'right',
|
|
61
|
+
Neck: 'neck'
|
|
58
62
|
} as const;
|
|
59
63
|
export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum[keyof typeof CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum];
|
|
60
64
|
|
|
@@ -64,6 +68,9 @@ export type CreateProductRequestVariantsInnerApplicationsInnerPlacementEnum = ty
|
|
|
64
68
|
*/
|
|
65
69
|
export function instanceOfCreateProductRequestVariantsInnerApplicationsInner(value: object): boolean {
|
|
66
70
|
let isInstance = true;
|
|
71
|
+
isInstance = isInstance && "technology" in value;
|
|
72
|
+
isInstance = isInstance && "placement" in value;
|
|
73
|
+
isInstance = isInstance && "src" in value;
|
|
67
74
|
|
|
68
75
|
return isInstance;
|
|
69
76
|
}
|
|
@@ -78,9 +85,9 @@ export function CreateProductRequestVariantsInnerApplicationsInnerFromJSONTyped(
|
|
|
78
85
|
}
|
|
79
86
|
return {
|
|
80
87
|
|
|
81
|
-
'technology':
|
|
82
|
-
'placement':
|
|
83
|
-
'src':
|
|
88
|
+
'technology': json['technology'],
|
|
89
|
+
'placement': json['placement'],
|
|
90
|
+
'src': json['src'],
|
|
84
91
|
};
|
|
85
92
|
}
|
|
86
93
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,13 +24,13 @@ export interface CreateProductRequestVariantsInnerAttributesInner {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateProductRequestVariantsInnerAttributesInner
|
|
26
26
|
*/
|
|
27
|
-
name
|
|
27
|
+
name: string;
|
|
28
28
|
/**
|
|
29
29
|
* Attribute value
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateProductRequestVariantsInnerAttributesInner
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -38,6 +38,8 @@ export interface CreateProductRequestVariantsInnerAttributesInner {
|
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfCreateProductRequestVariantsInnerAttributesInner(value: object): boolean {
|
|
40
40
|
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "name" in value;
|
|
42
|
+
isInstance = isInstance && "value" in value;
|
|
41
43
|
|
|
42
44
|
return isInstance;
|
|
43
45
|
}
|
|
@@ -52,8 +54,8 @@ export function CreateProductRequestVariantsInnerAttributesInnerFromJSONTyped(js
|
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
54
56
|
|
|
55
|
-
'name':
|
|
56
|
-
'value':
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
'value': json['value'],
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,7 +20,7 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface CreateProductRequestVariantsInnerImagesInner {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Publicly available file URL.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateProductRequestVariantsInnerImagesInner
|
|
26
26
|
*/
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product Catalog API
|
|
5
|
+
* Manage 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Variant retail price including tax.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateProductRequestVariantsInnerRetailPrice
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateProductRequestVariantsInnerRetailPrice {
|
|
22
|
+
/**
|
|
23
|
+
* Price including tax in the specified currency.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CreateProductRequestVariantsInnerRetailPrice
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Currency code for the currency the price is valued in.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateProductRequestVariantsInnerRetailPrice
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateProductRequestVariantsInnerRetailPrice interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateProductRequestVariantsInnerRetailPrice(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "amount" in value;
|
|
42
|
+
isInstance = isInstance && "currencyCode" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CreateProductRequestVariantsInnerRetailPriceFromJSON(json: any): CreateProductRequestVariantsInnerRetailPrice {
|
|
48
|
+
return CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreateProductRequestVariantsInnerRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductRequestVariantsInnerRetailPrice {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'amount': json['amount'],
|
|
58
|
+
'currencyCode': json['currencyCode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CreateProductRequestVariantsInnerRetailPriceToJSON(value?: CreateProductRequestVariantsInnerRetailPrice | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'amount': value.amount,
|
|
72
|
+
'currencyCode': value.currencyCode,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/Image.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Price.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Product.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -105,7 +105,7 @@ export interface Product {
|
|
|
105
105
|
*/
|
|
106
106
|
variants?: Array<Variant>;
|
|
107
107
|
/**
|
|
108
|
-
* Additional files
|
|
108
|
+
* Additional files attached to the product.
|
|
109
109
|
* @type {Array<ProductAdditionalFilesInner>}
|
|
110
110
|
* @memberof Product
|
|
111
111
|
*/
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ export interface ProductAdditionalFilesInner {
|
|
|
26
26
|
*/
|
|
27
27
|
id?: string;
|
|
28
28
|
/**
|
|
29
|
-
* File
|
|
29
|
+
* File URL
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ProductAdditionalFilesInner
|
|
32
32
|
*/
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Product Catalog API
|
|
5
|
-
* Manage Product Catalog
|
|
5
|
+
* Manage 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.5
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|