@digital8/lighting-illusions-ts-sdk 0.0.1631 → 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.
@@ -302,6 +302,8 @@ docs/RedirectListResource.md
302
302
  docs/RedirectListResourceArrayResponse.md
303
303
  docs/SEOResource.md
304
304
  docs/SEOResourceArrayResponse.md
305
+ docs/SaveMapStoreStockMigrationRequest.md
306
+ docs/SaveMapStoreStockMigrationRequestAssociationsInner.md
305
307
  docs/ShowAssetsProductChildRequest.md
306
308
  docs/ShowAttributesProductChildRequest.md
307
309
  docs/SiteApi.md
@@ -716,6 +718,8 @@ src/models/RedirectListResource.ts
716
718
  src/models/RedirectListResourceArrayResponse.ts
717
719
  src/models/SEOResource.ts
718
720
  src/models/SEOResourceArrayResponse.ts
721
+ src/models/SaveMapStoreStockMigrationRequest.ts
722
+ src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts
719
723
  src/models/ShowAssetsProductChildRequest.ts
720
724
  src/models/ShowAttributesProductChildRequest.ts
721
725
  src/models/SiteConfigResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1631
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1632
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -186,6 +186,8 @@ All URIs are relative to *http://localhost/api*
186
186
  *StoreApi* | [**detachSuppliersStore**](docs/StoreApi.md#detachsuppliersstoreoperation) | **POST** /admin-api/store/{store}/detach-suppliers | Auto-generated: detachSuppliersStore
187
187
  *StoreApi* | [**getAllStore**](docs/StoreApi.md#getallstoreoperation) | **POST** /admin-api/store/all | Auto-generated: getAllStore
188
188
  *StoreApi* | [**indexStore**](docs/StoreApi.md#indexstoreoperation) | **POST** /admin-api/store/list | Auto-generated: indexStore
189
+ *StoreApi* | [**optionsStoreStockMigration**](docs/StoreApi.md#optionsstorestockmigration) | **GET** /admin-api/store/stock-migration/options | Auto-generated: optionsStoreStockMigration
190
+ *StoreApi* | [**saveMapStoreStockMigration**](docs/StoreApi.md#savemapstorestockmigrationoperation) | **POST** /admin-api/store/stock-migration/save-map | Auto-generated: saveMapStoreStockMigration
189
191
  *StoreApi* | [**showStore**](docs/StoreApi.md#showstore) | **GET** /admin-api/store/{store} | Auto-generated: showStore
190
192
  *StoreApi* | [**storeStore**](docs/StoreApi.md#storestoreoperation) | **POST** /admin-api/store/create | Auto-generated: storeStore
191
193
  *StoreApi* | [**storeStoreSpecialDate**](docs/StoreApi.md#storestorespecialdateoperation) | **POST** /admin-api/store/{store}/special-dates | Auto-generated: storeStoreSpecialDate
@@ -499,6 +501,8 @@ All URIs are relative to *http://localhost/api*
499
501
  - [RedirectListResourceArrayResponse](docs/RedirectListResourceArrayResponse.md)
500
502
  - [SEOResource](docs/SEOResource.md)
501
503
  - [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
504
+ - [SaveMapStoreStockMigrationRequest](docs/SaveMapStoreStockMigrationRequest.md)
505
+ - [SaveMapStoreStockMigrationRequestAssociationsInner](docs/SaveMapStoreStockMigrationRequestAssociationsInner.md)
502
506
  - [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
503
507
  - [ShowAttributesProductChildRequest](docs/ShowAttributesProductChildRequest.md)
504
508
  - [SiteConfigResource](docs/SiteConfigResource.md)
@@ -615,7 +619,7 @@ and is automatically generated by the
615
619
  [OpenAPI Generator](https://openapi-generator.tech) project:
616
620
 
617
621
  - API version: `1.0.0`
618
- - Package version: `0.0.1631`
622
+ - Package version: `0.0.1632`
619
623
  - Generator version: `7.21.0`
620
624
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
621
625
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachSuppliersStoreRequest, DetachSuppliersStoreRequest, GenericResponse, GetAllStoreRequest, IndexStoreRequest, PaginatedStoreListResourceResponse, StoreListResourceArrayResponse, StoreResource, StoreSpecialDateResource, StoreStoreRequest, StoreStoreSpecialDateRequest, UpdateStoreRequest } from '../models/index';
13
+ import type { AttachSuppliersStoreRequest, DetachSuppliersStoreRequest, GenericResponse, GetAllStoreRequest, IndexStoreRequest, PaginatedStoreListResourceResponse, SaveMapStoreStockMigrationRequest, StoreListResourceArrayResponse, StoreResource, StoreSpecialDateResource, StoreStoreRequest, StoreStoreSpecialDateRequest, UpdateStoreRequest } from '../models/index';
14
14
  export interface AttachSuppliersStoreOperationRequest {
15
15
  store: number;
16
16
  attachSuppliersStoreRequest?: AttachSuppliersStoreRequest;
@@ -32,6 +32,9 @@ export interface GetAllStoreOperationRequest {
32
32
  export interface IndexStoreOperationRequest {
33
33
  indexStoreRequest?: IndexStoreRequest;
34
34
  }
35
+ export interface SaveMapStoreStockMigrationOperationRequest {
36
+ saveMapStoreStockMigrationRequest?: SaveMapStoreStockMigrationRequest;
37
+ }
35
38
  export interface ShowStoreRequest {
36
39
  store: number;
37
40
  }
@@ -127,6 +130,30 @@ export declare class StoreApi extends runtime.BaseAPI {
127
130
  * Auto-generated: indexStore
128
131
  */
129
132
  indexStore(requestParameters?: IndexStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStoreListResourceResponse>;
133
+ /**
134
+ * Creates request options for optionsStoreStockMigration without sending the request
135
+ */
136
+ optionsStoreStockMigrationRequestOpts(): Promise<runtime.RequestOpts>;
137
+ /**
138
+ * Auto-generated: optionsStoreStockMigration
139
+ */
140
+ optionsStoreStockMigrationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
141
+ /**
142
+ * Auto-generated: optionsStoreStockMigration
143
+ */
144
+ optionsStoreStockMigration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
145
+ /**
146
+ * Creates request options for saveMapStoreStockMigration without sending the request
147
+ */
148
+ saveMapStoreStockMigrationRequestOpts(requestParameters: SaveMapStoreStockMigrationOperationRequest): Promise<runtime.RequestOpts>;
149
+ /**
150
+ * Auto-generated: saveMapStoreStockMigration
151
+ */
152
+ saveMapStoreStockMigrationRaw(requestParameters: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
153
+ /**
154
+ * Auto-generated: saveMapStoreStockMigration
155
+ */
156
+ saveMapStoreStockMigration(requestParameters?: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
130
157
  /**
131
158
  * Creates request options for showStore without sending the request
132
159
  */
@@ -435,6 +435,119 @@ var StoreApi = /** @class */ (function (_super) {
435
435
  });
436
436
  });
437
437
  };
438
+ /**
439
+ * Creates request options for optionsStoreStockMigration without sending the request
440
+ */
441
+ StoreApi.prototype.optionsStoreStockMigrationRequestOpts = function () {
442
+ return __awaiter(this, void 0, void 0, function () {
443
+ var queryParameters, headerParameters, urlPath;
444
+ return __generator(this, function (_a) {
445
+ queryParameters = {};
446
+ headerParameters = {};
447
+ urlPath = "/admin-api/store/stock-migration/options";
448
+ return [2 /*return*/, {
449
+ path: urlPath,
450
+ method: 'GET',
451
+ headers: headerParameters,
452
+ query: queryParameters,
453
+ }];
454
+ });
455
+ });
456
+ };
457
+ /**
458
+ * Auto-generated: optionsStoreStockMigration
459
+ */
460
+ StoreApi.prototype.optionsStoreStockMigrationRaw = function (initOverrides) {
461
+ return __awaiter(this, void 0, void 0, function () {
462
+ var requestOptions, response;
463
+ return __generator(this, function (_a) {
464
+ switch (_a.label) {
465
+ case 0: return [4 /*yield*/, this.optionsStoreStockMigrationRequestOpts()];
466
+ case 1:
467
+ requestOptions = _a.sent();
468
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
469
+ case 2:
470
+ response = _a.sent();
471
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
472
+ }
473
+ });
474
+ });
475
+ };
476
+ /**
477
+ * Auto-generated: optionsStoreStockMigration
478
+ */
479
+ StoreApi.prototype.optionsStoreStockMigration = function (initOverrides) {
480
+ return __awaiter(this, void 0, void 0, function () {
481
+ var response;
482
+ return __generator(this, function (_a) {
483
+ switch (_a.label) {
484
+ case 0: return [4 /*yield*/, this.optionsStoreStockMigrationRaw(initOverrides)];
485
+ case 1:
486
+ response = _a.sent();
487
+ return [4 /*yield*/, response.value()];
488
+ case 2: return [2 /*return*/, _a.sent()];
489
+ }
490
+ });
491
+ });
492
+ };
493
+ /**
494
+ * Creates request options for saveMapStoreStockMigration without sending the request
495
+ */
496
+ StoreApi.prototype.saveMapStoreStockMigrationRequestOpts = function (requestParameters) {
497
+ return __awaiter(this, void 0, void 0, function () {
498
+ var queryParameters, headerParameters, urlPath;
499
+ return __generator(this, function (_a) {
500
+ queryParameters = {};
501
+ headerParameters = {};
502
+ headerParameters['Content-Type'] = 'application/json';
503
+ urlPath = "/admin-api/store/stock-migration/save-map";
504
+ return [2 /*return*/, {
505
+ path: urlPath,
506
+ method: 'POST',
507
+ headers: headerParameters,
508
+ query: queryParameters,
509
+ body: (0, index_1.SaveMapStoreStockMigrationRequestToJSON)(requestParameters['saveMapStoreStockMigrationRequest']),
510
+ }];
511
+ });
512
+ });
513
+ };
514
+ /**
515
+ * Auto-generated: saveMapStoreStockMigration
516
+ */
517
+ StoreApi.prototype.saveMapStoreStockMigrationRaw = function (requestParameters, initOverrides) {
518
+ return __awaiter(this, void 0, void 0, function () {
519
+ var requestOptions, response;
520
+ return __generator(this, function (_a) {
521
+ switch (_a.label) {
522
+ case 0: return [4 /*yield*/, this.saveMapStoreStockMigrationRequestOpts(requestParameters)];
523
+ case 1:
524
+ requestOptions = _a.sent();
525
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
526
+ case 2:
527
+ response = _a.sent();
528
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
529
+ }
530
+ });
531
+ });
532
+ };
533
+ /**
534
+ * Auto-generated: saveMapStoreStockMigration
535
+ */
536
+ StoreApi.prototype.saveMapStoreStockMigration = function () {
537
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
538
+ var response;
539
+ if (requestParameters === void 0) { requestParameters = {}; }
540
+ return __generator(this, function (_a) {
541
+ switch (_a.label) {
542
+ case 0: return [4 /*yield*/, this.saveMapStoreStockMigrationRaw(requestParameters, initOverrides)];
543
+ case 1:
544
+ response = _a.sent();
545
+ return [4 /*yield*/, response.value()];
546
+ case 2: return [2 /*return*/, _a.sent()];
547
+ }
548
+ });
549
+ });
550
+ };
438
551
  /**
439
552
  * Creates request options for showStore without sending the request
440
553
  */
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company: string;
23
+ company?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
44
  return json;
47
45
  }
48
46
  return {
49
- 'company': json['company'],
47
+ 'company': json['company'] == null ? undefined : json['company'],
50
48
  'line1': json['line1'],
51
49
  'line2': json['line2'] == null ? undefined : json['line2'],
52
50
  'postcode': json['postcode'],
@@ -26,7 +26,7 @@ export interface AddressResource {
26
26
  * @type {string}
27
27
  * @memberof AddressResource
28
28
  */
29
- company: string;
29
+ company?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- line2: string;
41
+ line2?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -22,12 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
27
  if (!('postcode' in value) || value['postcode'] === undefined)
32
28
  return false;
33
29
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -49,9 +45,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
49
45
  }
50
46
  return {
51
47
  'id': json['id'] == null ? undefined : json['id'],
52
- 'company': json['company'],
48
+ 'company': json['company'] == null ? undefined : json['company'],
53
49
  'line1': json['line_1'],
54
- 'line2': json['line_2'],
50
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
55
51
  'postcode': json['postcode'],
56
52
  'suburb': json['suburb'],
57
53
  'country': json['country'],
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SaveMapStoreStockMigrationRequestAssociationsInner } from './SaveMapStoreStockMigrationRequestAssociationsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SaveMapStoreStockMigrationRequest
17
+ */
18
+ export interface SaveMapStoreStockMigrationRequest {
19
+ /**
20
+ *
21
+ * @type {Array<SaveMapStoreStockMigrationRequestAssociationsInner>}
22
+ * @memberof SaveMapStoreStockMigrationRequest
23
+ */
24
+ associations: Array<SaveMapStoreStockMigrationRequestAssociationsInner>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
28
+ */
29
+ export declare function instanceOfSaveMapStoreStockMigrationRequest(value: object): value is SaveMapStoreStockMigrationRequest;
30
+ export declare function SaveMapStoreStockMigrationRequestFromJSON(json: any): SaveMapStoreStockMigrationRequest;
31
+ export declare function SaveMapStoreStockMigrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequest;
32
+ export declare function SaveMapStoreStockMigrationRequestToJSON(json: any): SaveMapStoreStockMigrationRequest;
33
+ export declare function SaveMapStoreStockMigrationRequestToJSONTyped(value?: SaveMapStoreStockMigrationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSaveMapStoreStockMigrationRequest = instanceOfSaveMapStoreStockMigrationRequest;
17
+ exports.SaveMapStoreStockMigrationRequestFromJSON = SaveMapStoreStockMigrationRequestFromJSON;
18
+ exports.SaveMapStoreStockMigrationRequestFromJSONTyped = SaveMapStoreStockMigrationRequestFromJSONTyped;
19
+ exports.SaveMapStoreStockMigrationRequestToJSON = SaveMapStoreStockMigrationRequestToJSON;
20
+ exports.SaveMapStoreStockMigrationRequestToJSONTyped = SaveMapStoreStockMigrationRequestToJSONTyped;
21
+ var SaveMapStoreStockMigrationRequestAssociationsInner_1 = require("./SaveMapStoreStockMigrationRequestAssociationsInner");
22
+ /**
23
+ * Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
24
+ */
25
+ function instanceOfSaveMapStoreStockMigrationRequest(value) {
26
+ if (!('associations' in value) || value['associations'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function SaveMapStoreStockMigrationRequestFromJSON(json) {
31
+ return SaveMapStoreStockMigrationRequestFromJSONTyped(json, false);
32
+ }
33
+ function SaveMapStoreStockMigrationRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'associations': (json['associations'].map(SaveMapStoreStockMigrationRequestAssociationsInner_1.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON)),
39
+ };
40
+ }
41
+ function SaveMapStoreStockMigrationRequestToJSON(json) {
42
+ return SaveMapStoreStockMigrationRequestToJSONTyped(json, false);
43
+ }
44
+ function SaveMapStoreStockMigrationRequestToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'associations': (value['associations'].map(SaveMapStoreStockMigrationRequestAssociationsInner_1.SaveMapStoreStockMigrationRequestAssociationsInnerToJSON)),
51
+ };
52
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SaveMapStoreStockMigrationRequestAssociationsInner
16
+ */
17
+ export interface SaveMapStoreStockMigrationRequestAssociationsInner {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
22
+ */
23
+ locationId: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
28
+ */
29
+ storeId: number;
30
+ /**
31
+ *
32
+ * @type {SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum}
33
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
34
+ */
35
+ type: SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum: {
41
+ readonly Available: "available";
42
+ readonly Display: "display";
43
+ };
44
+ export type SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum[keyof typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum];
45
+ /**
46
+ * Check if a given object implements the SaveMapStoreStockMigrationRequestAssociationsInner interface.
47
+ */
48
+ export declare function instanceOfSaveMapStoreStockMigrationRequestAssociationsInner(value: object): value is SaveMapStoreStockMigrationRequestAssociationsInner;
49
+ export declare function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner;
50
+ export declare function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequestAssociationsInner;
51
+ export declare function SaveMapStoreStockMigrationRequestAssociationsInnerToJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner;
52
+ export declare function SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(value?: SaveMapStoreStockMigrationRequestAssociationsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = void 0;
17
+ exports.instanceOfSaveMapStoreStockMigrationRequestAssociationsInner = instanceOfSaveMapStoreStockMigrationRequestAssociationsInner;
18
+ exports.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON = SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON;
19
+ exports.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped = SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped;
20
+ exports.SaveMapStoreStockMigrationRequestAssociationsInnerToJSON = SaveMapStoreStockMigrationRequestAssociationsInnerToJSON;
21
+ exports.SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped = SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = {
26
+ Available: 'available',
27
+ Display: 'display'
28
+ };
29
+ /**
30
+ * Check if a given object implements the SaveMapStoreStockMigrationRequestAssociationsInner interface.
31
+ */
32
+ function instanceOfSaveMapStoreStockMigrationRequestAssociationsInner(value) {
33
+ if (!('locationId' in value) || value['locationId'] === undefined)
34
+ return false;
35
+ if (!('storeId' in value) || value['storeId'] === undefined)
36
+ return false;
37
+ if (!('type' in value) || value['type'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON(json) {
42
+ return SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json, false);
43
+ }
44
+ function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'locationId': json['location_id'],
50
+ 'storeId': json['store_id'],
51
+ 'type': json['type'],
52
+ };
53
+ }
54
+ function SaveMapStoreStockMigrationRequestAssociationsInnerToJSON(json) {
55
+ return SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(json, false);
56
+ }
57
+ function SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'location_id': value['locationId'],
64
+ 'store_id': value['storeId'],
65
+ 'type': value['type'],
66
+ };
67
+ }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
- if (!('website' in value) || value['website'] === undefined)
32
- return false;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
54
  'siteId': json['siteId'],
57
55
  'name': json['name'],
58
56
  'email': json['email'],
59
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
60
58
  'phone': json['phone'],
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
@@ -284,6 +284,8 @@ export * from './RedirectListResource';
284
284
  export * from './RedirectListResourceArrayResponse';
285
285
  export * from './SEOResource';
286
286
  export * from './SEOResourceArrayResponse';
287
+ export * from './SaveMapStoreStockMigrationRequest';
288
+ export * from './SaveMapStoreStockMigrationRequestAssociationsInner';
287
289
  export * from './ShowAssetsProductChildRequest';
288
290
  export * from './ShowAttributesProductChildRequest';
289
291
  export * from './SiteConfigResource';
@@ -302,6 +302,8 @@ __exportStar(require("./RedirectListResource"), exports);
302
302
  __exportStar(require("./RedirectListResourceArrayResponse"), exports);
303
303
  __exportStar(require("./SEOResource"), exports);
304
304
  __exportStar(require("./SEOResourceArrayResponse"), exports);
305
+ __exportStar(require("./SaveMapStoreStockMigrationRequest"), exports);
306
+ __exportStar(require("./SaveMapStoreStockMigrationRequestAssociationsInner"), exports);
305
307
  __exportStar(require("./ShowAssetsProductChildRequest"), exports);
306
308
  __exportStar(require("./ShowAttributesProductChildRequest"), exports);
307
309
  __exportStar(require("./SiteConfigResource"), exports);
@@ -0,0 +1,34 @@
1
+
2
+ # SaveMapStoreStockMigrationRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `associations` | [Array&lt;SaveMapStoreStockMigrationRequestAssociationsInner&gt;](SaveMapStoreStockMigrationRequestAssociationsInner.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { SaveMapStoreStockMigrationRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "associations": null,
19
+ } satisfies SaveMapStoreStockMigrationRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as SaveMapStoreStockMigrationRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,38 @@
1
+
2
+ # SaveMapStoreStockMigrationRequestAssociationsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `locationId` | number
10
+ `storeId` | number
11
+ `type` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SaveMapStoreStockMigrationRequestAssociationsInner } from '@digital8/lighting-illusions-ts-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "locationId": null,
21
+ "storeId": null,
22
+ "type": null,
23
+ } satisfies SaveMapStoreStockMigrationRequestAssociationsInner
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SaveMapStoreStockMigrationRequestAssociationsInner
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
package/docs/StoreApi.md CHANGED
@@ -10,6 +10,8 @@ All URIs are relative to *http://localhost/api*
10
10
  | [**detachSuppliersStore**](StoreApi.md#detachsuppliersstoreoperation) | **POST** /admin-api/store/{store}/detach-suppliers | Auto-generated: detachSuppliersStore |
11
11
  | [**getAllStore**](StoreApi.md#getallstoreoperation) | **POST** /admin-api/store/all | Auto-generated: getAllStore |
12
12
  | [**indexStore**](StoreApi.md#indexstoreoperation) | **POST** /admin-api/store/list | Auto-generated: indexStore |
13
+ | [**optionsStoreStockMigration**](StoreApi.md#optionsstorestockmigration) | **GET** /admin-api/store/stock-migration/options | Auto-generated: optionsStoreStockMigration |
14
+ | [**saveMapStoreStockMigration**](StoreApi.md#savemapstorestockmigrationoperation) | **POST** /admin-api/store/stock-migration/save-map | Auto-generated: saveMapStoreStockMigration |
13
15
  | [**showStore**](StoreApi.md#showstore) | **GET** /admin-api/store/{store} | Auto-generated: showStore |
14
16
  | [**storeStore**](StoreApi.md#storestoreoperation) | **POST** /admin-api/store/create | Auto-generated: storeStore |
15
17
  | [**storeStoreSpecialDate**](StoreApi.md#storestorespecialdateoperation) | **POST** /admin-api/store/{store}/special-dates | Auto-generated: storeStoreSpecialDate |
@@ -417,6 +419,128 @@ No authorization required
417
419
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
418
420
 
419
421
 
422
+ ## optionsStoreStockMigration
423
+
424
+ > GenericResponse optionsStoreStockMigration()
425
+
426
+ Auto-generated: optionsStoreStockMigration
427
+
428
+ ### Example
429
+
430
+ ```ts
431
+ import {
432
+ Configuration,
433
+ StoreApi,
434
+ } from '@digital8/lighting-illusions-ts-sdk';
435
+ import type { OptionsStoreStockMigrationRequest } from '@digital8/lighting-illusions-ts-sdk';
436
+
437
+ async function example() {
438
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
439
+ const api = new StoreApi();
440
+
441
+ try {
442
+ const data = await api.optionsStoreStockMigration();
443
+ console.log(data);
444
+ } catch (error) {
445
+ console.error(error);
446
+ }
447
+ }
448
+
449
+ // Run the test
450
+ example().catch(console.error);
451
+ ```
452
+
453
+ ### Parameters
454
+
455
+ This endpoint does not need any parameter.
456
+
457
+ ### Return type
458
+
459
+ [**GenericResponse**](GenericResponse.md)
460
+
461
+ ### Authorization
462
+
463
+ No authorization required
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: Not defined
468
+ - **Accept**: `application/json`
469
+
470
+
471
+ ### HTTP response details
472
+ | Status code | Description | Response headers |
473
+ |-------------|-------------|------------------|
474
+ | **200** | \\JsonResponse&lt;array{locations: array&lt;int,array{id: int, name: string, isPrimary: bool}&gt;, stores: array&lt;int,array{id: int, name: string}&gt;, existingMap: array&lt;string,array{store_id: int, type: string}&gt;, existingMapFilePath: string|null}&gt; | - |
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&lt;array{message: string, filePath: string, command: string}&gt; | - |
540
+
541
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
542
+
543
+
420
544
  ## showStore
421
545
 
422
546
  > StoreResource showStore(store)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1631",
3
+ "version": "0.0.1632",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -21,6 +21,7 @@ import type {
21
21
  GetAllStoreRequest,
22
22
  IndexStoreRequest,
23
23
  PaginatedStoreListResourceResponse,
24
+ SaveMapStoreStockMigrationRequest,
24
25
  StoreListResourceArrayResponse,
25
26
  StoreResource,
26
27
  StoreSpecialDateResource,
@@ -41,6 +42,8 @@ import {
41
42
  IndexStoreRequestToJSON,
42
43
  PaginatedStoreListResourceResponseFromJSON,
43
44
  PaginatedStoreListResourceResponseToJSON,
45
+ SaveMapStoreStockMigrationRequestFromJSON,
46
+ SaveMapStoreStockMigrationRequestToJSON,
44
47
  StoreListResourceArrayResponseFromJSON,
45
48
  StoreListResourceArrayResponseToJSON,
46
49
  StoreResourceFromJSON,
@@ -82,6 +85,10 @@ export interface IndexStoreOperationRequest {
82
85
  indexStoreRequest?: IndexStoreRequest;
83
86
  }
84
87
 
88
+ export interface SaveMapStoreStockMigrationOperationRequest {
89
+ saveMapStoreStockMigrationRequest?: SaveMapStoreStockMigrationRequest;
90
+ }
91
+
85
92
  export interface ShowStoreRequest {
86
93
  store: number;
87
94
  }
@@ -385,6 +392,83 @@ export class StoreApi extends runtime.BaseAPI {
385
392
  return await response.value();
386
393
  }
387
394
 
395
+ /**
396
+ * Creates request options for optionsStoreStockMigration without sending the request
397
+ */
398
+ async optionsStoreStockMigrationRequestOpts(): Promise<runtime.RequestOpts> {
399
+ const queryParameters: any = {};
400
+
401
+ const headerParameters: runtime.HTTPHeaders = {};
402
+
403
+
404
+ let urlPath = `/admin-api/store/stock-migration/options`;
405
+
406
+ return {
407
+ path: urlPath,
408
+ method: 'GET',
409
+ headers: headerParameters,
410
+ query: queryParameters,
411
+ };
412
+ }
413
+
414
+ /**
415
+ * Auto-generated: optionsStoreStockMigration
416
+ */
417
+ async optionsStoreStockMigrationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
418
+ const requestOptions = await this.optionsStoreStockMigrationRequestOpts();
419
+ const response = await this.request(requestOptions, initOverrides);
420
+
421
+ return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
422
+ }
423
+
424
+ /**
425
+ * Auto-generated: optionsStoreStockMigration
426
+ */
427
+ async optionsStoreStockMigration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
428
+ const response = await this.optionsStoreStockMigrationRaw(initOverrides);
429
+ return await response.value();
430
+ }
431
+
432
+ /**
433
+ * Creates request options for saveMapStoreStockMigration without sending the request
434
+ */
435
+ async saveMapStoreStockMigrationRequestOpts(requestParameters: SaveMapStoreStockMigrationOperationRequest): Promise<runtime.RequestOpts> {
436
+ const queryParameters: any = {};
437
+
438
+ const headerParameters: runtime.HTTPHeaders = {};
439
+
440
+ headerParameters['Content-Type'] = 'application/json';
441
+
442
+
443
+ let urlPath = `/admin-api/store/stock-migration/save-map`;
444
+
445
+ return {
446
+ path: urlPath,
447
+ method: 'POST',
448
+ headers: headerParameters,
449
+ query: queryParameters,
450
+ body: SaveMapStoreStockMigrationRequestToJSON(requestParameters['saveMapStoreStockMigrationRequest']),
451
+ };
452
+ }
453
+
454
+ /**
455
+ * Auto-generated: saveMapStoreStockMigration
456
+ */
457
+ async saveMapStoreStockMigrationRaw(requestParameters: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
458
+ const requestOptions = await this.saveMapStoreStockMigrationRequestOpts(requestParameters);
459
+ const response = await this.request(requestOptions, initOverrides);
460
+
461
+ return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
462
+ }
463
+
464
+ /**
465
+ * Auto-generated: saveMapStoreStockMigration
466
+ */
467
+ async saveMapStoreStockMigration(requestParameters: SaveMapStoreStockMigrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
468
+ const response = await this.saveMapStoreStockMigrationRaw(requestParameters, initOverrides);
469
+ return await response.value();
470
+ }
471
+
388
472
  /**
389
473
  * Creates request options for showStore without sending the request
390
474
  */
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company: string;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,7 +73,6 @@ 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;
77
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -93,7 +92,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
93
92
  }
94
93
  return {
95
94
 
96
- 'company': json['company'],
95
+ 'company': json['company'] == null ? undefined : json['company'],
97
96
  'line1': json['line1'],
98
97
  'line2': json['line2'] == null ? undefined : json['line2'],
99
98
  'postcode': json['postcode'],
@@ -30,7 +30,7 @@ export interface AddressResource {
30
30
  * @type {string}
31
31
  * @memberof AddressResource
32
32
  */
33
- company: string;
33
+ company?: string | null;
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: string;
45
+ line2?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -79,9 +79,7 @@ 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
- if (!('line2' in value) || value['line2'] === undefined) return false;
85
83
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
86
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
87
85
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -101,9 +99,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
101
99
  return {
102
100
 
103
101
  'id': json['id'] == null ? undefined : json['id'],
104
- 'company': json['company'],
102
+ 'company': json['company'] == null ? undefined : json['company'],
105
103
  'line1': json['line_1'],
106
- 'line2': json['line_2'],
104
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
107
105
  'postcode': json['postcode'],
108
106
  'suburb': json['suburb'],
109
107
  'country': json['country'],
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SaveMapStoreStockMigrationRequestAssociationsInner } from './SaveMapStoreStockMigrationRequestAssociationsInner';
17
+ import {
18
+ SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON,
19
+ SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped,
20
+ SaveMapStoreStockMigrationRequestAssociationsInnerToJSON,
21
+ SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped,
22
+ } from './SaveMapStoreStockMigrationRequestAssociationsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SaveMapStoreStockMigrationRequest
28
+ */
29
+ export interface SaveMapStoreStockMigrationRequest {
30
+ /**
31
+ *
32
+ * @type {Array<SaveMapStoreStockMigrationRequestAssociationsInner>}
33
+ * @memberof SaveMapStoreStockMigrationRequest
34
+ */
35
+ associations: Array<SaveMapStoreStockMigrationRequestAssociationsInner>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
40
+ */
41
+ export function instanceOfSaveMapStoreStockMigrationRequest(value: object): value is SaveMapStoreStockMigrationRequest {
42
+ if (!('associations' in value) || value['associations'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SaveMapStoreStockMigrationRequestFromJSON(json: any): SaveMapStoreStockMigrationRequest {
47
+ return SaveMapStoreStockMigrationRequestFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SaveMapStoreStockMigrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequest {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'associations': ((json['associations'] as Array<any>).map(SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function SaveMapStoreStockMigrationRequestToJSON(json: any): SaveMapStoreStockMigrationRequest {
61
+ return SaveMapStoreStockMigrationRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SaveMapStoreStockMigrationRequestToJSONTyped(value?: SaveMapStoreStockMigrationRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'associations': ((value['associations'] as Array<any>).map(SaveMapStoreStockMigrationRequestAssociationsInnerToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,95 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SaveMapStoreStockMigrationRequestAssociationsInner
20
+ */
21
+ export interface SaveMapStoreStockMigrationRequestAssociationsInner {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
26
+ */
27
+ locationId: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
32
+ */
33
+ storeId: number;
34
+ /**
35
+ *
36
+ * @type {SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum}
37
+ * @memberof SaveMapStoreStockMigrationRequestAssociationsInner
38
+ */
39
+ type: SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = {
47
+ Available: 'available',
48
+ Display: 'display'
49
+ } as const;
50
+ export type SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum[keyof typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum];
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the SaveMapStoreStockMigrationRequestAssociationsInner interface.
55
+ */
56
+ export function instanceOfSaveMapStoreStockMigrationRequestAssociationsInner(value: object): value is SaveMapStoreStockMigrationRequestAssociationsInner {
57
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
58
+ if (!('storeId' in value) || value['storeId'] === undefined) return false;
59
+ if (!('type' in value) || value['type'] === undefined) return false;
60
+ return true;
61
+ }
62
+
63
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner {
64
+ return SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequestAssociationsInner {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'locationId': json['location_id'],
74
+ 'storeId': json['store_id'],
75
+ 'type': json['type'],
76
+ };
77
+ }
78
+
79
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerToJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner {
80
+ return SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(json, false);
81
+ }
82
+
83
+ export function SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(value?: SaveMapStoreStockMigrationRequestAssociationsInner | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'location_id': value['locationId'],
91
+ 'store_id': value['storeId'],
92
+ 'type': value['type'],
93
+ };
94
+ }
95
+
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
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'],
@@ -286,6 +286,8 @@ export * from './RedirectListResource';
286
286
  export * from './RedirectListResourceArrayResponse';
287
287
  export * from './SEOResource';
288
288
  export * from './SEOResourceArrayResponse';
289
+ export * from './SaveMapStoreStockMigrationRequest';
290
+ export * from './SaveMapStoreStockMigrationRequestAssociationsInner';
289
291
  export * from './ShowAssetsProductChildRequest';
290
292
  export * from './ShowAttributesProductChildRequest';
291
293
  export * from './SiteConfigResource';