@digital8/lighting-illusions-ts-sdk 0.0.1455 → 0.0.1457

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 (233) hide show
  1. package/.openapi-generator/FILES +40 -74
  2. package/README.md +25 -56
  3. package/dist/apis/ProductRegistrationApi.d.ts +79 -0
  4. package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
  5. package/dist/apis/SupplierApi.d.ts +1 -33
  6. package/dist/apis/SupplierApi.js +0 -122
  7. package/dist/apis/index.d.ts +1 -2
  8. package/dist/apis/index.js +1 -2
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +7 -9
  11. package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
  12. package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
  13. package/dist/models/IndexProductChildRequest.d.ts +1 -1
  14. package/dist/models/IndexProductChildRequest.js +1 -1
  15. package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
  16. package/dist/models/IndexProductRegistrationRequest.js +95 -0
  17. package/dist/models/LabelResource.d.ts +4 -23
  18. package/dist/models/LabelResource.js +8 -19
  19. package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
  20. package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
  21. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
  23. package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
  27. package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
  28. package/dist/models/ProductRegistrationAssetResource.js +58 -0
  29. package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
  31. package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
  32. package/dist/models/ProductRegistrationAssetType.js +51 -0
  33. package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +44 -0
  34. package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
  35. package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
  37. package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
  38. package/dist/models/ProductRegistrationCustomerResource.js +61 -0
  39. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
  41. package/dist/models/ProductRegistrationListResource.d.ts +51 -0
  42. package/dist/models/ProductRegistrationListResource.js +60 -0
  43. package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
  44. package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
  45. package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
  46. package/dist/models/ProductRegistrationLiteResource.js +53 -0
  47. package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
  48. package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
  49. package/dist/models/ProductRegistrationResource.d.ts +76 -0
  50. package/dist/models/ProductRegistrationResource.js +75 -0
  51. package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
  53. package/dist/models/index.d.ts +19 -35
  54. package/dist/models/index.js +19 -35
  55. package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
  56. package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
  57. package/docs/LabelResource.md +6 -12
  58. package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
  59. package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
  60. package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
  61. package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
  62. package/docs/ProductRegistrationApi.md +275 -0
  63. package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
  64. package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
  65. package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
  66. package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
  67. package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
  68. package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
  69. package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
  70. package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
  71. package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
  72. package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
  73. package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
  74. package/docs/ProductRegistrationResource.md +48 -0
  75. package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
  76. package/docs/SupplierApi.md +0 -138
  77. package/package.json +1 -1
  78. package/src/apis/ProductRegistrationApi.ts +238 -0
  79. package/src/apis/SupplierApi.ts +0 -112
  80. package/src/apis/index.ts +1 -2
  81. package/src/models/AddressResource.ts +8 -9
  82. package/src/models/GetAllProductRegistrationRequest.ts +128 -0
  83. package/src/models/IndexProductChildRequest.ts +1 -1
  84. package/src/models/IndexProductRegistrationRequest.ts +184 -0
  85. package/src/models/LabelResource.ts +12 -46
  86. package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
  87. package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
  88. package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
  89. package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
  90. package/src/models/ProductRegistrationAssetResource.ts +91 -0
  91. package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
  92. package/src/models/ProductRegistrationAssetType.ts +53 -0
  93. package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
  94. package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
  95. package/src/models/ProductRegistrationCustomerResource.ts +92 -0
  96. package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
  97. package/src/models/ProductRegistrationListResource.ts +99 -0
  98. package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
  99. package/src/models/ProductRegistrationLiteResource.ts +74 -0
  100. package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
  101. package/src/models/ProductRegistrationResource.ts +141 -0
  102. package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
  103. package/src/models/index.ts +19 -35
  104. package/dist/apis/LabelApi.d.ts +0 -109
  105. package/dist/apis/StoreApi.d.ts +0 -190
  106. package/dist/apis/StoreApi.js +0 -744
  107. package/dist/models/AddressFrontendResource.d.ts +0 -74
  108. package/dist/models/AddressFrontendResource.js +0 -75
  109. package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
  110. package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
  111. package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
  112. package/dist/models/AttachStoresSupplierRequest.js +0 -51
  113. package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
  114. package/dist/models/AttachSuppliersStoreRequest.js +0 -51
  115. package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
  116. package/dist/models/DetachStoresSupplierRequest.js +0 -51
  117. package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
  118. package/dist/models/DetachSuppliersStoreRequest.js +0 -51
  119. package/dist/models/GetAllStoreRequest.d.ts +0 -93
  120. package/dist/models/IndexLabelRequest.d.ts +0 -109
  121. package/dist/models/IndexStoreRequest.d.ts +0 -105
  122. package/dist/models/IndexStoreRequest.js +0 -85
  123. package/dist/models/LabelListResource.d.ts +0 -75
  124. package/dist/models/LabelListResource.js +0 -74
  125. package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
  126. package/dist/models/LabelListResourceArrayResponse.js +0 -50
  127. package/dist/models/LabelLiteResource.d.ts +0 -56
  128. package/dist/models/LabelLiteResource.js +0 -65
  129. package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
  130. package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
  131. package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
  132. package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
  133. package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
  134. package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
  135. package/dist/models/StoreFrontendResource.d.ts +0 -98
  136. package/dist/models/StoreFrontendResource.js +0 -89
  137. package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
  138. package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
  139. package/dist/models/StoreLabelRequest.d.ts +0 -74
  140. package/dist/models/StoreLabelRequest.js +0 -71
  141. package/dist/models/StoreListResource.d.ts +0 -81
  142. package/dist/models/StoreListResource.js +0 -78
  143. package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
  144. package/dist/models/StoreListResourceArrayResponse.js +0 -50
  145. package/dist/models/StoreLiteResource.d.ts +0 -45
  146. package/dist/models/StoreLiteResource.js +0 -58
  147. package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
  148. package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
  149. package/dist/models/StoreResource.d.ts +0 -102
  150. package/dist/models/StoreResource.js +0 -95
  151. package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
  152. package/dist/models/StoreResourceArrayResponse.js +0 -50
  153. package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
  154. package/dist/models/StoreSpecialDateFrontendResource.js +0 -73
  155. package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
  156. package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
  157. package/dist/models/StoreSpecialDateResource.d.ts +0 -68
  158. package/dist/models/StoreSpecialDateResource.js +0 -73
  159. package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
  160. package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
  161. package/dist/models/StoreStoreRequest.d.ts +0 -94
  162. package/dist/models/StoreStoreRequest.js +0 -85
  163. package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
  164. package/dist/models/StoreStoreRequestAddress.js +0 -73
  165. package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
  166. package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
  167. package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
  168. package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
  169. package/dist/models/UpdateLabelRequest.d.ts +0 -74
  170. package/dist/models/UpdateLabelRequest.js +0 -63
  171. package/dist/models/UpdateStoreRequest.d.ts +0 -94
  172. package/dist/models/UpdateStoreRequest.js +0 -85
  173. package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
  174. package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
  175. package/docs/AddressFrontendResource.md +0 -48
  176. package/docs/AttachStoresSupplierRequest.md +0 -34
  177. package/docs/AttachSuppliersStoreRequest.md +0 -34
  178. package/docs/LabelApi.md +0 -407
  179. package/docs/LabelListResource.md +0 -48
  180. package/docs/StoreApi.md +0 -755
  181. package/docs/StoreFrontendResource.md +0 -56
  182. package/docs/StoreFrontendResourceArrayResponse.md +0 -34
  183. package/docs/StoreLabelRequest.md +0 -48
  184. package/docs/StoreListResource.md +0 -50
  185. package/docs/StoreListResourceArrayResponse.md +0 -34
  186. package/docs/StoreLiteResourceArrayResponse.md +0 -34
  187. package/docs/StoreResource.md +0 -56
  188. package/docs/StoreResourceArrayResponse.md +0 -34
  189. package/docs/StoreSpecialDateFrontendResource.md +0 -46
  190. package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
  191. package/docs/StoreStoreRequest.md +0 -54
  192. package/docs/StoreStoreRequestAddress.md +0 -46
  193. package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
  194. package/docs/StoreStoreSpecialDateRequest.md +0 -44
  195. package/docs/UpdateLabelRequest.md +0 -48
  196. package/docs/UpdateStoreRequest.md +0 -54
  197. package/src/apis/LabelApi.ts +0 -328
  198. package/src/apis/StoreApi.ts +0 -625
  199. package/src/models/AddressFrontendResource.ts +0 -127
  200. package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
  201. package/src/models/AttachStoresSupplierRequest.ts +0 -66
  202. package/src/models/AttachSuppliersStoreRequest.ts +0 -66
  203. package/src/models/DetachStoresSupplierRequest.ts +0 -66
  204. package/src/models/DetachSuppliersStoreRequest.ts +0 -66
  205. package/src/models/GetAllStoreRequest.ts +0 -144
  206. package/src/models/IndexLabelRequest.ts +0 -163
  207. package/src/models/IndexStoreRequest.ts +0 -160
  208. package/src/models/LabelListResource.ts +0 -134
  209. package/src/models/LabelListResourceArrayResponse.ts +0 -73
  210. package/src/models/LabelLiteResource.ts +0 -101
  211. package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
  212. package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
  213. package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
  214. package/src/models/StoreFrontendResource.ts +0 -162
  215. package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
  216. package/src/models/StoreLabelRequest.ts +0 -125
  217. package/src/models/StoreListResource.ts +0 -143
  218. package/src/models/StoreListResourceArrayResponse.ts +0 -73
  219. package/src/models/StoreLiteResource.ts +0 -91
  220. package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
  221. package/src/models/StoreResource.ts +0 -192
  222. package/src/models/StoreResourceArrayResponse.ts +0 -73
  223. package/src/models/StoreSpecialDateFrontendResource.ts +0 -119
  224. package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
  225. package/src/models/StoreSpecialDateResource.ts +0 -119
  226. package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
  227. package/src/models/StoreStoreRequest.ts +0 -167
  228. package/src/models/StoreStoreRequestAddress.ts +0 -119
  229. package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
  230. package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
  231. package/src/models/UpdateLabelRequest.ts +0 -121
  232. package/src/models/UpdateStoreRequest.ts +0 -167
  233. package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -47,14 +45,14 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
