@digital8/security-registers-backend-ts-sdk 0.0.741 → 0.0.743

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 (67) hide show
  1. package/.openapi-generator/FILES +15 -4
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +11 -22
  4. package/dist/apis/GeneralApi.js +5 -60
  5. package/dist/models/IncidentVideoListResource.d.ts +63 -0
  6. package/dist/models/{RecentVideoListResource.js → IncidentVideoListResource.js} +13 -13
  7. package/dist/models/IncidentVideoListResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/IncidentVideoListResourceArrayResponse.js +50 -0
  9. package/dist/models/LicenceCheckLogListResource.d.ts +75 -0
  10. package/dist/models/LicenceCheckLogListResource.js +75 -0
  11. package/dist/models/LicenceCheckLogListResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/LicenceCheckLogListResourceArrayResponse.js +50 -0
  13. package/dist/models/PaginatedIncidentVideoListResourceResponse.d.ts +40 -0
  14. package/dist/models/PaginatedIncidentVideoListResourceResponse.js +57 -0
  15. package/dist/models/PaginatedLicenceCheckLogListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedLicenceCheckLogListResourceResponse.js +57 -0
  17. package/dist/models/PaginatedSecurityCompanyListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedSecurityCompanyListResourceResponse.js +57 -0
  19. package/dist/models/PaginatedUserListResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedUserListResourceResponse.js +57 -0
  21. package/dist/models/PaginatedVenueListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedVenueListResourceResponse.js +57 -0
  23. package/dist/models/SecurityCompanyListResource.d.ts +63 -0
  24. package/dist/models/SecurityCompanyListResource.js +68 -0
  25. package/dist/models/SecurityCompanyListResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/SecurityCompanyListResourceArrayResponse.js +50 -0
  27. package/dist/models/UserListResource.d.ts +68 -0
  28. package/dist/models/UserListResource.js +75 -0
  29. package/dist/models/UserListResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/UserListResourceArrayResponse.js +50 -0
  31. package/dist/models/VenueListResource.d.ts +70 -0
  32. package/dist/models/VenueListResource.js +74 -0
  33. package/dist/models/VenueListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/VenueListResourceArrayResponse.js +50 -0
  35. package/dist/models/VenuesUpdateRequest.d.ts +2 -2
  36. package/dist/models/VenuesUpdateRequest.js +2 -6
  37. package/dist/models/index.d.ts +15 -4
  38. package/dist/models/index.js +15 -4
  39. package/package.json +1 -1
  40. package/src/apis/GeneralApi.ts +30 -77
  41. package/src/models/{RecentVideoListResource.ts → IncidentVideoListResource.ts} +16 -16
  42. package/src/models/IncidentVideoListResourceArrayResponse.ts +73 -0
  43. package/src/models/LicenceCheckLogListResource.ts +136 -0
  44. package/src/models/LicenceCheckLogListResourceArrayResponse.ts +73 -0
  45. package/src/models/PaginatedIncidentVideoListResourceResponse.ts +90 -0
  46. package/src/models/PaginatedLicenceCheckLogListResourceResponse.ts +90 -0
  47. package/src/models/PaginatedSecurityCompanyListResourceResponse.ts +90 -0
  48. package/src/models/PaginatedUserListResourceResponse.ts +90 -0
  49. package/src/models/PaginatedVenueListResourceResponse.ts +90 -0
  50. package/src/models/SecurityCompanyListResource.ts +117 -0
  51. package/src/models/SecurityCompanyListResourceArrayResponse.ts +73 -0
  52. package/src/models/UserListResource.ts +120 -0
  53. package/src/models/UserListResourceArrayResponse.ts +73 -0
  54. package/src/models/VenueListResource.ts +133 -0
  55. package/src/models/VenueListResourceArrayResponse.ts +73 -0
  56. package/src/models/VenuesUpdateRequest.ts +4 -6
  57. package/src/models/index.ts +15 -4
  58. package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +0 -40
  59. package/dist/models/PaginatedRecentVideoListResourceResponse.js +0 -57
  60. package/dist/models/RecentVideoListResource.d.ts +0 -63
  61. package/dist/models/RecentVideoListResourceArrayResponse.d.ts +0 -33
  62. package/dist/models/RecentVideoListResourceArrayResponse.js +0 -50
  63. package/dist/models/StoreUserRequest.d.ts +0 -50
  64. package/dist/models/StoreUserRequest.js +0 -61
  65. package/src/models/PaginatedRecentVideoListResourceResponse.ts +0 -90
  66. package/src/models/RecentVideoListResourceArrayResponse.ts +0 -73
  67. package/src/models/StoreUserRequest.ts +0 -92
@@ -48,6 +48,8 @@ export * from './IncidentResourceArrayResponse';
48
48
  export * from './IncidentSchemaType';
49
49
  export * from './IncidentVersionResource';
50
50
  export * from './IncidentVersionResourceArrayResponse';
