@whop/sdk 0.0.39 → 0.0.40
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/CHANGELOG.md +19 -0
- package/client.d.mts +88 -40
- package/client.d.mts.map +1 -1
- package/client.d.ts +88 -40
- package/client.d.ts.map +1 -1
- package/client.js +59 -0
- package/client.js.map +1 -1
- package/client.mjs +59 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/accounts.d.mts +244 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +244 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +46 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +42 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/ad-campaigns.d.mts +296 -0
- package/resources/ad-campaigns.d.mts.map +1 -0
- package/resources/ad-campaigns.d.ts +296 -0
- package/resources/ad-campaigns.d.ts.map +1 -0
- package/resources/ad-campaigns.js +104 -0
- package/resources/ad-campaigns.js.map +1 -0
- package/resources/ad-campaigns.mjs +100 -0
- package/resources/ad-campaigns.mjs.map +1 -0
- package/resources/ad-groups.d.mts +1461 -0
- package/resources/ad-groups.d.mts.map +1 -0
- package/resources/ad-groups.d.ts +1461 -0
- package/resources/ad-groups.d.ts.map +1 -0
- package/resources/ad-groups.js +121 -0
- package/resources/ad-groups.js.map +1 -0
- package/resources/ad-groups.mjs +117 -0
- package/resources/ad-groups.mjs.map +1 -0
- package/resources/ad-reports.d.mts +379 -0
- package/resources/ad-reports.d.mts.map +1 -0
- package/resources/ad-reports.d.ts +379 -0
- package/resources/ad-reports.d.ts.map +1 -0
- package/resources/ad-reports.js +26 -0
- package/resources/ad-reports.js.map +1 -0
- package/resources/ad-reports.mjs +22 -0
- package/resources/ad-reports.mjs.map +1 -0
- package/resources/ads.d.mts +234 -0
- package/resources/ads.d.mts.map +1 -0
- package/resources/ads.d.ts +234 -0
- package/resources/ads.d.ts.map +1 -0
- package/resources/ads.js +56 -0
- package/resources/ads.js.map +1 -0
- package/resources/ads.mjs +52 -0
- package/resources/ads.mjs.map +1 -0
- package/resources/affiliates/affiliates.d.mts +31 -31
- package/resources/affiliates/affiliates.d.mts.map +1 -1
- package/resources/affiliates/affiliates.d.ts +31 -31
- package/resources/affiliates/affiliates.d.ts.map +1 -1
- package/resources/affiliates/affiliates.js +21 -21
- package/resources/affiliates/affiliates.js.map +1 -1
- package/resources/affiliates/affiliates.mjs +21 -21
- package/resources/affiliates/affiliates.mjs.map +1 -1
- package/resources/affiliates/index.d.mts +2 -2
- package/resources/affiliates/index.d.mts.map +1 -1
- package/resources/affiliates/index.d.ts +2 -2
- package/resources/affiliates/index.d.ts.map +1 -1
- package/resources/affiliates/overrides.d.mts +37 -37
- package/resources/affiliates/overrides.d.mts.map +1 -1
- package/resources/affiliates/overrides.d.ts +37 -37
- package/resources/affiliates/overrides.d.ts.map +1 -1
- package/resources/affiliates/overrides.js +23 -23
- package/resources/affiliates/overrides.js.map +1 -1
- package/resources/affiliates/overrides.mjs +23 -23
- package/resources/affiliates/overrides.mjs.map +1 -1
- package/resources/ai-chats.d.mts +23 -23
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +23 -23
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +6 -6
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +6 -6
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +54 -54
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +54 -54
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +21 -21
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +21 -21
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +57 -57
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +57 -57
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +15 -15
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +15 -15
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +36 -36
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +36 -36
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +21 -21
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +21 -21
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/bounties.d.mts +281 -0
- package/resources/bounties.d.mts.map +1 -0
- package/resources/bounties.d.ts +281 -0
- package/resources/bounties.d.ts.map +1 -0
- package/resources/bounties.js +63 -0
- package/resources/bounties.js.map +1 -0
- package/resources/bounties.mjs +59 -0
- package/resources/bounties.mjs.map +1 -0
- package/resources/chat-channels.d.mts +43 -43
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +43 -43
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +24 -24
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +24 -24
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +73 -45
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +73 -45
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +11 -11
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +11 -11
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +98 -35
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +98 -35
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +24 -17
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +24 -17
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +39 -39
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +39 -39
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +14 -14
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +14 -14
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/conversions.d.mts +248 -0
- package/resources/conversions.d.mts.map +1 -0
- package/resources/conversions.d.ts +248 -0
- package/resources/conversions.d.ts.map +1 -0
- package/resources/conversions.js +30 -0
- package/resources/conversions.js.map +1 -0
- package/resources/conversions.mjs +26 -0
- package/resources/conversions.mjs.map +1 -0
- package/resources/course-chapters.d.mts +36 -36
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +36 -36
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +23 -23
- package/resources/course-chapters.js.map +1 -1
- package/resources/course-chapters.mjs +23 -23
- package/resources/course-chapters.mjs.map +1 -1
- package/resources/course-lesson-interactions.d.mts +5 -5
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +5 -5
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +7 -7
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +7 -7
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +40 -40
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +40 -40
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +22 -22
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +22 -22
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +5 -5
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +5 -5
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +10 -10
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +10 -10
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +40 -40
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +40 -40
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +19 -19
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +19 -19
- package/resources/courses.mjs.map +1 -1
- package/resources/deposits.d.mts +64 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +64 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +16 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +12 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/dispute-alerts.d.mts +10 -10
- package/resources/dispute-alerts.d.mts.map +1 -1
- package/resources/dispute-alerts.d.ts +10 -10
- package/resources/dispute-alerts.d.ts.map +1 -1
- package/resources/dispute-alerts.js +13 -13
- package/resources/dispute-alerts.js.map +1 -1
- package/resources/dispute-alerts.mjs +13 -13
- package/resources/dispute-alerts.mjs.map +1 -1
- package/resources/disputes.d.mts +13 -15
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +13 -15
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +11 -11
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +11 -11
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +37 -37
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +37 -37
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +19 -19
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +19 -19
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +38 -38
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +38 -38
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +21 -21
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +21 -21
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +5 -5
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +5 -5
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -7
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -7
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +50 -50
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +50 -50
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +17 -17
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +17 -17
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +36 -36
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +36 -36
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +18 -18
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +18 -18
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +18 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +18 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +52 -48
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +52 -48
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +21 -21
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +21 -21
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +33 -33
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +33 -33
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +11 -11
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +11 -11
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +45 -35
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +45 -35
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +22 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +86 -81
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +86 -81
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +40 -40
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +40 -40
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +53 -53
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +53 -53
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +24 -24
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +24 -24
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +34 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +34 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -7
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +9 -7
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +7 -7
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +7 -7
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +61 -47
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +61 -47
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +38 -38
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +38 -38
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +36 -36
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +36 -36
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +16 -16
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +16 -16
- package/resources/messages.mjs.map +1 -1
- package/resources/payment-methods.d.mts +20 -20
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +20 -20
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +10 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +10 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +172 -145
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +172 -145
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +68 -68
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +68 -68
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-accounts.d.mts +1 -1
- package/resources/payout-accounts.d.ts +1 -1
- package/resources/payout-methods.d.mts +5 -5
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +5 -5
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +10 -10
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +10 -10
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +128 -70
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +128 -70
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +21 -21
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +21 -21
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +81 -65
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +81 -65
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +25 -25
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +25 -25
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +59 -59
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +59 -59
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +22 -22
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +22 -22
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -25
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -25
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +11 -11
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +11 -11
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +59 -10
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +59 -10
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +12 -10
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +12 -10
- package/resources/refunds.mjs.map +1 -1
- package/resources/resolution-center-cases.d.mts +6 -6
- package/resources/resolution-center-cases.d.mts.map +1 -1
- package/resources/resolution-center-cases.d.ts +6 -6
- package/resources/resolution-center-cases.d.ts.map +1 -1
- package/resources/resolution-center-cases.js +10 -10
- package/resources/resolution-center-cases.js.map +1 -1
- package/resources/resolution-center-cases.mjs +10 -10
- package/resources/resolution-center-cases.mjs.map +1 -1
- package/resources/reviews.d.mts +4 -4
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +4 -4
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +6 -6
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +6 -6
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +6 -6
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +6 -6
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +11 -11
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +11 -11
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +89 -6
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +89 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +35 -35
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +35 -35
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +20 -20
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +20 -20
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +35 -34
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +35 -34
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +21 -21
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +21 -21
- package/resources/support-channels.mjs.map +1 -1
- package/resources/swaps.d.mts +62 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +62 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +15 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +11 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transfers.d.mts +57 -55
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +57 -55
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +19 -19
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +19 -19
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +20 -20
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -20
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +16 -16
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +16 -16
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +2 -2
- package/resources/verifications.d.ts +2 -2
- package/resources/wallets.d.mts +89 -0
- package/resources/wallets.d.mts.map +1 -0
- package/resources/wallets.d.ts +89 -0
- package/resources/wallets.d.ts.map +1 -0
- package/resources/wallets.js +28 -0
- package/resources/wallets.js.map +1 -0
- package/resources/wallets.mjs +24 -0
- package/resources/wallets.mjs.map +1 -0
- package/resources/webhooks.d.mts +2182 -1196
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +2182 -1196
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +31 -31
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +31 -31
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +47 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +47 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +21 -21
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +21 -21
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +277 -60
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/accounts.ts +318 -0
- package/src/resources/ad-campaigns.ts +376 -0
- package/src/resources/ad-groups.ts +1958 -0
- package/src/resources/ad-reports.ts +484 -0
- package/src/resources/ads.ts +295 -0
- package/src/resources/affiliates/affiliates.ts +39 -39
- package/src/resources/affiliates/index.ts +2 -2
- package/src/resources/affiliates/overrides.ts +51 -51
- package/src/resources/ai-chats.ts +33 -33
- package/src/resources/app-builds.ts +68 -68
- package/src/resources/apps.ts +86 -86
- package/src/resources/authorized-users.ts +48 -48
- package/src/resources/bounties.ts +353 -0
- package/src/resources/chat-channels.ts +57 -57
- package/src/resources/checkout-configurations.ts +97 -63
- package/src/resources/companies.ts +123 -41
- package/src/resources/company-token-transactions.ts +55 -55
- package/src/resources/conversions.ts +316 -0
- package/src/resources/course-chapters.ts +47 -47
- package/src/resources/course-lesson-interactions.ts +12 -12
- package/src/resources/course-lessons.ts +54 -54
- package/src/resources/course-students.ts +12 -12
- package/src/resources/courses.ts +51 -51
- package/src/resources/deposits.ts +87 -0
- package/src/resources/dispute-alerts.ts +18 -18
- package/src/resources/disputes.ts +18 -20
- package/src/resources/dm-channels.ts +45 -45
- package/src/resources/dm-members.ts +45 -45
- package/src/resources/entries.ts +10 -10
- package/src/resources/experiences.ts +64 -64
- package/src/resources/fee-markups.ts +44 -44
- package/src/resources/files.ts +23 -1
- package/src/resources/forum-posts.ts +65 -60
- package/src/resources/forums.ts +44 -44
- package/src/resources/index.ts +129 -57
- package/src/resources/invoices.ts +113 -107
- package/src/resources/leads.ts +64 -64
- package/src/resources/ledger-accounts.ts +41 -1
- package/src/resources/members.ts +14 -12
- package/src/resources/memberships.ts +73 -61
- package/src/resources/messages.ts +48 -48
- package/src/resources/payment-methods.ts +30 -30
- package/src/resources/payments.ts +222 -183
- package/src/resources/payout-accounts.ts +1 -1
- package/src/resources/payout-methods.ts +11 -11
- package/src/resources/plans.ts +151 -88
- package/src/resources/products.ts +98 -84
- package/src/resources/promo-codes.ts +74 -74
- package/src/resources/reactions.ts +33 -33
- package/src/resources/refunds.ts +65 -15
- package/src/resources/resolution-center-cases.ts +11 -12
- package/src/resources/reviews.ts +7 -7
- package/src/resources/setup-intents.ts +13 -13
- package/src/resources/shared.ts +94 -5
- package/src/resources/shipments.ts +44 -44
- package/src/resources/support-channels.ts +46 -45
- package/src/resources/swaps.ts +87 -0
- package/src/resources/transfers.ts +68 -66
- package/src/resources/users.ts +29 -29
- package/src/resources/verifications.ts +2 -2
- package/src/resources/wallets.ts +136 -0
- package/src/resources/webhooks.ts +2449 -1277
- package/src/resources/withdrawals.ts +55 -55
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/invoices.mjs
CHANGED
|
@@ -6,6 +6,25 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Invoices
|
|
7
7
|
*/
|
|
8
8
|
export class Invoices extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of invoices for a company, with optional filtering by
|
|
11
|
+
* product, status, collection method, and creation date.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `invoice:basic:read`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const invoiceListItem of client.invoices.list()) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/invoices', (CursorPage), { query, ...options });
|
|
27
|
+
}
|
|
9
28
|
/**
|
|
10
29
|
* Create an invoice for a customer. The invoice can be charged automatically using
|
|
11
30
|
* a stored payment method, or sent to the customer for manual payment.
|
|
@@ -45,7 +64,8 @@ export class Invoices extends APIResource {
|
|
|
45
64
|
return this._client.get(path `/invoices/${id}`, options);
|
|
46
65
|
}
|
|
47
66
|
/**
|
|
48
|
-
*
|
|
67
|
+
* Void an open invoice so it can no longer be paid. Voiding is permanent and
|
|
68
|
+
* cannot be undone.
|
|
49
69
|
*
|
|
50
70
|
* Required permissions:
|
|
51
71
|
*
|
|
@@ -53,35 +73,16 @@ export class Invoices extends APIResource {
|
|
|
53
73
|
*
|
|
54
74
|
* @example
|
|
55
75
|
* ```ts
|
|
56
|
-
* const
|
|
76
|
+
* const response = await client.invoices.void(
|
|
57
77
|
* 'inv_xxxxxxxxxxxxxx',
|
|
58
78
|
* );
|
|
59
79
|
* ```
|
|
60
80
|
*/
|
|
61
|
-
|
|
62
|
-
return this._client.
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Returns a paginated list of invoices for a company, with optional filtering by
|
|
66
|
-
* product, status, collection method, and creation date.
|
|
67
|
-
*
|
|
68
|
-
* Required permissions:
|
|
69
|
-
*
|
|
70
|
-
* - `invoice:basic:read`
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* // Automatically fetches more pages as needed.
|
|
75
|
-
* for await (const invoiceListItem of client.invoices.list()) {
|
|
76
|
-
* // ...
|
|
77
|
-
* }
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
list(query = {}, options) {
|
|
81
|
-
return this._client.getAPIList('/invoices', (CursorPage), { query, ...options });
|
|
81
|
+
void(id, options) {
|
|
82
|
+
return this._client.post(path `/invoices/${id}/void`, options);
|
|
82
83
|
}
|
|
83
84
|
/**
|
|
84
|
-
*
|
|
85
|
+
* Mark an open invoice as paid when payment was collected outside of Whop.
|
|
85
86
|
*
|
|
86
87
|
* Required permissions:
|
|
87
88
|
*
|
|
@@ -89,16 +90,16 @@ export class Invoices extends APIResource {
|
|
|
89
90
|
*
|
|
90
91
|
* @example
|
|
91
92
|
* ```ts
|
|
92
|
-
* const
|
|
93
|
+
* const response = await client.invoices.markPaid(
|
|
93
94
|
* 'inv_xxxxxxxxxxxxxx',
|
|
94
95
|
* );
|
|
95
96
|
* ```
|
|
96
97
|
*/
|
|
97
|
-
|
|
98
|
-
return this._client.
|
|
98
|
+
markPaid(id, options) {
|
|
99
|
+
return this._client.post(path `/invoices/${id}/mark_paid`, options);
|
|
99
100
|
}
|
|
100
101
|
/**
|
|
101
|
-
* Mark an open invoice as
|
|
102
|
+
* Mark an open invoice as uncollectible when payment is not expected.
|
|
102
103
|
*
|
|
103
104
|
* Required permissions:
|
|
104
105
|
*
|
|
@@ -106,16 +107,16 @@ export class Invoices extends APIResource {
|
|
|
106
107
|
*
|
|
107
108
|
* @example
|
|
108
109
|
* ```ts
|
|
109
|
-
* const response = await client.invoices.
|
|
110
|
+
* const response = await client.invoices.markUncollectible(
|
|
110
111
|
* 'inv_xxxxxxxxxxxxxx',
|
|
111
112
|
* );
|
|
112
113
|
* ```
|
|
113
114
|
*/
|
|
114
|
-
|
|
115
|
-
return this._client.post(path `/invoices/${id}/
|
|
115
|
+
markUncollectible(id, options) {
|
|
116
|
+
return this._client.post(path `/invoices/${id}/mark_uncollectible`, options);
|
|
116
117
|
}
|
|
117
118
|
/**
|
|
118
|
-
*
|
|
119
|
+
* Update a draft invoice's details.
|
|
119
120
|
*
|
|
120
121
|
* Required permissions:
|
|
121
122
|
*
|
|
@@ -123,17 +124,16 @@ export class Invoices extends APIResource {
|
|
|
123
124
|
*
|
|
124
125
|
* @example
|
|
125
126
|
* ```ts
|
|
126
|
-
* const
|
|
127
|
+
* const invoice = await client.invoices.update(
|
|
127
128
|
* 'inv_xxxxxxxxxxxxxx',
|
|
128
129
|
* );
|
|
129
130
|
* ```
|
|
130
131
|
*/
|
|
131
|
-
|
|
132
|
-
return this._client.
|
|
132
|
+
update(id, body = {}, options) {
|
|
133
|
+
return this._client.patch(path `/invoices/${id}`, { body, ...options });
|
|
133
134
|
}
|
|
134
135
|
/**
|
|
135
|
-
*
|
|
136
|
-
* cannot be undone.
|
|
136
|
+
* Delete a draft invoice.
|
|
137
137
|
*
|
|
138
138
|
* Required permissions:
|
|
139
139
|
*
|
|
@@ -141,13 +141,13 @@ export class Invoices extends APIResource {
|
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
143
|
* ```ts
|
|
144
|
-
* const
|
|
144
|
+
* const invoice = await client.invoices.delete(
|
|
145
145
|
* 'inv_xxxxxxxxxxxxxx',
|
|
146
146
|
* );
|
|
147
147
|
* ```
|
|
148
148
|
*/
|
|
149
|
-
|
|
150
|
-
return this._client.
|
|
149
|
+
delete(id, options) {
|
|
150
|
+
return this._client.delete(path `/invoices/${id}`, options);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
//# sourceMappingURL=invoices.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.mjs","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"invoices.mjs","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAA8C,EAAE,E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,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
package/resources/leads.d.mts
CHANGED
|
@@ -6,6 +6,28 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
6
6
|
* Leads
|
|
7
7
|
*/
|
|
8
8
|
export declare class Leads extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of leads for a company, with optional filtering by
|
|
11
|
+
* product and creation date.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `lead:basic:read`
|
|
16
|
+
* - `member:email:read`
|
|
17
|
+
* - `access_pass:basic:read`
|
|
18
|
+
* - `member:basic:read`
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const leadListResponse of client.leads.list({
|
|
24
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
25
|
+
* })) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query: LeadListParams, options?: RequestOptions): PagePromise<LeadListResponsesCursorPage, LeadListResponse>;
|
|
9
31
|
/**
|
|
10
32
|
* Record a new lead for a company, capturing a potential customer's interest in a
|
|
11
33
|
* specific product.
|
|
@@ -61,28 +83,6 @@ export declare class Leads extends APIResource {
|
|
|
61
83
|
* ```
|
|
62
84
|
*/
|
|
63
85
|
update(id: string, body?: LeadUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Lead>;
|
|
64
|
-
/**
|
|
65
|
-
* Returns a paginated list of leads for a company, with optional filtering by
|
|
66
|
-
* product and creation date.
|
|
67
|
-
*
|
|
68
|
-
* Required permissions:
|
|
69
|
-
*
|
|
70
|
-
* - `lead:basic:read`
|
|
71
|
-
* - `member:email:read`
|
|
72
|
-
* - `access_pass:basic:read`
|
|
73
|
-
* - `member:basic:read`
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* // Automatically fetches more pages as needed.
|
|
78
|
-
* for await (const leadListResponse of client.leads.list({
|
|
79
|
-
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
80
|
-
* })) {
|
|
81
|
-
* // ...
|
|
82
|
-
* }
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
list(query: LeadListParams, options?: RequestOptions): PagePromise<LeadListResponsesCursorPage, LeadListResponse>;
|
|
86
86
|
}
|
|
87
87
|
export type LeadListResponsesCursorPage = CursorPage<LeadListResponse>;
|
|
88
88
|
/**
|
|
@@ -269,6 +269,36 @@ export declare namespace LeadListResponse {
|
|
|
269
269
|
username: string;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
+
export interface LeadListParams extends CursorPageParams {
|
|
273
|
+
/**
|
|
274
|
+
* The unique identifier of the company to list leads for.
|
|
275
|
+
*/
|
|
276
|
+
company_id: string;
|
|
277
|
+
/**
|
|
278
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
279
|
+
*/
|
|
280
|
+
before?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Only return leads created after this timestamp.
|
|
283
|
+
*/
|
|
284
|
+
created_after?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Only return leads created before this timestamp.
|
|
287
|
+
*/
|
|
288
|
+
created_before?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* Returns the first _n_ elements from the list.
|
|
291
|
+
*/
|
|
292
|
+
first?: number | null;
|
|
293
|
+
/**
|
|
294
|
+
* Returns the last _n_ elements from the list.
|
|
295
|
+
*/
|
|
296
|
+
last?: number | null;
|
|
297
|
+
/**
|
|
298
|
+
* Filter leads to only those associated with these specific product identifiers.
|
|
299
|
+
*/
|
|
300
|
+
product_ids?: Array<string> | null;
|
|
301
|
+
}
|
|
272
302
|
export interface LeadCreateParams {
|
|
273
303
|
/**
|
|
274
304
|
* The unique identifier of the company to create the lead for, starting with
|
|
@@ -310,37 +340,7 @@ export interface LeadUpdateParams {
|
|
|
310
340
|
*/
|
|
311
341
|
referrer?: string | null;
|
|
312
342
|
}
|
|
313
|
-
export interface LeadListParams extends CursorPageParams {
|
|
314
|
-
/**
|
|
315
|
-
* The unique identifier of the company to list leads for.
|
|
316
|
-
*/
|
|
317
|
-
company_id: string;
|
|
318
|
-
/**
|
|
319
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
320
|
-
*/
|
|
321
|
-
before?: string | null;
|
|
322
|
-
/**
|
|
323
|
-
* Only return leads created after this timestamp.
|
|
324
|
-
*/
|
|
325
|
-
created_after?: string | null;
|
|
326
|
-
/**
|
|
327
|
-
* Only return leads created before this timestamp.
|
|
328
|
-
*/
|
|
329
|
-
created_before?: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Returns the first _n_ elements from the list.
|
|
332
|
-
*/
|
|
333
|
-
first?: number | null;
|
|
334
|
-
/**
|
|
335
|
-
* Returns the last _n_ elements from the list.
|
|
336
|
-
*/
|
|
337
|
-
last?: number | null;
|
|
338
|
-
/**
|
|
339
|
-
* Filter leads to only those associated with these specific product identifiers.
|
|
340
|
-
*/
|
|
341
|
-
product_ids?: Array<string> | null;
|
|
342
|
-
}
|
|
343
343
|
export declare namespace Leads {
|
|
344
|
-
export { type Lead as Lead, type LeadListResponse as LeadListResponse, type LeadListResponsesCursorPage as LeadListResponsesCursorPage, type
|
|
344
|
+
export { type Lead as Lead, type LeadListResponse as LeadListResponse, type LeadListResponsesCursorPage as LeadListResponsesCursorPage, type LeadListParams as LeadListParams, type LeadCreateParams as LeadCreateParams, type LeadUpdateParams as LeadUpdateParams, };
|
|
345
345
|
}
|
|
346
346
|
//# sourceMappingURL=leads.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.d.mts","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI1E;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIhE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"leads.d.mts","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;IAI7D;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC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C,CAAC;CACH"}
|
package/resources/leads.d.ts
CHANGED
|
@@ -6,6 +6,28 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
6
6
|
* Leads
|
|
7
7
|
*/
|
|
8
8
|
export declare class Leads extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of leads for a company, with optional filtering by
|
|
11
|
+
* product and creation date.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `lead:basic:read`
|
|
16
|
+
* - `member:email:read`
|
|
17
|
+
* - `access_pass:basic:read`
|
|
18
|
+
* - `member:basic:read`
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const leadListResponse of client.leads.list({
|
|
24
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
25
|
+
* })) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query: LeadListParams, options?: RequestOptions): PagePromise<LeadListResponsesCursorPage, LeadListResponse>;
|
|
9
31
|
/**
|
|
10
32
|
* Record a new lead for a company, capturing a potential customer's interest in a
|
|
11
33
|
* specific product.
|
|
@@ -61,28 +83,6 @@ export declare class Leads extends APIResource {
|
|
|
61
83
|
* ```
|
|
62
84
|
*/
|
|
63
85
|
update(id: string, body?: LeadUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Lead>;
|
|
64
|
-
/**
|
|
65
|
-
* Returns a paginated list of leads for a company, with optional filtering by
|
|
66
|
-
* product and creation date.
|
|
67
|
-
*
|
|
68
|
-
* Required permissions:
|
|
69
|
-
*
|
|
70
|
-
* - `lead:basic:read`
|
|
71
|
-
* - `member:email:read`
|
|
72
|
-
* - `access_pass:basic:read`
|
|
73
|
-
* - `member:basic:read`
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* // Automatically fetches more pages as needed.
|
|
78
|
-
* for await (const leadListResponse of client.leads.list({
|
|
79
|
-
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
80
|
-
* })) {
|
|
81
|
-
* // ...
|
|
82
|
-
* }
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
list(query: LeadListParams, options?: RequestOptions): PagePromise<LeadListResponsesCursorPage, LeadListResponse>;
|
|
86
86
|
}
|
|
87
87
|
export type LeadListResponsesCursorPage = CursorPage<LeadListResponse>;
|
|
88
88
|
/**
|
|
@@ -269,6 +269,36 @@ export declare namespace LeadListResponse {
|
|
|
269
269
|
username: string;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
+
export interface LeadListParams extends CursorPageParams {
|
|
273
|
+
/**
|
|
274
|
+
* The unique identifier of the company to list leads for.
|
|
275
|
+
*/
|
|
276
|
+
company_id: string;
|
|
277
|
+
/**
|
|
278
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
279
|
+
*/
|
|
280
|
+
before?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Only return leads created after this timestamp.
|
|
283
|
+
*/
|
|
284
|
+
created_after?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Only return leads created before this timestamp.
|
|
287
|
+
*/
|
|
288
|
+
created_before?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* Returns the first _n_ elements from the list.
|
|
291
|
+
*/
|
|
292
|
+
first?: number | null;
|
|
293
|
+
/**
|
|
294
|
+
* Returns the last _n_ elements from the list.
|
|
295
|
+
*/
|
|
296
|
+
last?: number | null;
|
|
297
|
+
/**
|
|
298
|
+
* Filter leads to only those associated with these specific product identifiers.
|
|
299
|
+
*/
|
|
300
|
+
product_ids?: Array<string> | null;
|
|
301
|
+
}
|
|
272
302
|
export interface LeadCreateParams {
|
|
273
303
|
/**
|
|
274
304
|
* The unique identifier of the company to create the lead for, starting with
|
|
@@ -310,37 +340,7 @@ export interface LeadUpdateParams {
|
|
|
310
340
|
*/
|
|
311
341
|
referrer?: string | null;
|
|
312
342
|
}
|
|
313
|
-
export interface LeadListParams extends CursorPageParams {
|
|
314
|
-
/**
|
|
315
|
-
* The unique identifier of the company to list leads for.
|
|
316
|
-
*/
|
|
317
|
-
company_id: string;
|
|
318
|
-
/**
|
|
319
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
320
|
-
*/
|
|
321
|
-
before?: string | null;
|
|
322
|
-
/**
|
|
323
|
-
* Only return leads created after this timestamp.
|
|
324
|
-
*/
|
|
325
|
-
created_after?: string | null;
|
|
326
|
-
/**
|
|
327
|
-
* Only return leads created before this timestamp.
|
|
328
|
-
*/
|
|
329
|
-
created_before?: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Returns the first _n_ elements from the list.
|
|
332
|
-
*/
|
|
333
|
-
first?: number | null;
|
|
334
|
-
/**
|
|
335
|
-
* Returns the last _n_ elements from the list.
|
|
336
|
-
*/
|
|
337
|
-
last?: number | null;
|
|
338
|
-
/**
|
|
339
|
-
* Filter leads to only those associated with these specific product identifiers.
|
|
340
|
-
*/
|
|
341
|
-
product_ids?: Array<string> | null;
|
|
342
|
-
}
|
|
343
343
|
export declare namespace Leads {
|
|
344
|
-
export { type Lead as Lead, type LeadListResponse as LeadListResponse, type LeadListResponsesCursorPage as LeadListResponsesCursorPage, type
|
|
344
|
+
export { type Lead as Lead, type LeadListResponse as LeadListResponse, type LeadListResponsesCursorPage as LeadListResponsesCursorPage, type LeadListParams as LeadListParams, type LeadCreateParams as LeadCreateParams, type LeadUpdateParams as LeadUpdateParams, };
|
|
345
345
|
}
|
|
346
346
|
//# sourceMappingURL=leads.d.ts.map
|
package/resources/leads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.d.ts","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAA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H,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE7C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE7C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/leads.js
CHANGED
|
@@ -9,6 +9,30 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Leads
|
|
10
10
|
*/
|
|
11
11
|
class Leads extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of leads for a company, with optional filtering by
|
|
14
|
+
* product and creation date.
|
|
15
|
+
*
|
|
16
|
+
* Required permissions:
|
|
17
|
+
*
|
|
18
|
+
* - `lead:basic:read`
|
|
19
|
+
* - `member:email:read`
|
|
20
|
+
* - `access_pass:basic:read`
|
|
21
|
+
* - `member:basic:read`
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const leadListResponse of client.leads.list({
|
|
27
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
28
|
+
* })) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(query, options) {
|
|
34
|
+
return this._client.getAPIList('/leads', (pagination_1.CursorPage), { query, ...options });
|
|
35
|
+
}
|
|
12
36
|
/**
|
|
13
37
|
* Record a new lead for a company, capturing a potential customer's interest in a
|
|
14
38
|
* specific product.
|
|
@@ -70,30 +94,6 @@ class Leads extends resource_1.APIResource {
|
|
|
70
94
|
update(id, body = {}, options) {
|
|
71
95
|
return this._client.patch((0, path_1.path) `/leads/${id}`, { body, ...options });
|
|
72
96
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Returns a paginated list of leads for a company, with optional filtering by
|
|
75
|
-
* product and creation date.
|
|
76
|
-
*
|
|
77
|
-
* Required permissions:
|
|
78
|
-
*
|
|
79
|
-
* - `lead:basic:read`
|
|
80
|
-
* - `member:email:read`
|
|
81
|
-
* - `access_pass:basic:read`
|
|
82
|
-
* - `member:basic:read`
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```ts
|
|
86
|
-
* // Automatically fetches more pages as needed.
|
|
87
|
-
* for await (const leadListResponse of client.leads.list({
|
|
88
|
-
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
89
|
-
* })) {
|
|
90
|
-
* // ...
|
|
91
|
-
* }
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
list(query, options) {
|
|
95
|
-
return this._client.getAPIList('/leads', (pagination_1.CursorPage), { query, ...options });
|
|
96
|
-
}
|
|
97
97
|
}
|
|
98
98
|
exports.Leads = Leads;
|
|
99
99
|
//# sourceMappingURL=leads.js.map
|
package/resources/leads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.js","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"leads.js","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,KAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA,uBAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAU,EACV,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAhGD,sBAgGC"}
|
package/resources/leads.mjs
CHANGED
|
@@ -6,6 +6,30 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Leads
|
|
7
7
|
*/
|
|
8
8
|
export class Leads extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of leads for a company, with optional filtering by
|
|
11
|
+
* product and creation date.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `lead:basic:read`
|
|
16
|
+
* - `member:email:read`
|
|
17
|
+
* - `access_pass:basic:read`
|
|
18
|
+
* - `member:basic:read`
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const leadListResponse of client.leads.list({
|
|
24
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
25
|
+
* })) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query, options) {
|
|
31
|
+
return this._client.getAPIList('/leads', (CursorPage), { query, ...options });
|
|
32
|
+
}
|
|
9
33
|
/**
|
|
10
34
|
* Record a new lead for a company, capturing a potential customer's interest in a
|
|
11
35
|
* specific product.
|
|
@@ -67,29 +91,5 @@ export class Leads extends APIResource {
|
|
|
67
91
|
update(id, body = {}, options) {
|
|
68
92
|
return this._client.patch(path `/leads/${id}`, { body, ...options });
|
|
69
93
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Returns a paginated list of leads for a company, with optional filtering by
|
|
72
|
-
* product and creation date.
|
|
73
|
-
*
|
|
74
|
-
* Required permissions:
|
|
75
|
-
*
|
|
76
|
-
* - `lead:basic:read`
|
|
77
|
-
* - `member:email:read`
|
|
78
|
-
* - `access_pass:basic:read`
|
|
79
|
-
* - `member:basic:read`
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* // Automatically fetches more pages as needed.
|
|
84
|
-
* for await (const leadListResponse of client.leads.list({
|
|
85
|
-
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
86
|
-
* })) {
|
|
87
|
-
* // ...
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
list(query, options) {
|
|
92
|
-
return this._client.getAPIList('/leads', (CursorPage), { query, ...options });
|
|
93
|
-
}
|
|
94
94
|
}
|
|
95
95
|
//# sourceMappingURL=leads.mjs.map
|
package/resources/leads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.mjs","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"leads.mjs","sourceRoot":"","sources":["../src/resources/leads.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CACF,KAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA,UAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAU,EACV,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -51,6 +51,10 @@ export interface LedgerAccountRetrieveResponse {
|
|
|
51
51
|
* The fee for transfers, if applicable.
|
|
52
52
|
*/
|
|
53
53
|
transfer_fee: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* The balance cache associated with the account by currency.
|
|
56
|
+
*/
|
|
57
|
+
treasury_balance: LedgerAccountRetrieveResponse.TreasuryBalance | null;
|
|
54
58
|
}
|
|
55
59
|
export declare namespace LedgerAccountRetrieveResponse {
|
|
56
60
|
/**
|
|
@@ -213,7 +217,7 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
213
217
|
*/
|
|
214
218
|
interface LatestVerification {
|
|
215
219
|
/**
|
|
216
|
-
* The
|
|
220
|
+
* The numeric id of the verification record.
|
|
217
221
|
*/
|
|
218
222
|
id: string;
|
|
219
223
|
/**
|
|
@@ -231,6 +235,35 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
231
235
|
status: VerificationsAPI.VerificationStatus;
|
|
232
236
|
}
|
|
233
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* The balance cache associated with the account by currency.
|
|
240
|
+
*/
|
|
241
|
+
interface TreasuryBalance {
|
|
242
|
+
/**
|
|
243
|
+
* The amount of the balance.
|
|
244
|
+
*/
|
|
245
|
+
balance: number;
|
|
246
|
+
/**
|
|
247
|
+
* The balance converted to USD.
|
|
248
|
+
*/
|
|
249
|
+
balance_usd: number;
|
|
250
|
+
/**
|
|
251
|
+
* The currency of the balance.
|
|
252
|
+
*/
|
|
253
|
+
currency: Shared.Currency;
|
|
254
|
+
/**
|
|
255
|
+
* The amount of the balance that is pending.
|
|
256
|
+
*/
|
|
257
|
+
pending_balance: number;
|
|
258
|
+
/**
|
|
259
|
+
* The amount of the balance that is reserved.
|
|
260
|
+
*/
|
|
261
|
+
reserve_balance: number;
|
|
262
|
+
/**
|
|
263
|
+
* The amount of the balance that is withdrawable.
|
|
264
|
+
*/
|
|
265
|
+
total_withdrawable_balance: number;
|
|
266
|
+
}
|
|
234
267
|
}
|
|
235
268
|
export declare namespace LedgerAccounts {
|
|
236
269
|
export { type LedgerAccountRetrieveResponse as LedgerAccountRetrieveResponse };
|