@agendize/js-agendize-api 1.29.0 → 1.30.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 +12 -3
- package/dist/data/Service.d.ts +1 -1
- package/dist/data/account/Permission.d.ts +46 -0
- package/dist/data/action/ShareLink.d.ts +51 -0
- package/dist/index.d.ts +4 -1
- package/dist/js-agendize-api.es.js +5547 -4960
- 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/shareLinkSecuredRepository.d.ts +37 -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/dist/service/secured/shareLinkSecuredService.d.ts +20 -0
- package/package.json +1 -1
package/dist/agendizeApi.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ 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";
|
|
79
|
+
import { ShareLinkEntity, ShareLinkResponseItemEntity } from "@/data/action/ShareLink";
|
|
78
80
|
export interface ApiOptions {
|
|
79
81
|
baseURL: string;
|
|
80
82
|
widgetBaseURL: string;
|
|
@@ -161,6 +163,8 @@ export declare class AgendizeApi {
|
|
|
161
163
|
private dashboardSecuredRepository;
|
|
162
164
|
private crmSettingsSecuredRepository;
|
|
163
165
|
private companySettingsSecuredRepository;
|
|
166
|
+
private permissionsSecuredRepository;
|
|
167
|
+
private shareLinkSecuredRepository;
|
|
164
168
|
private indexedDb;
|
|
165
169
|
private companyIdsAccount;
|
|
166
170
|
private formIdsAccount;
|
|
@@ -255,7 +259,7 @@ export declare class AgendizeApi {
|
|
|
255
259
|
results: ServiceEntity[] | undefined;
|
|
256
260
|
local: boolean;
|
|
257
261
|
}>;
|
|
258
|
-
getAllServicesAndGroups(companyId?: string, accountId?: string, serviceId?: string, serviceGroupId?: string, staffId?: string, staffGroupId?: string,
|
|
262
|
+
getAllServicesAndGroups(companyId?: string, accountId?: string, serviceId?: string, serviceGroupId?: string, staffId?: string, staffGroupId?: string, ignoreError?: boolean, mode?: QUERY_TYPE): Promise<ServicesListEntity | undefined>;
|
|
259
263
|
getServiceById(companyId: string, serviceId: string, account?: string, mode?: QUERY_TYPE): Promise<{
|
|
260
264
|
result: ServiceEntity | undefined;
|
|
261
265
|
local: boolean;
|
|
@@ -516,11 +520,16 @@ export declare class AgendizeApi {
|
|
|
516
520
|
getAllNotifications(organisationEmail: string, syncToken?: number, scope?: ShortPollingNotificationScope[]): Promise<QUERY_PAGINATED_RESULT<ShortPollingNotificationEntity>>;
|
|
517
521
|
getAllNotificationsLocally(): Promise<ShortPollingNotificationEntity[]>;
|
|
518
522
|
getOrganisationSettings(organisationEmail: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<import(".").SettingsEntity>>;
|
|
519
|
-
getConnectors(organisation: string
|
|
520
|
-
getIntegrations(organisation: string
|
|
523
|
+
getConnectors(organisation: string): Promise<QUERY_RESULTS<ConnectorEntity>>;
|
|
524
|
+
getIntegrations(organisation: string): Promise<QUERY_RESULTS<IntegrationEntity>>;
|
|
521
525
|
deleteLocalExternalEvents(): Promise<void>;
|
|
522
526
|
getDashboardStructure(organisationEmail: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<import(".").DashboardStructureEntity>>;
|
|
523
527
|
getKeyFigures(organisationEmail: string, types: KeyFigureType[], range: string): Promise<import("@/data/dashboard/KeyFigures").KeyFigures>;
|
|
524
528
|
getCompanySettings(organisationEmail: string, companyId: string): Promise<QUERY_RESULT<CompanySettingsEntity>>;
|
|
525
529
|
updateCompanySettings(organisationEmail: string, companyId: string, companySettings: CompanySettingsEntity): Promise<CompanySettingsEntity>;
|
|
530
|
+
getOrganisationPermissions(organisationEmail: string, withLastActivity?: boolean): Promise<QUERY_RESULTS<PermissionEntity>>;
|
|
531
|
+
getUserPermission(organisationEmail: string, userId: string, withLastActivity?: boolean): Promise<QUERY_RESULT<PermissionEntity>>;
|
|
532
|
+
updateUserPermission(organisationEmail: string, userId: string, permission: PermissionEntity): Promise<PermissionEntity>;
|
|
533
|
+
deleteUserPermission(organisationEmail: string, userId: string): Promise<void>;
|
|
534
|
+
shareALink(organisationEmail: string, shareLinkQuery: ShareLinkEntity): Promise<ShareLinkResponseItemEntity[]>;
|
|
526
535
|
}
|
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
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare class ShareLinkEntity {
|
|
2
|
+
link: {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
recipients: ShareLinkRecipientEntity[];
|
|
6
|
+
static fromDto(dto: ShareLinkDto): ShareLinkEntity;
|
|
7
|
+
static toDto(entity: ShareLinkEntity): ShareLinkDto;
|
|
8
|
+
}
|
|
9
|
+
export interface ShareLinkDto {
|
|
10
|
+
link: {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
recipients: ShareLinkRecipientDto[];
|
|
14
|
+
}
|
|
15
|
+
export declare class ShareLinkRecipientEntity {
|
|
16
|
+
emailAddress?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
externalId?: string;
|
|
19
|
+
firstName?: string;
|
|
20
|
+
lastName?: string;
|
|
21
|
+
static fromDto(dto: ShareLinkRecipientDto): ShareLinkRecipientEntity;
|
|
22
|
+
static toDto(entity: ShareLinkRecipientEntity): ShareLinkRecipientDto;
|
|
23
|
+
}
|
|
24
|
+
export interface ShareLinkRecipientDto {
|
|
25
|
+
emailAddress?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
externalId?: string;
|
|
28
|
+
firstName?: string;
|
|
29
|
+
lastName?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class ShareLinkResponseEntity {
|
|
32
|
+
items: ShareLinkResponseItemEntity[];
|
|
33
|
+
static fromDto(dto: ShareLinkResponseDto): ShareLinkResponseEntity;
|
|
34
|
+
static toDto(entity: ShareLinkResponseEntity, timeZone?: string): ShareLinkResponseDto;
|
|
35
|
+
}
|
|
36
|
+
export declare class ShareLinkResponseItemEntity {
|
|
37
|
+
send: Date;
|
|
38
|
+
recipient: ShareLinkRecipientEntity;
|
|
39
|
+
static fromDto(dto: ShareLinkResponseItemDto): ShareLinkResponseItemEntity;
|
|
40
|
+
static toDto(entity: ShareLinkResponseItemEntity, timeZone?: string): ShareLinkResponseItemDto;
|
|
41
|
+
}
|
|
42
|
+
export interface ShareLinkResponseDto {
|
|
43
|
+
items: ShareLinkResponseItemDto[];
|
|
44
|
+
}
|
|
45
|
+
export interface ShareLinkResponseItemDto {
|
|
46
|
+
sent: {
|
|
47
|
+
dateTime: string;
|
|
48
|
+
timeZone?: string;
|
|
49
|
+
};
|
|
50
|
+
recipient: ShareLinkRecipientDto;
|
|
51
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -82,10 +82,13 @@ 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
|
+
import { ShareLinkResponseEntity, ShareLinkResponseItemEntity, ShareLinkEntity, ShareLinkRecipientEntity } from "@/data/action/ShareLink";
|
|
91
|
+
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, ShareLinkResponseEntity, ShareLinkResponseItemEntity, ShareLinkEntity, ShareLinkRecipientEntity };
|
|
89
92
|
export type { SecuredEntity, PublicEntity } from './data/Common';
|
|
90
93
|
export { BodyEntity, SecuredBodyEntity, PublicBodyEntity } from './data/Common';
|
|
91
94
|
export type { ResultStatus } from "./data/FormResultStatus";
|