@oneclick.dev/cms-core-modules 0.0.114 → 0.0.116

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 (87) hide show
  1. package/dist/{ContentEditor-MctMvN7D.js → ContentEditor-CsbOFg3a.js} +52 -52
  2. package/dist/{ContentEditor-C5yNNLeV.mjs → ContentEditor-Df5uWpVC.mjs} +10337 -8677
  3. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-gozJKXvM.js +1 -0
  4. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs +77 -0
  5. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BHeMJ6nr.mjs +1476 -0
  6. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-C2zwt5UF.js +1 -0
  7. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BYSeUW_V.js +925 -0
  8. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs +5021 -0
  9. package/dist/Overview-CBahJviK.js +1 -0
  10. package/dist/Overview-CVQ1pkuD.mjs +527 -0
  11. package/dist/TableView-Csv5Lycy.mjs +6234 -0
  12. package/dist/TableView-Cwal0BPW.js +4 -0
  13. package/dist/agenda-BSdlrfxv.mjs +1253 -0
  14. package/dist/agenda-Bev1mO7E.js +1 -0
  15. package/dist/availability-ClBGVgE9.js +1 -0
  16. package/dist/availability-D8JdA4rP.mjs +274 -0
  17. package/dist/booking-data-Px7XCIfU.mjs +1024 -0
  18. package/dist/booking-data-aMS1p_3g.js +1 -0
  19. package/dist/cms-core-modules.css +1 -1
  20. package/dist/exceptions-CqityDo9.mjs +651 -0
  21. package/dist/exceptions-DXqc0Nza.js +1 -0
  22. package/dist/index-CM4eaK5T.mjs +1245 -0
  23. package/dist/index-DliTZzwI.js +35 -0
  24. package/dist/index.cjs.js +1 -1
  25. package/dist/index.mjs +12 -11
  26. package/dist/orders-1swJVKw2.js +1 -0
  27. package/dist/orders-D41GbzIa.mjs +624 -0
  28. package/dist/payment-BJHgpaeT.js +1 -0
  29. package/dist/payment-D5j-68Ig.mjs +1278 -0
  30. package/dist/refunds-D9nTeD2d.mjs +436 -0
  31. package/dist/refunds-oVB2Opib.js +1 -0
  32. package/dist/resources-8WouFvJe.js +1 -0
  33. package/dist/resources-B-D5MUhV.mjs +975 -0
  34. package/dist/server-handlers.cjs.js +1 -1
  35. package/dist/server-handlers.mjs +626 -515
  36. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +146 -5
  37. package/dist/src/appointments/components/edit/EventDialog/CancelRefundReservationDialog.vue.d.ts +33 -0
  38. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +26 -8
  39. package/dist/src/appointments/components/edit/EventDialog/RefundDetailsDisplay.vue.d.ts +8 -0
  40. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +91 -5
  41. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +20 -3
  42. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +5 -0
  43. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +20 -2
  44. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +240 -0
  45. package/dist/src/appointments/composables/useAgendaMetadataSchema.d.ts +37 -0
  46. package/dist/src/appointments/pages/edit/orders.vue.d.ts +225 -0
  47. package/dist/src/appointments/pages/edit/refunds.vue.d.ts +2 -0
  48. package/dist/src/appointments/server.d.ts +2 -0
  49. package/dist/src/appointments/types.d.ts +6 -0
  50. package/dist/src/appointments/utils/printReservation.d.ts +65 -3
  51. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.d.ts +36 -0
  52. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.vue.d.ts +95 -0
  53. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableCell.d.ts +13 -0
  54. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableHeader.d.ts +6 -0
  55. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableRow.d.ts +6 -0
  56. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/index.d.ts +4 -0
  57. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TableMenu.vue.d.ts +13 -0
  58. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +14 -0
  59. package/package.json +2 -2
  60. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
  61. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
  62. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +0 -1
  63. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +0 -1263
  64. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
  65. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
  66. package/dist/Overview-98nkJUWN.mjs +0 -481
  67. package/dist/Overview-Dl8cMlsr.js +0 -1
  68. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
  69. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
  70. package/dist/TableView-CVfkyj1k.js +0 -4
  71. package/dist/TableView-zDx0IegJ.mjs +0 -6096
  72. package/dist/agenda-BaJu3-1c.js +0 -1
  73. package/dist/agenda-BwVY_8oM.mjs +0 -1165
  74. package/dist/availability-CMrRa5y2.mjs +0 -269
  75. package/dist/availability-Cf2YfMwM.js +0 -1
  76. package/dist/booking-data-DgJd0BcM.mjs +0 -889
  77. package/dist/booking-data-Di5GmH_8.js +0 -1
  78. package/dist/exceptions-B6P9UiCj.js +0 -1
  79. package/dist/exceptions-De9-FvdP.mjs +0 -646
  80. package/dist/index-DL6orwdK.js +0 -35
  81. package/dist/index-hH3e-IYz.mjs +0 -1187
  82. package/dist/orders-C65SlpJy.mjs +0 -618
  83. package/dist/orders-XVzWAgG1.js +0 -1
  84. package/dist/payment-C3ohkehF.mjs +0 -1080
  85. package/dist/payment-Dfr-Ro-a.js +0 -1
  86. package/dist/resources-CxeFd57z.js +0 -1
  87. package/dist/resources-DwYxn2Vi.mjs +0 -811
