@lilaquadrat/interfaces 1.57.0 → 2.1.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 (267) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/cjs/AccessLimitDoc.d.ts +12 -0
  3. package/lib/cjs/Auth0ProjectSettings.d.ts +4 -0
  4. package/lib/cjs/Cart.d.ts +2 -0
  5. package/lib/cjs/CategoryBookedTime.d.ts +5 -0
  6. package/lib/cjs/ConversationResponse.d.ts +6 -0
  7. package/lib/cjs/CoverageAllocation.d.ts +7 -0
  8. package/lib/cjs/Design.d.ts +3 -0
  9. package/lib/cjs/DesignInput.d.ts +12 -0
  10. package/lib/cjs/DesignListOptions.d.ts +12 -0
  11. package/lib/cjs/Endpoints.d.ts +21 -0
  12. package/lib/cjs/Environment.d.ts +18 -0
  13. package/lib/cjs/EnvironmentAuth.d.ts +6 -0
  14. package/lib/cjs/EnvironmentAuthKeycloak.d.ts +19 -0
  15. package/lib/cjs/FrontendProject.d.ts +15 -0
  16. package/lib/cjs/HistorySeenKey.d.ts +7 -0
  17. package/lib/cjs/IdCounter.d.ts +12 -0
  18. package/lib/cjs/ImmutableErrorKeys.d.ts +1 -0
  19. package/lib/cjs/ListPlanningParticipant.d.ts +18 -0
  20. package/lib/cjs/Participant.d.ts +27 -0
  21. package/lib/cjs/ParticipantRole.d.ts +1 -0
  22. package/lib/cjs/ParticipantState.d.ts +1 -0
  23. package/lib/cjs/ParticipantUser.d.ts +27 -0
  24. package/lib/cjs/PaymentProviderBase.d.ts +17 -0
  25. package/lib/cjs/PlanCoveragePreparation.d.ts +20 -0
  26. package/lib/cjs/PlanningParticipantsResult.d.ts +12 -0
  27. package/lib/cjs/Project.d.ts +32 -1
  28. package/lib/cjs/ProjectAnalytics.d.ts +3 -0
  29. package/lib/cjs/ProjectAnalyticsGoogle.d.ts +11 -0
  30. package/lib/cjs/ProjectAnalyticsInternal.d.ts +3 -0
  31. package/lib/cjs/ProjectDesign.d.ts +5 -0
  32. package/lib/cjs/ProjectHead.d.ts +19 -0
  33. package/lib/cjs/ProjectLogin.d.ts +3 -0
  34. package/lib/cjs/ProjectPayment.d.ts +7 -0
  35. package/lib/cjs/ProjectPwa.d.ts +21 -0
  36. package/lib/cjs/ProjectPwaIcon.d.ts +15 -0
  37. package/lib/cjs/Publish.d.ts +1 -0
  38. package/lib/cjs/RenderContext.d.ts +2 -10
  39. package/lib/cjs/Right.d.ts +1 -0
  40. package/lib/cjs/ScorableParticipant.d.ts +5 -0
  41. package/lib/cjs/ShiftAutofillResult.d.ts +6 -0
  42. package/lib/cjs/ShiftFillCandidate.d.ts +10 -0
  43. package/lib/cjs/ShiftFillPolicy.d.ts +8 -0
  44. package/lib/cjs/ShiftFillResult.d.ts +11 -0
  45. package/lib/cjs/ShiftFillTarget.d.ts +10 -0
  46. package/lib/cjs/ShiftReportContextOptions.d.ts +9 -0
  47. package/lib/cjs/TrackerDailyLimitGroup.d.ts +7 -0
  48. package/lib/cjs/TrackerDailyLimitInput.d.ts +8 -0
  49. package/lib/cjs/TrackerStatisticsBucket.d.ts +13 -0
  50. package/lib/cjs/TrackerStatisticsRange.d.ts +6 -0
  51. package/lib/cjs/TrackerTimeSum.d.ts +4 -0
  52. package/lib/cjs/VerifyTokenOptions.d.ts +8 -0
  53. package/lib/cjs/WorkingAuth.d.ts +3 -0
  54. package/lib/cjs/WorkingAuthAuth0.d.ts +7 -0
  55. package/lib/cjs/WorkingAuthKeycloak.d.ts +7 -0
  56. package/lib/cjs/WorkingContext.d.ts +52 -0
  57. package/lib/cjs/index.d.ts +49 -0
  58. package/lib/esm/AccessLimitDoc.d.ts +12 -0
  59. package/lib/esm/AccessLimitDoc.js +2 -0
  60. package/lib/esm/AccessLimitDoc.js.map +1 -0
  61. package/lib/esm/Auth0ProjectSettings.d.ts +4 -0
  62. package/lib/esm/Cart.d.ts +2 -0
  63. package/lib/esm/CategoryBookedTime.d.ts +5 -0
  64. package/lib/esm/CategoryBookedTime.js +2 -0
  65. package/lib/esm/CategoryBookedTime.js.map +1 -0
  66. package/lib/esm/ConversationResponse.d.ts +6 -0
  67. package/lib/esm/ConversationResponse.js +2 -0
  68. package/lib/esm/ConversationResponse.js.map +1 -0
  69. package/lib/esm/CoverageAllocation.d.ts +7 -0
  70. package/lib/esm/CoverageAllocation.js +2 -0
  71. package/lib/esm/CoverageAllocation.js.map +1 -0
  72. package/lib/esm/Design.d.ts +3 -0
  73. package/lib/esm/DesignInput.d.ts +12 -0
  74. package/lib/esm/DesignInput.js +2 -0
  75. package/lib/esm/DesignInput.js.map +1 -0
  76. package/lib/esm/DesignListOptions.d.ts +12 -0
  77. package/lib/esm/DesignListOptions.js +2 -0
  78. package/lib/esm/DesignListOptions.js.map +1 -0
  79. package/lib/esm/Endpoints.d.ts +21 -0
  80. package/lib/esm/Endpoints.js +2 -0
  81. package/lib/esm/Endpoints.js.map +1 -0
  82. package/lib/esm/Environment.d.ts +18 -0
  83. package/lib/esm/Environment.js +2 -0
  84. package/lib/esm/Environment.js.map +1 -0
  85. package/lib/esm/EnvironmentAuth.d.ts +6 -0
  86. package/lib/esm/EnvironmentAuth.js +2 -0
  87. package/lib/esm/EnvironmentAuth.js.map +1 -0
  88. package/lib/esm/EnvironmentAuthKeycloak.d.ts +19 -0
  89. package/lib/esm/EnvironmentAuthKeycloak.js +2 -0
  90. package/lib/esm/EnvironmentAuthKeycloak.js.map +1 -0
  91. package/lib/esm/FrontendProject.d.ts +15 -0
  92. package/lib/esm/FrontendProject.js +2 -0
  93. package/lib/esm/FrontendProject.js.map +1 -0
  94. package/lib/esm/HistorySeenKey.d.ts +7 -0
  95. package/lib/esm/HistorySeenKey.js +2 -0
  96. package/lib/esm/HistorySeenKey.js.map +1 -0
  97. package/lib/esm/IdCounter.d.ts +12 -0
  98. package/lib/esm/IdCounter.js +2 -0
  99. package/lib/esm/IdCounter.js.map +1 -0
  100. package/lib/esm/ImmutableErrorKeys.d.ts +1 -0
  101. package/lib/esm/ImmutableErrorKeys.js +2 -0
  102. package/lib/esm/ImmutableErrorKeys.js.map +1 -0
  103. package/lib/esm/ListPlanningParticipant.d.ts +18 -0
  104. package/lib/esm/ListPlanningParticipant.js +2 -0
  105. package/lib/esm/ListPlanningParticipant.js.map +1 -0
  106. package/lib/esm/Participant.d.ts +27 -0
  107. package/lib/esm/Participant.js +2 -0
  108. package/lib/esm/Participant.js.map +1 -0
  109. package/lib/esm/ParticipantRole.d.ts +1 -0
  110. package/lib/esm/ParticipantRole.js +2 -0
  111. package/lib/esm/ParticipantRole.js.map +1 -0
  112. package/lib/esm/ParticipantState.d.ts +1 -0
  113. package/lib/esm/ParticipantState.js +2 -0
  114. package/lib/esm/ParticipantState.js.map +1 -0
  115. package/lib/esm/ParticipantUser.d.ts +27 -0
  116. package/lib/esm/ParticipantUser.js +2 -0
  117. package/lib/esm/ParticipantUser.js.map +1 -0
  118. package/lib/esm/PaymentProviderBase.d.ts +17 -0
  119. package/lib/esm/PaymentProviderBase.js +2 -0
  120. package/lib/esm/PaymentProviderBase.js.map +1 -0
  121. package/lib/esm/PlanCoveragePreparation.d.ts +20 -0
  122. package/lib/esm/PlanCoveragePreparation.js +2 -0
  123. package/lib/esm/PlanCoveragePreparation.js.map +1 -0
  124. package/lib/esm/PlanningParticipantsResult.d.ts +12 -0
  125. package/lib/esm/PlanningParticipantsResult.js +2 -0
  126. package/lib/esm/PlanningParticipantsResult.js.map +1 -0
  127. package/lib/esm/Project.d.ts +32 -1
  128. package/lib/esm/ProjectAnalytics.d.ts +3 -0
  129. package/lib/esm/ProjectAnalytics.js +2 -0
  130. package/lib/esm/ProjectAnalytics.js.map +1 -0
  131. package/lib/esm/ProjectAnalyticsGoogle.d.ts +11 -0
  132. package/lib/esm/ProjectAnalyticsGoogle.js +2 -0
  133. package/lib/esm/ProjectAnalyticsGoogle.js.map +1 -0
  134. package/lib/esm/ProjectAnalyticsInternal.d.ts +3 -0
  135. package/lib/esm/ProjectAnalyticsInternal.js +2 -0
  136. package/lib/esm/ProjectAnalyticsInternal.js.map +1 -0
  137. package/lib/esm/ProjectDesign.d.ts +5 -0
  138. package/lib/esm/ProjectDesign.js +2 -0
  139. package/lib/esm/ProjectDesign.js.map +1 -0
  140. package/lib/esm/ProjectHead.d.ts +19 -0
  141. package/lib/esm/ProjectHead.js +2 -0
  142. package/lib/esm/ProjectHead.js.map +1 -0
  143. package/lib/esm/ProjectLogin.d.ts +3 -0
  144. package/lib/esm/ProjectLogin.js +2 -0
  145. package/lib/esm/ProjectLogin.js.map +1 -0
  146. package/lib/esm/ProjectPayment.d.ts +7 -0
  147. package/lib/esm/ProjectPayment.js +2 -0
  148. package/lib/esm/ProjectPayment.js.map +1 -0
  149. package/lib/esm/ProjectPwa.d.ts +21 -0
  150. package/lib/esm/ProjectPwa.js +2 -0
  151. package/lib/esm/ProjectPwa.js.map +1 -0
  152. package/lib/esm/ProjectPwaIcon.d.ts +15 -0
  153. package/lib/esm/ProjectPwaIcon.js +2 -0
  154. package/lib/esm/ProjectPwaIcon.js.map +1 -0
  155. package/lib/esm/Publish.d.ts +1 -0
  156. package/lib/esm/RenderContext.d.ts +2 -10
  157. package/lib/esm/Right.d.ts +1 -0
  158. package/lib/esm/Right.js +2 -0
  159. package/lib/esm/Right.js.map +1 -0
  160. package/lib/esm/ScorableParticipant.d.ts +5 -0
  161. package/lib/esm/ScorableParticipant.js +2 -0
  162. package/lib/esm/ScorableParticipant.js.map +1 -0
  163. package/lib/esm/ShiftAutofillResult.d.ts +6 -0
  164. package/lib/esm/ShiftAutofillResult.js +2 -0
  165. package/lib/esm/ShiftAutofillResult.js.map +1 -0
  166. package/lib/esm/ShiftFillCandidate.d.ts +10 -0
  167. package/lib/esm/ShiftFillCandidate.js +2 -0
  168. package/lib/esm/ShiftFillCandidate.js.map +1 -0
  169. package/lib/esm/ShiftFillPolicy.d.ts +8 -0
  170. package/lib/esm/ShiftFillPolicy.js +2 -0
  171. package/lib/esm/ShiftFillPolicy.js.map +1 -0
  172. package/lib/esm/ShiftFillResult.d.ts +11 -0
  173. package/lib/esm/ShiftFillResult.js +2 -0
  174. package/lib/esm/ShiftFillResult.js.map +1 -0
  175. package/lib/esm/ShiftFillTarget.d.ts +10 -0
  176. package/lib/esm/ShiftFillTarget.js +2 -0
  177. package/lib/esm/ShiftFillTarget.js.map +1 -0
  178. package/lib/esm/ShiftReportContextOptions.d.ts +9 -0
  179. package/lib/esm/ShiftReportContextOptions.js +2 -0
  180. package/lib/esm/ShiftReportContextOptions.js.map +1 -0
  181. package/lib/esm/TrackerDailyLimitGroup.d.ts +7 -0
  182. package/lib/esm/TrackerDailyLimitGroup.js +2 -0
  183. package/lib/esm/TrackerDailyLimitGroup.js.map +1 -0
  184. package/lib/esm/TrackerDailyLimitInput.d.ts +8 -0
  185. package/lib/esm/TrackerDailyLimitInput.js +2 -0
  186. package/lib/esm/TrackerDailyLimitInput.js.map +1 -0
  187. package/lib/esm/TrackerStatisticsBucket.d.ts +13 -0
  188. package/lib/esm/TrackerStatisticsBucket.js +2 -0
  189. package/lib/esm/TrackerStatisticsBucket.js.map +1 -0
  190. package/lib/esm/TrackerStatisticsRange.d.ts +6 -0
  191. package/lib/esm/TrackerStatisticsRange.js +2 -0
  192. package/lib/esm/TrackerStatisticsRange.js.map +1 -0
  193. package/lib/esm/TrackerTimeSum.d.ts +4 -0
  194. package/lib/esm/TrackerTimeSum.js +2 -0
  195. package/lib/esm/TrackerTimeSum.js.map +1 -0
  196. package/lib/esm/VerifyTokenOptions.d.ts +8 -0
  197. package/lib/esm/VerifyTokenOptions.js +2 -0
  198. package/lib/esm/VerifyTokenOptions.js.map +1 -0
  199. package/lib/esm/WorkingAuth.d.ts +3 -0
  200. package/lib/esm/WorkingAuth.js +2 -0
  201. package/lib/esm/WorkingAuth.js.map +1 -0
  202. package/lib/esm/WorkingAuthAuth0.d.ts +7 -0
  203. package/lib/esm/WorkingAuthAuth0.js +2 -0
  204. package/lib/esm/WorkingAuthAuth0.js.map +1 -0
  205. package/lib/esm/WorkingAuthKeycloak.d.ts +7 -0
  206. package/lib/esm/WorkingAuthKeycloak.js +2 -0
  207. package/lib/esm/WorkingAuthKeycloak.js.map +1 -0
  208. package/lib/esm/WorkingContext.d.ts +52 -0
  209. package/lib/esm/WorkingContext.js +2 -0
  210. package/lib/esm/WorkingContext.js.map +1 -0
  211. package/lib/esm/index.d.ts +49 -0
  212. package/package.json +1 -1
  213. package/src/AccessLimitDoc.ts +6 -0
  214. package/src/Auth0ProjectSettings.ts +7 -1
  215. package/src/Cart.ts +3 -0
  216. package/src/CategoryBookedTime.ts +5 -0
  217. package/src/ConversationResponse.ts +5 -0
  218. package/src/CoverageAllocation.ts +8 -0
  219. package/src/Design.ts +4 -1
  220. package/src/DesignInput.ts +13 -0
  221. package/src/DesignListOptions.ts +12 -0
  222. package/src/Endpoints.ts +26 -0
  223. package/src/Environment.ts +23 -0
  224. package/src/EnvironmentAuth.ts +7 -0
  225. package/src/EnvironmentAuthKeycloak.ts +24 -0
  226. package/src/FrontendProject.ts +19 -0
  227. package/src/HistorySeenKey.ts +7 -0
  228. package/src/IdCounter.ts +13 -0
  229. package/src/ImmutableErrorKeys.ts +1 -0
  230. package/src/ListPlanningParticipant.ts +19 -0
  231. package/src/Participant.ts +28 -0
  232. package/src/ParticipantRole.ts +1 -0
  233. package/src/ParticipantState.ts +1 -0
  234. package/src/ParticipantUser.ts +28 -0
  235. package/src/PaymentProviderBase.ts +22 -0
  236. package/src/PlanCoveragePreparation.ts +21 -0
  237. package/src/PlanningParticipantsResult.ts +13 -0
  238. package/src/Project.ts +40 -1
  239. package/src/ProjectAnalytics.ts +4 -0
  240. package/src/ProjectAnalyticsGoogle.ts +15 -0
  241. package/src/ProjectAnalyticsInternal.ts +5 -0
  242. package/src/ProjectDesign.ts +5 -0
  243. package/src/ProjectHead.ts +25 -0
  244. package/src/ProjectLogin.ts +5 -0
  245. package/src/ProjectPayment.ts +10 -0
  246. package/src/ProjectPwa.ts +36 -0
  247. package/src/ProjectPwaIcon.ts +20 -0
  248. package/src/Publish.ts +1 -0
  249. package/src/RenderContext.ts +2 -10
  250. package/src/Right.ts +1 -0
  251. package/src/ScorableParticipant.ts +6 -0
  252. package/src/ShiftAutofillResult.ts +7 -0
  253. package/src/ShiftFillCandidate.ts +11 -0
  254. package/src/ShiftFillPolicy.ts +8 -0
  255. package/src/ShiftFillResult.ts +12 -0
  256. package/src/ShiftFillTarget.ts +11 -0
  257. package/src/ShiftReportContextOptions.ts +10 -0
  258. package/src/TrackerDailyLimitGroup.ts +7 -0
  259. package/src/TrackerDailyLimitInput.ts +8 -0
  260. package/src/TrackerStatisticsBucket.ts +13 -0
  261. package/src/TrackerStatisticsRange.ts +6 -0
  262. package/src/TrackerTimeSum.ts +4 -0
  263. package/src/VerifyTokenOptions.ts +8 -0
  264. package/src/WorkingAuth.ts +4 -0
  265. package/src/WorkingAuthAuth0.ts +6 -0
  266. package/src/WorkingAuthKeycloak.ts +6 -0
  267. package/src/WorkingContext.ts +64 -0
