@kiminix/tp-client 1.32.0 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,10 @@ export declare class ReservationsAdminAPIs {
43
43
  child?: number;
44
44
  }[];
45
45
  }): Promise<Either<Error, void>>;
46
+ static getByIdPrivate(props: {
47
+ token?: string;
48
+ id: string;
49
+ }): Promise<Reservation>;
46
50
  static getPagePrivate(props: {
47
51
  token?: string;
48
52
  page: number;
@@ -231,6 +231,23 @@ var ReservationsAdminAPIs = /** @class */ (function () {
231
231
  });
232
232
  };
233
233
  // API for private admins
234
+ ReservationsAdminAPIs.getByIdPrivate = function (props) {
235
+ return __awaiter(this, void 0, void 0, function () {
236
+ return __generator(this, function (_a) {
237
+ return [2 /*return*/, RequestUtils.send(function () {
238
+ return axios.get(base + "/reservations/private/".concat(props.id), {
239
+ headers: {
240
+ 'Authorization': "".concat(props.token)
241
+ }
242
+ }).then(function (response) {
243
+ var result = response.data;
244
+ result.deal = result.deal ? parseReservationDeal(result.deal) : undefined;
245
+ return result;
246
+ });
247
+ })];
248
+ });
249
+ });
250
+ };
234
251
  ReservationsAdminAPIs.getPagePrivate = function (props) {
235
252
  return __awaiter(this, void 0, void 0, function () {
236
253
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiminix/tp-client",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [