@digital8/security-registers-backend-ts-sdk 0.0.629 → 0.0.630
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- 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/IncidentsStoreRequest.d.ts +0 -6
- package/dist/models/IncidentsStoreRequest.js +0 -2
- package/dist/models/IncidentsUpdateRequest.d.ts +0 -6
- package/dist/models/IncidentsUpdateRequest.js +0 -2
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- 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/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentResource.ts +0 -9
- package/src/models/IncidentsStoreRequest.ts +0 -8
- package/src/models/IncidentsUpdateRequest.ts +0 -8
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/SecurityCompanyResource.ts +2 -3
- 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.630
|
|
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.630 --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
|
*/
|
|
@@ -24,8 +24,6 @@ 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;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -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()),
|
|
@@ -39,12 +39,6 @@ export interface IncidentsStoreRequest {
|
|
|
39
39
|
* @memberof IncidentsStoreRequest
|
|
40
40
|
*/
|
|
41
41
|
fields: object;
|
|
42
|
-
/**
|
|
43
|
-
* Optional incident title (manager-owned metadata, not a schema field). Only non-guard (portal) callers may set it; a guard supplying a title is rejected.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof IncidentsStoreRequest
|
|
46
|
-
*/
|
|
47
|
-
title?: string | null;
|
|
48
42
|
}
|
|
49
43
|
/**
|
|
50
44
|
* @export
|
|
@@ -50,7 +50,6 @@ function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'type': json['type'],
|
|
51
51
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
52
52
|
'fields': json['fields'],
|
|
53
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
function IncidentsStoreRequestToJSON(json) {
|
|
@@ -66,6 +65,5 @@ function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
65
|
'type': value['type'],
|
|
67
66
|
'user_id': value['userId'],
|
|
68
67
|
'fields': value['fields'],
|
|
69
|
-
'title': value['title'],
|
|
70
68
|
};
|
|
71
69
|
}
|
|
@@ -21,12 +21,6 @@ export interface IncidentsUpdateRequest {
|
|
|
21
21
|
* @memberof IncidentsUpdateRequest
|
|
22
22
|
*/
|
|
23
23
|
fields: object;
|
|
24
|
-
/**
|
|
25
|
-
* Optional incident title (manager-owned metadata, not a schema field). Only non-guard (portal) callers may set it; a guard supplying a title is rejected. Omit to leave the existing title untouched; send null to clear it. Follows the same edit-locks as the field update.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentsUpdateRequest
|
|
28
|
-
*/
|
|
29
|
-
title?: string | null;
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
26
|
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
@@ -35,7 +35,6 @@ function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'fields': json['fields'],
|
|
38
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
function IncidentsUpdateRequestToJSON(json) {
|
|
@@ -48,6 +47,5 @@ function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
48
47
|
}
|
|
49
48
|
return {
|
|
50
49
|
'fields': value['fields'],
|
|
51
|
-
'title': value['title'],
|
|
52
50
|
};
|
|
53
51
|
}
|
|
@@ -61,6 +61,8 @@ function instanceOfRegisterResource(value) {
|
|
|
61
61
|
return false;
|
|
62
62
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
63
|
return false;
|
|
64
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
|
+
return false;
|
|
64
66
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
65
67
|
return false;
|
|
66
68
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -95,7 +97,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
97
|
'signOnLat': json['signOnLat'],
|
|
96
98
|
'signOnLong': json['signOnLong'],
|
|
97
99
|
'signOffLat': json['signOffLat'],
|
|
98
|
-
'signOffLong': json['signOffLong']
|
|
100
|
+
'signOffLong': json['signOffLong'],
|
|
99
101
|
'licenceNumber': json['licenceNumber'],
|
|
100
102
|
'licenceExpiry': json['licenceExpiry'],
|
|
101
103
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
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
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ 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;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -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()),
|
|
@@ -43,12 +43,6 @@ export interface IncidentsStoreRequest {
|
|
|
43
43
|
* @memberof IncidentsStoreRequest
|
|
44
44
|
*/
|
|
45
45
|
fields: object;
|
|
46
|
-
/**
|
|
47
|
-
* Optional incident title (manager-owned metadata, not a schema field). Only non-guard (portal) callers may set it; a guard supplying a title is rejected.
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof IncidentsStoreRequest
|
|
50
|
-
*/
|
|
51
|
-
title?: string | null;
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
|
|
@@ -86,7 +80,6 @@ export function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
86
80
|
'type': json['type'],
|
|
87
81
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
88
82
|
'fields': json['fields'],
|
|
89
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
90
83
|
};
|
|
91
84
|
}
|
|
92
85
|
|
|
@@ -105,7 +98,6 @@ export function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest |
|
|
|
105
98
|
'type': value['type'],
|
|
106
99
|
'user_id': value['userId'],
|
|
107
100
|
'fields': value['fields'],
|
|
108
|
-
'title': value['title'],
|
|
109
101
|
};
|
|
110
102
|
}
|
|
111
103
|
|
|
@@ -25,12 +25,6 @@ export interface IncidentsUpdateRequest {
|
|
|
25
25
|
* @memberof IncidentsUpdateRequest
|
|
26
26
|
*/
|
|
27
27
|
fields: object;
|
|
28
|
-
/**
|
|
29
|
-
* Optional incident title (manager-owned metadata, not a schema field). Only non-guard (portal) callers may set it; a guard supplying a title is rejected. Omit to leave the existing title untouched; send null to clear it. Follows the same edit-locks as the field update.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof IncidentsUpdateRequest
|
|
32
|
-
*/
|
|
33
|
-
title?: string | null;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
/**
|
|
@@ -52,7 +46,6 @@ export function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
52
46
|
return {
|
|
53
47
|
|
|
54
48
|
'fields': json['fields'],
|
|
55
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
56
49
|
};
|
|
57
50
|
}
|
|
58
51
|
|
|
@@ -68,7 +61,6 @@ export function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest
|
|
|
68
61
|
return {
|
|
69
62
|
|
|
70
63
|
'fields': value['fields'],
|
|
71
|
-
'title': value['title'],
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
66
|
|
|
@@ -135,7 +135,7 @@ export interface RegisterResource {
|
|
|
135
135
|
* @type {number}
|
|
136
136
|
* @memberof RegisterResource
|
|
137
137
|
*/
|
|
138
|
-
signOffLong
|
|
138
|
+
signOffLong: number;
|
|
139
139
|
/**
|
|
140
140
|
*
|
|
141
141
|
* @type {string}
|
|
@@ -216,6 +216,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
216
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
217
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
218
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
219
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
219
220
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
220
221
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
221
222
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -249,7 +250,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
249
250
|
'signOnLat': json['signOnLat'],
|
|
250
251
|
'signOnLong': json['signOnLong'],
|
|
251
252
|
'signOffLat': json['signOffLat'],
|
|
252
|
-
'signOffLong': json['signOffLong']
|
|
253
|
+
'signOffLong': json['signOffLong'],
|
|
253
254
|
'licenceNumber': json['licenceNumber'],
|
|
254
255
|
'licenceExpiry': json['licenceExpiry'],
|
|
255
256
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|
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
|
-
|