@digital8/security-registers-backend-ts-sdk 0.0.220 → 0.0.222
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 +10 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +70 -12
- package/dist/apis/GeneralApi.js +343 -56
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
- package/dist/models/IncidentFieldAuditResource.js +67 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
- package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +32 -0
- package/dist/models/IncidentFieldsResourceArrayResponse.js +49 -0
- package/dist/models/IncidentResource.d.ts +111 -0
- package/dist/models/IncidentResource.js +101 -0
- package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVersionResource.d.ts +57 -0
- package/dist/models/IncidentVersionResource.js +68 -0
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsApproveRequest.d.ts +32 -0
- package/dist/models/IncidentsApproveRequest.js +51 -0
- package/dist/models/IncidentsStoreRequest.d.ts +38 -0
- package/dist/models/IncidentsStoreRequest.js +55 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
- package/dist/models/IncidentsUpdateRequest.js +51 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +10 -5
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +8 -8
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/VenueResource.d.ts +0 -6
- package/dist/models/VenueResource.js +0 -4
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +324 -49
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentFieldAuditResource.ts +102 -0
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
- package/src/models/IncidentFieldsResourceArrayResponse.ts +65 -0
- package/src/models/IncidentResource.ts +221 -0
- package/src/models/IncidentResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVersionResource.ts +110 -0
- package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsApproveRequest.ts +66 -0
- package/src/models/IncidentsStoreRequest.ts +75 -0
- package/src/models/IncidentsUpdateRequest.ts +66 -0
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +12 -9
- package/src/models/RegisterResource.ts +6 -6
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/VenueResource.ts +0 -9
- package/src/models/index.ts +10 -0
|
@@ -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 { IncidentVersionResource } from './IncidentVersionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentVersionResource>}
|
|
22
|
+
* @memberof IncidentVersionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentVersionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse;
|
|
30
|
+
export declare function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
31
|
+
export declare function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse;
|
|
32
|
+
export declare function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
33
|
+
export declare function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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.instanceOfIncidentVersionResourceArrayResponse = instanceOfIncidentVersionResourceArrayResponse;
|
|
17
|
+
exports.IncidentVersionResourceArrayResponseFromJSON = IncidentVersionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceArrayResponseFromJSONTyped = IncidentVersionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceArrayResponseToJSON = IncidentVersionResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentVersionResourceArrayResponseToJSONTyped = IncidentVersionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentVersionResource_1 = require("./IncidentVersionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentVersionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentVersionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVersionResource_1.IncidentVersionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentVersionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentVersionResourceArrayResponseToJSONTyped(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(IncidentVersionResource_1.IncidentVersionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IncidentsApproveRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsApproveRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IncidentsApproveRequest
|
|
22
|
+
*/
|
|
23
|
+
userId: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IncidentsApproveRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIncidentsApproveRequest(value: object): value is IncidentsApproveRequest;
|
|
29
|
+
export declare function IncidentsApproveRequestFromJSON(json: any): IncidentsApproveRequest;
|
|
30
|
+
export declare function IncidentsApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveRequest;
|
|
31
|
+
export declare function IncidentsApproveRequestToJSON(json: any): IncidentsApproveRequest;
|
|
32
|
+
export declare function IncidentsApproveRequestToJSONTyped(value?: IncidentsApproveRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfIncidentsApproveRequest = instanceOfIncidentsApproveRequest;
|
|
17
|
+
exports.IncidentsApproveRequestFromJSON = IncidentsApproveRequestFromJSON;
|
|
18
|
+
exports.IncidentsApproveRequestFromJSONTyped = IncidentsApproveRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsApproveRequestToJSON = IncidentsApproveRequestToJSON;
|
|
20
|
+
exports.IncidentsApproveRequestToJSONTyped = IncidentsApproveRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsApproveRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsApproveRequest(value) {
|
|
25
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function IncidentsApproveRequestFromJSON(json) {
|
|
30
|
+
return IncidentsApproveRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function IncidentsApproveRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'userId': json['user_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IncidentsApproveRequestToJSON(json) {
|
|
41
|
+
return IncidentsApproveRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IncidentsApproveRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'user_id': value['userId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IncidentsStoreRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsStoreRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IncidentsStoreRequest
|
|
22
|
+
*/
|
|
23
|
+
venueId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof IncidentsStoreRequest
|
|
28
|
+
*/
|
|
29
|
+
fields: object;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest;
|
|
35
|
+
export declare function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest;
|
|
36
|
+
export declare function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest;
|
|
37
|
+
export declare function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest;
|
|
38
|
+
export declare function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
|
|
17
|
+
exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
|
|
18
|
+
exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
|
|
20
|
+
exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsStoreRequest(value) {
|
|
25
|
+
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function IncidentsStoreRequestFromJSON(json) {
|
|
32
|
+
return IncidentsStoreRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'venueId': json['venue_id'],
|
|
40
|
+
'fields': json['fields'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function IncidentsStoreRequestToJSON(json) {
|
|
44
|
+
return IncidentsStoreRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'venue_id': value['venueId'],
|
|
53
|
+
'fields': value['fields'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IncidentsUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof IncidentsUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
fields: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest;
|
|
29
|
+
export declare function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest;
|
|
30
|
+
export declare function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest;
|
|
31
|
+
export declare function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest;
|
|
32
|
+
export declare function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfIncidentsUpdateRequest = instanceOfIncidentsUpdateRequest;
|
|
17
|
+
exports.IncidentsUpdateRequestFromJSON = IncidentsUpdateRequestFromJSON;
|
|
18
|
+
exports.IncidentsUpdateRequestFromJSONTyped = IncidentsUpdateRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsUpdateRequestToJSON = IncidentsUpdateRequestToJSON;
|
|
20
|
+
exports.IncidentsUpdateRequestToJSONTyped = IncidentsUpdateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsUpdateRequest(value) {
|
|
25
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function IncidentsUpdateRequestFromJSON(json) {
|
|
30
|
+
return IncidentsUpdateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'fields': json['fields'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IncidentsUpdateRequestToJSON(json) {
|
|
41
|
+
return IncidentsUpdateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'fields': value['fields'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -32,8 +32,6 @@ function instanceOfRegisterGroupedByRosterResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
38
36
|
return false;
|
|
39
37
|
return true;
|
|
@@ -51,7 +49,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
51
49
|
'timezone': json['timezone'],
|
|
52
50
|
'state': json['state'],
|
|
53
51
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
54
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
52
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
55
53
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -59,6 +57,7 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
59
57
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
60
58
|
}
|
|
61
59
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
var _a;
|
|
62
61
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
62
|
if (value == null) {
|
|
64
63
|
return value;
|
|
@@ -69,7 +68,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
69
68
|
'timezone': value['timezone'],
|
|
70
69
|
'state': value['state'],
|
|
71
70
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
72
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
71
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
73
72
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
74
73
|
};
|
|
75
74
|
}
|
|
@@ -46,13 +46,13 @@ export interface RegisterListResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterListResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime: Date;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof RegisterListResource
|
|
54
54
|
*/
|
|
55
|
-
shiftLength:
|
|
55
|
+
shiftLength: string;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber: string;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {string}
|
|
@@ -142,7 +142,7 @@ export interface RegisterListResource {
|
|
|
142
142
|
* @type {number}
|
|
143
143
|
* @memberof RegisterListResource
|
|
144
144
|
*/
|
|
145
|
-
signOffLat
|
|
145
|
+
signOffLat: number;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {number}
|
|
@@ -30,10 +30,14 @@ function instanceOfRegisterListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
36
38
|
return false;
|
|
39
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
40
|
+
return false;
|
|
37
41
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
38
42
|
return false;
|
|
39
43
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -58,6 +62,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
58
62
|
return false;
|
|
59
63
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
60
64
|
return false;
|
|
65
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
66
|
+
return false;
|
|
61
67
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
62
68
|
return false;
|
|
63
69
|
return true;
|
|
@@ -74,10 +80,10 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
80
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
75
81
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
76
82
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
77
|
-
'finishDateTime':
|
|
83
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
78
84
|
'shiftLength': json['shiftLength'],
|
|
79
85
|
'signOffStatus': json['signOffStatus'],
|
|
80
|
-
'badgeNumber': json['badgeNumber']
|
|
86
|
+
'badgeNumber': json['badgeNumber'],
|
|
81
87
|
'licenceNumber': json['licenceNumber'],
|
|
82
88
|
'licenceFirstName': json['licenceFirstName'],
|
|
83
89
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -90,7 +96,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
96
|
'firstAid': json['firstAid'],
|
|
91
97
|
'signOnLat': json['signOnLat'],
|
|
92
98
|
'signOnLong': json['signOnLong'],
|
|
93
|
-
'signOffLat': json['signOffLat']
|
|
99
|
+
'signOffLat': json['signOffLat'],
|
|
94
100
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
95
101
|
'incidents': json['incidents'],
|
|
96
102
|
};
|
|
@@ -99,7 +105,6 @@ function RegisterListResourceToJSON(json) {
|
|
|
99
105
|
return RegisterListResourceToJSONTyped(json, false);
|
|
100
106
|
}
|
|
101
107
|
function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
102
|
-
var _a;
|
|
103
108
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
104
109
|
if (value == null) {
|
|
105
110
|
return value;
|
|
@@ -109,7 +114,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
109
114
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
110
115
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
111
116
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
112
|
-
'finishDateTime':
|
|
117
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
113
118
|
'shiftLength': value['shiftLength'],
|
|
114
119
|
'signOffStatus': value['signOffStatus'],
|
|
115
120
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -46,7 +46,7 @@ export interface RegisterResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime: Date;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {number}
|
|
@@ -106,7 +106,7 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat?: number | null;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
@@ -30,6 +30,8 @@ function instanceOfRegisterResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
@@ -48,8 +50,6 @@ function instanceOfRegisterResource(value) {
|
|
|
48
50
|
return false;
|
|
49
51
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
50
52
|
return false;
|
|
51
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
52
|
-
return false;
|
|
53
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
54
54
|
return false;
|
|
55
55
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -72,7 +72,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
72
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
73
73
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
74
74
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
75
|
-
'finishDateTime':
|
|
75
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
76
76
|
'signOffStatus': json['signOffStatus'],
|
|
77
77
|
'signOnSignature': json['signOnSignature'],
|
|
78
78
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -82,7 +82,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'firstAidImage': json['firstAidImage'],
|
|
83
83
|
'signOnLat': json['signOnLat'],
|
|
84
84
|
'signOnLong': json['signOnLong'],
|
|
85
|
-
'signOffLat': json['signOffLat'],
|
|
85
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
86
86
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
87
87
|
'licenceNumber': json['licenceNumber'],
|
|
88
88
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -97,7 +97,7 @@ function RegisterResourceToJSON(json) {
|
|
|
97
97
|
return RegisterResourceToJSONTyped(json, false);
|
|
98
98
|
}
|
|
99
99
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
100
|
-
var _a, _b
|
|
100
|
+
var _a, _b;
|
|
101
101
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
102
102
|
if (value == null) {
|
|
103
103
|
return value;
|
|
@@ -107,7 +107,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
107
107
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
108
108
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
109
109
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
110
|
-
'finishDateTime':
|
|
110
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
111
111
|
'signOffStatus': value['signOffStatus'],
|
|
112
112
|
'signOnSignature': value['signOnSignature'],
|
|
113
113
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -124,7 +124,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
124
124
|
'licenceFirstName': value['licenceFirstName'],
|
|
125
125
|
'licenceLastName': value['licenceLastName'],
|
|
126
126
|
'badgeNumber': value['badgeNumber'],
|
|
127
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
128
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
127
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
128
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
129
129
|
};
|
|
130
130
|
}
|
|
@@ -30,6 +30,8 @@ function instanceOfRosterListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -52,7 +54,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
53
55
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
54
56
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
55
|
-
'finishDateTime':
|
|
57
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
56
58
|
'isCompliant': json['isCompliant'],
|
|
57
59
|
'isComplete': json['isComplete'],
|
|
58
60
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -63,7 +65,6 @@ function RosterListResourceToJSON(json) {
|
|
|
63
65
|
return RosterListResourceToJSONTyped(json, false);
|
|
64
66
|
}
|
|
65
67
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
-
var _a;
|
|
67
68
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
69
|
if (value == null) {
|
|
69
70
|
return value;
|
|
@@ -73,7 +74,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
74
75
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
75
76
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
76
|
-
'finishDateTime':
|
|
77
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
77
78
|
'isCompliant': value['isCompliant'],
|
|
78
79
|
'isComplete': value['isComplete'],
|
|
79
80
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -29,8 +29,6 @@ function instanceOfVenueResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('venueCode' in value) || value['venueCode'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('venueApiKey' in value) || value['venueApiKey'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
if (!('badgeNumberRequired' in value) || value['badgeNumberRequired'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('venueSignOnCodeRequired' in value) || value['venueSignOnCodeRequired'] === undefined)
|
|
@@ -64,7 +62,6 @@ function VenueResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'id': json['id'] == null ? undefined : json['id'],
|
|
65
63
|
'name': json['name'],
|
|
66
64
|
'venueCode': json['venueCode'],
|
|
67
|
-
'venueApiKey': json['venueApiKey'],
|
|
68
65
|
'badgeNumberRequired': json['badgeNumberRequired'],
|
|
69
66
|
'venueSignOnCodeRequired': json['venueSignOnCodeRequired'],
|
|
70
67
|
'primaryManagerId': json['primaryManagerId'] == null ? undefined : json['primaryManagerId'],
|
|
@@ -93,7 +90,6 @@ function VenueResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
90
|
'id': value['id'],
|
|
94
91
|
'name': value['name'],
|
|
95
92
|
'venueCode': value['venueCode'],
|
|
96
|
-
'venueApiKey': value['venueApiKey'],
|
|
97
93
|
'badgeNumberRequired': value['badgeNumberRequired'],
|
|
98
94
|
'venueSignOnCodeRequired': value['venueSignOnCodeRequired'],
|
|
99
95
|
'primaryManagerId': value['primaryManagerId'],
|