@clipboard-health/notifications 1.2.3 → 1.2.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
CHANGED
|
@@ -81,8 +81,10 @@ Send notifications through third-party providers.
|
|
|
81
81
|
EXAMPLE_NOTIFICATION_JOB_NAME,
|
|
82
82
|
// Important: Read the TypeDoc documentation for additional context.
|
|
83
83
|
{
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Set expiresAt at enqueue-time so it remains stable across job retries. Use date-fns in your
|
|
86
|
+
* service instead of this manual calculation.
|
|
87
|
+
*/
|
|
86
88
|
expiresAt: new Date(Date.now() + 60 * 60_000).toISOString(),
|
|
87
89
|
// Set idempotencyKey at enqueue-time so it remains stable across job retries.
|
|
88
90
|
idempotencyKey: {
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/notifications",
|
|
3
3
|
"description": "Send notifications through third-party providers.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@clipboard-health/background-jobs-adapter": "0.5.2",
|
|
8
|
-
"@clipboard-health/phone-number": "0.9.
|
|
9
|
-
"@clipboard-health/util-ts": "3.18.
|
|
8
|
+
"@clipboard-health/phone-number": "0.9.2",
|
|
9
|
+
"@clipboard-health/util-ts": "3.18.2",
|
|
10
10
|
"@knocklabs/node": "1.20.0",
|
|
11
11
|
"tslib": "2.8.1"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@clipboard-health/testing-core": "0.27.
|
|
14
|
+
"@clipboard-health/testing-core": "0.27.2",
|
|
15
15
|
"type-fest": "5.1.0"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
@@ -136,8 +136,10 @@ export declare class NotificationJobEnqueuer {
|
|
|
136
136
|
* EXAMPLE_NOTIFICATION_JOB_NAME,
|
|
137
137
|
* // Important: Read the TypeDoc documentation for additional context.
|
|
138
138
|
* {
|
|
139
|
-
*
|
|
140
|
-
*
|
|
139
|
+
* /**
|
|
140
|
+
* * Set expiresAt at enqueue-time so it remains stable across job retries. Use date-fns in your
|
|
141
|
+
* * service instead of this manual calculation.
|
|
142
|
+
* *\/
|
|
141
143
|
* expiresAt: new Date(Date.now() + 60 * 60_000).toISOString(),
|
|
142
144
|
* // Set idempotencyKey at enqueue-time so it remains stable across job retries.
|
|
143
145
|
* idempotencyKey: {
|
|
@@ -54,8 +54,10 @@ class NotificationJobEnqueuer {
|
|
|
54
54
|
* EXAMPLE_NOTIFICATION_JOB_NAME,
|
|
55
55
|
* // Important: Read the TypeDoc documentation for additional context.
|
|
56
56
|
* {
|
|
57
|
-
*
|
|
58
|
-
*
|
|
57
|
+
* /**
|
|
58
|
+
* * Set expiresAt at enqueue-time so it remains stable across job retries. Use date-fns in your
|
|
59
|
+
* * service instead of this manual calculation.
|
|
60
|
+
* *\/
|
|
59
61
|
* expiresAt: new Date(Date.now() + 60 * 60_000).toISOString(),
|
|
60
62
|
* // Set idempotencyKey at enqueue-time so it remains stable across job retries.
|
|
61
63
|
* idempotencyKey: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationJobEnqueuer.js","sourceRoot":"","sources":["../../../../../packages/notifications/src/lib/notificationJobEnqueuer.ts"],"names":[],"mappings":";;;AAAA,uFAMmD;AAEnD,gEAA6D;AAC7D,oGAAiG;AACjG,mEAIiC;AAiHjC,MAAa,uBAAuB;IACjB,OAAO,CAA2C;IAEnE,YAAY,MAAqC;QAC/C,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAE3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"notificationJobEnqueuer.js","sourceRoot":"","sources":["../../../../../packages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