@agendize/js-agendize-api 1.38.0 → 1.39.0
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/agendizeApi.d.ts +8 -0
- package/dist/data/CompanySettings.d.ts +28 -0
- package/dist/data/Event.d.ts +2 -1
- package/dist/data/Staff.d.ts +7 -0
- package/dist/data/StaffActions.d.ts +21 -0
- package/dist/data/Vacation.d.ts +38 -0
- package/dist/db/index.d.ts +1 -0
- package/dist/db/vacationDb.d.ts +26 -0
- package/dist/index.d.ts +3 -1
- package/dist/js-agendize-api.es.js +4917 -4603
- package/dist/repository/index.d.ts +1 -0
- package/dist/repository/secured/staffActionsSecuredRepository.d.ts +23 -0
- package/dist/repository/secured/vacationSecuredRepository.d.ts +29 -0
- package/dist/service/secured/staffActionsSecuredService.d.ts +6 -0
- package/dist/service/secured/vacationSecuredService.d.ts +6 -0
- package/package.json +1 -1
|
@@ -45,6 +45,7 @@ export declare const CONFERENCE_CHANNEL: Channel<EMITTER_TYPE>;
|
|
|
45
45
|
export declare const CONFERENCE_TAG_CHANNEL: Channel<EMITTER_TYPE>;
|
|
46
46
|
export declare const CONFERENCE_SESSION_CHANNEL: Channel<EMITTER_TYPE>;
|
|
47
47
|
export declare const ATTENDEE_CHANNEL: Channel<EMITTER_TYPE>;
|
|
48
|
+
export declare const VACATION_CHANNEL: Channel<EMITTER_TYPE>;
|
|
48
49
|
export declare abstract class Repository<T, A> {
|
|
49
50
|
readonly repositoryName: string;
|
|
50
51
|
readonly logger?: Logger;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Repository } from "@/repository";
|
|
2
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
3
|
+
import { Logger } from "@/utils/logger";
|
|
4
|
+
import { StaffCalendarSyncInvitationEntity, StaffCalendarSyncRevokeEntity } from "@/data/StaffActions";
|
|
5
|
+
interface Args {
|
|
6
|
+
}
|
|
7
|
+
export declare class StaffActionsSecuredRepository extends Repository<void, Args> {
|
|
8
|
+
private service;
|
|
9
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, baseURL: string, logger?: Logger);
|
|
10
|
+
sendCalendarSyncInvitation(bearer: string, organisation: string, companyId: string, staffId: string, entity: StaffCalendarSyncInvitationEntity): Promise<void>;
|
|
11
|
+
revokeCalendarSync(bearer: string, organisation: string, companyId: string, staffId: string, entity: StaffCalendarSyncRevokeEntity): Promise<void>;
|
|
12
|
+
protected remoteGet(bearer: string, args: Args): Promise<void>;
|
|
13
|
+
protected remoteList(bearer: string, args: Args): Promise<void[]>;
|
|
14
|
+
protected remoteCreate(bearer: string, args: Args, item: void): Promise<void>;
|
|
15
|
+
protected remoteUpdate(bearer: string, args: Args, item: void): Promise<void>;
|
|
16
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
17
|
+
protected localList(args: Args): Promise<void[]>;
|
|
18
|
+
protected localGet(args: Args): Promise<void>;
|
|
19
|
+
protected localBulkSave(args: Args, items: void[]): Promise<void>;
|
|
20
|
+
protected localDelete(args: Args): Promise<void>;
|
|
21
|
+
protected localBulkDelete(items: void[]): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EMITTER_TYPE, QUERY_TYPE, Repository } from "@/repository";
|
|
2
|
+
import { VacationContainerEntity, VacationEntity, VacationsFilter } from "@/data/Vacation";
|
|
3
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
4
|
+
import { IndexedDb } from "@/db";
|
|
5
|
+
import { Logger } from "@/utils/logger";
|
|
6
|
+
import { PubSubService } from "type-pubsub";
|
|
7
|
+
interface Args {
|
|
8
|
+
account: string;
|
|
9
|
+
filter?: VacationsFilter;
|
|
10
|
+
}
|
|
11
|
+
export declare class VacationSecuredRepository extends Repository<VacationContainerEntity, Args> {
|
|
12
|
+
private vacationSecuredService;
|
|
13
|
+
private vacationDb;
|
|
14
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
15
|
+
createVacations(bearer: string, account: string, vacations: VacationEntity[]): Promise<VacationEntity[]>;
|
|
16
|
+
getVacations(bearer: string, account: string, filter: VacationsFilter, mode?: QUERY_TYPE): Promise<VacationEntity[]>;
|
|
17
|
+
protected remoteGet(bearer: string, args: Args): Promise<VacationContainerEntity>;
|
|
18
|
+
protected remoteList(bearer: string, args: Args): Promise<VacationContainerEntity[]>;
|
|
19
|
+
protected remoteCreate(bearer: string, args: Args, item: VacationContainerEntity): Promise<VacationContainerEntity>;
|
|
20
|
+
protected remoteUpdate(bearer: string, args: Args, item: VacationContainerEntity): Promise<VacationContainerEntity>;
|
|
21
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
22
|
+
protected localList(args: Args): Promise<VacationContainerEntity[]>;
|
|
23
|
+
protected localGet(args: Args): Promise<VacationContainerEntity>;
|
|
24
|
+
protected localBulkSave(args: Args, items: VacationContainerEntity[]): Promise<void>;
|
|
25
|
+
protected localDelete(args: Args): Promise<void>;
|
|
26
|
+
protected localBulkDelete(items: VacationContainerEntity[]): Promise<void>;
|
|
27
|
+
protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService<EMITTER_TYPE>, handler: any): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import HttpClient from "@/service";
|
|
2
|
+
import { StaffCalendarSyncInvitationDto, StaffCalendarSyncRevokeDto } from "@/data/StaffActions";
|
|
3
|
+
export declare class StaffActionsSecuredService extends HttpClient {
|
|
4
|
+
sendCalendarSyncInvitation(bearer: string, account: string, companyId: string, staffId: string, dto: StaffCalendarSyncInvitationDto): Promise<void>;
|
|
5
|
+
revokeCalendarSync(bearer: string, account: string, companyId: string, staffId: string, dto: StaffCalendarSyncRevokeDto): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import HttpClient from "@/service";
|
|
2
|
+
import { VacationContainerDto, VacationsFilter } from "@/data/Vacation";
|
|
3
|
+
export declare class VacationSecuredService extends HttpClient {
|
|
4
|
+
getVacations(bearer: string, account: string, filter: VacationsFilter, timeZone?: string): Promise<VacationContainerDto>;
|
|
5
|
+
createVacations(bearer: string, account: string, vacations: VacationContainerDto): Promise<VacationContainerDto>;
|
|
6
|
+
}
|