@whop/sdk 0.0.26 → 0.0.28
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 +78 -0
- package/client.d.mts +10 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -9
- package/client.d.ts.map +1 -1
- package/client.js +16 -2
- package/client.js.map +1 -1
- package/client.mjs +16 -2
- package/client.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +34 -54
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +34 -54
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account-links.d.mts +15 -13
- package/resources/account-links.d.mts.map +1 -1
- package/resources/account-links.d.ts +15 -13
- package/resources/account-links.d.ts.map +1 -1
- package/resources/account-links.js +2 -3
- package/resources/account-links.js.map +1 -1
- package/resources/account-links.mjs +2 -3
- package/resources/account-links.mjs.map +1 -1
- package/resources/ai-chats.d.mts +70 -30
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +70 -30
- 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 +37 -35
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +37 -35
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +7 -4
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +7 -4
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +86 -60
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +86 -60
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +7 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +7 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +38 -32
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +38 -32
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +3 -2
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +3 -2
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +28 -20
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +28 -20
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +5 -3
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +5 -3
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +75 -58
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +75 -58
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +3 -2
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +3 -2
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +88 -56
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +88 -56
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +9 -7
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +9 -7
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +90 -67
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +90 -67
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +6 -3
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +6 -3
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/course-chapters.d.mts +27 -22
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +27 -22
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +5 -5
- package/resources/course-chapters.mjs +5 -5
- package/resources/course-lesson-interactions.d.mts +7 -6
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +7 -6
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +3 -2
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +3 -2
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +141 -99
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +141 -99
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +12 -8
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +12 -8
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +44 -35
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +44 -35
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +3 -2
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +3 -2
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +140 -99
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +140 -99
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +9 -5
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +9 -5
- package/resources/courses.mjs.map +1 -1
- package/resources/disputes.d.mts +176 -120
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +176 -120
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +4 -2
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +4 -2
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +29 -16
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +29 -16
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +9 -5
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +9 -5
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +30 -21
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +30 -21
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +9 -5
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +9 -5
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +35 -27
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +35 -27
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -4
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -4
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +58 -49
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +58 -49
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +6 -5
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +6 -5
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +38 -27
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +38 -27
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +6 -3
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +6 -3
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +23 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +23 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -2
- package/resources/files.mjs.map +1 -1
- package/resources/forum-posts.d.mts +68 -45
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +68 -45
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +8 -4
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +8 -4
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +21 -13
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +21 -13
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +5 -3
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +5 -3
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +136 -100
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +136 -100
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +7 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +7 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +76 -54
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +76 -54
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +6 -4
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +6 -4
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +19 -15
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +19 -15
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +1 -1
- package/resources/ledger-accounts.mjs +1 -1
- package/resources/members.d.mts +27 -28
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +27 -28
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +3 -2
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +3 -2
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +85 -62
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +85 -62
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +12 -8
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +12 -8
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +53 -35
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +53 -35
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +9 -5
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +9 -5
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +33 -25
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +33 -25
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +2 -1
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +2 -1
- package/resources/notifications.mjs.map +1 -1
- package/resources/payment-methods.d.mts +212 -114
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +212 -114
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +5 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +5 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +96 -56
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +96 -56
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +23 -10
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +23 -10
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-methods.d.mts +50 -35
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +50 -35
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +3 -2
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +3 -2
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +136 -95
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +136 -95
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +9 -5
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +9 -5
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +80 -67
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +80 -67
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +7 -5
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +7 -5
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +60 -40
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +60 -40
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +7 -4
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +7 -4
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -19
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -19
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +7 -4
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +7 -4
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +57 -39
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +57 -39
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +3 -2
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +3 -2
- package/resources/refunds.mjs.map +1 -1
- package/resources/reviews.d.mts +76 -60
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +76 -60
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +3 -2
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +3 -2
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +77 -61
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +77 -61
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +4 -10
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +4 -10
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +854 -509
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +854 -509
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +30 -21
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +30 -21
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +5 -3
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +5 -3
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +28 -20
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +28 -20
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +5 -4
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +5 -4
- package/resources/support-channels.mjs.map +1 -1
- package/resources/topups.d.mts +13 -9
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +13 -9
- package/resources/topups.d.ts.map +1 -1
- package/resources/topups.js +2 -1
- package/resources/topups.js.map +1 -1
- package/resources/topups.mjs +2 -1
- package/resources/topups.mjs.map +1 -1
- package/resources/transfers.d.mts +37 -28
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +37 -28
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +5 -3
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +5 -3
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +60 -18
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +60 -18
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +13 -2
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +13 -2
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +7 -5
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +7 -5
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +1 -1
- package/resources/verifications.mjs +1 -1
- package/resources/webhooks.d.mts +188 -133
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +188 -133
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +60 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +60 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +3 -2
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +3 -2
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +33 -11
- package/src/resources/access-tokens.ts +37 -59
- package/src/resources/account-links.ts +15 -13
- package/src/resources/ai-chats.ts +76 -30
- package/src/resources/app-builds.ts +37 -35
- package/src/resources/apps.ts +89 -60
- package/src/resources/authorized-users.ts +38 -32
- package/src/resources/chat-channels.ts +28 -20
- package/src/resources/checkout-configurations.ts +76 -58
- package/src/resources/companies.ts +94 -57
- package/src/resources/company-token-transactions.ts +91 -68
- package/src/resources/course-chapters.ts +27 -22
- package/src/resources/course-lesson-interactions.ts +7 -6
- package/src/resources/course-lessons.ts +141 -99
- package/src/resources/course-students.ts +44 -35
- package/src/resources/courses.ts +140 -99
- package/src/resources/disputes.ts +176 -120
- package/src/resources/dm-channels.ts +29 -16
- package/src/resources/dm-members.ts +30 -21
- package/src/resources/entries.ts +35 -27
- package/src/resources/experiences.ts +58 -49
- package/src/resources/fee-markups.ts +38 -27
- package/src/resources/files.ts +23 -19
- package/src/resources/forum-posts.ts +69 -45
- package/src/resources/forums.ts +21 -13
- package/src/resources/index.ts +4 -2
- package/src/resources/invoices.ts +140 -100
- package/src/resources/leads.ts +76 -54
- package/src/resources/ledger-accounts.ts +19 -15
- package/src/resources/members.ts +27 -28
- package/src/resources/memberships.ts +86 -62
- package/src/resources/messages.ts +53 -35
- package/src/resources/notifications.ts +33 -25
- package/src/resources/payment-methods.ts +212 -114
- package/src/resources/payments.ts +103 -55
- package/src/resources/payout-methods.ts +50 -35
- package/src/resources/plans.ts +136 -95
- package/src/resources/products.ts +219 -70
- package/src/resources/promo-codes.ts +60 -40
- package/src/resources/reactions.ts +25 -19
- package/src/resources/refunds.ts +59 -39
- package/src/resources/reviews.ts +76 -60
- package/src/resources/setup-intents.ts +77 -61
- package/src/resources/shared.ts +2797 -508
- package/src/resources/shipments.ts +30 -21
- package/src/resources/support-channels.ts +28 -20
- package/src/resources/topups.ts +13 -9
- package/src/resources/transfers.ts +37 -28
- package/src/resources/users.ts +72 -18
- package/src/resources/verifications.ts +7 -5
- package/src/resources/webhooks.ts +188 -133
- package/src/resources/withdrawals.ts +60 -46
- 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/reviews.d.mts
CHANGED
|
@@ -4,11 +4,12 @@ import { CursorPage, type CursorPageParams, PagePromise } from "../core/paginati
|
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
5
|
export declare class Reviews extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Retrieves the details of an existing review.
|
|
8
8
|
*/
|
|
9
9
|
retrieve(id: string, options?: RequestOptions): APIPromise<ReviewRetrieveResponse>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns a paginated list of customer reviews for a specific product, with
|
|
12
|
+
* optional filtering by star rating and creation date.
|
|
12
13
|
*/
|
|
13
14
|
list(query: ReviewListParams, options?: RequestOptions): PagePromise<ReviewListResponsesCursorPage, ReviewListResponse>;
|
|
14
15
|
}
|
|
@@ -18,64 +19,67 @@ export type ReviewListResponsesCursorPage = CursorPage<ReviewListResponse>;
|
|
|
18
19
|
*/
|
|
19
20
|
export type ReviewStatus = 'pending' | 'published' | 'removed';
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* A user-submitted review of a company, including a star rating and optional text
|
|
23
|
+
* feedback.
|
|
22
24
|
*/
|
|
23
25
|
export interface ReviewRetrieveResponse {
|
|
24
26
|
/**
|
|
25
|
-
* The
|
|
27
|
+
* The unique identifier for the review.
|
|
26
28
|
*/
|
|
27
29
|
id: string;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* A list of files and media attached to the review.
|
|
30
32
|
*/
|
|
31
33
|
attachments: Array<ReviewRetrieveResponse.Attachment>;
|
|
32
34
|
/**
|
|
33
|
-
* The company
|
|
35
|
+
* The company that this review was written for.
|
|
34
36
|
*/
|
|
35
37
|
company: ReviewRetrieveResponse.Company;
|
|
36
38
|
/**
|
|
37
|
-
* The
|
|
39
|
+
* The datetime the review was created.
|
|
38
40
|
*/
|
|
39
41
|
created_at: string;
|
|
40
42
|
/**
|
|
41
|
-
* The
|
|
43
|
+
* The body text of the review containing the user's detailed feedback. Returns an
|
|
44
|
+
* empty string if no description was provided.
|
|
42
45
|
*/
|
|
43
46
|
description: string | null;
|
|
44
47
|
/**
|
|
45
|
-
* The timestamp of when the
|
|
48
|
+
* The timestamp of when the reviewer first joined the product. Null if unknown.
|
|
46
49
|
*/
|
|
47
50
|
joined_at: string | null;
|
|
48
51
|
/**
|
|
49
|
-
* Whether
|
|
52
|
+
* Whether the reviewer paid for the product. Null if the payment status is
|
|
50
53
|
* unknown.
|
|
51
54
|
*/
|
|
52
55
|
paid_for_product: boolean | null;
|
|
53
56
|
/**
|
|
54
|
-
* The product
|
|
57
|
+
* The product that this review was written for.
|
|
55
58
|
*/
|
|
56
59
|
product: ReviewRetrieveResponse.Product;
|
|
57
60
|
/**
|
|
58
|
-
* The timestamp of when the review was published.
|
|
61
|
+
* The timestamp of when the review was published. Null if the review has not been
|
|
62
|
+
* published yet.
|
|
59
63
|
*/
|
|
60
64
|
published_at: string | null;
|
|
61
65
|
/**
|
|
62
|
-
* The
|
|
66
|
+
* The star rating given by the reviewer, from 1 to 5.
|
|
63
67
|
*/
|
|
64
68
|
stars: number;
|
|
65
69
|
/**
|
|
66
|
-
* The status of the review.
|
|
70
|
+
* The current moderation status of the review.
|
|
67
71
|
*/
|
|
68
72
|
status: ReviewStatus;
|
|
69
73
|
/**
|
|
70
|
-
*
|
|
74
|
+
* A short summary title for the review. Null if the reviewer did not provide one.
|
|
71
75
|
*/
|
|
72
76
|
title: string | null;
|
|
73
77
|
/**
|
|
74
|
-
* The
|
|
78
|
+
* The datetime the review was last updated.
|
|
75
79
|
*/
|
|
76
80
|
updated_at: string;
|
|
77
81
|
/**
|
|
78
|
-
* The user account
|
|
82
|
+
* The user account of the person who wrote this review.
|
|
79
83
|
*/
|
|
80
84
|
user: ReviewRetrieveResponse.User;
|
|
81
85
|
}
|
|
@@ -85,122 +89,130 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
85
89
|
*/
|
|
86
90
|
interface Attachment {
|
|
87
91
|
/**
|
|
88
|
-
*
|
|
92
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
93
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
94
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
95
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
96
|
+
* input value will be accepted as an ID.
|
|
89
97
|
*/
|
|
90
98
|
id: string;
|
|
91
99
|
/**
|
|
92
|
-
* The
|
|
100
|
+
* The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
|
|
93
101
|
*/
|
|
94
102
|
content_type: string | null;
|
|
95
103
|
/**
|
|
96
|
-
* The
|
|
104
|
+
* The original filename of the uploaded attachment, including its file extension.
|
|
97
105
|
*/
|
|
98
106
|
filename: string | null;
|
|
99
107
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
108
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
109
|
+
* used for displaying attachments in apps.
|
|
102
110
|
*/
|
|
103
111
|
url: string | null;
|
|
104
112
|
}
|
|
105
113
|
/**
|
|
106
|
-
* The company
|
|
114
|
+
* The company that this review was written for.
|
|
107
115
|
*/
|
|
108
116
|
interface Company {
|
|
109
117
|
/**
|
|
110
|
-
* The
|
|
118
|
+
* The unique identifier for the company.
|
|
111
119
|
*/
|
|
112
120
|
id: string;
|
|
113
121
|
/**
|
|
114
|
-
* The slug
|
|
122
|
+
* The URL slug for the company's store page (e.g., 'pickaxe' in whop.com/pickaxe).
|
|
115
123
|
*/
|
|
116
124
|
route: string;
|
|
117
125
|
/**
|
|
118
|
-
* The
|
|
126
|
+
* The display name of the company shown to customers.
|
|
119
127
|
*/
|
|
120
128
|
title: string;
|
|
121
129
|
}
|
|
122
130
|
/**
|
|
123
|
-
* The product
|
|
131
|
+
* The product that this review was written for.
|
|
124
132
|
*/
|
|
125
133
|
interface Product {
|
|
126
134
|
/**
|
|
127
|
-
* The
|
|
135
|
+
* The unique identifier for the product.
|
|
128
136
|
*/
|
|
129
137
|
id: string;
|
|
130
138
|
/**
|
|
131
|
-
* The
|
|
139
|
+
* The display name of the product shown to customers on the product page and in
|
|
140
|
+
* search results.
|
|
132
141
|
*/
|
|
133
142
|
title: string;
|
|
134
143
|
}
|
|
135
144
|
/**
|
|
136
|
-
* The user account
|
|
145
|
+
* The user account of the person who wrote this review.
|
|
137
146
|
*/
|
|
138
147
|
interface User {
|
|
139
148
|
/**
|
|
140
|
-
* The
|
|
149
|
+
* The unique identifier for the user.
|
|
141
150
|
*/
|
|
142
151
|
id: string;
|
|
143
152
|
/**
|
|
144
|
-
* The
|
|
153
|
+
* The user's display name shown on their public profile.
|
|
145
154
|
*/
|
|
146
155
|
name: string | null;
|
|
147
156
|
/**
|
|
148
|
-
* The
|
|
157
|
+
* The user's unique username shown on their public profile.
|
|
149
158
|
*/
|
|
150
159
|
username: string;
|
|
151
160
|
}
|
|
152
161
|
}
|
|
153
162
|
/**
|
|
154
|
-
*
|
|
163
|
+
* A user-submitted review of a company, including a star rating and optional text
|
|
164
|
+
* feedback.
|
|
155
165
|
*/
|
|
156
166
|
export interface ReviewListResponse {
|
|
157
167
|
/**
|
|
158
|
-
* The
|
|
168
|
+
* The unique identifier for the review.
|
|
159
169
|
*/
|
|
160
170
|
id: string;
|
|
161
171
|
/**
|
|
162
|
-
*
|
|
172
|
+
* A list of files and media attached to the review.
|
|
163
173
|
*/
|
|
164
174
|
attachments: Array<ReviewListResponse.Attachment>;
|
|
165
175
|
/**
|
|
166
|
-
* The
|
|
176
|
+
* The datetime the review was created.
|
|
167
177
|
*/
|
|
168
178
|
created_at: string;
|
|
169
179
|
/**
|
|
170
|
-
* The
|
|
180
|
+
* The body text of the review containing the user's detailed feedback. Returns an
|
|
181
|
+
* empty string if no description was provided.
|
|
171
182
|
*/
|
|
172
183
|
description: string | null;
|
|
173
184
|
/**
|
|
174
|
-
* The timestamp of when the
|
|
185
|
+
* The timestamp of when the reviewer first joined the product. Null if unknown.
|
|
175
186
|
*/
|
|
176
187
|
joined_at: string | null;
|
|
177
188
|
/**
|
|
178
|
-
* Whether
|
|
189
|
+
* Whether the reviewer paid for the product. Null if the payment status is
|
|
179
190
|
* unknown.
|
|
180
191
|
*/
|
|
181
192
|
paid_for_product: boolean | null;
|
|
182
193
|
/**
|
|
183
|
-
* The timestamp of when the review was published.
|
|
194
|
+
* The timestamp of when the review was published. Null if the review has not been
|
|
195
|
+
* published yet.
|
|
184
196
|
*/
|
|
185
197
|
published_at: string | null;
|
|
186
198
|
/**
|
|
187
|
-
* The
|
|
199
|
+
* The star rating given by the reviewer, from 1 to 5.
|
|
188
200
|
*/
|
|
189
201
|
stars: number;
|
|
190
202
|
/**
|
|
191
|
-
* The status of the review.
|
|
203
|
+
* The current moderation status of the review.
|
|
192
204
|
*/
|
|
193
205
|
status: ReviewStatus;
|
|
194
206
|
/**
|
|
195
|
-
*
|
|
207
|
+
* A short summary title for the review. Null if the reviewer did not provide one.
|
|
196
208
|
*/
|
|
197
209
|
title: string | null;
|
|
198
210
|
/**
|
|
199
|
-
* The
|
|
211
|
+
* The datetime the review was last updated.
|
|
200
212
|
*/
|
|
201
213
|
updated_at: string;
|
|
202
214
|
/**
|
|
203
|
-
* The user account
|
|
215
|
+
* The user account of the person who wrote this review.
|
|
204
216
|
*/
|
|
205
217
|
user: ReviewListResponse.User;
|
|
206
218
|
}
|
|
@@ -210,44 +222,48 @@ export declare namespace ReviewListResponse {
|
|
|
210
222
|
*/
|
|
211
223
|
interface Attachment {
|
|
212
224
|
/**
|
|
213
|
-
*
|
|
225
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
226
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
227
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
228
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
229
|
+
* input value will be accepted as an ID.
|
|
214
230
|
*/
|
|
215
231
|
id: string;
|
|
216
232
|
/**
|
|
217
|
-
* The
|
|
233
|
+
* The MIME type of the uploaded file (e.g., image/jpeg, video/mp4, audio/mpeg).
|
|
218
234
|
*/
|
|
219
235
|
content_type: string | null;
|
|
220
236
|
/**
|
|
221
|
-
* The
|
|
237
|
+
* The original filename of the uploaded attachment, including its file extension.
|
|
222
238
|
*/
|
|
223
239
|
filename: string | null;
|
|
224
240
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
241
|
+
* A pre-optimized URL for rendering this attachment on the client. This should be
|
|
242
|
+
* used for displaying attachments in apps.
|
|
227
243
|
*/
|
|
228
244
|
url: string | null;
|
|
229
245
|
}
|
|
230
246
|
/**
|
|
231
|
-
* The user account
|
|
247
|
+
* The user account of the person who wrote this review.
|
|
232
248
|
*/
|
|
233
249
|
interface User {
|
|
234
250
|
/**
|
|
235
|
-
* The
|
|
251
|
+
* The unique identifier for the user.
|
|
236
252
|
*/
|
|
237
253
|
id: string;
|
|
238
254
|
/**
|
|
239
|
-
* The
|
|
255
|
+
* The user's display name shown on their public profile.
|
|
240
256
|
*/
|
|
241
257
|
name: string | null;
|
|
242
258
|
/**
|
|
243
|
-
* The
|
|
259
|
+
* The user's unique username shown on their public profile.
|
|
244
260
|
*/
|
|
245
261
|
username: string;
|
|
246
262
|
}
|
|
247
263
|
}
|
|
248
264
|
export interface ReviewListParams extends CursorPageParams {
|
|
249
265
|
/**
|
|
250
|
-
* The
|
|
266
|
+
* The unique identifier of the product to list reviews for.
|
|
251
267
|
*/
|
|
252
268
|
product_id: string;
|
|
253
269
|
/**
|
|
@@ -255,11 +271,11 @@ export interface ReviewListParams extends CursorPageParams {
|
|
|
255
271
|
*/
|
|
256
272
|
before?: string | null;
|
|
257
273
|
/**
|
|
258
|
-
*
|
|
274
|
+
* Only return reviews created after this timestamp.
|
|
259
275
|
*/
|
|
260
276
|
created_after?: string | null;
|
|
261
277
|
/**
|
|
262
|
-
*
|
|
278
|
+
* Only return reviews created before this timestamp.
|
|
263
279
|
*/
|
|
264
280
|
created_before?: string | null;
|
|
265
281
|
/**
|
|
@@ -271,11 +287,11 @@ export interface ReviewListParams extends CursorPageParams {
|
|
|
271
287
|
*/
|
|
272
288
|
last?: number | null;
|
|
273
289
|
/**
|
|
274
|
-
* The maximum star rating
|
|
290
|
+
* The maximum star rating to include in results, from 1 to 5 inclusive.
|
|
275
291
|
*/
|
|
276
292
|
max_stars?: number | null;
|
|
277
293
|
/**
|
|
278
|
-
* The minimum star rating
|
|
294
|
+
* The minimum star rating to include in results, from 1 to 5 inclusive.
|
|
279
295
|
*/
|
|
280
296
|
min_stars?: number | null;
|
|
281
297
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.d.mts","sourceRoot":"","sources":["../src/resources/reviews.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,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF
|
|
1
|
+
{"version":3,"file":"reviews.d.mts","sourceRoot":"","sources":["../src/resources/reviews.ts"],"names":[],"mappings":"OAE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