@digital8/lighting-illusions-ts-sdk 0.0.749 → 0.0.751

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 (196) hide show
  1. package/.openapi-generator/FILES +68 -2
  2. package/README.md +52 -3
  3. package/dist/apis/AttributeApi.d.ts +12 -1
  4. package/dist/apis/AttributeApi.js +45 -0
  5. package/dist/apis/ProductRangeApi.d.ts +205 -0
  6. package/dist/apis/ProductRangeApi.js +835 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
  10. package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
  11. package/dist/models/AttachAttributesProductRangeRequest.d.ts +33 -0
  12. package/dist/models/AttachAttributesProductRangeRequest.js +52 -0
  13. package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +38 -0
  14. package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +53 -0
  15. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
  16. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
  17. package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
  18. package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
  19. package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
  20. package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
  21. package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
  22. package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
  23. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
  24. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
  25. package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
  26. package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
  27. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  28. package/dist/models/ExternalApiLogResource.js +3 -1
  29. package/dist/models/GetAllDocumentRequest.d.ts +1 -0
  30. package/dist/models/GetAllDocumentRequest.js +1 -0
  31. package/dist/models/GetAllProductChildRequest.d.ts +1 -0
  32. package/dist/models/GetAllProductChildRequest.js +1 -0
  33. package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
  34. package/dist/models/GetAllProductRangeRequest.js +82 -0
  35. package/dist/models/IndexAttributeRequest.d.ts +2 -0
  36. package/dist/models/IndexAttributeRequest.js +3 -1
  37. package/dist/models/IndexDocumentRequest.d.ts +1 -0
  38. package/dist/models/IndexDocumentRequest.js +1 -0
  39. package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
  40. package/dist/models/IndexModelAttributeRequest.js +93 -0
  41. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  42. package/dist/models/IndexProductChildRequest.js +1 -0
  43. package/dist/models/IndexProductRangeRequest.d.ts +110 -0
  44. package/dist/models/IndexProductRangeRequest.js +86 -0
  45. package/dist/models/ModelAttributeListResource.d.ts +52 -0
  46. package/dist/models/ModelAttributeListResource.js +65 -0
  47. package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +33 -0
  48. package/dist/models/ModelAttributeListResourceArrayResponse.js +50 -0
  49. package/dist/models/ModelAttributeResource.d.ts +6 -0
  50. package/dist/models/ModelAttributeResource.js +2 -0
  51. package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +40 -0
  52. package/dist/models/PaginatedModelAttributeListResourceResponse.js +57 -0
  53. package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
  54. package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
  55. package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
  56. package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
  57. package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
  58. package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
  59. package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
  60. package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
  61. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  62. package/dist/models/ProductCategoryLiteResource.js +0 -4
  63. package/dist/models/ProductChildListResource.d.ts +0 -12
  64. package/dist/models/ProductChildListResource.js +0 -6
  65. package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
  66. package/dist/models/ProductRangeFrontendListResource.js +71 -0
  67. package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
  68. package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
  69. package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
  70. package/dist/models/ProductRangeFrontendResource.js +109 -0
  71. package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
  72. package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
  73. package/dist/models/ProductRangeListResource.d.ts +52 -0
  74. package/dist/models/ProductRangeListResource.js +65 -0
  75. package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
  76. package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
  77. package/dist/models/ProductRangeLiteResource.d.ts +38 -0
  78. package/dist/models/ProductRangeLiteResource.js +55 -0
  79. package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
  80. package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
  81. package/dist/models/ProductRangeResource.d.ts +89 -0
  82. package/dist/models/ProductRangeResource.js +86 -0
  83. package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
  84. package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
  85. package/dist/models/ProductRangeSiteDetailResource.d.ts +101 -0
  86. package/dist/models/ProductRangeSiteDetailResource.js +98 -0
  87. package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
  88. package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
  89. package/dist/models/ProductResource.d.ts +2 -2
  90. package/dist/models/ProductResource.js +3 -3
  91. package/dist/models/StoreProductRangeRequest.d.ts +52 -0
  92. package/dist/models/StoreProductRangeRequest.js +59 -0
  93. package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
  94. package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
  95. package/dist/models/UpdateProductRangeRequest.d.ts +59 -0
  96. package/dist/models/UpdateProductRangeRequest.js +62 -0
  97. package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +38 -0
  98. package/dist/models/UpdateProductRangeRequestAttributesInner.js +51 -0
  99. package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
  100. package/dist/models/UpdateProductTypeRequest.js +9 -9
  101. package/dist/models/index.d.ts +33 -1
  102. package/dist/models/index.js +33 -1
  103. package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
  104. package/docs/AttachAttributesProductRangeRequest.md +34 -0
  105. package/docs/AttachAttributesProductRangeRequestAttributesInner.md +36 -0
  106. package/docs/AttachDocumentsProductRangeRequest.md +34 -0
  107. package/docs/AttributeApi.md +66 -0
  108. package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
  109. package/docs/DetachAttributesProductRangeRequest.md +34 -0
  110. package/docs/DetachDocumentsProductRangeRequest.md +34 -0
  111. package/docs/GetAllProductRangeRequest.md +50 -0
  112. package/docs/IndexModelAttributeRequest.md +54 -0
  113. package/docs/IndexProductRangeRequest.md +54 -0
  114. package/docs/ModelAttributeListResource.md +40 -0
  115. package/docs/ModelAttributeListResourceArrayResponse.md +34 -0
  116. package/docs/ModelAttributeResource.md +2 -0
  117. package/docs/PaginatedModelAttributeListResourceResponse.md +36 -0
  118. package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
  119. package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
  120. package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
  121. package/docs/PaginatedProductRangeResourceResponse.md +36 -0
  122. package/docs/ProductCategoryLiteResource.md +0 -2
  123. package/docs/ProductChildListResource.md +0 -4
  124. package/docs/ProductRangeApi.md +1097 -0
  125. package/docs/ProductRangeFrontendListResource.md +44 -0
  126. package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
  127. package/docs/ProductRangeFrontendResource.md +62 -0
  128. package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
  129. package/docs/ProductRangeListResource.md +40 -0
  130. package/docs/ProductRangeListResourceArrayResponse.md +34 -0
  131. package/docs/ProductRangeLiteResource.md +36 -0
  132. package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
  133. package/docs/ProductRangeResource.md +52 -0
  134. package/docs/ProductRangeResourceArrayResponse.md +34 -0
  135. package/docs/ProductRangeSiteDetailResource.md +56 -0
  136. package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
  137. package/docs/ProductResource.md +2 -2
  138. package/docs/StoreProductRangeRequest.md +40 -0
  139. package/docs/StoreProductRangeRequestSitesInner.md +54 -0
  140. package/docs/UpdateProductRangeRequest.md +42 -0
  141. package/docs/{UpdateProductTypeRequestPerformanceValuesInner.md → UpdateProductRangeRequestAttributesInner.md} +4 -4
  142. package/docs/UpdateProductTypeRequest.md +4 -4
  143. package/package.json +1 -1
  144. package/src/apis/AttributeApi.ts +42 -0
  145. package/src/apis/ProductRangeApi.ts +760 -0
  146. package/src/apis/index.ts +1 -0
  147. package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
  148. package/src/models/AttachAttributesProductRangeRequest.ts +74 -0
  149. package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +74 -0
  150. package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
  151. package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
  152. package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
  153. package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
  154. package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
  155. package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
  156. package/src/models/ExternalApiLogResource.ts +3 -2
  157. package/src/models/GetAllDocumentRequest.ts +1 -0
  158. package/src/models/GetAllProductChildRequest.ts +1 -0
  159. package/src/models/GetAllProductRangeRequest.ts +151 -0
  160. package/src/models/IndexAttributeRequest.ts +3 -1
  161. package/src/models/IndexDocumentRequest.ts +1 -0
  162. package/src/models/IndexModelAttributeRequest.ts +176 -0
  163. package/src/models/IndexProductChildRequest.ts +1 -0
  164. package/src/models/IndexProductRangeRequest.ts +167 -0
  165. package/src/models/ModelAttributeListResource.ts +108 -0
  166. package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -0
  167. package/src/models/ModelAttributeResource.ts +8 -0
  168. package/src/models/PaginatedModelAttributeListResourceResponse.ts +90 -0
  169. package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
  170. package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
  171. package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
  172. package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
  173. package/src/models/ProductCategoryLiteResource.ts +0 -9
  174. package/src/models/ProductChildListResource.ts +0 -17
  175. package/src/models/ProductRangeFrontendListResource.ts +111 -0
  176. package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
  177. package/src/models/ProductRangeFrontendResource.ts +207 -0
  178. package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
  179. package/src/models/ProductRangeListResource.ts +108 -0
  180. package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
  181. package/src/models/ProductRangeLiteResource.ts +75 -0
  182. package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
  183. package/src/models/ProductRangeResource.ts +167 -0
  184. package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
  185. package/src/models/ProductRangeSiteDetailResource.ts +187 -0
  186. package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
  187. package/src/models/ProductResource.ts +5 -5
  188. package/src/models/StoreProductRangeRequest.ts +105 -0
  189. package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
  190. package/src/models/UpdateProductRangeRequest.ts +120 -0
  191. package/src/models/UpdateProductRangeRequestAttributesInner.ts +73 -0
  192. package/src/models/UpdateProductTypeRequest.ts +22 -22
  193. package/src/models/index.ts +33 -1
  194. package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
  195. package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
  196. package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ModelAttributeListResource } from './ModelAttributeListResource';
