@digital8/lighting-illusions-ts-sdk 0.0.622 → 0.0.623

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 (111) hide show
  1. package/.openapi-generator/FILES +22 -30
  2. package/README.md +18 -17
  3. package/dist/apis/DefinitionApi.d.ts +85 -0
  4. package/dist/apis/DefinitionApi.js +355 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/DefinitionListResource.d.ts +38 -0
  8. package/dist/models/DefinitionListResource.js +55 -0
  9. package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
  11. package/dist/models/DefinitionResource.d.ts +44 -0
  12. package/dist/models/DefinitionResource.js +59 -0
  13. package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/DefinitionResourceArrayResponse.js +50 -0
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +3 -1
  17. package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
  18. package/dist/models/GetAllDefinitionRequest.js +76 -0
  19. package/dist/models/IndexDefinitionRequest.d.ts +92 -0
  20. package/dist/models/IndexDefinitionRequest.js +80 -0
  21. package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
  23. package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
  25. package/dist/models/StoreDefinitionRequest.d.ts +38 -0
  26. package/dist/models/StoreDefinitionRequest.js +55 -0
  27. package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
  28. package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
  29. package/dist/models/UpdateDefinitionRequest.js +55 -0
  30. package/dist/models/index.d.ts +10 -15
  31. package/dist/models/index.js +10 -15
  32. package/docs/DefinitionApi.md +407 -0
  33. package/docs/{DocumentFrontendResource.md → DefinitionListResource.md} +4 -6
  34. package/docs/{ProductCompareResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
  35. package/docs/DefinitionResource.md +38 -0
  36. package/docs/{AssetFrontendResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
  37. package/docs/{DocumentFrontendResourceArrayResponse.md → GetAllDefinitionRequest.md} +16 -6
  38. package/docs/IndexDefinitionRequest.md +48 -0
  39. package/docs/{PaginatedWishlistProductResourceResponse.md → PaginatedDefinitionListResourceResponse.md} +5 -5
  40. package/docs/{WishlistToggleResourceArrayResponse.md → PaginatedDefinitionResourceResponse.md} +7 -5
  41. package/docs/{WishlistToggleResource.md → StoreDefinitionRequest.md} +8 -8
  42. package/docs/StoreProductCategoryRequest.md +1 -1
  43. package/docs/{WishlistCheckResource.md → UpdateDefinitionRequest.md} +8 -6
  44. package/package.json +1 -1
  45. package/src/apis/DefinitionApi.ts +286 -0
  46. package/src/apis/index.ts +1 -0
  47. package/src/models/DefinitionListResource.ts +75 -0
  48. package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
  49. package/src/models/DefinitionResource.ts +84 -0
  50. package/src/models/DefinitionResourceArrayResponse.ts +73 -0
  51. package/src/models/ExternalApiLogResource.ts +3 -2
  52. package/src/models/GetAllDefinitionRequest.ts +127 -0
  53. package/src/models/IndexDefinitionRequest.ts +143 -0
  54. package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
  55. package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
  56. package/src/models/StoreDefinitionRequest.ts +75 -0
  57. package/src/models/StoreProductCategoryRequest.ts +2 -2
  58. package/src/models/UpdateDefinitionRequest.ts +75 -0
  59. package/src/models/index.ts +10 -15
  60. package/dist/models/AssetFrontendResource.d.ts +0 -74
  61. package/dist/models/AssetFrontendResource.js +0 -79
  62. package/dist/models/AssetFrontendResourceArrayResponse.d.ts +0 -33
  63. package/dist/models/AssetFrontendResourceArrayResponse.js +0 -50
  64. package/dist/models/DocumentFrontendResource.d.ts +0 -44
  65. package/dist/models/DocumentFrontendResource.js +0 -57
  66. package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +0 -33
  67. package/dist/models/DocumentFrontendResourceArrayResponse.js +0 -50
  68. package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +0 -62
  69. package/dist/models/OverlayTemplateAssetFrontendResource.js +0 -71
  70. package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +0 -33
  71. package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +0 -50
  72. package/dist/models/PaginatedWishlistProductResourceResponse.d.ts +0 -40
  73. package/dist/models/PaginatedWishlistProductResourceResponse.js +0 -57
  74. package/dist/models/ProductCompareResource.d.ts +0 -141
  75. package/dist/models/ProductCompareResource.js +0 -124
  76. package/dist/models/ProductCompareResourceArrayResponse.d.ts +0 -33
  77. package/dist/models/ProductCompareResourceArrayResponse.js +0 -50
  78. package/dist/models/WishlistCheckResource.d.ts +0 -32
  79. package/dist/models/WishlistCheckResource.js +0 -51
  80. package/dist/models/WishlistCheckResourceArrayResponse.d.ts +0 -33
  81. package/dist/models/WishlistCheckResourceArrayResponse.js +0 -50
  82. package/dist/models/WishlistProductResource.d.ts +0 -122
  83. package/dist/models/WishlistProductResource.js +0 -105
  84. package/dist/models/WishlistProductResourceArrayResponse.d.ts +0 -33
  85. package/dist/models/WishlistProductResourceArrayResponse.js +0 -50
  86. package/dist/models/WishlistToggleResource.d.ts +0 -38
  87. package/dist/models/WishlistToggleResource.js +0 -55
  88. package/dist/models/WishlistToggleResourceArrayResponse.d.ts +0 -33
  89. package/dist/models/WishlistToggleResourceArrayResponse.js +0 -50
  90. package/docs/AssetFrontendResource.md +0 -48
  91. package/docs/OverlayTemplateAssetFrontendResource.md +0 -44
  92. package/docs/OverlayTemplateAssetFrontendResourceArrayResponse.md +0 -34
  93. package/docs/ProductCompareResource.md +0 -70
  94. package/docs/WishlistCheckResourceArrayResponse.md +0 -34
  95. package/docs/WishlistProductResource.md +0 -64
  96. package/docs/WishlistProductResourceArrayResponse.md +0 -34
  97. package/src/models/AssetFrontendResource.ts +0 -129
  98. package/src/models/AssetFrontendResourceArrayResponse.ts +0 -73
  99. package/src/models/DocumentFrontendResource.ts +0 -83
  100. package/src/models/DocumentFrontendResourceArrayResponse.ts +0 -73
  101. package/src/models/OverlayTemplateAssetFrontendResource.ts +0 -111
  102. package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +0 -73
  103. package/src/models/PaginatedWishlistProductResourceResponse.ts +0 -90
  104. package/src/models/ProductCompareResource.ts +0 -236
  105. package/src/models/ProductCompareResourceArrayResponse.ts +0 -73
  106. package/src/models/WishlistCheckResource.ts +0 -66
  107. package/src/models/WishlistCheckResourceArrayResponse.ts +0 -73
  108. package/src/models/WishlistProductResource.ts +0 -198
  109. package/src/models/WishlistProductResourceArrayResponse.ts +0 -73
  110. package/src/models/WishlistToggleResource.ts +0 -75
  111. package/src/models/WishlistToggleResourceArrayResponse.ts +0 -73
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
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.instanceOfWishlistCheckResource = instanceOfWishlistCheckResource;
17
- exports.WishlistCheckResourceFromJSON = WishlistCheckResourceFromJSON;
18
- exports.WishlistCheckResourceFromJSONTyped = WishlistCheckResourceFromJSONTyped;
19
- exports.WishlistCheckResourceToJSON = WishlistCheckResourceToJSON;
20
- exports.WishlistCheckResourceToJSONTyped = WishlistCheckResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the WishlistCheckResource interface.
23
- */
24
- function instanceOfWishlistCheckResource(value) {
25
- if (!('inWishlist' in value) || value['inWishlist'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function WishlistCheckResourceFromJSON(json) {
30
- return WishlistCheckResourceFromJSONTyped(json, false);
31
- }
32
- function WishlistCheckResourceFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'inWishlist': json['in_wishlist'],
38
- };
39
- }
40
- function WishlistCheckResourceToJSON(json) {
41
- return WishlistCheckResourceToJSONTyped(json, false);
42
- }
43
- function WishlistCheckResourceToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'in_wishlist': value['inWishlist'],
50
- };
51
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 { WishlistCheckResource } from './WishlistCheckResource';
13
- /**
14
- *
15
- * @export
16
- * @interface WishlistCheckResourceArrayResponse
17
- */
18
- export interface WishlistCheckResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<WishlistCheckResource>}
22
- * @memberof WishlistCheckResourceArrayResponse
23
- */
24
- data?: Array<WishlistCheckResource>;
25
- }
26
- /**
27
- * Check if a given object implements the WishlistCheckResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfWishlistCheckResourceArrayResponse(value: object): value is WishlistCheckResourceArrayResponse;
30
- export declare function WishlistCheckResourceArrayResponseFromJSON(json: any): WishlistCheckResourceArrayResponse;
31
- export declare function WishlistCheckResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResourceArrayResponse;
32
- export declare function WishlistCheckResourceArrayResponseToJSON(json: any): WishlistCheckResourceArrayResponse;
33
- export declare function WishlistCheckResourceArrayResponseToJSONTyped(value?: WishlistCheckResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
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.instanceOfWishlistCheckResourceArrayResponse = instanceOfWishlistCheckResourceArrayResponse;
17
- exports.WishlistCheckResourceArrayResponseFromJSON = WishlistCheckResourceArrayResponseFromJSON;
18
- exports.WishlistCheckResourceArrayResponseFromJSONTyped = WishlistCheckResourceArrayResponseFromJSONTyped;
19
- exports.WishlistCheckResourceArrayResponseToJSON = WishlistCheckResourceArrayResponseToJSON;
20
- exports.WishlistCheckResourceArrayResponseToJSONTyped = WishlistCheckResourceArrayResponseToJSONTyped;
21
- var WishlistCheckResource_1 = require("./WishlistCheckResource");
22
- /**
23
- * Check if a given object implements the WishlistCheckResourceArrayResponse interface.
24
- */
25
- function instanceOfWishlistCheckResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function WishlistCheckResourceArrayResponseFromJSON(json) {
29
- return WishlistCheckResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function WishlistCheckResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(WishlistCheckResource_1.WishlistCheckResourceFromJSON)),
37
- };
38
- }
39
- function WishlistCheckResourceArrayResponseToJSON(json) {
40
- return WishlistCheckResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function WishlistCheckResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(WishlistCheckResource_1.WishlistCheckResourceToJSON)),
49
- };
50
- }
@@ -1,122 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 WishlistProductResource
16
- */
17
- export interface WishlistProductResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof WishlistProductResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof WishlistProductResource
28
- */
29
- sku: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof WishlistProductResource
34
- */
35
- model: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof WishlistProductResource
40
- */
41
- name: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof WishlistProductResource
46
- */
47
- slug: string;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof WishlistProductResource
52
- */
53
- price: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof WishlistProductResource
58
- */
59
- salePrice: number;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof WishlistProductResource
64
- */
65
- thumbnail?: string | null;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof WishlistProductResource
70
- */
71
- averageRating: number;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof WishlistProductResource
76
- */
77
- labelDetails?: string | null;
78
- /**
79
- *
80
- * @type {Array<boolean>}
81
- * @memberof WishlistProductResource
82
- */
83
- categories: Array<boolean>;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof WishlistProductResource
88
- */
89
- supplierName: string;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof WishlistProductResource
94
- */
95
- supplierLogo?: string | null;
96
- /**
97
- *
98
- * @type {number}
99
- * @memberof WishlistProductResource
100
- */
101
- supplierId: number;
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof WishlistProductResource
106
- */
107
- availability: string;
108
- /**
109
- *
110
- * @type {boolean}
111
- * @memberof WishlistProductResource
112
- */
113
- wishlisted: boolean;
114
- }
115
- /**
116
- * Check if a given object implements the WishlistProductResource interface.
117
- */
118
- export declare function instanceOfWishlistProductResource(value: object): value is WishlistProductResource;
119
- export declare function WishlistProductResourceFromJSON(json: any): WishlistProductResource;
120
- export declare function WishlistProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResource;
121
- export declare function WishlistProductResourceToJSON(json: any): WishlistProductResource;
122
- export declare function WishlistProductResourceToJSONTyped(value?: WishlistProductResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,105 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
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.instanceOfWishlistProductResource = instanceOfWishlistProductResource;
17
- exports.WishlistProductResourceFromJSON = WishlistProductResourceFromJSON;
18
- exports.WishlistProductResourceFromJSONTyped = WishlistProductResourceFromJSONTyped;
19
- exports.WishlistProductResourceToJSON = WishlistProductResourceToJSON;
20
- exports.WishlistProductResourceToJSONTyped = WishlistProductResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the WishlistProductResource interface.
23
- */
24
- function instanceOfWishlistProductResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('sku' in value) || value['sku'] === undefined)
28
- return false;
29
- if (!('model' in value) || value['model'] === undefined)
30
- return false;
31
- if (!('name' in value) || value['name'] === undefined)
32
- return false;
33
- if (!('slug' in value) || value['slug'] === undefined)
34
- return false;
35
- if (!('price' in value) || value['price'] === undefined)
36
- return false;
37
- if (!('salePrice' in value) || value['salePrice'] === undefined)
38
- return false;
39
- if (!('averageRating' in value) || value['averageRating'] === undefined)
40
- return false;
41
- if (!('categories' in value) || value['categories'] === undefined)
42
- return false;
43
- if (!('supplierName' in value) || value['supplierName'] === undefined)
44
- return false;
45
- if (!('supplierId' in value) || value['supplierId'] === undefined)
46
- return false;
47
- if (!('availability' in value) || value['availability'] === undefined)
48
- return false;
49
- if (!('wishlisted' in value) || value['wishlisted'] === undefined)
50
- return false;
51
- return true;
52
- }
53
- function WishlistProductResourceFromJSON(json) {
54
- return WishlistProductResourceFromJSONTyped(json, false);
55
- }
56
- function WishlistProductResourceFromJSONTyped(json, ignoreDiscriminator) {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
- 'id': json['id'],
62
- 'sku': json['sku'],
63
- 'model': json['model'],
64
- 'name': json['name'],
65
- 'slug': json['slug'],
66
- 'price': json['price'],
67
- 'salePrice': json['salePrice'],
68
- 'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
69
- 'averageRating': json['averageRating'],
70
- 'labelDetails': json['labelDetails'] == null ? undefined : json['labelDetails'],
71
- 'categories': json['categories'],
72
- 'supplierName': json['supplierName'],
73
- 'supplierLogo': json['supplierLogo'] == null ? undefined : json['supplierLogo'],
74
- 'supplierId': json['supplierId'],
75
- 'availability': json['availability'],
76
- 'wishlisted': json['wishlisted'],
77
- };
78
- }
79
- function WishlistProductResourceToJSON(json) {
80
- return WishlistProductResourceToJSONTyped(json, false);
81
- }
82
- function WishlistProductResourceToJSONTyped(value, ignoreDiscriminator) {
83
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
84
- if (value == null) {
85
- return value;
86
- }
87
- return {
88
- 'id': value['id'],
89
- 'sku': value['sku'],
90
- 'model': value['model'],
91
- 'name': value['name'],
92
- 'slug': value['slug'],
93
- 'price': value['price'],
94
- 'salePrice': value['salePrice'],
95
- 'thumbnail': value['thumbnail'],
96
- 'averageRating': value['averageRating'],
97
- 'labelDetails': value['labelDetails'],
98
- 'categories': value['categories'],
99
- 'supplierName': value['supplierName'],
100
- 'supplierLogo': value['supplierLogo'],
101
- 'supplierId': value['supplierId'],
102
- 'availability': value['availability'],
103
- 'wishlisted': value['wishlisted'],
104
- };
105
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 { WishlistProductResource } from './WishlistProductResource';
13
- /**
14
- *
15
- * @export
16
- * @interface WishlistProductResourceArrayResponse
17
- */
18
- export interface WishlistProductResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<WishlistProductResource>}
22
- * @memberof WishlistProductResourceArrayResponse
23
- */
24
- data?: Array<WishlistProductResource>;
25
- }
26
- /**
27
- * Check if a given object implements the WishlistProductResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfWishlistProductResourceArrayResponse(value: object): value is WishlistProductResourceArrayResponse;
30
- export declare function WishlistProductResourceArrayResponseFromJSON(json: any): WishlistProductResourceArrayResponse;
31
- export declare function WishlistProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResourceArrayResponse;
32
- export declare function WishlistProductResourceArrayResponseToJSON(json: any): WishlistProductResourceArrayResponse;
33
- export declare function WishlistProductResourceArrayResponseToJSONTyped(value?: WishlistProductResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
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.instanceOfWishlistProductResourceArrayResponse = instanceOfWishlistProductResourceArrayResponse;
17
- exports.WishlistProductResourceArrayResponseFromJSON = WishlistProductResourceArrayResponseFromJSON;
18
- exports.WishlistProductResourceArrayResponseFromJSONTyped = WishlistProductResourceArrayResponseFromJSONTyped;
19
- exports.WishlistProductResourceArrayResponseToJSON = WishlistProductResourceArrayResponseToJSON;
20
- exports.WishlistProductResourceArrayResponseToJSONTyped = WishlistProductResourceArrayResponseToJSONTyped;
21
- var WishlistProductResource_1 = require("./WishlistProductResource");
22
- /**
23
- * Check if a given object implements the WishlistProductResourceArrayResponse interface.
24
- */
25
- function instanceOfWishlistProductResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function WishlistProductResourceArrayResponseFromJSON(json) {
29
- return WishlistProductResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function WishlistProductResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(WishlistProductResource_1.WishlistProductResourceFromJSON)),
37
- };
38
- }
39
- function WishlistProductResourceArrayResponseToJSON(json) {
40
- return WishlistProductResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function WishlistProductResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(WishlistProductResource_1.WishlistProductResourceToJSON)),
49
- };
50
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 WishlistToggleResource
16
- */
17
- export interface WishlistToggleResource {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof WishlistToggleResource
22
- */
23
- action: string;
24
- /**
25
- *
26
- * @type {Array<number>}
27
- * @memberof WishlistToggleResource
28
- */
29
- product: Array<number>;
30
- }
31
- /**
32
- * Check if a given object implements the WishlistToggleResource interface.
33
- */
34
- export declare function instanceOfWishlistToggleResource(value: object): value is WishlistToggleResource;
35
- export declare function WishlistToggleResourceFromJSON(json: any): WishlistToggleResource;
36
- export declare function WishlistToggleResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResource;
37
- export declare function WishlistToggleResourceToJSON(json: any): WishlistToggleResource;
38
- export declare function WishlistToggleResourceToJSONTyped(value?: WishlistToggleResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
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.instanceOfWishlistToggleResource = instanceOfWishlistToggleResource;
17
- exports.WishlistToggleResourceFromJSON = WishlistToggleResourceFromJSON;
18
- exports.WishlistToggleResourceFromJSONTyped = WishlistToggleResourceFromJSONTyped;
19
- exports.WishlistToggleResourceToJSON = WishlistToggleResourceToJSON;
20
- exports.WishlistToggleResourceToJSONTyped = WishlistToggleResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the WishlistToggleResource interface.
23
- */
24
- function instanceOfWishlistToggleResource(value) {
25
- if (!('action' in value) || value['action'] === undefined)
26
- return false;
27
- if (!('product' in value) || value['product'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function WishlistToggleResourceFromJSON(json) {
32
- return WishlistToggleResourceFromJSONTyped(json, false);
33
- }
34
- function WishlistToggleResourceFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'action': json['action'],
40
- 'product': json['product'],
41
- };
42
- }
43
- function WishlistToggleResourceToJSON(json) {
44
- return WishlistToggleResourceToJSONTyped(json, false);
45
- }
46
- function WishlistToggleResourceToJSONTyped(value, ignoreDiscriminator) {
47
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'action': value['action'],
53
- 'product': value['product'],
54
- };
55
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 { WishlistToggleResource } from './WishlistToggleResource';
13
- /**
14
- *
15
- * @export
16
- * @interface WishlistToggleResourceArrayResponse
17
- */
18
- export interface WishlistToggleResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<WishlistToggleResource>}
22
- * @memberof WishlistToggleResourceArrayResponse
23
- */
24
- data?: Array<WishlistToggleResource>;
25
- }
26
- /**
27
- * Check if a given object implements the WishlistToggleResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfWishlistToggleResourceArrayResponse(value: object): value is WishlistToggleResourceArrayResponse;
30
- export declare function WishlistToggleResourceArrayResponseFromJSON(json: any): WishlistToggleResourceArrayResponse;
31
- export declare function WishlistToggleResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResourceArrayResponse;
32
- export declare function WishlistToggleResourceArrayResponseToJSON(json: any): WishlistToggleResourceArrayResponse;
33
- export declare function WishlistToggleResourceArrayResponseToJSONTyped(value?: WishlistToggleResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
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.instanceOfWishlistToggleResourceArrayResponse = instanceOfWishlistToggleResourceArrayResponse;
17
- exports.WishlistToggleResourceArrayResponseFromJSON = WishlistToggleResourceArrayResponseFromJSON;
18
- exports.WishlistToggleResourceArrayResponseFromJSONTyped = WishlistToggleResourceArrayResponseFromJSONTyped;
19
- exports.WishlistToggleResourceArrayResponseToJSON = WishlistToggleResourceArrayResponseToJSON;
20
- exports.WishlistToggleResourceArrayResponseToJSONTyped = WishlistToggleResourceArrayResponseToJSONTyped;
21
- var WishlistToggleResource_1 = require("./WishlistToggleResource");
22
- /**
23
- * Check if a given object implements the WishlistToggleResourceArrayResponse interface.
24
- */
25
- function instanceOfWishlistToggleResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function WishlistToggleResourceArrayResponseFromJSON(json) {
29
- return WishlistToggleResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function WishlistToggleResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(WishlistToggleResource_1.WishlistToggleResourceFromJSON)),
37
- };
38
- }
39
- function WishlistToggleResourceArrayResponseToJSON(json) {
40
- return WishlistToggleResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function WishlistToggleResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(WishlistToggleResource_1.WishlistToggleResourceToJSON)),
49
- };
50
- }
@@ -1,48 +0,0 @@
1
-
2
- # AssetFrontendResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `filePath` | string
11
- `fileName` | string
12
- `altText` | string
13
- `index` | number
14
- `isThumbnail` | boolean
15
- `isLifestyle` | boolean
16
- `overlays` | object
17
-
18
- ## Example
19
-
20
- ```typescript
21
- import type { AssetFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
22
-
23
- // TODO: Update the object below with actual values
24
- const example = {
25
- "id": null,
26
- "filePath": null,
27
- "fileName": null,
28
- "altText": null,
29
- "index": null,
30
- "isThumbnail": null,
31
- "isLifestyle": null,
32
- "overlays": null,
33
- } satisfies AssetFrontendResource
34
-
35
- console.log(example)
36
-
37
- // Convert the instance to a JSON string
38
- const exampleJSON: string = JSON.stringify(example)
39
- console.log(exampleJSON)
40
-
41
- // Parse the JSON string back to an object
42
- const exampleParsed = JSON.parse(exampleJSON) as AssetFrontendResource
43
- console.log(exampleParsed)
44
- ```
45
-
46
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
-
48
-