@digital8/lighting-illusions-ts-sdk 0.0.478 → 0.0.480

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 +8 -0
  2. package/README.md +6 -2
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +3 -1
  5. package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
  6. package/dist/models/IndexExternalApiLogRequest.js +2 -0
  7. package/dist/models/ProductChildListResource.d.ts +7 -0
  8. package/dist/models/ProductChildListResource.js +5 -0
  9. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +69 -0
  10. package/dist/models/ProductChildSiteDetailLiteResource.js +76 -0
  11. package/dist/models/ProductChildSiteDetailLiteResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/ProductChildSiteDetailLiteResourceArrayResponse.js +50 -0
  13. package/dist/models/ProductChildSiteDetailResource.d.ts +8 -2
  14. package/dist/models/ProductChildSiteDetailResource.js +4 -4
  15. package/dist/models/ProductRating.d.ts +26 -0
  16. package/dist/models/ProductRating.js +52 -0
  17. package/dist/models/ProductSortBy.d.ts +32 -0
  18. package/dist/models/ProductSortBy.js +58 -0
  19. package/dist/models/index.d.ts +4 -0
  20. package/dist/models/index.js +4 -0
  21. package/docs/IndexExternalApiLogRequest.md +2 -0
  22. package/docs/ProductChildListResource.md +2 -0
  23. package/docs/ProductChildSiteDetailLiteResource.md +46 -0
  24. package/docs/ProductChildSiteDetailLiteResourceArrayResponse.md +34 -0
  25. package/docs/ProductChildSiteDetailResource.md +4 -2
  26. package/docs/ProductRating.md +32 -0
  27. package/docs/ProductSortBy.md +32 -0
  28. package/package.json +1 -1
  29. package/src/models/ExternalApiLogResource.ts +3 -2
  30. package/src/models/IndexExternalApiLogRequest.ts +8 -0
  31. package/src/models/ProductChildListResource.ts +16 -0
  32. package/src/models/ProductChildSiteDetailLiteResource.ts +128 -0
  33. package/src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts +73 -0
  34. package/src/models/ProductChildSiteDetailResource.ts +12 -5
  35. package/src/models/ProductRating.ts +54 -0
  36. package/src/models/ProductSortBy.ts +60 -0
  37. package/src/models/index.ts +4 -0
@@ -134,14 +134,18 @@ __exportStar(require("./ProductChildRelationResource"), exports);
134
134
  __exportStar(require("./ProductChildRelationResourceArrayResponse"), exports);
135
135
  __exportStar(require("./ProductChildResource"), exports);
136
136
  __exportStar(require("./ProductChildResourceArrayResponse"), exports);
137
+ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
138
+ __exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
137
139
  __exportStar(require("./ProductChildSiteDetailResource"), exports);
138
140
  __exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
139
141
  __exportStar(require("./ProductListResource"), exports);
140
142
  __exportStar(require("./ProductListResourceArrayResponse"), exports);
141
143
  __exportStar(require("./ProductLiteResource"), exports);
142
144
  __exportStar(require("./ProductLiteResourceArrayResponse"), exports);
145
+ __exportStar(require("./ProductRating"), exports);
143
146
  __exportStar(require("./ProductResource"), exports);
144
147
  __exportStar(require("./ProductResourceArrayResponse"), exports);
148
+ __exportStar(require("./ProductSortBy"), exports);
145
149
  __exportStar(require("./ProductTypeListResource"), exports);
146
150
  __exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
147
151
  __exportStar(require("./ProductTypeLiteResource"), exports);
@@ -17,6 +17,7 @@ Name | Type
17
17
  `externalApiLoggableType` | Array<string>
18
18
  `externalApiLoggableId` | Array<string>
19
19
  `siteId` | Array<string>
20
+ `productChildId` | Array<string>
20
21
  `relatedId` | number
21
22
  `relatedType` | string
22
23
  `includesRelations` | boolean
