@activepieces/piece-posthog 0.4.4 → 0.5.1

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 (37) hide show
  1. package/package.json +11 -22
  2. package/src/i18n/de.json +36 -29
  3. package/src/i18n/es.json +36 -29
  4. package/src/i18n/fr.json +36 -29
  5. package/src/i18n/ja.json +36 -29
  6. package/src/i18n/nl.json +36 -29
  7. package/src/i18n/pt.json +36 -29
  8. package/src/i18n/translation.json +36 -29
  9. package/src/i18n/zh.json +36 -29
  10. package/src/index.d.ts +19 -2
  11. package/src/index.d.ts.map +1 -0
  12. package/src/index.js +66 -10
  13. package/src/index.js.map +1 -1
  14. package/src/lib/actions/create-event.d.ts +7 -5
  15. package/src/lib/actions/create-event.d.ts.map +1 -0
  16. package/src/lib/actions/create-event.js +27 -57
  17. package/src/lib/actions/create-event.js.map +1 -1
  18. package/src/lib/actions/create-project.d.ts +14 -4
  19. package/src/lib/actions/create-project.d.ts.map +1 -0
  20. package/src/lib/actions/create-project.js +60 -26
  21. package/src/lib/actions/create-project.js.map +1 -1
  22. package/src/lib/actions/get-feature-flags.d.ts +9 -0
  23. package/src/lib/actions/get-feature-flags.d.ts.map +1 -0
  24. package/src/lib/actions/get-feature-flags.js +57 -0
  25. package/src/lib/actions/get-feature-flags.js.map +1 -0
  26. package/src/lib/actions/list-persons.d.ts +10 -0
  27. package/src/lib/actions/list-persons.d.ts.map +1 -0
  28. package/src/lib/actions/list-persons.js +61 -0
  29. package/src/lib/actions/list-persons.js.map +1 -0
  30. package/src/lib/triggers/new-event.d.ts +31 -0
  31. package/src/lib/triggers/new-event.d.ts.map +1 -0
  32. package/src/lib/triggers/new-event.js +78 -0
  33. package/src/lib/triggers/new-event.js.map +1 -0
  34. package/README.md +0 -7
  35. package/src/lib/common/models.d.ts +0 -62
  36. package/src/lib/common/models.js +0 -3
  37. package/src/lib/common/models.js.map +0 -1
