@digital8/security-registers-backend-ts-sdk 0.0.330 → 0.0.331

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.330
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.331
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.330 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.331 --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'],
@@ -148,13 +148,13 @@ export interface RegisterListResource {
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLat?: number | null;
151
+ signOffLat: number;
152
152
  /**
153
153
  *
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}
@@ -62,7 +62,7 @@ function instanceOfRegisterListResource(value) {
62
62
  return false;
63
63
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
64
64
  return false;
65
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
65
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
66
66
  return false;
67
67
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
68
68
  return false;
@@ -97,8 +97,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
97
97
  'firstAid': json['firstAid'],
98
98
  'signOnLat': json['signOnLat'],
99
99
  'signOnLong': json['signOnLong'],
100
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
101
- 'signOffLong': json['signOffLong'],
100
+ 'signOffLat': json['signOffLat'],
101
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
102
102
  'hasIncidents': json['hasIncidents'],
103
103
  };
104
104
  }
@@ -46,7 +46,7 @@ export interface RegisterResource {
46
46
  * @type {Date}
47
47
  * @memberof RegisterResource
48
48
  */
49
- finishDateTime: Date;
49
+ finishDateTime?: Date | null;
50
50
  /**
51
51
  *
52
52
  * @type {number}
@@ -124,7 +124,7 @@ export interface RegisterResource {
124
124
  * @type {number}
125
125
  * @memberof RegisterResource
126
126
  */
127
- signOffLong?: number | null;
127
+ signOffLong: number;
128
128
  /**
129
129
  *
130
130
  * @type {string}
@@ -30,8 +30,6 @@ function instanceOfRegisterResource(value) {
30
30
  return false;
31
31
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
32
  return false;
33
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
- return false;
35
33
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
36
34
  return false;
37
35
  if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
@@ -56,6 +54,8 @@ function instanceOfRegisterResource(value) {
56
54
  return false;
57
55
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
58
56
  return false;
57
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
58
+ return false;
59
59
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
60
60
  return false;
61
61
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -80,7 +80,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
80
80
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
81
81
  'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
82
82
  'startDateTime': (new Date(json['startDateTime'])),
83
- 'finishDateTime': (new Date(json['finishDateTime'])),
83
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
84
84
  'signOffStatus': json['signOffStatus'],
85
85
  'signOnSignature': json['signOnSignature'],
86
86
  'signOffSignature': json['signOffSignature'],
@@ -93,7 +93,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
93
93
  'signOnLat': json['signOnLat'],
94
94
  'signOnLong': json['signOnLong'],
95
95
  'signOffLat': json['signOffLat'],
96
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
96
+ 'signOffLong': json['signOffLong'],
97
97
  'licenceNumber': json['licenceNumber'],
98
98
  'licenceExpiry': json['licenceExpiry'],
99
99
  'licenceFirstName': json['licenceFirstName'],
@@ -108,7 +108,7 @@ function RegisterResourceToJSON(json) {
108
108
  return RegisterResourceToJSONTyped(json, false);
109
109
  }
110
110
  function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
111
- var _a, _b;
111
+ var _a, _b, _c;
112
112
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
113
113
  if (value == null) {
114
114
  return value;
@@ -118,7 +118,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
118
118
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
119
119
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
120
120
  'startDateTime': ((value['startDateTime']).toISOString()),
121
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
121
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
122
122
  'signOffStatus': value['signOffStatus'],
123
123
  'signOnSignature': value['signOnSignature'],
124
124
  'signOffSignature': value['signOffSignature'],
@@ -138,7 +138,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
138
138
  'licenceLastName': value['licenceLastName'],
139
139
  'badgeNumber': value['badgeNumber'],
140
140
  'rampReadAt': ((value['rampReadAt']).toISOString()),
141
- 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
142
- 'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
141
+ 'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
142
+ 'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
143
143
  };
144
144
  }
@@ -47,7 +47,7 @@ export interface RosterResource {
47
47
  * @type {Date}
48
48
  * @memberof RosterResource
49
49
  */
50
- finishDateTime?: Date | null;
50
+ finishDateTime: Date;
51
51
  /**
52
52
  *
53
53
  * @type {boolean}
@@ -31,6 +31,8 @@ function instanceOfRosterResource(value) {
31
31
  return false;
32
32
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
33
33
  return false;
34
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
35
+ return false;
34
36
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
35
37
  return false;
36
38
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -53,7 +55,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
54
56
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
55
57
  'startDateTime': (new Date(json['startDateTime'])),
56
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
58
+ 'finishDateTime': (new Date(json['finishDateTime'])),
57
59
  'isCompliant': json['isCompliant'],
58
60
  'isComplete': json['isComplete'],
59
61
  'signOffStatus': json['signOffStatus'],
@@ -64,7 +66,6 @@ function RosterResourceToJSON(json) {
64
66
  return RosterResourceToJSONTyped(json, false);
65
67
  }
66
68
  function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
67
- var _a;
68
69
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
69
70
  if (value == null) {
70
71
  return value;
@@ -74,7 +75,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
74
75
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
75
76
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
76
77
  'startDateTime': ((value['startDateTime']).toISOString()),
77
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
78
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
78
79
  'isCompliant': value['isCompliant'],
79
80
  'isComplete': value['isComplete'],
80
81
  'signOffStatus': value['signOffStatus'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.330",
3
+ "version": "0.0.331",
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'],
@@ -165,13 +165,13 @@ export interface RegisterListResource {
165
165
  * @type {number}
166
166
  * @memberof RegisterListResource
167
167
  */
168
- signOffLat?: number | null;
168
+ signOffLat: number;
169
169
  /**
170
170
  *
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}
@@ -203,7 +203,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
203
203
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
204
204
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
205
205
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
206
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
206
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
207
207
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
208
208
  return true;
209
209
  }
@@ -239,8 +239,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
239
239
  'firstAid': json['firstAid'],
240
240
  'signOnLat': json['signOnLat'],
241
241
  'signOnLong': json['signOnLong'],
242
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
243
- 'signOffLong': json['signOffLong'],
242
+ 'signOffLat': json['signOffLat'],
243
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
244
244
  'hasIncidents': json['hasIncidents'],
245
245
  };
246
246
  }
@@ -63,7 +63,7 @@ export interface RegisterResource {
63
63
  * @type {Date}
64
64
  * @memberof RegisterResource
65
65
  */
66
- finishDateTime: Date;
66
+ finishDateTime?: Date | null;
67
67
  /**
68
68
  *
69
69
  * @type {number}
@@ -141,7 +141,7 @@ export interface RegisterResource {
141
141
  * @type {number}
142
142
  * @memberof RegisterResource
143
143
  */
144
- signOffLong?: number | null;
144
+ signOffLong: number;
145
145
  /**
146
146
  *
147
147
  * @type {string}
@@ -199,7 +199,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
199
199
  if (!('venue' in value) || value['venue'] === undefined) return false;
200
200
  if (!('user' in value) || value['user'] === undefined) return false;
201
201
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
202
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
203
202
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
204
203
  if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
205
204
  if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
@@ -212,6 +211,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
212
211
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
213
212
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
214
213
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
214
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
215
215
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
216
216
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
217
217
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -234,7 +234,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
234
234
  'venue': VenueLiteResourceFromJSON(json['venue']),
235
235
  'user': UserLiteResourceFromJSON(json['user']),
236
236
  'startDateTime': (new Date(json['startDateTime'])),
237
- 'finishDateTime': (new Date(json['finishDateTime'])),
237
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
238
238
  'signOffStatus': json['signOffStatus'],
239
239
  'signOnSignature': json['signOnSignature'],
240
240
  'signOffSignature': json['signOffSignature'],
@@ -247,7 +247,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
247
247
  'signOnLat': json['signOnLat'],
248
248
  'signOnLong': json['signOnLong'],
249
249
  'signOffLat': json['signOffLat'],
250
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
250
+ 'signOffLong': json['signOffLong'],
251
251
  'licenceNumber': json['licenceNumber'],
252
252
  'licenceExpiry': json['licenceExpiry'],
253
253
  'licenceFirstName': json['licenceFirstName'],
@@ -274,7 +274,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
274
274
  'venue': VenueLiteResourceToJSON(value['venue']),
275
275
  'user': UserLiteResourceToJSON(value['user']),
276
276
  'startDateTime': ((value['startDateTime']).toISOString()),
277
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
277
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
278
278
  'signOffStatus': value['signOffStatus'],
279
279
  'signOnSignature': value['signOnSignature'],
280
280
  'signOffSignature': value['signOffSignature'],
@@ -70,7 +70,7 @@ export interface RosterResource {
70
70
  * @type {Date}
71
71
  * @memberof RosterResource
72
72
  */
73
- finishDateTime?: Date | null;
73
+ finishDateTime: Date;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -104,6 +104,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
104
104
  if (!('venue' in value) || value['venue'] === undefined) return false;
105
105
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
106
106
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
107
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
107
108
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
108
109
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
109
110
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -125,7 +126,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
125
126
  'venue': VenueLiteResourceFromJSON(json['venue']),
126
127
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
127
128
  'startDateTime': (new Date(json['startDateTime'])),
128
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
129
+ 'finishDateTime': (new Date(json['finishDateTime'])),
129
130
  'isCompliant': json['isCompliant'],
130
131
  'isComplete': json['isComplete'],
131
132
  'signOffStatus': json['signOffStatus'],
@@ -148,7 +149,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
148
149
  'venue': VenueLiteResourceToJSON(value['venue']),
149
150
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
150
151
  'startDateTime': ((value['startDateTime']).toISOString()),
151
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
152
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
152
153
  'isCompliant': value['isCompliant'],
153
154
  'isComplete': value['isComplete'],
154
155
  'signOffStatus': value['signOffStatus'],