@fonoster/apiserver 0.6.1-alpha.0 → 0.6.2-alpha.0

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.
Files changed (99) hide show
  1. package/dist/applications/buildService.d.ts +9 -9
  2. package/dist/applications/buildService.js +1 -2
  3. package/dist/applications/createApplication.d.ts +2 -1
  4. package/dist/applications/createApplication.js +1 -2
  5. package/dist/applications/createGetFnUtil.d.ts +1 -1
  6. package/dist/applications/createGetFnUtil.js +1 -2
  7. package/dist/applications/deleteApplication.d.ts +2 -2
  8. package/dist/applications/deleteApplication.js +19 -2
  9. package/dist/applications/getApplication.d.ts +1 -1
  10. package/dist/applications/getApplication.js +1 -2
  11. package/dist/applications/listApplications.d.ts +2 -1
  12. package/dist/applications/listApplications.js +1 -2
  13. package/dist/applications/updateApplication.d.ts +1 -1
  14. package/dist/applications/updateApplication.js +19 -2
  15. package/dist/applications/utils/applicationWithEncodedStruct.d.ts +1 -1
  16. package/dist/applications/utils/applicationWithEncodedStruct.js +1 -2
  17. package/dist/applications/utils/convertToApplicationData.d.ts +1 -1
  18. package/dist/applications/utils/convertToApplicationData.js +1 -2
  19. package/dist/applications/utils/getApplicationValidationSchema.d.ts +2 -2
  20. package/dist/applications/utils/getApplicationValidationSchema.js +1 -2
  21. package/dist/applications/utils/prepareForValidation.d.ts +1 -1
  22. package/dist/applications/utils/prepareForValidation.js +1 -2
  23. package/dist/applications/utils/validOrThrow.d.ts +1 -1
  24. package/dist/applications/utils/validOrThrow.js +1 -2
  25. package/dist/calls/buildService.js +1 -2
  26. package/dist/calls/createCall.js +1 -2
  27. package/dist/calls/createCallPublisher.js +1 -2
  28. package/dist/calls/createFetchCalls.js +1 -2
  29. package/dist/calls/createFetchSingleCall.js +1 -2
  30. package/dist/calls/createTrackCallSubscriber.d.ts +0 -1
  31. package/dist/calls/createTrackCallSubscriber.js +1 -2
  32. package/dist/calls/getCall.js +1 -2
  33. package/dist/calls/listCalls.js +1 -2
  34. package/dist/calls/runCallManager.js +1 -2
  35. package/dist/calls/trackCall.js +1 -2
  36. package/dist/core/db.d.ts +2 -2
  37. package/dist/core/filesServer.js +1 -2
  38. package/dist/core/services.d.ts +110 -220
  39. package/dist/core/upsertDefaultPeer.js +4 -8
  40. package/dist/envs.js +11 -12
  41. package/dist/events/createInfluxDbPub.js +1 -2
  42. package/dist/events/nats.js +1 -2
  43. package/dist/secrets/buildService.d.ts +9 -17
  44. package/dist/secrets/buildService.js +1 -2
  45. package/dist/secrets/createGetFnUtil.d.ts +1 -1
  46. package/dist/secrets/createGetFnUtil.js +1 -2
  47. package/dist/secrets/createSecret.d.ts +2 -2
  48. package/dist/secrets/createSecret.js +1 -2
  49. package/dist/secrets/deleteSecret.d.ts +3 -5
  50. package/dist/secrets/deleteSecret.js +1 -2
  51. package/dist/secrets/getSecret.d.ts +2 -2
  52. package/dist/secrets/getSecret.js +1 -2
  53. package/dist/secrets/listSecrets.d.ts +1 -1
  54. package/dist/secrets/listSecrets.js +1 -2
  55. package/dist/secrets/updateSecret.d.ts +1 -1
  56. package/dist/secrets/updateSecret.js +1 -2
  57. package/dist/utils/makeCheckNumberPreconditions.js +1 -2
  58. package/dist/voice/VoiceClientImpl.d.ts +0 -1
  59. package/dist/voice/connectToAri.js +1 -2
  60. package/dist/voice/createExternalMediaConfig.js +1 -2
  61. package/dist/voice/handlers/Answer.js +1 -2
  62. package/dist/voice/handlers/Hangup.js +1 -2
  63. package/dist/voice/handlers/Mute.js +1 -2
  64. package/dist/voice/handlers/Play.js +1 -2
  65. package/dist/voice/handlers/PlayDtmf.js +1 -2
  66. package/dist/voice/handlers/PlaybackControl.js +1 -2
  67. package/dist/voice/handlers/Record.js +1 -2
  68. package/dist/voice/handlers/Say.js +1 -2
  69. package/dist/voice/handlers/StasisEnd.js +1 -2
  70. package/dist/voice/handlers/Unmute.js +1 -2
  71. package/dist/voice/handlers/awaitForRecordingFinished.js +1 -2
  72. package/dist/voice/handlers/dial/Dial.js +1 -2
  73. package/dist/voice/handlers/dial/handleChannelLeftBridge.js +1 -2
  74. package/dist/voice/handlers/dial/handleDialEvents.js +1 -2
  75. package/dist/voice/handlers/dial/handleStasisEnd.js +1 -2
  76. package/dist/voice/handlers/dial/handleStasisStart.js +1 -2
  77. package/dist/voice/handlers/dial/recordChannel.js +1 -2
  78. package/dist/voice/handlers/gather/Gather.js +1 -2
  79. package/dist/voice/handlers/gather/getTimeoutPromise.js +1 -2
  80. package/dist/voice/handlers/withErrorHandling.js +1 -2
  81. package/dist/voice/integrations/findIntegrationsCredentials.js +1 -2
  82. package/dist/voice/integrations/getSttConfig.d.ts +2 -1
  83. package/dist/voice/integrations/getSttConfig.js +1 -2
  84. package/dist/voice/integrations/getTtsConfig.d.ts +1 -1
  85. package/dist/voice/integrations/getTtsConfig.js +1 -2
  86. package/dist/voice/integrations/makeCreateContainer.js +1 -2
  87. package/dist/voice/makeCreateVoiceClient.js +1 -2
  88. package/dist/voice/makeGetChannelVar.js +1 -2
  89. package/dist/voice/stt/AbstractSpeechToText.d.ts +0 -1
  90. package/dist/voice/stt/Google.d.ts +0 -1
  91. package/dist/voice/transcribeOnConnection.d.ts +0 -1
  92. package/dist/voice/transcribeOnConnection.js +1 -2
  93. package/dist/voice/tts/computeFilename.js +1 -2
  94. package/dist/voice/tts/flattenObject.js +1 -2
  95. package/dist/voice/tts/isSsml.js +1 -2
  96. package/dist/voice/types/voice.d.ts +0 -1
  97. package/package.json +9 -7
  98. package/dist/secrets/types.d.ts +0 -32
  99. package/dist/secrets/types.js +0 -2
