@digital8/security-registers-backend-ts-sdk 0.0.470 → 0.0.471

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.470
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.471
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.470 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.471 --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,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong: number;
157
+ signOffLong?: number | null;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -67,8 +67,6 @@ function instanceOfRegisterListResource(value) {
67
67
  return false;
68
68
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
69
69
  return false;
70
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
71
- return false;
72
70
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
73
71
  return false;
74
72
  return true;
@@ -103,7 +101,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
103
101
  'signOnLat': json['signOnLat'],
104
102
  'signOnLong': json['signOnLong'],
105
103
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
106
- 'signOffLong': json['signOffLong'],
104
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
107
105
  'hasIncidents': json['hasIncidents'],
108
106
  };
109
107
  }
@@ -106,13 +106,13 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat?: number | null;
109
+ signOffLat: number;
110
110
  /**
111
111
  *
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong?: number | null;
115
+ signOffLong: number;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -57,6 +57,10 @@ function instanceOfRegisterResource(value) {
57
57
  return false;
58
58
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
59
59
  return false;
60
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
61
+ return false;
62
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
63
+ return false;
60
64
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
61
65
  return false;
62
66
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -89,8 +93,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
89
93
  'firstAidImage': json['firstAidImage'],
90
94
  'signOnLat': json['signOnLat'],
91
95
  'signOnLong': json['signOnLong'],
92
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
93
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
96
+ 'signOffLat': json['signOffLat'],
97
+ 'signOffLong': json['signOffLong'],
94
98
  'licenceNumber': json['licenceNumber'],
95
99
  'licenceExpiry': json['licenceExpiry'],
96
100
  '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.470",
3
+ "version": "0.0.471",
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,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong: number;
174
+ signOffLong?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -213,7 +213,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
213
213
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
214
214
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
215
215
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
216
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
217
216
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
218
217
  return true;
219
218
  }
@@ -250,7 +249,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
250
249
  'signOnLat': json['signOnLat'],
251
250
  'signOnLong': json['signOnLong'],
252
251
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
253
- 'signOffLong': json['signOffLong'],
252
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
254
253
  'hasIncidents': json['hasIncidents'],
255
254
  };
256
255
  }
@@ -123,13 +123,13 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat?: number | null;
126
+ signOffLat: number;
127
127
  /**
128
128
  *
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong?: number | null;
132
+ signOffLong: number;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -208,6 +208,8 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
208
208
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
212
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
211
213
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
212
214
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
213
215
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -239,8 +241,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
239
241
  'firstAidImage': json['firstAidImage'],
240
242
  'signOnLat': json['signOnLat'],
241
243
  'signOnLong': json['signOnLong'],
242
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
243
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
244
+ 'signOffLat': json['signOffLat'],
245
+ 'signOffLong': json['signOffLong'],
244
246
  'licenceNumber': json['licenceNumber'],
245
247
  'licenceExpiry': json['licenceExpiry'],
246
248
  'licenceFirstName': json['licenceFirstName'],