@teemill/product-catalog 1.10.0 → 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 +8 -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 -0
- package/dist/esm/index.js +15 -0
- 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 +18 -4
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -107
- package/dist/apis/ProductsApi.js +0 -498
- package/dist/apis/VariantsApi.d.ts +0 -50
- package/dist/apis/VariantsApi.js +0 -235
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -20
- 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 -63
- package/dist/models/CreateProductVariantApplicationsInner.js +0 -73
- 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 -565
- 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 -103
- 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,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.10.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateProductVariantRetailPriceToJSON = exports.CreateProductVariantRetailPriceFromJSONTyped = exports.CreateProductVariantRetailPriceFromJSON = exports.instanceOfCreateProductVariantRetailPrice = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CreateProductVariantRetailPrice interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCreateProductVariantRetailPrice(value) {
|
|
21
|
-
if (!('amount' in value))
|
|
22
|
-
return false;
|
|
23
|
-
if (!('currencyCode' in value))
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfCreateProductVariantRetailPrice = instanceOfCreateProductVariantRetailPrice;
|
|
28
|
-
function CreateProductVariantRetailPriceFromJSON(json) {
|
|
29
|
-
return CreateProductVariantRetailPriceFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.CreateProductVariantRetailPriceFromJSON = CreateProductVariantRetailPriceFromJSON;
|
|
32
|
-
function CreateProductVariantRetailPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'amount': json['amount'],
|
|
38
|
-
'currencyCode': json['currencyCode'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.CreateProductVariantRetailPriceFromJSONTyped = CreateProductVariantRetailPriceFromJSONTyped;
|
|
42
|
-
function CreateProductVariantRetailPriceToJSON(value) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'amount': value['amount'],
|
|
48
|
-
'currencyCode': value['currencyCode'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.CreateProductVariantRetailPriceToJSON = CreateProductVariantRetailPriceToJSON;
|
package/dist/models/Image.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* 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.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.10.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Image description
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Image
|
|
16
|
-
*/
|
|
17
|
-
export interface Image {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Image
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Image
|
|
28
|
-
*/
|
|
29
|
-
src?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Image
|
|
34
|
-
*/
|
|
35
|
-
alt?: string;
|
|
36
|
-
/**
|
|
37
|
-
* List of variant Ids
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof Image
|
|
40
|
-
*/
|
|
41
|
-
variantIds?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof Image
|
|
46
|
-
*/
|
|
47
|
-
sortOrder?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Image
|
|
52
|
-
*/
|
|
53
|
-
createdAt?: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Image
|
|
58
|
-
*/
|
|
59
|
-
updatedAt?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given object implements the Image interface.
|
|
63
|
-
*/
|
|
64
|
-
export declare function instanceOfImage(value: object): boolean;
|
|
65
|
-
export declare function ImageFromJSON(json: any): Image;
|
|
66
|
-
export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
|
|
67
|
-
export declare function ImageToJSON(value?: Image | null): any;
|
package/dist/models/Image.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.10.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = exports.instanceOfImage = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Image interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfImage(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfImage = instanceOfImage;
|
|
24
|
-
function ImageFromJSON(json) {
|
|
25
|
-
return ImageFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ImageFromJSON = ImageFromJSON;
|
|
28
|
-
function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
34
|
-
'src': json['src'] == null ? undefined : json['src'],
|
|
35
|
-
'alt': json['alt'] == null ? undefined : json['alt'],
|
|
36
|
-
'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
|
|
37
|
-
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
38
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
39
|
-
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
43
|
-
function ImageToJSON(value) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'id': value['id'],
|
|
49
|
-
'src': value['src'],
|
|
50
|
-
'alt': value['alt'],
|
|
51
|
-
'variantIds': value['variantIds'],
|
|
52
|
-
'sortOrder': value['sortOrder'],
|
|
53
|
-
'createdAt': value['createdAt'],
|
|
54
|
-
'updatedAt': value['updatedAt'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.ImageToJSON = ImageToJSON;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* 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.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.10.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ImportProducts200Response
|
|
16
|
-
*/
|
|
17
|
-
export interface ImportProducts200Response {
|
|
18
|
-
/**
|
|
19
|
-
* Id of the product import
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ImportProducts200Response
|
|
22
|
-
*/
|
|
23
|
-
importId?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ImportProducts200Response interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfImportProducts200Response(value: object): boolean;
|
|
29
|
-
export declare function ImportProducts200ResponseFromJSON(json: any): ImportProducts200Response;
|
|
30
|
-
export declare function ImportProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProducts200Response;
|
|
31
|
-
export declare function ImportProducts200ResponseToJSON(value?: ImportProducts200Response | null): any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.10.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ImportProducts200ResponseToJSON = exports.ImportProducts200ResponseFromJSONTyped = exports.ImportProducts200ResponseFromJSON = exports.instanceOfImportProducts200Response = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ImportProducts200Response interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfImportProducts200Response(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfImportProducts200Response = instanceOfImportProducts200Response;
|
|
24
|
-
function ImportProducts200ResponseFromJSON(json) {
|
|
25
|
-
return ImportProducts200ResponseFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ImportProducts200ResponseFromJSON = ImportProducts200ResponseFromJSON;
|
|
28
|
-
function ImportProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'importId': json['importId'] == null ? undefined : json['importId'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.ImportProducts200ResponseFromJSONTyped = ImportProducts200ResponseFromJSONTyped;
|
|
37
|
-
function ImportProducts200ResponseToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'importId': value['importId'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.ImportProducts200ResponseToJSON = ImportProducts200ResponseToJSON;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* 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.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.10.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ModelFile
|
|
16
|
-
*/
|
|
17
|
-
export interface ModelFile {
|
|
18
|
-
/**
|
|
19
|
-
* Publicly available file URL.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ModelFile
|
|
22
|
-
*/
|
|
23
|
-
src?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ModelFile interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfModelFile(value: object): boolean;
|
|
29
|
-
export declare function ModelFileFromJSON(json: any): ModelFile;
|
|
30
|
-
export declare function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile;
|
|
31
|
-
export declare function ModelFileToJSON(value?: ModelFile | null): any;
|
package/dist/models/ModelFile.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.10.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ModelFileToJSON = exports.ModelFileFromJSONTyped = exports.ModelFileFromJSON = exports.instanceOfModelFile = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ModelFile interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfModelFile(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfModelFile = instanceOfModelFile;
|
|
24
|
-
function ModelFileFromJSON(json) {
|
|
25
|
-
return ModelFileFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ModelFileFromJSON = ModelFileFromJSON;
|
|
28
|
-
function ModelFileFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'src': json['src'] == null ? undefined : json['src'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.ModelFileFromJSONTyped = ModelFileFromJSONTyped;
|
|
37
|
-
function ModelFileToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'src': value['src'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.ModelFileToJSON = ModelFileToJSON;
|
package/dist/models/Price.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* 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.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.10.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Standard price definition that defines the amount, tax rate and currency.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Price
|
|
16
|
-
*/
|
|
17
|
-
export interface Price {
|
|
18
|
-
/**
|
|
19
|
-
* Price including tax in the specified currency.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof Price
|
|
22
|
-
*/
|
|
23
|
-
amount?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Currency code for the currency the price is valued in.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Price
|
|
28
|
-
*/
|
|
29
|
-
currencyCode?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the Price interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfPrice(value: object): boolean;
|
|
35
|
-
export declare function PriceFromJSON(json: any): Price;
|
|
36
|
-
export declare function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price;
|
|
37
|
-
export declare function PriceToJSON(value?: Price | null): any;
|
package/dist/models/Price.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.10.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PriceToJSON = exports.PriceFromJSONTyped = exports.PriceFromJSON = exports.instanceOfPrice = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Price interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfPrice(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfPrice = instanceOfPrice;
|
|
24
|
-
function PriceFromJSON(json) {
|
|
25
|
-
return PriceFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.PriceFromJSON = PriceFromJSON;
|
|
28
|
-
function PriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
34
|
-
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.PriceFromJSONTyped = PriceFromJSONTyped;
|
|
38
|
-
function PriceToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'amount': value['amount'],
|
|
44
|
-
'currencyCode': value['currencyCode'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.PriceToJSON = PriceToJSON;
|
package/dist/models/Product.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* 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.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.10.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Image } from './Image';
|
|
13
|
-
import type { ProductAdditionalFilesInner } from './ProductAdditionalFilesInner';
|
|
14
|
-
import type { SeoMetadata } from './SeoMetadata';
|
|
15
|
-
import type { Variant } from './Variant';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Product
|
|
20
|
-
*/
|
|
21
|
-
export interface Product {
|
|
22
|
-
/**
|
|
23
|
-
* Unique object identifier
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Product
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A reference to the resource location
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Product
|
|
32
|
-
*/
|
|
33
|
-
ref?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Product
|
|
38
|
-
*/
|
|
39
|
-
title: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Product
|
|
44
|
-
*/
|
|
45
|
-
description: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Product
|
|
50
|
-
*/
|
|
51
|
-
readonly slug?: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof Product
|
|
56
|
-
*/
|
|
57
|
-
enabled?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {SeoMetadata}
|
|
61
|
-
* @memberof Product
|
|
62
|
-
*/
|
|
63
|
-
seoMetadata?: SeoMetadata;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<string>}
|
|
67
|
-
* @memberof Product
|
|
68
|
-
*/
|
|
69
|
-
tags?: Array<string>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Date}
|
|
73
|
-
* @memberof Product
|
|
74
|
-
*/
|
|
75
|
-
createdAt?: Date;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Date}
|
|
79
|
-
* @memberof Product
|
|
80
|
-
*/
|
|
81
|
-
updatedAt?: Date;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Date}
|
|
85
|
-
* @memberof Product
|
|
86
|
-
*/
|
|
87
|
-
publishedAt?: Date;
|
|
88
|
-
/**
|
|
89
|
-
* Images
|
|
90
|
-
* @type {Array<Image>}
|
|
91
|
-
* @memberof Product
|
|
92
|
-
*/
|
|
93
|
-
images?: Array<Image>;
|
|
94
|
-
/**
|
|
95
|
-
* Variants
|
|
96
|
-
* @type {Array<Variant>}
|
|
97
|
-
* @memberof Product
|
|
98
|
-
*/
|
|
99
|
-
variants?: Array<Variant>;
|
|
100
|
-
/**
|
|
101
|
-
* Additional files attached to the product.
|
|
102
|
-
* @type {Array<ProductAdditionalFilesInner>}
|
|
103
|
-
* @memberof Product
|
|
104
|
-
*/
|
|
105
|
-
additionalFiles?: Array<ProductAdditionalFilesInner>;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Check if a given object implements the Product interface.
|
|
109
|
-
*/
|
|
110
|
-
export declare function instanceOfProduct(value: object): boolean;
|
|
111
|
-
export declare function ProductFromJSON(json: any): Product;
|
|
112
|
-
export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
|
|
113
|
-
export declare function ProductToJSON(value?: Product | null): any;
|
package/dist/models/Product.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Product Catalog API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.10.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
-
var Image_1 = require("./Image");
|
|
18
|
-
var ProductAdditionalFilesInner_1 = require("./ProductAdditionalFilesInner");
|
|
19
|
-
var SeoMetadata_1 = require("./SeoMetadata");
|
|
20
|
-
var Variant_1 = require("./Variant");
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the Product interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfProduct(value) {
|
|
25
|
-
if (!('title' in value))
|
|
26
|
-
return false;
|
|
27
|
-
if (!('description' in value))
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
exports.instanceOfProduct = instanceOfProduct;
|
|
32
|
-
function ProductFromJSON(json) {
|
|
33
|
-
return ProductFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
exports.ProductFromJSON = ProductFromJSON;
|
|
36
|
-
function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
42
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
43
|
-
'title': json['title'],
|
|
44
|
-
'description': json['description'],
|
|
45
|
-
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
46
|
-
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
47
|
-
'seoMetadata': json['seoMetadata'] == null ? undefined : (0, SeoMetadata_1.SeoMetadataFromJSON)(json['seoMetadata']),
|
|
48
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
49
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
50
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
51
|
-
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
52
|
-
'images': json['images'] == null ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
|
|
53
|
-
'variants': json['variants'] == null ? undefined : (json['variants'].map(Variant_1.VariantFromJSON)),
|
|
54
|
-
'additionalFiles': json['additionalFiles'] == null ? undefined : (json['additionalFiles'].map(ProductAdditionalFilesInner_1.ProductAdditionalFilesInnerFromJSON)),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
58
|
-
function ProductToJSON(value) {
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'id': value['id'],
|
|
64
|
-
'ref': value['ref'],
|
|
65
|
-
'title': value['title'],
|
|
66
|
-
'description': value['description'],
|
|
67
|
-
'enabled': value['enabled'],
|
|
68
|
-
'seoMetadata': (0, SeoMetadata_1.SeoMetadataToJSON)(value['seoMetadata']),
|
|
69
|
-
'tags': value['tags'],
|
|
70
|
-
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
71
|
-
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
72
|
-
'publishedAt': value['publishedAt'] == null ? undefined : ((value['publishedAt']).toISOString()),
|
|
73
|
-
'images': value['images'] == null ? undefined : (value['images'].map(Image_1.ImageToJSON)),
|
|
74
|
-
'variants': value['variants'] == null ? undefined : (value['variants'].map(Variant_1.VariantToJSON)),
|
|
75
|
-
'additionalFiles': value['additionalFiles'] == null ? undefined : (value['additionalFiles'].map(ProductAdditionalFilesInner_1.ProductAdditionalFilesInnerToJSON)),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
exports.ProductToJSON = ProductToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product Catalog API
|
|
3
|
-
* 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.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.10.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ProductAdditionalFilesInner
|
|
16
|
-
*/
|
|
17
|
-
export interface ProductAdditionalFilesInner {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ProductAdditionalFilesInner
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
* File URL
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductAdditionalFilesInner
|
|
28
|
-
*/
|
|
29
|
-
src?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ProductAdditionalFilesInner interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfProductAdditionalFilesInner(value: object): boolean;
|
|
35
|
-
export declare function ProductAdditionalFilesInnerFromJSON(json: any): ProductAdditionalFilesInner;
|
|
36
|
-
export declare function ProductAdditionalFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAdditionalFilesInner;
|
|
37
|
-
export declare function ProductAdditionalFilesInnerToJSON(value?: ProductAdditionalFilesInner | null): any;
|