@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 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.cjs","names":["HTTPValidationError","ResourceNotFound","DisputeNotOpenError"],"sources":["../../../src/2027-01/services/disputes.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type { Dispute, DisputeSortProperty, DisputeStatus, ListResourceDispute } from \"../models\";\n\nimport { DisputeNotOpenError, HTTPValidationError, ResourceNotFound } from \"../errors\";\n\nexport const listDisputes = (client: ClientBase) => {\n /**\n * List disputes.\n *\n * **Scopes**: `disputes:read` `disputes:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {ListResourceDispute}\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 {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n organization_id?: string | string[] | null;\n order_id?: string | string[] | null;\n status?: DisputeStatus | DisputeStatus[] | null;\n page?: number;\n limit?: number;\n sorting?: DisputeSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<ListResourceDispute> => {\n const pathParams = {};\n const queryParams = {\n organization_id: query?.organization_id,\n order_id: query?.order_id,\n status: query?.status,\n page: query?.page ?? 1,\n limit: query?.limit ?? 10,\n sorting: query?.sorting ?? [\"-created_at\"],\n };\n const request = client.buildRequest(\"GET\", \"/v1/disputes/\", pathParams, queryParams, undefined);\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<ListResourceDispute>(response, \"json\", {\n 422: HTTPValidationError,\n });\n };\n};\n/**\n * List disputes.\n *\n * **Scopes**: `disputes:read` `disputes:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {AsyncGenerator<Dispute>} A generator that yields items of type Dispute.\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 {HTTPValidationError} Validation Error\n */\nexport const iterListDisputes = (client: ClientBase) => {\n return async function* (\n query?: {\n organization_id?: string | string[] | null;\n order_id?: string | string[] | null;\n status?: DisputeStatus | DisputeStatus[] | null;\n page?: number;\n limit?: number;\n sorting?: DisputeSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): AsyncGenerator<Dispute> {\n let page: number;\n page = query?.page ?? 1;\n let limit: number | undefined;\n limit = query?.limit;\n\n while (true) {\n const response = await listDisputes(client)({ ...query, page, limit }, requestOptions);\n for (const item of response.items) {\n yield item;\n }\n if (page >= response.pagination.max_page) {\n break;\n }\n page++;\n }\n };\n};\nexport const getDisputes = (client: ClientBase) => {\n /**\n * Get a dispute by ID.\n *\n * **Scopes**: `disputes:read` `disputes:write`\n *\n * @param id - The dispute ID.\n * @param requestOptions - Request options\n * @returns {Dispute}\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 {ResourceNotFound} Dispute not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<Dispute> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/disputes/{id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<Dispute>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const acceptDisputes = (client: ClientBase) => {\n /**\n * Accept a dispute, conceding the chargeback.\n *\n * Closes the dispute with the processor (settling it as `lost`) and records\n * the merchant's decision on the dispute's support case.\n *\n * **Scopes**: `disputes:write`\n *\n * @param id - The dispute ID.\n * @param requestOptions - Request options\n * @returns {Dispute}\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 {ResourceNotFound} Dispute not found.\n * @throws {DisputeNotOpenError} Conflict\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<Dispute> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/disputes/{id}/accept\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<Dispute>(response, \"json\", {\n 404: ResourceNotFound,\n 409: DisputeNotOpenError,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createDisputesService(client: ClientBase) {\n return {\n list: listDisputes(client),\n get: getDisputes(client),\n accept: acceptDisputes(client),\n iterList: iterListDisputes(client),\n };\n}\n\nexport type Disputes = ReturnType<typeof createDisputesService>;\n"],"mappings":";;;AAKA,MAAa,gBAAgB,WAAuB;;;;;;;;;;;;;;CAclD,OAAO,OACL,OAQA,mBACiC;EACjC,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,iBAAiB,OAAO;GACxB,UAAU,OAAO;GACjB,QAAQ,OAAO;GACf,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;GACvB,SAAS,OAAO,WAAW,CAAC,aAAa;EAC3C;EACA,MAAM,UAAU,OAAO,aAAa,OAAO,iBAAiB,YAAY,aAAa,KAAA,CAAS;EAC9F,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAmC,UAAU,QAAQ,EACjE,KAAKA,eAAAA,oBACP,CAAC;CACH;AACF;;;;;;;;;;;;;;AAcA,MAAa,oBAAoB,WAAuB;CACtD,OAAO,iBACL,OAQA,gBACyB;EACzB,IAAI;EACJ,OAAO,OAAO,QAAQ;EACtB,IAAI;EACJ,QAAQ,OAAO;EAEf,OAAO,MAAM;GACX,MAAM,WAAW,MAAM,aAAa,MAAM,CAAC,CAAC;IAAE,GAAG;IAAO;IAAM;GAAM,GAAG,cAAc;GACrF,KAAK,MAAM,QAAQ,SAAS,OAC1B,MAAM;GAER,IAAI,QAAQ,SAAS,WAAW,UAC9B;GAEF;EACF;CACF;AACF;AACA,MAAa,eAAe,WAAuB;;;;;;;;;;;;;;;CAejD,OAAO,OAAO,IAAY,mBAAsD;EAC9E,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,qBACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAuB,UAAU,QAAQ;GACrD,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,kBAAkB,WAAuB;;;;;;;;;;;;;;;;;;;CAmBpD,OAAO,OAAO,IAAY,mBAAsD;EAC9E,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,4BACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAuB,UAAU,QAAQ;GACrD,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKF,eAAAA;EACP,CAAC;CACH;AACF;AAEA,SAAgB,sBAAsB,QAAoB;CACxD,OAAO;EACL,MAAM,aAAa,MAAM;EACzB,KAAK,YAAY,MAAM;EACvB,QAAQ,eAAe,MAAM;EAC7B,UAAU,iBAAiB,MAAM;CACnC;AACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.cjs";
|
|
2
|
+
import { Gt as DisputeSortProperty, Ht as Dispute, Kt as DisputeStatus, zn as ListResourceDispute } from "../../models-COhG3nD4.cjs";
|
|
3
|
+
//#region src/2027-01/services/disputes.d.ts
|
|
4
|
+
declare const listDisputes: (client: ClientBase) => (query?: {
|
|
5
|
+
organization_id?: string | string[] | null;
|
|
6
|
+
order_id?: string | string[] | null;
|
|
7
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
8
|
+
page?: number;
|
|
9
|
+
limit?: number;
|
|
10
|
+
sorting?: DisputeSortProperty[] | null;
|
|
11
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceDispute>;
|
|
12
|
+
/**
|
|
13
|
+
* List disputes.
|
|
14
|
+
*
|
|
15
|
+
* **Scopes**: `disputes:read` `disputes:write`
|
|
16
|
+
*
|
|
17
|
+
* @param query - Query parameters
|
|
18
|
+
* @param requestOptions - Request options
|
|
19
|
+
* @returns {AsyncGenerator<Dispute>} A generator that yields items of type Dispute.
|
|
20
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
21
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
22
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
23
|
+
* @throws {HTTPValidationError} Validation Error
|
|
24
|
+
*/
|
|
25
|
+
declare const iterListDisputes: (client: ClientBase) => (query?: {
|
|
26
|
+
organization_id?: string | string[] | null;
|
|
27
|
+
order_id?: string | string[] | null;
|
|
28
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
29
|
+
page?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
sorting?: DisputeSortProperty[] | null;
|
|
32
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<Dispute>;
|
|
33
|
+
declare const getDisputes: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
34
|
+
declare const acceptDisputes: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
35
|
+
declare function createDisputesService(client: ClientBase): {
|
|
36
|
+
list: (query?: {
|
|
37
|
+
organization_id?: string | string[] | null;
|
|
38
|
+
order_id?: string | string[] | null;
|
|
39
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
40
|
+
page?: number;
|
|
41
|
+
limit?: number;
|
|
42
|
+
sorting?: DisputeSortProperty[] | null;
|
|
43
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceDispute>;
|
|
44
|
+
get: (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
45
|
+
accept: (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
46
|
+
iterList: (query?: {
|
|
47
|
+
organization_id?: string | string[] | null;
|
|
48
|
+
order_id?: string | string[] | null;
|
|
49
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
50
|
+
page?: number;
|
|
51
|
+
limit?: number;
|
|
52
|
+
sorting?: DisputeSortProperty[] | null;
|
|
53
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<Dispute>;
|
|
54
|
+
};
|
|
55
|
+
type Disputes = ReturnType<typeof createDisputesService>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { Disputes, acceptDisputes, createDisputesService, getDisputes, iterListDisputes, listDisputes };
|
|
58
|
+
//# sourceMappingURL=disputes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.d.cts","names":[],"sources":["../../../src/2027-01/services/disputes.ts"],"mappings":";;;cAKa,eAAgB,QAAQ,gBAejC;EACE;EACA;EACA,SAAS,gBAAgB;EACzB;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;cA8BA,mBAAoB,QAAQ,gBAErC;EACE;EACA;EACA,SAAS,gBAAgB;EACzB;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,cAAe,QAAQ,gBAepB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,iBAAkB,QAAQ,gBAmBvB,YAAY,iBAAiB,mBAAiB,QAAQ;iBAqBtD,sBAAsB,QAAQ;EA9IlC,OAAA;IACN;IACA;IACA,SAAS,gBAAgB;IACzB;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EA0EO,MAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAsClD,SAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAhF1D,WAAA;IACN;IACA;IACA,SAAS,gBAAgB;IACzB;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KAqGR,WAAW,kBAAkB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.mjs";
|
|
2
|
+
import { Gt as DisputeSortProperty, Ht as Dispute, Kt as DisputeStatus, zn as ListResourceDispute } from "../../models-COhG3nD4.mjs";
|
|
3
|
+
//#region src/2027-01/services/disputes.d.ts
|
|
4
|
+
declare const listDisputes: (client: ClientBase) => (query?: {
|
|
5
|
+
organization_id?: string | string[] | null;
|
|
6
|
+
order_id?: string | string[] | null;
|
|
7
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
8
|
+
page?: number;
|
|
9
|
+
limit?: number;
|
|
10
|
+
sorting?: DisputeSortProperty[] | null;
|
|
11
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceDispute>;
|
|
12
|
+
/**
|
|
13
|
+
* List disputes.
|
|
14
|
+
*
|
|
15
|
+
* **Scopes**: `disputes:read` `disputes:write`
|
|
16
|
+
*
|
|
17
|
+
* @param query - Query parameters
|
|
18
|
+
* @param requestOptions - Request options
|
|
19
|
+
* @returns {AsyncGenerator<Dispute>} A generator that yields items of type Dispute.
|
|
20
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
21
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
22
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
23
|
+
* @throws {HTTPValidationError} Validation Error
|
|
24
|
+
*/
|
|
25
|
+
declare const iterListDisputes: (client: ClientBase) => (query?: {
|
|
26
|
+
organization_id?: string | string[] | null;
|
|
27
|
+
order_id?: string | string[] | null;
|
|
28
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
29
|
+
page?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
sorting?: DisputeSortProperty[] | null;
|
|
32
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<Dispute>;
|
|
33
|
+
declare const getDisputes: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
34
|
+
declare const acceptDisputes: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
35
|
+
declare function createDisputesService(client: ClientBase): {
|
|
36
|
+
list: (query?: {
|
|
37
|
+
organization_id?: string | string[] | null;
|
|
38
|
+
order_id?: string | string[] | null;
|
|
39
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
40
|
+
page?: number;
|
|
41
|
+
limit?: number;
|
|
42
|
+
sorting?: DisputeSortProperty[] | null;
|
|
43
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceDispute>;
|
|
44
|
+
get: (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
45
|
+
accept: (id: string, requestOptions?: RequestOptions) => Promise<Dispute>;
|
|
46
|
+
iterList: (query?: {
|
|
47
|
+
organization_id?: string | string[] | null;
|
|
48
|
+
order_id?: string | string[] | null;
|
|
49
|
+
status?: DisputeStatus | DisputeStatus[] | null;
|
|
50
|
+
page?: number;
|
|
51
|
+
limit?: number;
|
|
52
|
+
sorting?: DisputeSortProperty[] | null;
|
|
53
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<Dispute>;
|
|
54
|
+
};
|
|
55
|
+
type Disputes = ReturnType<typeof createDisputesService>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { Disputes, acceptDisputes, createDisputesService, getDisputes, iterListDisputes, listDisputes };
|
|
58
|
+
//# sourceMappingURL=disputes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.d.mts","names":[],"sources":["../../../src/2027-01/services/disputes.ts"],"mappings":";;;cAKa,eAAgB,QAAQ,gBAejC;EACE;EACA;EACA,SAAS,gBAAgB;EACzB;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;cA8BA,mBAAoB,QAAQ,gBAErC;EACE;EACA;EACA,SAAS,gBAAgB;EACzB;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,cAAe,QAAQ,gBAepB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,iBAAkB,QAAQ,gBAmBvB,YAAY,iBAAiB,mBAAiB,QAAQ;iBAqBtD,sBAAsB,QAAQ;EA9IlC,OAAA;IACN;IACA;IACA,SAAS,gBAAgB;IACzB;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EA0EO,MAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAsClD,SAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAhF1D,WAAA;IACN;IACA;IACA,SAAS,gBAAgB;IACzB;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KAqGR,WAAW,kBAAkB"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Ot as ResourceNotFound, ct as DisputeNotOpenError, dt as HTTPValidationError } from "../../errors-B1xadCgl.mjs";
|
|
2
|
+
//#region src/2027-01/services/disputes.ts
|
|
3
|
+
const listDisputes = (client) => {
|
|
4
|
+
/**
|
|
5
|
+
* List disputes.
|
|
6
|
+
*
|
|
7
|
+
* **Scopes**: `disputes:read` `disputes:write`
|
|
8
|
+
*
|
|
9
|
+
* @param query - Query parameters
|
|
10
|
+
* @param requestOptions - Request options
|
|
11
|
+
* @returns {ListResourceDispute}
|
|
12
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
13
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
14
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
15
|
+
* @throws {HTTPValidationError} Validation Error
|
|
16
|
+
*/
|
|
17
|
+
return async (query, requestOptions) => {
|
|
18
|
+
const pathParams = {};
|
|
19
|
+
const queryParams = {
|
|
20
|
+
organization_id: query?.organization_id,
|
|
21
|
+
order_id: query?.order_id,
|
|
22
|
+
status: query?.status,
|
|
23
|
+
page: query?.page ?? 1,
|
|
24
|
+
limit: query?.limit ?? 10,
|
|
25
|
+
sorting: query?.sorting ?? ["-created_at"]
|
|
26
|
+
};
|
|
27
|
+
const request = client.buildRequest("GET", "/v1/disputes/", pathParams, queryParams, void 0);
|
|
28
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
29
|
+
return client.parseResponse(response, "json", { 422: HTTPValidationError });
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* List disputes.
|
|
34
|
+
*
|
|
35
|
+
* **Scopes**: `disputes:read` `disputes:write`
|
|
36
|
+
*
|
|
37
|
+
* @param query - Query parameters
|
|
38
|
+
* @param requestOptions - Request options
|
|
39
|
+
* @returns {AsyncGenerator<Dispute>} A generator that yields items of type Dispute.
|
|
40
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
41
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
42
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
43
|
+
* @throws {HTTPValidationError} Validation Error
|
|
44
|
+
*/
|
|
45
|
+
const iterListDisputes = (client) => {
|
|
46
|
+
return async function* (query, requestOptions) {
|
|
47
|
+
let page;
|
|
48
|
+
page = query?.page ?? 1;
|
|
49
|
+
let limit;
|
|
50
|
+
limit = query?.limit;
|
|
51
|
+
while (true) {
|
|
52
|
+
const response = await listDisputes(client)({
|
|
53
|
+
...query,
|
|
54
|
+
page,
|
|
55
|
+
limit
|
|
56
|
+
}, requestOptions);
|
|
57
|
+
for (const item of response.items) yield item;
|
|
58
|
+
if (page >= response.pagination.max_page) break;
|
|
59
|
+
page++;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const getDisputes = (client) => {
|
|
64
|
+
/**
|
|
65
|
+
* Get a dispute by ID.
|
|
66
|
+
*
|
|
67
|
+
* **Scopes**: `disputes:read` `disputes:write`
|
|
68
|
+
*
|
|
69
|
+
* @param id - The dispute ID.
|
|
70
|
+
* @param requestOptions - Request options
|
|
71
|
+
* @returns {Dispute}
|
|
72
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
73
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
74
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
75
|
+
* @throws {ResourceNotFound} Dispute not found.
|
|
76
|
+
* @throws {HTTPValidationError} Validation Error
|
|
77
|
+
*/
|
|
78
|
+
return async (id, requestOptions) => {
|
|
79
|
+
const pathParams = { id };
|
|
80
|
+
const request = client.buildRequest("GET", "/v1/disputes/{id}", pathParams, {}, void 0);
|
|
81
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
82
|
+
return client.parseResponse(response, "json", {
|
|
83
|
+
404: ResourceNotFound,
|
|
84
|
+
422: HTTPValidationError
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
const acceptDisputes = (client) => {
|
|
89
|
+
/**
|
|
90
|
+
* Accept a dispute, conceding the chargeback.
|
|
91
|
+
*
|
|
92
|
+
* Closes the dispute with the processor (settling it as `lost`) and records
|
|
93
|
+
* the merchant's decision on the dispute's support case.
|
|
94
|
+
*
|
|
95
|
+
* **Scopes**: `disputes:write`
|
|
96
|
+
*
|
|
97
|
+
* @param id - The dispute ID.
|
|
98
|
+
* @param requestOptions - Request options
|
|
99
|
+
* @returns {Dispute}
|
|
100
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
101
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
102
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
103
|
+
* @throws {ResourceNotFound} Dispute not found.
|
|
104
|
+
* @throws {DisputeNotOpenError} Conflict
|
|
105
|
+
* @throws {HTTPValidationError} Validation Error
|
|
106
|
+
*/
|
|
107
|
+
return async (id, requestOptions) => {
|
|
108
|
+
const pathParams = { id };
|
|
109
|
+
const request = client.buildRequest("POST", "/v1/disputes/{id}/accept", pathParams, {}, void 0);
|
|
110
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
111
|
+
return client.parseResponse(response, "json", {
|
|
112
|
+
404: ResourceNotFound,
|
|
113
|
+
409: DisputeNotOpenError,
|
|
114
|
+
422: HTTPValidationError
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
function createDisputesService(client) {
|
|
119
|
+
return {
|
|
120
|
+
list: listDisputes(client),
|
|
121
|
+
get: getDisputes(client),
|
|
122
|
+
accept: acceptDisputes(client),
|
|
123
|
+
iterList: iterListDisputes(client)
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
export { acceptDisputes, createDisputesService, getDisputes, iterListDisputes, listDisputes };
|
|
128
|
+
|
|
129
|
+
//# sourceMappingURL=disputes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.mjs","names":[],"sources":["../../../src/2027-01/services/disputes.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type { Dispute, DisputeSortProperty, DisputeStatus, ListResourceDispute } from \"../models\";\n\nimport { DisputeNotOpenError, HTTPValidationError, ResourceNotFound } from \"../errors\";\n\nexport const listDisputes = (client: ClientBase) => {\n /**\n * List disputes.\n *\n * **Scopes**: `disputes:read` `disputes:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {ListResourceDispute}\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 {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n organization_id?: string | string[] | null;\n order_id?: string | string[] | null;\n status?: DisputeStatus | DisputeStatus[] | null;\n page?: number;\n limit?: number;\n sorting?: DisputeSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<ListResourceDispute> => {\n const pathParams = {};\n const queryParams = {\n organization_id: query?.organization_id,\n order_id: query?.order_id,\n status: query?.status,\n page: query?.page ?? 1,\n limit: query?.limit ?? 10,\n sorting: query?.sorting ?? [\"-created_at\"],\n };\n const request = client.buildRequest(\"GET\", \"/v1/disputes/\", pathParams, queryParams, undefined);\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<ListResourceDispute>(response, \"json\", {\n 422: HTTPValidationError,\n });\n };\n};\n/**\n * List disputes.\n *\n * **Scopes**: `disputes:read` `disputes:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {AsyncGenerator<Dispute>} A generator that yields items of type Dispute.\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 {HTTPValidationError} Validation Error\n */\nexport const iterListDisputes = (client: ClientBase) => {\n return async function* (\n query?: {\n organization_id?: string | string[] | null;\n order_id?: string | string[] | null;\n status?: DisputeStatus | DisputeStatus[] | null;\n page?: number;\n limit?: number;\n sorting?: DisputeSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): AsyncGenerator<Dispute> {\n let page: number;\n page = query?.page ?? 1;\n let limit: number | undefined;\n limit = query?.limit;\n\n while (true) {\n const response = await listDisputes(client)({ ...query, page, limit }, requestOptions);\n for (const item of response.items) {\n yield item;\n }\n if (page >= response.pagination.max_page) {\n break;\n }\n page++;\n }\n };\n};\nexport const getDisputes = (client: ClientBase) => {\n /**\n * Get a dispute by ID.\n *\n * **Scopes**: `disputes:read` `disputes:write`\n *\n * @param id - The dispute ID.\n * @param requestOptions - Request options\n * @returns {Dispute}\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 {ResourceNotFound} Dispute not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<Dispute> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/disputes/{id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<Dispute>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const acceptDisputes = (client: ClientBase) => {\n /**\n * Accept a dispute, conceding the chargeback.\n *\n * Closes the dispute with the processor (settling it as `lost`) and records\n * the merchant's decision on the dispute's support case.\n *\n * **Scopes**: `disputes:write`\n *\n * @param id - The dispute ID.\n * @param requestOptions - Request options\n * @returns {Dispute}\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 {ResourceNotFound} Dispute not found.\n * @throws {DisputeNotOpenError} Conflict\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<Dispute> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/disputes/{id}/accept\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<Dispute>(response, \"json\", {\n 404: ResourceNotFound,\n 409: DisputeNotOpenError,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createDisputesService(client: ClientBase) {\n return {\n list: listDisputes(client),\n get: getDisputes(client),\n accept: acceptDisputes(client),\n iterList: iterListDisputes(client),\n };\n}\n\nexport type Disputes = ReturnType<typeof createDisputesService>;\n"],"mappings":";;AAKA,MAAa,gBAAgB,WAAuB;;;;;;;;;;;;;;CAclD,OAAO,OACL,OAQA,mBACiC;EACjC,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,iBAAiB,OAAO;GACxB,UAAU,OAAO;GACjB,QAAQ,OAAO;GACf,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;GACvB,SAAS,OAAO,WAAW,CAAC,aAAa;EAC3C;EACA,MAAM,UAAU,OAAO,aAAa,OAAO,iBAAiB,YAAY,aAAa,KAAA,CAAS;EAC9F,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAmC,UAAU,QAAQ,EACjE,KAAK,oBACP,CAAC;CACH;AACF;;;;;;;;;;;;;;AAcA,MAAa,oBAAoB,WAAuB;CACtD,OAAO,iBACL,OAQA,gBACyB;EACzB,IAAI;EACJ,OAAO,OAAO,QAAQ;EACtB,IAAI;EACJ,QAAQ,OAAO;EAEf,OAAO,MAAM;GACX,MAAM,WAAW,MAAM,aAAa,MAAM,CAAC,CAAC;IAAE,GAAG;IAAO;IAAM;GAAM,GAAG,cAAc;GACrF,KAAK,MAAM,QAAQ,SAAS,OAC1B,MAAM;GAER,IAAI,QAAQ,SAAS,WAAW,UAC9B;GAEF;EACF;CACF;AACF;AACA,MAAa,eAAe,WAAuB;;;;;;;;;;;;;;;CAejD,OAAO,OAAO,IAAY,mBAAsD;EAC9E,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,qBACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAuB,UAAU,QAAQ;GACrD,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,kBAAkB,WAAuB;;;;;;;;;;;;;;;;;;;CAmBpD,OAAO,OAAO,IAAY,mBAAsD;EAC9E,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,4BACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAuB,UAAU,QAAQ;GACrD,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AAEA,SAAgB,sBAAsB,QAAoB;CACxD,OAAO;EACL,MAAM,aAAa,MAAM;EACzB,KAAK,YAAY,MAAM;EACvB,QAAQ,eAAe,MAAM;EAC7B,UAAU,iBAAiB,MAAM;CACnC;AACF"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_errors = require("../../errors-DDydmY6t.cjs");
|
|
3
|
+
//#region src/2027-01/services/event_types.ts
|
|
4
|
+
const listEventTypes = (client) => {
|
|
5
|
+
/**
|
|
6
|
+
* List event types with aggregated statistics.
|
|
7
|
+
*
|
|
8
|
+
* **Scopes**: `events:read` `events:write`
|
|
9
|
+
*
|
|
10
|
+
* @param query - Query parameters
|
|
11
|
+
* @param requestOptions - Request options
|
|
12
|
+
* @returns {ListResourceEventTypeWithStats}
|
|
13
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
14
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
15
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
16
|
+
* @throws {HTTPValidationError} Validation Error
|
|
17
|
+
*/
|
|
18
|
+
return async (query, requestOptions) => {
|
|
19
|
+
const pathParams = {};
|
|
20
|
+
const queryParams = {
|
|
21
|
+
organization_id: query?.organization_id,
|
|
22
|
+
customer_id: query?.customer_id,
|
|
23
|
+
external_customer_id: query?.external_customer_id,
|
|
24
|
+
query: query?.query,
|
|
25
|
+
root_events: query?.root_events,
|
|
26
|
+
parent_id: query?.parent_id,
|
|
27
|
+
source: query?.source,
|
|
28
|
+
page: query?.page ?? 1,
|
|
29
|
+
limit: query?.limit ?? 10,
|
|
30
|
+
sorting: query?.sorting ?? ["-last_seen"]
|
|
31
|
+
};
|
|
32
|
+
const request = client.buildRequest("GET", "/v1/event-types/", pathParams, queryParams, void 0);
|
|
33
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
34
|
+
return client.parseResponse(response, "json", { 422: require_errors.HTTPValidationError });
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* List event types with aggregated statistics.
|
|
39
|
+
*
|
|
40
|
+
* **Scopes**: `events:read` `events:write`
|
|
41
|
+
*
|
|
42
|
+
* @param query - Query parameters
|
|
43
|
+
* @param requestOptions - Request options
|
|
44
|
+
* @returns {AsyncGenerator<EventTypeWithStats>} A generator that yields items of type EventTypeWithStats.
|
|
45
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
46
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
47
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
48
|
+
* @throws {HTTPValidationError} Validation Error
|
|
49
|
+
*/
|
|
50
|
+
const iterListEventTypes = (client) => {
|
|
51
|
+
return async function* (query, requestOptions) {
|
|
52
|
+
let page;
|
|
53
|
+
page = query?.page ?? 1;
|
|
54
|
+
let limit;
|
|
55
|
+
limit = query?.limit;
|
|
56
|
+
while (true) {
|
|
57
|
+
const response = await listEventTypes(client)({
|
|
58
|
+
...query,
|
|
59
|
+
page,
|
|
60
|
+
limit
|
|
61
|
+
}, requestOptions);
|
|
62
|
+
for (const item of response.items) yield item;
|
|
63
|
+
if (page >= response.pagination.max_page) break;
|
|
64
|
+
page++;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
const updateEventTypes = (client) => {
|
|
69
|
+
/**
|
|
70
|
+
* Update an event type's label.
|
|
71
|
+
*
|
|
72
|
+
* **Scopes**: `events:write`
|
|
73
|
+
*
|
|
74
|
+
* @param id - The event type ID.
|
|
75
|
+
* @param body - Request body
|
|
76
|
+
* @param requestOptions - Request options
|
|
77
|
+
* @returns {EventType}
|
|
78
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
79
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
80
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
81
|
+
* @throws {EventTypesUpdate404Error} Not Found
|
|
82
|
+
* @throws {HTTPValidationError} Validation Error
|
|
83
|
+
*/
|
|
84
|
+
return async (id, body, requestOptions) => {
|
|
85
|
+
const pathParams = { id };
|
|
86
|
+
const request = client.buildRequest("PATCH", "/v1/event-types/{id}", pathParams, {}, body);
|
|
87
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
88
|
+
return client.parseResponse(response, "json", {
|
|
89
|
+
404: require_errors.EventTypesUpdate404Error,
|
|
90
|
+
422: require_errors.HTTPValidationError
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
function createEventTypesService(client) {
|
|
95
|
+
return {
|
|
96
|
+
list: listEventTypes(client),
|
|
97
|
+
update: updateEventTypes(client),
|
|
98
|
+
iterList: iterListEventTypes(client)
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
exports.createEventTypesService = createEventTypesService;
|
|
103
|
+
exports.iterListEventTypes = iterListEventTypes;
|
|
104
|
+
exports.listEventTypes = listEventTypes;
|
|
105
|
+
exports.updateEventTypes = updateEventTypes;
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=event_types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event_types.cjs","names":["HTTPValidationError","EventTypesUpdate404Error"],"sources":["../../../src/2027-01/services/event_types.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../base\";\nimport type {\n EventSource,\n EventType,\n EventTypeUpdate,\n EventTypeWithStats,\n EventTypesSortProperty,\n ListResourceEventTypeWithStats,\n} from \"../models\";\n\nimport { EventTypesUpdate404Error, HTTPValidationError } from \"../errors\";\n\nexport const listEventTypes = (client: ClientBase) => {\n /**\n * List event types with aggregated statistics.\n *\n * **Scopes**: `events:read` `events:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {ListResourceEventTypeWithStats}\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 {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n organization_id?: string | string[] | null;\n customer_id?: string | string[] | null;\n external_customer_id?: string | string[] | null;\n query?: string | null;\n root_events?: boolean;\n parent_id?: string | null;\n source?: EventSource | null;\n page?: number;\n limit?: number;\n sorting?: EventTypesSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<ListResourceEventTypeWithStats> => {\n const pathParams = {};\n const queryParams = {\n organization_id: query?.organization_id,\n customer_id: query?.customer_id,\n external_customer_id: query?.external_customer_id,\n query: query?.query,\n root_events: query?.root_events,\n parent_id: query?.parent_id,\n source: query?.source,\n page: query?.page ?? 1,\n limit: query?.limit ?? 10,\n sorting: query?.sorting ?? [\"-last_seen\"],\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/event-types/\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<ListResourceEventTypeWithStats>(response, \"json\", {\n 422: HTTPValidationError,\n });\n };\n};\n/**\n * List event types with aggregated statistics.\n *\n * **Scopes**: `events:read` `events:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {AsyncGenerator<EventTypeWithStats>} A generator that yields items of type EventTypeWithStats.\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 {HTTPValidationError} Validation Error\n */\nexport const iterListEventTypes = (client: ClientBase) => {\n return async function* (\n query?: {\n organization_id?: string | string[] | null;\n customer_id?: string | string[] | null;\n external_customer_id?: string | string[] | null;\n query?: string | null;\n root_events?: boolean;\n parent_id?: string | null;\n source?: EventSource | null;\n page?: number;\n limit?: number;\n sorting?: EventTypesSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): AsyncGenerator<EventTypeWithStats> {\n let page: number;\n page = query?.page ?? 1;\n let limit: number | undefined;\n limit = query?.limit;\n\n while (true) {\n const response = await listEventTypes(client)({ ...query, page, limit }, requestOptions);\n for (const item of response.items) {\n yield item;\n }\n if (page >= response.pagination.max_page) {\n break;\n }\n page++;\n }\n };\n};\nexport const updateEventTypes = (client: ClientBase) => {\n /**\n * Update an event type's label.\n *\n * **Scopes**: `events:write`\n *\n * @param id - The event type ID.\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {EventType}\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 {EventTypesUpdate404Error} Not Found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n id: string,\n body: EventTypeUpdate,\n requestOptions?: RequestOptions,\n ): Promise<EventType> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"PATCH\",\n \"/v1/event-types/{id}\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<EventType>(response, \"json\", {\n 404: EventTypesUpdate404Error,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createEventTypesService(client: ClientBase) {\n return {\n list: listEventTypes(client),\n update: updateEventTypes(client),\n iterList: iterListEventTypes(client),\n };\n}\n\nexport type EventTypes = ReturnType<typeof createEventTypesService>;\n"],"mappings":";;;AAYA,MAAa,kBAAkB,WAAuB;;;;;;;;;;;;;;CAcpD,OAAO,OACL,OAYA,mBAC4C;EAC5C,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,iBAAiB,OAAO;GACxB,aAAa,OAAO;GACpB,sBAAsB,OAAO;GAC7B,OAAO,OAAO;GACd,aAAa,OAAO;GACpB,WAAW,OAAO;GAClB,QAAQ,OAAO;GACf,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;GACvB,SAAS,OAAO,WAAW,CAAC,YAAY;EAC1C;EACA,MAAM,UAAU,OAAO,aACrB,OACA,oBACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA8C,UAAU,QAAQ,EAC5E,KAAKA,eAAAA,oBACP,CAAC;CACH;AACF;;;;;;;;;;;;;;AAcA,MAAa,sBAAsB,WAAuB;CACxD,OAAO,iBACL,OAYA,gBACoC;EACpC,IAAI;EACJ,OAAO,OAAO,QAAQ;EACtB,IAAI;EACJ,QAAQ,OAAO;EAEf,OAAO,MAAM;GACX,MAAM,WAAW,MAAM,eAAe,MAAM,CAAC,CAAC;IAAE,GAAG;IAAO;IAAM;GAAM,GAAG,cAAc;GACvF,KAAK,MAAM,QAAQ,SAAS,OAC1B,MAAM;GAER,IAAI,QAAQ,SAAS,WAAW,UAC9B;GAEF;EACF;CACF;AACF;AACA,MAAa,oBAAoB,WAAuB;;;;;;;;;;;;;;;;CAgBtD,OAAO,OACL,IACA,MACA,mBACuB;EACvB,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,SACA,wBACA,YACA,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyB,UAAU,QAAQ;GACvD,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AAEA,SAAgB,wBAAwB,QAAoB;CAC1D,OAAO;EACL,MAAM,eAAe,MAAM;EAC3B,QAAQ,iBAAiB,MAAM;EAC/B,UAAU,mBAAmB,MAAM;CACrC;AACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.cjs";
|
|
2
|
+
import { $t as EventType, Qt as EventSource, Un as ListResourceEventTypeWithStats, en as EventTypeUpdate, nn as EventTypesSortProperty, tn as EventTypeWithStats } from "../../models-COhG3nD4.cjs";
|
|
3
|
+
//#region src/2027-01/services/event_types.d.ts
|
|
4
|
+
declare const listEventTypes: (client: ClientBase) => (query?: {
|
|
5
|
+
organization_id?: string | string[] | null;
|
|
6
|
+
customer_id?: string | string[] | null;
|
|
7
|
+
external_customer_id?: string | string[] | null;
|
|
8
|
+
query?: string | null;
|
|
9
|
+
root_events?: boolean;
|
|
10
|
+
parent_id?: string | null;
|
|
11
|
+
source?: EventSource | null;
|
|
12
|
+
page?: number;
|
|
13
|
+
limit?: number;
|
|
14
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
15
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceEventTypeWithStats>;
|
|
16
|
+
/**
|
|
17
|
+
* List event types with aggregated statistics.
|
|
18
|
+
*
|
|
19
|
+
* **Scopes**: `events:read` `events:write`
|
|
20
|
+
*
|
|
21
|
+
* @param query - Query parameters
|
|
22
|
+
* @param requestOptions - Request options
|
|
23
|
+
* @returns {AsyncGenerator<EventTypeWithStats>} A generator that yields items of type EventTypeWithStats.
|
|
24
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
25
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
26
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
27
|
+
* @throws {HTTPValidationError} Validation Error
|
|
28
|
+
*/
|
|
29
|
+
declare const iterListEventTypes: (client: ClientBase) => (query?: {
|
|
30
|
+
organization_id?: string | string[] | null;
|
|
31
|
+
customer_id?: string | string[] | null;
|
|
32
|
+
external_customer_id?: string | string[] | null;
|
|
33
|
+
query?: string | null;
|
|
34
|
+
root_events?: boolean;
|
|
35
|
+
parent_id?: string | null;
|
|
36
|
+
source?: EventSource | null;
|
|
37
|
+
page?: number;
|
|
38
|
+
limit?: number;
|
|
39
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
40
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<EventTypeWithStats>;
|
|
41
|
+
declare const updateEventTypes: (client: ClientBase) => (id: string, body: EventTypeUpdate, requestOptions?: RequestOptions) => Promise<EventType>;
|
|
42
|
+
declare function createEventTypesService(client: ClientBase): {
|
|
43
|
+
list: (query?: {
|
|
44
|
+
organization_id?: string | string[] | null;
|
|
45
|
+
customer_id?: string | string[] | null;
|
|
46
|
+
external_customer_id?: string | string[] | null;
|
|
47
|
+
query?: string | null;
|
|
48
|
+
root_events?: boolean;
|
|
49
|
+
parent_id?: string | null;
|
|
50
|
+
source?: EventSource | null;
|
|
51
|
+
page?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
54
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceEventTypeWithStats>;
|
|
55
|
+
update: (id: string, body: EventTypeUpdate, requestOptions?: RequestOptions) => Promise<EventType>;
|
|
56
|
+
iterList: (query?: {
|
|
57
|
+
organization_id?: string | string[] | null;
|
|
58
|
+
customer_id?: string | string[] | null;
|
|
59
|
+
external_customer_id?: string | string[] | null;
|
|
60
|
+
query?: string | null;
|
|
61
|
+
root_events?: boolean;
|
|
62
|
+
parent_id?: string | null;
|
|
63
|
+
source?: EventSource | null;
|
|
64
|
+
page?: number;
|
|
65
|
+
limit?: number;
|
|
66
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
67
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<EventTypeWithStats>;
|
|
68
|
+
};
|
|
69
|
+
type EventTypes = ReturnType<typeof createEventTypesService>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { EventTypes, createEventTypesService, iterListEventTypes, listEventTypes, updateEventTypes };
|
|
72
|
+
//# sourceMappingURL=event_types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event_types.d.cts","names":[],"sources":["../../../src/2027-01/services/event_types.ts"],"mappings":";;;cAYa,iBAAkB,QAAQ,gBAenC;EACE;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;cAwCA,qBAAsB,QAAQ,gBAEvC;EACE;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,mBAAoB,QAAQ,gBAiBrC,YACA,MAAM,iBACN,iBAAiB,mBAChB,QAAQ;iBAoBG,wBAAwB,QAAQ;EA9HpC,OAAA;IACN;IACA;IACA;IACA;IACA;IACA;IACA,SAAS;IACT;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EA0FL,SAAA,YAAM,MACJ,iBAAe,iBACJ,mBAChB,QAAQ;EAnDD,WAAA;IACN;IACA;IACA;IACA;IACA;IACA;IACA,SAAS;IACT;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KAkER,aAAa,kBAAkB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../base-C5EE71lz.mjs";
|
|
2
|
+
import { $t as EventType, Qt as EventSource, Un as ListResourceEventTypeWithStats, en as EventTypeUpdate, nn as EventTypesSortProperty, tn as EventTypeWithStats } from "../../models-COhG3nD4.mjs";
|
|
3
|
+
//#region src/2027-01/services/event_types.d.ts
|
|
4
|
+
declare const listEventTypes: (client: ClientBase) => (query?: {
|
|
5
|
+
organization_id?: string | string[] | null;
|
|
6
|
+
customer_id?: string | string[] | null;
|
|
7
|
+
external_customer_id?: string | string[] | null;
|
|
8
|
+
query?: string | null;
|
|
9
|
+
root_events?: boolean;
|
|
10
|
+
parent_id?: string | null;
|
|
11
|
+
source?: EventSource | null;
|
|
12
|
+
page?: number;
|
|
13
|
+
limit?: number;
|
|
14
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
15
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceEventTypeWithStats>;
|
|
16
|
+
/**
|
|
17
|
+
* List event types with aggregated statistics.
|
|
18
|
+
*
|
|
19
|
+
* **Scopes**: `events:read` `events:write`
|
|
20
|
+
*
|
|
21
|
+
* @param query - Query parameters
|
|
22
|
+
* @param requestOptions - Request options
|
|
23
|
+
* @returns {AsyncGenerator<EventTypeWithStats>} A generator that yields items of type EventTypeWithStats.
|
|
24
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
25
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
26
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
27
|
+
* @throws {HTTPValidationError} Validation Error
|
|
28
|
+
*/
|
|
29
|
+
declare const iterListEventTypes: (client: ClientBase) => (query?: {
|
|
30
|
+
organization_id?: string | string[] | null;
|
|
31
|
+
customer_id?: string | string[] | null;
|
|
32
|
+
external_customer_id?: string | string[] | null;
|
|
33
|
+
query?: string | null;
|
|
34
|
+
root_events?: boolean;
|
|
35
|
+
parent_id?: string | null;
|
|
36
|
+
source?: EventSource | null;
|
|
37
|
+
page?: number;
|
|
38
|
+
limit?: number;
|
|
39
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
40
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<EventTypeWithStats>;
|
|
41
|
+
declare const updateEventTypes: (client: ClientBase) => (id: string, body: EventTypeUpdate, requestOptions?: RequestOptions) => Promise<EventType>;
|
|
42
|
+
declare function createEventTypesService(client: ClientBase): {
|
|
43
|
+
list: (query?: {
|
|
44
|
+
organization_id?: string | string[] | null;
|
|
45
|
+
customer_id?: string | string[] | null;
|
|
46
|
+
external_customer_id?: string | string[] | null;
|
|
47
|
+
query?: string | null;
|
|
48
|
+
root_events?: boolean;
|
|
49
|
+
parent_id?: string | null;
|
|
50
|
+
source?: EventSource | null;
|
|
51
|
+
page?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
54
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceEventTypeWithStats>;
|
|
55
|
+
update: (id: string, body: EventTypeUpdate, requestOptions?: RequestOptions) => Promise<EventType>;
|
|
56
|
+
iterList: (query?: {
|
|
57
|
+
organization_id?: string | string[] | null;
|
|
58
|
+
customer_id?: string | string[] | null;
|
|
59
|
+
external_customer_id?: string | string[] | null;
|
|
60
|
+
query?: string | null;
|
|
61
|
+
root_events?: boolean;
|
|
62
|
+
parent_id?: string | null;
|
|
63
|
+
source?: EventSource | null;
|
|
64
|
+
page?: number;
|
|
65
|
+
limit?: number;
|
|
66
|
+
sorting?: EventTypesSortProperty[] | null;
|
|
67
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<EventTypeWithStats>;
|
|
68
|
+
};
|
|
69
|
+
type EventTypes = ReturnType<typeof createEventTypesService>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { EventTypes, createEventTypesService, iterListEventTypes, listEventTypes, updateEventTypes };
|
|
72
|
+
//# sourceMappingURL=event_types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event_types.d.mts","names":[],"sources":["../../../src/2027-01/services/event_types.ts"],"mappings":";;;cAYa,iBAAkB,QAAQ,gBAenC;EACE;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;cAwCA,qBAAsB,QAAQ,gBAEvC;EACE;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,mBAAoB,QAAQ,gBAiBrC,YACA,MAAM,iBACN,iBAAiB,mBAChB,QAAQ;iBAoBG,wBAAwB,QAAQ;EA9HpC,OAAA;IACN;IACA;IACA;IACA;IACA;IACA;IACA,SAAS;IACT;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EA0FL,SAAA,YAAM,MACJ,iBAAe,iBACJ,mBAChB,QAAQ;EAnDD,WAAA;IACN;IACA;IACA;IACA;IACA;IACA;IACA,SAAS;IACT;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KAkER,aAAa,kBAAkB"}
|