@digital8/security-registers-backend-ts-sdk 0.0.782 → 0.0.783
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 +23 -1
- package/dist/apis/GeneralApi.js +111 -0
- package/dist/models/ApiLogListResource.d.ts +76 -0
- package/dist/models/ApiLogListResource.js +77 -0
- package/dist/models/ApiLogListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ApiLogListResourceArrayResponse.js +50 -0
- package/dist/models/ApiLogResource.d.ts +106 -0
- package/dist/models/ApiLogResource.js +88 -0
- package/dist/models/ApiLogResourceArrayResponse.d.ts +33 -0
- package/dist/models/ApiLogResourceArrayResponse.js +50 -0
- package/dist/models/ApiLogsListRequest.d.ts +132 -0
- package/dist/models/ApiLogsListRequest.js +92 -0
- package/dist/models/PaginatedApiLogListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedApiLogListResourceResponse.js +57 -0
- package/dist/models/WebhookEndpoint.d.ts +25 -0
- package/dist/models/WebhookEndpoint.js +51 -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 +102 -0
- package/src/models/ApiLogListResource.ts +142 -0
- package/src/models/ApiLogListResourceArrayResponse.ts +73 -0
- package/src/models/ApiLogResource.ts +182 -0
- package/src/models/ApiLogResourceArrayResponse.ts +73 -0
- package/src/models/ApiLogsListRequest.ts +204 -0
- package/src/models/PaginatedApiLogListResourceResponse.ts +90 -0
- package/src/models/WebhookEndpoint.ts +53 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,142 @@
|
|
|
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 { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueLiteResourceFromJSON,
|
|
19
|
+
VenueLiteResourceFromJSONTyped,
|
|
20
|
+
VenueLiteResourceToJSON,
|
|
21
|
+
VenueLiteResourceToJSONTyped,
|
|
22
|
+
} from './VenueLiteResource';
|
|
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 ApiLogListResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiLogListResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiLogListResource
|
|
41
|
+
*/
|
|
42
|
+
id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiLogListResource
|
|
47
|
+
*/
|
|
48
|
+
method: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiLogListResource
|
|
53
|
+
*/
|
|
54
|
+
path: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ApiLogListResource
|
|
59
|
+
*/
|
|
60
|
+
receivedAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof ApiLogListResource
|
|
65
|
+
*/
|
|
66
|
+
statusCode?: number | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof ApiLogListResource
|
|
71
|
+
*/
|
|
72
|
+
isSuccessful: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {VenueLiteResource}
|
|
76
|
+
* @memberof ApiLogListResource
|
|
77
|
+
*/
|
|
78
|
+
venue: VenueLiteResource | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {UserRelationResource}
|
|
82
|
+
* @memberof ApiLogListResource
|
|
83
|
+
*/
|
|
84
|
+
guard: UserRelationResource | null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ApiLogListResource interface.
|
|
89
|
+
*/
|
|
90
|
+
export function instanceOfApiLogListResource(value: object): value is ApiLogListResource {
|
|
91
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
92
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
93
|
+
if (!('receivedAt' in value) || value['receivedAt'] === undefined) return false;
|
|
94
|
+
if (!('isSuccessful' in value) || value['isSuccessful'] === undefined) return false;
|
|
95
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
96
|
+
if (!('guard' in value) || value['guard'] === undefined) return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ApiLogListResourceFromJSON(json: any): ApiLogListResource {
|
|
101
|
+
return ApiLogListResourceFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ApiLogListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLogListResource {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
111
|
+
'method': json['method'],
|
|
112
|
+
'path': json['path'],
|
|
113
|
+
'receivedAt': (new Date(json['receivedAt'])),
|
|
114
|
+
'statusCode': json['statusCode'] == null ? undefined : json['statusCode'],
|
|
115
|
+
'isSuccessful': json['isSuccessful'],
|
|
116
|
+
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
117
|
+
'guard': UserRelationResourceFromJSON(json['guard']),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function ApiLogListResourceToJSON(json: any): ApiLogListResource {
|
|
122
|
+
return ApiLogListResourceToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function ApiLogListResourceToJSONTyped(value?: ApiLogListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': value['id'],
|
|
133
|
+
'method': value['method'],
|
|
134
|
+
'path': value['path'],
|
|
135
|
+
'receivedAt': ((value['receivedAt']).toISOString()),
|
|
136
|
+
'statusCode': value['statusCode'],
|
|
137
|
+
'isSuccessful': value['isSuccessful'],
|
|
138
|
+
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
139
|
+
'guard': UserRelationResourceToJSON(value['guard']),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -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 { ApiLogListResource } from './ApiLogListResource';
|
|
17
|
+
import {
|
|
18
|
+
ApiLogListResourceFromJSON,
|
|
19
|
+
ApiLogListResourceFromJSONTyped,
|
|
20
|
+
ApiLogListResourceToJSON,
|
|
21
|
+
ApiLogListResourceToJSONTyped,
|
|
22
|
+
} from './ApiLogListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiLogListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiLogListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiLogListResource>}
|
|
33
|
+
* @memberof ApiLogListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ApiLogListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiLogListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiLogListResourceArrayResponse(value: object): value is ApiLogListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiLogListResourceArrayResponseFromJSON(json: any): ApiLogListResourceArrayResponse {
|
|
46
|
+
return ApiLogListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiLogListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLogListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ApiLogListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiLogListResourceArrayResponseToJSON(json: any): ApiLogListResourceArrayResponse {
|
|
60
|
+
return ApiLogListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiLogListResourceArrayResponseToJSONTyped(value?: ApiLogListResourceArrayResponse | 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(ApiLogListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
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 { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueLiteResourceFromJSON,
|
|
19
|
+
VenueLiteResourceFromJSONTyped,
|
|
20
|
+
VenueLiteResourceToJSON,
|
|
21
|
+
VenueLiteResourceToJSONTyped,
|
|
22
|
+
} from './VenueLiteResource';
|
|
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 ApiLogResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiLogResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiLogResource
|
|
41
|
+
*/
|
|
42
|
+
id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiLogResource
|
|
47
|
+
*/
|
|
48
|
+
method: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiLogResource
|
|
53
|
+
*/
|
|
54
|
+
path: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ApiLogResource
|
|
59
|
+
*/
|
|
60
|
+
receivedAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof ApiLogResource
|
|
65
|
+
*/
|
|
66
|
+
statusCode?: number | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof ApiLogResource
|
|
71
|
+
*/
|
|
72
|
+
isSuccessful: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {VenueLiteResource}
|
|
76
|
+
* @memberof ApiLogResource
|
|
77
|
+
*/
|
|
78
|
+
venue: VenueLiteResource | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {UserRelationResource}
|
|
82
|
+
* @memberof ApiLogResource
|
|
83
|
+
*/
|
|
84
|
+
guard: UserRelationResource | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @memberof ApiLogResource
|
|
89
|
+
*/
|
|
90
|
+
headers?: object | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {object}
|
|
94
|
+
* @memberof ApiLogResource
|
|
95
|
+
*/
|
|
96
|
+
body?: object | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {object}
|
|
100
|
+
* @memberof ApiLogResource
|
|
101
|
+
*/
|
|
102
|
+
responseBody?: object | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Date}
|
|
106
|
+
* @memberof ApiLogResource
|
|
107
|
+
*/
|
|
108
|
+
createdAt?: Date | null;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Date}
|
|
112
|
+
* @memberof ApiLogResource
|
|
113
|
+
*/
|
|
114
|
+
updatedAt?: Date | null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the ApiLogResource interface.
|
|
119
|
+
*/
|
|
120
|
+
export function instanceOfApiLogResource(value: object): value is ApiLogResource {
|
|
121
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
122
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
123
|
+
if (!('receivedAt' in value) || value['receivedAt'] === undefined) return false;
|
|
124
|
+
if (!('isSuccessful' in value) || value['isSuccessful'] === undefined) return false;
|
|
125
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
126
|
+
if (!('guard' in value) || value['guard'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ApiLogResourceFromJSON(json: any): ApiLogResource {
|
|
131
|
+
return ApiLogResourceFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ApiLogResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLogResource {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
141
|
+
'method': json['method'],
|
|
142
|
+
'path': json['path'],
|
|
143
|
+
'receivedAt': (new Date(json['receivedAt'])),
|
|
144
|
+
'statusCode': json['statusCode'] == null ? undefined : json['statusCode'],
|
|
145
|
+
'isSuccessful': json['isSuccessful'],
|
|
146
|
+
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
147
|
+
'guard': UserRelationResourceFromJSON(json['guard']),
|
|
148
|
+
'headers': json['headers'] == null ? undefined : json['headers'],
|
|
149
|
+
'body': json['body'] == null ? undefined : json['body'],
|
|
150
|
+
'responseBody': json['responseBody'] == null ? undefined : json['responseBody'],
|
|
151
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
152
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function ApiLogResourceToJSON(json: any): ApiLogResource {
|
|
157
|
+
return ApiLogResourceToJSONTyped(json, false);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function ApiLogResourceToJSONTyped(value?: ApiLogResource | null, ignoreDiscriminator: boolean = false): any {
|
|
161
|
+
if (value == null) {
|
|
162
|
+
return value;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
|
|
167
|
+
'id': value['id'],
|
|
168
|
+
'method': value['method'],
|
|
169
|
+
'path': value['path'],
|
|
170
|
+
'receivedAt': ((value['receivedAt']).toISOString()),
|
|
171
|
+
'statusCode': value['statusCode'],
|
|
172
|
+
'isSuccessful': value['isSuccessful'],
|
|
173
|
+
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
174
|
+
'guard': UserRelationResourceToJSON(value['guard']),
|
|
175
|
+
'headers': value['headers'],
|
|
176
|
+
'body': value['body'],
|
|
177
|
+
'responseBody': value['responseBody'],
|
|
178
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
179
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
@@ -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 { ApiLogResource } from './ApiLogResource';
|
|
17
|
+
import {
|
|
18
|
+
ApiLogResourceFromJSON,
|
|
19
|
+
ApiLogResourceFromJSONTyped,
|
|
20
|
+
ApiLogResourceToJSON,
|
|
21
|
+
ApiLogResourceToJSONTyped,
|
|
22
|
+
} from './ApiLogResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiLogResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiLogResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiLogResource>}
|
|
33
|
+
* @memberof ApiLogResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ApiLogResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiLogResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiLogResourceArrayResponse(value: object): value is ApiLogResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiLogResourceArrayResponseFromJSON(json: any): ApiLogResourceArrayResponse {
|
|
46
|
+
return ApiLogResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiLogResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLogResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ApiLogResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiLogResourceArrayResponseToJSON(json: any): ApiLogResourceArrayResponse {
|
|
60
|
+
return ApiLogResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiLogResourceArrayResponseToJSONTyped(value?: ApiLogResourceArrayResponse | 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(ApiLogResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,204 @@
|
|
|
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 { WebhookEndpoint } from './WebhookEndpoint';
|
|
17
|
+
import {
|
|
18
|
+
WebhookEndpointFromJSON,
|
|
19
|
+
WebhookEndpointFromJSONTyped,
|
|
20
|
+
WebhookEndpointToJSON,
|
|
21
|
+
WebhookEndpointToJSONTyped,
|
|
22
|
+
} from './WebhookEndpoint';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiLogsListRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiLogsListRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiLogsListRequest
|
|
34
|
+
*/
|
|
35
|
+
search?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiLogsListRequest
|
|
40
|
+
*/
|
|
41
|
+
sortBy?: ApiLogsListRequestSortByEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiLogsListRequest
|
|
46
|
+
*/
|
|
47
|
+
sortDirection?: ApiLogsListRequestSortDirectionEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiLogsListRequest
|
|
52
|
+
*/
|
|
53
|
+
perPage?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiLogsListRequest
|
|
58
|
+
*/
|
|
59
|
+
page?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof ApiLogsListRequest
|
|
64
|
+
*/
|
|
65
|
+
venueId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof ApiLogsListRequest
|
|
70
|
+
*/
|
|
71
|
+
guardId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<WebhookEndpoint>}
|
|
75
|
+
* @memberof ApiLogsListRequest
|
|
76
|
+
*/
|
|
77
|
+
path?: Array<WebhookEndpoint>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof ApiLogsListRequest
|
|
82
|
+
*/
|
|
83
|
+
statusCode?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof ApiLogsListRequest
|
|
88
|
+
*/
|
|
89
|
+
isSuccessful?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof ApiLogsListRequest
|
|
94
|
+
*/
|
|
95
|
+
beforeReceivedAt?: Date;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof ApiLogsListRequest
|
|
100
|
+
*/
|
|
101
|
+
afterReceivedAt?: Date;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof ApiLogsListRequest
|
|
106
|
+
*/
|
|
107
|
+
relatedId?: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof ApiLogsListRequest
|
|
112
|
+
*/
|
|
113
|
+
relatedType?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof ApiLogsListRequest
|
|
118
|
+
*/
|
|
119
|
+
includesRelations?: boolean;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const ApiLogsListRequestSortByEnum = {
|
|
127
|
+
ReceivedAt: 'received_at'
|
|
128
|
+
} as const;
|
|
129
|
+
export type ApiLogsListRequestSortByEnum = typeof ApiLogsListRequestSortByEnum[keyof typeof ApiLogsListRequestSortByEnum];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export const ApiLogsListRequestSortDirectionEnum = {
|
|
135
|
+
Asc: 'asc',
|
|
136
|
+
Desc: 'desc'
|
|
137
|
+
} as const;
|
|
138
|
+
export type ApiLogsListRequestSortDirectionEnum = typeof ApiLogsListRequestSortDirectionEnum[keyof typeof ApiLogsListRequestSortDirectionEnum];
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Check if a given object implements the ApiLogsListRequest interface.
|
|
143
|
+
*/
|
|
144
|
+
export function instanceOfApiLogsListRequest(value: object): value is ApiLogsListRequest {
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function ApiLogsListRequestFromJSON(json: any): ApiLogsListRequest {
|
|
149
|
+
return ApiLogsListRequestFromJSONTyped(json, false);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function ApiLogsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLogsListRequest {
|
|
153
|
+
if (json == null) {
|
|
154
|
+
return json;
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
|
|
158
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
159
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
160
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
161
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
162
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
163
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
164
|
+
'guardId': json['guard_id'] == null ? undefined : json['guard_id'],
|
|
165
|
+
'path': json['path'] == null ? undefined : ((json['path'] as Array<any>).map(WebhookEndpointFromJSON)),
|
|
166
|
+
'statusCode': json['status_code'] == null ? undefined : json['status_code'],
|
|
167
|
+
'isSuccessful': json['is_successful'] == null ? undefined : json['is_successful'],
|
|
168
|
+
'beforeReceivedAt': json['before_received_at'] == null ? undefined : (new Date(json['before_received_at'])),
|
|
169
|
+
'afterReceivedAt': json['after_received_at'] == null ? undefined : (new Date(json['after_received_at'])),
|
|
170
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
171
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
172
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function ApiLogsListRequestToJSON(json: any): ApiLogsListRequest {
|
|
177
|
+
return ApiLogsListRequestToJSONTyped(json, false);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function ApiLogsListRequestToJSONTyped(value?: ApiLogsListRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
181
|
+
if (value == null) {
|
|
182
|
+
return value;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return {
|
|
186
|
+
|
|
187
|
+
'search': value['search'],
|
|
188
|
+
'sort_by': value['sortBy'],
|
|
189
|
+
'sort_direction': value['sortDirection'],
|
|
190
|
+
'per_page': value['perPage'],
|
|
191
|
+
'page': value['page'],
|
|
192
|
+
'venue_id': value['venueId'],
|
|
193
|
+
'guard_id': value['guardId'],
|
|
194
|
+
'path': value['path'] == null ? undefined : ((value['path'] as Array<any>).map(WebhookEndpointToJSON)),
|
|
195
|
+
'status_code': value['statusCode'],
|
|
196
|
+
'is_successful': value['isSuccessful'],
|
|
197
|
+
'before_received_at': value['beforeReceivedAt'] == null ? undefined : ((value['beforeReceivedAt']).toISOString()),
|
|
198
|
+
'after_received_at': value['afterReceivedAt'] == null ? undefined : ((value['afterReceivedAt']).toISOString()),
|
|
199
|
+
'related_id': value['relatedId'],
|
|
200
|
+
'related_type': value['relatedType'],
|
|
201
|
+
'includes_relations': value['includesRelations'],
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|