@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.
Files changed (312) hide show
  1. package/dist/agendizeApi.d.ts +575 -0
  2. package/dist/browserStorage/browserStorage.d.ts +46 -0
  3. package/dist/config.d.ts +19 -0
  4. package/dist/data/Account.d.ts +224 -0
  5. package/dist/data/Activity.d.ts +529 -0
  6. package/dist/data/Address.d.ts +46 -0
  7. package/dist/data/Attendee.d.ts +59 -0
  8. package/dist/data/Batch.d.ts +41 -0
  9. package/dist/data/CRMSettings.d.ts +35 -0
  10. package/dist/data/Calendar.d.ts +78 -0
  11. package/dist/data/Changelog.d.ts +20 -0
  12. package/dist/data/Common.d.ts +33 -0
  13. package/dist/data/CommonEnum.d.ts +44 -0
  14. package/dist/data/Company.d.ts +170 -0
  15. package/dist/data/CompanyPerformance.d.ts +26 -0
  16. package/dist/data/CompanySettings.d.ts +29 -0
  17. package/dist/data/Connector.d.ts +26 -0
  18. package/dist/data/Consent.d.ts +4 -0
  19. package/dist/data/Contact.d.ts +208 -0
  20. package/dist/data/CustomStatus.d.ts +20 -0
  21. package/dist/data/Employee.d.ts +27 -0
  22. package/dist/data/Error.d.ts +65 -0
  23. package/dist/data/Event.d.ts +222 -0
  24. package/dist/data/EventSearch.d.ts +232 -0
  25. package/dist/data/EventUpdate.d.ts +9 -0
  26. package/dist/data/Form.d.ts +230 -0
  27. package/dist/data/FormResult.d.ts +61 -0
  28. package/dist/data/FormResultStatus.d.ts +23 -0
  29. package/dist/data/FreeSlot.d.ts +72 -0
  30. package/dist/data/Help.d.ts +18 -0
  31. package/dist/data/Image.d.ts +24 -0
  32. package/dist/data/Integration.d.ts +36 -0
  33. package/dist/data/Link.d.ts +10 -0
  34. package/dist/data/Log.d.ts +79 -0
  35. package/dist/data/LoginProvider.d.ts +17 -0
  36. package/dist/data/LoginRealm.d.ts +20 -0
  37. package/dist/data/Note.d.ts +27 -0
  38. package/dist/data/Notification.d.ts +51 -0
  39. package/dist/data/NotificationStatus.d.ts +5 -0
  40. package/dist/data/PrivacyPolicy.d.ts +43 -0
  41. package/dist/data/Queue.d.ts +54 -0
  42. package/dist/data/QueueRegistration.d.ts +101 -0
  43. package/dist/data/Reporting.d.ts +34 -0
  44. package/dist/data/ReportingExportBody.d.ts +176 -0
  45. package/dist/data/ReportingExportResponse.d.ts +20 -0
  46. package/dist/data/Rights.d.ts +140 -0
  47. package/dist/data/Service.d.ts +234 -0
  48. package/dist/data/ServiceGroup.d.ts +57 -0
  49. package/dist/data/ServiceResource.d.ts +26 -0
  50. package/dist/data/Settings.d.ts +29 -0
  51. package/dist/data/ShortPollingNotification.d.ts +35 -0
  52. package/dist/data/Shortener.d.ts +8 -0
  53. package/dist/data/Staff.d.ts +115 -0
  54. package/dist/data/StaffForms.d.ts +42 -0
  55. package/dist/data/StaffGroup.d.ts +58 -0
  56. package/dist/data/User.d.ts +84 -0
  57. package/dist/data/WidgetUrlCipher.d.ts +25 -0
  58. package/dist/data/WorkingHours.d.ts +94 -0
  59. package/dist/data/account/Permission.d.ts +46 -0
  60. package/dist/data/action/ShareLink.d.ts +55 -0
  61. package/dist/data/conference/Conference.d.ts +161 -0
  62. package/dist/data/conference/ConferenceAssignment.d.ts +194 -0
  63. package/dist/data/conference/ConferenceForm.d.ts +36 -0
  64. package/dist/data/conference/ConferenceInvitee.d.ts +31 -0
  65. package/dist/data/conference/ConferenceLocation.d.ts +359 -0
  66. package/dist/data/conference/ConferenceSpeaker.d.ts +28 -0
  67. package/dist/data/conference/ConferenceSubscriptionRules.d.ts +12 -0
  68. package/dist/data/conference/ConferenceTag.d.ts +29 -0
  69. package/dist/data/conference/Registration.d.ts +56 -0
  70. package/dist/data/conference/RegistrationCancel.d.ts +26 -0
  71. package/dist/data/conference/RegistrationClient.d.ts +16 -0
  72. package/dist/data/conference/Session.d.ts +140 -0
  73. package/dist/data/conference/Widget.d.ts +94 -0
  74. package/dist/data/crm/ClientMessage.d.ts +42 -0
  75. package/dist/data/dashboard/DashboardStructure.d.ts +42 -0
  76. package/dist/data/dashboard/KeyFigures.d.ts +9 -0
  77. package/dist/data/planning/Planning.d.ts +17 -0
  78. package/dist/data/planning/PlanningDay.d.ts +12 -0
  79. package/dist/data/planning/PlanningHour.d.ts +10 -0
  80. package/dist/data/planning/PlanningWeek.d.ts +13 -0
  81. package/dist/data/scheduling/Availabilities.d.ts +103 -0
  82. package/dist/data/scheduling/SchedulingRights.d.ts +40 -0
  83. package/dist/data/scheduling/WorkingPlanning.d.ts +119 -0
  84. package/dist/data/scheduling/schedule/CompanySchedule.d.ts +19 -0
  85. package/dist/data/scheduling/schedule/ScheduleWorkingHours.d.ts +18 -0
  86. package/dist/data/scheduling/schedule/UserSchedules.d.ts +20 -0
  87. package/dist/data/shortPollingNotification/ShortPollingNotificationEvent.d.ts +58 -0
  88. package/dist/data/shortPollingNotification/ShortPollingNotificationObject.d.ts +4 -0
  89. package/dist/data/shortPollingNotification/ShortPollingNotificationReport.d.ts +8 -0
  90. package/dist/db/DashboardStructureDb.d.ts +12 -0
  91. package/dist/db/calendarDb.d.ts +26 -0
  92. package/dist/db/calendarTeamDb.d.ts +27 -0
  93. package/dist/db/calendarTeamDefaultDb.d.ts +20 -0
  94. package/dist/db/clientMessageDb.d.ts +10 -0
  95. package/dist/db/companyDb.d.ts +26 -0
  96. package/dist/db/companySettingsDb.d.ts +11 -0
  97. package/dist/db/conferenceDb.d.ts +26 -0
  98. package/dist/db/conferenceInviteeDb.d.ts +27 -0
  99. package/dist/db/conferenceRegistrationDb.d.ts +11 -0
  100. package/dist/db/conferenceSessionDb.d.ts +27 -0
  101. package/dist/db/conferenceSpeakerDb.d.ts +27 -0
  102. package/dist/db/conferenceTagDb.d.ts +12 -0
  103. package/dist/db/contactDb.d.ts +26 -0
  104. package/dist/db/crmSettingsDb.d.ts +9 -0
  105. package/dist/db/customStatusDb.d.ts +13 -0
  106. package/dist/db/eventDb.d.ts +29 -0
  107. package/dist/db/externalEventDb.d.ts +26 -0
  108. package/dist/db/formBuilderDb.d.ts +26 -0
  109. package/dist/db/icsEventDb.d.ts +25 -0
  110. package/dist/db/index.d.ts +74 -0
  111. package/dist/db/noteDb.d.ts +27 -0
  112. package/dist/db/notificationDb.d.ts +9 -0
  113. package/dist/db/notificationStatusDb.d.ts +26 -0
  114. package/dist/db/planningDb.d.ts +27 -0
  115. package/dist/db/privacyPolicyDb.d.ts +24 -0
  116. package/dist/db/promoteFieldDb.d.ts +9 -0
  117. package/dist/db/queueDb.d.ts +27 -0
  118. package/dist/db/rightsDb.d.ts +25 -0
  119. package/dist/db/serviceDb.d.ts +28 -0
  120. package/dist/db/serviceGroupDb.d.ts +31 -0
  121. package/dist/db/serviceResourceDb.d.ts +27 -0
  122. package/dist/db/settingsDb.d.ts +24 -0
  123. package/dist/db/shortPollingNotificationDb.d.ts +28 -0
  124. package/dist/db/sseNotificationDb.d.ts +0 -0
  125. package/dist/db/staffDb.d.ts +28 -0
  126. package/dist/db/staffFormsDb.d.ts +25 -0
  127. package/dist/db/staffGroupDb.d.ts +32 -0
  128. package/dist/db/userDb.d.ts +27 -0
  129. package/dist/db/userDefaultDb.d.ts +20 -0
  130. package/dist/db/userDirectoryDb.d.ts +28 -0
  131. package/dist/db/widgetFormDb.d.ts +25 -0
  132. package/dist/eventFetchedMeta/eventMeta.d.ts +24 -0
  133. package/dist/eventFetchedMeta/eventMetaStorage.d.ts +63 -0
  134. package/dist/index.d.ts +102 -0
  135. package/dist/js-agendize-api.es.js +33381 -0
  136. package/dist/repository/index.d.ts +87 -0
  137. package/dist/repository/public/accountPublicRepository.d.ts +40 -0
  138. package/dist/repository/public/availabilityPublicRepository.d.ts +39 -0
  139. package/dist/repository/public/companyPublicRepository.d.ts +24 -0
  140. package/dist/repository/public/conferencePublicRepository.d.ts +27 -0
  141. package/dist/repository/public/customStatusPublicRepository.d.ts +28 -0
  142. package/dist/repository/public/eventPublicRepository.d.ts +42 -0
  143. package/dist/repository/public/formPublicRepository.d.ts +25 -0
  144. package/dist/repository/public/freeSlotPublicRepository.d.ts +40 -0
  145. package/dist/repository/public/queuePublicRepository.d.ts +22 -0
  146. package/dist/repository/public/queueRegistrationPublicRepository.d.ts +22 -0
  147. package/dist/repository/public/registrationPublicRepository.d.ts +22 -0
  148. package/dist/repository/public/servicePublicRepository.d.ts +24 -0
  149. package/dist/repository/public/sessionPublicRepository.d.ts +23 -0
  150. package/dist/repository/public/staffGroupPublicRepository.d.ts +24 -0
  151. package/dist/repository/public/staffPublicRepository.d.ts +24 -0
  152. package/dist/repository/public/widgetPublicRepository.d.ts +26 -0
  153. package/dist/repository/secured/CRMSettingsSecuredRepository.d.ts +25 -0
  154. package/dist/repository/secured/accountSecuredRepository.d.ts +44 -0
  155. package/dist/repository/secured/activitySecuredRepository.d.ts +43 -0
  156. package/dist/repository/secured/additionalFieldsSecuredRepository.d.ts +24 -0
  157. package/dist/repository/secured/appointmentAttendeeSecuredRepository.d.ts +47 -0
  158. package/dist/repository/secured/availabilitySecuredRepository.d.ts +42 -0
  159. package/dist/repository/secured/calendarSecuredRepository.d.ts +33 -0
  160. package/dist/repository/secured/changelogSecuredRepository.d.ts +24 -0
  161. package/dist/repository/secured/clientMessageSecuredRepository.d.ts +29 -0
  162. package/dist/repository/secured/companyPerformanceSecuredRepository.d.ts +37 -0
  163. package/dist/repository/secured/companySecuredRepository.d.ts +34 -0
  164. package/dist/repository/secured/companySettingsSecuredRepository.d.ts +28 -0
  165. package/dist/repository/secured/conferenceInviteeSecuredRepository.d.ts +47 -0
  166. package/dist/repository/secured/conferenceRegistrationSecuredRepository.d.ts +39 -0
  167. package/dist/repository/secured/conferenceSecuredRepository.d.ts +50 -0
  168. package/dist/repository/secured/conferenceSessionSecuredRepository.d.ts +49 -0
  169. package/dist/repository/secured/conferenceSpeakerSecuredRepository.d.ts +50 -0
  170. package/dist/repository/secured/conferenceTagSecuredRepository.d.ts +31 -0
  171. package/dist/repository/secured/connectorsSecuredRepository.d.ts +24 -0
  172. package/dist/repository/secured/contactExternalSecuredRepository.d.ts +27 -0
  173. package/dist/repository/secured/contactSecuredRepository.d.ts +38 -0
  174. package/dist/repository/secured/customStatusSecuredRepository.d.ts +32 -0
  175. package/dist/repository/secured/dasboardStructureSecuredRepository.d.ts +25 -0
  176. package/dist/repository/secured/dashboardSecuredRepository.d.ts +20 -0
  177. package/dist/repository/secured/eventSecuredRepository.d.ts +67 -0
  178. package/dist/repository/secured/exportAppointmentsSecuredRepository.d.ts +25 -0
  179. package/dist/repository/secured/exportCalendarSecuredRepository.d.ts +28 -0
  180. package/dist/repository/secured/externalEventSecuredRepository.d.ts +39 -0
  181. package/dist/repository/secured/formBuilderSecuredRepository.d.ts +46 -0
  182. package/dist/repository/secured/formResultSecuredRepository.d.ts +31 -0
  183. package/dist/repository/secured/formResultStatusSecuredRepository.d.ts +30 -0
  184. package/dist/repository/secured/freeSlotSecuredRepository.d.ts +46 -0
  185. package/dist/repository/secured/icsEventSecuredRepository.d.ts +34 -0
  186. package/dist/repository/secured/integrationsSecuredRepository.d.ts +24 -0
  187. package/dist/repository/secured/logSecuredRepository.d.ts +25 -0
  188. package/dist/repository/secured/noteSecuredRepository.d.ts +27 -0
  189. package/dist/repository/secured/notificationSecuredRepository.d.ts +27 -0
  190. package/dist/repository/secured/notificationStatusSecuredRepository.d.ts +40 -0
  191. package/dist/repository/secured/permissionSecuredRepository.d.ts +46 -0
  192. package/dist/repository/secured/planningSecuredRepository.d.ts +46 -0
  193. package/dist/repository/secured/privacyPolicySecuredRepository.d.ts +41 -0
  194. package/dist/repository/secured/promoteFieldSecuredRepository.d.ts +26 -0
  195. package/dist/repository/secured/queueRegistrationSecuredRepository.d.ts +46 -0
  196. package/dist/repository/secured/queueSecuredRepository.d.ts +46 -0
  197. package/dist/repository/secured/reportingSecuredRepository.d.ts +42 -0
  198. package/dist/repository/secured/rightsSecuredRepository.d.ts +40 -0
  199. package/dist/repository/secured/scheduleSecuredRepository.d.ts +25 -0
  200. package/dist/repository/secured/schedulingRightsSecuredRepository.d.ts +26 -0
  201. package/dist/repository/secured/serviceGroupSecuredRepository.d.ts +50 -0
  202. package/dist/repository/secured/serviceResourceSecuredRepository.d.ts +50 -0
  203. package/dist/repository/secured/serviceSecuredRepository.d.ts +36 -0
  204. package/dist/repository/secured/settingsSecuredRepository.d.ts +27 -0
  205. package/dist/repository/secured/shareLinkSecuredRepository.d.ts +38 -0
  206. package/dist/repository/secured/shortPollingNotificationSecuredRepository.d.ts +32 -0
  207. package/dist/repository/secured/shortenerSecuredRepository.d.ts +39 -0
  208. package/dist/repository/secured/sseNotificationSecuredRepository.d.ts +0 -0
  209. package/dist/repository/secured/staffFormsSecuredRepository.d.ts +40 -0
  210. package/dist/repository/secured/staffGroupSecuredRepository.d.ts +50 -0
  211. package/dist/repository/secured/staffSecuredRepository.d.ts +41 -0
  212. package/dist/repository/secured/tagSecuredRepository.d.ts +24 -0
  213. package/dist/repository/secured/userAbstractSecuredRepository.d.ts +55 -0
  214. package/dist/repository/secured/userDefaultSecuredRepository.d.ts +28 -0
  215. package/dist/repository/secured/userDirectorySecuredRepository.d.ts +41 -0
  216. package/dist/repository/secured/userSecuredRepository.d.ts +33 -0
  217. package/dist/repository/secured/widgetFormSecuredRepository.d.ts +45 -0
  218. package/dist/repository/secured/widgetUrlCipherSecuredRepository.d.ts +46 -0
  219. package/dist/repository/secured/workingPlanningSecuredRepository.d.ts +34 -0
  220. package/dist/service/index.d.ts +47 -0
  221. package/dist/service/items/EventFields.d.ts +30 -0
  222. package/dist/service/public/WidgetError.d.ts +7 -0
  223. package/dist/service/public/accountPublicService.d.ts +20 -0
  224. package/dist/service/public/availabilityPublicService.d.ts +21 -0
  225. package/dist/service/public/companyPublicService.d.ts +6 -0
  226. package/dist/service/public/conferencePublicService.d.ts +6 -0
  227. package/dist/service/public/customStatusPublicService.d.ts +5 -0
  228. package/dist/service/public/eventPublicService.d.ts +30 -0
  229. package/dist/service/public/formPublicService.d.ts +7 -0
  230. package/dist/service/public/freeSlotPublicService.d.ts +20 -0
  231. package/dist/service/public/queueInscriptionPublicService.d.ts +5 -0
  232. package/dist/service/public/queuePublicService.d.ts +5 -0
  233. package/dist/service/public/registrationPublicService.d.ts +8 -0
  234. package/dist/service/public/servicePublicService.d.ts +22 -0
  235. package/dist/service/public/sessionPublicService.d.ts +5 -0
  236. package/dist/service/public/staffGroupPublicService.d.ts +6 -0
  237. package/dist/service/public/staffPublicService.d.ts +6 -0
  238. package/dist/service/public/widgetPublicService.d.ts +5 -0
  239. package/dist/service/public/widgetResponse.d.ts +3 -0
  240. package/dist/service/secured/FormResultSecuredService.d.ts +8 -0
  241. package/dist/service/secured/accountSecuredService.d.ts +23 -0
  242. package/dist/service/secured/activitySecuredService.d.ts +22 -0
  243. package/dist/service/secured/additionalFieldsSecuredService.d.ts +5 -0
  244. package/dist/service/secured/attendeeSecuredService.d.ts +25 -0
  245. package/dist/service/secured/authenticationSecuredService.d.ts +56 -0
  246. package/dist/service/secured/availabilitiesSecuredService.d.ts +20 -0
  247. package/dist/service/secured/batchSecuredService.d.ts +20 -0
  248. package/dist/service/secured/calendarSecuredService.d.ts +28 -0
  249. package/dist/service/secured/changelogSecuredService.d.ts +20 -0
  250. package/dist/service/secured/clientMessageSecuredService.d.ts +6 -0
  251. package/dist/service/secured/companyPerformanceSecuredService.d.ts +20 -0
  252. package/dist/service/secured/companySecuredService.d.ts +27 -0
  253. package/dist/service/secured/companySettingsSecuredService.d.ts +6 -0
  254. package/dist/service/secured/conferenceInviteeSecuredService.d.ts +25 -0
  255. package/dist/service/secured/conferenceRegistrationSecuredService.d.ts +13 -0
  256. package/dist/service/secured/conferenceSecuredService.d.ts +25 -0
  257. package/dist/service/secured/conferenceSessionSecuredService.d.ts +26 -0
  258. package/dist/service/secured/conferenceSpeakerSecuredService.d.ts +30 -0
  259. package/dist/service/secured/conferenceTagSecuredService.d.ts +10 -0
  260. package/dist/service/secured/connectorsSecuredService.d.ts +5 -0
  261. package/dist/service/secured/contactExternalSecuredService.d.ts +21 -0
  262. package/dist/service/secured/contactSecuredService.d.ts +26 -0
  263. package/dist/service/secured/crmSettingsSecuredService.d.ts +5 -0
  264. package/dist/service/secured/customStatusSecuredService.d.ts +9 -0
  265. package/dist/service/secured/dashboardSecuredService.d.ts +5 -0
  266. package/dist/service/secured/dashboardStructureSecuredService.d.ts +5 -0
  267. package/dist/service/secured/eventSecuredService.d.ts +161 -0
  268. package/dist/service/secured/exportAppointmentsSecuredService.d.ts +7 -0
  269. package/dist/service/secured/exportCalendarSecuredService.d.ts +5 -0
  270. package/dist/service/secured/formBuilderSecuredService.d.ts +24 -0
  271. package/dist/service/secured/formResultStatusSecuredService.d.ts +6 -0
  272. package/dist/service/secured/freeSlotSecuredService.d.ts +21 -0
  273. package/dist/service/secured/freeStaffSecuredService.d.ts +19 -0
  274. package/dist/service/secured/integrationsSecuredService.d.ts +5 -0
  275. package/dist/service/secured/logSecuredService.d.ts +19 -0
  276. package/dist/service/secured/noteSecuredService.d.ts +22 -0
  277. package/dist/service/secured/notificationSecuredService.d.ts +6 -0
  278. package/dist/service/secured/permissionsSecuredService.d.ts +24 -0
  279. package/dist/service/secured/planningSecuredService.d.ts +25 -0
  280. package/dist/service/secured/privacyPolicySecuredService.d.ts +20 -0
  281. package/dist/service/secured/promoteFieldSecuredService.d.ts +5 -0
  282. package/dist/service/secured/queueRegistrationSecuredService.d.ts +23 -0
  283. package/dist/service/secured/queueSecuredService.d.ts +25 -0
  284. package/dist/service/secured/reportingSecuredService.d.ts +20 -0
  285. package/dist/service/secured/rightsSecuredService.d.ts +20 -0
  286. package/dist/service/secured/scheduleSecuredService.d.ts +5 -0
  287. package/dist/service/secured/schedulingRightsSecuredService.d.ts +7 -0
  288. package/dist/service/secured/serviceGroupSecuredService.d.ts +25 -0
  289. package/dist/service/secured/serviceResourceSecuredService.d.ts +25 -0
  290. package/dist/service/secured/serviceSecuredService.d.ts +25 -0
  291. package/dist/service/secured/settingsSecuredService.d.ts +20 -0
  292. package/dist/service/secured/shareLinkSecuredService.d.ts +21 -0
  293. package/dist/service/secured/shortPollingNotificationSecuredService.d.ts +10 -0
  294. package/dist/service/secured/shortenerSecuredService.d.ts +20 -0
  295. package/dist/service/secured/staffFormsSecuredService.d.ts +20 -0
  296. package/dist/service/secured/staffGroupSecuredService.d.ts +25 -0
  297. package/dist/service/secured/staffSecuredService.d.ts +26 -0
  298. package/dist/service/secured/tagSecuredService.d.ts +5 -0
  299. package/dist/service/secured/userDirectorySecuredService.d.ts +20 -0
  300. package/dist/service/secured/userSecuredService.d.ts +33 -0
  301. package/dist/service/secured/widgetFormSecuredService.d.ts +26 -0
  302. package/dist/service/secured/widgetUrlCipherSecuredService.d.ts +21 -0
  303. package/dist/service/secured/workingPlanningSecuredService.d.ts +6 -0
  304. package/dist/utils/axiosLoggerBuilder.d.ts +11 -0
  305. package/dist/utils/colorManager.d.ts +7 -0
  306. package/dist/utils/date.d.ts +12 -0
  307. package/dist/utils/encoding.d.ts +8 -0
  308. package/dist/utils/formUtils.d.ts +4 -0
  309. package/dist/utils/logger.d.ts +40 -0
  310. package/dist/utils/pkceUtils.d.ts +10 -0
  311. package/dist/utils/widgetForms.d.ts +7 -0
  312. package/package.json +3 -3