@@ -8,19 +8,19 @@ declare function buildService(prisma: Prisma): {
8
8
  };
9
9
  handlers: {
10
10
  createApplication: (call: {
11
- request: import("@fonoster/common").CreateApplicationRequest;
12
- }, callback: (error: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/common").BaseApiObject) => void) => Promise<void>;
11
+ request: import("@fonoster/types").CreateApplicationRequest;
12
+ }, callback: (error: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/types").CreateApplicationResponse) => void) => Promise<void>;
13
13
  getApplication: (call: {
14
- request: import("@fonoster/common").BaseApiObject;
15
- }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/common").Application) => void) => Promise<void>;
14
+ request: import("@fonoster/types").GetApplicationRequest;
15
+ }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/types").Application) => void) => Promise<void>;
16
16
  listApplications: (call: {
17
- request: import("@fonoster/common").ListApplicationsRequest;
18
- }, callback: (error: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/common").ListApplicationsResponse) => void) => Promise<void>;
17
+ request: import("@fonoster/types").ListApplicationsRequest;
18
+ }, callback: (error: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/types").ListApplicationsResponse) => void) => Promise<void>;
19
19
  deleteApplication: (call: {
20
- request: import("@fonoster/common").BaseApiObject;
21
- }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/common").BaseApiObject) => void) => Promise<void>;
20
+ request: import("@fonoster/types").DeleteApplicationRequest;
21
+ }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/types").BaseApiObject) => void) => Promise<void>;
22
22
  updateApplication: (call: {
23
- request: import("@fonoster/common").UpdateApplicationRequest;
23
+ request: import("@fonoster/types").UpdateApplicationRequest;
24
24
  }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: {
25
25
  ref: string;
26
26
  }) => void) => Promise<void>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildService = void 0;
3
+ exports.buildService = buildService;
4
4
  /*
5
5
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
@@ -41,4 +41,3 @@ function buildService(prisma) {
41
41
  }
42
42
  };
43
43
  }
44
- exports.buildService = buildService;
@@ -1,4 +1,5 @@
1
- import { CreateApplicationRequest, CreateApplicationResponse, GrpcErrorMessage } from "@fonoster/common";
1
+ import { GrpcErrorMessage } from "@fonoster/common";
2
+ import { CreateApplicationRequest, CreateApplicationResponse } from "@fonoster/types";
2
3
  import { Prisma } from "../core/db";
3
4
  declare function createApplication(prisma: Prisma): (call: {
4
5
  request: CreateApplicationRequest;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createApplication = void 0;
12
+ exports.createApplication = createApplication;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -54,4 +54,3 @@ function createApplication(prisma) {
54
54
  }
55
55
  });
56
56
  }
57
- exports.createApplication = createApplication;
@@ -25,9 +25,9 @@ declare function createGetFnUtil(prisma: Prisma): (ref: string) => Promise<{
25
25
  name: string;
26
26
  type: "PROGRAMMABLE_VOICE";
27
27
  ref: string;
28
- accessKeyId: string;
29
28
  createdAt: Date;
30
29
  updatedAt: Date;
30
+ accessKeyId: string;
31
31
  appEndpoint: string;
32
32
  }>;
33
33
  export { createGetFnUtil };
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createGetFnUtil = void 0;
12
+ exports.createGetFnUtil = createGetFnUtil;
13
13
  const notFoundError_1 = require("../core/notFoundError");
14
14
  function createGetFnUtil(prisma) {
15
15
  return (ref) => __awaiter(this, void 0, void 0, function* () {
@@ -29,4 +29,3 @@ function createGetFnUtil(prisma) {
29
29
  } });
30
30
  });
31
31
  }
32
- exports.createGetFnUtil = createGetFnUtil;
@@ -1,6 +1,6 @@
1
- import { DeleteApplicationRequest } from "@fonoster/common";
1
+ import { DeleteApplicationRequest } from "@fonoster/types";
2
2
  import { Prisma } from "../core/db";
3
3
  declare function deleteApplication(prisma: Prisma): (call: {
4
4
  request: DeleteApplicationRequest;
5
- }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/common").BaseApiObject) => void) => Promise<void>;
5
+ }, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/types").BaseApiObject) => void) => Promise<void>;
6
6
  export { deleteApplication };
@@ -9,7 +9,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.deleteApplication = void 0;
12
+ exports.deleteApplication = deleteApplication;
13
+ /*
14
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
+ * http://github.com/fonoster/fonoster
16
+ *
17
+ * This file is part of Fonoster
18
+ *
19
+ * Licensed under the MIT License (the "License");
20
+ * you may not use this file except in compliance with
21
+ * the License. You may obtain a copy of the License at
22
+ *
23
+ * https://opensource.org/licenses/MIT
24
+ *
25
+ * Unless required by applicable law or agreed to in writing, software
26
+ * distributed under the License is distributed on an "AS IS" BASIS,
27
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
+ * See the License for the specific language governing permissions and
29
+ * limitations under the License.
30
+ */
13
31
  const identity_1 = require("@fonoster/identity");
14
32
  const logger_1 = require("@fonoster/logger");
15
33
  const createGetFnUtil_1 = require("./createGetFnUtil");
@@ -23,4 +41,3 @@ function deleteApplication(prisma) {
23
41
  return { ref };
24
42
  }), (ref) => getFn(ref));
25
43
  }
26
- exports.deleteApplication = deleteApplication;
@@ -1,4 +1,4 @@
1
- import { Application, GetApplicationRequest } from "@fonoster/common";
1
+ import { Application, GetApplicationRequest } from "@fonoster/types";
2
2
  import { Prisma } from "../core/db";
3
3
  declare function getApplication(prisma: Prisma): (call: {
4
4
  request: GetApplicationRequest;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getApplication = void 0;
12
+ exports.getApplication = getApplication;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -44,4 +44,3 @@ function getApplication(prisma) {
44
44
  return result ? (0, applicationWithEncodedStruct_1.applicationWithEncodedStruct)(resultWithParsedDate) : null;
45
45
  }), (ref) => getFn(ref));
46
46
  }
