@digital8/lighting-illusions-ts-sdk 0.0.1417 → 0.0.1419

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 (276) hide show
  1. package/.openapi-generator/FILES +90 -20
  2. package/README.md +64 -18
  3. package/dist/apis/AttributeApi.d.ts +16 -1
  4. package/dist/apis/AttributeApi.js +58 -0
  5. package/dist/apis/ProductApi.js +1 -1
  6. package/dist/apis/ProductRangeApi.d.ts +269 -0
  7. package/dist/apis/ProductRangeApi.js +1043 -0
  8. package/dist/apis/index.d.ts +1 -1
  9. package/dist/apis/index.js +1 -1
  10. package/dist/models/AssetLiteResource.d.ts +12 -0
  11. package/dist/models/AssetLiteResource.js +6 -0
  12. package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
  13. package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
  14. package/dist/models/AttachAttributesProductRangeRequest.d.ts +33 -0
  15. package/dist/models/AttachAttributesProductRangeRequest.js +52 -0
  16. package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +38 -0
  17. package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +53 -0
  18. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +2 -1
  19. package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +2 -1
  20. package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
  21. package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
  22. package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
  23. package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
  24. package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
  25. package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
  26. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +2 -1
  27. package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +2 -1
  28. package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
  29. package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
  30. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  31. package/dist/models/ExternalApiLogResource.js +3 -1
  32. package/dist/models/GetAllDocumentRequest.d.ts +2 -1
  33. package/dist/models/GetAllDocumentRequest.js +2 -1
  34. package/dist/models/GetAllProductChildRequest.d.ts +1 -0
  35. package/dist/models/GetAllProductChildRequest.js +1 -0
  36. package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
  37. package/dist/models/GetAllProductRangeRequest.js +82 -0
  38. package/dist/models/IndexAttributeRequest.d.ts +2 -0
  39. package/dist/models/IndexAttributeRequest.js +3 -1
  40. package/dist/models/IndexDocumentRequest.d.ts +2 -1
  41. package/dist/models/IndexDocumentRequest.js +2 -1
  42. package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
  43. package/dist/models/IndexModelAttributeRequest.js +93 -0
  44. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  45. package/dist/models/IndexProductChildRequest.js +1 -0
  46. package/dist/models/IndexProductRangeRequest.d.ts +110 -0
  47. package/dist/models/{IndexLabelRequest.js → IndexProductRangeRequest.js} +23 -29
  48. package/dist/models/LabelResource.d.ts +4 -23
  49. package/dist/models/LabelResource.js +8 -19
  50. package/dist/models/ModelAttributeListResource.d.ts +64 -0
  51. package/dist/models/ModelAttributeListResource.js +71 -0
  52. package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +33 -0
  53. package/dist/models/ModelAttributeListResourceArrayResponse.js +50 -0
  54. package/dist/models/ModelAttributeResource.d.ts +6 -0
  55. package/dist/models/ModelAttributeResource.js +2 -0
  56. package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +40 -0
  57. package/dist/models/PaginatedModelAttributeListResourceResponse.js +57 -0
  58. package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
  59. package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
  60. package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
  61. package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
  62. package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
  63. package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
  64. package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
  65. package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
  66. package/dist/models/PaginatedProductRangeSearchResultResourceResponse.d.ts +40 -0
  67. package/dist/models/PaginatedProductRangeSearchResultResourceResponse.js +57 -0
  68. package/dist/models/ProductRangeAggregationResource.d.ts +44 -0
  69. package/dist/models/ProductRangeAggregationResource.js +59 -0
  70. package/dist/models/ProductRangeAggregationResourceArrayResponse.d.ts +33 -0
  71. package/dist/models/ProductRangeAggregationResourceArrayResponse.js +50 -0
  72. package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
  73. package/dist/models/ProductRangeFrontendListResource.js +71 -0
  74. package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
  75. package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
  76. package/dist/models/ProductRangeFrontendResource.d.ts +117 -0
  77. package/dist/models/ProductRangeFrontendResource.js +106 -0
  78. package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
  79. package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
  80. package/dist/models/ProductRangeListResource.d.ts +66 -0
  81. package/dist/models/ProductRangeListResource.js +75 -0
  82. package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
  83. package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
  84. package/dist/models/ProductRangeLiteResource.d.ts +38 -0
  85. package/dist/models/ProductRangeLiteResource.js +55 -0
  86. package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
  87. package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
  88. package/dist/models/ProductRangeResource.d.ts +89 -0
  89. package/dist/models/ProductRangeResource.js +86 -0
  90. package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
  91. package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
  92. package/dist/models/ProductRangeSearchResponseResource.d.ts +47 -0
  93. package/dist/models/ProductRangeSearchResponseResource.js +62 -0
  94. package/dist/models/ProductRangeSearchResponseResourceArrayResponse.d.ts +33 -0
  95. package/dist/models/ProductRangeSearchResponseResourceArrayResponse.js +50 -0
  96. package/dist/models/ProductRangeSearchResponseResourceMeta.d.ts +50 -0
  97. package/dist/models/ProductRangeSearchResponseResourceMeta.js +63 -0
  98. package/dist/models/ProductRangeSearchResultResource.d.ts +80 -0
  99. package/dist/models/ProductRangeSearchResultResource.js +83 -0
  100. package/dist/models/ProductRangeSearchResultResourceArrayResponse.d.ts +33 -0
  101. package/dist/models/ProductRangeSearchResultResourceArrayResponse.js +50 -0
  102. package/dist/models/ProductRangeSiteDetailLiteResource.d.ts +44 -0
  103. package/dist/models/ProductRangeSiteDetailLiteResource.js +59 -0
  104. package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.d.ts +33 -0
  105. package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.js +50 -0
  106. package/dist/models/ProductRangeSiteDetailResource.d.ts +101 -0
  107. package/dist/models/ProductRangeSiteDetailResource.js +98 -0
  108. package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
  109. package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
  110. package/dist/models/ProductRangeSortBy.d.ts +27 -0
  111. package/dist/models/ProductRangeSortBy.js +53 -0
  112. package/dist/models/ProductSearchResultResource.d.ts +7 -1
  113. package/dist/models/ProductSearchResultResource.js +7 -3
  114. package/dist/models/StoreAssetForAssetableRequest.d.ts +3 -0
  115. package/dist/models/StoreAssetForAssetableRequest.js +4 -1
  116. package/dist/models/StoreProductRangeRequest.d.ts +52 -0
  117. package/dist/models/StoreProductRangeRequest.js +59 -0
  118. package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
  119. package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
  120. package/dist/models/UpdateProductRangeRequest.d.ts +59 -0
  121. package/dist/models/UpdateProductRangeRequest.js +62 -0
  122. package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +38 -0
  123. package/dist/models/UpdateProductRangeRequestAttributesInner.js +51 -0
  124. package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
  125. package/dist/models/UpdateProductTypeRequest.js +9 -9
  126. package/dist/models/index.d.ts +44 -9
  127. package/dist/models/index.js +44 -9
  128. package/docs/AssetLiteResource.md +4 -0
  129. package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
  130. package/docs/AttachAttributesProductRangeRequest.md +34 -0
  131. package/docs/AttachAttributesProductRangeRequestAttributesInner.md +36 -0
  132. package/docs/AttachDocumentsProductRangeRequest.md +34 -0
  133. package/docs/AttributeApi.md +66 -0
  134. package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
  135. package/docs/{LabelListResourceArrayResponse.md → DetachAttributesProductRangeRequest.md} +6 -6
  136. package/docs/DetachDocumentsProductRangeRequest.md +34 -0
  137. package/docs/GetAllProductRangeRequest.md +50 -0
  138. package/docs/{IndexLabelRequest.md → IndexModelAttributeRequest.md} +10 -6
  139. package/docs/IndexProductRangeRequest.md +54 -0
  140. package/docs/LabelResource.md +6 -12
  141. package/docs/ModelAttributeListResource.md +44 -0
  142. package/docs/ModelAttributeListResourceArrayResponse.md +34 -0
  143. package/docs/ModelAttributeResource.md +2 -0
  144. package/docs/PaginatedModelAttributeListResourceResponse.md +36 -0
  145. package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
  146. package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
  147. package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
  148. package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRangeResourceResponse.md} +5 -5
  149. package/docs/PaginatedProductRangeSearchResultResourceResponse.md +36 -0
  150. package/docs/ProductApi.md +1 -1
  151. package/docs/ProductRangeAggregationResource.md +38 -0
  152. package/docs/ProductRangeAggregationResourceArrayResponse.md +34 -0
  153. package/docs/ProductRangeApi.md +1097 -0
  154. package/docs/ProductRangeFrontendListResource.md +44 -0
  155. package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
  156. package/docs/ProductRangeFrontendResource.md +62 -0
  157. package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
  158. package/docs/ProductRangeListResource.md +44 -0
  159. package/docs/ProductRangeListResourceArrayResponse.md +34 -0
  160. package/docs/{LabelLiteResource.md → ProductRangeLiteResource.md} +6 -12
  161. package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
  162. package/docs/ProductRangeResource.md +52 -0
  163. package/docs/{LabelLiteResourceArrayResponse.md → ProductRangeResourceArrayResponse.md} +5 -5
  164. package/docs/ProductRangeSearchResponseResource.md +38 -0
  165. package/docs/ProductRangeSearchResponseResourceArrayResponse.md +34 -0
  166. package/docs/ProductRangeSearchResponseResourceMeta.md +40 -0
  167. package/docs/ProductRangeSearchResultResource.md +50 -0
  168. package/docs/ProductRangeSearchResultResourceArrayResponse.md +34 -0
  169. package/docs/ProductRangeSiteDetailLiteResource.md +38 -0
  170. package/docs/ProductRangeSiteDetailLiteResourceArrayResponse.md +34 -0
  171. package/docs/ProductRangeSiteDetailResource.md +56 -0
  172. package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
  173. package/docs/ProductRangeSortBy.md +32 -0
  174. package/docs/ProductSearchResultResource.md +4 -2
  175. package/docs/StoreProductRangeRequest.md +40 -0
  176. package/docs/StoreProductRangeRequestSitesInner.md +54 -0
  177. package/docs/UpdateProductRangeRequest.md +42 -0
  178. package/docs/{UpdateProductTypeRequestPerformanceValuesInner.md → UpdateProductRangeRequestAttributesInner.md} +4 -4
  179. package/docs/UpdateProductTypeRequest.md +4 -4
  180. package/package.json +1 -1
  181. package/src/apis/AttributeApi.ts +50 -0
  182. package/src/apis/ProductApi.ts +1 -1
  183. package/src/apis/ProductRangeApi.ts +888 -0
  184. package/src/apis/index.ts +1 -1
  185. package/src/models/AssetLiteResource.ts +17 -0
  186. package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
  187. package/src/models/AttachAttributesProductRangeRequest.ts +74 -0
  188. package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +74 -0
  189. package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +2 -1
  190. package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
  191. package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
  192. package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
  193. package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +2 -1
  194. package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
  195. package/src/models/ExternalApiLogResource.ts +3 -2
  196. package/src/models/GetAllDocumentRequest.ts +2 -1
  197. package/src/models/GetAllProductChildRequest.ts +1 -0
  198. package/src/models/GetAllProductRangeRequest.ts +151 -0
  199. package/src/models/IndexAttributeRequest.ts +3 -1
  200. package/src/models/IndexDocumentRequest.ts +2 -1
  201. package/src/models/IndexModelAttributeRequest.ts +176 -0
  202. package/src/models/IndexProductChildRequest.ts +1 -0
  203. package/src/models/IndexProductRangeRequest.ts +167 -0
  204. package/src/models/LabelResource.ts +12 -46
  205. package/src/models/ModelAttributeListResource.ts +125 -0
  206. package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -0
  207. package/src/models/ModelAttributeResource.ts +8 -0
  208. package/src/models/PaginatedModelAttributeListResourceResponse.ts +90 -0
  209. package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
  210. package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
  211. package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
  212. package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
  213. package/src/models/PaginatedProductRangeSearchResultResourceResponse.ts +90 -0
  214. package/src/models/ProductRangeAggregationResource.ts +84 -0
  215. package/src/models/ProductRangeAggregationResourceArrayResponse.ts +73 -0
  216. package/src/models/ProductRangeFrontendListResource.ts +111 -0
  217. package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
  218. package/src/models/ProductRangeFrontendResource.ts +199 -0
  219. package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
  220. package/src/models/ProductRangeListResource.ts +140 -0
  221. package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
  222. package/src/models/ProductRangeLiteResource.ts +75 -0
  223. package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
  224. package/src/models/ProductRangeResource.ts +167 -0
  225. package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
  226. package/src/models/ProductRangeSearchResponseResource.ts +106 -0
  227. package/src/models/ProductRangeSearchResponseResourceArrayResponse.ts +73 -0
  228. package/src/models/ProductRangeSearchResponseResourceMeta.ts +93 -0
  229. package/src/models/ProductRangeSearchResultResource.ts +138 -0
  230. package/src/models/ProductRangeSearchResultResourceArrayResponse.ts +73 -0
  231. package/src/models/ProductRangeSiteDetailLiteResource.ts +84 -0
  232. package/src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts +73 -0
  233. package/src/models/ProductRangeSiteDetailResource.ts +187 -0
  234. package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
  235. package/src/models/ProductRangeSortBy.ts +55 -0
  236. package/src/models/ProductSearchResultResource.ts +13 -4
  237. package/src/models/StoreAssetForAssetableRequest.ts +4 -1
  238. package/src/models/StoreProductRangeRequest.ts +105 -0
  239. package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
  240. package/src/models/UpdateProductRangeRequest.ts +120 -0
  241. package/src/models/UpdateProductRangeRequestAttributesInner.ts +73 -0
  242. package/src/models/UpdateProductTypeRequest.ts +22 -22
  243. package/src/models/index.ts +44 -9
  244. package/dist/apis/LabelApi.d.ts +0 -109
  245. package/dist/apis/LabelApi.js +0 -433
  246. package/dist/models/IndexLabelRequest.d.ts +0 -109
  247. package/dist/models/LabelListResource.d.ts +0 -75
  248. package/dist/models/LabelListResource.js +0 -74
  249. package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
  250. package/dist/models/LabelListResourceArrayResponse.js +0 -50
  251. package/dist/models/LabelLiteResource.d.ts +0 -56
  252. package/dist/models/LabelLiteResource.js +0 -65
  253. package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
  254. package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
  255. package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
  256. package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
  257. package/dist/models/StoreLabelRequest.d.ts +0 -74
  258. package/dist/models/StoreLabelRequest.js +0 -71
  259. package/dist/models/UpdateLabelRequest.d.ts +0 -74
  260. package/dist/models/UpdateLabelRequest.js +0 -63
  261. package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
  262. package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
  263. package/docs/LabelApi.md +0 -407
  264. package/docs/LabelListResource.md +0 -48
  265. package/docs/StoreLabelRequest.md +0 -48
  266. package/docs/UpdateLabelRequest.md +0 -48
  267. package/src/apis/LabelApi.ts +0 -328
  268. package/src/models/IndexLabelRequest.ts +0 -163
  269. package/src/models/LabelListResource.ts +0 -134
  270. package/src/models/LabelListResourceArrayResponse.ts +0 -73
  271. package/src/models/LabelLiteResource.ts +0 -101
  272. package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
  273. package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
  274. package/src/models/StoreLabelRequest.ts +0 -125
  275. package/src/models/UpdateLabelRequest.ts +0 -121
  276. package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
