@openlup/platform 0.22.0 → 0.23.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +222 -99
  2. package/README.md +59 -589
  3. package/dist/fulfillment/adapterConformance.js +1 -1
  4. package/dist/fulfillment/bindings.js +1 -1
  5. package/dist/fulfillment/contracts/conformance.d.ts +3 -1
  6. package/dist/fulfillment/contracts/dispatch.d.ts +41 -3
  7. package/dist/fulfillment/contracts/index.d.ts +3 -3
  8. package/dist/fulfillment/contracts/observation.d.ts +21 -1
  9. package/dist/fulfillment/contracts/readback.d.ts +21 -0
  10. package/dist/fulfillment/contracts/store.d.ts +3 -0
  11. package/dist/fulfillment/contracts/sync.d.ts +58 -2
  12. package/dist/fulfillment/dispatchProjection.d.ts +20 -1
  13. package/dist/fulfillment/dispatchProjection.js +95 -6
  14. package/dist/fulfillment/index.d.ts +3 -2
  15. package/dist/fulfillment/index.js +2 -2
  16. package/dist/fulfillment/migrations.d.ts +5 -0
  17. package/dist/fulfillment/migrations.js +1 -0
  18. package/dist/fulfillment/observationProjection.d.ts +24 -3
  19. package/dist/fulfillment/observationProjection.js +65 -12
  20. package/dist/fulfillment/omnipack/client.d.ts +3 -1
  21. package/dist/fulfillment/omnipack/client.js +17 -7
  22. package/dist/fulfillment/omnipack/index.d.ts +4 -1
  23. package/dist/fulfillment/omnipack/index.js +104 -45
  24. package/dist/fulfillment/omnipack/mappers.d.ts +7 -1
  25. package/dist/fulfillment/omnipack/mappers.js +24 -2
  26. package/dist/fulfillment/omnipack/observation.d.ts +11 -4
  27. package/dist/fulfillment/omnipack/observation.js +44 -29
  28. package/dist/fulfillment/omnipack/reconciliation.d.ts +15 -0
  29. package/dist/fulfillment/omnipack/reconciliation.js +55 -0
  30. package/dist/fulfillment/postgresDispatchStore.js +1 -1
  31. package/dist/fulfillment/postgresShipmentSpine.d.ts +8 -1
  32. package/dist/fulfillment/postgresShipmentSpine.js +17 -3
  33. package/dist/fulfillment/postgresStockSyncPort.js +6 -3
  34. package/dist/fulfillment/providerDispatchAcceptance.d.ts +1 -0
  35. package/dist/fulfillment/providerDispatchAcceptance.js +8 -2
  36. package/dist/fulfillment/providerDispatchWorker.d.ts +13 -0
  37. package/dist/fulfillment/providerDispatchWorker.js +47 -20
  38. package/dist/fulfillment/providerReconciliationWorker.d.ts +27 -19
  39. package/dist/fulfillment/providerReconciliationWorker.js +75 -19
  40. package/dist/fulfillment/providerStockSyncWorker.d.ts +5 -1
  41. package/dist/fulfillment/providerStockSyncWorker.js +229 -120
  42. package/dist/fulfillment/providerTrackingReferences.d.ts +3 -2
  43. package/dist/fulfillment/verifiedIngress.d.ts +38 -11
  44. package/dist/fulfillment/verifiedIngress.js +36 -8
  45. package/dist/invoicing/capabilities.d.ts +11 -0
  46. package/dist/invoicing/capabilities.js +10 -0
  47. package/dist/invoicing/contracts/capabilities.d.ts +40 -0
  48. package/dist/invoicing/contracts/capabilities.js +1 -0
  49. package/dist/invoicing/contracts/companyLookup.d.ts +49 -0
  50. package/dist/invoicing/contracts/companyLookup.js +1 -0
  51. package/dist/invoicing/contracts/delivery.d.ts +74 -0
  52. package/dist/invoicing/contracts/delivery.js +1 -0
  53. package/dist/invoicing/contracts/facts.d.ts +100 -0
  54. package/dist/invoicing/contracts/facts.js +1 -0
  55. package/dist/invoicing/contracts/host.d.ts +246 -0
  56. package/dist/invoicing/contracts/host.js +1 -0
  57. package/dist/invoicing/contracts/index.d.ts +16 -0
  58. package/dist/invoicing/contracts/index.js +1 -0
  59. package/dist/invoicing/contracts/provider.d.ts +126 -0
  60. package/dist/invoicing/contracts/provider.js +1 -0
  61. package/dist/invoicing/contracts/settlement.d.ts +66 -0
  62. package/dist/invoicing/contracts/settlement.js +1 -0
  63. package/dist/invoicing/contracts/store.d.ts +267 -0
  64. package/dist/invoicing/contracts/store.js +1 -0
  65. package/dist/invoicing/index.d.ts +1 -0
  66. package/dist/invoicing/index.js +1 -0
  67. package/dist/subscriptions/automaticRenewal.d.ts +44 -0
  68. package/dist/subscriptions/automaticRenewal.js +81 -0
  69. package/dist/subscriptions/automaticRenewalExecution.d.ts +21 -0
  70. package/dist/subscriptions/automaticRenewalExecution.js +44 -0
  71. package/dist/subscriptions/contracts/commands.d.ts +115 -0
  72. package/dist/subscriptions/contracts/commands.js +1 -0
  73. package/dist/subscriptions/contracts/dunning.d.ts +133 -0
  74. package/dist/subscriptions/contracts/dunning.js +1 -0
  75. package/dist/subscriptions/contracts/index.d.ts +6 -0
  76. package/dist/subscriptions/contracts/index.js +1 -0
  77. package/dist/subscriptions/contracts/messages.d.ts +43 -0
  78. package/dist/subscriptions/contracts/messages.js +1 -0
  79. package/dist/subscriptions/contracts/renewal.d.ts +533 -0
  80. package/dist/subscriptions/contracts/renewal.js +1 -0
  81. package/dist/subscriptions/contracts/stockWait.d.ts +73 -0
  82. package/dist/subscriptions/contracts/stockWait.js +1 -0
  83. package/dist/subscriptions/index.d.ts +39 -0
  84. package/dist/subscriptions/index.js +17 -0
  85. package/dist/subscriptions/paymentOutcomes.d.ts +8 -0
  86. package/dist/subscriptions/paymentOutcomes.js +27 -0
  87. package/dist/subscriptions/postgresRenewalStore.d.ts +20 -0
  88. package/dist/subscriptions/postgresRenewalStore.js +61 -0
  89. package/dist/subscriptions/postgresRetryStore.d.ts +78 -0
  90. package/dist/subscriptions/postgresRetryStore.js +142 -0
  91. package/dist/subscriptions/renewalCycleFailureMechanism.d.ts +34 -0
  92. package/dist/subscriptions/renewalCycleFailureMechanism.js +79 -0
  93. package/dist/subscriptions/renewalCycleMechanism.d.ts +46 -0
  94. package/dist/subscriptions/renewalCycleMechanism.js +157 -0
  95. package/dist/subscriptions/renewalCycleRefusalMechanism.d.ts +41 -0
  96. package/dist/subscriptions/renewalCycleRefusalMechanism.js +160 -0
  97. package/dist/subscriptions/renewalIdentity.d.ts +3 -0
  98. package/dist/subscriptions/renewalIdentity.js +4 -0
  99. package/package.json +22 -2
  100. package/release-gates.json +56 -3
  101. package/sql/20261022160000_subscription_retry_lifecycle.sql +328 -0
  102. package/sql/20261022165000_fulfillment_stock_evidence_replay_reopen.sql +30 -0
  103. package/src/fulfillment/adapterConformance.ts +1 -1
  104. package/src/fulfillment/bindings.ts +1 -1
  105. package/src/fulfillment/contracts/conformance.ts +3 -1
  106. package/src/fulfillment/contracts/dispatch.ts +20 -5
  107. package/src/fulfillment/contracts/index.ts +3 -3
  108. package/src/fulfillment/contracts/observation.ts +11 -3
  109. package/src/fulfillment/contracts/readback.ts +13 -0
  110. package/src/fulfillment/contracts/store.ts +1 -0
  111. package/src/fulfillment/contracts/sync.ts +13 -2
  112. package/src/fulfillment/dispatchProjection.ts +92 -7
  113. package/src/fulfillment/index.ts +3 -2
  114. package/src/fulfillment/migrations.ts +1 -0
  115. package/src/fulfillment/observationProjection.ts +64 -13
  116. package/src/fulfillment/omnipack/client.ts +19 -7
  117. package/src/fulfillment/omnipack/index.ts +96 -39
  118. package/src/fulfillment/omnipack/mappers.ts +23 -2
  119. package/src/fulfillment/omnipack/observation.ts +45 -27
  120. package/src/fulfillment/omnipack/reconciliation.ts +56 -0
  121. package/src/fulfillment/postgresDispatchStore.ts +1 -1
  122. package/src/fulfillment/postgresShipmentSpine.ts +21 -4
  123. package/src/fulfillment/postgresStockSyncPort.ts +6 -3
  124. package/src/fulfillment/providerDispatchAcceptance.ts +9 -3
  125. package/src/fulfillment/providerDispatchWorker.ts +48 -20
  126. package/src/fulfillment/providerReconciliationWorker.ts +81 -25
  127. package/src/fulfillment/providerStockSyncWorker.ts +222 -126
  128. package/src/fulfillment/providerTrackingReferences.ts +3 -2
  129. package/src/fulfillment/verifiedIngress.ts +44 -11
  130. package/src/invoicing/capabilities.ts +9 -0
  131. package/src/invoicing/contracts/capabilities.ts +15 -0
  132. package/src/invoicing/contracts/companyLookup.ts +13 -0
  133. package/src/invoicing/contracts/delivery.ts +24 -0
  134. package/src/invoicing/contracts/facts.ts +60 -0
  135. package/src/invoicing/contracts/host.ts +85 -0
  136. package/src/invoicing/contracts/index.ts +16 -0
  137. package/src/invoicing/contracts/provider.ts +78 -0
  138. package/src/invoicing/contracts/settlement.ts +39 -0
  139. package/src/invoicing/contracts/store.ts +98 -0
  140. package/src/invoicing/index.ts +1 -0
  141. package/src/subscriptions/automaticRenewal.ts +87 -0
  142. package/src/subscriptions/automaticRenewalExecution.ts +39 -0
  143. package/src/subscriptions/contracts/commands.ts +46 -0
  144. package/src/subscriptions/contracts/dunning.ts +48 -0
  145. package/src/subscriptions/contracts/index.ts +6 -0
  146. package/src/subscriptions/contracts/messages.ts +18 -0
  147. package/src/subscriptions/contracts/renewal.ts +325 -0
  148. package/src/subscriptions/contracts/stockWait.ts +34 -0
  149. package/src/subscriptions/index.ts +24 -0
  150. package/src/subscriptions/paymentOutcomes.ts +23 -0
  151. package/src/subscriptions/postgresRenewalStore.ts +76 -0
  152. package/src/subscriptions/postgresRetryStore.ts +174 -0
  153. package/src/subscriptions/renewalCycleFailureMechanism.ts +119 -0
  154. package/src/subscriptions/renewalCycleMechanism.ts +225 -0
  155. package/src/subscriptions/renewalCycleRefusalMechanism.ts +215 -0
  156. package/src/subscriptions/renewalIdentity.ts +5 -0
