@digital8/lighting-illusions-ts-sdk 0.0.1803 → 0.0.1804
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 +0 -6
- package/README.md +2 -7
- package/dist/apis/StoreApi.d.ts +1 -28
- package/dist/apis/StoreApi.js +0 -113
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -14
- package/dist/models/StoreListResource.js +5 -17
- package/dist/models/StoreResource.d.ts +1 -13
- package/dist/models/StoreResource.js +8 -14
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +5 -7
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/docs/StoreApi.md +0 -124
- package/docs/StoreListResource.md +0 -4
- package/docs/StoreResource.md +0 -4
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +0 -84
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/StoreListResource.ts +7 -27
- package/src/models/StoreResource.ts +9 -26
- package/src/models/StoreSpecialDateResource.ts +7 -8
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/index.ts +0 -3
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +0 -33
- package/dist/models/SaveMapStoreStockMigrationRequest.js +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +0 -67
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/docs/SaveMapStoreStockMigrationRequest.md +0 -34
- package/docs/SaveMapStoreStockMigrationRequestAssociationsInner.md +0 -38
- package/docs/StoreStockType.md +0 -32
- package/src/models/SaveMapStoreStockMigrationRequest.ts +0 -74
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +0 -95
- package/src/models/StoreStockType.ts +0 -53
package/docs/StoreApi.md
CHANGED
|
@@ -10,8 +10,6 @@ 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 |
|
|
15
13
|
| [**showStore**](StoreApi.md#showstore) | **GET** /admin-api/store/{store} | Auto-generated: showStore |
|
|
16
14
|
| [**storeStore**](StoreApi.md#storestoreoperation) | **POST** /admin-api/store/create | Auto-generated: storeStore |
|
|
17
15
|
| [**storeStoreSpecialDate**](StoreApi.md#storestorespecialdateoperation) | **POST** /admin-api/store/{store}/special-dates | Auto-generated: storeStoreSpecialDate |
|
|
@@ -419,128 +417,6 @@ No authorization required
|
|
|
419
417
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
420
418
|
|
|
421
419
|
|
|
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
|
-
|
|
544
420
|
## showStore
|
|
545
421
|
|
|
546
422
|
> StoreResource showStore(store)
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`website` | string
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`openingHours` | string
|
|
21
19
|
|
|
22
20
|
## Example
|
|
@@ -35,8 +33,6 @@ const example = {
|
|
|
35
33
|
"tagLine": null,
|
|
36
34
|
"email": null,
|
|
37
35
|
"website": null,
|
|
38
|
-
"netsuiteId": null,
|
|
39
|
-
"displayNetsuiteId": null,
|
|
40
36
|
"openingHours": null,
|
|
41
37
|
} satisfies StoreListResource
|
|
42
38
|
|
package/docs/StoreResource.md
CHANGED
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`website` | string
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`openingHours` | string
|
|
21
19
|
`suppliers` | [Array<SupplierLiteResource>](SupplierLiteResource.md)
|
|
22
20
|
`address` | [AddressResource](AddressResource.md)
|
|
@@ -38,8 +36,6 @@ const example = {
|
|
|
38
36
|
"tagLine": null,
|
|
39
37
|
"email": null,
|
|
40
38
|
"website": null,
|
|
41
|
-
"netsuiteId": null,
|
|
42
|
-
"displayNetsuiteId": null,
|
|
43
39
|
"openingHours": null,
|
|
44
40
|
"suppliers": null,
|
|
45
41
|
"address": null,
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`email` | string
|
|
16
16
|
`website` | string
|
|
17
17
|
`openingHours` | Array<string | null>
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`supplierIds` | Array<number>
|
|
21
19
|
`specialDates` | [Array<StoreStoreRequestSpecialDatesInner>](StoreStoreRequestSpecialDatesInner.md)
|
|
22
20
|
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
@@ -37,8 +35,6 @@ const example = {
|
|
|
37
35
|
"email": null,
|
|
38
36
|
"website": null,
|
|
39
37
|
"openingHours": null,
|
|
40
|
-
"netsuiteId": null,
|
|
41
|
-
"displayNetsuiteId": null,
|
|
42
38
|
"supplierIds": null,
|
|
43
39
|
"specialDates": null,
|
|
44
40
|
"address": null,
|
|
@@ -15,8 +15,6 @@ Name | Type
|
|
|
15
15
|
`email` | string
|
|
16
16
|
`website` | string
|
|
17
17
|
`openingHours` | Array<string | null>
|
|
18
|
-
`netsuiteId` | number
|
|
19
|
-
`displayNetsuiteId` | number
|
|
20
18
|
`supplierIds` | Array<number>
|
|
21
19
|
`specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
|
|
22
20
|
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
@@ -37,8 +35,6 @@ const example = {
|
|
|
37
35
|
"email": null,
|
|
38
36
|
"website": null,
|
|
39
37
|
"openingHours": null,
|
|
40
|
-
"netsuiteId": null,
|
|
41
|
-
"displayNetsuiteId": null,
|
|
42
38
|
"supplierIds": null,
|
|
43
39
|
"specialDates": null,
|
|
44
40
|
"address": null,
|
package/package.json
CHANGED
package/src/apis/StoreApi.ts
CHANGED
|
@@ -21,7 +21,6 @@ import type {
|
|
|
21
21
|
GetAllStoreRequest,
|
|
22
22
|
IndexStoreRequest,
|
|
23
23
|
PaginatedStoreListResourceResponse,
|
|
24
|
-
SaveMapStoreStockMigrationRequest,
|
|
25
24
|
StoreListResourceArrayResponse,
|
|
26
25
|
StoreResource,
|
|
27
26
|
StoreSpecialDateResource,
|
|
@@ -42,8 +41,6 @@ import {
|
|
|
42
41
|
IndexStoreRequestToJSON,
|
|
43
42
|
PaginatedStoreListResourceResponseFromJSON,
|
|
44
43
|
PaginatedStoreListResourceResponseToJSON,
|
|
45
|
-
SaveMapStoreStockMigrationRequestFromJSON,
|
|
46
|
-
SaveMapStoreStockMigrationRequestToJSON,
|
|
47
44
|
StoreListResourceArrayResponseFromJSON,
|
|
48
45
|
StoreListResourceArrayResponseToJSON,
|
|
49
46
|
StoreResourceFromJSON,
|
|
@@ -85,10 +82,6 @@ export interface IndexStoreOperationRequest {
|
|
|
85
82
|
indexStoreRequest?: IndexStoreRequest;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
|
-
export interface SaveMapStoreStockMigrationOperationRequest {
|
|
89
|
-
saveMapStoreStockMigrationRequest?: SaveMapStoreStockMigrationRequest;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
85
|
export interface ShowStoreRequest {
|
|
93
86
|
store: number;
|
|
94
87
|
}
|
|
@@ -392,83 +385,6 @@ export class StoreApi extends runtime.BaseAPI {
|
|
|
392
385
|
return await response.value();
|
|
393
386
|
}
|
|
394
387
|
|
|
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
|
-
|
|
472
388
|
/**
|
|
473
389
|
* Creates request options for showStore without sending the request
|
|
474
390
|
*/
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,7 +79,6 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
83
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
85
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
100
|
return {
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
|
-
'company': json['company'],
|
|
103
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
105
104
|
'line1': json['line_1'],
|
|
106
105
|
'line2': json['line_2'],
|
|
107
106
|
'postcode': json['postcode'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,19 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof StoreListResource
|
|
88
|
-
*/
|
|
89
|
-
netsuiteId: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof StoreListResource
|
|
94
|
-
*/
|
|
95
|
-
displayNetsuiteId: number;
|
|
83
|
+
website?: string | null;
|
|
96
84
|
/**
|
|
97
85
|
*
|
|
98
86
|
* @type {string}
|
|
@@ -110,11 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
98
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
|
-
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
102
|
return true;
|
|
119
103
|
}
|
|
120
104
|
|
|
@@ -134,12 +118,10 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
118
|
'phone': json['phone'],
|
|
135
119
|
'longitude': json['longitude'],
|
|
136
120
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['
|
|
121
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
138
122
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
140
|
-
'
|
|
141
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
123
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
124
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
143
125
|
};
|
|
144
126
|
}
|
|
145
127
|
|
|
@@ -160,12 +142,10 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
|
|
|
160
142
|
'phone': value['phone'],
|
|
161
143
|
'longitude': value['longitude'],
|
|
162
144
|
'latitude': value['latitude'],
|
|
163
|
-
'
|
|
145
|
+
'tag_line': value['tagLine'],
|
|
164
146
|
'email': value['email'],
|
|
165
147
|
'website': value['website'],
|
|
166
|
-
'
|
|
167
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
168
|
-
'openingHours': value['openingHours'],
|
|
148
|
+
'opening_hours': value['openingHours'],
|
|
169
149
|
};
|
|
170
150
|
}
|
|
171
151
|
|
|
@@ -101,19 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {number}
|
|
108
|
-
* @memberof StoreResource
|
|
109
|
-
*/
|
|
110
|
-
netsuiteId: number;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof StoreResource
|
|
115
|
-
*/
|
|
116
|
-
displayNetsuiteId: number;
|
|
104
|
+
website: string;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -151,8 +139,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
151
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
140
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
141
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
-
if (!('
|
|
155
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
142
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
156
143
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
157
144
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
158
145
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -175,15 +162,13 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
162
|
'phone': json['phone'],
|
|
176
163
|
'longitude': json['longitude'],
|
|
177
164
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['
|
|
165
|
+
'tagLine': json['tag_line'],
|
|
179
166
|
'email': json['email'],
|
|
180
|
-
'website': json['website']
|
|
181
|
-
'
|
|
182
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
167
|
+
'website': json['website'],
|
|
168
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
184
169
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
185
170
|
'address': AddressResourceFromJSON(json['address']),
|
|
186
|
-
'specialDates': (json['
|
|
171
|
+
'specialDates': (json['special_dates'] == null ? null : (json['special_dates'] as Array<any>).map(StoreSpecialDateResourceFromJSON)),
|
|
187
172
|
};
|
|
188
173
|
}
|
|
189
174
|
|
|
@@ -204,15 +189,13 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
|
|
|
204
189
|
'phone': value['phone'],
|
|
205
190
|
'longitude': value['longitude'],
|
|
206
191
|
'latitude': value['latitude'],
|
|
207
|
-
'
|
|
192
|
+
'tag_line': value['tagLine'],
|
|
208
193
|
'email': value['email'],
|
|
209
194
|
'website': value['website'],
|
|
210
|
-
'
|
|
211
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
212
|
-
'openingHours': value['openingHours'],
|
|
195
|
+
'opening_hours': value['openingHours'],
|
|
213
196
|
'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
|
|
214
197
|
'address': AddressResourceToJSON(value['address']),
|
|
215
|
-
'
|
|
198
|
+
'special_dates': (value['specialDates'] == null ? null : (value['specialDates'] as Array<any>).map(StoreSpecialDateResourceToJSON)),
|
|
216
199
|
};
|
|
217
200
|
}
|
|
218
201
|
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ 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;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,10 +88,10 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
|
-
'displayStartDate': json['
|
|
95
|
-
'displayEndDate': json['
|
|
93
|
+
'displayStartDate': json['display_start_date'],
|
|
94
|
+
'displayEndDate': json['display_end_date'],
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
97
|
|
|
@@ -112,8 +111,8 @@ export function StoreSpecialDateResourceToJSONTyped(value?: StoreSpecialDateReso
|
|
|
112
111
|
'hours': value['hours'],
|
|
113
112
|
'date': value['date'],
|
|
114
113
|
'closed': value['closed'],
|
|
115
|
-
'
|
|
116
|
-
'
|
|
114
|
+
'display_start_date': value['displayStartDate'],
|
|
115
|
+
'display_end_date': value['displayEndDate'],
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
|
|
@@ -88,18 +88,6 @@ export interface StoreStoreRequest {
|
|
|
88
88
|
* @memberof StoreStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof StoreStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof StoreStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
|
@@ -88,18 +88,6 @@ export interface UpdateStoreRequest {
|
|
|
88
88
|
* @memberof UpdateStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof UpdateStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof UpdateStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|