@vicacha-devs/strapi-plugin-bookings 0.0.0-stage → 1.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.
Files changed (82) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +23 -2
  3. package/dist/admin/App-BrB9n7EO.mjs +371 -0
  4. package/dist/admin/App-ZlqOsILc.js +371 -0
  5. package/dist/admin/SettingsPage-LR6F2vyx.js +410 -0
  6. package/dist/admin/SettingsPage-Xas3gvn4.mjs +410 -0
  7. package/dist/admin/ar-9_2mxMp2.js +339 -0
  8. package/dist/admin/ar-CrM4yxqb.mjs +339 -0
  9. package/dist/admin/de-D3NbAP6M.mjs +339 -0
  10. package/dist/admin/de-DBaO-D7Z.js +339 -0
  11. package/dist/admin/en-Cu-rn_xM.mjs +339 -0
  12. package/dist/admin/en-DAoI7qkk.js +339 -0
  13. package/dist/admin/es-DUqsu82s.js +339 -0
  14. package/dist/admin/es-Y0zfya4P.mjs +339 -0
  15. package/dist/admin/fr-BkLta_o8.js +339 -0
  16. package/dist/admin/fr-BrzKRqet.mjs +339 -0
  17. package/dist/admin/getTranslation-CZAJyMSt.mjs +5 -0
  18. package/dist/admin/getTranslation-Cd0_4UtW.js +4 -0
  19. package/dist/admin/id-BZz53ViW.mjs +339 -0
  20. package/dist/admin/id-ByxSagzq.js +339 -0
  21. package/dist/admin/index.js +1497 -0
  22. package/dist/admin/index.mjs +1492 -0
  23. package/dist/admin/pt-BSCDUkdd.js +339 -0
  24. package/dist/admin/pt-DUfISuZf.mjs +339 -0
  25. package/dist/admin/src/components/Initializer.d.ts +6 -0
  26. package/dist/admin/src/components/PluginIcon.d.ts +3 -0
  27. package/dist/admin/src/components/RRuleInput.d.ts +3 -0
  28. package/dist/admin/src/components/bookings/BookingSidePanel.d.ts +10 -0
  29. package/dist/admin/src/components/bookings/BookingsGridCanvas.d.ts +20 -0
  30. package/dist/admin/src/components/bookings/QuickCreateBookingModal.d.ts +11 -0
  31. package/dist/admin/src/index.d.ts +24 -0
  32. package/dist/admin/src/pages/App.d.ts +3 -0
  33. package/dist/admin/src/pages/CalendarPage.d.ts +3 -0
  34. package/dist/admin/src/pages/SettingsPage.d.ts +3 -0
  35. package/dist/admin/src/permissions.d.ts +29 -0
  36. package/dist/admin/src/pluginId.d.ts +1 -0
  37. package/dist/admin/src/translations/cmLabels.d.ts +1 -0
  38. package/dist/admin/src/translations/cmPlaceholders.d.ts +1 -0
  39. package/dist/admin/src/utils/getTranslation.d.ts +2 -0
  40. package/dist/admin/tr-_nhc9hk6.mjs +339 -0
  41. package/dist/admin/tr-r17l5F2K.js +339 -0
  42. package/dist/admin/ur-8edBd0Qo.mjs +339 -0
  43. package/dist/admin/ur-Dw_TAOZ3.js +339 -0
  44. package/dist/admin/zh-CeR0swEm.mjs +339 -0
  45. package/dist/admin/zh-D0z5sxxN.js +339 -0
  46. package/dist/server/index.js +3547 -0
  47. package/dist/server/index.mjs +3545 -0
  48. package/dist/server/src/bootstrap.d.ts +6 -0
  49. package/dist/server/src/config/index.d.ts +6 -0
  50. package/dist/server/src/content-types/booking/schema.json.d.ts +117 -0
  51. package/dist/server/src/content-types/index.d.ts +265 -0
  52. package/dist/server/src/content-types/resource/schema.json.d.ts +147 -0
  53. package/dist/server/src/controllers/admin.d.ts +30 -0
  54. package/dist/server/src/controllers/content-api.d.ts +32 -0
  55. package/dist/server/src/controllers/index.d.ts +28 -0
  56. package/dist/server/src/destroy.d.ts +5 -0
  57. package/dist/server/src/errors.d.ts +18 -0
  58. package/dist/server/src/index.d.ts +347 -0
  59. package/dist/server/src/register.d.ts +5 -0
  60. package/dist/server/src/routes/admin.d.ts +14 -0
  61. package/dist/server/src/routes/content-api.d.ts +9 -0
  62. package/dist/server/src/routes/index.d.ts +30 -0
  63. package/dist/server/src/services/availability.d.ts +8 -0
  64. package/dist/server/src/services/index.d.ts +12 -0
  65. package/dist/server/src/services/reservation.d.ts +6 -0
  66. package/dist/server/src/services/reservationHelpers.d.ts +41 -0
  67. package/dist/server/src/services/reservationHostCapacity.d.ts +16 -0
  68. package/dist/server/src/services/reservationMutations.d.ts +32 -0
  69. package/dist/server/src/services/reservationSources.d.ts +4 -0
  70. package/dist/server/src/services/reservationValidators.d.ts +27 -0
  71. package/dist/server/src/services/settings.d.ts +8 -0
  72. package/dist/server/src/types.d.ts +99 -0
  73. package/dist/shared/calendarSystems.d.ts +3 -0
  74. package/dist/shared/icalAndCsv.d.ts +16 -0
  75. package/dist/shared/index.d.ts +6 -0
  76. package/dist/shared/index.js +752 -0
  77. package/dist/shared/index.mjs +729 -0
  78. package/dist/shared/pluginId.d.ts +2 -0
  79. package/dist/shared/slotEngine.d.ts +19 -0
  80. package/dist/shared/slotTimezone.d.ts +45 -0
  81. package/dist/shared/types.d.ts +245 -0
  82. package/package.json +111 -3
