@digital8/lighting-illusions-ts-sdk 0.0.599 → 0.0.600
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 +12 -0
- package/README.md +8 -2
- package/dist/models/PaginatedWishlistListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedWishlistListResourceResponse.js +57 -0
- package/dist/models/PaginatedWishlistResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedWishlistResourceResponse.js +57 -0
- package/dist/models/WishlistListResource.d.ts +57 -0
- package/dist/models/WishlistListResource.js +66 -0
- package/dist/models/WishlistListResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistListResourceArrayResponse.js +50 -0
- package/dist/models/WishlistResource.d.ts +63 -0
- package/dist/models/WishlistResource.js +68 -0
- package/dist/models/WishlistResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/PaginatedWishlistListResourceResponse.md +36 -0
- package/docs/PaginatedWishlistResourceResponse.md +36 -0
- package/docs/WishlistListResource.md +42 -0
- package/docs/WishlistListResourceArrayResponse.md +34 -0
- package/docs/WishlistResource.md +44 -0
- package/docs/WishlistResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/PaginatedWishlistListResourceResponse.ts +90 -0
- package/src/models/PaginatedWishlistResourceResponse.ts +90 -0
- package/src/models/WishlistListResource.ts +109 -0
- package/src/models/WishlistListResourceArrayResponse.ts +73 -0
- package/src/models/WishlistResource.ts +117 -0
- package/src/models/WishlistResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +6 -0
|
@@ -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.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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -131,6 +131,8 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
131
131
|
export * from './PaginatedTagListResourceResponse';
|
|
132
132
|
export * from './PaginatedTagLiteResourceResponse';
|
|
133
133
|
export * from './PaginatedTagResourceResponse';
|
|
134
|
+
export * from './PaginatedWishlistListResourceResponse';
|
|
135
|
+
export * from './PaginatedWishlistResourceResponse';
|
|
134
136
|
export * from './PagingMetadata';
|
|
135
137
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
136
138
|
export * from './PreviewAutomationRulesResource';
|
|
@@ -250,3 +252,7 @@ export * from './UpdateSiteNotificationRequest';
|
|
|
250
252
|
export * from './UpdateSiteRequest';
|
|
251
253
|
export * from './UpdateSupplierRequest';
|
|
252
254
|
export * from './UpdateTagRequest';
|
|
255
|
+
export * from './WishlistListResource';
|
|
256
|
+
export * from './WishlistListResourceArrayResponse';
|
|
257
|
+
export * from './WishlistResource';
|
|
258
|
+
export * from './WishlistResourceArrayResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -149,6 +149,8 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
149
149
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
150
150
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
151
151
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
152
|
+
__exportStar(require("./PaginatedWishlistListResourceResponse"), exports);
|
|
153
|
+
__exportStar(require("./PaginatedWishlistResourceResponse"), exports);
|
|
152
154
|
__exportStar(require("./PagingMetadata"), exports);
|
|
153
155
|
__exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
|
|
154
156
|
__exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
@@ -268,3 +270,7 @@ __exportStar(require("./UpdateSiteNotificationRequest"), exports);
|
|
|
268
270
|
__exportStar(require("./UpdateSiteRequest"), exports);
|
|
269
271
|
__exportStar(require("./UpdateSupplierRequest"), exports);
|
|
270
272
|
__exportStar(require("./UpdateTagRequest"), exports);
|
|
273
|
+
__exportStar(require("./WishlistListResource"), exports);
|
|
274
|
+
__exportStar(require("./WishlistListResourceArrayResponse"), exports);
|
|
275
|
+
__exportStar(require("./WishlistResource"), exports);
|
|
276
|
+
__exportStar(require("./WishlistResourceArrayResponse"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedWishlistListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<WishlistListResource>](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
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedWishlistResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<WishlistResource>](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
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# WishlistListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<WishlistListResource>](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
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# WishlistResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<WishlistResource>](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
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { WishlistListResource } from './WishlistListResource';
|
|
17
|
+
import {
|
|
18
|
+
WishlistListResourceFromJSON,
|
|
19
|
+
WishlistListResourceFromJSONTyped,
|
|
20
|
+
WishlistListResourceToJSON,
|
|
21
|
+
WishlistListResourceToJSONTyped,
|
|
22
|
+
} from './WishlistListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WishlistListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface WishlistListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<WishlistListResource>}
|
|
33
|
+
* @memberof WishlistListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<WishlistListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the WishlistListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfWishlistListResourceArrayResponse(value: object): value is WishlistListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WishlistListResourceArrayResponseFromJSON(json: any): WishlistListResourceArrayResponse {
|
|
46
|
+
return WishlistListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function WishlistListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(WishlistListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function WishlistListResourceArrayResponseToJSON(json: any): WishlistListResourceArrayResponse {
|
|
60
|
+
return WishlistListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function WishlistListResourceArrayResponseToJSONTyped(value?: WishlistListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(WishlistListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|