@digital8/lighting-illusions-ts-sdk 0.0.633 → 0.0.635

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 (65) hide show
  1. package/.openapi-generator/FILES +22 -8
  2. package/README.md +18 -6
  3. package/dist/apis/DefinitionApi.d.ts +85 -0
  4. package/dist/apis/DefinitionApi.js +355 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/DefinitionListResource.d.ts +38 -0
  8. package/dist/models/DefinitionListResource.js +55 -0
  9. package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
  11. package/dist/models/DefinitionResource.d.ts +44 -0
  12. package/dist/models/DefinitionResource.js +59 -0
  13. package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/DefinitionResourceArrayResponse.js +50 -0
  15. package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
  16. package/dist/models/GetAllDefinitionRequest.js +76 -0
  17. package/dist/models/IndexDefinitionRequest.d.ts +92 -0
  18. package/dist/models/IndexDefinitionRequest.js +80 -0
  19. package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
  21. package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
  23. package/dist/models/StoreDefinitionRequest.d.ts +38 -0
  24. package/dist/models/StoreDefinitionRequest.js +55 -0
  25. package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
  26. package/dist/models/UpdateDefinitionRequest.js +55 -0
  27. package/dist/models/index.d.ts +10 -4
  28. package/dist/models/index.js +10 -4
  29. package/docs/DefinitionApi.md +407 -0
  30. package/docs/{WishlistToggleResource.md → DefinitionListResource.md} +8 -8
  31. package/docs/{WishlistToggleResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
  32. package/docs/DefinitionResource.md +38 -0
  33. package/docs/{WishlistCheckResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
  34. package/docs/GetAllDefinitionRequest.md +44 -0
  35. package/docs/IndexDefinitionRequest.md +48 -0
  36. package/docs/PaginatedDefinitionListResourceResponse.md +36 -0
  37. package/docs/PaginatedDefinitionResourceResponse.md +36 -0
  38. package/docs/{WishlistCheckResource.md → StoreDefinitionRequest.md} +8 -6
  39. package/docs/UpdateDefinitionRequest.md +36 -0
  40. package/package.json +1 -1
  41. package/src/apis/DefinitionApi.ts +286 -0
  42. package/src/apis/index.ts +1 -0
  43. package/src/models/DefinitionListResource.ts +75 -0
  44. package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
  45. package/src/models/DefinitionResource.ts +84 -0
  46. package/src/models/DefinitionResourceArrayResponse.ts +73 -0
  47. package/src/models/GetAllDefinitionRequest.ts +127 -0
  48. package/src/models/IndexDefinitionRequest.ts +143 -0
  49. package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
  50. package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
  51. package/src/models/StoreDefinitionRequest.ts +75 -0
  52. package/src/models/UpdateDefinitionRequest.ts +75 -0
  53. package/src/models/index.ts +10 -4
  54. package/dist/models/WishlistCheckResource.d.ts +0 -32
  55. package/dist/models/WishlistCheckResource.js +0 -51
  56. package/dist/models/WishlistCheckResourceArrayResponse.d.ts +0 -33
  57. package/dist/models/WishlistCheckResourceArrayResponse.js +0 -50
  58. package/dist/models/WishlistToggleResource.d.ts +0 -38
  59. package/dist/models/WishlistToggleResource.js +0 -55
  60. package/dist/models/WishlistToggleResourceArrayResponse.d.ts +0 -33
  61. package/dist/models/WishlistToggleResourceArrayResponse.js +0 -50
  62. package/src/models/WishlistCheckResource.ts +0 -66
  63. package/src/models/WishlistCheckResourceArrayResponse.ts +0 -73
  64. package/src/models/WishlistToggleResource.ts +0 -75
  65. package/src/models/WishlistToggleResourceArrayResponse.ts +0 -73
@@ -35,6 +35,10 @@ export * from './CategoryAutomationFieldType';
35
35
  export * from './CategoryAutomationRuleResource';
36
36
  export * from './CategoryAutomationRuleResourceArrayResponse';
37
37
  export * from './CouponDiscountType';
38
+ export * from './DefinitionListResource';
39
+ export * from './DefinitionListResourceArrayResponse';
40
+ export * from './DefinitionResource';
41
+ export * from './DefinitionResourceArrayResponse';
38
42
  export * from './DescriptionResource';
39
43
  export * from './DescriptionResourceArrayResponse';
40
44
  export * from './DestroyAttributeValueRequest';
@@ -59,6 +63,7 @@ export * from './ExternalApiProvider';
59
63
  export * from './ExternalApiSyncStatus';
60
64
  export * from './GenericResponse';
61
65
  export * from './GetAllAttributeRequest';
66
+ export * from './GetAllDefinitionRequest';
62
67
  export * from './GetAllDocumentRequest';
63
68
  export * from './GetAllGoogleCategoryRequest';
64
69
  export * from './GetAllOverlayTemplateRequest';
@@ -78,6 +83,7 @@ export * from './GlobalSearchResponseResourceArrayResponse';
78
83
  export * from './GoogleCategoryResource';
79
84
  export * from './GoogleCategoryResourceArrayResponse';
80
85
  export * from './IndexAttributeRequest';
86
+ export * from './IndexDefinitionRequest';
81
87
  export * from './IndexDocumentRequest';
82
88
  export * from './IndexExternalApiLogRequest';
83
89
  export * from './IndexOverlayTemplateRequest';
@@ -106,6 +112,8 @@ export * from './PaginatedAttributeListResourceResponse';
106
112
  export * from './PaginatedAttributeLiteResourceResponse';
107
113
  export * from './PaginatedAttributeProductTypeRelationResourceResponse';
108
114
  export * from './PaginatedAttributeResourceResponse';
115
+ export * from './PaginatedDefinitionListResourceResponse';
116
+ export * from './PaginatedDefinitionResourceResponse';
109
117
  export * from './PaginatedDocumentResourceResponse';
110
118
  export * from './PaginatedExternalApiLogListResourceResponse';
111
119
  export * from './PaginatedExternalApiLogResourceResponse';
@@ -209,6 +217,7 @@ export * from './SiteResourceArrayResponse';
209
217
  export * from './StoreAssetFileRequest';
210
218
  export * from './StoreAttributeRequest';
211
219
  export * from './StoreAttributeValueRequest';
220
+ export * from './StoreDefinitionRequest';
212
221
  export * from './StoreDocumentFileRequest';
213
222
  export * from './StoreDocumentRequest';
214
223
  export * from './StoreOverlayTemplateAssetRequest';
@@ -244,6 +253,7 @@ export * from './TagResourceArrayResponse';
244
253
  export * from './TagType';
245
254
  export * from './UpdateAttributeRequest';
246
255
  export * from './UpdateAttributeValueRequest';
256
+ export * from './UpdateDefinitionRequest';
247
257
  export * from './UpdateDocumentRequest';
248
258
  export * from './UpdateFilterOrderAttributeRequest';
249
259
  export * from './UpdateFilterOrderAttributeRequestValuesInner';
@@ -260,7 +270,3 @@ export * from './UpdateSiteNotificationRequest';
260
270
  export * from './UpdateSiteRequest';
261
271
  export * from './UpdateSupplierRequest';
262
272
  export * from './UpdateTagRequest';
263
- export * from './WishlistCheckResource';
264
- export * from './WishlistCheckResourceArrayResponse';
265
- export * from './WishlistToggleResource';
266
- export * from './WishlistToggleResourceArrayResponse';
@@ -1,32 +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 WishlistCheckResource
16
- */
17
- export interface WishlistCheckResource {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof WishlistCheckResource
22
- */
23
- inWishlist: boolean;
24
- }
25
- /**
26
- * Check if a given object implements the WishlistCheckResource interface.
27
- */
28
- export declare function instanceOfWishlistCheckResource(value: object): value is WishlistCheckResource;
29
- export declare function WishlistCheckResourceFromJSON(json: any): WishlistCheckResource;
30
- export declare function WishlistCheckResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResource;
31
- export declare function WishlistCheckResourceToJSON(json: any): WishlistCheckResource;
32
- export declare function WishlistCheckResourceToJSONTyped(value?: WishlistCheckResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +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.instanceOfWishlistCheckResource = instanceOfWishlistCheckResource;
17
- exports.WishlistCheckResourceFromJSON = WishlistCheckResourceFromJSON;
18
- exports.WishlistCheckResourceFromJSONTyped = WishlistCheckResourceFromJSONTyped;
19
- exports.WishlistCheckResourceToJSON = WishlistCheckResourceToJSON;
20
- exports.WishlistCheckResourceToJSONTyped = WishlistCheckResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the WishlistCheckResource interface.
23
- */
24
- function instanceOfWishlistCheckResource(value) {
25
- if (!('inWishlist' in value) || value['inWishlist'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function WishlistCheckResourceFromJSON(json) {
30
- return WishlistCheckResourceFromJSONTyped(json, false);
31
- }
32
- function WishlistCheckResourceFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'inWishlist': json['in_wishlist'],
38
- };
39
- }
40
- function WishlistCheckResourceToJSON(json) {
41
- return WishlistCheckResourceToJSONTyped(json, false);
42
- }
43
- function WishlistCheckResourceToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'in_wishlist': value['inWishlist'],
50
- };
51
- }
@@ -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 { WishlistCheckResource } from './WishlistCheckResource';
13
- /**
14
- *
15
- * @export
16
- * @interface WishlistCheckResourceArrayResponse
17
- */
18
- export interface WishlistCheckResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<WishlistCheckResource>}
22
- * @memberof WishlistCheckResourceArrayResponse
23
- */
24
- data?: Array<WishlistCheckResource>;
25
- }
26
- /**
27
- * Check if a given object implements the WishlistCheckResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfWishlistCheckResourceArrayResponse(value: object): value is WishlistCheckResourceArrayResponse;
30
- export declare function WishlistCheckResourceArrayResponseFromJSON(json: any): WishlistCheckResourceArrayResponse;
31
- export declare function WishlistCheckResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResourceArrayResponse;
32
- export declare function WishlistCheckResourceArrayResponseToJSON(json: any): WishlistCheckResourceArrayResponse;
33
- export declare function WishlistCheckResourceArrayResponseToJSONTyped(value?: WishlistCheckResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfWishlistCheckResourceArrayResponse = instanceOfWishlistCheckResourceArrayResponse;
17
- exports.WishlistCheckResourceArrayResponseFromJSON = WishlistCheckResourceArrayResponseFromJSON;
18
- exports.WishlistCheckResourceArrayResponseFromJSONTyped = WishlistCheckResourceArrayResponseFromJSONTyped;
19
- exports.WishlistCheckResourceArrayResponseToJSON = WishlistCheckResourceArrayResponseToJSON;
20
- exports.WishlistCheckResourceArrayResponseToJSONTyped = WishlistCheckResourceArrayResponseToJSONTyped;
21
- var WishlistCheckResource_1 = require("./WishlistCheckResource");
22
- /**
23
- * Check if a given object implements the WishlistCheckResourceArrayResponse interface.
24
- */
25
- function instanceOfWishlistCheckResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function WishlistCheckResourceArrayResponseFromJSON(json) {
29
- return WishlistCheckResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function WishlistCheckResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(WishlistCheckResource_1.WishlistCheckResourceFromJSON)),
37
- };
38
- }
39
- function WishlistCheckResourceArrayResponseToJSON(json) {
40
- return WishlistCheckResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function WishlistCheckResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(WishlistCheckResource_1.WishlistCheckResourceToJSON)),
49
- };
50
- }
@@ -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,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
-
@@ -1,73 +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 { WishlistCheckResource } from './WishlistCheckResource';
17
- import {
18
- WishlistCheckResourceFromJSON,
19
- WishlistCheckResourceFromJSONTyped,
20
- WishlistCheckResourceToJSON,
21
- WishlistCheckResourceToJSONTyped,
22
- } from './WishlistCheckResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface WishlistCheckResourceArrayResponse
28
- */
29
- export interface WishlistCheckResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<WishlistCheckResource>}
33
- * @memberof WishlistCheckResourceArrayResponse
34
- */
35
- data?: Array<WishlistCheckResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the WishlistCheckResourceArrayResponse interface.
40
- */
41
- export function instanceOfWishlistCheckResourceArrayResponse(value: object): value is WishlistCheckResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function WishlistCheckResourceArrayResponseFromJSON(json: any): WishlistCheckResourceArrayResponse {
46
- return WishlistCheckResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function WishlistCheckResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(WishlistCheckResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function WishlistCheckResourceArrayResponseToJSON(json: any): WishlistCheckResourceArrayResponse {
60
- return WishlistCheckResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function WishlistCheckResourceArrayResponseToJSONTyped(value?: WishlistCheckResourceArrayResponse | 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(WishlistCheckResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,75 +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 WishlistToggleResource
20
- */
21
- export interface WishlistToggleResource {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof WishlistToggleResource
26
- */
27
- action: string;
28
- /**
29
- *
30
- * @type {Array<number>}
31
- * @memberof WishlistToggleResource
32
- */
33
- product: Array<number>;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the WishlistToggleResource interface.
38
- */
39
- export function instanceOfWishlistToggleResource(value: object): value is WishlistToggleResource {
40
- if (!('action' in value) || value['action'] === undefined) return false;
41
- if (!('product' in value) || value['product'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function WishlistToggleResourceFromJSON(json: any): WishlistToggleResource {
46
- return WishlistToggleResourceFromJSONTyped(json, false);
47
- }
48
-
49
- export function WishlistToggleResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResource {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'action': json['action'],
56
- 'product': json['product'],
57
- };
58
- }
59
-
60
- export function WishlistToggleResourceToJSON(json: any): WishlistToggleResource {
61
- return WishlistToggleResourceToJSONTyped(json, false);
62
- }
63
-
64
- export function WishlistToggleResourceToJSONTyped(value?: WishlistToggleResource | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'action': value['action'],
72
- 'product': value['product'],
73
- };
74
- }
75
-