@agendize/js-agendize-api 1.28.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 +13 -3
- package/dist/data/CompanySettings.d.ts +17 -0
- package/dist/data/Service.d.ts +1 -1
- package/dist/data/account/Permission.d.ts +46 -0
- package/dist/data/conference/Widget.d.ts +2 -0
- package/dist/db/companySettingsDb.d.ts +11 -0
- package/dist/db/index.d.ts +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/js-agendize-api.es.js +5215 -4625
- package/dist/repository/index.d.ts +1 -0
- package/dist/repository/public/servicePublicRepository.d.ts +1 -1
- package/dist/repository/secured/companySettingsSecuredRepository.d.ts +28 -0
- 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/companySettingsSecuredService.d.ts +6 -0
- 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
|
@@ -74,6 +74,8 @@ import { ConferenceRegistrationEntity } from "@/data/conference/Registration";
|
|
|
74
74
|
import { ConferenceTagEntity } from "@/data/conference/ConferenceTag";
|
|
75
75
|
import { ConferenceRegistrationResponseEntity, WidgetEntity } from "@/data/conference/Widget";
|
|
76
76
|
import { LoginRealmEntity } from "@/data/LoginRealm";
|
|
77
|
+
import { CompanySettingsEntity } from "@/data/CompanySettings";
|
|
78
|
+
import { PermissionEntity } from "@/data/account/Permission";
|
|
77
79
|
export interface ApiOptions {
|
|
78
80
|
baseURL: string;
|
|
79
81
|
widgetBaseURL: string;
|
|
@@ -159,6 +161,8 @@ export declare class AgendizeApi {
|
|
|
159
161
|
private dashboardStructureSecuredRepository;
|
|
160
162
|
private dashboardSecuredRepository;
|
|
161
163
|
private crmSettingsSecuredRepository;
|
|
164
|
+
private companySettingsSecuredRepository;
|
|
165
|
+
private permissionsSecuredRepository;
|
|
162
166
|
private indexedDb;
|
|
163
167
|
private companyIdsAccount;
|
|
164
168
|
private formIdsAccount;
|
|
@@ -253,7 +257,7 @@ export declare class AgendizeApi {
|
|
|
253
257
|
results: ServiceEntity[] | undefined;
|
|
254
258
|
local: boolean;
|
|
255
259
|
}>;
|
|
256
|
-
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>;
|
|
257
261
|
getServiceById(companyId: string, serviceId: string, account?: string, mode?: QUERY_TYPE): Promise<{
|
|
258
262
|
result: ServiceEntity | undefined;
|
|
259
263
|
local: boolean;
|
|
@@ -514,9 +518,15 @@ export declare class AgendizeApi {
|
|
|
514
518
|
getAllNotifications(organisationEmail: string, syncToken?: number, scope?: ShortPollingNotificationScope[]): Promise<QUERY_PAGINATED_RESULT<ShortPollingNotificationEntity>>;
|
|
515
519
|
getAllNotificationsLocally(): Promise<ShortPollingNotificationEntity[]>;
|
|
516
520
|
getOrganisationSettings(organisationEmail: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<import(".").SettingsEntity>>;
|
|
517
|
-
getConnectors(organisation: string
|
|
518
|
-
getIntegrations(organisation: string
|
|
521
|
+
getConnectors(organisation: string): Promise<QUERY_RESULTS<ConnectorEntity>>;
|
|
522
|
+
getIntegrations(organisation: string): Promise<QUERY_RESULTS<IntegrationEntity>>;
|
|
519
523
|
deleteLocalExternalEvents(): Promise<void>;
|
|
520
524
|
getDashboardStructure(organisationEmail: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<import(".").DashboardStructureEntity>>;
|
|
521
525
|
getKeyFigures(organisationEmail: string, types: KeyFigureType[], range: string): Promise<import("@/data/dashboard/KeyFigures").KeyFigures>;
|
|
526
|
+
getCompanySettings(organisationEmail: string, companyId: string): Promise<QUERY_RESULT<CompanySettingsEntity>>;
|
|
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>;
|
|
522
532
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class CompanySettingsEntity {
|
|
2
|
+
id: string;
|
|
3
|
+
widget?: CompanySettingsWidgetEntity;
|
|
4
|
+
static fromCompanySettingsDto(dto: CompanySettingsDto, companyId: string): CompanySettingsEntity;
|
|
5
|
+
static toCompanySettingsDto(entity: CompanySettingsEntity): CompanySettingsDto;
|
|
6
|
+
}
|
|
7
|
+
export declare class CompanySettingsWidgetEntity {
|
|
8
|
+
displayCompanyDetails?: boolean;
|
|
9
|
+
static fromCompanySettingsWidgetDto(dto: CompanySettingsWidgetDto): CompanySettingsWidgetEntity;
|
|
10
|
+
static toCompanySettingsWidgetDto(entity: CompanySettingsWidgetEntity): CompanySettingsWidgetDto;
|
|
11
|
+
}
|
|
12
|
+
export declare class CompanySettingsDto {
|
|
13
|
+
widget?: CompanySettingsWidgetDto;
|
|
14
|
+
}
|
|
15
|
+
export declare class CompanySettingsWidgetDto {
|
|
16
|
+
displayCompanyDetails?: boolean;
|
|
17
|
+
}
|
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
|
+
}
|
|
@@ -13,6 +13,7 @@ export declare class WidgetEntity {
|
|
|
13
13
|
privacyConsent?: PrivacyConsentEntity;
|
|
14
14
|
logo?: ImageEntity;
|
|
15
15
|
favicon?: ImageEntity;
|
|
16
|
+
source?: string;
|
|
16
17
|
static fromDto(dto: WidgetDto): WidgetEntity;
|
|
17
18
|
}
|
|
18
19
|
export declare class WidgetDto {
|
|
@@ -23,6 +24,7 @@ export declare class WidgetDto {
|
|
|
23
24
|
privacyConsent?: PrivacyConsentPublicDto;
|
|
24
25
|
logo?: ImageEntity;
|
|
25
26
|
favicon?: ImageEntity;
|
|
27
|
+
source?: string;
|
|
26
28
|
}
|
|
27
29
|
export declare class ConferenceRegistrationResponseEntity {
|
|
28
30
|
id?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IndexedDb } from "@/db/index";
|
|
2
|
+
import { CompanySettingsEntity } from "@/data/CompanySettings";
|
|
3
|
+
export declare class CompanySettingsDb {
|
|
4
|
+
private indexedDb;
|
|
5
|
+
constructor(indexedDb: IndexedDb);
|
|
6
|
+
getSettingsByCompanyId(companyId: string): Promise<CompanySettingsEntity>;
|
|
7
|
+
saveCompanySettings(companySettings: CompanySettingsEntity): Promise<void>;
|
|
8
|
+
saveAllCompanySettings(companySettings: CompanySettingsEntity[]): Promise<void>;
|
|
9
|
+
deleteById(objectId: string): Promise<void>;
|
|
10
|
+
drop(): Promise<void>;
|
|
11
|
+
}
|
package/dist/db/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const TABLE_QUEUE: string;
|
|
|
51
51
|
export declare const TABLE_CUSTOM_STATUS: string;
|
|
52
52
|
export declare const TABLE_CRM_SETTINGS: string;
|
|
53
53
|
export declare const TABLE_DASHBOARD_STRUCTURE: string;
|
|
54
|
+
export declare const TABLE_COMPANY_SETTINGS: string;
|
|
54
55
|
export declare const TABLE_SETTINGS: string;
|
|
55
56
|
export declare class IndexedDb {
|
|
56
57
|
private database;
|
package/dist/index.d.ts
CHANGED
|
@@ -81,10 +81,13 @@ import { ConferenceLocationEntity } from "./data/conference/ConferenceLocation";
|
|
|
81
81
|
import { ConferenceRegistrationResponseEntity, PrivacyConsentEntity, WidgetEntity } from "./data/conference/Widget";
|
|
82
82
|
import { LoginRealmEntity } from "./data/LoginRealm";
|
|
83
83
|
import { NotificationEntity } from "./data/Notification";
|
|
84
|
+
import { CompanySettingsEntity, CompanySettingsWidgetEntity } from "./data/CompanySettings";
|
|
85
|
+
import { setLang } from "@/service";
|
|
84
86
|
export { AgendizeApi } from './agendizeApi';
|
|
85
87
|
export { QUERY_TYPE } from '@/repository';
|
|
86
88
|
export * from './utils/logger';
|
|
87
|
-
|
|
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 };
|
|
88
91
|
export type { SecuredEntity, PublicEntity } from './data/Common';
|
|
89
92
|
export { BodyEntity, SecuredBodyEntity, PublicBodyEntity } from './data/Common';
|
|
90
93
|
export type { ResultStatus } from "./data/FormResultStatus";
|