Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions dist/Client.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ClientConfigInterface } from "./ClientConfig";
import { RequestOptions } from "./utils/RequestOptions";
import { Hydrator } from "./utils/Hydrator";
import { FormCategoriesService } from "./services/FormCategoriesService";
import { RolesService } from "./services/RolesService";
import { PermissionsService } from "./services/PermissionsService";
Expand All @@ -10,13 +9,12 @@ import { ServiceAccountsService } from "./services/ServiceAccountService";
import { ServiceAccountKeysService } from "./services/ServiceAccountKeysService";
import { InternalResponse } from "./types/Response";
import { GroupsService } from "./services/GroupService";
import { VehiclesService } from "@services/VehiclesService";
import { EquipmentService } from "@services/EquipmentService";
import { VehiclesService } from "./services/VehiclesService";
import { EquipmentService } from "./services/EquipmentService";
export declare class Client {
readonly config: ClientConfigInterface;
organisation: string;
services: Record<string, any>;
hydrator: Hydrator;
bearerToken: string;
private tokenPromise;
constructor(config: ClientConfigInterface);
Expand Down
7 changes: 2 additions & 5 deletions dist/Client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Requests } from "./utils/Requests";
import { Hydrator } from "./utils/Hydrator";
import { FormCategoriesService } from "./services/FormCategoriesService";
import { RolesService } from "./services/RolesService";
import { PermissionsService } from "./services/PermissionsService";
Expand All @@ -8,19 +7,17 @@ import { FormsService } from "./services/FormsService";
import { ServiceAccountsService } from "./services/ServiceAccountService";
import { ServiceAccountKeysService } from "./services/ServiceAccountKeysService";
import { GroupsService } from "./services/GroupService";
import { VehiclesService } from "@services/VehiclesService";
import { EquipmentService } from "@services/EquipmentService";
import { VehiclesService } from "./services/VehiclesService";
import { EquipmentService } from "./services/EquipmentService";
export class Client {
config;
organisation;
services = {};
hydrator;
bearerToken = '';
tokenPromise = null;
constructor(config) {
this.config = config;
this.organisation = "";
this.hydrator = new Hydrator(this.services);
if (config.clientId && config.clientSecret && config.authDomain) {
this.tokenPromise = this.getToken();
}
Expand Down
16 changes: 12 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ export { Client } from './Client';
export { ClientConfig } from './ClientConfig';
export { Equipment } from './models/Equipment';
export { RequestOptions } from './utils/RequestOptions';
export { ServiceAccount } from './models/ServiceAccount';
export { ServiceAccountKey } from './models/ServiceAccountKey';
export { Log } from './models/Log';
export type { InternalResponse } from './types/Response';
/**
* Models
*/
export { Form } from './models/Form';
export { FormCategory } from './models/FormCategory';
export { Group } from './models/Group';
export { Log } from './models/Log';
export { Permission } from './models/Permission';
export { Role } from './models/Role';
export { ServiceAccount } from './models/ServiceAccount';
export { ServiceAccountKey } from './models/ServiceAccountKey';
export { Submission } from './models/Submission';
export { SubmissionVersion } from './models/SubmissionVersion';
export { Vehicle } from './models/Vehicle';
export type { InternalResponse } from './types/Response';
Loading