@kortexya/reasoninglayer 0.19.0 → 0.20.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/index.cjs +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -5
- package/dist/index.d.ts +76 -5
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __export = (target, all) => {
|
|
5
|
+
for (var name in all)
|
|
6
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
|
+
};
|
|
8
|
+
|
|
3
9
|
// src/config.ts
|
|
4
|
-
var SDK_VERSION = "0.
|
|
10
|
+
var SDK_VERSION = "0.20.0";
|
|
5
11
|
function resolveConfig(config) {
|
|
6
12
|
if (!config.baseUrl) {
|
|
7
13
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -7386,7 +7392,7 @@ var Scheduling = class {
|
|
|
7386
7392
|
this.http = http;
|
|
7387
7393
|
}
|
|
7388
7394
|
/**
|
|
7389
|
-
* @description Classify every `(agent, day, shift)` cell in the input grid as confirmed-true, confirmed-false, or free. Input validation errors (duplicate agent IDs, out-of-range pins, role minima exceeding total demand, etc.) return HTTP 400. Infeasibility of a well-formed problem is a valid answer and returns HTTP 200 with `status = "infeasible"` and an empty `assignments` list.
|
|
7395
|
+
* @description Classify every `(agent, day, shift)` cell in the input grid as confirmed-true, confirmed-false, or free, and list the role(s) each cell could cover. Input validation errors (duplicate agent IDs, out-of-range pins, role minima exceeding total demand, pin role the agent doesn't have, pin on a multi-role agent where the role is ambiguous, etc.) return HTTP 400. Infeasibility of a well-formed problem is a valid answer and returns HTTP 200 with `status = "infeasible"` and an empty `assignments` list.
|
|
7390
7396
|
*
|
|
7391
7397
|
* @tags scheduling
|
|
7392
7398
|
* @name Feasibility
|
|
@@ -20493,11 +20499,15 @@ function ShiftDemandFromFrontToApi(demand) {
|
|
|
20493
20499
|
return dto;
|
|
20494
20500
|
}
|
|
20495
20501
|
function PinFromFrontToApi(pin) {
|
|
20496
|
-
|
|
20502
|
+
const dto = {
|
|
20497
20503
|
agent_id: pin.agentId,
|
|
20498
20504
|
day: pin.day,
|
|
20499
20505
|
shift: pin.shift
|
|
20500
20506
|
};
|
|
20507
|
+
if (pin.role !== void 0) {
|
|
20508
|
+
dto.role = pin.role;
|
|
20509
|
+
}
|
|
20510
|
+
return dto;
|
|
20501
20511
|
}
|
|
20502
20512
|
function SchedulingFeasibilityRequestFromFrontToApi(request) {
|
|
20503
20513
|
const dto = {
|
|
@@ -20516,7 +20526,8 @@ function AssignmentFromApiToFront(dto) {
|
|
|
20516
20526
|
agentId: dto.agent_id,
|
|
20517
20527
|
day: dto.day,
|
|
20518
20528
|
shift: dto.shift,
|
|
20519
|
-
status: dto.status
|
|
20529
|
+
status: dto.status,
|
|
20530
|
+
roles: dto.roles ?? []
|
|
20520
20531
|
};
|
|
20521
20532
|
}
|
|
20522
20533
|
function SchedulingFeasibilityResponseFromApiToFront(dto) {
|
|
@@ -22090,6 +22101,10 @@ var optimize_exports = {};
|
|
|
22090
22101
|
|
|
22091
22102
|
// src/types/scheduling.ts
|
|
22092
22103
|
var scheduling_exports = {};
|
|
22104
|
+
__export(scheduling_exports, {
|
|
22105
|
+
ANY_ROLE: () => ANY_ROLE
|
|
22106
|
+
});
|
|
22107
|
+
var ANY_ROLE = "any";
|
|
22093
22108
|
|
|
22094
22109
|
// src/types/ilp.ts
|
|
22095
22110
|
var ilp_exports = {};
|
|
@@ -22780,6 +22795,7 @@ function discriminateFeatureValue(value) {
|
|
|
22780
22795
|
);
|
|
22781
22796
|
}
|
|
22782
22797
|
|
|
22798
|
+
exports.ANY_ROLE = ANY_ROLE;
|
|
22783
22799
|
exports.ActionReviews = action_reviews_exports;
|
|
22784
22800
|
exports.Admin = admin_exports;
|
|
22785
22801
|
exports.Analysis = analysis_exports;
|