@teemill/product-catalog 1.8.0 → 1.9.1
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 -5
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +17 -2
- package/dist/apis/ProductsApi.js +69 -1
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +1 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +10 -14
- package/dist/models/Attribute.d.ts +1 -1
- package/dist/models/Attribute.js +15 -18
- package/dist/models/AttributeThumbnail.d.ts +1 -1
- package/dist/models/AttributeThumbnail.js +9 -14
- package/dist/models/CreateProductRequest.d.ts +9 -9
- package/dist/models/CreateProductRequest.js +30 -33
- package/dist/models/CreateProductRequestImagesInner.d.ts +31 -0
- package/dist/models/CreateProductRequestImagesInner.js +45 -0
- package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
- package/dist/models/CreateProductRequestSeoMetadata.js +7 -12
- package/dist/models/CreateProductVariant.d.ts +59 -0
- package/dist/models/CreateProductVariant.js +61 -0
- package/dist/models/CreateProductVariantApplicationsInner.d.ts +63 -0
- package/dist/models/CreateProductVariantApplicationsInner.js +73 -0
- package/dist/models/CreateProductVariantAttributesInner.d.ts +37 -0
- package/dist/models/CreateProductVariantAttributesInner.js +51 -0
- package/dist/models/CreateProductVariantRetailPrice.d.ts +37 -0
- package/dist/models/CreateProductVariantRetailPrice.js +51 -0
- package/dist/models/Image.d.ts +1 -1
- package/dist/models/Image.js +19 -24
- package/dist/models/ImportProducts200Response.d.ts +1 -1
- package/dist/models/ImportProducts200Response.js +7 -12
- package/dist/models/ModelFile.d.ts +31 -0
- package/dist/models/ModelFile.js +45 -0
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +9 -14
- package/dist/models/Product.d.ts +7 -1
- package/dist/models/Product.js +34 -35
- package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
- package/dist/models/ProductAdditionalFilesInner.js +9 -14
- package/dist/models/ProductsResponse.d.ts +1 -1
- package/dist/models/ProductsResponse.js +9 -14
- package/dist/models/SeoMetadata.d.ts +1 -1
- package/dist/models/SeoMetadata.js +7 -12
- package/dist/models/Stock.d.ts +1 -1
- package/dist/models/Stock.js +7 -12
- package/dist/models/UpdateProductRequest.d.ts +87 -0
- package/dist/models/UpdateProductRequest.js +65 -0
- package/dist/models/Variant.d.ts +1 -1
- package/dist/models/Variant.js +33 -36
- package/dist/models/VariantProduct.d.ts +1 -1
- package/dist/models/VariantProduct.js +9 -14
- package/dist/models/VariantsResponse.d.ts +1 -1
- package/dist/models/VariantsResponse.js +9 -14
- package/dist/models/index.d.ts +7 -5
- package/dist/models/index.js +7 -5
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/ProductsApi.ts +73 -1
- package/src/apis/VariantsApi.ts +1 -1
- package/src/models/ApiError.ts +10 -15
- package/src/models/Attribute.ts +14 -19
- package/src/models/AttributeThumbnail.ts +10 -15
- package/src/models/CreateProductRequest.ts +44 -49
- package/src/models/CreateProductRequestImagesInner.ts +60 -0
- package/src/models/CreateProductRequestSeoMetadata.ts +8 -13
- package/src/models/CreateProductVariant.ts +119 -0
- package/src/models/CreateProductVariantApplicationsInner.ts +103 -0
- package/src/models/CreateProductVariantAttributesInner.ts +70 -0
- package/src/models/CreateProductVariantRetailPrice.ts +70 -0
- package/src/models/Image.ts +20 -25
- package/src/models/ImportProducts200Response.ts +8 -13
- package/src/models/ModelFile.ts +60 -0
- package/src/models/Price.ts +10 -15
- package/src/models/Product.ts +39 -36
- package/src/models/ProductAdditionalFilesInner.ts +10 -15
- package/src/models/ProductsResponse.ts +10 -15
- package/src/models/SeoMetadata.ts +8 -13
- package/src/models/Stock.ts +8 -13
- package/src/models/UpdateProductRequest.ts +145 -0
- package/src/models/Variant.ts +32 -37
- package/src/models/VariantProduct.ts +10 -15
- package/src/models/VariantsResponse.ts +10 -15
- package/src/models/index.ts +7 -5
- package/src/runtime.ts +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.1
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateProductRequestSeoMetadataToJSON = exports.CreateProductRequestSeoMetadataFromJSONTyped = exports.CreateProductRequestSeoMetadataFromJSON = exports.instanceOfCreateProductRequestSeoMetadata = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the CreateProductRequestSeoMetadata interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfCreateProductRequestSeoMetadata(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfCreateProductRequestSeoMetadata = instanceOfCreateProductRequestSeoMetadata;
|
|
26
24
|
function CreateProductRequestSeoMetadataFromJSON(json) {
|
|
@@ -28,23 +26,20 @@ function CreateProductRequestSeoMetadataFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.CreateProductRequestSeoMetadataFromJSON = CreateProductRequestSeoMetadataFromJSON;
|
|
30
28
|
function CreateProductRequestSeoMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'title':
|
|
33
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
36
34
|
};
|
|
37
35
|
}
|
|
38
36
|
exports.CreateProductRequestSeoMetadataFromJSONTyped = CreateProductRequestSeoMetadataFromJSONTyped;
|
|
39
37
|
function CreateProductRequestSeoMetadataToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
45
40
|
}
|
|
46
41
|
return {
|
|
47
|
-
'title': value
|
|
42
|
+
'title': value['title'],
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
45
|
exports.CreateProductRequestSeoMetadataToJSON = CreateProductRequestSeoMetadataToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.9.1
|
|
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 { CreateProductRequestImagesInner } from './CreateProductRequestImagesInner';
|
|
13
|
+
import type { CreateProductVariantApplicationsInner } from './CreateProductVariantApplicationsInner';
|
|
14
|
+
import type { CreateProductVariantAttributesInner } from './CreateProductVariantAttributesInner';
|
|
15
|
+
import type { CreateProductVariantRetailPrice } from './CreateProductVariantRetailPrice';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateProductVariant
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateProductVariant {
|
|
22
|
+
/**
|
|
23
|
+
* Attributes associated to a variant such as Colour and Size.
|
|
24
|
+
* @type {Array<CreateProductVariantAttributesInner>}
|
|
25
|
+
* @memberof CreateProductVariant
|
|
26
|
+
*/
|
|
27
|
+
attributes: Array<CreateProductVariantAttributesInner>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CreateProductVariantRetailPrice}
|
|
31
|
+
* @memberof CreateProductVariant
|
|
32
|
+
*/
|
|
33
|
+
retailPrice: CreateProductVariantRetailPrice;
|
|
34
|
+
/**
|
|
35
|
+
* A custom stock keeping unit for the variant.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateProductVariant
|
|
38
|
+
*/
|
|
39
|
+
sku?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Design applications. If not provided, the product will be blank.
|
|
42
|
+
* @type {Array<CreateProductVariantApplicationsInner>}
|
|
43
|
+
* @memberof CreateProductVariant
|
|
44
|
+
*/
|
|
45
|
+
applications?: Array<CreateProductVariantApplicationsInner>;
|
|
46
|
+
/**
|
|
47
|
+
* 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.
|
|
48
|
+
* @type {Array<CreateProductRequestImagesInner>}
|
|
49
|
+
* @memberof CreateProductVariant
|
|
50
|
+
*/
|
|
51
|
+
images?: Array<CreateProductRequestImagesInner>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CreateProductVariant interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfCreateProductVariant(value: object): boolean;
|
|
57
|
+
export declare function CreateProductVariantFromJSON(json: any): CreateProductVariant;
|
|
58
|
+
export declare function CreateProductVariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariant;
|
|
59
|
+
export declare function CreateProductVariantToJSON(value?: CreateProductVariant | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.9.1
|
|
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.CreateProductVariantToJSON = exports.CreateProductVariantFromJSONTyped = exports.CreateProductVariantFromJSON = exports.instanceOfCreateProductVariant = void 0;
|
|
17
|
+
var CreateProductRequestImagesInner_1 = require("./CreateProductRequestImagesInner");
|
|
18
|
+
var CreateProductVariantApplicationsInner_1 = require("./CreateProductVariantApplicationsInner");
|
|
19
|
+
var CreateProductVariantAttributesInner_1 = require("./CreateProductVariantAttributesInner");
|
|
20
|
+
var CreateProductVariantRetailPrice_1 = require("./CreateProductVariantRetailPrice");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateProductVariant interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateProductVariant(value) {
|
|
25
|
+
if (!('attributes' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('retailPrice' in value))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfCreateProductVariant = instanceOfCreateProductVariant;
|
|
32
|
+
function CreateProductVariantFromJSON(json) {
|
|
33
|
+
return CreateProductVariantFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.CreateProductVariantFromJSON = CreateProductVariantFromJSON;
|
|
36
|
+
function CreateProductVariantFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'attributes': (json['attributes'].map(CreateProductVariantAttributesInner_1.CreateProductVariantAttributesInnerFromJSON)),
|
|
42
|
+
'retailPrice': (0, CreateProductVariantRetailPrice_1.CreateProductVariantRetailPriceFromJSON)(json['retailPrice']),
|
|
43
|
+
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
44
|
+
'applications': json['applications'] == null ? undefined : (json['applications'].map(CreateProductVariantApplicationsInner_1.CreateProductVariantApplicationsInnerFromJSON)),
|
|
45
|
+
'images': json['images'] == null ? undefined : (json['images'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerFromJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.CreateProductVariantFromJSONTyped = CreateProductVariantFromJSONTyped;
|
|
49
|
+
function CreateProductVariantToJSON(value) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'attributes': (value['attributes'].map(CreateProductVariantAttributesInner_1.CreateProductVariantAttributesInnerToJSON)),
|
|
55
|
+
'retailPrice': (0, CreateProductVariantRetailPrice_1.CreateProductVariantRetailPriceToJSON)(value['retailPrice']),
|
|
56
|
+
'sku': value['sku'],
|
|
57
|
+
'applications': value['applications'] == null ? undefined : (value['applications'].map(CreateProductVariantApplicationsInner_1.CreateProductVariantApplicationsInnerToJSON)),
|
|
58
|
+
'images': value['images'] == null ? undefined : (value['images'].map(CreateProductRequestImagesInner_1.CreateProductRequestImagesInnerToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.CreateProductVariantToJSON = CreateProductVariantToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.9.1
|
|
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 CreateProductVariantApplicationsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductVariantApplicationsInner {
|
|
18
|
+
/**
|
|
19
|
+
* Technology to use for the application.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductVariantApplicationsInner
|
|
22
|
+
*/
|
|
23
|
+
technology: CreateProductVariantApplicationsInnerTechnologyEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Placement of the application. Available placements depend on the chosen product and technology.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProductVariantApplicationsInner
|
|
28
|
+
*/
|
|
29
|
+
placement: CreateProductVariantApplicationsInnerPlacementEnum;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateProductVariantApplicationsInner
|
|
34
|
+
*/
|
|
35
|
+
src: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreateProductVariantApplicationsInnerTechnologyEnum: {
|
|
41
|
+
readonly Dtg: "dtg";
|
|
42
|
+
readonly Embroidery: "embroidery";
|
|
43
|
+
readonly Dtf: "dtf";
|
|
44
|
+
};
|
|
45
|
+
export type CreateProductVariantApplicationsInnerTechnologyEnum = typeof CreateProductVariantApplicationsInnerTechnologyEnum[keyof typeof CreateProductVariantApplicationsInnerTechnologyEnum];
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export declare const CreateProductVariantApplicationsInnerPlacementEnum: {
|
|
50
|
+
readonly Front: "front";
|
|
51
|
+
readonly Back: "back";
|
|
52
|
+
readonly Left: "left";
|
|
53
|
+
readonly Right: "right";
|
|
54
|
+
readonly Neck: "neck";
|
|
55
|
+
};
|
|
56
|
+
export type CreateProductVariantApplicationsInnerPlacementEnum = typeof CreateProductVariantApplicationsInnerPlacementEnum[keyof typeof CreateProductVariantApplicationsInnerPlacementEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the CreateProductVariantApplicationsInner interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfCreateProductVariantApplicationsInner(value: object): boolean;
|
|
61
|
+
export declare function CreateProductVariantApplicationsInnerFromJSON(json: any): CreateProductVariantApplicationsInner;
|
|
62
|
+
export declare function CreateProductVariantApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantApplicationsInner;
|
|
63
|
+
export declare function CreateProductVariantApplicationsInnerToJSON(value?: CreateProductVariantApplicationsInner | null): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.9.1
|
|
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.CreateProductVariantApplicationsInnerToJSON = exports.CreateProductVariantApplicationsInnerFromJSONTyped = exports.CreateProductVariantApplicationsInnerFromJSON = exports.instanceOfCreateProductVariantApplicationsInner = exports.CreateProductVariantApplicationsInnerPlacementEnum = exports.CreateProductVariantApplicationsInnerTechnologyEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.CreateProductVariantApplicationsInnerTechnologyEnum = {
|
|
21
|
+
Dtg: 'dtg',
|
|
22
|
+
Embroidery: 'embroidery',
|
|
23
|
+
Dtf: 'dtf'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.CreateProductVariantApplicationsInnerPlacementEnum = {
|
|
29
|
+
Front: 'front',
|
|
30
|
+
Back: 'back',
|
|
31
|
+
Left: 'left',
|
|
32
|
+
Right: 'right',
|
|
33
|
+
Neck: 'neck'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the CreateProductVariantApplicationsInner interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfCreateProductVariantApplicationsInner(value) {
|
|
39
|
+
if (!('technology' in value))
|
|
40
|
+
return false;
|
|
41
|
+
if (!('placement' in value))
|
|
42
|
+
return false;
|
|
43
|
+
if (!('src' in value))
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
exports.instanceOfCreateProductVariantApplicationsInner = instanceOfCreateProductVariantApplicationsInner;
|
|
48
|
+
function CreateProductVariantApplicationsInnerFromJSON(json) {
|
|
49
|
+
return CreateProductVariantApplicationsInnerFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
exports.CreateProductVariantApplicationsInnerFromJSON = CreateProductVariantApplicationsInnerFromJSON;
|
|
52
|
+
function CreateProductVariantApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'technology': json['technology'],
|
|
58
|
+
'placement': json['placement'],
|
|
59
|
+
'src': json['src'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.CreateProductVariantApplicationsInnerFromJSONTyped = CreateProductVariantApplicationsInnerFromJSONTyped;
|
|
63
|
+
function CreateProductVariantApplicationsInnerToJSON(value) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'technology': value['technology'],
|
|
69
|
+
'placement': value['placement'],
|
|
70
|
+
'src': value['src'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.CreateProductVariantApplicationsInnerToJSON = CreateProductVariantApplicationsInnerToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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.9.1
|
|
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 CreateProductVariantAttributesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductVariantAttributesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Attribute name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProductVariantAttributesInner
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Attribute value
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProductVariantAttributesInner
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateProductVariantAttributesInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateProductVariantAttributesInner(value: object): boolean;
|
|
35
|
+
export declare function CreateProductVariantAttributesInnerFromJSON(json: any): CreateProductVariantAttributesInner;
|
|
36
|
+
export declare function CreateProductVariantAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantAttributesInner;
|
|
37
|
+
export declare function CreateProductVariantAttributesInnerToJSON(value?: CreateProductVariantAttributesInner | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.9.1
|
|
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.CreateProductVariantAttributesInnerToJSON = exports.CreateProductVariantAttributesInnerFromJSONTyped = exports.CreateProductVariantAttributesInnerFromJSON = exports.instanceOfCreateProductVariantAttributesInner = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CreateProductVariantAttributesInner interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCreateProductVariantAttributesInner(value) {
|
|
21
|
+
if (!('name' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('value' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfCreateProductVariantAttributesInner = instanceOfCreateProductVariantAttributesInner;
|
|
28
|
+
function CreateProductVariantAttributesInnerFromJSON(json) {
|
|
29
|
+
return CreateProductVariantAttributesInnerFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.CreateProductVariantAttributesInnerFromJSON = CreateProductVariantAttributesInnerFromJSON;
|
|
32
|
+
function CreateProductVariantAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'value': json['value'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.CreateProductVariantAttributesInnerFromJSONTyped = CreateProductVariantAttributesInnerFromJSONTyped;
|
|
42
|
+
function CreateProductVariantAttributesInnerToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'value': value['value'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.CreateProductVariantAttributesInnerToJSON = CreateProductVariantAttributesInnerToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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.9.1
|
|
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
|
+
* Variant retail price including tax.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateProductVariantRetailPrice
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProductVariantRetailPrice {
|
|
18
|
+
/**
|
|
19
|
+
* Price including tax in the specified currency.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateProductVariantRetailPrice
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Currency code for the currency the price is valued in.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProductVariantRetailPrice
|
|
28
|
+
*/
|
|
29
|
+
currencyCode: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateProductVariantRetailPrice interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateProductVariantRetailPrice(value: object): boolean;
|
|
35
|
+
export declare function CreateProductVariantRetailPriceFromJSON(json: any): CreateProductVariantRetailPrice;
|
|
36
|
+
export declare function CreateProductVariantRetailPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductVariantRetailPrice;
|
|
37
|
+
export declare function CreateProductVariantRetailPriceToJSON(value?: CreateProductVariantRetailPrice | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.9.1
|
|
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
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Image.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.1
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = exports.instanceOfImage = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the Image interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfImage(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfImage = instanceOfImage;
|
|
26
24
|
function ImageFromJSON(json) {
|
|
@@ -28,35 +26,32 @@ function ImageFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.ImageFromJSON = ImageFromJSON;
|
|
30
28
|
function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'id':
|
|
36
|
-
'src':
|
|
37
|
-
'alt':
|
|
38
|
-
'variantIds':
|
|
39
|
-
'sortOrder':
|
|
40
|
-
'createdAt':
|
|
41
|
-
'updatedAt':
|
|
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'],
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
45
43
|
function ImageToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
51
46
|
}
|
|
52
47
|
return {
|
|
53
|
-
'id': value
|
|
54
|
-
'src': value
|
|
55
|
-
'alt': value
|
|
56
|
-
'variantIds': value
|
|
57
|
-
'sortOrder': value
|
|
58
|
-
'createdAt': value
|
|
59
|
-
'updatedAt': value
|
|
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'],
|
|
60
55
|
};
|
|
61
56
|
}
|
|
62
57
|
exports.ImageToJSON = ImageToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.9.1
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ImportProducts200ResponseToJSON = exports.ImportProducts200ResponseFromJSONTyped = exports.ImportProducts200ResponseFromJSON = exports.instanceOfImportProducts200Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ImportProducts200Response interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfImportProducts200Response(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfImportProducts200Response = instanceOfImportProducts200Response;
|
|
26
24
|
function ImportProducts200ResponseFromJSON(json) {
|
|
@@ -28,23 +26,20 @@ function ImportProducts200ResponseFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.ImportProducts200ResponseFromJSON = ImportProducts200ResponseFromJSON;
|
|
30
28
|
function ImportProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'importId':
|
|
33
|
+
'importId': json['importId'] == null ? undefined : json['importId'],
|
|
36
34
|
};
|
|
37
35
|
}
|
|
38
36
|
exports.ImportProducts200ResponseFromJSONTyped = ImportProducts200ResponseFromJSONTyped;
|
|
39
37
|
function ImportProducts200ResponseToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
45
40
|
}
|
|
46
41
|
return {
|
|
47
|
-
'importId': value
|
|
42
|
+
'importId': value['importId'],
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
45
|
exports.ImportProducts200ResponseToJSON = ImportProducts200ResponseToJSON;
|