@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.
@@ -1,4 +1,4 @@
1
- import { GrpcErrorMessage, NumberPreconditionsCheck } from "@fonoster/common";
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;
@@ -1,4 +1,3 @@
1
- import { GrpcErrorMessage } from "@fonoster/common";
2
1
  import { NumbersApi } from "@fonoster/types";
3
2
  declare function getNumber(api: NumbersApi): (call: {
4
3
  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.baseApiObjectSchema);
43
+ return (0, common_1.withErrorHandlingAndValidation)(fn, common_1.Validators.emptySchema);
44
44
  }
@@ -1,4 +1,3 @@
1
- import { GrpcErrorMessage } from "@fonoster/common";
2
1
  import { NumbersApi } from "@fonoster/types";
3
2
  declare function listNumbers(api: NumbersApi): (call: {
4
3
  request: unknown;
@@ -1,4 +1,4 @@
1
- import { GrpcErrorMessage, NumberPreconditionsCheck } from "@fonoster/common";
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;
@@ -1,4 +1,3 @@
1
- import { GrpcErrorMessage } from "@fonoster/common";
2
1
  import { z } from "zod";
3
2
  declare function createResource<T, R, U>(api: U, resource: string, schema: z.ZodSchema): (call: {
4
3
  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.baseApiObjectSchema);
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.baseApiObjectSchema);
41
+ return (0, common_1.withErrorHandlingAndValidation)((0, identity_1.withAccess)(fn, (ref) => api[`get${resource}`](ref)), common_1.Validators.emptySchema);
42
42
  }
@@ -1,4 +1,3 @@
1
- import { GrpcErrorMessage } from "@fonoster/common";
2
1
  declare function listResources<T, R, U>(api: U, resource: string): (call: {
3
2
  request: unknown;
4
3
  }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: unknown) => void) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/sipnet",
3
- "version": "0.7.22",
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.22",
24
- "@fonoster/identity": "^0.7.22",
23
+ "@fonoster/common": "^0.7.25",
24
+ "@fonoster/identity": "^0.7.25",
25
25
  "@fonoster/logger": "^0.7.22",
26
- "@fonoster/types": "^0.7.22",
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": "3755f19ef8a8b7f584f6f27e3dc5c277d63f1a19"
44
+ "gitHead": "f5dbfe479bd50b105ce3eb4b3c260503ef718f57"
45
45
  }