@agendize/js-agendize-api 1.35.0 → 1.37.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 +575 -0
- package/dist/browserStorage/browserStorage.d.ts +46 -0
- package/dist/config.d.ts +19 -0
- package/dist/data/Account.d.ts +224 -0
- package/dist/data/Activity.d.ts +529 -0
- package/dist/data/Address.d.ts +46 -0
- package/dist/data/Attendee.d.ts +59 -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 +33 -0
- package/dist/data/CommonEnum.d.ts +44 -0
- package/dist/data/Company.d.ts +170 -0
- package/dist/data/CompanyPerformance.d.ts +26 -0
- package/dist/data/CompanySettings.d.ts +29 -0
- package/dist/data/Connector.d.ts +26 -0
- package/dist/data/Consent.d.ts +4 -0
- package/dist/data/Contact.d.ts +208 -0
- package/dist/data/CustomStatus.d.ts +20 -0
- package/dist/data/Employee.d.ts +27 -0
- package/dist/data/Error.d.ts +65 -0
- package/dist/data/Event.d.ts +222 -0
- package/dist/data/EventSearch.d.ts +232 -0
- package/dist/data/EventUpdate.d.ts +9 -0
- package/dist/data/Form.d.ts +230 -0
- package/dist/data/FormResult.d.ts +61 -0
- package/dist/data/FormResultStatus.d.ts +23 -0
- package/dist/data/FreeSlot.d.ts +72 -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 +79 -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 +34 -0
- package/dist/data/ReportingExportBody.d.ts +176 -0
- package/dist/data/ReportingExportResponse.d.ts +20 -0
- package/dist/data/Rights.d.ts +140 -0
- package/dist/data/Service.d.ts +234 -0
- package/dist/data/ServiceGroup.d.ts +57 -0
- package/dist/data/ServiceResource.d.ts +26 -0
- package/dist/data/Settings.d.ts +29 -0
- package/dist/data/ShortPollingNotification.d.ts +35 -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 +25 -0
- package/dist/data/WorkingHours.d.ts +94 -0
- package/dist/data/account/Permission.d.ts +46 -0
- package/dist/data/action/ShareLink.d.ts +55 -0
- package/dist/data/conference/Conference.d.ts +161 -0
- package/dist/data/conference/ConferenceAssignment.d.ts +194 -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 +359 -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 +140 -0
- package/dist/data/conference/Widget.d.ts +94 -0
- package/dist/data/crm/ClientMessage.d.ts +42 -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/Availabilities.d.ts +103 -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/clientMessageDb.d.ts +10 -0
- package/dist/db/companyDb.d.ts +26 -0
- package/dist/db/companySettingsDb.d.ts +11 -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 +25 -0
- package/dist/db/index.d.ts +74 -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 +28 -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 +102 -0
- package/dist/js-agendize-api.es.js +33381 -0
- package/dist/repository/index.d.ts +87 -0
- package/dist/repository/public/accountPublicRepository.d.ts +40 -0
- package/dist/repository/public/availabilityPublicRepository.d.ts +39 -0
- package/dist/repository/public/companyPublicRepository.d.ts +24 -0
- package/dist/repository/public/conferencePublicRepository.d.ts +27 -0
- package/dist/repository/public/customStatusPublicRepository.d.ts +28 -0
- package/dist/repository/public/eventPublicRepository.d.ts +42 -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/appointmentAttendeeSecuredRepository.d.ts +47 -0
- package/dist/repository/secured/availabilitySecuredRepository.d.ts +42 -0
- package/dist/repository/secured/calendarSecuredRepository.d.ts +33 -0
- package/dist/repository/secured/changelogSecuredRepository.d.ts +24 -0
- package/dist/repository/secured/clientMessageSecuredRepository.d.ts +29 -0
- package/dist/repository/secured/companyPerformanceSecuredRepository.d.ts +37 -0
- package/dist/repository/secured/companySecuredRepository.d.ts +34 -0
- package/dist/repository/secured/companySettingsSecuredRepository.d.ts +28 -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 +24 -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 +67 -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 +46 -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/permissionSecuredRepository.d.ts +46 -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 +36 -0
- package/dist/repository/secured/settingsSecuredRepository.d.ts +27 -0
- package/dist/repository/secured/shareLinkSecuredRepository.d.ts +38 -0
- package/dist/repository/secured/shortPollingNotificationSecuredRepository.d.ts +32 -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 +41 -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 +34 -0
- package/dist/service/index.d.ts +47 -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/availabilityPublicService.d.ts +21 -0
- package/dist/service/public/companyPublicService.d.ts +6 -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 +30 -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 +22 -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/attendeeSecuredService.d.ts +25 -0
- package/dist/service/secured/authenticationSecuredService.d.ts +56 -0
- package/dist/service/secured/availabilitiesSecuredService.d.ts +20 -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/clientMessageSecuredService.d.ts +6 -0
- package/dist/service/secured/companyPerformanceSecuredService.d.ts +20 -0
- package/dist/service/secured/companySecuredService.d.ts +27 -0
- package/dist/service/secured/companySettingsSecuredService.d.ts +6 -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 +161 -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 +24 -0
- package/dist/service/secured/formResultStatusSecuredService.d.ts +6 -0
- package/dist/service/secured/freeSlotSecuredService.d.ts +21 -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/permissionsSecuredService.d.ts +24 -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/shareLinkSecuredService.d.ts +21 -0
- package/dist/service/secured/shortPollingNotificationSecuredService.d.ts +10 -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 +8 -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 +7 -0
- package/package.json +3 -3
|
@@ -0,0 +1,38 @@
|
|
|
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 { Repository } from "@/repository";
|
|
17
|
+
import { Logger } from '@/utils/logger';
|
|
18
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
19
|
+
import { ShareLinkEntity, ShareLinkResponseItemEntity } from "@/data/action/ShareLink";
|
|
20
|
+
interface Args {
|
|
21
|
+
}
|
|
22
|
+
export declare class ShareLinkSecuredRepository extends Repository<ShareLinkEntity, Args> {
|
|
23
|
+
private service;
|
|
24
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, baseURL: string, logger?: Logger);
|
|
25
|
+
share(bearer: string, organisation: string, entity: ShareLinkEntity): Promise<ShareLinkResponseItemEntity[]>;
|
|
26
|
+
shareByTextMessage(bearer: string, organisation: string, entity: ShareLinkEntity): Promise<ShareLinkResponseItemEntity[]>;
|
|
27
|
+
protected remoteCreate(bearer: string, args: Args, item: ShareLinkEntity): Promise<ShareLinkEntity>;
|
|
28
|
+
protected remoteList(bearer: string, args: Args): Promise<ShareLinkEntity[]>;
|
|
29
|
+
protected remoteGet(bearer: string, args: Args): Promise<ShareLinkEntity>;
|
|
30
|
+
protected remoteUpdate(bearer: string, args: Args, item: ShareLinkEntity): Promise<ShareLinkEntity>;
|
|
31
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
32
|
+
protected localList(args: Args): Promise<ShareLinkEntity[]>;
|
|
33
|
+
protected localGet(args: Args): Promise<ShareLinkEntity>;
|
|
34
|
+
protected localBulkSave(args: Args, items: ShareLinkEntity[]): Promise<void>;
|
|
35
|
+
protected localBulkDelete(items: ShareLinkEntity[]): Promise<void>;
|
|
36
|
+
protected localDelete(args: Args): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { QUERY_PAGINATED_RESULT, Repository } from "@/repository";
|
|
2
|
+
import { ShortPollingNotificationEntity, ShortPollingNotificationPingEntity } from "@/data/ShortPollingNotification";
|
|
3
|
+
import { ShortPollingNotificationScope } from "@/service/secured/shortPollingNotificationSecuredService";
|
|
4
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
5
|
+
import { IndexedDb } from "@/db";
|
|
6
|
+
import { Logger } from "@/utils/logger";
|
|
7
|
+
interface Args {
|
|
8
|
+
account?: string;
|
|
9
|
+
syncToken?: string;
|
|
10
|
+
scope?: ShortPollingNotificationScope[];
|
|
11
|
+
notificationId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class ShortPollingNotificationSecuredRepository extends Repository<ShortPollingNotificationEntity, Args> {
|
|
14
|
+
private notificationDb;
|
|
15
|
+
private notificationSecuredService;
|
|
16
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
17
|
+
getAllNotifications(bearer: string, account: string, syncToken?: number, scope?: ShortPollingNotificationScope[]): Promise<QUERY_PAGINATED_RESULT<ShortPollingNotificationEntity>>;
|
|
18
|
+
pingNewNotifications(bearer: string, account: string, syncToken?: number, scope?: ShortPollingNotificationScope[]): Promise<ShortPollingNotificationPingEntity>;
|
|
19
|
+
getLocalNotifications(): Promise<ShortPollingNotificationEntity[]>;
|
|
20
|
+
protected remoteCreate(bearer: string, args: Args, item: ShortPollingNotificationEntity): Promise<ShortPollingNotificationEntity>;
|
|
21
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
22
|
+
protected remoteGet(bearer: string, args: Args): Promise<ShortPollingNotificationEntity>;
|
|
23
|
+
protected remoteList(bearer: string, args: Args): Promise<ShortPollingNotificationEntity[]>;
|
|
24
|
+
protected remoteUpdate(bearer: string, args: Args, item: ShortPollingNotificationEntity): Promise<ShortPollingNotificationEntity>;
|
|
25
|
+
protected localBulkDelete(items: ShortPollingNotificationEntity[]): Promise<void>;
|
|
26
|
+
protected localBulkSave(args: Args, items: ShortPollingNotificationEntity[]): Promise<void>;
|
|
27
|
+
protected localDelete(args: Args): Promise<void>;
|
|
28
|
+
protected localGet(args: Args): Promise<ShortPollingNotificationEntity>;
|
|
29
|
+
protected localList(args: Args): Promise<ShortPollingNotificationEntity[]>;
|
|
30
|
+
private checkNullable;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { Repository } from "@/repository";
|
|
17
|
+
import { Logger } from '@/utils/logger';
|
|
18
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
19
|
+
import { ShortenerEntity } from "@/data/Shortener";
|
|
20
|
+
interface Args {
|
|
21
|
+
url: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class ShortenerSecuredRepository extends Repository<ShortenerEntity, Args> {
|
|
24
|
+
private shortenerService;
|
|
25
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, baseURL: string, logger?: Logger);
|
|
26
|
+
shorten(bearer: string, url: string): Promise<ShortenerEntity>;
|
|
27
|
+
protected remoteList(bearer: string, args: Args): Promise<ShortenerEntity[]>;
|
|
28
|
+
protected remoteGet(bearer: string, args: Args): Promise<ShortenerEntity>;
|
|
29
|
+
protected remoteCreate(bearer: string, args: Args, item: ShortenerEntity): Promise<ShortenerEntity>;
|
|
30
|
+
protected remoteUpdate(bearer: string, args: Args, item: ShortenerEntity): Promise<ShortenerEntity>;
|
|
31
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
32
|
+
protected localList(args: Args): Promise<ShortenerEntity[]>;
|
|
33
|
+
protected localGet(args: Args): Promise<ShortenerEntity>;
|
|
34
|
+
protected localBulkSave(args: Args, items: ShortenerEntity[]): Promise<void>;
|
|
35
|
+
protected localBulkDelete(items: ShortenerEntity[]): Promise<void>;
|
|
36
|
+
protected localDelete(args: Args): Promise<void>;
|
|
37
|
+
private checkNullable;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { IndexedDb } from '@/db';
|
|
17
|
+
import { QUERY_RESULT, QUERY_TYPE, Repository } from "@/repository";
|
|
18
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
19
|
+
import { StaffFormsEntity } from "@/data/StaffForms";
|
|
20
|
+
import { Logger } from "@/utils/logger";
|
|
21
|
+
interface Args {
|
|
22
|
+
account: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class StaffFormsSecuredRepository extends Repository<StaffFormsEntity, Args> {
|
|
25
|
+
private staffFormsDb;
|
|
26
|
+
private staffFormsSecuredService;
|
|
27
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
28
|
+
getByAccount(bearer: string, account: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<StaffFormsEntity>>;
|
|
29
|
+
protected remoteList(bearer: string, args: Args): Promise<StaffFormsEntity[]>;
|
|
30
|
+
protected remoteGet(bearer: string, args: Args): Promise<StaffFormsEntity>;
|
|
31
|
+
protected remoteCreate(bearer: string, args: Args, item: StaffFormsEntity): Promise<StaffFormsEntity>;
|
|
32
|
+
protected remoteUpdate(bearer: string, args: Args, item: StaffFormsEntity): Promise<StaffFormsEntity>;
|
|
33
|
+
remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
34
|
+
protected localList(args: Args): Promise<StaffFormsEntity[]>;
|
|
35
|
+
protected localGet(args: Args): Promise<StaffFormsEntity>;
|
|
36
|
+
protected localBulkSave(args: Args, items: StaffFormsEntity[]): Promise<void>;
|
|
37
|
+
protected localDelete(args: Args): Promise<void>;
|
|
38
|
+
protected localBulkDelete(items: StaffFormsEntity[]): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { IndexedDb } from '@/db';
|
|
17
|
+
import { EMITTER_TYPE, QUERY_RESULT, QUERY_RESULTS, QUERY_TYPE, Repository } from "@/repository";
|
|
18
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
19
|
+
import { StaffGroupSecuredEntity } from "@/data/StaffGroup";
|
|
20
|
+
import { PubSubService } from "type-pubsub";
|
|
21
|
+
import { Logger } from "@/utils/logger";
|
|
22
|
+
interface Args {
|
|
23
|
+
account: string;
|
|
24
|
+
companyId: string;
|
|
25
|
+
staffGroupId?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class StaffGroupSecuredRepository extends Repository<StaffGroupSecuredEntity, Args> {
|
|
28
|
+
private staffGroupDb;
|
|
29
|
+
private staffGroupSecuredService;
|
|
30
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
31
|
+
dispose(): void;
|
|
32
|
+
protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService<EMITTER_TYPE>, handler: any): Promise<void>;
|
|
33
|
+
getAllStaffGroups(bearer: string, account: string, companyId: string, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<StaffGroupSecuredEntity>>;
|
|
34
|
+
getStaffGroup(bearer: string, account: string, companyId: string, staffGroupId: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<StaffGroupSecuredEntity>>;
|
|
35
|
+
createStaffGroup(bearer: string, account: string, companyId: string, staffGroup: StaffGroupSecuredEntity): Promise<StaffGroupSecuredEntity>;
|
|
36
|
+
updateStaffGroup(bearer: string, account: string, companyId: string, staffGroupId: string, staffGroup: StaffGroupSecuredEntity): Promise<StaffGroupSecuredEntity>;
|
|
37
|
+
deleteStaffGroup(bearer: string, account: string, companyId: string, staffGroupId: string): Promise<void>;
|
|
38
|
+
protected remoteList(bearer: string, args: Args): Promise<StaffGroupSecuredEntity[]>;
|
|
39
|
+
protected remoteGet(bearer: string, args: Args): Promise<StaffGroupSecuredEntity>;
|
|
40
|
+
protected remoteCreate(bearer: string, args: Args, item: StaffGroupSecuredEntity): Promise<StaffGroupSecuredEntity>;
|
|
41
|
+
protected remoteUpdate(bearer: string, args: Args, item: StaffGroupSecuredEntity): Promise<StaffGroupSecuredEntity>;
|
|
42
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
43
|
+
protected localList(args: Args): Promise<StaffGroupSecuredEntity[]>;
|
|
44
|
+
protected localGet(args: Args): Promise<StaffGroupSecuredEntity>;
|
|
45
|
+
protected localBulkSave(args: Args, items: StaffGroupSecuredEntity[]): Promise<void>;
|
|
46
|
+
protected localDelete(args: Args): Promise<void>;
|
|
47
|
+
protected localBulkDelete(items: StaffGroupSecuredEntity[]): Promise<void>;
|
|
48
|
+
private checkNullable;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IndexedDb } from '@/db';
|
|
2
|
+
import { EMITTER_TYPE, QUERY_RESULT, QUERY_RESULTS, QUERY_TYPE, Repository } from "@/repository";
|
|
3
|
+
import { Logger } from '@/utils/logger';
|
|
4
|
+
import { SettingsWorkingDayEntity } from '@/data/WorkingHours';
|
|
5
|
+
import { StaffSecuredEntity } from '@/data/Staff';
|
|
6
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
7
|
+
import { PubSubService } from "type-pubsub";
|
|
8
|
+
interface Args {
|
|
9
|
+
account: string;
|
|
10
|
+
companyId: string;
|
|
11
|
+
staffId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class StaffSecuredRepository extends Repository<StaffSecuredEntity, Args> {
|
|
14
|
+
private staffDb;
|
|
15
|
+
private staffSecuredService;
|
|
16
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
17
|
+
dispose(): void;
|
|
18
|
+
protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService<EMITTER_TYPE>, handler: any): Promise<void>;
|
|
19
|
+
getAllStaffs(bearer: string, account: string, companyId: string, mode?: QUERY_TYPE): Promise<QUERY_RESULTS<StaffSecuredEntity>>;
|
|
20
|
+
getStaff(bearer: string, account: string, companyId: string, staffId: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<StaffSecuredEntity>>;
|
|
21
|
+
createStaff(bearer: string, account: string, companyId: string, staff: StaffSecuredEntity): Promise<StaffSecuredEntity>;
|
|
22
|
+
updateStaff(bearer: string, account: string, companyId: string, staffId: string, staff: StaffSecuredEntity): Promise<StaffSecuredEntity>;
|
|
23
|
+
patchAllStaff(bearer: string, account: string, companyId: string, workingHours?: SettingsWorkingDayEntity[], vacations?: {
|
|
24
|
+
startDate?: Date;
|
|
25
|
+
endDate?: Date;
|
|
26
|
+
}[], staffIds?: string[]): Promise<QUERY_RESULTS<StaffSecuredEntity>>;
|
|
27
|
+
deleteStaff(bearer: string, account: string, companyId: string, staffId: string): Promise<void>;
|
|
28
|
+
protected remoteList(bearer: string, args: Args): Promise<StaffSecuredEntity[]>;
|
|
29
|
+
protected remoteGet(bearer: string, args: Args): Promise<StaffSecuredEntity>;
|
|
30
|
+
protected remoteCreate(bearer: string, args: Args, item: StaffSecuredEntity): Promise<StaffSecuredEntity>;
|
|
31
|
+
protected remoteUpdate(bearer: string, args: Args, item: StaffSecuredEntity): Promise<StaffSecuredEntity>;
|
|
32
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
33
|
+
protected localList(args: Args): Promise<StaffSecuredEntity[]>;
|
|
34
|
+
protected localGet(args: Args): Promise<StaffSecuredEntity>;
|
|
35
|
+
protected localBulkSave(args: Args, staffs: StaffSecuredEntity[]): Promise<void>;
|
|
36
|
+
protected localDelete(args: Args): Promise<void>;
|
|
37
|
+
protected localBulkDelete(items: StaffSecuredEntity[]): Promise<void>;
|
|
38
|
+
protected localDrop(): Promise<void>;
|
|
39
|
+
private checkNullable;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QUERY_RESULTS, Repository } from "@/repository";
|
|
2
|
+
import { ContactTagEntity } from "@/data/Contact";
|
|
3
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
4
|
+
import { IndexedDb } from "@/db";
|
|
5
|
+
import { Logger } from "@/utils/logger";
|
|
6
|
+
interface Args {
|
|
7
|
+
account: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class TagSecuredRepository extends Repository<ContactTagEntity, Args> {
|
|
10
|
+
private tagSecuredService;
|
|
11
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
12
|
+
getAllTags(bearer: string, account: string): Promise<QUERY_RESULTS<ContactTagEntity>>;
|
|
13
|
+
protected localBulkDelete(items: ContactTagEntity[]): Promise<void>;
|
|
14
|
+
protected localBulkSave(args: Args, items: ContactTagEntity[]): Promise<void>;
|
|
15
|
+
protected localDelete(args: Args): Promise<void>;
|
|
16
|
+
protected localGet(args: Args): Promise<ContactTagEntity>;
|
|
17
|
+
protected localList(args: Args): Promise<ContactTagEntity[]>;
|
|
18
|
+
protected remoteCreate(bearer: string, args: Args, item: ContactTagEntity): Promise<ContactTagEntity>;
|
|
19
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
20
|
+
protected remoteGet(bearer: string, args: Args): Promise<ContactTagEntity>;
|
|
21
|
+
protected remoteList(bearer: string, args: Args): Promise<ContactTagEntity[]>;
|
|
22
|
+
protected remoteUpdate(bearer: string, args: Args, item: ContactTagEntity): Promise<ContactTagEntity>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { UserSecuredService } from '@/service/secured/userSecuredService';
|
|
17
|
+
import { UserDb } from "@/db/userDb";
|
|
18
|
+
import { IndexedDb } from '@/db';
|
|
19
|
+
import { EMITTER_TYPE, QUERY_RESULT, QUERY_RESULTS, QUERY_TYPE, Repository } from "@/repository";
|
|
20
|
+
import { Logger } from '@/utils/logger';
|
|
21
|
+
import { UserEntity } from '@/data/User';
|
|
22
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
23
|
+
import { PubSubService } from "type-pubsub";
|
|
24
|
+
import { CalendarTeamDb } from "@/db/calendarTeamDb";
|
|
25
|
+
import { CalendarTeamEntity } from "@/data/Calendar";
|
|
26
|
+
interface Args {
|
|
27
|
+
userId?: string;
|
|
28
|
+
organisation?: string;
|
|
29
|
+
defaultUsers?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare abstract class UserAbstractSecuredRepository extends Repository<UserEntity, Args> {
|
|
32
|
+
protected userDb: UserDb;
|
|
33
|
+
protected teamDb: CalendarTeamDb;
|
|
34
|
+
protected userService: UserSecuredService;
|
|
35
|
+
protected constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger, repositoryName?: string);
|
|
36
|
+
protected abstract initUserDb(indexedDb: IndexedDb): UserDb;
|
|
37
|
+
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>>;
|
|
40
|
+
getUser(bearer: string, userId: string, organisation?: string, mode?: QUERY_TYPE): Promise<QUERY_RESULT<UserEntity>>;
|
|
41
|
+
protected remoteList(bearer: string, args: Args): Promise<UserEntity[]>;
|
|
42
|
+
protected remoteGet(bearer: string, args: Args): Promise<UserEntity>;
|
|
43
|
+
protected remoteCreate(bearer: string, args: Args, item: UserEntity): Promise<UserEntity>;
|
|
44
|
+
protected remoteUpdate(bearer: string, args: Args, item: UserEntity): Promise<UserEntity>;
|
|
45
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
46
|
+
protected localList(args: Args): Promise<UserEntity[]>;
|
|
47
|
+
protected localGet(args: Args): Promise<UserEntity>;
|
|
48
|
+
protected localBulkSave(args: Args, items: UserEntity[]): Promise<void>;
|
|
49
|
+
protected localDelete(args: Args): Promise<void>;
|
|
50
|
+
protected localBulkDelete(items: UserEntity[]): Promise<void>;
|
|
51
|
+
private checkNullable;
|
|
52
|
+
dispose(): void;
|
|
53
|
+
protected onCascadeDelete(data: any, message: EMITTER_TYPE, channel: PubSubService<EMITTER_TYPE>, handler: any): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { UserDb } from "@/db/userDb";
|
|
17
|
+
import { IndexedDb } from '@/db';
|
|
18
|
+
import { Logger } from '@/utils/logger';
|
|
19
|
+
import { QUERY_TYPE } from "@/repository";
|
|
20
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
21
|
+
import { CalendarTeamDb } from "@/db/calendarTeamDb";
|
|
22
|
+
import { UserAbstractSecuredRepository } from "@/repository/secured/userAbstractSecuredRepository";
|
|
23
|
+
export declare class UserDefaultSecuredRepository extends UserAbstractSecuredRepository {
|
|
24
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
25
|
+
protected initTeamDb(indexedDb: IndexedDb): CalendarTeamDb;
|
|
26
|
+
protected initUserDb(indexedDb: IndexedDb): UserDb;
|
|
27
|
+
getAllUsers(bearer: string, organisation?: string, mode?: QUERY_TYPE): Promise<import("@/repository").QUERY_RESULTS<import("../..").UserEntity>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { QUERY_TYPE, Repository } from "@/repository";
|
|
17
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
18
|
+
import { IndexedDb } from "@/db";
|
|
19
|
+
import { Logger } from "@/utils/logger";
|
|
20
|
+
import { UserEntity } from "@/data/User";
|
|
21
|
+
interface Args {
|
|
22
|
+
account: string;
|
|
23
|
+
userId?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class UserDirectorySecuredRepository extends Repository<UserEntity, Args> {
|
|
26
|
+
private userDirectoryDb;
|
|
27
|
+
private userDirectorySecuredService;
|
|
28
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
29
|
+
getAllUsersOfDirectory(bearer: string, account: string, mode?: QUERY_TYPE): Promise<import("@/repository").QUERY_RESULTS<UserEntity>>;
|
|
30
|
+
protected remoteGet(bearer: string, args: Args): Promise<UserEntity>;
|
|
31
|
+
protected remoteList(bearer: string, args: Args): Promise<UserEntity[]>;
|
|
32
|
+
protected remoteCreate(bearer: string, args: Args, item: UserEntity): Promise<UserEntity>;
|
|
33
|
+
protected remoteUpdate(bearer: string, args: Args, item: UserEntity): Promise<UserEntity>;
|
|
34
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
35
|
+
protected localList(args: Args): Promise<UserEntity[]>;
|
|
36
|
+
protected localGet(args: Args): Promise<UserEntity>;
|
|
37
|
+
protected localBulkSave(args: Args, items: UserEntity[]): Promise<void>;
|
|
38
|
+
protected localDelete(args: Args): Promise<void>;
|
|
39
|
+
protected localBulkDelete(items: UserEntity[]): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { UserDb } from "@/db/userDb";
|
|
17
|
+
import { IndexedDb } from '@/db';
|
|
18
|
+
import { QUERY_TYPE } from "@/repository";
|
|
19
|
+
import { Logger } from '@/utils/logger';
|
|
20
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
21
|
+
import { CalendarTeamDb } from "@/db/calendarTeamDb";
|
|
22
|
+
import { UserAbstractSecuredRepository } from "./userAbstractSecuredRepository";
|
|
23
|
+
export declare class UserSecuredRepository extends UserAbstractSecuredRepository {
|
|
24
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
25
|
+
protected initTeamDb(indexedDb: IndexedDb): CalendarTeamDb;
|
|
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<{
|
|
29
|
+
users: import("../..").UserEntity[];
|
|
30
|
+
teams: import("../..").CalendarTeamEntity[];
|
|
31
|
+
local: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { WidgetFormFieldsAPIProperties } from '@/service/secured/widgetFormSecuredService';
|
|
17
|
+
import { IndexedDb } from '@/db';
|
|
18
|
+
import { Repository } from "@/repository";
|
|
19
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
20
|
+
import { WidgetFormEntity } from "@/data/Form";
|
|
21
|
+
import { Logger } from "@/utils/logger";
|
|
22
|
+
interface Args {
|
|
23
|
+
account: string;
|
|
24
|
+
companyId?: string;
|
|
25
|
+
serviceId?: string;
|
|
26
|
+
formId?: string;
|
|
27
|
+
properties?: WidgetFormFieldsAPIProperties;
|
|
28
|
+
}
|
|
29
|
+
export declare class WidgetFormSecuredRepository extends Repository<WidgetFormEntity, Args> {
|
|
30
|
+
private widgetFormDb;
|
|
31
|
+
private widgetFormSecuredService;
|
|
32
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
33
|
+
getWidgetForm(bearer: string, account: string, companyId: string, serviceId?: string, properties?: WidgetFormFieldsAPIProperties): Promise<WidgetFormEntity>;
|
|
34
|
+
protected remoteList(bearer: string, args: Args): Promise<WidgetFormEntity[]>;
|
|
35
|
+
protected remoteGet(bearer: string, args: Args): Promise<WidgetFormEntity>;
|
|
36
|
+
protected remoteCreate(bearer: string, args: Args, item: WidgetFormEntity): Promise<WidgetFormEntity>;
|
|
37
|
+
protected remoteUpdate(bearer: string, args: Args, item: WidgetFormEntity): Promise<WidgetFormEntity>;
|
|
38
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
39
|
+
protected localList(args: Args): Promise<WidgetFormEntity[]>;
|
|
40
|
+
protected localGet(args: Args): Promise<WidgetFormEntity>;
|
|
41
|
+
protected localBulkSave(args: Args, forms: WidgetFormEntity[]): Promise<void>;
|
|
42
|
+
protected localDelete(args: Args): Promise<void>;
|
|
43
|
+
protected localBulkDelete(items: WidgetFormEntity[]): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { IndexedDb } from '@/db';
|
|
17
|
+
import { Repository } from "@/repository";
|
|
18
|
+
import { Logger } from '@/utils/logger';
|
|
19
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
20
|
+
import { WidgetUrlCipherEntity, WidgetUrlCipherInputEntity } from "@/data/WidgetUrlCipher";
|
|
21
|
+
interface Args {
|
|
22
|
+
organisation: string;
|
|
23
|
+
companyId: string;
|
|
24
|
+
params?: WidgetUrlCipherInputEntity;
|
|
25
|
+
urlToCipher?: string;
|
|
26
|
+
shortener?: boolean;
|
|
27
|
+
domaine?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class WidgetUrlCipherSecuredRepository extends Repository<WidgetUrlCipherEntity, Args> {
|
|
30
|
+
private widgetUrlCipherService;
|
|
31
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, indexedDb: IndexedDb, baseURL: string, logger?: Logger);
|
|
32
|
+
cipherUrl(bearer: string, organisation: string, companyId: string, urlToCipher: string, domaine?: string, shortener?: boolean): Promise<WidgetUrlCipherEntity>;
|
|
33
|
+
cipherUrlByEntity(bearer: string, organisation: string, companyId: string, params: WidgetUrlCipherInputEntity): Promise<WidgetUrlCipherEntity>;
|
|
34
|
+
protected remoteList(bearer: string, args: Args): Promise<WidgetUrlCipherEntity[]>;
|
|
35
|
+
protected remoteGet(bearer: string, args: Args): Promise<WidgetUrlCipherEntity>;
|
|
36
|
+
protected remoteCreate(bearer: string, args: Args, item: WidgetUrlCipherEntity): Promise<WidgetUrlCipherEntity>;
|
|
37
|
+
protected remoteUpdate(bearer: string, args: Args, item: WidgetUrlCipherEntity): Promise<WidgetUrlCipherEntity>;
|
|
38
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
39
|
+
protected localList(args: Args): Promise<WidgetUrlCipherEntity[]>;
|
|
40
|
+
protected localGet(args: Args): Promise<WidgetUrlCipherEntity>;
|
|
41
|
+
protected localBulkSave(args: Args, items: WidgetUrlCipherEntity[]): Promise<void>;
|
|
42
|
+
protected localBulkDelete(items: WidgetUrlCipherEntity[]): Promise<void>;
|
|
43
|
+
protected localDelete(args: Args): Promise<void>;
|
|
44
|
+
private checkNullable;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Repository } from "@/repository";
|
|
2
|
+
import { StaffWorkingPlanningEntity, WorkingPlanningEntity } from "@/data/scheduling/WorkingPlanning";
|
|
3
|
+
import { AuthenticationSecuredService } from "@/service/secured/authenticationSecuredService";
|
|
4
|
+
import { Logger } from "@/utils/logger";
|
|
5
|
+
interface Args {
|
|
6
|
+
account: string;
|
|
7
|
+
companyId?: string;
|
|
8
|
+
userIds?: string[];
|
|
9
|
+
staffIds?: string[];
|
|
10
|
+
start?: Date;
|
|
11
|
+
end?: Date;
|
|
12
|
+
withOccupancy?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class WorkingPlanningSecuredRepository extends Repository<WorkingPlanningEntity, Args> {
|
|
15
|
+
private workingPlanningSecuredService;
|
|
16
|
+
constructor(authenticationSecuredService: AuthenticationSecuredService, baseURL: string, logger?: Logger);
|
|
17
|
+
getAllCompanyWorkingPlannings(bearer: string, account: string, filter: {
|
|
18
|
+
companyId?: string;
|
|
19
|
+
userIds?: string[];
|
|
20
|
+
staffIds?: string[];
|
|
21
|
+
} | undefined, start: Date, end: Date, withOccupancy: boolean): Promise<StaffWorkingPlanningEntity[]>;
|
|
22
|
+
createWorkingPlanning(bearer: string, account: string, workingPlanning: WorkingPlanningEntity, staffIds?: string[]): Promise<WorkingPlanningEntity>;
|
|
23
|
+
protected localBulkDelete(items: WorkingPlanningEntity[]): Promise<void>;
|
|
24
|
+
protected localBulkSave(args: Args, items: WorkingPlanningEntity[]): Promise<void>;
|
|
25
|
+
protected localDelete(args: Args): Promise<void>;
|
|
26
|
+
protected localGet(args: Args): Promise<WorkingPlanningEntity>;
|
|
27
|
+
protected localList(args: Args): Promise<WorkingPlanningEntity[]>;
|
|
28
|
+
protected remoteCreate(bearer: string, args: Args, item: StaffWorkingPlanningEntity): Promise<WorkingPlanningEntity>;
|
|
29
|
+
protected remoteDelete(bearer: string, args: Args): Promise<void>;
|
|
30
|
+
protected remoteGet(bearer: string, args: Args): Promise<WorkingPlanningEntity>;
|
|
31
|
+
protected remoteList(bearer: string, args: Args): Promise<StaffWorkingPlanningEntity[]>;
|
|
32
|
+
protected remoteUpdate(bearer: string, args: Args, item: WorkingPlanningEntity): Promise<WorkingPlanningEntity>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { AuthenticationSecuredService } from '@/service/secured/authenticationSecuredService';
|
|
18
|
+
import { LoggerInterface } from "../utils/logger";
|
|
19
|
+
declare module 'axios' {
|
|
20
|
+
interface AxiosResponse<T = any> extends Promise<T> {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare function setLang(language: string): void;
|
|
24
|
+
export default abstract class HttpClient {
|
|
25
|
+
private authenticationService?;
|
|
26
|
+
protected logger?: LoggerInterface;
|
|
27
|
+
private bearerCall;
|
|
28
|
+
protected readonly instance: AxiosInstance;
|
|
29
|
+
protected readonly isPublic?: boolean;
|
|
30
|
+
private axiosLoggerBuilder;
|
|
31
|
+
protected readonly baseUrl: string;
|
|
32
|
+
protected abortControllers: Map<string, AbortController>;
|
|
33
|
+
constructor(baseURL: string, authenticationService?: AuthenticationSecuredService, logger?: LoggerInterface, isPublic?: boolean);
|
|
34
|
+
protected filteredDataLog(data: any): any;
|
|
35
|
+
protected getPublicAxiosConfig(): AxiosRequestConfig;
|
|
36
|
+
protected getAxiosConfig(bearer: string, account?: string): AxiosRequestConfig;
|
|
37
|
+
private _initializeRequestInterceptor;
|
|
38
|
+
private isAbortableRequest;
|
|
39
|
+
private _handleRequest;
|
|
40
|
+
private _initializeResponseInterceptor;
|
|
41
|
+
private _handleResponse;
|
|
42
|
+
private _handleError;
|
|
43
|
+
private _initializeWidgetResponseInterceptor;
|
|
44
|
+
private _handleWidgetResponse;
|
|
45
|
+
private _handleWidgetError;
|
|
46
|
+
private _handleRefreshToken;
|
|
47
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare function getEventFieldParameter(fields: string[]): string;
|
|
2
|
+
export declare function getDefaultEventField(): EventFields[];
|
|
3
|
+
export declare enum EventFields {
|
|
4
|
+
ID = "id",
|
|
5
|
+
START = "start",
|
|
6
|
+
END = "end",
|
|
7
|
+
OWNER = "owner",
|
|
8
|
+
NOTES = "notes",
|
|
9
|
+
CREATED = "created",
|
|
10
|
+
STAFF = "staff",
|
|
11
|
+
HISTORY = "history",
|
|
12
|
+
SOURCE = "source",
|
|
13
|
+
REFERENCE = "reference",
|
|
14
|
+
SERVICE = "service",
|
|
15
|
+
ENCRYPTED_ID = "encryptedId",
|
|
16
|
+
PAID = "paid",
|
|
17
|
+
CLIENT = "client",
|
|
18
|
+
COMPANY = "company",
|
|
19
|
+
STATUS = "status",
|
|
20
|
+
SUMMARY = "summary",
|
|
21
|
+
RESOURCE = "resource",
|
|
22
|
+
SERVICE_RESOURCE = "service-resource",
|
|
23
|
+
PARENT = "parent",
|
|
24
|
+
RESCHEDULE_LINK = "rescheduleLink",
|
|
25
|
+
ONLINE_MEETING = "onlineMeeting",
|
|
26
|
+
PRICE = "price",
|
|
27
|
+
FORM = "form",
|
|
28
|
+
PREPARATION_DURATION = "preparationDuration",
|
|
29
|
+
BUFFER_DURATION = "bufferDuration"
|
|
30
|
+
}
|