@digital8/security-registers-backend-ts-sdk 0.0.742 → 0.0.744
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 +12 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +9 -9
- package/dist/apis/GeneralApi.js +4 -4
- package/dist/models/LicenceCheckLogListResource.d.ts +75 -0
- package/dist/models/LicenceCheckLogListResource.js +75 -0
- package/dist/models/LicenceCheckLogListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceCheckLogListResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedLicenceCheckLogListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceCheckLogListResourceResponse.js +57 -0
- package/dist/models/PaginatedSecurityCompanyListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSecurityCompanyListResourceResponse.js +57 -0
- package/dist/models/PaginatedUserListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedUserListResourceResponse.js +57 -0
- package/dist/models/PaginatedVenueListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedVenueListResourceResponse.js +57 -0
- package/dist/models/SecurityCompanyListResource.d.ts +63 -0
- package/dist/models/SecurityCompanyListResource.js +68 -0
- package/dist/models/SecurityCompanyListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SecurityCompanyListResourceArrayResponse.js +50 -0
- package/dist/models/UserListResource.d.ts +68 -0
- package/dist/models/UserListResource.js +75 -0
- package/dist/models/UserListResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserListResourceArrayResponse.js +50 -0
- package/dist/models/VenueListResource.d.ts +70 -0
- package/dist/models/VenueListResource.js +74 -0
- package/dist/models/VenueListResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +24 -24
- package/src/models/LicenceCheckLogListResource.ts +136 -0
- package/src/models/LicenceCheckLogListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedLicenceCheckLogListResourceResponse.ts +90 -0
- package/src/models/PaginatedSecurityCompanyListResourceResponse.ts +90 -0
- package/src/models/PaginatedUserListResourceResponse.ts +90 -0
- package/src/models/PaginatedVenueListResourceResponse.ts +90 -0
- package/src/models/SecurityCompanyListResource.ts +117 -0
- package/src/models/SecurityCompanyListResourceArrayResponse.ts +73 -0
- package/src/models/UserListResource.ts +120 -0
- package/src/models/UserListResourceArrayResponse.ts +73 -0
- package/src/models/VenueListResource.ts +133 -0
- package/src/models/VenueListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Security Registers API
|
|
5
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
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 { UserListResource } from './UserListResource';
|
|
17
|
+
import {
|
|
18
|
+
UserListResourceFromJSON,
|
|
19
|
+
UserListResourceFromJSONTyped,
|
|
20
|
+
UserListResourceToJSON,
|
|
21
|
+
UserListResourceToJSONTyped,
|
|
22
|
+
} from './UserListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface UserListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<UserListResource>}
|
|
33
|
+
* @memberof UserListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<UserListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UserListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfUserListResourceArrayResponse(value: object): value is UserListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserListResourceArrayResponseFromJSON(json: any): UserListResourceArrayResponse {
|
|
46
|
+
return UserListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(UserListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UserListResourceArrayResponseToJSON(json: any): UserListResourceArrayResponse {
|
|
60
|
+
return UserListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UserListResourceArrayResponseToJSONTyped(value?: UserListResourceArrayResponse | 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(UserListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Security Registers API
|
|
5
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
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 { AddressResource } from './AddressResource';
|
|
17
|
+
import {
|
|
18
|
+
AddressResourceFromJSON,
|
|
19
|
+
AddressResourceFromJSONTyped,
|
|
20
|
+
AddressResourceToJSON,
|
|
21
|
+
AddressResourceToJSONTyped,
|
|
22
|
+
} from './AddressResource';
|
|
23
|
+
import type { UserRelationResource } from './UserRelationResource';
|
|
24
|
+
import {
|
|
25
|
+
UserRelationResourceFromJSON,
|
|
26
|
+
UserRelationResourceFromJSONTyped,
|
|
27
|
+
UserRelationResourceToJSON,
|
|
28
|
+
UserRelationResourceToJSONTyped,
|
|
29
|
+
} from './UserRelationResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface VenueListResource
|
|
35
|
+
*/
|
|
36
|
+
export interface VenueListResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof VenueListResource
|
|
41
|
+
*/
|
|
42
|
+
id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof VenueListResource
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof VenueListResource
|
|
53
|
+
*/
|
|
54
|
+
venueCode: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof VenueListResource
|
|
59
|
+
*/
|
|
60
|
+
isEnabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {UserRelationResource}
|
|
64
|
+
* @memberof VenueListResource
|
|
65
|
+
*/
|
|
66
|
+
primaryManager: UserRelationResource | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AddressResource}
|
|
70
|
+
* @memberof VenueListResource
|
|
71
|
+
*/
|
|
72
|
+
address: AddressResource | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof VenueListResource
|
|
77
|
+
*/
|
|
78
|
+
createdAt?: Date | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the VenueListResource interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfVenueListResource(value: object): value is VenueListResource {
|
|
85
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
86
|
+
if (!('venueCode' in value) || value['venueCode'] === undefined) return false;
|
|
87
|
+
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
88
|
+
if (!('primaryManager' in value) || value['primaryManager'] === undefined) return false;
|
|
89
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function VenueListResourceFromJSON(json: any): VenueListResource {
|
|
94
|
+
return VenueListResourceFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function VenueListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueListResource {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
104
|
+
'name': json['name'],
|
|
105
|
+
'venueCode': json['venueCode'],
|
|
106
|
+
'isEnabled': json['isEnabled'],
|
|
107
|
+
'primaryManager': UserRelationResourceFromJSON(json['primaryManager']),
|
|
108
|
+
'address': AddressResourceFromJSON(json['address']),
|
|
109
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function VenueListResourceToJSON(json: any): VenueListResource {
|
|
114
|
+
return VenueListResourceToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function VenueListResourceToJSONTyped(value?: VenueListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'name': value['name'],
|
|
126
|
+
'venueCode': value['venueCode'],
|
|
127
|
+
'isEnabled': value['isEnabled'],
|
|
128
|
+
'primaryManager': UserRelationResourceToJSON(value['primaryManager']),
|
|
129
|
+
'address': AddressResourceToJSON(value['address']),
|
|
130
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Security Registers API
|
|
5
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
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 { VenueListResource } from './VenueListResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueListResourceFromJSON,
|
|
19
|
+
VenueListResourceFromJSONTyped,
|
|
20
|
+
VenueListResourceToJSON,
|
|
21
|
+
VenueListResourceToJSONTyped,
|
|
22
|
+
} from './VenueListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VenueListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface VenueListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<VenueListResource>}
|
|
33
|
+
* @memberof VenueListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<VenueListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the VenueListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfVenueListResourceArrayResponse(value: object): value is VenueListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VenueListResourceArrayResponseFromJSON(json: any): VenueListResourceArrayResponse {
|
|
46
|
+
return VenueListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VenueListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VenueListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VenueListResourceArrayResponseToJSON(json: any): VenueListResourceArrayResponse {
|
|
60
|
+
return VenueListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VenueListResourceArrayResponseToJSONTyped(value?: VenueListResourceArrayResponse | 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(VenueListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -69,6 +69,8 @@ export * from './IncidentsUpdateRequest';
|
|
|
69
69
|
export * from './IncidentsUpdateTitleRequest';
|
|
70
70
|
export * from './IncidentsVideosStoreRequest';
|
|
71
71
|
export * from './IncidentsVideosUploadTokenRequest';
|
|
72
|
+
export * from './LicenceCheckLogListResource';
|
|
73
|
+
export * from './LicenceCheckLogListResourceArrayResponse';
|
|
72
74
|
export * from './LicenceCheckLogResource';
|
|
73
75
|
export * from './LicenceCheckLogResourceArrayResponse';
|
|
74
76
|
export * from './LicenceCheckSource';
|
|
@@ -108,6 +110,7 @@ export * from './NotificationTypeResource';
|
|
|
108
110
|
export * from './NotificationTypeResourceArrayResponse';
|
|
109
111
|
export * from './PaginatedIncidentListResourceResponse';
|
|
110
112
|
export * from './PaginatedIncidentVideoListResourceResponse';
|
|
113
|
+
export * from './PaginatedLicenceCheckLogListResourceResponse';
|
|
111
114
|
export * from './PaginatedLicenceCheckLogResourceResponse';
|
|
112
115
|
export * from './PaginatedLicenceListResourceResponse';
|
|
113
116
|
export * from './PaginatedLicenceResourceResponse';
|
|
@@ -117,8 +120,11 @@ export * from './PaginatedRegisterResourceResponse';
|
|
|
117
120
|
export * from './PaginatedRosterListResourceResponse';
|
|
118
121
|
export * from './PaginatedRosterResourceResponse';
|
|
119
122
|
export * from './PaginatedRosterWithRegistersResourceResponse';
|
|
123
|
+
export * from './PaginatedSecurityCompanyListResourceResponse';
|
|
120
124
|
export * from './PaginatedSecurityCompanyResourceResponse';
|
|
125
|
+
export * from './PaginatedUserListResourceResponse';
|
|
121
126
|
export * from './PaginatedUserResourceResponse';
|
|
127
|
+
export * from './PaginatedVenueListResourceResponse';
|
|
122
128
|
export * from './PaginatedVenueResourceResponse';
|
|
123
129
|
export * from './PagingMetadata';
|
|
124
130
|
export * from './PdfExportDownloadType';
|
|
@@ -160,6 +166,8 @@ export * from './SecurityCompaniesListAllRequest';
|
|
|
160
166
|
export * from './SecurityCompaniesListRequest';
|
|
161
167
|
export * from './SecurityCompaniesStoreRequest';
|
|
162
168
|
export * from './SecurityCompaniesUpdateRequest';
|
|
169
|
+
export * from './SecurityCompanyListResource';
|
|
170
|
+
export * from './SecurityCompanyListResourceArrayResponse';
|
|
163
171
|
export * from './SecurityCompanyLiteResource';
|
|
164
172
|
export * from './SecurityCompanyLiteResourceArrayResponse';
|
|
165
173
|
export * from './SecurityCompanyResource';
|
|
@@ -168,6 +176,8 @@ export * from './SettingsLicenceVerificationFallbackUpdateRequest';
|
|
|
168
176
|
export * from './SignOffStatus';
|
|
169
177
|
export * from './UserAuthTokenResource';
|
|
170
178
|
export * from './UserAuthTokenResourceArrayResponse';
|
|
179
|
+
export * from './UserListResource';
|
|
180
|
+
export * from './UserListResourceArrayResponse';
|
|
171
181
|
export * from './UserLiteResource';
|
|
172
182
|
export * from './UserLiteResourceArrayResponse';
|
|
173
183
|
export * from './UserRelationResource';
|
|
@@ -187,6 +197,8 @@ export * from './UsersRegisterVenueManagerRequest';
|
|
|
187
197
|
export * from './UsersUpdateRequest';
|
|
188
198
|
export * from './VenueGuardScheduleResource';
|
|
189
199
|
export * from './VenueGuardScheduleResourceArrayResponse';
|
|
200
|
+
export * from './VenueListResource';
|
|
201
|
+
export * from './VenueListResourceArrayResponse';
|
|
190
202
|
export * from './VenueLiteResource';
|
|
191
203
|
export * from './VenueLiteResourceArrayResponse';
|
|
192
204
|
export * from './VenueResource';
|