@bringg/dashboard-sdk 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +4 -3
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.js +17 -5
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.d.ts +10 -0
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js +7 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +27 -8
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +4 -4
- package/dist/bringg-dashboard-sdk.min.js +3 -3
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- 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 } from './planned-delivery-windows.consts';
|
|
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;
|
|
@@ -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) => Promise<PlannedDeliveryWindow>;
|
|
13
|
-
update: (id: number,
|
|
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
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,qFAI2C;AAC3C,kEAA2D;AAC3D,gEAAyD;AAEzD;IAyBC,mCAAY,OAAgB;QAC3B,IAAM,YAAY,GAAG;YACpB;gBACC,SAAS,EAAE,oEAAkC,CAAC,IAAI;gBAClD,OAAO,EAAE,UAAC,cAAqC,IAAK,OAAA,cAAc,CAAC,OAAO,EAAtB,CAAsB;aAC1E;SACD,CAAC;QACF,IAAI,CAAC,oBAAoB,G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,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;IACF,gCAAC;AAAD,CAAC,AAlFD,IAkFC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DELETE_RESPONSE } from '../Core/CrudService';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
-
import { PlannedDeliveryWindow } from './planned-delivery-windows.consts';
|
|
3
|
+
import { PlannedDeliveryWindow, RecurrenceOptions } 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;
|
|
7
8
|
};
|
|
8
9
|
export default class PlannedDeliveryWindowsService {
|
|
9
10
|
private readonly service;
|
|
@@ -12,6 +13,6 @@ export default class PlannedDeliveryWindowsService {
|
|
|
12
13
|
loadAllWithoutTeam(startTime: string, endTime: string): Promise<PlannedDeliveryWindow[]>;
|
|
13
14
|
loadAllByTeam(teamId: number, startTime: string, endTime: string): Promise<PlannedDeliveryWindow[]>;
|
|
14
15
|
create(deliveryWindows: Partial<PlannedDeliveryWindow>[]): Promise<PlannedDeliveryWindow[]>;
|
|
15
|
-
update(id: number,
|
|
16
|
-
delete(id: number): Promise<DELETE_RESPONSE>;
|
|
16
|
+
update(id: number, plannedDeliveryWindow: Partial<PlannedDeliveryWindow>, recurrenceOptions?: RecurrenceOptions): Promise<PlannedDeliveryWindow>;
|
|
17
|
+
delete(id: number, recurrenceOptions?: RecurrenceOptions): Promise<DELETE_RESPONSE>;
|
|
17
18
|
}
|
|
@@ -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) {
|
|
@@ -43,7 +54,8 @@ var prefix = 'merchant';
|
|
|
43
54
|
var baseRoute = "/".concat(prefix, "/").concat(entityName);
|
|
44
55
|
exports.Routes = {
|
|
45
56
|
GET_BY_TEAM: "".concat(baseRoute, "?team_id={:teamId}"),
|
|
46
|
-
GET_ALL:
|
|
57
|
+
GET_ALL: baseRoute,
|
|
58
|
+
UPDATE: "".concat(baseRoute, "/{:id}")
|
|
47
59
|
};
|
|
48
60
|
var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
49
61
|
function PlannedDeliveryWindowsService(session) {
|
|
@@ -110,12 +122,12 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
110
122
|
});
|
|
111
123
|
});
|
|
112
124
|
};
|
|
113
|
-
PlannedDeliveryWindowsService.prototype.update = function (id,
|
|
125
|
+
PlannedDeliveryWindowsService.prototype.update = function (id, plannedDeliveryWindow, recurrenceOptions) {
|
|
114
126
|
return __awaiter(this, void 0, void 0, function () {
|
|
115
127
|
var result;
|
|
116
128
|
return __generator(this, function (_a) {
|
|
117
129
|
switch (_a.label) {
|
|
118
|
-
case 0: return [4 /*yield*/, this.service.update(id,
|
|
130
|
+
case 0: return [4 /*yield*/, this.service.update(id, __assign({ planned_delivery_window: plannedDeliveryWindow }, recurrenceOptions))];
|
|
119
131
|
case 1:
|
|
120
132
|
result = _a.sent();
|
|
121
133
|
return [2 /*return*/, result.planned_delivery_window];
|
|
@@ -123,10 +135,10 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
123
135
|
});
|
|
124
136
|
});
|
|
125
137
|
};
|
|
126
|
-
PlannedDeliveryWindowsService.prototype.delete = function (id) {
|
|
138
|
+
PlannedDeliveryWindowsService.prototype.delete = function (id, recurrenceOptions) {
|
|
127
139
|
return __awaiter(this, void 0, void 0, function () {
|
|
128
140
|
return __generator(this, function (_a) {
|
|
129
|
-
return [2 /*return*/, this.service.delete(id)];
|
|
141
|
+
return [2 /*return*/, this.service.delete(id, recurrenceOptions)];
|
|
130
142
|
});
|
|
131
143
|
});
|
|
132
144
|
};
|
|
@@ -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;AASnE,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,SAAS;IAClB,MAAM,EAAE,UAAG,SAAS,WAAQ;CAC5B,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,UA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AAnB,UAAoB,EAAU,EAAE,iBAAqC;;;gBACpE,sBAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAC;;;KAClD;IACF,oCAAC;AAAD,CAAC,AAnDD,IAmDC"}
|
|
@@ -23,3 +23,13 @@ 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,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlannedDeliveryWindowsFilterGroups = void 0;
|
|
3
|
+
exports.RecurrenceType = 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 = {}));
|
|
8
14
|
//# 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;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,iEAA+C,CAAA;IAC/C,6BAAW,CAAA;AACZ,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
|
|
@@ -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.3.
|
|
56
|
+
var version = '4.3.2';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -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.3.
|
|
35592
|
+
var version = '4.3.2';
|
|
35593
35593
|
function logErrorResponse(response) {
|
|
35594
35594
|
var data = response.data, status = response.status;
|
|
35595
35595
|
try {
|
|
@@ -44517,11 +44517,17 @@ exports.default = PlannedDeliveryWindowsApi;
|
|
|
44517
44517
|
"use strict";
|
|
44518
44518
|
|
|
44519
44519
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44520
|
-
exports.PlannedDeliveryWindowsFilterGroups = void 0;
|
|
44520
|
+
exports.RecurrenceType = 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 = {}));
|
|
44525
44531
|
//# sourceMappingURL=planned-delivery-windows.consts.js.map
|
|
44526
44532
|
|
|
44527
44533
|
/***/ }),
|
|
@@ -61330,7 +61336,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
61330
61336
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
61331
61337
|
};
|
|
61332
61338
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61333
|
-
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;
|
|
61339
|
+
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.RecurrenceType = 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;
|
|
61334
61340
|
__exportStar(__webpack_require__(56), exports);
|
|
61335
61341
|
var BringgDashboardSDK_1 = __webpack_require__(56);
|
|
61336
61342
|
Object.defineProperty(exports, "BringgDashboardSDK", { enumerable: true, get: function () { return BringgDashboardSDK_1.BringgDashboardSDK; } });
|
|
@@ -61363,6 +61369,7 @@ Object.defineProperty(exports, "TaskGroupValues", { enumerable: true, get: funct
|
|
|
61363
61369
|
Object.defineProperty(exports, "TaskGroupTypes", { enumerable: true, get: function () { return Tasks_consts_1.TaskGroupTypes; } });
|
|
61364
61370
|
var planned_delivery_windows_consts_1 = __webpack_require__(200);
|
|
61365
61371
|
Object.defineProperty(exports, "PlannedDeliveryWindowsFilterGroups", { enumerable: true, get: function () { return planned_delivery_windows_consts_1.PlannedDeliveryWindowsFilterGroups; } });
|
|
61372
|
+
Object.defineProperty(exports, "RecurrenceType", { enumerable: true, get: function () { return planned_delivery_windows_consts_1.RecurrenceType; } });
|
|
61366
61373
|
var service_area_consts_1 = __webpack_require__(193);
|
|
61367
61374
|
Object.defineProperty(exports, "ServiceAreaFilterGroups", { enumerable: true, get: function () { return service_area_consts_1.ServiceAreaFilterGroups; } });
|
|
61368
61375
|
var planned_delivery_windows_api_1 = __webpack_require__(199);
|
|
@@ -92918,6 +92925,17 @@ exports.Routes = {
|
|
|
92918
92925
|
|
|
92919
92926
|
"use strict";
|
|
92920
92927
|
|
|
92928
|
+
var __assign = (this && this.__assign) || function () {
|
|
92929
|
+
__assign = Object.assign || function(t) {
|
|
92930
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
92931
|
+
s = arguments[i];
|
|
92932
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
92933
|
+
t[p] = s[p];
|
|
92934
|
+
}
|
|
92935
|
+
return t;
|
|
92936
|
+
};
|
|
92937
|
+
return __assign.apply(this, arguments);
|
|
92938
|
+
};
|
|
92921
92939
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
92922
92940
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
92923
92941
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -92962,7 +92980,8 @@ var prefix = 'merchant';
|
|
|
92962
92980
|
var baseRoute = "/".concat(prefix, "/").concat(entityName);
|
|
92963
92981
|
exports.Routes = {
|
|
92964
92982
|
GET_BY_TEAM: "".concat(baseRoute, "?team_id={:teamId}"),
|
|
92965
|
-
GET_ALL:
|
|
92983
|
+
GET_ALL: baseRoute,
|
|
92984
|
+
UPDATE: "".concat(baseRoute, "/{:id}")
|
|
92966
92985
|
};
|
|
92967
92986
|
var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
92968
92987
|
function PlannedDeliveryWindowsService(session) {
|
|
@@ -93029,12 +93048,12 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
93029
93048
|
});
|
|
93030
93049
|
});
|
|
93031
93050
|
};
|
|
93032
|
-
PlannedDeliveryWindowsService.prototype.update = function (id,
|
|
93051
|
+
PlannedDeliveryWindowsService.prototype.update = function (id, plannedDeliveryWindow, recurrenceOptions) {
|
|
93033
93052
|
return __awaiter(this, void 0, void 0, function () {
|
|
93034
93053
|
var result;
|
|
93035
93054
|
return __generator(this, function (_a) {
|
|
93036
93055
|
switch (_a.label) {
|
|
93037
|
-
case 0: return [4 /*yield*/, this.service.update(id,
|
|
93056
|
+
case 0: return [4 /*yield*/, this.service.update(id, __assign({ planned_delivery_window: plannedDeliveryWindow }, recurrenceOptions))];
|
|
93038
93057
|
case 1:
|
|
93039
93058
|
result = _a.sent();
|
|
93040
93059
|
return [2 /*return*/, result.planned_delivery_window];
|
|
@@ -93042,10 +93061,10 @@ var PlannedDeliveryWindowsService = /** @class */ (function () {
|
|
|
93042
93061
|
});
|
|
93043
93062
|
});
|
|
93044
93063
|
};
|
|
93045
|
-
PlannedDeliveryWindowsService.prototype.delete = function (id) {
|
|
93064
|
+
PlannedDeliveryWindowsService.prototype.delete = function (id, recurrenceOptions) {
|
|
93046
93065
|
return __awaiter(this, void 0, void 0, function () {
|
|
93047
93066
|
return __generator(this, function (_a) {
|
|
93048
|
-
return [2 /*return*/, this.service.delete(id)];
|
|
93067
|
+
return [2 /*return*/, this.service.delete(id, recurrenceOptions)];
|
|
93049
93068
|
});
|
|
93050
93069
|
});
|
|
93051
93070
|
};
|