@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,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { LicenceCheckLogListResource } from './LicenceCheckLogListResource';
|
|
24
|
+
import {
|
|
25
|
+
LicenceCheckLogListResourceFromJSON,
|
|
26
|
+
LicenceCheckLogListResourceFromJSONTyped,
|
|
27
|
+
LicenceCheckLogListResourceToJSON,
|
|
28
|
+
LicenceCheckLogListResourceToJSONTyped,
|
|
29
|
+
} from './LicenceCheckLogListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedLicenceCheckLogListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedLicenceCheckLogListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<LicenceCheckLogListResource>}
|
|
40
|
+
* @memberof PaginatedLicenceCheckLogListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<LicenceCheckLogListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedLicenceCheckLogListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedLicenceCheckLogListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedLicenceCheckLogListResourceResponse(value: object): value is PaginatedLicenceCheckLogListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedLicenceCheckLogListResourceResponseFromJSON(json: any): PaginatedLicenceCheckLogListResourceResponse {
|
|
61
|
+
return PaginatedLicenceCheckLogListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedLicenceCheckLogListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLicenceCheckLogListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(LicenceCheckLogListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedLicenceCheckLogListResourceResponseToJSON(json: any): PaginatedLicenceCheckLogListResourceResponse {
|
|
76
|
+
return PaginatedLicenceCheckLogListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedLicenceCheckLogListResourceResponseToJSONTyped(value?: PaginatedLicenceCheckLogListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(LicenceCheckLogListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { SecurityCompanyListResource } from './SecurityCompanyListResource';
|
|
24
|
+
import {
|
|
25
|
+
SecurityCompanyListResourceFromJSON,
|
|
26
|
+
SecurityCompanyListResourceFromJSONTyped,
|
|
27
|
+
SecurityCompanyListResourceToJSON,
|
|
28
|
+
SecurityCompanyListResourceToJSONTyped,
|
|
29
|
+
} from './SecurityCompanyListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedSecurityCompanyListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedSecurityCompanyListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SecurityCompanyListResource>}
|
|
40
|
+
* @memberof PaginatedSecurityCompanyListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<SecurityCompanyListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedSecurityCompanyListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedSecurityCompanyListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedSecurityCompanyListResourceResponse(value: object): value is PaginatedSecurityCompanyListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedSecurityCompanyListResourceResponseFromJSON(json: any): PaginatedSecurityCompanyListResourceResponse {
|
|
61
|
+
return PaginatedSecurityCompanyListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedSecurityCompanyListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSecurityCompanyListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(SecurityCompanyListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedSecurityCompanyListResourceResponseToJSON(json: any): PaginatedSecurityCompanyListResourceResponse {
|
|
76
|
+
return PaginatedSecurityCompanyListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedSecurityCompanyListResourceResponseToJSONTyped(value?: PaginatedSecurityCompanyListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(SecurityCompanyListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { UserListResource } from './UserListResource';
|
|
24
|
+
import {
|
|
25
|
+
UserListResourceFromJSON,
|
|
26
|
+
UserListResourceFromJSONTyped,
|
|
27
|
+
UserListResourceToJSON,
|
|
28
|
+
UserListResourceToJSONTyped,
|
|
29
|
+
} from './UserListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedUserListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedUserListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<UserListResource>}
|
|
40
|
+
* @memberof PaginatedUserListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<UserListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedUserListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedUserListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedUserListResourceResponse(value: object): value is PaginatedUserListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedUserListResourceResponseFromJSON(json: any): PaginatedUserListResourceResponse {
|
|
61
|
+
return PaginatedUserListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedUserListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(UserListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedUserListResourceResponseToJSON(json: any): PaginatedUserListResourceResponse {
|
|
76
|
+
return PaginatedUserListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedUserListResourceResponseToJSONTyped(value?: PaginatedUserListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(UserListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { VenueListResource } from './VenueListResource';
|
|
24
|
+
import {
|
|
25
|
+
VenueListResourceFromJSON,
|
|
26
|
+
VenueListResourceFromJSONTyped,
|
|
27
|
+
VenueListResourceToJSON,
|
|
28
|
+
VenueListResourceToJSONTyped,
|
|
29
|
+
} from './VenueListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedVenueListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedVenueListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<VenueListResource>}
|
|
40
|
+
* @memberof PaginatedVenueListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<VenueListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedVenueListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedVenueListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedVenueListResourceResponse(value: object): value is PaginatedVenueListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedVenueListResourceResponseFromJSON(json: any): PaginatedVenueListResourceResponse {
|
|
61
|
+
return PaginatedVenueListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedVenueListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedVenueListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(VenueListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedVenueListResourceResponseToJSON(json: any): PaginatedVenueListResourceResponse {
|
|
76
|
+
return PaginatedVenueListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedVenueListResourceResponseToJSONTyped(value?: PaginatedVenueListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(VenueListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SecurityCompanyListResource
|
|
28
|
+
*/
|
|
29
|
+
export interface SecurityCompanyListResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecurityCompanyListResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecurityCompanyListResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecurityCompanyListResource
|
|
46
|
+
*/
|
|
47
|
+
email?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof SecurityCompanyListResource
|
|
52
|
+
*/
|
|
53
|
+
isEnabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {AddressResource}
|
|
57
|
+
* @memberof SecurityCompanyListResource
|
|
58
|
+
*/
|
|
59
|
+
address: AddressResource | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SecurityCompanyListResource
|
|
64
|
+
*/
|
|
65
|
+
licenceNumber: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the SecurityCompanyListResource interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfSecurityCompanyListResource(value: object): value is SecurityCompanyListResource {
|
|
72
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
73
|
+
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
74
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
75
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SecurityCompanyListResourceFromJSON(json: any): SecurityCompanyListResource {
|
|
80
|
+
return SecurityCompanyListResourceFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function SecurityCompanyListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyListResource {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
92
|
+
'isEnabled': json['isEnabled'],
|
|
93
|
+
'address': AddressResourceFromJSON(json['address']),
|
|
94
|
+
'licenceNumber': json['licenceNumber'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function SecurityCompanyListResourceToJSON(json: any): SecurityCompanyListResource {
|
|
99
|
+
return SecurityCompanyListResourceToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function SecurityCompanyListResourceToJSONTyped(value?: SecurityCompanyListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'id': value['id'],
|
|
110
|
+
'name': value['name'],
|
|
111
|
+
'email': value['email'],
|
|
112
|
+
'isEnabled': value['isEnabled'],
|
|
113
|
+
'address': AddressResourceToJSON(value['address']),
|
|
114
|
+
'licenceNumber': value['licenceNumber'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -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 { SecurityCompanyListResource } from './SecurityCompanyListResource';
|
|
17
|
+
import {
|
|
18
|
+
SecurityCompanyListResourceFromJSON,
|
|
19
|
+
SecurityCompanyListResourceFromJSONTyped,
|
|
20
|
+
SecurityCompanyListResourceToJSON,
|
|
21
|
+
SecurityCompanyListResourceToJSONTyped,
|
|
22
|
+
} from './SecurityCompanyListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SecurityCompanyListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SecurityCompanyListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SecurityCompanyListResource>}
|
|
33
|
+
* @memberof SecurityCompanyListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<SecurityCompanyListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SecurityCompanyListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSecurityCompanyListResourceArrayResponse(value: object): value is SecurityCompanyListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SecurityCompanyListResourceArrayResponseFromJSON(json: any): SecurityCompanyListResourceArrayResponse {
|
|
46
|
+
return SecurityCompanyListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SecurityCompanyListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SecurityCompanyListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SecurityCompanyListResourceArrayResponseToJSON(json: any): SecurityCompanyListResourceArrayResponse {
|
|
60
|
+
return SecurityCompanyListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SecurityCompanyListResourceArrayResponseToJSONTyped(value?: SecurityCompanyListResourceArrayResponse | 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(SecurityCompanyListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface UserListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserListResource
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserListResource
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UserListResource
|
|
44
|
+
*/
|
|
45
|
+
fullName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UserListResource
|
|
50
|
+
*/
|
|
51
|
+
email: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UserListResource
|
|
56
|
+
*/
|
|
57
|
+
mobile: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof UserListResource
|
|
62
|
+
*/
|
|
63
|
+
roles: Array<string>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the UserListResource interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfUserListResource(value: object): value is UserListResource {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
72
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
73
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
74
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
75
|
+
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
76
|
+
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function UserListResourceFromJSON(json: any): UserListResource {
|
|
81
|
+
return UserListResourceFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UserListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserListResource {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'firstName': json['firstName'],
|
|
92
|
+
'lastName': json['lastName'],
|
|
93
|
+
'fullName': json['fullName'],
|
|
94
|
+
'email': json['email'],
|
|
95
|
+
'mobile': json['mobile'],
|
|
96
|
+
'roles': json['roles'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function UserListResourceToJSON(json: any): UserListResource {
|
|
101
|
+
return UserListResourceToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UserListResourceToJSONTyped(value?: UserListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'firstName': value['firstName'],
|
|
113
|
+
'lastName': value['lastName'],
|
|
114
|
+
'fullName': value['fullName'],
|
|
115
|
+
'email': value['email'],
|
|
116
|
+
'mobile': value['mobile'],
|
|
117
|
+
'roles': value['roles'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|