@digital8/security-registers-backend-ts-sdk 0.0.215 → 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 (81) 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/IncidentFieldAuditResource.d.ts +56 -0
  6. package/dist/models/IncidentFieldAuditResource.js +67 -0
  7. package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
  9. package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +32 -0
  10. package/dist/models/IncidentFieldsResourceArrayResponse.js +49 -0
  11. package/dist/models/IncidentResource.d.ts +118 -0
  12. package/dist/models/IncidentResource.js +106 -0
  13. package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/IncidentResourceArrayResponse.js +50 -0
  15. package/dist/models/IncidentVersionResource.d.ts +57 -0
  16. package/dist/models/IncidentVersionResource.js +68 -0
  17. package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
  19. package/dist/models/IncidentVideoResource.d.ts +74 -0
  20. package/dist/models/IncidentVideoResource.js +72 -0
  21. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
  23. package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
  24. package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
  25. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
  27. package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
  28. package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
  29. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
  31. package/dist/models/IncidentsStoreRequest.d.ts +38 -0
  32. package/dist/models/IncidentsStoreRequest.js +55 -0
  33. package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
  34. package/dist/models/IncidentsUpdateRequest.js +51 -0
  35. package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
  36. package/dist/models/IncidentsVideosStoreRequest.js +59 -0
  37. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
  38. package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
  39. package/dist/models/LicencesVerifyRequest.d.ts +3 -21
  40. package/dist/models/LicencesVerifyRequest.js +6 -14
  41. package/dist/models/RegisterListResource.d.ts +3 -3
  42. package/dist/models/RegisterListResource.js +3 -4
  43. package/dist/models/RegisterResource.d.ts +1 -1
  44. package/dist/models/RegisterResource.js +1 -3
  45. package/dist/models/RosterLiteResource.d.ts +1 -1
  46. package/dist/models/RosterLiteResource.js +3 -4
  47. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  48. package/dist/models/RosterWithRegistersResource.js +4 -3
  49. package/dist/models/index.d.ts +17 -2
  50. package/dist/models/index.js +17 -2
  51. package/package.json +1 -1
  52. package/src/apis/GeneralApi.ts +664 -6
  53. package/src/models/IncidentFieldAuditResource.ts +102 -0
  54. package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
  55. package/src/models/IncidentFieldsResourceArrayResponse.ts +65 -0
  56. package/src/models/IncidentResource.ts +237 -0
  57. package/src/models/IncidentResourceArrayResponse.ts +73 -0
  58. package/src/models/IncidentVersionResource.ts +110 -0
  59. package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
  60. package/src/models/IncidentVideoResource.ts +125 -0
  61. package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
  62. package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
  63. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
  64. package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
  65. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
  66. package/src/models/IncidentsStoreRequest.ts +75 -0
  67. package/src/models/IncidentsUpdateRequest.ts +66 -0
  68. package/src/models/IncidentsVideosStoreRequest.ts +84 -0
  69. package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
  70. package/src/models/LicencesVerifyRequest.ts +8 -33
  71. package/src/models/RegisterListResource.ts +5 -6
  72. package/src/models/RegisterResource.ts +2 -3
  73. package/src/models/RosterLiteResource.ts +3 -4
  74. package/src/models/RosterWithRegistersResource.ts +4 -3
  75. package/src/models/index.ts +17 -2
  76. package/dist/models/LicenceVerificationResultResource.d.ts +0 -44
  77. package/dist/models/LicenceVerificationResultResource.js +0 -59
  78. package/dist/models/LicenceVerificationResultResourceArrayResponse.d.ts +0 -33
  79. package/dist/models/LicenceVerificationResultResourceArrayResponse.js +0 -50
  80. package/src/models/LicenceVerificationResultResource.ts +0 -84
  81. package/src/models/LicenceVerificationResultResourceArrayResponse.ts +0 -73
@@ -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
  }
@@ -46,13 +46,13 @@ export interface RegisterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RegisterListResource
48
48
  */
49
- finishDateTime: Date;
49
+ finishDateTime?: Date | null;
50
50
  /**
51
51
  *
52
- * @type {string}
52
+ * @type {object}
53
53
  * @memberof RegisterListResource
54
54
  */
55
- shiftLength: string;
55
+ shiftLength: object;
56
56
  /**
57
57
  *
58
58
  * @type {number}
@@ -30,8 +30,6 @@ function instanceOfRegisterListResource(value) {
30
30
  return false;
31
31
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
32
  return false;
33
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
- return false;
35
33
  if (!('shiftLength' in value) || value['shiftLength'] === undefined)
36
34
  return false;
37
35
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
@@ -78,7 +76,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
78
76
  'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
79
77
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
80
78
  'startDateTime': (new Date(json['startDateTime'])),
81
- 'finishDateTime': (new Date(json['finishDateTime'])),
79
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
82
80
  'shiftLength': json['shiftLength'],
83
81
  'signOffStatus': json['signOffStatus'],
84
82
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
@@ -103,6 +101,7 @@ function RegisterListResourceToJSON(json) {
103
101
  return RegisterListResourceToJSONTyped(json, false);
104
102
  }
105
103
  function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
104
+ var _a;
106
105
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
107
106
  if (value == null) {
108
107
  return value;
@@ -112,7 +111,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
112
111
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
113
112
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
114
113
  'startDateTime': ((value['startDateTime']).toISOString()),
115
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
114
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
116
115
  'shiftLength': value['shiftLength'],
117
116
  'signOffStatus': value['signOffStatus'],
118
117
  'badgeNumber': value['badgeNumber'],
@@ -106,7 +106,7 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat: number;
109
+ signOffLat?: number | null;
110
110
  /**
111
111
  *
112
112
  * @type {number}
@@ -50,8 +50,6 @@ function instanceOfRegisterResource(value) {
50
50
  return false;
51
51
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
52
52
  return false;
53
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
54
- return false;
55
53
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
56
54
  return false;
57
55
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -84,7 +82,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
84
82
  'firstAidImage': json['firstAidImage'],
85
83
  'signOnLat': json['signOnLat'],
86
84
  'signOnLong': json['signOnLong'],
87
- 'signOffLat': json['signOffLat'],
85
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
88
86
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
89
87
  'licenceNumber': json['licenceNumber'],
90
88
  'licenceExpiry': json['licenceExpiry'],
@@ -32,7 +32,7 @@ export interface RosterLiteResource {
32
32
  * @type {Date}
33
33
  * @memberof RosterLiteResource
34
34
  */
35
- finishDateTime: Date;
35
+ finishDateTime?: Date | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the RosterLiteResource interface.