@lilaquadrat/interfaces 1.57.0 → 2.0.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/CHANGELOG.md +13 -0
- package/lib/cjs/AccessLimitDoc.d.ts +12 -0
- package/lib/cjs/Auth0ProjectSettings.d.ts +4 -0
- package/lib/cjs/Cart.d.ts +2 -0
- package/lib/cjs/CategoryBookedTime.d.ts +5 -0
- package/lib/cjs/ConversationResponse.d.ts +6 -0
- package/lib/cjs/CoverageAllocation.d.ts +7 -0
- package/lib/cjs/Endpoints.d.ts +21 -0
- package/lib/cjs/Environment.d.ts +18 -0
- package/lib/cjs/EnvironmentAuth.d.ts +6 -0
- package/lib/cjs/EnvironmentAuthKeycloak.d.ts +19 -0
- package/lib/cjs/FrontendProject.d.ts +15 -0
- package/lib/cjs/HistorySeenKey.d.ts +7 -0
- package/lib/cjs/IdCounter.d.ts +12 -0
- package/lib/cjs/ImmutableErrorKeys.d.ts +1 -0
- package/lib/cjs/ListPlanningParticipant.d.ts +18 -0
- package/lib/cjs/Participant.d.ts +27 -0
- package/lib/cjs/ParticipantRole.d.ts +1 -0
- package/lib/cjs/ParticipantState.d.ts +1 -0
- package/lib/cjs/ParticipantUser.d.ts +27 -0
- package/lib/cjs/PaymentProviderBase.d.ts +17 -0
- package/lib/cjs/PlanCoveragePreparation.d.ts +20 -0
- package/lib/cjs/PlanningParticipantsResult.d.ts +12 -0
- package/lib/cjs/Project.d.ts +27 -1
- package/lib/cjs/ProjectAnalytics.d.ts +3 -0
- package/lib/cjs/ProjectAnalyticsGoogle.d.ts +11 -0
- package/lib/cjs/ProjectAnalyticsInternal.d.ts +3 -0
- package/lib/cjs/ProjectHead.d.ts +19 -0
- package/lib/cjs/ProjectLogin.d.ts +3 -0
- package/lib/cjs/ProjectPayment.d.ts +7 -0
- package/lib/cjs/ProjectPwa.d.ts +21 -0
- package/lib/cjs/ProjectPwaIcon.d.ts +15 -0
- package/lib/cjs/Publish.d.ts +1 -0
- package/lib/cjs/RenderContext.d.ts +2 -10
- package/lib/cjs/Right.d.ts +1 -0
- package/lib/cjs/ScorableParticipant.d.ts +5 -0
- package/lib/cjs/ShiftAutofillResult.d.ts +6 -0
- package/lib/cjs/ShiftFillCandidate.d.ts +10 -0
- package/lib/cjs/ShiftFillPolicy.d.ts +8 -0
- package/lib/cjs/ShiftFillResult.d.ts +11 -0
- package/lib/cjs/ShiftFillTarget.d.ts +10 -0
- package/lib/cjs/ShiftReportContextOptions.d.ts +9 -0
- package/lib/cjs/TrackerDailyLimitGroup.d.ts +7 -0
- package/lib/cjs/TrackerDailyLimitInput.d.ts +8 -0
- package/lib/cjs/TrackerStatisticsBucket.d.ts +13 -0
- package/lib/cjs/TrackerStatisticsRange.d.ts +6 -0
- package/lib/cjs/TrackerTimeSum.d.ts +4 -0
- package/lib/cjs/VerifyTokenOptions.d.ts +8 -0
- package/lib/cjs/WorkingAuth.d.ts +3 -0
- package/lib/cjs/WorkingAuthAuth0.d.ts +7 -0
- package/lib/cjs/WorkingAuthKeycloak.d.ts +7 -0
- package/lib/cjs/WorkingContext.d.ts +52 -0
- package/lib/cjs/index.d.ts +46 -0
- package/lib/esm/AccessLimitDoc.d.ts +12 -0
- package/lib/esm/AccessLimitDoc.js +2 -0
- package/lib/esm/AccessLimitDoc.js.map +1 -0
- package/lib/esm/Auth0ProjectSettings.d.ts +4 -0
- package/lib/esm/Cart.d.ts +2 -0
- package/lib/esm/CategoryBookedTime.d.ts +5 -0
- package/lib/esm/CategoryBookedTime.js +2 -0
- package/lib/esm/CategoryBookedTime.js.map +1 -0
- package/lib/esm/ConversationResponse.d.ts +6 -0
- package/lib/esm/ConversationResponse.js +2 -0
- package/lib/esm/ConversationResponse.js.map +1 -0
- package/lib/esm/CoverageAllocation.d.ts +7 -0
- package/lib/esm/CoverageAllocation.js +2 -0
- package/lib/esm/CoverageAllocation.js.map +1 -0
- package/lib/esm/Endpoints.d.ts +21 -0
- package/lib/esm/Endpoints.js +2 -0
- package/lib/esm/Endpoints.js.map +1 -0
- package/lib/esm/Environment.d.ts +18 -0
- package/lib/esm/Environment.js +2 -0
- package/lib/esm/Environment.js.map +1 -0
- package/lib/esm/EnvironmentAuth.d.ts +6 -0
- package/lib/esm/EnvironmentAuth.js +2 -0
- package/lib/esm/EnvironmentAuth.js.map +1 -0
- package/lib/esm/EnvironmentAuthKeycloak.d.ts +19 -0
- package/lib/esm/EnvironmentAuthKeycloak.js +2 -0
- package/lib/esm/EnvironmentAuthKeycloak.js.map +1 -0
- package/lib/esm/FrontendProject.d.ts +15 -0
- package/lib/esm/FrontendProject.js +2 -0
- package/lib/esm/FrontendProject.js.map +1 -0
- package/lib/esm/HistorySeenKey.d.ts +7 -0
- package/lib/esm/HistorySeenKey.js +2 -0
- package/lib/esm/HistorySeenKey.js.map +1 -0
- package/lib/esm/IdCounter.d.ts +12 -0
- package/lib/esm/IdCounter.js +2 -0
- package/lib/esm/IdCounter.js.map +1 -0
- package/lib/esm/ImmutableErrorKeys.d.ts +1 -0
- package/lib/esm/ImmutableErrorKeys.js +2 -0
- package/lib/esm/ImmutableErrorKeys.js.map +1 -0
- package/lib/esm/ListPlanningParticipant.d.ts +18 -0
- package/lib/esm/ListPlanningParticipant.js +2 -0
- package/lib/esm/ListPlanningParticipant.js.map +1 -0
- package/lib/esm/Participant.d.ts +27 -0
- package/lib/esm/Participant.js +2 -0
- package/lib/esm/Participant.js.map +1 -0
- package/lib/esm/ParticipantRole.d.ts +1 -0
- package/lib/esm/ParticipantRole.js +2 -0
- package/lib/esm/ParticipantRole.js.map +1 -0
- package/lib/esm/ParticipantState.d.ts +1 -0
- package/lib/esm/ParticipantState.js +2 -0
- package/lib/esm/ParticipantState.js.map +1 -0
- package/lib/esm/ParticipantUser.d.ts +27 -0
- package/lib/esm/ParticipantUser.js +2 -0
- package/lib/esm/ParticipantUser.js.map +1 -0
- package/lib/esm/PaymentProviderBase.d.ts +17 -0
- package/lib/esm/PaymentProviderBase.js +2 -0
- package/lib/esm/PaymentProviderBase.js.map +1 -0
- package/lib/esm/PlanCoveragePreparation.d.ts +20 -0
- package/lib/esm/PlanCoveragePreparation.js +2 -0
- package/lib/esm/PlanCoveragePreparation.js.map +1 -0
- package/lib/esm/PlanningParticipantsResult.d.ts +12 -0
- package/lib/esm/PlanningParticipantsResult.js +2 -0
- package/lib/esm/PlanningParticipantsResult.js.map +1 -0
- package/lib/esm/Project.d.ts +27 -1
- package/lib/esm/ProjectAnalytics.d.ts +3 -0
- package/lib/esm/ProjectAnalytics.js +2 -0
- package/lib/esm/ProjectAnalytics.js.map +1 -0
- package/lib/esm/ProjectAnalyticsGoogle.d.ts +11 -0
- package/lib/esm/ProjectAnalyticsGoogle.js +2 -0
- package/lib/esm/ProjectAnalyticsGoogle.js.map +1 -0
- package/lib/esm/ProjectAnalyticsInternal.d.ts +3 -0
- package/lib/esm/ProjectAnalyticsInternal.js +2 -0
- package/lib/esm/ProjectAnalyticsInternal.js.map +1 -0
- package/lib/esm/ProjectHead.d.ts +19 -0
- package/lib/esm/ProjectHead.js +2 -0
- package/lib/esm/ProjectHead.js.map +1 -0
- package/lib/esm/ProjectLogin.d.ts +3 -0
- package/lib/esm/ProjectLogin.js +2 -0
- package/lib/esm/ProjectLogin.js.map +1 -0
- package/lib/esm/ProjectPayment.d.ts +7 -0
- package/lib/esm/ProjectPayment.js +2 -0
- package/lib/esm/ProjectPayment.js.map +1 -0
- package/lib/esm/ProjectPwa.d.ts +21 -0
- package/lib/esm/ProjectPwa.js +2 -0
- package/lib/esm/ProjectPwa.js.map +1 -0
- package/lib/esm/ProjectPwaIcon.d.ts +15 -0
- package/lib/esm/ProjectPwaIcon.js +2 -0
- package/lib/esm/ProjectPwaIcon.js.map +1 -0
- package/lib/esm/Publish.d.ts +1 -0
- package/lib/esm/RenderContext.d.ts +2 -10
- package/lib/esm/Right.d.ts +1 -0
- package/lib/esm/Right.js +2 -0
- package/lib/esm/Right.js.map +1 -0
- package/lib/esm/ScorableParticipant.d.ts +5 -0
- package/lib/esm/ScorableParticipant.js +2 -0
- package/lib/esm/ScorableParticipant.js.map +1 -0
- package/lib/esm/ShiftAutofillResult.d.ts +6 -0
- package/lib/esm/ShiftAutofillResult.js +2 -0
- package/lib/esm/ShiftAutofillResult.js.map +1 -0
- package/lib/esm/ShiftFillCandidate.d.ts +10 -0
- package/lib/esm/ShiftFillCandidate.js +2 -0
- package/lib/esm/ShiftFillCandidate.js.map +1 -0
- package/lib/esm/ShiftFillPolicy.d.ts +8 -0
- package/lib/esm/ShiftFillPolicy.js +2 -0
- package/lib/esm/ShiftFillPolicy.js.map +1 -0
- package/lib/esm/ShiftFillResult.d.ts +11 -0
- package/lib/esm/ShiftFillResult.js +2 -0
- package/lib/esm/ShiftFillResult.js.map +1 -0
- package/lib/esm/ShiftFillTarget.d.ts +10 -0
- package/lib/esm/ShiftFillTarget.js +2 -0
- package/lib/esm/ShiftFillTarget.js.map +1 -0
- package/lib/esm/ShiftReportContextOptions.d.ts +9 -0
- package/lib/esm/ShiftReportContextOptions.js +2 -0
- package/lib/esm/ShiftReportContextOptions.js.map +1 -0
- package/lib/esm/TrackerDailyLimitGroup.d.ts +7 -0
- package/lib/esm/TrackerDailyLimitGroup.js +2 -0
- package/lib/esm/TrackerDailyLimitGroup.js.map +1 -0
- package/lib/esm/TrackerDailyLimitInput.d.ts +8 -0
- package/lib/esm/TrackerDailyLimitInput.js +2 -0
- package/lib/esm/TrackerDailyLimitInput.js.map +1 -0
- package/lib/esm/TrackerStatisticsBucket.d.ts +13 -0
- package/lib/esm/TrackerStatisticsBucket.js +2 -0
- package/lib/esm/TrackerStatisticsBucket.js.map +1 -0
- package/lib/esm/TrackerStatisticsRange.d.ts +6 -0
- package/lib/esm/TrackerStatisticsRange.js +2 -0
- package/lib/esm/TrackerStatisticsRange.js.map +1 -0
- package/lib/esm/TrackerTimeSum.d.ts +4 -0
- package/lib/esm/TrackerTimeSum.js +2 -0
- package/lib/esm/TrackerTimeSum.js.map +1 -0
- package/lib/esm/VerifyTokenOptions.d.ts +8 -0
- package/lib/esm/VerifyTokenOptions.js +2 -0
- package/lib/esm/VerifyTokenOptions.js.map +1 -0
- package/lib/esm/WorkingAuth.d.ts +3 -0
- package/lib/esm/WorkingAuth.js +2 -0
- package/lib/esm/WorkingAuth.js.map +1 -0
- package/lib/esm/WorkingAuthAuth0.d.ts +7 -0
- package/lib/esm/WorkingAuthAuth0.js +2 -0
- package/lib/esm/WorkingAuthAuth0.js.map +1 -0
- package/lib/esm/WorkingAuthKeycloak.d.ts +7 -0
- package/lib/esm/WorkingAuthKeycloak.js +2 -0
- package/lib/esm/WorkingAuthKeycloak.js.map +1 -0
- package/lib/esm/WorkingContext.d.ts +52 -0
- package/lib/esm/WorkingContext.js +2 -0
- package/lib/esm/WorkingContext.js.map +1 -0
- package/lib/esm/index.d.ts +46 -0
- package/package.json +1 -1
- package/src/AccessLimitDoc.ts +6 -0
- package/src/Auth0ProjectSettings.ts +7 -1
- package/src/Cart.ts +3 -0
- package/src/CategoryBookedTime.ts +5 -0
- package/src/ConversationResponse.ts +5 -0
- package/src/CoverageAllocation.ts +8 -0
- package/src/Endpoints.ts +26 -0
- package/src/Environment.ts +23 -0
- package/src/EnvironmentAuth.ts +7 -0
- package/src/EnvironmentAuthKeycloak.ts +24 -0
- package/src/FrontendProject.ts +19 -0
- package/src/HistorySeenKey.ts +7 -0
- package/src/IdCounter.ts +13 -0
- package/src/ImmutableErrorKeys.ts +1 -0
- package/src/ListPlanningParticipant.ts +19 -0
- package/src/Participant.ts +28 -0
- package/src/ParticipantRole.ts +1 -0
- package/src/ParticipantState.ts +1 -0
- package/src/ParticipantUser.ts +28 -0
- package/src/PaymentProviderBase.ts +22 -0
- package/src/PlanCoveragePreparation.ts +21 -0
- package/src/PlanningParticipantsResult.ts +13 -0
- package/src/Project.ts +34 -1
- package/src/ProjectAnalytics.ts +4 -0
- package/src/ProjectAnalyticsGoogle.ts +15 -0
- package/src/ProjectAnalyticsInternal.ts +5 -0
- package/src/ProjectHead.ts +25 -0
- package/src/ProjectLogin.ts +5 -0
- package/src/ProjectPayment.ts +10 -0
- package/src/ProjectPwa.ts +36 -0
- package/src/ProjectPwaIcon.ts +20 -0
- package/src/Publish.ts +1 -0
- package/src/RenderContext.ts +2 -10
- package/src/Right.ts +1 -0
- package/src/ScorableParticipant.ts +6 -0
- package/src/ShiftAutofillResult.ts +7 -0
- package/src/ShiftFillCandidate.ts +11 -0
- package/src/ShiftFillPolicy.ts +8 -0
- package/src/ShiftFillResult.ts +12 -0
- package/src/ShiftFillTarget.ts +11 -0
- package/src/ShiftReportContextOptions.ts +10 -0
- package/src/TrackerDailyLimitGroup.ts +7 -0
- package/src/TrackerDailyLimitInput.ts +8 -0
- package/src/TrackerStatisticsBucket.ts +13 -0
- package/src/TrackerStatisticsRange.ts +6 -0
- package/src/TrackerTimeSum.ts +4 -0
- package/src/VerifyTokenOptions.ts +8 -0
- package/src/WorkingAuth.ts +4 -0
- package/src/WorkingAuthAuth0.ts +6 -0
- package/src/WorkingAuthKeycloak.ts +6 -0
- package/src/WorkingContext.ts +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkingContext.js","sourceRoot":"","sources":["../../src/WorkingContext.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -93,6 +97,10 @@ export * from './EmotionModule';
|
|
|
93
97
|
export * from './EmployeeAbsence';
|
|
94
98
|
export * from './EmployeeAbsenceFilters';
|
|
95
99
|
export * from './EmployeeAbsenceInput';
|
|
100
|
+
export * from './Endpoints';
|
|
101
|
+
export * from './Environment';
|
|
102
|
+
export * from './EnvironmentAuth';
|
|
103
|
+
export * from './EnvironmentAuthKeycloak';
|
|
96
104
|
export * from './ErrorObject';
|
|
97
105
|
export * from './EventModule';
|
|
98
106
|
export * from './EventsListModule';
|
|
@@ -105,6 +113,7 @@ export * from './FooterContact';
|
|
|
105
113
|
export * from './FooterModule';
|
|
106
114
|
export * from './FooterSitemap';
|
|
107
115
|
export * from './FooterSocial';
|
|
116
|
+
export * from './FrontendProject';
|
|
108
117
|
export * from './GalleryElement';
|
|
109
118
|
export * from './GalleryModule';
|
|
110
119
|
export * from './GenericData';
|
|
@@ -115,6 +124,7 @@ export * from './History';
|
|
|
115
124
|
export * from './HistoryChange';
|
|
116
125
|
export * from './HistoryReason';
|
|
117
126
|
export * from './HistorySeen';
|
|
127
|
+
export * from './HistorySeenKey';
|
|
118
128
|
export * from './HistoryWithType';
|
|
119
129
|
export * from './HostindCommand';
|
|
120
130
|
export * from './Hosting';
|
|
@@ -123,7 +133,9 @@ export * from './HostingSettings';
|
|
|
123
133
|
export * from './HostingWithSettings';
|
|
124
134
|
export * from './HttpStatusCodes';
|
|
125
135
|
export * from './Id';
|
|
136
|
+
export * from './IdCounter';
|
|
126
137
|
export * from './IdentifiersEntity';
|
|
138
|
+
export * from './ImmutableErrorKeys';
|
|
127
139
|
export * from './ImportExportData';
|
|
128
140
|
export * from './ImportJob';
|
|
129
141
|
export * from './IndexModule';
|
|
@@ -153,6 +165,7 @@ export * from './ListParticipantMatch';
|
|
|
153
165
|
export * from './ListParticipantWithUser';
|
|
154
166
|
export * from './ListParticipants';
|
|
155
167
|
export * from './ListParticipantsDetails';
|
|
168
|
+
export * from './ListPlanningParticipant';
|
|
156
169
|
export * from './ListString';
|
|
157
170
|
export * from './Location';
|
|
158
171
|
export * from './LocationModule';
|
|
@@ -186,10 +199,15 @@ export * from './NavigationModule';
|
|
|
186
199
|
export * from './ObjectIdString';
|
|
187
200
|
export * from './Options';
|
|
188
201
|
export * from './PartialModule';
|
|
202
|
+
export * from './Participant';
|
|
203
|
+
export * from './ParticipantRole';
|
|
204
|
+
export * from './ParticipantState';
|
|
205
|
+
export * from './ParticipantUser';
|
|
189
206
|
export * from './Partner';
|
|
190
207
|
export * from './PathMapping';
|
|
191
208
|
export * from './Payment';
|
|
192
209
|
export * from './PaymentProvider';
|
|
210
|
+
export * from './PaymentProviderBase';
|
|
193
211
|
export * from './PaymentProviderProduct';
|
|
194
212
|
export * from './PaymentProviderShopify';
|
|
195
213
|
export * from './PaymentProviderStripe';
|
|
@@ -203,16 +221,26 @@ export * from './PictureSource';
|
|
|
203
221
|
export * from './PicturegroupElement';
|
|
204
222
|
export * from './PicturegroupModule';
|
|
205
223
|
export * from './PlaeceholderModule';
|
|
224
|
+
export * from './PlanCoveragePreparation';
|
|
225
|
+
export * from './PlanningParticipantsResult';
|
|
206
226
|
export * from './PlanningScope';
|
|
207
227
|
export * from './PlanningShiftMembership';
|
|
208
228
|
export * from './Price';
|
|
209
229
|
export * from './PricesElement';
|
|
210
230
|
export * from './PricesModule';
|
|
211
231
|
export * from './Project';
|
|
232
|
+
export * from './ProjectAnalytics';
|
|
233
|
+
export * from './ProjectAnalyticsGoogle';
|
|
234
|
+
export * from './ProjectAnalyticsInternal';
|
|
212
235
|
export * from './ProjectDomain';
|
|
213
236
|
export * from './ProjectDomainWithSecret';
|
|
237
|
+
export * from './ProjectHead';
|
|
214
238
|
export * from './ProjectIdParams';
|
|
239
|
+
export * from './ProjectLogin';
|
|
215
240
|
export * from './ProjectParams';
|
|
241
|
+
export * from './ProjectPayment';
|
|
242
|
+
export * from './ProjectPwa';
|
|
243
|
+
export * from './ProjectPwaIcon';
|
|
216
244
|
export * from './ProjectSiteParams';
|
|
217
245
|
export * from './ProjectWithCompany';
|
|
218
246
|
export * from './Publish';
|
|
@@ -229,7 +257,9 @@ export * from './QuellcodeModule';
|
|
|
229
257
|
export * from './QuoteModule';
|
|
230
258
|
export * from './RenderContext';
|
|
231
259
|
export * from './ResponseError';
|
|
260
|
+
export * from './Right';
|
|
232
261
|
export * from './Scope';
|
|
262
|
+
export * from './ScorableParticipant';
|
|
233
263
|
export * from './Secret';
|
|
234
264
|
export * from './SelectedFile';
|
|
235
265
|
export * from './Settings';
|
|
@@ -240,8 +270,13 @@ export * from './ShiftAssignment';
|
|
|
240
270
|
export * from './ShiftAssignmentBreak';
|
|
241
271
|
export * from './ShiftAssignmentInput';
|
|
242
272
|
export * from './ShiftAssignmentsInput';
|
|
273
|
+
export * from './ShiftAutofillResult';
|
|
243
274
|
export * from './ShiftCoverage';
|
|
244
275
|
export * from './ShiftCreateInput';
|
|
276
|
+
export * from './ShiftFillCandidate';
|
|
277
|
+
export * from './ShiftFillPolicy';
|
|
278
|
+
export * from './ShiftFillResult';
|
|
279
|
+
export * from './ShiftFillTarget';
|
|
245
280
|
export * from './ShiftInput';
|
|
246
281
|
export * from './ShiftParticipant';
|
|
247
282
|
export * from './ShiftPlan';
|
|
@@ -266,6 +301,7 @@ export * from './ShiftPlanningSettings';
|
|
|
266
301
|
export * from './ShiftPlanningSettingsInput';
|
|
267
302
|
export * from './ShiftPlanningViolation';
|
|
268
303
|
export * from './ShiftReportContext';
|
|
304
|
+
export * from './ShiftReportContextOptions';
|
|
269
305
|
export * from './ShiftResponse';
|
|
270
306
|
export * from './ShiftScopeCoverage';
|
|
271
307
|
export * from './ShiftWorkingTime';
|
|
@@ -306,13 +342,18 @@ export * from './TrackerBooking';
|
|
|
306
342
|
export * from './TrackerBookingShift';
|
|
307
343
|
export * from './TrackerBookingsQuery';
|
|
308
344
|
export * from './TrackerCategoriesParams';
|
|
345
|
+
export * from './TrackerDailyLimitGroup';
|
|
346
|
+
export * from './TrackerDailyLimitInput';
|
|
309
347
|
export * from './TrackerDayParams';
|
|
310
348
|
export * from './TrackerDayQuery';
|
|
311
349
|
export * from './TrackerInput';
|
|
312
350
|
export * from './TrackerListQuery';
|
|
313
351
|
export * from './TrackerShiftBooking';
|
|
314
352
|
export * from './TrackerStatistics';
|
|
353
|
+
export * from './TrackerStatisticsBucket';
|
|
315
354
|
export * from './TrackerStatisticsQuery';
|
|
355
|
+
export * from './TrackerStatisticsRange';
|
|
356
|
+
export * from './TrackerTimeSum';
|
|
316
357
|
export * from './TrackerUserQuery';
|
|
317
358
|
export * from './TrainingMdule';
|
|
318
359
|
export * from './Universal';
|
|
@@ -320,6 +361,7 @@ export * from './Upload';
|
|
|
320
361
|
export * from './UserApp';
|
|
321
362
|
export * from './UserAppOptionsRequired';
|
|
322
363
|
export * from './UserAppWithOptions';
|
|
364
|
+
export * from './VerifyTokenOptions';
|
|
323
365
|
export * from './VersionInfo';
|
|
324
366
|
export * from './Video';
|
|
325
367
|
export * from './VideoModule';
|
|
@@ -330,5 +372,9 @@ export * from './WithStructures';
|
|
|
330
372
|
export * from './WorkArea';
|
|
331
373
|
export * from './WorkAreaFilters';
|
|
332
374
|
export * from './WorkAreaInput';
|
|
375
|
+
export * from './WorkingAuth';
|
|
376
|
+
export * from './WorkingAuthAuth0';
|
|
377
|
+
export * from './WorkingAuthKeycloak';
|
|
378
|
+
export * from './WorkingContext';
|
|
333
379
|
export * from './events-list-element';
|
|
334
380
|
export * from './story-element';
|
package/package.json
CHANGED
|
@@ -2,4 +2,10 @@ export interface Auth0ProjectSettings {
|
|
|
2
2
|
|
|
3
3
|
domain?: string
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/** public client id of the auth0 SPA application, not a secret */
|
|
6
|
+
clientId?: string
|
|
7
|
+
|
|
8
|
+
/** 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 */
|
|
9
|
+
audience?: string
|
|
10
|
+
|
|
11
|
+
}
|
package/src/Cart.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Conversation } from './Conversation';
|
|
2
|
+
import type { ParticipantUser } from './ParticipantUser';
|
|
3
|
+
|
|
4
|
+
/** A Conversation as sent to clients: participants enriched from ids to objects. */
|
|
5
|
+
export type ConversationResponse = Omit<Conversation, 'participants'> & { participants?: ParticipantUser[] };
|
package/src/Endpoints.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* the endpoints every environment provides and every project in it shares.
|
|
3
|
+
*/
|
|
4
|
+
export interface Endpoints {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* base url of the studio api.
|
|
8
|
+
*/
|
|
9
|
+
api: string
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* base url of the media api.
|
|
13
|
+
*/
|
|
14
|
+
media: string
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* publicly reachable cdn base for assets.
|
|
18
|
+
*/
|
|
19
|
+
cdn: string
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* cdn base for access protected files.
|
|
23
|
+
*/
|
|
24
|
+
secure: string
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Endpoints } from "./Endpoints"
|
|
2
|
+
import { EnvironmentAuth } from "./EnvironmentAuth"
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* an environment is the deployment context a project is rendered in. it owns
|
|
6
|
+
* the endpoints every project in that environment shares, so a project config
|
|
7
|
+
* never has to repeat them.
|
|
8
|
+
*/
|
|
9
|
+
export interface Environment {
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* stable identifier of the environment, e.g. `local`, `next` or `live`.
|
|
13
|
+
*/
|
|
14
|
+
id: string
|
|
15
|
+
|
|
16
|
+
endpoints: Endpoints
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* authentication provider every project in the environment shares.
|
|
20
|
+
*/
|
|
21
|
+
auth?: EnvironmentAuth
|
|
22
|
+
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* self hosted keycloak as the authentication provider of an environment.
|
|
3
|
+
*/
|
|
4
|
+
export interface EnvironmentAuthKeycloak {
|
|
5
|
+
|
|
6
|
+
type: 'keycloak'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* base url of the keycloak server, e.g. `https://auth.lilaquadrat.dev`.
|
|
10
|
+
*/
|
|
11
|
+
url: string
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* keycloak realm, e.g. `studio`.
|
|
15
|
+
*/
|
|
16
|
+
realm: string
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* public client id used by the browser. shared by every project in the
|
|
20
|
+
* environment unless a project overrides it.
|
|
21
|
+
*/
|
|
22
|
+
clientId: string
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Project } from './Project';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* the project settings the frontend may see. secrets, publish data and
|
|
5
|
+
* ai prompt settings are left out on purpose.
|
|
6
|
+
*/
|
|
7
|
+
export type FrontendProject = Pick<Project, 'company' | 'dynamic' | 'installable' | 'pwa' | 'login' | 'analytics'> & {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* the id of the project, named like the project key on every other document.
|
|
11
|
+
*/
|
|
12
|
+
project: Project['id']
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* the active payment provider of the project, named like it is used in the frontend.
|
|
16
|
+
*/
|
|
17
|
+
paymentProvider?: Project['payment']
|
|
18
|
+
|
|
19
|
+
};
|
package/src/IdCounter.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ObjectId } from 'mongodb';
|
|
2
|
+
|
|
3
|
+
/** the counter document behind the `id` collection; not to be confused with `Id`, the generic id/data pair */
|
|
4
|
+
export interface IdCounter {
|
|
5
|
+
_id: string;
|
|
6
|
+
company: string
|
|
7
|
+
project: string
|
|
8
|
+
model: string
|
|
9
|
+
app: string
|
|
10
|
+
count: number
|
|
11
|
+
initials?: string
|
|
12
|
+
dynamicKey?: string | number | ObjectId
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ImmutableErrorKeys = 'UPDATE_DOCUMENT_MISSING' | 'PARENT_DOCUMENT_NOT_FOUND' | 'DOCUMENT_ALREADY_EXISTS';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ListParticipantMatch } from './ListParticipantMatch';
|
|
2
|
+
import type { ListParticipants } from './ListParticipants';
|
|
3
|
+
import type { ObjectId } from 'mongodb';
|
|
4
|
+
|
|
5
|
+
export interface ListPlanningParticipant {
|
|
6
|
+
_id: ObjectId;
|
|
7
|
+
category?: string;
|
|
8
|
+
state: ListParticipants['state'];
|
|
9
|
+
match: ListParticipantMatch & {
|
|
10
|
+
/** Relative to the full filtered pool; tied-only pools share stage 4. */
|
|
11
|
+
normalizedScore: 1 | 2 | 3 | 4;
|
|
12
|
+
};
|
|
13
|
+
user?: {
|
|
14
|
+
_id: ObjectId;
|
|
15
|
+
id?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ObjectId } from 'mongodb';
|
|
2
|
+
import type { ParticipantRole } from './ParticipantRole';
|
|
3
|
+
import type { ParticipantState } from './ParticipantState';
|
|
4
|
+
import type { Right } from './Right';
|
|
5
|
+
|
|
6
|
+
export interface Participant {
|
|
7
|
+
_id?: ObjectId;
|
|
8
|
+
conversation: ObjectId;
|
|
9
|
+
user: string;
|
|
10
|
+
state: ParticipantState;
|
|
11
|
+
rights: Right[];
|
|
12
|
+
lastReadId?: number;
|
|
13
|
+
latestMessageId?: number;
|
|
14
|
+
/**
|
|
15
|
+
* the participant silenced this conversation for themselves. A pure notification
|
|
16
|
+
* preference — delivery is untouched, muted members still receive every frame, the
|
|
17
|
+
* client just stops making noise about them. Private to the owner of the doc: it is
|
|
18
|
+
* never broadcast to the other participants.
|
|
19
|
+
*/
|
|
20
|
+
muted?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* only set on support conversations, and only for the support team. It is what separates
|
|
23
|
+
* the team from the customer on every read path, so the conversation's own bookkeeping
|
|
24
|
+
* (system messages) can stay internal — see messages.service list().
|
|
25
|
+
*/
|
|
26
|
+
role?: ParticipantRole;
|
|
27
|
+
joinedAt?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ParticipantRole = 'agent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ParticipantState = 'active' | 'left' | 'removed' | 'blocked' | 'deleted';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ParticipantRole } from './ParticipantRole';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Enriched participant shape returned to clients. Conversations are *stored* with
|
|
5
|
+
* `participants: string[]` (user ids); read/emit paths enrich each id to this object
|
|
6
|
+
* via the `me` collection. Unresolvable ids (e.g. external IdP subs with no `me`
|
|
7
|
+
* record) degrade to just `{ id }` so no participant is ever dropped.
|
|
8
|
+
*/
|
|
9
|
+
export interface ParticipantUser {
|
|
10
|
+
id: string;
|
|
11
|
+
prename?: string;
|
|
12
|
+
lastname?: string;
|
|
13
|
+
/** only included by the staff-authorised support conversation list */
|
|
14
|
+
email?: string;
|
|
15
|
+
/** presence: last proof of life, ISO string. Absent for a user who never connected. */
|
|
16
|
+
lastSeen?: string;
|
|
17
|
+
/** presence: derived from the stored flag AND lastSeen freshness, see presence.service */
|
|
18
|
+
online?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* support conversations only, and only on the paths that carry the roles: the agent-side list
|
|
21
|
+
* pipeline (support-conversations.service) and the `conversation:new` frame. It is what lets a
|
|
22
|
+
* client name the counterpart itself — the customer is the participant whose role is not
|
|
23
|
+
* 'agent'. `null` says "not a member of the support team", which on a pre-f2fdc27 legacy row is
|
|
24
|
+
* every participant, so none of them is distinguishable — see supportCustomer.ts. Absent means
|
|
25
|
+
* the path this object came from does not carry roles at all.
|
|
26
|
+
*/
|
|
27
|
+
role?: ParticipantRole | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { List } from './List';
|
|
2
|
+
import type { ListCategory } from './ListCategory';
|
|
3
|
+
import type { PaymentProvider } from './PaymentProvider';
|
|
4
|
+
import type { PaymentProviderProduct } from './PaymentProviderProduct';
|
|
5
|
+
|
|
6
|
+
export interface PaymentProviderBase<T extends PaymentProvider = PaymentProvider> {
|
|
7
|
+
|
|
8
|
+
provider: T
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* creates the sellable product for a category at the provider.
|
|
12
|
+
* returns the provider's product id, which gets stored as the category's externalId
|
|
13
|
+
*/
|
|
14
|
+
createProduct(category: ListCategory, list: Pick<List, 'name' | 'location' | 'start'>): Promise<string>
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* loads the product behind an externalId from the provider.
|
|
18
|
+
* throws PRODUCT_NOT_FOUND if the provider doesn't know the id
|
|
19
|
+
*/
|
|
20
|
+
getProduct(externalId: string): Promise<PaymentProviderProduct>
|
|
21
|
+
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ObjectId, WithId } from 'mongodb';
|
|
2
|
+
import type { Shift } from './Shift';
|
|
3
|
+
import type { ShiftPlan } from './ShiftPlan';
|
|
4
|
+
import type { ShiftPlanningSettings } from './ShiftPlanningSettings';
|
|
5
|
+
import type { Structure } from './Structure';
|
|
6
|
+
import type { ShiftFillTarget } from './ShiftFillTarget';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Everything a plan coverage run needs after the shared reads. Candidate pools are already ranked
|
|
10
|
+
* and the ids are the people that must be resolved for reporting, so callers only add the schedule.
|
|
11
|
+
*/
|
|
12
|
+
export interface PlanCoveragePreparation {
|
|
13
|
+
plan: WithId<ShiftPlan>;
|
|
14
|
+
shifts: WithId<Shift>[];
|
|
15
|
+
targets: ShiftFillTarget[];
|
|
16
|
+
participantIds: ObjectId[];
|
|
17
|
+
customerIds: ObjectId[];
|
|
18
|
+
settings: ShiftPlanningSettings | null;
|
|
19
|
+
listStructures: WithId<Structure>[];
|
|
20
|
+
customerStructures: WithId<Structure>[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ShiftScopeCoverage } from './ShiftScopeCoverage';
|
|
2
|
+
import type { ListPlanningParticipant } from './ListPlanningParticipant';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Candidate page for a shift or work area, or coverage for a day or plan. `data` is empty when
|
|
6
|
+
* `coverage` is present.
|
|
7
|
+
*/
|
|
8
|
+
export interface PlanningParticipantsResult {
|
|
9
|
+
all: number;
|
|
10
|
+
count: number;
|
|
11
|
+
data: ListPlanningParticipant[];
|
|
12
|
+
coverage?: ShiftScopeCoverage;
|
|
13
|
+
}
|
package/src/Project.ts
CHANGED
|
@@ -1,18 +1,51 @@
|
|
|
1
1
|
import {Auth0ProjectSettings} from "./Auth0ProjectSettings"
|
|
2
|
+
import {ProjectAnalytics} from "./ProjectAnalytics"
|
|
3
|
+
import {ProjectHead} from "./ProjectHead"
|
|
4
|
+
import {ProjectLogin} from "./ProjectLogin"
|
|
5
|
+
import {ProjectPayment} from "./ProjectPayment"
|
|
6
|
+
import {ProjectPwa} from "./ProjectPwa"
|
|
2
7
|
|
|
3
8
|
export interface Project {
|
|
4
9
|
|
|
10
|
+
id: string
|
|
5
11
|
name: string
|
|
6
12
|
description?: string
|
|
7
13
|
aiDescription?: string
|
|
8
14
|
aiTone?: string
|
|
9
|
-
license?: string
|
|
15
|
+
license?: string[]
|
|
10
16
|
company: string
|
|
11
17
|
tags?: string[]
|
|
12
18
|
apps?: string[]
|
|
19
|
+
attributes?: string[]
|
|
13
20
|
|
|
14
21
|
features?: string[]
|
|
15
22
|
|
|
16
23
|
auth0?: Auth0ProjectSettings
|
|
17
24
|
|
|
25
|
+
/**
|
|
26
|
+
* this project behaves as an app: dynamic routes and client side navigation.
|
|
27
|
+
* rendered as `app` in the frontend config.
|
|
28
|
+
*/
|
|
29
|
+
dynamic?: boolean
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* the app can be installed, which is what makes the pwa settings meaningful.
|
|
33
|
+
* only set when `app` is on.
|
|
34
|
+
*/
|
|
35
|
+
installable?: boolean
|
|
36
|
+
|
|
37
|
+
payment?: ProjectPayment
|
|
38
|
+
|
|
39
|
+
pwa?: ProjectPwa
|
|
40
|
+
|
|
41
|
+
head?: ProjectHead
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* users can register and log in; the provider decides between the internal
|
|
45
|
+
* auth and auth0. only set when `app` is on.
|
|
46
|
+
*/
|
|
47
|
+
login?: ProjectLogin
|
|
48
|
+
|
|
49
|
+
analytics?: ProjectAnalytics
|
|
50
|
+
|
|
18
51
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ProjectAnalyticsGoogle {
|
|
2
|
+
|
|
3
|
+
provider: 'googleAnalytics'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* the GA4 measurement id, e.g. `G-XXXXXXXXXX`.
|
|
7
|
+
*/
|
|
8
|
+
measurementId: string
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* send hits without cookies until the visitor grants consent.
|
|
12
|
+
*/
|
|
13
|
+
requireConsent?: boolean
|
|
14
|
+
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MediaApp } from "./MediaApp"
|
|
2
|
+
|
|
3
|
+
export interface ProjectHead {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* `<meta name="theme-color">` content. stays a plain string.
|
|
7
|
+
*/
|
|
8
|
+
themeColor?: string
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* selected media file, used as `<link rel="icon" sizes="32x32">`
|
|
12
|
+
*/
|
|
13
|
+
favicon?: MediaApp
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* selected media file, used as `<link rel="icon" type="image/svg+xml">`
|
|
17
|
+
*/
|
|
18
|
+
icon?: MediaApp
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* selected media file, used as `<link rel="apple-touch-icon" sizes="180x180">`
|
|
22
|
+
*/
|
|
23
|
+
appleTouchIcon?: MediaApp
|
|
24
|
+
|
|
25
|
+
}
|