@digital8/security-registers-backend-ts-sdk 0.0.221 → 0.0.223

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 (54) hide show
  1. package/.openapi-generator/FILES +6 -2
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +59 -1
  4. package/dist/apis/GeneralApi.js +288 -0
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/AssetResource.d.ts +1 -1
  8. package/dist/models/AssetResource.js +1 -3
  9. package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
  10. package/dist/models/IncidentFieldAuditResource.js +67 -0
  11. package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
  13. package/dist/models/IncidentResource.d.ts +7 -0
  14. package/dist/models/IncidentResource.js +5 -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/IncidentsApproveRequest.d.ts +32 -0
  20. package/dist/models/IncidentsApproveRequest.js +51 -0
  21. package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
  22. package/dist/models/IncidentsUpdateRequest.js +51 -0
  23. package/dist/models/RegisterListResource.d.ts +1 -1
  24. package/dist/models/RegisterListResource.js +3 -1
  25. package/dist/models/RegisterResource.d.ts +1 -1
  26. package/dist/models/RegisterResource.js +1 -3
  27. package/dist/models/RosterListResource.d.ts +1 -1
  28. package/dist/models/RosterListResource.js +3 -4
  29. package/dist/models/RosterLiteResource.d.ts +1 -1
  30. package/dist/models/RosterLiteResource.js +3 -4
  31. package/dist/models/index.d.ts +6 -2
  32. package/dist/models/index.js +6 -2
  33. package/package.json +1 -1
  34. package/src/apis/GeneralApi.ts +274 -0
  35. package/src/models/AddressResource.ts +3 -2
  36. package/src/models/AssetResource.ts +2 -3
  37. package/src/models/IncidentFieldAuditResource.ts +102 -0
  38. package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
  39. package/src/models/IncidentResource.ts +16 -0
  40. package/src/models/IncidentVersionResource.ts +110 -0
  41. package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
  42. package/src/models/IncidentsApproveRequest.ts +66 -0
  43. package/src/models/IncidentsUpdateRequest.ts +66 -0
  44. package/src/models/RegisterListResource.ts +3 -2
  45. package/src/models/RegisterResource.ts +2 -3
  46. package/src/models/RosterListResource.ts +3 -4
  47. package/src/models/RosterLiteResource.ts +3 -4
  48. package/src/models/index.ts +6 -2
  49. package/dist/models/IncidentImageResource.d.ts +0 -56
  50. package/dist/models/IncidentImageResource.js +0 -65
  51. package/dist/models/IncidentImageResourceArrayResponse.d.ts +0 -33
  52. package/dist/models/IncidentImageResourceArrayResponse.js +0 -50
  53. package/src/models/IncidentImageResource.ts +0 -101
  54. package/src/models/IncidentImageResourceArrayResponse.ts +0 -73