package/src/i18n/pt.json CHANGED
@@ -1,23 +1,32 @@
1
1
  {
2
2
  "Open-source product analytics": "Análise de produtos de código aberto",
3
- "\n[Click here](https://posthog.com/docs/api/overview#personal-api-keys-recommended) to learn how to obtain your Personal API key.\n": "\n[Clique aqui](https://posthog.com/docs/api/overview#personal-api-keys-recommended) para aprender como obter sua chave de API pessoal.\n",
4
- "Create Event": "Criar evento",
3
+ "Personal API Key": "Chave de API pessoal",
4
+ "Project ID": "ID do Projeto",
5
+ "API Host": "Servidor de API",
6
+ "Ingestion Host": "Host de Ingestion",
7
+ "Your PostHog personal API key": "Sua chave pessoal da API do PostHog",
8
+ "Your PostHog project ID (found in project settings URL)": "Seu ID de projeto PostHog (encontrado nas configurações do projeto URL)",
9
+ "Base URL for private API calls (default: https://us.posthog.com)": "URL base para chamadas de API privada (padrão: https://us.posthog.com)",
10
+ "Base URL for event capture (default: https://us.i.posthog.com)": "URL base para captura de eventos (padrão: https://us.i.posthog.com)",
11
+ "Connect your PostHog account.\n\n**Personal API Key**: Go to PostHog → Settings → Personal API Keys → Create personal API key.\n\n**Project ID**: Found in the URL when viewing your project: `/project/{id}/`\n\n**API Host**: The base URL for private API calls.\n- US Cloud (default): `https://us.posthog.com`\n- EU Cloud: `https://eu.posthog.com`\n- Self-hosted: your instance URL (e.g. `https://posthog.mycompany.com`)\n\n**Ingestion Host**: The base URL for event capture.\n- US Cloud (default): `https://us.i.posthog.com`\n": "Conecte a sua conta do PostHog.\n\n**Chave de API pessoal**: Vá para PostHog → Configurações → Chaves de API pessoal → Crie uma chave de API pessoal.\n\n**ID do projeto**: Encontrado na URL ao visualizar o seu projeto: `/project/{id}/`\n\n**API Host**: O URL base para chamadas de API privadas.\n- Nuvem dos EUA (padrão): `https://us.posthog. om`\n- EU Cloud: `https://eu.posthog.com`\n- Auto-hospedada: sua URL de instância (por exemplo, `https://posthog.mycompany.com`)\n\n**Ingestion Host**: A URL base para captura de eventos.\n- US Cloud (padrão): `https://us.i.posthog.com`\n- EU Cloud: `https://eu.i.posthog.com`\n- Auto-hospedada: o mesmo que o seu Host de API",
12
+ "Capture Event": "Capturar evento",
5
13
  "Create Project": "Criar Projeto",
14
+ "Get Feature Flags": "Obter Feature Flags",
15
+ "List Persons": "Listar Pessoas",
6
16
  "Custom API Call": "Chamada de API personalizada",
7
- "Create an event inside a project": "Criar um evento dentro de um projeto",
8
- "Create a posthog project": "Criar um projeto posthog",
17
+ "Capture a custom event in PostHog": "Capture um evento personalizado no PostHog",
18
+ "Create a new PostHog project in your organization": "Criar um novo projeto PostHog na sua organização",
19
+ "List all feature flags in your PostHog project": "Listar todos os sinalizadores de recursos em seu projeto PostHog",
20
+ "Get a list of identified users in your PostHog project": "Obter uma lista de usuários identificados no seu projeto PostHog",
9
21
  "Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
10
- "Event name": "Nome do evento",
11
- "Event type": "Tipo de evento",
12
- "Distinct Id": "ID distinto",
22
+ "Event Name": "Nome do Evento",
23
+ "Distinct ID": "ID distinto",
13
24
  "Properties": "propriedades",
14
- "Context": "Contexto",
15
- "Message ID": "ID da mensagem",
16
- "Category": "categoria",
17
- "Name": "Nome",
18
- "Slack Incoming Webhook": "Webhook recebido do Slack",
25
+ "Organization": "Cliente",
26
+ "Project Name": "Nome do Projeto",
19
27
  "Anonymize IPs": "Anonimizar IPs",
20
- "Is demo project": "É um projeto de demonstração",
28
+ "Limit": "Limitar",
29
+ "Search": "Pesquisar",
21
30
  "Method": "Método",
22
31
  "Headers": "Cabeçalhos",
23
32
  "Query Parameters": "Parâmetros da consulta",
@@ -27,23 +36,17 @@
27
36
  "No Error on Failure": "Nenhum erro no Failure",
28
37
  "Timeout (in seconds)": "Tempo limite (em segundos)",
29
38
  "Follow redirects": "Seguir redirecionamentos",
30
- "The event name": "Nome do evento",
31
- "User's Distinct Id": "Identificação distinta do usuário",
32
- "The event properties": "As propriedades do evento",
33
- "The event context,": "O contexto de evento,",
34
- "The message id,": "O id da mensagem,",
35
- "The event category.": "A categoria do evento.",
36
- "Project Name": "Nome do Projeto",
37
- "Slack incoming webhook": "Webhook de entrada Slack",
38
- "Whether to anonymize incoming IP addresses.": "Se deseja anonimizar endereços IP recebidos.",
39
- "If this is a demo project": "Se este é um projeto de demonstração",
39
+ "The name of the event to capture": "O nome do evento a capturar",
40
+ "Unique identifier for the user performing the action (e.g. user ID or email address)": "Identificador exclusivo para o usuário que executa a ação (por exemplo, ID do usuário ou endereço de e-mail)",
41
+ "Additional event properties as key/value pairs": "Propriedades adicionais do evento como pares chave/valor",
42
+ "The organization to create the project in": "A organização para criar o projeto em",
43
+ "The name of the new project": "O nome do novo projeto",
44
+ "Whether to anonymize incoming IP addresses": "Anonimizar endereços IP de entrada",
45
+ "Maximum number of feature flags to return (default: 100)": "Número máximo de bandeiras de recursos a retornar (padrão: 100)",
46
+ "Maximum number of persons to return (default: 100)": "Número máximo de pessoas a retornar (padrão: 100)",
47
+ "Filter persons by email or name": "Filtrar pessoas por e-mail ou nome",
40
48
  "Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
41
49
  "Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
42
- "Alias": "Alias",
43
- "Capture": "Capturar",
44
- "Identify": "Identificar",
45
- "Page": "Página",
46
- "Screen": "Tela",
47
50
  "GET": "OBTER",
48
51
  "POST": "POSTAR",
49
52
  "PATCH": "COMPRAR",
@@ -53,5 +56,9 @@
53
56
  "None": "Nenhuma",
54
57
  "JSON": "JSON",
55
58
  "Form Data": "Dados de Formulário",
56
- "Raw": "RAW"
59
+ "Raw": "RAW",
60
+ "New Event": "Novo evento",
61
+ "Triggers when a new event is captured in PostHog": "Aciona quando um novo evento é capturado no PostHog",
62
+ "Event Name Filter": "Filtro de Nome do Evento",
63
+ "Filter by specific event name (leave empty for all events)": "Filtrar por nome de evento específico (deixe em branco para todos os eventos)"
57
64
  }
