@agendize/js-agendize-api 1.28.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/README.md +23 -0
- package/dist/agendizeApi.d.ts +522 -0
- package/dist/browserStorage/browserStorage.d.ts +43 -0
- package/dist/config.d.ts +19 -0
- package/dist/data/Account.d.ts +180 -0
- package/dist/data/Activity.d.ts +443 -0
- package/dist/data/Address.d.ts +46 -0
- package/dist/data/Batch.d.ts +41 -0
- package/dist/data/CRMSettings.d.ts +35 -0
- package/dist/data/Calendar.d.ts +78 -0
- package/dist/data/Changelog.d.ts +20 -0
- package/dist/data/Common.d.ts +15 -0
- package/dist/data/CommonEnum.d.ts +44 -0
- package/dist/data/Company.d.ts +157 -0
- package/dist/data/CompanyPerformance.d.ts +26 -0
- package/dist/data/Connector.d.ts +26 -0
- package/dist/data/Consent.d.ts +4 -0
- package/dist/data/Contact.d.ts +202 -0
- package/dist/data/CustomStatus.d.ts +16 -0
- package/dist/data/Employee.d.ts +27 -0
- package/dist/data/Error.d.ts +65 -0
- package/dist/data/Event.d.ts +216 -0
- package/dist/data/EventSearch.d.ts +217 -0
- package/dist/data/EventUpdate.d.ts +9 -0
- package/dist/data/Form.d.ts +224 -0
- package/dist/data/FormResult.d.ts +61 -0
- package/dist/data/FormResultStatus.d.ts +23 -0
- package/dist/data/FreeSlot.d.ts +71 -0
- package/dist/data/Help.d.ts +18 -0
- package/dist/data/Image.d.ts +24 -0
- package/dist/data/Integration.d.ts +36 -0
- package/dist/data/Link.d.ts +10 -0
- package/dist/data/Log.d.ts +77 -0
- package/dist/data/LoginProvider.d.ts +17 -0
- package/dist/data/LoginRealm.d.ts +20 -0
- package/dist/data/Note.d.ts +27 -0
- package/dist/data/Notification.d.ts +51 -0
- package/dist/data/NotificationStatus.d.ts +5 -0
- package/dist/data/PrivacyPolicy.d.ts +43 -0
- package/dist/data/Queue.d.ts +54 -0
- package/dist/data/QueueRegistration.d.ts +101 -0
- package/dist/data/Reporting.d.ts +42 -0
- package/dist/data/ReportingExportBody.d.ts +170 -0
- package/dist/data/ReportingExportResponse.d.ts +15 -0
- package/dist/data/Rights.d.ts +123 -0
- package/dist/data/Service.d.ts +213 -0
- package/dist/data/ServiceGroup.d.ts +57 -0
- package/dist/data/ServiceResource.d.ts +26 -0
- package/dist/data/Settings.d.ts +12 -0
- package/dist/data/ShortPollingNotification.d.ts +25 -0
- package/dist/data/Shortener.d.ts +8 -0
- package/dist/data/Staff.d.ts +115 -0
- package/dist/data/StaffForms.d.ts +42 -0
- package/dist/data/StaffGroup.d.ts +58 -0
- package/dist/data/User.d.ts +84 -0
- package/dist/data/WidgetUrlCipher.d.ts +23 -0
- package/dist/data/WorkingHours.d.ts +94 -0
- package/dist/data/conference/Conference.d.ts +156 -0
- package/dist/data/conference/ConferenceForm.d.ts +36 -0
- package/dist/data/conference/ConferenceInvitee.d.ts +31 -0
- package/dist/data/conference/ConferenceLocation.d.ts +36 -0
- package/dist/data/conference/ConferenceSpeaker.d.ts +28 -0
- package/dist/data/conference/ConferenceSubscriptionRules.d.ts +12 -0
- package/dist/data/conference/ConferenceTag.d.ts +29 -0
- package/dist/data/conference/Registration.d.ts +56 -0
- package/dist/data/conference/RegistrationCancel.d.ts +26 -0
- package/dist/data/conference/RegistrationClient.d.ts +16 -0
- package/dist/data/conference/Session.d.ts +115 -0
- package/dist/data/conference/Widget.d.ts +92 -0
- package/dist/data/dashboard/DashboardStructure.d.ts +42 -0
- package/dist/data/dashboard/KeyFigures.d.ts +9 -0
- package/dist/data/planning/Planning.d.ts +17 -0
- package/dist/data/planning/PlanningDay.d.ts +12 -0
- package/dist/data/planning/PlanningHour.d.ts +10 -0
- package/dist/data/planning/PlanningWeek.d.ts +13 -0
- package/dist/data/scheduling/SchedulingRights.d.ts +40 -0
- package/dist/data/scheduling/WorkingPlanning.d.ts +119 -0
- package/dist/data/scheduling/schedule/CompanySchedule.d.ts +19 -0
- package/dist/data/scheduling/schedule/ScheduleWorkingHours.d.ts +18 -0
- package/dist/data/scheduling/schedule/UserSchedules.d.ts +20 -0
- package/dist/data/shortPollingNotification/ShortPollingNotificationEvent.d.ts +58 -0
- package/dist/data/shortPollingNotification/ShortPollingNotificationObject.d.ts +4 -0
- package/dist/data/shortPollingNotification/ShortPollingNotificationReport.d.ts +8 -0
- package/dist/db/DashboardStructureDb.d.ts +12 -0
- package/dist/db/calendarDb.d.ts +26 -0
- package/dist/db/calendarTeamDb.d.ts +27 -0
- package/dist/db/calendarTeamDefaultDb.d.ts +20 -0
- package/dist/db/companyDb.d.ts +26 -0
- package/dist/db/conferenceDb.d.ts +26 -0
- package/dist/db/conferenceInviteeDb.d.ts +27 -0
- package/dist/db/conferenceRegistrationDb.d.ts +11 -0
- package/dist/db/conferenceSessionDb.d.ts +27 -0
- package/dist/db/conferenceSpeakerDb.d.ts +27 -0
- package/dist/db/conferenceTagDb.d.ts +12 -0
- package/dist/db/contactDb.d.ts +26 -0
- package/dist/db/crmSettingsDb.d.ts +9 -0
- package/dist/db/customStatusDb.d.ts +13 -0
- package/dist/db/eventDb.d.ts +29 -0
- package/dist/db/externalEventDb.d.ts +26 -0
- package/dist/db/formBuilderDb.d.ts +26 -0
- package/dist/db/icsEventDb.d.ts +24 -0
- package/dist/db/index.d.ts +72 -0
- package/dist/db/noteDb.d.ts +27 -0
- package/dist/db/notificationDb.d.ts +9 -0
- package/dist/db/notificationStatusDb.d.ts +26 -0
- package/dist/db/planningDb.d.ts +27 -0
- package/dist/db/privacyPolicyDb.d.ts +24 -0
- package/dist/db/promoteFieldDb.d.ts +9 -0
- package/dist/db/queueDb.d.ts +27 -0
- package/dist/db/rightsDb.d.ts +25 -0
- package/dist/db/serviceDb.d.ts +28 -0
- package/dist/db/serviceGroupDb.d.ts +31 -0
- package/dist/db/serviceResourceDb.d.ts +27 -0
- package/dist/db/settingsDb.d.ts +24 -0
- package/dist/db/shortPollingNotificationDb.d.ts +13 -0
- package/dist/db/sseNotificationDb.d.ts +0 -0
- package/dist/db/staffDb.d.ts +28 -0
- package/dist/db/staffFormsDb.d.ts +25 -0
- package/dist/db/staffGroupDb.d.ts +32 -0
- package/dist/db/userDb.d.ts +27 -0
- package/dist/db/userDefaultDb.d.ts +20 -0
- package/dist/db/userDirectoryDb.d.ts +28 -0
- package/dist/db/widgetFormDb.d.ts +25 -0
- package/dist/eventFetchedMeta/eventMeta.d.ts +24 -0
- package/dist/eventFetchedMeta/eventMetaStorage.d.ts +63 -0
- package/dist/index.d.ts +91 -0
- package/dist/js-agendize-api.es.js +28770 -0
- package/dist/repository/index.d.ts +84 -0
- package/dist/repository/public/accountPublicRepository.d.ts +39 -0
- package/dist/repository/public/companyPublicRepository.d.ts +23 -0
- package/dist/repository/public/conferencePublicRepository.d.ts +26 -0
- package/dist/repository/public/customStatusPublicRepository.d.ts +28 -0
- package/dist/repository/public/eventPublicRepository.d.ts +39 -0
- package/dist/repository/public/formPublicRepository.d.ts +25 -0
- package/dist/repository/public/freeSlotPublicRepository.d.ts +40 -0
- package/dist/repository/public/queuePublicRepository.d.ts +22 -0
- package/dist/repository/public/queueRegistrationPublicRepository.d.ts +22 -0
- package/dist/repository/public/registrationPublicRepository.d.ts +22 -0
- package/dist/repository/public/servicePublicRepository.d.ts +24 -0
- package/dist/repository/public/sessionPublicRepository.d.ts +23 -0
- package/dist/repository/public/staffGroupPublicRepository.d.ts +24 -0
- package/dist/repository/public/staffPublicRepository.d.ts +24 -0
- package/dist/repository/public/widgetPublicRepository.d.ts +26 -0
- package/dist/repository/secured/CRMSettingsSecuredRepository.d.ts +25 -0
- package/dist/repository/secured/accountSecuredRepository.d.ts +44 -0
- package/dist/repository/secured/activitySecuredRepository.d.ts +43 -0
- package/dist/repository/secured/additionalFieldsSecuredRepository.d.ts +24 -0
- package/dist/repository/secured/calendarSecuredRepository.d.ts +33 -0
- package/dist/repository/secured/changelogSecuredRepository.d.ts +24 -0
- package/dist/repository/secured/companyPerformanceSecuredRepository.d.ts +37 -0
- package/dist/repository/secured/companySecuredRepository.d.ts +32 -0
- package/dist/repository/secured/conferenceInviteeSecuredRepository.d.ts +47 -0
- package/dist/repository/secured/conferenceRegistrationSecuredRepository.d.ts +39 -0
- package/dist/repository/secured/conferenceSecuredRepository.d.ts +50 -0
- package/dist/repository/secured/conferenceSessionSecuredRepository.d.ts +49 -0
- package/dist/repository/secured/conferenceSpeakerSecuredRepository.d.ts +50 -0
- package/dist/repository/secured/conferenceTagSecuredRepository.d.ts +31 -0
- package/dist/repository/secured/connectorsSecuredRepository.d.ts +25 -0
- package/dist/repository/secured/contactExternalSecuredRepository.d.ts +27 -0
- package/dist/repository/secured/contactSecuredRepository.d.ts +38 -0
- package/dist/repository/secured/customStatusSecuredRepository.d.ts +32 -0
- package/dist/repository/secured/dasboardStructureSecuredRepository.d.ts +25 -0
- package/dist/repository/secured/dashboardSecuredRepository.d.ts +20 -0
- package/dist/repository/secured/eventSecuredRepository.d.ts +66 -0
- package/dist/repository/secured/exportAppointmentsSecuredRepository.d.ts +25 -0
- package/dist/repository/secured/exportCalendarSecuredRepository.d.ts +28 -0
- package/dist/repository/secured/externalEventSecuredRepository.d.ts +39 -0
- package/dist/repository/secured/formBuilderSecuredRepository.d.ts +46 -0
- package/dist/repository/secured/formResultSecuredRepository.d.ts +31 -0
- package/dist/repository/secured/formResultStatusSecuredRepository.d.ts +30 -0
- package/dist/repository/secured/freeSlotSecuredRepository.d.ts +43 -0
- package/dist/repository/secured/icsEventSecuredRepository.d.ts +34 -0
- package/dist/repository/secured/integrationsSecuredRepository.d.ts +24 -0
- package/dist/repository/secured/logSecuredRepository.d.ts +25 -0
- package/dist/repository/secured/noteSecuredRepository.d.ts +27 -0
- package/dist/repository/secured/notificationSecuredRepository.d.ts +27 -0
- package/dist/repository/secured/notificationStatusSecuredRepository.d.ts +40 -0
- package/dist/repository/secured/planningSecuredRepository.d.ts +46 -0
- package/dist/repository/secured/privacyPolicySecuredRepository.d.ts +41 -0
- package/dist/repository/secured/promoteFieldSecuredRepository.d.ts +26 -0
- package/dist/repository/secured/queueRegistrationSecuredRepository.d.ts +46 -0
- package/dist/repository/secured/queueSecuredRepository.d.ts +46 -0
- package/dist/repository/secured/reportingSecuredRepository.d.ts +42 -0
- package/dist/repository/secured/rightsSecuredRepository.d.ts +40 -0
- package/dist/repository/secured/scheduleSecuredRepository.d.ts +25 -0
- package/dist/repository/secured/schedulingRightsSecuredRepository.d.ts +26 -0
- package/dist/repository/secured/serviceGroupSecuredRepository.d.ts +50 -0
- package/dist/repository/secured/serviceResourceSecuredRepository.d.ts +50 -0
- package/dist/repository/secured/serviceSecuredRepository.d.ts +35 -0
- package/dist/repository/secured/settingsSecuredRepository.d.ts +27 -0
- package/dist/repository/secured/shortPollingNotificationSecuredRepository.d.ts +31 -0
- package/dist/repository/secured/shortenerSecuredRepository.d.ts +39 -0
- package/dist/repository/secured/sseNotificationSecuredRepository.d.ts +0 -0
- package/dist/repository/secured/staffFormsSecuredRepository.d.ts +40 -0
- package/dist/repository/secured/staffGroupSecuredRepository.d.ts +50 -0
- package/dist/repository/secured/staffSecuredRepository.d.ts +40 -0
- package/dist/repository/secured/tagSecuredRepository.d.ts +24 -0
- package/dist/repository/secured/userAbstractSecuredRepository.d.ts +55 -0
- package/dist/repository/secured/userDefaultSecuredRepository.d.ts +28 -0
- package/dist/repository/secured/userDirectorySecuredRepository.d.ts +41 -0
- package/dist/repository/secured/userSecuredRepository.d.ts +33 -0
- package/dist/repository/secured/widgetFormSecuredRepository.d.ts +45 -0
- package/dist/repository/secured/widgetUrlCipherSecuredRepository.d.ts +46 -0
- package/dist/repository/secured/workingPlanningSecuredRepository.d.ts +28 -0
- package/dist/service/index.d.ts +46 -0
- package/dist/service/items/EventFields.d.ts +30 -0
- package/dist/service/public/WidgetError.d.ts +7 -0
- package/dist/service/public/accountPublicService.d.ts +20 -0
- package/dist/service/public/companyPublicService.d.ts +5 -0
- package/dist/service/public/conferencePublicService.d.ts +6 -0
- package/dist/service/public/customStatusPublicService.d.ts +5 -0
- package/dist/service/public/eventPublicService.d.ts +29 -0
- package/dist/service/public/formPublicService.d.ts +7 -0
- package/dist/service/public/freeSlotPublicService.d.ts +20 -0
- package/dist/service/public/queueInscriptionPublicService.d.ts +5 -0
- package/dist/service/public/queuePublicService.d.ts +5 -0
- package/dist/service/public/registrationPublicService.d.ts +8 -0
- package/dist/service/public/servicePublicService.d.ts +21 -0
- package/dist/service/public/sessionPublicService.d.ts +5 -0
- package/dist/service/public/staffGroupPublicService.d.ts +6 -0
- package/dist/service/public/staffPublicService.d.ts +6 -0
- package/dist/service/public/widgetPublicService.d.ts +5 -0
- package/dist/service/public/widgetResponse.d.ts +3 -0
- package/dist/service/secured/FormResultSecuredService.d.ts +8 -0
- package/dist/service/secured/accountSecuredService.d.ts +23 -0
- package/dist/service/secured/activitySecuredService.d.ts +22 -0
- package/dist/service/secured/additionalFieldsSecuredService.d.ts +5 -0
- package/dist/service/secured/authenticationSecuredService.d.ts +56 -0
- package/dist/service/secured/batchSecuredService.d.ts +20 -0
- package/dist/service/secured/calendarSecuredService.d.ts +28 -0
- package/dist/service/secured/changelogSecuredService.d.ts +20 -0
- package/dist/service/secured/companyPerformanceSecuredService.d.ts +20 -0
- package/dist/service/secured/companySecuredService.d.ts +26 -0
- package/dist/service/secured/conferenceInviteeSecuredService.d.ts +25 -0
- package/dist/service/secured/conferenceRegistrationSecuredService.d.ts +13 -0
- package/dist/service/secured/conferenceSecuredService.d.ts +25 -0
- package/dist/service/secured/conferenceSessionSecuredService.d.ts +26 -0
- package/dist/service/secured/conferenceSpeakerSecuredService.d.ts +30 -0
- package/dist/service/secured/conferenceTagSecuredService.d.ts +10 -0
- package/dist/service/secured/connectorsSecuredService.d.ts +5 -0
- package/dist/service/secured/contactExternalSecuredService.d.ts +21 -0
- package/dist/service/secured/contactSecuredService.d.ts +26 -0
- package/dist/service/secured/crmSettingsSecuredService.d.ts +5 -0
- package/dist/service/secured/customStatusSecuredService.d.ts +9 -0
- package/dist/service/secured/dashboardSecuredService.d.ts +5 -0
- package/dist/service/secured/dashboardStructureSecuredService.d.ts +5 -0
- package/dist/service/secured/eventSecuredService.d.ts +44 -0
- package/dist/service/secured/exportAppointmentsSecuredService.d.ts +7 -0
- package/dist/service/secured/exportCalendarSecuredService.d.ts +5 -0
- package/dist/service/secured/formBuilderSecuredService.d.ts +23 -0
- package/dist/service/secured/formResultStatusSecuredService.d.ts +6 -0
- package/dist/service/secured/freeSlotSecuredService.d.ts +20 -0
- package/dist/service/secured/freeStaffSecuredService.d.ts +19 -0
- package/dist/service/secured/integrationsSecuredService.d.ts +5 -0
- package/dist/service/secured/logSecuredService.d.ts +19 -0
- package/dist/service/secured/noteSecuredService.d.ts +22 -0
- package/dist/service/secured/notificationSecuredService.d.ts +6 -0
- package/dist/service/secured/planningSecuredService.d.ts +25 -0
- package/dist/service/secured/privacyPolicySecuredService.d.ts +20 -0
- package/dist/service/secured/promoteFieldSecuredService.d.ts +5 -0
- package/dist/service/secured/queueRegistrationSecuredService.d.ts +23 -0
- package/dist/service/secured/queueSecuredService.d.ts +25 -0
- package/dist/service/secured/reportingSecuredService.d.ts +20 -0
- package/dist/service/secured/rightsSecuredService.d.ts +20 -0
- package/dist/service/secured/scheduleSecuredService.d.ts +5 -0
- package/dist/service/secured/schedulingRightsSecuredService.d.ts +7 -0
- package/dist/service/secured/serviceGroupSecuredService.d.ts +25 -0
- package/dist/service/secured/serviceResourceSecuredService.d.ts +25 -0
- package/dist/service/secured/serviceSecuredService.d.ts +25 -0
- package/dist/service/secured/settingsSecuredService.d.ts +20 -0
- package/dist/service/secured/shortPollingNotificationSecuredService.d.ts +9 -0
- package/dist/service/secured/shortenerSecuredService.d.ts +20 -0
- package/dist/service/secured/staffFormsSecuredService.d.ts +20 -0
- package/dist/service/secured/staffGroupSecuredService.d.ts +25 -0
- package/dist/service/secured/staffSecuredService.d.ts +26 -0
- package/dist/service/secured/tagSecuredService.d.ts +5 -0
- package/dist/service/secured/userDirectorySecuredService.d.ts +20 -0
- package/dist/service/secured/userSecuredService.d.ts +33 -0
- package/dist/service/secured/widgetFormSecuredService.d.ts +26 -0
- package/dist/service/secured/widgetUrlCipherSecuredService.d.ts +21 -0
- package/dist/service/secured/workingPlanningSecuredService.d.ts +6 -0
- package/dist/utils/axiosLoggerBuilder.d.ts +11 -0
- package/dist/utils/colorManager.d.ts +7 -0
- package/dist/utils/date.d.ts +12 -0
- package/dist/utils/encoding.d.ts +5 -0
- package/dist/utils/formUtils.d.ts +4 -0
- package/dist/utils/logger.d.ts +40 -0
- package/dist/utils/pkceUtils.d.ts +10 -0
- package/dist/utils/widgetForms.d.ts +6 -0
- package/package.json +67 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2022 Agendize All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at.
|
|
7
|
+
*
|
|
8
|
+
* Http://www.apache.org/licenses/LICENSE-2.0.
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum ApiErrors {
|
|
17
|
+
UNKOWN = 0,
|
|
18
|
+
INTERNAL_ERROR = 1,
|
|
19
|
+
NOT_AUTHORIZED = 2,
|
|
20
|
+
INVALID_PARAMETER = 3,
|
|
21
|
+
UNKNOWN_ENTITY = 4,
|
|
22
|
+
INSUFFICIENT_RIGHT = 5,
|
|
23
|
+
NOT_IMPLEMENTED = 6,
|
|
24
|
+
CREDENTIAL_ERROR = 100,
|
|
25
|
+
USER_ACCOUNT_LOCKED = 101,
|
|
26
|
+
PASSWORD_POLICY_ERROR = 102,
|
|
27
|
+
STAFF_NOT_AVAILABLE = 1000,
|
|
28
|
+
MAX_APPOINTMENT_DAILY = 1001,
|
|
29
|
+
MAX_APPOINTMENT_WEEKLY = 1002,
|
|
30
|
+
APPOINTMENT_PERIOD_RULE = 1003,
|
|
31
|
+
RESOURCE_NOT_AVAILABLE = 1004,
|
|
32
|
+
DATE_NOT_AVAILABLE = 1005,
|
|
33
|
+
USER_BLOCKED = 1006,
|
|
34
|
+
ACCOUNT_NOT_FOUND = 2000,
|
|
35
|
+
ACCOUNT_DISABLED = 3003,
|
|
36
|
+
CONFERENCE_SESSION_FULL = 4000,
|
|
37
|
+
ERROR_NO_STAFF = 2300,
|
|
38
|
+
ERROR_CLIENT_LOCKED = 2303,
|
|
39
|
+
CONFERENCE_INVALID_CONFERENCE = 26001,
|
|
40
|
+
CONFERENCE_INVALID_SESSION = 26002,
|
|
41
|
+
CONFERENCE_INVALID_NUMBER_OF_SEATS = 26003,
|
|
42
|
+
CONFERENCE_INVALID_REGISTRATION = 26004,
|
|
43
|
+
CONFERENCE_INVALID_SESSION_PAST = 26005,
|
|
44
|
+
CONFERENCE_CLOSED_SESSION = 26006,
|
|
45
|
+
CONFERENCE_SESSION_CANCELLED = 26009
|
|
46
|
+
}
|
|
47
|
+
export declare function getErrorCode(apiName: string, dto: ErrorDto): ApiErrors;
|
|
48
|
+
export declare class ErrorDto {
|
|
49
|
+
errorCode?: number;
|
|
50
|
+
reason: string;
|
|
51
|
+
code: number;
|
|
52
|
+
message: string;
|
|
53
|
+
'az-code'?: number;
|
|
54
|
+
error?: string;
|
|
55
|
+
errors?: ErrorDto[];
|
|
56
|
+
}
|
|
57
|
+
export declare class NotFoundError extends ErrorDto {
|
|
58
|
+
constructor(context?: string);
|
|
59
|
+
}
|
|
60
|
+
export declare class AgendizeError {
|
|
61
|
+
errorCode: ApiErrors;
|
|
62
|
+
e: any;
|
|
63
|
+
constructor(errorCode: ApiErrors, e?: any);
|
|
64
|
+
}
|
|
65
|
+
export declare function getApiErrorValueFromName(value: string): string;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { ConsentEntity } from "./Consent";
|
|
2
|
+
import { FormItemDto, FormItemEntity } from "./Form";
|
|
3
|
+
import { CustomStatusDto, CustomStatusEntity } from "./CustomStatus";
|
|
4
|
+
import { EntityType, PublicBodyEntity, SecuredBodyEntity, SecuredEntity } from "@/data/Common";
|
|
5
|
+
import { ServicePublicDto, ServicePublicEntity } from "@/data/Service";
|
|
6
|
+
import { StaffPublicDto, StaffPublicEntity } from "@/data/Staff";
|
|
7
|
+
import { CompanyPublicDto, CompanyPublicEntity } from "@/data/Company";
|
|
8
|
+
import { ContactDto, ContactEntity } from "@/data/Contact";
|
|
9
|
+
import { ActivityDto, AppointmentActivityEntity } from "@/data/Activity";
|
|
10
|
+
export declare enum EventType {
|
|
11
|
+
PRO = "normal",
|
|
12
|
+
PERSO = "personal",
|
|
13
|
+
EXTERNAL = "external",
|
|
14
|
+
ICS = "ics"
|
|
15
|
+
}
|
|
16
|
+
export declare enum EventStatus {
|
|
17
|
+
PENDING = "pending",
|
|
18
|
+
DECLINED = "declined",
|
|
19
|
+
ACCEPTED = "accepted",
|
|
20
|
+
IN_PROGRESS = "inProgress",
|
|
21
|
+
NO_SHOW = "noShow",
|
|
22
|
+
COMPLETED = "completed",
|
|
23
|
+
CANCELLED = "cancelled",
|
|
24
|
+
PERSONAL = "personal",
|
|
25
|
+
PERSONAL_CANCELLED = "personal_cancelled",
|
|
26
|
+
EXTERNAL = "external",
|
|
27
|
+
UNDEFINED = "undefined",
|
|
28
|
+
CUSTOM = "custom",
|
|
29
|
+
PENDING_PAYMENT = "pendingPayment"
|
|
30
|
+
}
|
|
31
|
+
export type EventEntity<Type = EntityType> = Type extends SecuredEntity ? EventSecuredEntity : EventPublicEntity;
|
|
32
|
+
export declare class EventPublicEntity extends PublicBodyEntity {
|
|
33
|
+
id?: string;
|
|
34
|
+
company: CompanyPublicEntity;
|
|
35
|
+
services: ServicePublicEntity[];
|
|
36
|
+
staffs: StaffPublicEntity[];
|
|
37
|
+
start: Date;
|
|
38
|
+
end: Date;
|
|
39
|
+
status: string;
|
|
40
|
+
customStatus?: CustomStatusEntity;
|
|
41
|
+
notes?: string;
|
|
42
|
+
contact: ContactEntity;
|
|
43
|
+
location: ('companyAddress' | 'videoconference' | 'phone' | 'custom')[];
|
|
44
|
+
locationCustom?: string;
|
|
45
|
+
form?: FormItemEntity[];
|
|
46
|
+
histories?: AppointmentActivityEntity[];
|
|
47
|
+
source?: string;
|
|
48
|
+
sourceType?: 'manual' | 'widget' | 'external' | 'manualPhone' | 'api' | 'backofficeWidget' | 'mobile' | 'facebook' | '' | undefined;
|
|
49
|
+
onlineMeeting?: {
|
|
50
|
+
link: string;
|
|
51
|
+
};
|
|
52
|
+
cancellable?: boolean;
|
|
53
|
+
static fromDto(dto: EventPublicDto): EventPublicEntity;
|
|
54
|
+
}
|
|
55
|
+
export declare class EventPublicDto {
|
|
56
|
+
id: string;
|
|
57
|
+
company: CompanyPublicDto;
|
|
58
|
+
services: ServicePublicDto[];
|
|
59
|
+
staffs: StaffPublicDto[];
|
|
60
|
+
start: {
|
|
61
|
+
dateTime: string;
|
|
62
|
+
timeZone: string;
|
|
63
|
+
};
|
|
64
|
+
end: {
|
|
65
|
+
dateTime: string;
|
|
66
|
+
timeZone: string;
|
|
67
|
+
};
|
|
68
|
+
status: string;
|
|
69
|
+
customStatus?: CustomStatusEntity;
|
|
70
|
+
notes?: string;
|
|
71
|
+
client: ContactDto;
|
|
72
|
+
location: ('companyAddress' | 'videoconference' | 'phone' | 'custom')[];
|
|
73
|
+
customLocation?: string;
|
|
74
|
+
cancellable?: boolean;
|
|
75
|
+
locationLink?: string;
|
|
76
|
+
form?: FormItemDto[];
|
|
77
|
+
histories?: ActivityDto[];
|
|
78
|
+
source?: string;
|
|
79
|
+
sourceType?: 'manual' | 'widget' | 'external' | 'manualPhone' | 'api' | 'backofficeWidget' | 'mobile' | 'facebook' | '' | undefined;
|
|
80
|
+
onlineMeeting?: {
|
|
81
|
+
link: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export declare class EventSecuredEntity extends SecuredBodyEntity {
|
|
85
|
+
id?: string;
|
|
86
|
+
owner?: {
|
|
87
|
+
id: string;
|
|
88
|
+
userName: string;
|
|
89
|
+
};
|
|
90
|
+
company?: {
|
|
91
|
+
id: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
encryptedId?: string;
|
|
94
|
+
};
|
|
95
|
+
service?: {
|
|
96
|
+
id: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
color?: string;
|
|
99
|
+
preparationDuration?: number;
|
|
100
|
+
bufferDuration?: number;
|
|
101
|
+
capacity?: number;
|
|
102
|
+
};
|
|
103
|
+
staff?: {
|
|
104
|
+
id: string;
|
|
105
|
+
firstName?: string;
|
|
106
|
+
lastName?: string;
|
|
107
|
+
phone?: string;
|
|
108
|
+
email?: string;
|
|
109
|
+
externalId?: string;
|
|
110
|
+
userId?: string;
|
|
111
|
+
};
|
|
112
|
+
client?: {
|
|
113
|
+
id: string;
|
|
114
|
+
firstName?: string;
|
|
115
|
+
lastName?: string;
|
|
116
|
+
email?: string;
|
|
117
|
+
phone?: string;
|
|
118
|
+
externalId?: string;
|
|
119
|
+
};
|
|
120
|
+
start: Date;
|
|
121
|
+
end: Date;
|
|
122
|
+
status?: string;
|
|
123
|
+
type: string;
|
|
124
|
+
source: string;
|
|
125
|
+
price?: number;
|
|
126
|
+
paid?: boolean;
|
|
127
|
+
notes?: string;
|
|
128
|
+
summary?: string;
|
|
129
|
+
form?: FormItemEntity[];
|
|
130
|
+
metaEvent?: boolean;
|
|
131
|
+
metaEventId?: string;
|
|
132
|
+
onlineMeeting?: {
|
|
133
|
+
provider: string;
|
|
134
|
+
videoLink: string;
|
|
135
|
+
};
|
|
136
|
+
parameters?: any;
|
|
137
|
+
events?: EventSecuredEntity[];
|
|
138
|
+
privacyConsent?: ConsentEntity;
|
|
139
|
+
marketingConsent?: ConsentEntity;
|
|
140
|
+
location: 'companyAddress' | 'videoconference' | 'phone' | 'custom';
|
|
141
|
+
locationCustom?: string;
|
|
142
|
+
preparationDuration?: number;
|
|
143
|
+
bufferDuration?: number;
|
|
144
|
+
customStatus?: CustomStatusEntity;
|
|
145
|
+
securityKey?: string;
|
|
146
|
+
static fromDto(dto: EventSecuredDto, type?: EventType | string): EventSecuredEntity;
|
|
147
|
+
static toDto(entity: EventSecuredEntity, timeZone?: string): EventSecuredDto;
|
|
148
|
+
}
|
|
149
|
+
export declare class EventSecuredDto {
|
|
150
|
+
id?: string;
|
|
151
|
+
owner?: {
|
|
152
|
+
id: string;
|
|
153
|
+
userName: string;
|
|
154
|
+
};
|
|
155
|
+
company?: {
|
|
156
|
+
id: string;
|
|
157
|
+
name?: string;
|
|
158
|
+
};
|
|
159
|
+
service?: {
|
|
160
|
+
id: string;
|
|
161
|
+
name?: string;
|
|
162
|
+
color?: string;
|
|
163
|
+
preparationDuration?: number;
|
|
164
|
+
bufferDuration?: number;
|
|
165
|
+
capacity?: number;
|
|
166
|
+
};
|
|
167
|
+
staff?: {
|
|
168
|
+
id: string;
|
|
169
|
+
firstName?: string;
|
|
170
|
+
lastName?: string;
|
|
171
|
+
phone?: string;
|
|
172
|
+
email?: string;
|
|
173
|
+
externalId?: string;
|
|
174
|
+
userId?: string;
|
|
175
|
+
};
|
|
176
|
+
client?: {
|
|
177
|
+
id: string;
|
|
178
|
+
firstName?: string;
|
|
179
|
+
lastName?: string;
|
|
180
|
+
email?: string;
|
|
181
|
+
phone?: string;
|
|
182
|
+
externalId?: string;
|
|
183
|
+
};
|
|
184
|
+
start: {
|
|
185
|
+
dateTime: string;
|
|
186
|
+
timeZone?: string;
|
|
187
|
+
};
|
|
188
|
+
end: {
|
|
189
|
+
dateTime: string;
|
|
190
|
+
timeZone?: string;
|
|
191
|
+
};
|
|
192
|
+
status?: string;
|
|
193
|
+
type: string;
|
|
194
|
+
source: string;
|
|
195
|
+
paid?: boolean;
|
|
196
|
+
price?: number;
|
|
197
|
+
notes?: string;
|
|
198
|
+
summary?: string;
|
|
199
|
+
form?: FormItemDto[];
|
|
200
|
+
'meta-event'?: boolean;
|
|
201
|
+
metaEventId?: string;
|
|
202
|
+
onlineMeeting?: {
|
|
203
|
+
provider: string;
|
|
204
|
+
videoLink: string;
|
|
205
|
+
};
|
|
206
|
+
parameters?: any;
|
|
207
|
+
events?: EventSecuredDto[];
|
|
208
|
+
privacyConsent?: ConsentEntity;
|
|
209
|
+
marketingConsent?: ConsentEntity;
|
|
210
|
+
location: 'companyAddress' | 'videoconference' | 'phone' | 'custom';
|
|
211
|
+
locationCustom?: string;
|
|
212
|
+
preparationDuration?: number;
|
|
213
|
+
bufferDuration?: number;
|
|
214
|
+
customStatus?: CustomStatusDto;
|
|
215
|
+
securityKey?: string;
|
|
216
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2022 Agendize All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at.
|
|
7
|
+
*
|
|
8
|
+
* Http://www.apache.org/licenses/LICENSE-2.0.
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { CustomStatusDto } from "./CustomStatus";
|
|
17
|
+
import { EventSecuredEntity } from "./Event";
|
|
18
|
+
export declare class EventSearchEntity {
|
|
19
|
+
id?: string;
|
|
20
|
+
company?: EventSearchCompanyEntity;
|
|
21
|
+
service?: EventSearchServiceEntity;
|
|
22
|
+
staff?: EventSearchStaffEntity;
|
|
23
|
+
contact?: EventSearchContactEntity;
|
|
24
|
+
location: EventSearchLocationEntity;
|
|
25
|
+
start: Date;
|
|
26
|
+
end: Date;
|
|
27
|
+
status?: EventSearchStatusEntity;
|
|
28
|
+
conflict?: boolean;
|
|
29
|
+
conflicts?: EventSearchConflictEntity[];
|
|
30
|
+
securityKey?: string;
|
|
31
|
+
static fromEventDto(dto: EventSearchDto): EventSearchEntity;
|
|
32
|
+
static toEventEntity(searchEntity: EventSearchEntity): EventSecuredEntity;
|
|
33
|
+
}
|
|
34
|
+
export declare class EventSearchCompanyEntity {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
timeZone?: string;
|
|
38
|
+
static fromDto(dto: EventSearchCompanyDto): EventSearchCompanyEntity;
|
|
39
|
+
}
|
|
40
|
+
export declare class EventSearchServiceEntity {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
static fromDto(dto: EventSearchServiceDto): EventSearchServiceEntity;
|
|
44
|
+
}
|
|
45
|
+
export declare class EventSearchStaffEntity {
|
|
46
|
+
id: string;
|
|
47
|
+
firstName?: string;
|
|
48
|
+
lastName?: string;
|
|
49
|
+
externalId?: string;
|
|
50
|
+
userId?: string;
|
|
51
|
+
static fromDto(dto: EventSearchStaffDto): EventSearchStaffEntity;
|
|
52
|
+
}
|
|
53
|
+
export declare class EventSearchContactEntity {
|
|
54
|
+
id: string;
|
|
55
|
+
title?: string;
|
|
56
|
+
firstName?: string;
|
|
57
|
+
lastName?: string;
|
|
58
|
+
email?: string;
|
|
59
|
+
phone?: string;
|
|
60
|
+
reference?: string;
|
|
61
|
+
static fromDto(dto: EventSearchContactDto): EventSearchContactEntity;
|
|
62
|
+
}
|
|
63
|
+
export declare class EventSearchLocationEntity {
|
|
64
|
+
type: 'companyAddress' | 'videoconference' | 'phone' | 'custom';
|
|
65
|
+
static fromDto(dto: EventSearchLocationDto): EventSearchLocationEntity;
|
|
66
|
+
}
|
|
67
|
+
export declare class EventSearchStatusEntity {
|
|
68
|
+
id: string;
|
|
69
|
+
standard: boolean;
|
|
70
|
+
label?: string;
|
|
71
|
+
static fromDto(dto: EventSearchStatusDto): EventSearchStatusEntity;
|
|
72
|
+
}
|
|
73
|
+
export declare class EventSearchConflictEntity {
|
|
74
|
+
event?: string;
|
|
75
|
+
company?: string;
|
|
76
|
+
reason: EventSearchConflictReason;
|
|
77
|
+
source: EventSearchConflictSource;
|
|
78
|
+
static fromDto(dto: EventSearchConflictDto): EventSearchConflictEntity;
|
|
79
|
+
}
|
|
80
|
+
export declare enum EventSearchConflictReason {
|
|
81
|
+
STAFF = "STAFF",
|
|
82
|
+
SERVICE = "SERVICE",
|
|
83
|
+
STAFF_TIME = "STAFF_TIME",
|
|
84
|
+
SERVICE_TIME = "SERVICE_TIME",
|
|
85
|
+
SERVICE_SKILL = "SERVICE_SKILL",
|
|
86
|
+
STAFF_RESCHEDULE = "STAFF_RESCHEDULE",
|
|
87
|
+
STAFF_VACATION = "STAFF_VACATION",
|
|
88
|
+
UNKNOWN = "UNKNOWN"
|
|
89
|
+
}
|
|
90
|
+
export declare enum EventSearchConflictSource {
|
|
91
|
+
SERVICE_NOT_AVAILABLE = "SERVICE_NOT_AVAILABLE",
|
|
92
|
+
STAFF_NOT_AVAILABLE = "STAFF_NOT_AVAILABLE",
|
|
93
|
+
UNKNOWN = "UNKNOWN"
|
|
94
|
+
}
|
|
95
|
+
export declare class EventSearchPageEntity {
|
|
96
|
+
items: EventSearchEntity[];
|
|
97
|
+
totalItems: number;
|
|
98
|
+
nextSyncToken?: string;
|
|
99
|
+
nextPageToken?: string;
|
|
100
|
+
static fromDto(dto: EventSearchPageDto): EventSearchPageEntity;
|
|
101
|
+
}
|
|
102
|
+
export interface EventSearchOption {
|
|
103
|
+
page?: number;
|
|
104
|
+
pageToken?: string;
|
|
105
|
+
orderBy?: string;
|
|
106
|
+
maxResults?: number;
|
|
107
|
+
}
|
|
108
|
+
export declare class EventSearchBodyEntity {
|
|
109
|
+
basicSearch?: string;
|
|
110
|
+
timeZone?: string;
|
|
111
|
+
start: Date;
|
|
112
|
+
end: Date;
|
|
113
|
+
companies: EventSearchBodyCompanyEntity[];
|
|
114
|
+
status?: string[];
|
|
115
|
+
conflict?: boolean;
|
|
116
|
+
cancelledOrDeclined?: boolean;
|
|
117
|
+
static fromDto(dto: EventSearchBodyDto): EventSearchBodyEntity;
|
|
118
|
+
static toDto(entity: EventSearchBodyEntity, timeZone: string): EventSearchBodyDto;
|
|
119
|
+
}
|
|
120
|
+
export declare class EventSearchBodyCompanyEntity {
|
|
121
|
+
companyId: string;
|
|
122
|
+
staffIds?: string[];
|
|
123
|
+
staffGroupIds?: string[];
|
|
124
|
+
serviceIds?: string[];
|
|
125
|
+
serviceGroupIds?: string[];
|
|
126
|
+
static toDto(entity: EventSearchBodyCompanyEntity): EventSearchBodyCompanyDto;
|
|
127
|
+
static fromDto(dto: EventSearchBodyCompanyDto): EventSearchBodyCompanyEntity;
|
|
128
|
+
}
|
|
129
|
+
export interface EventSearchConflictDto {
|
|
130
|
+
event?: string;
|
|
131
|
+
company?: string;
|
|
132
|
+
reason: string;
|
|
133
|
+
source: string;
|
|
134
|
+
}
|
|
135
|
+
export interface EventSearchStatusDto {
|
|
136
|
+
id: string;
|
|
137
|
+
standard: boolean;
|
|
138
|
+
label?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface EventSearchBodyDto {
|
|
141
|
+
basicSearch?: string;
|
|
142
|
+
timeZone?: string;
|
|
143
|
+
start: {
|
|
144
|
+
dateTime: string;
|
|
145
|
+
timeZone?: string;
|
|
146
|
+
};
|
|
147
|
+
end: {
|
|
148
|
+
dateTime: string;
|
|
149
|
+
timeZone?: string;
|
|
150
|
+
};
|
|
151
|
+
companies: EventSearchBodyCompanyDto[];
|
|
152
|
+
status?: string[];
|
|
153
|
+
conflict?: boolean;
|
|
154
|
+
cancelledOrDeclined?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export interface EventSearchBodyCompanyDto {
|
|
157
|
+
companyId: string;
|
|
158
|
+
staffIds?: string[];
|
|
159
|
+
staffGroupIds?: string[];
|
|
160
|
+
serviceIds?: string[];
|
|
161
|
+
serviceGroupIds?: string[];
|
|
162
|
+
}
|
|
163
|
+
export interface EventSearchPageDto {
|
|
164
|
+
items: EventSearchDto[];
|
|
165
|
+
totalItems: number;
|
|
166
|
+
nextSyncToken?: string;
|
|
167
|
+
nextPageToken?: string;
|
|
168
|
+
}
|
|
169
|
+
export declare class EventSearchCompanyDto {
|
|
170
|
+
id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
timeZone?: string;
|
|
173
|
+
}
|
|
174
|
+
export declare class EventSearchServiceDto {
|
|
175
|
+
id: string;
|
|
176
|
+
name: string;
|
|
177
|
+
}
|
|
178
|
+
export declare class EventSearchStaffDto {
|
|
179
|
+
id: string;
|
|
180
|
+
firstName?: string;
|
|
181
|
+
lastName?: string;
|
|
182
|
+
externalId?: string;
|
|
183
|
+
userId?: string;
|
|
184
|
+
}
|
|
185
|
+
export declare class EventSearchContactDto {
|
|
186
|
+
id: string;
|
|
187
|
+
title?: string;
|
|
188
|
+
firstName?: string;
|
|
189
|
+
lastName?: string;
|
|
190
|
+
email?: string;
|
|
191
|
+
phone?: string;
|
|
192
|
+
reference?: string;
|
|
193
|
+
}
|
|
194
|
+
export declare class EventSearchLocationDto {
|
|
195
|
+
type: 'companyAddress' | 'videoconference' | 'phone' | 'custom';
|
|
196
|
+
}
|
|
197
|
+
export declare class EventSearchDto {
|
|
198
|
+
id?: string;
|
|
199
|
+
company?: EventSearchCompanyDto;
|
|
200
|
+
service?: EventSearchServiceDto;
|
|
201
|
+
staff?: EventSearchStaffDto;
|
|
202
|
+
contact?: EventSearchContactDto;
|
|
203
|
+
location: EventSearchLocationDto;
|
|
204
|
+
startDate: {
|
|
205
|
+
dateTime: string;
|
|
206
|
+
timeZone?: string;
|
|
207
|
+
};
|
|
208
|
+
endDate: {
|
|
209
|
+
dateTime: string;
|
|
210
|
+
timeZone?: string;
|
|
211
|
+
};
|
|
212
|
+
status?: EventSearchStatusDto;
|
|
213
|
+
customStatus?: CustomStatusDto;
|
|
214
|
+
conflict?: boolean;
|
|
215
|
+
conflicts?: EventSearchConflictDto[];
|
|
216
|
+
securityKey?: string;
|
|
217
|
+
}
|