@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
@@ -0,0 +1,240 @@
1
+ interface Resource {
2
+ id: string;
3
+ name: string;
4
+ color?: string;
5
+ isActive?: boolean;
6
+ }
7
+ type __VLS_Props = {
8
+ agendaData: any;
9
+ activeDate: Date;
10
+ selectedResource?: string | null;
11
+ resources: Resource[];
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ resetSelectedResource: () => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onResetSelectedResource?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
+ reservationDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
19
+ agendaData: any;
20
+ showOrderLink?: boolean;
21
+ resources?: any[];
22
+ }> & Readonly<{
23
+ onConfirmed?: (() => any) | undefined;
24
+ onCancelled?: (() => any) | undefined;
25
+ onRejected?: (() => any) | undefined;
26
+ onTransferred?: (() => any) | undefined;
27
+ onOpenOrder?: ((orderId: string) => any) | undefined;
28
+ }>, {
29
+ openDialog: (order: any) => void;
30
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
+ confirmed: () => any;
32
+ cancelled: () => any;
33
+ rejected: () => any;
34
+ transferred: () => any;
35
+ openOrder: (orderId: string) => any;
36
+ }, import('vue').PublicProps, {
37
+ resources: any[];
38
+ showOrderLink: boolean;
39
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
40
+ cancelReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
41
+ onConfirm?: ((...args: any[]) => any) | undefined;
42
+ }>, {
43
+ openDialog: (input: any) => void;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ confirm: (...args: any[]) => void;
46
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, Readonly<{}> & Readonly<{
54
+ onConfirm?: ((...args: any[]) => any) | undefined;
55
+ }>, {
56
+ openDialog: (input: any) => void;
57
+ }, {}, {}, {}, {}> | null;
58
+ cancelRefundReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
59
+ isProcessing?: boolean;
60
+ hasRefundFlow?: boolean;
61
+ showRefundAmount?: boolean;
62
+ customFields?: any[];
63
+ }> & Readonly<{
64
+ onConfirm?: ((payload: {
65
+ amount?: number;
66
+ reason: string;
67
+ fields: Record<string, any>;
68
+ fieldDefinitions: any[];
69
+ skipMail: boolean;
70
+ email: string;
71
+ subject: string;
72
+ body: string;
73
+ }) => any) | undefined;
74
+ }>, {
75
+ openDialog: (input: any) => void;
76
+ closeDialog: () => void;
77
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
78
+ confirm: (payload: {
79
+ amount?: number;
80
+ reason: string;
81
+ fields: Record<string, any>;
82
+ fieldDefinitions: any[];
83
+ skipMail: boolean;
84
+ email: string;
85
+ subject: string;
86
+ body: string;
87
+ }) => any;
88
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
89
+ P: {};
90
+ B: {};
91
+ D: {};
92
+ C: {};
93
+ M: {};
94
+ Defaults: {};
95
+ }, 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
+ }, {}, {}, {}, {}> | null;
115
+ approveReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
116
+ onConfirm?: ((...args: any[]) => any) | undefined;
117
+ }>, {
118
+ openDialog: (input: any, type?: "approve" | "resend") => void;
119
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
120
+ confirm: (...args: any[]) => void;
121
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
122
+ P: {};
123
+ B: {};
124
+ D: {};
125
+ C: {};
126
+ M: {};
127
+ Defaults: {};
128
+ }, Readonly<{}> & Readonly<{
129
+ onConfirm?: ((...args: any[]) => any) | undefined;
130
+ }>, {
131
+ openDialog: (input: any, type?: "approve" | "resend") => void;
132
+ }, {}, {}, {}, {}> | null;
133
+ rejectReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
134
+ onConfirm?: ((...args: any[]) => any) | undefined;
135
+ }>, {
136
+ openDialog: (input: any) => void;
137
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
138
+ confirm: (...args: any[]) => void;
139
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
140
+ P: {};
141
+ B: {};
142
+ D: {};
143
+ C: {};
144
+ M: {};
145
+ Defaults: {};
146
+ }, Readonly<{}> & Readonly<{
147
+ onConfirm?: ((...args: any[]) => any) | undefined;
148
+ }>, {
149
+ openDialog: (input: any) => void;
150
+ }, {}, {}, {}, {}> | null;
151
+ transferReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
152
+ agendaData?: any;
153
+ }> & Readonly<{
154
+ onTransferred?: ((payload: {
155
+ orderId: string;
156
+ reservationId: string;
157
+ reservation: any;
158
+ order: any;
159
+ }) => any) | undefined;
160
+ }>, {
161
+ openDialog: (order: any) => void;
162
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
163
+ transferred: (payload: {
164
+ orderId: string;
165
+ reservationId: string;
166
+ reservation: any;
167
+ order: any;
168
+ }) => any;
169
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
170
+ P: {};
171
+ B: {};
172
+ D: {};
173
+ C: {};
174
+ M: {};
175
+ Defaults: {};
176
+ }, Readonly<{
177
+ agendaData?: any;
178
+ }> & Readonly<{
179
+ onTransferred?: ((payload: {
180
+ orderId: string;
181
+ reservationId: string;
182
+ reservation: any;
183
+ order: any;
184
+ }) => any) | undefined;
185
+ }>, {
186
+ openDialog: (order: any) => void;
187
+ }, {}, {}, {}, {}> | null;
188
+ }, any, import('vue').ComponentProvideOptions, {
189
+ P: {};
190
+ B: {};
191
+ D: {};
192
+ C: {};
193
+ M: {};
194
+ Defaults: {};
195
+ }, Readonly<{
196
+ agendaData: any;
197
+ showOrderLink?: boolean;
198
+ resources?: any[];
199
+ }> & Readonly<{
200
+ onConfirmed?: (() => any) | undefined;
201
+ onCancelled?: (() => any) | undefined;
202
+ onRejected?: (() => any) | undefined;
203
+ onTransferred?: (() => any) | undefined;
204
+ onOpenOrder?: ((orderId: string) => any) | undefined;
205
+ }>, {
206
+ openDialog: (order: any) => void;
207
+ }, {}, {}, {}, {
208
+ resources: any[];
209
+ showOrderLink: boolean;
210
+ }> | null;
211
+ orderDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
212
+ agendaData: any;
213
+ resources?: any[];
214
+ }> & Readonly<{
215
+ onOpenReservation?: ((reservation: import('../EventDialog/OrderDetailDialog.vue').ReservationLine) => any) | undefined;
216
+ }>, {
217
+ openDialog: (order: import('../EventDialog/OrderDetailDialog.vue').OrderGroup) => void;
218
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
219
+ openReservation: (reservation: import('../EventDialog/OrderDetailDialog.vue').ReservationLine) => any;
220
+ }, import('vue').PublicProps, {
221
+ resources: any[];
222
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
223
+ P: {};
224
+ B: {};
225
+ D: {};
226
+ C: {};
227
+ M: {};
228
+ Defaults: {};
229
+ }, Readonly<{
230
+ agendaData: any;
231
+ resources?: any[];
232
+ }> & Readonly<{
233
+ onOpenReservation?: ((reservation: import('../EventDialog/OrderDetailDialog.vue').ReservationLine) => any) | undefined;
234
+ }>, {
235
+ openDialog: (order: import('../EventDialog/OrderDetailDialog.vue').OrderGroup) => void;
236
+ }, {}, {}, {}, {
237
+ resources: any[];
238
+ }> | null;
239
+ }, any>;
240
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { MetadataFieldSchema } from '../types';
3
+ type AgendaIdSource = Ref<string | null | undefined> | ComputedRef<string | null | undefined>;
4
+ export declare function useAgendaMetadataSchema(agendaId: AgendaIdSource): {
5
+ metadataSchema: Ref<{
6
+ id: string;
7
+ key: string;
8
+ label: string;
9
+ display: import('../types').MetadataDisplay;
10
+ scope: import('../types').MetadataScope;
11
+ includeInPdf?: boolean | undefined;
12
+ icon?: string | undefined;
13
+ color?: string | undefined;
14
+ order?: number | undefined;
15
+ action?: {
16
+ type: "flow";
17
+ flow: Record<string, any>;
18
+ } | undefined;
19
+ }[], MetadataFieldSchema[] | {
20
+ id: string;
21
+ key: string;
22
+ label: string;
23
+ display: import('../types').MetadataDisplay;
24
+ scope: import('../types').MetadataScope;
25
+ includeInPdf?: boolean | undefined;
26
+ icon?: string | undefined;
27
+ color?: string | undefined;
28
+ order?: number | undefined;
29
+ action?: {
30
+ type: "flow";
31
+ flow: Record<string, any>;
32
+ } | undefined;
33
+ }[]>;
34
+ isMetadataSchemaLoading: Ref<boolean, boolean>;
35
+ loadMetadataSchema: () => Promise<void>;
36
+ };
37
+ export {};
@@ -0,0 +1,225 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
+ dateInputRef: HTMLInputElement;
3
+ reservationDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
+ agendaData: any;
5
+ showOrderLink?: boolean;
6
+ resources?: any[];
7
+ }> & Readonly<{
8
+ onConfirmed?: (() => any) | undefined;
9
+ onCancelled?: (() => any) | undefined;
10
+ onRejected?: (() => any) | undefined;
11
+ onTransferred?: (() => any) | undefined;
12
+ onOpenOrder?: ((orderId: string) => any) | undefined;
13
+ }>, {
14
+ openDialog: (order: any) => void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ confirmed: () => any;
17
+ cancelled: () => any;
18
+ rejected: () => any;
19
+ transferred: () => any;
20
+ openOrder: (orderId: string) => any;
21
+ }, import('vue').PublicProps, {
22
+ resources: any[];
23
+ showOrderLink: boolean;
24
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
25
+ cancelReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
26
+ onConfirm?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ openDialog: (input: any) => void;
29
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
+ confirm: (...args: any[]) => void;
31
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
32
+ P: {};
33
+ B: {};
34
+ D: {};
35
+ C: {};
36
+ M: {};
37
+ Defaults: {};
38
+ }, Readonly<{}> & Readonly<{
39
+ onConfirm?: ((...args: any[]) => any) | undefined;
40
+ }>, {
41
+ openDialog: (input: any) => void;
42
+ }, {}, {}, {}, {}> | null;
43
+ cancelRefundReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
44
+ isProcessing?: boolean;
45
+ hasRefundFlow?: boolean;
46
+ showRefundAmount?: boolean;
47
+ customFields?: any[];
48
+ }> & Readonly<{
49
+ onConfirm?: ((payload: {
50
+ amount?: number;
51
+ reason: string;
52
+ fields: Record<string, any>;
53
+ fieldDefinitions: any[];
54
+ skipMail: boolean;
55
+ email: string;
56
+ subject: string;
57
+ body: string;
58
+ }) => any) | undefined;
59
+ }>, {
60
+ openDialog: (input: any) => void;
61
+ closeDialog: () => void;
62
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
63
+ confirm: (payload: {
64
+ amount?: number;
65
+ reason: string;
66
+ fields: Record<string, any>;
67
+ fieldDefinitions: any[];
68
+ skipMail: boolean;
69
+ email: string;
70
+ subject: string;
71
+ body: string;
72
+ }) => any;
73
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
74
+ P: {};
75
+ B: {};
76
+ D: {};
77
+ C: {};
78
+ M: {};
79
+ Defaults: {};
80
+ }, Readonly<{
81
+ isProcessing?: boolean;
82
+ hasRefundFlow?: boolean;
83
+ showRefundAmount?: boolean;
84
+ customFields?: any[];
85
+ }> & Readonly<{
86
+ onConfirm?: ((payload: {
87
+ amount?: number;
88
+ reason: string;
89
+ fields: Record<string, any>;
90
+ fieldDefinitions: any[];
91
+ skipMail: boolean;
92
+ email: string;
93
+ subject: string;
94
+ body: string;
95
+ }) => any) | undefined;
96
+ }>, {
97
+ openDialog: (input: any) => void;
98
+ closeDialog: () => void;
99
+ }, {}, {}, {}, {}> | null;
100
+ approveReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
101
+ onConfirm?: ((...args: any[]) => any) | undefined;
102
+ }>, {
103
+ openDialog: (input: any, type?: "approve" | "resend") => void;
104
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
105
+ confirm: (...args: any[]) => void;
106
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
107
+ P: {};
108
+ B: {};
109
+ D: {};
110
+ C: {};
111
+ M: {};
112
+ Defaults: {};
113
+ }, Readonly<{}> & Readonly<{
114
+ onConfirm?: ((...args: any[]) => any) | undefined;
115
+ }>, {
116
+ openDialog: (input: any, type?: "approve" | "resend") => void;
117
+ }, {}, {}, {}, {}> | null;
118
+ rejectReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
119
+ onConfirm?: ((...args: any[]) => any) | undefined;
120
+ }>, {
121
+ openDialog: (input: any) => void;
122
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
123
+ confirm: (...args: any[]) => void;
124
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
125
+ P: {};
126
+ B: {};
127
+ D: {};
128
+ C: {};
129
+ M: {};
130
+ Defaults: {};
131
+ }, Readonly<{}> & Readonly<{
132
+ onConfirm?: ((...args: any[]) => any) | undefined;
133
+ }>, {
134
+ openDialog: (input: any) => void;
135
+ }, {}, {}, {}, {}> | null;
136
+ transferReservationDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
137
+ agendaData?: any;
138
+ }> & Readonly<{
139
+ onTransferred?: ((payload: {
140
+ orderId: string;
141
+ reservationId: string;
142
+ reservation: any;
143
+ order: any;
144
+ }) => any) | undefined;
145
+ }>, {
146
+ openDialog: (order: any) => void;
147
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
148
+ transferred: (payload: {
149
+ orderId: string;
150
+ reservationId: string;
151
+ reservation: any;
152
+ order: any;
153
+ }) => any;
154
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
155
+ P: {};
156
+ B: {};
157
+ D: {};
158
+ C: {};
159
+ M: {};
160
+ Defaults: {};
161
+ }, Readonly<{
162
+ agendaData?: any;
163
+ }> & Readonly<{
164
+ onTransferred?: ((payload: {
165
+ orderId: string;
166
+ reservationId: string;
167
+ reservation: any;
168
+ order: any;
169
+ }) => any) | undefined;
170
+ }>, {
171
+ openDialog: (order: any) => void;
172
+ }, {}, {}, {}, {}> | null;
173
+ }, any, import('vue').ComponentProvideOptions, {
174
+ P: {};
175
+ B: {};
176
+ D: {};
177
+ C: {};
178
+ M: {};
179
+ Defaults: {};
180
+ }, Readonly<{
181
+ agendaData: any;
182
+ showOrderLink?: boolean;
183
+ resources?: any[];
184
+ }> & Readonly<{
185
+ onConfirmed?: (() => any) | undefined;
186
+ onCancelled?: (() => any) | undefined;
187
+ onRejected?: (() => any) | undefined;
188
+ onTransferred?: (() => any) | undefined;
189
+ onOpenOrder?: ((orderId: string) => any) | undefined;
190
+ }>, {
191
+ openDialog: (order: any) => void;
192
+ }, {}, {}, {}, {
193
+ resources: any[];
194
+ showOrderLink: boolean;
195
+ }> | null;
196
+ orderDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
197
+ agendaData: any;
198
+ resources?: any[];
199
+ }> & Readonly<{
200
+ onOpenReservation?: ((reservation: import('../../components/edit/EventDialog/OrderDetailDialog.vue').ReservationLine) => any) | undefined;
201
+ }>, {
202
+ openDialog: (order: import('../../components/edit/EventDialog/OrderDetailDialog.vue').OrderGroup) => void;
203
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
204
+ openReservation: (reservation: import('../../components/edit/EventDialog/OrderDetailDialog.vue').ReservationLine) => any;
205
+ }, import('vue').PublicProps, {
206
+ resources: any[];
207
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
208
+ P: {};
209
+ B: {};
210
+ D: {};
211
+ C: {};
212
+ M: {};
213
+ Defaults: {};
214
+ }, Readonly<{
215
+ agendaData: any;
216
+ resources?: any[];
217
+ }> & Readonly<{
218
+ onOpenReservation?: ((reservation: import('../../components/edit/EventDialog/OrderDetailDialog.vue').ReservationLine) => any) | undefined;
219
+ }>, {
220
+ openDialog: (order: import('../../components/edit/EventDialog/OrderDetailDialog.vue').OrderGroup) => void;
221
+ }, {}, {}, {}, {
222
+ resources: any[];
223
+ }> | null;
224
+ }, any>;
225
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -7,6 +7,8 @@ export interface ModuleHandlerDeps {
7
7
  initFirebase: (event: any, integrationId: string) => Promise<any>;
8
8
  /** Normalize Firestore Timestamp fields to plain dates */
9
9
  normalizeTimestamps: (data: any) => any;
10
+ /** Create a Firestore field delete sentinel */
11
+ deleteField?: () => any;
10
12
  }
