@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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +8 -2
  3. package/dist/models/PaginatedWishlistListResourceResponse.d.ts +40 -0
  4. package/dist/models/PaginatedWishlistListResourceResponse.js +57 -0
  5. package/dist/models/PaginatedWishlistResourceResponse.d.ts +40 -0
  6. package/dist/models/PaginatedWishlistResourceResponse.js +57 -0
  7. package/dist/models/WishlistListResource.d.ts +57 -0
  8. package/dist/models/WishlistListResource.js +66 -0
  9. package/dist/models/WishlistListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/WishlistListResourceArrayResponse.js +50 -0
  11. package/dist/models/WishlistResource.d.ts +63 -0
  12. package/dist/models/WishlistResource.js +68 -0
  13. package/dist/models/WishlistResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/WishlistResourceArrayResponse.js +50 -0
  15. package/dist/models/index.d.ts +6 -0
  16. package/dist/models/index.js +6 -0
  17. package/docs/PaginatedWishlistListResourceResponse.md +36 -0
  18. package/docs/PaginatedWishlistResourceResponse.md +36 -0
  19. package/docs/WishlistListResource.md +42 -0
  20. package/docs/WishlistListResourceArrayResponse.md +34 -0
  21. package/docs/WishlistResource.md +44 -0
  22. package/docs/WishlistResourceArrayResponse.md +34 -0
  23. package/package.json +1 -1
  24. package/src/models/PaginatedWishlistListResourceResponse.ts +90 -0
  25. package/src/models/PaginatedWishlistResourceResponse.ts +90 -0
  26. package/src/models/WishlistListResource.ts +109 -0
  27. package/src/models/WishlistListResourceArrayResponse.ts +73 -0
  28. package/src/models/WishlistResource.ts +117 -0
  29. package/src/models/WishlistResourceArrayResponse.ts +73 -0
  30. package/src/models/index.ts +6 -0
@@ -141,6 +141,8 @@ docs/PaginatedSupplierResourceResponse.md
141
141
  docs/PaginatedTagListResourceResponse.md
142
142
  docs/PaginatedTagLiteResourceResponse.md
143
143
  docs/PaginatedTagResourceResponse.md
144
+ docs/PaginatedWishlistListResourceResponse.md
145
+ docs/PaginatedWishlistResourceResponse.md
144
146
  docs/PagingMetadata.md
145
147
  docs/PreviewAutomationRulesProductCategoryRequest.md
146
148
  docs/PreviewAutomationRulesResource.md
@@ -267,6 +269,10 @@ docs/UpdateSiteNotificationRequest.md
267
269
  docs/UpdateSiteRequest.md
268
270
  docs/UpdateSupplierRequest.md
269
271
  docs/UpdateTagRequest.md
272
+ docs/WishlistListResource.md
273
+ docs/WishlistListResourceArrayResponse.md
274
+ docs/WishlistResource.md
275
+ docs/WishlistResourceArrayResponse.md
270
276
  package.json
271
277
  src/apis/AssetApi.ts
272
278
  src/apis/AttributeApi.ts
@@ -416,6 +422,8 @@ src/models/PaginatedSupplierResourceResponse.ts
416
422
  src/models/PaginatedTagListResourceResponse.ts
417
423
  src/models/PaginatedTagLiteResourceResponse.ts
418
424
  src/models/PaginatedTagResourceResponse.ts
425
+ src/models/PaginatedWishlistListResourceResponse.ts
426
+ src/models/PaginatedWishlistResourceResponse.ts
419
427
  src/models/PagingMetadata.ts
420
428
  src/models/PreviewAutomationRulesProductCategoryRequest.ts
421
429
  src/models/PreviewAutomationRulesResource.ts
@@ -535,6 +543,10 @@ src/models/UpdateSiteNotificationRequest.ts
535
543
  src/models/UpdateSiteRequest.ts
536
544
  src/models/UpdateSupplierRequest.ts
537
545
  src/models/UpdateTagRequest.ts
546
+ src/models/WishlistListResource.ts
547
+ src/models/WishlistListResourceArrayResponse.ts
548
+ src/models/WishlistResource.ts
549
+ src/models/WishlistResourceArrayResponse.ts
538
550
  src/models/index.ts
539
551
  src/runtime.ts
