@digital8/lighting-illusions-ts-sdk 0.0.1813 → 0.0.1814

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 (195) hide show
  1. package/.openapi-generator/FILES +6 -66
  2. package/README.md +7 -46
  3. package/dist/apis/StoreApi.d.ts +28 -1
  4. package/dist/apis/StoreApi.js +113 -0
  5. package/dist/apis/index.d.ts +0 -2
  6. package/dist/apis/index.js +0 -2
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +1 -3
  11. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  12. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  13. package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +33 -0
  14. package/dist/models/SaveMapStoreStockMigrationRequest.js +52 -0
  15. package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +52 -0
  16. package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +67 -0
  17. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  18. package/dist/models/SitePaymentConfigResource.js +0 -4
  19. package/dist/models/StoreFrontendResource.d.ts +1 -1
  20. package/dist/models/StoreFrontendResource.js +3 -1
  21. package/dist/models/StoreListResource.d.ts +12 -0
  22. package/dist/models/StoreListResource.js +12 -4
  23. package/dist/models/StoreResource.d.ts +12 -0
  24. package/dist/models/StoreResource.js +14 -6
  25. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  26. package/dist/models/StoreSpecialDateResource.js +7 -5
  27. package/dist/models/StoreStockType.d.ts +25 -0
  28. package/dist/models/StoreStockType.js +51 -0
  29. package/dist/models/StoreStoreRequest.d.ts +12 -0
  30. package/dist/models/StoreStoreRequest.js +4 -0
  31. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  32. package/dist/models/UpdateSiteRequest.js +0 -4
  33. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  34. package/dist/models/UpdateStoreRequest.js +4 -0
  35. package/dist/models/index.d.ts +3 -31
  36. package/dist/models/index.js +3 -31
  37. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  38. package/docs/{CustomerListResourceArrayResponse.md → SaveMapStoreStockMigrationRequest.md} +6 -6
  39. package/docs/{AttachItemCartRequest.md → SaveMapStoreStockMigrationRequestAssociationsInner.md} +10 -10
  40. package/docs/SitePaymentConfigResource.md +0 -2
  41. package/docs/StoreApi.md +124 -0
  42. package/docs/StoreListResource.md +4 -0
  43. package/docs/StoreResource.md +4 -0
  44. package/docs/StoreSpecialDateResource.md +1 -1
  45. package/docs/{AddressType.md → StoreStockType.md} +4 -4
  46. package/docs/StoreStoreRequest.md +4 -0
  47. package/docs/UpdateSiteRequest.md +0 -2
  48. package/docs/UpdateStoreRequest.md +4 -0
  49. package/package.json +1 -1
  50. package/src/apis/StoreApi.ts +84 -0
  51. package/src/apis/index.ts +0 -2
  52. package/src/models/AddressFrontendResource.ts +2 -3
  53. package/src/models/AddressResource.ts +2 -3
  54. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  55. package/src/models/SaveMapStoreStockMigrationRequest.ts +74 -0
  56. package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +95 -0
  57. package/src/models/SitePaymentConfigResource.ts +0 -9
  58. package/src/models/StoreFrontendResource.ts +3 -2
  59. package/src/models/StoreListResource.ts +22 -4
  60. package/src/models/StoreResource.ts +24 -6
  61. package/src/models/StoreSpecialDateResource.ts +8 -7
  62. package/src/models/StoreStockType.ts +53 -0
  63. package/src/models/StoreStoreRequest.ts +16 -0
  64. package/src/models/UpdateSiteRequest.ts +0 -9
  65. package/src/models/UpdateStoreRequest.ts +16 -0
  66. package/src/models/index.ts +3 -31
  67. package/dist/apis/CartsApi.d.ts +0 -190
  68. package/dist/apis/CartsApi.js +0 -747
  69. package/dist/apis/CustomersApi.d.ts +0 -48
  70. package/dist/apis/CustomersApi.js +0 -196
  71. package/dist/models/AddressType.d.ts +0 -25
  72. package/dist/models/AddressType.js +0 -51
  73. package/dist/models/AdminCartResource.d.ts +0 -204
  74. package/dist/models/AdminCartResource.js +0 -147
  75. package/dist/models/AdminCartResourceArrayResponse.d.ts +0 -33
  76. package/dist/models/AdminCartResourceArrayResponse.js +0 -50
  77. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  78. package/dist/models/AttachCouponCartRequest.js +0 -51
  79. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  80. package/dist/models/AttachItemCartRequest.js +0 -57
  81. package/dist/models/CartListResource.d.ts +0 -143
  82. package/dist/models/CartListResource.js +0 -110
  83. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  84. package/dist/models/CartListResourceArrayResponse.js +0 -50
  85. package/dist/models/CartOrderSource.d.ts +0 -29
  86. package/dist/models/CartOrderSource.js +0 -55
  87. package/dist/models/CartStatus.d.ts +0 -26
  88. package/dist/models/CartStatus.js +0 -52
  89. package/dist/models/CustomerListResource.d.ts +0 -76
  90. package/dist/models/CustomerListResource.js +0 -77
  91. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  92. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  93. package/dist/models/CustomerResource.d.ts +0 -76
  94. package/dist/models/CustomerResource.js +0 -77
  95. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  96. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  97. package/dist/models/FrontendCartResource.d.ts +0 -162
  98. package/dist/models/FrontendCartResource.js +0 -125
  99. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  100. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  101. package/dist/models/IndexCartRequest.d.ts +0 -154
  102. package/dist/models/IndexCartRequest.js +0 -105
  103. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  104. package/dist/models/IndexCustomerRequest.js +0 -83
  105. package/dist/models/LiAddressResource.d.ts +0 -86
  106. package/dist/models/LiAddressResource.js +0 -83
  107. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  108. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  109. package/dist/models/LineItemListResource.d.ts +0 -51
  110. package/dist/models/LineItemListResource.js +0 -62
  111. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  112. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  113. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  114. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  115. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  116. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  117. package/dist/models/ShippingType.d.ts +0 -28
  118. package/dist/models/ShippingType.js +0 -54
  119. package/dist/models/StoreCartRequest.d.ts +0 -142
  120. package/dist/models/StoreCartRequest.js +0 -112
  121. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  122. package/dist/models/StoreCartRequestCustomer.js +0 -55
  123. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  124. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  125. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -68
  126. package/dist/models/StoreCartRequestShippingAddress.js +0 -69
  127. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  128. package/dist/models/StoreCustomerRequest.js +0 -65
  129. package/dist/models/UpdateCartRequest.d.ts +0 -117
  130. package/dist/models/UpdateCartRequest.js +0 -97
  131. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  132. package/dist/models/UpdateItemCartRequest.js +0 -53
  133. package/docs/AdminCartResource.md +0 -90
  134. package/docs/AdminCartResourceArrayResponse.md +0 -34
  135. package/docs/AttachCouponCartRequest.md +0 -34
  136. package/docs/CartListResource.md +0 -70
  137. package/docs/CartListResourceArrayResponse.md +0 -34
  138. package/docs/CartOrderSource.md +0 -32
  139. package/docs/CartStatus.md +0 -32
  140. package/docs/CartsApi.md +0 -755
  141. package/docs/CustomerListResource.md +0 -48
  142. package/docs/CustomerResource.md +0 -48
  143. package/docs/CustomerResourceArrayResponse.md +0 -34
  144. package/docs/CustomersApi.md +0 -140
  145. package/docs/FrontendCartResource.md +0 -76
  146. package/docs/FrontendCartResourceArrayResponse.md +0 -34
  147. package/docs/IndexCartRequest.md +0 -66
  148. package/docs/IndexCustomerRequest.md +0 -50
  149. package/docs/LiAddressResource.md +0 -52
  150. package/docs/LiAddressResourceArrayResponse.md +0 -34
  151. package/docs/LineItemListResource.md +0 -40
  152. package/docs/LineItemListResourceArrayResponse.md +0 -34
  153. package/docs/PaginatedCartListResourceResponse.md +0 -36
  154. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  155. package/docs/ShippingType.md +0 -32
  156. package/docs/StoreCartRequest.md +0 -62
  157. package/docs/StoreCartRequestCustomer.md +0 -40
  158. package/docs/StoreCartRequestItemsInner.md +0 -38
  159. package/docs/StoreCartRequestShippingAddress.md +0 -46
  160. package/docs/StoreCustomerRequest.md +0 -42
  161. package/docs/UpdateCartRequest.md +0 -54
  162. package/docs/UpdateItemCartRequest.md +0 -36
  163. package/src/apis/CartsApi.ts +0 -626
  164. package/src/apis/CustomersApi.ts +0 -127
  165. package/src/models/AddressType.ts +0 -53
  166. package/src/models/AdminCartResource.ts +0 -337
  167. package/src/models/AdminCartResourceArrayResponse.ts +0 -73
  168. package/src/models/AttachCouponCartRequest.ts +0 -66
  169. package/src/models/AttachItemCartRequest.ts +0 -83
  170. package/src/models/CartListResource.ts +0 -242
  171. package/src/models/CartListResourceArrayResponse.ts +0 -73
  172. package/src/models/CartOrderSource.ts +0 -57
  173. package/src/models/CartStatus.ts +0 -54
  174. package/src/models/CustomerListResource.ts +0 -142
  175. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  176. package/src/models/CustomerResource.ts +0 -142
  177. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  178. package/src/models/FrontendCartResource.ts +0 -277
  179. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  180. package/src/models/IndexCartRequest.ts +0 -224
  181. package/src/models/IndexCustomerRequest.ts +0 -152
  182. package/src/models/LiAddressResource.ts +0 -145
  183. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  184. package/src/models/LineItemListResource.ts +0 -100
  185. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  186. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  187. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  188. package/src/models/ShippingType.ts +0 -56
  189. package/src/models/StoreCartRequest.ts +0 -231
  190. package/src/models/StoreCartRequestCustomer.ts +0 -89
  191. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  192. package/src/models/StoreCartRequestShippingAddress.ts +0 -117
  193. package/src/models/StoreCustomerRequest.ts +0 -101
  194. package/src/models/UpdateCartRequest.ts +0 -189
  195. package/src/models/UpdateItemCartRequest.ts +0 -74
