@vrplatform/api 1.3.1-stage.6498 → 1.3.1-stage.6505
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/build/main/generated/v1.d.ts +5 -1
- package/build/main/generated/v1.js.map +1 -1
- package/build/main/index.d.ts +1 -0
- package/build/main/index.js +1 -0
- package/build/main/index.js.map +1 -1
- package/build/main/vrt-mcp.d.ts +213 -0
- package/build/main/vrt-mcp.js +154 -0
- package/build/main/vrt-mcp.js.map +1 -0
- package/build/module/generated/v1.d.ts +5 -1
- package/build/module/generated/v1.js.map +1 -1
- package/build/module/index.d.ts +1 -0
- package/build/module/index.js +1 -0
- package/build/module/index.js.map +1 -1
- package/build/module/vrt-mcp.d.ts +213 -0
- package/build/module/vrt-mcp.js +151 -0
- package/build/module/vrt-mcp.js.map +1 -0
- package/package.json +1 -1
- package/src/generated/v1.ts +5 -1
- package/src/index.ts +1 -0
- package/src/vrt-mcp.ts +178 -0
package/build/module/index.d.ts
CHANGED
package/build/module/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\n\nexport type VRPlatformApi = ApiClient;\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\nexport * from './vrt-mcp';\n\nexport type VRPlatformApi = ApiClient;\n"]}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const vrtPaginatedLookupPayloadSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodArray<z.ZodUnknown>;
|
|
4
|
+
pagination: z.ZodObject<{
|
|
5
|
+
limit: z.ZodNumber;
|
|
6
|
+
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
page: z.ZodNumber;
|
|
8
|
+
total: z.ZodNumber;
|
|
9
|
+
totalPage: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const vrtPaginatedLookupOutputSchema: z.ZodObject<{
|
|
13
|
+
data: z.ZodArray<z.ZodUnknown>;
|
|
14
|
+
pagination: z.ZodObject<{
|
|
15
|
+
limit: z.ZodNumber;
|
|
16
|
+
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
page: z.ZodNumber;
|
|
18
|
+
total: z.ZodNumber;
|
|
19
|
+
totalPage: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const vrtListingsLookupSchema: z.ZodObject<{
|
|
24
|
+
activeOwnership: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
includeChildren: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
issue: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
all: "all";
|
|
28
|
+
any: "any";
|
|
29
|
+
missingOwnershipOrDeactivation: "missingOwnershipOrDeactivation";
|
|
30
|
+
missingFeesAndCommission: "missingFeesAndCommission";
|
|
31
|
+
missingOpeningBalance: "missingOpeningBalance";
|
|
32
|
+
}>>;
|
|
33
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
parent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"null">]>>;
|
|
36
|
+
search: z.ZodOptional<z.ZodString>;
|
|
37
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
active: "active";
|
|
39
|
+
inactive: "inactive";
|
|
40
|
+
}>>;
|
|
41
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const vrtReservationsLookupSchema: z.ZodObject<{
|
|
44
|
+
bookingChannel: z.ZodOptional<z.ZodString>;
|
|
45
|
+
date: z.ZodOptional<z.ZodString>;
|
|
46
|
+
dateField: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
bookedAt: "bookedAt";
|
|
48
|
+
checkIn: "checkIn";
|
|
49
|
+
checkOut: "checkOut";
|
|
50
|
+
payment: "payment";
|
|
51
|
+
intersection: "intersection";
|
|
52
|
+
}>>;
|
|
53
|
+
generalLedgerStatus: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
active: "active";
|
|
55
|
+
inactive: "inactive";
|
|
56
|
+
}>>;
|
|
57
|
+
ids: z.ZodOptional<z.ZodString>;
|
|
58
|
+
includeLines: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
60
|
+
listingId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
paidStatus: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
unpaid: "unpaid";
|
|
64
|
+
underpaid: "underpaid";
|
|
65
|
+
overpaid: "overpaid";
|
|
66
|
+
paid: "paid";
|
|
67
|
+
"!unpaid": "!unpaid";
|
|
68
|
+
"!underpaid": "!underpaid";
|
|
69
|
+
"!overpaid": "!overpaid";
|
|
70
|
+
"!paid": "!paid";
|
|
71
|
+
}>>;
|
|
72
|
+
search: z.ZodOptional<z.ZodString>;
|
|
73
|
+
shortRefs: z.ZodOptional<z.ZodString>;
|
|
74
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
inactive: "inactive";
|
|
76
|
+
canceled: "canceled";
|
|
77
|
+
booked: "booked";
|
|
78
|
+
}>>;
|
|
79
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const vrtTransactionsLookupSchema: z.ZodObject<{
|
|
82
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
84
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
dateRange: z.ZodOptional<z.ZodString>;
|
|
86
|
+
ids: z.ZodOptional<z.ZodString>;
|
|
87
|
+
includeLines: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
89
|
+
listingIds: z.ZodOptional<z.ZodString>;
|
|
90
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
91
|
+
paidAtRange: z.ZodOptional<z.ZodString>;
|
|
92
|
+
paidStatus: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
unpaid: "unpaid";
|
|
94
|
+
underpaid: "underpaid";
|
|
95
|
+
overpaid: "overpaid";
|
|
96
|
+
paid: "paid";
|
|
97
|
+
}>>;
|
|
98
|
+
reconciled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"candidate">]>>;
|
|
99
|
+
search: z.ZodOptional<z.ZodString>;
|
|
100
|
+
shortRefs: z.ZodOptional<z.ZodString>;
|
|
101
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
102
|
+
active: "active";
|
|
103
|
+
inactive: "inactive";
|
|
104
|
+
}>>;
|
|
105
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
deposit: "deposit";
|
|
108
|
+
expense: "expense";
|
|
109
|
+
transfer: "transfer";
|
|
110
|
+
payout: "payout";
|
|
111
|
+
}>>;
|
|
112
|
+
uniqueRefs: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const vrtAccountsLookupSchema: z.ZodObject<{
|
|
115
|
+
bankingCategory: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
trust: "trust";
|
|
117
|
+
operating: "operating";
|
|
118
|
+
external: "external";
|
|
119
|
+
}>>;
|
|
120
|
+
classification: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
asset: "asset";
|
|
122
|
+
liability: "liability";
|
|
123
|
+
revenue: "revenue";
|
|
124
|
+
expense: "expense";
|
|
125
|
+
}>>;
|
|
126
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
127
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
128
|
+
reconciled: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
search: z.ZodOptional<z.ZodString>;
|
|
130
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
active: "active";
|
|
132
|
+
inactive: "inactive";
|
|
133
|
+
}>>;
|
|
134
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
135
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
ledger: "ledger";
|
|
137
|
+
bank: "bank";
|
|
138
|
+
recurringFee: "recurringFee";
|
|
139
|
+
nonPosting: "nonPosting";
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export declare const vrtStatementsLookupSchema: z.ZodObject<{
|
|
143
|
+
dateRange: z.ZodOptional<z.ZodString>;
|
|
144
|
+
isDateRangeEndInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
146
|
+
listingIds: z.ZodOptional<z.ZodString>;
|
|
147
|
+
month: z.ZodOptional<z.ZodString>;
|
|
148
|
+
ownerIds: z.ZodOptional<z.ZodString>;
|
|
149
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
150
|
+
periodIds: z.ZodOptional<z.ZodString>;
|
|
151
|
+
recurringFeeIds: z.ZodOptional<z.ZodString>;
|
|
152
|
+
search: z.ZodOptional<z.ZodString>;
|
|
153
|
+
statementIds: z.ZodOptional<z.ZodString>;
|
|
154
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
all: "all";
|
|
156
|
+
draft: "draft";
|
|
157
|
+
inReview: "inReview";
|
|
158
|
+
published: "published";
|
|
159
|
+
}>>;
|
|
160
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
year: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export declare const vrtJournalEntriesLookupSchema: z.ZodObject<{
|
|
164
|
+
accountAssignmentTypes: z.ZodOptional<z.ZodString>;
|
|
165
|
+
accountIds: z.ZodOptional<z.ZodString>;
|
|
166
|
+
accountType: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
ledger: "ledger";
|
|
168
|
+
bank: "bank";
|
|
169
|
+
recurringFee: "recurringFee";
|
|
170
|
+
nonPosting: "nonPosting";
|
|
171
|
+
}>>;
|
|
172
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
173
|
+
classifications: z.ZodOptional<z.ZodString>;
|
|
174
|
+
date: z.ZodOptional<z.ZodString>;
|
|
175
|
+
endAt: z.ZodOptional<z.ZodString>;
|
|
176
|
+
entityTypes: z.ZodOptional<z.ZodString>;
|
|
177
|
+
excludeTriggerTypes: z.ZodOptional<z.ZodString>;
|
|
178
|
+
excludeTypes: z.ZodOptional<z.ZodString>;
|
|
179
|
+
ids: z.ZodOptional<z.ZodString>;
|
|
180
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
ledger: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
trust: "trust";
|
|
183
|
+
operating: "operating";
|
|
184
|
+
historical: "historical";
|
|
185
|
+
}>>;
|
|
186
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
187
|
+
listingIds: z.ZodOptional<z.ZodString>;
|
|
188
|
+
ownerStatementIds: z.ZodOptional<z.ZodString>;
|
|
189
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
190
|
+
party: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
owners: "owners";
|
|
192
|
+
manager: "manager";
|
|
193
|
+
}>>;
|
|
194
|
+
published: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
reservationIds: z.ZodOptional<z.ZodString>;
|
|
196
|
+
search: z.ZodOptional<z.ZodString>;
|
|
197
|
+
startAt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
active: "active";
|
|
200
|
+
inactive: "inactive";
|
|
201
|
+
}>>;
|
|
202
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
203
|
+
transactionIds: z.ZodOptional<z.ZodString>;
|
|
204
|
+
triggerTypes: z.ZodOptional<z.ZodString>;
|
|
205
|
+
types: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;
|
|
208
|
+
export type VrtReservationsLookupInput = z.infer<typeof vrtReservationsLookupSchema>;
|
|
209
|
+
export type VrtTransactionsLookupInput = z.infer<typeof vrtTransactionsLookupSchema>;
|
|
210
|
+
export type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;
|
|
211
|
+
export type VrtStatementsLookupInput = z.infer<typeof vrtStatementsLookupSchema>;
|
|
212
|
+
export type VrtJournalEntriesLookupInput = z.infer<typeof vrtJournalEntriesLookupSchema>;
|
|
213
|
+
export type VrtPaginatedLookupOutput = z.infer<typeof vrtPaginatedLookupOutputSchema>;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);
|
|
3
|
+
const vrtLookupPageSchema = z.number().int().min(1).default(1);
|
|
4
|
+
const vrtDateRangeSchema = z.string().trim().min(1).optional();
|
|
5
|
+
const vrtCsvSchema = z.string().trim().min(1).optional();
|
|
6
|
+
const vrtTeamIdSchema = z.string().uuid().optional();
|
|
7
|
+
export const vrtPaginatedLookupPayloadSchema = z.object({
|
|
8
|
+
data: z.array(z.unknown()),
|
|
9
|
+
pagination: z.object({
|
|
10
|
+
limit: z.number().int(),
|
|
11
|
+
nextPage: z.number().int().optional(),
|
|
12
|
+
page: z.number().int(),
|
|
13
|
+
total: z.number().int(),
|
|
14
|
+
totalPage: z.number().int(),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
export const vrtPaginatedLookupOutputSchema = vrtPaginatedLookupPayloadSchema.extend({
|
|
18
|
+
schemaVersion: z.literal(1),
|
|
19
|
+
});
|
|
20
|
+
export const vrtListingsLookupSchema = z.object({
|
|
21
|
+
activeOwnership: z.boolean().optional(),
|
|
22
|
+
includeChildren: z.boolean().optional(),
|
|
23
|
+
issue: z
|
|
24
|
+
.enum([
|
|
25
|
+
'all',
|
|
26
|
+
'any',
|
|
27
|
+
'missingOwnershipOrDeactivation',
|
|
28
|
+
'missingFeesAndCommission',
|
|
29
|
+
'missingOpeningBalance',
|
|
30
|
+
])
|
|
31
|
+
.optional(),
|
|
32
|
+
limit: vrtLookupLimitSchema,
|
|
33
|
+
page: vrtLookupPageSchema,
|
|
34
|
+
parent: z.union([z.string().uuid(), z.literal('null')]).optional(),
|
|
35
|
+
search: z.string().trim().min(1).optional(),
|
|
36
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
37
|
+
teamId: vrtTeamIdSchema,
|
|
38
|
+
});
|
|
39
|
+
export const vrtReservationsLookupSchema = z.object({
|
|
40
|
+
bookingChannel: z.string().trim().min(1).optional(),
|
|
41
|
+
date: vrtDateRangeSchema,
|
|
42
|
+
dateField: z
|
|
43
|
+
.enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])
|
|
44
|
+
.optional(),
|
|
45
|
+
generalLedgerStatus: z.enum(['active', 'inactive']).optional(),
|
|
46
|
+
ids: vrtCsvSchema,
|
|
47
|
+
includeLines: z.boolean().optional(),
|
|
48
|
+
limit: vrtLookupLimitSchema,
|
|
49
|
+
listingId: z.string().trim().min(1).optional(),
|
|
50
|
+
page: vrtLookupPageSchema,
|
|
51
|
+
paidStatus: z
|
|
52
|
+
.enum([
|
|
53
|
+
'unpaid',
|
|
54
|
+
'underpaid',
|
|
55
|
+
'overpaid',
|
|
56
|
+
'paid',
|
|
57
|
+
'!unpaid',
|
|
58
|
+
'!underpaid',
|
|
59
|
+
'!overpaid',
|
|
60
|
+
'!paid',
|
|
61
|
+
])
|
|
62
|
+
.optional(),
|
|
63
|
+
search: z.string().trim().min(1).optional(),
|
|
64
|
+
shortRefs: vrtCsvSchema,
|
|
65
|
+
status: z.enum(['booked', 'canceled', 'inactive']).optional(),
|
|
66
|
+
teamId: vrtTeamIdSchema,
|
|
67
|
+
});
|
|
68
|
+
export const vrtTransactionsLookupSchema = z.object({
|
|
69
|
+
accountId: z.string().trim().min(1).optional(),
|
|
70
|
+
amount: z.string().trim().min(1).optional(),
|
|
71
|
+
contactId: z.string().uuid().optional(),
|
|
72
|
+
dateRange: vrtDateRangeSchema,
|
|
73
|
+
ids: vrtCsvSchema,
|
|
74
|
+
includeLines: z.boolean().optional(),
|
|
75
|
+
limit: vrtLookupLimitSchema,
|
|
76
|
+
listingIds: vrtCsvSchema,
|
|
77
|
+
page: vrtLookupPageSchema,
|
|
78
|
+
paidAtRange: vrtDateRangeSchema,
|
|
79
|
+
paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),
|
|
80
|
+
reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),
|
|
81
|
+
search: z.string().trim().min(1).optional(),
|
|
82
|
+
shortRefs: vrtCsvSchema,
|
|
83
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
84
|
+
teamId: vrtTeamIdSchema,
|
|
85
|
+
type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),
|
|
86
|
+
uniqueRefs: vrtCsvSchema,
|
|
87
|
+
});
|
|
88
|
+
export const vrtAccountsLookupSchema = z.object({
|
|
89
|
+
bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),
|
|
90
|
+
classification: z
|
|
91
|
+
.enum(['asset', 'liability', 'revenue', 'expense'])
|
|
92
|
+
.optional(),
|
|
93
|
+
limit: vrtLookupLimitSchema,
|
|
94
|
+
page: vrtLookupPageSchema,
|
|
95
|
+
reconciled: z.boolean().optional(),
|
|
96
|
+
search: z.string().trim().min(1).optional(),
|
|
97
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
98
|
+
teamId: vrtTeamIdSchema,
|
|
99
|
+
type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),
|
|
100
|
+
});
|
|
101
|
+
export const vrtStatementsLookupSchema = z.object({
|
|
102
|
+
dateRange: vrtDateRangeSchema,
|
|
103
|
+
isDateRangeEndInclusive: z.boolean().optional(),
|
|
104
|
+
limit: vrtLookupLimitSchema,
|
|
105
|
+
listingIds: vrtCsvSchema,
|
|
106
|
+
month: z
|
|
107
|
+
.string()
|
|
108
|
+
.regex(/^\d{4}-\d{2}$/)
|
|
109
|
+
.optional(),
|
|
110
|
+
ownerIds: vrtCsvSchema,
|
|
111
|
+
page: vrtLookupPageSchema,
|
|
112
|
+
periodIds: vrtCsvSchema,
|
|
113
|
+
recurringFeeIds: vrtCsvSchema,
|
|
114
|
+
search: z.string().trim().min(1).optional(),
|
|
115
|
+
statementIds: vrtCsvSchema,
|
|
116
|
+
status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),
|
|
117
|
+
teamId: vrtTeamIdSchema,
|
|
118
|
+
year: z.number().int().min(1900).max(2100).optional(),
|
|
119
|
+
});
|
|
120
|
+
export const vrtJournalEntriesLookupSchema = z.object({
|
|
121
|
+
accountAssignmentTypes: vrtCsvSchema,
|
|
122
|
+
accountIds: vrtCsvSchema,
|
|
123
|
+
accountType: z
|
|
124
|
+
.enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])
|
|
125
|
+
.optional(),
|
|
126
|
+
amount: z.string().trim().min(1).optional(),
|
|
127
|
+
classifications: vrtCsvSchema,
|
|
128
|
+
date: vrtDateRangeSchema,
|
|
129
|
+
endAt: z.string().trim().min(1).optional(),
|
|
130
|
+
entityTypes: vrtCsvSchema,
|
|
131
|
+
excludeTriggerTypes: vrtCsvSchema,
|
|
132
|
+
excludeTypes: vrtCsvSchema,
|
|
133
|
+
ids: vrtCsvSchema,
|
|
134
|
+
includeDetails: z.boolean().optional(),
|
|
135
|
+
ledger: z.enum(['historical', 'trust', 'operating']).optional(),
|
|
136
|
+
limit: vrtLookupLimitSchema,
|
|
137
|
+
listingIds: vrtCsvSchema,
|
|
138
|
+
ownerStatementIds: vrtCsvSchema,
|
|
139
|
+
page: vrtLookupPageSchema,
|
|
140
|
+
party: z.enum(['owners', 'manager']).optional(),
|
|
141
|
+
published: z.boolean().optional(),
|
|
142
|
+
reservationIds: vrtCsvSchema,
|
|
143
|
+
search: z.string().trim().min(1).optional(),
|
|
144
|
+
startAt: z.string().trim().min(1).optional(),
|
|
145
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
146
|
+
teamId: vrtTeamIdSchema,
|
|
147
|
+
transactionIds: vrtCsvSchema,
|
|
148
|
+
triggerTypes: vrtCsvSchema,
|
|
149
|
+
types: vrtCsvSchema,
|
|
150
|
+
});
|
|
151
|
+
//# sourceMappingURL=vrt-mcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vrt-mcp.js","sourceRoot":"src/","sources":["vrt-mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,C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AAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,eAAe;IACvB,cAAc,EAAE,YAAY;IAC5B,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,YAAY;CACpB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nconst vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);\nconst vrtLookupPageSchema = z.number().int().min(1).default(1);\nconst vrtDateRangeSchema = z.string().trim().min(1).optional();\nconst vrtCsvSchema = z.string().trim().min(1).optional();\nconst vrtTeamIdSchema = z.string().uuid().optional();\n\nexport const vrtPaginatedLookupPayloadSchema = z.object({\n data: z.array(z.unknown()),\n pagination: z.object({\n limit: z.number().int(),\n nextPage: z.number().int().optional(),\n page: z.number().int(),\n total: z.number().int(),\n totalPage: z.number().int(),\n }),\n});\n\nexport const vrtPaginatedLookupOutputSchema =\n vrtPaginatedLookupPayloadSchema.extend({\n schemaVersion: z.literal(1),\n });\n\nexport const vrtListingsLookupSchema = z.object({\n activeOwnership: z.boolean().optional(),\n includeChildren: z.boolean().optional(),\n issue: z\n .enum([\n 'all',\n 'any',\n 'missingOwnershipOrDeactivation',\n 'missingFeesAndCommission',\n 'missingOpeningBalance',\n ])\n .optional(),\n limit: vrtLookupLimitSchema,\n page: vrtLookupPageSchema,\n parent: z.union([z.string().uuid(), z.literal('null')]).optional(),\n search: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n});\n\nexport const vrtReservationsLookupSchema = z.object({\n bookingChannel: z.string().trim().min(1).optional(),\n date: vrtDateRangeSchema,\n dateField: z\n .enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])\n .optional(),\n generalLedgerStatus: z.enum(['active', 'inactive']).optional(),\n ids: vrtCsvSchema,\n includeLines: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingId: z.string().trim().min(1).optional(),\n page: vrtLookupPageSchema,\n paidStatus: z\n .enum([\n 'unpaid',\n 'underpaid',\n 'overpaid',\n 'paid',\n '!unpaid',\n '!underpaid',\n '!overpaid',\n '!paid',\n ])\n .optional(),\n search: z.string().trim().min(1).optional(),\n shortRefs: vrtCsvSchema,\n status: z.enum(['booked', 'canceled', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n});\n\nexport const vrtTransactionsLookupSchema = z.object({\n accountId: z.string().trim().min(1).optional(),\n amount: z.string().trim().min(1).optional(),\n contactId: z.string().uuid().optional(),\n dateRange: vrtDateRangeSchema,\n ids: vrtCsvSchema,\n includeLines: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n paidAtRange: vrtDateRangeSchema,\n paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),\n reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),\n search: z.string().trim().min(1).optional(),\n shortRefs: vrtCsvSchema,\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),\n uniqueRefs: vrtCsvSchema,\n});\n\nexport const vrtAccountsLookupSchema = z.object({\n bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),\n classification: z\n .enum(['asset', 'liability', 'revenue', 'expense'])\n .optional(),\n limit: vrtLookupLimitSchema,\n page: vrtLookupPageSchema,\n reconciled: z.boolean().optional(),\n search: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),\n});\n\nexport const vrtStatementsLookupSchema = z.object({\n dateRange: vrtDateRangeSchema,\n isDateRangeEndInclusive: z.boolean().optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n month: z\n .string()\n .regex(/^\\d{4}-\\d{2}$/)\n .optional(),\n ownerIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n periodIds: vrtCsvSchema,\n recurringFeeIds: vrtCsvSchema,\n search: z.string().trim().min(1).optional(),\n statementIds: vrtCsvSchema,\n status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),\n teamId: vrtTeamIdSchema,\n year: z.number().int().min(1900).max(2100).optional(),\n});\n\nexport const vrtJournalEntriesLookupSchema = z.object({\n accountAssignmentTypes: vrtCsvSchema,\n accountIds: vrtCsvSchema,\n accountType: z\n .enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])\n .optional(),\n amount: z.string().trim().min(1).optional(),\n classifications: vrtCsvSchema,\n date: vrtDateRangeSchema,\n endAt: z.string().trim().min(1).optional(),\n entityTypes: vrtCsvSchema,\n excludeTriggerTypes: vrtCsvSchema,\n excludeTypes: vrtCsvSchema,\n ids: vrtCsvSchema,\n includeDetails: z.boolean().optional(),\n ledger: z.enum(['historical', 'trust', 'operating']).optional(),\n limit: vrtLookupLimitSchema,\n listingIds: vrtCsvSchema,\n ownerStatementIds: vrtCsvSchema,\n page: vrtLookupPageSchema,\n party: z.enum(['owners', 'manager']).optional(),\n published: z.boolean().optional(),\n reservationIds: vrtCsvSchema,\n search: z.string().trim().min(1).optional(),\n startAt: z.string().trim().min(1).optional(),\n status: z.enum(['active', 'inactive']).optional(),\n teamId: vrtTeamIdSchema,\n transactionIds: vrtCsvSchema,\n triggerTypes: vrtCsvSchema,\n types: vrtCsvSchema,\n});\n\nexport type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;\nexport type VrtReservationsLookupInput = z.infer<\n typeof vrtReservationsLookupSchema\n>;\nexport type VrtTransactionsLookupInput = z.infer<\n typeof vrtTransactionsLookupSchema\n>;\nexport type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;\nexport type VrtStatementsLookupInput = z.infer<\n typeof vrtStatementsLookupSchema\n>;\nexport type VrtJournalEntriesLookupInput = z.infer<\n typeof vrtJournalEntriesLookupSchema\n>;\nexport type VrtPaginatedLookupOutput = z.infer<\n typeof vrtPaginatedLookupOutputSchema\n>;\n"]}
|
package/package.json
CHANGED
package/src/generated/v1.ts
CHANGED
|
@@ -5601,7 +5601,7 @@ export interface paths {
|
|
|
5601
5601
|
get?: never;
|
|
5602
5602
|
put?: never;
|
|
5603
5603
|
/**
|
|
5604
|
-
* @description Regenerate reservation journal entries. Recomputes postings from the current reservation financials for the given ids (or the whole portfolio) and rewrites unlocked entries; lockPolicy controls how lock-flagged reservations are handled, while books-closed and owner-statement attachment locks always apply. If applying only unlocked changes would split an otherwise balanced journal group, the refresh returns a structured journalEntries lock and writes nothing. If active reservation lines have no account mapping, the response asks the caller to map or exclude them in Reservation Accounts and returns the affected line types in structured error context. bypassStatementPeriod is only supported for a single-reservation refresh. Generic dry run is unavailable because this operation needs a dedicated consequence preview for projected posting changes. See https://docs.vrplatform.app/guides/build/reservations.
|
|
5604
|
+
* @description Regenerate reservation journal entries. Recomputes postings from the current reservation financials for the given ids (or the whole portfolio) and rewrites unlocked entries; explicit ids complete inline and total counts refreshed reservations, while omitting ids queues portfolio work and total counts queued reservations. lockPolicy controls how lock-flagged reservations are handled, while books-closed and owner-statement attachment locks always apply. If applying only unlocked changes would split an otherwise balanced journal group, the refresh returns a structured journalEntries lock and writes nothing. If active reservation lines have no account mapping, the response asks the caller to map or exclude them in Reservation Accounts and returns the affected line types in structured error context. bypassStatementPeriod is only supported for a single-reservation refresh. Generic dry run is unavailable because this operation needs a dedicated consequence preview for projected posting changes. See https://docs.vrplatform.app/guides/build/reservations.
|
|
5605
5605
|
*
|
|
5606
5606
|
* Required scope: reservations:post-journals
|
|
5607
5607
|
*/
|
|
@@ -35271,6 +35271,7 @@ export interface operations {
|
|
|
35271
35271
|
};
|
|
35272
35272
|
}[];
|
|
35273
35273
|
transaction?: {
|
|
35274
|
+
/** @description Required for every transaction except transfers */
|
|
35274
35275
|
description?: string;
|
|
35275
35276
|
status?: ("active" | "inactive") | null;
|
|
35276
35277
|
/** @description Root bank account; the source account for transfers */
|
|
@@ -35485,6 +35486,7 @@ export interface operations {
|
|
|
35485
35486
|
};
|
|
35486
35487
|
}[];
|
|
35487
35488
|
transaction?: {
|
|
35489
|
+
/** @description Required for every transaction except transfers */
|
|
35488
35490
|
description?: string;
|
|
35489
35491
|
status?: ("active" | "inactive") | null;
|
|
35490
35492
|
/** @description Root bank account; the source account for transfers */
|
|
@@ -149230,6 +149232,7 @@ export interface operations {
|
|
|
149230
149232
|
requestBody?: {
|
|
149231
149233
|
content: {
|
|
149232
149234
|
"application/json": {
|
|
149235
|
+
/** @description Required for every transaction except transfers */
|
|
149233
149236
|
description?: string;
|
|
149234
149237
|
status?: ("active" | "inactive") | null;
|
|
149235
149238
|
/** @description Root bank account; the source account for transfers */
|
|
@@ -151165,6 +151168,7 @@ export interface operations {
|
|
|
151165
151168
|
connectionId: string;
|
|
151166
151169
|
createOnly?: boolean;
|
|
151167
151170
|
data: {
|
|
151171
|
+
/** @description Required for every transaction except transfers */
|
|
151168
151172
|
description?: string;
|
|
151169
151173
|
status?: ("active" | "inactive") | null;
|
|
151170
151174
|
/** @description Root bank account; the source account for transfers */
|
package/src/index.ts
CHANGED
package/src/vrt-mcp.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
const vrtLookupLimitSchema = z.number().int().min(1).max(25).default(10);
|
|
4
|
+
const vrtLookupPageSchema = z.number().int().min(1).default(1);
|
|
5
|
+
const vrtDateRangeSchema = z.string().trim().min(1).optional();
|
|
6
|
+
const vrtCsvSchema = z.string().trim().min(1).optional();
|
|
7
|
+
const vrtTeamIdSchema = z.string().uuid().optional();
|
|
8
|
+
|
|
9
|
+
export const vrtPaginatedLookupPayloadSchema = z.object({
|
|
10
|
+
data: z.array(z.unknown()),
|
|
11
|
+
pagination: z.object({
|
|
12
|
+
limit: z.number().int(),
|
|
13
|
+
nextPage: z.number().int().optional(),
|
|
14
|
+
page: z.number().int(),
|
|
15
|
+
total: z.number().int(),
|
|
16
|
+
totalPage: z.number().int(),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const vrtPaginatedLookupOutputSchema =
|
|
21
|
+
vrtPaginatedLookupPayloadSchema.extend({
|
|
22
|
+
schemaVersion: z.literal(1),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export const vrtListingsLookupSchema = z.object({
|
|
26
|
+
activeOwnership: z.boolean().optional(),
|
|
27
|
+
includeChildren: z.boolean().optional(),
|
|
28
|
+
issue: z
|
|
29
|
+
.enum([
|
|
30
|
+
'all',
|
|
31
|
+
'any',
|
|
32
|
+
'missingOwnershipOrDeactivation',
|
|
33
|
+
'missingFeesAndCommission',
|
|
34
|
+
'missingOpeningBalance',
|
|
35
|
+
])
|
|
36
|
+
.optional(),
|
|
37
|
+
limit: vrtLookupLimitSchema,
|
|
38
|
+
page: vrtLookupPageSchema,
|
|
39
|
+
parent: z.union([z.string().uuid(), z.literal('null')]).optional(),
|
|
40
|
+
search: z.string().trim().min(1).optional(),
|
|
41
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
42
|
+
teamId: vrtTeamIdSchema,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const vrtReservationsLookupSchema = z.object({
|
|
46
|
+
bookingChannel: z.string().trim().min(1).optional(),
|
|
47
|
+
date: vrtDateRangeSchema,
|
|
48
|
+
dateField: z
|
|
49
|
+
.enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])
|
|
50
|
+
.optional(),
|
|
51
|
+
generalLedgerStatus: z.enum(['active', 'inactive']).optional(),
|
|
52
|
+
ids: vrtCsvSchema,
|
|
53
|
+
includeLines: z.boolean().optional(),
|
|
54
|
+
limit: vrtLookupLimitSchema,
|
|
55
|
+
listingId: z.string().trim().min(1).optional(),
|
|
56
|
+
page: vrtLookupPageSchema,
|
|
57
|
+
paidStatus: z
|
|
58
|
+
.enum([
|
|
59
|
+
'unpaid',
|
|
60
|
+
'underpaid',
|
|
61
|
+
'overpaid',
|
|
62
|
+
'paid',
|
|
63
|
+
'!unpaid',
|
|
64
|
+
'!underpaid',
|
|
65
|
+
'!overpaid',
|
|
66
|
+
'!paid',
|
|
67
|
+
])
|
|
68
|
+
.optional(),
|
|
69
|
+
search: z.string().trim().min(1).optional(),
|
|
70
|
+
shortRefs: vrtCsvSchema,
|
|
71
|
+
status: z.enum(['booked', 'canceled', 'inactive']).optional(),
|
|
72
|
+
teamId: vrtTeamIdSchema,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const vrtTransactionsLookupSchema = z.object({
|
|
76
|
+
accountId: z.string().trim().min(1).optional(),
|
|
77
|
+
amount: z.string().trim().min(1).optional(),
|
|
78
|
+
contactId: z.string().uuid().optional(),
|
|
79
|
+
dateRange: vrtDateRangeSchema,
|
|
80
|
+
ids: vrtCsvSchema,
|
|
81
|
+
includeLines: z.boolean().optional(),
|
|
82
|
+
limit: vrtLookupLimitSchema,
|
|
83
|
+
listingIds: vrtCsvSchema,
|
|
84
|
+
page: vrtLookupPageSchema,
|
|
85
|
+
paidAtRange: vrtDateRangeSchema,
|
|
86
|
+
paidStatus: z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),
|
|
87
|
+
reconciled: z.union([z.boolean(), z.literal('candidate')]).optional(),
|
|
88
|
+
search: z.string().trim().min(1).optional(),
|
|
89
|
+
shortRefs: vrtCsvSchema,
|
|
90
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
91
|
+
teamId: vrtTeamIdSchema,
|
|
92
|
+
type: z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),
|
|
93
|
+
uniqueRefs: vrtCsvSchema,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const vrtAccountsLookupSchema = z.object({
|
|
97
|
+
bankingCategory: z.enum(['trust', 'operating', 'external']).optional(),
|
|
98
|
+
classification: z
|
|
99
|
+
.enum(['asset', 'liability', 'revenue', 'expense'])
|
|
100
|
+
.optional(),
|
|
101
|
+
limit: vrtLookupLimitSchema,
|
|
102
|
+
page: vrtLookupPageSchema,
|
|
103
|
+
reconciled: z.boolean().optional(),
|
|
104
|
+
search: z.string().trim().min(1).optional(),
|
|
105
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
106
|
+
teamId: vrtTeamIdSchema,
|
|
107
|
+
type: z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export const vrtStatementsLookupSchema = z.object({
|
|
111
|
+
dateRange: vrtDateRangeSchema,
|
|
112
|
+
isDateRangeEndInclusive: z.boolean().optional(),
|
|
113
|
+
limit: vrtLookupLimitSchema,
|
|
114
|
+
listingIds: vrtCsvSchema,
|
|
115
|
+
month: z
|
|
116
|
+
.string()
|
|
117
|
+
.regex(/^\d{4}-\d{2}$/)
|
|
118
|
+
.optional(),
|
|
119
|
+
ownerIds: vrtCsvSchema,
|
|
120
|
+
page: vrtLookupPageSchema,
|
|
121
|
+
periodIds: vrtCsvSchema,
|
|
122
|
+
recurringFeeIds: vrtCsvSchema,
|
|
123
|
+
search: z.string().trim().min(1).optional(),
|
|
124
|
+
statementIds: vrtCsvSchema,
|
|
125
|
+
status: z.enum(['draft', 'inReview', 'published', 'all']).optional(),
|
|
126
|
+
teamId: vrtTeamIdSchema,
|
|
127
|
+
year: z.number().int().min(1900).max(2100).optional(),
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export const vrtJournalEntriesLookupSchema = z.object({
|
|
131
|
+
accountAssignmentTypes: vrtCsvSchema,
|
|
132
|
+
accountIds: vrtCsvSchema,
|
|
133
|
+
accountType: z
|
|
134
|
+
.enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])
|
|
135
|
+
.optional(),
|
|
136
|
+
amount: z.string().trim().min(1).optional(),
|
|
137
|
+
classifications: vrtCsvSchema,
|
|
138
|
+
date: vrtDateRangeSchema,
|
|
139
|
+
endAt: z.string().trim().min(1).optional(),
|
|
140
|
+
entityTypes: vrtCsvSchema,
|
|
141
|
+
excludeTriggerTypes: vrtCsvSchema,
|
|
142
|
+
excludeTypes: vrtCsvSchema,
|
|
143
|
+
ids: vrtCsvSchema,
|
|
144
|
+
includeDetails: z.boolean().optional(),
|
|
145
|
+
ledger: z.enum(['historical', 'trust', 'operating']).optional(),
|
|
146
|
+
limit: vrtLookupLimitSchema,
|
|
147
|
+
listingIds: vrtCsvSchema,
|
|
148
|
+
ownerStatementIds: vrtCsvSchema,
|
|
149
|
+
page: vrtLookupPageSchema,
|
|
150
|
+
party: z.enum(['owners', 'manager']).optional(),
|
|
151
|
+
published: z.boolean().optional(),
|
|
152
|
+
reservationIds: vrtCsvSchema,
|
|
153
|
+
search: z.string().trim().min(1).optional(),
|
|
154
|
+
startAt: z.string().trim().min(1).optional(),
|
|
155
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
156
|
+
teamId: vrtTeamIdSchema,
|
|
157
|
+
transactionIds: vrtCsvSchema,
|
|
158
|
+
triggerTypes: vrtCsvSchema,
|
|
159
|
+
types: vrtCsvSchema,
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
export type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;
|
|
163
|
+
export type VrtReservationsLookupInput = z.infer<
|
|
164
|
+
typeof vrtReservationsLookupSchema
|
|
165
|
+
>;
|
|
166
|
+
export type VrtTransactionsLookupInput = z.infer<
|
|
167
|
+
typeof vrtTransactionsLookupSchema
|
|
168
|
+
>;
|
|
169
|
+
export type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;
|
|
170
|
+
export type VrtStatementsLookupInput = z.infer<
|
|
171
|
+
typeof vrtStatementsLookupSchema
|
|
172
|
+
>;
|
|
173
|
+
export type VrtJournalEntriesLookupInput = z.infer<
|
|
174
|
+
typeof vrtJournalEntriesLookupSchema
|
|
175
|
+
>;
|
|
176
|
+
export type VrtPaginatedLookupOutput = z.infer<
|
|
177
|
+
typeof vrtPaginatedLookupOutputSchema
|
|
178
|
+
>;
|