@digital8/lighting-illusions-ts-sdk 0.0.483 → 0.0.484

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.
@@ -135,8 +135,10 @@ docs/ProductListResource.md
135
135
  docs/ProductListResourceArrayResponse.md
136
136
  docs/ProductLiteResource.md
137
137
  docs/ProductLiteResourceArrayResponse.md
138
+ docs/ProductRating.md
138
139
  docs/ProductResource.md
139
140
  docs/ProductResourceArrayResponse.md
141
+ docs/ProductSortBy.md
140
142
  docs/ProductTypeApi.md
141
143
  docs/ProductTypeListResource.md
142
144
  docs/ProductTypeListResourceArrayResponse.md
@@ -352,8 +354,10 @@ src/models/ProductListResource.ts
352
354
  src/models/ProductListResourceArrayResponse.ts
353
355
  src/models/ProductLiteResource.ts
354
356
  src/models/ProductLiteResourceArrayResponse.ts
357
+ src/models/ProductRating.ts
355
358
  src/models/ProductResource.ts
356
359
  src/models/ProductResourceArrayResponse.ts
360
+ src/models/ProductSortBy.ts
357
361
  src/models/ProductTypeListResource.ts
358
362
  src/models/ProductTypeListResourceArrayResponse.ts
359
363
  src/models/ProductTypeLiteResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.483
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.484
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -269,8 +269,10 @@ All URIs are relative to *http://localhost/api*
269
269
  - [ProductListResourceArrayResponse](docs/ProductListResourceArrayResponse.md)
270
270
  - [ProductLiteResource](docs/ProductLiteResource.md)
271
271
  - [ProductLiteResourceArrayResponse](docs/ProductLiteResourceArrayResponse.md)
272
+ - [ProductRating](docs/ProductRating.md)
272
273
  - [ProductResource](docs/ProductResource.md)
273
274
  - [ProductResourceArrayResponse](docs/ProductResourceArrayResponse.md)
275
+ - [ProductSortBy](docs/ProductSortBy.md)
274
276
  - [ProductTypeListResource](docs/ProductTypeListResource.md)
