@digital8/security-registers-backend-ts-sdk 0.0.462 → 0.0.463
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 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +23 -12
- package/dist/apis/GeneralApi.js +110 -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 +1 -3
- package/dist/models/AuthLoginWebRequest.d.ts +38 -0
- package/dist/models/{LoginAuthRequest.js → AuthLoginWebRequest.js} +13 -13
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +3 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +91 -47
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/{LoginAuthRequest.ts → AuthLoginWebRequest.ts} +12 -12
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +1 -1
- package/dist/models/LoginAuthRequest.d.ts +0 -38
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ src/models/AssetLiteResourceArrayResponse.ts
|
|
|
15
15
|
src/models/AssetResource.ts
|
|
16
16
|
src/models/AssetResourceArrayResponse.ts
|
|
17
17
|
src/models/AuthChangePasswordRequest.ts
|
|
18
|
+
src/models/AuthLoginWebRequest.ts
|
|
18
19
|
src/models/AuthProfileUpdateRequest.ts
|
|
19
20
|
src/models/AuthRegisterGuardFileRequest.ts
|
|
20
21
|
src/models/AuthRegisterGuardRequest.ts
|
|
@@ -81,7 +82,6 @@ src/models/LicencesStoreRequest.ts
|
|
|
81
82
|
src/models/LicencesStoreRequestBackAsset.ts
|
|
82
83
|
src/models/LicencesUpdateRequest.ts
|
|
83
84
|
src/models/LicencesVerifyRequest.ts
|
|
84
|
-
src/models/LoginAuthRequest.ts
|
|
85
85
|
src/models/MobileAppConfigRequest.ts
|
|
86
86
|
src/models/MobileAppConfigResource.ts
|
|
87
87
|
src/models/MobileAppConfigResourceArrayResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.463
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.463 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,13 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest,
|
|
13
|
+
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface AuthChangePasswordOperationRequest {
|
|
15
15
|
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface AuthImpersonateRequest {
|
|
18
18
|
user: number;
|
|
19
19
|
}
|
|
20
|
+
export interface AuthLoginAppRequest {
|
|
21
|
+
authLoginWebRequest?: AuthLoginWebRequest;
|
|
22
|
+
}
|
|
23
|
+
export interface AuthLoginWebOperationRequest {
|
|
24
|
+
authLoginWebRequest?: AuthLoginWebRequest;
|
|
25
|
+
}
|
|
20
26
|
export interface AuthProfileUpdateOperationRequest {
|
|
21
27
|
authProfileUpdateRequest?: AuthProfileUpdateRequest;
|
|
22
28
|
}
|
|
@@ -144,9 +150,6 @@ export interface LicencesUpdateOperationRequest {
|
|
|
144
150
|
export interface LicencesVerifyOperationRequest {
|
|
145
151
|
licencesVerifyRequest?: LicencesVerifyRequest;
|
|
146
152
|
}
|
|
147
|
-
export interface LoginAuthOperationRequest {
|
|
148
|
-
loginAuthRequest?: LoginAuthRequest;
|
|
149
|
-
}
|
|
150
153
|
export interface MobileAppConfigOperationRequest {
|
|
151
154
|
mobileAppConfigRequest?: MobileAppConfigRequest;
|
|
152
155
|
}
|
|
@@ -359,6 +362,22 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
359
362
|
* Auto-generated: auth.impersonate
|
|
360
363
|
*/
|
|
361
364
|
authImpersonate(requestParameters: AuthImpersonateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
|
|
365
|
+
/**
|
|
366
|
+
* Auto-generated: auth.login.app
|
|
367
|
+
*/
|
|
368
|
+
authLoginAppRaw(requestParameters: AuthLoginAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
|
|
369
|
+
/**
|
|
370
|
+
* Auto-generated: auth.login.app
|
|
371
|
+
*/
|
|
372
|
+
authLoginApp(requestParameters?: AuthLoginAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
|
|
373
|
+
/**
|
|
374
|
+
* Auto-generated: auth.login.web
|
|
375
|
+
*/
|
|
376
|
+
authLoginWebRaw(requestParameters: AuthLoginWebOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
|
|
377
|
+
/**
|
|
378
|
+
* Auto-generated: auth.login.web
|
|
379
|
+
*/
|
|
380
|
+
authLoginWeb(requestParameters?: AuthLoginWebOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
|
|
362
381
|
/**
|
|
363
382
|
* Auto-generated: auth.profile.update
|
|
364
383
|
*/
|
|
@@ -679,14 +698,6 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
679
698
|
* Auto-generated: licences.verify
|
|
680
699
|
*/
|
|
681
700
|
licencesVerify(requestParameters?: LicencesVerifyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VerifyLicenceResource>;
|
|
682
|
-
/**
|
|
683
|
-
* Auto-generated: loginAuth
|
|
684
|
-
*/
|
|
685
|
-
loginAuthRaw(requestParameters: LoginAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
|
|
686
|
-
/**
|
|
687
|
-
* Auto-generated: loginAuth
|
|
688
|
-
*/
|
|
689
|
-
loginAuth(requestParameters?: LoginAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
|
|
690
701
|
/**
|
|
691
702
|
* Auto-generated: logoutAuth
|
|
692
703
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -186,6 +186,116 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* Auto-generated: auth.login.app
|
|
191
|
+
*/
|
|
192
|
+
GeneralApi.prototype.authLoginAppRaw = function (requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
194
|
+
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
queryParameters = {};
|
|
199
|
+
headerParameters = {};
|
|
200
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
201
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
202
|
+
token = this.configuration.accessToken;
|
|
203
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
204
|
+
case 1:
|
|
205
|
+
tokenString = _a.sent();
|
|
206
|
+
if (tokenString) {
|
|
207
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
208
|
+
}
|
|
209
|
+
_a.label = 2;
|
|
210
|
+
case 2:
|
|
211
|
+
urlPath = "/api/auth/login/app";
|
|
212
|
+
return [4 /*yield*/, this.request({
|
|
213
|
+
path: urlPath,
|
|
214
|
+
method: 'POST',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
body: (0, index_1.AuthLoginWebRequestToJSON)(requestParameters['authLoginWebRequest']),
|
|
218
|
+
}, initOverrides)];
|
|
219
|
+
case 3:
|
|
220
|
+
response = _a.sent();
|
|
221
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Auto-generated: auth.login.app
|
|
228
|
+
*/
|
|
229
|
+
GeneralApi.prototype.authLoginApp = function () {
|
|
230
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
231
|
+
var response;
|
|
232
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
233
|
+
return __generator(this, function (_a) {
|
|
234
|
+
switch (_a.label) {
|
|
235
|
+
case 0: return [4 /*yield*/, this.authLoginAppRaw(requestParameters, initOverrides)];
|
|
236
|
+
case 1:
|
|
237
|
+
response = _a.sent();
|
|
238
|
+
return [4 /*yield*/, response.value()];
|
|
239
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Auto-generated: auth.login.web
|
|
246
|
+
*/
|
|
247
|
+
GeneralApi.prototype.authLoginWebRaw = function (requestParameters, initOverrides) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
switch (_a.label) {
|
|
252
|
+
case 0:
|
|
253
|
+
queryParameters = {};
|
|
254
|
+
headerParameters = {};
|
|
255
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
256
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
257
|
+
token = this.configuration.accessToken;
|
|
258
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
259
|
+
case 1:
|
|
260
|
+
tokenString = _a.sent();
|
|
261
|
+
if (tokenString) {
|
|
262
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
263
|
+
}
|
|
264
|
+
_a.label = 2;
|
|
265
|
+
case 2:
|
|
266
|
+
urlPath = "/api/auth/login/web";
|
|
267
|
+
return [4 /*yield*/, this.request({
|
|
268
|
+
path: urlPath,
|
|
269
|
+
method: 'POST',
|
|
270
|
+
headers: headerParameters,
|
|
271
|
+
query: queryParameters,
|
|
272
|
+
body: (0, index_1.AuthLoginWebRequestToJSON)(requestParameters['authLoginWebRequest']),
|
|
273
|
+
}, initOverrides)];
|
|
274
|
+
case 3:
|
|
275
|
+
response = _a.sent();
|
|
276
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Auto-generated: auth.login.web
|
|
283
|
+
*/
|
|
284
|
+
GeneralApi.prototype.authLoginWeb = function () {
|
|
285
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
286
|
+
var response;
|
|
287
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
288
|
+
return __generator(this, function (_a) {
|
|
289
|
+
switch (_a.label) {
|
|
290
|
+
case 0: return [4 /*yield*/, this.authLoginWebRaw(requestParameters, initOverrides)];
|
|
291
|
+
case 1:
|
|
292
|
+
response = _a.sent();
|
|
293
|
+
return [4 /*yield*/, response.value()];
|
|
294
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
};
|
|
189
299
|
/**
|
|
190
300
|
* Auto-generated: auth.profile.update
|
|
191
301
|
*/
|
|
@@ -2435,61 +2545,6 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
2435
2545
|
});
|
|
2436
2546
|
});
|
|
2437
2547
|
};
|
|
2438
|
-
/**
|
|
2439
|
-
* Auto-generated: loginAuth
|
|
2440
|
-
*/
|
|
2441
|
-
GeneralApi.prototype.loginAuthRaw = function (requestParameters, initOverrides) {
|
|
2442
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2443
|
-
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
2444
|
-
return __generator(this, function (_a) {
|
|
2445
|
-
switch (_a.label) {
|
|
2446
|
-
case 0:
|
|
2447
|
-
queryParameters = {};
|
|
2448
|
-
headerParameters = {};
|
|
2449
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2450
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2451
|
-
token = this.configuration.accessToken;
|
|
2452
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
2453
|
-
case 1:
|
|
2454
|
-
tokenString = _a.sent();
|
|
2455
|
-
if (tokenString) {
|
|
2456
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2457
|
-
}
|
|
2458
|
-
_a.label = 2;
|
|
2459
|
-
case 2:
|
|
2460
|
-
urlPath = "/api/auth/login";
|
|
2461
|
-
return [4 /*yield*/, this.request({
|
|
2462
|
-
path: urlPath,
|
|
2463
|
-
method: 'POST',
|
|
2464
|
-
headers: headerParameters,
|
|
2465
|
-
query: queryParameters,
|
|
2466
|
-
body: (0, index_1.LoginAuthRequestToJSON)(requestParameters['loginAuthRequest']),
|
|
2467
|
-
}, initOverrides)];
|
|
2468
|
-
case 3:
|
|
2469
|
-
response = _a.sent();
|
|
2470
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
|
|
2471
|
-
}
|
|
2472
|
-
});
|
|
2473
|
-
});
|
|
2474
|
-
};
|
|
2475
|
-
/**
|
|
2476
|
-
* Auto-generated: loginAuth
|
|
2477
|
-
*/
|
|
2478
|
-
GeneralApi.prototype.loginAuth = function () {
|
|
2479
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
2480
|
-
var response;
|
|
2481
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2482
|
-
return __generator(this, function (_a) {
|
|
2483
|
-
switch (_a.label) {
|
|
2484
|
-
case 0: return [4 /*yield*/, this.loginAuthRaw(requestParameters, initOverrides)];
|
|
2485
|
-
case 1:
|
|
2486
|
-
response = _a.sent();
|
|
2487
|
-
return [4 /*yield*/, response.value()];
|
|
2488
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
2489
|
-
}
|
|
2490
|
-
});
|
|
2491
|
-
});
|
|
2492
|
-
};
|
|
2493
2548
|
/**
|
|
2494
2549
|
* Auto-generated: logoutAuth
|
|
2495
2550
|
*/
|
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'filePath': json['filePath'],
|
|
53
51
|
'fileName': json['fileName'],
|
|
54
52
|
'mimeType': json['mimeType'],
|
|
55
|
-
'altText': json['altText'],
|
|
53
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
56
54
|
'index': json['index'],
|
|
57
55
|
'fileId': json['fileId'],
|
|
58
56
|
'isExternal': json['isExternal'],
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
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
|
+
* @interface AuthLoginWebRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthLoginWebRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthLoginWebRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthLoginWebRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AuthLoginWebRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAuthLoginWebRequest(value: object): value is AuthLoginWebRequest;
|
|
35
|
+
export declare function AuthLoginWebRequestFromJSON(json: any): AuthLoginWebRequest;
|
|
36
|
+
export declare function AuthLoginWebRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthLoginWebRequest;
|
|
37
|
+
export declare function AuthLoginWebRequestToJSON(json: any): AuthLoginWebRequest;
|
|
38
|
+
export declare function AuthLoginWebRequestToJSONTyped(value?: AuthLoginWebRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfAuthLoginWebRequest = instanceOfAuthLoginWebRequest;
|
|
17
|
+
exports.AuthLoginWebRequestFromJSON = AuthLoginWebRequestFromJSON;
|
|
18
|
+
exports.AuthLoginWebRequestFromJSONTyped = AuthLoginWebRequestFromJSONTyped;
|
|
19
|
+
exports.AuthLoginWebRequestToJSON = AuthLoginWebRequestToJSON;
|
|
20
|
+
exports.AuthLoginWebRequestToJSONTyped = AuthLoginWebRequestToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the AuthLoginWebRequest interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfAuthLoginWebRequest(value) {
|
|
25
25
|
if (!('email' in value) || value['email'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('password' in value) || value['password'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function AuthLoginWebRequestFromJSON(json) {
|
|
32
|
+
return AuthLoginWebRequestFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function AuthLoginWebRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
if (json == null) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
@@ -40,10 +40,10 @@ function LoginAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'password': json['password'],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function AuthLoginWebRequestToJSON(json) {
|
|
44
|
+
return AuthLoginWebRequestToJSONTyped(json, false);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function AuthLoginWebRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
47
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
48
|
if (value == null) {
|
|
49
49
|
return value;
|
|
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'fileId': json['file_id'],
|
|
46
44
|
'mimeType': json['mime_type'],
|
|
47
|
-
'altText': json['alt_text'],
|
|
45
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
48
46
|
'assetId': json['asset_id'],
|
|
49
47
|
'url': json['url'],
|
|
50
48
|
};
|
|
@@ -148,13 +148,13 @@ export interface RegisterListResource {
|
|
|
148
148
|
* @type {number}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLat
|
|
151
|
+
signOffLat: number;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {number}
|
|
155
155
|
* @memberof RegisterListResource
|
|
156
156
|
*/
|
|
157
|
-
signOffLong
|
|
157
|
+
signOffLong?: number | null;
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
* @type {boolean}
|
|
@@ -67,7 +67,7 @@ function instanceOfRegisterListResource(value) {
|
|
|
67
67
|
return false;
|
|
68
68
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
69
69
|
return false;
|
|
70
|
-
if (!('
|
|
70
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
71
71
|
return false;
|
|
72
72
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
73
73
|
return false;
|
|
@@ -102,8 +102,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
102
|
'firstAid': json['firstAid'],
|
|
103
103
|
'signOnLat': json['signOnLat'],
|
|
104
104
|
'signOnLong': json['signOnLong'],
|
|
105
|
-
'signOffLat': json['signOffLat']
|
|
106
|
-
'signOffLong': json['signOffLong'],
|
|
105
|
+
'signOffLat': json['signOffLat'],
|
|
106
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
107
107
|
'hasIncidents': json['hasIncidents'],
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
return {
|
|
44
46
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
47
|
'name': json['name'],
|
|
46
|
-
'email': json['email']
|
|
48
|
+
'email': json['email'],
|
|
47
49
|
'isEnabled': json['isEnabled'],
|
|
48
50
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
51
|
'licenceNumber': json['licenceNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './AssetLiteResourceArrayResponse';
|
|
|
7
7
|
export * from './AssetResource';
|
|
8
8
|
export * from './AssetResourceArrayResponse';
|
|
9
9
|
export * from './AuthChangePasswordRequest';
|
|
10
|
+
export * from './AuthLoginWebRequest';
|
|
10
11
|
export * from './AuthProfileUpdateRequest';
|
|
11
12
|
export * from './AuthRegisterGuardFileRequest';
|
|
12
13
|
export * from './AuthRegisterGuardRequest';
|
|
@@ -73,7 +74,6 @@ export * from './LicencesStoreRequest';
|
|
|
73
74
|
export * from './LicencesStoreRequestBackAsset';
|
|
74
75
|
export * from './LicencesUpdateRequest';
|
|
75
76
|
export * from './LicencesVerifyRequest';
|
|
76
|
-
export * from './LoginAuthRequest';
|
|
77
77
|
export * from './MobileAppConfigRequest';
|
|
78
78
|
export * from './MobileAppConfigResource';
|
|
79
79
|
export * from './MobileAppConfigResourceArrayResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
|
|
|
25
25
|
__exportStar(require("./AssetResource"), exports);
|
|
26
26
|
__exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
27
27
|
__exportStar(require("./AuthChangePasswordRequest"), exports);
|
|
28
|
+
__exportStar(require("./AuthLoginWebRequest"), exports);
|
|
28
29
|
__exportStar(require("./AuthProfileUpdateRequest"), exports);
|
|
29
30
|
__exportStar(require("./AuthRegisterGuardFileRequest"), exports);
|
|
30
31
|
__exportStar(require("./AuthRegisterGuardRequest"), exports);
|
|
@@ -91,7 +92,6 @@ __exportStar(require("./LicencesStoreRequest"), exports);
|
|
|
91
92
|
__exportStar(require("./LicencesStoreRequestBackAsset"), exports);
|
|
92
93
|
__exportStar(require("./LicencesUpdateRequest"), exports);
|
|
93
94
|
__exportStar(require("./LicencesVerifyRequest"), exports);
|
|
94
|
-
__exportStar(require("./LoginAuthRequest"), exports);
|
|
95
95
|
__exportStar(require("./MobileAppConfigRequest"), exports);
|
|
96
96
|
__exportStar(require("./MobileAppConfigResource"), exports);
|
|
97
97
|
__exportStar(require("./MobileAppConfigResourceArrayResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
AssetFileForUploadResource,
|
|
19
19
|
AuthChangePasswordRequest,
|
|
20
|
+
AuthLoginWebRequest,
|
|
20
21
|
AuthProfileUpdateRequest,
|
|
21
22
|
AuthRegisterGuardFileRequest,
|
|
22
23
|
AuthRegisterGuardRequest,
|
|
@@ -51,7 +52,6 @@ import type {
|
|
|
51
52
|
LicencesStoreRequest,
|
|
52
53
|
LicencesUpdateRequest,
|
|
53
54
|
LicencesVerifyRequest,
|
|
54
|
-
LoginAuthRequest,
|
|
55
55
|
MobileAppConfigRequest,
|
|
56
56
|
MobileAppConfigResource,
|
|
57
57
|
MobileDeviceResource,
|
|
@@ -126,6 +126,8 @@ import {
|
|
|
126
126
|
AssetFileForUploadResourceToJSON,
|
|
127
127
|
AuthChangePasswordRequestFromJSON,
|
|
128
128
|
AuthChangePasswordRequestToJSON,
|
|
129
|
+
AuthLoginWebRequestFromJSON,
|
|
130
|
+
AuthLoginWebRequestToJSON,
|
|
129
131
|
AuthProfileUpdateRequestFromJSON,
|
|
130
132
|
AuthProfileUpdateRequestToJSON,
|
|
131
133
|
AuthRegisterGuardFileRequestFromJSON,
|
|
@@ -194,8 +196,6 @@ import {
|
|
|
194
196
|
LicencesUpdateRequestToJSON,
|
|
195
197
|
LicencesVerifyRequestFromJSON,
|
|
196
198
|
LicencesVerifyRequestToJSON,
|
|
197
|
-
LoginAuthRequestFromJSON,
|
|
198
|
-
LoginAuthRequestToJSON,
|
|
199
199
|
MobileAppConfigRequestFromJSON,
|
|
200
200
|
MobileAppConfigRequestToJSON,
|
|
201
201
|
MobileAppConfigResourceFromJSON,
|
|
@@ -342,6 +342,14 @@ export interface AuthImpersonateRequest {
|
|
|
342
342
|
user: number;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
+
export interface AuthLoginAppRequest {
|
|
346
|
+
authLoginWebRequest?: AuthLoginWebRequest;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export interface AuthLoginWebOperationRequest {
|
|
350
|
+
authLoginWebRequest?: AuthLoginWebRequest;
|
|
351
|
+
}
|
|
352
|
+
|
|
345
353
|
export interface AuthProfileUpdateOperationRequest {
|
|
346
354
|
authProfileUpdateRequest?: AuthProfileUpdateRequest;
|
|
347
355
|
}
|
|
@@ -508,10 +516,6 @@ export interface LicencesVerifyOperationRequest {
|
|
|
508
516
|
licencesVerifyRequest?: LicencesVerifyRequest;
|
|
509
517
|
}
|
|
510
518
|
|
|
511
|
-
export interface LoginAuthOperationRequest {
|
|
512
|
-
loginAuthRequest?: LoginAuthRequest;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
519
|
export interface MobileAppConfigOperationRequest {
|
|
516
520
|
mobileAppConfigRequest?: MobileAppConfigRequest;
|
|
517
521
|
}
|
|
@@ -853,6 +857,86 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
853
857
|
return await response.value();
|
|
854
858
|
}
|
|
855
859
|
|
|
860
|
+
/**
|
|
861
|
+
* Auto-generated: auth.login.app
|
|
862
|
+
*/
|
|
863
|
+
async authLoginAppRaw(requestParameters: AuthLoginAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
|
|
864
|
+
const queryParameters: any = {};
|
|
865
|
+
|
|
866
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
867
|
+
|
|
868
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
869
|
+
|
|
870
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
871
|
+
const token = this.configuration.accessToken;
|
|
872
|
+
const tokenString = await token("bearerAuth", []);
|
|
873
|
+
|
|
874
|
+
if (tokenString) {
|
|
875
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
let urlPath = `/api/auth/login/app`;
|
|
880
|
+
|
|
881
|
+
const response = await this.request({
|
|
882
|
+
path: urlPath,
|
|
883
|
+
method: 'POST',
|
|
884
|
+
headers: headerParameters,
|
|
885
|
+
query: queryParameters,
|
|
886
|
+
body: AuthLoginWebRequestToJSON(requestParameters['authLoginWebRequest']),
|
|
887
|
+
}, initOverrides);
|
|
888
|
+
|
|
889
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Auto-generated: auth.login.app
|
|
894
|
+
*/
|
|
895
|
+
async authLoginApp(requestParameters: AuthLoginAppRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
|
|
896
|
+
const response = await this.authLoginAppRaw(requestParameters, initOverrides);
|
|
897
|
+
return await response.value();
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Auto-generated: auth.login.web
|
|
902
|
+
*/
|
|
903
|
+
async authLoginWebRaw(requestParameters: AuthLoginWebOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
|
|
904
|
+
const queryParameters: any = {};
|
|
905
|
+
|
|
906
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
907
|
+
|
|
908
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
909
|
+
|
|
910
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
911
|
+
const token = this.configuration.accessToken;
|
|
912
|
+
const tokenString = await token("bearerAuth", []);
|
|
913
|
+
|
|
914
|
+
if (tokenString) {
|
|
915
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
let urlPath = `/api/auth/login/web`;
|
|
920
|
+
|
|
921
|
+
const response = await this.request({
|
|
922
|
+
path: urlPath,
|
|
923
|
+
method: 'POST',
|
|
924
|
+
headers: headerParameters,
|
|
925
|
+
query: queryParameters,
|
|
926
|
+
body: AuthLoginWebRequestToJSON(requestParameters['authLoginWebRequest']),
|
|
927
|
+
}, initOverrides);
|
|
928
|
+
|
|
929
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Auto-generated: auth.login.web
|
|
934
|
+
*/
|
|
935
|
+
async authLoginWeb(requestParameters: AuthLoginWebOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
|
|
936
|
+
const response = await this.authLoginWebRaw(requestParameters, initOverrides);
|
|
937
|
+
return await response.value();
|
|
938
|
+
}
|
|
939
|
+
|
|
856
940
|
/**
|
|
857
941
|
* Auto-generated: auth.profile.update
|
|
858
942
|
*/
|
|
@@ -2620,46 +2704,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
2620
2704
|
return await response.value();
|
|
2621
2705
|
}
|
|
2622
2706
|
|
|
2623
|
-
/**
|
|
2624
|
-
* Auto-generated: loginAuth
|
|
2625
|
-
*/
|
|
2626
|
-
async loginAuthRaw(requestParameters: LoginAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
|
|
2627
|
-
const queryParameters: any = {};
|
|
2628
|
-
|
|
2629
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2630
|
-
|
|
2631
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2632
|
-
|
|
2633
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2634
|
-
const token = this.configuration.accessToken;
|
|
2635
|
-
const tokenString = await token("bearerAuth", []);
|
|
2636
|
-
|
|
2637
|
-
if (tokenString) {
|
|
2638
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
let urlPath = `/api/auth/login`;
|
|
2643
|
-
|
|
2644
|
-
const response = await this.request({
|
|
2645
|
-
path: urlPath,
|
|
2646
|
-
method: 'POST',
|
|
2647
|
-
headers: headerParameters,
|
|
2648
|
-
query: queryParameters,
|
|
2649
|
-
body: LoginAuthRequestToJSON(requestParameters['loginAuthRequest']),
|
|
2650
|
-
}, initOverrides);
|
|
2651
|
-
|
|
2652
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
|
|
2653
|
-
}
|
|
2654
|
-
|
|
2655
|
-
/**
|
|
2656
|
-
* Auto-generated: loginAuth
|
|
2657
|
-
*/
|
|
2658
|
-
async loginAuth(requestParameters: LoginAuthOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
|
|
2659
|
-
const response = await this.loginAuthRaw(requestParameters, initOverrides);
|
|
2660
|
-
return await response.value();
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
2707
|
/**
|
|
2664
2708
|
* Auto-generated: logoutAuth
|
|
2665
2709
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -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'],
|
|
@@ -16,37 +16,37 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface AuthLoginWebRequest
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface AuthLoginWebRequest {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof AuthLoginWebRequest
|
|
26
26
|
*/
|
|
27
27
|
email: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof AuthLoginWebRequest
|
|
32
32
|
*/
|
|
33
33
|
password: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the AuthLoginWebRequest interface.
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
39
|
+
export function instanceOfAuthLoginWebRequest(value: object): value is AuthLoginWebRequest {
|
|
40
40
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
41
|
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
45
|
+
export function AuthLoginWebRequestFromJSON(json: any): AuthLoginWebRequest {
|
|
46
|
+
return AuthLoginWebRequestFromJSONTyped(json, false);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export function
|
|
49
|
+
export function AuthLoginWebRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthLoginWebRequest {
|
|
50
50
|
if (json == null) {
|
|
51
51
|
return json;
|
|
52
52
|
}
|
|
@@ -57,11 +57,11 @@ export function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
60
|
+
export function AuthLoginWebRequestToJSON(json: any): AuthLoginWebRequest {
|
|
61
|
+
return AuthLoginWebRequestToJSONTyped(json, false);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function
|
|
64
|
+
export function AuthLoginWebRequestToJSONTyped(value?: AuthLoginWebRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
65
|
if (value == null) {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
@@ -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
|
};
|
|
@@ -165,13 +165,13 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat: number;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong?: number | null;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -213,7 +213,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
213
213
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
214
214
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
215
215
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
|
-
if (!('
|
|
216
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
217
217
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
218
218
|
return true;
|
|
219
219
|
}
|
|
@@ -249,8 +249,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
249
249
|
'firstAid': json['firstAid'],
|
|
250
250
|
'signOnLat': json['signOnLat'],
|
|
251
251
|
'signOnLong': json['signOnLong'],
|
|
252
|
-
'signOffLat': json['signOffLat']
|
|
253
|
-
'signOffLong': json['signOffLong'],
|
|
252
|
+
'signOffLat': json['signOffLat'],
|
|
253
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
254
254
|
'hasIncidents': json['hasIncidents'],
|
|
255
255
|
};
|
|
256
256
|
}
|
|
@@ -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'],
|
package/src/models/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './AssetLiteResourceArrayResponse';
|
|
|
9
9
|
export * from './AssetResource';
|
|
10
10
|
export * from './AssetResourceArrayResponse';
|
|
11
11
|
export * from './AuthChangePasswordRequest';
|
|
12
|
+
export * from './AuthLoginWebRequest';
|
|
12
13
|
export * from './AuthProfileUpdateRequest';
|
|
13
14
|
export * from './AuthRegisterGuardFileRequest';
|
|
14
15
|
export * from './AuthRegisterGuardRequest';
|
|
@@ -75,7 +76,6 @@ export * from './LicencesStoreRequest';
|
|
|
75
76
|
export * from './LicencesStoreRequestBackAsset';
|
|
76
77
|
export * from './LicencesUpdateRequest';
|
|
77
78
|
export * from './LicencesVerifyRequest';
|
|
78
|
-
export * from './LoginAuthRequest';
|
|
79
79
|
export * from './MobileAppConfigRequest';
|
|
80
80
|
export * from './MobileAppConfigResource';
|
|
81
81
|
export * from './MobileAppConfigResourceArrayResponse';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
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
|
-
* @interface LoginAuthRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LoginAuthRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LoginAuthRequest
|
|
22
|
-
*/
|
|
23
|
-
email: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LoginAuthRequest
|
|
28
|
-
*/
|
|
29
|
-
password: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the LoginAuthRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfLoginAuthRequest(value: object): value is LoginAuthRequest;
|
|
35
|
-
export declare function LoginAuthRequestFromJSON(json: any): LoginAuthRequest;
|
|
36
|
-
export declare function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAuthRequest;
|
|
37
|
-
export declare function LoginAuthRequestToJSON(json: any): LoginAuthRequest;
|
|
38
|
-
export declare function LoginAuthRequestToJSONTyped(value?: LoginAuthRequest | null, ignoreDiscriminator?: boolean): any;
|