@@ -0,0 +1,41 @@
1
+ import type { PaymentAttemptStatus, PaymentExecutionProviderDecline, ProviderAttemptIdentity } from "@openlup/core/payment";
2
+ import type { HostedRenewalDue, SubscriptionRenewalChargeResult, SubscriptionCycleSnapshotResult, SubscriptionCycleOrderResult, RenewalIntentResult, RenewalPreflightDeps, RenewalFailureDeps, RenewalOutcomeContext, RenewalReplayContext, FailurePropagationResult } from "./contracts/renewal.js";
3
+ import { type RenewalFailurePolicy } from "./renewalCycleFailureMechanism.js";
4
+ export interface RenewalPreflightPolicy<D extends HostedRenewalDue, CI, IR extends RenewalIntentResult> {
5
+ isOperatorOnly(reason: string): boolean;
6
+ logOperatorBlock(fields: {
7
+ subscriptionId: string;
8
+ providerKind: string;
9
+ reason: string;
10
+ }): void;
11
+ readTotal(snapshot: Record<string, unknown>): number | null;
12
+ cycleKey(due: D): string;
13
+ executionKey(cycleKey: string, retry: number, sequence: number): string;
14
+ intentInput(due: D, key: string, snapshots: SubscriptionCycleSnapshotResult, order: SubscriptionCycleOrderResult, total: number, reason: string): CI;
15
+ identity(due: D, key: string, intent: IR, order: SubscriptionCycleOrderResult, total: number): ProviderAttemptIdentity;
16
+ normalizedProvider(provider: string): string;
17
+ failed(due: D, cycleId: string | null, cycleNumber: number | null, orderId: string | null, intentId: string | null, reason: string, propagation?: FailurePropagationResult): SubscriptionRenewalChargeResult;
18
+ invalidTotalsReason: string;
19
+ defaultNow(): string;
20
+ failure: RenewalFailurePolicy;
21
+ }
22
+ export interface RenewalOutcomePolicy {
23
+ declineReason(decline: PaymentExecutionProviderDecline): string;
24
+ classifyDecline(decline: PaymentExecutionProviderDecline): {
25
+ failureClass: string;
26
+ decidedBy: string;
27
+ };
28
+ scaReason: string;
29
+ defaultNow(): string;
30
+ failure: RenewalFailurePolicy;
31
+ }
32
+ export interface RenewalReplayPolicy extends Pick<RenewalOutcomePolicy, "scaReason" | "defaultNow" | "failure"> {
33
+ unacknowledgedReason(status: PaymentAttemptStatus): string;
34
+ }
35
+ /** Alternate preflight owns its full order/intent/failure chain, without reservation or dispatch. */
36
+ export declare function recordRenewalPreflightBlock<D extends HostedRenewalDue, CI, IR extends RenewalIntentResult, M extends string | null | undefined>(deps: RenewalPreflightDeps<CI, IR, M>, due: D, reason: string, policy: RenewalPreflightPolicy<D, CI, IR>): Promise<SubscriptionRenewalChargeResult>;
37
+ export declare function declinedRenewalOutcome<D extends HostedRenewalDue>(deps: RenewalFailureDeps, due: D, context: RenewalOutcomeContext & {
38
+ decline: PaymentExecutionProviderDecline;
39
+ }, policy: RenewalOutcomePolicy): Promise<SubscriptionRenewalChargeResult>;
40
+ export declare function requiresActionRenewalOutcome<D extends HostedRenewalDue>(deps: RenewalFailureDeps, due: D, context: RenewalOutcomeContext, policy: RenewalOutcomePolicy): Promise<SubscriptionRenewalChargeResult>;
41
+ export declare function replayRenewalAttempt<D extends HostedRenewalDue>(deps: RenewalFailureDeps, due: D, ctx: RenewalReplayContext, status: PaymentAttemptStatus, policy: RenewalReplayPolicy): Promise<SubscriptionRenewalChargeResult>;
@@ -0,0 +1,160 @@
1
+ import { propagateRenewalFailure } from "./renewalCycleFailureMechanism.js";
2
+ /** Alternate preflight owns its full order/intent/failure chain, without reservation or dispatch. */
3
+ export async function recordRenewalPreflightBlock(deps, due, reason, policy) {
4
+ if (policy.isOperatorOnly(reason)) {
5
+ policy.logOperatorBlock({ subscriptionId: due.subscriptionId, providerKind: due.providerKind, reason });
6
+ return policy.failed(due, null, null, null, null, reason);
7
+ }
8
+ const snapshots = await deps.persistence.buildCycleSnapshots({
9
+ subscriptionId: due.subscriptionId,
10
+ scheduledAt: due.nextCycleAt,
11
+ });
12
+ const totalGrossMinor = policy.readTotal(snapshots.orderSnapshot);
13
+ if (totalGrossMinor === null) {
14
+ return policy.failed(due, null, snapshots.cycleNumber, null, null, policy.invalidTotalsReason);
15
+ }
16
+ const cycleKey = policy.cycleKey(due);
17
+ const cycleOrder = await deps.persistence.createCycleOrder({
18
+ idempotencyKey: cycleKey,
19
+ subscriptionId: due.subscriptionId,
20
+ cycleNumber: snapshots.cycleNumber,
21
+ scheduledAt: due.nextCycleAt,
22
+ templateSnapshot: snapshots.templateSnapshot,
23
+ pricingSnapshot: snapshots.pricingSnapshot,
24
+ orderSnapshot: snapshots.orderSnapshot,
25
+ });
26
+ const intent = await deps.paymentPort.createIntent(policy.intentInput(due, cycleKey, snapshots, cycleOrder, totalGrossMinor, reason));
27
+ const executionKey = policy.executionKey(cycleKey, snapshots.retryAttempt, snapshots.providerAttemptSequence);
28
+ const attempt = policy.identity(due, executionKey, intent, cycleOrder, totalGrossMinor);
29
+ const propagation = await propagateRenewalFailure(deps.chargeFailurePropagation, {
30
+ kind: "preflight_block",
31
+ executionIdempotencyKey: executionKey,
32
+ providerIdempotencyKey: attempt.providerIdempotencyKey,
33
+ providerRequestFingerprint: attempt.providerRequestFingerprint,
34
+ paymentIntentId: intent.paymentIntentId,
35
+ cycleId: cycleOrder.cycleId,
36
+ subscriptionId: due.subscriptionId,
37
+ orderUuid: cycleOrder.orderUuid,
38
+ providerKind: policy.normalizedProvider(due.providerKind),
39
+ failureReason: reason,
40
+ occurredAt: (deps.now ?? policy.defaultNow)(),
41
+ }, policy.failure);
42
+ return policy.failed(due, cycleOrder.cycleId, snapshots.cycleNumber, cycleOrder.orderUuid, intent.paymentIntentId, reason, propagation);
43
+ }
44
+ export async function declinedRenewalOutcome(deps, due, context, policy) {
45
+ const propagation = await propagateRenewalFailure(deps.chargeFailurePropagation, {
46
+ kind: "provider_declined",
47
+ executionIdempotencyKey: context.executionIdempotencyKey,
48
+ providerIdempotencyKey: context.attemptIdentity.providerIdempotencyKey,
49
+ providerRequestFingerprint: context.attemptIdentity.providerRequestFingerprint,
50
+ paymentIntentId: context.intent.paymentIntentId,
51
+ cycleId: context.cycleOrder.cycleId,
52
+ subscriptionId: due.subscriptionId,
53
+ orderUuid: context.cycleOrder.orderUuid,
54
+ providerKind: due.providerKind,
55
+ failureReason: policy.declineReason(context.decline),
56
+ failureClassification: policy.classifyDecline(context.decline),
57
+ occurredAt: (deps.now ?? policy.defaultNow)(),
58
+ attemptAlreadyPrepared: true,
59
+ }, policy.failure);
60
+ return {
61
+ subscriptionId: due.subscriptionId,
62
+ outcome: "failed",
63
+ cycleId: context.cycleOrder.cycleId,
64
+ cycleNumber: context.snapshots.cycleNumber,
65
+ orderId: context.cycleOrder.orderUuid,
66
+ paymentIntentId: context.intent.paymentIntentId,
67
+ attemptStatus: "failed",
68
+ replayed: context.cycleOrder.replayed || context.intent.replayed,
69
+ dunningCaseId: propagation.dunningCaseId,
70
+ retryAttempt: propagation.retryAttempt,
71
+ applyReplayed: propagation.applyReplayed,
72
+ dunningPropagationFailed: propagation.dunningPropagationFailed,
73
+ };
74
+ }
75
+ export async function requiresActionRenewalOutcome(deps, due, context, policy) {
76
+ const propagation = await propagateRenewalFailure(deps.chargeFailurePropagation, {
77
+ kind: "off_session_requires_action",
78
+ executionIdempotencyKey: context.executionIdempotencyKey,
79
+ providerIdempotencyKey: context.attemptIdentity.providerIdempotencyKey,
80
+ providerRequestFingerprint: context.attemptIdentity.providerRequestFingerprint,
81
+ paymentIntentId: context.intent.paymentIntentId,
82
+ cycleId: context.cycleOrder.cycleId,
83
+ subscriptionId: due.subscriptionId,
84
+ orderUuid: context.cycleOrder.orderUuid,
85
+ providerKind: due.providerKind,
86
+ failureReason: policy.scaReason,
87
+ occurredAt: (deps.now ?? policy.defaultNow)(),
88
+ attemptAlreadyPrepared: true,
89
+ }, policy.failure);
90
+ return {
91
+ subscriptionId: due.subscriptionId,
92
+ outcome: "requires_action",
93
+ cycleId: context.cycleOrder.cycleId,
94
+ cycleNumber: context.snapshots.cycleNumber,
95
+ orderId: context.cycleOrder.orderUuid,
96
+ paymentIntentId: context.intent.paymentIntentId,
97
+ attemptStatus: context.finalizedAttempt.status,
98
+ replayed: context.cycleOrder.replayed || context.intent.replayed,
99
+ dunningCaseId: propagation.dunningCaseId,
100
+ retryAttempt: propagation.retryAttempt,
101
+ applyReplayed: propagation.applyReplayed,
102
+ dunningPropagationFailed: propagation.dunningPropagationFailed,
103
+ };
104
+ }
105
+ export async function replayRenewalAttempt(deps, due, ctx, status, policy) {
106
+ if (status === "requires_action") {
107
+ const propagation = await propagateRenewalFailure(deps.chargeFailurePropagation, {
108
+ kind: "off_session_requires_action",
109
+ executionIdempotencyKey: ctx.executionIdempotencyKey,
110
+ providerIdempotencyKey: ctx.providerIdempotencyKey,
111
+ providerRequestFingerprint: ctx.providerRequestFingerprint,
112
+ paymentIntentId: ctx.paymentIntentId,
113
+ cycleId: ctx.cycleId,
114
+ subscriptionId: due.subscriptionId,
115
+ orderUuid: ctx.orderId,
116
+ providerKind: ctx.providerKind,
117
+ failureReason: policy.scaReason,
118
+ occurredAt: (deps.now ?? policy.defaultNow)(),
119
+ attemptAlreadyPrepared: true,
120
+ }, policy.failure);
121
+ return {
122
+ subscriptionId: due.subscriptionId,
123
+ outcome: "requires_action",
124
+ cycleId: ctx.cycleId,
125
+ cycleNumber: ctx.cycleNumber,
126
+ orderId: ctx.orderId,
127
+ paymentIntentId: ctx.paymentIntentId,
128
+ attemptStatus: status,
129
+ replayed: true,
130
+ dunningCaseId: propagation.dunningCaseId,
131
+ retryAttempt: propagation.retryAttempt,
132
+ applyReplayed: propagation.applyReplayed,
133
+ };
134
+ }
135
+ if (status === "sent_to_provider" || status === "processing") {
136
+ return {
137
+ subscriptionId: due.subscriptionId,
138
+ outcome: "charged",
139
+ cycleId: ctx.cycleId,
140
+ cycleNumber: ctx.cycleNumber,
141
+ orderId: ctx.orderId,
142
+ paymentIntentId: ctx.paymentIntentId,
143
+ attemptStatus: status,
144
+ replayed: true,
145
+ };
146
+ }
147
+ return {
148
+ subscriptionId: due.subscriptionId,
149
+ outcome: "failed",
150
+ cycleId: ctx.cycleId,
151
+ cycleNumber: ctx.cycleNumber,
152
+ orderId: ctx.orderId,
153
+ paymentIntentId: ctx.paymentIntentId,
154
+ attemptStatus: status,
155
+ replayed: true,
156
+ dunningCaseId: null,
157
+ retryAttempt: null,
158
+ reason: policy.unacknowledgedReason(status),
159
+ };
160
+ }
@@ -0,0 +1,3 @@
1
+ import type { RenewalIdentity, RenewalSchedule } from "./contracts/renewal.js";
2
+ /** The host's existing dialect owns every byte; no normalization or new prefix. */
3
+ export declare function renewalIdentity(schedule: RenewalSchedule, keys: (schedule: RenewalSchedule) => RenewalIdentity): RenewalIdentity;
@@ -0,0 +1,4 @@
1
+ /** The host's existing dialect owns every byte; no normalization or new prefix. */
2
+ export function renewalIdentity(schedule, keys) {
3
+ return keys(schedule);
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openlup/platform",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "private": false,
5
5
  "description": "Runnable server substrate: Node HTTP runtime, BFF dispatch, scheduler, storage, data gateways and bundle composition; development preview.",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "api:update": "npm run build && node --experimental-strip-types ./scripts/api-contract.ts --update"
32
32
  },
