@openlup/platform 0.27.0 → 0.28.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 (115) hide show
  1. package/CHANGELOG.md +167 -109
  2. package/README.md +111 -8
  3. package/dist/account-support/accountReadFacade.d.ts +8 -0
  4. package/dist/account-support/accountReadFacade.js +10 -0
  5. package/dist/account-support/accountReadModels.d.ts +69 -0
  6. package/dist/account-support/accountReadModels.js +272 -0
  7. package/dist/account-support/bindings.d.ts +23 -0
  8. package/dist/account-support/bindings.js +16 -0
  9. package/dist/account-support/contracts/account.d.ts +281 -0
  10. package/dist/account-support/contracts/account.js +1 -0
  11. package/dist/account-support/contracts/capabilities.d.ts +44 -0
  12. package/dist/account-support/contracts/capabilities.js +1 -0
  13. package/dist/account-support/contracts/commands.d.ts +307 -0
  14. package/dist/account-support/contracts/commands.js +1 -0
  15. package/dist/account-support/contracts/customer360.d.ts +154 -0
  16. package/dist/account-support/contracts/customer360.js +1 -0
  17. package/dist/account-support/contracts/index.d.ts +10 -0
  18. package/dist/account-support/contracts/index.js +1 -0
  19. package/dist/account-support/contracts/invoice.d.ts +79 -0
  20. package/dist/account-support/contracts/invoice.js +1 -0
  21. package/dist/account-support/contracts/operator.d.ts +289 -0
  22. package/dist/account-support/contracts/operator.js +1 -0
  23. package/dist/account-support/contribution.d.ts +24 -0
  24. package/dist/account-support/contribution.js +22 -0
  25. package/dist/account-support/customer360.d.ts +106 -0
  26. package/dist/account-support/customer360.js +163 -0
  27. package/dist/account-support/customerAccountReadDiagnostics.d.ts +11 -0
  28. package/dist/account-support/customerAccountReadDiagnostics.js +71 -0
  29. package/dist/account-support/index.d.ts +26 -0
  30. package/dist/account-support/index.js +15 -0
  31. package/dist/account-support/invoiceAccess.d.ts +57 -0
  32. package/dist/account-support/invoiceAccess.js +40 -0
  33. package/dist/account-support/migrations.d.ts +14 -0
  34. package/dist/account-support/migrations.js +7 -0
  35. package/dist/account-support/operatorAuthority.d.ts +67 -0
  36. package/dist/account-support/operatorAuthority.js +379 -0
  37. package/dist/account-support/operatorRecovery.d.ts +66 -0
  38. package/dist/account-support/operatorRecovery.js +129 -0
  39. package/dist/account-support/orderHistory.d.ts +50 -0
  40. package/dist/account-support/orderHistory.js +188 -0
  41. package/dist/account-support/paymentMethodComposition.d.ts +5 -0
  42. package/dist/account-support/paymentMethodComposition.js +4 -0
  43. package/dist/account-support/postgresOperatorAuthority.d.ts +16 -0
  44. package/dist/account-support/postgresOperatorAuthority.js +93 -0
  45. package/dist/account-support/selfService.d.ts +6 -0
  46. package/dist/account-support/selfService.js +81 -0
  47. package/dist/account-support/subscriptionCommandCodec.d.ts +10 -0
  48. package/dist/account-support/subscriptionCommandCodec.js +38 -0
  49. package/dist/catalog/draftSchemas.d.ts +1 -1
  50. package/dist/catalog/foundationSchemas.d.ts +3 -3
  51. package/dist/catalog/resolvedSkuProjection.d.ts +2 -2
  52. package/dist/catalog/sellableSchemas.d.ts +2 -2
  53. package/dist/commerce/checkoutCommandSchemas.d.ts +2 -2
  54. package/dist/commerce/checkoutResumeSchemas.d.ts +6 -6
  55. package/dist/commerce/checkoutSchemas.d.ts +12 -12
  56. package/dist/commerce/commerceReturnsPort.d.ts +2 -2
  57. package/dist/commerce/configuratorIntentSchemas.d.ts +2 -2
  58. package/dist/commerce/contractPrimitives.d.ts +8 -8
  59. package/dist/commerce/customerDefaultsSnapshotSchemas.d.ts +4 -4
  60. package/dist/commerce/model/omsReadModelHelpers.d.ts +4 -4
  61. package/dist/commerce/offerAvailabilitySchemas.d.ts +1 -1
  62. package/dist/commerce/oms/omsContractBase.d.ts +15 -15
  63. package/dist/commerce/oms/omsContractReadAuxSchemas.d.ts +11 -11
  64. package/dist/commerce/oms/omsContractReadSchemas.d.ts +121 -121
  65. package/dist/commerce/oms/omsContractRequests.d.ts +13 -13
  66. package/dist/commerce/oms/omsControlPlane.d.ts +22 -22
  67. package/dist/commerce/oms/omsFulfillmentContractSchemas.d.ts +12 -12
  68. package/dist/commerce/oms/omsFulfillmentDebugSchemas.d.ts +12 -12
  69. package/dist/commerce/orderReviewContracts.d.ts +33 -33
  70. package/dist/commerce/outboxEventSchemas.d.ts +4 -4
  71. package/dist/commerce/schemas.d.ts +21 -21
  72. package/dist/commerce/server/orderReviewHandlers.d.ts +10 -10
  73. package/dist/communications/consentPurposeRegistry.d.ts +1 -1
  74. package/dist/communications/newsletterIntegrationContracts.d.ts +8 -8
  75. package/dist/composition/accountSupportContribution.d.ts +18 -0
  76. package/dist/composition/accountSupportContribution.js +21 -0
  77. package/dist/composition/index.d.ts +1 -0
  78. package/dist/composition/index.js +1 -0
  79. package/dist/fulfillment/handlerSchemas.d.ts +40 -40
  80. package/dist/identity/customerContracts.d.ts +2 -2
  81. package/dist/invoicing/snapshot.d.ts +1 -1
  82. package/dist/pricing/acquisitionQuoteBinding.d.ts +1 -1
  83. package/dist/pricing/catalogFactsSchemas.d.ts +1 -1
  84. package/dist/pricing/quotePromotionEvidence.d.ts +1 -1
  85. package/dist/pricing/quoteSchemas.d.ts +56 -56
  86. package/dist/promotions/adminPromotionCodesContracts.d.ts +30 -30
  87. package/dist/promotions/adminPromotionsContracts.d.ts +14 -14
  88. package/package.json +12 -2
  89. package/release-gates.json +30 -3
  90. package/sql/20261026120000_account_support_operator_authority.sql +693 -0
  91. package/src/account-support/accountReadFacade.ts +15 -0
  92. package/src/account-support/accountReadModels.ts +371 -0
  93. package/src/account-support/bindings.ts +28 -0
  94. package/src/account-support/contracts/account.ts +306 -0
  95. package/src/account-support/contracts/capabilities.ts +30 -0
  96. package/src/account-support/contracts/commands.ts +243 -0
  97. package/src/account-support/contracts/customer360.ts +150 -0
  98. package/src/account-support/contracts/index.ts +141 -0
  99. package/src/account-support/contracts/invoice.ts +44 -0
  100. package/src/account-support/contracts/operator.ts +123 -0
  101. package/src/account-support/contribution.ts +35 -0
  102. package/src/account-support/customer360.ts +268 -0
  103. package/src/account-support/customerAccountReadDiagnostics.ts +83 -0
  104. package/src/account-support/index.ts +72 -0
  105. package/src/account-support/invoiceAccess.ts +63 -0
  106. package/src/account-support/migrations.ts +7 -0
  107. package/src/account-support/operatorAuthority.ts +393 -0
  108. package/src/account-support/operatorRecovery.ts +136 -0
  109. package/src/account-support/orderHistory.ts +309 -0
  110. package/src/account-support/paymentMethodComposition.ts +8 -0
  111. package/src/account-support/postgresOperatorAuthority.ts +92 -0
  112. package/src/account-support/selfService.ts +83 -0
  113. package/src/account-support/subscriptionCommandCodec.ts +48 -0
  114. package/src/composition/accountSupportContribution.ts +28 -0
  115. package/src/composition/index.ts +1 -0
