rotacloud 1.0.7 → 1.0.8

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,5 +7,6 @@ export declare class LatLngObject {
7
7
  export declare class Location {
8
8
  id: number;
9
9
  name: string;
10
+ users: number[];
10
11
  constructor(locaiton: ApiLocation);
11
12
  }
@@ -4,5 +4,6 @@ export class Location {
4
4
  constructor(locaiton) {
5
5
  this.id = locaiton.id;
6
6
  this.name = locaiton.name;
7
+ this.users = locaiton.users;
7
8
  }
8
9
  }
@@ -1,4 +1,4 @@
1
- import { AccountsService, AttendanceService, DaysOffService, LeaveEmbargoesService, LeaveRequestService, LeaveService, LocationsService, RolesService, ShiftsService, UsersService } from './services/index.js';
1
+ import { AccountsService, AttendanceService, DaysOffService, GroupsService, LeaveEmbargoesService, LeaveRequestService, LeaveService, LocationsService, RolesService, ShiftsService, UsersService } from './services/index.js';
2
2
  import { SDKConfig } from './interfaces/index.js';
3
3
  export declare class RotaCloud {
4
4
  static config: SDKConfig;
@@ -6,6 +6,7 @@ export declare class RotaCloud {
6
6
  accounts: AccountsService;
7
7
  attendance: AttendanceService;
8
8
  daysOff: DaysOffService;
9
+ group: GroupsService;
9
10
  leaveEmbargoes: LeaveEmbargoesService;
10
11
  leaveRequests: LeaveRequestService;
11
12
  leave: LeaveService;
package/dist/rotacloud.js CHANGED
@@ -1,10 +1,11 @@
1
- import { AccountsService, AttendanceService, DaysOffService, LeaveEmbargoesService, LeaveRequestService, LeaveService, LocationsService, RolesService, ShiftsService, UsersService, } from './services/index.js';
1
+ import { AccountsService, AttendanceService, DaysOffService, GroupsService, LeaveEmbargoesService, LeaveRequestService, LeaveService, LocationsService, RolesService, ShiftsService, UsersService, } from './services/index.js';
2
2
  export class RotaCloud {
3
3
  constructor(config) {
4
4
  this.defaultAPIURI = 'https://api.rotacloud.com/v1';
5
5
  this.accounts = new AccountsService();
6
6
  this.attendance = new AttendanceService();
7
7
  this.daysOff = new DaysOffService();
8
+ this.group = new GroupsService();
8
9
  this.leaveEmbargoes = new LeaveEmbargoesService();
9
10
  this.leaveRequests = new LeaveRequestService();
10
11
  this.leave = new LeaveService();
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const Version = { version: "1.0.7" };
1
+ export const Version = { version: "1.0.8" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "engines": {
6
6
  "node": ">=14.17.0"
@@ -9,9 +9,11 @@ export class LatLngObject {
9
9
  export class Location {
10
10
  public id: number;
11
11
  public name: string;
12
+ public users: number[];
12
13
 
13
14
  constructor(locaiton: ApiLocation) {
14
15
  this.id = locaiton.id;
15
16
  this.name = locaiton.name;
17
+ this.users = locaiton.users;
16
18
  }
17
19
  }
package/src/rotacloud.ts CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  AccountsService,
3
3
  AttendanceService,
4
4
  DaysOffService,
5
+ GroupsService,
5
6
  LeaveEmbargoesService,
6
7
  LeaveRequestService,
7
8
  LeaveService,
@@ -19,6 +20,7 @@ export class RotaCloud {
19
20
  public accounts = new AccountsService();
20
21
  public attendance = new AttendanceService();
21
22
  public daysOff = new DaysOffService();
23
+ public group = new GroupsService();
22
24
  public leaveEmbargoes = new LeaveEmbargoesService();
23
25
  public leaveRequests = new LeaveRequestService();
24
26
  public leave = new LeaveService();
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const Version = { version: "1.0.7" }
1
+ export const Version = { version: "1.0.8" }