33
33
  "peerDependencies": {
34
- "@openlup/core": "0.22.0",
34
+ "@openlup/core": "0.23.0",
35
35
  "pg": "^8.22.0",
36
36
  "@aws-sdk/client-s3": "^3.1144.0",
37
37
  "@types/pg": "^8.20.0"
@@ -210,6 +210,26 @@
210
210
  "types": "./dist/fulfillment/omnipack/index.d.ts",
211
211
  "import": "./dist/fulfillment/omnipack/index.js",
212
212
  "default": "./dist/fulfillment/omnipack/index.js"
213
+ },
214
+ "./subscriptions": {
215
+ "types": "./dist/subscriptions/index.d.ts",
216
+ "import": "./dist/subscriptions/index.js",
217
+ "default": "./dist/subscriptions/index.js"
218
+ },
219
+ "./subscriptions/contracts": {
220
+ "types": "./dist/subscriptions/contracts/index.d.ts",
221
+ "import": "./dist/subscriptions/contracts/index.js",
222
+ "default": "./dist/subscriptions/contracts/index.js"
223
+ },
224
+ "./invoicing": {
225
+ "types": "./dist/invoicing/index.d.ts",
226
+ "import": "./dist/invoicing/index.js",
227
+ "default": "./dist/invoicing/index.js"
228
+ },
229
+ "./invoicing/contracts": {
230
+ "types": "./dist/invoicing/contracts/index.d.ts",
231
+ "import": "./dist/invoicing/contracts/index.js",
232
+ "default": "./dist/invoicing/contracts/index.js"
213
233
  }
