@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.
- package/dist/applications/buildService.d.ts +9 -9
- package/dist/applications/buildService.js +1 -2
- package/dist/applications/createApplication.d.ts +2 -1
- package/dist/applications/createApplication.js +1 -2
- package/dist/applications/createGetFnUtil.d.ts +1 -1
- package/dist/applications/createGetFnUtil.js +1 -2
- package/dist/applications/deleteApplication.d.ts +2 -2
- package/dist/applications/deleteApplication.js +19 -2
- package/dist/applications/getApplication.d.ts +1 -1
- package/dist/applications/getApplication.js +1 -2
- package/dist/applications/listApplications.d.ts +2 -1
- package/dist/applications/listApplications.js +1 -2
- package/dist/applications/updateApplication.d.ts +1 -1
- package/dist/applications/updateApplication.js +19 -2
- package/dist/applications/utils/applicationWithEncodedStruct.d.ts +1 -1
- package/dist/applications/utils/applicationWithEncodedStruct.js +1 -2
- package/dist/applications/utils/convertToApplicationData.d.ts +1 -1
- package/dist/applications/utils/convertToApplicationData.js +1 -2
- package/dist/applications/utils/getApplicationValidationSchema.d.ts +2 -2
- package/dist/applications/utils/getApplicationValidationSchema.js +1 -2
- package/dist/applications/utils/prepareForValidation.d.ts +1 -1
- package/dist/applications/utils/prepareForValidation.js +1 -2
- package/dist/applications/utils/validOrThrow.d.ts +1 -1
- package/dist/applications/utils/validOrThrow.js +1 -2
- package/dist/calls/buildService.js +1 -2
- package/dist/calls/createCall.js +1 -2
- package/dist/calls/createCallPublisher.js +1 -2
- package/dist/calls/createFetchCalls.js +1 -2
- package/dist/calls/createFetchSingleCall.js +1 -2
- package/dist/calls/createTrackCallSubscriber.d.ts +0 -1
- package/dist/calls/createTrackCallSubscriber.js +1 -2
- package/dist/calls/getCall.js +1 -2
- package/dist/calls/listCalls.js +1 -2
- package/dist/calls/runCallManager.js +1 -2
- package/dist/calls/trackCall.js +1 -2
- package/dist/core/db.d.ts +2 -2
- package/dist/core/filesServer.js +1 -2
- package/dist/core/services.d.ts +110 -220
- package/dist/core/upsertDefaultPeer.js +4 -8
- package/dist/envs.js +11 -12
- package/dist/events/createInfluxDbPub.js +1 -2
- package/dist/events/nats.js +1 -2
- package/dist/secrets/buildService.d.ts +9 -17
- package/dist/secrets/buildService.js +1 -2
- package/dist/secrets/createGetFnUtil.d.ts +1 -1
- package/dist/secrets/createGetFnUtil.js +1 -2
- package/dist/secrets/createSecret.d.ts +2 -2
- package/dist/secrets/createSecret.js +1 -2
- package/dist/secrets/deleteSecret.d.ts +3 -5
- package/dist/secrets/deleteSecret.js +1 -2
- package/dist/secrets/getSecret.d.ts +2 -2
- package/dist/secrets/getSecret.js +1 -2
- package/dist/secrets/listSecrets.d.ts +1 -1
- package/dist/secrets/listSecrets.js +1 -2
- package/dist/secrets/updateSecret.d.ts +1 -1
- package/dist/secrets/updateSecret.js +1 -2
- package/dist/utils/makeCheckNumberPreconditions.js +1 -2
- package/dist/voice/VoiceClientImpl.d.ts +0 -1
- package/dist/voice/connectToAri.js +1 -2
- package/dist/voice/createExternalMediaConfig.js +1 -2
- package/dist/voice/handlers/Answer.js +1 -2
- package/dist/voice/handlers/Hangup.js +1 -2
- package/dist/voice/handlers/Mute.js +1 -2
- package/dist/voice/handlers/Play.js +1 -2
- package/dist/voice/handlers/PlayDtmf.js +1 -2
- package/dist/voice/handlers/PlaybackControl.js +1 -2
- package/dist/voice/handlers/Record.js +1 -2
- package/dist/voice/handlers/Say.js +1 -2
- package/dist/voice/handlers/StasisEnd.js +1 -2
- package/dist/voice/handlers/Unmute.js +1 -2
- package/dist/voice/handlers/awaitForRecordingFinished.js +1 -2
- package/dist/voice/handlers/dial/Dial.js +1 -2
- package/dist/voice/handlers/dial/handleChannelLeftBridge.js +1 -2
- package/dist/voice/handlers/dial/handleDialEvents.js +1 -2
- package/dist/voice/handlers/dial/handleStasisEnd.js +1 -2
- package/dist/voice/handlers/dial/handleStasisStart.js +1 -2
- package/dist/voice/handlers/dial/recordChannel.js +1 -2
- package/dist/voice/handlers/gather/Gather.js +1 -2
- package/dist/voice/handlers/gather/getTimeoutPromise.js +1 -2
- package/dist/voice/handlers/withErrorHandling.js +1 -2
- package/dist/voice/integrations/findIntegrationsCredentials.js +1 -2
- package/dist/voice/integrations/getSttConfig.d.ts +2 -1
- package/dist/voice/integrations/getSttConfig.js +1 -2
- package/dist/voice/integrations/getTtsConfig.d.ts +1 -1
- package/dist/voice/integrations/getTtsConfig.js +1 -2
- package/dist/voice/integrations/makeCreateContainer.js +1 -2
- package/dist/voice/makeCreateVoiceClient.js +1 -2
- package/dist/voice/makeGetChannelVar.js +1 -2
- package/dist/voice/stt/AbstractSpeechToText.d.ts +0 -1
- package/dist/voice/stt/Google.d.ts +0 -1
- package/dist/voice/transcribeOnConnection.d.ts +0 -1
- package/dist/voice/transcribeOnConnection.js +1 -2
- package/dist/voice/tts/computeFilename.js +1 -2
- package/dist/voice/tts/flattenObject.js +1 -2
- package/dist/voice/tts/isSsml.js +1 -2
- package/dist/voice/types/voice.d.ts +0 -1
- package/package.json +9 -7
- package/dist/secrets/types.d.ts +0 -32
- 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/
|
|
12
|
-
}, callback: (error: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/
|
|
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/
|
|
15
|
-
}, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/
|
|
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/
|
|
18
|
-
}, callback: (error: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/
|
|
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/
|
|
21
|
-
}, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: import("@fonoster/
|
|
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/
|
|
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 =
|
|
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 {
|
|
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 =
|
|
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 =
|
|
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/
|
|
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/
|
|
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 =
|
|
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/
|
|
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 =
|
|
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
|
|
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 =
|
|
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;
|
|
@@ -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 =
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applicationWithEncodedStruct =
|
|
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/
|
|
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 =
|
|
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 =
|
|
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/
|
|
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 =
|
|
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/
|
|
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 =
|
|
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 =
|
|
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;
|
package/dist/calls/createCall.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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;
|
|
@@ -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 =
|
|
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;
|
package/dist/calls/getCall.js
CHANGED
|
@@ -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 =
|
|
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;
|
package/dist/calls/listCalls.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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;
|
package/dist/calls/trackCall.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.trackCall =
|
|
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 };
|
package/dist/core/filesServer.js
CHANGED
|
@@ -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 =
|
|
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;
|