@bringg/dashboard-sdk 9.86.0 → 9.86.2
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/Analyst/Analyst.consts.d.ts +5 -0
- package/dist/Analyst/Analyst.consts.js +9 -0
- package/dist/Analyst/Analyst.consts.js.map +1 -0
- package/dist/Analyst/AnalystApi.d.ts +65 -4
- package/dist/Analyst/AnalystApi.js +140 -3
- package/dist/Analyst/AnalystApi.js.map +1 -1
- package/dist/Analyst/Chat/AnalystChat.consts.d.ts +18 -0
- package/dist/Analyst/Chat/AnalystChat.consts.js +23 -0
- package/dist/Analyst/Chat/AnalystChat.consts.js.map +1 -0
- package/dist/Analyst/Chat/AnalystChatEntity.d.ts +22 -0
- package/dist/Analyst/Chat/AnalystChatEntity.js +122 -0
- package/dist/Analyst/Chat/AnalystChatEntity.js.map +1 -0
- package/dist/Analyst/{Services → Findings}/AnalystFindingsService.d.ts +1 -1
- package/dist/Analyst/{Services → Findings}/AnalystFindingsService.js +3 -4
- package/dist/Analyst/Findings/AnalystFindingsService.js.map +1 -0
- package/dist/Analyst/index.d.ts +1 -0
- package/dist/Analyst/index.js +18 -0
- package/dist/Analyst/index.js.map +1 -0
- package/dist/bringg-dashboard-sdk-cjs2.js +373 -14
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +57 -13
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/Analyst/Services/AnalystFindingsService.js.map +0 -1
- package/dist/Analyst/constants.d.ts +0 -1
- package/dist/Analyst/constants.js +0 -5
- package/dist/Analyst/constants.js.map +0 -1
|
@@ -488,31 +488,343 @@ exports["default"] = AlertsEntity;
|
|
|
488
488
|
|
|
489
489
|
/***/ }),
|
|
490
490
|
|
|
491
|
+
/***/ 93359:
|
|
492
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
493
|
+
|
|
494
|
+
"use strict";
|
|
495
|
+
|
|
496
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
497
|
+
exports.FINDINGS = exports.AGENT_CHAT = exports.GATEWAY_PATH = exports.API_PREFIX = exports.SERVICE_NAME = void 0;
|
|
498
|
+
exports.SERVICE_NAME = 'analyst-service';
|
|
499
|
+
exports.API_PREFIX = '/api';
|
|
500
|
+
exports.GATEWAY_PATH = "/".concat(exports.SERVICE_NAME);
|
|
501
|
+
exports.AGENT_CHAT = 'agent-chat';
|
|
502
|
+
exports.FINDINGS = 'findings';
|
|
503
|
+
//# sourceMappingURL=Analyst.consts.js.map
|
|
504
|
+
|
|
505
|
+
/***/ }),
|
|
506
|
+
|
|
491
507
|
/***/ 1219:
|
|
492
508
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
493
509
|
|
|
494
510
|
"use strict";
|
|
495
511
|
|
|
512
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
513
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
514
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
515
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
516
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
517
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
518
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
522
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
523
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
524
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
525
|
+
function step(op) {
|
|
526
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
527
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
528
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
529
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
530
|
+
switch (op[0]) {
|
|
531
|
+
case 0: case 1: t = op; break;
|
|
532
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
533
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
534
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
535
|
+
default:
|
|
536
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
537
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
538
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
539
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
540
|
+
if (t[2]) _.ops.pop();
|
|
541
|
+
_.trys.pop(); continue;
|
|
542
|
+
}
|
|
543
|
+
op = body.call(thisArg, _);
|
|
544
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
545
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
546
|
+
}
|
|
547
|
+
};
|
|
496
548
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
497
549
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
498
550
|
};
|
|
499
551
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
500
|
-
|
|
552
|
+
exports.AnalystApi = void 0;
|
|
553
|
+
var Analyst_consts_1 = __webpack_require__(93359);
|
|
554
|
+
var AnalystChat_consts_1 = __webpack_require__(94377);
|
|
555
|
+
var AnalystChatEntity_1 = __importDefault(__webpack_require__(65009));
|
|
556
|
+
var AnalystFindingsService_1 = __importDefault(__webpack_require__(41687));
|
|
557
|
+
var isSameConfig = function (a, b) {
|
|
558
|
+
if (a.apiUrl !== b.apiUrl || a.chatUrl !== b.chatUrl) {
|
|
559
|
+
return false;
|
|
560
|
+
}
|
|
561
|
+
var keys = Object.keys(a.defaultHeaders);
|
|
562
|
+
return (keys.length === Object.keys(b.defaultHeaders).length &&
|
|
563
|
+
keys.every(function (key) { return a.defaultHeaders[key] === b.defaultHeaders[key]; }));
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Public SDK surface for analyst-service: findings and agent chat.
|
|
567
|
+
* Everything the dashboard requests *itself* - latest findings, the thread list, one thread,
|
|
568
|
+
* cancelling a run - is an ordinary SDK call on this class.
|
|
569
|
+
*/
|
|
501
570
|
var AnalystApi = /** @class */ (function () {
|
|
502
571
|
function AnalystApi(session) {
|
|
503
|
-
this.
|
|
572
|
+
this.session = session;
|
|
573
|
+
this.chat = new AnalystChatEntity_1.default(session);
|
|
574
|
+
this.findings = new AnalystFindingsService_1.default(session);
|
|
504
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* The most recent findings run for the signed-in merchant.
|
|
578
|
+
*
|
|
579
|
+
* @returns The latest findings payload from analyst-service
|
|
580
|
+
*/
|
|
505
581
|
AnalystApi.prototype.getLatest = function () {
|
|
506
|
-
return this.
|
|
582
|
+
return this.findings.latest();
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* The signed-in user's conversations, most recently active first.
|
|
586
|
+
*
|
|
587
|
+
* Carries no messages - the History list stays cheap, and opening a conversation hydrates it
|
|
588
|
+
* through {@link getThread}.
|
|
589
|
+
*/
|
|
590
|
+
AnalystApi.prototype.listThreads = function () {
|
|
591
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
592
|
+
return __generator(this, function (_a) {
|
|
593
|
+
return [2 /*return*/, this.chat.listThreads()];
|
|
594
|
+
});
|
|
595
|
+
});
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* One conversation, with its messages and whether a run is executing on it right now.
|
|
599
|
+
* Rejects on 404, which is also the answer for a thread belonging to someone else: the service
|
|
600
|
+
* deliberately does not distinguish "not yours" from "not there".
|
|
601
|
+
*/
|
|
602
|
+
AnalystApi.prototype.getThread = function (threadId) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
+
return __generator(this, function (_a) {
|
|
605
|
+
return [2 /*return*/, this.chat.getThread(threadId)];
|
|
606
|
+
});
|
|
607
|
+
});
|
|
608
|
+
};
|
|
609
|
+
/**
|
|
610
|
+
* Cancel the run in flight on a thread.
|
|
611
|
+
* A cancelled run ends with no terminal event: the stream simply closes, with neither
|
|
612
|
+
* `RUN_FINISHED` nor `RUN_ERROR`. Callers that drive their loading state off terminal events
|
|
613
|
+
* alone will hang, and must treat stream close as its own case.
|
|
614
|
+
*/
|
|
615
|
+
AnalystApi.prototype.cancelRun = function (threadId) {
|
|
616
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
617
|
+
return __generator(this, function (_a) {
|
|
618
|
+
return [2 /*return*/, this.chat.cancelRun(threadId)];
|
|
619
|
+
});
|
|
620
|
+
});
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* Returns the **same object** while the values are unchanged.
|
|
624
|
+
*
|
|
625
|
+
* Referential stability is load-bearing, not a micro-optimisation: a protocol client treats its
|
|
626
|
+
* config as a dependency and rebuilds itself whenever the identity changes. A fresh object per
|
|
627
|
+
* call rebuilds on every render, which refetches, which renders again - a loop.
|
|
628
|
+
*
|
|
629
|
+
* Recomputed each call and compared by value, so a changed session (login, region switch,
|
|
630
|
+
* impersonation) still produces a new config rather than a stale one.
|
|
631
|
+
*/
|
|
632
|
+
AnalystApi.prototype.getClientConfig = function () {
|
|
633
|
+
// Resolved from the SIGNED-IN USER's region, not the environment default: a user's region can
|
|
634
|
+
// differ from it, and resolving against the default points them at the wrong cluster.
|
|
635
|
+
var apiEndpoint = this.session.config.getApiEndpoint().encode();
|
|
636
|
+
var next = {
|
|
637
|
+
apiUrl: "".concat(apiEndpoint).concat(Analyst_consts_1.GATEWAY_PATH),
|
|
638
|
+
chatUrl: "".concat(apiEndpoint).concat(AnalystChat_consts_1.Routes.CHAT),
|
|
639
|
+
defaultHeaders: this.getDefaultHeaders()
|
|
640
|
+
};
|
|
641
|
+
if (this.cached && isSameConfig(this.cached, next)) {
|
|
642
|
+
return this.cached;
|
|
643
|
+
}
|
|
644
|
+
this.cached = next;
|
|
645
|
+
return next;
|
|
646
|
+
};
|
|
647
|
+
/** Matches the headers `ServiceRequest` builds for every other service. */
|
|
648
|
+
AnalystApi.prototype.getDefaultHeaders = function () {
|
|
649
|
+
var _a;
|
|
650
|
+
var headers = {};
|
|
651
|
+
var token = (_a = this.session.user) === null || _a === void 0 ? void 0 : _a.authentication_token;
|
|
652
|
+
if (token) {
|
|
653
|
+
headers.Authorization = "Token token=".concat(token);
|
|
654
|
+
}
|
|
655
|
+
if (this.session.clientId) {
|
|
656
|
+
headers.Client = String(this.session.clientId);
|
|
657
|
+
}
|
|
658
|
+
return headers;
|
|
507
659
|
};
|
|
508
660
|
return AnalystApi;
|
|
509
661
|
}());
|
|
662
|
+
exports.AnalystApi = AnalystApi;
|
|
510
663
|
exports["default"] = AnalystApi;
|
|
511
664
|
//# sourceMappingURL=AnalystApi.js.map
|
|
512
665
|
|
|
513
666
|
/***/ }),
|
|
514
667
|
|
|
515
|
-
/***/
|
|
668
|
+
/***/ 94377:
|
|
669
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
670
|
+
|
|
671
|
+
"use strict";
|
|
672
|
+
|
|
673
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
674
|
+
exports.Routes = exports.BASE_PATH = exports.MOUNT_PATH = void 0;
|
|
675
|
+
var Analyst_consts_1 = __webpack_require__(93359);
|
|
676
|
+
/**
|
|
677
|
+
* A chat URL has three parts, and only the last is the platform's to choose:
|
|
678
|
+
* /analyst-service /api/agent-chat /chat
|
|
679
|
+
* service name mount path endpoint
|
|
680
|
+
*/
|
|
681
|
+
exports.MOUNT_PATH = "".concat(Analyst_consts_1.API_PREFIX, "/").concat(Analyst_consts_1.AGENT_CHAT);
|
|
682
|
+
exports.BASE_PATH = "".concat(Analyst_consts_1.GATEWAY_PATH).concat(exports.MOUNT_PATH);
|
|
683
|
+
/**
|
|
684
|
+
* `CHAT` is declared here for completeness but is **not** called from this package: it is the ag-ui
|
|
685
|
+
* protocol endpoint, opened by the consumer's `HttpAgent` as a streaming POST. It is exposed through
|
|
686
|
+
* {@link AnalystClientConfig.chatUrl} instead, so the URL is still built in one place.
|
|
687
|
+
*/
|
|
688
|
+
exports.Routes = {
|
|
689
|
+
CHAT: "".concat(exports.BASE_PATH, "/chat"),
|
|
690
|
+
THREADS: "".concat(exports.BASE_PATH, "/threads"),
|
|
691
|
+
THREAD: "".concat(exports.BASE_PATH, "/threads/{:threadId}"),
|
|
692
|
+
CANCEL_RUN: "".concat(exports.BASE_PATH, "/threads/{:threadId}/cancel")
|
|
693
|
+
};
|
|
694
|
+
//# sourceMappingURL=AnalystChat.consts.js.map
|
|
695
|
+
|
|
696
|
+
/***/ }),
|
|
697
|
+
|
|
698
|
+
/***/ 65009:
|
|
699
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
700
|
+
|
|
701
|
+
"use strict";
|
|
702
|
+
|
|
703
|
+
var __extends = (this && this.__extends) || (function () {
|
|
704
|
+
var extendStatics = function (d, b) {
|
|
705
|
+
extendStatics = Object.setPrototypeOf ||
|
|
706
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
707
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
708
|
+
return extendStatics(d, b);
|
|
709
|
+
};
|
|
710
|
+
return function (d, b) {
|
|
711
|
+
if (typeof b !== "function" && b !== null)
|
|
712
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
713
|
+
extendStatics(d, b);
|
|
714
|
+
function __() { this.constructor = d; }
|
|
715
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
716
|
+
};
|
|
717
|
+
})();
|
|
718
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
719
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
720
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
721
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
722
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
723
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
724
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
725
|
+
});
|
|
726
|
+
};
|
|
727
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
728
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
729
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
730
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
731
|
+
function step(op) {
|
|
732
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
733
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
734
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
735
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
736
|
+
switch (op[0]) {
|
|
737
|
+
case 0: case 1: t = op; break;
|
|
738
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
739
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
740
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
741
|
+
default:
|
|
742
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
743
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
744
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
745
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
746
|
+
if (t[2]) _.ops.pop();
|
|
747
|
+
_.trys.pop(); continue;
|
|
748
|
+
}
|
|
749
|
+
op = body.call(thisArg, _);
|
|
750
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
751
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
755
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
756
|
+
};
|
|
757
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
758
|
+
var Entity_1 = __importDefault(__webpack_require__(7483));
|
|
759
|
+
var AnalystChat_consts_1 = __webpack_require__(94377);
|
|
760
|
+
/**
|
|
761
|
+
* The Analyst agent-chat REST surface.
|
|
762
|
+
*/
|
|
763
|
+
var AnalystChatEntity = /** @class */ (function (_super) {
|
|
764
|
+
__extends(AnalystChatEntity, _super);
|
|
765
|
+
function AnalystChatEntity(session) {
|
|
766
|
+
return _super.call(this, {
|
|
767
|
+
session: session,
|
|
768
|
+
entityName: 'threads',
|
|
769
|
+
routePrefix: 'analyst-service'
|
|
770
|
+
}) || this;
|
|
771
|
+
}
|
|
772
|
+
/** The signed-in user's threads, most recently active first. A bare array, no envelope. */
|
|
773
|
+
AnalystChatEntity.prototype.listThreads = function () {
|
|
774
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
775
|
+
var threads;
|
|
776
|
+
return __generator(this, function (_a) {
|
|
777
|
+
switch (_a.label) {
|
|
778
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
779
|
+
.get(AnalystChat_consts_1.Routes.THREADS)
|
|
780
|
+
.setException('Failed to fetch analyst chat threads')
|
|
781
|
+
.invoke()];
|
|
782
|
+
case 1:
|
|
783
|
+
threads = _a.sent();
|
|
784
|
+
return [2 /*return*/, threads !== null && threads !== void 0 ? threads : []];
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
});
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* One thread, with its messages and whether a run is currently executing on it.
|
|
791
|
+
*
|
|
792
|
+
* A thread belonging to another user answers **404**, never 403 - so a rejected id is
|
|
793
|
+
* indistinguishable from a missing one, by design.
|
|
794
|
+
*/
|
|
795
|
+
AnalystChatEntity.prototype.getThread = function (threadId) {
|
|
796
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
797
|
+
return __generator(this, function (_a) {
|
|
798
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
799
|
+
.get(AnalystChat_consts_1.Routes.THREAD)
|
|
800
|
+
.withRouteParams({ threadId: threadId })
|
|
801
|
+
.setException('Failed to fetch analyst chat thread')
|
|
802
|
+
.invoke()];
|
|
803
|
+
});
|
|
804
|
+
});
|
|
805
|
+
};
|
|
806
|
+
/**
|
|
807
|
+
* Cancel the run in flight on a thread.
|
|
808
|
+
*/
|
|
809
|
+
AnalystChatEntity.prototype.cancelRun = function (threadId) {
|
|
810
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
811
|
+
return __generator(this, function (_a) {
|
|
812
|
+
return [2 /*return*/, this.service.routeGenerator
|
|
813
|
+
.post(AnalystChat_consts_1.Routes.CANCEL_RUN)
|
|
814
|
+
.withRouteParams({ threadId: threadId })
|
|
815
|
+
.setException('Failed to cancel the analyst chat run')
|
|
816
|
+
.invoke()];
|
|
817
|
+
});
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
return AnalystChatEntity;
|
|
821
|
+
}(Entity_1.default));
|
|
822
|
+
exports["default"] = AnalystChatEntity;
|
|
823
|
+
//# sourceMappingURL=AnalystChatEntity.js.map
|
|
824
|
+
|
|
825
|
+
/***/ }),
|
|
826
|
+
|
|
827
|
+
/***/ 41687:
|
|
516
828
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
517
829
|
|
|
518
830
|
"use strict";
|
|
@@ -574,11 +886,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
574
886
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
575
887
|
exports.Routes = void 0;
|
|
576
888
|
var BaseService_1 = __importDefault(__webpack_require__(41992));
|
|
577
|
-
var
|
|
578
|
-
var
|
|
579
|
-
var ROOT = "".concat(constants_1.API_PREFIX, "/").concat(SERVICE_NAME);
|
|
889
|
+
var Analyst_consts_1 = __webpack_require__(93359);
|
|
890
|
+
var ROOT = "".concat(Analyst_consts_1.GATEWAY_PATH).concat(Analyst_consts_1.API_PREFIX);
|
|
580
891
|
exports.Routes = {
|
|
581
|
-
LATEST: "".concat(ROOT, "/
|
|
892
|
+
LATEST: "".concat(ROOT, "/").concat(Analyst_consts_1.FINDINGS, "/latest")
|
|
582
893
|
};
|
|
583
894
|
var AnalystFindingsService = /** @class */ (function (_super) {
|
|
584
895
|
__extends(AnalystFindingsService, _super);
|
|
@@ -599,15 +910,28 @@ exports["default"] = AnalystFindingsService;
|
|
|
599
910
|
|
|
600
911
|
/***/ }),
|
|
601
912
|
|
|
602
|
-
/***/
|
|
603
|
-
/***/ ((__unused_webpack_module, exports)
|
|
913
|
+
/***/ 82661:
|
|
914
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
604
915
|
|
|
605
916
|
"use strict";
|
|
606
917
|
|
|
918
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
919
|
+
if (k2 === undefined) k2 = k;
|
|
920
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
921
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
922
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
923
|
+
}
|
|
924
|
+
Object.defineProperty(o, k2, desc);
|
|
925
|
+
}) : (function(o, m, k, k2) {
|
|
926
|
+
if (k2 === undefined) k2 = k;
|
|
927
|
+
o[k2] = m[k];
|
|
928
|
+
}));
|
|
929
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
930
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
931
|
+
};
|
|
607
932
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
608
|
-
exports
|
|
609
|
-
|
|
610
|
-
//# sourceMappingURL=constants.js.map
|
|
933
|
+
__exportStar(__webpack_require__(1219), exports);
|
|
934
|
+
//# sourceMappingURL=index.js.map
|
|
611
935
|
|
|
612
936
|
/***/ }),
|
|
613
937
|
|
|
@@ -24349,7 +24673,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
24349
24673
|
var BringgException_1 = __webpack_require__(43605);
|
|
24350
24674
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
24351
24675
|
var abort_1 = __webpack_require__(34179);
|
|
24352
|
-
var version = '9.86.
|
|
24676
|
+
var version = '9.86.2';
|
|
24353
24677
|
function logErrorResponse(response) {
|
|
24354
24678
|
var data = response.data, status = response.status;
|
|
24355
24679
|
try {
|
|
@@ -36318,6 +36642,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36318
36642
|
};
|
|
36319
36643
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
36320
36644
|
exports.WorkflowsApi = exports.VehicleTypeConsts = exports.VehicleCategoryConsts = exports.VehicleGroup = exports.VehiclesApi = exports.AbortUtils = exports.UsersApi = exports.UserGroupValues = exports.UserGroupTypes = exports.UploadApi = exports.UploadConsts = exports.TasksExplorerApi = exports.TaskRejectReasonsApi = exports.TaskInventoryConsts = exports.TasksApi = exports.TaskGroupValues = exports.TaskGroupTypes = exports.TagConsts = exports.ServiceAreaApi = exports.ServiceAreaFilterGroups = exports.RunsApi = exports.RunStatus = exports.RunConsts = exports.ResourceUploadType = exports.ReasonToChangeInventory = exports.PrivilegesConsts = exports.PlannedRoutesConsts = exports.PlannedDeliveryWindowsApi = exports.RecurrenceType = exports.PlannedDeliveryWindowsFilterGroups = exports.OptimizationResultApi = exports.NotificationTypesConsts = exports.NotificationTemplateConsts = exports.LookupConsts = exports.LanguageConsts = exports.ExclusionWindowApiV2 = exports.ExclusionWindowsFilterGroups = exports.DeliveryWindowsApi = exports.DeliveryBlockConsts = exports.CrewConsts = exports.Responses = exports.ChatMessageConsts = exports.ChatConversationConsts = void 0;
|
|
36645
|
+
__exportStar(__webpack_require__(82661), exports);
|
|
36321
36646
|
__exportStar(__webpack_require__(37360), exports);
|
|
36322
36647
|
__exportStar(__webpack_require__(5655), exports);
|
|
36323
36648
|
exports.ChatConversationConsts = __importStar(__webpack_require__(44448));
|
|
@@ -39552,6 +39877,38 @@ var AlertDisplayCategory;
|
|
|
39552
39877
|
|
|
39553
39878
|
/***/ }),
|
|
39554
39879
|
|
|
39880
|
+
/***/ 39625:
|
|
39881
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
39882
|
+
|
|
39883
|
+
"use strict";
|
|
39884
|
+
|
|
39885
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39886
|
+
exports.ToolName = exports.ChartKind = exports.toRole = exports.Role = void 0;
|
|
39887
|
+
var Role;
|
|
39888
|
+
(function (Role) {
|
|
39889
|
+
Role["Human"] = "human";
|
|
39890
|
+
Role["Ai"] = "ai";
|
|
39891
|
+
})(Role || (exports.Role = Role = {}));
|
|
39892
|
+
var toRole = function (role) { return (role === Role.Ai || role === 'assistant' ? Role.Ai : Role.Human); };
|
|
39893
|
+
exports.toRole = toRole;
|
|
39894
|
+
var ChartKind;
|
|
39895
|
+
(function (ChartKind) {
|
|
39896
|
+
ChartKind["Bar"] = "bar";
|
|
39897
|
+
ChartKind["Line"] = "line";
|
|
39898
|
+
ChartKind["Pie"] = "pie";
|
|
39899
|
+
ChartKind["Area"] = "area";
|
|
39900
|
+
ChartKind["Scatter"] = "scatter";
|
|
39901
|
+
ChartKind["StackedBar"] = "stacked_bar";
|
|
39902
|
+
})(ChartKind || (exports.ChartKind = ChartKind = {}));
|
|
39903
|
+
var ToolName;
|
|
39904
|
+
(function (ToolName) {
|
|
39905
|
+
ToolName["CreateVisualization"] = "create_visualization";
|
|
39906
|
+
ToolName["SuggestFollowupQuestions"] = "suggest_followup_questions";
|
|
39907
|
+
})(ToolName || (exports.ToolName = ToolName = {}));
|
|
39908
|
+
//# sourceMappingURL=analyst_chat.js.map
|
|
39909
|
+
|
|
39910
|
+
/***/ }),
|
|
39911
|
+
|
|
39555
39912
|
/***/ 67823:
|
|
39556
39913
|
/***/ ((__unused_webpack_module, exports) => {
|
|
39557
39914
|
|
|
@@ -39626,6 +39983,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
39626
39983
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
39627
39984
|
};
|
|
39628
39985
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39986
|
+
exports.AnalystChat = void 0;
|
|
39987
|
+
exports.AnalystChat = __webpack_require__(39625);
|
|
39629
39988
|
__exportStar(__webpack_require__(67823), exports);
|
|
39630
39989
|
__exportStar(__webpack_require__(56381), exports);
|
|
39631
39990
|
__exportStar(__webpack_require__(77857), exports);
|