47
45
  }
48
46
  return {
49
47
  'id': json['id'] == null ? undefined : json['id'],
50
- 'company': json['company'],
51
- 'line1': json['line_1'],
52
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
48
+ 'company': json['company'] == null ? undefined : json['company'],
49
+ 'line1': json['line1'],
50
+ 'line2': json['line2'] == null ? undefined : json['line2'],
53
51
  'postcode': json['postcode'],
54
52
  'suburb': json['suburb'],
55
53
  'country': json['country'],
56
54
  'state': json['state'],
57
- 'fullAddress': json['full_address'],
55
+ 'fullAddress': json['fullAddress'],
58
56
  };
59
57
  }
60
58
  function AddressResourceToJSON(json) {
@@ -68,12 +66,12 @@ function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
68
66
  return {
69
67
  'id': value['id'],
70
68
  'company': value['company'],
71
- 'line_1': value['line1'],
72
- 'line_2': value['line2'],
69
+ 'line1': value['line1'],
70
+ 'line2': value['line2'],
73
71
  'postcode': value['postcode'],
74
72
  'suburb': value['suburb'],
75
73
  'country': value['country'],
76
74
  'state': value['state'],
77
- 'full_address': value['fullAddress'],
75
+ 'fullAddress': value['fullAddress'],
78
76
  };
79
77
  }
