@fonoster/sipnet 0.7.22 → 0.7.25
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/numbers/createNumber.d.ts +1 -1
- package/dist/numbers/getNumber.d.ts +0 -1
- package/dist/numbers/getNumber.js +1 -1
- package/dist/numbers/listNumbers.d.ts +0 -1
- package/dist/numbers/updateNumber.d.ts +1 -1
- package/dist/resources/createResource.d.ts +0 -1
- package/dist/resources/deleteResource.js +1 -1
- package/dist/resources/getResource.js +1 -1
- package/dist/resources/listResources.d.ts +0 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NumberPreconditionsCheck } from "@fonoster/common";
|
|
2
2
|
import { NumbersApi } from "@fonoster/types";
|
|
3
3
|
declare function createNumber(api: NumbersApi, checkNumberPreconditions: NumberPreconditionsCheck): (call: {
|
|
4
4
|
request: unknown;
|
|
@@ -40,5 +40,5 @@ function getNumber(api) {
|
|
|
40
40
|
const response = yield api.getNumber(ref);
|
|
41
41
|
callback(null, (0, convertToFonosterNumber_1.convertToFonosterNumber)(response));
|
|
42
42
|
});
|
|
43
|
-
return (0, common_1.withErrorHandlingAndValidation)(fn, common_1.Validators.
|
|
43
|
+
return (0, common_1.withErrorHandlingAndValidation)(fn, common_1.Validators.emptySchema);
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NumberPreconditionsCheck } from "@fonoster/common";
|
|
2
2
|
import { NumbersApi } from "@fonoster/types";
|
|
3
3
|
declare function updateNumber(api: NumbersApi, checkNumberPreconditions: NumberPreconditionsCheck): (call: {
|
|
4
4
|
request: unknown;
|
|
@@ -39,5 +39,5 @@ function deleteResource(api, resource) {
|
|
|
39
39
|
yield api[`delete${resource}`](request.ref);
|
|
40
40
|
return { ref: request.ref };
|
|
41
41
|
});
|
|
42
|
-
return (0, common_1.withErrorHandlingAndValidation)((0, identity_1.withAccess)(fn, (ref) => api[`get${resource}`](ref)), common_1.Validators.
|
|
42
|
+
return (0, common_1.withErrorHandlingAndValidation)((0, identity_1.withAccess)(fn, (ref) => api[`get${resource}`](ref)), common_1.Validators.emptySchema);
|
|
43
43
|
}
|
|
@@ -38,5 +38,5 @@ function getResource(api, resource) {
|
|
|
38
38
|
logger.verbose(`call to get${resource}`, { request, resource });
|
|
39
39
|
return yield api[`get${resource}`](request.ref);
|
|
40
40
|
});
|
|
41
|
-
return (0, common_1.withErrorHandlingAndValidation)((0, identity_1.withAccess)(fn, (ref) => api[`get${resource}`](ref)), common_1.Validators.
|
|
41
|
+
return (0, common_1.withErrorHandlingAndValidation)((0, identity_1.withAccess)(fn, (ref) => api[`get${resource}`](ref)), common_1.Validators.emptySchema);
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/sipnet",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.25",
|
|
4
4
|
"description": "Routr-based SIP stack",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"fonoster": "./dist/index.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@fonoster/common": "^0.7.
|
|
24
|
-
"@fonoster/identity": "^0.7.
|
|
23
|
+
"@fonoster/common": "^0.7.25",
|
|
24
|
+
"@fonoster/identity": "^0.7.25",
|
|
25
25
|
"@fonoster/logger": "^0.7.22",
|
|
26
|
-
"@fonoster/types": "^0.7.
|
|
26
|
+
"@fonoster/types": "^0.7.25",
|
|
27
27
|
"@grpc/grpc-js": "~1.10.6",
|
|
28
28
|
"@routr/sdk": "2.13.1",
|
|
29
29
|
"zod": "^3.23.8"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"bugs": {
|
|
42
42
|
"url": "https://github.com/fonoster/fonoster/issues"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f5dbfe479bd50b105ce3eb4b3c260503ef718f57"
|
|
45
45
|
}
|