rotacloud 1.0.51 → 1.0.53
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/terminal.interface.d.ts +1 -1
- package/dist/cjs/models/terminal.model.d.ts +2 -2
- package/dist/cjs/services/service.d.ts +1 -0
- package/dist/cjs/services/service.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/mjs/interfaces/terminal.interface.d.ts +1 -1
- package/dist/mjs/models/terminal.model.d.ts +2 -2
- package/dist/mjs/services/service.d.ts +1 -0
- package/dist/mjs/services/service.js +1 -0
- package/dist/mjs/version.js +1 -1
- package/package.json +1 -1
- package/src/interfaces/terminal.interface.ts +1 -1
- package/src/models/terminal.model.ts +2 -2
- package/src/services/service.ts +2 -0
- package/src/version.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiTerminalLocation, ApiTerminal } from '../interfaces/index.js';
|
|
2
2
|
export declare class Terminal {
|
|
3
3
|
id: number;
|
|
4
4
|
deleted: boolean;
|
|
@@ -8,7 +8,7 @@ export declare class Terminal {
|
|
|
8
8
|
device: string | null;
|
|
9
9
|
version: string | null;
|
|
10
10
|
ip: string | null;
|
|
11
|
-
location:
|
|
11
|
+
location: ApiTerminalLocation | null;
|
|
12
12
|
timezone: number;
|
|
13
13
|
require_photo: boolean;
|
|
14
14
|
require_photo_breaks: boolean;
|
|
@@ -122,7 +122,7 @@ class Service {
|
|
|
122
122
|
// need to convert user field in payload to a header for creating leave_requests when using an API key
|
|
123
123
|
this.isLeaveRequest(httpOptions.url) ? (headers.User = `${httpOptions.data.user}`) : undefined;
|
|
124
124
|
}
|
|
125
|
-
const reqObject = Object.assign(Object.assign({}, httpOptions), { baseURL: rotacloud_js_1.RotaCloud.config.baseUri, headers, params: Object.assign({ expand: options === null || options === void 0 ? void 0 : options.expand, fields: options === null || options === void 0 ? void 0 : options.fields, limit: options === null || options === void 0 ? void 0 : options.limit, dry_run: options === null || options === void 0 ? void 0 : options.dryRun }, httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.params), paramsSerializer: this.buildQueryStr });
|
|
125
|
+
const reqObject = Object.assign(Object.assign({}, httpOptions), { baseURL: rotacloud_js_1.RotaCloud.config.baseUri, headers, params: Object.assign({ expand: options === null || options === void 0 ? void 0 : options.expand, fields: options === null || options === void 0 ? void 0 : options.fields, limit: options === null || options === void 0 ? void 0 : options.limit, offset: options === null || options === void 0 ? void 0 : options.offset, dry_run: options === null || options === void 0 ? void 0 : options.dryRun }, httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.params), paramsSerializer: this.buildQueryStr });
|
|
126
126
|
if (rotacloud_js_1.RotaCloud.config.retry) {
|
|
127
127
|
const retryConfig = typeof rotacloud_js_1.RotaCloud.config.retry === 'string'
|
|
128
128
|
? DEFAULT_RETRY_STRATEGY_OPTIONS[rotacloud_js_1.RotaCloud.config.retry]
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiTerminalLocation, ApiTerminal } from '../interfaces/index.js';
|
|
2
2
|
export declare class Terminal {
|
|
3
3
|
id: number;
|
|
4
4
|
deleted: boolean;
|
|
@@ -8,7 +8,7 @@ export declare class Terminal {
|
|
|
8
8
|
device: string | null;
|
|
9
9
|
version: string | null;
|
|
10
10
|
ip: string | null;
|
|
11
|
-
location:
|
|
11
|
+
location: ApiTerminalLocation | null;
|
|
12
12
|
timezone: number;
|
|
13
13
|
require_photo: boolean;
|
|
14
14
|
require_photo_breaks: boolean;
|
package/dist/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.0.
|
|
1
|
+
export const Version = { version: '1.0.53' };
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiTerminalLocation, ApiTerminal } from '../interfaces/index.js';
|
|
2
2
|
|
|
3
3
|
export class Terminal {
|
|
4
4
|
public id: number;
|
|
@@ -9,7 +9,7 @@ export class Terminal {
|
|
|
9
9
|
public device: string | null;
|
|
10
10
|
public version: string | null;
|
|
11
11
|
public ip: string | null;
|
|
12
|
-
public location:
|
|
12
|
+
public location: ApiTerminalLocation | null;
|
|
13
13
|
public timezone: number;
|
|
14
14
|
public require_photo: boolean;
|
|
15
15
|
public require_photo_breaks: boolean;
|
package/src/services/service.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface Options {
|
|
|
47
47
|
expand?: string[];
|
|
48
48
|
fields?: string[];
|
|
49
49
|
limit?: number;
|
|
50
|
+
offset?: number;
|
|
50
51
|
dryRun?: boolean;
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -146,6 +147,7 @@ export abstract class Service<ApiResponse = any> {
|
|
|
146
147
|
expand: options?.expand,
|
|
147
148
|
fields: options?.fields,
|
|
148
149
|
limit: options?.limit,
|
|
150
|
+
offset: options?.offset,
|
|
149
151
|
dry_run: options?.dryRun,
|
|
150
152
|
...httpOptions?.params,
|
|
151
153
|
},
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.0.
|
|
1
|
+
export const Version = { version: '1.0.53' };
|