@@ -0,0 +1,81 @@
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 GetAllProductRegistrationRequest
16
+ */
17
+ export interface GetAllProductRegistrationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetAllProductRegistrationRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {GetAllProductRegistrationRequestSortByEnum}
27
+ * @memberof GetAllProductRegistrationRequest
28
+ */
29
+ sortBy?: GetAllProductRegistrationRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {GetAllProductRegistrationRequestSortDirectionEnum}
33
+ * @memberof GetAllProductRegistrationRequest
34
+ */
35
+ sortDirection?: GetAllProductRegistrationRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetAllProductRegistrationRequest
40
+ */
41
+ relatedId?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetAllProductRegistrationRequest
46
+ */
47
+ relatedType?: string;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof GetAllProductRegistrationRequest
52
+ */
53
+ includesRelations?: boolean;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const GetAllProductRegistrationRequestSortByEnum: {
59
+ readonly Id: "id";
60
+ readonly CustomerName: "customer-name";
61
+ readonly CustomerEmail: "customer-email";
62
+ readonly CustomerPhone: "customer-phone";
63
+ readonly CreatedAt: "created_at";
64
+ };
65
+ export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
66
+ /**
67
+ * @export
68
+ */
69
+ export declare const GetAllProductRegistrationRequestSortDirectionEnum: {
70
+ readonly Asc: "asc";
71
+ readonly Desc: "desc";
72
+ };
73
+ export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
74
+ /**
75
+ * Check if a given object implements the GetAllProductRegistrationRequest interface.
76
+ */
77
+ export declare function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest;
78
+ export declare function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest;
79
+ export declare function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest;
80
+ export declare function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest;
81
+ export declare function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,39 +13,39 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllStoreRequestSortDirectionEnum = exports.GetAllStoreRequestSortByEnum = void 0;
17
- exports.instanceOfGetAllStoreRequest = instanceOfGetAllStoreRequest;
18
- exports.GetAllStoreRequestFromJSON = GetAllStoreRequestFromJSON;
19
- exports.GetAllStoreRequestFromJSONTyped = GetAllStoreRequestFromJSONTyped;
20
- exports.GetAllStoreRequestToJSON = GetAllStoreRequestToJSON;
21
- exports.GetAllStoreRequestToJSONTyped = GetAllStoreRequestToJSONTyped;
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
22
  /**
23
23
  * @export
24
24
  */
