@passly-nl/data 1.0.3 → 1.0.4
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 +10 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/service/EmailTemplateEditorService.ts +13 -12
- package/src/service/MerchantEventProductService.ts +0 -1
- package/src/service/PublicShopService.ts +1 -1
- package/src/types/emailTemplate.ts +3 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@passly-nl/data",
|
|
3
3
|
"description": "API implementation for Passly.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"./*": "./*"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@basmilius/http-client": "^3.
|
|
54
|
-
"@flux-ui/types": "^3.0.0-next.
|
|
53
|
+
"@basmilius/http-client": "^3.14.0",
|
|
54
|
+
"@flux-ui/types": "^3.0.0-next.35",
|
|
55
55
|
"@fortawesome/fontawesome-common-types": "^7.2.0",
|
|
56
56
|
"apexcharts": "^5.10.4",
|
|
57
57
|
"luxon": "^3.7.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/luxon": "^3.7.1",
|
|
61
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
62
|
-
"tsdown": "^0.21.
|
|
61
|
+
"@typescript/native-preview": "^7.0.0-dev.20260320.1",
|
|
62
|
+
"tsdown": "^0.21.4"
|
|
63
63
|
},
|
|
64
64
|
"overrides": {
|
|
65
65
|
"@disabled-basmilius/http-client": "link:@basmilius/http-client",
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import type { EmailTemplateType } from '
|
|
2
|
-
import type {
|
|
3
|
-
EmailTemplateEditorBlock,
|
|
4
|
-
EmailTemplateEditorButtonBlock,
|
|
5
|
-
EmailTemplateEditorCondition,
|
|
6
|
-
EmailTemplateEditorContext,
|
|
7
|
-
EmailTemplateEditorH1Block,
|
|
8
|
-
EmailTemplateEditorHeaderBlock,
|
|
9
|
-
EmailTemplateEditorIfBlock,
|
|
10
|
-
EmailTemplateEditorParagraphBlock,
|
|
11
|
-
EmailTemplateEditorVariable
|
|
12
|
-
} from '../types/emailTemplateEditor';
|
|
1
|
+
import type { EmailTemplateEditorBlock, EmailTemplateEditorButtonBlock, EmailTemplateEditorCondition, EmailTemplateEditorContext, EmailTemplateEditorH1Block, EmailTemplateEditorHeaderBlock, EmailTemplateEditorIfBlock, EmailTemplateEditorParagraphBlock, EmailTemplateEditorVariable, EmailTemplateType } from '#data/types';
|
|
13
2
|
|
|
14
3
|
const SHARED_VARIABLES: EmailTemplateEditorVariable[] = [
|
|
15
4
|
{label: 'variable.merchantName', path: 'merchant.name'},
|
|
@@ -55,6 +44,10 @@ export const EMAIL_TEMPLATE_EDITOR_CONTEXTS: Record<EmailTemplateType, EmailTemp
|
|
|
55
44
|
],
|
|
56
45
|
conditions: []
|
|
57
46
|
},
|
|
47
|
+
order_canceled: {
|
|
48
|
+
variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
|
|
49
|
+
conditions: [HEADER_CONDITION]
|
|
50
|
+
},
|
|
58
51
|
order_confirmation: {
|
|
59
52
|
variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
|
|
60
53
|
conditions: [
|
|
@@ -64,6 +57,14 @@ export const EMAIL_TEMPLATE_EDITOR_CONTEXTS: Record<EmailTemplateType, EmailTemp
|
|
|
64
57
|
HEADER_CONDITION
|
|
65
58
|
]
|
|
66
59
|
},
|
|
60
|
+
order_expired: {
|
|
61
|
+
variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
|
|
62
|
+
conditions: [HEADER_CONDITION]
|
|
63
|
+
},
|
|
64
|
+
order_failed: {
|
|
65
|
+
variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
|
|
66
|
+
conditions: [HEADER_CONDITION]
|
|
67
|
+
},
|
|
67
68
|
personalization_invite: {
|
|
68
69
|
variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, {label: 'variable.personalizeUrl', path: 'personalizeUrl'}],
|
|
69
70
|
conditions: [HEADER_CONDITION]
|