47
- exports.getApplication = getApplication;
@@ -1,4 +1,5 @@
1
- import { GrpcErrorMessage, ListApplicationsRequest, ListApplicationsResponse } from "@fonoster/common";
1
+ import { GrpcErrorMessage } from "@fonoster/common";
2
+ import { ListApplicationsRequest, ListApplicationsResponse } from "@fonoster/types";
2
3
  import { Prisma } from "../core/db";
3
4
  declare function listApplications(prisma: Prisma): (call: {
4
5
  request: ListApplicationsRequest;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.listApplications = void 0;
12
+ exports.listApplications = listApplications;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -66,4 +66,3 @@ function listApplications(prisma) {
66
66
  }
67
67
  });
68
68
  }
69
- exports.listApplications = listApplications;
@@ -1,4 +1,4 @@
1
- import { UpdateApplicationRequest } from "@fonoster/common";
1
+ import { UpdateApplicationRequest } from "@fonoster/types";
2
2
  import { Prisma } from "../core/db";
3
3
  declare function updateApplication(prisma: Prisma): (call: {
4
4
  request: UpdateApplicationRequest;
@@ -9,7 +9,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.updateApplication = void 0;
12
+ exports.updateApplication = updateApplication;
13
+ /*
14
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
+ * http://github.com/fonoster/fonoster
16
+ *
17
+ * This file is part of Fonoster
18
+ *
19
+ * Licensed under the MIT License (the "License");
20
+ * you may not use this file except in compliance with
21
+ * the License. You may obtain a copy of the License at
22
+ *
23
+ * https://opensource.org/licenses/MIT
24
+ *
25
+ * Unless required by applicable law or agreed to in writing, software
26
+ * distributed under the License is distributed on an "AS IS" BASIS,
27
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
+ * See the License for the specific language governing permissions and
29
+ * limitations under the License.
30
+ */
13
31
  const identity_1 = require("@fonoster/identity");
14
32
  const logger_1 = require("@fonoster/logger");
15
33
  const createGetFnUtil_1 = require("./createGetFnUtil");
@@ -54,4 +72,3 @@ function updateApplication(prisma) {
54
72
  return { ref: applicationRef };
55
73
  }), (ref) => getFn(ref));
