@eleva-io/erp-sdk 0.1.95 → 0.1.97

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 (153) hide show
  1. package/dist/cjs/modules/horizontal/communities/api/visits.d.ts +47 -0
  2. package/dist/cjs/modules/horizontal/communities/api/visits.d.ts.map +1 -0
  3. package/dist/cjs/modules/horizontal/communities/api/visits.js +139 -0
  4. package/dist/cjs/modules/horizontal/communities/api/visits.js.map +1 -0
  5. package/dist/cjs/modules/horizontal/communities/types/visit.d.ts +300 -0
  6. package/dist/cjs/modules/horizontal/communities/types/visit.d.ts.map +1 -0
  7. package/dist/cjs/modules/horizontal/communities/types/visit.js +63 -0
  8. package/dist/cjs/modules/horizontal/communities/types/visit.js.map +1 -0
  9. package/dist/cjs/modules/horizontal/meetings/api/action_points.d.ts +12 -0
  10. package/dist/cjs/modules/horizontal/meetings/api/action_points.d.ts.map +1 -0
  11. package/dist/cjs/modules/horizontal/meetings/api/action_points.js +33 -0
  12. package/dist/cjs/modules/horizontal/meetings/api/action_points.js.map +1 -0
  13. package/dist/cjs/modules/horizontal/meetings/api/agenda.d.ts +14 -0
  14. package/dist/cjs/modules/horizontal/meetings/api/agenda.d.ts.map +1 -0
  15. package/dist/cjs/modules/horizontal/meetings/api/agenda.js +37 -0
  16. package/dist/cjs/modules/horizontal/meetings/api/agenda.js.map +1 -0
  17. package/dist/cjs/modules/horizontal/meetings/api/debtors.d.ts +11 -0
  18. package/dist/cjs/modules/horizontal/meetings/api/debtors.d.ts.map +1 -0
  19. package/dist/cjs/modules/horizontal/meetings/api/debtors.js +28 -0
  20. package/dist/cjs/modules/horizontal/meetings/api/debtors.js.map +1 -0
  21. package/dist/cjs/modules/horizontal/meetings/api/documents.d.ts +12 -0
  22. package/dist/cjs/modules/horizontal/meetings/api/documents.d.ts.map +1 -0
  23. package/dist/cjs/modules/horizontal/meetings/api/documents.js +33 -0
  24. package/dist/cjs/modules/horizontal/meetings/api/documents.js.map +1 -0
  25. package/dist/cjs/modules/horizontal/meetings/api/index.d.ts +9 -0
  26. package/dist/cjs/modules/horizontal/meetings/api/index.d.ts.map +1 -0
  27. package/dist/cjs/modules/horizontal/meetings/api/index.js +25 -0
  28. package/dist/cjs/modules/horizontal/meetings/api/index.js.map +1 -0
  29. package/dist/cjs/modules/horizontal/meetings/api/meetings.d.ts +38 -0
  30. package/dist/cjs/modules/horizontal/meetings/api/meetings.d.ts.map +1 -0
  31. package/dist/cjs/modules/horizontal/meetings/api/meetings.js +155 -0
  32. package/dist/cjs/modules/horizontal/meetings/api/meetings.js.map +1 -0
  33. package/dist/cjs/modules/horizontal/meetings/api/notes.d.ts +11 -0
  34. package/dist/cjs/modules/horizontal/meetings/api/notes.d.ts.map +1 -0
  35. package/dist/cjs/modules/horizontal/meetings/api/notes.js +28 -0
  36. package/dist/cjs/modules/horizontal/meetings/api/notes.js.map +1 -0
  37. package/dist/cjs/modules/horizontal/meetings/api/participants.d.ts +9 -0
  38. package/dist/cjs/modules/horizontal/meetings/api/participants.d.ts.map +1 -0
  39. package/dist/cjs/modules/horizontal/meetings/api/participants.js +18 -0
  40. package/dist/cjs/modules/horizontal/meetings/api/participants.js.map +1 -0
  41. package/dist/cjs/modules/horizontal/meetings/api/polls.d.ts +12 -0
  42. package/dist/cjs/modules/horizontal/meetings/api/polls.d.ts.map +1 -0
  43. package/dist/cjs/modules/horizontal/meetings/api/polls.js +29 -0
  44. package/dist/cjs/modules/horizontal/meetings/api/polls.js.map +1 -0
  45. package/dist/cjs/modules/horizontal/meetings/index.d.ts +3 -0
  46. package/dist/cjs/modules/horizontal/meetings/index.d.ts.map +1 -0
  47. package/dist/cjs/modules/horizontal/meetings/index.js +19 -0
  48. package/dist/cjs/modules/horizontal/meetings/index.js.map +1 -0
  49. package/dist/cjs/modules/horizontal/meetings/types/index.d.ts +2 -0
  50. package/dist/cjs/modules/horizontal/meetings/types/index.d.ts.map +1 -0
  51. package/dist/cjs/modules/horizontal/meetings/types/index.js +18 -0
  52. package/dist/cjs/modules/horizontal/meetings/types/index.js.map +1 -0
  53. package/dist/cjs/modules/horizontal/meetings/types/meeting.d.ts +234 -0
  54. package/dist/cjs/modules/horizontal/meetings/types/meeting.d.ts.map +1 -0
  55. package/dist/cjs/modules/horizontal/meetings/types/meeting.js +60 -0
  56. package/dist/cjs/modules/horizontal/meetings/types/meeting.js.map +1 -0
  57. package/dist/cjs/modules/ticketing/tasks/api/resources.d.ts +2 -1
  58. package/dist/cjs/modules/ticketing/tasks/api/resources.d.ts.map +1 -1
  59. package/dist/cjs/modules/ticketing/tasks/api/resources.js +6 -0
  60. package/dist/cjs/modules/ticketing/tasks/api/resources.js.map +1 -1
  61. package/dist/cjs/modules/ticketing/tasks/api/tasks.d.ts +6 -1
  62. package/dist/cjs/modules/ticketing/tasks/api/tasks.d.ts.map +1 -1
  63. package/dist/cjs/modules/ticketing/tasks/api/tasks.js +20 -0
  64. package/dist/cjs/modules/ticketing/tasks/api/tasks.js.map +1 -1
  65. package/dist/cjs/modules/ticketing/tasks/types/activity_log.d.ts +7 -2
  66. package/dist/cjs/modules/ticketing/tasks/types/activity_log.d.ts.map +1 -1
  67. package/dist/cjs/modules/ticketing/tasks/types/activity_log.js +6 -1
  68. package/dist/cjs/modules/ticketing/tasks/types/activity_log.js.map +1 -1
  69. package/dist/cjs/modules/ticketing/tasks/types/resource.d.ts +5 -1
  70. package/dist/cjs/modules/ticketing/tasks/types/resource.d.ts.map +1 -1
  71. package/dist/cjs/modules/ticketing/tasks/types/resource.js +1 -0
  72. package/dist/cjs/modules/ticketing/tasks/types/resource.js.map +1 -1
  73. package/dist/cjs/modules/ticketing/tasks/types/task.d.ts +94 -2
  74. package/dist/cjs/modules/ticketing/tasks/types/task.d.ts.map +1 -1
  75. package/dist/cjs/modules/ticketing/tasks/types/task.js +10 -1
  76. package/dist/cjs/modules/ticketing/tasks/types/task.js.map +1 -1
  77. package/dist/esm/modules/horizontal/communities/api/visits.d.ts +47 -0
  78. package/dist/esm/modules/horizontal/communities/api/visits.d.ts.map +1 -0
  79. package/dist/esm/modules/horizontal/communities/api/visits.js +129 -0
  80. package/dist/esm/modules/horizontal/communities/api/visits.js.map +1 -0
  81. package/dist/esm/modules/horizontal/communities/types/visit.d.ts +300 -0
  82. package/dist/esm/modules/horizontal/communities/types/visit.d.ts.map +1 -0
  83. package/dist/esm/modules/horizontal/communities/types/visit.js +60 -0
  84. package/dist/esm/modules/horizontal/communities/types/visit.js.map +1 -0
  85. package/dist/esm/modules/horizontal/meetings/api/action_points.d.ts +12 -0
  86. package/dist/esm/modules/horizontal/meetings/api/action_points.d.ts.map +1 -0
  87. package/dist/esm/modules/horizontal/meetings/api/action_points.js +29 -0
  88. package/dist/esm/modules/horizontal/meetings/api/action_points.js.map +1 -0
  89. package/dist/esm/modules/horizontal/meetings/api/agenda.d.ts +14 -0
  90. package/dist/esm/modules/horizontal/meetings/api/agenda.d.ts.map +1 -0
  91. package/dist/esm/modules/horizontal/meetings/api/agenda.js +33 -0
  92. package/dist/esm/modules/horizontal/meetings/api/agenda.js.map +1 -0
  93. package/dist/esm/modules/horizontal/meetings/api/debtors.d.ts +11 -0
  94. package/dist/esm/modules/horizontal/meetings/api/debtors.d.ts.map +1 -0
  95. package/dist/esm/modules/horizontal/meetings/api/debtors.js +24 -0
  96. package/dist/esm/modules/horizontal/meetings/api/debtors.js.map +1 -0
  97. package/dist/esm/modules/horizontal/meetings/api/documents.d.ts +12 -0
  98. package/dist/esm/modules/horizontal/meetings/api/documents.d.ts.map +1 -0
  99. package/dist/esm/modules/horizontal/meetings/api/documents.js +29 -0
  100. package/dist/esm/modules/horizontal/meetings/api/documents.js.map +1 -0
  101. package/dist/esm/modules/horizontal/meetings/api/index.d.ts +9 -0
  102. package/dist/esm/modules/horizontal/meetings/api/index.d.ts.map +1 -0
  103. package/dist/esm/modules/horizontal/meetings/api/index.js +9 -0
  104. package/dist/esm/modules/horizontal/meetings/api/index.js.map +1 -0
  105. package/dist/esm/modules/horizontal/meetings/api/meetings.d.ts +38 -0
  106. package/dist/esm/modules/horizontal/meetings/api/meetings.d.ts.map +1 -0
  107. package/dist/esm/modules/horizontal/meetings/api/meetings.js +151 -0
  108. package/dist/esm/modules/horizontal/meetings/api/meetings.js.map +1 -0
  109. package/dist/esm/modules/horizontal/meetings/api/notes.d.ts +11 -0
  110. package/dist/esm/modules/horizontal/meetings/api/notes.d.ts.map +1 -0
  111. package/dist/esm/modules/horizontal/meetings/api/notes.js +24 -0
  112. package/dist/esm/modules/horizontal/meetings/api/notes.js.map +1 -0
  113. package/dist/esm/modules/horizontal/meetings/api/participants.d.ts +9 -0
  114. package/dist/esm/modules/horizontal/meetings/api/participants.d.ts.map +1 -0
  115. package/dist/esm/modules/horizontal/meetings/api/participants.js +14 -0
  116. package/dist/esm/modules/horizontal/meetings/api/participants.js.map +1 -0
  117. package/dist/esm/modules/horizontal/meetings/api/polls.d.ts +12 -0
  118. package/dist/esm/modules/horizontal/meetings/api/polls.d.ts.map +1 -0
  119. package/dist/esm/modules/horizontal/meetings/api/polls.js +25 -0
  120. package/dist/esm/modules/horizontal/meetings/api/polls.js.map +1 -0
  121. package/dist/esm/modules/horizontal/meetings/index.d.ts +3 -0
  122. package/dist/esm/modules/horizontal/meetings/index.d.ts.map +1 -0
  123. package/dist/esm/modules/horizontal/meetings/index.js +3 -0
  124. package/dist/esm/modules/horizontal/meetings/index.js.map +1 -0
  125. package/dist/esm/modules/horizontal/meetings/types/index.d.ts +2 -0
  126. package/dist/esm/modules/horizontal/meetings/types/index.d.ts.map +1 -0
  127. package/dist/esm/modules/horizontal/meetings/types/index.js +2 -0
  128. package/dist/esm/modules/horizontal/meetings/types/index.js.map +1 -0
  129. package/dist/esm/modules/horizontal/meetings/types/meeting.d.ts +234 -0
  130. package/dist/esm/modules/horizontal/meetings/types/meeting.d.ts.map +1 -0
  131. package/dist/esm/modules/horizontal/meetings/types/meeting.js +57 -0
  132. package/dist/esm/modules/horizontal/meetings/types/meeting.js.map +1 -0
  133. package/dist/esm/modules/ticketing/tasks/api/resources.d.ts +2 -1
  134. package/dist/esm/modules/ticketing/tasks/api/resources.d.ts.map +1 -1
  135. package/dist/esm/modules/ticketing/tasks/api/resources.js +6 -0
  136. package/dist/esm/modules/ticketing/tasks/api/resources.js.map +1 -1
  137. package/dist/esm/modules/ticketing/tasks/api/tasks.d.ts +6 -1
  138. package/dist/esm/modules/ticketing/tasks/api/tasks.d.ts.map +1 -1
  139. package/dist/esm/modules/ticketing/tasks/api/tasks.js +20 -0
  140. package/dist/esm/modules/ticketing/tasks/api/tasks.js.map +1 -1
  141. package/dist/esm/modules/ticketing/tasks/types/activity_log.d.ts +7 -2
  142. package/dist/esm/modules/ticketing/tasks/types/activity_log.d.ts.map +1 -1
  143. package/dist/esm/modules/ticketing/tasks/types/activity_log.js +6 -1
  144. package/dist/esm/modules/ticketing/tasks/types/activity_log.js.map +1 -1
  145. package/dist/esm/modules/ticketing/tasks/types/resource.d.ts +5 -1
  146. package/dist/esm/modules/ticketing/tasks/types/resource.d.ts.map +1 -1
  147. package/dist/esm/modules/ticketing/tasks/types/resource.js +1 -0
  148. package/dist/esm/modules/ticketing/tasks/types/resource.js.map +1 -1
  149. package/dist/esm/modules/ticketing/tasks/types/task.d.ts +94 -2
  150. package/dist/esm/modules/ticketing/tasks/types/task.d.ts.map +1 -1
  151. package/dist/esm/modules/ticketing/tasks/types/task.js +9 -0
  152. package/dist/esm/modules/ticketing/tasks/types/task.js.map +1 -1
  153. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { CRUD } from '../../../../utils/crud';
