@digital8/lighting-illusions-ts-sdk 0.0.1792 → 0.0.1793
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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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 +3 -1
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- 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/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- 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 +3 -2
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/index.ts +4 -0
|
@@ -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
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
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']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -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
|
+
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -109,6 +109,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
109
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
112
113
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
113
114
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
114
115
|
return true;
|
|
@@ -133,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
133
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
134
135
|
'latitude': json['latitude'],
|
|
135
136
|
'longitude': json['longitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
138
139
|
'specialDates': json['specialDates'],
|
|
139
140
|
'suppliers': json['suppliers'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -98,8 +98,8 @@ 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;
|
|
102
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
102
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
103
103
|
return true;
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -119,9 +119,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
119
119
|
'phone': json['phone'],
|
|
120
120
|
'longitude': json['longitude'],
|
|
121
121
|
'latitude': json['latitude'],
|
|
122
|
-
'tagLine': json['tag_line'],
|
|
122
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
123
123
|
'email': json['email'],
|
|
124
|
-
'website': json['website']
|
|
124
|
+
'website': json['website'],
|
|
125
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
126
126
|
};
|
|
127
127
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -314,6 +314,8 @@ export * from './ProductRegistrationResource';
|
|
|
314
314
|
export * from './ProductRegistrationResourceArrayResponse';
|
|
315
315
|
export * from './ProductResource';
|
|
316
316
|
export * from './ProductResourceArrayResponse';
|
|
317
|
+
export * from './ProductReviewsResource';
|
|
318
|
+
export * from './ProductReviewsResourceArrayResponse';
|
|
317
319
|
export * from './ProductSearchResponseResource';
|
|
318
320
|
export * from './ProductSearchResponseResourceArrayResponse';
|
|
319
321
|
export * from './ProductSearchResponseResourceMeta';
|
|
@@ -335,6 +337,8 @@ export * from './ReviewListResource';
|
|
|
335
337
|
export * from './ReviewListResourceArrayResponse';
|
|
336
338
|
export * from './ReviewLiteResource';
|
|
337
339
|
export * from './ReviewLiteResourceArrayResponse';
|
|
340
|
+
export * from './ReviewPublicResource';
|
|
341
|
+
export * from './ReviewPublicResourceArrayResponse';
|
|
338
342
|
export * from './ReviewResource';
|
|
339
343
|
export * from './ReviewResourceArrayResponse';
|
|
340
344
|
export * from './SEOResource';
|