@mj-biz-apps/orders-server 5.14.0 → 5.16.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/generate-invoice.action.d.ts +3 -2
- package/dist/custom/generate-invoice.action.d.ts.map +1 -1
- package/dist/custom/generate-invoice.action.js +12 -2
- package/dist/custom/generate-invoice.action.js.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.d.ts +150 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.js +767 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsOrders.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/services/invoice-renderer.d.ts +2 -0
- package/dist/services/invoice-renderer.d.ts.map +1 -1
- package/dist/services/invoice-renderer.js +1 -0
- package/dist/services/invoice-renderer.js.map +1 -1
- package/package.json +4 -4
|
@@ -2255,6 +2255,327 @@ mjBizAppsOrdersCustomerTaxExemptionResolver = __decorate([
|
|
|
2255
2255
|
], mjBizAppsOrdersCustomerTaxExemptionResolver);
|
|
2256
2256
|
export { mjBizAppsOrdersCustomerTaxExemptionResolver };
|
|
2257
2257
|
//****************************************************************************
|
|
2258
|
+
// ENTITY CLASS for MJ_BizApps_Orders: Dimension Defaults
|
|
2259
|
+
//****************************************************************************
|
|
2260
|
+
let mjBizAppsOrdersDimensionDefault_ = class mjBizAppsOrdersDimensionDefault_ {
|
|
2261
|
+
};
|
|
2262
|
+
__decorate([
|
|
2263
|
+
Field(),
|
|
2264
|
+
MaxLength(36),
|
|
2265
|
+
__metadata("design:type", String)
|
|
2266
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "ID", void 0);
|
|
2267
|
+
__decorate([
|
|
2268
|
+
Field({ nullable: true, description: `The kind of record this default hangs off — MJ Entity id for Products, Product Categories, Product Types or Companies.` }),
|
|
2269
|
+
MaxLength(36),
|
|
2270
|
+
__metadata("design:type", String)
|
|
2271
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "EntityID", void 0);
|
|
2272
|
+
__decorate([
|
|
2273
|
+
Field({ nullable: true, description: `The record this default hangs off, within EntityID.` }),
|
|
2274
|
+
MaxLength(400),
|
|
2275
|
+
__metadata("design:type", String)
|
|
2276
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "RecordID", void 0);
|
|
2277
|
+
__decorate([
|
|
2278
|
+
Field({ nullable: true, description: `The analysis axis this default supplies, from __mj_BizAppsAccounting.Dimension.` }),
|
|
2279
|
+
MaxLength(36),
|
|
2280
|
+
__metadata("design:type", String)
|
|
2281
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "DimensionID", void 0);
|
|
2282
|
+
__decorate([
|
|
2283
|
+
Field({ nullable: true, description: `The value supplied for that axis, from __mj_BizAppsAccounting.DimensionValue.` }),
|
|
2284
|
+
MaxLength(36),
|
|
2285
|
+
__metadata("design:type", String)
|
|
2286
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "DimensionValueID", void 0);
|
|
2287
|
+
__decorate([
|
|
2288
|
+
Field({ nullable: true, description: `Pending, Active or Disabled. Only Active rows are considered, matching how GL account links are resolved.` }),
|
|
2289
|
+
MaxLength(10),
|
|
2290
|
+
__metadata("design:type", String)
|
|
2291
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "Status", void 0);
|
|
2292
|
+
__decorate([
|
|
2293
|
+
Field({ nullable: true, description: `Start of the window this default applies to. NULL is open-ended. Judged against the order date, not today, so a back-dated order resolves what was live when it was placed.` }),
|
|
2294
|
+
__metadata("design:type", Date)
|
|
2295
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "StartedAt", void 0);
|
|
2296
|
+
__decorate([
|
|
2297
|
+
Field({ nullable: true, description: `End of the window this default applies to. NULL is open-ended.` }),
|
|
2298
|
+
__metadata("design:type", Date)
|
|
2299
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "EndedAt", void 0);
|
|
2300
|
+
__decorate([
|
|
2301
|
+
Field({ nullable: true, description: `Free-text note for why this default exists. Not read by anything.` }),
|
|
2302
|
+
__metadata("design:type", String)
|
|
2303
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "Comments", void 0);
|
|
2304
|
+
__decorate([
|
|
2305
|
+
Field(),
|
|
2306
|
+
__metadata("design:type", Date)
|
|
2307
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "_mj__CreatedAt", void 0);
|
|
2308
|
+
__decorate([
|
|
2309
|
+
Field(),
|
|
2310
|
+
__metadata("design:type", Date)
|
|
2311
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "_mj__UpdatedAt", void 0);
|
|
2312
|
+
__decorate([
|
|
2313
|
+
Field({ nullable: true }),
|
|
2314
|
+
MaxLength(255),
|
|
2315
|
+
__metadata("design:type", String)
|
|
2316
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "Entity", void 0);
|
|
2317
|
+
__decorate([
|
|
2318
|
+
Field({ nullable: true }),
|
|
2319
|
+
MaxLength(100),
|
|
2320
|
+
__metadata("design:type", String)
|
|
2321
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "Dimension", void 0);
|
|
2322
|
+
__decorate([
|
|
2323
|
+
Field({ nullable: true }),
|
|
2324
|
+
MaxLength(200),
|
|
2325
|
+
__metadata("design:type", String)
|
|
2326
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "DimensionValue", void 0);
|
|
2327
|
+
__decorate([
|
|
2328
|
+
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.` }),
|
|
2329
|
+
__metadata("design:type", Array)
|
|
2330
|
+
], mjBizAppsOrdersDimensionDefault_.prototype, "ReadableFields___", void 0);
|
|
2331
|
+
mjBizAppsOrdersDimensionDefault_ = __decorate([
|
|
2332
|
+
ObjectType({ description: `Default GL dimension values for order lines, resolved by the same precedence as GL account links: product, then its category and that category\'s ancestors, then its product type, then the line\'s company. Most specific wins, per dimension.` })
|
|
2333
|
+
], mjBizAppsOrdersDimensionDefault_);
|
|
2334
|
+
export { mjBizAppsOrdersDimensionDefault_ };
|
|
2335
|
+
//****************************************************************************
|
|
2336
|
+
// INPUT TYPE for MJ_BizApps_Orders: Dimension Defaults
|
|
2337
|
+
//****************************************************************************
|
|
2338
|
+
let CreatemjBizAppsOrdersDimensionDefaultInput = class CreatemjBizAppsOrdersDimensionDefaultInput {
|
|
2339
|
+
};
|
|
2340
|
+
__decorate([
|
|
2341
|
+
Field({ nullable: true }),
|
|
2342
|
+
__metadata("design:type", String)
|
|
2343
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "ID", void 0);
|
|
2344
|
+
__decorate([
|
|
2345
|
+
Field({ nullable: true }),
|
|
2346
|
+
__metadata("design:type", String)
|
|
2347
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "EntityID", void 0);
|
|
2348
|
+
__decorate([
|
|
2349
|
+
Field({ nullable: true }),
|
|
2350
|
+
__metadata("design:type", String)
|
|
2351
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "RecordID", void 0);
|
|
2352
|
+
__decorate([
|
|
2353
|
+
Field({ nullable: true }),
|
|
2354
|
+
__metadata("design:type", String)
|
|
2355
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "DimensionID", void 0);
|
|
2356
|
+
__decorate([
|
|
2357
|
+
Field({ nullable: true }),
|
|
2358
|
+
__metadata("design:type", String)
|
|
2359
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "DimensionValueID", void 0);
|
|
2360
|
+
__decorate([
|
|
2361
|
+
Field({ nullable: true }),
|
|
2362
|
+
__metadata("design:type", String)
|
|
2363
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "Status", void 0);
|
|
2364
|
+
__decorate([
|
|
2365
|
+
Field({ nullable: true }),
|
|
2366
|
+
__metadata("design:type", Date)
|
|
2367
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "StartedAt", void 0);
|
|
2368
|
+
__decorate([
|
|
2369
|
+
Field({ nullable: true }),
|
|
2370
|
+
__metadata("design:type", Date)
|
|
2371
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "EndedAt", void 0);
|
|
2372
|
+
__decorate([
|
|
2373
|
+
Field({ nullable: true }),
|
|
2374
|
+
__metadata("design:type", String)
|
|
2375
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "Comments", void 0);
|
|
2376
|
+
__decorate([
|
|
2377
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
2378
|
+
__metadata("design:type", RestoreContextInput)
|
|
2379
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput.prototype, "RestoreContext___", void 0);
|
|
2380
|
+
CreatemjBizAppsOrdersDimensionDefaultInput = __decorate([
|
|
2381
|
+
InputType()
|
|
2382
|
+
], CreatemjBizAppsOrdersDimensionDefaultInput);
|
|
2383
|
+
export { CreatemjBizAppsOrdersDimensionDefaultInput };
|
|
2384
|
+
//****************************************************************************
|
|
2385
|
+
// INPUT TYPE for MJ_BizApps_Orders: Dimension Defaults
|
|
2386
|
+
//****************************************************************************
|
|
2387
|
+
let UpdatemjBizAppsOrdersDimensionDefaultInput = class UpdatemjBizAppsOrdersDimensionDefaultInput {
|
|
2388
|
+
};
|
|
2389
|
+
__decorate([
|
|
2390
|
+
Field(),
|
|
2391
|
+
__metadata("design:type", String)
|
|
2392
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "ID", void 0);
|
|
2393
|
+
__decorate([
|
|
2394
|
+
Field({ nullable: true }),
|
|
2395
|
+
__metadata("design:type", String)
|
|
2396
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "EntityID", void 0);
|
|
2397
|
+
__decorate([
|
|
2398
|
+
Field({ nullable: true }),
|
|
2399
|
+
__metadata("design:type", String)
|
|
2400
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "RecordID", void 0);
|
|
2401
|
+
__decorate([
|
|
2402
|
+
Field({ nullable: true }),
|
|
2403
|
+
__metadata("design:type", String)
|
|
2404
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "DimensionID", void 0);
|
|
2405
|
+
__decorate([
|
|
2406
|
+
Field({ nullable: true }),
|
|
2407
|
+
__metadata("design:type", String)
|
|
2408
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "DimensionValueID", void 0);
|
|
2409
|
+
__decorate([
|
|
2410
|
+
Field({ nullable: true }),
|
|
2411
|
+
__metadata("design:type", String)
|
|
2412
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "Status", void 0);
|
|
2413
|
+
__decorate([
|
|
2414
|
+
Field({ nullable: true }),
|
|
2415
|
+
__metadata("design:type", Date)
|
|
2416
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "StartedAt", void 0);
|
|
2417
|
+
__decorate([
|
|
2418
|
+
Field({ nullable: true }),
|
|
2419
|
+
__metadata("design:type", Date)
|
|
2420
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "EndedAt", void 0);
|
|
2421
|
+
__decorate([
|
|
2422
|
+
Field({ nullable: true }),
|
|
2423
|
+
__metadata("design:type", String)
|
|
2424
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "Comments", void 0);
|
|
2425
|
+
__decorate([
|
|
2426
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
2427
|
+
__metadata("design:type", Array)
|
|
2428
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "OldValues___", void 0);
|
|
2429
|
+
__decorate([
|
|
2430
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
2431
|
+
__metadata("design:type", RestoreContextInput)
|
|
2432
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput.prototype, "RestoreContext___", void 0);
|
|
2433
|
+
UpdatemjBizAppsOrdersDimensionDefaultInput = __decorate([
|
|
2434
|
+
InputType()
|
|
2435
|
+
], UpdatemjBizAppsOrdersDimensionDefaultInput);
|
|
2436
|
+
export { UpdatemjBizAppsOrdersDimensionDefaultInput };
|
|
2437
|
+
//****************************************************************************
|
|
2438
|
+
// RESOLVER for MJ_BizApps_Orders: Dimension Defaults
|
|
2439
|
+
//****************************************************************************
|
|
2440
|
+
let RunmjBizAppsOrdersDimensionDefaultViewResult = class RunmjBizAppsOrdersDimensionDefaultViewResult {
|
|
2441
|
+
};
|
|
2442
|
+
__decorate([
|
|
2443
|
+
Field(() => [mjBizAppsOrdersDimensionDefault_]),
|
|
2444
|
+
__metadata("design:type", Array)
|
|
2445
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "Results", void 0);
|
|
2446
|
+
__decorate([
|
|
2447
|
+
Field(() => String, { nullable: true }),
|
|
2448
|
+
__metadata("design:type", String)
|
|
2449
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "UserViewRunID", void 0);
|
|
2450
|
+
__decorate([
|
|
2451
|
+
Field(() => Int, { nullable: true }),
|
|
2452
|
+
__metadata("design:type", Number)
|
|
2453
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "RowCount", void 0);
|
|
2454
|
+
__decorate([
|
|
2455
|
+
Field(() => Int, { nullable: true }),
|
|
2456
|
+
__metadata("design:type", Number)
|
|
2457
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "TotalRowCount", void 0);
|
|
2458
|
+
__decorate([
|
|
2459
|
+
Field(() => Int, { nullable: true }),
|
|
2460
|
+
__metadata("design:type", Number)
|
|
2461
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "ExecutionTime", void 0);
|
|
2462
|
+
__decorate([
|
|
2463
|
+
Field({ nullable: true }),
|
|
2464
|
+
__metadata("design:type", String)
|
|
2465
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "ErrorMessage", void 0);
|
|
2466
|
+
__decorate([
|
|
2467
|
+
Field(() => Boolean, { nullable: false }),
|
|
2468
|
+
__metadata("design:type", Boolean)
|
|
2469
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult.prototype, "Success", void 0);
|
|
2470
|
+
RunmjBizAppsOrdersDimensionDefaultViewResult = __decorate([
|
|
2471
|
+
ObjectType()
|
|
2472
|
+
], RunmjBizAppsOrdersDimensionDefaultViewResult);
|
|
2473
|
+
export { RunmjBizAppsOrdersDimensionDefaultViewResult };
|
|
2474
|
+
let mjBizAppsOrdersDimensionDefaultResolver = class mjBizAppsOrdersDimensionDefaultResolver extends ResolverBase {
|
|
2475
|
+
async RunmjBizAppsOrdersDimensionDefaultViewByID(input, { providers, userPayload }, pubSub) {
|
|
2476
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2477
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
2478
|
+
}
|
|
2479
|
+
async RunmjBizAppsOrdersDimensionDefaultViewByName(input, { providers, userPayload }, pubSub) {
|
|
2480
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2481
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
2482
|
+
}
|
|
2483
|
+
async RunmjBizAppsOrdersDimensionDefaultDynamicView(input, { providers, userPayload }, pubSub) {
|
|
2484
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2485
|
+
input.EntityName = 'MJ_BizApps_Orders: Dimension Defaults';
|
|
2486
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
2487
|
+
}
|
|
2488
|
+
async mjBizAppsOrdersDimensionDefault(ID, { userPayload, providers }, pubSub) {
|
|
2489
|
+
this.CheckUserReadPermissions('MJ_BizApps_Orders: Dimension Defaults', userPayload);
|
|
2490
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2491
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsOrders', 'vwDimensionDefaults')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Orders: Dimension Defaults', userPayload, EntityPermissionType.Read, 'AND');
|
|
2492
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2493
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Orders: Dimension Defaults', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2494
|
+
return result;
|
|
2495
|
+
}
|
|
2496
|
+
async CreatemjBizAppsOrdersDimensionDefault(input, { providers, userPayload }, pubSub) {
|
|
2497
|
+
const provider = GetReadWriteProvider(providers);
|
|
2498
|
+
return this.CreateRecord('MJ_BizApps_Orders: Dimension Defaults', input, provider, userPayload, pubSub);
|
|
2499
|
+
}
|
|
2500
|
+
async UpdatemjBizAppsOrdersDimensionDefault(input, { providers, userPayload }, pubSub) {
|
|
2501
|
+
const provider = GetReadWriteProvider(providers);
|
|
2502
|
+
return this.UpdateRecord('MJ_BizApps_Orders: Dimension Defaults', input, provider, userPayload, pubSub);
|
|
2503
|
+
}
|
|
2504
|
+
async DeletemjBizAppsOrdersDimensionDefault(ID, options, { providers, userPayload }, pubSub) {
|
|
2505
|
+
const provider = GetReadWriteProvider(providers);
|
|
2506
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
2507
|
+
return this.DeleteRecord('MJ_BizApps_Orders: Dimension Defaults', key, options, provider, userPayload, pubSub);
|
|
2508
|
+
}
|
|
2509
|
+
};
|
|
2510
|
+
__decorate([
|
|
2511
|
+
Query(() => RunmjBizAppsOrdersDimensionDefaultViewResult),
|
|
2512
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
2513
|
+
__param(1, Ctx()),
|
|
2514
|
+
__param(2, PubSub()),
|
|
2515
|
+
__metadata("design:type", Function),
|
|
2516
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
2517
|
+
__metadata("design:returntype", Promise)
|
|
2518
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "RunmjBizAppsOrdersDimensionDefaultViewByID", null);
|
|
2519
|
+
__decorate([
|
|
2520
|
+
Query(() => RunmjBizAppsOrdersDimensionDefaultViewResult),
|
|
2521
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
2522
|
+
__param(1, Ctx()),
|
|
2523
|
+
__param(2, PubSub()),
|
|
2524
|
+
__metadata("design:type", Function),
|
|
2525
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
2526
|
+
__metadata("design:returntype", Promise)
|
|
2527
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "RunmjBizAppsOrdersDimensionDefaultViewByName", null);
|
|
2528
|
+
__decorate([
|
|
2529
|
+
Query(() => RunmjBizAppsOrdersDimensionDefaultViewResult),
|
|
2530
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
2531
|
+
__param(1, Ctx()),
|
|
2532
|
+
__param(2, PubSub()),
|
|
2533
|
+
__metadata("design:type", Function),
|
|
2534
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
2535
|
+
__metadata("design:returntype", Promise)
|
|
2536
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "RunmjBizAppsOrdersDimensionDefaultDynamicView", null);
|
|
2537
|
+
__decorate([
|
|
2538
|
+
Query(() => mjBizAppsOrdersDimensionDefault_, { nullable: true }),
|
|
2539
|
+
__param(0, Arg('ID', () => String)),
|
|
2540
|
+
__param(1, Ctx()),
|
|
2541
|
+
__param(2, PubSub()),
|
|
2542
|
+
__metadata("design:type", Function),
|
|
2543
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
2544
|
+
__metadata("design:returntype", Promise)
|
|
2545
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "mjBizAppsOrdersDimensionDefault", null);
|
|
2546
|
+
__decorate([
|
|
2547
|
+
Mutation(() => mjBizAppsOrdersDimensionDefault_),
|
|
2548
|
+
__param(0, Arg('input', () => CreatemjBizAppsOrdersDimensionDefaultInput)),
|
|
2549
|
+
__param(1, Ctx()),
|
|
2550
|
+
__param(2, PubSub()),
|
|
2551
|
+
__metadata("design:type", Function),
|
|
2552
|
+
__metadata("design:paramtypes", [CreatemjBizAppsOrdersDimensionDefaultInput, Object, PubSubEngine]),
|
|
2553
|
+
__metadata("design:returntype", Promise)
|
|
2554
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "CreatemjBizAppsOrdersDimensionDefault", null);
|
|
2555
|
+
__decorate([
|
|
2556
|
+
Mutation(() => mjBizAppsOrdersDimensionDefault_),
|
|
2557
|
+
__param(0, Arg('input', () => UpdatemjBizAppsOrdersDimensionDefaultInput)),
|
|
2558
|
+
__param(1, Ctx()),
|
|
2559
|
+
__param(2, PubSub()),
|
|
2560
|
+
__metadata("design:type", Function),
|
|
2561
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsOrdersDimensionDefaultInput, Object, PubSubEngine]),
|
|
2562
|
+
__metadata("design:returntype", Promise)
|
|
2563
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "UpdatemjBizAppsOrdersDimensionDefault", null);
|
|
2564
|
+
__decorate([
|
|
2565
|
+
Mutation(() => mjBizAppsOrdersDimensionDefault_),
|
|
2566
|
+
__param(0, Arg('ID', () => String)),
|
|
2567
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
2568
|
+
__param(2, Ctx()),
|
|
2569
|
+
__param(3, PubSub()),
|
|
2570
|
+
__metadata("design:type", Function),
|
|
2571
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
2572
|
+
__metadata("design:returntype", Promise)
|
|
2573
|
+
], mjBizAppsOrdersDimensionDefaultResolver.prototype, "DeletemjBizAppsOrdersDimensionDefault", null);
|
|
2574
|
+
mjBizAppsOrdersDimensionDefaultResolver = __decorate([
|
|
2575
|
+
Resolver(mjBizAppsOrdersDimensionDefault_)
|
|
2576
|
+
], mjBizAppsOrdersDimensionDefaultResolver);
|
|
2577
|
+
export { mjBizAppsOrdersDimensionDefaultResolver };
|
|
2578
|
+
//****************************************************************************
|
|
2258
2579
|
// ENTITY CLASS for MJ_BizApps_Orders: Entitlement Grants
|
|
2259
2580
|
//****************************************************************************
|
|
2260
2581
|
let mjBizAppsOrdersEntitlementGrant_ = class mjBizAppsOrdersEntitlementGrant_ {
|
|
@@ -5544,6 +5865,435 @@ mjBizAppsOrdersOrderCompanyPolicyResolver = __decorate([
|
|
|
5544
5865
|
], mjBizAppsOrdersOrderCompanyPolicyResolver);
|
|
5545
5866
|
export { mjBizAppsOrdersOrderCompanyPolicyResolver };
|
|
5546
5867
|
//****************************************************************************
|
|
5868
|
+
// ENTITY CLASS for MJ_BizApps_Orders: Order Header Payment Schedules
|
|
5869
|
+
//****************************************************************************
|
|
5870
|
+
let mjBizAppsOrdersOrderHeaderPaymentSchedule_ = class mjBizAppsOrdersOrderHeaderPaymentSchedule_ {
|
|
5871
|
+
};
|
|
5872
|
+
__decorate([
|
|
5873
|
+
Field(),
|
|
5874
|
+
MaxLength(36),
|
|
5875
|
+
__metadata("design:type", String)
|
|
5876
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "ID", void 0);
|
|
5877
|
+
__decorate([
|
|
5878
|
+
Field(),
|
|
5879
|
+
MaxLength(36),
|
|
5880
|
+
__metadata("design:type", String)
|
|
5881
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "OrderHeaderID", void 0);
|
|
5882
|
+
__decorate([
|
|
5883
|
+
Field({ description: `The selling company this instalment bills for. Stamped server-side from the order's lines (D86), never authored; a multi-company order carries one schedule per company.` }),
|
|
5884
|
+
MaxLength(36),
|
|
5885
|
+
__metadata("design:type", String)
|
|
5886
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "CompanyID", void 0);
|
|
5887
|
+
__decorate([
|
|
5888
|
+
Field(() => Int, { description: `1-based position within the order and company. Unique per (order, company). Part of the frozen document number, so it must not be renumbered after invoicing.` }),
|
|
5889
|
+
__metadata("design:type", Number)
|
|
5890
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "InstallmentNumber", void 0);
|
|
5891
|
+
__decorate([
|
|
5892
|
+
Field({ description: `When this instalment is due. Re-datable while Scheduled; frozen once Invoiced. The earliest unpaid row's DueDate is the order's NextDueDate, which ageing reads.` }),
|
|
5893
|
+
__metadata("design:type", Date)
|
|
5894
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "DueDate", void 0);
|
|
5895
|
+
__decorate([
|
|
5896
|
+
Field(() => Float, { description: `The instalment amount. Per (order, company) the non-Canceled rows must sum to that company's LineTotalGross once the order is Confirmed; enforced at confirm and again at invoicing.` }),
|
|
5897
|
+
__metadata("design:type", Number)
|
|
5898
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "Amount", void 0);
|
|
5899
|
+
__decorate([
|
|
5900
|
+
Field({ description: `Scheduled | Invoiced | Paid | Canceled | WrittenOff. Scheduled -> Invoiced is Orders.IssueInstalmentInvoice; Invoiced <-> Paid follows the rollup; WrittenOff and Canceled are explicit and never overwritten.` }),
|
|
5901
|
+
MaxLength(20),
|
|
5902
|
+
__metadata("design:type", String)
|
|
5903
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "Status", void 0);
|
|
5904
|
+
__decorate([
|
|
5905
|
+
Field({ nullable: true, description: `The invoice number the customer holds, frozen by Orders.IssueInstalmentInvoice and never recomputed (D87). NULL while Scheduled. Format: ORD-1234-2, or ORD-1234-B2 on a company-split order.` }),
|
|
5906
|
+
MaxLength(40),
|
|
5907
|
+
__metadata("design:type", String)
|
|
5908
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "DocumentNumber", void 0);
|
|
5909
|
+
__decorate([
|
|
5910
|
+
Field({ nullable: true, description: `When the instalment was invoiced. NULL while Scheduled. Set once, never cleared.` }),
|
|
5911
|
+
__metadata("design:type", Date)
|
|
5912
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "InvoicedAt", void 0);
|
|
5913
|
+
__decorate([
|
|
5914
|
+
Field({ nullable: true, description: `Who issued the instalment invoice.` }),
|
|
5915
|
+
MaxLength(36),
|
|
5916
|
+
__metadata("design:type", String)
|
|
5917
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "InvoicedByUserID", void 0);
|
|
5918
|
+
__decorate([
|
|
5919
|
+
Field({ nullable: true, description: `The AR reclass journal entry (Unbilled Receivable -> Accounts Receivable) booked when the instalment was invoiced. Soft reference into accounting. NULL until the reclass entry ships (AIDP-25).` }),
|
|
5920
|
+
MaxLength(36),
|
|
5921
|
+
__metadata("design:type", String)
|
|
5922
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "JournalEntryID", void 0);
|
|
5923
|
+
__decorate([
|
|
5924
|
+
Field({ nullable: true, description: `The outbound system that holds the invoice (e.g. BillCom). Written by the delivery integration, not by Orders.` }),
|
|
5925
|
+
MaxLength(40),
|
|
5926
|
+
__metadata("design:type", String)
|
|
5927
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "ExternalSystem", void 0);
|
|
5928
|
+
__decorate([
|
|
5929
|
+
Field({ nullable: true, description: `The external system's own invoice id, so "what is this invoice's Bill.com id" is answerable from the database.` }),
|
|
5930
|
+
MaxLength(100),
|
|
5931
|
+
__metadata("design:type", String)
|
|
5932
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "ExternalInvoiceRef", void 0);
|
|
5933
|
+
__decorate([
|
|
5934
|
+
Field({ nullable: true, description: `When the invoice was delivered to the customer. NULL means unsent — the audit fact behind reversing an unsent invoice.` }),
|
|
5935
|
+
__metadata("design:type", Date)
|
|
5936
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "SentAt", void 0);
|
|
5937
|
+
__decorate([
|
|
5938
|
+
Field(() => Float, { description: `Trigger-maintained: payments named to this row plus the oldest-due-first share of payments applied to the order as a whole. Never authored.` }),
|
|
5939
|
+
__metadata("design:type", Number)
|
|
5940
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "AmountPaid", void 0);
|
|
5941
|
+
__decorate([
|
|
5942
|
+
Field(() => Float, { nullable: true, description: `Trigger-maintained: Amount - AmountPaid, computed in the same statement as AmountPaid. Never authored.` }),
|
|
5943
|
+
__metadata("design:type", Number)
|
|
5944
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "Balance", void 0);
|
|
5945
|
+
__decorate([
|
|
5946
|
+
Field({ nullable: true, description: `What this instalment is for, as it should print on the invoice (e.g. "Year 2 of 3").` }),
|
|
5947
|
+
MaxLength(500),
|
|
5948
|
+
__metadata("design:type", String)
|
|
5949
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "Description", void 0);
|
|
5950
|
+
__decorate([
|
|
5951
|
+
Field({ nullable: true, description: `Free text. Editable at any status.` }),
|
|
5952
|
+
__metadata("design:type", String)
|
|
5953
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "Notes", void 0);
|
|
5954
|
+
__decorate([
|
|
5955
|
+
Field(),
|
|
5956
|
+
__metadata("design:type", Date)
|
|
5957
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "_mj__CreatedAt", void 0);
|
|
5958
|
+
__decorate([
|
|
5959
|
+
Field(),
|
|
5960
|
+
__metadata("design:type", Date)
|
|
5961
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "_mj__UpdatedAt", void 0);
|
|
5962
|
+
__decorate([
|
|
5963
|
+
Field(),
|
|
5964
|
+
MaxLength(40),
|
|
5965
|
+
__metadata("design:type", String)
|
|
5966
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "OrderHeader", void 0);
|
|
5967
|
+
__decorate([
|
|
5968
|
+
Field(),
|
|
5969
|
+
MaxLength(50),
|
|
5970
|
+
__metadata("design:type", String)
|
|
5971
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "Company", void 0);
|
|
5972
|
+
__decorate([
|
|
5973
|
+
Field({ nullable: true }),
|
|
5974
|
+
MaxLength(100),
|
|
5975
|
+
__metadata("design:type", String)
|
|
5976
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_.prototype, "InvoicedByUser", void 0);
|
|
5977
|
+
mjBizAppsOrdersOrderHeaderPaymentSchedule_ = __decorate([
|
|
5978
|
+
ObjectType({ description: `One instalment of an order\'s billing schedule (D85). Editable while Scheduled provided the per-company sum still ties to the order; immutable once Invoiced (D88). An order with no rows is billed as one implicit instalment on its DueDate.` })
|
|
5979
|
+
], mjBizAppsOrdersOrderHeaderPaymentSchedule_);
|
|
5980
|
+
export { mjBizAppsOrdersOrderHeaderPaymentSchedule_ };
|
|
5981
|
+
//****************************************************************************
|
|
5982
|
+
// INPUT TYPE for MJ_BizApps_Orders: Order Header Payment Schedules
|
|
5983
|
+
//****************************************************************************
|
|
5984
|
+
let CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput = class CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput {
|
|
5985
|
+
};
|
|
5986
|
+
__decorate([
|
|
5987
|
+
Field({ nullable: true }),
|
|
5988
|
+
__metadata("design:type", String)
|
|
5989
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "ID", void 0);
|
|
5990
|
+
__decorate([
|
|
5991
|
+
Field({ nullable: true }),
|
|
5992
|
+
__metadata("design:type", String)
|
|
5993
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "OrderHeaderID", void 0);
|
|
5994
|
+
__decorate([
|
|
5995
|
+
Field({ nullable: true }),
|
|
5996
|
+
__metadata("design:type", String)
|
|
5997
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "CompanyID", void 0);
|
|
5998
|
+
__decorate([
|
|
5999
|
+
Field(() => Int, { nullable: true }),
|
|
6000
|
+
__metadata("design:type", Number)
|
|
6001
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "InstallmentNumber", void 0);
|
|
6002
|
+
__decorate([
|
|
6003
|
+
Field({ nullable: true }),
|
|
6004
|
+
__metadata("design:type", Date)
|
|
6005
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "DueDate", void 0);
|
|
6006
|
+
__decorate([
|
|
6007
|
+
Field(() => Float, { nullable: true }),
|
|
6008
|
+
__metadata("design:type", Number)
|
|
6009
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Amount", void 0);
|
|
6010
|
+
__decorate([
|
|
6011
|
+
Field({ nullable: true }),
|
|
6012
|
+
__metadata("design:type", String)
|
|
6013
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Status", void 0);
|
|
6014
|
+
__decorate([
|
|
6015
|
+
Field({ nullable: true }),
|
|
6016
|
+
__metadata("design:type", String)
|
|
6017
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "DocumentNumber", void 0);
|
|
6018
|
+
__decorate([
|
|
6019
|
+
Field({ nullable: true }),
|
|
6020
|
+
__metadata("design:type", Date)
|
|
6021
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "InvoicedAt", void 0);
|
|
6022
|
+
__decorate([
|
|
6023
|
+
Field({ nullable: true }),
|
|
6024
|
+
__metadata("design:type", String)
|
|
6025
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "InvoicedByUserID", void 0);
|
|
6026
|
+
__decorate([
|
|
6027
|
+
Field({ nullable: true }),
|
|
6028
|
+
__metadata("design:type", String)
|
|
6029
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "JournalEntryID", void 0);
|
|
6030
|
+
__decorate([
|
|
6031
|
+
Field({ nullable: true }),
|
|
6032
|
+
__metadata("design:type", String)
|
|
6033
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "ExternalSystem", void 0);
|
|
6034
|
+
__decorate([
|
|
6035
|
+
Field({ nullable: true }),
|
|
6036
|
+
__metadata("design:type", String)
|
|
6037
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "ExternalInvoiceRef", void 0);
|
|
6038
|
+
__decorate([
|
|
6039
|
+
Field({ nullable: true }),
|
|
6040
|
+
__metadata("design:type", Date)
|
|
6041
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "SentAt", void 0);
|
|
6042
|
+
__decorate([
|
|
6043
|
+
Field(() => Float, { nullable: true }),
|
|
6044
|
+
__metadata("design:type", Number)
|
|
6045
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "AmountPaid", void 0);
|
|
6046
|
+
__decorate([
|
|
6047
|
+
Field(() => Float, { nullable: true }),
|
|
6048
|
+
__metadata("design:type", Number)
|
|
6049
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Balance", void 0);
|
|
6050
|
+
__decorate([
|
|
6051
|
+
Field({ nullable: true }),
|
|
6052
|
+
__metadata("design:type", String)
|
|
6053
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Description", void 0);
|
|
6054
|
+
__decorate([
|
|
6055
|
+
Field({ nullable: true }),
|
|
6056
|
+
__metadata("design:type", String)
|
|
6057
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Notes", void 0);
|
|
6058
|
+
__decorate([
|
|
6059
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
6060
|
+
__metadata("design:type", RestoreContextInput)
|
|
6061
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "RestoreContext___", void 0);
|
|
6062
|
+
CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput = __decorate([
|
|
6063
|
+
InputType()
|
|
6064
|
+
], CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput);
|
|
6065
|
+
export { CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput };
|
|
6066
|
+
//****************************************************************************
|
|
6067
|
+
// INPUT TYPE for MJ_BizApps_Orders: Order Header Payment Schedules
|
|
6068
|
+
//****************************************************************************
|
|
6069
|
+
let UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput = class UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput {
|
|
6070
|
+
};
|
|
6071
|
+
__decorate([
|
|
6072
|
+
Field(),
|
|
6073
|
+
__metadata("design:type", String)
|
|
6074
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "ID", void 0);
|
|
6075
|
+
__decorate([
|
|
6076
|
+
Field({ nullable: true }),
|
|
6077
|
+
__metadata("design:type", String)
|
|
6078
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "OrderHeaderID", void 0);
|
|
6079
|
+
__decorate([
|
|
6080
|
+
Field({ nullable: true }),
|
|
6081
|
+
__metadata("design:type", String)
|
|
6082
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "CompanyID", void 0);
|
|
6083
|
+
__decorate([
|
|
6084
|
+
Field(() => Int, { nullable: true }),
|
|
6085
|
+
__metadata("design:type", Number)
|
|
6086
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "InstallmentNumber", void 0);
|
|
6087
|
+
__decorate([
|
|
6088
|
+
Field({ nullable: true }),
|
|
6089
|
+
__metadata("design:type", Date)
|
|
6090
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "DueDate", void 0);
|
|
6091
|
+
__decorate([
|
|
6092
|
+
Field(() => Float, { nullable: true }),
|
|
6093
|
+
__metadata("design:type", Number)
|
|
6094
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Amount", void 0);
|
|
6095
|
+
__decorate([
|
|
6096
|
+
Field({ nullable: true }),
|
|
6097
|
+
__metadata("design:type", String)
|
|
6098
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Status", void 0);
|
|
6099
|
+
__decorate([
|
|
6100
|
+
Field({ nullable: true }),
|
|
6101
|
+
__metadata("design:type", String)
|
|
6102
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "DocumentNumber", void 0);
|
|
6103
|
+
__decorate([
|
|
6104
|
+
Field({ nullable: true }),
|
|
6105
|
+
__metadata("design:type", Date)
|
|
6106
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "InvoicedAt", void 0);
|
|
6107
|
+
__decorate([
|
|
6108
|
+
Field({ nullable: true }),
|
|
6109
|
+
__metadata("design:type", String)
|
|
6110
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "InvoicedByUserID", void 0);
|
|
6111
|
+
__decorate([
|
|
6112
|
+
Field({ nullable: true }),
|
|
6113
|
+
__metadata("design:type", String)
|
|
6114
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "JournalEntryID", void 0);
|
|
6115
|
+
__decorate([
|
|
6116
|
+
Field({ nullable: true }),
|
|
6117
|
+
__metadata("design:type", String)
|
|
6118
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "ExternalSystem", void 0);
|
|
6119
|
+
__decorate([
|
|
6120
|
+
Field({ nullable: true }),
|
|
6121
|
+
__metadata("design:type", String)
|
|
6122
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "ExternalInvoiceRef", void 0);
|
|
6123
|
+
__decorate([
|
|
6124
|
+
Field({ nullable: true }),
|
|
6125
|
+
__metadata("design:type", Date)
|
|
6126
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "SentAt", void 0);
|
|
6127
|
+
__decorate([
|
|
6128
|
+
Field(() => Float, { nullable: true }),
|
|
6129
|
+
__metadata("design:type", Number)
|
|
6130
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "AmountPaid", void 0);
|
|
6131
|
+
__decorate([
|
|
6132
|
+
Field(() => Float, { nullable: true }),
|
|
6133
|
+
__metadata("design:type", Number)
|
|
6134
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Balance", void 0);
|
|
6135
|
+
__decorate([
|
|
6136
|
+
Field({ nullable: true }),
|
|
6137
|
+
__metadata("design:type", String)
|
|
6138
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Description", void 0);
|
|
6139
|
+
__decorate([
|
|
6140
|
+
Field({ nullable: true }),
|
|
6141
|
+
__metadata("design:type", String)
|
|
6142
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "Notes", void 0);
|
|
6143
|
+
__decorate([
|
|
6144
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6145
|
+
__metadata("design:type", Array)
|
|
6146
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "OldValues___", void 0);
|
|
6147
|
+
__decorate([
|
|
6148
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
6149
|
+
__metadata("design:type", RestoreContextInput)
|
|
6150
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput.prototype, "RestoreContext___", void 0);
|
|
6151
|
+
UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput = __decorate([
|
|
6152
|
+
InputType()
|
|
6153
|
+
], UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput);
|
|
6154
|
+
export { UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput };
|
|
6155
|
+
//****************************************************************************
|
|
6156
|
+
// RESOLVER for MJ_BizApps_Orders: Order Header Payment Schedules
|
|
6157
|
+
//****************************************************************************
|
|
6158
|
+
let RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult = class RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult {
|
|
6159
|
+
};
|
|
6160
|
+
__decorate([
|
|
6161
|
+
Field(() => [mjBizAppsOrdersOrderHeaderPaymentSchedule_]),
|
|
6162
|
+
__metadata("design:type", Array)
|
|
6163
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "Results", void 0);
|
|
6164
|
+
__decorate([
|
|
6165
|
+
Field(() => String, { nullable: true }),
|
|
6166
|
+
__metadata("design:type", String)
|
|
6167
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "UserViewRunID", void 0);
|
|
6168
|
+
__decorate([
|
|
6169
|
+
Field(() => Int, { nullable: true }),
|
|
6170
|
+
__metadata("design:type", Number)
|
|
6171
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "RowCount", void 0);
|
|
6172
|
+
__decorate([
|
|
6173
|
+
Field(() => Int, { nullable: true }),
|
|
6174
|
+
__metadata("design:type", Number)
|
|
6175
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "TotalRowCount", void 0);
|
|
6176
|
+
__decorate([
|
|
6177
|
+
Field(() => Int, { nullable: true }),
|
|
6178
|
+
__metadata("design:type", Number)
|
|
6179
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "ExecutionTime", void 0);
|
|
6180
|
+
__decorate([
|
|
6181
|
+
Field({ nullable: true }),
|
|
6182
|
+
__metadata("design:type", String)
|
|
6183
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "ErrorMessage", void 0);
|
|
6184
|
+
__decorate([
|
|
6185
|
+
Field(() => Boolean, { nullable: false }),
|
|
6186
|
+
__metadata("design:type", Boolean)
|
|
6187
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult.prototype, "Success", void 0);
|
|
6188
|
+
RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult = __decorate([
|
|
6189
|
+
ObjectType()
|
|
6190
|
+
], RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult);
|
|
6191
|
+
export { RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult };
|
|
6192
|
+
let mjBizAppsOrdersOrderHeaderPaymentScheduleResolver = class mjBizAppsOrdersOrderHeaderPaymentScheduleResolver extends ResolverBase {
|
|
6193
|
+
async RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewByID(input, { providers, userPayload }, pubSub) {
|
|
6194
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6195
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
6196
|
+
}
|
|
6197
|
+
async RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewByName(input, { providers, userPayload }, pubSub) {
|
|
6198
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6199
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
6200
|
+
}
|
|
6201
|
+
async RunmjBizAppsOrdersOrderHeaderPaymentScheduleDynamicView(input, { providers, userPayload }, pubSub) {
|
|
6202
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6203
|
+
input.EntityName = 'MJ_BizApps_Orders: Order Header Payment Schedules';
|
|
6204
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
6205
|
+
}
|
|
6206
|
+
async mjBizAppsOrdersOrderHeaderPaymentSchedule(ID, { userPayload, providers }, pubSub) {
|
|
6207
|
+
this.CheckUserReadPermissions('MJ_BizApps_Orders: Order Header Payment Schedules', userPayload);
|
|
6208
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6209
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsOrders', 'vwOrderHeaderPaymentSchedules')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Orders: Order Header Payment Schedules', userPayload, EntityPermissionType.Read, 'AND');
|
|
6210
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
6211
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Orders: Order Header Payment Schedules', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6212
|
+
return result;
|
|
6213
|
+
}
|
|
6214
|
+
async CreatemjBizAppsOrdersOrderHeaderPaymentSchedule(input, { providers, userPayload }, pubSub) {
|
|
6215
|
+
const provider = GetReadWriteProvider(providers);
|
|
6216
|
+
return this.CreateRecord('MJ_BizApps_Orders: Order Header Payment Schedules', input, provider, userPayload, pubSub);
|
|
6217
|
+
}
|
|
6218
|
+
async UpdatemjBizAppsOrdersOrderHeaderPaymentSchedule(input, { providers, userPayload }, pubSub) {
|
|
6219
|
+
const provider = GetReadWriteProvider(providers);
|
|
6220
|
+
return this.UpdateRecord('MJ_BizApps_Orders: Order Header Payment Schedules', input, provider, userPayload, pubSub);
|
|
6221
|
+
}
|
|
6222
|
+
async DeletemjBizAppsOrdersOrderHeaderPaymentSchedule(ID, options, { providers, userPayload }, pubSub) {
|
|
6223
|
+
const provider = GetReadWriteProvider(providers);
|
|
6224
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
6225
|
+
return this.DeleteRecord('MJ_BizApps_Orders: Order Header Payment Schedules', key, options, provider, userPayload, pubSub);
|
|
6226
|
+
}
|
|
6227
|
+
};
|
|
6228
|
+
__decorate([
|
|
6229
|
+
Query(() => RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult),
|
|
6230
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
6231
|
+
__param(1, Ctx()),
|
|
6232
|
+
__param(2, PubSub()),
|
|
6233
|
+
__metadata("design:type", Function),
|
|
6234
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
6235
|
+
__metadata("design:returntype", Promise)
|
|
6236
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewByID", null);
|
|
6237
|
+
__decorate([
|
|
6238
|
+
Query(() => RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult),
|
|
6239
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
6240
|
+
__param(1, Ctx()),
|
|
6241
|
+
__param(2, PubSub()),
|
|
6242
|
+
__metadata("design:type", Function),
|
|
6243
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
6244
|
+
__metadata("design:returntype", Promise)
|
|
6245
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewByName", null);
|
|
6246
|
+
__decorate([
|
|
6247
|
+
Query(() => RunmjBizAppsOrdersOrderHeaderPaymentScheduleViewResult),
|
|
6248
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
6249
|
+
__param(1, Ctx()),
|
|
6250
|
+
__param(2, PubSub()),
|
|
6251
|
+
__metadata("design:type", Function),
|
|
6252
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
6253
|
+
__metadata("design:returntype", Promise)
|
|
6254
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "RunmjBizAppsOrdersOrderHeaderPaymentScheduleDynamicView", null);
|
|
6255
|
+
__decorate([
|
|
6256
|
+
Query(() => mjBizAppsOrdersOrderHeaderPaymentSchedule_, { nullable: true }),
|
|
6257
|
+
__param(0, Arg('ID', () => String)),
|
|
6258
|
+
__param(1, Ctx()),
|
|
6259
|
+
__param(2, PubSub()),
|
|
6260
|
+
__metadata("design:type", Function),
|
|
6261
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
6262
|
+
__metadata("design:returntype", Promise)
|
|
6263
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "mjBizAppsOrdersOrderHeaderPaymentSchedule", null);
|
|
6264
|
+
__decorate([
|
|
6265
|
+
Mutation(() => mjBizAppsOrdersOrderHeaderPaymentSchedule_),
|
|
6266
|
+
__param(0, Arg('input', () => CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput)),
|
|
6267
|
+
__param(1, Ctx()),
|
|
6268
|
+
__param(2, PubSub()),
|
|
6269
|
+
__metadata("design:type", Function),
|
|
6270
|
+
__metadata("design:paramtypes", [CreatemjBizAppsOrdersOrderHeaderPaymentScheduleInput, Object, PubSubEngine]),
|
|
6271
|
+
__metadata("design:returntype", Promise)
|
|
6272
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "CreatemjBizAppsOrdersOrderHeaderPaymentSchedule", null);
|
|
6273
|
+
__decorate([
|
|
6274
|
+
Mutation(() => mjBizAppsOrdersOrderHeaderPaymentSchedule_),
|
|
6275
|
+
__param(0, Arg('input', () => UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput)),
|
|
6276
|
+
__param(1, Ctx()),
|
|
6277
|
+
__param(2, PubSub()),
|
|
6278
|
+
__metadata("design:type", Function),
|
|
6279
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsOrdersOrderHeaderPaymentScheduleInput, Object, PubSubEngine]),
|
|
6280
|
+
__metadata("design:returntype", Promise)
|
|
6281
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "UpdatemjBizAppsOrdersOrderHeaderPaymentSchedule", null);
|
|
6282
|
+
__decorate([
|
|
6283
|
+
Mutation(() => mjBizAppsOrdersOrderHeaderPaymentSchedule_),
|
|
6284
|
+
__param(0, Arg('ID', () => String)),
|
|
6285
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
6286
|
+
__param(2, Ctx()),
|
|
6287
|
+
__param(3, PubSub()),
|
|
6288
|
+
__metadata("design:type", Function),
|
|
6289
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
6290
|
+
__metadata("design:returntype", Promise)
|
|
6291
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver.prototype, "DeletemjBizAppsOrdersOrderHeaderPaymentSchedule", null);
|
|
6292
|
+
mjBizAppsOrdersOrderHeaderPaymentScheduleResolver = __decorate([
|
|
6293
|
+
Resolver(mjBizAppsOrdersOrderHeaderPaymentSchedule_)
|
|
6294
|
+
], mjBizAppsOrdersOrderHeaderPaymentScheduleResolver);
|
|
6295
|
+
export { mjBizAppsOrdersOrderHeaderPaymentScheduleResolver };
|
|
6296
|
+
//****************************************************************************
|
|
5547
6297
|
// ENTITY CLASS for MJ_BizApps_Orders: Order Headers
|
|
5548
6298
|
//****************************************************************************
|
|
5549
6299
|
let mjBizAppsOrdersOrderHeader_ = class mjBizAppsOrdersOrderHeader_ {
|
|
@@ -5800,6 +6550,10 @@ __decorate([
|
|
|
5800
6550
|
Field(() => Float, { nullable: true }),
|
|
5801
6551
|
__metadata("design:type", Number)
|
|
5802
6552
|
], mjBizAppsOrdersOrderHeader_.prototype, "_mj__Longitude_ShipToAddressID", void 0);
|
|
6553
|
+
__decorate([
|
|
6554
|
+
Field({ nullable: true }),
|
|
6555
|
+
__metadata("design:type", Date)
|
|
6556
|
+
], mjBizAppsOrdersOrderHeader_.prototype, "NextDueDate", void 0);
|
|
5803
6557
|
__decorate([
|
|
5804
6558
|
Field(() => Int, { nullable: true }),
|
|
5805
6559
|
__metadata("design:type", Number)
|
|
@@ -9115,6 +9869,11 @@ __decorate([
|
|
|
9115
9869
|
Field(),
|
|
9116
9870
|
__metadata("design:type", Date)
|
|
9117
9871
|
], mjBizAppsOrdersPaymentLine_.prototype, "_mj__UpdatedAt", void 0);
|
|
9872
|
+
__decorate([
|
|
9873
|
+
Field({ nullable: true, description: `The instalment this allocation settles, when the payer said which one ("this is for the 2027 payment"). NULL applies the money to the order as a whole, oldest instalment first. Frozen with the rest of the allocation once the payment is Captured.` }),
|
|
9874
|
+
MaxLength(36),
|
|
9875
|
+
__metadata("design:type", String)
|
|
9876
|
+
], mjBizAppsOrdersPaymentLine_.prototype, "OrderHeaderPaymentScheduleID", void 0);
|
|
9118
9877
|
__decorate([
|
|
9119
9878
|
Field({ nullable: true }),
|
|
9120
9879
|
MaxLength(40),
|
|
@@ -9175,6 +9934,10 @@ __decorate([
|
|
|
9175
9934
|
Field({ nullable: true }),
|
|
9176
9935
|
__metadata("design:type", Date)
|
|
9177
9936
|
], CreatemjBizAppsOrdersPaymentLineInput.prototype, "BookedAt", void 0);
|
|
9937
|
+
__decorate([
|
|
9938
|
+
Field({ nullable: true }),
|
|
9939
|
+
__metadata("design:type", String)
|
|
9940
|
+
], CreatemjBizAppsOrdersPaymentLineInput.prototype, "OrderHeaderPaymentScheduleID", void 0);
|
|
9178
9941
|
__decorate([
|
|
9179
9942
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
9180
9943
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -9220,6 +9983,10 @@ __decorate([
|
|
|
9220
9983
|
Field({ nullable: true }),
|
|
9221
9984
|
__metadata("design:type", Date)
|
|
9222
9985
|
], UpdatemjBizAppsOrdersPaymentLineInput.prototype, "BookedAt", void 0);
|
|
9986
|
+
__decorate([
|
|
9987
|
+
Field({ nullable: true }),
|
|
9988
|
+
__metadata("design:type", String)
|
|
9989
|
+
], UpdatemjBizAppsOrdersPaymentLineInput.prototype, "OrderHeaderPaymentScheduleID", void 0);
|
|
9223
9990
|
__decorate([
|
|
9224
9991
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9225
9992
|
__metadata("design:type", Array)
|