@digital8/security-registers-backend-ts-sdk 0.0.192 → 0.0.193
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 +7 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +40 -13
- package/dist/apis/GeneralApi.js +179 -19
- package/dist/models/IncidentFieldSchemaResource.d.ts +56 -0
- package/dist/models/IncidentFieldSchemaResource.js +62 -0
- package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +50 -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/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/RegistersUpdateRequest.d.ts +0 -12
- package/dist/models/RegistersUpdateRequest.js +0 -4
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/UpdateUserRequest.d.ts +0 -6
- package/dist/models/UpdateUserRequest.js +0 -2
- package/dist/models/UserLiteResource.d.ts +0 -7
- package/dist/models/UserLiteResource.js +0 -5
- package/dist/models/UserResource.d.ts +0 -6
- package/dist/models/UserResource.js +0 -4
- package/dist/models/UsersCreateWithRoleRequest.d.ts +0 -6
- package/dist/models/UsersCreateWithRoleRequest.js +0 -2
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +164 -29
- package/src/models/IncidentFieldSchemaResource.ts +99 -0
- package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +73 -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/RegisterResource.ts +3 -2
- package/src/models/RegistersUpdateRequest.ts +0 -16
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/UpdateUserRequest.ts +0 -8
- package/src/models/UserLiteResource.ts +0 -17
- package/src/models/UserResource.ts +0 -9
- package/src/models/UsersCreateWithRoleRequest.ts +0 -8
- package/src/models/index.ts +7 -1
- package/dist/models/RegistersCreateRequest.d.ts +0 -98
- package/dist/models/RegistersCreateRequest.js +0 -83
- package/src/models/RegistersCreateRequest.ts +0 -159
|
@@ -0,0 +1,99 @@
|
|
|
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 IncidentFieldSchemaResource
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentFieldSchemaResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IncidentFieldSchemaResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof IncidentFieldSchemaResource
|
|
32
|
+
*/
|
|
33
|
+
state: object;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<boolean>}
|
|
37
|
+
* @memberof IncidentFieldSchemaResource
|
|
38
|
+
*/
|
|
39
|
+
jsonSchema: Array<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof IncidentFieldSchemaResource
|
|
44
|
+
*/
|
|
45
|
+
createdAt?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof IncidentFieldSchemaResource
|
|
50
|
+
*/
|
|
51
|
+
updatedAt?: Date | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIncidentFieldSchemaResource(value: object): value is IncidentFieldSchemaResource {
|
|
58
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
59
|
+
if (!('jsonSchema' in value) || value['jsonSchema'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentFieldSchemaResourceFromJSON(json: any): IncidentFieldSchemaResource {
|
|
64
|
+
return IncidentFieldSchemaResourceFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function IncidentFieldSchemaResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemaResource {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
74
|
+
'state': json['state'],
|
|
75
|
+
'jsonSchema': json['jsonSchema'],
|
|
76
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
77
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function IncidentFieldSchemaResourceToJSON(json: any): IncidentFieldSchemaResource {
|
|
82
|
+
return IncidentFieldSchemaResourceToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function IncidentFieldSchemaResourceToJSONTyped(value?: IncidentFieldSchemaResource | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'id': value['id'],
|
|
93
|
+
'state': value['state'],
|
|
94
|
+
'jsonSchema': value['jsonSchema'],
|
|
95
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
96
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -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 { IncidentFieldSchemaResource } from './IncidentFieldSchemaResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentFieldSchemaResourceFromJSON,
|
|
19
|
+
IncidentFieldSchemaResourceFromJSONTyped,
|
|
20
|
+
IncidentFieldSchemaResourceToJSON,
|
|
21
|
+
IncidentFieldSchemaResourceToJSONTyped,
|
|
22
|
+
} from './IncidentFieldSchemaResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentFieldSchemaResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentFieldSchemaResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentFieldSchemaResource>}
|
|
33
|
+
* @memberof IncidentFieldSchemaResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentFieldSchemaResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentFieldSchemaResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentFieldSchemaResourceArrayResponse(value: object): value is IncidentFieldSchemaResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentFieldSchemaResourceArrayResponseFromJSON(json: any): IncidentFieldSchemaResourceArrayResponse {
|
|
46
|
+
return IncidentFieldSchemaResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentFieldSchemaResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemaResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentFieldSchemaResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentFieldSchemaResourceArrayResponseToJSON(json: any): IncidentFieldSchemaResourceArrayResponse {
|
|
60
|
+
return IncidentFieldSchemaResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentFieldSchemaResourceArrayResponseToJSONTyped(value?: IncidentFieldSchemaResourceArrayResponse | 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(IncidentFieldSchemaResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueLiteResourceFromJSON,
|
|
19
|
+
VenueLiteResourceFromJSONTyped,
|
|
20
|
+
VenueLiteResourceToJSON,
|
|
21
|
+
VenueLiteResourceToJSONTyped,
|
|
22
|
+
} from './VenueLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NotificationPreferenceResource
|
|
28
|
+
*/
|
|
29
|
+
export interface NotificationPreferenceResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof NotificationPreferenceResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NotificationPreferenceResource
|
|
40
|
+
*/
|
|
41
|
+
notificationType: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {VenueLiteResource}
|
|
45
|
+
* @memberof NotificationPreferenceResource
|
|
46
|
+
*/
|
|
47
|
+
venue: VenueLiteResource | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof NotificationPreferenceResource
|
|
52
|
+
*/
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof NotificationPreferenceResource
|
|
58
|
+
*/
|
|
59
|
+
createdAt?: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof NotificationPreferenceResource
|
|
64
|
+
*/
|
|
65
|
+
updatedAt?: Date | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfNotificationPreferenceResource(value: object): value is NotificationPreferenceResource {
|
|
72
|
+
if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
|
|
73
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
74
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function NotificationPreferenceResourceFromJSON(json: any): NotificationPreferenceResource {
|
|
79
|
+
return NotificationPreferenceResourceFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResource {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
89
|
+
'notificationType': json['notificationType'],
|
|
90
|
+
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
91
|
+
'enabled': json['enabled'],
|
|
92
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
93
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function NotificationPreferenceResourceToJSON(json: any): NotificationPreferenceResource {
|
|
98
|
+
return NotificationPreferenceResourceToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function NotificationPreferenceResourceToJSONTyped(value?: NotificationPreferenceResource | null, ignoreDiscriminator: boolean = false): any {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'id': value['id'],
|
|
109
|
+
'notificationType': value['notificationType'],
|
|
110
|
+
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
111
|
+
'enabled': value['enabled'],
|
|
112
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
113
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -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 { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
17
|
+
import {
|
|
18
|
+
NotificationPreferenceResourceFromJSON,
|
|
19
|
+
NotificationPreferenceResourceFromJSONTyped,
|
|
20
|
+
NotificationPreferenceResourceToJSON,
|
|
21
|
+
NotificationPreferenceResourceToJSONTyped,
|
|
22
|
+
} from './NotificationPreferenceResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NotificationPreferenceResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NotificationPreferenceResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NotificationPreferenceResource>}
|
|
33
|
+
* @memberof NotificationPreferenceResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NotificationPreferenceResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNotificationPreferenceResourceArrayResponse(value: object): value is NotificationPreferenceResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NotificationPreferenceResourceArrayResponseFromJSON(json: any): NotificationPreferenceResourceArrayResponse {
|
|
46
|
+
return NotificationPreferenceResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NotificationPreferenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NotificationPreferenceResourceArrayResponseToJSON(json: any): NotificationPreferenceResourceArrayResponse {
|
|
60
|
+
return NotificationPreferenceResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NotificationPreferenceResourceArrayResponseToJSONTyped(value?: NotificationPreferenceResourceArrayResponse | 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(NotificationPreferenceResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 NotificationPreferencesStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface NotificationPreferencesStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotificationPreferencesStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
notificationType: NotificationPreferencesStoreRequestNotificationTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof NotificationPreferencesStoreRequest
|
|
32
|
+
*/
|
|
33
|
+
venueId?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof NotificationPreferencesStoreRequest
|
|
38
|
+
*/
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
|
|
47
|
+
IncidentAdded: 'incident_added',
|
|
48
|
+
NonSignOff: 'non_sign_off',
|
|
49
|
+
NonSignOn: 'non_sign_on',
|
|
50
|
+
SignOnRejected: 'sign_on_rejected',
|
|
51
|
+
LicenceUpdated: 'licence_updated'
|
|
52
|
+
} as const;
|
|
53
|
+
export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the NotificationPreferencesStoreRequest interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfNotificationPreferencesStoreRequest(value: object): value is NotificationPreferencesStoreRequest {
|
|
60
|
+
if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
|
|
61
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function NotificationPreferencesStoreRequestFromJSON(json: any): NotificationPreferencesStoreRequest {
|
|
66
|
+
return NotificationPreferencesStoreRequestFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function NotificationPreferencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesStoreRequest {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'notificationType': json['notification_type'],
|
|
76
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
77
|
+
'enabled': json['enabled'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function NotificationPreferencesStoreRequestToJSON(json: any): NotificationPreferencesStoreRequest {
|
|
82
|
+
return NotificationPreferencesStoreRequestToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function NotificationPreferencesStoreRequestToJSONTyped(value?: NotificationPreferencesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'notification_type': value['notificationType'],
|
|
93
|
+
'venue_id': value['venueId'],
|
|
94
|
+
'enabled': value['enabled'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -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 RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -195,6 +195,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
195
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
197
197
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
198
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
198
199
|
return true;
|
|
199
200
|
}
|
|
200
201
|
|
|
@@ -228,7 +229,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
228
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
229
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
230
231
|
'licenceLastName': json['licenceLastName'],
|
|
231
|
-
'badgeNumber': json['badgeNumber']
|
|
232
|
+
'badgeNumber': json['badgeNumber'],
|
|
232
233
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
233
234
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
234
235
|
};
|
|
@@ -25,12 +25,6 @@ export interface RegistersUpdateRequest {
|
|
|
25
25
|
* @memberof RegistersUpdateRequest
|
|
26
26
|
*/
|
|
27
27
|
userId?: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof RegistersUpdateRequest
|
|
32
|
-
*/
|
|
33
|
-
venueId?: number;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {Date}
|
|
@@ -91,12 +85,6 @@ export interface RegistersUpdateRequest {
|
|
|
91
85
|
* @memberof RegistersUpdateRequest
|
|
92
86
|
*/
|
|
93
87
|
signOffLong?: number;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {boolean}
|
|
97
|
-
* @memberof RegistersUpdateRequest
|
|
98
|
-
*/
|
|
99
|
-
bypassActiveRegisterCheck?: boolean;
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
|
|
@@ -129,7 +117,6 @@ export function RegistersUpdateRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
117
|
return {
|
|
130
118
|
|
|
131
119
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
132
|
-
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
133
120
|
'startDateTime': json['start_date_time'] == null ? undefined : (new Date(json['start_date_time'])),
|
|
134
121
|
'finishDateTime': json['finish_date_time'] == null ? undefined : (new Date(json['finish_date_time'])),
|
|
135
122
|
'signOffStatus': json['sign_off_status'] == null ? undefined : json['sign_off_status'],
|
|
@@ -140,7 +127,6 @@ export function RegistersUpdateRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
140
127
|
'signOnLong': json['sign_on_long'] == null ? undefined : json['sign_on_long'],
|
|
141
128
|
'signOffLat': json['sign_off_lat'] == null ? undefined : json['sign_off_lat'],
|
|
142
129
|
'signOffLong': json['sign_off_long'] == null ? undefined : json['sign_off_long'],
|
|
143
|
-
'bypassActiveRegisterCheck': json['bypass_active_register_check'] == null ? undefined : json['bypass_active_register_check'],
|
|
144
130
|
};
|
|
145
131
|
}
|
|
146
132
|
|
|
@@ -156,7 +142,6 @@ export function RegistersUpdateRequestToJSONTyped(value?: RegistersUpdateRequest
|
|
|
156
142
|
return {
|
|
157
143
|
|
|
158
144
|
'user_id': value['userId'],
|
|
159
|
-
'venue_id': value['venueId'],
|
|
160
145
|
'start_date_time': value['startDateTime'] == null ? undefined : ((value['startDateTime']).toISOString()),
|
|
161
146
|
'finish_date_time': value['finishDateTime'] == null ? undefined : ((value['finishDateTime']).toISOString()),
|
|
162
147
|
'sign_off_status': value['signOffStatus'],
|
|
@@ -167,7 +152,6 @@ export function RegistersUpdateRequestToJSONTyped(value?: RegistersUpdateRequest
|
|
|
167
152
|
'sign_on_long': value['signOnLong'],
|
|
168
153
|
'sign_off_lat': value['signOffLat'],
|
|
169
154
|
'sign_off_long': value['signOffLong'],
|
|
170
|
-
'bypass_active_register_check': value['bypassActiveRegisterCheck'],
|
|
171
155
|
};
|
|
172
156
|
}
|
|
173
157
|
|