@digital8/lighting-illusions-ts-sdk 0.0.621 → 0.0.622
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 +14 -0
- package/README.md +9 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/PaginatedWishlistProductResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedWishlistProductResourceResponse.js +57 -0
- package/dist/models/WishlistCheckResource.d.ts +32 -0
- package/dist/models/WishlistCheckResource.js +51 -0
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistCheckResourceArrayResponse.js +50 -0
- package/dist/models/WishlistProductResource.d.ts +122 -0
- package/dist/models/WishlistProductResource.js +105 -0
- package/dist/models/WishlistProductResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistProductResourceArrayResponse.js +50 -0
- package/dist/models/WishlistToggleResource.d.ts +38 -0
- package/dist/models/WishlistToggleResource.js +55 -0
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistToggleResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/PaginatedWishlistProductResourceResponse.md +36 -0
- package/docs/WishlistCheckResource.md +34 -0
- package/docs/WishlistCheckResourceArrayResponse.md +34 -0
- package/docs/WishlistProductResource.md +64 -0
- package/docs/WishlistProductResourceArrayResponse.md +34 -0
- package/docs/WishlistToggleResource.md +36 -0
- package/docs/WishlistToggleResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/PaginatedWishlistProductResourceResponse.ts +90 -0
- package/src/models/WishlistCheckResource.ts +66 -0
- package/src/models/WishlistCheckResourceArrayResponse.ts +73 -0
- package/src/models/WishlistProductResource.ts +198 -0
- package/src/models/WishlistProductResourceArrayResponse.ts +73 -0
- package/src/models/WishlistToggleResource.ts +75 -0
- package/src/models/WishlistToggleResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +7 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -147,6 +147,7 @@ docs/PaginatedSupplierResourceResponse.md
|
|
|
147
147
|
docs/PaginatedTagListResourceResponse.md
|
|
148
148
|
docs/PaginatedTagLiteResourceResponse.md
|
|
149
149
|
docs/PaginatedTagResourceResponse.md
|
|
150
|
+
docs/PaginatedWishlistProductResourceResponse.md
|
|
150
151
|
docs/PagingMetadata.md
|
|
151
152
|
docs/PreviewAutomationRulesProductCategoryRequest.md
|
|
152
153
|
docs/PreviewAutomationRulesResource.md
|
|
@@ -275,6 +276,12 @@ docs/UpdateSiteNotificationRequest.md
|
|
|
275
276
|
docs/UpdateSiteRequest.md
|
|
276
277
|
docs/UpdateSupplierRequest.md
|
|
277
278
|
docs/UpdateTagRequest.md
|
|
279
|
+
docs/WishlistCheckResource.md
|
|
280
|
+
docs/WishlistCheckResourceArrayResponse.md
|
|
281
|
+
docs/WishlistProductResource.md
|
|
282
|
+
docs/WishlistProductResourceArrayResponse.md
|
|
283
|
+
docs/WishlistToggleResource.md
|
|
284
|
+
docs/WishlistToggleResourceArrayResponse.md
|
|
278
285
|
package.json
|
|
279
286
|
src/apis/AssetApi.ts
|
|
280
287
|
src/apis/AttributeApi.ts
|
|
@@ -430,6 +437,7 @@ src/models/PaginatedSupplierResourceResponse.ts
|
|
|
430
437
|
src/models/PaginatedTagListResourceResponse.ts
|
|
431
438
|
src/models/PaginatedTagLiteResourceResponse.ts
|
|
432
439
|
src/models/PaginatedTagResourceResponse.ts
|
|
440
|
+
src/models/PaginatedWishlistProductResourceResponse.ts
|
|
433
441
|
src/models/PagingMetadata.ts
|
|
434
442
|
src/models/PreviewAutomationRulesProductCategoryRequest.ts
|
|
435
443
|
src/models/PreviewAutomationRulesResource.ts
|
|
@@ -551,6 +559,12 @@ src/models/UpdateSiteNotificationRequest.ts
|
|
|
551
559
|
src/models/UpdateSiteRequest.ts
|
|
552
560
|
src/models/UpdateSupplierRequest.ts
|
|
553
561
|
src/models/UpdateTagRequest.ts
|
|
562
|
+
src/models/WishlistCheckResource.ts
|
|
563
|
+
src/models/WishlistCheckResourceArrayResponse.ts
|
|
564
|
+
src/models/WishlistProductResource.ts
|
|
565
|
+
src/models/WishlistProductResourceArrayResponse.ts
|
|
566
|
+
src/models/WishlistToggleResource.ts
|
|
567
|
+
src/models/WishlistToggleResourceArrayResponse.ts
|
|
554
568
|
src/models/index.ts
|
|
555
569
|
src/runtime.ts
|
|
556
570
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.622
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -297,6 +297,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
297
297
|
- [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
|
|
298
298
|
- [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
|
|
299
299
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
300
|
+
- [PaginatedWishlistProductResourceResponse](docs/PaginatedWishlistProductResourceResponse.md)
|
|
300
301
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
301
302
|
- [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
|
|
302
303
|
- [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
|
|
@@ -418,6 +419,12 @@ All URIs are relative to *http://localhost/api*
|
|
|
418
419
|
- [UpdateSiteRequest](docs/UpdateSiteRequest.md)
|
|
419
420
|
- [UpdateSupplierRequest](docs/UpdateSupplierRequest.md)
|
|
420
421
|
- [UpdateTagRequest](docs/UpdateTagRequest.md)
|
|
422
|
+
- [WishlistCheckResource](docs/WishlistCheckResource.md)
|
|
423
|
+
- [WishlistCheckResourceArrayResponse](docs/WishlistCheckResourceArrayResponse.md)
|
|
424
|
+
- [WishlistProductResource](docs/WishlistProductResource.md)
|
|
425
|
+
- [WishlistProductResourceArrayResponse](docs/WishlistProductResourceArrayResponse.md)
|
|
426
|
+
- [WishlistToggleResource](docs/WishlistToggleResource.md)
|
|
427
|
+
- [WishlistToggleResourceArrayResponse](docs/WishlistToggleResourceArrayResponse.md)
|
|
421
428
|
|
|
422
429
|
### Authorization
|
|
423
430
|
|
|
@@ -431,7 +438,7 @@ and is automatically generated by the
|
|
|
431
438
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
432
439
|
|
|
433
440
|
- API version: `1.0.0`
|
|
434
|
-
- Package version: `0.0.
|
|
441
|
+
- Package version: `0.0.622`
|
|
435
442
|
- Generator version: `7.19.0`
|
|
436
443
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
437
444
|
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,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 { WishlistProductResource } from './WishlistProductResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedWishlistProductResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedWishlistProductResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<WishlistProductResource>}
|
|
23
|
+
* @memberof PaginatedWishlistProductResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<WishlistProductResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedWishlistProductResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedWishlistProductResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedWishlistProductResourceResponse(value: object): value is PaginatedWishlistProductResourceResponse;
|
|
37
|
+
export declare function PaginatedWishlistProductResourceResponseFromJSON(json: any): PaginatedWishlistProductResourceResponse;
|
|
38
|
+
export declare function PaginatedWishlistProductResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistProductResourceResponse;
|
|
39
|
+
export declare function PaginatedWishlistProductResourceResponseToJSON(json: any): PaginatedWishlistProductResourceResponse;
|
|
40
|
+
export declare function PaginatedWishlistProductResourceResponseToJSONTyped(value?: PaginatedWishlistProductResourceResponse | 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.instanceOfPaginatedWishlistProductResourceResponse = instanceOfPaginatedWishlistProductResourceResponse;
|
|
17
|
+
exports.PaginatedWishlistProductResourceResponseFromJSON = PaginatedWishlistProductResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedWishlistProductResourceResponseFromJSONTyped = PaginatedWishlistProductResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedWishlistProductResourceResponseToJSON = PaginatedWishlistProductResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedWishlistProductResourceResponseToJSONTyped = PaginatedWishlistProductResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var WishlistProductResource_1 = require("./WishlistProductResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedWishlistProductResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedWishlistProductResourceResponse(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 PaginatedWishlistProductResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedWishlistProductResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedWishlistProductResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(WishlistProductResource_1.WishlistProductResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedWishlistProductResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedWishlistProductResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedWishlistProductResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(WishlistProductResource_1.WishlistProductResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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
|
+
* @interface WishlistCheckResource
|
|
16
|
+
*/
|
|
17
|
+
export interface WishlistCheckResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof WishlistCheckResource
|
|
22
|
+
*/
|
|
23
|
+
inWishlist: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WishlistCheckResource interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfWishlistCheckResource(value: object): value is WishlistCheckResource;
|
|
29
|
+
export declare function WishlistCheckResourceFromJSON(json: any): WishlistCheckResource;
|
|
30
|
+
export declare function WishlistCheckResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResource;
|
|
31
|
+
export declare function WishlistCheckResourceToJSON(json: any): WishlistCheckResource;
|
|
32
|
+
export declare function WishlistCheckResourceToJSONTyped(value?: WishlistCheckResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfWishlistCheckResource = instanceOfWishlistCheckResource;
|
|
17
|
+
exports.WishlistCheckResourceFromJSON = WishlistCheckResourceFromJSON;
|
|
18
|
+
exports.WishlistCheckResourceFromJSONTyped = WishlistCheckResourceFromJSONTyped;
|
|
19
|
+
exports.WishlistCheckResourceToJSON = WishlistCheckResourceToJSON;
|
|
20
|
+
exports.WishlistCheckResourceToJSONTyped = WishlistCheckResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WishlistCheckResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWishlistCheckResource(value) {
|
|
25
|
+
if (!('inWishlist' in value) || value['inWishlist'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function WishlistCheckResourceFromJSON(json) {
|
|
30
|
+
return WishlistCheckResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function WishlistCheckResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'inWishlist': json['in_wishlist'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function WishlistCheckResourceToJSON(json) {
|
|
41
|
+
return WishlistCheckResourceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function WishlistCheckResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'in_wishlist': value['inWishlist'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 { WishlistCheckResource } from './WishlistCheckResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WishlistCheckResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WishlistCheckResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<WishlistCheckResource>}
|
|
22
|
+
* @memberof WishlistCheckResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<WishlistCheckResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WishlistCheckResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfWishlistCheckResourceArrayResponse(value: object): value is WishlistCheckResourceArrayResponse;
|
|
30
|
+
export declare function WishlistCheckResourceArrayResponseFromJSON(json: any): WishlistCheckResourceArrayResponse;
|
|
31
|
+
export declare function WishlistCheckResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResourceArrayResponse;
|
|
32
|
+
export declare function WishlistCheckResourceArrayResponseToJSON(json: any): WishlistCheckResourceArrayResponse;
|
|
33
|
+
export declare function WishlistCheckResourceArrayResponseToJSONTyped(value?: WishlistCheckResourceArrayResponse | 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.instanceOfWishlistCheckResourceArrayResponse = instanceOfWishlistCheckResourceArrayResponse;
|
|
17
|
+
exports.WishlistCheckResourceArrayResponseFromJSON = WishlistCheckResourceArrayResponseFromJSON;
|
|
18
|
+
exports.WishlistCheckResourceArrayResponseFromJSONTyped = WishlistCheckResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.WishlistCheckResourceArrayResponseToJSON = WishlistCheckResourceArrayResponseToJSON;
|
|
20
|
+
exports.WishlistCheckResourceArrayResponseToJSONTyped = WishlistCheckResourceArrayResponseToJSONTyped;
|
|
21
|
+
var WishlistCheckResource_1 = require("./WishlistCheckResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WishlistCheckResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWishlistCheckResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function WishlistCheckResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return WishlistCheckResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function WishlistCheckResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(WishlistCheckResource_1.WishlistCheckResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function WishlistCheckResourceArrayResponseToJSON(json) {
|
|
40
|
+
return WishlistCheckResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WishlistCheckResourceArrayResponseToJSONTyped(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(WishlistCheckResource_1.WishlistCheckResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 WishlistProductResource
|
|
16
|
+
*/
|
|
17
|
+
export interface WishlistProductResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof WishlistProductResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WishlistProductResource
|
|
28
|
+
*/
|
|
29
|
+
sku: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WishlistProductResource
|
|
34
|
+
*/
|
|
35
|
+
model: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WishlistProductResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WishlistProductResource
|
|
46
|
+
*/
|
|
47
|
+
slug: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof WishlistProductResource
|
|
52
|
+
*/
|
|
53
|
+
price: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof WishlistProductResource
|
|
58
|
+
*/
|
|
59
|
+
salePrice: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof WishlistProductResource
|
|
64
|
+
*/
|
|
65
|
+
thumbnail?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof WishlistProductResource
|
|
70
|
+
*/
|
|
71
|
+
averageRating: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof WishlistProductResource
|
|
76
|
+
*/
|
|
77
|
+
labelDetails?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<boolean>}
|
|
81
|
+
* @memberof WishlistProductResource
|
|
82
|
+
*/
|
|
83
|
+
categories: Array<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof WishlistProductResource
|
|
88
|
+
*/
|
|
89
|
+
supplierName: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof WishlistProductResource
|
|
94
|
+
*/
|
|
95
|
+
supplierLogo?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof WishlistProductResource
|
|
100
|
+
*/
|
|
101
|
+
supplierId: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof WishlistProductResource
|
|
106
|
+
*/
|
|
107
|
+
availability: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof WishlistProductResource
|
|
112
|
+
*/
|
|
113
|
+
wishlisted: boolean;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the WishlistProductResource interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfWishlistProductResource(value: object): value is WishlistProductResource;
|
|
119
|
+
export declare function WishlistProductResourceFromJSON(json: any): WishlistProductResource;
|
|
120
|
+
export declare function WishlistProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResource;
|
|
121
|
+
export declare function WishlistProductResourceToJSON(json: any): WishlistProductResource;
|
|
122
|
+
export declare function WishlistProductResourceToJSONTyped(value?: WishlistProductResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,105 @@
|
|
|
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.instanceOfWishlistProductResource = instanceOfWishlistProductResource;
|
|
17
|
+
exports.WishlistProductResourceFromJSON = WishlistProductResourceFromJSON;
|
|
18
|
+
exports.WishlistProductResourceFromJSONTyped = WishlistProductResourceFromJSONTyped;
|
|
19
|
+
exports.WishlistProductResourceToJSON = WishlistProductResourceToJSON;
|
|
20
|
+
exports.WishlistProductResourceToJSONTyped = WishlistProductResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WishlistProductResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWishlistProductResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('averageRating' in value) || value['averageRating'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('supplierId' in value) || value['supplierId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('availability' in value) || value['availability'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('wishlisted' in value) || value['wishlisted'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function WishlistProductResourceFromJSON(json) {
|
|
54
|
+
return WishlistProductResourceFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function WishlistProductResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'sku': json['sku'],
|
|
63
|
+
'model': json['model'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
'slug': json['slug'],
|
|
66
|
+
'price': json['price'],
|
|
67
|
+
'salePrice': json['salePrice'],
|
|
68
|
+
'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
|
|
69
|
+
'averageRating': json['averageRating'],
|
|
70
|
+
'labelDetails': json['labelDetails'] == null ? undefined : json['labelDetails'],
|
|
71
|
+
'categories': json['categories'],
|
|
72
|
+
'supplierName': json['supplierName'],
|
|
73
|
+
'supplierLogo': json['supplierLogo'] == null ? undefined : json['supplierLogo'],
|
|
74
|
+
'supplierId': json['supplierId'],
|
|
75
|
+
'availability': json['availability'],
|
|
76
|
+
'wishlisted': json['wishlisted'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function WishlistProductResourceToJSON(json) {
|
|
80
|
+
return WishlistProductResourceToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function WishlistProductResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
83
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'sku': value['sku'],
|
|
90
|
+
'model': value['model'],
|
|
91
|
+
'name': value['name'],
|
|
92
|
+
'slug': value['slug'],
|
|
93
|
+
'price': value['price'],
|
|
94
|
+
'salePrice': value['salePrice'],
|
|
95
|
+
'thumbnail': value['thumbnail'],
|
|
96
|
+
'averageRating': value['averageRating'],
|
|
97
|
+
'labelDetails': value['labelDetails'],
|
|
98
|
+
'categories': value['categories'],
|
|
99
|
+
'supplierName': value['supplierName'],
|
|
100
|
+
'supplierLogo': value['supplierLogo'],
|
|
101
|
+
'supplierId': value['supplierId'],
|
|
102
|
+
'availability': value['availability'],
|
|
103
|
+
'wishlisted': value['wishlisted'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -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 { WishlistProductResource } from './WishlistProductResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WishlistProductResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WishlistProductResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<WishlistProductResource>}
|
|
22
|
+
* @memberof WishlistProductResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<WishlistProductResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WishlistProductResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfWishlistProductResourceArrayResponse(value: object): value is WishlistProductResourceArrayResponse;
|
|
30
|
+
export declare function WishlistProductResourceArrayResponseFromJSON(json: any): WishlistProductResourceArrayResponse;
|
|
31
|
+
export declare function WishlistProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResourceArrayResponse;
|
|
32
|
+
export declare function WishlistProductResourceArrayResponseToJSON(json: any): WishlistProductResourceArrayResponse;
|
|
33
|
+
export declare function WishlistProductResourceArrayResponseToJSONTyped(value?: WishlistProductResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|