@eleva-io/erp-sdk 0.1.53 → 0.1.55
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.
- package/dist/cjs/modules/contacts/persons/types/payment-method.d.ts +2 -2
- package/dist/cjs/modules/contacts/persons/types/payment-method.d.ts.map +1 -1
- package/dist/cjs/modules/global/index.d.ts +3 -2
- package/dist/cjs/modules/global/index.d.ts.map +1 -1
- package/dist/cjs/modules/global/index.js +3 -2
- package/dist/cjs/modules/global/index.js.map +1 -1
- package/dist/cjs/modules/global/types.d.ts +1 -1
- package/dist/cjs/modules/global/types.d.ts.map +1 -1
- package/dist/cjs/modules/global/validations/payment_method.d.ts +2 -2
- package/dist/cjs/modules/global/validations/payment_method.d.ts.map +1 -1
- package/dist/cjs/modules/global/validations/payment_method.js.map +1 -1
- package/dist/cjs/modules/global/validations/payment_method.spec.js.map +1 -1
- package/dist/cjs/modules/horizontal/communities/api/visits.d.ts +47 -0
- package/dist/cjs/modules/horizontal/communities/api/visits.d.ts.map +1 -0
- package/dist/cjs/modules/horizontal/communities/api/visits.js +139 -0
- package/dist/cjs/modules/horizontal/communities/api/visits.js.map +1 -0
- package/dist/cjs/modules/horizontal/communities/types/visit.d.ts +300 -0
- package/dist/cjs/modules/horizontal/communities/types/visit.d.ts.map +1 -0
- package/dist/cjs/modules/horizontal/communities/types/visit.js +63 -0
- package/dist/cjs/modules/horizontal/communities/types/visit.js.map +1 -0
- package/dist/esm/modules/contacts/persons/types/payment-method.d.ts +2 -2
- package/dist/esm/modules/contacts/persons/types/payment-method.d.ts.map +1 -1
- package/dist/esm/modules/global/index.d.ts +3 -2
- package/dist/esm/modules/global/index.d.ts.map +1 -1
- package/dist/esm/modules/global/index.js +3 -2
- package/dist/esm/modules/global/index.js.map +1 -1
- package/dist/esm/modules/global/types.d.ts +1 -1
- package/dist/esm/modules/global/types.d.ts.map +1 -1
- package/dist/esm/modules/global/validations/payment_method.d.ts +2 -2
- package/dist/esm/modules/global/validations/payment_method.d.ts.map +1 -1
- package/dist/esm/modules/global/validations/payment_method.js.map +1 -1
- package/dist/esm/modules/global/validations/payment_method.spec.js.map +1 -1
- package/dist/esm/modules/horizontal/communities/api/visits.d.ts +47 -0
- package/dist/esm/modules/horizontal/communities/api/visits.d.ts.map +1 -0
- package/dist/esm/modules/horizontal/communities/api/visits.js +129 -0
- package/dist/esm/modules/horizontal/communities/api/visits.js.map +1 -0
- package/dist/esm/modules/horizontal/communities/types/visit.d.ts +300 -0
- package/dist/esm/modules/horizontal/communities/types/visit.d.ts.map +1 -0
- package/dist/esm/modules/horizontal/communities/types/visit.js +60 -0
- package/dist/esm/modules/horizontal/communities/types/visit.js.map +1 -0
- package/package.json +1 -1
|
@@ -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,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,OAAO,aAAa;IACpB,QAAQ,cAAc;CACvB;AAED,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,oBAAY,YAAY;IACtB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,OAA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,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,60 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visit.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/types/visit.ts"],"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