@@ -1,20 +1,44 @@
1
1
  interface Order {
2
2
  id: string;
3
3
  res_id?: string;
4
+ resourceId?: string;
4
5
  customerInfo: {
5
6
  firstName: string;
6
7
  lastName: string;
7
8
  email: string;
8
9
  phone: string;
9
10
  };
11
+ amountDue?: number;
12
+ amountPaid?: number;
10
13
  startTime: string;
11
14
  endTime: string;
12
15
  spots: number;
13
16
  status: string;
17
+ reservationStatus?: string;
18
+ subtotal?: number;
19
+ total?: number;
20
+ discount?: number;
21
+ createdAt?: string;
22
+ date?: string;
23
+ pricingOptionId?: string;
24
+ pricingOption?: any;
25
+ resourceName?: string;
26
+ resourceColor?: string;
27
+ metadata?: Record<string, any>;
28
+ reservationMetadata?: Record<string, any>;
29
+ refundStatus?: string;
30
+ refundedAt?: string;
31
+ refundedAmount?: number;
32
+ refunds?: any[];
14
33
  reservationPrice?: number;
34
+ reservationBasePrice?: number;
35
+ reservationAddOnsPrice?: number;
36
+ adjustments?: any[];
37
+ reservationAdjustments?: any[];
15
38
  }
16
39
  type __VLS_Props = {
17
40
  agendaData: any;
41
+ resources?: any[];
18
42
  orders: Order[];
19
43
  filteredOrders: Order[];
20
44
  isLoading: boolean;
@@ -31,10 +55,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
31
55
  reservationDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
32
56
  agendaData: any;
33
57
  showOrderLink?: boolean;
58
+ resources?: any[];
34
59
  }> & Readonly<{
35
60
  onConfirmed?: (() => any) | undefined;
36
61
  onCancelled?: (() => any) | undefined;
37
62
  onRejected?: (() => any) | undefined;
63
+ onTransferred?: (() => any) | undefined;
38
64
  onOpenOrder?: ((orderId: string) => any) | undefined;
39
65
  }>, {
40
66
  openDialog: (order: any) => void;
@@ -42,8 +68,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
42
68
  confirmed: () => any;
43
69
  cancelled: () => any;
44
70
  rejected: () => any;
71
+ transferred: () => any;
45
72
  openOrder: (orderId: string) => any;
46
73
  }, import('vue').PublicProps, {
74
+ resources: any[];
47
75
  showOrderLink: boolean;
48
76
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
49
77
  cancelReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
@@ -64,6 +92,63 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
64
92
  }>, {
65
93
  openDialog: (input: any) => void;
66
94
  }, {}, {}, {}, {}> | null;
