Skip to content

Commit 9bd6685

Browse files
authored
Merge pull request #9 from ctrl-hub/hydrate-relationships-from-top-level-includes
Hydrate relationships from top level includes
2 parents b9daea9 + 13d307e commit 9bd6685

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+657
-682
lines changed

dist/Client.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ClientConfigInterface } from "./ClientConfig";
22
import { RequestOptions } from "./utils/RequestOptions";
3-
import { Hydrator } from "./utils/Hydrator";
43
import { FormCategoriesService } from "./services/FormCategoriesService";
54
import { RolesService } from "./services/RolesService";
65
import { PermissionsService } from "./services/PermissionsService";
@@ -10,13 +9,12 @@ import { ServiceAccountsService } from "./services/ServiceAccountService";
109
import { ServiceAccountKeysService } from "./services/ServiceAccountKeysService";
1110
import { InternalResponse } from "./types/Response";
1211
import { GroupsService } from "./services/GroupService";
13-
import { VehiclesService } from "@services/VehiclesService";
14-
import { EquipmentService } from "@services/EquipmentService";
12+
import { VehiclesService } from "./services/VehiclesService";
13+
import { EquipmentService } from "./services/EquipmentService";
1514
export declare class Client {
1615
readonly config: ClientConfigInterface;
1716
organisation: string;
1817
services: Record<string, any>;
19-
hydrator: Hydrator;
2018
bearerToken: string;
2119
private tokenPromise;
2220
constructor(config: ClientConfigInterface);

dist/Client.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Requests } from "./utils/Requests";
2-
import { Hydrator } from "./utils/Hydrator";
32
import { FormCategoriesService } from "./services/FormCategoriesService";
43
import { RolesService } from "./services/RolesService";
54
import { PermissionsService } from "./services/PermissionsService";
@@ -8,19 +7,17 @@ import { FormsService } from "./services/FormsService";
87
import { ServiceAccountsService } from "./services/ServiceAccountService";
98
import { ServiceAccountKeysService } from "./services/ServiceAccountKeysService";
109
import { GroupsService } from "./services/GroupService";
11-
import { VehiclesService } from "@services/VehiclesService";
12-
import { EquipmentService } from "@services/EquipmentService";
10+
import { VehiclesService } from "./services/VehiclesService";
11+
import { EquipmentService } from "./services/EquipmentService";
1312
export class Client {
1413
config;
1514
organisation;
1615
services = {};
17-
hydrator;
1816
bearerToken = '';
1917
tokenPromise = null;
2018
constructor(config) {
2119
this.config = config;
2220
this.organisation = "";
23-
this.hydrator = new Hydrator(this.services);
2421
if (config.clientId && config.clientSecret && config.authDomain) {
2522
this.tokenPromise = this.getToken();
2623
}

dist/index.d.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@ export { Client } from './Client';
22
export { ClientConfig } from './ClientConfig';
33
export { Equipment } from './models/Equipment';
44
export { RequestOptions } from './utils/RequestOptions';
5-
export { ServiceAccount } from './models/ServiceAccount';
6-
export { ServiceAccountKey } from './models/ServiceAccountKey';
7-
export { Log } from './models/Log';
5+
export type { InternalResponse } from './types/Response';
6+
/**
7+
* Models
8+
*/
9+
export { Form } from './models/Form';
10+
export { FormCategory } from './models/FormCategory';
811
export { Group } from './models/Group';
12+
export { Log } from './models/Log';
913
export { Permission } from './models/Permission';
14+
export { Role } from './models/Role';
15+
export { ServiceAccount } from './models/ServiceAccount';
16+
export { ServiceAccountKey } from './models/ServiceAccountKey';
17+
export { Submission } from './models/Submission';
18+
export { SubmissionVersion } from './models/SubmissionVersion';
1019
export { Vehicle } from './models/Vehicle';
11-
export type { InternalResponse } from './types/Response';

0 commit comments

Comments
 (0)