@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/main/index.d.ts
CHANGED
package/build/main/index.js
CHANGED
package/build/main/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,2CAAyB;AACzB,oDAAkC;AAClC,0CAAwB;AAExB,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB","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,2CAAyB;AACzB,oDAAkC;AAClC,0CAAwB;AAExB,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB;AACxB,4CAA0B","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,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vrtJournalEntriesLookupSchema = exports.vrtStatementsLookupSchema = exports.vrtAccountsLookupSchema = exports.vrtTransactionsLookupSchema = exports.vrtReservationsLookupSchema = exports.vrtListingsLookupSchema = exports.vrtPaginatedLookupOutputSchema = exports.vrtPaginatedLookupPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const vrtLookupLimitSchema = zod_1.z.number().int().min(1).max(25).default(10);
|
|
6
|
+
const vrtLookupPageSchema = zod_1.z.number().int().min(1).default(1);
|
|
7
|
+
const vrtDateRangeSchema = zod_1.z.string().trim().min(1).optional();
|
|
8
|
+
const vrtCsvSchema = zod_1.z.string().trim().min(1).optional();
|
|
9
|
+
const vrtTeamIdSchema = zod_1.z.string().uuid().optional();
|
|
10
|
+
exports.vrtPaginatedLookupPayloadSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.array(zod_1.z.unknown()),
|
|
12
|
+
pagination: zod_1.z.object({
|
|
13
|
+
limit: zod_1.z.number().int(),
|
|
14
|
+
nextPage: zod_1.z.number().int().optional(),
|
|
15
|
+
page: zod_1.z.number().int(),
|
|
16
|
+
total: zod_1.z.number().int(),
|
|
17
|
+
totalPage: zod_1.z.number().int(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
exports.vrtPaginatedLookupOutputSchema = exports.vrtPaginatedLookupPayloadSchema.extend({
|
|
21
|
+
schemaVersion: zod_1.z.literal(1),
|
|
22
|
+
});
|
|
23
|
+
exports.vrtListingsLookupSchema = zod_1.z.object({
|
|
24
|
+
activeOwnership: zod_1.z.boolean().optional(),
|
|
25
|
+
includeChildren: zod_1.z.boolean().optional(),
|
|
26
|
+
issue: zod_1.z
|
|
27
|
+
.enum([
|
|
28
|
+
'all',
|
|
29
|
+
'any',
|
|
30
|
+
'missingOwnershipOrDeactivation',
|
|
31
|
+
'missingFeesAndCommission',
|
|
32
|
+
'missingOpeningBalance',
|
|
33
|
+
])
|
|
34
|
+
.optional(),
|
|
35
|
+
limit: vrtLookupLimitSchema,
|
|
36
|
+
page: vrtLookupPageSchema,
|
|
37
|
+
parent: zod_1.z.union([zod_1.z.string().uuid(), zod_1.z.literal('null')]).optional(),
|
|
38
|
+
search: zod_1.z.string().trim().min(1).optional(),
|
|
39
|
+
status: zod_1.z.enum(['active', 'inactive']).optional(),
|
|
40
|
+
teamId: vrtTeamIdSchema,
|
|
41
|
+
});
|
|
42
|
+
exports.vrtReservationsLookupSchema = zod_1.z.object({
|
|
43
|
+
bookingChannel: zod_1.z.string().trim().min(1).optional(),
|
|
44
|
+
date: vrtDateRangeSchema,
|
|
45
|
+
dateField: zod_1.z
|
|
46
|
+
.enum(['bookedAt', 'checkIn', 'checkOut', 'payment', 'intersection'])
|
|
47
|
+
.optional(),
|
|
48
|
+
generalLedgerStatus: zod_1.z.enum(['active', 'inactive']).optional(),
|
|
49
|
+
ids: vrtCsvSchema,
|
|
50
|
+
includeLines: zod_1.z.boolean().optional(),
|
|
51
|
+
limit: vrtLookupLimitSchema,
|
|
52
|
+
listingId: zod_1.z.string().trim().min(1).optional(),
|
|
53
|
+
page: vrtLookupPageSchema,
|
|
54
|
+
paidStatus: zod_1.z
|
|
55
|
+
.enum([
|
|
56
|
+
'unpaid',
|
|
57
|
+
'underpaid',
|
|
58
|
+
'overpaid',
|
|
59
|
+
'paid',
|
|
60
|
+
'!unpaid',
|
|
61
|
+
'!underpaid',
|
|
62
|
+
'!overpaid',
|
|
63
|
+
'!paid',
|
|
64
|
+
])
|
|
65
|
+
.optional(),
|
|
66
|
+
search: zod_1.z.string().trim().min(1).optional(),
|
|
67
|
+
shortRefs: vrtCsvSchema,
|
|
68
|
+
status: zod_1.z.enum(['booked', 'canceled', 'inactive']).optional(),
|
|
69
|
+
teamId: vrtTeamIdSchema,
|
|
70
|
+
});
|
|
71
|
+
exports.vrtTransactionsLookupSchema = zod_1.z.object({
|
|
72
|
+
accountId: zod_1.z.string().trim().min(1).optional(),
|
|
73
|
+
amount: zod_1.z.string().trim().min(1).optional(),
|
|
74
|
+
contactId: zod_1.z.string().uuid().optional(),
|
|
75
|
+
dateRange: vrtDateRangeSchema,
|
|
76
|
+
ids: vrtCsvSchema,
|
|
77
|
+
includeLines: zod_1.z.boolean().optional(),
|
|
78
|
+
limit: vrtLookupLimitSchema,
|
|
79
|
+
listingIds: vrtCsvSchema,
|
|
80
|
+
page: vrtLookupPageSchema,
|
|
81
|
+
paidAtRange: vrtDateRangeSchema,
|
|
82
|
+
paidStatus: zod_1.z.enum(['unpaid', 'underpaid', 'overpaid', 'paid']).optional(),
|
|
83
|
+
reconciled: zod_1.z.union([zod_1.z.boolean(), zod_1.z.literal('candidate')]).optional(),
|
|
84
|
+
search: zod_1.z.string().trim().min(1).optional(),
|
|
85
|
+
shortRefs: vrtCsvSchema,
|
|
86
|
+
status: zod_1.z.enum(['active', 'inactive']).optional(),
|
|
87
|
+
teamId: vrtTeamIdSchema,
|
|
88
|
+
type: zod_1.z.enum(['deposit', 'expense', 'transfer', 'payout']).optional(),
|
|
89
|
+
uniqueRefs: vrtCsvSchema,
|
|
90
|
+
});
|
|
91
|
+
exports.vrtAccountsLookupSchema = zod_1.z.object({
|
|
92
|
+
bankingCategory: zod_1.z.enum(['trust', 'operating', 'external']).optional(),
|
|
93
|
+
classification: zod_1.z
|
|
94
|
+
.enum(['asset', 'liability', 'revenue', 'expense'])
|
|
95
|
+
.optional(),
|
|
96
|
+
limit: vrtLookupLimitSchema,
|
|
97
|
+
page: vrtLookupPageSchema,
|
|
98
|
+
reconciled: zod_1.z.boolean().optional(),
|
|
99
|
+
search: zod_1.z.string().trim().min(1).optional(),
|
|
100
|
+
status: zod_1.z.enum(['active', 'inactive']).optional(),
|
|
101
|
+
teamId: vrtTeamIdSchema,
|
|
102
|
+
type: zod_1.z.enum(['ledger', 'bank', 'recurringFee', 'nonPosting']).optional(),
|
|
103
|
+
});
|
|
104
|
+
exports.vrtStatementsLookupSchema = zod_1.z.object({
|
|
105
|
+
dateRange: vrtDateRangeSchema,
|
|
106
|
+
isDateRangeEndInclusive: zod_1.z.boolean().optional(),
|
|
107
|
+
limit: vrtLookupLimitSchema,
|
|
108
|
+
listingIds: vrtCsvSchema,
|
|
109
|
+
month: zod_1.z
|
|
110
|
+
.string()
|
|
111
|
+
.regex(/^\d{4}-\d{2}$/)
|
|
112
|
+
.optional(),
|
|
113
|
+
ownerIds: vrtCsvSchema,
|
|
114
|
+
page: vrtLookupPageSchema,
|
|
115
|
+
periodIds: vrtCsvSchema,
|
|
116
|
+
recurringFeeIds: vrtCsvSchema,
|
|
117
|
+
search: zod_1.z.string().trim().min(1).optional(),
|
|
118
|
+
statementIds: vrtCsvSchema,
|
|
119
|
+
status: zod_1.z.enum(['draft', 'inReview', 'published', 'all']).optional(),
|
|
120
|
+
teamId: vrtTeamIdSchema,
|
|
121
|
+
year: zod_1.z.number().int().min(1900).max(2100).optional(),
|
|
122
|
+
});
|
|
123
|
+
exports.vrtJournalEntriesLookupSchema = zod_1.z.object({
|
|
124
|
+
accountAssignmentTypes: vrtCsvSchema,
|
|
125
|
+
accountIds: vrtCsvSchema,
|
|
126
|
+
accountType: zod_1.z
|
|
127
|
+
.enum(['ledger', 'bank', 'recurringFee', 'nonPosting'])
|
|
128
|
+
.optional(),
|
|
129
|
+
amount: zod_1.z.string().trim().min(1).optional(),
|
|
130
|
+
classifications: vrtCsvSchema,
|
|
131
|
+
date: vrtDateRangeSchema,
|
|
132
|
+
endAt: zod_1.z.string().trim().min(1).optional(),
|
|
133
|
+
entityTypes: vrtCsvSchema,
|
|
134
|
+
excludeTriggerTypes: vrtCsvSchema,
|
|
135
|
+
excludeTypes: vrtCsvSchema,
|
|
136
|
+
ids: vrtCsvSchema,
|
|
137
|
+
includeDetails: zod_1.z.boolean().optional(),
|
|
138
|
+
ledger: zod_1.z.enum(['historical', 'trust', 'operating']).optional(),
|
|
139
|
+
limit: vrtLookupLimitSchema,
|
|
140
|
+
listingIds: vrtCsvSchema,
|
|
141
|
+
ownerStatementIds: vrtCsvSchema,
|
|
142
|
+
page: vrtLookupPageSchema,
|
|
143
|
+
party: zod_1.z.enum(['owners', 'manager']).optional(),
|
|
144
|
+
published: zod_1.z.boolean().optional(),
|
|
145
|
+
reservationIds: vrtCsvSchema,
|
|
146
|
+
search: zod_1.z.string().trim().min(1).optional(),
|
|
147
|
+
startAt: zod_1.z.string().trim().min(1).optional(),
|
|
148
|
+
status: zod_1.z.enum(['active', 'inactive']).optional(),
|
|
149
|
+
teamId: vrtTeamIdSchema,
|
|
150
|
+
transactionIds: vrtCsvSchema,
|
|
151
|
+
triggerTypes: vrtCsvSchema,
|
|
152
|
+
types: vrtCsvSchema,
|
|
153
|
+
});
|
|
154
|
+
//# sourceMappingURL=vrt-mcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vrt-mcp.js","sourceRoot":"src/","sources":["vrt-mcp.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AACzE,MAAM,mBAAmB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC/D,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AACzD,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,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AC,CAAC,QAAQ,EAAE;IAC/D,KAAK,EAAE,oBAAoB;IAC3B,UAAU,EAAE,YAAY;IACxB,iBAAiB,EAAE,YAAY;IAC/B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/C,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,YAAY;IAC5B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,OAAC,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"]}
|
|
@@ -5600,7 +5600,7 @@ export interface paths {
|
|
|
5600
5600
|
get?: never;
|
|
5601
5601
|
put?: never;
|
|
5602
5602
|
/**
|
|
5603
|
-
* @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.
|
|
5603
|
+
* @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.
|
|
5604
5604
|
*
|
|
5605
5605
|
* Required scope: reservations:post-journals
|
|
5606
5606
|
*/
|
|
@@ -35270,6 +35270,7 @@ export interface operations {
|
|
|
35270
35270
|
};
|
|
35271
35271
|
}[];
|
|
35272
35272
|
transaction?: {
|
|
35273
|
+
/** @description Required for every transaction except transfers */
|
|
35273
35274
|
description?: string;
|
|
35274
35275
|
status?: ("active" | "inactive") | null;
|
|
35275
35276
|
/** @description Root bank account; the source account for transfers */
|
|
@@ -35484,6 +35485,7 @@ export interface operations {
|
|
|
35484
35485
|
};
|
|
35485
35486
|
}[];
|
|
35486
35487
|
transaction?: {
|
|
35488
|
+
/** @description Required for every transaction except transfers */
|
|
35487
35489
|
description?: string;
|
|
35488
35490
|
status?: ("active" | "inactive") | null;
|
|
35489
35491
|
/** @description Root bank account; the source account for transfers */
|
|
@@ -149229,6 +149231,7 @@ export interface operations {
|
|
|
149229
149231
|
requestBody?: {
|
|
149230
149232
|
content: {
|
|
149231
149233
|
"application/json": {
|
|
149234
|
+
/** @description Required for every transaction except transfers */
|
|
149232
149235
|
description?: string;
|
|
149233
149236
|
status?: ("active" | "inactive") | null;
|
|
149234
149237
|
/** @description Root bank account; the source account for transfers */
|
|
@@ -151164,6 +151167,7 @@ export interface operations {
|
|
|
151164
151167
|
connectionId: string;
|
|
151165
151168
|
createOnly?: boolean;
|
|
151166
151169
|
data: {
|
|
151170
|
+
/** @description Required for every transaction except transfers */
|
|
151167
151171
|
description?: string;
|
|
151168
151172
|
status?: ("active" | "inactive") | null;
|
|
151169
151173
|
/** @description Root bank account; the source account for transfers */
|