@@ -1,23 +1,32 @@
1
1
  {
2
2
  "Open-source product analytics": "Open-source product analytics",
3
- "\n[Click here](https://posthog.com/docs/api/overview#personal-api-keys-recommended) to learn how to obtain your Personal API key.\n": "\n[Click here](https://posthog.com/docs/api/overview#personal-api-keys-recommended) to learn how to obtain your Personal API key.\n",
4
- "Create Event": "Create Event",
3
+ "Personal API Key": "Personal API Key",
4
+ "Project ID": "Project ID",
5
+ "API Host": "API Host",
6
+ "Ingestion Host": "Ingestion Host",
7
+ "Your PostHog personal API key": "Your PostHog personal API key",
8
+ "Your PostHog project ID (found in project settings URL)": "Your PostHog project ID (found in project settings URL)",
9
+ "Base URL for private API calls (default: https://us.posthog.com)": "Base URL for private API calls (default: https://us.posthog.com)",
10
+ "Base URL for event capture (default: https://us.i.posthog.com)": "Base URL for event capture (default: https://us.i.posthog.com)",
11
+ "Connect your PostHog account.\n\n**Personal API Key**: Go to PostHog → Settings → Personal API Keys → Create personal API key.\n\n**Project ID**: Found in the URL when viewing your project: `/project/{id}/`\n\n**API Host**: The base URL for private API calls.\n- US Cloud (default): `https://us.posthog.com`\n- EU Cloud: `https://eu.posthog.com`\n- Self-hosted: your instance URL (e.g. `https://posthog.mycompany.com`)\n\n**Ingestion Host**: The base URL for event capture.\n- US Cloud (default): `https://us.i.posthog.com`\n": "Connect your PostHog account.\n\n**Personal API Key**: Go to PostHog → Settings → Personal API Keys → Create personal API key.\n\n**Project ID**: Found in the URL when viewing your project: `/project/{id}/`\n\n**API Host**: The base URL for private API calls.\n- US Cloud (default): `https://us.posthog.com`\n- EU Cloud: `https://eu.posthog.com`\n- Self-hosted: your instance URL (e.g. `https://posthog.mycompany.com`)\n\n**Ingestion Host**: The base URL for event capture.\n- US Cloud (default): `https://us.i.posthog.com`\n- EU Cloud: `https://eu.i.posthog.com`\n- Self-hosted: same as your API Host",
12
+ "Capture Event": "Capture Event",
5
13
  "Create Project": "Create Project",
14
+ "Get Feature Flags": "Get Feature Flags",
15
+ "List Persons": "List Persons",
6
16
  "Custom API Call": "Custom API Call",
7
- "Create an event inside a project": "Create an event inside a project",
8
- "Create a posthog project": "Create a posthog project",
17
+ "Capture a custom event in PostHog": "Capture a custom event in PostHog",
18
+ "Create a new PostHog project in your organization": "Create a new PostHog project in your organization",
19
+ "List all feature flags in your PostHog project": "List all feature flags in your PostHog project",
20
+ "Get a list of identified users in your PostHog project": "Get a list of identified users in your PostHog project",
9
21
  "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
10
- "Event name": "Event name",
11
- "Event type": "Event type",
12
- "Distinct Id": "Distinct Id",
22
+ "Event Name": "Event Name",
23
+ "Distinct ID": "Distinct ID",
13
24
  "Properties": "Properties",
14
- "Context": "Context",
15
- "Message ID": "Message ID",
16
- "Category": "Category",
17
- "Name": "Name",
18
- "Slack Incoming Webhook": "Slack Incoming Webhook",
25
+ "Organization": "Organization",
26
+ "Project Name": "Project Name",
19
27
  "Anonymize IPs": "Anonymize IPs",
20
- "Is demo project": "Is demo project",
28
+ "Limit": "Limit",
29
+ "Search": "Search",
21
30
  "Method": "Method",
22
31
  "Headers": "Headers",
23
32
  "Query Parameters": "Query Parameters",
@@ -27,23 +36,17 @@
27
36
  "No Error on Failure": "No Error on Failure",
28
37
  "Timeout (in seconds)": "Timeout (in seconds)",
29
38
  "Follow redirects": "Follow redirects",
30
- "The event name": "The event name",
31
- "User's Distinct Id": "User's Distinct Id",
32
- "The event properties": "The event properties",
33
- "The event context,": "The event context,",
34
- "The message id,": "The message id,",
35
- "The event category.": "The event category.",
36
- "Project Name": "Project Name",
37
- "Slack incoming webhook": "Slack incoming webhook",
38
- "Whether to anonymize incoming IP addresses.": "Whether to anonymize incoming IP addresses.",
39
- "If this is a demo project": "If this is a demo project",
39
+ "The name of the event to capture": "The name of the event to capture",
40
+ "Unique identifier for the user performing the action (e.g. user ID or email address)": "Unique identifier for the user performing the action (e.g. user ID or email address)",
41
+ "Additional event properties as key/value pairs": "Additional event properties as key/value pairs",
42
+ "The organization to create the project in": "The organization to create the project in",
43
+ "The name of the new project": "The name of the new project",
44
+ "Whether to anonymize incoming IP addresses": "Whether to anonymize incoming IP addresses",
45
+ "Maximum number of feature flags to return (default: 100)": "Maximum number of feature flags to return (default: 100)",
46
+ "Maximum number of persons to return (default: 100)": "Maximum number of persons to return (default: 100)",
47
+ "Filter persons by email or name": "Filter persons by email or name",
40
48
  "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
41
49
  "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
42
- "Alias": "Alias",
43
- "Capture": "Capture",
44
- "Identify": "Identify",
45
- "Page": "Page",
46
- "Screen": "Screen",
47
50
  "GET": "GET",
48
51
  "POST": "POST",
49
52
  "PATCH": "PATCH",
@@ -53,5 +56,9 @@
53
56
  "None": "None",
54
57
  "JSON": "JSON",
55
58
  "Form Data": "Form Data",
56
- "Raw": "Raw"
59
+ "Raw": "Raw",
60
+ "New Event": "New Event",
61
+ "Triggers when a new event is captured in PostHog": "Triggers when a new event is captured in PostHog",
62
+ "Event Name Filter": "Event Name Filter",
63
+ "Filter by specific event name (leave empty for all events)": "Filter by specific event name (leave empty for all events)"
57
64
  }
