@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,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 { ApiLogListResource } from './ApiLogListResource';
|
|
24
|
+
import {
|
|
25
|
+
ApiLogListResourceFromJSON,
|
|
26
|
+
ApiLogListResourceFromJSONTyped,
|
|
27
|
+
ApiLogListResourceToJSON,
|
|
28
|
+
ApiLogListResourceToJSONTyped,
|
|
29
|
+
} from './ApiLogListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedApiLogListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedApiLogListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ApiLogListResource>}
|
|
40
|
+
* @memberof PaginatedApiLogListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ApiLogListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedApiLogListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedApiLogListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedApiLogListResourceResponse(value: object): value is PaginatedApiLogListResourceResponse {
|
|
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 PaginatedApiLogListResourceResponseFromJSON(json: any): PaginatedApiLogListResourceResponse {
|
|
61
|
+
return PaginatedApiLogListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedApiLogListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedApiLogListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ApiLogListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedApiLogListResourceResponseToJSON(json: any): PaginatedApiLogListResourceResponse {
|
|
76
|
+
return PaginatedApiLogListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedApiLogListResourceResponseToJSONTyped(value?: PaginatedApiLogListResourceResponse | 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(ApiLogListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WebhookEndpoint = {
|
|
21
|
+
ApiWebhookGuardAttendance: '/api/webhook/guard-attendance',
|
|
22
|
+
ApiWebhookIncidents: '/api/webhook/incidents'
|
|
23
|
+
} as const;
|
|
24
|
+
export type WebhookEndpoint = typeof WebhookEndpoint[keyof typeof WebhookEndpoint];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfWebhookEndpoint(value: any): boolean {
|
|
28
|
+
for (const key in WebhookEndpoint) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(WebhookEndpoint, key)) {
|
|
30
|
+
if (WebhookEndpoint[key as keyof typeof WebhookEndpoint] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function WebhookEndpointFromJSON(json: any): WebhookEndpoint {
|
|
39
|
+
return WebhookEndpointFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function WebhookEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpoint {
|
|
43
|
+
return json as WebhookEndpoint;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function WebhookEndpointToJSON(value?: WebhookEndpoint | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function WebhookEndpointToJSONTyped(value: any, ignoreDiscriminator: boolean): WebhookEndpoint {
|
|
51
|
+
return value as WebhookEndpoint;
|
|
52
|
+
}
|
|
53
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AddressResource';
|
|
4
4
|
export * from './AddressResourceArrayResponse';
|
|
5
|
+
export * from './ApiLogListResource';
|
|
6
|
+
export * from './ApiLogListResourceArrayResponse';
|
|
7
|
+
export * from './ApiLogResource';
|
|
8
|
+
export * from './ApiLogResourceArrayResponse';
|
|
9
|
+
export * from './ApiLogsListRequest';
|
|
5
10
|
export * from './AssetFileForUploadResource';
|
|
6
11
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
7
12
|
export * from './AssetLiteResource';
|
|
@@ -108,6 +113,7 @@ export * from './NotificationStatus';
|
|
|
108
113
|
export * from './NotificationType';
|
|
109
114
|
export * from './NotificationTypeResource';
|
|
110
115
|
export * from './NotificationTypeResourceArrayResponse';
|
|
116
|
+
export * from './PaginatedApiLogListResourceResponse';
|
|
111
117
|
export * from './PaginatedIncidentListResourceResponse';
|
|
112
118
|
export * from './PaginatedIncidentVideoListResourceResponse';
|
|
113
119
|
export * from './PaginatedLicenceCheckLogListResourceResponse';
|
|
@@ -214,3 +220,4 @@ export * from './VenuesSignedOnGuardsRequest';
|
|
|
214
220
|
export * from './VenuesUpdateRequest';
|
|
215
221
|
export * from './VerifyLicenceResource';
|
|
216
222
|
export * from './VerifyLicenceResourceArrayResponse';
|
|
223
|
+
export * from './WebhookEndpoint';
|