214
234
  },
215
235
  "repository": {
@@ -455,6 +455,57 @@
455
455
  ],
456
456
  "entrypoint": "dist/fulfillment/omnipack/index.d.ts",
457
457
  "snapshot": "api/fulfillment-omnipack.api.md"
458
+ },
459
+ "./subscriptions": {
460
+ "role": "capability",
461
+ "maturity": "experimental",
462
+ "compatibilityPolicy": "internal-candidate",
463
+ "packageSmokeEvidence": [
464
+ "test/packageBoundary.test.ts",
465
+ "test/subscriptions/contracts.test.ts",
466
+ "test/subscriptions/portFit.test.ts",
467
+ "test/subscriptions/renewalKeys.test.ts",
468
+ "test/subscriptions/renewalCycleMechanism.test.ts"
469
+ ],
470
+ "entrypoint": "dist/subscriptions/index.d.ts",
471
+ "snapshot": "api/subscriptions.api.md"
472
+ },
473
+ "./subscriptions/contracts": {
474
+ "role": "capability",
475
+ "maturity": "experimental",
476
+ "compatibilityPolicy": "internal-candidate",
477
+ "packageSmokeEvidence": [
478
+ "test/packageBoundary.test.ts",
479
+ "test/subscriptions/contracts.test.ts",
480
+ "test/subscriptions/portFit.test.ts",
481
+ "test/subscriptions/renewalKeys.test.ts"
482
+ ],
483
+ "entrypoint": "dist/subscriptions/contracts/index.d.ts",
484
+ "snapshot": "api/subscriptions-contracts.api.md"
485
+ },
486
+ "./invoicing": {
487
+ "role": "capability",
488
+ "maturity": "experimental",
489
+ "compatibilityPolicy": "internal-candidate",
490
+ "packageSmokeEvidence": [
491
+ "test/packageBoundary.test.ts",
492
+ "test/invoicing/contracts.test.ts",
493
+ "test/invoicing/portFit.test.ts"
494
+ ],
495
+ "entrypoint": "dist/invoicing/index.d.ts",
496
+ "snapshot": "api/invoicing.api.md"
497
+ },
498
+ "./invoicing/contracts": {
499
+ "role": "capability",
500
+ "maturity": "experimental",
501
+ "compatibilityPolicy": "internal-candidate",
502
+ "packageSmokeEvidence": [
503
+ "test/packageBoundary.test.ts",
504
+ "test/invoicing/contracts.test.ts",
505
+ "test/invoicing/portFit.test.ts"
506
+ ],
507
+ "entrypoint": "dist/invoicing/contracts/index.d.ts",
508
+ "snapshot": "api/invoicing-contracts.api.md"
458
509
  }
459
510
  },
460
511
  "pack": {
@@ -470,8 +521,8 @@
470
521
  "maxUnpackedBytes": 5734400,
471
522
  "maxFiles": 2100,
472
523
  "baseline": {
473
- "version": "0.21.0",
474
- "packedBytes": 1008887
524
+ "version": "0.22.0",
525
+ "packedBytes": 1185082
475
526
  },
476
527
  "browserEntries": {
477
528
  "./catalog/contracts": 4096,
@@ -482,7 +533,9 @@
482
533
  "./promotions/contracts": 32,
483
534
  "./shipping/contracts": 32,
484
535
  "./payments/contracts": 32,
485
- "./fulfillment/contracts": 32
536
+ "./fulfillment/contracts": 32,
537
+ "./subscriptions/contracts": 32,
538
+ "./invoicing/contracts": 32
486
539
  }
487
540
  }
488
541
  }