@digital8/lighting-illusions-ts-sdk 0.0.621 → 0.0.622

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 (37) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +9 -2
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +1 -3
  5. package/dist/models/PaginatedWishlistProductResourceResponse.d.ts +40 -0
  6. package/dist/models/PaginatedWishlistProductResourceResponse.js +57 -0
  7. package/dist/models/WishlistCheckResource.d.ts +32 -0
  8. package/dist/models/WishlistCheckResource.js +51 -0
  9. package/dist/models/WishlistCheckResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/WishlistCheckResourceArrayResponse.js +50 -0
  11. package/dist/models/WishlistProductResource.d.ts +122 -0
  12. package/dist/models/WishlistProductResource.js +105 -0
  13. package/dist/models/WishlistProductResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/WishlistProductResourceArrayResponse.js +50 -0
  15. package/dist/models/WishlistToggleResource.d.ts +38 -0
  16. package/dist/models/WishlistToggleResource.js +55 -0
  17. package/dist/models/WishlistToggleResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/WishlistToggleResourceArrayResponse.js +50 -0
  19. package/dist/models/index.d.ts +7 -0
  20. package/dist/models/index.js +7 -0
  21. package/docs/PaginatedWishlistProductResourceResponse.md +36 -0
  22. package/docs/WishlistCheckResource.md +34 -0
  23. package/docs/WishlistCheckResourceArrayResponse.md +34 -0
  24. package/docs/WishlistProductResource.md +64 -0
  25. package/docs/WishlistProductResourceArrayResponse.md +34 -0
  26. package/docs/WishlistToggleResource.md +36 -0
  27. package/docs/WishlistToggleResourceArrayResponse.md +34 -0
  28. package/package.json +1 -1
  29. package/src/models/ExternalApiLogResource.ts +2 -3
  30. package/src/models/PaginatedWishlistProductResourceResponse.ts +90 -0
  31. package/src/models/WishlistCheckResource.ts +66 -0
  32. package/src/models/WishlistCheckResourceArrayResponse.ts +73 -0
  33. package/src/models/WishlistProductResource.ts +198 -0
  34. package/src/models/WishlistProductResourceArrayResponse.ts +73 -0
  35. package/src/models/WishlistToggleResource.ts +75 -0
  36. package/src/models/WishlistToggleResourceArrayResponse.ts +73 -0
  37. package/src/models/index.ts +7 -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.instanceOfWishlistProductResourceArrayResponse = instanceOfWishlistProductResourceArrayResponse;
