@mj-biz-apps/orders-server 5.22.0 → 5.23.1
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/CheckoutServerExtension.d.ts.map +1 -1
- package/dist/CheckoutServerExtension.js +10 -3
- package/dist/CheckoutServerExtension.js.map +1 -1
- package/dist/__tests__/CheckoutServerExtension.test.js +44 -2
- package/dist/__tests__/CheckoutServerExtension.test.js.map +1 -1
- package/dist/__tests__/detect-overlapping-subscriptions-action.test.d.ts +2 -0
- package/dist/__tests__/detect-overlapping-subscriptions-action.test.d.ts.map +1 -0
- package/dist/__tests__/detect-overlapping-subscriptions-action.test.js +84 -0
- package/dist/__tests__/detect-overlapping-subscriptions-action.test.js.map +1 -0
- package/dist/custom/detect-overlapping-subscriptions.action.d.ts +35 -0
- package/dist/custom/detect-overlapping-subscriptions.action.d.ts.map +1 -0
- package/dist/custom/detect-overlapping-subscriptions.action.js +129 -0
- package/dist/custom/detect-overlapping-subscriptions.action.js.map +1 -0
- package/dist/custom/dispatch-outbound-events.action.d.ts +28 -0
- package/dist/custom/dispatch-outbound-events.action.d.ts.map +1 -0
- package/dist/custom/dispatch-outbound-events.action.js +93 -0
- package/dist/custom/dispatch-outbound-events.action.js.map +1 -0
- package/dist/custom/open-payment-intent.action.d.ts +1 -1
- package/dist/custom/open-payment-intent.action.d.ts.map +1 -1
- package/dist/custom/open-payment-intent.action.js +2 -1
- package/dist/custom/open-payment-intent.action.js.map +1 -1
- package/dist/custom/send-document.action.d.ts.map +1 -1
- package/dist/custom/send-document.action.js +9 -2
- package/dist/custom/send-document.action.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.d.ts +107 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.js +520 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
|
@@ -8062,6 +8062,489 @@ mjBizAppsOrdersOrderCompanyPolicyResolver = __decorate([
|
|
|
8062
8062
|
], mjBizAppsOrdersOrderCompanyPolicyResolver);
|
|
8063
8063
|
export { mjBizAppsOrdersOrderCompanyPolicyResolver };
|
|
8064
8064
|
//****************************************************************************
|
|
8065
|
+
// ENTITY CLASS for MJ_BizApps_Orders: Order Concessions
|
|
8066
|
+
//****************************************************************************
|
|
8067
|
+
let mjBizAppsOrdersOrderConcession_ = class mjBizAppsOrdersOrderConcession_ {
|
|
8068
|
+
};
|
|
8069
|
+
__decorate([
|
|
8070
|
+
Field(),
|
|
8071
|
+
MaxLength(36),
|
|
8072
|
+
__metadata("design:type", String)
|
|
8073
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "ID", void 0);
|
|
8074
|
+
__decorate([
|
|
8075
|
+
Field({ description: `The order the concession is granted on. For a term extension, the order whose line bought the term.` }),
|
|
8076
|
+
MaxLength(36),
|
|
8077
|
+
__metadata("design:type", String)
|
|
8078
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "OrderHeaderID", void 0);
|
|
8079
|
+
__decorate([
|
|
8080
|
+
Field({ nullable: true, description: `The line a Price, Scope or Seats concession applies to.` }),
|
|
8081
|
+
MaxLength(36),
|
|
8082
|
+
__metadata("design:type", String)
|
|
8083
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "OrderLineID", void 0);
|
|
8084
|
+
__decorate([
|
|
8085
|
+
Field({ nullable: true, description: `The subscription term a Duration concession extends.` }),
|
|
8086
|
+
MaxLength(36),
|
|
8087
|
+
__metadata("design:type", String)
|
|
8088
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "SubscriptionTermID", void 0);
|
|
8089
|
+
__decorate([
|
|
8090
|
+
Field({ description: `How the value was given: Price (a lower price than the price engine's), Duration (a term extended at no charge), Scope (a product added at no charge), Seats (quantity added at no charge), Terms (a confirmed order's payment terms changed).` }),
|
|
8091
|
+
MaxLength(20),
|
|
8092
|
+
__metadata("design:type", String)
|
|
8093
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "DeliveryForm", void 0);
|
|
8094
|
+
__decorate([
|
|
8095
|
+
Field({ description: `Why it was granted: Retention, Referral or Other. Retention concessions and referral credits have different economics and are reported separately.` }),
|
|
8096
|
+
MaxLength(20),
|
|
8097
|
+
__metadata("design:type", String)
|
|
8098
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "ReasonCategory", void 0);
|
|
8099
|
+
__decorate([
|
|
8100
|
+
Field({ description: `The requester's explanation of the concession.` }),
|
|
8101
|
+
__metadata("design:type", String)
|
|
8102
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "Reason", void 0);
|
|
8103
|
+
__decorate([
|
|
8104
|
+
Field(() => Int, { nullable: true, description: `Days added to the term at no charge. Required for Duration.` }),
|
|
8105
|
+
__metadata("design:type", Number)
|
|
8106
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "AddedDays", void 0);
|
|
8107
|
+
__decorate([
|
|
8108
|
+
Field(() => Float, { nullable: true, description: `Quantity added to the line at no charge. Required for Seats.` }),
|
|
8109
|
+
__metadata("design:type", Number)
|
|
8110
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "AddedQuantity", void 0);
|
|
8111
|
+
__decorate([
|
|
8112
|
+
Field(() => Float, { description: `What the concession is worth, in currency, at the arrangement's own rate. Computed on save from the line or term; never authored.` }),
|
|
8113
|
+
__metadata("design:type", Number)
|
|
8114
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "ComputedValue", void 0);
|
|
8115
|
+
__decorate([
|
|
8116
|
+
Field(() => Float, { nullable: true, description: `The order's net total when the concession was recorded, measured again when it is decided: its lines after discounts, before tax and charges, with reversal lines left out. Computed on save; never authored.` }),
|
|
8117
|
+
__metadata("design:type", Number)
|
|
8118
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "OrderNetTotal", void 0);
|
|
8119
|
+
__decorate([
|
|
8120
|
+
Field(() => Float, { nullable: true, description: `Every concession on the order that is not Rejected, this one included, as a fraction of OrderNetTotal: measured when it was recorded and again when it is decided. This is what SalesAuthority.MaxConcessionPctOfContract is checked against, and on a decided concession it is the share its approver decided at. NULL when OrderNetTotal is zero. Computed on save; never authored.` }),
|
|
8121
|
+
__metadata("design:type", Number)
|
|
8122
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "CumulativeShare", void 0);
|
|
8123
|
+
__decorate([
|
|
8124
|
+
Field({ description: `Pending | Approved | Rejected. Set to Approved on save when the requester's SalesAuthority covers the concession; otherwise decided by a holder of the ConcessionLimit rule's role.` }),
|
|
8125
|
+
MaxLength(20),
|
|
8126
|
+
__metadata("design:type", String)
|
|
8127
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "Status", void 0);
|
|
8128
|
+
__decorate([
|
|
8129
|
+
Field({ description: `The user who recorded the concession. Their SalesAuthority is what it is checked against.` }),
|
|
8130
|
+
MaxLength(36),
|
|
8131
|
+
__metadata("design:type", String)
|
|
8132
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "RequestedByUserID", void 0);
|
|
8133
|
+
__decorate([
|
|
8134
|
+
Field({ nullable: true, description: `The SalesAuthority that covered the concession when it was approved without escalation. Stamped so a later change to the limit does not change how past concessions read.` }),
|
|
8135
|
+
MaxLength(36),
|
|
8136
|
+
__metadata("design:type", String)
|
|
8137
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "AuthorizedBySalesAuthorityID", void 0);
|
|
8138
|
+
__decorate([
|
|
8139
|
+
Field({ nullable: true, description: `The ConcessionLimit rule whose role must decide this concession. Set when it exceeded the requester's authority.` }),
|
|
8140
|
+
MaxLength(36),
|
|
8141
|
+
__metadata("design:type", String)
|
|
8142
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "SalesRuleID", void 0);
|
|
8143
|
+
__decorate([
|
|
8144
|
+
Field({ nullable: true, description: `Who approved or rejected it. For a concession within the requester's authority, the requester.` }),
|
|
8145
|
+
MaxLength(36),
|
|
8146
|
+
__metadata("design:type", String)
|
|
8147
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "DecidedByUserID", void 0);
|
|
8148
|
+
__decorate([
|
|
8149
|
+
Field({ nullable: true, description: `When it was approved or rejected.` }),
|
|
8150
|
+
__metadata("design:type", Date)
|
|
8151
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "DecidedAt", void 0);
|
|
8152
|
+
__decorate([
|
|
8153
|
+
Field({ nullable: true, description: `The approver's note on the decision.` }),
|
|
8154
|
+
__metadata("design:type", String)
|
|
8155
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "DecisionNotes", void 0);
|
|
8156
|
+
__decorate([
|
|
8157
|
+
Field(),
|
|
8158
|
+
__metadata("design:type", Date)
|
|
8159
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "_mj__CreatedAt", void 0);
|
|
8160
|
+
__decorate([
|
|
8161
|
+
Field(),
|
|
8162
|
+
__metadata("design:type", Date)
|
|
8163
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "_mj__UpdatedAt", void 0);
|
|
8164
|
+
__decorate([
|
|
8165
|
+
Field({ nullable: true, description: `For a Terms concession, the order's payment terms before the change. NULL when the order had none and was due on receipt.` }),
|
|
8166
|
+
MaxLength(36),
|
|
8167
|
+
__metadata("design:type", String)
|
|
8168
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "PriorPaymentTermsTypeID", void 0);
|
|
8169
|
+
__decorate([
|
|
8170
|
+
Field({ nullable: true, description: `For a Terms concession, the payment terms the order moves to when it is approved.` }),
|
|
8171
|
+
MaxLength(36),
|
|
8172
|
+
__metadata("design:type", String)
|
|
8173
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "NewPaymentTermsTypeID", void 0);
|
|
8174
|
+
__decorate([
|
|
8175
|
+
Field(),
|
|
8176
|
+
MaxLength(40),
|
|
8177
|
+
__metadata("design:type", String)
|
|
8178
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "OrderHeader", void 0);
|
|
8179
|
+
__decorate([
|
|
8180
|
+
Field(),
|
|
8181
|
+
MaxLength(100),
|
|
8182
|
+
__metadata("design:type", String)
|
|
8183
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "RequestedByUser", void 0);
|
|
8184
|
+
__decorate([
|
|
8185
|
+
Field({ nullable: true }),
|
|
8186
|
+
MaxLength(200),
|
|
8187
|
+
__metadata("design:type", String)
|
|
8188
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "SalesRule", void 0);
|
|
8189
|
+
__decorate([
|
|
8190
|
+
Field({ nullable: true }),
|
|
8191
|
+
MaxLength(100),
|
|
8192
|
+
__metadata("design:type", String)
|
|
8193
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "DecidedByUser", void 0);
|
|
8194
|
+
__decorate([
|
|
8195
|
+
Field({ nullable: true }),
|
|
8196
|
+
MaxLength(200),
|
|
8197
|
+
__metadata("design:type", String)
|
|
8198
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "PriorPaymentTermsType", void 0);
|
|
8199
|
+
__decorate([
|
|
8200
|
+
Field({ nullable: true }),
|
|
8201
|
+
MaxLength(200),
|
|
8202
|
+
__metadata("design:type", String)
|
|
8203
|
+
], mjBizAppsOrdersOrderConcession_.prototype, "NewPaymentTermsType", void 0);
|
|
8204
|
+
mjBizAppsOrdersOrderConcession_ = __decorate([
|
|
8205
|
+
ObjectType({ description: `A concession granted on an order, valued the same way whatever form it takes: a price reduction, a term extended at no charge, seats or a product added at no charge. Within the requester\'s SalesAuthority it is Approved on save; outside it, Pending until a holder of the ConcessionLimit rule\'s role decides it. An order with a Pending concession cannot be confirmed and its documents cannot be sent.` })
|
|
8206
|
+
], mjBizAppsOrdersOrderConcession_);
|
|
8207
|
+
export { mjBizAppsOrdersOrderConcession_ };
|
|
8208
|
+
//****************************************************************************
|
|
8209
|
+
// INPUT TYPE for MJ_BizApps_Orders: Order Concessions
|
|
8210
|
+
//****************************************************************************
|
|
8211
|
+
let CreatemjBizAppsOrdersOrderConcessionInput = class CreatemjBizAppsOrdersOrderConcessionInput {
|
|
8212
|
+
};
|
|
8213
|
+
__decorate([
|
|
8214
|
+
Field({ nullable: true }),
|
|
8215
|
+
__metadata("design:type", String)
|
|
8216
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "ID", void 0);
|
|
8217
|
+
__decorate([
|
|
8218
|
+
Field({ nullable: true }),
|
|
8219
|
+
__metadata("design:type", String)
|
|
8220
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "OrderHeaderID", void 0);
|
|
8221
|
+
__decorate([
|
|
8222
|
+
Field({ nullable: true }),
|
|
8223
|
+
__metadata("design:type", String)
|
|
8224
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "OrderLineID", void 0);
|
|
8225
|
+
__decorate([
|
|
8226
|
+
Field({ nullable: true }),
|
|
8227
|
+
__metadata("design:type", String)
|
|
8228
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "SubscriptionTermID", void 0);
|
|
8229
|
+
__decorate([
|
|
8230
|
+
Field({ nullable: true }),
|
|
8231
|
+
__metadata("design:type", String)
|
|
8232
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "DeliveryForm", void 0);
|
|
8233
|
+
__decorate([
|
|
8234
|
+
Field({ nullable: true }),
|
|
8235
|
+
__metadata("design:type", String)
|
|
8236
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "ReasonCategory", void 0);
|
|
8237
|
+
__decorate([
|
|
8238
|
+
Field({ nullable: true }),
|
|
8239
|
+
__metadata("design:type", String)
|
|
8240
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "Reason", void 0);
|
|
8241
|
+
__decorate([
|
|
8242
|
+
Field(() => Int, { nullable: true }),
|
|
8243
|
+
__metadata("design:type", Number)
|
|
8244
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "AddedDays", void 0);
|
|
8245
|
+
__decorate([
|
|
8246
|
+
Field(() => Float, { nullable: true }),
|
|
8247
|
+
__metadata("design:type", Number)
|
|
8248
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "AddedQuantity", void 0);
|
|
8249
|
+
__decorate([
|
|
8250
|
+
Field(() => Float, { nullable: true }),
|
|
8251
|
+
__metadata("design:type", Number)
|
|
8252
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "ComputedValue", void 0);
|
|
8253
|
+
__decorate([
|
|
8254
|
+
Field(() => Float, { nullable: true }),
|
|
8255
|
+
__metadata("design:type", Number)
|
|
8256
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "OrderNetTotal", void 0);
|
|
8257
|
+
__decorate([
|
|
8258
|
+
Field(() => Float, { nullable: true }),
|
|
8259
|
+
__metadata("design:type", Number)
|
|
8260
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "CumulativeShare", void 0);
|
|
8261
|
+
__decorate([
|
|
8262
|
+
Field({ nullable: true }),
|
|
8263
|
+
__metadata("design:type", String)
|
|
8264
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "Status", void 0);
|
|
8265
|
+
__decorate([
|
|
8266
|
+
Field({ nullable: true }),
|
|
8267
|
+
__metadata("design:type", String)
|
|
8268
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "RequestedByUserID", void 0);
|
|
8269
|
+
__decorate([
|
|
8270
|
+
Field({ nullable: true }),
|
|
8271
|
+
__metadata("design:type", String)
|
|
8272
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "AuthorizedBySalesAuthorityID", void 0);
|
|
8273
|
+
__decorate([
|
|
8274
|
+
Field({ nullable: true }),
|
|
8275
|
+
__metadata("design:type", String)
|
|
8276
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "SalesRuleID", void 0);
|
|
8277
|
+
__decorate([
|
|
8278
|
+
Field({ nullable: true }),
|
|
8279
|
+
__metadata("design:type", String)
|
|
8280
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "DecidedByUserID", void 0);
|
|
8281
|
+
__decorate([
|
|
8282
|
+
Field({ nullable: true }),
|
|
8283
|
+
__metadata("design:type", Date)
|
|
8284
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "DecidedAt", void 0);
|
|
8285
|
+
__decorate([
|
|
8286
|
+
Field({ nullable: true }),
|
|
8287
|
+
__metadata("design:type", String)
|
|
8288
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "DecisionNotes", void 0);
|
|
8289
|
+
__decorate([
|
|
8290
|
+
Field({ nullable: true }),
|
|
8291
|
+
__metadata("design:type", String)
|
|
8292
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "PriorPaymentTermsTypeID", void 0);
|
|
8293
|
+
__decorate([
|
|
8294
|
+
Field({ nullable: true }),
|
|
8295
|
+
__metadata("design:type", String)
|
|
8296
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "NewPaymentTermsTypeID", void 0);
|
|
8297
|
+
__decorate([
|
|
8298
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
8299
|
+
__metadata("design:type", RestoreContextInput)
|
|
8300
|
+
], CreatemjBizAppsOrdersOrderConcessionInput.prototype, "RestoreContext___", void 0);
|
|
8301
|
+
CreatemjBizAppsOrdersOrderConcessionInput = __decorate([
|
|
8302
|
+
InputType()
|
|
8303
|
+
], CreatemjBizAppsOrdersOrderConcessionInput);
|
|
8304
|
+
export { CreatemjBizAppsOrdersOrderConcessionInput };
|
|
8305
|
+
//****************************************************************************
|
|
8306
|
+
// INPUT TYPE for MJ_BizApps_Orders: Order Concessions
|
|
8307
|
+
//****************************************************************************
|
|
8308
|
+
let UpdatemjBizAppsOrdersOrderConcessionInput = class UpdatemjBizAppsOrdersOrderConcessionInput {
|
|
8309
|
+
};
|
|
8310
|
+
__decorate([
|
|
8311
|
+
Field(),
|
|
8312
|
+
__metadata("design:type", String)
|
|
8313
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "ID", void 0);
|
|
8314
|
+
__decorate([
|
|
8315
|
+
Field({ nullable: true }),
|
|
8316
|
+
__metadata("design:type", String)
|
|
8317
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "OrderHeaderID", void 0);
|
|
8318
|
+
__decorate([
|
|
8319
|
+
Field({ nullable: true }),
|
|
8320
|
+
__metadata("design:type", String)
|
|
8321
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "OrderLineID", void 0);
|
|
8322
|
+
__decorate([
|
|
8323
|
+
Field({ nullable: true }),
|
|
8324
|
+
__metadata("design:type", String)
|
|
8325
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "SubscriptionTermID", void 0);
|
|
8326
|
+
__decorate([
|
|
8327
|
+
Field({ nullable: true }),
|
|
8328
|
+
__metadata("design:type", String)
|
|
8329
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "DeliveryForm", void 0);
|
|
8330
|
+
__decorate([
|
|
8331
|
+
Field({ nullable: true }),
|
|
8332
|
+
__metadata("design:type", String)
|
|
8333
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "ReasonCategory", void 0);
|
|
8334
|
+
__decorate([
|
|
8335
|
+
Field({ nullable: true }),
|
|
8336
|
+
__metadata("design:type", String)
|
|
8337
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "Reason", void 0);
|
|
8338
|
+
__decorate([
|
|
8339
|
+
Field(() => Int, { nullable: true }),
|
|
8340
|
+
__metadata("design:type", Number)
|
|
8341
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "AddedDays", void 0);
|
|
8342
|
+
__decorate([
|
|
8343
|
+
Field(() => Float, { nullable: true }),
|
|
8344
|
+
__metadata("design:type", Number)
|
|
8345
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "AddedQuantity", void 0);
|
|
8346
|
+
__decorate([
|
|
8347
|
+
Field(() => Float, { nullable: true }),
|
|
8348
|
+
__metadata("design:type", Number)
|
|
8349
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "ComputedValue", void 0);
|
|
8350
|
+
__decorate([
|
|
8351
|
+
Field(() => Float, { nullable: true }),
|
|
8352
|
+
__metadata("design:type", Number)
|
|
8353
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "OrderNetTotal", void 0);
|
|
8354
|
+
__decorate([
|
|
8355
|
+
Field(() => Float, { nullable: true }),
|
|
8356
|
+
__metadata("design:type", Number)
|
|
8357
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "CumulativeShare", void 0);
|
|
8358
|
+
__decorate([
|
|
8359
|
+
Field({ nullable: true }),
|
|
8360
|
+
__metadata("design:type", String)
|
|
8361
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "Status", void 0);
|
|
8362
|
+
__decorate([
|
|
8363
|
+
Field({ nullable: true }),
|
|
8364
|
+
__metadata("design:type", String)
|
|
8365
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "RequestedByUserID", void 0);
|
|
8366
|
+
__decorate([
|
|
8367
|
+
Field({ nullable: true }),
|
|
8368
|
+
__metadata("design:type", String)
|
|
8369
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "AuthorizedBySalesAuthorityID", void 0);
|
|
8370
|
+
__decorate([
|
|
8371
|
+
Field({ nullable: true }),
|
|
8372
|
+
__metadata("design:type", String)
|
|
8373
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "SalesRuleID", void 0);
|
|
8374
|
+
__decorate([
|
|
8375
|
+
Field({ nullable: true }),
|
|
8376
|
+
__metadata("design:type", String)
|
|
8377
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "DecidedByUserID", void 0);
|
|
8378
|
+
__decorate([
|
|
8379
|
+
Field({ nullable: true }),
|
|
8380
|
+
__metadata("design:type", Date)
|
|
8381
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "DecidedAt", void 0);
|
|
8382
|
+
__decorate([
|
|
8383
|
+
Field({ nullable: true }),
|
|
8384
|
+
__metadata("design:type", String)
|
|
8385
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "DecisionNotes", void 0);
|
|
8386
|
+
__decorate([
|
|
8387
|
+
Field({ nullable: true }),
|
|
8388
|
+
__metadata("design:type", String)
|
|
8389
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "PriorPaymentTermsTypeID", void 0);
|
|
8390
|
+
__decorate([
|
|
8391
|
+
Field({ nullable: true }),
|
|
8392
|
+
__metadata("design:type", String)
|
|
8393
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "NewPaymentTermsTypeID", void 0);
|
|
8394
|
+
__decorate([
|
|
8395
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
8396
|
+
__metadata("design:type", Array)
|
|
8397
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "OldValues___", void 0);
|
|
8398
|
+
__decorate([
|
|
8399
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
8400
|
+
__metadata("design:type", RestoreContextInput)
|
|
8401
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput.prototype, "RestoreContext___", void 0);
|
|
8402
|
+
UpdatemjBizAppsOrdersOrderConcessionInput = __decorate([
|
|
8403
|
+
InputType()
|
|
8404
|
+
], UpdatemjBizAppsOrdersOrderConcessionInput);
|
|
8405
|
+
export { UpdatemjBizAppsOrdersOrderConcessionInput };
|
|
8406
|
+
//****************************************************************************
|
|
8407
|
+
// RESOLVER for MJ_BizApps_Orders: Order Concessions
|
|
8408
|
+
//****************************************************************************
|
|
8409
|
+
let RunmjBizAppsOrdersOrderConcessionViewResult = class RunmjBizAppsOrdersOrderConcessionViewResult {
|
|
8410
|
+
};
|
|
8411
|
+
__decorate([
|
|
8412
|
+
Field(() => [mjBizAppsOrdersOrderConcession_]),
|
|
8413
|
+
__metadata("design:type", Array)
|
|
8414
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "Results", void 0);
|
|
8415
|
+
__decorate([
|
|
8416
|
+
Field(() => String, { nullable: true }),
|
|
8417
|
+
__metadata("design:type", String)
|
|
8418
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "UserViewRunID", void 0);
|
|
8419
|
+
__decorate([
|
|
8420
|
+
Field(() => Int, { nullable: true }),
|
|
8421
|
+
__metadata("design:type", Number)
|
|
8422
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "RowCount", void 0);
|
|
8423
|
+
__decorate([
|
|
8424
|
+
Field(() => Int, { nullable: true }),
|
|
8425
|
+
__metadata("design:type", Number)
|
|
8426
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "TotalRowCount", void 0);
|
|
8427
|
+
__decorate([
|
|
8428
|
+
Field(() => Int, { nullable: true }),
|
|
8429
|
+
__metadata("design:type", Number)
|
|
8430
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "ExecutionTime", void 0);
|
|
8431
|
+
__decorate([
|
|
8432
|
+
Field({ nullable: true }),
|
|
8433
|
+
__metadata("design:type", String)
|
|
8434
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "ErrorMessage", void 0);
|
|
8435
|
+
__decorate([
|
|
8436
|
+
Field(() => Boolean, { nullable: false }),
|
|
8437
|
+
__metadata("design:type", Boolean)
|
|
8438
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult.prototype, "Success", void 0);
|
|
8439
|
+
RunmjBizAppsOrdersOrderConcessionViewResult = __decorate([
|
|
8440
|
+
ObjectType()
|
|
8441
|
+
], RunmjBizAppsOrdersOrderConcessionViewResult);
|
|
8442
|
+
export { RunmjBizAppsOrdersOrderConcessionViewResult };
|
|
8443
|
+
let mjBizAppsOrdersOrderConcessionResolver = class mjBizAppsOrdersOrderConcessionResolver extends ResolverBase {
|
|
8444
|
+
async RunmjBizAppsOrdersOrderConcessionViewByID(input, { providers, userPayload }, pubSub) {
|
|
8445
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8446
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
8447
|
+
}
|
|
8448
|
+
async RunmjBizAppsOrdersOrderConcessionViewByName(input, { providers, userPayload }, pubSub) {
|
|
8449
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8450
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
8451
|
+
}
|
|
8452
|
+
async RunmjBizAppsOrdersOrderConcessionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
8453
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8454
|
+
input.EntityName = 'MJ_BizApps_Orders: Order Concessions';
|
|
8455
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
8456
|
+
}
|
|
8457
|
+
async mjBizAppsOrdersOrderConcession(ID, { userPayload, providers }, pubSub) {
|
|
8458
|
+
this.CheckUserReadPermissions('MJ_BizApps_Orders: Order Concessions', userPayload);
|
|
8459
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8460
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsOrders', 'vwOrderConcessions')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Orders: Order Concessions', userPayload, EntityPermissionType.Read, 'AND');
|
|
8461
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
8462
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Orders: Order Concessions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
8463
|
+
return result;
|
|
8464
|
+
}
|
|
8465
|
+
async CreatemjBizAppsOrdersOrderConcession(input, { providers, userPayload }, pubSub) {
|
|
8466
|
+
const provider = GetReadWriteProvider(providers);
|
|
8467
|
+
return this.CreateRecord('MJ_BizApps_Orders: Order Concessions', input, provider, userPayload, pubSub);
|
|
8468
|
+
}
|
|
8469
|
+
async UpdatemjBizAppsOrdersOrderConcession(input, { providers, userPayload }, pubSub) {
|
|
8470
|
+
const provider = GetReadWriteProvider(providers);
|
|
8471
|
+
return this.UpdateRecord('MJ_BizApps_Orders: Order Concessions', input, provider, userPayload, pubSub);
|
|
8472
|
+
}
|
|
8473
|
+
async DeletemjBizAppsOrdersOrderConcession(ID, options, { providers, userPayload }, pubSub) {
|
|
8474
|
+
const provider = GetReadWriteProvider(providers);
|
|
8475
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
8476
|
+
return this.DeleteRecord('MJ_BizApps_Orders: Order Concessions', key, options, provider, userPayload, pubSub);
|
|
8477
|
+
}
|
|
8478
|
+
};
|
|
8479
|
+
__decorate([
|
|
8480
|
+
Query(() => RunmjBizAppsOrdersOrderConcessionViewResult),
|
|
8481
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
8482
|
+
__param(1, Ctx()),
|
|
8483
|
+
__param(2, PubSub()),
|
|
8484
|
+
__metadata("design:type", Function),
|
|
8485
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
8486
|
+
__metadata("design:returntype", Promise)
|
|
8487
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "RunmjBizAppsOrdersOrderConcessionViewByID", null);
|
|
8488
|
+
__decorate([
|
|
8489
|
+
Query(() => RunmjBizAppsOrdersOrderConcessionViewResult),
|
|
8490
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
8491
|
+
__param(1, Ctx()),
|
|
8492
|
+
__param(2, PubSub()),
|
|
8493
|
+
__metadata("design:type", Function),
|
|
8494
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
8495
|
+
__metadata("design:returntype", Promise)
|
|
8496
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "RunmjBizAppsOrdersOrderConcessionViewByName", null);
|
|
8497
|
+
__decorate([
|
|
8498
|
+
Query(() => RunmjBizAppsOrdersOrderConcessionViewResult),
|
|
8499
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
8500
|
+
__param(1, Ctx()),
|
|
8501
|
+
__param(2, PubSub()),
|
|
8502
|
+
__metadata("design:type", Function),
|
|
8503
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
8504
|
+
__metadata("design:returntype", Promise)
|
|
8505
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "RunmjBizAppsOrdersOrderConcessionDynamicView", null);
|
|
8506
|
+
__decorate([
|
|
8507
|
+
Query(() => mjBizAppsOrdersOrderConcession_, { nullable: true }),
|
|
8508
|
+
__param(0, Arg('ID', () => String)),
|
|
8509
|
+
__param(1, Ctx()),
|
|
8510
|
+
__param(2, PubSub()),
|
|
8511
|
+
__metadata("design:type", Function),
|
|
8512
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
8513
|
+
__metadata("design:returntype", Promise)
|
|
8514
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "mjBizAppsOrdersOrderConcession", null);
|
|
8515
|
+
__decorate([
|
|
8516
|
+
Mutation(() => mjBizAppsOrdersOrderConcession_),
|
|
8517
|
+
__param(0, Arg('input', () => CreatemjBizAppsOrdersOrderConcessionInput)),
|
|
8518
|
+
__param(1, Ctx()),
|
|
8519
|
+
__param(2, PubSub()),
|
|
8520
|
+
__metadata("design:type", Function),
|
|
8521
|
+
__metadata("design:paramtypes", [CreatemjBizAppsOrdersOrderConcessionInput, Object, PubSubEngine]),
|
|
8522
|
+
__metadata("design:returntype", Promise)
|
|
8523
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "CreatemjBizAppsOrdersOrderConcession", null);
|
|
8524
|
+
__decorate([
|
|
8525
|
+
Mutation(() => mjBizAppsOrdersOrderConcession_),
|
|
8526
|
+
__param(0, Arg('input', () => UpdatemjBizAppsOrdersOrderConcessionInput)),
|
|
8527
|
+
__param(1, Ctx()),
|
|
8528
|
+
__param(2, PubSub()),
|
|
8529
|
+
__metadata("design:type", Function),
|
|
8530
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsOrdersOrderConcessionInput, Object, PubSubEngine]),
|
|
8531
|
+
__metadata("design:returntype", Promise)
|
|
8532
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "UpdatemjBizAppsOrdersOrderConcession", null);
|
|
8533
|
+
__decorate([
|
|
8534
|
+
Mutation(() => mjBizAppsOrdersOrderConcession_),
|
|
8535
|
+
__param(0, Arg('ID', () => String)),
|
|
8536
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
8537
|
+
__param(2, Ctx()),
|
|
8538
|
+
__param(3, PubSub()),
|
|
8539
|
+
__metadata("design:type", Function),
|
|
8540
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
8541
|
+
__metadata("design:returntype", Promise)
|
|
8542
|
+
], mjBizAppsOrdersOrderConcessionResolver.prototype, "DeletemjBizAppsOrdersOrderConcession", null);
|
|
8543
|
+
mjBizAppsOrdersOrderConcessionResolver = __decorate([
|
|
8544
|
+
Resolver(mjBizAppsOrdersOrderConcession_)
|
|
8545
|
+
], mjBizAppsOrdersOrderConcessionResolver);
|
|
8546
|
+
export { mjBizAppsOrdersOrderConcessionResolver };
|
|
8547
|
+
//****************************************************************************
|
|
8065
8548
|
// ENTITY CLASS for MJ_BizApps_Orders: Order Header Payment Schedules
|
|
8066
8549
|
//****************************************************************************
|
|
8067
8550
|
let mjBizAppsOrdersOrderHeaderPaymentSchedule_ = class mjBizAppsOrdersOrderHeaderPaymentSchedule_ {
|
|
@@ -20447,6 +20930,18 @@ __decorate([
|
|
|
20447
20930
|
Field(),
|
|
20448
20931
|
__metadata("design:type", Date)
|
|
20449
20932
|
], mjBizAppsOrdersSalesAuthority_.prototype, "_mj__UpdatedAt", void 0);
|
|
20933
|
+
__decorate([
|
|
20934
|
+
Field(() => Float, { nullable: true, description: `Largest concession value, in currency, this rep may grant unaided, whatever form it takes. For a manual discount NULL leaves only MaxDiscountPct in force; for a concession delivered as duration, seats or scope NULL means no authority, so it goes to approval.` }),
|
|
20935
|
+
__metadata("design:type", Number)
|
|
20936
|
+
], mjBizAppsOrdersSalesAuthority_.prototype, "MaxConcessionValue", void 0);
|
|
20937
|
+
__decorate([
|
|
20938
|
+
Field(() => Int, { nullable: true, description: `Term extension, in days, at or above which a no-charge extension needs approval; shorter ones this rep may grant unaided. NULL means no authority to extend, so every extension goes to approval.` }),
|
|
20939
|
+
__metadata("design:type", Number)
|
|
20940
|
+
], mjBizAppsOrdersSalesAuthority_.prototype, "MaxTermExtensionDays", void 0);
|
|
20941
|
+
__decorate([
|
|
20942
|
+
Field(() => Float, { nullable: true, description: `Share of the order's net total, as a fraction (0.05 = 5%), at or above which the order's concessions need approval. Every concession on the order that is not Rejected counts toward it, whatever form it takes. NULL sets no limit on the share.` }),
|
|
20943
|
+
__metadata("design:type", Number)
|
|
20944
|
+
], mjBizAppsOrdersSalesAuthority_.prototype, "MaxConcessionPctOfContract", void 0);
|
|
20450
20945
|
__decorate([
|
|
20451
20946
|
Field({ nullable: true }),
|
|
20452
20947
|
MaxLength(100),
|
|
@@ -20493,6 +20988,18 @@ __decorate([
|
|
|
20493
20988
|
Field(() => Boolean, { nullable: true }),
|
|
20494
20989
|
__metadata("design:type", Boolean)
|
|
20495
20990
|
], CreatemjBizAppsOrdersSalesAuthorityInput.prototype, "IsActive", void 0);
|
|
20991
|
+
__decorate([
|
|
20992
|
+
Field(() => Float, { nullable: true }),
|
|
20993
|
+
__metadata("design:type", Number)
|
|
20994
|
+
], CreatemjBizAppsOrdersSalesAuthorityInput.prototype, "MaxConcessionValue", void 0);
|
|
20995
|
+
__decorate([
|
|
20996
|
+
Field(() => Int, { nullable: true }),
|
|
20997
|
+
__metadata("design:type", Number)
|
|
20998
|
+
], CreatemjBizAppsOrdersSalesAuthorityInput.prototype, "MaxTermExtensionDays", void 0);
|
|
20999
|
+
__decorate([
|
|
21000
|
+
Field(() => Float, { nullable: true }),
|
|
21001
|
+
__metadata("design:type", Number)
|
|
21002
|
+
], CreatemjBizAppsOrdersSalesAuthorityInput.prototype, "MaxConcessionPctOfContract", void 0);
|
|
20496
21003
|
__decorate([
|
|
20497
21004
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
20498
21005
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -20534,6 +21041,18 @@ __decorate([
|
|
|
20534
21041
|
Field(() => Boolean, { nullable: true }),
|
|
20535
21042
|
__metadata("design:type", Boolean)
|
|
20536
21043
|
], UpdatemjBizAppsOrdersSalesAuthorityInput.prototype, "IsActive", void 0);
|
|
21044
|
+
__decorate([
|
|
21045
|
+
Field(() => Float, { nullable: true }),
|
|
21046
|
+
__metadata("design:type", Number)
|
|
21047
|
+
], UpdatemjBizAppsOrdersSalesAuthorityInput.prototype, "MaxConcessionValue", void 0);
|
|
21048
|
+
__decorate([
|
|
21049
|
+
Field(() => Int, { nullable: true }),
|
|
21050
|
+
__metadata("design:type", Number)
|
|
21051
|
+
], UpdatemjBizAppsOrdersSalesAuthorityInput.prototype, "MaxTermExtensionDays", void 0);
|
|
21052
|
+
__decorate([
|
|
21053
|
+
Field(() => Float, { nullable: true }),
|
|
21054
|
+
__metadata("design:type", Number)
|
|
21055
|
+
], UpdatemjBizAppsOrdersSalesAuthorityInput.prototype, "MaxConcessionPctOfContract", void 0);
|
|
20537
21056
|
__decorate([
|
|
20538
21057
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
20539
21058
|
__metadata("design:type", Array)
|
|
@@ -20703,7 +21222,7 @@ __decorate([
|
|
|
20703
21222
|
__metadata("design:type", String)
|
|
20704
21223
|
], mjBizAppsOrdersSalesRule_.prototype, "Name", void 0);
|
|
20705
21224
|
__decorate([
|
|
20706
|
-
Field({ nullable: true, description: `DiscountLimit | PaymentTermsRequired | ProductAuthorization | CreditLimit | Custom.` }),
|
|
21225
|
+
Field({ nullable: true, description: `DiscountLimit | ConcessionLimit | PaymentTermsRequired | ProductAuthorization | CreditLimit | Custom. ConcessionLimit names the role that approves a concession outside a rep's SalesAuthority.` }),
|
|
20707
21226
|
MaxLength(40),
|
|
20708
21227
|
__metadata("design:type", String)
|
|
20709
21228
|
], mjBizAppsOrdersSalesRule_.prototype, "RuleType", void 0);
|