@bringg/dashboard-sdk 4.2.3-pre.3 → 4.2.3
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/PlannedDeliveryWindows/planned-delivery-windows-api.d.ts +4 -4
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-api.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.d.ts +3 -4
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.js +5 -17
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.d.ts +0 -10
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js +1 -7
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/TeamServiceArea/Entity/TeamServiceAreaEntity.d.ts +1 -1
- package/dist/TeamServiceArea/Entity/TeamServiceAreaEntity.js +2 -2
- package/dist/TeamServiceArea/Entity/TeamServiceAreaEntity.js.map +1 -1
- package/dist/TeamServiceArea/TeamServiceAreaApi.d.ts +1 -1
- package/dist/TeamServiceArea/TeamServiceAreaApi.js +2 -2
- package/dist/TeamServiceArea/TeamServiceAreaApi.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +12 -31
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +6 -6
- package/dist/bringg-dashboard-sdk.min.js +4 -4
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Session from '../Services/Identity/Session';
|
|
2
2
|
import { DataEntity, DataOptions, GroupValue } from '../data-entity';
|
|
3
|
-
import { PlannedDeliveryWindow, PlannedDeliveryWindowsFilterGroups
|
|
3
|
+
import { PlannedDeliveryWindow, PlannedDeliveryWindowsFilterGroups } from './planned-delivery-windows.consts';
|
|
4
4
|
export default class PlannedDeliveryWindowsApi {
|
|
5
5
|
private readonly deliveryWindowsStore;
|
|
6
6
|
private readonly deliveryWindowsService;
|
|
@@ -8,9 +8,9 @@ export default class PlannedDeliveryWindowsApi {
|
|
|
8
8
|
load: <T extends DataEntity>(id: number, options?: DataOptions) => Promise<PlannedDeliveryWindow>;
|
|
9
9
|
loadAllWithoutTeam: <T extends DataEntity>(startTime: string, endTime: string, options?: DataOptions) => Promise<PlannedDeliveryWindow[]>;
|
|
10
10
|
loadAllByTeam: <T extends DataEntity>(teamId: number, startTime: string, endTime: string, options?: DataOptions) => Promise<PlannedDeliveryWindow[]>;
|
|
11
|
-
create: (
|
|
12
|
-
delete: (id: number
|
|
13
|
-
update: (id: number,
|
|
11
|
+
create: (deliveryWindowsData: Partial<PlannedDeliveryWindow>[]) => Promise<PlannedDeliveryWindow[]>;
|
|
12
|
+
delete: (id: number) => Promise<PlannedDeliveryWindow>;
|
|
13
|
+
update: (id: number, deliveryWindow: Partial<PlannedDeliveryWindow>) => Promise<PlannedDeliveryWindow>;
|
|
14
14
|
constructor(session: Session);
|
|
15
15
|
get(id: number): PlannedDeliveryWindow;
|
|
16
16
|
getAll(): PlannedDeliveryWindow[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-delivery-windows-api.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows-api.ts"],"names":[],"mappings":";;AAEA,4CAAsC;AACtC,uFAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"planned-delivery-windows-api.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows-api.ts"],"names":[],"mappings":";;AAEA,4CAAsC;AACtC,uFAA+E;AAC/E,qFAA8G;AAC9G,kEAA2D;AAC3D,gEAAyD;AAEzD;IAqBC,mCAAY,OAAgB;QAC3B,IAAM,YAAY,GAA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6CAAS,GAAhB;QACC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC;IACvC,CAAC;IAEM,4CAAQ,GAAf,UAAgB,KAAyC,EAAE,UAAsB;QAChF,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;IACF,gCAAC;AAAD,CAAC,AA9ED,IA8EC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DELETE_RESPONSE } from '../Core/CrudService';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
-
import { PlannedDeliveryWindow
|
|
3
|
+
import { PlannedDeliveryWindow } from './planned-delivery-windows.consts';
|
|
4
4
|
export declare const Routes: {
|
|
5
5
|
GET_BY_TEAM: string;
|
|
6
6
|
GET_ALL: string;
|
|
7
|
-
UPDATE: string;
|
|
8
7
|
};
|
|
9
8
|
export default class PlannedDeliveryWindowsService {
|
|
10
9
|
private readonly service;
|
|
@@ -13,6 +12,6 @@ export default class PlannedDeliveryWindowsService {
|
|
|
13
12
|
loadAllWithoutTeam(startTime: string, endTime: string): Promise<PlannedDeliveryWindow[]>;
|
|
14
13
|
loadAllByTeam(teamId: number, startTime: string, endTime: string): Promise<PlannedDeliveryWindow[]>;
|
|
15
14
|
create(deliveryWindows: Partial<PlannedDeliveryWindow>[]): Promise<PlannedDeliveryWindow[]>;
|
|
16
|
-
update(id: number,
|
|
17
|
-
delete(id: number
|
|
15
|
+
update(id: number, deliveryWindow: Partial<PlannedDeliveryWindow>): Promise<PlannedDeliveryWindow>;
|
|
16
|
+
delete(id: number): Promise<DELETE_RESPONSE>;
|
|
18
17
|
}
|
|
@@ -1,15 +1,4 @@
|
|
|
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
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -54,8 +43,7 @@ var prefix = 'merchant';
|
|
|
54
43
|
var baseRoute = "/".concat(prefix, "/").concat(entityName);
|
|
55
44
|
exports.Routes = {
|
|
56
45
|
GET_BY_TEAM: "".concat(baseRoute, "?team_id={:teamId}"),
|
|
57
|
-
GET_ALL: baseRoute
|
|
58
|
-
UPDATE: "".concat(baseRoute, "/{:id}")
|
|
46
|
+
GET_ALL: "".concat(baseRoute)
|
|
59
47
|
};
|
|
60
48
|
var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
61
49
|
function PlannedDeliveryWindowsService(session) {
|
|
@@ -122,12 +110,12 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
122
110
|
});
|
|
123
111
|
});
|
|
124
112
|
};
|
|
125
|
-
PlannedDeliveryWindowsService.prototype.update = function (id,
|
|
113
|
+
PlannedDeliveryWindowsService.prototype.update = function (id, deliveryWindow) {
|
|
126
114
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
115
|
var result;
|
|
128
116
|
return __generator(this, function (_a) {
|
|
129
117
|
switch (_a.label) {
|
|
130
|
-
case 0: return [4 /*yield*/, this.service.update(id,
|
|
118
|
+
case 0: return [4 /*yield*/, this.service.update(id, deliveryWindow)];
|
|
131
119
|
case 1:
|
|
132
120
|
result = _a.sent();
|
|
133
121
|
return [2 /*return*/, result.planned_delivery_window];
|
|
@@ -135,10 +123,10 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
135
123
|
});
|
|
136
124
|
});
|
|
137
125
|
};
|
|
138
|
-
PlannedDeliveryWindowsService.prototype.delete = function (id
|
|
126
|
+
PlannedDeliveryWindowsService.prototype.delete = function (id) {
|
|
139
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
128
|
return __generator(this, function (_a) {
|
|
141
|
-
return [2 /*return*/, this.service.delete(id
|
|
129
|
+
return [2 /*return*/, this.service.delete(id)];
|
|
142
130
|
});
|
|
143
131
|
});
|
|
144
132
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-delivery-windows-service.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"planned-delivery-windows-service.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmE;AAQnE,IAAM,UAAU,GAAG,0BAA0B,CAAC;AAC9C,IAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,IAAM,SAAS,GAAG,WAAI,MAAM,cAAI,UAAU,CAAE,CAAC;AAEhC,QAAA,MAAM,GAAG;IACrB,WAAW,EAAE,UAAG,SAAS,uBAAoB;IAC7C,OAAO,EAAE,UAAG,SAAS,CAAE;CACvB,CAAC;AAEF;IAGC,uCAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAEY,4CAAI,GAAjB,UAAkB,EAAU;;;;;4BACmB,qBAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAA;;wBAAlE,MAAM,GAAkC,SAA0B;wBACxE,sBAAO,MAAM,CAAC,uBAAuB,EAAC;;;;KACtC;IAEY,0DAAkB,GAA/B,UAAgC,SAAiB,EAAE,OAAe;;;;;4BAClB,qBA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AAC,EAAC;;;KAC/B;IACF,oCAAC;AAAD,CAAC,AA5CD,IA4CC"}
|
|
@@ -23,13 +23,3 @@ export type PlannedDeliveryWindowResponse = {
|
|
|
23
23
|
export declare enum PlannedDeliveryWindowsFilterGroups {
|
|
24
24
|
Team = "team_id"
|
|
25
25
|
}
|
|
26
|
-
export declare enum RecurrenceType {
|
|
27
|
-
current = "current",
|
|
28
|
-
current_and_following = "current_and_following",
|
|
29
|
-
all = "all"
|
|
30
|
-
}
|
|
31
|
-
export type RecurrenceOptions = {
|
|
32
|
-
recurrence_start_date: string;
|
|
33
|
-
recurrence_end_date: string;
|
|
34
|
-
recurrence_type: RecurrenceType;
|
|
35
|
-
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PlannedDeliveryWindowsFilterGroups = void 0;
|
|
4
4
|
var PlannedDeliveryWindowsFilterGroups;
|
|
5
5
|
(function (PlannedDeliveryWindowsFilterGroups) {
|
|
6
6
|
PlannedDeliveryWindowsFilterGroups["Team"] = "team_id";
|
|
7
7
|
})(PlannedDeliveryWindowsFilterGroups = exports.PlannedDeliveryWindowsFilterGroups || (exports.PlannedDeliveryWindowsFilterGroups = {}));
|
|
8
|
-
var RecurrenceType;
|
|
9
|
-
(function (RecurrenceType) {
|
|
10
|
-
RecurrenceType["current"] = "current";
|
|
11
|
-
RecurrenceType["current_and_following"] = "current_and_following";
|
|
12
|
-
RecurrenceType["all"] = "all";
|
|
13
|
-
})(RecurrenceType = exports.RecurrenceType || (exports.RecurrenceType = {}));
|
|
14
8
|
//# sourceMappingURL=planned-delivery-windows.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-delivery-windows.consts.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows.consts.ts"],"names":[],"mappings":";;;AAyBA,IAAY,kCAEX;AAFD,WAAY,kCAAkC;IAC7C,sDAAgB,CAAA;AACjB,CAAC,EAFW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAE7C
|
|
1
|
+
{"version":3,"file":"planned-delivery-windows.consts.js","sourceRoot":"","sources":["../../src/PlannedDeliveryWindows/planned-delivery-windows.consts.ts"],"names":[],"mappings":";;;AAyBA,IAAY,kCAEX;AAFD,WAAY,kCAAkC;IAC7C,sDAAgB,CAAA;AACjB,CAAC,EAFW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAE7C"}
|
|
@@ -53,7 +53,7 @@ var Logger_1 = require("../Core/Logger");
|
|
|
53
53
|
var lodash_1 = require("lodash");
|
|
54
54
|
var BringgException_1 = require("../Core/BringgException");
|
|
55
55
|
var abort_1 = require("../utils/abort");
|
|
56
|
-
var version = '4.2.3
|
|
56
|
+
var version = '4.2.3';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -3,5 +3,5 @@ import Session from '../../Services/Identity/Session';
|
|
|
3
3
|
import { InsertTeamServiceAreaRequest, InsertTeamServiceAreaResponse } from '../TeamServiceArea.consts';
|
|
4
4
|
export default class TeamServiceAreaEntity extends Entity<Bringg.TeamServiceArea> {
|
|
5
5
|
constructor(session: Session);
|
|
6
|
-
|
|
6
|
+
updateAll(request: InsertTeamServiceAreaRequest): Promise<InsertTeamServiceAreaResponse>;
|
|
7
7
|
}
|
|
@@ -25,8 +25,8 @@ var TeamServiceAreaEntity = /** @class */ (function (_super) {
|
|
|
25
25
|
routes: [Entity_1.BaseRoutes.GetAll]
|
|
26
26
|
}) || this;
|
|
27
27
|
}
|
|
28
|
-
TeamServiceAreaEntity.prototype.
|
|
29
|
-
return this.service.routeGenerator.put("/".concat(this.service.entityName, "/
|
|
28
|
+
TeamServiceAreaEntity.prototype.updateAll = function (request) {
|
|
29
|
+
return this.service.routeGenerator.put("/".concat(this.service.entityName, "/update_all")).withPayload(request).invoke();
|
|
30
30
|
};
|
|
31
31
|
return TeamServiceAreaEntity;
|
|
32
32
|
}(Entity_1.default));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamServiceAreaEntity.js","sourceRoot":"","sources":["../../../src/TeamServiceArea/Entity/TeamServiceAreaEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAAuD;AAIvD;IAAmD,yCAA8B;IAChF,+BAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,CAAC,mBAAU,CAAC,MAAM,CAAC;SAC3B,CAAC;IACH,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"TeamServiceAreaEntity.js","sourceRoot":"","sources":["../../../src/TeamServiceArea/Entity/TeamServiceAreaEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAAuD;AAIvD;IAAmD,yCAA8B;IAChF,+BAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,CAAC,mBAAU,CAAC,MAAM,CAAC;SAC3B,CAAC;IACH,CAAC;IAED,yCAAS,GAAT,UAAU,OAAqC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,WAAI,IAAI,CAAC,OAAO,CAAC,UAAU,gBAAa,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAChH,CAAC;IACF,4BAAC;AAAD,CAAC,AAZD,CAAmD,gBAAM,GAYxD"}
|
|
@@ -4,5 +4,5 @@ export default class TeamServiceAreaApi {
|
|
|
4
4
|
private teamServiceAreaEntity;
|
|
5
5
|
constructor(session: Session);
|
|
6
6
|
getAll(): Promise<GetAllTeamServiceAreasResponse>;
|
|
7
|
-
|
|
7
|
+
updateAll(request: InsertTeamServiceAreaRequest): Promise<InsertTeamServiceAreaResponse>;
|
|
8
8
|
}
|
|
@@ -8,8 +8,8 @@ var TeamServiceAreaApi = /** @class */ (function () {
|
|
|
8
8
|
TeamServiceAreaApi.prototype.getAll = function () {
|
|
9
9
|
return this.teamServiceAreaEntity.service.getAll();
|
|
10
10
|
};
|
|
11
|
-
TeamServiceAreaApi.prototype.
|
|
12
|
-
return this.teamServiceAreaEntity.
|
|
11
|
+
TeamServiceAreaApi.prototype.updateAll = function (request) {
|
|
12
|
+
return this.teamServiceAreaEntity.updateAll(request);
|
|
13
13
|
};
|
|
14
14
|
return TeamServiceAreaApi;
|
|
15
15
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamServiceAreaApi.js","sourceRoot":"","sources":["../../src/TeamServiceArea/TeamServiceAreaApi.ts"],"names":[],"mappings":";;AAMA,wEAAmE;AAEnE;IAGC,4BAAY,OAAgB;QAC3B,IAAI,CAAC,qBAAqB,GAAG,IAAI,+BAAqB,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEM,mCAAM,GAAb;QACC,OAAO,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IACpD,CAAC;IAEM,
|
|
1
|
+
{"version":3,"file":"TeamServiceAreaApi.js","sourceRoot":"","sources":["../../src/TeamServiceArea/TeamServiceAreaApi.ts"],"names":[],"mappings":";;AAMA,wEAAmE;AAEnE;IAGC,4BAAY,OAAgB;QAC3B,IAAI,CAAC,qBAAqB,GAAG,IAAI,+BAAqB,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEM,mCAAM,GAAb;QACC,OAAO,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IACpD,CAAC;IAEM,sCAAS,GAAhB,UAAiB,OAAqC;QACrD,OAAO,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IACF,yBAAC;AAAD,CAAC,AAdD,IAcC"}
|
|
@@ -35589,7 +35589,7 @@ var Logger_1 = __webpack_require__(48);
|
|
|
35589
35589
|
var lodash_1 = __webpack_require__(11);
|
|
35590
35590
|
var BringgException_1 = __webpack_require__(15);
|
|
35591
35591
|
var abort_1 = __webpack_require__(169);
|
|
35592
|
-
var version = '4.2.3
|
|
35592
|
+
var version = '4.2.3';
|
|
35593
35593
|
function logErrorResponse(response) {
|
|
35594
35594
|
var data = response.data, status = response.status;
|
|
35595
35595
|
try {
|
|
@@ -44517,17 +44517,11 @@ exports.default = PlannedDeliveryWindowsApi;
|
|
|
44517
44517
|
"use strict";
|
|
44518
44518
|
|
|
44519
44519
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44520
|
-
exports.
|
|
44520
|
+
exports.PlannedDeliveryWindowsFilterGroups = void 0;
|
|
44521
44521
|
var PlannedDeliveryWindowsFilterGroups;
|
|
44522
44522
|
(function (PlannedDeliveryWindowsFilterGroups) {
|
|
44523
44523
|
PlannedDeliveryWindowsFilterGroups["Team"] = "team_id";
|
|
44524
44524
|
})(PlannedDeliveryWindowsFilterGroups = exports.PlannedDeliveryWindowsFilterGroups || (exports.PlannedDeliveryWindowsFilterGroups = {}));
|
|
44525
|
-
var RecurrenceType;
|
|
44526
|
-
(function (RecurrenceType) {
|
|
44527
|
-
RecurrenceType["current"] = "current";
|
|
44528
|
-
RecurrenceType["current_and_following"] = "current_and_following";
|
|
44529
|
-
RecurrenceType["all"] = "all";
|
|
44530
|
-
})(RecurrenceType = exports.RecurrenceType || (exports.RecurrenceType = {}));
|
|
44531
44525
|
//# sourceMappingURL=planned-delivery-windows.consts.js.map
|
|
44532
44526
|
|
|
44533
44527
|
/***/ }),
|
|
@@ -61252,7 +61246,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
61252
61246
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
61253
61247
|
};
|
|
61254
61248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61255
|
-
exports.LookupConsts = exports.UploadApi = exports.AbortUtils = exports.RunsApi = exports.TaskRejectReasonsApi = exports.WorkflowsApi = exports.TasksApi = exports.VehiclesApi = exports.ServiceAreaApi = exports.ExclusionWindowsFilterGroups = exports.ExclusionWindowApiV2 = exports.PlannedDeliveryWindowsApi = exports.ServiceAreaFilterGroups = exports.
|
|
61249
|
+
exports.LookupConsts = exports.UploadApi = exports.AbortUtils = exports.RunsApi = exports.TaskRejectReasonsApi = exports.WorkflowsApi = exports.TasksApi = exports.VehiclesApi = exports.ServiceAreaApi = exports.ExclusionWindowsFilterGroups = exports.ExclusionWindowApiV2 = exports.PlannedDeliveryWindowsApi = exports.ServiceAreaFilterGroups = exports.PlannedDeliveryWindowsFilterGroups = exports.TaskGroupTypes = exports.TaskGroupValues = exports.VehicleGroup = exports.RunStatus = exports.ResourceUploadType = exports.UploadConsts = exports.DeliveryBlockConsts = exports.TagConsts = exports.Responses = exports.ChatConversationConsts = exports.ChatMessageConsts = exports.CrewConsts = exports.DashboardConsts = exports.LanguageConsts = exports.NotificationTemplateConsts = exports.NotificationTypesConsts = exports.PlannedRoutesConsts = exports.ReasonToChangeInventory = exports.RunConsts = exports.TaskInventoryConsts = exports.VehicleTypeConsts = exports.VehicleCategoryConsts = exports.BringgDashboardSDK = void 0;
|
|
61256
61250
|
__exportStar(__webpack_require__(56), exports);
|
|
61257
61251
|
var BringgDashboardSDK_1 = __webpack_require__(56);
|
|
61258
61252
|
Object.defineProperty(exports, "BringgDashboardSDK", { enumerable: true, get: function () { return BringgDashboardSDK_1.BringgDashboardSDK; } });
|
|
@@ -61285,7 +61279,6 @@ Object.defineProperty(exports, "TaskGroupValues", { enumerable: true, get: funct
|
|
|
61285
61279
|
Object.defineProperty(exports, "TaskGroupTypes", { enumerable: true, get: function () { return Tasks_consts_1.TaskGroupTypes; } });
|
|
61286
61280
|
var planned_delivery_windows_consts_1 = __webpack_require__(200);
|
|
61287
61281
|
Object.defineProperty(exports, "PlannedDeliveryWindowsFilterGroups", { enumerable: true, get: function () { return planned_delivery_windows_consts_1.PlannedDeliveryWindowsFilterGroups; } });
|
|
61288
|
-
Object.defineProperty(exports, "RecurrenceType", { enumerable: true, get: function () { return planned_delivery_windows_consts_1.RecurrenceType; } });
|
|
61289
61282
|
var service_area_consts_1 = __webpack_require__(193);
|
|
61290
61283
|
Object.defineProperty(exports, "ServiceAreaFilterGroups", { enumerable: true, get: function () { return service_area_consts_1.ServiceAreaFilterGroups; } });
|
|
61291
61284
|
var planned_delivery_windows_api_1 = __webpack_require__(199);
|
|
@@ -92847,17 +92840,6 @@ exports.Routes = {
|
|
|
92847
92840
|
|
|
92848
92841
|
"use strict";
|
|
92849
92842
|
|
|
92850
|
-
var __assign = (this && this.__assign) || function () {
|
|
92851
|
-
__assign = Object.assign || function(t) {
|
|
92852
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
92853
|
-
s = arguments[i];
|
|
92854
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
92855
|
-
t[p] = s[p];
|
|
92856
|
-
}
|
|
92857
|
-
return t;
|
|
92858
|
-
};
|
|
92859
|
-
return __assign.apply(this, arguments);
|
|
92860
|
-
};
|
|
92861
92843
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
92862
92844
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
92863
92845
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -92902,8 +92884,7 @@ var prefix = 'merchant';
|
|
|
92902
92884
|
var baseRoute = "/".concat(prefix, "/").concat(entityName);
|
|
92903
92885
|
exports.Routes = {
|
|
92904
92886
|
GET_BY_TEAM: "".concat(baseRoute, "?team_id={:teamId}"),
|
|
92905
|
-
GET_ALL: baseRoute
|
|
92906
|
-
UPDATE: "".concat(baseRoute, "/{:id}")
|
|
92887
|
+
GET_ALL: "".concat(baseRoute)
|
|
92907
92888
|
};
|
|
92908
92889
|
var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
92909
92890
|
function PlannedDeliveryWindowsService(session) {
|
|
@@ -92970,12 +92951,12 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
92970
92951
|
});
|
|
92971
92952
|
});
|
|
92972
92953
|
};
|
|
92973
|
-
PlannedDeliveryWindowsService.prototype.update = function (id,
|
|
92954
|
+
PlannedDeliveryWindowsService.prototype.update = function (id, deliveryWindow) {
|
|
92974
92955
|
return __awaiter(this, void 0, void 0, function () {
|
|
92975
92956
|
var result;
|
|
92976
92957
|
return __generator(this, function (_a) {
|
|
92977
92958
|
switch (_a.label) {
|
|
92978
|
-
case 0: return [4 /*yield*/, this.service.update(id,
|
|
92959
|
+
case 0: return [4 /*yield*/, this.service.update(id, deliveryWindow)];
|
|
92979
92960
|
case 1:
|
|
92980
92961
|
result = _a.sent();
|
|
92981
92962
|
return [2 /*return*/, result.planned_delivery_window];
|
|
@@ -92983,10 +92964,10 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
92983
92964
|
});
|
|
92984
92965
|
});
|
|
92985
92966
|
};
|
|
92986
|
-
PlannedDeliveryWindowsService.prototype.delete = function (id
|
|
92967
|
+
PlannedDeliveryWindowsService.prototype.delete = function (id) {
|
|
92987
92968
|
return __awaiter(this, void 0, void 0, function () {
|
|
92988
92969
|
return __generator(this, function (_a) {
|
|
92989
|
-
return [2 /*return*/, this.service.delete(id
|
|
92970
|
+
return [2 /*return*/, this.service.delete(id)];
|
|
92990
92971
|
});
|
|
92991
92972
|
});
|
|
92992
92973
|
};
|
|
@@ -107531,8 +107512,8 @@ var TeamServiceAreaApi = /** @class */ (function () {
|
|
|
107531
107512
|
TeamServiceAreaApi.prototype.getAll = function () {
|
|
107532
107513
|
return this.teamServiceAreaEntity.service.getAll();
|
|
107533
107514
|
};
|
|
107534
|
-
TeamServiceAreaApi.prototype.
|
|
107535
|
-
return this.teamServiceAreaEntity.
|
|
107515
|
+
TeamServiceAreaApi.prototype.updateAll = function (request) {
|
|
107516
|
+
return this.teamServiceAreaEntity.updateAll(request);
|
|
107536
107517
|
};
|
|
107537
107518
|
return TeamServiceAreaApi;
|
|
107538
107519
|
}());
|
|
@@ -107571,8 +107552,8 @@ var TeamServiceAreaEntity = /** @class */ (function (_super) {
|
|
|
107571
107552
|
routes: [Entity_1.BaseRoutes.GetAll]
|
|
107572
107553
|
}) || this;
|
|
107573
107554
|
}
|
|
107574
|
-
TeamServiceAreaEntity.prototype.
|
|
107575
|
-
return this.service.routeGenerator.put("/".concat(this.service.entityName, "/
|
|
107555
|
+
TeamServiceAreaEntity.prototype.updateAll = function (request) {
|
|
107556
|
+
return this.service.routeGenerator.put("/".concat(this.service.entityName, "/update_all")).withPayload(request).invoke();
|
|
107576
107557
|
};
|
|
107577
107558
|
return TeamServiceAreaEntity;
|
|
107578
107559
|
}(Entity_1.default));
|