17
+ exports.WishlistProductResourceArrayResponseFromJSON = WishlistProductResourceArrayResponseFromJSON;
18
+ exports.WishlistProductResourceArrayResponseFromJSONTyped = WishlistProductResourceArrayResponseFromJSONTyped;
19
+ exports.WishlistProductResourceArrayResponseToJSON = WishlistProductResourceArrayResponseToJSON;
20
+ exports.WishlistProductResourceArrayResponseToJSONTyped = WishlistProductResourceArrayResponseToJSONTyped;
21
+ var WishlistProductResource_1 = require("./WishlistProductResource");
22
+ /**
23
+ * Check if a given object implements the WishlistProductResourceArrayResponse interface.
24
+ */
25
+ function instanceOfWishlistProductResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function WishlistProductResourceArrayResponseFromJSON(json) {
29
+ return WishlistProductResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function WishlistProductResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(WishlistProductResource_1.WishlistProductResourceFromJSON)),
37
+ };
38
+ }
39
+ function WishlistProductResourceArrayResponseToJSON(json) {
40
+ return WishlistProductResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function WishlistProductResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(WishlistProductResource_1.WishlistProductResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,38 @@
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;
@@ -0,0 +1,55 @@
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
+ }
@@ -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 { 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;
@@ -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.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
+ }
@@ -137,6 +137,7 @@ export * from './PaginatedSupplierResourceResponse';
137
137
  export * from './PaginatedTagListResourceResponse';
138
138
  export * from './PaginatedTagLiteResourceResponse';
139
139
  export * from './PaginatedTagResourceResponse';
140
+ export * from './PaginatedWishlistProductResourceResponse';
140
141
  export * from './PagingMetadata';
141
142
  export * from './PreviewAutomationRulesProductCategoryRequest';
142
143
  export * from './PreviewAutomationRulesResource';
@@ -258,3 +259,9 @@ export * from './UpdateSiteNotificationRequest';
258
259
  export * from './UpdateSiteRequest';
259
260
  export * from './UpdateSupplierRequest';
260
261
  export * from './UpdateTagRequest';
262
+ export * from './WishlistCheckResource';
263
+ export * from './WishlistCheckResourceArrayResponse';
264
+ export * from './WishlistProductResource';
265
+ export * from './WishlistProductResourceArrayResponse';
266
+ export * from './WishlistToggleResource';
267
+ export * from './WishlistToggleResourceArrayResponse';
@@ -155,6 +155,7 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
155
155
  __exportStar(require("./PaginatedTagListResourceResponse"), exports);
156
156
  __exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
157
157
  __exportStar(require("./PaginatedTagResourceResponse"), exports);
158
+ __exportStar(require("./PaginatedWishlistProductResourceResponse"), exports);
158
159
  __exportStar(require("./PagingMetadata"), exports);
159
160
  __exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
160
161
  __exportStar(require("./PreviewAutomationRulesResource"), exports);
@@ -276,3 +277,9 @@ __exportStar(require("./UpdateSiteNotificationRequest"), exports);
276
277
  __exportStar(require("./UpdateSiteRequest"), exports);
277
278
  __exportStar(require("./UpdateSupplierRequest"), exports);
278
279
  __exportStar(require("./UpdateTagRequest"), exports);
280
+ __exportStar(require("./WishlistCheckResource"), exports);
281
+ __exportStar(require("./WishlistCheckResourceArrayResponse"), exports);
282
+ __exportStar(require("./WishlistProductResource"), exports);
283
+ __exportStar(require("./WishlistProductResourceArrayResponse"), exports);
284
+ __exportStar(require("./WishlistToggleResource"), exports);
285
+ __exportStar(require("./WishlistToggleResourceArrayResponse"), exports);
@@ -0,0 +1,36 @@
1
+
2
+ # PaginatedWishlistProductResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;WishlistProductResource&gt;](WishlistProductResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedWishlistProductResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "meta": null,
21
+ } satisfies PaginatedWishlistProductResourceResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedWishlistProductResourceResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # WishlistCheckResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `inWishlist` | boolean
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { WishlistCheckResource } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "inWishlist": null,
19
+ } satisfies WishlistCheckResource
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as WishlistCheckResource
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,34 @@
1
+
2
+ # WishlistCheckResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;WishlistCheckResource&gt;](WishlistCheckResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { WishlistCheckResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies WishlistCheckResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as WishlistCheckResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,64 @@
1
+
2
+ # WishlistProductResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `sku` | string
11
+ `model` | string
12
+ `name` | string
13
+ `slug` | string
14
+ `price` | number
15
+ `salePrice` | number
16
+ `thumbnail` | string
17
+ `averageRating` | number
18
+ `labelDetails` | string
19
+ `categories` | Array&lt;boolean&gt;
20
+ `supplierName` | string
21
+ `supplierLogo` | string
22
+ `supplierId` | number
23
+ `availability` | string
24
+ `wishlisted` | boolean
25
+
26
+ ## Example
27
+
28
+ ```typescript
29
+ import type { WishlistProductResource } from '@digital8/lighting-illusions-ts-sdk'
30
+
31
+ // TODO: Update the object below with actual values
32
+ const example = {
33
+ "id": null,
34
+ "sku": null,
35
+ "model": null,
36
+ "name": null,
37
+ "slug": null,
38
+ "price": null,
39
+ "salePrice": null,
40
+ "thumbnail": null,
41
+ "averageRating": null,
42
+ "labelDetails": null,
43
+ "categories": null,
44
+ "supplierName": null,
45
+ "supplierLogo": null,
46
+ "supplierId": null,
47
+ "availability": null,
48
+ "wishlisted": null,
49
+ } satisfies WishlistProductResource
50
+
51
+ console.log(example)
52
+
53
+ // Convert the instance to a JSON string
54
+ const exampleJSON: string = JSON.stringify(example)
55
+ console.log(exampleJSON)
56
+
57
+ // Parse the JSON string back to an object
58
+ const exampleParsed = JSON.parse(exampleJSON) as WishlistProductResource
59
+ console.log(exampleParsed)
60
+ ```
61
+
62
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
63
+
64
+
@@ -0,0 +1,34 @@
1
+
2
+ # WishlistProductResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;WishlistProductResource&gt;](WishlistProductResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { WishlistProductResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies WishlistProductResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as WishlistProductResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,36 @@
1
+
2
+ # WishlistToggleResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `action` | string
10
+ `product` | Array&lt;number&gt;
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { WishlistToggleResource } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "action": null,
20
+ "product": null,
21
+ } satisfies WishlistToggleResource
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as WishlistToggleResource
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # WishlistToggleResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;WishlistToggleResource&gt;](WishlistToggleResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { WishlistToggleResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies WishlistToggleResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as WishlistToggleResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.621",
3
+ "version": "0.0.622",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -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 { WishlistProductResource } from './WishlistProductResource';
24
+ import {
25
+ WishlistProductResourceFromJSON,
26
+ WishlistProductResourceFromJSONTyped,
27
+ WishlistProductResourceToJSON,
28
+ WishlistProductResourceToJSONTyped,
29
+ } from './WishlistProductResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedWishlistProductResourceResponse
35
+ */
36
+ export interface PaginatedWishlistProductResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<WishlistProductResource>}
40
+ * @memberof PaginatedWishlistProductResourceResponse
41
+ */
42
+ data: Array<WishlistProductResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedWishlistProductResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedWishlistProductResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedWishlistProductResourceResponse(value: object): value is PaginatedWishlistProductResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedWishlistProductResourceResponseFromJSON(json: any): PaginatedWishlistProductResourceResponse {
61
+ return PaginatedWishlistProductResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedWishlistProductResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistProductResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(WishlistProductResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedWishlistProductResourceResponseToJSON(json: any): PaginatedWishlistProductResourceResponse {
76
+ return PaginatedWishlistProductResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedWishlistProductResourceResponseToJSONTyped(value?: PaginatedWishlistProductResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(WishlistProductResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+