56
74
  }
57
- exports.updateApplication = updateApplication;
@@ -1,3 +1,3 @@
1
- import { Application } from "@fonoster/common";
1
+ import { Application } from "@fonoster/types";
2
2
  declare function applicationWithEncodedStruct(application: any): Application;
3
3
  export { applicationWithEncodedStruct };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applicationWithEncodedStruct = void 0;
3
+ exports.applicationWithEncodedStruct = applicationWithEncodedStruct;
4
4
  const pb_util_1 = require("pb-util");
5
5
  function applicationWithEncodedStruct(application) {
6
6
  const encodeConfig = (property) => {
@@ -20,4 +20,3 @@ function applicationWithEncodedStruct(application) {
20
20
  }
21
21
  return result; // Return the modified object
22
22
  }
23
- exports.applicationWithEncodedStruct = applicationWithEncodedStruct;
@@ -1,4 +1,4 @@
1
- import { CreateApplicationRequest, UpdateApplicationRequest } from "@fonoster/common";
1
+ import { CreateApplicationRequest, UpdateApplicationRequest } from "@fonoster/types";
2
2
  import { ApplicationData } from "../types";
3
3
  declare function convertToApplicationData(request: CreateApplicationRequest | UpdateApplicationRequest): ApplicationData;
4
4
  export { convertToApplicationData };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertToApplicationData = void 0;
3
+ exports.convertToApplicationData = convertToApplicationData;
4
4
  const client_1 = require("@prisma/client");
5
5
  const pb_util_1 = require("pb-util");
6
6
  function convertToApplicationData(request) {
@@ -35,4 +35,3 @@ function convertToApplicationData(request) {
35
35
  }
36
36
  return result;
37
37
  }
38
- exports.convertToApplicationData = convertToApplicationData;
@@ -35,6 +35,7 @@ declare function getApplicationValidationSchema(request: {
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  name?: string;
37
37
  type?: "PROGRAMMABLE_VOICE";
38
+ appEndpoint?: string;
38
39
  textToSpeech?: {
39
40
  [x: string]: any;
40
41
  productRef?: unknown;
@@ -45,10 +46,10 @@ declare function getApplicationValidationSchema(request: {
45
46
  productRef?: unknown;
46
47
  config?: unknown;
47
48
  };
48
- appEndpoint?: string;
49
49
  }, {
50
50
  name?: string;
51
51
  type?: "PROGRAMMABLE_VOICE";
52
+ appEndpoint?: string;
52
53
  textToSpeech?: {
53
54
  [x: string]: any;
54
55
  productRef?: unknown;
@@ -59,6 +60,5 @@ declare function getApplicationValidationSchema(request: {
59
60
  productRef?: unknown;
60
61
  config?: unknown;
61
62
  };
62
- appEndpoint?: string;
63
63
  }>;
64
64
  export { getApplicationValidationSchema };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getApplicationValidationSchema = void 0;
3
+ exports.getApplicationValidationSchema = getApplicationValidationSchema;
4
4
  /*
5
5
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
@@ -61,4 +61,3 @@ function getApplicationValidationSchema(request) {
61
61
  : zod_1.z.undefined()
62
62
  });
63
63
  }
64
- exports.getApplicationValidationSchema = getApplicationValidationSchema;
@@ -1,3 +1,3 @@
1
- import { Application, CreateApplicationRequest, UpdateApplicationRequest } from "@fonoster/common";
1
+ import { Application, CreateApplicationRequest, UpdateApplicationRequest } from "@fonoster/types";
2
2
  declare function prepareForValidation(request: CreateApplicationRequest | UpdateApplicationRequest): Application;
3
3
  export { prepareForValidation };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.prepareForValidation = void 0;
3
+ exports.prepareForValidation = prepareForValidation;
4
4
  const client_1 = require("@prisma/client");
5
5
  const pb_util_1 = require("pb-util");
6
6
  function prepareForValidation(request) {
@@ -33,4 +33,3 @@ function prepareForValidation(request) {
33
33
  }
34
34
  return result;
35
35
  }
36
- exports.prepareForValidation = prepareForValidation;
@@ -1,3 +1,3 @@
1
- import { CreateApplicationRequest, UpdateApplicationRequest } from "@fonoster/common";
1
+ import { CreateApplicationRequest, UpdateApplicationRequest } from "@fonoster/types";
2
2
  declare function validOrThrow(request: CreateApplicationRequest | UpdateApplicationRequest): void;
3
3
  export { validOrThrow };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validOrThrow = void 0;
3
+ exports.validOrThrow = validOrThrow;
4
4
  const getApplicationValidationSchema_1 = require("./getApplicationValidationSchema");
5
5
  const prepareForValidation_1 = require("./prepareForValidation");
6
6
  function validOrThrow(request) {
@@ -12,4 +12,3 @@ function validOrThrow(request) {
12
12
  });
13
13
  schema.parse(data);
14
14
  }
15
- exports.validOrThrow = validOrThrow;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.buildService = void 0;
12
+ exports.buildService = buildService;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -55,4 +55,3 @@ function buildService(influxdb) {
55
55
  };
56
56
  });
57
57
  }
58
- exports.buildService = buildService;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createCall = void 0;
12
+ exports.createCall = createCall;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -61,4 +61,3 @@ function createCall(publisher) {
61
61
  }
62
62
  });
63
63
  }
64
- exports.createCall = createCall;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createCallPublisher = void 0;
12
+ exports.createCallPublisher = createCallPublisher;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -44,4 +44,3 @@ function createCallPublisher(natsUrl) {
44
44
  };
45
45
  });
46
46
  }
47
- exports.createCallPublisher = createCallPublisher;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createFetchCalls = void 0;
12
+ exports.createFetchCalls = createFetchCalls;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -84,4 +84,3 @@ function createFetchCalls(influxdb) {
84
84
  };
85
85
  });
86
86
  }
87
- exports.createFetchCalls = createFetchCalls;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createFetchSingleCall = void 0;
12
+ exports.createFetchSingleCall = createFetchSingleCall;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -45,4 +45,3 @@ function createFetchSingleCall(influxdb) {
45
45
  return items.length > 0 ? items[0] : null;
46
46
  });
47
47
  }
48
- exports.createFetchSingleCall = createFetchSingleCall;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import EventEmitter from "events";
3
2
  declare function createTrackCallSubscriber(natsUrl: string): Promise<() => {
4
3
  events: EventEmitter<[never]>;
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.createTrackCallSubscriber = void 0;
15
+ exports.createTrackCallSubscriber = createTrackCallSubscriber;
16
16
  /*
17
17
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
18
18
  * http://github.com/fonoster/fonoster
@@ -50,4 +50,3 @@ function createTrackCallSubscriber(natsUrl) {
50
50
  };
51
51
  });
52
52
  }
53
- exports.createTrackCallSubscriber = createTrackCallSubscriber;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getCall = void 0;
12
+ exports.getCall = getCall;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -57,4 +57,3 @@ function getCall(influx) {
57
57
  }
58
58
  });
59
59
  }
60
- exports.getCall = getCall;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.listCalls = void 0;
12
+ exports.listCalls = listCalls;
13
13
  /*
14
14
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
@@ -49,4 +49,3 @@ function listCalls(influx) {
49
49
  }
50
50
  });
51
51
  }
52
- exports.listCalls = listCalls;
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.createCreateCallSubscriber = void 0;
15
+ exports.createCreateCallSubscriber = createCreateCallSubscriber;
16
16
  /*
17
17
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
18
18
  * http://github.com/fonoster/fonoster
@@ -79,4 +79,3 @@ function createCreateCallSubscriber(config) {
79
79
  }
80
80
  });
81
81
  }
82
- exports.createCreateCallSubscriber = createCreateCallSubscriber;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.trackCall = void 0;
3
+ exports.trackCall = trackCall;
4
4
  /*
5
5
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
@@ -61,4 +61,3 @@ function trackCall(subs) {
61
61
  });
62
62
  };
63
63
  }
64
- exports.trackCall = trackCall;
package/dist/core/db.d.ts CHANGED
@@ -3,11 +3,11 @@ declare const prisma: import("@prisma/client/runtime/library").DynamicClientExte
3
3
  model: {};
4
4
  query: {};
5
5
  client: {};
6
- }>, import(".prisma/client").Prisma.TypeMapCb, {
6
+ }, import(".prisma/client").Prisma.PrismaClientOptions>, import(".prisma/client").Prisma.TypeMapCb, {
7
7
  result: {};
8
8
  model: {};
9
9
  query: {};
10
10
  client: {};
11
- }>;
11
+ }, {}>;
12
12
  type Prisma = typeof prisma;
13
13
  export { prisma, Prisma };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.filesServer = void 0;
6
+ exports.filesServer = filesServer;
7
7
  /*
8
8
  * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
9
9
  * http://github.com/fonoster/fonoster
@@ -47,4 +47,3 @@ function filesServer(params) {
47
47
  logger.info(`files server is running on port ${port}`);
48
48
  });
49
49
  }
50
- exports.filesServer = filesServer;