@digital8/security-registers-backend-ts-sdk 0.0.436 → 0.0.438
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -1
- package/dist/apis/GeneralApi.js +55 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- 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/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +50 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/MobileAppConfigRequest.ts +86 -0
- package/src/models/MobileAppConfigResource.ts +103 -0
- package/src/models/MobileAppConfigResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterResource.ts +3 -4
- package/src/models/index.ts +3 -0
|
@@ -40,8 +40,6 @@ function instanceOfRosterResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -64,7 +62,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
65
63
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
66
64
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
67
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
65
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
68
66
|
'isCompliant': json['isCompliant'],
|
|
69
67
|
'isComplete': json['isComplete'],
|
|
70
68
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -75,6 +73,7 @@ function RosterResourceToJSON(json) {
|
|
|
75
73
|
return RosterResourceToJSONTyped(json, false);
|
|
76
74
|
}
|
|
77
75
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
76
|
+
var _a;
|
|
78
77
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
79
78
|
if (value == null) {
|
|
80
79
|
return value;
|
|
@@ -84,7 +83,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
83
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
85
84
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
86
85
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
87
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
86
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
88
87
|
'isCompliant': value['isCompliant'],
|
|
89
88
|
'isComplete': value['isComplete'],
|
|
90
89
|
'signOffStatus': value['signOffStatus'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
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
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ 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;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'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'],
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ 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;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -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
|
+
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime?: Date | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,7 +86,6 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
|
|
|
86
86
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
87
87
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
88
88
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
89
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
90
89
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
91
90
|
return true;
|
|
92
91
|
}
|
|
@@ -106,7 +105,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
106
105
|
'timezone': json['timezone'],
|
|
107
106
|
'state': json['state'],
|
|
108
107
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
109
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
108
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
110
109
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
111
110
|
};
|
|
112
111
|
}
|
|
@@ -127,7 +126,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
127
126
|
'timezone': value['timezone'],
|
|
128
127
|
'state': value['state'],
|
|
129
128
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
130
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
129
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
131
130
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
132
131
|
};
|
|
133
132
|
}
|
|
@@ -165,7 +165,7 @@ 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}
|
|
@@ -214,6 +214,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
214
214
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
215
215
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
216
216
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
217
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
217
218
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
218
219
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
219
220
|
return true;
|
|
@@ -250,7 +251,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
250
251
|
'firstAid': json['firstAid'],
|
|
251
252
|
'signOnLat': json['signOnLat'],
|
|
252
253
|
'signOnLong': json['signOnLong'],
|
|
253
|
-
'signOffLat': json['signOffLat']
|
|
254
|
+
'signOffLat': json['signOffLat'],
|
|
254
255
|
'signOffLong': json['signOffLong'],
|
|
255
256
|
'hasIncidents': json['hasIncidents'],
|
|
256
257
|
};
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -209,6 +209,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
209
209
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
210
210
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
211
211
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
212
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
212
213
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
213
214
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
214
215
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -241,7 +242,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
241
242
|
'firstAidImage': json['firstAidImage'],
|
|
242
243
|
'signOnLat': json['signOnLat'],
|
|
243
244
|
'signOnLong': json['signOnLong'],
|
|
244
|
-
'signOffLat': json['signOffLat']
|
|
245
|
+
'signOffLat': json['signOffLat'],
|
|
245
246
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
246
247
|
'licenceNumber': json['licenceNumber'],
|
|
247
248
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime?: Date | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -116,7 +116,6 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
116
116
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
117
117
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
118
118
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
119
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
120
119
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
121
120
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
122
121
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -138,7 +137,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
138
137
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
139
138
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
140
139
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
141
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
140
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
142
141
|
'isCompliant': json['isCompliant'],
|
|
143
142
|
'isComplete': json['isComplete'],
|
|
144
143
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -161,7 +160,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
161
160
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
162
161
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
163
162
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
164
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
163
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
165
164
|
'isCompliant': value['isCompliant'],
|
|
166
165
|
'isComplete': value['isComplete'],
|
|
167
166
|
'signOffStatus': value['signOffStatus'],
|
package/src/models/index.ts
CHANGED
|
@@ -75,6 +75,9 @@ export * from './LicencesStoreRequestBackAsset';
|
|
|
75
75
|
export * from './LicencesUpdateRequest';
|
|
76
76
|
export * from './LicencesVerifyRequest';
|
|
77
77
|
export * from './LoginAuthRequest';
|
|
78
|
+
export * from './MobileAppConfigRequest';
|
|
79
|
+
export * from './MobileAppConfigResource';
|
|
80
|
+
export * from './MobileAppConfigResourceArrayResponse';
|
|
78
81
|
export * from './MobileDeviceResource';
|
|
79
82
|
export * from './MobileDeviceResourceArrayResponse';
|
|
80
83
|
export * from './MobileInitResource';
|