@@ -4,19 +4,19 @@ export declare const COMMERCE_FULFILLMENT_STATUSES: readonly ["created", "packed
4
4
  export declare const COMMERCE_FULFILLMENT_OPERATION_TYPES: readonly ["created", "packed", "provider_attempt_recorded", "label_created", "handed_over", "tracking_event_recorded", "cancelled"];
5
5
  export declare const COMMERCE_FULFILLMENT_PROVIDER_ATTEMPT_STATUSES: readonly ["recorded", "succeeded", "failed"];
6
6
  export declare const commerceFulfillmentStatusSchema: z.ZodEnum<{
7
- created: "created";
8
7
  cancelled: "cancelled";
9
8
  delivered: "delivered";
9
+ exception: "exception";
10
+ created: "created";
10
11
  packed: "packed";
11
12
  label_pending: "label_pending";
12
13
  label_created: "label_created";
13
14
  handed_over: "handed_over";
14
15
  in_transit: "in_transit";
15
- exception: "exception";
16
16
  }>;
17
17
  export declare const commerceFulfillmentOperationTypeSchema: z.ZodEnum<{
18
- created: "created";
19
18
  cancelled: "cancelled";
19
+ created: "created";
20
20
  packed: "packed";
21
21
  label_created: "label_created";
22
22
  handed_over: "handed_over";
@@ -29,23 +29,23 @@ export declare const commerceFulfillmentProviderAttemptStatusSchema: z.ZodEnum<{
29
29
  recorded: "recorded";
30
30
  }>;
31
31
  export declare const commerceFulfillmentPaymentStatusSchema: z.ZodEnum<{
32
- expired: "expired";
33
- created: "created";
32
+ requires_action: "requires_action";
34
33
  failed: "failed";
35
34
  cancelled: "cancelled";
35
+ created: "created";
36
+ expired: "expired";
36
37
  refunded: "refunded";
37
38
  not_started: "not_started";
38
- requires_action: "requires_action";
39
39
  processing: "processing";
40
40
  partially_refunded: "partially_refunded";
41
41
  disputed: "disputed";
42
42
  succeeded: "succeeded";
43
43
  }>;
44
44
  export declare const commerceFulfillmentInventoryStatusSchema: z.ZodEnum<{
45
+ missing: "missing";
45
46
  expired: "expired";
46
47
  not_checked: "not_checked";
47
48
  reserved: "reserved";
48
- missing: "missing";
49
49
  released: "released";
50
50
  consumed: "consumed";
51
51
  review_required: "review_required";
@@ -82,13 +82,13 @@ export declare const commerceFulfillmentLineSchema: z.ZodObject<{
82
82
  export declare const commerceFulfillmentPaymentSummarySchema: z.ZodObject<{
83
83
  paymentIntentId: z.ZodGUID;
84
84
  paymentStatus: z.ZodEnum<{
85
- expired: "expired";
86
- created: "created";
85
+ requires_action: "requires_action";
87
86
  failed: "failed";
88
87
  cancelled: "cancelled";
88
+ created: "created";
89
+ expired: "expired";
89
90
  refunded: "refunded";
90
91
  not_started: "not_started";
91
- requires_action: "requires_action";
92
92
  processing: "processing";
93
93
  partially_refunded: "partially_refunded";
94
94
  disputed: "disputed";
@@ -98,10 +98,10 @@ export declare const commerceFulfillmentPaymentSummarySchema: z.ZodObject<{
98
98
  }, z.core.$strict>;
99
99
  export declare const commerceFulfillmentInventorySummarySchema: z.ZodObject<{
100
100
  status: z.ZodEnum<{
101
+ missing: "missing";
101
102
  expired: "expired";
102
103
  not_checked: "not_checked";
103
104
  reserved: "reserved";
104
- missing: "missing";
105
105
  released: "released";
106
106
  consumed: "consumed";
107
107
  review_required: "review_required";
@@ -132,8 +132,8 @@ export declare const commerceFulfillmentOmsEligibilitySchema: z.ZodObject<{
132
132
  export declare const commerceFulfillmentOperationSchema: z.ZodObject<{
133
133
  id: z.ZodGUID;
134
134
  type: z.ZodEnum<{
135
- created: "created";
136
135
  cancelled: "cancelled";
136
+ created: "created";
137
137
  packed: "packed";
138
138
  label_created: "label_created";
139
139
  handed_over: "handed_over";
@@ -149,15 +149,15 @@ export declare const commerceFulfillmentOrderSchema: z.ZodObject<{
149
149
  orderId: z.ZodGUID;
150
150
  clientId: z.ZodNullable<z.ZodGUID>;
151
151
  status: z.ZodEnum<{
152
- created: "created";
153
152
  cancelled: "cancelled";
154
153
  delivered: "delivered";
154
+ exception: "exception";
155
+ created: "created";
155
156
  packed: "packed";
156
157
  label_pending: "label_pending";
157
158
  label_created: "label_created";
158
159
  handed_over: "handed_over";
159
160
  in_transit: "in_transit";
160
- exception: "exception";
161
161
  }>;
162
162
  providerKind: z.ZodNullable<z.ZodString>;
163
163
  providerTrackingId: z.ZodNullable<z.ZodString>;
@@ -184,13 +184,13 @@ export declare const commerceFulfillmentOrderSchema: z.ZodObject<{
184
184
  payment: z.ZodObject<{
185
185
  paymentIntentId: z.ZodGUID;
186
186
  paymentStatus: z.ZodEnum<{
187
- expired: "expired";
188
- created: "created";
187
+ requires_action: "requires_action";
189
188
  failed: "failed";
190
189
  cancelled: "cancelled";
190
+ created: "created";
191
+ expired: "expired";
191
192
  refunded: "refunded";
192
193
  not_started: "not_started";
193
- requires_action: "requires_action";
194
194
  processing: "processing";
195
195
  partially_refunded: "partially_refunded";
196
196
  disputed: "disputed";
@@ -200,10 +200,10 @@ export declare const commerceFulfillmentOrderSchema: z.ZodObject<{
200
200
  }, z.core.$strict>;
201
201
  inventory: z.ZodObject<{
202
202
  status: z.ZodEnum<{
203
+ missing: "missing";
203
204
  expired: "expired";
204
205
  not_checked: "not_checked";
205
206
  reserved: "reserved";
206
- missing: "missing";
207
207
  released: "released";
208
208
  consumed: "consumed";
209
209
  review_required: "review_required";
@@ -234,8 +234,8 @@ export declare const commerceFulfillmentOrderSchema: z.ZodObject<{
234
234
  latestOperation: z.ZodNullable<z.ZodObject<{
235
235
  id: z.ZodGUID;
236
236
  type: z.ZodEnum<{
237
- created: "created";
238
237
  cancelled: "cancelled";
238
+ created: "created";
239
239
  packed: "packed";
240
240
  label_created: "label_created";
241
241
  handed_over: "handed_over";
@@ -253,15 +253,15 @@ export declare const adminCommerceFulfillmentOrdersListRequestSchema: z.ZodObjec
253
253
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
254
254
  pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
255
255
  status: z.ZodOptional<z.ZodEnum<{
256
- created: "created";
257
256
  cancelled: "cancelled";
258
257
  delivered: "delivered";
258
+ exception: "exception";
259
+ created: "created";
259
260
  packed: "packed";
260
261
  label_pending: "label_pending";
261
262
  label_created: "label_created";
262
263
  handed_over: "handed_over";
263
264
  in_transit: "in_transit";
264
- exception: "exception";
265
265
  }>>;
266
266
  }, z.core.$strict>;
267
267
  export declare const adminCommerceFulfillmentOrderDetailRequestSchema: z.ZodObject<{
@@ -307,8 +307,8 @@ export declare const adminCommerceFulfillmentTrackingEventRequestSchema: z.ZodOb
307
307
  fulfillmentOrderId: z.ZodGUID;
308
308
  status: z.ZodEnum<{
309
309
  delivered: "delivered";
310
- in_transit: "in_transit";
311
310
  exception: "exception";
311
+ in_transit: "in_transit";
312
312
  }>;
313
313
  providerTrackingId: z.ZodOptional<z.ZodString>;
314
314
  rawEvent: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -327,15 +327,15 @@ export declare const adminCommerceFulfillmentOrdersListResponseSchema: z.ZodObje
327
327
  orderId: z.ZodGUID;
328
328
  clientId: z.ZodNullable<z.ZodGUID>;
329
329
  status: z.ZodEnum<{
330
- created: "created";
331
330
  cancelled: "cancelled";
332
331
  delivered: "delivered";
332
+ exception: "exception";
333
+ created: "created";
333
334
  packed: "packed";
334
335
  label_pending: "label_pending";
335
336
  label_created: "label_created";
336
337
  handed_over: "handed_over";
337
338
  in_transit: "in_transit";
338
- exception: "exception";
339
339
  }>;
340
340
  providerKind: z.ZodNullable<z.ZodString>;
341
341
  providerTrackingId: z.ZodNullable<z.ZodString>;
@@ -362,13 +362,13 @@ export declare const adminCommerceFulfillmentOrdersListResponseSchema: z.ZodObje
362
362
  payment: z.ZodObject<{
363
363
  paymentIntentId: z.ZodGUID;
364
364
  paymentStatus: z.ZodEnum<{
365
- expired: "expired";
366
- created: "created";
365
+ requires_action: "requires_action";
367
366
  failed: "failed";
368
367
  cancelled: "cancelled";
368
+ created: "created";
369
+ expired: "expired";
369
370
  refunded: "refunded";
370
371
  not_started: "not_started";
371
- requires_action: "requires_action";
372
372
  processing: "processing";
373
373
  partially_refunded: "partially_refunded";
374
374
  disputed: "disputed";
@@ -378,10 +378,10 @@ export declare const adminCommerceFulfillmentOrdersListResponseSchema: z.ZodObje
378
378
  }, z.core.$strict>;
379
379
  inventory: z.ZodObject<{
380
380
  status: z.ZodEnum<{
381
+ missing: "missing";
381
382
  expired: "expired";
382
383
  not_checked: "not_checked";
383
384
  reserved: "reserved";
384
- missing: "missing";
385
385
  released: "released";
386
386
  consumed: "consumed";
387
387
  review_required: "review_required";
@@ -412,8 +412,8 @@ export declare const adminCommerceFulfillmentOrdersListResponseSchema: z.ZodObje
412
412
  latestOperation: z.ZodNullable<z.ZodObject<{
413
413
  id: z.ZodGUID;
414
414
  type: z.ZodEnum<{
415
- created: "created";
416
415
  cancelled: "cancelled";
416
+ created: "created";
417
417
  packed: "packed";
418
418
  label_created: "label_created";
419
419
  handed_over: "handed_over";
@@ -438,15 +438,15 @@ export declare const adminCommerceFulfillmentOrderDetailResponseSchema: z.ZodObj
438
438
  orderId: z.ZodGUID;
439
439
  clientId: z.ZodNullable<z.ZodGUID>;
440
440
  status: z.ZodEnum<{
441
- created: "created";
442
441
  cancelled: "cancelled";
443
442
  delivered: "delivered";
443
+ exception: "exception";
444
+ created: "created";
444
445
  packed: "packed";
445
446
  label_pending: "label_pending";
446
447
  label_created: "label_created";
447
448
  handed_over: "handed_over";
448
449
  in_transit: "in_transit";
449
- exception: "exception";
450
450
  }>;
451
451
  providerKind: z.ZodNullable<z.ZodString>;
452
452
  providerTrackingId: z.ZodNullable<z.ZodString>;
@@ -473,13 +473,13 @@ export declare const adminCommerceFulfillmentOrderDetailResponseSchema: z.ZodObj
473
473
  payment: z.ZodObject<{
474
474
  paymentIntentId: z.ZodGUID;
475
475
  paymentStatus: z.ZodEnum<{
476
- expired: "expired";
477
- created: "created";
476
+ requires_action: "requires_action";
478
477
  failed: "failed";
479
478
  cancelled: "cancelled";
479
+ created: "created";
480
+ expired: "expired";
480
481
  refunded: "refunded";
481
482
  not_started: "not_started";
482
- requires_action: "requires_action";
483
483
  processing: "processing";
484
484
  partially_refunded: "partially_refunded";
485
485
  disputed: "disputed";
@@ -489,10 +489,10 @@ export declare const adminCommerceFulfillmentOrderDetailResponseSchema: z.ZodObj
489
489
  }, z.core.$strict>;
490
490
  inventory: z.ZodObject<{
491
491
  status: z.ZodEnum<{
492
+ missing: "missing";
492
493
  expired: "expired";
493
494
  not_checked: "not_checked";
494
495
  reserved: "reserved";
495
- missing: "missing";
496
496
  released: "released";
497
497
  consumed: "consumed";
498
498
  review_required: "review_required";
@@ -523,8 +523,8 @@ export declare const adminCommerceFulfillmentOrderDetailResponseSchema: z.ZodObj
523
523
  latestOperation: z.ZodNullable<z.ZodObject<{
524
524
  id: z.ZodGUID;
525
525
  type: z.ZodEnum<{
526
- created: "created";
527
526
  cancelled: "cancelled";
527
+ created: "created";
528
528
  packed: "packed";
529
529
  label_created: "label_created";
530
530
  handed_over: "handed_over";
@@ -544,15 +544,15 @@ export declare const adminCommerceFulfillmentMutationResponseSchema: z.ZodObject
544
544
  fulfillmentOrderId: z.ZodGUID;
545
545
  orderId: z.ZodGUID;
546
546
  status: z.ZodEnum<{
547
- created: "created";
548
547
  cancelled: "cancelled";
549
548
  delivered: "delivered";
549
+ exception: "exception";
550
+ created: "created";
550
551
  packed: "packed";
551
552
  label_pending: "label_pending";
552
553
  label_created: "label_created";
553
554
  handed_over: "handed_over";
554
555
  in_transit: "in_transit";
555
- exception: "exception";
556
556
  }>;
557
557
  replayed: z.ZodBoolean;
558
558
  }, z.core.$strict>;
@@ -574,10 +574,10 @@ export declare const adminCommerceOrderRequestReplacementShipmentRequestSchema:
574
574
  idempotencyKey: z.ZodString;
575
575
  orderId: z.ZodGUID;
576
576
  reason: z.ZodEnum<{
577
- other: "other";
578
577
  damaged: "damaged";
579
578
  lost: "lost";
580
579
  returned_undelivered: "returned_undelivered";
580
+ other: "other";
581
581
  }>;
582
582
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
583
583
  }, z.core.$strict>;
@@ -635,10 +635,10 @@ export declare const adminCommerceOrderRequestReplacementShipmentResponseSchema:
635
635
  sequenceNo: z.ZodNumber;
636
636
  replacesFulfillmentOrderId: z.ZodString;
637
637
  reason: z.ZodEnum<{
638
- other: "other";
639
638
  damaged: "damaged";
640
639
  lost: "lost";
641
640
  returned_undelivered: "returned_undelivered";
641
+ other: "other";
642
642
  }>;
643
643
  status: z.ZodString;
644
644
  }, z.core.$strip>;
@@ -1,9 +1,9 @@
1
1
  import { z } from "zod";
2
2
  export declare const customerLifecycleStageSchema: z.ZodEnum<{
3
- inactive: "inactive";
4
3
  customer: "customer";
5
4
  lead: "lead";
6
5
  tester: "tester";
6
+ inactive: "inactive";
7
7
  }>;
8
8
  export declare const customerMeRequestSchema: z.ZodObject<{}, z.core.$strict>;
9
9
  export declare const customerMeResponseSchema: z.ZodObject<{
@@ -12,10 +12,10 @@ export declare const customerMeResponseSchema: z.ZodObject<{
12
12
  firstName: z.ZodNullable<z.ZodString>;
13
13
  lastName: z.ZodNullable<z.ZodString>;
14
14
  lifecycleStage: z.ZodEnum<{
15
- inactive: "inactive";
16
15
  customer: "customer";
17
16
  lead: "lead";
18
17
  tester: "tester";
18
+ inactive: "inactive";
19
19
  }>;
20
20
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
21
  subscriptionId: z.ZodGUID;
@@ -43,7 +43,7 @@ export declare function mapInvoiceClaimToProviderSnapshot<Seller, Kind, Payment>
43
43
  documentKind: Kind;
44
44
  governmentClearanceRequired: boolean;
45
45
  payment: Payment;
46
- lines: (Pick<import("./contracts/facts.js").InvoiceLine, "quantity" | "unitGrossMinor" | "unitNetMinor" | "totalGrossMinor" | "totalNetMinor"> & {
46
+ lines: (Pick<import("./contracts/facts.js").InvoiceLine, "quantity" | "totalNetMinor" | "totalGrossMinor" | "unitGrossMinor" | "unitNetMinor"> & {
47
47
  name: string;
48
48
  vatRate: string;
49
49
  })[];
@@ -4,7 +4,7 @@ export declare function acquisitionQuoteBinding(acquisitionTerms?: ResolvedAcqui
4
4
  acquisitionTerms?: ResolvedAcquisitionTerms;
5
5
  };
6
6
  export declare function mapAcquisitionTermsFailure(error: unknown): {
7
- code: "CONFLICT" | "UPSTREAM_UNAVAILABLE";
7
+ code: "UPSTREAM_UNAVAILABLE" | "CONFLICT";
8
8
  details: {
9
9
  reason: import("./acquisitionTerms.js").AcquisitionTermsRefusal;
10
10
  refreshRequired: boolean;
@@ -17,8 +17,8 @@ export declare const catalogFactsProvenanceSchema: z.ZodUnion<readonly [z.ZodObj
17
17
  version: z.ZodLiteral<"catalog_facts_v1">;
18
18
  resolvedPriceEntryId: z.ZodString;
19
19
  mode: z.ZodEnum<{
20
- subscription: "subscription";
21
20
  one_time: "one_time";
21
+ subscription: "subscription";
22
22
  }>;
23
23
  }, z.core.$strict>, z.ZodObject<{
24
24
  skuId: z.ZodString;
@@ -5,8 +5,8 @@ export declare const quoteDiscountSchema: z.ZodObject<{
5
5
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  label: z.ZodOptional<z.ZodString>;
7
7
  appliesTo: z.ZodEnum<{
8
- line: "line";
9
8
  shipping: "shipping";
9
+ line: "line";
10
10
  order_total: "order_total";
11
11
  }>;
12
12
  amountOffMinor: z.ZodNumber;