@digital8/security-registers-backend-ts-sdk 0.0.248 → 0.0.250
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 +8 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +72 -1
- package/dist/apis/GeneralApi.js +352 -0
- package/dist/models/IncidentResource.d.ts +13 -0
- package/dist/models/IncidentResource.js +7 -0
- package/dist/models/IncidentVideoResource.d.ts +74 -0
- package/dist/models/IncidentVideoResource.js +72 -0
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
- package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosStoreRequest.js +59 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +2 -6
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +11 -9
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +344 -0
- package/src/models/IncidentResource.ts +24 -0
- package/src/models/IncidentVideoResource.ts +125 -0
- package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsVideosStoreRequest.ts +84 -0
- package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
- package/src/models/RegisterListResource.ts +4 -6
- package/src/models/RegisterResource.ts +9 -8
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfIncidentsVideosUploadTokenRequest = instanceOfIncidentsVideosUploadTokenRequest;
|
|
17
|
+
exports.IncidentsVideosUploadTokenRequestFromJSON = IncidentsVideosUploadTokenRequestFromJSON;
|
|
18
|
+
exports.IncidentsVideosUploadTokenRequestFromJSONTyped = IncidentsVideosUploadTokenRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsVideosUploadTokenRequestToJSON = IncidentsVideosUploadTokenRequestToJSON;
|
|
20
|
+
exports.IncidentsVideosUploadTokenRequestToJSONTyped = IncidentsVideosUploadTokenRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsVideosUploadTokenRequest(value) {
|
|
25
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function IncidentsVideosUploadTokenRequestFromJSON(json) {
|
|
34
|
+
return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function IncidentsVideosUploadTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'filename': json['filename'],
|
|
42
|
+
'mimeType': json['mime_type'],
|
|
43
|
+
'sizeBytes': json['size_bytes'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function IncidentsVideosUploadTokenRequestToJSON(json) {
|
|
47
|
+
return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function IncidentsVideosUploadTokenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'filename': value['filename'],
|
|
56
|
+
'mime_type': value['mimeType'],
|
|
57
|
+
'size_bytes': value['sizeBytes'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -143,13 +143,13 @@ export interface RegisterListResource {
|
|
|
143
143
|
* @type {number}
|
|
144
144
|
* @memberof RegisterListResource
|
|
145
145
|
*/
|
|
146
|
-
signOffLat
|
|
146
|
+
signOffLat?: number | null;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
* @type {number}
|
|
150
150
|
* @memberof RegisterListResource
|
|
151
151
|
*/
|
|
152
|
-
signOffLong
|
|
152
|
+
signOffLong?: number | null;
|
|
153
153
|
/**
|
|
154
154
|
*
|
|
155
155
|
* @type {Array<IncidentLiteResource>}
|
|
@@ -59,10 +59,6 @@ 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;
|
|
64
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
|
-
return false;
|
|
66
62
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
67
63
|
return false;
|
|
68
64
|
return true;
|
|
@@ -95,8 +91,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
91
|
'firstAid': json['firstAid'],
|
|
96
92
|
'signOnLat': json['signOnLat'],
|
|
97
93
|
'signOnLong': json['signOnLong'],
|
|
98
|
-
'signOffLat': json['signOffLat'],
|
|
99
|
-
'signOffLong': json['signOffLong'],
|
|
94
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
95
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
100
96
|
'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
101
97
|
};
|
|
102
98
|
}
|
|
@@ -46,7 +46,7 @@ export interface RegisterResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime?: Date | null;
|
|
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;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
@@ -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}
|
|
@@ -30,8 +30,6 @@ 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;
|
|
35
33
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
@@ -50,6 +48,8 @@ function instanceOfRegisterResource(value) {
|
|
|
50
48
|
return false;
|
|
51
49
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
50
|
return false;
|
|
51
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
52
|
+
return false;
|
|
53
53
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
54
54
|
return false;
|
|
55
55
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -60,6 +60,8 @@ function instanceOfRegisterResource(value) {
|
|
|
60
60
|
return false;
|
|
61
61
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
62
62
|
return false;
|
|
63
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
64
|
+
return false;
|
|
63
65
|
return true;
|
|
64
66
|
}
|
|
65
67
|
function RegisterResourceFromJSON(json) {
|
|
@@ -74,7 +76,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
76
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
75
77
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
76
78
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
77
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
79
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
78
80
|
'signOffStatus': json['signOffStatus'],
|
|
79
81
|
'signOnSignature': json['signOnSignature'],
|
|
80
82
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -84,13 +86,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
86
|
'firstAidImage': json['firstAidImage'],
|
|
85
87
|
'signOnLat': json['signOnLat'],
|
|
86
88
|
'signOnLong': json['signOnLong'],
|
|
87
|
-
'signOffLat': json['signOffLat']
|
|
89
|
+
'signOffLat': json['signOffLat'],
|
|
88
90
|
'signOffLong': json['signOffLong'],
|
|
89
91
|
'licenceNumber': json['licenceNumber'],
|
|
90
92
|
'licenceExpiry': json['licenceExpiry'],
|
|
91
93
|
'licenceFirstName': json['licenceFirstName'],
|
|
92
94
|
'licenceLastName': json['licenceLastName'],
|
|
93
|
-
'badgeNumber': json['badgeNumber']
|
|
95
|
+
'badgeNumber': json['badgeNumber'],
|
|
94
96
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
95
97
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
96
98
|
};
|
|
@@ -99,7 +101,7 @@ function RegisterResourceToJSON(json) {
|
|
|
99
101
|
return RegisterResourceToJSONTyped(json, false);
|
|
100
102
|
}
|
|
101
103
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
102
|
-
var _a, _b;
|
|
104
|
+
var _a, _b, _c;
|
|
103
105
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
104
106
|
if (value == null) {
|
|
105
107
|
return value;
|
|
@@ -109,7 +111,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
109
111
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
110
112
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
111
113
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
112
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
114
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
113
115
|
'signOffStatus': value['signOffStatus'],
|
|
114
116
|
'signOnSignature': value['signOnSignature'],
|
|
115
117
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -126,7 +128,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
128
|
'licenceFirstName': value['licenceFirstName'],
|
|
127
129
|
'licenceLastName': value['licenceLastName'],
|
|
128
130
|
'badgeNumber': value['badgeNumber'],
|
|
129
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
130
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
131
|
+
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
132
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
131
133
|
};
|
|
132
134
|
}
|
|
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
38
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
41
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
39
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
function RosterLiteResourceToJSON(json) {
|
|
45
43
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
46
44
|
}
|
|
47
45
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
var _a;
|
|
48
47
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'id': value['id'],
|
|
54
53
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
55
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
54
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
56
55
|
};
|
|
57
56
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,9 +24,17 @@ export * from './IncidentResource';
|
|
|
24
24
|
export * from './IncidentResourceArrayResponse';
|
|
25
25
|
export * from './IncidentVersionResource';
|
|
26
26
|
export * from './IncidentVersionResourceArrayResponse';
|
|
27
|
+
export * from './IncidentVideoResource';
|
|
28
|
+
export * from './IncidentVideoResourceArrayResponse';
|
|
29
|
+
export * from './IncidentVideoSignedUrlResource';
|
|
30
|
+
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
31
|
+
export * from './IncidentVideoUploadTokenResource';
|
|
32
|
+
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
27
33
|
export * from './IncidentsApproveRequest';
|
|
28
34
|
export * from './IncidentsStoreRequest';
|
|
29
35
|
export * from './IncidentsUpdateRequest';
|
|
36
|
+
export * from './IncidentsVideosStoreRequest';
|
|
37
|
+
export * from './IncidentsVideosUploadTokenRequest';
|
|
30
38
|
export * from './IndexMinimalUserRequest';
|
|
31
39
|
export * from './IndexUserRequest';
|
|
32
40
|
export * from './LicenceListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -42,9 +42,17 @@ __exportStar(require("./IncidentResource"), exports);
|
|
|
42
42
|
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
43
43
|
__exportStar(require("./IncidentVersionResource"), exports);
|
|
44
44
|
__exportStar(require("./IncidentVersionResourceArrayResponse"), exports);
|
|
45
|
+
__exportStar(require("./IncidentVideoResource"), exports);
|
|
46
|
+
__exportStar(require("./IncidentVideoResourceArrayResponse"), exports);
|
|
47
|
+
__exportStar(require("./IncidentVideoSignedUrlResource"), exports);
|
|
48
|
+
__exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
|
|
49
|
+
__exportStar(require("./IncidentVideoUploadTokenResource"), exports);
|
|
50
|
+
__exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
|
|
45
51
|
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
46
52
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
47
53
|
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
54
|
+
__exportStar(require("./IncidentsVideosStoreRequest"), exports);
|
|
55
|
+
__exportStar(require("./IncidentsVideosUploadTokenRequest"), exports);
|
|
48
56
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
|
49
57
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
50
58
|
__exportStar(require("./LicenceListResource"), exports);
|
package/package.json
CHANGED