package/src/i18n/zh.json CHANGED
@@ -1,23 +1,32 @@
1
1
  {
2
2
  "Open-source product analytics": "Open-source product analytics",
3
- "\n[Click here](https://posthog.com/docs/api/overview#personal-api-keys-recommended) to learn how to obtain your Personal API key.\n": "\n[Click here](https://posthog.com/docs/api/overview#personal-api-keys-recommended) to learn how to obtain your Personal API key.\n",
4
- "Create Event": "Create Event",
3
+ "Personal API Key": "Personal API Key",
4
+ "Project ID": "Project ID",
5
+ "API Host": "API Host",
6
+ "Ingestion Host": "Ingestion Host",
7
+ "Your PostHog personal API key": "Your PostHog personal API key",
8
+ "Your PostHog project ID (found in project settings URL)": "Your PostHog project ID (found in project settings URL)",
9
+ "Base URL for private API calls (default: https://us.posthog.com)": "Base URL for private API calls (default: https://us.posthog.com)",
10
+ "Base URL for event capture (default: https://us.i.posthog.com)": "Base URL for event capture (default: https://us.i.posthog.com)",
11
+ "Connect your PostHog account.\n\n**Personal API Key**: Go to PostHog → Settings → Personal API Keys → Create personal API key.\n\n**Project ID**: Found in the URL when viewing your project: `/project/{id}/`\n\n**API Host**: The base URL for private API calls.\n- US Cloud (default): `https://us.posthog.com`\n- EU Cloud: `https://eu.posthog.com`\n- Self-hosted: your instance URL (e.g. `https://posthog.mycompany.com`)\n\n**Ingestion Host**: The base URL for event capture.\n- US Cloud (default): `https://us.i.posthog.com`\n": "Connect your PostHog account.\n\n**Personal API Key**: Go to PostHog → Settings → Personal API Keys → Create personal API key.\n\n**Project ID**: Found in the URL when viewing your project: `/project/{id}/`\n\n**API Host**: The base URL for private API calls.\n- US Cloud (default): `https://us.posthog.com`\n- EU Cloud: `https://eu.posthog.com`\n- Self-hosted: your instance URL (e.g. `https://posthog.mycompany.com`)\n\n**Ingestion Host**: The base URL for event capture.\n- US Cloud (default): `https://us.i.posthog.com`\n- EU Cloud: `https://eu.i.posthog.com`\n- Self-hosted: same as your API Host",
12
+ "Capture Event": "Capture Event",
5
13
  "Create Project": "Create Project",
14
+ "Get Feature Flags": "Get Feature Flags",
15
+ "List Persons": "List Persons",
6
16
  "Custom API Call": "自定义 API 呼叫",
7
- "Create an event inside a project": "Create an event inside a project",
8
- "Create a posthog project": "Create a posthog project",
17
+ "Capture a custom event in PostHog": "Capture a custom event in PostHog",
18
+ "Create a new PostHog project in your organization": "Create a new PostHog project in your organization",
19
+ "List all feature flags in your PostHog project": "List all feature flags in your PostHog project",
20
+ "Get a list of identified users in your PostHog project": "Get a list of identified users in your PostHog project",
9
21
  "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
10
- "Event name": "Event name",
11
- "Event type": "Event type",
12
- "Distinct Id": "Distinct Id",
22
+ "Event Name": "Event Name",
23
+ "Distinct ID": "Distinct ID",
13
24
  "Properties": "Properties",
14
- "Context": "Context",
15
- "Message ID": "Message ID",
16
- "Category": "Category",
17
- "Name": "名称",
18
- "Slack Incoming Webhook": "Slack Incoming Webhook",
25
+ "Organization": "Organization",
26
+ "Project Name": "项目名称",
19
27
  "Anonymize IPs": "Anonymize IPs",
20
- "Is demo project": "Is demo project",
28
+ "Limit": "Limit",
29
+ "Search": "Search",
21
30
  "Method": "方法",
22
31
  "Headers": "信头",
23
32
  "Query Parameters": "查询参数",
@@ -27,23 +36,17 @@
27
36
  "No Error on Failure": "失败时没有错误",
28
37
  "Timeout (in seconds)": "超时(秒)",
29
38
  "Follow redirects": "Follow redirects",
30
- "The event name": "The event name",
31
- "User's Distinct Id": "User's Distinct Id",
32
- "The event properties": "The event properties",
33
- "The event context,": "The event context,",
34
- "The message id,": "The message id,",
35
- "The event category.": "The event category.",
36
- "Project Name": "项目名称",
37
- "Slack incoming webhook": "Slack incoming webhook",
38
- "Whether to anonymize incoming IP addresses.": "Whether to anonymize incoming IP addresses.",
39
- "If this is a demo project": "If this is a demo project",
39
+ "The name of the event to capture": "The name of the event to capture",
40
+ "Unique identifier for the user performing the action (e.g. user ID or email address)": "Unique identifier for the user performing the action (e.g. user ID or email address)",
41
+ "Additional event properties as key/value pairs": "Additional event properties as key/value pairs",
42
+ "The organization to create the project in": "The organization to create the project in",
43
+ "The name of the new project": "The name of the new project",
44
+ "Whether to anonymize incoming IP addresses": "Whether to anonymize incoming IP addresses",
45
+ "Maximum number of feature flags to return (default: 100)": "Maximum number of feature flags to return (default: 100)",
46
+ "Maximum number of persons to return (default: 100)": "Maximum number of persons to return (default: 100)",
47
+ "Filter persons by email or name": "Filter persons by email or name",
40
48
  "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
41
49
  "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
42
- "Alias": "Alias",
43
- "Capture": "Capture",
44
- "Identify": "Identify",
45
- "Page": "Page",
46
- "Screen": "Screen",
47
50
  "GET": "获取",
48
51
  "POST": "帖子",
49
52
  "PATCH": "PATCH",
@@ -53,5 +56,9 @@
53
56
  "None": "无",
54
57
  "JSON": "JSON",
55
58
  "Form Data": "表单数据",
56
- "Raw": "原始文件"
59
+ "Raw": "原始文件",
60
+ "New Event": "New Event",
61
+ "Triggers when a new event is captured in PostHog": "Triggers when a new event is captured in PostHog",
62
+ "Event Name Filter": "Event Name Filter",
63
+ "Filter by specific event name (leave empty for all events)": "Filter by specific event name (leave empty for all events)"
57
64
  }