95
+ cancelRefundReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
96
+ isProcessing?: boolean;
97
+ hasRefundFlow?: boolean;
98
+ showRefundAmount?: boolean;
99
+ customFields?: any[];
100
+ }> & Readonly<{
101
+ onConfirm?: ((payload: {
102
+ amount?: number;
103
+ reason: string;
104
+ fields: Record<string, any>;
105
+ fieldDefinitions: any[];
106
+ skipMail: boolean;
107
+ email: string;
108
+ subject: string;
109
+ body: string;
110
+ }) => any) | undefined;
111
+ }>, {
112
+ openDialog: (input: any) => void;
113
+ closeDialog: () => void;
114
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
115
+ confirm: (payload: {
116
+ amount?: number;
117
+ reason: string;
118
+ fields: Record<string, any>;
119
+ fieldDefinitions: any[];
120
+ skipMail: boolean;
121
+ email: string;
122
+ subject: string;
123
+ body: string;
124
+ }) => any;
125
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
126
+ P: {};
127
+ B: {};
128
+ D: {};
129
+ C: {};
130
+ M: {};
131
+ Defaults: {};
132
+ }, Readonly<{
133
+ isProcessing?: boolean;
134
+ hasRefundFlow?: boolean;
135
+ showRefundAmount?: boolean;
136
+ customFields?: any[];
137
+ }> & Readonly<{
138
+ onConfirm?: ((payload: {
139
+ amount?: number;
140
+ reason: string;
141
+ fields: Record<string, any>;
142
+ fieldDefinitions: any[];
143
+ skipMail: boolean;
144
+ email: string;
145
+ subject: string;
146
+ body: string;
147
+ }) => any) | undefined;
148
+ }>, {
149
+ openDialog: (input: any) => void;
150
+ closeDialog: () => void;
151
+ }, {}, {}, {}, {}> | null;
67
152
  approveReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
68
153
  onConfirm?: ((...args: any[]) => any) | undefined;
69
154
  }>, {
@@ -100,17 +185,42 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
100
185
  }>, {
101
186
  openDialog: (input: any) => void;
102
187
  }, {}, {}, {}, {}> | null;
103
- transferReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
104
- openDialog: () => void;
105
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
188
+ transferReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
189
+ agendaData?: any;
190
+ }> & Readonly<{
191
+ onTransferred?: ((payload: {
192
+ orderId: string;
193
+ reservationId: string;
194
+ reservation: any;
195
+ order: any;
196
+ }) => any) | undefined;
197
+ }>, {
198
+ openDialog: (order: any) => void;
199
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
200
+ transferred: (payload: {
201
+ orderId: string;
202
+ reservationId: string;
203
+ reservation: any;
204
+ order: any;
205
+ }) => any;
206
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
106
207
  P: {};
107
208
  B: {};
108
209
  D: {};
109
210
  C: {};
110
211
  M: {};
111
212
  Defaults: {};
112
- }, Readonly<{}> & Readonly<{}>, {
113
- openDialog: () => void;
213
+ }, Readonly<{
214
+ agendaData?: any;
215
+ }> & Readonly<{
216
+ onTransferred?: ((payload: {
217
+ orderId: string;
218
+ reservationId: string;
219
+ reservation: any;
220
+ order: any;
221
+ }) => any) | undefined;
222
+ }>, {
223
+ openDialog: (order: any) => void;
114
224
  }, {}, {}, {}, {}> | null;
115
225
  }, any, import('vue').ComponentProvideOptions, {
116
226
  P: {};
@@ -122,15 +232,46 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
122
232
  }, Readonly<{
123
233
  agendaData: any;
124
234
  showOrderLink?: boolean;
235
+ resources?: any[];
125
236
  }> & Readonly<{
126
237
  onConfirmed?: (() => any) | undefined;
127
238
  onCancelled?: (() => any) | undefined;
128
239
  onRejected?: (() => any) | undefined;
240
+ onTransferred?: (() => any) | undefined;
129
241
  onOpenOrder?: ((orderId: string) => any) | undefined;
130
242
  }>, {
131
243
  openDialog: (order: any) => void;
132
244
  }, {}, {}, {}, {
245
+ resources: any[];
133
246
  showOrderLink: boolean;
134
247
  }> | null;
