@polar-sh/sdk 1.0.0-alpha.21 → 1.0.0
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/.agents/skills/polar-typescript-sdk/SKILL.md +3 -3
- package/.agents/skills/polar-typescript-sdk/references/migration-from-v0.md +1 -1
- package/.agents/skills/polar-typescript-sdk/references/usage-events.md +1 -1
- package/.agents/skills/polar-typescript-sdk/references/webhooks.md +1 -1
- package/README.md +6 -8
- package/dist/2026-04/index.cjs +2 -1
- package/dist/2026-04/index.cjs.map +1 -1
- package/dist/2026-04/index.d.cts +2 -2
- package/dist/2026-04/index.d.mts +2 -2
- package/dist/2026-04/index.mjs +2 -1
- package/dist/2026-04/index.mjs.map +1 -1
- package/dist/2026-04/services/benefit_grants.cjs +1 -1
- package/dist/2026-04/services/benefit_grants.d.cts +1 -1
- package/dist/2026-04/services/benefit_grants.d.mts +1 -1
- package/dist/2026-04/services/benefit_grants.mjs +1 -1
- package/dist/2026-04/services/benefits.cjs +1 -1
- package/dist/2026-04/services/benefits.d.cts +1 -1
- package/dist/2026-04/services/benefits.d.mts +1 -1
- package/dist/2026-04/services/benefits.mjs +1 -1
- package/dist/2026-04/services/checkout_links.cjs +1 -1
- package/dist/2026-04/services/checkout_links.d.cts +1 -1
- package/dist/2026-04/services/checkout_links.d.mts +1 -1
- package/dist/2026-04/services/checkout_links.mjs +1 -1
- package/dist/2026-04/services/checkouts.cjs +7 -1
- package/dist/2026-04/services/checkouts.cjs.map +1 -1
- package/dist/2026-04/services/checkouts.d.cts +1 -1
- package/dist/2026-04/services/checkouts.d.cts.map +1 -1
- package/dist/2026-04/services/checkouts.d.mts +1 -1
- package/dist/2026-04/services/checkouts.d.mts.map +1 -1
- package/dist/2026-04/services/checkouts.mjs +7 -1
- package/dist/2026-04/services/checkouts.mjs.map +1 -1
- package/dist/2026-04/services/custom_fields.cjs +1 -1
- package/dist/2026-04/services/custom_fields.d.cts +1 -1
- package/dist/2026-04/services/custom_fields.d.mts +1 -1
- package/dist/2026-04/services/custom_fields.mjs +1 -1
- package/dist/2026-04/services/customer_meters.cjs +1 -1
- package/dist/2026-04/services/customer_meters.d.cts +1 -1
- package/dist/2026-04/services/customer_meters.d.mts +1 -1
- package/dist/2026-04/services/customer_meters.mjs +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.cjs +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.mjs +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.cjs +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.mjs +1 -1
- package/dist/2026-04/services/customer_portal/customer_session.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/customer_session.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/customers.cjs +1 -1
- package/dist/2026-04/services/customer_portal/customers.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/customers.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/customers.mjs +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.cjs +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.mjs +1 -1
- package/dist/2026-04/services/customer_portal/index.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/index.d.cts.map +1 -1
- package/dist/2026-04/services/customer_portal/index.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/index.d.mts.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.cjs +8 -6
- package/dist/2026-04/services/customer_portal/license_keys.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.d.cts +5 -5
- package/dist/2026-04/services/customer_portal/license_keys.d.cts.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.d.mts +5 -5
- package/dist/2026-04/services/customer_portal/license_keys.d.mts.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.mjs +8 -6
- package/dist/2026-04/services/customer_portal/license_keys.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/members.cjs +1 -1
- package/dist/2026-04/services/customer_portal/members.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/members.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/members.mjs +1 -1
- package/dist/2026-04/services/customer_portal/orders.cjs +1 -1
- package/dist/2026-04/services/customer_portal/orders.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/orders.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/orders.mjs +1 -1
- package/dist/2026-04/services/customer_portal/organizations.cjs +1 -1
- package/dist/2026-04/services/customer_portal/organizations.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/organizations.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/organizations.mjs +1 -1
- package/dist/2026-04/services/customer_portal/seats.cjs +1 -1
- package/dist/2026-04/services/customer_portal/seats.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/seats.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/seats.mjs +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.cjs +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.mjs +1 -1
- package/dist/2026-04/services/customer_portal/wallets.cjs +1 -1
- package/dist/2026-04/services/customer_portal/wallets.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/wallets.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/wallets.mjs +1 -1
- package/dist/2026-04/services/customer_seats.cjs +1 -1
- package/dist/2026-04/services/customer_seats.d.cts +1 -1
- package/dist/2026-04/services/customer_seats.d.mts +1 -1
- package/dist/2026-04/services/customer_seats.mjs +1 -1
- package/dist/2026-04/services/customer_sessions.cjs +1 -1
- package/dist/2026-04/services/customer_sessions.d.cts +1 -1
- package/dist/2026-04/services/customer_sessions.d.mts +1 -1
- package/dist/2026-04/services/customer_sessions.mjs +1 -1
- package/dist/2026-04/services/customers/index.cjs +1 -1
- package/dist/2026-04/services/customers/index.d.cts +1 -1
- package/dist/2026-04/services/customers/index.d.mts +1 -1
- package/dist/2026-04/services/customers/index.mjs +1 -1
- package/dist/2026-04/services/customers/members.cjs +1 -1
- package/dist/2026-04/services/customers/members.d.cts +1 -1
- package/dist/2026-04/services/customers/members.d.mts +1 -1
- package/dist/2026-04/services/customers/members.mjs +1 -1
- package/dist/2026-04/services/discounts.cjs +1 -1
- package/dist/2026-04/services/discounts.d.cts +1 -1
- package/dist/2026-04/services/discounts.d.mts +1 -1
- package/dist/2026-04/services/discounts.mjs +1 -1
- package/dist/2026-04/services/disputes.cjs +1 -1
- package/dist/2026-04/services/disputes.d.cts +1 -1
- package/dist/2026-04/services/disputes.d.mts +1 -1
- package/dist/2026-04/services/disputes.mjs +1 -1
- package/dist/2026-04/services/event_types.cjs +1 -1
- package/dist/2026-04/services/event_types.d.cts +1 -1
- package/dist/2026-04/services/event_types.d.mts +1 -1
- package/dist/2026-04/services/event_types.mjs +1 -1
- package/dist/2026-04/services/events.cjs +1 -1
- package/dist/2026-04/services/events.d.cts +1 -1
- package/dist/2026-04/services/events.d.mts +1 -1
- package/dist/2026-04/services/events.mjs +1 -1
- package/dist/2026-04/services/files.cjs +1 -1
- package/dist/2026-04/services/files.d.cts +1 -1
- package/dist/2026-04/services/files.d.mts +1 -1
- package/dist/2026-04/services/files.mjs +1 -1
- package/dist/2026-04/services/license_keys.cjs +9 -7
- package/dist/2026-04/services/license_keys.cjs.map +1 -1
- package/dist/2026-04/services/license_keys.d.cts +5 -5
- package/dist/2026-04/services/license_keys.d.cts.map +1 -1
- package/dist/2026-04/services/license_keys.d.mts +5 -5
- package/dist/2026-04/services/license_keys.d.mts.map +1 -1
- package/dist/2026-04/services/license_keys.mjs +9 -7
- package/dist/2026-04/services/license_keys.mjs.map +1 -1
- package/dist/2026-04/services/meters.cjs +1 -1
- package/dist/2026-04/services/meters.d.cts +1 -1
- package/dist/2026-04/services/meters.d.mts +1 -1
- package/dist/2026-04/services/meters.mjs +1 -1
- package/dist/2026-04/services/metrics.cjs +1 -1
- package/dist/2026-04/services/metrics.d.cts +1 -1
- package/dist/2026-04/services/metrics.d.mts +1 -1
- package/dist/2026-04/services/metrics.mjs +1 -1
- package/dist/2026-04/services/oauth2/clients/index.d.cts +1 -1
- package/dist/2026-04/services/oauth2/clients/index.d.mts +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.cjs +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.d.cts +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.d.mts +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.mjs +1 -1
- package/dist/2026-04/services/oauth2/index.d.cts +1 -1
- package/dist/2026-04/services/oauth2/index.d.mts +1 -1
- package/dist/2026-04/services/orders.cjs +1 -1
- package/dist/2026-04/services/orders.d.cts +1 -1
- package/dist/2026-04/services/orders.d.mts +1 -1
- package/dist/2026-04/services/orders.mjs +1 -1
- package/dist/2026-04/services/organizations.cjs +1 -1
- package/dist/2026-04/services/organizations.d.cts +1 -1
- package/dist/2026-04/services/organizations.d.mts +1 -1
- package/dist/2026-04/services/organizations.mjs +1 -1
- package/dist/2026-04/services/payments.cjs +1 -1
- package/dist/2026-04/services/payments.d.cts +1 -1
- package/dist/2026-04/services/payments.d.mts +1 -1
- package/dist/2026-04/services/payments.mjs +1 -1
- package/dist/2026-04/services/products.cjs +35 -1
- package/dist/2026-04/services/products.cjs.map +1 -1
- package/dist/2026-04/services/products.d.cts +4 -2
- package/dist/2026-04/services/products.d.cts.map +1 -1
- package/dist/2026-04/services/products.d.mts +4 -2
- package/dist/2026-04/services/products.d.mts.map +1 -1
- package/dist/2026-04/services/products.mjs +35 -2
- package/dist/2026-04/services/products.mjs.map +1 -1
- package/dist/2026-04/services/refunds.cjs +1 -1
- package/dist/2026-04/services/refunds.d.cts +1 -1
- package/dist/2026-04/services/refunds.d.mts +1 -1
- package/dist/2026-04/services/refunds.mjs +1 -1
- package/dist/2026-04/services/subscriptions.cjs +4 -4
- package/dist/2026-04/services/subscriptions.cjs.map +1 -1
- package/dist/2026-04/services/subscriptions.d.cts +1 -1
- package/dist/2026-04/services/subscriptions.d.mts +1 -1
- package/dist/2026-04/services/subscriptions.mjs +4 -4
- package/dist/2026-04/services/subscriptions.mjs.map +1 -1
- package/dist/2026-04/services/webhooks.cjs +1 -1
- package/dist/2026-04/services/webhooks.d.cts +1 -1
- package/dist/2026-04/services/webhooks.d.mts +1 -1
- package/dist/2026-04/services/webhooks.mjs +1 -1
- package/dist/2026-10/index.cjs +2 -1
- package/dist/2026-10/index.cjs.map +1 -1
- package/dist/2026-10/index.d.cts +2 -2
- package/dist/2026-10/index.d.mts +2 -2
- package/dist/2026-10/index.mjs +2 -1
- package/dist/2026-10/index.mjs.map +1 -1
- package/dist/2026-10/services/benefit_grants.cjs +1 -1
- package/dist/2026-10/services/benefit_grants.d.cts +1 -1
- package/dist/2026-10/services/benefit_grants.d.mts +1 -1
- package/dist/2026-10/services/benefit_grants.mjs +1 -1
- package/dist/2026-10/services/benefits.cjs +1 -1
- package/dist/2026-10/services/benefits.d.cts +1 -1
- package/dist/2026-10/services/benefits.d.mts +1 -1
- package/dist/2026-10/services/benefits.mjs +1 -1
- package/dist/2026-10/services/checkout_links.cjs +1 -1
- package/dist/2026-10/services/checkout_links.d.cts +1 -1
- package/dist/2026-10/services/checkout_links.d.mts +1 -1
- package/dist/2026-10/services/checkout_links.mjs +1 -1
- package/dist/2026-10/services/checkouts.cjs +7 -1
- package/dist/2026-10/services/checkouts.cjs.map +1 -1
- package/dist/2026-10/services/checkouts.d.cts +1 -1
- package/dist/2026-10/services/checkouts.d.cts.map +1 -1
- package/dist/2026-10/services/checkouts.d.mts +1 -1
- package/dist/2026-10/services/checkouts.d.mts.map +1 -1
- package/dist/2026-10/services/checkouts.mjs +7 -1
- package/dist/2026-10/services/checkouts.mjs.map +1 -1
- package/dist/2026-10/services/custom_fields.cjs +1 -1
- package/dist/2026-10/services/custom_fields.d.cts +1 -1
- package/dist/2026-10/services/custom_fields.d.mts +1 -1
- package/dist/2026-10/services/custom_fields.mjs +1 -1
- package/dist/2026-10/services/customer_meters.cjs +1 -1
- package/dist/2026-10/services/customer_meters.d.cts +1 -1
- package/dist/2026-10/services/customer_meters.d.mts +1 -1
- package/dist/2026-10/services/customer_meters.mjs +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.cjs +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.mjs +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.cjs +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.mjs +1 -1
- package/dist/2026-10/services/customer_portal/customer_session.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/customer_session.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/customers.cjs +1 -1
- package/dist/2026-10/services/customer_portal/customers.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/customers.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/customers.mjs +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.cjs +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.mjs +1 -1
- package/dist/2026-10/services/customer_portal/index.d.cts +3 -3
- package/dist/2026-10/services/customer_portal/index.d.cts.map +1 -1
- package/dist/2026-10/services/customer_portal/index.d.mts +3 -3
- package/dist/2026-10/services/customer_portal/index.d.mts.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.cjs +8 -6
- package/dist/2026-10/services/customer_portal/license_keys.cjs.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.d.cts +5 -5
- package/dist/2026-10/services/customer_portal/license_keys.d.cts.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.d.mts +5 -5
- package/dist/2026-10/services/customer_portal/license_keys.d.mts.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.mjs +8 -6
- package/dist/2026-10/services/customer_portal/license_keys.mjs.map +1 -1
- package/dist/2026-10/services/customer_portal/members.cjs +1 -1
- package/dist/2026-10/services/customer_portal/members.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/members.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/members.mjs +1 -1
- package/dist/2026-10/services/customer_portal/orders.cjs +1 -1
- package/dist/2026-10/services/customer_portal/orders.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/orders.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/orders.mjs +1 -1
- package/dist/2026-10/services/customer_portal/organizations.cjs +1 -1
- package/dist/2026-10/services/customer_portal/organizations.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/organizations.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/organizations.mjs +1 -1
- package/dist/2026-10/services/customer_portal/seats.cjs +1 -1
- package/dist/2026-10/services/customer_portal/seats.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/seats.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/seats.mjs +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.cjs +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.mjs +1 -1
- package/dist/2026-10/services/customer_portal/wallets.cjs +1 -1
- package/dist/2026-10/services/customer_portal/wallets.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/wallets.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/wallets.mjs +1 -1
- package/dist/2026-10/services/customer_seats.cjs +1 -1
- package/dist/2026-10/services/customer_seats.d.cts +1 -1
- package/dist/2026-10/services/customer_seats.d.mts +1 -1
- package/dist/2026-10/services/customer_seats.mjs +1 -1
- package/dist/2026-10/services/customer_sessions.cjs +1 -1
- package/dist/2026-10/services/customer_sessions.d.cts +1 -1
- package/dist/2026-10/services/customer_sessions.d.mts +1 -1
- package/dist/2026-10/services/customer_sessions.mjs +1 -1
- package/dist/2026-10/services/customers/index.cjs +1 -1
- package/dist/2026-10/services/customers/index.d.cts +1 -1
- package/dist/2026-10/services/customers/index.d.mts +1 -1
- package/dist/2026-10/services/customers/index.mjs +1 -1
- package/dist/2026-10/services/customers/members.cjs +1 -1
- package/dist/2026-10/services/customers/members.d.cts +1 -1
- package/dist/2026-10/services/customers/members.d.mts +1 -1
- package/dist/2026-10/services/customers/members.mjs +1 -1
- package/dist/2026-10/services/discounts.cjs +1 -1
- package/dist/2026-10/services/discounts.d.cts +1 -1
- package/dist/2026-10/services/discounts.d.mts +1 -1
- package/dist/2026-10/services/discounts.mjs +1 -1
- package/dist/2026-10/services/disputes.cjs +1 -1
- package/dist/2026-10/services/disputes.d.cts +1 -1
- package/dist/2026-10/services/disputes.d.mts +1 -1
- package/dist/2026-10/services/disputes.mjs +1 -1
- package/dist/2026-10/services/event_types.cjs +1 -1
- package/dist/2026-10/services/event_types.d.cts +1 -1
- package/dist/2026-10/services/event_types.d.mts +1 -1
- package/dist/2026-10/services/event_types.mjs +1 -1
- package/dist/2026-10/services/events.cjs +1 -1
- package/dist/2026-10/services/events.d.cts +1 -1
- package/dist/2026-10/services/events.d.mts +1 -1
- package/dist/2026-10/services/events.mjs +1 -1
- package/dist/2026-10/services/files.cjs +1 -1
- package/dist/2026-10/services/files.d.cts +1 -1
- package/dist/2026-10/services/files.d.mts +1 -1
- package/dist/2026-10/services/files.mjs +1 -1
- package/dist/2026-10/services/license_keys.cjs +9 -7
- package/dist/2026-10/services/license_keys.cjs.map +1 -1
- package/dist/2026-10/services/license_keys.d.cts +5 -5
- package/dist/2026-10/services/license_keys.d.cts.map +1 -1
- package/dist/2026-10/services/license_keys.d.mts +5 -5
- package/dist/2026-10/services/license_keys.d.mts.map +1 -1
- package/dist/2026-10/services/license_keys.mjs +9 -7
- package/dist/2026-10/services/license_keys.mjs.map +1 -1
- package/dist/2026-10/services/meters.cjs +1 -1
- package/dist/2026-10/services/meters.d.cts +1 -1
- package/dist/2026-10/services/meters.d.mts +1 -1
- package/dist/2026-10/services/meters.mjs +1 -1
- package/dist/2026-10/services/metrics.cjs +1 -1
- package/dist/2026-10/services/metrics.d.cts +1 -1
- package/dist/2026-10/services/metrics.d.mts +1 -1
- package/dist/2026-10/services/metrics.mjs +1 -1
- package/dist/2026-10/services/oauth2/clients/index.d.cts +1 -1
- package/dist/2026-10/services/oauth2/clients/index.d.mts +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.cjs +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.d.cts +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.d.mts +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.mjs +1 -1
- package/dist/2026-10/services/oauth2/index.d.cts +1 -1
- package/dist/2026-10/services/oauth2/index.d.mts +1 -1
- package/dist/2026-10/services/orders.cjs +1 -1
- package/dist/2026-10/services/orders.d.cts +1 -1
- package/dist/2026-10/services/orders.d.mts +1 -1
- package/dist/2026-10/services/orders.mjs +1 -1
- package/dist/2026-10/services/organizations.cjs +1 -1
- package/dist/2026-10/services/organizations.d.cts +1 -1
- package/dist/2026-10/services/organizations.d.mts +1 -1
- package/dist/2026-10/services/organizations.mjs +1 -1
- package/dist/2026-10/services/payments.cjs +1 -1
- package/dist/2026-10/services/payments.d.cts +1 -1
- package/dist/2026-10/services/payments.d.mts +1 -1
- package/dist/2026-10/services/payments.mjs +1 -1
- package/dist/2026-10/services/products.cjs +35 -1
- package/dist/2026-10/services/products.cjs.map +1 -1
- package/dist/2026-10/services/products.d.cts +4 -2
- package/dist/2026-10/services/products.d.cts.map +1 -1
- package/dist/2026-10/services/products.d.mts +4 -2
- package/dist/2026-10/services/products.d.mts.map +1 -1
- package/dist/2026-10/services/products.mjs +35 -2
- package/dist/2026-10/services/products.mjs.map +1 -1
- package/dist/2026-10/services/refunds.cjs +1 -1
- package/dist/2026-10/services/refunds.d.cts +1 -1
- package/dist/2026-10/services/refunds.d.mts +1 -1
- package/dist/2026-10/services/refunds.mjs +1 -1
- package/dist/2026-10/services/subscriptions.cjs +4 -4
- package/dist/2026-10/services/subscriptions.cjs.map +1 -1
- package/dist/2026-10/services/subscriptions.d.cts +1 -1
- package/dist/2026-10/services/subscriptions.d.mts +1 -1
- package/dist/2026-10/services/subscriptions.mjs +4 -4
- package/dist/2026-10/services/subscriptions.mjs.map +1 -1
- package/dist/2026-10/services/webhooks.cjs +1 -1
- package/dist/2026-10/services/webhooks.d.cts +1 -1
- package/dist/2026-10/services/webhooks.d.mts +1 -1
- package/dist/2026-10/services/webhooks.mjs +1 -1
- package/dist/2027-01/index.cjs +158 -0
- package/dist/2027-01/index.cjs.map +1 -0
- package/dist/2027-01/index.d.cts +4 -0
- package/dist/2027-01/index.d.mts +4 -0
- package/dist/2027-01/index.mjs +138 -0
- package/dist/2027-01/index.mjs.map +1 -0
- package/dist/2027-01/services/benefit_grants.cjs +76 -0
- package/dist/2027-01/services/benefit_grants.cjs.map +1 -0
- package/dist/2027-01/services/benefit_grants.d.cts +58 -0
- package/dist/2027-01/services/benefit_grants.d.cts.map +1 -0
- package/dist/2027-01/services/benefit_grants.d.mts +58 -0
- package/dist/2027-01/services/benefit_grants.d.mts.map +1 -0
- package/dist/2027-01/services/benefit_grants.mjs +73 -0
- package/dist/2027-01/services/benefit_grants.mjs.map +1 -0
- package/dist/2027-01/services/benefits.cjs +329 -0
- package/dist/2027-01/services/benefits.cjs.map +1 -0
- package/dist/2027-01/services/benefits.d.cts +150 -0
- package/dist/2027-01/services/benefits.d.cts.map +1 -0
- package/dist/2027-01/services/benefits.d.mts +150 -0
- package/dist/2027-01/services/benefits.d.mts.map +1 -0
- package/dist/2027-01/services/benefits.mjs +318 -0
- package/dist/2027-01/services/benefits.mjs.map +1 -0
- package/dist/2027-01/services/checkout_links.cjs +178 -0
- package/dist/2027-01/services/checkout_links.cjs.map +1 -0
- package/dist/2027-01/services/checkout_links.d.cts +58 -0
- package/dist/2027-01/services/checkout_links.d.cts.map +1 -0
- package/dist/2027-01/services/checkout_links.d.mts +58 -0
- package/dist/2027-01/services/checkout_links.d.mts.map +1 -0
- package/dist/2027-01/services/checkout_links.mjs +171 -0
- package/dist/2027-01/services/checkout_links.mjs.map +1 -0
- package/dist/2027-01/services/checkouts.cjs +254 -0
- package/dist/2027-01/services/checkouts.cjs.map +1 -0
- package/dist/2027-01/services/checkouts.d.cts +78 -0
- package/dist/2027-01/services/checkouts.d.cts.map +1 -0
- package/dist/2027-01/services/checkouts.d.mts +78 -0
- package/dist/2027-01/services/checkouts.d.mts.map +1 -0
- package/dist/2027-01/services/checkouts.mjs +245 -0
- package/dist/2027-01/services/checkouts.mjs.map +1 -0
- package/dist/2027-01/services/custom_fields.cjs +179 -0
- package/dist/2027-01/services/custom_fields.cjs.map +1 -0
- package/dist/2027-01/services/custom_fields.d.cts +62 -0
- package/dist/2027-01/services/custom_fields.d.cts.map +1 -0
- package/dist/2027-01/services/custom_fields.d.mts +62 -0
- package/dist/2027-01/services/custom_fields.d.mts.map +1 -0
- package/dist/2027-01/services/custom_fields.mjs +172 -0
- package/dist/2027-01/services/custom_fields.mjs.map +1 -0
- package/dist/2027-01/services/customer_meters.cjs +103 -0
- package/dist/2027-01/services/customer_meters.cjs.map +1 -0
- package/dist/2027-01/services/customer_meters.d.cts +60 -0
- package/dist/2027-01/services/customer_meters.d.cts.map +1 -0
- package/dist/2027-01/services/customer_meters.d.mts +60 -0
- package/dist/2027-01/services/customer_meters.d.mts.map +1 -0
- package/dist/2027-01/services/customer_meters.mjs +99 -0
- package/dist/2027-01/services/customer_meters.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.cjs +136 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.cts +74 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.mts +74 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.mjs +131 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.cjs +101 -0
- package/dist/2027-01/services/customer_portal/customer_meters.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.cts +52 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.mts +52 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.mjs +97 -0
- package/dist/2027-01/services/customer_portal/customer_meters.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.cjs +50 -0
- package/dist/2027-01/services/customer_portal/customer_session.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.cts +13 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.mts +13 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.mjs +47 -0
- package/dist/2027-01/services/customer_portal/customer_session.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.cjs +252 -0
- package/dist/2027-01/services/customer_portal/customers.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.d.cts +56 -0
- package/dist/2027-01/services/customer_portal/customers.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.d.mts +56 -0
- package/dist/2027-01/services/customer_portal/customers.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.mjs +241 -0
- package/dist/2027-01/services/customer_portal/customers.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.cjs +68 -0
- package/dist/2027-01/services/customer_portal/downloadables.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.cts +40 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.mts +40 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.mjs +65 -0
- package/dist/2027-01/services/customer_portal/downloadables.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/index.cjs +34 -0
- package/dist/2027-01/services/customer_portal/index.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/index.d.cts +201 -0
- package/dist/2027-01/services/customer_portal/index.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/index.d.mts +201 -0
- package/dist/2027-01/services/customer_portal/index.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/index.mjs +33 -0
- package/dist/2027-01/services/customer_portal/index.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.cjs +229 -0
- package/dist/2027-01/services/customer_portal/license_keys.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.cts +52 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.mts +52 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.mjs +221 -0
- package/dist/2027-01/services/customer_portal/license_keys.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/members.cjs +188 -0
- package/dist/2027-01/services/customer_portal/members.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/members.d.cts +46 -0
- package/dist/2027-01/services/customer_portal/members.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/members.d.mts +46 -0
- package/dist/2027-01/services/customer_portal/members.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/members.mjs +182 -0
- package/dist/2027-01/services/customer_portal/members.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.cjs +255 -0
- package/dist/2027-01/services/customer_portal/orders.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.d.cts +70 -0
- package/dist/2027-01/services/customer_portal/orders.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.d.mts +70 -0
- package/dist/2027-01/services/customer_portal/orders.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.mjs +245 -0
- package/dist/2027-01/services/customer_portal/orders.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.cjs +34 -0
- package/dist/2027-01/services/customer_portal/organizations.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.d.cts +11 -0
- package/dist/2027-01/services/customer_portal/organizations.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.d.mts +11 -0
- package/dist/2027-01/services/customer_portal/organizations.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.mjs +32 -0
- package/dist/2027-01/services/customer_portal/organizations.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.cjs +196 -0
- package/dist/2027-01/services/customer_portal/seats.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.d.cts +53 -0
- package/dist/2027-01/services/customer_portal/seats.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.d.mts +53 -0
- package/dist/2027-01/services/customer_portal/seats.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.mjs +189 -0
- package/dist/2027-01/services/customer_portal/seats.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.cjs +161 -0
- package/dist/2027-01/services/customer_portal/subscriptions.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.cts +60 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.mts +60 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.mjs +155 -0
- package/dist/2027-01/services/customer_portal/subscriptions.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.cjs +93 -0
- package/dist/2027-01/services/customer_portal/wallets.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.d.cts +42 -0
- package/dist/2027-01/services/customer_portal/wallets.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.d.mts +42 -0
- package/dist/2027-01/services/customer_portal/wallets.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.mjs +89 -0
- package/dist/2027-01/services/customer_portal/wallets.mjs.map +1 -0
- package/dist/2027-01/services/customer_seats.cjs +187 -0
- package/dist/2027-01/services/customer_seats.cjs.map +1 -0
- package/dist/2027-01/services/customer_seats.d.cts +27 -0
- package/dist/2027-01/services/customer_seats.d.cts.map +1 -0
- package/dist/2027-01/services/customer_seats.d.mts +27 -0
- package/dist/2027-01/services/customer_seats.d.mts.map +1 -0
- package/dist/2027-01/services/customer_seats.mjs +180 -0
- package/dist/2027-01/services/customer_seats.mjs.map +1 -0
- package/dist/2027-01/services/customer_sessions.cjs +38 -0
- package/dist/2027-01/services/customer_sessions.cjs.map +1 -0
- package/dist/2027-01/services/customer_sessions.d.cts +11 -0
- package/dist/2027-01/services/customer_sessions.d.cts.map +1 -0
- package/dist/2027-01/services/customer_sessions.d.mts +11 -0
- package/dist/2027-01/services/customer_sessions.d.mts.map +1 -0
- package/dist/2027-01/services/customer_sessions.mjs +36 -0
- package/dist/2027-01/services/customer_sessions.mjs.map +1 -0
- package/dist/2027-01/services/customers/index.cjs +511 -0
- package/dist/2027-01/services/customers/index.cjs.map +1 -0
- package/dist/2027-01/services/customers/index.d.cts +190 -0
- package/dist/2027-01/services/customers/index.d.cts.map +1 -0
- package/dist/2027-01/services/customers/index.d.mts +190 -0
- package/dist/2027-01/services/customers/index.d.mts.map +1 -0
- package/dist/2027-01/services/customers/index.mjs +494 -0
- package/dist/2027-01/services/customers/index.mjs.map +1 -0
- package/dist/2027-01/services/customers/members.cjs +413 -0
- package/dist/2027-01/services/customers/members.cjs.map +1 -0
- package/dist/2027-01/services/customers/members.d.cts +104 -0
- package/dist/2027-01/services/customers/members.d.cts.map +1 -0
- package/dist/2027-01/services/customers/members.d.mts +104 -0
- package/dist/2027-01/services/customers/members.d.mts.map +1 -0
- package/dist/2027-01/services/customers/members.mjs +400 -0
- package/dist/2027-01/services/customers/members.mjs.map +1 -0
- package/dist/2027-01/services/discounts.cjs +178 -0
- package/dist/2027-01/services/discounts.cjs.map +1 -0
- package/dist/2027-01/services/discounts.d.cts +58 -0
- package/dist/2027-01/services/discounts.d.cts.map +1 -0
- package/dist/2027-01/services/discounts.d.mts +58 -0
- package/dist/2027-01/services/discounts.d.mts.map +1 -0
- package/dist/2027-01/services/discounts.mjs +171 -0
- package/dist/2027-01/services/discounts.mjs.map +1 -0
- package/dist/2027-01/services/disputes.cjs +134 -0
- package/dist/2027-01/services/disputes.cjs.map +1 -0
- package/dist/2027-01/services/disputes.d.cts +58 -0
- package/dist/2027-01/services/disputes.d.cts.map +1 -0
- package/dist/2027-01/services/disputes.d.mts +58 -0
- package/dist/2027-01/services/disputes.d.mts.map +1 -0
- package/dist/2027-01/services/disputes.mjs +129 -0
- package/dist/2027-01/services/disputes.mjs.map +1 -0
- package/dist/2027-01/services/event_types.cjs +107 -0
- package/dist/2027-01/services/event_types.cjs.map +1 -0
- package/dist/2027-01/services/event_types.d.cts +72 -0
- package/dist/2027-01/services/event_types.d.cts.map +1 -0
- package/dist/2027-01/services/event_types.d.mts +72 -0
- package/dist/2027-01/services/event_types.d.mts.map +1 -0
- package/dist/2027-01/services/event_types.mjs +103 -0
- package/dist/2027-01/services/event_types.mjs.map +1 -0
- package/dist/2027-01/services/events.cjs +167 -0
- package/dist/2027-01/services/events.cjs.map +1 -0
- package/dist/2027-01/services/events.d.cts +102 -0
- package/dist/2027-01/services/events.d.cts.map +1 -0
- package/dist/2027-01/services/events.d.mts +102 -0
- package/dist/2027-01/services/events.d.mts.map +1 -0
- package/dist/2027-01/services/events.mjs +161 -0
- package/dist/2027-01/services/events.mjs.map +1 -0
- package/dist/2027-01/services/files.cjs +184 -0
- package/dist/2027-01/services/files.cjs.map +1 -0
- package/dist/2027-01/services/files.d.cts +54 -0
- package/dist/2027-01/services/files.d.cts.map +1 -0
- package/dist/2027-01/services/files.d.mts +54 -0
- package/dist/2027-01/services/files.d.mts.map +1 -0
- package/dist/2027-01/services/files.mjs +177 -0
- package/dist/2027-01/services/files.mjs.map +1 -0
- package/dist/2027-01/services/license_keys.cjs +291 -0
- package/dist/2027-01/services/license_keys.cjs.map +1 -0
- package/dist/2027-01/services/license_keys.d.cts +66 -0
- package/dist/2027-01/services/license_keys.d.cts.map +1 -0
- package/dist/2027-01/services/license_keys.d.mts +66 -0
- package/dist/2027-01/services/license_keys.d.mts.map +1 -0
- package/dist/2027-01/services/license_keys.mjs +281 -0
- package/dist/2027-01/services/license_keys.mjs.map +1 -0
- package/dist/2027-01/services/meters.cjs +191 -0
- package/dist/2027-01/services/meters.cjs.map +1 -0
- package/dist/2027-01/services/meters.d.cts +84 -0
- package/dist/2027-01/services/meters.d.cts.map +1 -0
- package/dist/2027-01/services/meters.d.mts +84 -0
- package/dist/2027-01/services/meters.d.mts.map +1 -0
- package/dist/2027-01/services/meters.mjs +184 -0
- package/dist/2027-01/services/meters.mjs.map +1 -0
- package/dist/2027-01/services/metrics.cjs +217 -0
- package/dist/2027-01/services/metrics.cjs.map +1 -0
- package/dist/2027-01/services/metrics.d.cts +69 -0
- package/dist/2027-01/services/metrics.d.cts.map +1 -0
- package/dist/2027-01/services/metrics.d.mts +69 -0
- package/dist/2027-01/services/metrics.d.mts.map +1 -0
- package/dist/2027-01/services/metrics.mjs +208 -0
- package/dist/2027-01/services/metrics.mjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.cjs +10 -0
- package/dist/2027-01/services/oauth2/clients/index.cjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.d.cts +15 -0
- package/dist/2027-01/services/oauth2/clients/index.d.cts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.d.mts +15 -0
- package/dist/2027-01/services/oauth2/clients/index.d.mts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.mjs +9 -0
- package/dist/2027-01/services/oauth2/clients/index.mjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.cjs +95 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.cjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.cts +17 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.cts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.mts +17 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.mts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.mjs +90 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.mjs.map +1 -0
- package/dist/2027-01/services/oauth2/index.cjs +101 -0
- package/dist/2027-01/services/oauth2/index.cjs.map +1 -0
- package/dist/2027-01/services/oauth2/index.d.cts +27 -0
- package/dist/2027-01/services/oauth2/index.d.cts.map +1 -0
- package/dist/2027-01/services/oauth2/index.d.mts +27 -0
- package/dist/2027-01/services/oauth2/index.d.mts.map +1 -0
- package/dist/2027-01/services/oauth2/index.mjs +95 -0
- package/dist/2027-01/services/oauth2/index.mjs.map +1 -0
- package/dist/2027-01/services/orders.cjs +320 -0
- package/dist/2027-01/services/orders.cjs.map +1 -0
- package/dist/2027-01/services/orders.d.cts +122 -0
- package/dist/2027-01/services/orders.d.cts.map +1 -0
- package/dist/2027-01/services/orders.d.mts +122 -0
- package/dist/2027-01/services/orders.d.mts.map +1 -0
- package/dist/2027-01/services/orders.mjs +309 -0
- package/dist/2027-01/services/orders.mjs.map +1 -0
- package/dist/2027-01/services/organizations.cjs +158 -0
- package/dist/2027-01/services/organizations.cjs.map +1 -0
- package/dist/2027-01/services/organizations.d.cts +52 -0
- package/dist/2027-01/services/organizations.d.cts.map +1 -0
- package/dist/2027-01/services/organizations.d.mts +52 -0
- package/dist/2027-01/services/organizations.d.mts.map +1 -0
- package/dist/2027-01/services/organizations.mjs +152 -0
- package/dist/2027-01/services/organizations.mjs.map +1 -0
- package/dist/2027-01/services/payments.cjs +106 -0
- package/dist/2027-01/services/payments.cjs.map +1 -0
- package/dist/2027-01/services/payments.d.cts +72 -0
- package/dist/2027-01/services/payments.d.cts.map +1 -0
- package/dist/2027-01/services/payments.d.mts +72 -0
- package/dist/2027-01/services/payments.d.mts.map +1 -0
- package/dist/2027-01/services/payments.mjs +102 -0
- package/dist/2027-01/services/payments.mjs.map +1 -0
- package/dist/2027-01/services/products.cjs +223 -0
- package/dist/2027-01/services/products.cjs.map +1 -0
- package/dist/2027-01/services/products.d.cts +84 -0
- package/dist/2027-01/services/products.d.cts.map +1 -0
- package/dist/2027-01/services/products.d.mts +84 -0
- package/dist/2027-01/services/products.d.mts.map +1 -0
- package/dist/2027-01/services/products.mjs +215 -0
- package/dist/2027-01/services/products.mjs.map +1 -0
- package/dist/2027-01/services/refunds.cjs +105 -0
- package/dist/2027-01/services/refunds.cjs.map +1 -0
- package/dist/2027-01/services/refunds.d.cts +72 -0
- package/dist/2027-01/services/refunds.d.cts.map +1 -0
- package/dist/2027-01/services/refunds.d.mts +72 -0
- package/dist/2027-01/services/refunds.d.mts.map +1 -0
- package/dist/2027-01/services/refunds.mjs +101 -0
- package/dist/2027-01/services/refunds.mjs.map +1 -0
- package/dist/2027-01/services/subscriptions.cjs +238 -0
- package/dist/2027-01/services/subscriptions.cjs.map +1 -0
- package/dist/2027-01/services/subscriptions.d.cts +126 -0
- package/dist/2027-01/services/subscriptions.d.cts.map +1 -0
- package/dist/2027-01/services/subscriptions.d.mts +126 -0
- package/dist/2027-01/services/subscriptions.d.mts.map +1 -0
- package/dist/2027-01/services/subscriptions.mjs +230 -0
- package/dist/2027-01/services/subscriptions.mjs.map +1 -0
- package/dist/2027-01/services/webhooks.cjs +301 -0
- package/dist/2027-01/services/webhooks.cjs.map +1 -0
- package/dist/2027-01/services/webhooks.d.cts +113 -0
- package/dist/2027-01/services/webhooks.d.cts.map +1 -0
- package/dist/2027-01/services/webhooks.d.mts +113 -0
- package/dist/2027-01/services/webhooks.d.mts.map +1 -0
- package/dist/2027-01/services/webhooks.mjs +290 -0
- package/dist/2027-01/services/webhooks.mjs.map +1 -0
- package/dist/errors-B1xadCgl.mjs +1255 -0
- package/dist/errors-B1xadCgl.mjs.map +1 -0
- package/dist/{errors-D1yM2ZQm.mjs → errors-B2qXHz99.mjs} +62 -6
- package/dist/errors-B2qXHz99.mjs.map +1 -0
- package/dist/{errors-BfEghQ77.cjs → errors-BG3e1vcX.cjs} +85 -5
- package/dist/errors-BG3e1vcX.cjs.map +1 -0
- package/dist/errors-DDydmY6t.cjs +1794 -0
- package/dist/errors-DDydmY6t.cjs.map +1 -0
- package/dist/{errors-hhbDe5ap.mjs → errors-D_tOnoPP.mjs} +62 -6
- package/dist/errors-D_tOnoPP.mjs.map +1 -0
- package/dist/{errors-CPJ329AT.cjs → errors-h8gRquR8.cjs} +85 -5
- package/dist/errors-h8gRquR8.cjs.map +1 -0
- package/dist/index-CASi3-c8.d.mts +2738 -0
- package/dist/index-CASi3-c8.d.mts.map +1 -0
- package/dist/{index-BkTZ8a-R.d.mts → index-CCkgYIo1.d.mts} +85 -17
- package/dist/index-CCkgYIo1.d.mts.map +1 -0
- package/dist/{index-BamOUZl1.d.cts → index-Cu_Exrh7.d.cts} +85 -17
- package/dist/index-Cu_Exrh7.d.cts.map +1 -0
- package/dist/{index-JEL0D7T4.d.mts → index-RFIyzWM8.d.mts} +85 -17
- package/dist/index-RFIyzWM8.d.mts.map +1 -0
- package/dist/index-Uq9Eca4W.d.cts +2738 -0
- package/dist/index-Uq9Eca4W.d.cts.map +1 -0
- package/dist/{index-BDWUg8uj.d.cts → index-YSnA4bj_.d.cts} +85 -17
- package/dist/index-YSnA4bj_.d.cts.map +1 -0
- package/dist/models-COhG3nD4.d.cts +22081 -0
- package/dist/models-COhG3nD4.d.cts.map +1 -0
- package/dist/models-COhG3nD4.d.mts +22081 -0
- package/dist/models-COhG3nD4.d.mts.map +1 -0
- package/dist/{models-D3N1jo2G.d.cts → models-CygFKqFa.d.cts} +331 -18
- package/dist/models-CygFKqFa.d.cts.map +1 -0
- package/dist/{models-D3N1jo2G.d.mts → models-CygFKqFa.d.mts} +331 -18
- package/dist/models-CygFKqFa.d.mts.map +1 -0
- package/dist/{models-f2_talp6.d.cts → models-DjSYF7EH.d.cts} +386 -16
- package/dist/models-DjSYF7EH.d.cts.map +1 -0
- package/dist/{models-f2_talp6.d.mts → models-DjSYF7EH.d.mts} +386 -16
- package/dist/models-DjSYF7EH.d.mts.map +1 -0
- package/package.json +51 -1
- package/dist/errors-BfEghQ77.cjs.map +0 -1
- package/dist/errors-CPJ329AT.cjs.map +0 -1
- package/dist/errors-D1yM2ZQm.mjs.map +0 -1
- package/dist/errors-hhbDe5ap.mjs.map +0 -1
- package/dist/index-BDWUg8uj.d.cts.map +0 -1
- package/dist/index-BamOUZl1.d.cts.map +0 -1
- package/dist/index-BkTZ8a-R.d.mts.map +0 -1
- package/dist/index-JEL0D7T4.d.mts.map +0 -1
- package/dist/models-D3N1jo2G.d.cts.map +0 -1
- package/dist/models-D3N1jo2G.d.mts.map +0 -1
- package/dist/models-f2_talp6.d.cts.map +0 -1
- package/dist/models-f2_talp6.d.mts.map +0 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_errors = require("../../errors-DDydmY6t.cjs");
|
|
3
|
+
//#region src/2027-01/services/customer_seats.ts
|
|
4
|
+
const listSeatsCustomerSeats = (client) => {
|
|
5
|
+
/**
|
|
6
|
+
* **Scopes**: `customer_seats:read`
|
|
7
|
+
*
|
|
8
|
+
* @param query - Query parameters
|
|
9
|
+
* @param requestOptions - Request options
|
|
10
|
+
* @returns {SeatsList}
|
|
11
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
12
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
13
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
14
|
+
* @throws {CustomerSeatsListSeats401Error} Authentication required
|
|
15
|
+
* @throws {CustomerSeatsListSeats403Error} Not permitted
|
|
16
|
+
* @throws {CustomerSeatsListSeats404Error} Subscription or order not found
|
|
17
|
+
* @throws {HTTPValidationError} Validation Error
|
|
18
|
+
*/
|
|
19
|
+
return async (query, requestOptions) => {
|
|
20
|
+
const pathParams = {};
|
|
21
|
+
const queryParams = {
|
|
22
|
+
subscription_id: query?.subscription_id,
|
|
23
|
+
order_id: query?.order_id
|
|
24
|
+
};
|
|
25
|
+
const request = client.buildRequest("GET", "/v1/customer-seats", pathParams, queryParams, void 0);
|
|
26
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
27
|
+
return client.parseResponse(response, "json", {
|
|
28
|
+
401: require_errors.CustomerSeatsListSeats401Error,
|
|
29
|
+
403: require_errors.CustomerSeatsListSeats403Error,
|
|
30
|
+
404: require_errors.CustomerSeatsListSeats404Error,
|
|
31
|
+
422: require_errors.HTTPValidationError
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
const assignSeatCustomerSeats = (client) => {
|
|
36
|
+
/**
|
|
37
|
+
* **Scopes**: `customer_seats:write`
|
|
38
|
+
*
|
|
39
|
+
* @param body - Request body
|
|
40
|
+
* @param requestOptions - Request options
|
|
41
|
+
* @returns {CustomerSeat}
|
|
42
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
43
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
44
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
45
|
+
* @throws {CustomerSeatsAssignSeat400Error} No available seats or customer already has a seat
|
|
46
|
+
* @throws {CustomerSeatsAssignSeat401Error} Authentication required
|
|
47
|
+
* @throws {CustomerSeatsAssignSeat403Error} Not permitted
|
|
48
|
+
* @throws {CustomerSeatsAssignSeat404Error} Subscription, order, or customer not found
|
|
49
|
+
* @throws {HTTPValidationError} Validation Error
|
|
50
|
+
*/
|
|
51
|
+
return async (body, requestOptions) => {
|
|
52
|
+
const request = client.buildRequest("POST", "/v1/customer-seats", {}, {}, body);
|
|
53
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
54
|
+
return client.parseResponse(response, "json", {
|
|
55
|
+
400: require_errors.CustomerSeatsAssignSeat400Error,
|
|
56
|
+
401: require_errors.CustomerSeatsAssignSeat401Error,
|
|
57
|
+
403: require_errors.CustomerSeatsAssignSeat403Error,
|
|
58
|
+
404: require_errors.CustomerSeatsAssignSeat404Error,
|
|
59
|
+
422: require_errors.HTTPValidationError
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const revokeSeatCustomerSeats = (client) => {
|
|
64
|
+
/**
|
|
65
|
+
* **Scopes**: `customer_seats:write`
|
|
66
|
+
*
|
|
67
|
+
* @param seat_id
|
|
68
|
+
* @param requestOptions - Request options
|
|
69
|
+
* @returns {CustomerSeat}
|
|
70
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
71
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
72
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
73
|
+
* @throws {CustomerSeatsRevokeSeat401Error} Authentication required
|
|
74
|
+
* @throws {CustomerSeatsRevokeSeat403Error} Not permitted
|
|
75
|
+
* @throws {CustomerSeatsRevokeSeat404Error} Seat not found
|
|
76
|
+
* @throws {HTTPValidationError} Validation Error
|
|
77
|
+
*/
|
|
78
|
+
return async (seat_id, requestOptions) => {
|
|
79
|
+
const pathParams = { seat_id };
|
|
80
|
+
const request = client.buildRequest("DELETE", "/v1/customer-seats/{seat_id}", pathParams, {}, void 0);
|
|
81
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
82
|
+
return client.parseResponse(response, "json", {
|
|
83
|
+
401: require_errors.CustomerSeatsRevokeSeat401Error,
|
|
84
|
+
403: require_errors.CustomerSeatsRevokeSeat403Error,
|
|
85
|
+
404: require_errors.CustomerSeatsRevokeSeat404Error,
|
|
86
|
+
422: require_errors.HTTPValidationError
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
const resendInvitationCustomerSeats = (client) => {
|
|
91
|
+
/**
|
|
92
|
+
* **Scopes**: `customer_seats:write`
|
|
93
|
+
*
|
|
94
|
+
* @param seat_id
|
|
95
|
+
* @param requestOptions - Request options
|
|
96
|
+
* @returns {CustomerSeat}
|
|
97
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
98
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
99
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
100
|
+
* @throws {CustomerSeatsResendInvitation400Error} Seat is not pending or already claimed
|
|
101
|
+
* @throws {CustomerSeatsResendInvitation401Error} Authentication required
|
|
102
|
+
* @throws {CustomerSeatsResendInvitation403Error} Not permitted
|
|
103
|
+
* @throws {CustomerSeatsResendInvitation404Error} Seat not found
|
|
104
|
+
* @throws {HTTPValidationError} Validation Error
|
|
105
|
+
*/
|
|
106
|
+
return async (seat_id, requestOptions) => {
|
|
107
|
+
const pathParams = { seat_id };
|
|
108
|
+
const request = client.buildRequest("POST", "/v1/customer-seats/{seat_id}/resend", pathParams, {}, void 0);
|
|
109
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
110
|
+
return client.parseResponse(response, "json", {
|
|
111
|
+
400: require_errors.CustomerSeatsResendInvitation400Error,
|
|
112
|
+
401: require_errors.CustomerSeatsResendInvitation401Error,
|
|
113
|
+
403: require_errors.CustomerSeatsResendInvitation403Error,
|
|
114
|
+
404: require_errors.CustomerSeatsResendInvitation404Error,
|
|
115
|
+
422: require_errors.HTTPValidationError
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
const getClaimInfoCustomerSeats = (client) => {
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @param invitation_token
|
|
123
|
+
* @param requestOptions - Request options
|
|
124
|
+
* @returns {SeatClaimInfo}
|
|
125
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
126
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
127
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
128
|
+
* @throws {CustomerSeatsGetClaimInfo400Error} Invalid or expired invitation token
|
|
129
|
+
* @throws {CustomerSeatsGetClaimInfo403Error} Seat-based pricing not enabled for organization
|
|
130
|
+
* @throws {CustomerSeatsGetClaimInfo404Error} Seat not found
|
|
131
|
+
* @throws {HTTPValidationError} Validation Error
|
|
132
|
+
*/
|
|
133
|
+
return async (invitation_token, requestOptions) => {
|
|
134
|
+
const pathParams = { invitation_token };
|
|
135
|
+
const request = client.buildRequest("GET", "/v1/customer-seats/claim/{invitation_token}", pathParams, {}, void 0);
|
|
136
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
137
|
+
return client.parseResponse(response, "json", {
|
|
138
|
+
400: require_errors.CustomerSeatsGetClaimInfo400Error,
|
|
139
|
+
403: require_errors.CustomerSeatsGetClaimInfo403Error,
|
|
140
|
+
404: require_errors.CustomerSeatsGetClaimInfo404Error,
|
|
141
|
+
422: require_errors.HTTPValidationError
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
const claimSeatCustomerSeats = (client) => {
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @param body - Request body
|
|
149
|
+
* @param requestOptions - Request options
|
|
150
|
+
* @returns {CustomerSeatClaimResponse}
|
|
151
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
152
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
153
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
154
|
+
* @throws {CustomerSeatsClaimSeat400Error} Invalid, expired, or already claimed token
|
|
155
|
+
* @throws {CustomerSeatsClaimSeat403Error} Seat-based pricing not enabled for organization
|
|
156
|
+
* @throws {HTTPValidationError} Validation Error
|
|
157
|
+
*/
|
|
158
|
+
return async (body, requestOptions) => {
|
|
159
|
+
const request = client.buildRequest("POST", "/v1/customer-seats/claim", {}, {}, body);
|
|
160
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
161
|
+
return client.parseResponse(response, "json", {
|
|
162
|
+
400: require_errors.CustomerSeatsClaimSeat400Error,
|
|
163
|
+
403: require_errors.CustomerSeatsClaimSeat403Error,
|
|
164
|
+
422: require_errors.HTTPValidationError
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
function createCustomerSeatsService(client) {
|
|
169
|
+
return {
|
|
170
|
+
listSeats: listSeatsCustomerSeats(client),
|
|
171
|
+
assignSeat: assignSeatCustomerSeats(client),
|
|
172
|
+
revokeSeat: revokeSeatCustomerSeats(client),
|
|
173
|
+
resendInvitation: resendInvitationCustomerSeats(client),
|
|
174
|
+
getClaimInfo: getClaimInfoCustomerSeats(client),
|
|
175
|
+
claimSeat: claimSeatCustomerSeats(client)
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
//#endregion
|
|
179
|
+
exports.assignSeatCustomerSeats = assignSeatCustomerSeats;
|
|
180
|
+
exports.claimSeatCustomerSeats = claimSeatCustomerSeats;
|
|
181
|
+
exports.createCustomerSeatsService = createCustomerSeatsService;
|
|
182
|
+
exports.getClaimInfoCustomerSeats = getClaimInfoCustomerSeats;
|
|
183
|
+
exports.listSeatsCustomerSeats = listSeatsCustomerSeats;
|
|
184
|
+
exports.resendInvitationCustomerSeats = resendInvitationCustomerSeats;
|
|
185
|
+
exports.revokeSeatCustomerSeats = revokeSeatCustomerSeats;
|
|
186
|
+
|
|
187
|
+
//# sourceMappingURL=customer_seats.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_seats.cjs","names":["CustomerSeatsListSeats401Error","CustomerSeatsListSeats403Error","CustomerSeatsListSeats404Error","HTTPValidationError","CustomerSeatsAssignSeat400Error","CustomerSeatsAssignSeat401Error","CustomerSeatsAssignSeat403Error","CustomerSeatsAssignSeat404Error","CustomerSeatsRevokeSeat401Error","CustomerSeatsRevokeSeat403Error","CustomerSeatsRevokeSeat404Error","CustomerSeatsResendInvitation400Error","CustomerSeatsResendInvitation401Error","CustomerSeatsResendInvitation403Error","CustomerSeatsResendInvitation404Error","CustomerSeatsGetClaimInfo400Error","CustomerSeatsGetClaimInfo403Error","CustomerSeatsGetClaimInfo404Error","CustomerSeatsClaimSeat400Error","CustomerSeatsClaimSeat403Error"],"sources":["../../../src/2027-01/services/customer_seats.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type {\n CustomerSeat,\n CustomerSeatClaimResponse,\n SeatAssign,\n SeatClaim,\n SeatClaimInfo,\n SeatsList,\n} from \"../models\";\n\nimport {\n CustomerSeatsAssignSeat400Error,\n CustomerSeatsAssignSeat401Error,\n CustomerSeatsAssignSeat403Error,\n CustomerSeatsAssignSeat404Error,\n CustomerSeatsClaimSeat400Error,\n CustomerSeatsClaimSeat403Error,\n CustomerSeatsGetClaimInfo400Error,\n CustomerSeatsGetClaimInfo403Error,\n CustomerSeatsGetClaimInfo404Error,\n CustomerSeatsListSeats401Error,\n CustomerSeatsListSeats403Error,\n CustomerSeatsListSeats404Error,\n CustomerSeatsResendInvitation400Error,\n CustomerSeatsResendInvitation401Error,\n CustomerSeatsResendInvitation403Error,\n CustomerSeatsResendInvitation404Error,\n CustomerSeatsRevokeSeat401Error,\n CustomerSeatsRevokeSeat403Error,\n CustomerSeatsRevokeSeat404Error,\n HTTPValidationError,\n} from \"../errors\";\n\nexport const listSeatsCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:read`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {SeatsList}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsListSeats401Error} Authentication required\n * @throws {CustomerSeatsListSeats403Error} Not permitted\n * @throws {CustomerSeatsListSeats404Error} Subscription or order not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n subscription_id?: string | null;\n order_id?: string | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<SeatsList> => {\n const pathParams = {};\n const queryParams = {\n subscription_id: query?.subscription_id,\n order_id: query?.order_id,\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-seats\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<SeatsList>(response, \"json\", {\n 401: CustomerSeatsListSeats401Error,\n 403: CustomerSeatsListSeats403Error,\n 404: CustomerSeatsListSeats404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const assignSeatCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:write`\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsAssignSeat400Error} No available seats or customer already has a seat\n * @throws {CustomerSeatsAssignSeat401Error} Authentication required\n * @throws {CustomerSeatsAssignSeat403Error} Not permitted\n * @throws {CustomerSeatsAssignSeat404Error} Subscription, order, or customer not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (body: SeatAssign, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-seats\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 400: CustomerSeatsAssignSeat400Error,\n 401: CustomerSeatsAssignSeat401Error,\n 403: CustomerSeatsAssignSeat403Error,\n 404: CustomerSeatsAssignSeat404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const revokeSeatCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:write`\n *\n * @param seat_id\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsRevokeSeat401Error} Authentication required\n * @throws {CustomerSeatsRevokeSeat403Error} Not permitted\n * @throws {CustomerSeatsRevokeSeat404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (seat_id: string, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {\n seat_id: seat_id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"DELETE\",\n \"/v1/customer-seats/{seat_id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 401: CustomerSeatsRevokeSeat401Error,\n 403: CustomerSeatsRevokeSeat403Error,\n 404: CustomerSeatsRevokeSeat404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const resendInvitationCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:write`\n *\n * @param seat_id\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsResendInvitation400Error} Seat is not pending or already claimed\n * @throws {CustomerSeatsResendInvitation401Error} Authentication required\n * @throws {CustomerSeatsResendInvitation403Error} Not permitted\n * @throws {CustomerSeatsResendInvitation404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (seat_id: string, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {\n seat_id: seat_id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-seats/{seat_id}/resend\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 400: CustomerSeatsResendInvitation400Error,\n 401: CustomerSeatsResendInvitation401Error,\n 403: CustomerSeatsResendInvitation403Error,\n 404: CustomerSeatsResendInvitation404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const getClaimInfoCustomerSeats = (client: ClientBase) => {\n /**\n *\n * @param invitation_token\n * @param requestOptions - Request options\n * @returns {SeatClaimInfo}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsGetClaimInfo400Error} Invalid or expired invitation token\n * @throws {CustomerSeatsGetClaimInfo403Error} Seat-based pricing not enabled for organization\n * @throws {CustomerSeatsGetClaimInfo404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n invitation_token: string,\n requestOptions?: RequestOptions,\n ): Promise<SeatClaimInfo> => {\n const pathParams = {\n invitation_token: invitation_token,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-seats/claim/{invitation_token}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<SeatClaimInfo>(response, \"json\", {\n 400: CustomerSeatsGetClaimInfo400Error,\n 403: CustomerSeatsGetClaimInfo403Error,\n 404: CustomerSeatsGetClaimInfo404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const claimSeatCustomerSeats = (client: ClientBase) => {\n /**\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSeatClaimResponse}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsClaimSeat400Error} Invalid, expired, or already claimed token\n * @throws {CustomerSeatsClaimSeat403Error} Seat-based pricing not enabled for organization\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n body: SeatClaim,\n requestOptions?: RequestOptions,\n ): Promise<CustomerSeatClaimResponse> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-seats/claim\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeatClaimResponse>(response, \"json\", {\n 400: CustomerSeatsClaimSeat400Error,\n 403: CustomerSeatsClaimSeat403Error,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createCustomerSeatsService(client: ClientBase) {\n return {\n listSeats: listSeatsCustomerSeats(client),\n assignSeat: assignSeatCustomerSeats(client),\n revokeSeat: revokeSeatCustomerSeats(client),\n resendInvitation: resendInvitationCustomerSeats(client),\n getClaimInfo: getClaimInfoCustomerSeats(client),\n claimSeat: claimSeatCustomerSeats(client),\n };\n}\n\nexport type CustomerSeats = ReturnType<typeof createCustomerSeatsService>;\n"],"mappings":";;;AAiCA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;;;CAe5D,OAAO,OACL,OAIA,mBACuB;EACvB,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,iBAAiB,OAAO;GACxB,UAAU,OAAO;EACnB;EACA,MAAM,UAAU,OAAO,aACrB,OACA,sBACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyB,UAAU,QAAQ;GACvD,KAAKA,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,2BAA2B,WAAuB;;;;;;;;;;;;;;;;CAgB7D,OAAO,OAAO,MAAkB,mBAA2D;EAGzF,MAAM,UAAU,OAAO,aACrB,QACA,sBACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKJ,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,2BAA2B,WAAuB;;;;;;;;;;;;;;;CAe7D,OAAO,OAAO,SAAiB,mBAA2D;EACxF,MAAM,aAAa,EACR,QACX;EAEA,MAAM,UAAU,OAAO,aACrB,UACA,gCACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAKK,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKP,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,iCAAiC,WAAuB;;;;;;;;;;;;;;;;CAgBnE,OAAO,OAAO,SAAiB,mBAA2D;EACxF,MAAM,aAAa,EACR,QACX;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,uCACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAKQ,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKX,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,6BAA6B,WAAuB;;;;;;;;;;;;;;CAc/D,OAAO,OACL,kBACA,mBAC2B;EAC3B,MAAM,aAAa,EACC,iBACpB;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,+CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA6B,UAAU,QAAQ;GAC3D,KAAKY,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKd,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;CAa5D,OAAO,OACL,MACA,mBACuC;EAGvC,MAAM,UAAU,OAAO,aACrB,QACA,4BACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyC,UAAU,QAAQ;GACvE,KAAKe,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKhB,eAAAA;EACP,CAAC;CACH;AACF;AAEA,SAAgB,2BAA2B,QAAoB;CAC7D,OAAO;EACL,WAAW,uBAAuB,MAAM;EACxC,YAAY,wBAAwB,MAAM;EAC1C,YAAY,wBAAwB,MAAM;EAC1C,kBAAkB,8BAA8B,MAAM;EACtD,cAAc,0BAA0B,MAAM;EAC9C,WAAW,uBAAuB,MAAM;CAC1C;AACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.cjs";
|
|
2
|
+
import { Ci as SeatsList, Ct as CustomerSeat, Si as SeatClaimInfo, Tt as CustomerSeatClaimResponse, bi as SeatAssign, xi as SeatClaim } from "../../models-COhG3nD4.cjs";
|
|
3
|
+
//#region src/2027-01/services/customer_seats.d.ts
|
|
4
|
+
declare const listSeatsCustomerSeats: (client: ClientBase) => (query?: {
|
|
5
|
+
subscription_id?: string | null;
|
|
6
|
+
order_id?: string | null;
|
|
7
|
+
}, requestOptions?: RequestOptions) => Promise<SeatsList>;
|
|
8
|
+
declare const assignSeatCustomerSeats: (client: ClientBase) => (body: SeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
9
|
+
declare const revokeSeatCustomerSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
10
|
+
declare const resendInvitationCustomerSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
11
|
+
declare const getClaimInfoCustomerSeats: (client: ClientBase) => (invitation_token: string, requestOptions?: RequestOptions) => Promise<SeatClaimInfo>;
|
|
12
|
+
declare const claimSeatCustomerSeats: (client: ClientBase) => (body: SeatClaim, requestOptions?: RequestOptions) => Promise<CustomerSeatClaimResponse>;
|
|
13
|
+
declare function createCustomerSeatsService(client: ClientBase): {
|
|
14
|
+
listSeats: (query?: {
|
|
15
|
+
subscription_id?: string | null;
|
|
16
|
+
order_id?: string | null;
|
|
17
|
+
}, requestOptions?: RequestOptions) => Promise<SeatsList>;
|
|
18
|
+
assignSeat: (body: SeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
19
|
+
revokeSeat: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
20
|
+
resendInvitation: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
21
|
+
getClaimInfo: (invitation_token: string, requestOptions?: RequestOptions) => Promise<SeatClaimInfo>;
|
|
22
|
+
claimSeat: (body: SeatClaim, requestOptions?: RequestOptions) => Promise<CustomerSeatClaimResponse>;
|
|
23
|
+
};
|
|
24
|
+
type CustomerSeats = ReturnType<typeof createCustomerSeatsService>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { CustomerSeats, assignSeatCustomerSeats, claimSeatCustomerSeats, createCustomerSeatsService, getClaimInfoCustomerSeats, listSeatsCustomerSeats, resendInvitationCustomerSeats, revokeSeatCustomerSeats };
|
|
27
|
+
//# sourceMappingURL=customer_seats.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_seats.d.cts","names":[],"sources":["../../../src/2027-01/services/customer_seats.ts"],"mappings":";;;cAiCa,yBAA0B,QAAQ,gBAgB3C;EACE;EACA;GAEF,iBAAiB,mBAChB,QAAQ;cAsBA,0BAA2B,QAAQ,gBAgBhC,MAAM,YAAY,iBAAiB,mBAAiB,QAAQ;cAoB/D,0BAA2B,QAAQ,gBAehC,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAqB9D,gCAAiC,QAAQ,gBAgBtC,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAsB9D,4BAA6B,QAAQ,gBAe9C,0BACA,iBAAiB,mBAChB,QAAQ;cAqBA,yBAA0B,QAAQ,gBAc3C,MAAM,WACN,iBAAiB,mBAChB,QAAQ;iBAmBG,2BAA2B,QAAQ;EAlNvC,YAAA;IACN;IACA;KACD,iBACgB,mBAChB,QAAQ;EAsCS,aAAA,MAAA,YAAU,iBAAmB,mBAAiB,QAAQ;EAmCnD,aAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAqClD,mBAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAqCrD,eAAA,0BAAM,iBACP,mBAChB,QAAQ;EAmCH,YAAA,MAAA,WAAS,iBACE,mBAChB,QAAQ;;KA8BD,gBAAgB,kBAAkB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.mjs";
|
|
2
|
+
import { Ci as SeatsList, Ct as CustomerSeat, Si as SeatClaimInfo, Tt as CustomerSeatClaimResponse, bi as SeatAssign, xi as SeatClaim } from "../../models-COhG3nD4.mjs";
|
|
3
|
+
//#region src/2027-01/services/customer_seats.d.ts
|
|
4
|
+
declare const listSeatsCustomerSeats: (client: ClientBase) => (query?: {
|
|
5
|
+
subscription_id?: string | null;
|
|
6
|
+
order_id?: string | null;
|
|
7
|
+
}, requestOptions?: RequestOptions) => Promise<SeatsList>;
|
|
8
|
+
declare const assignSeatCustomerSeats: (client: ClientBase) => (body: SeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
9
|
+
declare const revokeSeatCustomerSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
10
|
+
declare const resendInvitationCustomerSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
11
|
+
declare const getClaimInfoCustomerSeats: (client: ClientBase) => (invitation_token: string, requestOptions?: RequestOptions) => Promise<SeatClaimInfo>;
|
|
12
|
+
declare const claimSeatCustomerSeats: (client: ClientBase) => (body: SeatClaim, requestOptions?: RequestOptions) => Promise<CustomerSeatClaimResponse>;
|
|
13
|
+
declare function createCustomerSeatsService(client: ClientBase): {
|
|
14
|
+
listSeats: (query?: {
|
|
15
|
+
subscription_id?: string | null;
|
|
16
|
+
order_id?: string | null;
|
|
17
|
+
}, requestOptions?: RequestOptions) => Promise<SeatsList>;
|
|
18
|
+
assignSeat: (body: SeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
19
|
+
revokeSeat: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
20
|
+
resendInvitation: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
|
|
21
|
+
getClaimInfo: (invitation_token: string, requestOptions?: RequestOptions) => Promise<SeatClaimInfo>;
|
|
22
|
+
claimSeat: (body: SeatClaim, requestOptions?: RequestOptions) => Promise<CustomerSeatClaimResponse>;
|
|
23
|
+
};
|
|
24
|
+
type CustomerSeats = ReturnType<typeof createCustomerSeatsService>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { CustomerSeats, assignSeatCustomerSeats, claimSeatCustomerSeats, createCustomerSeatsService, getClaimInfoCustomerSeats, listSeatsCustomerSeats, resendInvitationCustomerSeats, revokeSeatCustomerSeats };
|
|
27
|
+
//# sourceMappingURL=customer_seats.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_seats.d.mts","names":[],"sources":["../../../src/2027-01/services/customer_seats.ts"],"mappings":";;;cAiCa,yBAA0B,QAAQ,gBAgB3C;EACE;EACA;GAEF,iBAAiB,mBAChB,QAAQ;cAsBA,0BAA2B,QAAQ,gBAgBhC,MAAM,YAAY,iBAAiB,mBAAiB,QAAQ;cAoB/D,0BAA2B,QAAQ,gBAehC,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAqB9D,gCAAiC,QAAQ,gBAgBtC,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAsB9D,4BAA6B,QAAQ,gBAe9C,0BACA,iBAAiB,mBAChB,QAAQ;cAqBA,yBAA0B,QAAQ,gBAc3C,MAAM,WACN,iBAAiB,mBAChB,QAAQ;iBAmBG,2BAA2B,QAAQ;EAlNvC,YAAA;IACN;IACA;KACD,iBACgB,mBAChB,QAAQ;EAsCS,aAAA,MAAA,YAAU,iBAAmB,mBAAiB,QAAQ;EAmCnD,aAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAqClD,mBAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAqCrD,eAAA,0BAAM,iBACP,mBAChB,QAAQ;EAmCH,YAAA,MAAA,WAAS,iBACE,mBAChB,QAAQ;;KA8BD,gBAAgB,kBAAkB"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { $ as CustomerSeatsListSeats403Error, G as CustomerSeatsAssignSeat403Error, J as CustomerSeatsClaimSeat403Error, K as CustomerSeatsAssignSeat404Error, Q as CustomerSeatsListSeats401Error, U as CustomerSeatsAssignSeat400Error, W as CustomerSeatsAssignSeat401Error, X as CustomerSeatsGetClaimInfo403Error, Y as CustomerSeatsGetClaimInfo400Error, Z as CustomerSeatsGetClaimInfo404Error, at as CustomerSeatsRevokeSeat401Error, dt as HTTPValidationError, et as CustomerSeatsListSeats404Error, it as CustomerSeatsResendInvitation404Error, nt as CustomerSeatsResendInvitation401Error, ot as CustomerSeatsRevokeSeat403Error, q as CustomerSeatsClaimSeat400Error, rt as CustomerSeatsResendInvitation403Error, st as CustomerSeatsRevokeSeat404Error, tt as CustomerSeatsResendInvitation400Error } from "../../errors-B1xadCgl.mjs";
|
|
2
|
+
//#region src/2027-01/services/customer_seats.ts
|
|
3
|
+
const listSeatsCustomerSeats = (client) => {
|
|
4
|
+
/**
|
|
5
|
+
* **Scopes**: `customer_seats:read`
|
|
6
|
+
*
|
|
7
|
+
* @param query - Query parameters
|
|
8
|
+
* @param requestOptions - Request options
|
|
9
|
+
* @returns {SeatsList}
|
|
10
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
11
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
12
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
13
|
+
* @throws {CustomerSeatsListSeats401Error} Authentication required
|
|
14
|
+
* @throws {CustomerSeatsListSeats403Error} Not permitted
|
|
15
|
+
* @throws {CustomerSeatsListSeats404Error} Subscription or order not found
|
|
16
|
+
* @throws {HTTPValidationError} Validation Error
|
|
17
|
+
*/
|
|
18
|
+
return async (query, requestOptions) => {
|
|
19
|
+
const pathParams = {};
|
|
20
|
+
const queryParams = {
|
|
21
|
+
subscription_id: query?.subscription_id,
|
|
22
|
+
order_id: query?.order_id
|
|
23
|
+
};
|
|
24
|
+
const request = client.buildRequest("GET", "/v1/customer-seats", pathParams, queryParams, void 0);
|
|
25
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
26
|
+
return client.parseResponse(response, "json", {
|
|
27
|
+
401: CustomerSeatsListSeats401Error,
|
|
28
|
+
403: CustomerSeatsListSeats403Error,
|
|
29
|
+
404: CustomerSeatsListSeats404Error,
|
|
30
|
+
422: HTTPValidationError
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const assignSeatCustomerSeats = (client) => {
|
|
35
|
+
/**
|
|
36
|
+
* **Scopes**: `customer_seats:write`
|
|
37
|
+
*
|
|
38
|
+
* @param body - Request body
|
|
39
|
+
* @param requestOptions - Request options
|
|
40
|
+
* @returns {CustomerSeat}
|
|
41
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
42
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
43
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
44
|
+
* @throws {CustomerSeatsAssignSeat400Error} No available seats or customer already has a seat
|
|
45
|
+
* @throws {CustomerSeatsAssignSeat401Error} Authentication required
|
|
46
|
+
* @throws {CustomerSeatsAssignSeat403Error} Not permitted
|
|
47
|
+
* @throws {CustomerSeatsAssignSeat404Error} Subscription, order, or customer not found
|
|
48
|
+
* @throws {HTTPValidationError} Validation Error
|
|
49
|
+
*/
|
|
50
|
+
return async (body, requestOptions) => {
|
|
51
|
+
const request = client.buildRequest("POST", "/v1/customer-seats", {}, {}, body);
|
|
52
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
53
|
+
return client.parseResponse(response, "json", {
|
|
54
|
+
400: CustomerSeatsAssignSeat400Error,
|
|
55
|
+
401: CustomerSeatsAssignSeat401Error,
|
|
56
|
+
403: CustomerSeatsAssignSeat403Error,
|
|
57
|
+
404: CustomerSeatsAssignSeat404Error,
|
|
58
|
+
422: HTTPValidationError
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
const revokeSeatCustomerSeats = (client) => {
|
|
63
|
+
/**
|
|
64
|
+
* **Scopes**: `customer_seats:write`
|
|
65
|
+
*
|
|
66
|
+
* @param seat_id
|
|
67
|
+
* @param requestOptions - Request options
|
|
68
|
+
* @returns {CustomerSeat}
|
|
69
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
70
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
71
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
72
|
+
* @throws {CustomerSeatsRevokeSeat401Error} Authentication required
|
|
73
|
+
* @throws {CustomerSeatsRevokeSeat403Error} Not permitted
|
|
74
|
+
* @throws {CustomerSeatsRevokeSeat404Error} Seat not found
|
|
75
|
+
* @throws {HTTPValidationError} Validation Error
|
|
76
|
+
*/
|
|
77
|
+
return async (seat_id, requestOptions) => {
|
|
78
|
+
const pathParams = { seat_id };
|
|
79
|
+
const request = client.buildRequest("DELETE", "/v1/customer-seats/{seat_id}", pathParams, {}, void 0);
|
|
80
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
81
|
+
return client.parseResponse(response, "json", {
|
|
82
|
+
401: CustomerSeatsRevokeSeat401Error,
|
|
83
|
+
403: CustomerSeatsRevokeSeat403Error,
|
|
84
|
+
404: CustomerSeatsRevokeSeat404Error,
|
|
85
|
+
422: HTTPValidationError
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
const resendInvitationCustomerSeats = (client) => {
|
|
90
|
+
/**
|
|
91
|
+
* **Scopes**: `customer_seats:write`
|
|
92
|
+
*
|
|
93
|
+
* @param seat_id
|
|
94
|
+
* @param requestOptions - Request options
|
|
95
|
+
* @returns {CustomerSeat}
|
|
96
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
97
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
98
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
99
|
+
* @throws {CustomerSeatsResendInvitation400Error} Seat is not pending or already claimed
|
|
100
|
+
* @throws {CustomerSeatsResendInvitation401Error} Authentication required
|
|
101
|
+
* @throws {CustomerSeatsResendInvitation403Error} Not permitted
|
|
102
|
+
* @throws {CustomerSeatsResendInvitation404Error} Seat not found
|
|
103
|
+
* @throws {HTTPValidationError} Validation Error
|
|
104
|
+
*/
|
|
105
|
+
return async (seat_id, requestOptions) => {
|
|
106
|
+
const pathParams = { seat_id };
|
|
107
|
+
const request = client.buildRequest("POST", "/v1/customer-seats/{seat_id}/resend", pathParams, {}, void 0);
|
|
108
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
109
|
+
return client.parseResponse(response, "json", {
|
|
110
|
+
400: CustomerSeatsResendInvitation400Error,
|
|
111
|
+
401: CustomerSeatsResendInvitation401Error,
|
|
112
|
+
403: CustomerSeatsResendInvitation403Error,
|
|
113
|
+
404: CustomerSeatsResendInvitation404Error,
|
|
114
|
+
422: HTTPValidationError
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
const getClaimInfoCustomerSeats = (client) => {
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @param invitation_token
|
|
122
|
+
* @param requestOptions - Request options
|
|
123
|
+
* @returns {SeatClaimInfo}
|
|
124
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
125
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
126
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
127
|
+
* @throws {CustomerSeatsGetClaimInfo400Error} Invalid or expired invitation token
|
|
128
|
+
* @throws {CustomerSeatsGetClaimInfo403Error} Seat-based pricing not enabled for organization
|
|
129
|
+
* @throws {CustomerSeatsGetClaimInfo404Error} Seat not found
|
|
130
|
+
* @throws {HTTPValidationError} Validation Error
|
|
131
|
+
*/
|
|
132
|
+
return async (invitation_token, requestOptions) => {
|
|
133
|
+
const pathParams = { invitation_token };
|
|
134
|
+
const request = client.buildRequest("GET", "/v1/customer-seats/claim/{invitation_token}", pathParams, {}, void 0);
|
|
135
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
136
|
+
return client.parseResponse(response, "json", {
|
|
137
|
+
400: CustomerSeatsGetClaimInfo400Error,
|
|
138
|
+
403: CustomerSeatsGetClaimInfo403Error,
|
|
139
|
+
404: CustomerSeatsGetClaimInfo404Error,
|
|
140
|
+
422: HTTPValidationError
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
const claimSeatCustomerSeats = (client) => {
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @param body - Request body
|
|
148
|
+
* @param requestOptions - Request options
|
|
149
|
+
* @returns {CustomerSeatClaimResponse}
|
|
150
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
151
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
152
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
153
|
+
* @throws {CustomerSeatsClaimSeat400Error} Invalid, expired, or already claimed token
|
|
154
|
+
* @throws {CustomerSeatsClaimSeat403Error} Seat-based pricing not enabled for organization
|
|
155
|
+
* @throws {HTTPValidationError} Validation Error
|
|
156
|
+
*/
|
|
157
|
+
return async (body, requestOptions) => {
|
|
158
|
+
const request = client.buildRequest("POST", "/v1/customer-seats/claim", {}, {}, body);
|
|
159
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
160
|
+
return client.parseResponse(response, "json", {
|
|
161
|
+
400: CustomerSeatsClaimSeat400Error,
|
|
162
|
+
403: CustomerSeatsClaimSeat403Error,
|
|
163
|
+
422: HTTPValidationError
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
function createCustomerSeatsService(client) {
|
|
168
|
+
return {
|
|
169
|
+
listSeats: listSeatsCustomerSeats(client),
|
|
170
|
+
assignSeat: assignSeatCustomerSeats(client),
|
|
171
|
+
revokeSeat: revokeSeatCustomerSeats(client),
|
|
172
|
+
resendInvitation: resendInvitationCustomerSeats(client),
|
|
173
|
+
getClaimInfo: getClaimInfoCustomerSeats(client),
|
|
174
|
+
claimSeat: claimSeatCustomerSeats(client)
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
export { assignSeatCustomerSeats, claimSeatCustomerSeats, createCustomerSeatsService, getClaimInfoCustomerSeats, listSeatsCustomerSeats, resendInvitationCustomerSeats, revokeSeatCustomerSeats };
|
|
179
|
+
|
|
180
|
+
//# sourceMappingURL=customer_seats.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_seats.mjs","names":[],"sources":["../../../src/2027-01/services/customer_seats.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type {\n CustomerSeat,\n CustomerSeatClaimResponse,\n SeatAssign,\n SeatClaim,\n SeatClaimInfo,\n SeatsList,\n} from \"../models\";\n\nimport {\n CustomerSeatsAssignSeat400Error,\n CustomerSeatsAssignSeat401Error,\n CustomerSeatsAssignSeat403Error,\n CustomerSeatsAssignSeat404Error,\n CustomerSeatsClaimSeat400Error,\n CustomerSeatsClaimSeat403Error,\n CustomerSeatsGetClaimInfo400Error,\n CustomerSeatsGetClaimInfo403Error,\n CustomerSeatsGetClaimInfo404Error,\n CustomerSeatsListSeats401Error,\n CustomerSeatsListSeats403Error,\n CustomerSeatsListSeats404Error,\n CustomerSeatsResendInvitation400Error,\n CustomerSeatsResendInvitation401Error,\n CustomerSeatsResendInvitation403Error,\n CustomerSeatsResendInvitation404Error,\n CustomerSeatsRevokeSeat401Error,\n CustomerSeatsRevokeSeat403Error,\n CustomerSeatsRevokeSeat404Error,\n HTTPValidationError,\n} from \"../errors\";\n\nexport const listSeatsCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:read`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {SeatsList}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsListSeats401Error} Authentication required\n * @throws {CustomerSeatsListSeats403Error} Not permitted\n * @throws {CustomerSeatsListSeats404Error} Subscription or order not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n subscription_id?: string | null;\n order_id?: string | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<SeatsList> => {\n const pathParams = {};\n const queryParams = {\n subscription_id: query?.subscription_id,\n order_id: query?.order_id,\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-seats\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<SeatsList>(response, \"json\", {\n 401: CustomerSeatsListSeats401Error,\n 403: CustomerSeatsListSeats403Error,\n 404: CustomerSeatsListSeats404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const assignSeatCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:write`\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsAssignSeat400Error} No available seats or customer already has a seat\n * @throws {CustomerSeatsAssignSeat401Error} Authentication required\n * @throws {CustomerSeatsAssignSeat403Error} Not permitted\n * @throws {CustomerSeatsAssignSeat404Error} Subscription, order, or customer not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (body: SeatAssign, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-seats\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 400: CustomerSeatsAssignSeat400Error,\n 401: CustomerSeatsAssignSeat401Error,\n 403: CustomerSeatsAssignSeat403Error,\n 404: CustomerSeatsAssignSeat404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const revokeSeatCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:write`\n *\n * @param seat_id\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsRevokeSeat401Error} Authentication required\n * @throws {CustomerSeatsRevokeSeat403Error} Not permitted\n * @throws {CustomerSeatsRevokeSeat404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (seat_id: string, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {\n seat_id: seat_id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"DELETE\",\n \"/v1/customer-seats/{seat_id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 401: CustomerSeatsRevokeSeat401Error,\n 403: CustomerSeatsRevokeSeat403Error,\n 404: CustomerSeatsRevokeSeat404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const resendInvitationCustomerSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_seats:write`\n *\n * @param seat_id\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsResendInvitation400Error} Seat is not pending or already claimed\n * @throws {CustomerSeatsResendInvitation401Error} Authentication required\n * @throws {CustomerSeatsResendInvitation403Error} Not permitted\n * @throws {CustomerSeatsResendInvitation404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (seat_id: string, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {\n seat_id: seat_id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-seats/{seat_id}/resend\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 400: CustomerSeatsResendInvitation400Error,\n 401: CustomerSeatsResendInvitation401Error,\n 403: CustomerSeatsResendInvitation403Error,\n 404: CustomerSeatsResendInvitation404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const getClaimInfoCustomerSeats = (client: ClientBase) => {\n /**\n *\n * @param invitation_token\n * @param requestOptions - Request options\n * @returns {SeatClaimInfo}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsGetClaimInfo400Error} Invalid or expired invitation token\n * @throws {CustomerSeatsGetClaimInfo403Error} Seat-based pricing not enabled for organization\n * @throws {CustomerSeatsGetClaimInfo404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n invitation_token: string,\n requestOptions?: RequestOptions,\n ): Promise<SeatClaimInfo> => {\n const pathParams = {\n invitation_token: invitation_token,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-seats/claim/{invitation_token}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<SeatClaimInfo>(response, \"json\", {\n 400: CustomerSeatsGetClaimInfo400Error,\n 403: CustomerSeatsGetClaimInfo403Error,\n 404: CustomerSeatsGetClaimInfo404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const claimSeatCustomerSeats = (client: ClientBase) => {\n /**\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSeatClaimResponse}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerSeatsClaimSeat400Error} Invalid, expired, or already claimed token\n * @throws {CustomerSeatsClaimSeat403Error} Seat-based pricing not enabled for organization\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n body: SeatClaim,\n requestOptions?: RequestOptions,\n ): Promise<CustomerSeatClaimResponse> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-seats/claim\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeatClaimResponse>(response, \"json\", {\n 400: CustomerSeatsClaimSeat400Error,\n 403: CustomerSeatsClaimSeat403Error,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createCustomerSeatsService(client: ClientBase) {\n return {\n listSeats: listSeatsCustomerSeats(client),\n assignSeat: assignSeatCustomerSeats(client),\n revokeSeat: revokeSeatCustomerSeats(client),\n resendInvitation: resendInvitationCustomerSeats(client),\n getClaimInfo: getClaimInfoCustomerSeats(client),\n claimSeat: claimSeatCustomerSeats(client),\n };\n}\n\nexport type CustomerSeats = ReturnType<typeof createCustomerSeatsService>;\n"],"mappings":";;AAiCA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;;;CAe5D,OAAO,OACL,OAIA,mBACuB;EACvB,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,iBAAiB,OAAO;GACxB,UAAU,OAAO;EACnB;EACA,MAAM,UAAU,OAAO,aACrB,OACA,sBACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyB,UAAU,QAAQ;GACvD,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,2BAA2B,WAAuB;;;;;;;;;;;;;;;;CAgB7D,OAAO,OAAO,MAAkB,mBAA2D;EAGzF,MAAM,UAAU,OAAO,aACrB,QACA,sBACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,2BAA2B,WAAuB;;;;;;;;;;;;;;;CAe7D,OAAO,OAAO,SAAiB,mBAA2D;EACxF,MAAM,aAAa,EACR,QACX;EAEA,MAAM,UAAU,OAAO,aACrB,UACA,gCACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,iCAAiC,WAAuB;;;;;;;;;;;;;;;;CAgBnE,OAAO,OAAO,SAAiB,mBAA2D;EACxF,MAAM,aAAa,EACR,QACX;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,uCACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,6BAA6B,WAAuB;;;;;;;;;;;;;;CAc/D,OAAO,OACL,kBACA,mBAC2B;EAC3B,MAAM,aAAa,EACC,iBACpB;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,+CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA6B,UAAU,QAAQ;GAC3D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;CAa5D,OAAO,OACL,MACA,mBACuC;EAGvC,MAAM,UAAU,OAAO,aACrB,QACA,4BACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyC,UAAU,QAAQ;GACvE,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AAEA,SAAgB,2BAA2B,QAAoB;CAC7D,OAAO;EACL,WAAW,uBAAuB,MAAM;EACxC,YAAY,wBAAwB,MAAM;EAC1C,YAAY,wBAAwB,MAAM;EAC1C,kBAAkB,8BAA8B,MAAM;EACtD,cAAc,0BAA0B,MAAM;EAC9C,WAAW,uBAAuB,MAAM;CAC1C;AACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_errors = require("../../errors-DDydmY6t.cjs");
|
|
3
|
+
//#region src/2027-01/services/customer_sessions.ts
|
|
4
|
+
const createCustomerSessions = (client) => {
|
|
5
|
+
/**
|
|
6
|
+
* Create a customer session.
|
|
7
|
+
*
|
|
8
|
+
* For organizations with `member_model_enabled`, this will automatically
|
|
9
|
+
* create a member session for the owner member of the customer.
|
|
10
|
+
*
|
|
11
|
+
* **Scopes**: `customer_sessions:write`
|
|
12
|
+
*
|
|
13
|
+
* @param body - Request body
|
|
14
|
+
* @param requestOptions - Request options
|
|
15
|
+
* @returns {CustomerSession}
|
|
16
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
17
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
18
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
19
|
+
* @throws {AmbiguousExternalCustomerID} The external customer ID matches customers in several accessible organizations.
|
|
20
|
+
* @throws {HTTPValidationError} Validation Error
|
|
21
|
+
*/
|
|
22
|
+
return async (body, requestOptions) => {
|
|
23
|
+
const request = client.buildRequest("POST", "/v1/customer-sessions/", {}, {}, body);
|
|
24
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
25
|
+
return client.parseResponse(response, "json", {
|
|
26
|
+
409: require_errors.AmbiguousExternalCustomerID,
|
|
27
|
+
422: require_errors.HTTPValidationError
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
function createCustomerSessionsService(client) {
|
|
32
|
+
return { create: createCustomerSessions(client) };
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.createCustomerSessions = createCustomerSessions;
|
|
36
|
+
exports.createCustomerSessionsService = createCustomerSessionsService;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=customer_sessions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_sessions.cjs","names":["AmbiguousExternalCustomerID","HTTPValidationError"],"sources":["../../../src/2027-01/services/customer_sessions.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type {\n CustomerSession,\n CustomerSessionCustomerExternalIDCreate,\n CustomerSessionCustomerIDCreate,\n} from \"../models\";\n\nimport { AmbiguousExternalCustomerID, HTTPValidationError } from \"../errors\";\n\nexport const createCustomerSessions = (client: ClientBase) => {\n /**\n * Create a customer session.\n *\n * For organizations with `member_model_enabled`, this will automatically\n * create a member session for the owner member of the customer.\n *\n * **Scopes**: `customer_sessions:write`\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSession}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {AmbiguousExternalCustomerID} The external customer ID matches customers in several accessible organizations.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n body: CustomerSessionCustomerIDCreate | CustomerSessionCustomerExternalIDCreate,\n requestOptions?: RequestOptions,\n ): Promise<CustomerSession> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-sessions/\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSession>(response, \"json\", {\n 409: AmbiguousExternalCustomerID,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createCustomerSessionsService(client: ClientBase) {\n return {\n create: createCustomerSessions(client),\n };\n}\n\nexport type CustomerSessions = ReturnType<typeof createCustomerSessionsService>;\n"],"mappings":";;;AASA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;;;;;;CAkB5D,OAAO,OACL,MACA,mBAC6B;EAG7B,MAAM,UAAU,OAAO,aACrB,QACA,0BACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA+B,UAAU,QAAQ;GAC7D,KAAKA,eAAAA;GACL,KAAKC,eAAAA;EACP,CAAC;CACH;AACF;AAEA,SAAgB,8BAA8B,QAAoB;CAChE,OAAO,EACL,QAAQ,uBAAuB,MAAM,EACvC;AACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.cjs";
|
|
2
|
+
import { Dt as CustomerSessionCustomerExternalIDCreate, Et as CustomerSession, Ot as CustomerSessionCustomerIDCreate } from "../../models-COhG3nD4.cjs";
|
|
3
|
+
//#region src/2027-01/services/customer_sessions.d.ts
|
|
4
|
+
declare const createCustomerSessions: (client: ClientBase) => (body: CustomerSessionCustomerIDCreate | CustomerSessionCustomerExternalIDCreate, requestOptions?: RequestOptions) => Promise<CustomerSession>;
|
|
5
|
+
declare function createCustomerSessionsService(client: ClientBase): {
|
|
6
|
+
create: (body: CustomerSessionCustomerIDCreate | CustomerSessionCustomerExternalIDCreate, requestOptions?: RequestOptions) => Promise<CustomerSession>;
|
|
7
|
+
};
|
|
8
|
+
type CustomerSessions = ReturnType<typeof createCustomerSessionsService>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CustomerSessions, createCustomerSessions, createCustomerSessionsService };
|
|
11
|
+
//# sourceMappingURL=customer_sessions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_sessions.d.cts","names":[],"sources":["../../../src/2027-01/services/customer_sessions.ts"],"mappings":";;;cASa,yBAA0B,QAAQ,gBAmB3C,MAAM,kCAAkC,yCACxC,iBAAiB,mBAChB,QAAQ;iBAkBG,8BAA8B,QAAQ;EApB5C,SAAA,MAAA,kCAAkC,yCAAuC,iBAC9D,mBAChB,QAAQ;;KAwBD,mBAAmB,kBAAkB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.mjs";
|
|
2
|
+
import { Dt as CustomerSessionCustomerExternalIDCreate, Et as CustomerSession, Ot as CustomerSessionCustomerIDCreate } from "../../models-COhG3nD4.mjs";
|
|
3
|
+
//#region src/2027-01/services/customer_sessions.d.ts
|
|
4
|
+
declare const createCustomerSessions: (client: ClientBase) => (body: CustomerSessionCustomerIDCreate | CustomerSessionCustomerExternalIDCreate, requestOptions?: RequestOptions) => Promise<CustomerSession>;
|
|
5
|
+
declare function createCustomerSessionsService(client: ClientBase): {
|
|
6
|
+
create: (body: CustomerSessionCustomerIDCreate | CustomerSessionCustomerExternalIDCreate, requestOptions?: RequestOptions) => Promise<CustomerSession>;
|
|
7
|
+
};
|
|
8
|
+
type CustomerSessions = ReturnType<typeof createCustomerSessionsService>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CustomerSessions, createCustomerSessions, createCustomerSessionsService };
|
|
11
|
+
//# sourceMappingURL=customer_sessions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_sessions.d.mts","names":[],"sources":["../../../src/2027-01/services/customer_sessions.ts"],"mappings":";;;cASa,yBAA0B,QAAQ,gBAmB3C,MAAM,kCAAkC,yCACxC,iBAAiB,mBAChB,QAAQ;iBAkBG,8BAA8B,QAAQ;EApB5C,SAAA,MAAA,kCAAkC,yCAAuC,iBAC9D,mBAChB,QAAQ;;KAwBD,mBAAmB,kBAAkB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { dt as HTTPValidationError, n as AmbiguousExternalCustomerID } from "../../errors-B1xadCgl.mjs";
|
|
2
|
+
//#region src/2027-01/services/customer_sessions.ts
|
|
3
|
+
const createCustomerSessions = (client) => {
|
|
4
|
+
/**
|
|
5
|
+
* Create a customer session.
|
|
6
|
+
*
|
|
7
|
+
* For organizations with `member_model_enabled`, this will automatically
|
|
8
|
+
* create a member session for the owner member of the customer.
|
|
9
|
+
*
|
|
10
|
+
* **Scopes**: `customer_sessions:write`
|
|
11
|
+
*
|
|
12
|
+
* @param body - Request body
|
|
13
|
+
* @param requestOptions - Request options
|
|
14
|
+
* @returns {CustomerSession}
|
|
15
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
16
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
17
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
18
|
+
* @throws {AmbiguousExternalCustomerID} The external customer ID matches customers in several accessible organizations.
|
|
19
|
+
* @throws {HTTPValidationError} Validation Error
|
|
20
|
+
*/
|
|
21
|
+
return async (body, requestOptions) => {
|
|
22
|
+
const request = client.buildRequest("POST", "/v1/customer-sessions/", {}, {}, body);
|
|
23
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
24
|
+
return client.parseResponse(response, "json", {
|
|
25
|
+
409: AmbiguousExternalCustomerID,
|
|
26
|
+
422: HTTPValidationError
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
function createCustomerSessionsService(client) {
|
|
31
|
+
return { create: createCustomerSessions(client) };
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { createCustomerSessions, createCustomerSessionsService };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=customer_sessions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer_sessions.mjs","names":[],"sources":["../../../src/2027-01/services/customer_sessions.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type {\n CustomerSession,\n CustomerSessionCustomerExternalIDCreate,\n CustomerSessionCustomerIDCreate,\n} from \"../models\";\n\nimport { AmbiguousExternalCustomerID, HTTPValidationError } from \"../errors\";\n\nexport const createCustomerSessions = (client: ClientBase) => {\n /**\n * Create a customer session.\n *\n * For organizations with `member_model_enabled`, this will automatically\n * create a member session for the owner member of the customer.\n *\n * **Scopes**: `customer_sessions:write`\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSession}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {AmbiguousExternalCustomerID} The external customer ID matches customers in several accessible organizations.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n body: CustomerSessionCustomerIDCreate | CustomerSessionCustomerExternalIDCreate,\n requestOptions?: RequestOptions,\n ): Promise<CustomerSession> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-sessions/\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSession>(response, \"json\", {\n 409: AmbiguousExternalCustomerID,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createCustomerSessionsService(client: ClientBase) {\n return {\n create: createCustomerSessions(client),\n };\n}\n\nexport type CustomerSessions = ReturnType<typeof createCustomerSessionsService>;\n"],"mappings":";;AASA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;;;;;;CAkB5D,OAAO,OACL,MACA,mBAC6B;EAG7B,MAAM,UAAU,OAAO,aACrB,QACA,0BACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA+B,UAAU,QAAQ;GAC7D,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AAEA,SAAgB,8BAA8B,QAAoB;CAChE,OAAO,EACL,QAAQ,uBAAuB,MAAM,EACvC;AACF"}
|