@digital8/lighting-illusions-ts-sdk 0.0.1769 → 0.0.1770

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.
@@ -321,6 +321,8 @@ docs/ProductRangeSearchResponseResourceArrayResponse.md
321
321
  docs/ProductRangeSearchResponseResourceMeta.md
322
322
  docs/ProductRangeSearchResultResource.md
323
323
  docs/ProductRangeSearchResultResourceArrayResponse.md
324
+ docs/ProductRangeSiteDetailFrontendResource.md
325
+ docs/ProductRangeSiteDetailFrontendResourceArrayResponse.md
324
326
  docs/ProductRangeSiteDetailLiteResource.md
325
327
  docs/ProductRangeSiteDetailLiteResourceArrayResponse.md
326
328
  docs/ProductRangeSiteDetailResource.md
@@ -795,6 +797,8 @@ src/models/ProductRangeSearchResponseResourceArrayResponse.ts
795
797
  src/models/ProductRangeSearchResponseResourceMeta.ts
796
798
  src/models/ProductRangeSearchResultResource.ts
797
799
  src/models/ProductRangeSearchResultResourceArrayResponse.ts
800
+ src/models/ProductRangeSiteDetailFrontendResource.ts
801
+ src/models/ProductRangeSiteDetailFrontendResourceArrayResponse.ts
798
802
  src/models/ProductRangeSiteDetailLiteResource.ts
799
803
  src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts
800
804
  src/models/ProductRangeSiteDetailResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1769
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1770
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -534,6 +534,8 @@ All URIs are relative to *http://localhost/api*
534
534
  - [ProductRangeSearchResponseResourceMeta](docs/ProductRangeSearchResponseResourceMeta.md)
535
535
  - [ProductRangeSearchResultResource](docs/ProductRangeSearchResultResource.md)
536
536
  - [ProductRangeSearchResultResourceArrayResponse](docs/ProductRangeSearchResultResourceArrayResponse.md)
537
+ - [ProductRangeSiteDetailFrontendResource](docs/ProductRangeSiteDetailFrontendResource.md)
538
+ - [ProductRangeSiteDetailFrontendResourceArrayResponse](docs/ProductRangeSiteDetailFrontendResourceArrayResponse.md)
537
539
  - [ProductRangeSiteDetailLiteResource](docs/ProductRangeSiteDetailLiteResource.md)
538
540
  - [ProductRangeSiteDetailLiteResourceArrayResponse](docs/ProductRangeSiteDetailLiteResourceArrayResponse.md)
539
541
  - [ProductRangeSiteDetailResource](docs/ProductRangeSiteDetailResource.md)
