@digital8/lighting-illusions-ts-sdk 0.0.620 → 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.
@@ -147,6 +147,7 @@ docs/PaginatedSupplierResourceResponse.md
147
147
  docs/PaginatedTagListResourceResponse.md
148
148
  docs/PaginatedTagLiteResourceResponse.md
149
149
  docs/PaginatedTagResourceResponse.md
150
+ docs/PaginatedWishlistProductResourceResponse.md
150
151
  docs/PagingMetadata.md
151
152
  docs/PreviewAutomationRulesProductCategoryRequest.md
152
153
  docs/PreviewAutomationRulesResource.md
@@ -277,6 +278,8 @@ docs/UpdateSupplierRequest.md
277
278
  docs/UpdateTagRequest.md
278
279
  docs/WishlistCheckResource.md
279
280
  docs/WishlistCheckResourceArrayResponse.md
281
+ docs/WishlistProductResource.md
282
+ docs/WishlistProductResourceArrayResponse.md
280
283
  docs/WishlistToggleResource.md
281
284
  docs/WishlistToggleResourceArrayResponse.md
282
285
  package.json
@@ -434,6 +437,7 @@ src/models/PaginatedSupplierResourceResponse.ts
434
437
  src/models/PaginatedTagListResourceResponse.ts
435
438
  src/models/PaginatedTagLiteResourceResponse.ts
436
439
  src/models/PaginatedTagResourceResponse.ts
440
+ src/models/PaginatedWishlistProductResourceResponse.ts
437
441
  src/models/PagingMetadata.ts
438
442
  src/models/PreviewAutomationRulesProductCategoryRequest.ts
439
443
  src/models/PreviewAutomationRulesResource.ts
@@ -557,6 +561,8 @@ src/models/UpdateSupplierRequest.ts
557
561
  src/models/UpdateTagRequest.ts
558
562
  src/models/WishlistCheckResource.ts
559
563
  src/models/WishlistCheckResourceArrayResponse.ts
564
+ src/models/WishlistProductResource.ts
565
+ src/models/WishlistProductResourceArrayResponse.ts
560
566
  src/models/WishlistToggleResource.ts
561
567
  src/models/WishlistToggleResourceArrayResponse.ts
