@things-factory/codelingua 9.0.0-beta.4 → 9.0.0-beta.5
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAEA,+CAAiH;AAIjH,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAClE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA2B,CAAA;QAE/D,MAAM,OAAO,GAAG,MAAM,IAAA,4BAAc,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;QAEjD,OAAO,CAAC,IAAI,GAAG;YACb,OAAO;SACR,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACrE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA6B,CAAA;QAC3F,MAAM,QAAQ,GAAG,iBAAiB,IAAI,OAAO,CAAC,QAAQ,CAAA;QAEtD,MAAM,OAAO,GAAG,MAAM,IAAA,8BAAgB,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;QAE1D,OAAO,CAAC,IAAI,GAAG;YACb,OAAO;SACR,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAClE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA2B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CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA","sourcesContent":["import { ChatCompletionInput } from 'service/chat-completion/chat-completion-type'\nimport { CodeDecipherInput } from 'service/code-decipher/code-decipher-type'\nimport { chatCompletion, apiDocCompletion, i18nCompletion, decipherCode, decipherErrorCode } from './controllers'\nimport { APIDocCompletionInput } from 'service/api-doc-completion/api-doc-completion-type'\nimport { i18nCompletionInput } from 'service/i18n-completion/i18n-completion-type'\n\nprocess.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {\n /*\n * can add global public routes to application (auth not required, tenancy not required)\n *\n * ex) routes.get('/path', async(context, next) => {})\n * ex) routes.post('/path', async(context, next) => {})\n */\n globalPublicRouter.post('/chat-completion', async (context, next) => {\n const { content } = context.request.body as ChatCompletionInput\n\n const message = await chatCompletion({ content })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/api-doc-completion', async (context, next) => {\n const { code, language: requestedLanguage } = context.request.body as APIDocCompletionInput\n const language = requestedLanguage || context.language\n\n const message = await apiDocCompletion({ code, language })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/i18n-completion', async (context, next) => {\n const { json } = context.request.body as i18nCompletionInput\n\n const message = await i18nCompletion({ json })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/code-decipher', async (context, next) => {\n const { code, system, language: requestedLanguage } = context.request.body as CodeDecipherInput\n const language = requestedLanguage || context.language\n\n const message = await decipherCode({ code, system, language })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/error-code-decipher', async (context, next) => {\n const { code, system, language: requestedLanguage } = context.request.body as CodeDecipherInput\n const language = requestedLanguage || context.language\n\n const message = await decipherErrorCode({ code, system, language })\n\n context.body = {\n message\n }\n })\n})\n\nprocess.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {\n /*\n * can add global private routes to application (auth required, tenancy not required)\n */\n})\n\nprocess.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {\n /*\n * can add domain public routes to application (auth not required, tenancy required)\n */\n})\n\nprocess.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {\n /*\n * can add domain private routes to application (auth required, tenancy required)\n */\n})\n"]}
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAEA,+CAAiH;AAIjH,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAClE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA2B,CAAA;QAE/D,MAAM,OAAO,GAAG,MAAM,IAAA,4BAAc,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;QAEjD,OAAO,CAAC,IAAI,GAAG;YACb,OAAO;SACR,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACrE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA6B,CAAA;QAC3F,MAAM,QAAQ,GAAG,iBAAiB,IAAI,OAAO,CAAC,QAAQ,CAAA;QAEtD,MAAM,OAAO,GAAG,MAAM,IAAA,8BAAgB,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;QAE1D,OAAO,CAAC,IAAI,GAAG;YACb,OAAO;SACR,CAAA;IACH,CAAC,CAAC,CAAA;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CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA","sourcesContent":["import { ChatCompletionInput } from './service/chat-completion/chat-completion-type'\nimport { CodeDecipherInput } from './service/code-decipher/code-decipher-type'\nimport { chatCompletion, apiDocCompletion, i18nCompletion, decipherCode, decipherErrorCode } from './controllers'\nimport { APIDocCompletionInput } from './service/api-doc-completion/api-doc-completion-type'\nimport { i18nCompletionInput } from './service/i18n-completion/i18n-completion-type'\n\nprocess.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {\n /*\n * can add global public routes to application (auth not required, tenancy not required)\n *\n * ex) routes.get('/path', async(context, next) => {})\n * ex) routes.post('/path', async(context, next) => {})\n */\n globalPublicRouter.post('/chat-completion', async (context, next) => {\n const { content } = context.request.body as ChatCompletionInput\n\n const message = await chatCompletion({ content })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/api-doc-completion', async (context, next) => {\n const { code, language: requestedLanguage } = context.request.body as APIDocCompletionInput\n const language = requestedLanguage || context.language\n\n const message = await apiDocCompletion({ code, language })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/i18n-completion', async (context, next) => {\n const { json } = context.request.body as i18nCompletionInput\n\n const message = await i18nCompletion({ json })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/code-decipher', async (context, next) => {\n const { code, system, language: requestedLanguage } = context.request.body as CodeDecipherInput\n const language = requestedLanguage || context.language\n\n const message = await decipherCode({ code, system, language })\n\n context.body = {\n message\n }\n })\n\n globalPublicRouter.post('/error-code-decipher', async (context, next) => {\n const { code, system, language: requestedLanguage } = context.request.body as CodeDecipherInput\n const language = requestedLanguage || context.language\n\n const message = await decipherErrorCode({ code, system, language })\n\n context.body = {\n message\n }\n })\n})\n\nprocess.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {\n /*\n * can add global private routes to application (auth required, tenancy not required)\n */\n})\n\nprocess.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {\n /*\n * can add domain public routes to application (auth not required, tenancy required)\n */\n})\n\nprocess.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {\n /*\n * can add domain private routes to application (auth required, tenancy required)\n */\n})\n"]}
|