@digital8/lighting-illusions-ts-sdk 0.0.1814 → 0.0.1815
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/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/StoreListResource.d.ts +1 -13
- package/dist/models/StoreListResource.js +4 -14
- package/dist/models/StoreResource.d.ts +1 -13
- package/dist/models/StoreResource.js +7 -17
- 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/IndexExternalApiLogRequest.md +2 -0
- 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/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +6 -4
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/StoreListResource.ts +5 -24
- package/src/models/StoreResource.ts +8 -27
- 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/dist/models/index.js
CHANGED
|
@@ -341,8 +341,6 @@ __exportStar(require("./RedirectListResource"), exports);
|
|
|
341
341
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
342
342
|
__exportStar(require("./SEOResource"), exports);
|
|
343
343
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
344
|
-
__exportStar(require("./SaveMapStoreStockMigrationRequest"), exports);
|
|
345
|
-
__exportStar(require("./SaveMapStoreStockMigrationRequestAssociationsInner"), exports);
|
|
346
344
|
__exportStar(require("./SearchLinkablesMenuItemRequest"), exports);
|
|
347
345
|
__exportStar(require("./ShowAssetsProductChildRequest"), exports);
|
|
348
346
|
__exportStar(require("./ShowAttributesProductChildRequest"), exports);
|
|
@@ -399,7 +397,6 @@ __exportStar(require("./StoreSpecialDateFrontendResource"), exports);
|
|
|
399
397
|
__exportStar(require("./StoreSpecialDateFrontendResourceArrayResponse"), exports);
|
|
400
398
|
__exportStar(require("./StoreSpecialDateResource"), exports);
|
|
401
399
|
__exportStar(require("./StoreSpecialDateResourceArrayResponse"), exports);
|
|
402
|
-
__exportStar(require("./StoreStockType"), exports);
|
|
403
400
|
__exportStar(require("./StoreStoreRequest"), exports);
|
|
404
401
|
__exportStar(require("./StoreStoreRequestAddress"), exports);
|
|
405
402
|
__exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
@@ -18,6 +18,7 @@ Name | Type
|
|
|
18
18
|
`externalApiLoggableId` | Array<string>
|
|
19
19
|
`siteId` | Array<string>
|
|
20
20
|
`productChildId` | Array<string>
|
|
21
|
+
`productRegistrationId` | Array<string>
|
|
21
22
|
`endpoint` | Array<string>
|
|
22
23
|
`beforeCreatedAt` | Date
|
|
23
24
|
`afterCreatedAt` | Date
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"externalApiLoggableId": null,
|
|
45
46
|
"siteId": null,
|
|
46
47
|
"productChildId": null,
|
|
48
|
+
"productRegistrationId": null,
|
|
47
49
|
"endpoint": null,
|
|
48
50
|
"beforeCreatedAt": null,
|
|
49
51
|
"afterCreatedAt": null,
|
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
|
*/
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
95
|
|
|
95
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
98
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -79,7 +79,9 @@ 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;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
83
85
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
84
86
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
87
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -99,9 +101,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
99
101
|
return {
|
|
100
102
|
|
|
101
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
-
'company': json['company']
|
|
104
|
+
'company': json['company'],
|
|
103
105
|
'line1': json['line_1'],
|
|
104
|
-
'line2': json['line_2']
|
|
106
|
+
'line2': json['line_2'],
|
|
105
107
|
'postcode': json['postcode'],
|
|
106
108
|
'suburb': json['suburb'],
|
|
107
109
|
'country': json['country'],
|
|
@@ -91,6 +91,12 @@ export interface IndexExternalApiLogRequest {
|
|
|
91
91
|
* @memberof IndexExternalApiLogRequest
|
|
92
92
|
*/
|
|
93
93
|
productChildId?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Array<string>}
|
|
97
|
+
* @memberof IndexExternalApiLogRequest
|
|
98
|
+
*/
|
|
99
|
+
productRegistrationId?: Array<string>;
|
|
94
100
|
/**
|
|
95
101
|
*
|
|
96
102
|
* @type {Array<string>}
|
|
@@ -183,6 +189,7 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
183
189
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
184
190
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
185
191
|
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
192
|
+
'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'],
|
|
186
193
|
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
187
194
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
188
195
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
@@ -215,6 +222,7 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
|
|
|
215
222
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
216
223
|
'site_id': value['siteId'],
|
|
217
224
|
'product_child_id': value['productChildId'],
|
|
225
|
+
'product_registration_id': value['productRegistrationId'],
|
|
218
226
|
'endpoint': value['endpoint'],
|
|
219
227
|
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
220
228
|
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
@@ -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}
|
|
@@ -81,18 +81,6 @@ export interface StoreListResource {
|
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
83
|
website?: string | null;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof StoreListResource
|
|
88
|
-
*/
|
|
89
|
-
netsuiteId: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof StoreListResource
|
|
94
|
-
*/
|
|
95
|
-
displayNetsuiteId: number;
|
|
96
84
|
/**
|
|
97
85
|
*
|
|
98
86
|
* @type {string}
|
|
@@ -110,10 +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 (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
102
|
return true;
|
|
118
103
|
}
|
|
119
104
|
|
|
@@ -133,12 +118,10 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
118
|
'phone': json['phone'],
|
|
134
119
|
'longitude': json['longitude'],
|
|
135
120
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['
|
|
121
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
137
122
|
'email': json['email'],
|
|
138
123
|
'website': json['website'] == null ? undefined : json['website'],
|
|
139
|
-
'
|
|
140
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
124
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
142
125
|
};
|
|
143
126
|
}
|
|
144
127
|
|
|
@@ -159,12 +142,10 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
|
|
|
159
142
|
'phone': value['phone'],
|
|
160
143
|
'longitude': value['longitude'],
|
|
161
144
|
'latitude': value['latitude'],
|
|
162
|
-
'
|
|
145
|
+
'tag_line': value['tagLine'],
|
|
163
146
|
'email': value['email'],
|
|
164
147
|
'website': value['website'],
|
|
165
|
-
'
|
|
166
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
167
|
-
'openingHours': value['openingHours'],
|
|
148
|
+
'opening_hours': value['openingHours'],
|
|
168
149
|
};
|
|
169
150
|
}
|
|
170
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 | null;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -151,9 +139,6 @@ 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 (!('website' in value) || value['website'] === undefined) return false;
|
|
155
|
-
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
156
|
-
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
157
142
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
158
143
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
159
144
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -176,15 +161,13 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
161
|
'phone': json['phone'],
|
|
177
162
|
'longitude': json['longitude'],
|
|
178
163
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['
|
|
164
|
+
'tagLine': json['tag_line'],
|
|
180
165
|
'email': json['email'],
|
|
181
|
-
'website': json['website'],
|
|
182
|
-
'
|
|
183
|
-
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
184
|
-
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
166
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
167
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
185
168
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
186
169
|
'address': AddressResourceFromJSON(json['address']),
|
|
187
|
-
'specialDates': (json['
|
|
170
|
+
'specialDates': (json['special_dates'] == null ? null : (json['special_dates'] as Array<any>).map(StoreSpecialDateResourceFromJSON)),
|
|
188
171
|
};
|
|
189
172
|
}
|
|
190
173
|
|
|
@@ -205,15 +188,13 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
|
|
|
205
188
|
'phone': value['phone'],
|
|
206
189
|
'longitude': value['longitude'],
|
|
207
190
|
'latitude': value['latitude'],
|
|
208
|
-
'
|
|
191
|
+
'tag_line': value['tagLine'],
|
|
209
192
|
'email': value['email'],
|
|
210
193
|
'website': value['website'],
|
|
211
|
-
'
|
|
212
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
213
|
-
'openingHours': value['openingHours'],
|
|
194
|
+
'opening_hours': value['openingHours'],
|
|
214
195
|
'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
|
|
215
196
|
'address': AddressResourceToJSON(value['address']),
|
|
216
|
-
'
|
|
197
|
+
'special_dates': (value['specialDates'] == null ? null : (value['specialDates'] as Array<any>).map(StoreSpecialDateResourceToJSON)),
|
|
217
198
|
};
|
|
218
199
|
}
|
|
219
200
|
|
|
@@ -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
|
|