562
568
  src/models/index.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.620
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.622
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -297,6 +297,7 @@ All URIs are relative to *http://localhost/api*
297
297
  - [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
298
298
  - [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
299
299
  - [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
300
+ - [PaginatedWishlistProductResourceResponse](docs/PaginatedWishlistProductResourceResponse.md)
300
301
  - [PagingMetadata](docs/PagingMetadata.md)
301
302
  - [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
302
303
  - [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
@@ -420,6 +421,8 @@ All URIs are relative to *http://localhost/api*
420
421
  - [UpdateTagRequest](docs/UpdateTagRequest.md)
421
422
  - [WishlistCheckResource](docs/WishlistCheckResource.md)
422
423
  - [WishlistCheckResourceArrayResponse](docs/WishlistCheckResourceArrayResponse.md)
424
+ - [WishlistProductResource](docs/WishlistProductResource.md)
425
+ - [WishlistProductResourceArrayResponse](docs/WishlistProductResourceArrayResponse.md)
423
426
  - [WishlistToggleResource](docs/WishlistToggleResource.md)
424
427
  - [WishlistToggleResourceArrayResponse](docs/WishlistToggleResourceArrayResponse.md)
425
428
 
@@ -435,7 +438,7 @@ and is automatically generated by the
435
438
  [OpenAPI Generator](https://openapi-generator.tech) project:
436
439
 
437
440
  - API version: `1.0.0`
438
- - Package version: `0.0.620`
441
+ - Package version: `0.0.622`
439
442
  - Generator version: `7.19.0`
440
443
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
441
444
 
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -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 { WishlistProductResource } from './WishlistProductResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedWishlistProductResourceResponse
18
+ */
19
+ export interface PaginatedWishlistProductResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<WishlistProductResource>}
23
+ * @memberof PaginatedWishlistProductResourceResponse
24
+ */
25
+ data: Array<WishlistProductResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedWishlistProductResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedWishlistProductResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedWishlistProductResourceResponse(value: object): value is PaginatedWishlistProductResourceResponse;
37
+ export declare function PaginatedWishlistProductResourceResponseFromJSON(json: any): PaginatedWishlistProductResourceResponse;
38
+ export declare function PaginatedWishlistProductResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWishlistProductResourceResponse;
39
+ export declare function PaginatedWishlistProductResourceResponseToJSON(json: any): PaginatedWishlistProductResourceResponse;
40
+ export declare function PaginatedWishlistProductResourceResponseToJSONTyped(value?: PaginatedWishlistProductResourceResponse | 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.instanceOfPaginatedWishlistProductResourceResponse = instanceOfPaginatedWishlistProductResourceResponse;
17
+ exports.PaginatedWishlistProductResourceResponseFromJSON = PaginatedWishlistProductResourceResponseFromJSON;
18
+ exports.PaginatedWishlistProductResourceResponseFromJSONTyped = PaginatedWishlistProductResourceResponseFromJSONTyped;
19
+ exports.PaginatedWishlistProductResourceResponseToJSON = PaginatedWishlistProductResourceResponseToJSON;
20
+ exports.PaginatedWishlistProductResourceResponseToJSONTyped = PaginatedWishlistProductResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var WishlistProductResource_1 = require("./WishlistProductResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedWishlistProductResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedWishlistProductResourceResponse(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 PaginatedWishlistProductResourceResponseFromJSON(json) {
34
+ return PaginatedWishlistProductResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedWishlistProductResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(WishlistProductResource_1.WishlistProductResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedWishlistProductResourceResponseToJSON(json) {
46
+ return PaginatedWishlistProductResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedWishlistProductResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(WishlistProductResource_1.WishlistProductResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,122 @@
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 WishlistProductResource
16
+ */
17
+ export interface WishlistProductResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof WishlistProductResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WishlistProductResource
28
+ */
29
+ sku: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WishlistProductResource
34
+ */
35
+ model: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof WishlistProductResource
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof WishlistProductResource
46
+ */
47
+ slug: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof WishlistProductResource
52
+ */
53
+ price: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof WishlistProductResource
58
+ */
59
+ salePrice: number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof WishlistProductResource
64
+ */
65
+ thumbnail?: string | null;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof WishlistProductResource
70
+ */
71
+ averageRating: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof WishlistProductResource
76
+ */
77
+ labelDetails?: string | null;
78
+ /**
79
+ *
80
+ * @type {Array<boolean>}
81
+ * @memberof WishlistProductResource
82
+ */
83
+ categories: Array<boolean>;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof WishlistProductResource
88
+ */
89
+ supplierName: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof WishlistProductResource
94
+ */
95
+ supplierLogo?: string | null;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof WishlistProductResource
100
+ */
101
+ supplierId: number;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof WishlistProductResource
106
+ */
107
+ availability: string;
108
+ /**
109
+ *
110
+ * @type {boolean}
111
+ * @memberof WishlistProductResource
112
+ */
113
+ wishlisted: boolean;
114
+ }
115
+ /**
116
+ * Check if a given object implements the WishlistProductResource interface.
117
+ */
118
+ export declare function instanceOfWishlistProductResource(value: object): value is WishlistProductResource;
119
+ export declare function WishlistProductResourceFromJSON(json: any): WishlistProductResource;
120
+ export declare function WishlistProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResource;
121
+ export declare function WishlistProductResourceToJSON(json: any): WishlistProductResource;
122
+ export declare function WishlistProductResourceToJSONTyped(value?: WishlistProductResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,105 @@
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.instanceOfWishlistProductResource = instanceOfWishlistProductResource;
17
+ exports.WishlistProductResourceFromJSON = WishlistProductResourceFromJSON;
18
+ exports.WishlistProductResourceFromJSONTyped = WishlistProductResourceFromJSONTyped;
19
+ exports.WishlistProductResourceToJSON = WishlistProductResourceToJSON;
20
+ exports.WishlistProductResourceToJSONTyped = WishlistProductResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WishlistProductResource interface.
23
+ */
24
+ function instanceOfWishlistProductResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('sku' in value) || value['sku'] === undefined)
28
+ return false;
29
+ if (!('model' in value) || value['model'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('slug' in value) || value['slug'] === undefined)
34
+ return false;
35
+ if (!('price' in value) || value['price'] === undefined)
36
+ return false;
37
+ if (!('salePrice' in value) || value['salePrice'] === undefined)
38
+ return false;
39
+ if (!('averageRating' in value) || value['averageRating'] === undefined)
40
+ return false;
41
+ if (!('categories' in value) || value['categories'] === undefined)
42
+ return false;
43
+ if (!('supplierName' in value) || value['supplierName'] === undefined)
44
+ return false;
45
+ if (!('supplierId' in value) || value['supplierId'] === undefined)
46
+ return false;
47
+ if (!('availability' in value) || value['availability'] === undefined)
48
+ return false;
49
+ if (!('wishlisted' in value) || value['wishlisted'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function WishlistProductResourceFromJSON(json) {
54
+ return WishlistProductResourceFromJSONTyped(json, false);
55
+ }
56
+ function WishlistProductResourceFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'sku': json['sku'],
63
+ 'model': json['model'],
64
+ 'name': json['name'],
65
+ 'slug': json['slug'],
66
+ 'price': json['price'],
67
+ 'salePrice': json['salePrice'],
68
+ 'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
69
+ 'averageRating': json['averageRating'],
70
+ 'labelDetails': json['labelDetails'] == null ? undefined : json['labelDetails'],
71
+ 'categories': json['categories'],
72
+ 'supplierName': json['supplierName'],
73
+ 'supplierLogo': json['supplierLogo'] == null ? undefined : json['supplierLogo'],
74
+ 'supplierId': json['supplierId'],
75
+ 'availability': json['availability'],
76
+ 'wishlisted': json['wishlisted'],
77
+ };
78
+ }
79
+ function WishlistProductResourceToJSON(json) {
80
+ return WishlistProductResourceToJSONTyped(json, false);
81
+ }
82
+ function WishlistProductResourceToJSONTyped(value, ignoreDiscriminator) {
83
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+ return {
88
+ 'id': value['id'],
89
+ 'sku': value['sku'],
90
+ 'model': value['model'],
91
+ 'name': value['name'],
92
+ 'slug': value['slug'],
93
+ 'price': value['price'],
94
+ 'salePrice': value['salePrice'],
95
+ 'thumbnail': value['thumbnail'],
96
+ 'averageRating': value['averageRating'],
97
+ 'labelDetails': value['labelDetails'],
98
+ 'categories': value['categories'],
99
+ 'supplierName': value['supplierName'],
100
+ 'supplierLogo': value['supplierLogo'],
101
+ 'supplierId': value['supplierId'],
102
+ 'availability': value['availability'],
103
+ 'wishlisted': value['wishlisted'],
104
+ };
105
+ }
@@ -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 { WishlistProductResource } from './WishlistProductResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WishlistProductResourceArrayResponse
17
+ */
18
+ export interface WishlistProductResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<WishlistProductResource>}
22
+ * @memberof WishlistProductResourceArrayResponse
23
+ */
24
+ data?: Array<WishlistProductResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the WishlistProductResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfWishlistProductResourceArrayResponse(value: object): value is WishlistProductResourceArrayResponse;
30
+ export declare function WishlistProductResourceArrayResponseFromJSON(json: any): WishlistProductResourceArrayResponse;
31
+ export declare function WishlistProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResourceArrayResponse;
32
+ export declare function WishlistProductResourceArrayResponseToJSON(json: any): WishlistProductResourceArrayResponse;
33
+ export declare function WishlistProductResourceArrayResponseToJSONTyped(value?: WishlistProductResourceArrayResponse | 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.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
+ }
@@ -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';
@@ -260,5 +261,7 @@ export * from './UpdateSupplierRequest';
260
261
  export * from './UpdateTagRequest';
261
262
  export * from './WishlistCheckResource';
262
263
  export * from './WishlistCheckResourceArrayResponse';
264
+ export * from './WishlistProductResource';
265
+ export * from './WishlistProductResourceArrayResponse';
263
266
  export * from './WishlistToggleResource';
264
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);
@@ -278,5 +279,7 @@ __exportStar(require("./UpdateSupplierRequest"), exports);
278
279
  __exportStar(require("./UpdateTagRequest"), exports);
279
280
  __exportStar(require("./WishlistCheckResource"), exports);
280
281
  __exportStar(require("./WishlistCheckResourceArrayResponse"), exports);
282
+ __exportStar(require("./WishlistProductResource"), exports);
283
+ __exportStar(require("./WishlistProductResourceArrayResponse"), exports);
281
284
  __exportStar(require("./WishlistToggleResource"), exports);
282
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,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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.620",
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
+
@@ -0,0 +1,198 @@
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 WishlistProductResource
20
+ */
21
+ export interface WishlistProductResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof WishlistProductResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof WishlistProductResource
32
+ */
33
+ sku: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof WishlistProductResource
38
+ */
39
+ model: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof WishlistProductResource
44
+ */
45
+ name: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof WishlistProductResource
50
+ */
51
+ slug: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof WishlistProductResource
56
+ */
57
+ price: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof WishlistProductResource
62
+ */
63
+ salePrice: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof WishlistProductResource
68
+ */
69
+ thumbnail?: string | null;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof WishlistProductResource
74
+ */
75
+ averageRating: number;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof WishlistProductResource
80
+ */
81
+ labelDetails?: string | null;
82
+ /**
83
+ *
84
+ * @type {Array<boolean>}
85
+ * @memberof WishlistProductResource
86
+ */
87
+ categories: Array<boolean>;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof WishlistProductResource
92
+ */
93
+ supplierName: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof WishlistProductResource
98
+ */
99
+ supplierLogo?: string | null;
100
+ /**
101
+ *
102
+ * @type {number}
103
+ * @memberof WishlistProductResource
104
+ */
105
+ supplierId: number;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof WishlistProductResource
110
+ */
111
+ availability: string;
112
+ /**
113
+ *
114
+ * @type {boolean}
115
+ * @memberof WishlistProductResource
116
+ */
117
+ wishlisted: boolean;
118
+ }
119
+
120
+ /**
121
+ * Check if a given object implements the WishlistProductResource interface.
122
+ */
123
+ export function instanceOfWishlistProductResource(value: object): value is WishlistProductResource {
124
+ if (!('id' in value) || value['id'] === undefined) return false;
125
+ if (!('sku' in value) || value['sku'] === undefined) return false;
126
+ if (!('model' in value) || value['model'] === undefined) return false;
127
+ if (!('name' in value) || value['name'] === undefined) return false;
128
+ if (!('slug' in value) || value['slug'] === undefined) return false;
129
+ if (!('price' in value) || value['price'] === undefined) return false;
130
+ if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
131
+ if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
132
+ if (!('categories' in value) || value['categories'] === undefined) return false;
133
+ if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
134
+ if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
135
+ if (!('availability' in value) || value['availability'] === undefined) return false;
136
+ if (!('wishlisted' in value) || value['wishlisted'] === undefined) return false;
137
+ return true;
138
+ }
139
+
140
+ export function WishlistProductResourceFromJSON(json: any): WishlistProductResource {
141
+ return WishlistProductResourceFromJSONTyped(json, false);
142
+ }
143
+
144
+ export function WishlistProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResource {
145
+ if (json == null) {
146
+ return json;
147
+ }
148
+ return {
149
+
150
+ 'id': json['id'],
151
+ 'sku': json['sku'],
152
+ 'model': json['model'],
153
+ 'name': json['name'],
154
+ 'slug': json['slug'],
155
+ 'price': json['price'],
156
+ 'salePrice': json['salePrice'],
157
+ 'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
158
+ 'averageRating': json['averageRating'],
159
+ 'labelDetails': json['labelDetails'] == null ? undefined : json['labelDetails'],
160
+ 'categories': json['categories'],
161
+ 'supplierName': json['supplierName'],
162
+ 'supplierLogo': json['supplierLogo'] == null ? undefined : json['supplierLogo'],
163
+ 'supplierId': json['supplierId'],
164
+ 'availability': json['availability'],
165
+ 'wishlisted': json['wishlisted'],
166
+ };
167
+ }
168
+
169
+ export function WishlistProductResourceToJSON(json: any): WishlistProductResource {
170
+ return WishlistProductResourceToJSONTyped(json, false);
171
+ }
172
+
173
+ export function WishlistProductResourceToJSONTyped(value?: WishlistProductResource | null, ignoreDiscriminator: boolean = false): any {
174
+ if (value == null) {
175
+ return value;
176
+ }
177
+
178
+ return {
179
+
180
+ 'id': value['id'],
181
+ 'sku': value['sku'],
182
+ 'model': value['model'],
183
+ 'name': value['name'],
184
+ 'slug': value['slug'],
185
+ 'price': value['price'],
186
+ 'salePrice': value['salePrice'],
187
+ 'thumbnail': value['thumbnail'],
188
+ 'averageRating': value['averageRating'],
189
+ 'labelDetails': value['labelDetails'],
190
+ 'categories': value['categories'],
191
+ 'supplierName': value['supplierName'],
192
+ 'supplierLogo': value['supplierLogo'],
193
+ 'supplierId': value['supplierId'],
194
+ 'availability': value['availability'],
195
+ 'wishlisted': value['wishlisted'],
196
+ };
197
+ }
198
+
@@ -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 { WishlistProductResource } from './WishlistProductResource';
17
+ import {
18
+ WishlistProductResourceFromJSON,
19
+ WishlistProductResourceFromJSONTyped,
20
+ WishlistProductResourceToJSON,
21
+ WishlistProductResourceToJSONTyped,
22
+ } from './WishlistProductResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WishlistProductResourceArrayResponse
28
+ */
29
+ export interface WishlistProductResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<WishlistProductResource>}
33
+ * @memberof WishlistProductResourceArrayResponse
34
+ */
35
+ data?: Array<WishlistProductResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the WishlistProductResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfWishlistProductResourceArrayResponse(value: object): value is WishlistProductResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function WishlistProductResourceArrayResponseFromJSON(json: any): WishlistProductResourceArrayResponse {
46
+ return WishlistProductResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function WishlistProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(WishlistProductResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function WishlistProductResourceArrayResponseToJSON(json: any): WishlistProductResourceArrayResponse {
60
+ return WishlistProductResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function WishlistProductResourceArrayResponseToJSONTyped(value?: WishlistProductResourceArrayResponse | 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(WishlistProductResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -139,6 +139,7 @@ export * from './PaginatedSupplierResourceResponse';
139
139
  export * from './PaginatedTagListResourceResponse';
140
140
  export * from './PaginatedTagLiteResourceResponse';
141
141
  export * from './PaginatedTagResourceResponse';
142
+ export * from './PaginatedWishlistProductResourceResponse';
142
143
  export * from './PagingMetadata';
143
144
  export * from './PreviewAutomationRulesProductCategoryRequest';
144
145
  export * from './PreviewAutomationRulesResource';
@@ -262,5 +263,7 @@ export * from './UpdateSupplierRequest';
262
263
  export * from './UpdateTagRequest';
263
264
  export * from './WishlistCheckResource';
264
265
  export * from './WishlistCheckResourceArrayResponse';
266
+ export * from './WishlistProductResource';
267
+ export * from './WishlistProductResourceArrayResponse';
265
268
  export * from './WishlistToggleResource';
266
269
  export * from './WishlistToggleResourceArrayResponse';