25
- exports.GetAllStoreRequestSortByEnum = {
25
+ exports.GetAllProductRegistrationRequestSortByEnum = {
26
26
  Id: 'id',
27
- SiteId: 'site_id',
28
- Name: 'name',
29
- CreatedAt: 'created_at',
30
- UpdatedAt: 'updated_at'
27
+ CustomerName: 'customer-name',
28
+ CustomerEmail: 'customer-email',
29
+ CustomerPhone: 'customer-phone',
30
+ CreatedAt: 'created_at'
31
31
  };
32
32
  /**
33
33
  * @export
34
34
  */
35
- exports.GetAllStoreRequestSortDirectionEnum = {
35
+ exports.GetAllProductRegistrationRequestSortDirectionEnum = {
36
36
  Asc: 'asc',
37
37
  Desc: 'desc'
38
38
  };
39
39
  /**
40
- * Check if a given object implements the GetAllStoreRequest interface.
40
+ * Check if a given object implements the GetAllProductRegistrationRequest interface.
41
41
  */
42
- function instanceOfGetAllStoreRequest(value) {
42
+ function instanceOfGetAllProductRegistrationRequest(value) {
43
43
  return true;
44
44
  }
45
- function GetAllStoreRequestFromJSON(json) {
46
- return GetAllStoreRequestFromJSONTyped(json, false);
45
+ function GetAllProductRegistrationRequestFromJSON(json) {
46
+ return GetAllProductRegistrationRequestFromJSONTyped(json, false);
47
47
  }
48
- function GetAllStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
48
+ function GetAllProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
49
49
  if (json == null) {
50
50
  return json;
51
51
  }
@@ -56,14 +56,12 @@ function GetAllStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
57
57
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
58
58
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
59
- 'siteId': json['site_id'] == null ? undefined : json['site_id'],
60
- 'suppliersId': json['suppliers-id'] == null ? undefined : json['suppliers-id'],
61
59
  };
62
60
  }
63
- function GetAllStoreRequestToJSON(json) {
64
- return GetAllStoreRequestToJSONTyped(json, false);
61
+ function GetAllProductRegistrationRequestToJSON(json) {
62
+ return GetAllProductRegistrationRequestToJSONTyped(json, false);
65
63
  }
66
- function GetAllStoreRequestToJSONTyped(value, ignoreDiscriminator) {
64
+ function GetAllProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
67
65
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
66
  if (value == null) {
69
67
  return value;
@@ -75,7 +73,5 @@ function GetAllStoreRequestToJSONTyped(value, ignoreDiscriminator) {
75
73
  'related_id': value['relatedId'],
76
74
  'related_type': value['relatedType'],
77
75
  'includes_relations': value['includesRelations'],
78
- 'site_id': value['siteId'],
79
- 'suppliers-id': value['suppliersId'],
80
76
  };
81
77
  }
@@ -176,9 +176,9 @@ 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
- readonly Label: "label";
182
182
  readonly Site: "site";
183
183
  };
184
184
  export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
@@ -57,9 +57,9 @@ 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
- Label: 'label',
63
63
  Site: 'site'
64
64
  };
65
65
  /**
@@ -0,0 +1,124 @@
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 {Date}
51
+ * @memberof IndexProductRegistrationRequest
52
+ */
53
+ beforePurchasedDate?: Date;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof IndexProductRegistrationRequest
58
+ */
59
+ afterPurchasedDate?: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof IndexProductRegistrationRequest
64
+ */
65
+ beforeCreatedAt?: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof IndexProductRegistrationRequest
70
+ */
71
+ afterCreatedAt?: Date;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof IndexProductRegistrationRequest
76
+ */
77
+ relatedId?: number;
78
+ /**
79
+ *
80
+ * @type {IndexProductRegistrationRequestRelatedTypeEnum}
81
+ * @memberof IndexProductRegistrationRequest
82
+ */
83
+ relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof IndexProductRegistrationRequest
88
+ */
89
+ includesRelations?: boolean;
90
+ }
91
+ /**
92
+ * @export
93
+ */
94
+ export declare const IndexProductRegistrationRequestSortByEnum: {
95
+ readonly Id: "id";
96
+ readonly CustomerName: "customer-name";
97
+ readonly CustomerEmail: "customer-email";
98
+ readonly CustomerPhone: "customer-phone";
99
+ readonly CreatedAt: "created_at";
100
+ };
101
+ export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
102
+ /**
103
+ * @export
104
+ */
105
+ export declare const IndexProductRegistrationRequestSortDirectionEnum: {
106
+ readonly Asc: "asc";
107
+ readonly Desc: "desc";
108
+ };
109
+ export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
110
+ /**
111
+ * @export
112
+ */
113
+ export declare const IndexProductRegistrationRequestRelatedTypeEnum: {
114
+ readonly ProductChild: "productChild";
115
+ };
116
+ export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
117
+ /**
118
+ * Check if a given object implements the IndexProductRegistrationRequest interface.
119
+ */
120
+ export declare function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest;
121
+ export declare function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest;
122
+ export declare function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest;
123
+ export declare function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest;
124
+ export declare function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
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
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.IndexProductRegistrationRequestSortDirectionEnum = {
36
+ Asc: 'asc',
37
+ Desc: 'desc'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.IndexProductRegistrationRequestRelatedTypeEnum = {
43
+ ProductChild: 'productChild'
44
+ };
45
+ /**
46
+ * Check if a given object implements the IndexProductRegistrationRequest interface.
47
+ */
48
+ function instanceOfIndexProductRegistrationRequest(value) {
49
+ return true;
50
+ }
51
+ function IndexProductRegistrationRequestFromJSON(json) {
52
+ return IndexProductRegistrationRequestFromJSONTyped(json, false);
53
+ }
54
+ function IndexProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'search': json['search'] == null ? undefined : json['search'],
60
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
61
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
62
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
63
+ 'page': json['page'] == null ? undefined : json['page'],
64
+ 'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
65
+ 'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
66
+ 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
67
+ 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
68
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
69
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
70
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
71
+ };
72
+ }
73
+ function IndexProductRegistrationRequestToJSON(json) {
74
+ return IndexProductRegistrationRequestToJSONTyped(json, false);
75
+ }
76
+ function IndexProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
77
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'search': value['search'],
83
+ 'sortBy': value['sortBy'],
84
+ 'sortDirection': value['sortDirection'],
85
+ 'per_page': value['perPage'],
86
+ 'page': value['page'],
87
+ 'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
88
+ 'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
89
+ 'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
90
+ 'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
91
+ 'related_id': value['relatedId'],
92
+ 'related_type': value['relatedType'],
93
+ 'includes_relations': value['includesRelations'],
94
+ };
95
+ }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SiteLiteResource } from './SiteLiteResource';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -36,40 +35,22 @@ export interface LabelResource {
36
35
  longName: string;
37
36
  /**
38
37
  *
39
- * @type {SiteLiteResource}
40
- * @memberof LabelResource
41
- */
42
- site: SiteLiteResource | null;
43
- /**
44
- *
45
- * @type {string}
46
- * @memberof LabelResource
47
- */
48
- cartButtonText: string;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof LabelResource
53
- */
54
- colour: string;
55
- /**
56
- *
57
- * @type {string}
38
+ * @type {number}
58
39
  * @memberof LabelResource
59
40
  */
60
- textColour: string;
41
+ siteId: number;
61
42
  /**
62
43
  *
63
44
  * @type {string}
64
45
  * @memberof LabelResource
65
46
  */
66
- startDate?: string | null;
47
+ color: string;
67
48
  /**
68
49
  *
69
50
  * @type {string}
70
51
  * @memberof LabelResource
71
52
  */
72
- endDate?: string | null;
53
+ textColor?: string | null;
73
54
  }
