@keystrokehq/ramp 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +2 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/{accounting-i6txC-MI.mjs → accounting-Ceh5QgHA.mjs} +1 -1
- package/dist/accounting-fields.d.mts +8 -8
- package/dist/accounting-fields.mjs +10 -10
- package/dist/accounting-gl-accounts.d.mts +4 -4
- package/dist/accounting-gl-accounts.mjs +6 -6
- package/dist/accounting-subsidiaries.d.mts +4 -4
- package/dist/accounting-subsidiaries.mjs +6 -6
- package/dist/accounting-sync.d.mts +4 -4
- package/dist/accounting-sync.mjs +6 -6
- package/dist/accounting-tracking-categories.d.mts +3 -3
- package/dist/accounting-tracking-categories.mjs +5 -5
- package/dist/accounting-vendors.d.mts +4 -4
- package/dist/accounting-vendors.mjs +6 -6
- package/dist/applications.d.mts +6 -6
- package/dist/applications.mjs +5 -5
- package/dist/{bills-B8W9et3K.mjs → bills-D7vZ5JRH.mjs} +1 -1
- package/dist/bills.d.mts +24 -24
- package/dist/bills.mjs +10 -10
- package/dist/{business-CztnWUvt.mjs → business-DAD870OI.mjs} +1 -1
- package/dist/business.d.mts +2 -2
- package/dist/business.mjs +3 -3
- package/dist/card-programs.d.mts +4 -4
- package/dist/card-programs.mjs +6 -6
- package/dist/{cards-BfgPcR38.mjs → cards-DNZQtrd7.mjs} +1 -1
- package/dist/cards.d.mts +10 -10
- package/dist/cards.mjs +13 -13
- package/dist/cashbacks.d.mts +3 -3
- package/dist/cashbacks.mjs +5 -5
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +2 -2
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/departments.d.mts +6 -6
- package/dist/departments.mjs +8 -8
- package/dist/dist-Bbp6t-WQ.mjs +74 -0
- package/dist/entities.d.mts +3 -3
- package/dist/entities.mjs +5 -5
- package/dist/{errors-Dm2DruuS.d.mts → errors-TrirAChI.d.mts} +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{factory-pbmCYnqr.mjs → factory-hiMPmrYD.mjs} +1 -2
- package/dist/{integration-D6jpX1pZ.d.mts → integration-BTjaW9hR.d.mts} +3 -4
- package/dist/{integration-8czEQ_pK.mjs → integration-BczMK0aE.mjs} +95 -3
- package/dist/limits.d.mts +6 -6
- package/dist/limits.mjs +8 -8
- package/dist/locations.d.mts +6 -6
- package/dist/locations.mjs +8 -8
- package/dist/memos.d.mts +3 -3
- package/dist/memos.mjs +5 -5
- package/dist/{new-resources-BBJsJEjT.mjs → new-resources-Cj_YECLc.mjs} +1 -1
- package/dist/{organization-BSaEpvBn.mjs → organization-BdyZhkYN.mjs} +1 -1
- package/dist/purchase-orders.d.mts +6 -6
- package/dist/purchase-orders.mjs +5 -5
- package/dist/receipt-integrations.d.mts +3 -3
- package/dist/receipt-integrations.mjs +4 -4
- package/dist/{receipts-STq41c2M.mjs → receipts-DKq5Kjhr.mjs} +1 -1
- package/dist/receipts.d.mts +4 -4
- package/dist/receipts.mjs +6 -6
- package/dist/{reimbursements-OknrZUMF.mjs → reimbursements--xBvXROu.mjs} +1 -1
- package/dist/reimbursements.d.mts +6 -6
- package/dist/reimbursements.mjs +5 -5
- package/dist/schemas/index.d.mts +3 -3
- package/dist/schemas/index.mjs +15 -15
- package/dist/spend-programs.d.mts +3 -3
- package/dist/spend-programs.mjs +5 -5
- package/dist/spend-requests.d.mts +4 -4
- package/dist/spend-requests.mjs +6 -6
- package/dist/statements.d.mts +3 -3
- package/dist/statements.mjs +5 -5
- package/dist/{transactions-Djd0oIGK.mjs → transactions-IIG8obly.mjs} +1 -1
- package/dist/transactions.d.mts +9 -9
- package/dist/transactions.mjs +6 -6
- package/dist/{transfers-WBQZVdGP.mjs → transfers-C-76qq3o.mjs} +1 -1
- package/dist/transfers.d.mts +9 -9
- package/dist/transfers.mjs +5 -5
- package/dist/triggers/index.d.mts +3 -3
- package/dist/triggers/index.mjs +11 -11
- package/dist/unified-requests.d.mts +3 -3
- package/dist/unified-requests.mjs +5 -5
- package/dist/{users-ufcXrfNK.mjs → users-Bx4SR4el.mjs} +1 -1
- package/dist/users.d.mts +7 -7
- package/dist/users.mjs +9 -9
- package/dist/vendor-bank-accounts.d.mts +6 -6
- package/dist/vendor-bank-accounts.mjs +8 -8
- package/dist/{vendors-gH-w9b_R.d.mts → vendors-De3fNIYJ.d.mts} +32 -32
- package/dist/{vendors-Bx1cgXwC.mjs → vendors-lAh0yain.mjs} +1 -1
- package/dist/vendors.d.mts +6 -6
- package/dist/vendors.mjs +8 -8
- package/dist/verification.mjs +1 -1
- package/dist/{webhook-CsbvcgrC.mjs → webhook-CzjBDCWU.mjs} +1 -1
- package/dist/{webhooks-mgmt-d1xgVpWx.mjs → webhooks-mgmt--fU1Uxfa.mjs} +1 -1
- package/dist/webhooks.d.mts +6 -6
- package/dist/webhooks.mjs +8 -8
- package/package.json +4 -4
- /package/dist/{common-CUpmNYXw.mjs → common-Dune7BHS.mjs} +0 -0
- /package/dist/{shared-CTTtP5gv.mjs → shared-3DudrK5L.mjs} +0 -0
- /package/dist/{webhook-Bp38YQE9.d.mts → webhook-sde3Ui2N.d.mts} +0 -0
package/dist/transactions.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/transactions.d.ts
|
|
@@ -12,11 +12,11 @@ declare const listTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
12
12
|
user_id: z.ZodOptional<z.ZodString>;
|
|
13
13
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
14
14
|
state: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
PENDING: "PENDING";
|
|
15
16
|
CLEARED: "CLEARED";
|
|
16
17
|
COMPLETION: "COMPLETION";
|
|
17
18
|
DECLINED: "DECLINED";
|
|
18
19
|
ERROR: "ERROR";
|
|
19
|
-
PENDING: "PENDING";
|
|
20
20
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
21
21
|
PROCESSING: "PROCESSING";
|
|
22
22
|
}>>;
|
|
@@ -49,11 +49,11 @@ declare const listTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
49
49
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
50
50
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
51
51
|
state: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
PENDING: "PENDING";
|
|
52
53
|
CLEARED: "CLEARED";
|
|
53
54
|
COMPLETION: "COMPLETION";
|
|
54
55
|
DECLINED: "DECLINED";
|
|
55
56
|
ERROR: "ERROR";
|
|
56
|
-
PENDING: "PENDING";
|
|
57
57
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
58
58
|
PROCESSING: "PROCESSING";
|
|
59
59
|
}>>;
|
|
@@ -67,7 +67,7 @@ declare const listTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
67
67
|
page: z.ZodOptional<z.ZodObject<{
|
|
68
68
|
next: z.ZodOptional<z.ZodString>;
|
|
69
69
|
}, z.core.$strip>>;
|
|
70
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
70
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
71
71
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
72
72
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
73
73
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -92,11 +92,11 @@ declare const getTransaction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
92
92
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
93
93
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
94
94
|
state: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
PENDING: "PENDING";
|
|
95
96
|
CLEARED: "CLEARED";
|
|
96
97
|
COMPLETION: "COMPLETION";
|
|
97
98
|
DECLINED: "DECLINED";
|
|
98
99
|
ERROR: "ERROR";
|
|
99
|
-
PENDING: "PENDING";
|
|
100
100
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
101
101
|
PROCESSING: "PROCESSING";
|
|
102
102
|
}>>;
|
|
@@ -106,7 +106,7 @@ declare const getTransaction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
106
106
|
amountCents: z.ZodNumber;
|
|
107
107
|
currency: z.ZodString;
|
|
108
108
|
}, z.core.$strip>>;
|
|
109
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
109
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
110
110
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
111
111
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
112
112
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -120,11 +120,11 @@ declare const listAllTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
120
120
|
user_id: z.ZodOptional<z.ZodString>;
|
|
121
121
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
122
122
|
state: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
PENDING: "PENDING";
|
|
123
124
|
CLEARED: "CLEARED";
|
|
124
125
|
COMPLETION: "COMPLETION";
|
|
125
126
|
DECLINED: "DECLINED";
|
|
126
127
|
ERROR: "ERROR";
|
|
127
|
-
PENDING: "PENDING";
|
|
128
128
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
129
129
|
PROCESSING: "PROCESSING";
|
|
130
130
|
}>>;
|
|
@@ -157,11 +157,11 @@ declare const listAllTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
157
157
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
158
158
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
159
159
|
state: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
PENDING: "PENDING";
|
|
160
161
|
CLEARED: "CLEARED";
|
|
161
162
|
COMPLETION: "COMPLETION";
|
|
162
163
|
DECLINED: "DECLINED";
|
|
163
164
|
ERROR: "ERROR";
|
|
164
|
-
PENDING: "PENDING";
|
|
165
165
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
166
166
|
PROCESSING: "PROCESSING";
|
|
167
167
|
}>>;
|
|
@@ -172,7 +172,7 @@ declare const listAllTransactions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
172
172
|
currency: z.ZodString;
|
|
173
173
|
}, z.core.$strip>>;
|
|
174
174
|
}, z.core.$loose>>;
|
|
175
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
175
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
176
176
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
177
177
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
178
178
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/transactions.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { i as rampTransactionSchema, n as rampTransactionListInputSchema, r as rampTransactionListSchema, t as rampTransactionGetInputSchema } from "./transactions-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { i as rampTransactionSchema, n as rampTransactionListInputSchema, r as rampTransactionListSchema, t as rampTransactionGetInputSchema } from "./transactions-IIG8obly.mjs";
|
|
3
|
+
import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
|
|
4
|
+
import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/transactions.ts
|
|
@@ -9,7 +9,7 @@ function clientFor(credentials, options) {
|
|
|
9
9
|
return createRampClient(credentials, options);
|
|
10
10
|
}
|
|
11
11
|
const listTransactions = rampOperation({
|
|
12
|
-
id: "
|
|
12
|
+
id: "ramp.list-transactions",
|
|
13
13
|
name: "List Transactions",
|
|
14
14
|
description: "List Ramp card transactions with optional filters (date range, amount, merchant, user, state). Returns a single page of results; use `cursor` to paginate.",
|
|
15
15
|
input: rampTransactionListInputSchema,
|
|
@@ -37,7 +37,7 @@ const listTransactions = rampOperation({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
const getTransaction = rampOperation({
|
|
40
|
-
id: "
|
|
40
|
+
id: "ramp.get-transaction",
|
|
41
41
|
name: "Get Transaction",
|
|
42
42
|
description: "Fetch a single Ramp card transaction by id.",
|
|
43
43
|
input: rampTransactionGetInputSchema,
|
|
@@ -48,7 +48,7 @@ const getTransaction = rampOperation({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const listAllTransactions = rampOperation({
|
|
51
|
-
id: "
|
|
51
|
+
id: "ramp.list-all-transactions",
|
|
52
52
|
name: "List All Transactions (auto-paginated)",
|
|
53
53
|
description: "Stream every matching Ramp transaction by following `page.next` until exhausted. Use with care on large date ranges.",
|
|
54
54
|
input: rampTransactionListInputSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as rampListPaginationInputSchema, c as rampMoneySchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema } from "./common-
|
|
1
|
+
import { a as rampListPaginationInputSchema, c as rampMoneySchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema } from "./common-Dune7BHS.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/transfers.ts
|
package/dist/transfers.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as zod from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import * as zod from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
5
|
|
|
@@ -8,10 +8,10 @@ declare const listTransfers: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
8
8
|
entity_id: zod.ZodOptional<zod.ZodString>;
|
|
9
9
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
10
10
|
PENDING: "PENDING";
|
|
11
|
-
PROCESSING: "PROCESSING";
|
|
12
11
|
CANCELED: "CANCELED";
|
|
13
|
-
|
|
12
|
+
PROCESSING: "PROCESSING";
|
|
14
13
|
COMPLETED: "COMPLETED";
|
|
14
|
+
FAILED: "FAILED";
|
|
15
15
|
}>>;
|
|
16
16
|
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
17
17
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
@@ -24,10 +24,10 @@ declare const listTransfers: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
24
24
|
}, zod_v4_core0.$strip>>;
|
|
25
25
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
26
26
|
PENDING: "PENDING";
|
|
27
|
-
PROCESSING: "PROCESSING";
|
|
28
27
|
CANCELED: "CANCELED";
|
|
29
|
-
|
|
28
|
+
PROCESSING: "PROCESSING";
|
|
30
29
|
COMPLETED: "COMPLETED";
|
|
30
|
+
FAILED: "FAILED";
|
|
31
31
|
}>>;
|
|
32
32
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
settled_at: zod.ZodOptional<zod.ZodString>;
|
|
@@ -38,7 +38,7 @@ declare const listTransfers: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
38
38
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
39
39
|
next: zod.ZodOptional<zod.ZodString>;
|
|
40
40
|
}, zod_v4_core0.$strip>>;
|
|
41
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
41
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
42
42
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
43
43
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
44
44
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -53,17 +53,17 @@ declare const getTransfer: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
53
53
|
}, zod_v4_core0.$strip>>;
|
|
54
54
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
55
55
|
PENDING: "PENDING";
|
|
56
|
-
PROCESSING: "PROCESSING";
|
|
57
56
|
CANCELED: "CANCELED";
|
|
58
|
-
|
|
57
|
+
PROCESSING: "PROCESSING";
|
|
59
58
|
COMPLETED: "COMPLETED";
|
|
59
|
+
FAILED: "FAILED";
|
|
60
60
|
}>>;
|
|
61
61
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
62
62
|
settled_at: zod.ZodOptional<zod.ZodString>;
|
|
63
63
|
source_account: zod.ZodOptional<zod.ZodString>;
|
|
64
64
|
destination_account: zod.ZodOptional<zod.ZodString>;
|
|
65
65
|
entity_id: zod.ZodOptional<zod.ZodString>;
|
|
66
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
66
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
67
67
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
68
68
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
69
69
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
package/dist/transfers.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { a as rampTransferGetInputSchema, c as rampTransferSchema, o as rampTransferListInputSchema, s as rampTransferListSchema } from "./transfers-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { a as rampTransferGetInputSchema, c as rampTransferSchema, o as rampTransferListInputSchema, s as rampTransferListSchema } from "./transfers-C-76qq3o.mjs";
|
|
3
|
+
import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
|
|
4
|
+
import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/transfers.ts
|
|
7
7
|
const listTransfers = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-transfers",
|
|
9
9
|
name: "List Transfers",
|
|
10
10
|
description: "List funding transfers between the connected Ramp business and external accounts.",
|
|
11
11
|
input: rampTransferListInputSchema,
|
|
@@ -21,7 +21,7 @@ const listTransfers = rampOperation({
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const getTransfer = rampOperation({
|
|
24
|
-
id: "
|
|
24
|
+
id: "ramp.get-transfer",
|
|
25
25
|
name: "Get Transfer",
|
|
26
26
|
description: "Fetch a transfer by id.",
|
|
27
27
|
input: rampTransferGetInputSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as ramp } from "../integration-
|
|
2
|
-
import { E as rampUserSchema, Ft as rampSpendRequestSchema, Kt as rampBillSchema, R as rampTransferSchema, W as rampTransactionSchema, X as rampReimbursementSchema, h as rampVendorSchema, it as rampApplicationSchema, lt as rampPurchaseOrderSchema, mt as rampUnifiedRequestSchema } from "../vendors-
|
|
1
|
+
import { i as ramp } from "../integration-BTjaW9hR.mjs";
|
|
2
|
+
import { E as rampUserSchema, Ft as rampSpendRequestSchema, Kt as rampBillSchema, R as rampTransferSchema, W as rampTransactionSchema, X as rampReimbursementSchema, h as rampVendorSchema, it as rampApplicationSchema, lt as rampPurchaseOrderSchema, mt as rampUnifiedRequestSchema } from "../vendors-De3fNIYJ.mjs";
|
|
3
|
+
import { Operation } from "@keystrokehq/core";
|
|
3
4
|
import { z } from "zod";
|
|
4
|
-
import { IntegrationTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
5
5
|
import { PollingTriggerManifest } from "@keystrokehq/core/trigger";
|
|
6
6
|
|
|
7
7
|
//#region src/triggers/polling-bindings.d.ts
|
package/dist/triggers/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as ramp } from "../integration-
|
|
1
|
+
import { n as ramp } from "../integration-BczMK0aE.mjs";
|
|
2
|
+
import { n as createPollingTriggerBindingFactory } from "../dist-Bbp6t-WQ.mjs";
|
|
2
3
|
import { createRampClient } from "../client.mjs";
|
|
3
|
-
import { l as rampBillSchema } from "../bills-
|
|
4
|
-
import { h as rampSpendRequestSchema } from "../business-
|
|
5
|
-
import { i as rampApplicationSchema, l as rampPurchaseOrderSchema, m as rampUnifiedRequestSchema } from "../new-resources-
|
|
6
|
-
import { i as rampReimbursementSchema } from "../reimbursements
|
|
7
|
-
import { i as rampTransactionSchema } from "../transactions-
|
|
8
|
-
import { c as rampTransferSchema } from "../transfers-
|
|
9
|
-
import { c as rampUserSchema } from "../users-
|
|
10
|
-
import { p as rampVendorSchema } from "../vendors-
|
|
4
|
+
import { l as rampBillSchema } from "../bills-D7vZ5JRH.mjs";
|
|
5
|
+
import { h as rampSpendRequestSchema } from "../business-DAD870OI.mjs";
|
|
6
|
+
import { i as rampApplicationSchema, l as rampPurchaseOrderSchema, m as rampUnifiedRequestSchema } from "../new-resources-Cj_YECLc.mjs";
|
|
7
|
+
import { i as rampReimbursementSchema } from "../reimbursements--xBvXROu.mjs";
|
|
8
|
+
import { i as rampTransactionSchema } from "../transactions-IIG8obly.mjs";
|
|
9
|
+
import { c as rampTransferSchema } from "../transfers-C-76qq3o.mjs";
|
|
10
|
+
import { c as rampUserSchema } from "../users-Bx4SR4el.mjs";
|
|
11
|
+
import { p as rampVendorSchema } from "../vendors-lAh0yain.mjs";
|
|
11
12
|
import { z } from "zod";
|
|
12
|
-
import { createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
13
13
|
|
|
14
14
|
//#region src/triggers/polling-bindings.ts
|
|
15
15
|
/**
|
|
@@ -23,7 +23,7 @@ function responseShape(item) {
|
|
|
23
23
|
}
|
|
24
24
|
function pollListEndpoint(path, itemSchema, queryBuilder) {
|
|
25
25
|
return async (ctx) => {
|
|
26
|
-
const client = createRampClient(ctx.credentials["
|
|
26
|
+
const client = createRampClient(ctx.credentials["ramp"]);
|
|
27
27
|
const query = queryBuilder ? queryBuilder(ctx.lastPolledAt) : {};
|
|
28
28
|
const filtered = Object.fromEntries(Object.entries(query).filter(([, v]) => v !== void 0));
|
|
29
29
|
return { data: ((await client.request(path, { query: filtered }))?.data ?? []).map((item) => itemSchema.parse(item)) };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as zod from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import * as zod from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
5
|
|
|
@@ -36,7 +36,7 @@ declare const listUnifiedRequests: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
36
36
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
37
37
|
next: zod.ZodOptional<zod.ZodString>;
|
|
38
38
|
}, zod_v4_core0.$strip>>;
|
|
39
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
39
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
40
40
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
41
41
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
42
42
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -58,7 +58,7 @@ declare const getUnifiedRequest: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
58
58
|
updated_at: zod.ZodOptional<zod.ZodString>;
|
|
59
59
|
resource_id: zod.ZodOptional<zod.ZodString>;
|
|
60
60
|
resource_type: zod.ZodOptional<zod.ZodString>;
|
|
61
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
61
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
62
62
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
63
63
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
64
64
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { d as rampUnifiedRequestGetInputSchema, f as rampUnifiedRequestListInputSchema, m as rampUnifiedRequestSchema, p as rampUnifiedRequestListSchema } from "./new-resources-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { d as rampUnifiedRequestGetInputSchema, f as rampUnifiedRequestListInputSchema, m as rampUnifiedRequestSchema, p as rampUnifiedRequestListSchema } from "./new-resources-Cj_YECLc.mjs";
|
|
3
|
+
import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
|
|
4
|
+
import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/unified-requests.ts
|
|
7
7
|
const listUnifiedRequests = rampOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "ramp.list-unified-requests",
|
|
9
9
|
name: "List Unified Requests",
|
|
10
10
|
description: "List Ramp \"unified requests\" — the normalised request object spanning spend requests, bills, applications, and purchase orders.",
|
|
11
11
|
input: rampUnifiedRequestListInputSchema,
|
|
@@ -22,7 +22,7 @@ const listUnifiedRequests = rampOperation({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const getUnifiedRequest = rampOperation({
|
|
25
|
-
id: "
|
|
25
|
+
id: "ramp.get-unified-request",
|
|
26
26
|
name: "Get Unified Request",
|
|
27
27
|
description: "Fetch a unified request by id.",
|
|
28
28
|
input: rampUnifiedRequestGetInputSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as rampListPaginationInputSchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema } from "./common-
|
|
1
|
+
import { a as rampListPaginationInputSchema, f as rampTimestampSchema, i as rampIdSchema, o as rampListResponseSchema } from "./common-Dune7BHS.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/users.ts
|
package/dist/users.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/users.d.ts
|
|
@@ -54,7 +54,7 @@ declare const listUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
54
|
page: z.ZodOptional<z.ZodObject<{
|
|
55
55
|
next: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
57
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
58
58
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
59
59
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
60
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -90,7 +90,7 @@ declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
90
90
|
}>>;
|
|
91
91
|
is_manager: z.ZodOptional<z.ZodBoolean>;
|
|
92
92
|
phone: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
93
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
94
94
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
95
95
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
96
96
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -119,7 +119,7 @@ declare const inviteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
119
119
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
120
120
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
121
121
|
created_at: z.ZodOptional<z.ZodString>;
|
|
122
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
122
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
123
123
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
124
124
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
125
125
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -169,7 +169,7 @@ declare const updateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
169
169
|
}>>;
|
|
170
170
|
is_manager: z.ZodOptional<z.ZodBoolean>;
|
|
171
171
|
phone: z.ZodOptional<z.ZodString>;
|
|
172
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
172
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
173
173
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
174
174
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
175
175
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -182,7 +182,7 @@ declare const deactivateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
182
182
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
183
183
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
184
184
|
created_at: z.ZodOptional<z.ZodString>;
|
|
185
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
185
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
186
186
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
187
187
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
188
188
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -195,7 +195,7 @@ declare const getDeferredTask: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
195
195
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
196
196
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
197
197
|
created_at: z.ZodOptional<z.ZodString>;
|
|
198
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
198
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
199
199
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
200
200
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
201
201
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
package/dist/users.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { a as rampUserListInputSchema, c as rampUserSchema, i as rampUserInviteInputSchema, n as rampUserDeactivateInputSchema, o as rampUserListSchema, r as rampUserGetInputSchema, t as rampDeferredTaskSchema, u as rampUserUpdateInputSchema } from "./users-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { a as rampUserListInputSchema, c as rampUserSchema, i as rampUserInviteInputSchema, n as rampUserDeactivateInputSchema, o as rampUserListSchema, r as rampUserGetInputSchema, t as rampDeferredTaskSchema, u as rampUserUpdateInputSchema } from "./users-Bx4SR4el.mjs";
|
|
3
|
+
import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
|
|
4
|
+
import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/users.ts
|
|
8
8
|
const listUsers = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-users",
|
|
10
10
|
name: "List Users",
|
|
11
11
|
description: "List Ramp users visible to the connected credential. Supports filtering by department, location, entity, role, and email.",
|
|
12
12
|
input: rampUserListInputSchema,
|
|
@@ -26,7 +26,7 @@ const listUsers = rampOperation({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const getUser = rampOperation({
|
|
29
|
-
id: "
|
|
29
|
+
id: "ramp.get-user",
|
|
30
30
|
name: "Get User",
|
|
31
31
|
description: "Fetch a Ramp user by id.",
|
|
32
32
|
input: rampUserGetInputSchema,
|
|
@@ -37,7 +37,7 @@ const getUser = rampOperation({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
const inviteUser = rampOperation({
|
|
40
|
-
id: "
|
|
40
|
+
id: "ramp.invite-user",
|
|
41
41
|
name: "Invite User",
|
|
42
42
|
description: "Invite a new user to the Ramp business via a deferred task.",
|
|
43
43
|
input: rampUserInviteInputSchema,
|
|
@@ -54,7 +54,7 @@ const inviteUser = rampOperation({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const updateUser = rampOperation({
|
|
57
|
-
id: "
|
|
57
|
+
id: "ramp.update-user",
|
|
58
58
|
name: "Update User",
|
|
59
59
|
description: "Update assignable fields on a Ramp user (department, location, manager, role, is_manager).",
|
|
60
60
|
input: rampUserUpdateInputSchema,
|
|
@@ -71,7 +71,7 @@ const updateUser = rampOperation({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
const deactivateUser = rampOperation({
|
|
74
|
-
id: "
|
|
74
|
+
id: "ramp.deactivate-user",
|
|
75
75
|
name: "Deactivate User",
|
|
76
76
|
description: "Deactivate a Ramp user by id. Returns the deferred task tracking the change.",
|
|
77
77
|
input: rampUserDeactivateInputSchema,
|
|
@@ -86,7 +86,7 @@ const deactivateUser = rampOperation({
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
const getDeferredTask = rampOperation({
|
|
89
|
-
id: "
|
|
89
|
+
id: "ramp.get-deferred-task",
|
|
90
90
|
name: "Get Deferred Task",
|
|
91
91
|
description: "Poll the status of a deferred Ramp task (invite, termination, etc.).",
|
|
92
92
|
input: z.object({ taskId: z.string().trim().min(1) }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/vendor-bank-accounts.d.ts
|
|
@@ -24,7 +24,7 @@ declare const listVendorBankAccounts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
24
24
|
page: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
next: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
27
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
28
28
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
29
29
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
30
30
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -43,7 +43,7 @@ declare const getVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
43
43
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
44
44
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
created_at: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
46
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
47
47
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
48
48
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
49
49
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -71,7 +71,7 @@ declare const createVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
71
71
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
72
72
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
73
73
|
created_at: z.ZodOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
74
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
75
75
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
76
76
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
77
77
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -92,7 +92,7 @@ declare const updateVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
92
92
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
93
93
|
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
94
94
|
created_at: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
95
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
96
96
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
97
97
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
98
98
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -101,7 +101,7 @@ declare const deleteVendorBankAccount: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
101
101
|
vendorBankAccountId: z.ZodString;
|
|
102
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
103
103
|
success: z.ZodBoolean;
|
|
104
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
104
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", z.ZodObject<{
|
|
105
105
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
106
106
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
107
107
|
RAMP_ACCESS_TOKEN: z.ZodString;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
|
-
import { a as rampVendorBankAccountListSchema, i as rampVendorBankAccountListInputSchema, n as rampVendorBankAccountDeleteInputSchema, o as rampVendorBankAccountSchema, r as rampVendorBankAccountGetInputSchema, s as rampVendorBankAccountUpdateInputSchema, t as rampVendorBankAccountCreateInputSchema } from "./vendors-
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
4
|
-
import { t as omitUndefined } from "./shared-
|
|
2
|
+
import { a as rampVendorBankAccountListSchema, i as rampVendorBankAccountListInputSchema, n as rampVendorBankAccountDeleteInputSchema, o as rampVendorBankAccountSchema, r as rampVendorBankAccountGetInputSchema, s as rampVendorBankAccountUpdateInputSchema, t as rampVendorBankAccountCreateInputSchema } from "./vendors-lAh0yain.mjs";
|
|
3
|
+
import { t as rampOperation } from "./factory-hiMPmrYD.mjs";
|
|
4
|
+
import { t as omitUndefined } from "./shared-3DudrK5L.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/vendor-bank-accounts.ts
|
|
8
8
|
const listVendorBankAccounts = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-vendor-bank-accounts",
|
|
10
10
|
name: "List Vendor Bank Accounts",
|
|
11
11
|
description: "List bank accounts linked to Ramp vendors, optionally filtered by vendor.",
|
|
12
12
|
input: rampVendorBankAccountListInputSchema,
|
|
@@ -22,7 +22,7 @@ const listVendorBankAccounts = rampOperation({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const getVendorBankAccount = rampOperation({
|
|
25
|
-
id: "
|
|
25
|
+
id: "ramp.get-vendor-bank-account",
|
|
26
26
|
name: "Get Vendor Bank Account",
|
|
27
27
|
description: "Fetch a vendor bank account by id.",
|
|
28
28
|
input: rampVendorBankAccountGetInputSchema,
|
|
@@ -33,7 +33,7 @@ const getVendorBankAccount = rampOperation({
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
const createVendorBankAccount = rampOperation({
|
|
36
|
-
id: "
|
|
36
|
+
id: "ramp.create-vendor-bank-account",
|
|
37
37
|
name: "Create Vendor Bank Account",
|
|
38
38
|
description: "Register a new bank account for an existing Ramp vendor.",
|
|
39
39
|
input: rampVendorBankAccountCreateInputSchema,
|
|
@@ -50,7 +50,7 @@ const createVendorBankAccount = rampOperation({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const updateVendorBankAccount = rampOperation({
|
|
53
|
-
id: "
|
|
53
|
+
id: "ramp.update-vendor-bank-account",
|
|
54
54
|
name: "Update Vendor Bank Account",
|
|
55
55
|
description: "Update editable metadata on a vendor bank account.",
|
|
56
56
|
input: rampVendorBankAccountUpdateInputSchema,
|
|
@@ -67,7 +67,7 @@ const updateVendorBankAccount = rampOperation({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
const deleteVendorBankAccount = rampOperation({
|
|
70
|
-
id: "
|
|
70
|
+
id: "ramp.delete-vendor-bank-account",
|
|
71
71
|
name: "Delete Vendor Bank Account",
|
|
72
72
|
description: "Delete a vendor bank account by id.",
|
|
73
73
|
input: rampVendorBankAccountDeleteInputSchema,
|