@digital8/security-registers-backend-ts-sdk 0.0.538 → 0.0.540

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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +12 -1
  4. package/dist/apis/GeneralApi.js +55 -0
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +3 -1
  7. package/dist/models/IncidentVideosRecentRequest.d.ts +82 -0
  8. package/dist/models/IncidentVideosRecentRequest.js +71 -0
  9. package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +40 -0
  10. package/dist/models/PaginatedRecentVideoListResourceResponse.js +57 -0
  11. package/dist/models/RecentVideoListResource.d.ts +63 -0
  12. package/dist/models/RecentVideoListResource.js +67 -0
  13. package/dist/models/RecentVideoListResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/RecentVideoListResourceArrayResponse.js +50 -0
  15. package/dist/models/RegisterListResource.d.ts +3 -3
  16. package/dist/models/RegisterListResource.js +9 -3
  17. package/dist/models/RegisterResource.d.ts +2 -2
  18. package/dist/models/RegisterResource.js +3 -3
  19. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  20. package/dist/models/SecurityCompanyResource.js +1 -3
  21. package/dist/models/index.d.ts +4 -0
  22. package/dist/models/index.js +4 -0
  23. package/package.json +1 -1
  24. package/src/apis/GeneralApi.ts +50 -0
  25. package/src/models/AssetResource.ts +3 -2
  26. package/src/models/IncidentVideosRecentRequest.ts +132 -0
  27. package/src/models/PaginatedRecentVideoListResourceResponse.ts +90 -0
  28. package/src/models/RecentVideoListResource.ts +116 -0
  29. package/src/models/RecentVideoListResourceArrayResponse.ts +73 -0
  30. package/src/models/RegisterListResource.ts +9 -6
  31. package/src/models/RegisterResource.ts +5 -5
  32. package/src/models/SecurityCompanyResource.ts +2 -3
  33. package/src/models/index.ts +4 -0
@@ -55,6 +55,7 @@ src/models/IncidentVideoSignedUrlResource.ts
55
55
  src/models/IncidentVideoSignedUrlResourceArrayResponse.ts
56
56
  src/models/IncidentVideoUploadTokenResource.ts
57
57
  src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
58
+ src/models/IncidentVideosRecentRequest.ts
58
59
  src/models/IncidentsApproveRequest.ts
59
60
  src/models/IncidentsEligibleOwnersRequest.ts
60
61
  src/models/IncidentsExportCsvBulkRequest.ts
@@ -102,6 +103,7 @@ src/models/PaginatedIncidentListResourceResponse.ts
102
103
  src/models/PaginatedLicenceCheckLogResourceResponse.ts
103
104
  src/models/PaginatedLicenceListResourceResponse.ts
104
105
  src/models/PaginatedLicenceResourceResponse.ts
106
+ src/models/PaginatedRecentVideoListResourceResponse.ts
105
107
  src/models/PaginatedRegisterGroupedByRosterResourceResponse.ts
106
108
  src/models/PaginatedRegisterListResourceResponse.ts
107
109
  src/models/PaginatedRegisterResourceResponse.ts
@@ -114,6 +116,8 @@ src/models/PaginatedVenueResourceResponse.ts
114
116
  src/models/PagingMetadata.ts
115
117
  src/models/PdfExportResource.ts
116
118
  src/models/PdfExportResourceArrayResponse.ts
119
+ src/models/RecentVideoListResource.ts
120
+ src/models/RecentVideoListResourceArrayResponse.ts
117
121
  src/models/RegisterGroupedByRosterResource.ts
118
122
  src/models/RegisterGroupedByRosterResourceArrayResponse.ts
119
123
  src/models/RegisterListResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.538
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.540
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.538 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.540 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, 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, 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';
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
  }
