@vrplatform/api 1.3.1-stage.3852 → 1.3.1-stage.38524717127
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/cache.js +10 -7
- package/build/main/cache.js.map +1 -1
- package/build/main/client.d.ts +6 -2
- package/build/main/client.js +16 -14
- package/build/main/client.js.map +1 -1
- package/build/main/control-plane-routing.d.ts +1 -0
- package/build/main/control-plane-routing.js +24 -0
- package/build/main/control-plane-routing.js.map +1 -0
- package/build/main/embed-lifecycle.d.ts +140 -0
- package/build/main/embed-lifecycle.js +93 -0
- package/build/main/embed-lifecycle.js.map +1 -0
- package/build/main/error.d.ts +22 -17
- package/build/main/error.js +50 -32
- package/build/main/error.js.map +1 -1
- package/build/main/generated/routing.d.ts +7 -0
- package/build/main/generated/routing.js +97 -0
- package/build/main/generated/routing.js.map +1 -0
- package/build/main/generated/v1.d.ts +4 -60186
- package/build/main/generated/v1.js.map +4 -1
- package/build/main/index.d.ts +7 -0
- package/build/main/index.js +7 -0
- package/build/main/index.js.map +1 -1
- package/build/main/is-test-team.d.ts +6 -0
- package/build/main/is-test-team.js +18 -0
- package/build/main/is-test-team.js.map +1 -0
- package/build/main/is-test-user.d.ts +4 -0
- package/build/main/is-test-user.js +31 -0
- package/build/main/is-test-user.js.map +1 -0
- package/build/main/is-vrp-member.d.ts +4 -0
- package/build/main/is-vrp-member.js +33 -0
- package/build/main/is-vrp-member.js.map +1 -0
- package/build/main/routing.d.ts +24 -0
- package/build/main/routing.js +62 -0
- package/build/main/routing.js.map +1 -0
- package/build/main/types.d.ts +2 -0
- package/build/main/types.js.map +1 -1
- package/build/main/vrt-mcp.d.ts +214 -0
- package/build/main/vrt-mcp.js +161 -0
- package/build/main/vrt-mcp.js.map +1 -0
- package/build/module/cache.js +10 -7
- package/build/module/cache.js.map +1 -1
- package/build/module/client.d.ts +6 -2
- package/build/module/client.js +16 -14
- package/build/module/client.js.map +1 -1
- package/build/module/control-plane-routing.d.ts +1 -0
- package/build/module/control-plane-routing.js +21 -0
- package/build/module/control-plane-routing.js.map +1 -0
- package/build/module/embed-lifecycle.d.ts +140 -0
- package/build/module/embed-lifecycle.js +90 -0
- package/build/module/embed-lifecycle.js.map +1 -0
- package/build/module/error.d.ts +22 -17
- package/build/module/error.js +51 -31
- package/build/module/error.js.map +1 -1
- package/build/module/generated/routing.d.ts +7 -0
- package/build/module/generated/routing.js +94 -0
- package/build/module/generated/routing.js.map +1 -0
- package/build/module/generated/v1.d.ts +4 -60186
- package/build/module/generated/v1.js.map +4 -1
- package/build/module/index.d.ts +7 -0
- package/build/module/index.js +7 -0
- package/build/module/index.js.map +1 -1
- package/build/module/is-test-team.d.ts +6 -0
- package/build/module/is-test-team.js +14 -0
- package/build/module/is-test-team.js.map +1 -0
- package/build/module/is-test-user.d.ts +4 -0
- package/build/module/is-test-user.js +27 -0
- package/build/module/is-test-user.js.map +1 -0
- package/build/module/is-vrp-member.d.ts +4 -0
- package/build/module/is-vrp-member.js +29 -0
- package/build/module/is-vrp-member.js.map +1 -0
- package/build/module/routing.d.ts +24 -0
- package/build/module/routing.js +58 -0
- package/build/module/routing.js.map +1 -0
- package/build/module/types.d.ts +2 -0
- package/build/module/types.js.map +1 -1
- package/build/module/vrt-mcp.d.ts +214 -0
- package/build/module/vrt-mcp.js +158 -0
- package/build/module/vrt-mcp.js.map +1 -0
- package/package.json +8 -7
- package/src/cache.ts +11 -8
- package/src/client.ts +18 -16
- package/src/control-plane-routing.ts +30 -0
- package/src/embed-lifecycle.ts +96 -0
- package/src/error.ts +93 -56
- package/src/generated/routing.ts +96 -0
- package/src/generated/v1.ts +4 -60187
- package/src/index.ts +7 -0
- package/src/is-test-team.ts +26 -0
- package/src/is-test-user.ts +39 -0
- package/src/is-vrp-member.ts +38 -0
- package/src/routing.ts +89 -0
- package/src/types.ts +8 -0
- package/src/vrt-mcp.ts +185 -0
- package/build/main/generated/openapi-fetch.d.ts +0 -224
- package/build/main/generated/openapi-fetch.js +0 -14
- package/build/main/generated/openapi-fetch.js.map +0 -1
- package/build/module/generated/openapi-fetch.d.ts +0 -224
- package/build/module/generated/openapi-fetch.js +0 -2
- package/build/module/generated/openapi-fetch.js.map +0 -1
- package/src/generated/openapi-fetch.ts +0 -433
package/build/main/index.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ApiClient } from './types';
|
|
2
2
|
export * from './client';
|
|
3
|
+
export * from './control-plane-routing';
|
|
4
|
+
export * from './embed-lifecycle';
|
|
3
5
|
export * from './error';
|
|
4
6
|
export type * from './generated/v1';
|
|
7
|
+
export * from './is-test-team';
|
|
8
|
+
export * from './is-test-user';
|
|
9
|
+
export * from './is-vrp-member';
|
|
10
|
+
export * from './routing';
|
|
5
11
|
export * from './sec';
|
|
6
12
|
export * from './types';
|
|
13
|
+
export * from './vrt-mcp';
|
|
7
14
|
export type VRPlatformApi = ApiClient;
|
package/build/main/index.js
CHANGED
|
@@ -15,7 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./control-plane-routing"), exports);
|
|
19
|
+
__exportStar(require("./embed-lifecycle"), exports);
|
|
18
20
|
__exportStar(require("./error"), exports);
|
|
21
|
+
__exportStar(require("./is-test-team"), exports);
|
|
22
|
+
__exportStar(require("./is-test-user"), exports);
|
|
23
|
+
__exportStar(require("./is-vrp-member"), exports);
|
|
24
|
+
__exportStar(require("./routing"), exports);
|
|
19
25
|
__exportStar(require("./sec"), exports);
|
|
20
26
|
__exportStar(require("./types"), exports);
|
|
27
|
+
__exportStar(require("./vrt-mcp"), exports);
|
|
21
28
|
//# sourceMappingURL=index.js.map
|
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,0CAAwB;AAExB,wCAAsB;AACtB,0CAAwB","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './error';\nexport type * from './generated/v1';\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,0DAAwC;AACxC,oDAAkC;AAClC,0CAAwB;AAExB,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB;AACxB,4CAA0B","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './control-plane-routing';\nexport * from './embed-lifecycle';\nexport * from './error';\nexport type * from './generated/v1';\nexport * from './is-test-team';\nexport * from './is-test-user';\nexport * from './is-vrp-member';\nexport * from './routing';\nexport * from './sec';\nexport * from './types';\nexport * from './vrt-mcp';\n\nexport type VRPlatformApi = ApiClient;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TEST_TEAM_IDS: readonly ["0b6a7bd6-56cc-46b5-b2ab-1bd7d1e994fa", "fa4d1a20-2f47-4021-9c72-c5a809be9c48", "c4fd21b4-8447-43a2-bdcb-f06a85a935ad", "8f21060e-afe6-410a-b2f4-00a3caa20786"];
|
|
2
|
+
export declare function isTestTeam(team: {
|
|
3
|
+
id: string;
|
|
4
|
+
partnerId?: string | null;
|
|
5
|
+
billingPartnerId?: string | null;
|
|
6
|
+
} | undefined): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TEST_TEAM_IDS = void 0;
|
|
4
|
+
exports.isTestTeam = isTestTeam;
|
|
5
|
+
const DEMO_TEST_PARTNER_TENANT_ID = '0b6a7bd6-56cc-46b5-b2ab-1bd7d1e994fa';
|
|
6
|
+
exports.TEST_TEAM_IDS = [
|
|
7
|
+
DEMO_TEST_PARTNER_TENANT_ID,
|
|
8
|
+
'fa4d1a20-2f47-4021-9c72-c5a809be9c48', // Testing tenant
|
|
9
|
+
'c4fd21b4-8447-43a2-bdcb-f06a85a935ad', // VRP Automated Testing
|
|
10
|
+
'8f21060e-afe6-410a-b2f4-00a3caa20786', // test_company_xxxx
|
|
11
|
+
];
|
|
12
|
+
function isTestTeam(team) {
|
|
13
|
+
if (!team)
|
|
14
|
+
return false;
|
|
15
|
+
return (new Set(exports.TEST_TEAM_IDS).has(team.id) ||
|
|
16
|
+
[team.partnerId, team.billingPartnerId].includes(DEMO_TEST_PARTNER_TENANT_ID));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=is-test-team.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-test-team.js","sourceRoot":"src/","sources":["is-test-team.ts"],"names":[],"mappings":";;;AASA,gCAgBC;AAzBD,MAAM,2BAA2B,GAAG,sCAAsC,CAAC;AAE9D,QAAA,aAAa,GAAG;IAC3B,2BAA2B;IAC3B,sCAAsC,EAAE,iBAAiB;IACzD,sCAAsC,EAAE,wBAAwB;IAChE,sCAAsC,EAAE,oBAAoB;CACpD,CAAC;AAEX,SAAgB,UAAU,CACxB,IAMa;IAEb,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxB,OAAO,CACL,IAAI,GAAG,CAAS,qBAAa,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3C,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC","sourcesContent":["const DEMO_TEST_PARTNER_TENANT_ID = '0b6a7bd6-56cc-46b5-b2ab-1bd7d1e994fa';\n\nexport const TEST_TEAM_IDS = [\n DEMO_TEST_PARTNER_TENANT_ID,\n 'fa4d1a20-2f47-4021-9c72-c5a809be9c48', // Testing tenant\n 'c4fd21b4-8447-43a2-bdcb-f06a85a935ad', // VRP Automated Testing\n '8f21060e-afe6-410a-b2f4-00a3caa20786', // test_company_xxxx\n] as const;\n\nexport function isTestTeam(\n team:\n | {\n id: string;\n partnerId?: string | null;\n billingPartnerId?: string | null;\n }\n | undefined\n): boolean {\n if (!team) return false;\n return (\n new Set<string>(TEST_TEAM_IDS).has(team.id) ||\n [team.partnerId, team.billingPartnerId].includes(\n DEMO_TEST_PARTNER_TENANT_ID\n )\n );\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTestUser = void 0;
|
|
4
|
+
const E2E_TEST_USER_EMAILS = [
|
|
5
|
+
'e2e-invite-owner@finalytic.io',
|
|
6
|
+
'e2e-invite-owner@vrp.rocks',
|
|
7
|
+
'e2e-invite-member@finalytic.io',
|
|
8
|
+
'e2e-invite-member@vrp.rocks',
|
|
9
|
+
'e2e-sign-up-legacy@vrp.rocks',
|
|
10
|
+
'e2e-sign-up-partner@vrp.rocks',
|
|
11
|
+
'e2e-sign-up@finalytic.io',
|
|
12
|
+
'e2e-sign-up@vrp.rocks',
|
|
13
|
+
'lars+e2e@vrplatform.app',
|
|
14
|
+
'lars+e2e-gl@vrplatform.app',
|
|
15
|
+
'lars+checkly@finalytic.co',
|
|
16
|
+
];
|
|
17
|
+
const E2E_TEST_USERS = {
|
|
18
|
+
'e2e-invite-member@finalytic.io': '113d73d8-ee21-46b7-a12a-a74f632401ca',
|
|
19
|
+
'e2e-invite-member@vrp.rocks': '113d73d8-ee21-46b7-a12a-a74f632401ca',
|
|
20
|
+
'e2e-invite-owner@finalytic.io': '917b7c4e-cb03-491c-9e94-d33a5bdeca05',
|
|
21
|
+
'e2e-invite-owner@vrp.rocks': '917b7c4e-cb03-491c-9e94-d33a5bdeca05',
|
|
22
|
+
'e2e-sign-up-partner@vrp.rocks': '5c8e5572-74d0-4ae6-af73-bca8db9a27e9',
|
|
23
|
+
'e2e-sign-up@vrp.rocks': '3c8e5572-74d0-4ae6-af73-bca8db9a27e9',
|
|
24
|
+
'e2e-sign-up@finalytic.io': 'ec8e5572-74d0-4ae6-af73-bca8db9a27e9',
|
|
25
|
+
'e2e-sign-up-legacy@vrp.rocks': 'ec8e5572-74d0-4ae6-af73-bca8db9a27e9',
|
|
26
|
+
'lars+checkly@finalytic.co': '9e7dfc88-503c-4222-9905-9116169d2203',
|
|
27
|
+
};
|
|
28
|
+
const isTestUser = ({ userEmail, userId, }) => Boolean((userId && Object.values(E2E_TEST_USERS).includes(userId)) ||
|
|
29
|
+
(userEmail && Object.keys(E2E_TEST_USERS).includes(userEmail)));
|
|
30
|
+
exports.isTestUser = isTestUser;
|
|
31
|
+
//# sourceMappingURL=is-test-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-test-user.js","sourceRoot":"src/","sources":["is-test-user.ts"],"names":[],"mappings":";;;AAAA,MAAM,oBAAoB,GAAG;IAC3B,+BAA+B;IAC/B,4BAA4B;IAC5B,gCAAgC;IAChC,6BAA6B;IAC7B,8BAA8B;IAC9B,+BAA+B;IAC/B,0BAA0B;IAC1B,uBAAuB;IACvB,yBAAyB;IACzB,4BAA4B;IAC5B,2BAA2B;CACnB,CAAC;AAEX,MAAM,cAAc,GAEhB;IACF,gCAAgC,EAAE,sCAAsC;IACxE,6BAA6B,EAAE,sCAAsC;IACrE,+BAA+B,EAAE,sCAAsC;IACvE,4BAA4B,EAAE,sCAAsC;IACpE,+BAA+B,EAAE,sCAAsC;IACvE,uBAAuB,EAAE,sCAAsC;IAC/D,0BAA0B,EAAE,sCAAsC;IAClE,8BAA8B,EAAE,sCAAsC;IACtE,2BAA2B,EAAE,sCAAsC;CACpE,CAAC;AAEK,MAAM,UAAU,GAAG,CAAC,EACzB,SAAS,EACT,MAAM,GAIP,EAAE,EAAE,CACH,OAAO,CACL,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAC/D,CAAC;AAVS,QAAA,UAAU,cAUnB","sourcesContent":["const E2E_TEST_USER_EMAILS = [\n 'e2e-invite-owner@finalytic.io',\n 'e2e-invite-owner@vrp.rocks',\n 'e2e-invite-member@finalytic.io',\n 'e2e-invite-member@vrp.rocks',\n 'e2e-sign-up-legacy@vrp.rocks',\n 'e2e-sign-up-partner@vrp.rocks',\n 'e2e-sign-up@finalytic.io',\n 'e2e-sign-up@vrp.rocks',\n 'lars+e2e@vrplatform.app',\n 'lars+e2e-gl@vrplatform.app',\n 'lars+checkly@finalytic.co',\n] as const;\n\nconst E2E_TEST_USERS: Partial<\n Record<(typeof E2E_TEST_USER_EMAILS)[number], string>\n> = {\n 'e2e-invite-member@finalytic.io': '113d73d8-ee21-46b7-a12a-a74f632401ca',\n 'e2e-invite-member@vrp.rocks': '113d73d8-ee21-46b7-a12a-a74f632401ca',\n 'e2e-invite-owner@finalytic.io': '917b7c4e-cb03-491c-9e94-d33a5bdeca05',\n 'e2e-invite-owner@vrp.rocks': '917b7c4e-cb03-491c-9e94-d33a5bdeca05',\n 'e2e-sign-up-partner@vrp.rocks': '5c8e5572-74d0-4ae6-af73-bca8db9a27e9',\n 'e2e-sign-up@vrp.rocks': '3c8e5572-74d0-4ae6-af73-bca8db9a27e9',\n 'e2e-sign-up@finalytic.io': 'ec8e5572-74d0-4ae6-af73-bca8db9a27e9',\n 'e2e-sign-up-legacy@vrp.rocks': 'ec8e5572-74d0-4ae6-af73-bca8db9a27e9',\n 'lars+checkly@finalytic.co': '9e7dfc88-503c-4222-9905-9116169d2203',\n};\n\nexport const isTestUser = ({\n userEmail,\n userId,\n}: {\n userEmail?: string | null;\n userId?: string | null;\n}) =>\n Boolean(\n (userId && Object.values(E2E_TEST_USERS).includes(userId)) ||\n (userEmail && Object.keys(E2E_TEST_USERS).includes(userEmail))\n );\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isVrpMember = void 0;
|
|
4
|
+
const VRP_EMAIL_DOMAINS = ['@finalytic.co', '@vrplatform.app'];
|
|
5
|
+
const VRP_EMAILS = [
|
|
6
|
+
'radek+vrp@setup.inc',
|
|
7
|
+
'philipp@philipp-achenbach.de',
|
|
8
|
+
'l.behrenberg@gmail.com',
|
|
9
|
+
'l.behrenberg+secondary@gmail.com',
|
|
10
|
+
'adam@ximplifi.com',
|
|
11
|
+
];
|
|
12
|
+
const VRP_USER_IDS = [
|
|
13
|
+
'3267f329-26d9-471d-86c1-d4c2efab2951',
|
|
14
|
+
'735e1803-13f5-4a90-a02f-2498b3eefa03',
|
|
15
|
+
'1a2bd1ea-88b1-4217-935f-2a8d97c422f9',
|
|
16
|
+
'4b221539-d6cf-4d18-a015-1f3a99fc3c2d',
|
|
17
|
+
'5e9bdcc1-71ae-4e59-87a1-affbfc3ce603',
|
|
18
|
+
'2a40c6c5-c9a2-4d98-a70f-3c6f75bff3e2',
|
|
19
|
+
'31a87570-3917-4e4c-b237-af605ab0094b',
|
|
20
|
+
'ec78e603-705c-4f1c-9b85-4dc5733c5b85',
|
|
21
|
+
'16b5bd68-8261-4192-a28a-13817b31fede',
|
|
22
|
+
'2e22dcba-73f0-4699-bc48-088209804fe2',
|
|
23
|
+
'840da880-9a3d-43e5-9e2e-d4c74429ed17',
|
|
24
|
+
'9ecc0316-e7dc-4c73-960d-01c2763fb8da',
|
|
25
|
+
'9f6008c7-4df5-4aec-997f-07ecd44a2f79',
|
|
26
|
+
'27dc0d2a-d11a-4fe1-a500-6e0e6350ad04',
|
|
27
|
+
];
|
|
28
|
+
const isVrpMember = ({ email, userId, }) => Boolean((email &&
|
|
29
|
+
(VRP_EMAILS.includes(email) ||
|
|
30
|
+
VRP_EMAIL_DOMAINS.some((domain) => email.endsWith(domain)))) ||
|
|
31
|
+
(userId && VRP_USER_IDS.includes(userId)));
|
|
32
|
+
exports.isVrpMember = isVrpMember;
|
|
33
|
+
//# sourceMappingURL=is-vrp-member.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-vrp-member.js","sourceRoot":"src/","sources":["is-vrp-member.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;AAC/D,MAAM,UAAU,GAAG;IACjB,qBAAqB;IACrB,8BAA8B;IAC9B,wBAAwB;IACxB,kCAAkC;IAClC,mBAAmB;CACpB,CAAC;AACF,MAAM,YAAY,GAAG;IACnB,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;IACtC,sCAAsC;CACvC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,MAAM,GAIP,EAAE,EAAE,CACH,OAAO,CACL,CAAC,KAAK;IACJ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;QACzB,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAC1C,CAAC;AAZS,QAAA,WAAW,eAYpB","sourcesContent":["const VRP_EMAIL_DOMAINS = ['@finalytic.co', '@vrplatform.app'];\nconst VRP_EMAILS = [\n 'radek+vrp@setup.inc',\n 'philipp@philipp-achenbach.de',\n 'l.behrenberg@gmail.com',\n 'l.behrenberg+secondary@gmail.com',\n 'adam@ximplifi.com',\n];\nconst VRP_USER_IDS = [\n '3267f329-26d9-471d-86c1-d4c2efab2951',\n '735e1803-13f5-4a90-a02f-2498b3eefa03',\n '1a2bd1ea-88b1-4217-935f-2a8d97c422f9',\n '4b221539-d6cf-4d18-a015-1f3a99fc3c2d',\n '5e9bdcc1-71ae-4e59-87a1-affbfc3ce603',\n '2a40c6c5-c9a2-4d98-a70f-3c6f75bff3e2',\n '31a87570-3917-4e4c-b237-af605ab0094b',\n 'ec78e603-705c-4f1c-9b85-4dc5733c5b85',\n '16b5bd68-8261-4192-a28a-13817b31fede',\n '2e22dcba-73f0-4699-bc48-088209804fe2',\n '840da880-9a3d-43e5-9e2e-d4c74429ed17',\n '9ecc0316-e7dc-4c73-960d-01c2763fb8da',\n '9f6008c7-4df5-4aec-997f-07ecd44a2f79',\n '27dc0d2a-d11a-4fe1-a500-6e0e6350ad04',\n];\n\nexport const isVrpMember = ({\n email,\n userId,\n}: {\n email?: string | null;\n userId?: string | null;\n}) =>\n Boolean(\n (email &&\n (VRP_EMAILS.includes(email) ||\n VRP_EMAIL_DOMAINS.some((domain) => email.endsWith(domain)))) ||\n (userId && VRP_USER_IDS.includes(userId))\n );\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useApiClient } from './client';
|
|
2
|
+
import type { ResponseData } from './types';
|
|
3
|
+
export type TenantRouting = Pick<ResponseData<'get:/teams/resolve'>, 'id' | 'slug' | 'dataRegion' | 'apiBaseUrl'>;
|
|
4
|
+
type ApiClientOptions = Parameters<typeof useApiClient>[0];
|
|
5
|
+
/**
|
|
6
|
+
* Resolve a tenant's region and regional `apiBaseUrl` from a connection id,
|
|
7
|
+
* slug, or tenant id — the client entry point for non-API runtimes that need
|
|
8
|
+
* to reach a tenant's home region. Each call is a `/teams/resolve` round trip;
|
|
9
|
+
* hot-loop callers should cache the result (placement changes only on an
|
|
10
|
+
* explicit tenant migration).
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveTenantRouting({ connectionId, slug, tenantId, auth, ...apiClientOptions }: ApiClientOptions & {
|
|
13
|
+
connectionId?: string;
|
|
14
|
+
slug?: string;
|
|
15
|
+
tenantId?: string;
|
|
16
|
+
}): Promise<TenantRouting>;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve a tenant's home region and return an API client configured for that
|
|
19
|
+
* regional API. The resolved tenant id is applied to every regional request.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useResolvedApiClient({ connectionId, slug, tenantId, auth, ...apiClientOptions }: Parameters<typeof resolveTenantRouting>[0]): Promise<import("openapi-fetch").Client<import(".").paths, `${string}/${string}`> & {
|
|
22
|
+
sessionId: string;
|
|
23
|
+
}>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveTenantRouting = resolveTenantRouting;
|
|
4
|
+
exports.useResolvedApiClient = useResolvedApiClient;
|
|
5
|
+
const client_1 = require("./client");
|
|
6
|
+
const error_1 = require("./error");
|
|
7
|
+
/**
|
|
8
|
+
* Resolve a tenant's region and regional `apiBaseUrl` from a connection id,
|
|
9
|
+
* slug, or tenant id — the client entry point for non-API runtimes that need
|
|
10
|
+
* to reach a tenant's home region. Each call is a `/teams/resolve` round trip;
|
|
11
|
+
* hot-loop callers should cache the result (placement changes only on an
|
|
12
|
+
* explicit tenant migration).
|
|
13
|
+
*/
|
|
14
|
+
async function resolveTenantRouting({ connectionId, slug, tenantId, auth, ...apiClientOptions }) {
|
|
15
|
+
if (!connectionId && !slug && !tenantId) {
|
|
16
|
+
throw new Error('connectionId, slug, or tenantId is required');
|
|
17
|
+
}
|
|
18
|
+
const response = (0, error_1.throwIfError)(await (0, client_1.useApiClient)({
|
|
19
|
+
...apiClientOptions,
|
|
20
|
+
auth: tenantId
|
|
21
|
+
? () => {
|
|
22
|
+
const current = typeof auth === 'function' ? auth() : (auth ?? {});
|
|
23
|
+
return {
|
|
24
|
+
...current,
|
|
25
|
+
tenantId,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
: auth,
|
|
29
|
+
}).GET('/teams/resolve', {
|
|
30
|
+
params: {
|
|
31
|
+
query: slug ? { slug } : connectionId ? { connectionId } : {},
|
|
32
|
+
},
|
|
33
|
+
}));
|
|
34
|
+
return {
|
|
35
|
+
id: response.id,
|
|
36
|
+
slug: response.slug,
|
|
37
|
+
dataRegion: response.dataRegion,
|
|
38
|
+
apiBaseUrl: new URL(response.apiBaseUrl).toString().replace(/\/$/, ''),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Resolve a tenant's home region and return an API client configured for that
|
|
43
|
+
* regional API. The resolved tenant id is applied to every regional request.
|
|
44
|
+
*/
|
|
45
|
+
async function useResolvedApiClient({ connectionId, slug, tenantId, auth, ...apiClientOptions }) {
|
|
46
|
+
const routing = await resolveTenantRouting({
|
|
47
|
+
...apiClientOptions,
|
|
48
|
+
connectionId,
|
|
49
|
+
slug,
|
|
50
|
+
tenantId,
|
|
51
|
+
auth,
|
|
52
|
+
});
|
|
53
|
+
return (0, client_1.useApiClient)({
|
|
54
|
+
...apiClientOptions,
|
|
55
|
+
baseUrl: routing.apiBaseUrl,
|
|
56
|
+
auth: () => ({
|
|
57
|
+
...(typeof auth === 'function' ? auth() : (auth ?? {})),
|
|
58
|
+
tenantId: routing.id,
|
|
59
|
+
}),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.js","sourceRoot":"src/","sources":["routing.ts"],"names":[],"mappings":";;AAkBA,oDAwCC;AAMD,oDAwBC;AAxFD,qCAAwC;AACxC,mCAAuC;AAUvC;;;;;;GAMG;AACI,KAAK,UAAU,oBAAoB,CAAC,EACzC,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,GAAG,gBAAgB,EAKpB;IACC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,QAAQ,GAAG,IAAA,oBAAY,EAC3B,MAAM,IAAA,qBAAY,EAAC;QACjB,GAAG,gBAAgB;QACnB,IAAI,EAAE,QAAQ;YACZ,CAAC,CAAC,GAAG,EAAE;gBACH,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;gBACnE,OAAO;oBACL,GAAG,OAAO;oBACV,QAAQ;iBACe,CAAC;YAC5B,CAAC;YACH,CAAC,CAAC,IAAI;KACT,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE;SAC9D;KACF,CAAC,CACH,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE;QACf,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,UAAU,EAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;KACvE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,oBAAoB,CAAC,EACzC,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,GAAG,gBAAgB,EACwB;IAC3C,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC;QACzC,GAAG,gBAAgB;QACnB,YAAY;QACZ,IAAI;QACJ,QAAQ;QACR,IAAI;KACL,CAAC,CAAC;IAEH,OAAO,IAAA,qBAAY,EAAC;QAClB,GAAG,gBAAgB;QACnB,OAAO,EAAE,OAAO,CAAC,UAAU;QAC3B,IAAI,EAAE,GAAG,EAAE,CACT,CAAC;YACC,GAAG,CAAC,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;YACvD,QAAQ,EAAE,OAAO,CAAC,EAAE;SACrB,CAAyB;KAC7B,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { useApiClient } from './client';\nimport { throwIfError } from './error';\nimport type { ApiClientAuth, ResponseData } from './types';\n\nexport type TenantRouting = Pick<\n ResponseData<'get:/teams/resolve'>,\n 'id' | 'slug' | 'dataRegion' | 'apiBaseUrl'\n>;\n\ntype ApiClientOptions = Parameters<typeof useApiClient>[0];\n\n/**\n * Resolve a tenant's region and regional `apiBaseUrl` from a connection id,\n * slug, or tenant id — the client entry point for non-API runtimes that need\n * to reach a tenant's home region. Each call is a `/teams/resolve` round trip;\n * hot-loop callers should cache the result (placement changes only on an\n * explicit tenant migration).\n */\nexport async function resolveTenantRouting({\n connectionId,\n slug,\n tenantId,\n auth,\n ...apiClientOptions\n}: ApiClientOptions & {\n connectionId?: string;\n slug?: string;\n tenantId?: string;\n}): Promise<TenantRouting> {\n if (!connectionId && !slug && !tenantId) {\n throw new Error('connectionId, slug, or tenantId is required');\n }\n\n const response = throwIfError(\n await useApiClient({\n ...apiClientOptions,\n auth: tenantId\n ? () => {\n const current = typeof auth === 'function' ? auth() : (auth ?? {});\n return {\n ...current,\n tenantId,\n } satisfies ApiClientAuth;\n }\n : auth,\n }).GET('/teams/resolve', {\n params: {\n query: slug ? { slug } : connectionId ? { connectionId } : {},\n },\n })\n );\n\n return {\n id: response.id,\n slug: response.slug,\n dataRegion: response.dataRegion,\n apiBaseUrl: new URL(response.apiBaseUrl).toString().replace(/\\/$/, ''),\n };\n}\n\n/**\n * Resolve a tenant's home region and return an API client configured for that\n * regional API. The resolved tenant id is applied to every regional request.\n */\nexport async function useResolvedApiClient({\n connectionId,\n slug,\n tenantId,\n auth,\n ...apiClientOptions\n}: Parameters<typeof resolveTenantRouting>[0]) {\n const routing = await resolveTenantRouting({\n ...apiClientOptions,\n connectionId,\n slug,\n tenantId,\n auth,\n });\n\n return useApiClient({\n ...apiClientOptions,\n baseUrl: routing.apiBaseUrl,\n auth: () =>\n ({\n ...(typeof auth === 'function' ? auth() : (auth ?? {})),\n tenantId: routing.id,\n }) satisfies ApiClientAuth,\n });\n}\n"]}
|
package/build/main/types.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export type ResponseData<T extends ResponseCombinations> = T extends `${infer Me
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
} ? Data : never : never : never : never;
|
|
34
|
+
export type ApiScope = NonNullable<ResponseData<'get:/me'>['membership']>['permissions'][number];
|
|
35
|
+
export type UiPermissionBundleName = NonNullable<ResponseData<'get:/me'>['membership']>['permissionBundles'][number];
|
|
34
36
|
type RequestBodyCombinations = {
|
|
35
37
|
[Path in keyof paths]: {
|
|
36
38
|
[Method in keyof paths[Path]]: paths[Path][Method] extends never ? never : ExtractJsonRequestBody<paths[Path][Method]> extends never ? never : `${Method & string}:${Path}`;
|
package/build/main/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"src/","sources":["types.ts"],"names":[],"mappings":"","sourcesContent":["import type createClient from 'openapi-fetch';\nimport type { paths } from './generated/v1';\n\nexport type ApiClientAuth = {\n apiKey?: string;\n sec?: string;\n tenantId?: string;\n accessToken?: string;\n};\nexport type ApiClient = ReturnType<typeof createClient<paths>> & {\n sessionId: string;\n};\ntype ResponseCombinations = {\n [Path in keyof paths]: {\n [Method in keyof paths[Path]]: paths[Path][Method] extends never\n ? never\n : paths[Path][Method] extends {\n responses: {\n 200: { content: { 'application/json': unknown } };\n };\n }\n ? `${Method & string}:${Path}`\n : never;\n }[keyof paths[Path]];\n}[keyof paths];\n\nexport type ResponseData<T extends ResponseCombinations> =\n T extends `${infer Method}:${infer Path}`\n ? Path extends keyof paths\n ? Method extends keyof paths[Path]\n ? paths[Path][Method] extends {\n responses: {\n 200: { content: { 'application/json': infer Data } };\n };\n }\n ? Data\n : never\n : never\n : never\n : never;\n\ntype RequestBodyCombinations = {\n [Path in keyof paths]: {\n [Method in keyof paths[Path]]: paths[Path][Method] extends never\n ? never\n : ExtractJsonRequestBody<paths[Path][Method]> extends never\n ? never\n : `${Method & string}:${Path}`;\n }[keyof paths[Path]];\n}[keyof paths];\n\ntype ExtractJsonRequestBody<T> = T extends {\n requestBody?: infer RequestBody;\n}\n ? RequestBody extends {\n content: { 'application/json': infer Data };\n }\n ? Data\n : never\n : never;\n\nexport type RequestBody<T extends RequestBodyCombinations> =\n T extends `${infer Method}:${infer Path}`\n ? Path extends keyof paths\n ? Method extends keyof paths[Path]\n ? ExtractJsonRequestBody<paths[Path][Method]>\n : never\n : never\n : never;\n\ntype RequestParamCombinations = {\n [Path in keyof paths]: {\n [Method in keyof paths[Path]]: paths[Path][Method] extends never\n ? never\n : paths[Path][Method] extends {\n parameters: {\n query?: Record<string, unknown>;\n };\n }\n ? `${Method & string}:${Path}`\n : never;\n }[keyof paths[Path]];\n}[keyof paths];\n\nexport type RequestQuery<T extends RequestParamCombinations> =\n T extends `${infer Method}:${infer Path}`\n ? Path extends keyof paths\n ? Method extends keyof paths[Path]\n ? paths[Path][Method] extends {\n parameters: {\n query?: infer Data;\n };\n }\n ? Data\n : never\n : never\n : never\n : never;\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"src/","sources":["types.ts"],"names":[],"mappings":"","sourcesContent":["import type createClient from 'openapi-fetch';\nimport type { paths } from './generated/v1';\n\nexport type ApiClientAuth = {\n apiKey?: string;\n sec?: string;\n tenantId?: string;\n accessToken?: string;\n};\nexport type ApiClient = ReturnType<typeof createClient<paths>> & {\n sessionId: string;\n};\ntype ResponseCombinations = {\n [Path in keyof paths]: {\n [Method in keyof paths[Path]]: paths[Path][Method] extends never\n ? never\n : paths[Path][Method] extends {\n responses: {\n 200: { content: { 'application/json': unknown } };\n };\n }\n ? `${Method & string}:${Path}`\n : never;\n }[keyof paths[Path]];\n}[keyof paths];\n\nexport type ResponseData<T extends ResponseCombinations> =\n T extends `${infer Method}:${infer Path}`\n ? Path extends keyof paths\n ? Method extends keyof paths[Path]\n ? paths[Path][Method] extends {\n responses: {\n 200: { content: { 'application/json': infer Data } };\n };\n }\n ? Data\n : never\n : never\n : never\n : never;\n\nexport type ApiScope = NonNullable<\n ResponseData<'get:/me'>['membership']\n>['permissions'][number];\n\nexport type UiPermissionBundleName = NonNullable<\n ResponseData<'get:/me'>['membership']\n>['permissionBundles'][number];\n\ntype RequestBodyCombinations = {\n [Path in keyof paths]: {\n [Method in keyof paths[Path]]: paths[Path][Method] extends never\n ? never\n : ExtractJsonRequestBody<paths[Path][Method]> extends never\n ? never\n : `${Method & string}:${Path}`;\n }[keyof paths[Path]];\n}[keyof paths];\n\ntype ExtractJsonRequestBody<T> = T extends {\n requestBody?: infer RequestBody;\n}\n ? RequestBody extends {\n content: { 'application/json': infer Data };\n }\n ? Data\n : never\n : never;\n\nexport type RequestBody<T extends RequestBodyCombinations> =\n T extends `${infer Method}:${infer Path}`\n ? Path extends keyof paths\n ? Method extends keyof paths[Path]\n ? ExtractJsonRequestBody<paths[Path][Method]>\n : never\n : never\n : never;\n\ntype RequestParamCombinations = {\n [Path in keyof paths]: {\n [Method in keyof paths[Path]]: paths[Path][Method] extends never\n ? never\n : paths[Path][Method] extends {\n parameters: {\n query?: Record<string, unknown>;\n };\n }\n ? `${Method & string}:${Path}`\n : never;\n }[keyof paths[Path]];\n}[keyof paths];\n\nexport type RequestQuery<T extends RequestParamCombinations> =\n T extends `${infer Method}:${infer Path}`\n ? Path extends keyof paths\n ? Method extends keyof paths[Path]\n ? paths[Path][Method] extends {\n parameters: {\n query?: infer Data;\n };\n }\n ? Data\n : never\n : never\n : never\n : never;\n"]}
|
|
@@ -0,0 +1,214 @@
|
|
|
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
|
+
intersection: "intersection";
|
|
48
|
+
bookedAt: "bookedAt";
|
|
49
|
+
payment: "payment";
|
|
50
|
+
checkIn: "checkIn";
|
|
51
|
+
checkOut: "checkOut";
|
|
52
|
+
cancelledAt: "cancelledAt";
|
|
53
|
+
}>>;
|
|
54
|
+
generalLedgerStatus: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
active: "active";
|
|
56
|
+
inactive: "inactive";
|
|
57
|
+
}>>;
|
|
58
|
+
ids: z.ZodOptional<z.ZodString>;
|
|
59
|
+
includeLines: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
listingId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
paidStatus: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
unpaid: "unpaid";
|
|
65
|
+
underpaid: "underpaid";
|
|
66
|
+
overpaid: "overpaid";
|
|
67
|
+
paid: "paid";
|
|
68
|
+
"!unpaid": "!unpaid";
|
|
69
|
+
"!underpaid": "!underpaid";
|
|
70
|
+
"!overpaid": "!overpaid";
|
|
71
|
+
"!paid": "!paid";
|
|
72
|
+
}>>;
|
|
73
|
+
search: z.ZodOptional<z.ZodString>;
|
|
74
|
+
shortRefs: z.ZodOptional<z.ZodString>;
|
|
75
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
inactive: "inactive";
|
|
77
|
+
canceled: "canceled";
|
|
78
|
+
booked: "booked";
|
|
79
|
+
}>>;
|
|
80
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const vrtTransactionsLookupSchema: z.ZodObject<{
|
|
83
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
85
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
dateRange: z.ZodOptional<z.ZodString>;
|
|
87
|
+
ids: z.ZodOptional<z.ZodString>;
|
|
88
|
+
includeLines: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
listingIds: z.ZodOptional<z.ZodString>;
|
|
91
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
92
|
+
paidAtRange: z.ZodOptional<z.ZodString>;
|
|
93
|
+
paidStatus: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
unpaid: "unpaid";
|
|
95
|
+
underpaid: "underpaid";
|
|
96
|
+
overpaid: "overpaid";
|
|
97
|
+
paid: "paid";
|
|
98
|
+
}>>;
|
|
99
|
+
reconciled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"candidate">]>>;
|
|
100
|
+
search: z.ZodOptional<z.ZodString>;
|
|
101
|
+
shortRefs: z.ZodOptional<z.ZodString>;
|
|
102
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
active: "active";
|
|
104
|
+
inactive: "inactive";
|
|
105
|
+
}>>;
|
|
106
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
108
|
+
deposit: "deposit";
|
|
109
|
+
expense: "expense";
|
|
110
|
+
transfer: "transfer";
|
|
111
|
+
payout: "payout";
|
|
112
|
+
}>>;
|
|
113
|
+
uniqueRefs: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export declare const vrtAccountsLookupSchema: z.ZodObject<{
|
|
116
|
+
bankingCategory: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
external: "external";
|
|
118
|
+
trust: "trust";
|
|
119
|
+
operating: "operating";
|
|
120
|
+
}>>;
|
|
121
|
+
classification: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
asset: "asset";
|
|
123
|
+
liability: "liability";
|
|
124
|
+
revenue: "revenue";
|
|
125
|
+
expense: "expense";
|
|
126
|
+
}>>;
|
|
127
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
128
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
129
|
+
reconciled: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
search: z.ZodOptional<z.ZodString>;
|
|
131
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
active: "active";
|
|
133
|
+
inactive: "inactive";
|
|
134
|
+
}>>;
|
|
135
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
ledger: "ledger";
|
|
138
|
+
bank: "bank";
|
|
139
|
+
recurringFee: "recurringFee";
|
|
140
|
+
nonPosting: "nonPosting";
|
|
141
|
+
}>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export declare const vrtStatementsLookupSchema: z.ZodObject<{
|
|
144
|
+
dateRange: z.ZodOptional<z.ZodString>;
|
|
145
|
+
isDateRangeEndInclusive: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
147
|
+
listingIds: z.ZodOptional<z.ZodString>;
|
|
148
|
+
month: z.ZodOptional<z.ZodString>;
|
|
149
|
+
ownerIds: z.ZodOptional<z.ZodString>;
|
|
150
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
151
|
+
periodIds: z.ZodOptional<z.ZodString>;
|
|
152
|
+
recurringFeeIds: z.ZodOptional<z.ZodString>;
|
|
153
|
+
search: z.ZodOptional<z.ZodString>;
|
|
154
|
+
statementIds: z.ZodOptional<z.ZodString>;
|
|
155
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
all: "all";
|
|
157
|
+
draft: "draft";
|
|
158
|
+
published: "published";
|
|
159
|
+
inReview: "inReview";
|
|
160
|
+
}>>;
|
|
161
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
162
|
+
year: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export declare const vrtJournalEntriesLookupSchema: z.ZodObject<{
|
|
165
|
+
accountAssignmentTypes: z.ZodOptional<z.ZodString>;
|
|
166
|
+
accountIds: z.ZodOptional<z.ZodString>;
|
|
167
|
+
accountType: z.ZodOptional<z.ZodEnum<{
|
|
168
|
+
ledger: "ledger";
|
|
169
|
+
bank: "bank";
|
|
170
|
+
recurringFee: "recurringFee";
|
|
171
|
+
nonPosting: "nonPosting";
|
|
172
|
+
}>>;
|
|
173
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
174
|
+
classifications: z.ZodOptional<z.ZodString>;
|
|
175
|
+
date: z.ZodOptional<z.ZodString>;
|
|
176
|
+
endAt: z.ZodOptional<z.ZodString>;
|
|
177
|
+
entityTypes: z.ZodOptional<z.ZodString>;
|
|
178
|
+
excludeTriggerTypes: z.ZodOptional<z.ZodString>;
|
|
179
|
+
excludeTypes: z.ZodOptional<z.ZodString>;
|
|
180
|
+
ids: z.ZodOptional<z.ZodString>;
|
|
181
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
ledger: z.ZodOptional<z.ZodEnum<{
|
|
183
|
+
trust: "trust";
|
|
184
|
+
operating: "operating";
|
|
185
|
+
historical: "historical";
|
|
186
|
+
}>>;
|
|
187
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
188
|
+
listingIds: z.ZodOptional<z.ZodString>;
|
|
189
|
+
ownerStatementIds: z.ZodOptional<z.ZodString>;
|
|
190
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
party: z.ZodOptional<z.ZodEnum<{
|
|
192
|
+
owners: "owners";
|
|
193
|
+
manager: "manager";
|
|
194
|
+
}>>;
|
|
195
|
+
published: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
reservationIds: z.ZodOptional<z.ZodString>;
|
|
197
|
+
search: z.ZodOptional<z.ZodString>;
|
|
198
|
+
startAt: z.ZodOptional<z.ZodString>;
|
|
199
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
active: "active";
|
|
201
|
+
inactive: "inactive";
|
|
202
|
+
}>>;
|
|
203
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
204
|
+
transactionIds: z.ZodOptional<z.ZodString>;
|
|
205
|
+
triggerTypes: z.ZodOptional<z.ZodString>;
|
|
206
|
+
types: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export type VrtListingsLookupInput = z.infer<typeof vrtListingsLookupSchema>;
|
|
209
|
+
export type VrtReservationsLookupInput = z.infer<typeof vrtReservationsLookupSchema>;
|
|
210
|
+
export type VrtTransactionsLookupInput = z.infer<typeof vrtTransactionsLookupSchema>;
|
|
211
|
+
export type VrtAccountsLookupInput = z.infer<typeof vrtAccountsLookupSchema>;
|
|
212
|
+
export type VrtStatementsLookupInput = z.infer<typeof vrtStatementsLookupSchema>;
|
|
213
|
+
export type VrtJournalEntriesLookupInput = z.infer<typeof vrtJournalEntriesLookupSchema>;
|
|
214
|
+
export type VrtPaginatedLookupOutput = z.infer<typeof vrtPaginatedLookupOutputSchema>;
|