275
277
  - [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
276
278
  - [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
@@ -355,7 +357,7 @@ and is automatically generated by the
355
357
  [OpenAPI Generator](https://openapi-generator.tech) project:
356
358
 
357
359
  - API version: `1.0.0`
358
- - Package version: `0.0.483`
360
+ - Package version: `0.0.484`
359
361
  - Generator version: `7.17.0`
360
362
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
361
363
 
@@ -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']),
@@ -81,6 +81,12 @@ export interface IndexExternalApiLogRequest {
81
81
  * @memberof IndexExternalApiLogRequest
82
82
  */
83
83
  siteId?: Array<string>;
84
+ /**
85
+ *
86
+ * @type {Array<string>}
87
+ * @memberof IndexExternalApiLogRequest
88
+ */
89
+ productChildId?: Array<string>;
84
90
  /**
85
91
  *
86
92
  * @type {number}
@@ -63,6 +63,7 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
64
64
  'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
65
65
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
66
+ 'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
66
67
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
68
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
68
69
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
@@ -88,6 +89,7 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
88
89
  'external_api_loggable_type': value['externalApiLoggableType'],
89
90
  'external_api_loggable_id': value['externalApiLoggableId'],
90
91
  'site_id': value['siteId'],
92
+ 'product_child_id': value['productChildId'],
91
93
  'related_id': value['relatedId'],
92
94
  'related_type': value['relatedType'],
93
95
  'includes_relations': value['includesRelations'],
@@ -79,10 +79,16 @@ export interface ProductChildSiteDetailResource {
79
79
  seo: SEOResource | null;
80
80
  /**
81
81
  *
82
- * @type {object}
82
+ * @type {string}
83
+ * @memberof ProductChildSiteDetailResource
84
+ */
85
+ omnisendId?: string | null;
86
+ /**
87
+ *
88
+ * @type {string}
83
89
  * @memberof ProductChildSiteDetailResource
84
90
  */
85
- documents: object;
91
+ omnisendSyncStatus?: string | null;
86
92
  }
87
93
  /**
88
94
  * Check if a given object implements the ProductChildSiteDetailResource interface.
@@ -44,8 +44,6 @@ function instanceOfProductChildSiteDetailResource(value) {
44
44
  return false;
45
45
  if (!('seo' in value) || value['seo'] === undefined)
46
46
  return false;
47
- if (!('documents' in value) || value['documents'] === undefined)
48
- return false;
49
47
  return true;
50
48
  }
51
49
  function ProductChildSiteDetailResourceFromJSON(json) {
@@ -66,7 +64,8 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
66
64
  'salePrice': json['salePrice'],
67
65
  'isDisabled': json['isDisabled'],
68
66
  'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
69
- 'documents': json['documents'],
67
+ 'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
68
+ 'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
70
69
  };
71
70
  }
72
71
  function ProductChildSiteDetailResourceToJSON(json) {
@@ -88,6 +87,7 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
88
87
  'salePrice': value['salePrice'],
89
88
  'isDisabled': value['isDisabled'],
90
89
  'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
91
- 'documents': value['documents'],
90
+ 'omnisendId': value['omnisendId'],
91
+ 'omnisendSyncStatus': value['omnisendSyncStatus'],
92
92
  };
93
93
  }
@@ -0,0 +1,26 @@
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
+ */
16
+ export declare const ProductRating: {
17
+ readonly _5: "5";
18
+ readonly _4: "4";
19
+ readonly _3: "3";
20
+ };
21
+ export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
22
+ export declare function instanceOfProductRating(value: any): boolean;
23
+ export declare function ProductRatingFromJSON(json: any): ProductRating;
24
+ export declare function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating;
25
+ export declare function ProductRatingToJSON(value?: ProductRating | null): any;
26
+ export declare function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating;
@@ -0,0 +1,52 @@
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.ProductRating = void 0;
17
+ exports.instanceOfProductRating = instanceOfProductRating;
18
+ exports.ProductRatingFromJSON = ProductRatingFromJSON;
19
+ exports.ProductRatingFromJSONTyped = ProductRatingFromJSONTyped;
20
+ exports.ProductRatingToJSON = ProductRatingToJSON;
21
+ exports.ProductRatingToJSONTyped = ProductRatingToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ProductRating = {
27
+ _5: '5',
28
+ _4: '4',
29
+ _3: '3'
30
+ };
31
+ function instanceOfProductRating(value) {
32
+ for (var key in exports.ProductRating) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ProductRating, key)) {
34
+ if (exports.ProductRating[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ProductRatingFromJSON(json) {
42
+ return ProductRatingFromJSONTyped(json, false);
43
+ }
44
+ function ProductRatingFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ProductRatingToJSON(value) {
48
+ return value;
49
+ }
50
+ function ProductRatingToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,32 @@
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
+ */
16
+ export declare const ProductSortBy: {
17
+ readonly Relevance: "relevance";
18
+ readonly MostPopular: "mostPopular";
19
+ readonly HighestRating: "highestRating";
20
+ readonly LowestRating: "lowestRating";
21
+ readonly DescendingPrice: "descendingPrice";
22
+ readonly AscendingPrice: "ascendingPrice";
23
+ readonly DescendingName: "descendingName";
24
+ readonly AscendingName: "ascendingName";
25
+ readonly RecentlyAdded: "recentlyAdded";
26
+ };
27
+ export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
28
+ export declare function instanceOfProductSortBy(value: any): boolean;
29
+ export declare function ProductSortByFromJSON(json: any): ProductSortBy;
30
+ export declare function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy;
31
+ export declare function ProductSortByToJSON(value?: ProductSortBy | null): any;
32
+ export declare function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy;
@@ -0,0 +1,58 @@
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.ProductSortBy = void 0;
17
+ exports.instanceOfProductSortBy = instanceOfProductSortBy;
18
+ exports.ProductSortByFromJSON = ProductSortByFromJSON;
19
+ exports.ProductSortByFromJSONTyped = ProductSortByFromJSONTyped;
20
+ exports.ProductSortByToJSON = ProductSortByToJSON;
21
+ exports.ProductSortByToJSONTyped = ProductSortByToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ProductSortBy = {
27
+ Relevance: 'relevance',
28
+ MostPopular: 'mostPopular',
29
+ HighestRating: 'highestRating',
30
+ LowestRating: 'lowestRating',
31
+ DescendingPrice: 'descendingPrice',
32
+ AscendingPrice: 'ascendingPrice',
33
+ DescendingName: 'descendingName',
34
+ AscendingName: 'ascendingName',
35
+ RecentlyAdded: 'recentlyAdded'
36
+ };
37
+ function instanceOfProductSortBy(value) {
38
+ for (var key in exports.ProductSortBy) {
39
+ if (Object.prototype.hasOwnProperty.call(exports.ProductSortBy, key)) {
40
+ if (exports.ProductSortBy[key] === value) {
41
+ return true;
42
+ }
43
+ }
44
+ }
45
+ return false;
46
+ }
47
+ function ProductSortByFromJSON(json) {
48
+ return ProductSortByFromJSONTyped(json, false);
49
+ }
50
+ function ProductSortByFromJSONTyped(json, ignoreDiscriminator) {
51
+ return json;
52
+ }
53
+ function ProductSortByToJSON(value) {
54
+ return value;
55
+ }
56
+ function ProductSortByToJSONTyped(value, ignoreDiscriminator) {
57
+ return value;
58
+ }
@@ -124,8 +124,10 @@ export * from './ProductListResource';
124
124
  export * from './ProductListResourceArrayResponse';
125
125
  export * from './ProductLiteResource';
126
126
  export * from './ProductLiteResourceArrayResponse';
127
+ export * from './ProductRating';
127
128
  export * from './ProductResource';
128
129
  export * from './ProductResourceArrayResponse';
130
+ export * from './ProductSortBy';
129
131
  export * from './ProductTypeListResource';
130
132
  export * from './ProductTypeListResourceArrayResponse';
131
133
  export * from './ProductTypeLiteResource';
@@ -142,8 +142,10 @@ __exportStar(require("./ProductListResource"), exports);
142
142
  __exportStar(require("./ProductListResourceArrayResponse"), exports);
143
143
  __exportStar(require("./ProductLiteResource"), exports);
144
144
  __exportStar(require("./ProductLiteResourceArrayResponse"), exports);
145
+ __exportStar(require("./ProductRating"), exports);
145
146
  __exportStar(require("./ProductResource"), exports);
146
147
  __exportStar(require("./ProductResourceArrayResponse"), exports);
148
+ __exportStar(require("./ProductSortBy"), exports);
147
149
  __exportStar(require("./ProductTypeListResource"), exports);
148
150
  __exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
149
151
  __exportStar(require("./ProductTypeLiteResource"), exports);
@@ -17,6 +17,7 @@ Name | Type
17
17
  `externalApiLoggableType` | Array&lt;string&gt;
18
18
  `externalApiLoggableId` | Array&lt;string&gt;
19
19
  `siteId` | Array&lt;string&gt;
20
+ `productChildId` | Array&lt;string&gt;
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,
@@ -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.483",
3
+ "version": "0.0.484",
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']),
@@ -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'],
@@ -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
+
@@ -0,0 +1,60 @@
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 ProductSortBy = {
21
+ Relevance: 'relevance',
22
+ MostPopular: 'mostPopular',
23
+ HighestRating: 'highestRating',
24
+ LowestRating: 'lowestRating',
25
+ DescendingPrice: 'descendingPrice',
26
+ AscendingPrice: 'ascendingPrice',
27
+ DescendingName: 'descendingName',
28
+ AscendingName: 'ascendingName',
29
+ RecentlyAdded: 'recentlyAdded'
30
+ } as const;
31
+ export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
32
+
33
+
34
+ export function instanceOfProductSortBy(value: any): boolean {
35
+ for (const key in ProductSortBy) {
36
+ if (Object.prototype.hasOwnProperty.call(ProductSortBy, key)) {
37
+ if (ProductSortBy[key as keyof typeof ProductSortBy] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export function ProductSortByFromJSON(json: any): ProductSortBy {
46
+ return ProductSortByFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy {
50
+ return json as ProductSortBy;
51
+ }
52
+
53
+ export function ProductSortByToJSON(value?: ProductSortBy | null): any {
54
+ return value as any;
55
+ }
56
+
57
+ export function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy {
58
+ return value as ProductSortBy;
59
+ }
60
+
@@ -126,8 +126,10 @@ export * from './ProductListResource';
126
126
  export * from './ProductListResourceArrayResponse';
127
127
  export * from './ProductLiteResource';
128
128
  export * from './ProductLiteResourceArrayResponse';
129
+ export * from './ProductRating';
129
130
  export * from './ProductResource';
130
131
  export * from './ProductResourceArrayResponse';
132
+ export * from './ProductSortBy';
131
133
  export * from './ProductTypeListResource';
132
134
  export * from './ProductTypeListResourceArrayResponse';
133
135
  export * from './ProductTypeLiteResource';