248
+ orderDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
249
+ agendaData: any;
250
+ resources?: any[];
251
+ }> & Readonly<{
252
+ onOpenReservation?: ((reservation: import('./OrderDetailDialog.vue').ReservationLine) => any) | undefined;
253
+ }>, {
254
+ openDialog: (order: import('./OrderDetailDialog.vue').OrderGroup) => void;
255
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
256
+ openReservation: (reservation: import('./OrderDetailDialog.vue').ReservationLine) => any;
257
+ }, import('vue').PublicProps, {
258
+ resources: any[];
259
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
260
+ P: {};
261
+ B: {};
262
+ D: {};
263
+ C: {};
264
+ M: {};
265
+ Defaults: {};
266
+ }, Readonly<{
267
+ agendaData: any;
268
+ resources?: any[];
269
+ }> & Readonly<{
270
+ onOpenReservation?: ((reservation: import('./OrderDetailDialog.vue').ReservationLine) => any) | undefined;
271
+ }>, {
272
+ openDialog: (order: import('./OrderDetailDialog.vue').OrderGroup) => void;
273
+ }, {}, {}, {}, {
274
+ resources: any[];
275
+ }> | null;
135
276
  }, HTMLDivElement>;
136
277
  export default _default;
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ isProcessing?: boolean;
3
+ hasRefundFlow?: boolean;
4
+ showRefundAmount?: boolean;
5
+ customFields?: any[];
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
+ openDialog: (input: any) => void;
9
+ closeDialog: () => void;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ confirm: (payload: {
12
+ amount?: number;
13
+ reason: string;
14
+ fields: Record<string, any>;
15
+ fieldDefinitions: any[];
16
+ skipMail: boolean;
17
+ email: string;
18
+ subject: string;
19
+ body: string;
20
+ }) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onConfirm?: ((payload: {
23
+ amount?: number;
24
+ reason: string;
25
+ fields: Record<string, any>;
26
+ fieldDefinitions: any[];
27
+ skipMail: boolean;
28
+ email: string;
29
+ subject: string;
30
+ body: string;
31
+ }) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ export default _default;
@@ -1,9 +1,9 @@
1
- interface AdjustmentLine {
1
+ export interface AdjustmentLine {
2
2
  label?: string;
3
3
  type?: string;
4
4
  value: number;
5
5
  }
6
- interface ReservationLine {
6
+ export interface ReservationLine {
7
7
  id: string;
8
8
  res_id?: string;
9
9
  customerInfo?: {
@@ -25,13 +25,26 @@ interface ReservationLine {
25
25
  amountPaid?: number;
26
26
  amountDue?: number;
27
27
  reservationPrice?: number;
28
+ reservationBasePrice?: number;
29
+ reservationAddOnsPrice?: number;
30
+ reservationAdjustments?: AdjustmentLine[];
28
31
  pricingOption?: any;
32
+ resourceId?: string;
33
+ resource?: {
34
+ id?: string;
35
+ name?: string;
36
+ color?: string;
37
+ };
29
38
  resourceName?: string;
30
39
  resourceColor?: string;
31
40
  metadata?: Record<string, any>;
32
41
  reservationMetadata?: Record<string, any>;
42
+ refundStatus?: string;
43
+ refundedAt?: string;
44
+ refundedAmount?: number;
45
+ refunds?: any[];
33
46
  }
34
- interface OrderGroup {
47
+ export interface OrderGroup {
35
48
  id: string;
36
49
  customerInfo?: ReservationLine['customerInfo'];
37
50
  status?: string;
@@ -42,14 +55,19 @@ interface OrderGroup {
42
55
  totalPrice: number;
43
56
  totalSpots: number;
44
57
  }
45
- type __VLS_Props = {
58
+ declare const _default: import('vue').DefineComponent<{
46
59
  agendaData: any;
47
- };
48
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
60
+ resources?: any[];
61
+ }, {
49
62
  openDialog: (order: OrderGroup) => void;
50
63
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
51
64
  openReservation: (reservation: ReservationLine) => any;
52
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
65
+ }, string, import('vue').PublicProps, Readonly<{
66
+ agendaData: any;
67
+ resources?: any[];
68
+ }> & Readonly<{
53
69
  onOpenReservation?: ((reservation: ReservationLine) => any) | undefined;
54
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
70
+ }>, {
71
+ resources: any[];
72
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
73
  export default _default;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ refunds?: any[];
3
+ compact?: boolean;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ compact: boolean;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  agendaData: any;
3
3
  showOrderLink?: boolean;
4
+ resources?: any[];
4
5
  };
5
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
6
7
  openDialog: (order: any) => void;
@@ -8,13 +9,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
9
  confirmed: () => any;
9
10
  cancelled: () => any;
10
11
  rejected: () => any;
12
+ transferred: () => any;
11
13
  openOrder: (orderId: string) => any;
12
14
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
15
  onConfirmed?: (() => any) | undefined;
14
16
  onCancelled?: (() => any) | undefined;
15
17
  onRejected?: (() => any) | undefined;
18
+ onTransferred?: (() => any) | undefined;
16
19
  onOpenOrder?: ((orderId: string) => any) | undefined;
17
20
  }>, {
21
+ resources: any[];
18
22
  showOrderLink: boolean;
19
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
24
  cancelReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
@@ -35,6 +39,63 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
35
39
  }>, {
36
40
  openDialog: (input: any) => void;
37
41
  }, {}, {}, {}, {}> | null;
42
+ cancelRefundReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
43
+ isProcessing?: boolean;
44
+ hasRefundFlow?: boolean;
45
+ showRefundAmount?: boolean;
46
+ customFields?: any[];
47
+ }> & Readonly<{
48
+ onConfirm?: ((payload: {
49
+ amount?: number;
50
+ reason: string;
51
+ fields: Record<string, any>;
52
+ fieldDefinitions: any[];
53
+ skipMail: boolean;
54
+ email: string;
55
+ subject: string;
56
+ body: string;
57
+ }) => any) | undefined;
58
+ }>, {
59
+ openDialog: (input: any) => void;
60
+ closeDialog: () => void;
61
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
62
+ confirm: (payload: {
63
+ amount?: number;
64
+ reason: string;
65
+ fields: Record<string, any>;
66
+ fieldDefinitions: any[];
67
+ skipMail: boolean;
68
+ email: string;
69
+ subject: string;
70
+ body: string;
71
+ }) => any;
72
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
73
+ P: {};
74
+ B: {};
75
+ D: {};
76
+ C: {};
77
+ M: {};
78
+ Defaults: {};
79
+ }, Readonly<{
80
+ isProcessing?: boolean;
81
+ hasRefundFlow?: boolean;
82
+ showRefundAmount?: boolean;
83
+ customFields?: any[];
84
+ }> & Readonly<{
85
+ onConfirm?: ((payload: {
86
+ amount?: number;
87
+ reason: string;
88
+ fields: Record<string, any>;
89
+ fieldDefinitions: any[];
90
+ skipMail: boolean;
91
+ email: string;
92
+ subject: string;
93
+ body: string;
94
+ }) => any) | undefined;
95
+ }>, {
96
+ openDialog: (input: any) => void;
97
+ closeDialog: () => void;
98
+ }, {}, {}, {}, {}> | null;
38
99
  approveReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
39
100
  onConfirm?: ((...args: any[]) => any) | undefined;
40
101
  }>, {
@@ -71,17 +132,42 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
71
132
  }>, {
72
133
  openDialog: (input: any) => void;
73
134
  }, {}, {}, {}, {}> | null;
74
- transferReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
75
- openDialog: () => void;
76
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
135
+ transferReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
136
+ agendaData?: any;
137
+ }> & Readonly<{
138
+ onTransferred?: ((payload: {
139
+ orderId: string;
140
+ reservationId: string;
141
+ reservation: any;
142
+ order: any;
143
+ }) => any) | undefined;
144
+ }>, {
145
+ openDialog: (order: any) => void;
146
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
147
+ transferred: (payload: {
148
+ orderId: string;
149
+ reservationId: string;
150
+ reservation: any;
151
+ order: any;
152
+ }) => any;
153
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
77
154
  P: {};
78
155
  B: {};
79
156
  D: {};
80
157
  C: {};
81
158
  M: {};
82
159
  Defaults: {};
83
- }, Readonly<{}> & Readonly<{}>, {
84
- openDialog: () => void;
160
+ }, Readonly<{
161
+ agendaData?: any;
162
+ }> & Readonly<{
163
+ onTransferred?: ((payload: {
164
+ orderId: string;
165
+ reservationId: string;
166
+ reservation: any;
167
+ order: any;
168
+ }) => any) | undefined;
169
+ }>, {
170
+ openDialog: (order: any) => void;
85
171
  }, {}, {}, {}, {}> | null;
86
172
  }, any>;
87
173
  export default _default;
@@ -1,4 +1,21 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- openDialog: () => void;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ agendaData?: any;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
5
+ openDialog: (order: any) => void;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ transferred: (payload: {
8
+ orderId: string;
9
+ reservationId: string;
10
+ reservation: any;
11
+ order: any;
12
+ }) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onTransferred?: ((payload: {
15
+ orderId: string;
16
+ reservationId: string;
17
+ reservation: any;
18
+ order: any;
19
+ }) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
21
  export default _default;
@@ -15,9 +15,14 @@ interface QuickReservationPayload {
15
15
  startTimes: string[];
16
16
  spots: number;
17
17
  }
18
+ interface ReservationAvailability {
19
+ status: 'checking' | 'available' | 'unavailable' | 'error';
20
+ message: string;
21
+ }
18
22
  type __VLS_Props = {
19
23
  modelValue: ReservationForm[];
20
24
  agendaData?: any;
25
+ availabilityByReservation?: Record<string, ReservationAvailability>;
21
26
  };
22
27
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
28
  "update:modelValue": (value: ReservationForm[]) => any;
@@ -1,4 +1,7 @@
1
1
  import { MetadataFieldSchema } from '../../types';
2
+ type ResolvedMetadataField = MetadataFieldSchema & {
3
+ value: any;
4
+ };
2
5
  type __VLS_Props = {
3
6
  metadata?: Record<string, any>;
4
7
  schema?: MetadataFieldSchema[];
@@ -8,14 +11,29 @@ type __VLS_Props = {
8
11
  scope?: 'order' | 'reservation';
9
12
  /** Compact mode for list views (badges/highlights rendered inline) */
10
13
  compact?: boolean;
14
+ /** Enable click actions for metadata fields that have a configured flow */
15
+ enableActions?: boolean;
16
+ actionsDisabled?: boolean;
11
17
  };
12
18
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
13
19
  hasContent: globalThis.ComputedRef<boolean>;
14
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "run-action": (payload: {
22
+ field: ResolvedMetadataField;
23
+ value: any;
24
+ }) => any;
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ "onRun-action"?: ((payload: {
27
+ field: ResolvedMetadataField;
28
+ value: any;
29
+ }) => any) | undefined;
30
+ }>, {
15
31
  metadata: Record<string, any>;
16
32
  schema: MetadataFieldSchema[];
17
- displayFilter: string[];
18
33
  scope: "order" | "reservation";
19
34
  compact: boolean;
35
+ displayFilter: string[];
36
+ enableActions: boolean;
37
+ actionsDisabled: boolean;
20
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
39
  export default _default;