@teemill/gfn-catalog 0.1.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 (51) hide show
  1. package/.openapi-generator/FILES +21 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/ProductsApi.d.ts +33 -0
  6. package/dist/apis/ProductsApi.js +160 -0
  7. package/dist/apis/VariantsApi.d.ts +48 -0
  8. package/dist/apis/VariantsApi.js +229 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +20 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +21 -0
  13. package/dist/models/ApiError.d.ts +37 -0
  14. package/dist/models/ApiError.js +53 -0
  15. package/dist/models/Attribute.d.ts +50 -0
  16. package/dist/models/Attribute.js +59 -0
  17. package/dist/models/AttributeThumbnail.d.ts +46 -0
  18. package/dist/models/AttributeThumbnail.js +60 -0
  19. package/dist/models/Image.d.ts +67 -0
  20. package/dist/models/Image.js +62 -0
  21. package/dist/models/Product.d.ts +56 -0
  22. package/dist/models/Product.js +60 -0
  23. package/dist/models/ProductsResponse.d.ts +32 -0
  24. package/dist/models/ProductsResponse.js +51 -0
  25. package/dist/models/Variant.d.ts +64 -0
  26. package/dist/models/Variant.js +65 -0
  27. package/dist/models/VariantProduct.d.ts +37 -0
  28. package/dist/models/VariantProduct.js +52 -0
  29. package/dist/models/VariantsResponse.d.ts +32 -0
  30. package/dist/models/VariantsResponse.js +51 -0
  31. package/dist/models/index.d.ts +9 -0
  32. package/dist/models/index.js +27 -0
  33. package/dist/runtime.d.ts +187 -0
  34. package/dist/runtime.js +565 -0
  35. package/package.json +19 -0
  36. package/src/apis/ProductsApi.ts +103 -0
  37. package/src/apis/VariantsApi.ts +176 -0
  38. package/src/apis/index.ts +4 -0
  39. package/src/index.ts +5 -0
  40. package/src/models/ApiError.ts +74 -0
  41. package/src/models/Attribute.ts +98 -0
  42. package/src/models/AttributeThumbnail.ts +85 -0
  43. package/src/models/Image.ts +113 -0
  44. package/src/models/Product.ts +105 -0
  45. package/src/models/ProductsResponse.ts +72 -0
  46. package/src/models/Variant.ts +126 -0
  47. package/src/models/VariantProduct.ts +73 -0
  48. package/src/models/VariantsResponse.ts +72 -0
  49. package/src/models/index.ts +11 -0
  50. package/src/runtime.ts +441 -0
  51. package/tsconfig.json +20 -0
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ApiError interface.
20
+ */
21
+ function instanceOfApiError(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "message" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfApiError = instanceOfApiError;
27
+ function ApiErrorFromJSON(json) {
28
+ return ApiErrorFromJSONTyped(json, false);
29
+ }
30
+ exports.ApiErrorFromJSON = ApiErrorFromJSON;
31
+ function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
37
+ 'message': json['message'],
38
+ };
39
+ }
40
+ exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
41
+ function ApiErrorToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'code': value.code,
50
+ 'message': value.message,
51
+ };
52
+ }
53
+ exports.ApiErrorToJSON = ApiErrorToJSON;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 { AttributeThumbnail } from './AttributeThumbnail';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Attribute
17
+ */
18
+ export interface Attribute {
19
+ /**
20
+ * Attribute name
21
+ * @type {string}
22
+ * @memberof Attribute
23
+ */
24
+ name: string;
25
+ /**
26
+ * Attribute value
27
+ * @type {string}
28
+ * @memberof Attribute
29
+ */
30
+ value: string;
31
+ /**
32
+ *
33
+ * @type {AttributeThumbnail}
34
+ * @memberof Attribute
35
+ */
36
+ thumbnail?: AttributeThumbnail;
37
+ /**
38
+ * Attribute tags
39
+ * @type {Array<string>}
40
+ * @memberof Attribute
41
+ */
42
+ tags?: Array<string>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the Attribute interface.
46
+ */
47
+ export declare function instanceOfAttribute(value: object): boolean;
48
+ export declare function AttributeFromJSON(json: any): Attribute;
49
+ export declare function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attribute;
50
+ export declare function AttributeToJSON(value?: Attribute | null): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.AttributeToJSON = exports.AttributeFromJSONTyped = exports.AttributeFromJSON = exports.instanceOfAttribute = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var AttributeThumbnail_1 = require("./AttributeThumbnail");
19
+ /**
20
+ * Check if a given object implements the Attribute interface.
21
+ */
22
+ function instanceOfAttribute(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "value" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfAttribute = instanceOfAttribute;
29
+ function AttributeFromJSON(json) {
30
+ return AttributeFromJSONTyped(json, false);
31
+ }
32
+ exports.AttributeFromJSON = AttributeFromJSON;
33
+ function AttributeFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'value': json['value'],
40
+ 'thumbnail': !(0, runtime_1.exists)(json, 'thumbnail') ? undefined : (0, AttributeThumbnail_1.AttributeThumbnailFromJSON)(json['thumbnail']),
41
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
42
+ };
43
+ }
44
+ exports.AttributeFromJSONTyped = AttributeFromJSONTyped;
45
+ function AttributeToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'name': value.name,
54
+ 'value': value.value,
55
+ 'thumbnail': (0, AttributeThumbnail_1.AttributeThumbnailToJSON)(value.thumbnail),
56
+ 'tags': value.tags,
57
+ };
58
+ }
59
+ exports.AttributeToJSON = AttributeToJSON;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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
+ * Attribute thumbnail
14
+ * @export
15
+ * @interface AttributeThumbnail
16
+ */
17
+ export interface AttributeThumbnail {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AttributeThumbnail
22
+ */
23
+ type?: AttributeThumbnailTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AttributeThumbnail
28
+ */
29
+ value?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const AttributeThumbnailTypeEnum: {
35
+ readonly Text: "text";
36
+ readonly Color: "color";
37
+ readonly Image: "image";
38
+ };
39
+ export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
40
+ /**
41
+ * Check if a given object implements the AttributeThumbnail interface.
42
+ */
43
+ export declare function instanceOfAttributeThumbnail(value: object): boolean;
44
+ export declare function AttributeThumbnailFromJSON(json: any): AttributeThumbnail;
45
+ export declare function AttributeThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeThumbnail;
46
+ export declare function AttributeThumbnailToJSON(value?: AttributeThumbnail | null): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.AttributeThumbnailToJSON = exports.AttributeThumbnailFromJSONTyped = exports.AttributeThumbnailFromJSON = exports.instanceOfAttributeThumbnail = exports.AttributeThumbnailTypeEnum = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.AttributeThumbnailTypeEnum = {
22
+ Text: 'text',
23
+ Color: 'color',
24
+ Image: 'image'
25
+ };
26
+ /**
27
+ * Check if a given object implements the AttributeThumbnail interface.
28
+ */
29
+ function instanceOfAttributeThumbnail(value) {
30
+ var isInstance = true;
31
+ return isInstance;
32
+ }
33
+ exports.instanceOfAttributeThumbnail = instanceOfAttributeThumbnail;
34
+ function AttributeThumbnailFromJSON(json) {
35
+ return AttributeThumbnailFromJSONTyped(json, false);
36
+ }
37
+ exports.AttributeThumbnailFromJSON = AttributeThumbnailFromJSON;
38
+ function AttributeThumbnailFromJSONTyped(json, ignoreDiscriminator) {
39
+ if ((json === undefined) || (json === null)) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
44
+ 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
45
+ };
46
+ }
47
+ exports.AttributeThumbnailFromJSONTyped = AttributeThumbnailFromJSONTyped;
48
+ function AttributeThumbnailToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'type': value.type,
57
+ 'value': value.value,
58
+ };
59
+ }
60
+ exports.AttributeThumbnailToJSON = AttributeThumbnailToJSON;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the Image interface.
20
+ */
21
+ function instanceOfImage(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfImage = instanceOfImage;
26
+ function ImageFromJSON(json) {
27
+ return ImageFromJSONTyped(json, false);
28
+ }
29
+ exports.ImageFromJSON = ImageFromJSON;
30
+ function ImageFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
36
+ 'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
37
+ 'alt': !(0, runtime_1.exists)(json, 'alt') ? undefined : json['alt'],
38
+ 'variantIds': !(0, runtime_1.exists)(json, 'variantIds') ? undefined : json['variantIds'],
39
+ 'sortOrder': !(0, runtime_1.exists)(json, 'sortOrder') ? undefined : json['sortOrder'],
40
+ 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : json['createdAt'],
41
+ 'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : json['updatedAt'],
42
+ };
43
+ }
44
+ exports.ImageFromJSONTyped = ImageFromJSONTyped;
45
+ function ImageToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'id': value.id,
54
+ 'src': value.src,
55
+ 'alt': value.alt,
56
+ 'variantIds': value.variantIds,
57
+ 'sortOrder': value.sortOrder,
58
+ 'createdAt': value.createdAt,
59
+ 'updatedAt': value.updatedAt,
60
+ };
61
+ }
62
+ exports.ImageToJSON = ImageToJSON;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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
+ /**
14
+ *
15
+ * @export
16
+ * @interface Product
17
+ */
18
+ export interface Product {
19
+ /**
20
+ * Unique object identifier
21
+ * @type {string}
22
+ * @memberof Product
23
+ */
24
+ id?: string;
25
+ /**
26
+ * A reference to the resource location
27
+ * @type {string}
28
+ * @memberof Product
29
+ */
30
+ ref?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof Product
35
+ */
36
+ title: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof Product
41
+ */
42
+ sku?: string;
43
+ /**
44
+ * Images
45
+ * @type {Array<Image>}
46
+ * @memberof Product
47
+ */
48
+ images?: Array<Image>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the Product interface.
52
+ */
53
+ export declare function instanceOfProduct(value: object): boolean;
54
+ export declare function ProductFromJSON(json: any): Product;
55
+ export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
56
+ export declare function ProductToJSON(value?: Product | null): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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 runtime_1 = require("../runtime");
18
+ var Image_1 = require("./Image");
19
+ /**
20
+ * Check if a given object implements the Product interface.
21
+ */
22
+ function instanceOfProduct(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "title" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfProduct = instanceOfProduct;
28
+ function ProductFromJSON(json) {
29
+ return ProductFromJSONTyped(json, false);
30
+ }
31
+ exports.ProductFromJSON = ProductFromJSON;
32
+ function ProductFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
+ 'ref': !(0, runtime_1.exists)(json, 'ref') ? undefined : json['ref'],
39
+ 'title': json['title'],
40
+ 'sku': !(0, runtime_1.exists)(json, 'sku') ? undefined : json['sku'],
41
+ 'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
42
+ };
43
+ }
44
+ exports.ProductFromJSONTyped = ProductFromJSONTyped;
45
+ function ProductToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'id': value.id,
54
+ 'ref': value.ref,
55
+ 'title': value.title,
56
+ 'sku': value.sku,
57
+ 'images': value.images === undefined ? undefined : (value.images.map(Image_1.ImageToJSON)),
58
+ };
59
+ }
60
+ exports.ProductToJSON = ProductToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 { Product } from './Product';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductsResponse
17
+ */
18
+ export interface ProductsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Product>}
22
+ * @memberof ProductsResponse
23
+ */
24
+ products?: Array<Product>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductsResponse interface.
28
+ */
29
+ export declare function instanceOfProductsResponse(value: object): boolean;
30
+ export declare function ProductsResponseFromJSON(json: any): ProductsResponse;
31
+ export declare function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse;
32
+ export declare function ProductsResponseToJSON(value?: ProductsResponse | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.ProductsResponseToJSON = exports.ProductsResponseFromJSONTyped = exports.ProductsResponseFromJSON = exports.instanceOfProductsResponse = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Product_1 = require("./Product");
19
+ /**
20
+ * Check if a given object implements the ProductsResponse interface.
21
+ */
22
+ function instanceOfProductsResponse(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfProductsResponse = instanceOfProductsResponse;
27
+ function ProductsResponseFromJSON(json) {
28
+ return ProductsResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.ProductsResponseFromJSON = ProductsResponseFromJSON;
31
+ function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'products': !(0, runtime_1.exists)(json, 'products') ? undefined : (json['products'].map(Product_1.ProductFromJSON)),
37
+ };
38
+ }
39
+ exports.ProductsResponseFromJSONTyped = ProductsResponseFromJSONTyped;
40
+ function ProductsResponseToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'products': value.products === undefined ? undefined : (value.products.map(Product_1.ProductToJSON)),
49
+ };
50
+ }
51
+ exports.ProductsResponseToJSON = ProductsResponseToJSON;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Manage Teemill GFN Products For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 { Attribute } from './Attribute';
13
+ import type { Image } from './Image';
14
+ import type { VariantProduct } from './VariantProduct';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface Variant
19
+ */
20
+ export interface Variant {
21
+ /**
22
+ * Unique object identifier
23
+ * @type {string}
24
+ * @memberof Variant
25
+ */
26
+ id?: string;
27
+ /**
28
+ * A reference to the resource location
29
+ * @type {string}
30
+ * @memberof Variant
31
+ */
32
+ ref?: string;
33
+ /**
34
+ *
35
+ * @type {VariantProduct}
36
+ * @memberof Variant
37
+ */
38
+ product?: VariantProduct;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof Variant
43
+ */
44
+ sku: string;
45
+ /**
46
+ * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
47
+ * @type {Array<Attribute>}
48
+ * @memberof Variant
49
+ */
50
+ attributes: Array<Attribute>;
51
+ /**
52
+ * Images
53
+ * @type {Array<Image>}
54
+ * @memberof Variant
55
+ */
56
+ images?: Array<Image>;
57
+ }
58
+ /**
59
+ * Check if a given object implements the Variant interface.
60
+ */
61
+ export declare function instanceOfVariant(value: object): boolean;
62
+ export declare function VariantFromJSON(json: any): Variant;
63
+ export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
64
+ export declare function VariantToJSON(value?: Variant | null): any;