@digital8/security-registers-backend-ts-sdk 0.0.438 → 0.0.439
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 +1 -5
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -12
- package/dist/apis/GeneralApi.js +0 -55
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthRegisterGuardRequest.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequest.js +4 -4
- package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +93 -0
- package/dist/models/{AuthRegisterGuardRequestLicence.js → AuthRegisterGuardRequestLicencesInner.js} +17 -17
- package/dist/models/MobileInitResource.d.ts +0 -7
- package/dist/models/MobileInitResource.js +0 -5
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +4 -4
- package/dist/models/RegisterListResource.js +7 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/UserResource.d.ts +7 -0
- package/dist/models/UserResource.js +5 -0
- package/dist/models/UsersCreateWithRoleRequest.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequest.js +3 -3
- package/dist/models/index.d.ts +1 -5
- package/dist/models/index.js +1 -5
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -50
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequest.ts +11 -11
- package/src/models/{AuthRegisterGuardRequestLicence.ts → AuthRegisterGuardRequestLicencesInner.ts} +29 -29
- package/src/models/MobileInitResource.ts +0 -16
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +9 -7
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/UserResource.ts +16 -0
- package/src/models/UsersCreateWithRoleRequest.ts +10 -10
- package/src/models/index.ts +1 -5
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -93
- package/dist/models/MobileAppConfigRequest.d.ts +0 -46
- package/dist/models/MobileAppConfigRequest.js +0 -63
- package/dist/models/MobileAppConfigResource.d.ts +0 -58
- package/dist/models/MobileAppConfigResource.js +0 -69
- package/dist/models/MobileAppConfigResourceArrayResponse.d.ts +0 -33
- package/dist/models/MobileAppConfigResourceArrayResponse.js +0 -50
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -93
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +0 -90
- package/src/models/MobileAppConfigRequest.ts +0 -86
- package/src/models/MobileAppConfigResource.ts +0 -103
- package/src/models/MobileAppConfigResourceArrayResponse.ts +0 -73
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +0 -176
|
@@ -1,103 +0,0 @@
|
|
|
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 MobileAppConfigResource
|
|
20
|
-
*/
|
|
21
|
-
export interface MobileAppConfigResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof MobileAppConfigResource
|
|
26
|
-
*/
|
|
27
|
-
platform: MobileAppConfigResourcePlatformEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {boolean}
|
|
31
|
-
* @memberof MobileAppConfigResource
|
|
32
|
-
*/
|
|
33
|
-
forceUpdate: boolean;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof MobileAppConfigResource
|
|
38
|
-
*/
|
|
39
|
-
updateUrl: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof MobileAppConfigResource
|
|
44
|
-
*/
|
|
45
|
-
message?: string | null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @export
|
|
51
|
-
*/
|
|
52
|
-
export const MobileAppConfigResourcePlatformEnum = {
|
|
53
|
-
Ios: 'ios',
|
|
54
|
-
Android: 'android'
|
|
55
|
-
} as const;
|
|
56
|
-
export type MobileAppConfigResourcePlatformEnum = typeof MobileAppConfigResourcePlatformEnum[keyof typeof MobileAppConfigResourcePlatformEnum];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Check if a given object implements the MobileAppConfigResource interface.
|
|
61
|
-
*/
|
|
62
|
-
export function instanceOfMobileAppConfigResource(value: object): value is MobileAppConfigResource {
|
|
63
|
-
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
64
|
-
if (!('forceUpdate' in value) || value['forceUpdate'] === undefined) return false;
|
|
65
|
-
if (!('updateUrl' in value) || value['updateUrl'] === undefined) return false;
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function MobileAppConfigResourceFromJSON(json: any): MobileAppConfigResource {
|
|
70
|
-
return MobileAppConfigResourceFromJSONTyped(json, false);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function MobileAppConfigResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResource {
|
|
74
|
-
if (json == null) {
|
|
75
|
-
return json;
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'platform': json['platform'],
|
|
80
|
-
'forceUpdate': json['forceUpdate'],
|
|
81
|
-
'updateUrl': json['updateUrl'],
|
|
82
|
-
'message': json['message'] == null ? undefined : json['message'],
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function MobileAppConfigResourceToJSON(json: any): MobileAppConfigResource {
|
|
87
|
-
return MobileAppConfigResourceToJSONTyped(json, false);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function MobileAppConfigResourceToJSONTyped(value?: MobileAppConfigResource | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
-
if (value == null) {
|
|
92
|
-
return value;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return {
|
|
96
|
-
|
|
97
|
-
'platform': value['platform'],
|
|
98
|
-
'forceUpdate': value['forceUpdate'],
|
|
99
|
-
'updateUrl': value['updateUrl'],
|
|
100
|
-
'message': value['message'],
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { MobileAppConfigResource } from './MobileAppConfigResource';
|
|
17
|
-
import {
|
|
18
|
-
MobileAppConfigResourceFromJSON,
|
|
19
|
-
MobileAppConfigResourceFromJSONTyped,
|
|
20
|
-
MobileAppConfigResourceToJSON,
|
|
21
|
-
MobileAppConfigResourceToJSONTyped,
|
|
22
|
-
} from './MobileAppConfigResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MobileAppConfigResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface MobileAppConfigResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<MobileAppConfigResource>}
|
|
33
|
-
* @memberof MobileAppConfigResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<MobileAppConfigResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfMobileAppConfigResourceArrayResponse(value: object): value is MobileAppConfigResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function MobileAppConfigResourceArrayResponseFromJSON(json: any): MobileAppConfigResourceArrayResponse {
|
|
46
|
-
return MobileAppConfigResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function MobileAppConfigResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileAppConfigResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function MobileAppConfigResourceArrayResponseToJSON(json: any): MobileAppConfigResourceArrayResponse {
|
|
60
|
-
return MobileAppConfigResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function MobileAppConfigResourceArrayResponseToJSONTyped(value?: MobileAppConfigResourceArrayResponse | 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(MobileAppConfigResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,176 +0,0 @@
|
|
|
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 { FirstAidAsset } from './FirstAidAsset';
|
|
17
|
-
import {
|
|
18
|
-
FirstAidAssetFromJSON,
|
|
19
|
-
FirstAidAssetFromJSONTyped,
|
|
20
|
-
FirstAidAssetToJSON,
|
|
21
|
-
FirstAidAssetToJSONTyped,
|
|
22
|
-
} from './FirstAidAsset';
|
|
23
|
-
import type { BackAsset } from './BackAsset';
|
|
24
|
-
import {
|
|
25
|
-
BackAssetFromJSON,
|
|
26
|
-
BackAssetFromJSONTyped,
|
|
27
|
-
BackAssetToJSON,
|
|
28
|
-
BackAssetToJSONTyped,
|
|
29
|
-
} from './BackAsset';
|
|
30
|
-
import type { FrontAsset } from './FrontAsset';
|
|
31
|
-
import {
|
|
32
|
-
FrontAssetFromJSON,
|
|
33
|
-
FrontAssetFromJSONTyped,
|
|
34
|
-
FrontAssetToJSON,
|
|
35
|
-
FrontAssetToJSONTyped,
|
|
36
|
-
} from './FrontAsset';
|
|
37
|
-
import type { RsaAsset } from './RsaAsset';
|
|
38
|
-
import {
|
|
39
|
-
RsaAssetFromJSON,
|
|
40
|
-
RsaAssetFromJSONTyped,
|
|
41
|
-
RsaAssetToJSON,
|
|
42
|
-
RsaAssetToJSONTyped,
|
|
43
|
-
} from './RsaAsset';
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @interface UsersCreateWithRoleRequestLicencesInner
|
|
49
|
-
*/
|
|
50
|
-
export interface UsersCreateWithRoleRequestLicencesInner {
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
55
|
-
*/
|
|
56
|
-
state: UsersCreateWithRoleRequestLicencesInnerStateEnum;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
61
|
-
*/
|
|
62
|
-
licenceNumber: string;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
67
|
-
*/
|
|
68
|
-
firstName: string;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
73
|
-
*/
|
|
74
|
-
lastName: string;
|
|
75
|
-
/**
|
|
76
|
-
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
79
|
-
*/
|
|
80
|
-
expiryDate: string;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {FrontAsset}
|
|
84
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
85
|
-
*/
|
|
86
|
-
frontAsset: FrontAsset;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {BackAsset}
|
|
90
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
91
|
-
*/
|
|
92
|
-
backAsset?: BackAsset | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {RsaAsset}
|
|
96
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
97
|
-
*/
|
|
98
|
-
rsaAsset?: RsaAsset | null;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {FirstAidAsset}
|
|
102
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
103
|
-
*/
|
|
104
|
-
firstAidAsset?: FirstAidAsset | null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @export
|
|
110
|
-
*/
|
|
111
|
-
export const UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
112
|
-
Qld: 'QLD',
|
|
113
|
-
Nsw: 'NSW',
|
|
114
|
-
Vic: 'VIC'
|
|
115
|
-
} as const;
|
|
116
|
-
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Check if a given object implements the UsersCreateWithRoleRequestLicencesInner interface.
|
|
121
|
-
*/
|
|
122
|
-
export function instanceOfUsersCreateWithRoleRequestLicencesInner(value: object): value is UsersCreateWithRoleRequestLicencesInner {
|
|
123
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
124
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
125
|
-
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
126
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
127
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
128
|
-
if (!('frontAsset' in value) || value['frontAsset'] === undefined) return false;
|
|
129
|
-
return true;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export function UsersCreateWithRoleRequestLicencesInnerFromJSON(json: any): UsersCreateWithRoleRequestLicencesInner {
|
|
133
|
-
return UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json, false);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersCreateWithRoleRequestLicencesInner {
|
|
137
|
-
if (json == null) {
|
|
138
|
-
return json;
|
|
139
|
-
}
|
|
140
|
-
return {
|
|
141
|
-
|
|
142
|
-
'state': json['state'],
|
|
143
|
-
'licenceNumber': json['licence_number'],
|
|
144
|
-
'firstName': json['first_name'],
|
|
145
|
-
'lastName': json['last_name'],
|
|
146
|
-
'expiryDate': json['expiry_date'],
|
|
147
|
-
'frontAsset': FrontAssetFromJSON(json['front_asset']),
|
|
148
|
-
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
149
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
|
|
150
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : FirstAidAssetFromJSON(json['first_aid_asset']),
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export function UsersCreateWithRoleRequestLicencesInnerToJSON(json: any): UsersCreateWithRoleRequestLicencesInner {
|
|
155
|
-
return UsersCreateWithRoleRequestLicencesInnerToJSONTyped(json, false);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export function UsersCreateWithRoleRequestLicencesInnerToJSONTyped(value?: UsersCreateWithRoleRequestLicencesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
159
|
-
if (value == null) {
|
|
160
|
-
return value;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
return {
|
|
164
|
-
|
|
165
|
-
'state': value['state'],
|
|
166
|
-
'licence_number': value['licenceNumber'],
|
|
167
|
-
'first_name': value['firstName'],
|
|
168
|
-
'last_name': value['lastName'],
|
|
169
|
-
'expiry_date': value['expiryDate'],
|
|
170
|
-
'front_asset': FrontAssetToJSON(value['frontAsset']),
|
|
171
|
-
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
172
|
-
'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
|
|
173
|
-
'first_aid_asset': FirstAidAssetToJSON(value['firstAidAsset']),
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
|