@clipboard-health/notifications 3.11.2 → 3.11.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/notifications",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.4",
|
|
4
4
|
"description": "Send notifications through third-party providers.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@clipboard-health/background-jobs-adapter": "2.7.
|
|
21
|
-
"@clipboard-health/phone-number": "2.9.
|
|
22
|
-
"@clipboard-health/util-ts": "5.
|
|
20
|
+
"@clipboard-health/background-jobs-adapter": "2.7.3",
|
|
21
|
+
"@clipboard-health/phone-number": "2.9.4",
|
|
22
|
+
"@clipboard-health/util-ts": "5.14.1",
|
|
23
23
|
"@knocklabs/node": "1.34.0",
|
|
24
24
|
"tslib": "2.8.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@clipboard-health/testing-core": "2.9.
|
|
27
|
+
"@clipboard-health/testing-core": "2.9.4",
|
|
28
28
|
"type-fest": "5.8.0",
|
|
29
29
|
"vitest": "4.1.10"
|
|
30
30
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ErrorCode, type FailureResult, type ServiceResult } from "@clipboard-health/util-ts";
|
|
1
|
+
import { type ErrorCode, type FailureResult, type ServiceError, type ServiceResult } from "@clipboard-health/util-ts";
|
|
2
2
|
import type { TriggerResponse } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Checks if a result contains specific error codes and is a failure result.
|
|
@@ -6,4 +6,4 @@ import type { TriggerResponse } from "./types";
|
|
|
6
6
|
* @param result - ServiceResult containing an error or T.
|
|
7
7
|
* @param errorCodes - Array of error codes to check for. If empty, any error will match.
|
|
8
8
|
*/
|
|
9
|
-
export declare function errorsInResult<T = TriggerResponse>(result: ServiceResult<T>, errorCodes?: ErrorCode[]): result is FailureResult
|
|
9
|
+
export declare function errorsInResult<T = TriggerResponse, ErrorType extends ServiceError = ServiceError>(result: ServiceResult<T, ErrorType>, errorCodes?: ErrorCode[]): result is FailureResult<ErrorType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorsInResult.js","sourceRoot":"","sources":["../../../../../packages/notifications/src/lib/errorsInResult.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"errorsInResult.js","sourceRoot":"","sources":["../../../../../packages/notifications/src/lib/errorsInResult.ts"],"names":[],"mappings":";;;AAAA,uDAMmC;AAInC;;;;;GAKG;AACH,wBACE,MAAmC,EACnC,UAAU,GAAgB,EAAE;IAE5B,IAAI,IAAA,mBAAS,EAAC,MAAM,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAChG,CAAC;AACJ,CAAC"}
|