@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
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -137,9 +137,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
137
137
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
138
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
141
140
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
142
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
143
141
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
144
142
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
145
143
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -162,9 +160,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
162
160
|
'phone': json['phone'],
|
|
163
161
|
'longitude': json['longitude'],
|
|
164
162
|
'latitude': json['latitude'],
|
|
165
|
-
'tagLine': json['tag_line'],
|
|
163
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
166
164
|
'email': json['email'],
|
|
167
|
-
'website': json['website'],
|
|
165
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
168
166
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
169
167
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
170
168
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -0,0 +1,125 @@
|
|
|
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 StoreReviewRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreReviewRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StoreReviewRequest
|
|
26
|
+
*/
|
|
27
|
+
productChildId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof StoreReviewRequest
|
|
32
|
+
*/
|
|
33
|
+
siteId: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof StoreReviewRequest
|
|
38
|
+
*/
|
|
39
|
+
customerId?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof StoreReviewRequest
|
|
44
|
+
*/
|
|
45
|
+
invoiceItemId?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof StoreReviewRequest
|
|
50
|
+
*/
|
|
51
|
+
reviewerName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof StoreReviewRequest
|
|
56
|
+
*/
|
|
57
|
+
rating: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof StoreReviewRequest
|
|
62
|
+
*/
|
|
63
|
+
comment?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof StoreReviewRequest
|
|
68
|
+
*/
|
|
69
|
+
location?: string | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the StoreReviewRequest interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfStoreReviewRequest(value: object): value is StoreReviewRequest {
|
|
76
|
+
if (!('productChildId' in value) || value['productChildId'] === undefined) return false;
|
|
77
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
78
|
+
if (!('reviewerName' in value) || value['reviewerName'] === undefined) return false;
|
|
79
|
+
if (!('rating' in value) || value['rating'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function StoreReviewRequestFromJSON(json: any): StoreReviewRequest {
|
|
84
|
+
return StoreReviewRequestFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function StoreReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreReviewRequest {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'productChildId': json['product_child_id'],
|
|
94
|
+
'siteId': json['site_id'],
|
|
95
|
+
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
96
|
+
'invoiceItemId': json['invoice_item_id'] == null ? undefined : json['invoice_item_id'],
|
|
97
|
+
'reviewerName': json['reviewer_name'],
|
|
98
|
+
'rating': json['rating'],
|
|
99
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
100
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function StoreReviewRequestToJSON(json: any): StoreReviewRequest {
|
|
105
|
+
return StoreReviewRequestToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function StoreReviewRequestToJSONTyped(value?: StoreReviewRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'product_child_id': value['productChildId'],
|
|
116
|
+
'site_id': value['siteId'],
|
|
117
|
+
'customer_id': value['customerId'],
|
|
118
|
+
'invoice_item_id': value['invoiceItemId'],
|
|
119
|
+
'reviewer_name': value['reviewerName'],
|
|
120
|
+
'rating': value['rating'],
|
|
121
|
+
'comment': value['comment'],
|
|
122
|
+
'location': value['location'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['display_start_date'],
|
|
95
94
|
'displayEndDate': json['display_end_date'],
|
|
@@ -0,0 +1,107 @@
|
|
|
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 UpdateReviewRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateReviewRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateReviewRequest
|
|
26
|
+
*/
|
|
27
|
+
reviewerName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateReviewRequest
|
|
32
|
+
*/
|
|
33
|
+
rating: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateReviewRequest
|
|
38
|
+
*/
|
|
39
|
+
comment?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateReviewRequest
|
|
44
|
+
*/
|
|
45
|
+
replyFromAdmin?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateReviewRequest
|
|
50
|
+
*/
|
|
51
|
+
location?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof UpdateReviewRequest
|
|
56
|
+
*/
|
|
57
|
+
approved?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UpdateReviewRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUpdateReviewRequest(value: object): value is UpdateReviewRequest {
|
|
64
|
+
if (!('reviewerName' in value) || value['reviewerName'] === undefined) return false;
|
|
65
|
+
if (!('rating' in value) || value['rating'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateReviewRequestFromJSON(json: any): UpdateReviewRequest {
|
|
70
|
+
return UpdateReviewRequestFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UpdateReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateReviewRequest {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'reviewerName': json['reviewer_name'],
|
|
80
|
+
'rating': json['rating'],
|
|
81
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
82
|
+
'replyFromAdmin': json['reply_from_admin'] == null ? undefined : json['reply_from_admin'],
|
|
83
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
84
|
+
'approved': json['approved'] == null ? undefined : json['approved'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function UpdateReviewRequestToJSON(json: any): UpdateReviewRequest {
|
|
89
|
+
return UpdateReviewRequestToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UpdateReviewRequestToJSONTyped(value?: UpdateReviewRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'reviewer_name': value['reviewerName'],
|
|
100
|
+
'rating': value['rating'],
|
|
101
|
+
'comment': value['comment'],
|
|
102
|
+
'reply_from_admin': value['replyFromAdmin'],
|
|
103
|
+
'location': value['location'],
|
|
104
|
+
'approved': value['approved'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -92,7 +92,6 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
92
92
|
export * from './GetAllProductCategoryRequest';
|
|
93
93
|
export * from './GetAllProductChildRequest';
|
|
94
94
|
export * from './GetAllProductRangeRequest';
|
|
95
|
-
export * from './GetAllProductRegistrationRequest';
|
|
96
95
|
export * from './GetAllProductRequest';
|
|
97
96
|
export * from './GetAllProductTypeRequest';
|
|
98
97
|
export * from './GetAllStoreRequest';
|
|
@@ -120,10 +119,10 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
120
119
|
export * from './IndexProductCategoryRequest';
|
|
121
120
|
export * from './IndexProductChildRequest';
|
|
122
121
|
export * from './IndexProductRangeRequest';
|
|
123
|
-
export * from './IndexProductRegistrationRequest';
|
|
124
122
|
export * from './IndexProductRequest';
|
|
125
123
|
export * from './IndexProductTypeRequest';
|
|
126
124
|
export * from './IndexRedirectRequest';
|
|
125
|
+
export * from './IndexReviewRequest';
|
|
127
126
|
export * from './IndexSiteNotificationRequest';
|
|
128
127
|
export * from './IndexSiteRequest';
|
|
129
128
|
export * from './IndexStoreRequest';
|
|
@@ -135,7 +134,6 @@ export * from './LabelLiteResource';
|
|
|
135
134
|
export * from './LabelLiteResourceArrayResponse';
|
|
136
135
|
export * from './LabelResource';
|
|
137
136
|
export * from './LabelResourceArrayResponse';
|
|
138
|
-
export * from './ListAssetsProductRegistrationRequest';
|
|
139
137
|
export * from './ModelAttributeFrontendResource';
|
|
140
138
|
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
141
139
|
export * from './ModelAttributeListResource';
|
|
@@ -184,15 +182,15 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
184
182
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
185
183
|
export * from './PaginatedProductRangeResourceResponse';
|
|
186
184
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
187
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
188
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
189
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
190
185
|
export * from './PaginatedProductResourceResponse';
|
|
191
186
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
192
187
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
193
188
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
194
189
|
export * from './PaginatedProductTypeResourceResponse';
|
|
195
190
|
export * from './PaginatedRedirectListResourceResponse';
|
|
191
|
+
export * from './PaginatedReviewListResourceResponse';
|
|
192
|
+
export * from './PaginatedReviewLiteResourceResponse';
|
|
193
|
+
export * from './PaginatedReviewResourceResponse';
|
|
196
194
|
export * from './PaginatedSiteListResourceResponse';
|
|
197
195
|
export * from './PaginatedSiteLiteResourceResponse';
|
|
198
196
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
@@ -270,19 +268,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
270
268
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
271
269
|
export * from './ProductRangeSortBy';
|
|
272
270
|
export * from './ProductRating';
|
|
273
|
-
export * from './ProductRegistrationAssetResource';
|
|
274
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
275
|
-
export * from './ProductRegistrationAssetType';
|
|
276
|
-
export * from './ProductRegistrationCustomerResource';
|
|
277
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationListResource';
|
|
279
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
280
|
-
export * from './ProductRegistrationLiteResource';
|
|
281
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
282
|
-
export * from './ProductRegistrationProductChildResource';
|
|
283
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
284
|
-
export * from './ProductRegistrationResource';
|
|
285
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
286
271
|
export * from './ProductResource';
|
|
287
272
|
export * from './ProductResourceArrayResponse';
|
|
288
273
|
export * from './ProductSearchResponseResource';
|
|
@@ -302,6 +287,12 @@ export * from './RedirectFrontendResource';
|
|
|
302
287
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
303
288
|
export * from './RedirectListResource';
|
|
304
289
|
export * from './RedirectListResourceArrayResponse';
|
|
290
|
+
export * from './ReviewListResource';
|
|
291
|
+
export * from './ReviewListResourceArrayResponse';
|
|
292
|
+
export * from './ReviewLiteResource';
|
|
293
|
+
export * from './ReviewLiteResourceArrayResponse';
|
|
294
|
+
export * from './ReviewResource';
|
|
295
|
+
export * from './ReviewResourceArrayResponse';
|
|
305
296
|
export * from './SEOResource';
|
|
306
297
|
export * from './SEOResourceArrayResponse';
|
|
307
298
|
export * from './ShowAssetsProductChildRequest';
|
|
@@ -351,6 +342,7 @@ export * from './StoreProductRequestCategoriesInner';
|
|
|
351
342
|
export * from './StoreProductTypeRequest';
|
|
352
343
|
export * from './StoreResource';
|
|
353
344
|
export * from './StoreResourceArrayResponse';
|
|
345
|
+
export * from './StoreReviewRequest';
|
|
354
346
|
export * from './StoreSiteNotificationRequest';
|
|
355
347
|
export * from './StoreSpecialDateFrontendResource';
|
|
356
348
|
export * from './StoreSpecialDateFrontendResourceArrayResponse';
|
|
@@ -397,6 +389,7 @@ export * from './UpdateProductRangeRequest';
|
|
|
397
389
|
export * from './UpdateProductRangeRequestAttributesInner';
|
|
398
390
|
export * from './UpdateProductRequest';
|
|
399
391
|
export * from './UpdateProductTypeRequest';
|
|
392
|
+
export * from './UpdateReviewRequest';
|
|
400
393
|
export * from './UpdateSiteNotificationRequest';
|
|
401
394
|
export * from './UpdateSiteRequest';
|
|
402
395
|
export * from './UpdateStoreRequest';
|
|
@@ -1,95 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { GetAllProductRegistrationRequest, IndexProductChildRequest, IndexProductRegistrationRequest, ListAssetsProductRegistrationRequest, PaginatedProductChildListResourceResponse, PaginatedProductRegistrationAssetResourceResponse, PaginatedProductRegistrationListResourceResponse, ProductRegistrationLiteResourceArrayResponse, ProductRegistrationResource } from '../models/index';
|
|
14
|
-
export interface GetAllProductRegistrationOperationRequest {
|
|
15
|
-
getAllProductRegistrationRequest?: GetAllProductRegistrationRequest;
|
|
16
|
-
}
|
|
17
|
-
export interface IndexProductRegistrationOperationRequest {
|
|
18
|
-
indexProductRegistrationRequest?: IndexProductRegistrationRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface ListAssetsProductRegistrationOperationRequest {
|
|
21
|
-
productRegistration: number;
|
|
22
|
-
listAssetsProductRegistrationRequest?: ListAssetsProductRegistrationRequest;
|
|
23
|
-
}
|
|
24
|
-
export interface ListProductsProductRegistrationRequest {
|
|
25
|
-
productRegistration: number;
|
|
26
|
-
indexProductChildRequest?: IndexProductChildRequest;
|
|
27
|
-
}
|
|
28
|
-
export interface ShowProductRegistrationRequest {
|
|
29
|
-
productRegistration: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class ProductRegistrationApi extends runtime.BaseAPI {
|
|
35
|
-
/**
|
|
36
|
-
* Creates request options for getAllProductRegistration without sending the request
|
|
37
|
-
*/
|
|
38
|
-
getAllProductRegistrationRequestOpts(requestParameters: GetAllProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
39
|
-
/**
|
|
40
|
-
* Auto-generated: getAllProductRegistration
|
|
41
|
-
*/
|
|
42
|
-
getAllProductRegistrationRaw(requestParameters: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationLiteResourceArrayResponse>>;
|
|
43
|
-
/**
|
|
44
|
-
* Auto-generated: getAllProductRegistration
|
|
45
|
-
*/
|
|
46
|
-
getAllProductRegistration(requestParameters?: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationLiteResourceArrayResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Creates request options for indexProductRegistration without sending the request
|
|
49
|
-
*/
|
|
50
|
-
indexProductRegistrationRequestOpts(requestParameters: IndexProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
51
|
-
/**
|
|
52
|
-
* Auto-generated: indexProductRegistration
|
|
53
|
-
*/
|
|
54
|
-
indexProductRegistrationRaw(requestParameters: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationListResourceResponse>>;
|
|
55
|
-
/**
|
|
56
|
-
* Auto-generated: indexProductRegistration
|
|
57
|
-
*/
|
|
58
|
-
indexProductRegistration(requestParameters?: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationListResourceResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* Creates request options for listAssetsProductRegistration without sending the request
|
|
61
|
-
*/
|
|
62
|
-
listAssetsProductRegistrationRequestOpts(requestParameters: ListAssetsProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
63
|
-
/**
|
|
64
|
-
* Auto-generated: listAssetsProductRegistration
|
|
65
|
-
*/
|
|
66
|
-
listAssetsProductRegistrationRaw(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationAssetResourceResponse>>;
|
|
67
|
-
/**
|
|
68
|
-
* Auto-generated: listAssetsProductRegistration
|
|
69
|
-
*/
|
|
70
|
-
listAssetsProductRegistration(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationAssetResourceResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* Creates request options for listProductsProductRegistration without sending the request
|
|
73
|
-
*/
|
|
74
|
-
listProductsProductRegistrationRequestOpts(requestParameters: ListProductsProductRegistrationRequest): Promise<runtime.RequestOpts>;
|
|
75
|
-
/**
|
|
76
|
-
* Auto-generated: listProductsProductRegistration
|
|
77
|
-
*/
|
|
78
|
-
listProductsProductRegistrationRaw(requestParameters: ListProductsProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
79
|
-
/**
|
|
80
|
-
* Auto-generated: listProductsProductRegistration
|
|
81
|
-
*/
|
|
82
|
-
listProductsProductRegistration(requestParameters: ListProductsProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Creates request options for showProductRegistration without sending the request
|
|
85
|
-
*/
|
|
86
|
-
showProductRegistrationRequestOpts(requestParameters: ShowProductRegistrationRequest): Promise<runtime.RequestOpts>;
|
|
87
|
-
/**
|
|
88
|
-
* Auto-generated: showProductRegistration
|
|
89
|
-
*/
|
|
90
|
-
showProductRegistrationRaw(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationResource>>;
|
|
91
|
-
/**
|
|
92
|
-
* Auto-generated: showProductRegistration
|
|
93
|
-
*/
|
|
94
|
-
showProductRegistration(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationResource>;
|
|
95
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
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 GetAllProductRegistrationRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface GetAllProductRegistrationRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof GetAllProductRegistrationRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {GetAllProductRegistrationRequestSortByEnum}
|
|
27
|
-
* @memberof GetAllProductRegistrationRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: GetAllProductRegistrationRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {GetAllProductRegistrationRequestSortDirectionEnum}
|
|
33
|
-
* @memberof GetAllProductRegistrationRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: GetAllProductRegistrationRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof GetAllProductRegistrationRequest
|
|
40
|
-
*/
|
|
41
|
-
relatedId?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof GetAllProductRegistrationRequest
|
|
46
|
-
*/
|
|
47
|
-
relatedType?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof GetAllProductRegistrationRequest
|
|
52
|
-
*/
|
|
53
|
-
includesRelations?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof GetAllProductRegistrationRequest
|
|
58
|
-
*/
|
|
59
|
-
siteId?: Array<string>;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export declare const GetAllProductRegistrationRequestSortByEnum: {
|
|
65
|
-
readonly Id: "id";
|
|
66
|
-
readonly CustomerName: "customer-name";
|
|
67
|
-
readonly CustomerEmail: "customer-email";
|
|
68
|
-
readonly CustomerPhone: "customer-phone";
|
|
69
|
-
readonly CreatedAt: "created_at";
|
|
70
|
-
readonly PurchasedDate: "purchased_date";
|
|
71
|
-
};
|
|
72
|
-
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
73
|
-
/**
|
|
74
|
-
* @export
|
|
75
|
-
*/
|
|
76
|
-
export declare const GetAllProductRegistrationRequestSortDirectionEnum: {
|
|
77
|
-
readonly Asc: "asc";
|
|
78
|
-
readonly Desc: "desc";
|
|
79
|
-
};
|
|
80
|
-
export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
|
|
81
|
-
/**
|
|
82
|
-
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
83
|
-
*/
|
|
84
|
-
export declare function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest;
|
|
85
|
-
export declare function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest;
|
|
86
|
-
export declare function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest;
|
|
87
|
-
export declare function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest;
|
|
88
|
-
export declare function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,80 +0,0 @@
|
|
|
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.GetAllProductRegistrationRequestSortDirectionEnum = exports.GetAllProductRegistrationRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfGetAllProductRegistrationRequest = instanceOfGetAllProductRegistrationRequest;
|
|
18
|
-
exports.GetAllProductRegistrationRequestFromJSON = GetAllProductRegistrationRequestFromJSON;
|
|
19
|
-
exports.GetAllProductRegistrationRequestFromJSONTyped = GetAllProductRegistrationRequestFromJSONTyped;
|
|
20
|
-
exports.GetAllProductRegistrationRequestToJSON = GetAllProductRegistrationRequestToJSON;
|
|
21
|
-
exports.GetAllProductRegistrationRequestToJSONTyped = GetAllProductRegistrationRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.GetAllProductRegistrationRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
CustomerName: 'customer-name',
|
|
28
|
-
CustomerEmail: 'customer-email',
|
|
29
|
-
CustomerPhone: 'customer-phone',
|
|
30
|
-
CreatedAt: 'created_at',
|
|
31
|
-
PurchasedDate: 'purchased_date'
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
exports.GetAllProductRegistrationRequestSortDirectionEnum = {
|
|
37
|
-
Asc: 'asc',
|
|
38
|
-
Desc: 'desc'
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
42
|
-
*/
|
|
43
|
-
function instanceOfGetAllProductRegistrationRequest(value) {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
function GetAllProductRegistrationRequestFromJSON(json) {
|
|
47
|
-
return GetAllProductRegistrationRequestFromJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function GetAllProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
55
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
56
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
57
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
58
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
59
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
60
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function GetAllProductRegistrationRequestToJSON(json) {
|
|
64
|
-
return GetAllProductRegistrationRequestToJSONTyped(json, false);
|
|
65
|
-
}
|
|
66
|
-
function GetAllProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
-
if (value == null) {
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
'search': value['search'],
|
|
73
|
-
'sortBy': value['sortBy'],
|
|
74
|
-
'sortDirection': value['sortDirection'],
|
|
75
|
-
'related_id': value['relatedId'],
|
|
76
|
-
'related_type': value['relatedType'],
|
|
77
|
-
'includes_relations': value['includesRelations'],
|
|
78
|
-
'site_id': value['siteId'],
|
|
79
|
-
};
|
|
80
|
-
}
|