@mj-biz-apps/orders-server 5.17.0 → 5.19.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/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/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/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)
|
|
@@ -3208,6 +3246,10 @@ __decorate([
|
|
|
3208
3246
|
MaxLength(36),
|
|
3209
3247
|
__metadata("design:type", String)
|
|
3210
3248
|
], mjBizAppsOrdersEventOrderLine_.prototype, "DimensionValueID", void 0);
|
|
3249
|
+
__decorate([
|
|
3250
|
+
Field({ nullable: true }),
|
|
3251
|
+
__metadata("design:type", String)
|
|
3252
|
+
], mjBizAppsOrdersEventOrderLine_.prototype, "ShipToAddressSnapshot", void 0);
|
|
3211
3253
|
__decorate([
|
|
3212
3254
|
Field({ nullable: true }),
|
|
3213
3255
|
MaxLength(201),
|
|
@@ -3430,6 +3472,10 @@ __decorate([
|
|
|
3430
3472
|
Field(() => Float, { nullable: true }),
|
|
3431
3473
|
__metadata("design:type", Number)
|
|
3432
3474
|
], CreatemjBizAppsOrdersEventOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
3475
|
+
__decorate([
|
|
3476
|
+
Field({ nullable: true }),
|
|
3477
|
+
__metadata("design:type", String)
|
|
3478
|
+
], CreatemjBizAppsOrdersEventOrderLineInput.prototype, "ShipToAddressSnapshot", void 0);
|
|
3433
3479
|
__decorate([
|
|
3434
3480
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
3435
3481
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -3639,6 +3685,10 @@ __decorate([
|
|
|
3639
3685
|
Field(() => Float, { nullable: true }),
|
|
3640
3686
|
__metadata("design:type", Number)
|
|
3641
3687
|
], UpdatemjBizAppsOrdersEventOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
3688
|
+
__decorate([
|
|
3689
|
+
Field({ nullable: true }),
|
|
3690
|
+
__metadata("design:type", String)
|
|
3691
|
+
], UpdatemjBizAppsOrdersEventOrderLineInput.prototype, "ShipToAddressSnapshot", void 0);
|
|
3642
3692
|
__decorate([
|
|
3643
3693
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
3644
3694
|
__metadata("design:type", Array)
|
|
@@ -6488,6 +6538,14 @@ __decorate([
|
|
|
6488
6538
|
MaxLength(20),
|
|
6489
6539
|
__metadata("design:type", String)
|
|
6490
6540
|
], mjBizAppsOrdersOrderHeader_.prototype, "FulfillmentStatus", void 0);
|
|
6541
|
+
__decorate([
|
|
6542
|
+
Field({ nullable: true, description: `The bill-to address as it was when the order was first confirmed: JSON with AddressID, Line1, Line2, Line3, City, StateProvince, PostalCode and Country. NULL until the order is confirmed. Written once and never changed (trg_OrderHeader_AddressFrozenAfterConfirm, 51015). Reporting and invoicing read this on a confirmed order instead of the live Address row.` }),
|
|
6543
|
+
__metadata("design:type", String)
|
|
6544
|
+
], mjBizAppsOrdersOrderHeader_.prototype, "BillToAddressSnapshot", void 0);
|
|
6545
|
+
__decorate([
|
|
6546
|
+
Field({ nullable: true, description: `The ship-to address as it was when the order was first confirmed: JSON with AddressID, Line1, Line2, Line3, City, StateProvince, PostalCode and Country. NULL until the order is confirmed. Written once and never changed (trg_OrderHeader_AddressFrozenAfterConfirm, 51015). Reporting and invoicing read this on a confirmed order instead of the live Address row.` }),
|
|
6547
|
+
__metadata("design:type", String)
|
|
6548
|
+
], mjBizAppsOrdersOrderHeader_.prototype, "ShipToAddressSnapshot", void 0);
|
|
6491
6549
|
__decorate([
|
|
6492
6550
|
Field({ nullable: true }),
|
|
6493
6551
|
MaxLength(50),
|
|
@@ -6731,6 +6789,14 @@ __decorate([
|
|
|
6731
6789
|
Field({ nullable: true }),
|
|
6732
6790
|
__metadata("design:type", String)
|
|
6733
6791
|
], CreatemjBizAppsOrdersOrderHeaderInput.prototype, "FulfillmentStatus", void 0);
|
|
6792
|
+
__decorate([
|
|
6793
|
+
Field({ nullable: true }),
|
|
6794
|
+
__metadata("design:type", String)
|
|
6795
|
+
], CreatemjBizAppsOrdersOrderHeaderInput.prototype, "BillToAddressSnapshot", void 0);
|
|
6796
|
+
__decorate([
|
|
6797
|
+
Field({ nullable: true }),
|
|
6798
|
+
__metadata("design:type", String)
|
|
6799
|
+
], CreatemjBizAppsOrdersOrderHeaderInput.prototype, "ShipToAddressSnapshot", void 0);
|
|
6734
6800
|
__decorate([
|
|
6735
6801
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
6736
6802
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -6880,6 +6946,14 @@ __decorate([
|
|
|
6880
6946
|
Field({ nullable: true }),
|
|
6881
6947
|
__metadata("design:type", String)
|
|
6882
6948
|
], UpdatemjBizAppsOrdersOrderHeaderInput.prototype, "FulfillmentStatus", void 0);
|
|
6949
|
+
__decorate([
|
|
6950
|
+
Field({ nullable: true }),
|
|
6951
|
+
__metadata("design:type", String)
|
|
6952
|
+
], UpdatemjBizAppsOrdersOrderHeaderInput.prototype, "BillToAddressSnapshot", void 0);
|
|
6953
|
+
__decorate([
|
|
6954
|
+
Field({ nullable: true }),
|
|
6955
|
+
__metadata("design:type", String)
|
|
6956
|
+
], UpdatemjBizAppsOrdersOrderHeaderInput.prototype, "ShipToAddressSnapshot", void 0);
|
|
6883
6957
|
__decorate([
|
|
6884
6958
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6885
6959
|
__metadata("design:type", Array)
|
|
@@ -7761,6 +7835,10 @@ __decorate([
|
|
|
7761
7835
|
MaxLength(36),
|
|
7762
7836
|
__metadata("design:type", String)
|
|
7763
7837
|
], mjBizAppsOrdersOrderLine_.prototype, "DimensionValueID", void 0);
|
|
7838
|
+
__decorate([
|
|
7839
|
+
Field({ nullable: true, description: `The line's own ship-to address as it was when the order was first confirmed, in the same JSON shape as OrderHeader.ShipToAddressSnapshot. NULL when the line has no ShipToAddressID of its own, or until the order is confirmed. Written once and never changed (trg_OrderLine_AddressFrozenAfterConfirm, 51016).` }),
|
|
7840
|
+
__metadata("design:type", String)
|
|
7841
|
+
], mjBizAppsOrdersOrderLine_.prototype, "ShipToAddressSnapshot", void 0);
|
|
7764
7842
|
__decorate([
|
|
7765
7843
|
Field({ nullable: true }),
|
|
7766
7844
|
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.` }),
|
|
@@ -7998,6 +8076,10 @@ __decorate([
|
|
|
7998
8076
|
Field(() => Float, { nullable: true }),
|
|
7999
8077
|
__metadata("design:type", Number)
|
|
8000
8078
|
], CreatemjBizAppsOrdersOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
8079
|
+
__decorate([
|
|
8080
|
+
Field({ nullable: true }),
|
|
8081
|
+
__metadata("design:type", String)
|
|
8082
|
+
], CreatemjBizAppsOrdersOrderLineInput.prototype, "ShipToAddressSnapshot", void 0);
|
|
8001
8083
|
__decorate([
|
|
8002
8084
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
8003
8085
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -8151,6 +8233,10 @@ __decorate([
|
|
|
8151
8233
|
Field(() => Float, { nullable: true }),
|
|
8152
8234
|
__metadata("design:type", Number)
|
|
8153
8235
|
], UpdatemjBizAppsOrdersOrderLineInput.prototype, "RecognizedToDate", void 0);
|
|
8236
|
+
__decorate([
|
|
8237
|
+
Field({ nullable: true }),
|
|
8238
|
+
__metadata("design:type", String)
|
|
8239
|
+
], UpdatemjBizAppsOrdersOrderLineInput.prototype, "ShipToAddressSnapshot", void 0);
|
|
8154
8240
|
__decorate([
|
|
8155
8241
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
8156
8242
|
__metadata("design:type", Array)
|
|
@@ -9127,6 +9213,11 @@ __decorate([
|
|
|
9127
9213
|
Field(),
|
|
9128
9214
|
__metadata("design:type", Date)
|
|
9129
9215
|
], mjBizAppsOrdersPaymentHeader_.prototype, "_mj__UpdatedAt", void 0);
|
|
9216
|
+
__decorate([
|
|
9217
|
+
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.` }),
|
|
9218
|
+
MaxLength(20),
|
|
9219
|
+
__metadata("design:type", String)
|
|
9220
|
+
], mjBizAppsOrdersPaymentHeader_.prototype, "ReversalSource", void 0);
|
|
9130
9221
|
__decorate([
|
|
9131
9222
|
Field({ nullable: true }),
|
|
9132
9223
|
MaxLength(50),
|
|
@@ -9273,6 +9364,10 @@ __decorate([
|
|
|
9273
9364
|
Field({ nullable: true }),
|
|
9274
9365
|
__metadata("design:type", String)
|
|
9275
9366
|
], CreatemjBizAppsOrdersPaymentHeaderInput.prototype, "IdempotencyKey", void 0);
|
|
9367
|
+
__decorate([
|
|
9368
|
+
Field({ nullable: true }),
|
|
9369
|
+
__metadata("design:type", String)
|
|
9370
|
+
], CreatemjBizAppsOrdersPaymentHeaderInput.prototype, "ReversalSource", void 0);
|
|
9276
9371
|
__decorate([
|
|
9277
9372
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
9278
9373
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -9374,6 +9469,10 @@ __decorate([
|
|
|
9374
9469
|
Field({ nullable: true }),
|
|
9375
9470
|
__metadata("design:type", String)
|
|
9376
9471
|
], UpdatemjBizAppsOrdersPaymentHeaderInput.prototype, "IdempotencyKey", void 0);
|
|
9472
|
+
__decorate([
|
|
9473
|
+
Field({ nullable: true }),
|
|
9474
|
+
__metadata("design:type", String)
|
|
9475
|
+
], UpdatemjBizAppsOrdersPaymentHeaderInput.prototype, "ReversalSource", void 0);
|
|
9377
9476
|
__decorate([
|
|
9378
9477
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9379
9478
|
__metadata("design:type", Array)
|