74
55
  /**
75
56
  * Check if a given object implements the LabelResource interface.
@@ -18,7 +18,6 @@ exports.LabelResourceFromJSON = LabelResourceFromJSON;
18
18
  exports.LabelResourceFromJSONTyped = LabelResourceFromJSONTyped;
19
19
  exports.LabelResourceToJSON = LabelResourceToJSON;
20
20
  exports.LabelResourceToJSONTyped = LabelResourceToJSONTyped;
21
- var SiteLiteResource_1 = require("./SiteLiteResource");
22
21
  /**
23
22
  * Check if a given object implements the LabelResource interface.
24
23
  */
@@ -27,13 +26,9 @@ function instanceOfLabelResource(value) {
27
26
  return false;
28
27
  if (!('longName' in value) || value['longName'] === undefined)
29
28
  return false;
30
- if (!('site' in value) || value['site'] === undefined)
29
+ if (!('siteId' in value) || value['siteId'] === undefined)
31
30
  return false;
32
- if (!('cartButtonText' in value) || value['cartButtonText'] === undefined)
33
- return false;
34
- if (!('colour' in value) || value['colour'] === undefined)
35
- return false;
36
- if (!('textColour' in value) || value['textColour'] === undefined)
31
+ if (!('color' in value) || value['color'] === undefined)
37
32
  return false;
38
33
  return true;
39
34
  }