@@ -27,7 +27,6 @@ Name | Type
27
27
  `acCouponValue` | number
28
28
  `acCouponDiscountType` | string
29
29
  `acCouponExpiryDays` | number
30
- `cartExpiryDays` | number
31
30
  `acCouponEnabled` | boolean
32
31
 
33
32
  ## Example
@@ -58,7 +57,6 @@ const example = {
58
57
  "acCouponValue": null,
59
58
  "acCouponDiscountType": null,
60
59
  "acCouponExpiryDays": null,
61
- "cartExpiryDays": null,
62
60
  "acCouponEnabled": null,
63
61
  } satisfies UpdateSiteRequest
64
62
 
@@ -15,6 +15,8 @@ Name | Type
15
15
  `email` | string
16
16
  `website` | string
17
17
  `openingHours` | Array<string | null>
18
+ `netsuiteId` | number
19
+ `displayNetsuiteId` | number
18
20
  `supplierIds` | Array<number>
19
21
  `specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
20
22
  `address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
@@ -35,6 +37,8 @@ const example = {
35
37
  "email": null,
36
38
  "website": null,
37
39
  "openingHours": null,
40
+ "netsuiteId": null,
41
+ "displayNetsuiteId": null,
38
42
  "supplierIds": null,
39
43
  "specialDates": null,
40
44
  "address": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1813",
3
+ "version": "0.0.1814",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -21,6 +21,7 @@ import type {
21
21
  GetAllStoreRequest,
22
22
  IndexStoreRequest,
23
23
  PaginatedStoreListResourceResponse,
24
+ SaveMapStoreStockMigrationRequest,
24
25
  StoreListResourceArrayResponse,
25
26
  StoreResource,
26
27
  StoreSpecialDateResource,
@@ -41,6 +42,8 @@ import {
41
42
  IndexStoreRequestToJSON,
42
43
  PaginatedStoreListResourceResponseFromJSON,
43
44
  PaginatedStoreListResourceResponseToJSON,
45
+ SaveMapStoreStockMigrationRequestFromJSON,
46
+ SaveMapStoreStockMigrationRequestToJSON,
44
47
  StoreListResourceArrayResponseFromJSON,
45
48
  StoreListResourceArrayResponseToJSON,
46
49
  StoreResourceFromJSON,
@@ -82,6 +85,10 @@ export interface IndexStoreOperationRequest {
82
85
  indexStoreRequest?: IndexStoreRequest;
83
86
  }
84
87
 
88
+ export interface SaveMapStoreStockMigrationOperationRequest {
89
+ saveMapStoreStockMigrationRequest?: SaveMapStoreStockMigrationRequest;
90
+ }
91
+
85
92
  export interface ShowStoreRequest {
86
93
  store: number;
87
94
  }
@@ -385,6 +392,83 @@ export class StoreApi extends runtime.BaseAPI {
385
392
  return await response.value();
386
393
  }
387
394
 
395
+ /**
396
+ * Creates request options for optionsStoreStockMigration without sending the request
397
+ */
398
+ async optionsStoreStockMigrationRequestOpts(): Promise<runtime.RequestOpts> {
399
+ const queryParameters: any = {};
400
+
401
+ const headerParameters: runtime.HTTPHeaders = {};
402
+
403
+
404
+ let urlPath = `/admin-api/store/stock-migration/options`;
405
+
406
+ return {
407
+ path: urlPath,
408
+ method: 'GET',
409
+ headers: headerParameters,
410
+ query: queryParameters,
411
+ };
412
+ }
413
+
414
+ /**
415
+ * Auto-generated: optionsStoreStockMigration
416
+ */
417
+ async optionsStoreStockMigrationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
418
+ const requestOptions = await this.optionsStoreStockMigrationRequestOpts();
419
+ const response = await this.request(requestOptions, initOverrides);
420
+
421
+ return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
422
+ }
423
+
424
+ /**
425
+ * Auto-generated: optionsStoreStockMigration
426
+ */
427
+ async optionsStoreStockMigration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
428
+ const response = await this.optionsStoreStockMigrationRaw(initOverrides);
429
+ return await response.value();
430
+ }
431
+
432
+ /**
433
+ * Creates request options for saveMapStoreStockMigration without sending the request
434
+ */
435
+ async saveMapStoreStockMigrationRequestOpts(requestParameters: SaveMapStoreStockMigrationOperationRequest): Promise<runtime.RequestOpts> {
436
+ const queryParameters: any = {};
437
+
438
+ const headerParameters: runtime.HTTPHeaders = {};
439
+
440
+ headerParameters['Content-Type'] = 'application/json';
441
+
442
+
443
+ let urlPath = `/admin-api/store/stock-migration/save-map`;
444
+
445
+ return {
446
+ path: urlPath,
447
+ method: 'POST',
448
+ headers: headerParameters,
449
+ query: queryParameters,
450
+ body: SaveMapStoreStockMigrationRequestToJSON(requestParameters['saveMapStoreStockMigrationRequest']),
451
+ };
452
+ }
453
+
454
+ /**
455
+ * Auto-generated: saveMapStoreStockMigration
456
+ */
457
+ async saveMapStoreStockMigrationRaw(requestParameters: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
458
+ const requestOptions = await this.saveMapStoreStockMigrationRequestOpts(requestParameters);
459
+ const response = await this.request(requestOptions, initOverrides);
460
+
461
+ return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
462
+ }
463
+
464
+ /**
465
+ * Auto-generated: saveMapStoreStockMigration
466
+ */
467
+ async saveMapStoreStockMigration(requestParameters: SaveMapStoreStockMigrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
468
+ const response = await this.saveMapStoreStockMigrationRaw(requestParameters, initOverrides);
469
+ return await response.value();
470
+ }
471
+
388
472
  /**
389
473
  * Creates request options for showStore without sending the request
390
474
  */
package/src/apis/index.ts CHANGED
@@ -3,8 +3,6 @@
3
3
  export * from './AdminApi';
4
4
  export * from './AssetApi';
5
5
  export * from './AttributeApi';
6
- export * from './CartsApi';
7
- export * from './CustomersApi';
8
6
  export * from './DefinitionApi';
9
7
  export * from './DocumentApi';
10
8
  export * from './ExternalApiLogApi';
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company: string;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,7 +73,6 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
- if (!('company' in value) || value['company'] === undefined) return false;
77
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -93,7 +92,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
93
92
  }