11
13
  /**
12
14
  * Appointments module server handler factory.
@@ -68,13 +68,19 @@ export interface PromoType {
68
68
  }
69
69
  export type MetadataDisplay = 'highlight' | 'badge' | 'field' | 'hidden';
70
70
  export type MetadataScope = 'order' | 'reservation';
71
+ export interface MetadataFieldAction {
72
+ type: 'flow';
73
+ flow: Record<string, any>;
74
+ }
71
75
  export interface MetadataFieldSchema {
72
76
  id: string;
73
77
  key: string;
74
78
  label: string;
75
79
  display: MetadataDisplay;
76
80
  scope: MetadataScope;
81
+ includeInPdf?: boolean;
77
82
  icon?: string;
78
83
  color?: string;
79
84
  order?: number;
85
+ action?: MetadataFieldAction;
80
86
  }
@@ -1,6 +1,9 @@
1
- /**
2
- * Utility to generate and download a PDF for a reservation
3
- */
1
+ import { MetadataFieldSchema } from '../types';
2
+ export interface AdjustmentLine {
3
+ label?: string;
4
+ type?: string;
5
+ value: number;
6
+ }
4
7
  export interface ReservationOrder {
5
8
  id: string;
6
9
  customerInfo: {
@@ -16,6 +19,7 @@ export interface ReservationOrder {
16
19
  reservationPrice?: number;
17
20
  reservationBasePrice?: number;
18
21
  reservationAddOnsPrice?: number;
22
+ reservationAdjustments?: AdjustmentLine[];
19
23
  discount?: number;
20
24
  amountPaid?: number;
21
25
  amountDue?: number;
@@ -25,6 +29,58 @@ export interface ReservationOrder {
25
29
  price: number;
26
30
  duration: number;
27
31
  };
32
+ metadata?: Record<string, any>;
33
+ reservationMetadata?: Record<string, any>;
34
+ }
35
+ export interface OrderReservationLine {
36
+ id: string;
37
+ res_id?: string;
38
+ customerInfo?: {
39
+ firstName?: string;
40
+ lastName?: string;
41
+ email?: string;
42
+ phone?: string;
43
+ };
44
+ status?: string;
45
+ reservationStatus?: string;
46
+ createdAt?: string;
47
+ date?: string;
48
+ startTime?: string;
49
+ endTime?: string;
50
+ spots?: number;
51
+ subtotal?: number;
52
+ discount?: number;
53
+ amountPaid?: number;
54
+ amountDue?: number;
55
+ reservationPrice?: number;
56
+ reservationBasePrice?: number;
57
+ reservationAddOnsPrice?: number;
58
+ reservationAdjustments?: AdjustmentLine[];
59
+ pricingOption?: {
60
+ id?: string;
61
+ name?: string;
62
+ price?: number;
63
+ duration?: number;
64
+ };
65
+ resourceName?: string;
66
+ metadata?: Record<string, any>;
67
+ reservationMetadata?: Record<string, any>;
68
+ }
69
+ export interface OrderPrintData {
70
+ id: string;
71
+ customerInfo?: {
72
+ firstName?: string;
73
+ lastName?: string;
74
+ email?: string;
75
+ phone?: string;
76
+ };
77
+ status?: string;
78
+ createdAt?: string;
79
+ metadata?: Record<string, any>;
80
+ reservations: OrderReservationLine[];
81
+ adjustments?: AdjustmentLine[];
82
+ totalPrice: number;
83
+ totalSpots: number;
28
84
  }
29
85
  export interface PrintOptions {
30
86
  agendaName?: string;
@@ -32,14 +88,20 @@ export interface PrintOptions {
32
88
  date?: string;
33
89
  companyName?: string;
34
90
  companyLogo?: string;
91
+ metadataSchema?: MetadataFieldSchema[];
35
92
  }
36
93
  /**
37
94
  * Generates an HTML document for the reservation and triggers print/PDF download
38
95
  */
39
96
  export declare const printReservation: (order: ReservationOrder, options?: PrintOptions) => void;
97
+ /**
98
+ * Generates an HTML document for the full order and triggers print/PDF download
99
+ */
100
+ export declare const printOrder: (order: OrderPrintData, options?: PrintOptions) => void;
40
101
  /**
41
102
  * Downloads the reservation as a PDF using the browser's print-to-PDF functionality
42
103
  * This opens the print dialog where users can select "Save as PDF"
43
104
  */
44
105
  export declare const downloadReservationPDF: (order: ReservationOrder, options?: PrintOptions) => void;
106
+ export declare const downloadOrderPDF: (order: OrderPrintData, options?: PrintOptions) => void;
45
107
  export default printReservation;
@@ -0,0 +1,36 @@
1
+ import { Node } from '@tiptap/core';
2
+ declare module '@tiptap/core' {
3
+ interface Commands<ReturnType> {
4
+ table: {
5
+ insertTable: (options?: {
6
+ rows?: number;
7
+ cols?: number;
8
+ withHeaderRow?: boolean;
9
+ }) => ReturnType;
10
+ addColumnBefore: () => ReturnType;
11
+ addColumnAfter: () => ReturnType;
12
+ deleteColumn: () => ReturnType;
13
+ addRowBefore: () => ReturnType;
14
+ addRowAfter: () => ReturnType;
15
+ deleteRow: () => ReturnType;
16
+ deleteTable: () => ReturnType;
17
+ mergeCells: () => ReturnType;
18
+ splitCell: () => ReturnType;
19
+ toggleHeaderColumn: () => ReturnType;
20
+ toggleHeaderRow: () => ReturnType;
21
+ toggleHeaderCell: () => ReturnType;
22
+ goToNextCell: () => ReturnType;
23
+ goToPreviousCell: () => ReturnType;
24
+ };
25
+ }
26
+ }
27
+ type Options = {
28
+ HTMLAttributes: Record<string, any>;
29
+ resizable: boolean;
30
+ handleWidth: number;
31
+ cellMinWidth: number;
32
+ defaultCellMinWidth: number;
33
+ lastColumnResizable: boolean;
34
+ };
35
+ declare const _default: Node<Options, any>;
36
+ export default _default;