@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
package/.openapi-generator/FILES
CHANGED
|
@@ -331,6 +331,8 @@ docs/ProductRegistrationResource.md
|
|
|
331
331
|
docs/ProductRegistrationResourceArrayResponse.md
|
|
332
332
|
docs/ProductResource.md
|
|
333
333
|
docs/ProductResourceArrayResponse.md
|
|
334
|
+
docs/ProductReviewsResource.md
|
|
335
|
+
docs/ProductReviewsResourceArrayResponse.md
|
|
334
336
|
docs/ProductSearchResponseResource.md
|
|
335
337
|
docs/ProductSearchResponseResourceArrayResponse.md
|
|
336
338
|
docs/ProductSearchResponseResourceMeta.md
|
|
@@ -355,6 +357,8 @@ docs/ReviewListResource.md
|
|
|
355
357
|
docs/ReviewListResourceArrayResponse.md
|
|
356
358
|
docs/ReviewLiteResource.md
|
|
357
359
|
docs/ReviewLiteResourceArrayResponse.md
|
|
360
|
+
docs/ReviewPublicResource.md
|
|
361
|
+
docs/ReviewPublicResourceArrayResponse.md
|
|
358
362
|
docs/ReviewResource.md
|
|
359
363
|
docs/ReviewResourceArrayResponse.md
|
|
360
364
|
docs/SEOResource.md
|
|
@@ -814,6 +818,8 @@ src/models/ProductRegistrationResource.ts
|
|
|
814
818
|
src/models/ProductRegistrationResourceArrayResponse.ts
|
|
815
819
|
src/models/ProductResource.ts
|
|
816
820
|
src/models/ProductResourceArrayResponse.ts
|
|
821
|
+
src/models/ProductReviewsResource.ts
|
|
822
|
+
src/models/ProductReviewsResourceArrayResponse.ts
|
|
817
823
|
src/models/ProductSearchResponseResource.ts
|
|
818
824
|
src/models/ProductSearchResponseResourceArrayResponse.ts
|
|
819
825
|
src/models/ProductSearchResponseResourceMeta.ts
|
|
@@ -835,6 +841,8 @@ src/models/ReviewListResource.ts
|
|
|
835
841
|
src/models/ReviewListResourceArrayResponse.ts
|
|
836
842
|
src/models/ReviewLiteResource.ts
|
|
837
843
|
src/models/ReviewLiteResourceArrayResponse.ts
|
|
844
|
+
src/models/ReviewPublicResource.ts
|
|
845
|
+
src/models/ReviewPublicResourceArrayResponse.ts
|
|
838
846
|
src/models/ReviewResource.ts
|
|
839
847
|
src/models/ReviewResourceArrayResponse.ts
|
|
840
848
|
src/models/SEOResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1793
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -553,6 +553,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
553
553
|
- [ProductRegistrationResourceArrayResponse](docs/ProductRegistrationResourceArrayResponse.md)
|
|
554
554
|
- [ProductResource](docs/ProductResource.md)
|
|
555
555
|
- [ProductResourceArrayResponse](docs/ProductResourceArrayResponse.md)
|
|
556
|
+
- [ProductReviewsResource](docs/ProductReviewsResource.md)
|
|
557
|
+
- [ProductReviewsResourceArrayResponse](docs/ProductReviewsResourceArrayResponse.md)
|
|
556
558
|
- [ProductSearchResponseResource](docs/ProductSearchResponseResource.md)
|
|
557
559
|
- [ProductSearchResponseResourceArrayResponse](docs/ProductSearchResponseResourceArrayResponse.md)
|
|
558
560
|
- [ProductSearchResponseResourceMeta](docs/ProductSearchResponseResourceMeta.md)
|
|
@@ -574,6 +576,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
574
576
|
- [ReviewListResourceArrayResponse](docs/ReviewListResourceArrayResponse.md)
|
|
575
577
|
- [ReviewLiteResource](docs/ReviewLiteResource.md)
|
|
576
578
|
- [ReviewLiteResourceArrayResponse](docs/ReviewLiteResourceArrayResponse.md)
|
|
579
|
+
- [ReviewPublicResource](docs/ReviewPublicResource.md)
|
|
580
|
+
- [ReviewPublicResourceArrayResponse](docs/ReviewPublicResourceArrayResponse.md)
|
|
577
581
|
- [ReviewResource](docs/ReviewResource.md)
|
|
578
582
|
- [ReviewResourceArrayResponse](docs/ReviewResourceArrayResponse.md)
|
|
579
583
|
- [SEOResource](docs/SEOResource.md)
|
|
@@ -703,7 +707,7 @@ and is automatically generated by the
|
|
|
703
707
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
704
708
|
|
|
705
709
|
- API version: `1.0.0`
|
|
706
|
-
- Package version: `0.0.
|
|
710
|
+
- Package version: `0.0.1793`
|
|
707
711
|
- Generator version: `7.21.0`
|
|
708
712
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
709
713
|
|
|
@@ -37,6 +37,8 @@ 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;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { ReviewPublicResource } from './ReviewPublicResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductReviewsResource
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductReviewsResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ReviewPublicResource>}
|
|
22
|
+
* @memberof ProductReviewsResource
|
|
23
|
+
*/
|
|
24
|
+
reviews: Array<ReviewPublicResource> | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ProductReviewsResource
|
|
29
|
+
*/
|
|
30
|
+
totalReview: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ProductReviewsResource
|
|
35
|
+
*/
|
|
36
|
+
averageRating: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<object>}
|
|
40
|
+
* @memberof ProductReviewsResource
|
|
41
|
+
*/
|
|
42
|
+
stats: Array<object>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ProductReviewsResource
|
|
47
|
+
*/
|
|
48
|
+
myReview?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof ProductReviewsResource
|
|
53
|
+
*/
|
|
54
|
+
canReview: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ProductReviewsResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfProductReviewsResource(value: object): value is ProductReviewsResource;
|
|
60
|
+
export declare function ProductReviewsResourceFromJSON(json: any): ProductReviewsResource;
|
|
61
|
+
export declare function ProductReviewsResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductReviewsResource;
|
|
62
|
+
export declare function ProductReviewsResourceToJSON(json: any): ProductReviewsResource;
|
|
63
|
+
export declare function ProductReviewsResourceToJSONTyped(value?: ProductReviewsResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfProductReviewsResource = instanceOfProductReviewsResource;
|
|
17
|
+
exports.ProductReviewsResourceFromJSON = ProductReviewsResourceFromJSON;
|
|
18
|
+
exports.ProductReviewsResourceFromJSONTyped = ProductReviewsResourceFromJSONTyped;
|
|
19
|
+
exports.ProductReviewsResourceToJSON = ProductReviewsResourceToJSON;
|
|
20
|
+
exports.ProductReviewsResourceToJSONTyped = ProductReviewsResourceToJSONTyped;
|
|
21
|
+
var ReviewPublicResource_1 = require("./ReviewPublicResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductReviewsResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductReviewsResource(value) {
|
|
26
|
+
if (!('reviews' in value) || value['reviews'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('totalReview' in value) || value['totalReview'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('averageRating' in value) || value['averageRating'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('stats' in value) || value['stats'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('canReview' in value) || value['canReview'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ProductReviewsResourceFromJSON(json) {
|
|
39
|
+
return ProductReviewsResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ProductReviewsResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'reviews': (json['reviews'] == null ? null : json['reviews'].map(ReviewPublicResource_1.ReviewPublicResourceFromJSON)),
|
|
47
|
+
'totalReview': json['totalReview'],
|
|
48
|
+
'averageRating': json['averageRating'],
|
|
49
|
+
'stats': json['stats'],
|
|
50
|
+
'myReview': json['myReview'] == null ? undefined : json['myReview'],
|
|
51
|
+
'canReview': json['canReview'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function ProductReviewsResourceToJSON(json) {
|
|
55
|
+
return ProductReviewsResourceToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function ProductReviewsResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'reviews': (value['reviews'] == null ? null : value['reviews'].map(ReviewPublicResource_1.ReviewPublicResourceToJSON)),
|
|
64
|
+
'totalReview': value['totalReview'],
|
|
65
|
+
'averageRating': value['averageRating'],
|
|
66
|
+
'stats': value['stats'],
|
|
67
|
+
'myReview': value['myReview'],
|
|
68
|
+
'canReview': value['canReview'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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 { ProductReviewsResource } from './ProductReviewsResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductReviewsResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductReviewsResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductReviewsResource>}
|
|
22
|
+
* @memberof ProductReviewsResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductReviewsResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductReviewsResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductReviewsResourceArrayResponse(value: object): value is ProductReviewsResourceArrayResponse;
|
|
30
|
+
export declare function ProductReviewsResourceArrayResponseFromJSON(json: any): ProductReviewsResourceArrayResponse;
|
|
31
|
+
export declare function ProductReviewsResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductReviewsResourceArrayResponse;
|
|
32
|
+
export declare function ProductReviewsResourceArrayResponseToJSON(json: any): ProductReviewsResourceArrayResponse;
|
|
33
|
+
export declare function ProductReviewsResourceArrayResponseToJSONTyped(value?: ProductReviewsResourceArrayResponse | 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.instanceOfProductReviewsResourceArrayResponse = instanceOfProductReviewsResourceArrayResponse;
|
|
17
|
+
exports.ProductReviewsResourceArrayResponseFromJSON = ProductReviewsResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductReviewsResourceArrayResponseFromJSONTyped = ProductReviewsResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductReviewsResourceArrayResponseToJSON = ProductReviewsResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductReviewsResourceArrayResponseToJSONTyped = ProductReviewsResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductReviewsResource_1 = require("./ProductReviewsResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductReviewsResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductReviewsResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductReviewsResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductReviewsResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductReviewsResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductReviewsResource_1.ProductReviewsResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductReviewsResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductReviewsResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductReviewsResourceArrayResponseToJSONTyped(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(ProductReviewsResource_1.ProductReviewsResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 ReviewPublicResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ReviewPublicResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ReviewPublicResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ReviewPublicResource
|
|
28
|
+
*/
|
|
29
|
+
overallRating: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ReviewPublicResource
|
|
34
|
+
*/
|
|
35
|
+
comment: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ReviewPublicResource
|
|
40
|
+
*/
|
|
41
|
+
replyText?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ReviewPublicResource
|
|
46
|
+
*/
|
|
47
|
+
reviewerName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ReviewPublicResource
|
|
52
|
+
*/
|
|
53
|
+
location: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof ReviewPublicResource
|
|
58
|
+
*/
|
|
59
|
+
createdAt?: Date | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ReviewPublicResource interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfReviewPublicResource(value: object): value is ReviewPublicResource;
|
|
65
|
+
export declare function ReviewPublicResourceFromJSON(json: any): ReviewPublicResource;
|
|
66
|
+
export declare function ReviewPublicResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewPublicResource;
|
|
67
|
+
export declare function ReviewPublicResourceToJSON(json: any): ReviewPublicResource;
|
|
68
|
+
export declare function ReviewPublicResourceToJSONTyped(value?: ReviewPublicResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfReviewPublicResource = instanceOfReviewPublicResource;
|
|
17
|
+
exports.ReviewPublicResourceFromJSON = ReviewPublicResourceFromJSON;
|
|
18
|
+
exports.ReviewPublicResourceFromJSONTyped = ReviewPublicResourceFromJSONTyped;
|
|
19
|
+
exports.ReviewPublicResourceToJSON = ReviewPublicResourceToJSON;
|
|
20
|
+
exports.ReviewPublicResourceToJSONTyped = ReviewPublicResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ReviewPublicResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfReviewPublicResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('overallRating' in value) || value['overallRating'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('comment' in value) || value['comment'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('reviewerName' in value) || value['reviewerName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('location' in value) || value['location'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ReviewPublicResourceFromJSON(json) {
|
|
38
|
+
return ReviewPublicResourceFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ReviewPublicResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'overallRating': json['overallRating'],
|
|
47
|
+
'comment': json['comment'],
|
|
48
|
+
'replyText': json['replyText'] == null ? undefined : json['replyText'],
|
|
49
|
+
'reviewerName': json['reviewerName'],
|
|
50
|
+
'location': json['location'],
|
|
51
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function ReviewPublicResourceToJSON(json) {
|
|
55
|
+
return ReviewPublicResourceToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function ReviewPublicResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'overallRating': value['overallRating'],
|
|
65
|
+
'comment': value['comment'],
|
|
66
|
+
'replyText': value['replyText'],
|
|
67
|
+
'reviewerName': value['reviewerName'],
|
|
68
|
+
'location': value['location'],
|
|
69
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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 { ReviewPublicResource } from './ReviewPublicResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ReviewPublicResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ReviewPublicResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ReviewPublicResource>}
|
|
22
|
+
* @memberof ReviewPublicResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ReviewPublicResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ReviewPublicResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfReviewPublicResourceArrayResponse(value: object): value is ReviewPublicResourceArrayResponse;
|
|
30
|
+
export declare function ReviewPublicResourceArrayResponseFromJSON(json: any): ReviewPublicResourceArrayResponse;
|
|
31
|
+
export declare function ReviewPublicResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewPublicResourceArrayResponse;
|
|
32
|
+
export declare function ReviewPublicResourceArrayResponseToJSON(json: any): ReviewPublicResourceArrayResponse;
|
|
33
|
+
export declare function ReviewPublicResourceArrayResponseToJSONTyped(value?: ReviewPublicResourceArrayResponse | 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.instanceOfReviewPublicResourceArrayResponse = instanceOfReviewPublicResourceArrayResponse;
|
|
17
|
+
exports.ReviewPublicResourceArrayResponseFromJSON = ReviewPublicResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ReviewPublicResourceArrayResponseFromJSONTyped = ReviewPublicResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ReviewPublicResourceArrayResponseToJSON = ReviewPublicResourceArrayResponseToJSON;
|
|
20
|
+
exports.ReviewPublicResourceArrayResponseToJSONTyped = ReviewPublicResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ReviewPublicResource_1 = require("./ReviewPublicResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ReviewPublicResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfReviewPublicResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ReviewPublicResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ReviewPublicResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ReviewPublicResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ReviewPublicResource_1.ReviewPublicResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ReviewPublicResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ReviewPublicResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ReviewPublicResourceArrayResponseToJSONTyped(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(ReviewPublicResource_1.ReviewPublicResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -34,6 +34,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
58
60
|
'latitude': json['latitude'],
|
|
59
61
|
'longitude': json['longitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
62
64
|
'specialDates': json['specialDates'],
|
|
63
65
|
'suppliers': json['suppliers'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {string}
|
|
@@ -33,10 +33,10 @@ 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;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
38
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
+
return false;
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
function StoreListResourceFromJSON(json) {
|
|
@@ -53,9 +53,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'phone': json['phone'],
|
|
54
54
|
'longitude': json['longitude'],
|
|
55
55
|
'latitude': json['latitude'],
|
|
56
|
-
'tagLine': json['tag_line'],
|
|
56
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
57
57
|
'email': json['email'],
|
|
58
|
-
'website': json['website']
|
|
58
|
+
'website': json['website'],
|
|
59
59
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
60
60
|
};
|
|
61
61
|
}
|
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);
|