@digital8/security-registers-backend-ts-sdk 0.0.282 → 0.0.284
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 +4 -3
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +7 -40
- package/dist/apis/GeneralApi.js +8 -176
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentListResource.d.ts +101 -0
- package/dist/models/IncidentListResource.js +79 -0
- package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentListResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsListRequest.d.ts +151 -0
- package/dist/models/IncidentsListRequest.js +99 -0
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +7 -5
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/index.d.ts +4 -3
- package/dist/models/index.js +4 -3
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +16 -163
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentListResource.ts +177 -0
- package/src/models/IncidentListResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsListRequest.ts +222 -0
- package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/index.ts +4 -3
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
- package/dist/models/PdfExportQueuedResource.d.ts +0 -44
- package/dist/models/PdfExportQueuedResource.js +0 -59
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
- package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
- package/src/models/PdfExportQueuedResource.ts +0 -84
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
|
@@ -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.instanceOfIncidentListResourceArrayResponse = instanceOfIncidentListResourceArrayResponse;
|
|
17
|
+
exports.IncidentListResourceArrayResponseFromJSON = IncidentListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentListResourceArrayResponseFromJSONTyped = IncidentListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentListResourceArrayResponseToJSON = IncidentListResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentListResourceArrayResponseToJSONTyped = IncidentListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentListResource_1 = require("./IncidentListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentListResourceArrayResponseToJSONTyped(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(IncidentListResource_1.IncidentListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 IncidentsListRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsListRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IncidentsListRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IncidentsListRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IncidentsListRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IncidentsListRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IncidentsListRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IncidentsListRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IncidentsListRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IncidentsListRequest
|
|
52
|
+
*/
|
|
53
|
+
venueId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IncidentsListRequest
|
|
58
|
+
*/
|
|
59
|
+
securityCompanyId?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof IncidentsListRequest
|
|
64
|
+
*/
|
|
65
|
+
rosterId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IncidentsListRequest
|
|
70
|
+
*/
|
|
71
|
+
userId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof IncidentsListRequest
|
|
76
|
+
*/
|
|
77
|
+
approvedByUserId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof IncidentsListRequest
|
|
82
|
+
*/
|
|
83
|
+
hasApprovedAt?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof IncidentsListRequest
|
|
88
|
+
*/
|
|
89
|
+
beforeApprovedAt?: Date;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof IncidentsListRequest
|
|
94
|
+
*/
|
|
95
|
+
afterApprovedAt?: Date;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof IncidentsListRequest
|
|
100
|
+
*/
|
|
101
|
+
beforeCreatedAt?: Date;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IncidentsListRequest
|
|
106
|
+
*/
|
|
107
|
+
afterCreatedAt?: Date;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof IncidentsListRequest
|
|
112
|
+
*/
|
|
113
|
+
relatedId?: number;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof IncidentsListRequest
|
|
118
|
+
*/
|
|
119
|
+
relatedType?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {boolean}
|
|
123
|
+
* @memberof IncidentsListRequest
|
|
124
|
+
*/
|
|
125
|
+
includesRelations?: boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export declare const IncidentsListRequestSortByEnum: {
|
|
131
|
+
readonly Id: "id";
|
|
132
|
+
readonly CreatedAt: "created_at";
|
|
133
|
+
readonly ApprovedAt: "approved_at";
|
|
134
|
+
};
|
|
135
|
+
export type IncidentsListRequestSortByEnum = typeof IncidentsListRequestSortByEnum[keyof typeof IncidentsListRequestSortByEnum];
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const IncidentsListRequestSortDirectionEnum: {
|
|
140
|
+
readonly Asc: "asc";
|
|
141
|
+
readonly Desc: "desc";
|
|
142
|
+
};
|
|
143
|
+
export type IncidentsListRequestSortDirectionEnum = typeof IncidentsListRequestSortDirectionEnum[keyof typeof IncidentsListRequestSortDirectionEnum];
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the IncidentsListRequest interface.
|
|
146
|
+
*/
|
|
147
|
+
export declare function instanceOfIncidentsListRequest(value: object): value is IncidentsListRequest;
|
|
148
|
+
export declare function IncidentsListRequestFromJSON(json: any): IncidentsListRequest;
|
|
149
|
+
export declare function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsListRequest;
|
|
150
|
+
export declare function IncidentsListRequestToJSON(json: any): IncidentsListRequest;
|
|
151
|
+
export declare function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.IncidentsListRequestSortDirectionEnum = exports.IncidentsListRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIncidentsListRequest = instanceOfIncidentsListRequest;
|
|
18
|
+
exports.IncidentsListRequestFromJSON = IncidentsListRequestFromJSON;
|
|
19
|
+
exports.IncidentsListRequestFromJSONTyped = IncidentsListRequestFromJSONTyped;
|
|
20
|
+
exports.IncidentsListRequestToJSON = IncidentsListRequestToJSON;
|
|
21
|
+
exports.IncidentsListRequestToJSONTyped = IncidentsListRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IncidentsListRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CreatedAt: 'created_at',
|
|
28
|
+
ApprovedAt: 'approved_at'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.IncidentsListRequestSortDirectionEnum = {
|
|
34
|
+
Asc: 'asc',
|
|
35
|
+
Desc: 'desc'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IncidentsListRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfIncidentsListRequest(value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function IncidentsListRequestFromJSON(json) {
|
|
44
|
+
return IncidentsListRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
52
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
53
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
54
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
55
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
56
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
57
|
+
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
58
|
+
'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
|
|
59
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
60
|
+
'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
|
|
61
|
+
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
62
|
+
'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
|
|
63
|
+
'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
|
|
64
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
65
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
66
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function IncidentsListRequestToJSON(json) {
|
|
72
|
+
return IncidentsListRequestToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'search': value['search'],
|
|
81
|
+
'sort_by': value['sortBy'],
|
|
82
|
+
'sort_direction': value['sortDirection'],
|
|
83
|
+
'per_page': value['perPage'],
|
|
84
|
+
'page': value['page'],
|
|
85
|
+
'venue_id': value['venueId'],
|
|
86
|
+
'security_company_id': value['securityCompanyId'],
|
|
87
|
+
'roster_id': value['rosterId'],
|
|
88
|
+
'user_id': value['userId'],
|
|
89
|
+
'approved_by_user_id': value['approvedByUserId'],
|
|
90
|
+
'has_approved_at': value['hasApprovedAt'],
|
|
91
|
+
'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
|
|
92
|
+
'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
|
|
93
|
+
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
94
|
+
'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
|
|
95
|
+
'related_id': value['relatedId'],
|
|
96
|
+
'related_type': value['relatedType'],
|
|
97
|
+
'includes_relations': value['includesRelations'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { IncidentListResource } from './IncidentListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedIncidentListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedIncidentListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<IncidentListResource>}
|
|
23
|
+
* @memberof PaginatedIncidentListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<IncidentListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedIncidentListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedIncidentListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedIncidentListResourceResponse(value: object): value is PaginatedIncidentListResourceResponse;
|
|
37
|
+
export declare function PaginatedIncidentListResourceResponseFromJSON(json: any): PaginatedIncidentListResourceResponse;
|
|
38
|
+
export declare function PaginatedIncidentListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentListResourceResponse;
|
|
39
|
+
export declare function PaginatedIncidentListResourceResponseToJSON(json: any): PaginatedIncidentListResourceResponse;
|
|
40
|
+
export declare function PaginatedIncidentListResourceResponseToJSONTyped(value?: PaginatedIncidentListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedIncidentListResourceResponse = instanceOfPaginatedIncidentListResourceResponse;
|
|
17
|
+
exports.PaginatedIncidentListResourceResponseFromJSON = PaginatedIncidentListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedIncidentListResourceResponseFromJSONTyped = PaginatedIncidentListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedIncidentListResourceResponseToJSON = PaginatedIncidentListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedIncidentListResourceResponseToJSONTyped = PaginatedIncidentListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var IncidentListResource_1 = require("./IncidentListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedIncidentListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedIncidentListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedIncidentListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedIncidentListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedIncidentListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedIncidentListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedIncidentListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedIncidentListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(IncidentListResource_1.IncidentListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -59,6 +59,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
|
+
return false;
|
|
62
64
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
65
|
return false;
|
|
64
66
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
@@ -93,7 +95,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
95
|
'firstAid': json['firstAid'],
|
|
94
96
|
'signOnLat': json['signOnLat'],
|
|
95
97
|
'signOnLong': json['signOnLong'],
|
|
96
|
-
'signOffLat': json['signOffLat']
|
|
98
|
+
'signOffLat': json['signOffLat'],
|
|
97
99
|
'signOffLong': json['signOffLong'],
|
|
98
100
|
'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
99
101
|
};
|
|
@@ -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)
|
|
@@ -72,7 +74,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
73
75
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
74
76
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
75
|
-
'finishDateTime':
|
|
77
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
76
78
|
'signOffStatus': json['signOffStatus'],
|
|
77
79
|
'signOnSignature': json['signOnSignature'],
|
|
78
80
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -97,7 +99,7 @@ function RegisterResourceToJSON(json) {
|
|
|
97
99
|
return RegisterResourceToJSONTyped(json, false);
|
|
98
100
|
}
|
|
99
101
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
100
|
-
var _a, _b
|
|
102
|
+
var _a, _b;
|
|
101
103
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
102
104
|
if (value == null) {
|
|
103
105
|
return value;
|
|
@@ -107,7 +109,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
107
109
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
108
110
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
109
111
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
110
|
-
'finishDateTime':
|
|
112
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
111
113
|
'signOffStatus': value['signOffStatus'],
|
|
112
114
|
'signOnSignature': value['signOnSignature'],
|
|
113
115
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -124,7 +126,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
124
126
|
'licenceFirstName': value['licenceFirstName'],
|
|
125
127
|
'licenceLastName': value['licenceLastName'],
|
|
126
128
|
'badgeNumber': value['badgeNumber'],
|
|
127
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
128
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
129
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
130
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
129
131
|
};
|
|
130
132
|
}
|
|
@@ -33,6 +33,8 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -56,7 +58,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'state': json['state'],
|
|
57
59
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
58
60
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
59
|
-
'finishDateTime':
|
|
61
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
60
62
|
'isCompliant': json['isCompliant'],
|
|
61
63
|
'isComplete': json['isComplete'],
|
|
62
64
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -67,7 +69,6 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
67
69
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
68
70
|
}
|
|
69
71
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
-
var _a;
|
|
71
72
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
73
|
if (value == null) {
|
|
73
74
|
return value;
|
|
@@ -78,7 +79,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
79
|
'state': value['state'],
|
|
79
80
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
80
81
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
81
|
-
'finishDateTime':
|
|
82
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
82
83
|
'isCompliant': value['isCompliant'],
|
|
83
84
|
'isComplete': value['isComplete'],
|
|
84
85
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -33,6 +33,12 @@ export interface VenueLiteResource {
|
|
|
33
33
|
* @memberof VenueLiteResource
|
|
34
34
|
*/
|
|
35
35
|
venueCode: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VenueLiteResource
|
|
40
|
+
*/
|
|
41
|
+
timezone: string;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the VenueLiteResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfVenueLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('venueCode' in value) || value['venueCode'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function VenueLiteResourceFromJSON(json) {
|
|
@@ -39,6 +41,7 @@ function VenueLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
42
|
'name': json['name'],
|
|
41
43
|
'venueCode': json['venueCode'],
|
|
44
|
+
'timezone': json['timezone'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
function VenueLiteResourceToJSON(json) {
|
|
@@ -53,5 +56,6 @@ function VenueLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
56
|
'id': value['id'],
|
|
54
57
|
'name': value['name'],
|
|
55
58
|
'venueCode': value['venueCode'],
|
|
59
|
+
'timezone': value['timezone'],
|
|
56
60
|
};
|
|
57
61
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './IncidentFieldSchemasShowRequest';
|
|
|
17
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
18
18
|
export * from './IncidentImageResource';
|
|
19
19
|
export * from './IncidentImageResourceArrayResponse';
|
|
20
|
+
export * from './IncidentListResource';
|
|
21
|
+
export * from './IncidentListResourceArrayResponse';
|
|
20
22
|
export * from './IncidentLiteResource';
|
|
21
23
|
export * from './IncidentLiteResourceArrayResponse';
|
|
22
24
|
export * from './IncidentLiteResourceStaff';
|
|
@@ -31,7 +33,7 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
|
31
33
|
export * from './IncidentVideoUploadTokenResource';
|
|
32
34
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
33
35
|
export * from './IncidentsApproveRequest';
|
|
34
|
-
export * from './
|
|
36
|
+
export * from './IncidentsListRequest';
|
|
35
37
|
export * from './IncidentsStoreRequest';
|
|
36
38
|
export * from './IncidentsUpdateRequest';
|
|
37
39
|
export * from './IncidentsVideosStoreRequest';
|
|
@@ -55,6 +57,7 @@ export * from './NotificationPreferenceResourceArrayResponse';
|
|
|
55
57
|
export * from './NotificationPreferencesStoreRequest';
|
|
56
58
|
export * from './NotificationTypeResource';
|
|
57
59
|
export * from './NotificationTypeResourceArrayResponse';
|
|
60
|
+
export * from './PaginatedIncidentListResourceResponse';
|
|
58
61
|
export * from './PaginatedLicenceListResourceResponse';
|
|
59
62
|
export * from './PaginatedLicenceResourceResponse';
|
|
60
63
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
@@ -67,8 +70,6 @@ export * from './PaginatedSecurityCompanyResourceResponse';
|
|
|
67
70
|
export * from './PaginatedUserResourceResponse';
|
|
68
71
|
export * from './PaginatedVenueResourceResponse';
|
|
69
72
|
export * from './PagingMetadata';
|
|
70
|
-
export * from './PdfExportQueuedResource';
|
|
71
|
-
export * from './PdfExportQueuedResourceArrayResponse';
|
|
72
73
|
export * from './PdfExportResource';
|
|
73
74
|
export * from './PdfExportResourceArrayResponse';
|
|
74
75
|
export * from './RegisterGroupedByRosterResource';
|
package/dist/models/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __exportStar(require("./IncidentFieldSchemasShowRequest"), exports);
|
|
|
35
35
|
__exportStar(require("./IncidentFieldsResourceArrayResponse"), exports);
|
|
36
36
|
__exportStar(require("./IncidentImageResource"), exports);
|
|
37
37
|
__exportStar(require("./IncidentImageResourceArrayResponse"), exports);
|
|
38
|
+
__exportStar(require("./IncidentListResource"), exports);
|
|
39
|
+
__exportStar(require("./IncidentListResourceArrayResponse"), exports);
|
|
38
40
|
__exportStar(require("./IncidentLiteResource"), exports);
|
|
39
41
|
__exportStar(require("./IncidentLiteResourceArrayResponse"), exports);
|
|
40
42
|
__exportStar(require("./IncidentLiteResourceStaff"), exports);
|
|
@@ -49,7 +51,7 @@ __exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
|
|
|
49
51
|
__exportStar(require("./IncidentVideoUploadTokenResource"), exports);
|
|
50
52
|
__exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
|
|
51
53
|
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
52
|
-
__exportStar(require("./
|
|
54
|
+
__exportStar(require("./IncidentsListRequest"), exports);
|
|
53
55
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
54
56
|
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
55
57
|
__exportStar(require("./IncidentsVideosStoreRequest"), exports);
|
|
@@ -73,6 +75,7 @@ __exportStar(require("./NotificationPreferenceResourceArrayResponse"), exports);
|
|
|
73
75
|
__exportStar(require("./NotificationPreferencesStoreRequest"), exports);
|
|
74
76
|
__exportStar(require("./NotificationTypeResource"), exports);
|
|
75
77
|
__exportStar(require("./NotificationTypeResourceArrayResponse"), exports);
|
|
78
|
+
__exportStar(require("./PaginatedIncidentListResourceResponse"), exports);
|
|
76
79
|
__exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
|
|
77
80
|
__exportStar(require("./PaginatedLicenceResourceResponse"), exports);
|
|
78
81
|
__exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
|
|
@@ -85,8 +88,6 @@ __exportStar(require("./PaginatedSecurityCompanyResourceResponse"), exports);
|
|
|
85
88
|
__exportStar(require("./PaginatedUserResourceResponse"), exports);
|
|
86
89
|
__exportStar(require("./PaginatedVenueResourceResponse"), exports);
|
|
87
90
|
__exportStar(require("./PagingMetadata"), exports);
|
|
88
|
-
__exportStar(require("./PdfExportQueuedResource"), exports);
|
|
89
|
-
__exportStar(require("./PdfExportQueuedResourceArrayResponse"), exports);
|
|
90
91
|
__exportStar(require("./PdfExportResource"), exports);
|
|
91
92
|
__exportStar(require("./PdfExportResourceArrayResponse"), exports);
|
|
92
93
|
__exportStar(require("./RegisterGroupedByRosterResource"), exports);
|
package/package.json
CHANGED