@digital8/security-registers-backend-ts-sdk 0.0.508 → 0.0.509

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.508
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.509
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.508 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.509 --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
  };
@@ -63,6 +63,7 @@ export declare const NotificationPreferenceResourceNotificationTypeEnum: {
63
63
  readonly NonSignOn: "non_sign_on";
64
64
  readonly SignOnRejected: "sign_on_rejected";
65
65
  readonly LicenceUpdated: "licence_updated";
66
+ readonly LicenceExpiringSoon: "licence_expiring_soon";
66
67
  readonly ExportReady: "export_ready";
67
68
  readonly ExportFailed: "export_failed";
68
69
  };
@@ -30,6 +30,7 @@ exports.NotificationPreferenceResourceNotificationTypeEnum = {
30
30
  NonSignOn: 'non_sign_on',
31
31
  SignOnRejected: 'sign_on_rejected',
32
32
  LicenceUpdated: 'licence_updated',
33
+ LicenceExpiringSoon: 'licence_expiring_soon',
33
34
  ExportReady: 'export_ready',
34
35
  ExportFailed: 'export_failed'
35
36
  };
@@ -44,6 +44,7 @@ export declare const NotificationPreferencesBulkRequestPreferencesInnerNotificat
44
44
  readonly NonSignOn: "non_sign_on";
45
45
  readonly SignOnRejected: "sign_on_rejected";
46
46
  readonly LicenceUpdated: "licence_updated";
47
+ readonly LicenceExpiringSoon: "licence_expiring_soon";
47
48
  readonly ExportReady: "export_ready";
48
49
  readonly ExportFailed: "export_failed";
49
50
  };
@@ -29,6 +29,7 @@ exports.NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum =
29
29
  NonSignOn: 'non_sign_on',
30
30
  SignOnRejected: 'sign_on_rejected',
31
31
  LicenceUpdated: 'licence_updated',
32
+ LicenceExpiringSoon: 'licence_expiring_soon',
32
33
  ExportReady: 'export_ready',
33
34
  ExportFailed: 'export_failed'
34
35
  };
@@ -44,6 +44,7 @@ export declare const NotificationPreferencesStoreRequestNotificationTypeEnum: {
44
44
  readonly NonSignOn: "non_sign_on";
45
45
  readonly SignOnRejected: "sign_on_rejected";
46
46
  readonly LicenceUpdated: "licence_updated";
47
+ readonly LicenceExpiringSoon: "licence_expiring_soon";
47
48
  readonly ExportReady: "export_ready";
48
49
  readonly ExportFailed: "export_failed";
49
50
  };