@@ -41,6 +41,9 @@ export interface DevicesRegisterOperationRequest {
41
41
  export interface IncidentFieldSchemasShowOperationRequest {
42
42
  incidentFieldSchemasShowRequest?: IncidentFieldSchemasShowRequest;
43
43
  }
44
+ export interface IncidentVideosRecentOperationRequest {
45
+ incidentVideosRecentRequest?: IncidentVideosRecentRequest;
46
+ }
44
47
  export interface IncidentsApproveOperationRequest {
45
48
  incident: number;
46
49
  incidentsApproveRequest?: IncidentsApproveRequest;
@@ -442,6 +445,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
442
445
  * Auto-generated: incidentFieldSchemas.show
443
446
  */
444
447
  incidentFieldSchemasShow(requestParameters?: IncidentFieldSchemasShowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentFieldSchemaResource>;
448
+ /**
449
+ * Auto-generated: incidentVideos.recent
450
+ */
451
+ incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>>;
452
+ /**
453
+ * Auto-generated: incidentVideos.recent
454
+ */
455
+ incidentVideosRecent(requestParameters?: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse>;
445
456
  /**
446
457
  * Auto-generated: incidents.approve
447
458
  */
@@ -679,6 +679,61 @@ var GeneralApi = /** @class */ (function (_super) {
679
679
  });
680
680
  });
681
681
  };
682
+ /**
683
+ * Auto-generated: incidentVideos.recent
684
+ */
685
+ GeneralApi.prototype.incidentVideosRecentRaw = function (requestParameters, initOverrides) {
686
+ return __awaiter(this, void 0, void 0, function () {
687
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
688
+ return __generator(this, function (_a) {
689
+ switch (_a.label) {
690
+ case 0:
691
+ queryParameters = {};
692
+ headerParameters = {};
693
+ headerParameters['Content-Type'] = 'application/json';
694
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
695
+ token = this.configuration.accessToken;
696
+ return [4 /*yield*/, token("bearerAuth", [])];
697
+ case 1:
698
+ tokenString = _a.sent();
699
+ if (tokenString) {
700
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
701
+ }
702
+ _a.label = 2;
703
+ case 2:
704
+ urlPath = "/api/incident-videos/recent";
705
+ return [4 /*yield*/, this.request({
706
+ path: urlPath,
707
+ method: 'POST',
708
+ headers: headerParameters,
709
+ query: queryParameters,
710
+ body: (0, index_1.IncidentVideosRecentRequestToJSON)(requestParameters['incidentVideosRecentRequest']),
711
+ }, initOverrides)];
712
+ case 3:
713
+ response = _a.sent();
714
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedRecentVideoListResourceResponseFromJSON)(jsonValue); })];
715
+ }
716
+ });
717
+ });
718
+ };
719
+ /**
720
+ * Auto-generated: incidentVideos.recent
721
+ */
722
+ GeneralApi.prototype.incidentVideosRecent = function () {
723
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
724
+ var response;
725
+ if (requestParameters === void 0) { requestParameters = {}; }
726
+ return __generator(this, function (_a) {
727
+ switch (_a.label) {
728
+ case 0: return [4 /*yield*/, this.incidentVideosRecentRaw(requestParameters, initOverrides)];
729
+ case 1:
730
+ response = _a.sent();
731
+ return [4 /*yield*/, response.value()];
732
+ case 2: return [2 /*return*/, _a.sent()];
733
+ }
734
+ });
735
+ });
736
+ };
682
737
  /**
683
738
  * Auto-generated: incidents.approve
684
739
  */
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -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'] == null ? undefined : json['altText'],
55
+ 'altText': json['altText'],
54
56
  'index': json['index'],
55
57
  'fileId': json['fileId'],
56
58
  'isExternal': json['isExternal'],
