rotacloud 1.4.6 → 1.4.9
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/cjs/interfaces/role.interface.d.ts +1 -1
- package/dist/cjs/services/shifts.service.d.ts +4 -4
- package/dist/cjs/services/shifts.service.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/mjs/interfaces/role.interface.d.ts +1 -1
- package/dist/mjs/services/shifts.service.d.ts +4 -4
- package/dist/mjs/services/shifts.service.js +2 -2
- package/dist/mjs/version.js +1 -1
- package/package.json +1 -1
- package/src/interfaces/role.interface.ts +1 -1
- package/src/services/shifts.service.ts +6 -6
- package/src/version.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { Shift } from '../interfaces/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Options, OptionsExtended, RequirementsOf, Service } from './index.js';
|
|
4
4
|
import { ShiftsQueryParams } from '../interfaces/query-params/shifts-query-params.interface.js';
|
|
5
5
|
type RequiredProps = 'end_time' | 'start_time' | 'location';
|
|
6
6
|
export declare class ShiftsService extends Service<Shift> {
|
|
@@ -69,11 +69,11 @@ export declare class ShiftsService extends Service<Shift> {
|
|
|
69
69
|
rawResponse: true;
|
|
70
70
|
} & Options): Promise<AxiosResponse<void>>;
|
|
71
71
|
delete(ids: number | number[], options: Options): Promise<number>;
|
|
72
|
-
acknowledge(
|
|
73
|
-
acknowledge(
|
|
72
|
+
acknowledge(shifts: number[]): Promise<number>;
|
|
73
|
+
acknowledge(shifts: number[], options: {
|
|
74
74
|
rawResponse: true;
|
|
75
75
|
} & Options): Promise<AxiosResponse<any>>;
|
|
76
|
-
acknowledge(
|
|
76
|
+
acknowledge(shifts: number[], options: Options): Promise<number>;
|
|
77
77
|
publish(data: {
|
|
78
78
|
shifts: number[];
|
|
79
79
|
}): Promise<number>;
|
|
@@ -121,9 +121,9 @@ class ShiftsService extends index_js_1.Service {
|
|
|
121
121
|
: { url: `${this.apiPath}/${ids}`, method: 'DELETE' };
|
|
122
122
|
return super.fetch(params, options).then((res) => ((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : res.status));
|
|
123
123
|
}
|
|
124
|
-
acknowledge(
|
|
124
|
+
acknowledge(shifts, options) {
|
|
125
125
|
return super
|
|
126
|
-
.fetch({ url: '/shifts_acknowledged', data, method: 'POST' }, options)
|
|
126
|
+
.fetch({ url: '/shifts_acknowledged', data: { shifts }, method: 'POST' }, options)
|
|
127
127
|
.then((res) => ((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : res.status));
|
|
128
128
|
}
|
|
129
129
|
publish(data, options) {
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { Shift } from '../interfaces/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Options, OptionsExtended, RequirementsOf, Service } from './index.js';
|
|
4
4
|
import { ShiftsQueryParams } from '../interfaces/query-params/shifts-query-params.interface.js';
|
|
5
5
|
type RequiredProps = 'end_time' | 'start_time' | 'location';
|
|
6
6
|
export declare class ShiftsService extends Service<Shift> {
|
|
@@ -69,11 +69,11 @@ export declare class ShiftsService extends Service<Shift> {
|
|
|
69
69
|
rawResponse: true;
|
|
70
70
|
} & Options): Promise<AxiosResponse<void>>;
|
|
71
71
|
delete(ids: number | number[], options: Options): Promise<number>;
|
|
72
|
-
acknowledge(
|
|
73
|
-
acknowledge(
|
|
72
|
+
acknowledge(shifts: number[]): Promise<number>;
|
|
73
|
+
acknowledge(shifts: number[], options: {
|
|
74
74
|
rawResponse: true;
|
|
75
75
|
} & Options): Promise<AxiosResponse<any>>;
|
|
76
|
-
acknowledge(
|
|
76
|
+
acknowledge(shifts: number[], options: Options): Promise<number>;
|
|
77
77
|
publish(data: {
|
|
78
78
|
shifts: number[];
|
|
79
79
|
}): Promise<number>;
|
|
@@ -64,9 +64,9 @@ export class ShiftsService extends Service {
|
|
|
64
64
|
: { url: `${this.apiPath}/${ids}`, method: 'DELETE' };
|
|
65
65
|
return super.fetch(params, options).then((res) => (options?.rawResponse ? res : res.status));
|
|
66
66
|
}
|
|
67
|
-
acknowledge(
|
|
67
|
+
acknowledge(shifts, options) {
|
|
68
68
|
return super
|
|
69
|
-
.fetch({ url: '/shifts_acknowledged', data, method: 'POST' }, options)
|
|
69
|
+
.fetch({ url: '/shifts_acknowledged', data: { shifts }, method: 'POST' }, options)
|
|
70
70
|
.then((res) => (options?.rawResponse ? res : res.status));
|
|
71
71
|
}
|
|
72
72
|
publish(data, options) {
|
package/dist/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.4.
|
|
1
|
+
export const Version = { version: '1.4.9' };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { Shift } from '../interfaces/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Options, OptionsExtended, RequirementsOf, Service } from './index.js';
|
|
4
4
|
|
|
5
5
|
import { ShiftsQueryParams } from '../interfaces/query-params/shifts-query-params.interface.js';
|
|
6
6
|
|
|
@@ -130,12 +130,12 @@ export class ShiftsService extends Service<Shift> {
|
|
|
130
130
|
return super.fetch<void>(params, options).then((res) => (options?.rawResponse ? res : res.status));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
acknowledge(
|
|
134
|
-
acknowledge(
|
|
135
|
-
acknowledge(
|
|
136
|
-
acknowledge(
|
|
133
|
+
acknowledge(shifts: number[]): Promise<number>;
|
|
134
|
+
acknowledge(shifts: number[], options: { rawResponse: true } & Options): Promise<AxiosResponse<any>>;
|
|
135
|
+
acknowledge(shifts: number[], options: Options): Promise<number>;
|
|
136
|
+
acknowledge(shifts: number[], options?: Options) {
|
|
137
137
|
return super
|
|
138
|
-
.fetch<Shift>({ url: '/shifts_acknowledged', data, method: 'POST' }, options)
|
|
138
|
+
.fetch<Shift>({ url: '/shifts_acknowledged', data: {shifts}, method: 'POST' }, options)
|
|
139
139
|
.then((res) => (options?.rawResponse ? res : res.status));
|
|
140
140
|
}
|
|
141
141
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.4.
|
|
1
|
+
export const Version = { version: '1.4.9' };
|