@keystrokehq/ramp 0.0.7 → 0.0.8
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/accounting-fields.mjs +7 -7
- package/dist/accounting-gl-accounts.mjs +3 -3
- package/dist/accounting-subsidiaries.mjs +3 -3
- package/dist/accounting-sync.mjs +3 -3
- package/dist/accounting-tracking-categories.mjs +2 -2
- package/dist/accounting-vendors.mjs +3 -3
- package/dist/applications.d.mts +6 -6
- package/dist/applications.mjs +2 -2
- package/dist/bills.d.mts +24 -24
- package/dist/bills.mjs +7 -7
- package/dist/business.mjs +1 -1
- package/dist/card-programs.mjs +3 -3
- package/dist/cards.mjs +9 -9
- package/dist/cashbacks.mjs +2 -2
- package/dist/client.d.mts +1 -1
- package/dist/departments.mjs +5 -5
- package/dist/entities.mjs +2 -2
- package/dist/{errors-Dm2DruuS.d.mts → errors-CIJf9-v0.d.mts} +1 -1
- package/dist/limits.d.mts +6 -6
- package/dist/limits.mjs +5 -5
- package/dist/locations.mjs +5 -5
- package/dist/memos.mjs +2 -2
- package/dist/purchase-orders.d.mts +6 -6
- package/dist/purchase-orders.mjs +2 -2
- package/dist/receipt-integrations.mjs +2 -2
- package/dist/receipts.mjs +3 -3
- package/dist/reimbursements.d.mts +6 -6
- package/dist/reimbursements.mjs +2 -2
- package/dist/schemas/index.d.mts +7 -7
- package/dist/spend-programs.mjs +2 -2
- package/dist/spend-requests.d.mts +3 -3
- package/dist/spend-requests.mjs +3 -3
- package/dist/statements.mjs +2 -2
- package/dist/transactions.d.mts +10 -10
- package/dist/transactions.mjs +3 -3
- package/dist/transfers.d.mts +6 -6
- package/dist/transfers.mjs +2 -2
- package/dist/triggers/index.d.mts +1 -1
- package/dist/unified-requests.d.mts +3 -3
- package/dist/unified-requests.mjs +2 -2
- package/dist/users.mjs +6 -6
- package/dist/vendor-bank-accounts.mjs +5 -5
- package/dist/{vendors-gH-w9b_R.d.mts → vendors-oZvKUHvt.d.mts} +60 -60
- package/dist/vendors.mjs +5 -5
- package/dist/webhooks.mjs +5 -5
- package/package.json +2 -2
package/dist/transfers.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.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,5 +1,5 @@
|
|
|
1
1
|
import { i as ramp } from "../integration-D6jpX1pZ.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-
|
|
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-oZvKUHvt.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { IntegrationTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
5
5
|
import { PollingTriggerManifest } from "@keystrokehq/core/trigger";
|
|
@@ -8,8 +8,8 @@ declare const listUnifiedRequests: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
8
8
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
9
9
|
PENDING: "PENDING";
|
|
10
10
|
APPROVED: "APPROVED";
|
|
11
|
-
CANCELED: "CANCELED";
|
|
12
11
|
DENIED: "DENIED";
|
|
12
|
+
CANCELED: "CANCELED";
|
|
13
13
|
FULFILLED: "FULFILLED";
|
|
14
14
|
}>>;
|
|
15
15
|
request_type: zod.ZodOptional<zod.ZodString>;
|
|
@@ -22,8 +22,8 @@ declare const listUnifiedRequests: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
22
22
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
23
23
|
PENDING: "PENDING";
|
|
24
24
|
APPROVED: "APPROVED";
|
|
25
|
-
CANCELED: "CANCELED";
|
|
26
25
|
DENIED: "DENIED";
|
|
26
|
+
CANCELED: "CANCELED";
|
|
27
27
|
FULFILLED: "FULFILLED";
|
|
28
28
|
}>>;
|
|
29
29
|
request_type: zod.ZodOptional<zod.ZodString>;
|
|
@@ -48,8 +48,8 @@ declare const getUnifiedRequest: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
48
48
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
49
49
|
PENDING: "PENDING";
|
|
50
50
|
APPROVED: "APPROVED";
|
|
51
|
-
CANCELED: "CANCELED";
|
|
52
51
|
DENIED: "DENIED";
|
|
52
|
+
CANCELED: "CANCELED";
|
|
53
53
|
FULFILLED: "FULFILLED";
|
|
54
54
|
}>>;
|
|
55
55
|
request_type: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5,7 +5,7 @@ import { t as omitUndefined } from "./shared-CTTtP5gv.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,
|
package/dist/users.mjs
CHANGED
|
@@ -6,7 +6,7 @@ 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) }),
|
|
@@ -6,7 +6,7 @@ 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,
|
|
@@ -3,13 +3,13 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/schemas/bills.d.ts
|
|
4
4
|
declare const rampBillStatusSchema: z.ZodEnum<{
|
|
5
5
|
PENDING: "PENDING";
|
|
6
|
-
OPEN: "OPEN";
|
|
7
|
-
DRAFT: "DRAFT";
|
|
8
6
|
APPROVED: "APPROVED";
|
|
7
|
+
CANCELED: "CANCELED";
|
|
9
8
|
REJECTED: "REJECTED";
|
|
10
9
|
PAID: "PAID";
|
|
11
|
-
|
|
10
|
+
DRAFT: "DRAFT";
|
|
12
11
|
FAILED: "FAILED";
|
|
12
|
+
OPEN: "OPEN";
|
|
13
13
|
SCHEDULED: "SCHEDULED";
|
|
14
14
|
}>;
|
|
15
15
|
declare const rampBillLineItemSchema: z.ZodObject<{
|
|
@@ -35,13 +35,13 @@ declare const rampBillSchema: z.ZodObject<{
|
|
|
35
35
|
memo: z.ZodOptional<z.ZodString>;
|
|
36
36
|
status: z.ZodOptional<z.ZodEnum<{
|
|
37
37
|
PENDING: "PENDING";
|
|
38
|
-
OPEN: "OPEN";
|
|
39
|
-
DRAFT: "DRAFT";
|
|
40
38
|
APPROVED: "APPROVED";
|
|
39
|
+
CANCELED: "CANCELED";
|
|
41
40
|
REJECTED: "REJECTED";
|
|
42
41
|
PAID: "PAID";
|
|
43
|
-
|
|
42
|
+
DRAFT: "DRAFT";
|
|
44
43
|
FAILED: "FAILED";
|
|
44
|
+
OPEN: "OPEN";
|
|
45
45
|
SCHEDULED: "SCHEDULED";
|
|
46
46
|
}>>;
|
|
47
47
|
amount: z.ZodOptional<z.ZodObject<{
|
|
@@ -71,13 +71,13 @@ declare const rampBillListInputSchema: z.ZodObject<{
|
|
|
71
71
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
72
72
|
status: z.ZodOptional<z.ZodEnum<{
|
|
73
73
|
PENDING: "PENDING";
|
|
74
|
-
OPEN: "OPEN";
|
|
75
|
-
DRAFT: "DRAFT";
|
|
76
74
|
APPROVED: "APPROVED";
|
|
75
|
+
CANCELED: "CANCELED";
|
|
77
76
|
REJECTED: "REJECTED";
|
|
78
77
|
PAID: "PAID";
|
|
79
|
-
|
|
78
|
+
DRAFT: "DRAFT";
|
|
80
79
|
FAILED: "FAILED";
|
|
80
|
+
OPEN: "OPEN";
|
|
81
81
|
SCHEDULED: "SCHEDULED";
|
|
82
82
|
}>>;
|
|
83
83
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
@@ -97,13 +97,13 @@ declare const rampBillListSchema: z.ZodObject<{
|
|
|
97
97
|
memo: z.ZodOptional<z.ZodString>;
|
|
98
98
|
status: z.ZodOptional<z.ZodEnum<{
|
|
99
99
|
PENDING: "PENDING";
|
|
100
|
-
OPEN: "OPEN";
|
|
101
|
-
DRAFT: "DRAFT";
|
|
102
100
|
APPROVED: "APPROVED";
|
|
101
|
+
CANCELED: "CANCELED";
|
|
103
102
|
REJECTED: "REJECTED";
|
|
104
103
|
PAID: "PAID";
|
|
105
|
-
|
|
104
|
+
DRAFT: "DRAFT";
|
|
106
105
|
FAILED: "FAILED";
|
|
106
|
+
OPEN: "OPEN";
|
|
107
107
|
SCHEDULED: "SCHEDULED";
|
|
108
108
|
}>>;
|
|
109
109
|
amount: z.ZodOptional<z.ZodObject<{
|
|
@@ -256,8 +256,8 @@ declare const rampSpendProgramGetInputSchema: z.ZodObject<{
|
|
|
256
256
|
declare const rampSpendRequestStatusSchema: z.ZodEnum<{
|
|
257
257
|
PENDING: "PENDING";
|
|
258
258
|
APPROVED: "APPROVED";
|
|
259
|
-
CANCELED: "CANCELED";
|
|
260
259
|
DENIED: "DENIED";
|
|
260
|
+
CANCELED: "CANCELED";
|
|
261
261
|
FULFILLED: "FULFILLED";
|
|
262
262
|
}>;
|
|
263
263
|
declare const rampSpendRequestSchema: z.ZodObject<{
|
|
@@ -266,8 +266,8 @@ declare const rampSpendRequestSchema: z.ZodObject<{
|
|
|
266
266
|
status: z.ZodOptional<z.ZodEnum<{
|
|
267
267
|
PENDING: "PENDING";
|
|
268
268
|
APPROVED: "APPROVED";
|
|
269
|
-
CANCELED: "CANCELED";
|
|
270
269
|
DENIED: "DENIED";
|
|
270
|
+
CANCELED: "CANCELED";
|
|
271
271
|
FULFILLED: "FULFILLED";
|
|
272
272
|
}>>;
|
|
273
273
|
justification: z.ZodOptional<z.ZodString>;
|
|
@@ -288,8 +288,8 @@ declare const rampSpendRequestListInputSchema: z.ZodObject<{
|
|
|
288
288
|
status: z.ZodOptional<z.ZodEnum<{
|
|
289
289
|
PENDING: "PENDING";
|
|
290
290
|
APPROVED: "APPROVED";
|
|
291
|
-
CANCELED: "CANCELED";
|
|
292
291
|
DENIED: "DENIED";
|
|
292
|
+
CANCELED: "CANCELED";
|
|
293
293
|
FULFILLED: "FULFILLED";
|
|
294
294
|
}>>;
|
|
295
295
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -303,8 +303,8 @@ declare const rampSpendRequestListSchema: z.ZodObject<{
|
|
|
303
303
|
status: z.ZodOptional<z.ZodEnum<{
|
|
304
304
|
PENDING: "PENDING";
|
|
305
305
|
APPROVED: "APPROVED";
|
|
306
|
-
CANCELED: "CANCELED";
|
|
307
306
|
DENIED: "DENIED";
|
|
307
|
+
CANCELED: "CANCELED";
|
|
308
308
|
FULFILLED: "FULFILLED";
|
|
309
309
|
}>>;
|
|
310
310
|
justification: z.ZodOptional<z.ZodString>;
|
|
@@ -349,10 +349,10 @@ type RampSpendRequestComment = z.infer<typeof rampSpendRequestCommentSchema>;
|
|
|
349
349
|
*/
|
|
350
350
|
declare const rampPurchaseOrderStatusSchema: z.ZodEnum<{
|
|
351
351
|
PENDING: "PENDING";
|
|
352
|
-
DRAFT: "DRAFT";
|
|
353
352
|
APPROVED: "APPROVED";
|
|
354
|
-
CANCELED: "CANCELED";
|
|
355
353
|
DENIED: "DENIED";
|
|
354
|
+
CANCELED: "CANCELED";
|
|
355
|
+
DRAFT: "DRAFT";
|
|
356
356
|
CLOSED: "CLOSED";
|
|
357
357
|
}>;
|
|
358
358
|
declare const rampPurchaseOrderSchema: z.ZodObject<{
|
|
@@ -360,10 +360,10 @@ declare const rampPurchaseOrderSchema: z.ZodObject<{
|
|
|
360
360
|
number: z.ZodOptional<z.ZodString>;
|
|
361
361
|
status: z.ZodOptional<z.ZodEnum<{
|
|
362
362
|
PENDING: "PENDING";
|
|
363
|
-
DRAFT: "DRAFT";
|
|
364
363
|
APPROVED: "APPROVED";
|
|
365
|
-
CANCELED: "CANCELED";
|
|
366
364
|
DENIED: "DENIED";
|
|
365
|
+
CANCELED: "CANCELED";
|
|
366
|
+
DRAFT: "DRAFT";
|
|
367
367
|
CLOSED: "CLOSED";
|
|
368
368
|
}>>;
|
|
369
369
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
@@ -379,10 +379,10 @@ type RampPurchaseOrder = z.infer<typeof rampPurchaseOrderSchema>;
|
|
|
379
379
|
declare const rampPurchaseOrderListInputSchema: z.ZodObject<{
|
|
380
380
|
status: z.ZodOptional<z.ZodEnum<{
|
|
381
381
|
PENDING: "PENDING";
|
|
382
|
-
DRAFT: "DRAFT";
|
|
383
382
|
APPROVED: "APPROVED";
|
|
384
|
-
CANCELED: "CANCELED";
|
|
385
383
|
DENIED: "DENIED";
|
|
384
|
+
CANCELED: "CANCELED";
|
|
385
|
+
DRAFT: "DRAFT";
|
|
386
386
|
CLOSED: "CLOSED";
|
|
387
387
|
}>>;
|
|
388
388
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
@@ -395,10 +395,10 @@ declare const rampPurchaseOrderListSchema: z.ZodObject<{
|
|
|
395
395
|
number: z.ZodOptional<z.ZodString>;
|
|
396
396
|
status: z.ZodOptional<z.ZodEnum<{
|
|
397
397
|
PENDING: "PENDING";
|
|
398
|
-
DRAFT: "DRAFT";
|
|
399
398
|
APPROVED: "APPROVED";
|
|
400
|
-
CANCELED: "CANCELED";
|
|
401
399
|
DENIED: "DENIED";
|
|
400
|
+
CANCELED: "CANCELED";
|
|
401
|
+
DRAFT: "DRAFT";
|
|
402
402
|
CLOSED: "CLOSED";
|
|
403
403
|
}>>;
|
|
404
404
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
@@ -419,20 +419,20 @@ declare const rampPurchaseOrderGetInputSchema: z.ZodObject<{
|
|
|
419
419
|
}, z.core.$strip>;
|
|
420
420
|
declare const rampApplicationStatusSchema: z.ZodEnum<{
|
|
421
421
|
PENDING: "PENDING";
|
|
422
|
-
DRAFT: "DRAFT";
|
|
423
422
|
APPROVED: "APPROVED";
|
|
424
|
-
CANCELED: "CANCELED";
|
|
425
423
|
DENIED: "DENIED";
|
|
424
|
+
CANCELED: "CANCELED";
|
|
425
|
+
DRAFT: "DRAFT";
|
|
426
426
|
}>;
|
|
427
427
|
declare const rampApplicationSchema: z.ZodObject<{
|
|
428
428
|
id: z.ZodString;
|
|
429
429
|
applicant_user_id: z.ZodOptional<z.ZodString>;
|
|
430
430
|
status: z.ZodOptional<z.ZodEnum<{
|
|
431
431
|
PENDING: "PENDING";
|
|
432
|
-
DRAFT: "DRAFT";
|
|
433
432
|
APPROVED: "APPROVED";
|
|
434
|
-
CANCELED: "CANCELED";
|
|
435
433
|
DENIED: "DENIED";
|
|
434
|
+
CANCELED: "CANCELED";
|
|
435
|
+
DRAFT: "DRAFT";
|
|
436
436
|
}>>;
|
|
437
437
|
created_at: z.ZodOptional<z.ZodString>;
|
|
438
438
|
application_type: z.ZodOptional<z.ZodString>;
|
|
@@ -441,10 +441,10 @@ type RampApplication = z.infer<typeof rampApplicationSchema>;
|
|
|
441
441
|
declare const rampApplicationListInputSchema: z.ZodObject<{
|
|
442
442
|
status: z.ZodOptional<z.ZodEnum<{
|
|
443
443
|
PENDING: "PENDING";
|
|
444
|
-
DRAFT: "DRAFT";
|
|
445
444
|
APPROVED: "APPROVED";
|
|
446
|
-
CANCELED: "CANCELED";
|
|
447
445
|
DENIED: "DENIED";
|
|
446
|
+
CANCELED: "CANCELED";
|
|
447
|
+
DRAFT: "DRAFT";
|
|
448
448
|
}>>;
|
|
449
449
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
450
450
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -455,10 +455,10 @@ declare const rampApplicationListSchema: z.ZodObject<{
|
|
|
455
455
|
applicant_user_id: z.ZodOptional<z.ZodString>;
|
|
456
456
|
status: z.ZodOptional<z.ZodEnum<{
|
|
457
457
|
PENDING: "PENDING";
|
|
458
|
-
DRAFT: "DRAFT";
|
|
459
458
|
APPROVED: "APPROVED";
|
|
460
|
-
CANCELED: "CANCELED";
|
|
461
459
|
DENIED: "DENIED";
|
|
460
|
+
CANCELED: "CANCELED";
|
|
461
|
+
DRAFT: "DRAFT";
|
|
462
462
|
}>>;
|
|
463
463
|
created_at: z.ZodOptional<z.ZodString>;
|
|
464
464
|
application_type: z.ZodOptional<z.ZodString>;
|
|
@@ -473,8 +473,8 @@ declare const rampApplicationGetInputSchema: z.ZodObject<{
|
|
|
473
473
|
declare const rampUnifiedRequestStatusSchema: z.ZodEnum<{
|
|
474
474
|
PENDING: "PENDING";
|
|
475
475
|
APPROVED: "APPROVED";
|
|
476
|
-
CANCELED: "CANCELED";
|
|
477
476
|
DENIED: "DENIED";
|
|
477
|
+
CANCELED: "CANCELED";
|
|
478
478
|
FULFILLED: "FULFILLED";
|
|
479
479
|
}>;
|
|
480
480
|
declare const rampUnifiedRequestSchema: z.ZodObject<{
|
|
@@ -482,8 +482,8 @@ declare const rampUnifiedRequestSchema: z.ZodObject<{
|
|
|
482
482
|
status: z.ZodOptional<z.ZodEnum<{
|
|
483
483
|
PENDING: "PENDING";
|
|
484
484
|
APPROVED: "APPROVED";
|
|
485
|
-
CANCELED: "CANCELED";
|
|
486
485
|
DENIED: "DENIED";
|
|
486
|
+
CANCELED: "CANCELED";
|
|
487
487
|
FULFILLED: "FULFILLED";
|
|
488
488
|
}>>;
|
|
489
489
|
request_type: z.ZodOptional<z.ZodString>;
|
|
@@ -498,8 +498,8 @@ declare const rampUnifiedRequestListInputSchema: z.ZodObject<{
|
|
|
498
498
|
status: z.ZodOptional<z.ZodEnum<{
|
|
499
499
|
PENDING: "PENDING";
|
|
500
500
|
APPROVED: "APPROVED";
|
|
501
|
-
CANCELED: "CANCELED";
|
|
502
501
|
DENIED: "DENIED";
|
|
502
|
+
CANCELED: "CANCELED";
|
|
503
503
|
FULFILLED: "FULFILLED";
|
|
504
504
|
}>>;
|
|
505
505
|
request_type: z.ZodOptional<z.ZodString>;
|
|
@@ -513,8 +513,8 @@ declare const rampUnifiedRequestListSchema: z.ZodObject<{
|
|
|
513
513
|
status: z.ZodOptional<z.ZodEnum<{
|
|
514
514
|
PENDING: "PENDING";
|
|
515
515
|
APPROVED: "APPROVED";
|
|
516
|
-
CANCELED: "CANCELED";
|
|
517
516
|
DENIED: "DENIED";
|
|
517
|
+
CANCELED: "CANCELED";
|
|
518
518
|
FULFILLED: "FULFILLED";
|
|
519
519
|
}>>;
|
|
520
520
|
request_type: z.ZodOptional<z.ZodString>;
|
|
@@ -535,11 +535,11 @@ declare const rampUnifiedRequestGetInputSchema: z.ZodObject<{
|
|
|
535
535
|
//#region src/schemas/reimbursements.d.ts
|
|
536
536
|
declare const rampReimbursementStateSchema: z.ZodEnum<{
|
|
537
537
|
PENDING: "PENDING";
|
|
538
|
-
DRAFT: "DRAFT";
|
|
539
538
|
APPROVED: "APPROVED";
|
|
539
|
+
CANCELED: "CANCELED";
|
|
540
540
|
REJECTED: "REJECTED";
|
|
541
541
|
PAID: "PAID";
|
|
542
|
-
|
|
542
|
+
DRAFT: "DRAFT";
|
|
543
543
|
}>;
|
|
544
544
|
declare const rampReimbursementSchema: z.ZodObject<{
|
|
545
545
|
id: z.ZodString;
|
|
@@ -554,11 +554,11 @@ declare const rampReimbursementSchema: z.ZodObject<{
|
|
|
554
554
|
memo: z.ZodOptional<z.ZodString>;
|
|
555
555
|
state: z.ZodOptional<z.ZodEnum<{
|
|
556
556
|
PENDING: "PENDING";
|
|
557
|
-
DRAFT: "DRAFT";
|
|
558
557
|
APPROVED: "APPROVED";
|
|
558
|
+
CANCELED: "CANCELED";
|
|
559
559
|
REJECTED: "REJECTED";
|
|
560
560
|
PAID: "PAID";
|
|
561
|
-
|
|
561
|
+
DRAFT: "DRAFT";
|
|
562
562
|
}>>;
|
|
563
563
|
receipts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
564
564
|
accounting_categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -572,11 +572,11 @@ declare const rampReimbursementListInputSchema: z.ZodObject<{
|
|
|
572
572
|
user_id: z.ZodOptional<z.ZodString>;
|
|
573
573
|
state: z.ZodOptional<z.ZodEnum<{
|
|
574
574
|
PENDING: "PENDING";
|
|
575
|
-
DRAFT: "DRAFT";
|
|
576
575
|
APPROVED: "APPROVED";
|
|
576
|
+
CANCELED: "CANCELED";
|
|
577
577
|
REJECTED: "REJECTED";
|
|
578
578
|
PAID: "PAID";
|
|
579
|
-
|
|
579
|
+
DRAFT: "DRAFT";
|
|
580
580
|
}>>;
|
|
581
581
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
582
582
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -597,11 +597,11 @@ declare const rampReimbursementListSchema: z.ZodObject<{
|
|
|
597
597
|
memo: z.ZodOptional<z.ZodString>;
|
|
598
598
|
state: z.ZodOptional<z.ZodEnum<{
|
|
599
599
|
PENDING: "PENDING";
|
|
600
|
-
DRAFT: "DRAFT";
|
|
601
600
|
APPROVED: "APPROVED";
|
|
601
|
+
CANCELED: "CANCELED";
|
|
602
602
|
REJECTED: "REJECTED";
|
|
603
603
|
PAID: "PAID";
|
|
604
|
-
|
|
604
|
+
DRAFT: "DRAFT";
|
|
605
605
|
}>>;
|
|
606
606
|
receipts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
607
607
|
accounting_categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -620,13 +620,13 @@ declare const rampReimbursementGetInputSchema: z.ZodObject<{
|
|
|
620
620
|
//#endregion
|
|
621
621
|
//#region src/schemas/transactions.d.ts
|
|
622
622
|
declare const rampTransactionStateSchema: z.ZodEnum<{
|
|
623
|
+
PENDING: "PENDING";
|
|
624
|
+
PROCESSING: "PROCESSING";
|
|
623
625
|
CLEARED: "CLEARED";
|
|
624
626
|
COMPLETION: "COMPLETION";
|
|
625
627
|
DECLINED: "DECLINED";
|
|
626
628
|
ERROR: "ERROR";
|
|
627
|
-
PENDING: "PENDING";
|
|
628
629
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
629
|
-
PROCESSING: "PROCESSING";
|
|
630
630
|
}>;
|
|
631
631
|
declare const rampTransactionSchema: z.ZodObject<{
|
|
632
632
|
id: z.ZodString;
|
|
@@ -646,13 +646,13 @@ declare const rampTransactionSchema: z.ZodObject<{
|
|
|
646
646
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
647
647
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
648
648
|
state: z.ZodOptional<z.ZodEnum<{
|
|
649
|
+
PENDING: "PENDING";
|
|
650
|
+
PROCESSING: "PROCESSING";
|
|
649
651
|
CLEARED: "CLEARED";
|
|
650
652
|
COMPLETION: "COMPLETION";
|
|
651
653
|
DECLINED: "DECLINED";
|
|
652
654
|
ERROR: "ERROR";
|
|
653
|
-
PENDING: "PENDING";
|
|
654
655
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
655
|
-
PROCESSING: "PROCESSING";
|
|
656
656
|
}>>;
|
|
657
657
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
658
658
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -671,13 +671,13 @@ declare const rampTransactionListInputSchema: z.ZodObject<{
|
|
|
671
671
|
user_id: z.ZodOptional<z.ZodString>;
|
|
672
672
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
673
673
|
state: z.ZodOptional<z.ZodEnum<{
|
|
674
|
+
PENDING: "PENDING";
|
|
675
|
+
PROCESSING: "PROCESSING";
|
|
674
676
|
CLEARED: "CLEARED";
|
|
675
677
|
COMPLETION: "COMPLETION";
|
|
676
678
|
DECLINED: "DECLINED";
|
|
677
679
|
ERROR: "ERROR";
|
|
678
|
-
PENDING: "PENDING";
|
|
679
680
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
680
|
-
PROCESSING: "PROCESSING";
|
|
681
681
|
}>>;
|
|
682
682
|
minAmount: z.ZodOptional<z.ZodNumber>;
|
|
683
683
|
maxAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -709,13 +709,13 @@ declare const rampTransactionListSchema: z.ZodObject<{
|
|
|
709
709
|
user_transaction_time: z.ZodOptional<z.ZodString>;
|
|
710
710
|
settlement_date: z.ZodOptional<z.ZodString>;
|
|
711
711
|
state: z.ZodOptional<z.ZodEnum<{
|
|
712
|
+
PENDING: "PENDING";
|
|
713
|
+
PROCESSING: "PROCESSING";
|
|
712
714
|
CLEARED: "CLEARED";
|
|
713
715
|
COMPLETION: "COMPLETION";
|
|
714
716
|
DECLINED: "DECLINED";
|
|
715
717
|
ERROR: "ERROR";
|
|
716
|
-
PENDING: "PENDING";
|
|
717
718
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
718
|
-
PROCESSING: "PROCESSING";
|
|
719
719
|
}>>;
|
|
720
720
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
721
721
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -735,10 +735,10 @@ declare const rampTransactionGetInputSchema: z.ZodObject<{
|
|
|
735
735
|
//#region src/schemas/transfers.d.ts
|
|
736
736
|
declare const rampTransferStatusSchema: z.ZodEnum<{
|
|
737
737
|
PENDING: "PENDING";
|
|
738
|
-
PROCESSING: "PROCESSING";
|
|
739
738
|
CANCELED: "CANCELED";
|
|
740
|
-
|
|
739
|
+
PROCESSING: "PROCESSING";
|
|
741
740
|
COMPLETED: "COMPLETED";
|
|
741
|
+
FAILED: "FAILED";
|
|
742
742
|
}>;
|
|
743
743
|
declare const rampTransferSchema: z.ZodObject<{
|
|
744
744
|
id: z.ZodString;
|
|
@@ -748,10 +748,10 @@ declare const rampTransferSchema: z.ZodObject<{
|
|
|
748
748
|
}, z.core.$strip>>;
|
|
749
749
|
status: z.ZodOptional<z.ZodEnum<{
|
|
750
750
|
PENDING: "PENDING";
|
|
751
|
-
PROCESSING: "PROCESSING";
|
|
752
751
|
CANCELED: "CANCELED";
|
|
753
|
-
|
|
752
|
+
PROCESSING: "PROCESSING";
|
|
754
753
|
COMPLETED: "COMPLETED";
|
|
754
|
+
FAILED: "FAILED";
|
|
755
755
|
}>>;
|
|
756
756
|
created_at: z.ZodOptional<z.ZodString>;
|
|
757
757
|
settled_at: z.ZodOptional<z.ZodString>;
|
|
@@ -764,10 +764,10 @@ declare const rampTransferListInputSchema: z.ZodObject<{
|
|
|
764
764
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
765
765
|
status: z.ZodOptional<z.ZodEnum<{
|
|
766
766
|
PENDING: "PENDING";
|
|
767
|
-
PROCESSING: "PROCESSING";
|
|
768
767
|
CANCELED: "CANCELED";
|
|
769
|
-
|
|
768
|
+
PROCESSING: "PROCESSING";
|
|
770
769
|
COMPLETED: "COMPLETED";
|
|
770
|
+
FAILED: "FAILED";
|
|
771
771
|
}>>;
|
|
772
772
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
773
773
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -781,10 +781,10 @@ declare const rampTransferListSchema: z.ZodObject<{
|
|
|
781
781
|
}, z.core.$strip>>;
|
|
782
782
|
status: z.ZodOptional<z.ZodEnum<{
|
|
783
783
|
PENDING: "PENDING";
|
|
784
|
-
PROCESSING: "PROCESSING";
|
|
785
784
|
CANCELED: "CANCELED";
|
|
786
|
-
|
|
785
|
+
PROCESSING: "PROCESSING";
|
|
787
786
|
COMPLETED: "COMPLETED";
|
|
787
|
+
FAILED: "FAILED";
|
|
788
788
|
}>>;
|
|
789
789
|
created_at: z.ZodOptional<z.ZodString>;
|
|
790
790
|
settled_at: z.ZodOptional<z.ZodString>;
|
package/dist/vendors.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
|
|
7
7
|
//#region src/vendors.ts
|
|
8
8
|
const listVendors = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-vendors",
|
|
10
10
|
name: "List Vendors",
|
|
11
11
|
description: "List Ramp vendors, optionally filtered by name or email.",
|
|
12
12
|
input: rampVendorListInputSchema,
|
|
@@ -23,7 +23,7 @@ const listVendors = rampOperation({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const getVendor = rampOperation({
|
|
26
|
-
id: "
|
|
26
|
+
id: "ramp.get-vendor",
|
|
27
27
|
name: "Get Vendor",
|
|
28
28
|
description: "Fetch a Ramp vendor by id.",
|
|
29
29
|
input: rampVendorGetInputSchema,
|
|
@@ -34,7 +34,7 @@ const getVendor = rampOperation({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
const createVendor = rampOperation({
|
|
37
|
-
id: "
|
|
37
|
+
id: "ramp.create-vendor",
|
|
38
38
|
name: "Create Vendor",
|
|
39
39
|
description: "Create a new Ramp vendor record.",
|
|
40
40
|
input: rampVendorCreateInputSchema,
|
|
@@ -51,7 +51,7 @@ const createVendor = rampOperation({
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
const updateVendor = rampOperation({
|
|
54
|
-
id: "
|
|
54
|
+
id: "ramp.update-vendor",
|
|
55
55
|
name: "Update Vendor",
|
|
56
56
|
description: "Update editable fields on an existing Ramp vendor.",
|
|
57
57
|
input: rampVendorUpdateInputSchema,
|
|
@@ -68,7 +68,7 @@ const updateVendor = rampOperation({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
const deleteVendor = rampOperation({
|
|
71
|
-
id: "
|
|
71
|
+
id: "ramp.delete-vendor",
|
|
72
72
|
name: "Delete Vendor",
|
|
73
73
|
description: "Delete a Ramp vendor by id.",
|
|
74
74
|
input: rampVendorDeleteInputSchema,
|
package/dist/webhooks.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
|
|
7
7
|
//#region src/webhooks.ts
|
|
8
8
|
const listWebhookSubscriptions = rampOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "ramp.list-webhook-subscriptions",
|
|
10
10
|
name: "List Webhook Subscriptions",
|
|
11
11
|
description: "List webhook subscriptions registered on the connected Ramp app.",
|
|
12
12
|
input: rampWebhookSubscriptionListInputSchema,
|
|
@@ -20,7 +20,7 @@ const listWebhookSubscriptions = rampOperation({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const getWebhookSubscription = rampOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "ramp.get-webhook-subscription",
|
|
24
24
|
name: "Get Webhook Subscription",
|
|
25
25
|
description: "Fetch a webhook subscription by id.",
|
|
26
26
|
input: rampWebhookSubscriptionGetInputSchema,
|
|
@@ -31,7 +31,7 @@ const getWebhookSubscription = rampOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const createWebhookSubscription = rampOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "ramp.create-webhook-subscription",
|
|
35
35
|
name: "Create Webhook Subscription",
|
|
36
36
|
description: "Register a new webhook subscription. Will trigger Ramp's URL-validation handshake.",
|
|
37
37
|
input: rampWebhookSubscriptionCreateInputSchema,
|
|
@@ -48,7 +48,7 @@ const createWebhookSubscription = rampOperation({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const updateWebhookSubscription = rampOperation({
|
|
51
|
-
id: "
|
|
51
|
+
id: "ramp.update-webhook-subscription",
|
|
52
52
|
name: "Update Webhook Subscription",
|
|
53
53
|
description: "Update URL, active state, or enabled events on an existing subscription.",
|
|
54
54
|
input: rampWebhookSubscriptionUpdateInputSchema,
|
|
@@ -65,7 +65,7 @@ const updateWebhookSubscription = rampOperation({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
const deleteWebhookSubscription = rampOperation({
|
|
68
|
-
id: "
|
|
68
|
+
id: "ramp.delete-webhook-subscription",
|
|
69
69
|
name: "Delete Webhook Subscription",
|
|
70
70
|
description: "Delete a webhook subscription by id.",
|
|
71
71
|
input: rampWebhookSubscriptionDeleteInputSchema,
|