@digital8/security-registers-backend-ts-sdk 0.0.303 → 0.0.305

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 (117) hide show
  1. package/.openapi-generator/FILES +0 -22
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +1 -127
  4. package/dist/apis/GeneralApi.js +36 -694
  5. package/dist/models/AssetFileForUploadResource.d.ts +2 -4
  6. package/dist/models/AssetLiteResource.d.ts +12 -0
  7. package/dist/models/AssetLiteResource.js +6 -0
  8. package/dist/models/AssetResource.d.ts +12 -0
  9. package/dist/models/AssetResource.js +6 -0
  10. package/dist/models/IncidentFieldSchemaResource.d.ts +2 -4
  11. package/dist/models/IncidentImageResource.d.ts +1 -1
  12. package/dist/models/IncidentImageResource.js +1 -3
  13. package/dist/models/IncidentVideoUploadTokenResource.d.ts +2 -4
  14. package/dist/models/LicencesStoreRequest.d.ts +104 -10
  15. package/dist/models/LicencesStoreRequest.js +40 -10
  16. package/dist/models/LicencesUpdateRequest.d.ts +104 -9
  17. package/dist/models/LicencesUpdateRequest.js +40 -9
  18. package/dist/models/RegisterListResource.d.ts +5 -4
  19. package/dist/models/RegisterListResource.js +6 -9
  20. package/dist/models/RegisterResource.d.ts +13 -1
  21. package/dist/models/RegisterResource.js +9 -3
  22. package/dist/models/RosterListResource.d.ts +1 -1
  23. package/dist/models/RosterListResource.js +3 -4
  24. package/dist/models/RosterLiteResource.d.ts +1 -1
  25. package/dist/models/RosterLiteResource.js +3 -4
  26. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  27. package/dist/models/RosterWithRegistersResource.js +3 -4
  28. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -12
  29. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +8 -12
  30. package/dist/models/VenueLiteResource.d.ts +0 -6
  31. package/dist/models/VenueLiteResource.js +0 -4
  32. package/dist/models/index.d.ts +0 -22
  33. package/dist/models/index.js +0 -22
  34. package/package.json +1 -1
  35. package/src/apis/GeneralApi.ts +0 -564
  36. package/src/models/AssetFileForUploadResource.ts +2 -2
  37. package/src/models/AssetLiteResource.ts +17 -0
  38. package/src/models/AssetResource.ts +17 -0
  39. package/src/models/IncidentFieldSchemaResource.ts +2 -2
  40. package/src/models/IncidentImageResource.ts +2 -3
  41. package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
  42. package/src/models/LicencesStoreRequest.ts +144 -31
  43. package/src/models/LicencesUpdateRequest.ts +144 -24
  44. package/src/models/RegisterListResource.ts +16 -11
  45. package/src/models/RegisterResource.ts +20 -3
  46. package/src/models/RosterListResource.ts +3 -4
  47. package/src/models/RosterLiteResource.ts +3 -4
  48. package/src/models/RosterWithRegistersResource.ts +3 -4
  49. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +16 -45
  50. package/src/models/VenueLiteResource.ts +0 -9
  51. package/src/models/index.ts +0 -22
  52. package/dist/models/AuthChangePasswordRequest.d.ts +0 -38
  53. package/dist/models/AuthChangePasswordRequest.js +0 -55
  54. package/dist/models/AuthProfileUpdateRequest.d.ts +0 -56
  55. package/dist/models/AuthProfileUpdateRequest.js +0 -57
  56. package/dist/models/AuthRegisterGuardRequest.d.ts +0 -70
  57. package/dist/models/AuthRegisterGuardRequest.js +0 -77
  58. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -98
  59. package/dist/models/AuthRegisterGuardRequestLicence.js +0 -95
  60. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +0 -50
  61. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +0 -55
  62. package/dist/models/BackAsset.d.ts +0 -50
  63. package/dist/models/BackAsset.js +0 -55
  64. package/dist/models/DevicesRegisterRequest.d.ts +0 -76
  65. package/dist/models/DevicesRegisterRequest.js +0 -73
  66. package/dist/models/FirstAidAsset.d.ts +0 -50
  67. package/dist/models/FirstAidAsset.js +0 -55
  68. package/dist/models/FrontAsset.d.ts +0 -50
  69. package/dist/models/FrontAsset.js +0 -55
  70. package/dist/models/IncidentListResource.d.ts +0 -107
  71. package/dist/models/IncidentListResource.js +0 -81
  72. package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
  73. package/dist/models/IncidentListResourceArrayResponse.js +0 -50
  74. package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
  75. package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
  76. package/dist/models/IncidentsListRequest.d.ts +0 -157
  77. package/dist/models/IncidentsListRequest.js +0 -101
  78. package/dist/models/LicencesStoreRequestBackAsset.d.ts +0 -50
  79. package/dist/models/LicencesStoreRequestBackAsset.js +0 -55
  80. package/dist/models/MobileDeviceResource.d.ts +0 -92
  81. package/dist/models/MobileDeviceResource.js +0 -86
  82. package/dist/models/MobileDeviceResourceArrayResponse.d.ts +0 -33
  83. package/dist/models/MobileDeviceResourceArrayResponse.js +0 -50
  84. package/dist/models/MobileInitResource.d.ts +0 -47
  85. package/dist/models/MobileInitResource.js +0 -62
  86. package/dist/models/MobileInitResourceArrayResponse.d.ts +0 -33
  87. package/dist/models/MobileInitResourceArrayResponse.js +0 -50
  88. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
  89. package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
  90. package/dist/models/PdfExportQueuedResource.d.ts +0 -44
  91. package/dist/models/PdfExportQueuedResource.js +0 -59
  92. package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
  93. package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
  94. package/dist/models/RsaAsset.d.ts +0 -50
  95. package/dist/models/RsaAsset.js +0 -55
  96. package/src/models/AuthChangePasswordRequest.ts +0 -75
  97. package/src/models/AuthProfileUpdateRequest.ts +0 -97
  98. package/src/models/AuthRegisterGuardRequest.ts +0 -135
  99. package/src/models/AuthRegisterGuardRequestLicence.ts +0 -181
  100. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +0 -89
  101. package/src/models/BackAsset.ts +0 -89
  102. package/src/models/DevicesRegisterRequest.ts +0 -126
  103. package/src/models/FirstAidAsset.ts +0 -89
  104. package/src/models/FrontAsset.ts +0 -89
  105. package/src/models/IncidentListResource.ts +0 -185
  106. package/src/models/IncidentListResourceArrayResponse.ts +0 -73
  107. package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
  108. package/src/models/IncidentsListRequest.ts +0 -230
  109. package/src/models/LicencesStoreRequestBackAsset.ts +0 -89
  110. package/src/models/MobileDeviceResource.ts +0 -153
  111. package/src/models/MobileDeviceResourceArrayResponse.ts +0 -73
  112. package/src/models/MobileInitResource.ts +0 -106
  113. package/src/models/MobileInitResourceArrayResponse.ts +0 -73
  114. package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
  115. package/src/models/PdfExportQueuedResource.ts +0 -84
  116. package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
  117. package/src/models/RsaAsset.ts +0 -89