package/src/index.d.ts CHANGED
@@ -1,2 +1,19 @@
1
- export declare const posthogAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
2
- export declare const posthog: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
1
+ export declare const posthogAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ personal_api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ project_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ api_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
+ ingestion_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ }>;
7
+ export declare const posthog: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
8
+ personal_api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
9
+ project_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
+ api_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ ingestion_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
+ }>>;
13
+ export type PostHogAuth = {
14
+ personal_api_key: string;
15
+ project_id: string;
16
+ api_host?: string;
17
+ ingestion_host?: string;
18
+ };
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW;;;;;EAyDtB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;GAsBlB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
package/src/index.js CHANGED
@@ -7,13 +7,67 @@ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
7
  const shared_1 = require("@activepieces/shared");
8
8
  const create_event_1 = require("./lib/actions/create-event");
9
9
  const create_project_1 = require("./lib/actions/create-project");
10
- const authenticationMarkdown = `
11
- [Click here](https://posthog.com/docs/api/overview#personal-api-keys-recommended) to learn how to obtain your Personal API key.
12
- `;
13
- exports.posthogAuth = pieces_framework_1.PieceAuth.SecretText({
14
- displayName: 'Personal API Key',
15
- description: authenticationMarkdown,
10
+ const get_feature_flags_1 = require("./lib/actions/get-feature-flags");
11
+ const list_persons_1 = require("./lib/actions/list-persons");
12
+ const new_event_1 = require("./lib/triggers/new-event");
13
+ exports.posthogAuth = pieces_framework_1.PieceAuth.CustomAuth({
14
+ description: `Connect your PostHog account.
15
+
16
+ **Personal API Key**: Go to PostHog → Settings → Personal API Keys → Create personal API key.
17
+
18
+ **Project ID**: Found in the URL when viewing your project: \`/project/{id}/\`
19
+
20
+ **API Host**: The base URL for private API calls.
21
+ - US Cloud (default): \`https://us.posthog.com\`
22
+ - EU Cloud: \`https://eu.posthog.com\`
23
+ - Self-hosted: your instance URL (e.g. \`https://posthog.mycompany.com\`)
24
+
25
+ **Ingestion Host**: The base URL for event capture.
26
+ - US Cloud (default): \`https://us.i.posthog.com\`
27
+ - EU Cloud: \`https://eu.i.posthog.com\`
28
+ - Self-hosted: same as your API Host`,
16
29
  required: true,
30
+ props: {
31
+ personal_api_key: pieces_framework_1.PieceAuth.SecretText({
32
+ displayName: 'Personal API Key',
33
+ description: 'Your PostHog personal API key',
34
+ required: true,
35
+ }),
36
+ project_id: pieces_framework_1.Property.ShortText({
37
+ displayName: 'Project ID',
38
+ description: 'Your PostHog project ID (found in project settings URL)',
39
+ required: true,
40
+ }),
41
+ api_host: pieces_framework_1.Property.ShortText({
42
+ displayName: 'API Host',
43
+ description: 'Base URL for private API calls (default: https://us.posthog.com)',
44
+ required: false,
45
+ defaultValue: 'https://us.posthog.com',
46
+ }),
47
+ ingestion_host: pieces_framework_1.Property.ShortText({
48
+ displayName: 'Ingestion Host',
49
+ description: 'Base URL for event capture (default: https://us.i.posthog.com)',
50
+ required: false,
51
+ defaultValue: 'https://us.i.posthog.com',
52
+ }),
53
+ },
54
+ validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
55
+ try {
56
+ const apiHost = auth.api_host || 'https://us.posthog.com';
57
+ yield pieces_common_1.httpClient.sendRequest({
58
+ method: pieces_common_1.HttpMethod.GET,
59
+ url: `${apiHost}/api/projects/${auth.project_id}/`,
60
+ authentication: {
61
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
62
+ token: auth.personal_api_key,
63
+ },
64
+ });
65
+ return { valid: true };
66
+ }
67
+ catch (_b) {
68
+ return { valid: false, error: 'Invalid credentials. Check your Personal API Key and Project ID.' };
69
+ }
70
+ }),
17
71
  });
