@aglyn/plugins-commerce 1.0.0-beta.218 → 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/README.md +6 -0
- package/package.json +14 -14
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -19
- package/src/index.js.map +1 -1
- package/src/lib/components/cart.js +2 -1
- package/src/lib/components/cart.js.map +1 -1
- package/src/lib/components/console/catalog-organization-card.component.js +665 -459
- package/src/lib/components/console/catalog-organization-card.component.js.map +1 -1
- package/src/lib/components/console/host-orders-card.component.js +2 -1
- package/src/lib/components/console/host-orders-card.component.js.map +1 -1
- package/src/lib/components/console/member-posts-card.component.js +1 -1
- package/src/lib/components/console/member-posts-card.component.js.map +1 -1
- package/src/lib/components/console/order-detail-dialog.component.js +8 -7
- package/src/lib/components/console/order-detail-dialog.component.js.map +1 -1
- package/src/lib/components/console/payments-settings-card.component.js +2 -2
- package/src/lib/components/console/payments-settings-card.component.js.map +1 -1
- package/src/lib/components/console/product-editor-dialog.component.js +1221 -889
- package/src/lib/components/console/product-editor-dialog.component.js.map +1 -1
- package/src/lib/components/console/product-zones.d.ts +184 -0
- package/src/lib/components/console/product-zones.js +54 -0
- package/src/lib/components/console/product-zones.js.map +1 -0
- package/src/lib/components/console/products-hub-card.component.js +3 -2
- package/src/lib/components/console/products-hub-card.component.js.map +1 -1
- package/src/lib/components/console/products-hub-zone.component.d.ts +1 -1
- package/src/lib/components/console/products-hub-zone.component.js +2 -1
- package/src/lib/components/console/products-hub-zone.component.js.map +1 -1
- package/src/lib/components/console/site-member-purchases.component.d.ts +24 -0
- package/src/lib/components/console/site-member-purchases.component.js +339 -0
- package/src/lib/components/console/site-member-purchases.component.js.map +1 -0
- package/src/lib/components/console/store-settings-card.component.js +2 -2
- package/src/lib/components/console/store-settings-card.component.js.map +1 -1
- package/src/lib/components/console/storefront-tax-summary-card.component.js +1 -1
- package/src/lib/components/console/storefront-tax-summary-card.component.js.map +1 -1
- package/src/lib/components/member-signup.js +2 -2
- package/src/lib/components/member-signup.js.map +1 -1
- package/src/lib/components/newsletter-signup.js +2 -2
- package/src/lib/components/newsletter-signup.js.map +1 -1
- package/src/lib/components/product-detail.js +2 -1
- package/src/lib/components/product-detail.js.map +1 -1
- package/src/lib/components/product-grid.js +1 -1
- package/src/lib/components/product-grid.js.map +1 -1
- package/src/lib/constants/operator-alerts.js +5 -3
- package/src/lib/constants/operator-alerts.js.map +1 -1
- package/src/lib/constants/storefront-payments.d.ts +33 -0
- package/src/lib/constants/storefront-payments.js +35 -0
- package/src/lib/constants/storefront-payments.js.map +1 -0
- package/src/lib/declarations.server.d.ts +3 -1
- package/src/lib/declarations.server.js +19 -1
- package/src/lib/declarations.server.js.map +1 -1
- package/src/lib/model/commerce-io.js +1 -1
- package/src/lib/model/commerce-io.js.map +1 -1
- package/src/lib/model/commerce-record-lists.d.ts +31 -0
- package/src/lib/model/commerce-record-lists.js +45 -0
- package/src/lib/model/commerce-record-lists.js.map +1 -0
- package/src/lib/model/commerce-record-routes.d.ts +45 -0
- package/src/lib/model/commerce-record-routes.js +72 -0
- package/src/lib/model/commerce-record-routes.js.map +1 -0
- package/src/lib/model/commerce-search-sources.d.ts +21 -0
- package/src/lib/model/commerce-search-sources.js +42 -0
- package/src/lib/model/commerce-search-sources.js.map +1 -0
- package/src/lib/model/commerce-topics.d.ts +20 -0
- package/src/lib/model/commerce-topics.js +33 -0
- package/src/lib/model/commerce-topics.js.map +1 -0
- package/src/lib/model/index.d.ts +1 -0
- package/src/lib/model/index.js +1 -0
- package/src/lib/model/index.js.map +1 -1
- package/src/lib/model/product-record.d.ts +32 -0
- package/src/lib/model/product-record.js +82 -0
- package/src/lib/model/product-record.js.map +1 -0
- package/src/lib/model/site-member-purchases.d.ts +48 -0
- package/src/lib/model/site-member-purchases.js +50 -0
- package/src/lib/model/site-member-purchases.js.map +1 -0
- package/src/lib/model/storefront-tax-summary.d.ts +121 -0
- package/src/lib/model/storefront-tax-summary.js +148 -0
- package/src/lib/model/storefront-tax-summary.js.map +1 -0
- package/src/lib/plan-entitlements.d.ts +35 -0
- package/src/lib/plan-entitlements.js +54 -0
- package/src/lib/plan-entitlements.js.map +1 -0
- package/src/lib/plugin.js +21 -0
- package/src/lib/plugin.js.map +1 -1
- package/src/lib/server/billing-webhook.js +387 -248
- package/src/lib/server/billing-webhook.js.map +1 -1
- package/src/lib/server/cart-checkout.js +3 -3
- package/src/lib/server/cart-checkout.js.map +1 -1
- package/src/lib/server/checkout.js +2 -2
- package/src/lib/server/checkout.js.map +1 -1
- package/src/lib/server/connect.js +5 -5
- package/src/lib/server/connect.js.map +1 -1
- package/src/lib/server/draft-order.js +2 -2
- package/src/lib/server/draft-order.js.map +1 -1
- package/src/lib/server/gift-cards.js +7 -3
- package/src/lib/server/gift-cards.js.map +1 -1
- package/src/lib/server/low-stock.js +3 -1
- package/src/lib/server/low-stock.js.map +1 -1
- package/src/lib/server/member-post.js +2 -2
- package/src/lib/server/member-post.js.map +1 -1
- package/src/lib/server/membership-admin-password.js +4 -1
- package/src/lib/server/membership-admin-password.js.map +1 -1
- package/src/lib/server/membership-content.js +1 -1
- package/src/lib/server/membership-content.js.map +1 -1
- package/src/lib/server/membership-register.js +13 -2
- package/src/lib/server/membership-register.js.map +1 -1
- package/src/lib/server/newsletter.js +32 -19
- package/src/lib/server/newsletter.js.map +1 -1
- package/src/lib/server/pos-order.js +3 -3
- package/src/lib/server/pos-order.js.map +1 -1
- package/src/lib/server/process-abandoned.js +4 -2
- package/src/lib/server/process-abandoned.js.map +1 -1
- package/src/lib/server/process-restock.js +7 -5
- package/src/lib/server/process-restock.js.map +1 -1
- package/src/lib/server/product-record-index.d.ts +19 -0
- package/src/lib/server/product-record-index.js +83 -0
- package/src/lib/server/product-record-index.js.map +1 -0
- package/src/lib/server/reconcile-stock.js +1 -1
- package/src/lib/server/reconcile-stock.js.map +1 -1
- package/src/lib/server/reserve-stock.js +6 -1
- package/src/lib/server/reserve-stock.js.map +1 -1
- package/src/lib/server/reserve.js +2 -2
- package/src/lib/server/reserve.js.map +1 -1
- package/src/lib/server/revenue-source.d.ts +130 -0
- package/src/lib/server/revenue-source.js +286 -0
- package/src/lib/server/revenue-source.js.map +1 -0
- package/src/lib/server/supplier-outbox.js +16 -1
- package/src/lib/server/supplier-outbox.js.map +1 -1
- package/src/lib/server/supplier-update.js +19 -9
- package/src/lib/server/supplier-update.js.map +1 -1
- package/src/lib/server/tax-profile.d.ts +8 -5
- package/src/lib/server/tax-profile.js +22 -5
- package/src/lib/server/tax-profile.js.map +1 -1
- package/src/lib/server/tax-return-source.d.ts +125 -0
- package/src/lib/server/tax-return-source.js +524 -0
- package/src/lib/server/tax-return-source.js.map +1 -0
- package/src/lib/server/tax-summary.d.ts +92 -0
- package/src/lib/server/tax-summary.js +258 -0
- package/src/lib/server/tax-summary.js.map +1 -0
- package/src/lib/server.d.ts +1 -0
- package/src/lib/server.js +23 -0
- package/src/lib/server.js.map +1 -1
- package/src/lib/starter-templates.d.ts +19 -0
- package/src/lib/starter-templates.js +157 -0
- package/src/lib/starter-templates.js.map +1 -0
- package/src/lib/tenant-emails.d.ts +33 -0
- package/src/lib/tenant-emails.js +551 -0
- package/src/lib/tenant-emails.js.map +1 -0
- package/src/lib/testing/stand-in-crm-record-routes.d.ts +25 -0
- package/src/lib/testing/stand-in-crm-record-routes.js +46 -0
- package/src/lib/testing/stand-in-crm-record-routes.js.map +1 -0
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ /**
|
|
17
|
+
* The emails a site sends its own customers through Commerce (AGL-769/770).
|
|
18
|
+
*
|
|
19
|
+
* Declared here, by the plugin that sends them, and compiled into the
|
|
20
|
+
* platform's tenant email catalog (`TENANT_EMAILS` in
|
|
21
|
+
* `@aglyn/shared-util-email`) by `tools/scripts/generate-plugin-manifests.mjs`
|
|
22
|
+
* (AGL-3080): the catalog's readers include the send path, which loads no
|
|
23
|
+
* plugin code, so a runtime registry it had not filled would quietly send
|
|
24
|
+
* the text card in place of the site's designed email. Regenerate after
|
|
25
|
+
* changing an entry; `--check` refuses a stale catalog.
|
|
26
|
+
*
|
|
27
|
+
* Most commerce sends are designable in the email besigner; a `fixed` entry
|
|
28
|
+
* flips to `besigner` when its send site is wired to `renderHostEmail`
|
|
29
|
+
* (AGL-770).
|
|
30
|
+
*/ export function commerceTenantEmails() {
|
|
31
|
+
return [
|
|
32
|
+
{
|
|
33
|
+
key: 'order-receipt',
|
|
34
|
+
name: 'Order receipt',
|
|
35
|
+
description: 'Sent to the buyer after a successful order or checkout.',
|
|
36
|
+
pluginId: 'commerce',
|
|
37
|
+
plugin: 'Commerce',
|
|
38
|
+
control: 'besigner',
|
|
39
|
+
defaultSubject: 'Receipt for your order',
|
|
40
|
+
mergeTokens: [
|
|
41
|
+
{
|
|
42
|
+
name: 'order.summary',
|
|
43
|
+
description: 'The ordered items, one per line (with any license/download links)',
|
|
44
|
+
sample: 'House Blend × 2 — $24.00'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'order.total',
|
|
48
|
+
description: 'Order total',
|
|
49
|
+
sample: '$24.00'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'order.ref',
|
|
53
|
+
description: 'Order reference id',
|
|
54
|
+
sample: 'cs_test_123'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'store.receiptFooter',
|
|
58
|
+
description: 'The Receipt footer from the store settings; empty when none is set',
|
|
59
|
+
sample: 'Returns are accepted within 30 days.'
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
defaultBody: [
|
|
63
|
+
{
|
|
64
|
+
block: 'text',
|
|
65
|
+
text: 'Thanks for your purchase!',
|
|
66
|
+
variant: 'heading'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
block: 'text',
|
|
70
|
+
text: 'Here is the receipt for your order from {{host.businessName}}.',
|
|
71
|
+
variant: 'body'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
block: 'text',
|
|
75
|
+
text: '{{order.summary}}',
|
|
76
|
+
variant: 'body'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
block: 'text',
|
|
80
|
+
text: 'Total charged: {{order.total}}',
|
|
81
|
+
variant: 'body'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
block: 'text',
|
|
85
|
+
text: '{{store.receiptFooter}}',
|
|
86
|
+
variant: 'body'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
block: 'text',
|
|
90
|
+
text: 'Order reference: {{order.ref}}',
|
|
91
|
+
variant: 'caption'
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
footerReason: 'You’re receiving this because you placed an order with {{host.businessName}}.'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key: 'sale-notification',
|
|
98
|
+
name: 'New sale',
|
|
99
|
+
description: 'Notifies the seller when an order is placed.',
|
|
100
|
+
pluginId: 'commerce',
|
|
101
|
+
plugin: 'Commerce',
|
|
102
|
+
control: 'besigner',
|
|
103
|
+
defaultSubject: 'New order on {{site.name}}',
|
|
104
|
+
mergeTokens: [
|
|
105
|
+
{
|
|
106
|
+
name: 'site.name',
|
|
107
|
+
description: 'The site the sale happened on',
|
|
108
|
+
sample: 'Northwind Coffee'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'order.summary',
|
|
112
|
+
description: 'The ordered items',
|
|
113
|
+
sample: 'House Blend — $12.00'
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'order.total',
|
|
117
|
+
description: 'Order total',
|
|
118
|
+
sample: '$12.00'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'buyer.email',
|
|
122
|
+
description: "The buyer's email",
|
|
123
|
+
sample: 'buyer@example.com'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'order.ref',
|
|
127
|
+
description: 'Order reference id',
|
|
128
|
+
sample: 'cs_test_123'
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
defaultBody: [
|
|
132
|
+
{
|
|
133
|
+
block: 'text',
|
|
134
|
+
text: 'You made a sale',
|
|
135
|
+
variant: 'heading'
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
block: 'text',
|
|
139
|
+
text: 'A new order came in on {{site.name}}.',
|
|
140
|
+
variant: 'body'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
block: 'text',
|
|
144
|
+
text: '{{order.summary}}',
|
|
145
|
+
variant: 'body'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
block: 'text',
|
|
149
|
+
text: 'Total: {{order.total}}',
|
|
150
|
+
variant: 'body'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
block: 'text',
|
|
154
|
+
text: 'Buyer: {{buyer.email}} · Order {{order.ref}}',
|
|
155
|
+
variant: 'caption'
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
footerReason: 'You’re receiving this because you manage {{host.businessName}}.'
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
key: 'reservation-confirmed',
|
|
162
|
+
name: 'Reservation confirmed',
|
|
163
|
+
description: 'Confirms a paid reservation to the customer.',
|
|
164
|
+
pluginId: 'commerce',
|
|
165
|
+
plugin: 'Commerce',
|
|
166
|
+
control: 'besigner',
|
|
167
|
+
defaultSubject: 'Reservation confirmed',
|
|
168
|
+
mergeTokens: [
|
|
169
|
+
{
|
|
170
|
+
name: 'reservation.checkIn',
|
|
171
|
+
description: 'Check-in date',
|
|
172
|
+
sample: 'Mon, 01 Jun 2026'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'reservation.nights',
|
|
176
|
+
description: 'Number of nights',
|
|
177
|
+
sample: '2'
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'reservation.paid',
|
|
181
|
+
description: 'What the guest was charged today, lodging tax included; a ' + 'charge that carried lodging tax names it, as in “$254.40, ' + 'including $14.40 lodging tax”',
|
|
182
|
+
sample: '$240.00'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'reservation.balance',
|
|
186
|
+
description: 'What is still owed for the stay and where it is paid, as a ' + 'sentence; empty when the stay is paid in full',
|
|
187
|
+
sample: 'Still to pay: $360.00, at the property. It has not been charged.'
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'reservation.ref',
|
|
191
|
+
description: 'Reservation reference id',
|
|
192
|
+
sample: 'resv_123'
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
defaultBody: [
|
|
196
|
+
{
|
|
197
|
+
block: 'text',
|
|
198
|
+
text: 'Reservation confirmed',
|
|
199
|
+
variant: 'heading'
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
block: 'text',
|
|
203
|
+
text: 'Your stay at {{host.businessName}} is confirmed.',
|
|
204
|
+
variant: 'body'
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
block: 'text',
|
|
208
|
+
text: 'Check-in: {{reservation.checkIn}}',
|
|
209
|
+
variant: 'body'
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
block: 'text',
|
|
213
|
+
text: 'Nights: {{reservation.nights}}',
|
|
214
|
+
variant: 'body'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
block: 'text',
|
|
218
|
+
text: 'Paid today: {{reservation.paid}}',
|
|
219
|
+
variant: 'body'
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
block: 'text',
|
|
223
|
+
text: '{{reservation.balance}}',
|
|
224
|
+
variant: 'body'
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
block: 'text',
|
|
228
|
+
text: 'Reference: {{reservation.ref}}',
|
|
229
|
+
variant: 'caption'
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
footerReason: 'You’re receiving this because you made a reservation with {{host.businessName}}.'
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
key: 'gift-card',
|
|
236
|
+
name: 'Gift card delivery',
|
|
237
|
+
description: 'Delivers a purchased gift card to its recipient.',
|
|
238
|
+
pluginId: 'commerce',
|
|
239
|
+
plugin: 'Commerce',
|
|
240
|
+
control: 'besigner',
|
|
241
|
+
defaultSubject: 'Your gift card for {{host.businessName}}',
|
|
242
|
+
mergeTokens: [
|
|
243
|
+
{
|
|
244
|
+
name: 'giftcard.code',
|
|
245
|
+
description: 'The gift card code',
|
|
246
|
+
sample: 'GC-ABC123DEF456'
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'giftcard.value',
|
|
250
|
+
description: 'The gift card value',
|
|
251
|
+
sample: '$25.00'
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: 'giftcard.note',
|
|
255
|
+
description: 'The note written when the card was issued by hand; empty for a ' + 'card bought at checkout',
|
|
256
|
+
sample: 'Happy birthday, Sam!'
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
defaultBody: [
|
|
260
|
+
{
|
|
261
|
+
block: 'text',
|
|
262
|
+
text: 'Your gift card',
|
|
263
|
+
variant: 'heading'
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
block: 'text',
|
|
267
|
+
text: 'You have a {{giftcard.value}} gift card for {{host.businessName}}.',
|
|
268
|
+
variant: 'body'
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
block: 'text',
|
|
272
|
+
text: '{{giftcard.note}}',
|
|
273
|
+
variant: 'body'
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
block: 'text',
|
|
277
|
+
text: 'Gift card code: {{giftcard.code}}',
|
|
278
|
+
variant: 'body'
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
block: 'text',
|
|
282
|
+
text: 'Enter the code at checkout on {{host.url}} to use its balance.',
|
|
283
|
+
variant: 'body'
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
block: 'button',
|
|
287
|
+
label: 'Visit {{host.businessName}}',
|
|
288
|
+
href: '{{host.url}}'
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
footerReason: 'You’re receiving this because a gift card from {{host.businessName}} was sent to this address.'
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
key: 'supplier-fulfillment',
|
|
295
|
+
name: 'Supplier fulfillment',
|
|
296
|
+
description: 'Tells a dropship supplier there is a new order to fulfill.',
|
|
297
|
+
pluginId: 'commerce',
|
|
298
|
+
plugin: 'Commerce',
|
|
299
|
+
control: 'fixed'
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
key: 'back-in-stock',
|
|
303
|
+
name: 'Back in stock',
|
|
304
|
+
description: 'Tells a customer a product they watched is available again.',
|
|
305
|
+
pluginId: 'commerce',
|
|
306
|
+
plugin: 'Commerce',
|
|
307
|
+
control: 'besigner',
|
|
308
|
+
defaultSubject: 'Back in stock: {{product.name}}',
|
|
309
|
+
mergeTokens: [
|
|
310
|
+
{
|
|
311
|
+
name: 'product.name',
|
|
312
|
+
description: 'The product that restocked',
|
|
313
|
+
sample: 'House Blend'
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: 'product.url',
|
|
317
|
+
description: 'Link to the product page',
|
|
318
|
+
sample: 'https://shop.example.com/products/house-blend'
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
defaultBody: [
|
|
322
|
+
{
|
|
323
|
+
block: 'text',
|
|
324
|
+
text: '{{product.name}} is back in stock at {{host.businessName}}.',
|
|
325
|
+
variant: 'body'
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
block: 'button',
|
|
329
|
+
label: 'View product',
|
|
330
|
+
href: '{{product.url}}'
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
footerReason: 'You’re receiving this because you asked {{host.businessName}} to tell you when this was back.'
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
key: 'abandoned-cart',
|
|
337
|
+
name: 'Abandoned cart',
|
|
338
|
+
description: 'Reminds a shopper of items left in their cart.',
|
|
339
|
+
// The cron refuses to send this without the entitlement
|
|
340
|
+
// (`process-abandoned.ts:92`), so the console has to say so (AGL-2081).
|
|
341
|
+
requiresFeature: 'abandonedCart',
|
|
342
|
+
pluginId: 'commerce',
|
|
343
|
+
plugin: 'Commerce',
|
|
344
|
+
control: 'besigner',
|
|
345
|
+
defaultSubject: 'You left something in your cart',
|
|
346
|
+
mergeTokens: [
|
|
347
|
+
{
|
|
348
|
+
name: 'cart.url',
|
|
349
|
+
description: 'Link back to the shopper cart',
|
|
350
|
+
sample: 'https://shop.example.com/cart'
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
defaultBody: [
|
|
354
|
+
{
|
|
355
|
+
block: 'text',
|
|
356
|
+
text: 'You left items in your cart at {{host.businessName}}. Pick up ' + 'where you left off.',
|
|
357
|
+
variant: 'body'
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
block: 'button',
|
|
361
|
+
label: 'Return to cart',
|
|
362
|
+
href: '{{cart.url}}'
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
block: 'text',
|
|
366
|
+
text: 'Nothing in your cart is held for you.',
|
|
367
|
+
variant: 'caption'
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
footerReason: 'You’re receiving this because you started a checkout with {{host.businessName}}.'
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
key: 'member-post',
|
|
374
|
+
name: 'New member post',
|
|
375
|
+
description: 'Notifies members when new members-only content is posted.',
|
|
376
|
+
pluginId: 'commerce',
|
|
377
|
+
plugin: 'Commerce',
|
|
378
|
+
control: 'besigner',
|
|
379
|
+
defaultSubject: '{{post.title}}',
|
|
380
|
+
mergeTokens: [
|
|
381
|
+
{
|
|
382
|
+
name: 'post.title',
|
|
383
|
+
description: 'The post’s title',
|
|
384
|
+
sample: 'This month in the studio'
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
name: 'post.body',
|
|
388
|
+
description: 'The post, as its author wrote it',
|
|
389
|
+
sample: 'Three new pieces are up for members first.'
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
defaultBody: [
|
|
393
|
+
{
|
|
394
|
+
block: 'text',
|
|
395
|
+
text: '{{post.title}}',
|
|
396
|
+
variant: 'heading'
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
block: 'text',
|
|
400
|
+
text: '{{post.body}}',
|
|
401
|
+
variant: 'body'
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
footerReason: 'You’re receiving this because you’re a member of {{host.businessName}}.'
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
key: 'member-password-reset',
|
|
408
|
+
name: 'Member password reset',
|
|
409
|
+
description: "Resets a site member's password — a store-member account, separate " + 'from a console login. Sent when the member asks, and when a site ' + 'administrator starts a reset for them.',
|
|
410
|
+
pluginId: 'commerce',
|
|
411
|
+
plugin: 'Commerce',
|
|
412
|
+
control: 'besigner',
|
|
413
|
+
defaultSubject: 'Reset your {{site.name}} password',
|
|
414
|
+
mergeTokens: [
|
|
415
|
+
{
|
|
416
|
+
name: 'site.name',
|
|
417
|
+
description: 'The site’s name',
|
|
418
|
+
sample: 'Northwind Coffee'
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: 'reset.intro',
|
|
422
|
+
description: 'Who started the reset',
|
|
423
|
+
sample: 'Someone asked to reset the password for your Northwind Coffee account.'
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
name: 'resetUrl',
|
|
427
|
+
description: 'The one-time reset link',
|
|
428
|
+
sample: 'https://shop.example.com/recover?token=…'
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: 'reset.note',
|
|
432
|
+
description: 'How long the link lasts, and what to do if unexpected',
|
|
433
|
+
sample: 'The link works once and expires in 1 hour. If you did not ask for ' + 'this, you can safely ignore this email — your password is unchanged.'
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
defaultBody: [
|
|
437
|
+
{
|
|
438
|
+
block: 'text',
|
|
439
|
+
text: 'Reset your password',
|
|
440
|
+
variant: 'heading'
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
block: 'text',
|
|
444
|
+
text: '{{reset.intro}}',
|
|
445
|
+
variant: 'body'
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
block: 'button',
|
|
449
|
+
label: 'Set a new password',
|
|
450
|
+
href: '{{resetUrl}}'
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
block: 'text',
|
|
454
|
+
text: '{{reset.note}}',
|
|
455
|
+
variant: 'caption'
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
footerReason: 'You’re receiving this because a password reset was started for your ' + '{{host.businessName}} account.'
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
key: 'member-password-changed',
|
|
462
|
+
name: 'Member password changed',
|
|
463
|
+
description: 'Tells a site member that a site administrator set a new password on ' + 'their account.',
|
|
464
|
+
pluginId: 'commerce',
|
|
465
|
+
plugin: 'Commerce',
|
|
466
|
+
control: 'besigner',
|
|
467
|
+
defaultSubject: 'Your {{site.name}} password was changed',
|
|
468
|
+
mergeTokens: [
|
|
469
|
+
{
|
|
470
|
+
name: 'site.name',
|
|
471
|
+
description: 'The site’s name',
|
|
472
|
+
sample: 'Northwind Coffee'
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
name: 'signInUrl',
|
|
476
|
+
description: 'Where the member signs back in',
|
|
477
|
+
sample: 'https://shop.example.com'
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
defaultBody: [
|
|
481
|
+
{
|
|
482
|
+
block: 'text',
|
|
483
|
+
text: 'Your password was changed',
|
|
484
|
+
variant: 'heading'
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
block: 'text',
|
|
488
|
+
text: 'An administrator of {{site.name}} set a new password on your ' + 'account and signed you out on every device. To sign back in, ' + 'get the new password from them, or choose "Forgot password?" on ' + 'the sign-in page to set your own.',
|
|
489
|
+
variant: 'body'
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
block: 'button',
|
|
493
|
+
label: 'Sign in',
|
|
494
|
+
href: '{{signInUrl}}'
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
block: 'text',
|
|
498
|
+
text: 'If you did not expect this, contact the site owner.',
|
|
499
|
+
variant: 'caption'
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
footerReason: 'You’re receiving this because the password on your ' + '{{host.businessName}} account was changed.'
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
key: 'newsletter-confirmation',
|
|
506
|
+
name: 'Subscription confirmation',
|
|
507
|
+
description: 'Asks someone who signed up for a site’s emails to confirm the address ' + 'before anything is sent to it.',
|
|
508
|
+
pluginId: 'commerce',
|
|
509
|
+
plugin: 'Commerce',
|
|
510
|
+
control: 'besigner',
|
|
511
|
+
defaultSubject: 'Confirm your subscription',
|
|
512
|
+
mergeTokens: [
|
|
513
|
+
{
|
|
514
|
+
name: 'stream.name',
|
|
515
|
+
description: 'What they signed up for',
|
|
516
|
+
sample: 'Newsletter'
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
name: 'confirmUrl',
|
|
520
|
+
description: 'The confirmation link',
|
|
521
|
+
sample: 'https://shop.example.com/subscribe/confirm?token=…'
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
defaultBody: [
|
|
525
|
+
{
|
|
526
|
+
block: 'text',
|
|
527
|
+
text: 'Confirm your subscription',
|
|
528
|
+
variant: 'heading'
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
block: 'text',
|
|
532
|
+
text: 'Please confirm that you want to get {{stream.name}} emails from ' + '{{host.businessName}} at this address.',
|
|
533
|
+
variant: 'body'
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
block: 'button',
|
|
537
|
+
label: 'Confirm my subscription',
|
|
538
|
+
href: '{{confirmUrl}}'
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
block: 'text',
|
|
542
|
+
text: 'The link works for three days. If you did not sign up, ignore this ' + 'message — nothing will be sent.',
|
|
543
|
+
variant: 'caption'
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
footerReason: 'You’re receiving this because this address was entered on ' + '{{host.businessName}}’s signup form.'
|
|
547
|
+
}
|
|
548
|
+
];
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
//# sourceMappingURL=tenant-emails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/commerce/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 Commerce (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 *\n * Most commerce sends are designable in the email besigner; a `fixed` entry\n * flips to `besigner` when its send site is wired to `renderHostEmail`\n * (AGL-770).\n */\nexport function commerceTenantEmails(): readonly TenantEmailEntry[] {\n return [\n {\n key: 'order-receipt',\n name: 'Order receipt',\n description: 'Sent to the buyer after a successful order or checkout.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Receipt for your order',\n mergeTokens: [\n {\n name: 'order.summary',\n description: 'The ordered items, one per line (with any license/download links)',\n sample: 'House Blend × 2 — $24.00',\n },\n {\n name: 'order.total',\n description: 'Order total',\n sample: '$24.00',\n },\n {\n name: 'order.ref',\n description: 'Order reference id',\n sample: 'cs_test_123',\n },\n {\n name: 'store.receiptFooter',\n description:\n 'The Receipt footer from the store settings; empty when none is set',\n sample: 'Returns are accepted within 30 days.',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Thanks for your purchase!', variant: 'heading' },\n {\n block: 'text',\n text: 'Here is the receipt for your order from {{host.businessName}}.',\n variant: 'body',\n },\n { block: 'text', text: '{{order.summary}}', variant: 'body' },\n { block: 'text', text: 'Total charged: {{order.total}}', variant: 'body' },\n { block: 'text', text: '{{store.receiptFooter}}', variant: 'body' },\n {\n block: 'text',\n text: 'Order reference: {{order.ref}}',\n variant: 'caption',\n },\n ],\n footerReason:\n 'You’re receiving this because you placed an order with {{host.businessName}}.',\n },\n {\n key: 'sale-notification',\n name: 'New sale',\n description: 'Notifies the seller when an order is placed.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'New order on {{site.name}}',\n mergeTokens: [\n {\n name: 'site.name',\n description: 'The site the sale happened on',\n sample: 'Northwind Coffee',\n },\n {\n name: 'order.summary',\n description: 'The ordered items',\n sample: 'House Blend — $12.00',\n },\n { name: 'order.total', description: 'Order total', sample: '$12.00' },\n {\n name: 'buyer.email',\n description: \"The buyer's email\",\n sample: 'buyer@example.com',\n },\n {\n name: 'order.ref',\n description: 'Order reference id',\n sample: 'cs_test_123',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'You made a sale', variant: 'heading' },\n {\n block: 'text',\n text: 'A new order came in on {{site.name}}.',\n variant: 'body',\n },\n { block: 'text', text: '{{order.summary}}', variant: 'body' },\n { block: 'text', text: 'Total: {{order.total}}', variant: 'body' },\n {\n block: 'text',\n text: 'Buyer: {{buyer.email}} · Order {{order.ref}}',\n variant: 'caption',\n },\n ],\n footerReason:\n 'You’re receiving this because you manage {{host.businessName}}.',\n },\n {\n key: 'reservation-confirmed',\n name: 'Reservation confirmed',\n description: 'Confirms a paid reservation to the customer.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Reservation confirmed',\n mergeTokens: [\n {\n name: 'reservation.checkIn',\n description: 'Check-in date',\n sample: 'Mon, 01 Jun 2026',\n },\n {\n name: 'reservation.nights',\n description: 'Number of nights',\n sample: '2',\n },\n {\n name: 'reservation.paid',\n description:\n 'What the guest was charged today, lodging tax included; a ' +\n 'charge that carried lodging tax names it, as in “$254.40, ' +\n 'including $14.40 lodging tax”',\n sample: '$240.00',\n },\n {\n name: 'reservation.balance',\n description:\n 'What is still owed for the stay and where it is paid, as a ' +\n 'sentence; empty when the stay is paid in full',\n sample: 'Still to pay: $360.00, at the property. It has not been charged.',\n },\n {\n name: 'reservation.ref',\n description: 'Reservation reference id',\n sample: 'resv_123',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Reservation confirmed', variant: 'heading' },\n {\n block: 'text',\n text: 'Your stay at {{host.businessName}} is confirmed.',\n variant: 'body',\n },\n {\n block: 'text',\n text: 'Check-in: {{reservation.checkIn}}',\n variant: 'body',\n },\n { block: 'text', text: 'Nights: {{reservation.nights}}', variant: 'body' },\n {\n block: 'text',\n text: 'Paid today: {{reservation.paid}}',\n variant: 'body',\n },\n { block: 'text', text: '{{reservation.balance}}', variant: 'body' },\n {\n block: 'text',\n text: 'Reference: {{reservation.ref}}',\n variant: 'caption',\n },\n ],\n footerReason:\n 'You’re receiving this because you made a reservation with {{host.businessName}}.',\n },\n {\n key: 'gift-card',\n name: 'Gift card delivery',\n description: 'Delivers a purchased gift card to its recipient.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Your gift card for {{host.businessName}}',\n mergeTokens: [\n {\n name: 'giftcard.code',\n description: 'The gift card code',\n sample: 'GC-ABC123DEF456',\n },\n {\n name: 'giftcard.value',\n description: 'The gift card value',\n sample: '$25.00',\n },\n {\n name: 'giftcard.note',\n description:\n 'The note written when the card was issued by hand; empty for a ' +\n 'card bought at checkout',\n sample: 'Happy birthday, Sam!',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Your gift card', variant: 'heading' },\n {\n block: 'text',\n text: 'You have a {{giftcard.value}} gift card for {{host.businessName}}.',\n variant: 'body',\n },\n { block: 'text', text: '{{giftcard.note}}', variant: 'body' },\n {\n block: 'text',\n text: 'Gift card code: {{giftcard.code}}',\n variant: 'body',\n },\n {\n block: 'text',\n text: 'Enter the code at checkout on {{host.url}} to use its balance.',\n variant: 'body',\n },\n {\n block: 'button',\n label: 'Visit {{host.businessName}}',\n href: '{{host.url}}',\n },\n ],\n footerReason:\n 'You’re receiving this because a gift card from {{host.businessName}} was sent to this address.',\n },\n {\n key: 'supplier-fulfillment',\n name: 'Supplier fulfillment',\n description: 'Tells a dropship supplier there is a new order to fulfill.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'fixed',\n },\n {\n key: 'back-in-stock',\n name: 'Back in stock',\n description: 'Tells a customer a product they watched is available again.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Back in stock: {{product.name}}',\n mergeTokens: [\n {\n name: 'product.name',\n description: 'The product that restocked',\n sample: 'House Blend',\n },\n {\n name: 'product.url',\n description: 'Link to the product page',\n sample: 'https://shop.example.com/products/house-blend',\n },\n ],\n defaultBody: [\n {\n block: 'text',\n text: '{{product.name}} is back in stock at {{host.businessName}}.',\n variant: 'body',\n },\n { block: 'button', label: 'View product', href: '{{product.url}}' },\n ],\n footerReason:\n 'You’re receiving this because you asked {{host.businessName}} to tell you when this was back.',\n },\n {\n key: 'abandoned-cart',\n name: 'Abandoned cart',\n description: 'Reminds a shopper of items left in their cart.',\n // The cron refuses to send this without the entitlement\n // (`process-abandoned.ts:92`), so the console has to say so (AGL-2081).\n requiresFeature: 'abandonedCart',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'You left something in your cart',\n mergeTokens: [\n {\n name: 'cart.url',\n description: 'Link back to the shopper cart',\n sample: 'https://shop.example.com/cart',\n },\n ],\n defaultBody: [\n {\n block: 'text',\n text:\n 'You left items in your cart at {{host.businessName}}. Pick up ' +\n 'where you left off.',\n variant: 'body',\n },\n { block: 'button', label: 'Return to cart', href: '{{cart.url}}' },\n {\n block: 'text',\n text: 'Nothing in your cart is held for you.',\n variant: 'caption',\n },\n ],\n footerReason:\n 'You’re receiving this because you started a checkout with {{host.businessName}}.',\n },\n {\n key: 'member-post',\n name: 'New member post',\n description: 'Notifies members when new members-only content is posted.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: '{{post.title}}',\n mergeTokens: [\n { name: 'post.title', description: 'The post’s title', sample: 'This month in the studio' },\n {\n name: 'post.body',\n description: 'The post, as its author wrote it',\n sample: 'Three new pieces are up for members first.',\n },\n ],\n defaultBody: [\n { block: 'text', text: '{{post.title}}', variant: 'heading' },\n { block: 'text', text: '{{post.body}}', variant: 'body' },\n ],\n footerReason: 'You’re receiving this because you’re a member of {{host.businessName}}.',\n },\n {\n key: 'member-password-reset',\n name: 'Member password reset',\n description:\n \"Resets a site member's password — a store-member account, separate \" +\n 'from a console login. Sent when the member asks, and when a site ' +\n 'administrator starts a reset for them.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Reset your {{site.name}} password',\n mergeTokens: [\n { name: 'site.name', description: 'The site’s name', sample: 'Northwind Coffee' },\n {\n name: 'reset.intro',\n description: 'Who started the reset',\n sample: 'Someone asked to reset the password for your Northwind Coffee account.',\n },\n {\n name: 'resetUrl',\n description: 'The one-time reset link',\n sample: 'https://shop.example.com/recover?token=…',\n },\n {\n name: 'reset.note',\n description: 'How long the link lasts, and what to do if unexpected',\n sample:\n 'The link works once and expires in 1 hour. If you did not ask for ' +\n 'this, you can safely ignore this email — your password is unchanged.',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Reset your password', variant: 'heading' },\n { block: 'text', text: '{{reset.intro}}', variant: 'body' },\n { block: 'button', label: 'Set a new password', href: '{{resetUrl}}' },\n { block: 'text', text: '{{reset.note}}', variant: 'caption' },\n ],\n footerReason:\n 'You’re receiving this because a password reset was started for your ' +\n '{{host.businessName}} account.',\n },\n {\n key: 'member-password-changed',\n name: 'Member password changed',\n description:\n 'Tells a site member that a site administrator set a new password on ' +\n 'their account.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Your {{site.name}} password was changed',\n mergeTokens: [\n { name: 'site.name', description: 'The site’s name', sample: 'Northwind Coffee' },\n {\n name: 'signInUrl',\n description: 'Where the member signs back in',\n sample: 'https://shop.example.com',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Your password was changed', variant: 'heading' },\n {\n block: 'text',\n text:\n 'An administrator of {{site.name}} set a new password on your ' +\n 'account and signed you out on every device. To sign back in, ' +\n 'get the new password from them, or choose \"Forgot password?\" on ' +\n 'the sign-in page to set your own.',\n variant: 'body',\n },\n { block: 'button', label: 'Sign in', href: '{{signInUrl}}' },\n {\n block: 'text',\n text: 'If you did not expect this, contact the site owner.',\n variant: 'caption',\n },\n ],\n footerReason:\n 'You’re receiving this because the password on your ' +\n '{{host.businessName}} account was changed.',\n },\n {\n key: 'newsletter-confirmation',\n name: 'Subscription confirmation',\n description:\n 'Asks someone who signed up for a site’s emails to confirm the address ' +\n 'before anything is sent to it.',\n pluginId: 'commerce',\n plugin: 'Commerce',\n control: 'besigner',\n defaultSubject: 'Confirm your subscription',\n mergeTokens: [\n {\n name: 'stream.name',\n description: 'What they signed up for',\n sample: 'Newsletter',\n },\n {\n name: 'confirmUrl',\n description: 'The confirmation link',\n sample: 'https://shop.example.com/subscribe/confirm?token=…',\n },\n ],\n defaultBody: [\n { block: 'text', text: 'Confirm your subscription', variant: 'heading' },\n {\n block: 'text',\n text:\n 'Please confirm that you want to get {{stream.name}} emails from ' +\n '{{host.businessName}} at this address.',\n variant: 'body',\n },\n { block: 'button', label: 'Confirm my subscription', href: '{{confirmUrl}}' },\n {\n block: 'text',\n text:\n 'The link works for three days. If you did not sign up, ignore this ' +\n 'message — nothing will be sent.',\n variant: 'caption',\n },\n ],\n footerReason:\n 'You’re receiving this because this address was entered on ' +\n '{{host.businessName}}’s signup form.',\n },\n ]\n}\n"],"names":["commerceTenantEmails","key","name","description","pluginId","plugin","control","defaultSubject","mergeTokens","sample","defaultBody","block","text","variant","footerReason","label","href","requiresFeature"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAID;;;;;;;;;;;;;;CAcC,GACD,OAAO,SAASA;IACd,OAAO;QACL;YACEC,KAAK;YACLC,MAAM;YACNC,aAAa;YACbC,UAAU;YACVC,QAAQ;YACRC,SAAS;YACTC,gBAAgB;YAChBC,aAAa;gBACX;oBACEN,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;aACD;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;YACFC,UAAU;YACVC,QAAQ;YACRC,SAAS;YACTC,gBAAgB;YAChBC,aAAa;gBACX;oBACEN,MAAM;oBACNC,aAAa;oBACbM,QAAQ;gBACV;gBACA;oBACEP,MAAM;oBACNC,aAAa;oBACbM,QAAQ;gBACV;aACD;YACDC,aAAa;gBACX;oBAAEC,OAAO;oBAAQC,MAAM;oBAA6BC,SAAS;gBAAU;gBACvE;oBACEF,OAAO;oBACPC,MACE,qEACA;oBACFC,SAAS;gBACX;gBACA;oBAAEF,OAAO;oBAAUI,OAAO;oBAA2BC,MAAM;gBAAiB;gBAC5E;oBACEL,OAAO;oBACPC,MACE,wEACA;oBACFC,SAAS;gBACX;aACD;YACDC,cACE,+DACA;QACJ;KACD;AACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The CRM's `contact`, `lead` and `company` record routes (AGL-3080), stood in
|
|
19
|
+
* for this plugin's specs, which may not load the CRM. They answer what the
|
|
20
|
+
* CRM publishes — a record's page under the site's hub or the organization's,
|
|
21
|
+
* and the Contacts list opened on one address — and what it publishes is held
|
|
22
|
+
* in its own `crm-record-routes.spec.ts`. Registered under the owner's id,
|
|
23
|
+
* `crm`, so a spec asking what happens where it is not loaded unregisters it.
|
|
24
|
+
*/
|
|
25
|
+
export declare function standInCrmRecordRoutes(): void;
|