i18n - docs translations (#18942)
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
committed by
GitHub
parent
cc7131b0b5
commit
5de269a64e
@@ -596,7 +596,7 @@ export default defineLogicFunction({
|
||||
// updatedFields: ['name'],
|
||||
// },
|
||||
],
|
||||
});
|
||||
});},{
|
||||
```
|
||||
|
||||
Распространённые типы триггеров:
|
||||
|
||||
@@ -555,8 +555,8 @@ import { CoreApiClient, type Person } from 'twenty-client-sdk/core';
|
||||
const handler = async (params: RoutePayload) => {
|
||||
const client = new CoreApiClient();
|
||||
const name = 'name' in params.queryStringParameters
|
||||
? params.queryStringParameters.name ?? process.env.DEFAULT_RECIPIENT_NAME ?? 'Hello world'
|
||||
: 'Hello world';
|
||||
? params.queryStringParameters.name ?? process.env.DEFAULT_RECIPIENT_NAME ?? 'Merhaba dünya'
|
||||
: 'Merhaba dünya';
|
||||
|
||||
const result = await client.mutation({
|
||||
createPostCard: {
|
||||
@@ -574,7 +574,7 @@ export default defineLogicFunction({
|
||||
timeoutSeconds: 2,
|
||||
handler,
|
||||
triggers: [
|
||||
// Public HTTP route trigger '/s/post-card/create'
|
||||
// Herkese açık HTTP rota tetikleyicisi '/s/post-card/create'
|
||||
{
|
||||
universalIdentifier: 'c9f84c8d-b26d-40d1-95dd-4f834ae5a2c6',
|
||||
type: 'route',
|
||||
@@ -582,13 +582,13 @@ export default defineLogicFunction({
|
||||
httpMethod: 'GET',
|
||||
isAuthRequired: false,
|
||||
},
|
||||
// Cron trigger (CRON pattern)
|
||||
// Cron tetikleyicisi (CRON deseni)
|
||||
// {
|
||||
// universalIdentifier: 'dd802808-0695-49e1-98c9-d5c9e2704ce2',
|
||||
// type: 'cron',
|
||||
// pattern: '0 0 1 1 *',
|
||||
// },
|
||||
// Database event trigger
|
||||
// Veritabanı olay tetikleyicisi
|
||||
// {
|
||||
// universalIdentifier: '203f1df3-4a82-4d06-a001-b8cf22a31156',
|
||||
// type: 'databaseEvent',
|
||||
@@ -804,8 +804,8 @@ const handler = async (params: { companyName: string; domain?: string }) => {
|
||||
createTask: {
|
||||
__args: {
|
||||
data: {
|
||||
title: `Enrich data for ${params.companyName}`,
|
||||
body: `Domain: ${params.domain ?? 'unknown'}`,
|
||||
title: `${params.companyName} için verileri zenginleştir`,
|
||||
body: `Alan adı: ${params.domain ?? 'bilinmiyor'}`,
|
||||
},
|
||||
},
|
||||
id: true,
|
||||
@@ -818,7 +818,7 @@ const handler = async (params: { companyName: string; domain?: string }) => {
|
||||
export default defineLogicFunction({
|
||||
universalIdentifier: 'f47ac10b-58cc-4372-a567-0e02b2c3d479',
|
||||
name: 'enrich-company',
|
||||
description: 'Enrich a company record with external data',
|
||||
description: 'Bir şirket kaydını harici verilerle zenginleştir',
|
||||
timeoutSeconds: 10,
|
||||
handler,
|
||||
isTool: true,
|
||||
@@ -827,11 +827,11 @@ export default defineLogicFunction({
|
||||
properties: {
|
||||
companyName: {
|
||||
type: 'string',
|
||||
description: 'The name of the company to enrich',
|
||||
description: 'Zenginleştirilecek şirketin adı',
|
||||
},
|
||||
domain: {
|
||||
type: 'string',
|
||||
description: 'The company website domain (optional)',
|
||||
description: 'Şirket web sitesi alan adı (isteğe bağlı)',
|
||||
},
|
||||
},
|
||||
required: ['companyName'],
|
||||
@@ -1221,7 +1221,7 @@ const client = new CoreApiClient();
|
||||
const { me } = await client.query({ me: { id: true, displayName: true } });
|
||||
|
||||
const metadataClient = new MetadataApiClient();
|
||||
const { currentWorkspace } = await metadataClient.query({ currentWorkspace: { id: true } });
|
||||
const { currentWorkspace } = await metadataClient.query({ currentWorkspace: { id: true } });},{
|
||||
```
|
||||
|
||||
`CoreApiClient`, nesneleriniz veya alanlarınız değiştiğinde `yarn twenty dev` tarafından otomatik olarak yeniden oluşturulur. `MetadataApiClient`, SDK ile birlikte önceden hazırlanmış olarak gelir.
|
||||
@@ -1252,10 +1252,10 @@ const metadataClient = new MetadataApiClient();
|
||||
const fileBuffer = fs.readFileSync('./invoice.pdf');
|
||||
|
||||
const uploadedFile = await metadataClient.uploadFile(
|
||||
fileBuffer, // file contents as a Buffer
|
||||
'invoice.pdf', // filename
|
||||
'application/pdf', // MIME type (defaults to 'application/octet-stream')
|
||||
'58a0a314-d7ea-4865-9850-7fb84e72f30b', // field universal identifier
|
||||
fileBuffer, // dosya içeriği (Buffer olarak)
|
||||
'invoice.pdf', // dosya adı
|
||||
'application/pdf', // MIME türü (varsayılan: 'application/octet-stream')
|
||||
'58a0a314-d7ea-4865-9850-7fb84e72f30b', // alanın evrensel tanımlayıcısı
|
||||
);
|
||||
|
||||
console.log(uploadedFile);
|
||||
|
||||
Reference in New Issue
Block a user