@@ -48,12 +43,9 @@ function LabelResourceFromJSONTyped(json, ignoreDiscriminator) {
48
43
  'id': json['id'] == null ? undefined : json['id'],
49
44
  'shortName': json['shortName'],
50
45
  'longName': json['longName'],
51
- 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
52
- 'cartButtonText': json['cartButtonText'],
53
- 'colour': json['colour'],
54
- 'textColour': json['textColour'],
55
- 'startDate': json['startDate'] == null ? undefined : json['startDate'],
56
- 'endDate': json['endDate'] == null ? undefined : json['endDate'],
46
+ 'siteId': json['siteId'],
47
+ 'color': json['color'],
48
+ 'textColor': json['textColor'] == null ? undefined : json['textColor'],
57
49
  };
58
50
  }
59
51
  function LabelResourceToJSON(json) {
@@ -68,11 +60,8 @@ function LabelResourceToJSONTyped(value, ignoreDiscriminator) {
68
60
  'id': value['id'],
69
61
  'shortName': value['shortName'],
70
62
  'longName': value['longName'],
71
- 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
72
- 'cartButtonText': value['cartButtonText'],
73
- 'colour': value['colour'],
74
- 'textColour': value['textColour'],
75
- 'startDate': value['startDate'],
76
- 'endDate': value['endDate'],
63
+ 'siteId': value['siteId'],
64
+ 'color': value['color'],
65
+ 'textColor': value['textColor'],
77
66
  };
78
67
  }
