@digital8/lighting-illusions-ts-sdk 0.0.1456 → 0.0.1458

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