@@ -39,6 +40,7 @@ const example = {
39
40
  "externalApiLoggableType": null,
40
41
  "externalApiLoggableId": null,
41
42
  "siteId": null,
43
+ "productChildId": null,
42
44
  "relatedId": null,
43
45
  "relatedType": null,
44
46
  "includesRelations": null,
@@ -12,6 +12,7 @@ Name | Type
12
12
  `model` | string
13
13
  `stock` | number
14
14
  `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
15
+ `siteDetails` | [ProductChildSiteDetailLiteResource](ProductChildSiteDetailLiteResource.md)
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "model": null,
27
28
  "stock": null,
28
29
  "thumbnail": null,
30
+ "siteDetails": null,
29
31
  } satisfies ProductChildListResource
30
32
 
31
33
  console.log(example)
@@ -0,0 +1,46 @@
1
+
2
+ # ProductChildSiteDetailLiteResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `site` | [SiteLiteResource](SiteLiteResource.md)
11
+ `name` | string
12
+ `slug` | string
13
+ `rrpPrice` | number
14
+ `salePrice` | number
15
+ `isDisabled` | boolean
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ProductChildSiteDetailLiteResource } from '@digital8/lighting-illusions-ts-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "site": null,
26
+ "name": null,
27
+ "slug": null,
28
+ "rrpPrice": null,
29
+ "salePrice": null,
30
+ "isDisabled": null,
31
+ } satisfies ProductChildSiteDetailLiteResource
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as ProductChildSiteDetailLiteResource
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,34 @@
1
+
2
+ # ProductChildSiteDetailLiteResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductChildSiteDetailLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductChildSiteDetailLiteResourceArrayResponse
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 ProductChildSiteDetailLiteResourceArrayResponse
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
+
@@ -16,7 +16,8 @@ Name | Type
16
16
  `salePrice` | number
17
17
  `isDisabled` | boolean
18
18
  `seo` | [SEOResource](SEOResource.md)
19
- `documents` | object
19
+ `omnisendId` | string
20
+ `omnisendSyncStatus` | string
20
21
 
21
22
  ## Example
22
23
 
@@ -35,7 +36,8 @@ const example = {
35
36
  "salePrice": null,
36
37
  "isDisabled": null,
37
38
  "seo": null,
38
- "documents": null,
39
+ "omnisendId": null,
40
+ "omnisendSyncStatus": null,
39
41
  } satisfies ProductChildSiteDetailResource
40
42
 
41
43
  console.log(example)
@@ -0,0 +1,32 @@
1
+
2
+ # ProductRating
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { ProductRating } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies ProductRating
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as ProductRating
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -0,0 +1,32 @@
1
+
2
+ # ProductSortBy
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { ProductSortBy } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies ProductSortBy
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as ProductSortBy
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.478",
3
+ "version": "0.0.480",
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 | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ 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;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -85,6 +85,12 @@ export interface IndexExternalApiLogRequest {
85
85
  * @memberof IndexExternalApiLogRequest
86
86
  */
87
87
  siteId?: Array<string>;
88
+ /**
89
+ *
90
+ * @type {Array<string>}
91
+ * @memberof IndexExternalApiLogRequest
92
+ */
93
+ productChildId?: Array<string>;
88
94
  /**
89
95
  *
90
96
  * @type {number}
@@ -158,6 +164,7 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
158
164
  'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
159
165
  'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
160
166
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
167
+ 'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
161
168
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
162
169
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
163
170
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
@@ -186,6 +193,7 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
186
193
  'external_api_loggable_type': value['externalApiLoggableType'],
187
194
  'external_api_loggable_id': value['externalApiLoggableId'],
188
195
  'site_id': value['siteId'],
196
+ 'product_child_id': value['productChildId'],
189
197
  'related_id': value['relatedId'],
190
198
  'related_type': value['relatedType'],
191
199
  'includes_relations': value['includesRelations'],
@@ -20,6 +20,13 @@ import {
20
20
  AssetLiteResourceToJSON,
21
21
  AssetLiteResourceToJSONTyped,
22
22
  } from './AssetLiteResource';
23
+ import type { ProductChildSiteDetailLiteResource } from './ProductChildSiteDetailLiteResource';
24
+ import {
25
+ ProductChildSiteDetailLiteResourceFromJSON,
26
+ ProductChildSiteDetailLiteResourceFromJSONTyped,
27
+ ProductChildSiteDetailLiteResourceToJSON,
28
+ ProductChildSiteDetailLiteResourceToJSONTyped,
29
+ } from './ProductChildSiteDetailLiteResource';
23
30
 
24
31
  /**
25
32
  *
@@ -63,6 +70,12 @@ export interface ProductChildListResource {
63
70
  * @memberof ProductChildListResource
64
71
  */
65
72
  thumbnail: AssetLiteResource | null;
73
+ /**
74
+ *
75
+ * @type {ProductChildSiteDetailLiteResource}
76
+ * @memberof ProductChildListResource
77
+ */
78
+ siteDetails: ProductChildSiteDetailLiteResource | null;
66
79
  }
67
80
 
68
81
  /**
@@ -75,6 +88,7 @@ export function instanceOfProductChildListResource(value: object): value is Prod
75
88
  if (!('model' in value) || value['model'] === undefined) return false;
76
89
  if (!('stock' in value) || value['stock'] === undefined) return false;
77
90
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
91
+ if (!('siteDetails' in value) || value['siteDetails'] === undefined) return false;
78
92
  return true;
79
93
  }
80
94
 
@@ -94,6 +108,7 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
94
108
  'model': json['model'],
95
109
  'stock': json['stock'],
96
110
  'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
111
+ 'siteDetails': ProductChildSiteDetailLiteResourceFromJSON(json['siteDetails']),
97
112
  };
98
113
  }
99
114
 
@@ -114,6 +129,7 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
114
129
  'model': value['model'],
115
130
  'stock': value['stock'],
116
131
  'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
132
+ 'siteDetails': ProductChildSiteDetailLiteResourceToJSON(value['siteDetails']),
117
133
  };
118
134
  }
119
135
 
@@ -0,0 +1,128 @@
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 { SiteLiteResource } from './SiteLiteResource';
17
+ import {
18
+ SiteLiteResourceFromJSON,
19
+ SiteLiteResourceFromJSONTyped,
20
+ SiteLiteResourceToJSON,
21
+ SiteLiteResourceToJSONTyped,
22
+ } from './SiteLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductChildSiteDetailLiteResource
28
+ */
29
+ export interface ProductChildSiteDetailLiteResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ProductChildSiteDetailLiteResource
34
+ */
35
+ id: number;
36
+ /**
37
+ *
38
+ * @type {SiteLiteResource}
39
+ * @memberof ProductChildSiteDetailLiteResource
40
+ */
41
+ site: SiteLiteResource | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ProductChildSiteDetailLiteResource
46
+ */
47
+ name: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ProductChildSiteDetailLiteResource
52
+ */
53
+ slug: string;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ProductChildSiteDetailLiteResource
58
+ */
59
+ rrpPrice: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ProductChildSiteDetailLiteResource
64
+ */
65
+ salePrice: number;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof ProductChildSiteDetailLiteResource
70
+ */
71
+ isDisabled: boolean;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the ProductChildSiteDetailLiteResource interface.
76
+ */
77
+ export function instanceOfProductChildSiteDetailLiteResource(value: object): value is ProductChildSiteDetailLiteResource {
78
+ if (!('id' in value) || value['id'] === undefined) return false;
79
+ if (!('site' in value) || value['site'] === undefined) return false;
80
+ if (!('name' in value) || value['name'] === undefined) return false;
81
+ if (!('slug' in value) || value['slug'] === undefined) return false;
82
+ if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
83
+ if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
84
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function ProductChildSiteDetailLiteResourceFromJSON(json: any): ProductChildSiteDetailLiteResource {
89
+ return ProductChildSiteDetailLiteResourceFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function ProductChildSiteDetailLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailLiteResource {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'id': json['id'],
99
+ 'site': SiteLiteResourceFromJSON(json['site']),
100
+ 'name': json['name'],
101
+ 'slug': json['slug'],
102
+ 'rrpPrice': json['rrpPrice'],
103
+ 'salePrice': json['salePrice'],
104
+ 'isDisabled': json['isDisabled'],
105
+ };
106
+ }
107
+
108
+ export function ProductChildSiteDetailLiteResourceToJSON(json: any): ProductChildSiteDetailLiteResource {
109
+ return ProductChildSiteDetailLiteResourceToJSONTyped(json, false);
110
+ }
111
+
112
+ export function ProductChildSiteDetailLiteResourceToJSONTyped(value?: ProductChildSiteDetailLiteResource | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'site': SiteLiteResourceToJSON(value['site']),
121
+ 'name': value['name'],
122
+ 'slug': value['slug'],
123
+ 'rrpPrice': value['rrpPrice'],
124
+ 'salePrice': value['salePrice'],
125
+ 'isDisabled': value['isDisabled'],
126
+ };
127
+ }
128
+
@@ -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 { ProductChildSiteDetailLiteResource } from './ProductChildSiteDetailLiteResource';
17
+ import {
18
+ ProductChildSiteDetailLiteResourceFromJSON,
19
+ ProductChildSiteDetailLiteResourceFromJSONTyped,
20
+ ProductChildSiteDetailLiteResourceToJSON,
21
+ ProductChildSiteDetailLiteResourceToJSONTyped,
22
+ } from './ProductChildSiteDetailLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductChildSiteDetailLiteResourceArrayResponse
28
+ */
29
+ export interface ProductChildSiteDetailLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductChildSiteDetailLiteResource>}
33
+ * @memberof ProductChildSiteDetailLiteResourceArrayResponse
34
+ */
35
+ data?: Array<ProductChildSiteDetailLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductChildSiteDetailLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductChildSiteDetailLiteResourceArrayResponse(value: object): value is ProductChildSiteDetailLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductChildSiteDetailLiteResourceArrayResponseFromJSON(json: any): ProductChildSiteDetailLiteResourceArrayResponse {
46
+ return ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductChildSiteDetailLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductChildSiteDetailLiteResourceArrayResponseToJSON(json: any): ProductChildSiteDetailLiteResourceArrayResponse {
60
+ return ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductChildSiteDetailLiteResourceArrayResponseToJSONTyped(value?: ProductChildSiteDetailLiteResourceArrayResponse | 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(ProductChildSiteDetailLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -96,10 +96,16 @@ export interface ProductChildSiteDetailResource {
96
96
  seo: SEOResource | null;
97
97
  /**
98
98
  *
99
- * @type {object}
99
+ * @type {string}
100
+ * @memberof ProductChildSiteDetailResource
101
+ */
102
+ omnisendId?: string | null;
103
+ /**
104
+ *
105
+ * @type {string}
100
106
  * @memberof ProductChildSiteDetailResource
101
107
  */
102
- documents: object;
108
+ omnisendSyncStatus?: string | null;
103
109
  }
104
110
 
105
111
  /**
@@ -116,7 +122,6 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
116
122
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
117
123
  if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
118
124
  if (!('seo' in value) || value['seo'] === undefined) return false;
119
- if (!('documents' in value) || value['documents'] === undefined) return false;
120
125
  return true;
121
126
  }
122
127
 
@@ -140,7 +145,8 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
140
145
  'salePrice': json['salePrice'],
141
146
  'isDisabled': json['isDisabled'],
142
147
  'seo': SEOResourceFromJSON(json['seo']),
143
- 'documents': json['documents'],
148
+ 'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
149
+ 'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
144
150
  };
145
151
  }
146
152
 
@@ -165,7 +171,8 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
165
171
  'salePrice': value['salePrice'],
166
172
  'isDisabled': value['isDisabled'],
167
173
  'seo': SEOResourceToJSON(value['seo']),
168
- 'documents': value['documents'],
174
+ 'omnisendId': value['omnisendId'],
175
+ 'omnisendSyncStatus': value['omnisendSyncStatus'],
169
176
  };
170
177
  }
171
178
 
@@ -0,0 +1,54 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ProductRating = {
21
+ _5: '5',
22
+ _4: '4',
23
+ _3: '3'
24
+ } as const;
25
+ export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
26
+
27
+
28
+ export function instanceOfProductRating(value: any): boolean {
29
+ for (const key in ProductRating) {
30
+ if (Object.prototype.hasOwnProperty.call(ProductRating, key)) {
31
+ if (ProductRating[key as keyof typeof ProductRating] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function ProductRatingFromJSON(json: any): ProductRating {
40
+ return ProductRatingFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating {
44
+ return json as ProductRating;
45
+ }
46
+
47
+ export function ProductRatingToJSON(value?: ProductRating | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating {
52
+ return value as ProductRating;
53
+ }
54
+