@digital8/security-registers-backend-ts-sdk 0.0.753 → 0.0.754
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/README.md +2 -2
- package/dist/models/IncidentListResource.d.ts +3 -3
- package/dist/models/IncidentListResource.js +3 -3
- package/dist/models/RosterWithRegistersResource.d.ts +3 -3
- package/dist/models/RosterWithRegistersResource.js +3 -3
- package/package.json +1 -1
- package/src/models/IncidentListResource.ts +11 -11
- package/src/models/RosterWithRegistersResource.ts +11 -11
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.754
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.754 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
14
13
|
import type { UserLiteResource } from './UserLiteResource';
|
|
14
|
+
import type { SecurityCompanyListResource } from './SecurityCompanyListResource';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -32,10 +32,10 @@ export interface IncidentListResource {
|
|
|
32
32
|
venue?: VenueLiteResource;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @type {
|
|
35
|
+
* @type {SecurityCompanyListResource}
|
|
36
36
|
* @memberof IncidentListResource
|
|
37
37
|
*/
|
|
38
|
-
securityCompany?:
|
|
38
|
+
securityCompany?: SecurityCompanyListResource;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {UserLiteResource}
|
|
@@ -19,8 +19,8 @@ exports.IncidentListResourceFromJSONTyped = IncidentListResourceFromJSONTyped;
|
|
|
19
19
|
exports.IncidentListResourceToJSON = IncidentListResourceToJSON;
|
|
20
20
|
exports.IncidentListResourceToJSONTyped = IncidentListResourceToJSONTyped;
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
-
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
23
22
|
var UserLiteResource_1 = require("./UserLiteResource");
|
|
23
|
+
var SecurityCompanyListResource_1 = require("./SecurityCompanyListResource");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the IncidentListResource interface.
|
|
26
26
|
*/
|
|
@@ -41,7 +41,7 @@ function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return {
|
|
42
42
|
'id': json['id'],
|
|
43
43
|
'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
44
|
-
'securityCompany': json['securityCompany'] == null ? undefined : (0,
|
|
44
|
+
'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyListResource_1.SecurityCompanyListResourceFromJSON)(json['securityCompany']),
|
|
45
45
|
'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
46
46
|
'approvedBy': json['approvedBy'] == null ? undefined : json['approvedBy'],
|
|
47
47
|
'title': json['title'] == null ? undefined : json['title'],
|
|
@@ -67,7 +67,7 @@ function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
return {
|
|
68
68
|
'id': value['id'],
|
|
69
69
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
70
|
-
'securityCompany': (0,
|
|
70
|
+
'securityCompany': (0, SecurityCompanyListResource_1.SecurityCompanyListResourceToJSON)(value['securityCompany']),
|
|
71
71
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
72
72
|
'approvedBy': value['approvedBy'],
|
|
73
73
|
'title': value['title'],
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
14
13
|
import type { RegisterListResource } from './RegisterListResource';
|
|
14
|
+
import type { SecurityCompanyListResource } from './SecurityCompanyListResource';
|
|
15
15
|
import type { SignOffStatus } from './SignOffStatus';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
@@ -39,10 +39,10 @@ export interface RosterWithRegistersResource {
|
|
|
39
39
|
state: object;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {SecurityCompanyListResource}
|
|
43
43
|
* @memberof RosterWithRegistersResource
|
|
44
44
|
*/
|
|
45
|
-
securityCompany:
|
|
45
|
+
securityCompany: SecurityCompanyListResource | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {Date}
|
|
@@ -19,8 +19,8 @@ exports.RosterWithRegistersResourceFromJSONTyped = RosterWithRegistersResourceFr
|
|
|
19
19
|
exports.RosterWithRegistersResourceToJSON = RosterWithRegistersResourceToJSON;
|
|
20
20
|
exports.RosterWithRegistersResourceToJSONTyped = RosterWithRegistersResourceToJSONTyped;
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
-
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
23
22
|
var RegisterListResource_1 = require("./RegisterListResource");
|
|
23
|
+
var SecurityCompanyListResource_1 = require("./SecurityCompanyListResource");
|
|
24
24
|
var SignOffStatus_1 = require("./SignOffStatus");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the RosterWithRegistersResource interface.
|
|
@@ -55,7 +55,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'id': json['id'] == null ? undefined : json['id'],
|
|
56
56
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
57
57
|
'state': json['state'],
|
|
58
|
-
'securityCompany': (0,
|
|
58
|
+
'securityCompany': (0, SecurityCompanyListResource_1.SecurityCompanyListResourceFromJSON)(json['securityCompany']),
|
|
59
59
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
60
60
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
61
61
|
'isCompliant': json['isCompliant'],
|
|
@@ -77,7 +77,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
77
|
'id': value['id'],
|
|
78
78
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
79
79
|
'state': value['state'],
|
|
80
|
-
'securityCompany': (0,
|
|
80
|
+
'securityCompany': (0, SecurityCompanyListResource_1.SecurityCompanyListResourceToJSON)(value['securityCompany']),
|
|
81
81
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
82
82
|
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
83
83
|
'isCompliant': value['isCompliant'],
|
package/package.json
CHANGED
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
VenueLiteResourceToJSON,
|
|
21
21
|
VenueLiteResourceToJSONTyped,
|
|
22
22
|
} from './VenueLiteResource';
|
|
23
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
24
|
-
import {
|
|
25
|
-
SecurityCompanyLiteResourceFromJSON,
|
|
26
|
-
SecurityCompanyLiteResourceFromJSONTyped,
|
|
27
|
-
SecurityCompanyLiteResourceToJSON,
|
|
28
|
-
SecurityCompanyLiteResourceToJSONTyped,
|
|
29
|
-
} from './SecurityCompanyLiteResource';
|
|
30
23
|
import type { UserLiteResource } from './UserLiteResource';
|
|
31
24
|
import {
|
|
32
25
|
UserLiteResourceFromJSON,
|
|
@@ -34,6 +27,13 @@ import {
|
|
|
34
27
|
UserLiteResourceToJSON,
|
|
35
28
|
UserLiteResourceToJSONTyped,
|
|
36
29
|
} from './UserLiteResource';
|
|
30
|
+
import type { SecurityCompanyListResource } from './SecurityCompanyListResource';
|
|
31
|
+
import {
|
|
32
|
+
SecurityCompanyListResourceFromJSON,
|
|
33
|
+
SecurityCompanyListResourceFromJSONTyped,
|
|
34
|
+
SecurityCompanyListResourceToJSON,
|
|
35
|
+
SecurityCompanyListResourceToJSONTyped,
|
|
36
|
+
} from './SecurityCompanyListResource';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
@@ -55,10 +55,10 @@ export interface IncidentListResource {
|
|
|
55
55
|
venue?: VenueLiteResource;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {SecurityCompanyListResource}
|
|
59
59
|
* @memberof IncidentListResource
|
|
60
60
|
*/
|
|
61
|
-
securityCompany?:
|
|
61
|
+
securityCompany?: SecurityCompanyListResource;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {UserLiteResource}
|
|
@@ -148,7 +148,7 @@ export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
148
148
|
|
|
149
149
|
'id': json['id'],
|
|
150
150
|
'venue': json['venue'] == null ? undefined : VenueLiteResourceFromJSON(json['venue']),
|
|
151
|
-
'securityCompany': json['securityCompany'] == null ? undefined :
|
|
151
|
+
'securityCompany': json['securityCompany'] == null ? undefined : SecurityCompanyListResourceFromJSON(json['securityCompany']),
|
|
152
152
|
'user': json['user'] == null ? undefined : UserLiteResourceFromJSON(json['user']),
|
|
153
153
|
'approvedBy': json['approvedBy'] == null ? undefined : json['approvedBy'],
|
|
154
154
|
'title': json['title'] == null ? undefined : json['title'],
|
|
@@ -176,7 +176,7 @@ export function IncidentListResourceToJSONTyped(value?: IncidentListResource | n
|
|
|
176
176
|
|
|
177
177
|
'id': value['id'],
|
|
178
178
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
179
|
-
'securityCompany':
|
|
179
|
+
'securityCompany': SecurityCompanyListResourceToJSON(value['securityCompany']),
|
|
180
180
|
'user': UserLiteResourceToJSON(value['user']),
|
|
181
181
|
'approvedBy': value['approvedBy'],
|
|
182
182
|
'title': value['title'],
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
VenueLiteResourceToJSON,
|
|
21
21
|
VenueLiteResourceToJSONTyped,
|
|
22
22
|
} from './VenueLiteResource';
|
|
23
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
24
|
-
import {
|
|
25
|
-
SecurityCompanyLiteResourceFromJSON,
|
|
26
|
-
SecurityCompanyLiteResourceFromJSONTyped,
|
|
27
|
-
SecurityCompanyLiteResourceToJSON,
|
|
28
|
-
SecurityCompanyLiteResourceToJSONTyped,
|
|
29
|
-
} from './SecurityCompanyLiteResource';
|
|
30
23
|
import type { RegisterListResource } from './RegisterListResource';
|
|
31
24
|
import {
|
|
32
25
|
RegisterListResourceFromJSON,
|
|
@@ -34,6 +27,13 @@ import {
|
|
|
34
27
|
RegisterListResourceToJSON,
|
|
35
28
|
RegisterListResourceToJSONTyped,
|
|
36
29
|
} from './RegisterListResource';
|
|
30
|
+
import type { SecurityCompanyListResource } from './SecurityCompanyListResource';
|
|
31
|
+
import {
|
|
32
|
+
SecurityCompanyListResourceFromJSON,
|
|
33
|
+
SecurityCompanyListResourceFromJSONTyped,
|
|
34
|
+
SecurityCompanyListResourceToJSON,
|
|
35
|
+
SecurityCompanyListResourceToJSONTyped,
|
|
36
|
+
} from './SecurityCompanyListResource';
|
|
37
37
|
import type { SignOffStatus } from './SignOffStatus';
|
|
38
38
|
import {
|
|
39
39
|
SignOffStatusFromJSON,
|
|
@@ -68,10 +68,10 @@ export interface RosterWithRegistersResource {
|
|
|
68
68
|
state: object;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
|
-
* @type {
|
|
71
|
+
* @type {SecurityCompanyListResource}
|
|
72
72
|
* @memberof RosterWithRegistersResource
|
|
73
73
|
*/
|
|
74
|
-
securityCompany:
|
|
74
|
+
securityCompany: SecurityCompanyListResource | null;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
77
|
* @type {Date}
|
|
@@ -140,7 +140,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
140
140
|
'id': json['id'] == null ? undefined : json['id'],
|
|
141
141
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
142
142
|
'state': json['state'],
|
|
143
|
-
'securityCompany':
|
|
143
|
+
'securityCompany': SecurityCompanyListResourceFromJSON(json['securityCompany']),
|
|
144
144
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
145
145
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
146
146
|
'isCompliant': json['isCompliant'],
|
|
@@ -164,7 +164,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
164
164
|
'id': value['id'],
|
|
165
165
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
166
166
|
'state': value['state'],
|
|
167
|
-
'securityCompany':
|
|
167
|
+
'securityCompany': SecurityCompanyListResourceToJSON(value['securityCompany']),
|
|
168
168
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
169
169
|
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
170
170
|
'isCompliant': value['isCompliant'],
|