@digital8/security-registers-backend-ts-sdk 0.0.213 → 0.0.214

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.213
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.214
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.213 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.214 --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'],
@@ -142,13 +142,13 @@ export interface RegisterListResource {
142
142
  * @type {number}
143
143
  * @memberof RegisterListResource
144
144
  */
145
- signOffLat?: number | null;
145
+ signOffLat: number;
146
146
  /**
147
147
  *
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLong?: number | null;
151
+ signOffLong: number;
152
152
  /**
153
153
  *
154
154
  * @type {Array<boolean>}
@@ -58,6 +58,10 @@ function instanceOfRegisterListResource(value) {
58
58
  return false;
59
59
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
60
60
  return false;
61
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
62
+ return false;
63
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
64
+ return false;
61
65
  if (!('incidents' in value) || value['incidents'] === undefined)
62
66
  return false;
63
67
  return true;
@@ -90,8 +94,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
90
94
  'firstAid': json['firstAid'],
91
95
  'signOnLat': json['signOnLat'],
92
96
  'signOnLong': json['signOnLong'],
93
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
94
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
97
+ 'signOffLat': json['signOffLat'],
98
+ 'signOffLong': json['signOffLong'],
95
99
  'incidents': json['incidents'],
96
100
  };
97
101
  }
@@ -106,7 +106,7 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat: number;
109
+ signOffLat?: number | null;
110
110
  /**
111
111
  *
112
112
  * @type {number}
@@ -48,8 +48,6 @@ function instanceOfRegisterResource(value) {
48
48
  return false;
49
49
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
50
50
  return false;
51
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
52
- return false;
53
51
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
54
52
  return false;
55
53
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -82,7 +80,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
82
80
  'firstAidImage': json['firstAidImage'],
83
81
  'signOnLat': json['signOnLat'],
84
82
  'signOnLong': json['signOnLong'],
85
- 'signOffLat': json['signOffLat'],
83
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
86
84
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
87
85
  'licenceNumber': json['licenceNumber'],
88
86
  'licenceExpiry': json['licenceExpiry'],
@@ -32,7 +32,7 @@ export interface RosterLiteResource {
32
32
  * @type {Date}
33
33
  * @memberof RosterLiteResource
34
34
  */
35
- finishDateTime: Date;
35
+ finishDateTime?: Date | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the RosterLiteResource interface.
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
24
24
  function instanceOfRosterLiteResource(value) {
25
25
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
26
26
  return false;
27
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function RosterLiteResourceFromJSON(json) {
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
38
36
  return {
39
37
  'id': json['id'] == null ? undefined : json['id'],
40
38
  'startDateTime': (new Date(json['startDateTime'])),
41
- 'finishDateTime': (new Date(json['finishDateTime'])),
39
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
42
40
  };
43
41
  }
44
42
  function RosterLiteResourceToJSON(json) {
45
43
  return RosterLiteResourceToJSONTyped(json, false);
46
44
  }
47
45
  function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
46
+ var _a;
48
47
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
48
  if (value == null) {
50
49
  return value;
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
52
51
  return {
53
52
  'id': value['id'],
54
53
  'startDateTime': ((value['startDateTime']).toISOString()),
55
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
54
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
56
55
  };
57
56
  }
@@ -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.213",
3
+ "version": "0.0.214",
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'],
@@ -159,13 +159,13 @@ export interface RegisterListResource {
159
159
  * @type {number}
160
160
  * @memberof RegisterListResource
161
161
  */
162
- signOffLat?: number | null;
162
+ signOffLat: number;
163
163
  /**
164
164
  *
165
165
  * @type {number}
166
166
  * @memberof RegisterListResource
167
167
  */
168
- signOffLong?: number | null;
168
+ signOffLong: number;
169
169
  /**
170
170
  *
171
171
  * @type {Array<boolean>}
@@ -195,6 +195,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
195
195
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
196
196
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
197
197
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
198
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
199
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
198
200
  if (!('incidents' in value) || value['incidents'] === undefined) return false;
199
201
  return true;
200
202
  }
@@ -229,8 +231,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
229
231
  'firstAid': json['firstAid'],
230
232
  'signOnLat': json['signOnLat'],
231
233
  'signOnLong': json['signOnLong'],
232
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
233
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
234
+ 'signOffLat': json['signOffLat'],
235
+ 'signOffLong': json['signOffLong'],
234
236
  'incidents': json['incidents'],
235
237
  };
236
238
  }
@@ -123,7 +123,7 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat: number;
126
+ signOffLat?: number | null;
127
127
  /**
128
128
  *
129
129
  * @type {number}
@@ -190,7 +190,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
190
190
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
191
191
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
192
192
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
193
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
194
193
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
195
194
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
196
195
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -222,7 +221,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
222
221
  'firstAidImage': json['firstAidImage'],
223
222
  'signOnLat': json['signOnLat'],
224
223
  'signOnLong': json['signOnLong'],
225
- 'signOffLat': json['signOffLat'],
224
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
226
225
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
227
226
  'licenceNumber': json['licenceNumber'],
228
227
  'licenceExpiry': json['licenceExpiry'],
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
36
36
  * @type {Date}
37
37
  * @memberof RosterLiteResource
38
38
  */
39
- finishDateTime: Date;
39
+ finishDateTime?: Date | null;
40
40
  }
41
41
 
42
42
  /**
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
44
44
  */
45
45
  export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
46
46
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
47
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
48
47
  return true;
49
48
  }
50
49
 
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
60
59
 
61
60
  'id': json['id'] == null ? undefined : json['id'],
62
61
  'startDateTime': (new Date(json['startDateTime'])),
63
- 'finishDateTime': (new Date(json['finishDateTime'])),
62
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
64
63
  };
65
64
  }
66
65
 
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
77
76
 
78
77
  'id': value['id'],
79
78
  'startDateTime': ((value['startDateTime']).toISOString()),
80
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
79
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
81
80
  };
82
81
  }
83
82
 
@@ -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'],