@digital8/security-registers-backend-ts-sdk 0.0.121 → 0.0.123
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 +13 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +79 -1
- package/dist/apis/GeneralApi.js +390 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/LicenceListResource.d.ts +81 -0
- package/dist/models/LicenceListResource.js +81 -0
- package/dist/models/LicenceListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceListResourceArrayResponse.js +50 -0
- package/dist/models/LicenceLiteResource.d.ts +44 -0
- package/dist/models/LicenceLiteResource.js +57 -0
- package/dist/models/LicenceLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceLiteResourceArrayResponse.js +50 -0
- package/dist/models/LicenceResource.d.ts +111 -0
- package/dist/models/LicenceResource.js +99 -0
- package/dist/models/LicenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceResourceArrayResponse.js +50 -0
- package/dist/models/LicencesListAllRequest.d.ts +92 -0
- package/dist/models/LicencesListAllRequest.js +83 -0
- package/dist/models/LicencesListRequest.d.ts +116 -0
- package/dist/models/LicencesListRequest.js +91 -0
- package/dist/models/LicencesStoreRequest.d.ts +100 -0
- package/dist/models/LicencesStoreRequest.js +95 -0
- package/dist/models/LicencesUpdateRequest.d.ts +74 -0
- package/dist/models/LicencesUpdateRequest.js +63 -0
- package/dist/models/LicencesVerifyRequest.d.ts +64 -0
- package/dist/models/LicencesVerifyRequest.js +77 -0
- package/dist/models/PaginatedLicenceListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceListResourceResponse.js +57 -0
- package/dist/models/PaginatedLicenceResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceResourceResponse.js +57 -0
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +351 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/LicenceListResource.ts +144 -0
- package/src/models/LicenceListResourceArrayResponse.ts +73 -0
- package/src/models/LicenceLiteResource.ts +83 -0
- package/src/models/LicenceLiteResourceArrayResponse.ts +73 -0
- package/src/models/LicenceResource.ts +188 -0
- package/src/models/LicenceResourceArrayResponse.ts +73 -0
- package/src/models/LicencesListAllRequest.ts +142 -0
- package/src/models/LicencesListRequest.ts +174 -0
- package/src/models/LicencesStoreRequest.ts +161 -0
- package/src/models/LicencesUpdateRequest.ts +121 -0
- package/src/models/LicencesVerifyRequest.ts +110 -0
- package/src/models/PaginatedLicenceListResourceResponse.ts +90 -0
- package/src/models/PaginatedLicenceResourceResponse.ts +90 -0
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,83 @@
|
|
|
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 LicenceLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface LicenceLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LicenceLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicenceLiteResource
|
|
32
|
+
*/
|
|
33
|
+
licenceNumber: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof LicenceLiteResource
|
|
38
|
+
*/
|
|
39
|
+
state: object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LicenceLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLicenceLiteResource(value: object): value is LicenceLiteResource {
|
|
46
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
47
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LicenceLiteResourceFromJSON(json: any): LicenceLiteResource {
|
|
52
|
+
return LicenceLiteResourceFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LicenceLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceLiteResource {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
+
'licenceNumber': json['licenceNumber'],
|
|
63
|
+
'state': json['state'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function LicenceLiteResourceToJSON(json: any): LicenceLiteResource {
|
|
68
|
+
return LicenceLiteResourceToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function LicenceLiteResourceToJSONTyped(value?: LicenceLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'licenceNumber': value['licenceNumber'],
|
|
80
|
+
'state': value['state'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { LicenceLiteResource } from './LicenceLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceLiteResourceFromJSON,
|
|
19
|
+
LicenceLiteResourceFromJSONTyped,
|
|
20
|
+
LicenceLiteResourceToJSON,
|
|
21
|
+
LicenceLiteResourceToJSONTyped,
|
|
22
|
+
} from './LicenceLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LicenceLiteResource>}
|
|
33
|
+
* @memberof LicenceLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LicenceLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LicenceLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLicenceLiteResourceArrayResponse(value: object): value is LicenceLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LicenceLiteResourceArrayResponseFromJSON(json: any): LicenceLiteResourceArrayResponse {
|
|
46
|
+
return LicenceLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LicenceLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LicenceLiteResourceArrayResponseToJSON(json: any): LicenceLiteResourceArrayResponse {
|
|
60
|
+
return LicenceLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LicenceLiteResourceArrayResponseToJSONTyped(value?: LicenceLiteResourceArrayResponse | 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(LicenceLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,188 @@
|
|
|
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 { UserRelationResource } from './UserRelationResource';
|
|
17
|
+
import {
|
|
18
|
+
UserRelationResourceFromJSON,
|
|
19
|
+
UserRelationResourceFromJSONTyped,
|
|
20
|
+
UserRelationResourceToJSON,
|
|
21
|
+
UserRelationResourceToJSONTyped,
|
|
22
|
+
} from './UserRelationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceResource
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LicenceResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {UserRelationResource}
|
|
39
|
+
* @memberof LicenceResource
|
|
40
|
+
*/
|
|
41
|
+
user: UserRelationResource | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof LicenceResource
|
|
46
|
+
*/
|
|
47
|
+
state: object;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LicenceResource
|
|
52
|
+
*/
|
|
53
|
+
licenceNumber: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof LicenceResource
|
|
58
|
+
*/
|
|
59
|
+
firstName: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LicenceResource
|
|
64
|
+
*/
|
|
65
|
+
lastName: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LicenceResource
|
|
70
|
+
*/
|
|
71
|
+
fullName: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof LicenceResource
|
|
76
|
+
*/
|
|
77
|
+
expiryDate: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {object}
|
|
81
|
+
* @memberof LicenceResource
|
|
82
|
+
*/
|
|
83
|
+
frontAsset: object;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {object}
|
|
87
|
+
* @memberof LicenceResource
|
|
88
|
+
*/
|
|
89
|
+
backAsset: object;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {object}
|
|
93
|
+
* @memberof LicenceResource
|
|
94
|
+
*/
|
|
95
|
+
rsaAsset: object;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {object}
|
|
99
|
+
* @memberof LicenceResource
|
|
100
|
+
*/
|
|
101
|
+
firstAidAsset: object;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof LicenceResource
|
|
106
|
+
*/
|
|
107
|
+
createdAt?: Date | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Date}
|
|
111
|
+
* @memberof LicenceResource
|
|
112
|
+
*/
|
|
113
|
+
updatedAt?: Date | null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the LicenceResource interface.
|
|
118
|
+
*/
|
|
119
|
+
export function instanceOfLicenceResource(value: object): value is LicenceResource {
|
|
120
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
121
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
122
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
123
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
124
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
125
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
126
|
+
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
127
|
+
if (!('frontAsset' in value) || value['frontAsset'] === undefined) return false;
|
|
128
|
+
if (!('backAsset' in value) || value['backAsset'] === undefined) return false;
|
|
129
|
+
if (!('rsaAsset' in value) || value['rsaAsset'] === undefined) return false;
|
|
130
|
+
if (!('firstAidAsset' in value) || value['firstAidAsset'] === undefined) return false;
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function LicenceResourceFromJSON(json: any): LicenceResource {
|
|
135
|
+
return LicenceResourceFromJSONTyped(json, false);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function LicenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceResource {
|
|
139
|
+
if (json == null) {
|
|
140
|
+
return json;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
145
|
+
'user': UserRelationResourceFromJSON(json['user']),
|
|
146
|
+
'state': json['state'],
|
|
147
|
+
'licenceNumber': json['licenceNumber'],
|
|
148
|
+
'firstName': json['firstName'],
|
|
149
|
+
'lastName': json['lastName'],
|
|
150
|
+
'fullName': json['fullName'],
|
|
151
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
152
|
+
'frontAsset': json['frontAsset'],
|
|
153
|
+
'backAsset': json['backAsset'],
|
|
154
|
+
'rsaAsset': json['rsaAsset'],
|
|
155
|
+
'firstAidAsset': json['firstAidAsset'],
|
|
156
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
157
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function LicenceResourceToJSON(json: any): LicenceResource {
|
|
162
|
+
return LicenceResourceToJSONTyped(json, false);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function LicenceResourceToJSONTyped(value?: LicenceResource | null, ignoreDiscriminator: boolean = false): any {
|
|
166
|
+
if (value == null) {
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
|
|
172
|
+
'id': value['id'],
|
|
173
|
+
'user': UserRelationResourceToJSON(value['user']),
|
|
174
|
+
'state': value['state'],
|
|
175
|
+
'licenceNumber': value['licenceNumber'],
|
|
176
|
+
'firstName': value['firstName'],
|
|
177
|
+
'lastName': value['lastName'],
|
|
178
|
+
'fullName': value['fullName'],
|
|
179
|
+
'expiryDate': ((value['expiryDate']).toISOString()),
|
|
180
|
+
'frontAsset': value['frontAsset'],
|
|
181
|
+
'backAsset': value['backAsset'],
|
|
182
|
+
'rsaAsset': value['rsaAsset'],
|
|
183
|
+
'firstAidAsset': value['firstAidAsset'],
|
|
184
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
185
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
@@ -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 { LicenceResource } from './LicenceResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceResourceFromJSON,
|
|
19
|
+
LicenceResourceFromJSONTyped,
|
|
20
|
+
LicenceResourceToJSON,
|
|
21
|
+
LicenceResourceToJSONTyped,
|
|
22
|
+
} from './LicenceResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LicenceResource>}
|
|
33
|
+
* @memberof LicenceResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LicenceResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LicenceResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLicenceResourceArrayResponse(value: object): value is LicenceResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LicenceResourceArrayResponseFromJSON(json: any): LicenceResourceArrayResponse {
|
|
46
|
+
return LicenceResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LicenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LicenceResourceArrayResponseToJSON(json: any): LicenceResourceArrayResponse {
|
|
60
|
+
return LicenceResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LicenceResourceArrayResponseToJSONTyped(value?: LicenceResourceArrayResponse | 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(LicenceResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
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 LicencesListAllRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesListAllRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LicencesListAllRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesListAllRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: LicencesListAllRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicencesListAllRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: LicencesListAllRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof LicencesListAllRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LicencesListAllRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: LicencesListAllRequestRelatedTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof LicencesListAllRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof LicencesListAllRequest
|
|
62
|
+
*/
|
|
63
|
+
state?: Array<string>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const LicencesListAllRequestSortByEnum = {
|
|
71
|
+
ExpiryDate: 'expiry_date',
|
|
72
|
+
FirstName: 'first_name',
|
|
73
|
+
LicenceNumber: 'licence_number'
|
|
74
|
+
} as const;
|
|
75
|
+
export type LicencesListAllRequestSortByEnum = typeof LicencesListAllRequestSortByEnum[keyof typeof LicencesListAllRequestSortByEnum];
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export const LicencesListAllRequestSortDirectionEnum = {
|
|
81
|
+
Asc: 'asc',
|
|
82
|
+
Desc: 'desc'
|
|
83
|
+
} as const;
|
|
84
|
+
export type LicencesListAllRequestSortDirectionEnum = typeof LicencesListAllRequestSortDirectionEnum[keyof typeof LicencesListAllRequestSortDirectionEnum];
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const LicencesListAllRequestRelatedTypeEnum = {
|
|
90
|
+
User: 'user'
|
|
91
|
+
} as const;
|
|
92
|
+
export type LicencesListAllRequestRelatedTypeEnum = typeof LicencesListAllRequestRelatedTypeEnum[keyof typeof LicencesListAllRequestRelatedTypeEnum];
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the LicencesListAllRequest interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfLicencesListAllRequest(value: object): value is LicencesListAllRequest {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function LicencesListAllRequestFromJSON(json: any): LicencesListAllRequest {
|
|
103
|
+
return LicencesListAllRequestFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function LicencesListAllRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesListAllRequest {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
113
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
114
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
115
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
116
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
117
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
118
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function LicencesListAllRequestToJSON(json: any): LicencesListAllRequest {
|
|
123
|
+
return LicencesListAllRequestToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function LicencesListAllRequestToJSONTyped(value?: LicencesListAllRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'search': value['search'],
|
|
134
|
+
'sort_by': value['sortBy'],
|
|
135
|
+
'sort_direction': value['sortDirection'],
|
|
136
|
+
'related_id': value['relatedId'],
|
|
137
|
+
'related_type': value['relatedType'],
|
|
138
|
+
'includes_relations': value['includesRelations'],
|
|
139
|
+
'state': value['state'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|