@digital8/lighting-illusions-ts-sdk 0.0.1706 → 0.0.1708

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 (159) hide show
  1. package/.openapi-generator/FILES +6 -56
  2. package/README.md +7 -41
  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/SaveMapStoreStockMigrationRequest.d.ts +33 -0
  8. package/dist/models/SaveMapStoreStockMigrationRequest.js +52 -0
  9. package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +52 -0
  10. package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +67 -0
  11. package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -2
  12. package/dist/models/StoreAssetForAssetableRequest.js +1 -3
  13. package/dist/models/StoreFrontendResource.d.ts +1 -1
  14. package/dist/models/StoreFrontendResource.js +1 -3
  15. package/dist/models/StoreListResource.d.ts +1 -1
  16. package/dist/models/StoreListResource.js +3 -1
  17. package/dist/models/StoreResource.d.ts +13 -1
  18. package/dist/models/StoreResource.js +7 -1
  19. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  20. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  21. package/dist/models/StoreStockType.d.ts +25 -0
  22. package/dist/models/StoreStockType.js +51 -0
  23. package/dist/models/StoreStoreRequest.d.ts +12 -0
  24. package/dist/models/StoreStoreRequest.js +4 -0
  25. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  26. package/dist/models/UpdateStoreRequest.js +4 -0
  27. package/dist/models/index.d.ts +3 -26
  28. package/dist/models/index.js +3 -26
  29. package/docs/{MenuItemLiteResourceArrayResponse.md → SaveMapStoreStockMigrationRequest.md} +6 -6
  30. package/docs/{MenuItemLiteResource.md → SaveMapStoreStockMigrationRequestAssociationsInner.md} +8 -14
  31. package/docs/StoreApi.md +124 -0
  32. package/docs/StoreResource.md +4 -0
  33. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  34. package/docs/{MenuItemType.md → StoreStockType.md} +4 -4
  35. package/docs/StoreStoreRequest.md +4 -0
  36. package/docs/UpdateStoreRequest.md +4 -0
  37. package/package.json +1 -1
  38. package/src/apis/StoreApi.ts +84 -0
  39. package/src/apis/index.ts +0 -2
  40. package/src/models/SaveMapStoreStockMigrationRequest.ts +74 -0
  41. package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +95 -0
  42. package/src/models/StoreAssetForAssetableRequest.ts +1 -3
  43. package/src/models/StoreFrontendResource.ts +2 -3
  44. package/src/models/StoreListResource.ts +3 -2
  45. package/src/models/StoreResource.ts +19 -2
  46. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  47. package/src/models/StoreStockType.ts +53 -0
  48. package/src/models/StoreStoreRequest.ts +16 -0
  49. package/src/models/UpdateStoreRequest.ts +16 -0
  50. package/src/models/index.ts +3 -26
  51. package/dist/apis/MenuApi.d.ts +0 -109
  52. package/dist/apis/MenuApi.js +0 -433
  53. package/dist/apis/MenuItemsApi.d.ts +0 -124
  54. package/dist/apis/MenuItemsApi.js +0 -491
  55. package/dist/models/GetAllMenuItemRequest.d.ts +0 -93
  56. package/dist/models/GetAllMenuItemRequest.js +0 -81
  57. package/dist/models/GetAllMenuRequest.d.ts +0 -93
  58. package/dist/models/GetAllMenuRequest.js +0 -81
  59. package/dist/models/GetHierarchyMenuItemRequest.d.ts +0 -32
  60. package/dist/models/GetHierarchyMenuItemRequest.js +0 -51
  61. package/dist/models/IndexMenuRequest.d.ts +0 -105
  62. package/dist/models/IndexMenuRequest.js +0 -85
  63. package/dist/models/MenuItemHierarchyResource.d.ts +0 -81
  64. package/dist/models/MenuItemHierarchyResource.js +0 -80
  65. package/dist/models/MenuItemHierarchyResourceArrayResponse.d.ts +0 -33
  66. package/dist/models/MenuItemHierarchyResourceArrayResponse.js +0 -50
  67. package/dist/models/MenuItemLinkResource.d.ts +0 -68
  68. package/dist/models/MenuItemLinkResource.js +0 -67
  69. package/dist/models/MenuItemLinkResourceArrayResponse.d.ts +0 -33
  70. package/dist/models/MenuItemLinkResourceArrayResponse.js +0 -50
  71. package/dist/models/MenuItemLiteResource.d.ts +0 -62
  72. package/dist/models/MenuItemLiteResource.js +0 -67
  73. package/dist/models/MenuItemLiteResourceArrayResponse.d.ts +0 -33
  74. package/dist/models/MenuItemLiteResourceArrayResponse.js +0 -50
  75. package/dist/models/MenuItemResource.d.ts +0 -106
  76. package/dist/models/MenuItemResource.js +0 -91
  77. package/dist/models/MenuItemResourceArrayResponse.d.ts +0 -33
  78. package/dist/models/MenuItemResourceArrayResponse.js +0 -50
  79. package/dist/models/MenuItemType.d.ts +0 -27
  80. package/dist/models/MenuItemType.js +0 -53
  81. package/dist/models/MenuListResource.d.ts +0 -64
  82. package/dist/models/MenuListResource.js +0 -73
  83. package/dist/models/MenuListResourceArrayResponse.d.ts +0 -33
  84. package/dist/models/MenuListResourceArrayResponse.js +0 -50
  85. package/dist/models/MenuPosition.d.ts +0 -27
  86. package/dist/models/MenuPosition.js +0 -53
  87. package/dist/models/MenuResource.d.ts +0 -63
  88. package/dist/models/MenuResource.js +0 -70
  89. package/dist/models/MenuResourceArrayResponse.d.ts +0 -33
  90. package/dist/models/MenuResourceArrayResponse.js +0 -50
  91. package/dist/models/PaginatedMenuListResourceResponse.d.ts +0 -40
  92. package/dist/models/PaginatedMenuListResourceResponse.js +0 -57
  93. package/dist/models/SearchLinkablesMenuItemRequest.d.ts +0 -54
  94. package/dist/models/SearchLinkablesMenuItemRequest.js +0 -65
  95. package/dist/models/StoreMenuItemRequest.d.ts +0 -97
  96. package/dist/models/StoreMenuItemRequest.js +0 -84
  97. package/dist/models/StoreMenuItemRequestMenuItemLink.d.ts +0 -60
  98. package/dist/models/StoreMenuItemRequestMenuItemLink.js +0 -65
  99. package/dist/models/StoreMenuRequest.d.ts +0 -54
  100. package/dist/models/StoreMenuRequest.js +0 -69
  101. package/dist/models/UpdateMenuItemRequest.d.ts +0 -97
  102. package/dist/models/UpdateMenuItemRequest.js +0 -78
  103. package/dist/models/UpdateMenuRequest.d.ts +0 -61
  104. package/dist/models/UpdateMenuRequest.js +0 -66
  105. package/dist/models/UpdateMenuRequestMenuItemOrderInner.d.ts +0 -44
  106. package/dist/models/UpdateMenuRequestMenuItemOrderInner.js +0 -53
  107. package/docs/GetAllMenuItemRequest.md +0 -48
  108. package/docs/GetAllMenuRequest.md +0 -48
  109. package/docs/GetHierarchyMenuItemRequest.md +0 -34
  110. package/docs/IndexMenuRequest.md +0 -52
  111. package/docs/MenuApi.md +0 -407
  112. package/docs/MenuItemHierarchyResource.md +0 -50
  113. package/docs/MenuItemHierarchyResourceArrayResponse.md +0 -34
  114. package/docs/MenuItemLinkResource.md +0 -46
  115. package/docs/MenuItemLinkResourceArrayResponse.md +0 -34
  116. package/docs/MenuItemResource.md +0 -58
  117. package/docs/MenuItemResourceArrayResponse.md +0 -34
  118. package/docs/MenuItemsApi.md +0 -473
  119. package/docs/MenuListResource.md +0 -44
  120. package/docs/MenuListResourceArrayResponse.md +0 -34
  121. package/docs/MenuPosition.md +0 -32
  122. package/docs/MenuResource.md +0 -44
  123. package/docs/MenuResourceArrayResponse.md +0 -34
  124. package/docs/PaginatedMenuListResourceResponse.md +0 -36
  125. package/docs/SearchLinkablesMenuItemRequest.md +0 -38
  126. package/docs/StoreMenuItemRequest.md +0 -52
  127. package/docs/StoreMenuItemRequestMenuItemLink.md +0 -40
  128. package/docs/StoreMenuRequest.md +0 -38
  129. package/docs/UpdateMenuItemRequest.md +0 -52
  130. package/docs/UpdateMenuRequest.md +0 -40
  131. package/docs/UpdateMenuRequestMenuItemOrderInner.md +0 -38
  132. package/src/apis/MenuApi.ts +0 -334
  133. package/src/apis/MenuItemsApi.ts +0 -381
  134. package/src/models/GetAllMenuItemRequest.ts +0 -144
  135. package/src/models/GetAllMenuRequest.ts +0 -144
  136. package/src/models/GetHierarchyMenuItemRequest.ts +0 -66
  137. package/src/models/IndexMenuRequest.ts +0 -160
  138. package/src/models/MenuItemHierarchyResource.ts +0 -144
  139. package/src/models/MenuItemHierarchyResourceArrayResponse.ts +0 -73
  140. package/src/models/MenuItemLinkResource.ts +0 -116
  141. package/src/models/MenuItemLinkResourceArrayResponse.ts +0 -73
  142. package/src/models/MenuItemLiteResource.ts +0 -109
  143. package/src/models/MenuItemLiteResourceArrayResponse.ts +0 -73
  144. package/src/models/MenuItemResource.ts +0 -184
  145. package/src/models/MenuItemResourceArrayResponse.ts +0 -73
  146. package/src/models/MenuItemType.ts +0 -55
  147. package/src/models/MenuListResource.ts +0 -126
  148. package/src/models/MenuListResourceArrayResponse.ts +0 -73
  149. package/src/models/MenuPosition.ts +0 -55
  150. package/src/models/MenuResource.ts +0 -118
  151. package/src/models/MenuResourceArrayResponse.ts +0 -73
  152. package/src/models/PaginatedMenuListResourceResponse.ts +0 -90
  153. package/src/models/SearchLinkablesMenuItemRequest.ts +0 -95
  154. package/src/models/StoreMenuItemRequest.ts +0 -161
  155. package/src/models/StoreMenuItemRequestMenuItemLink.ts +0 -102
  156. package/src/models/StoreMenuRequest.ts +0 -97
  157. package/src/models/UpdateMenuItemRequest.ts +0 -158
  158. package/src/models/UpdateMenuRequest.ts +0 -110
  159. package/src/models/UpdateMenuRequestMenuItemOrderInner.ts +0 -81
