@lilaquadrat/interfaces 1.53.1 → 1.55.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 (284) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/lib/cjs/CustomersModelActions.d.ts +1 -1
  3. package/lib/cjs/EmployeeAbsence.d.ts +10 -0
  4. package/lib/cjs/EmployeeAbsenceFilters.d.ts +5 -0
  5. package/lib/cjs/EmployeeAbsenceInput.d.ts +2 -0
  6. package/lib/cjs/HistoryChange.d.ts +12 -0
  7. package/lib/cjs/HistorySeen.d.ts +15 -0
  8. package/lib/cjs/List.d.ts +5 -0
  9. package/lib/cjs/ListCategory.d.ts +6 -0
  10. package/lib/cjs/ListParticipantMatch.d.ts +12 -0
  11. package/lib/cjs/ListParticipantWithUser.d.ts +4 -1
  12. package/lib/cjs/MemberShift.d.ts +21 -0
  13. package/lib/cjs/MemberShiftFilters.d.ts +5 -0
  14. package/lib/cjs/PaymentProviderProduct.d.ts +20 -0
  15. package/lib/cjs/PlanningScope.d.ts +13 -0
  16. package/lib/cjs/PlanningShiftMembership.d.ts +5 -0
  17. package/lib/cjs/Shift.d.ts +19 -0
  18. package/lib/cjs/ShiftAssignment.d.ts +7 -0
  19. package/lib/cjs/ShiftAssignmentBreak.d.ts +4 -0
  20. package/lib/cjs/ShiftAssignmentInput.d.ts +6 -0
  21. package/lib/cjs/ShiftAssignmentsInput.d.ts +4 -0
  22. package/lib/cjs/ShiftCoverage.d.ts +15 -0
  23. package/lib/cjs/ShiftCreateInput.d.ts +5 -0
  24. package/lib/cjs/ShiftInput.d.ts +12 -0
  25. package/lib/cjs/ShiftParticipant.d.ts +14 -0
  26. package/lib/cjs/ShiftPlan.d.ts +20 -0
  27. package/lib/cjs/ShiftPlanArea.d.ts +5 -0
  28. package/lib/cjs/ShiftPlanChangeInput.d.ts +14 -0
  29. package/lib/cjs/ShiftPlanCoverageSummary.d.ts +7 -0
  30. package/lib/cjs/ShiftPlanCreateInput.d.ts +14 -0
  31. package/lib/cjs/ShiftPlanDay.d.ts +11 -0
  32. package/lib/cjs/ShiftPlanDayInput.d.ts +6 -0
  33. package/lib/cjs/ShiftPlanFilters.d.ts +9 -0
  34. package/lib/cjs/ShiftPlanResponse.d.ts +14 -0
  35. package/lib/cjs/ShiftPlanWorkArea.d.ts +6 -0
  36. package/lib/cjs/ShiftPlanWorkHours.d.ts +5 -0
  37. package/lib/cjs/ShiftPlanningCompanyOptions.d.ts +2 -0
  38. package/lib/cjs/ShiftPlanningFilters.d.ts +7 -0
  39. package/lib/cjs/ShiftPlanningPage.d.ts +7 -0
  40. package/lib/cjs/ShiftPlanningPolicy.d.ts +32 -0
  41. package/lib/cjs/ShiftPlanningPolicyOverrides.d.ts +2 -0
  42. package/lib/cjs/ShiftPlanningProjectOptions.d.ts +2 -0
  43. package/lib/cjs/ShiftPlanningSettings.d.ts +8 -0
  44. package/lib/cjs/ShiftPlanningSettingsInput.d.ts +4 -0
  45. package/lib/cjs/ShiftPlanningViolation.d.ts +7 -0
  46. package/lib/cjs/ShiftReportContext.d.ts +18 -0
  47. package/lib/cjs/ShiftResponse.d.ts +10 -0
  48. package/lib/cjs/ShiftScopeCoverage.d.ts +11 -0
  49. package/lib/cjs/ShiftWorkingTime.d.ts +6 -0
  50. package/lib/cjs/StructureCondition.d.ts +11 -0
  51. package/lib/cjs/StructureConditionConstraint.d.ts +1 -0
  52. package/lib/cjs/StructureConditionGrade.d.ts +1 -0
  53. package/lib/cjs/StructureConditionOperator.d.ts +1 -0
  54. package/lib/cjs/StructureConditionType.d.ts +1 -0
  55. package/lib/cjs/StructureMatchState.d.ts +1 -0
  56. package/lib/cjs/WithStructures.d.ts +2 -1
  57. package/lib/cjs/WorkArea.d.ts +14 -0
  58. package/lib/cjs/WorkAreaFilters.d.ts +4 -0
  59. package/lib/cjs/WorkAreaInput.d.ts +2 -0
  60. package/lib/cjs/index.d.ts +53 -0
  61. package/lib/esm/CustomersModelActions.d.ts +1 -1
  62. package/lib/esm/EmployeeAbsence.d.ts +10 -0
  63. package/lib/esm/EmployeeAbsence.js +2 -0
  64. package/lib/esm/EmployeeAbsence.js.map +1 -0
  65. package/lib/esm/EmployeeAbsenceFilters.d.ts +5 -0
  66. package/lib/esm/EmployeeAbsenceFilters.js +2 -0
  67. package/lib/esm/EmployeeAbsenceFilters.js.map +1 -0
  68. package/lib/esm/EmployeeAbsenceInput.d.ts +2 -0
  69. package/lib/esm/EmployeeAbsenceInput.js +2 -0
  70. package/lib/esm/EmployeeAbsenceInput.js.map +1 -0
  71. package/lib/esm/HistoryChange.d.ts +12 -0
  72. package/lib/esm/HistoryChange.js +2 -0
  73. package/lib/esm/HistoryChange.js.map +1 -0
  74. package/lib/esm/HistorySeen.d.ts +15 -0
  75. package/lib/esm/HistorySeen.js +2 -0
  76. package/lib/esm/HistorySeen.js.map +1 -0
  77. package/lib/esm/List.d.ts +5 -0
  78. package/lib/esm/ListCategory.d.ts +6 -0
  79. package/lib/esm/ListParticipantMatch.d.ts +12 -0
  80. package/lib/esm/ListParticipantMatch.js +2 -0
  81. package/lib/esm/ListParticipantMatch.js.map +1 -0
  82. package/lib/esm/ListParticipantWithUser.d.ts +4 -1
  83. package/lib/esm/MemberShift.d.ts +21 -0
  84. package/lib/esm/MemberShift.js +2 -0
  85. package/lib/esm/MemberShift.js.map +1 -0
  86. package/lib/esm/MemberShiftFilters.d.ts +5 -0
  87. package/lib/esm/MemberShiftFilters.js +2 -0
  88. package/lib/esm/MemberShiftFilters.js.map +1 -0
  89. package/lib/esm/PaymentProviderProduct.d.ts +20 -0
  90. package/lib/esm/PaymentProviderProduct.js +2 -0
  91. package/lib/esm/PaymentProviderProduct.js.map +1 -0
  92. package/lib/esm/PlanningScope.d.ts +13 -0
  93. package/lib/esm/PlanningScope.js +2 -0
  94. package/lib/esm/PlanningScope.js.map +1 -0
  95. package/lib/esm/PlanningShiftMembership.d.ts +5 -0
  96. package/lib/esm/PlanningShiftMembership.js +2 -0
  97. package/lib/esm/PlanningShiftMembership.js.map +1 -0
  98. package/lib/esm/Shift.d.ts +19 -0
  99. package/lib/esm/Shift.js +2 -0
  100. package/lib/esm/Shift.js.map +1 -0
  101. package/lib/esm/ShiftAssignment.d.ts +7 -0
  102. package/lib/esm/ShiftAssignment.js +2 -0
  103. package/lib/esm/ShiftAssignment.js.map +1 -0
  104. package/lib/esm/ShiftAssignmentBreak.d.ts +4 -0
  105. package/lib/esm/ShiftAssignmentBreak.js +2 -0
  106. package/lib/esm/ShiftAssignmentBreak.js.map +1 -0
  107. package/lib/esm/ShiftAssignmentInput.d.ts +6 -0
  108. package/lib/esm/ShiftAssignmentInput.js +2 -0
  109. package/lib/esm/ShiftAssignmentInput.js.map +1 -0
  110. package/lib/esm/ShiftAssignmentsInput.d.ts +4 -0
  111. package/lib/esm/ShiftAssignmentsInput.js +2 -0
  112. package/lib/esm/ShiftAssignmentsInput.js.map +1 -0
  113. package/lib/esm/ShiftCoverage.d.ts +15 -0
  114. package/lib/esm/ShiftCoverage.js +2 -0
  115. package/lib/esm/ShiftCoverage.js.map +1 -0
  116. package/lib/esm/ShiftCreateInput.d.ts +5 -0
  117. package/lib/esm/ShiftCreateInput.js +2 -0
  118. package/lib/esm/ShiftCreateInput.js.map +1 -0
  119. package/lib/esm/ShiftInput.d.ts +12 -0
  120. package/lib/esm/ShiftInput.js +2 -0
  121. package/lib/esm/ShiftInput.js.map +1 -0
  122. package/lib/esm/ShiftParticipant.d.ts +14 -0
  123. package/lib/esm/ShiftParticipant.js +2 -0
  124. package/lib/esm/ShiftParticipant.js.map +1 -0
  125. package/lib/esm/ShiftPlan.d.ts +20 -0
  126. package/lib/esm/ShiftPlan.js +2 -0
  127. package/lib/esm/ShiftPlan.js.map +1 -0
  128. package/lib/esm/ShiftPlanArea.d.ts +5 -0
  129. package/lib/esm/ShiftPlanArea.js +2 -0
  130. package/lib/esm/ShiftPlanArea.js.map +1 -0
  131. package/lib/esm/ShiftPlanChangeInput.d.ts +14 -0
  132. package/lib/esm/ShiftPlanChangeInput.js +2 -0
  133. package/lib/esm/ShiftPlanChangeInput.js.map +1 -0
  134. package/lib/esm/ShiftPlanCoverageSummary.d.ts +7 -0
  135. package/lib/esm/ShiftPlanCoverageSummary.js +2 -0
  136. package/lib/esm/ShiftPlanCoverageSummary.js.map +1 -0
  137. package/lib/esm/ShiftPlanCreateInput.d.ts +14 -0
  138. package/lib/esm/ShiftPlanCreateInput.js +2 -0
  139. package/lib/esm/ShiftPlanCreateInput.js.map +1 -0
  140. package/lib/esm/ShiftPlanDay.d.ts +11 -0
  141. package/lib/esm/ShiftPlanDay.js +2 -0
  142. package/lib/esm/ShiftPlanDay.js.map +1 -0
  143. package/lib/esm/ShiftPlanDayInput.d.ts +6 -0
  144. package/lib/esm/ShiftPlanDayInput.js +2 -0
  145. package/lib/esm/ShiftPlanDayInput.js.map +1 -0
  146. package/lib/esm/ShiftPlanFilters.d.ts +9 -0
  147. package/lib/esm/ShiftPlanFilters.js +2 -0
  148. package/lib/esm/ShiftPlanFilters.js.map +1 -0
  149. package/lib/esm/ShiftPlanResponse.d.ts +14 -0
  150. package/lib/esm/ShiftPlanResponse.js +2 -0
  151. package/lib/esm/ShiftPlanResponse.js.map +1 -0
  152. package/lib/esm/ShiftPlanWorkArea.d.ts +6 -0
  153. package/lib/esm/ShiftPlanWorkArea.js +2 -0
  154. package/lib/esm/ShiftPlanWorkArea.js.map +1 -0
  155. package/lib/esm/ShiftPlanWorkHours.d.ts +5 -0
  156. package/lib/esm/ShiftPlanWorkHours.js +2 -0
  157. package/lib/esm/ShiftPlanWorkHours.js.map +1 -0
  158. package/lib/esm/ShiftPlanningCompanyOptions.d.ts +2 -0
  159. package/lib/esm/ShiftPlanningCompanyOptions.js +2 -0
  160. package/lib/esm/ShiftPlanningCompanyOptions.js.map +1 -0
  161. package/lib/esm/ShiftPlanningFilters.d.ts +7 -0
  162. package/lib/esm/ShiftPlanningFilters.js +2 -0
  163. package/lib/esm/ShiftPlanningFilters.js.map +1 -0
  164. package/lib/esm/ShiftPlanningPage.d.ts +7 -0
  165. package/lib/esm/ShiftPlanningPage.js +2 -0
  166. package/lib/esm/ShiftPlanningPage.js.map +1 -0
  167. package/lib/esm/ShiftPlanningPolicy.d.ts +32 -0
  168. package/lib/esm/ShiftPlanningPolicy.js +2 -0
  169. package/lib/esm/ShiftPlanningPolicy.js.map +1 -0
  170. package/lib/esm/ShiftPlanningPolicyOverrides.d.ts +2 -0
  171. package/lib/esm/ShiftPlanningPolicyOverrides.js +2 -0
  172. package/lib/esm/ShiftPlanningPolicyOverrides.js.map +1 -0
  173. package/lib/esm/ShiftPlanningProjectOptions.d.ts +2 -0
  174. package/lib/esm/ShiftPlanningProjectOptions.js +2 -0
  175. package/lib/esm/ShiftPlanningProjectOptions.js.map +1 -0
  176. package/lib/esm/ShiftPlanningSettings.d.ts +8 -0
  177. package/lib/esm/ShiftPlanningSettings.js +2 -0
  178. package/lib/esm/ShiftPlanningSettings.js.map +1 -0
  179. package/lib/esm/ShiftPlanningSettingsInput.d.ts +4 -0
  180. package/lib/esm/ShiftPlanningSettingsInput.js +2 -0
  181. package/lib/esm/ShiftPlanningSettingsInput.js.map +1 -0
  182. package/lib/esm/ShiftPlanningViolation.d.ts +7 -0
  183. package/lib/esm/ShiftPlanningViolation.js +2 -0
  184. package/lib/esm/ShiftPlanningViolation.js.map +1 -0
  185. package/lib/esm/ShiftReportContext.d.ts +18 -0
  186. package/lib/esm/ShiftReportContext.js +2 -0
  187. package/lib/esm/ShiftReportContext.js.map +1 -0
  188. package/lib/esm/ShiftResponse.d.ts +10 -0
  189. package/lib/esm/ShiftResponse.js +2 -0
  190. package/lib/esm/ShiftResponse.js.map +1 -0
  191. package/lib/esm/ShiftScopeCoverage.d.ts +11 -0
  192. package/lib/esm/ShiftScopeCoverage.js +2 -0
  193. package/lib/esm/ShiftScopeCoverage.js.map +1 -0
  194. package/lib/esm/ShiftWorkingTime.d.ts +6 -0
  195. package/lib/esm/ShiftWorkingTime.js +2 -0
  196. package/lib/esm/ShiftWorkingTime.js.map +1 -0
  197. package/lib/esm/StructureCondition.d.ts +11 -0
  198. package/lib/esm/StructureCondition.js +2 -0
  199. package/lib/esm/StructureCondition.js.map +1 -0
  200. package/lib/esm/StructureConditionConstraint.d.ts +1 -0
  201. package/lib/esm/StructureConditionConstraint.js +2 -0
  202. package/lib/esm/StructureConditionConstraint.js.map +1 -0
  203. package/lib/esm/StructureConditionGrade.d.ts +1 -0
  204. package/lib/esm/StructureConditionGrade.js +2 -0
  205. package/lib/esm/StructureConditionGrade.js.map +1 -0
  206. package/lib/esm/StructureConditionOperator.d.ts +1 -0
  207. package/lib/esm/StructureConditionOperator.js +2 -0
  208. package/lib/esm/StructureConditionOperator.js.map +1 -0
  209. package/lib/esm/StructureConditionType.d.ts +1 -0
  210. package/lib/esm/StructureConditionType.js +2 -0
  211. package/lib/esm/StructureConditionType.js.map +1 -0
  212. package/lib/esm/StructureMatchState.d.ts +1 -0
  213. package/lib/esm/StructureMatchState.js +2 -0
  214. package/lib/esm/StructureMatchState.js.map +1 -0
  215. package/lib/esm/WithStructures.d.ts +2 -1
  216. package/lib/esm/WorkArea.d.ts +14 -0
  217. package/lib/esm/WorkArea.js +2 -0
  218. package/lib/esm/WorkArea.js.map +1 -0
  219. package/lib/esm/WorkAreaFilters.d.ts +4 -0
  220. package/lib/esm/WorkAreaFilters.js +2 -0
  221. package/lib/esm/WorkAreaFilters.js.map +1 -0
  222. package/lib/esm/WorkAreaInput.d.ts +2 -0
  223. package/lib/esm/WorkAreaInput.js +2 -0
  224. package/lib/esm/WorkAreaInput.js.map +1 -0
  225. package/lib/esm/index.d.ts +53 -0
  226. package/package.json +1 -1
  227. package/src/CustomersModelActions.ts +1 -1
  228. package/src/EmployeeAbsence.ts +11 -0
  229. package/src/EmployeeAbsenceFilters.ts +6 -0
  230. package/src/EmployeeAbsenceInput.ts +3 -0
  231. package/src/HistoryChange.ts +16 -0
  232. package/src/HistorySeen.ts +16 -0
  233. package/src/List.ts +6 -0
  234. package/src/ListCategory.ts +6 -0
  235. package/src/ListParticipantMatch.ts +13 -0
  236. package/src/ListParticipantWithUser.ts +4 -1
  237. package/src/MemberShift.ts +15 -0
  238. package/src/MemberShiftFilters.ts +6 -0
  239. package/src/PaymentProviderProduct.ts +25 -0
  240. package/src/PlanningScope.ts +14 -0
  241. package/src/PlanningShiftMembership.ts +5 -0
  242. package/src/Shift.ts +20 -0
  243. package/src/ShiftAssignment.ts +8 -0
  244. package/src/ShiftAssignmentBreak.ts +4 -0
  245. package/src/ShiftAssignmentInput.ts +7 -0
  246. package/src/ShiftAssignmentsInput.ts +5 -0
  247. package/src/ShiftCoverage.ts +16 -0
  248. package/src/ShiftCreateInput.ts +6 -0
  249. package/src/ShiftInput.ts +13 -0
  250. package/src/ShiftParticipant.ts +15 -0
  251. package/src/ShiftPlan.ts +21 -0
  252. package/src/ShiftPlanArea.ts +6 -0
  253. package/src/ShiftPlanChangeInput.ts +15 -0
  254. package/src/ShiftPlanCoverageSummary.ts +7 -0
  255. package/src/ShiftPlanCreateInput.ts +15 -0
  256. package/src/ShiftPlanDay.ts +12 -0
  257. package/src/ShiftPlanDayInput.ts +7 -0
  258. package/src/ShiftPlanFilters.ts +10 -0
  259. package/src/ShiftPlanResponse.ts +15 -0
  260. package/src/ShiftPlanWorkArea.ts +7 -0
  261. package/src/ShiftPlanWorkHours.ts +5 -0
  262. package/src/ShiftPlanningCompanyOptions.ts +3 -0
  263. package/src/ShiftPlanningFilters.ts +8 -0
  264. package/src/ShiftPlanningPage.ts +8 -0
  265. package/src/ShiftPlanningPolicy.ts +14 -0
  266. package/src/ShiftPlanningPolicyOverrides.ts +4 -0
  267. package/src/ShiftPlanningProjectOptions.ts +3 -0
  268. package/src/ShiftPlanningSettings.ts +9 -0
  269. package/src/ShiftPlanningSettingsInput.ts +5 -0
  270. package/src/ShiftPlanningViolation.ts +7 -0
  271. package/src/ShiftReportContext.ts +19 -0
  272. package/src/ShiftResponse.ts +11 -0
  273. package/src/ShiftScopeCoverage.ts +12 -0
  274. package/src/ShiftWorkingTime.ts +6 -0
  275. package/src/StructureCondition.ts +12 -0
  276. package/src/StructureConditionConstraint.ts +1 -0
  277. package/src/StructureConditionGrade.ts +1 -0
  278. package/src/StructureConditionOperator.ts +1 -0
  279. package/src/StructureConditionType.ts +1 -0
  280. package/src/StructureMatchState.ts +1 -0
  281. package/src/WithStructures.ts +2 -1
  282. package/src/WorkArea.ts +15 -0
  283. package/src/WorkAreaFilters.ts +4 -0
  284. package/src/WorkAreaInput.ts +3 -0
