@digital8/security-registers-backend-ts-sdk 0.0.390 → 0.0.391
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 +8 -6
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +21 -64
- package/dist/apis/GeneralApi.js +62 -282
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/LicenceCheckLogResource.d.ts +104 -0
- package/dist/models/LicenceCheckLogResource.js +98 -0
- package/dist/models/LicenceCheckLogResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceCheckLogResourceArrayResponse.js +50 -0
- package/dist/models/LicencesCheckLogsListRequest.d.ts +89 -0
- package/dist/models/LicencesCheckLogsListRequest.js +77 -0
- package/dist/models/NotificationPreferenceResource.d.ts +0 -1
- package/dist/models/NotificationPreferenceResource.js +0 -1
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -1
- package/dist/models/NotificationPreferencesStoreRequest.js +0 -1
- package/dist/models/PaginatedLicenceCheckLogResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceCheckLogResourceResponse.js +57 -0
- package/dist/models/PdfExportQueuedResource.d.ts +54 -0
- package/dist/models/{ExportQueuedResource.js → PdfExportQueuedResource.js} +15 -15
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -2
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/{UserVenueResource.d.ts → VenueMobileResource.d.ts} +21 -21
- package/dist/models/{UserVenueResource.js → VenueMobileResource.js} +13 -13
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueMobileResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +8 -6
- package/dist/models/index.js +8 -6
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +77 -259
- package/src/models/AssetResource.ts +3 -2
- package/src/models/LicenceCheckLogResource.ts +168 -0
- package/src/models/LicenceCheckLogResourceArrayResponse.ts +73 -0
- package/src/models/LicencesCheckLogsListRequest.ts +140 -0
- package/src/models/NotificationPreferenceResource.ts +0 -1
- package/src/models/NotificationPreferencesStoreRequest.ts +0 -1
- package/src/models/PaginatedLicenceCheckLogResourceResponse.ts +90 -0
- package/src/models/{ExportQueuedResource.ts → PdfExportQueuedResource.ts} +16 -16
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/{UserVenueResource.ts → VenueMobileResource.ts} +23 -23
- package/src/models/VenueMobileResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +8 -6
- package/dist/models/ExportQueuedResource.d.ts +0 -54
- package/dist/models/ExportQueuedResourceArrayResponse.d.ts +0 -33
- package/dist/models/ExportQueuedResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportCsvBulkRequest.js +0 -63
- package/dist/models/UserVenueResourceArrayResponse.d.ts +0 -33
- package/dist/models/UserVenueResourceArrayResponse.js +0 -50
- package/dist/models/VenuesListForUserRequest.d.ts +0 -32
- package/dist/models/VenuesListForUserRequest.js +0 -51
- package/src/models/ExportQueuedResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsExportCsvBulkRequest.ts +0 -100
- package/src/models/UserVenueResourceArrayResponse.ts +0 -73
- package/src/models/VenuesListForUserRequest.ts +0 -66
|
@@ -0,0 +1,168 @@
|
|
|
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 LicenceCheckLogResource
|
|
20
|
+
*/
|
|
21
|
+
export interface LicenceCheckLogResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LicenceCheckLogResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof LicenceCheckLogResource
|
|
32
|
+
*/
|
|
33
|
+
createdAt?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicenceCheckLogResource
|
|
38
|
+
*/
|
|
39
|
+
state: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LicenceCheckLogResource
|
|
44
|
+
*/
|
|
45
|
+
licenceNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LicenceCheckLogResource
|
|
50
|
+
*/
|
|
51
|
+
result: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof LicenceCheckLogResource
|
|
56
|
+
*/
|
|
57
|
+
isBypass: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof LicenceCheckLogResource
|
|
62
|
+
*/
|
|
63
|
+
isExpired: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof LicenceCheckLogResource
|
|
68
|
+
*/
|
|
69
|
+
isCrowdController: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof LicenceCheckLogResource
|
|
74
|
+
*/
|
|
75
|
+
calledFrom: LicenceCheckLogResourceCalledFromEnum;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof LicenceCheckLogResource
|
|
80
|
+
*/
|
|
81
|
+
request: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof LicenceCheckLogResource
|
|
86
|
+
*/
|
|
87
|
+
response?: string | null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const LicenceCheckLogResourceCalledFromEnum = {
|
|
95
|
+
Cron: 'cron',
|
|
96
|
+
SignOn: 'sign_on',
|
|
97
|
+
ManualCreate: 'manual_create',
|
|
98
|
+
ManualUpdate: 'manual_update',
|
|
99
|
+
VerifyEndpoint: 'verify_endpoint',
|
|
100
|
+
Bypass: 'bypass'
|
|
101
|
+
} as const;
|
|
102
|
+
export type LicenceCheckLogResourceCalledFromEnum = typeof LicenceCheckLogResourceCalledFromEnum[keyof typeof LicenceCheckLogResourceCalledFromEnum];
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the LicenceCheckLogResource interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfLicenceCheckLogResource(value: object): value is LicenceCheckLogResource {
|
|
109
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
110
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
111
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
112
|
+
if (!('isBypass' in value) || value['isBypass'] === undefined) return false;
|
|
113
|
+
if (!('isExpired' in value) || value['isExpired'] === undefined) return false;
|
|
114
|
+
if (!('isCrowdController' in value) || value['isCrowdController'] === undefined) return false;
|
|
115
|
+
if (!('calledFrom' in value) || value['calledFrom'] === undefined) return false;
|
|
116
|
+
if (!('request' in value) || value['request'] === undefined) return false;
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function LicenceCheckLogResourceFromJSON(json: any): LicenceCheckLogResource {
|
|
121
|
+
return LicenceCheckLogResourceFromJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function LicenceCheckLogResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceCheckLogResource {
|
|
125
|
+
if (json == null) {
|
|
126
|
+
return json;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
131
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
132
|
+
'state': json['state'],
|
|
133
|
+
'licenceNumber': json['licenceNumber'],
|
|
134
|
+
'result': json['result'],
|
|
135
|
+
'isBypass': json['isBypass'],
|
|
136
|
+
'isExpired': json['isExpired'],
|
|
137
|
+
'isCrowdController': json['isCrowdController'],
|
|
138
|
+
'calledFrom': json['calledFrom'],
|
|
139
|
+
'request': json['request'],
|
|
140
|
+
'response': json['response'] == null ? undefined : json['response'],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function LicenceCheckLogResourceToJSON(json: any): LicenceCheckLogResource {
|
|
145
|
+
return LicenceCheckLogResourceToJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function LicenceCheckLogResourceToJSONTyped(value?: LicenceCheckLogResource | null, ignoreDiscriminator: boolean = false): any {
|
|
149
|
+
if (value == null) {
|
|
150
|
+
return value;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'id': value['id'],
|
|
156
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
157
|
+
'state': value['state'],
|
|
158
|
+
'licenceNumber': value['licenceNumber'],
|
|
159
|
+
'result': value['result'],
|
|
160
|
+
'isBypass': value['isBypass'],
|
|
161
|
+
'isExpired': value['isExpired'],
|
|
162
|
+
'isCrowdController': value['isCrowdController'],
|
|
163
|
+
'calledFrom': value['calledFrom'],
|
|
164
|
+
'request': value['request'],
|
|
165
|
+
'response': value['response'],
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
@@ -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 { LicenceCheckLogResource } from './LicenceCheckLogResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceCheckLogResourceFromJSON,
|
|
19
|
+
LicenceCheckLogResourceFromJSONTyped,
|
|
20
|
+
LicenceCheckLogResourceToJSON,
|
|
21
|
+
LicenceCheckLogResourceToJSONTyped,
|
|
22
|
+
} from './LicenceCheckLogResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceCheckLogResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceCheckLogResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LicenceCheckLogResource>}
|
|
33
|
+
* @memberof LicenceCheckLogResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LicenceCheckLogResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LicenceCheckLogResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLicenceCheckLogResourceArrayResponse(value: object): value is LicenceCheckLogResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LicenceCheckLogResourceArrayResponseFromJSON(json: any): LicenceCheckLogResourceArrayResponse {
|
|
46
|
+
return LicenceCheckLogResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LicenceCheckLogResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceCheckLogResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceCheckLogResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LicenceCheckLogResourceArrayResponseToJSON(json: any): LicenceCheckLogResourceArrayResponse {
|
|
60
|
+
return LicenceCheckLogResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LicenceCheckLogResourceArrayResponseToJSONTyped(value?: LicenceCheckLogResourceArrayResponse | 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(LicenceCheckLogResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
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 LicencesCheckLogsListRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesCheckLogsListRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LicencesCheckLogsListRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesCheckLogsListRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: LicencesCheckLogsListRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicencesCheckLogsListRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: LicencesCheckLogsListRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof LicencesCheckLogsListRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LicencesCheckLogsListRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof LicencesCheckLogsListRequest
|
|
56
|
+
*/
|
|
57
|
+
relatedId?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof LicencesCheckLogsListRequest
|
|
62
|
+
*/
|
|
63
|
+
relatedType?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof LicencesCheckLogsListRequest
|
|
68
|
+
*/
|
|
69
|
+
includesRelations?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const LicencesCheckLogsListRequestSortByEnum = {
|
|
77
|
+
CreatedAt: 'created_at'
|
|
78
|
+
} as const;
|
|
79
|
+
export type LicencesCheckLogsListRequestSortByEnum = typeof LicencesCheckLogsListRequestSortByEnum[keyof typeof LicencesCheckLogsListRequestSortByEnum];
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const LicencesCheckLogsListRequestSortDirectionEnum = {
|
|
85
|
+
Asc: 'asc',
|
|
86
|
+
Desc: 'desc'
|
|
87
|
+
} as const;
|
|
88
|
+
export type LicencesCheckLogsListRequestSortDirectionEnum = typeof LicencesCheckLogsListRequestSortDirectionEnum[keyof typeof LicencesCheckLogsListRequestSortDirectionEnum];
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the LicencesCheckLogsListRequest interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfLicencesCheckLogsListRequest(value: object): value is LicencesCheckLogsListRequest {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function LicencesCheckLogsListRequestFromJSON(json: any): LicencesCheckLogsListRequest {
|
|
99
|
+
return LicencesCheckLogsListRequestFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function LicencesCheckLogsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesCheckLogsListRequest {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
109
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
110
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
111
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
112
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
113
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
114
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
115
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function LicencesCheckLogsListRequestToJSON(json: any): LicencesCheckLogsListRequest {
|
|
120
|
+
return LicencesCheckLogsListRequestToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function LicencesCheckLogsListRequestToJSONTyped(value?: LicencesCheckLogsListRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'search': value['search'],
|
|
131
|
+
'sort_by': value['sortBy'],
|
|
132
|
+
'sort_direction': value['sortDirection'],
|
|
133
|
+
'per_page': value['perPage'],
|
|
134
|
+
'page': value['page'],
|
|
135
|
+
'related_id': value['relatedId'],
|
|
136
|
+
'related_type': value['relatedType'],
|
|
137
|
+
'includes_relations': value['includesRelations'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -71,7 +71,6 @@ export interface NotificationPreferenceResource {
|
|
|
71
71
|
*/
|
|
72
72
|
export const NotificationPreferenceResourceNotificationTypeEnum = {
|
|
73
73
|
IncidentAdded: 'incident_added',
|
|
74
|
-
IncidentPendingReminder: 'incident_pending_reminder',
|
|
75
74
|
NonSignOff: 'non_sign_off',
|
|
76
75
|
NonSignOn: 'non_sign_on',
|
|
77
76
|
SignOnRejected: 'sign_on_rejected',
|
|
@@ -45,7 +45,6 @@ export interface NotificationPreferencesStoreRequest {
|
|
|
45
45
|
*/
|
|
46
46
|
export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
|
|
47
47
|
IncidentAdded: 'incident_added',
|
|
48
|
-
IncidentPendingReminder: 'incident_pending_reminder',
|
|
49
48
|
NonSignOff: 'non_sign_off',
|
|
50
49
|
NonSignOn: 'non_sign_on',
|
|
51
50
|
SignOnRejected: 'sign_on_rejected',
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { LicenceCheckLogResource } from './LicenceCheckLogResource';
|
|
24
|
+
import {
|
|
25
|
+
LicenceCheckLogResourceFromJSON,
|
|
26
|
+
LicenceCheckLogResourceFromJSONTyped,
|
|
27
|
+
LicenceCheckLogResourceToJSON,
|
|
28
|
+
LicenceCheckLogResourceToJSONTyped,
|
|
29
|
+
} from './LicenceCheckLogResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedLicenceCheckLogResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedLicenceCheckLogResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<LicenceCheckLogResource>}
|
|
40
|
+
* @memberof PaginatedLicenceCheckLogResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<LicenceCheckLogResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedLicenceCheckLogResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedLicenceCheckLogResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedLicenceCheckLogResourceResponse(value: object): value is PaginatedLicenceCheckLogResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedLicenceCheckLogResourceResponseFromJSON(json: any): PaginatedLicenceCheckLogResourceResponse {
|
|
61
|
+
return PaginatedLicenceCheckLogResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedLicenceCheckLogResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLicenceCheckLogResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(LicenceCheckLogResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedLicenceCheckLogResourceResponseToJSON(json: any): PaginatedLicenceCheckLogResourceResponse {
|
|
76
|
+
return PaginatedLicenceCheckLogResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedLicenceCheckLogResourceResponseToJSONTyped(value?: PaginatedLicenceCheckLogResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(LicenceCheckLogResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -16,25 +16,25 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface PdfExportQueuedResource
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface PdfExportQueuedResource {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof PdfExportQueuedResource
|
|
26
26
|
*/
|
|
27
27
|
id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof PdfExportQueuedResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: PdfExportQueuedResourceStatusEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof PdfExportQueuedResource
|
|
38
38
|
*/
|
|
39
39
|
message: string;
|
|
40
40
|
}
|
|
@@ -43,30 +43,30 @@ export interface ExportQueuedResource {
|
|
|
43
43
|
/**
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
|
-
export const
|
|
46
|
+
export const PdfExportQueuedResourceStatusEnum = {
|
|
47
47
|
Pending: 'pending',
|
|
48
48
|
Processing: 'processing',
|
|
49
49
|
Completed: 'completed',
|
|
50
50
|
Failed: 'failed'
|
|
51
51
|
} as const;
|
|
52
|
-
export type
|
|
52
|
+
export type PdfExportQueuedResourceStatusEnum = typeof PdfExportQueuedResourceStatusEnum[keyof typeof PdfExportQueuedResourceStatusEnum];
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Check if a given object implements the
|
|
56
|
+
* Check if a given object implements the PdfExportQueuedResource interface.
|
|
57
57
|
*/
|
|
58
|
-
export function
|
|
58
|
+
export function instanceOfPdfExportQueuedResource(value: object): value is PdfExportQueuedResource {
|
|
59
59
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
60
60
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
61
61
|
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
62
|
return true;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export function
|
|
66
|
-
return
|
|
65
|
+
export function PdfExportQueuedResourceFromJSON(json: any): PdfExportQueuedResource {
|
|
66
|
+
return PdfExportQueuedResourceFromJSONTyped(json, false);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
69
|
+
export function PdfExportQueuedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportQueuedResource {
|
|
70
70
|
if (json == null) {
|
|
71
71
|
return json;
|
|
72
72
|
}
|
|
@@ -78,11 +78,11 @@ export function ExportQueuedResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export function
|
|
82
|
-
return
|
|
81
|
+
export function PdfExportQueuedResourceToJSON(json: any): PdfExportQueuedResource {
|
|
82
|
+
return PdfExportQueuedResourceToJSONTyped(json, false);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export function
|
|
85
|
+
export function PdfExportQueuedResourceToJSONTyped(value?: PdfExportQueuedResource | null, ignoreDiscriminator: boolean = false): any {
|
|
86
86
|
if (value == null) {
|
|
87
87
|
return value;
|
|
88
88
|
}
|
|
@@ -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 { PdfExportQueuedResource } from './PdfExportQueuedResource';
|
|
17
|
+
import {
|
|
18
|
+
PdfExportQueuedResourceFromJSON,
|
|
19
|
+
PdfExportQueuedResourceFromJSONTyped,
|
|
20
|
+
PdfExportQueuedResourceToJSON,
|
|
21
|
+
PdfExportQueuedResourceToJSONTyped,
|
|
22
|
+
} from './PdfExportQueuedResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PdfExportQueuedResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PdfExportQueuedResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PdfExportQueuedResource>}
|
|
33
|
+
* @memberof PdfExportQueuedResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<PdfExportQueuedResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PdfExportQueuedResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPdfExportQueuedResourceArrayResponse(value: object): value is PdfExportQueuedResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PdfExportQueuedResourceArrayResponseFromJSON(json: any): PdfExportQueuedResourceArrayResponse {
|
|
46
|
+
return PdfExportQueuedResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PdfExportQueuedResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportQueuedResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PdfExportQueuedResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PdfExportQueuedResourceArrayResponseToJSON(json: any): PdfExportQueuedResourceArrayResponse {
|
|
60
|
+
return PdfExportQueuedResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PdfExportQueuedResourceArrayResponseToJSONTyped(value?: PdfExportQueuedResourceArrayResponse | 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(PdfExportQueuedResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -123,13 +123,13 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong: number;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -208,6 +208,8 @@ 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
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
211
213
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
212
214
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
213
215
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -241,8 +243,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
241
243
|
'firstAidImage': json['firstAidImage'],
|
|
242
244
|
'signOnLat': json['signOnLat'],
|
|
243
245
|
'signOnLong': json['signOnLong'],
|
|
244
|
-
'signOffLat': json['signOffLat']
|
|
245
|
-
'signOffLong': json['signOffLong']
|
|
246
|
+
'signOffLat': json['signOffLat'],
|
|
247
|
+
'signOffLong': json['signOffLong'],
|
|
246
248
|
'licenceNumber': json['licenceNumber'],
|
|
247
249
|
'licenceExpiry': json['licenceExpiry'],
|
|
248
250
|
'licenceFirstName': json['licenceFirstName'],
|