@@ -687,7 +689,7 @@ and is automatically generated by the
687
689
  [OpenAPI Generator](https://openapi-generator.tech) project:
688
690
 
689
691
  - API version: `1.0.0`
690
- - Package version: `0.0.1769`
692
+ - Package version: `0.0.1770`
691
693
  - Generator version: `7.21.0`
692
694
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
693
695
 
@@ -0,0 +1,68 @@
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 ProductRangeSiteDetailFrontendResource
16
+ */
17
+ export interface ProductRangeSiteDetailFrontendResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductRangeSiteDetailFrontendResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ProductRangeSiteDetailFrontendResource
28
+ */
29
+ siteId: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ProductRangeSiteDetailFrontendResource
34
+ */
35
+ slug: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ProductRangeSiteDetailFrontendResource
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ProductRangeSiteDetailFrontendResource
46
+ */
47
+ description: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ProductRangeSiteDetailFrontendResource
52
+ */
53
+ content: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ProductRangeSiteDetailFrontendResource
58
+ */
59
+ thumbnail?: string | null;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ProductRangeSiteDetailFrontendResource interface.
63
+ */
64
+ export declare function instanceOfProductRangeSiteDetailFrontendResource(value: object): value is ProductRangeSiteDetailFrontendResource;
65
+ export declare function ProductRangeSiteDetailFrontendResourceFromJSON(json: any): ProductRangeSiteDetailFrontendResource;
66
+ export declare function ProductRangeSiteDetailFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailFrontendResource;
67
+ export declare function ProductRangeSiteDetailFrontendResourceToJSON(json: any): ProductRangeSiteDetailFrontendResource;
68
+ export declare function ProductRangeSiteDetailFrontendResourceToJSONTyped(value?: ProductRangeSiteDetailFrontendResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.instanceOfProductRangeSiteDetailFrontendResource = instanceOfProductRangeSiteDetailFrontendResource;
17
+ exports.ProductRangeSiteDetailFrontendResourceFromJSON = ProductRangeSiteDetailFrontendResourceFromJSON;
18
+ exports.ProductRangeSiteDetailFrontendResourceFromJSONTyped = ProductRangeSiteDetailFrontendResourceFromJSONTyped;
19
+ exports.ProductRangeSiteDetailFrontendResourceToJSON = ProductRangeSiteDetailFrontendResourceToJSON;
20
+ exports.ProductRangeSiteDetailFrontendResourceToJSONTyped = ProductRangeSiteDetailFrontendResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductRangeSiteDetailFrontendResource interface.
23
+ */
24
+ function instanceOfProductRangeSiteDetailFrontendResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('siteId' in value) || value['siteId'] === undefined)
28
+ return false;
29
+ if (!('slug' in value) || value['slug'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('description' in value) || value['description'] === undefined)
34
+ return false;
35
+ if (!('content' in value) || value['content'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ProductRangeSiteDetailFrontendResourceFromJSON(json) {
40
+ return ProductRangeSiteDetailFrontendResourceFromJSONTyped(json, false);
41
+ }
42
+ function ProductRangeSiteDetailFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'siteId': json['siteId'],
49
+ 'slug': json['slug'],
50
+ 'name': json['name'],
51
+ 'description': json['description'],
52
+ 'content': json['content'],
53
+ 'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
54
+ };
55
+ }
56
+ function ProductRangeSiteDetailFrontendResourceToJSON(json) {
57
+ return ProductRangeSiteDetailFrontendResourceToJSONTyped(json, false);
58
+ }
59
+ function ProductRangeSiteDetailFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
60
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'siteId': value['siteId'],
67
+ 'slug': value['slug'],
68
+ 'name': value['name'],
69
+ 'description': value['description'],
70
+ 'content': value['content'],
71
+ 'thumbnail': value['thumbnail'],
72
+ };
73
+ }
@@ -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 { ProductRangeSiteDetailFrontendResource } from './ProductRangeSiteDetailFrontendResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductRangeSiteDetailFrontendResourceArrayResponse
17
+ */
18
+ export interface ProductRangeSiteDetailFrontendResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductRangeSiteDetailFrontendResource>}
22
+ * @memberof ProductRangeSiteDetailFrontendResourceArrayResponse
23
+ */
24
+ data?: Array<ProductRangeSiteDetailFrontendResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductRangeSiteDetailFrontendResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductRangeSiteDetailFrontendResourceArrayResponse(value: object): value is ProductRangeSiteDetailFrontendResourceArrayResponse;
30
+ export declare function ProductRangeSiteDetailFrontendResourceArrayResponseFromJSON(json: any): ProductRangeSiteDetailFrontendResourceArrayResponse;
31
+ export declare function ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailFrontendResourceArrayResponse;
32
+ export declare function ProductRangeSiteDetailFrontendResourceArrayResponseToJSON(json: any): ProductRangeSiteDetailFrontendResourceArrayResponse;
33
+ export declare function ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped(value?: ProductRangeSiteDetailFrontendResourceArrayResponse | 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.instanceOfProductRangeSiteDetailFrontendResourceArrayResponse = instanceOfProductRangeSiteDetailFrontendResourceArrayResponse;
17
+ exports.ProductRangeSiteDetailFrontendResourceArrayResponseFromJSON = ProductRangeSiteDetailFrontendResourceArrayResponseFromJSON;
18
+ exports.ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped = ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped;
19
+ exports.ProductRangeSiteDetailFrontendResourceArrayResponseToJSON = ProductRangeSiteDetailFrontendResourceArrayResponseToJSON;
20
+ exports.ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped = ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped;
21
+ var ProductRangeSiteDetailFrontendResource_1 = require("./ProductRangeSiteDetailFrontendResource");
22
+ /**
23
+ * Check if a given object implements the ProductRangeSiteDetailFrontendResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductRangeSiteDetailFrontendResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductRangeSiteDetailFrontendResourceArrayResponseFromJSON(json) {
29
+ return ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductRangeSiteDetailFrontendResource_1.ProductRangeSiteDetailFrontendResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductRangeSiteDetailFrontendResourceArrayResponseToJSON(json) {
40
+ return ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped(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(ProductRangeSiteDetailFrontendResource_1.ProductRangeSiteDetailFrontendResourceToJSON)),
49
+ };
50
+ }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
+ if (!('website' in value) || value['website'] === undefined)
32
+ return false;
31
33
  if (!('phone' in value) || value['phone'] === undefined)
32
34
  return false;
33
35
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -52,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'siteId': json['siteId'],
53
55
  'name': json['name'],
54
56
  'email': json['email'],
55
- 'website': json['website'] == null ? undefined : json['website'],
57
+ 'website': json['website'],
56
58
  'phone': json['phone'],
57
59
  'address': json['address'] == null ? undefined : json['address'],
58
60
  'latitude': json['latitude'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
38
40
  if (!('website' in value) || value['website'] === undefined)
@@ -53,7 +55,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'phone': json['phone'],
54
56
  'longitude': json['longitude'],
55
57
  'latitude': json['latitude'],
56
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
58
+ 'tagLine': json['tag_line'],
57
59
  'email': json['email'],
58
60
  'website': json['website'],
59
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -36,8 +36,12 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('email' in value) || value['email'] === undefined)
40
42
  return false;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
41
45
  if (!('suppliers' in value) || value['suppliers'] === undefined)
42
46
  return false;
43
47
  if (!('address' in value) || value['address'] === undefined)
@@ -60,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
60
64
  'phone': json['phone'],
61
65
  'longitude': json['longitude'],
62
66
  'latitude': json['latitude'],
63
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
67
+ 'tagLine': json['tag_line'],
64
68
  'email': json['email'],
65
- 'website': json['website'] == null ? undefined : json['website'],
69
+ 'website': json['website'],
66
70
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
67
71
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
68
72
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['displayStartDate'],
53
51
  'displayEndDate': json['displayEndDate'],
@@ -301,6 +301,8 @@ export * from './ProductRangeSearchResponseResourceArrayResponse';
301
301
  export * from './ProductRangeSearchResponseResourceMeta';
302
302
  export * from './ProductRangeSearchResultResource';
303
303
  export * from './ProductRangeSearchResultResourceArrayResponse';
304
+ export * from './ProductRangeSiteDetailFrontendResource';
305
+ export * from './ProductRangeSiteDetailFrontendResourceArrayResponse';
304
306
  export * from './ProductRangeSiteDetailLiteResource';
305
307
  export * from './ProductRangeSiteDetailLiteResourceArrayResponse';
306
308
  export * from './ProductRangeSiteDetailResource';
@@ -319,6 +319,8 @@ __exportStar(require("./ProductRangeSearchResponseResourceArrayResponse"), expor
319
319
  __exportStar(require("./ProductRangeSearchResponseResourceMeta"), exports);
320
320
  __exportStar(require("./ProductRangeSearchResultResource"), exports);
321
321
  __exportStar(require("./ProductRangeSearchResultResourceArrayResponse"), exports);
322
+ __exportStar(require("./ProductRangeSiteDetailFrontendResource"), exports);
323
+ __exportStar(require("./ProductRangeSiteDetailFrontendResourceArrayResponse"), exports);
322
324
  __exportStar(require("./ProductRangeSiteDetailLiteResource"), exports);
323
325
  __exportStar(require("./ProductRangeSiteDetailLiteResourceArrayResponse"), exports);
324
326
  __exportStar(require("./ProductRangeSiteDetailResource"), exports);
@@ -0,0 +1,46 @@
1
+
2
+ # ProductRangeSiteDetailFrontendResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `siteId` | number
11
+ `slug` | string
12
+ `name` | string
13
+ `description` | string
14
+ `content` | string
15
+ `thumbnail` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ProductRangeSiteDetailFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "siteId": null,
26
+ "slug": null,
27
+ "name": null,
28
+ "description": null,
29
+ "content": null,
30
+ "thumbnail": null,
31
+ } satisfies ProductRangeSiteDetailFrontendResource
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 ProductRangeSiteDetailFrontendResource
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
+ # ProductRangeSiteDetailFrontendResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;ProductRangeSiteDetailFrontendResource&gt;](ProductRangeSiteDetailFrontendResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductRangeSiteDetailFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductRangeSiteDetailFrontendResourceArrayResponse
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 ProductRangeSiteDetailFrontendResourceArrayResponse
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
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | object
12
+ `date` | string
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1769",
3
+ "version": "0.0.1770",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,119 @@
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 ProductRangeSiteDetailFrontendResource
20
+ */
21
+ export interface ProductRangeSiteDetailFrontendResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductRangeSiteDetailFrontendResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ProductRangeSiteDetailFrontendResource
32
+ */
33
+ siteId: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ProductRangeSiteDetailFrontendResource
38
+ */
39
+ slug: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ProductRangeSiteDetailFrontendResource
44
+ */
45
+ name: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ProductRangeSiteDetailFrontendResource
50
+ */
51
+ description: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ProductRangeSiteDetailFrontendResource
56
+ */
57
+ content: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ProductRangeSiteDetailFrontendResource
62
+ */
63
+ thumbnail?: string | null;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ProductRangeSiteDetailFrontendResource interface.
68
+ */
69
+ export function instanceOfProductRangeSiteDetailFrontendResource(value: object): value is ProductRangeSiteDetailFrontendResource {
70
+ if (!('id' in value) || value['id'] === undefined) return false;
71
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
72
+ if (!('slug' in value) || value['slug'] === undefined) return false;
73
+ if (!('name' in value) || value['name'] === undefined) return false;
74
+ if (!('description' in value) || value['description'] === undefined) return false;
75
+ if (!('content' in value) || value['content'] === undefined) return false;
76
+ return true;
77
+ }
78
+
79
+ export function ProductRangeSiteDetailFrontendResourceFromJSON(json: any): ProductRangeSiteDetailFrontendResource {
80
+ return ProductRangeSiteDetailFrontendResourceFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function ProductRangeSiteDetailFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailFrontendResource {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'id': json['id'],
90
+ 'siteId': json['siteId'],
91
+ 'slug': json['slug'],
92
+ 'name': json['name'],
93
+ 'description': json['description'],
94
+ 'content': json['content'],
95
+ 'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
96
+ };
97
+ }
98
+
99
+ export function ProductRangeSiteDetailFrontendResourceToJSON(json: any): ProductRangeSiteDetailFrontendResource {
100
+ return ProductRangeSiteDetailFrontendResourceToJSONTyped(json, false);
101
+ }
102
+
103
+ export function ProductRangeSiteDetailFrontendResourceToJSONTyped(value?: ProductRangeSiteDetailFrontendResource | null, ignoreDiscriminator: boolean = false): any {
104
+ if (value == null) {
105
+ return value;
106
+ }
107
+
108
+ return {
109
+
110
+ 'id': value['id'],
111
+ 'siteId': value['siteId'],
112
+ 'slug': value['slug'],
113
+ 'name': value['name'],
114
+ 'description': value['description'],
115
+ 'content': value['content'],
116
+ 'thumbnail': value['thumbnail'],
117
+ };
118
+ }
119
+
@@ -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 { ProductRangeSiteDetailFrontendResource } from './ProductRangeSiteDetailFrontendResource';
17
+ import {
18
+ ProductRangeSiteDetailFrontendResourceFromJSON,
19
+ ProductRangeSiteDetailFrontendResourceFromJSONTyped,
20
+ ProductRangeSiteDetailFrontendResourceToJSON,
21
+ ProductRangeSiteDetailFrontendResourceToJSONTyped,
22
+ } from './ProductRangeSiteDetailFrontendResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductRangeSiteDetailFrontendResourceArrayResponse
28
+ */
29
+ export interface ProductRangeSiteDetailFrontendResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductRangeSiteDetailFrontendResource>}
33
+ * @memberof ProductRangeSiteDetailFrontendResourceArrayResponse
34
+ */
35
+ data?: Array<ProductRangeSiteDetailFrontendResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductRangeSiteDetailFrontendResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductRangeSiteDetailFrontendResourceArrayResponse(value: object): value is ProductRangeSiteDetailFrontendResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductRangeSiteDetailFrontendResourceArrayResponseFromJSON(json: any): ProductRangeSiteDetailFrontendResourceArrayResponse {
46
+ return ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductRangeSiteDetailFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailFrontendResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRangeSiteDetailFrontendResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductRangeSiteDetailFrontendResourceArrayResponseToJSON(json: any): ProductRangeSiteDetailFrontendResourceArrayResponse {
60
+ return ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductRangeSiteDetailFrontendResourceArrayResponseToJSONTyped(value?: ProductRangeSiteDetailFrontendResourceArrayResponse | 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(ProductRangeSiteDetailFrontendResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website?: string | null;
51
+ website: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
106
106
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
107
107
  if (!('name' in value) || value['name'] === undefined) return false;
108
108
  if (!('email' in value) || value['email'] === undefined) return false;
109
+ if (!('website' in value) || value['website'] === undefined) return false;
109
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
@@ -128,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
128
129
  'siteId': json['siteId'],
129
130
  'name': json['name'],
130
131
  'email': json['email'],
131
- 'website': json['website'] == null ? undefined : json['website'],
132
+ 'website': json['website'],
132
133
  'phone': json['phone'],
133
134
  'address': json['address'] == null ? undefined : json['address'],
134
135
  'latitude': json['latitude'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -98,6 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
98
98
  if (!('phone' in value) || value['phone'] === undefined) return false;
99
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
101
102
  if (!('email' in value) || value['email'] === undefined) return false;
102
103
  if (!('website' in value) || value['website'] === undefined) return false;
103
104
  return true;
@@ -119,7 +120,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
119
120
  'phone': json['phone'],
120
121
  'longitude': json['longitude'],
121
122
  'latitude': json['latitude'],
122
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
123
+ 'tagLine': json['tag_line'],
123
124
  'email': json['email'],
124
125
  'website': json['website'],
125
126
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {string}
@@ -137,7 +137,9 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
137
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
138
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
140
141
  if (!('email' in value) || value['email'] === undefined) return false;
142
+ if (!('website' in value) || value['website'] === undefined) return false;
141
143
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
142
144
  if (!('address' in value) || value['address'] === undefined) return false;
143
145
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -160,9 +162,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
160
162
  'phone': json['phone'],
161
163
  'longitude': json['longitude'],
162
164
  'latitude': json['latitude'],
163
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
165
+ 'tagLine': json['tag_line'],
164
166
  'email': json['email'],
165
- 'website': json['website'] == null ? undefined : json['website'],
167
+ 'website': json['website'],
166
168
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
167
169
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
168
170
  'address': AddressResourceFromJSON(json['address']),
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],
@@ -303,6 +303,8 @@ export * from './ProductRangeSearchResponseResourceArrayResponse';
303
303
  export * from './ProductRangeSearchResponseResourceMeta';
304
304
  export * from './ProductRangeSearchResultResource';
305
305
  export * from './ProductRangeSearchResultResourceArrayResponse';
306
+ export * from './ProductRangeSiteDetailFrontendResource';
307
+ export * from './ProductRangeSiteDetailFrontendResourceArrayResponse';
306
308
  export * from './ProductRangeSiteDetailLiteResource';
307
309
  export * from './ProductRangeSiteDetailLiteResourceArrayResponse';
308
310
  export * from './ProductRangeSiteDetailResource';