18
72
  exports.posthog = (0, pieces_framework_1.createPiece)({
19
73
  displayName: 'PostHog',
@@ -25,17 +79,19 @@ exports.posthog = (0, pieces_framework_1.createPiece)({
25
79
  actions: [
26
80
  create_event_1.posthogCreateEvent,
27
81
  create_project_1.posthogCreateProject,
82
+ get_feature_flags_1.posthogGetFeatureFlags,
83
+ list_persons_1.posthogListPersons,
28
84
  (0, pieces_common_1.createCustomApiCallAction)({
29
- baseUrl: () => 'https://app.posthog.com',
85
+ baseUrl: (auth) => auth.props.api_host || 'https://us.posthog.com',
30
86
  auth: exports.posthogAuth,
31
87
  authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
32
88
  return ({
33
- Authorization: `Bearer ${auth}`,
89
+ Authorization: `Bearer ${auth.props.personal_api_key}`,
34
90
  });
35
91
  }),
36
92
  }),
37
93
  ],
38
- authors: ["kishanprmr", "MoShizzle", "khaledmashaly", "abuaboud"],
39
- triggers: [],
94
+ authors: ['kishanprmr', 'MoShizzle', 'khaledmashaly', 'abuaboud', 'Tosh94'],
95
+ triggers: [new_event_1.posthogNewEvent],
40
96
  });
