@agendize/js-agendize-api 1.29.0 → 1.29.1
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 +9 -3
- package/dist/data/Service.d.ts +1 -1
- package/dist/data/account/Permission.d.ts +46 -0
- package/dist/index.d.ts +3 -1
- package/dist/js-agendize-api.es.js +5333 -4892
- package/dist/repository/index.d.ts +1 -0
- package/dist/repository/public/servicePublicRepository.d.ts +1 -1
- package/dist/repository/secured/connectorsSecuredRepository.d.ts +1 -2
- package/dist/repository/secured/integrationsSecuredRepository.d.ts +1 -1
- package/dist/repository/secured/permissionSecuredRepository.d.ts +45 -0
- package/dist/repository/secured/staffSecuredRepository.d.ts +1 -0
- package/dist/service/index.d.ts +1 -0
- package/dist/service/public/servicePublicService.d.ts +1 -1
- package/dist/service/secured/connectorsSecuredService.d.ts +1 -1
- package/dist/service/secured/integrationsSecuredService.d.ts +1 -1
- package/dist/service/secured/permissionsSecuredService.d.ts +23 -0
- package/package.json +1 -1
package/dist/agendizeApi.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ import { ConferenceTagEntity } from "@/data/conference/ConferenceTag";
|
|
|
75
75
|
import { ConferenceRegistrationResponseEntity, WidgetEntity } from "@/data/conference/Widget";
|
|
76
76
|
import { LoginRealmEntity } from "@/data/LoginRealm";
|
|
77
77
|
import { CompanySettingsEntity } from "@/data/CompanySettings";
|
|
78
|
+
import { PermissionEntity } from "@/data/account/Permission";
|
|
78
79
|
export interface ApiOptions {
|
|
79
80
|
baseURL: string;
|
|
80
81
|
widgetBaseURL: string;
|
|
@@ -161,6 +162,7 @@ export declare class AgendizeApi {
|
|
|
161
162
|
private dashboardSecuredRepository;
|
|
162
163
|
private crmSettingsSecuredRepository;
|
|
163
164
|
private companySettingsSecuredRepository;
|
|
165
|
+
private permissionsSecuredRepository;
|
|
164
166
|
private indexedDb;
|
|
165
167
|
private companyIdsAccount;
|
|
166
168
|
private formIdsAccount;
|
|
@@ -255,7 +257,7 @@ export declare class AgendizeApi {
|
|
|
255
257
|
results: ServiceEntity[] | undefined;
|
|
256
258
|
local: boolean;
|
|
257
259
|
}>;
|
|
258
|
-
getAllServicesAndGroups(companyId?: string, accountId?: string, serviceId?: string, serviceGroupId?: string, staffId?: string, staffGroupId?: string,
|
|
260
|
+
getAllServicesAndGroups(companyId?: string, accountId?: string, serviceId?: string, serviceGroupId?: string, staffId?: string, staffGroupId?: string, ignoreError?: boolean, mode?: QUERY_TYPE): Promise<ServicesListEntity | undefined>;
|
|
259
261
|
getServiceById(companyId: string, serviceId: string, account?: string, mode?: QUERY_TYPE): Promise<{
|
|
260
262
|
result: ServiceEntity | undefined;
|
|
261
263
|
local: boolean;
|
|
@@ -516,11 +518,15 @@ export declare class AgendizeApi {
|
|
|
516
518
|
getAllNotifications(organisationEmail: string, syncToken?: number, scope?: ShortPollingNotificationScope[]): Promise<QUERY_PAGINATED_RESULT<ShortPollingNotificationEntity>>;
|
|
517
519
|
getAllNotificationsLocally(): Promise<ShortPollingNotificationEntity[]>;
|
|
518
520
|
getOrganisationSettings(organisationEmail: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<import(".").SettingsEntity>>;
|
|
519
|
-
getConnectors(organisation: string
|
|
520
|
-
getIntegrations(organisation: string
|
|
521
|
+
getConnectors(organisation: string): Promise<QUERY_RESULTS<ConnectorEntity>>;
|
|
522
|
+
getIntegrations(organisation: string): Promise<QUERY_RESULTS<IntegrationEntity>>;
|
|
521
523
|
deleteLocalExternalEvents(): Promise<void>;
|
|
522
524
|
getDashboardStructure(organisationEmail: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<import(".").DashboardStructureEntity>>;
|
|
523
525
|
getKeyFigures(organisationEmail: string, types: KeyFigureType[], range: string): Promise<import("@/data/dashboard/KeyFigures").KeyFigures>;
|
|
524
526
|
getCompanySettings(organisationEmail: string, companyId: string): Promise<QUERY_RESULT<CompanySettingsEntity>>;
|
|
525
527
|
updateCompanySettings(organisationEmail: string, companyId: string, companySettings: CompanySettingsEntity): Promise<CompanySettingsEntity>;
|
|
528
|
+
getOrganisationPermissions(organisationEmail: string, withLastActivity?: boolean): Promise<QUERY_RESULTS<PermissionEntity>>;
|
|
529
|
+
getUserPermission(organisationEmail: string, userId: string, withLastActivity?: boolean): Promise<QUERY_RESULT<PermissionEntity>>;
|
|
530
|
+
updateUserPermission(organisationEmail: string, userId: string, permission: PermissionEntity): Promise<PermissionEntity>;
|
|
531
|
+
deleteUserPermission(organisationEmail: string, userId: string): Promise<void>;
|
|
526
532
|
}
|
package/dist/data/Service.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare class ServiceSecuredEntity extends SecuredBodyEntity {
|
|
|
135
135
|
customWorkingHours: SettingsPeriodWorkingEntity[];
|
|
136
136
|
constructor();
|
|
137
137
|
static fromServiceDto(dto: ServiceSecuredDto): ServiceSecuredEntity;
|
|
138
|
-
static toServiceDto(entity: ServiceSecuredEntity): ServiceSecuredDto;
|
|
138
|
+
static toServiceDto(entity: ServiceSecuredEntity, lang?: string): ServiceSecuredDto;
|
|
139
139
|
}
|
|
140
140
|
export declare class ServiceSecuredDto {
|
|
141
141
|
id?: string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare class PermissionEntity {
|
|
2
|
+
user: {
|
|
3
|
+
id: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
email: string;
|
|
7
|
+
externalId: string;
|
|
8
|
+
};
|
|
9
|
+
permissions: PermissionRightEntity[];
|
|
10
|
+
lastActivity?: {
|
|
11
|
+
date?: Date;
|
|
12
|
+
};
|
|
13
|
+
static fromPermissionDto(dto: PermissionDto): PermissionEntity;
|
|
14
|
+
static toPermissionDto(entity: PermissionEntity): PermissionDto;
|
|
15
|
+
}
|
|
16
|
+
export declare class PermissionRightEntity {
|
|
17
|
+
role: 'accountAnalytics' | 'schedulingAdministrator' | 'schedulingStaff' | 'schedulingRead' | 'testimonialsModeration' | 'accountAdministrator' | 'accountBilling' | 'accountButtons' | 'accountDataOfficer' | 'accountEmails' | 'accountCalls' | 'accountForms' | 'accountCRM' | 'accountSchedulingAdministrator' | 'accountSchedulingSchedule' | 'accountSchedulingRead' | 'queue' | 'accountConferences' | 'accountWorkflows';
|
|
18
|
+
resource?: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare class PermissionDto {
|
|
25
|
+
user: {
|
|
26
|
+
id: string;
|
|
27
|
+
firstName: string;
|
|
28
|
+
lastName: string;
|
|
29
|
+
email: string;
|
|
30
|
+
externalId: string;
|
|
31
|
+
};
|
|
32
|
+
permissions: {
|
|
33
|
+
role: 'accountAnalytics' | 'schedulingAdministrator' | 'schedulingStaff' | 'schedulingRead' | 'testimonialsModeration' | 'accountAdministrator' | 'accountBilling' | 'accountButtons' | 'accountDataOfficer' | 'accountEmails' | 'accountCalls' | 'accountForms' | 'accountCRM' | 'accountSchedulingAdministrator' | 'accountSchedulingSchedule' | 'accountSchedulingRead' | 'queue' | 'accountConferences' | 'accountWorkflows';
|
|
34
|
+
resource?: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
}[];
|
|
40
|
+
lastActivity?: {
|
|
41
|
+
date?: {
|
|
42
|
+
dateTime: string;
|
|
43
|
+
timeZone?: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -82,10 +82,12 @@ import { ConferenceRegistrationResponseEntity, PrivacyConsentEntity, WidgetEntit
|
|
|
82
82
|
import { LoginRealmEntity } from "./data/LoginRealm";
|
|
83
83
|
import { NotificationEntity } from "./data/Notification";
|
|
84
84
|
import { CompanySettingsEntity, CompanySettingsWidgetEntity } from "./data/CompanySettings";
|
|
85
|
+
import { setLang } from "@/service";
|
|
85
86
|
export { AgendizeApi } from './agendizeApi';
|
|
86
87
|
export { QUERY_TYPE } from '@/repository';
|
|
87
88
|
export * from './utils/logger';
|
|
88
|
-
|
|
89
|
+
import { PermissionEntity, PermissionRightEntity } from "@/data/account/Permission";
|
|
90
|
+
export { setLang, AccountSettingsEntity, AclEntity, ProfileSettingsEntity, CalendarSettingsEntity, CalendarTeamEntity, AddressEntity, ImageEntity, CalendarEntity, ServiceTypeEntity, ContactEntity, ContactPhoneNumberEntity, ContactEmailAddressEntity, ContactAdditionalFieldEntity, ContactTagEntity, ContactAdvancedSearchEntity, type EventEntity, EventSecuredEntity, EventPublicEntity, EventType, EventStatus, FormItemEntity, FormValueEntity, FormResultStatusEntity, FORM_FILE_MAX_SIZE, FORM_FILE_EXTENSIONS, EventUpdateEntity, ApiErrors, AgendizeError, UserEntity, CalendarCompanyEntity, CalendarWorkingDayEntity, CalendarWorkingHourEntity, SettingsWorkingDayEntity, SettingsWorkingHoursEntity, SettingsPeriodWorkingEntity, SettingsPeriodWorkingDayEntity, FreeSlotItemSecuredEntity, PrivacyPolicyEntity, ServiceResourceEntity, StaffFormsEntity, RightsEntity, type SchedulingRight, type SettingsRight, type RightObject, type ReportRight, type QueueRight, type FormRight, type ClientRight, type WorkflowRight, type WorkingPlanningRight, type ConferenceRight, type PlanningRight, GlobalRight, CompanySchedulingRightsEntity, SchedulingRightsEntity, ActivityEntity, NoteEntity, ShortPollingNotificationEntity, NotificationStatusEntity, BrowserStorage, StorageKeys, BrowserStorageItemValue, EmployeeEntity, QueueRegistrationStatus, ResultStatusValues, ShortPollingNotificationEvent, ShortPollingNotificationReport, AppointmentActivityEntity, AppointmentUpdateStaffActivityEntity, AppointmentUpdateFormActivityEntity, AppointmentDeletionActivityEntity, AppointmentCreationActivityEntity, AppointmentUpdateDatesActivityEntity, AppointmentUpdateEndActivityEntity, AppointmentUpdateLocationActivityEntity, AppointmentUpdateNoteActivityEntity, AppointmentUpdateResourceActivityEntity, AppointmentUpdateServiceActivityEntity, AppointmentUpdateStartActivityEntity, AppointmentUpdateStatusActivityEntity, AppointmentUpdateClientActivityEntity, AppointmentChangeTypes, AppointmentActivityType, AppointmentActivitySourceType, TextMessageNotificationActivityEntity, EmailNotificationActivityEntity, FormResultActivityEntity, NoteActivityEntity, ConsentActivityEntity, CommonEnum, Gender, Title, Language, NotificationType, AdditionalFieldsEntity, WidgetUrlCipherEntity, DayProperty, PlanningEntity, PlanningWeekEntity, PlanningDayEntity, PlanningHourEntity, PromoteFieldEntity, PromoteFieldKey, EventFields, ReportsEntity, ReportDashboardEntity, ReportDashboardFilter, CompanyPerformanceEntity, UserSchedulesEntity, CompanyScheduleEntity, ScheduleWorkingDayEntity, ScheduleWorkingHourEntity, valuePromoteFieldFromContact, applyValueToField, getDefaultEventField, jsDateToYYYYMMDD, LogEntity, Action, ActionType, WorkingPlanningEntity, WorkingPlanningDayEntity, StaffWorkingPlanningEntity, OccupancyRateEntity, PeriodWithOccupancy, ChangelogEntity, ChangeEntity, ReportingExportResponseEntity, ReportingExportBodyEntity, ExportStatus, ShortenerEntity, type ConferenceEntity, ConferenceSecuredEntity, ConferenceLocationEntity, type ConferenceTagEntity, ConferenceTagSecuredEntity, ConferenceSubscriptionRulesEntity, type ConferenceSessionEntity, ConferenceSessionSecuredEntity, type ConferenceInviteeEntity, ConferenceInviteeSecuredEntity, type ConferenceSpeakerEntity, ConferenceSpeakerSecuredEntity, type ConferenceFormEntity, type ConferenceRegistrationEntity, ConferenceRegistrationPublicEntity, ConferenceClientEntity, ConferenceRegistrationResponseEntity, PrivacyConsentEntity, AccountLightEntity, ConferenceLightEntity, ConferenceMergedTagEntity, WidgetEntity, getApiErrorValueFromName, type ConferenceRegistrationCancelEntity, ConferenceRegistrationCancelSecuredEntity, ConferenceRegistrationCancelPublicEntity, CustomStatusEntity, ConferenceSessionSearchEntity, ConferenceSessionsSearchEntity, ConferenceSessionsSearchBodyEntity, EventSearchEntity, EventSearchLocationEntity, EventSearchCompanyEntity, EventSearchContactEntity, EventSearchServiceEntity, EventSearchStaffEntity, EventSearchPageEntity, EventSearchBodyEntity, EventSearchStatusEntity, type EventSearchOption, EventSearchBodyCompanyEntity, EventSearchConflictEntity, EventSearchConflictReason, EventSearchConflictSource, ShortPollingNotificationScope, SettingsEntity, IntegrationEntity, ConnectorEntity, DashboardStructureEntity, DashboardWidgetEntity, DashboardType, DashboardKey, ContactMatchingType, CRMSettingsEntity, CRMSettingsSyncEntity, HelpEntity, HelpDataEntity, LoginProviderEntity, WidgetUrlCipherInputEntity, WidgetFormEntity, WidgetFormFieldsAPIProperties, type CompanyEntity, CompanySecuredEntity, CompanyPublicEntity, type StaffEntity, StaffSecuredEntity, StaffPublicEntity, type StaffGroupEntity, StaffGroupSecuredEntity, StaffGroupPublicEntity, type ServiceEntity, ServiceSecuredEntity, ServicePublicEntity, type ServicesListEntity, ServicesListSecuredEntity, ServicesListPublicEntity, type ServiceGroupEntity, ServiceGroupPublicEntity, ServiceGroupSecuredEntity, type QueueEntity, QueueSecuredEntity, QueuePublicEntity, type QueueRegistrationEntity, QueueRegistrationSecuredEntity, QueueRegistrationPublicEntity, type QueueRegistrationResultEntity, QueueRegistrationResultSecuredEntity, QueueRegistrationResultPublicEntity, type FormBuilderEntity, FormBuilderPublicEntity, FormBuilderSecuredEntity, type FormResultEntity, FormResultPublicEntity, FormResultSecuredEntity, type AccountEntity, AccountPublicEntity, AccountSecuredEntity, type FreeSlotEntity, FreeSlotSecuredEntity, FreeSlotPublicEntity, FreeSlotMapPublicEntity, type FreeSlotsRecord, FreeSlotsFilterOptions, LinkEntity, WhiteLabelSettingsPublicEntity, PagePublicEntity, type WhiteLabelRight, LoginRealmEntity, WidgetError, NotificationEntity, CompanySettingsEntity, CompanySettingsWidgetEntity, PermissionEntity, PermissionRightEntity };
|
|
89
91
|
export type { SecuredEntity, PublicEntity } from './data/Common';
|
|
90
92
|
export { BodyEntity, SecuredBodyEntity, PublicBodyEntity } from './data/Common';
|
|
91
93
|
export type { ResultStatus } from "./data/FormResultStatus";
|