@agendize/js-agendize-api 1.44.0 → 1.46.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.
@@ -21,6 +21,7 @@ interface Args {
21
21
  end?: Date;
22
22
  fields?: EventFields[];
23
23
  syncToken?: string;
24
+ mergeStaffs?: boolean;
24
25
  }
25
26
  export declare class EventSecuredRepository extends Repository<EventSecuredEntity, Args> {
26
27
  REPOSITORY_NAME: string;
@@ -35,7 +36,7 @@ export declare class EventSecuredRepository extends Repository<EventSecuredEntit
35
36
  updateEvent(bearer: string, account: string, companyId: string, event: EventSecuredEntity, timeZone?: string, force?: boolean): Promise<EventSecuredEntity>;
36
37
  getEvent(bearer: string, organisationEmail: string, eventId: string, showPersonal?: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULT<EventSecuredEntity>>;
37
38
  getCompanyEvent(bearer: string, organisationEmail: string, companyId: string, eventId: string, showPersonal?: boolean): Promise<EventSecuredEntity>;
38
- getAllEvents(bearer: string, organisationEmail: string, userIds: string[], start: Date, end: Date, showPersonal?: boolean, showDeleted?: boolean, timeZone?: string, fields?: EventFields[], syncToken?: string, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<EventSecuredEntity>>;
39
+ getAllEvents(bearer: string, organisationEmail: string, userIds: string[], start: Date, end: Date, showPersonal?: boolean, showDeleted?: boolean, timeZone?: string, fields?: EventFields[], syncToken?: string, mergeStaffs?: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<EventSecuredEntity>>;
39
40
  getEventWithCoverage(bearer: string, organisationEmail: string, userIds: string[], start: Date, end: Date, showPersonal?: boolean, showDeleted?: boolean, timeZone?: string, fields?: EventFields[], mode?: QUERY_TYPE): Promise<QUERY_RESULTS<EventSecuredEntity>>;
40
41
  searchEvents(bearer: string, organisationEmail: string, searchBody: EventSearchBodyEntity, options?: EventSearchOption): Promise<EventSearchPageEntity>;
41
42
  countAppointmentConflict(bearer: string, organisationEmail: string, searchBody: EventSearchBodyEntity): Promise<number>;
@@ -35,5 +35,14 @@ export declare class ExternalEventSecuredRepository extends Repository<EventSecu
35
35
  protected localDelete(args: Args): Promise<void>;
36
36
  protected localBulkDelete(items: EventSecuredEntity[]): Promise<void>;
37
37
  private localDeleteByUser;
38
+ /**
39
+ * Dans certain cas l'api remonte des rdv avec un id type uuid généré à chaque requête.
40
+ * Pour empécher que des rdv soient dupliqués dans la base de données, on vérifie si un événement avec les mêmes dates existe déjà.
41
+ * Cela evite d'avoir plusieurs fois le même rdv dans le calendrier
42
+ * @param events rdv reçu de l'api
43
+ * @param args les paramètres de la requête
44
+ * @private
45
+ */
46
+ private filterSameEventsWithDifferentID;
38
47
  }
39
48
  export {};
@@ -24,6 +24,7 @@ interface Args {
24
24
  companyId: string;
25
25
  serviceGroupId?: string;
26
26
  withDisabledServices?: boolean;
27
+ widgetOrder?: boolean;
27
28
  }
28
29
  export declare class ServiceGroupSecuredRepository extends Repository<ServiceGroupSecuredEntity, Args> {
29
30
  private readonly serviceGroupDb;
@@ -31,7 +32,7 @@ export declare class ServiceGroupSecuredRepository extends Repository<ServiceGro
31
32
  constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
32
33
  dispose(): void;
33
34
  protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService<EMITTER_TYPE>, handler: any): Promise<void>;
34
- getAllServiceGroups(bearer: string, account: string, companyId: string, withDisabledServices?: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<ServiceGroupSecuredEntity>>;
35
+ getAllServiceGroups(bearer: string, account: string, companyId: string, withDisabledServices?: boolean, widgetOrder?: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<ServiceGroupSecuredEntity>>;
35
36
  getServiceGroup(bearer: string, account: string, companyId: string, serviceGroupId: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<ServiceGroupSecuredEntity>>;
36
37
  createServiceGroup(bearer: string, account: string, companyId: string, serviceGroup: ServiceGroupSecuredEntity): Promise<ServiceGroupSecuredEntity>;
37
38
  updateServiceGroup(bearer: string, account: string, companyId: string, serviceGroupId: string, serviceGroup: ServiceGroupSecuredEntity): Promise<ServiceGroupSecuredEntity>;
@@ -10,6 +10,7 @@ interface Args {
10
10
  serviceId?: string;
11
11
  lang?: string;
12
12
  showDeletedDeployment?: boolean;
13
+ sortMode?: string;
13
14
  }
14
15
  export declare class ServiceSecuredRepository extends Repository<ServiceSecuredEntity, Args> {
15
16
  private serviceDb;
@@ -17,7 +18,7 @@ export declare class ServiceSecuredRepository extends Repository<ServiceSecuredE
17
18
  constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
18
19
  dispose(): void;
19
20
  protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService<EMITTER_TYPE>, handler: any): Promise<void>;
20
- getAllServices(bearer: string, account: string, companyId: string, showDeletedDeployment: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<ServiceSecuredEntity>>;
21
+ getAllServices(bearer: string, account: string, companyId: string, showDeletedDeployment: boolean, sortMode?: string, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<ServiceSecuredEntity>>;
21
22
  getService(bearer: string, account: string, companyId: string, serviceId: string, showDeletedDeployment: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULT<ServiceSecuredEntity>>;
22
23
  createService(bearer: string, account: string, companyId: string, service: ServiceSecuredEntity): Promise<ServiceSecuredEntity>;
23
24
  updateService(bearer: string, account: string, companyId: string, serviceId: string, service: ServiceSecuredEntity): Promise<ServiceSecuredEntity>;
@@ -27,6 +27,7 @@ interface Args {
27
27
  userId?: string;
28
28
  organisation?: string;
29
29
  defaultUsers?: boolean;
30
+ mergeStaffs?: boolean;
30
31
  }
31
32
  export declare abstract class UserAbstractSecuredRepository extends Repository<UserEntity, Args> {
32
33
  protected userDb: UserDb;
@@ -35,8 +36,8 @@ export declare abstract class UserAbstractSecuredRepository extends Repository<U
35
36
  protected constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger, repositoryName?: string);
36
37
  protected abstract initUserDb(indexedDb: IndexedDb): UserDb;
37
38
  protected abstract initTeamDb(indexedDb: IndexedDb): CalendarTeamDb;
38
- abstract getAllUsers(bearer: string, organisation?: string, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<UserEntity>>;
39
- getAllTeams(bearer: string, organisation?: string): Promise<QUERY_RESULTS<CalendarTeamEntity>>;
39
+ abstract getAllUsers(bearer: string, organisation?: string, mergeStaffs?: boolean, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<UserEntity>>;
40
+ getAllTeams(bearer: string, organisation?: string, mergeStaffs?: boolean): Promise<QUERY_RESULTS<CalendarTeamEntity>>;
40
41
  getUser(bearer: string, userId: string, organisation?: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<UserEntity>>;
41
42
  protected remoteList(bearer: string, args: Args): Promise<UserEntity[]>;
42
43
  protected remoteGet(bearer: string, args: Args): Promise<UserEntity>;
@@ -24,5 +24,5 @@ export declare class UserDefaultSecuredRepository extends UserAbstractSecuredRep
24
24
  constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
25
25
  protected initTeamDb(indexedDb: IndexedDb): CalendarTeamDb;
26
26
  protected initUserDb(indexedDb: IndexedDb): UserDb;
27
- getAllUsers(bearer: string, organisation?: string, mode?: QUERY_TYPE): Promise<import("@/repository").QUERY_RESULTS<import("../..").UserEntity>>;
27
+ getAllUsers(bearer: string, organisation?: string, mergeStaffs?: boolean, mode?: QUERY_TYPE): Promise<import("@/repository").QUERY_RESULTS<import("../..").UserEntity>>;
28
28
  }
@@ -24,8 +24,8 @@ export declare class UserSecuredRepository extends UserAbstractSecuredRepository
24
24
  constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
25
25
  protected initTeamDb(indexedDb: IndexedDb): CalendarTeamDb;
26
26
  protected initUserDb(indexedDb: IndexedDb): UserDb;
27
- getAllUsers(bearer: string, organisation?: string, mode?: QUERY_TYPE): Promise<import("@/repository").QUERY_RESULTS<import("../..").UserEntity>>;
28
- getAllUsersWithTeam(bearer: string, organisation?: string, mode?: QUERY_TYPE): Promise<{
27
+ getAllUsers(bearer: string, organisation?: string, mergeStaffs?: boolean, mode?: QUERY_TYPE): Promise<import("@/repository").QUERY_RESULTS<import("../..").UserEntity>>;
28
+ getAllUsersWithTeam(bearer: string, organisation?: string, mergeStaffs?: boolean, mode?: QUERY_TYPE): Promise<{
29
29
  users: import("../..").UserEntity[];
30
30
  teams: import("../..").CalendarTeamEntity[];
31
31
  local: boolean;
@@ -16,7 +16,7 @@
16
16
  import HttpClient from '@/service/index';
17
17
  import { ServiceGroupSecuredDto } from "@/data/ServiceGroup";
18
18
  export declare class ServiceGroupSecuredService extends HttpClient {
19
- getAllServiceGroups(bearer: string, account: string, companyId: string, withDisabledServices: boolean): Promise<ServiceGroupSecuredDto[]>;
19
+ getAllServiceGroups(bearer: string, account: string, companyId: string, withDisabledServices: boolean, widgetOrder: boolean): Promise<ServiceGroupSecuredDto[]>;
20
20
  getById(bearer: string, account: string, companyId: string, serviceGroupId: string): Promise<ServiceGroupSecuredDto>;
21
21
  createServiceGroup(bearer: string, account: string, companyId: string, serviceGroup: ServiceGroupSecuredDto): Promise<ServiceGroupSecuredDto>;
22
22
  updateServiceGroup(bearer: string, account: string, companyId: string, serviceGroupId: string, serviceGroup: ServiceGroupSecuredDto): Promise<ServiceGroupSecuredDto>;
@@ -16,7 +16,7 @@
16
16
  import HttpClient from '@/service/index';
17
17
  import { ServiceSecuredDto } from '@/data/Service';
18
18
  export declare class ServiceSecuredService extends HttpClient {
19
- getAllServices(bearer: string, account: string, companyId: string, showDeletedDeployment?: boolean): Promise<ServiceSecuredDto[]>;
19
+ getAllServices(bearer: string, account: string, companyId: string, showDeletedDeployment?: boolean, sortMode?: string): Promise<ServiceSecuredDto[]>;
20
20
  getById(bearer: string, account: string, companyId: string, serviceId: string, showDeletedDeployment?: boolean): Promise<ServiceSecuredDto>;
21
21
  createService(bearer: string, account: string, companyId: string, service: ServiceSecuredDto): Promise<ServiceSecuredDto>;
22
22
  updateService(bearer: string, account: string, companyId: string, serviceId: string, service: ServiceSecuredDto): Promise<ServiceSecuredDto>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agendize/js-agendize-api",
3
- "version": "1.44.0",
3
+ "version": "1.46.0",
4
4
  "description": "JavaScript wrapper for call Agendize API",
5
5
  "type": "module",
6
6
  "private": false,