@digital8/lighting-illusions-ts-sdk 0.0.1812 → 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.
- package/.openapi-generator/FILES +6 -42
- package/README.md +7 -30
- package/dist/apis/StoreApi.d.ts +28 -1
- package/dist/apis/StoreApi.js +113 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +33 -0
- package/dist/models/SaveMapStoreStockMigrationRequest.js +52 -0
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +52 -0
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +67 -0
- package/dist/models/StoreListResource.d.ts +13 -1
- package/dist/models/StoreListResource.js +12 -6
- package/dist/models/StoreResource.d.ts +12 -0
- package/dist/models/StoreResource.js +14 -6
- package/dist/models/StoreSpecialDateResource.js +4 -4
- package/dist/models/StoreStockType.d.ts +25 -0
- package/dist/models/StoreStockType.js +51 -0
- package/dist/models/StoreStoreRequest.d.ts +12 -0
- package/dist/models/StoreStoreRequest.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +12 -0
- package/dist/models/UpdateStoreRequest.js +4 -0
- package/dist/models/index.d.ts +3 -20
- package/dist/models/index.js +3 -20
- package/docs/{ReviewPublicResourceArrayResponse.md → SaveMapStoreStockMigrationRequest.md} +6 -6
- package/docs/{CustomerLiteResourceArrayResponse.md → SaveMapStoreStockMigrationRequestAssociationsInner.md} +10 -6
- package/docs/StoreApi.md +124 -0
- package/docs/StoreListResource.md +4 -0
- package/docs/StoreResource.md +4 -0
- package/docs/{ReviewResourceArrayResponse.md → StoreStockType.md} +4 -6
- package/docs/StoreStoreRequest.md +4 -0
- package/docs/UpdateStoreRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +84 -0
- package/src/apis/index.ts +0 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/SaveMapStoreStockMigrationRequest.ts +74 -0
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +95 -0
- package/src/models/StoreListResource.ts +24 -7
- package/src/models/StoreResource.ts +24 -6
- package/src/models/StoreSpecialDateResource.ts +4 -4
- package/src/models/StoreStockType.ts +53 -0
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/index.ts +3 -20
- package/dist/apis/ReviewApi.d.ts +0 -139
- package/dist/apis/ReviewApi.js +0 -566
- package/dist/models/AdminUserLiteResource.d.ts +0 -50
- package/dist/models/AdminUserLiteResource.js +0 -61
- package/dist/models/AdminUserLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminUserLiteResourceArrayResponse.js +0 -50
- package/dist/models/CustomerLiteResource.d.ts +0 -50
- package/dist/models/CustomerLiteResource.js +0 -61
- package/dist/models/CustomerLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerLiteResourceArrayResponse.js +0 -50
- package/dist/models/IndexReviewRequest.d.ts +0 -110
- package/dist/models/IndexReviewRequest.js +0 -86
- package/dist/models/PaginatedReviewListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewListResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedReviewResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedReviewResourceResponse.js +0 -57
- package/dist/models/ProductReviewsResource.d.ts +0 -63
- package/dist/models/ProductReviewsResource.js +0 -70
- package/dist/models/ProductReviewsResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductReviewsResourceArrayResponse.js +0 -50
- package/dist/models/ReviewListResource.d.ts +0 -94
- package/dist/models/ReviewListResource.js +0 -85
- package/dist/models/ReviewListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewListResourceArrayResponse.js +0 -50
- package/dist/models/ReviewLiteResource.d.ts +0 -44
- package/dist/models/ReviewLiteResource.js +0 -59
- package/dist/models/ReviewLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewLiteResourceArrayResponse.js +0 -50
- package/dist/models/ReviewPublicResource.d.ts +0 -68
- package/dist/models/ReviewPublicResource.js +0 -71
- package/dist/models/ReviewPublicResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewPublicResourceArrayResponse.js +0 -50
- package/dist/models/ReviewResource.d.ts +0 -126
- package/dist/models/ReviewResource.js +0 -105
- package/dist/models/ReviewResourceArrayResponse.d.ts +0 -33
- package/dist/models/ReviewResourceArrayResponse.js +0 -50
- package/dist/models/StoreReviewRequest.d.ts +0 -80
- package/dist/models/StoreReviewRequest.js +0 -79
- package/dist/models/UpdateReviewRequest.d.ts +0 -68
- package/dist/models/UpdateReviewRequest.js +0 -71
- package/docs/AdminUserLiteResource.md +0 -40
- package/docs/AdminUserLiteResourceArrayResponse.md +0 -34
- package/docs/CustomerLiteResource.md +0 -40
- package/docs/IndexReviewRequest.md +0 -54
- package/docs/PaginatedReviewListResourceResponse.md +0 -36
- package/docs/PaginatedReviewLiteResourceResponse.md +0 -36
- package/docs/PaginatedReviewResourceResponse.md +0 -36
- package/docs/ProductReviewsResource.md +0 -44
- package/docs/ProductReviewsResourceArrayResponse.md +0 -34
- package/docs/ReviewApi.md +0 -539
- package/docs/ReviewListResource.md +0 -54
- package/docs/ReviewListResourceArrayResponse.md +0 -34
- package/docs/ReviewLiteResource.md +0 -38
- package/docs/ReviewLiteResourceArrayResponse.md +0 -34
- package/docs/ReviewPublicResource.md +0 -46
- package/docs/ReviewResource.md +0 -64
- package/docs/StoreReviewRequest.md +0 -50
- package/docs/UpdateReviewRequest.md +0 -46
- package/src/apis/ReviewApi.ts +0 -444
- package/src/models/AdminUserLiteResource.ts +0 -92
- package/src/models/AdminUserLiteResourceArrayResponse.ts +0 -73
- package/src/models/CustomerLiteResource.ts +0 -92
- package/src/models/CustomerLiteResourceArrayResponse.ts +0 -73
- package/src/models/IndexReviewRequest.ts +0 -167
- package/src/models/PaginatedReviewListResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedReviewResourceResponse.ts +0 -90
- package/src/models/ProductReviewsResource.ts +0 -118
- package/src/models/ProductReviewsResourceArrayResponse.ts +0 -73
- package/src/models/ReviewListResource.ts +0 -167
- package/src/models/ReviewListResourceArrayResponse.ts +0 -73
- package/src/models/ReviewLiteResource.ts +0 -84
- package/src/models/ReviewLiteResourceArrayResponse.ts +0 -73
- package/src/models/ReviewPublicResource.ts +0 -118
- package/src/models/ReviewPublicResourceArrayResponse.ts +0 -73
- package/src/models/ReviewResource.ts +0 -225
- package/src/models/ReviewResourceArrayResponse.ts +0 -73
- package/src/models/StoreReviewRequest.ts +0 -136
- package/src/models/UpdateReviewRequest.ts +0 -118
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
|
|
|
20
22
|
## Example
|
|
@@ -33,6 +35,8 @@ const example = {
|
|
|
33
35
|
"tagLine": null,
|
|
34
36
|
"email": null,
|
|
35
37
|
"website": null,
|
|
38
|
+
"netsuiteId": null,
|
|
39
|
+
"displayNetsuiteId": null,
|
|
36
40
|
"openingHours": null,
|
|
37
41
|
} satisfies StoreListResource
|
|
38
42
|
|
package/docs/StoreResource.md
CHANGED
|
@@ -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,
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreStockType
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<ReviewResource>](ReviewResource.md)
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
13
12
|
```typescript
|
|
14
|
-
import type {
|
|
13
|
+
import type { StoreStockType } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
14
|
|
|
16
15
|
// TODO: Update the object below with actual values
|
|
17
16
|
const example = {
|
|
18
|
-
|
|
19
|
-
} satisfies ReviewResourceArrayResponse
|
|
17
|
+
} satisfies StoreStockType
|
|
20
18
|
|
|
21
19
|
console.log(example)
|
|
22
20
|
|
|
@@ -25,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
23
|
console.log(exampleJSON)
|
|
26
24
|
|
|
27
25
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStockType
|
|
29
27
|
console.log(exampleParsed)
|
|
30
28
|
```
|
|
31
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
package/src/apis/StoreApi.ts
CHANGED
|
@@ -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
|
@@ -17,7 +17,6 @@ export * from './ProductRangeApi';
|
|
|
17
17
|
export * from './ProductRegistrationApi';
|
|
18
18
|
export * from './ProductTypeApi';
|
|
19
19
|
export * from './RedirectApi';
|
|
20
|
-
export * from './ReviewApi';
|
|
21
20
|
export * from './SiteApi';
|
|
22
21
|
export * from './StoreApi';
|
|
23
22
|
export * from './SupplierApi';
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
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'],
|
|
@@ -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
|
+
|
|
@@ -80,7 +80,19 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
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,7 +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;
|
|
103
|
-
if (!('
|
|
115
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
|
+
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
104
117
|
return true;
|
|
105
118
|
}
|
|
106
119
|
|
|
@@ -120,10 +133,12 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
120
133
|
'phone': json['phone'],
|
|
121
134
|
'longitude': json['longitude'],
|
|
122
135
|
'latitude': json['latitude'],
|
|
123
|
-
'tagLine': json['
|
|
136
|
+
'tagLine': json['tagLine'],
|
|
124
137
|
'email': json['email'],
|
|
125
|
-
'website': json['website'],
|
|
126
|
-
'
|
|
138
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
139
|
+
'netsuiteId': json['netsuiteId'],
|
|
140
|
+
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
|
+
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
127
142
|
};
|
|
128
143
|
}
|
|
129
144
|
|
|
@@ -144,10 +159,12 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
|
|
|
144
159
|
'phone': value['phone'],
|
|
145
160
|
'longitude': value['longitude'],
|
|
146
161
|
'latitude': value['latitude'],
|
|
147
|
-
'
|
|
162
|
+
'tagLine': value['tagLine'],
|
|
148
163
|
'email': value['email'],
|
|
149
164
|
'website': value['website'],
|
|
150
|
-
'
|
|
165
|
+
'netsuiteId': value['netsuiteId'],
|
|
166
|
+
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
167
|
+
'openingHours': value['openingHours'],
|
|
151
168
|
};
|
|
152
169
|
}
|
|
153
170
|
|