@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/plans.js
CHANGED
|
@@ -9,6 +9,27 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
9
9
|
* Plans
|
|
10
10
|
*/
|
|
11
11
|
class Plans extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of plans belonging to a company, with optional
|
|
14
|
+
* filtering by visibility, type, release method, and product.
|
|
15
|
+
*
|
|
16
|
+
* Required permissions:
|
|
17
|
+
*
|
|
18
|
+
* - `plan:basic:read`
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const planListResponse of client.plans.list({
|
|
24
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
25
|
+
* })) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query, options) {
|
|
31
|
+
return this._client.getAPIList('/plans', (pagination_1.CursorPage), { query, ...options });
|
|
32
|
+
}
|
|
12
33
|
/**
|
|
13
34
|
* Create a new pricing plan for a product. The plan defines the billing interval,
|
|
14
35
|
* price, and availability for customers.
|
|
@@ -67,27 +88,6 @@ class Plans extends resource_1.APIResource {
|
|
|
67
88
|
update(id, body = {}, options) {
|
|
68
89
|
return this._client.patch((0, path_1.path) `/plans/${id}`, { body, ...options });
|
|
69
90
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Returns a paginated list of plans belonging to a company, with optional
|
|
72
|
-
* filtering by visibility, type, release method, and product.
|
|
73
|
-
*
|
|
74
|
-
* Required permissions:
|
|
75
|
-
*
|
|
76
|
-
* - `plan:basic:read`
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```ts
|
|
80
|
-
* // Automatically fetches more pages as needed.
|
|
81
|
-
* for await (const planListResponse of client.plans.list({
|
|
82
|
-
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
83
|
-
* })) {
|
|
84
|
-
* // ...
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
list(query, options) {
|
|
89
|
-
return this._client.getAPIList('/plans', (pagination_1.CursorPage), { query, ...options });
|
|
90
|
-
}
|
|
91
91
|
/**
|
|
92
92
|
* Permanently delete a plan from a product. Existing memberships on this plan will
|
|
93
93
|
* not be affected.
|
package/resources/plans.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,
|
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
CHANGED
|
@@ -6,6 +6,27 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
6
6
|
* Plans
|
|
7
7
|
*/
|
|
8
8
|
export class Plans extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of plans belonging to a company, with optional
|
|
11
|
+
* filtering by visibility, type, release method, and product.
|
|
12
|
+
*
|
|
13
|
+
* Required permissions:
|
|
14
|
+
*
|
|
15
|
+
* - `plan:basic:read`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const planListResponse of client.plans.list({
|
|
21
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
22
|
+
* })) {
|
|
23
|
+
* // ...
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(query, options) {
|
|
28
|
+
return this._client.getAPIList('/plans', (CursorPage), { query, ...options });
|
|
29
|
+
}
|
|
9
30
|
/**
|
|
10
31
|
* Create a new pricing plan for a product. The plan defines the billing interval,
|
|
11
32
|
* price, and availability for customers.
|
|
@@ -64,27 +85,6 @@ export class Plans extends APIResource {
|
|
|
64
85
|
update(id, body = {}, options) {
|
|
65
86
|
return this._client.patch(path `/plans/${id}`, { body, ...options });
|
|
66
87
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Returns a paginated list of plans belonging to a company, with optional
|
|
69
|
-
* filtering by visibility, type, release method, and product.
|
|
70
|
-
*
|
|
71
|
-
* Required permissions:
|
|
72
|
-
*
|
|
73
|
-
* - `plan:basic:read`
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* // Automatically fetches more pages as needed.
|
|
78
|
-
* for await (const planListResponse of client.plans.list({
|
|
79
|
-
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
80
|
-
* })) {
|
|
81
|
-
* // ...
|
|
82
|
-
* }
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
list(query, options) {
|
|
86
|
-
return this._client.getAPIList('/plans', (CursorPage), { query, ...options });
|
|
87
|
-
}
|
|
88
88
|
/**
|
|
89
89
|
* Permanently delete a plan from a product. Existing memberships on this plan will
|
|
90
90
|
* not be affected.
|
package/resources/plans.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.mjs","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,
|
|
1
|
+
{"version":3,"file":"plans.mjs","sourceRoot":"","sources":["../src/resources/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;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;;;;;;;;;;;;;OAaG;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;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
package/resources/products.d.mts
CHANGED
|
@@ -9,23 +9,24 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class Products extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Returns a paginated list of products belonging to a company, with optional
|
|
13
|
+
* filtering by type, visibility, and creation date.
|
|
14
14
|
*
|
|
15
15
|
* Required permissions:
|
|
16
16
|
*
|
|
17
|
-
* - `access_pass:create`
|
|
18
17
|
* - `access_pass:basic:read`
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
20
|
* ```ts
|
|
22
|
-
*
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const productListItem of client.products.list({
|
|
23
23
|
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
24
|
-
*
|
|
25
|
-
*
|
|
24
|
+
* })) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
+
list(query: ProductListParams, options?: RequestOptions): PagePromise<ProductListItemsCursorPage, Shared.ProductListItem>;
|
|
29
30
|
/**
|
|
30
31
|
* Retrieves the details of an existing product.
|
|
31
32
|
*
|
|
@@ -42,40 +43,39 @@ export declare class Products extends APIResource {
|
|
|
42
43
|
*/
|
|
43
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Product>;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* Create a new product for a company. The product serves as the top-level
|
|
47
|
+
* container for plans and experiences.
|
|
46
48
|
*
|
|
47
49
|
* Required permissions:
|
|
48
50
|
*
|
|
49
|
-
* - `access_pass:
|
|
51
|
+
* - `access_pass:create`
|
|
50
52
|
* - `access_pass:basic:read`
|
|
51
53
|
*
|
|
52
54
|
* @example
|
|
53
55
|
* ```ts
|
|
54
|
-
* const product = await client.products.
|
|
55
|
-
* '
|
|
56
|
-
*
|
|
56
|
+
* const product = await client.products.create({
|
|
57
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
58
|
+
* title: 'title',
|
|
59
|
+
* });
|
|
57
60
|
* ```
|
|
58
61
|
*/
|
|
59
|
-
|
|
62
|
+
create(body: ProductCreateParams, options?: RequestOptions): APIPromise<Shared.Product>;
|
|
60
63
|
/**
|
|
61
|
-
*
|
|
62
|
-
* filtering by type, visibility, and creation date.
|
|
64
|
+
* Update a product's title, description, visibility, and other settings.
|
|
63
65
|
*
|
|
64
66
|
* Required permissions:
|
|
65
67
|
*
|
|
68
|
+
* - `access_pass:update`
|
|
66
69
|
* - `access_pass:basic:read`
|
|
67
70
|
*
|
|
68
71
|
* @example
|
|
69
72
|
* ```ts
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* })) {
|
|
74
|
-
* // ...
|
|
75
|
-
* }
|
|
73
|
+
* const product = await client.products.update(
|
|
74
|
+
* 'prod_xxxxxxxxxxxxx',
|
|
75
|
+
* );
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
update(id: string, body?: ProductUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Product>;
|
|
79
79
|
/**
|
|
80
80
|
* Permanently delete a product and remove it from the company's catalog.
|
|
81
81
|
*
|
|
@@ -96,6 +96,48 @@ export declare class Products extends APIResource {
|
|
|
96
96
|
* Represents `true` or `false` values.
|
|
97
97
|
*/
|
|
98
98
|
export type ProductDeleteResponse = boolean;
|
|
99
|
+
export interface ProductListParams extends CursorPageParams {
|
|
100
|
+
/**
|
|
101
|
+
* The unique identifier of the company to list products for.
|
|
102
|
+
*/
|
|
103
|
+
company_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
106
|
+
*/
|
|
107
|
+
before?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Only return products created after this timestamp.
|
|
110
|
+
*/
|
|
111
|
+
created_after?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Only return products created before this timestamp.
|
|
114
|
+
*/
|
|
115
|
+
created_before?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The direction of the sort.
|
|
118
|
+
*/
|
|
119
|
+
direction?: Shared.Direction | null;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the first _n_ elements from the list.
|
|
122
|
+
*/
|
|
123
|
+
first?: number | null;
|
|
124
|
+
/**
|
|
125
|
+
* Returns the last _n_ elements from the list.
|
|
126
|
+
*/
|
|
127
|
+
last?: number | null;
|
|
128
|
+
/**
|
|
129
|
+
* The ways a relation of AccessPasses can be ordered
|
|
130
|
+
*/
|
|
131
|
+
order?: 'active_memberships_count' | 'created_at' | 'usd_gmv' | 'usd_gmv_30_days' | null;
|
|
132
|
+
/**
|
|
133
|
+
* Filter to only products matching these type classifications.
|
|
134
|
+
*/
|
|
135
|
+
product_types?: Array<Shared.AccessPassType> | null;
|
|
136
|
+
/**
|
|
137
|
+
* Filter to only products matching these visibility states.
|
|
138
|
+
*/
|
|
139
|
+
visibilities?: Array<Shared.VisibilityFilter> | null;
|
|
140
|
+
}
|
|
99
141
|
export interface ProductCreateParams {
|
|
100
142
|
/**
|
|
101
143
|
* The unique identifier of the company to create this product for.
|
|
@@ -154,6 +196,14 @@ export interface ProductCreateParams {
|
|
|
154
196
|
* The different statuses of the global affiliate program for a product.
|
|
155
197
|
*/
|
|
156
198
|
member_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
199
|
+
/**
|
|
200
|
+
* Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
201
|
+
* payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
202
|
+
* value.
|
|
203
|
+
*/
|
|
204
|
+
metadata?: {
|
|
205
|
+
[key: string]: unknown;
|
|
206
|
+
} | null;
|
|
157
207
|
/**
|
|
158
208
|
* Configuration for an automatically generated plan to attach to this product.
|
|
159
209
|
*/
|
|
@@ -299,6 +349,14 @@ export interface ProductUpdateParams {
|
|
|
299
349
|
* The different statuses of the global affiliate program for a product.
|
|
300
350
|
*/
|
|
301
351
|
member_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
352
|
+
/**
|
|
353
|
+
* Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
354
|
+
* payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
355
|
+
* value.
|
|
356
|
+
*/
|
|
357
|
+
metadata?: {
|
|
358
|
+
[key: string]: unknown;
|
|
359
|
+
} | null;
|
|
302
360
|
/**
|
|
303
361
|
* The unique identifier of the tax classification code to apply to this product.
|
|
304
362
|
*/
|
|
@@ -353,50 +411,8 @@ export declare namespace ProductUpdateParams {
|
|
|
353
411
|
show_price?: boolean | null;
|
|
354
412
|
}
|
|
355
413
|
}
|
|
356
|
-
export interface ProductListParams extends CursorPageParams {
|
|
357
|
-
/**
|
|
358
|
-
* The unique identifier of the company to list products for.
|
|
359
|
-
*/
|
|
360
|
-
company_id: string;
|
|
361
|
-
/**
|
|
362
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
363
|
-
*/
|
|
364
|
-
before?: string | null;
|
|
365
|
-
/**
|
|
366
|
-
* Only return products created after this timestamp.
|
|
367
|
-
*/
|
|
368
|
-
created_after?: string | null;
|
|
369
|
-
/**
|
|
370
|
-
* Only return products created before this timestamp.
|
|
371
|
-
*/
|
|
372
|
-
created_before?: string | null;
|
|
373
|
-
/**
|
|
374
|
-
* The direction of the sort.
|
|
375
|
-
*/
|
|
376
|
-
direction?: Shared.Direction | null;
|
|
377
|
-
/**
|
|
378
|
-
* Returns the first _n_ elements from the list.
|
|
379
|
-
*/
|
|
380
|
-
first?: number | null;
|
|
381
|
-
/**
|
|
382
|
-
* Returns the last _n_ elements from the list.
|
|
383
|
-
*/
|
|
384
|
-
last?: number | null;
|
|
385
|
-
/**
|
|
386
|
-
* The ways a relation of AccessPasses can be ordered
|
|
387
|
-
*/
|
|
388
|
-
order?: 'active_memberships_count' | 'created_at' | 'usd_gmv' | 'usd_gmv_30_days' | null;
|
|
389
|
-
/**
|
|
390
|
-
* Filter to only products matching these type classifications.
|
|
391
|
-
*/
|
|
392
|
-
product_types?: Array<Shared.AccessPassType> | null;
|
|
393
|
-
/**
|
|
394
|
-
* Filter to only products matching these visibility states.
|
|
395
|
-
*/
|
|
396
|
-
visibilities?: Array<Shared.VisibilityFilter> | null;
|
|
397
|
-
}
|
|
398
414
|
export declare namespace Products {
|
|
399
|
-
export { type ProductDeleteResponse as ProductDeleteResponse, type
|
|
415
|
+
export { type ProductDeleteResponse as ProductDeleteResponse, type ProductListParams as ProductListParams, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, };
|
|
400
416
|
}
|
|
401
417
|
export { type ProductListItemsCursorPage };
|
|
402
418
|
//# sourceMappingURL=products.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../src/resources/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,0BAA0B,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS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AE,KAAK,0BAA0B,EAAE,CAAC"}
|
package/resources/products.d.ts
CHANGED
|
@@ -9,23 +9,24 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class Products extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Returns a paginated list of products belonging to a company, with optional
|
|
13
|
+
* filtering by type, visibility, and creation date.
|
|
14
14
|
*
|
|
15
15
|
* Required permissions:
|
|
16
16
|
*
|
|
17
|
-
* - `access_pass:create`
|
|
18
17
|
* - `access_pass:basic:read`
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
20
|
* ```ts
|
|
22
|
-
*
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const productListItem of client.products.list({
|
|
23
23
|
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
24
|
-
*
|
|
25
|
-
*
|
|
24
|
+
* })) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
+
list(query: ProductListParams, options?: RequestOptions): PagePromise<ProductListItemsCursorPage, Shared.ProductListItem>;
|
|
29
30
|
/**
|
|
30
31
|
* Retrieves the details of an existing product.
|
|
31
32
|
*
|
|
@@ -42,40 +43,39 @@ export declare class Products extends APIResource {
|
|
|
42
43
|
*/
|
|
43
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Product>;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* Create a new product for a company. The product serves as the top-level
|
|
47
|
+
* container for plans and experiences.
|
|
46
48
|
*
|
|
47
49
|
* Required permissions:
|
|
48
50
|
*
|
|
49
|
-
* - `access_pass:
|
|
51
|
+
* - `access_pass:create`
|
|
50
52
|
* - `access_pass:basic:read`
|
|
51
53
|
*
|
|
52
54
|
* @example
|
|
53
55
|
* ```ts
|
|
54
|
-
* const product = await client.products.
|
|
55
|
-
* '
|
|
56
|
-
*
|
|
56
|
+
* const product = await client.products.create({
|
|
57
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
58
|
+
* title: 'title',
|
|
59
|
+
* });
|
|
57
60
|
* ```
|
|
58
61
|
*/
|
|
59
|
-
|
|
62
|
+
create(body: ProductCreateParams, options?: RequestOptions): APIPromise<Shared.Product>;
|
|
60
63
|
/**
|
|
61
|
-
*
|
|
62
|
-
* filtering by type, visibility, and creation date.
|
|
64
|
+
* Update a product's title, description, visibility, and other settings.
|
|
63
65
|
*
|
|
64
66
|
* Required permissions:
|
|
65
67
|
*
|
|
68
|
+
* - `access_pass:update`
|
|
66
69
|
* - `access_pass:basic:read`
|
|
67
70
|
*
|
|
68
71
|
* @example
|
|
69
72
|
* ```ts
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* })) {
|
|
74
|
-
* // ...
|
|
75
|
-
* }
|
|
73
|
+
* const product = await client.products.update(
|
|
74
|
+
* 'prod_xxxxxxxxxxxxx',
|
|
75
|
+
* );
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
update(id: string, body?: ProductUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Product>;
|
|
79
79
|
/**
|
|
80
80
|
* Permanently delete a product and remove it from the company's catalog.
|
|
81
81
|
*
|
|
@@ -96,6 +96,48 @@ export declare class Products extends APIResource {
|
|
|
96
96
|
* Represents `true` or `false` values.
|
|
97
97
|
*/
|
|
98
98
|
export type ProductDeleteResponse = boolean;
|
|
99
|
+
export interface ProductListParams extends CursorPageParams {
|
|
100
|
+
/**
|
|
101
|
+
* The unique identifier of the company to list products for.
|
|
102
|
+
*/
|
|
103
|
+
company_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
106
|
+
*/
|
|
107
|
+
before?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Only return products created after this timestamp.
|
|
110
|
+
*/
|
|
111
|
+
created_after?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Only return products created before this timestamp.
|
|
114
|
+
*/
|
|
115
|
+
created_before?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The direction of the sort.
|
|
118
|
+
*/
|
|
119
|
+
direction?: Shared.Direction | null;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the first _n_ elements from the list.
|
|
122
|
+
*/
|
|
123
|
+
first?: number | null;
|
|
124
|
+
/**
|
|
125
|
+
* Returns the last _n_ elements from the list.
|
|
126
|
+
*/
|
|
127
|
+
last?: number | null;
|
|
128
|
+
/**
|
|
129
|
+
* The ways a relation of AccessPasses can be ordered
|
|
130
|
+
*/
|
|
131
|
+
order?: 'active_memberships_count' | 'created_at' | 'usd_gmv' | 'usd_gmv_30_days' | null;
|
|
132
|
+
/**
|
|
133
|
+
* Filter to only products matching these type classifications.
|
|
134
|
+
*/
|
|
135
|
+
product_types?: Array<Shared.AccessPassType> | null;
|
|
136
|
+
/**
|
|
137
|
+
* Filter to only products matching these visibility states.
|
|
138
|
+
*/
|
|
139
|
+
visibilities?: Array<Shared.VisibilityFilter> | null;
|
|
140
|
+
}
|
|
99
141
|
export interface ProductCreateParams {
|
|
100
142
|
/**
|
|
101
143
|
* The unique identifier of the company to create this product for.
|
|
@@ -154,6 +196,14 @@ export interface ProductCreateParams {
|
|
|
154
196
|
* The different statuses of the global affiliate program for a product.
|
|
155
197
|
*/
|
|
156
198
|
member_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
199
|
+
/**
|
|
200
|
+
* Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
201
|
+
* payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
202
|
+
* value.
|
|
203
|
+
*/
|
|
204
|
+
metadata?: {
|
|
205
|
+
[key: string]: unknown;
|
|
206
|
+
} | null;
|
|
157
207
|
/**
|
|
158
208
|
* Configuration for an automatically generated plan to attach to this product.
|
|
159
209
|
*/
|
|
@@ -299,6 +349,14 @@ export interface ProductUpdateParams {
|
|
|
299
349
|
* The different statuses of the global affiliate program for a product.
|
|
300
350
|
*/
|
|
301
351
|
member_affiliate_status?: Shared.GlobalAffiliateStatus | null;
|
|
352
|
+
/**
|
|
353
|
+
* Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
354
|
+
* payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
355
|
+
* value.
|
|
356
|
+
*/
|
|
357
|
+
metadata?: {
|
|
358
|
+
[key: string]: unknown;
|
|
359
|
+
} | null;
|
|
302
360
|
/**
|
|
303
361
|
* The unique identifier of the tax classification code to apply to this product.
|
|
304
362
|
*/
|
|
@@ -353,50 +411,8 @@ export declare namespace ProductUpdateParams {
|
|
|
353
411
|
show_price?: boolean | null;
|
|
354
412
|
}
|
|
355
413
|
}
|
|
356
|
-
export interface ProductListParams extends CursorPageParams {
|
|
357
|
-
/**
|
|
358
|
-
* The unique identifier of the company to list products for.
|
|
359
|
-
*/
|
|
360
|
-
company_id: string;
|
|
361
|
-
/**
|
|
362
|
-
* Returns the elements in the list that come before the specified cursor.
|
|
363
|
-
*/
|
|
364
|
-
before?: string | null;
|
|
365
|
-
/**
|
|
366
|
-
* Only return products created after this timestamp.
|
|
367
|
-
*/
|
|
368
|
-
created_after?: string | null;
|
|
369
|
-
/**
|
|
370
|
-
* Only return products created before this timestamp.
|
|
371
|
-
*/
|
|
372
|
-
created_before?: string | null;
|
|
373
|
-
/**
|
|
374
|
-
* The direction of the sort.
|
|
375
|
-
*/
|
|
376
|
-
direction?: Shared.Direction | null;
|
|
377
|
-
/**
|
|
378
|
-
* Returns the first _n_ elements from the list.
|
|
379
|
-
*/
|
|
380
|
-
first?: number | null;
|
|
381
|
-
/**
|
|
382
|
-
* Returns the last _n_ elements from the list.
|
|
383
|
-
*/
|
|
384
|
-
last?: number | null;
|
|
385
|
-
/**
|
|
386
|
-
* The ways a relation of AccessPasses can be ordered
|
|
387
|
-
*/
|
|
388
|
-
order?: 'active_memberships_count' | 'created_at' | 'usd_gmv' | 'usd_gmv_30_days' | null;
|
|
389
|
-
/**
|
|
390
|
-
* Filter to only products matching these type classifications.
|
|
391
|
-
*/
|
|
392
|
-
product_types?: Array<Shared.AccessPassType> | null;
|
|
393
|
-
/**
|
|
394
|
-
* Filter to only products matching these visibility states.
|
|
395
|
-
*/
|
|
396
|
-
visibilities?: Array<Shared.VisibilityFilter> | null;
|
|
397
|
-
}
|
|
398
414
|
export declare namespace Products {
|
|
399
|
-
export { type ProductDeleteResponse as ProductDeleteResponse, type
|
|
415
|
+
export { type ProductDeleteResponse as ProductDeleteResponse, type ProductListParams as ProductListParams, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, };
|
|
400
416
|
}
|
|
401
417
|
export { type ProductListItemsCursorPage };
|
|
402
418
|
//# sourceMappingURL=products.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../src/resources/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,0BAA0B,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../src/resources/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,0BAA0B,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA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