@digital8/lighting-illusions-ts-sdk 0.0.600 → 0.0.602

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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +0 -12
  2. package/README.md +2 -8
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +1 -3
  5. package/dist/models/index.d.ts +0 -6
  6. package/dist/models/index.js +0 -6
  7. package/package.json +1 -1
  8. package/src/models/ExternalApiLogResource.ts +2 -3
  9. package/src/models/index.ts +0 -6
  10. package/dist/models/PaginatedWishlistListResourceResponse.d.ts +0 -40
  11. package/dist/models/PaginatedWishlistListResourceResponse.js +0 -57
  12. package/dist/models/PaginatedWishlistResourceResponse.d.ts +0 -40
  13. package/dist/models/PaginatedWishlistResourceResponse.js +0 -57
  14. package/dist/models/WishlistListResource.d.ts +0 -57
  15. package/dist/models/WishlistListResource.js +0 -66
  16. package/dist/models/WishlistListResourceArrayResponse.d.ts +0 -33
  17. package/dist/models/WishlistListResourceArrayResponse.js +0 -50
  18. package/dist/models/WishlistResource.d.ts +0 -63
  19. package/dist/models/WishlistResource.js +0 -68
  20. package/dist/models/WishlistResourceArrayResponse.d.ts +0 -33
  21. package/dist/models/WishlistResourceArrayResponse.js +0 -50
  22. package/docs/PaginatedWishlistListResourceResponse.md +0 -36
  23. package/docs/PaginatedWishlistResourceResponse.md +0 -36
  24. package/docs/WishlistListResource.md +0 -42
  25. package/docs/WishlistListResourceArrayResponse.md +0 -34
  26. package/docs/WishlistResource.md +0 -44
  27. package/docs/WishlistResourceArrayResponse.md +0 -34
  28. package/src/models/PaginatedWishlistListResourceResponse.ts +0 -90
  29. package/src/models/PaginatedWishlistResourceResponse.ts +0 -90
  30. package/src/models/WishlistListResource.ts +0 -109
  31. package/src/models/WishlistListResourceArrayResponse.ts +0 -73
  32. package/src/models/WishlistResource.ts +0 -117
  33. package/src/models/WishlistResourceArrayResponse.ts +0 -73
