@teemill/product-catalog 1.7.0 → 1.9.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.
Files changed (100) hide show
  1. package/.openapi-generator/FILES +7 -5
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProductsApi.d.ts +18 -2
  5. package/dist/apis/ProductsApi.js +72 -1
  6. package/dist/apis/VariantsApi.d.ts +1 -1
  7. package/dist/apis/VariantsApi.js +1 -1
  8. package/dist/models/ApiError.d.ts +1 -1
  9. package/dist/models/ApiError.js +10 -14
  10. package/dist/models/Attribute.d.ts +1 -1
  11. package/dist/models/Attribute.js +15 -18
  12. package/dist/models/AttributeThumbnail.d.ts +1 -1
  13. package/dist/models/AttributeThumbnail.js +9 -14
  14. package/dist/models/CreateProductRequest.d.ts +13 -7
  15. package/dist/models/CreateProductRequest.js +30 -31
  16. package/dist/models/CreateProductRequestImagesInner.d.ts +31 -0
  17. package/dist/models/CreateProductRequestImagesInner.js +45 -0
  18. package/dist/models/CreateProductRequestSeoMetadata.d.ts +1 -1
  19. package/dist/models/CreateProductRequestSeoMetadata.js +7 -12
  20. package/dist/models/CreateProductRequestVariantsInner.d.ts +1 -1
  21. package/dist/models/CreateProductRequestVariantsInner.js +1 -1
  22. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.d.ts +1 -1
  23. package/dist/models/CreateProductRequestVariantsInnerApplicationsInner.js +1 -1
  24. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.d.ts +1 -1
  25. package/dist/models/CreateProductRequestVariantsInnerAttributesInner.js +1 -1
  26. package/dist/models/CreateProductRequestVariantsInnerImagesInner.d.ts +1 -1
  27. package/dist/models/CreateProductRequestVariantsInnerImagesInner.js +1 -1
  28. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.d.ts +1 -1
  29. package/dist/models/CreateProductRequestVariantsInnerRetailPrice.js +1 -1
  30. package/dist/models/CreateProductVariant.d.ts +59 -0
  31. package/dist/models/CreateProductVariant.js +61 -0
  32. package/dist/models/CreateProductVariantApplicationsInner.d.ts +63 -0
  33. package/dist/models/CreateProductVariantApplicationsInner.js +73 -0
  34. package/dist/models/CreateProductVariantAttributesInner.d.ts +37 -0
  35. package/dist/models/CreateProductVariantAttributesInner.js +51 -0
  36. package/dist/models/CreateProductVariantRetailPrice.d.ts +37 -0
  37. package/dist/models/CreateProductVariantRetailPrice.js +51 -0
  38. package/dist/models/Image.d.ts +1 -1
  39. package/dist/models/Image.js +19 -24
  40. package/dist/models/ImportProducts200Response.d.ts +1 -1
  41. package/dist/models/ImportProducts200Response.js +7 -12
  42. package/dist/models/ModelFile.d.ts +31 -0
  43. package/dist/models/ModelFile.js +45 -0
  44. package/dist/models/Price.d.ts +1 -1
  45. package/dist/models/Price.js +9 -14
  46. package/dist/models/Product.d.ts +1 -1
  47. package/dist/models/Product.js +32 -35
  48. package/dist/models/ProductAdditionalFilesInner.d.ts +1 -1
  49. package/dist/models/ProductAdditionalFilesInner.js +9 -14
  50. package/dist/models/ProductsResponse.d.ts +1 -1
  51. package/dist/models/ProductsResponse.js +9 -14
  52. package/dist/models/SeoMetadata.d.ts +1 -1
  53. package/dist/models/SeoMetadata.js +7 -12
  54. package/dist/models/Stock.d.ts +1 -1
  55. package/dist/models/Stock.js +7 -12
  56. package/dist/models/UpdateProductRequest.d.ts +87 -0
  57. package/dist/models/UpdateProductRequest.js +65 -0
  58. package/dist/models/Variant.d.ts +1 -1
  59. package/dist/models/Variant.js +33 -36
  60. package/dist/models/VariantProduct.d.ts +1 -1
  61. package/dist/models/VariantProduct.js +9 -14
  62. package/dist/models/VariantsResponse.d.ts +1 -1
  63. package/dist/models/VariantsResponse.js +9 -14
  64. package/dist/models/index.d.ts +7 -5
  65. package/dist/models/index.js +7 -5
  66. package/dist/runtime.d.ts +1 -1
  67. package/dist/runtime.js +1 -1
  68. package/package.json +1 -1
  69. package/src/apis/ProductsApi.ts +78 -1
  70. package/src/apis/VariantsApi.ts +1 -1
  71. package/src/models/ApiError.ts +10 -15
  72. package/src/models/Attribute.ts +14 -19
  73. package/src/models/AttributeThumbnail.ts +10 -15
  74. package/src/models/CreateProductRequest.ts +48 -45
  75. package/src/models/CreateProductRequestImagesInner.ts +60 -0
  76. package/src/models/CreateProductRequestSeoMetadata.ts +8 -13
  77. package/src/models/CreateProductRequestVariantsInner.ts +1 -1
  78. package/src/models/CreateProductRequestVariantsInnerApplicationsInner.ts +1 -1
  79. package/src/models/CreateProductRequestVariantsInnerAttributesInner.ts +1 -1
  80. package/src/models/CreateProductRequestVariantsInnerImagesInner.ts +1 -1
  81. package/src/models/CreateProductRequestVariantsInnerRetailPrice.ts +1 -1
  82. package/src/models/CreateProductVariant.ts +119 -0
  83. package/src/models/CreateProductVariantApplicationsInner.ts +103 -0
  84. package/src/models/CreateProductVariantAttributesInner.ts +70 -0
  85. package/src/models/CreateProductVariantRetailPrice.ts +70 -0
  86. package/src/models/Image.ts +20 -25
  87. package/src/models/ImportProducts200Response.ts +8 -13
  88. package/src/models/ModelFile.ts +60 -0
  89. package/src/models/Price.ts +10 -15
  90. package/src/models/Product.ts +31 -36
  91. package/src/models/ProductAdditionalFilesInner.ts +10 -15
  92. package/src/models/ProductsResponse.ts +10 -15
  93. package/src/models/SeoMetadata.ts +8 -13
  94. package/src/models/Stock.ts +8 -13
  95. package/src/models/UpdateProductRequest.ts +145 -0
  96. package/src/models/Variant.ts +32 -37
  97. package/src/models/VariantProduct.ts +10 -15
  98. package/src/models/VariantsResponse.ts +10 -15
  99. package/src/models/index.ts +7 -5
  100. package/src/runtime.ts +1 -1