@@ -0,0 +1,13 @@
1
+ /** the entries of one day and one group, summed up by the statistics aggregation */
2
+ export interface TrackerStatisticsBucket {
3
+ _id: {
4
+ /** `YYYY-MM-DD`, absent for an entry without a start */
5
+ day?: string | null;
6
+ /** the shift of a shift booking, the category otherwise; absent when an entry has neither */
7
+ group?: string | null;
8
+ };
9
+ count: number;
10
+ time: number;
11
+ first?: Date | null;
12
+ last?: Date | null;
13
+ }
@@ -0,0 +1,6 @@
1
+ export interface TrackerStatisticsRange {
2
+ month?: number;
3
+ year?: number;
4
+ /** ignores month and year, the statistics then span every entry of the plan */
5
+ wholePlan?: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface TrackerTimeSum {
2
+ _id: null;
3
+ time: number;
4
+ }
@@ -0,0 +1,8 @@
1
+ export interface VerifyTokenOptions {
2
+ /** JWKS endpoint. Defaults to process.env.JWT_URL. */
3
+ jwksUri?: string;
4
+ /** expected issuer. Defaults to process.env.JWT_ISSUER. Skipped if unset. */
5
+ issuer?: string;
6
+ /** expected audience. Skipped if unset. */
7
+ audience?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ import type { WorkingAuthAuth0 } from './WorkingAuthAuth0';
2
+ import type { WorkingAuthKeycloak } from './WorkingAuthKeycloak';
3
+ export type WorkingAuth = WorkingAuthKeycloak | WorkingAuthAuth0;
@@ -0,0 +1,7 @@
1
+ import type { Auth0ProjectSettings } from './Auth0ProjectSettings';
2
+ /**
3
+ * auth0 settings the frontend needs to log in, taken from the project settings.
4
+ */
5
+ export type WorkingAuthAuth0 = Pick<Auth0ProjectSettings, 'domain' | 'clientId' | 'audience'> & {
6
+ provider: 'auth0';
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { EnvironmentAuthKeycloak } from './EnvironmentAuthKeycloak';
2
+ /**
3
+ * keycloak settings the frontend needs to log in, taken from the environment.
4
+ */
5
+ export type WorkingAuthKeycloak = Pick<EnvironmentAuthKeycloak, 'url' | 'realm' | 'clientId'> & {
6
+ provider: 'keycloak';
7
+ };
@@ -0,0 +1,52 @@
1
+ import type { AppEditorConfiguration } from './AppEditorConfiguration';
2
+ import type { Cart } from './Cart';
3
+ import type { Content } from './Content';
4
+ import type { Customers } from './Customers';
5
+ import type { Endpoints } from './Endpoints';
6
+ import type { FrontendProject } from './FrontendProject';
7
+ import type { List } from './List';
8
+ import type { WorkingAuth } from './WorkingAuth';
9
+ /**
10
+ * the context every render and the frontend share. the project and environment settings are flat on it.
11
+ * the per render fields (content, layout, contextContent, recipient, list, cart) only exist during a server render.
12
+ */
13
+ export interface WorkingContext extends FrontendProject {
14
+ /**
15
+ * the endpoints of the environment the project is rendered in.
16
+ */
17
+ endpoints: Endpoints;
18
+ /**
19
+ * only set when the project has login enabled, the provider decides where the settings come from.
20
+ */
21
+ auth?: WorkingAuth;
22
+ /**
23
+ * the content that is rendered, only set for a single render.
24
+ */
25
+ content?: Content;
26
+ layout?: Content;
27
+ /**
28
+ * additional content selected in the publish method, e.g. for variables in the rendered content.
29
+ */
30
+ contextContent?: Content[];
31
+ /**
32
+ * the recipient of a mail or pdf publish.
33
+ */
34
+ recipient?: Customers;
35
+ /**
36
+ * the list a publish was started for.
37
+ */
38
+ list?: List;
39
+ /**
40
+ * the cart a payment-driven publish was started for.
41
+ */
42
+ cart?: Cart;
43
+ /**
44
+ * editor settings without `editorUrl`, which only the studio editor needs.
45
+ */
46
+ editor?: Omit<AppEditorConfiguration, 'editorUrl'>;
47
+ tags?: string[];
48
+ app?: string;
49
+ css?: string;
50
+ cdn?: string;
51
+ renderTarget?: 'pdf' | 'web';
52
+ }
@@ -1,3 +1,4 @@
1
+ export * from './AccessLimitDoc';
1
2
  export * from './AccessRule';
2
3
  export * from './Accordion';
3
4
  export * from './AccordtionElement';
@@ -30,6 +31,7 @@ export * from './CallToActionModule';
30
31
  export * from './Cart';
31
32
  export * from './CartItem';
32
33
  export * from './Category';
34
+ export * from './CategoryBookedTime';
33
35
  export * from './CategoryStructure';
34
36
  export * from './CategoryStructureWithRequired';
35
37
  export * from './Certificate';
@@ -58,8 +60,10 @@ export * from './ContentOptions';
58
60
  export * from './ContentWithPositions';
59
61
  export * from './Contract';
60
62
  export * from './Conversation';
63
+ export * from './ConversationResponse';
61
64
  export * from './ConversationSla';
62
65
  export * from './CookiesModule';
66
+ export * from './CoverageAllocation';
63
67
  export * from './CreateResult';
64
68
  export * from './CustomerAccounts';
65
69
  export * from './CustomerBase';
@@ -79,6 +83,8 @@ export * from './Design';
79
83
  export * from './DesignCustomModule';
80
84
  export * from './DesignEvent';
81
85
  export * from './DesignFile';
86
+ export * from './DesignInput';
87
+ export * from './DesignListOptions';
82
88
  export * from './DesignModule';
83
89
  export * from './Domain';
84
90
  export * from './DomainConf';
@@ -93,6 +99,10 @@ export * from './EmotionModule';
93
99
  export * from './EmployeeAbsence';
94
100
  export * from './EmployeeAbsenceFilters';
95
101
  export * from './EmployeeAbsenceInput';
102
+ export * from './Endpoints';
103
+ export * from './Environment';
104
+ export * from './EnvironmentAuth';
105
+ export * from './EnvironmentAuthKeycloak';
96
106
  export * from './ErrorObject';
97
107
  export * from './EventModule';
98
108
  export * from './EventsListModule';
@@ -105,6 +115,7 @@ export * from './FooterContact';
105
115
  export * from './FooterModule';
106
116
  export * from './FooterSitemap';
107
117
  export * from './FooterSocial';
118
+ export * from './FrontendProject';
108
119
  export * from './GalleryElement';
109
120
  export * from './GalleryModule';
110
121
  export * from './GenericData';
@@ -115,6 +126,7 @@ export * from './History';
115
126
  export * from './HistoryChange';
116
127
  export * from './HistoryReason';
117
128
  export * from './HistorySeen';
129
+ export * from './HistorySeenKey';
118
130
  export * from './HistoryWithType';
119
131
  export * from './HostindCommand';
120
132
  export * from './Hosting';
@@ -123,7 +135,9 @@ export * from './HostingSettings';
123
135
  export * from './HostingWithSettings';
124
136
  export * from './HttpStatusCodes';
125
137
  export * from './Id';
138
+ export * from './IdCounter';
126
139
  export * from './IdentifiersEntity';
140
+ export * from './ImmutableErrorKeys';
127
141
  export * from './ImportExportData';
128
142
  export * from './ImportJob';
129
143
  export * from './IndexModule';
@@ -153,6 +167,7 @@ export * from './ListParticipantMatch';
153
167
  export * from './ListParticipantWithUser';
154
168
  export * from './ListParticipants';
155
169
  export * from './ListParticipantsDetails';
170
+ export * from './ListPlanningParticipant';
156
171
  export * from './ListString';
157
172
  export * from './Location';
158
173
  export * from './LocationModule';
@@ -186,10 +201,15 @@ export * from './NavigationModule';
186
201
  export * from './ObjectIdString';
187
202
  export * from './Options';
188
203
  export * from './PartialModule';
204
+ export * from './Participant';
205
+ export * from './ParticipantRole';
206
+ export * from './ParticipantState';
207
+ export * from './ParticipantUser';
189
208
  export * from './Partner';
190
209
  export * from './PathMapping';
191
210
  export * from './Payment';
192
211
  export * from './PaymentProvider';
212
+ export * from './PaymentProviderBase';
193
213
  export * from './PaymentProviderProduct';
194
214
  export * from './PaymentProviderShopify';
195
215
  export * from './PaymentProviderStripe';
@@ -203,16 +223,27 @@ export * from './PictureSource';
203
223
  export * from './PicturegroupElement';
204
224
  export * from './PicturegroupModule';
205
225
  export * from './PlaeceholderModule';
226
+ export * from './PlanCoveragePreparation';
227
+ export * from './PlanningParticipantsResult';
206
228
  export * from './PlanningScope';
207
229
  export * from './PlanningShiftMembership';
208
230
  export * from './Price';
209
231
  export * from './PricesElement';
210
232
  export * from './PricesModule';
211
233
  export * from './Project';
234
+ export * from './ProjectAnalytics';
235
+ export * from './ProjectAnalyticsGoogle';
236
+ export * from './ProjectAnalyticsInternal';
237
+ export * from './ProjectDesign';
212
238
  export * from './ProjectDomain';
213
239
  export * from './ProjectDomainWithSecret';
240
+ export * from './ProjectHead';
214
241
  export * from './ProjectIdParams';
242
+ export * from './ProjectLogin';
215
243
  export * from './ProjectParams';
244
+ export * from './ProjectPayment';
245
+ export * from './ProjectPwa';
246
+ export * from './ProjectPwaIcon';
216
247
  export * from './ProjectSiteParams';
217
248
  export * from './ProjectWithCompany';
218
249
  export * from './Publish';
@@ -229,7 +260,9 @@ export * from './QuellcodeModule';
229
260
  export * from './QuoteModule';
230
261
  export * from './RenderContext';
231
262
  export * from './ResponseError';
263
+ export * from './Right';
232
264
  export * from './Scope';
265
+ export * from './ScorableParticipant';
233
266
  export * from './Secret';
234
267
  export * from './SelectedFile';
235
268
  export * from './Settings';
@@ -240,8 +273,13 @@ export * from './ShiftAssignment';
240
273
  export * from './ShiftAssignmentBreak';
241
274
  export * from './ShiftAssignmentInput';
242
275
  export * from './ShiftAssignmentsInput';
276
+ export * from './ShiftAutofillResult';
243
277
  export * from './ShiftCoverage';
244
278
  export * from './ShiftCreateInput';
279
+ export * from './ShiftFillCandidate';
280
+ export * from './ShiftFillPolicy';
281
+ export * from './ShiftFillResult';
282
+ export * from './ShiftFillTarget';
245
283
  export * from './ShiftInput';
246
284
  export * from './ShiftParticipant';
247
285
  export * from './ShiftPlan';
@@ -266,6 +304,7 @@ export * from './ShiftPlanningSettings';
266
304
  export * from './ShiftPlanningSettingsInput';
267
305
  export * from './ShiftPlanningViolation';
268
306
  export * from './ShiftReportContext';
307
+ export * from './ShiftReportContextOptions';
269
308
  export * from './ShiftResponse';
270
309
  export * from './ShiftScopeCoverage';
271
310
  export * from './ShiftWorkingTime';
@@ -306,13 +345,18 @@ export * from './TrackerBooking';
306
345
  export * from './TrackerBookingShift';
307
346
  export * from './TrackerBookingsQuery';
308
347
  export * from './TrackerCategoriesParams';
348
+ export * from './TrackerDailyLimitGroup';
349
+ export * from './TrackerDailyLimitInput';
309
350
  export * from './TrackerDayParams';
310
351
  export * from './TrackerDayQuery';
311
352
  export * from './TrackerInput';
312
353
  export * from './TrackerListQuery';
313
354
  export * from './TrackerShiftBooking';
314
355
  export * from './TrackerStatistics';
356
+ export * from './TrackerStatisticsBucket';
315
357
  export * from './TrackerStatisticsQuery';
358
+ export * from './TrackerStatisticsRange';
359
+ export * from './TrackerTimeSum';
316
360
  export * from './TrackerUserQuery';
317
361
  export * from './TrainingMdule';
318
362
  export * from './Universal';
@@ -320,6 +364,7 @@ export * from './Upload';
320
364
  export * from './UserApp';
321
365
  export * from './UserAppOptionsRequired';
322
366
  export * from './UserAppWithOptions';
367
+ export * from './VerifyTokenOptions';
323
368
  export * from './VersionInfo';
324
369
  export * from './Video';
325
370
  export * from './VideoModule';
@@ -330,5 +375,9 @@ export * from './WithStructures';
330
375
  export * from './WorkArea';
331
376
  export * from './WorkAreaFilters';
332
377
  export * from './WorkAreaInput';
378
+ export * from './WorkingAuth';
379
+ export * from './WorkingAuthAuth0';
380
+ export * from './WorkingAuthKeycloak';
381
+ export * from './WorkingContext';
333
382
  export * from './events-list-element';
334
383
  export * from './story-element';
@@ -0,0 +1,12 @@
1
+ export interface AccessLimitDoc {
2
+ _id: string;
3
+ minute: {
4
+ bucket: number;
5
+ count: number;
6
+ };
7
+ hour: {
8
+ bucket: number;
9
+ count: number;
10
+ };
11
+ expiresAt: Date;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AccessLimitDoc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessLimitDoc.js","sourceRoot":"","sources":["../../src/AccessLimitDoc.ts"],"names":[],"mappings":""}
@@ -1,3 +1,7 @@
1
1
  export interface Auth0ProjectSettings {
2
2
  domain?: string;
3
+ /** public client id of the auth0 SPA application, not a secret */
4
+ clientId?: string;
5
+ /** only needed when the login requests tokens for a custom api; the other auth0 client options are derived at render time and deliberately not stored */
6
+ audience?: string;
3
7
  }
package/lib/esm/Cart.d.ts CHANGED
@@ -8,6 +8,8 @@ export interface Cart {
8
8
  attributes?: {
9
9
  [key: string]: string;
10
10
  };
11
+ prename?: string;
12
+ name?: string;
11
13
  modified?: Date;
12
14
  checkoutUrl?: string;
13
15
  payment?: ObjectId;
@@ -0,0 +1,5 @@
1
+ export interface CategoryBookedTime {
2
+ /** the category id */
3
+ _id: string;
4
+ bookedTime: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CategoryBookedTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryBookedTime.js","sourceRoot":"","sources":["../../src/CategoryBookedTime.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { Conversation } from './Conversation';
2
+ import type { ParticipantUser } from './ParticipantUser';
3
+ /** A Conversation as sent to clients: participants enriched from ids to objects. */
4
+ export type ConversationResponse = Omit<Conversation, 'participants'> & {
5
+ participants?: ParticipantUser[];
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ConversationResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationResponse.js","sourceRoot":"","sources":["../../src/ConversationResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { ShiftCoverage } from './ShiftCoverage';
2
+ /** Coverage only needs the counts; kept so existing callers and types stay unchanged. */
3
+ export interface CoverageAllocation {
4
+ coverage: ShiftCoverage[];
5
+ fillable: boolean;
6
+ complete: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CoverageAllocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoverageAllocation.js","sourceRoot":"","sources":["../../src/CoverageAllocation.ts"],"names":[],"mappings":""}
@@ -2,6 +2,9 @@ import { DesignFile } from "./DesignFile";
2
2
  export interface Design {
3
3
  company: string;
4
4
  project: string;
5
+ id: string;
6
+ name: string;
7
+ description?: string;
5
8
  files: DesignFile[];
6
9
  target: 'app' | 'server';
7
10
  }
@@ -0,0 +1,12 @@
1
+ import { DesignFile } from "./DesignFile";
2
+ /**
3
+ * writes a design into the caller's project; a project's first design falls back to
4
+ * the `default` id and name, so both stay optional
5
+ */
6
+ export interface DesignInput {
7
+ id?: string;
8
+ name?: string;
9
+ description?: string;
10
+ target: 'app' | 'server';
11
+ files: DesignFile[];
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DesignInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignInput.js","sourceRoot":"","sources":["../../src/DesignInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * one page of the designs a project may pick from: its own plus the shared library
3
+ */
4
+ export interface DesignListOptions {
5
+ company: string;
6
+ project: string;
7
+ search?: string;
8
+ sort?: string;
9
+ order?: number;
10
+ site: number;
11
+ limit: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DesignListOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignListOptions.js","sourceRoot":"","sources":["../../src/DesignListOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * the endpoints every environment provides and every project in it shares.
3
+ */
4
+ export interface Endpoints {
5
+ /**
6
+ * base url of the studio api.
7
+ */
8
+ api: string;
9
+ /**
10
+ * base url of the media api.
11
+ */
12
+ media: string;
13
+ /**
14
+ * publicly reachable cdn base for assets.
15
+ */
16
+ cdn: string;
17
+ /**
18
+ * cdn base for access protected files.
19
+ */
20
+ secure: string;
21
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Endpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Endpoints.js","sourceRoot":"","sources":["../../src/Endpoints.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { Endpoints } from "./Endpoints";
2
+ import { EnvironmentAuth } from "./EnvironmentAuth";
3
+ /**
4
+ * an environment is the deployment context a project is rendered in. it owns
5
+ * the endpoints every project in that environment shares, so a project config
6
+ * never has to repeat them.
7
+ */
8
+ export interface Environment {
9
+ /**
10
+ * stable identifier of the environment, e.g. `local`, `next` or `live`.
11
+ */
12
+ id: string;
13
+ endpoints: Endpoints;
14
+ /**
15
+ * authentication provider every project in the environment shares.
16
+ */
17
+ auth?: EnvironmentAuth;
18
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Environment.js","sourceRoot":"","sources":["../../src/Environment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { EnvironmentAuthKeycloak } from "./EnvironmentAuthKeycloak";
2
+ /**
3
+ * the authentication provider of an environment, discriminated by `type`.
4
+ * auth0 is planned as a second variant.
5
+ */
6
+ export type EnvironmentAuth = EnvironmentAuthKeycloak;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EnvironmentAuth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentAuth.js","sourceRoot":"","sources":["../../src/EnvironmentAuth.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * self hosted keycloak as the authentication provider of an environment.
3
+ */
4
+ export interface EnvironmentAuthKeycloak {
5
+ type: 'keycloak';
6
+ /**
7
+ * base url of the keycloak server, e.g. `https://auth.lilaquadrat.dev`.
8
+ */
9
+ url: string;
10
+ /**
11
+ * keycloak realm, e.g. `studio`.
12
+ */
13
+ realm: string;
14
+ /**
15
+ * public client id used by the browser. shared by every project in the
16
+ * environment unless a project overrides it.
17
+ */
18
+ clientId: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EnvironmentAuthKeycloak.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentAuthKeycloak.js","sourceRoot":"","sources":["../../src/EnvironmentAuthKeycloak.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { Project } from './Project';
2
+ /**
3
+ * the project settings the frontend may see. secrets, publish data and
4
+ * ai prompt settings are left out on purpose.
5
+ */
6
+ export type FrontendProject = Pick<Project, 'company' | 'dynamic' | 'installable' | 'pwa' | 'login' | 'analytics'> & {
7
+ /**
8
+ * the id of the project, named like the project key on every other document.
9
+ */
10
+ project: Project['id'];
11
+ /**
12
+ * the active payment provider of the project, named like it is used in the frontend.
13
+ */
14
+ paymentProvider?: Project['payment'];
15
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FrontendProject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrontendProject.js","sourceRoot":"","sources":["../../src/FrontendProject.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface HistorySeenKey {
2
+ user: string;
3
+ company: string;
4
+ project?: string;
5
+ model: string;
6
+ scope: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HistorySeenKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistorySeenKey.js","sourceRoot":"","sources":["../../src/HistorySeenKey.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ /** the counter document behind the `id` collection; not to be confused with `Id`, the generic id/data pair */
3
+ export interface IdCounter {
4
+ _id: string;
5
+ company: string;
6
+ project: string;
7
+ model: string;
8
+ app: string;
9
+ count: number;
10
+ initials?: string;
11
+ dynamicKey?: string | number | ObjectId;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IdCounter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdCounter.js","sourceRoot":"","sources":["../../src/IdCounter.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type ImmutableErrorKeys = 'UPDATE_DOCUMENT_MISSING' | 'PARENT_DOCUMENT_NOT_FOUND' | 'DOCUMENT_ALREADY_EXISTS';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ImmutableErrorKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImmutableErrorKeys.js","sourceRoot":"","sources":["../../src/ImmutableErrorKeys.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import type { ListParticipantMatch } from './ListParticipantMatch';
2
+ import type { ListParticipants } from './ListParticipants';
3
+ import type { ObjectId } from 'mongodb';
4
+ export interface ListPlanningParticipant {
5
+ _id: ObjectId;
6
+ category?: string;
7
+ state: ListParticipants['state'];
8
+ match: ListParticipantMatch & {
9
+ /** Relative to the full filtered pool; tied-only pools share stage 4. */
10
+ normalizedScore: 1 | 2 | 3 | 4;
11
+ };
12
+ user?: {
13
+ _id: ObjectId;
14
+ id?: string;
15
+ name: string;
16
+ email?: string;
17
+ };
18
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ListPlanningParticipant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListPlanningParticipant.js","sourceRoot":"","sources":["../../src/ListPlanningParticipant.ts"],"names":[],"mappings":""}