@digital8/lighting-illusions-ts-sdk 0.0.1697 → 0.0.1698
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 +34 -6
- package/README.md +26 -7
- package/dist/apis/ReviewApi.d.ts +139 -0
- package/dist/apis/ReviewApi.js +566 -0
- package/dist/apis/StoreApi.d.ts +1 -28
- package/dist/apis/StoreApi.js +0 -113
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/AdminUserLiteResource.d.ts +50 -0
- package/dist/models/AdminUserLiteResource.js +61 -0
- package/dist/models/AdminUserLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminUserLiteResourceArrayResponse.js +50 -0
- package/dist/models/CustomerLiteResource.d.ts +50 -0
- package/dist/models/CustomerLiteResource.js +61 -0
- package/dist/models/CustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/IndexReviewRequest.d.ts +110 -0
- package/dist/models/IndexReviewRequest.js +86 -0
- 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/ReviewListResource.d.ts +88 -0
- package/dist/models/ReviewListResource.js +83 -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 +120 -0
- package/dist/models/ReviewResource.js +103 -0
- package/dist/models/ReviewResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +0 -12
- package/dist/models/StoreResource.js +0 -4
- 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 +3 -1
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/UpdateReviewRequest.d.ts +62 -0
- package/dist/models/UpdateReviewRequest.js +63 -0
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/index.d.ts +16 -3
- package/dist/models/index.js +16 -3
- package/docs/{SaveMapStoreStockMigrationRequestAssociationsInner.md → AdminUserLiteResource.md} +12 -10
- package/docs/AdminUserLiteResourceArrayResponse.md +34 -0
- package/docs/CustomerLiteResource.md +40 -0
- package/docs/{SaveMapStoreStockMigrationRequest.md → CustomerLiteResourceArrayResponse.md} +6 -6
- package/docs/IndexReviewRequest.md +54 -0
- package/docs/PaginatedReviewListResourceResponse.md +36 -0
- package/docs/PaginatedReviewLiteResourceResponse.md +36 -0
- package/docs/PaginatedReviewResourceResponse.md +36 -0
- package/docs/ReviewApi.md +539 -0
- package/docs/ReviewListResource.md +52 -0
- package/docs/ReviewListResourceArrayResponse.md +34 -0
- package/docs/ReviewLiteResource.md +38 -0
- package/docs/ReviewLiteResourceArrayResponse.md +34 -0
- package/docs/ReviewResource.md +62 -0
- package/docs/{StoreStockType.md → ReviewResourceArrayResponse.md} +6 -4
- package/docs/StoreApi.md +0 -124
- package/docs/StoreResource.md +0 -4
- package/docs/StoreReviewRequest.md +48 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/UpdateReviewRequest.md +44 -0
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/ReviewApi.ts +444 -0
- package/src/apis/StoreApi.ts +0 -84
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminUserLiteResource.ts +92 -0
- package/src/models/AdminUserLiteResourceArrayResponse.ts +73 -0
- package/src/models/CustomerLiteResource.ts +92 -0
- package/src/models/CustomerLiteResourceArrayResponse.ts +73 -0
- 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/ReviewListResource.ts +159 -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 +217 -0
- package/src/models/ReviewResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +0 -16
- package/src/models/StoreReviewRequest.ts +125 -0
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/UpdateReviewRequest.ts +107 -0
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/index.ts +16 -3
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +0 -33
- package/dist/models/SaveMapStoreStockMigrationRequest.js +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +0 -67
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/src/models/SaveMapStoreStockMigrationRequest.ts +0 -74
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +0 -95
- package/src/models/StoreStockType.ts +0 -53
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ReviewResource } from './ReviewResource';
|
|
17
|
+
import {
|
|
18
|
+
ReviewResourceFromJSON,
|
|
19
|
+
ReviewResourceFromJSONTyped,
|
|
20
|
+
ReviewResourceToJSON,
|
|
21
|
+
ReviewResourceToJSONTyped,
|
|
22
|
+
} from './ReviewResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ReviewResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ReviewResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ReviewResource>}
|
|
33
|
+
* @memberof ReviewResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ReviewResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ReviewResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfReviewResourceArrayResponse(value: object): value is ReviewResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ReviewResourceArrayResponseFromJSON(json: any): ReviewResourceArrayResponse {
|
|
46
|
+
return ReviewResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReviewResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ReviewResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReviewResourceArrayResponseToJSON(json: any): ReviewResourceArrayResponse {
|
|
60
|
+
return ReviewResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ReviewResourceArrayResponseToJSONTyped(value?: ReviewResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ReviewResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -98,7 +98,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
98
98
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
102
|
return true;
|
|
104
103
|
}
|
|
@@ -119,7 +118,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
119
118
|
'phone': json['phone'],
|
|
120
119
|
'longitude': json['longitude'],
|
|
121
120
|
'latitude': json['latitude'],
|
|
122
|
-
'tagLine': json['tag_line'],
|
|
121
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
123
122
|
'email': json['email'],
|
|
124
123
|
'website': json['website'] == null ? undefined : json['website'],
|
|
125
124
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -102,18 +102,6 @@ export interface StoreResource {
|
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
104
|
website: string;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {number}
|
|
108
|
-
* @memberof StoreResource
|
|
109
|
-
*/
|
|
110
|
-
netsuiteId?: number | null;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof StoreResource
|
|
115
|
-
*/
|
|
116
|
-
displayNetsuiteId?: number | null;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -177,8 +165,6 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
177
165
|
'tagLine': json['tag_line'],
|
|
178
166
|
'email': json['email'],
|
|
179
167
|
'website': json['website'],
|
|
180
|
-
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
181
|
-
'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
|
|
182
168
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
183
169
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
184
170
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -206,8 +192,6 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
|
|
|
206
192
|
'tag_line': value['tagLine'],
|
|
207
193
|
'email': value['email'],
|
|
208
194
|
'website': value['website'],
|
|
209
|
-
'netsuiteId': value['netsuiteId'],
|
|
210
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
211
195
|
'opening_hours': value['openingHours'],
|
|
212
196
|
'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
|
|
213
197
|
'address': AddressResourceToJSON(value['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 {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ 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;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['display_start_date'],
|
|
94
95
|
'displayEndDate': json['display_end_date'],
|
|
@@ -88,18 +88,6 @@ export interface StoreStoreRequest {
|
|
|
88
88
|
* @memberof StoreStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof StoreStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof StoreStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
|
@@ -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
|
+
|
|
@@ -88,18 +88,6 @@ export interface UpdateStoreRequest {
|
|
|
88
88
|
* @memberof UpdateStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof UpdateStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof UpdateStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|
package/src/models/index.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './AddressFrontendResource';
|
|
|
4
4
|
export * from './AddressFrontendResourceArrayResponse';
|
|
5
5
|
export * from './AddressResource';
|
|
6
6
|
export * from './AddressResourceArrayResponse';
|
|
7
|
+
export * from './AdminUserLiteResource';
|
|
8
|
+
export * from './AdminUserLiteResourceArrayResponse';
|
|
7
9
|
export * from './AssetFileForUploadResource';
|
|
8
10
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
9
11
|
export * from './AssetFrontendResource';
|
|
@@ -51,6 +53,8 @@ export * from './CategoryFrontendResourceArrayResponse';
|
|
|
51
53
|
export * from './CategoryWithChildrenFrontendResource';
|
|
52
54
|
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
53
55
|
export * from './CouponDiscountType';
|
|
56
|
+
export * from './CustomerLiteResource';
|
|
57
|
+
export * from './CustomerLiteResourceArrayResponse';
|
|
54
58
|
export * from './DefinitionListResource';
|
|
55
59
|
export * from './DefinitionListResourceArrayResponse';
|
|
56
60
|
export * from './DefinitionResource';
|
|
@@ -122,6 +126,7 @@ export * from './IndexProductRangeRequest';
|
|
|
122
126
|
export * from './IndexProductRequest';
|
|
123
127
|
export * from './IndexProductTypeRequest';
|
|
124
128
|
export * from './IndexRedirectRequest';
|
|
129
|
+
export * from './IndexReviewRequest';
|
|
125
130
|
export * from './IndexSiteNotificationRequest';
|
|
126
131
|
export * from './IndexSiteRequest';
|
|
127
132
|
export * from './IndexStoreRequest';
|
|
@@ -187,6 +192,9 @@ export * from './PaginatedProductTypeListResourceResponse';
|
|
|
187
192
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
188
193
|
export * from './PaginatedProductTypeResourceResponse';
|
|
189
194
|
export * from './PaginatedRedirectListResourceResponse';
|
|
195
|
+
export * from './PaginatedReviewListResourceResponse';
|
|
196
|
+
export * from './PaginatedReviewLiteResourceResponse';
|
|
197
|
+
export * from './PaginatedReviewResourceResponse';
|
|
190
198
|
export * from './PaginatedSiteListResourceResponse';
|
|
191
199
|
export * from './PaginatedSiteLiteResourceResponse';
|
|
192
200
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
@@ -283,10 +291,14 @@ export * from './RedirectFrontendResource';
|
|
|
283
291
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
284
292
|
export * from './RedirectListResource';
|
|
285
293
|
export * from './RedirectListResourceArrayResponse';
|
|
294
|
+
export * from './ReviewListResource';
|
|
295
|
+
export * from './ReviewListResourceArrayResponse';
|
|
296
|
+
export * from './ReviewLiteResource';
|
|
297
|
+
export * from './ReviewLiteResourceArrayResponse';
|
|
298
|
+
export * from './ReviewResource';
|
|
299
|
+
export * from './ReviewResourceArrayResponse';
|
|
286
300
|
export * from './SEOResource';
|
|
287
301
|
export * from './SEOResourceArrayResponse';
|
|
288
|
-
export * from './SaveMapStoreStockMigrationRequest';
|
|
289
|
-
export * from './SaveMapStoreStockMigrationRequestAssociationsInner';
|
|
290
302
|
export * from './ShowAssetsProductChildRequest';
|
|
291
303
|
export * from './ShowAttributesProductChildRequest';
|
|
292
304
|
export * from './SiteConfigResource';
|
|
@@ -334,12 +346,12 @@ export * from './StoreProductRequestCategoriesInner';
|
|
|
334
346
|
export * from './StoreProductTypeRequest';
|
|
335
347
|
export * from './StoreResource';
|
|
336
348
|
export * from './StoreResourceArrayResponse';
|
|
349
|
+
export * from './StoreReviewRequest';
|
|
337
350
|
export * from './StoreSiteNotificationRequest';
|
|
338
351
|
export * from './StoreSpecialDateFrontendResource';
|
|
339
352
|
export * from './StoreSpecialDateFrontendResourceArrayResponse';
|
|
340
353
|
export * from './StoreSpecialDateResource';
|
|
341
354
|
export * from './StoreSpecialDateResourceArrayResponse';
|
|
342
|
-
export * from './StoreStockType';
|
|
343
355
|
export * from './StoreStoreRequest';
|
|
344
356
|
export * from './StoreStoreRequestAddress';
|
|
345
357
|
export * from './StoreStoreRequestSpecialDatesInner';
|
|
@@ -381,6 +393,7 @@ export * from './UpdateProductRangeRequest';
|
|
|
381
393
|
export * from './UpdateProductRangeRequestAttributesInner';
|
|
382
394
|
export * from './UpdateProductRequest';
|
|
383
395
|
export * from './UpdateProductTypeRequest';
|
|
396
|
+
export * from './UpdateReviewRequest';
|
|
384
397
|
export * from './UpdateSiteNotificationRequest';
|
|
385
398
|
export * from './UpdateSiteRequest';
|
|
386
399
|
export * from './UpdateStoreRequest';
|
|
@@ -1,33 +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 type { SaveMapStoreStockMigrationRequestAssociationsInner } from './SaveMapStoreStockMigrationRequestAssociationsInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SaveMapStoreStockMigrationRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface SaveMapStoreStockMigrationRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<SaveMapStoreStockMigrationRequestAssociationsInner>}
|
|
22
|
-
* @memberof SaveMapStoreStockMigrationRequest
|
|
23
|
-
*/
|
|
24
|
-
associations: Array<SaveMapStoreStockMigrationRequestAssociationsInner>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfSaveMapStoreStockMigrationRequest(value: object): value is SaveMapStoreStockMigrationRequest;
|
|
30
|
-
export declare function SaveMapStoreStockMigrationRequestFromJSON(json: any): SaveMapStoreStockMigrationRequest;
|
|
31
|
-
export declare function SaveMapStoreStockMigrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequest;
|
|
32
|
-
export declare function SaveMapStoreStockMigrationRequestToJSON(json: any): SaveMapStoreStockMigrationRequest;
|
|
33
|
-
export declare function SaveMapStoreStockMigrationRequestToJSONTyped(value?: SaveMapStoreStockMigrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,52 +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.instanceOfSaveMapStoreStockMigrationRequest = instanceOfSaveMapStoreStockMigrationRequest;
|
|
17
|
-
exports.SaveMapStoreStockMigrationRequestFromJSON = SaveMapStoreStockMigrationRequestFromJSON;
|
|
18
|
-
exports.SaveMapStoreStockMigrationRequestFromJSONTyped = SaveMapStoreStockMigrationRequestFromJSONTyped;
|
|
19
|
-
exports.SaveMapStoreStockMigrationRequestToJSON = SaveMapStoreStockMigrationRequestToJSON;
|
|
20
|
-
exports.SaveMapStoreStockMigrationRequestToJSONTyped = SaveMapStoreStockMigrationRequestToJSONTyped;
|
|
21
|
-
var SaveMapStoreStockMigrationRequestAssociationsInner_1 = require("./SaveMapStoreStockMigrationRequestAssociationsInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfSaveMapStoreStockMigrationRequest(value) {
|
|
26
|
-
if (!('associations' in value) || value['associations'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function SaveMapStoreStockMigrationRequestFromJSON(json) {
|
|
31
|
-
return SaveMapStoreStockMigrationRequestFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function SaveMapStoreStockMigrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'associations': (json['associations'].map(SaveMapStoreStockMigrationRequestAssociationsInner_1.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON)),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function SaveMapStoreStockMigrationRequestToJSON(json) {
|
|
42
|
-
return SaveMapStoreStockMigrationRequestToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function SaveMapStoreStockMigrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'associations': (value['associations'].map(SaveMapStoreStockMigrationRequestAssociationsInner_1.SaveMapStoreStockMigrationRequestAssociationsInnerToJSON)),
|
|
51
|
-
};
|
|
52
|
-
}
|