@digital8/security-registers-backend-ts-sdk 0.0.565 → 0.0.567

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.565
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.567
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.565 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.567 --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'],
@@ -32,7 +32,7 @@ export interface IncidentImageResource {
32
32
  * @type {string}
33
33
  * @memberof IncidentImageResource
34
34
  */
35
- altText: string;
35
+ altText?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -26,8 +26,6 @@ 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;
31
29
  if (!('assetId' in value) || value['assetId'] === undefined)
32
30
  return false;
33
31
  if (!('url' in value) || value['url'] === undefined)
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
44
42
  return {
45
43
  'fileId': json['file_id'],
46
44
  'mimeType': json['mime_type'],
47
- 'altText': json['alt_text'],
45
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
48
46
  'assetId': json['asset_id'],
49
47
  'url': json['url'],
50
48
  };
@@ -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}
@@ -69,8 +69,6 @@ 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
72
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
75
73
  return false;
76
74
  return true;
@@ -105,7 +103,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
105
103
  'firstAid': json['firstAid'],
106
104
  'signOnLat': json['signOnLat'],
107
105
  'signOnLong': json['signOnLong'],
108
- 'signOffLat': json['signOffLat'],
106
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
109
107
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
110
108
  'hasIncidents': json['hasIncidents'],
111
109
  };
@@ -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}
@@ -61,6 +61,8 @@ function instanceOfRegisterResource(value) {
61
61
  return false;
62
62
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
63
63
  return false;
64
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
65
+ return false;
64
66
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
65
67
  return false;
66
68
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -95,7 +97,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
95
97
  'signOnLat': json['signOnLat'],
96
98
  'signOnLong': json['signOnLong'],
97
99
  'signOffLat': json['signOffLat'],
98
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
100
+ 'signOffLong': json['signOffLong'],
99
101
  'licenceNumber': json['licenceNumber'],
100
102
  'licenceExpiry': json['licenceExpiry'],
101
103
  '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.565",
3
+ "version": "0.0.567",
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'],
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText: string;
39
+ altText?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -57,7 +57,6 @@ 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;
61
60
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
62
61
  if (!('url' in value) || value['url'] === undefined) return false;
63
62
  return true;
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
75
74
 
76
75
  'fileId': json['file_id'],
77
76
  'mimeType': json['mime_type'],
78
- 'altText': json['alt_text'],
77
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
79
78
  'assetId': json['asset_id'],
80
79
  'url': json['url'],
81
80
  };
@@ -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}
@@ -220,7 +220,6 @@ 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
223
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
225
224
  return true;
226
225
  }
@@ -257,7 +256,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
257
256
  'firstAid': json['firstAid'],
258
257
  'signOnLat': json['signOnLat'],
259
258
  'signOnLong': json['signOnLong'],
260
- 'signOffLat': json['signOffLat'],
259
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
261
260
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
262
261
  'hasIncidents': json['hasIncidents'],
263
262
  };
@@ -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}
@@ -216,6 +216,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
216
216
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
217
217
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
218
218
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
219
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
219
220
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
220
221
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
221
222
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -249,7 +250,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
249
250
  'signOnLat': json['signOnLat'],
250
251
  'signOnLong': json['signOnLong'],
251
252
  'signOffLat': json['signOffLat'],
252
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
253
+ 'signOffLong': json['signOffLong'],
253
254
  'licenceNumber': json['licenceNumber'],
254
255
  'licenceExpiry': json['licenceExpiry'],
255
256
  'licenceFirstName': json['licenceFirstName'],