@digital8/security-registers-backend-ts-sdk 0.0.288 → 0.0.289
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 +7 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +50 -1
- package/dist/apis/GeneralApi.js +269 -0
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthChangePasswordRequest.d.ts +38 -0
- package/dist/models/AuthChangePasswordRequest.js +55 -0
- package/dist/models/AuthProfileUpdateRequest.d.ts +56 -0
- package/dist/models/AuthProfileUpdateRequest.js +57 -0
- package/dist/models/DevicesRegisterRequest.d.ts +70 -0
- package/dist/models/DevicesRegisterRequest.js +71 -0
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/MobileDeviceResource.d.ts +86 -0
- package/dist/models/MobileDeviceResource.js +82 -0
- package/dist/models/MobileDeviceResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileDeviceResourceArrayResponse.js +50 -0
- package/dist/models/MobileInitResource.d.ts +47 -0
- package/dist/models/MobileInitResource.js +62 -0
- package/dist/models/MobileInitResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileInitResourceArrayResponse.js +50 -0
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +4 -4
- 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/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +221 -0
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthChangePasswordRequest.ts +75 -0
- package/src/models/AuthProfileUpdateRequest.ts +97 -0
- package/src/models/DevicesRegisterRequest.ts +118 -0
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/MobileDeviceResource.ts +144 -0
- package/src/models/MobileDeviceResourceArrayResponse.ts +73 -0
- package/src/models/MobileInitResource.ts +106 -0
- package/src/models/MobileInitResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterResource.ts +4 -3
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,97 @@
|
|
|
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 AuthProfileUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthProfileUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthProfileUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
firstName?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuthProfileUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
lastName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AuthProfileUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
email?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AuthProfileUpdateRequest
|
|
44
|
+
*/
|
|
45
|
+
mobile?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AuthProfileUpdateRequest
|
|
50
|
+
*/
|
|
51
|
+
signatureAssetId?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAuthProfileUpdateRequest(value: object): value is AuthProfileUpdateRequest {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function AuthProfileUpdateRequestFromJSON(json: any): AuthProfileUpdateRequest {
|
|
62
|
+
return AuthProfileUpdateRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function AuthProfileUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthProfileUpdateRequest {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
72
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
73
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
74
|
+
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
75
|
+
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function AuthProfileUpdateRequestToJSON(json: any): AuthProfileUpdateRequest {
|
|
80
|
+
return AuthProfileUpdateRequestToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AuthProfileUpdateRequestToJSONTyped(value?: AuthProfileUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'first_name': value['firstName'],
|
|
91
|
+
'last_name': value['lastName'],
|
|
92
|
+
'email': value['email'],
|
|
93
|
+
'mobile': value['mobile'],
|
|
94
|
+
'signature_asset_id': value['signatureAssetId'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
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 DevicesRegisterRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DevicesRegisterRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DevicesRegisterRequest
|
|
26
|
+
*/
|
|
27
|
+
deviceId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DevicesRegisterRequest
|
|
32
|
+
*/
|
|
33
|
+
platform: DevicesRegisterRequestPlatformEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DevicesRegisterRequest
|
|
38
|
+
*/
|
|
39
|
+
osVersion?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DevicesRegisterRequest
|
|
44
|
+
*/
|
|
45
|
+
appVersion?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof DevicesRegisterRequest
|
|
50
|
+
*/
|
|
51
|
+
model?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof DevicesRegisterRequest
|
|
56
|
+
*/
|
|
57
|
+
pushToken?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const DevicesRegisterRequestPlatformEnum = {
|
|
65
|
+
Ios: 'ios',
|
|
66
|
+
Android: 'android'
|
|
67
|
+
} as const;
|
|
68
|
+
export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the DevicesRegisterRequest interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest {
|
|
75
|
+
if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
|
|
76
|
+
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest {
|
|
81
|
+
return DevicesRegisterRequestFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'deviceId': json['device_id'],
|
|
91
|
+
'platform': json['platform'],
|
|
92
|
+
'osVersion': json['os_version'] == null ? undefined : json['os_version'],
|
|
93
|
+
'appVersion': json['app_version'] == null ? undefined : json['app_version'],
|
|
94
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
95
|
+
'pushToken': json['push_token'] == null ? undefined : json['push_token'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest {
|
|
100
|
+
return DevicesRegisterRequestToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'device_id': value['deviceId'],
|
|
111
|
+
'platform': value['platform'],
|
|
112
|
+
'os_version': value['osVersion'],
|
|
113
|
+
'app_version': value['appVersion'],
|
|
114
|
+
'model': value['model'],
|
|
115
|
+
'push_token': value['pushToken'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -0,0 +1,144 @@
|
|
|
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 MobileDeviceResource
|
|
20
|
+
*/
|
|
21
|
+
export interface MobileDeviceResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof MobileDeviceResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MobileDeviceResource
|
|
32
|
+
*/
|
|
33
|
+
deviceId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MobileDeviceResource
|
|
38
|
+
*/
|
|
39
|
+
platform: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MobileDeviceResource
|
|
44
|
+
*/
|
|
45
|
+
osVersion: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MobileDeviceResource
|
|
50
|
+
*/
|
|
51
|
+
appVersion: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof MobileDeviceResource
|
|
56
|
+
*/
|
|
57
|
+
model: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MobileDeviceResource
|
|
62
|
+
*/
|
|
63
|
+
pushToken: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof MobileDeviceResource
|
|
68
|
+
*/
|
|
69
|
+
lastSeenAt: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof MobileDeviceResource
|
|
74
|
+
*/
|
|
75
|
+
createdAt?: Date | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof MobileDeviceResource
|
|
80
|
+
*/
|
|
81
|
+
updatedAt?: Date | null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the MobileDeviceResource interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfMobileDeviceResource(value: object): value is MobileDeviceResource {
|
|
88
|
+
if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
|
|
89
|
+
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
90
|
+
if (!('osVersion' in value) || value['osVersion'] === undefined) return false;
|
|
91
|
+
if (!('appVersion' in value) || value['appVersion'] === undefined) return false;
|
|
92
|
+
if (!('model' in value) || value['model'] === undefined) return false;
|
|
93
|
+
if (!('pushToken' in value) || value['pushToken'] === undefined) return false;
|
|
94
|
+
if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined) return false;
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function MobileDeviceResourceFromJSON(json: any): MobileDeviceResource {
|
|
99
|
+
return MobileDeviceResourceFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function MobileDeviceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResource {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
109
|
+
'deviceId': json['deviceId'],
|
|
110
|
+
'platform': json['platform'],
|
|
111
|
+
'osVersion': json['osVersion'],
|
|
112
|
+
'appVersion': json['appVersion'],
|
|
113
|
+
'model': json['model'],
|
|
114
|
+
'pushToken': json['pushToken'],
|
|
115
|
+
'lastSeenAt': (new Date(json['lastSeenAt'])),
|
|
116
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
117
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function MobileDeviceResourceToJSON(json: any): MobileDeviceResource {
|
|
122
|
+
return MobileDeviceResourceToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function MobileDeviceResourceToJSONTyped(value?: MobileDeviceResource | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': value['id'],
|
|
133
|
+
'deviceId': value['deviceId'],
|
|
134
|
+
'platform': value['platform'],
|
|
135
|
+
'osVersion': value['osVersion'],
|
|
136
|
+
'appVersion': value['appVersion'],
|
|
137
|
+
'model': value['model'],
|
|
138
|
+
'pushToken': value['pushToken'],
|
|
139
|
+
'lastSeenAt': ((value['lastSeenAt']).toISOString()),
|
|
140
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
141
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
@@ -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 { MobileDeviceResource } from './MobileDeviceResource';
|
|
17
|
+
import {
|
|
18
|
+
MobileDeviceResourceFromJSON,
|
|
19
|
+
MobileDeviceResourceFromJSONTyped,
|
|
20
|
+
MobileDeviceResourceToJSON,
|
|
21
|
+
MobileDeviceResourceToJSONTyped,
|
|
22
|
+
} from './MobileDeviceResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MobileDeviceResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface MobileDeviceResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<MobileDeviceResource>}
|
|
33
|
+
* @memberof MobileDeviceResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<MobileDeviceResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MobileDeviceResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfMobileDeviceResourceArrayResponse(value: object): value is MobileDeviceResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MobileDeviceResourceArrayResponseFromJSON(json: any): MobileDeviceResourceArrayResponse {
|
|
46
|
+
return MobileDeviceResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MobileDeviceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileDeviceResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function MobileDeviceResourceArrayResponseToJSON(json: any): MobileDeviceResourceArrayResponse {
|
|
60
|
+
return MobileDeviceResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function MobileDeviceResourceArrayResponseToJSONTyped(value?: MobileDeviceResourceArrayResponse | 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(MobileDeviceResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
17
|
+
import {
|
|
18
|
+
NotificationPreferenceResourceFromJSON,
|
|
19
|
+
NotificationPreferenceResourceFromJSONTyped,
|
|
20
|
+
NotificationPreferenceResourceToJSON,
|
|
21
|
+
NotificationPreferenceResourceToJSONTyped,
|
|
22
|
+
} from './NotificationPreferenceResource';
|
|
23
|
+
import type { UserResource } from './UserResource';
|
|
24
|
+
import {
|
|
25
|
+
UserResourceFromJSON,
|
|
26
|
+
UserResourceFromJSONTyped,
|
|
27
|
+
UserResourceToJSON,
|
|
28
|
+
UserResourceToJSONTyped,
|
|
29
|
+
} from './UserResource';
|
|
30
|
+
import type { RosterListResource } from './RosterListResource';
|
|
31
|
+
import {
|
|
32
|
+
RosterListResourceFromJSON,
|
|
33
|
+
RosterListResourceFromJSONTyped,
|
|
34
|
+
RosterListResourceToJSON,
|
|
35
|
+
RosterListResourceToJSONTyped,
|
|
36
|
+
} from './RosterListResource';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface MobileInitResource
|
|
42
|
+
*/
|
|
43
|
+
export interface MobileInitResource {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {UserResource}
|
|
47
|
+
* @memberof MobileInitResource
|
|
48
|
+
*/
|
|
49
|
+
user: UserResource | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<RosterListResource>}
|
|
53
|
+
* @memberof MobileInitResource
|
|
54
|
+
*/
|
|
55
|
+
rosters: Array<RosterListResource> | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<NotificationPreferenceResource>}
|
|
59
|
+
* @memberof MobileInitResource
|
|
60
|
+
*/
|
|
61
|
+
notificationPreferences: Array<NotificationPreferenceResource> | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the MobileInitResource interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfMobileInitResource(value: object): value is MobileInitResource {
|
|
68
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
69
|
+
if (!('rosters' in value) || value['rosters'] === undefined) return false;
|
|
70
|
+
if (!('notificationPreferences' in value) || value['notificationPreferences'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function MobileInitResourceFromJSON(json: any): MobileInitResource {
|
|
75
|
+
return MobileInitResourceFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function MobileInitResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResource {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'user': UserResourceFromJSON(json['user']),
|
|
85
|
+
'rosters': (json['rosters'] == null ? null : (json['rosters'] as Array<any>).map(RosterListResourceFromJSON)),
|
|
86
|
+
'notificationPreferences': (json['notificationPreferences'] == null ? null : (json['notificationPreferences'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function MobileInitResourceToJSON(json: any): MobileInitResource {
|
|
91
|
+
return MobileInitResourceToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function MobileInitResourceToJSONTyped(value?: MobileInitResource | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'user': UserResourceToJSON(value['user']),
|
|
102
|
+
'rosters': (value['rosters'] == null ? null : (value['rosters'] as Array<any>).map(RosterListResourceToJSON)),
|
|
103
|
+
'notificationPreferences': (value['notificationPreferences'] == null ? null : (value['notificationPreferences'] as Array<any>).map(NotificationPreferenceResourceToJSON)),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -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 { MobileInitResource } from './MobileInitResource';
|
|
17
|
+
import {
|
|
18
|
+
MobileInitResourceFromJSON,
|
|
19
|
+
MobileInitResourceFromJSONTyped,
|
|
20
|
+
MobileInitResourceToJSON,
|
|
21
|
+
MobileInitResourceToJSONTyped,
|
|
22
|
+
} from './MobileInitResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MobileInitResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface MobileInitResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<MobileInitResource>}
|
|
33
|
+
* @memberof MobileInitResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<MobileInitResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MobileInitResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfMobileInitResourceArrayResponse(value: object): value is MobileInitResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MobileInitResourceArrayResponseFromJSON(json: any): MobileInitResourceArrayResponse {
|
|
46
|
+
return MobileInitResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MobileInitResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileInitResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function MobileInitResourceArrayResponseToJSON(json: any): MobileInitResourceArrayResponse {
|
|
60
|
+
return MobileInitResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function MobileInitResourceArrayResponseToJSONTyped(value?: MobileInitResourceArrayResponse | 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(MobileInitResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -88,7 +88,7 @@ export interface RegisterListResource {
|
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof RegisterListResource
|
|
90
90
|
*/
|
|
91
|
-
badgeNumber
|
|
91
|
+
badgeNumber: string;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
@@ -190,6 +190,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
190
190
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
191
191
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
192
192
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
193
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
193
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
194
195
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
195
196
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -225,7 +226,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
225
226
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
226
227
|
'shiftLength': json['shiftLength'],
|
|
227
228
|
'signOffStatus': json['signOffStatus'],
|
|
228
|
-
'badgeNumber': json['badgeNumber']
|
|
229
|
+
'badgeNumber': json['badgeNumber'],
|
|
229
230
|
'licenceNumber': json['licenceNumber'],
|
|
230
231
|
'licenceFirstName': json['licenceFirstName'],
|
|
231
232
|
'licenceLastName': json['licenceLastName'],
|