@digital8/security-registers-backend-ts-sdk 0.0.599 → 0.0.600

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.599
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.600
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.599 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.600 --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'],
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,6 +30,8 @@ function instanceOfAssetResource(value) {
30
30
  return false;
31
31
  if (!('mimeType' in value) || value['mimeType'] === undefined)
32
32
  return false;
33
+ if (!('altText' in value) || value['altText'] === undefined)
34
+ return false;
33
35
  if (!('index' in value) || value['index'] === undefined)
34
36
  return false;
35
37
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'filePath': json['filePath'],
51
53
  'fileName': json['fileName'],
52
54
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'] == null ? undefined : json['altText'],
55
+ 'altText': json['altText'],
54
56
  'index': json['index'],
55
57
  'fileId': json['fileId'],
56
58
  'isExternal': json['isExternal'],
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber: string;
67
+ badgeNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -160,7 +160,7 @@ export interface RegisterListResource {
160
160
  * @type {number}
161
161
  * @memberof RegisterListResource
162
162
  */
163
- signOffLong: number;
163
+ signOffLong?: number | null;
164
164
  /**
165
165
  *
166
166
  * @type {boolean}
@@ -43,8 +43,6 @@ function instanceOfRegisterListResource(value) {
43
43
  return false;
44
44
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
45
45
  return false;
46
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
47
- return false;
48
46
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
49
47
  return false;
50
48
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
@@ -73,8 +71,6 @@ function instanceOfRegisterListResource(value) {
73
71
  return false;
74
72
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
75
73
  return false;
76
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
77
- return false;
78
74
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
79
75
  return false;
80
76
  return true;
@@ -94,7 +90,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
94
90
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
95
91
  'shiftLength': json['shiftLength'],
96
92
  'signOffStatus': json['signOffStatus'],
97
- 'badgeNumber': json['badgeNumber'],
93
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
98
94
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
99
95
  'licenceNumber': json['licenceNumber'],
100
96
  'licenceFirstName': json['licenceFirstName'],
@@ -110,7 +106,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
110
106
  'signOnLat': json['signOnLat'],
111
107
  'signOnLong': json['signOnLong'],
112
108
  'signOffLat': json['signOffLat'],
113
- 'signOffLong': json['signOffLong'],
109
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
114
110
  'hasIncidents': json['hasIncidents'],
115
111
  };
116
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.599",
3
+ "version": "0.0.600",
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'],
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,6 +83,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
+ if (!('altText' in value) || value['altText'] === undefined) return false;
86
87
  if (!('index' in value) || value['index'] === undefined) return false;
87
88
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
89
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
103
104
  'filePath': json['filePath'],
104
105
  'fileName': json['fileName'],
105
106
  'mimeType': json['mimeType'],
106
- 'altText': json['altText'] == null ? undefined : json['altText'],
107
+ 'altText': json['altText'],
107
108
  'index': json['index'],
108
109
  'fileId': json['fileId'],
109
110
  'isExternal': json['isExternal'],
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber: string;
84
+ badgeNumber?: string | null;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -177,7 +177,7 @@ export interface RegisterListResource {
177
177
  * @type {number}
178
178
  * @memberof RegisterListResource
179
179
  */
180
- signOffLong: number;
180
+ signOffLong?: number | null;
181
181
  /**
182
182
  *
183
183
  * @type {boolean}
@@ -207,7 +207,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
207
207
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
208
208
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
209
209
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
210
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
211
210
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
212
211
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
213
212
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -222,7 +221,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
222
221
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
223
222
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
224
223
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
225
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
226
224
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
227
225
  return true;
228
226
  }
@@ -244,7 +242,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
244
242
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
245
243
  'shiftLength': json['shiftLength'],
246
244
  'signOffStatus': json['signOffStatus'],
247
- 'badgeNumber': json['badgeNumber'],
245
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
248
246
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
249
247
  'licenceNumber': json['licenceNumber'],
250
248
  'licenceFirstName': json['licenceFirstName'],
@@ -260,7 +258,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
260
258
  'signOnLat': json['signOnLat'],
261
259
  'signOnLong': json['signOnLong'],
262
260
  'signOffLat': json['signOffLat'],
263
- 'signOffLong': json['signOffLong'],
261
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
264
262
  'hasIncidents': json['hasIncidents'],
265
263
  };
266
264
  }