@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,70 @@
|
|
|
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 DevicesRegisterRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DevicesRegisterRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DevicesRegisterRequest
|
|
22
|
+
*/
|
|
23
|
+
deviceId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DevicesRegisterRequest
|
|
28
|
+
*/
|
|
29
|
+
platform: DevicesRegisterRequestPlatformEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DevicesRegisterRequest
|
|
34
|
+
*/
|
|
35
|
+
osVersion?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DevicesRegisterRequest
|
|
40
|
+
*/
|
|
41
|
+
appVersion?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DevicesRegisterRequest
|
|
46
|
+
*/
|
|
47
|
+
model?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof DevicesRegisterRequest
|
|
52
|
+
*/
|
|
53
|
+
pushToken?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const DevicesRegisterRequestPlatformEnum: {
|
|
59
|
+
readonly Ios: "ios";
|
|
60
|
+
readonly Android: "android";
|
|
61
|
+
};
|
|
62
|
+
export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the DevicesRegisterRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest;
|
|
67
|
+
export declare function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest;
|
|
68
|
+
export declare function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest;
|
|
69
|
+
export declare function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest;
|
|
70
|
+
export declare function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DevicesRegisterRequestPlatformEnum = void 0;
|
|
17
|
+
exports.instanceOfDevicesRegisterRequest = instanceOfDevicesRegisterRequest;
|
|
18
|
+
exports.DevicesRegisterRequestFromJSON = DevicesRegisterRequestFromJSON;
|
|
19
|
+
exports.DevicesRegisterRequestFromJSONTyped = DevicesRegisterRequestFromJSONTyped;
|
|
20
|
+
exports.DevicesRegisterRequestToJSON = DevicesRegisterRequestToJSON;
|
|
21
|
+
exports.DevicesRegisterRequestToJSONTyped = DevicesRegisterRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DevicesRegisterRequestPlatformEnum = {
|
|
26
|
+
Ios: 'ios',
|
|
27
|
+
Android: 'android'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the DevicesRegisterRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfDevicesRegisterRequest(value) {
|
|
33
|
+
if (!('deviceId' in value) || value['deviceId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('platform' in value) || value['platform'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function DevicesRegisterRequestFromJSON(json) {
|
|
40
|
+
return DevicesRegisterRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function DevicesRegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'deviceId': json['device_id'],
|
|
48
|
+
'platform': json['platform'],
|
|
49
|
+
'osVersion': json['os_version'] == null ? undefined : json['os_version'],
|
|
50
|
+
'appVersion': json['app_version'] == null ? undefined : json['app_version'],
|
|
51
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
52
|
+
'pushToken': json['push_token'] == null ? undefined : json['push_token'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function DevicesRegisterRequestToJSON(json) {
|
|
56
|
+
return DevicesRegisterRequestToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function DevicesRegisterRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'device_id': value['deviceId'],
|
|
65
|
+
'platform': value['platform'],
|
|
66
|
+
'os_version': value['osVersion'],
|
|
67
|
+
'app_version': value['appVersion'],
|
|
68
|
+
'model': value['model'],
|
|
69
|
+
'push_token': value['pushToken'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
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 MobileDeviceResource
|
|
16
|
+
*/
|
|
17
|
+
export interface MobileDeviceResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof MobileDeviceResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MobileDeviceResource
|
|
28
|
+
*/
|
|
29
|
+
deviceId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MobileDeviceResource
|
|
34
|
+
*/
|
|
35
|
+
platform: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MobileDeviceResource
|
|
40
|
+
*/
|
|
41
|
+
osVersion: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof MobileDeviceResource
|
|
46
|
+
*/
|
|
47
|
+
appVersion: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof MobileDeviceResource
|
|
52
|
+
*/
|
|
53
|
+
model: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof MobileDeviceResource
|
|
58
|
+
*/
|
|
59
|
+
pushToken: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof MobileDeviceResource
|
|
64
|
+
*/
|
|
65
|
+
lastSeenAt: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof MobileDeviceResource
|
|
70
|
+
*/
|
|
71
|
+
createdAt?: Date | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof MobileDeviceResource
|
|
76
|
+
*/
|
|
77
|
+
updatedAt?: Date | null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the MobileDeviceResource interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfMobileDeviceResource(value: object): value is MobileDeviceResource;
|
|
83
|
+
export declare function MobileDeviceResourceFromJSON(json: any): MobileDeviceResource;
|
|
84
|
+
export declare function MobileDeviceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResource;
|
|
85
|
+
export declare function MobileDeviceResourceToJSON(json: any): MobileDeviceResource;
|
|
86
|
+
export declare function MobileDeviceResourceToJSONTyped(value?: MobileDeviceResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMobileDeviceResource = instanceOfMobileDeviceResource;
|
|
17
|
+
exports.MobileDeviceResourceFromJSON = MobileDeviceResourceFromJSON;
|
|
18
|
+
exports.MobileDeviceResourceFromJSONTyped = MobileDeviceResourceFromJSONTyped;
|
|
19
|
+
exports.MobileDeviceResourceToJSON = MobileDeviceResourceToJSON;
|
|
20
|
+
exports.MobileDeviceResourceToJSONTyped = MobileDeviceResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MobileDeviceResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMobileDeviceResource(value) {
|
|
25
|
+
if (!('deviceId' in value) || value['deviceId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('platform' in value) || value['platform'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('osVersion' in value) || value['osVersion'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('appVersion' in value) || value['appVersion'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('pushToken' in value) || value['pushToken'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function MobileDeviceResourceFromJSON(json) {
|
|
42
|
+
return MobileDeviceResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MobileDeviceResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
+
'deviceId': json['deviceId'],
|
|
51
|
+
'platform': json['platform'],
|
|
52
|
+
'osVersion': json['osVersion'],
|
|
53
|
+
'appVersion': json['appVersion'],
|
|
54
|
+
'model': json['model'],
|
|
55
|
+
'pushToken': json['pushToken'],
|
|
56
|
+
'lastSeenAt': (new Date(json['lastSeenAt'])),
|
|
57
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
58
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function MobileDeviceResourceToJSON(json) {
|
|
62
|
+
return MobileDeviceResourceToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function MobileDeviceResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'deviceId': value['deviceId'],
|
|
73
|
+
'platform': value['platform'],
|
|
74
|
+
'osVersion': value['osVersion'],
|
|
75
|
+
'appVersion': value['appVersion'],
|
|
76
|
+
'model': value['model'],
|
|
77
|
+
'pushToken': value['pushToken'],
|
|
78
|
+
'lastSeenAt': ((value['lastSeenAt']).toISOString()),
|
|
79
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
80
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { MobileDeviceResource } from './MobileDeviceResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MobileDeviceResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MobileDeviceResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<MobileDeviceResource>}
|
|
22
|
+
* @memberof MobileDeviceResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<MobileDeviceResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the MobileDeviceResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfMobileDeviceResourceArrayResponse(value: object): value is MobileDeviceResourceArrayResponse;
|
|
30
|
+
export declare function MobileDeviceResourceArrayResponseFromJSON(json: any): MobileDeviceResourceArrayResponse;
|
|
31
|
+
export declare function MobileDeviceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResourceArrayResponse;
|
|
32
|
+
export declare function MobileDeviceResourceArrayResponseToJSON(json: any): MobileDeviceResourceArrayResponse;
|
|
33
|
+
export declare function MobileDeviceResourceArrayResponseToJSONTyped(value?: MobileDeviceResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMobileDeviceResourceArrayResponse = instanceOfMobileDeviceResourceArrayResponse;
|
|
17
|
+
exports.MobileDeviceResourceArrayResponseFromJSON = MobileDeviceResourceArrayResponseFromJSON;
|
|
18
|
+
exports.MobileDeviceResourceArrayResponseFromJSONTyped = MobileDeviceResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.MobileDeviceResourceArrayResponseToJSON = MobileDeviceResourceArrayResponseToJSON;
|
|
20
|
+
exports.MobileDeviceResourceArrayResponseToJSONTyped = MobileDeviceResourceArrayResponseToJSONTyped;
|
|
21
|
+
var MobileDeviceResource_1 = require("./MobileDeviceResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MobileDeviceResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMobileDeviceResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function MobileDeviceResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return MobileDeviceResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function MobileDeviceResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(MobileDeviceResource_1.MobileDeviceResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MobileDeviceResourceArrayResponseToJSON(json) {
|
|
40
|
+
return MobileDeviceResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MobileDeviceResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(MobileDeviceResource_1.MobileDeviceResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import type { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
13
|
+
import type { UserResource } from './UserResource';
|
|
14
|
+
import type { RosterListResource } from './RosterListResource';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface MobileInitResource
|
|
19
|
+
*/
|
|
20
|
+
export interface MobileInitResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {UserResource}
|
|
24
|
+
* @memberof MobileInitResource
|
|
25
|
+
*/
|
|
26
|
+
user: UserResource | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<RosterListResource>}
|
|
30
|
+
* @memberof MobileInitResource
|
|
31
|
+
*/
|
|
32
|
+
rosters: Array<RosterListResource> | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<NotificationPreferenceResource>}
|
|
36
|
+
* @memberof MobileInitResource
|
|
37
|
+
*/
|
|
38
|
+
notificationPreferences: Array<NotificationPreferenceResource> | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the MobileInitResource interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfMobileInitResource(value: object): value is MobileInitResource;
|
|
44
|
+
export declare function MobileInitResourceFromJSON(json: any): MobileInitResource;
|
|
45
|
+
export declare function MobileInitResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResource;
|
|
46
|
+
export declare function MobileInitResourceToJSON(json: any): MobileInitResource;
|
|
47
|
+
export declare function MobileInitResourceToJSONTyped(value?: MobileInitResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMobileInitResource = instanceOfMobileInitResource;
|
|
17
|
+
exports.MobileInitResourceFromJSON = MobileInitResourceFromJSON;
|
|
18
|
+
exports.MobileInitResourceFromJSONTyped = MobileInitResourceFromJSONTyped;
|
|
19
|
+
exports.MobileInitResourceToJSON = MobileInitResourceToJSON;
|
|
20
|
+
exports.MobileInitResourceToJSONTyped = MobileInitResourceToJSONTyped;
|
|
21
|
+
var NotificationPreferenceResource_1 = require("./NotificationPreferenceResource");
|
|
22
|
+
var UserResource_1 = require("./UserResource");
|
|
23
|
+
var RosterListResource_1 = require("./RosterListResource");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the MobileInitResource interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfMobileInitResource(value) {
|
|
28
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('rosters' in value) || value['rosters'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('notificationPreferences' in value) || value['notificationPreferences'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function MobileInitResourceFromJSON(json) {
|
|
37
|
+
return MobileInitResourceFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function MobileInitResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'user': (0, UserResource_1.UserResourceFromJSON)(json['user']),
|
|
45
|
+
'rosters': (json['rosters'] == null ? null : json['rosters'].map(RosterListResource_1.RosterListResourceFromJSON)),
|
|
46
|
+
'notificationPreferences': (json['notificationPreferences'] == null ? null : json['notificationPreferences'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function MobileInitResourceToJSON(json) {
|
|
50
|
+
return MobileInitResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function MobileInitResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'user': (0, UserResource_1.UserResourceToJSON)(value['user']),
|
|
59
|
+
'rosters': (value['rosters'] == null ? null : value['rosters'].map(RosterListResource_1.RosterListResourceToJSON)),
|
|
60
|
+
'notificationPreferences': (value['notificationPreferences'] == null ? null : value['notificationPreferences'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceToJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { MobileInitResource } from './MobileInitResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MobileInitResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MobileInitResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<MobileInitResource>}
|
|
22
|
+
* @memberof MobileInitResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<MobileInitResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the MobileInitResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfMobileInitResourceArrayResponse(value: object): value is MobileInitResourceArrayResponse;
|
|
30
|
+
export declare function MobileInitResourceArrayResponseFromJSON(json: any): MobileInitResourceArrayResponse;
|
|
31
|
+
export declare function MobileInitResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResourceArrayResponse;
|
|
32
|
+
export declare function MobileInitResourceArrayResponseToJSON(json: any): MobileInitResourceArrayResponse;
|
|
33
|
+
export declare function MobileInitResourceArrayResponseToJSONTyped(value?: MobileInitResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMobileInitResourceArrayResponse = instanceOfMobileInitResourceArrayResponse;
|
|
17
|
+
exports.MobileInitResourceArrayResponseFromJSON = MobileInitResourceArrayResponseFromJSON;
|
|
18
|
+
exports.MobileInitResourceArrayResponseFromJSONTyped = MobileInitResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.MobileInitResourceArrayResponseToJSON = MobileInitResourceArrayResponseToJSON;
|
|
20
|
+
exports.MobileInitResourceArrayResponseToJSONTyped = MobileInitResourceArrayResponseToJSONTyped;
|
|
21
|
+
var MobileInitResource_1 = require("./MobileInitResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MobileInitResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMobileInitResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function MobileInitResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return MobileInitResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function MobileInitResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(MobileInitResource_1.MobileInitResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MobileInitResourceArrayResponseToJSON(json) {
|
|
40
|
+
return MobileInitResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MobileInitResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(MobileInitResource_1.MobileInitResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -35,6 +35,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -82,7 +84,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
84
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
83
85
|
'shiftLength': json['shiftLength'],
|
|
84
86
|
'signOffStatus': json['signOffStatus'],
|
|
85
|
-
'badgeNumber': json['badgeNumber']
|
|
87
|
+
'badgeNumber': json['badgeNumber'],
|
|
86
88
|
'licenceNumber': json['licenceNumber'],
|
|
87
89
|
'licenceFirstName': json['licenceFirstName'],
|
|
88
90
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -112,7 +112,7 @@ export interface RegisterResource {
|
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -142,7 +142,7 @@ export interface RegisterResource {
|
|
|
142
142
|
* @type {string}
|
|
143
143
|
* @memberof RegisterResource
|
|
144
144
|
*/
|
|
145
|
-
badgeNumber
|
|
145
|
+
badgeNumber: string;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {Date}
|