41
97
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/posthog/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAAwE;AACxE,iDAAqD;AACrD,6DAAgE;AAChE,iEAAoE;AAEpE,MAAM,sBAAsB,GAAG;;CAE9B,CAAC;AAEW,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,+BAA+B;IAE5C,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,iDAAiD;IAC1D,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,IAAI,EAAE,mBAAW;IACjB,OAAO,EAAE;QACP,iCAAkB;QAClB,qCAAoB;QACpB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB;YACxC,IAAI,EAAE,mBAAW;YACjB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,IAAI,EAAE;iBAChC,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,OAAO,EAAE,CAAC,YAAY,EAAC,WAAW,EAAC,eAAe,EAAC,UAAU,CAAC;IAC9D,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAKqC;AACrC,qEAAkF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AAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACzB,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,kEAAkE,EAAE,CAAC;QACrG,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,+BAA+B;IAC5C,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,iDAAiD;IAC1D,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,IAAI,EAAE,mBAAW;IACjB,OAAO,EAAE;QACP,iCAAkB;QAClB,qCAAoB;QACpB,0CAAsB;QACtB,iCAAkB;QAClB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAE,IAA0B,CAAC,KAAK,CAAC,QAAQ,IAAI,wBAAwB;YACzF,IAAI,EAAE,mBAAW;YACjB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA0B,CAAC,KAAK,CAAC,gBAAgB,EAAE;iBAC9E,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,CAAC;IAC3E,QAAQ,EAAE,CAAC,2BAAe,CAAC;CAC5B,CAAC,CAAC"}
@@ -1,9 +1,11 @@
1
- export declare const posthogCreateEvent: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
1
+ export declare const posthogCreateEvent: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ personal_api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ project_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ api_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
+ ingestion_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ }>, {
2
7
  event: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- event_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
8
  distinct_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
9
  properties: import("@activepieces/pieces-framework").ObjectProperty<false>;
6
- context: import("@activepieces/pieces-framework").ObjectProperty<false>;
7
- message_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
- category: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
10
  }>;