51
+ export * from './IncidentVideoListResource';
52
+ export * from './IncidentVideoListResourceArrayResponse';
51
53
  export * from './IncidentVideoResource';
52
54
  export * from './IncidentVideoResourceArrayResponse';
53
55
  export * from './IncidentVideoSignedUrlResource';
@@ -67,6 +69,8 @@ export * from './IncidentsUpdateRequest';
67
69
  export * from './IncidentsUpdateTitleRequest';
68
70
  export * from './IncidentsVideosStoreRequest';
69
71
  export * from './IncidentsVideosUploadTokenRequest';
72
+ export * from './LicenceCheckLogListResource';
73
+ export * from './LicenceCheckLogListResourceArrayResponse';
70
74
  export * from './LicenceCheckLogResource';
71
75
  export * from './LicenceCheckLogResourceArrayResponse';
72
76
  export * from './LicenceCheckSource';
@@ -105,18 +109,22 @@ export * from './NotificationType';
105
109
  export * from './NotificationTypeResource';
106
110
  export * from './NotificationTypeResourceArrayResponse';
107
111
  export * from './PaginatedIncidentListResourceResponse';
112
+ export * from './PaginatedIncidentVideoListResourceResponse';
113
+ export * from './PaginatedLicenceCheckLogListResourceResponse';
108
114
  export * from './PaginatedLicenceCheckLogResourceResponse';
109
115
  export * from './PaginatedLicenceListResourceResponse';
110
116
  export * from './PaginatedLicenceResourceResponse';
111
- export * from './PaginatedRecentVideoListResourceResponse';
112
117
  export * from './PaginatedRegisterGroupedByRosterResourceResponse';
113
118
  export * from './PaginatedRegisterListResourceResponse';
114
119
  export * from './PaginatedRegisterResourceResponse';
115
120
  export * from './PaginatedRosterListResourceResponse';
116
121
  export * from './PaginatedRosterResourceResponse';
117
122
  export * from './PaginatedRosterWithRegistersResourceResponse';
123
+ export * from './PaginatedSecurityCompanyListResourceResponse';
118
124
  export * from './PaginatedSecurityCompanyResourceResponse';
125
+ export * from './PaginatedUserListResourceResponse';
119
126
  export * from './PaginatedUserResourceResponse';
127
+ export * from './PaginatedVenueListResourceResponse';
120
128
  export * from './PaginatedVenueResourceResponse';
121
129
  export * from './PagingMetadata';
122
130
  export * from './PdfExportDownloadType';
@@ -124,8 +132,6 @@ export * from './PdfExportKind';
124
132
  export * from './PdfExportResource';
125
133
  export * from './PdfExportResourceArrayResponse';
126
134
  export * from './PdfExportStatus';
127
- export * from './RecentVideoListResource';
128
- export * from './RecentVideoListResourceArrayResponse';
129
135
  export * from './RecordSource';
130
136
  export * from './RegisterGroupedByRosterResource';
131
137
  export * from './RegisterGroupedByRosterResourceArrayResponse';
@@ -160,15 +166,18 @@ export * from './SecurityCompaniesListAllRequest';
160
166
  export * from './SecurityCompaniesListRequest';
161
167
  export * from './SecurityCompaniesStoreRequest';
162
168
  export * from './SecurityCompaniesUpdateRequest';
169
+ export * from './SecurityCompanyListResource';
170
+ export * from './SecurityCompanyListResourceArrayResponse';
163
171
  export * from './SecurityCompanyLiteResource';
164
172
  export * from './SecurityCompanyLiteResourceArrayResponse';
165
173
  export * from './SecurityCompanyResource';
166
174
  export * from './SecurityCompanyResourceArrayResponse';
167
175
  export * from './SettingsLicenceVerificationFallbackUpdateRequest';
168
176
  export * from './SignOffStatus';
169
- export * from './StoreUserRequest';
170
177
  export * from './UserAuthTokenResource';
171
178
  export * from './UserAuthTokenResourceArrayResponse';
179
+ export * from './UserListResource';
180
+ export * from './UserListResourceArrayResponse';
172
181
  export * from './UserLiteResource';
173
182
  export * from './UserLiteResourceArrayResponse';
174
183
  export * from './UserRelationResource';
@@ -188,6 +197,8 @@ export * from './UsersRegisterVenueManagerRequest';
188
197
  export * from './UsersUpdateRequest';
189
198
  export * from './VenueGuardScheduleResource';
190
199
  export * from './VenueGuardScheduleResourceArrayResponse';
200
+ export * from './VenueListResource';
201
+ export * from './VenueListResourceArrayResponse';
191
202
  export * from './VenueLiteResource';
192
203
  export * from './VenueLiteResourceArrayResponse';
193
204
  export * from './VenueResource';