@@ -0,0 +1,50 @@
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.instanceOfProductRangeSiteDetailLiteResourceArrayResponse = instanceOfProductRangeSiteDetailLiteResourceArrayResponse;
17
+ exports.ProductRangeSiteDetailLiteResourceArrayResponseFromJSON = ProductRangeSiteDetailLiteResourceArrayResponseFromJSON;
18
+ exports.ProductRangeSiteDetailLiteResourceArrayResponseFromJSONTyped = ProductRangeSiteDetailLiteResourceArrayResponseFromJSONTyped;
19
+ exports.ProductRangeSiteDetailLiteResourceArrayResponseToJSON = ProductRangeSiteDetailLiteResourceArrayResponseToJSON;
20
+ exports.ProductRangeSiteDetailLiteResourceArrayResponseToJSONTyped = ProductRangeSiteDetailLiteResourceArrayResponseToJSONTyped;
21
+ var ProductRangeSiteDetailLiteResource_1 = require("./ProductRangeSiteDetailLiteResource");
22
+ /**
23
+ * Check if a given object implements the ProductRangeSiteDetailLiteResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductRangeSiteDetailLiteResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductRangeSiteDetailLiteResourceArrayResponseFromJSON(json) {
29
+ return ProductRangeSiteDetailLiteResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductRangeSiteDetailLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductRangeSiteDetailLiteResource_1.ProductRangeSiteDetailLiteResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductRangeSiteDetailLiteResourceArrayResponseToJSON(json) {
40
+ return ProductRangeSiteDetailLiteResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductRangeSiteDetailLiteResourceArrayResponseToJSONTyped(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(ProductRangeSiteDetailLiteResource_1.ProductRangeSiteDetailLiteResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,101 @@
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 { SiteLiteResource } from './SiteLiteResource';
13
+ import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
14
+ import type { SEOResource } from './SEOResource';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ProductRangeSiteDetailResource
19
+ */
20
+ export interface ProductRangeSiteDetailResource {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof ProductRangeSiteDetailResource
25
+ */
26
+ id: number;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof ProductRangeSiteDetailResource
31
+ */
32
+ siteId: number;
33
+ /**
34
+ *
35
+ * @type {SiteLiteResource}
36
+ * @memberof ProductRangeSiteDetailResource
37
+ */
38
+ site: SiteLiteResource | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof ProductRangeSiteDetailResource
43
+ */
44
+ name: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof ProductRangeSiteDetailResource
49
+ */
50
+ slug: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof ProductRangeSiteDetailResource
55
+ */
56
+ description: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof ProductRangeSiteDetailResource
61
+ */
62
+ content: string;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof ProductRangeSiteDetailResource
67
+ */
68
+ excerpt: string;
69
+ /**
70
+ *
71
+ * @type {number}
72
+ * @memberof ProductRangeSiteDetailResource
73
+ */
74
+ popularityScore: number;
75
+ /**
76
+ *
77
+ * @type {boolean}
78
+ * @memberof ProductRangeSiteDetailResource
79
+ */
80
+ isDisabled: boolean;
81
+ /**
82
+ *
83
+ * @type {SEOResource}
84
+ * @memberof ProductRangeSiteDetailResource
85
+ */
86
+ seo: SEOResource | null;
87
+ /**
88
+ *
89
+ * @type {Array<ProductCategoryLiteResource>}
90
+ * @memberof ProductRangeSiteDetailResource
91
+ */
92
+ categories: Array<ProductCategoryLiteResource> | null;
93
+ }
94
+ /**
95
+ * Check if a given object implements the ProductRangeSiteDetailResource interface.
96
+ */
97
+ export declare function instanceOfProductRangeSiteDetailResource(value: object): value is ProductRangeSiteDetailResource;
98
+ export declare function ProductRangeSiteDetailResourceFromJSON(json: any): ProductRangeSiteDetailResource;
99
+ export declare function ProductRangeSiteDetailResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailResource;
100
+ export declare function ProductRangeSiteDetailResourceToJSON(json: any): ProductRangeSiteDetailResource;
101
+ export declare function ProductRangeSiteDetailResourceToJSONTyped(value?: ProductRangeSiteDetailResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
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.instanceOfProductRangeSiteDetailResource = instanceOfProductRangeSiteDetailResource;
17
+ exports.ProductRangeSiteDetailResourceFromJSON = ProductRangeSiteDetailResourceFromJSON;
18
+ exports.ProductRangeSiteDetailResourceFromJSONTyped = ProductRangeSiteDetailResourceFromJSONTyped;
19
+ exports.ProductRangeSiteDetailResourceToJSON = ProductRangeSiteDetailResourceToJSON;
20
+ exports.ProductRangeSiteDetailResourceToJSONTyped = ProductRangeSiteDetailResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
23
+ var SEOResource_1 = require("./SEOResource");
24
+ /**
25
+ * Check if a given object implements the ProductRangeSiteDetailResource interface.
26
+ */
27
+ function instanceOfProductRangeSiteDetailResource(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('siteId' in value) || value['siteId'] === undefined)
31
+ return false;
32
+ if (!('site' in value) || value['site'] === undefined)
33
+ return false;
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('slug' in value) || value['slug'] === undefined)
37
+ return false;
38
+ if (!('description' in value) || value['description'] === undefined)
39
+ return false;
40
+ if (!('content' in value) || value['content'] === undefined)
41
+ return false;
42
+ if (!('excerpt' in value) || value['excerpt'] === undefined)
43
+ return false;
44
+ if (!('popularityScore' in value) || value['popularityScore'] === undefined)
45
+ return false;
46
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined)
47
+ return false;
48
+ if (!('seo' in value) || value['seo'] === undefined)
49
+ return false;
50
+ if (!('categories' in value) || value['categories'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function ProductRangeSiteDetailResourceFromJSON(json) {
55
+ return ProductRangeSiteDetailResourceFromJSONTyped(json, false);
56
+ }
57
+ function ProductRangeSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'id': json['id'],
63
+ 'siteId': json['siteId'],
64
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
65
+ 'name': json['name'],
66
+ 'slug': json['slug'],
67
+ 'description': json['description'],
68
+ 'content': json['content'],
69
+ 'excerpt': json['excerpt'],
70
+ 'popularityScore': json['popularityScore'],
71
+ 'isDisabled': json['isDisabled'],
72
+ 'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
73
+ 'categories': (json['categories'] == null ? null : json['categories'].map(ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)),
74
+ };
75
+ }
76
+ function ProductRangeSiteDetailResourceToJSON(json) {
77
+ return ProductRangeSiteDetailResourceToJSONTyped(json, false);
78
+ }
79
+ function ProductRangeSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
80
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'siteId': value['siteId'],
87
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
88
+ 'name': value['name'],
89
+ 'slug': value['slug'],
90
+ 'description': value['description'],
91
+ 'content': value['content'],
92
+ 'excerpt': value['excerpt'],
93
+ 'popularityScore': value['popularityScore'],
94
+ 'isDisabled': value['isDisabled'],
95
+ 'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
96
+ 'categories': (value['categories'] == null ? null : value['categories'].map(ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)),
97
+ };
98
+ }
@@ -0,0 +1,33 @@
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 { ProductRangeSiteDetailResource } from './ProductRangeSiteDetailResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductRangeSiteDetailResourceArrayResponse
17
+ */
18
+ export interface ProductRangeSiteDetailResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductRangeSiteDetailResource>}
22
+ * @memberof ProductRangeSiteDetailResourceArrayResponse
23
+ */
24
+ data?: Array<ProductRangeSiteDetailResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductRangeSiteDetailResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductRangeSiteDetailResourceArrayResponse(value: object): value is ProductRangeSiteDetailResourceArrayResponse;
30
+ export declare function ProductRangeSiteDetailResourceArrayResponseFromJSON(json: any): ProductRangeSiteDetailResourceArrayResponse;
31
+ export declare function ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailResourceArrayResponse;
32
+ export declare function ProductRangeSiteDetailResourceArrayResponseToJSON(json: any): ProductRangeSiteDetailResourceArrayResponse;
33
+ export declare function ProductRangeSiteDetailResourceArrayResponseToJSONTyped(value?: ProductRangeSiteDetailResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfProductRangeSiteDetailResourceArrayResponse = instanceOfProductRangeSiteDetailResourceArrayResponse;
17
+ exports.ProductRangeSiteDetailResourceArrayResponseFromJSON = ProductRangeSiteDetailResourceArrayResponseFromJSON;
18
+ exports.ProductRangeSiteDetailResourceArrayResponseFromJSONTyped = ProductRangeSiteDetailResourceArrayResponseFromJSONTyped;
19
+ exports.ProductRangeSiteDetailResourceArrayResponseToJSON = ProductRangeSiteDetailResourceArrayResponseToJSON;
20
+ exports.ProductRangeSiteDetailResourceArrayResponseToJSONTyped = ProductRangeSiteDetailResourceArrayResponseToJSONTyped;
21
+ var ProductRangeSiteDetailResource_1 = require("./ProductRangeSiteDetailResource");
22
+ /**
23
+ * Check if a given object implements the ProductRangeSiteDetailResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductRangeSiteDetailResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductRangeSiteDetailResourceArrayResponseFromJSON(json) {
29
+ return ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductRangeSiteDetailResource_1.ProductRangeSiteDetailResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductRangeSiteDetailResourceArrayResponseToJSON(json) {
40
+ return ProductRangeSiteDetailResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductRangeSiteDetailResourceArrayResponseToJSONTyped(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(ProductRangeSiteDetailResource_1.ProductRangeSiteDetailResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,27 @@
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
+ */
16
+ export declare const ProductRangeSortBy: {
17
+ readonly Relevance: "relevance";
18
+ readonly MostPopular: "mostPopular";
19
+ readonly AscendingName: "ascendingName";
20
+ readonly DescendingName: "descendingName";
21
+ };
22
+ export type ProductRangeSortBy = typeof ProductRangeSortBy[keyof typeof ProductRangeSortBy];
23
+ export declare function instanceOfProductRangeSortBy(value: any): boolean;
24
+ export declare function ProductRangeSortByFromJSON(json: any): ProductRangeSortBy;
25
+ export declare function ProductRangeSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSortBy;
26
+ export declare function ProductRangeSortByToJSON(value?: ProductRangeSortBy | null): any;
27
+ export declare function ProductRangeSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRangeSortBy;
@@ -0,0 +1,53 @@
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.ProductRangeSortBy = void 0;
17
+ exports.instanceOfProductRangeSortBy = instanceOfProductRangeSortBy;
18
+ exports.ProductRangeSortByFromJSON = ProductRangeSortByFromJSON;
19
+ exports.ProductRangeSortByFromJSONTyped = ProductRangeSortByFromJSONTyped;
20
+ exports.ProductRangeSortByToJSON = ProductRangeSortByToJSON;
21
+ exports.ProductRangeSortByToJSONTyped = ProductRangeSortByToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ProductRangeSortBy = {
27
+ Relevance: 'relevance',
28
+ MostPopular: 'mostPopular',
29
+ AscendingName: 'ascendingName',
30
+ DescendingName: 'descendingName'
31
+ };
32
+ function instanceOfProductRangeSortBy(value) {
33
+ for (var key in exports.ProductRangeSortBy) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.ProductRangeSortBy, key)) {
35
+ if (exports.ProductRangeSortBy[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function ProductRangeSortByFromJSON(json) {
43
+ return ProductRangeSortByFromJSONTyped(json, false);
44
+ }
45
+ function ProductRangeSortByFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function ProductRangeSortByToJSON(value) {
49
+ return value;
50
+ }
51
+ function ProductRangeSortByToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -33,6 +33,12 @@ export interface ProductSearchResultResource {
33
33
  * @memberof ProductSearchResultResource
34
34
  */
35
35
  model: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ProductSearchResultResource
40
+ */
41
+ barcode: string;
36
42
  /**
37
43
  *
38
44
  * @type {string}
@@ -74,7 +80,7 @@ export interface ProductSearchResultResource {
74
80
  * @type {Array<number>}
75
81
  * @memberof ProductSearchResultResource
76
82
  */
77
- labelDetails: Array<number>;
83
+ label: Array<number>;
78
84
  /**
79
85
  *
80
86
  * @type {string}
@@ -28,6 +28,8 @@ function instanceOfProductSearchResultResource(value) {
28
28
  return false;
29
29
  if (!('model' in value) || value['model'] === undefined)
30
30
  return false;
31
+ if (!('barcode' in value) || value['barcode'] === undefined)
32
+ return false;
31
33
  if (!('name' in value) || value['name'] === undefined)
32
34
  return false;
33
35
  if (!('slug' in value) || value['slug'] === undefined)
@@ -38,7 +40,7 @@ function instanceOfProductSearchResultResource(value) {
38
40
  return false;
39
41
  if (!('thumbnail' in value) || value['thumbnail'] === undefined)
40
42
  return false;
41
- if (!('labelDetails' in value) || value['labelDetails'] === undefined)
43
+ if (!('label' in value) || value['label'] === undefined)
42
44
  return false;
43
45
  if (!('supplierName' in value) || value['supplierName'] === undefined)
44
46
  return false;
@@ -67,13 +69,14 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
67
69
  'id': json['id'],
68
70
  'sku': json['sku'],
69
71
  'model': json['model'],
72
+ 'barcode': json['barcode'],
70
73
  'name': json['name'],
71
74
  'slug': json['slug'],
72
75
  'price': json['price'],
73
76
  'salePrice': json['salePrice'],
74
77
  'thumbnail': json['thumbnail'],
75
78
  'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
76
- 'labelDetails': json['labelDetails'],
79
+ 'label': json['label'],
77
80
  'supplierName': json['supplierName'],
78
81
  'supplierLogo': json['supplierLogo'],
79
82
  'supplierId': json['supplierId'],
@@ -95,13 +98,14 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
95
98
  'id': value['id'],
96
99
  'sku': value['sku'],
97
100
  'model': value['model'],
101
+ 'barcode': value['barcode'],
98
102
  'name': value['name'],
99
103
  'slug': value['slug'],
100
104
  'price': value['price'],
101
105
  'salePrice': value['salePrice'],
102
106
  'thumbnail': value['thumbnail'],
103
107
  'averageRating': value['averageRating'],
104
- 'labelDetails': value['labelDetails'],
108
+ 'label': value['label'],
105
109
  'supplierName': value['supplierName'],
106
110
  'supplierLogo': value['supplierLogo'],
107
111
  'supplierId': value['supplierId'],
@@ -69,6 +69,9 @@ export interface StoreAssetForAssetableRequest {
69
69
  */
70
70
  export declare const StoreAssetForAssetableRequestAssetableTypeEnum: {
71
71
  readonly AppModelsProductsProductChild: "App\\Models\\Products\\ProductChild";
72
+ readonly AppModelsProductRangesProductRange: "App\\Models\\ProductRanges\\ProductRange";
73
+ readonly ProductChild: "productChild";
74
+ readonly ProductRange: "productRange";
72
75
  };
73
76
  export type StoreAssetForAssetableRequestAssetableTypeEnum = typeof StoreAssetForAssetableRequestAssetableTypeEnum[keyof typeof StoreAssetForAssetableRequestAssetableTypeEnum];
74
77
  /**
@@ -23,7 +23,10 @@ exports.StoreAssetForAssetableRequestToJSONTyped = StoreAssetForAssetableRequest
23
23
  * @export
24
24
  */
25
25
  exports.StoreAssetForAssetableRequestAssetableTypeEnum = {
26
- AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild'
26
+ AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
27
+ AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
28
+ ProductChild: 'productChild',
29
+ ProductRange: 'productRange'
27
30
  };
28
31
  /**
29
32
  * Check if a given object implements the StoreAssetForAssetableRequest interface.
@@ -0,0 +1,52 @@
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 { StoreProductChildRequestAssetsInner } from './StoreProductChildRequestAssetsInner';
13
+ import type { StoreProductRangeRequestSitesInner } from './StoreProductRangeRequestSitesInner';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface StoreProductRangeRequest
18
+ */
19
+ export interface StoreProductRangeRequest {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof StoreProductRangeRequest
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof StoreProductRangeRequest
30
+ */
31
+ supplierId?: number;
32
+ /**
33
+ *
34
+ * @type {Array<StoreProductRangeRequestSitesInner>}
35
+ * @memberof StoreProductRangeRequest
36
+ */
37
+ sites?: Array<StoreProductRangeRequestSitesInner>;
38
+ /**
39
+ *
40
+ * @type {Array<StoreProductChildRequestAssetsInner>}
41
+ * @memberof StoreProductRangeRequest
42
+ */
43
+ assets?: Array<StoreProductChildRequestAssetsInner>;
44
+ }
45
+ /**
46
+ * Check if a given object implements the StoreProductRangeRequest interface.
47
+ */
48
+ export declare function instanceOfStoreProductRangeRequest(value: object): value is StoreProductRangeRequest;
49
+ export declare function StoreProductRangeRequestFromJSON(json: any): StoreProductRangeRequest;
50
+ export declare function StoreProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductRangeRequest;
51
+ export declare function StoreProductRangeRequestToJSON(json: any): StoreProductRangeRequest;
52
+ export declare function StoreProductRangeRequestToJSONTyped(value?: StoreProductRangeRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfStoreProductRangeRequest = instanceOfStoreProductRangeRequest;
17
+ exports.StoreProductRangeRequestFromJSON = StoreProductRangeRequestFromJSON;
18
+ exports.StoreProductRangeRequestFromJSONTyped = StoreProductRangeRequestFromJSONTyped;
19
+ exports.StoreProductRangeRequestToJSON = StoreProductRangeRequestToJSON;
20
+ exports.StoreProductRangeRequestToJSONTyped = StoreProductRangeRequestToJSONTyped;
21
+ var StoreProductChildRequestAssetsInner_1 = require("./StoreProductChildRequestAssetsInner");
22
+ var StoreProductRangeRequestSitesInner_1 = require("./StoreProductRangeRequestSitesInner");
23
+ /**
24
+ * Check if a given object implements the StoreProductRangeRequest interface.
25
+ */
26
+ function instanceOfStoreProductRangeRequest(value) {
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function StoreProductRangeRequestFromJSON(json) {
32
+ return StoreProductRangeRequestFromJSONTyped(json, false);
33
+ }
34
+ function StoreProductRangeRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
41
+ 'sites': json['sites'] == null ? undefined : (json['sites'].map(StoreProductRangeRequestSitesInner_1.StoreProductRangeRequestSitesInnerFromJSON)),
42
+ 'assets': json['assets'] == null ? undefined : (json['assets'].map(StoreProductChildRequestAssetsInner_1.StoreProductChildRequestAssetsInnerFromJSON)),
43
+ };
44
+ }
45
+ function StoreProductRangeRequestToJSON(json) {
46
+ return StoreProductRangeRequestToJSONTyped(json, false);
47
+ }
48
+ function StoreProductRangeRequestToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'name': value['name'],
55
+ 'supplier_id': value['supplierId'],
56
+ 'sites': value['sites'] == null ? undefined : (value['sites'].map(StoreProductRangeRequestSitesInner_1.StoreProductRangeRequestSitesInnerToJSON)),
57
+ 'assets': value['assets'] == null ? undefined : (value['assets'].map(StoreProductChildRequestAssetsInner_1.StoreProductChildRequestAssetsInnerToJSON)),
58
+ };
59
+ }