@digital8/security-registers-backend-ts-sdk 0.0.439 → 0.0.441
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 +5 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -1
- package/dist/apis/GeneralApi.js +55 -0
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthRegisterGuardRequest.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequest.js +4 -4
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +93 -0
- package/dist/models/{AuthRegisterGuardRequestLicencesInner.js → AuthRegisterGuardRequestLicence.js} +17 -17
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/MobileAppConfigRequest.d.ts +46 -0
- package/dist/models/MobileAppConfigRequest.js +63 -0
- package/dist/models/MobileAppConfigResource.d.ts +58 -0
- package/dist/models/MobileAppConfigResource.js +69 -0
- package/dist/models/MobileAppConfigResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileAppConfigResourceArrayResponse.js +50 -0
- package/dist/models/MobileInitResource.d.ts +7 -0
- package/dist/models/MobileInitResource.js +5 -0
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +2 -6
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/UserResource.d.ts +0 -7
- package/dist/models/UserResource.js +0 -5
- package/dist/models/UsersCreateWithRoleRequest.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequest.js +3 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +93 -0
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +90 -0
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +50 -0
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthRegisterGuardRequest.ts +11 -11
- package/src/models/{AuthRegisterGuardRequestLicencesInner.ts → AuthRegisterGuardRequestLicence.ts} +29 -29
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/MobileAppConfigRequest.ts +86 -0
- package/src/models/MobileAppConfigResource.ts +103 -0
- package/src/models/MobileAppConfigResourceArrayResponse.ts +73 -0
- package/src/models/MobileInitResource.ts +16 -0
- package/src/models/RegisterListResource.ts +4 -6
- package/src/models/RegisterResource.ts +4 -6
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/UserResource.ts +0 -16
- package/src/models/UsersCreateWithRoleRequest.ts +10 -10
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +176 -0
- package/src/models/index.ts +5 -1
- package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +0 -93
package/dist/models/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from './AssetResourceArrayResponse';
|
|
|
9
9
|
export * from './AuthChangePasswordRequest';
|
|
10
10
|
export * from './AuthProfileUpdateRequest';
|
|
11
11
|
export * from './AuthRegisterGuardRequest';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './AuthRegisterGuardRequestLicence';
|
|
13
13
|
export * from './AuthRegisterGuardRequestProfileSignature';
|
|
14
14
|
export * from './BackAsset';
|
|
15
15
|
export * from './CurrentRegisterResource';
|
|
@@ -73,6 +73,9 @@ export * from './LicencesStoreRequestBackAsset';
|
|
|
73
73
|
export * from './LicencesUpdateRequest';
|
|
74
74
|
export * from './LicencesVerifyRequest';
|
|
75
75
|
export * from './LoginAuthRequest';
|
|
76
|
+
export * from './MobileAppConfigRequest';
|
|
77
|
+
export * from './MobileAppConfigResource';
|
|
78
|
+
export * from './MobileAppConfigResourceArrayResponse';
|
|
76
79
|
export * from './MobileDeviceResource';
|
|
77
80
|
export * from './MobileDeviceResourceArrayResponse';
|
|
78
81
|
export * from './MobileInitResource';
|
|
@@ -156,6 +159,7 @@ export * from './UserVenueResourceArrayResponse';
|
|
|
156
159
|
export * from './UsersAttachSecurityCompaniesRequest';
|
|
157
160
|
export * from './UsersAttachVenuesRequest';
|
|
158
161
|
export * from './UsersCreateWithRoleRequest';
|
|
162
|
+
export * from './UsersCreateWithRoleRequestLicencesInner';
|
|
159
163
|
export * from './UsersDetachVenuesRequest';
|
|
160
164
|
export * from './UsersRegisterVenueManagerRequest';
|
|
161
165
|
export * from './VenueGuardScheduleResource';
|
package/dist/models/index.js
CHANGED
|
@@ -27,7 +27,7 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./AuthChangePasswordRequest"), exports);
|
|
28
28
|
__exportStar(require("./AuthProfileUpdateRequest"), exports);
|
|
29
29
|
__exportStar(require("./AuthRegisterGuardRequest"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./AuthRegisterGuardRequestLicence"), exports);
|
|
31
31
|
__exportStar(require("./AuthRegisterGuardRequestProfileSignature"), exports);
|
|
32
32
|
__exportStar(require("./BackAsset"), exports);
|
|
33
33
|
__exportStar(require("./CurrentRegisterResource"), exports);
|
|
@@ -91,6 +91,9 @@ __exportStar(require("./LicencesStoreRequestBackAsset"), exports);
|
|
|
91
91
|
__exportStar(require("./LicencesUpdateRequest"), exports);
|
|
92
92
|
__exportStar(require("./LicencesVerifyRequest"), exports);
|
|
93
93
|
__exportStar(require("./LoginAuthRequest"), exports);
|
|
94
|
+
__exportStar(require("./MobileAppConfigRequest"), exports);
|
|
95
|
+
__exportStar(require("./MobileAppConfigResource"), exports);
|
|
96
|
+
__exportStar(require("./MobileAppConfigResourceArrayResponse"), exports);
|
|
94
97
|
__exportStar(require("./MobileDeviceResource"), exports);
|
|
95
98
|
__exportStar(require("./MobileDeviceResourceArrayResponse"), exports);
|
|
96
99
|
__exportStar(require("./MobileInitResource"), exports);
|
|
@@ -174,6 +177,7 @@ __exportStar(require("./UserVenueResourceArrayResponse"), exports);
|
|
|
174
177
|
__exportStar(require("./UsersAttachSecurityCompaniesRequest"), exports);
|
|
175
178
|
__exportStar(require("./UsersAttachVenuesRequest"), exports);
|
|
176
179
|
__exportStar(require("./UsersCreateWithRoleRequest"), exports);
|
|
180
|
+
__exportStar(require("./UsersCreateWithRoleRequestLicencesInner"), exports);
|
|
177
181
|
__exportStar(require("./UsersDetachVenuesRequest"), exports);
|
|
178
182
|
__exportStar(require("./UsersRegisterVenueManagerRequest"), exports);
|
|
179
183
|
__exportStar(require("./VenueGuardScheduleResource"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -51,6 +51,8 @@ import type {
|
|
|
51
51
|
LicencesUpdateRequest,
|
|
52
52
|
LicencesVerifyRequest,
|
|
53
53
|
LoginAuthRequest,
|
|
54
|
+
MobileAppConfigRequest,
|
|
55
|
+
MobileAppConfigResource,
|
|
54
56
|
MobileDeviceResource,
|
|
55
57
|
MobileInitResource,
|
|
56
58
|
NotificationPreferenceResource,
|
|
@@ -191,6 +193,10 @@ import {
|
|
|
191
193
|
LicencesVerifyRequestToJSON,
|
|
192
194
|
LoginAuthRequestFromJSON,
|
|
193
195
|
LoginAuthRequestToJSON,
|
|
196
|
+
MobileAppConfigRequestFromJSON,
|
|
197
|
+
MobileAppConfigRequestToJSON,
|
|
198
|
+
MobileAppConfigResourceFromJSON,
|
|
199
|
+
MobileAppConfigResourceToJSON,
|
|
194
200
|
MobileDeviceResourceFromJSON,
|
|
195
201
|
MobileDeviceResourceToJSON,
|
|
196
202
|
MobileInitResourceFromJSON,
|
|
@@ -499,6 +505,10 @@ export interface LoginAuthOperationRequest {
|
|
|
499
505
|
loginAuthRequest?: LoginAuthRequest;
|
|
500
506
|
}
|
|
501
507
|
|
|
508
|
+
export interface MobileAppConfigOperationRequest {
|
|
509
|
+
mobileAppConfigRequest?: MobileAppConfigRequest;
|
|
510
|
+
}
|
|
511
|
+
|
|
502
512
|
export interface NotificationPreferencesBulkOperationRequest {
|
|
503
513
|
notificationPreferencesBulkRequest?: NotificationPreferencesBulkRequest;
|
|
504
514
|
}
|
|
@@ -2640,6 +2650,46 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
2640
2650
|
return await response.value();
|
|
2641
2651
|
}
|
|
2642
2652
|
|
|
2653
|
+
/**
|
|
2654
|
+
* Auto-generated: mobile.appConfig
|
|
2655
|
+
*/
|
|
2656
|
+
async mobileAppConfigRaw(requestParameters: MobileAppConfigOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppConfigResource>> {
|
|
2657
|
+
const queryParameters: any = {};
|
|
2658
|
+
|
|
2659
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2660
|
+
|
|
2661
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2662
|
+
|
|
2663
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2664
|
+
const token = this.configuration.accessToken;
|
|
2665
|
+
const tokenString = await token("bearerAuth", []);
|
|
2666
|
+
|
|
2667
|
+
if (tokenString) {
|
|
2668
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
let urlPath = `/api/mobile/app-config`;
|
|
2673
|
+
|
|
2674
|
+
const response = await this.request({
|
|
2675
|
+
path: urlPath,
|
|
2676
|
+
method: 'POST',
|
|
2677
|
+
headers: headerParameters,
|
|
2678
|
+
query: queryParameters,
|
|
2679
|
+
body: MobileAppConfigRequestToJSON(requestParameters['mobileAppConfigRequest']),
|
|
2680
|
+
}, initOverrides);
|
|
2681
|
+
|
|
2682
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MobileAppConfigResourceFromJSON(jsonValue));
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* Auto-generated: mobile.appConfig
|
|
2687
|
+
*/
|
|
2688
|
+
async mobileAppConfig(requestParameters: MobileAppConfigOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppConfigResource> {
|
|
2689
|
+
const response = await this.mobileAppConfigRaw(requestParameters, initOverrides);
|
|
2690
|
+
return await response.value();
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2643
2693
|
/**
|
|
2644
2694
|
* Auto-generated: mobile.init
|
|
2645
2695
|
*/
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -83,7 +83,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
83
83
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
84
84
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
85
85
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
86
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
87
86
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
88
87
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
89
88
|
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
104
103
|
'filePath': json['filePath'],
|
|
105
104
|
'fileName': json['fileName'],
|
|
106
105
|
'mimeType': json['mimeType'],
|
|
107
|
-
'altText': json['altText'],
|
|
106
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
108
107
|
'index': json['index'],
|
|
109
108
|
'fileId': json['fileId'],
|
|
110
109
|
'isExternal': json['isExternal'],
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AuthRegisterGuardRequestLicence } from './AuthRegisterGuardRequestLicence';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AuthRegisterGuardRequestLicenceFromJSON,
|
|
19
|
+
AuthRegisterGuardRequestLicenceFromJSONTyped,
|
|
20
|
+
AuthRegisterGuardRequestLicenceToJSON,
|
|
21
|
+
AuthRegisterGuardRequestLicenceToJSONTyped,
|
|
22
|
+
} from './AuthRegisterGuardRequestLicence';
|
|
23
23
|
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
24
24
|
import {
|
|
25
25
|
AuthRegisterGuardRequestProfileSignatureFromJSON,
|
|
@@ -72,10 +72,10 @@ export interface AuthRegisterGuardRequest {
|
|
|
72
72
|
profileSignature: AuthRegisterGuardRequestProfileSignature;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
|
-
* @type {
|
|
75
|
+
* @type {AuthRegisterGuardRequestLicence}
|
|
76
76
|
* @memberof AuthRegisterGuardRequest
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
licence: AuthRegisterGuardRequestLicence;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -88,7 +88,7 @@ export function instanceOfAuthRegisterGuardRequest(value: object): value is Auth
|
|
|
88
88
|
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
89
89
|
if (!('password' in value) || value['password'] === undefined) return false;
|
|
90
90
|
if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
|
|
91
|
-
if (!('
|
|
91
|
+
if (!('licence' in value) || value['licence'] === undefined) return false;
|
|
92
92
|
return true;
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -108,7 +108,7 @@ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
108
108
|
'mobile': json['mobile'],
|
|
109
109
|
'password': json['password'],
|
|
110
110
|
'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
|
|
111
|
-
'
|
|
111
|
+
'licence': AuthRegisterGuardRequestLicenceFromJSON(json['licence']),
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -129,7 +129,7 @@ export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardReq
|
|
|
129
129
|
'mobile': value['mobile'],
|
|
130
130
|
'password': value['password'],
|
|
131
131
|
'profile_signature': AuthRegisterGuardRequestProfileSignatureToJSON(value['profileSignature']),
|
|
132
|
-
'
|
|
132
|
+
'licence': AuthRegisterGuardRequestLicenceToJSON(value['licence']),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
package/src/models/{AuthRegisterGuardRequestLicencesInner.ts → AuthRegisterGuardRequestLicence.ts}
RENAMED
|
@@ -45,81 +45,81 @@ import {
|
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @export
|
|
48
|
-
* @interface
|
|
48
|
+
* @interface AuthRegisterGuardRequestLicence
|
|
49
49
|
*/
|
|
50
|
-
export interface
|
|
50
|
+
export interface AuthRegisterGuardRequestLicence {
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @type {string}
|
|
54
|
-
* @memberof
|
|
54
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
55
55
|
*/
|
|
56
|
-
state:
|
|
56
|
+
state: AuthRegisterGuardRequestLicenceStateEnum;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {string}
|
|
60
|
-
* @memberof
|
|
60
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
61
61
|
*/
|
|
62
62
|
licenceNumber: string;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {string}
|
|
66
|
-
* @memberof
|
|
66
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
67
67
|
*/
|
|
68
68
|
firstName: string;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {string}
|
|
72
|
-
* @memberof
|
|
72
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
73
73
|
*/
|
|
74
74
|
lastName: string;
|
|
75
75
|
/**
|
|
76
76
|
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
77
77
|
* @type {string}
|
|
78
|
-
* @memberof
|
|
78
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
79
79
|
*/
|
|
80
80
|
expiryDate: string;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {FrontAsset}
|
|
84
|
-
* @memberof
|
|
84
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
85
85
|
*/
|
|
86
86
|
frontAsset: FrontAsset;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {BackAsset}
|
|
90
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
91
|
+
*/
|
|
92
|
+
backAsset?: BackAsset | null;
|
|
87
93
|
/**
|
|
88
94
|
*
|
|
89
95
|
* @type {RsaAsset}
|
|
90
|
-
* @memberof
|
|
96
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
91
97
|
*/
|
|
92
98
|
rsaAsset?: RsaAsset | null;
|
|
93
99
|
/**
|
|
94
100
|
*
|
|
95
101
|
* @type {FirstAidAsset}
|
|
96
|
-
* @memberof
|
|
102
|
+
* @memberof AuthRegisterGuardRequestLicence
|
|
97
103
|
*/
|
|
98
104
|
firstAidAsset?: FirstAidAsset | null;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {BackAsset}
|
|
102
|
-
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
103
|
-
*/
|
|
104
|
-
backAsset?: BackAsset | null;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* @export
|
|
110
110
|
*/
|
|
111
|
-
export const
|
|
111
|
+
export const AuthRegisterGuardRequestLicenceStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
114
|
Vic: 'VIC'
|
|
115
115
|
} as const;
|
|
116
|
-
export type
|
|
116
|
+
export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Check if a given object implements the
|
|
120
|
+
* Check if a given object implements the AuthRegisterGuardRequestLicence interface.
|
|
121
121
|
*/
|
|
122
|
-
export function
|
|
122
|
+
export function instanceOfAuthRegisterGuardRequestLicence(value: object): value is AuthRegisterGuardRequestLicence {
|
|
123
123
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
124
124
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
125
125
|
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
@@ -129,11 +129,11 @@ export function instanceOfAuthRegisterGuardRequestLicencesInner(value: object):
|
|
|
129
129
|
return true;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
export function
|
|
133
|
-
return
|
|
132
|
+
export function AuthRegisterGuardRequestLicenceFromJSON(json: any): AuthRegisterGuardRequestLicence {
|
|
133
|
+
return AuthRegisterGuardRequestLicenceFromJSONTyped(json, false);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
export function
|
|
136
|
+
export function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestLicence {
|
|
137
137
|
if (json == null) {
|
|
138
138
|
return json;
|
|
139
139
|
}
|
|
@@ -145,17 +145,17 @@ export function AuthRegisterGuardRequestLicencesInnerFromJSONTyped(json: any, ig
|
|
|
145
145
|
'lastName': json['last_name'],
|
|
146
146
|
'expiryDate': json['expiry_date'],
|
|
147
147
|
'frontAsset': FrontAssetFromJSON(json['front_asset']),
|
|
148
|
+
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
148
149
|
'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
|
|
149
150
|
'firstAidAsset': json['first_aid_asset'] == null ? undefined : FirstAidAssetFromJSON(json['first_aid_asset']),
|
|
150
|
-
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
export function
|
|
155
|
-
return
|
|
154
|
+
export function AuthRegisterGuardRequestLicenceToJSON(json: any): AuthRegisterGuardRequestLicence {
|
|
155
|
+
return AuthRegisterGuardRequestLicenceToJSONTyped(json, false);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export function
|
|
158
|
+
export function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterGuardRequestLicence | null, ignoreDiscriminator: boolean = false): any {
|
|
159
159
|
if (value == null) {
|
|
160
160
|
return value;
|
|
161
161
|
}
|
|
@@ -168,9 +168,9 @@ export function AuthRegisterGuardRequestLicencesInnerToJSONTyped(value?: AuthReg
|
|
|
168
168
|
'last_name': value['lastName'],
|
|
169
169
|
'expiry_date': value['expiryDate'],
|
|
170
170
|
'front_asset': FrontAssetToJSON(value['frontAsset']),
|
|
171
|
+
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
171
172
|
'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
|
|
172
173
|
'first_aid_asset': FirstAidAssetToJSON(value['firstAidAsset']),
|
|
173
|
-
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
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 MobileAppConfigRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface MobileAppConfigRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MobileAppConfigRequest
|
|
26
|
+
*/
|
|
27
|
+
platform: MobileAppConfigRequestPlatformEnum;
|
|
28
|
+
/**
|
|
29
|
+
* The app's current version as a semantic version string (e.g. "1.4.2").
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MobileAppConfigRequest
|
|
32
|
+
*/
|
|
33
|
+
appVersion: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const MobileAppConfigRequestPlatformEnum = {
|
|
41
|
+
Ios: 'ios',
|
|
42
|
+
Android: 'android'
|
|
43
|
+
} as const;
|
|
44
|
+
export type MobileAppConfigRequestPlatformEnum = typeof MobileAppConfigRequestPlatformEnum[keyof typeof MobileAppConfigRequestPlatformEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the MobileAppConfigRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfMobileAppConfigRequest(value: object): value is MobileAppConfigRequest {
|
|
51
|
+
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
52
|
+
if (!('appVersion' in value) || value['appVersion'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function MobileAppConfigRequestFromJSON(json: any): MobileAppConfigRequest {
|
|
57
|
+
return MobileAppConfigRequestFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MobileAppConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigRequest {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'platform': json['platform'],
|
|
67
|
+
'appVersion': json['app_version'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function MobileAppConfigRequestToJSON(json: any): MobileAppConfigRequest {
|
|
72
|
+
return MobileAppConfigRequestToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function MobileAppConfigRequestToJSONTyped(value?: MobileAppConfigRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'platform': value['platform'],
|
|
83
|
+
'app_version': value['appVersion'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
|
|
@@ -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 { 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
|
+
|