@@ -1,40 +0,0 @@
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
- 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;
@@ -1,57 +0,0 @@
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.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
- }
@@ -1,63 +0,0 @@
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
- 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;
@@ -1,33 +0,0 @@
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
- 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;
@@ -1,50 +0,0 @@
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.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
- }
@@ -1,50 +0,0 @@
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 StoreUserRequest
16
- */
17
- export interface StoreUserRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof StoreUserRequest
22
- */
23
- firstName: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof StoreUserRequest
28
- */
29
- lastName: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof StoreUserRequest
34
- */
35
- email: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof StoreUserRequest
40
- */
41
- mobile?: string;
42
- }
43
- /**
44
- * Check if a given object implements the StoreUserRequest interface.
45
- */
46
- export declare function instanceOfStoreUserRequest(value: object): value is StoreUserRequest;
47
- export declare function StoreUserRequestFromJSON(json: any): StoreUserRequest;
48
- export declare function StoreUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreUserRequest;
49
- export declare function StoreUserRequestToJSON(json: any): StoreUserRequest;
50
- export declare function StoreUserRequestToJSONTyped(value?: StoreUserRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,61 +0,0 @@
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.instanceOfStoreUserRequest = instanceOfStoreUserRequest;
17
- exports.StoreUserRequestFromJSON = StoreUserRequestFromJSON;
18
- exports.StoreUserRequestFromJSONTyped = StoreUserRequestFromJSONTyped;
19
- exports.StoreUserRequestToJSON = StoreUserRequestToJSON;
20
- exports.StoreUserRequestToJSONTyped = StoreUserRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the StoreUserRequest interface.
23
- */
24
- function instanceOfStoreUserRequest(value) {
25
- if (!('firstName' in value) || value['firstName'] === undefined)
26
- return false;
27
- if (!('lastName' in value) || value['lastName'] === undefined)
28
- return false;
29
- if (!('email' in value) || value['email'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function StoreUserRequestFromJSON(json) {
34
- return StoreUserRequestFromJSONTyped(json, false);
35
- }
36
- function StoreUserRequestFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'firstName': json['first_name'],
42
- 'lastName': json['last_name'],
43
- 'email': json['email'],
44
- 'mobile': json['mobile'] == null ? undefined : json['mobile'],
45
- };
46
- }
47
- function StoreUserRequestToJSON(json) {
48
- return StoreUserRequestToJSONTyped(json, false);
49
- }
50
- function StoreUserRequestToJSONTyped(value, ignoreDiscriminator) {
51
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
- 'first_name': value['firstName'],
57
- 'last_name': value['lastName'],
58
- 'email': value['email'],
59
- 'mobile': value['mobile'],
60
- };
61
- }
@@ -1,90 +0,0 @@
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
- import type { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { RecentVideoListResource } from './RecentVideoListResource';
24
- import {
25
- RecentVideoListResourceFromJSON,
26
- RecentVideoListResourceFromJSONTyped,
27
- RecentVideoListResourceToJSON,
28
- RecentVideoListResourceToJSONTyped,
29
- } from './RecentVideoListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedRecentVideoListResourceResponse
35
- */
36
- export interface PaginatedRecentVideoListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<RecentVideoListResource>}
40
- * @memberof PaginatedRecentVideoListResourceResponse
41
- */
42
- data: Array<RecentVideoListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedRecentVideoListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedRecentVideoListResourceResponse(value: object): value is PaginatedRecentVideoListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedRecentVideoListResourceResponseFromJSON(json: any): PaginatedRecentVideoListResourceResponse {
61
- return PaginatedRecentVideoListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedRecentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecentVideoListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(RecentVideoListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedRecentVideoListResourceResponseToJSON(json: any): PaginatedRecentVideoListResourceResponse {
76
- return PaginatedRecentVideoListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedRecentVideoListResourceResponseToJSONTyped(value?: PaginatedRecentVideoListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(RecentVideoListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,73 +0,0 @@
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
- import type { RecentVideoListResource } from './RecentVideoListResource';
17
- import {
18
- RecentVideoListResourceFromJSON,
19
- RecentVideoListResourceFromJSONTyped,
20
- RecentVideoListResourceToJSON,
21
- RecentVideoListResourceToJSONTyped,
22
- } from './RecentVideoListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface RecentVideoListResourceArrayResponse
28
- */
29
- export interface RecentVideoListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<RecentVideoListResource>}
33
- * @memberof RecentVideoListResourceArrayResponse
34
- */
35
- data?: Array<RecentVideoListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the RecentVideoListResourceArrayResponse interface.
40
- */
41
- export function instanceOfRecentVideoListResourceArrayResponse(value: object): value is RecentVideoListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function RecentVideoListResourceArrayResponseFromJSON(json: any): RecentVideoListResourceArrayResponse {
46
- return RecentVideoListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function RecentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(RecentVideoListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function RecentVideoListResourceArrayResponseToJSON(json: any): RecentVideoListResourceArrayResponse {
60
- return RecentVideoListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function RecentVideoListResourceArrayResponseToJSONTyped(value?: RecentVideoListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(RecentVideoListResourceToJSON)),
71
- };
72
- }
73
-