@digital8/lighting-illusions-ts-sdk 0.0.1616 → 0.0.1618

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 (279) hide show
  1. package/.openapi-generator/FILES +40 -4
  2. package/README.md +26 -4
  3. package/dist/apis/ProductRegistrationApi.d.ts +95 -0
  4. package/dist/apis/ProductRegistrationApi.js +377 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +3 -1
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +1 -3
  11. package/dist/models/DestroyAttributeValueRequest.d.ts +1 -1
  12. package/dist/models/GetAllAttributeRequest.d.ts +1 -1
  13. package/dist/models/GetAllAttributeValueRequest.d.ts +1 -1
  14. package/dist/models/GetAllDefinitionRequest.d.ts +1 -1
  15. package/dist/models/GetAllDocumentRequest.d.ts +1 -1
  16. package/dist/models/GetAllGoogleCategoryRequest.d.ts +1 -1
  17. package/dist/models/GetAllOverlayTemplateRequest.d.ts +1 -1
  18. package/dist/models/GetAllProductCategoryRequest.d.ts +1 -1
  19. package/dist/models/GetAllProductChildRequest.d.ts +1 -1
  20. package/dist/models/GetAllProductRangeRequest.d.ts +1 -1
  21. package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
  22. package/dist/models/GetAllProductRegistrationRequest.js +80 -0
  23. package/dist/models/GetAllProductRequest.d.ts +1 -1
  24. package/dist/models/GetAllProductTypeRequest.d.ts +1 -1
  25. package/dist/models/GetAllStoreRequest.d.ts +1 -1
  26. package/dist/models/GetAllSupplierRequest.d.ts +1 -1
  27. package/dist/models/GlobalSearchProductResource.d.ts +6 -0
  28. package/dist/models/GlobalSearchProductResource.js +4 -0
  29. package/dist/models/IndexAttributeRequest.d.ts +1 -1
  30. package/dist/models/IndexAttributeValueRequest.d.ts +1 -1
  31. package/dist/models/IndexDefinitionRequest.d.ts +1 -1
  32. package/dist/models/IndexDocumentRequest.d.ts +1 -1
  33. package/dist/models/IndexExternalApiLogRequest.d.ts +1 -1
  34. package/dist/models/IndexLabelRequest.d.ts +1 -1
  35. package/dist/models/IndexModelAttributeRequest.d.ts +1 -1
  36. package/dist/models/IndexOverlayTemplateRequest.d.ts +1 -1
  37. package/dist/models/IndexProductCategoryRequest.d.ts +1 -1
  38. package/dist/models/IndexProductChildRequest.d.ts +2 -1
  39. package/dist/models/IndexProductChildRequest.js +1 -0
  40. package/dist/models/IndexProductRangeRequest.d.ts +1 -1
  41. package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
  42. package/dist/models/IndexProductRegistrationRequest.js +98 -0
  43. package/dist/models/IndexProductRequest.d.ts +1 -1
  44. package/dist/models/IndexProductTypeRequest.d.ts +1 -1
  45. package/dist/models/IndexSiteNotificationRequest.d.ts +1 -1
  46. package/dist/models/IndexSiteRequest.d.ts +1 -1
  47. package/dist/models/IndexStoreRequest.d.ts +1 -1
  48. package/dist/models/IndexSupplierRequest.d.ts +1 -1
  49. package/dist/models/IndexTagRequest.d.ts +1 -1
  50. package/dist/models/LabelListResource.d.ts +0 -6
  51. package/dist/models/LabelListResource.js +0 -4
  52. package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
  53. package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
  54. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
  55. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
  56. package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
  57. package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
  58. package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
  59. package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
  60. package/dist/models/ProductChildListResource.d.ts +6 -0
  61. package/dist/models/ProductChildListResource.js +2 -0
  62. package/dist/models/ProductRangeFrontendResource.d.ts +0 -7
  63. package/dist/models/ProductRangeFrontendResource.js +0 -5
  64. package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
  65. package/dist/models/ProductRegistrationAssetResource.js +58 -0
  66. package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
  67. package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
  68. package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
  69. package/dist/models/ProductRegistrationAssetType.js +51 -0
  70. package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
  71. package/dist/models/ProductRegistrationCustomerResource.js +65 -0
  72. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
  73. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
  74. package/dist/models/ProductRegistrationListResource.d.ts +57 -0
  75. package/dist/models/ProductRegistrationListResource.js +64 -0
  76. package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
  77. package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
  78. package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
  79. package/dist/models/ProductRegistrationLiteResource.js +53 -0
  80. package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
  81. package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
  82. package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
  83. package/dist/models/ProductRegistrationProductChildResource.js +63 -0
  84. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
  85. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
  86. package/dist/models/ProductRegistrationResource.d.ts +90 -0
  87. package/dist/models/ProductRegistrationResource.js +81 -0
  88. package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
  89. package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
  90. package/dist/models/ProductSearchResultResource.d.ts +6 -0
  91. package/dist/models/ProductSearchResultResource.js +4 -0
  92. package/dist/models/ShowAssetsProductChildRequest.d.ts +1 -1
  93. package/dist/models/ShowAttributesProductChildRequest.d.ts +1 -1
  94. package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
  95. package/dist/models/StoreFrontendResource.d.ts +0 -6
  96. package/dist/models/StoreFrontendResource.js +0 -4
  97. package/dist/models/StoreLabelRequest.d.ts +4 -4
  98. package/dist/models/StoreListResource.d.ts +1 -7
  99. package/dist/models/StoreListResource.js +3 -5
  100. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
  101. package/dist/models/StoreProductCategoryRequest.d.ts +4 -4
  102. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
  103. package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +2 -2
  104. package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +2 -2
  105. package/dist/models/StoreProductChildRequest.d.ts +4 -4
  106. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +1 -1
  107. package/dist/models/StoreProductChildRequestAttributeValuesInner.d.ts +1 -1
  108. package/dist/models/StoreProductChildRequestSitesInner.d.ts +5 -5
  109. package/dist/models/StoreProductRangeRequest.d.ts +1 -1
  110. package/dist/models/StoreProductRangeRequestSitesInner.d.ts +5 -5
  111. package/dist/models/StoreProductRequest.d.ts +1 -1
  112. package/dist/models/StoreResource.d.ts +1 -7
  113. package/dist/models/StoreResource.js +3 -5
  114. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  115. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  116. package/dist/models/StoreStoreRequest.d.ts +4 -10
  117. package/dist/models/StoreStoreRequest.js +3 -3
  118. package/dist/models/StoreStoreRequestAddress.d.ts +1 -1
  119. package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +5 -5
  120. package/dist/models/StoreStoreSpecialDateRequest.d.ts +5 -5
  121. package/dist/models/StoreSupplierRequest.d.ts +1 -1
  122. package/dist/models/StoreTagRequest.d.ts +4 -4
  123. package/dist/models/UpdateAssetForAssetableRequest.d.ts +3 -3
  124. package/dist/models/UpdateLabelRequest.d.ts +4 -4
  125. package/dist/models/UpdateModelAttributeRequest.d.ts +3 -3
  126. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
  127. package/dist/models/UpdateProductCategoryRequest.d.ts +4 -4
  128. package/dist/models/UpdateProductChildRequest.d.ts +4 -4
  129. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +1 -1
  130. package/dist/models/UpdateProductRangeRequest.d.ts +1 -1
  131. package/dist/models/UpdateProductRequest.d.ts +1 -1
  132. package/dist/models/UpdateSiteRequest.d.ts +5 -5
  133. package/dist/models/UpdateStoreRequest.d.ts +4 -10
  134. package/dist/models/UpdateStoreRequest.js +3 -3
  135. package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +5 -5
  136. package/dist/models/UpdateSupplierRequest.d.ts +1 -1
  137. package/dist/models/UpdateTagRequest.d.ts +4 -4
  138. package/dist/models/index.d.ts +19 -2
  139. package/dist/models/index.js +19 -2
  140. package/docs/GetAllProductRegistrationRequest.md +46 -0
  141. package/docs/GlobalSearchProductResource.md +2 -0
  142. package/docs/IndexProductRegistrationRequest.md +58 -0
  143. package/docs/LabelListResource.md +0 -2
  144. package/docs/ListAssetsProductRegistrationRequest.md +52 -0
  145. package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
  146. package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
  147. package/docs/PaginatedProductRegistrationResourceResponse.md +36 -0
  148. package/docs/ProductChildListResource.md +2 -0
  149. package/docs/ProductRangeFrontendResource.md +0 -2
  150. package/docs/ProductRegistrationApi.md +344 -0
  151. package/docs/ProductRegistrationAssetResource.md +38 -0
  152. package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
  153. package/docs/{ModelAttributeFrontendResource.md → ProductRegistrationAssetType.md} +4 -8
  154. package/docs/ProductRegistrationCustomerResource.md +44 -0
  155. package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
  156. package/docs/ProductRegistrationListResource.md +42 -0
  157. package/docs/ProductRegistrationListResourceArrayResponse.md +34 -0
  158. package/docs/ProductRegistrationLiteResource.md +36 -0
  159. package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
  160. package/docs/ProductRegistrationProductChildResource.md +40 -0
  161. package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
  162. package/docs/ProductRegistrationResource.md +52 -0
  163. package/docs/{ModelAttributeFrontendResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
  164. package/docs/ProductSearchResultResource.md +2 -0
  165. package/docs/StoreFrontendResource.md +0 -2
  166. package/docs/StoreListResource.md +0 -2
  167. package/docs/StoreResource.md +0 -2
  168. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  169. package/docs/StoreStoreRequest.md +1 -3
  170. package/docs/UpdateModelAttributeRequest.md +1 -1
  171. package/docs/UpdateStoreRequest.md +1 -3
  172. package/package.json +1 -1
  173. package/src/apis/ProductRegistrationApi.ts +297 -0
  174. package/src/apis/index.ts +1 -0
  175. package/src/models/AddressFrontendResource.ts +3 -2
  176. package/src/models/AddressResource.ts +2 -3
  177. package/src/models/DestroyAttributeValueRequest.ts +1 -1
  178. package/src/models/GetAllAttributeRequest.ts +1 -1
  179. package/src/models/GetAllAttributeValueRequest.ts +1 -1
  180. package/src/models/GetAllDefinitionRequest.ts +1 -1
  181. package/src/models/GetAllDocumentRequest.ts +1 -1
  182. package/src/models/GetAllGoogleCategoryRequest.ts +1 -1
  183. package/src/models/GetAllOverlayTemplateRequest.ts +1 -1
  184. package/src/models/GetAllProductCategoryRequest.ts +1 -1
  185. package/src/models/GetAllProductChildRequest.ts +1 -1
  186. package/src/models/GetAllProductRangeRequest.ts +1 -1
  187. package/src/models/GetAllProductRegistrationRequest.ts +137 -0
  188. package/src/models/GetAllProductRequest.ts +1 -1
  189. package/src/models/GetAllProductTypeRequest.ts +1 -1
  190. package/src/models/GetAllStoreRequest.ts +1 -1
  191. package/src/models/GetAllSupplierRequest.ts +1 -1
  192. package/src/models/GlobalSearchProductResource.ts +9 -0
  193. package/src/models/IndexAttributeRequest.ts +1 -1
  194. package/src/models/IndexAttributeValueRequest.ts +1 -1
  195. package/src/models/IndexDefinitionRequest.ts +1 -1
  196. package/src/models/IndexDocumentRequest.ts +1 -1
  197. package/src/models/IndexExternalApiLogRequest.ts +1 -1
  198. package/src/models/IndexLabelRequest.ts +1 -1
  199. package/src/models/IndexModelAttributeRequest.ts +1 -1
  200. package/src/models/IndexOverlayTemplateRequest.ts +1 -1
  201. package/src/models/IndexProductCategoryRequest.ts +1 -1
  202. package/src/models/IndexProductChildRequest.ts +2 -1
  203. package/src/models/IndexProductRangeRequest.ts +1 -1
  204. package/src/models/IndexProductRegistrationRequest.ts +193 -0
  205. package/src/models/IndexProductRequest.ts +1 -1
  206. package/src/models/IndexProductTypeRequest.ts +1 -1
  207. package/src/models/IndexSiteNotificationRequest.ts +1 -1
  208. package/src/models/IndexSiteRequest.ts +1 -1
  209. package/src/models/IndexStoreRequest.ts +1 -1
  210. package/src/models/IndexSupplierRequest.ts +1 -1
  211. package/src/models/IndexTagRequest.ts +1 -1
  212. package/src/models/LabelListResource.ts +0 -9
  213. package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
  214. package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
  215. package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
  216. package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
  217. package/src/models/ProductChildListResource.ts +8 -0
  218. package/src/models/ProductRangeFrontendResource.ts +0 -16
  219. package/src/models/ProductRegistrationAssetResource.ts +91 -0
  220. package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
  221. package/src/models/ProductRegistrationAssetType.ts +53 -0
  222. package/src/models/ProductRegistrationCustomerResource.ts +108 -0
  223. package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
  224. package/src/models/ProductRegistrationListResource.ts +108 -0
  225. package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
  226. package/src/models/ProductRegistrationLiteResource.ts +74 -0
  227. package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
  228. package/src/models/ProductRegistrationProductChildResource.ts +93 -0
  229. package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
  230. package/src/models/ProductRegistrationResource.ts +171 -0
  231. package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
  232. package/src/models/ProductSearchResultResource.ts +9 -0
  233. package/src/models/ShowAssetsProductChildRequest.ts +1 -1
  234. package/src/models/ShowAttributesProductChildRequest.ts +1 -1
  235. package/src/models/StoreAssetForAssetableRequest.ts +1 -1
  236. package/src/models/StoreFrontendResource.ts +0 -9
  237. package/src/models/StoreLabelRequest.ts +4 -4
  238. package/src/models/StoreListResource.ts +3 -11
  239. package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
  240. package/src/models/StoreProductCategoryRequest.ts +4 -4
  241. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
  242. package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +2 -2
  243. package/src/models/StoreProductCategoryRequestSeoInner.ts +2 -2
  244. package/src/models/StoreProductChildRequest.ts +4 -4
  245. package/src/models/StoreProductChildRequestAssetsInner.ts +1 -1
  246. package/src/models/StoreProductChildRequestAttributeValuesInner.ts +1 -1
  247. package/src/models/StoreProductChildRequestSitesInner.ts +5 -5
  248. package/src/models/StoreProductRangeRequest.ts +1 -1
  249. package/src/models/StoreProductRangeRequestSitesInner.ts +5 -5
  250. package/src/models/StoreProductRequest.ts +1 -1
  251. package/src/models/StoreResource.ts +3 -11
  252. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  253. package/src/models/StoreStoreRequest.ts +6 -13
  254. package/src/models/StoreStoreRequestAddress.ts +1 -1
  255. package/src/models/StoreStoreRequestSpecialDatesInner.ts +5 -5
  256. package/src/models/StoreStoreSpecialDateRequest.ts +5 -5
  257. package/src/models/StoreSupplierRequest.ts +1 -1
  258. package/src/models/StoreTagRequest.ts +4 -4
  259. package/src/models/UpdateAssetForAssetableRequest.ts +3 -3
  260. package/src/models/UpdateLabelRequest.ts +4 -4
  261. package/src/models/UpdateModelAttributeRequest.ts +3 -3
  262. package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
  263. package/src/models/UpdateProductCategoryRequest.ts +4 -4
  264. package/src/models/UpdateProductChildRequest.ts +4 -4
  265. package/src/models/UpdateProductChildRequestAssetsInner.ts +1 -1
  266. package/src/models/UpdateProductRangeRequest.ts +1 -1
  267. package/src/models/UpdateProductRequest.ts +1 -1
  268. package/src/models/UpdateSiteRequest.ts +5 -5
  269. package/src/models/UpdateStoreRequest.ts +6 -13
  270. package/src/models/UpdateStoreRequestSpecialDatesInner.ts +5 -5
  271. package/src/models/UpdateSupplierRequest.ts +1 -1
  272. package/src/models/UpdateTagRequest.ts +4 -4
  273. package/src/models/index.ts +19 -2
  274. package/dist/models/ModelAttributeFrontendResource.d.ts +0 -38
  275. package/dist/models/ModelAttributeFrontendResource.js +0 -55
  276. package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +0 -33
  277. package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +0 -50
  278. package/src/models/ModelAttributeFrontendResource.ts +0 -75
  279. package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +0 -73
@@ -0,0 +1,80 @@
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.GetAllProductRegistrationRequestSortDirectionEnum = exports.GetAllProductRegistrationRequestSortByEnum = void 0;
17
+ exports.instanceOfGetAllProductRegistrationRequest = instanceOfGetAllProductRegistrationRequest;
18
+ exports.GetAllProductRegistrationRequestFromJSON = GetAllProductRegistrationRequestFromJSON;
19
+ exports.GetAllProductRegistrationRequestFromJSONTyped = GetAllProductRegistrationRequestFromJSONTyped;
20
+ exports.GetAllProductRegistrationRequestToJSON = GetAllProductRegistrationRequestToJSON;
21
+ exports.GetAllProductRegistrationRequestToJSONTyped = GetAllProductRegistrationRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetAllProductRegistrationRequestSortByEnum = {
26
+ Id: 'id',
27
+ CustomerName: 'customer-name',
28
+ CustomerEmail: 'customer-email',
29
+ CustomerPhone: 'customer-phone',
30
+ CreatedAt: 'created_at',
31
+ PurchasedDate: 'purchased_date'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.GetAllProductRegistrationRequestSortDirectionEnum = {
37
+ Asc: 'asc',
38
+ Desc: 'desc'
39
+ };
40
+ /**
41
+ * Check if a given object implements the GetAllProductRegistrationRequest interface.
42
+ */
43
+ function instanceOfGetAllProductRegistrationRequest(value) {
44
+ return true;
45
+ }
46
+ function GetAllProductRegistrationRequestFromJSON(json) {
47
+ return GetAllProductRegistrationRequestFromJSONTyped(json, false);
48
+ }
49
+ function GetAllProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'search': json['search'] == null ? undefined : json['search'],
55
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
56
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
57
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
58
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
59
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
60
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
61
+ };
62
+ }
63
+ function GetAllProductRegistrationRequestToJSON(json) {
64
+ return GetAllProductRegistrationRequestToJSONTyped(json, false);
65
+ }
66
+ function GetAllProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
67
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'search': value['search'],
73
+ 'sortBy': value['sortBy'],
74
+ 'sortDirection': value['sortDirection'],
75
+ 'related_id': value['relatedId'],
76
+ 'related_type': value['relatedType'],
77
+ 'includes_relations': value['includesRelations'],
78
+ 'site_id': value['siteId'],
79
+ };
80
+ }
@@ -20,7 +20,7 @@ export interface GetAllProductRequest {
20
20
  * @type {string}
21
21
  * @memberof GetAllProductRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {GetAllProductRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface GetAllProductTypeRequest {
20
20
  * @type {string}
21
21
  * @memberof GetAllProductTypeRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {GetAllProductTypeRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface GetAllStoreRequest {
20
20
  * @type {string}
21
21
  * @memberof GetAllStoreRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {GetAllStoreRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface GetAllSupplierRequest {
20
20
  * @type {string}
21
21
  * @memberof GetAllSupplierRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {GetAllSupplierRequestSortByEnum}
@@ -33,6 +33,12 @@ export interface GlobalSearchProductResource {
33
33
  * @memberof GlobalSearchProductResource
34
34
  */
35
35
  model: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GlobalSearchProductResource
40
+ */
41
+ modelRaw: string;
36
42
  /**
37
43
  *
38
44
  * @type {string}
@@ -28,6 +28,8 @@ function instanceOfGlobalSearchProductResource(value) {
28
28
  return false;
29
29
  if (!('model' in value) || value['model'] === undefined)
30
30
  return false;
31
+ if (!('modelRaw' in value) || value['modelRaw'] === undefined)
32
+ return false;
31
33
  if (!('slug' in value) || value['slug'] === undefined)
32
34
  return false;
33
35
  if (!('sku' in value) || value['sku'] === undefined)
@@ -57,6 +59,7 @@ function GlobalSearchProductResourceFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'id': json['id'],
58
60
  'name': json['name'],
59
61
  'model': json['model'],
62
+ 'modelRaw': json['modelRaw'],
60
63
  'slug': json['slug'],
61
64
  'sku': json['sku'],
62
65
  'thumbnail': json['thumbnail'],
@@ -79,6 +82,7 @@ function GlobalSearchProductResourceToJSONTyped(value, ignoreDiscriminator) {
79
82
  'id': value['id'],
80
83
  'name': value['name'],
81
84
  'model': value['model'],
85
+ 'modelRaw': value['modelRaw'],
82
86
  'slug': value['slug'],
83
87
  'sku': value['sku'],
84
88
  'thumbnail': value['thumbnail'],
@@ -20,7 +20,7 @@ export interface IndexAttributeRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexAttributeRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexAttributeRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexAttributeValueRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexAttributeValueRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexAttributeValueRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexDefinitionRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexDefinitionRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexDefinitionRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexDocumentRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexDocumentRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexDocumentRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexExternalApiLogRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexExternalApiLogRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexExternalApiLogRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexLabelRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexLabelRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexLabelRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexModelAttributeRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexModelAttributeRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexModelAttributeRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexOverlayTemplateRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexOverlayTemplateRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexOverlayTemplateRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexProductCategoryRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexProductCategoryRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexProductCategoryRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexProductChildRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexProductChildRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexProductChildRequestSortByEnum}
@@ -176,6 +176,7 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
176
176
  readonly OverlayTemplate: "overlayTemplate";
177
177
  readonly ProductType: "productType";
178
178
  readonly ProductRange: "productRange";
179
+ readonly ProductRegistration: "productRegistration";
179
180
  readonly Supplier: "supplier";
180
181
  readonly Tag: "tag";
181
182
  readonly Label: "label";
@@ -57,6 +57,7 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
57
57
  OverlayTemplate: 'overlayTemplate',
58
58
  ProductType: 'productType',
59
59
  ProductRange: 'productRange',
60
+ ProductRegistration: 'productRegistration',
60
61
  Supplier: 'supplier',
61
62
  Tag: 'tag',
62
63
  Label: 'label',
@@ -20,7 +20,7 @@ export interface IndexProductRangeRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexProductRangeRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexProductRangeRequestSortByEnum}
@@ -0,0 +1,131 @@
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 IndexProductRegistrationRequest
16
+ */
17
+ export interface IndexProductRegistrationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IndexProductRegistrationRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {IndexProductRegistrationRequestSortByEnum}
27
+ * @memberof IndexProductRegistrationRequest
28
+ */
29
+ sortBy?: IndexProductRegistrationRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {IndexProductRegistrationRequestSortDirectionEnum}
33
+ * @memberof IndexProductRegistrationRequest
34
+ */
35
+ sortDirection?: IndexProductRegistrationRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IndexProductRegistrationRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IndexProductRegistrationRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof IndexProductRegistrationRequest
52
+ */
53
+ siteId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof IndexProductRegistrationRequest
58
+ */
59
+ beforePurchasedDate?: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof IndexProductRegistrationRequest
64
+ */
65
+ afterPurchasedDate?: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof IndexProductRegistrationRequest
70
+ */
71
+ beforeCreatedAt?: Date;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof IndexProductRegistrationRequest
76
+ */
77
+ afterCreatedAt?: Date;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof IndexProductRegistrationRequest
82
+ */
83
+ relatedId?: number;
84
+ /**
85
+ *
86
+ * @type {IndexProductRegistrationRequestRelatedTypeEnum}
87
+ * @memberof IndexProductRegistrationRequest
88
+ */
89
+ relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof IndexProductRegistrationRequest
94
+ */
95
+ includesRelations?: boolean;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const IndexProductRegistrationRequestSortByEnum: {
101
+ readonly Id: "id";
102
+ readonly CustomerName: "customer-name";
103
+ readonly CustomerEmail: "customer-email";
104
+ readonly CustomerPhone: "customer-phone";
105
+ readonly CreatedAt: "created_at";
106
+ readonly PurchasedDate: "purchased_date";
107
+ };
108
+ export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
109
+ /**
110
+ * @export
111
+ */
112
+ export declare const IndexProductRegistrationRequestSortDirectionEnum: {
113
+ readonly Asc: "asc";
114
+ readonly Desc: "desc";
115
+ };
116
+ export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
117
+ /**
118
+ * @export
119
+ */
120
+ export declare const IndexProductRegistrationRequestRelatedTypeEnum: {
121
+ readonly ProductChild: "productChild";
122
+ };
123
+ export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
124
+ /**
125
+ * Check if a given object implements the IndexProductRegistrationRequest interface.
126
+ */
127
+ export declare function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest;
128
+ export declare function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest;
129
+ export declare function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest;
130
+ export declare function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest;
131
+ export declare function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | 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.IndexProductRegistrationRequestRelatedTypeEnum = exports.IndexProductRegistrationRequestSortDirectionEnum = exports.IndexProductRegistrationRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexProductRegistrationRequest = instanceOfIndexProductRegistrationRequest;
18
+ exports.IndexProductRegistrationRequestFromJSON = IndexProductRegistrationRequestFromJSON;
19
+ exports.IndexProductRegistrationRequestFromJSONTyped = IndexProductRegistrationRequestFromJSONTyped;
20
+ exports.IndexProductRegistrationRequestToJSON = IndexProductRegistrationRequestToJSON;
21
+ exports.IndexProductRegistrationRequestToJSONTyped = IndexProductRegistrationRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexProductRegistrationRequestSortByEnum = {
26
+ Id: 'id',
27
+ CustomerName: 'customer-name',
28
+ CustomerEmail: 'customer-email',
29
+ CustomerPhone: 'customer-phone',
30
+ CreatedAt: 'created_at',
31
+ PurchasedDate: 'purchased_date'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.IndexProductRegistrationRequestSortDirectionEnum = {
37
+ Asc: 'asc',
38
+ Desc: 'desc'
39
+ };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.IndexProductRegistrationRequestRelatedTypeEnum = {
44
+ ProductChild: 'productChild'
45
+ };
46
+ /**
47
+ * Check if a given object implements the IndexProductRegistrationRequest interface.
48
+ */
49
+ function instanceOfIndexProductRegistrationRequest(value) {
50
+ return true;
51
+ }
52
+ function IndexProductRegistrationRequestFromJSON(json) {
53
+ return IndexProductRegistrationRequestFromJSONTyped(json, false);
54
+ }
55
+ function IndexProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'search': json['search'] == null ? undefined : json['search'],
61
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
62
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
63
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
64
+ 'page': json['page'] == null ? undefined : json['page'],
65
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
66
+ 'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
67
+ 'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
68
+ 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
69
+ 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
70
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
71
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
72
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
73
+ };
74
+ }
75
+ function IndexProductRegistrationRequestToJSON(json) {
76
+ return IndexProductRegistrationRequestToJSONTyped(json, false);
77
+ }
78
+ function IndexProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
79
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'search': value['search'],
85
+ 'sortBy': value['sortBy'],
86
+ 'sortDirection': value['sortDirection'],
87
+ 'per_page': value['perPage'],
88
+ 'page': value['page'],
89
+ 'site_id': value['siteId'],
90
+ 'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
91
+ 'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
92
+ 'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
93
+ 'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
94
+ 'related_id': value['relatedId'],
95
+ 'related_type': value['relatedType'],
96
+ 'includes_relations': value['includesRelations'],
97
+ };
98
+ }
@@ -20,7 +20,7 @@ export interface IndexProductRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexProductRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexProductRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexProductTypeRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexProductTypeRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexProductTypeRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexSiteNotificationRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexSiteNotificationRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexSiteNotificationRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexSiteRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexSiteRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexSiteRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexStoreRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexStoreRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexStoreRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexSupplierRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexSupplierRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexSupplierRequestSortByEnum}
@@ -20,7 +20,7 @@ export interface IndexTagRequest {
20
20
  * @type {string}
21
21
  * @memberof IndexTagRequest
22
22
  */
23
- search?: string | null;
23
+ search?: string;
24
24
  /**
25
25
  *
26
26
  * @type {IndexTagRequestSortByEnum}
@@ -34,12 +34,6 @@ export interface LabelListResource {
34
34
  * @memberof LabelListResource
35
35
  */
36
36
  longName: string;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof LabelListResource
41
- */
42
- productCount: number;
43
37
  /**
44
38
  *
45
39
  * @type {string}
@@ -27,8 +27,6 @@ function instanceOfLabelListResource(value) {
27
27
  return false;
28
28
  if (!('longName' in value) || value['longName'] === undefined)
29
29
  return false;
30
- if (!('productCount' in value) || value['productCount'] === undefined)
31
- return false;
32
30
  if (!('colour' in value) || value['colour'] === undefined)
33
31
  return false;
34
32
  if (!('textColour' in value) || value['textColour'] === undefined)
@@ -48,7 +46,6 @@ function LabelListResourceFromJSONTyped(json, ignoreDiscriminator) {
48
46
  'id': json['id'] == null ? undefined : json['id'],
49
47
  'shortName': json['shortName'],
50
48
  'longName': json['longName'],
51
- 'productCount': json['productCount'],
52
49
  'colour': json['colour'],
53
50
  'textColour': json['textColour'],
54
51
  'startDate': json['startDate'] == null ? undefined : json['startDate'],
@@ -68,7 +65,6 @@ function LabelListResourceToJSONTyped(value, ignoreDiscriminator) {
68
65
  'id': value['id'],
69
66
  'shortName': value['shortName'],
70
67
  'longName': value['longName'],
71
- 'productCount': value['productCount'],
72
68
  'colour': value['colour'],
73
69
  'textColour': value['textColour'],
74
70
  'startDate': value['startDate'],