@eleva-io/erp-sdk 0.1.124 → 0.1.127

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 (113) hide show
  1. package/dist/cjs/modules/horizontal/communities/api/communities.d.ts +4 -0
  2. package/dist/cjs/modules/horizontal/communities/api/communities.d.ts.map +1 -1
  3. package/dist/cjs/modules/horizontal/communities/api/communities.js +14 -0
  4. package/dist/cjs/modules/horizontal/communities/api/communities.js.map +1 -1
  5. package/dist/cjs/modules/horizontal/communities/api/index.d.ts +1 -0
  6. package/dist/cjs/modules/horizontal/communities/api/index.d.ts.map +1 -1
  7. package/dist/cjs/modules/horizontal/communities/api/index.js +1 -0
  8. package/dist/cjs/modules/horizontal/communities/api/index.js.map +1 -1
  9. package/dist/cjs/modules/horizontal/communities/api/invoices.d.ts +11 -0
  10. package/dist/cjs/modules/horizontal/communities/api/invoices.d.ts.map +1 -0
  11. package/dist/cjs/modules/horizontal/communities/api/invoices.js +28 -0
  12. package/dist/cjs/modules/horizontal/communities/api/invoices.js.map +1 -0
  13. package/dist/cjs/modules/horizontal/communities/api/reports/community.d.ts +19 -0
  14. package/dist/cjs/modules/horizontal/communities/api/reports/community.d.ts.map +1 -0
  15. package/dist/cjs/modules/horizontal/communities/api/reports/community.js +37 -0
  16. package/dist/cjs/modules/horizontal/communities/api/reports/community.js.map +1 -0
  17. package/dist/cjs/modules/horizontal/communities/api/reports/meeting.d.ts +10 -0
  18. package/dist/cjs/modules/horizontal/communities/api/reports/meeting.d.ts.map +1 -0
  19. package/dist/cjs/modules/horizontal/communities/api/reports/meeting.js +16 -0
  20. package/dist/cjs/modules/horizontal/communities/api/reports/meeting.js.map +1 -0
  21. package/dist/cjs/modules/horizontal/communities/api/reports/property.d.ts +11 -0
  22. package/dist/cjs/modules/horizontal/communities/api/reports/property.d.ts.map +1 -0
  23. package/dist/cjs/modules/horizontal/communities/api/reports/property.js +19 -0
  24. package/dist/cjs/modules/horizontal/communities/api/reports/property.js.map +1 -0
  25. package/dist/cjs/modules/horizontal/communities/api/reports/resident.d.ts +11 -0
  26. package/dist/cjs/modules/horizontal/communities/api/reports/resident.d.ts.map +1 -0
  27. package/dist/cjs/modules/horizontal/communities/api/reports/resident.js +19 -0
  28. package/dist/cjs/modules/horizontal/communities/api/reports/resident.js.map +1 -0
  29. package/dist/cjs/modules/horizontal/communities/types/common.d.ts +3 -0
  30. package/dist/cjs/modules/horizontal/communities/types/common.d.ts.map +1 -0
  31. package/dist/cjs/modules/horizontal/communities/types/common.js +3 -0
  32. package/dist/cjs/modules/horizontal/communities/types/common.js.map +1 -0
  33. package/dist/cjs/modules/horizontal/communities/types/index.d.ts +2 -0
  34. package/dist/cjs/modules/horizontal/communities/types/index.d.ts.map +1 -1
  35. package/dist/cjs/modules/horizontal/communities/types/index.js +2 -0
  36. package/dist/cjs/modules/horizontal/communities/types/index.js.map +1 -1
  37. package/dist/cjs/modules/horizontal/communities/types/invoice.d.ts +47 -0
  38. package/dist/cjs/modules/horizontal/communities/types/invoice.d.ts.map +1 -0
  39. package/dist/cjs/modules/horizontal/communities/types/invoice.js +3 -0
  40. package/dist/cjs/modules/horizontal/communities/types/invoice.js.map +1 -0
  41. package/dist/cjs/modules/horizontal/communities/types/reports.d.ts +28 -0
  42. package/dist/cjs/modules/horizontal/communities/types/reports.d.ts.map +1 -0
  43. package/dist/cjs/modules/horizontal/communities/types/reports.js +3 -0
  44. package/dist/cjs/modules/horizontal/communities/types/reports.js.map +1 -0
  45. package/dist/cjs/modules/ticketing/tasks/types/resource.d.ts +4 -1
  46. package/dist/cjs/modules/ticketing/tasks/types/resource.d.ts.map +1 -1
  47. package/dist/cjs/modules/ticketing/tasks/types/resource.js +1 -0
  48. package/dist/cjs/modules/ticketing/tasks/types/resource.js.map +1 -1
  49. package/dist/esm/modules/horizontal/communities/api/communities.d.ts +4 -0
  50. package/dist/esm/modules/horizontal/communities/api/communities.d.ts.map +1 -1
  51. package/dist/esm/modules/horizontal/communities/api/communities.js +14 -0
  52. package/dist/esm/modules/horizontal/communities/api/communities.js.map +1 -1
  53. package/dist/esm/modules/horizontal/communities/api/index.d.ts +1 -0
  54. package/dist/esm/modules/horizontal/communities/api/index.d.ts.map +1 -1
  55. package/dist/esm/modules/horizontal/communities/api/index.js +1 -0
  56. package/dist/esm/modules/horizontal/communities/api/index.js.map +1 -1
  57. package/dist/esm/modules/horizontal/communities/api/invoices.d.ts +11 -0
  58. package/dist/esm/modules/horizontal/communities/api/invoices.d.ts.map +1 -0
  59. package/dist/esm/modules/horizontal/communities/api/invoices.js +24 -0
  60. package/dist/esm/modules/horizontal/communities/api/invoices.js.map +1 -0
  61. package/dist/esm/modules/horizontal/communities/api/reports/community.d.ts +19 -0
  62. package/dist/esm/modules/horizontal/communities/api/reports/community.d.ts.map +1 -0
  63. package/dist/esm/modules/horizontal/communities/api/reports/community.js +33 -0
  64. package/dist/esm/modules/horizontal/communities/api/reports/community.js.map +1 -0
  65. package/dist/esm/modules/horizontal/communities/api/reports/meeting.d.ts +10 -0
  66. package/dist/esm/modules/horizontal/communities/api/reports/meeting.d.ts.map +1 -0
  67. package/dist/esm/modules/horizontal/communities/api/reports/meeting.js +12 -0
  68. package/dist/esm/modules/horizontal/communities/api/reports/meeting.js.map +1 -0
  69. package/dist/esm/modules/horizontal/communities/api/reports/property.d.ts +11 -0
  70. package/dist/esm/modules/horizontal/communities/api/reports/property.d.ts.map +1 -0
  71. package/dist/esm/modules/horizontal/communities/api/reports/property.js +15 -0
  72. package/dist/esm/modules/horizontal/communities/api/reports/property.js.map +1 -0
  73. package/dist/esm/modules/horizontal/communities/api/reports/resident.d.ts +11 -0
  74. package/dist/esm/modules/horizontal/communities/api/reports/resident.d.ts.map +1 -0
  75. package/dist/esm/modules/horizontal/communities/api/reports/resident.js +15 -0
  76. package/dist/esm/modules/horizontal/communities/api/reports/resident.js.map +1 -0
  77. package/dist/esm/modules/horizontal/communities/types/common.d.ts +3 -0
  78. package/dist/esm/modules/horizontal/communities/types/common.d.ts.map +1 -0
  79. package/dist/esm/modules/horizontal/communities/types/common.js +2 -0
  80. package/dist/esm/modules/horizontal/communities/types/common.js.map +1 -0
  81. package/dist/esm/modules/horizontal/communities/types/index.d.ts +2 -0
  82. package/dist/esm/modules/horizontal/communities/types/index.d.ts.map +1 -1
  83. package/dist/esm/modules/horizontal/communities/types/index.js +2 -0
  84. package/dist/esm/modules/horizontal/communities/types/index.js.map +1 -1
  85. package/dist/esm/modules/horizontal/communities/types/invoice.d.ts +47 -0
  86. package/dist/esm/modules/horizontal/communities/types/invoice.d.ts.map +1 -0
  87. package/dist/esm/modules/horizontal/communities/types/invoice.js +2 -0
  88. package/dist/esm/modules/horizontal/communities/types/invoice.js.map +1 -0
  89. package/dist/esm/modules/horizontal/communities/types/reports.d.ts +28 -0
  90. package/dist/esm/modules/horizontal/communities/types/reports.d.ts.map +1 -0
  91. package/dist/esm/modules/horizontal/communities/types/reports.js +2 -0
  92. package/dist/esm/modules/horizontal/communities/types/reports.js.map +1 -0
  93. package/dist/esm/modules/ticketing/tasks/types/resource.d.ts +4 -1
  94. package/dist/esm/modules/ticketing/tasks/types/resource.d.ts.map +1 -1
  95. package/dist/esm/modules/ticketing/tasks/types/resource.js +1 -0
  96. package/dist/esm/modules/ticketing/tasks/types/resource.js.map +1 -1
  97. package/package.json +1 -1
  98. package/dist/cjs/modules/horizontal/communities/api/visits.d.ts +0 -47
  99. package/dist/cjs/modules/horizontal/communities/api/visits.d.ts.map +0 -1
  100. package/dist/cjs/modules/horizontal/communities/api/visits.js +0 -139
  101. package/dist/cjs/modules/horizontal/communities/api/visits.js.map +0 -1
  102. package/dist/cjs/modules/horizontal/communities/types/visit.d.ts +0 -300
  103. package/dist/cjs/modules/horizontal/communities/types/visit.d.ts.map +0 -1
  104. package/dist/cjs/modules/horizontal/communities/types/visit.js +0 -63
  105. package/dist/cjs/modules/horizontal/communities/types/visit.js.map +0 -1
  106. package/dist/esm/modules/horizontal/communities/api/visits.d.ts +0 -47
  107. package/dist/esm/modules/horizontal/communities/api/visits.d.ts.map +0 -1
  108. package/dist/esm/modules/horizontal/communities/api/visits.js +0 -129
  109. package/dist/esm/modules/horizontal/communities/api/visits.js.map +0 -1
  110. package/dist/esm/modules/horizontal/communities/types/visit.d.ts +0 -300
  111. package/dist/esm/modules/horizontal/communities/types/visit.d.ts.map +0 -1
  112. package/dist/esm/modules/horizontal/communities/types/visit.js +0 -60
  113. package/dist/esm/modules/horizontal/communities/types/visit.js.map +0 -1