11
+ //# sourceMappingURL=create-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-event.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-event.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;EAkD7B,CAAC"}
@@ -8,80 +8,50 @@ const __1 = require("../..");
8
8
  exports.posthogCreateEvent = (0, pieces_framework_1.createAction)({
9
9
  auth: __1.posthogAuth,
10
10
  name: 'create_event',
11
- displayName: 'Create Event',
12
- description: 'Create an event inside a project',
11
+ displayName: 'Capture Event',
12
+ description: 'Capture a custom event in PostHog',
13
13
  props: {
14
14
  event: pieces_framework_1.Property.ShortText({
15
- displayName: 'Event name',
16
- description: 'The event name',
15
+ displayName: 'Event Name',
16
+ description: 'The name of the event to capture',
17
17
  required: true,
18
18
  }),
19
- event_type: pieces_framework_1.Property.StaticDropdown({
20
- displayName: 'Event type',
21
- required: true,
22
- options: {
23
- options: [
24
- { label: 'Alias', value: 'alias' },
25
- { label: 'Capture', value: 'capture' },
26
- { label: 'Identify', value: 'screen' },
27
- { label: 'Page', value: 'page' },
28
- { label: 'Screen', value: 'screen' },
29
- ],
30
- },
31
- }),
32
19
  distinct_id: pieces_framework_1.Property.ShortText({
33
- displayName: 'Distinct Id',
34
- description: "User's Distinct Id",
20
+ displayName: 'Distinct ID',
21
+ description: 'Unique identifier for the user performing the action (e.g. user ID or email address)',
35
22
  required: true,
36
23
  }),
37
24
  properties: pieces_framework_1.Property.Object({
38
25
  displayName: 'Properties',
39
- description: 'The event properties',
40
- required: false,
41
- }),
42
- context: pieces_framework_1.Property.Object({
43
- displayName: 'Context',
44
- description: 'The event context,',
45
- required: false,
46
- }),
47
- message_id: pieces_framework_1.Property.ShortText({
48
- displayName: 'Message ID',
49
- description: 'The message id,',
50
- required: false,
51
- }),
52
- category: pieces_framework_1.Property.ShortText({
53
- displayName: 'Category',
54
- description: 'The event category.',
26
+ description: 'Additional event properties as key/value pairs',
55
27
  required: false,
56
28
  }),
57
29
  },
58
30
  run(context) {
59
31
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
60
- const body = {
61
- event: context.propsValue.event,
62
- type: context.propsValue.event_type,
63
- api_key: context.auth.secret_text,
64
- messageId: context.propsValue.message_id,
65
- context: context.propsValue.context || {},
66
- properties: context.propsValue.properties || {},
67
- distinct_id: context.propsValue.distinct_id,
68
- category: context.propsValue.category,
69
- };
70
- const request = {
71
- method: pieces_common_1.HttpMethod.POST,
72
- url: `https://app.posthog.com/capture/`,
73
- body,
32
+ var _a;
33
+ const { personal_api_key, project_id, api_host, ingestion_host } = context.auth.props;
34
+ const apiBase = api_host || 'https://us.posthog.com';
35
+ const ingestionBase = ingestion_host || 'https://us.i.posthog.com';
36
+ const projectResult = yield pieces_common_1.httpClient.sendRequest({
37
+ method: pieces_common_1.HttpMethod.GET,
38
+ url: `${apiBase}/api/projects/${project_id}/`,
74
39
  authentication: {
75
40
  type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
76
- token: context.auth.secret_text,
41
+ token: personal_api_key,
42
+ },
43
+ });
44
+ const result = yield pieces_common_1.httpClient.sendRequest({
45
+ method: pieces_common_1.HttpMethod.POST,
46
+ url: `${ingestionBase}/i/v0/e/`,
47
+ body: {
48
+ api_key: projectResult.body.api_token,
49
+ distinct_id: context.propsValue.distinct_id,
50
+ event: context.propsValue.event,
51
+ properties: (_a = context.propsValue.properties) !== null && _a !== void 0 ? _a : {},
77
52
  },
78
- };
79
- const result = yield pieces_common_1.httpClient.sendRequest(request);
80
- console.debug('Event creation response', result);
81
- if (result.status === 200) {
82
- return result.body;
83
- }
84
- return result;
53
+ });
54
+ return result.body;
85
55
  });
86
56
  },
87
57
  });
@@ -1 +1 @@
1
- {"version":3,"file":"create-event.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/posthog/src/lib/actions/create-event.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAKqC;AAErC,6BAAoC;AAEvB,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,kCAAkC;IAC/C,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAClC,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;oBAClC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACtC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;iBACrC;aACF;SACF,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,oBAAoB;YACjC,QA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,MAAM,aAAa,GAAG,cAAc,IAAI,0BAA0B,CAAC;YAEnE,MAAM,aAAa,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAwB;gBACxE,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,OAAO,iBAAiB,UAAU,GAAG;gBAC7C,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,gBAAgB;iBACxB;aACF,CAAC,CAAC;YAEH,MAAM,MAAM,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAqB;gBAC9D,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,aAAa,UAAU;gBAC/B,IAAI,EAAE;oBACJ,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS;oBACrC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;oBAC3C,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;oBAC/B,UAAU,EAAE,MAAA,OAAO,CAAC,UAAU,CAAC,UAAU,mCAAI,EAAE;iBAChD;aACF,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +1,16 @@
1
- export declare const posthogCreateProject: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- slack_incoming_webhook: import("@activepieces/pieces-framework").ShortTextProperty<false>;
1
+ export declare const posthogCreateProject: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ personal_api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
+ project_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ api_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
+ ingestion_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ }>, {
7
+ organization_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
8
+ personal_api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
9
+ project_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
+ api_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ ingestion_host: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
+ }>>;
13
+ name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
14
  anonymize_ips: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- is_demo: import("@activepieces/pieces-framework").CheckboxProperty<false>;
6
15
  }>;
16
+ //# sourceMappingURL=create-project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-project.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-project.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;EA8E/B,CAAC"}