@digital8/security-registers-backend-ts-sdk 0.0.205 → 0.0.207
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/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +43 -5
- package/dist/apis/GeneralApi.js +222 -8
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
- package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
- package/dist/models/NotificationPreferenceResource.d.ts +63 -0
- package/dist/models/NotificationPreferenceResource.js +67 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
- package/dist/models/NotificationTypeResource.d.ts +38 -0
- package/dist/models/NotificationTypeResource.js +55 -0
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -2
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +191 -14
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
- package/src/models/NotificationPreferenceResource.ts +116 -0
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
- package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
- package/src/models/NotificationTypeResource.ts +75 -0
- package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NotificationTypeResource
|
|
20
|
+
*/
|
|
21
|
+
export interface NotificationTypeResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotificationTypeResource
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NotificationTypeResource
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the NotificationTypeResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfNotificationTypeResource(value: object): value is NotificationTypeResource {
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NotificationTypeResourceFromJSON(json: any): NotificationTypeResource {
|
|
46
|
+
return NotificationTypeResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NotificationTypeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'value': json['value'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function NotificationTypeResourceToJSON(json: any): NotificationTypeResource {
|
|
61
|
+
return NotificationTypeResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function NotificationTypeResourceToJSONTyped(value?: NotificationTypeResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'value': value['value'],
|
|
72
|
+
'label': value['label'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { NotificationTypeResource } from './NotificationTypeResource';
|
|
17
|
+
import {
|
|
18
|
+
NotificationTypeResourceFromJSON,
|
|
19
|
+
NotificationTypeResourceFromJSONTyped,
|
|
20
|
+
NotificationTypeResourceToJSON,
|
|
21
|
+
NotificationTypeResourceToJSONTyped,
|
|
22
|
+
} from './NotificationTypeResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NotificationTypeResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NotificationTypeResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NotificationTypeResource>}
|
|
33
|
+
* @memberof NotificationTypeResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NotificationTypeResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NotificationTypeResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNotificationTypeResourceArrayResponse(value: object): value is NotificationTypeResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NotificationTypeResourceArrayResponseFromJSON(json: any): NotificationTypeResourceArrayResponse {
|
|
46
|
+
return NotificationTypeResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NotificationTypeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationTypeResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NotificationTypeResourceArrayResponseToJSON(json: any): NotificationTypeResourceArrayResponse {
|
|
60
|
+
return NotificationTypeResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NotificationTypeResourceArrayResponseToJSONTyped(value?: NotificationTypeResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(NotificationTypeResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -159,7 +159,7 @@ export interface RegisterListResource {
|
|
|
159
159
|
* @type {number}
|
|
160
160
|
* @memberof RegisterListResource
|
|
161
161
|
*/
|
|
162
|
-
signOffLat
|
|
162
|
+
signOffLat?: number | null;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {number}
|
|
@@ -196,7 +196,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
196
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
197
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
198
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
199
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
200
199
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
201
200
|
return true;
|
|
202
201
|
}
|
|
@@ -231,7 +230,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
231
230
|
'firstAid': json['firstAid'],
|
|
232
231
|
'signOnLat': json['signOnLat'],
|
|
233
232
|
'signOnLong': json['signOnLong'],
|
|
234
|
-
'signOffLat': json['signOffLat'],
|
|
233
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
235
234
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
236
235
|
'incidents': json['incidents'],
|
|
237
236
|
};
|
|
@@ -129,7 +129,7 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong: number;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -192,10 +192,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
192
192
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
193
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
194
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
195
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
196
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
197
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
198
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
198
199
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
200
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
199
201
|
return true;
|
|
200
202
|
}
|
|
201
203
|
|
|
@@ -224,12 +226,12 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
226
|
'signOnLat': json['signOnLat'],
|
|
225
227
|
'signOnLong': json['signOnLong'],
|
|
226
228
|
'signOffLat': json['signOffLat'],
|
|
227
|
-
'signOffLong': json['signOffLong']
|
|
229
|
+
'signOffLong': json['signOffLong'],
|
|
228
230
|
'licenceNumber': json['licenceNumber'],
|
|
229
231
|
'licenceExpiry': json['licenceExpiry'],
|
|
230
232
|
'licenceFirstName': json['licenceFirstName'],
|
|
231
233
|
'licenceLastName': json['licenceLastName'],
|
|
232
|
-
'badgeNumber': json['badgeNumber']
|
|
234
|
+
'badgeNumber': json['badgeNumber'],
|
|
233
235
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
234
236
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
235
237
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './CurrentRegisterResourceArrayResponse';
|
|
|
13
13
|
export * from './GenericResponse';
|
|
14
14
|
export * from './IncidentFieldSchemaResource';
|
|
15
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
16
|
+
export * from './IncidentFieldSchemasShowRequest';
|
|
16
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
17
18
|
export * from './IncidentResource';
|
|
18
19
|
export * from './IncidentResourceArrayResponse';
|
|
@@ -31,6 +32,11 @@ export * from './LicencesStoreRequest';
|
|
|
31
32
|
export * from './LicencesUpdateRequest';
|
|
32
33
|
export * from './LicencesVerifyRequest';
|
|
33
34
|
export * from './LoginAuthRequest';
|
|
35
|
+
export * from './NotificationPreferenceResource';
|
|
36
|
+
export * from './NotificationPreferenceResourceArrayResponse';
|
|
37
|
+
export * from './NotificationPreferencesStoreRequest';
|
|
38
|
+
export * from './NotificationTypeResource';
|
|
39
|
+
export * from './NotificationTypeResourceArrayResponse';
|
|
34
40
|
export * from './PaginatedLicenceListResourceResponse';
|
|
35
41
|
export * from './PaginatedLicenceResourceResponse';
|
|
36
42
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|