@digital8/security-registers-backend-ts-sdk 0.0.318 → 0.0.319
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 +3 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +20 -1
- package/dist/apis/GeneralApi.js +107 -0
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +51 -0
- package/dist/models/LicenceVerificationFallbackSettingResource.js +63 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -0
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +44 -0
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +53 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +87 -0
- package/src/models/AssetResource.ts +3 -2
- package/src/models/LicenceVerificationFallbackSettingResource.ts +100 -0
- package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
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.instanceOfSettingsLicenceVerificationFallbackUpdateRequest = instanceOfSettingsLicenceVerificationFallbackUpdateRequest;
|
|
17
|
+
exports.SettingsLicenceVerificationFallbackUpdateRequestFromJSON = SettingsLicenceVerificationFallbackUpdateRequestFromJSON;
|
|
18
|
+
exports.SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped = SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped;
|
|
19
|
+
exports.SettingsLicenceVerificationFallbackUpdateRequestToJSON = SettingsLicenceVerificationFallbackUpdateRequestToJSON;
|
|
20
|
+
exports.SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped = SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SettingsLicenceVerificationFallbackUpdateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSettingsLicenceVerificationFallbackUpdateRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SettingsLicenceVerificationFallbackUpdateRequestFromJSON(json) {
|
|
28
|
+
return SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'qld': json['qld'] == null ? undefined : json['qld'],
|
|
36
|
+
'nsw': json['nsw'] == null ? undefined : json['nsw'],
|
|
37
|
+
'vic': json['vic'] == null ? undefined : json['vic'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SettingsLicenceVerificationFallbackUpdateRequestToJSON(json) {
|
|
41
|
+
return SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'qld': value['qld'],
|
|
50
|
+
'nsw': value['nsw'],
|
|
51
|
+
'vic': value['vic'],
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export * from './LicenceLiteResource';
|
|
|
56
56
|
export * from './LicenceLiteResourceArrayResponse';
|
|
57
57
|
export * from './LicenceResource';
|
|
58
58
|
export * from './LicenceResourceArrayResponse';
|
|
59
|
+
export * from './LicenceVerificationFallbackSettingResource';
|
|
60
|
+
export * from './LicenceVerificationFallbackSettingResourceArrayResponse';
|
|
59
61
|
export * from './LicencesListAllRequest';
|
|
60
62
|
export * from './LicencesListRequest';
|
|
61
63
|
export * from './LicencesStoreRequest';
|
|
@@ -128,6 +130,7 @@ export * from './SecurityCompanyLiteResourceArrayResponse';
|
|
|
128
130
|
export * from './SecurityCompanyResource';
|
|
129
131
|
export * from './SecurityCompanyResourceArrayResponse';
|
|
130
132
|
export * from './SendForgotPasswordLinkAuthRequest';
|
|
133
|
+
export * from './SettingsLicenceVerificationFallbackUpdateRequest';
|
|
131
134
|
export * from './StoreAssetFileRequest';
|
|
132
135
|
export * from './StoreUserRequest';
|
|
133
136
|
export * from './UpdateUserRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -74,6 +74,8 @@ __exportStar(require("./LicenceLiteResource"), exports);
|
|
|
74
74
|
__exportStar(require("./LicenceLiteResourceArrayResponse"), exports);
|
|
75
75
|
__exportStar(require("./LicenceResource"), exports);
|
|
76
76
|
__exportStar(require("./LicenceResourceArrayResponse"), exports);
|
|
77
|
+
__exportStar(require("./LicenceVerificationFallbackSettingResource"), exports);
|
|
78
|
+
__exportStar(require("./LicenceVerificationFallbackSettingResourceArrayResponse"), exports);
|
|
77
79
|
__exportStar(require("./LicencesListAllRequest"), exports);
|
|
78
80
|
__exportStar(require("./LicencesListRequest"), exports);
|
|
79
81
|
__exportStar(require("./LicencesStoreRequest"), exports);
|
|
@@ -146,6 +148,7 @@ __exportStar(require("./SecurityCompanyLiteResourceArrayResponse"), exports);
|
|
|
146
148
|
__exportStar(require("./SecurityCompanyResource"), exports);
|
|
147
149
|
__exportStar(require("./SecurityCompanyResourceArrayResponse"), exports);
|
|
148
150
|
__exportStar(require("./SendForgotPasswordLinkAuthRequest"), exports);
|
|
151
|
+
__exportStar(require("./SettingsLicenceVerificationFallbackUpdateRequest"), exports);
|
|
149
152
|
__exportStar(require("./StoreAssetFileRequest"), exports);
|
|
150
153
|
__exportStar(require("./StoreUserRequest"), exports);
|
|
151
154
|
__exportStar(require("./UpdateUserRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -40,6 +40,7 @@ import type {
|
|
|
40
40
|
IndexUserRequest,
|
|
41
41
|
LicenceLiteResourceArrayResponse,
|
|
42
42
|
LicenceResource,
|
|
43
|
+
LicenceVerificationFallbackSettingResourceArrayResponse,
|
|
43
44
|
LicencesListAllRequest,
|
|
44
45
|
LicencesListRequest,
|
|
45
46
|
LicencesStoreRequest,
|
|
@@ -86,6 +87,7 @@ import type {
|
|
|
86
87
|
SecurityCompanyLiteResourceArrayResponse,
|
|
87
88
|
SecurityCompanyResource,
|
|
88
89
|
SendForgotPasswordLinkAuthRequest,
|
|
90
|
+
SettingsLicenceVerificationFallbackUpdateRequest,
|
|
89
91
|
StoreAssetFileRequest,
|
|
90
92
|
StoreUserRequest,
|
|
91
93
|
UpdateUserRequest,
|
|
@@ -159,6 +161,8 @@ import {
|
|
|
159
161
|
LicenceLiteResourceArrayResponseToJSON,
|
|
160
162
|
LicenceResourceFromJSON,
|
|
161
163
|
LicenceResourceToJSON,
|
|
164
|
+
LicenceVerificationFallbackSettingResourceArrayResponseFromJSON,
|
|
165
|
+
LicenceVerificationFallbackSettingResourceArrayResponseToJSON,
|
|
162
166
|
LicencesListAllRequestFromJSON,
|
|
163
167
|
LicencesListAllRequestToJSON,
|
|
164
168
|
LicencesListRequestFromJSON,
|
|
@@ -251,6 +255,8 @@ import {
|
|
|
251
255
|
SecurityCompanyResourceToJSON,
|
|
252
256
|
SendForgotPasswordLinkAuthRequestFromJSON,
|
|
253
257
|
SendForgotPasswordLinkAuthRequestToJSON,
|
|
258
|
+
SettingsLicenceVerificationFallbackUpdateRequestFromJSON,
|
|
259
|
+
SettingsLicenceVerificationFallbackUpdateRequestToJSON,
|
|
254
260
|
StoreAssetFileRequestFromJSON,
|
|
255
261
|
StoreAssetFileRequestToJSON,
|
|
256
262
|
StoreUserRequestFromJSON,
|
|
@@ -557,6 +563,10 @@ export interface SendForgotPasswordLinkAuthOperationRequest {
|
|
|
557
563
|
sendForgotPasswordLinkAuthRequest?: SendForgotPasswordLinkAuthRequest;
|
|
558
564
|
}
|
|
559
565
|
|
|
566
|
+
export interface SettingsLicenceVerificationFallbackUpdateOperationRequest {
|
|
567
|
+
settingsLicenceVerificationFallbackUpdateRequest?: SettingsLicenceVerificationFallbackUpdateRequest;
|
|
568
|
+
}
|
|
569
|
+
|
|
560
570
|
export interface StoreAssetFileOperationRequest {
|
|
561
571
|
storeAssetFileRequest?: StoreAssetFileRequest;
|
|
562
572
|
}
|
|
@@ -3541,6 +3551,83 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
3541
3551
|
return await response.value();
|
|
3542
3552
|
}
|
|
3543
3553
|
|
|
3554
|
+
/**
|
|
3555
|
+
* Auto-generated: settings.licenceVerificationFallback.index
|
|
3556
|
+
*/
|
|
3557
|
+
async settingsLicenceVerificationFallbackIndexRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LicenceVerificationFallbackSettingResourceArrayResponse>> {
|
|
3558
|
+
const queryParameters: any = {};
|
|
3559
|
+
|
|
3560
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3561
|
+
|
|
3562
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3563
|
+
const token = this.configuration.accessToken;
|
|
3564
|
+
const tokenString = await token("bearerAuth", []);
|
|
3565
|
+
|
|
3566
|
+
if (tokenString) {
|
|
3567
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
let urlPath = `/api/settings/licence-verification-fallback`;
|
|
3572
|
+
|
|
3573
|
+
const response = await this.request({
|
|
3574
|
+
path: urlPath,
|
|
3575
|
+
method: 'GET',
|
|
3576
|
+
headers: headerParameters,
|
|
3577
|
+
query: queryParameters,
|
|
3578
|
+
}, initOverrides);
|
|
3579
|
+
|
|
3580
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(jsonValue));
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Auto-generated: settings.licenceVerificationFallback.index
|
|
3585
|
+
*/
|
|
3586
|
+
async settingsLicenceVerificationFallbackIndex(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenceVerificationFallbackSettingResourceArrayResponse> {
|
|
3587
|
+
const response = await this.settingsLicenceVerificationFallbackIndexRaw(initOverrides);
|
|
3588
|
+
return await response.value();
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
/**
|
|
3592
|
+
* Auto-generated: settings.licenceVerificationFallback.update
|
|
3593
|
+
*/
|
|
3594
|
+
async settingsLicenceVerificationFallbackUpdateRaw(requestParameters: SettingsLicenceVerificationFallbackUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LicenceVerificationFallbackSettingResourceArrayResponse>> {
|
|
3595
|
+
const queryParameters: any = {};
|
|
3596
|
+
|
|
3597
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3598
|
+
|
|
3599
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3600
|
+
|
|
3601
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3602
|
+
const token = this.configuration.accessToken;
|
|
3603
|
+
const tokenString = await token("bearerAuth", []);
|
|
3604
|
+
|
|
3605
|
+
if (tokenString) {
|
|
3606
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
let urlPath = `/api/settings/licence-verification-fallback`;
|
|
3611
|
+
|
|
3612
|
+
const response = await this.request({
|
|
3613
|
+
path: urlPath,
|
|
3614
|
+
method: 'PUT',
|
|
3615
|
+
headers: headerParameters,
|
|
3616
|
+
query: queryParameters,
|
|
3617
|
+
body: SettingsLicenceVerificationFallbackUpdateRequestToJSON(requestParameters['settingsLicenceVerificationFallbackUpdateRequest']),
|
|
3618
|
+
}, initOverrides);
|
|
3619
|
+
|
|
3620
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(jsonValue));
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* Auto-generated: settings.licenceVerificationFallback.update
|
|
3625
|
+
*/
|
|
3626
|
+
async settingsLicenceVerificationFallbackUpdate(requestParameters: SettingsLicenceVerificationFallbackUpdateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenceVerificationFallbackSettingResourceArrayResponse> {
|
|
3627
|
+
const response = await this.settingsLicenceVerificationFallbackUpdateRaw(requestParameters, initOverrides);
|
|
3628
|
+
return await response.value();
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3544
3631
|
/**
|
|
3545
3632
|
* Auto-generated: storeAssetFile
|
|
3546
3633
|
*/
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,6 +71,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
71
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
72
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
73
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
74
75
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
75
76
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
76
77
|
return true;
|
|
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
90
91
|
'filePath': json['filePath'],
|
|
91
92
|
'fileName': json['fileName'],
|
|
92
93
|
'mimeType': json['mimeType'],
|
|
93
|
-
'altText': json['altText']
|
|
94
|
+
'altText': json['altText'],
|
|
94
95
|
'index': json['index'],
|
|
95
96
|
'fileId': json['fileId'],
|
|
96
97
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
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 { UserLiteResource } from './UserLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
UserLiteResourceFromJSON,
|
|
19
|
+
UserLiteResourceFromJSONTyped,
|
|
20
|
+
UserLiteResourceToJSON,
|
|
21
|
+
UserLiteResourceToJSONTyped,
|
|
22
|
+
} from './UserLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceVerificationFallbackSettingResource
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceVerificationFallbackSettingResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
34
|
+
*/
|
|
35
|
+
state: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
40
|
+
*/
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
46
|
+
*/
|
|
47
|
+
updatedAt?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {UserLiteResource}
|
|
51
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
52
|
+
*/
|
|
53
|
+
updatedByUser: UserLiteResource | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the LicenceVerificationFallbackSettingResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfLicenceVerificationFallbackSettingResource(value: object): value is LicenceVerificationFallbackSettingResource {
|
|
60
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
61
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
62
|
+
if (!('updatedByUser' in value) || value['updatedByUser'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function LicenceVerificationFallbackSettingResourceFromJSON(json: any): LicenceVerificationFallbackSettingResource {
|
|
67
|
+
return LicenceVerificationFallbackSettingResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LicenceVerificationFallbackSettingResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'state': json['state'],
|
|
77
|
+
'enabled': json['enabled'],
|
|
78
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
79
|
+
'updatedByUser': UserLiteResourceFromJSON(json['updatedByUser']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function LicenceVerificationFallbackSettingResourceToJSON(json: any): LicenceVerificationFallbackSettingResource {
|
|
84
|
+
return LicenceVerificationFallbackSettingResourceToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LicenceVerificationFallbackSettingResourceToJSONTyped(value?: LicenceVerificationFallbackSettingResource | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'state': value['state'],
|
|
95
|
+
'enabled': value['enabled'],
|
|
96
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
97
|
+
'updatedByUser': UserLiteResourceToJSON(value['updatedByUser']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
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 { LicenceVerificationFallbackSettingResource } from './LicenceVerificationFallbackSettingResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceVerificationFallbackSettingResourceFromJSON,
|
|
19
|
+
LicenceVerificationFallbackSettingResourceFromJSONTyped,
|
|
20
|
+
LicenceVerificationFallbackSettingResourceToJSON,
|
|
21
|
+
LicenceVerificationFallbackSettingResourceToJSONTyped,
|
|
22
|
+
} from './LicenceVerificationFallbackSettingResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceVerificationFallbackSettingResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LicenceVerificationFallbackSettingResource>}
|
|
33
|
+
* @memberof LicenceVerificationFallbackSettingResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LicenceVerificationFallbackSettingResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LicenceVerificationFallbackSettingResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLicenceVerificationFallbackSettingResourceArrayResponse(value: object): value is LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(json: any): LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
46
|
+
return LicenceVerificationFallbackSettingResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceVerificationFallbackSettingResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseToJSON(json: any): LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
60
|
+
return LicenceVerificationFallbackSettingResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseToJSONTyped(value?: LicenceVerificationFallbackSettingResourceArrayResponse | 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(LicenceVerificationFallbackSettingResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber?: string | null;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
@@ -159,7 +159,7 @@ export interface RegisterListResource {
|
|
|
159
159
|
* @type {number}
|
|
160
160
|
* @memberof RegisterListResource
|
|
161
161
|
*/
|
|
162
|
-
signOffLat
|
|
162
|
+
signOffLat: number;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {number}
|
|
@@ -195,7 +195,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
195
195
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
196
196
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
197
197
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
198
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
199
198
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
200
199
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
201
200
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -208,6 +207,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
208
207
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
209
208
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
210
209
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
210
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
211
211
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
212
212
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
213
213
|
return true;
|
|
@@ -230,7 +230,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
230
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
231
231
|
'shiftLength': json['shiftLength'],
|
|
232
232
|
'signOffStatus': json['signOffStatus'],
|
|
233
|
-
'badgeNumber': json['badgeNumber'],
|
|
233
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
234
234
|
'licenceNumber': json['licenceNumber'],
|
|
235
235
|
'licenceFirstName': json['licenceFirstName'],
|
|
236
236
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -243,7 +243,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
243
243
|
'firstAid': json['firstAid'],
|
|
244
244
|
'signOnLat': json['signOnLat'],
|
|
245
245
|
'signOnLong': json['signOnLong'],
|
|
246
|
-
'signOffLat': json['signOffLat']
|
|
246
|
+
'signOffLat': json['signOffLat'],
|
|
247
247
|
'signOffLong': json['signOffLong'],
|
|
248
248
|
'hasIncidents': json['hasIncidents'],
|
|
249
249
|
};
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -203,7 +203,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
203
203
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
204
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
205
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
206
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
207
206
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
208
207
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
209
208
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -235,7 +234,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
235
234
|
'firstAidImage': json['firstAidImage'],
|
|
236
235
|
'signOnLat': json['signOnLat'],
|
|
237
236
|
'signOnLong': json['signOnLong'],
|
|
238
|
-
'signOffLat': json['signOffLat'],
|
|
237
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
239
238
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
240
239
|
'licenceNumber': json['licenceNumber'],
|
|
241
240
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -116,6 +116,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
116
116
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
117
117
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
118
118
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
119
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
119
120
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
120
121
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
121
122
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -137,7 +138,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
137
138
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
138
139
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
139
140
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
140
|
-
'finishDateTime':
|
|
141
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
141
142
|
'isCompliant': json['isCompliant'],
|
|
142
143
|
'isComplete': json['isComplete'],
|
|
143
144
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -160,7 +161,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
160
161
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
161
162
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
162
163
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
163
|
-
'finishDateTime':
|
|
164
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
164
165
|
'isCompliant': value['isCompliant'],
|
|
165
166
|
'isComplete': value['isComplete'],
|
|
166
167
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,6 +82,7 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
85
86
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
86
87
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
87
88
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
103
|
'name': json['name'],
|
|
103
|
-
'email': json['email']
|
|
104
|
+
'email': json['email'],
|
|
104
105
|
'isEnabled': json['isEnabled'],
|
|
105
106
|
'address': AddressResourceFromJSON(json['address']),
|
|
106
107
|
'licenceNumber': json['licenceNumber'],
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SettingsLicenceVerificationFallbackUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SettingsLicenceVerificationFallbackUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SettingsLicenceVerificationFallbackUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
qld?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof SettingsLicenceVerificationFallbackUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
nsw?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof SettingsLicenceVerificationFallbackUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
vic?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SettingsLicenceVerificationFallbackUpdateRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSettingsLicenceVerificationFallbackUpdateRequest(value: object): value is SettingsLicenceVerificationFallbackUpdateRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestFromJSON(json: any): SettingsLicenceVerificationFallbackUpdateRequest {
|
|
50
|
+
return SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsLicenceVerificationFallbackUpdateRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'qld': json['qld'] == null ? undefined : json['qld'],
|
|
60
|
+
'nsw': json['nsw'] == null ? undefined : json['nsw'],
|
|
61
|
+
'vic': json['vic'] == null ? undefined : json['vic'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestToJSON(json: any): SettingsLicenceVerificationFallbackUpdateRequest {
|
|
66
|
+
return SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped(value?: SettingsLicenceVerificationFallbackUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'qld': value['qld'],
|
|
77
|
+
'nsw': value['nsw'],
|
|
78
|
+
'vic': value['vic'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -58,6 +58,8 @@ export * from './LicenceLiteResource';
|
|
|
58
58
|
export * from './LicenceLiteResourceArrayResponse';
|
|
59
59
|
export * from './LicenceResource';
|
|
60
60
|
export * from './LicenceResourceArrayResponse';
|
|
61
|
+
export * from './LicenceVerificationFallbackSettingResource';
|
|
62
|
+
export * from './LicenceVerificationFallbackSettingResourceArrayResponse';
|
|
61
63
|
export * from './LicencesListAllRequest';
|
|
62
64
|
export * from './LicencesListRequest';
|
|
63
65
|
export * from './LicencesStoreRequest';
|
|
@@ -130,6 +132,7 @@ export * from './SecurityCompanyLiteResourceArrayResponse';
|
|
|
130
132
|
export * from './SecurityCompanyResource';
|
|
131
133
|
export * from './SecurityCompanyResourceArrayResponse';
|
|
132
134
|
export * from './SendForgotPasswordLinkAuthRequest';
|
|
135
|
+
export * from './SettingsLicenceVerificationFallbackUpdateRequest';
|
|
133
136
|
export * from './StoreAssetFileRequest';
|
|
134
137
|
export * from './StoreUserRequest';
|
|
135
138
|
export * from './UpdateUserRequest';
|