@digital8/lighting-illusions-ts-sdk 0.0.1637 → 0.0.1639
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 +26 -40
- package/README.md +20 -26
- package/dist/apis/ReviewApi.d.ts +109 -0
- package/dist/apis/{ProductRegistrationApi.js → ReviewApi.js} +130 -74
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/IndexReviewRequest.d.ts +110 -0
- package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexReviewRequest.js} +24 -21
- package/dist/models/PaginatedReviewListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewListResourceResponse.js +57 -0
- package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedReviewResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/ReviewListResource.d.ts +87 -0
- package/dist/models/ReviewListResource.js +82 -0
- package/dist/models/ReviewListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewListResourceArrayResponse.js +50 -0
- package/dist/models/ReviewLiteResource.d.ts +44 -0
- package/dist/models/ReviewLiteResource.js +59 -0
- package/dist/models/ReviewLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewLiteResourceArrayResponse.js +50 -0
- package/dist/models/ReviewResource.d.ts +117 -0
- package/dist/models/ReviewResource.js +100 -0
- package/dist/models/ReviewResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreReviewRequest.d.ts +74 -0
- package/dist/models/StoreReviewRequest.js +71 -0
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateReviewRequest.d.ts +62 -0
- package/dist/models/UpdateReviewRequest.js +63 -0
- package/dist/models/index.d.ts +12 -19
- package/dist/models/index.js +12 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexReviewRequest.md} +10 -8
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedReviewListResourceResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedReviewLiteResourceResponse.md} +5 -5
- package/docs/{ProductRegistrationResourceArrayResponse.md → PaginatedReviewResourceResponse.md} +7 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/ReviewApi.md +407 -0
- package/docs/ReviewListResource.md +52 -0
- package/docs/{ProductRegistrationAssetResource.md → ReviewListResourceArrayResponse.md} +6 -10
- package/docs/{ProductRegistrationLiteResource.md → ReviewLiteResource.md} +8 -6
- package/docs/ReviewLiteResourceArrayResponse.md +34 -0
- package/docs/ReviewResource.md +62 -0
- package/docs/{ProductRegistrationAssetType.md → ReviewResourceArrayResponse.md} +6 -4
- package/docs/StoreReviewRequest.md +48 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/{ProductRegistrationAssetResourceArrayResponse.md → UpdateReviewRequest.md} +16 -6
- package/package.json +1 -1
- package/src/apis/ReviewApi.ts +331 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/IndexReviewRequest.ts +167 -0
- package/src/models/PaginatedReviewListResourceResponse.ts +90 -0
- package/src/models/PaginatedReviewLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedReviewResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/ReviewListResource.ts +152 -0
- package/src/models/ReviewListResourceArrayResponse.ts +73 -0
- package/src/models/ReviewLiteResource.ts +84 -0
- package/src/models/ReviewLiteResourceArrayResponse.ts +73 -0
- package/src/models/ReviewResource.ts +196 -0
- package/src/models/ReviewResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreReviewRequest.ts +125 -0
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateReviewRequest.ts +107 -0
- package/src/models/index.ts +12 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationCustomerResource.md +0 -44
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -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
|
}
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine?: string | null;
|
|
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
|
|
75
|
+
website?: string | null;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
@@ -36,12 +36,8 @@ 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;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
46
42
|
return false;
|
|
47
43
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -64,9 +60,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
60
|
'phone': json['phone'],
|
|
65
61
|
'longitude': json['longitude'],
|
|
66
62
|
'latitude': json['latitude'],
|
|
67
|
-
'tagLine': json['tag_line'],
|
|
63
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
68
64
|
'email': json['email'],
|
|
69
|
-
'website': json['website'],
|
|
65
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
70
66
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
71
67
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
72
68
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -0,0 +1,74 @@
|
|
|
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 StoreReviewRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreReviewRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreReviewRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StoreReviewRequest
|
|
28
|
+
*/
|
|
29
|
+
siteId: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreReviewRequest
|
|
34
|
+
*/
|
|
35
|
+
customerId?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof StoreReviewRequest
|
|
40
|
+
*/
|
|
41
|
+
invoiceItemId?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreReviewRequest
|
|
46
|
+
*/
|
|
47
|
+
reviewerName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof StoreReviewRequest
|
|
52
|
+
*/
|
|
53
|
+
rating: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof StoreReviewRequest
|
|
58
|
+
*/
|
|
59
|
+
comment?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof StoreReviewRequest
|
|
64
|
+
*/
|
|
65
|
+
location?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the StoreReviewRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfStoreReviewRequest(value: object): value is StoreReviewRequest;
|
|
71
|
+
export declare function StoreReviewRequestFromJSON(json: any): StoreReviewRequest;
|
|
72
|
+
export declare function StoreReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreReviewRequest;
|
|
73
|
+
export declare function StoreReviewRequestToJSON(json: any): StoreReviewRequest;
|
|
74
|
+
export declare function StoreReviewRequestToJSONTyped(value?: StoreReviewRequest | 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.instanceOfStoreReviewRequest = instanceOfStoreReviewRequest;
|
|
17
|
+
exports.StoreReviewRequestFromJSON = StoreReviewRequestFromJSON;
|
|
18
|
+
exports.StoreReviewRequestFromJSONTyped = StoreReviewRequestFromJSONTyped;
|
|
19
|
+
exports.StoreReviewRequestToJSON = StoreReviewRequestToJSON;
|
|
20
|
+
exports.StoreReviewRequestToJSONTyped = StoreReviewRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreReviewRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreReviewRequest(value) {
|
|
25
|
+
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('reviewerName' in value) || value['reviewerName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function StoreReviewRequestFromJSON(json) {
|
|
36
|
+
return StoreReviewRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function StoreReviewRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'productChildId': json['product_child_id'],
|
|
44
|
+
'siteId': json['site_id'],
|
|
45
|
+
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
46
|
+
'invoiceItemId': json['invoice_item_id'] == null ? undefined : json['invoice_item_id'],
|
|
47
|
+
'reviewerName': json['reviewer_name'],
|
|
48
|
+
'rating': json['rating'],
|
|
49
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
50
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function StoreReviewRequestToJSON(json) {
|
|
54
|
+
return StoreReviewRequestToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function StoreReviewRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'product_child_id': value['productChildId'],
|
|
63
|
+
'site_id': value['siteId'],
|
|
64
|
+
'customer_id': value['customerId'],
|
|
65
|
+
'invoice_item_id': value['invoiceItemId'],
|
|
66
|
+
'reviewer_name': value['reviewerName'],
|
|
67
|
+
'rating': value['rating'],
|
|
68
|
+
'comment': value['comment'],
|
|
69
|
+
'location': value['location'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(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 StoreSpecialDateResourceFromJSONTyped(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['display_start_date'],
|
|
53
51
|
'displayEndDate': json['display_end_date'],
|
|
@@ -0,0 +1,62 @@
|
|
|
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 UpdateReviewRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateReviewRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateReviewRequest
|
|
22
|
+
*/
|
|
23
|
+
reviewerName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateReviewRequest
|
|
28
|
+
*/
|
|
29
|
+
rating: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateReviewRequest
|
|
34
|
+
*/
|
|
35
|
+
comment?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateReviewRequest
|
|
40
|
+
*/
|
|
41
|
+
replyFromAdmin?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateReviewRequest
|
|
46
|
+
*/
|
|
47
|
+
location?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof UpdateReviewRequest
|
|
52
|
+
*/
|
|
53
|
+
approved?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the UpdateReviewRequest interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfUpdateReviewRequest(value: object): value is UpdateReviewRequest;
|
|
59
|
+
export declare function UpdateReviewRequestFromJSON(json: any): UpdateReviewRequest;
|
|
60
|
+
export declare function UpdateReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateReviewRequest;
|
|
61
|
+
export declare function UpdateReviewRequestToJSON(json: any): UpdateReviewRequest;
|
|
62
|
+
export declare function UpdateReviewRequestToJSONTyped(value?: UpdateReviewRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfUpdateReviewRequest = instanceOfUpdateReviewRequest;
|
|
17
|
+
exports.UpdateReviewRequestFromJSON = UpdateReviewRequestFromJSON;
|
|
18
|
+
exports.UpdateReviewRequestFromJSONTyped = UpdateReviewRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateReviewRequestToJSON = UpdateReviewRequestToJSON;
|
|
20
|
+
exports.UpdateReviewRequestToJSONTyped = UpdateReviewRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateReviewRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateReviewRequest(value) {
|
|
25
|
+
if (!('reviewerName' in value) || value['reviewerName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateReviewRequestFromJSON(json) {
|
|
32
|
+
return UpdateReviewRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateReviewRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'reviewerName': json['reviewer_name'],
|
|
40
|
+
'rating': json['rating'],
|
|
41
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
42
|
+
'replyFromAdmin': json['reply_from_admin'] == null ? undefined : json['reply_from_admin'],
|
|
43
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
44
|
+
'approved': json['approved'] == null ? undefined : json['approved'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UpdateReviewRequestToJSON(json) {
|
|
48
|
+
return UpdateReviewRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdateReviewRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'reviewer_name': value['reviewerName'],
|
|
57
|
+
'rating': value['rating'],
|
|
58
|
+
'comment': value['comment'],
|
|
59
|
+
'reply_from_admin': value['replyFromAdmin'],
|
|
60
|
+
'location': value['location'],
|
|
61
|
+
'approved': value['approved'],
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -90,7 +90,6 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
90
90
|
export * from './GetAllProductCategoryRequest';
|
|
91
91
|
export * from './GetAllProductChildRequest';
|
|
92
92
|
export * from './GetAllProductRangeRequest';
|
|
93
|
-
export * from './GetAllProductRegistrationRequest';
|
|
94
93
|
export * from './GetAllProductRequest';
|
|
95
94
|
export * from './GetAllProductTypeRequest';
|
|
96
95
|
export * from './GetAllStoreRequest';
|
|
@@ -118,10 +117,10 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
118
117
|
export * from './IndexProductCategoryRequest';
|
|
119
118
|
export * from './IndexProductChildRequest';
|
|
120
119
|
export * from './IndexProductRangeRequest';
|
|
121
|
-
export * from './IndexProductRegistrationRequest';
|
|
122
120
|
export * from './IndexProductRequest';
|
|
123
121
|
export * from './IndexProductTypeRequest';
|
|
124
122
|
export * from './IndexRedirectRequest';
|
|
123
|
+
export * from './IndexReviewRequest';
|
|
125
124
|
export * from './IndexSiteNotificationRequest';
|
|
126
125
|
export * from './IndexSiteRequest';
|
|
127
126
|
export * from './IndexStoreRequest';
|
|
@@ -133,7 +132,6 @@ export * from './LabelLiteResource';
|
|
|
133
132
|
export * from './LabelLiteResourceArrayResponse';
|
|
134
133
|
export * from './LabelResource';
|
|
135
134
|
export * from './LabelResourceArrayResponse';
|
|
136
|
-
export * from './ListAssetsProductRegistrationRequest';
|
|
137
135
|
export * from './ModelAttributeFrontendResource';
|
|
138
136
|
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
139
137
|
export * from './ModelAttributeListResource';
|
|
@@ -182,15 +180,15 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
182
180
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
183
181
|
export * from './PaginatedProductRangeResourceResponse';
|
|
184
182
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
185
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
186
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
187
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
188
183
|
export * from './PaginatedProductResourceResponse';
|
|
189
184
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
190
185
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
191
186
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
192
187
|
export * from './PaginatedProductTypeResourceResponse';
|
|
193
188
|
export * from './PaginatedRedirectListResourceResponse';
|
|
189
|
+
export * from './PaginatedReviewListResourceResponse';
|
|
190
|
+
export * from './PaginatedReviewLiteResourceResponse';
|
|
191
|
+
export * from './PaginatedReviewResourceResponse';
|
|
194
192
|
export * from './PaginatedSiteListResourceResponse';
|
|
195
193
|
export * from './PaginatedSiteLiteResourceResponse';
|
|
196
194
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
@@ -268,19 +266,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
268
266
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
269
267
|
export * from './ProductRangeSortBy';
|
|
270
268
|
export * from './ProductRating';
|
|
271
|
-
export * from './ProductRegistrationAssetResource';
|
|
272
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
273
|
-
export * from './ProductRegistrationAssetType';
|
|
274
|
-
export * from './ProductRegistrationCustomerResource';
|
|
275
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
276
|
-
export * from './ProductRegistrationListResource';
|
|
277
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationLiteResource';
|
|
279
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
280
|
-
export * from './ProductRegistrationProductChildResource';
|
|
281
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
282
|
-
export * from './ProductRegistrationResource';
|
|
283
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
284
269
|
export * from './ProductResource';
|
|
285
270
|
export * from './ProductResourceArrayResponse';
|
|
286
271
|
export * from './ProductSearchResponseResource';
|
|
@@ -300,6 +285,12 @@ export * from './RedirectFrontendResource';
|
|
|
300
285
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
301
286
|
export * from './RedirectListResource';
|
|
302
287
|
export * from './RedirectListResourceArrayResponse';
|
|
288
|
+
export * from './ReviewListResource';
|
|
289
|
+
export * from './ReviewListResourceArrayResponse';
|
|
290
|
+
export * from './ReviewLiteResource';
|
|
291
|
+
export * from './ReviewLiteResourceArrayResponse';
|
|
292
|
+
export * from './ReviewResource';
|
|
293
|
+
export * from './ReviewResourceArrayResponse';
|
|
303
294
|
export * from './SEOResource';
|
|
304
295
|
export * from './SEOResourceArrayResponse';
|
|
305
296
|
export * from './ShowAssetsProductChildRequest';
|
|
@@ -349,6 +340,7 @@ export * from './StoreProductRequestCategoriesInner';
|
|
|
349
340
|
export * from './StoreProductTypeRequest';
|
|
350
341
|
export * from './StoreResource';
|
|
351
342
|
export * from './StoreResourceArrayResponse';
|
|
343
|
+
export * from './StoreReviewRequest';
|
|
352
344
|
export * from './StoreSiteNotificationRequest';
|
|
353
345
|
export * from './StoreSpecialDateFrontendResource';
|
|
354
346
|
export * from './StoreSpecialDateFrontendResourceArrayResponse';
|
|
@@ -395,6 +387,7 @@ export * from './UpdateProductRangeRequest';
|
|
|
395
387
|
export * from './UpdateProductRangeRequestAttributesInner';
|
|
396
388
|
export * from './UpdateProductRequest';
|
|
397
389
|
export * from './UpdateProductTypeRequest';
|
|
390
|
+
export * from './UpdateReviewRequest';
|
|
398
391
|
export * from './UpdateSiteNotificationRequest';
|
|
399
392
|
export * from './UpdateSiteRequest';
|
|
400
393
|
export * from './UpdateStoreRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -108,7 +108,6 @@ __exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
|
108
108
|
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
109
109
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
110
110
|
__exportStar(require("./GetAllProductRangeRequest"), exports);
|
|
111
|
-
__exportStar(require("./GetAllProductRegistrationRequest"), exports);
|
|
112
111
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
113
112
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
114
113
|
__exportStar(require("./GetAllStoreRequest"), exports);
|
|
@@ -136,10 +135,10 @@ __exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
|
136
135
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
137
136
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
138
137
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
139
|
-
__exportStar(require("./IndexProductRegistrationRequest"), exports);
|
|
140
138
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
141
139
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
142
140
|
__exportStar(require("./IndexRedirectRequest"), exports);
|
|
141
|
+
__exportStar(require("./IndexReviewRequest"), exports);
|
|
143
142
|
__exportStar(require("./IndexSiteNotificationRequest"), exports);
|
|
144
143
|
__exportStar(require("./IndexSiteRequest"), exports);
|
|
145
144
|
__exportStar(require("./IndexStoreRequest"), exports);
|
|
@@ -151,7 +150,6 @@ __exportStar(require("./LabelLiteResource"), exports);
|
|
|
151
150
|
__exportStar(require("./LabelLiteResourceArrayResponse"), exports);
|
|
152
151
|
__exportStar(require("./LabelResource"), exports);
|
|
153
152
|
__exportStar(require("./LabelResourceArrayResponse"), exports);
|
|
154
|
-
__exportStar(require("./ListAssetsProductRegistrationRequest"), exports);
|
|
155
153
|
__exportStar(require("./ModelAttributeFrontendResource"), exports);
|
|
156
154
|
__exportStar(require("./ModelAttributeFrontendResourceArrayResponse"), exports);
|
|
157
155
|
__exportStar(require("./ModelAttributeListResource"), exports);
|
|
@@ -200,15 +198,15 @@ __exportStar(require("./PaginatedProductRangeListResourceResponse"), exports);
|
|
|
200
198
|
__exportStar(require("./PaginatedProductRangeLiteResourceResponse"), exports);
|
|
201
199
|
__exportStar(require("./PaginatedProductRangeResourceResponse"), exports);
|
|
202
200
|
__exportStar(require("./PaginatedProductRangeSearchResultResourceResponse"), exports);
|
|
203
|
-
__exportStar(require("./PaginatedProductRegistrationAssetResourceResponse"), exports);
|
|
204
|
-
__exportStar(require("./PaginatedProductRegistrationListResourceResponse"), exports);
|
|
205
|
-
__exportStar(require("./PaginatedProductRegistrationResourceResponse"), exports);
|
|
206
201
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
207
202
|
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
208
203
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
209
204
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
210
205
|
__exportStar(require("./PaginatedProductTypeResourceResponse"), exports);
|
|
211
206
|
__exportStar(require("./PaginatedRedirectListResourceResponse"), exports);
|
|
207
|
+
__exportStar(require("./PaginatedReviewListResourceResponse"), exports);
|
|
208
|
+
__exportStar(require("./PaginatedReviewLiteResourceResponse"), exports);
|
|
209
|
+
__exportStar(require("./PaginatedReviewResourceResponse"), exports);
|
|
212
210
|
__exportStar(require("./PaginatedSiteListResourceResponse"), exports);
|
|
213
211
|
__exportStar(require("./PaginatedSiteLiteResourceResponse"), exports);
|
|
214
212
|
__exportStar(require("./PaginatedSiteNotificationListResourceResponse"), exports);
|
|
@@ -286,19 +284,6 @@ __exportStar(require("./ProductRangeSiteDetailResource"), exports);
|
|
|
286
284
|
__exportStar(require("./ProductRangeSiteDetailResourceArrayResponse"), exports);
|
|
287
285
|
__exportStar(require("./ProductRangeSortBy"), exports);
|
|
288
286
|
__exportStar(require("./ProductRating"), exports);
|
|
289
|
-
__exportStar(require("./ProductRegistrationAssetResource"), exports);
|
|
290
|
-
__exportStar(require("./ProductRegistrationAssetResourceArrayResponse"), exports);
|
|
291
|
-
__exportStar(require("./ProductRegistrationAssetType"), exports);
|
|
292
|
-
__exportStar(require("./ProductRegistrationCustomerResource"), exports);
|
|
293
|
-
__exportStar(require("./ProductRegistrationCustomerResourceArrayResponse"), exports);
|
|
294
|
-
__exportStar(require("./ProductRegistrationListResource"), exports);
|
|
295
|
-
__exportStar(require("./ProductRegistrationListResourceArrayResponse"), exports);
|
|
296
|
-
__exportStar(require("./ProductRegistrationLiteResource"), exports);
|
|
297
|
-
__exportStar(require("./ProductRegistrationLiteResourceArrayResponse"), exports);
|
|
298
|
-
__exportStar(require("./ProductRegistrationProductChildResource"), exports);
|
|
299
|
-
__exportStar(require("./ProductRegistrationProductChildResourceArrayResponse"), exports);
|
|
300
|
-
__exportStar(require("./ProductRegistrationResource"), exports);
|
|
301
|
-
__exportStar(require("./ProductRegistrationResourceArrayResponse"), exports);
|
|
302
287
|
__exportStar(require("./ProductResource"), exports);
|
|
303
288
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
304
289
|
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
@@ -318,6 +303,12 @@ __exportStar(require("./RedirectFrontendResource"), exports);
|
|
|
318
303
|
__exportStar(require("./RedirectFrontendResourceArrayResponse"), exports);
|
|
319
304
|
__exportStar(require("./RedirectListResource"), exports);
|
|
320
305
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
306
|
+
__exportStar(require("./ReviewListResource"), exports);
|
|
307
|
+
__exportStar(require("./ReviewListResourceArrayResponse"), exports);
|
|
308
|
+
__exportStar(require("./ReviewLiteResource"), exports);
|
|
309
|
+
__exportStar(require("./ReviewLiteResourceArrayResponse"), exports);
|
|
310
|
+
__exportStar(require("./ReviewResource"), exports);
|
|
311
|
+
__exportStar(require("./ReviewResourceArrayResponse"), exports);
|
|
321
312
|
__exportStar(require("./SEOResource"), exports);
|
|
322
313
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
323
314
|
__exportStar(require("./ShowAssetsProductChildRequest"), exports);
|
|
@@ -367,6 +358,7 @@ __exportStar(require("./StoreProductRequestCategoriesInner"), exports);
|
|
|
367
358
|
__exportStar(require("./StoreProductTypeRequest"), exports);
|
|
368
359
|
__exportStar(require("./StoreResource"), exports);
|
|
369
360
|
__exportStar(require("./StoreResourceArrayResponse"), exports);
|
|
361
|
+
__exportStar(require("./StoreReviewRequest"), exports);
|
|
370
362
|
__exportStar(require("./StoreSiteNotificationRequest"), exports);
|
|
371
363
|
__exportStar(require("./StoreSpecialDateFrontendResource"), exports);
|
|
372
364
|
__exportStar(require("./StoreSpecialDateFrontendResourceArrayResponse"), exports);
|
|
@@ -413,6 +405,7 @@ __exportStar(require("./UpdateProductRangeRequest"), exports);
|
|
|
413
405
|
__exportStar(require("./UpdateProductRangeRequestAttributesInner"), exports);
|
|
414
406
|
__exportStar(require("./UpdateProductRequest"), exports);
|
|
415
407
|
__exportStar(require("./UpdateProductTypeRequest"), exports);
|
|
408
|
+
__exportStar(require("./UpdateReviewRequest"), exports);
|
|
416
409
|
__exportStar(require("./UpdateSiteNotificationRequest"), exports);
|
|
417
410
|
__exportStar(require("./UpdateSiteRequest"), exports);
|
|
418
411
|
__exportStar(require("./UpdateStoreRequest"), exports);
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`modelRaw` | string
|
|
13
12
|
`slug` | string
|
|
14
13
|
`sku` | string
|
|
15
14
|
`thumbnail` | string
|
|
@@ -29,7 +28,6 @@ const example = {
|
|
|
29
28
|
"id": null,
|
|
30
29
|
"name": null,
|
|
31
30
|
"model": null,
|
|
32
|
-
"modelRaw": null,
|
|
33
31
|
"slug": null,
|
|
34
32
|
"sku": null,
|
|
35
33
|
"thumbnail": null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# IndexReviewRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,8 +11,9 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
-
`
|
|
15
|
-
`
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`createdByAdmin` | Array<string>
|
|
16
|
+
`hasApprovedAt` | Array<string>
|
|
16
17
|
`relatedId` | number
|
|
17
18
|
`relatedType` | string
|
|
18
19
|
`includesRelations` | boolean
|
|
@@ -20,7 +21,7 @@ Name | Type
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
22
23
|
```typescript
|
|
23
|
-
import type {
|
|
24
|
+
import type { IndexReviewRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
25
|
|
|
25
26
|
// TODO: Update the object below with actual values
|
|
26
27
|
const example = {
|
|
@@ -29,12 +30,13 @@ const example = {
|
|
|
29
30
|
"sortDirection": null,
|
|
30
31
|
"perPage": null,
|
|
31
32
|
"page": null,
|
|
32
|
-
"
|
|
33
|
-
"
|
|
33
|
+
"siteId": null,
|
|
34
|
+
"createdByAdmin": null,
|
|
35
|
+
"hasApprovedAt": null,
|
|
34
36
|
"relatedId": null,
|
|
35
37
|
"relatedType": null,
|
|
36
38
|
"includesRelations": null,
|
|
37
|
-
} satisfies
|
|
39
|
+
} satisfies IndexReviewRequest
|
|
38
40
|
|
|
39
41
|
console.log(example)
|
|
40
42
|
|
|
@@ -43,7 +45,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
43
45
|
console.log(exampleJSON)
|
|
44
46
|
|
|
45
47
|
// Parse the JSON string back to an object
|
|
46
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexReviewRequest
|
|
47
49
|
console.log(exampleParsed)
|
|
48
50
|
```
|
|
49
51
|
|