@digital8/lighting-illusions-ts-sdk 0.0.487 → 0.0.488
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 +22 -2
- package/README.md +15 -7
- package/dist/apis/DocumentApi.d.ts +1 -24
- package/dist/apis/DocumentApi.js +2 -96
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +0 -26
- package/dist/models/GetAllDocumentRequest.js +1 -14
- package/dist/models/GetAllProductChildRequest.d.ts +0 -1
- package/dist/models/GetAllProductChildRequest.js +1 -2
- package/dist/models/IndexDocumentRequest.d.ts +0 -26
- package/dist/models/IndexDocumentRequest.js +1 -14
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +8 -2
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/docs/DocumentApi.md +2 -137
- package/docs/GetAllDocumentRequest.md +0 -6
- package/docs/IndexDocumentRequest.md +0 -6
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailResource.md +4 -2
- package/docs/{UpdateDocumentRequest.md → ProductRating.md} +4 -10
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +2 -91
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +0 -33
- package/src/models/GetAllProductChildRequest.ts +1 -2
- package/src/models/IndexDocumentRequest.ts +0 -33
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailResource.ts +12 -5
- package/src/models/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/index.ts +11 -1
- package/dist/models/UpdateDocumentRequest.d.ts +0 -44
- package/dist/models/UpdateDocumentRequest.js +0 -57
- package/src/models/UpdateDocumentRequest.ts +0 -83
|
@@ -0,0 +1,60 @@
|
|
|
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 ProductSortBy = {
|
|
21
|
+
Relevance: 'relevance',
|
|
22
|
+
MostPopular: 'mostPopular',
|
|
23
|
+
HighestRating: 'highestRating',
|
|
24
|
+
LowestRating: 'lowestRating',
|
|
25
|
+
DescendingPrice: 'descendingPrice',
|
|
26
|
+
AscendingPrice: 'ascendingPrice',
|
|
27
|
+
DescendingName: 'descendingName',
|
|
28
|
+
AscendingName: 'ascendingName',
|
|
29
|
+
RecentlyAdded: 'recentlyAdded'
|
|
30
|
+
} as const;
|
|
31
|
+
export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function instanceOfProductSortBy(value: any): boolean {
|
|
35
|
+
for (const key in ProductSortBy) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(ProductSortBy, key)) {
|
|
37
|
+
if (ProductSortBy[key as keyof typeof ProductSortBy] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductSortByFromJSON(json: any): ProductSortBy {
|
|
46
|
+
return ProductSortByFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy {
|
|
50
|
+
return json as ProductSortBy;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ProductSortByToJSON(value?: ProductSortBy | null): any {
|
|
54
|
+
return value as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy {
|
|
58
|
+
return value as ProductSortBy;
|
|
59
|
+
}
|
|
60
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -92,6 +92,7 @@ export * from './PaginatedProductChildResourceResponse';
|
|
|
92
92
|
export * from './PaginatedProductListResourceResponse';
|
|
93
93
|
export * from './PaginatedProductLiteResourceResponse';
|
|
94
94
|
export * from './PaginatedProductResourceResponse';
|
|
95
|
+
export * from './PaginatedProductSearchResultResourceResponse';
|
|
95
96
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
96
97
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
97
98
|
export * from './PaginatedProductTypeResourceResponse';
|
|
@@ -108,6 +109,8 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
108
109
|
export * from './PaginatedTagLiteResourceResponse';
|
|
109
110
|
export * from './PaginatedTagResourceResponse';
|
|
110
111
|
export * from './PagingMetadata';
|
|
112
|
+
export * from './ProductAggregationResource';
|
|
113
|
+
export * from './ProductAggregationResourceArrayResponse';
|
|
111
114
|
export * from './ProductChildListResource';
|
|
112
115
|
export * from './ProductChildListResourceArrayResponse';
|
|
113
116
|
export * from './ProductChildLiteResource';
|
|
@@ -126,8 +129,16 @@ export * from './ProductListResource';
|
|
|
126
129
|
export * from './ProductListResourceArrayResponse';
|
|
127
130
|
export * from './ProductLiteResource';
|
|
128
131
|
export * from './ProductLiteResourceArrayResponse';
|
|
132
|
+
export * from './ProductRating';
|
|
129
133
|
export * from './ProductResource';
|
|
130
134
|
export * from './ProductResourceArrayResponse';
|
|
135
|
+
export * from './ProductSearchResponseResource';
|
|
136
|
+
export * from './ProductSearchResponseResourceArrayResponse';
|
|
137
|
+
export * from './ProductSearchResponseResourceMeta';
|
|
138
|
+
export * from './ProductSearchResponseResourcePriceInfo';
|
|
139
|
+
export * from './ProductSearchResultResource';
|
|
140
|
+
export * from './ProductSearchResultResourceArrayResponse';
|
|
141
|
+
export * from './ProductSortBy';
|
|
131
142
|
export * from './ProductTypeListResource';
|
|
132
143
|
export * from './ProductTypeListResourceArrayResponse';
|
|
133
144
|
export * from './ProductTypeLiteResource';
|
|
@@ -185,7 +196,6 @@ export * from './TagResourceArrayResponse';
|
|
|
185
196
|
export * from './TagType';
|
|
186
197
|
export * from './UpdateAttributeRequest';
|
|
187
198
|
export * from './UpdateAttributeValueRequest';
|
|
188
|
-
export * from './UpdateDocumentRequest';
|
|
189
199
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
190
200
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
191
201
|
export * from './UpdateModelAttributeRequest';
|
|
@@ -1,44 +0,0 @@
|
|
|
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 UpdateDocumentRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateDocumentRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UpdateDocumentRequest
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateDocumentRequest
|
|
28
|
-
*/
|
|
29
|
-
documentFileId: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof UpdateDocumentRequest
|
|
34
|
-
*/
|
|
35
|
-
siteIds?: Array<string>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest;
|
|
41
|
-
export declare function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest;
|
|
42
|
-
export declare function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest;
|
|
43
|
-
export declare function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest;
|
|
44
|
-
export declare function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
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.instanceOfUpdateDocumentRequest = instanceOfUpdateDocumentRequest;
|
|
17
|
-
exports.UpdateDocumentRequestFromJSON = UpdateDocumentRequestFromJSON;
|
|
18
|
-
exports.UpdateDocumentRequestFromJSONTyped = UpdateDocumentRequestFromJSONTyped;
|
|
19
|
-
exports.UpdateDocumentRequestToJSON = UpdateDocumentRequestToJSON;
|
|
20
|
-
exports.UpdateDocumentRequestToJSONTyped = UpdateDocumentRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfUpdateDocumentRequest(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('documentFileId' in value) || value['documentFileId'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function UpdateDocumentRequestFromJSON(json) {
|
|
32
|
-
return UpdateDocumentRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'name': json['name'],
|
|
40
|
-
'documentFileId': json['document_file_id'],
|
|
41
|
-
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function UpdateDocumentRequestToJSON(json) {
|
|
45
|
-
return UpdateDocumentRequestToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'name': value['name'],
|
|
54
|
-
'document_file_id': value['documentFileId'],
|
|
55
|
-
'site_ids': value['siteIds'],
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UpdateDocumentRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface UpdateDocumentRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof UpdateDocumentRequest
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateDocumentRequest
|
|
32
|
-
*/
|
|
33
|
-
documentFileId: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<string>}
|
|
37
|
-
* @memberof UpdateDocumentRequest
|
|
38
|
-
*/
|
|
39
|
-
siteIds?: Array<string>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the UpdateDocumentRequest interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest {
|
|
46
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
-
if (!('documentFileId' in value) || value['documentFileId'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest {
|
|
52
|
-
return UpdateDocumentRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'name': json['name'],
|
|
62
|
-
'documentFileId': json['document_file_id'],
|
|
63
|
-
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest {
|
|
68
|
-
return UpdateDocumentRequestToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'name': value['name'],
|
|
79
|
-
'document_file_id': value['documentFileId'],
|
|
80
|
-
'site_ids': value['siteIds'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|