3
+ import { VisitExtendedEntity2, VisitorEntity, PropertyFavouriteVisitorExtendedEntity, VisitAccessLogEntity, VisitAccessLogDocumentEntity, CreateVisitRequest, UpdateVisitRequest, CreateVisitorRequest, UpdateVisitorEntity, CreatePropertyFavouriteVisitorRequest, UpdatePropertyFavouriteVisitorEntity, ValidateQRCodeRequest, QRCodeResult, UploadAccessLogDocumentRequest } from '../types/visit';
4
+ export declare class VisitsAPI extends CRUD<VisitExtendedEntity2, CreateVisitRequest, UpdateVisitRequest, VisitExtendedEntity2[]> {
5
+ private readonly _visitId?;
6
+ constructor(httpClient: HTTPClient, baseUrl: string, _visitId?: string | undefined);
7
+ visitors(visitorId?: string): VisitorsAPI;
8
+ downloadQRCode(visitorId: string): Promise<Blob>;
9
+ }
10
+ export declare class VisitorsAPI extends CRUD<VisitorEntity, CreateVisitorRequest, UpdateVisitorEntity, VisitorEntity[]> {
11
+ private readonly _visitorId?;
12
+ constructor(httpClient: HTTPClient, baseUrl: string, _visitorId?: string | undefined);
13
+ revoke(): Promise<VisitorEntity>;
14
+ checkIn(): Promise<VisitAccessLogEntity>;
15
+ checkOut(): Promise<VisitAccessLogEntity>;
16
+ accessLogs(accessLogId?: string): VisitAccessLogsAPI;
17
+ }
18
+ export declare class VisitAccessLogsAPI extends CRUD<VisitAccessLogEntity, never, never, VisitAccessLogEntity[]> {
19
+ private readonly _accessLogId?;
20
+ constructor(httpClient: HTTPClient, baseUrl: string, _accessLogId?: string | undefined);
21
+ documents(documentId?: string): VisitAccessLogDocumentsAPI;
22
+ }
23
+ export declare class VisitAccessLogDocumentsAPI extends CRUD<VisitAccessLogDocumentEntity, UploadAccessLogDocumentRequest, never, VisitAccessLogDocumentEntity[]> {
24
+ private readonly _documentId?;
25
+ constructor(httpClient: HTTPClient, baseUrl: string, _documentId?: string | undefined);
26
+ download(): Promise<Blob>;
27
+ }
28
+ export declare class PropertyFavouriteVisitorsAPI extends CRUD<PropertyFavouriteVisitorExtendedEntity, CreatePropertyFavouriteVisitorRequest, UpdatePropertyFavouriteVisitorEntity, PropertyFavouriteVisitorExtendedEntity[]> {
29
+ private readonly _propertyFavouriteVisitorId?;
30
+ constructor(httpClient: HTTPClient, baseUrl: string, _propertyFavouriteVisitorId?: string | undefined);
31
+ }
32
+ export declare class VisitValidationAPI {
33
+ private readonly _httpClient;
34
+ private readonly _baseUrl;
35
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
36
+ validateQRCode(data: ValidateQRCodeRequest): Promise<QRCodeResult>;
37
+ }
38
+ export declare class CommunitiesVisitsAPI {
39
+ private readonly _httpClient;
40
+ private readonly _baseUrl;
41
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
42
+ visits(visitId?: string): VisitsAPI;
43
+ propertyVisits(propertyId: string, visitId?: string): VisitsAPI;
44
+ validation(): VisitValidationAPI;
45
+ visitorAccess(visitId: string, visitorId: string): VisitorsAPI;
46
+ }
47
+ //# sourceMappingURL=visits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visits.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/visits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,sCAAsC,EACtC,oBAAoB,EACpB,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qCAAqC,EACrC,oCAAoC,EACpC,qBAAqB,EACrB,YAAY,EACZ,8BAA8B,EAC/B,MAAM,gBAAgB,CAAA;AAEvB,qBAAa,SAAU,SAAQ,IAAI,CACjC,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EAAE,CACvB;IAIG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAF1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,QAAQ,CAAC,EAAE,MAAM,YAAA;IAQpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW;IAKnC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAIvD;AAED,qBAAa,WAAY,SAAQ,IAAI,CAAC,aAAa,EAAE,oBAA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,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAG7B,cAAc,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC;CAGzE;AAED,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAGnC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAI/D,UAAU,IAAI,kBAAkB;IAIhC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,WAAW;CAG/D"}
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommunitiesVisitsAPI = exports.VisitValidationAPI = exports.PropertyFavouriteVisitorsAPI = exports.VisitAccessLogDocumentsAPI = exports.VisitAccessLogsAPI = exports.VisitorsAPI = exports.VisitsAPI = void 0;
4
+ const crud_1 = require("../../../../utils/crud");
5
+ class VisitsAPI extends crud_1.CRUD {
6
+ _visitId;
7
+ constructor(httpClient, baseUrl, _visitId) {
8
+ super(httpClient, {
9
+ basePath: baseUrl,
10
+ id: _visitId,
11
+ });
12
+ this._visitId = _visitId;
13
+ }
14
+ visitors(visitorId) {
15
+ const visitId = this._getIdParam();
16
+ return new VisitorsAPI(this._httpClient, `${this._config.basePath}/${visitId}/visitors`, visitorId);
17
+ }
18
+ async downloadQRCode(visitorId) {
19
+ const visitId = this._getIdParam();
20
+ return this._httpClient.get(`${this._config.basePath}/${visitId}/visitors/${visitorId}/qr`);
21
+ }
22
+ }
23
+ exports.VisitsAPI = VisitsAPI;
24
+ class VisitorsAPI extends crud_1.CRUD {
25
+ _visitorId;
26
+ constructor(httpClient, baseUrl, _visitorId) {
27
+ super(httpClient, {
28
+ basePath: baseUrl,
29
+ id: _visitorId,
30
+ });
31
+ this._visitorId = _visitorId;
32
+ }
33
+ async revoke() {
34
+ const visitorId = this._getIdParam();
35
+ return this._httpClient.delete(`${this._config.basePath}/${visitorId}`);
36
+ }
37
+ async checkIn() {
38
+ const visitorId = this._getIdParam();
39
+ return this._httpClient.post(`${this._config.basePath}/${visitorId}/checkin`);
40
+ }
41
+ async checkOut() {
42
+ const visitorId = this._getIdParam();
43
+ return this._httpClient.post(`${this._config.basePath}/${visitorId}/checkout`);
44
+ }
45
+ accessLogs(accessLogId) {
46
+ const visitorId = this._getIdParam();
47
+ return new VisitAccessLogsAPI(this._httpClient, `${this._config.basePath}/${visitorId}/access-logs`, accessLogId);
48
+ }
49
+ }
50
+ exports.VisitorsAPI = VisitorsAPI;
51
+ class VisitAccessLogsAPI extends crud_1.CRUD {
52
+ _accessLogId;
53
+ constructor(httpClient, baseUrl, _accessLogId) {
54
+ super(httpClient, {
55
+ basePath: baseUrl,
56
+ id: _accessLogId,
57
+ methods: {
58
+ isCreateEnabled: false,
59
+ isReadEnabled: true,
60
+ isUpdateEnabled: false,
61
+ isDeleteEnabled: false,
62
+ isFindEnabled: true,
63
+ },
64
+ });
65
+ this._accessLogId = _accessLogId;
66
+ }
67
+ documents(documentId) {
68
+ const accessLogId = this._getIdParam();
69
+ return new VisitAccessLogDocumentsAPI(this._httpClient, `${this._config.basePath}/${accessLogId}/documents`, documentId);
70
+ }
71
+ }
72
+ exports.VisitAccessLogsAPI = VisitAccessLogsAPI;
73
+ class VisitAccessLogDocumentsAPI extends crud_1.CRUD {
74
+ _documentId;
75
+ constructor(httpClient, baseUrl, _documentId) {
76
+ super(httpClient, {
77
+ basePath: baseUrl,
78
+ id: _documentId,
79
+ methods: {
80
+ isCreateEnabled: true,
81
+ isReadEnabled: true,
82
+ isUpdateEnabled: false,
83
+ isDeleteEnabled: false,
84
+ isFindEnabled: true,
85
+ },
86
+ });
87
+ this._documentId = _documentId;
88
+ }
89
+ async download() {
90
+ const documentId = this._getIdParam();
91
+ return this._httpClient.get(`${this._config.basePath}/${documentId}/download`);
92
+ }
93
+ }
94
+ exports.VisitAccessLogDocumentsAPI = VisitAccessLogDocumentsAPI;
95
+ class PropertyFavouriteVisitorsAPI extends crud_1.CRUD {
96
+ _propertyFavouriteVisitorId;
97
+ constructor(httpClient, baseUrl, _propertyFavouriteVisitorId) {
98
+ super(httpClient, {
99
+ basePath: baseUrl,
100
+ id: _propertyFavouriteVisitorId,
101
+ });
102
+ this._propertyFavouriteVisitorId = _propertyFavouriteVisitorId;
103
+ }
104
+ }
105
+ exports.PropertyFavouriteVisitorsAPI = PropertyFavouriteVisitorsAPI;
106
+ class VisitValidationAPI {
107
+ _httpClient;
108
+ _baseUrl;
109
+ constructor(_httpClient, _baseUrl) {
110
+ this._httpClient = _httpClient;
111
+ this._baseUrl = _baseUrl;
112
+ }
113
+ async validateQRCode(data) {
114
+ return this._httpClient.post(`${this._baseUrl}/validate`, data);
115
+ }
116
+ }
117
+ exports.VisitValidationAPI = VisitValidationAPI;
118
+ class CommunitiesVisitsAPI {
119
+ _httpClient;
120
+ _baseUrl;
121
+ constructor(_httpClient, _baseUrl) {
122
+ this._httpClient = _httpClient;
123
+ this._baseUrl = _baseUrl;
124
+ }
125
+ visits(visitId) {
126
+ return new VisitsAPI(this._httpClient, `${this._baseUrl}/visits`, visitId);
127
+ }
128
+ propertyVisits(propertyId, visitId) {
129
+ return new VisitsAPI(this._httpClient, `${this._baseUrl}/properties/${propertyId}/visits`, visitId);
130
+ }
131
+ validation() {
132
+ return new VisitValidationAPI(this._httpClient, this._baseUrl);
133
+ }
134
+ visitorAccess(visitId, visitorId) {
135
+ return new VisitorsAPI(this._httpClient, `${this._baseUrl}/visits/${visitId}/visitors`, visitorId);
136
+ }
137
+ }
138
+ exports.CommunitiesVisitsAPI = CommunitiesVisitsAPI;
139
+ //# sourceMappingURL=visits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visits.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/visits.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAkB7C,MAAa,SAAU,SAAQ,WAK9B;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,QAAiB;QAElC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,QAAQ;SACb,CAAC,CAAA;QALe,aAAQ,GAAR,QAAQ,CAAS;IAMpC,CAAC;IAED,QAAQ,CAAC,SAAkB;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QAClC,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,WAAW,EAAE,SAAS,CAAC,CAAA;IACrG,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,SAAiB;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,aAAa,SAAS,KAAK,CAAC,CAAA;IACnG,CAAC;CACF;AA1BD,8BA0BC;AAED,MAAa,WAAY,SAAQ,WAA+E;IAI3F;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,UAAmB;QAEpC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,UAAU;SACf,CAAC,CAAA;QALe,eAAU,GAAV,UAAU,CAAS;IAMtC,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QACpC,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAgB,GAAG,IAAI,CAAC,OAAO,CA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AAA;IAC/E,CAAC;CACF;AATD,gDASC;AAED,MAAa,oBAAoB;IAEZ;IACA;IAFnB,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAChC,CAAC;IAEJ,MAAM,CAAC,OAAgB;QACrB,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,EAAE,OAAO,CAAC,CAAA;IAC5E,CAAC;IAED,cAAc,CAAC,UAAkB,EAAE,OAAgB;QACjD,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,eAAe,UAAU,SAAS,EAAE,OAAO,CAAC,CAAA;IACrG,CAAC;IAED,UAAU;QACR,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAChE,CAAC;IAED,aAAa,CAAC,OAAe,EAAE,SAAiB;QAC9C,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,WAAW,OAAO,WAAW,EAAE,SAAS,CAAC,CAAA;IACpG,CAAC;CACF;AArBD,oDAqBC"}
@@ -0,0 +1,300 @@
1
+ import { CommunitySimpleBlock } from './block';
2
+ export declare enum VisitEntityType {
3
+ macrocommunity = "macrocommunity",
4
+ community = "community"
5
+ }
6
+ export declare enum VisitPeriodicityType {
7
+ none = "none",
8
+ weekly = "weekly"
9
+ }
10
+ export declare enum VisitorStatus {
11
+ active = "active",
12
+ revoked = "revoked"
13
+ }
14
+ export declare enum VisitorAuthorizationStatus {
15
+ ready = "ready",
16
+ generating = "generating",
17
+ error = "error"
18
+ }
19
+ export declare enum VisitorType {
20
+ relative = "relative",
21
+ friend = "friend",
22
+ driver = "driver",
23
+ cleaner = "cleaner",
24
+ event = "event",
25
+ supplier = "supplier",
26
+ delivery = "delivery",
27
+ other = "other"
28
+ }
29
+ export declare enum VisitStatus {
30
+ active = "active",
31
+ canceled = "canceled",
32
+ expired = "expired"
33
+ }
34
+ export declare enum VisitAccessLogType {
35
+ checkIn = "check_in",
36
+ checkOut = "check_out"
37
+ }
38
+ export declare enum VisitDocumentType {
39
+ person = "person",
40
+ vehicle = "vehicle",
41
+ document = "document"
42
+ }
43
+ export declare enum QRCodeStatus {
44
+ out_of_range = "out_of_range",
45
+ expired = "expired",
46
+ revoked = "revoked",
47
+ valid = "valid"
48
+ }
49
+ export interface WeeklyPeriodicityConfig {
50
+ endDate: string;
51
+ daysOfWeek: number[];
52
+ }
53
+ export type NonePeriodicityConfig = Record<string, never>;
54
+ export interface VisitEntity {
55
+ id: string;
56
+ domainId: string;
57
+ entityType: VisitEntityType;
58
+ entityId: string;
59
+ propertyId: string;
60
+ notes?: string | null;
61
+ startDate: string;
62
+ endDate: string;
63
+ periodicity: {
64
+ type: VisitPeriodicityType;
65
+ config: WeeklyPeriodicityConfig | NonePeriodicityConfig;
66
+ };
67
+ status: VisitStatus;
68
+ updatedAt: string;
69
+ }
70
+ export interface VisitExtendedEntity2 {
71
+ id: string;
72
+ domainId: string;
73
+ entityType: VisitEntityType;
74
+ entityId: string;
75
+ propertyId: string;
76
+ notes?: string | null;
77
+ startDate: string;
78
+ endDate: string;
79
+ periodicity: {
80
+ type: VisitPeriodicityType;
81
+ config: WeeklyPeriodicityConfig | NonePeriodicityConfig;
82
+ };
83
+ status: VisitStatus;
84
+ updatedAt: string;
85
+ visitors: VisitorEntity[];
86
+ property: {
87
+ id: string;
88
+ name: string;
89
+ block: CommunitySimpleBlock;
90
+ owners: {
91
+ id: string;
92
+ fullName: string;
93
+ emails: string[];
94
+ phones: string[];
95
+ legalId: string;
96
+ }[];
97
+ };
98
+ community?: {
99
+ id: string;
100
+ name: string;
101
+ };
102
+ macrocommunity?: {
103
+ id: string;
104
+ name: string;
105
+ };
106
+ }
107
+ export interface VisitorEntity {
108
+ id: string;
109
+ domainId: string;
110
+ visitId: string;
111
+ fullName: string;
112
+ legalId: string;
113
+ type: VisitorType;
114
+ status: VisitorStatus;
115
+ authorization: {
116
+ documentId?: string;
117
+ status: VisitorAuthorizationStatus;
118
+ };
119
+ vehicle?: {
120
+ plate: string;
121
+ model?: string | null;
122
+ color?: string | null;
123
+ };
124
+ updatedAt: string;
125
+ }
126
+ export interface PropertyFavouriteVisitorEntity {
127
+ id: string;
128
+ domainId: string;
129
+ propertyId: string;
130
+ fullName: string;
131
+ legalId: string;
132
+ type: VisitorType;
133
+ vehicle?: {
134
+ plate: string;
135
+ model?: string | null;
136
+ color?: string | null;
137
+ };
138
+ updatedAt: string;
139
+ }
140
+ export interface PropertyFavouriteVisitorExtendedEntity {
141
+ id: string;
142
+ domainId: string;
143
+ fullName: string;
144
+ legalId: string;
145
+ type: VisitorType;
146
+ vehicle?: {
147
+ plate: string;
148
+ model?: string | null;
149
+ color?: string | null;
150
+ };
151
+ updatedAt: string;
152
+ property: {
153
+ id: string;
154
+ name: string;
155
+ };
156
+ }
157
+ export interface VisitAccessLogEntity {
158
+ id: string;
159
+ domainId: string;
160
+ visitId: string;
161
+ visitorId: string;
162
+ eventType: VisitAccessLogType;
163
+ createdAt: string;
164
+ documentsCount: number;
165
+ }
166
+ export interface VisitAccessLogDocumentEntity {
167
+ domainId: string;
168
+ accessLogId: string;
169
+ documentId: string;
170
+ documentType: VisitDocumentType;
171
+ }
172
+ export interface CreateVisitRequest {
173
+ entityType: VisitEntityType;
174
+ entityId: string;
175
+ propertyId: string;
176
+ startDate: string;
177
+ endDate: string;
178
+ notes?: string | null;
179
+ periodicity: {
180
+ type: VisitPeriodicityType;
181
+ config: WeeklyPeriodicityConfig | NonePeriodicityConfig;
182
+ };
183
+ visitors: CreateVisitorRequest[];
184
+ }
185
+ export interface CreateVisitorRequest {
186
+ fullName: string;
187
+ legalId: string;
188
+ type: VisitorType;
189
+ status?: VisitorStatus;
190
+ vehicle?: {
191
+ plate: string;
192
+ model?: string | null;
193
+ color?: string | null;
194
+ };
195
+ favourite?: boolean;
196
+ }
197
+ export interface CreatePropertyFavouriteVisitorRequest {
198
+ propertyId: string;
199
+ fullName: string;
200
+ legalId: string;
201
+ type: VisitorType;
202
+ vehicle?: {
203
+ plate: string;
204
+ model?: string | null;
205
+ color?: string | null;
206
+ };
207
+ }
208
+ export interface UpdateVisitRequest {
209
+ notes?: string | null;
210
+ startDate?: string;
211
+ endDate?: string;
212
+ periodicity?: {
213
+ type: VisitPeriodicityType;
214
+ config: WeeklyPeriodicityConfig | NonePeriodicityConfig;
215
+ };
216
+ status?: VisitStatus.canceled;
217
+ }
218
+ export interface QueryVisitRequest {
219
+ id?: string[];
220
+ entityType?: VisitEntityType[];
221
+ entityId?: string[];
222
+ propertyId?: string[];
223
+ from?: string;
224
+ to?: string;
225
+ status?: VisitStatus[];
226
+ }
227
+ export interface QueryVisitExtendedRequest {
228
+ id?: string[];
229
+ entityType?: VisitEntityType[];
230
+ entityId?: string[];
231
+ propertyId?: string[];
232
+ from?: string;
233
+ to?: string;
234
+ status?: VisitStatus[];
235
+ q?: string;
236
+ blockId?: string[];
237
+ }
238
+ export interface QueryVisitorRequest {
239
+ id?: string[];
240
+ visitId?: string[];
241
+ status?: VisitorStatus[];
242
+ }
243
+ export interface QueryPropertyFavouriteVisitorRequest {
244
+ id?: string[];
245
+ propertyId?: string[];
246
+ }
247
+ export interface QueryVisitAccessLogRequest {
248
+ visitId: string;
249
+ visitorId: string;
250
+ eventType?: VisitAccessLogType;
251
+ }
252
+ export interface QueryVisitAccessLogDocumentRequest {
253
+ accessLogId: string;
254
+ documentId?: string;
255
+ }
256
+ export interface QueryVisitAccessLogDownloadDocumentRequest {
257
+ visitId: string;
258
+ documentId: string;
259
+ accessLogId: string;
260
+ }
261
+ export interface FilterVisitRequest {
262
+ id: string;
263
+ entityId: string;
264
+ entityType: VisitEntityType;
265
+ }
266
+ export interface FilterPropertyFavouriteVisitorRequest {
267
+ id: string;
268
+ propertyId: string;
269
+ }
270
+ export interface ValidateQRCodeRequest {
271
+ code: string;
272
+ }
273
+ export type QRCodeResult = InvalidQRCodeResult | ValidQRCodeResult;
274
+ export interface InvalidQRCodeResult {
275
+ status: QRCodeStatus.out_of_range | QRCodeStatus.expired | QRCodeStatus.revoked;
276
+ }
277
+ export interface ValidQRCodeResult {
278
+ status: QRCodeStatus.valid;
279
+ visit: VisitExtendedEntity2;
280
+ visitor: VisitorEntity;
281
+ accessLogs: VisitAccessLogEntity[];
282
+ }
283
+ export interface UploadAccessLogDocumentRequest {
284
+ visitId: string;
285
+ visitorId: string;
286
+ accessLogId: string;
287
+ documentType: VisitDocumentType;
288
+ name: string;
289
+ path: string;
290
+ }
291
+ export interface DeleteVisitorRequest {
292
+ visitorId: string[];
293
+ }
294
+ export type CreateVisitEntity = Omit<VisitEntity, 'id' | 'domainId' | 'updatedAt'>;
295
+ export type UpdateVisitEntity = Partial<Omit<VisitEntity, 'id' | 'domainId' | 'updatedAt'>>;
296
+ export type CreateVisitorEntity = Omit<VisitorEntity, 'id' | 'domainId' | 'visitId' | 'updatedAt'>;
297
+ export type UpdateVisitorEntity = Partial<Omit<VisitorEntity, 'id' | 'domainId' | 'visitId' | 'updatedAt'>>;
298
+ export type CreatePropertyFavouriteVisitorEntity = Omit<PropertyFavouriteVisitorEntity, 'id' | 'domainId' | 'updatedAt'>;
299
+ export type UpdatePropertyFavouriteVisitorEntity = Partial<Omit<PropertyFavouriteVisitorEntity, 'id' | 'domainId' | 'updatedAt'>>;
300
+ //# sourceMappingURL=visit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visit.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/types/visit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAM9C,oBAAY,eAAe;IACzB,cAAc,mBAAmB;IACjC,SAAS,cAAc;CACxB;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MA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MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,iBAAiB,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB;AAMD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,CAAA;AAClF,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC,CAAA;AAC3F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC,CAAA;AAClG,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAA;AAC3G,MAAM,MAAM,oCAAoC,GAAG,IAAI,CAAC,8BAA8B,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,CAAA;AACxH,MAAM,MAAM,oCAAoC,GAAG,OAAO,CACxD,IAAI,CAAC,8BAA8B,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,CACtE,CAAA"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QRCodeStatus = exports.VisitDocumentType = exports.VisitAccessLogType = exports.VisitStatus = exports.VisitorType = exports.VisitorAuthorizationStatus = exports.VisitorStatus = exports.VisitPeriodicityType = exports.VisitEntityType = void 0;
4
+ // ========================================
5
+ // ENUMS
6
+ // ========================================
7
+ var VisitEntityType;
8
+ (function (VisitEntityType) {
9
+ VisitEntityType["macrocommunity"] = "macrocommunity";
10
+ VisitEntityType["community"] = "community";
11
+ })(VisitEntityType || (exports.VisitEntityType = VisitEntityType = {}));
12
+ var VisitPeriodicityType;
13
+ (function (VisitPeriodicityType) {
14
+ VisitPeriodicityType["none"] = "none";
15
+ VisitPeriodicityType["weekly"] = "weekly";
16
+ })(VisitPeriodicityType || (exports.VisitPeriodicityType = VisitPeriodicityType = {}));
17
+ var VisitorStatus;
18
+ (function (VisitorStatus) {
19
+ VisitorStatus["active"] = "active";
20
+ VisitorStatus["revoked"] = "revoked";
21
+ })(VisitorStatus || (exports.VisitorStatus = VisitorStatus = {}));
22
+ var VisitorAuthorizationStatus;
23
+ (function (VisitorAuthorizationStatus) {
24
+ VisitorAuthorizationStatus["ready"] = "ready";
25
+ VisitorAuthorizationStatus["generating"] = "generating";
26
+ VisitorAuthorizationStatus["error"] = "error";
27
+ })(VisitorAuthorizationStatus || (exports.VisitorAuthorizationStatus = VisitorAuthorizationStatus = {}));
28
+ var VisitorType;
29
+ (function (VisitorType) {
30
+ VisitorType["relative"] = "relative";
31
+ VisitorType["friend"] = "friend";
32
+ VisitorType["driver"] = "driver";
33
+ VisitorType["cleaner"] = "cleaner";
34
+ VisitorType["event"] = "event";
35
+ VisitorType["supplier"] = "supplier";
36
+ VisitorType["delivery"] = "delivery";
37
+ VisitorType["other"] = "other";
38
+ })(VisitorType || (exports.VisitorType = VisitorType = {}));
39
+ var VisitStatus;
40
+ (function (VisitStatus) {
41
+ VisitStatus["active"] = "active";
42
+ VisitStatus["canceled"] = "canceled";
43
+ VisitStatus["expired"] = "expired";
44
+ })(VisitStatus || (exports.VisitStatus = VisitStatus = {}));
45
+ var VisitAccessLogType;
46
+ (function (VisitAccessLogType) {
47
+ VisitAccessLogType["checkIn"] = "check_in";
48
+ VisitAccessLogType["checkOut"] = "check_out";
49
+ })(VisitAccessLogType || (exports.VisitAccessLogType = VisitAccessLogType = {}));
50
+ var VisitDocumentType;
51
+ (function (VisitDocumentType) {
52
+ VisitDocumentType["person"] = "person";
53
+ VisitDocumentType["vehicle"] = "vehicle";
54
+ VisitDocumentType["document"] = "document";
55
+ })(VisitDocumentType || (exports.VisitDocumentType = VisitDocumentType = {}));
56
+ var QRCodeStatus;
57
+ (function (QRCodeStatus) {
58
+ QRCodeStatus["out_of_range"] = "out_of_range";
59
+ QRCodeStatus["expired"] = "expired";
60
+ QRCodeStatus["revoked"] = "revoked";
61
+ QRCodeStatus["valid"] = "valid";
62
+ })(QRCodeStatus || (exports.QRCodeStatus = QRCodeStatus = {}));
63
+ //# sourceMappingURL=visit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visit.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/types/visit.ts"],"names":[],"mappings":";;;AAEA,2CAA2C;AAC3C,QAAQ;AACR,2CAA2C;AAE3C,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oDAAiC,CAAA;IACjC,0CAAuB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACrB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,uDAAyB,CAAA;IACzB,6CAAe,CAAA;AACjB,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAED,IAAY,WASX;AATD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,8BAAe,CAAA;AACjB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,0CAAoB,CAAA;IACpB,4CAAsB,CAAA;AACxB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
@@ -0,0 +1,12 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { MeetingActionPoint, CreateMeetingActionPointDTO, UpdateMeetingActionPointDTO, UpdateMeetingActionPointPriorityDTO } from '../types';
3
+ export declare class MeetingActionPointsAPI {
4
+ private readonly _httpClient;
5
+ private readonly _basePath;
6
+ constructor(_httpClient: HTTPClient, _basePath: string);
7
+ create(data: CreateMeetingActionPointDTO): Promise<MeetingActionPoint>;
8
+ update(actionPointId: string, data: UpdateMeetingActionPointDTO): Promise<MeetingActionPoint>;
9
+ updatePriority(items: UpdateMeetingActionPointPriorityDTO[]): Promise<MeetingActionPoint[]>;
10
+ delete(actionPointId: string[]): Promise<void>;
11
+ }
12
+ //# sourceMappingURL=action_points.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action_points.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/meetings/api/action_points.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,mCAAmC,EACpC,MAAM,UAAU,CAAA;AAEjB,qBAAa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,WAAW,EAAE,UAAU,EACvB,SAAS,EAAE,MAAM;IAG9B,MAAM,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAMtE,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAM7F,cAAc,CAAC,KAAK,EAAE,mCAAmC,EAAE,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAM3F,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAKrD"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MeetingActionPointsAPI = void 0;
4
+ class MeetingActionPointsAPI {
5
+ _httpClient;
6
+ _basePath;
7
+ constructor(_httpClient, _basePath) {
8
+ this._httpClient = _httpClient;
9
+ this._basePath = _basePath;
10
+ }
11
+ async create(data) {
12
+ return this._httpClient.post(this._basePath, {
13
+ body: data,
14
+ });
15
+ }
16
+ async update(actionPointId, data) {
17
+ return this._httpClient.patch(`${this._basePath}/${actionPointId}`, {
18
+ body: data,
19
+ });
20
+ }
21
+ async updatePriority(items) {
22
+ return this._httpClient.patch(`${this._basePath}/repriorize`, {
23
+ body: items,
24
+ });
25
+ }
26
+ async delete(actionPointId) {
27
+ return this._httpClient.delete(this._basePath, {
28
+ query: { actionPointId },
29
+ });
30
+ }
31
+ }
32
+ exports.MeetingActionPointsAPI = MeetingActionPointsAPI;
33
+ //# sourceMappingURL=action_points.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action_points.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/meetings/api/action_points.ts"],"names":[],"mappings":";;;AAQA,MAAa,sBAAsB;IAEd;IACA;IAFnB,YACmB,WAAuB,EACvB,SAAiB;QADjB,gBAAW,GAAX,WAAW,CAAY;QACvB,cAAS,GAAT,SAAS,CAAQ;IACjC,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,IAAiC;QAC5C,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAqB,IAAI,CAAC,SAAS,EAAE;YAC/D,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,aAAqB,EAAE,IAAiC;QACnE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAqB,GAAG,IAAI,CAAC,SAAS,IAAI,aAAa,EAAE,EAAE;YACtF,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,KAA4C;QAC/D,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAuB,GAAG,IAAI,CAAC,SAAS,aAAa,EAAE;YAClF,IAAI,EAAE,KAAK;SACZ,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,aAAuB;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE;YAC7C,KAAK,EAAE,EAAE,aAAa,EAAE;SACzB,CAAC,CAAA;IACJ,CAAC;CACF;AA7BD,wDA6BC"}
@@ -0,0 +1,14 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { MeetingAgendaItem, CreateMeetingAgendaItemDTO, UpdateMeetingAgendaItemDTO, UpdateMeetingAgendaItemPriorityDTO } from '../types';
3
+ import { MeetingPollsAPI } from './polls';
4
+ export declare class MeetingAgendaAPI {
5
+ private readonly _httpClient;
6
+ private readonly _basePath;
7
+ constructor(_httpClient: HTTPClient, _basePath: string);
8
+ create(data: CreateMeetingAgendaItemDTO): Promise<MeetingAgendaItem>;
9
+ update(agendaId: string, data: UpdateMeetingAgendaItemDTO): Promise<MeetingAgendaItem>;
10
+ updatePriority(items: UpdateMeetingAgendaItemPriorityDTO[]): Promise<MeetingAgendaItem[]>;
11
+ delete(agendaItemId: string[]): Promise<void>;
12
+ polls(agendaId: string): MeetingPollsAPI;
13
+ }
14
+ //# sourceMappingURL=agenda.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agenda.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/meetings/api/agenda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,kCAAkC,EACnC,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,WAAW,EAAE,UAAU,EACvB,SAAS,EAAE,MAAM;IAG9B,MAAM,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMpE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMtF,cAAc,CAAC,KAAK,EAAE,kCAAkC,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAMzF,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAMnD,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe;CAGzC"}