@teemill/product-catalog 1.11.1 → 1.12.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 +7 -29
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1592 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1120 -0
- package/dist/api.js +819 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1120 -0
- package/dist/esm/api.js +808 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +15 -3
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -107
- package/dist/apis/ProductsApi.js +0 -304
- package/dist/apis/VariantsApi.d.ts +0 -50
- package/dist/apis/VariantsApi.js +0 -131
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- package/dist/esm/apis/ProductsApi.d.ts +0 -107
- package/dist/esm/apis/ProductsApi.js +0 -300
- package/dist/esm/apis/VariantsApi.d.ts +0 -50
- package/dist/esm/apis/VariantsApi.js +0 -127
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/Attribute.d.ts +0 -50
- package/dist/esm/models/Attribute.js +0 -49
- package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
- package/dist/esm/models/AttributeThumbnail.js +0 -48
- package/dist/esm/models/CreateProductRequest.d.ts +0 -88
- package/dist/esm/models/CreateProductRequest.js +0 -63
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestAdditionalFilesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestImagesInner.js +0 -38
- package/dist/esm/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestSeoMetadata.js +0 -38
- package/dist/esm/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/esm/models/CreateProductRequestVariantsInner.js +0 -57
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/esm/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -67
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -46
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/esm/models/CreateProductRequestVariantsInnerImagesInner.js +0 -43
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -46
- package/dist/esm/models/CreateProductVariant.d.ts +0 -59
- package/dist/esm/models/CreateProductVariant.js +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/esm/models/CreateProductVariantApplicationsInner.js +0 -58
- package/dist/esm/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantAttributesInner.js +0 -44
- package/dist/esm/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/esm/models/CreateProductVariantRetailPrice.js +0 -44
- package/dist/esm/models/Image.d.ts +0 -67
- package/dist/esm/models/Image.js +0 -50
- package/dist/esm/models/ImportProducts200Response.d.ts +0 -31
- package/dist/esm/models/ImportProducts200Response.js +0 -38
- package/dist/esm/models/ModelFile.d.ts +0 -31
- package/dist/esm/models/ModelFile.js +0 -38
- package/dist/esm/models/Price.d.ts +0 -37
- package/dist/esm/models/Price.js +0 -40
- package/dist/esm/models/Product.d.ts +0 -113
- package/dist/esm/models/Product.js +0 -71
- package/dist/esm/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/esm/models/ProductAdditionalFilesInner.js +0 -40
- package/dist/esm/models/ProductsResponse.d.ts +0 -38
- package/dist/esm/models/ProductsResponse.js +0 -41
- package/dist/esm/models/SeoMetadata.d.ts +0 -31
- package/dist/esm/models/SeoMetadata.js +0 -38
- package/dist/esm/models/Stock.d.ts +0 -31
- package/dist/esm/models/Stock.js +0 -38
- package/dist/esm/models/UpdateProductRequest.d.ts +0 -87
- package/dist/esm/models/UpdateProductRequest.js +0 -58
- package/dist/esm/models/Variant.d.ts +0 -114
- package/dist/esm/models/Variant.js +0 -71
- package/dist/esm/models/VariantProduct.d.ts +0 -37
- package/dist/esm/models/VariantProduct.js +0 -40
- package/dist/esm/models/VariantsResponse.d.ts +0 -38
- package/dist/esm/models/VariantsResponse.js +0 -41
- package/dist/esm/models/index.d.ts +0 -23
- package/dist/esm/models/index.js +0 -25
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/Attribute.d.ts +0 -50
- package/dist/models/Attribute.js +0 -56
- package/dist/models/AttributeThumbnail.d.ts +0 -46
- package/dist/models/AttributeThumbnail.js +0 -55
- package/dist/models/CreateProductRequest.d.ts +0 -88
- package/dist/models/CreateProductRequest.js +0 -70
- package/dist/models/CreateProductRequestAdditionalFilesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestAdditionalFilesInner.js +0 -50
- package/dist/models/CreateProductRequestImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestImagesInner.js +0 -45
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +0 -31
- package/dist/models/CreateProductRequestSeoMetadata.js +0 -45
- package/dist/models/CreateProductRequestVariantsInner.d.ts +0 -59
- package/dist/models/CreateProductRequestVariantsInner.js +0 -64
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +0 -63
- package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +0 -74
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +0 -53
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +0 -31
- package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +0 -50
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +0 -53
- package/dist/models/CreateProductVariant.d.ts +0 -59
- package/dist/models/CreateProductVariant.js +0 -61
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +0 -54
- package/dist/models/CreateProductVariantApplicationsInner.js +0 -65
- package/dist/models/CreateProductVariantAttributesInner.d.ts +0 -37
- package/dist/models/CreateProductVariantAttributesInner.js +0 -51
- package/dist/models/CreateProductVariantRetailPrice.d.ts +0 -37
- package/dist/models/CreateProductVariantRetailPrice.js +0 -51
- package/dist/models/Image.d.ts +0 -67
- package/dist/models/Image.js +0 -57
- package/dist/models/ImportProducts200Response.d.ts +0 -31
- package/dist/models/ImportProducts200Response.js +0 -45
- package/dist/models/ModelFile.d.ts +0 -31
- package/dist/models/ModelFile.js +0 -45
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/Product.d.ts +0 -113
- package/dist/models/Product.js +0 -78
- package/dist/models/ProductAdditionalFilesInner.d.ts +0 -37
- package/dist/models/ProductAdditionalFilesInner.js +0 -47
- package/dist/models/ProductsResponse.d.ts +0 -38
- package/dist/models/ProductsResponse.js +0 -48
- package/dist/models/SeoMetadata.d.ts +0 -31
- package/dist/models/SeoMetadata.js +0 -45
- package/dist/models/Stock.d.ts +0 -31
- package/dist/models/Stock.js +0 -45
- package/dist/models/UpdateProductRequest.d.ts +0 -87
- package/dist/models/UpdateProductRequest.js +0 -65
- package/dist/models/Variant.d.ts +0 -114
- package/dist/models/Variant.js +0 -78
- package/dist/models/VariantProduct.d.ts +0 -37
- package/dist/models/VariantProduct.js +0 -47
- package/dist/models/VariantsResponse.d.ts +0 -38
- package/dist/models/VariantsResponse.js +0 -48
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -41
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProductsApi.ts +0 -453
- package/src/apis/VariantsApi.ts +0 -186
- package/src/apis/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/Attribute.ts +0 -93
- package/src/models/AttributeThumbnail.ts +0 -80
- package/src/models/CreateProductRequest.ts +0 -153
- package/src/models/CreateProductRequestAdditionalFilesInner.ts +0 -65
- package/src/models/CreateProductRequestImagesInner.ts +0 -60
- package/src/models/CreateProductRequestSeoMetadata.ts +0 -60
- package/src/models/CreateProductRequestVariantsInner.ts +0 -124
- package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +0 -108
- package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +0 -75
- package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +0 -65
- package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +0 -75
- package/src/models/CreateProductVariant.ts +0 -119
- package/src/models/CreateProductVariantApplicationsInner.ts +0 -93
- package/src/models/CreateProductVariantAttributesInner.ts +0 -70
- package/src/models/CreateProductVariantRetailPrice.ts +0 -70
- package/src/models/Image.ts +0 -108
- package/src/models/ImportProducts200Response.ts +0 -60
- package/src/models/ModelFile.ts +0 -60
- package/src/models/Price.ts +0 -68
- package/src/models/Product.ts +0 -190
- package/src/models/ProductAdditionalFilesInner.ts +0 -68
- package/src/models/ProductsResponse.ts +0 -75
- package/src/models/SeoMetadata.ts +0 -60
- package/src/models/Stock.ts +0 -60
- package/src/models/UpdateProductRequest.ts +0 -145
- package/src/models/Variant.ts +0 -195
- package/src/models/VariantProduct.ts +0 -68
- package/src/models/VariantsResponse.ts +0 -75
- package/src/models/index.ts +0 -25
- package/src/runtime.ts +0 -441
|
@@ -1,75 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
import type { Product } from './Product';
|
|
17
|
-
import {
|
|
18
|
-
ProductFromJSON,
|
|
19
|
-
ProductFromJSONTyped,
|
|
20
|
-
ProductToJSON,
|
|
21
|
-
} from './Product';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ProductsResponse
|
|
27
|
-
*/
|
|
28
|
-
export interface ProductsResponse {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<Product>}
|
|
32
|
-
* @memberof ProductsResponse
|
|
33
|
-
*/
|
|
34
|
-
products?: Array<Product>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof ProductsResponse
|
|
39
|
-
*/
|
|
40
|
-
nextPageToken?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfProductsResponse(value: object): boolean {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ProductsResponseFromJSON(json: any): ProductsResponse {
|
|
51
|
-
return ProductsResponseFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse {
|
|
55
|
-
if (json == null) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
|
|
61
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function ProductsResponseToJSON(value?: ProductsResponse | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
|
|
72
|
-
'nextPageToken': value['nextPageToken'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* SEO metadata for the product
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SeoMetadata
|
|
20
|
-
*/
|
|
21
|
-
export interface SeoMetadata {
|
|
22
|
-
/**
|
|
23
|
-
* Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SeoMetadata
|
|
26
|
-
*/
|
|
27
|
-
title?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the SeoMetadata interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfSeoMetadata(value: object): boolean {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function SeoMetadataFromJSON(json: any): SeoMetadata {
|
|
38
|
-
return SeoMetadataFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function SeoMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeoMetadata {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function SeoMetadataToJSON(value?: SeoMetadata | null): any {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
|
|
57
|
-
'title': value['title'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
package/src/models/Stock.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Stock
|
|
20
|
-
*/
|
|
21
|
-
export interface Stock {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof Stock
|
|
26
|
-
*/
|
|
27
|
-
level?: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the Stock interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfStock(value: object): boolean {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function StockFromJSON(json: any): Stock {
|
|
38
|
-
return StockFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'level': json['level'] == null ? undefined : json['level'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function StockToJSON(value?: Stock | null): any {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
|
|
57
|
-
'level': value['level'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,145 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
import type { CreateProductRequestSeoMetadata } from './CreateProductRequestSeoMetadata';
|
|
17
|
-
import {
|
|
18
|
-
CreateProductRequestSeoMetadataFromJSON,
|
|
19
|
-
CreateProductRequestSeoMetadataFromJSONTyped,
|
|
20
|
-
CreateProductRequestSeoMetadataToJSON,
|
|
21
|
-
} from './CreateProductRequestSeoMetadata';
|
|
22
|
-
import type { CreateProductVariant } from './CreateProductVariant';
|
|
23
|
-
import {
|
|
24
|
-
CreateProductVariantFromJSON,
|
|
25
|
-
CreateProductVariantFromJSONTyped,
|
|
26
|
-
CreateProductVariantToJSON,
|
|
27
|
-
} from './CreateProductVariant';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @interface UpdateProductRequest
|
|
33
|
-
*/
|
|
34
|
-
export interface UpdateProductRequest {
|
|
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 for the given project can be obtained from the GFN Catalog API.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof UpdateProductRequest
|
|
39
|
-
*/
|
|
40
|
-
gfnProductRef?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Product title
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof UpdateProductRequest
|
|
45
|
-
*/
|
|
46
|
-
title?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Product description
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof UpdateProductRequest
|
|
51
|
-
*/
|
|
52
|
-
description?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the product is enabled upon creation.
|
|
55
|
-
* @type {boolean}
|
|
56
|
-
* @memberof UpdateProductRequest
|
|
57
|
-
*/
|
|
58
|
-
enabled?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* A custom URL slug for the product. This must be unique for each product on the project.
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof UpdateProductRequest
|
|
63
|
-
*/
|
|
64
|
-
slug?: string;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {CreateProductRequestSeoMetadata}
|
|
68
|
-
* @memberof UpdateProductRequest
|
|
69
|
-
*/
|
|
70
|
-
seoMetadata?: CreateProductRequestSeoMetadata;
|
|
71
|
-
/**
|
|
72
|
-
* Additional product tags used for searching and filtering.
|
|
73
|
-
* @type {Array<string>}
|
|
74
|
-
* @memberof UpdateProductRequest
|
|
75
|
-
*/
|
|
76
|
-
tags?: Array<string>;
|
|
77
|
-
/**
|
|
78
|
-
* Variants
|
|
79
|
-
* @type {Array<CreateProductVariant>}
|
|
80
|
-
* @memberof UpdateProductRequest
|
|
81
|
-
*/
|
|
82
|
-
variants?: Array<CreateProductVariant>;
|
|
83
|
-
/**
|
|
84
|
-
* Images to attach to the product. For example, photos of models using/wearing the product.
|
|
85
|
-
* @type {Array<any>}
|
|
86
|
-
* @memberof UpdateProductRequest
|
|
87
|
-
*/
|
|
88
|
-
images?: Array<any>;
|
|
89
|
-
/**
|
|
90
|
-
* Additional files to attach to the product. For example, original design files e.g. PSD, AI, etc.
|
|
91
|
-
* @type {Array<any>}
|
|
92
|
-
* @memberof UpdateProductRequest
|
|
93
|
-
*/
|
|
94
|
-
additionalFiles?: Array<any>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Check if a given object implements the UpdateProductRequest interface.
|
|
99
|
-
*/
|
|
100
|
-
export function instanceOfUpdateProductRequest(value: object): boolean {
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function UpdateProductRequestFromJSON(json: any): UpdateProductRequest {
|
|
105
|
-
return UpdateProductRequestFromJSONTyped(json, false);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function UpdateProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRequest {
|
|
109
|
-
if (json == null) {
|
|
110
|
-
return json;
|
|
111
|
-
}
|
|
112
|
-
return {
|
|
113
|
-
|
|
114
|
-
'gfnProductRef': json['gfnProductRef'] == null ? undefined : json['gfnProductRef'],
|
|
115
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
116
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
117
|
-
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
118
|
-
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
119
|
-
'seoMetadata': json['seoMetadata'] == null ? undefined : CreateProductRequestSeoMetadataFromJSON(json['seoMetadata']),
|
|
120
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
121
|
-
'variants': json['variants'] == null ? undefined : ((json['variants'] as Array<any>).map(CreateProductVariantFromJSON)),
|
|
122
|
-
'images': json['images'] == null ? undefined : json['images'],
|
|
123
|
-
'additionalFiles': json['additionalFiles'] == null ? undefined : json['additionalFiles'],
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function UpdateProductRequestToJSON(value?: UpdateProductRequest | null): any {
|
|
128
|
-
if (value == null) {
|
|
129
|
-
return value;
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
|
|
133
|
-
'gfnProductRef': value['gfnProductRef'],
|
|
134
|
-
'title': value['title'],
|
|
135
|
-
'description': value['description'],
|
|
136
|
-
'enabled': value['enabled'],
|
|
137
|
-
'slug': value['slug'],
|
|
138
|
-
'seoMetadata': CreateProductRequestSeoMetadataToJSON(value['seoMetadata']),
|
|
139
|
-
'tags': value['tags'],
|
|
140
|
-
'variants': value['variants'] == null ? undefined : ((value['variants'] as Array<any>).map(CreateProductVariantToJSON)),
|
|
141
|
-
'images': value['images'],
|
|
142
|
-
'additionalFiles': value['additionalFiles'],
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
|
package/src/models/Variant.ts
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
import type { Attribute } from './Attribute';
|
|
17
|
-
import {
|
|
18
|
-
AttributeFromJSON,
|
|
19
|
-
AttributeFromJSONTyped,
|
|
20
|
-
AttributeToJSON,
|
|
21
|
-
} from './Attribute';
|
|
22
|
-
import type { Image } from './Image';
|
|
23
|
-
import {
|
|
24
|
-
ImageFromJSON,
|
|
25
|
-
ImageFromJSONTyped,
|
|
26
|
-
ImageToJSON,
|
|
27
|
-
} from './Image';
|
|
28
|
-
import type { Price } from './Price';
|
|
29
|
-
import {
|
|
30
|
-
PriceFromJSON,
|
|
31
|
-
PriceFromJSONTyped,
|
|
32
|
-
PriceToJSON,
|
|
33
|
-
} from './Price';
|
|
34
|
-
import type { Stock } from './Stock';
|
|
35
|
-
import {
|
|
36
|
-
StockFromJSON,
|
|
37
|
-
StockFromJSONTyped,
|
|
38
|
-
StockToJSON,
|
|
39
|
-
} from './Stock';
|
|
40
|
-
import type { VariantProduct } from './VariantProduct';
|
|
41
|
-
import {
|
|
42
|
-
VariantProductFromJSON,
|
|
43
|
-
VariantProductFromJSONTyped,
|
|
44
|
-
VariantProductToJSON,
|
|
45
|
-
} from './VariantProduct';
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
* @interface Variant
|
|
51
|
-
*/
|
|
52
|
-
export interface Variant {
|
|
53
|
-
/**
|
|
54
|
-
* Unique object identifier
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof Variant
|
|
57
|
-
*/
|
|
58
|
-
id?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
|
|
61
|
-
* @type {Array<Attribute>}
|
|
62
|
-
* @memberof Variant
|
|
63
|
-
*/
|
|
64
|
-
attributes: Array<Attribute>;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof Variant
|
|
69
|
-
*/
|
|
70
|
-
sku: string;
|
|
71
|
-
/**
|
|
72
|
-
* A reference to the resource location
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof Variant
|
|
75
|
-
*/
|
|
76
|
-
ref?: string;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {VariantProduct}
|
|
80
|
-
* @memberof Variant
|
|
81
|
-
*/
|
|
82
|
-
product?: VariantProduct;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {number}
|
|
86
|
-
* @memberof Variant
|
|
87
|
-
*/
|
|
88
|
-
readonly sortOrder?: number;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {Price}
|
|
92
|
-
* @memberof Variant
|
|
93
|
-
*/
|
|
94
|
-
retailPrice?: Price;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {Price}
|
|
98
|
-
* @memberof Variant
|
|
99
|
-
*/
|
|
100
|
-
salePrice?: Price;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {Price}
|
|
104
|
-
* @memberof Variant
|
|
105
|
-
*/
|
|
106
|
-
readonly price?: Price;
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {Stock}
|
|
110
|
-
* @memberof Variant
|
|
111
|
-
*/
|
|
112
|
-
stock?: Stock;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @type {Date}
|
|
116
|
-
* @memberof Variant
|
|
117
|
-
*/
|
|
118
|
-
createdAt?: Date;
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @type {Date}
|
|
122
|
-
* @memberof Variant
|
|
123
|
-
*/
|
|
124
|
-
updatedAt?: Date;
|
|
125
|
-
/**
|
|
126
|
-
*
|
|
127
|
-
* @type {Date}
|
|
128
|
-
* @memberof Variant
|
|
129
|
-
*/
|
|
130
|
-
publishedAt?: Date;
|
|
131
|
-
/**
|
|
132
|
-
* Images
|
|
133
|
-
* @type {Array<Image>}
|
|
134
|
-
* @memberof Variant
|
|
135
|
-
*/
|
|
136
|
-
images?: Array<Image>;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Check if a given object implements the Variant interface.
|
|
141
|
-
*/
|
|
142
|
-
export function instanceOfVariant(value: object): boolean {
|
|
143
|
-
if (!('attributes' in value)) return false;
|
|
144
|
-
if (!('sku' in value)) return false;
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export function VariantFromJSON(json: any): Variant {
|
|
149
|
-
return VariantFromJSONTyped(json, false);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant {
|
|
153
|
-
if (json == null) {
|
|
154
|
-
return json;
|
|
155
|
-
}
|
|
156
|
-
return {
|
|
157
|
-
|
|
158
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
159
|
-
'attributes': ((json['attributes'] as Array<any>).map(AttributeFromJSON)),
|
|
160
|
-
'sku': json['sku'],
|
|
161
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
162
|
-
'product': json['product'] == null ? undefined : VariantProductFromJSON(json['product']),
|
|
163
|
-
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
164
|
-
'retailPrice': json['retailPrice'] == null ? undefined : PriceFromJSON(json['retailPrice']),
|
|
165
|
-
'salePrice': json['salePrice'] == null ? undefined : PriceFromJSON(json['salePrice']),
|
|
166
|
-
'price': json['price'] == null ? undefined : PriceFromJSON(json['price']),
|
|
167
|
-
'stock': json['stock'] == null ? undefined : StockFromJSON(json['stock']),
|
|
168
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
169
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
170
|
-
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
171
|
-
'images': json['images'] == null ? undefined : ((json['images'] as Array<any>).map(ImageFromJSON)),
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export function VariantToJSON(value?: Omit<Variant, 'sortOrder'|'price'> | null): any {
|
|
176
|
-
if (value == null) {
|
|
177
|
-
return value;
|
|
178
|
-
}
|
|
179
|
-
return {
|
|
180
|
-
|
|
181
|
-
'id': value['id'],
|
|
182
|
-
'attributes': ((value['attributes'] as Array<any>).map(AttributeToJSON)),
|
|
183
|
-
'sku': value['sku'],
|
|
184
|
-
'ref': value['ref'],
|
|
185
|
-
'product': VariantProductToJSON(value['product']),
|
|
186
|
-
'retailPrice': PriceToJSON(value['retailPrice']),
|
|
187
|
-
'salePrice': PriceToJSON(value['salePrice']),
|
|
188
|
-
'stock': StockToJSON(value['stock']),
|
|
189
|
-
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
190
|
-
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
191
|
-
'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
|
|
192
|
-
'images': value['images'] == null ? undefined : ((value['images'] as Array<any>).map(ImageToJSON)),
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface VariantProduct
|
|
20
|
-
*/
|
|
21
|
-
export interface VariantProduct {
|
|
22
|
-
/**
|
|
23
|
-
* Unique object identifier
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof VariantProduct
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A reference to the resource location
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof VariantProduct
|
|
32
|
-
*/
|
|
33
|
-
ref?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the VariantProduct interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfVariantProduct(value: object): boolean {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function VariantProductFromJSON(json: any): VariantProduct {
|
|
44
|
-
return VariantProductFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
54
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function VariantProductToJSON(value?: VariantProduct | null): any {
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
|
|
64
|
-
'id': value['id'],
|
|
65
|
-
'ref': value['ref'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
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.11.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
import type { Variant } from './Variant';
|
|
17
|
-
import {
|
|
18
|
-
VariantFromJSON,
|
|
19
|
-
VariantFromJSONTyped,
|
|
20
|
-
VariantToJSON,
|
|
21
|
-
} from './Variant';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface VariantsResponse
|
|
27
|
-
*/
|
|
28
|
-
export interface VariantsResponse {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<Variant>}
|
|
32
|
-
* @memberof VariantsResponse
|
|
33
|
-
*/
|
|
34
|
-
variants?: Array<Variant>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof VariantsResponse
|
|
39
|
-
*/
|
|
40
|
-
nextPageToken?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the VariantsResponse interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfVariantsResponse(value: object): boolean {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function VariantsResponseFromJSON(json: any): VariantsResponse {
|
|
51
|
-
return VariantsResponseFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function VariantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantsResponse {
|
|
55
|
-
if (json == null) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'variants': json['variants'] == null ? undefined : ((json['variants'] as Array<any>).map(VariantFromJSON)),
|
|
61
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function VariantsResponseToJSON(value?: VariantsResponse | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'variants': value['variants'] == null ? undefined : ((value['variants'] as Array<any>).map(VariantToJSON)),
|
|
72
|
-
'nextPageToken': value['nextPageToken'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|