@digital8/security-registers-backend-ts-sdk 0.0.216 → 0.0.217

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 (90) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +142 -3
  4. package/dist/apis/GeneralApi.js +694 -1
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +1 -3
  7. package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
  8. package/dist/models/IncidentFieldAuditResource.js +67 -0
  9. package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
  11. package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +32 -0
  12. package/dist/models/IncidentFieldsResourceArrayResponse.js +49 -0
  13. package/dist/models/IncidentResource.d.ts +118 -0
  14. package/dist/models/IncidentResource.js +106 -0
  15. package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/IncidentResourceArrayResponse.js +50 -0
  17. package/dist/models/IncidentVersionResource.d.ts +57 -0
  18. package/dist/models/IncidentVersionResource.js +68 -0
  19. package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
  21. package/dist/models/IncidentVideoResource.d.ts +74 -0
  22. package/dist/models/IncidentVideoResource.js +72 -0
  23. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
  25. package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
  26. package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
  27. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
  29. package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
  30. package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
  31. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
  33. package/dist/models/IncidentsStoreRequest.d.ts +38 -0
  34. package/dist/models/IncidentsStoreRequest.js +55 -0
  35. package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
  36. package/dist/models/IncidentsUpdateRequest.js +51 -0
  37. package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
  38. package/dist/models/IncidentsVideosStoreRequest.js +59 -0
  39. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
  40. package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
  41. package/dist/models/LicencesVerifyRequest.d.ts +3 -21
  42. package/dist/models/LicencesVerifyRequest.js +6 -14
  43. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  44. package/dist/models/RegisterGroupedByRosterResource.js +4 -3
  45. package/dist/models/RegisterListResource.d.ts +3 -3
  46. package/dist/models/RegisterListResource.js +3 -4
  47. package/dist/models/RegisterResource.d.ts +1 -1
  48. package/dist/models/RegisterResource.js +7 -5
  49. package/dist/models/RosterLiteResource.d.ts +1 -1
  50. package/dist/models/RosterLiteResource.js +3 -4
  51. package/dist/models/RosterResource.d.ts +1 -1
  52. package/dist/models/RosterResource.js +4 -3
  53. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  54. package/dist/models/SecurityCompanyResource.js +3 -1
  55. package/dist/models/index.d.ts +17 -2
  56. package/dist/models/index.js +17 -2
  57. package/package.json +1 -1
  58. package/src/apis/GeneralApi.ts +664 -6
  59. package/src/models/AssetResource.ts +2 -3
  60. package/src/models/IncidentFieldAuditResource.ts +102 -0
  61. package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
  62. package/src/models/IncidentFieldsResourceArrayResponse.ts +65 -0
  63. package/src/models/IncidentResource.ts +237 -0
  64. package/src/models/IncidentResourceArrayResponse.ts +73 -0
  65. package/src/models/IncidentVersionResource.ts +110 -0
  66. package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
  67. package/src/models/IncidentVideoResource.ts +125 -0
  68. package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
  69. package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
  70. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
  71. package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
  72. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
  73. package/src/models/IncidentsStoreRequest.ts +75 -0
  74. package/src/models/IncidentsUpdateRequest.ts +66 -0
  75. package/src/models/IncidentsVideosStoreRequest.ts +84 -0
  76. package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
  77. package/src/models/LicencesVerifyRequest.ts +8 -33
  78. package/src/models/RegisterGroupedByRosterResource.ts +4 -3
  79. package/src/models/RegisterListResource.ts +5 -6
  80. package/src/models/RegisterResource.ts +4 -3
  81. package/src/models/RosterLiteResource.ts +3 -4
  82. package/src/models/RosterResource.ts +4 -3
  83. package/src/models/SecurityCompanyResource.ts +3 -2
  84. package/src/models/index.ts +17 -2
  85. package/dist/models/LicenceVerificationResultResource.d.ts +0 -44
  86. package/dist/models/LicenceVerificationResultResource.js +0 -59
  87. package/dist/models/LicenceVerificationResultResourceArrayResponse.d.ts +0 -33
  88. package/dist/models/LicenceVerificationResultResourceArrayResponse.js +0 -50
  89. package/src/models/LicenceVerificationResultResource.ts +0 -84
  90. package/src/models/LicenceVerificationResultResourceArrayResponse.ts +0 -73
