rotacloud 1.0.45 → 1.0.46

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.
@@ -118,7 +118,7 @@ class LeaveService extends index_js_1.Service {
118
118
  url: `${this.apiPath}/${id}`,
119
119
  data,
120
120
  method: 'POST',
121
- })
121
+ }, options)
122
122
  .then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new leave_model_js_1.Leave(res.data)));
123
123
  }
124
124
  delete(id, options) {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Version = void 0;
4
- exports.Version = { version: '1.0.45' };
4
+ exports.Version = { version: '1.0.46' };
@@ -42,7 +42,7 @@ export class LeaveService extends Service {
42
42
  url: `${this.apiPath}/${id}`,
43
43
  data,
44
44
  method: 'POST',
45
- })
45
+ }, options)
46
46
  .then((res) => Promise.resolve(options?.rawResponse ? res : new Leave(res.data)));
47
47
  }
48
48
  delete(id, options) {
@@ -1 +1 @@
1
- export const Version = { version: '1.0.45' };
1
+ export const Version = { version: '1.0.46' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "engines": {
6
6
  "node": ">=14.17.0"
@@ -68,11 +68,14 @@ export class LeaveService extends Service {
68
68
  update(id: number, data: Partial<ApiLeave>, options: Options): Promise<Leave>;
69
69
  update(id: number, data: Partial<ApiLeave>, options?: Options) {
70
70
  return super
71
- .fetch<ApiLeave>({
72
- url: `${this.apiPath}/${id}`,
73
- data,
74
- method: 'POST',
75
- })
71
+ .fetch<ApiLeave>(
72
+ {
73
+ url: `${this.apiPath}/${id}`,
74
+ data,
75
+ method: 'POST',
76
+ },
77
+ options
78
+ )
76
79
  .then((res) => Promise.resolve(options?.rawResponse ? res : new Leave(res.data)));
77
80
  }
78
81
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const Version = { version: '1.0.45' };
1
+ export const Version = { version: '1.0.46' };