@digital8/security-registers-backend-ts-sdk 0.0.593 → 0.0.595

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.593
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.595
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.593 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.595 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,6 +30,8 @@ function instanceOfAssetResource(value) {
30
30
  return false;
31
31
  if (!('mimeType' in value) || value['mimeType'] === undefined)
32
32
  return false;
33
+ if (!('altText' in value) || value['altText'] === undefined)
34
+ return false;
33
35
  if (!('index' in value) || value['index'] === undefined)
34
36
  return false;
35
37
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'filePath': json['filePath'],
51
53
  'fileName': json['fileName'],
52
54
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'] == null ? undefined : json['altText'],
55
+ 'altText': json['altText'],
54
56
  'index': json['index'],
55
57
  'fileId': json['fileId'],
56
58
  'isExternal': json['isExternal'],
@@ -32,7 +32,7 @@ export interface IncidentImageResource {
32
32
  * @type {string}
33
33
  * @memberof IncidentImageResource
34
34
  */
35
- altText?: string | null;
35
+ altText: string;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -26,6 +26,8 @@ function instanceOfIncidentImageResource(value) {
26
26
  return false;
27
27
  if (!('mimeType' in value) || value['mimeType'] === undefined)
28
28
  return false;
29
+ if (!('altText' in value) || value['altText'] === undefined)
30
+ return false;
29
31
  if (!('assetId' in value) || value['assetId'] === undefined)
30
32
  return false;
31
33
  if (!('url' in value) || value['url'] === undefined)
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return {
43
45
  'fileId': json['file_id'],
44
46
  'mimeType': json['mime_type'],
45
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
47
+ 'altText': json['alt_text'],
46
48
  'assetId': json['asset_id'],
47
49
  'url': json['url'],
48
50
  };
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber: string;
67
+ badgeNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLat: number;
157
+ signOffLat?: number | null;
158
158
  /**
159
159
  *
160
160
  * @type {number}
@@ -43,8 +43,6 @@ function instanceOfRegisterListResource(value) {
43
43
  return false;
44
44
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
45
45
  return false;
46
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
47
- return false;
48
46
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
49
47
  return false;
50
48
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
@@ -71,8 +69,6 @@ function instanceOfRegisterListResource(value) {
71
69
  return false;
72
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
73
71
  return false;
74
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
75
- return false;
76
72
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
77
73
  return false;
78
74
  return true;
@@ -92,7 +88,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
92
88
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
93
89
  'shiftLength': json['shiftLength'],
94
90
  'signOffStatus': json['signOffStatus'],
95
- 'badgeNumber': json['badgeNumber'],
91
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
96
92
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
97
93
  'licenceNumber': json['licenceNumber'],
98
94
  'licenceFirstName': json['licenceFirstName'],
@@ -107,7 +103,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
107
103
  'firstAid': json['firstAid'],
108
104
  'signOnLat': json['signOnLat'],
109
105
  'signOnLong': json['signOnLong'],
110
- 'signOffLat': json['signOffLat'],
106
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
111
107
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
112
108
  'hasIncidents': json['hasIncidents'],
113
109
  };
@@ -112,13 +112,13 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLat: number;
115
+ signOffLat?: number | null;
116
116
  /**
117
117
  *
118
118
  * @type {number}
119
119
  * @memberof RegisterResource
120
120
  */
121
- signOffLong: number;
121
+ signOffLong?: number | null;
122
122
  /**
123
123
  *
124
124
  * @type {string}
@@ -59,10 +59,6 @@ function instanceOfRegisterResource(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 (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
67
63
  return false;
68
64
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -96,8 +92,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
96
92
  'firstAidImage': json['firstAidImage'],
97
93
  'signOnLat': json['signOnLat'],
98
94
  'signOnLong': json['signOnLong'],
99
- 'signOffLat': json['signOffLat'],
100
- 'signOffLong': json['signOffLong'],
95
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
96
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
101
97
  'licenceNumber': json['licenceNumber'],
102
98
  'licenceExpiry': json['licenceExpiry'],
103
99
  'licenceFirstName': json['licenceFirstName'],
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email: string;
36
+ email?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
25
25
  function instanceOfSecurityCompanyResource(value) {
26
26
  if (!('name' in value) || value['name'] === undefined)
27
27
  return false;
28
- if (!('email' in value) || value['email'] === undefined)
29
- return false;
30
28
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
31
29
  return false;
32
30
  if (!('address' in value) || value['address'] === undefined)
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
45
43
  return {
46
44
  'id': json['id'] == null ? undefined : json['id'],
47
45
  'name': json['name'],
48
- 'email': json['email'],
46
+ 'email': json['email'] == null ? undefined : json['email'],
49
47
  'isEnabled': json['isEnabled'],
50
48
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
51
49
  'licenceNumber': json['licenceNumber'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.593",
3
+ "version": "0.0.595",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,6 +83,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
+ if (!('altText' in value) || value['altText'] === undefined) return false;
86
87
  if (!('index' in value) || value['index'] === undefined) return false;
87
88
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
89
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
103
104
  'filePath': json['filePath'],
104
105
  'fileName': json['fileName'],
105
106
  'mimeType': json['mimeType'],
106
- 'altText': json['altText'] == null ? undefined : json['altText'],
107
+ 'altText': json['altText'],
107
108
  'index': json['index'],
108
109
  'fileId': json['fileId'],
109
110
  'isExternal': json['isExternal'],
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText?: string | null;
39
+ altText: string;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -57,6 +57,7 @@ export interface IncidentImageResource {
57
57
  export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
58
58
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
59
59
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
60
+ if (!('altText' in value) || value['altText'] === undefined) return false;
60
61
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
61
62
  if (!('url' in value) || value['url'] === undefined) return false;
62
63
  return true;
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
74
75
 
75
76
  'fileId': json['file_id'],
76
77
  'mimeType': json['mime_type'],
77
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
78
+ 'altText': json['alt_text'],
78
79
  'assetId': json['asset_id'],
79
80
  'url': json['url'],
80
81
  };
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber: string;
84
+ badgeNumber?: string | null;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLat: number;
174
+ signOffLat?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {number}
@@ -207,7 +207,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
207
207
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
208
208
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
209
209
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
210
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
211
210
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
212
211
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
213
212
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -221,7 +220,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
221
220
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
222
221
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
223
222
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
224
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
225
223
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
226
224
  return true;
227
225
  }
@@ -243,7 +241,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
243
241
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
244
242
  'shiftLength': json['shiftLength'],
245
243
  'signOffStatus': json['signOffStatus'],
246
- 'badgeNumber': json['badgeNumber'],
244
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
247
245
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
248
246
  'licenceNumber': json['licenceNumber'],
249
247
  'licenceFirstName': json['licenceFirstName'],
@@ -258,7 +256,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
258
256
  'firstAid': json['firstAid'],
259
257
  'signOnLat': json['signOnLat'],
260
258
  'signOnLong': json['signOnLong'],
261
- 'signOffLat': json['signOffLat'],
259
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
262
260
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
263
261
  'hasIncidents': json['hasIncidents'],
264
262
  };
@@ -129,13 +129,13 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLat: number;
132
+ signOffLat?: number | null;
133
133
  /**
134
134
  *
135
135
  * @type {number}
136
136
  * @memberof RegisterResource
137
137
  */
138
- signOffLong: number;
138
+ signOffLong?: number | null;
139
139
  /**
140
140
  *
141
141
  * @type {string}
@@ -215,8 +215,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
215
215
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
216
216
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
217
217
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
218
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
219
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
220
218
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
221
219
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
222
220
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -249,8 +247,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
249
247
  'firstAidImage': json['firstAidImage'],
250
248
  'signOnLat': json['signOnLat'],
251
249
  'signOnLong': json['signOnLong'],
252
- 'signOffLat': json['signOffLat'],
253
- 'signOffLong': json['signOffLong'],
250
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
251
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
254
252
  'licenceNumber': json['licenceNumber'],
255
253
  'licenceExpiry': json['licenceExpiry'],
256
254
  'licenceFirstName': json['licenceFirstName'],
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email: string;
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'],