rotacloud 1.0.34 → 1.0.35
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.
|
@@ -34,15 +34,27 @@ export declare class ShiftsService extends Service {
|
|
|
34
34
|
rawResponse: true;
|
|
35
35
|
} & Options): Promise<AxiosResponse<any, any>>;
|
|
36
36
|
acknowledge(data: number[], options: Options): Promise<number>;
|
|
37
|
-
publish(data:
|
|
38
|
-
|
|
37
|
+
publish(data: {
|
|
38
|
+
shifts: number[];
|
|
39
|
+
}): Promise<number>;
|
|
40
|
+
publish(data: {
|
|
41
|
+
shifts: number[];
|
|
42
|
+
}, options: {
|
|
39
43
|
rawResponse: true;
|
|
40
44
|
} & Options): Promise<AxiosResponse<any, any>>;
|
|
41
|
-
publish(data:
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
publish(data: {
|
|
46
|
+
shifts: number[];
|
|
47
|
+
}, options: Options): Promise<number>;
|
|
48
|
+
unpublish(data: {
|
|
49
|
+
shifts: number[];
|
|
50
|
+
}): Promise<number>;
|
|
51
|
+
unpublish(data: {
|
|
52
|
+
shifts: number[];
|
|
53
|
+
}, options: {
|
|
44
54
|
rawResponse: true;
|
|
45
55
|
} & Options): Promise<AxiosResponse<any, any>>;
|
|
46
|
-
unpublish(data:
|
|
56
|
+
unpublish(data: {
|
|
57
|
+
shifts: number[];
|
|
58
|
+
}, options: Options): Promise<number>;
|
|
47
59
|
}
|
|
48
60
|
export {};
|
package/dist/cjs/version.js
CHANGED
|
@@ -34,15 +34,27 @@ export declare class ShiftsService extends Service {
|
|
|
34
34
|
rawResponse: true;
|
|
35
35
|
} & Options): Promise<AxiosResponse<any, any>>;
|
|
36
36
|
acknowledge(data: number[], options: Options): Promise<number>;
|
|
37
|
-
publish(data:
|
|
38
|
-
|
|
37
|
+
publish(data: {
|
|
38
|
+
shifts: number[];
|
|
39
|
+
}): Promise<number>;
|
|
40
|
+
publish(data: {
|
|
41
|
+
shifts: number[];
|
|
42
|
+
}, options: {
|
|
39
43
|
rawResponse: true;
|
|
40
44
|
} & Options): Promise<AxiosResponse<any, any>>;
|
|
41
|
-
publish(data:
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
publish(data: {
|
|
46
|
+
shifts: number[];
|
|
47
|
+
}, options: Options): Promise<number>;
|
|
48
|
+
unpublish(data: {
|
|
49
|
+
shifts: number[];
|
|
50
|
+
}): Promise<number>;
|
|
51
|
+
unpublish(data: {
|
|
52
|
+
shifts: number[];
|
|
53
|
+
}, options: {
|
|
44
54
|
rawResponse: true;
|
|
45
55
|
} & Options): Promise<AxiosResponse<any, any>>;
|
|
46
|
-
unpublish(data:
|
|
56
|
+
unpublish(data: {
|
|
57
|
+
shifts: number[];
|
|
58
|
+
}, options: Options): Promise<number>;
|
|
47
59
|
}
|
|
48
60
|
export {};
|
package/dist/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.0.
|
|
1
|
+
export const Version = { version: '1.0.35' };
|
package/package.json
CHANGED
|
@@ -93,20 +93,20 @@ export class ShiftsService extends Service {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
publish(data: number[]): Promise<number>;
|
|
97
|
-
publish(data: number[], options: { rawResponse: true } & Options): Promise<AxiosResponse<any, any>>;
|
|
98
|
-
publish(data: number[], options: Options): Promise<number>;
|
|
99
|
-
publish(data: number[], options?: Options) {
|
|
96
|
+
publish(data: { shifts: number[] }): Promise<number>;
|
|
97
|
+
publish(data: { shifts: number[] }, options: { rawResponse: true } & Options): Promise<AxiosResponse<any, any>>;
|
|
98
|
+
publish(data: { shifts: number[] }, options: Options): Promise<number>;
|
|
99
|
+
publish(data: { shifts: number[] }, options?: Options) {
|
|
100
100
|
return super.fetch<ApiShift>({ url: '/shifts_published', data, method: 'POST' }).then(
|
|
101
101
|
(res) => Promise.resolve(options?.rawResponse ? res : res.status),
|
|
102
102
|
(err) => Promise.reject(options?.rawResponse ? err : new ErrorResponse(err))
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
unpublish(data: number[]): Promise<number>;
|
|
107
|
-
unpublish(data: number[], options: { rawResponse: true } & Options): Promise<AxiosResponse<any, any>>;
|
|
108
|
-
unpublish(data: number[], options: Options): Promise<number>;
|
|
109
|
-
unpublish(data: number[], options?: Options) {
|
|
106
|
+
unpublish(data: { shifts: number[] }): Promise<number>;
|
|
107
|
+
unpublish(data: { shifts: number[] }, options: { rawResponse: true } & Options): Promise<AxiosResponse<any, any>>;
|
|
108
|
+
unpublish(data: { shifts: number[] }, options: Options): Promise<number>;
|
|
109
|
+
unpublish(data: { shifts: number[] }, options?: Options) {
|
|
110
110
|
return super.fetch<ApiShift>({ url: '/shifts_published', data, method: 'DELETE' }).then(
|
|
111
111
|
(res) => Promise.resolve(options?.rawResponse ? res : res.status),
|
|
112
112
|
(err) => Promise.reject(options?.rawResponse ? err : new ErrorResponse(err))
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.0.
|
|
1
|
+
export const Version = { version: '1.0.35' };
|