@bringg/dashboard-sdk 9.79.0 → 9.80.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/BringgDashboardSDK.d.ts +5 -0
- package/dist/BringgDashboardSDK.js +5 -0
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/ConfigurationProfiles/ConfigurationProfiles.d.ts +11 -0
- package/dist/ConfigurationProfiles/ConfigurationProfiles.js +29 -0
- package/dist/ConfigurationProfiles/ConfigurationProfiles.js.map +1 -0
- package/dist/ConfigurationProfiles/Service/ConfigurationProfilesService.d.ts +18 -0
- package/dist/ConfigurationProfiles/Service/ConfigurationProfilesService.js +129 -0
- package/dist/ConfigurationProfiles/Service/ConfigurationProfilesService.js.map +1 -0
- package/dist/Task/TaskApi.d.ts +4 -0
- package/dist/Task/TaskApi.js +4 -0
- package/dist/Task/TaskApi.js.map +1 -1
- package/dist/User/User.consts.d.ts +1 -0
- package/dist/User/User.consts.js +2 -1
- package/dist/User/User.consts.js.map +1 -1
- package/dist/User/v2/users-api.d.ts +7 -1
- package/dist/User/v2/users-api.js +45 -1
- package/dist/User/v2/users-api.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +272 -5
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +54 -10
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -2692,6 +2692,7 @@ var CarrierCancellationReasonsApi_1 = __importDefault(__webpack_require__(73116)
|
|
|
2692
2692
|
var Chat_1 = __importDefault(__webpack_require__(17629));
|
|
2693
2693
|
var ChatConversationApi_1 = __importDefault(__webpack_require__(74617));
|
|
2694
2694
|
var Company_1 = __importDefault(__webpack_require__(97275));
|
|
2695
|
+
var ConfigurationProfiles_1 = __importDefault(__webpack_require__(65624));
|
|
2695
2696
|
var ConfigurationProvider_1 = __webpack_require__(44858);
|
|
2696
2697
|
var Crew_1 = __importDefault(__webpack_require__(83916));
|
|
2697
2698
|
var CrossAppTransport_1 = __importDefault(__webpack_require__(25154));
|
|
@@ -2839,6 +2840,9 @@ var BringgDashboardSDK = /** @class */ (function () {
|
|
|
2839
2840
|
this.taskConfigurations = null;
|
|
2840
2841
|
this.taskInventory = null;
|
|
2841
2842
|
this.inventory = null;
|
|
2843
|
+
/**
|
|
2844
|
+
* @deprecated Use `v2.tasks` instead. The v1 Tasks API is deprecated and will be removed in a future major version.
|
|
2845
|
+
*/
|
|
2842
2846
|
this.tasks = null;
|
|
2843
2847
|
this.teamConfiguration = null;
|
|
2844
2848
|
this.teams = null;
|
|
@@ -3173,6 +3177,7 @@ function init(session) {
|
|
|
3173
3177
|
bringg.webhookAuthenticationConfiguration = new WebhookAuthenticationConfiguration_1.default(session);
|
|
3174
3178
|
bringg.optimizationConfiguration = new OptimizationConfiguration_1.default(session);
|
|
3175
3179
|
bringg.optimizationConfigurationV2 = new OptimizationConfigurationV2_1.default(session);
|
|
3180
|
+
bringg.configurationProfiles = new ConfigurationProfiles_1.default(session);
|
|
3176
3181
|
bringg.fleetTemplates = new FleetTemplateApi_1.default(session);
|
|
3177
3182
|
bringg.openFleets = new OpenFleetApi_1.default(session);
|
|
3178
3183
|
bringg.customerAvailabilityHours = new CustomerAvailabilityHourApi_1.default(session);
|
|
@@ -4790,6 +4795,178 @@ exports["default"] = CompanyEntity;
|
|
|
4790
4795
|
|
|
4791
4796
|
/***/ }),
|
|
4792
4797
|
|
|
4798
|
+
/***/ 65624:
|
|
4799
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4800
|
+
|
|
4801
|
+
"use strict";
|
|
4802
|
+
|
|
4803
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4804
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4805
|
+
};
|
|
4806
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4807
|
+
var ConfigurationProfilesService_1 = __importDefault(__webpack_require__(44716));
|
|
4808
|
+
var ConfigurationProfiles = /** @class */ (function () {
|
|
4809
|
+
function ConfigurationProfiles(session) {
|
|
4810
|
+
this.configurationProfilesService = new ConfigurationProfilesService_1.default(session);
|
|
4811
|
+
}
|
|
4812
|
+
ConfigurationProfiles.prototype.getAll = function (applicationUuid) {
|
|
4813
|
+
return this.configurationProfilesService.list(applicationUuid);
|
|
4814
|
+
};
|
|
4815
|
+
ConfigurationProfiles.prototype.create = function (applicationUuid, payload) {
|
|
4816
|
+
return this.configurationProfilesService.create(applicationUuid, payload);
|
|
4817
|
+
};
|
|
4818
|
+
ConfigurationProfiles.prototype.update = function (applicationUuid, id, payload) {
|
|
4819
|
+
return this.configurationProfilesService.update(applicationUuid, id, payload);
|
|
4820
|
+
};
|
|
4821
|
+
ConfigurationProfiles.prototype.setDefault = function (applicationUuid, id) {
|
|
4822
|
+
return this.configurationProfilesService.setDefault(applicationUuid, id);
|
|
4823
|
+
};
|
|
4824
|
+
ConfigurationProfiles.prototype.delete = function (applicationUuid, id) {
|
|
4825
|
+
return this.configurationProfilesService.delete(applicationUuid, id);
|
|
4826
|
+
};
|
|
4827
|
+
return ConfigurationProfiles;
|
|
4828
|
+
}());
|
|
4829
|
+
exports["default"] = ConfigurationProfiles;
|
|
4830
|
+
//# sourceMappingURL=ConfigurationProfiles.js.map
|
|
4831
|
+
|
|
4832
|
+
/***/ }),
|
|
4833
|
+
|
|
4834
|
+
/***/ 44716:
|
|
4835
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4836
|
+
|
|
4837
|
+
"use strict";
|
|
4838
|
+
|
|
4839
|
+
var __extends = (this && this.__extends) || (function () {
|
|
4840
|
+
var extendStatics = function (d, b) {
|
|
4841
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4842
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4843
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
4844
|
+
return extendStatics(d, b);
|
|
4845
|
+
};
|
|
4846
|
+
return function (d, b) {
|
|
4847
|
+
if (typeof b !== "function" && b !== null)
|
|
4848
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
4849
|
+
extendStatics(d, b);
|
|
4850
|
+
function __() { this.constructor = d; }
|
|
4851
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4852
|
+
};
|
|
4853
|
+
})();
|
|
4854
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4855
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4856
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4857
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4858
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4859
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4860
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4861
|
+
});
|
|
4862
|
+
};
|
|
4863
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
4864
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4865
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4866
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4867
|
+
function step(op) {
|
|
4868
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
4869
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
4870
|
+
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;
|
|
4871
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
4872
|
+
switch (op[0]) {
|
|
4873
|
+
case 0: case 1: t = op; break;
|
|
4874
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
4875
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
4876
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
4877
|
+
default:
|
|
4878
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
4879
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
4880
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
4881
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
4882
|
+
if (t[2]) _.ops.pop();
|
|
4883
|
+
_.trys.pop(); continue;
|
|
4884
|
+
}
|
|
4885
|
+
op = body.call(thisArg, _);
|
|
4886
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
4887
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
4888
|
+
}
|
|
4889
|
+
};
|
|
4890
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4891
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4892
|
+
};
|
|
4893
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4894
|
+
exports.Routes = void 0;
|
|
4895
|
+
var BaseService_1 = __importDefault(__webpack_require__(41992));
|
|
4896
|
+
var SERVICE_NAME = 'settings-service';
|
|
4897
|
+
exports.Routes = {
|
|
4898
|
+
LIST: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles"),
|
|
4899
|
+
CREATE: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles"),
|
|
4900
|
+
UPDATE: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles/{:id}"),
|
|
4901
|
+
SET_DEFAULT: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles/{:id}/make-default"),
|
|
4902
|
+
DELETE: "/".concat(SERVICE_NAME, "/applications/{:application_uuid}/configuration-profiles/{:id}")
|
|
4903
|
+
};
|
|
4904
|
+
var ConfigurationProfilesService = /** @class */ (function (_super) {
|
|
4905
|
+
__extends(ConfigurationProfilesService, _super);
|
|
4906
|
+
function ConfigurationProfilesService(session) {
|
|
4907
|
+
return _super.call(this, session, 'configuration_profiles') || this;
|
|
4908
|
+
}
|
|
4909
|
+
ConfigurationProfilesService.prototype.list = function (applicationUuid) {
|
|
4910
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4911
|
+
return __generator(this, function (_a) {
|
|
4912
|
+
return [2 /*return*/, this.routeGenerator.get(exports.Routes.LIST).withRouteParams({ application_uuid: applicationUuid }).invoke()];
|
|
4913
|
+
});
|
|
4914
|
+
});
|
|
4915
|
+
};
|
|
4916
|
+
ConfigurationProfilesService.prototype.create = function (applicationUuid, payload) {
|
|
4917
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4918
|
+
return __generator(this, function (_a) {
|
|
4919
|
+
return [2 /*return*/, this.routeGenerator
|
|
4920
|
+
.post(exports.Routes.CREATE)
|
|
4921
|
+
.withRouteParams({ application_uuid: applicationUuid })
|
|
4922
|
+
.withPayload(payload)
|
|
4923
|
+
.invoke()];
|
|
4924
|
+
});
|
|
4925
|
+
});
|
|
4926
|
+
};
|
|
4927
|
+
ConfigurationProfilesService.prototype.update = function (applicationUuid, id, payload) {
|
|
4928
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4929
|
+
return __generator(this, function (_a) {
|
|
4930
|
+
return [2 /*return*/, this.routeGenerator
|
|
4931
|
+
.patch(exports.Routes.UPDATE)
|
|
4932
|
+
.withRouteParams({ application_uuid: applicationUuid, id: id })
|
|
4933
|
+
.withPayload(payload)
|
|
4934
|
+
.invoke()];
|
|
4935
|
+
});
|
|
4936
|
+
});
|
|
4937
|
+
};
|
|
4938
|
+
ConfigurationProfilesService.prototype.setDefault = function (applicationUuid, id) {
|
|
4939
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4940
|
+
return __generator(this, function (_a) {
|
|
4941
|
+
return [2 /*return*/, this.routeGenerator
|
|
4942
|
+
.put(exports.Routes.SET_DEFAULT)
|
|
4943
|
+
.withRouteParams({ application_uuid: applicationUuid, id: id })
|
|
4944
|
+
.invoke()];
|
|
4945
|
+
});
|
|
4946
|
+
});
|
|
4947
|
+
};
|
|
4948
|
+
ConfigurationProfilesService.prototype.delete = function (applicationUuid, id) {
|
|
4949
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4950
|
+
return __generator(this, function (_a) {
|
|
4951
|
+
switch (_a.label) {
|
|
4952
|
+
case 0: return [4 /*yield*/, this.routeGenerator
|
|
4953
|
+
.delete(exports.Routes.DELETE)
|
|
4954
|
+
.withRouteParams({ application_uuid: applicationUuid, id: id })
|
|
4955
|
+
.invoke()];
|
|
4956
|
+
case 1:
|
|
4957
|
+
_a.sent();
|
|
4958
|
+
return [2 /*return*/];
|
|
4959
|
+
}
|
|
4960
|
+
});
|
|
4961
|
+
});
|
|
4962
|
+
};
|
|
4963
|
+
return ConfigurationProfilesService;
|
|
4964
|
+
}(BaseService_1.default));
|
|
4965
|
+
exports["default"] = ConfigurationProfilesService;
|
|
4966
|
+
//# sourceMappingURL=ConfigurationProfilesService.js.map
|
|
4967
|
+
|
|
4968
|
+
/***/ }),
|
|
4969
|
+
|
|
4793
4970
|
/***/ 41992:
|
|
4794
4971
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4795
4972
|
|
|
@@ -23855,7 +24032,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
23855
24032
|
var BringgException_1 = __webpack_require__(43605);
|
|
23856
24033
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
23857
24034
|
var abort_1 = __webpack_require__(34179);
|
|
23858
|
-
var version = '9.
|
|
24035
|
+
var version = '9.80.0';
|
|
23859
24036
|
function logErrorResponse(response) {
|
|
23860
24037
|
var data = response.data, status = response.status;
|
|
23861
24038
|
try {
|
|
@@ -26183,6 +26360,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
26183
26360
|
var TaskEntity_1 = __importDefault(__webpack_require__(56130));
|
|
26184
26361
|
var TaskHelpers_1 = __webpack_require__(73119);
|
|
26185
26362
|
var Tasks_consts_1 = __webpack_require__(24976);
|
|
26363
|
+
/**
|
|
26364
|
+
* @deprecated The v1 Tasks API is deprecated. Use the v2 Tasks API instead (`sdk.v2.tasks`, see `src/Task/v2/tasks-api.ts`).
|
|
26365
|
+
* This class is kept only for backwards compatibility and will be removed in a future major version.
|
|
26366
|
+
*/
|
|
26186
26367
|
var Tasks = /** @class */ (function () {
|
|
26187
26368
|
function Tasks(session) {
|
|
26188
26369
|
var _this = this;
|
|
@@ -31389,7 +31570,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
31389
31570
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
31390
31571
|
};
|
|
31391
31572
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31392
|
-
exports.RealtimeEvents = exports.userToGroupsMapper = exports.groupFilter = exports.GROUP_VALUES = exports.UserGroupTypes = exports.UserEvents = exports.ROUTES = exports.baseRoute = exports.successExtractor = exports.countExtractor = exports.usersExtractor = exports.userExtractor = exports.defaultExtractor = exports.UsersScopes = void 0;
|
|
31573
|
+
exports.RealtimeEvents = exports.userToGroupsMapper = exports.groupFilter = exports.GROUP_VALUES = exports.UserGroupTypes = exports.UserEvents = exports.ROUTES = exports.ENABLE_USER_GROUPS_CACHE_FEATURE_FLAG = exports.baseRoute = exports.successExtractor = exports.countExtractor = exports.usersExtractor = exports.userExtractor = exports.defaultExtractor = exports.UsersScopes = void 0;
|
|
31393
31574
|
var UserHelpers_1 = __webpack_require__(2450);
|
|
31394
31575
|
var UsersScopes;
|
|
31395
31576
|
(function (UsersScopes) {
|
|
@@ -31410,6 +31591,7 @@ exports.countExtractor = countExtractor;
|
|
|
31410
31591
|
var successExtractor = function (response) { return response.success; };
|
|
31411
31592
|
exports.successExtractor = successExtractor;
|
|
31412
31593
|
exports.baseRoute = '/users';
|
|
31594
|
+
exports.ENABLE_USER_GROUPS_CACHE_FEATURE_FLAG = 'enable_user_groups_cache';
|
|
31413
31595
|
exports.ROUTES = {
|
|
31414
31596
|
GET_ALL: exports.baseRoute,
|
|
31415
31597
|
GET_DRIVERS_BY_TEAM: '/teams/{:teamId}/users',
|
|
@@ -31910,6 +32092,11 @@ var users_service_1 = __importDefault(__webpack_require__(38267));
|
|
|
31910
32092
|
var UsersApi = /** @class */ (function () {
|
|
31911
32093
|
function UsersApi(session) {
|
|
31912
32094
|
var _this = this;
|
|
32095
|
+
this.session = session;
|
|
32096
|
+
// The next_page_cursors that continue an admins+dispatchers pagination which began at cursor=nil.
|
|
32097
|
+
// Server cursors are unique per run, so this stays correct across concurrent runs, and only a run
|
|
32098
|
+
// traceable back to a fresh start ever marks the collection cached (a mid-collection caller can't).
|
|
32099
|
+
this.adminsAndDispatchersFreshPagingCursors = new Set();
|
|
31913
32100
|
var groupFilters = [
|
|
31914
32101
|
{
|
|
31915
32102
|
groupType: User_consts_1.UserGroupTypes.Main,
|
|
@@ -32126,11 +32313,25 @@ var UsersApi = /** @class */ (function () {
|
|
|
32126
32313
|
UsersApi.prototype.getAllAdminsAndDispatchers = function (_a) {
|
|
32127
32314
|
var _b = _a.limit, limit = _b === void 0 ? 25 : _b, _c = _a.page_action, page_action = _c === void 0 ? keyset_pagination_consts_1.KeysetPaginationPageAction.NEXT : _c, cursor = _a.cursor, options = _a.options;
|
|
32128
32315
|
return __awaiter(this, void 0, void 0, function () {
|
|
32129
|
-
var loadResult, loadFunc, users;
|
|
32316
|
+
var cacheEnabled, isFreshPagingRun, loadResult, loadFunc, users;
|
|
32130
32317
|
var _this = this;
|
|
32131
32318
|
return __generator(this, function (_d) {
|
|
32132
32319
|
switch (_d.label) {
|
|
32133
32320
|
case 0:
|
|
32321
|
+
cacheEnabled = this.isUserGroupsCacheEnabled();
|
|
32322
|
+
// A fresh load (no cursor) with the collection fully paged serves the store's Admins+Dispatchers
|
|
32323
|
+
// groups instead of refetching. Only members already in the store surface, so a user promoted into
|
|
32324
|
+
// the set from another session appears on the next uncached load. skipCache forces a server round
|
|
32325
|
+
// trip (e.g. a refetch after a mutation) while still re-warming the store below.
|
|
32326
|
+
if (cacheEnabled && !(options === null || options === void 0 ? void 0 : options.skipCache) && (0, lodash_1.isNil)(cursor) && this.isAdminsAndDispatchersCached()) {
|
|
32327
|
+
return [2 /*return*/, {
|
|
32328
|
+
users: this.userStore.getGroup(User_consts_1.UserGroupTypes.Main, [User_consts_1.GROUP_VALUES.Admins, User_consts_1.GROUP_VALUES.Dispatchers])
|
|
32329
|
+
}];
|
|
32330
|
+
}
|
|
32331
|
+
isFreshPagingRun = cacheEnabled && ((0, lodash_1.isNil)(cursor) || this.adminsAndDispatchersFreshPagingCursors.has(cursor));
|
|
32332
|
+
if (!(0, lodash_1.isNil)(cursor)) {
|
|
32333
|
+
this.adminsAndDispatchersFreshPagingCursors.delete(cursor);
|
|
32334
|
+
}
|
|
32134
32335
|
loadFunc = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
32135
32336
|
var result;
|
|
32136
32337
|
return __generator(this, function (_a) {
|
|
@@ -32150,11 +32351,36 @@ var UsersApi = /** @class */ (function () {
|
|
|
32150
32351
|
return [4 /*yield*/, this.storableDataService.loadMany('getAllAdminsAndDispatchers', loadFunc, [])];
|
|
32151
32352
|
case 1:
|
|
32152
32353
|
users = _d.sent();
|
|
32354
|
+
// Only a fresh run reaching its last page (no next cursor) has the whole collection in the store, so
|
|
32355
|
+
// only then mark it cached; otherwise track the next cursor as belonging to this fresh run.
|
|
32356
|
+
if (isFreshPagingRun) {
|
|
32357
|
+
if ((0, lodash_1.isNil)(loadResult.next_page_cursor)) {
|
|
32358
|
+
this.userStore.setGroupInitialized(User_consts_1.UserGroupTypes.Main, [
|
|
32359
|
+
User_consts_1.GROUP_VALUES.Admins,
|
|
32360
|
+
User_consts_1.GROUP_VALUES.Dispatchers
|
|
32361
|
+
]);
|
|
32362
|
+
// The collection is cached now, so any in-flight run's tracked cursors are moot (a fresh call
|
|
32363
|
+
// short-circuits to the store). Clearing bounds the set against abandoned runs.
|
|
32364
|
+
this.adminsAndDispatchersFreshPagingCursors.clear();
|
|
32365
|
+
}
|
|
32366
|
+
else {
|
|
32367
|
+
this.adminsAndDispatchersFreshPagingCursors.add(loadResult.next_page_cursor);
|
|
32368
|
+
}
|
|
32369
|
+
}
|
|
32153
32370
|
return [2 /*return*/, __assign(__assign({}, loadResult), { users: users })];
|
|
32154
32371
|
}
|
|
32155
32372
|
});
|
|
32156
32373
|
});
|
|
32157
32374
|
};
|
|
32375
|
+
UsersApi.prototype.isUserGroupsCacheEnabled = function () {
|
|
32376
|
+
var _a;
|
|
32377
|
+
var featureFlags = (((_a = this.session.merchant) === null || _a === void 0 ? void 0 : _a.feature_flags) || {});
|
|
32378
|
+
return Boolean(featureFlags[User_consts_1.ENABLE_USER_GROUPS_CACHE_FEATURE_FLAG]);
|
|
32379
|
+
};
|
|
32380
|
+
UsersApi.prototype.isAdminsAndDispatchersCached = function () {
|
|
32381
|
+
return (this.userStore.isGroupInitialized(User_consts_1.UserGroupTypes.Main, User_consts_1.GROUP_VALUES.Admins) &&
|
|
32382
|
+
this.userStore.isGroupInitialized(User_consts_1.UserGroupTypes.Main, User_consts_1.GROUP_VALUES.Dispatchers));
|
|
32383
|
+
};
|
|
32158
32384
|
// Business logic methods
|
|
32159
32385
|
UsersApi.prototype.messageDriver = function (userId, message) {
|
|
32160
32386
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -37733,6 +37959,7 @@ __exportStar(__webpack_require__(11168), exports);
|
|
|
37733
37959
|
__exportStar(__webpack_require__(82849), exports);
|
|
37734
37960
|
__exportStar(__webpack_require__(54581), exports);
|
|
37735
37961
|
__exportStar(__webpack_require__(21434), exports);
|
|
37962
|
+
__exportStar(__webpack_require__(30983), exports);
|
|
37736
37963
|
__exportStar(__webpack_require__(65111), exports);
|
|
37737
37964
|
__exportStar(__webpack_require__(91758), exports);
|
|
37738
37965
|
__exportStar(__webpack_require__(72285), exports);
|
|
@@ -39248,6 +39475,18 @@ var TaskTimePredictionApplicationFieldName;
|
|
|
39248
39475
|
|
|
39249
39476
|
/***/ }),
|
|
39250
39477
|
|
|
39478
|
+
/***/ 30983:
|
|
39479
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
39480
|
+
|
|
39481
|
+
"use strict";
|
|
39482
|
+
|
|
39483
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39484
|
+
exports.MANAGED_BY_PROFILE = void 0;
|
|
39485
|
+
exports.MANAGED_BY_PROFILE = 'managed_by_profile';
|
|
39486
|
+
//# sourceMappingURL=application_configuration_profile.js.map
|
|
39487
|
+
|
|
39488
|
+
/***/ }),
|
|
39489
|
+
|
|
39251
39490
|
/***/ 65111:
|
|
39252
39491
|
/***/ ((__unused_webpack_module, exports) => {
|
|
39253
39492
|
|
|
@@ -39322,6 +39561,23 @@ var CapacityPlanningServiceRpcAction;
|
|
|
39322
39561
|
|
|
39323
39562
|
/***/ }),
|
|
39324
39563
|
|
|
39564
|
+
/***/ 57465:
|
|
39565
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
39566
|
+
|
|
39567
|
+
"use strict";
|
|
39568
|
+
|
|
39569
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39570
|
+
exports.ResourceAdditionMode = void 0;
|
|
39571
|
+
var ResourceAdditionMode;
|
|
39572
|
+
(function (ResourceAdditionMode) {
|
|
39573
|
+
ResourceAdditionMode["Driver"] = "driver";
|
|
39574
|
+
ResourceAdditionMode["Vehicle"] = "vehicle";
|
|
39575
|
+
ResourceAdditionMode["Both"] = "both";
|
|
39576
|
+
})(ResourceAdditionMode || (exports.ResourceAdditionMode = ResourceAdditionMode = {}));
|
|
39577
|
+
//# sourceMappingURL=capacity_advisor_configuration.js.map
|
|
39578
|
+
|
|
39579
|
+
/***/ }),
|
|
39580
|
+
|
|
39325
39581
|
/***/ 48711:
|
|
39326
39582
|
/***/ ((__unused_webpack_module, exports) => {
|
|
39327
39583
|
|
|
@@ -39403,6 +39659,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
39403
39659
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
39404
39660
|
};
|
|
39405
39661
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39662
|
+
__exportStar(__webpack_require__(57465), exports);
|
|
39406
39663
|
__exportStar(__webpack_require__(48711), exports);
|
|
39407
39664
|
__exportStar(__webpack_require__(3201), exports);
|
|
39408
39665
|
__exportStar(__webpack_require__(10870), exports);
|
|
@@ -40094,13 +40351,20 @@ var OrderPageTabs;
|
|
|
40094
40351
|
"use strict";
|
|
40095
40352
|
|
|
40096
40353
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40097
|
-
exports.ResourceLocationId = exports.DeliveryBlockResourceLocationType = exports.BreakType = void 0;
|
|
40354
|
+
exports.ResourceLocationId = exports.DeliveryBlockResourceLocationType = exports.UtilizationDimension = exports.BreakType = void 0;
|
|
40098
40355
|
var BreakType;
|
|
40099
40356
|
(function (BreakType) {
|
|
40100
40357
|
BreakType[BreakType["Fixed"] = 0] = "Fixed";
|
|
40101
40358
|
BreakType[BreakType["Flex"] = 1] = "Flex";
|
|
40102
40359
|
BreakType[BreakType["Relative"] = 2] = "Relative";
|
|
40103
40360
|
})(BreakType || (exports.BreakType = BreakType = {}));
|
|
40361
|
+
var UtilizationDimension;
|
|
40362
|
+
(function (UtilizationDimension) {
|
|
40363
|
+
UtilizationDimension["Time"] = "time";
|
|
40364
|
+
UtilizationDimension["MaxTasks"] = "max_tasks";
|
|
40365
|
+
UtilizationDimension["Weight"] = "weight";
|
|
40366
|
+
UtilizationDimension["HandlingUnits"] = "handling_units";
|
|
40367
|
+
})(UtilizationDimension || (exports.UtilizationDimension = UtilizationDimension = {}));
|
|
40104
40368
|
var DeliveryBlockResourceLocationType;
|
|
40105
40369
|
(function (DeliveryBlockResourceLocationType) {
|
|
40106
40370
|
DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType["DRIVER_ADDRESS"] = 1] = "DRIVER_ADDRESS";
|
|
@@ -41777,6 +42041,10 @@ var PrivilegeTypes;
|
|
|
41777
42041
|
PrivilegeTypes["ALLOW_DISPATCHER_EDIT_ADDITIONAL_DRIVER_COST_FIELDS"] = "allow_dispatcher_edit_additional_driver_cost_fields";
|
|
41778
42042
|
PrivilegeTypes["EDIT_RESERVE_CAPACITY"] = "edit_reserve_capacity";
|
|
41779
42043
|
PrivilegeTypes["VEHICLES"] = "vehicles";
|
|
42044
|
+
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS"] = "capacity_advisor_settings";
|
|
42045
|
+
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_EDIT"] = "edit";
|
|
42046
|
+
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_VIEW"] = "view";
|
|
42047
|
+
PrivilegeTypes["CAPACITY_ADVISOR_SETTINGS_NONE"] = "none";
|
|
41780
42048
|
})(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
|
|
41781
42049
|
exports.PRIVILEGES_DEFAULTS = (_a = {},
|
|
41782
42050
|
_a[PrivilegeTypes.CANCEL_TASK] = true,
|
|
@@ -43041,7 +43309,6 @@ var TaskTypeId;
|
|
|
43041
43309
|
TaskTypeId[TaskTypeId["PICKUP_AND_DELIVERY"] = 5] = "PICKUP_AND_DELIVERY";
|
|
43042
43310
|
TaskTypeId[TaskTypeId["CLICK_AND_COLLECT"] = 6] = "CLICK_AND_COLLECT";
|
|
43043
43311
|
TaskTypeId[TaskTypeId["SERVICE"] = 7] = "SERVICE";
|
|
43044
|
-
TaskTypeId[TaskTypeId["ROAMING"] = 8] = "ROAMING";
|
|
43045
43312
|
})(TaskTypeId || (exports.TaskTypeId = TaskTypeId = {}));
|
|
43046
43313
|
var TaskSubType;
|
|
43047
43314
|
(function (TaskSubType) {
|