@@ -0,0 +1,103 @@
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 ListAssetsProductRegistrationRequest
16
+ */
17
+ export interface ListAssetsProductRegistrationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ListAssetsProductRegistrationRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {ListAssetsProductRegistrationRequestSortByEnum}
27
+ * @memberof ListAssetsProductRegistrationRequest
28
+ */
29
+ sortBy?: ListAssetsProductRegistrationRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {ListAssetsProductRegistrationRequestSortDirectionEnum}
33
+ * @memberof ListAssetsProductRegistrationRequest
34
+ */
35
+ sortDirection?: ListAssetsProductRegistrationRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ListAssetsProductRegistrationRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ListAssetsProductRegistrationRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof ListAssetsProductRegistrationRequest
52
+ */
53
+ productRegistrationId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof ListAssetsProductRegistrationRequest
58
+ */
59
+ type?: Array<string>;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ListAssetsProductRegistrationRequest
64
+ */
65
+ relatedId?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ListAssetsProductRegistrationRequest
70
+ */
71
+ relatedType?: string;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof ListAssetsProductRegistrationRequest
76
+ */
77
+ includesRelations?: boolean;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const ListAssetsProductRegistrationRequestSortByEnum: {
83
+ readonly Id: "id";
84
+ readonly Type: "type";
85
+ readonly CreatedAt: "created_at";
86
+ };
87
+ export type ListAssetsProductRegistrationRequestSortByEnum = typeof ListAssetsProductRegistrationRequestSortByEnum[keyof typeof ListAssetsProductRegistrationRequestSortByEnum];
88
+ /**
89
+ * @export
90
+ */
91
+ export declare const ListAssetsProductRegistrationRequestSortDirectionEnum: {
92
+ readonly Asc: "asc";
93
+ readonly Desc: "desc";
94
+ };
95
+ export type ListAssetsProductRegistrationRequestSortDirectionEnum = typeof ListAssetsProductRegistrationRequestSortDirectionEnum[keyof typeof ListAssetsProductRegistrationRequestSortDirectionEnum];
96
+ /**
97
+ * Check if a given object implements the ListAssetsProductRegistrationRequest interface.
98
+ */
99
+ export declare function instanceOfListAssetsProductRegistrationRequest(value: object): value is ListAssetsProductRegistrationRequest;
100
+ export declare function ListAssetsProductRegistrationRequestFromJSON(json: any): ListAssetsProductRegistrationRequest;
101
+ export declare function ListAssetsProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssetsProductRegistrationRequest;
102
+ export declare function ListAssetsProductRegistrationRequestToJSON(json: any): ListAssetsProductRegistrationRequest;
103
+ export declare function ListAssetsProductRegistrationRequestToJSONTyped(value?: ListAssetsProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;