@digital8/security-registers-backend-ts-sdk 0.0.513 → 0.0.514
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 +3 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.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/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- 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 +3 -2
- package/src/models/AssetResource.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/RegisterListResource.ts +3 -2
- 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.514
|
|
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.514 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -30,8 +30,6 @@ 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;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'filePath': json['filePath'],
|
|
53
51
|
'fileName': json['fileName'],
|
|
54
52
|
'mimeType': json['mimeType'],
|
|
55
|
-
'altText': json['altText'],
|
|
53
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
56
54
|
'index': json['index'],
|
|
57
55
|
'fileId': json['fileId'],
|
|
58
56
|
'isExternal': json['isExternal'],
|
|
@@ -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
|
};
|
|
@@ -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']
|
|
108
|
+
'signOffLong': json['signOffLong'],
|
|
107
109
|
'hasIncidents': json['hasIncidents'],
|
|
108
110
|
};
|
|
109
111
|
}
|
|
@@ -65,8 +65,6 @@ function instanceOfRegisterResource(value) {
|
|
|
65
65
|
return false;
|
|
66
66
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
67
67
|
return false;
|
|
68
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
69
|
-
return false;
|
|
70
68
|
return true;
|
|
71
69
|
}
|
|
72
70
|
function RegisterResourceFromJSON(json) {
|
|
@@ -97,7 +95,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
95
|
'licenceExpiry': json['licenceExpiry'],
|
|
98
96
|
'licenceFirstName': json['licenceFirstName'],
|
|
99
97
|
'licenceLastName': json['licenceLastName'],
|
|
100
|
-
'badgeNumber': json['badgeNumber'],
|
|
98
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
101
99
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
102
100
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
103
101
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
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;
|
|
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']
|
|
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
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -83,7 +83,6 @@ 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;
|
|
87
86
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
88
87
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
89
88
|
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
104
103
|
'filePath': json['filePath'],
|
|
105
104
|
'fileName': json['fileName'],
|
|
106
105
|
'mimeType': json['mimeType'],
|
|
107
|
-
'altText': json['altText'],
|
|
106
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
108
107
|
'index': json['index'],
|
|
109
108
|
'fileId': json['fileId'],
|
|
110
109
|
'isExternal': json['isExternal'],
|
|
@@ -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;
|
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
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']
|
|
254
|
+
'signOffLong': json['signOffLong'],
|
|
254
255
|
'hasIncidents': json['hasIncidents'],
|
|
255
256
|
};
|
|
256
257
|
}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber?: string | null;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -212,7 +212,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
212
212
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
213
213
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
214
214
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
215
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
216
215
|
return true;
|
|
217
216
|
}
|
|
218
217
|
|
|
@@ -246,7 +245,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
246
245
|
'licenceExpiry': json['licenceExpiry'],
|
|
247
246
|
'licenceFirstName': json['licenceFirstName'],
|
|
248
247
|
'licenceLastName': json['licenceLastName'],
|
|
249
|
-
'badgeNumber': json['badgeNumber'],
|
|
248
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
250
249
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
251
250
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
252
251
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|