@bringg/dashboard-sdk 8.21.0-pre → 8.22.0-pre
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/ExclusionWindow/v2/exclusion-window-api.d.ts +7 -7
- package/dist/ExclusionWindow/v2/exclusion-window-api.js +54 -28
- package/dist/ExclusionWindow/v2/exclusion-window-api.js.map +1 -1
- package/dist/LookUp/lookup.consts.d.ts +1 -0
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-api.d.ts +7 -7
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-api.js +77 -27
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-api.js.map +1 -1
- package/dist/RouteOptimization/RouteOptimizationApi.d.ts +1 -3
- package/dist/RouteOptimization/RouteOptimizationApi.js +0 -9
- package/dist/RouteOptimization/RouteOptimizationApi.js.map +1 -1
- package/dist/ServiceArea/v2/service-area-api.d.ts +4 -4
- package/dist/ServiceArea/v2/service-area-api.js +35 -7
- package/dist/ServiceArea/v2/service-area-api.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/TaskRejectReason/v2/task-reject-reasons-api.d.ts +5 -5
- package/dist/TaskRejectReason/v2/task-reject-reasons-api.js +71 -6
- package/dist/TaskRejectReason/v2/task-reject-reasons-api.js.map +1 -1
- package/dist/TaskRejectReason/v2/task-reject-reasons-service.d.ts +5 -5
- package/dist/TaskRejectReason/v2/task-reject-reasons-service.js.map +1 -1
- package/dist/Workflow/v2/workflows-api.d.ts +8 -10
- package/dist/Workflow/v2/workflows-api.js +35 -14
- package/dist/Workflow/v2/workflows-api.js.map +1 -1
- package/dist/Workflow/v2/workflows-service.d.ts +2 -3
- package/dist/Workflow/v2/workflows-service.js +0 -9
- package/dist/Workflow/v2/workflows-service.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +313 -201
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +15 -26
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/storable-data-service.js +4 -3
- package/dist/storable-data-service.js.map +1 -1
- package/package.json +2 -2
- package/dist/storable-api-builder.d.ts +0 -7
- package/dist/storable-api-builder.js +0 -86
- package/dist/storable-api-builder.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ExclusionWindow } from '@bringg/types';
|
|
2
2
|
import { BasicResponse } from '../../Core/Responses';
|
|
3
|
-
import {
|
|
3
|
+
import { DataOptions, GroupValue } from '../../data-entity';
|
|
4
4
|
import Session from '../../Services/Identity/Session';
|
|
5
5
|
import { CreateExclusionWindowsRequest, ExclusionWindowsFilterGroups, LoadAllExclusionWindowRequest, RangeExclusionWindowRequest, UpdateExclusionWindowsRequest } from './exclusion-window.consts';
|
|
6
6
|
export declare class ExclusionWindowApi {
|
|
7
7
|
private readonly exclusionWindowStore;
|
|
8
8
|
private readonly exclusionWindowService;
|
|
9
9
|
private readonly storableDataService;
|
|
10
|
-
loadAllByTeam: <T extends DataEntity>(request: LoadAllExclusionWindowRequest & RangeExclusionWindowRequest, options?: DataOptions) => Promise<ExclusionWindow[]>;
|
|
11
|
-
loadAllWithoutTeam: <T extends DataEntity>(request?: RangeExclusionWindowRequest, options?: DataOptions) => Promise<ExclusionWindow[]>;
|
|
12
|
-
create: (request: CreateExclusionWindowsRequest) => Promise<ExclusionWindow>;
|
|
13
|
-
createMany: (request: CreateExclusionWindowsRequest[]) => Promise<ExclusionWindow[]>;
|
|
14
|
-
update: (id: number, request: UpdateExclusionWindowsRequest) => Promise<ExclusionWindow>;
|
|
15
|
-
delete: (id: number) => Promise<BasicResponse>;
|
|
16
10
|
constructor(session: Session);
|
|
11
|
+
loadAllByTeam(request: LoadAllExclusionWindowRequest & RangeExclusionWindowRequest, options?: DataOptions): Promise<ExclusionWindow[]>;
|
|
12
|
+
loadAllWithoutTeam(request?: RangeExclusionWindowRequest, options?: DataOptions): Promise<ExclusionWindow[]>;
|
|
13
|
+
create(request: CreateExclusionWindowsRequest): Promise<ExclusionWindow>;
|
|
14
|
+
update(id: number, request: UpdateExclusionWindowsRequest): Promise<ExclusionWindow>;
|
|
15
|
+
createMany(request: CreateExclusionWindowsRequest[]): Promise<ExclusionWindow[]>;
|
|
16
|
+
delete(id: number): Promise<BasicResponse>;
|
|
17
17
|
copyFromMerchant(teamId: number, exclusionWindowId?: number): Promise<ExclusionWindow[]>;
|
|
18
18
|
get(id: number): ExclusionWindow;
|
|
19
19
|
getByIds(ids: number[]): ExclusionWindow[];
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
14
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
15
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -38,7 +49,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
50
|
exports.ExclusionWindowApi = void 0;
|
|
40
51
|
var data_store_1 = require("../../data-store");
|
|
41
|
-
var storable_api_builder_1 = require("../../storable-api-builder");
|
|
42
52
|
var storable_data_service_1 = require("../../storable-data-service");
|
|
43
53
|
var exclusion_window_consts_1 = require("./exclusion-window.consts");
|
|
44
54
|
var exclusion_window_service_1 = require("./exclusion-window-service");
|
|
@@ -53,34 +63,50 @@ var ExclusionWindowApi = /** @class */ (function () {
|
|
|
53
63
|
this.exclusionWindowStore = new data_store_1.default(groupFilters);
|
|
54
64
|
this.exclusionWindowService = new exclusion_window_service_1.default(session);
|
|
55
65
|
this.storableDataService = new storable_data_service_1.default(this.exclusionWindowStore);
|
|
56
|
-
Object.assign(this, storable_api_builder_1.default.build(this.storableDataService, this.exclusionWindowService, {
|
|
57
|
-
modify: ['update', 'create'],
|
|
58
|
-
modifyMany: ['createMany'],
|
|
59
|
-
delete: ['delete'],
|
|
60
|
-
load: ['load'],
|
|
61
|
-
loadAll: [
|
|
62
|
-
{
|
|
63
|
-
action: 'loadAllByTeam',
|
|
64
|
-
getOptions: function (_a) {
|
|
65
|
-
var team_id = _a.team_id;
|
|
66
|
-
return {
|
|
67
|
-
groupType: exclusion_window_consts_1.ExclusionWindowsFilterGroups.Team,
|
|
68
|
-
groupValue: team_id
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
action: 'loadAllWithoutTeam',
|
|
74
|
-
getOptions: function () {
|
|
75
|
-
return {
|
|
76
|
-
groupType: exclusion_window_consts_1.ExclusionWindowsFilterGroups.Team,
|
|
77
|
-
groupValue: null
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}));
|
|
83
66
|
}
|
|
67
|
+
ExclusionWindowApi.prototype.loadAllByTeam = function (request, options) {
|
|
68
|
+
var _this = this;
|
|
69
|
+
return this.storableDataService.loadAll('loadAllByTeam', function () { return _this.exclusionWindowService.loadAllByTeam(request); }, __assign(__assign({}, options), { groupType: exclusion_window_consts_1.ExclusionWindowsFilterGroups.Team, groupValue: request.team_id }));
|
|
70
|
+
};
|
|
71
|
+
ExclusionWindowApi.prototype.loadAllWithoutTeam = function (request, options) {
|
|
72
|
+
var _this = this;
|
|
73
|
+
return this.storableDataService.loadAll('loadAllWithoutTeam', function () { return _this.exclusionWindowService.loadAllWithoutTeam(request); }, __assign(__assign({}, options), { groupType: exclusion_window_consts_1.ExclusionWindowsFilterGroups.Team, groupValue: null }));
|
|
74
|
+
};
|
|
75
|
+
ExclusionWindowApi.prototype.create = function (request) {
|
|
76
|
+
var _this = this;
|
|
77
|
+
return this.storableDataService.modify('create', function () { return _this.exclusionWindowService.create(request); });
|
|
78
|
+
};
|
|
79
|
+
ExclusionWindowApi.prototype.update = function (id, request) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
return this.storableDataService.modify('update', function () { return _this.exclusionWindowService.update(id, request); });
|
|
82
|
+
};
|
|
83
|
+
ExclusionWindowApi.prototype.createMany = function (request) {
|
|
84
|
+
var _this = this;
|
|
85
|
+
return this.storableDataService.modifyMany('createMany', function () { return _this.exclusionWindowService.createMany(request); });
|
|
86
|
+
};
|
|
87
|
+
ExclusionWindowApi.prototype.delete = function (id) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
89
|
+
var response;
|
|
90
|
+
var _this = this;
|
|
91
|
+
return __generator(this, function (_a) {
|
|
92
|
+
switch (_a.label) {
|
|
93
|
+
case 0: return [4 /*yield*/, this.storableDataService.delete('delete', function () { return __awaiter(_this, void 0, void 0, function () {
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
switch (_a.label) {
|
|
96
|
+
case 0: return [4 /*yield*/, this.exclusionWindowService.delete(id)];
|
|
97
|
+
case 1:
|
|
98
|
+
response = _a.sent();
|
|
99
|
+
return [2 /*return*/];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}); }, id)];
|
|
103
|
+
case 1:
|
|
104
|
+
_a.sent();
|
|
105
|
+
return [2 /*return*/, response];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
};
|
|
84
110
|
ExclusionWindowApi.prototype.copyFromMerchant = function (teamId, exclusionWindowId) {
|
|
85
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
86
112
|
return __generator(this, function (_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusion-window-api.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exclusion-window-api.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,+CAAyC;AAEzC,qEAA8D;AAC9D,qEAMmC;AACnC,uEAAgE;AAEhE;IAKC,4BAAY,OAAgB;QAC3B,IAAM,YAAY,GAAG;YACpB;gBACC,SAAS,EAAE,sDAA4B,CAAC,IAAI;gBAC5C,OAAO,EAAE,UAAC,eAAgC,IAAK,OAAA,eAAe,CAAC,OAAO,EAAvB,CAAuB;aACtE;SACD,CAAC;QAEF,IAAI,CAAC,oBAAoB,GAAG,IAAI,oBAAS,CAAkB,YAAY,CAAC,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,kCAAsB,CAAC,OAAO,CAAC,CAAC;QAClE,IAAI,CAAC,mBAAmB,GAAG,IAAI,+BAAmB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC/E,CAAC;IAEM,0CAAa,GAApB,UACC,OAAoE,EACpE,OAAqB;QAFtB,iBASC;QALA,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CACtC,eAAe,EACf,cAAM,OAAA,KAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAlD,CAAkD,wBACnD,OAAO,KAAE,SAAS,EAAE,sDAA4B,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,OAAO,IACvF,CAAC;IACH,CAAC;IAEM,+CAAkB,GAAzB,UACC,OAAqC,EACrC,OAAqB;QAFtB,iBASC;QALA,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CACtC,oBAAoB,EACpB,cAAM,OAAA,KAAI,CAAC,sBAAsB,CAAC,kBAAkB,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;KAC/E;IAEM,gCAAG,GAAV,UAAW,EAAU;QACpB,OAAO,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC1C,CAAC;IAEM,qCAAQ,GAAf,UAAgB,GAAa;QAA7B,iBAEC;QADA,OAAO,GAAG,CAAC,GAAG,CAAC,UAAA,EAAE,IAAI,OAAA,KAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAZ,CAAY,CAAC,CAAC;IACpC,CAAC;IAEM,mCAAM,GAAb;QACC,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;IAC3C,CAAC;IAEM,sCAAS,GAAhB;QACC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC;IACvC,CAAC;IAEM,qCAAQ,GAAf,UAAgB,KAAmC,EAAE,UAAsB;QAC1E,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;IACF,yBAAC;AAAD,CAAC,AAzFD,IAyFC;AAzFY,gDAAkB"}
|
|
@@ -42,6 +42,7 @@ export type BaseSearchQuery = {
|
|
|
42
42
|
export type UsersSearchQuery = BaseSearchQuery & {
|
|
43
43
|
roles: ('admin' | 'driver' | 'dispatcher')[];
|
|
44
44
|
includeAllAdmins?: boolean;
|
|
45
|
+
requiredFields?: ('email' | 'phone')[];
|
|
45
46
|
};
|
|
46
47
|
export type TeamsSearchResponseItem = {
|
|
47
48
|
id: number;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataOptions, GroupValue } from '../data-entity';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
3
|
import { PlannedDeliveryWindow, PlannedDeliveryWindowsFilterGroups, RecurrenceOptions } from './planned-delivery-windows.consts';
|
|
4
4
|
export default class PlannedDeliveryWindowsApi {
|
|
5
5
|
private readonly deliveryWindowsStore;
|
|
6
6
|
private readonly deliveryWindowsService;
|
|
7
7
|
private readonly storableDataService;
|
|
8
|
-
load: <T extends DataEntity>(id: number, options?: DataOptions) => Promise<PlannedDeliveryWindow>;
|
|
9
|
-
loadAllWithoutTeam: <T extends DataEntity>(startTime: string, endTime: string, options?: DataOptions) => Promise<PlannedDeliveryWindow[]>;
|
|
10
|
-
loadAllByTeam: <T extends DataEntity>(teamId: number, startTime: string, endTime: string, options?: DataOptions) => Promise<PlannedDeliveryWindow[]>;
|
|
11
|
-
create: (plannedDeliveryWindowsData: Partial<PlannedDeliveryWindow>[]) => Promise<PlannedDeliveryWindow[]>;
|
|
12
|
-
delete: (id: number, recurrenceOptions?: RecurrenceOptions) => Promise<PlannedDeliveryWindow>;
|
|
13
|
-
update: (id: number, plannedDeliveryWindow: Partial<PlannedDeliveryWindow>, recurrenceOptions?: RecurrenceOptions) => Promise<PlannedDeliveryWindow>;
|
|
14
8
|
constructor(session: Session);
|
|
9
|
+
load(id: number, options?: DataOptions): Promise<PlannedDeliveryWindow>;
|
|
10
|
+
loadAllWithoutTeam(startTime: string, endTime: string, options?: DataOptions): Promise<PlannedDeliveryWindow[]>;
|
|
11
|
+
loadAllByTeam(teamId: number, startTime: string, endTime: string, options?: DataOptions): Promise<PlannedDeliveryWindow[]>;
|
|
12
|
+
create(plannedDeliveryWindowsData: Partial<PlannedDeliveryWindow>[]): Promise<PlannedDeliveryWindow[]>;
|
|
13
|
+
delete(id: number, recurrenceOptions?: RecurrenceOptions): Promise<PlannedDeliveryWindow>;
|
|
14
|
+
update(id: number, plannedDeliveryWindow: Partial<PlannedDeliveryWindow>, recurrenceOptions?: RecurrenceOptions): Promise<PlannedDeliveryWindow>;
|
|
15
15
|
get(id: number): PlannedDeliveryWindow;
|
|
16
16
|
getAll(): PlannedDeliveryWindow[];
|
|
17
17
|
removeAll(): void;
|
|
@@ -1,7 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
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;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
2
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
50
|
var data_store_1 = require("../data-store");
|
|
4
|
-
var storable_api_builder_1 = require("../storable-api-builder");
|
|
5
51
|
var storable_data_service_1 = require("../storable-data-service");
|
|
6
52
|
var planned_delivery_windows_consts_1 = require("./planned-delivery-windows.consts");
|
|
7
53
|
var planned_delivery_windows_service_1 = require("./planned-delivery-windows-service");
|
|
@@ -16,33 +62,37 @@ var PlannedDeliveryWindowsApi = /** @class */ (function () {
|
|
|
16
62
|
this.deliveryWindowsStore = new data_store_1.default(groupFilters);
|
|
17
63
|
this.deliveryWindowsService = new planned_delivery_windows_service_1.default(session);
|
|
18
64
|
this.storableDataService = new storable_data_service_1.default(this.deliveryWindowsStore);
|
|
19
|
-
Object.assign(this, storable_api_builder_1.default.build(this.storableDataService, this.deliveryWindowsService, {
|
|
20
|
-
modify: ['update'],
|
|
21
|
-
modifyMany: ['create'],
|
|
22
|
-
delete: ['delete'],
|
|
23
|
-
load: ['load'],
|
|
24
|
-
loadAll: [
|
|
25
|
-
{
|
|
26
|
-
action: 'loadAllByTeam',
|
|
27
|
-
getOptions: function (teamId) {
|
|
28
|
-
return {
|
|
29
|
-
groupType: planned_delivery_windows_consts_1.PlannedDeliveryWindowsFilterGroups.Team,
|
|
30
|
-
groupValue: teamId
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
action: 'loadAllWithoutTeam',
|
|
36
|
-
getOptions: function () {
|
|
37
|
-
return {
|
|
38
|
-
groupType: planned_delivery_windows_consts_1.PlannedDeliveryWindowsFilterGroups.Team,
|
|
39
|
-
groupValue: null
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}));
|
|
45
65
|
}
|
|
66
|
+
PlannedDeliveryWindowsApi.prototype.load = function (id, options) {
|
|
67
|
+
var _this = this;
|
|
68
|
+
return this.storableDataService.load('load', function () { return _this.deliveryWindowsService.load(id); }, id, options);
|
|
69
|
+
};
|
|
70
|
+
PlannedDeliveryWindowsApi.prototype.loadAllWithoutTeam = function (startTime, endTime, options) {
|
|
71
|
+
var _this = this;
|
|
72
|
+
return this.storableDataService.loadAll('loadAllWithoutTeam', function () { return _this.deliveryWindowsService.loadAllWithoutTeam(startTime, endTime); }, __assign(__assign({}, options), { groupType: planned_delivery_windows_consts_1.PlannedDeliveryWindowsFilterGroups.Team, groupValue: null }));
|
|
73
|
+
};
|
|
74
|
+
PlannedDeliveryWindowsApi.prototype.loadAllByTeam = function (teamId, startTime, endTime, options) {
|
|
75
|
+
var _this = this;
|
|
76
|
+
return this.storableDataService.loadAll('loadAllByTeam', function () { return _this.deliveryWindowsService.loadAllByTeam(teamId, startTime, endTime); }, __assign(__assign({}, options), { groupType: planned_delivery_windows_consts_1.PlannedDeliveryWindowsFilterGroups.Team, groupValue: teamId }));
|
|
77
|
+
};
|
|
78
|
+
PlannedDeliveryWindowsApi.prototype.create = function (plannedDeliveryWindowsData) {
|
|
79
|
+
var _this = this;
|
|
80
|
+
return this.storableDataService.modifyMany('create', function () {
|
|
81
|
+
return _this.deliveryWindowsService.create(plannedDeliveryWindowsData);
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
PlannedDeliveryWindowsApi.prototype.delete = function (id, recurrenceOptions) {
|
|
85
|
+
var _this = this;
|
|
86
|
+
return this.storableDataService.delete('delete', function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
87
|
+
return [2 /*return*/, this.deliveryWindowsService.delete(id, recurrenceOptions)];
|
|
88
|
+
}); }); }, id);
|
|
89
|
+
};
|
|
90
|
+
PlannedDeliveryWindowsApi.prototype.update = function (id, plannedDeliveryWindow, recurrenceOptions) {
|
|
91
|
+
var _this = this;
|
|
92
|
+
return this.storableDataService.modify('update', function () {
|
|
93
|
+
return _this.deliveryWindowsService.update(id, plannedDeliveryWindow, recurrenceOptions);
|
|
94
|
+
});
|
|
95
|
+
};
|
|
46
96
|
PlannedDeliveryWindowsApi.prototype.get = function (id) {
|
|
47
97
|
return this.deliveryWindowsStore.get(id);
|
|
48
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-delivery-windows-api.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"planned-delivery-windows-api.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAAsC;AAEtC,kEAA2D;AAC3D,qFAI2C;AAC3C,uFAA+E;AAE/E;IAKC,mCAAY,OAAgB;QAC3B,IAAM,YAAY,GAAG;YACpB;gBACC,SAAS,EAAE,oEAAkC,CAAC,IAAI;gBAClD,OAAO,EAAE,UAAC,cAAqC,IAA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'@bringg/types';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
3
|
import { SessionBasedService } from '../Services/SessionBasedService';
|
|
4
4
|
import { AssignUserManualData, OptimizationResponseFailed, OptimizationResponseSuccess, OptimizationResult, RouteOptimizationRequest, RouteOptimizationResponse, TeamsToOptimize, UpdateOptimizationModifiedData } from './RouteOptimization.consts';
|
|
@@ -13,7 +13,6 @@ export default class RouteOptimizationApi extends SessionBasedService {
|
|
|
13
13
|
private update_user_modified_data;
|
|
14
14
|
private update_user_modified_data_v2;
|
|
15
15
|
private assign_user_manual_optimization;
|
|
16
|
-
private calculate_planned_eta;
|
|
17
16
|
constructor(session: Session);
|
|
18
17
|
cancelRequests(requestUuids: string[], v2?: boolean): Promise<RouteOptimizationResponse>;
|
|
19
18
|
optimize(optimizationProps: RouteOptimizationRequest, v2?: boolean): Promise<OptimizationResponseSuccess | OptimizationResponseFailed>;
|
|
@@ -21,5 +20,4 @@ export default class RouteOptimizationApi extends SessionBasedService {
|
|
|
21
20
|
assignUsersByIds(teams: TeamsToOptimize): Promise<RouteOptimizationResponse>;
|
|
22
21
|
updateOptimizationModifiedData(updateData: UpdateOptimizationModifiedData, v2?: boolean): Promise<RouteOptimizationResponse>;
|
|
23
22
|
assignUserManualOptimization(updateData: AssignUserManualData): Promise<RouteOptimizationResponse>;
|
|
24
|
-
calculatePlannedEta(route: OptimizeRequest): Promise<RouteOptimizationResponse>;
|
|
25
23
|
}
|
|
@@ -44,7 +44,6 @@ var RouteOptimizationApi = /** @class */ (function (_super) {
|
|
|
44
44
|
_this.update_user_modified_data = new Route_1.Route('/route_optimizations/update_user_modified_data', 1 /* HttpMethod.POST */);
|
|
45
45
|
_this.update_user_modified_data_v2 = new Route_1.Route('/own-fleet-optimization-service/route_optimization/update_user_modified_data', 1 /* HttpMethod.POST */);
|
|
46
46
|
_this.assign_user_manual_optimization = new Route_1.Route('/route_optimizations/assign_user_manual_optimization', 1 /* HttpMethod.POST */);
|
|
47
|
-
_this.calculate_planned_eta = new Route_1.Route('/own-fleet-optimization-service/route_optimization/calculate_planned_eta', 1 /* HttpMethod.POST */);
|
|
48
47
|
return _this;
|
|
49
48
|
}
|
|
50
49
|
RouteOptimizationApi.prototype.cancelRequests = function (requestUuids, v2) {
|
|
@@ -101,14 +100,6 @@ var RouteOptimizationApi = /** @class */ (function (_super) {
|
|
|
101
100
|
timeout: fiveMinutesInMs
|
|
102
101
|
});
|
|
103
102
|
};
|
|
104
|
-
RouteOptimizationApi.prototype.calculatePlannedEta = function (route) {
|
|
105
|
-
return this.handleAuthorizedRequest({
|
|
106
|
-
route: this.calculate_planned_eta,
|
|
107
|
-
extractor: RouteGenerator_1.defaultExtractor,
|
|
108
|
-
exceptionProducer: BringgException_1.BringgException.serviceException('Failed to calculate planned eta'),
|
|
109
|
-
payload: __assign({}, route)
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
103
|
return RouteOptimizationApi;
|
|
113
104
|
}(SessionBasedService_1.SessionBasedService));
|
|
114
105
|
exports.default = RouteOptimizationApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteOptimizationApi.js","sourceRoot":"","sources":["../../src/RouteOptimization/RouteOptimizationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2DAA0D;AAE1D,yDAA0D;AAE1D,2CAA0C;AAC1C,uEAAsE;AAYtE;IAAkD,wCAAmB;
|
|
1
|
+
{"version":3,"file":"RouteOptimizationApi.js","sourceRoot":"","sources":["../../src/RouteOptimization/RouteOptimizationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2DAA0D;AAE1D,yDAA0D;AAE1D,2CAA0C;AAC1C,uEAAsE;AAYtE;IAAkD,wCAAmB;IA2BpE,8BAAY,OAAgB;QAA5B,YACC,kBAAM,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,SAC/C;QA5BO,kBAAY,GAAG,IAAI,a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CAAC,CAAC;QAEtC,OAAO,IAAI,CAAC,uBAAuB,CAAC;YACnC,KAAK,EAAE,IAAI,CAAC,+BAA+B;YAC3C,SAAS,EAAE,iCAAgB;YAC3B,iBAAiB,EAAE,iCAAe,CAAC,gBAAgB,CAAC,gDAAgD,CAAC;YACrG,OAAO,eAAO,UAAU,CAAE;YAC1B,OAAO,EAAE,eAAe;SACxB,CAAC,CAAC;IACJ,CAAC;IACF,2BAAC;AAAD,CAAC,AA7FD,CAAkD,yCAAmB,GA6FpE"}
|
|
@@ -8,11 +8,11 @@ export declare class ServiceAreaApi {
|
|
|
8
8
|
private readonly serviceAreaStore;
|
|
9
9
|
private readonly serviceAreaService;
|
|
10
10
|
private readonly storableDataService;
|
|
11
|
-
loadAll: (options?: DataOptions) => Promise<ServiceAreaModel[]>;
|
|
12
|
-
create: (request: CreateServiceAreaRequest) => Promise<ServiceArea>;
|
|
13
|
-
update: (id: number, request: UpdateServiceAreaRequest) => Promise<ServiceArea>;
|
|
14
|
-
delete: (id: number) => Promise<BasicResponse>;
|
|
15
11
|
constructor(session: Session);
|
|
12
|
+
loadAll(options?: DataOptions): Promise<ServiceAreaModel[]>;
|
|
13
|
+
create(request: CreateServiceAreaRequest): Promise<ServiceArea>;
|
|
14
|
+
update(id: number, request: UpdateServiceAreaRequest): Promise<ServiceArea>;
|
|
15
|
+
delete(id: number): Promise<BasicResponse>;
|
|
16
16
|
loadAllByTeams(request: LoadAllServiceAreasByTeamsRequest, options?: DataOptions): Promise<ServiceArea[]>;
|
|
17
17
|
assign(id: number, userId: number): Promise<BasicResponse>;
|
|
18
18
|
unassignUser(userId: number): Promise<BasicResponse>;
|
|
@@ -50,7 +50,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50
50
|
exports.ServiceAreaApi = void 0;
|
|
51
51
|
var data_entity_1 = require("../../data-entity");
|
|
52
52
|
var data_store_1 = require("../../data-store");
|
|
53
|
-
var storable_api_builder_1 = require("../../storable-api-builder");
|
|
54
53
|
var storable_data_service_1 = require("../../storable-data-service");
|
|
55
54
|
var service_area_consts_1 = require("./service-area.consts");
|
|
56
55
|
var service_area_service_1 = require("./service-area-service");
|
|
@@ -65,13 +64,42 @@ var ServiceAreaApi = /** @class */ (function () {
|
|
|
65
64
|
this.serviceAreaStore = new data_store_1.default(groupFilters);
|
|
66
65
|
this.serviceAreaService = new service_area_service_1.default(session);
|
|
67
66
|
this.storableDataService = new storable_data_service_1.default(this.serviceAreaStore);
|
|
68
|
-
Object.assign(this, storable_api_builder_1.default.build(this.storableDataService, this.serviceAreaService, {
|
|
69
|
-
modify: ['update', 'create'],
|
|
70
|
-
delete: ['delete'],
|
|
71
|
-
load: ['load'],
|
|
72
|
-
loadAll: ['loadAll']
|
|
73
|
-
}));
|
|
74
67
|
}
|
|
68
|
+
ServiceAreaApi.prototype.loadAll = function (options) {
|
|
69
|
+
var _this = this;
|
|
70
|
+
return this.storableDataService.loadAll('loadAll', function () { return _this.serviceAreaService.loadAll(options); }, options);
|
|
71
|
+
};
|
|
72
|
+
ServiceAreaApi.prototype.create = function (request) {
|
|
73
|
+
var _this = this;
|
|
74
|
+
return this.storableDataService.modify('create', function () { return _this.serviceAreaService.create(request); });
|
|
75
|
+
};
|
|
76
|
+
ServiceAreaApi.prototype.update = function (id, request) {
|
|
77
|
+
var _this = this;
|
|
78
|
+
return this.storableDataService.modify('update', function () { return _this.serviceAreaService.update(id, request); });
|
|
79
|
+
};
|
|
80
|
+
ServiceAreaApi.prototype.delete = function (id) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var response;
|
|
83
|
+
var _this = this;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0: return [4 /*yield*/, this.storableDataService.delete('delete', function () { return __awaiter(_this, void 0, void 0, function () {
|
|
87
|
+
return __generator(this, function (_a) {
|
|
88
|
+
switch (_a.label) {
|
|
89
|
+
case 0: return [4 /*yield*/, this.serviceAreaService.delete(id)];
|
|
90
|
+
case 1:
|
|
91
|
+
response = _a.sent();
|
|
92
|
+
return [2 /*return*/];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}); }, id)];
|
|
96
|
+
case 1:
|
|
97
|
+
_a.sent();
|
|
98
|
+
return [2 /*return*/, response];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
75
103
|
ServiceAreaApi.prototype.loadAllByTeams = function (request, options) {
|
|
76
104
|
if (options === void 0) { options = data_entity_1.DEFAULT_OPTIONS; }
|
|
77
105
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-area-api.js","sourceRoot":"","sources":["../../../src/ServiceArea/v2/service-area-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,
|
|
1
|
+
{"version":3,"file":"service-area-api.js","sourceRoot":"","sources":["../../../src/ServiceArea/v2/service-area-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iDAA6E;AAC7E,+CAAyC;AAEzC,qEAA8D;AAE9D,6DAK+B;AAC/B,+DAAwD;AAExD;IAKC,wBAAY,OAAgB;QAC3B,IAAM,YAAY,GAAG;YACpB;gBACC,SAAS,EAAE,6CAAuB,CAAC,KAAK;gBACxC,OAAO,EAAE,UAAC,WAA6B,IAAK,OAAA,WAAW,CAAC,QAAQ,EAApB,CAAoB;aAChE;SACD,CAAC;QAEF,IAAI,CAAC,gBAAgB,GAAG,IAAI,oBAAS,CAAmB,YAAY,CAAC,CAAC;QACtE,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,mBAAmB,GAAG,IAAI,+BAAmB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3E,CAAC;IAE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A1E,CAA0E,wBAC9F,OAAO,KAAE,SAAS,EAAE,6CAAuB,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,SAAS,IACrF,EAAA;4BAJD,sBAAO,SAIN,EAAC;;;;KACF;IAEY,+BAAM,GAAnB,UAAoB,EAAU,EAAE,MAAc;;;gBAC7C,sBAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,EAAC;;;KAClD;IAEY,qCAAY,GAAzB,UAA0B,MAAc;;;gBACvC,sBAAO,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAC;;;KAChD;IAEM,4BAAG,GAAV,UAAW,EAAU;QACpB,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAEM,iCAAQ,GAAf,UAAgB,GAAa;QAA7B,iBAEC;QADA,OAAO,GAAG,CAAC,GAAG,CAAC,UAAA,EAAE,IAAI,OAAA,KAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAZ,CAAY,CAAC,CAAC;IACpC,CAAC;IAEM,+BAAM,GAAb;QACC,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACvC,CAAC;IAEM,kCAAS,GAAhB;QACC,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;IACnC,CAAC;IAEM,iCAAQ,GAAf,UAAgB,KAA8B,EAAE,UAAsB;QACrE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC1D,CAAC;IACF,qBAAC;AAAD,CAAC,AA/ED,IA+EC;AA/EY,wCAAc"}
|
|
@@ -53,7 +53,7 @@ var lodash_1 = require("lodash");
|
|
|
53
53
|
var BringgException_1 = require("../Core/BringgException");
|
|
54
54
|
var Logger_1 = require("../Core/Logger");
|
|
55
55
|
var abort_1 = require("../utils/abort");
|
|
56
|
-
var version = '8.
|
|
56
|
+
var version = '8.22.0-pre';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -6,12 +6,12 @@ export default class TaskRejectReasonsApi<T extends DataEntity> {
|
|
|
6
6
|
private readonly taskRejectReasonsStore;
|
|
7
7
|
private readonly taskRejectReasonsService;
|
|
8
8
|
private readonly storableDataService;
|
|
9
|
-
loadAll: <T extends DataEntity>(options?: DataOptions) => Promise<T[]>;
|
|
10
|
-
delete: (id: number, commonOption?: CommonOptions) => Promise<void>;
|
|
11
|
-
update: (id: number, taskRejectReason: UpdateTaskRejectReasonRequest, commonOption?: CommonOptions) => Promise<T>;
|
|
12
|
-
patch: (id: number, taskRejectReason: PatchTaskRejectReasonRequest, commonOption?: CommonOptions) => Promise<T>;
|
|
13
|
-
create: (taskRejectReason: CreateTaskRejectReasonRequest, commonOption?: CommonOptions) => Promise<T>;
|
|
14
9
|
constructor(session: Session, mapper: StorableItemMapper<T, TaskRejectReasonResponse>);
|
|
10
|
+
loadAll(options?: DataOptions): Promise<T[]>;
|
|
11
|
+
delete(id: number, commonOption?: CommonOptions): Promise<void>;
|
|
12
|
+
update(id: number, taskRejectReason: UpdateTaskRejectReasonRequest, commonOption?: CommonOptions): Promise<T>;
|
|
13
|
+
patch(id: number, taskRejectReason: PatchTaskRejectReasonRequest, commonOption?: CommonOptions): Promise<T>;
|
|
14
|
+
create(taskRejectReason: CreateTaskRejectReasonRequest, commonOption?: CommonOptions): Promise<T>;
|
|
15
15
|
get(id: number): T;
|
|
16
16
|
getAll(): T[];
|
|
17
17
|
removeAll(): void;
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
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;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
39
|
var data_store_1 = require("../../data-store");
|
|
4
|
-
var storable_api_builder_1 = require("../../storable-api-builder");
|
|
5
40
|
var storable_data_service_1 = require("../../storable-data-service");
|
|
6
41
|
var task_reject_reasons_service_1 = require("./task-reject-reasons-service");
|
|
7
42
|
var TaskRejectReasonsApi = /** @class */ (function () {
|
|
@@ -9,12 +44,42 @@ var TaskRejectReasonsApi = /** @class */ (function () {
|
|
|
9
44
|
this.taskRejectReasonsStore = new data_store_1.default();
|
|
10
45
|
this.taskRejectReasonsService = new task_reject_reasons_service_1.default(session);
|
|
11
46
|
this.storableDataService = new storable_data_service_1.default(this.taskRejectReasonsStore, mapper);
|
|
12
|
-
Object.assign(this, storable_api_builder_1.default.build(this.storableDataService, this.taskRejectReasonsService, {
|
|
13
|
-
modify: ['update', 'create', 'patch'],
|
|
14
|
-
delete: ['delete'],
|
|
15
|
-
loadAll: ['loadAll']
|
|
16
|
-
}));
|
|
17
47
|
}
|
|
48
|
+
TaskRejectReasonsApi.prototype.loadAll = function (options) {
|
|
49
|
+
var _this = this;
|
|
50
|
+
return this.storableDataService.loadAll('loadAll', function () { return _this.taskRejectReasonsService.loadAll(options); }, options);
|
|
51
|
+
};
|
|
52
|
+
TaskRejectReasonsApi.prototype.delete = function (id, commonOption) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
54
|
+
var _this = this;
|
|
55
|
+
return __generator(this, function (_a) {
|
|
56
|
+
switch (_a.label) {
|
|
57
|
+
case 0: return [4 /*yield*/, this.storableDataService.delete('delete', function () { return _this.taskRejectReasonsService.delete(id); }, id)];
|
|
58
|
+
case 1:
|
|
59
|
+
_a.sent();
|
|
60
|
+
return [2 /*return*/];
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
TaskRejectReasonsApi.prototype.update = function (id, taskRejectReason, commonOption) {
|
|
66
|
+
var _this = this;
|
|
67
|
+
return this.storableDataService.modify('update', function () {
|
|
68
|
+
return _this.taskRejectReasonsService.update(id, taskRejectReason, commonOption);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
TaskRejectReasonsApi.prototype.patch = function (id, taskRejectReason, commonOption) {
|
|
72
|
+
var _this = this;
|
|
73
|
+
return this.storableDataService.modify('patch', function () {
|
|
74
|
+
return _this.taskRejectReasonsService.patch(id, taskRejectReason, commonOption);
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
TaskRejectReasonsApi.prototype.create = function (taskRejectReason, commonOption) {
|
|
78
|
+
var _this = this;
|
|
79
|
+
return this.storableDataService.modify('create', function () {
|
|
80
|
+
return _this.taskRejectReasonsService.create(taskRejectReason, commonOption);
|
|
81
|
+
});
|
|
82
|
+
};
|
|
18
83
|
TaskRejectReasonsApi.prototype.get = function (id) {
|
|
19
84
|
return this.taskRejectReasonsStore.get(id);
|
|
20
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-reject-reasons-api.js","sourceRoot":"","sources":["../../../src/TaskRejectReason/v2/task-reject-reasons-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-reject-reasons-api.js","sourceRoot":"","sources":["../../../src/TaskRejectReason/v2/task-reject-reasons-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,+CAAyC;AAEzC,qEAA8D;AAC9D,6EAAqE;AAErE;IAKC,8BAAY,OAAgB,EAAE,MAAuD;QACpF,IAAI,CAAC,sBAAsB,GAAG,IAA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EAAE,YAA4B;QAA3F,iBAIC;QAHA,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE;YAChD,OAAA,KAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC;QAApE,CAAoE,CACpE,CAAC;IACH,CAAC;IAEM,kCAAG,GAAV,UAAW,EAAU;QACpB,OAAO,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IAEM,qCAAM,GAAb;QACC,OAAO,IAAI,CAAC,sBAAsB,CAAC,MAAM,EAAE,CAAC;IAC7C,CAAC;IAEM,wCAAS,GAAhB;QACC,IAAI,CAAC,sBAAsB,CAAC,SAAS,EAAE,CAAC;IACzC,CAAC;IACF,2BAAC;AAAD,CAAC,AAxDD,IAwDC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CreateTaskRejectReasonRequest,
|
|
1
|
+
import { CreateTaskRejectReasonRequest, PatchTaskRejectReasonRequest, TaskRejectReasonResponse, UpdateTaskRejectReasonRequest } from '@bringg/types';
|
|
2
2
|
import { DELETE_RESPONSE } from '../../Core/CrudService';
|
|
3
3
|
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
4
4
|
import Session from '../../Services/Identity/Session';
|
|
5
5
|
export default class TaskRejectReasonsService {
|
|
6
6
|
private readonly service;
|
|
7
7
|
constructor(session: Session);
|
|
8
|
-
loadAll(commonOptions?: CommonOptions): Promise<
|
|
8
|
+
loadAll(commonOptions?: CommonOptions): Promise<TaskRejectReasonResponse[]>;
|
|
9
9
|
delete(id: number, commonOptions?: CommonOptions): Promise<DELETE_RESPONSE>;
|
|
10
|
-
update(id: number, taskRejectReason: UpdateTaskRejectReasonRequest, commonOptions?: CommonOptions): Promise<
|
|
11
|
-
patch(id: number, taskRejectReason: PatchTaskRejectReasonRequest, commonOptions?: CommonOptions): Promise<
|
|
12
|
-
create(taskRejectReason: CreateTaskRejectReasonRequest, commonOptions?: CommonOptions): Promise<
|
|
10
|
+
update(id: number, taskRejectReason: UpdateTaskRejectReasonRequest, commonOptions?: CommonOptions): Promise<TaskRejectReasonResponse>;
|
|
11
|
+
patch(id: number, taskRejectReason: PatchTaskRejectReasonRequest, commonOptions?: CommonOptions): Promise<TaskRejectReasonResponse>;
|
|
12
|
+
create(taskRejectReason: CreateTaskRejectReasonRequest, commonOptions?: CommonOptions): Promise<TaskRejectReasonResponse>;
|
|
13
13
|
}
|