@moksa/plugin-commerce-retention 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +609 -0
- package/dist/manifest.json +616 -0
- package/dist/moksa-commerce-retention-0.1.0.tar.gz +0 -0
- package/dist/plugin.d.mts +6 -0
- package/dist/plugin.mjs +7 -0
- package/emdash-plugin.jsonc +73 -0
- package/package.json +43 -5
- package/README.md +0 -3
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "moksa-commerce-retention",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"declaredAccess": {
|
|
5
|
+
"content": {
|
|
6
|
+
"read": {},
|
|
7
|
+
"write": {},
|
|
8
|
+
"publish": {},
|
|
9
|
+
"revisionsRead": {}
|
|
10
|
+
},
|
|
11
|
+
"taxonomies": {
|
|
12
|
+
"read": {},
|
|
13
|
+
"write": {}
|
|
14
|
+
},
|
|
15
|
+
"email": {
|
|
16
|
+
"send": {}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"capabilities": [
|
|
20
|
+
"content:read",
|
|
21
|
+
"content:revisions:read",
|
|
22
|
+
"content:write",
|
|
23
|
+
"content:publish",
|
|
24
|
+
"taxonomies:read",
|
|
25
|
+
"taxonomies:write",
|
|
26
|
+
"email:send"
|
|
27
|
+
],
|
|
28
|
+
"allowedHosts": [],
|
|
29
|
+
"storage": {
|
|
30
|
+
"carts": {
|
|
31
|
+
"indexes": [
|
|
32
|
+
"status",
|
|
33
|
+
"token",
|
|
34
|
+
"cartToken",
|
|
35
|
+
"owner",
|
|
36
|
+
"orderNumber",
|
|
37
|
+
"createdAt",
|
|
38
|
+
"lastActivityAt",
|
|
39
|
+
[
|
|
40
|
+
"status",
|
|
41
|
+
"lastActivityAt"
|
|
42
|
+
]
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"owners": {
|
|
46
|
+
"indexes": [
|
|
47
|
+
"updatedAt"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"optouts": {
|
|
51
|
+
"indexes": [
|
|
52
|
+
"createdAt"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"sales": {
|
|
56
|
+
"indexes": [
|
|
57
|
+
"units"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"registry": {
|
|
61
|
+
"indexes": [
|
|
62
|
+
"createdAt"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"events": {
|
|
66
|
+
"indexes": [
|
|
67
|
+
"createdAt"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"marks": {
|
|
71
|
+
"indexes": [
|
|
72
|
+
"createdAt"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"reports": {
|
|
76
|
+
"indexes": [
|
|
77
|
+
"status",
|
|
78
|
+
"nextAt",
|
|
79
|
+
[
|
|
80
|
+
"status",
|
|
81
|
+
"nextAt"
|
|
82
|
+
]
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"hooks": [
|
|
87
|
+
"plugin:activate",
|
|
88
|
+
"cron",
|
|
89
|
+
"content:afterSave",
|
|
90
|
+
"content:afterPublish",
|
|
91
|
+
"content:afterUnpublish",
|
|
92
|
+
"content:afterDelete"
|
|
93
|
+
],
|
|
94
|
+
"routes": [
|
|
95
|
+
{
|
|
96
|
+
"name": "migrate/import",
|
|
97
|
+
"methods": [
|
|
98
|
+
"POST"
|
|
99
|
+
],
|
|
100
|
+
"permission": "plugins:manage"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "migrate/kv",
|
|
104
|
+
"methods": [
|
|
105
|
+
"POST"
|
|
106
|
+
],
|
|
107
|
+
"permission": "plugins:manage"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "migrate/stats",
|
|
111
|
+
"methods": [
|
|
112
|
+
"GET",
|
|
113
|
+
"POST"
|
|
114
|
+
],
|
|
115
|
+
"permission": "plugins:manage"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "bus/events",
|
|
119
|
+
"methods": [
|
|
120
|
+
"POST"
|
|
121
|
+
],
|
|
122
|
+
"request": {
|
|
123
|
+
"body": "text",
|
|
124
|
+
"maxBytes": 262144,
|
|
125
|
+
"headers": [
|
|
126
|
+
"x-moksa-bus-ts",
|
|
127
|
+
"x-moksa-bus-id",
|
|
128
|
+
"x-moksa-bus-sig"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"public": true
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "bus/reports/due",
|
|
135
|
+
"methods": [
|
|
136
|
+
"POST"
|
|
137
|
+
],
|
|
138
|
+
"request": {
|
|
139
|
+
"body": "text",
|
|
140
|
+
"maxBytes": 262144,
|
|
141
|
+
"headers": [
|
|
142
|
+
"x-moksa-bus-ts",
|
|
143
|
+
"x-moksa-bus-id",
|
|
144
|
+
"x-moksa-bus-sig"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"public": true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "bus/reports/ack",
|
|
151
|
+
"methods": [
|
|
152
|
+
"POST"
|
|
153
|
+
],
|
|
154
|
+
"request": {
|
|
155
|
+
"body": "text",
|
|
156
|
+
"maxBytes": 262144,
|
|
157
|
+
"headers": [
|
|
158
|
+
"x-moksa-bus-ts",
|
|
159
|
+
"x-moksa-bus-id",
|
|
160
|
+
"x-moksa-bus-sig"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"public": true
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "bus/retention/capture",
|
|
167
|
+
"methods": [
|
|
168
|
+
"POST"
|
|
169
|
+
],
|
|
170
|
+
"request": {
|
|
171
|
+
"body": "text",
|
|
172
|
+
"maxBytes": 262144,
|
|
173
|
+
"headers": [
|
|
174
|
+
"x-moksa-bus-ts",
|
|
175
|
+
"x-moksa-bus-id",
|
|
176
|
+
"x-moksa-bus-sig"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"public": true
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "bus/retention/status",
|
|
183
|
+
"methods": [
|
|
184
|
+
"POST"
|
|
185
|
+
],
|
|
186
|
+
"request": {
|
|
187
|
+
"body": "text",
|
|
188
|
+
"maxBytes": 262144,
|
|
189
|
+
"headers": [
|
|
190
|
+
"x-moksa-bus-ts",
|
|
191
|
+
"x-moksa-bus-id",
|
|
192
|
+
"x-moksa-bus-sig"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"public": true
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "bus/retention/recover",
|
|
199
|
+
"methods": [
|
|
200
|
+
"POST"
|
|
201
|
+
],
|
|
202
|
+
"request": {
|
|
203
|
+
"body": "text",
|
|
204
|
+
"maxBytes": 262144,
|
|
205
|
+
"headers": [
|
|
206
|
+
"x-moksa-bus-ts",
|
|
207
|
+
"x-moksa-bus-id",
|
|
208
|
+
"x-moksa-bus-sig"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"public": true
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "bus/retention/stop",
|
|
215
|
+
"methods": [
|
|
216
|
+
"POST"
|
|
217
|
+
],
|
|
218
|
+
"request": {
|
|
219
|
+
"body": "text",
|
|
220
|
+
"maxBytes": 262144,
|
|
221
|
+
"headers": [
|
|
222
|
+
"x-moksa-bus-ts",
|
|
223
|
+
"x-moksa-bus-id",
|
|
224
|
+
"x-moksa-bus-sig"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"public": true
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "bus/retention/picks",
|
|
231
|
+
"methods": [
|
|
232
|
+
"POST"
|
|
233
|
+
],
|
|
234
|
+
"request": {
|
|
235
|
+
"body": "text",
|
|
236
|
+
"maxBytes": 262144,
|
|
237
|
+
"headers": [
|
|
238
|
+
"x-moksa-bus-ts",
|
|
239
|
+
"x-moksa-bus-id",
|
|
240
|
+
"x-moksa-bus-sig"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"public": true
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "bus/retention/recommend",
|
|
247
|
+
"methods": [
|
|
248
|
+
"POST"
|
|
249
|
+
],
|
|
250
|
+
"request": {
|
|
251
|
+
"body": "text",
|
|
252
|
+
"maxBytes": 262144,
|
|
253
|
+
"headers": [
|
|
254
|
+
"x-moksa-bus-ts",
|
|
255
|
+
"x-moksa-bus-id",
|
|
256
|
+
"x-moksa-bus-sig"
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
"public": true
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "carts/list",
|
|
263
|
+
"methods": [
|
|
264
|
+
"GET",
|
|
265
|
+
"POST"
|
|
266
|
+
],
|
|
267
|
+
"permission": "plugins:manage"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "carts/report",
|
|
271
|
+
"methods": [
|
|
272
|
+
"GET",
|
|
273
|
+
"POST"
|
|
274
|
+
],
|
|
275
|
+
"permission": "plugins:manage"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "carts/send",
|
|
279
|
+
"methods": [
|
|
280
|
+
"GET",
|
|
281
|
+
"POST"
|
|
282
|
+
],
|
|
283
|
+
"permission": "plugins:manage"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "carts/delete",
|
|
287
|
+
"methods": [
|
|
288
|
+
"GET",
|
|
289
|
+
"POST"
|
|
290
|
+
],
|
|
291
|
+
"permission": "plugins:manage"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "products/export",
|
|
295
|
+
"methods": [
|
|
296
|
+
"GET",
|
|
297
|
+
"POST"
|
|
298
|
+
],
|
|
299
|
+
"permission": "plugins:manage"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "products/import",
|
|
303
|
+
"methods": [
|
|
304
|
+
"GET",
|
|
305
|
+
"POST"
|
|
306
|
+
],
|
|
307
|
+
"permission": "plugins:manage"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "admin",
|
|
311
|
+
"permission": "plugins:manage"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"mcp": {
|
|
315
|
+
"tools": [
|
|
316
|
+
{
|
|
317
|
+
"name": "list_abandoned_carts",
|
|
318
|
+
"description": "Abandoned carts (未結帳購物車): shopper, items, subtotal, status (open, recovered, converted, expired, emptied, unsubscribed, withdrawn), reminders sent, coupon and recovered order.",
|
|
319
|
+
"route": "carts/list",
|
|
320
|
+
"permission": "plugins:manage",
|
|
321
|
+
"destructive": false,
|
|
322
|
+
"inputSchema": {
|
|
323
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
324
|
+
"type": "object",
|
|
325
|
+
"properties": {
|
|
326
|
+
"status": {
|
|
327
|
+
"enum": [
|
|
328
|
+
"all",
|
|
329
|
+
"open",
|
|
330
|
+
"recovered",
|
|
331
|
+
"converted",
|
|
332
|
+
"expired",
|
|
333
|
+
"emptied",
|
|
334
|
+
"unsubscribed",
|
|
335
|
+
"withdrawn"
|
|
336
|
+
],
|
|
337
|
+
"default": "all"
|
|
338
|
+
},
|
|
339
|
+
"search": {
|
|
340
|
+
"anyOf": [
|
|
341
|
+
{
|
|
342
|
+
"type": "string",
|
|
343
|
+
"maxLength": 100
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"type": "null"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"page": {
|
|
351
|
+
"type": "integer",
|
|
352
|
+
"minimum": 1,
|
|
353
|
+
"maximum": 10000,
|
|
354
|
+
"default": 1
|
|
355
|
+
},
|
|
356
|
+
"perPage": {
|
|
357
|
+
"type": "integer",
|
|
358
|
+
"minimum": 1,
|
|
359
|
+
"maximum": 100,
|
|
360
|
+
"default": 30
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"additionalProperties": true
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "abandoned_cart_report",
|
|
368
|
+
"description": "Abandoned-cart recovery report for the last N days: carts tracked, reminded, clicked, recovered, recovery rate (%), recovered revenue (paid orders) and open cart value.",
|
|
369
|
+
"route": "carts/report",
|
|
370
|
+
"permission": "plugins:manage",
|
|
371
|
+
"destructive": false,
|
|
372
|
+
"inputSchema": {
|
|
373
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
374
|
+
"type": "object",
|
|
375
|
+
"properties": {
|
|
376
|
+
"days": {
|
|
377
|
+
"type": "integer",
|
|
378
|
+
"minimum": 1,
|
|
379
|
+
"maximum": 365,
|
|
380
|
+
"default": 30
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"additionalProperties": true
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "send_abandoned_cart_reminders",
|
|
388
|
+
"description": "Send abandoned-cart reminders now: with id, the next reminder for that one cart; without id, every reminder that is due (same as the scheduled job). Sends email to shoppers; each reminder goes out once.",
|
|
389
|
+
"route": "carts/send",
|
|
390
|
+
"permission": "plugins:manage",
|
|
391
|
+
"destructive": true,
|
|
392
|
+
"inputSchema": {
|
|
393
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
394
|
+
"type": "object",
|
|
395
|
+
"properties": {
|
|
396
|
+
"id": {
|
|
397
|
+
"anyOf": [
|
|
398
|
+
{
|
|
399
|
+
"type": "string",
|
|
400
|
+
"maxLength": 40
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "null"
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"additionalProperties": true
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "delete_abandoned_cart",
|
|
413
|
+
"description": "Delete one abandoned-cart record (stops its reminders).",
|
|
414
|
+
"route": "carts/delete",
|
|
415
|
+
"permission": "plugins:manage",
|
|
416
|
+
"destructive": true,
|
|
417
|
+
"inputSchema": {
|
|
418
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
419
|
+
"type": "object",
|
|
420
|
+
"properties": {
|
|
421
|
+
"id": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"minLength": 1,
|
|
424
|
+
"maxLength": 40
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"additionalProperties": true,
|
|
428
|
+
"required": [
|
|
429
|
+
"id"
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "export_products_csv",
|
|
435
|
+
"description": "Export products as CSV (WooCommerce-style rows: simple, variable, variation) with prices, sale prices, categories, attributes and up/cross-sells, one page at a time: pass the returned cursor until it is null and join the csv parts (the header comes with the first page). The stock column is blank: stock is core's (list_inventory).",
|
|
436
|
+
"route": "products/export",
|
|
437
|
+
"permission": "plugins:manage",
|
|
438
|
+
"destructive": false,
|
|
439
|
+
"inputSchema": {
|
|
440
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
441
|
+
"type": "object",
|
|
442
|
+
"properties": {
|
|
443
|
+
"includeDrafts": {
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"default": true
|
|
446
|
+
},
|
|
447
|
+
"cursor": {
|
|
448
|
+
"anyOf": [
|
|
449
|
+
{
|
|
450
|
+
"type": "string",
|
|
451
|
+
"maxLength": 200
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"type": "null"
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
"limit": {
|
|
459
|
+
"type": "integer",
|
|
460
|
+
"minimum": 1,
|
|
461
|
+
"maximum": 100,
|
|
462
|
+
"default": 50
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"additionalProperties": true
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "import_products_csv",
|
|
470
|
+
"description": "Import products from CSV in the export_products_csv format. dryRun (default true) only returns the plan: per product create/update/unchanged/error with the changed fields and per-row errors. With dryRun false, valid products are written in batches (new ones as draft unless publish is true or the status column says published): call again with offset = next until next is null. A stock cell sets the SKU's stock in core; rows with errors are skipped. Uploading the same file again changes nothing.",
|
|
471
|
+
"route": "products/import",
|
|
472
|
+
"permission": "plugins:manage",
|
|
473
|
+
"destructive": true,
|
|
474
|
+
"inputSchema": {
|
|
475
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
476
|
+
"type": "object",
|
|
477
|
+
"properties": {
|
|
478
|
+
"csv": {
|
|
479
|
+
"type": "string",
|
|
480
|
+
"minLength": 1,
|
|
481
|
+
"maxLength": 5000000
|
|
482
|
+
},
|
|
483
|
+
"dryRun": {
|
|
484
|
+
"type": "boolean",
|
|
485
|
+
"default": true
|
|
486
|
+
},
|
|
487
|
+
"publish": {
|
|
488
|
+
"type": "boolean",
|
|
489
|
+
"default": false
|
|
490
|
+
},
|
|
491
|
+
"offset": {
|
|
492
|
+
"type": "integer",
|
|
493
|
+
"minimum": 0,
|
|
494
|
+
"maximum": 100000,
|
|
495
|
+
"default": 0
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"additionalProperties": true,
|
|
499
|
+
"required": [
|
|
500
|
+
"csv"
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
"admin": {
|
|
507
|
+
"settingsSchema": {
|
|
508
|
+
"storeName": {
|
|
509
|
+
"label": "商店名稱(提醒信標題)",
|
|
510
|
+
"type": "string",
|
|
511
|
+
"default": ""
|
|
512
|
+
},
|
|
513
|
+
"abandonedEnabled": {
|
|
514
|
+
"label": "啟用購物車未結帳提醒",
|
|
515
|
+
"type": "boolean",
|
|
516
|
+
"default": false
|
|
517
|
+
},
|
|
518
|
+
"abandonedSchedule": {
|
|
519
|
+
"label": "提醒時間(閒置幾小時後寄出,逗號分隔,最多 3 次)",
|
|
520
|
+
"description": "例如「1,24,72」:閒置 1 小時寄第一封、24 小時第二封、72 小時第三封。",
|
|
521
|
+
"type": "string",
|
|
522
|
+
"default": "1,24,72"
|
|
523
|
+
},
|
|
524
|
+
"abandonedRequireConsent": {
|
|
525
|
+
"label": "會員需同意接收行銷訊息(訂閱會員電子報)才寄送",
|
|
526
|
+
"type": "boolean",
|
|
527
|
+
"default": true
|
|
528
|
+
},
|
|
529
|
+
"abandonedLineEnabled": {
|
|
530
|
+
"label": "已綁定 LINE 的會員同時以 LINE 提醒",
|
|
531
|
+
"type": "boolean",
|
|
532
|
+
"default": true
|
|
533
|
+
},
|
|
534
|
+
"abandonedMinSubtotal": {
|
|
535
|
+
"label": "購物車小計至少多少元才提醒(0 為不限)",
|
|
536
|
+
"type": "number",
|
|
537
|
+
"default": 0,
|
|
538
|
+
"min": 0
|
|
539
|
+
},
|
|
540
|
+
"abandonedExpireDays": {
|
|
541
|
+
"label": "超過幾天未回來就停止追蹤",
|
|
542
|
+
"type": "number",
|
|
543
|
+
"default": 30,
|
|
544
|
+
"min": 1
|
|
545
|
+
},
|
|
546
|
+
"abandonedCouponOn": {
|
|
547
|
+
"label": "在第幾封提醒附上專屬優惠碼",
|
|
548
|
+
"type": "select",
|
|
549
|
+
"options": [
|
|
550
|
+
{
|
|
551
|
+
"value": "0",
|
|
552
|
+
"label": "不附優惠碼"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"value": "1",
|
|
556
|
+
"label": "第 1 封"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"value": "2",
|
|
560
|
+
"label": "第 2 封"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"value": "3",
|
|
564
|
+
"label": "第 3 封"
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"default": "0"
|
|
568
|
+
},
|
|
569
|
+
"abandonedCouponType": {
|
|
570
|
+
"label": "優惠碼類型",
|
|
571
|
+
"type": "select",
|
|
572
|
+
"options": [
|
|
573
|
+
{
|
|
574
|
+
"value": "percent",
|
|
575
|
+
"label": "百分比折扣"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"value": "fixed_cart",
|
|
579
|
+
"label": "整單折抵金額"
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
"default": "percent"
|
|
583
|
+
},
|
|
584
|
+
"abandonedCouponAmount": {
|
|
585
|
+
"label": "折扣(百分比填 10 為 9 折;金額填元)",
|
|
586
|
+
"type": "number",
|
|
587
|
+
"default": 10,
|
|
588
|
+
"min": 1
|
|
589
|
+
},
|
|
590
|
+
"abandonedCouponDays": {
|
|
591
|
+
"label": "優惠碼有效天數",
|
|
592
|
+
"type": "number",
|
|
593
|
+
"default": 3,
|
|
594
|
+
"min": 1
|
|
595
|
+
},
|
|
596
|
+
"busKey": {
|
|
597
|
+
"label": "匯流排金鑰",
|
|
598
|
+
"description": "由 scripts/provision-bus.mjs 寫入。",
|
|
599
|
+
"type": "secret"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"pages": [
|
|
603
|
+
{
|
|
604
|
+
"path": "/carts",
|
|
605
|
+
"label": "未結帳購物車",
|
|
606
|
+
"icon": "cart"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"path": "/products-csv",
|
|
610
|
+
"label": "商品匯入匯出",
|
|
611
|
+
"icon": "upload"
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"widgets": []
|
|
615
|
+
}
|
|
616
|
+
}
|
|
Binary file
|