@@ -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.instanceOfIncidentFieldAuditResourceArrayResponse = instanceOfIncidentFieldAuditResourceArrayResponse;
17
+ exports.IncidentFieldAuditResourceArrayResponseFromJSON = IncidentFieldAuditResourceArrayResponseFromJSON;
18
+ exports.IncidentFieldAuditResourceArrayResponseFromJSONTyped = IncidentFieldAuditResourceArrayResponseFromJSONTyped;
19
+ exports.IncidentFieldAuditResourceArrayResponseToJSON = IncidentFieldAuditResourceArrayResponseToJSON;
20
+ exports.IncidentFieldAuditResourceArrayResponseToJSONTyped = IncidentFieldAuditResourceArrayResponseToJSONTyped;
21
+ var IncidentFieldAuditResource_1 = require("./IncidentFieldAuditResource");
22
+ /**
23
+ * Check if a given object implements the IncidentFieldAuditResourceArrayResponse interface.
24
+ */
25
+ function instanceOfIncidentFieldAuditResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function IncidentFieldAuditResourceArrayResponseFromJSON(json) {
29
+ return IncidentFieldAuditResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function IncidentFieldAuditResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
37
+ };
38
+ }
39
+ function IncidentFieldAuditResourceArrayResponseToJSON(json) {
40
+ return IncidentFieldAuditResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function IncidentFieldAuditResourceArrayResponseToJSONTyped(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(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
49
+ };
50
+ }
@@ -12,6 +12,7 @@
12
12
  import type { VenueLiteResource } from './VenueLiteResource';
13
13
  import type { IncidentFieldSchemaResource } from './IncidentFieldSchemaResource';
14
14
  import type { RosterLiteResource } from './RosterLiteResource';
15
+ import type { IncidentFieldAuditResource } from './IncidentFieldAuditResource';
15
16
  import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
16
17
  import type { UserLiteResource } from './UserLiteResource';
17
18
  import type { RegisterLiteResource } from './RegisterLiteResource';
@@ -93,6 +94,12 @@ export interface IncidentResource {
93
94
  * @memberof IncidentResource
94
95
  */
95
96
  fields: object;
97
+ /**
98
+ *
99
+ * @type {Array<IncidentFieldAuditResource>}
100
+ * @memberof IncidentResource
101
+ */
102
+ fieldAudits: Array<IncidentFieldAuditResource> | null;
96
103
  }
97
104
  /**
98
105
  * Check if a given object implements the IncidentResource interface.
@@ -21,6 +21,7 @@ exports.IncidentResourceToJSONTyped = IncidentResourceToJSONTyped;
21
21
  var VenueLiteResource_1 = require("./VenueLiteResource");
22
22
  var IncidentFieldSchemaResource_1 = require("./IncidentFieldSchemaResource");
23
23
  var RosterLiteResource_1 = require("./RosterLiteResource");
24
+ var IncidentFieldAuditResource_1 = require("./IncidentFieldAuditResource");
24
25
  var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
25
26
  var UserLiteResource_1 = require("./UserLiteResource");
26
27
  var RegisterLiteResource_1 = require("./RegisterLiteResource");
@@ -46,6 +47,8 @@ function instanceOfIncidentResource(value) {
46
47
  return false;
47
48
  if (!('fields' in value) || value['fields'] === undefined)
48
49
  return false;
50
+ if (!('fieldAudits' in value) || value['fieldAudits'] === undefined)
51
+ return false;
49
52
  return true;
50
53
  }
51
54
  function IncidentResourceFromJSON(json) {
@@ -68,6 +71,7 @@ function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
68
71
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
69
72
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
70
73
  'fields': json['fields'],
74
+ 'fieldAudits': (json['fieldAudits'] == null ? null : json['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
71
75
  };
72
76
  }
73
77
  function IncidentResourceToJSON(json) {
@@ -92,5 +96,6 @@ function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
92
96
  'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
93
97
  'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
94
98
  'fields': value['fields'],
99
+ 'fieldAudits': (value['fieldAudits'] == null ? null : value['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
95
100
  };
96
101
  }
@@ -0,0 +1,57 @@
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 { UserLiteResource } from './UserLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentVersionResource
17
+ */
18
+ export interface IncidentVersionResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof IncidentVersionResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof IncidentVersionResource
29
+ */
30
+ versionNumber: number;
31
+ /**
32
+ *
33
+ * @type {UserLiteResource}
34
+ * @memberof IncidentVersionResource
35
+ */
36
+ user: UserLiteResource | null;
37
+ /**
38
+ *
39
+ * @type {Array<boolean>}
40
+ * @memberof IncidentVersionResource
41
+ */
42
+ fieldData: Array<boolean>;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof IncidentVersionResource
47
+ */
48
+ createdAt: Date;
49
+ }
50
+ /**
51
+ * Check if a given object implements the IncidentVersionResource interface.
52
+ */
53
+ export declare function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource;
54
+ export declare function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource;
55
+ export declare function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource;
56
+ export declare function IncidentVersionResourceToJSON(json: any): IncidentVersionResource;
57
+ export declare function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfIncidentVersionResource = instanceOfIncidentVersionResource;
17
+ exports.IncidentVersionResourceFromJSON = IncidentVersionResourceFromJSON;
18
+ exports.IncidentVersionResourceFromJSONTyped = IncidentVersionResourceFromJSONTyped;
19
+ exports.IncidentVersionResourceToJSON = IncidentVersionResourceToJSON;
20
+ exports.IncidentVersionResourceToJSONTyped = IncidentVersionResourceToJSONTyped;
21
+ var UserLiteResource_1 = require("./UserLiteResource");
22
+ /**
23
+ * Check if a given object implements the IncidentVersionResource interface.
24
+ */
25
+ function instanceOfIncidentVersionResource(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('versionNumber' in value) || value['versionNumber'] === undefined)
29
+ return false;
30
+ if (!('user' in value) || value['user'] === undefined)
31
+ return false;
32
+ if (!('fieldData' in value) || value['fieldData'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function IncidentVersionResourceFromJSON(json) {
39
+ return IncidentVersionResourceFromJSONTyped(json, false);
40
+ }
41
+ function IncidentVersionResourceFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'],
47
+ 'versionNumber': json['versionNumber'],
48
+ 'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
49
+ 'fieldData': json['fieldData'],
50
+ 'createdAt': (new Date(json['createdAt'])),
51
+ };
52
+ }
53
+ function IncidentVersionResourceToJSON(json) {
54
+ return IncidentVersionResourceToJSONTyped(json, false);
55
+ }
56
+ function IncidentVersionResourceToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'versionNumber': value['versionNumber'],
64
+ 'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
65
+ 'fieldData': value['fieldData'],
66
+ 'createdAt': ((value['createdAt']).toISOString()),
67
+ };
68
+ }
@@ -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 { IncidentVersionResource } from './IncidentVersionResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentVersionResourceArrayResponse
17
+ */
18
+ export interface IncidentVersionResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IncidentVersionResource>}
22
+ * @memberof IncidentVersionResourceArrayResponse
23
+ */
24
+ data?: Array<IncidentVersionResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IncidentVersionResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse;
30
+ export declare function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse;
31
+ export declare function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse;
32
+ export declare function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse;
33
+ export declare function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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.instanceOfIncidentVersionResourceArrayResponse = instanceOfIncidentVersionResourceArrayResponse;
17
+ exports.IncidentVersionResourceArrayResponseFromJSON = IncidentVersionResourceArrayResponseFromJSON;
18
+ exports.IncidentVersionResourceArrayResponseFromJSONTyped = IncidentVersionResourceArrayResponseFromJSONTyped;
19
+ exports.IncidentVersionResourceArrayResponseToJSON = IncidentVersionResourceArrayResponseToJSON;
20
+ exports.IncidentVersionResourceArrayResponseToJSONTyped = IncidentVersionResourceArrayResponseToJSONTyped;
21
+ var IncidentVersionResource_1 = require("./IncidentVersionResource");
22
+ /**
23
+ * Check if a given object implements the IncidentVersionResourceArrayResponse interface.
24
+ */
25
+ function instanceOfIncidentVersionResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function IncidentVersionResourceArrayResponseFromJSON(json) {
29
+ return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function IncidentVersionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(IncidentVersionResource_1.IncidentVersionResourceFromJSON)),
37
+ };
38
+ }
39
+ function IncidentVersionResourceArrayResponseToJSON(json) {
40
+ return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function IncidentVersionResourceArrayResponseToJSONTyped(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(IncidentVersionResource_1.IncidentVersionResourceToJSON)),
49
+ };
50
+ }
@@ -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 IncidentsApproveRequest
16
+ */
17
+ export interface IncidentsApproveRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof IncidentsApproveRequest
22
+ */
23
+ userId: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the IncidentsApproveRequest interface.
27
+ */
28
+ export declare function instanceOfIncidentsApproveRequest(value: object): value is IncidentsApproveRequest;
29
+ export declare function IncidentsApproveRequestFromJSON(json: any): IncidentsApproveRequest;
30
+ export declare function IncidentsApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveRequest;
31
+ export declare function IncidentsApproveRequestToJSON(json: any): IncidentsApproveRequest;
32
+ export declare function IncidentsApproveRequestToJSONTyped(value?: IncidentsApproveRequest | 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.instanceOfIncidentsApproveRequest = instanceOfIncidentsApproveRequest;
17
+ exports.IncidentsApproveRequestFromJSON = IncidentsApproveRequestFromJSON;
18
+ exports.IncidentsApproveRequestFromJSONTyped = IncidentsApproveRequestFromJSONTyped;
19
+ exports.IncidentsApproveRequestToJSON = IncidentsApproveRequestToJSON;
20
+ exports.IncidentsApproveRequestToJSONTyped = IncidentsApproveRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentsApproveRequest interface.
23
+ */
24
+ function instanceOfIncidentsApproveRequest(value) {
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function IncidentsApproveRequestFromJSON(json) {
30
+ return IncidentsApproveRequestFromJSONTyped(json, false);
31
+ }
32
+ function IncidentsApproveRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'userId': json['user_id'],
38
+ };
39
+ }
40
+ function IncidentsApproveRequestToJSON(json) {
41
+ return IncidentsApproveRequestToJSONTyped(json, false);
42
+ }
43
+ function IncidentsApproveRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'user_id': value['userId'],
50
+ };
51
+ }
@@ -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
+ }
@@ -148,7 +148,7 @@ export interface RegisterListResource {
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLong?: number | null;
151
+ signOffLong: number;
152
152
  /**
153
153
  *
154
154
  * @type {Array<boolean>}
@@ -60,6 +60,8 @@ function instanceOfRegisterListResource(value) {
60
60
  return false;
61
61
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
62
62
  return false;
63
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
64
+ return false;
63
65
  if (!('incidents' in value) || value['incidents'] === undefined)
64
66
  return false;
65
67
  return true;
@@ -93,7 +95,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
93
95
  'signOnLat': json['signOnLat'],
94
96
  'signOnLong': json['signOnLong'],
95
97
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
96
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
98
+ 'signOffLong': json['signOffLong'],
97
99
  'incidents': json['incidents'],
98
100
  };
99
101
  }
@@ -112,7 +112,7 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong: number;
115
+ signOffLong?: number | null;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -52,8 +52,6 @@ function instanceOfRegisterResource(value) {
52
52
  return false;
53
53
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
54
54
  return false;
55
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
56
- return false;
57
55
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
58
56
  return false;
59
57
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -87,7 +85,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
87
85
  'signOnLat': json['signOnLat'],
88
86
  'signOnLong': json['signOnLong'],
89
87
  'signOffLat': json['signOffLat'],
90
- 'signOffLong': json['signOffLong'],
88
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
91
89
  'licenceNumber': json['licenceNumber'],
92
90
  'licenceExpiry': json['licenceExpiry'],
93
91
  'licenceFirstName': json['licenceFirstName'],
@@ -46,7 +46,7 @@ export interface RosterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RosterListResource
48
48
  */
49
- finishDateTime: Date;
49
+ finishDateTime?: Date | null;
50
50
  /**
51
51
  *
52
52
  * @type {boolean}
@@ -30,8 +30,6 @@ function instanceOfRosterListResource(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 (!('isCompliant' in value) || value['isCompliant'] === undefined)
36
34
  return false;
37
35
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -54,7 +52,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
55
53
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
56
54
  'startDateTime': (new Date(json['startDateTime'])),
57
- 'finishDateTime': (new Date(json['finishDateTime'])),
55
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
58
56
  'isCompliant': json['isCompliant'],
59
57
  'isComplete': json['isComplete'],
60
58
  'signOffStatus': json['signOffStatus'],
@@ -65,6 +63,7 @@ function RosterListResourceToJSON(json) {
65
63
  return RosterListResourceToJSONTyped(json, false);
66
64
  }
67
65
  function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
66
+ var _a;
68
67
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
69
68
  if (value == null) {
70
69
  return value;
@@ -74,7 +73,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
74
73
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
75
74
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
76
75
  'startDateTime': ((value['startDateTime']).toISOString()),
77
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
76
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
78
77
  'isCompliant': value['isCompliant'],
79
78
  'isComplete': value['isComplete'],
80
79
  'signOffStatus': value['signOffStatus'],
@@ -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.
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
24
24
  function instanceOfRosterLiteResource(value) {
25
25
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
26
26
  return false;
27
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function RosterLiteResourceFromJSON(json) {
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
38
36
  return {
39
37
  'id': json['id'] == null ? undefined : json['id'],
40
38
  'startDateTime': (new Date(json['startDateTime'])),
41
- 'finishDateTime': (new Date(json['finishDateTime'])),
39
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
42
40
  };
43
41
  }
44
42
  function RosterLiteResourceToJSON(json) {
45
43
  return RosterLiteResourceToJSONTyped(json, false);
46
44
  }
47
45
  function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
46
+ var _a;
48
47
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
48
  if (value == null) {
50
49
  return value;
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
52
51
  return {
53
52
  'id': value['id'],
54
53
  'startDateTime': ((value['startDateTime']).toISOString()),
55
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
54
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
56
55
  };
57
56
  }
@@ -9,15 +9,19 @@ export * from './AssetResourceArrayResponse';
9
9
  export * from './CurrentRegisterResource';
10
10
  export * from './CurrentRegisterResourceArrayResponse';
11
11
  export * from './GenericResponse';
12
+ export * from './IncidentFieldAuditResource';
13
+ export * from './IncidentFieldAuditResourceArrayResponse';
12
14
  export * from './IncidentFieldSchemaResource';
13
15
  export * from './IncidentFieldSchemaResourceArrayResponse';
14
16
  export * from './IncidentFieldSchemasShowRequest';
15
17
  export * from './IncidentFieldsResourceArrayResponse';
16
- export * from './IncidentImageResource';
17
- export * from './IncidentImageResourceArrayResponse';
18
18
  export * from './IncidentResource';
19
19
  export * from './IncidentResourceArrayResponse';
20
+ export * from './IncidentVersionResource';
21
+ export * from './IncidentVersionResourceArrayResponse';
22
+ export * from './IncidentsApproveRequest';
20
23
  export * from './IncidentsStoreRequest';
24
+ export * from './IncidentsUpdateRequest';
21
25
  export * from './IndexMinimalUserRequest';
22
26
  export * from './IndexUserRequest';
23
27
  export * from './LicenceListResource';