@@ -0,0 +1,63 @@
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.instanceOfIncidentVideoUploadTokenResource = instanceOfIncidentVideoUploadTokenResource;
17
+ exports.IncidentVideoUploadTokenResourceFromJSON = IncidentVideoUploadTokenResourceFromJSON;
18
+ exports.IncidentVideoUploadTokenResourceFromJSONTyped = IncidentVideoUploadTokenResourceFromJSONTyped;
19
+ exports.IncidentVideoUploadTokenResourceToJSON = IncidentVideoUploadTokenResourceToJSON;
20
+ exports.IncidentVideoUploadTokenResourceToJSONTyped = IncidentVideoUploadTokenResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentVideoUploadTokenResource interface.
23
+ */
24
+ function instanceOfIncidentVideoUploadTokenResource(value) {
25
+ if (!('url' in value) || value['url'] === undefined)
26
+ return false;
27
+ if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined)
28
+ return false;
29
+ if (!('containerName' in value) || value['containerName'] === undefined)
30
+ return false;
31
+ if (!('headers' in value) || value['headers'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function IncidentVideoUploadTokenResourceFromJSON(json) {
36
+ return IncidentVideoUploadTokenResourceFromJSONTyped(json, false);
37
+ }
38
+ function IncidentVideoUploadTokenResourceFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'url': json['url'],
44
+ 'rawBlobPath': json['rawBlobPath'],
45
+ 'containerName': json['containerName'],
46
+ 'headers': json['headers'],
47
+ };
48
+ }
49
+ function IncidentVideoUploadTokenResourceToJSON(json) {
50
+ return IncidentVideoUploadTokenResourceToJSONTyped(json, false);
51
+ }
52
+ function IncidentVideoUploadTokenResourceToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'url': value['url'],
59
+ 'rawBlobPath': value['rawBlobPath'],
60
+ 'containerName': value['containerName'],
61
+ 'headers': value['headers'],
62
+ };
63
+ }
@@ -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 { IncidentVideoUploadTokenResource } from './IncidentVideoUploadTokenResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentVideoUploadTokenResourceArrayResponse
17
+ */
18
+ export interface IncidentVideoUploadTokenResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IncidentVideoUploadTokenResource>}
22
+ * @memberof IncidentVideoUploadTokenResourceArrayResponse
23
+ */
24
+ data?: Array<IncidentVideoUploadTokenResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IncidentVideoUploadTokenResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfIncidentVideoUploadTokenResourceArrayResponse(value: object): value is IncidentVideoUploadTokenResourceArrayResponse;
30
+ export declare function IncidentVideoUploadTokenResourceArrayResponseFromJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse;
31
+ export declare function IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResourceArrayResponse;
32
+ export declare function IncidentVideoUploadTokenResourceArrayResponseToJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse;
33
+ export declare function IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(value?: IncidentVideoUploadTokenResourceArrayResponse | 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.instanceOfIncidentVideoUploadTokenResourceArrayResponse = instanceOfIncidentVideoUploadTokenResourceArrayResponse;
17
+ exports.IncidentVideoUploadTokenResourceArrayResponseFromJSON = IncidentVideoUploadTokenResourceArrayResponseFromJSON;
18
+ exports.IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped = IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped;
19
+ exports.IncidentVideoUploadTokenResourceArrayResponseToJSON = IncidentVideoUploadTokenResourceArrayResponseToJSON;
20
+ exports.IncidentVideoUploadTokenResourceArrayResponseToJSONTyped = IncidentVideoUploadTokenResourceArrayResponseToJSONTyped;
21
+ var IncidentVideoUploadTokenResource_1 = require("./IncidentVideoUploadTokenResource");
22
+ /**
23
+ * Check if a given object implements the IncidentVideoUploadTokenResourceArrayResponse interface.
24
+ */
25
+ function instanceOfIncidentVideoUploadTokenResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function IncidentVideoUploadTokenResourceArrayResponseFromJSON(json) {
29
+ return IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoUploadTokenResource_1.IncidentVideoUploadTokenResourceFromJSON)),
37
+ };
38
+ }
39
+ function IncidentVideoUploadTokenResourceArrayResponseToJSON(json) {
40
+ return IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(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(IncidentVideoUploadTokenResource_1.IncidentVideoUploadTokenResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,38 @@
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 IncidentsStoreRequest
16
+ */
17
+ export interface IncidentsStoreRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof IncidentsStoreRequest
22
+ */
23
+ venueId: number;
24
+ /**
25
+ * Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
26
+ * @type {object}
27
+ * @memberof IncidentsStoreRequest
28
+ */
29
+ fields: object;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IncidentsStoreRequest interface.
33
+ */
34
+ export declare function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest;
35
+ export declare function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest;
36
+ export declare function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest;
37
+ export declare function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest;
38
+ export declare function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
17
+ exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
18
+ exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
19
+ exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
20
+ exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentsStoreRequest interface.
23
+ */
24
+ function instanceOfIncidentsStoreRequest(value) {
25
+ if (!('venueId' in value) || value['venueId'] === undefined)
26
+ return false;
27
+ if (!('fields' in value) || value['fields'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function IncidentsStoreRequestFromJSON(json) {
32
+ return IncidentsStoreRequestFromJSONTyped(json, false);
33
+ }
34
+ function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'venueId': json['venue_id'],
40
+ 'fields': json['fields'],
41
+ };
42
+ }
43
+ function IncidentsStoreRequestToJSON(json) {
44
+ return IncidentsStoreRequestToJSONTyped(json, false);
45
+ }
46
+ function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'venue_id': value['venueId'],
53
+ 'fields': value['fields'],
54
+ };
55
+ }
@@ -0,0 +1,32 @@
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 IncidentsUpdateRequest
16
+ */
17
+ export interface IncidentsUpdateRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof IncidentsUpdateRequest
22
+ */
23
+ fields: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the IncidentsUpdateRequest interface.
27
+ */
28
+ export declare function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest;
29
+ export declare function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest;
30
+ export declare function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest;
31
+ export declare function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest;
32
+ export declare function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfIncidentsUpdateRequest = instanceOfIncidentsUpdateRequest;
17
+ exports.IncidentsUpdateRequestFromJSON = IncidentsUpdateRequestFromJSON;
18
+ exports.IncidentsUpdateRequestFromJSONTyped = IncidentsUpdateRequestFromJSONTyped;
19
+ exports.IncidentsUpdateRequestToJSON = IncidentsUpdateRequestToJSON;
20
+ exports.IncidentsUpdateRequestToJSONTyped = IncidentsUpdateRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentsUpdateRequest interface.
23
+ */
24
+ function instanceOfIncidentsUpdateRequest(value) {
25
+ if (!('fields' in value) || value['fields'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function IncidentsUpdateRequestFromJSON(json) {
30
+ return IncidentsUpdateRequestFromJSONTyped(json, false);
31
+ }
32
+ function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'fields': json['fields'],
38
+ };
39
+ }
40
+ function IncidentsUpdateRequestToJSON(json) {
41
+ return IncidentsUpdateRequestToJSONTyped(json, false);
42
+ }
43
+ function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'fields': value['fields'],
50
+ };
51
+ }
@@ -0,0 +1,44 @@
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 IncidentsVideosStoreRequest
16
+ */
17
+ export interface IncidentsVideosStoreRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IncidentsVideosStoreRequest
22
+ */
23
+ rawBlobPath: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IncidentsVideosStoreRequest
28
+ */
29
+ originalFilename: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IncidentsVideosStoreRequest
34
+ */
35
+ mimeType: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the IncidentsVideosStoreRequest interface.
39
+ */
40
+ export declare function instanceOfIncidentsVideosStoreRequest(value: object): value is IncidentsVideosStoreRequest;
41
+ export declare function IncidentsVideosStoreRequestFromJSON(json: any): IncidentsVideosStoreRequest;
42
+ export declare function IncidentsVideosStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosStoreRequest;
43
+ export declare function IncidentsVideosStoreRequestToJSON(json: any): IncidentsVideosStoreRequest;
44
+ export declare function IncidentsVideosStoreRequestToJSONTyped(value?: IncidentsVideosStoreRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfIncidentsVideosStoreRequest = instanceOfIncidentsVideosStoreRequest;
17
+ exports.IncidentsVideosStoreRequestFromJSON = IncidentsVideosStoreRequestFromJSON;
18
+ exports.IncidentsVideosStoreRequestFromJSONTyped = IncidentsVideosStoreRequestFromJSONTyped;
19
+ exports.IncidentsVideosStoreRequestToJSON = IncidentsVideosStoreRequestToJSON;
20
+ exports.IncidentsVideosStoreRequestToJSONTyped = IncidentsVideosStoreRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentsVideosStoreRequest interface.
23
+ */
24
+ function instanceOfIncidentsVideosStoreRequest(value) {
25
+ if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined)
26
+ return false;
27
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined)
28
+ return false;
29
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function IncidentsVideosStoreRequestFromJSON(json) {
34
+ return IncidentsVideosStoreRequestFromJSONTyped(json, false);
35
+ }
36
+ function IncidentsVideosStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'rawBlobPath': json['raw_blob_path'],
42
+ 'originalFilename': json['original_filename'],
43
+ 'mimeType': json['mime_type'],
44
+ };
45
+ }
46
+ function IncidentsVideosStoreRequestToJSON(json) {
47
+ return IncidentsVideosStoreRequestToJSONTyped(json, false);
48
+ }
49
+ function IncidentsVideosStoreRequestToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'raw_blob_path': value['rawBlobPath'],
56
+ 'original_filename': value['originalFilename'],
57
+ 'mime_type': value['mimeType'],
58
+ };
59
+ }
@@ -0,0 +1,44 @@
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 IncidentsVideosUploadTokenRequest
16
+ */
17
+ export interface IncidentsVideosUploadTokenRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IncidentsVideosUploadTokenRequest
22
+ */
23
+ filename: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IncidentsVideosUploadTokenRequest
28
+ */
29
+ mimeType: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof IncidentsVideosUploadTokenRequest
34
+ */
35
+ sizeBytes: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
39
+ */
40
+ export declare function instanceOfIncidentsVideosUploadTokenRequest(value: object): value is IncidentsVideosUploadTokenRequest;
41
+ export declare function IncidentsVideosUploadTokenRequestFromJSON(json: any): IncidentsVideosUploadTokenRequest;
42
+ export declare function IncidentsVideosUploadTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosUploadTokenRequest;
43
+ export declare function IncidentsVideosUploadTokenRequestToJSON(json: any): IncidentsVideosUploadTokenRequest;
44
+ export declare function IncidentsVideosUploadTokenRequestToJSONTyped(value?: IncidentsVideosUploadTokenRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfIncidentsVideosUploadTokenRequest = instanceOfIncidentsVideosUploadTokenRequest;
17
+ exports.IncidentsVideosUploadTokenRequestFromJSON = IncidentsVideosUploadTokenRequestFromJSON;
18
+ exports.IncidentsVideosUploadTokenRequestFromJSONTyped = IncidentsVideosUploadTokenRequestFromJSONTyped;
19
+ exports.IncidentsVideosUploadTokenRequestToJSON = IncidentsVideosUploadTokenRequestToJSON;
20
+ exports.IncidentsVideosUploadTokenRequestToJSONTyped = IncidentsVideosUploadTokenRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
23
+ */
24
+ function instanceOfIncidentsVideosUploadTokenRequest(value) {
25
+ if (!('filename' in value) || value['filename'] === undefined)
26
+ return false;
27
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
28
+ return false;
29
+ if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function IncidentsVideosUploadTokenRequestFromJSON(json) {
34
+ return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
35
+ }
36
+ function IncidentsVideosUploadTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'filename': json['filename'],
42
+ 'mimeType': json['mime_type'],
43
+ 'sizeBytes': json['size_bytes'],
44
+ };
45
+ }
46
+ function IncidentsVideosUploadTokenRequestToJSON(json) {
47
+ return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
48
+ }
49
+ function IncidentsVideosUploadTokenRequestToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'filename': value['filename'],
56
+ 'mime_type': value['mimeType'],
57
+ 'size_bytes': value['sizeBytes'],
58
+ };
59
+ }
@@ -21,18 +21,6 @@ export interface LicencesVerifyRequest {
21
21
  * @memberof LicencesVerifyRequest
22
22
  */
23
23
  state: LicencesVerifyRequestStateEnum;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof LicencesVerifyRequest
28
- */
29
- userId?: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof LicencesVerifyRequest
34
- */
35
- licenceId?: number;
36
24
  /**
37
25
  *
38
26
  * @type {string}
@@ -41,22 +29,16 @@ export interface LicencesVerifyRequest {
41
29
  licenceNumber: string;
42
30
  /**
43
31
  *
44
- * @type {string}
45
- * @memberof LicencesVerifyRequest
46
- */
47
- givenName: string;
48
- /**
49
- *
50
- * @type {string}
32
+ * @type {Date}
51
33
  * @memberof LicencesVerifyRequest
52
34
  */
53
- lastName: string;
35
+ expiryDate: Date;
54
36
  /**
55
37
  *
56
38
  * @type {string}
57
39
  * @memberof LicencesVerifyRequest
58
40
  */
59
- expiryDate: string;
41
+ name: string;
60
42
  }