@@ -0,0 +1,14 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { Address } from './Address';
3
+ import type { StructureCondition } from './StructureCondition';
4
+ export interface WorkArea {
5
+ _id: ObjectId;
6
+ id?: string;
7
+ company: string;
8
+ project: string;
9
+ name: string;
10
+ description?: string;
11
+ location?: string;
12
+ address?: Address;
13
+ structures?: StructureCondition[];
14
+ }
@@ -0,0 +1,4 @@
1
+ export interface WorkAreaFilters {
2
+ search?: string;
3
+ site?: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ import type { WorkArea } from './WorkArea';
2
+ export type WorkAreaInput = Omit<WorkArea, '_id' | 'company' | 'project'>;
@@ -85,6 +85,9 @@ export * from './EditorSettings';
85
85
  export * from './EmailLimit';
86
86
  export * from './EmailsContent';
87
87
  export * from './EmotionModule';
88
+ export * from './EmployeeAbsence';
89
+ export * from './EmployeeAbsenceFilters';
90
+ export * from './EmployeeAbsenceInput';
88
91
  export * from './ErrorObject';
89
92
  export * from './EventModule';
90
93
  export * from './EventsListModule';
@@ -104,7 +107,9 @@ export * from './GenericDataDistributed';
104
107
  export * from './GenericDataSingle';
105
108
  export * from './GenericDataWithContent';
106
109
  export * from './History';
110
+ export * from './HistoryChange';
107
111
  export * from './HistoryReason';
112
+ export * from './HistorySeen';
108
113
  export * from './HistoryWithType';
109
114
  export * from './HostindCommand';
110
115
  export * from './Hosting';
@@ -139,6 +144,7 @@ export * from './ListCustomQueries';
139
144
  export * from './ListItem';
140
145
  export * from './ListLink';
141
146
  export * from './ListOfModels';
147
+ export * from './ListParticipantMatch';
142
148
  export * from './ListParticipantWithUser';
143
149
  export * from './ListParticipants';
144
150
  export * from './ListParticipantsDetails';
@@ -157,6 +163,8 @@ export * from './MediaMetadata';
157
163
  export * from './MediaStats';
158
164
  export * from './MediaViewInfo';
159
165
  export * from './MemberProfileUpdate';
166
+ export * from './MemberShift';
167
+ export * from './MemberShiftFilters';
160
168
  export * from './MenuCategoryElement';
161
169
  export * from './MenuItemElement';
162
170
  export * from './MenuModule';
@@ -177,6 +185,7 @@ export * from './Partner';
177
185
  export * from './PathMapping';
178
186
  export * from './Payment';
179
187
  export * from './PaymentProvider';
188
+ export * from './PaymentProviderProduct';
180
189
  export * from './PaymentProviderShopify';
181
190
  export * from './PaymentProviderStripe';
182
191
  export * from './PaymentWithCustomer';
@@ -189,6 +198,8 @@ export * from './PictureSource';
189
198
  export * from './PicturegroupElement';
190
199
  export * from './PicturegroupModule';
191
200
  export * from './PlaeceholderModule';
201
+ export * from './PlanningScope';
202
+ export * from './PlanningShiftMembership';
192
203
  export * from './Price';
193
204
  export * from './PricesElement';
194
205
  export * from './PricesModule';
@@ -216,6 +227,39 @@ export * from './SelectedFile';
216
227
  export * from './Settings';
217
228
  export * from './ShareClient';
218
229
  export * from './ShareClientOptions';
230
+ export * from './Shift';
231
+ export * from './ShiftAssignment';
232
+ export * from './ShiftAssignmentBreak';
233
+ export * from './ShiftAssignmentInput';
234
+ export * from './ShiftAssignmentsInput';
235
+ export * from './ShiftCoverage';
236
+ export * from './ShiftCreateInput';
237
+ export * from './ShiftInput';
238
+ export * from './ShiftParticipant';
239
+ export * from './ShiftPlan';
240
+ export * from './ShiftPlanArea';
241
+ export * from './ShiftPlanChangeInput';
242
+ export * from './ShiftPlanCoverageSummary';
243
+ export * from './ShiftPlanCreateInput';
244
+ export * from './ShiftPlanDay';
245
+ export * from './ShiftPlanDayInput';
246
+ export * from './ShiftPlanFilters';
247
+ export * from './ShiftPlanResponse';
248
+ export * from './ShiftPlanWorkArea';
249
+ export * from './ShiftPlanWorkHours';
250
+ export * from './ShiftPlanningCompanyOptions';
251
+ export * from './ShiftPlanningFilters';
252
+ export * from './ShiftPlanningPage';
253
+ export * from './ShiftPlanningPolicy';
254
+ export * from './ShiftPlanningPolicyOverrides';
255
+ export * from './ShiftPlanningProjectOptions';
256
+ export * from './ShiftPlanningSettings';
257
+ export * from './ShiftPlanningSettingsInput';
258
+ export * from './ShiftPlanningViolation';
259
+ export * from './ShiftReportContext';
260
+ export * from './ShiftResponse';
261
+ export * from './ShiftScopeCoverage';
262
+ export * from './ShiftWorkingTime';
219
263
  export * from './ShopifyProjectSettings';
220
264
  export * from './ShoppingCartModule';
221
265
  export * from './SkipLimitSort';
@@ -227,6 +271,12 @@ export * from './StorageWithVersions';
227
271
  export * from './Stored';
228
272
  export * from './StoryModule';
229
273
  export * from './Structure';
274
+ export * from './StructureCondition';
275
+ export * from './StructureConditionConstraint';
276
+ export * from './StructureConditionGrade';
277
+ export * from './StructureConditionOperator';
278
+ export * from './StructureConditionType';
279
+ export * from './StructureMatchState';
230
280
  export * from './StudioIframeMessage';
231
281
  export * from './SupportAvailability';
232
282
  export * from './SupportDay';
@@ -249,5 +299,8 @@ export * from './VideoSource';
249
299
  export * from './WebhookCall';
250
300
  export * from './WildcardCertificates';
251
301
  export * from './WithStructures';
302
+ export * from './WorkArea';
303
+ export * from './WorkAreaFilters';
304
+ export * from './WorkAreaInput';
252
305
  export * from './events-list-element';
253
306
  export * from './story-element';
@@ -1 +1 @@
1
- export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount' | 'confirmEmail' | 'setEmailConfirmationCode' | 'changeMemberProfile';
1
+ export type CustomersModelActions = 'createPersonMinimal' | 'createPersonExternal' | 'createPersonExternalWithAddress' | 'createCompanyMinimal' | 'changePersonMinimal' | 'changeCompanyMinimal' | 'connectPersonAccount' | 'disconnectPersonAccount' | 'confirmEmail' | 'setEmailConfirmationCode' | 'changeMemberProfile' | 'changeStructures';
@@ -0,0 +1,10 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ export interface EmployeeAbsence {
3
+ _id?: ObjectId;
4
+ company: string;
5
+ project: string;
6
+ customer: ObjectId;
7
+ type: 'vacation' | 'sickness';
8
+ start: string;
9
+ end: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EmployeeAbsence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmployeeAbsence.js","sourceRoot":"","sources":["../../src/EmployeeAbsence.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { ShiftPlanningFilters } from './ShiftPlanningFilters';
3
+ export interface EmployeeAbsenceFilters extends Omit<ShiftPlanningFilters, 'area'> {
4
+ customer?: ObjectId;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EmployeeAbsenceFilters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmployeeAbsenceFilters.js","sourceRoot":"","sources":["../../src/EmployeeAbsenceFilters.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type { EmployeeAbsence } from './EmployeeAbsence';
2
+ export type EmployeeAbsenceInput = Omit<EmployeeAbsence, '_id' | 'company' | 'project'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EmployeeAbsenceInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmployeeAbsenceInput.js","sourceRoot":"","sources":["../../src/EmployeeAbsenceInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export interface HistoryChange {
2
+ /**
3
+ * path of the changed field, nested objects are joined with a dot
4
+ */
5
+ field: string;
6
+ /**
7
+ * human readable name of the field when the snapshot data knows it, e.g. the question of a structure
8
+ */
9
+ label?: string;
10
+ from: unknown;
11
+ to: unknown;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HistoryChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryChange.js","sourceRoot":"","sources":["../../src/HistoryChange.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { ObjectId } from "mongodb";
2
+ /**
3
+ * marks the newest history entry a user has seen for one scope (e.g. the participants of a single list).
4
+ * the number of unread entries is derived from this marker instead of being stored, so it can not go stale.
5
+ */
6
+ export interface HistorySeen {
7
+ user: string;
8
+ company: string;
9
+ project?: string;
10
+ model: string;
11
+ /** identifies the watched subset of a model, e.g. the id of a list. */
12
+ scope: string;
13
+ lastSeenId: ObjectId;
14
+ seenAt: Date;
15
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HistorySeen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistorySeen.js","sourceRoot":"","sources":["../../src/HistorySeen.ts"],"names":[],"mappings":""}
package/lib/esm/List.d.ts CHANGED
@@ -30,6 +30,11 @@ export interface List {
30
30
  state: 'open' | 'closed' | 'waiting';
31
31
  agreements: Agreement[];
32
32
  categories?: ListCategory[];
33
+ /**
34
+ * Shift plan linked to this list for planning its participants; the referenced
35
+ * plan must belong to the same company and project.
36
+ */
37
+ shiftPlan?: ObjectId;
33
38
  content?: ListContent;
34
39
  emails?: EmailsContent[];
35
40
  }
@@ -1,11 +1,17 @@
1
1
  import { ObjectId } from "mongodb";
2
2
  import { Price } from "./Price";
3
+ import { PaymentProvider } from "./PaymentProvider";
3
4
  export interface ListCategory {
4
5
  _id: ObjectId;
5
6
  id: string;
6
7
  name: string;
7
8
  description?: string;
8
9
  externalId?: string;
10
+ /**
11
+ * request-only flag: creates the product at the given payment provider and stores
12
+ * its id as externalId. never persisted.
13
+ */
14
+ createExternalProduct?: PaymentProvider['type'];
9
15
  amount?: number;
10
16
  disabled?: boolean;
11
17
  price?: Price;
@@ -0,0 +1,12 @@
1
+ import { StructureMatchState } from "./StructureMatchState";
2
+ /**
3
+ * How well a list participant matches a shift's structure conditions, resolved by the planning
4
+ * query so the candidate list can be ordered across all pages rather than just the loaded one.
5
+ * The state reports the hard constraints; the score grades the preferences.
6
+ */
7
+ export interface ListParticipantMatch {
8
+ state: StructureMatchState;
9
+ score: number;
10
+ matched: number;
11
+ total: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ListParticipantMatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListParticipantMatch.js","sourceRoot":"","sources":["../../src/ListParticipantMatch.ts"],"names":[],"mappings":""}
@@ -2,8 +2,11 @@ import { ListParticipants } from "./ListParticipants";
2
2
  import { Payment } from "./Payment";
3
3
  import { BasicData } from "./BasicData";
4
4
  import { CustomerMinimal } from "./CustomerMinimal";
5
+ import { WithStructures } from "./WithStructures";
6
+ import { ListParticipantMatch } from "./ListParticipantMatch";
5
7
  export type ListParticipantWithCustomerAndPayment = BasicData<ListParticipants> & {
6
- user: CustomerMinimal;
8
+ user: CustomerMinimal & WithStructures;
7
9
  } & {
8
10
  payment?: Pick<BasicData<Payment>, '_id' | 'state' | 'items' | 'provider' | 'currency' | 'amount'>;
11
+ match?: ListParticipantMatch;
9
12
  };
@@ -0,0 +1,21 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { WorkArea } from './WorkArea';
3
+ import type { ShiftAssignmentBreak } from './ShiftAssignmentBreak';
4
+ export interface MemberShift {
5
+ _id: ObjectId;
6
+ day: string;
7
+ title: string;
8
+ start: string;
9
+ end: string;
10
+ plan: {
11
+ _id: ObjectId;
12
+ name: string;
13
+ timeZone: string;
14
+ };
15
+ list?: {
16
+ _id: ObjectId;
17
+ name: string;
18
+ };
19
+ area: Pick<WorkArea, '_id' | 'name' | 'description' | 'location' | 'address'>;
20
+ breaks: ShiftAssignmentBreak[];
21
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MemberShift.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MemberShift.js","sourceRoot":"","sources":["../../src/MemberShift.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { ShiftPlanningFilters } from './ShiftPlanningFilters';
3
+ export interface MemberShiftFilters extends Omit<ShiftPlanningFilters, 'area'> {
4
+ list?: ObjectId;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MemberShiftFilters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MemberShiftFilters.js","sourceRoot":"","sources":["../../src/MemberShiftFilters.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export interface PaymentProviderProduct {
2
+ id: string;
3
+ name: string;
4
+ description?: string;
5
+ /**
6
+ * false if the product is archived at the provider
7
+ */
8
+ active: boolean;
9
+ /**
10
+ * major units, like the prices stored in studio. missing if the product has no (flat) default price
11
+ */
12
+ price?: {
13
+ amount: number;
14
+ currency: string;
15
+ };
16
+ /**
17
+ * link to the product in the provider's dashboard
18
+ */
19
+ url?: string;
20
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PaymentProviderProduct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentProviderProduct.js","sourceRoot":"","sources":["../../src/PaymentProviderProduct.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ /**
3
+ * The entity a planning query resolves its requirements for. `shift` and `workArea` score one
4
+ * condition set; `day` and `plan` cover every shift in that scope.
5
+ */
6
+ export interface PlanningScope {
7
+ level: 'shift' | 'workArea' | 'day' | 'plan';
8
+ /** shift level only; absent means the work area's conditions are used. */
9
+ shift?: ObjectId;
10
+ workArea?: ObjectId;
11
+ day?: ObjectId;
12
+ plan?: ObjectId;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanningScope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanningScope.js","sourceRoot":"","sources":["../../src/PlanningScope.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Narrows a planning candidate pool by the plan's existing assignments: `all` keeps the whole list,
3
+ * `assigned` keeps people already holding a place, `unassigned` keeps people holding none.
4
+ */
5
+ export type PlanningShiftMembership = 'all' | 'assigned' | 'unassigned';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PlanningShiftMembership.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanningShiftMembership.js","sourceRoot":"","sources":["../../src/PlanningShiftMembership.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { ShiftAssignment } from './ShiftAssignment';
3
+ import type { StructureCondition } from './StructureCondition';
4
+ export interface Shift {
5
+ _id?: ObjectId;
6
+ company: string;
7
+ project: string;
8
+ list?: ObjectId;
9
+ plan: ObjectId;
10
+ day: ObjectId;
11
+ area: ObjectId;
12
+ title: string;
13
+ start: string;
14
+ end: string;
15
+ structures?: StructureCondition[];
16
+ requiredPeople?: number;
17
+ matchingPeople?: number;
18
+ assignments: ShiftAssignment[];
19
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Shift.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shift.js","sourceRoot":"","sources":["../../src/Shift.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { ShiftAssignmentBreak } from './ShiftAssignmentBreak';
3
+ export interface ShiftAssignment {
4
+ participant: ObjectId;
5
+ customer: ObjectId;
6
+ breaks: ShiftAssignmentBreak[];
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftAssignment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftAssignment.js","sourceRoot":"","sources":["../../src/ShiftAssignment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface ShiftAssignmentBreak {
2
+ start: string;
3
+ end: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftAssignmentBreak.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftAssignmentBreak.js","sourceRoot":"","sources":["../../src/ShiftAssignmentBreak.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { ShiftAssignmentBreak } from './ShiftAssignmentBreak';
3
+ export interface ShiftAssignmentInput {
4
+ participant: ObjectId;
5
+ breaks?: ShiftAssignmentBreak[];
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftAssignmentInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftAssignmentInput.js","sourceRoot":"","sources":["../../src/ShiftAssignmentInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ShiftAssignmentInput } from './ShiftAssignmentInput';
2
+ export interface ShiftAssignmentsInput {
3
+ assignments: ShiftAssignmentInput[];
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftAssignmentsInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftAssignmentsInput.js","sourceRoot":"","sources":["../../src/ShiftAssignmentsInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ /** Whether the linked employee list can staff one shift, respecting the plan's rules. */
3
+ export interface ShiftCoverage {
4
+ shift: ObjectId;
5
+ title: string;
6
+ start: string;
7
+ end: string;
8
+ requiredPeople: number;
9
+ matchingPeople: number;
10
+ /** People assigned after the coverage allocation, including existing assignments. */
11
+ assigned: number;
12
+ /** Matching people after the read-only allocation; omitted by older servers and staffing coverage. */
13
+ matching?: number;
14
+ fillable: boolean;
15
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftCoverage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftCoverage.js","sourceRoot":"","sources":["../../src/ShiftCoverage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { ShiftInput } from './ShiftInput';
2
+ import type { ShiftAssignmentInput } from './ShiftAssignmentInput';
3
+ export interface ShiftCreateInput extends ShiftInput {
4
+ assignments?: ShiftAssignmentInput[];
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftCreateInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftCreateInput.js","sourceRoot":"","sources":["../../src/ShiftCreateInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { StructureCondition } from './StructureCondition';
3
+ export interface ShiftInput {
4
+ day: ObjectId;
5
+ area: ObjectId;
6
+ title: string;
7
+ start: string;
8
+ end: string;
9
+ structures?: StructureCondition[];
10
+ requiredPeople?: number;
11
+ matchingPeople?: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftInput.js","sourceRoot":"","sources":["../../src/ShiftInput.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { CustomerMinimal } from './CustomerMinimal';
3
+ import type { WithStructures } from './WithStructures';
4
+ export interface ShiftParticipant extends WithStructures {
5
+ participant: ObjectId;
6
+ customer: ObjectId;
7
+ name: string;
8
+ email: string;
9
+ /**
10
+ * The assigned customer, carrying the customer's own structure answers and definitions
11
+ * so a shift's conditions can be evaluated client-side.
12
+ */
13
+ user?: CustomerMinimal & WithStructures;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftParticipant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftParticipant.js","sourceRoot":"","sources":["../../src/ShiftParticipant.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ import type { ShiftPlanningPolicyOverrides } from './ShiftPlanningPolicyOverrides';
3
+ import type { ShiftPlanWorkArea } from './ShiftPlanWorkArea';
4
+ import type { ShiftPlanWorkHours } from './ShiftPlanWorkHours';
5
+ import type { ListParticipants } from './ListParticipants';
6
+ export interface ShiftPlan {
7
+ _id?: ObjectId;
8
+ company: string;
9
+ project: string;
10
+ list?: ObjectId;
11
+ name: string;
12
+ timeZone: string;
13
+ settingsOverrides: ShiftPlanningPolicyOverrides;
14
+ /** One entry per work area used by the plan; binds employee-list categories to that area's shifts. */
15
+ workAreaCategories?: ShiftPlanWorkArea[];
16
+ /** Participant state the selection filter defaults to; null means no default. */
17
+ defaultParticipantState?: ListParticipants['state'] | null;
18
+ /** Visible scheduling window for each day; absent means the full day. */
19
+ workHours?: ShiftPlanWorkHours;
20
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShiftPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShiftPlan.js","sourceRoot":"","sources":["../../src/ShiftPlan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { ObjectId } from 'mongodb';
2
+ /** A work area placed on a plan day; its shifts are scheduled in the resulting column. */
3
+ export interface ShiftPlanArea {
4
+ area: ObjectId;
5
+ }