@digital8/security-registers-backend-ts-sdk 0.0.469 → 0.0.471
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 +1 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +6 -4
- package/dist/apis/GeneralApi.js +4 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +6 -0
- package/dist/models/IncidentsExportCsvBulkRequest.js +2 -0
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +6 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +2 -0
- package/dist/models/IncidentsExportPdfRequest.d.ts +32 -0
- package/dist/models/IncidentsExportPdfRequest.js +49 -0
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -2
- package/dist/models/RostersExportPdfRequest.d.ts +6 -0
- package/dist/models/RostersExportPdfRequest.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +14 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/IncidentsExportCsvBulkRequest.ts +8 -0
- package/src/models/IncidentsExportPdfBulkRequest.ts +8 -0
- package/src/models/IncidentsExportPdfRequest.ts +65 -0
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/RostersExportPdfRequest.ts +8 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -58,6 +58,7 @@ src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
|
|
|
58
58
|
src/models/IncidentsApproveRequest.ts
|
|
59
59
|
src/models/IncidentsExportCsvBulkRequest.ts
|
|
60
60
|
src/models/IncidentsExportPdfBulkRequest.ts
|
|
61
|
+
src/models/IncidentsExportPdfRequest.ts
|
|
61
62
|
src/models/IncidentsListRequest.ts
|
|
62
63
|
src/models/IncidentsStoreRequest.ts
|
|
63
64
|
src/models/IncidentsUpdateRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.471
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.471 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
13
|
+
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface AuthChangePasswordOperationRequest {
|
|
15
15
|
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
16
16
|
}
|
|
@@ -50,6 +50,7 @@ export interface IncidentsDestroyRequest {
|
|
|
50
50
|
}
|
|
51
51
|
export interface IncidentsExportCsvRequest {
|
|
52
52
|
incident: number;
|
|
53
|
+
incidentsExportPdfRequest?: IncidentsExportPdfRequest;
|
|
53
54
|
}
|
|
54
55
|
export interface IncidentsExportCsvBulkOperationRequest {
|
|
55
56
|
incidentsExportCsvBulkRequest?: IncidentsExportCsvBulkRequest;
|
|
@@ -60,8 +61,9 @@ export interface IncidentsExportCsvDownloadRequest {
|
|
|
60
61
|
export interface IncidentsExportCsvStatusRequest {
|
|
61
62
|
pdfExport: number;
|
|
62
63
|
}
|
|
63
|
-
export interface
|
|
64
|
+
export interface IncidentsExportPdfOperationRequest {
|
|
64
65
|
incident: number;
|
|
66
|
+
incidentsExportPdfRequest?: IncidentsExportPdfRequest;
|
|
65
67
|
}
|
|
66
68
|
export interface IncidentsExportPdfBulkOperationRequest {
|
|
67
69
|
incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
|
|
@@ -485,11 +487,11 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
485
487
|
/**
|
|
486
488
|
* Auto-generated: incidents.exportPdf
|
|
487
489
|
*/
|
|
488
|
-
incidentsExportPdfRaw(requestParameters:
|
|
490
|
+
incidentsExportPdfRaw(requestParameters: IncidentsExportPdfOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExportQueuedResource>>;
|
|
489
491
|
/**
|
|
490
492
|
* Auto-generated: incidents.exportPdf
|
|
491
493
|
*/
|
|
492
|
-
incidentsExportPdf(requestParameters:
|
|
494
|
+
incidentsExportPdf(requestParameters: IncidentsExportPdfOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExportQueuedResource>;
|
|
493
495
|
/**
|
|
494
496
|
* Auto-generated: incidents.exportPdf.bulk
|
|
495
497
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -807,6 +807,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
807
807
|
}
|
|
808
808
|
queryParameters = {};
|
|
809
809
|
headerParameters = {};
|
|
810
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
810
811
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
811
812
|
token = this.configuration.accessToken;
|
|
812
813
|
return [4 /*yield*/, token("bearerAuth", [])];
|
|
@@ -824,6 +825,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
824
825
|
method: 'POST',
|
|
825
826
|
headers: headerParameters,
|
|
826
827
|
query: queryParameters,
|
|
828
|
+
body: (0, index_1.IncidentsExportPdfRequestToJSON)(requestParameters['incidentsExportPdfRequest']),
|
|
827
829
|
}, initOverrides)];
|
|
828
830
|
case 3:
|
|
829
831
|
response = _a.sent();
|
|
@@ -1030,6 +1032,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
1030
1032
|
}
|
|
1031
1033
|
queryParameters = {};
|
|
1032
1034
|
headerParameters = {};
|
|
1035
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1033
1036
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1034
1037
|
token = this.configuration.accessToken;
|
|
1035
1038
|
return [4 /*yield*/, token("bearerAuth", [])];
|
|
@@ -1047,6 +1050,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
1047
1050
|
method: 'POST',
|
|
1048
1051
|
headers: headerParameters,
|
|
1049
1052
|
query: queryParameters,
|
|
1053
|
+
body: (0, index_1.IncidentsExportPdfRequestToJSON)(requestParameters['incidentsExportPdfRequest']),
|
|
1050
1054
|
}, initOverrides)];
|
|
1051
1055
|
case 3:
|
|
1052
1056
|
response = _a.sent();
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'fileId': json['file_id'],
|
|
46
44
|
'mimeType': json['mime_type'],
|
|
47
|
-
'altText': json['alt_text'],
|
|
45
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
48
46
|
'assetId': json['asset_id'],
|
|
49
47
|
'url': json['url'],
|
|
50
48
|
};
|
|
@@ -51,6 +51,12 @@ export interface IncidentsExportCsvBulkRequest {
|
|
|
51
51
|
* @memberof IncidentsExportCsvBulkRequest
|
|
52
52
|
*/
|
|
53
53
|
submittedByGuard?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
58
|
+
*/
|
|
59
|
+
additionalEmails?: Array<string>;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {number}
|
|
@@ -44,6 +44,7 @@ function IncidentsExportCsvBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
45
45
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
46
46
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
47
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
47
48
|
'venueId': json['venue_id'],
|
|
48
49
|
'search': json['search'] == null ? undefined : json['search'],
|
|
49
50
|
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
@@ -65,6 +66,7 @@ function IncidentsExportCsvBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
66
|
'user_id': value['userId'],
|
|
66
67
|
'has_approved_at': value['hasApprovedAt'],
|
|
67
68
|
'submitted_by_guard': value['submittedByGuard'],
|
|
69
|
+
'additional_emails': value['additionalEmails'],
|
|
68
70
|
'venue_id': value['venueId'],
|
|
69
71
|
'search': value['search'],
|
|
70
72
|
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
@@ -51,6 +51,12 @@ export interface IncidentsExportPdfBulkRequest {
|
|
|
51
51
|
* @memberof IncidentsExportPdfBulkRequest
|
|
52
52
|
*/
|
|
53
53
|
submittedByGuard?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
58
|
+
*/
|
|
59
|
+
additionalEmails?: Array<string>;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {number}
|
|
@@ -44,6 +44,7 @@ function IncidentsExportPdfBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
45
45
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
46
46
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
47
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
47
48
|
'venueId': json['venue_id'],
|
|
48
49
|
'search': json['search'] == null ? undefined : json['search'],
|
|
49
50
|
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
@@ -65,6 +66,7 @@ function IncidentsExportPdfBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
66
|
'user_id': value['userId'],
|
|
66
67
|
'has_approved_at': value['hasApprovedAt'],
|
|
67
68
|
'submitted_by_guard': value['submittedByGuard'],
|
|
69
|
+
'additional_emails': value['additionalEmails'],
|
|
68
70
|
'venue_id': value['venueId'],
|
|
69
71
|
'search': value['search'],
|
|
70
72
|
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IncidentsExportPdfRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsExportPdfRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof IncidentsExportPdfRequest
|
|
22
|
+
*/
|
|
23
|
+
additionalEmails?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IncidentsExportPdfRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIncidentsExportPdfRequest(value: object): value is IncidentsExportPdfRequest;
|
|
29
|
+
export declare function IncidentsExportPdfRequestFromJSON(json: any): IncidentsExportPdfRequest;
|
|
30
|
+
export declare function IncidentsExportPdfRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfRequest;
|
|
31
|
+
export declare function IncidentsExportPdfRequestToJSON(json: any): IncidentsExportPdfRequest;
|
|
32
|
+
export declare function IncidentsExportPdfRequestToJSONTyped(value?: IncidentsExportPdfRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfIncidentsExportPdfRequest = instanceOfIncidentsExportPdfRequest;
|
|
17
|
+
exports.IncidentsExportPdfRequestFromJSON = IncidentsExportPdfRequestFromJSON;
|
|
18
|
+
exports.IncidentsExportPdfRequestFromJSONTyped = IncidentsExportPdfRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsExportPdfRequestToJSON = IncidentsExportPdfRequestToJSON;
|
|
20
|
+
exports.IncidentsExportPdfRequestToJSONTyped = IncidentsExportPdfRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsExportPdfRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsExportPdfRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function IncidentsExportPdfRequestFromJSON(json) {
|
|
28
|
+
return IncidentsExportPdfRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function IncidentsExportPdfRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function IncidentsExportPdfRequestToJSON(json) {
|
|
39
|
+
return IncidentsExportPdfRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function IncidentsExportPdfRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'additional_emails': value['additionalEmails'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat: number;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong: number;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -57,6 +57,10 @@ function instanceOfRegisterResource(value) {
|
|
|
57
57
|
return false;
|
|
58
58
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
59
59
|
return false;
|
|
60
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
|
+
return false;
|
|
60
64
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
61
65
|
return false;
|
|
62
66
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -89,8 +93,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
93
|
'firstAidImage': json['firstAidImage'],
|
|
90
94
|
'signOnLat': json['signOnLat'],
|
|
91
95
|
'signOnLong': json['signOnLong'],
|
|
92
|
-
'signOffLat': json['signOffLat']
|
|
93
|
-
'signOffLong': json['signOffLong']
|
|
96
|
+
'signOffLat': json['signOffLat'],
|
|
97
|
+
'signOffLong': json['signOffLong'],
|
|
94
98
|
'licenceNumber': json['licenceNumber'],
|
|
95
99
|
'licenceExpiry': json['licenceExpiry'],
|
|
96
100
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -45,6 +45,12 @@ export interface RostersExportPdfRequest {
|
|
|
45
45
|
* @memberof RostersExportPdfRequest
|
|
46
46
|
*/
|
|
47
47
|
registersUserId?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof RostersExportPdfRequest
|
|
52
|
+
*/
|
|
53
|
+
additionalEmails?: Array<string>;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {number}
|
|
@@ -45,6 +45,7 @@ function RostersExportPdfRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'isCompliant': json['is_compliant'] == null ? undefined : json['is_compliant'],
|
|
46
46
|
'addressState': json['address-state'] == null ? undefined : json['address-state'],
|
|
47
47
|
'registersUserId': json['registers-user_id'] == null ? undefined : json['registers-user_id'],
|
|
48
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
48
49
|
'venueId': json['venue_id'],
|
|
49
50
|
'search': json['search'] == null ? undefined : json['search'],
|
|
50
51
|
'bookNumber': json['book_number'],
|
|
@@ -66,6 +67,7 @@ function RostersExportPdfRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
67
|
'is_compliant': value['isCompliant'],
|
|
67
68
|
'address-state': value['addressState'],
|
|
68
69
|
'registers-user_id': value['registersUserId'],
|
|
70
|
+
'additional_emails': value['additionalEmails'],
|
|
69
71
|
'venue_id': value['venueId'],
|
|
70
72
|
'search': value['search'],
|
|
71
73
|
'book_number': value['bookNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
|
50
50
|
export * from './IncidentsApproveRequest';
|
|
51
51
|
export * from './IncidentsExportCsvBulkRequest';
|
|
52
52
|
export * from './IncidentsExportPdfBulkRequest';
|
|
53
|
+
export * from './IncidentsExportPdfRequest';
|
|
53
54
|
export * from './IncidentsListRequest';
|
|
54
55
|
export * from './IncidentsStoreRequest';
|
|
55
56
|
export * from './IncidentsUpdateRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports
|
|
|
68
68
|
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
69
69
|
__exportStar(require("./IncidentsExportCsvBulkRequest"), exports);
|
|
70
70
|
__exportStar(require("./IncidentsExportPdfBulkRequest"), exports);
|
|
71
|
+
__exportStar(require("./IncidentsExportPdfRequest"), exports);
|
|
71
72
|
__exportStar(require("./IncidentsListRequest"), exports);
|
|
72
73
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
73
74
|
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -36,6 +36,7 @@ import type {
|
|
|
36
36
|
IncidentsApproveRequest,
|
|
37
37
|
IncidentsExportCsvBulkRequest,
|
|
38
38
|
IncidentsExportPdfBulkRequest,
|
|
39
|
+
IncidentsExportPdfRequest,
|
|
39
40
|
IncidentsListRequest,
|
|
40
41
|
IncidentsStoreRequest,
|
|
41
42
|
IncidentsUpdateRequest,
|
|
@@ -164,6 +165,8 @@ import {
|
|
|
164
165
|
IncidentsExportCsvBulkRequestToJSON,
|
|
165
166
|
IncidentsExportPdfBulkRequestFromJSON,
|
|
166
167
|
IncidentsExportPdfBulkRequestToJSON,
|
|
168
|
+
IncidentsExportPdfRequestFromJSON,
|
|
169
|
+
IncidentsExportPdfRequestToJSON,
|
|
167
170
|
IncidentsListRequestFromJSON,
|
|
168
171
|
IncidentsListRequestToJSON,
|
|
169
172
|
IncidentsStoreRequestFromJSON,
|
|
@@ -385,6 +388,7 @@ export interface IncidentsDestroyRequest {
|
|
|
385
388
|
|
|
386
389
|
export interface IncidentsExportCsvRequest {
|
|
387
390
|
incident: number;
|
|
391
|
+
incidentsExportPdfRequest?: IncidentsExportPdfRequest;
|
|
388
392
|
}
|
|
389
393
|
|
|
390
394
|
export interface IncidentsExportCsvBulkOperationRequest {
|
|
@@ -399,8 +403,9 @@ export interface IncidentsExportCsvStatusRequest {
|
|
|
399
403
|
pdfExport: number;
|
|
400
404
|
}
|
|
401
405
|
|
|
402
|
-
export interface
|
|
406
|
+
export interface IncidentsExportPdfOperationRequest {
|
|
403
407
|
incident: number;
|
|
408
|
+
incidentsExportPdfRequest?: IncidentsExportPdfRequest;
|
|
404
409
|
}
|
|
405
410
|
|
|
406
411
|
export interface IncidentsExportPdfBulkOperationRequest {
|
|
@@ -1327,6 +1332,8 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1327
1332
|
|
|
1328
1333
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1329
1334
|
|
|
1335
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1336
|
+
|
|
1330
1337
|
if (this.configuration && this.configuration.accessToken) {
|
|
1331
1338
|
const token = this.configuration.accessToken;
|
|
1332
1339
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -1344,6 +1351,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1344
1351
|
method: 'POST',
|
|
1345
1352
|
headers: headerParameters,
|
|
1346
1353
|
query: queryParameters,
|
|
1354
|
+
body: IncidentsExportPdfRequestToJSON(requestParameters['incidentsExportPdfRequest']),
|
|
1347
1355
|
}, initOverrides);
|
|
1348
1356
|
|
|
1349
1357
|
return new runtime.JSONApiResponse(response, (jsonValue) => ExportQueuedResourceFromJSON(jsonValue));
|
|
@@ -1490,7 +1498,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1490
1498
|
/**
|
|
1491
1499
|
* Auto-generated: incidents.exportPdf
|
|
1492
1500
|
*/
|
|
1493
|
-
async incidentsExportPdfRaw(requestParameters:
|
|
1501
|
+
async incidentsExportPdfRaw(requestParameters: IncidentsExportPdfOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExportQueuedResource>> {
|
|
1494
1502
|
if (requestParameters['incident'] == null) {
|
|
1495
1503
|
throw new runtime.RequiredError(
|
|
1496
1504
|
'incident',
|
|
@@ -1502,6 +1510,8 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1502
1510
|
|
|
1503
1511
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1504
1512
|
|
|
1513
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1514
|
+
|
|
1505
1515
|
if (this.configuration && this.configuration.accessToken) {
|
|
1506
1516
|
const token = this.configuration.accessToken;
|
|
1507
1517
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -1519,6 +1529,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1519
1529
|
method: 'POST',
|
|
1520
1530
|
headers: headerParameters,
|
|
1521
1531
|
query: queryParameters,
|
|
1532
|
+
body: IncidentsExportPdfRequestToJSON(requestParameters['incidentsExportPdfRequest']),
|
|
1522
1533
|
}, initOverrides);
|
|
1523
1534
|
|
|
1524
1535
|
return new runtime.JSONApiResponse(response, (jsonValue) => ExportQueuedResourceFromJSON(jsonValue));
|
|
@@ -1527,7 +1538,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1527
1538
|
/**
|
|
1528
1539
|
* Auto-generated: incidents.exportPdf
|
|
1529
1540
|
*/
|
|
1530
|
-
async incidentsExportPdf(requestParameters:
|
|
1541
|
+
async incidentsExportPdf(requestParameters: IncidentsExportPdfOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExportQueuedResource> {
|
|
1531
1542
|
const response = await this.incidentsExportPdfRaw(requestParameters, initOverrides);
|
|
1532
1543
|
return await response.value();
|
|
1533
1544
|
}
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -55,6 +55,12 @@ export interface IncidentsExportCsvBulkRequest {
|
|
|
55
55
|
* @memberof IncidentsExportCsvBulkRequest
|
|
56
56
|
*/
|
|
57
57
|
submittedByGuard?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IncidentsExportCsvBulkRequest
|
|
62
|
+
*/
|
|
63
|
+
additionalEmails?: Array<string>;
|
|
58
64
|
/**
|
|
59
65
|
*
|
|
60
66
|
* @type {number}
|
|
@@ -107,6 +113,7 @@ export function IncidentsExportCsvBulkRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
107
113
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
108
114
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
109
115
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
116
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
110
117
|
'venueId': json['venue_id'],
|
|
111
118
|
'search': json['search'] == null ? undefined : json['search'],
|
|
112
119
|
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
@@ -131,6 +138,7 @@ export function IncidentsExportCsvBulkRequestToJSONTyped(value?: IncidentsExport
|
|
|
131
138
|
'user_id': value['userId'],
|
|
132
139
|
'has_approved_at': value['hasApprovedAt'],
|
|
133
140
|
'submitted_by_guard': value['submittedByGuard'],
|
|
141
|
+
'additional_emails': value['additionalEmails'],
|
|
134
142
|
'venue_id': value['venueId'],
|
|
135
143
|
'search': value['search'],
|
|
136
144
|
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
@@ -55,6 +55,12 @@ export interface IncidentsExportPdfBulkRequest {
|
|
|
55
55
|
* @memberof IncidentsExportPdfBulkRequest
|
|
56
56
|
*/
|
|
57
57
|
submittedByGuard?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
62
|
+
*/
|
|
63
|
+
additionalEmails?: Array<string>;
|
|
58
64
|
/**
|
|
59
65
|
*
|
|
60
66
|
* @type {number}
|
|
@@ -107,6 +113,7 @@ export function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
107
113
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
108
114
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
109
115
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
116
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
110
117
|
'venueId': json['venue_id'],
|
|
111
118
|
'search': json['search'] == null ? undefined : json['search'],
|
|
112
119
|
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
@@ -131,6 +138,7 @@ export function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExport
|
|
|
131
138
|
'user_id': value['userId'],
|
|
132
139
|
'has_approved_at': value['hasApprovedAt'],
|
|
133
140
|
'submitted_by_guard': value['submittedByGuard'],
|
|
141
|
+
'additional_emails': value['additionalEmails'],
|
|
134
142
|
'venue_id': value['venueId'],
|
|
135
143
|
'search': value['search'],
|
|
136
144
|
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
@@ -0,0 +1,65 @@
|
|
|
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 IncidentsExportPdfRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsExportPdfRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof IncidentsExportPdfRequest
|
|
26
|
+
*/
|
|
27
|
+
additionalEmails?: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IncidentsExportPdfRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIncidentsExportPdfRequest(value: object): value is IncidentsExportPdfRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function IncidentsExportPdfRequestFromJSON(json: any): IncidentsExportPdfRequest {
|
|
38
|
+
return IncidentsExportPdfRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function IncidentsExportPdfRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function IncidentsExportPdfRequestToJSON(json: any): IncidentsExportPdfRequest {
|
|
52
|
+
return IncidentsExportPdfRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function IncidentsExportPdfRequestToJSONTyped(value?: IncidentsExportPdfRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'additional_emails': value['additionalEmails'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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;
|
|
@@ -239,8 +241,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
239
241
|
'firstAidImage': json['firstAidImage'],
|
|
240
242
|
'signOnLat': json['signOnLat'],
|
|
241
243
|
'signOnLong': json['signOnLong'],
|
|
242
|
-
'signOffLat': json['signOffLat']
|
|
243
|
-
'signOffLong': json['signOffLong']
|
|
244
|
+
'signOffLat': json['signOffLat'],
|
|
245
|
+
'signOffLong': json['signOffLong'],
|
|
244
246
|
'licenceNumber': json['licenceNumber'],
|
|
245
247
|
'licenceExpiry': json['licenceExpiry'],
|
|
246
248
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -49,6 +49,12 @@ export interface RostersExportPdfRequest {
|
|
|
49
49
|
* @memberof RostersExportPdfRequest
|
|
50
50
|
*/
|
|
51
51
|
registersUserId?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof RostersExportPdfRequest
|
|
56
|
+
*/
|
|
57
|
+
additionalEmails?: Array<string>;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {number}
|
|
@@ -107,6 +113,7 @@ export function RostersExportPdfRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
107
113
|
'isCompliant': json['is_compliant'] == null ? undefined : json['is_compliant'],
|
|
108
114
|
'addressState': json['address-state'] == null ? undefined : json['address-state'],
|
|
109
115
|
'registersUserId': json['registers-user_id'] == null ? undefined : json['registers-user_id'],
|
|
116
|
+
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
110
117
|
'venueId': json['venue_id'],
|
|
111
118
|
'search': json['search'] == null ? undefined : json['search'],
|
|
112
119
|
'bookNumber': json['book_number'],
|
|
@@ -131,6 +138,7 @@ export function RostersExportPdfRequestToJSONTyped(value?: RostersExportPdfReque
|
|
|
131
138
|
'is_compliant': value['isCompliant'],
|
|
132
139
|
'address-state': value['addressState'],
|
|
133
140
|
'registers-user_id': value['registersUserId'],
|
|
141
|
+
'additional_emails': value['additionalEmails'],
|
|
134
142
|
'venue_id': value['venueId'],
|
|
135
143
|
'search': value['search'],
|
|
136
144
|
'book_number': value['bookNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
|
52
52
|
export * from './IncidentsApproveRequest';
|
|
53
53
|
export * from './IncidentsExportCsvBulkRequest';
|
|
54
54
|
export * from './IncidentsExportPdfBulkRequest';
|
|
55
|
+
export * from './IncidentsExportPdfRequest';
|
|
55
56
|
export * from './IncidentsListRequest';
|
|
56
57
|
export * from './IncidentsStoreRequest';
|
|
57
58
|
export * from './IncidentsUpdateRequest';
|