@@ -1,32 +1,26 @@
1
1
 
2
- # MenuItemLiteResource
2
+ # SaveMapStoreStockMigrationRequestAssociationsInner
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `id` | number
10
- `menuId` | number
11
- `parentId` | number
9
+ `locationId` | number
10
+ `storeId` | number
12
11
  `type` | string
13
- `heading` | string
14
- `index` | number
15
12
 
16
13
  ## Example
17
14
 
18
15
  ```typescript
19
- import type { MenuItemLiteResource } from '@digital8/lighting-illusions-ts-sdk'
16
+ import type { SaveMapStoreStockMigrationRequestAssociationsInner } from '@digital8/lighting-illusions-ts-sdk'
20
17
 
21
18
  // TODO: Update the object below with actual values
22
19
  const example = {
23
- "id": null,
24
- "menuId": null,
25
- "parentId": null,
20
+ "locationId": null,
21
+ "storeId": null,
26
22
  "type": null,
27
- "heading": null,
28
- "index": null,
29
- } satisfies MenuItemLiteResource
23
+ } satisfies SaveMapStoreStockMigrationRequestAssociationsInner
30
24
 
31
25
  console.log(example)
32
26
 
@@ -35,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
35
29
  console.log(exampleJSON)
36
30
 
37
31
  // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as MenuItemLiteResource
32
+ const exampleParsed = JSON.parse(exampleJSON) as SaveMapStoreStockMigrationRequestAssociationsInner
39
33
  console.log(exampleParsed)
40
34
  ```
