@digital8/lighting-illusions-ts-sdk 0.0.622 → 0.0.624
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 +0 -14
- package/README.md +2 -9
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/package.json +1 -1
- package/src/models/index.ts +0 -7
- package/dist/models/PaginatedWishlistProductResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedWishlistProductResourceResponse.js +0 -57
- package/dist/models/WishlistCheckResource.d.ts +0 -32
- package/dist/models/WishlistCheckResource.js +0 -51
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistCheckResourceArrayResponse.js +0 -50
- package/dist/models/WishlistProductResource.d.ts +0 -122
- package/dist/models/WishlistProductResource.js +0 -105
- package/dist/models/WishlistProductResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistProductResourceArrayResponse.js +0 -50
- package/dist/models/WishlistToggleResource.d.ts +0 -38
- package/dist/models/WishlistToggleResource.js +0 -55
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistToggleResourceArrayResponse.js +0 -50
- package/docs/PaginatedWishlistProductResourceResponse.md +0 -36
- package/docs/WishlistCheckResource.md +0 -34
- package/docs/WishlistCheckResourceArrayResponse.md +0 -34
- package/docs/WishlistProductResource.md +0 -64
- package/docs/WishlistProductResourceArrayResponse.md +0 -34
- package/docs/WishlistToggleResource.md +0 -36
- package/docs/WishlistToggleResourceArrayResponse.md +0 -34
- package/src/models/PaginatedWishlistProductResourceResponse.ts +0 -90
- package/src/models/WishlistCheckResource.ts +0 -66
- package/src/models/WishlistCheckResourceArrayResponse.ts +0 -73
- package/src/models/WishlistProductResource.ts +0 -198
- package/src/models/WishlistProductResourceArrayResponse.ts +0 -73
- package/src/models/WishlistToggleResource.ts +0 -75
- package/src/models/WishlistToggleResourceArrayResponse.ts +0 -73
|
@@ -1,50 +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.instanceOfWishlistProductResourceArrayResponse = instanceOfWishlistProductResourceArrayResponse;
|
|
17
|
-
exports.WishlistProductResourceArrayResponseFromJSON = WishlistProductResourceArrayResponseFromJSON;
|
|
18
|
-
exports.WishlistProductResourceArrayResponseFromJSONTyped = WishlistProductResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.WishlistProductResourceArrayResponseToJSON = WishlistProductResourceArrayResponseToJSON;
|
|
20
|
-
exports.WishlistProductResourceArrayResponseToJSONTyped = WishlistProductResourceArrayResponseToJSONTyped;
|
|
21
|
-
var WishlistProductResource_1 = require("./WishlistProductResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the WishlistProductResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfWishlistProductResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function WishlistProductResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return WishlistProductResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function WishlistProductResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(WishlistProductResource_1.WishlistProductResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function WishlistProductResourceArrayResponseToJSON(json) {
|
|
40
|
-
return WishlistProductResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function WishlistProductResourceArrayResponseToJSONTyped(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(WishlistProductResource_1.WishlistProductResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,38 +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 WishlistToggleResource
|
|
16
|
-
*/
|
|
17
|
-
export interface WishlistToggleResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof WishlistToggleResource
|
|
22
|
-
*/
|
|
23
|
-
action: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<number>}
|
|
27
|
-
* @memberof WishlistToggleResource
|
|
28
|
-
*/
|
|
29
|
-
product: Array<number>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the WishlistToggleResource interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfWishlistToggleResource(value: object): value is WishlistToggleResource;
|
|
35
|
-
export declare function WishlistToggleResourceFromJSON(json: any): WishlistToggleResource;
|
|
36
|
-
export declare function WishlistToggleResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResource;
|
|
37
|
-
export declare function WishlistToggleResourceToJSON(json: any): WishlistToggleResource;
|
|
38
|
-
export declare function WishlistToggleResourceToJSONTyped(value?: WishlistToggleResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +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.instanceOfWishlistToggleResource = instanceOfWishlistToggleResource;
|
|
17
|
-
exports.WishlistToggleResourceFromJSON = WishlistToggleResourceFromJSON;
|
|
18
|
-
exports.WishlistToggleResourceFromJSONTyped = WishlistToggleResourceFromJSONTyped;
|
|
19
|
-
exports.WishlistToggleResourceToJSON = WishlistToggleResourceToJSON;
|
|
20
|
-
exports.WishlistToggleResourceToJSONTyped = WishlistToggleResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the WishlistToggleResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfWishlistToggleResource(value) {
|
|
25
|
-
if (!('action' in value) || value['action'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('product' in value) || value['product'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function WishlistToggleResourceFromJSON(json) {
|
|
32
|
-
return WishlistToggleResourceFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function WishlistToggleResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'action': json['action'],
|
|
40
|
-
'product': json['product'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function WishlistToggleResourceToJSON(json) {
|
|
44
|
-
return WishlistToggleResourceToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function WishlistToggleResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'action': value['action'],
|
|
53
|
-
'product': value['product'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,33 +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
|
-
import type { WishlistToggleResource } from './WishlistToggleResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface WishlistToggleResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface WishlistToggleResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<WishlistToggleResource>}
|
|
22
|
-
* @memberof WishlistToggleResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<WishlistToggleResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the WishlistToggleResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfWishlistToggleResourceArrayResponse(value: object): value is WishlistToggleResourceArrayResponse;
|
|
30
|
-
export declare function WishlistToggleResourceArrayResponseFromJSON(json: any): WishlistToggleResourceArrayResponse;
|
|
31
|
-
export declare function WishlistToggleResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResourceArrayResponse;
|
|
32
|
-
export declare function WishlistToggleResourceArrayResponseToJSON(json: any): WishlistToggleResourceArrayResponse;
|
|
33
|
-
export declare function WishlistToggleResourceArrayResponseToJSONTyped(value?: WishlistToggleResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfWishlistToggleResourceArrayResponse = instanceOfWishlistToggleResourceArrayResponse;
|
|
17
|
-
exports.WishlistToggleResourceArrayResponseFromJSON = WishlistToggleResourceArrayResponseFromJSON;
|
|
18
|
-
exports.WishlistToggleResourceArrayResponseFromJSONTyped = WishlistToggleResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.WishlistToggleResourceArrayResponseToJSON = WishlistToggleResourceArrayResponseToJSON;
|
|
20
|
-
exports.WishlistToggleResourceArrayResponseToJSONTyped = WishlistToggleResourceArrayResponseToJSONTyped;
|
|
21
|
-
var WishlistToggleResource_1 = require("./WishlistToggleResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the WishlistToggleResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfWishlistToggleResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function WishlistToggleResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return WishlistToggleResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function WishlistToggleResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(WishlistToggleResource_1.WishlistToggleResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function WishlistToggleResourceArrayResponseToJSON(json) {
|
|
40
|
-
return WishlistToggleResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function WishlistToggleResourceArrayResponseToJSONTyped(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(WishlistToggleResource_1.WishlistToggleResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedWishlistProductResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<WishlistProductResource>](WishlistProductResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedWishlistProductResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedWishlistProductResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedWishlistProductResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WishlistCheckResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`inWishlist` | boolean
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { WishlistCheckResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"inWishlist": null,
|
|
19
|
-
} satisfies WishlistCheckResource
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as WishlistCheckResource
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WishlistCheckResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<WishlistCheckResource>](WishlistCheckResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { WishlistCheckResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies WishlistCheckResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as WishlistCheckResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WishlistProductResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`sku` | string
|
|
11
|
-
`model` | string
|
|
12
|
-
`name` | string
|
|
13
|
-
`slug` | string
|
|
14
|
-
`price` | number
|
|
15
|
-
`salePrice` | number
|
|
16
|
-
`thumbnail` | string
|
|
17
|
-
`averageRating` | number
|
|
18
|
-
`labelDetails` | string
|
|
19
|
-
`categories` | Array<boolean>
|
|
20
|
-
`supplierName` | string
|
|
21
|
-
`supplierLogo` | string
|
|
22
|
-
`supplierId` | number
|
|
23
|
-
`availability` | string
|
|
24
|
-
`wishlisted` | boolean
|
|
25
|
-
|
|
26
|
-
## Example
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
import type { WishlistProductResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
30
|
-
|
|
31
|
-
// TODO: Update the object below with actual values
|
|
32
|
-
const example = {
|
|
33
|
-
"id": null,
|
|
34
|
-
"sku": null,
|
|
35
|
-
"model": null,
|
|
36
|
-
"name": null,
|
|
37
|
-
"slug": null,
|
|
38
|
-
"price": null,
|
|
39
|
-
"salePrice": null,
|
|
40
|
-
"thumbnail": null,
|
|
41
|
-
"averageRating": null,
|
|
42
|
-
"labelDetails": null,
|
|
43
|
-
"categories": null,
|
|
44
|
-
"supplierName": null,
|
|
45
|
-
"supplierLogo": null,
|
|
46
|
-
"supplierId": null,
|
|
47
|
-
"availability": null,
|
|
48
|
-
"wishlisted": null,
|
|
49
|
-
} satisfies WishlistProductResource
|
|
50
|
-
|
|
51
|
-
console.log(example)
|
|
52
|
-
|
|
53
|
-
// Convert the instance to a JSON string
|
|
54
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
55
|
-
console.log(exampleJSON)
|
|
56
|
-
|
|
57
|
-
// Parse the JSON string back to an object
|
|
58
|
-
const exampleParsed = JSON.parse(exampleJSON) as WishlistProductResource
|
|
59
|
-
console.log(exampleParsed)
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
63
|
-
|
|
64
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WishlistProductResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<WishlistProductResource>](WishlistProductResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { WishlistProductResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies WishlistProductResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as WishlistProductResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WishlistToggleResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`action` | string
|
|
10
|
-
`product` | Array<number>
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { WishlistToggleResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"action": null,
|
|
20
|
-
"product": null,
|
|
21
|
-
} satisfies WishlistToggleResource
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as WishlistToggleResource
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WishlistToggleResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<WishlistToggleResource>](WishlistToggleResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { WishlistToggleResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies WishlistToggleResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as WishlistToggleResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,90 +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
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { WishlistProductResource } from './WishlistProductResource';
|
|
24
|
-
import {
|
|
25
|
-
WishlistProductResourceFromJSON,
|
|
26
|
-
WishlistProductResourceFromJSONTyped,
|
|
27
|
-
WishlistProductResourceToJSON,
|
|
28
|
-
WishlistProductResourceToJSONTyped,
|
|
29
|
-
} from './WishlistProductResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedWishlistProductResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedWishlistProductResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<WishlistProductResource>}
|
|
40
|
-
* @memberof PaginatedWishlistProductResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<WishlistProductResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedWishlistProductResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedWishlistProductResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedWishlistProductResourceResponse(value: object): value is PaginatedWishlistProductResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedWishlistProductResourceResponseFromJSON(json: any): PaginatedWishlistProductResourceResponse {
|
|
61
|
-
return PaginatedWishlistProductResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedWishlistProductResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistProductResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(WishlistProductResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedWishlistProductResourceResponseToJSON(json: any): PaginatedWishlistProductResourceResponse {
|
|
76
|
-
return PaginatedWishlistProductResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedWishlistProductResourceResponseToJSONTyped(value?: PaginatedWishlistProductResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(WishlistProductResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,66 +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 WishlistCheckResource
|
|
20
|
-
*/
|
|
21
|
-
export interface WishlistCheckResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
* @memberof WishlistCheckResource
|
|
26
|
-
*/
|
|
27
|
-
inWishlist: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the WishlistCheckResource interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfWishlistCheckResource(value: object): value is WishlistCheckResource {
|
|
34
|
-
if (!('inWishlist' in value) || value['inWishlist'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function WishlistCheckResourceFromJSON(json: any): WishlistCheckResource {
|
|
39
|
-
return WishlistCheckResourceFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function WishlistCheckResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResource {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'inWishlist': json['in_wishlist'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function WishlistCheckResourceToJSON(json: any): WishlistCheckResource {
|
|
53
|
-
return WishlistCheckResourceToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function WishlistCheckResourceToJSONTyped(value?: WishlistCheckResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'in_wishlist': value['inWishlist'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|