@digital8/lighting-illusions-ts-sdk 0.0.1630 → 0.0.1632
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 -32
- package/README.md +7 -23
- 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/ProductChildStoreStockType.d.ts +25 -0
- package/dist/models/ProductChildStoreStockType.js +51 -0
- 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/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +12 -0
- package/dist/models/StoreResource.js +4 -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 -15
- package/dist/models/index.js +3 -15
- package/docs/{BlogCategoryLiteResource.md → ProductChildStoreStockType.md} +4 -8
- package/docs/{BlogCategoryResourceArrayResponse.md → SaveMapStoreStockMigrationRequest.md} +6 -6
- package/docs/{BlogCategoryListResourceArrayResponse.md → SaveMapStoreStockMigrationRequestAssociationsInner.md} +10 -6
- package/docs/StoreApi.md +124 -0
- package/docs/StoreResource.md +4 -0
- 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/ProductChildStoreStockType.ts +53 -0
- package/src/models/SaveMapStoreStockMigrationRequest.ts +74 -0
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +95 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +16 -0
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/index.ts +3 -15
- package/dist/apis/BlogCategoriesApi.d.ts +0 -109
- package/dist/apis/BlogCategoriesApi.js +0 -433
- package/dist/models/BlogCategoryFrontendResource.d.ts +0 -44
- package/dist/models/BlogCategoryFrontendResource.js +0 -59
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryListResource.d.ts +0 -44
- package/dist/models/BlogCategoryListResource.js +0 -59
- package/dist/models/BlogCategoryListResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryListResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryLiteResource.d.ts +0 -38
- package/dist/models/BlogCategoryLiteResource.js +0 -55
- package/dist/models/BlogCategoryLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryLiteResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryResource.d.ts +0 -51
- package/dist/models/BlogCategoryResource.js +0 -64
- package/dist/models/BlogCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryResourceArrayResponse.js +0 -50
- package/dist/models/GetAllBlogCategoryRequest.d.ts +0 -78
- package/dist/models/GetAllBlogCategoryRequest.js +0 -74
- package/dist/models/IndexBlogCategoryRequest.d.ts +0 -90
- package/dist/models/IndexBlogCategoryRequest.js +0 -78
- package/dist/models/PaginatedBlogCategoryListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryListResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryResourceResponse.js +0 -57
- package/dist/models/StoreBlogCategoryRequest.d.ts +0 -45
- package/dist/models/StoreBlogCategoryRequest.js +0 -60
- package/dist/models/UpdateBlogCategoryRequest.d.ts +0 -45
- package/dist/models/UpdateBlogCategoryRequest.js +0 -60
- package/docs/BlogCategoriesApi.md +0 -407
- package/docs/BlogCategoryFrontendResource.md +0 -38
- package/docs/BlogCategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/BlogCategoryListResource.md +0 -38
- package/docs/BlogCategoryLiteResourceArrayResponse.md +0 -34
- package/docs/BlogCategoryResource.md +0 -40
- package/docs/GetAllBlogCategoryRequest.md +0 -44
- package/docs/IndexBlogCategoryRequest.md +0 -48
- package/docs/PaginatedBlogCategoryListResourceResponse.md +0 -36
- package/docs/PaginatedBlogCategoryLiteResourceResponse.md +0 -36
- package/docs/PaginatedBlogCategoryResourceResponse.md +0 -36
- package/docs/StoreBlogCategoryRequest.md +0 -38
- package/docs/UpdateBlogCategoryRequest.md +0 -38
- package/src/apis/BlogCategoriesApi.ts +0 -334
- package/src/models/BlogCategoryFrontendResource.ts +0 -84
- package/src/models/BlogCategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryListResource.ts +0 -84
- package/src/models/BlogCategoryListResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryLiteResource.ts +0 -75
- package/src/models/BlogCategoryLiteResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryResource.ts +0 -101
- package/src/models/BlogCategoryResourceArrayResponse.ts +0 -73
- package/src/models/GetAllBlogCategoryRequest.ts +0 -125
- package/src/models/IndexBlogCategoryRequest.ts +0 -141
- package/src/models/PaginatedBlogCategoryListResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryResourceResponse.ts +0 -90
- package/src/models/StoreBlogCategoryRequest.ts +0 -92
- package/src/models/UpdateBlogCategoryRequest.ts +0 -92
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,
|
|
@@ -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
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductChildStoreStockType = {
|
|
21
|
+
Display: 'display',
|
|
22
|
+
Available: 'available'
|
|
23
|
+
} as const;
|
|
24
|
+
export type ProductChildStoreStockType = typeof ProductChildStoreStockType[keyof typeof ProductChildStoreStockType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfProductChildStoreStockType(value: any): boolean {
|
|
28
|
+
for (const key in ProductChildStoreStockType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(ProductChildStoreStockType, key)) {
|
|
30
|
+
if (ProductChildStoreStockType[key as keyof typeof ProductChildStoreStockType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ProductChildStoreStockTypeFromJSON(json: any): ProductChildStoreStockType {
|
|
39
|
+
return ProductChildStoreStockTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ProductChildStoreStockTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildStoreStockType {
|
|
43
|
+
return json as ProductChildStoreStockType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ProductChildStoreStockTypeToJSON(value?: ProductChildStoreStockType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ProductChildStoreStockTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductChildStoreStockType {
|
|
51
|
+
return value as ProductChildStoreStockType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -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
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -102,6 +102,18 @@ export interface StoreResource {
|
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
104
|
website?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof StoreResource
|
|
109
|
+
*/
|
|
110
|
+
netsuiteId?: number | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof StoreResource
|
|
115
|
+
*/
|
|
116
|
+
displayNetsuiteId?: number | null;
|
|
105
117
|
/**
|
|
106
118
|
*
|
|
107
119
|
* @type {string}
|
|
@@ -164,6 +176,8 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
164
176
|
'tagLine': json['tag_line'],
|
|
165
177
|
'email': json['email'],
|
|
166
178
|
'website': json['website'] == null ? undefined : json['website'],
|
|
179
|
+
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
180
|
+
'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
|
|
167
181
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
168
182
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
169
183
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -191,6 +205,8 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
|
|
|
191
205
|
'tag_line': value['tagLine'],
|
|
192
206
|
'email': value['email'],
|
|
193
207
|
'website': value['website'],
|
|
208
|
+
'netsuiteId': value['netsuiteId'],
|
|
209
|
+
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
194
210
|
'opening_hours': value['openingHours'],
|
|
195
211
|
'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
|
|
196
212
|
'address': AddressResourceToJSON(value['address']),
|
|
@@ -88,6 +88,18 @@ 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;
|
|
91
103
|
/**
|
|
92
104
|
*
|
|
93
105
|
* @type {Array<number>}
|
|
@@ -140,6 +152,8 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
140
152
|
'email': json['email'] == null ? undefined : json['email'],
|
|
141
153
|
'website': json['website'] == null ? undefined : json['website'],
|
|
142
154
|
'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'],
|
|
143
157
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
144
158
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
145
159
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -166,6 +180,8 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
|
|
|
166
180
|
'email': value['email'],
|
|
167
181
|
'website': value['website'],
|
|
168
182
|
'opening_hours': value['openingHours'],
|
|
183
|
+
'netsuite_id': value['netsuiteId'],
|
|
184
|
+
'display_netsuite_id': value['displayNetsuiteId'],
|
|
169
185
|
'supplier_ids': value['supplierIds'],
|
|
170
186
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
171
187
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
|
@@ -88,6 +88,18 @@ 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;
|
|
91
103
|
/**
|
|
92
104
|
*
|
|
93
105
|
* @type {Array<number>}
|
|
@@ -140,6 +152,8 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
140
152
|
'email': json['email'] == null ? undefined : json['email'],
|
|
141
153
|
'website': json['website'] == null ? undefined : json['website'],
|
|
142
154
|
'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'],
|
|
143
157
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
144
158
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
145
159
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -166,6 +180,8 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
|
|
|
166
180
|
'email': value['email'],
|
|
167
181
|
'website': value['website'],
|
|
168
182
|
'opening_hours': value['openingHours'],
|
|
183
|
+
'netsuite_id': value['netsuiteId'],
|
|
184
|
+
'display_netsuite_id': value['displayNetsuiteId'],
|
|
169
185
|
'supplier_ids': value['supplierIds'],
|
|
170
186
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
171
187
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
package/src/models/index.ts
CHANGED
|
@@ -41,14 +41,6 @@ export * from './AttributeResourceArrayResponse';
|
|
|
41
41
|
export * from './AttributeType';
|
|
42
42
|
export * from './AttributeValueResource';
|
|
43
43
|
export * from './AttributeValueResourceArrayResponse';
|
|
44
|
-
export * from './BlogCategoryFrontendResource';
|
|
45
|
-
export * from './BlogCategoryFrontendResourceArrayResponse';
|
|
46
|
-
export * from './BlogCategoryListResource';
|
|
47
|
-
export * from './BlogCategoryListResourceArrayResponse';
|
|
48
|
-
export * from './BlogCategoryLiteResource';
|
|
49
|
-
export * from './BlogCategoryLiteResourceArrayResponse';
|
|
50
|
-
export * from './BlogCategoryResource';
|
|
51
|
-
export * from './BlogCategoryResourceArrayResponse';
|
|
52
44
|
export * from './CategoryAutomationComparisonType';
|
|
53
45
|
export * from './CategoryAutomationConditionType';
|
|
54
46
|
export * from './CategoryAutomationFieldType';
|
|
@@ -93,7 +85,6 @@ export * from './ExternalApiSyncStatus';
|
|
|
93
85
|
export * from './GenericResponse';
|
|
94
86
|
export * from './GetAllAttributeRequest';
|
|
95
87
|
export * from './GetAllAttributeValueRequest';
|
|
96
|
-
export * from './GetAllBlogCategoryRequest';
|
|
97
88
|
export * from './GetAllDefinitionRequest';
|
|
98
89
|
export * from './GetAllDocumentRequest';
|
|
99
90
|
export * from './GetAllGoogleCategoryRequest';
|
|
@@ -119,7 +110,6 @@ export * from './GoogleCategoryResource';
|
|
|
119
110
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
120
111
|
export * from './IndexAttributeRequest';
|
|
121
112
|
export * from './IndexAttributeValueRequest';
|
|
122
|
-
export * from './IndexBlogCategoryRequest';
|
|
123
113
|
export * from './IndexDefinitionRequest';
|
|
124
114
|
export * from './IndexDocumentRequest';
|
|
125
115
|
export * from './IndexExternalApiLogRequest';
|
|
@@ -165,9 +155,6 @@ export * from './PaginatedAttributeLiteResourceResponse';
|
|
|
165
155
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
166
156
|
export * from './PaginatedAttributeResourceResponse';
|
|
167
157
|
export * from './PaginatedAttributeValueResourceResponse';
|
|
168
|
-
export * from './PaginatedBlogCategoryListResourceResponse';
|
|
169
|
-
export * from './PaginatedBlogCategoryLiteResourceResponse';
|
|
170
|
-
export * from './PaginatedBlogCategoryResourceResponse';
|
|
171
158
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
172
159
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
173
160
|
export * from './PaginatedDefinitionResourceResponse';
|
|
@@ -246,6 +233,7 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
246
233
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
247
234
|
export * from './ProductChildSiteDetailResource';
|
|
248
235
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
236
|
+
export * from './ProductChildStoreStockType';
|
|
249
237
|
export * from './ProductClassResource';
|
|
250
238
|
export * from './ProductClassResourceArrayResponse';
|
|
251
239
|
export * from './ProductCompareResource';
|
|
@@ -298,6 +286,8 @@ export * from './RedirectListResource';
|
|
|
298
286
|
export * from './RedirectListResourceArrayResponse';
|
|
299
287
|
export * from './SEOResource';
|
|
300
288
|
export * from './SEOResourceArrayResponse';
|
|
289
|
+
export * from './SaveMapStoreStockMigrationRequest';
|
|
290
|
+
export * from './SaveMapStoreStockMigrationRequestAssociationsInner';
|
|
301
291
|
export * from './ShowAssetsProductChildRequest';
|
|
302
292
|
export * from './ShowAttributesProductChildRequest';
|
|
303
293
|
export * from './SiteConfigResource';
|
|
@@ -318,7 +308,6 @@ export * from './StoreAssetFileRequest';
|
|
|
318
308
|
export * from './StoreAssetForAssetableRequest';
|
|
319
309
|
export * from './StoreAttributeRequest';
|
|
320
310
|
export * from './StoreAttributeValueRequest';
|
|
321
|
-
export * from './StoreBlogCategoryRequest';
|
|
322
311
|
export * from './StoreDefinitionRequest';
|
|
323
312
|
export * from './StoreDocumentFileRequest';
|
|
324
313
|
export * from './StoreDocumentRequest';
|
|
@@ -377,7 +366,6 @@ export * from './TagType';
|
|
|
377
366
|
export * from './UpdateAssetForAssetableRequest';
|
|
378
367
|
export * from './UpdateAttributeRequest';
|
|
379
368
|
export * from './UpdateAttributeValueRequest';
|
|
380
|
-
export * from './UpdateBlogCategoryRequest';
|
|
381
369
|
export * from './UpdateDefinitionRequest';
|
|
382
370
|
export * from './UpdateDocumentRequest';
|
|
383
371
|
export * from './UpdateFilterOrderAttributeRequest';
|