@@ -1,129 +0,0 @@
1
- import { CRUD } from '../../../../utils/crud';
2
- export class VisitsAPI extends CRUD {
3
- _visitId;
4
- constructor(httpClient, baseUrl, _visitId) {
5
- super(httpClient, {
6
- basePath: baseUrl,
7
- id: _visitId,
8
- });
9
- this._visitId = _visitId;
10
- }
11
- visitors(visitorId) {
12
- const visitId = this._getIdParam();
13
- return new VisitorsAPI(this._httpClient, `${this._config.basePath}/${visitId}/visitors`, visitorId);
14
- }
15
- async downloadQRCode(visitorId) {
16
- const visitId = this._getIdParam();
17
- return this._httpClient.get(`${this._config.basePath}/${visitId}/visitors/${visitorId}/qr`);
18
- }
19
- }
20
- export class VisitorsAPI extends CRUD {
21
- _visitorId;
22
- constructor(httpClient, baseUrl, _visitorId) {
23
- super(httpClient, {
24
- basePath: baseUrl,
25
- id: _visitorId,
26
- });
27
- this._visitorId = _visitorId;
28
- }
29
- async revoke() {
30
- const visitorId = this._getIdParam();
31
- return this._httpClient.delete(`${this._config.basePath}/${visitorId}`);
32
- }
33
- async checkIn() {
34
- const visitorId = this._getIdParam();
35
- return this._httpClient.post(`${this._config.basePath}/${visitorId}/checkin`);
36
- }
37
- async checkOut() {
38
- const visitorId = this._getIdParam();
39
- return this._httpClient.post(`${this._config.basePath}/${visitorId}/checkout`);
40
- }
41
- accessLogs(accessLogId) {
42
- const visitorId = this._getIdParam();
43
- return new VisitAccessLogsAPI(this._httpClient, `${this._config.basePath}/${visitorId}/access-logs`, accessLogId);
44
- }
45
- }
46
- export class VisitAccessLogsAPI extends CRUD {
47
- _accessLogId;
48
- constructor(httpClient, baseUrl, _accessLogId) {
49
- super(httpClient, {
50
- basePath: baseUrl,
51
- id: _accessLogId,
52
- methods: {
53
- isCreateEnabled: false,
54
- isReadEnabled: true,
55
- isUpdateEnabled: false,
56
- isDeleteEnabled: false,
57
- isFindEnabled: true,
58
- },
59
- });
60
- this._accessLogId = _accessLogId;
61
- }
62
- documents(documentId) {
63
- const accessLogId = this._getIdParam();
64
- return new VisitAccessLogDocumentsAPI(this._httpClient, `${this._config.basePath}/${accessLogId}/documents`, documentId);
65
- }
66
- }
67
- export class VisitAccessLogDocumentsAPI extends CRUD {
68
- _documentId;
69
- constructor(httpClient, baseUrl, _documentId) {
70
- super(httpClient, {
71
- basePath: baseUrl,
72
- id: _documentId,
73
- methods: {
74
- isCreateEnabled: true,
75
- isReadEnabled: true,
76
- isUpdateEnabled: false,
77
- isDeleteEnabled: false,
78
- isFindEnabled: true,
79
- },
80
- });
81
- this._documentId = _documentId;
82
- }
83
- async download() {
84
- const documentId = this._getIdParam();
85
- return this._httpClient.get(`${this._config.basePath}/${documentId}/download`);
86
- }
87
- }
88
- export class PropertyFavouriteVisitorsAPI extends CRUD {
89
- _propertyFavouriteVisitorId;
90
- constructor(httpClient, baseUrl, _propertyFavouriteVisitorId) {
91
- super(httpClient, {
92
- basePath: baseUrl,
93
- id: _propertyFavouriteVisitorId,
94
- });
95
- this._propertyFavouriteVisitorId = _propertyFavouriteVisitorId;
96
- }
97
- }
98
- export class VisitValidationAPI {
99
- _httpClient;
100
- _baseUrl;
101
- constructor(_httpClient, _baseUrl) {
102
- this._httpClient = _httpClient;
103
- this._baseUrl = _baseUrl;
104
- }
105
- async validateQRCode(data) {
106
- return this._httpClient.post(`${this._baseUrl}/validate`, data);
107
- }
108
- }
109
- export class CommunitiesVisitsAPI {
110
- _httpClient;
111
- _baseUrl;
112
- constructor(_httpClient, _baseUrl) {
113
- this._httpClient = _httpClient;
114
- this._baseUrl = _baseUrl;
115
- }
116
- visits(visitId) {
117
- return new VisitsAPI(this._httpClient, `${this._baseUrl}/visits`, visitId);
118
- }
119
- propertyVisits(propertyId, visitId) {
120
- return new VisitsAPI(this._httpClient, `${this._baseUrl}/properties/${propertyId}/visits`, visitId);
121
- }
122
- validation() {
123
- return new VisitValidationAPI(this._httpClient, this._baseUrl);
124
- }
125
- visitorAccess(visitId, visitorId) {
126
- return new VisitorsAPI(this._httpClient, `${this._baseUrl}/visits/${visitId}/visitors`, visitorId);
127
- }
128
- }
129
- //# sourceMappingURL=visits.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visits.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/visits.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAkB7C,MAAM,OAAO,SAAU,SAAQ,IAK9B;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;AAED,MAAM,OAAO,WAAY,SAAQ,IAA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AS;IAMvD,CAAC;CACF;AAED,MAAM,OAAO,kBAAkB;IAEV;IACA;IAFnB,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAChC,CAAC;IAEJ,KAAK,CAAC,cAAc,CAAC,IAA2B;QAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAe,GAAG,IAAI,CAAC,QAAQ,WAAW,EAAE,IAAI,CAAC,CAAA;IAC/E,CAAC;CACF;AAED,MAAM,OAAO,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"}
@@ -1,300 +0,0 @@
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
@@ -1 +0,0 @@
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,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB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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"}
@@ -1,60 +0,0 @@
1
- // ========================================
2
- // ENUMS
3
- // ========================================
4
- export var VisitEntityType;
5
- (function (VisitEntityType) {
6
- VisitEntityType["macrocommunity"] = "macrocommunity";
7
- VisitEntityType["community"] = "community";
8
- })(VisitEntityType || (VisitEntityType = {}));
9
- export var VisitPeriodicityType;
10
- (function (VisitPeriodicityType) {
11
- VisitPeriodicityType["none"] = "none";
12
- VisitPeriodicityType["weekly"] = "weekly";
13
- })(VisitPeriodicityType || (VisitPeriodicityType = {}));
14
- export var VisitorStatus;
15
- (function (VisitorStatus) {
16
- VisitorStatus["active"] = "active";
17
- VisitorStatus["revoked"] = "revoked";
18
- })(VisitorStatus || (VisitorStatus = {}));
19
- export var VisitorAuthorizationStatus;
20
- (function (VisitorAuthorizationStatus) {
21
- VisitorAuthorizationStatus["ready"] = "ready";
22
- VisitorAuthorizationStatus["generating"] = "generating";
23
- VisitorAuthorizationStatus["error"] = "error";
24
- })(VisitorAuthorizationStatus || (VisitorAuthorizationStatus = {}));
25
- export var VisitorType;
26
- (function (VisitorType) {
27
- VisitorType["relative"] = "relative";
28
- VisitorType["friend"] = "friend";
29
- VisitorType["driver"] = "driver";
30
- VisitorType["cleaner"] = "cleaner";
31
- VisitorType["event"] = "event";
32
- VisitorType["supplier"] = "supplier";
33
- VisitorType["delivery"] = "delivery";
34
- VisitorType["other"] = "other";
35
- })(VisitorType || (VisitorType = {}));
36
- export var VisitStatus;
37
- (function (VisitStatus) {
38
- VisitStatus["active"] = "active";
39
- VisitStatus["canceled"] = "canceled";
40
- VisitStatus["expired"] = "expired";
41
- })(VisitStatus || (VisitStatus = {}));
42
- export var VisitAccessLogType;
43
- (function (VisitAccessLogType) {
44
- VisitAccessLogType["checkIn"] = "check_in";
45
- VisitAccessLogType["checkOut"] = "check_out";
46
- })(VisitAccessLogType || (VisitAccessLogType = {}));
47
- export var VisitDocumentType;
48
- (function (VisitDocumentType) {
49
- VisitDocumentType["person"] = "person";
50
- VisitDocumentType["vehicle"] = "vehicle";
51
- VisitDocumentType["document"] = "document";
52
- })(VisitDocumentType || (VisitDocumentType = {}));
53
- export var QRCodeStatus;
54
- (function (QRCodeStatus) {
55
- QRCodeStatus["out_of_range"] = "out_of_range";
56
- QRCodeStatus["expired"] = "expired";
57
- QRCodeStatus["revoked"] = "revoked";
58
- QRCodeStatus["valid"] = "valid";
59
- })(QRCodeStatus || (QRCodeStatus = {}));
60
- //# sourceMappingURL=visit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visit.js","sourceRoot":"","sources":["../../../../../../src/modules/horizont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