@@ -1,55 +0,0 @@
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.instanceOfFirstAidAsset = instanceOfFirstAidAsset;
17
- exports.FirstAidAssetFromJSON = FirstAidAssetFromJSON;
18
- exports.FirstAidAssetFromJSONTyped = FirstAidAssetFromJSONTyped;
19
- exports.FirstAidAssetToJSON = FirstAidAssetToJSON;
20
- exports.FirstAidAssetToJSONTyped = FirstAidAssetToJSONTyped;
21
- /**
22
- * Check if a given object implements the FirstAidAsset interface.
23
- */
24
- function instanceOfFirstAidAsset(value) {
25
- return true;
26
- }
27
- function FirstAidAssetFromJSON(json) {
28
- return FirstAidAssetFromJSONTyped(json, false);
29
- }
30
- function FirstAidAssetFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
- };
40
- }
41
- function FirstAidAssetToJSON(json) {
42
- return FirstAidAssetToJSONTyped(json, false);
43
- }
44
- function FirstAidAssetToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'file_id': value['fileId'],
51
- 'file_name': value['fileName'],
52
- 'mime_type': value['mimeType'],
53
- 'alt_text': value['altText'],
54
- };
55
- }
@@ -1,50 +0,0 @@
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 FrontAsset
16
- */
17
- export interface FrontAsset {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof FrontAsset
22
- */
23
- fileId?: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof FrontAsset
28
- */
29
- fileName?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof FrontAsset
34
- */
35
- mimeType?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof FrontAsset
40
- */
41
- altText?: string;
42
- }
43
- /**
44
- * Check if a given object implements the FrontAsset interface.
45
- */
46
- export declare function instanceOfFrontAsset(value: object): value is FrontAsset;
47
- export declare function FrontAssetFromJSON(json: any): FrontAsset;
48
- export declare function FrontAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontAsset;
49
- export declare function FrontAssetToJSON(json: any): FrontAsset;
50
- export declare function FrontAssetToJSONTyped(value?: FrontAsset | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
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.instanceOfFrontAsset = instanceOfFrontAsset;
17
- exports.FrontAssetFromJSON = FrontAssetFromJSON;
18
- exports.FrontAssetFromJSONTyped = FrontAssetFromJSONTyped;
19
- exports.FrontAssetToJSON = FrontAssetToJSON;
20
- exports.FrontAssetToJSONTyped = FrontAssetToJSONTyped;
21
- /**
22
- * Check if a given object implements the FrontAsset interface.
23
- */
24
- function instanceOfFrontAsset(value) {
25
- return true;
26
- }
27
- function FrontAssetFromJSON(json) {
28
- return FrontAssetFromJSONTyped(json, false);
29
- }
30
- function FrontAssetFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
- };
40
- }
41
- function FrontAssetToJSON(json) {
42
- return FrontAssetToJSONTyped(json, false);
43
- }
44
- function FrontAssetToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'file_id': value['fileId'],
51
- 'file_name': value['fileName'],
52
- 'mime_type': value['mimeType'],
53
- 'alt_text': value['altText'],
54
- };
55
- }
@@ -1,107 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { VenueLiteResource } from './VenueLiteResource';
13
- import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
14
- import type { UserLiteResource } from './UserLiteResource';
15
- /**
16
- *
17
- * @export
18
- * @interface IncidentListResource
19
- */
20
- export interface IncidentListResource {
21
- /**
22
- *
23
- * @type {number}
24
- * @memberof IncidentListResource
25
- */
26
- id: number;
27
- /**
28
- *
29
- * @type {VenueLiteResource}
30
- * @memberof IncidentListResource
31
- */
32
- venue?: VenueLiteResource;
33
- /**
34
- *
35
- * @type {SecurityCompanyLiteResource}
36
- * @memberof IncidentListResource
37
- */
38
- securityCompany?: SecurityCompanyLiteResource;
39
- /**
40
- *
41
- * @type {UserLiteResource}
42
- * @memberof IncidentListResource
43
- */
44
- user?: UserLiteResource;
45
- /**
46
- *
47
- * @type {UserLiteResource}
48
- * @memberof IncidentListResource
49
- */
50
- approvedByUser?: UserLiteResource;
51
- /**
52
- *
53
- * @type {string}
54
- * @memberof IncidentListResource
55
- */
56
- title?: string | null;
57
- /**
58
- *
59
- * @type {string}
60
- * @memberof IncidentListResource
61
- */
62
- dutyManager?: string | null;
63
- /**
64
- *
65
- * @type {Date}
66
- * @memberof IncidentListResource
67
- */
68
- incidentDateTime?: Date | null;
69
- /**
70
- *
71
- * @type {string}
72
- * @memberof IncidentListResource
73
- */
74
- state?: string | null;
75
- /**
76
- *
77
- * @type {boolean}
78
- * @memberof IncidentListResource
79
- */
80
- submittedByGuard: boolean;
81
- /**
82
- *
83
- * @type {Date}
84
- * @memberof IncidentListResource
85
- */
86
- approvedAt?: Date | null;
87
- /**
88
- *
89
- * @type {Date}
90
- * @memberof IncidentListResource
91
- */
92
- createdAt?: Date | null;
93
- /**
94
- *
95
- * @type {Date}
96
- * @memberof IncidentListResource
97
- */
98
- updatedAt?: Date | null;
99
- }
100
- /**
101
- * Check if a given object implements the IncidentListResource interface.
102
- */
103
- export declare function instanceOfIncidentListResource(value: object): value is IncidentListResource;
104
- export declare function IncidentListResourceFromJSON(json: any): IncidentListResource;
105
- export declare function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource;
106
- export declare function IncidentListResourceToJSON(json: any): IncidentListResource;
107
- export declare function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,81 +0,0 @@
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.instanceOfIncidentListResource = instanceOfIncidentListResource;
17
- exports.IncidentListResourceFromJSON = IncidentListResourceFromJSON;
18
- exports.IncidentListResourceFromJSONTyped = IncidentListResourceFromJSONTyped;
19
- exports.IncidentListResourceToJSON = IncidentListResourceToJSON;
20
- exports.IncidentListResourceToJSONTyped = IncidentListResourceToJSONTyped;
21
- var VenueLiteResource_1 = require("./VenueLiteResource");
22
- var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
23
- var UserLiteResource_1 = require("./UserLiteResource");
24
- /**
25
- * Check if a given object implements the IncidentListResource interface.
26
- */
27
- function instanceOfIncidentListResource(value) {
28
- if (!('id' in value) || value['id'] === undefined)
29
- return false;
30
- if (!('submittedByGuard' in value) || value['submittedByGuard'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function IncidentListResourceFromJSON(json) {
35
- return IncidentListResourceFromJSONTyped(json, false);
36
- }
37
- function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'id': json['id'],
43
- 'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
44
- 'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
45
- 'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
46
- 'approvedByUser': json['approvedByUser'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
47
- 'title': json['title'] == null ? undefined : json['title'],
48
- 'dutyManager': json['dutyManager'] == null ? undefined : json['dutyManager'],
49
- 'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
50
- 'state': json['state'] == null ? undefined : json['state'],
51
- 'submittedByGuard': json['submittedByGuard'],
52
- 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
53
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
54
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
55
- };
56
- }
57
- function IncidentListResourceToJSON(json) {
58
- return IncidentListResourceToJSONTyped(json, false);
59
- }
60
- function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
61
- var _a, _b, _c, _d;
62
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
- if (value == null) {
64
- return value;
65
- }
66
- return {
67
- 'id': value['id'],
68
- 'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
69
- 'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
70
- 'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
71
- 'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
72
- 'title': value['title'],
73
- 'dutyManager': value['dutyManager'],
74
- 'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
75
- 'state': value['state'],
76
- 'submittedByGuard': value['submittedByGuard'],
77
- 'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
78
- 'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
79
- 'updatedAt': value['updatedAt'] === null ? null : ((_d = value['updatedAt']) === null || _d === void 0 ? void 0 : _d.toISOString()),
80
- };
81
- }
@@ -1,33 +0,0 @@
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 { IncidentListResource } from './IncidentListResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentListResourceArrayResponse
17
- */
18
- export interface IncidentListResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<IncidentListResource>}
22
- * @memberof IncidentListResourceArrayResponse
23
- */
24
- data?: Array<IncidentListResource>;
25
- }
26
- /**
27
- * Check if a given object implements the IncidentListResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse;
30
- export declare function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse;
31
- export declare function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse;
32
- export declare function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse;
33
- export declare function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfIncidentListResourceArrayResponse = instanceOfIncidentListResourceArrayResponse;
17
- exports.IncidentListResourceArrayResponseFromJSON = IncidentListResourceArrayResponseFromJSON;
18
- exports.IncidentListResourceArrayResponseFromJSONTyped = IncidentListResourceArrayResponseFromJSONTyped;
19
- exports.IncidentListResourceArrayResponseToJSON = IncidentListResourceArrayResponseToJSON;
20
- exports.IncidentListResourceArrayResponseToJSONTyped = IncidentListResourceArrayResponseToJSONTyped;
21
- var IncidentListResource_1 = require("./IncidentListResource");
22
- /**
23
- * Check if a given object implements the IncidentListResourceArrayResponse interface.
24
- */
25
- function instanceOfIncidentListResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function IncidentListResourceArrayResponseFromJSON(json) {
29
- return IncidentListResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function IncidentListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
37
- };
38
- }
39
- function IncidentListResourceArrayResponseToJSON(json) {
40
- return IncidentListResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function IncidentListResourceArrayResponseToJSONTyped(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(IncidentListResource_1.IncidentListResourceToJSON)),
49
- };
50
- }
@@ -1,56 +0,0 @@
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 IncidentsExportPdfBulkRequest
16
- */
17
- export interface IncidentsExportPdfBulkRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof IncidentsExportPdfBulkRequest
22
- */
23
- venueId: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof IncidentsExportPdfBulkRequest
28
- */
29
- securityCompanyId?: number;
30
- /**
31
- *
32
- * @type {boolean}
33
- * @memberof IncidentsExportPdfBulkRequest
34
- */
35
- hasApprovedAt?: boolean;
36
- /**
37
- *
38
- * @type {Date}
39
- * @memberof IncidentsExportPdfBulkRequest
40
- */
41
- afterCreatedAt: Date;
42
- /**
43
- *
44
- * @type {Date}
45
- * @memberof IncidentsExportPdfBulkRequest
46
- */
47
- beforeCreatedAt: Date;
48
- }
49
- /**
50
- * Check if a given object implements the IncidentsExportPdfBulkRequest interface.
51
- */
52
- export declare function instanceOfIncidentsExportPdfBulkRequest(value: object): value is IncidentsExportPdfBulkRequest;
53
- export declare function IncidentsExportPdfBulkRequestFromJSON(json: any): IncidentsExportPdfBulkRequest;
54
- export declare function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfBulkRequest;
55
- export declare function IncidentsExportPdfBulkRequestToJSON(json: any): IncidentsExportPdfBulkRequest;
56
- export declare function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExportPdfBulkRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,63 +0,0 @@
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.instanceOfIncidentsExportPdfBulkRequest = instanceOfIncidentsExportPdfBulkRequest;
17
- exports.IncidentsExportPdfBulkRequestFromJSON = IncidentsExportPdfBulkRequestFromJSON;
18
- exports.IncidentsExportPdfBulkRequestFromJSONTyped = IncidentsExportPdfBulkRequestFromJSONTyped;
19
- exports.IncidentsExportPdfBulkRequestToJSON = IncidentsExportPdfBulkRequestToJSON;
20
- exports.IncidentsExportPdfBulkRequestToJSONTyped = IncidentsExportPdfBulkRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentsExportPdfBulkRequest interface.
23
- */
24
- function instanceOfIncidentsExportPdfBulkRequest(value) {
25
- if (!('venueId' in value) || value['venueId'] === undefined)
26
- return false;
27
- if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined)
28
- return false;
29
- if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function IncidentsExportPdfBulkRequestFromJSON(json) {
34
- return IncidentsExportPdfBulkRequestFromJSONTyped(json, false);
35
- }
36
- function IncidentsExportPdfBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'venueId': json['venue_id'],
42
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
43
- 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
44
- 'afterCreatedAt': (new Date(json['after_created_at'])),
45
- 'beforeCreatedAt': (new Date(json['before_created_at'])),
46
- };
47
- }
48
- function IncidentsExportPdfBulkRequestToJSON(json) {
49
- return IncidentsExportPdfBulkRequestToJSONTyped(json, false);
50
- }
51
- function IncidentsExportPdfBulkRequestToJSONTyped(value, ignoreDiscriminator) {
52
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'venue_id': value['venueId'],
58
- 'security_company_id': value['securityCompanyId'],
59
- 'has_approved_at': value['hasApprovedAt'],
60
- 'after_created_at': ((value['afterCreatedAt']).toISOString()),
61
- 'before_created_at': ((value['beforeCreatedAt']).toISOString()),
62
- };
63
- }