@digital8/security-registers-backend-ts-sdk 0.0.270 → 0.0.271
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/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- 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 +3 -3
- package/dist/models/RegisterListResource.js +7 -5
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -10
- 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/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- 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/AssetResource.ts +3 -2
- 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 +8 -7
- package/src/models/RegisterResource.ts +5 -7
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +8 -0
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,6 +104,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
104
104
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
105
105
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
106
106
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
107
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
107
108
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
108
109
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
109
110
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -125,7 +126,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
125
126
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
126
127
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
127
128
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
128
|
-
'finishDateTime':
|
|
129
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
129
130
|
'isCompliant': json['isCompliant'],
|
|
130
131
|
'isComplete': json['isComplete'],
|
|
131
132
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -148,7 +149,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
148
149
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
149
150
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
150
151
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
151
|
-
'finishDateTime':
|
|
152
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
152
153
|
'isCompliant': value['isCompliant'],
|
|
153
154
|
'isComplete': value['isComplete'],
|
|
154
155
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -26,9 +26,17 @@ export * from './IncidentResource';
|
|
|
26
26
|
export * from './IncidentResourceArrayResponse';
|
|
27
27
|
export * from './IncidentVersionResource';
|
|
28
28
|
export * from './IncidentVersionResourceArrayResponse';
|
|
29
|
+
export * from './IncidentVideoResource';
|
|
30
|
+
export * from './IncidentVideoResourceArrayResponse';
|
|
31
|
+
export * from './IncidentVideoSignedUrlResource';
|
|
32
|
+
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
33
|
+
export * from './IncidentVideoUploadTokenResource';
|
|
34
|
+
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
29
35
|
export * from './IncidentsApproveRequest';
|
|
30
36
|
export * from './IncidentsStoreRequest';
|
|
31
37
|
export * from './IncidentsUpdateRequest';
|
|
38
|
+
export * from './IncidentsVideosStoreRequest';
|
|
39
|
+
export * from './IncidentsVideosUploadTokenRequest';
|
|
32
40
|
export * from './IndexMinimalUserRequest';
|
|
33
41
|
export * from './IndexUserRequest';
|
|
34
42
|
export * from './LicenceListResource';
|