@digital8/security-registers-backend-ts-sdk 0.0.902 → 0.0.904

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.
@@ -70,6 +70,7 @@ src/models/IncidentVideoStatus.ts
70
70
  src/models/IncidentVideoUploadTokenResource.ts
71
71
  src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
72
72
  src/models/IncidentVideosRecentRequest.ts
73
+ src/models/IncidentsApproveBulkRequest.ts
73
74
  src/models/IncidentsApproveRequest.ts
74
75
  src/models/IncidentsEligibleOwnersRequest.ts
75
76
  src/models/IncidentsExportCsvBulkRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.902
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.904
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.902 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.904 --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 { ApiLogResource, ApiLogsListRequest, AssetFileForUploadResource, AssetsFileStoreRequest, AuthChangePasswordRequest, AuthForgotPasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, AuthResetPasswordRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentVideosRecentRequest, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsUpdateTitleRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedApiLogListResourceResponse, PaginatedIncidentListResourceResponse, PaginatedIncidentVideoListResourceResponse, PaginatedLicenceCheckLogListResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyListResourceResponse, PaginatedUserListResourceResponse, PaginatedVenueListResourceResponse, PdfExportResource, RegisterResource, RegistersBadgeNumberUpdateRequest, RegistersCreateRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, RosterResource, RostersExportPdfRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SettingsLicenceVerificationFallbackUpdateRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersListAllRequest, UsersListRequest, UsersRegisterVenueManagerRequest, UsersUpdateRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGetVenuesForUserRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesSignedOnGuardsRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
13
+ import type { ApiLogResource, ApiLogsListRequest, AssetFileForUploadResource, AssetsFileStoreRequest, AuthChangePasswordRequest, AuthForgotPasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, AuthResetPasswordRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentLiteResourceArrayResponse, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentVideosRecentRequest, IncidentsApproveBulkRequest, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsUpdateTitleRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedApiLogListResourceResponse, PaginatedIncidentListResourceResponse, PaginatedIncidentVideoListResourceResponse, PaginatedLicenceCheckLogListResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyListResourceResponse, PaginatedUserListResourceResponse, PaginatedVenueListResourceResponse, PdfExportResource, RegisterResource, RegistersBadgeNumberUpdateRequest, RegistersCreateRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, RosterResource, RostersExportPdfRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SettingsLicenceVerificationFallbackUpdateRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersListAllRequest, UsersListRequest, UsersRegisterVenueManagerRequest, UsersUpdateRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGetVenuesForUserRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesSignedOnGuardsRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
14
14
  export interface ApiLogsListOperationRequest {
15
15
  apiLogsListRequest?: ApiLogsListRequest;
16
16
  }
@@ -60,6 +60,9 @@ export interface IncidentsApproveOperationRequest {
60
60
  incident: number;
61
61
  incidentsApproveRequest?: IncidentsApproveRequest;
62
62
  }
63
+ export interface IncidentsApproveBulkOperationRequest {
64
+ incidentsApproveBulkRequest?: IncidentsApproveBulkRequest;
65
+ }
63
66
  export interface IncidentsDestroyRequest {
64
67
  incident: number;
65
68
  }
@@ -521,6 +524,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
521
524
  * Auto-generated: incidents.approve
522
525
  */
523
526
  incidentsApprove(requestParameters: IncidentsApproveOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
527
+ /**
528
+ * Auto-generated: incidents.approve.bulk
529
+ */
530
+ incidentsApproveBulkRaw(requestParameters: IncidentsApproveBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentLiteResourceArrayResponse>>;
531
+ /**
532
+ * Auto-generated: incidents.approve.bulk
533
+ */
534
+ incidentsApproveBulk(requestParameters?: IncidentsApproveBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentLiteResourceArrayResponse>;
524
535
  /**
525
536
  * Auto-generated: incidents.destroy
526
537
  */
@@ -1064,6 +1064,61 @@ var GeneralApi = /** @class */ (function (_super) {
1064
1064
  });
1065
1065
  });
1066
1066
  };
1067
+ /**
1068
+ * Auto-generated: incidents.approve.bulk
1069
+ */
1070
+ GeneralApi.prototype.incidentsApproveBulkRaw = function (requestParameters, initOverrides) {
1071
+ return __awaiter(this, void 0, void 0, function () {
1072
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
1073
+ return __generator(this, function (_a) {
1074
+ switch (_a.label) {
1075
+ case 0:
1076
+ queryParameters = {};
1077
+ headerParameters = {};
1078
+ headerParameters['Content-Type'] = 'application/json';
1079
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1080
+ token = this.configuration.accessToken;
1081
+ return [4 /*yield*/, token("bearerAuth", [])];
1082
+ case 1:
1083
+ tokenString = _a.sent();
1084
+ if (tokenString) {
1085
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1086
+ }
1087
+ _a.label = 2;
1088
+ case 2:
1089
+ urlPath = "/api/incidents/approve/bulk";
1090
+ return [4 /*yield*/, this.request({
1091
+ path: urlPath,
1092
+ method: 'POST',
1093
+ headers: headerParameters,
1094
+ query: queryParameters,
1095
+ body: (0, index_1.IncidentsApproveBulkRequestToJSON)(requestParameters['incidentsApproveBulkRequest']),
1096
+ }, initOverrides)];
1097
+ case 3:
1098
+ response = _a.sent();
1099
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IncidentLiteResourceArrayResponseFromJSON)(jsonValue); })];
1100
+ }
1101
+ });
1102
+ });
1103
+ };
1104
+ /**
1105
+ * Auto-generated: incidents.approve.bulk
1106
+ */
1107
+ GeneralApi.prototype.incidentsApproveBulk = function () {
1108
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
1109
+ var response;
1110
+ if (requestParameters === void 0) { requestParameters = {}; }
1111
+ return __generator(this, function (_a) {
1112
+ switch (_a.label) {
1113
+ case 0: return [4 /*yield*/, this.incidentsApproveBulkRaw(requestParameters, initOverrides)];
1114
+ case 1:
1115
+ response = _a.sent();
1116
+ return [4 /*yield*/, response.value()];
1117
+ case 2: return [2 /*return*/, _a.sent()];
1118
+ }
1119
+ });
1120
+ });
1121
+ };
1067
1122
  /**
1068
1123
  * Auto-generated: incidents.destroy
1069
1124
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 IncidentsApproveBulkRequest
16
+ */
17
+ export interface IncidentsApproveBulkRequest {
18
+ /**
19
+ *
20
+ * @type {Array<number>}
21
+ * @memberof IncidentsApproveBulkRequest
22
+ */
23
+ incidentIds: Array<number>;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IncidentsApproveBulkRequest
28
+ */
29
+ approvedBy: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IncidentsApproveBulkRequest interface.
33
+ */
34
+ export declare function instanceOfIncidentsApproveBulkRequest(value: object): value is IncidentsApproveBulkRequest;
35
+ export declare function IncidentsApproveBulkRequestFromJSON(json: any): IncidentsApproveBulkRequest;
36
+ export declare function IncidentsApproveBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveBulkRequest;
37
+ export declare function IncidentsApproveBulkRequestToJSON(json: any): IncidentsApproveBulkRequest;
38
+ export declare function IncidentsApproveBulkRequestToJSONTyped(value?: IncidentsApproveBulkRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfIncidentsApproveBulkRequest = instanceOfIncidentsApproveBulkRequest;
17
+ exports.IncidentsApproveBulkRequestFromJSON = IncidentsApproveBulkRequestFromJSON;
18
+ exports.IncidentsApproveBulkRequestFromJSONTyped = IncidentsApproveBulkRequestFromJSONTyped;
19
+ exports.IncidentsApproveBulkRequestToJSON = IncidentsApproveBulkRequestToJSON;
20
+ exports.IncidentsApproveBulkRequestToJSONTyped = IncidentsApproveBulkRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentsApproveBulkRequest interface.
23
+ */
24
+ function instanceOfIncidentsApproveBulkRequest(value) {
25
+ if (!('incidentIds' in value) || value['incidentIds'] === undefined)
26
+ return false;
27
+ if (!('approvedBy' in value) || value['approvedBy'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function IncidentsApproveBulkRequestFromJSON(json) {
32
+ return IncidentsApproveBulkRequestFromJSONTyped(json, false);
33
+ }
34
+ function IncidentsApproveBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'incidentIds': json['incident_ids'],
40
+ 'approvedBy': json['approved_by'],
41
+ };
42
+ }
43
+ function IncidentsApproveBulkRequestToJSON(json) {
44
+ return IncidentsApproveBulkRequestToJSONTyped(json, false);
45
+ }
46
+ function IncidentsApproveBulkRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'incident_ids': value['incidentIds'],
53
+ 'approved_by': value['approvedBy'],
54
+ };
55
+ }
@@ -62,6 +62,7 @@ export * from './IncidentVideoStatus';
62
62
  export * from './IncidentVideoUploadTokenResource';
63
63
  export * from './IncidentVideoUploadTokenResourceArrayResponse';
64
64
  export * from './IncidentVideosRecentRequest';
65
+ export * from './IncidentsApproveBulkRequest';
65
66
  export * from './IncidentsApproveRequest';
66
67
  export * from './IncidentsEligibleOwnersRequest';
67
68
  export * from './IncidentsExportCsvBulkRequest';
@@ -80,6 +80,7 @@ __exportStar(require("./IncidentVideoStatus"), exports);
80
80
  __exportStar(require("./IncidentVideoUploadTokenResource"), exports);
81
81
  __exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
82
82
  __exportStar(require("./IncidentVideosRecentRequest"), exports);
83
+ __exportStar(require("./IncidentsApproveBulkRequest"), exports);
83
84
  __exportStar(require("./IncidentsApproveRequest"), exports);
84
85
  __exportStar(require("./IncidentsEligibleOwnersRequest"), exports);
85
86
  __exportStar(require("./IncidentsExportCsvBulkRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.902",
3
+ "version": "0.0.904",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -31,6 +31,7 @@ import type {
31
31
  GenericResponse,
32
32
  IncidentFieldSchemaResource,
33
33
  IncidentFieldSchemasShowRequest,
34
+ IncidentLiteResourceArrayResponse,
34
35
  IncidentResource,
35
36
  IncidentVersionResource,
36
37
  IncidentVersionResourceArrayResponse,
@@ -39,6 +40,7 @@ import type {
39
40
  IncidentVideoSignedUrlResource,
40
41
  IncidentVideoUploadTokenResource,
41
42
  IncidentVideosRecentRequest,
43
+ IncidentsApproveBulkRequest,
42
44
  IncidentsApproveRequest,
43
45
  IncidentsEligibleOwnersRequest,
44
46
  IncidentsExportCsvBulkRequest,
@@ -160,6 +162,8 @@ import {
160
162
  IncidentFieldSchemaResourceToJSON,
161
163
  IncidentFieldSchemasShowRequestFromJSON,
162
164
  IncidentFieldSchemasShowRequestToJSON,
165
+ IncidentLiteResourceArrayResponseFromJSON,
166
+ IncidentLiteResourceArrayResponseToJSON,
163
167
  IncidentResourceFromJSON,
164
168
  IncidentResourceToJSON,
165
169
  IncidentVersionResourceFromJSON,
@@ -176,6 +180,8 @@ import {
176
180
  IncidentVideoUploadTokenResourceToJSON,
177
181
  IncidentVideosRecentRequestFromJSON,
178
182
  IncidentVideosRecentRequestToJSON,
183
+ IncidentsApproveBulkRequestFromJSON,
184
+ IncidentsApproveBulkRequestToJSON,
179
185
  IncidentsApproveRequestFromJSON,
180
186
  IncidentsApproveRequestToJSON,
181
187
  IncidentsEligibleOwnersRequestFromJSON,
@@ -417,6 +423,10 @@ export interface IncidentsApproveOperationRequest {
417
423
  incidentsApproveRequest?: IncidentsApproveRequest;
418
424
  }
419
425
 
426
+ export interface IncidentsApproveBulkOperationRequest {
427
+ incidentsApproveBulkRequest?: IncidentsApproveBulkRequest;
428
+ }
429
+
420
430
  export interface IncidentsDestroyRequest {
421
431
  incident: number;
422
432
  }
@@ -1561,6 +1571,46 @@ export class GeneralApi extends runtime.BaseAPI {
1561
1571
  return await response.value();
1562
1572
  }
1563
1573
 
1574
+ /**
1575
+ * Auto-generated: incidents.approve.bulk
1576
+ */
1577
+ async incidentsApproveBulkRaw(requestParameters: IncidentsApproveBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentLiteResourceArrayResponse>> {
1578
+ const queryParameters: any = {};
1579
+
1580
+ const headerParameters: runtime.HTTPHeaders = {};
1581
+
1582
+ headerParameters['Content-Type'] = 'application/json';
1583
+
1584
+ if (this.configuration && this.configuration.accessToken) {
1585
+ const token = this.configuration.accessToken;
1586
+ const tokenString = await token("bearerAuth", []);
1587
+
1588
+ if (tokenString) {
1589
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1590
+ }
1591
+ }
1592
+
1593
+ let urlPath = `/api/incidents/approve/bulk`;
1594
+
1595
+ const response = await this.request({
1596
+ path: urlPath,
1597
+ method: 'POST',
1598
+ headers: headerParameters,
1599
+ query: queryParameters,
1600
+ body: IncidentsApproveBulkRequestToJSON(requestParameters['incidentsApproveBulkRequest']),
1601
+ }, initOverrides);
1602
+
1603
+ return new runtime.JSONApiResponse(response, (jsonValue) => IncidentLiteResourceArrayResponseFromJSON(jsonValue));
1604
+ }
1605
+
1606
+ /**
1607
+ * Auto-generated: incidents.approve.bulk
1608
+ */
1609
+ async incidentsApproveBulk(requestParameters: IncidentsApproveBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentLiteResourceArrayResponse> {
1610
+ const response = await this.incidentsApproveBulkRaw(requestParameters, initOverrides);
1611
+ return await response.value();
1612
+ }
1613
+
1564
1614
  /**
1565
1615
  * Auto-generated: incidents.destroy
1566
1616
  */
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 IncidentsApproveBulkRequest
20
+ */
21
+ export interface IncidentsApproveBulkRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof IncidentsApproveBulkRequest
26
+ */
27
+ incidentIds: Array<number>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IncidentsApproveBulkRequest
32
+ */
33
+ approvedBy: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the IncidentsApproveBulkRequest interface.
38
+ */
39
+ export function instanceOfIncidentsApproveBulkRequest(value: object): value is IncidentsApproveBulkRequest {
40
+ if (!('incidentIds' in value) || value['incidentIds'] === undefined) return false;
41
+ if (!('approvedBy' in value) || value['approvedBy'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function IncidentsApproveBulkRequestFromJSON(json: any): IncidentsApproveBulkRequest {
46
+ return IncidentsApproveBulkRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function IncidentsApproveBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveBulkRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'incidentIds': json['incident_ids'],
56
+ 'approvedBy': json['approved_by'],
57
+ };
58
+ }
59
+
60
+ export function IncidentsApproveBulkRequestToJSON(json: any): IncidentsApproveBulkRequest {
61
+ return IncidentsApproveBulkRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function IncidentsApproveBulkRequestToJSONTyped(value?: IncidentsApproveBulkRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'incident_ids': value['incidentIds'],
72
+ 'approved_by': value['approvedBy'],
73
+ };
74
+ }
75
+
@@ -64,6 +64,7 @@ export * from './IncidentVideoStatus';
64
64
  export * from './IncidentVideoUploadTokenResource';
65
65
  export * from './IncidentVideoUploadTokenResourceArrayResponse';
66
66
  export * from './IncidentVideosRecentRequest';
67
+ export * from './IncidentsApproveBulkRequest';
67
68
  export * from './IncidentsApproveRequest';
68
69
  export * from './IncidentsEligibleOwnersRequest';
69
70
  export * from './IncidentsExportCsvBulkRequest';