@digital8/security-registers-backend-ts-sdk 0.0.83 → 0.0.85
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 +7 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +28 -3
- package/dist/apis/GeneralApi.js +117 -4
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IndexMinimalUserRequest.d.ts +112 -0
- package/dist/models/IndexMinimalUserRequest.js +91 -0
- package/dist/models/SecurityCompaniesListAllRequest.d.ts +102 -0
- package/dist/models/SecurityCompaniesListAllRequest.js +89 -0
- package/dist/models/SecurityCompanyLiteResource.d.ts +38 -0
- package/dist/models/SecurityCompanyLiteResource.js +53 -0
- package/dist/models/SecurityCompanyLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/SecurityCompanyLiteResourceArrayResponse.js +50 -0
- package/dist/models/UsersCreateWithRoleRequest.d.ts +4 -4
- package/dist/models/UsersCreateWithRoleRequest.js +4 -4
- package/dist/models/VenueLiteResource.d.ts +38 -0
- package/dist/models/VenueLiteResource.js +53 -0
- package/dist/models/VenueLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueLiteResourceArrayResponse.js +50 -0
- package/dist/models/VenuesListAllRequest.d.ts +120 -0
- package/dist/models/VenuesListAllRequest.js +95 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +113 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IndexMinimalUserRequest.ts +168 -0
- package/src/models/SecurityCompaniesListAllRequest.ts +154 -0
- package/src/models/SecurityCompanyLiteResource.ts +74 -0
- package/src/models/SecurityCompanyLiteResourceArrayResponse.ts +73 -0
- package/src/models/UsersCreateWithRoleRequest.ts +8 -8
- package/src/models/VenueLiteResource.ts +74 -0
- package/src/models/VenueLiteResourceArrayResponse.ts +73 -0
- package/src/models/VenuesListAllRequest.ts +178 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,154 @@
|
|
|
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 SecurityCompaniesListAllRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SecurityCompaniesListAllRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: SecurityCompaniesListAllRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: SecurityCompaniesListAllRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: SecurityCompaniesListAllRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
62
|
+
*/
|
|
63
|
+
isEnabled?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof SecurityCompaniesListAllRequest
|
|
68
|
+
*/
|
|
69
|
+
addressState?: Array<string>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const SecurityCompaniesListAllRequestSortByEnum = {
|
|
77
|
+
Name: 'name',
|
|
78
|
+
Email: 'email',
|
|
79
|
+
IsEnabled: 'is_enabled',
|
|
80
|
+
LicenceNumber: 'licence_number',
|
|
81
|
+
CreatedAt: 'created_at',
|
|
82
|
+
UpdatedAt: 'updated_at'
|
|
83
|
+
} as const;
|
|
84
|
+
export type SecurityCompaniesListAllRequestSortByEnum = typeof SecurityCompaniesListAllRequestSortByEnum[keyof typeof SecurityCompaniesListAllRequestSortByEnum];
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const SecurityCompaniesListAllRequestSortDirectionEnum = {
|
|
90
|
+
Asc: 'asc',
|
|
91
|
+
Desc: 'desc'
|
|
92
|
+
} as const;
|
|
93
|
+
export type SecurityCompaniesListAllRequestSortDirectionEnum = typeof SecurityCompaniesListAllRequestSortDirectionEnum[keyof typeof SecurityCompaniesListAllRequestSortDirectionEnum];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const SecurityCompaniesListAllRequestRelatedTypeEnum = {
|
|
99
|
+
User: 'user',
|
|
100
|
+
Venue: 'venue'
|
|
101
|
+
} as const;
|
|
102
|
+
export type SecurityCompaniesListAllRequestRelatedTypeEnum = typeof SecurityCompaniesListAllRequestRelatedTypeEnum[keyof typeof SecurityCompaniesListAllRequestRelatedTypeEnum];
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the SecurityCompaniesListAllRequest interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfSecurityCompaniesListAllRequest(value: object): value is SecurityCompaniesListAllRequest {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function SecurityCompaniesListAllRequestFromJSON(json: any): SecurityCompaniesListAllRequest {
|
|
113
|
+
return SecurityCompaniesListAllRequestFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function SecurityCompaniesListAllRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesListAllRequest {
|
|
117
|
+
if (json == null) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
123
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
124
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
125
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
126
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
127
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
128
|
+
'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
|
|
129
|
+
'addressState': json['address-state'] == null ? undefined : json['address-state'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function SecurityCompaniesListAllRequestToJSON(json: any): SecurityCompaniesListAllRequest {
|
|
134
|
+
return SecurityCompaniesListAllRequestToJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function SecurityCompaniesListAllRequestToJSONTyped(value?: SecurityCompaniesListAllRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
138
|
+
if (value == null) {
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'search': value['search'],
|
|
145
|
+
'sort_by': value['sortBy'],
|
|
146
|
+
'sort_direction': value['sortDirection'],
|
|
147
|
+
'related_id': value['relatedId'],
|
|
148
|
+
'related_type': value['relatedType'],
|
|
149
|
+
'includes_relations': value['includesRelations'],
|
|
150
|
+
'is_enabled': value['isEnabled'],
|
|
151
|
+
'address-state': value['addressState'],
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 SecurityCompanyLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface SecurityCompanyLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SecurityCompanyLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SecurityCompanyLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SecurityCompanyLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSecurityCompanyLiteResource(value: object): value is SecurityCompanyLiteResource {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function SecurityCompanyLiteResourceFromJSON(json: any): SecurityCompanyLiteResource {
|
|
45
|
+
return SecurityCompanyLiteResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function SecurityCompanyLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyLiteResource {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SecurityCompanyLiteResourceToJSON(json: any): SecurityCompanyLiteResource {
|
|
60
|
+
return SecurityCompanyLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SecurityCompanyLiteResourceToJSONTyped(value?: SecurityCompanyLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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 { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SecurityCompanyLiteResourceFromJSON,
|
|
19
|
+
SecurityCompanyLiteResourceFromJSONTyped,
|
|
20
|
+
SecurityCompanyLiteResourceToJSON,
|
|
21
|
+
SecurityCompanyLiteResourceToJSONTyped,
|
|
22
|
+
} from './SecurityCompanyLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SecurityCompanyLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SecurityCompanyLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SecurityCompanyLiteResource>}
|
|
33
|
+
* @memberof SecurityCompanyLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<SecurityCompanyLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SecurityCompanyLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSecurityCompanyLiteResourceArrayResponse(value: object): value is SecurityCompanyLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SecurityCompanyLiteResourceArrayResponseFromJSON(json: any): SecurityCompanyLiteResourceArrayResponse {
|
|
46
|
+
return SecurityCompanyLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SecurityCompanyLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SecurityCompanyLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SecurityCompanyLiteResourceArrayResponseToJSON(json: any): SecurityCompanyLiteResourceArrayResponse {
|
|
60
|
+
return SecurityCompanyLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SecurityCompanyLiteResourceArrayResponseToJSONTyped(value?: SecurityCompanyLiteResourceArrayResponse | 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(SecurityCompanyLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -57,16 +57,16 @@ export interface UsersCreateWithRoleRequest {
|
|
|
57
57
|
role: UsersCreateWithRoleRequestRoleEnum;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {number}
|
|
61
61
|
* @memberof UsersCreateWithRoleRequest
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
venueId?: number;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {number}
|
|
67
67
|
* @memberof UsersCreateWithRoleRequest
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
securityCompanyId?: number;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
|
|
@@ -111,8 +111,8 @@ export function UsersCreateWithRoleRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
111
111
|
'mobile': json['mobile'],
|
|
112
112
|
'password': json['password'],
|
|
113
113
|
'role': json['role'],
|
|
114
|
-
'
|
|
115
|
-
'
|
|
114
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
115
|
+
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -133,8 +133,8 @@ export function UsersCreateWithRoleRequestToJSONTyped(value?: UsersCreateWithRol
|
|
|
133
133
|
'mobile': value['mobile'],
|
|
134
134
|
'password': value['password'],
|
|
135
135
|
'role': value['role'],
|
|
136
|
-
'
|
|
137
|
-
'
|
|
136
|
+
'venue_id': value['venueId'],
|
|
137
|
+
'security_company_id': value['securityCompanyId'],
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -0,0 +1,74 @@
|
|
|
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 VenueLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface VenueLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof VenueLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VenueLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VenueLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVenueLiteResource(value: object): value is VenueLiteResource {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function VenueLiteResourceFromJSON(json: any): VenueLiteResource {
|
|
45
|
+
return VenueLiteResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function VenueLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueLiteResource {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VenueLiteResourceToJSON(json: any): VenueLiteResource {
|
|
60
|
+
return VenueLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VenueLiteResourceToJSONTyped(value?: VenueLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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 { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueLiteResourceFromJSON,
|
|
19
|
+
VenueLiteResourceFromJSONTyped,
|
|
20
|
+
VenueLiteResourceToJSON,
|
|
21
|
+
VenueLiteResourceToJSONTyped,
|
|
22
|
+
} from './VenueLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VenueLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface VenueLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<VenueLiteResource>}
|
|
33
|
+
* @memberof VenueLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<VenueLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the VenueLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfVenueLiteResourceArrayResponse(value: object): value is VenueLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VenueLiteResourceArrayResponseFromJSON(json: any): VenueLiteResourceArrayResponse {
|
|
46
|
+
return VenueLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VenueLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VenueLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VenueLiteResourceArrayResponseToJSON(json: any): VenueLiteResourceArrayResponse {
|
|
60
|
+
return VenueLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VenueLiteResourceArrayResponseToJSONTyped(value?: VenueLiteResourceArrayResponse | 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(VenueLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,178 @@
|
|
|
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 VenuesListAllRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface VenuesListAllRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VenuesListAllRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VenuesListAllRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: VenuesListAllRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VenuesListAllRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: VenuesListAllRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof VenuesListAllRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VenuesListAllRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: VenuesListAllRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof VenuesListAllRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof VenuesListAllRequest
|
|
62
|
+
*/
|
|
63
|
+
isEnabled?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof VenuesListAllRequest
|
|
68
|
+
*/
|
|
69
|
+
badgeNumberRequired?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof VenuesListAllRequest
|
|
74
|
+
*/
|
|
75
|
+
venueSignOnCodeRequired?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof VenuesListAllRequest
|
|
80
|
+
*/
|
|
81
|
+
primaryManagerId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof VenuesListAllRequest
|
|
86
|
+
*/
|
|
87
|
+
addressState?: Array<string>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const VenuesListAllRequestSortByEnum = {
|
|
95
|
+
Name: 'name',
|
|
96
|
+
VenueCode: 'venue_code',
|
|
97
|
+
Timezone: 'timezone',
|
|
98
|
+
IsEnabled: 'is_enabled',
|
|
99
|
+
CreatedAt: 'created_at',
|
|
100
|
+
UpdatedAt: 'updated_at'
|
|
101
|
+
} as const;
|
|
102
|
+
export type VenuesListAllRequestSortByEnum = typeof VenuesListAllRequestSortByEnum[keyof typeof VenuesListAllRequestSortByEnum];
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export const VenuesListAllRequestSortDirectionEnum = {
|
|
108
|
+
Asc: 'asc',
|
|
109
|
+
Desc: 'desc'
|
|
110
|
+
} as const;
|
|
111
|
+
export type VenuesListAllRequestSortDirectionEnum = typeof VenuesListAllRequestSortDirectionEnum[keyof typeof VenuesListAllRequestSortDirectionEnum];
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export const VenuesListAllRequestRelatedTypeEnum = {
|
|
117
|
+
User: 'user',
|
|
118
|
+
SecurityCompany: 'securityCompany'
|
|
119
|
+
} as const;
|
|
120
|
+
export type VenuesListAllRequestRelatedTypeEnum = typeof VenuesListAllRequestRelatedTypeEnum[keyof typeof VenuesListAllRequestRelatedTypeEnum];
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Check if a given object implements the VenuesListAllRequest interface.
|
|
125
|
+
*/
|
|
126
|
+
export function instanceOfVenuesListAllRequest(value: object): value is VenuesListAllRequest {
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function VenuesListAllRequestFromJSON(json: any): VenuesListAllRequest {
|
|
131
|
+
return VenuesListAllRequestFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function VenuesListAllRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenuesListAllRequest {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
141
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
142
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
143
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
144
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
145
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
146
|
+
'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
|
|
147
|
+
'badgeNumberRequired': json['badge_number_required'] == null ? undefined : json['badge_number_required'],
|
|
148
|
+
'venueSignOnCodeRequired': json['venue_sign_on_code_required'] == null ? undefined : json['venue_sign_on_code_required'],
|
|
149
|
+
'primaryManagerId': json['primary_manager_id'] == null ? undefined : json['primary_manager_id'],
|
|
150
|
+
'addressState': json['address-state'] == null ? undefined : json['address-state'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function VenuesListAllRequestToJSON(json: any): VenuesListAllRequest {
|
|
155
|
+
return VenuesListAllRequestToJSONTyped(json, false);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function VenuesListAllRequestToJSONTyped(value?: VenuesListAllRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
159
|
+
if (value == null) {
|
|
160
|
+
return value;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
|
|
165
|
+
'search': value['search'],
|
|
166
|
+
'sort_by': value['sortBy'],
|
|
167
|
+
'sort_direction': value['sortDirection'],
|
|
168
|
+
'related_id': value['relatedId'],
|
|
169
|
+
'related_type': value['relatedType'],
|
|
170
|
+
'includes_relations': value['includesRelations'],
|
|
171
|
+
'is_enabled': value['isEnabled'],
|
|
172
|
+
'badge_number_required': value['badgeNumberRequired'],
|
|
173
|
+
'venue_sign_on_code_required': value['venueSignOnCodeRequired'],
|
|
174
|
+
'primary_manager_id': value['primaryManagerId'],
|
|
175
|
+
'address-state': value['addressState'],
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|