@digital8/security-registers-backend-ts-sdk 0.0.556 → 0.0.557

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.556
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.557
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.556 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.557 --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;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,8 +30,6 @@ 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;
35
33
  if (!('index' in value) || value['index'] === undefined)
36
34
  return false;
37
35
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'filePath': json['filePath'],
53
51
  'fileName': json['fileName'],
54
52
  'mimeType': json['mimeType'],
55
- 'altText': json['altText'],
53
+ 'altText': json['altText'] == null ? undefined : json['altText'],
56
54
  'index': json['index'],
57
55
  'fileId': json['fileId'],
58
56
  'isExternal': json['isExternal'],
@@ -154,13 +154,13 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLat?: number | null;
157
+ signOffLat: number;
158
158
  /**
159
159
  *
160
160
  * @type {number}
161
161
  * @memberof RegisterListResource
162
162
  */
163
- signOffLong?: number | null;
163
+ signOffLong: number;
164
164
  /**
165
165
  *
166
166
  * @type {boolean}
@@ -69,6 +69,10 @@ function instanceOfRegisterListResource(value) {
69
69
  return false;
70
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
71
71
  return false;
72
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
73
+ return false;
74
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
75
+ return false;
72
76
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
73
77
  return false;
74
78
  return true;
@@ -103,8 +107,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
103
107
  'firstAid': json['firstAid'],
104
108
  'signOnLat': json['signOnLat'],
105
109
  'signOnLong': json['signOnLong'],
106
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
107
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
110
+ 'signOffLat': json['signOffLat'],
111
+ 'signOffLong': json['signOffLong'],
108
112
  'hasIncidents': json['hasIncidents'],
109
113
  };
110
114
  }
@@ -112,7 +112,7 @@ 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}
@@ -59,8 +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
62
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
65
63
  return false;
66
64
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -94,7 +92,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
94
92
  'firstAidImage': json['firstAidImage'],
95
93
  'signOnLat': json['signOnLat'],
96
94
  'signOnLong': json['signOnLong'],
97
- 'signOffLat': json['signOffLat'],
95
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
98
96
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
99
97
  'licenceNumber': json['licenceNumber'],
100
98
  'licenceExpiry': json['licenceExpiry'],
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email?: string | null;
36
+ email: string;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,6 +25,8 @@ 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;
28
30
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
29
31
  return false;
30
32
  if (!('address' in value) || value['address'] === undefined)
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
43
45
  return {
44
46
  'id': json['id'] == null ? undefined : json['id'],
45
47
  'name': json['name'],
46
- 'email': json['email'] == null ? undefined : json['email'],
48
+ 'email': json['email'],
47
49
  'isEnabled': json['isEnabled'],
48
50
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
49
51
  '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.556",
3
+ "version": "0.0.557",
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;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,7 +83,6 @@ 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;
87
86
  if (!('index' in value) || value['index'] === undefined) return false;
88
87
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
89
88
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
104
103
  'filePath': json['filePath'],
105
104
  'fileName': json['fileName'],
106
105
  'mimeType': json['mimeType'],
107
- 'altText': json['altText'],
106
+ 'altText': json['altText'] == null ? undefined : json['altText'],
108
107
  'index': json['index'],
109
108
  'fileId': json['fileId'],
110
109
  'isExternal': json['isExternal'],
@@ -171,13 +171,13 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLat?: number | null;
174
+ signOffLat: number;
175
175
  /**
176
176
  *
177
177
  * @type {number}
178
178
  * @memberof RegisterListResource
179
179
  */
180
- signOffLong?: number | null;
180
+ signOffLong: number;
181
181
  /**
182
182
  *
183
183
  * @type {boolean}
@@ -220,6 +220,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
220
220
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
221
221
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
222
222
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
223
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
224
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
223
225
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
224
226
  return true;
225
227
  }
@@ -256,8 +258,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
256
258
  'firstAid': json['firstAid'],
257
259
  'signOnLat': json['signOnLat'],
258
260
  'signOnLong': json['signOnLong'],
259
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
260
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
261
+ 'signOffLat': json['signOffLat'],
262
+ 'signOffLong': json['signOffLong'],
261
263
  'hasIncidents': json['hasIncidents'],
262
264
  };
263
265
  }
@@ -129,7 +129,7 @@ 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}
@@ -215,7 +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
218
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
220
219
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
221
220
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -248,7 +247,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
248
247
  'firstAidImage': json['firstAidImage'],
249
248
  'signOnLat': json['signOnLat'],
250
249
  'signOnLong': json['signOnLong'],
251
- 'signOffLat': json['signOffLat'],
250
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
252
251
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
253
252
  'licenceNumber': json['licenceNumber'],
254
253
  'licenceExpiry': json['licenceExpiry'],
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email?: string | null;
47
+ email: string;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,6 +82,7 @@ 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;
85
86
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
86
87
  if (!('address' in value) || value['address'] === undefined) return false;
87
88
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
100
101
 
101
102
  'id': json['id'] == null ? undefined : json['id'],
102
103
  'name': json['name'],
103
- 'email': json['email'] == null ? undefined : json['email'],
104
+ 'email': json['email'],
104
105
  'isEnabled': json['isEnabled'],
105
106
  'address': AddressResourceFromJSON(json['address']),
106
107
  'licenceNumber': json['licenceNumber'],