94
93
  return {
95
94
 
96
- 'company': json['company'],
95
+ 'company': json['company'] == null ? undefined : json['company'],
97
96
  'line1': json['line1'],
98
97
  'line2': json['line2'] == null ? undefined : json['line2'],
99
98
  'postcode': json['postcode'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- line2: string;
45
+ line2?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -80,7 +80,6 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('line1' in value) || value['line1'] === undefined) return false;
83
- if (!('line2' in value) || value['line2'] === undefined) return false;
84
83
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
85
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
86
85
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
102
  'company': json['company'] == null ? undefined : json['company'],
104
103
  'line1': json['line_1'],
105
- 'line2': json['line_2'],
104
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
106
105
  'postcode': json['postcode'],
107
106
  'suburb': json['suburb'],
108
107
  'country': json['country'],
@@ -20,13 +20,6 @@ import {
20
20
  SiteLiteResourceToJSON,
21
21
  SiteLiteResourceToJSONTyped,
22
22
  } from './SiteLiteResource';
23
- import type { LabelResource } from './LabelResource';
24
- import {
25
- LabelResourceFromJSON,
26
- LabelResourceFromJSONTyped,
27
- LabelResourceToJSON,
28
- LabelResourceToJSONTyped,
29
- } from './LabelResource';
30
23
 
31
24
  /**
32
25
  *
@@ -76,12 +69,6 @@ export interface ProductChildSiteDetailLiteResource {
76
69
  * @memberof ProductChildSiteDetailLiteResource
77
70
  */
78
71
  isDisabled: boolean;
79
- /**
80
- *
81
- * @type {LabelResource}
82
- * @memberof ProductChildSiteDetailLiteResource
83
- */
84
- label: LabelResource | null;
85
72
  }
