@digital8/security-registers-backend-ts-sdk 0.0.546 → 0.0.547

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.546
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.547
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.546 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.547 --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;
35
+ addressLine2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,8 +24,6 @@ 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;
29
27
  if (!('suburb' in value) || value['suburb'] === undefined)
30
28
  return false;
31
29
  if (!('city' in value) || value['city'] === undefined)
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'id': json['id'] == null ? undefined : json['id'],
52
50
  'addressLine1': json['addressLine1'],
53
- 'addressLine2': json['addressLine2'],
51
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
54
52
  'suburb': json['suburb'],
55
53
  'city': json['city'],
56
54
  'state': json['state'],
@@ -160,7 +160,7 @@ export interface RegisterListResource {
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}
@@ -71,6 +71,8 @@ function instanceOfRegisterListResource(value) {
71
71
  return false;
72
72
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
73
73
  return false;
74
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
75
+ return false;
74
76
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
75
77
  return false;
76
78
  return true;
@@ -106,7 +108,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
106
108
  'signOnLat': json['signOnLat'],
107
109
  'signOnLong': json['signOnLong'],
108
110
  'signOffLat': json['signOffLat'],
109
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
111
+ 'signOffLong': json['signOffLong'],
110
112
  'hasIncidents': json['hasIncidents'],
111
113
  };
112
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.546",
3
+ "version": "0.0.547",
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;
39
+ addressLine2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,7 +80,6 @@ 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;
84
83
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
85
84
  if (!('city' in value) || value['city'] === undefined) return false;
86
85
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
101
 
103
102
  'id': json['id'] == null ? undefined : json['id'],
104
103
  'addressLine1': json['addressLine1'],
105
- 'addressLine2': json['addressLine2'],
104
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
106
105
  'suburb': json['suburb'],
107
106
  'city': json['city'],
108
107
  'state': json['state'],
@@ -177,7 +177,7 @@ export interface RegisterListResource {
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}
@@ -221,6 +221,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
221
221
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
222
222
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
223
223
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
224
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
224
225
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
225
226
  return true;
226
227
  }
@@ -258,7 +259,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
258
259
  'signOnLat': json['signOnLat'],
259
260
  'signOnLong': json['signOnLong'],
260
261
  'signOffLat': json['signOffLat'],
261
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
262
+ 'signOffLong': json['signOffLong'],
262
263
  'hasIncidents': json['hasIncidents'],
263
264
  };
264
265
  }