@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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Security Registers API
|
|
6
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiLogResourceArrayResponse = instanceOfApiLogResourceArrayResponse;
|
|
17
|
+
exports.ApiLogResourceArrayResponseFromJSON = ApiLogResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ApiLogResourceArrayResponseFromJSONTyped = ApiLogResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ApiLogResourceArrayResponseToJSON = ApiLogResourceArrayResponseToJSON;
|
|
20
|
+
exports.ApiLogResourceArrayResponseToJSONTyped = ApiLogResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ApiLogResource_1 = require("./ApiLogResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiLogResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiLogResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ApiLogResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ApiLogResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ApiLogResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ApiLogResource_1.ApiLogResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ApiLogResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ApiLogResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiLogResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ApiLogResource_1.ApiLogResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Registers API
|
|
3
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { WebhookEndpoint } from './WebhookEndpoint';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiLogsListRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiLogsListRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiLogsListRequest
|
|
23
|
+
*/
|
|
24
|
+
search?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiLogsListRequest
|
|
29
|
+
*/
|
|
30
|
+
sortBy?: ApiLogsListRequestSortByEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiLogsListRequest
|
|
35
|
+
*/
|
|
36
|
+
sortDirection?: ApiLogsListRequestSortDirectionEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiLogsListRequest
|
|
41
|
+
*/
|
|
42
|
+
perPage?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiLogsListRequest
|
|
47
|
+
*/
|
|
48
|
+
page?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof ApiLogsListRequest
|
|
53
|
+
*/
|
|
54
|
+
venueId?: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof ApiLogsListRequest
|
|
59
|
+
*/
|
|
60
|
+
guardId?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<WebhookEndpoint>}
|
|
64
|
+
* @memberof ApiLogsListRequest
|
|
65
|
+
*/
|
|
66
|
+
path?: Array<WebhookEndpoint>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof ApiLogsListRequest
|
|
71
|
+
*/
|
|
72
|
+
statusCode?: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof ApiLogsListRequest
|
|
77
|
+
*/
|
|
78
|
+
isSuccessful?: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof ApiLogsListRequest
|
|
83
|
+
*/
|
|
84
|
+
beforeReceivedAt?: Date;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof ApiLogsListRequest
|
|
89
|
+
*/
|
|
90
|
+
afterReceivedAt?: Date;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ApiLogsListRequest
|
|
95
|
+
*/
|
|
96
|
+
relatedId?: number;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof ApiLogsListRequest
|
|
101
|
+
*/
|
|
102
|
+
relatedType?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof ApiLogsListRequest
|
|
107
|
+
*/
|
|
108
|
+
includesRelations?: boolean;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export declare const ApiLogsListRequestSortByEnum: {
|
|
114
|
+
readonly ReceivedAt: "received_at";
|
|
115
|
+
};
|
|
116
|
+
export type ApiLogsListRequestSortByEnum = typeof ApiLogsListRequestSortByEnum[keyof typeof ApiLogsListRequestSortByEnum];
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export declare const ApiLogsListRequestSortDirectionEnum: {
|
|
121
|
+
readonly Asc: "asc";
|
|
122
|
+
readonly Desc: "desc";
|
|
123
|
+
};
|
|
124
|
+
export type ApiLogsListRequestSortDirectionEnum = typeof ApiLogsListRequestSortDirectionEnum[keyof typeof ApiLogsListRequestSortDirectionEnum];
|
|
125
|
+
/**
|
|
126
|
+
* Check if a given object implements the ApiLogsListRequest interface.
|
|
127
|
+
*/
|
|
128
|
+
export declare function instanceOfApiLogsListRequest(value: object): value is ApiLogsListRequest;
|
|
129
|
+
export declare function ApiLogsListRequestFromJSON(json: any): ApiLogsListRequest;
|
|
130
|
+
export declare function ApiLogsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLogsListRequest;
|
|
131
|
+
export declare function ApiLogsListRequestToJSON(json: any): ApiLogsListRequest;
|
|
132
|
+
export declare function ApiLogsListRequestToJSONTyped(value?: ApiLogsListRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Security Registers API
|
|
6
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiLogsListRequestSortDirectionEnum = exports.ApiLogsListRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfApiLogsListRequest = instanceOfApiLogsListRequest;
|
|
18
|
+
exports.ApiLogsListRequestFromJSON = ApiLogsListRequestFromJSON;
|
|
19
|
+
exports.ApiLogsListRequestFromJSONTyped = ApiLogsListRequestFromJSONTyped;
|
|
20
|
+
exports.ApiLogsListRequestToJSON = ApiLogsListRequestToJSON;
|
|
21
|
+
exports.ApiLogsListRequestToJSONTyped = ApiLogsListRequestToJSONTyped;
|
|
22
|
+
var WebhookEndpoint_1 = require("./WebhookEndpoint");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ApiLogsListRequestSortByEnum = {
|
|
27
|
+
ReceivedAt: 'received_at'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.ApiLogsListRequestSortDirectionEnum = {
|
|
33
|
+
Asc: 'asc',
|
|
34
|
+
Desc: 'desc'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiLogsListRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfApiLogsListRequest(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ApiLogsListRequestFromJSON(json) {
|
|
43
|
+
return ApiLogsListRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ApiLogsListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
52
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
53
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
54
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
55
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
56
|
+
'guardId': json['guard_id'] == null ? undefined : json['guard_id'],
|
|
57
|
+
'path': json['path'] == null ? undefined : (json['path'].map(WebhookEndpoint_1.WebhookEndpointFromJSON)),
|
|
58
|
+
'statusCode': json['status_code'] == null ? undefined : json['status_code'],
|
|
59
|
+
'isSuccessful': json['is_successful'] == null ? undefined : json['is_successful'],
|
|
60
|
+
'beforeReceivedAt': json['before_received_at'] == null ? undefined : (new Date(json['before_received_at'])),
|
|
61
|
+
'afterReceivedAt': json['after_received_at'] == null ? undefined : (new Date(json['after_received_at'])),
|
|
62
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
63
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
64
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function ApiLogsListRequestToJSON(json) {
|
|
68
|
+
return ApiLogsListRequestToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function ApiLogsListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
71
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'search': value['search'],
|
|
77
|
+
'sort_by': value['sortBy'],
|
|
78
|
+
'sort_direction': value['sortDirection'],
|
|
79
|
+
'per_page': value['perPage'],
|
|
80
|
+
'page': value['page'],
|
|
81
|
+
'venue_id': value['venueId'],
|
|
82
|
+
'guard_id': value['guardId'],
|
|
83
|
+
'path': value['path'] == null ? undefined : (value['path'].map(WebhookEndpoint_1.WebhookEndpointToJSON)),
|
|
84
|
+
'status_code': value['statusCode'],
|
|
85
|
+
'is_successful': value['isSuccessful'],
|
|
86
|
+
'before_received_at': value['beforeReceivedAt'] == null ? undefined : ((value['beforeReceivedAt']).toISOString()),
|
|
87
|
+
'after_received_at': value['afterReceivedAt'] == null ? undefined : ((value['afterReceivedAt']).toISOString()),
|
|
88
|
+
'related_id': value['relatedId'],
|
|
89
|
+
'related_type': value['relatedType'],
|
|
90
|
+
'includes_relations': value['includesRelations'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Registers API
|
|
3
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ApiLogListResource } from './ApiLogListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedApiLogListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedApiLogListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ApiLogListResource>}
|
|
23
|
+
* @memberof PaginatedApiLogListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ApiLogListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedApiLogListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedApiLogListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedApiLogListResourceResponse(value: object): value is PaginatedApiLogListResourceResponse;
|
|
37
|
+
export declare function PaginatedApiLogListResourceResponseFromJSON(json: any): PaginatedApiLogListResourceResponse;
|
|
38
|
+
export declare function PaginatedApiLogListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedApiLogListResourceResponse;
|
|
39
|
+
export declare function PaginatedApiLogListResourceResponseToJSON(json: any): PaginatedApiLogListResourceResponse;
|
|
40
|
+
export declare function PaginatedApiLogListResourceResponseToJSONTyped(value?: PaginatedApiLogListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Security Registers API
|
|
6
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedApiLogListResourceResponse = instanceOfPaginatedApiLogListResourceResponse;
|
|
17
|
+
exports.PaginatedApiLogListResourceResponseFromJSON = PaginatedApiLogListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedApiLogListResourceResponseFromJSONTyped = PaginatedApiLogListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedApiLogListResourceResponseToJSON = PaginatedApiLogListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedApiLogListResourceResponseToJSONTyped = PaginatedApiLogListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var ApiLogListResource_1 = require("./ApiLogListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedApiLogListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedApiLogListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedApiLogListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedApiLogListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedApiLogListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ApiLogListResource_1.ApiLogListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedApiLogListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedApiLogListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedApiLogListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ApiLogListResource_1.ApiLogListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Registers API
|
|
3
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const WebhookEndpoint: {
|
|
17
|
+
readonly ApiWebhookGuardAttendance: "/api/webhook/guard-attendance";
|
|
18
|
+
readonly ApiWebhookIncidents: "/api/webhook/incidents";
|
|
19
|
+
};
|
|
20
|
+
export type WebhookEndpoint = typeof WebhookEndpoint[keyof typeof WebhookEndpoint];
|
|
21
|
+
export declare function instanceOfWebhookEndpoint(value: any): boolean;
|
|
22
|
+
export declare function WebhookEndpointFromJSON(json: any): WebhookEndpoint;
|
|
23
|
+
export declare function WebhookEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpoint;
|
|
24
|
+
export declare function WebhookEndpointToJSON(value?: WebhookEndpoint | null): any;
|
|
25
|
+
export declare function WebhookEndpointToJSONTyped(value: any, ignoreDiscriminator: boolean): WebhookEndpoint;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Security Registers API
|
|
6
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WebhookEndpoint = void 0;
|
|
17
|
+
exports.instanceOfWebhookEndpoint = instanceOfWebhookEndpoint;
|
|
18
|
+
exports.WebhookEndpointFromJSON = WebhookEndpointFromJSON;
|
|
19
|
+
exports.WebhookEndpointFromJSONTyped = WebhookEndpointFromJSONTyped;
|
|
20
|
+
exports.WebhookEndpointToJSON = WebhookEndpointToJSON;
|
|
21
|
+
exports.WebhookEndpointToJSONTyped = WebhookEndpointToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.WebhookEndpoint = {
|
|
27
|
+
ApiWebhookGuardAttendance: '/api/webhook/guard-attendance',
|
|
28
|
+
ApiWebhookIncidents: '/api/webhook/incidents'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfWebhookEndpoint(value) {
|
|
31
|
+
for (var key in exports.WebhookEndpoint) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.WebhookEndpoint, key)) {
|
|
33
|
+
if (exports.WebhookEndpoint[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function WebhookEndpointFromJSON(json) {
|
|
41
|
+
return WebhookEndpointFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function WebhookEndpointFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function WebhookEndpointToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function WebhookEndpointToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export * from './AddressResource';
|
|
2
2
|
export * from './AddressResourceArrayResponse';
|
|
3
|
+
export * from './ApiLogListResource';
|
|
4
|
+
export * from './ApiLogListResourceArrayResponse';
|
|
5
|
+
export * from './ApiLogResource';
|
|
6
|
+
export * from './ApiLogResourceArrayResponse';
|
|
7
|
+
export * from './ApiLogsListRequest';
|
|
3
8
|
export * from './AssetFileForUploadResource';
|
|
4
9
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
5
10
|
export * from './AssetLiteResource';
|
|
@@ -106,6 +111,7 @@ export * from './NotificationStatus';
|
|
|
106
111
|
export * from './NotificationType';
|
|
107
112
|
export * from './NotificationTypeResource';
|
|
108
113
|
export * from './NotificationTypeResourceArrayResponse';
|
|
114
|
+
export * from './PaginatedApiLogListResourceResponse';
|
|
109
115
|
export * from './PaginatedIncidentListResourceResponse';
|
|
110
116
|
export * from './PaginatedIncidentVideoListResourceResponse';
|
|
111
117
|
export * from './PaginatedLicenceCheckLogListResourceResponse';
|
|
@@ -212,3 +218,4 @@ export * from './VenuesSignedOnGuardsRequest';
|
|
|
212
218
|
export * from './VenuesUpdateRequest';
|
|
213
219
|
export * from './VerifyLicenceResource';
|
|
214
220
|
export * from './VerifyLicenceResourceArrayResponse';
|
|
221
|
+
export * from './WebhookEndpoint';
|
package/dist/models/index.js
CHANGED
|
@@ -18,6 +18,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AddressResource"), exports);
|
|
20
20
|
__exportStar(require("./AddressResourceArrayResponse"), exports);
|
|
21
|
+
__exportStar(require("./ApiLogListResource"), exports);
|
|
22
|
+
__exportStar(require("./ApiLogListResourceArrayResponse"), exports);
|
|
23
|
+
__exportStar(require("./ApiLogResource"), exports);
|
|
24
|
+
__exportStar(require("./ApiLogResourceArrayResponse"), exports);
|
|
25
|
+
__exportStar(require("./ApiLogsListRequest"), exports);
|
|
21
26
|
__exportStar(require("./AssetFileForUploadResource"), exports);
|
|
22
27
|
__exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
|
|
23
28
|
__exportStar(require("./AssetLiteResource"), exports);
|
|
@@ -124,6 +129,7 @@ __exportStar(require("./NotificationStatus"), exports);
|
|
|
124
129
|
__exportStar(require("./NotificationType"), exports);
|
|
125
130
|
__exportStar(require("./NotificationTypeResource"), exports);
|
|
126
131
|
__exportStar(require("./NotificationTypeResourceArrayResponse"), exports);
|
|
132
|
+
__exportStar(require("./PaginatedApiLogListResourceResponse"), exports);
|
|
127
133
|
__exportStar(require("./PaginatedIncidentListResourceResponse"), exports);
|
|
128
134
|
__exportStar(require("./PaginatedIncidentVideoListResourceResponse"), exports);
|
|
129
135
|
__exportStar(require("./PaginatedLicenceCheckLogListResourceResponse"), exports);
|
|
@@ -230,3 +236,4 @@ __exportStar(require("./VenuesSignedOnGuardsRequest"), exports);
|
|
|
230
236
|
__exportStar(require("./VenuesUpdateRequest"), exports);
|
|
231
237
|
__exportStar(require("./VerifyLicenceResource"), exports);
|
|
232
238
|
__exportStar(require("./VerifyLicenceResourceArrayResponse"), exports);
|
|
239
|
+
__exportStar(require("./WebhookEndpoint"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiLogResource,
|
|
19
|
+
ApiLogsListRequest,
|
|
18
20
|
AssetFileForUploadResource,
|
|
19
21
|
AssetsFileStoreRequest,
|
|
20
22
|
AuthChangePasswordRequest,
|
|
@@ -66,6 +68,7 @@ import type {
|
|
|
66
68
|
NotificationPreferencesBulkRequest,
|
|
67
69
|
NotificationPreferencesStoreRequest,
|
|
68
70
|
NotificationTypeResourceArrayResponse,
|
|
71
|
+
PaginatedApiLogListResourceResponse,
|
|
69
72
|
PaginatedIncidentListResourceResponse,
|
|
70
73
|
PaginatedIncidentVideoListResourceResponse,
|
|
71
74
|
PaginatedLicenceCheckLogListResourceResponse,
|
|
@@ -124,6 +127,10 @@ import type {
|
|
|
124
127
|
VerifyLicenceResource,
|
|
125
128
|
} from '../models/index';
|
|
126
129
|
import {
|
|
130
|
+
ApiLogResourceFromJSON,
|
|
131
|
+
ApiLogResourceToJSON,
|
|
132
|
+
ApiLogsListRequestFromJSON,
|
|
133
|
+
ApiLogsListRequestToJSON,
|
|
127
134
|
AssetFileForUploadResourceFromJSON,
|
|
128
135
|
AssetFileForUploadResourceToJSON,
|
|
129
136
|
AssetsFileStoreRequestFromJSON,
|
|
@@ -226,6 +233,8 @@ import {
|
|
|
226
233
|
NotificationPreferencesStoreRequestToJSON,
|
|
227
234
|
NotificationTypeResourceArrayResponseFromJSON,
|
|
228
235
|
NotificationTypeResourceArrayResponseToJSON,
|
|
236
|
+
PaginatedApiLogListResourceResponseFromJSON,
|
|
237
|
+
PaginatedApiLogListResourceResponseToJSON,
|
|
229
238
|
PaginatedIncidentListResourceResponseFromJSON,
|
|
230
239
|
PaginatedIncidentListResourceResponseToJSON,
|
|
231
240
|
PaginatedIncidentVideoListResourceResponseFromJSON,
|
|
@@ -340,6 +349,14 @@ import {
|
|
|
340
349
|
VerifyLicenceResourceToJSON,
|
|
341
350
|
} from '../models/index';
|
|
342
351
|
|
|
352
|
+
export interface ApiLogsListOperationRequest {
|
|
353
|
+
apiLogsListRequest?: ApiLogsListRequest;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export interface ApiLogsShowRequest {
|
|
357
|
+
apiLog: number;
|
|
358
|
+
}
|
|
359
|
+
|
|
343
360
|
export interface AssetsFileStoreOperationRequest {
|
|
344
361
|
assetsFileStoreRequest?: AssetsFileStoreRequest;
|
|
345
362
|
}
|
|
@@ -790,6 +807,91 @@ export interface VenuesUpdateOperationRequest {
|
|
|
790
807
|
*/
|
|
791
808
|
export class GeneralApi extends runtime.BaseAPI {
|
|
792
809
|
|
|
810
|
+
/**
|
|
811
|
+
* Auto-generated: apiLogs.list
|
|
812
|
+
*/
|
|
813
|
+
async apiLogsListRaw(requestParameters: ApiLogsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApiLogListResourceResponse>> {
|
|
814
|
+
const queryParameters: any = {};
|
|
815
|
+
|
|
816
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
817
|
+
|
|
818
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
819
|
+
|
|
820
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
821
|
+
const token = this.configuration.accessToken;
|
|
822
|
+
const tokenString = await token("bearerAuth", []);
|
|
823
|
+
|
|
824
|
+
if (tokenString) {
|
|
825
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
let urlPath = `/api/api-logs/list`;
|
|
830
|
+
|
|
831
|
+
const response = await this.request({
|
|
832
|
+
path: urlPath,
|
|
833
|
+
method: 'POST',
|
|
834
|
+
headers: headerParameters,
|
|
835
|
+
query: queryParameters,
|
|
836
|
+
body: ApiLogsListRequestToJSON(requestParameters['apiLogsListRequest']),
|
|
837
|
+
}, initOverrides);
|
|
838
|
+
|
|
839
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedApiLogListResourceResponseFromJSON(jsonValue));
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Auto-generated: apiLogs.list
|
|
844
|
+
*/
|
|
845
|
+
async apiLogsList(requestParameters: ApiLogsListOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedApiLogListResourceResponse> {
|
|
846
|
+
const response = await this.apiLogsListRaw(requestParameters, initOverrides);
|
|
847
|
+
return await response.value();
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Auto-generated: apiLogs.show
|
|
852
|
+
*/
|
|
853
|
+
async apiLogsShowRaw(requestParameters: ApiLogsShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiLogResource>> {
|
|
854
|
+
if (requestParameters['apiLog'] == null) {
|
|
855
|
+
throw new runtime.RequiredError(
|
|
856
|
+
'apiLog',
|
|
857
|
+
'Required parameter "apiLog" was null or undefined when calling apiLogsShow().'
|
|
858
|
+
);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
const queryParameters: any = {};
|
|
862
|
+
|
|
863
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
864
|
+
|
|
865
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
866
|
+
const token = this.configuration.accessToken;
|
|
867
|
+
const tokenString = await token("bearerAuth", []);
|
|
868
|
+
|
|
869
|
+
if (tokenString) {
|
|
870
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
let urlPath = `/api/api-logs/{apiLog}`;
|
|
875
|
+
urlPath = urlPath.replace(`{${"apiLog"}}`, encodeURIComponent(String(requestParameters['apiLog'])));
|
|
876
|
+
|
|
877
|
+
const response = await this.request({
|
|
878
|
+
path: urlPath,
|
|
879
|
+
method: 'GET',
|
|
880
|
+
headers: headerParameters,
|
|
881
|
+
query: queryParameters,
|
|
882
|
+
}, initOverrides);
|
|
883
|
+
|
|
884
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiLogResourceFromJSON(jsonValue));
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Auto-generated: apiLogs.show
|
|
889
|
+
*/
|
|
890
|
+
async apiLogsShow(requestParameters: ApiLogsShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiLogResource> {
|
|
891
|
+
const response = await this.apiLogsShowRaw(requestParameters, initOverrides);
|
|
892
|
+
return await response.value();
|
|
893
|
+
}
|
|
894
|
+
|
|
793
895
|
/**
|
|
794
896
|
* Auto-generated: assets.file.store
|
|
795
897
|
*/
|