@mj-biz-apps/orders-server 5.16.0 → 5.18.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/dist/__tests__/invoice-as-of-date.test.d.ts +2 -0
- package/dist/__tests__/invoice-as-of-date.test.d.ts.map +1 -0
- package/dist/__tests__/invoice-as-of-date.test.js +50 -0
- package/dist/__tests__/invoice-as-of-date.test.js.map +1 -0
- package/dist/__tests__/spawn-renewals-as-of-date.test.d.ts +2 -0
- package/dist/__tests__/spawn-renewals-as-of-date.test.d.ts.map +1 -0
- package/dist/__tests__/spawn-renewals-as-of-date.test.js +42 -0
- package/dist/__tests__/spawn-renewals-as-of-date.test.js.map +1 -0
- package/dist/custom/enforce-payment-gated-access.action.d.ts +31 -0
- package/dist/custom/enforce-payment-gated-access.action.d.ts.map +1 -0
- package/dist/custom/enforce-payment-gated-access.action.js +117 -0
- package/dist/custom/enforce-payment-gated-access.action.js.map +1 -0
- package/dist/custom/spawn-renewals.action.d.ts.map +1 -1
- package/dist/custom/spawn-renewals.action.js +9 -1
- package/dist/custom/spawn-renewals.action.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.d.ts +24 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.js +99 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/invoice-renderer.d.ts +1 -1
- package/dist/services/invoice-renderer.d.ts.map +1 -1
- package/dist/services/invoice-renderer.js +20 -2
- package/dist/services/invoice-renderer.js.map +1 -1
- package/package.json +4 -4
|
@@ -2658,6 +2658,20 @@ __decorate([
|
|
|
2658
2658
|
Field(),
|
|
2659
2659
|
__metadata("design:type", Date)
|
|
2660
2660
|
], mjBizAppsOrdersEntitlementGrant_.prototype, "_mj__UpdatedAt", void 0);
|
|
2661
|
+
__decorate([
|
|
2662
|
+
Field({ nullable: true, description: `The grant timing that produced this grant (OnConfirm, OnPaidInFull, OnFirstPayment, OnActivation), resolved at confirm from product, category and product type. Access is re-decided from this when the order's payments change. NULL on grants written before the column existed.` }),
|
|
2663
|
+
MaxLength(20),
|
|
2664
|
+
__metadata("design:type", String)
|
|
2665
|
+
], mjBizAppsOrdersEntitlementGrant_.prototype, "GrantTimingApplied", void 0);
|
|
2666
|
+
__decorate([
|
|
2667
|
+
Field({ nullable: true, description: `When the grant was last suspended. Set together with SuspensionReason and cleared when the grant becomes Active again.` }),
|
|
2668
|
+
__metadata("design:type", Date)
|
|
2669
|
+
], mjBizAppsOrdersEntitlementGrant_.prototype, "SuspendedAt", void 0);
|
|
2670
|
+
__decorate([
|
|
2671
|
+
Field({ nullable: true, description: `Why the grant is suspended: AwaitingPayment (a new purchase whose first payment has not been received), PastDue (a renewal past the configured cutoff), or AwaitingActivation. AwaitingPayment and PastDue are lifted automatically when payment arrives.` }),
|
|
2672
|
+
MaxLength(20),
|
|
2673
|
+
__metadata("design:type", String)
|
|
2674
|
+
], mjBizAppsOrdersEntitlementGrant_.prototype, "SuspensionReason", void 0);
|
|
2661
2675
|
__decorate([
|
|
2662
2676
|
Field({ nullable: true }),
|
|
2663
2677
|
MaxLength(200),
|
|
@@ -2751,6 +2765,18 @@ __decorate([
|
|
|
2751
2765
|
Field({ nullable: true }),
|
|
2752
2766
|
__metadata("design:type", String)
|
|
2753
2767
|
], CreatemjBizAppsOrdersEntitlementGrantInput.prototype, "RevocationReason", void 0);
|
|
2768
|
+
__decorate([
|
|
2769
|
+
Field({ nullable: true }),
|
|
2770
|
+
__metadata("design:type", String)
|
|
2771
|
+
], CreatemjBizAppsOrdersEntitlementGrantInput.prototype, "GrantTimingApplied", void 0);
|
|
2772
|
+
__decorate([
|
|
2773
|
+
Field({ nullable: true }),
|
|
2774
|
+
__metadata("design:type", Date)
|
|
2775
|
+
], CreatemjBizAppsOrdersEntitlementGrantInput.prototype, "SuspendedAt", void 0);
|
|
2776
|
+
__decorate([
|
|
2777
|
+
Field({ nullable: true }),
|
|
2778
|
+
__metadata("design:type", String)
|
|
2779
|
+
], CreatemjBizAppsOrdersEntitlementGrantInput.prototype, "SuspensionReason", void 0);
|
|
2754
2780
|
__decorate([
|
|
2755
2781
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
2756
2782
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -2824,6 +2850,18 @@ __decorate([
|
|
|
2824
2850
|
Field({ nullable: true }),
|
|
2825
2851
|
__metadata("design:type", String)
|
|
2826
2852
|
], UpdatemjBizAppsOrdersEntitlementGrantInput.prototype, "RevocationReason", void 0);
|
|
2853
|
+
__decorate([
|
|
2854
|
+
Field({ nullable: true }),
|
|
2855
|
+
__metadata("design:type", String)
|
|
2856
|
+
], UpdatemjBizAppsOrdersEntitlementGrantInput.prototype, "GrantTimingApplied", void 0);
|
|
2857
|
+
__decorate([
|
|
2858
|
+
Field({ nullable: true }),
|
|
2859
|
+
__metadata("design:type", Date)
|
|
2860
|
+
], UpdatemjBizAppsOrdersEntitlementGrantInput.prototype, "SuspendedAt", void 0);
|
|
2861
|
+
__decorate([
|
|
2862
|
+
Field({ nullable: true }),
|
|
2863
|
+
__metadata("design:type", String)
|
|
2864
|
+
], UpdatemjBizAppsOrdersEntitlementGrantInput.prototype, "SuspensionReason", void 0);
|
|
2827
2865
|
__decorate([
|
|
2828
2866
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
2829
2867
|
__metadata("design:type", Array)
|
|
@@ -3213,10 +3251,18 @@ __decorate([
|
|
|
3213
3251
|
MaxLength(201),
|
|
3214
3252
|
__metadata("design:type", String)
|
|
3215
3253
|
], mjBizAppsOrdersEventOrderLine_.prototype, "Person", void 0);
|
|
3254
|
+
__decorate([
|
|
3255
|
+
Field(() => Float),
|
|
3256
|
+
__metadata("design:type", Number)
|
|
3257
|
+
], mjBizAppsOrdersEventOrderLine_.prototype, "BilledToDate", void 0);
|
|
3216
3258
|
__decorate([
|
|
3217
3259
|
Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
|
|
3218
3260
|
__metadata("design:type", Array)
|
|
3219
3261
|
], mjBizAppsOrdersEventOrderLine_.prototype, "ReadableFields___", void 0);
|
|
3262
|
+
__decorate([
|
|
3263
|
+
Field(() => Float),
|
|
3264
|
+
__metadata("design:type", Number)
|
|
3265
|
+
], mjBizAppsOrdersEventOrderLine_.prototype, "RecognizedToDate", void 0);
|
|
3220
3266
|
mjBizAppsOrdersEventOrderLine_ = __decorate([
|
|
3221
3267
|
ObjectType({ description: `IsA Disjoint child of OrderLine (same UUID): per-line attendee detail; the attendee is typically the EntitlementGrant beneficiary (BO-D39).` })
|
|
3222
3268
|
], mjBizAppsOrdersEventOrderLine_);
|
|
@@ -3414,6 +3460,14 @@ __decorate([
|
|
|
3414
3460
|
Field({ nullable: true }),
|
|
3415
3461
|
__metadata("design:type", String)
|
|
3416
3462
|
], CreatemjBizAppsOrdersEventOrderLineInput.prototype, "DimensionValueID", void 0);
|
|
3463
|
+
__decorate([
|
|
3464
|
+
Field(() => Float, { nullable: true }),
|
|
3465
|
+
__metadata("design:type", Number)
|
|
3466
|
+
], CreatemjBizAppsOrdersEventOrderLineInput.prototype, "BilledToDate", void 0);
|
|
3467
|
+
__decorate([
|
|
3468
|
+
Field(() => Float, { nullable: true }),
|
|
3469
|
+
__metadata("design:type", Number)
|
|
3470
|
+
], CreatemjBizAppsOrdersEventOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
3417
3471
|
__decorate([
|
|
3418
3472
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
3419
3473
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -3615,6 +3669,14 @@ __decorate([
|
|
|
3615
3669
|
Field({ nullable: true }),
|
|
3616
3670
|
__metadata("design:type", String)
|
|
3617
3671
|
], UpdatemjBizAppsOrdersEventOrderLineInput.prototype, "DimensionValueID", void 0);
|
|
3672
|
+
__decorate([
|
|
3673
|
+
Field(() => Float, { nullable: true }),
|
|
3674
|
+
__metadata("design:type", Number)
|
|
3675
|
+
], UpdatemjBizAppsOrdersEventOrderLineInput.prototype, "BilledToDate", void 0);
|
|
3676
|
+
__decorate([
|
|
3677
|
+
Field(() => Float, { nullable: true }),
|
|
3678
|
+
__metadata("design:type", Number)
|
|
3679
|
+
], UpdatemjBizAppsOrdersEventOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
3618
3680
|
__decorate([
|
|
3619
3681
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
3620
3682
|
__metadata("design:type", Array)
|
|
@@ -7739,6 +7801,14 @@ __decorate([
|
|
|
7739
7801
|
], mjBizAppsOrdersOrderLine_.prototype, "DimensionValueID", void 0);
|
|
7740
7802
|
__decorate([
|
|
7741
7803
|
Field({ nullable: true }),
|
|
7804
|
+
Field(() => Float, { description: `Cumulative REVENUE of this line invoiced to the customer — its net, what Deferred Revenue or Sales was credited, NOT net plus tax and charges, which credit their own accounts and never touch Deferred. Advanced by each instalment invoice, and by confirm itself for a line with no payment schedule, inside the same transaction that books the entry (D92). Same basis as RecognizedToDate, or the gap between them overstates Deferred by the tax. With RecognizedToDate it gives the line's balance-sheet position: the excess over RecognizedToDate sits in Deferred Revenue. Never derived at read time — the contra account a recognition entry debits depends on what has been billed by then, which is not knowable at confirm. Signed: negative on a reversal line (Quantity < 0), so an origin and its reversals net to zero.` }),
|
|
7805
|
+
__metadata("design:type", Number)
|
|
7806
|
+
], mjBizAppsOrdersOrderLine_.prototype, "BilledToDate", void 0);
|
|
7807
|
+
__decorate([
|
|
7808
|
+
Field(() => Float, { description: `Cumulative revenue recognised on this line, advanced by each recognition entry inside the same transaction that books it (D92). Where it exceeds BilledToDate the difference is a contract asset and sits in Unbilled Receivable — service delivered that the contract does not yet allow us to bill. That is what the standard means by a contract asset, and it is distinct from the future instalments the superseded D89 design parked in the same account. ADVANCED FOR UP-FRONT AND ATTESTED LINES ONLY. A deferred driver stages its monthly releases as forward-dated entries at confirm; those credit Sales on their own dates without passing through rule 2, so they leave this total untouched. A subscription line therefore depends on its instalments being invoiced on time for the gap between the two totals to mean anything. Routing the staged releases through rule 2 is orders #241, parked. Signed: negative on a reversal line (Quantity < 0), so an origin and its reversals net to zero.` }),
|
|
7809
|
+
__metadata("design:type", Number)
|
|
7810
|
+
], mjBizAppsOrdersOrderLine_.prototype, "RecognizedToDate", void 0);
|
|
7811
|
+
__decorate([
|
|
7742
7812
|
MaxLength(40),
|
|
7743
7813
|
__metadata("design:type", String)
|
|
7744
7814
|
], mjBizAppsOrdersOrderLine_.prototype, "OrderHeader", void 0);
|
|
@@ -7958,6 +8028,14 @@ __decorate([
|
|
|
7958
8028
|
Field({ nullable: true }),
|
|
7959
8029
|
__metadata("design:type", String)
|
|
7960
8030
|
], CreatemjBizAppsOrdersOrderLineInput.prototype, "DimensionValueID", void 0);
|
|
8031
|
+
__decorate([
|
|
8032
|
+
Field(() => Float, { nullable: true }),
|
|
8033
|
+
__metadata("design:type", Number)
|
|
8034
|
+
], CreatemjBizAppsOrdersOrderLineInput.prototype, "BilledToDate", void 0);
|
|
8035
|
+
__decorate([
|
|
8036
|
+
Field(() => Float, { nullable: true }),
|
|
8037
|
+
__metadata("design:type", Number)
|
|
8038
|
+
], CreatemjBizAppsOrdersOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
7961
8039
|
__decorate([
|
|
7962
8040
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
7963
8041
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -8103,6 +8181,14 @@ __decorate([
|
|
|
8103
8181
|
Field({ nullable: true }),
|
|
8104
8182
|
__metadata("design:type", String)
|
|
8105
8183
|
], UpdatemjBizAppsOrdersOrderLineInput.prototype, "DimensionValueID", void 0);
|
|
8184
|
+
__decorate([
|
|
8185
|
+
Field(() => Float, { nullable: true }),
|
|
8186
|
+
__metadata("design:type", Number)
|
|
8187
|
+
], UpdatemjBizAppsOrdersOrderLineInput.prototype, "BilledToDate", void 0);
|
|
8188
|
+
__decorate([
|
|
8189
|
+
Field(() => Float, { nullable: true }),
|
|
8190
|
+
__metadata("design:type", Number)
|
|
8191
|
+
], UpdatemjBizAppsOrdersOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
8106
8192
|
__decorate([
|
|
8107
8193
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
8108
8194
|
__metadata("design:type", Array)
|
|
@@ -9079,6 +9165,11 @@ __decorate([
|
|
|
9079
9165
|
Field(),
|
|
9080
9166
|
__metadata("design:type", Date)
|
|
9081
9167
|
], mjBizAppsOrdersPaymentHeader_.prototype, "_mj__UpdatedAt", void 0);
|
|
9168
|
+
__decorate([
|
|
9169
|
+
Field({ nullable: true, description: `Who took the money back on a reversal: Refund (the seller chose to, via Orders.RefundPayment) or BankReturn (the bank reversed a debit). Set on every reversal and on nothing else. A bank return removes payment-gated access; a refund does not.` }),
|
|
9170
|
+
MaxLength(20),
|
|
9171
|
+
__metadata("design:type", String)
|
|
9172
|
+
], mjBizAppsOrdersPaymentHeader_.prototype, "ReversalSource", void 0);
|
|
9082
9173
|
__decorate([
|
|
9083
9174
|
Field({ nullable: true }),
|
|
9084
9175
|
MaxLength(50),
|
|
@@ -9225,6 +9316,10 @@ __decorate([
|
|
|
9225
9316
|
Field({ nullable: true }),
|
|
9226
9317
|
__metadata("design:type", String)
|
|
9227
9318
|
], CreatemjBizAppsOrdersPaymentHeaderInput.prototype, "IdempotencyKey", void 0);
|
|
9319
|
+
__decorate([
|
|
9320
|
+
Field({ nullable: true }),
|
|
9321
|
+
__metadata("design:type", String)
|
|
9322
|
+
], CreatemjBizAppsOrdersPaymentHeaderInput.prototype, "ReversalSource", void 0);
|
|
9228
9323
|
__decorate([
|
|
9229
9324
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
9230
9325
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -9326,6 +9421,10 @@ __decorate([
|
|
|
9326
9421
|
Field({ nullable: true }),
|
|
9327
9422
|
__metadata("design:type", String)
|
|
9328
9423
|
], UpdatemjBizAppsOrdersPaymentHeaderInput.prototype, "IdempotencyKey", void 0);
|
|
9424
|
+
__decorate([
|
|
9425
|
+
Field({ nullable: true }),
|
|
9426
|
+
__metadata("design:type", String)
|
|
9427
|
+
], UpdatemjBizAppsOrdersPaymentHeaderInput.prototype, "ReversalSource", void 0);
|
|
9329
9428
|
__decorate([
|
|
9330
9429
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9331
9430
|
__metadata("design:type", Array)
|