@@ -1,68 +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.instanceOfWishlistResource = instanceOfWishlistResource;
17
- exports.WishlistResourceFromJSON = WishlistResourceFromJSON;
18
- exports.WishlistResourceFromJSONTyped = WishlistResourceFromJSONTyped;
19
- exports.WishlistResourceToJSON = WishlistResourceToJSON;
20
- exports.WishlistResourceToJSONTyped = WishlistResourceToJSONTyped;
21
- var ProductChildLiteResource_1 = require("./ProductChildLiteResource");
22
- /**
23
- * Check if a given object implements the WishlistResource interface.
24
- */
25
- function instanceOfWishlistResource(value) {
26
- if (!('id' in value) || value['id'] === undefined)
27
- return false;
28
- if (!('customerId' in value) || value['customerId'] === undefined)
29
- return false;
30
- if (!('productChildId' in value) || value['productChildId'] === undefined)
31
- return false;
32
- if (!('productChild' in value) || value['productChild'] === undefined)
33
- return false;
34
- return true;
35
- }
36
- function WishlistResourceFromJSON(json) {
37
- return WishlistResourceFromJSONTyped(json, false);
38
- }
39
- function WishlistResourceFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'id': json['id'],
45
- 'customerId': json['customer_id'],
46
- 'productChildId': json['product_child_id'],
47
- 'productChild': (0, ProductChildLiteResource_1.ProductChildLiteResourceFromJSON)(json['product_child']),
48
- 'createdAt': json['created_at'] == null ? undefined : json['created_at'],
49
- 'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
50
- };
51
- }
52
- function WishlistResourceToJSON(json) {
53
- return WishlistResourceToJSONTyped(json, false);
54
- }
55
- function WishlistResourceToJSONTyped(value, ignoreDiscriminator) {
56
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
- if (value == null) {
58
- return value;
59
- }
60
- return {
61
- 'id': value['id'],
62
- 'customer_id': value['customerId'],
63
- 'product_child_id': value['productChildId'],
64
- 'product_child': (0, ProductChildLiteResource_1.ProductChildLiteResourceToJSON)(value['productChild']),
65
- 'created_at': value['createdAt'],
66
- 'updated_at': value['updatedAt'],
67
- };
68
- }
@@ -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 { WishlistResource } from './WishlistResource';
13
- /**
14
- *
15
- * @export
16
- * @interface WishlistResourceArrayResponse
17
- */
18
- export interface WishlistResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<WishlistResource>}
22
- * @memberof WishlistResourceArrayResponse
23
- */
24
- data?: Array<WishlistResource>;
25
- }
26
- /**
27
- * Check if a given object implements the WishlistResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfWishlistResourceArrayResponse(value: object): value is WishlistResourceArrayResponse;
30
- export declare function WishlistResourceArrayResponseFromJSON(json: any): WishlistResourceArrayResponse;
31
- export declare function WishlistResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistResourceArrayResponse;
32
- export declare function WishlistResourceArrayResponseToJSON(json: any): WishlistResourceArrayResponse;
33
- export declare function WishlistResourceArrayResponseToJSONTyped(value?: WishlistResourceArrayResponse | 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.instanceOfWishlistResourceArrayResponse = instanceOfWishlistResourceArrayResponse;
17
- exports.WishlistResourceArrayResponseFromJSON = WishlistResourceArrayResponseFromJSON;
18
- exports.WishlistResourceArrayResponseFromJSONTyped = WishlistResourceArrayResponseFromJSONTyped;
19
- exports.WishlistResourceArrayResponseToJSON = WishlistResourceArrayResponseToJSON;
20
- exports.WishlistResourceArrayResponseToJSONTyped = WishlistResourceArrayResponseToJSONTyped;
21
- var WishlistResource_1 = require("./WishlistResource");
22
- /**
23
- * Check if a given object implements the WishlistResourceArrayResponse interface.
24
- */
25
- function instanceOfWishlistResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function WishlistResourceArrayResponseFromJSON(json) {
29
- return WishlistResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function WishlistResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(WishlistResource_1.WishlistResourceFromJSON)),
37
- };
38
- }
39
- function WishlistResourceArrayResponseToJSON(json) {
40
- return WishlistResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function WishlistResourceArrayResponseToJSONTyped(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(WishlistResource_1.WishlistResourceToJSON)),
49
- };
50
- }
@@ -1,36 +0,0 @@
1
-
2
- # PaginatedWishlistListResourceResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;WishlistListResource&gt;](WishlistListResource.md)
10
- `meta` | [PagingMetadata](PagingMetadata.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { PaginatedWishlistListResourceResponse } 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 PaginatedWishlistListResourceResponse
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 PaginatedWishlistListResourceResponse
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,36 +0,0 @@
1
-
2
- # PaginatedWishlistResourceResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;WishlistResource&gt;](WishlistResource.md)
10
- `meta` | [PagingMetadata](PagingMetadata.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { PaginatedWishlistResourceResponse } 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 PaginatedWishlistResourceResponse
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 PaginatedWishlistResourceResponse
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,42 +0,0 @@
1
-
2
- # WishlistListResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `customerId` | number
11
- `productChildId` | number
12
- `productChild` | [ProductChildLiteResource](ProductChildLiteResource.md)
13
- `createdAt` | string
14
-
15
- ## Example
16
-
17
- ```typescript
18
- import type { WishlistListResource } from '@digital8/lighting-illusions-ts-sdk'
19
-
20
- // TODO: Update the object below with actual values
21
- const example = {
22
- "id": null,
23
- "customerId": null,
24
- "productChildId": null,
25
- "productChild": null,
26
- "createdAt": null,
27
- } satisfies WishlistListResource
28
-
29
- console.log(example)
30
-
31
- // Convert the instance to a JSON string
32
- const exampleJSON: string = JSON.stringify(example)
33
- console.log(exampleJSON)
34
-
35
- // Parse the JSON string back to an object
36
- const exampleParsed = JSON.parse(exampleJSON) as WishlistListResource
37
- console.log(exampleParsed)
38
- ```
39
-
40
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
-
42
-
@@ -1,34 +0,0 @@
1
-
2
- # WishlistListResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;WishlistListResource&gt;](WishlistListResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { WishlistListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies WishlistListResourceArrayResponse
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 WishlistListResourceArrayResponse
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,44 +0,0 @@
1
-
2
- # WishlistResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `customerId` | number
11
- `productChildId` | number
12
- `productChild` | [ProductChildLiteResource](ProductChildLiteResource.md)
13
- `createdAt` | string
14
- `updatedAt` | string
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { WishlistResource } from '@digital8/lighting-illusions-ts-sdk'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "id": null,
24
- "customerId": null,
25
- "productChildId": null,
26
- "productChild": null,
27
- "createdAt": null,
28
- "updatedAt": null,
29
- } satisfies WishlistResource
30
-
31
- console.log(example)
32
-
33
- // Convert the instance to a JSON string
34
- const exampleJSON: string = JSON.stringify(example)
35
- console.log(exampleJSON)
36
-
37
- // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as WishlistResource
39
- console.log(exampleParsed)
40
- ```
41
-
42
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
-
44
-
@@ -1,34 +0,0 @@
1
-
2
- # WishlistResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;WishlistResource&gt;](WishlistResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { WishlistResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies WishlistResourceArrayResponse
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 WishlistResourceArrayResponse
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 { WishlistListResource } from './WishlistListResource';
24
- import {
25
- WishlistListResourceFromJSON,
26
- WishlistListResourceFromJSONTyped,
27
- WishlistListResourceToJSON,
28
- WishlistListResourceToJSONTyped,
29
- } from './WishlistListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedWishlistListResourceResponse
35
- */
36
- export interface PaginatedWishlistListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<WishlistListResource>}
40
- * @memberof PaginatedWishlistListResourceResponse
41
- */
42
- data: Array<WishlistListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedWishlistListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedWishlistListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedWishlistListResourceResponse(value: object): value is PaginatedWishlistListResourceResponse {
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 PaginatedWishlistListResourceResponseFromJSON(json: any): PaginatedWishlistListResourceResponse {
61
- return PaginatedWishlistListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedWishlistListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(WishlistListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedWishlistListResourceResponseToJSON(json: any): PaginatedWishlistListResourceResponse {
76
- return PaginatedWishlistListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedWishlistListResourceResponseToJSONTyped(value?: PaginatedWishlistListResourceResponse | 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(WishlistListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -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 { WishlistResource } from './WishlistResource';
24
- import {
25
- WishlistResourceFromJSON,
26
- WishlistResourceFromJSONTyped,
27
- WishlistResourceToJSON,
28
- WishlistResourceToJSONTyped,
29
- } from './WishlistResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedWishlistResourceResponse
35
- */
36
- export interface PaginatedWishlistResourceResponse {
37
- /**
38
- *
39
- * @type {Array<WishlistResource>}
40
- * @memberof PaginatedWishlistResourceResponse
41
- */
42
- data: Array<WishlistResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedWishlistResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedWishlistResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedWishlistResourceResponse(value: object): value is PaginatedWishlistResourceResponse {
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 PaginatedWishlistResourceResponseFromJSON(json: any): PaginatedWishlistResourceResponse {
61
- return PaginatedWishlistResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedWishlistResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(WishlistResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedWishlistResourceResponseToJSON(json: any): PaginatedWishlistResourceResponse {
76
- return PaginatedWishlistResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedWishlistResourceResponseToJSONTyped(value?: PaginatedWishlistResourceResponse | 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(WishlistResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,109 +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 { ProductChildLiteResource } from './ProductChildLiteResource';
17
- import {
18
- ProductChildLiteResourceFromJSON,
19
- ProductChildLiteResourceFromJSONTyped,
20
- ProductChildLiteResourceToJSON,
21
- ProductChildLiteResourceToJSONTyped,
22
- } from './ProductChildLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface WishlistListResource
28
- */
29
- export interface WishlistListResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof WishlistListResource
34
- */
35
- id: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof WishlistListResource
40
- */
41
- customerId: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof WishlistListResource
46
- */
47
- productChildId: number;
48
- /**
49
- *
50
- * @type {ProductChildLiteResource}
51
- * @memberof WishlistListResource
52
- */
53
- productChild: ProductChildLiteResource | null;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof WishlistListResource
58
- */
59
- createdAt?: string | null;
60
- }
61
-
62
- /**
63
- * Check if a given object implements the WishlistListResource interface.
64
- */
65
- export function instanceOfWishlistListResource(value: object): value is WishlistListResource {
66
- if (!('id' in value) || value['id'] === undefined) return false;
67
- if (!('customerId' in value) || value['customerId'] === undefined) return false;
68
- if (!('productChildId' in value) || value['productChildId'] === undefined) return false;
69
- if (!('productChild' in value) || value['productChild'] === undefined) return false;
70
- return true;
71
- }
72
-
73
- export function WishlistListResourceFromJSON(json: any): WishlistListResource {
74
- return WishlistListResourceFromJSONTyped(json, false);
75
- }
76
-
77
- export function WishlistListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistListResource {
78
- if (json == null) {
79
- return json;
80
- }
81
- return {
82
-
83
- 'id': json['id'],
84
- 'customerId': json['customer_id'],
85
- 'productChildId': json['product_child_id'],
86
- 'productChild': ProductChildLiteResourceFromJSON(json['product_child']),
87
- 'createdAt': json['created_at'] == null ? undefined : json['created_at'],
88
- };
89
- }
90
-
91
- export function WishlistListResourceToJSON(json: any): WishlistListResource {
92
- return WishlistListResourceToJSONTyped(json, false);
93
- }
94
-
95
- export function WishlistListResourceToJSONTyped(value?: WishlistListResource | null, ignoreDiscriminator: boolean = false): any {
96
- if (value == null) {
97
- return value;
98
- }
99
-
100
- return {
101
-
102
- 'id': value['id'],
103
- 'customer_id': value['customerId'],
104
- 'product_child_id': value['productChildId'],
105
- 'product_child': ProductChildLiteResourceToJSON(value['productChild']),
106
- 'created_at': value['createdAt'],
107
- };
108
- }
109
-