61
43
  /**
62
44
  * @export
@@ -40,12 +40,10 @@ function instanceOfLicencesVerifyRequest(value) {
40
40
  return false;
41
41
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
42
42
  return false;
43
- if (!('givenName' in value) || value['givenName'] === undefined)
44
- return false;
45
- if (!('lastName' in value) || value['lastName'] === undefined)
46
- return false;
47
43
  if (!('expiryDate' in value) || value['expiryDate'] === undefined)
48
44
  return false;
45
+ if (!('name' in value) || value['name'] === undefined)
46
+ return false;
49
47
  return true;
50
48
  }
51
49
  function LicencesVerifyRequestFromJSON(json) {
@@ -57,12 +55,9 @@ function LicencesVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
57
55
  }
58
56
  return {
59
57
  'state': json['state'],
60
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
61
- 'licenceId': json['licence_id'] == null ? undefined : json['licence_id'],
62
58
  'licenceNumber': json['licence_number'],
63
- 'givenName': json['given_name'],
64
- 'lastName': json['last_name'],
65
- 'expiryDate': json['expiry_date'],
59
+ 'expiryDate': (new Date(json['expiry_date'])),
60
+ 'name': json['name'],
66
61
  };
67
62
  }
68
63
  function LicencesVerifyRequestToJSON(json) {
@@ -75,11 +70,8 @@ function LicencesVerifyRequestToJSONTyped(value, ignoreDiscriminator) {
75
70
  }
76
71
  return {
77
72
  'state': value['state'],
78
- 'user_id': value['userId'],
79
- 'licence_id': value['licenceId'],
80
73
  'licence_number': value['licenceNumber'],
81
- 'given_name': value['givenName'],
82
- 'last_name': value['lastName'],
83
- 'expiry_date': value['expiryDate'],
74
+ 'expiry_date': ((value['expiryDate']).toISOString()),
75
+ 'name': value['name'],
84
76
  };
85
77
  }
@@ -52,7 +52,7 @@ export interface RegisterGroupedByRosterResource {
52
52
  * @type {Date}
53
53
  * @memberof RegisterGroupedByRosterResource
54
54
  */
