@bringg/dashboard-sdk 1.9.0-pre → 1.9.0-pre-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.
@@ -4,6 +4,7 @@ import { TaskVehiclePair } from './Service/runs.service';
4
4
  import { ActualBreaksByRunIdResponse, RunBulkCloseResponse, RunDriverAssignmentResult, RunMarkDonePlanningResponse, RunsResponse, RunVehicleAssignmentResult } from './runs.consts';
5
5
  import RunStore from './Store/RunStore';
6
6
  import type { RunModel, RunQueryOptions, UpdateRunOptions, UpdateRunResponse } from './run-types';
7
+ import { CommonOptions } from '../Core/RouteGenerator';
7
8
  export default class Runs {
8
9
  private runsService;
9
10
  runStore: RunStore;
@@ -13,20 +14,20 @@ export default class Runs {
13
14
  onUpdate: (callback: any) => () => ((entity: RunModel) => void)[];
14
15
  onDelete: (callback: any) => () => ((entity: RunModel) => void)[];
15
16
  onCreate: (callback: any) => () => ((entity: RunModel) => void)[];
16
- loadAll(options: RunQueryOptions): Promise<RunModel[]>;
17
- load(id: number): Promise<RunModel>;
18
- forceLoad(id: number): Promise<RunModel>;
19
- get(id: number): Promise<Run>;
20
- getAll(options: RunQueryOptions): Promise<RunsResponse>;
21
- update(id: number, options: UpdateRunOptions): Promise<UpdateRunResponse>;
22
- getHistory(id: number): Promise<RunHistoryEvent[]>;
23
- getLocations(id: number): Promise<LocationEvent[]>;
24
- getCashout(id: number): Promise<number>;
25
- assignDriver(id: number, userId: number, targetRun: Partial<Run>): Promise<RunDriverAssignmentResult>;
26
- unassignDriver(id: number, userId: number): Promise<RunDriverAssignmentResult>;
27
- assignVehicles(id: number, vehicleId: number, tasks: TaskVehiclePair[]): Promise<RunVehicleAssignmentResult>;
28
- unassignVehicles(id: number): Promise<RunVehicleAssignmentResult>;
29
- bulkClose(runIds: number[]): Promise<RunBulkCloseResponse>;
30
- markDonePlanning(runIds: number[]): Promise<RunMarkDonePlanningResponse>;
31
- getActualBreaks(runIds: number[]): Promise<ActualBreaksByRunIdResponse>;
17
+ loadAll(options: RunQueryOptions, commonOptions?: CommonOptions): Promise<RunModel[]>;
18
+ load(id: number, commonOptions?: CommonOptions): Promise<RunModel>;
19
+ forceLoad(id: number, commonOptions?: CommonOptions): Promise<RunModel>;
20
+ get(id: number, commonOptions?: CommonOptions): Promise<Run>;
21
+ getAll(options: RunQueryOptions, commonOptions?: CommonOptions): Promise<RunsResponse>;
22
+ update(id: number, options: UpdateRunOptions, commonOptions?: CommonOptions): Promise<UpdateRunResponse>;
23
+ getHistory(id: number, commonOptions?: CommonOptions): Promise<RunHistoryEvent[]>;
24
+ getLocations(id: number, commonOptions?: CommonOptions): Promise<LocationEvent[]>;
25
+ getCashout(id: number, commonOptions?: CommonOptions): Promise<number>;
26
+ assignDriver(id: number, userId: number, targetRun: Partial<Run>, commonOptions?: CommonOptions): Promise<RunDriverAssignmentResult>;
27
+ unassignDriver(id: number, userId: number, commonOptions?: CommonOptions): Promise<RunDriverAssignmentResult>;
28
+ assignVehicles(id: number, vehicleId: number, tasks: TaskVehiclePair[], commonOptions?: CommonOptions): Promise<RunVehicleAssignmentResult>;
29
+ unassignVehicles(id: number, commonOptions?: CommonOptions): Promise<RunVehicleAssignmentResult>;
30
+ bulkClose(runIds: number[], commonOptions?: CommonOptions): Promise<RunBulkCloseResponse>;
31
+ markDonePlanning(runIds: number[], commonOptions?: CommonOptions): Promise<RunMarkDonePlanningResponse>;
32
+ getActualBreaks(runIds: number[], commonOptions?: CommonOptions): Promise<ActualBreaksByRunIdResponse>;
32
33
  }
package/dist/Run/runs.js CHANGED
@@ -70,7 +70,8 @@ var Runs = /** @class */ (function () {
70
70
  Runs.prototype.attachSubscriptions = function () {
71
71
  this.runStore.attachSubscriptions();
72
72
  };
73
- Runs.prototype.loadAll = function (options) {
73
+ Runs.prototype.loadAll = function (options, commonOptions) {
74
+ if (commonOptions === void 0) { commonOptions = {}; }
74
75
  return __awaiter(this, void 0, void 0, function () {
75
76
  var idsInCache, idsNotInCache, runs, runModels;
76
77
  var _this = this;
@@ -93,7 +94,7 @@ var Runs = /** @class */ (function () {
93
94
  return [2 /*return*/, this.runStore.store.getItemsByIds(options.ids)];
94
95
  }
95
96
  }
96
- return [4 /*yield*/, this.runsService.loadAll(__assign(__assign({ page: 1 }, options), { ids: idsNotInCache.length > 0 ? idsNotInCache : undefined }))];
97
+ return [4 /*yield*/, this.runsService.loadAll(__assign(__assign({ page: 1 }, options), { ids: idsNotInCache.length > 0 ? idsNotInCache : undefined }), commonOptions)];
97
98
  case 1:
98
99
  runs = _a.sent();
99
100
  runModels = this.runStore.setAll(runs);
@@ -102,7 +103,8 @@ var Runs = /** @class */ (function () {
102
103
  });
103
104
  });
104
105
  };
105
- Runs.prototype.load = function (id) {
106
+ Runs.prototype.load = function (id, commonOptions) {
107
+ if (commonOptions === void 0) { commonOptions = {}; }
106
108
  return __awaiter(this, void 0, void 0, function () {
107
109
  var runModel;
108
110
  return __generator(this, function (_a) {
@@ -112,18 +114,19 @@ var Runs = /** @class */ (function () {
112
114
  if (runModel) {
113
115
  return [2 /*return*/, runModel];
114
116
  }
115
- return [4 /*yield*/, this.forceLoad(id)];
117
+ return [4 /*yield*/, this.forceLoad(id, commonOptions)];
116
118
  case 1: return [2 /*return*/, _a.sent()];
117
119
  }
118
120
  });
119
121
  });
120
122
  };
121
- Runs.prototype.forceLoad = function (id) {
123
+ Runs.prototype.forceLoad = function (id, commonOptions) {
124
+ if (commonOptions === void 0) { commonOptions = {}; }
122
125
  return __awaiter(this, void 0, void 0, function () {
123
126
  var run;
124
127
  return __generator(this, function (_a) {
125
128
  switch (_a.label) {
126
- case 0: return [4 /*yield*/, this.runsService.get(id)];
129
+ case 0: return [4 /*yield*/, this.runsService.get(id, commonOptions)];
127
130
  case 1:
128
131
  run = _a.sent();
129
132
  return [2 /*return*/, this.runStore.set(run)];
@@ -131,131 +134,144 @@ var Runs = /** @class */ (function () {
131
134
  });
132
135
  });
133
136
  };
134
- Runs.prototype.get = function (id) {
137
+ Runs.prototype.get = function (id, commonOptions) {
138
+ if (commonOptions === void 0) { commonOptions = {}; }
135
139
  return __awaiter(this, void 0, void 0, function () {
136
140
  return __generator(this, function (_a) {
137
141
  switch (_a.label) {
138
- case 0: return [4 /*yield*/, this.runsService.get(id)];
142
+ case 0: return [4 /*yield*/, this.runsService.get(id, commonOptions)];
139
143
  case 1: return [2 /*return*/, _a.sent()];
140
144
  }
141
145
  });
142
146
  });
143
147
  };
144
- Runs.prototype.getAll = function (options) {
148
+ Runs.prototype.getAll = function (options, commonOptions) {
149
+ if (commonOptions === void 0) { commonOptions = {}; }
145
150
  return __awaiter(this, void 0, void 0, function () {
146
151
  return __generator(this, function (_a) {
147
152
  switch (_a.label) {
148
- case 0: return [4 /*yield*/, this.runsService.getAll(options)];
153
+ case 0: return [4 /*yield*/, this.runsService.getAll(options, commonOptions)];
149
154
  case 1: return [2 /*return*/, _a.sent()];
150
155
  }
151
156
  });
152
157
  });
153
158
  };
154
- Runs.prototype.update = function (id, options) {
159
+ Runs.prototype.update = function (id, options, commonOptions) {
160
+ if (commonOptions === void 0) { commonOptions = {}; }
155
161
  return __awaiter(this, void 0, void 0, function () {
156
162
  return __generator(this, function (_a) {
157
163
  switch (_a.label) {
158
- case 0: return [4 /*yield*/, this.runsService.update(id, options)];
164
+ case 0: return [4 /*yield*/, this.runsService.update(id, options, commonOptions)];
159
165
  case 1: return [2 /*return*/, _a.sent()];
160
166
  }
161
167
  });
162
168
  });
163
169
  };
164
- Runs.prototype.getHistory = function (id) {
170
+ Runs.prototype.getHistory = function (id, commonOptions) {
171
+ if (commonOptions === void 0) { commonOptions = {}; }
165
172
  return __awaiter(this, void 0, void 0, function () {
166
173
  return __generator(this, function (_a) {
167
174
  switch (_a.label) {
168
- case 0: return [4 /*yield*/, this.runsService.getHistory(id)];
175
+ case 0: return [4 /*yield*/, this.runsService.getHistory(id, commonOptions)];
169
176
  case 1: return [2 /*return*/, _a.sent()];
170
177
  }
171
178
  });
172
179
  });
173
180
  };
174
- Runs.prototype.getLocations = function (id) {
181
+ Runs.prototype.getLocations = function (id, commonOptions) {
182
+ if (commonOptions === void 0) { commonOptions = {}; }
175
183
  return __awaiter(this, void 0, void 0, function () {
176
184
  return __generator(this, function (_a) {
177
185
  switch (_a.label) {
178
- case 0: return [4 /*yield*/, this.runsService.getLocations(id)];
186
+ case 0: return [4 /*yield*/, this.runsService.getLocations(id, commonOptions)];
179
187
  case 1: return [2 /*return*/, _a.sent()];
180
188
  }
181
189
  });
182
190
  });
183
191
  };
184
- Runs.prototype.getCashout = function (id) {
192
+ Runs.prototype.getCashout = function (id, commonOptions) {
193
+ if (commonOptions === void 0) { commonOptions = {}; }
185
194
  return __awaiter(this, void 0, void 0, function () {
186
195
  return __generator(this, function (_a) {
187
196
  switch (_a.label) {
188
- case 0: return [4 /*yield*/, this.runsService.getCashout(id)];
197
+ case 0: return [4 /*yield*/, this.runsService.getCashout(id, commonOptions)];
189
198
  case 1: return [2 /*return*/, _a.sent()];
190
199
  }
191
200
  });
192
201
  });
193
202
  };
194
- Runs.prototype.assignDriver = function (id, userId, targetRun) {
203
+ Runs.prototype.assignDriver = function (id, userId, targetRun, commonOptions) {
204
+ if (commonOptions === void 0) { commonOptions = {}; }
195
205
  return __awaiter(this, void 0, void 0, function () {
196
206
  return __generator(this, function (_a) {
197
207
  switch (_a.label) {
198
- case 0: return [4 /*yield*/, this.runsService.assignDriver(id, userId, targetRun)];
208
+ case 0: return [4 /*yield*/, this.runsService.assignDriver(id, userId, targetRun, commonOptions)];
199
209
  case 1: return [2 /*return*/, _a.sent()];
200
210
  }
201
211
  });
202
212
  });
203
213
  };
204
- Runs.prototype.unassignDriver = function (id, userId) {
214
+ Runs.prototype.unassignDriver = function (id, userId, commonOptions) {
215
+ if (commonOptions === void 0) { commonOptions = {}; }
205
216
  return __awaiter(this, void 0, void 0, function () {
206
217
  return __generator(this, function (_a) {
207
218
  switch (_a.label) {
208
- case 0: return [4 /*yield*/, this.runsService.unassignDriver(id, userId)];
219
+ case 0: return [4 /*yield*/, this.runsService.unassignDriver(id, userId, commonOptions)];
209
220
  case 1: return [2 /*return*/, _a.sent()];
210
221
  }
211
222
  });
212
223
  });
213
224
  };
214
- Runs.prototype.assignVehicles = function (id, vehicleId, tasks) {
225
+ Runs.prototype.assignVehicles = function (id, vehicleId, tasks, commonOptions) {
226
+ if (commonOptions === void 0) { commonOptions = {}; }
215
227
  return __awaiter(this, void 0, void 0, function () {
216
228
  return __generator(this, function (_a) {
217
229
  switch (_a.label) {
218
- case 0: return [4 /*yield*/, this.runsService.assignVehicles(id, vehicleId, tasks)];
230
+ case 0: return [4 /*yield*/, this.runsService.assignVehicles(id, vehicleId, tasks, commonOptions)];
219
231
  case 1: return [2 /*return*/, _a.sent()];
220
232
  }
221
233
  });
222
234
  });
223
235
  };
224
- Runs.prototype.unassignVehicles = function (id) {
236
+ Runs.prototype.unassignVehicles = function (id, commonOptions) {
237
+ if (commonOptions === void 0) { commonOptions = {}; }
225
238
  return __awaiter(this, void 0, void 0, function () {
226
239
  return __generator(this, function (_a) {
227
240
  switch (_a.label) {
228
- case 0: return [4 /*yield*/, this.runsService.unassignVehicles(id)];
241
+ case 0: return [4 /*yield*/, this.runsService.unassignVehicles(id, commonOptions)];
229
242
  case 1: return [2 /*return*/, _a.sent()];
230
243
  }
231
244
  });
232
245
  });
233
246
  };
234
- Runs.prototype.bulkClose = function (runIds) {
247
+ Runs.prototype.bulkClose = function (runIds, commonOptions) {
248
+ if (commonOptions === void 0) { commonOptions = {}; }
235
249
  return __awaiter(this, void 0, void 0, function () {
236
250
  return __generator(this, function (_a) {
237
251
  switch (_a.label) {
238
- case 0: return [4 /*yield*/, this.runsService.bulkClose(runIds)];
252
+ case 0: return [4 /*yield*/, this.runsService.bulkClose(runIds, commonOptions)];
239
253
  case 1: return [2 /*return*/, _a.sent()];
240
254
  }
241
255
  });
242
256
  });
243
257
  };
244
- Runs.prototype.markDonePlanning = function (runIds) {
258
+ Runs.prototype.markDonePlanning = function (runIds, commonOptions) {
259
+ if (commonOptions === void 0) { commonOptions = {}; }
245
260
  return __awaiter(this, void 0, void 0, function () {
246
261
  return __generator(this, function (_a) {
247
262
  switch (_a.label) {
248
- case 0: return [4 /*yield*/, this.runsService.markDonePlanning(runIds)];
263
+ case 0: return [4 /*yield*/, this.runsService.markDonePlanning(runIds, commonOptions)];
249
264
  case 1: return [2 /*return*/, _a.sent()];
250
265
  }
251
266
  });
252
267
  });
253
268
  };
254
- Runs.prototype.getActualBreaks = function (runIds) {
269
+ Runs.prototype.getActualBreaks = function (runIds, commonOptions) {
270
+ if (commonOptions === void 0) { commonOptions = {}; }
255
271
  return __awaiter(this, void 0, void 0, function () {
256
272
  return __generator(this, function (_a) {
257
273
  switch (_a.label) {
258
- case 0: return [4 /*yield*/, this.runsService.getActualBreaks(runIds)];
274
+ case 0: return [4 /*yield*/, this.runsService.getActualBreaks(runIds, commonOptions)];
259
275
  case 1: return [2 /*return*/, _a.sent()];
260
276
  }
261
277
  });
@@ -1 +1 @@
1
- {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/Run/runs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAAsE;AAStE,6CAAwC;AAGxC;IAIC,cAAY,OAAgB;QAA5B,iBAGC;QAMM,gBAAW,GAAG;YACpB,KAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QACnC,CAAC,CAAC;QAEK,aAAQ,GAAG,UAAC,QAAQ;YAC1B,OAAO,KAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC;QAEK,aAAQ,GAAG,UAAC,QAAQ;YAC1B,OAAO,KAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC;QAEK,aAAQ,GAAG,UAAC,QAAQ;YAC1B,OAAO,KAAI,CAAC,QAAQ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AE,aAAa,CAAC,EAAA;4BAAjE,sBAAO,SAA0D,EAAC;;;;KAClE;IAEY,wBAAS,GAAtB,UAAuB,MAAgB,EAAE,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAClE,qBAAM,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC,EAAA;4BAA9D,sBAAO,SAAuD,EAAC;;;;KAC/D;IAEY,+BAAgB,GAA7B,UACC,MAAgB,EAChB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAM,EAAE,aAAa,CAAC,EAAA;4BAArE,sBAAO,SAA8D,EAAC;;;;KACtE;IAEY,8BAAe,GAA5B,UACC,MAAgB,EAChB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAE1B,qBAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,MAAM,EAAE,aAAa,CAAC,EAAA;4BAApE,sBAAO,SAA6D,EAAC;;;;KACrE;IACF,WAAC;AAAD,CAAC,AAxJD,IAwJC"}
@@ -52,7 +52,7 @@ var axios_1 = require("axios");
52
52
  var Logger_1 = require("../Core/Logger");
53
53
  var lodash_1 = require("lodash");
54
54
  var BringgException_1 = require("../Core/BringgException");
55
- var version = '1.9.0-pre';
55
+ var version = '1.9.0-pre-pre';
56
56
  function logErrorResponse(response) {
57
57
  var data = response.data, status = response.status;
58
58
  try {
@@ -28486,7 +28486,7 @@ var axios_1 = __webpack_require__(154);
28486
28486
  var Logger_1 = __webpack_require__(43);
28487
28487
  var lodash_1 = __webpack_require__(10);
28488
28488
  var BringgException_1 = __webpack_require__(14);
28489
- var version = '1.9.0-pre';
28489
+ var version = '1.9.0-pre-pre';
28490
28490
  function logErrorResponse(response) {
28491
28491
  var data = response.data, status = response.status;
28492
28492
  try {
@@ -40822,7 +40822,8 @@ var Runs = /** @class */ (function () {
40822
40822
  Runs.prototype.attachSubscriptions = function () {
40823
40823
  this.runStore.attachSubscriptions();
40824
40824
  };
40825
- Runs.prototype.loadAll = function (options) {
40825
+ Runs.prototype.loadAll = function (options, commonOptions) {
40826
+ if (commonOptions === void 0) { commonOptions = {}; }
40826
40827
  return __awaiter(this, void 0, void 0, function () {
40827
40828
  var idsInCache, idsNotInCache, runs, runModels;
40828
40829
  var _this = this;
@@ -40845,7 +40846,7 @@ var Runs = /** @class */ (function () {
40845
40846
  return [2 /*return*/, this.runStore.store.getItemsByIds(options.ids)];
40846
40847
  }
40847
40848
  }
40848
- return [4 /*yield*/, this.runsService.loadAll(__assign(__assign({ page: 1 }, options), { ids: idsNotInCache.length > 0 ? idsNotInCache : undefined }))];
40849
+ return [4 /*yield*/, this.runsService.loadAll(__assign(__assign({ page: 1 }, options), { ids: idsNotInCache.length > 0 ? idsNotInCache : undefined }), commonOptions)];
40849
40850
  case 1:
40850
40851
  runs = _a.sent();
40851
40852
  runModels = this.runStore.setAll(runs);
@@ -40854,7 +40855,8 @@ var Runs = /** @class */ (function () {
40854
40855
  });
40855
40856
  });
40856
40857
  };
40857
- Runs.prototype.load = function (id) {
40858
+ Runs.prototype.load = function (id, commonOptions) {
40859
+ if (commonOptions === void 0) { commonOptions = {}; }
40858
40860
  return __awaiter(this, void 0, void 0, function () {
40859
40861
  var runModel;
40860
40862
  return __generator(this, function (_a) {
@@ -40864,18 +40866,19 @@ var Runs = /** @class */ (function () {
40864
40866
  if (runModel) {
40865
40867
  return [2 /*return*/, runModel];
40866
40868
  }
40867
- return [4 /*yield*/, this.forceLoad(id)];
40869
+ return [4 /*yield*/, this.forceLoad(id, commonOptions)];
40868
40870
  case 1: return [2 /*return*/, _a.sent()];
40869
40871
  }
40870
40872
  });
40871
40873
  });
40872
40874
  };
40873
- Runs.prototype.forceLoad = function (id) {
40875
+ Runs.prototype.forceLoad = function (id, commonOptions) {
40876
+ if (commonOptions === void 0) { commonOptions = {}; }
40874
40877
  return __awaiter(this, void 0, void 0, function () {
40875
40878
  var run;
40876
40879
  return __generator(this, function (_a) {
40877
40880
  switch (_a.label) {
40878
- case 0: return [4 /*yield*/, this.runsService.get(id)];
40881
+ case 0: return [4 /*yield*/, this.runsService.get(id, commonOptions)];
40879
40882
  case 1:
40880
40883
  run = _a.sent();
40881
40884
  return [2 /*return*/, this.runStore.set(run)];
@@ -40883,131 +40886,144 @@ var Runs = /** @class */ (function () {
40883
40886
  });
40884
40887
  });
40885
40888
  };
40886
- Runs.prototype.get = function (id) {
40889
+ Runs.prototype.get = function (id, commonOptions) {
40890
+ if (commonOptions === void 0) { commonOptions = {}; }
40887
40891
  return __awaiter(this, void 0, void 0, function () {
40888
40892
  return __generator(this, function (_a) {
40889
40893
  switch (_a.label) {
40890
- case 0: return [4 /*yield*/, this.runsService.get(id)];
40894
+ case 0: return [4 /*yield*/, this.runsService.get(id, commonOptions)];
40891
40895
  case 1: return [2 /*return*/, _a.sent()];
40892
40896
  }
40893
40897
  });
40894
40898
  });
40895
40899
  };
40896
- Runs.prototype.getAll = function (options) {
40900
+ Runs.prototype.getAll = function (options, commonOptions) {
40901
+ if (commonOptions === void 0) { commonOptions = {}; }
40897
40902
  return __awaiter(this, void 0, void 0, function () {
40898
40903
  return __generator(this, function (_a) {
40899
40904
  switch (_a.label) {
40900
- case 0: return [4 /*yield*/, this.runsService.getAll(options)];
40905
+ case 0: return [4 /*yield*/, this.runsService.getAll(options, commonOptions)];
40901
40906
  case 1: return [2 /*return*/, _a.sent()];
40902
40907
  }
40903
40908
  });
40904
40909
  });
40905
40910
  };
40906
- Runs.prototype.update = function (id, options) {
40911
+ Runs.prototype.update = function (id, options, commonOptions) {
40912
+ if (commonOptions === void 0) { commonOptions = {}; }
40907
40913
  return __awaiter(this, void 0, void 0, function () {
40908
40914
  return __generator(this, function (_a) {
40909
40915
  switch (_a.label) {
40910
- case 0: return [4 /*yield*/, this.runsService.update(id, options)];
40916
+ case 0: return [4 /*yield*/, this.runsService.update(id, options, commonOptions)];
40911
40917
  case 1: return [2 /*return*/, _a.sent()];
40912
40918
  }
40913
40919
  });
40914
40920
  });
40915
40921
  };
40916
- Runs.prototype.getHistory = function (id) {
40922
+ Runs.prototype.getHistory = function (id, commonOptions) {
40923
+ if (commonOptions === void 0) { commonOptions = {}; }
40917
40924
  return __awaiter(this, void 0, void 0, function () {
40918
40925
  return __generator(this, function (_a) {
40919
40926
  switch (_a.label) {
40920
- case 0: return [4 /*yield*/, this.runsService.getHistory(id)];
40927
+ case 0: return [4 /*yield*/, this.runsService.getHistory(id, commonOptions)];
40921
40928
  case 1: return [2 /*return*/, _a.sent()];
40922
40929
  }
40923
40930
  });
40924
40931
  });
40925
40932
  };
40926
- Runs.prototype.getLocations = function (id) {
40933
+ Runs.prototype.getLocations = function (id, commonOptions) {
40934
+ if (commonOptions === void 0) { commonOptions = {}; }
40927
40935
  return __awaiter(this, void 0, void 0, function () {
40928
40936
  return __generator(this, function (_a) {
40929
40937
  switch (_a.label) {
40930
- case 0: return [4 /*yield*/, this.runsService.getLocations(id)];
40938
+ case 0: return [4 /*yield*/, this.runsService.getLocations(id, commonOptions)];
40931
40939
  case 1: return [2 /*return*/, _a.sent()];
40932
40940
  }
40933
40941
  });
40934
40942
  });
40935
40943
  };
40936
- Runs.prototype.getCashout = function (id) {
40944
+ Runs.prototype.getCashout = function (id, commonOptions) {
40945
+ if (commonOptions === void 0) { commonOptions = {}; }
40937
40946
  return __awaiter(this, void 0, void 0, function () {
40938
40947
  return __generator(this, function (_a) {
40939
40948
  switch (_a.label) {
40940
- case 0: return [4 /*yield*/, this.runsService.getCashout(id)];
40949
+ case 0: return [4 /*yield*/, this.runsService.getCashout(id, commonOptions)];
40941
40950
  case 1: return [2 /*return*/, _a.sent()];
40942
40951
  }
40943
40952
  });
40944
40953
  });
40945
40954
  };
40946
- Runs.prototype.assignDriver = function (id, userId, targetRun) {
40955
+ Runs.prototype.assignDriver = function (id, userId, targetRun, commonOptions) {
40956
+ if (commonOptions === void 0) { commonOptions = {}; }
40947
40957
  return __awaiter(this, void 0, void 0, function () {
40948
40958
  return __generator(this, function (_a) {
40949
40959
  switch (_a.label) {
40950
- case 0: return [4 /*yield*/, this.runsService.assignDriver(id, userId, targetRun)];
40960
+ case 0: return [4 /*yield*/, this.runsService.assignDriver(id, userId, targetRun, commonOptions)];
40951
40961
  case 1: return [2 /*return*/, _a.sent()];
40952
40962
  }
40953
40963
  });
40954
40964
  });
40955
40965
  };
40956
- Runs.prototype.unassignDriver = function (id, userId) {
40966
+ Runs.prototype.unassignDriver = function (id, userId, commonOptions) {
40967
+ if (commonOptions === void 0) { commonOptions = {}; }
40957
40968
  return __awaiter(this, void 0, void 0, function () {
40958
40969
  return __generator(this, function (_a) {
40959
40970
  switch (_a.label) {
40960
- case 0: return [4 /*yield*/, this.runsService.unassignDriver(id, userId)];
40971
+ case 0: return [4 /*yield*/, this.runsService.unassignDriver(id, userId, commonOptions)];
40961
40972
  case 1: return [2 /*return*/, _a.sent()];
40962
40973
  }
40963
40974
  });
40964
40975
  });
40965
40976
  };
40966
- Runs.prototype.assignVehicles = function (id, vehicleId, tasks) {
40977
+ Runs.prototype.assignVehicles = function (id, vehicleId, tasks, commonOptions) {
40978
+ if (commonOptions === void 0) { commonOptions = {}; }
40967
40979
  return __awaiter(this, void 0, void 0, function () {
40968
40980
  return __generator(this, function (_a) {
40969
40981
  switch (_a.label) {
40970
- case 0: return [4 /*yield*/, this.runsService.assignVehicles(id, vehicleId, tasks)];
40982
+ case 0: return [4 /*yield*/, this.runsService.assignVehicles(id, vehicleId, tasks, commonOptions)];
40971
40983
  case 1: return [2 /*return*/, _a.sent()];
40972
40984
  }
40973
40985
  });
40974
40986
  });
40975
40987
  };
40976
- Runs.prototype.unassignVehicles = function (id) {
40988
+ Runs.prototype.unassignVehicles = function (id, commonOptions) {
40989
+ if (commonOptions === void 0) { commonOptions = {}; }
40977
40990
  return __awaiter(this, void 0, void 0, function () {
40978
40991
  return __generator(this, function (_a) {
40979
40992
  switch (_a.label) {
40980
- case 0: return [4 /*yield*/, this.runsService.unassignVehicles(id)];
40993
+ case 0: return [4 /*yield*/, this.runsService.unassignVehicles(id, commonOptions)];
40981
40994
  case 1: return [2 /*return*/, _a.sent()];
40982
40995
  }
40983
40996
  });
40984
40997
  });
40985
40998
  };
40986
- Runs.prototype.bulkClose = function (runIds) {
40999
+ Runs.prototype.bulkClose = function (runIds, commonOptions) {
41000
+ if (commonOptions === void 0) { commonOptions = {}; }
40987
41001
  return __awaiter(this, void 0, void 0, function () {
40988
41002
  return __generator(this, function (_a) {
40989
41003
  switch (_a.label) {
40990
- case 0: return [4 /*yield*/, this.runsService.bulkClose(runIds)];
41004
+ case 0: return [4 /*yield*/, this.runsService.bulkClose(runIds, commonOptions)];
40991
41005
  case 1: return [2 /*return*/, _a.sent()];
40992
41006
  }
40993
41007
  });
40994
41008
  });
40995
41009
  };
40996
- Runs.prototype.markDonePlanning = function (runIds) {
41010
+ Runs.prototype.markDonePlanning = function (runIds, commonOptions) {
41011
+ if (commonOptions === void 0) { commonOptions = {}; }
40997
41012
  return __awaiter(this, void 0, void 0, function () {
40998
41013
  return __generator(this, function (_a) {
40999
41014
  switch (_a.label) {
41000
- case 0: return [4 /*yield*/, this.runsService.markDonePlanning(runIds)];
41015
+ case 0: return [4 /*yield*/, this.runsService.markDonePlanning(runIds, commonOptions)];
41001
41016
  case 1: return [2 /*return*/, _a.sent()];
41002
41017
  }
41003
41018
  });
41004
41019
  });
41005
41020
  };
41006
- Runs.prototype.getActualBreaks = function (runIds) {
41021
+ Runs.prototype.getActualBreaks = function (runIds, commonOptions) {
41022
+ if (commonOptions === void 0) { commonOptions = {}; }
41007
41023
  return __awaiter(this, void 0, void 0, function () {
41008
41024
  return __generator(this, function (_a) {
41009
41025
  switch (_a.label) {
41010
- case 0: return [4 /*yield*/, this.runsService.getActualBreaks(runIds)];
41026
+ case 0: return [4 /*yield*/, this.runsService.getActualBreaks(runIds, commonOptions)];
41011
41027
  case 1: return [2 /*return*/, _a.sent()];
41012
41028
  }
41013
41029
  });