@strimz/shared-types 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -8
- package/dist/events.cjs +1 -25
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +54 -860
- package/dist/events.d.ts +54 -860
- package/dist/events.js +2 -23
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +0 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- package/dist/webhooks.cjs +0 -3
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +18 -18
- package/dist/webhooks.d.ts +18 -18
- package/dist/webhooks.js +0 -3
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/events.ts +1 -24
- package/src/webhooks.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { ComplianceLog, ComplianceProvider, ComplianceScreeningContext, Complian
|
|
|
11
11
|
export { AgentActionOutcome, AgentActionType, AgentActivityLog, AgentCapability, AgentIdentity, AgentJob, AgentJobStatus, AgentMerchantConfig, CreateAgentJobInput, CreateAgentJobParsed, UpdateAgentConfigInput, UpdateAgentConfigParsed, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, createAgentJobInputSchema, updateAgentConfigInputSchema } from './agents.js';
|
|
12
12
|
export { CreateStorefrontInput, CreateStorefrontParsed, CreateStorefrontProductInput, CreateStorefrontProductParsed, Storefront, StorefrontCheckoutInput, StorefrontCheckoutParsed, StorefrontCheckoutResponse, StorefrontProduct, StorefrontProductType, StorefrontStatus, createStorefrontInputSchema, createStorefrontProductInputSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema } from './storefronts.js';
|
|
13
13
|
export { CreateInvoiceInput, CreateInvoiceParsed, Invoice, InvoiceLineItem, InvoiceStatus, createInvoiceInputSchema, invoiceLineItemSchema, invoiceSchema, invoiceStatusSchema } from './invoices.js';
|
|
14
|
-
export {
|
|
14
|
+
export { AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.js';
|
|
15
15
|
import { z } from 'zod';
|
|
16
16
|
export { AdminMerchantStats, AdminOverview, AdminStatsModeQuery, AdminTopMerchant, AdminTopMerchants, AdminTopMerchantsQuery, AdminVolumeDay, AdminVolumeQuery, AdminVolumeSeries, CurrencyAmounts, Forecast, ForecastConfidence, Money, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, StatsForecast, StatsLtv, StatsLtvQuery, StatsLtvQueryParsed, StatsLtvRow, StatsMrr, StatsSummary, StatsVolume, StatsVolumeDay, StatsVolumeQuery, VolumeWindow, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, currencyAmountsSchema, forecastConfidenceSchema, forecastSchema, moneySchema, paymentCurrencies, resolveStatsVolumeRange, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, volumeWindowSchema } from './analytics.js';
|
|
17
17
|
|
package/dist/index.js
CHANGED
|
@@ -556,16 +556,13 @@ var webhookEventNameSchema = z.enum([
|
|
|
556
556
|
"subscription.charged",
|
|
557
557
|
"subscription.charge_failed",
|
|
558
558
|
"subscription.recovery_attempt",
|
|
559
|
-
"subscription.recovery_outcome",
|
|
560
559
|
"subscription.cancelled",
|
|
561
560
|
"subscription.lapsed",
|
|
562
561
|
"refund.created",
|
|
563
562
|
"refund.completed",
|
|
564
|
-
"refund.failed",
|
|
565
563
|
"invoice.created",
|
|
566
564
|
"invoice.paid",
|
|
567
565
|
"invoice.overdue",
|
|
568
|
-
"agent.action_executed",
|
|
569
566
|
"agent.job_proposed",
|
|
570
567
|
"agent.job_completed",
|
|
571
568
|
"agent.job_disputed",
|
|
@@ -931,13 +928,6 @@ var subscriptionRecoveryAttemptEventSchema = envelope(
|
|
|
931
928
|
"subscription.recovery_attempt",
|
|
932
929
|
z.object({ subscription: subscriptionSchema, attemptNumber: z.number().int().min(1) })
|
|
933
930
|
);
|
|
934
|
-
var subscriptionRecoveryOutcomeEventSchema = envelope(
|
|
935
|
-
"subscription.recovery_outcome",
|
|
936
|
-
z.object({
|
|
937
|
-
subscription: subscriptionSchema,
|
|
938
|
-
outcome: z.enum(["recovered", "churned"])
|
|
939
|
-
})
|
|
940
|
-
);
|
|
941
931
|
var subscriptionCancelledEventSchema = envelope(
|
|
942
932
|
"subscription.cancelled",
|
|
943
933
|
subscriptionSchema
|
|
@@ -948,20 +938,12 @@ var refundCompletedEventSchema = envelope(
|
|
|
948
938
|
"refund.completed",
|
|
949
939
|
z.object({ refund: refundSchema, transaction: transactionSchema })
|
|
950
940
|
);
|
|
951
|
-
var refundFailedEventSchema = envelope(
|
|
952
|
-
"refund.failed",
|
|
953
|
-
z.object({ refund: refundSchema, reason: z.string() })
|
|
954
|
-
);
|
|
955
941
|
var invoiceCreatedEventSchema = envelope("invoice.created", invoiceSchema);
|
|
956
942
|
var invoicePaidEventSchema = envelope(
|
|
957
943
|
"invoice.paid",
|
|
958
944
|
z.object({ invoice: invoiceSchema, transaction: transactionSchema })
|
|
959
945
|
);
|
|
960
946
|
var invoiceOverdueEventSchema = envelope("invoice.overdue", invoiceSchema);
|
|
961
|
-
var agentActionExecutedEventSchema = envelope(
|
|
962
|
-
"agent.action_executed",
|
|
963
|
-
agentActivityLogSchema
|
|
964
|
-
);
|
|
965
947
|
var agentJobProposedEventSchema = envelope("agent.job_proposed", agentJobSchema);
|
|
966
948
|
var agentJobCompletedEventSchema = envelope("agent.job_completed", agentJobSchema);
|
|
967
949
|
var agentJobDisputedEventSchema = envelope("agent.job_disputed", agentJobSchema);
|
|
@@ -981,16 +963,13 @@ var webhookEventSchema = z.discriminatedUnion("type", [
|
|
|
981
963
|
subscriptionChargedEventSchema,
|
|
982
964
|
subscriptionChargeFailedEventSchema,
|
|
983
965
|
subscriptionRecoveryAttemptEventSchema,
|
|
984
|
-
subscriptionRecoveryOutcomeEventSchema,
|
|
985
966
|
subscriptionCancelledEventSchema,
|
|
986
967
|
subscriptionLapsedEventSchema,
|
|
987
968
|
refundCreatedEventSchema,
|
|
988
969
|
refundCompletedEventSchema,
|
|
989
|
-
refundFailedEventSchema,
|
|
990
970
|
invoiceCreatedEventSchema,
|
|
991
971
|
invoicePaidEventSchema,
|
|
992
972
|
invoiceOverdueEventSchema,
|
|
993
|
-
agentActionExecutedEventSchema,
|
|
994
973
|
agentJobProposedEventSchema,
|
|
995
974
|
agentJobCompletedEventSchema,
|
|
996
975
|
agentJobDisputedEventSchema,
|
|
@@ -1279,6 +1258,6 @@ var adminTopMerchantsSchema = z.object({
|
|
|
1279
1258
|
data: z.array(adminTopMerchantSchema)
|
|
1280
1259
|
});
|
|
1281
1260
|
|
|
1282
|
-
export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema,
|
|
1261
|
+
export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, checkoutResultErrorCodeSchema, checkoutResultErrorCodes, checkoutResultMessageSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionPlanInputSchema, createWebhookEndpointInputSchema, createWebhookEndpointOutputSchema, currencyAmountsSchema, customerSchema, emailSchema, evmAddressSchema, evmTxHashSchema, forecastConfidenceSchema, forecastSchema, httpUrlSchema, httpsUrlSchema, idSchema, inviteMemberInputSchema, invoiceCreatedEventSchema, invoiceLineItemSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, invoiceSchema, invoiceStatusSchema, isoTimestampSchema, loginInputSchema, loginOutputSchema, makePaginatedSchema, markNotificationsReadResponseSchema, merchantBalanceSchema, merchantEmailPrefsSchema, merchantMemberSchema, merchantPublicBrandSchema, merchantRoleSchema, merchantSchema, merchantStatusSchema, merchantTierSchema, metadataSchema, modeSchema, moneySchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, onboardMerchantInputSchema, paginationInputSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentCurrencies, paymentCurrencySchema, paymentFailedEventSchema, paymentSessionSchema, paymentSessionStatusSchema, refundCompletedEventSchema, refundCreateOutputSchema, refundCreatedEventSchema, refundReasonSchema, refundSchema, refundSigningInstructionsSchema, refundStatusSchema, replayDeliveryInputSchema, resolveStatsVolumeRange, rotateApiKeyInputSchema, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema, submitPaymentSessionInputSchema, submitRefundSignatureInputSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargeOutcomeSchema, subscriptionChargeSchema, subscriptionChargeStatusSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionEnrolmentTermsSchema, subscriptionIntervalSchema, subscriptionLapsedEventSchema, subscriptionPlanSchema, subscriptionPlanStatusSchema, subscriptionRecoveryAttemptEventSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, upsertCustomerInputSchema, volumeWindowSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
|
|
1283
1262
|
//# sourceMappingURL=index.js.map
|
|
1284
1263
|
//# sourceMappingURL=index.js.map
|