@digital8/lighting-illusions-ts-sdk 0.0.1823 → 0.0.1824
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.
- package/.openapi-generator/FILES +8 -0
- package/README.md +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ProductReviewsResource.d.ts +63 -0
- package/dist/models/ProductReviewsResource.js +70 -0
- package/dist/models/ProductReviewsResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductReviewsResourceArrayResponse.js +50 -0
- package/dist/models/ReviewPublicResource.d.ts +68 -0
- package/dist/models/ReviewPublicResource.js +71 -0
- package/dist/models/ReviewPublicResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewPublicResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ProductReviewsResource.md +44 -0
- package/docs/ProductReviewsResourceArrayResponse.md +34 -0
- package/docs/ReviewPublicResource.md +46 -0
- package/docs/ReviewPublicResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ProductReviewsResource.ts +118 -0
- package/src/models/ProductReviewsResourceArrayResponse.ts +73 -0
- package/src/models/ReviewPublicResource.ts +118 -0
- package/src/models/ReviewPublicResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +4 -0
|
@@ -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'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -312,6 +312,8 @@ export * from './ProductRegistrationResource';
|
|
|
312
312
|
export * from './ProductRegistrationResourceArrayResponse';
|
|
313
313
|
export * from './ProductResource';
|
|
314
314
|
export * from './ProductResourceArrayResponse';
|
|
315
|
+
export * from './ProductReviewsResource';
|
|
316
|
+
export * from './ProductReviewsResourceArrayResponse';
|
|
315
317
|
export * from './ProductSearchResponseResource';
|
|
316
318
|
export * from './ProductSearchResponseResourceArrayResponse';
|
|
317
319
|
export * from './ProductSearchResponseResourceMeta';
|
|
@@ -333,6 +335,8 @@ export * from './ReviewListResource';
|
|
|
333
335
|
export * from './ReviewListResourceArrayResponse';
|
|
334
336
|
export * from './ReviewLiteResource';
|
|
335
337
|
export * from './ReviewLiteResourceArrayResponse';
|
|
338
|
+
export * from './ReviewPublicResource';
|
|
339
|
+
export * from './ReviewPublicResourceArrayResponse';
|
|
336
340
|
export * from './ReviewResource';
|
|
337
341
|
export * from './ReviewResourceArrayResponse';
|
|
338
342
|
export * from './SEOResource';
|
package/dist/models/index.js
CHANGED
|
@@ -330,6 +330,8 @@ __exportStar(require("./ProductRegistrationResource"), exports);
|
|
|
330
330
|
__exportStar(require("./ProductRegistrationResourceArrayResponse"), exports);
|
|
331
331
|
__exportStar(require("./ProductResource"), exports);
|
|
332
332
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
333
|
+
__exportStar(require("./ProductReviewsResource"), exports);
|
|
334
|
+
__exportStar(require("./ProductReviewsResourceArrayResponse"), exports);
|
|
333
335
|
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
334
336
|
__exportStar(require("./ProductSearchResponseResourceArrayResponse"), exports);
|
|
335
337
|
__exportStar(require("./ProductSearchResponseResourceMeta"), exports);
|
|
@@ -351,6 +353,8 @@ __exportStar(require("./ReviewListResource"), exports);
|
|
|
351
353
|
__exportStar(require("./ReviewListResourceArrayResponse"), exports);
|
|
352
354
|
__exportStar(require("./ReviewLiteResource"), exports);
|
|
353
355
|
__exportStar(require("./ReviewLiteResourceArrayResponse"), exports);
|
|
356
|
+
__exportStar(require("./ReviewPublicResource"), exports);
|
|
357
|
+
__exportStar(require("./ReviewPublicResourceArrayResponse"), exports);
|
|
354
358
|
__exportStar(require("./ReviewResource"), exports);
|
|
355
359
|
__exportStar(require("./ReviewResourceArrayResponse"), exports);
|
|
356
360
|
__exportStar(require("./SEOResource"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductReviewsResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`reviews` | [Array<ReviewPublicResource>](ReviewPublicResource.md)
|
|
10
|
+
`totalReview` | number
|
|
11
|
+
`averageRating` | number
|
|
12
|
+
`stats` | Array<object>
|
|
13
|
+
`myReview` | string
|
|
14
|
+
`canReview` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { ProductReviewsResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"reviews": null,
|
|
24
|
+
"totalReview": null,
|
|
25
|
+
"averageRating": null,
|
|
26
|
+
"stats": null,
|
|
27
|
+
"myReview": null,
|
|
28
|
+
"canReview": null,
|
|
29
|
+
} satisfies ProductReviewsResource
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductReviewsResource
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductReviewsResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductReviewsResource>](ProductReviewsResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductReviewsResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductReviewsResourceArrayResponse
|
|
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 ProductReviewsResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ReviewPublicResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`overallRating` | number
|
|
11
|
+
`comment` | string
|
|
12
|
+
`replyText` | string
|
|
13
|
+
`reviewerName` | string
|
|
14
|
+
`location` | string
|
|
15
|
+
`createdAt` | Date
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ReviewPublicResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": null,
|
|
25
|
+
"overallRating": null,
|
|
26
|
+
"comment": null,
|
|
27
|
+
"replyText": null,
|
|
28
|
+
"reviewerName": null,
|
|
29
|
+
"location": null,
|
|
30
|
+
"createdAt": null,
|
|
31
|
+
} satisfies ReviewPublicResource
|
|
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 ReviewPublicResource
|
|
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
|
+
# ReviewPublicResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReviewPublicResource>](ReviewPublicResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ReviewPublicResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ReviewPublicResourceArrayResponse
|
|
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 ReviewPublicResourceArrayResponse
|
|
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
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,7 +79,6 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
83
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -100,7 +99,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
99
|
return {
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
102
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
104
103
|
'line1': json['line_1'],
|
|
105
104
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
106
105
|
'postcode': json['postcode'],
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { ReviewPublicResource } from './ReviewPublicResource';
|
|
17
|
+
import {
|
|
18
|
+
ReviewPublicResourceFromJSON,
|
|
19
|
+
ReviewPublicResourceFromJSONTyped,
|
|
20
|
+
ReviewPublicResourceToJSON,
|
|
21
|
+
ReviewPublicResourceToJSONTyped,
|
|
22
|
+
} from './ReviewPublicResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductReviewsResource
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductReviewsResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ReviewPublicResource>}
|
|
33
|
+
* @memberof ProductReviewsResource
|
|
34
|
+
*/
|
|
35
|
+
reviews: Array<ReviewPublicResource> | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ProductReviewsResource
|
|
40
|
+
*/
|
|
41
|
+
totalReview: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ProductReviewsResource
|
|
46
|
+
*/
|
|
47
|
+
averageRating: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<object>}
|
|
51
|
+
* @memberof ProductReviewsResource
|
|
52
|
+
*/
|
|
53
|
+
stats: Array<object>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ProductReviewsResource
|
|
58
|
+
*/
|
|
59
|
+
myReview?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ProductReviewsResource
|
|
64
|
+
*/
|
|
65
|
+
canReview: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ProductReviewsResource interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfProductReviewsResource(value: object): value is ProductReviewsResource {
|
|
72
|
+
if (!('reviews' in value) || value['reviews'] === undefined) return false;
|
|
73
|
+
if (!('totalReview' in value) || value['totalReview'] === undefined) return false;
|
|
74
|
+
if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
|
|
75
|
+
if (!('stats' in value) || value['stats'] === undefined) return false;
|
|
76
|
+
if (!('canReview' in value) || value['canReview'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ProductReviewsResourceFromJSON(json: any): ProductReviewsResource {
|
|
81
|
+
return ProductReviewsResourceFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ProductReviewsResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductReviewsResource {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'reviews': (json['reviews'] == null ? null : (json['reviews'] as Array<any>).map(ReviewPublicResourceFromJSON)),
|
|
91
|
+
'totalReview': json['totalReview'],
|
|
92
|
+
'averageRating': json['averageRating'],
|
|
93
|
+
'stats': json['stats'],
|
|
94
|
+
'myReview': json['myReview'] == null ? undefined : json['myReview'],
|
|
95
|
+
'canReview': json['canReview'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProductReviewsResourceToJSON(json: any): ProductReviewsResource {
|
|
100
|
+
return ProductReviewsResourceToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function ProductReviewsResourceToJSONTyped(value?: ProductReviewsResource | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'reviews': (value['reviews'] == null ? null : (value['reviews'] as Array<any>).map(ReviewPublicResourceToJSON)),
|
|
111
|
+
'totalReview': value['totalReview'],
|
|
112
|
+
'averageRating': value['averageRating'],
|
|
113
|
+
'stats': value['stats'],
|
|
114
|
+
'myReview': value['myReview'],
|
|
115
|
+
'canReview': value['canReview'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -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 { ProductReviewsResource } from './ProductReviewsResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductReviewsResourceFromJSON,
|
|
19
|
+
ProductReviewsResourceFromJSONTyped,
|
|
20
|
+
ProductReviewsResourceToJSON,
|
|
21
|
+
ProductReviewsResourceToJSONTyped,
|
|
22
|
+
} from './ProductReviewsResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductReviewsResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductReviewsResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductReviewsResource>}
|
|
33
|
+
* @memberof ProductReviewsResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductReviewsResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductReviewsResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductReviewsResourceArrayResponse(value: object): value is ProductReviewsResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductReviewsResourceArrayResponseFromJSON(json: any): ProductReviewsResourceArrayResponse {
|
|
46
|
+
return ProductReviewsResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductReviewsResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductReviewsResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductReviewsResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductReviewsResourceArrayResponseToJSON(json: any): ProductReviewsResourceArrayResponse {
|
|
60
|
+
return ProductReviewsResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductReviewsResourceArrayResponseToJSONTyped(value?: ProductReviewsResourceArrayResponse | 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(ProductReviewsResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
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 ReviewPublicResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ReviewPublicResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ReviewPublicResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReviewPublicResource
|
|
32
|
+
*/
|
|
33
|
+
overallRating: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReviewPublicResource
|
|
38
|
+
*/
|
|
39
|
+
comment: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ReviewPublicResource
|
|
44
|
+
*/
|
|
45
|
+
replyText?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ReviewPublicResource
|
|
50
|
+
*/
|
|
51
|
+
reviewerName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ReviewPublicResource
|
|
56
|
+
*/
|
|
57
|
+
location: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof ReviewPublicResource
|
|
62
|
+
*/
|
|
63
|
+
createdAt?: Date | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the ReviewPublicResource interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfReviewPublicResource(value: object): value is ReviewPublicResource {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('overallRating' in value) || value['overallRating'] === undefined) return false;
|
|
72
|
+
if (!('comment' in value) || value['comment'] === undefined) return false;
|
|
73
|
+
if (!('reviewerName' in value) || value['reviewerName'] === undefined) return false;
|
|
74
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ReviewPublicResourceFromJSON(json: any): ReviewPublicResource {
|
|
79
|
+
return ReviewPublicResourceFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ReviewPublicResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewPublicResource {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'id': json['id'],
|
|
89
|
+
'overallRating': json['overallRating'],
|
|
90
|
+
'comment': json['comment'],
|
|
91
|
+
'replyText': json['replyText'] == null ? undefined : json['replyText'],
|
|
92
|
+
'reviewerName': json['reviewerName'],
|
|
93
|
+
'location': json['location'],
|
|
94
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ReviewPublicResourceToJSON(json: any): ReviewPublicResource {
|
|
99
|
+
return ReviewPublicResourceToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ReviewPublicResourceToJSONTyped(value?: ReviewPublicResource | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'id': value['id'],
|
|
110
|
+
'overallRating': value['overallRating'],
|
|
111
|
+
'comment': value['comment'],
|
|
112
|
+
'replyText': value['replyText'],
|
|
113
|
+
'reviewerName': value['reviewerName'],
|
|
114
|
+
'location': value['location'],
|
|
115
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -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 { ReviewPublicResource } from './ReviewPublicResource';
|
|
17
|
+
import {
|
|
18
|
+
ReviewPublicResourceFromJSON,
|
|
19
|
+
ReviewPublicResourceFromJSONTyped,
|
|
20
|
+
ReviewPublicResourceToJSON,
|
|
21
|
+
ReviewPublicResourceToJSONTyped,
|
|
22
|
+
} from './ReviewPublicResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ReviewPublicResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ReviewPublicResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ReviewPublicResource>}
|
|
33
|
+
* @memberof ReviewPublicResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ReviewPublicResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ReviewPublicResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfReviewPublicResourceArrayResponse(value: object): value is ReviewPublicResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ReviewPublicResourceArrayResponseFromJSON(json: any): ReviewPublicResourceArrayResponse {
|
|
46
|
+
return ReviewPublicResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReviewPublicResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewPublicResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ReviewPublicResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReviewPublicResourceArrayResponseToJSON(json: any): ReviewPublicResourceArrayResponse {
|
|
60
|
+
return ReviewPublicResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ReviewPublicResourceArrayResponseToJSONTyped(value?: ReviewPublicResourceArrayResponse | 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(ReviewPublicResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +128,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
128
|
'siteId': json['siteId'],
|
|
130
129
|
'name': json['name'],
|
|
131
130
|
'email': json['email'],
|
|
132
|
-
'website': json['website'],
|
|
131
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
133
132
|
'phone': json['phone'],
|
|
134
133
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
134
|
'latitude': json['latitude'],
|