@digital8/security-registers-backend-ts-sdk 0.0.508 → 0.0.510
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 +2 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/NotificationPreferenceResource.d.ts +1 -0
- package/dist/models/NotificationPreferenceResource.js +1 -0
- package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +1 -0
- package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +1 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +1 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +1 -0
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/NotificationPreferenceResource.ts +1 -0
- package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +1 -0
- package/src/models/NotificationPreferencesStoreRequest.ts +1 -0
- package/src/models/RegisterResource.ts +2 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.510
|
|
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.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.510 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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'],
|
|
@@ -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
|
};
|
|
@@ -57,8 +57,6 @@ 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;
|
|
62
60
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
63
61
|
return false;
|
|
64
62
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -91,7 +89,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
89
|
'firstAidImage': json['firstAidImage'],
|
|
92
90
|
'signOnLat': json['signOnLat'],
|
|
93
91
|
'signOnLong': json['signOnLong'],
|
|
94
|
-
'signOffLat': json['signOffLat'],
|
|
92
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
95
93
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
96
94
|
'licenceNumber': json['licenceNumber'],
|
|
97
95
|
'licenceExpiry': json['licenceExpiry'],
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
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
|
|
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;
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -208,7 +208,6 @@ 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;
|
|
212
211
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
213
212
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
214
213
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -240,7 +239,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
240
239
|
'firstAidImage': json['firstAidImage'],
|
|
241
240
|
'signOnLat': json['signOnLat'],
|
|
242
241
|
'signOnLong': json['signOnLong'],
|
|
243
|
-
'signOffLat': json['signOffLat'],
|
|
242
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
244
243
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
245
244
|
'licenceNumber': json['licenceNumber'],
|
|
246
245
|
'licenceExpiry': json['licenceExpiry'],
|