41
35
 
package/docs/StoreApi.md CHANGED
@@ -10,6 +10,8 @@ All URIs are relative to *http://localhost/api*
10
10
  | [**detachSuppliersStore**](StoreApi.md#detachsuppliersstoreoperation) | **POST** /admin-api/store/{store}/detach-suppliers | Auto-generated: detachSuppliersStore |
11
11
  | [**getAllStore**](StoreApi.md#getallstoreoperation) | **POST** /admin-api/store/all | Auto-generated: getAllStore |
12
12
  | [**indexStore**](StoreApi.md#indexstoreoperation) | **POST** /admin-api/store/list | Auto-generated: indexStore |
13
+ | [**optionsStoreStockMigration**](StoreApi.md#optionsstorestockmigration) | **GET** /admin-api/store/stock-migration/options | Auto-generated: optionsStoreStockMigration |
14
+ | [**saveMapStoreStockMigration**](StoreApi.md#savemapstorestockmigrationoperation) | **POST** /admin-api/store/stock-migration/save-map | Auto-generated: saveMapStoreStockMigration |
13
15
  | [**showStore**](StoreApi.md#showstore) | **GET** /admin-api/store/{store} | Auto-generated: showStore |
14
16
  | [**storeStore**](StoreApi.md#storestoreoperation) | **POST** /admin-api/store/create | Auto-generated: storeStore |
15
17
  | [**storeStoreSpecialDate**](StoreApi.md#storestorespecialdateoperation) | **POST** /admin-api/store/{store}/special-dates | Auto-generated: storeStoreSpecialDate |
@@ -417,6 +419,128 @@ No authorization required
417
419
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
418
420
 
419
421
 
422
+ ## optionsStoreStockMigration
423
+
424
+ > GenericResponse optionsStoreStockMigration()
425
+
426
+ Auto-generated: optionsStoreStockMigration
427
+
428
+ ### Example
429
+
430
+ ```ts
431
+ import {
432
+ Configuration,
433
+ StoreApi,
434
+ } from '@digital8/lighting-illusions-ts-sdk';
435
+ import type { OptionsStoreStockMigrationRequest } from '@digital8/lighting-illusions-ts-sdk';
436
+
437
+ async function example() {
438
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
439
+ const api = new StoreApi();
440
+
441
+ try {
442
+ const data = await api.optionsStoreStockMigration();
443
+ console.log(data);
444
+ } catch (error) {
445
+ console.error(error);
446
+ }
447
+ }
448
+
449
+ // Run the test
450
+ example().catch(console.error);
451
+ ```
452
+
453
+ ### Parameters
454
+
455
+ This endpoint does not need any parameter.
456
+
457
+ ### Return type
458
+
459
+ [**GenericResponse**](GenericResponse.md)
460
+
461
+ ### Authorization
462
+
463
+ No authorization required
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: Not defined
468
+ - **Accept**: `application/json`
469
+
470
+
471
+ ### HTTP response details
472
+ | Status code | Description | Response headers |
473
+ |-------------|-------------|------------------|
474
+ | **200** | \\JsonResponse<array{locations: array<int,array{id: int, name: string, isPrimary: bool}>, stores: array<int,array{id: int, name: string}>, existingMap: array<string,array{store_id: int, type: string}>, existingMapFilePath: string|null}> | - |
475
+
476
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
477
+
478
+
479
+ ## saveMapStoreStockMigration
480
+
481
+ > GenericResponse saveMapStoreStockMigration(saveMapStoreStockMigrationRequest)
482
+
483
+ Auto-generated: saveMapStoreStockMigration
484
+
485
+ ### Example
486
+
487
+ ```ts
488
+ import {
489
+ Configuration,
490
+ StoreApi,
491
+ } from '@digital8/lighting-illusions-ts-sdk';
492
+ import type { SaveMapStoreStockMigrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
493
+
494
+ async function example() {
495
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
496
+ const api = new StoreApi();
497
+
498
+ const body = {
499
+ // SaveMapStoreStockMigrationRequest (optional)
500
+ saveMapStoreStockMigrationRequest: ...,
501
+ } satisfies SaveMapStoreStockMigrationOperationRequest;
502
+
503
+ try {
504
+ const data = await api.saveMapStoreStockMigration(body);
505
+ console.log(data);
506
+ } catch (error) {
507
+ console.error(error);
508
+ }
509
+ }
510
+
511
+ // Run the test
512
+ example().catch(console.error);
513
+ ```
514
+
515
+ ### Parameters
516
+
517
+
518
+ | Name | Type | Description | Notes |
519
+ |------------- | ------------- | ------------- | -------------|
520
+ | **saveMapStoreStockMigrationRequest** | [SaveMapStoreStockMigrationRequest](SaveMapStoreStockMigrationRequest.md) | | [Optional] |
521
+
522
+ ### Return type
523
+
524
+ [**GenericResponse**](GenericResponse.md)
525
+
526
+ ### Authorization
527
+
528
+ No authorization required
529
+
530
+ ### HTTP request headers
531
+
532
+ - **Content-Type**: `application/json`
533
+ - **Accept**: `application/json`
534
+
535
+
536
+ ### HTTP response details
537
+ | Status code | Description | Response headers |
538
+ |-------------|-------------|------------------|
539
+ | **200** | \\JsonResponse<array{message: string, filePath: string, command: string}> | - |
540
+
541
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
542
+
543
+
420
544
  ## showStore
421
545
 
422
546
  > StoreResource showStore(store)
@@ -15,6 +15,8 @@ Name | Type
15
15
  `tagLine` | string
16
16
  `email` | string
17
17
  `website` | string
18
+ `netsuiteId` | number
19
+ `displayNetsuiteId` | number
18
20
  `openingHours` | string
19
21
  `suppliers` | [Array<SupplierLiteResource>](SupplierLiteResource.md)
20
22
  `address` | [AddressResource](AddressResource.md)
@@ -36,6 +38,8 @@ const example = {
36
38
  "tagLine": null,
37
39
  "email": null,
38
40
  "website": null,
41
+ "netsuiteId": null,
42
+ "displayNetsuiteId": null,
39
43
  "openingHours": null,
40
44
  "suppliers": null,
41
45
  "address": null,
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | object
12
+ `date` | string
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -1,5 +1,5 @@
1
1
 
2
- # MenuItemType
2
+ # StoreStockType
3
3
 
4
4
 
5
5
  ## Properties
@@ -10,11 +10,11 @@ Name | Type
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import type { MenuItemType } from '@digital8/lighting-illusions-ts-sdk'
13
+ import type { StoreStockType } from '@digital8/lighting-illusions-ts-sdk'
14
14
 
15
15
  // TODO: Update the object below with actual values
16
16
  const example = {
17
- } satisfies MenuItemType
17
+ } satisfies StoreStockType
18
18
 
19
19
  console.log(example)
20
20
 
@@ -23,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
23
23
  console.log(exampleJSON)
24
24
 
25
25
  // Parse the JSON string back to an object
26
- const exampleParsed = JSON.parse(exampleJSON) as MenuItemType
26
+ const exampleParsed = JSON.parse(exampleJSON) as StoreStockType
27
27
  console.log(exampleParsed)
28
28
  ```
29
29
 
@@ -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<StoreStoreRequestSpecialDatesInner>](StoreStoreRequestSpecialDatesInner.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,
@@ -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.1706",
3
+ "version": "0.0.1708",
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
@@ -8,8 +8,6 @@ export * from './DocumentApi';
8
8
  export * from './ExternalApiLogApi';
9
9
  export * from './GoogleCategoryApi';
10
10
  export * from './LabelApi';
11
- export * from './MenuApi';
12
- export * from './MenuItemsApi';
13
11
  export * from './OverlayTemplateApi';
14
12
  export * from './ProductApi';
15
13
  export * from './ProductCategoryApi';
@@ -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
+
@@ -76,10 +76,8 @@ export interface StoreAssetForAssetableRequest {
76
76
  export const StoreAssetForAssetableRequestAssetableTypeEnum = {
77
77
  AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
78
78
  AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
79
- AppModelsMenusMenuItem: 'App\\Models\\Menus\\MenuItem',
80
79
  ProductChild: 'productChild',
81
- ProductRange: 'productRange',
82
- MenuItem: 'menuItem'
80
+ ProductRange: 'productRange'
83
81
  } as const;
84
82
  export type StoreAssetForAssetableRequestAssetableTypeEnum = typeof StoreAssetForAssetableRequestAssetableTypeEnum[keyof typeof StoreAssetForAssetableRequestAssetableTypeEnum];
85
83
 
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
109
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
114
  return true;
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
133
  'address': json['address'] == null ? undefined : json['address'],
135
134
  'latitude': json['latitude'],
136
135
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
138
  'specialDates': json['specialDates'],
140
139
  'suppliers': json['suppliers'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -98,6 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
98
98
  if (!('phone' in value) || value['phone'] === undefined) return false;
99
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
101
102
  if (!('email' in value) || value['email'] === undefined) return false;
102
103
  return true;
103
104
  }
@@ -118,7 +119,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
118
119
  'phone': json['phone'],
119
120
  'longitude': json['longitude'],
120
121
  'latitude': json['latitude'],
121
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
122
+ 'tagLine': json['tag_line'],
122
123
  'email': json['email'],
123
124
  'website': json['website'] == null ? undefined : json['website'],
124
125
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],