@digital8/security-registers-backend-ts-sdk 0.0.391 → 0.0.393
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 -4
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +109 -9
- package/dist/apis/GeneralApi.js +507 -4
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/ExportQueuedResource.d.ts +54 -0
- package/dist/models/{PdfExportQueuedResource.js → ExportQueuedResource.js} +15 -15
- package/dist/models/ExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/ExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportCsvBulkRequest.js +63 -0
- package/dist/models/NotificationPreferenceResource.d.ts +1 -0
- package/dist/models/NotificationPreferenceResource.js +1 -0
- package/dist/models/NotificationPreferencesBulkRequest.d.ts +33 -0
- package/dist/models/NotificationPreferencesBulkRequest.js +52 -0
- package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +56 -0
- package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +69 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +1 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +1 -0
- package/dist/models/NotificationTypeResource.d.ts +6 -0
- package/dist/models/NotificationTypeResource.js +4 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +2 -6
- package/dist/models/RegisterResource.d.ts +4 -4
- package/dist/models/RegisterResource.js +10 -14
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/{VenueMobileResource.d.ts → UserVenueResource.d.ts} +21 -21
- package/dist/models/{VenueMobileResource.js → UserVenueResource.js} +13 -13
- package/dist/models/UserVenueResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserVenueResourceArrayResponse.js +50 -0
- package/dist/models/VenuesListForUserRequest.d.ts +32 -0
- package/dist/models/VenuesListForUserRequest.js +51 -0
- package/dist/models/index.d.ts +8 -4
- package/dist/models/index.js +8 -4
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +457 -18
- package/src/models/AssetResource.ts +2 -3
- package/src/models/{PdfExportQueuedResource.ts → ExportQueuedResource.ts} +16 -16
- package/src/models/ExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsExportCsvBulkRequest.ts +100 -0
- package/src/models/NotificationPreferenceResource.ts +1 -0
- package/src/models/NotificationPreferencesBulkRequest.ts +74 -0
- package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +98 -0
- package/src/models/NotificationPreferencesStoreRequest.ts +1 -0
- package/src/models/NotificationTypeResource.ts +9 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +4 -6
- package/src/models/RegisterResource.ts +10 -12
- package/src/models/RosterResource.ts +3 -4
- package/src/models/{VenueMobileResource.ts → UserVenueResource.ts} +23 -23
- package/src/models/UserVenueResourceArrayResponse.ts +73 -0
- package/src/models/VenuesListForUserRequest.ts +66 -0
- package/src/models/index.ts +8 -4
- package/dist/models/PdfExportQueuedResource.d.ts +0 -54
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +0 -33
- package/dist/models/VenueMobileResourceArrayResponse.js +0 -50
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
- package/src/models/VenueMobileResourceArrayResponse.ts +0 -73
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.ExportQueuedResourceStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfExportQueuedResource = instanceOfExportQueuedResource;
|
|
18
|
+
exports.ExportQueuedResourceFromJSON = ExportQueuedResourceFromJSON;
|
|
19
|
+
exports.ExportQueuedResourceFromJSONTyped = ExportQueuedResourceFromJSONTyped;
|
|
20
|
+
exports.ExportQueuedResourceToJSON = ExportQueuedResourceToJSON;
|
|
21
|
+
exports.ExportQueuedResourceToJSONTyped = ExportQueuedResourceToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.ExportQueuedResourceStatusEnum = {
|
|
26
26
|
Pending: 'pending',
|
|
27
27
|
Processing: 'processing',
|
|
28
28
|
Completed: 'completed',
|
|
29
29
|
Failed: 'failed'
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* Check if a given object implements the
|
|
32
|
+
* Check if a given object implements the ExportQueuedResource interface.
|
|
33
33
|
*/
|
|
34
|
-
function
|
|
34
|
+
function instanceOfExportQueuedResource(value) {
|
|
35
35
|
if (!('id' in value) || value['id'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('status' in value) || value['status'] === undefined)
|
|
@@ -40,10 +40,10 @@ function instanceOfPdfExportQueuedResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function ExportQueuedResourceFromJSON(json) {
|
|
44
|
+
return ExportQueuedResourceFromJSONTyped(json, false);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ExportQueuedResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
47
|
if (json == null) {
|
|
48
48
|
return json;
|
|
49
49
|
}
|
|
@@ -53,10 +53,10 @@ function PdfExportQueuedResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'message': json['message'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function ExportQueuedResourceToJSON(json) {
|
|
57
|
+
return ExportQueuedResourceToJSONTyped(json, false);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ExportQueuedResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
60
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
61
|
if (value == null) {
|
|
62
62
|
return value;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ExportQueuedResource } from './ExportQueuedResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ExportQueuedResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ExportQueuedResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ExportQueuedResource>}
|
|
22
|
+
* @memberof ExportQueuedResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ExportQueuedResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ExportQueuedResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfExportQueuedResourceArrayResponse(value: object): value is ExportQueuedResourceArrayResponse;
|
|
30
|
+
export declare function ExportQueuedResourceArrayResponseFromJSON(json: any): ExportQueuedResourceArrayResponse;
|
|
31
|
+
export declare function ExportQueuedResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportQueuedResourceArrayResponse;
|
|
32
|
+
export declare function ExportQueuedResourceArrayResponseToJSON(json: any): ExportQueuedResourceArrayResponse;
|
|
33
|
+
export declare function ExportQueuedResourceArrayResponseToJSONTyped(value?: ExportQueuedResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfExportQueuedResourceArrayResponse = instanceOfExportQueuedResourceArrayResponse;
|
|
17
|
+
exports.ExportQueuedResourceArrayResponseFromJSON = ExportQueuedResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ExportQueuedResourceArrayResponseFromJSONTyped = ExportQueuedResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ExportQueuedResourceArrayResponseToJSON = ExportQueuedResourceArrayResponseToJSON;
|
|
20
|
+
exports.ExportQueuedResourceArrayResponseToJSONTyped = ExportQueuedResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ExportQueuedResource_1 = require("./ExportQueuedResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ExportQueuedResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfExportQueuedResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ExportQueuedResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ExportQueuedResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ExportQueuedResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ExportQueuedResource_1.ExportQueuedResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ExportQueuedResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ExportQueuedResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ExportQueuedResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ExportQueuedResource_1.ExportQueuedResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IncidentsExportCsvBulkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsExportCsvBulkRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
22
|
+
*/
|
|
23
|
+
venueId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
28
|
+
*/
|
|
29
|
+
securityCompanyId?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
34
|
+
*/
|
|
35
|
+
hasApprovedAt?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
40
|
+
*/
|
|
41
|
+
afterCreatedAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
46
|
+
*/
|
|
47
|
+
beforeCreatedAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IncidentsExportCsvBulkRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfIncidentsExportCsvBulkRequest(value: object): value is IncidentsExportCsvBulkRequest;
|
|
53
|
+
export declare function IncidentsExportCsvBulkRequestFromJSON(json: any): IncidentsExportCsvBulkRequest;
|
|
54
|
+
export declare function IncidentsExportCsvBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportCsvBulkRequest;
|
|
55
|
+
export declare function IncidentsExportCsvBulkRequestToJSON(json: any): IncidentsExportCsvBulkRequest;
|
|
56
|
+
export declare function IncidentsExportCsvBulkRequestToJSONTyped(value?: IncidentsExportCsvBulkRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIncidentsExportCsvBulkRequest = instanceOfIncidentsExportCsvBulkRequest;
|
|
17
|
+
exports.IncidentsExportCsvBulkRequestFromJSON = IncidentsExportCsvBulkRequestFromJSON;
|
|
18
|
+
exports.IncidentsExportCsvBulkRequestFromJSONTyped = IncidentsExportCsvBulkRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsExportCsvBulkRequestToJSON = IncidentsExportCsvBulkRequestToJSON;
|
|
20
|
+
exports.IncidentsExportCsvBulkRequestToJSONTyped = IncidentsExportCsvBulkRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsExportCsvBulkRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsExportCsvBulkRequest(value) {
|
|
25
|
+
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function IncidentsExportCsvBulkRequestFromJSON(json) {
|
|
34
|
+
return IncidentsExportCsvBulkRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function IncidentsExportCsvBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'venueId': json['venue_id'],
|
|
42
|
+
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
43
|
+
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
44
|
+
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
45
|
+
'beforeCreatedAt': (new Date(json['before_created_at'])),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function IncidentsExportCsvBulkRequestToJSON(json) {
|
|
49
|
+
return IncidentsExportCsvBulkRequestToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function IncidentsExportCsvBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'venue_id': value['venueId'],
|
|
58
|
+
'security_company_id': value['securityCompanyId'],
|
|
59
|
+
'has_approved_at': value['hasApprovedAt'],
|
|
60
|
+
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
61
|
+
'before_created_at': ((value['beforeCreatedAt']).toISOString()),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -58,6 +58,7 @@ export interface NotificationPreferenceResource {
|
|
|
58
58
|
*/
|
|
59
59
|
export declare const NotificationPreferenceResourceNotificationTypeEnum: {
|
|
60
60
|
readonly IncidentAdded: "incident_added";
|
|
61
|
+
readonly IncidentPendingReminder: "incident_pending_reminder";
|
|
61
62
|
readonly NonSignOff: "non_sign_off";
|
|
62
63
|
readonly NonSignOn: "non_sign_on";
|
|
63
64
|
readonly SignOnRejected: "sign_on_rejected";
|
|
@@ -25,6 +25,7 @@ var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
|
25
25
|
*/
|
|
26
26
|
exports.NotificationPreferenceResourceNotificationTypeEnum = {
|
|
27
27
|
IncidentAdded: 'incident_added',
|
|
28
|
+
IncidentPendingReminder: 'incident_pending_reminder',
|
|
28
29
|
NonSignOff: 'non_sign_off',
|
|
29
30
|
NonSignOn: 'non_sign_on',
|
|
30
31
|
SignOnRejected: 'sign_on_rejected',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { NotificationPreferencesBulkRequestPreferencesInner } from './NotificationPreferencesBulkRequestPreferencesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NotificationPreferencesBulkRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface NotificationPreferencesBulkRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<NotificationPreferencesBulkRequestPreferencesInner>}
|
|
22
|
+
* @memberof NotificationPreferencesBulkRequest
|
|
23
|
+
*/
|
|
24
|
+
preferences: Array<NotificationPreferencesBulkRequestPreferencesInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the NotificationPreferencesBulkRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfNotificationPreferencesBulkRequest(value: object): value is NotificationPreferencesBulkRequest;
|
|
30
|
+
export declare function NotificationPreferencesBulkRequestFromJSON(json: any): NotificationPreferencesBulkRequest;
|
|
31
|
+
export declare function NotificationPreferencesBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesBulkRequest;
|
|
32
|
+
export declare function NotificationPreferencesBulkRequestToJSON(json: any): NotificationPreferencesBulkRequest;
|
|
33
|
+
export declare function NotificationPreferencesBulkRequestToJSONTyped(value?: NotificationPreferencesBulkRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfNotificationPreferencesBulkRequest = instanceOfNotificationPreferencesBulkRequest;
|
|
17
|
+
exports.NotificationPreferencesBulkRequestFromJSON = NotificationPreferencesBulkRequestFromJSON;
|
|
18
|
+
exports.NotificationPreferencesBulkRequestFromJSONTyped = NotificationPreferencesBulkRequestFromJSONTyped;
|
|
19
|
+
exports.NotificationPreferencesBulkRequestToJSON = NotificationPreferencesBulkRequestToJSON;
|
|
20
|
+
exports.NotificationPreferencesBulkRequestToJSONTyped = NotificationPreferencesBulkRequestToJSONTyped;
|
|
21
|
+
var NotificationPreferencesBulkRequestPreferencesInner_1 = require("./NotificationPreferencesBulkRequestPreferencesInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the NotificationPreferencesBulkRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfNotificationPreferencesBulkRequest(value) {
|
|
26
|
+
if (!('preferences' in value) || value['preferences'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function NotificationPreferencesBulkRequestFromJSON(json) {
|
|
31
|
+
return NotificationPreferencesBulkRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function NotificationPreferencesBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'preferences': (json['preferences'].map(NotificationPreferencesBulkRequestPreferencesInner_1.NotificationPreferencesBulkRequestPreferencesInnerFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function NotificationPreferencesBulkRequestToJSON(json) {
|
|
42
|
+
return NotificationPreferencesBulkRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function NotificationPreferencesBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'preferences': (value['preferences'].map(NotificationPreferencesBulkRequestPreferencesInner_1.NotificationPreferencesBulkRequestPreferencesInnerToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotificationPreferencesBulkRequestPreferencesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface NotificationPreferencesBulkRequestPreferencesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotificationPreferencesBulkRequestPreferencesInner
|
|
22
|
+
*/
|
|
23
|
+
notificationType: NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof NotificationPreferencesBulkRequestPreferencesInner
|
|
28
|
+
*/
|
|
29
|
+
venueId?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof NotificationPreferencesBulkRequestPreferencesInner
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum: {
|
|
41
|
+
readonly IncidentAdded: "incident_added";
|
|
42
|
+
readonly IncidentPendingReminder: "incident_pending_reminder";
|
|
43
|
+
readonly NonSignOff: "non_sign_off";
|
|
44
|
+
readonly NonSignOn: "non_sign_on";
|
|
45
|
+
readonly SignOnRejected: "sign_on_rejected";
|
|
46
|
+
readonly LicenceUpdated: "licence_updated";
|
|
47
|
+
};
|
|
48
|
+
export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the NotificationPreferencesBulkRequestPreferencesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfNotificationPreferencesBulkRequestPreferencesInner(value: object): value is NotificationPreferencesBulkRequestPreferencesInner;
|
|
53
|
+
export declare function NotificationPreferencesBulkRequestPreferencesInnerFromJSON(json: any): NotificationPreferencesBulkRequestPreferencesInner;
|
|
54
|
+
export declare function NotificationPreferencesBulkRequestPreferencesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesBulkRequestPreferencesInner;
|
|
55
|
+
export declare function NotificationPreferencesBulkRequestPreferencesInnerToJSON(json: any): NotificationPreferencesBulkRequestPreferencesInner;
|
|
56
|
+
export declare function NotificationPreferencesBulkRequestPreferencesInnerToJSONTyped(value?: NotificationPreferencesBulkRequestPreferencesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfNotificationPreferencesBulkRequestPreferencesInner = instanceOfNotificationPreferencesBulkRequestPreferencesInner;
|
|
18
|
+
exports.NotificationPreferencesBulkRequestPreferencesInnerFromJSON = NotificationPreferencesBulkRequestPreferencesInnerFromJSON;
|
|
19
|
+
exports.NotificationPreferencesBulkRequestPreferencesInnerFromJSONTyped = NotificationPreferencesBulkRequestPreferencesInnerFromJSONTyped;
|
|
20
|
+
exports.NotificationPreferencesBulkRequestPreferencesInnerToJSON = NotificationPreferencesBulkRequestPreferencesInnerToJSON;
|
|
21
|
+
exports.NotificationPreferencesBulkRequestPreferencesInnerToJSONTyped = NotificationPreferencesBulkRequestPreferencesInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = {
|
|
26
|
+
IncidentAdded: 'incident_added',
|
|
27
|
+
IncidentPendingReminder: 'incident_pending_reminder',
|
|
28
|
+
NonSignOff: 'non_sign_off',
|
|
29
|
+
NonSignOn: 'non_sign_on',
|
|
30
|
+
SignOnRejected: 'sign_on_rejected',
|
|
31
|
+
LicenceUpdated: 'licence_updated'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the NotificationPreferencesBulkRequestPreferencesInner interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfNotificationPreferencesBulkRequestPreferencesInner(value) {
|
|
37
|
+
if (!('notificationType' in value) || value['notificationType'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function NotificationPreferencesBulkRequestPreferencesInnerFromJSON(json) {
|
|
44
|
+
return NotificationPreferencesBulkRequestPreferencesInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function NotificationPreferencesBulkRequestPreferencesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'notificationType': json['notification_type'],
|
|
52
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
53
|
+
'enabled': json['enabled'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function NotificationPreferencesBulkRequestPreferencesInnerToJSON(json) {
|
|
57
|
+
return NotificationPreferencesBulkRequestPreferencesInnerToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function NotificationPreferencesBulkRequestPreferencesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'notification_type': value['notificationType'],
|
|
66
|
+
'venue_id': value['venueId'],
|
|
67
|
+
'enabled': value['enabled'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -39,6 +39,7 @@ export interface NotificationPreferencesStoreRequest {
|
|
|
39
39
|
*/
|
|
40
40
|
export declare const NotificationPreferencesStoreRequestNotificationTypeEnum: {
|
|
41
41
|
readonly IncidentAdded: "incident_added";
|
|
42
|
+
readonly IncidentPendingReminder: "incident_pending_reminder";
|
|
42
43
|
readonly NonSignOff: "non_sign_off";
|
|
43
44
|
readonly NonSignOn: "non_sign_on";
|
|
44
45
|
readonly SignOnRejected: "sign_on_rejected";
|
|
@@ -24,6 +24,7 @@ exports.NotificationPreferencesStoreRequestToJSONTyped = NotificationPreferences
|
|
|
24
24
|
*/
|
|
25
25
|
exports.NotificationPreferencesStoreRequestNotificationTypeEnum = {
|
|
26
26
|
IncidentAdded: 'incident_added',
|
|
27
|
+
IncidentPendingReminder: 'incident_pending_reminder',
|
|
27
28
|
NonSignOff: 'non_sign_off',
|
|
28
29
|
NonSignOn: 'non_sign_on',
|
|
29
30
|
SignOnRejected: 'sign_on_rejected',
|
|
@@ -27,6 +27,12 @@ export interface NotificationTypeResource {
|
|
|
27
27
|
* @memberof NotificationTypeResource
|
|
28
28
|
*/
|
|
29
29
|
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof NotificationTypeResource
|
|
34
|
+
*/
|
|
35
|
+
supportsPerVenueOverride: boolean;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the NotificationTypeResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfNotificationTypeResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('label' in value) || value['label'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('supportsPerVenueOverride' in value) || value['supportsPerVenueOverride'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function NotificationTypeResourceFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ function NotificationTypeResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'value': json['value'],
|
|
40
42
|
'label': json['label'],
|
|
43
|
+
'supportsPerVenueOverride': json['supportsPerVenueOverride'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function NotificationTypeResourceToJSON(json) {
|
|
@@ -51,5 +54,6 @@ function NotificationTypeResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
54
|
return {
|
|
52
55
|
'value': value['value'],
|
|
53
56
|
'label': value['label'],
|
|
57
|
+
'supportsPerVenueOverride': value['supportsPerVenueOverride'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -32,6 +32,8 @@ function instanceOfRegisterGroupedByRosterResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
return true;
|
|
@@ -49,7 +51,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
49
51
|
'timezone': json['timezone'],
|
|
50
52
|
'state': json['state'],
|
|
51
53
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
52
|
-
'finishDateTime':
|
|
54
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
53
55
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -57,7 +59,6 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
57
59
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
58
60
|
}
|
|
59
61
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
-
var _a;
|
|
61
62
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
63
|
if (value == null) {
|
|
63
64
|
return value;
|
|
@@ -68,7 +69,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
68
69
|
'timezone': value['timezone'],
|
|
69
70
|
'state': value['state'],
|
|
70
71
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
71
|
-
'finishDateTime':
|
|
72
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
72
73
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
73
74
|
};
|
|
74
75
|
}
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {Date}
|
|
@@ -148,7 +148,7 @@ export interface RegisterListResource {
|
|
|
148
148
|
* @type {number}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLat
|
|
151
|
+
signOffLat?: number | null;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {number}
|
|
@@ -43,8 +43,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
47
|
-
return false;
|
|
48
46
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined)
|
|
49
47
|
return false;
|
|
50
48
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -71,8 +69,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
71
69
|
return false;
|
|
72
70
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
73
71
|
return false;
|
|
74
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
75
|
-
return false;
|
|
76
72
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
77
73
|
return false;
|
|
78
74
|
return true;
|
|
@@ -92,7 +88,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
88
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
93
89
|
'shiftLength': json['shiftLength'],
|
|
94
90
|
'signOffStatus': json['signOffStatus'],
|
|
95
|
-
'badgeNumber': json['badgeNumber'],
|
|
91
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
96
92
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
97
93
|
'licenceNumber': json['licenceNumber'],
|
|
98
94
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -106,7 +102,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
102
|
'firstAid': json['firstAid'],
|
|
107
103
|
'signOnLat': json['signOnLat'],
|
|
108
104
|
'signOnLong': json['signOnLong'],
|
|
109
|
-
'signOffLat': json['signOffLat'],
|
|
105
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
110
106
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
111
107
|
'hasIncidents': json['hasIncidents'],
|
|
112
108
|
};
|