55
- finishDateTime?: Date | null;
55
+ finishDateTime: Date;
56
56
  /**
57
57
  *
58
58
  * @type {Array<RegisterListResource>}
@@ -32,6 +32,8 @@ function instanceOfRegisterGroupedByRosterResource(value) {
32
32
  return false;
33
33
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
34
34
  return false;
35
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
36
+ return false;
35
37
  if (!('registers' in value) || value['registers'] === undefined)
36
38
  return false;
37
39
  return true;
@@ -49,7 +51,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
49
51
  'timezone': json['timezone'],
50
52
  'state': json['state'],
51
53
  'startDateTime': (new Date(json['startDateTime'])),
52
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
54
+ 'finishDateTime': (new Date(json['finishDateTime'])),
53
55
  'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
54
56
  };
55
57
  }
@@ -57,7 +59,6 @@ function RegisterGroupedByRosterResourceToJSON(json) {
57
59
  return RegisterGroupedByRosterResourceToJSONTyped(json, false);
58
60
  }
59
61
  function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
60
- var _a;
61
62
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
63
  if (value == null) {
63
64
  return value;
@@ -68,7 +69,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
68
69
  'timezone': value['timezone'],
69
70
  'state': value['state'],
70
71
  'startDateTime': ((value['startDateTime']).toISOString()),
71
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
72
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
72
73
  'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
73
74
  };
74
75
  }