@keystrokehq/ramp 0.0.1 → 0.0.4
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/LICENSE +21 -0
- package/dist/_official/index.d.mts +45 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/accounting-fields.d.mts +7 -7
- package/dist/accounting-fields.mjs +1 -1
- package/dist/accounting-gl-accounts.d.mts +3 -3
- package/dist/accounting-gl-accounts.mjs +1 -1
- package/dist/accounting-subsidiaries.d.mts +3 -3
- package/dist/accounting-subsidiaries.mjs +1 -1
- package/dist/accounting-sync.d.mts +3 -3
- package/dist/accounting-sync.mjs +1 -1
- package/dist/accounting-tracking-categories.d.mts +2 -2
- package/dist/accounting-tracking-categories.mjs +1 -1
- package/dist/accounting-vendors.d.mts +3 -3
- package/dist/accounting-vendors.mjs +1 -1
- package/dist/applications.d.mts +5 -5
- package/dist/applications.mjs +1 -1
- package/dist/bills.d.mts +15 -15
- package/dist/bills.mjs +1 -1
- package/dist/business.d.mts +1 -1
- package/dist/business.mjs +1 -1
- package/dist/card-programs.d.mts +3 -3
- package/dist/card-programs.mjs +1 -1
- package/dist/cards.d.mts +9 -9
- package/dist/cards.mjs +1 -1
- package/dist/cashbacks.d.mts +2 -2
- package/dist/cashbacks.mjs +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/departments.d.mts +5 -5
- package/dist/departments.mjs +1 -1
- package/dist/entities.d.mts +2 -2
- package/dist/entities.mjs +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/{factory-Da6YVHdL.mjs → factory-sHitXBO_.mjs} +1 -1
- package/dist/{integration-Dd6tOtSy.d.mts → integration-D6jpX1pZ.d.mts} +1 -1
- package/dist/{integration-BGliAxAS.mjs → integration-DG56PIa4.mjs} +2 -2
- package/dist/limits.d.mts +11 -11
- package/dist/limits.mjs +1 -1
- package/dist/locations.d.mts +5 -5
- package/dist/locations.mjs +1 -1
- package/dist/memos.d.mts +2 -2
- package/dist/memos.mjs +1 -1
- package/dist/purchase-orders.d.mts +5 -5
- package/dist/purchase-orders.mjs +1 -1
- package/dist/receipt-integrations.d.mts +2 -2
- package/dist/receipt-integrations.mjs +1 -1
- package/dist/receipts.d.mts +3 -3
- package/dist/receipts.mjs +1 -1
- package/dist/reimbursements.d.mts +5 -5
- package/dist/reimbursements.mjs +1 -1
- package/dist/schemas/index.d.mts +8 -8
- package/dist/spend-programs.d.mts +2 -2
- package/dist/spend-programs.mjs +1 -1
- package/dist/spend-requests.d.mts +3 -3
- package/dist/spend-requests.mjs +1 -1
- package/dist/statements.d.mts +2 -2
- package/dist/statements.mjs +1 -1
- package/dist/transactions.d.mts +13 -13
- package/dist/transactions.mjs +1 -1
- package/dist/transfers.d.mts +5 -5
- package/dist/transfers.mjs +1 -1
- package/dist/triggers/index.d.mts +5 -63
- package/dist/triggers/index.mjs +14 -93
- package/dist/unified-requests.d.mts +2 -2
- package/dist/unified-requests.mjs +1 -1
- package/dist/users.d.mts +6 -6
- package/dist/users.mjs +1 -1
- package/dist/vendor-bank-accounts.d.mts +5 -5
- package/dist/vendor-bank-accounts.mjs +1 -1
- package/dist/{vendors-B7DQrlAn.d.mts → vendors-gH-w9b_R.d.mts} +28 -28
- package/dist/vendors.d.mts +5 -5
- package/dist/vendors.mjs +1 -1
- package/dist/webhooks.d.mts +5 -5
- package/dist/webhooks.mjs +1 -1
- package/package.json +18 -19
- package/dist/provider-app-JO525h-N.d.mts +0 -45
- /package/dist/{errors-Sm92tugz.d.mts → errors-Dm2DruuS.d.mts} +0 -0
- /package/dist/{webhook-sde3Ui2N.d.mts → webhook-Bp38YQE9.d.mts} +0 -0
|
@@ -7,8 +7,8 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
7
7
|
declare const listReimbursements: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
8
8
|
user_id: zod.ZodOptional<zod.ZodString>;
|
|
9
9
|
state: zod.ZodOptional<zod.ZodEnum<{
|
|
10
|
-
DRAFT: "DRAFT";
|
|
11
10
|
PENDING: "PENDING";
|
|
11
|
+
DRAFT: "DRAFT";
|
|
12
12
|
APPROVED: "APPROVED";
|
|
13
13
|
REJECTED: "REJECTED";
|
|
14
14
|
PAID: "PAID";
|
|
@@ -31,8 +31,8 @@ declare const listReimbursements: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
31
31
|
transaction_date: zod.ZodOptional<zod.ZodString>;
|
|
32
32
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
state: zod.ZodOptional<zod.ZodEnum<{
|
|
34
|
-
DRAFT: "DRAFT";
|
|
35
34
|
PENDING: "PENDING";
|
|
35
|
+
DRAFT: "DRAFT";
|
|
36
36
|
APPROVED: "APPROVED";
|
|
37
37
|
REJECTED: "REJECTED";
|
|
38
38
|
PAID: "PAID";
|
|
@@ -48,7 +48,7 @@ declare const listReimbursements: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
48
48
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
49
49
|
next: zod.ZodOptional<zod.ZodString>;
|
|
50
50
|
}, zod_v4_core0.$strip>>;
|
|
51
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
51
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
52
52
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
53
53
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
54
54
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -67,8 +67,8 @@ declare const getReimbursement: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
67
67
|
transaction_date: zod.ZodOptional<zod.ZodString>;
|
|
68
68
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
69
69
|
state: zod.ZodOptional<zod.ZodEnum<{
|
|
70
|
-
DRAFT: "DRAFT";
|
|
71
70
|
PENDING: "PENDING";
|
|
71
|
+
DRAFT: "DRAFT";
|
|
72
72
|
APPROVED: "APPROVED";
|
|
73
73
|
REJECTED: "REJECTED";
|
|
74
74
|
PAID: "PAID";
|
|
@@ -80,7 +80,7 @@ declare const getReimbursement: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
80
80
|
name: zod.ZodOptional<zod.ZodString>;
|
|
81
81
|
}, zod_v4_core0.$loose>>>;
|
|
82
82
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
83
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
83
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
84
84
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
85
85
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
86
86
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
package/dist/reimbursements.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { i as rampReimbursementSchema, n as rampReimbursementListInputSchema, r as rampReimbursementListSchema, t as rampReimbursementGetInputSchema } from "./reimbursements-OknrZUMF.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/reimbursements.ts
|
package/dist/schemas/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as rampErrorPayloadSchema, n as RampErrorPayload, r as rampErrorKindSchema, t as RampErrorKind } from "../errors-
|
|
2
|
-
import { a as RampWebhookEventEnvelope, c as rampWebhookEventEnvelopeSchema, i as RampWebhookChallenge, l as rampWebhookObjectSchema, n as RAMP_WEBHOOK_SIGNATURE_HEADER, o as rampDocumentedWebhookEventTypeSchema, r as RampDocumentedWebhookEventType, s as rampWebhookChallengeSchema, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "../webhook-
|
|
3
|
-
import { $ as RampPurchaseOrder, A as RampTransfer, At as rampSpendRequestCommentCreateInputSchema, B as RampTransaction, Bt as rampBillCreateInputSchema, C as rampUserListInputSchema, Ct as rampEntityListInputSchema, D as rampUserStatusSchema, Dt as rampSpendProgramListInputSchema, E as rampUserSchema, Et as rampSpendProgramGetInputSchema, F as rampTransferGetInputSchema, Ft as rampSpendRequestSchema, G as rampTransactionStateSchema, Gt as rampBillRejectInputSchema, H as rampTransactionListInputSchema, Ht as rampBillLineItemSchema, I as rampTransferListInputSchema, It as rampSpendRequestStatusSchema, J as rampReimbursementListInputSchema, Jt as rampBillUpdateInputSchema, K as RampReimbursement, Kt as rampBillSchema, L as rampTransferListSchema, Lt as RampBill, M as rampCashbackListInputSchema, Mt as rampSpendRequestGetInputSchema, N as rampCashbackListSchema, Nt as rampSpendRequestListInputSchema, O as rampUserUpdateInputSchema, Ot as rampSpendProgramListSchema, P as rampCashbackSchema, Pt as rampSpendRequestListSchema, Q as RampApplication, R as rampTransferSchema, Rt as rampBillApproveInputSchema, S as rampUserInviteInputSchema, St as rampEntityGetInputSchema, T as rampUserRoleSchema, Tt as rampEntitySchema, U as rampTransactionListSchema, Ut as rampBillListInputSchema, V as rampTransactionGetInputSchema, Vt as rampBillGetInputSchema, W as rampTransactionSchema, Wt as rampBillListSchema, X as rampReimbursementSchema, Y as rampReimbursementListSchema, Z as rampReimbursementStateSchema, _ as RampDeferredTask, _t as RampEntity, a as rampVendorBankAccountGetInputSchema, at as rampApplicationStatusSchema, b as rampUserDeactivateInputSchema, bt as RampSpendRequestComment, c as rampVendorBankAccountSchema, ct as rampPurchaseOrderListSchema, d as rampVendorDeleteInputSchema, dt as rampUnifiedRequestGetInputSchema, et as RampUnifiedRequest, f as rampVendorGetInputSchema, ft as rampUnifiedRequestListInputSchema, g as rampVendorUpdateInputSchema, gt as RampBusiness, h as rampVendorSchema, ht as rampUnifiedRequestStatusSchema, i as rampVendorBankAccountDeleteInputSchema, it as rampApplicationSchema, j as rampCashbackGetInputSchema, jt as rampSpendRequestCommentSchema, k as RampCashback, kt as rampSpendProgramSchema, l as rampVendorBankAccountUpdateInputSchema, lt as rampPurchaseOrderSchema, m as rampVendorListSchema, mt as rampUnifiedRequestSchema, n as RampVendorBankAccount, nt as rampApplicationListInputSchema, o as rampVendorBankAccountListInputSchema, ot as rampPurchaseOrderGetInputSchema, p as rampVendorListInputSchema, pt as rampUnifiedRequestListSchema, q as rampReimbursementGetInputSchema, qt as rampBillStatusSchema, r as rampVendorBankAccountCreateInputSchema, rt as rampApplicationListSchema, s as rampVendorBankAccountListSchema, st as rampPurchaseOrderListInputSchema, t as RampVendor, tt as rampApplicationGetInputSchema, u as rampVendorCreateInputSchema, ut as rampPurchaseOrderStatusSchema, v as RampUser, vt as RampSpendProgram, w as rampUserListSchema, wt as rampEntityListSchema, x as rampUserGetInputSchema, xt as rampBusinessSchema, y as rampDeferredTaskSchema, yt as RampSpendRequest, z as rampTransferStatusSchema, zt as rampBillCancelInputSchema } from "../vendors-
|
|
1
|
+
import { i as rampErrorPayloadSchema, n as RampErrorPayload, r as rampErrorKindSchema, t as RampErrorKind } from "../errors-Dm2DruuS.mjs";
|
|
2
|
+
import { a as RampWebhookEventEnvelope, c as rampWebhookEventEnvelopeSchema, i as RampWebhookChallenge, l as rampWebhookObjectSchema, n as RAMP_WEBHOOK_SIGNATURE_HEADER, o as rampDocumentedWebhookEventTypeSchema, r as RampDocumentedWebhookEventType, s as rampWebhookChallengeSchema, t as RAMP_DOCUMENTED_WEBHOOK_EVENT_TYPES } from "../webhook-Bp38YQE9.mjs";
|
|
3
|
+
import { $ as RampPurchaseOrder, A as RampTransfer, At as rampSpendRequestCommentCreateInputSchema, B as RampTransaction, Bt as rampBillCreateInputSchema, C as rampUserListInputSchema, Ct as rampEntityListInputSchema, D as rampUserStatusSchema, Dt as rampSpendProgramListInputSchema, E as rampUserSchema, Et as rampSpendProgramGetInputSchema, F as rampTransferGetInputSchema, Ft as rampSpendRequestSchema, G as rampTransactionStateSchema, Gt as rampBillRejectInputSchema, H as rampTransactionListInputSchema, Ht as rampBillLineItemSchema, I as rampTransferListInputSchema, It as rampSpendRequestStatusSchema, J as rampReimbursementListInputSchema, Jt as rampBillUpdateInputSchema, K as RampReimbursement, Kt as rampBillSchema, L as rampTransferListSchema, Lt as RampBill, M as rampCashbackListInputSchema, Mt as rampSpendRequestGetInputSchema, N as rampCashbackListSchema, Nt as rampSpendRequestListInputSchema, O as rampUserUpdateInputSchema, Ot as rampSpendProgramListSchema, P as rampCashbackSchema, Pt as rampSpendRequestListSchema, Q as RampApplication, R as rampTransferSchema, Rt as rampBillApproveInputSchema, S as rampUserInviteInputSchema, St as rampEntityGetInputSchema, T as rampUserRoleSchema, Tt as rampEntitySchema, U as rampTransactionListSchema, Ut as rampBillListInputSchema, V as rampTransactionGetInputSchema, Vt as rampBillGetInputSchema, W as rampTransactionSchema, Wt as rampBillListSchema, X as rampReimbursementSchema, Y as rampReimbursementListSchema, Z as rampReimbursementStateSchema, _ as RampDeferredTask, _t as RampEntity, a as rampVendorBankAccountGetInputSchema, at as rampApplicationStatusSchema, b as rampUserDeactivateInputSchema, bt as RampSpendRequestComment, c as rampVendorBankAccountSchema, ct as rampPurchaseOrderListSchema, d as rampVendorDeleteInputSchema, dt as rampUnifiedRequestGetInputSchema, et as RampUnifiedRequest, f as rampVendorGetInputSchema, ft as rampUnifiedRequestListInputSchema, g as rampVendorUpdateInputSchema, gt as RampBusiness, h as rampVendorSchema, ht as rampUnifiedRequestStatusSchema, i as rampVendorBankAccountDeleteInputSchema, it as rampApplicationSchema, j as rampCashbackGetInputSchema, jt as rampSpendRequestCommentSchema, k as RampCashback, kt as rampSpendProgramSchema, l as rampVendorBankAccountUpdateInputSchema, lt as rampPurchaseOrderSchema, m as rampVendorListSchema, mt as rampUnifiedRequestSchema, n as RampVendorBankAccount, nt as rampApplicationListInputSchema, o as rampVendorBankAccountListInputSchema, ot as rampPurchaseOrderGetInputSchema, p as rampVendorListInputSchema, pt as rampUnifiedRequestListSchema, q as rampReimbursementGetInputSchema, qt as rampBillStatusSchema, r as rampVendorBankAccountCreateInputSchema, rt as rampApplicationListSchema, s as rampVendorBankAccountListSchema, st as rampPurchaseOrderListInputSchema, t as RampVendor, tt as rampApplicationGetInputSchema, u as rampVendorCreateInputSchema, ut as rampPurchaseOrderStatusSchema, v as RampUser, vt as RampSpendProgram, w as rampUserListSchema, wt as rampEntityListSchema, x as rampUserGetInputSchema, xt as rampBusinessSchema, y as rampDeferredTaskSchema, yt as RampSpendRequest, z as rampTransferStatusSchema, zt as rampBillCancelInputSchema } from "../vendors-gH-w9b_R.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/schemas/accounting.d.ts
|
|
@@ -614,9 +614,9 @@ declare const rampLimitIntervalSchema: z.ZodEnum<{
|
|
|
614
614
|
DAILY: "DAILY";
|
|
615
615
|
WEEKLY: "WEEKLY";
|
|
616
616
|
MONTHLY: "MONTHLY";
|
|
617
|
-
QUARTERLY: "QUARTERLY";
|
|
618
617
|
YEARLY: "YEARLY";
|
|
619
618
|
TOTAL: "TOTAL";
|
|
619
|
+
QUARTERLY: "QUARTERLY";
|
|
620
620
|
}>;
|
|
621
621
|
declare const rampLimitSchema: z.ZodObject<{
|
|
622
622
|
id: z.ZodString;
|
|
@@ -631,9 +631,9 @@ declare const rampLimitSchema: z.ZodObject<{
|
|
|
631
631
|
DAILY: "DAILY";
|
|
632
632
|
WEEKLY: "WEEKLY";
|
|
633
633
|
MONTHLY: "MONTHLY";
|
|
634
|
-
QUARTERLY: "QUARTERLY";
|
|
635
634
|
YEARLY: "YEARLY";
|
|
636
635
|
TOTAL: "TOTAL";
|
|
636
|
+
QUARTERLY: "QUARTERLY";
|
|
637
637
|
}>>;
|
|
638
638
|
transaction_amount_limit: z.ZodOptional<z.ZodNumber>;
|
|
639
639
|
}, z.core.$loose>>;
|
|
@@ -665,9 +665,9 @@ declare const rampLimitListSchema: z.ZodObject<{
|
|
|
665
665
|
DAILY: "DAILY";
|
|
666
666
|
WEEKLY: "WEEKLY";
|
|
667
667
|
MONTHLY: "MONTHLY";
|
|
668
|
-
QUARTERLY: "QUARTERLY";
|
|
669
668
|
YEARLY: "YEARLY";
|
|
670
669
|
TOTAL: "TOTAL";
|
|
670
|
+
QUARTERLY: "QUARTERLY";
|
|
671
671
|
}>>;
|
|
672
672
|
transaction_amount_limit: z.ZodOptional<z.ZodNumber>;
|
|
673
673
|
}, z.core.$loose>>;
|
|
@@ -695,9 +695,9 @@ declare const rampLimitCreateInputSchema: z.ZodObject<{
|
|
|
695
695
|
DAILY: "DAILY";
|
|
696
696
|
WEEKLY: "WEEKLY";
|
|
697
697
|
MONTHLY: "MONTHLY";
|
|
698
|
-
QUARTERLY: "QUARTERLY";
|
|
699
698
|
YEARLY: "YEARLY";
|
|
700
699
|
TOTAL: "TOTAL";
|
|
700
|
+
QUARTERLY: "QUARTERLY";
|
|
701
701
|
}>;
|
|
702
702
|
transaction_amount_limit: z.ZodOptional<z.ZodNumber>;
|
|
703
703
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -713,9 +713,9 @@ declare const rampLimitUpdateInputSchema: z.ZodObject<{
|
|
|
713
713
|
DAILY: "DAILY";
|
|
714
714
|
WEEKLY: "WEEKLY";
|
|
715
715
|
MONTHLY: "MONTHLY";
|
|
716
|
-
QUARTERLY: "QUARTERLY";
|
|
717
716
|
YEARLY: "YEARLY";
|
|
718
717
|
TOTAL: "TOTAL";
|
|
718
|
+
QUARTERLY: "QUARTERLY";
|
|
719
719
|
}>>;
|
|
720
720
|
transaction_amount_limit: z.ZodOptional<z.ZodNumber>;
|
|
721
721
|
}, z.core.$strip>>;
|
|
@@ -22,7 +22,7 @@ declare const listSpendPrograms: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
22
22
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
23
23
|
next: zod.ZodOptional<zod.ZodString>;
|
|
24
24
|
}, zod_v4_core0.$strip>>;
|
|
25
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
25
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
26
26
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
27
27
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
28
28
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -39,7 +39,7 @@ declare const getSpendProgram: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
39
39
|
currency: zod.ZodOptional<zod.ZodString>;
|
|
40
40
|
interval: zod.ZodOptional<zod.ZodString>;
|
|
41
41
|
}, zod_v4_core0.$loose>>;
|
|
42
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
42
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
43
43
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
44
44
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
45
45
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
package/dist/spend-programs.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { c as rampSpendProgramListSchema, l as rampSpendProgramSchema, o as rampSpendProgramGetInputSchema, s as rampSpendProgramListInputSchema } from "./business-CztnWUvt.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/spend-programs.ts
|
|
@@ -42,7 +42,7 @@ declare const listSpendRequests: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
42
42
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
43
43
|
next: zod.ZodOptional<zod.ZodString>;
|
|
44
44
|
}, zod_v4_core0.$strip>>;
|
|
45
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
45
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
46
46
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
47
47
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
48
48
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -71,7 +71,7 @@ declare const getSpendRequest: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
71
71
|
status: zod.ZodOptional<zod.ZodString>;
|
|
72
72
|
memo: zod.ZodOptional<zod.ZodString>;
|
|
73
73
|
}, zod_v4_core0.$loose>>;
|
|
74
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
74
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
75
75
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
76
76
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
77
77
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -86,7 +86,7 @@ declare const commentOnSpendRequest: _keystrokehq_core0.Operation<zod.ZodObject<
|
|
|
86
86
|
user_id: zod.ZodOptional<zod.ZodString>;
|
|
87
87
|
body: zod.ZodOptional<zod.ZodString>;
|
|
88
88
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
89
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
89
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
90
90
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
91
91
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
92
92
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
package/dist/spend-requests.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { d as rampSpendRequestCommentSchema, f as rampSpendRequestGetInputSchema, h as rampSpendRequestSchema, m as rampSpendRequestListSchema, p as rampSpendRequestListInputSchema, u as rampSpendRequestCommentCreateInputSchema } from "./business-CztnWUvt.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/spend-requests.ts
|
package/dist/statements.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ declare const listStatements: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
20
20
|
page: zod.ZodOptional<zod.ZodObject<{
|
|
21
21
|
next: zod.ZodOptional<zod.ZodString>;
|
|
22
22
|
}, zod_v4_core0.$strip>>;
|
|
23
|
-
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
23
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
24
24
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
25
25
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
26
26
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
@@ -32,7 +32,7 @@ declare const getStatement: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
32
32
|
statement_date: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
download_url: zod.ZodOptional<zod.ZodString>;
|
|
34
34
|
entity_id: zod.ZodOptional<zod.ZodString>;
|
|
35
|
-
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"ramp", zod.ZodObject<{
|
|
35
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:ramp", zod.ZodObject<{
|
|
36
36
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
|
37
37
|
}, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
|
|
38
38
|
RAMP_ACCESS_TOKEN: zod.ZodString;
|
package/dist/statements.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { d as rampStatementListSchema, f as rampStatementSchema, l as rampStatementGetInputSchema, u as rampStatementListInputSchema } from "./receipts-STq41c2M.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/statements.ts
|
package/dist/transactions.d.mts
CHANGED
|
@@ -12,13 +12,13 @@ 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";
|
|
16
|
-
PROCESSING: "PROCESSING";
|
|
17
15
|
CLEARED: "CLEARED";
|
|
18
16
|
COMPLETION: "COMPLETION";
|
|
19
17
|
DECLINED: "DECLINED";
|
|
20
18
|
ERROR: "ERROR";
|
|
19
|
+
PENDING: "PENDING";
|
|
21
20
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
21
|
+
PROCESSING: "PROCESSING";
|
|
22
22
|
}>>;
|
|
23
23
|
minAmount: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
maxAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -49,13 +49,13 @@ 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";
|
|
53
|
-
PROCESSING: "PROCESSING";
|
|
54
52
|
CLEARED: "CLEARED";
|
|
55
53
|
COMPLETION: "COMPLETION";
|
|
56
54
|
DECLINED: "DECLINED";
|
|
57
55
|
ERROR: "ERROR";
|
|
56
|
+
PENDING: "PENDING";
|
|
58
57
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
58
|
+
PROCESSING: "PROCESSING";
|
|
59
59
|
}>>;
|
|
60
60
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
61
61
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -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<"ramp", z.ZodObject<{
|
|
70
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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,13 +92,13 @@ 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";
|
|
96
|
-
PROCESSING: "PROCESSING";
|
|
97
95
|
CLEARED: "CLEARED";
|
|
98
96
|
COMPLETION: "COMPLETION";
|
|
99
97
|
DECLINED: "DECLINED";
|
|
100
98
|
ERROR: "ERROR";
|
|
99
|
+
PENDING: "PENDING";
|
|
101
100
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
101
|
+
PROCESSING: "PROCESSING";
|
|
102
102
|
}>>;
|
|
103
103
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
104
104
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -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<"ramp", z.ZodObject<{
|
|
109
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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,13 +120,13 @@ 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";
|
|
124
|
-
PROCESSING: "PROCESSING";
|
|
125
123
|
CLEARED: "CLEARED";
|
|
126
124
|
COMPLETION: "COMPLETION";
|
|
127
125
|
DECLINED: "DECLINED";
|
|
128
126
|
ERROR: "ERROR";
|
|
127
|
+
PENDING: "PENDING";
|
|
129
128
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
129
|
+
PROCESSING: "PROCESSING";
|
|
130
130
|
}>>;
|
|
131
131
|
minAmount: z.ZodOptional<z.ZodNumber>;
|
|
132
132
|
maxAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -157,13 +157,13 @@ 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";
|
|
161
|
-
PROCESSING: "PROCESSING";
|
|
162
160
|
CLEARED: "CLEARED";
|
|
163
161
|
COMPLETION: "COMPLETION";
|
|
164
162
|
DECLINED: "DECLINED";
|
|
165
163
|
ERROR: "ERROR";
|
|
164
|
+
PENDING: "PENDING";
|
|
166
165
|
PENDING_INITIATION: "PENDING_INITIATION";
|
|
166
|
+
PROCESSING: "PROCESSING";
|
|
167
167
|
}>>;
|
|
168
168
|
sk_category_id: z.ZodOptional<z.ZodString>;
|
|
169
169
|
sk_category_name: z.ZodOptional<z.ZodString>;
|
|
@@ -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<"ramp", z.ZodObject<{
|
|
175
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { i as rampTransactionSchema, n as rampTransactionListInputSchema, r as rampTransactionListSchema, t as rampTransactionGetInputSchema } from "./transactions-Djd0oIGK.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/dist/transfers.d.mts
CHANGED
|
@@ -8,9 +8,9 @@ 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";
|
|
11
12
|
CANCELED: "CANCELED";
|
|
12
13
|
FAILED: "FAILED";
|
|
13
|
-
PROCESSING: "PROCESSING";
|
|
14
14
|
COMPLETED: "COMPLETED";
|
|
15
15
|
}>>;
|
|
16
16
|
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -24,9 +24,9 @@ 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";
|
|
27
28
|
CANCELED: "CANCELED";
|
|
28
29
|
FAILED: "FAILED";
|
|
29
|
-
PROCESSING: "PROCESSING";
|
|
30
30
|
COMPLETED: "COMPLETED";
|
|
31
31
|
}>>;
|
|
32
32
|
created_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<"ramp", zod.ZodObject<{
|
|
41
|
+
}, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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,9 +53,9 @@ 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";
|
|
56
57
|
CANCELED: "CANCELED";
|
|
57
58
|
FAILED: "FAILED";
|
|
58
|
-
PROCESSING: "PROCESSING";
|
|
59
59
|
COMPLETED: "COMPLETED";
|
|
60
60
|
}>>;
|
|
61
61
|
created_at: zod.ZodOptional<zod.ZodString>;
|
|
@@ -63,7 +63,7 @@ declare const getTransfer: _keystrokehq_core0.Operation<zod.ZodObject<{
|
|
|
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<"ramp", zod.ZodObject<{
|
|
66
|
+
}, zod_v4_core0.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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,6 +1,6 @@
|
|
|
1
1
|
import { createRampClient } from "./client.mjs";
|
|
2
2
|
import { a as rampTransferGetInputSchema, c as rampTransferSchema, o as rampTransferListInputSchema, s as rampTransferListSchema } from "./transfers-WBQZVdGP.mjs";
|
|
3
|
-
import { t as rampOperation } from "./factory-
|
|
3
|
+
import { t as rampOperation } from "./factory-sHitXBO_.mjs";
|
|
4
4
|
import { t as omitUndefined } from "./shared-CTTtP5gv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/transfers.ts
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { i as ramp } from "../integration-
|
|
2
|
-
import {
|
|
3
|
-
import { c as rampWebhookEventEnvelopeSchema } from "../webhook-sde3Ui2N.mjs";
|
|
4
|
-
import { toRampWebhookEvent } from "../events.mjs";
|
|
5
|
-
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-B7DQrlAn.mjs";
|
|
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-gH-w9b_R.mjs";
|
|
6
3
|
import { z } from "zod";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { PollingTriggerManifest, WebhookTriggerManifest } from "@keystrokehq/core/trigger";
|
|
4
|
+
import { IntegrationTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
5
|
+
import { PollingTriggerManifest } from "@keystrokehq/core/trigger";
|
|
10
6
|
|
|
11
7
|
//#region src/triggers/polling-bindings.d.ts
|
|
12
8
|
type RampPollResponse<TItemSchema extends z.ZodTypeAny> = {
|
|
@@ -24,58 +20,4 @@ declare const pollApplications: RampPollingBindingFactory<typeof rampApplication
|
|
|
24
20
|
declare const pollUnifiedRequests: RampPollingBindingFactory<typeof rampUnifiedRequestSchema>;
|
|
25
21
|
declare const pollTransfers: RampPollingBindingFactory<typeof rampTransferSchema>;
|
|
26
22
|
//#endregion
|
|
27
|
-
|
|
28
|
-
type RampWebhookCredentialSets = readonly [typeof ramp, typeof rampAppCredentialSet];
|
|
29
|
-
type RampWebhookBindingOptions<TOutput> = IntegrationTriggerBindingOptions<RampWebhookEvent, TOutput, WebhookRequest>;
|
|
30
|
-
type RampWebhookBoundTrigger<TOutput> = BoundTrigger<z.output<typeof rampWebhookEventEnvelopeSchema>, RampWebhookCredentialSets, WebhookTriggerManifest, TOutput, WebhookRequest>;
|
|
31
|
-
type RampWebhookEvent = ReturnType<typeof toRampWebhookEvent>;
|
|
32
|
-
declare function createRampWebhookBinding(defaultName: string, defaultDescription: string, eventTypeMatches: (eventType: string) => boolean): ReturnType<typeof createWebhookTriggerBindingFactory<typeof rampWebhookEventEnvelopeSchema, RampWebhookEvent, RampWebhookCredentialSets>>;
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/triggers/webhook-bindings.d.ts
|
|
35
|
-
type Binding = <TOutput = RampWebhookEvent>(options?: IntegrationTriggerBindingOptions<RampWebhookEvent, TOutput, WebhookRequest>) => RampWebhookBoundTrigger<TOutput>;
|
|
36
|
-
/**
|
|
37
|
-
* Ramp webhook namespace.
|
|
38
|
-
*
|
|
39
|
-
* Contains only currently-documented webhook events (15 specific + 6 coarse
|
|
40
|
-
* `any*` helpers) as of 2026-04-17. See IMPLEMENTATION_NOTES.md § 7 Q2 for
|
|
41
|
-
* the rationale behind this catalog (PLAN.md mentioned many additional
|
|
42
|
-
* events that are not currently published by Ramp).
|
|
43
|
-
*/
|
|
44
|
-
declare const webhooks: Readonly<{
|
|
45
|
-
transactions: Readonly<{
|
|
46
|
-
authorized: Binding;
|
|
47
|
-
cleared: Binding;
|
|
48
|
-
declined: Binding;
|
|
49
|
-
updated: Binding;
|
|
50
|
-
any: Binding;
|
|
51
|
-
}>;
|
|
52
|
-
bills: Readonly<{
|
|
53
|
-
approved: Binding;
|
|
54
|
-
paid: Binding;
|
|
55
|
-
created: Binding;
|
|
56
|
-
canceled: Binding;
|
|
57
|
-
any: Binding;
|
|
58
|
-
}>;
|
|
59
|
-
purchaseOrders: Readonly<{
|
|
60
|
-
created: Binding;
|
|
61
|
-
approved: Binding;
|
|
62
|
-
denied: Binding;
|
|
63
|
-
any: Binding;
|
|
64
|
-
}>;
|
|
65
|
-
spendRequests: Readonly<{
|
|
66
|
-
commentCreated: Binding;
|
|
67
|
-
any: Binding;
|
|
68
|
-
}>;
|
|
69
|
-
applications: Readonly<{
|
|
70
|
-
approved: Binding;
|
|
71
|
-
denied: Binding;
|
|
72
|
-
any: Binding;
|
|
73
|
-
}>;
|
|
74
|
-
unifiedRequests: Readonly<{
|
|
75
|
-
updated: Binding;
|
|
76
|
-
any: Binding;
|
|
77
|
-
}>;
|
|
78
|
-
}>;
|
|
79
|
-
type RampWebhooksNamespace = typeof webhooks;
|
|
80
|
-
//#endregion
|
|
81
|
-
export { type RampWebhookBindingOptions, type RampWebhookBoundTrigger, type RampWebhookCredentialSets, type RampWebhookEvent, type RampWebhooksNamespace, createRampWebhookBinding, pollApplications, pollBills, pollPurchaseOrders, pollReimbursements, pollSpendRequests, pollTransactions, pollTransfers, pollUnifiedRequests, pollUsers, pollVendors, webhooks };
|
|
23
|
+
export { pollApplications, pollBills, pollPurchaseOrders, pollReimbursements, pollSpendRequests, pollTransactions, pollTransfers, pollUnifiedRequests, pollUsers, pollVendors };
|