@digital8/lighting-illusions-ts-sdk 0.0.478 → 0.0.480
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 +8 -0
- package/README.md +6 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/ProductChildListResource.d.ts +7 -0
- package/dist/models/ProductChildListResource.js +5 -0
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +69 -0
- package/dist/models/ProductChildSiteDetailLiteResource.js +76 -0
- package/dist/models/ProductChildSiteDetailLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildSiteDetailLiteResourceArrayResponse.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/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/ProductChildListResource.md +2 -0
- package/docs/ProductChildSiteDetailLiteResource.md +46 -0
- package/docs/ProductChildSiteDetailLiteResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailResource.md +4 -2
- package/docs/ProductRating.md +32 -0
- package/docs/ProductSortBy.md +32 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/ProductChildListResource.ts +16 -0
- package/src/models/ProductChildSiteDetailLiteResource.ts +128 -0
- package/src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailResource.ts +12 -5
- package/src/models/ProductRating.ts +54 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -127,14 +127,18 @@ docs/ProductChildRelationResourceArrayResponse.md
|
|
|
127
127
|
docs/ProductChildResource.md
|
|
128
128
|
docs/ProductChildResourceArrayResponse.md
|
|
129
129
|
docs/ProductChildSiteDetailApi.md
|
|
130
|
+
docs/ProductChildSiteDetailLiteResource.md
|
|
131
|
+
docs/ProductChildSiteDetailLiteResourceArrayResponse.md
|
|
130
132
|
docs/ProductChildSiteDetailResource.md
|
|
131
133
|
docs/ProductChildSiteDetailResourceArrayResponse.md
|
|
132
134
|
docs/ProductListResource.md
|
|
133
135
|
docs/ProductListResourceArrayResponse.md
|
|
134
136
|
docs/ProductLiteResource.md
|
|
135
137
|
docs/ProductLiteResourceArrayResponse.md
|
|
138
|
+
docs/ProductRating.md
|
|
136
139
|
docs/ProductResource.md
|
|
137
140
|
docs/ProductResourceArrayResponse.md
|
|
141
|
+
docs/ProductSortBy.md
|
|
138
142
|
docs/ProductTypeApi.md
|
|
139
143
|
docs/ProductTypeListResource.md
|
|
140
144
|
docs/ProductTypeListResourceArrayResponse.md
|
|
@@ -342,14 +346,18 @@ src/models/ProductChildRelationResource.ts
|
|
|
342
346
|
src/models/ProductChildRelationResourceArrayResponse.ts
|
|
343
347
|
src/models/ProductChildResource.ts
|
|
344
348
|
src/models/ProductChildResourceArrayResponse.ts
|
|
349
|
+
src/models/ProductChildSiteDetailLiteResource.ts
|
|
350
|
+
src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
|
|
345
351
|
src/models/ProductChildSiteDetailResource.ts
|
|
346
352
|
src/models/ProductChildSiteDetailResourceArrayResponse.ts
|
|
347
353
|
src/models/ProductListResource.ts
|
|
348
354
|
src/models/ProductListResourceArrayResponse.ts
|
|
349
355
|
src/models/ProductLiteResource.ts
|
|
350
356
|
src/models/ProductLiteResourceArrayResponse.ts
|
|
357
|
+
src/models/ProductRating.ts
|
|
351
358
|
src/models/ProductResource.ts
|
|
352
359
|
src/models/ProductResourceArrayResponse.ts
|
|
360
|
+
src/models/ProductSortBy.ts
|
|
353
361
|
src/models/ProductTypeListResource.ts
|
|
354
362
|
src/models/ProductTypeListResourceArrayResponse.ts
|
|
355
363
|
src/models/ProductTypeLiteResource.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.480
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -261,14 +261,18 @@ All URIs are relative to *http://localhost/api*
|
|
|
261
261
|
- [ProductChildRelationResourceArrayResponse](docs/ProductChildRelationResourceArrayResponse.md)
|
|
262
262
|
- [ProductChildResource](docs/ProductChildResource.md)
|
|
263
263
|
- [ProductChildResourceArrayResponse](docs/ProductChildResourceArrayResponse.md)
|
|
264
|
+
- [ProductChildSiteDetailLiteResource](docs/ProductChildSiteDetailLiteResource.md)
|
|
265
|
+
- [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
|
|
264
266
|
- [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
|
|
265
267
|
- [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
|
|
266
268
|
- [ProductListResource](docs/ProductListResource.md)
|
|
267
269
|
- [ProductListResourceArrayResponse](docs/ProductListResourceArrayResponse.md)
|
|
268
270
|
- [ProductLiteResource](docs/ProductLiteResource.md)
|
|
269
271
|
- [ProductLiteResourceArrayResponse](docs/ProductLiteResourceArrayResponse.md)
|
|
272
|
+
- [ProductRating](docs/ProductRating.md)
|
|
270
273
|
- [ProductResource](docs/ProductResource.md)
|
|
271
274
|
- [ProductResourceArrayResponse](docs/ProductResourceArrayResponse.md)
|
|
275
|
+
- [ProductSortBy](docs/ProductSortBy.md)
|
|
272
276
|
- [ProductTypeListResource](docs/ProductTypeListResource.md)
|
|
273
277
|
- [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
|
|
274
278
|
- [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
|
|
@@ -353,7 +357,7 @@ and is automatically generated by the
|
|
|
353
357
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
354
358
|
|
|
355
359
|
- API version: `1.0.0`
|
|
356
|
-
- Package version: `0.0.
|
|
360
|
+
- Package version: `0.0.480`
|
|
357
361
|
- Generator version: `7.17.0`
|
|
358
362
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
359
363
|
|
|
@@ -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']),
|
|
@@ -81,6 +81,12 @@ export interface IndexExternalApiLogRequest {
|
|
|
81
81
|
* @memberof IndexExternalApiLogRequest
|
|
82
82
|
*/
|
|
83
83
|
siteId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof IndexExternalApiLogRequest
|
|
88
|
+
*/
|
|
89
|
+
productChildId?: Array<string>;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {number}
|
|
@@ -63,6 +63,7 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
|
|
64
64
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
65
65
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
66
|
+
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
66
67
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
68
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
69
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -88,6 +89,7 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
89
|
'external_api_loggable_type': value['externalApiLoggableType'],
|
|
89
90
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
90
91
|
'site_id': value['siteId'],
|
|
92
|
+
'product_child_id': value['productChildId'],
|
|
91
93
|
'related_id': value['relatedId'],
|
|
92
94
|
'related_type': value['relatedType'],
|
|
93
95
|
'includes_relations': value['includesRelations'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AssetLiteResource } from './AssetLiteResource';
|
|
13
|
+
import type { ProductChildSiteDetailLiteResource } from './ProductChildSiteDetailLiteResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -52,6 +53,12 @@ export interface ProductChildListResource {
|
|
|
52
53
|
* @memberof ProductChildListResource
|
|
53
54
|
*/
|
|
54
55
|
thumbnail: AssetLiteResource | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ProductChildSiteDetailLiteResource}
|
|
59
|
+
* @memberof ProductChildListResource
|
|
60
|
+
*/
|
|
61
|
+
siteDetails: ProductChildSiteDetailLiteResource | null;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* Check if a given object implements the ProductChildListResource interface.
|
|
@@ -19,6 +19,7 @@ exports.ProductChildListResourceFromJSONTyped = ProductChildListResourceFromJSON
|
|
|
19
19
|
exports.ProductChildListResourceToJSON = ProductChildListResourceToJSON;
|
|
20
20
|
exports.ProductChildListResourceToJSONTyped = ProductChildListResourceToJSONTyped;
|
|
21
21
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
|
+
var ProductChildSiteDetailLiteResource_1 = require("./ProductChildSiteDetailLiteResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ProductChildListResource interface.
|
|
24
25
|
*/
|
|
@@ -35,6 +36,8 @@ function instanceOfProductChildListResource(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
37
38
|
return false;
|
|
39
|
+
if (!('siteDetails' in value) || value['siteDetails'] === undefined)
|
|
40
|
+
return false;
|
|
38
41
|
return true;
|
|
39
42
|
}
|
|
40
43
|
function ProductChildListResourceFromJSON(json) {
|
|
@@ -51,6 +54,7 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
54
|
'model': json['model'],
|
|
52
55
|
'stock': json['stock'],
|
|
53
56
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
57
|
+
'siteDetails': (0, ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)(json['siteDetails']),
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
function ProductChildListResourceToJSON(json) {
|
|
@@ -68,5 +72,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
72
|
'model': value['model'],
|
|
69
73
|
'stock': value['stock'],
|
|
70
74
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
75
|
+
'siteDetails': (0, ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)(value['siteDetails']),
|
|
71
76
|
};
|
|
72
77
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ProductChildSiteDetailLiteResource
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildSiteDetailLiteResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SiteLiteResource}
|
|
28
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
29
|
+
*/
|
|
30
|
+
site: SiteLiteResource | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
41
|
+
*/
|
|
42
|
+
slug: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
47
|
+
*/
|
|
48
|
+
rrpPrice: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
53
|
+
*/
|
|
54
|
+
salePrice: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
59
|
+
*/
|
|
60
|
+
isDisabled: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ProductChildSiteDetailLiteResource interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfProductChildSiteDetailLiteResource(value: object): value is ProductChildSiteDetailLiteResource;
|
|
66
|
+
export declare function ProductChildSiteDetailLiteResourceFromJSON(json: any): ProductChildSiteDetailLiteResource;
|
|
67
|
+
export declare function ProductChildSiteDetailLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailLiteResource;
|
|
68
|
+
export declare function ProductChildSiteDetailLiteResourceToJSON(json: any): ProductChildSiteDetailLiteResource;
|
|
69
|
+
export declare function ProductChildSiteDetailLiteResourceToJSONTyped(value?: ProductChildSiteDetailLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfProductChildSiteDetailLiteResource = instanceOfProductChildSiteDetailLiteResource;
|
|
17
|
+
exports.ProductChildSiteDetailLiteResourceFromJSON = ProductChildSiteDetailLiteResourceFromJSON;
|
|
18
|
+
exports.ProductChildSiteDetailLiteResourceFromJSONTyped = ProductChildSiteDetailLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildSiteDetailLiteResourceToJSON = ProductChildSiteDetailLiteResourceToJSON;
|
|
20
|
+
exports.ProductChildSiteDetailLiteResourceToJSONTyped = ProductChildSiteDetailLiteResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildSiteDetailLiteResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildSiteDetailLiteResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ProductChildSiteDetailLiteResourceFromJSON(json) {
|
|
43
|
+
return ProductChildSiteDetailLiteResourceFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ProductChildSiteDetailLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'slug': json['slug'],
|
|
54
|
+
'rrpPrice': json['rrpPrice'],
|
|
55
|
+
'salePrice': json['salePrice'],
|
|
56
|
+
'isDisabled': json['isDisabled'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ProductChildSiteDetailLiteResourceToJSON(json) {
|
|
60
|
+
return ProductChildSiteDetailLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ProductChildSiteDetailLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'slug': value['slug'],
|
|
72
|
+
'rrpPrice': value['rrpPrice'],
|
|
73
|
+
'salePrice': value['salePrice'],
|
|
74
|
+
'isDisabled': value['isDisabled'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -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 { ProductChildSiteDetailLiteResource } from './ProductChildSiteDetailLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildSiteDetailLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildSiteDetailLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildSiteDetailLiteResource>}
|
|
22
|
+
* @memberof ProductChildSiteDetailLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildSiteDetailLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildSiteDetailLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildSiteDetailLiteResourceArrayResponse(value: object): value is ProductChildSiteDetailLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildSiteDetailLiteResourceArrayResponseFromJSON(json: any): ProductChildSiteDetailLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildSiteDetailLiteResourceArrayResponseToJSON(json: any): ProductChildSiteDetailLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped(value?: ProductChildSiteDetailLiteResourceArrayResponse | 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.instanceOfProductChildSiteDetailLiteResourceArrayResponse = instanceOfProductChildSiteDetailLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductChildSiteDetailLiteResourceArrayResponseFromJSON = ProductChildSiteDetailLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped = ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildSiteDetailLiteResourceArrayResponseToJSON = ProductChildSiteDetailLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped = ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildSiteDetailLiteResource_1 = require("./ProductChildSiteDetailLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildSiteDetailLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildSiteDetailLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildSiteDetailLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildSiteDetailLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped(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(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -79,10 +79,16 @@ export interface ProductChildSiteDetailResource {
|
|
|
79
79
|
seo: SEOResource | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ProductChildSiteDetailResource
|
|
84
|
+
*/
|
|
85
|
+
omnisendId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
83
89
|
* @memberof ProductChildSiteDetailResource
|
|
84
90
|
*/
|
|
85
|
-
|
|
91
|
+
omnisendSyncStatus?: string | null;
|
|
86
92
|
}
|
|
87
93
|
/**
|
|
88
94
|
* Check if a given object implements the ProductChildSiteDetailResource interface.
|
|
@@ -44,8 +44,6 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
-
if (!('documents' in value) || value['documents'] === undefined)
|
|
48
|
-
return false;
|
|
49
47
|
return true;
|
|
50
48
|
}
|
|
51
49
|
function ProductChildSiteDetailResourceFromJSON(json) {
|
|
@@ -66,7 +64,8 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
66
64
|
'salePrice': json['salePrice'],
|
|
67
65
|
'isDisabled': json['isDisabled'],
|
|
68
66
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
69
|
-
'
|
|
67
|
+
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
68
|
+
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
function ProductChildSiteDetailResourceToJSON(json) {
|
|
@@ -88,6 +87,7 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
87
|
'salePrice': value['salePrice'],
|
|
89
88
|
'isDisabled': value['isDisabled'],
|
|
90
89
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
91
|
-
'
|
|
90
|
+
'omnisendId': value['omnisendId'],
|
|
91
|
+
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 ProductRating: {
|
|
17
|
+
readonly _5: "5";
|
|
18
|
+
readonly _4: "4";
|
|
19
|
+
readonly _3: "3";
|
|
20
|
+
};
|
|
21
|
+
export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
|
|
22
|
+
export declare function instanceOfProductRating(value: any): boolean;
|
|
23
|
+
export declare function ProductRatingFromJSON(json: any): ProductRating;
|
|
24
|
+
export declare function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating;
|
|
25
|
+
export declare function ProductRatingToJSON(value?: ProductRating | null): any;
|
|
26
|
+
export declare function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductRating = void 0;
|
|
17
|
+
exports.instanceOfProductRating = instanceOfProductRating;
|
|
18
|
+
exports.ProductRatingFromJSON = ProductRatingFromJSON;
|
|
19
|
+
exports.ProductRatingFromJSONTyped = ProductRatingFromJSONTyped;
|
|
20
|
+
exports.ProductRatingToJSON = ProductRatingToJSON;
|
|
21
|
+
exports.ProductRatingToJSONTyped = ProductRatingToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductRating = {
|
|
27
|
+
_5: '5',
|
|
28
|
+
_4: '4',
|
|
29
|
+
_3: '3'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfProductRating(value) {
|
|
32
|
+
for (var key in exports.ProductRating) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductRating, key)) {
|
|
34
|
+
if (exports.ProductRating[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ProductRatingFromJSON(json) {
|
|
42
|
+
return ProductRatingFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductRatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ProductRatingToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ProductRatingToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ProductSortBy: {
|
|
17
|
+
readonly Relevance: "relevance";
|
|
18
|
+
readonly MostPopular: "mostPopular";
|
|
19
|
+
readonly HighestRating: "highestRating";
|
|
20
|
+
readonly LowestRating: "lowestRating";
|
|
21
|
+
readonly DescendingPrice: "descendingPrice";
|
|
22
|
+
readonly AscendingPrice: "ascendingPrice";
|
|
23
|
+
readonly DescendingName: "descendingName";
|
|
24
|
+
readonly AscendingName: "ascendingName";
|
|
25
|
+
readonly RecentlyAdded: "recentlyAdded";
|
|
26
|
+
};
|
|
27
|
+
export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
|
|
28
|
+
export declare function instanceOfProductSortBy(value: any): boolean;
|
|
29
|
+
export declare function ProductSortByFromJSON(json: any): ProductSortBy;
|
|
30
|
+
export declare function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy;
|
|
31
|
+
export declare function ProductSortByToJSON(value?: ProductSortBy | null): any;
|
|
32
|
+
export declare function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ProductSortBy = void 0;
|
|
17
|
+
exports.instanceOfProductSortBy = instanceOfProductSortBy;
|
|
18
|
+
exports.ProductSortByFromJSON = ProductSortByFromJSON;
|
|
19
|
+
exports.ProductSortByFromJSONTyped = ProductSortByFromJSONTyped;
|
|
20
|
+
exports.ProductSortByToJSON = ProductSortByToJSON;
|
|
21
|
+
exports.ProductSortByToJSONTyped = ProductSortByToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProductSortBy = {
|
|
27
|
+
Relevance: 'relevance',
|
|
28
|
+
MostPopular: 'mostPopular',
|
|
29
|
+
HighestRating: 'highestRating',
|
|
30
|
+
LowestRating: 'lowestRating',
|
|
31
|
+
DescendingPrice: 'descendingPrice',
|
|
32
|
+
AscendingPrice: 'ascendingPrice',
|
|
33
|
+
DescendingName: 'descendingName',
|
|
34
|
+
AscendingName: 'ascendingName',
|
|
35
|
+
RecentlyAdded: 'recentlyAdded'
|
|
36
|
+
};
|
|
37
|
+
function instanceOfProductSortBy(value) {
|
|
38
|
+
for (var key in exports.ProductSortBy) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductSortBy, key)) {
|
|
40
|
+
if (exports.ProductSortBy[key] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function ProductSortByFromJSON(json) {
|
|
48
|
+
return ProductSortByFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ProductSortByFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
function ProductSortByToJSON(value) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function ProductSortByToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -116,14 +116,18 @@ export * from './ProductChildRelationResource';
|
|
|
116
116
|
export * from './ProductChildRelationResourceArrayResponse';
|
|
117
117
|
export * from './ProductChildResource';
|
|
118
118
|
export * from './ProductChildResourceArrayResponse';
|
|
119
|
+
export * from './ProductChildSiteDetailLiteResource';
|
|
120
|
+
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
119
121
|
export * from './ProductChildSiteDetailResource';
|
|
120
122
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
121
123
|
export * from './ProductListResource';
|
|
122
124
|
export * from './ProductListResourceArrayResponse';
|
|
123
125
|
export * from './ProductLiteResource';
|
|
124
126
|
export * from './ProductLiteResourceArrayResponse';
|
|
127
|
+
export * from './ProductRating';
|
|
125
128
|
export * from './ProductResource';
|
|
126
129
|
export * from './ProductResourceArrayResponse';
|
|
130
|
+
export * from './ProductSortBy';
|
|
127
131
|
export * from './ProductTypeListResource';
|
|
128
132
|
export * from './ProductTypeListResourceArrayResponse';
|
|
129
133
|
export * from './ProductTypeLiteResource';
|