@digital8/security-registers-backend-ts-sdk 0.0.436 → 0.0.437
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/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.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/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 +1 -3
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -2
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- 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/AssetResource.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/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/index.ts +3 -0
|
@@ -24,6 +24,8 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -36,14 +38,13 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
38
40
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
39
|
-
'finishDateTime':
|
|
41
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function RosterLiteResourceToJSON(json) {
|
|
43
45
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
44
46
|
}
|
|
45
47
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
var _a;
|
|
47
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
49
|
if (value == null) {
|
|
49
50
|
return value;
|
|
@@ -51,6 +52,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
54
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
54
|
-
'finishDateTime':
|
|
55
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
55
56
|
};
|
|
56
57
|
}
|
|
@@ -42,6 +42,8 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -65,7 +67,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'state': json['state'],
|
|
66
68
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
67
69
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
68
|
-
'finishDateTime':
|
|
70
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
69
71
|
'isCompliant': json['isCompliant'],
|
|
70
72
|
'isComplete': json['isComplete'],
|
|
71
73
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -76,7 +78,6 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
76
78
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
77
79
|
}
|
|
78
80
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
79
|
-
var _a;
|
|
80
81
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
82
|
if (value == null) {
|
|
82
83
|
return value;
|
|
@@ -87,7 +88,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
88
|
'state': value['state'],
|
|
88
89
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
89
90
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
90
|
-
'finishDateTime':
|
|
91
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
91
92
|
'isCompliant': value['isCompliant'],
|
|
92
93
|
'isComplete': value['isComplete'],
|
|
93
94
|
'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
|
*/
|
|
@@ -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'],
|
|
@@ -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
|
}
|
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong?: number | null;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -214,7 +214,6 @@ 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 (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
218
217
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
219
218
|
return true;
|
|
220
219
|
}
|
|
@@ -251,7 +250,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
251
250
|
'signOnLat': json['signOnLat'],
|
|
252
251
|
'signOnLong': json['signOnLong'],
|
|
253
252
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
254
|
-
'signOffLong': json['signOffLong'],
|
|
253
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
255
254
|
'hasIncidents': json['hasIncidents'],
|
|
256
255
|
};
|
|
257
256
|
}
|
|
@@ -123,13 +123,13 @@ 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}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong: number;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -209,6 +209,8 @@ 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;
|
|
213
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
212
214
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
213
215
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
214
216
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -241,8 +243,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
241
243
|
'firstAidImage': json['firstAidImage'],
|
|
242
244
|
'signOnLat': json['signOnLat'],
|
|
243
245
|
'signOnLong': json['signOnLong'],
|
|
244
|
-
'signOffLat': json['signOffLat']
|
|
245
|
-
'signOffLong': json['signOffLong']
|
|
246
|
+
'signOffLat': json['signOffLat'],
|
|
247
|
+
'signOffLong': json['signOffLong'],
|
|
246
248
|
'licenceNumber': json['licenceNumber'],
|
|
247
249
|
'licenceExpiry': json['licenceExpiry'],
|
|
248
250
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -115,6 +115,7 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
115
115
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
116
116
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
117
117
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
118
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
118
119
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
119
120
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
120
121
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -137,7 +138,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
137
138
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
138
139
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
139
140
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
140
|
-
'finishDateTime':
|
|
141
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
141
142
|
'isCompliant': json['isCompliant'],
|
|
142
143
|
'isComplete': json['isComplete'],
|
|
143
144
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -161,7 +162,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
161
162
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
162
163
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
163
164
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
164
|
-
'finishDateTime':
|
|
165
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
165
166
|
'isCompliant': value['isCompliant'],
|
|
166
167
|
'isComplete': value['isComplete'],
|
|
167
168
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
|
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof RosterLiteResource
|
|
38
38
|
*/
|
|
39
|
-
finishDateTime
|
|
39
|
+
finishDateTime: Date;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,6 +44,7 @@ export interface RosterLiteResource {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
|
|
46
46
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
47
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -59,7 +60,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
60
|
|
|
60
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
62
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
62
|
-
'finishDateTime':
|
|
63
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -76,7 +77,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
76
77
|
|
|
77
78
|
'id': value['id'],
|
|
78
79
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
79
|
-
'finishDateTime':
|
|
80
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|