@open-mercato/checkout 0.7.1-develop.7113.1.9d83dca10c → 0.7.1-develop.7121.1.734c263bda
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.
|
@@ -2,6 +2,7 @@ const notificationTypes = [
|
|
|
2
2
|
{
|
|
3
3
|
type: "checkout.transaction.completed",
|
|
4
4
|
module: "checkout",
|
|
5
|
+
channels: ["in_app", "email"],
|
|
5
6
|
titleKey: "checkout.notifications.transaction.completed.title",
|
|
6
7
|
bodyKey: "checkout.notifications.transaction.completed.body",
|
|
7
8
|
icon: "check-circle",
|
|
@@ -21,6 +22,7 @@ const notificationTypes = [
|
|
|
21
22
|
{
|
|
22
23
|
type: "checkout.transaction.failed",
|
|
23
24
|
module: "checkout",
|
|
25
|
+
channels: ["in_app", "email"],
|
|
24
26
|
titleKey: "checkout.notifications.transaction.failed.title",
|
|
25
27
|
bodyKey: "checkout.notifications.transaction.failed.body",
|
|
26
28
|
icon: "alert-circle",
|
|
@@ -40,6 +42,7 @@ const notificationTypes = [
|
|
|
40
42
|
{
|
|
41
43
|
type: "checkout.link.usageLimitReached",
|
|
42
44
|
module: "checkout",
|
|
45
|
+
channels: ["in_app", "email"],
|
|
43
46
|
titleKey: "checkout.notifications.link.usageLimitReached.title",
|
|
44
47
|
bodyKey: "checkout.notifications.link.usageLimitReached.body",
|
|
45
48
|
icon: "alert-triangle",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/modules/checkout/notifications.ts"],
|
|
4
|
-
"sourcesContent": ["import type { NotificationTypeDefinition } from '@open-mercato/shared/modules/notifications/types'\n\nexport const notificationTypes: NotificationTypeDefinition[] = [\n {\n type: 'checkout.transaction.completed',\n module: 'checkout',\n titleKey: 'checkout.notifications.transaction.completed.title',\n bodyKey: 'checkout.notifications.transaction.completed.body',\n icon: 'check-circle',\n severity: 'success',\n actions: [\n {\n id: 'view',\n labelKey: 'common.view',\n variant: 'outline',\n href: '/backend/checkout/transactions/{sourceEntityId}',\n icon: 'external-link',\n },\n ],\n linkHref: '/backend/checkout/transactions/{sourceEntityId}',\n expiresAfterHours: 168,\n },\n {\n type: 'checkout.transaction.failed',\n module: 'checkout',\n titleKey: 'checkout.notifications.transaction.failed.title',\n bodyKey: 'checkout.notifications.transaction.failed.body',\n icon: 'alert-circle',\n severity: 'error',\n actions: [\n {\n id: 'view',\n labelKey: 'common.view',\n variant: 'outline',\n href: '/backend/checkout/transactions/{sourceEntityId}',\n icon: 'external-link',\n },\n ],\n linkHref: '/backend/checkout/transactions/{sourceEntityId}',\n expiresAfterHours: 168,\n },\n {\n type: 'checkout.link.usageLimitReached',\n module: 'checkout',\n titleKey: 'checkout.notifications.link.usageLimitReached.title',\n bodyKey: 'checkout.notifications.link.usageLimitReached.body',\n icon: 'alert-triangle',\n severity: 'warning',\n actions: [\n {\n id: 'view',\n labelKey: 'common.view',\n variant: 'outline',\n href: '/backend/checkout/pay-links/{sourceEntityId}',\n icon: 'external-link',\n },\n ],\n linkHref: '/backend/checkout/pay-links/{sourceEntityId}',\n expiresAfterHours: 168,\n },\n]\n\nexport default notificationTypes\n"],
|
|
5
|
-
"mappings": "AAEO,MAAM,oBAAkD;AAAA,EAC7D;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACP;AAAA,QACE,IAAI;AAAA,QACJ,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACP;AAAA,QACE,IAAI;AAAA,QACJ,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACP;AAAA,QACE,IAAI;AAAA,QACJ,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,mBAAmB;AAAA,EACrB;AACF;AAEA,IAAO,wBAAQ;",
|
|
4
|
+
"sourcesContent": ["import type { NotificationTypeDefinition } from '@open-mercato/shared/modules/notifications/types'\n\nexport const notificationTypes: NotificationTypeDefinition[] = [\n {\n type: 'checkout.transaction.completed',\n module: 'checkout',\n channels: ['in_app', 'email'],\n titleKey: 'checkout.notifications.transaction.completed.title',\n bodyKey: 'checkout.notifications.transaction.completed.body',\n icon: 'check-circle',\n severity: 'success',\n actions: [\n {\n id: 'view',\n labelKey: 'common.view',\n variant: 'outline',\n href: '/backend/checkout/transactions/{sourceEntityId}',\n icon: 'external-link',\n },\n ],\n linkHref: '/backend/checkout/transactions/{sourceEntityId}',\n expiresAfterHours: 168,\n },\n {\n type: 'checkout.transaction.failed',\n module: 'checkout',\n channels: ['in_app', 'email'],\n titleKey: 'checkout.notifications.transaction.failed.title',\n bodyKey: 'checkout.notifications.transaction.failed.body',\n icon: 'alert-circle',\n severity: 'error',\n actions: [\n {\n id: 'view',\n labelKey: 'common.view',\n variant: 'outline',\n href: '/backend/checkout/transactions/{sourceEntityId}',\n icon: 'external-link',\n },\n ],\n linkHref: '/backend/checkout/transactions/{sourceEntityId}',\n expiresAfterHours: 168,\n },\n {\n type: 'checkout.link.usageLimitReached',\n module: 'checkout',\n channels: ['in_app', 'email'],\n titleKey: 'checkout.notifications.link.usageLimitReached.title',\n bodyKey: 'checkout.notifications.link.usageLimitReached.body',\n icon: 'alert-triangle',\n severity: 'warning',\n actions: [\n {\n id: 'view',\n labelKey: 'common.view',\n variant: 'outline',\n href: '/backend/checkout/pay-links/{sourceEntityId}',\n icon: 'external-link',\n },\n ],\n linkHref: '/backend/checkout/pay-links/{sourceEntityId}',\n expiresAfterHours: 168,\n },\n]\n\nexport default notificationTypes\n"],
|
|
5
|
+
"mappings": "AAEO,MAAM,oBAAkD;AAAA,EAC7D;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU,CAAC,UAAU,OAAO;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACP;AAAA,QACE,IAAI;AAAA,QACJ,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU,CAAC,UAAU,OAAO;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACP;AAAA,QACE,IAAI;AAAA,QACJ,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU,CAAC,UAAU,OAAO;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,MACP;AAAA,QACE,IAAI;AAAA,QACJ,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,mBAAmB;AAAA,EACrB;AACF;AAEA,IAAO,wBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/checkout",
|
|
3
|
-
"version": "0.7.1-develop.
|
|
3
|
+
"version": "0.7.1-develop.7121.1.734c263bda",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@open-mercato/core": "0.7.1-develop.
|
|
66
|
-
"@open-mercato/ui": "0.7.1-develop.
|
|
65
|
+
"@open-mercato/core": "0.7.1-develop.7121.1.734c263bda",
|
|
66
|
+
"@open-mercato/ui": "0.7.1-develop.7121.1.734c263bda",
|
|
67
67
|
"bcryptjs": "^3.0.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@mikro-orm/postgresql": "^7.0.14",
|
|
71
|
-
"@open-mercato/shared": "0.7.1-develop.
|
|
71
|
+
"@open-mercato/shared": "0.7.1-develop.7121.1.734c263bda",
|
|
72
72
|
"react": "^19.0.0",
|
|
73
73
|
"react-dom": "^19.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@open-mercato/shared": "0.7.1-develop.
|
|
76
|
+
"@open-mercato/shared": "0.7.1-develop.7121.1.734c263bda",
|
|
77
77
|
"@types/jest": "^30.0.0",
|
|
78
78
|
"@types/react": "^19.2.17",
|
|
79
79
|
"@types/react-dom": "^19.2.3",
|
|
@@ -4,6 +4,7 @@ export const notificationTypes: NotificationTypeDefinition[] = [
|
|
|
4
4
|
{
|
|
5
5
|
type: 'checkout.transaction.completed',
|
|
6
6
|
module: 'checkout',
|
|
7
|
+
channels: ['in_app', 'email'],
|
|
7
8
|
titleKey: 'checkout.notifications.transaction.completed.title',
|
|
8
9
|
bodyKey: 'checkout.notifications.transaction.completed.body',
|
|
9
10
|
icon: 'check-circle',
|
|
@@ -23,6 +24,7 @@ export const notificationTypes: NotificationTypeDefinition[] = [
|
|
|
23
24
|
{
|
|
24
25
|
type: 'checkout.transaction.failed',
|
|
25
26
|
module: 'checkout',
|
|
27
|
+
channels: ['in_app', 'email'],
|
|
26
28
|
titleKey: 'checkout.notifications.transaction.failed.title',
|
|
27
29
|
bodyKey: 'checkout.notifications.transaction.failed.body',
|
|
28
30
|
icon: 'alert-circle',
|
|
@@ -42,6 +44,7 @@ export const notificationTypes: NotificationTypeDefinition[] = [
|
|
|
42
44
|
{
|
|
43
45
|
type: 'checkout.link.usageLimitReached',
|
|
44
46
|
module: 'checkout',
|
|
47
|
+
channels: ['in_app', 'email'],
|
|
45
48
|
titleKey: 'checkout.notifications.link.usageLimitReached.title',
|
|
46
49
|
bodyKey: 'checkout.notifications.link.usageLimitReached.body',
|
|
47
50
|
icon: 'alert-triangle',
|