86
73
 
87
74
  /**
@@ -95,7 +82,6 @@ export function instanceOfProductChildSiteDetailLiteResource(value: object): val
95
82
  if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
96
83
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
97
84
  if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
98
- if (!('label' in value) || value['label'] === undefined) return false;
99
85
  return true;
100
86
  }
101
87
 
@@ -116,7 +102,6 @@ export function ProductChildSiteDetailLiteResourceFromJSONTyped(json: any, ignor
116
102
  'rrpPrice': json['rrpPrice'],
117
103
  'salePrice': json['salePrice'],
118
104
  'isDisabled': json['isDisabled'],
119
- 'label': LabelResourceFromJSON(json['label']),
120
105
  };
121
106
  }
122
107
 
@@ -138,7 +123,6 @@ export function ProductChildSiteDetailLiteResourceToJSONTyped(value?: ProductChi
138
123
  'rrpPrice': value['rrpPrice'],
139
124
  'salePrice': value['salePrice'],
140
125
  'isDisabled': value['isDisabled'],
141
- 'label': LabelResourceToJSON(value['label']),
142
126
  };
143
127
  }
144
128
 
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SaveMapStoreStockMigrationRequestAssociationsInner } from './SaveMapStoreStockMigrationRequestAssociationsInner';
17
+ import {
18
+ SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON,
19
+ SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped,
20
+ SaveMapStoreStockMigrationRequestAssociationsInnerToJSON,
21
+ SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped,
22
+ } from './SaveMapStoreStockMigrationRequestAssociationsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SaveMapStoreStockMigrationRequest
28
+ */
29
+ export interface SaveMapStoreStockMigrationRequest {
30
+ /**
31
+ *
32
+ * @type {Array<SaveMapStoreStockMigrationRequestAssociationsInner>}
33
+ * @memberof SaveMapStoreStockMigrationRequest
34
+ */
35
+ associations: Array<SaveMapStoreStockMigrationRequestAssociationsInner>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
40
+ */
41
+ export function instanceOfSaveMapStoreStockMigrationRequest(value: object): value is SaveMapStoreStockMigrationRequest {
42
+ if (!('associations' in value) || value['associations'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SaveMapStoreStockMigrationRequestFromJSON(json: any): SaveMapStoreStockMigrationRequest {
47
+ return SaveMapStoreStockMigrationRequestFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SaveMapStoreStockMigrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequest {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'associations': ((json['associations'] as Array<any>).map(SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function SaveMapStoreStockMigrationRequestToJSON(json: any): SaveMapStoreStockMigrationRequest {
61
+ return SaveMapStoreStockMigrationRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SaveMapStoreStockMigrationRequestToJSONTyped(value?: SaveMapStoreStockMigrationRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'associations': ((value['associations'] as Array<any>).map(SaveMapStoreStockMigrationRequestAssociationsInnerToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,95 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SaveMapStoreStockMigrationRequestAssociationsInner
20
+ */
21
+ export interface SaveMapStoreStockMigrationRequestAssociationsInner {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
26
+ */
27
+ locationId: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
32
+ */
33
+ storeId: number;
34
+ /**
35
+ *
36
+ * @type {SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum}
37
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
38
+ */
39
+ type: SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = {
47
+ Available: 'available',
48
+ Display: 'display'
49
+ } as const;
50
+ export type SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum[keyof typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum];
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the SaveMapStoreStockMigrationRequestAssociationsInner interface.
55
+ */
56
+ export function instanceOfSaveMapStoreStockMigrationRequestAssociationsInner(value: object): value is SaveMapStoreStockMigrationRequestAssociationsInner {
57
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
58
+ if (!('storeId' in value) || value['storeId'] === undefined) return false;
59
+ if (!('type' in value) || value['type'] === undefined) return false;
60
+ return true;
61
+ }
62
+
63
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner {
64
+ return SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequestAssociationsInner {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'locationId': json['location_id'],
74
+ 'storeId': json['store_id'],
75
+ 'type': json['type'],
76
+ };
77
+ }
78
+
79
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerToJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner {
80
+ return SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(json, false);
81
+ }
82
+
83
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(value?: SaveMapStoreStockMigrationRequestAssociationsInner | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'location_id': value['locationId'],
91
+ 'store_id': value['storeId'],
92
+ 'type': value['type'],
93
+ };
94
+ }
95
+
@@ -79,12 +79,6 @@ export interface SitePaymentConfigResource {
79
79
  * @memberof SitePaymentConfigResource
80
80
  */
81
81
  acCouponExpiryDays: number;
82
- /**
83
- *
84
- * @type {number}
85
- * @memberof SitePaymentConfigResource
86
- */
87
- cartExpiryDays: number;
88
82
  /**
89
83
  *
90
84
  * @type {boolean}
@@ -107,7 +101,6 @@ export function instanceOfSitePaymentConfigResource(value: object): value is Sit
107
101
  if (!('acCouponValue' in value) || value['acCouponValue'] === undefined) return false;
108
102
  if (!('acCouponDiscountType' in value) || value['acCouponDiscountType'] === undefined) return false;
109
103
  if (!('acCouponExpiryDays' in value) || value['acCouponExpiryDays'] === undefined) return false;
110
- if (!('cartExpiryDays' in value) || value['cartExpiryDays'] === undefined) return false;
111
104
  if (!('acCouponEnabled' in value) || value['acCouponEnabled'] === undefined) return false;
112
105
  return true;
113
106
  }
@@ -132,7 +125,6 @@ export function SitePaymentConfigResourceFromJSONTyped(json: any, ignoreDiscrimi
132
125
  'acCouponValue': json['acCouponValue'],
133
126
  'acCouponDiscountType': json['acCouponDiscountType'],
134
127
  'acCouponExpiryDays': json['acCouponExpiryDays'],
135
- 'cartExpiryDays': json['cartExpiryDays'],
136
128
  'acCouponEnabled': json['acCouponEnabled'],
137
129
  };
138
130
  }
@@ -158,7 +150,6 @@ export function SitePaymentConfigResourceToJSONTyped(value?: SitePaymentConfigRe
158
150
  'acCouponValue': value['acCouponValue'],
159
151
  'acCouponDiscountType': value['acCouponDiscountType'],
160
152
  'acCouponExpiryDays': value['acCouponExpiryDays'],
161
- 'cartExpiryDays': value['cartExpiryDays'],
162
153
  'acCouponEnabled': value['acCouponEnabled'],
163
154
  };
164
155
  }
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -110,6 +110,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
115
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
116
  return true;
@@ -134,7 +135,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
135
  'address': json['address'] == null ? undefined : json['address'],
135
136
  'latitude': json['latitude'],
136
137
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
+ 'tagLine': json['tagLine'],
138
139
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
140
  'specialDates': json['specialDates'],
140
141
  'suppliers': json['suppliers'],
@@ -81,6 +81,18 @@ export interface StoreListResource {
81
81
  * @memberof StoreListResource
82
82
  */
83
83
  website?: string | null;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof StoreListResource
88
+ */
89
+ netsuiteId: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof StoreListResource
94
+ */
95
+ displayNetsuiteId: number;
84
96
  /**
85
97
  *
86
98
  * @type {string}
@@ -100,6 +112,8 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
100
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
113
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
102
114
  if (!('email' in value) || value['email'] === undefined) return false;
115
+ if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
116
+ if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
103
117
  return true;
104
118
  }
105
119
 
@@ -119,10 +133,12 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
119
133
  'phone': json['phone'],
120
134
  'longitude': json['longitude'],
121
135
  'latitude': json['latitude'],
122
- 'tagLine': json['tag_line'],
136
+ 'tagLine': json['tagLine'],
123
137
  'email': json['email'],
124
138
  'website': json['website'] == null ? undefined : json['website'],
125
- 'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
139
+ 'netsuiteId': json['netsuiteId'],
140
+ 'displayNetsuiteId': json['displayNetsuiteId'],
141
+ 'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
126
142
  };
127
143
  }
128
144
 
@@ -143,10 +159,12 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
143
159
  'phone': value['phone'],
144
160
  'longitude': value['longitude'],
145
161
  'latitude': value['latitude'],
146
- 'tag_line': value['tagLine'],
162
+ 'tagLine': value['tagLine'],
147
163
  'email': value['email'],
148
164
  'website': value['website'],
149
- 'opening_hours': value['openingHours'],
165
+ 'netsuiteId': value['netsuiteId'],
166
+ 'displayNetsuiteId': value['displayNetsuiteId'],
167
+ 'openingHours': value['openingHours'],
150
168
  };
151
169
  }
152
170
 
@@ -102,6 +102,18 @@ export interface StoreResource {
102
102
  * @memberof StoreResource
103
103
  */
104
104
  website: string;
105
+ /**
106
+ *
107
+ * @type {number}
108
+ * @memberof StoreResource
109
+ */
110
+ netsuiteId: number;
111
+ /**
112
+ *
113
+ * @type {number}
114
+ * @memberof StoreResource
115
+ */
116
+ displayNetsuiteId: number;
105
117
  /**
106
118
  *
107
119
  * @type {string}
@@ -140,6 +152,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
140
152
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
141
153
  if (!('email' in value) || value['email'] === undefined) return false;
142
154
  if (!('website' in value) || value['website'] === undefined) return false;
155
+ if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
156
+ if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
143
157
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
144
158
  if (!('address' in value) || value['address'] === undefined) return false;
145
159
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -162,13 +176,15 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
162
176
  'phone': json['phone'],
163
177
  'longitude': json['longitude'],
164
178
  'latitude': json['latitude'],
165
- 'tagLine': json['tag_line'],
179
+ 'tagLine': json['tagLine'],
166
180
  'email': json['email'],
167
181
  'website': json['website'],
168
- 'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
182
+ 'netsuiteId': json['netsuiteId'],
183
+ 'displayNetsuiteId': json['displayNetsuiteId'],
184
+ 'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
169
185
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
170
186
  'address': AddressResourceFromJSON(json['address']),
171
- 'specialDates': (json['special_dates'] == null ? null : (json['special_dates'] as Array<any>).map(StoreSpecialDateResourceFromJSON)),
187
+ 'specialDates': (json['specialDates'] == null ? null : (json['specialDates'] as Array<any>).map(StoreSpecialDateResourceFromJSON)),
172
188
  };
173
189
  }
174
190
 
@@ -189,13 +205,15 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
189
205
  'phone': value['phone'],
190
206
  'longitude': value['longitude'],
191
207
  'latitude': value['latitude'],
192
- 'tag_line': value['tagLine'],
208
+ 'tagLine': value['tagLine'],
193
209
  'email': value['email'],
194
210
  'website': value['website'],
195
- 'opening_hours': value['openingHours'],
211
+ 'netsuiteId': value['netsuiteId'],
212
+ 'displayNetsuiteId': value['displayNetsuiteId'],
213
+ 'openingHours': value['openingHours'],
196
214
  'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
197
215
  'address': AddressResourceToJSON(value['address']),
198
- 'special_dates': (value['specialDates'] == null ? null : (value['specialDates'] as Array<any>).map(StoreSpecialDateResourceToJSON)),
216
+ 'specialDates': (value['specialDates'] == null ? null : (value['specialDates'] as Array<any>).map(StoreSpecialDateResourceToJSON)),
199
217
  };
200
218
  }
201
219
 
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,10 +89,10 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
- 'displayStartDate': json['display_start_date'],
94
- 'displayEndDate': json['display_end_date'],
94
+ 'displayStartDate': json['displayStartDate'],
95
+ 'displayEndDate': json['displayEndDate'],
95
96
  };
96
97
  }
97
98
 
@@ -111,8 +112,8 @@ export function StoreSpecialDateResourceToJSONTyped(value?: StoreSpecialDateReso
111
112
  'hours': value['hours'],
112
113
  'date': value['date'],
113
114
  'closed': value['closed'],
114
- 'display_start_date': value['displayStartDate'],
115
- 'display_end_date': value['displayEndDate'],
115
+ 'displayStartDate': value['displayStartDate'],
116
+ 'displayEndDate': value['displayEndDate'],
116
117
  };
117
118
  }
118
119