@aglyn/plugins-bookings 1.0.0-beta.219 → 1.0.0-beta.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -12
- package/src/lib/components/book-meeting-action.d.ts +7 -4
- package/src/lib/components/book-meeting-action.js +2 -2
- package/src/lib/components/book-meeting-action.js.map +1 -1
- package/src/lib/components/booking.js +10 -10
- package/src/lib/components/booking.js.map +1 -1
- package/src/lib/model/booking-record.d.ts +74 -0
- package/src/lib/model/booking-record.js +131 -0
- package/src/lib/model/booking-record.js.map +1 -0
- package/src/lib/model/booking-time.d.ts +60 -0
- package/src/lib/model/booking-time.js +65 -0
- package/src/lib/model/booking-time.js.map +1 -0
- package/src/lib/model/bookings-record-routes.d.ts +15 -0
- package/src/lib/model/bookings-record-routes.js +1 -1
- package/src/lib/model/bookings-record-routes.js.map +1 -1
- package/src/lib/model/bookings-search-sources.js +4 -2
- package/src/lib/model/bookings-search-sources.js.map +1 -1
- package/src/lib/model/bookings.d.ts +4 -4
- package/src/lib/model/bookings.js +3 -3
- package/src/lib/model/bookings.js.map +1 -1
- package/src/lib/model/index.d.ts +2 -0
- package/src/lib/model/index.js +2 -0
- package/src/lib/model/index.js.map +1 -1
- package/src/lib/server/billing-webhook.js +18 -9
- package/src/lib/server/billing-webhook.js.map +1 -1
- package/src/lib/server/booking-crm.d.ts +40 -24
- package/src/lib/server/booking-crm.js +84 -26
- package/src/lib/server/booking-crm.js.map +1 -1
- package/src/lib/server/booking-time-zone.d.ts +32 -0
- package/src/lib/server/booking-time-zone.js +59 -0
- package/src/lib/server/booking-time-zone.js.map +1 -0
- package/src/lib/server.js +46 -35
- package/src/lib/server.js.map +1 -1
- package/src/lib/tenant-emails.js +19 -4
- package/src/lib/tenant-emails.js.map +1 -1
package/src/lib/tenant-emails.js
CHANGED
|
@@ -52,7 +52,12 @@
|
|
|
52
52
|
{
|
|
53
53
|
name: 'timezone',
|
|
54
54
|
description: 'Timezone the time is shown in',
|
|
55
|
-
sample: '
|
|
55
|
+
sample: 'America/Chicago'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'booking.payment',
|
|
59
|
+
description: 'What a paid booking charged, as a sentence; empty for a free booking',
|
|
60
|
+
sample: 'You paid $95.00.'
|
|
56
61
|
},
|
|
57
62
|
{
|
|
58
63
|
name: 'booking.ref',
|
|
@@ -68,7 +73,12 @@
|
|
|
68
73
|
},
|
|
69
74
|
{
|
|
70
75
|
block: 'text',
|
|
71
|
-
text: 'Hi {{name}}, your booking
|
|
76
|
+
text: 'Hi {{name}}, your booking with {{host.businessName}} is ' + 'confirmed: "{{service.name}}" on {{when}} ({{timezone}}).',
|
|
77
|
+
variant: 'body'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
block: 'text',
|
|
81
|
+
text: '{{booking.payment}}',
|
|
72
82
|
variant: 'body'
|
|
73
83
|
},
|
|
74
84
|
{
|
|
@@ -101,13 +111,18 @@
|
|
|
101
111
|
{
|
|
102
112
|
name: 'when',
|
|
103
113
|
description: 'Formatted date and time of the booking',
|
|
104
|
-
sample: '
|
|
114
|
+
sample: 'Tuesday, June 2, 2026 at 9:00 AM'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'timezone',
|
|
118
|
+
description: 'Timezone the time is shown in',
|
|
119
|
+
sample: 'America/Chicago'
|
|
105
120
|
}
|
|
106
121
|
],
|
|
107
122
|
defaultBody: [
|
|
108
123
|
{
|
|
109
124
|
block: 'text',
|
|
110
|
-
text: 'Hi {{name}}, this is a reminder
|
|
125
|
+
text: 'Hi {{name}}, this is a reminder of your booking with ' + '{{host.businessName}}: "{{service.name}}" on {{when}} ' + '({{timezone}}).',
|
|
111
126
|
variant: 'body'
|
|
112
127
|
}
|
|
113
128
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/plugins/bookings/src/lib/tenant-emails.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { TenantEmailEntry } from '@aglyn/shared-util-email'\n\n/**\n * The emails a site sends its own customers through Bookings (AGL-769/770).\n *\n * Declared here, by the plugin that sends them, and compiled into the\n * platform's tenant email catalog (`TENANT_EMAILS` in\n * `@aglyn/shared-util-email`) by `tools/scripts/generate-plugin-manifests.mjs`\n * (AGL-3080): the catalog's readers include the send path, which loads no\n * plugin code, so a runtime registry it had not filled would quietly send\n * the text card in place of the site's designed email. Regenerate after\n * changing an entry; `--check` refuses a stale catalog.\n */\nexport function bookingsTenantEmails(): readonly TenantEmailEntry[] {\n return [\n {\n key: 'booking-confirmed',\n name: 'Booking confirmed',\n description: 'Confirms a booking to the customer, for paid and free services.',\n pluginId: 'bookings',\n plugin: 'Bookings',\n control: 'besigner',\n defaultSubject: 'Booking confirmed: {{service.name}}',\n mergeTokens: [\n { name: 'name', description: \"The customer's name\", sample: 'Alex' },\n {\n name: 'service.name',\n description: 'The booked service',\n sample: 'Consultation',\n },\n {\n name: 'when',\n description: 'Formatted date and time of the booking',\n sample: 'Monday, June 1, 2026 at 9:00 AM',\n },\n {\n name: 'timezone',\n description: 'Timezone the time is shown in',\n sample: '
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/bookings/src/lib/tenant-emails.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { TenantEmailEntry } from '@aglyn/shared-util-email'\n\n/**\n * The emails a site sends its own customers through Bookings (AGL-769/770).\n *\n * Declared here, by the plugin that sends them, and compiled into the\n * platform's tenant email catalog (`TENANT_EMAILS` in\n * `@aglyn/shared-util-email`) by `tools/scripts/generate-plugin-manifests.mjs`\n * (AGL-3080): the catalog's readers include the send path, which loads no\n * plugin code, so a runtime registry it had not filled would quietly send\n * the text card in place of the site's designed email. Regenerate after\n * changing an entry; `--check` refuses a stale catalog.\n */\nexport function bookingsTenantEmails(): readonly TenantEmailEntry[] {\n return [\n {\n key: 'booking-confirmed',\n name: 'Booking confirmed',\n description: 'Confirms a booking to the customer, for paid and free services.',\n pluginId: 'bookings',\n plugin: 'Bookings',\n control: 'besigner',\n defaultSubject: 'Booking confirmed: {{service.name}}',\n mergeTokens: [\n { name: 'name', description: \"The customer's name\", sample: 'Alex' },\n {\n name: 'service.name',\n description: 'The booked service',\n sample: 'Consultation',\n },\n {\n name: 'when',\n description: 'Formatted date and time of the booking',\n sample: 'Monday, June 1, 2026 at 9:00 AM',\n },\n {\n name: 'timezone',\n description: 'Timezone the time is shown in',\n sample: 'America/Chicago',\n },\n {\n name: 'booking.payment',\n description:\n 'What a paid booking charged, as a sentence; empty for a free booking',\n sample: 'You paid $95.00.',\n },\n {\n name: 'booking.ref',\n description: 'Booking reference id',\n sample: 'bk_123',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Booking confirmed', variant: 'heading' },\n {\n block: 'text',\n text:\n 'Hi {{name}}, your booking with {{host.businessName}} is ' +\n 'confirmed: \"{{service.name}}\" on {{when}} ({{timezone}}).',\n variant: 'body',\n },\n { block: 'text', text: '{{booking.payment}}', variant: 'body' },\n { block: 'text', text: 'Reference: {{booking.ref}}', variant: 'caption' },\n ],\n footerReason:\n 'You’re receiving this because you booked with {{host.businessName}}.',\n },\n {\n key: 'booking-reminder',\n name: 'Booking reminder',\n description: 'Reminds the customer of an upcoming booking.',\n pluginId: 'bookings',\n plugin: 'Bookings',\n control: 'besigner',\n defaultSubject: 'Reminder: {{service.name}} is coming up',\n mergeTokens: [\n { name: 'name', description: \"The customer's name\", sample: 'Alex' },\n {\n name: 'service.name',\n description: 'The booked service',\n sample: 'Consultation',\n },\n {\n name: 'when',\n description: 'Formatted date and time of the booking',\n sample: 'Tuesday, June 2, 2026 at 9:00 AM',\n },\n {\n name: 'timezone',\n description: 'Timezone the time is shown in',\n sample: 'America/Chicago',\n },\n ],\n defaultBody: [\n {\n block: 'text',\n text:\n 'Hi {{name}}, this is a reminder of your booking with ' +\n '{{host.businessName}}: \"{{service.name}}\" on {{when}} ' +\n '({{timezone}}).',\n variant: 'body',\n },\n ],\n footerReason:\n 'You’re receiving this because you have a booking with {{host.businessName}}.',\n },\n ]\n}\n"],"names":["bookingsTenantEmails","key","name","description","pluginId","plugin","control","defaultSubject","mergeTokens","sample","defaultBody","block","text","variant","footerReason"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAID;;;;;;;;;;CAUC,GACD,OAAO,SAASA;IACd,OAAO;QACL;YACEC,KAAK;YACLC,MAAM;YACNC,aAAa;YACbC,UAAU;YACVC,QAAQ;YACRC,SAAS;YACTC,gBAAgB;YAChBC,aAAa;gBACX;oBAAEN,MAAM;oBAAQC,aAAa;oBAAuBM,QAAQ;gBAAO;gBACnE;oBACEP,MAAM;oBACNC,aAAa;oBACbM,QAAQ;gBACV;gBACA;oBACEP,MAAM;oBACNC,aAAa;oBACbM,QAAQ;gBACV;gBACA;oBACEP,MAAM;oBACNC,aAAa;oBACbM,QAAQ;gBACV;gBACA;oBACEP,MAAM;oBACNC,aACE;oBACFM,QAAQ;gBACV;gBACA;oBACEP,MAAM;oBACNC,aAAa;oBACbM,QAAQ;gBACV;aACD;YACDC,aAAa;gBACX;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