@digital8/lighting-illusions-ts-sdk 0.0.1100 → 0.0.1102
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 +38 -4
- package/README.md +31 -4
- package/dist/apis/StoreApi.d.ts +158 -0
- package/dist/apis/StoreApi.js +621 -0
- package/dist/apis/SupplierApi.d.ts +33 -1
- package/dist/apis/SupplierApi.js +122 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +74 -0
- package/dist/models/AddressResource.js +79 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/AttachStoresSupplierRequest.js +51 -0
- package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/AttachSuppliersStoreRequest.js +51 -0
- package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/DetachStoresSupplierRequest.js +51 -0
- package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/DetachSuppliersStoreRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllStoreRequest.d.ts +87 -0
- package/dist/models/GetAllStoreRequest.js +79 -0
- package/dist/models/ProductChildOverlayRelationResource.d.ts +0 -6
- package/dist/models/ProductChildOverlayRelationResource.js +0 -4
- package/dist/models/ProductChildResource.d.ts +0 -19
- package/dist/models/ProductChildResource.js +0 -13
- package/dist/models/StoreListResource.d.ts +93 -0
- package/dist/models/StoreListResource.js +84 -0
- package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreListResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
- package/dist/models/StoreProductCategoryRequest.js +6 -2
- package/dist/models/StoreResource.d.ts +117 -0
- package/dist/models/StoreResource.js +100 -0
- package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +56 -0
- package/dist/models/StoreSpecialDateResource.js +65 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
- package/dist/models/StoreStoreRequest.d.ts +177 -0
- package/dist/models/StoreStoreRequest.js +124 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +50 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +50 -0
- package/dist/models/StoreStoreSpecialDateRequest.js +57 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +177 -0
- package/dist/models/UpdateStoreRequest.js +124 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +18 -2
- package/dist/models/index.js +18 -2
- package/docs/AddressResource.md +48 -0
- package/docs/{ProductClassResourceArrayResponse.md → AddressResourceArrayResponse.md} +5 -5
- package/docs/{ProductClassResource.md → AttachStoresSupplierRequest.md} +6 -10
- package/docs/AttachSuppliersStoreRequest.md +34 -0
- package/docs/DetachStoresSupplierRequest.md +34 -0
- package/docs/DetachSuppliersStoreRequest.md +34 -0
- package/docs/GetAllStoreRequest.md +46 -0
- package/docs/ProductChildOverlayRelationResource.md +0 -2
- package/docs/ProductChildResource.md +0 -6
- package/docs/StoreApi.md +617 -0
- package/docs/StoreListResource.md +54 -0
- package/docs/StoreListResourceArrayResponse.md +34 -0
- package/docs/StoreResource.md +62 -0
- package/docs/StoreResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateResource.md +42 -0
- package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
- package/docs/StoreStoreRequest.md +82 -0
- package/docs/StoreStoreRequestSpecialDatesInner.md +40 -0
- package/docs/StoreStoreSpecialDateRequest.md +40 -0
- package/docs/SupplierApi.md +138 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdateStoreRequest.md +82 -0
- package/docs/UpdateStoreRequestSpecialDatesInner.md +42 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +513 -0
- package/src/apis/SupplierApi.ts +112 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +129 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- package/src/models/AttachStoresSupplierRequest.ts +66 -0
- package/src/models/AttachSuppliersStoreRequest.ts +66 -0
- package/src/models/DetachStoresSupplierRequest.ts +66 -0
- package/src/models/DetachSuppliersStoreRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllStoreRequest.ts +136 -0
- package/src/models/ProductChildOverlayRelationResource.ts +0 -9
- package/src/models/ProductChildResource.ts +0 -34
- package/src/models/StoreListResource.ts +160 -0
- package/src/models/StoreListResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequest.ts +6 -4
- package/src/models/StoreResource.ts +196 -0
- package/src/models/StoreResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +101 -0
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
- package/src/models/StoreStoreRequest.ts +278 -0
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +90 -0
- package/src/models/StoreStoreSpecialDateRequest.ts +90 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdateStoreRequest.ts +278 -0
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +18 -2
- package/dist/models/ProductClassResource.d.ts +0 -44
- package/dist/models/ProductClassResource.js +0 -57
- package/dist/models/ProductClassResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassResourceArrayResponse.js +0 -50
- package/src/models/ProductClassResource.ts +0 -83
- package/src/models/ProductClassResourceArrayResponse.ts +0 -73
|
@@ -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.instanceOfDetachSuppliersStoreRequest = instanceOfDetachSuppliersStoreRequest;
|
|
17
|
+
exports.DetachSuppliersStoreRequestFromJSON = DetachSuppliersStoreRequestFromJSON;
|
|
18
|
+
exports.DetachSuppliersStoreRequestFromJSONTyped = DetachSuppliersStoreRequestFromJSONTyped;
|
|
19
|
+
exports.DetachSuppliersStoreRequestToJSON = DetachSuppliersStoreRequestToJSON;
|
|
20
|
+
exports.DetachSuppliersStoreRequestToJSONTyped = DetachSuppliersStoreRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DetachSuppliersStoreRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDetachSuppliersStoreRequest(value) {
|
|
25
|
+
if (!('supplierIds' in value) || value['supplierIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DetachSuppliersStoreRequestFromJSON(json) {
|
|
30
|
+
return DetachSuppliersStoreRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DetachSuppliersStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'supplierIds': json['supplier_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DetachSuppliersStoreRequestToJSON(json) {
|
|
41
|
+
return DetachSuppliersStoreRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DetachSuppliersStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'supplier_ids': value['supplierIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -37,6 +37,8 @@ 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;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,87 @@
|
|
|
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 GetAllStoreRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAllStoreRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAllStoreRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetAllStoreRequestSortByEnum}
|
|
27
|
+
* @memberof GetAllStoreRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: GetAllStoreRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetAllStoreRequestSortDirectionEnum}
|
|
33
|
+
* @memberof GetAllStoreRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: GetAllStoreRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetAllStoreRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetAllStoreRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetAllStoreRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof GetAllStoreRequest
|
|
58
|
+
*/
|
|
59
|
+
siteId?: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const GetAllStoreRequestSortByEnum: {
|
|
65
|
+
readonly Id: "id";
|
|
66
|
+
readonly SiteId: "site_id";
|
|
67
|
+
readonly Name: "name";
|
|
68
|
+
readonly CreatedAt: "created_at";
|
|
69
|
+
readonly UpdatedAt: "updated_at";
|
|
70
|
+
};
|
|
71
|
+
export type GetAllStoreRequestSortByEnum = typeof GetAllStoreRequestSortByEnum[keyof typeof GetAllStoreRequestSortByEnum];
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export declare const GetAllStoreRequestSortDirectionEnum: {
|
|
76
|
+
readonly Asc: "asc";
|
|
77
|
+
readonly Desc: "desc";
|
|
78
|
+
};
|
|
79
|
+
export type GetAllStoreRequestSortDirectionEnum = typeof GetAllStoreRequestSortDirectionEnum[keyof typeof GetAllStoreRequestSortDirectionEnum];
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the GetAllStoreRequest interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfGetAllStoreRequest(value: object): value is GetAllStoreRequest;
|
|
84
|
+
export declare function GetAllStoreRequestFromJSON(json: any): GetAllStoreRequest;
|
|
85
|
+
export declare function GetAllStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllStoreRequest;
|
|
86
|
+
export declare function GetAllStoreRequestToJSON(json: any): GetAllStoreRequest;
|
|
87
|
+
export declare function GetAllStoreRequestToJSONTyped(value?: GetAllStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.GetAllStoreRequestSortDirectionEnum = exports.GetAllStoreRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfGetAllStoreRequest = instanceOfGetAllStoreRequest;
|
|
18
|
+
exports.GetAllStoreRequestFromJSON = GetAllStoreRequestFromJSON;
|
|
19
|
+
exports.GetAllStoreRequestFromJSONTyped = GetAllStoreRequestFromJSONTyped;
|
|
20
|
+
exports.GetAllStoreRequestToJSON = GetAllStoreRequestToJSON;
|
|
21
|
+
exports.GetAllStoreRequestToJSONTyped = GetAllStoreRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetAllStoreRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
SiteId: 'site_id',
|
|
28
|
+
Name: 'name',
|
|
29
|
+
CreatedAt: 'created_at',
|
|
30
|
+
UpdatedAt: 'updated_at'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.GetAllStoreRequestSortDirectionEnum = {
|
|
36
|
+
Asc: 'asc',
|
|
37
|
+
Desc: 'desc'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GetAllStoreRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfGetAllStoreRequest(value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function GetAllStoreRequestFromJSON(json) {
|
|
46
|
+
return GetAllStoreRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetAllStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
54
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
55
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
56
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
57
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
58
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
59
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function GetAllStoreRequestToJSON(json) {
|
|
63
|
+
return GetAllStoreRequestToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function GetAllStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'search': value['search'],
|
|
72
|
+
'sortBy': value['sortBy'],
|
|
73
|
+
'sortDirection': value['sortDirection'],
|
|
74
|
+
'related_id': value['relatedId'],
|
|
75
|
+
'related_type': value['relatedType'],
|
|
76
|
+
'includes_relations': value['includesRelations'],
|
|
77
|
+
'site_id': value['siteId'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -22,12 +22,6 @@ export interface ProductChildOverlayRelationResource {
|
|
|
22
22
|
* @memberof ProductChildOverlayRelationResource
|
|
23
23
|
*/
|
|
24
24
|
id: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ProductChildOverlayRelationResource
|
|
29
|
-
*/
|
|
30
|
-
parentId: number;
|
|
31
25
|
/**
|
|
32
26
|
*
|
|
33
27
|
* @type {string}
|
|
@@ -25,8 +25,6 @@ var AssetResource_1 = require("./AssetResource");
|
|
|
25
25
|
function instanceOfProductChildOverlayRelationResource(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('parentName' in value) || value['parentName'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -52,7 +50,6 @@ function ProductChildOverlayRelationResourceFromJSONTyped(json, ignoreDiscrimina
|
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
'id': json['id'],
|
|
55
|
-
'parentId': json['parentId'],
|
|
56
53
|
'parentName': json['parentName'],
|
|
57
54
|
'name': json['name'],
|
|
58
55
|
'modelNumber': json['modelNumber'],
|
|
@@ -73,7 +70,6 @@ function ProductChildOverlayRelationResourceToJSONTyped(value, ignoreDiscriminat
|
|
|
73
70
|
}
|
|
74
71
|
return {
|
|
75
72
|
'id': value['id'],
|
|
76
|
-
'parentId': value['parentId'],
|
|
77
73
|
'parentName': value['parentName'],
|
|
78
74
|
'name': value['name'],
|
|
79
75
|
'modelNumber': value['modelNumber'],
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ProductChildSiteDetailResource } from './ProductChildSiteDetailResource';
|
|
13
13
|
import type { AssetResource } from './AssetResource';
|
|
14
|
-
import type { ProductClassResource } from './ProductClassResource';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -186,24 +185,6 @@ export interface ProductChildResource {
|
|
|
186
185
|
* @memberof ProductChildResource
|
|
187
186
|
*/
|
|
188
187
|
attributes: object;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {Array<ProductClassResource>}
|
|
192
|
-
* @memberof ProductChildResource
|
|
193
|
-
*/
|
|
194
|
-
productClasses: Array<ProductClassResource> | null;
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
* @type {string}
|
|
198
|
-
* @memberof ProductChildResource
|
|
199
|
-
*/
|
|
200
|
-
productClassString: string;
|
|
201
|
-
/**
|
|
202
|
-
*
|
|
203
|
-
* @type {boolean}
|
|
204
|
-
* @memberof ProductChildResource
|
|
205
|
-
*/
|
|
206
|
-
isPrivilegedAdmin: boolean;
|
|
207
188
|
}
|
|
208
189
|
/**
|
|
209
190
|
* Check if a given object implements the ProductChildResource interface.
|
|
@@ -20,7 +20,6 @@ exports.ProductChildResourceToJSON = ProductChildResourceToJSON;
|
|
|
20
20
|
exports.ProductChildResourceToJSONTyped = ProductChildResourceToJSONTyped;
|
|
21
21
|
var ProductChildSiteDetailResource_1 = require("./ProductChildSiteDetailResource");
|
|
22
22
|
var AssetResource_1 = require("./AssetResource");
|
|
23
|
-
var ProductClassResource_1 = require("./ProductClassResource");
|
|
24
23
|
/**
|
|
25
24
|
* Check if a given object implements the ProductChildResource interface.
|
|
26
25
|
*/
|
|
@@ -75,12 +74,6 @@ function instanceOfProductChildResource(value) {
|
|
|
75
74
|
return false;
|
|
76
75
|
if (!('attributes' in value) || value['attributes'] === undefined)
|
|
77
76
|
return false;
|
|
78
|
-
if (!('productClasses' in value) || value['productClasses'] === undefined)
|
|
79
|
-
return false;
|
|
80
|
-
if (!('productClassString' in value) || value['productClassString'] === undefined)
|
|
81
|
-
return false;
|
|
82
|
-
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
|
|
83
|
-
return false;
|
|
84
77
|
return true;
|
|
85
78
|
}
|
|
86
79
|
function ProductChildResourceFromJSON(json) {
|
|
@@ -119,9 +112,6 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
119
112
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetResource_1.AssetResourceFromJSON)),
|
|
120
113
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
121
114
|
'attributes': json['attributes'],
|
|
122
|
-
'productClasses': (json['productClasses'] == null ? null : json['productClasses'].map(ProductClassResource_1.ProductClassResourceFromJSON)),
|
|
123
|
-
'productClassString': json['productClassString'],
|
|
124
|
-
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
125
115
|
};
|
|
126
116
|
}
|
|
127
117
|
function ProductChildResourceToJSON(json) {
|
|
@@ -161,8 +151,5 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
161
151
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetResource_1.AssetResourceToJSON)),
|
|
162
152
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
163
153
|
'attributes': value['attributes'],
|
|
164
|
-
'productClasses': (value['productClasses'] == null ? null : value['productClasses'].map(ProductClassResource_1.ProductClassResourceToJSON)),
|
|
165
|
-
'productClassString': value['productClassString'],
|
|
166
|
-
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
167
154
|
};
|
|
168
155
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreListResource
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreListResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof StoreListResource
|
|
23
|
+
*/
|
|
24
|
+
id?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SiteLiteResource}
|
|
28
|
+
* @memberof StoreListResource
|
|
29
|
+
*/
|
|
30
|
+
site: SiteLiteResource | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StoreListResource
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StoreListResource
|
|
41
|
+
*/
|
|
42
|
+
phone: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof StoreListResource
|
|
47
|
+
*/
|
|
48
|
+
longitude: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof StoreListResource
|
|
53
|
+
*/
|
|
54
|
+
latitude: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof StoreListResource
|
|
59
|
+
*/
|
|
60
|
+
tagLine: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof StoreListResource
|
|
65
|
+
*/
|
|
66
|
+
email: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof StoreListResource
|
|
71
|
+
*/
|
|
72
|
+
openingHours?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof StoreListResource
|
|
77
|
+
*/
|
|
78
|
+
createdAt?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof StoreListResource
|
|
83
|
+
*/
|
|
84
|
+
updatedAt?: string | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the StoreListResource interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfStoreListResource(value: object): value is StoreListResource;
|
|
90
|
+
export declare function StoreListResourceFromJSON(json: any): StoreListResource;
|
|
91
|
+
export declare function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreListResource;
|
|
92
|
+
export declare function StoreListResourceToJSON(json: any): StoreListResource;
|
|
93
|
+
export declare function StoreListResourceToJSONTyped(value?: StoreListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.instanceOfStoreListResource = instanceOfStoreListResource;
|
|
17
|
+
exports.StoreListResourceFromJSON = StoreListResourceFromJSON;
|
|
18
|
+
exports.StoreListResourceFromJSONTyped = StoreListResourceFromJSONTyped;
|
|
19
|
+
exports.StoreListResourceToJSON = StoreListResourceToJSON;
|
|
20
|
+
exports.StoreListResourceToJSONTyped = StoreListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreListResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreListResource(value) {
|
|
26
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function StoreListResourceFromJSON(json) {
|
|
43
|
+
return StoreListResourceFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
51
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'phone': json['phone'],
|
|
54
|
+
'longitude': json['longitude'],
|
|
55
|
+
'latitude': json['latitude'],
|
|
56
|
+
'tagLine': json['tag_line'],
|
|
57
|
+
'email': json['email'],
|
|
58
|
+
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
59
|
+
'createdAt': json['created_at'] == null ? undefined : json['created_at'],
|
|
60
|
+
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function StoreListResourceToJSON(json) {
|
|
64
|
+
return StoreListResourceToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function StoreListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'phone': value['phone'],
|
|
76
|
+
'longitude': value['longitude'],
|
|
77
|
+
'latitude': value['latitude'],
|
|
78
|
+
'tag_line': value['tagLine'],
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'opening_hours': value['openingHours'],
|
|
81
|
+
'created_at': value['createdAt'],
|
|
82
|
+
'updated_at': value['updatedAt'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -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 { StoreListResource } from './StoreListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StoreListResource>}
|
|
22
|
+
* @memberof StoreListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<StoreListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StoreListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfStoreListResourceArrayResponse(value: object): value is StoreListResourceArrayResponse;
|
|
30
|
+
export declare function StoreListResourceArrayResponseFromJSON(json: any): StoreListResourceArrayResponse;
|
|
31
|
+
export declare function StoreListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreListResourceArrayResponse;
|
|
32
|
+
export declare function StoreListResourceArrayResponseToJSON(json: any): StoreListResourceArrayResponse;
|
|
33
|
+
export declare function StoreListResourceArrayResponseToJSONTyped(value?: StoreListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfStoreListResourceArrayResponse = instanceOfStoreListResourceArrayResponse;
|
|
17
|
+
exports.StoreListResourceArrayResponseFromJSON = StoreListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.StoreListResourceArrayResponseFromJSONTyped = StoreListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.StoreListResourceArrayResponseToJSON = StoreListResourceArrayResponseToJSON;
|
|
20
|
+
exports.StoreListResourceArrayResponseToJSONTyped = StoreListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var StoreListResource_1 = require("./StoreListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function StoreListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return StoreListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function StoreListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(StoreListResource_1.StoreListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function StoreListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return StoreListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(StoreListResource_1.StoreListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -89,13 +89,13 @@ export interface StoreProductCategoryRequest {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreProductCategoryRequest
|
|
91
91
|
*/
|
|
92
|
-
mimeType
|
|
92
|
+
mimeType: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {number}
|
|
96
96
|
* @memberof StoreProductCategoryRequest
|
|
97
97
|
*/
|
|
98
|
-
fileId
|
|
98
|
+
fileId: number;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
101
|
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
@@ -41,6 +41,10 @@ function instanceOfStoreProductCategoryRequest(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
43
43
|
return false;
|
|
44
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
47
|
+
return false;
|
|
44
48
|
return true;
|
|
45
49
|
}
|
|
46
50
|
function StoreProductCategoryRequestFromJSON(json) {
|
|
@@ -62,8 +66,8 @@ function StoreProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
66
|
'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
|
|
63
67
|
'automationRules': json['automation_rules'] == null ? undefined : (json['automation_rules'].map(StoreProductCategoryRequestAutomationRulesInner_1.StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
|
|
64
68
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
65
|
-
'mimeType': json['mime_type']
|
|
66
|
-
'fileId': json['file_id']
|
|
69
|
+
'mimeType': json['mime_type'],
|
|
70
|
+
'fileId': json['file_id'],
|
|
67
71
|
'seo': json['seo'] == null ? undefined : (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
68
72
|
'descriptions': json['descriptions'] == null ? undefined : (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
69
73
|
};
|