@@ -29,6 +29,7 @@ exports.NotificationPreferencesStoreRequestNotificationTypeEnum = {
29
29
  NonSignOn: 'non_sign_on',
30
30
  SignOnRejected: 'sign_on_rejected',
31
31
  LicenceUpdated: 'licence_updated',
32
+ LicenceExpiringSoon: 'licence_expiring_soon',
32
33
  ExportReady: 'export_ready',
33
34
  ExportFailed: 'export_failed'
34
35
  };
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber?: string | null;
67
+ badgeNumber: string;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -148,7 +148,7 @@ export interface RegisterListResource {
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLat: number;
151
+ signOffLat?: number | null;
152
152
  /**
153
153
  *
154
154
  * @type {number}
@@ -43,6 +43,8 @@ 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;
46
48
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
47
49
  return false;
48
50
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
@@ -67,8 +69,6 @@ function instanceOfRegisterListResource(value) {
67
69
  return false;
68
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
69
71
  return false;
70
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
71
- return false;
72
72
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
73
  return false;
74
74
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
@@ -90,7 +90,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
90
90
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
91
91
  'shiftLength': json['shiftLength'],
92
92
  'signOffStatus': json['signOffStatus'],
93
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
93
+ 'badgeNumber': json['badgeNumber'],
94
94
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
95
95
  'licenceNumber': json['licenceNumber'],
96
96
  'licenceFirstName': json['licenceFirstName'],
@@ -104,7 +104,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
104
104
  'firstAid': json['firstAid'],
105
105
  'signOnLat': json['signOnLat'],
106
106
  'signOnLong': json['signOnLong'],
107
- 'signOffLat': json['signOffLat'],
107
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
108
108
  'signOffLong': json['signOffLong'],
109
109
  'hasIncidents': json['hasIncidents'],
110
110
  };
@@ -112,7 +112,7 @@ export interface RegisterResource {
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}
@@ -59,6 +59,8 @@ function instanceOfRegisterResource(value) {
59
59
  return false;
60
60
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
61
61
  return false;
62
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
63
+ return false;
62
64
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
63
65
  return false;
64
66
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -92,7 +94,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
92
94
  'signOnLat': json['signOnLat'],
93
95
  'signOnLong': json['signOnLong'],
94
96
  'signOffLat': json['signOffLat'],
95
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
97
+ 'signOffLong': json['signOffLong'],
96
98
  'licenceNumber': json['licenceNumber'],
97
99
  'licenceExpiry': json['licenceExpiry'],
98
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.508",
3
+ "version": "0.0.509",
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
  };
@@ -76,6 +76,7 @@ export const NotificationPreferenceResourceNotificationTypeEnum = {
76
76
  NonSignOn: 'non_sign_on',
77
77
  SignOnRejected: 'sign_on_rejected',
78
78
  LicenceUpdated: 'licence_updated',
79
+ LicenceExpiringSoon: 'licence_expiring_soon',
79
80
  ExportReady: 'export_ready',
80
81
  ExportFailed: 'export_failed'
81
82
  } as const;
@@ -50,6 +50,7 @@ export const NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeE
50
50
  NonSignOn: 'non_sign_on',
51
51
  SignOnRejected: 'sign_on_rejected',
52
52
  LicenceUpdated: 'licence_updated',
53
+ LicenceExpiringSoon: 'licence_expiring_soon',
53
54
  ExportReady: 'export_ready',
54
55
  ExportFailed: 'export_failed'
55
56
  } as const;
@@ -50,6 +50,7 @@ export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
50
50
  NonSignOn: 'non_sign_on',
51
51
  SignOnRejected: 'sign_on_rejected',
52
52
  LicenceUpdated: 'licence_updated',
53
+ LicenceExpiringSoon: 'licence_expiring_soon',
53
54
  ExportReady: 'export_ready',
54
55
  ExportFailed: 'export_failed'
55
56
  } as const;
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber?: string | null;
84
+ badgeNumber: string;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -165,7 +165,7 @@ export interface RegisterListResource {
165
165
  * @type {number}
166
166
  * @memberof RegisterListResource
167
167
  */
168
- signOffLat: number;
168
+ signOffLat?: number | null;
169
169
  /**
170
170
  *
171
171
  * @type {number}
@@ -201,6 +201,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
201
201
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
202
202
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
203
203
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
204
+ if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
204
205
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
205
206
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
206
207
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -213,7 +214,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
213
214
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
214
215
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
215
216
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
216
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
217
217
  if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
218
218
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
219
219
  return true;
@@ -236,7 +236,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
236
236
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
237
237
  'shiftLength': json['shiftLength'],
238
238
  'signOffStatus': json['signOffStatus'],
239
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
239
+ 'badgeNumber': json['badgeNumber'],
240
240
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
241
241
  'licenceNumber': json['licenceNumber'],
242
242
  'licenceFirstName': json['licenceFirstName'],
@@ -250,7 +250,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
250
250
  'firstAid': json['firstAid'],
251
251
  'signOnLat': json['signOnLat'],
252
252
  'signOnLong': json['signOnLong'],
253
- 'signOffLat': json['signOffLat'],
253
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
254
254
  'signOffLong': json['signOffLong'],
255
255
  'hasIncidents': json['hasIncidents'],
256
256
  };
@@ -129,7 +129,7 @@ export interface RegisterResource {
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}
@@ -209,6 +209,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
211
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
212
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
212
213
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
213
214
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
214
215
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -241,7 +242,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
241
242
  'signOnLat': json['signOnLat'],
242
243
  'signOnLong': json['signOnLong'],
243
244
  'signOffLat': json['signOffLat'],
244
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
245
+ 'signOffLong': json['signOffLong'],
245
246
  'licenceNumber': json['licenceNumber'],
246
247
  'licenceExpiry': json['licenceExpiry'],
247
248
  'licenceFirstName': json['licenceFirstName'],