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.
@@ -7,7 +7,7 @@ export interface ApiTerminal {
7
7
  device: string | null;
8
8
  version: string | null;
9
9
  ip: string | null;
10
- location: any | null;
10
+ location: ApiTerminalLocation | null;
11
11
  timezone: number;
12
12
  require_photo: boolean;
13
13
  require_photo_breaks: boolean;
@@ -1,4 +1,4 @@
1
- import { ApiLocationCoordinate, ApiTerminal } from '../interfaces/index.js';
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: ApiLocationCoordinate | null;
11
+ location: ApiTerminalLocation | null;
12
12
  timezone: number;
13
13
  require_photo: boolean;
14
14
  require_photo_breaks: boolean;
@@ -22,6 +22,7 @@ export interface Options {
22
22
  expand?: string[];
23
23
  fields?: string[];
24
24
  limit?: number;
25
+ offset?: number;
25
26
  dryRun?: boolean;
26
27
  }
27
28
  export declare abstract class Service<ApiResponse = any> {
@@ -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]
@@ -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.51' };
4
+ exports.Version = { version: '1.0.53' };
@@ -7,7 +7,7 @@ export interface ApiTerminal {
7
7
  device: string | null;
8
8
  version: string | null;
9
9
  ip: string | null;
10
- location: any | null;
10
+ location: ApiTerminalLocation | null;
11
11
  timezone: number;
12
12
  require_photo: boolean;
13
13
  require_photo_breaks: boolean;
@@ -1,4 +1,4 @@
1
- import { ApiLocationCoordinate, ApiTerminal } from '../interfaces/index.js';
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: ApiLocationCoordinate | null;
11
+ location: ApiTerminalLocation | null;
12
12
  timezone: number;
13
13
  require_photo: boolean;
14
14
  require_photo_breaks: boolean;
@@ -22,6 +22,7 @@ export interface Options {
22
22
  expand?: string[];
23
23
  fields?: string[];
24
24
  limit?: number;
25
+ offset?: number;
25
26
  dryRun?: boolean;
26
27
  }
27
28
  export declare abstract class Service<ApiResponse = any> {
@@ -98,6 +98,7 @@ export class Service {
98
98
  expand: options?.expand,
99
99
  fields: options?.fields,
100
100
  limit: options?.limit,
101
+ offset: options?.offset,
101
102
  dry_run: options?.dryRun,
102
103
  ...httpOptions?.params,
103
104
  },
@@ -1 +1 @@
1
- export const Version = { version: '1.0.51' };
1
+ export const Version = { version: '1.0.53' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "engines": {
6
6
  "node": ">=14.17.0"
@@ -7,7 +7,7 @@ export interface ApiTerminal {
7
7
  device: string | null;
8
8
  version: string | null;
9
9
  ip: string | null;
10
- location: any | null; // todo
10
+ location: ApiTerminalLocation | null;
11
11
  timezone: number;
12
12
  require_photo: boolean;
13
13
  require_photo_breaks: boolean;
@@ -1,4 +1,4 @@
1
- import { ApiLocationCoordinate, ApiTerminal } from '../interfaces/index.js';
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: ApiLocationCoordinate | null;
12
+ public location: ApiTerminalLocation | null;
13
13
  public timezone: number;
14
14
  public require_photo: boolean;
15
15
  public require_photo_breaks: boolean;
@@ -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.51' };
1
+ export const Version = { version: '1.0.53' };