@digital8/security-registers-backend-ts-sdk 0.0.711 → 0.0.712
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 +15 -0
- package/README.md +2 -2
- package/dist/models/AustralianState.d.ts +31 -0
- package/dist/models/AustralianState.js +57 -0
- package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +3 -11
- package/dist/models/AuthRegisterGuardRequestLicencesInner.js +3 -11
- package/dist/models/DevicesRegisterRequest.d.ts +3 -10
- package/dist/models/DevicesRegisterRequest.js +3 -10
- package/dist/models/ExportQueuedResource.d.ts +3 -12
- package/dist/models/ExportQueuedResource.js +3 -12
- package/dist/models/IncidentFieldSchemaResource.d.ts +6 -21
- package/dist/models/IncidentFieldSchemaResource.js +6 -20
- package/dist/models/IncidentSchemaType.d.ts +25 -0
- package/dist/models/IncidentSchemaType.js +51 -0
- package/dist/models/IncidentVideoResource.d.ts +3 -11
- package/dist/models/IncidentVideoResource.js +3 -11
- package/dist/models/IncidentVideoStatus.d.ts +26 -0
- package/dist/models/IncidentVideoStatus.js +52 -0
- package/dist/models/LicenceCheckLogResource.d.ts +3 -15
- package/dist/models/LicenceCheckLogResource.js +3 -15
- package/dist/models/LicenceCheckSource.d.ts +30 -0
- package/dist/models/LicenceCheckSource.js +56 -0
- package/dist/models/LicenceListResource.d.ts +3 -11
- package/dist/models/LicenceListResource.js +3 -11
- package/dist/models/LicenceLiteResource.d.ts +3 -11
- package/dist/models/LicenceLiteResource.js +3 -11
- package/dist/models/LicenceResource.d.ts +3 -11
- package/dist/models/LicenceResource.js +3 -11
- package/dist/models/LicenceState.d.ts +26 -0
- package/dist/models/LicenceState.js +52 -0
- package/dist/models/LicencesStoreRequest.d.ts +3 -11
- package/dist/models/LicencesStoreRequest.js +3 -11
- package/dist/models/LicencesUpdateRequest.d.ts +3 -11
- package/dist/models/LicencesUpdateRequest.js +3 -11
- package/dist/models/LicencesVerifyRequest.d.ts +3 -11
- package/dist/models/LicencesVerifyRequest.js +3 -11
- package/dist/models/LoginPlatform.d.ts +25 -0
- package/dist/models/LoginPlatform.js +51 -0
- package/dist/models/MobileAppConfigRequest.d.ts +3 -10
- package/dist/models/MobileAppConfigRequest.js +3 -10
- package/dist/models/MobileAppConfigResource.d.ts +3 -10
- package/dist/models/MobileAppConfigResource.js +3 -10
- package/dist/models/MobileDevicePlatform.d.ts +25 -0
- package/dist/models/MobileDevicePlatform.js +51 -0
- package/dist/models/MobileDeviceResource.d.ts +3 -10
- package/dist/models/MobileDeviceResource.js +3 -10
- package/dist/models/NotificationPreferenceResource.d.ts +3 -17
- package/dist/models/NotificationPreferenceResource.js +3 -17
- package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +3 -17
- package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +3 -17
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +3 -17
- package/dist/models/NotificationPreferencesStoreRequest.js +3 -17
- package/dist/models/NotificationStatus.d.ts +25 -0
- package/dist/models/NotificationStatus.js +51 -0
- package/dist/models/NotificationType.d.ts +32 -0
- package/dist/models/NotificationType.js +58 -0
- package/dist/models/PdfExportDownloadType.d.ts +26 -0
- package/dist/models/PdfExportDownloadType.js +52 -0
- package/dist/models/PdfExportKind.d.ts +28 -0
- package/dist/models/PdfExportKind.js +54 -0
- package/dist/models/PdfExportResource.d.ts +3 -12
- package/dist/models/PdfExportResource.js +3 -12
- package/dist/models/PdfExportStatus.d.ts +27 -0
- package/dist/models/PdfExportStatus.js +53 -0
- package/dist/models/RecordSource.d.ts +28 -0
- package/dist/models/RecordSource.js +54 -0
- package/dist/models/RegisterListResource.d.ts +3 -11
- package/dist/models/RegisterListResource.js +3 -11
- package/dist/models/RegisterResource.d.ts +3 -11
- package/dist/models/RegisterResource.js +3 -11
- package/dist/models/RegistersUpdateRequest.d.ts +3 -11
- package/dist/models/RegistersUpdateRequest.js +3 -11
- package/dist/models/RosterListResource.d.ts +3 -11
- package/dist/models/RosterListResource.js +3 -11
- package/dist/models/RosterResource.d.ts +3 -11
- package/dist/models/RosterResource.js +3 -11
- package/dist/models/RosterWithRegistersResource.d.ts +3 -11
- package/dist/models/RosterWithRegistersResource.js +3 -11
- package/dist/models/RostersUpdateRequest.d.ts +3 -11
- package/dist/models/RostersUpdateRequest.js +3 -11
- package/dist/models/SignOffStatus.d.ts +26 -0
- package/dist/models/SignOffStatus.js +52 -0
- package/dist/models/UserRole.d.ts +29 -0
- package/dist/models/UserRole.js +55 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
- package/src/models/AustralianState.ts +59 -0
- package/src/models/AuthRegisterGuardRequestLicencesInner.ts +11 -14
- package/src/models/DevicesRegisterRequest.ts +12 -13
- package/src/models/ExportQueuedResource.ts +12 -15
- package/src/models/IncidentFieldSchemaResource.ts +23 -27
- package/src/models/IncidentSchemaType.ts +53 -0
- package/src/models/IncidentVideoResource.ts +12 -14
- package/src/models/IncidentVideoStatus.ts +54 -0
- package/src/models/LicenceCheckLogResource.ts +12 -18
- package/src/models/LicenceCheckSource.ts +58 -0
- package/src/models/LicenceListResource.ts +11 -14
- package/src/models/LicenceLiteResource.ts +12 -14
- package/src/models/LicenceResource.ts +11 -14
- package/src/models/LicenceState.ts +54 -0
- package/src/models/LicencesStoreRequest.ts +11 -14
- package/src/models/LicencesUpdateRequest.ts +11 -14
- package/src/models/LicencesVerifyRequest.ts +12 -14
- package/src/models/LoginPlatform.ts +53 -0
- package/src/models/MobileAppConfigRequest.ts +12 -13
- package/src/models/MobileAppConfigResource.ts +12 -13
- package/src/models/MobileDevicePlatform.ts +53 -0
- package/src/models/MobileDeviceResource.ts +12 -13
- package/src/models/NotificationPreferenceResource.ts +11 -20
- package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +12 -20
- package/src/models/NotificationPreferencesStoreRequest.ts +12 -20
- package/src/models/NotificationStatus.ts +53 -0
- package/src/models/NotificationType.ts +60 -0
- package/src/models/PdfExportDownloadType.ts +54 -0
- package/src/models/PdfExportKind.ts +56 -0
- package/src/models/PdfExportResource.ts +12 -15
- package/src/models/PdfExportStatus.ts +55 -0
- package/src/models/RecordSource.ts +56 -0
- package/src/models/RegisterListResource.ts +11 -14
- package/src/models/RegisterResource.ts +11 -14
- package/src/models/RegistersUpdateRequest.ts +11 -14
- package/src/models/RosterListResource.ts +11 -14
- package/src/models/RosterResource.ts +11 -14
- package/src/models/RosterWithRegistersResource.ts +11 -14
- package/src/models/RostersUpdateRequest.ts +12 -14
- package/src/models/SignOffStatus.ts +54 -0
- package/src/models/UserRole.ts +57 -0
- package/src/models/index.ts +15 -0
|
@@ -13,20 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.IncidentVideoResourceStatusEnum = void 0;
|
|
17
16
|
exports.instanceOfIncidentVideoResource = instanceOfIncidentVideoResource;
|
|
18
17
|
exports.IncidentVideoResourceFromJSON = IncidentVideoResourceFromJSON;
|
|
19
18
|
exports.IncidentVideoResourceFromJSONTyped = IncidentVideoResourceFromJSONTyped;
|
|
20
19
|
exports.IncidentVideoResourceToJSON = IncidentVideoResourceToJSON;
|
|
21
20
|
exports.IncidentVideoResourceToJSONTyped = IncidentVideoResourceToJSONTyped;
|
|
22
|
-
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.IncidentVideoResourceStatusEnum = {
|
|
26
|
-
Processing: 'processing',
|
|
27
|
-
Ready: 'ready',
|
|
28
|
-
Failed: 'failed'
|
|
29
|
-
};
|
|
21
|
+
var IncidentVideoStatus_1 = require("./IncidentVideoStatus");
|
|
30
22
|
/**
|
|
31
23
|
* Check if a given object implements the IncidentVideoResource interface.
|
|
32
24
|
*/
|
|
@@ -50,7 +42,7 @@ function IncidentVideoResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
42
|
}
|
|
51
43
|
return {
|
|
52
44
|
'id': json['id'],
|
|
53
|
-
'status': json['status'],
|
|
45
|
+
'status': (0, IncidentVideoStatus_1.IncidentVideoStatusFromJSON)(json['status']),
|
|
54
46
|
'originalFilename': json['originalFilename'],
|
|
55
47
|
'mimeType': json['mimeType'],
|
|
56
48
|
'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
|
|
@@ -70,7 +62,7 @@ function IncidentVideoResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
62
|
}
|
|
71
63
|
return {
|
|
72
64
|
'id': value['id'],
|
|
73
|
-
'status': value['status'],
|
|
65
|
+
'status': (0, IncidentVideoStatus_1.IncidentVideoStatusToJSON)(value['status']),
|
|
74
66
|
'originalFilename': value['originalFilename'],
|
|
75
67
|
'mimeType': value['mimeType'],
|
|
76
68
|
'sizeBytes': value['sizeBytes'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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 IncidentVideoStatus: {
|
|
17
|
+
readonly Processing: "processing";
|
|
18
|
+
readonly Ready: "ready";
|
|
19
|
+
readonly Failed: "failed";
|
|
20
|
+
};
|
|
21
|
+
export type IncidentVideoStatus = typeof IncidentVideoStatus[keyof typeof IncidentVideoStatus];
|
|
22
|
+
export declare function instanceOfIncidentVideoStatus(value: any): boolean;
|
|
23
|
+
export declare function IncidentVideoStatusFromJSON(json: any): IncidentVideoStatus;
|
|
24
|
+
export declare function IncidentVideoStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoStatus;
|
|
25
|
+
export declare function IncidentVideoStatusToJSON(value?: IncidentVideoStatus | null): any;
|
|
26
|
+
export declare function IncidentVideoStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): IncidentVideoStatus;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.IncidentVideoStatus = void 0;
|
|
17
|
+
exports.instanceOfIncidentVideoStatus = instanceOfIncidentVideoStatus;
|
|
18
|
+
exports.IncidentVideoStatusFromJSON = IncidentVideoStatusFromJSON;
|
|
19
|
+
exports.IncidentVideoStatusFromJSONTyped = IncidentVideoStatusFromJSONTyped;
|
|
20
|
+
exports.IncidentVideoStatusToJSON = IncidentVideoStatusToJSON;
|
|
21
|
+
exports.IncidentVideoStatusToJSONTyped = IncidentVideoStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.IncidentVideoStatus = {
|
|
27
|
+
Processing: 'processing',
|
|
28
|
+
Ready: 'ready',
|
|
29
|
+
Failed: 'failed'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfIncidentVideoStatus(value) {
|
|
32
|
+
for (var key in exports.IncidentVideoStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.IncidentVideoStatus, key)) {
|
|
34
|
+
if (exports.IncidentVideoStatus[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function IncidentVideoStatusFromJSON(json) {
|
|
42
|
+
return IncidentVideoStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function IncidentVideoStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function IncidentVideoStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function IncidentVideoStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenceCheckSource } from './LicenceCheckSource';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -59,10 +60,10 @@ export interface LicenceCheckLogResource {
|
|
|
59
60
|
isCrowdController: boolean;
|
|
60
61
|
/**
|
|
61
62
|
*
|
|
62
|
-
* @type {
|
|
63
|
+
* @type {LicenceCheckSource}
|
|
63
64
|
* @memberof LicenceCheckLogResource
|
|
64
65
|
*/
|
|
65
|
-
calledFrom:
|
|
66
|
+
calledFrom: LicenceCheckSource;
|
|
66
67
|
/**
|
|
67
68
|
*
|
|
68
69
|
* @type {string}
|
|
@@ -76,19 +77,6 @@ export interface LicenceCheckLogResource {
|
|
|
76
77
|
*/
|
|
77
78
|
response?: string | null;
|
|
78
79
|
}
|
|
79
|
-
/**
|
|
80
|
-
* @export
|
|
81
|
-
*/
|
|
82
|
-
export declare const LicenceCheckLogResourceCalledFromEnum: {
|
|
83
|
-
readonly Cron: "cron";
|
|
84
|
-
readonly SignOn: "sign_on";
|
|
85
|
-
readonly ManualCreate: "manual_create";
|
|
86
|
-
readonly ManualUpdate: "manual_update";
|
|
87
|
-
readonly VerifyEndpoint: "verify_endpoint";
|
|
88
|
-
readonly Signup: "signup";
|
|
89
|
-
readonly Webhook: "webhook";
|
|
90
|
-
};
|
|
91
|
-
export type LicenceCheckLogResourceCalledFromEnum = typeof LicenceCheckLogResourceCalledFromEnum[keyof typeof LicenceCheckLogResourceCalledFromEnum];
|
|
92
80
|
/**
|
|
93
81
|
* Check if a given object implements the LicenceCheckLogResource interface.
|
|
94
82
|
*/
|
|
@@ -13,24 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LicenceCheckLogResourceCalledFromEnum = void 0;
|
|
17
16
|
exports.instanceOfLicenceCheckLogResource = instanceOfLicenceCheckLogResource;
|
|
18
17
|
exports.LicenceCheckLogResourceFromJSON = LicenceCheckLogResourceFromJSON;
|
|
19
18
|
exports.LicenceCheckLogResourceFromJSONTyped = LicenceCheckLogResourceFromJSONTyped;
|
|
20
19
|
exports.LicenceCheckLogResourceToJSON = LicenceCheckLogResourceToJSON;
|
|
21
20
|
exports.LicenceCheckLogResourceToJSONTyped = LicenceCheckLogResourceToJSONTyped;
|
|
22
|
-
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LicenceCheckLogResourceCalledFromEnum = {
|
|
26
|
-
Cron: 'cron',
|
|
27
|
-
SignOn: 'sign_on',
|
|
28
|
-
ManualCreate: 'manual_create',
|
|
29
|
-
ManualUpdate: 'manual_update',
|
|
30
|
-
VerifyEndpoint: 'verify_endpoint',
|
|
31
|
-
Signup: 'signup',
|
|
32
|
-
Webhook: 'webhook'
|
|
33
|
-
};
|
|
21
|
+
var LicenceCheckSource_1 = require("./LicenceCheckSource");
|
|
34
22
|
/**
|
|
35
23
|
* Check if a given object implements the LicenceCheckLogResource interface.
|
|
36
24
|
*/
|
|
@@ -66,7 +54,7 @@ function LicenceCheckLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
54
|
'result': json['result'],
|
|
67
55
|
'isExpired': json['isExpired'],
|
|
68
56
|
'isCrowdController': json['isCrowdController'],
|
|
69
|
-
'calledFrom': json['calledFrom'],
|
|
57
|
+
'calledFrom': (0, LicenceCheckSource_1.LicenceCheckSourceFromJSON)(json['calledFrom']),
|
|
70
58
|
'request': json['request'],
|
|
71
59
|
'response': json['response'] == null ? undefined : json['response'],
|
|
72
60
|
};
|
|
@@ -88,7 +76,7 @@ function LicenceCheckLogResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
76
|
'result': value['result'],
|
|
89
77
|
'isExpired': value['isExpired'],
|
|
90
78
|
'isCrowdController': value['isCrowdController'],
|
|
91
|
-
'calledFrom': value['calledFrom'],
|
|
79
|
+
'calledFrom': (0, LicenceCheckSource_1.LicenceCheckSourceToJSON)(value['calledFrom']),
|
|
92
80
|
'request': value['request'],
|
|
93
81
|
'response': value['response'],
|
|
94
82
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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 LicenceCheckSource: {
|
|
17
|
+
readonly Cron: "cron";
|
|
18
|
+
readonly SignOn: "sign_on";
|
|
19
|
+
readonly ManualCreate: "manual_create";
|
|
20
|
+
readonly ManualUpdate: "manual_update";
|
|
21
|
+
readonly VerifyEndpoint: "verify_endpoint";
|
|
22
|
+
readonly Signup: "signup";
|
|
23
|
+
readonly Webhook: "webhook";
|
|
24
|
+
};
|
|
25
|
+
export type LicenceCheckSource = typeof LicenceCheckSource[keyof typeof LicenceCheckSource];
|
|
26
|
+
export declare function instanceOfLicenceCheckSource(value: any): boolean;
|
|
27
|
+
export declare function LicenceCheckSourceFromJSON(json: any): LicenceCheckSource;
|
|
28
|
+
export declare function LicenceCheckSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceCheckSource;
|
|
29
|
+
export declare function LicenceCheckSourceToJSON(value?: LicenceCheckSource | null): any;
|
|
30
|
+
export declare function LicenceCheckSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): LicenceCheckSource;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.LicenceCheckSource = void 0;
|
|
17
|
+
exports.instanceOfLicenceCheckSource = instanceOfLicenceCheckSource;
|
|
18
|
+
exports.LicenceCheckSourceFromJSON = LicenceCheckSourceFromJSON;
|
|
19
|
+
exports.LicenceCheckSourceFromJSONTyped = LicenceCheckSourceFromJSONTyped;
|
|
20
|
+
exports.LicenceCheckSourceToJSON = LicenceCheckSourceToJSON;
|
|
21
|
+
exports.LicenceCheckSourceToJSONTyped = LicenceCheckSourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LicenceCheckSource = {
|
|
27
|
+
Cron: 'cron',
|
|
28
|
+
SignOn: 'sign_on',
|
|
29
|
+
ManualCreate: 'manual_create',
|
|
30
|
+
ManualUpdate: 'manual_update',
|
|
31
|
+
VerifyEndpoint: 'verify_endpoint',
|
|
32
|
+
Signup: 'signup',
|
|
33
|
+
Webhook: 'webhook'
|
|
34
|
+
};
|
|
35
|
+
function instanceOfLicenceCheckSource(value) {
|
|
36
|
+
for (var key in exports.LicenceCheckSource) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(exports.LicenceCheckSource, key)) {
|
|
38
|
+
if (exports.LicenceCheckSource[key] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
function LicenceCheckSourceFromJSON(json) {
|
|
46
|
+
return LicenceCheckSourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function LicenceCheckSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
function LicenceCheckSourceToJSON(value) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
function LicenceCheckSourceToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenceState } from './LicenceState';
|
|
12
13
|
import type { UserRelationResource } from './UserRelationResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -30,10 +31,10 @@ export interface LicenceListResource {
|
|
|
30
31
|
user: UserRelationResource | null;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {LicenceState}
|
|
34
35
|
* @memberof LicenceListResource
|
|
35
36
|
*/
|
|
36
|
-
state:
|
|
37
|
+
state: LicenceState;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
40
|
* @type {string}
|
|
@@ -77,15 +78,6 @@ export interface LicenceListResource {
|
|
|
77
78
|
*/
|
|
78
79
|
createdAt?: Date | null;
|
|
79
80
|
}
|
|
80
|
-
/**
|
|
81
|
-
* @export
|
|
82
|
-
*/
|
|
83
|
-
export declare const LicenceListResourceStateEnum: {
|
|
84
|
-
readonly Qld: "QLD";
|
|
85
|
-
readonly Nsw: "NSW";
|
|
86
|
-
readonly Vic: "VIC";
|
|
87
|
-
};
|
|
88
|
-
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
89
81
|
/**
|
|
90
82
|
* Check if a given object implements the LicenceListResource interface.
|
|
91
83
|
*/
|
|
@@ -13,21 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LicenceListResourceStateEnum = void 0;
|
|
17
16
|
exports.instanceOfLicenceListResource = instanceOfLicenceListResource;
|
|
18
17
|
exports.LicenceListResourceFromJSON = LicenceListResourceFromJSON;
|
|
19
18
|
exports.LicenceListResourceFromJSONTyped = LicenceListResourceFromJSONTyped;
|
|
20
19
|
exports.LicenceListResourceToJSON = LicenceListResourceToJSON;
|
|
21
20
|
exports.LicenceListResourceToJSONTyped = LicenceListResourceToJSONTyped;
|
|
21
|
+
var LicenceState_1 = require("./LicenceState");
|
|
22
22
|
var UserRelationResource_1 = require("./UserRelationResource");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.LicenceListResourceStateEnum = {
|
|
27
|
-
Qld: 'QLD',
|
|
28
|
-
Nsw: 'NSW',
|
|
29
|
-
Vic: 'VIC'
|
|
30
|
-
};
|
|
31
23
|
/**
|
|
32
24
|
* Check if a given object implements the LicenceListResource interface.
|
|
33
25
|
*/
|
|
@@ -60,7 +52,7 @@ function LicenceListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
52
|
return {
|
|
61
53
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
54
|
'user': (0, UserRelationResource_1.UserRelationResourceFromJSON)(json['user']),
|
|
63
|
-
'state': json['state'],
|
|
55
|
+
'state': (0, LicenceState_1.LicenceStateFromJSON)(json['state']),
|
|
64
56
|
'licenceNumber': json['licenceNumber'],
|
|
65
57
|
'firstName': json['firstName'],
|
|
66
58
|
'lastName': json['lastName'],
|
|
@@ -82,7 +74,7 @@ function LicenceListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
74
|
return {
|
|
83
75
|
'id': value['id'],
|
|
84
76
|
'user': (0, UserRelationResource_1.UserRelationResourceToJSON)(value['user']),
|
|
85
|
-
'state': value['state'],
|
|
77
|
+
'state': (0, LicenceState_1.LicenceStateToJSON)(value['state']),
|
|
86
78
|
'licenceNumber': value['licenceNumber'],
|
|
87
79
|
'firstName': value['firstName'],
|
|
88
80
|
'lastName': value['lastName'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenceState } from './LicenceState';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -29,20 +30,11 @@ export interface LicenceLiteResource {
|
|
|
29
30
|
licenceNumber: string;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {LicenceState}
|
|
33
34
|
* @memberof LicenceLiteResource
|
|
34
35
|
*/
|
|
35
|
-
state:
|
|
36
|
+
state: LicenceState;
|
|
36
37
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const LicenceLiteResourceStateEnum: {
|
|
41
|
-
readonly Qld: "QLD";
|
|
42
|
-
readonly Nsw: "NSW";
|
|
43
|
-
readonly Vic: "VIC";
|
|
44
|
-
};
|
|
45
|
-
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
46
38
|
/**
|
|
47
39
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
48
40
|
*/
|
|
@@ -13,20 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LicenceLiteResourceStateEnum = void 0;
|
|
17
16
|
exports.instanceOfLicenceLiteResource = instanceOfLicenceLiteResource;
|
|
18
17
|
exports.LicenceLiteResourceFromJSON = LicenceLiteResourceFromJSON;
|
|
19
18
|
exports.LicenceLiteResourceFromJSONTyped = LicenceLiteResourceFromJSONTyped;
|
|
20
19
|
exports.LicenceLiteResourceToJSON = LicenceLiteResourceToJSON;
|
|
21
20
|
exports.LicenceLiteResourceToJSONTyped = LicenceLiteResourceToJSONTyped;
|
|
22
|
-
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LicenceLiteResourceStateEnum = {
|
|
26
|
-
Qld: 'QLD',
|
|
27
|
-
Nsw: 'NSW',
|
|
28
|
-
Vic: 'VIC'
|
|
29
|
-
};
|
|
21
|
+
var LicenceState_1 = require("./LicenceState");
|
|
30
22
|
/**
|
|
31
23
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
32
24
|
*/
|
|
@@ -47,7 +39,7 @@ function LicenceLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
39
|
return {
|
|
48
40
|
'id': json['id'] == null ? undefined : json['id'],
|
|
49
41
|
'licenceNumber': json['licenceNumber'],
|
|
50
|
-
'state': json['state'],
|
|
42
|
+
'state': (0, LicenceState_1.LicenceStateFromJSON)(json['state']),
|
|
51
43
|
};
|
|
52
44
|
}
|
|
53
45
|
function LicenceLiteResourceToJSON(json) {
|
|
@@ -61,6 +53,6 @@ function LicenceLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
61
53
|
return {
|
|
62
54
|
'id': value['id'],
|
|
63
55
|
'licenceNumber': value['licenceNumber'],
|
|
64
|
-
'state': value['state'],
|
|
56
|
+
'state': (0, LicenceState_1.LicenceStateToJSON)(value['state']),
|
|
65
57
|
};
|
|
66
58
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenceState } from './LicenceState';
|
|
12
13
|
import type { UserRelationResource } from './UserRelationResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -30,10 +31,10 @@ export interface LicenceResource {
|
|
|
30
31
|
user: UserRelationResource | null;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {LicenceState}
|
|
34
35
|
* @memberof LicenceResource
|
|
35
36
|
*/
|
|
36
|
-
state:
|
|
37
|
+
state: LicenceState;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
40
|
* @type {string}
|
|
@@ -101,15 +102,6 @@ export interface LicenceResource {
|
|
|
101
102
|
*/
|
|
102
103
|
updatedAt?: Date | null;
|
|
103
104
|
}
|
|
104
|
-
/**
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
|
-
export declare const LicenceResourceStateEnum: {
|
|
108
|
-
readonly Qld: "QLD";
|
|
109
|
-
readonly Nsw: "NSW";
|
|
110
|
-
readonly Vic: "VIC";
|
|
111
|
-
};
|
|
112
|
-
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
113
105
|
/**
|
|
114
106
|
* Check if a given object implements the LicenceResource interface.
|
|
115
107
|
*/
|
|
@@ -13,21 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LicenceResourceStateEnum = void 0;
|
|
17
16
|
exports.instanceOfLicenceResource = instanceOfLicenceResource;
|
|
18
17
|
exports.LicenceResourceFromJSON = LicenceResourceFromJSON;
|
|
19
18
|
exports.LicenceResourceFromJSONTyped = LicenceResourceFromJSONTyped;
|
|
20
19
|
exports.LicenceResourceToJSON = LicenceResourceToJSON;
|
|
21
20
|
exports.LicenceResourceToJSONTyped = LicenceResourceToJSONTyped;
|
|
21
|
+
var LicenceState_1 = require("./LicenceState");
|
|
22
22
|
var UserRelationResource_1 = require("./UserRelationResource");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.LicenceResourceStateEnum = {
|
|
27
|
-
Qld: 'QLD',
|
|
28
|
-
Nsw: 'NSW',
|
|
29
|
-
Vic: 'VIC'
|
|
30
|
-
};
|
|
31
23
|
/**
|
|
32
24
|
* Check if a given object implements the LicenceResource interface.
|
|
33
25
|
*/
|
|
@@ -66,7 +58,7 @@ function LicenceResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
58
|
return {
|
|
67
59
|
'id': json['id'] == null ? undefined : json['id'],
|
|
68
60
|
'user': (0, UserRelationResource_1.UserRelationResourceFromJSON)(json['user']),
|
|
69
|
-
'state': json['state'],
|
|
61
|
+
'state': (0, LicenceState_1.LicenceStateFromJSON)(json['state']),
|
|
70
62
|
'licenceNumber': json['licenceNumber'],
|
|
71
63
|
'firstName': json['firstName'],
|
|
72
64
|
'lastName': json['lastName'],
|
|
@@ -92,7 +84,7 @@ function LicenceResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
84
|
return {
|
|
93
85
|
'id': value['id'],
|
|
94
86
|
'user': (0, UserRelationResource_1.UserRelationResourceToJSON)(value['user']),
|
|
95
|
-
'state': value['state'],
|
|
87
|
+
'state': (0, LicenceState_1.LicenceStateToJSON)(value['state']),
|
|
96
88
|
'licenceNumber': value['licenceNumber'],
|
|
97
89
|
'firstName': value['firstName'],
|
|
98
90
|
'lastName': value['lastName'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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 LicenceState: {
|
|
17
|
+
readonly Qld: "QLD";
|
|
18
|
+
readonly Nsw: "NSW";
|
|
19
|
+
readonly Vic: "VIC";
|
|
20
|
+
};
|
|
21
|
+
export type LicenceState = typeof LicenceState[keyof typeof LicenceState];
|
|
22
|
+
export declare function instanceOfLicenceState(value: any): boolean;
|
|
23
|
+
export declare function LicenceStateFromJSON(json: any): LicenceState;
|
|
24
|
+
export declare function LicenceStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceState;
|
|
25
|
+
export declare function LicenceStateToJSON(value?: LicenceState | null): any;
|
|
26
|
+
export declare function LicenceStateToJSONTyped(value: any, ignoreDiscriminator: boolean): LicenceState;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.LicenceState = void 0;
|
|
17
|
+
exports.instanceOfLicenceState = instanceOfLicenceState;
|
|
18
|
+
exports.LicenceStateFromJSON = LicenceStateFromJSON;
|
|
19
|
+
exports.LicenceStateFromJSONTyped = LicenceStateFromJSONTyped;
|
|
20
|
+
exports.LicenceStateToJSON = LicenceStateToJSON;
|
|
21
|
+
exports.LicenceStateToJSONTyped = LicenceStateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LicenceState = {
|
|
27
|
+
Qld: 'QLD',
|
|
28
|
+
Nsw: 'NSW',
|
|
29
|
+
Vic: 'VIC'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfLicenceState(value) {
|
|
32
|
+
for (var key in exports.LicenceState) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.LicenceState, key)) {
|
|
34
|
+
if (exports.LicenceState[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function LicenceStateFromJSON(json) {
|
|
42
|
+
return LicenceStateFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LicenceStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function LicenceStateToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function LicenceStateToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
13
13
|
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
14
|
+
import type { LicenceState } from './LicenceState';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -25,10 +26,10 @@ export interface LicencesStoreRequest {
|
|
|
25
26
|
userId: number;
|
|
26
27
|
/**
|
|
27
28
|
*
|
|
28
|
-
* @type {
|
|
29
|
+
* @type {LicenceState}
|
|
29
30
|
* @memberof LicencesStoreRequest
|
|
30
31
|
*/
|
|
31
|
-
state:
|
|
32
|
+
state: LicenceState;
|
|
32
33
|
/**
|
|
33
34
|
*
|
|
34
35
|
* @type {string}
|
|
@@ -78,15 +79,6 @@ export interface LicencesStoreRequest {
|
|
|
78
79
|
*/
|
|
79
80
|
firstAidAsset?: LicencesStoreRequestBackAsset | null;
|
|
80
81
|
}
|
|
81
|
-
/**
|
|
82
|
-
* @export
|
|
83
|
-
*/
|
|
84
|
-
export declare const LicencesStoreRequestStateEnum: {
|
|
85
|
-
readonly Qld: "QLD";
|
|
86
|
-
readonly Nsw: "NSW";
|
|
87
|
-
readonly Vic: "VIC";
|
|
88
|
-
};
|
|
89
|
-
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
90
82
|
/**
|
|
91
83
|
* Check if a given object implements the LicencesStoreRequest interface.
|
|
92
84
|
*/
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LicencesStoreRequestStateEnum = void 0;
|
|
17
16
|
exports.instanceOfLicencesStoreRequest = instanceOfLicencesStoreRequest;
|
|
18
17
|
exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
|
|
19
18
|
exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
|
|
@@ -21,14 +20,7 @@ exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
|
|
|
21
20
|
exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
|
|
22
21
|
var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
23
22
|
var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
|
|
24
|
-
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
exports.LicencesStoreRequestStateEnum = {
|
|
28
|
-
Qld: 'QLD',
|
|
29
|
-
Nsw: 'NSW',
|
|
30
|
-
Vic: 'VIC'
|
|
31
|
-
};
|
|
23
|
+
var LicenceState_1 = require("./LicenceState");
|
|
32
24
|
/**
|
|
33
25
|
* Check if a given object implements the LicencesStoreRequest interface.
|
|
34
26
|
*/
|
|
@@ -58,7 +50,7 @@ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
50
|
}
|
|
59
51
|
return {
|
|
60
52
|
'userId': json['user_id'],
|
|
61
|
-
'state': json['state'],
|
|
53
|
+
'state': (0, LicenceState_1.LicenceStateFromJSON)(json['state']),
|
|
62
54
|
'licenceNumber': json['licence_number'],
|
|
63
55
|
'firstName': json['first_name'],
|
|
64
56
|
'lastName': json['last_name'],
|
|
@@ -79,7 +71,7 @@ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
71
|
}
|
|
80
72
|
return {
|
|
81
73
|
'user_id': value['userId'],
|
|
82
|
-
'state': value['state'],
|
|
74
|
+
'state': (0, LicenceState_1.LicenceStateToJSON)(value['state']),
|
|
83
75
|
'licence_number': value['licenceNumber'],
|
|
84
76
|
'first_name': value['firstName'],
|
|
85
77
|
'last_name': value['lastName'],
|