17
+ import {
18
+ ModelAttributeListResourceFromJSON,
19
+ ModelAttributeListResourceFromJSONTyped,
20
+ ModelAttributeListResourceToJSON,
21
+ ModelAttributeListResourceToJSONTyped,
22
+ } from './ModelAttributeListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ModelAttributeListResourceArrayResponse
28
+ */
29
+ export interface ModelAttributeListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ModelAttributeListResource>}
33
+ * @memberof ModelAttributeListResourceArrayResponse
34
+ */
35
+ data?: Array<ModelAttributeListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ModelAttributeListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfModelAttributeListResourceArrayResponse(value: object): value is ModelAttributeListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ModelAttributeListResourceArrayResponseFromJSON(json: any): ModelAttributeListResourceArrayResponse {
46
+ return ModelAttributeListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ModelAttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ModelAttributeListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ModelAttributeListResourceArrayResponseToJSON(json: any): ModelAttributeListResourceArrayResponse {
60
+ return ModelAttributeListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ModelAttributeListResourceArrayResponseToJSONTyped(value?: ModelAttributeListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ModelAttributeListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -40,6 +40,12 @@ export interface ModelAttributeResource {
40
40
  * @memberof ModelAttributeResource
41
41
  */
42
42
  id: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ModelAttributeResource
47
+ */
48
+ order?: string | null;
43
49
  /**
44
50
  *
45
51
  * @type {string}
@@ -82,6 +88,7 @@ export function ModelAttributeResourceFromJSONTyped(json: any, ignoreDiscriminat
82
88
  return {
83
89
 
84
90
  'id': json['id'],
91
+ 'order': json['order'] == null ? undefined : json['order'],
85
92
  'value': json['value'],
86
93
  'attribute': AttributeLiteResourceFromJSON(json['attribute']),
87
94
  'attributeValues': (json['attributeValues'] == null ? null : (json['attributeValues'] as Array<any>).map(AttributeValueResourceFromJSON)),
@@ -100,6 +107,7 @@ export function ModelAttributeResourceToJSONTyped(value?: ModelAttributeResource
100
107
  return {
101
108
 
102
109
  'id': value['id'],
110
+ 'order': value['order'],
103
111
  'value': value['value'],
104
112
  'attribute': AttributeLiteResourceToJSON(value['attribute']),
105
113
  'attributeValues': (value['attributeValues'] == null ? null : (value['attributeValues'] as Array<any>).map(AttributeValueResourceToJSON)),
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ModelAttributeListResource } from './ModelAttributeListResource';
24
+ import {
25
+ ModelAttributeListResourceFromJSON,
26
+ ModelAttributeListResourceFromJSONTyped,
27
+ ModelAttributeListResourceToJSON,
28
+ ModelAttributeListResourceToJSONTyped,
29
+ } from './ModelAttributeListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedModelAttributeListResourceResponse
35
+ */
36
+ export interface PaginatedModelAttributeListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ModelAttributeListResource>}
40
+ * @memberof PaginatedModelAttributeListResourceResponse
41
+ */
42
+ data: Array<ModelAttributeListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedModelAttributeListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedModelAttributeListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedModelAttributeListResourceResponse(value: object): value is PaginatedModelAttributeListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedModelAttributeListResourceResponseFromJSON(json: any): PaginatedModelAttributeListResourceResponse {
61
+ return PaginatedModelAttributeListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedModelAttributeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedModelAttributeListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ModelAttributeListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedModelAttributeListResourceResponseToJSON(json: any): PaginatedModelAttributeListResourceResponse {
76
+ return PaginatedModelAttributeListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedModelAttributeListResourceResponseToJSONTyped(value?: PaginatedModelAttributeListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ModelAttributeListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ProductRangeFrontendListResource } from './ProductRangeFrontendListResource';
24
+ import {
25
+ ProductRangeFrontendListResourceFromJSON,
26
+ ProductRangeFrontendListResourceFromJSONTyped,
27
+ ProductRangeFrontendListResourceToJSON,
28
+ ProductRangeFrontendListResourceToJSONTyped,
29
+ } from './ProductRangeFrontendListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductRangeFrontendListResourceResponse
35
+ */
36
+ export interface PaginatedProductRangeFrontendListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductRangeFrontendListResource>}
40
+ * @memberof PaginatedProductRangeFrontendListResourceResponse
41
+ */
42
+ data: Array<ProductRangeFrontendListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductRangeFrontendListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductRangeFrontendListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductRangeFrontendListResourceResponse(value: object): value is PaginatedProductRangeFrontendListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductRangeFrontendListResourceResponseFromJSON(json: any): PaginatedProductRangeFrontendListResourceResponse {
61
+ return PaginatedProductRangeFrontendListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductRangeFrontendListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeFrontendListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductRangeFrontendListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductRangeFrontendListResourceResponseToJSON(json: any): PaginatedProductRangeFrontendListResourceResponse {
76
+ return PaginatedProductRangeFrontendListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductRangeFrontendListResourceResponseToJSONTyped(value?: PaginatedProductRangeFrontendListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductRangeFrontendListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ProductRangeListResource } from './ProductRangeListResource';
24
+ import {
25
+ ProductRangeListResourceFromJSON,
26
+ ProductRangeListResourceFromJSONTyped,
27
+ ProductRangeListResourceToJSON,
28
+ ProductRangeListResourceToJSONTyped,
29
+ } from './ProductRangeListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductRangeListResourceResponse
35
+ */
36
+ export interface PaginatedProductRangeListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductRangeListResource>}
40
+ * @memberof PaginatedProductRangeListResourceResponse
41
+ */
42
+ data: Array<ProductRangeListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductRangeListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductRangeListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductRangeListResourceResponse(value: object): value is PaginatedProductRangeListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductRangeListResourceResponseFromJSON(json: any): PaginatedProductRangeListResourceResponse {
61
+ return PaginatedProductRangeListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductRangeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductRangeListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductRangeListResourceResponseToJSON(json: any): PaginatedProductRangeListResourceResponse {
76
+ return PaginatedProductRangeListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductRangeListResourceResponseToJSONTyped(value?: PaginatedProductRangeListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductRangeListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ProductRangeLiteResource } from './ProductRangeLiteResource';
24
+ import {
25
+ ProductRangeLiteResourceFromJSON,
26
+ ProductRangeLiteResourceFromJSONTyped,
27
+ ProductRangeLiteResourceToJSON,
28
+ ProductRangeLiteResourceToJSONTyped,
29
+ } from './ProductRangeLiteResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductRangeLiteResourceResponse
35
+ */
36
+ export interface PaginatedProductRangeLiteResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductRangeLiteResource>}
40
+ * @memberof PaginatedProductRangeLiteResourceResponse
41
+ */
42
+ data: Array<ProductRangeLiteResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductRangeLiteResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductRangeLiteResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductRangeLiteResourceResponse(value: object): value is PaginatedProductRangeLiteResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductRangeLiteResourceResponseFromJSON(json: any): PaginatedProductRangeLiteResourceResponse {
61
+ return PaginatedProductRangeLiteResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductRangeLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeLiteResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductRangeLiteResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductRangeLiteResourceResponseToJSON(json: any): PaginatedProductRangeLiteResourceResponse {
76
+ return PaginatedProductRangeLiteResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductRangeLiteResourceResponseToJSONTyped(value?: PaginatedProductRangeLiteResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductRangeLiteResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ProductRangeResource } from './ProductRangeResource';
24
+ import {
25
+ ProductRangeResourceFromJSON,
26
+ ProductRangeResourceFromJSONTyped,
27
+ ProductRangeResourceToJSON,
28
+ ProductRangeResourceToJSONTyped,
29
+ } from './ProductRangeResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductRangeResourceResponse
35
+ */
36
+ export interface PaginatedProductRangeResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductRangeResource>}
40
+ * @memberof PaginatedProductRangeResourceResponse
41
+ */
42
+ data: Array<ProductRangeResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductRangeResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductRangeResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductRangeResourceResponse(value: object): value is PaginatedProductRangeResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductRangeResourceResponseFromJSON(json: any): PaginatedProductRangeResourceResponse {
61
+ return PaginatedProductRangeResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductRangeResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductRangeResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductRangeResourceResponseToJSON(json: any): PaginatedProductRangeResourceResponse {
76
+ return PaginatedProductRangeResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductRangeResourceResponseToJSONTyped(value?: PaginatedProductRangeResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductRangeResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -31,12 +31,6 @@ export interface ProductCategoryLiteResource {
31
31
  * @memberof ProductCategoryLiteResource
32
32
  */
33
33
  name: string;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof ProductCategoryLiteResource
38
- */
39
- siteId: number;
40
34
  }
41
35
 
42
36
  /**
@@ -44,7 +38,6 @@ export interface ProductCategoryLiteResource {
44
38
  */
45
39
  export function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource {
46
40
  if (!('name' in value) || value['name'] === undefined) return false;
47
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
48
41
  return true;
49
42
  }
50
43
 
@@ -60,7 +53,6 @@ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscri
60
53
 
61
54
  'id': json['id'] == null ? undefined : json['id'],
62
55
  'name': json['name'],
63
- 'siteId': json['siteId'],
64
56
  };
65
57
  }
66
58
 
@@ -77,7 +69,6 @@ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLi
77
69
 
78
70
  'id': value['id'],
79
71
  'name': value['name'],
80
- 'siteId': value['siteId'],
81
72
  };
82
73
  }
83
74
 
@@ -70,18 +70,6 @@ export interface ProductChildListResource {
70
70
  * @memberof ProductChildListResource
71
71
  */
72
72
  stock: number;
73
- /**
74
- *
75
- * @type {string}
76
- * @memberof ProductChildListResource
77
- */
78
- isDisabled?: string | null;
79
- /**
80
- *
81
- * @type {number}
82
- * @memberof ProductChildListResource
83
- */
84
- netsuiteId: number;
85
73
  /**
86
74
  *
87
75
  * @type {AssetLiteResource}
@@ -105,7 +93,6 @@ export function instanceOfProductChildListResource(value: object): value is Prod
105
93
  if (!('name' in value) || value['name'] === undefined) return false;
106
94
  if (!('model' in value) || value['model'] === undefined) return false;
107
95
  if (!('stock' in value) || value['stock'] === undefined) return false;
108
- if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
109
96
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
110
97
  if (!('siteDetails' in value) || value['siteDetails'] === undefined) return false;
111
98
  return true;
@@ -127,8 +114,6 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
127
114
  'name': json['name'],
128
115
  'model': json['model'],
129
116
  'stock': json['stock'],
130
- 'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
131
- 'netsuiteId': json['netsuiteId'],
132
117
  'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
133
118
  'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
134
119
  };
@@ -151,8 +136,6 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
151
136
  'name': value['name'],
152
137
  'model': value['model'],
153
138
  'stock': value['stock'],
154
- 'isDisabled': value['isDisabled'],
155
- 'netsuiteId': value['netsuiteId'],
156
139
  'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
157
140
  'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceToJSON)),
158
141
  };