@@ -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,222 @@
1
+ import { ConsentEntity } from "./Consent";
2
+ import { FormItemDto, FormItemEntity } from "./Form";
3
+ import { CustomStatusDto, CustomStatusEntity } from "./CustomStatus";
4
+ import { BodyEntityInterface, EntityType, PublicBodyEntity, SecuredBodyEntity, SecuredEntity } from "@/data/Common";
5
+ import { LocationType, 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
+ import { AttendeeSecuredDto, AttendeeSecuredEntity } from "@/data/Attendee";
11
+ export declare enum EventType {
12
+ PRO = "normal",
13
+ PERSO = "personal",
14
+ EXTERNAL = "external",
15
+ ICS = "ics"
16
+ }
17
+ export declare enum EventStatus {
18
+ PENDING = "pending",
19
+ DECLINED = "declined",
20
+ ACCEPTED = "accepted",
21
+ IN_PROGRESS = "inProgress",
22
+ NO_SHOW = "noShow",
23
+ COMPLETED = "completed",
24
+ CANCELLED = "cancelled",
25
+ PERSONAL = "personal",
26
+ PERSONAL_CANCELLED = "personal_cancelled",
27
+ EXTERNAL = "external",
28
+ UNDEFINED = "undefined",
29
+ CUSTOM = "custom",
30
+ PENDING_PAYMENT = "pendingPayment"
31
+ }
32
+ export type EventEntity<Type = EntityType> = (Type extends SecuredEntity ? EventSecuredEntity : EventPublicEntity) & BodyEntityInterface;
33
+ export declare class EventPublicEntity extends PublicBodyEntity {
34
+ id?: string;
35
+ company: CompanyPublicEntity;
36
+ services: ServicePublicEntity[];
37
+ staffs: StaffPublicEntity[];
38
+ start: Date;
39
+ end: Date;
40
+ status: string;
41
+ customStatus?: CustomStatusEntity;
42
+ notes?: string;
43
+ contact: ContactEntity;
44
+ location: LocationType[];
45
+ locationCustom?: string;
46
+ form?: FormItemEntity[];
47
+ histories?: AppointmentActivityEntity[];
48
+ source?: string;
49
+ sourceType?: 'manual' | 'widget' | 'external' | 'manualPhone' | 'api' | 'backofficeWidget' | 'mobile' | 'facebook' | 'internalWidget' | '' | undefined;
50
+ onlineMeeting?: {
51
+ link: string;
52
+ };
53
+ cancellable?: boolean;
54
+ static fromDto(dto: EventPublicDto): EventPublicEntity;
55
+ }
56
+ export declare class EventPublicDto {
57
+ id: string;
58
+ company: CompanyPublicDto;
59
+ services: ServicePublicDto[];
60
+ staffs: StaffPublicDto[];
61
+ start: {
62
+ dateTime: string;
63
+ timeZone: string;
64
+ };
65
+ end: {
66
+ dateTime: string;
67
+ timeZone: string;
68
+ };
69
+ status: string;
70
+ customStatus?: CustomStatusEntity;
71
+ notes?: string;
72
+ client: ContactDto;
73
+ location: LocationType[];
74
+ customLocation?: string;
75
+ cancellable?: boolean;
76
+ locationLink?: string;
77
+ form?: FormItemDto[];
78
+ histories?: ActivityDto[];
79
+ source?: string;
80
+ sourceType?: 'manual' | 'widget' | 'external' | 'manualPhone' | 'api' | 'backofficeWidget' | 'mobile' | 'facebook' | 'internalWidget' | '' | undefined;
81
+ onlineMeeting?: {
82
+ link: string;
83
+ };
84
+ }
85
+ export declare class EventSecuredEntity extends SecuredBodyEntity {
86
+ id?: string;
87
+ owner?: {
88
+ id: string;
89
+ userName: string;
90
+ };
91
+ company?: {
92
+ id: string;
93
+ name?: string;
94
+ encryptedId?: string;
95
+ color?: string;
96
+ };
97
+ service?: {
98
+ id: string;
99
+ name?: string;
100
+ color?: string;
101
+ preparationDuration?: number;
102
+ bufferDuration?: number;
103
+ capacity?: number;
104
+ };
105
+ staff?: {
106
+ id: string;
107
+ firstName?: string;
108
+ lastName?: string;
109
+ phone?: string;
110
+ email?: string;
111
+ externalId?: string;
112
+ userId?: string;
113
+ };
114
+ client?: {
115
+ id: string;
116
+ firstName?: string;
117
+ lastName?: string;
118
+ email?: string;
119
+ phone?: string;
120
+ externalId?: string;
121
+ };
122
+ start: Date;
123
+ end: Date;
124
+ status?: string;
125
+ type: string;
126
+ source: string;
127
+ price?: number;
128
+ paid?: boolean;
129
+ notes?: string;
130
+ summary?: string;
131
+ form?: FormItemEntity[];
132
+ metaEvent?: boolean;
133
+ metaEventId?: string;
134
+ onlineMeeting?: {
135
+ provider: string;
136
+ videoLink: string;
137
+ };
138
+ parameters?: any;
139
+ events?: EventSecuredEntity[];
140
+ privacyConsent?: ConsentEntity;
141
+ marketingConsent?: ConsentEntity;
142
+ location: LocationType;
143
+ locationCustom?: string;
144
+ preparationDuration?: number;
145
+ bufferDuration?: number;
146
+ customStatus?: CustomStatusEntity;
147
+ securityKey?: string;
148
+ attendees: AttendeeSecuredEntity[];
149
+ constructor();
150
+ static fromDto(dto: EventSecuredDto, type?: EventType | string): EventSecuredEntity;
151
+ static toDto(entity: EventSecuredEntity, timeZone?: string): EventSecuredDto;
152
+ }
153
+ export declare class EventSecuredDto {
154
+ id?: string;
155
+ owner?: {
156
+ id: string;
157
+ userName: string;
158
+ };
159
+ company?: {
160
+ id: string;
161
+ name?: string;
162
+ color?: string;
163
+ };
164
+ service?: {
165
+ id: string;
166
+ name?: string;
167
+ color?: string;
168
+ preparationDuration?: number;
169
+ bufferDuration?: number;
170
+ capacity?: number;
171
+ };
172
+ staff?: {
173
+ id: string;
174
+ firstName?: string;
175
+ lastName?: string;
176
+ phone?: string;
177
+ email?: string;
178
+ externalId?: string;
179
+ userId?: string;
180
+ };
181
+ client?: {
182
+ id: string;
183
+ firstName?: string;
184
+ lastName?: string;
185
+ email?: string;
186
+ phone?: string;
187
+ externalId?: string;
188
+ };
189
+ start: {
190
+ dateTime: string;
191
+ timeZone?: string;
192
+ };
193
+ end: {
194
+ dateTime: string;
195
+ timeZone?: string;
196
+ };
197
+ status?: string;
198
+ type: string;
199
+ source: string;
200
+ paid?: boolean;
201
+ price?: number;
202
+ notes?: string;
203
+ summary?: string;
204
+ form?: FormItemDto[];
205
+ 'meta-event'?: boolean;
206
+ metaEventId?: string;
207
+ onlineMeeting?: {
208
+ provider: string;
209
+ videoLink: string;
210
+ };
211
+ parameters?: any;
212
+ events?: EventSecuredDto[];
213
+ privacyConsent?: ConsentEntity;
214
+ marketingConsent?: ConsentEntity;
215
+ location: LocationType;
216
+ locationCustom?: string;
217
+ preparationDuration?: number;
218
+ bufferDuration?: number;
219
+ customStatus?: CustomStatusDto;
220
+ securityKey?: string;
221
+ attendees?: AttendeeSecuredDto[];
222
+ }
@@ -0,0 +1,232 @@
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
+ import { LocationType } from "@/data/Service";
19
+ export declare enum EventStatusId {
20
+ PENDING = "1",
21
+ DECLINED = "11",
22
+ ACCEPTED = "2",
23
+ IN_PROGRESS = "9",
24
+ NO_SHOW = "4",
25
+ COMPLETED = "10",
26
+ CANCELLED = "5",
27
+ CLIENT_CANCELLED = "12",
28
+ CUSTOM = "-1",
29
+ PENDING_PAYMENT = "14"
30
+ }
31
+ export declare class EventSearchEntity {
32
+ id?: string;
33
+ company?: EventSearchCompanyEntity;
34
+ service?: EventSearchServiceEntity;
35
+ staff?: EventSearchStaffEntity;
36
+ contact?: EventSearchContactEntity;
37
+ location: EventSearchLocationEntity;
38
+ start: Date;
39
+ end: Date;
40
+ status?: EventSearchStatusEntity;
41
+ conflict?: boolean;
42
+ conflicts?: EventSearchConflictEntity[];
43
+ securityKey?: string;
44
+ static fromEventDto(dto: EventSearchDto): EventSearchEntity;
45
+ static toEventEntity(searchEntity: EventSearchEntity): EventSecuredEntity;
46
+ }
47
+ export declare class EventSearchCompanyEntity {
48
+ id: string;
49
+ name: string;
50
+ timeZone?: string;
51
+ static fromDto(dto: EventSearchCompanyDto): EventSearchCompanyEntity;
52
+ }
53
+ export declare class EventSearchServiceEntity {
54
+ id: string;
55
+ name: string;
56
+ static fromDto(dto: EventSearchServiceDto): EventSearchServiceEntity;
57
+ }
58
+ export declare class EventSearchStaffEntity {
59
+ id: string;
60
+ firstName?: string;
61
+ lastName?: string;
62
+ externalId?: string;
63
+ userId?: string;
64
+ static fromDto(dto: EventSearchStaffDto): EventSearchStaffEntity;
65
+ }
66
+ export declare class EventSearchContactEntity {
67
+ id: string;
68
+ title?: string;
69
+ firstName?: string;
70
+ lastName?: string;
71
+ email?: string;
72
+ phone?: string;
73
+ reference?: string;
74
+ static fromDto(dto: EventSearchContactDto): EventSearchContactEntity;
75
+ }
76
+ export declare class EventSearchLocationEntity {
77
+ type: LocationType;
78
+ static fromDto(dto: EventSearchLocationDto): EventSearchLocationEntity;
79
+ }
80
+ export declare class EventSearchStatusEntity {
81
+ id: string;
82
+ standard: boolean;
83
+ label?: string;
84
+ color?: string;
85
+ static fromDto(dto: EventSearchStatusDto): EventSearchStatusEntity;
86
+ }
87
+ export declare class EventSearchConflictEntity {
88
+ event?: string;
89
+ company?: string;
90
+ reason: EventSearchConflictReason;
91
+ source: EventSearchConflictSource;
92
+ static fromDto(dto: EventSearchConflictDto): EventSearchConflictEntity;
93
+ }
94
+ export declare enum EventSearchConflictReason {
95
+ STAFF = "STAFF",
96
+ SERVICE = "SERVICE",
97
+ STAFF_TIME = "STAFF_TIME",
98
+ SERVICE_TIME = "SERVICE_TIME",
99
+ SERVICE_SKILL = "SERVICE_SKILL",
100
+ STAFF_RESCHEDULE = "STAFF_RESCHEDULE",
101
+ STAFF_VACATION = "STAFF_VACATION",
102
+ UNKNOWN = "UNKNOWN"
103
+ }
104
+ export declare enum EventSearchConflictSource {
105
+ SERVICE_NOT_AVAILABLE = "SERVICE_NOT_AVAILABLE",
106
+ STAFF_NOT_AVAILABLE = "STAFF_NOT_AVAILABLE",
107
+ UNKNOWN = "UNKNOWN"
108
+ }
109
+ export declare class EventSearchPageEntity {
110
+ items: EventSearchEntity[];
111
+ totalItems: number;
112
+ nextSyncToken?: string;
113
+ nextPageToken?: string;
114
+ static fromDto(dto: EventSearchPageDto): EventSearchPageEntity;
115
+ }
116
+ export interface EventSearchOption {
117
+ page?: number;
118
+ pageToken?: string;
119
+ orderBy?: string;
120
+ maxResults?: number;
121
+ }
122
+ export declare class EventSearchBodyEntity {
123
+ basicSearch?: string;
124
+ timeZone?: string;
125
+ start?: Date;
126
+ end?: Date;
127
+ companies: EventSearchBodyCompanyEntity[];
128
+ status?: string[];
129
+ conflict?: boolean;
130
+ cancelledOrDeclined?: boolean;
131
+ static fromDto(dto: EventSearchBodyDto): EventSearchBodyEntity;
132
+ static toDto(entity: EventSearchBodyEntity, timeZone: string): EventSearchBodyDto;
133
+ }
134
+ export declare class EventSearchBodyCompanyEntity {
135
+ companyId: string;
136
+ staffIds?: string[];
137
+ staffGroupIds?: string[];
138
+ serviceIds?: string[];
139
+ serviceGroupIds?: string[];
140
+ static toDto(entity: EventSearchBodyCompanyEntity): EventSearchBodyCompanyDto;
141
+ static fromDto(dto: EventSearchBodyCompanyDto): EventSearchBodyCompanyEntity;
142
+ }
143
+ export interface EventSearchConflictDto {
144
+ event?: string;
145
+ company?: string;
146
+ reason: string;
147
+ source: string;
148
+ }
149
+ export interface EventSearchStatusDto {
150
+ id: string;
151
+ standard: boolean;
152
+ label?: string;
153
+ color?: string;
154
+ }
155
+ export interface EventSearchBodyDto {
156
+ basicSearch?: string;
157
+ timeZone?: string;
158
+ start?: {
159
+ dateTime: string;
160
+ timeZone?: string;
161
+ };
162
+ end?: {
163
+ dateTime: string;
164
+ timeZone?: string;
165
+ };
166
+ companies: EventSearchBodyCompanyDto[];
167
+ status?: string[];
168
+ conflict?: boolean;
169
+ cancelledOrDeclined?: boolean;
170
+ }
171
+ export interface EventSearchBodyCompanyDto {
172
+ companyId: string;
173
+ staffIds?: string[];
174
+ staffGroupIds?: string[];
175
+ serviceIds?: string[];
176
+ serviceGroupIds?: string[];
177
+ }
178
+ export interface EventSearchPageDto {
179
+ items: EventSearchDto[];
180
+ totalItems: number;
181
+ nextSyncToken?: string;
182
+ nextPageToken?: string;
183
+ }
184
+ export declare class EventSearchCompanyDto {
185
+ id: string;
186
+ name: string;
187
+ timeZone?: string;
188
+ }
189
+ export declare class EventSearchServiceDto {
190
+ id: string;
191
+ name: string;
192
+ }
193
+ export declare class EventSearchStaffDto {
194
+ id: string;
195
+ firstName?: string;
196
+ lastName?: string;
197
+ externalId?: string;
198
+ userId?: string;
199
+ }
200
+ export declare class EventSearchContactDto {
201
+ id: string;
202
+ title?: string;
203
+ firstName?: string;
204
+ lastName?: string;
205
+ email?: string;
206
+ phone?: string;
207
+ reference?: string;
208
+ }
209
+ export declare class EventSearchLocationDto {
210
+ type: LocationType;
211
+ }
212
+ export declare class EventSearchDto {
213
+ id?: string;
214
+ company?: EventSearchCompanyDto;
215
+ service?: EventSearchServiceDto;
216
+ staff?: EventSearchStaffDto;
217
+ contact?: EventSearchContactDto;
218
+ location: EventSearchLocationDto;
219
+ startDate: {
220
+ dateTime: string;
221
+ timeZone?: string;
222
+ };
223
+ endDate: {
224
+ dateTime: string;
225
+ timeZone?: string;
226
+ };
227
+ status?: EventSearchStatusDto;
228
+ customStatus?: CustomStatusDto;
229
+ conflict?: boolean;
230
+ conflicts?: EventSearchConflictDto[];
231
+ securityKey?: string;
232
+ }
@@ -0,0 +1,9 @@
1
+ export declare class EventUpdateEntity {
2
+ id: string;
3
+ status?: string;
4
+ static toEventUpdateDto(entity: EventUpdateEntity): EventUpdateDto;
5
+ }
6
+ export declare class EventUpdateDto {
7
+ id: string;
8
+ status?: string;
9
+ }