@zonastery/bursar 2.0.2 → 2.0.4
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/README.md +1 -0
- package/dist/billing/auto-recharge-port.d.ts +3 -2
- package/dist/billing/auto-recharge-port.d.ts.map +1 -1
- package/dist/billing/auto-recharge-port.js.map +1 -1
- package/dist/billing/auto-recharge-service.d.ts +1 -1
- package/dist/billing/auto-recharge-service.d.ts.map +1 -1
- package/dist/billing/auto-recharge-service.js +5 -4
- package/dist/billing/auto-recharge-service.js.map +1 -1
- package/dist/billing/billing-service.d.ts +3 -2
- package/dist/billing/billing-service.d.ts.map +1 -1
- package/dist/billing/billing-service.js +2 -10
- package/dist/billing/billing-service.js.map +1 -1
- package/dist/billing/billing-store.d.ts +7 -7
- package/dist/billing/billing-store.d.ts.map +1 -1
- package/dist/billing/billing-store.js.map +1 -1
- package/dist/billing/contracts.d.ts +10 -8
- package/dist/billing/contracts.d.ts.map +1 -1
- package/dist/billing/contracts.js.map +1 -1
- package/dist/billing/event-handlers.d.ts +5 -9
- package/dist/billing/event-handlers.d.ts.map +1 -1
- package/dist/billing/event-handlers.js +191 -285
- package/dist/billing/event-handlers.js.map +1 -1
- package/dist/billing/event-processor.d.ts +1 -1
- package/dist/billing/event-processor.d.ts.map +1 -1
- package/dist/billing/event-processor.js +42 -21
- package/dist/billing/event-processor.js.map +1 -1
- package/dist/billing/financial-event-handlers.d.ts +3 -9
- package/dist/billing/financial-event-handlers.d.ts.map +1 -1
- package/dist/billing/financial-event-handlers.js +10 -12
- package/dist/billing/financial-event-handlers.js.map +1 -1
- package/dist/billing/index.d.ts +1 -1
- package/dist/billing/index.d.ts.map +1 -1
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/management.d.ts +3 -2
- package/dist/billing/management.d.ts.map +1 -1
- package/dist/billing/management.js.map +1 -1
- package/dist/billing/postgres/repositories/auto-recharge.d.ts +2 -1
- package/dist/billing/postgres/repositories/auto-recharge.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/auto-recharge.js +59 -41
- package/dist/billing/postgres/repositories/auto-recharge.js.map +1 -1
- package/dist/billing/postgres/repositories/dispute.d.ts +2 -1
- package/dist/billing/postgres/repositories/dispute.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/dispute.js.map +1 -1
- package/dist/billing/postgres/repositories/event.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/event.js +33 -1
- package/dist/billing/postgres/repositories/event.js.map +1 -1
- package/dist/billing/postgres/repositories/invoice.d.ts +2 -1
- package/dist/billing/postgres/repositories/invoice.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/invoice.js +8 -12
- package/dist/billing/postgres/repositories/invoice.js.map +1 -1
- package/dist/billing/postgres/repositories/offer.d.ts +1 -1
- package/dist/billing/postgres/repositories/offer.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/offer.js +6 -1
- package/dist/billing/postgres/repositories/offer.js.map +1 -1
- package/dist/billing/postgres/repositories/payment.d.ts +1 -1
- package/dist/billing/postgres/repositories/payment.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/payment.js +1 -1
- package/dist/billing/postgres/repositories/payment.js.map +1 -1
- package/dist/billing/postgres/repositories/subscription-change.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/subscription-change.js +1 -9
- package/dist/billing/postgres/repositories/subscription-change.js.map +1 -1
- package/dist/billing/postgres/repositories/subscription.d.ts +6 -6
- package/dist/billing/postgres/repositories/subscription.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/subscription.js +29 -30
- package/dist/billing/postgres/repositories/subscription.js.map +1 -1
- package/dist/billing/postgres/repositories/topup.d.ts +1 -1
- package/dist/billing/postgres/repositories/topup.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/topup.js +1 -1
- package/dist/billing/postgres/repositories/topup.js.map +1 -1
- package/dist/billing/postgres/store.d.ts +7 -6
- package/dist/billing/postgres/store.d.ts.map +1 -1
- package/dist/billing/postgres/store.js +31 -19
- package/dist/billing/postgres/store.js.map +1 -1
- package/dist/billing/types/auto-recharge.d.ts +3 -2
- package/dist/billing/types/auto-recharge.d.ts.map +1 -1
- package/dist/billing/types/auto-recharge.js.map +1 -1
- package/dist/billing/types/catalog.d.ts +1 -1
- package/dist/billing/types/catalog.d.ts.map +1 -1
- package/dist/billing/types/catalog.js.map +1 -1
- package/dist/billing/types/documents.d.ts +3 -2
- package/dist/billing/types/documents.d.ts.map +1 -1
- package/dist/billing/types/documents.js.map +1 -1
- package/dist/billing/types/events.d.ts +11 -2
- package/dist/billing/types/events.d.ts.map +1 -1
- package/dist/billing/types/events.js +73 -39
- package/dist/billing/types/events.js.map +1 -1
- package/dist/billing/types/subscriptions.d.ts +4 -1
- package/dist/billing/types/subscriptions.d.ts.map +1 -1
- package/dist/billing/types/subscriptions.js.map +1 -1
- package/dist/breakdown.d.ts +4 -3
- package/dist/breakdown.d.ts.map +1 -1
- package/dist/breakdown.js +1 -1
- package/dist/breakdown.js.map +1 -1
- package/dist/bursar.d.ts.map +1 -1
- package/dist/bursar.js +4 -3
- package/dist/bursar.js.map +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +45 -42
- package/dist/catalog.js.map +1 -1
- package/dist/commerce/provider-registry.d.ts.map +1 -1
- package/dist/commerce/provider-registry.js +11 -6
- package/dist/commerce/provider-registry.js.map +1 -1
- package/dist/commerce/service.d.ts.map +1 -1
- package/dist/commerce/service.js +70 -68
- package/dist/commerce/service.js.map +1 -1
- package/dist/commerce/types.d.ts +1 -1
- package/dist/commerce/types.d.ts.map +1 -1
- package/dist/commerce/types.js.map +1 -1
- package/dist/config/parse-access.d.ts +5 -2
- package/dist/config/parse-access.d.ts.map +1 -1
- package/dist/config/parse-access.js +60 -41
- package/dist/config/parse-access.js.map +1 -1
- package/dist/config/parse-commerce.d.ts +2 -1
- package/dist/config/parse-commerce.d.ts.map +1 -1
- package/dist/config/parse-commerce.js +49 -29
- package/dist/config/parse-commerce.js.map +1 -1
- package/dist/config/parse-credits.d.ts +2 -1
- package/dist/config/parse-credits.d.ts.map +1 -1
- package/dist/config/parse-credits.js +39 -23
- package/dist/config/parse-credits.js.map +1 -1
- package/dist/config/parse-plans.d.ts +7 -2
- package/dist/config/parse-plans.d.ts.map +1 -1
- package/dist/config/parse-plans.js +49 -22
- package/dist/config/parse-plans.js.map +1 -1
- package/dist/config/parse-pricing.d.ts +2 -1
- package/dist/config/parse-pricing.d.ts.map +1 -1
- package/dist/config/parse-pricing.js +41 -31
- package/dist/config/parse-pricing.js.map +1 -1
- package/dist/config/parse-utils.d.ts +16 -12
- package/dist/config/parse-utils.d.ts.map +1 -1
- package/dist/config/parse-utils.js +91 -28
- package/dist/config/parse-utils.js.map +1 -1
- package/dist/config/types.d.ts +1 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config.d.ts +6 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +66 -36
- package/dist/config.js.map +1 -1
- package/dist/credits/amount.d.ts +2 -2
- package/dist/credits/amount.d.ts.map +1 -1
- package/dist/credits/amount.js +6 -5
- package/dist/credits/amount.js.map +1 -1
- package/dist/credits/catalog-runtime.d.ts +1 -1
- package/dist/credits/catalog-runtime.d.ts.map +1 -1
- package/dist/credits/catalog-runtime.js +3 -4
- package/dist/credits/catalog-runtime.js.map +1 -1
- package/dist/credits/events.d.ts +12 -1
- package/dist/credits/events.d.ts.map +1 -1
- package/dist/credits/events.js +35 -21
- package/dist/credits/events.js.map +1 -1
- package/dist/credits/lease-workflow.d.ts +3 -2
- package/dist/credits/lease-workflow.d.ts.map +1 -1
- package/dist/credits/lease-workflow.js +4 -3
- package/dist/credits/lease-workflow.js.map +1 -1
- package/dist/credits/low-balance-monitor.d.ts +3 -2
- package/dist/credits/low-balance-monitor.d.ts.map +1 -1
- package/dist/credits/low-balance-monitor.js +1 -1
- package/dist/credits/low-balance-monitor.js.map +1 -1
- package/dist/credits/postgres/repositories/analytics.d.ts +2 -2
- package/dist/credits/postgres/repositories/analytics.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/analytics.js +14 -6
- package/dist/credits/postgres/repositories/analytics.js.map +1 -1
- package/dist/credits/postgres/repositories/balance.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/balance.js +7 -7
- package/dist/credits/postgres/repositories/balance.js.map +1 -1
- package/dist/credits/postgres/repositories/bucket.js +1 -1
- package/dist/credits/postgres/repositories/bucket.js.map +1 -1
- package/dist/credits/postgres/repositories/catalog.d.ts +4 -3
- package/dist/credits/postgres/repositories/catalog.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/catalog.js +4 -3
- package/dist/credits/postgres/repositories/catalog.js.map +1 -1
- package/dist/credits/postgres/repositories/deduction.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/deduction.js +2 -2
- package/dist/credits/postgres/repositories/deduction.js.map +1 -1
- package/dist/credits/postgres/repositories/lease.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/lease.js +4 -2
- package/dist/credits/postgres/repositories/lease.js.map +1 -1
- package/dist/credits/postgres/repositories/plan.d.ts +1 -1
- package/dist/credits/postgres/repositories/team.d.ts +2 -1
- package/dist/credits/postgres/repositories/team.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/team.js +19 -5
- package/dist/credits/postgres/repositories/team.js.map +1 -1
- package/dist/credits/postgres/store.d.ts +6 -5
- package/dist/credits/postgres/store.d.ts.map +1 -1
- package/dist/credits/postgres/store.js +23 -13
- package/dist/credits/postgres/store.js.map +1 -1
- package/dist/credits/postgres/value-mappers.d.ts +5 -4
- package/dist/credits/postgres/value-mappers.d.ts.map +1 -1
- package/dist/credits/postgres/value-mappers.js +11 -12
- package/dist/credits/postgres/value-mappers.js.map +1 -1
- package/dist/credits/service-errors.d.ts +1 -1
- package/dist/credits/service-errors.d.ts.map +1 -1
- package/dist/credits/service-errors.js +1 -1
- package/dist/credits/service-errors.js.map +1 -1
- package/dist/credits/service-types.d.ts +4 -1
- package/dist/credits/service-types.d.ts.map +1 -1
- package/dist/credits/service-types.js.map +1 -1
- package/dist/credits/service.d.ts +5 -0
- package/dist/credits/service.d.ts.map +1 -1
- package/dist/credits/service.js +30 -10
- package/dist/credits/service.js.map +1 -1
- package/dist/credits/store.d.ts +15 -5
- package/dist/credits/store.d.ts.map +1 -1
- package/dist/credits/store.js +1 -1
- package/dist/credits/store.js.map +1 -1
- package/dist/credits/types/account.d.ts +5 -4
- package/dist/credits/types/account.d.ts.map +1 -1
- package/dist/credits/types/account.js.map +1 -1
- package/dist/credits/types/catalog.d.ts +2 -1
- package/dist/credits/types/catalog.d.ts.map +1 -1
- package/dist/credits/types/catalog.js.map +1 -1
- package/dist/credits/types/grants.d.ts.map +1 -1
- package/dist/credits/types/grants.js.map +1 -1
- package/dist/credits/types/ledger.d.ts +3 -2
- package/dist/credits/types/ledger.d.ts.map +1 -1
- package/dist/credits/types/ledger.js.map +1 -1
- package/dist/credits/types/teams.d.ts +1 -0
- package/dist/credits/types/teams.d.ts.map +1 -1
- package/dist/credits/types/teams.js.map +1 -1
- package/dist/engine.d.ts +2 -2
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +40 -11
- package/dist/engine.js.map +1 -1
- package/dist/errors.d.ts +10 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +50 -9
- package/dist/errors.js.map +1 -1
- package/dist/expr/ast.d.ts.map +1 -1
- package/dist/expr/ast.js.map +1 -1
- package/dist/expr/evaluator.d.ts +1 -1
- package/dist/expr/evaluator.d.ts.map +1 -1
- package/dist/expr/evaluator.js +1 -1
- package/dist/expr/evaluator.js.map +1 -1
- package/dist/expr/parser.d.ts.map +1 -1
- package/dist/expr/parser.js.map +1 -1
- package/dist/expr/tokenizer.d.ts.map +1 -1
- package/dist/expr/tokenizer.js +34 -12
- package/dist/expr/tokenizer.js.map +1 -1
- package/dist/expr.d.ts +1 -1
- package/dist/expr.d.ts.map +1 -1
- package/dist/expr.js +13 -7
- package/dist/expr.js.map +1 -1
- package/dist/generated/pricing-config.types.d.ts.map +1 -1
- package/dist/generated/pricing-config.types.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/better-auth.d.ts +4 -1
- package/dist/integrations/better-auth.d.ts.map +1 -1
- package/dist/integrations/better-auth.js +7 -4
- package/dist/integrations/better-auth.js.map +1 -1
- package/dist/load-config-file.d.ts +2 -1
- package/dist/load-config-file.d.ts.map +1 -1
- package/dist/load-config-file.js +19 -13
- package/dist/load-config-file.js.map +1 -1
- package/dist/metrics.d.ts +3 -2
- package/dist/metrics.d.ts.map +1 -1
- package/dist/metrics.js.map +1 -1
- package/dist/node.d.ts +6 -3
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +1 -0
- package/dist/node.js.map +1 -1
- package/dist/providers/_shared.d.ts +11 -8
- package/dist/providers/_shared.d.ts.map +1 -1
- package/dist/providers/_shared.js +26 -17
- package/dist/providers/_shared.js.map +1 -1
- package/dist/providers/dodo/better-auth-core.d.ts +32 -0
- package/dist/providers/dodo/better-auth-core.d.ts.map +1 -0
- package/dist/providers/dodo/better-auth-core.js +14 -0
- package/dist/providers/dodo/better-auth-core.js.map +1 -0
- package/dist/providers/dodo/better-auth.d.ts +5 -7
- package/dist/providers/dodo/better-auth.d.ts.map +1 -1
- package/dist/providers/dodo/better-auth.js +16 -13
- package/dist/providers/dodo/better-auth.js.map +1 -1
- package/dist/providers/dodo/client-contract.d.ts +16 -22
- package/dist/providers/dodo/client-contract.d.ts.map +1 -1
- package/dist/providers/dodo/client-contract.js.map +1 -1
- package/dist/providers/dodo/event-mapper.d.ts +7 -4
- package/dist/providers/dodo/event-mapper.d.ts.map +1 -1
- package/dist/providers/dodo/event-mapper.js +130 -106
- package/dist/providers/dodo/event-mapper.js.map +1 -1
- package/dist/providers/dodo/nextjs-core.d.ts +22 -0
- package/dist/providers/dodo/nextjs-core.d.ts.map +1 -0
- package/dist/providers/dodo/nextjs-core.js +14 -0
- package/dist/providers/dodo/nextjs-core.js.map +1 -0
- package/dist/providers/dodo/nextjs.d.ts +5 -7
- package/dist/providers/dodo/nextjs.d.ts.map +1 -1
- package/dist/providers/dodo/nextjs.js +11 -10
- package/dist/providers/dodo/nextjs.js.map +1 -1
- package/dist/providers/dodo/provider.d.ts +3 -3
- package/dist/providers/dodo/provider.d.ts.map +1 -1
- package/dist/providers/dodo/provider.js +76 -58
- package/dist/providers/dodo/provider.js.map +1 -1
- package/dist/providers/dodo/react-native-core.d.ts +56 -0
- package/dist/providers/dodo/react-native-core.d.ts.map +1 -0
- package/dist/providers/dodo/react-native-core.js +56 -0
- package/dist/providers/dodo/react-native-core.js.map +1 -0
- package/dist/providers/dodo/react-native.d.ts +6 -50
- package/dist/providers/dodo/react-native.d.ts.map +1 -1
- package/dist/providers/dodo/react-native.js +5 -49
- package/dist/providers/dodo/react-native.js.map +1 -1
- package/dist/providers/dodo/webhook-bridge.d.ts +4 -2
- package/dist/providers/dodo/webhook-bridge.d.ts.map +1 -1
- package/dist/providers/dodo/webhook-bridge.js.map +1 -1
- package/dist/providers/environment.d.ts +1 -1
- package/dist/providers/environment.d.ts.map +1 -1
- package/dist/providers/environment.js +4 -2
- package/dist/providers/environment.js.map +1 -1
- package/dist/providers/mock/provider.d.ts.map +1 -1
- package/dist/providers/mock/provider.js +5 -10
- package/dist/providers/mock/provider.js.map +1 -1
- package/dist/providers/stripe/event-mapper.d.ts.map +1 -1
- package/dist/providers/stripe/event-mapper.js +104 -12
- package/dist/providers/stripe/event-mapper.js.map +1 -1
- package/dist/providers/stripe/provider.d.ts.map +1 -1
- package/dist/providers/stripe/provider.js +100 -60
- package/dist/providers/stripe/provider.js.map +1 -1
- package/dist/providers/types.d.ts +0 -1
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/providers/types.js.map +1 -1
- package/dist/retry.d.ts.map +1 -1
- package/dist/retry.js +16 -9
- package/dist/retry.js.map +1 -1
- package/dist/shared/diagnostics.d.ts +10 -2
- package/dist/shared/diagnostics.d.ts.map +1 -1
- package/dist/shared/diagnostics.js +65 -6
- package/dist/shared/diagnostics.js.map +1 -1
- package/dist/shared/idempotency.d.ts +4 -3
- package/dist/shared/idempotency.d.ts.map +1 -1
- package/dist/shared/idempotency.js +21 -10
- package/dist/shared/idempotency.js.map +1 -1
- package/dist/shared/json.d.ts +28 -0
- package/dist/shared/json.d.ts.map +1 -0
- package/dist/shared/json.js +41 -0
- package/dist/shared/json.js.map +1 -0
- package/dist/shared/logger.d.ts +10 -4
- package/dist/shared/logger.d.ts.map +1 -1
- package/dist/shared/logger.js.map +1 -1
- package/dist/shared/postgres-client.d.ts +10 -5
- package/dist/shared/postgres-client.d.ts.map +1 -1
- package/dist/shared/postgres-client.js +80 -45
- package/dist/shared/postgres-client.js.map +1 -1
- package/dist/shared/postgres-errors.d.ts +1 -1
- package/dist/shared/postgres-errors.d.ts.map +1 -1
- package/dist/shared/postgres-errors.js +32 -31
- package/dist/shared/postgres-errors.js.map +1 -1
- package/dist/shared/postgres-types.d.ts +3 -2
- package/dist/shared/postgres-types.d.ts.map +1 -1
- package/dist/shared/postgres-types.js.map +1 -1
- package/dist/shared/postgres-validation.d.ts +7 -6
- package/dist/shared/postgres-validation.d.ts.map +1 -1
- package/dist/shared/postgres-validation.js +17 -10
- package/dist/shared/postgres-validation.js.map +1 -1
- package/dist/storage/adapters/clickhouse.d.ts +20 -6
- package/dist/storage/adapters/clickhouse.d.ts.map +1 -1
- package/dist/storage/adapters/clickhouse.js +150 -42
- package/dist/storage/adapters/clickhouse.js.map +1 -1
- package/dist/storage/adapters/s3.d.ts +67 -6
- package/dist/storage/adapters/s3.d.ts.map +1 -1
- package/dist/storage/adapters/s3.js +79 -26
- package/dist/storage/adapters/s3.js.map +1 -1
- package/dist/storage/diagnostics.d.ts +105 -0
- package/dist/storage/diagnostics.d.ts.map +1 -0
- package/dist/storage/diagnostics.js +228 -0
- package/dist/storage/diagnostics.js.map +1 -0
- package/dist/storage/maintenance.d.ts +88 -0
- package/dist/storage/maintenance.d.ts.map +1 -0
- package/dist/storage/maintenance.js +272 -0
- package/dist/storage/maintenance.js.map +1 -0
- package/dist/storage/outbox-worker.d.ts +21 -1
- package/dist/storage/outbox-worker.d.ts.map +1 -1
- package/dist/storage/outbox-worker.js +157 -28
- package/dist/storage/outbox-worker.js.map +1 -1
- package/dist/storage/ports.d.ts +52 -7
- package/dist/storage/ports.d.ts.map +1 -1
- package/dist/storage/ports.js.map +1 -1
- package/dist/storage/postgres-repository.d.ts +9 -2
- package/dist/storage/postgres-repository.d.ts.map +1 -1
- package/dist/storage/postgres-repository.js +97 -11
- package/dist/storage/postgres-repository.js.map +1 -1
- package/dist/storage/runtime.d.ts +20 -3
- package/dist/storage/runtime.d.ts.map +1 -1
- package/dist/storage/runtime.js +326 -156
- package/dist/storage/runtime.js.map +1 -1
- package/dist/telemetry/index.d.ts +41 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +118 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/opentelemetry.d.ts +25 -0
- package/dist/telemetry/opentelemetry.d.ts.map +1 -0
- package/dist/telemetry/opentelemetry.js +74 -0
- package/dist/telemetry/opentelemetry.js.map +1 -0
- package/package.json +24 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-config.types.d.ts","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC;AACxB,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B,MAAM,MAAM,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC;AAC/B,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,C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QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,cAAc,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,wBAAwB,CAAC,EAAE,sBAAsB,CAAC;IAClD,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-config.types.js","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG","sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type Version = 1;\nexport type DefaultPlan = string | null;\nexport type Unit = string;\nexport type Type = \"string\" | \"number\" | \"boolean\";\nexport type Required = boolean;\nexport type Extends = string | null;\nexport type Op = \"eq\";\nexport type Value = string | number | boolean;\nexport type Op1 = \"in\";\n/**\n * @minItems 1\n */\nexport type Values = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op2 = \"not_in\";\n/**\n * @minItems 1\n */\nexport type Values1 = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op3 = \"prefix\";\nexport type Value1 = string;\nexport type Op4 = \"range\";\nexport type Gt = string | null;\nexport type Gte = string | null;\nexport type Lt = string | null;\nexport type Lte = string | null;\nexport type Charge =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Type1 = \"flat\";\nexport type Amount = string;\nexport type Type2 = \"per_unit\";\nexport type Measure = string;\n/**\n * Credits charged for each unit_size units of the selected measure.\n */\nexport type Rate = string;\n/**\n * Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.\n */\nexport type UnitSize = string;\nexport type Type3 = \"package\";\nexport type Measure1 = string;\nexport type Units = string;\nexport type Amount1 = string;\nexport type Rounding = \"ceil\" | \"floor\" | \"nearest\";\nexport type Type4 = \"graduated\";\nexport type Measure2 = string;\n/**\n * @minItems 1\n */\nexport type Tiers = [GraduatedTier, ...GraduatedTier[]];\nexport type UpTo = string | null;\nexport type Rate1 = string;\nexport type Type5 = \"volume\";\nexport type Measure3 = string;\n/**\n * @minItems 1\n */\nexport type Tiers1 = [GraduatedTier, ...GraduatedTier[]];\nexport type Type6 = \"expression\";\nexport type Formula = string;\nexport type Type7 = \"sum\";\n/**\n * @minItems 1\n */\nexport type Components = [\n (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n ),\n ...(\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )[],\n];\nexport type Rules = PriceRule[];\nexport type Unmatched = RejectUnmatched | ChargeUnmatched;\nexport type Action = \"reject\";\nexport type Action1 = \"charge\";\nexport type Charge1 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Priority = number;\nexport type Expiry =\n NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry;\nexport type Type8 = \"never\";\nexport type Type9 = \"after_grant\";\nexport type Unit1 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count = number;\nexport type Timezone = string;\nexport type Type10 = \"end_of_window\";\nexport type Window = CalendarWindow | PlanAssignmentWindow;\nexport type Type11 = \"calendar\";\nexport type Unit2 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count1 = number;\nexport type Timezone1 = string;\nexport type Type12 = \"plan_assignment\";\nexport type Timezone2 = string;\nexport type Type13 = \"fixed_at\";\nexport type At = string;\nexport type Type14 = \"subscription_end\";\nexport type DefaultBucket = string | null;\nexport type Type15 = \"prepaid\";\nexport type Type16 = \"credit_line\";\nexport type Limit = string;\nexport type Trigger = \"account_created\" | \"referral_completed\" | \"promo_code_redeemed\" | \"manual\";\n/**\n * @minItems 1\n */\nexport type Awards = [GrantAward, ...GrantAward[]];\nexport type Recipient = \"subject\" | \"referrer\";\nexport type Amount2 = string;\nexport type Bucket = string;\nexport type Expiry1 =\n (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry) | null;\nexport type StartsAt = string | null;\nexport type EndsAt = string | null;\nexport type Regions = string[];\nexport type Plans = string[];\nexport type Regions1 = string[];\nexport type MaxAwardsPerSubject = number;\nexport type IdempotencyScope = \"subject\" | \"event\";\nexport type Currency = string;\nexport type UnitsPerMajor = string;\nexport type Type17 = \"boolean\";\nexport type Default = boolean;\nexport type Type18 = \"enum\";\n/**\n * @minItems 1\n */\nexport type Values2 = [string, ...string[]];\nexport type Default1 = string;\nexport type Type19 = \"integer\";\nexport type Default2 = number;\nexport type Minimum = number | null;\nexport type Maximum = number | null;\nexport type Type20 = \"string\";\nexport type Default3 = string;\nexport type Pattern = string | null;\nexport type MaxInFlight = number | null;\nexport type MaxInFlight1 = number;\nexport type DisplayName = string;\n/**\n * Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.\n */\nexport type Rank = number;\nexport type Description = string | null;\nexport type RateCard1 = string | null;\nexport type AllowedOperations = string[];\nexport type Amount3 = string;\n/**\n * Spend priority shared with credit buckets. Lower values are used first.\n */\nexport type Priority1 = number;\nexport type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Type21 = \"rolling\";\nexport type Unit3 = \"second\" | \"minute\" | \"hour\" | \"day\" | \"week\";\nexport type Count2 = number;\nexport type Operation = string;\nexport type Measure4 = string;\nexport type Limit1 = string;\nexport type Window2 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Enforcement = \"block\" | \"allow\";\nexport type EmitAtPercent = number[];\nexport type CreditPolicy = string | null;\nexport type AdmissionPolicy1 = string | null;\n/**\n * Default adoption timing for existing assignments when a newer catalog revision changes this plan. A catalog activation may override it for one release.\n */\nexport type DefaultRollout = \"immediate\" | \"next_renewal\" | \"new_assignments_only\";\nexport type Type22 = \"stripe\";\nexport type Type23 = \"dodo\";\nexport type Type24 = \"custom\";\nexport type Adapter = string;\nexport type DisplayName1 = string;\nexport type Description1 = string | null;\nexport type SortOrder = number;\nexport type AmountMinor = number;\nexport type Currency1 = string;\nexport type TaxBehavior = \"inclusive\" | \"exclusive\" | \"unspecified\";\nexport type Type25 = \"stripe_price\";\nexport type PriceId = string;\nexport type Type26 = \"dodo_product\";\nexport type ProductId = string;\nexport type Type27 = \"custom_object\";\nexport type ObjectKind = \"subscription\" | \"one_time\";\nexport type ExternalId = string;\nexport type Type28 = \"subscription\";\nexport type Plan = string;\nexport type Amount4 = string;\nexport type Bucket1 = string;\nexport type Renewal = \"replace_previous\" | \"accumulate\";\nexport type Expiry2 =\n NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry;\nexport type DisplayName2 = string;\nexport type Description2 = string | null;\nexport type SortOrder1 = number;\nexport type Type29 = \"topup\";\nexport type CreditsPerUnit = string;\nexport type Minimum1 = number;\nexport type Maximum1 = number;\nexport type Default4 = number;\nexport type Bucket2 = string;\nexport type Expiry3 =\n (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry) | null;\nexport type LotBehavior = \"separate_lots\" | \"merge_and_refresh\";\nexport type Effective = \"immediate\" | \"renewal\";\nexport type Proration = \"prorated\" | \"none\";\nexport type PaymentFailure = \"prevent_change\" | \"apply_change\";\n/**\n * @minItems 1\n */\nexport type EligibleTopups = [string, ...string[]];\nexport type Minimum2 = string;\nexport type Maximum2 = string;\nexport type Default5 = string;\n/**\n * Balance that rearms auto-recharge; it must exceed balance_below.maximum.\n */\nexport type RearmAbove = string;\nexport type Minimum3 = number;\nexport type Maximum3 = number;\nexport type Default6 = number;\nexport type MaxPurchases = number;\nexport type Window3 = CalendarWindow | RollingWindow;\nexport type MaxChargeMinor = number;\nexport type MaxConsecutiveFailures = number;\nexport type FailureAction = \"pause\";\n\nexport interface BursarConfig {\n version: Version;\n catalog?: CatalogConfig;\n /**\n * Usage operations, their measures and dimensions, and reusable rate cards.\n */\n pricing?: PricingConfig | null;\n credits: CreditsConfig;\n entitlements?: EntitlementsConfig;\n admission?: AdmissionConfig;\n plans?: Plans1;\n commerce?: CommerceConfig;\n}\n/**\n * Catalog-wide publication settings such as the default signup plan.\n */\nexport interface CatalogConfig {\n default_plan?: DefaultPlan;\n}\nexport interface PricingConfig {\n operations: Operations;\n rate_cards: RateCards;\n}\nexport interface Operations {\n [k: string]: OperationDefinition;\n}\nexport interface OperationDefinition {\n measures: Measures;\n dimensions?: Dimensions;\n}\nexport interface Measures {\n [k: string]: MeasureDefinition;\n}\nexport interface MeasureDefinition {\n unit: Unit;\n}\nexport interface Dimensions {\n [k: string]: DimensionDefinition;\n}\nexport interface DimensionDefinition {\n type: Type;\n required?: Required;\n}\nexport interface RateCards {\n [k: string]: RateCard;\n}\nexport interface RateCard {\n extends?: Extends;\n operations?: Operations1;\n}\nexport interface Operations1 {\n [k: string]: OperationPricing;\n}\nexport interface OperationPricing {\n rules?: Rules;\n unmatched: Unmatched;\n}\nexport interface PriceRule {\n when: When;\n charge: Charge;\n}\nexport interface When {\n [k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;\n}\nexport interface EqualMatcher {\n op: Op;\n value: Value;\n}\nexport interface InMatcher {\n op: Op1;\n values: Values;\n}\nexport interface NotInMatcher {\n op: Op2;\n values: Values1;\n}\nexport interface PrefixMatcher {\n op: Op3;\n value: Value1;\n}\nexport interface RangeMatcher {\n op: Op4;\n gt?: Gt;\n gte?: Gte;\n lt?: Lt;\n lte?: Lte;\n}\nexport interface FlatCharge {\n type: Type1;\n amount: Amount;\n}\nexport interface PerUnitCharge {\n type: Type2;\n measure: Measure;\n rate: Rate;\n unit_size?: UnitSize;\n}\nexport interface PackageCharge {\n type: Type3;\n measure: Measure1;\n units: Units;\n amount: Amount1;\n rounding?: Rounding;\n}\nexport interface GraduatedCharge {\n type: Type4;\n measure: Measure2;\n tiers: Tiers;\n}\nexport interface GraduatedTier {\n up_to?: UpTo;\n rate: Rate1;\n}\nexport interface VolumeCharge {\n type: Type5;\n measure: Measure3;\n tiers: Tiers1;\n}\nexport interface ExpressionCharge {\n type: Type6;\n formula: Formula;\n}\nexport interface SumCharge {\n type: Type7;\n components: Components;\n}\nexport interface RejectUnmatched {\n action: Action;\n}\nexport interface ChargeUnmatched {\n action: Action1;\n charge: Charge1;\n}\n/**\n * Credit buckets, spending policies, grants, and optional display conversion.\n */\nexport interface CreditsConfig {\n buckets?: Buckets;\n default_bucket?: DefaultBucket;\n policies?: Policies;\n grant_programs?: GrantPrograms;\n display?: CreditDisplay | null;\n}\nexport interface Buckets {\n [k: string]: BucketDefinition;\n}\nexport interface BucketDefinition {\n priority: Priority;\n expiry?: Expiry;\n}\nexport interface NeverExpiry {\n type: Type8;\n}\nexport interface AfterGrantExpiry {\n type: Type9;\n interval: BillingInterval;\n timezone?: Timezone;\n}\nexport interface BillingInterval {\n unit: Unit1;\n count?: Count;\n}\nexport interface EndOfWindowExpiry {\n type: Type10;\n window: Window;\n}\nexport interface CalendarWindow {\n type: Type11;\n unit: Unit2;\n count?: Count1;\n timezone?: Timezone1;\n}\nexport interface PlanAssignmentWindow {\n type: Type12;\n interval: BillingInterval;\n timezone?: Timezone2;\n}\nexport interface FixedExpiry {\n type: Type13;\n at: At;\n}\nexport interface SubscriptionEndExpiry {\n type: Type14;\n}\nexport interface Policies {\n [k: string]: PrepaidCreditPolicy | CreditLinePolicy;\n}\nexport interface PrepaidCreditPolicy {\n type: Type15;\n}\nexport interface CreditLinePolicy {\n type: Type16;\n limit: Limit;\n}\nexport interface GrantPrograms {\n [k: string]: GrantProgram;\n}\nexport interface GrantProgram {\n trigger: Trigger;\n awards: Awards;\n availability?: Availability | null;\n eligibility?: GrantEligibility;\n max_awards_per_subject?: MaxAwardsPerSubject;\n idempotency_scope?: IdempotencyScope;\n}\nexport interface GrantAward {\n recipient?: Recipient;\n amount: Amount2;\n bucket: Bucket;\n expiry?: Expiry1;\n}\nexport interface Availability {\n starts_at?: StartsAt;\n ends_at?: EndsAt;\n regions?: Regions;\n}\nexport interface GrantEligibility {\n plans?: Plans;\n regions?: Regions1;\n}\nexport interface CreditDisplay {\n currency: Currency;\n units_per_major: UnitsPerMajor;\n}\n/**\n * Typed feature definitions referenced by plan feature values.\n */\nexport interface EntitlementsConfig {\n features?: Features;\n}\nexport interface Features {\n [k: string]: BooleanFeature | EnumFeature | IntegerFeature | StringFeature;\n}\nexport interface BooleanFeature {\n type: Type17;\n default: Default;\n}\nexport interface EnumFeature {\n type: Type18;\n values: Values2;\n default: Default1;\n}\nexport interface IntegerFeature {\n type: Type19;\n default: Default2;\n minimum?: Minimum;\n maximum?: Maximum;\n}\nexport interface StringFeature {\n type: Type20;\n default: Default3;\n pattern?: Pattern;\n}\n/**\n * Reusable global and per-operation concurrency policies.\n */\nexport interface AdmissionConfig {\n policies?: Policies1;\n}\nexport interface Policies1 {\n [k: string]: AdmissionPolicy;\n}\nexport interface AdmissionPolicy {\n max_in_flight?: MaxInFlight;\n operations?: Operations2;\n}\nexport interface Operations2 {\n [k: string]: OperationAdmission;\n}\nexport interface OperationAdmission {\n max_in_flight: MaxInFlight1;\n}\n/**\n * Product plans keyed by stable snake_case identifiers.\n */\nexport interface Plans1 {\n [k: string]: PlanDefinition;\n}\nexport interface PlanDefinition {\n display_name: DisplayName;\n rank?: Rank;\n description?: Description;\n rate_card?: RateCard1;\n allowed_operations?: AllowedOperations;\n features?: Features1;\n credit_allowance?: CreditAllowance | null;\n quotas?: Quotas;\n credit_policy?: CreditPolicy;\n admission_policy?: AdmissionPolicy1;\n /**\n * Catalog evolution defaults. When omitted, subscription-backed plans use next_renewal and other plans use immediate; canonical output materializes the default.\n */\n evolution?: PlanEvolution | null;\n}\nexport interface Features1 {\n [k: string]: boolean | number | string;\n}\nexport interface CreditAllowance {\n amount: Amount3;\n priority: Priority1;\n window: Window1;\n}\nexport interface RollingWindow {\n type: Type21;\n duration: Duration;\n}\nexport interface Duration {\n unit: Unit3;\n count: Count2;\n}\nexport interface Quotas {\n [k: string]: QuotaDefinition;\n}\nexport interface QuotaDefinition {\n operation: Operation;\n measure: Measure4;\n limit: Limit1;\n window: Window2;\n enforcement: Enforcement;\n emit_at_percent?: EmitAtPercent;\n}\nexport interface PlanEvolution {\n default_rollout: DefaultRollout;\n}\n/**\n * Payment providers, subscription and top-up offers, and purchase guardrails.\n */\nexport interface CommerceConfig {\n providers?: Providers;\n offers?: Offers;\n subscription_changes?: SubscriptionChanges | null;\n auto_recharge?: AutoRechargeGuardrails | null;\n}\nexport interface Providers {\n [k: string]: StripeProvider | DodoProvider | CustomProvider;\n}\nexport interface StripeProvider {\n type: Type22;\n}\nexport interface DodoProvider {\n type: Type23;\n}\nexport interface CustomProvider {\n type: Type24;\n adapter: Adapter;\n}\nexport interface Offers {\n [k: string]: SubscriptionOffer | TopupOffer;\n}\nexport interface SubscriptionOffer {\n display_name: DisplayName1;\n description?: Description1;\n sort_order?: SortOrder;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers1;\n type: Type28;\n plan: Plan;\n billing_interval: BillingInterval;\n trial?: BillingInterval | null;\n cycle_grant?: CycleGrant | null;\n}\nexport interface OfferPrice {\n amount_minor: AmountMinor;\n currency: Currency1;\n tax_behavior?: TaxBehavior;\n}\nexport interface Providers1 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface StripePriceReference {\n type: Type25;\n price_id: PriceId;\n}\nexport interface DodoProductReference {\n type: Type26;\n product_id: ProductId;\n}\nexport interface CustomObjectReference {\n type: Type27;\n object_kind: ObjectKind;\n external_id: ExternalId;\n}\nexport interface CycleGrant {\n amount: Amount4;\n bucket: Bucket1;\n renewal: Renewal;\n expiry?: Expiry2;\n}\nexport interface TopupOffer {\n display_name: DisplayName2;\n description?: Description2;\n sort_order?: SortOrder1;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers2;\n type: Type29;\n credits_per_unit: CreditsPerUnit;\n quantity?: QuantityBounds;\n bucket: Bucket2;\n expiry?: Expiry3;\n lot_behavior?: LotBehavior;\n}\nexport interface Providers2 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface QuantityBounds {\n minimum?: Minimum1;\n maximum?: Maximum1;\n default?: Default4;\n}\nexport interface SubscriptionChanges {\n upgrade?: SubscriptionChangePolicy | null;\n downgrade?: SubscriptionChangePolicy | null;\n lateral?: SubscriptionChangePolicy | null;\n cadence_change?: SubscriptionChangePolicy | null;\n}\nexport interface SubscriptionChangePolicy {\n effective: Effective;\n proration: Proration;\n payment_failure?: PaymentFailure;\n}\nexport interface AutoRechargeGuardrails {\n eligible_topups: EligibleTopups;\n balance_below: DecimalRange;\n rearm_above: RearmAbove;\n quantity: IntegerRange;\n limits: AutoRechargeLimits;\n}\nexport interface DecimalRange {\n minimum: Minimum2;\n maximum: Maximum2;\n default: Default5;\n}\nexport interface IntegerRange {\n minimum: Minimum3;\n maximum: Maximum3;\n default: Default6;\n}\nexport interface AutoRechargeLimits {\n max_purchases: MaxPurchases;\n window: Window3;\n max_charge_minor: MaxChargeMinor;\n cooldown: Duration;\n max_consecutive_failures?: MaxConsecutiveFailures;\n failure_action?: FailureAction;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pricing-config.types.js","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG","sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type Version = 1;\nexport type DefaultPlan = string | null;\nexport type Unit = string;\nexport type Type = \"string\" | \"number\" | \"boolean\";\nexport type Required = boolean;\nexport type Extends = string | null;\nexport type Op = \"eq\";\nexport type Value = string | number | boolean;\nexport type Op1 = \"in\";\n/**\n * @minItems 1\n */\nexport type Values = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op2 = \"not_in\";\n/**\n * @minItems 1\n */\nexport type Values1 = [\n string | number | string | boolean,\n ...(string | number | string | boolean)[],\n];\nexport type Op3 = \"prefix\";\nexport type Value1 = string;\nexport type Op4 = \"range\";\nexport type Gt = string | null;\nexport type Gte = string | null;\nexport type Lt = string | null;\nexport type Lte = string | null;\nexport type Charge =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Type1 = \"flat\";\nexport type Amount = string;\nexport type Type2 = \"per_unit\";\nexport type Measure = string;\n/**\n * Credits charged for each unit_size units of the selected measure.\n */\nexport type Rate = string;\n/**\n * Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.\n */\nexport type UnitSize = string;\nexport type Type3 = \"package\";\nexport type Measure1 = string;\nexport type Units = string;\nexport type Amount1 = string;\nexport type Rounding = \"ceil\" | \"floor\" | \"nearest\";\nexport type Type4 = \"graduated\";\nexport type Measure2 = string;\n/**\n * @minItems 1\n */\nexport type Tiers = [GraduatedTier, ...GraduatedTier[]];\nexport type UpTo = string | null;\nexport type Rate1 = string;\nexport type Type5 = \"volume\";\nexport type Measure3 = string;\n/**\n * @minItems 1\n */\nexport type Tiers1 = [GraduatedTier, ...GraduatedTier[]];\nexport type Type6 = \"expression\";\nexport type Formula = string;\nexport type Type7 = \"sum\";\n/**\n * @minItems 1\n */\nexport type Components = [\n (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n ),\n ...(\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )[],\n];\nexport type Rules = PriceRule[];\nexport type Unmatched = RejectUnmatched | ChargeUnmatched;\nexport type Action = \"reject\";\nexport type Action1 = \"charge\";\nexport type Charge1 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Priority = number;\nexport type Expiry =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type Type8 = \"never\";\nexport type Type9 = \"after_grant\";\nexport type Unit1 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count = number;\nexport type Timezone = string;\nexport type Type10 = \"end_of_window\";\nexport type Window = CalendarWindow | PlanAssignmentWindow;\nexport type Type11 = \"calendar\";\nexport type Unit2 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count1 = number;\nexport type Timezone1 = string;\nexport type Type12 = \"plan_assignment\";\nexport type Timezone2 = string;\nexport type Type13 = \"fixed_at\";\nexport type At = string;\nexport type Type14 = \"subscription_end\";\nexport type DefaultBucket = string | null;\nexport type Type15 = \"prepaid\";\nexport type Type16 = \"credit_line\";\nexport type Limit = string;\nexport type Trigger = \"account_created\" | \"referral_completed\" | \"promo_code_redeemed\" | \"manual\";\n/**\n * @minItems 1\n */\nexport type Awards = [GrantAward, ...GrantAward[]];\nexport type Recipient = \"subject\" | \"referrer\";\nexport type Amount2 = string;\nexport type Bucket = string;\nexport type Expiry1 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type StartsAt = string | null;\nexport type EndsAt = string | null;\nexport type Regions = string[];\nexport type Plans = string[];\nexport type Regions1 = string[];\nexport type MaxAwardsPerSubject = number;\nexport type IdempotencyScope = \"subject\" | \"event\";\nexport type Currency = string;\nexport type UnitsPerMajor = string;\nexport type Type17 = \"boolean\";\nexport type Default = boolean;\nexport type Type18 = \"enum\";\n/**\n * @minItems 1\n */\nexport type Values2 = [string, ...string[]];\nexport type Default1 = string;\nexport type Type19 = \"integer\";\nexport type Default2 = number;\nexport type Minimum = number | null;\nexport type Maximum = number | null;\nexport type Type20 = \"string\";\nexport type Default3 = string;\nexport type Pattern = string | null;\nexport type MaxInFlight = number | null;\nexport type MaxInFlight1 = number;\nexport type DisplayName = string;\n/**\n * Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.\n */\nexport type Rank = number;\nexport type Description = string | null;\nexport type RateCard1 = string | null;\nexport type AllowedOperations = string[];\nexport type Amount3 = string;\n/**\n * Spend priority shared with credit buckets. Lower values are used first.\n */\nexport type Priority1 = number;\nexport type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Type21 = \"rolling\";\nexport type Unit3 = \"second\" | \"minute\" | \"hour\" | \"day\" | \"week\";\nexport type Count2 = number;\nexport type Operation = string;\nexport type Measure4 = string;\nexport type Limit1 = string;\nexport type Window2 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Enforcement = \"block\" | \"allow\";\nexport type EmitAtPercent = number[];\nexport type CreditPolicy = string | null;\nexport type AdmissionPolicy1 = string | null;\n/**\n * Default adoption timing for existing assignments when a newer catalog revision changes this plan. A catalog activation may override it for one release.\n */\nexport type DefaultRollout = \"immediate\" | \"next_renewal\" | \"new_assignments_only\";\nexport type Type22 = \"stripe\";\nexport type Type23 = \"dodo\";\nexport type Type24 = \"custom\";\nexport type Adapter = string;\nexport type DisplayName1 = string;\nexport type Description1 = string | null;\nexport type SortOrder = number;\nexport type AmountMinor = number;\nexport type Currency1 = string;\nexport type TaxBehavior = \"inclusive\" | \"exclusive\" | \"unspecified\";\nexport type Type25 = \"stripe_price\";\nexport type PriceId = string;\nexport type Type26 = \"dodo_product\";\nexport type ProductId = string;\nexport type Type27 = \"custom_object\";\nexport type ObjectKind = \"subscription\" | \"one_time\";\nexport type ExternalId = string;\nexport type Type28 = \"subscription\";\nexport type Plan = string;\nexport type Amount4 = string;\nexport type Bucket1 = string;\nexport type Renewal = \"replace_previous\" | \"accumulate\";\nexport type Expiry2 =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type DisplayName2 = string;\nexport type Description2 = string | null;\nexport type SortOrder1 = number;\nexport type Type29 = \"topup\";\nexport type CreditsPerUnit = string;\nexport type Minimum1 = number;\nexport type Maximum1 = number;\nexport type Default4 = number;\nexport type Bucket2 = string;\nexport type Expiry3 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type LotBehavior = \"separate_lots\" | \"merge_and_refresh\";\nexport type Effective = \"immediate\" | \"renewal\";\nexport type Proration = \"prorated\" | \"none\";\nexport type PaymentFailure = \"prevent_change\" | \"apply_change\";\n/**\n * @minItems 1\n */\nexport type EligibleTopups = [string, ...string[]];\nexport type Minimum2 = string;\nexport type Maximum2 = string;\nexport type Default5 = string;\n/**\n * Balance that rearms auto-recharge; it must exceed balance_below.maximum.\n */\nexport type RearmAbove = string;\nexport type Minimum3 = number;\nexport type Maximum3 = number;\nexport type Default6 = number;\nexport type MaxPurchases = number;\nexport type Window3 = CalendarWindow | RollingWindow;\nexport type MaxChargeMinor = number;\nexport type MaxConsecutiveFailures = number;\nexport type FailureAction = \"pause\";\n\nexport interface BursarConfig {\n version: Version;\n catalog?: CatalogConfig;\n /**\n * Usage operations, their measures and dimensions, and reusable rate cards.\n */\n pricing?: PricingConfig | null;\n credits: CreditsConfig;\n entitlements?: EntitlementsConfig;\n admission?: AdmissionConfig;\n plans?: Plans1;\n commerce?: CommerceConfig;\n}\n/**\n * Catalog-wide publication settings such as the default signup plan.\n */\nexport interface CatalogConfig {\n default_plan?: DefaultPlan;\n}\nexport interface PricingConfig {\n operations: Operations;\n rate_cards: RateCards;\n}\nexport interface Operations {\n [k: string]: OperationDefinition;\n}\nexport interface OperationDefinition {\n measures: Measures;\n dimensions?: Dimensions;\n}\nexport interface Measures {\n [k: string]: MeasureDefinition;\n}\nexport interface MeasureDefinition {\n unit: Unit;\n}\nexport interface Dimensions {\n [k: string]: DimensionDefinition;\n}\nexport interface DimensionDefinition {\n type: Type;\n required?: Required;\n}\nexport interface RateCards {\n [k: string]: RateCard;\n}\nexport interface RateCard {\n extends?: Extends;\n operations?: Operations1;\n}\nexport interface Operations1 {\n [k: string]: OperationPricing;\n}\nexport interface OperationPricing {\n rules?: Rules;\n unmatched: Unmatched;\n}\nexport interface PriceRule {\n when: When;\n charge: Charge;\n}\nexport interface When {\n [k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;\n}\nexport interface EqualMatcher {\n op: Op;\n value: Value;\n}\nexport interface InMatcher {\n op: Op1;\n values: Values;\n}\nexport interface NotInMatcher {\n op: Op2;\n values: Values1;\n}\nexport interface PrefixMatcher {\n op: Op3;\n value: Value1;\n}\nexport interface RangeMatcher {\n op: Op4;\n gt?: Gt;\n gte?: Gte;\n lt?: Lt;\n lte?: Lte;\n}\nexport interface FlatCharge {\n type: Type1;\n amount: Amount;\n}\nexport interface PerUnitCharge {\n type: Type2;\n measure: Measure;\n rate: Rate;\n unit_size?: UnitSize;\n}\nexport interface PackageCharge {\n type: Type3;\n measure: Measure1;\n units: Units;\n amount: Amount1;\n rounding?: Rounding;\n}\nexport interface GraduatedCharge {\n type: Type4;\n measure: Measure2;\n tiers: Tiers;\n}\nexport interface GraduatedTier {\n up_to?: UpTo;\n rate: Rate1;\n}\nexport interface VolumeCharge {\n type: Type5;\n measure: Measure3;\n tiers: Tiers1;\n}\nexport interface ExpressionCharge {\n type: Type6;\n formula: Formula;\n}\nexport interface SumCharge {\n type: Type7;\n components: Components;\n}\nexport interface RejectUnmatched {\n action: Action;\n}\nexport interface ChargeUnmatched {\n action: Action1;\n charge: Charge1;\n}\n/**\n * Credit buckets, spending policies, grants, and optional display conversion.\n */\nexport interface CreditsConfig {\n buckets?: Buckets;\n default_bucket?: DefaultBucket;\n policies?: Policies;\n grant_programs?: GrantPrograms;\n display?: CreditDisplay | null;\n}\nexport interface Buckets {\n [k: string]: BucketDefinition;\n}\nexport interface BucketDefinition {\n priority: Priority;\n expiry?: Expiry;\n}\nexport interface NeverExpiry {\n type: Type8;\n}\nexport interface AfterGrantExpiry {\n type: Type9;\n interval: BillingInterval;\n timezone?: Timezone;\n}\nexport interface BillingInterval {\n unit: Unit1;\n count?: Count;\n}\nexport interface EndOfWindowExpiry {\n type: Type10;\n window: Window;\n}\nexport interface CalendarWindow {\n type: Type11;\n unit: Unit2;\n count?: Count1;\n timezone?: Timezone1;\n}\nexport interface PlanAssignmentWindow {\n type: Type12;\n interval: BillingInterval;\n timezone?: Timezone2;\n}\nexport interface FixedExpiry {\n type: Type13;\n at: At;\n}\nexport interface SubscriptionEndExpiry {\n type: Type14;\n}\nexport interface Policies {\n [k: string]: PrepaidCreditPolicy | CreditLinePolicy;\n}\nexport interface PrepaidCreditPolicy {\n type: Type15;\n}\nexport interface CreditLinePolicy {\n type: Type16;\n limit: Limit;\n}\nexport interface GrantPrograms {\n [k: string]: GrantProgram;\n}\nexport interface GrantProgram {\n trigger: Trigger;\n awards: Awards;\n availability?: Availability | null;\n eligibility?: GrantEligibility;\n max_awards_per_subject?: MaxAwardsPerSubject;\n idempotency_scope?: IdempotencyScope;\n}\nexport interface GrantAward {\n recipient?: Recipient;\n amount: Amount2;\n bucket: Bucket;\n expiry?: Expiry1;\n}\nexport interface Availability {\n starts_at?: StartsAt;\n ends_at?: EndsAt;\n regions?: Regions;\n}\nexport interface GrantEligibility {\n plans?: Plans;\n regions?: Regions1;\n}\nexport interface CreditDisplay {\n currency: Currency;\n units_per_major: UnitsPerMajor;\n}\n/**\n * Typed feature definitions referenced by plan feature values.\n */\nexport interface EntitlementsConfig {\n features?: Features;\n}\nexport interface Features {\n [k: string]: BooleanFeature | EnumFeature | IntegerFeature | StringFeature;\n}\nexport interface BooleanFeature {\n type: Type17;\n default: Default;\n}\nexport interface EnumFeature {\n type: Type18;\n values: Values2;\n default: Default1;\n}\nexport interface IntegerFeature {\n type: Type19;\n default: Default2;\n minimum?: Minimum;\n maximum?: Maximum;\n}\nexport interface StringFeature {\n type: Type20;\n default: Default3;\n pattern?: Pattern;\n}\n/**\n * Reusable global and per-operation concurrency policies.\n */\nexport interface AdmissionConfig {\n policies?: Policies1;\n}\nexport interface Policies1 {\n [k: string]: AdmissionPolicy;\n}\nexport interface AdmissionPolicy {\n max_in_flight?: MaxInFlight;\n operations?: Operations2;\n}\nexport interface Operations2 {\n [k: string]: OperationAdmission;\n}\nexport interface OperationAdmission {\n max_in_flight: MaxInFlight1;\n}\n/**\n * Product plans keyed by stable snake_case identifiers.\n */\nexport interface Plans1 {\n [k: string]: PlanDefinition;\n}\nexport interface PlanDefinition {\n display_name: DisplayName;\n rank?: Rank;\n description?: Description;\n rate_card?: RateCard1;\n allowed_operations?: AllowedOperations;\n features?: Features1;\n credit_allowance?: CreditAllowance | null;\n quotas?: Quotas;\n credit_policy?: CreditPolicy;\n admission_policy?: AdmissionPolicy1;\n /**\n * Catalog evolution defaults. When omitted, subscription-backed plans use next_renewal and other plans use immediate; canonical output materializes the default.\n */\n evolution?: PlanEvolution | null;\n}\nexport interface Features1 {\n [k: string]: boolean | number | string;\n}\nexport interface CreditAllowance {\n amount: Amount3;\n priority: Priority1;\n window: Window1;\n}\nexport interface RollingWindow {\n type: Type21;\n duration: Duration;\n}\nexport interface Duration {\n unit: Unit3;\n count: Count2;\n}\nexport interface Quotas {\n [k: string]: QuotaDefinition;\n}\nexport interface QuotaDefinition {\n operation: Operation;\n measure: Measure4;\n limit: Limit1;\n window: Window2;\n enforcement: Enforcement;\n emit_at_percent?: EmitAtPercent;\n}\nexport interface PlanEvolution {\n default_rollout: DefaultRollout;\n}\n/**\n * Payment providers, subscription and top-up offers, and purchase guardrails.\n */\nexport interface CommerceConfig {\n providers?: Providers;\n offers?: Offers;\n subscription_changes?: SubscriptionChanges | null;\n auto_recharge?: AutoRechargeGuardrails | null;\n}\nexport interface Providers {\n [k: string]: StripeProvider | DodoProvider | CustomProvider;\n}\nexport interface StripeProvider {\n type: Type22;\n}\nexport interface DodoProvider {\n type: Type23;\n}\nexport interface CustomProvider {\n type: Type24;\n adapter: Adapter;\n}\nexport interface Offers {\n [k: string]: SubscriptionOffer | TopupOffer;\n}\nexport interface SubscriptionOffer {\n display_name: DisplayName1;\n description?: Description1;\n sort_order?: SortOrder;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers1;\n type: Type28;\n plan: Plan;\n billing_interval: BillingInterval;\n trial?: BillingInterval | null;\n cycle_grant?: CycleGrant | null;\n}\nexport interface OfferPrice {\n amount_minor: AmountMinor;\n currency: Currency1;\n tax_behavior?: TaxBehavior;\n}\nexport interface Providers1 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface StripePriceReference {\n type: Type25;\n price_id: PriceId;\n}\nexport interface DodoProductReference {\n type: Type26;\n product_id: ProductId;\n}\nexport interface CustomObjectReference {\n type: Type27;\n object_kind: ObjectKind;\n external_id: ExternalId;\n}\nexport interface CycleGrant {\n amount: Amount4;\n bucket: Bucket1;\n renewal: Renewal;\n expiry?: Expiry2;\n}\nexport interface TopupOffer {\n display_name: DisplayName2;\n description?: Description2;\n sort_order?: SortOrder1;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers2;\n type: Type29;\n credits_per_unit: CreditsPerUnit;\n quantity?: QuantityBounds;\n bucket: Bucket2;\n expiry?: Expiry3;\n lot_behavior?: LotBehavior;\n}\nexport interface Providers2 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface QuantityBounds {\n minimum?: Minimum1;\n maximum?: Maximum1;\n default?: Default4;\n}\nexport interface SubscriptionChanges {\n upgrade?: SubscriptionChangePolicy | null;\n downgrade?: SubscriptionChangePolicy | null;\n lateral?: SubscriptionChangePolicy | null;\n cadence_change?: SubscriptionChangePolicy | null;\n}\nexport interface SubscriptionChangePolicy {\n effective: Effective;\n proration: Proration;\n payment_failure?: PaymentFailure;\n}\nexport interface AutoRechargeGuardrails {\n eligible_topups: EligibleTopups;\n balance_below: DecimalRange;\n rearm_above: RearmAbove;\n quantity: IntegerRange;\n limits: AutoRechargeLimits;\n}\nexport interface DecimalRange {\n minimum: Minimum2;\n maximum: Maximum2;\n default: Default5;\n}\nexport interface IntegerRange {\n minimum: Minimum3;\n maximum: Maximum3;\n default: Default6;\n}\nexport interface AutoRechargeLimits {\n max_purchases: MaxPurchases;\n window: Window3;\n max_charge_minor: MaxChargeMinor;\n cooldown: Duration;\n max_consecutive_failures?: MaxConsecutiveFailures;\n failure_action?: FailureAction;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,11 +11,13 @@ export type { BursarErrorCategory, BursarErrorDetails, BursarErrorOptions, Seria
|
|
|
11
11
|
export { retryBursarOperation } from "./retry.js";
|
|
12
12
|
export type { BursarRetryOptions } from "./retry.js";
|
|
13
13
|
export { validateExpression, evaluateExpression } from "./expr.js";
|
|
14
|
+
export { BURSAR_INSTRUMENTATION_SCOPE, BURSAR_INSTRUMENTATION_VERSION, NOOP_INSTRUMENTATION, NoopInstrumentation, getDefaultInstrumentation, sanitizeTelemetryAttributes, setDefaultInstrumentation, telemetryErrorAttributes, telemetryOperationAttributes, } from "./telemetry/index.js";
|
|
15
|
+
export type { Instrumentation, TelemetryAttributes, TelemetryAttributeValue, } from "./telemetry/index.js";
|
|
14
16
|
export { AccountService, Bursar, CatalogService } from "./bursar.js";
|
|
15
17
|
export type { AccountCreatedInput, AccountCreatedResult, BillingBursarOptions, BursarOptions, BillingCapability, BillingEventSink, CommerceOptions, CreditsService, CreditsOnlyBursarOptions, } from "./bursar.js";
|
|
16
18
|
export * from "./commerce/index.js";
|
|
17
19
|
export type { AddCreditsResult, AddTeamMemberResult, AggregateStats, AllowanceResult, AvailableResult, BalanceResult, BillingMode, CatalogRevisionSummary, CatalogRevision, BucketBalance, BucketBalancesResult, BucketDefinition, CanAffordResult, CheckFeatureResult, CreateTeamResult, CreditMetadata, DailySpendRow, DeductionResult, DeductionFailure, DeductionSuccess, DeductWithAllowanceOptions, ExecuteGrantProgramRequest, GetUserPlanResult, GrantProgramAwardResult, GrantProgramTrigger, LeaseResult, LeaseFailure, LeaseSuccess, LeasePricingContext, ListQuotaEventsOptions, PlanAllowancePolicy, PlanAdmissionPolicy, PlanCreditPolicy, PlanMigrationBatchResult, PlanMigrationStartResult, QuotaEvent, QuotaState, RefundResult, RefundFailure, RefundSuccess, RevokeCreditsResult, ReleaseResult, SetUserPlanResult, SpendByModelRow, SpendByUserRow, ListLedgerEntriesOptions, ListUsageChargesOptions, ListUsageEntriesOptions, LedgerCursor, LedgerPage, LedgerEntry, UsageCharge, UsageChargeCursor, UsageChargePage, UsageRecordResult, UsageRecordFailure, UsageRecordSuccess, SweepResult, Team, TeamBalanceResult, TeamDeductionResult, TeamDeductionFailure, TeamDeductionSuccess, TeamMember, TopUserRow, UsageAnalyticsStore, } from "./credits/types/index.js";
|
|
18
|
-
export type { CreateLeaseOptions, SettleLeaseOptions } from "./credits/store.js";
|
|
20
|
+
export type { CreateLeaseOptions, CreateTeamOptions, SettleLeaseOptions } from "./credits/store.js";
|
|
19
21
|
export type { AddCreditsOptions, BeginBilledOperationOptions, CanAffordOptions, CreditsServiceOptions, DeductCreditsOptions, DeductFlatJobOptions, DeductOptions, DeductTeamOptions, ExactAmount, GrantSubscriptionCycleOptions, LowBalanceConfig, MetricsOrAmount, PostDeductionContext, RecordUsageOptions, RefundCreditsOptions, ReserveOptions, RunBilledOptions, SettleOptions, } from "./credits/service-types.js";
|
|
20
22
|
export { CreditStore } from "./credits/store.js";
|
|
21
23
|
export { PostgresStore } from "./credits/postgres/store.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,WAAW,EACX,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,mCAAmC,EACnC,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,2BAA2B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,EAAE,MAAM,6BAA6B,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,YAAY,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E,YAAY,EACV,0BAA0B,EAC1B,+BAA+B,EAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { projectPublicCatalog } from "./catalog.js";
|
|
|
5
5
|
export { AutoRechargeDisabledError, AutoRechargeNotConfiguredError, BillingError, BursarError, CapabilityNotConfiguredError, CapabilityNotSupportedError, CapReachedError, ConcurrencyLimitError, CreditError, ConfigError, ExpressionError, FeatureNotEntitledError, ImportError, InsufficientCreditsError, LeaseExpiredError, LeaseNotFoundError, OperationNotAllowedError, PaymentMethodRequiredError, ProviderCapabilityNotSupportedError, ProviderResponseError, CatalogNotLoadedError, RefundError, QuotaExceededError, StoreError, StoreClosedError, StoreTimeoutError, StoreUnavailableError, bursarErrorHttpStatus, bursarErrorPublicMessage, isBursarError, isRetryableBursarError, } from "./errors.js";
|
|
6
6
|
export { retryBursarOperation } from "./retry.js";
|
|
7
7
|
export { validateExpression, evaluateExpression } from "./expr.js";
|
|
8
|
+
export { BURSAR_INSTRUMENTATION_SCOPE, BURSAR_INSTRUMENTATION_VERSION, NOOP_INSTRUMENTATION, NoopInstrumentation, getDefaultInstrumentation, sanitizeTelemetryAttributes, setDefaultInstrumentation, telemetryErrorAttributes, telemetryOperationAttributes, } from "./telemetry/index.js";
|
|
8
9
|
// Application facade. Credit/billing orchestration is internal to Bursar.
|
|
9
10
|
export { AccountService, Bursar, CatalogService } from "./bursar.js";
|
|
10
11
|
export * from "./commerce/index.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAiBnD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,WAAW,EACX,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,mCAAmC,EACnC,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,sBAAsB,GACvB,MAAM,aAAa,CAAC;AAQrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAiBnD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,WAAW,EACX,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,mCAAmC,EACnC,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,sBAAsB,GACvB,MAAM,aAAa,CAAC;AAQrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAO9B,0EAA0E;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAYrE,cAAc,qBAAqB,CAAC;AA+FpC,SAAS;AACT,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,UAAU;AACV,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { PricingEngine } from \"./engine.js\";\nexport type { CostBreakdown } from \"./breakdown.js\";\nexport { makeCostBreakdown } from \"./breakdown.js\";\nexport type { UsageMetrics } from \"./metrics.js\";\nexport type {\n BursarConfigData,\n CatalogRollout,\n ParsedBursarConfig,\n PricingConfig,\n CreditsConfig,\n PlanDefinition,\n PlanEvolution,\n PlanRollout,\n PlanRolloutStrategy,\n CommerceConfig,\n Window,\n Charge,\n FeatureDefinition,\n} from \"./config.js\";\nexport {\n canonicalBursarConfigDict,\n canonicalCatalogRolloutDict,\n loadCatalogRollout,\n loadConfigFromDict,\n validateCatalogRollout,\n} from \"./config.js\";\nexport { projectPublicCatalog } from \"./catalog.js\";\nexport type {\n PublicCatalog,\n PublicCatalogOffer,\n PublicCatalogPlan,\n PublicCatalogWindow,\n} from \"./catalog.js\";\nexport {\n AutoRechargeDisabledError,\n AutoRechargeNotConfiguredError,\n BillingError,\n BursarError,\n CapabilityNotConfiguredError,\n CapabilityNotSupportedError,\n CapReachedError,\n ConcurrencyLimitError,\n CreditError,\n ConfigError,\n ExpressionError,\n FeatureNotEntitledError,\n ImportError,\n InsufficientCreditsError,\n LeaseExpiredError,\n LeaseNotFoundError,\n OperationNotAllowedError,\n PaymentMethodRequiredError,\n ProviderCapabilityNotSupportedError,\n ProviderResponseError,\n CatalogNotLoadedError,\n RefundError,\n QuotaExceededError,\n StoreError,\n StoreClosedError,\n StoreTimeoutError,\n StoreUnavailableError,\n bursarErrorHttpStatus,\n bursarErrorPublicMessage,\n isBursarError,\n isRetryableBursarError,\n} from \"./errors.js\";\nexport type {\n BursarErrorCategory,\n BursarErrorDetails,\n BursarErrorOptions,\n SerializedBursarError,\n StoreErrorOptions,\n} from \"./errors.js\";\nexport { retryBursarOperation } from \"./retry.js\";\nexport type { BursarRetryOptions } from \"./retry.js\";\nexport { validateExpression, evaluateExpression } from \"./expr.js\";\nexport {\n BURSAR_INSTRUMENTATION_SCOPE,\n BURSAR_INSTRUMENTATION_VERSION,\n NOOP_INSTRUMENTATION,\n NoopInstrumentation,\n getDefaultInstrumentation,\n sanitizeTelemetryAttributes,\n setDefaultInstrumentation,\n telemetryErrorAttributes,\n telemetryOperationAttributes,\n} from \"./telemetry/index.js\";\nexport type {\n Instrumentation,\n TelemetryAttributes,\n TelemetryAttributeValue,\n} from \"./telemetry/index.js\";\n\n// Application facade. Credit/billing orchestration is internal to Bursar.\nexport { AccountService, Bursar, CatalogService } from \"./bursar.js\";\nexport type {\n AccountCreatedInput,\n AccountCreatedResult,\n BillingBursarOptions,\n BursarOptions,\n BillingCapability,\n BillingEventSink,\n CommerceOptions,\n CreditsService,\n CreditsOnlyBursarOptions,\n} from \"./bursar.js\";\nexport * from \"./commerce/index.js\";\n\n// Types\nexport type {\n AddCreditsResult,\n AddTeamMemberResult,\n AggregateStats,\n AllowanceResult,\n AvailableResult,\n BalanceResult,\n BillingMode,\n CatalogRevisionSummary,\n CatalogRevision,\n BucketBalance,\n BucketBalancesResult,\n BucketDefinition,\n CanAffordResult,\n CheckFeatureResult,\n CreateTeamResult,\n CreditMetadata,\n DailySpendRow,\n DeductionResult,\n DeductionFailure,\n DeductionSuccess,\n DeductWithAllowanceOptions,\n ExecuteGrantProgramRequest,\n GetUserPlanResult,\n GrantProgramAwardResult,\n GrantProgramTrigger,\n LeaseResult,\n LeaseFailure,\n LeaseSuccess,\n LeasePricingContext,\n ListQuotaEventsOptions,\n PlanAllowancePolicy,\n PlanAdmissionPolicy,\n PlanCreditPolicy,\n PlanMigrationBatchResult,\n PlanMigrationStartResult,\n QuotaEvent,\n QuotaState,\n RefundResult,\n RefundFailure,\n RefundSuccess,\n RevokeCreditsResult,\n ReleaseResult,\n SetUserPlanResult,\n SpendByModelRow,\n SpendByUserRow,\n ListLedgerEntriesOptions,\n ListUsageChargesOptions,\n ListUsageEntriesOptions,\n LedgerCursor,\n LedgerPage,\n LedgerEntry,\n UsageCharge,\n UsageChargeCursor,\n UsageChargePage,\n UsageRecordResult,\n UsageRecordFailure,\n UsageRecordSuccess,\n SweepResult,\n Team,\n TeamBalanceResult,\n TeamDeductionResult,\n TeamDeductionFailure,\n TeamDeductionSuccess,\n TeamMember,\n TopUserRow,\n UsageAnalyticsStore,\n} from \"./credits/types/index.js\";\n\n// Store options\nexport type { CreateLeaseOptions, CreateTeamOptions, SettleLeaseOptions } from \"./credits/store.js\";\nexport type {\n AddCreditsOptions,\n BeginBilledOperationOptions,\n CanAffordOptions,\n CreditsServiceOptions,\n DeductCreditsOptions,\n DeductFlatJobOptions,\n DeductOptions,\n DeductTeamOptions,\n ExactAmount,\n GrantSubscriptionCycleOptions,\n LowBalanceConfig,\n MetricsOrAmount,\n PostDeductionContext,\n RecordUsageOptions,\n RefundCreditsOptions,\n ReserveOptions,\n RunBilledOptions,\n SettleOptions,\n} from \"./credits/service-types.js\";\n\n// Stores\nexport { CreditStore } from \"./credits/store.js\";\nexport { PostgresStore } from \"./credits/postgres/store.js\";\nexport type { PostgresStoreOptions } from \"./credits/postgres/store.js\";\nexport type { PostgresConnectionOptions } from \"./shared/postgres-client.js\";\nexport { PROVIDER_ENVIRONMENTS } from \"./providers/environment.js\";\nexport type { ProviderEnvironment } from \"./providers/environment.js\";\n\n// Events\nexport type { CreditEvent, CreditEventType } from \"./credits/events.js\";\nexport { CreditEventEmitter } from \"./credits/events.js\";\n\n// Billing\nexport { BillingStore, PostgresBillingStore } from \"./billing/index.js\";\nexport { AUTO_RECHARGE_STATES, BillingEventType } from \"./billing/index.js\";\nexport type { BillingServiceOptions } from \"./billing/billing-service.js\";\n\nexport type {\n BillingAutoRechargeAttempt,\n BillingAutoRechargeAttemptState,\n BillingAutoRechargeProfile,\n BillingAutoRechargeStatus,\n BillingProvisioningPort,\n BillingCreditPostingResult,\n BillingCustomerInfo,\n BillingCustomerRecord,\n BillingDisputeInfo,\n BillingEvent,\n BillingEventClaim,\n BillingEventHandler,\n BillingEventResult,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingOfferInterval,\n BillingPaymentInfo,\n BillingPaymentRecord,\n BillingPreferences,\n PostgresBillingStoreOptions,\n BillingRefundInfo,\n BillingSubscriptionInfo,\n BillingSubscriptionChange,\n BillingSubscriptionChangeInput,\n BillingSubscriptionOfferContext,\n BillingSubscriptionChangeState,\n BillingSubscriptionState,\n BillingSubscriptionStatus,\n EntitlementMode,\n ProviderRef,\n SubscriptionGrant,\n} from \"./billing/index.js\";\n"]}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { BetterAuthPlugin, User } from "better-auth";
|
|
2
2
|
import type { AccountCreatedInput, Bursar } from "../bursar.js";
|
|
3
|
-
export
|
|
3
|
+
export interface BetterAuthBursarUser extends User {
|
|
4
|
+
/** Optional customer identifier added by a provider Better Auth plugin. */
|
|
5
|
+
dodoCustomerId?: string | null;
|
|
6
|
+
}
|
|
4
7
|
export interface BetterAuthProviderCustomer {
|
|
5
8
|
provider: string;
|
|
6
9
|
customerId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"better-auth.d.ts","sourceRoot":"","sources":["../../src/integrations/better-auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,
|
|
1
|
+
{"version":3,"file":"better-auth.d.ts","sourceRoot":"","sources":["../../src/integrations/better-auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,WAAW,oBAAqB,SAAQ,IAAI;IAChD,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,sBAAsB,GAAG,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,gBAAgB,CAAC,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC1E,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,CAAC;IACzD,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtE,kBAAkB,CAAC,EAAE,CACnB,IAAI,EAAE,oBAAoB,KACvB,mBAAmB,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;IAChF,uBAAuB,CAAC,EAAE,CACxB,IAAI,EAAE,oBAAoB,KAExB,0BAA0B,GAC1B,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,0BAA0B,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CAC5D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,gBAAgB,CAiDnF"}
|
|
@@ -29,13 +29,16 @@ export function bursarBetterAuth(options) {
|
|
|
29
29
|
const bursar = await options.getBursar();
|
|
30
30
|
const region = options.getRegion?.(bursarUser);
|
|
31
31
|
const metadata = await options.getAccountMetadata?.(bursarUser);
|
|
32
|
-
|
|
32
|
+
const accountInput = {
|
|
33
33
|
accountId: bursarUser.id,
|
|
34
34
|
eventKey: options.accountEventKey?.(bursarUser) ??
|
|
35
35
|
`better-auth:user.created:${bursarUser.id}`,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
};
|
|
37
|
+
if (region != null)
|
|
38
|
+
accountInput.region = region;
|
|
39
|
+
if (metadata != null)
|
|
40
|
+
accountInput.metadata = metadata;
|
|
41
|
+
await bursar.accounts.onAccountCreated(accountInput);
|
|
39
42
|
await syncProviderCustomer(bursarUser);
|
|
40
43
|
},
|
|
41
44
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"better-auth.js","sourceRoot":"","sources":["../../src/integrations/better-auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"better-auth.js","sourceRoot":"","sources":["../../src/integrations/better-auth.ts"],"names":[],"mappings":"AAgCA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAgC;IAC/D,MAAM,oBAAoB,GAAG,KAAK,EAAE,IAA0B,EAAiB,EAAE;QAC/E,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,uBAAuB,EAAE,CAAC,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,MAAM,QAAQ,GAAG,OAAO,CAAC,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CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;oCACrD,MAAM,oBAAoB,CAAC,UAAU,CAAC,CAAC;gCACzC,CAAC;6BACF;4BACD,MAAM,EAAE;gCACN,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;oCACpB,MAAM,oBAAoB,CAAC,IAAI,CAAC,CAAC;gCACnC,CAAC;6BACF;yBACF;qBACF;iBACF;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { BetterAuthPlugin, User } from \"better-auth\";\n\nimport type { AccountCreatedInput, Bursar } from \"../bursar.js\";\n\nexport interface BetterAuthBursarUser extends User {\n /** Optional customer identifier added by a provider Better Auth plugin. */\n dodoCustomerId?: string | null;\n}\n\nexport interface BetterAuthProviderCustomer {\n provider: string;\n customerId: string;\n}\n\ntype BetterAuthBursarFacade = Pick<Bursar, \"accounts\" | \"requireBilling\">;\n\nexport interface BursarBetterAuthOptions {\n getBursar: () => BetterAuthBursarFacade | Promise<BetterAuthBursarFacade>;\n accountEventKey?: (user: BetterAuthBursarUser) => string;\n getRegion?: (user: BetterAuthBursarUser) => string | null | undefined;\n getAccountMetadata?: (\n user: BetterAuthBursarUser,\n ) => AccountCreatedInput[\"metadata\"] | Promise<AccountCreatedInput[\"metadata\"]>;\n resolveProviderCustomer?: (\n user: BetterAuthBursarUser,\n ) =>\n | BetterAuthProviderCustomer\n | null\n | undefined\n | Promise<BetterAuthProviderCustomer | null | undefined>;\n}\n\n/**\n * Better Auth lifecycle plugin for Bursar account provisioning and optional\n * provider-customer synchronization. It composes alongside provider plugins\n * such as `@dodopayments/better-auth` without owning their schema or routes.\n */\nexport function bursarBetterAuth(options: BursarBetterAuthOptions): BetterAuthPlugin {\n const syncProviderCustomer = async (user: BetterAuthBursarUser): Promise<void> => {\n const mapping = await options.resolveProviderCustomer?.(user);\n if (!mapping) return;\n const provider = mapping.provider.trim();\n const customerId = mapping.customerId.trim();\n if (!provider || !customerId) {\n throw new TypeError(\"Better Auth provider customer mapping must not be empty\");\n }\n const bursar = await options.getBursar();\n await bursar.requireBilling().upsertCustomer(provider, customerId, user.id, user.email);\n };\n\n return {\n id: \"bursar\",\n init() {\n return {\n options: {\n databaseHooks: {\n user: {\n create: {\n after: async (user) => {\n const bursarUser: BetterAuthBursarUser = user;\n const bursar = await options.getBursar();\n const region = options.getRegion?.(bursarUser);\n const metadata = await options.getAccountMetadata?.(bursarUser);\n const accountInput: AccountCreatedInput = {\n accountId: bursarUser.id,\n eventKey:\n options.accountEventKey?.(bursarUser) ??\n `better-auth:user.created:${bursarUser.id}`,\n };\n if (region != null) accountInput.region = region;\n if (metadata != null) accountInput.metadata = metadata;\n await bursar.accounts.onAccountCreated(accountInput);\n await syncProviderCustomer(bursarUser);\n },\n },\n update: {\n after: async (user) => {\n await syncProviderCustomer(user);\n },\n },\n },\n },\n },\n };\n },\n };\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type JsonObject } from "./shared/json.js";
|
|
1
2
|
/**
|
|
2
3
|
* Read a JSON or YAML Bursar config file from disk.
|
|
3
4
|
*
|
|
@@ -7,5 +8,5 @@
|
|
|
7
8
|
* JSON syntax is validated by the platform parser and mapping keys are also
|
|
8
9
|
* checked by js-yaml so duplicate config fields cannot silently overwrite.
|
|
9
10
|
*/
|
|
10
|
-
export declare function loadConfigFile(filepath: string): Promise<
|
|
11
|
+
export declare function loadConfigFile(filepath: string): Promise<JsonObject>;
|
|
11
12
|
//# sourceMappingURL=load-config-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-config-file.d.ts","sourceRoot":"","sources":["../src/load-config-file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"load-config-file.d.ts","sourceRoot":"","sources":["../src/load-config-file.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,KAAK,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAqDjF;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAgC1E"}
|
package/dist/load-config-file.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { readFileSync, statSync } from "fs";
|
|
2
2
|
import { extname } from "path";
|
|
3
3
|
import { load as parseYaml } from "js-yaml";
|
|
4
|
+
import { z } from "zod";
|
|
4
5
|
import { ConfigError } from "./errors.js";
|
|
6
|
+
import { isJsonObject } from "./shared/json.js";
|
|
5
7
|
function parseJsonWithUniqueKeys(content) {
|
|
6
|
-
const parsed = JSON.parse(content);
|
|
8
|
+
const parsed = z.json().parse(JSON.parse(content));
|
|
7
9
|
// JSON is a strict subset of YAML. js-yaml retains source-level mapping
|
|
8
10
|
// keys and rejects duplicates, including nested and escape-equivalent keys;
|
|
9
11
|
// native JSON.parse above remains the authority for strict JSON syntax and
|
|
@@ -22,12 +24,13 @@ function readFileClean(filepath) {
|
|
|
22
24
|
stat = statSync(filepath);
|
|
23
25
|
}
|
|
24
26
|
catch (cause) {
|
|
25
|
-
const code = cause.code;
|
|
27
|
+
const code = z.object({ code: z.string().optional() }).safeParse(cause).data?.code;
|
|
26
28
|
if (code === "ENOENT")
|
|
27
29
|
throw new ConfigError(`Config file not found: ${filepath}`);
|
|
28
30
|
if (code === "EACCES")
|
|
29
31
|
throw new ConfigError(`Permission denied: ${filepath}`);
|
|
30
|
-
|
|
32
|
+
const message = cause instanceof Error ? cause.message : String(cause);
|
|
33
|
+
throw new ConfigError(`Could not read ${filepath}: ${message}`, [], { cause });
|
|
31
34
|
}
|
|
32
35
|
if (stat.isDirectory()) {
|
|
33
36
|
throw new ConfigError(`Not a file (is a directory): ${filepath}`);
|
|
@@ -36,7 +39,8 @@ function readFileClean(filepath) {
|
|
|
36
39
|
return readFileSync(filepath, "utf-8");
|
|
37
40
|
}
|
|
38
41
|
catch (cause) {
|
|
39
|
-
|
|
42
|
+
const message = cause instanceof Error ? cause.message : String(cause);
|
|
43
|
+
throw new ConfigError(`Could not read ${filepath}: ${message}`, [], { cause });
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
/** Guard against an empty file or a non-object parse result (e.g. an empty YAML document). */
|
|
@@ -44,8 +48,8 @@ function assertNonEmptyObject(data, filepath) {
|
|
|
44
48
|
if (data == null) {
|
|
45
49
|
throw new ConfigError(`Bursar config is empty: ${filepath}`);
|
|
46
50
|
}
|
|
47
|
-
if (
|
|
48
|
-
throw new ConfigError(`Bursar config must be a JSON/YAML object
|
|
51
|
+
if (!isJsonObject(data)) {
|
|
52
|
+
throw new ConfigError(`Bursar config must be a JSON/YAML object: ${filepath}`);
|
|
49
53
|
}
|
|
50
54
|
if (Object.keys(data).length === 0) {
|
|
51
55
|
throw new ConfigError(`Bursar config is empty: ${filepath}`);
|
|
@@ -70,12 +74,15 @@ export async function loadConfigFile(filepath) {
|
|
|
70
74
|
const content = readFileClean(filepath);
|
|
71
75
|
let parsed;
|
|
72
76
|
try {
|
|
73
|
-
|
|
77
|
+
const yamlValue = parseYaml(content, { json: false });
|
|
78
|
+
const jsonValue = z.json().safeParse(yamlValue);
|
|
79
|
+
if (!jsonValue.success)
|
|
80
|
+
throw new ConfigError("YAML document must contain JSON values");
|
|
81
|
+
parsed = jsonValue.data;
|
|
74
82
|
}
|
|
75
83
|
catch (cause) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
84
|
+
const message = cause instanceof Error ? cause.message : String(cause);
|
|
85
|
+
throw new ConfigError(`Invalid YAML in ${filepath}: ${message}`, [], { cause });
|
|
79
86
|
}
|
|
80
87
|
return assertNonEmptyObject(parsed, filepath);
|
|
81
88
|
}
|
|
@@ -85,9 +92,8 @@ export async function loadConfigFile(filepath) {
|
|
|
85
92
|
parsed = parseJsonWithUniqueKeys(content);
|
|
86
93
|
}
|
|
87
94
|
catch (cause) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
});
|
|
95
|
+
const message = cause instanceof Error ? cause.message : String(cause);
|
|
96
|
+
throw new ConfigError(`Invalid JSON in ${filepath}: ${message}`, [], { cause });
|
|
91
97
|
}
|
|
92
98
|
return assertNonEmptyObject(parsed, filepath);
|
|
93
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-config-file.js","sourceRoot":"","sources":["../src/load-config-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"load-config-file.js","sourceRoot":"","sources":["../src/load-config-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAmC,MAAM,kBAAkB,CAAC;AAEjF,SAAS,uBAAuB,CAAC,OAAe;IAC9C,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,wEAAwE;IACxE,4EAA4E;IAC5E,2EAA2E;IAC3E,qCAAqC;IACrC,SAAS,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACpC,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,QAAgB;IACrC,IAAI,IAA6C,CAAC;IAClD,I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AAM,IAAI,WAAW,CAAC,wCAAwC,CAAC,CAAC;YACxF,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,MAAM,IAAI,WAAW,CAAC,mBAAmB,QAAQ,KAAK,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAClF,CAAC;QACD,OAAO,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IACxC,IAAI,MAAiB,CAAC;IACtB,IAAI,CAAC;QACH,MAAM,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,MAAM,IAAI,WAAW,CAAC,mBAAmB,QAAQ,KAAK,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAClF,CAAC;IACD,OAAO,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC","sourcesContent":["import { readFileSync, statSync } from \"fs\";\nimport { extname } from \"path\";\nimport { load as parseYaml } from \"js-yaml\";\nimport { z } from \"zod\";\nimport { ConfigError } from \"./errors.js\";\nimport { isJsonObject, type JsonObject, type JsonValue } from \"./shared/json.js\";\n\nfunction parseJsonWithUniqueKeys(content: string): JsonValue {\n const parsed = z.json().parse(JSON.parse(content));\n // JSON is a strict subset of YAML. js-yaml retains source-level mapping\n // keys and rejects duplicates, including nested and escape-equivalent keys;\n // native JSON.parse above remains the authority for strict JSON syntax and\n // for the returned JavaScript value.\n parseYaml(content, { json: false });\n return parsed;\n}\n\n/**\n * Read a file's contents, converting missing-file/directory/permission\n * failures into a clean {@link ConfigError} instead of a raw Node `fs` error\n * (mirrors the Python CLI's `_load_config_file`).\n */\nfunction readFileClean(filepath: string): string {\n let stat: ReturnType<typeof statSync> | undefined;\n try {\n stat = statSync(filepath);\n } catch (cause) {\n const code = z.object({ code: z.string().optional() }).safeParse(cause).data?.code;\n if (code === \"ENOENT\") throw new ConfigError(`Config file not found: ${filepath}`);\n if (code === \"EACCES\") throw new ConfigError(`Permission denied: ${filepath}`);\n const message = cause instanceof Error ? cause.message : String(cause);\n throw new ConfigError(`Could not read ${filepath}: ${message}`, [], { cause });\n }\n if (stat.isDirectory()) {\n throw new ConfigError(`Not a file (is a directory): ${filepath}`);\n }\n try {\n return readFileSync(filepath, \"utf-8\");\n } catch (cause) {\n const message = cause instanceof Error ? cause.message : String(cause);\n throw new ConfigError(`Could not read ${filepath}: ${message}`, [], { cause });\n }\n}\n\n/** Guard against an empty file or a non-object parse result (e.g. an empty YAML document). */\nfunction assertNonEmptyObject(data: JsonValue | undefined, filepath: string): JsonObject {\n if (data == null) {\n throw new ConfigError(`Bursar config is empty: ${filepath}`);\n }\n if (!isJsonObject(data)) {\n throw new ConfigError(`Bursar config must be a JSON/YAML object: ${filepath}`);\n }\n if (Object.keys(data).length === 0) {\n throw new ConfigError(`Bursar config is empty: ${filepath}`);\n }\n return data;\n}\n\n/**\n * Read a JSON or YAML Bursar config file from disk.\n *\n * Returns the raw parsed dict (suitable for ``loadConfigFromDict`` or\n * ``PricingEngine.fromDict``).\n *\n * JSON syntax is validated by the platform parser and mapping keys are also\n * checked by js-yaml so duplicate config fields cannot silently overwrite.\n */\nexport async function loadConfigFile(filepath: string): Promise<JsonObject> {\n const extension = extname(filepath).toLowerCase();\n if (!new Set([\".json\", \".yaml\", \".yml\"]).has(extension)) {\n throw new ConfigError(\n `Unsupported config file format: ${extension || \"<none>\"}. Expected .json, .yaml, or .yml`,\n );\n }\n\n if (extension === \".yaml\" || extension === \".yml\") {\n const content = readFileClean(filepath);\n let parsed: JsonValue | undefined;\n try {\n const yamlValue = parseYaml(content, { json: false });\n const jsonValue = z.json().safeParse(yamlValue);\n if (!jsonValue.success) throw new ConfigError(\"YAML document must contain JSON values\");\n parsed = jsonValue.data;\n } catch (cause) {\n const message = cause instanceof Error ? cause.message : String(cause);\n throw new ConfigError(`Invalid YAML in ${filepath}: ${message}`, [], { cause });\n }\n return assertNonEmptyObject(parsed, filepath);\n }\n\n const content = readFileClean(filepath);\n let parsed: JsonValue;\n try {\n parsed = parseJsonWithUniqueKeys(content);\n } catch (cause) {\n const message = cause instanceof Error ? cause.message : String(cause);\n throw new ConfigError(`Invalid JSON in ${filepath}: ${message}`, [], { cause });\n }\n return assertNonEmptyObject(parsed, filepath);\n}\n"]}
|
package/dist/metrics.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type Decimal from "decimal.js";
|
|
1
|
+
import type { Decimal } from "decimal.js";
|
|
2
|
+
import type { StructuredObject } from "./shared/json.js";
|
|
2
3
|
/** One provider-neutral billable operation. */
|
|
3
4
|
export interface UsageMetrics {
|
|
4
5
|
operation: string;
|
|
5
6
|
measures?: Record<string, number | string>;
|
|
6
7
|
dimensions?: Record<string, string | number | boolean | Decimal.Value>;
|
|
7
|
-
metadata?:
|
|
8
|
+
metadata?: StructuredObject;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=metrics.d.ts.map
|
package/dist/metrics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,+CAA+C;AAC/C,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACvE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B"}
|
package/dist/metrics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"","sourcesContent":["import type Decimal from \"decimal.js\";\n\n/** One provider-neutral billable operation. */\nexport interface UsageMetrics {\n operation: string;\n measures?: Record<string, number | string>;\n dimensions?: Record<string, string | number | boolean | Decimal.Value>;\n metadata?:
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"","sourcesContent":["import type { Decimal } from \"decimal.js\";\nimport type { StructuredObject } from \"./shared/json.js\";\n\n/** One provider-neutral billable operation. */\nexport interface UsageMetrics {\n operation: string;\n measures?: Record<string, number | string>;\n dimensions?: Record<string, string | number | boolean | Decimal.Value>;\n metadata?: StructuredObject;\n}\n"]}
|
package/dist/node.d.ts
CHANGED
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
export { loadConfigFile } from "./load-config-file.js";
|
|
13
13
|
export { BursarRuntime, createBursarRuntime } from "./storage/runtime.js";
|
|
14
14
|
export type { BursarRuntimeBursarOptions, BursarRuntimeHealth, BursarRuntimeOptions, BursarRuntimeStartOptions, } from "./storage/runtime.js";
|
|
15
|
+
export type { BursarRuntimeDiagnostics, BursarRuntimeState, CatalogDependencyCheck, CheckDependenciesOptions, DependencyCheck, DependencyStatus, OutboxDependencyCheck, OutboxStatusSnapshot, WorkerErrorSnapshot, WorkerLifecycle, WorkerRunSnapshot, WorkerState, } from "./storage/diagnostics.js";
|
|
16
|
+
export { BursarMaintenance, BursarOperatorMaintenance } from "./storage/maintenance.js";
|
|
17
|
+
export type { MaintenanceRunOptions, MaintenanceRunResult, MaintenanceRunStatus, MaintenanceOperations, MaintenanceTaskResult, MaintenanceTaskStatus, OperatorMaintenanceRunOptions, PartitionMaintenanceResult, StorageMaintenanceCounts, StorageMaintenanceResult, StorageMaintenanceStatus, StoragePartition, } from "./storage/maintenance.js";
|
|
15
18
|
export { OutboxWorker } from "./storage/outbox-worker.js";
|
|
16
|
-
export type { OutboxRunResult, OutboxWorkerOptions } from "./storage/outbox-worker.js";
|
|
19
|
+
export type { OutboxClaimLossPhase, OutboxEventOutcome, OutboxEventOutcomeStatus, OutboxRunResult, OutboxWorkerOptions, } from "./storage/outbox-worker.js";
|
|
17
20
|
export { ClickHouseUsageStore } from "./storage/adapters/clickhouse.js";
|
|
18
21
|
export type { ClickHouseClient, ClickHouseQueryResult, ClickHouseUsageStoreOptions, } from "./storage/adapters/clickhouse.js";
|
|
19
22
|
export { S3BillingArchive } from "./storage/adapters/s3.js";
|
|
20
|
-
export type { S3BillingArchiveOptions, S3Credentials } from "./storage/adapters/s3.js";
|
|
21
|
-
export type { BillingEventPayloadExport, BillingPayloadArchive, BillingPayloadArchiveResult, OutboxEvent, OutboxHandler, OutboxStore, UsageChargeExport, UsageEventSink, } from "./storage/ports.js";
|
|
23
|
+
export type { S3ArchiveCommand, S3ArchiveCommandInput, S3ArchiveClient, S3ArchiveCommandResult, S3ArchiveClientFactory, S3BillingArchiveOptions, S3Credentials, S3PutObjectOptions, } from "./storage/adapters/s3.js";
|
|
24
|
+
export type { BillingEventPayloadExport, BillingPayloadArchive, BillingPayloadArchiveResult, OutboxClaimRenewalStore, OutboxDeadLetter, OutboxDeadLetterCursor, OutboxDeadLetterListOptions, OutboxDeadLetterPage, OutboxEvent, OutboxHandler, OutboxRecoveryStore, OutboxStats, OutboxStore, UsageChargeExport, UsageEventSink, } from "./storage/ports.js";
|
|
22
25
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACxF,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,cAAc,GACf,MAAM,oBAAoB,CAAC"}
|
package/dist/node.js
CHANGED
|
@@ -13,6 +13,7 @@ export { loadConfigFile } from "./load-config-file.js";
|
|
|
13
13
|
// Optional high-volume storage infrastructure. These adapters are Node-only;
|
|
14
14
|
// the main package remains the PostgreSQL-first application API.
|
|
15
15
|
export { BursarRuntime, createBursarRuntime } from "./storage/runtime.js";
|
|
16
|
+
export { BursarMaintenance, BursarOperatorMaintenance } from "./storage/maintenance.js";
|
|
16
17
|
export { OutboxWorker } from "./storage/outbox-worker.js";
|
|
17
18
|
export { ClickHouseUsageStore } from "./storage/adapters/clickhouse.js";
|
|
18
19
|
export { S3BillingArchive } from "./storage/adapters/s3.js";
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,6EAA6E;AAC7E,iEAAiE;AACjE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,6EAA6E;AAC7E,iEAAiE;AACjE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAqB1E,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAexF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAQ1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAMxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["/**\n * Node.js-only bursar exports.\n *\n * These modules depend on Node built-ins (`crypto`, `fs`) and are not\n * compatible with Edge Runtime environments. Import them from the\n * ``@zonastery/bursar/node`` subpath when you need Node-specific behaviour:\n *\n * ```ts\n * import { loadConfigFile } from \"@zonastery/bursar/node\";\n * ```\n */\n\nexport { loadConfigFile } from \"./load-config-file.js\";\n\n// Optional high-volume storage infrastructure. These adapters are Node-only;\n// the main package remains the PostgreSQL-first application API.\nexport { BursarRuntime, createBursarRuntime } from \"./storage/runtime.js\";\nexport type {\n BursarRuntimeBursarOptions,\n BursarRuntimeHealth,\n BursarRuntimeOptions,\n BursarRuntimeStartOptions,\n} from \"./storage/runtime.js\";\nexport type {\n BursarRuntimeDiagnostics,\n BursarRuntimeState,\n CatalogDependencyCheck,\n CheckDependenciesOptions,\n DependencyCheck,\n DependencyStatus,\n OutboxDependencyCheck,\n OutboxStatusSnapshot,\n WorkerErrorSnapshot,\n WorkerLifecycle,\n WorkerRunSnapshot,\n WorkerState,\n} from \"./storage/diagnostics.js\";\nexport { BursarMaintenance, BursarOperatorMaintenance } from \"./storage/maintenance.js\";\nexport type {\n MaintenanceRunOptions,\n MaintenanceRunResult,\n MaintenanceRunStatus,\n MaintenanceOperations,\n MaintenanceTaskResult,\n MaintenanceTaskStatus,\n OperatorMaintenanceRunOptions,\n PartitionMaintenanceResult,\n StorageMaintenanceCounts,\n StorageMaintenanceResult,\n StorageMaintenanceStatus,\n StoragePartition,\n} from \"./storage/maintenance.js\";\nexport { OutboxWorker } from \"./storage/outbox-worker.js\";\nexport type {\n OutboxClaimLossPhase,\n OutboxEventOutcome,\n OutboxEventOutcomeStatus,\n OutboxRunResult,\n OutboxWorkerOptions,\n} from \"./storage/outbox-worker.js\";\nexport { ClickHouseUsageStore } from \"./storage/adapters/clickhouse.js\";\nexport type {\n ClickHouseClient,\n ClickHouseQueryResult,\n ClickHouseUsageStoreOptions,\n} from \"./storage/adapters/clickhouse.js\";\nexport { S3BillingArchive } from \"./storage/adapters/s3.js\";\nexport type {\n S3ArchiveCommand,\n S3ArchiveCommandInput,\n S3ArchiveClient,\n S3ArchiveCommandResult,\n S3ArchiveClientFactory,\n S3BillingArchiveOptions,\n S3Credentials,\n S3PutObjectOptions,\n} from \"./storage/adapters/s3.js\";\nexport type {\n BillingEventPayloadExport,\n BillingPayloadArchive,\n BillingPayloadArchiveResult,\n OutboxClaimRenewalStore,\n OutboxDeadLetter,\n OutboxDeadLetterCursor,\n OutboxDeadLetterListOptions,\n OutboxDeadLetterPage,\n OutboxEvent,\n OutboxHandler,\n OutboxRecoveryStore,\n OutboxStats,\n OutboxStore,\n UsageChargeExport,\n UsageEventSink,\n} from \"./storage/ports.js\";\n"]}
|