@@ -0,0 +1,45 @@
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.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.CreateProductRequestImagesInnerToJSON = exports.CreateProductRequestImagesInnerFromJSONTyped = exports.CreateProductRequestImagesInnerFromJSON = exports.instanceOfCreateProductRequestImagesInner = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateProductRequestImagesInner interface.
19
+ */
20
+ function instanceOfCreateProductRequestImagesInner(value) {
21
+ return true;
22
+ }
23
+ exports.instanceOfCreateProductRequestImagesInner = instanceOfCreateProductRequestImagesInner;
24
+ function CreateProductRequestImagesInnerFromJSON(json) {
25
+ return CreateProductRequestImagesInnerFromJSONTyped(json, false);
26
+ }
27
+ exports.CreateProductRequestImagesInnerFromJSON = CreateProductRequestImagesInnerFromJSON;
28
+ function CreateProductRequestImagesInnerFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'src': json['src'] == null ? undefined : json['src'],
34
+ };
35
+ }
36
+ exports.CreateProductRequestImagesInnerFromJSONTyped = CreateProductRequestImagesInnerFromJSONTyped;
37
+ function CreateProductRequestImagesInnerToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'src': value['src'],
43
+ };
44
+ }
45
+ exports.CreateProductRequestImagesInnerToJSON = CreateProductRequestImagesInnerToJSON;
@@ -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.7.0
5
+ * The version of the OpenAPI document: 1.9.0
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.7.0
8
+ * The version of the OpenAPI document: 1.9.0
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
- var isInstance = true;
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 ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['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 === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
38
+ if (value == null) {
39
+ return value;
45
40
  }
46
41
  return {
47
- 'title': value.title,
42
+ 'title': value['title'],
48
43
  };
49
44
  }
50
45
  exports.CreateProductRequestSeoMetadataToJSON = CreateProductRequestSeoMetadataToJSON;
@@ -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.7.0
5
+ * The version of the OpenAPI document: 1.8.0
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.7.0
8
+ * The version of the OpenAPI document: 1.8.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.7.0
5
+ * The version of the OpenAPI document: 1.8.0
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.7.0
8
+ * The version of the OpenAPI document: 1.8.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.7.0
5
+ * The version of the OpenAPI document: 1.8.0
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.7.0
8
+ * The version of the OpenAPI document: 1.8.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.7.0
5
+ * The version of the OpenAPI document: 1.8.0
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.7.0
8
+ * The version of the OpenAPI document: 1.8.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.7.0
5
+ * The version of the OpenAPI document: 1.8.0
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.7.0
8
+ * The version of the OpenAPI document: 1.8.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.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 { 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.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.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.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 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.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.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.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 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.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.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.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
+ * 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.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;