540
552
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.599
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.600
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -291,6 +291,8 @@ All URIs are relative to *http://localhost/api*
291
291
  - [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
292
292
  - [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
293
293
  - [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
294
+ - [PaginatedWishlistListResourceResponse](docs/PaginatedWishlistListResourceResponse.md)
295
+ - [PaginatedWishlistResourceResponse](docs/PaginatedWishlistResourceResponse.md)
294
296
  - [PagingMetadata](docs/PagingMetadata.md)
295
297
  - [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
296
298
  - [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
@@ -410,6 +412,10 @@ All URIs are relative to *http://localhost/api*
410
412
  - [UpdateSiteRequest](docs/UpdateSiteRequest.md)
411
413
  - [UpdateSupplierRequest](docs/UpdateSupplierRequest.md)
412
414
  - [UpdateTagRequest](docs/UpdateTagRequest.md)
415
+ - [WishlistListResource](docs/WishlistListResource.md)
416
+ - [WishlistListResourceArrayResponse](docs/WishlistListResourceArrayResponse.md)
417
+ - [WishlistResource](docs/WishlistResource.md)
418
+ - [WishlistResourceArrayResponse](docs/WishlistResourceArrayResponse.md)
413
419
 
414
420
  ### Authorization
415
421
 
@@ -423,7 +429,7 @@ and is automatically generated by the
423
429
  [OpenAPI Generator](https://openapi-generator.tech) project:
424
430
 
425
431
  - API version: `1.0.0`
426
- - Package version: `0.0.599`
432
+ - Package version: `0.0.600`
427
433
  - Generator version: `7.18.0`
428
434
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
429
435
 
@@ -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 { WishlistListResource } from './WishlistListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedWishlistListResourceResponse
18
+ */
19
+ export interface PaginatedWishlistListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<WishlistListResource>}
23
+ * @memberof PaginatedWishlistListResourceResponse
24
+ */
25
+ data: Array<WishlistListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedWishlistListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedWishlistListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedWishlistListResourceResponse(value: object): value is PaginatedWishlistListResourceResponse;
37
+ export declare function PaginatedWishlistListResourceResponseFromJSON(json: any): PaginatedWishlistListResourceResponse;
38
+ export declare function PaginatedWishlistListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistListResourceResponse;
39
+ export declare function PaginatedWishlistListResourceResponseToJSON(json: any): PaginatedWishlistListResourceResponse;
40
+ export declare function PaginatedWishlistListResourceResponseToJSONTyped(value?: PaginatedWishlistListResourceResponse | 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.instanceOfPaginatedWishlistListResourceResponse = instanceOfPaginatedWishlistListResourceResponse;
17
+ exports.PaginatedWishlistListResourceResponseFromJSON = PaginatedWishlistListResourceResponseFromJSON;
18
+ exports.PaginatedWishlistListResourceResponseFromJSONTyped = PaginatedWishlistListResourceResponseFromJSONTyped;
19
+ exports.PaginatedWishlistListResourceResponseToJSON = PaginatedWishlistListResourceResponseToJSON;
20
+ exports.PaginatedWishlistListResourceResponseToJSONTyped = PaginatedWishlistListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var WishlistListResource_1 = require("./WishlistListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedWishlistListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedWishlistListResourceResponse(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 PaginatedWishlistListResourceResponseFromJSON(json) {
34
+ return PaginatedWishlistListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedWishlistListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(WishlistListResource_1.WishlistListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedWishlistListResourceResponseToJSON(json) {
46
+ return PaginatedWishlistListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedWishlistListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(WishlistListResource_1.WishlistListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -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 { WishlistResource } from './WishlistResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedWishlistResourceResponse
18
+ */
19
+ export interface PaginatedWishlistResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<WishlistResource>}
23
+ * @memberof PaginatedWishlistResourceResponse
24
+ */
25
+ data: Array<WishlistResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedWishlistResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedWishlistResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedWishlistResourceResponse(value: object): value is PaginatedWishlistResourceResponse;
37
+ export declare function PaginatedWishlistResourceResponseFromJSON(json: any): PaginatedWishlistResourceResponse;
38
+ export declare function PaginatedWishlistResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistResourceResponse;
39
+ export declare function PaginatedWishlistResourceResponseToJSON(json: any): PaginatedWishlistResourceResponse;
40
+ export declare function PaginatedWishlistResourceResponseToJSONTyped(value?: PaginatedWishlistResourceResponse | 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.instanceOfPaginatedWishlistResourceResponse = instanceOfPaginatedWishlistResourceResponse;
17
+ exports.PaginatedWishlistResourceResponseFromJSON = PaginatedWishlistResourceResponseFromJSON;
18
+ exports.PaginatedWishlistResourceResponseFromJSONTyped = PaginatedWishlistResourceResponseFromJSONTyped;
19
+ exports.PaginatedWishlistResourceResponseToJSON = PaginatedWishlistResourceResponseToJSON;
20
+ exports.PaginatedWishlistResourceResponseToJSONTyped = PaginatedWishlistResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var WishlistResource_1 = require("./WishlistResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedWishlistResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedWishlistResourceResponse(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 PaginatedWishlistResourceResponseFromJSON(json) {
34
+ return PaginatedWishlistResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedWishlistResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(WishlistResource_1.WishlistResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedWishlistResourceResponseToJSON(json) {
46
+ return PaginatedWishlistResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedWishlistResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(WishlistResource_1.WishlistResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,57 @@
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 { ProductChildLiteResource } from './ProductChildLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WishlistListResource
17
+ */
18
+ export interface WishlistListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof WishlistListResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof WishlistListResource
29
+ */
30
+ customerId: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof WishlistListResource
35
+ */
36
+ productChildId: number;
37
+ /**
38
+ *
39
+ * @type {ProductChildLiteResource}
40
+ * @memberof WishlistListResource
41
+ */
42
+ productChild: ProductChildLiteResource | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof WishlistListResource
47
+ */
48
+ createdAt?: string | null;
49
+ }
50
+ /**
51
+ * Check if a given object implements the WishlistListResource interface.
52
+ */
53
+ export declare function instanceOfWishlistListResource(value: object): value is WishlistListResource;
54
+ export declare function WishlistListResourceFromJSON(json: any): WishlistListResource;
55
+ export declare function WishlistListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistListResource;
56
+ export declare function WishlistListResourceToJSON(json: any): WishlistListResource;
57
+ export declare function WishlistListResourceToJSONTyped(value?: WishlistListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfWishlistListResource = instanceOfWishlistListResource;
17
+ exports.WishlistListResourceFromJSON = WishlistListResourceFromJSON;
18
+ exports.WishlistListResourceFromJSONTyped = WishlistListResourceFromJSONTyped;
19
+ exports.WishlistListResourceToJSON = WishlistListResourceToJSON;
20
+ exports.WishlistListResourceToJSONTyped = WishlistListResourceToJSONTyped;
21
+ var ProductChildLiteResource_1 = require("./ProductChildLiteResource");
22
+ /**
23
+ * Check if a given object implements the WishlistListResource interface.
24
+ */
25
+ function instanceOfWishlistListResource(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 WishlistListResourceFromJSON(json) {
37
+ return WishlistListResourceFromJSONTyped(json, false);
38
+ }
39
+ function WishlistListResourceFromJSONTyped(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
+ };
50
+ }
51
+ function WishlistListResourceToJSON(json) {
52
+ return WishlistListResourceToJSONTyped(json, false);
53
+ }
54
+ function WishlistListResourceToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'customer_id': value['customerId'],
62
+ 'product_child_id': value['productChildId'],
63
+ 'product_child': (0, ProductChildLiteResource_1.ProductChildLiteResourceToJSON)(value['productChild']),
64
+ 'created_at': value['createdAt'],
65
+ };
66
+ }
@@ -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 { WishlistListResource } from './WishlistListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WishlistListResourceArrayResponse
17
+ */
18
+ export interface WishlistListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<WishlistListResource>}
22
+ * @memberof WishlistListResourceArrayResponse
23
+ */
24
+ data?: Array<WishlistListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the WishlistListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfWishlistListResourceArrayResponse(value: object): value is WishlistListResourceArrayResponse;
30
+ export declare function WishlistListResourceArrayResponseFromJSON(json: any): WishlistListResourceArrayResponse;
31
+ export declare function WishlistListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistListResourceArrayResponse;
32
+ export declare function WishlistListResourceArrayResponseToJSON(json: any): WishlistListResourceArrayResponse;
33
+ export declare function WishlistListResourceArrayResponseToJSONTyped(value?: WishlistListResourceArrayResponse | 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.instanceOfWishlistListResourceArrayResponse = instanceOfWishlistListResourceArrayResponse;
17
+ exports.WishlistListResourceArrayResponseFromJSON = WishlistListResourceArrayResponseFromJSON;
18
+ exports.WishlistListResourceArrayResponseFromJSONTyped = WishlistListResourceArrayResponseFromJSONTyped;
19
+ exports.WishlistListResourceArrayResponseToJSON = WishlistListResourceArrayResponseToJSON;
20
+ exports.WishlistListResourceArrayResponseToJSONTyped = WishlistListResourceArrayResponseToJSONTyped;
21
+ var WishlistListResource_1 = require("./WishlistListResource");
22
+ /**
23
+ * Check if a given object implements the WishlistListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfWishlistListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function WishlistListResourceArrayResponseFromJSON(json) {
29
+ return WishlistListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function WishlistListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(WishlistListResource_1.WishlistListResourceFromJSON)),
37
+ };
38
+ }
39
+ function WishlistListResourceArrayResponseToJSON(json) {
40
+ return WishlistListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function WishlistListResourceArrayResponseToJSONTyped(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(WishlistListResource_1.WishlistListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,63 @@
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 { ProductChildLiteResource } from './ProductChildLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WishlistResource
17
+ */
18
+ export interface WishlistResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof WishlistResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof WishlistResource
29
+ */
30
+ customerId: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof WishlistResource
35
+ */
36
+ productChildId: number;
37
+ /**
38
+ *
39
+ * @type {ProductChildLiteResource}
40
+ * @memberof WishlistResource
41
+ */
42
+ productChild: ProductChildLiteResource | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof WishlistResource
47
+ */
48
+ createdAt?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof WishlistResource
53
+ */
54
+ updatedAt?: string | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the WishlistResource interface.
58
+ */
59
+ export declare function instanceOfWishlistResource(value: object): value is WishlistResource;
60
+ export declare function WishlistResourceFromJSON(json: any): WishlistResource;
61
+ export declare function WishlistResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistResource;
62
+ export declare function WishlistResourceToJSON(json: any): WishlistResource;
63
+ export declare function WishlistResourceToJSONTyped(value?: WishlistResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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
+ }
@@ -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 { 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;