@digital8/lighting-illusions-ts-sdk 0.0.1622 → 0.0.1624
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 +2 -0
- package/README.md +3 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/ProductChildStoreStockType.d.ts +25 -0
- package/dist/models/ProductChildStoreStockType.js +51 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +14 -2
- package/dist/models/StoreResource.js +8 -4
- 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 +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ProductChildStoreStockType.md +32 -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/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductChildStoreStockType.ts +53 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +21 -5
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -246,6 +246,7 @@ docs/ProductChildSiteDetailLiteResource.md
|
|
|
246
246
|
docs/ProductChildSiteDetailLiteResourceArrayResponse.md
|
|
247
247
|
docs/ProductChildSiteDetailResource.md
|
|
248
248
|
docs/ProductChildSiteDetailResourceArrayResponse.md
|
|
249
|
+
docs/ProductChildStoreStockType.md
|
|
249
250
|
docs/ProductClassResource.md
|
|
250
251
|
docs/ProductClassResourceArrayResponse.md
|
|
251
252
|
docs/ProductCompareResource.md
|
|
@@ -662,6 +663,7 @@ src/models/ProductChildSiteDetailLiteResource.ts
|
|
|
662
663
|
src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
|
|
663
664
|
src/models/ProductChildSiteDetailResource.ts
|
|
664
665
|
src/models/ProductChildSiteDetailResourceArrayResponse.ts
|
|
666
|
+
src/models/ProductChildStoreStockType.ts
|
|
665
667
|
src/models/ProductClassResource.ts
|
|
666
668
|
src/models/ProductClassResourceArrayResponse.ts
|
|
667
669
|
src/models/ProductCompareResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1624
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -446,6 +446,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
446
446
|
- [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
|
|
447
447
|
- [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
|
|
448
448
|
- [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
|
|
449
|
+
- [ProductChildStoreStockType](docs/ProductChildStoreStockType.md)
|
|
449
450
|
- [ProductClassResource](docs/ProductClassResource.md)
|
|
450
451
|
- [ProductClassResourceArrayResponse](docs/ProductClassResourceArrayResponse.md)
|
|
451
452
|
- [ProductCompareResource](docs/ProductCompareResource.md)
|
|
@@ -614,7 +615,7 @@ and is automatically generated by the
|
|
|
614
615
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
615
616
|
|
|
616
617
|
- API version: `1.0.0`
|
|
617
|
-
- Package version: `0.0.
|
|
618
|
+
- Package version: `0.0.1624`
|
|
618
619
|
- Generator version: `7.21.0`
|
|
619
620
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
620
621
|
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const ProductChildStoreStockType: {
|
|
17
|
+
readonly Display: "display";
|
|
18
|
+
readonly Available: "available";
|
|
19
|
+
};
|
|
20
|
+
export type ProductChildStoreStockType = typeof ProductChildStoreStockType[keyof typeof ProductChildStoreStockType];
|
|
21
|
+
export declare function instanceOfProductChildStoreStockType(value: any): boolean;
|
|
22
|
+
export declare function ProductChildStoreStockTypeFromJSON(json: any): ProductChildStoreStockType;
|
|
23
|
+
export declare function ProductChildStoreStockTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildStoreStockType;
|
|
24
|
+
export declare function ProductChildStoreStockTypeToJSON(value?: ProductChildStoreStockType | null): any;
|
|
25
|
+
export declare function ProductChildStoreStockTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductChildStoreStockType;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ProductChildStoreStockType = void 0;
|
|
17
|
+
exports.instanceOfProductChildStoreStockType = instanceOfProductChildStoreStockType;
|
|
18
|
+
exports.ProductChildStoreStockTypeFromJSON = ProductChildStoreStockTypeFromJSON;
|
|
19
|
+
exports.ProductChildStoreStockTypeFromJSONTyped = ProductChildStoreStockTypeFromJSONTyped;
|
|
20
|
+
exports.ProductChildStoreStockTypeToJSON = ProductChildStoreStockTypeToJSON;
|
|
21
|
+
exports.ProductChildStoreStockTypeToJSONTyped = ProductChildStoreStockTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductChildStoreStockType = {
|
|
27
|
+
Display: 'display',
|
|
28
|
+
Available: 'available'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfProductChildStoreStockType(value) {
|
|
31
|
+
for (var key in exports.ProductChildStoreStockType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductChildStoreStockType, key)) {
|
|
33
|
+
if (exports.ProductChildStoreStockType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function ProductChildStoreStockTypeFromJSON(json) {
|
|
41
|
+
return ProductChildStoreStockTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ProductChildStoreStockTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function ProductChildStoreStockTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function ProductChildStoreStockTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -28,6 +28,8 @@ 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;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,19 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof StoreResource
|
|
80
|
+
*/
|
|
81
|
+
netsuiteId?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof StoreResource
|
|
86
|
+
*/
|
|
87
|
+
displayNetsuiteId?: string | null;
|
|
76
88
|
/**
|
|
77
89
|
*
|
|
78
90
|
* @type {string}
|
|
@@ -36,9 +36,9 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
44
44
|
return false;
|
|
@@ -62,9 +62,11 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'phone': json['phone'],
|
|
63
63
|
'longitude': json['longitude'],
|
|
64
64
|
'latitude': json['latitude'],
|
|
65
|
-
'tagLine': json['tag_line']
|
|
65
|
+
'tagLine': json['tag_line'],
|
|
66
66
|
'email': json['email'],
|
|
67
|
-
'website': json['website'],
|
|
67
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
68
|
+
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
69
|
+
'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
|
|
68
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
69
71
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
70
72
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -89,6 +91,8 @@ function StoreResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
91
|
'tag_line': value['tagLine'],
|
|
90
92
|
'email': value['email'],
|
|
91
93
|
'website': value['website'],
|
|
94
|
+
'netsuiteId': value['netsuiteId'],
|
|
95
|
+
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
92
96
|
'opening_hours': value['openingHours'],
|
|
93
97
|
'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceToJSON)),
|
|
94
98
|
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
@@ -71,6 +71,18 @@ export interface StoreStoreRequest {
|
|
|
71
71
|
* @memberof StoreStoreRequest
|
|
72
72
|
*/
|
|
73
73
|
openingHours?: Array<string | null>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof StoreStoreRequest
|
|
78
|
+
*/
|
|
79
|
+
netsuiteId?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof StoreStoreRequest
|
|
84
|
+
*/
|
|
85
|
+
displayNetsuiteId?: string | null;
|
|
74
86
|
/**
|
|
75
87
|
*
|
|
76
88
|
* @type {Array<number>}
|
|
@@ -55,6 +55,8 @@ function StoreStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'email': json['email'] == null ? undefined : json['email'],
|
|
56
56
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
|
+
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
59
|
+
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
58
60
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
59
61
|
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
60
62
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
@@ -78,6 +80,8 @@ function StoreStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
80
|
'email': value['email'],
|
|
79
81
|
'website': value['website'],
|
|
80
82
|
'opening_hours': value['openingHours'],
|
|
83
|
+
'netsuite_id': value['netsuiteId'],
|
|
84
|
+
'display_netsuite_id': value['displayNetsuiteId'],
|
|
81
85
|
'supplier_ids': value['supplierIds'],
|
|
82
86
|
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
83
87
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
|
@@ -71,6 +71,18 @@ export interface UpdateStoreRequest {
|
|
|
71
71
|
* @memberof UpdateStoreRequest
|
|
72
72
|
*/
|
|
73
73
|
openingHours?: Array<string | null>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof UpdateStoreRequest
|
|
78
|
+
*/
|
|
79
|
+
netsuiteId?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof UpdateStoreRequest
|
|
84
|
+
*/
|
|
85
|
+
displayNetsuiteId?: string | null;
|
|
74
86
|
/**
|
|
75
87
|
*
|
|
76
88
|
* @type {Array<number>}
|
|
@@ -55,6 +55,8 @@ function UpdateStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'email': json['email'] == null ? undefined : json['email'],
|
|
56
56
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
|
+
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
59
|
+
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
58
60
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
59
61
|
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
60
62
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
@@ -78,6 +80,8 @@ function UpdateStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
80
|
'email': value['email'],
|
|
79
81
|
'website': value['website'],
|
|
80
82
|
'opening_hours': value['openingHours'],
|
|
83
|
+
'netsuite_id': value['netsuiteId'],
|
|
84
|
+
'display_netsuite_id': value['displayNetsuiteId'],
|
|
81
85
|
'supplier_ids': value['supplierIds'],
|
|
82
86
|
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
83
87
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
231
231
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
232
232
|
export * from './ProductChildSiteDetailResource';
|
|
233
233
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
234
|
+
export * from './ProductChildStoreStockType';
|
|
234
235
|
export * from './ProductClassResource';
|
|
235
236
|
export * from './ProductClassResourceArrayResponse';
|
|
236
237
|
export * from './ProductCompareResource';
|
package/dist/models/index.js
CHANGED
|
@@ -249,6 +249,7 @@ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
|
|
|
249
249
|
__exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
|
|
250
250
|
__exportStar(require("./ProductChildSiteDetailResource"), exports);
|
|
251
251
|
__exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
|
|
252
|
+
__exportStar(require("./ProductChildStoreStockType"), exports);
|
|
252
253
|
__exportStar(require("./ProductClassResource"), exports);
|
|
253
254
|
__exportStar(require("./ProductClassResourceArrayResponse"), exports);
|
|
254
255
|
__exportStar(require("./ProductCompareResource"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductChildStoreStockType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ProductChildStoreStockType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ProductChildStoreStockType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildStoreStockType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
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` | string
|
|
19
|
+
`displayNetsuiteId` | string
|
|
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` | string
|
|
19
|
+
`displayNetsuiteId` | string
|
|
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` | string
|
|
19
|
+
`displayNetsuiteId` | string
|
|
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
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -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
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,19 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof StoreResource
|
|
109
|
+
*/
|
|
110
|
+
netsuiteId?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof StoreResource
|
|
115
|
+
*/
|
|
116
|
+
displayNetsuiteId?: string | null;
|
|
105
117
|
/**
|
|
106
118
|
*
|
|
107
119
|
* @type {string}
|
|
@@ -137,8 +149,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
137
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
138
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
140
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
141
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
142
154
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
143
155
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
144
156
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -161,9 +173,11 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
161
173
|
'phone': json['phone'],
|
|
162
174
|
'longitude': json['longitude'],
|
|
163
175
|
'latitude': json['latitude'],
|
|
164
|
-
'tagLine': json['tag_line']
|
|
176
|
+
'tagLine': json['tag_line'],
|
|
165
177
|
'email': json['email'],
|
|
166
|
-
'website': json['website'],
|
|
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 {string}
|
|
94
|
+
* @memberof StoreStoreRequest
|
|
95
|
+
*/
|
|
96
|
+
netsuiteId?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof StoreStoreRequest
|
|
101
|
+
*/
|
|
102
|
+
displayNetsuiteId?: string | 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 {string}
|
|
94
|
+
* @memberof UpdateStoreRequest
|
|
95
|
+
*/
|
|
96
|
+
netsuiteId?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof UpdateStoreRequest
|
|
101
|
+
*/
|
|
102
|
+
displayNetsuiteId?: string | 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
|
@@ -233,6 +233,7 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
233
233
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
234
234
|
export * from './ProductChildSiteDetailResource';
|
|
235
235
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
236
|
+
export * from './ProductChildStoreStockType';
|
|
236
237
|
export * from './ProductClassResource';
|
|
237
238
|
export * from './ProductClassResourceArrayResponse';
|
|
238
239
|
export * from './ProductCompareResource';
|