@@ -0,0 +1,6 @@
1
+ import { Core } from '@strapi/strapi';
2
+ export declare function cleanupBootstrapState(strapi: Core.Strapi): void;
3
+ declare const _default: ({ strapi }: {
4
+ strapi: Core.Strapi;
5
+ }) => Promise<void>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { BookingsPluginConfig } from '../types';
2
+ declare const _default: {
3
+ default: BookingsPluginConfig;
4
+ validator(config: unknown): void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,117 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "bookings",
4
+ "info": {
5
+ "singularName": "booking",
6
+ "pluralName": "bookings",
7
+ "displayName": "Booking",
8
+ "description": "Reservation, appointment, or resource slot booking"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": true
16
+ },
17
+ "content-type-builder": {
18
+ "visible": true
19
+ }
20
+ },
21
+ "attributes": {
22
+ "bookingCode": {
23
+ "type": "string",
24
+ "required": true,
25
+ "unique": true,
26
+ "maxLength": 48
27
+ },
28
+ "title": {
29
+ "type": "string",
30
+ "maxLength": 200
31
+ },
32
+ "resource": {
33
+ "type": "relation",
34
+ "relation": "manyToOne",
35
+ "target": "plugin::bookings.resource",
36
+ "inversedBy": "bookings"
37
+ },
38
+ "customerName": {
39
+ "type": "string",
40
+ "required": true,
41
+ "maxLength": 120
42
+ },
43
+ "customerEmail": {
44
+ "type": "email",
45
+ "required": true
46
+ },
47
+ "customerPhone": {
48
+ "type": "string",
49
+ "maxLength": 40
50
+ },
51
+ "organization": {
52
+ "type": "string",
53
+ "maxLength": 160
54
+ },
55
+ "startDate": {
56
+ "type": "datetime",
57
+ "required": true
58
+ },
59
+ "endDate": {
60
+ "type": "datetime",
61
+ "required": true
62
+ },
63
+ "slotLabel": {
64
+ "type": "string",
65
+ "maxLength": 80
66
+ },
67
+ "timezone": {
68
+ "type": "string",
69
+ "default": "UTC",
70
+ "maxLength": 64
71
+ },
72
+ "partySize": {
73
+ "type": "integer",
74
+ "required": true,
75
+ "default": 1,
76
+ "min": 1
77
+ },
78
+ "status": {
79
+ "type": "enumeration",
80
+ "enum": ["pending", "confirmed", "completed", "cancelled", "no_show"],
81
+ "default": "pending",
82
+ "required": true
83
+ },
84
+ "preferredLanguage": {
85
+ "type": "string",
86
+ "maxLength": 16
87
+ },
88
+ "assignedHost": {
89
+ "type": "string",
90
+ "maxLength": 120
91
+ },
92
+ "notes": {
93
+ "type": "text",
94
+ "maxLength": 2000
95
+ },
96
+ "internalNotes": {
97
+ "type": "text",
98
+ "maxLength": 2000,
99
+ "private": true
100
+ },
101
+ "cancelTokenHash": {
102
+ "type": "string",
103
+ "maxLength": 128,
104
+ "private": true
105
+ },
106
+ "sourceCollection": {
107
+ "type": "string",
108
+ "default": "plugin::bookings.booking"
109
+ },
110
+ "metadata": {
111
+ "type": "json"
112
+ }
113
+ }
114
+ }
115
+ ;
116
+
117
+ export default _default;
@@ -0,0 +1,265 @@
1
+ declare const _default: {
2
+ resource: {
3
+ schema: {
4
+ kind: string;
5
+ collectionName: string;
6
+ info: {
7
+ singularName: string;
8
+ pluralName: string;
9
+ displayName: string;
10
+ description: string;
11
+ };
12
+ options: {
13
+ draftAndPublish: boolean;
14
+ };
15
+ pluginOptions: {
16
+ "content-manager": {
17
+ visible: boolean;
18
+ };
19
+ "content-type-builder": {
20
+ visible: boolean;
21
+ };
22
+ };
23
+ attributes: {
24
+ name: {
25
+ type: string;
26
+ required: boolean;
27
+ maxLength: number;
28
+ };
29
+ slug: {
30
+ type: string;
31
+ targetField: string;
32
+ required: boolean;
33
+ };
34
+ resourceType: {
35
+ type: string;
36
+ enum: string[];
37
+ default: string;
38
+ required: boolean;
39
+ };
40
+ description: {
41
+ type: string;
42
+ };
43
+ color: {
44
+ type: string;
45
+ default: string;
46
+ maxLength: number;
47
+ };
48
+ timezone: {
49
+ type: string;
50
+ default: string;
51
+ maxLength: number;
52
+ };
53
+ slotDurationMinutes: {
54
+ type: string;
55
+ default: number;
56
+ min: number;
57
+ max: number;
58
+ required: boolean;
59
+ };
60
+ bufferBeforeMinutes: {
61
+ type: string;
62
+ default: number;
63
+ min: number;
64
+ max: number;
65
+ };
66
+ bufferAfterMinutes: {
67
+ type: string;
68
+ default: number;
69
+ min: number;
70
+ max: number;
71
+ };
72
+ capacityPerSlot: {
73
+ type: string;
74
+ default: number;
75
+ min: number;
76
+ required: boolean;
77
+ };
78
+ maxPartySize: {
79
+ type: string;
80
+ default: number;
81
+ min: number;
82
+ };
83
+ minLeadTimeHours: {
84
+ type: string;
85
+ default: number;
86
+ min: number;
87
+ };
88
+ maxAdvanceDays: {
89
+ type: string;
90
+ default: number;
91
+ min: number;
92
+ };
93
+ requiresApproval: {
94
+ type: string;
95
+ default: boolean;
96
+ };
97
+ weeklySchedule: {
98
+ type: string;
99
+ };
100
+ seasonalSchedules: {
101
+ type: string;
102
+ };
103
+ holidayRules: {
104
+ type: string;
105
+ };
106
+ blackoutDates: {
107
+ type: string;
108
+ };
109
+ recurrenceRule: {
110
+ type: string;
111
+ };
112
+ supportedLanguages: {
113
+ type: string;
114
+ };
115
+ assignedHosts: {
116
+ type: string;
117
+ };
118
+ location: {
119
+ type: string;
120
+ maxLength: number;
121
+ };
122
+ price: {
123
+ type: string;
124
+ default: number;
125
+ min: number;
126
+ };
127
+ currency: {
128
+ type: string;
129
+ default: string;
130
+ maxLength: number;
131
+ };
132
+ isActive: {
133
+ type: string;
134
+ default: boolean;
135
+ };
136
+ metadata: {
137
+ type: string;
138
+ };
139
+ bookings: {
140
+ type: string;
141
+ relation: string;
142
+ target: string;
143
+ mappedBy: string;
144
+ };
145
+ };
146
+ };
147
+ };
148
+ booking: {
149
+ schema: {
150
+ kind: string;
151
+ collectionName: string;
152
+ info: {
153
+ singularName: string;
154
+ pluralName: string;
155
+ displayName: string;
156
+ description: string;
157
+ };
158
+ options: {
159
+ draftAndPublish: boolean;
160
+ };
161
+ pluginOptions: {
162
+ "content-manager": {
163
+ visible: boolean;
164
+ };
165
+ "content-type-builder": {
166
+ visible: boolean;
167
+ };
168
+ };
169
+ attributes: {
170
+ bookingCode: {
171
+ type: string;
172
+ required: boolean;
173
+ unique: boolean;
174
+ maxLength: number;
175
+ };
176
+ title: {
177
+ type: string;
178
+ maxLength: number;
179
+ };
180
+ resource: {
181
+ type: string;
182
+ relation: string;
183
+ target: string;
184
+ inversedBy: string;
185
+ };
186
+ customerName: {
187
+ type: string;
188
+ required: boolean;
189
+ maxLength: number;
190
+ };
191
+ customerEmail: {
192
+ type: string;
193
+ required: boolean;
194
+ };
195
+ customerPhone: {
196
+ type: string;
197
+ maxLength: number;
198
+ };
199
+ organization: {
200
+ type: string;
201
+ maxLength: number;
202
+ };
203
+ startDate: {
204
+ type: string;
205
+ required: boolean;
206
+ };
207
+ endDate: {
208
+ type: string;
209
+ required: boolean;
210
+ };
211
+ slotLabel: {
212
+ type: string;
213
+ maxLength: number;
214
+ };
215
+ timezone: {
216
+ type: string;
217
+ default: string;
218
+ maxLength: number;
219
+ };
220
+ partySize: {
221
+ type: string;
222
+ required: boolean;
223
+ default: number;
224
+ min: number;
225
+ };
226
+ status: {
227
+ type: string;
228
+ enum: string[];
229
+ default: string;
230
+ required: boolean;
231
+ };
232
+ preferredLanguage: {
233
+ type: string;
234
+ maxLength: number;
235
+ };
236
+ assignedHost: {
237
+ type: string;
238
+ maxLength: number;
239
+ };
240
+ notes: {
241
+ type: string;
242
+ maxLength: number;
243
+ };
244
+ internalNotes: {
245
+ type: string;
246
+ maxLength: number;
247
+ private: boolean;
248
+ };
249
+ cancelTokenHash: {
250
+ type: string;
251
+ maxLength: number;
252
+ private: boolean;
253
+ };
254
+ sourceCollection: {
255
+ type: string;
256
+ default: string;
257
+ };
258
+ metadata: {
259
+ type: string;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ };
265
+ export default _default;
@@ -0,0 +1,147 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "booking_resources",
4
+ "info": {
5
+ "singularName": "resource",
6
+ "pluralName": "resources",
7
+ "displayName": "Booking Resource",
8
+ "description": "Bookable service, appointment type, room, staff member, or equipment schedule"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": true
16
+ },
17
+ "content-type-builder": {
18
+ "visible": true
19
+ }
20
+ },
21
+ "attributes": {
22
+ "name": {
23
+ "type": "string",
24
+ "required": true,
25
+ "maxLength": 160
26
+ },
27
+ "slug": {
28
+ "type": "uid",
29
+ "targetField": "name",
30
+ "required": true
31
+ },
32
+ "resourceType": {
33
+ "type": "enumeration",
34
+ "enum": ["service", "appointment", "room", "staff", "equipment", "other"],
35
+ "default": "service",
36
+ "required": true
37
+ },
38
+ "description": {
39
+ "type": "text"
40
+ },
41
+ "color": {
42
+ "type": "string",
43
+ "default": "#0d9488",
44
+ "maxLength": 32
45
+ },
46
+ "timezone": {
47
+ "type": "string",
48
+ "default": "UTC",
49
+ "maxLength": 64
50
+ },
51
+ "slotDurationMinutes": {
52
+ "type": "integer",
53
+ "default": 60,
54
+ "min": 5,
55
+ "max": 1440,
56
+ "required": true
57
+ },
58
+ "bufferBeforeMinutes": {
59
+ "type": "integer",
60
+ "default": 0,
61
+ "min": 0,
62
+ "max": 720
63
+ },
64
+ "bufferAfterMinutes": {
65
+ "type": "integer",
66
+ "default": 0,
67
+ "min": 0,
68
+ "max": 720
69
+ },
70
+ "capacityPerSlot": {
71
+ "type": "integer",
72
+ "default": 1,
73
+ "min": 1,
74
+ "required": true
75
+ },
76
+ "maxPartySize": {
77
+ "type": "integer",
78
+ "default": 50,
79
+ "min": 1
80
+ },
81
+ "minLeadTimeHours": {
82
+ "type": "integer",
83
+ "default": 2,
84
+ "min": 0
85
+ },
86
+ "maxAdvanceDays": {
87
+ "type": "integer",
88
+ "default": 90,
89
+ "min": 1
90
+ },
91
+ "requiresApproval": {
92
+ "type": "boolean",
93
+ "default": false
94
+ },
95
+ "weeklySchedule": {
96
+ "type": "json"
97
+ },
98
+ "seasonalSchedules": {
99
+ "type": "json"
100
+ },
101
+ "holidayRules": {
102
+ "type": "json"
103
+ },
104
+ "blackoutDates": {
105
+ "type": "json"
106
+ },
107
+ "recurrenceRule": {
108
+ "type": "string"
109
+ },
110
+ "supportedLanguages": {
111
+ "type": "json"
112
+ },
113
+ "assignedHosts": {
114
+ "type": "json"
115
+ },
116
+ "location": {
117
+ "type": "string",
118
+ "maxLength": 240
119
+ },
120
+ "price": {
121
+ "type": "decimal",
122
+ "default": 0,
123
+ "min": 0
124
+ },
125
+ "currency": {
126
+ "type": "string",
127
+ "default": "USD",
128
+ "maxLength": 10
129
+ },
130
+ "isActive": {
131
+ "type": "boolean",
132
+ "default": true
133
+ },
134
+ "metadata": {
135
+ "type": "json"
136
+ },
137
+ "bookings": {
138
+ "type": "relation",
139
+ "relation": "oneToMany",
140
+ "target": "plugin::bookings.booking",
141
+ "mappedBy": "resource"
142
+ }
143
+ }
144
+ }
145
+ ;
146
+
147
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { Core } from '@strapi/strapi';
2
+ export interface AdminContext {
3
+ query: Record<string, string | undefined>;
4
+ params: Record<string, string | undefined>;
5
+ request: {
6
+ body?: Record<string, unknown>;
7
+ };
8
+ body: unknown;
9
+ status: number;
10
+ set(header: string, value: string): void;
11
+ badRequest(message: string): unknown;
12
+ notFound?(message: string): unknown;
13
+ forbidden?(message: string): unknown;
14
+ }
15
+ declare const _default: ({ strapi }: {
16
+ strapi: Core.Strapi;
17
+ }) => {
18
+ getSettings(ctx: AdminContext): Promise<void>;
19
+ updateSettings(ctx: AdminContext): Promise<unknown>;
20
+ discoverSchemas(ctx: AdminContext): Promise<void>;
21
+ listResources(ctx: AdminContext): Promise<void>;
22
+ saveResource(ctx: AdminContext): Promise<unknown>;
23
+ getCalendar(ctx: AdminContext): Promise<void>;
24
+ createBooking(ctx: AdminContext): Promise<unknown>;
25
+ updateBookingStatus(ctx: AdminContext): Promise<unknown>;
26
+ rescheduleBooking(ctx: AdminContext): Promise<unknown>;
27
+ exportCsv(ctx: AdminContext): Promise<void>;
28
+ exportICal(ctx: AdminContext): Promise<void>;
29
+ };
30
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { Core } from '@strapi/strapi';
2
+ import { AssignableHost, AvailableSlot, BookingRecord, BookingResource } from '../../../shared/types';
3
+ export interface ContentApiContext {
4
+ query: Record<string, string | undefined>;
5
+ params: Record<string, string | undefined>;
6
+ request: {
7
+ body?: Record<string, unknown>;
8
+ headers?: Record<string, string | undefined>;
9
+ };
10
+ body: unknown;
11
+ status: number;
12
+ set(header: string, value: string): void;
13
+ badRequest(message: string): unknown;
14
+ notFound?(message: string): unknown;
15
+ forbidden?(message: string): unknown;
16
+ }
17
+ export declare function sanitizePublicHost(host: AssignableHost): AssignableHost;
18
+ export declare function sanitizePublicResource(resource: BookingResource): Omit<BookingResource, "metadata">;
19
+ export declare function sanitizePublicSlot(slot: AvailableSlot): AvailableSlot;
20
+ export type PublicBookingResponse = Omit<BookingRecord, "internalNotes" | "sourceCollection" | "metadata">;
21
+ export declare function sanitizePublicBooking(booking: BookingRecord): PublicBookingResponse;
22
+ declare const _default: ({ strapi }: {
23
+ strapi: Core.Strapi;
24
+ }) => {
25
+ listPublicResources(ctx: ContentApiContext): Promise<void>;
26
+ getAvailableSlots(ctx: ContentApiContext): Promise<unknown>;
27
+ createReservation(ctx: ContentApiContext): Promise<unknown>;
28
+ rescheduleReservation(ctx: ContentApiContext): Promise<unknown>;
29
+ cancelReservation(ctx: ContentApiContext): Promise<unknown>;
30
+ getICalFeed(ctx: ContentApiContext): Promise<unknown>;
31
+ };
32
+ export default _default;
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ admin: ({ strapi }: {
3
+ strapi: import("@strapi/strapi").Core.Strapi;
4
+ }) => {
5
+ getSettings(ctx: import('./admin').AdminContext): Promise<void>;
6
+ updateSettings(ctx: import('./admin').AdminContext): Promise<unknown>;
7
+ discoverSchemas(ctx: import('./admin').AdminContext): Promise<void>;
8
+ listResources(ctx: import('./admin').AdminContext): Promise<void>;
9
+ saveResource(ctx: import('./admin').AdminContext): Promise<unknown>;
10
+ getCalendar(ctx: import('./admin').AdminContext): Promise<void>;
11
+ createBooking(ctx: import('./admin').AdminContext): Promise<unknown>;
12
+ updateBookingStatus(ctx: import('./admin').AdminContext): Promise<unknown>;
13
+ rescheduleBooking(ctx: import('./admin').AdminContext): Promise<unknown>;
14
+ exportCsv(ctx: import('./admin').AdminContext): Promise<void>;
15
+ exportICal(ctx: import('./admin').AdminContext): Promise<void>;
16
+ };
17
+ "content-api": ({ strapi }: {
18
+ strapi: import("@strapi/strapi").Core.Strapi;
19
+ }) => {
20
+ listPublicResources(ctx: import('./content-api').ContentApiContext): Promise<void>;
21
+ getAvailableSlots(ctx: import('./content-api').ContentApiContext): Promise<unknown>;
22
+ createReservation(ctx: import('./content-api').ContentApiContext): Promise<unknown>;
23
+ rescheduleReservation(ctx: import('./content-api').ContentApiContext): Promise<unknown>;
24
+ cancelReservation(ctx: import('./content-api').ContentApiContext): Promise<unknown>;
25
+ getICalFeed(ctx: import('./content-api').ContentApiContext): Promise<unknown>;
26
+ };
27
+ };
28
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const _default: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => void;
5
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { Core } from '@strapi/strapi';
2
+ export declare const UNSAFE_OBJECT_KEYS: Set<string>;
3
+ export declare function isSafeObjectKey(key: unknown): key is string;
4
+ export declare function sanitizePlainRecord(val: unknown, depth?: number): Record<string, unknown> | undefined;
5
+ export declare class BookingValidationError extends Error {
6
+ readonly statusCode = 400;
7
+ constructor(message: string);
8
+ }
9
+ export declare class BookingForbiddenError extends Error {
10
+ readonly statusCode = 403;
11
+ constructor(message: string);
12
+ }
13
+ export declare class BookingNotFoundError extends Error {
14
+ readonly statusCode = 404;
15
+ constructor(message: string);
16
+ }
17
+ export declare function withResourceLock<T>(strapi: Core.Strapi, lockKey: string, fn: () => Promise<T>): Promise<T>;
18
+ export declare function clearResourceLocks(strapi: Core.Strapi): void;