@digital8/lighting-illusions-ts-sdk 0.0.1708 → 0.0.1709
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 +24 -7
- package/dist/apis/ReviewApi.d.ts +109 -0
- package/dist/apis/ReviewApi.js +433 -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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/StoreResource.d.ts +2 -14
- package/dist/models/StoreResource.js +2 -10
- package/dist/models/StoreReviewRequest.d.ts +80 -0
- package/dist/models/StoreReviewRequest.js +73 -0
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/UpdateReviewRequest.d.ts +68 -0
- package/dist/models/UpdateReviewRequest.js +65 -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 +407 -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 +50 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/UpdateReviewRequest.md +46 -0
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/ReviewApi.ts +331 -0
- package/src/apis/StoreApi.ts +0 -84
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +3 -2
- 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/ExternalApiLogResource.ts +2 -3
- 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/StoreResource.ts +4 -22
- package/src/models/StoreReviewRequest.ts +133 -0
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/UpdateReviewRequest.ts +115 -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
package/src/apis/StoreApi.ts
CHANGED
|
@@ -21,7 +21,6 @@ import type {
|
|
|
21
21
|
GetAllStoreRequest,
|
|
22
22
|
IndexStoreRequest,
|
|
23
23
|
PaginatedStoreListResourceResponse,
|
|
24
|
-
SaveMapStoreStockMigrationRequest,
|
|
25
24
|
StoreListResourceArrayResponse,
|
|
26
25
|
StoreResource,
|
|
27
26
|
StoreSpecialDateResource,
|
|
@@ -42,8 +41,6 @@ import {
|
|
|
42
41
|
IndexStoreRequestToJSON,
|
|
43
42
|
PaginatedStoreListResourceResponseFromJSON,
|
|
44
43
|
PaginatedStoreListResourceResponseToJSON,
|
|
45
|
-
SaveMapStoreStockMigrationRequestFromJSON,
|
|
46
|
-
SaveMapStoreStockMigrationRequestToJSON,
|
|
47
44
|
StoreListResourceArrayResponseFromJSON,
|
|
48
45
|
StoreListResourceArrayResponseToJSON,
|
|
49
46
|
StoreResourceFromJSON,
|
|
@@ -85,10 +82,6 @@ export interface IndexStoreOperationRequest {
|
|
|
85
82
|
indexStoreRequest?: IndexStoreRequest;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
|
-
export interface SaveMapStoreStockMigrationOperationRequest {
|
|
89
|
-
saveMapStoreStockMigrationRequest?: SaveMapStoreStockMigrationRequest;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
85
|
export interface ShowStoreRequest {
|
|
93
86
|
store: number;
|
|
94
87
|
}
|
|
@@ -392,83 +385,6 @@ export class StoreApi extends runtime.BaseAPI {
|
|
|
392
385
|
return await response.value();
|
|
393
386
|
}
|
|
394
387
|
|
|
395
|
-
/**
|
|
396
|
-
* Creates request options for optionsStoreStockMigration without sending the request
|
|
397
|
-
*/
|
|
398
|
-
async optionsStoreStockMigrationRequestOpts(): Promise<runtime.RequestOpts> {
|
|
399
|
-
const queryParameters: any = {};
|
|
400
|
-
|
|
401
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
let urlPath = `/admin-api/store/stock-migration/options`;
|
|
405
|
-
|
|
406
|
-
return {
|
|
407
|
-
path: urlPath,
|
|
408
|
-
method: 'GET',
|
|
409
|
-
headers: headerParameters,
|
|
410
|
-
query: queryParameters,
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Auto-generated: optionsStoreStockMigration
|
|
416
|
-
*/
|
|
417
|
-
async optionsStoreStockMigrationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
418
|
-
const requestOptions = await this.optionsStoreStockMigrationRequestOpts();
|
|
419
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
420
|
-
|
|
421
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Auto-generated: optionsStoreStockMigration
|
|
426
|
-
*/
|
|
427
|
-
async optionsStoreStockMigration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
428
|
-
const response = await this.optionsStoreStockMigrationRaw(initOverrides);
|
|
429
|
-
return await response.value();
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Creates request options for saveMapStoreStockMigration without sending the request
|
|
434
|
-
*/
|
|
435
|
-
async saveMapStoreStockMigrationRequestOpts(requestParameters: SaveMapStoreStockMigrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
436
|
-
const queryParameters: any = {};
|
|
437
|
-
|
|
438
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
439
|
-
|
|
440
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
let urlPath = `/admin-api/store/stock-migration/save-map`;
|
|
444
|
-
|
|
445
|
-
return {
|
|
446
|
-
path: urlPath,
|
|
447
|
-
method: 'POST',
|
|
448
|
-
headers: headerParameters,
|
|
449
|
-
query: queryParameters,
|
|
450
|
-
body: SaveMapStoreStockMigrationRequestToJSON(requestParameters['saveMapStoreStockMigrationRequest']),
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Auto-generated: saveMapStoreStockMigration
|
|
456
|
-
*/
|
|
457
|
-
async saveMapStoreStockMigrationRaw(requestParameters: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
458
|
-
const requestOptions = await this.saveMapStoreStockMigrationRequestOpts(requestParameters);
|
|
459
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
460
|
-
|
|
461
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Auto-generated: saveMapStoreStockMigration
|
|
466
|
-
*/
|
|
467
|
-
async saveMapStoreStockMigration(requestParameters: SaveMapStoreStockMigrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
468
|
-
const response = await this.saveMapStoreStockMigrationRaw(requestParameters, initOverrides);
|
|
469
|
-
return await response.value();
|
|
470
|
-
}
|
|
471
|
-
|
|
472
388
|
/**
|
|
473
389
|
* Creates request options for showStore without sending the request
|
|
474
390
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './ProductCategoryApi';
|
|
|
14
14
|
export * from './ProductRangeApi';
|
|
15
15
|
export * from './ProductTypeApi';
|
|
16
16
|
export * from './RedirectApi';
|
|
17
|
+
export * from './ReviewApi';
|
|
17
18
|
export * from './SiteApi';
|
|
18
19
|
export * from './StoreApi';
|
|
19
20
|
export * from './SupplierApi';
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,6 +79,7 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
84
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -99,7 +100,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
99
100
|
return {
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
-
'company': json['company']
|
|
103
|
+
'company': json['company'],
|
|
103
104
|
'line1': json['line_1'],
|
|
104
105
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
105
106
|
'postcode': json['postcode'],
|
|
@@ -0,0 +1,92 @@
|
|
|
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 AdminUserLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminUserLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AdminUserLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AdminUserLiteResource
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminUserLiteResource
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminUserLiteResource
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AdminUserLiteResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfAdminUserLiteResource(value: object): value is AdminUserLiteResource {
|
|
52
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
53
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
54
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AdminUserLiteResourceFromJSON(json: any): AdminUserLiteResource {
|
|
59
|
+
return AdminUserLiteResourceFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AdminUserLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserLiteResource {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
69
|
+
'firstName': json['firstName'],
|
|
70
|
+
'lastName': json['lastName'],
|
|
71
|
+
'email': json['email'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function AdminUserLiteResourceToJSON(json: any): AdminUserLiteResource {
|
|
76
|
+
return AdminUserLiteResourceToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function AdminUserLiteResourceToJSONTyped(value?: AdminUserLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'firstName': value['firstName'],
|
|
88
|
+
'lastName': value['lastName'],
|
|
89
|
+
'email': value['email'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -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 { AdminUserLiteResource } from './AdminUserLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
AdminUserLiteResourceFromJSON,
|
|
19
|
+
AdminUserLiteResourceFromJSONTyped,
|
|
20
|
+
AdminUserLiteResourceToJSON,
|
|
21
|
+
AdminUserLiteResourceToJSONTyped,
|
|
22
|
+
} from './AdminUserLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AdminUserLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AdminUserLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AdminUserLiteResource>}
|
|
33
|
+
* @memberof AdminUserLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AdminUserLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AdminUserLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAdminUserLiteResourceArrayResponse(value: object): value is AdminUserLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AdminUserLiteResourceArrayResponseFromJSON(json: any): AdminUserLiteResourceArrayResponse {
|
|
46
|
+
return AdminUserLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AdminUserLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AdminUserLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AdminUserLiteResourceArrayResponseToJSON(json: any): AdminUserLiteResourceArrayResponse {
|
|
60
|
+
return AdminUserLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AdminUserLiteResourceArrayResponseToJSONTyped(value?: AdminUserLiteResourceArrayResponse | 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(AdminUserLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 CustomerLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CustomerLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerLiteResource
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerLiteResource
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CustomerLiteResource
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CustomerLiteResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCustomerLiteResource(value: object): value is CustomerLiteResource {
|
|
52
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
53
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
54
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CustomerLiteResourceFromJSON(json: any): CustomerLiteResource {
|
|
59
|
+
return CustomerLiteResourceFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CustomerLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerLiteResource {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
69
|
+
'firstName': json['firstName'],
|
|
70
|
+
'lastName': json['lastName'],
|
|
71
|
+
'email': json['email'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CustomerLiteResourceToJSON(json: any): CustomerLiteResource {
|
|
76
|
+
return CustomerLiteResourceToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CustomerLiteResourceToJSONTyped(value?: CustomerLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'firstName': value['firstName'],
|
|
88
|
+
'lastName': value['lastName'],
|
|
89
|
+
'email': value['email'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -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 { CustomerLiteResource } from './CustomerLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
CustomerLiteResourceFromJSON,
|
|
19
|
+
CustomerLiteResourceFromJSONTyped,
|
|
20
|
+
CustomerLiteResourceToJSON,
|
|
21
|
+
CustomerLiteResourceToJSONTyped,
|
|
22
|
+
} from './CustomerLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CustomerLiteResource>}
|
|
33
|
+
* @memberof CustomerLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CustomerLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CustomerLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCustomerLiteResourceArrayResponse(value: object): value is CustomerLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CustomerLiteResourceArrayResponseFromJSON(json: any): CustomerLiteResourceArrayResponse {
|
|
46
|
+
return CustomerLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CustomerLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CustomerLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CustomerLiteResourceArrayResponseToJSON(json: any): CustomerLiteResourceArrayResponse {
|
|
60
|
+
return CustomerLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CustomerLiteResourceArrayResponseToJSONTyped(value?: CustomerLiteResourceArrayResponse | 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(CustomerLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,167 @@
|
|
|
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 IndexReviewRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexReviewRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexReviewRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {IndexReviewRequestSortByEnum}
|
|
31
|
+
* @memberof IndexReviewRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexReviewRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IndexReviewRequestSortDirectionEnum}
|
|
37
|
+
* @memberof IndexReviewRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexReviewRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexReviewRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexReviewRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexReviewRequest
|
|
56
|
+
*/
|
|
57
|
+
siteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IndexReviewRequest
|
|
62
|
+
*/
|
|
63
|
+
createdByAdmin?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof IndexReviewRequest
|
|
68
|
+
*/
|
|
69
|
+
hasApprovedAt?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof IndexReviewRequest
|
|
74
|
+
*/
|
|
75
|
+
relatedId?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof IndexReviewRequest
|
|
80
|
+
*/
|
|
81
|
+
relatedType?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof IndexReviewRequest
|
|
86
|
+
*/
|
|
87
|
+
includesRelations?: boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const IndexReviewRequestSortByEnum = {
|
|
95
|
+
Id: 'id',
|
|
96
|
+
Rating: 'rating',
|
|
97
|
+
ApprovedAt: 'approved_at',
|
|
98
|
+
CreatedAt: 'created_at'
|
|
99
|
+
} as const;
|
|
100
|
+
export type IndexReviewRequestSortByEnum = typeof IndexReviewRequestSortByEnum[keyof typeof IndexReviewRequestSortByEnum];
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const IndexReviewRequestSortDirectionEnum = {
|
|
106
|
+
Asc: 'asc',
|
|
107
|
+
Desc: 'desc'
|
|
108
|
+
} as const;
|
|
109
|
+
export type IndexReviewRequestSortDirectionEnum = typeof IndexReviewRequestSortDirectionEnum[keyof typeof IndexReviewRequestSortDirectionEnum];
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the IndexReviewRequest interface.
|
|
114
|
+
*/
|
|
115
|
+
export function instanceOfIndexReviewRequest(value: object): value is IndexReviewRequest {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function IndexReviewRequestFromJSON(json: any): IndexReviewRequest {
|
|
120
|
+
return IndexReviewRequestFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function IndexReviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexReviewRequest {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
130
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
131
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
132
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
133
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
134
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
135
|
+
'createdByAdmin': json['created_by_admin'] == null ? undefined : json['created_by_admin'],
|
|
136
|
+
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
137
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
138
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
139
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function IndexReviewRequestToJSON(json: any): IndexReviewRequest {
|
|
144
|
+
return IndexReviewRequestToJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function IndexReviewRequestToJSONTyped(value?: IndexReviewRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'search': value['search'],
|
|
155
|
+
'sortBy': value['sortBy'],
|
|
156
|
+
'sortDirection': value['sortDirection'],
|
|
157
|
+
'per_page': value['perPage'],
|
|
158
|
+
'page': value['page'],
|
|
159
|
+
'site_id': value['siteId'],
|
|
160
|
+
'created_by_admin': value['createdByAdmin'],
|
|
161
|
+
'has_approved_at': value['hasApprovedAt'],
|
|
162
|
+
'related_id': value['relatedId'],
|
|
163
|
+
'related_type': value['relatedType'],
|
|
164
|
+
'includes_relations': value['includesRelations'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|