@digital8/lighting-illusions-ts-sdk 0.0.1583 → 0.0.1584
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 +18 -40
- package/README.md +11 -26
- package/dist/apis/RedirectApi.d.ts +33 -0
- package/dist/apis/RedirectApi.js +138 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/IndexRedirectRequest.d.ts +124 -0
- package/dist/models/IndexRedirectRequest.js +95 -0
- package/dist/models/ModelAttributeFrontendResource.d.ts +38 -0
- package/dist/models/ModelAttributeFrontendResource.js +55 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedRedirectListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRedirectListResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/RedirectFrontendResource.d.ts +62 -0
- package/dist/models/RedirectFrontendResource.js +71 -0
- package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/RedirectFrontendResourceArrayResponse.js +50 -0
- package/dist/models/RedirectListResource.d.ts +69 -0
- package/dist/models/RedirectListResource.js +76 -0
- package/dist/models/RedirectListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RedirectListResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/index.d.ts +8 -19
- package/dist/models/index.js +8 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexRedirectRequest.md} +12 -8
- package/docs/{ProductRegistrationAssetType.md → ModelAttributeFrontendResource.md} +8 -4
- package/docs/{ProductRegistrationLiteResourceArrayResponse.md → ModelAttributeFrontendResourceArrayResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedRedirectListResourceResponse.md} +5 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/RedirectApi.md +74 -0
- package/docs/{ProductRegistrationAssetResource.md → RedirectFrontendResource.md} +14 -8
- package/docs/{ProductRegistrationResourceArrayResponse.md → RedirectFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationCustomerResource.md → RedirectListResource.md} +16 -14
- package/docs/{ProductRegistrationLiteResource.md → RedirectListResourceArrayResponse.md} +6 -8
- package/package.json +1 -1
- package/src/apis/RedirectApi.ts +77 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/IndexRedirectRequest.ts +184 -0
- package/src/models/ModelAttributeFrontendResource.ts +75 -0
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedRedirectListResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductRangeFrontendResource.ts +16 -0
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/RedirectFrontendResource.ts +111 -0
- package/src/models/RedirectFrontendResourceArrayResponse.ts +73 -0
- package/src/models/RedirectListResource.ts +128 -0
- package/src/models/RedirectListResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/index.ts +8 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/apis/ProductRegistrationApi.js +0 -377
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/ListAssetsProductRegistrationRequest.js +0 -83
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationListResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,124 @@
|
|
|
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 IndexRedirectRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexRedirectRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexRedirectRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexRedirectRequestSortByEnum}
|
|
27
|
+
* @memberof IndexRedirectRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexRedirectRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexRedirectRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexRedirectRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexRedirectRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexRedirectRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexRedirectRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexRedirectRequest
|
|
52
|
+
*/
|
|
53
|
+
siteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IndexRedirectRequest
|
|
58
|
+
*/
|
|
59
|
+
redirectableType?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof IndexRedirectRequest
|
|
64
|
+
*/
|
|
65
|
+
relatedId?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {IndexRedirectRequestRelatedTypeEnum}
|
|
69
|
+
* @memberof IndexRedirectRequest
|
|
70
|
+
*/
|
|
71
|
+
relatedType?: IndexRedirectRequestRelatedTypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof IndexRedirectRequest
|
|
76
|
+
*/
|
|
77
|
+
includesRelations?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof IndexRedirectRequest
|
|
82
|
+
*/
|
|
83
|
+
productChildId?: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof IndexRedirectRequest
|
|
88
|
+
*/
|
|
89
|
+
productRangeId?: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const IndexRedirectRequestSortByEnum: {
|
|
95
|
+
readonly Id: "id";
|
|
96
|
+
};
|
|
97
|
+
export type IndexRedirectRequestSortByEnum = typeof IndexRedirectRequestSortByEnum[keyof typeof IndexRedirectRequestSortByEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const IndexRedirectRequestSortDirectionEnum: {
|
|
102
|
+
readonly Asc: "asc";
|
|
103
|
+
readonly Desc: "desc";
|
|
104
|
+
};
|
|
105
|
+
export type IndexRedirectRequestSortDirectionEnum = typeof IndexRedirectRequestSortDirectionEnum[keyof typeof IndexRedirectRequestSortDirectionEnum];
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export declare const IndexRedirectRequestRelatedTypeEnum: {
|
|
110
|
+
readonly ProductChildSiteDetail: "productChildSiteDetail";
|
|
111
|
+
readonly ProductRangeSiteDetail: "productRangeSiteDetail";
|
|
112
|
+
readonly ProductCategory: "productCategory";
|
|
113
|
+
readonly Supplier: "supplier";
|
|
114
|
+
readonly Tag: "tag";
|
|
115
|
+
};
|
|
116
|
+
export type IndexRedirectRequestRelatedTypeEnum = typeof IndexRedirectRequestRelatedTypeEnum[keyof typeof IndexRedirectRequestRelatedTypeEnum];
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the IndexRedirectRequest interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfIndexRedirectRequest(value: object): value is IndexRedirectRequest;
|
|
121
|
+
export declare function IndexRedirectRequestFromJSON(json: any): IndexRedirectRequest;
|
|
122
|
+
export declare function IndexRedirectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexRedirectRequest;
|
|
123
|
+
export declare function IndexRedirectRequestToJSON(json: any): IndexRedirectRequest;
|
|
124
|
+
export declare function IndexRedirectRequestToJSONTyped(value?: IndexRedirectRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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.IndexRedirectRequestRelatedTypeEnum = exports.IndexRedirectRequestSortDirectionEnum = exports.IndexRedirectRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexRedirectRequest = instanceOfIndexRedirectRequest;
|
|
18
|
+
exports.IndexRedirectRequestFromJSON = IndexRedirectRequestFromJSON;
|
|
19
|
+
exports.IndexRedirectRequestFromJSONTyped = IndexRedirectRequestFromJSONTyped;
|
|
20
|
+
exports.IndexRedirectRequestToJSON = IndexRedirectRequestToJSON;
|
|
21
|
+
exports.IndexRedirectRequestToJSONTyped = IndexRedirectRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexRedirectRequestSortByEnum = {
|
|
26
|
+
Id: 'id'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.IndexRedirectRequestSortDirectionEnum = {
|
|
32
|
+
Asc: 'asc',
|
|
33
|
+
Desc: 'desc'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.IndexRedirectRequestRelatedTypeEnum = {
|
|
39
|
+
ProductChildSiteDetail: 'productChildSiteDetail',
|
|
40
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
41
|
+
ProductCategory: 'productCategory',
|
|
42
|
+
Supplier: 'supplier',
|
|
43
|
+
Tag: 'tag'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the IndexRedirectRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfIndexRedirectRequest(value) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function IndexRedirectRequestFromJSON(json) {
|
|
52
|
+
return IndexRedirectRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function IndexRedirectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
60
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
61
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
62
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
63
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
65
|
+
'redirectableType': json['redirectable_type'] == null ? undefined : json['redirectable_type'],
|
|
66
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
+
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
70
|
+
'productRangeId': json['product_range_id'] == null ? undefined : json['product_range_id'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function IndexRedirectRequestToJSON(json) {
|
|
74
|
+
return IndexRedirectRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function IndexRedirectRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
77
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'search': value['search'],
|
|
83
|
+
'sortBy': value['sortBy'],
|
|
84
|
+
'sortDirection': value['sortDirection'],
|
|
85
|
+
'per_page': value['perPage'],
|
|
86
|
+
'page': value['page'],
|
|
87
|
+
'site_id': value['siteId'],
|
|
88
|
+
'redirectable_type': value['redirectableType'],
|
|
89
|
+
'related_id': value['relatedId'],
|
|
90
|
+
'related_type': value['relatedType'],
|
|
91
|
+
'includes_relations': value['includesRelations'],
|
|
92
|
+
'product_child_id': value['productChildId'],
|
|
93
|
+
'product_range_id': value['productRangeId'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ModelAttributeFrontendResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelAttributeFrontendResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelAttributeFrontendResource
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelAttributeFrontendResource
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ModelAttributeFrontendResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfModelAttributeFrontendResource(value: object): value is ModelAttributeFrontendResource;
|
|
35
|
+
export declare function ModelAttributeFrontendResourceFromJSON(json: any): ModelAttributeFrontendResource;
|
|
36
|
+
export declare function ModelAttributeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResource;
|
|
37
|
+
export declare function ModelAttributeFrontendResourceToJSON(json: any): ModelAttributeFrontendResource;
|
|
38
|
+
export declare function ModelAttributeFrontendResourceToJSONTyped(value?: ModelAttributeFrontendResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfModelAttributeFrontendResource = instanceOfModelAttributeFrontendResource;
|
|
17
|
+
exports.ModelAttributeFrontendResourceFromJSON = ModelAttributeFrontendResourceFromJSON;
|
|
18
|
+
exports.ModelAttributeFrontendResourceFromJSONTyped = ModelAttributeFrontendResourceFromJSONTyped;
|
|
19
|
+
exports.ModelAttributeFrontendResourceToJSON = ModelAttributeFrontendResourceToJSON;
|
|
20
|
+
exports.ModelAttributeFrontendResourceToJSONTyped = ModelAttributeFrontendResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelAttributeFrontendResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelAttributeFrontendResource(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ModelAttributeFrontendResourceFromJSON(json) {
|
|
32
|
+
return ModelAttributeFrontendResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ModelAttributeFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'value': json['value'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ModelAttributeFrontendResourceToJSON(json) {
|
|
44
|
+
return ModelAttributeFrontendResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ModelAttributeFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'value': value['value'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ModelAttributeFrontendResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ModelAttributeFrontendResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
22
|
+
* @memberof ModelAttributeFrontendResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ModelAttributeFrontendResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ModelAttributeFrontendResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfModelAttributeFrontendResourceArrayResponse(value: object): value is ModelAttributeFrontendResourceArrayResponse;
|
|
30
|
+
export declare function ModelAttributeFrontendResourceArrayResponseFromJSON(json: any): ModelAttributeFrontendResourceArrayResponse;
|
|
31
|
+
export declare function ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAttributeFrontendResourceArrayResponse;
|
|
32
|
+
export declare function ModelAttributeFrontendResourceArrayResponseToJSON(json: any): ModelAttributeFrontendResourceArrayResponse;
|
|
33
|
+
export declare function ModelAttributeFrontendResourceArrayResponseToJSONTyped(value?: ModelAttributeFrontendResourceArrayResponse | 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.instanceOfModelAttributeFrontendResourceArrayResponse = instanceOfModelAttributeFrontendResourceArrayResponse;
|
|
17
|
+
exports.ModelAttributeFrontendResourceArrayResponseFromJSON = ModelAttributeFrontendResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ModelAttributeFrontendResourceArrayResponseFromJSONTyped = ModelAttributeFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ModelAttributeFrontendResourceArrayResponseToJSON = ModelAttributeFrontendResourceArrayResponseToJSON;
|
|
20
|
+
exports.ModelAttributeFrontendResourceArrayResponseToJSONTyped = ModelAttributeFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ModelAttributeFrontendResource_1 = require("./ModelAttributeFrontendResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ModelAttributeFrontendResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfModelAttributeFrontendResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ModelAttributeFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ModelAttributeFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ModelAttributeFrontendResource_1.ModelAttributeFrontendResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ModelAttributeFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ModelAttributeFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ModelAttributeFrontendResourceArrayResponseToJSONTyped(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(ModelAttributeFrontendResource_1.ModelAttributeFrontendResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { RedirectListResource } from './RedirectListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedRedirectListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedRedirectListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<RedirectListResource>}
|
|
23
|
+
* @memberof PaginatedRedirectListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<RedirectListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedRedirectListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedRedirectListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedRedirectListResourceResponse(value: object): value is PaginatedRedirectListResourceResponse;
|
|
37
|
+
export declare function PaginatedRedirectListResourceResponseFromJSON(json: any): PaginatedRedirectListResourceResponse;
|
|
38
|
+
export declare function PaginatedRedirectListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRedirectListResourceResponse;
|
|
39
|
+
export declare function PaginatedRedirectListResourceResponseToJSON(json: any): PaginatedRedirectListResourceResponse;
|
|
40
|
+
export declare function PaginatedRedirectListResourceResponseToJSONTyped(value?: PaginatedRedirectListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedRedirectListResourceResponse = instanceOfPaginatedRedirectListResourceResponse;
|
|
17
|
+
exports.PaginatedRedirectListResourceResponseFromJSON = PaginatedRedirectListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedRedirectListResourceResponseFromJSONTyped = PaginatedRedirectListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedRedirectListResourceResponseToJSON = PaginatedRedirectListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedRedirectListResourceResponseToJSONTyped = PaginatedRedirectListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var RedirectListResource_1 = require("./RedirectListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedRedirectListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedRedirectListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedRedirectListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedRedirectListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedRedirectListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(RedirectListResource_1.RedirectListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedRedirectListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedRedirectListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedRedirectListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(RedirectListResource_1.RedirectListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -65,12 +65,6 @@ export interface ProductChildListResource {
|
|
|
65
65
|
* @memberof ProductChildListResource
|
|
66
66
|
*/
|
|
67
67
|
displayInSocialFeed: boolean;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof ProductChildListResource
|
|
72
|
-
*/
|
|
73
|
-
quantity?: string | null;
|
|
74
68
|
/**
|
|
75
69
|
*
|
|
76
70
|
* @type {number}
|
|
@@ -60,7 +60,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'stock': json['stock'],
|
|
61
61
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
62
62
|
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
63
|
-
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
64
63
|
'netsuiteId': json['netsuiteId'],
|
|
65
64
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
66
65
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -83,7 +82,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
82
|
'stock': value['stock'],
|
|
84
83
|
'isDisabled': value['isDisabled'],
|
|
85
84
|
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
86
|
-
'quantity': value['quantity'],
|
|
87
85
|
'netsuiteId': value['netsuiteId'],
|
|
88
86
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
89
87
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SupplierFrontendResource } from './SupplierFrontendResource';
|
|
13
|
+
import type { ModelAttributeFrontendResource } from './ModelAttributeFrontendResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -106,6 +107,12 @@ export interface ProductRangeFrontendResource {
|
|
|
106
107
|
* @memberof ProductRangeFrontendResource
|
|
107
108
|
*/
|
|
108
109
|
thumbnail?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {Array<ModelAttributeFrontendResource>}
|
|
113
|
+
* @memberof ProductRangeFrontendResource
|
|
114
|
+
*/
|
|
115
|
+
attributes: Array<ModelAttributeFrontendResource> | null;
|
|
109
116
|
}
|
|
110
117
|
/**
|
|
111
118
|
* Check if a given object implements the ProductRangeFrontendResource interface.
|
|
@@ -19,6 +19,7 @@ exports.ProductRangeFrontendResourceFromJSONTyped = ProductRangeFrontendResource
|
|
|
19
19
|
exports.ProductRangeFrontendResourceToJSON = ProductRangeFrontendResourceToJSON;
|
|
20
20
|
exports.ProductRangeFrontendResourceToJSONTyped = ProductRangeFrontendResourceToJSONTyped;
|
|
21
21
|
var SupplierFrontendResource_1 = require("./SupplierFrontendResource");
|
|
22
|
+
var ModelAttributeFrontendResource_1 = require("./ModelAttributeFrontendResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ProductRangeFrontendResource interface.
|
|
24
25
|
*/
|
|
@@ -51,6 +52,8 @@ function instanceOfProductRangeFrontendResource(value) {
|
|
|
51
52
|
return false;
|
|
52
53
|
if (!('assets' in value) || value['assets'] === undefined)
|
|
53
54
|
return false;
|
|
55
|
+
if (!('attributes' in value) || value['attributes'] === undefined)
|
|
56
|
+
return false;
|
|
54
57
|
return true;
|
|
55
58
|
}
|
|
56
59
|
function ProductRangeFrontendResourceFromJSON(json) {
|
|
@@ -76,6 +79,7 @@ function ProductRangeFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
79
|
'seo': json['seo'],
|
|
77
80
|
'assets': json['assets'],
|
|
78
81
|
'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
|
|
82
|
+
'attributes': (json['attributes'] == null ? null : json['attributes'].map(ModelAttributeFrontendResource_1.ModelAttributeFrontendResourceFromJSON)),
|
|
79
83
|
};
|
|
80
84
|
}
|
|
81
85
|
function ProductRangeFrontendResourceToJSON(json) {
|
|
@@ -102,5 +106,6 @@ function ProductRangeFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
106
|
'seo': value['seo'],
|
|
103
107
|
'assets': value['assets'],
|
|
104
108
|
'thumbnail': value['thumbnail'],
|
|
109
|
+
'attributes': (value['attributes'] == null ? null : value['attributes'].map(ModelAttributeFrontendResource_1.ModelAttributeFrontendResourceToJSON)),
|
|
105
110
|
};
|
|
106
111
|
}
|
|
@@ -28,8 +28,6 @@ function instanceOfProductSearchResultResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('model' in value) || value['model'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('modelRaw' in value) || value['modelRaw'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('barcode' in value) || value['barcode'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -71,7 +69,6 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
69
|
'id': json['id'],
|
|
72
70
|
'sku': json['sku'],
|
|
73
71
|
'model': json['model'],
|
|
74
|
-
'modelRaw': json['modelRaw'],
|
|
75
72
|
'barcode': json['barcode'],
|
|
76
73
|
'name': json['name'],
|
|
77
74
|
'slug': json['slug'],
|
|
@@ -101,7 +98,6 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
98
|
'id': value['id'],
|
|
102
99
|
'sku': value['sku'],
|
|
103
100
|
'model': value['model'],
|
|
104
|
-
'modelRaw': value['modelRaw'],
|
|
105
101
|
'barcode': value['barcode'],
|
|
106
102
|
'name': value['name'],
|
|
107
103
|
'slug': value['slug'],
|