@@ -0,0 +1,82 @@
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 IncidentVideosRecentRequest
16
+ */
17
+ export interface IncidentVideosRecentRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IncidentVideosRecentRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IncidentVideosRecentRequest
28
+ */
29
+ sortBy?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IncidentVideosRecentRequest
34
+ */
35
+ sortDirection?: IncidentVideosRecentRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IncidentVideosRecentRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof IncidentVideosRecentRequest
46
+ */
47
+ page?: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof IncidentVideosRecentRequest
52
+ */
53
+ relatedId?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof IncidentVideosRecentRequest
58
+ */
59
+ relatedType?: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof IncidentVideosRecentRequest
64
+ */
65
+ includesRelations?: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const IncidentVideosRecentRequestSortDirectionEnum: {
71
+ readonly Asc: "asc";
72
+ readonly Desc: "desc";
73
+ };
74
+ export type IncidentVideosRecentRequestSortDirectionEnum = typeof IncidentVideosRecentRequestSortDirectionEnum[keyof typeof IncidentVideosRecentRequestSortDirectionEnum];
75
+ /**
76
+ * Check if a given object implements the IncidentVideosRecentRequest interface.
77
+ */
78
+ export declare function instanceOfIncidentVideosRecentRequest(value: object): value is IncidentVideosRecentRequest;
79
+ export declare function IncidentVideosRecentRequestFromJSON(json: any): IncidentVideosRecentRequest;
80
+ export declare function IncidentVideosRecentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideosRecentRequest;
81
+ export declare function IncidentVideosRecentRequestToJSON(json: any): IncidentVideosRecentRequest;
82
+ export declare function IncidentVideosRecentRequestToJSONTyped(value?: IncidentVideosRecentRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.IncidentVideosRecentRequestSortDirectionEnum = void 0;
17
+ exports.instanceOfIncidentVideosRecentRequest = instanceOfIncidentVideosRecentRequest;
18
+ exports.IncidentVideosRecentRequestFromJSON = IncidentVideosRecentRequestFromJSON;
19
+ exports.IncidentVideosRecentRequestFromJSONTyped = IncidentVideosRecentRequestFromJSONTyped;
20
+ exports.IncidentVideosRecentRequestToJSON = IncidentVideosRecentRequestToJSON;
21
+ exports.IncidentVideosRecentRequestToJSONTyped = IncidentVideosRecentRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IncidentVideosRecentRequestSortDirectionEnum = {
26
+ Asc: 'asc',
27
+ Desc: 'desc'
28
+ };
29
+ /**
30
+ * Check if a given object implements the IncidentVideosRecentRequest interface.
31
+ */
32
+ function instanceOfIncidentVideosRecentRequest(value) {
33
+ return true;
34
+ }
35
+ function IncidentVideosRecentRequestFromJSON(json) {
36
+ return IncidentVideosRecentRequestFromJSONTyped(json, false);
37
+ }
38
+ function IncidentVideosRecentRequestFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'search': json['search'] == null ? undefined : json['search'],
44
+ 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
45
+ 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
46
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
47
+ 'page': json['page'] == null ? undefined : json['page'],
48
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
49
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
50
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
51
+ };
52
+ }
53
+ function IncidentVideosRecentRequestToJSON(json) {
54
+ return IncidentVideosRecentRequestToJSONTyped(json, false);
55
+ }
56
+ function IncidentVideosRecentRequestToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'search': value['search'],
63
+ 'sort_by': value['sortBy'],
64
+ 'sort_direction': value['sortDirection'],
65
+ 'per_page': value['perPage'],
66
+ 'page': value['page'],
67
+ 'related_id': value['relatedId'],
68
+ 'related_type': value['relatedType'],
69
+ 'includes_relations': value['includesRelations'],
70
+ };
71
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { RecentVideoListResource } from './RecentVideoListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedRecentVideoListResourceResponse
18
+ */
19
+ export interface PaginatedRecentVideoListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<RecentVideoListResource>}
23
+ * @memberof PaginatedRecentVideoListResourceResponse
24
+ */
25
+ data: Array<RecentVideoListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedRecentVideoListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedRecentVideoListResourceResponse(value: object): value is PaginatedRecentVideoListResourceResponse;
37
+ export declare function PaginatedRecentVideoListResourceResponseFromJSON(json: any): PaginatedRecentVideoListResourceResponse;
38
+ export declare function PaginatedRecentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecentVideoListResourceResponse;
39
+ export declare function PaginatedRecentVideoListResourceResponseToJSON(json: any): PaginatedRecentVideoListResourceResponse;
40
+ export declare function PaginatedRecentVideoListResourceResponseToJSONTyped(value?: PaginatedRecentVideoListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfPaginatedRecentVideoListResourceResponse = instanceOfPaginatedRecentVideoListResourceResponse;
17
+ exports.PaginatedRecentVideoListResourceResponseFromJSON = PaginatedRecentVideoListResourceResponseFromJSON;
18
+ exports.PaginatedRecentVideoListResourceResponseFromJSONTyped = PaginatedRecentVideoListResourceResponseFromJSONTyped;
19
+ exports.PaginatedRecentVideoListResourceResponseToJSON = PaginatedRecentVideoListResourceResponseToJSON;
20
+ exports.PaginatedRecentVideoListResourceResponseToJSONTyped = PaginatedRecentVideoListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var RecentVideoListResource_1 = require("./RecentVideoListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedRecentVideoListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedRecentVideoListResourceResponseFromJSON(json) {
34
+ return PaginatedRecentVideoListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedRecentVideoListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(RecentVideoListResource_1.RecentVideoListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedRecentVideoListResourceResponseToJSON(json) {
46
+ return PaginatedRecentVideoListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedRecentVideoListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(RecentVideoListResource_1.RecentVideoListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VenueLiteResource } from './VenueLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RecentVideoListResource
17
+ */
18
+ export interface RecentVideoListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof RecentVideoListResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof RecentVideoListResource
29
+ */
30
+ incidentId?: number | null;
31
+ /**
32
+ *
33
+ * @type {VenueLiteResource}
34
+ * @memberof RecentVideoListResource
35
+ */
36
+ venue: VenueLiteResource | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof RecentVideoListResource
41
+ */
42
+ originalFilename: string;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof RecentVideoListResource
47
+ */
48
+ sizeBytes: number;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof RecentVideoListResource
53
+ */
54
+ createdAt?: Date | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the RecentVideoListResource interface.
58
+ */
59
+ export declare function instanceOfRecentVideoListResource(value: object): value is RecentVideoListResource;
60
+ export declare function RecentVideoListResourceFromJSON(json: any): RecentVideoListResource;
61
+ export declare function RecentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResource;
62
+ export declare function RecentVideoListResourceToJSON(json: any): RecentVideoListResource;
63
+ export declare function RecentVideoListResourceToJSONTyped(value?: RecentVideoListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfRecentVideoListResource = instanceOfRecentVideoListResource;
17
+ exports.RecentVideoListResourceFromJSON = RecentVideoListResourceFromJSON;
18
+ exports.RecentVideoListResourceFromJSONTyped = RecentVideoListResourceFromJSONTyped;
19
+ exports.RecentVideoListResourceToJSON = RecentVideoListResourceToJSON;
20
+ exports.RecentVideoListResourceToJSONTyped = RecentVideoListResourceToJSONTyped;
21
+ var VenueLiteResource_1 = require("./VenueLiteResource");
22
+ /**
23
+ * Check if a given object implements the RecentVideoListResource interface.
24
+ */
25
+ function instanceOfRecentVideoListResource(value) {
26
+ if (!('venue' in value) || value['venue'] === undefined)
27
+ return false;
28
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined)
29
+ return false;
30
+ if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function RecentVideoListResourceFromJSON(json) {
35
+ return RecentVideoListResourceFromJSONTyped(json, false);
36
+ }
37
+ function RecentVideoListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'] == null ? undefined : json['id'],
43
+ 'incidentId': json['incidentId'] == null ? undefined : json['incidentId'],
44
+ 'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
45
+ 'originalFilename': json['originalFilename'],
46
+ 'sizeBytes': json['sizeBytes'],
47
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
48
+ };
49
+ }
50
+ function RecentVideoListResourceToJSON(json) {
51
+ return RecentVideoListResourceToJSONTyped(json, false);
52
+ }
53
+ function RecentVideoListResourceToJSONTyped(value, ignoreDiscriminator) {
54
+ var _a;
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'incidentId': value['incidentId'],
62
+ 'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
63
+ 'originalFilename': value['originalFilename'],
64
+ 'sizeBytes': value['sizeBytes'],
65
+ 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
66
+ };
67
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RecentVideoListResource } from './RecentVideoListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RecentVideoListResourceArrayResponse
17
+ */
18
+ export interface RecentVideoListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<RecentVideoListResource>}
22
+ * @memberof RecentVideoListResourceArrayResponse
23
+ */
24
+ data?: Array<RecentVideoListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the RecentVideoListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfRecentVideoListResourceArrayResponse(value: object): value is RecentVideoListResourceArrayResponse;
30
+ export declare function RecentVideoListResourceArrayResponseFromJSON(json: any): RecentVideoListResourceArrayResponse;
31
+ export declare function RecentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResourceArrayResponse;
32
+ export declare function RecentVideoListResourceArrayResponseToJSON(json: any): RecentVideoListResourceArrayResponse;
33
+ export declare function RecentVideoListResourceArrayResponseToJSONTyped(value?: RecentVideoListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRecentVideoListResourceArrayResponse = instanceOfRecentVideoListResourceArrayResponse;
17
+ exports.RecentVideoListResourceArrayResponseFromJSON = RecentVideoListResourceArrayResponseFromJSON;
18
+ exports.RecentVideoListResourceArrayResponseFromJSONTyped = RecentVideoListResourceArrayResponseFromJSONTyped;
19
+ exports.RecentVideoListResourceArrayResponseToJSON = RecentVideoListResourceArrayResponseToJSON;
20
+ exports.RecentVideoListResourceArrayResponseToJSONTyped = RecentVideoListResourceArrayResponseToJSONTyped;
21
+ var RecentVideoListResource_1 = require("./RecentVideoListResource");
22
+ /**
23
+ * Check if a given object implements the RecentVideoListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfRecentVideoListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function RecentVideoListResourceArrayResponseFromJSON(json) {
29
+ return RecentVideoListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function RecentVideoListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(RecentVideoListResource_1.RecentVideoListResourceFromJSON)),
37
+ };
38
+ }
39
+ function RecentVideoListResourceArrayResponseToJSON(json) {
40
+ return RecentVideoListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function RecentVideoListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(RecentVideoListResource_1.RecentVideoListResourceToJSON)),
49
+ };
50
+ }
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber?: string | null;
67
+ badgeNumber: string;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -154,13 +154,13 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLat?: number | null;
157
+ signOffLat: number;
158
158
  /**
159
159
  *
160
160
  * @type {number}
161
161
  * @memberof RegisterListResource
162
162
  */
163
- signOffLong?: number | null;
163
+ signOffLong: number;
164
164
  /**
165
165
  *
166
166
  * @type {boolean}