@digital8/security-registers-backend-ts-sdk 0.0.612 → 0.0.613
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 +0 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -13
- package/dist/apis/GeneralApi.js +0 -58
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/IncidentResource.d.ts +0 -6
- package/dist/models/IncidentResource.js +0 -4
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -56
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentResource.ts +0 -9
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/index.ts +0 -1
- package/dist/models/IncidentsUpdateTitleRequest.d.ts +0 -32
- package/dist/models/IncidentsUpdateTitleRequest.js +0 -49
- package/src/models/IncidentsUpdateTitleRequest.ts +0 -65
package/.openapi-generator/FILES
CHANGED
|
@@ -64,7 +64,6 @@ src/models/IncidentsExportPdfRequest.ts
|
|
|
64
64
|
src/models/IncidentsListRequest.ts
|
|
65
65
|
src/models/IncidentsStoreRequest.ts
|
|
66
66
|
src/models/IncidentsUpdateRequest.ts
|
|
67
|
-
src/models/IncidentsUpdateTitleRequest.ts
|
|
68
67
|
src/models/IncidentsVideosStoreRequest.ts
|
|
69
68
|
src/models/IncidentsVideosUploadTokenRequest.ts
|
|
70
69
|
src/models/IndexMinimalUserRequest.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.613
|
|
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.613 --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, IncidentVideosRecentRequest, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest,
|
|
13
|
+
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentVideosRecentRequest, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, 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, PaginatedRecentVideoListResourceResponse, 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, VenuesGetVenuesForUserRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface AuthChangePasswordOperationRequest {
|
|
15
15
|
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
16
16
|
}
|
|
@@ -96,10 +96,6 @@ export interface IncidentsUpdateOperationRequest {
|
|
|
96
96
|
incident: number;
|
|
97
97
|
incidentsUpdateRequest?: IncidentsUpdateRequest;
|
|
98
98
|
}
|
|
99
|
-
export interface IncidentsUpdateTitleOperationRequest {
|
|
100
|
-
incident: number;
|
|
101
|
-
incidentsUpdateTitleRequest?: IncidentsUpdateTitleRequest;
|
|
102
|
-
}
|
|
103
99
|
export interface IncidentsVersionsRequest {
|
|
104
100
|
incident: number;
|
|
105
101
|
}
|
|
@@ -585,14 +581,6 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
585
581
|
* Auto-generated: incidents.update
|
|
586
582
|
*/
|
|
587
583
|
incidentsUpdate(requestParameters: IncidentsUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
|
|
588
|
-
/**
|
|
589
|
-
* Auto-generated: incidents.updateTitle
|
|
590
|
-
*/
|
|
591
|
-
incidentsUpdateTitleRaw(requestParameters: IncidentsUpdateTitleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentResource>>;
|
|
592
|
-
/**
|
|
593
|
-
* Auto-generated: incidents.updateTitle
|
|
594
|
-
*/
|
|
595
|
-
incidentsUpdateTitle(requestParameters: IncidentsUpdateTitleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
|
|
596
584
|
/**
|
|
597
585
|
* Auto-generated: incidents.versions
|
|
598
586
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -1633,64 +1633,6 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
});
|
|
1635
1635
|
};
|
|
1636
|
-
/**
|
|
1637
|
-
* Auto-generated: incidents.updateTitle
|
|
1638
|
-
*/
|
|
1639
|
-
GeneralApi.prototype.incidentsUpdateTitleRaw = function (requestParameters, initOverrides) {
|
|
1640
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1641
|
-
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
1642
|
-
return __generator(this, function (_a) {
|
|
1643
|
-
switch (_a.label) {
|
|
1644
|
-
case 0:
|
|
1645
|
-
if (requestParameters['incident'] == null) {
|
|
1646
|
-
throw new runtime.RequiredError('incident', 'Required parameter "incident" was null or undefined when calling incidentsUpdateTitle().');
|
|
1647
|
-
}
|
|
1648
|
-
queryParameters = {};
|
|
1649
|
-
headerParameters = {};
|
|
1650
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1651
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1652
|
-
token = this.configuration.accessToken;
|
|
1653
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
1654
|
-
case 1:
|
|
1655
|
-
tokenString = _a.sent();
|
|
1656
|
-
if (tokenString) {
|
|
1657
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1658
|
-
}
|
|
1659
|
-
_a.label = 2;
|
|
1660
|
-
case 2:
|
|
1661
|
-
urlPath = "/api/incidents/{incident}/title";
|
|
1662
|
-
urlPath = urlPath.replace("{".concat("incident", "}"), encodeURIComponent(String(requestParameters['incident'])));
|
|
1663
|
-
return [4 /*yield*/, this.request({
|
|
1664
|
-
path: urlPath,
|
|
1665
|
-
method: 'POST',
|
|
1666
|
-
headers: headerParameters,
|
|
1667
|
-
query: queryParameters,
|
|
1668
|
-
body: (0, index_1.IncidentsUpdateTitleRequestToJSON)(requestParameters['incidentsUpdateTitleRequest']),
|
|
1669
|
-
}, initOverrides)];
|
|
1670
|
-
case 3:
|
|
1671
|
-
response = _a.sent();
|
|
1672
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IncidentResourceFromJSON)(jsonValue); })];
|
|
1673
|
-
}
|
|
1674
|
-
});
|
|
1675
|
-
});
|
|
1676
|
-
};
|
|
1677
|
-
/**
|
|
1678
|
-
* Auto-generated: incidents.updateTitle
|
|
1679
|
-
*/
|
|
1680
|
-
GeneralApi.prototype.incidentsUpdateTitle = function (requestParameters, initOverrides) {
|
|
1681
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1682
|
-
var response;
|
|
1683
|
-
return __generator(this, function (_a) {
|
|
1684
|
-
switch (_a.label) {
|
|
1685
|
-
case 0: return [4 /*yield*/, this.incidentsUpdateTitleRaw(requestParameters, initOverrides)];
|
|
1686
|
-
case 1:
|
|
1687
|
-
response = _a.sent();
|
|
1688
|
-
return [4 /*yield*/, response.value()];
|
|
1689
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1690
|
-
}
|
|
1691
|
-
});
|
|
1692
|
-
});
|
|
1693
|
-
};
|
|
1694
1636
|
/**
|
|
1695
1637
|
* Auto-generated: incidents.versions
|
|
1696
1638
|
*/
|
|
@@ -30,6 +30,8 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('index' in value) || value['index'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'filePath': json['filePath'],
|
|
51
53
|
'fileName': json['fileName'],
|
|
52
54
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText']
|
|
55
|
+
'altText': json['altText'],
|
|
54
56
|
'index': json['index'],
|
|
55
57
|
'fileId': json['fileId'],
|
|
56
58
|
'isExternal': json['isExternal'],
|
|
@@ -71,12 +71,6 @@ export interface IncidentResource {
|
|
|
71
71
|
* @memberof IncidentResource
|
|
72
72
|
*/
|
|
73
73
|
incidentFieldSchema: IncidentFieldSchemaResource | null;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof IncidentResource
|
|
78
|
-
*/
|
|
79
|
-
title: string;
|
|
80
74
|
/**
|
|
81
75
|
*
|
|
82
76
|
* @type {string}
|
|
@@ -46,8 +46,6 @@ function instanceOfIncidentResource(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
if (!('incidentFieldSchema' in value) || value['incidentFieldSchema'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
-
if (!('title' in value) || value['title'] === undefined)
|
|
50
|
-
return false;
|
|
51
49
|
if (!('fields' in value) || value['fields'] === undefined)
|
|
52
50
|
return false;
|
|
53
51
|
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined)
|
|
@@ -72,7 +70,6 @@ function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
70
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
73
71
|
'primaryManager': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['primaryManager']),
|
|
74
72
|
'incidentFieldSchema': (0, IncidentFieldSchemaResource_1.IncidentFieldSchemaResourceFromJSON)(json['incidentFieldSchema']),
|
|
75
|
-
'title': json['title'],
|
|
76
73
|
'approvedBy': json['approvedBy'] == null ? undefined : json['approvedBy'],
|
|
77
74
|
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
78
75
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -101,7 +98,6 @@ function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
98
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
102
99
|
'primaryManager': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['primaryManager']),
|
|
103
100
|
'incidentFieldSchema': (0, IncidentFieldSchemaResource_1.IncidentFieldSchemaResourceToJSON)(value['incidentFieldSchema']),
|
|
104
|
-
'title': value['title'],
|
|
105
101
|
'approvedBy': value['approvedBy'],
|
|
106
102
|
'approvedAt': value['approvedAt'] === null ? null : ((_a = value['approvedAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
107
103
|
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber: string;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {Date}
|
|
@@ -160,7 +160,7 @@ export interface RegisterListResource {
|
|
|
160
160
|
* @type {number}
|
|
161
161
|
* @memberof RegisterListResource
|
|
162
162
|
*/
|
|
163
|
-
signOffLong
|
|
163
|
+
signOffLong?: number | null;
|
|
164
164
|
/**
|
|
165
165
|
*
|
|
166
166
|
* @type {boolean}
|
|
@@ -43,6 +43,8 @@ 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;
|
|
46
48
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
47
49
|
return false;
|
|
48
50
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -71,8 +73,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
71
73
|
return false;
|
|
72
74
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
73
75
|
return false;
|
|
74
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
|
-
return false;
|
|
76
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
77
77
|
return false;
|
|
78
78
|
return true;
|
|
@@ -92,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
92
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
93
93
|
'shiftLength': json['shiftLength'],
|
|
94
94
|
'signOffStatus': json['signOffStatus'],
|
|
95
|
-
'badgeNumber': json['badgeNumber']
|
|
95
|
+
'badgeNumber': json['badgeNumber'],
|
|
96
96
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
97
97
|
'licenceNumber': json['licenceNumber'],
|
|
98
98
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -108,7 +108,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
108
108
|
'signOnLat': json['signOnLat'],
|
|
109
109
|
'signOnLong': json['signOnLong'],
|
|
110
110
|
'signOffLat': json['signOffLat'],
|
|
111
|
-
'signOffLong': json['signOffLong'],
|
|
111
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
112
112
|
'hasIncidents': json['hasIncidents'],
|
|
113
113
|
};
|
|
114
114
|
}
|
|
@@ -69,6 +69,8 @@ function instanceOfRegisterResource(value) {
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
73
|
+
return false;
|
|
72
74
|
return true;
|
|
73
75
|
}
|
|
74
76
|
function RegisterResourceFromJSON(json) {
|
|
@@ -100,7 +102,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
102
|
'licenceExpiry': json['licenceExpiry'],
|
|
101
103
|
'licenceFirstName': json['licenceFirstName'],
|
|
102
104
|
'licenceLastName': json['licenceLastName'],
|
|
103
|
-
'badgeNumber': json['badgeNumber']
|
|
105
|
+
'badgeNumber': json['badgeNumber'],
|
|
104
106
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
105
107
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
106
108
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ export * from './IncidentsExportPdfRequest';
|
|
|
56
56
|
export * from './IncidentsListRequest';
|
|
57
57
|
export * from './IncidentsStoreRequest';
|
|
58
58
|
export * from './IncidentsUpdateRequest';
|
|
59
|
-
export * from './IncidentsUpdateTitleRequest';
|
|
60
59
|
export * from './IncidentsVideosStoreRequest';
|
|
61
60
|
export * from './IncidentsVideosUploadTokenRequest';
|
|
62
61
|
export * from './IndexMinimalUserRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -74,7 +74,6 @@ __exportStar(require("./IncidentsExportPdfRequest"), exports);
|
|
|
74
74
|
__exportStar(require("./IncidentsListRequest"), exports);
|
|
75
75
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
76
76
|
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
77
|
-
__exportStar(require("./IncidentsUpdateTitleRequest"), exports);
|
|
78
77
|
__exportStar(require("./IncidentsVideosStoreRequest"), exports);
|
|
79
78
|
__exportStar(require("./IncidentsVideosUploadTokenRequest"), exports);
|
|
80
79
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -42,7 +42,6 @@ import type {
|
|
|
42
42
|
IncidentsListRequest,
|
|
43
43
|
IncidentsStoreRequest,
|
|
44
44
|
IncidentsUpdateRequest,
|
|
45
|
-
IncidentsUpdateTitleRequest,
|
|
46
45
|
IncidentsVideosStoreRequest,
|
|
47
46
|
IncidentsVideosUploadTokenRequest,
|
|
48
47
|
IndexMinimalUserRequest,
|
|
@@ -182,8 +181,6 @@ import {
|
|
|
182
181
|
IncidentsStoreRequestToJSON,
|
|
183
182
|
IncidentsUpdateRequestFromJSON,
|
|
184
183
|
IncidentsUpdateRequestToJSON,
|
|
185
|
-
IncidentsUpdateTitleRequestFromJSON,
|
|
186
|
-
IncidentsUpdateTitleRequestToJSON,
|
|
187
184
|
IncidentsVideosStoreRequestFromJSON,
|
|
188
185
|
IncidentsVideosStoreRequestToJSON,
|
|
189
186
|
IncidentsVideosUploadTokenRequestFromJSON,
|
|
@@ -464,11 +461,6 @@ export interface IncidentsUpdateOperationRequest {
|
|
|
464
461
|
incidentsUpdateRequest?: IncidentsUpdateRequest;
|
|
465
462
|
}
|
|
466
463
|
|
|
467
|
-
export interface IncidentsUpdateTitleOperationRequest {
|
|
468
|
-
incident: number;
|
|
469
|
-
incidentsUpdateTitleRequest?: IncidentsUpdateTitleRequest;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
464
|
export interface IncidentsVersionsRequest {
|
|
473
465
|
incident: number;
|
|
474
466
|
}
|
|
@@ -2003,54 +1995,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
2003
1995
|
return await response.value();
|
|
2004
1996
|
}
|
|
2005
1997
|
|
|
2006
|
-
/**
|
|
2007
|
-
* Auto-generated: incidents.updateTitle
|
|
2008
|
-
*/
|
|
2009
|
-
async incidentsUpdateTitleRaw(requestParameters: IncidentsUpdateTitleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentResource>> {
|
|
2010
|
-
if (requestParameters['incident'] == null) {
|
|
2011
|
-
throw new runtime.RequiredError(
|
|
2012
|
-
'incident',
|
|
2013
|
-
'Required parameter "incident" was null or undefined when calling incidentsUpdateTitle().'
|
|
2014
|
-
);
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
const queryParameters: any = {};
|
|
2018
|
-
|
|
2019
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2020
|
-
|
|
2021
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2022
|
-
|
|
2023
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2024
|
-
const token = this.configuration.accessToken;
|
|
2025
|
-
const tokenString = await token("bearerAuth", []);
|
|
2026
|
-
|
|
2027
|
-
if (tokenString) {
|
|
2028
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
let urlPath = `/api/incidents/{incident}/title`;
|
|
2033
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
2034
|
-
|
|
2035
|
-
const response = await this.request({
|
|
2036
|
-
path: urlPath,
|
|
2037
|
-
method: 'POST',
|
|
2038
|
-
headers: headerParameters,
|
|
2039
|
-
query: queryParameters,
|
|
2040
|
-
body: IncidentsUpdateTitleRequestToJSON(requestParameters['incidentsUpdateTitleRequest']),
|
|
2041
|
-
}, initOverrides);
|
|
2042
|
-
|
|
2043
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentResourceFromJSON(jsonValue));
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
/**
|
|
2047
|
-
* Auto-generated: incidents.updateTitle
|
|
2048
|
-
*/
|
|
2049
|
-
async incidentsUpdateTitle(requestParameters: IncidentsUpdateTitleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource> {
|
|
2050
|
-
const response = await this.incidentsUpdateTitleRaw(requestParameters, initOverrides);
|
|
2051
|
-
return await response.value();
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
1998
|
/**
|
|
2055
1999
|
* Auto-generated: incidents.versions
|
|
2056
2000
|
*/
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -83,6 +83,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
83
83
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
84
84
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
85
85
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
86
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
86
87
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
87
88
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
88
89
|
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
103
104
|
'filePath': json['filePath'],
|
|
104
105
|
'fileName': json['fileName'],
|
|
105
106
|
'mimeType': json['mimeType'],
|
|
106
|
-
'altText': json['altText']
|
|
107
|
+
'altText': json['altText'],
|
|
107
108
|
'index': json['index'],
|
|
108
109
|
'fileId': json['fileId'],
|
|
109
110
|
'isExternal': json['isExternal'],
|
|
@@ -124,12 +124,6 @@ export interface IncidentResource {
|
|
|
124
124
|
* @memberof IncidentResource
|
|
125
125
|
*/
|
|
126
126
|
incidentFieldSchema: IncidentFieldSchemaResource | null;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof IncidentResource
|
|
131
|
-
*/
|
|
132
|
-
title: string;
|
|
133
127
|
/**
|
|
134
128
|
*
|
|
135
129
|
* @type {string}
|
|
@@ -192,7 +186,6 @@ export function instanceOfIncidentResource(value: object): value is IncidentReso
|
|
|
192
186
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
193
187
|
if (!('primaryManager' in value) || value['primaryManager'] === undefined) return false;
|
|
194
188
|
if (!('incidentFieldSchema' in value) || value['incidentFieldSchema'] === undefined) return false;
|
|
195
|
-
if (!('title' in value) || value['title'] === undefined) return false;
|
|
196
189
|
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
197
190
|
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined) return false;
|
|
198
191
|
if (!('videos' in value) || value['videos'] === undefined) return false;
|
|
@@ -217,7 +210,6 @@ export function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
217
210
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
218
211
|
'primaryManager': UserLiteResourceFromJSON(json['primaryManager']),
|
|
219
212
|
'incidentFieldSchema': IncidentFieldSchemaResourceFromJSON(json['incidentFieldSchema']),
|
|
220
|
-
'title': json['title'],
|
|
221
213
|
'approvedBy': json['approvedBy'] == null ? undefined : json['approvedBy'],
|
|
222
214
|
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
223
215
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -248,7 +240,6 @@ export function IncidentResourceToJSONTyped(value?: IncidentResource | null, ign
|
|
|
248
240
|
'user': UserLiteResourceToJSON(value['user']),
|
|
249
241
|
'primaryManager': UserLiteResourceToJSON(value['primaryManager']),
|
|
250
242
|
'incidentFieldSchema': IncidentFieldSchemaResourceToJSON(value['incidentFieldSchema']),
|
|
251
|
-
'title': value['title'],
|
|
252
243
|
'approvedBy': value['approvedBy'],
|
|
253
244
|
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
254
245
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {Date}
|
|
@@ -177,7 +177,7 @@ export interface RegisterListResource {
|
|
|
177
177
|
* @type {number}
|
|
178
178
|
* @memberof RegisterListResource
|
|
179
179
|
*/
|
|
180
|
-
signOffLong
|
|
180
|
+
signOffLong?: number | null;
|
|
181
181
|
/**
|
|
182
182
|
*
|
|
183
183
|
* @type {boolean}
|
|
@@ -207,6 +207,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
207
207
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
208
208
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
209
209
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
210
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
210
211
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
211
212
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
212
213
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -221,7 +222,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
221
222
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
222
223
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
223
224
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
224
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
225
225
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
226
226
|
return true;
|
|
227
227
|
}
|
|
@@ -243,7 +243,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
243
243
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
244
244
|
'shiftLength': json['shiftLength'],
|
|
245
245
|
'signOffStatus': json['signOffStatus'],
|
|
246
|
-
'badgeNumber': json['badgeNumber']
|
|
246
|
+
'badgeNumber': json['badgeNumber'],
|
|
247
247
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
248
248
|
'licenceNumber': json['licenceNumber'],
|
|
249
249
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -259,7 +259,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
259
259
|
'signOnLat': json['signOnLat'],
|
|
260
260
|
'signOnLong': json['signOnLong'],
|
|
261
261
|
'signOffLat': json['signOffLat'],
|
|
262
|
-
'signOffLong': json['signOffLong'],
|
|
262
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
263
263
|
'hasIncidents': json['hasIncidents'],
|
|
264
264
|
};
|
|
265
265
|
}
|
|
@@ -165,7 +165,7 @@ export interface RegisterResource {
|
|
|
165
165
|
* @type {string}
|
|
166
166
|
* @memberof RegisterResource
|
|
167
167
|
*/
|
|
168
|
-
badgeNumber
|
|
168
|
+
badgeNumber: string;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {Date}
|
|
@@ -220,6 +220,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
220
220
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
221
221
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
222
222
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
223
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
223
224
|
return true;
|
|
224
225
|
}
|
|
225
226
|
|
|
@@ -254,7 +255,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
254
255
|
'licenceExpiry': json['licenceExpiry'],
|
|
255
256
|
'licenceFirstName': json['licenceFirstName'],
|
|
256
257
|
'licenceLastName': json['licenceLastName'],
|
|
257
|
-
'badgeNumber': json['badgeNumber']
|
|
258
|
+
'badgeNumber': json['badgeNumber'],
|
|
258
259
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
259
260
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
260
261
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
package/src/models/index.ts
CHANGED
|
@@ -58,7 +58,6 @@ export * from './IncidentsExportPdfRequest';
|
|
|
58
58
|
export * from './IncidentsListRequest';
|
|
59
59
|
export * from './IncidentsStoreRequest';
|
|
60
60
|
export * from './IncidentsUpdateRequest';
|
|
61
|
-
export * from './IncidentsUpdateTitleRequest';
|
|
62
61
|
export * from './IncidentsVideosStoreRequest';
|
|
63
62
|
export * from './IncidentsVideosUploadTokenRequest';
|
|
64
63
|
export * from './IndexMinimalUserRequest';
|
|
@@ -1,32 +0,0 @@
|
|
|
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 IncidentsUpdateTitleRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsUpdateTitleRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IncidentsUpdateTitleRequest
|
|
22
|
-
*/
|
|
23
|
-
title?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the IncidentsUpdateTitleRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfIncidentsUpdateTitleRequest(value: object): value is IncidentsUpdateTitleRequest;
|
|
29
|
-
export declare function IncidentsUpdateTitleRequestFromJSON(json: any): IncidentsUpdateTitleRequest;
|
|
30
|
-
export declare function IncidentsUpdateTitleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateTitleRequest;
|
|
31
|
-
export declare function IncidentsUpdateTitleRequestToJSON(json: any): IncidentsUpdateTitleRequest;
|
|
32
|
-
export declare function IncidentsUpdateTitleRequestToJSONTyped(value?: IncidentsUpdateTitleRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
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.instanceOfIncidentsUpdateTitleRequest = instanceOfIncidentsUpdateTitleRequest;
|
|
17
|
-
exports.IncidentsUpdateTitleRequestFromJSON = IncidentsUpdateTitleRequestFromJSON;
|
|
18
|
-
exports.IncidentsUpdateTitleRequestFromJSONTyped = IncidentsUpdateTitleRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsUpdateTitleRequestToJSON = IncidentsUpdateTitleRequestToJSON;
|
|
20
|
-
exports.IncidentsUpdateTitleRequestToJSONTyped = IncidentsUpdateTitleRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsUpdateTitleRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsUpdateTitleRequest(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function IncidentsUpdateTitleRequestFromJSON(json) {
|
|
28
|
-
return IncidentsUpdateTitleRequestFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function IncidentsUpdateTitleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function IncidentsUpdateTitleRequestToJSON(json) {
|
|
39
|
-
return IncidentsUpdateTitleRequestToJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
function IncidentsUpdateTitleRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'title': value['title'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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 IncidentsUpdateTitleRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IncidentsUpdateTitleRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof IncidentsUpdateTitleRequest
|
|
26
|
-
*/
|
|
27
|
-
title?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the IncidentsUpdateTitleRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfIncidentsUpdateTitleRequest(value: object): value is IncidentsUpdateTitleRequest {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function IncidentsUpdateTitleRequestFromJSON(json: any): IncidentsUpdateTitleRequest {
|
|
38
|
-
return IncidentsUpdateTitleRequestFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function IncidentsUpdateTitleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateTitleRequest {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function IncidentsUpdateTitleRequestToJSON(json: any): IncidentsUpdateTitleRequest {
|
|
52
|
-
return IncidentsUpdateTitleRequestToJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function IncidentsUpdateTitleRequestToJSONTyped(value?: IncidentsUpdateTitleRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'title': value['title'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|