@digital8/security-registers-backend-ts-sdk 0.0.507 → 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.507
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.507 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.509 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -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
  };
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong?: number | null;
157
+ signOffLong: number;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -69,6 +69,8 @@ function instanceOfRegisterListResource(value) {
69
69
  return false;
70
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
71
71
  return false;
72
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
+ return false;
72
74
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
73
75
  return false;
74
76
  return true;
@@ -103,7 +105,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
103
105
  'signOnLat': json['signOnLat'],
104
106
  'signOnLong': json['signOnLong'],
105
107
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
106
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
108
+ 'signOffLong': json['signOffLong'],
107
109
  'hasIncidents': json['hasIncidents'],
108
110
  };
109
111
  }
@@ -106,7 +106,7 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat?: number | null;
109
+ signOffLat: number;
110
110
  /**
111
111
  *
112
112
  * @type {number}
@@ -142,7 +142,7 @@ export interface RegisterResource {
142
142
  * @type {string}
143
143
  * @memberof RegisterResource
144
144
  */
145
- badgeNumber: string;
145
+ badgeNumber?: string | null;
146
146
  /**
147
147
  *
148
148
  * @type {Date}
@@ -57,6 +57,8 @@ function instanceOfRegisterResource(value) {
57
57
  return false;
58
58
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
59
59
  return false;
60
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
61
+ return false;
60
62
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
61
63
  return false;
62
64
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
@@ -67,8 +69,6 @@ function instanceOfRegisterResource(value) {
67
69
  return false;
68
70
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
69
71
  return false;
70
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
71
- return false;
72
72
  return true;
73
73
  }
74
74
  function RegisterResourceFromJSON(json) {
@@ -93,13 +93,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
93
93
  'firstAidImage': json['firstAidImage'],
94
94
  'signOnLat': json['signOnLat'],
95
95
  'signOnLong': json['signOnLong'],
96
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
96
+ 'signOffLat': json['signOffLat'],
97
97
  'signOffLong': json['signOffLong'],
98
98
  'licenceNumber': json['licenceNumber'],
99
99
  'licenceExpiry': json['licenceExpiry'],
100
100
  'licenceFirstName': json['licenceFirstName'],
101
101
  'licenceLastName': json['licenceLastName'],
102
- 'badgeNumber': json['badgeNumber'],
102
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
103
103
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
104
104
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
105
105
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -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.507",
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": {
@@ -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;
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong?: number | null;
174
+ signOffLong: number;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -214,6 +214,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
214
214
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
215
215
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
216
216
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
217
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
217
218
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
218
219
  return true;
219
220
  }
@@ -250,7 +251,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
250
251
  'signOnLat': json['signOnLat'],
251
252
  'signOnLong': json['signOnLong'],
252
253
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
253
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
254
+ 'signOffLong': json['signOffLong'],
254
255
  'hasIncidents': json['hasIncidents'],
255
256
  };
256
257
  }
@@ -123,7 +123,7 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat?: number | null;
126
+ signOffLat: number;
127
127
  /**
128
128
  *
129
129
  * @type {number}
@@ -159,7 +159,7 @@ export interface RegisterResource {
159
159
  * @type {string}
160
160
  * @memberof RegisterResource
161
161
  */
162
- badgeNumber: string;
162
+ badgeNumber?: string | null;
163
163
  /**
164
164
  *
165
165
  * @type {Date}
@@ -208,12 +208,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
208
208
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
211
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;
215
216
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
216
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
217
217
  return true;
218
218
  }
219
219
 
@@ -241,13 +241,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
241
241
  'firstAidImage': json['firstAidImage'],
242
242
  'signOnLat': json['signOnLat'],
243
243
  'signOnLong': json['signOnLong'],
244
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
244
+ 'signOffLat': json['signOffLat'],
245
245
  'signOffLong': json['signOffLong'],
246
246
  'licenceNumber': json['licenceNumber'],
247
247
  'licenceExpiry': json['licenceExpiry'],
248
248
  'licenceFirstName': json['licenceFirstName'],
249
249
  'licenceLastName': json['licenceLastName'],
250
- 'badgeNumber': json['badgeNumber'],
250
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
251
251
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
252
252
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
253
253
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -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'],