@bringg/dashboard-sdk 9.80.0 → 9.82.0-pre.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/Analyst/Analyst.consts.d.ts +17 -0
- package/dist/Analyst/Analyst.consts.js +21 -0
- package/dist/Analyst/Analyst.consts.js.map +1 -0
- package/dist/Analyst/Analyst.d.ts +72 -0
- package/dist/Analyst/Analyst.js +142 -0
- package/dist/Analyst/Analyst.js.map +1 -0
- package/dist/Analyst/Entity/AnalystEntity.d.ts +35 -0
- package/dist/Analyst/Entity/AnalystEntity.js +117 -0
- package/dist/Analyst/Entity/AnalystEntity.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/BringgDashboardSDK.d.ts +2 -0
- package/dist/BringgDashboardSDK.js +2 -0
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/Task/Tasks.consts.d.ts +1 -0
- package/dist/Task/Tasks.consts.js +3 -1
- package/dist/Task/Tasks.consts.js.map +1 -1
- package/dist/Task/v2/task-realtime-subscriptions.d.ts +2 -0
- package/dist/Task/v2/task-realtime-subscriptions.js +9 -0
- package/dist/Task/v2/task-realtime-subscriptions.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +449 -3
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +96 -8
- 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
|
@@ -56,6 +56,7 @@ var vrp_auto_dispatch_status_entity_1 = __importDefault(require("../../VrpAutoDi
|
|
|
56
56
|
var Tasks_consts_1 = require("../Tasks.consts");
|
|
57
57
|
var TaskRealtimeSubscriptions = /** @class */ (function () {
|
|
58
58
|
function TaskRealtimeSubscriptions(session, tasksStore, storableDataService, customersApi) {
|
|
59
|
+
this.session = session;
|
|
59
60
|
this.tasksStore = tasksStore;
|
|
60
61
|
this.customersApi = customersApi;
|
|
61
62
|
this.storableRealtimeSubscriptions = new storable_realtime_subscriptions_1.default(session, tasksStore, storableDataService);
|
|
@@ -121,6 +122,9 @@ var TaskRealtimeSubscriptions = /** @class */ (function () {
|
|
|
121
122
|
{
|
|
122
123
|
shouldEnrich: function (payload, getTask) {
|
|
123
124
|
var _a, _b, _c;
|
|
125
|
+
if (_this.isWaypointCustomerEnrichmentDisabled()) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
124
128
|
if (!('customer_id' in payload) || 'customer' in payload) {
|
|
125
129
|
return false;
|
|
126
130
|
}
|
|
@@ -215,6 +219,11 @@ var TaskRealtimeSubscriptions = /** @class */ (function () {
|
|
|
215
219
|
finally { if (e_1) throw e_1.error; }
|
|
216
220
|
}
|
|
217
221
|
};
|
|
222
|
+
TaskRealtimeSubscriptions.prototype.isWaypointCustomerEnrichmentDisabled = function () {
|
|
223
|
+
var _a;
|
|
224
|
+
var featureFlags = (((_a = this.session.merchant) === null || _a === void 0 ? void 0 : _a.feature_flags) || {});
|
|
225
|
+
return Boolean(featureFlags[Tasks_consts_1.DISABLE_WAYPOINT_CUSTOMER_ENRICHMENT_FEATURE_FLAG]);
|
|
226
|
+
};
|
|
218
227
|
return TaskRealtimeSubscriptions;
|
|
219
228
|
}());
|
|
220
229
|
exports.default = TaskRealtimeSubscriptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-realtime-subscriptions.js","sourceRoot":"","sources":["../../../src/Task/v2/task-realtime-subscriptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAyC;AAGzC,+GAAuF;AAMvF,uIAA6G;AAC7G,
|
|
1
|
+
{"version":3,"file":"task-realtime-subscriptions.js","sourceRoot":"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AAkB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC7F,CAAC;IAEM,kEAA8B,GAArC;QACC,OAAO,IAAI,CAAC,2BAA2B,CAAC,8BAA8B,EAAE,CAAC;IAC1E,CAAC;IAEM,qDAAiB,GAAxB,UAAyB,YAAY;QACpC,IAAM,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,iCAAkB,CAAC,QAAQ,CAAC;QAEvG,IAAI,CAAC,6BAA6B,CAAC,iBAAiB,CAAC,aAAa,EAAE,YAAwC,CAAC,CAAC;IAC/G,CAAC;IAEM,gEAA4B,GAAnC,UAAoC,aAAa;;;YAChD,KAA2B,IAAA,kBAAA,SAAA,aAAa,CAAA,4CAAA,uEAAE;gBAArC,IAAM,YAAY,0BAAA;gBACtB,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;aACrC;;;;;;;;;IACF,CAAC;IAEO,wEAAoC,GAA5C;;QACC,IAAM,YAAY,GAAG,CAAC,CAAA,MAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,0CAAE,aAAa,KAAI,EAAE,CAAwC,CAAC;QAEzG,OAAO,OAAO,CAAC,YAAY,CAAC,gEAAiD,CAAC,CAAC,CAAC;IACjF,CAAC;IACF,gCAAC;AAAD,CAAC,AA7LD,IA6LC"}
|
|
@@ -488,6 +488,332 @@ 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.Routes = exports.GATEWAY_PATH = void 0;
|
|
498
|
+
/**
|
|
499
|
+
* api-gateway path prefix the analyst service is registered under.
|
|
500
|
+
*
|
|
501
|
+
* From `analyst-service/helm/service/_default.yaml`:
|
|
502
|
+
*
|
|
503
|
+
* service:
|
|
504
|
+
* endpoints:
|
|
505
|
+
* - path: /analyst-service
|
|
506
|
+
* stripPath: true
|
|
507
|
+
*
|
|
508
|
+
* `stripPath: true` means the gateway strips the prefix before forwarding, so the service receives
|
|
509
|
+
* `/threads/search` rather than `/analyst-service/threads/search`.
|
|
510
|
+
*/
|
|
511
|
+
exports.GATEWAY_PATH = '/analyst-service';
|
|
512
|
+
exports.Routes = {
|
|
513
|
+
SEARCH_THREADS: "".concat(exports.GATEWAY_PATH, "/threads/search")
|
|
514
|
+
};
|
|
515
|
+
//# sourceMappingURL=Analyst.consts.js.map
|
|
516
|
+
|
|
517
|
+
/***/ }),
|
|
518
|
+
|
|
519
|
+
/***/ 68625:
|
|
520
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
521
|
+
|
|
522
|
+
"use strict";
|
|
523
|
+
|
|
524
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
525
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
526
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
527
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
528
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
529
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
530
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
531
|
+
});
|
|
532
|
+
};
|
|
533
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
534
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
535
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
536
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
537
|
+
function step(op) {
|
|
538
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
539
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
540
|
+
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;
|
|
541
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
542
|
+
switch (op[0]) {
|
|
543
|
+
case 0: case 1: t = op; break;
|
|
544
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
545
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
546
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
547
|
+
default:
|
|
548
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
549
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
550
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
551
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
552
|
+
if (t[2]) _.ops.pop();
|
|
553
|
+
_.trys.pop(); continue;
|
|
554
|
+
}
|
|
555
|
+
op = body.call(thisArg, _);
|
|
556
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
557
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
561
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
562
|
+
};
|
|
563
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
564
|
+
exports.Analyst = void 0;
|
|
565
|
+
var Analyst_consts_1 = __webpack_require__(93359);
|
|
566
|
+
var AnalystEntity_1 = __importDefault(__webpack_require__(68485));
|
|
567
|
+
var isSameConfig = function (a, b) {
|
|
568
|
+
if (a.apiUrl !== b.apiUrl) {
|
|
569
|
+
return false;
|
|
570
|
+
}
|
|
571
|
+
var keys = Object.keys(a.defaultHeaders);
|
|
572
|
+
return (keys.length === Object.keys(b.defaultHeaders).length &&
|
|
573
|
+
keys.every(function (key) { return a.defaultHeaders[key] === b.defaultHeaders[key]; }));
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* Where the dashboard reaches the Analyst agent, and how it authenticates.
|
|
577
|
+
*
|
|
578
|
+
* The browser never talks to analyst-service directly - it is reached through api-gateway under a
|
|
579
|
+
* path prefix, exactly like `data-query-service`. The service declares `bringg-jwt`, but no JWT
|
|
580
|
+
* exists client-side: the gateway performs the exchange from the ordinary Bringg session token, so
|
|
581
|
+
* we send the same `Authorization: Token token=...` plus `Client` that every other non-hagmonia
|
|
582
|
+
* call sends.
|
|
583
|
+
*
|
|
584
|
+
* **Why config and not a client.** The protocol client lives in `@langchain/langgraph-sdk`, which
|
|
585
|
+
* pulls in `@langchain/core` and, through it, Node built-ins that this bundle cannot resolve for
|
|
586
|
+
* the browser. Since the only consumer is `@langchain/react`'s `useStream` - a React hook, which
|
|
587
|
+
* cannot live here anyway - the split falls naturally: this package owns *where and how to
|
|
588
|
+
* connect*, which it already knows from `Session`, and the consumer owns the transport.
|
|
589
|
+
*
|
|
590
|
+
* ```ts
|
|
591
|
+
* const stream = useStream({ ...sdk.analyst.getClientConfig(), assistantId: 'analyst' });
|
|
592
|
+
* ```
|
|
593
|
+
*
|
|
594
|
+
* Everything the dashboard requests *itself* - today just the conversation list - is an ordinary
|
|
595
|
+
* SDK call on this class, typed from the `AnalystChat` contract in `@bringg/types` so the shape is
|
|
596
|
+
* enforced by the compiler in both this repo and analyst-service.
|
|
597
|
+
*/
|
|
598
|
+
var Analyst = /** @class */ (function () {
|
|
599
|
+
function Analyst(session) {
|
|
600
|
+
this.session = session;
|
|
601
|
+
this.entity = new AnalystEntity_1.default(session);
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* The signed-in user's conversations, most recently updated first.
|
|
605
|
+
*
|
|
606
|
+
* Carries no messages - the History list stays cheap, and opening a conversation hydrates it
|
|
607
|
+
* through the protocol client.
|
|
608
|
+
*/
|
|
609
|
+
Analyst.prototype.listThreads = function () {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
611
|
+
return __generator(this, function (_a) {
|
|
612
|
+
return [2 /*return*/, this.entity.searchThreads()];
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
};
|
|
616
|
+
/**
|
|
617
|
+
* Returns the **same object** while the values are unchanged.
|
|
618
|
+
*
|
|
619
|
+
* Referential stability is load-bearing, not a micro-optimisation: `useStream` treats
|
|
620
|
+
* `defaultHeaders` as a client dependency and rebuilds its client whenever the identity
|
|
621
|
+
* changes. A fresh object per call rebuilds on every render, which refetches, which renders
|
|
622
|
+
* again - an endless loop of `/commands` and `/state`.
|
|
623
|
+
*
|
|
624
|
+
* Recomputed each call and compared by value, so a changed session (login, region switch,
|
|
625
|
+
* impersonation) still produces a new config rather than a stale one.
|
|
626
|
+
*/
|
|
627
|
+
Analyst.prototype.getClientConfig = function () {
|
|
628
|
+
var next = {
|
|
629
|
+
apiUrl: this.getApiUrl(),
|
|
630
|
+
defaultHeaders: this.getDefaultHeaders()
|
|
631
|
+
};
|
|
632
|
+
if (this.cached && isSameConfig(this.cached, next)) {
|
|
633
|
+
return this.cached;
|
|
634
|
+
}
|
|
635
|
+
this.cached = next;
|
|
636
|
+
return next;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* `{api endpoint}/analyst-service`, resolved from the **signed-in user's region**.
|
|
640
|
+
*
|
|
641
|
+
* A user's region can differ from the environment default, and resolving against the default
|
|
642
|
+
* would point them at the wrong cluster.
|
|
643
|
+
*/
|
|
644
|
+
Analyst.prototype.getApiUrl = function () {
|
|
645
|
+
return "".concat(this.session.config.getApiEndpoint().encode()).concat(Analyst_consts_1.GATEWAY_PATH);
|
|
646
|
+
};
|
|
647
|
+
/** Matches the headers `ServiceRequest` builds for every other service. */
|
|
648
|
+
Analyst.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;
|
|
659
|
+
};
|
|
660
|
+
return Analyst;
|
|
661
|
+
}());
|
|
662
|
+
exports.Analyst = Analyst;
|
|
663
|
+
exports["default"] = Analyst;
|
|
664
|
+
//# sourceMappingURL=Analyst.js.map
|
|
665
|
+
|
|
666
|
+
/***/ }),
|
|
667
|
+
|
|
668
|
+
/***/ 68485:
|
|
669
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
670
|
+
|
|
671
|
+
"use strict";
|
|
672
|
+
|
|
673
|
+
var __extends = (this && this.__extends) || (function () {
|
|
674
|
+
var extendStatics = function (d, b) {
|
|
675
|
+
extendStatics = Object.setPrototypeOf ||
|
|
676
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
677
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
678
|
+
return extendStatics(d, b);
|
|
679
|
+
};
|
|
680
|
+
return function (d, b) {
|
|
681
|
+
if (typeof b !== "function" && b !== null)
|
|
682
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
683
|
+
extendStatics(d, b);
|
|
684
|
+
function __() { this.constructor = d; }
|
|
685
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
686
|
+
};
|
|
687
|
+
})();
|
|
688
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
689
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
690
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
691
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
692
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
693
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
694
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
695
|
+
});
|
|
696
|
+
};
|
|
697
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
698
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
699
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
700
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
701
|
+
function step(op) {
|
|
702
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
703
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
704
|
+
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;
|
|
705
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
706
|
+
switch (op[0]) {
|
|
707
|
+
case 0: case 1: t = op; break;
|
|
708
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
709
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
710
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
711
|
+
default:
|
|
712
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
713
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
714
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
715
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
716
|
+
if (t[2]) _.ops.pop();
|
|
717
|
+
_.trys.pop(); continue;
|
|
718
|
+
}
|
|
719
|
+
op = body.call(thisArg, _);
|
|
720
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
721
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
725
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
726
|
+
};
|
|
727
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
728
|
+
var Entity_1 = __importDefault(__webpack_require__(7483));
|
|
729
|
+
var Analyst_consts_1 = __webpack_require__(93359);
|
|
730
|
+
/**
|
|
731
|
+
* The Analyst REST surface.
|
|
732
|
+
*
|
|
733
|
+
* **Why this is the only endpoint declared here.** The analyst service exposes four more -
|
|
734
|
+
* `POST /threads/:id/commands`, `POST /threads/:id/stream/events`, `GET /threads/:id/state` and
|
|
735
|
+
* cancel - and none of them can become an SDK method. The dividing line is not REST versus
|
|
736
|
+
* streaming, it is *who decides to make the call*:
|
|
737
|
+
*
|
|
738
|
+
* - `/commands` - the protocol client builds the JSON-RPC envelope, allocates the command id and
|
|
739
|
+
* correlates the returned run. It sends this itself, on submit.
|
|
740
|
+
* - `/stream/events` - a long-lived SSE connection. The client opens it, splits frames, ignores
|
|
741
|
+
* keep-alives, dedupes by `event_id` and resumes from `seq` after a drop. A method returning a
|
|
742
|
+
* `Promise` cannot express a stream, and re-implementing the framing here would duplicate the
|
|
743
|
+
* very transport we are deferring to.
|
|
744
|
+
* - `/state` - called by the client during its own hydrate lifecycle, not when we ask.
|
|
745
|
+
* - cancel - keyed to the run id the client is tracking internally.
|
|
746
|
+
*
|
|
747
|
+
* All four are initiated *by the client*, so wrapping them would produce methods nothing calls.
|
|
748
|
+
* The SDK's contribution to those is {@link Analyst.getClientConfig} - where to connect and how to
|
|
749
|
+
* authenticate - and the client does the rest.
|
|
750
|
+
*
|
|
751
|
+
* `POST /threads/search` is different: the dashboard decides to ask for it, when the user opens
|
|
752
|
+
* the History tab. That makes it ours, and it is the only one.
|
|
753
|
+
*/
|
|
754
|
+
var AnalystEntity = /** @class */ (function (_super) {
|
|
755
|
+
__extends(AnalystEntity, _super);
|
|
756
|
+
function AnalystEntity(session) {
|
|
757
|
+
return _super.call(this, {
|
|
758
|
+
session: session,
|
|
759
|
+
entityName: 'threads',
|
|
760
|
+
routePrefix: 'analyst-service'
|
|
761
|
+
}) || this;
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Unwraps the `threads` envelope so callers receive entities directly, matching how the rest
|
|
765
|
+
* of the SDK reads (`getInsights()` returns insights, not a response wrapper).
|
|
766
|
+
*/
|
|
767
|
+
AnalystEntity.prototype.searchThreads = function () {
|
|
768
|
+
var _a;
|
|
769
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
770
|
+
var response;
|
|
771
|
+
return __generator(this, function (_b) {
|
|
772
|
+
switch (_b.label) {
|
|
773
|
+
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
774
|
+
.post(Analyst_consts_1.Routes.SEARCH_THREADS)
|
|
775
|
+
.withPayload({})
|
|
776
|
+
.setException('Failed to fetch analyst chat threads')
|
|
777
|
+
.invoke()];
|
|
778
|
+
case 1:
|
|
779
|
+
response = _b.sent();
|
|
780
|
+
return [2 /*return*/, (_a = response === null || response === void 0 ? void 0 : response.threads) !== null && _a !== void 0 ? _a : []];
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
});
|
|
784
|
+
};
|
|
785
|
+
return AnalystEntity;
|
|
786
|
+
}(Entity_1.default));
|
|
787
|
+
exports["default"] = AnalystEntity;
|
|
788
|
+
//# sourceMappingURL=AnalystEntity.js.map
|
|
789
|
+
|
|
790
|
+
/***/ }),
|
|
791
|
+
|
|
792
|
+
/***/ 82661:
|
|
793
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
794
|
+
|
|
795
|
+
"use strict";
|
|
796
|
+
|
|
797
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
798
|
+
if (k2 === undefined) k2 = k;
|
|
799
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
800
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
801
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
802
|
+
}
|
|
803
|
+
Object.defineProperty(o, k2, desc);
|
|
804
|
+
}) : (function(o, m, k, k2) {
|
|
805
|
+
if (k2 === undefined) k2 = k;
|
|
806
|
+
o[k2] = m[k];
|
|
807
|
+
}));
|
|
808
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
809
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
810
|
+
};
|
|
811
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
812
|
+
__exportStar(__webpack_require__(68625), exports);
|
|
813
|
+
//# sourceMappingURL=index.js.map
|
|
814
|
+
|
|
815
|
+
/***/ }),
|
|
816
|
+
|
|
491
817
|
/***/ 80034:
|
|
492
818
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
493
819
|
|
|
@@ -2680,6 +3006,7 @@ exports.newConfigurationProvider = exports.getFullConfiguration = exports.setEnv
|
|
|
2680
3006
|
var mobx = __importStar(__webpack_require__(68949));
|
|
2681
3007
|
var AddonsApi_1 = __importDefault(__webpack_require__(22464));
|
|
2682
3008
|
var AlertsApi_1 = __importDefault(__webpack_require__(86776));
|
|
3009
|
+
var Analyst_1 = __webpack_require__(82661);
|
|
2683
3010
|
var AnalyticsReportsApi_1 = __importDefault(__webpack_require__(80034));
|
|
2684
3011
|
var ApplicationApi_1 = __importDefault(__webpack_require__(50513));
|
|
2685
3012
|
var ApplicationMerchantConfigurationApi_1 = __importDefault(__webpack_require__(82996));
|
|
@@ -3200,6 +3527,7 @@ function init(session) {
|
|
|
3200
3527
|
bringg.parkingSpotApi = new ParkingSpotApi_1.default(session);
|
|
3201
3528
|
bringg.customAttributesApi = new CustomAttributesApi_1.default(session);
|
|
3202
3529
|
bringg.asyncOperationStatus = new AsyncOperationStatus_1.AsyncOperationStatus(session);
|
|
3530
|
+
bringg.analyst = new Analyst_1.Analyst(session);
|
|
3203
3531
|
bringg.addons = new AddonsApi_1.default(session);
|
|
3204
3532
|
bringg.supportTicket = new SupportTicketApi_1.default(session);
|
|
3205
3533
|
bringg.optimizationKpi = new OptimizationKpiApi_1.default(session);
|
|
@@ -24032,7 +24360,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
24032
24360
|
var BringgException_1 = __webpack_require__(43605);
|
|
24033
24361
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
24034
24362
|
var abort_1 = __webpack_require__(34179);
|
|
24035
|
-
var version = '9.
|
|
24363
|
+
var version = '9.82.0-pre.1';
|
|
24036
24364
|
function logErrorResponse(response) {
|
|
24037
24365
|
var data = response.data, status = response.status;
|
|
24038
24366
|
try {
|
|
@@ -26635,7 +26963,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
26635
26963
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26636
26964
|
};
|
|
26637
26965
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
26638
|
-
exports.taskDefaultFields = exports.Routes = exports.baseRoute = exports.TaskRealTimeEvents = exports.answersExtractor = exports.quotesExtractor = exports.formExtractor = exports.taskIdsExtractor = exports.scanCodeExtractor = exports.locationExtractor = exports.childTasksExtractor = exports.tasksExtractor = exports.successExtractor = exports.taskExtractor = exports.defaultExtractor = exports.noteTypes = exports.taskToGroupMapper = exports.groupFilter = exports.TaskGroupTypes = exports.GROUP_VALUES = void 0;
|
|
26966
|
+
exports.taskDefaultFields = exports.Routes = exports.baseRoute = exports.TaskRealTimeEvents = exports.DISABLE_WAYPOINT_CUSTOMER_ENRICHMENT_FEATURE_FLAG = exports.answersExtractor = exports.quotesExtractor = exports.formExtractor = exports.taskIdsExtractor = exports.scanCodeExtractor = exports.locationExtractor = exports.childTasksExtractor = exports.tasksExtractor = exports.successExtractor = exports.taskExtractor = exports.defaultExtractor = exports.noteTypes = exports.taskToGroupMapper = exports.groupFilter = exports.TaskGroupTypes = exports.GROUP_VALUES = void 0;
|
|
26639
26967
|
var TaskHelpers_1 = __webpack_require__(73119);
|
|
26640
26968
|
var GROUP_VALUES;
|
|
26641
26969
|
(function (GROUP_VALUES) {
|
|
@@ -26708,6 +27036,8 @@ var quotesExtractor = function (response) { return response.quotes; };
|
|
|
26708
27036
|
exports.quotesExtractor = quotesExtractor;
|
|
26709
27037
|
var answersExtractor = function (response) { return response.answers; };
|
|
26710
27038
|
exports.answersExtractor = answersExtractor;
|
|
27039
|
+
// Turning this on re-exposes the stale way_point.customer it was introduced to fix.
|
|
27040
|
+
exports.DISABLE_WAYPOINT_CUSTOMER_ENRICHMENT_FEATURE_FLAG = 'disable_waypoint_customer_enrichment';
|
|
26711
27041
|
var TaskRealTimeEvents;
|
|
26712
27042
|
(function (TaskRealTimeEvents) {
|
|
26713
27043
|
TaskRealTimeEvents["TASK_UPDATE"] = "task update";
|
|
@@ -26893,6 +27223,7 @@ var vrp_auto_dispatch_status_entity_1 = __importDefault(__webpack_require__(7589
|
|
|
26893
27223
|
var Tasks_consts_1 = __webpack_require__(24976);
|
|
26894
27224
|
var TaskRealtimeSubscriptions = /** @class */ (function () {
|
|
26895
27225
|
function TaskRealtimeSubscriptions(session, tasksStore, storableDataService, customersApi) {
|
|
27226
|
+
this.session = session;
|
|
26896
27227
|
this.tasksStore = tasksStore;
|
|
26897
27228
|
this.customersApi = customersApi;
|
|
26898
27229
|
this.storableRealtimeSubscriptions = new storable_realtime_subscriptions_1.default(session, tasksStore, storableDataService);
|
|
@@ -26958,6 +27289,9 @@ var TaskRealtimeSubscriptions = /** @class */ (function () {
|
|
|
26958
27289
|
{
|
|
26959
27290
|
shouldEnrich: function (payload, getTask) {
|
|
26960
27291
|
var _a, _b, _c;
|
|
27292
|
+
if (_this.isWaypointCustomerEnrichmentDisabled()) {
|
|
27293
|
+
return false;
|
|
27294
|
+
}
|
|
26961
27295
|
if (!('customer_id' in payload) || 'customer' in payload) {
|
|
26962
27296
|
return false;
|
|
26963
27297
|
}
|
|
@@ -27052,6 +27386,11 @@ var TaskRealtimeSubscriptions = /** @class */ (function () {
|
|
|
27052
27386
|
finally { if (e_1) throw e_1.error; }
|
|
27053
27387
|
}
|
|
27054
27388
|
};
|
|
27389
|
+
TaskRealtimeSubscriptions.prototype.isWaypointCustomerEnrichmentDisabled = function () {
|
|
27390
|
+
var _a;
|
|
27391
|
+
var featureFlags = (((_a = this.session.merchant) === null || _a === void 0 ? void 0 : _a.feature_flags) || {});
|
|
27392
|
+
return Boolean(featureFlags[Tasks_consts_1.DISABLE_WAYPOINT_CUSTOMER_ENRICHMENT_FEATURE_FLAG]);
|
|
27393
|
+
};
|
|
27055
27394
|
return TaskRealtimeSubscriptions;
|
|
27056
27395
|
}());
|
|
27057
27396
|
exports["default"] = TaskRealtimeSubscriptions;
|
|
@@ -35914,6 +36253,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35914
36253
|
};
|
|
35915
36254
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
35916
36255
|
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;
|
|
36256
|
+
__exportStar(__webpack_require__(82661), exports);
|
|
35917
36257
|
__exportStar(__webpack_require__(37360), exports);
|
|
35918
36258
|
__exportStar(__webpack_require__(5655), exports);
|
|
35919
36259
|
exports.ChatConversationConsts = __importStar(__webpack_require__(44448));
|
|
@@ -37957,6 +38297,7 @@ __exportStar(__webpack_require__(63725), exports);
|
|
|
37957
38297
|
__exportStar(__webpack_require__(26383), exports);
|
|
37958
38298
|
__exportStar(__webpack_require__(11168), exports);
|
|
37959
38299
|
__exportStar(__webpack_require__(82849), exports);
|
|
38300
|
+
__exportStar(__webpack_require__(76797), exports);
|
|
37960
38301
|
__exportStar(__webpack_require__(54581), exports);
|
|
37961
38302
|
__exportStar(__webpack_require__(21434), exports);
|
|
37962
38303
|
__exportStar(__webpack_require__(30983), exports);
|
|
@@ -37973,6 +38314,7 @@ __exportStar(__webpack_require__(51837), exports);
|
|
|
37973
38314
|
__exportStar(__webpack_require__(55936), exports);
|
|
37974
38315
|
__exportStar(__webpack_require__(58466), exports);
|
|
37975
38316
|
__exportStar(__webpack_require__(14570), exports);
|
|
38317
|
+
__exportStar(__webpack_require__(47551), exports);
|
|
37976
38318
|
__exportStar(__webpack_require__(29384), exports);
|
|
37977
38319
|
__exportStar(__webpack_require__(97935), exports);
|
|
37978
38320
|
__exportStar(__webpack_require__(18980), exports);
|
|
@@ -38393,6 +38735,90 @@ var AlertDisplayCategory;
|
|
|
38393
38735
|
|
|
38394
38736
|
/***/ }),
|
|
38395
38737
|
|
|
38738
|
+
/***/ 39625:
|
|
38739
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
38740
|
+
|
|
38741
|
+
"use strict";
|
|
38742
|
+
|
|
38743
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
38744
|
+
exports.ChartKind = exports.RunMethod = exports.Role = void 0;
|
|
38745
|
+
var Role;
|
|
38746
|
+
(function (Role) {
|
|
38747
|
+
Role["Human"] = "human";
|
|
38748
|
+
Role["Ai"] = "ai";
|
|
38749
|
+
})(Role || (exports.Role = Role = {}));
|
|
38750
|
+
var RunMethod;
|
|
38751
|
+
(function (RunMethod) {
|
|
38752
|
+
RunMethod["Start"] = "run.start";
|
|
38753
|
+
})(RunMethod || (exports.RunMethod = RunMethod = {}));
|
|
38754
|
+
var ChartKind;
|
|
38755
|
+
(function (ChartKind) {
|
|
38756
|
+
ChartKind["Bar"] = "bar";
|
|
38757
|
+
ChartKind["Line"] = "line";
|
|
38758
|
+
ChartKind["Pie"] = "pie";
|
|
38759
|
+
ChartKind["Area"] = "area";
|
|
38760
|
+
ChartKind["Scatter"] = "scatter";
|
|
38761
|
+
ChartKind["StackedBar"] = "stacked_bar";
|
|
38762
|
+
})(ChartKind || (exports.ChartKind = ChartKind = {}));
|
|
38763
|
+
//# sourceMappingURL=analyst_chat.js.map
|
|
38764
|
+
|
|
38765
|
+
/***/ }),
|
|
38766
|
+
|
|
38767
|
+
/***/ 67823:
|
|
38768
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
38769
|
+
|
|
38770
|
+
"use strict";
|
|
38771
|
+
|
|
38772
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
38773
|
+
exports.AnalystFindingTag = exports.AnalystFindingSeverity = void 0;
|
|
38774
|
+
var AnalystFindingSeverity;
|
|
38775
|
+
(function (AnalystFindingSeverity) {
|
|
38776
|
+
AnalystFindingSeverity[AnalystFindingSeverity["Critical"] = 0] = "Critical";
|
|
38777
|
+
AnalystFindingSeverity[AnalystFindingSeverity["High"] = 1] = "High";
|
|
38778
|
+
AnalystFindingSeverity[AnalystFindingSeverity["Medium"] = 2] = "Medium";
|
|
38779
|
+
AnalystFindingSeverity[AnalystFindingSeverity["Low"] = 3] = "Low";
|
|
38780
|
+
})(AnalystFindingSeverity || (exports.AnalystFindingSeverity = AnalystFindingSeverity = {}));
|
|
38781
|
+
var AnalystFindingTag;
|
|
38782
|
+
(function (AnalystFindingTag) {
|
|
38783
|
+
AnalystFindingTag[AnalystFindingTag["OnTimePerformance"] = 0] = "OnTimePerformance";
|
|
38784
|
+
AnalystFindingTag[AnalystFindingTag["DeliveryCost"] = 1] = "DeliveryCost";
|
|
38785
|
+
AnalystFindingTag[AnalystFindingTag["CustomerExperience"] = 2] = "CustomerExperience";
|
|
38786
|
+
AnalystFindingTag[AnalystFindingTag["OperationalEfficiency"] = 3] = "OperationalEfficiency";
|
|
38787
|
+
AnalystFindingTag[AnalystFindingTag["OrderFulfillment"] = 4] = "OrderFulfillment";
|
|
38788
|
+
AnalystFindingTag[AnalystFindingTag["PlanReliability"] = 5] = "PlanReliability";
|
|
38789
|
+
AnalystFindingTag[AnalystFindingTag["Compliance"] = 6] = "Compliance";
|
|
38790
|
+
})(AnalystFindingTag || (exports.AnalystFindingTag = AnalystFindingTag = {}));
|
|
38791
|
+
//# sourceMappingURL=analyst_finding.js.map
|
|
38792
|
+
|
|
38793
|
+
/***/ }),
|
|
38794
|
+
|
|
38795
|
+
/***/ 76797:
|
|
38796
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
38797
|
+
|
|
38798
|
+
"use strict";
|
|
38799
|
+
|
|
38800
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
38801
|
+
if (k2 === undefined) k2 = k;
|
|
38802
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
38803
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
38804
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
38805
|
+
}
|
|
38806
|
+
Object.defineProperty(o, k2, desc);
|
|
38807
|
+
}) : (function(o, m, k, k2) {
|
|
38808
|
+
if (k2 === undefined) k2 = k;
|
|
38809
|
+
o[k2] = m[k];
|
|
38810
|
+
}));
|
|
38811
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
38812
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
38813
|
+
};
|
|
38814
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
38815
|
+
exports.AnalystChat = void 0;
|
|
38816
|
+
exports.AnalystChat = __webpack_require__(39625);
|
|
38817
|
+
__exportStar(__webpack_require__(67823), exports);
|
|
38818
|
+
//# sourceMappingURL=index.js.map
|
|
38819
|
+
|
|
38820
|
+
/***/ }),
|
|
38821
|
+
|
|
38396
38822
|
/***/ 9439:
|
|
38397
38823
|
/***/ ((__unused_webpack_module, exports) => {
|
|
38398
38824
|
|
|
@@ -39384,6 +39810,7 @@ var ApplicationUuid;
|
|
|
39384
39810
|
(function (ApplicationUuid) {
|
|
39385
39811
|
ApplicationUuid["AutoAssign"] = "7083ab3d-c7de-40fd-83bb-f2c10bd0fa88";
|
|
39386
39812
|
ApplicationUuid["AAA"] = "3ecfa3f6-1a21-11e8-accf-0ed5f89f718b";
|
|
39813
|
+
ApplicationUuid["Analyst"] = "b7faf917-4441-4c2e-ada4-fa5550d9dde4";
|
|
39387
39814
|
ApplicationUuid["CustomAttributeApplication"] = "eb377388-08b9-48e2-9752-5066b4446d50";
|
|
39388
39815
|
ApplicationUuid["ActOnTriggerApp"] = "8ebe8358-62d3-11ea-bc55-0242ac130003";
|
|
39389
39816
|
ApplicationUuid["AutoBreaks"] = "9310325e-d7d5-11ea-87d0-0242ac130003";
|
|
@@ -39902,6 +40329,23 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
39902
40329
|
|
|
39903
40330
|
/***/ }),
|
|
39904
40331
|
|
|
40332
|
+
/***/ 47551:
|
|
40333
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
40334
|
+
|
|
40335
|
+
"use strict";
|
|
40336
|
+
|
|
40337
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40338
|
+
exports.ContactPhoneSource = void 0;
|
|
40339
|
+
var ContactPhoneSource;
|
|
40340
|
+
(function (ContactPhoneSource) {
|
|
40341
|
+
ContactPhoneSource["DRIVER"] = "driver";
|
|
40342
|
+
ContactPhoneSource["MERCHANT"] = "merchant";
|
|
40343
|
+
ContactPhoneSource["MANAGED_ATTRIBUTE"] = "managed_attribute";
|
|
40344
|
+
})(ContactPhoneSource || (exports.ContactPhoneSource = ContactPhoneSource = {}));
|
|
40345
|
+
//# sourceMappingURL=contact_phone_source.js.map
|
|
40346
|
+
|
|
40347
|
+
/***/ }),
|
|
40348
|
+
|
|
39905
40349
|
/***/ 29384:
|
|
39906
40350
|
/***/ ((__unused_webpack_module, exports) => {
|
|
39907
40351
|
|
|
@@ -43920,12 +44364,14 @@ var WebhookDefinitionDisabledOrigin;
|
|
|
43920
44364
|
"use strict";
|
|
43921
44365
|
|
|
43922
44366
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
43923
|
-
exports.WebhookKey = void 0;
|
|
44367
|
+
exports.ANALYTICS_WEBHOOK_UNASSIGNED_CONDITION_VALUE = exports.ANALYTICS_WEBHOOK_CONDITION_KEY = exports.WebhookKey = void 0;
|
|
43924
44368
|
var WebhookKey;
|
|
43925
44369
|
(function (WebhookKey) {
|
|
43926
44370
|
WebhookKey["AnalyticsScheduledReportReady"] = "AnalyticsScheduledReportReady";
|
|
43927
44371
|
WebhookKey["RealtimeDriverLocation"] = "RealtimeDriverLocation";
|
|
43928
44372
|
})(WebhookKey || (exports.WebhookKey = WebhookKey = {}));
|
|
44373
|
+
exports.ANALYTICS_WEBHOOK_CONDITION_KEY = 'scheduled_report.scheduled_job_id';
|
|
44374
|
+
exports.ANALYTICS_WEBHOOK_UNASSIGNED_CONDITION_VALUE = 'unassigned';
|
|
43929
44375
|
//# sourceMappingURL=webhooks.js.map
|
|
43930
44376
|
|
|
43931
44377
|
/***/ }),
|