@digital8/security-registers-backend-ts-sdk 0.0.635 → 0.0.636

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.635
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.636
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.635 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.636 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2?: string | null;
35
+ addressLine2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addressLine1' in value) || value['addressLine1'] === undefined)
26
26
  return false;
27
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined)
28
+ return false;
27
29
  if (!('suburb' in value) || value['suburb'] === undefined)
28
30
  return false;
29
31
  if (!('city' in value) || value['city'] === undefined)
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'addressLine1': json['addressLine1'],
51
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
53
+ 'addressLine2': json['addressLine2'],
52
54
  'suburb': json['suburb'],
53
55
  'city': json['city'],
54
56
  'state': json['state'],
@@ -154,13 +154,13 @@ 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}
161
161
  * @memberof RegisterListResource
162
162
  */
163
- signOffLong?: number | null;
163
+ signOffLong: number;
164
164
  /**
165
165
  *
166
166
  * @type {boolean}
@@ -69,7 +69,7 @@ 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)
72
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
73
  return false;
74
74
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
75
75
  return false;
@@ -105,8 +105,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
105
105
  'firstAid': json['firstAid'],
106
106
  'signOnLat': json['signOnLat'],
107
107
  'signOnLong': json['signOnLong'],
108
- 'signOffLat': json['signOffLat'],
109
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
108
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
109
+ 'signOffLong': json['signOffLong'],
110
110
  'hasIncidents': json['hasIncidents'],
111
111
  };
112
112
  }
@@ -118,7 +118,7 @@ export interface RegisterResource {
118
118
  * @type {number}
119
119
  * @memberof RegisterResource
120
120
  */
121
- signOffLong?: number | null;
121
+ signOffLong: number;
122
122
  /**
123
123
  *
124
124
  * @type {string}
@@ -59,6 +59,8 @@ function instanceOfRegisterResource(value) {
59
59
  return false;
60
60
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
61
61
  return false;
62
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
63
+ return false;
62
64
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
63
65
  return false;
64
66
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -93,7 +95,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
93
95
  'signOnLat': json['signOnLat'],
94
96
  'signOnLong': json['signOnLong'],
95
97
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
96
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
98
+ 'signOffLong': json['signOffLong'],
97
99
  'licenceNumber': json['licenceNumber'],
98
100
  'licenceExpiry': json['licenceExpiry'],
99
101
  'licenceFirstName': json['licenceFirstName'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.635",
3
+ "version": "0.0.636",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2?: string | null;
39
+ addressLine2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,6 +80,7 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
83
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
84
85
  if (!('city' in value) || value['city'] === undefined) return false;
85
86
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
101
102
 
102
103
  'id': json['id'] == null ? undefined : json['id'],
103
104
  'addressLine1': json['addressLine1'],
104
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
105
+ 'addressLine2': json['addressLine2'],
105
106
  'suburb': json['suburb'],
106
107
  'city': json['city'],
107
108
  'state': json['state'],
@@ -171,13 +171,13 @@ 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}
178
178
  * @memberof RegisterListResource
179
179
  */
180
- signOffLong?: number | null;
180
+ signOffLong: number;
181
181
  /**
182
182
  *
183
183
  * @type {boolean}
@@ -220,7 +220,7 @@ 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;
223
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
224
224
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
225
225
  return true;
226
226
  }
@@ -257,8 +257,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
257
257
  'firstAid': json['firstAid'],
258
258
  'signOnLat': json['signOnLat'],
259
259
  'signOnLong': json['signOnLong'],
260
- 'signOffLat': json['signOffLat'],
261
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
260
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
261
+ 'signOffLong': json['signOffLong'],
262
262
  'hasIncidents': json['hasIncidents'],
263
263
  };
264
264
  }
@@ -135,7 +135,7 @@ export interface RegisterResource {
135
135
  * @type {number}
136
136
  * @memberof RegisterResource
137
137
  */
138
- signOffLong?: number | null;
138
+ signOffLong: number;
139
139
  /**
140
140
  *
141
141
  * @type {string}
@@ -215,6 +215,7 @@ 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 (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
218
219
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
219
220
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
220
221
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -248,7 +249,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
248
249
  'signOnLat': json['signOnLat'],
249
250
  'signOnLong': json['signOnLong'],
250
251
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
251
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
252
+ 'signOffLong': json['signOffLong'],
252
253
  'licenceNumber': json['licenceNumber'],
253
254
  'licenceExpiry': json['licenceExpiry'],
254
255
  'licenceFirstName': json['licenceFirstName'],