@activepieces/piece-pipedrive 0.6.3 → 0.7.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.
- package/package.json +10 -8
- package/src/i18n/de.json +18 -15
- package/src/i18n/es.json +18 -15
- package/src/i18n/fr.json +18 -15
- package/src/i18n/ja.json +18 -15
- package/src/i18n/nl.json +18 -15
- package/src/i18n/pt.json +18 -15
- package/src/i18n/translation.json +18 -15
- package/src/i18n/zh.json +18 -15
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-follower.js +1 -1
- package/src/lib/actions/add-follower.js.map +1 -1
- package/src/lib/actions/add-label-to-person.js +10 -10
- package/src/lib/actions/add-label-to-person.js.map +1 -1
- package/src/lib/actions/add-product-to-deal.js +3 -3
- package/src/lib/actions/add-product-to-deal.js.map +1 -1
- package/src/lib/actions/create-activity.d.ts +2 -2
- package/src/lib/actions/create-activity.js +13 -11
- package/src/lib/actions/create-activity.js.map +1 -1
- package/src/lib/actions/create-deal.js +19 -19
- package/src/lib/actions/create-deal.js.map +1 -1
- package/src/lib/actions/create-lead.d.ts +1 -1
- package/src/lib/actions/create-lead.js +5 -5
- package/src/lib/actions/create-lead.js.map +1 -1
- package/src/lib/actions/create-note.js +4 -4
- package/src/lib/actions/create-note.js.map +1 -1
- package/src/lib/actions/create-organization.js +21 -17
- package/src/lib/actions/create-organization.js.map +1 -1
- package/src/lib/actions/create-person.d.ts +1 -1
- package/src/lib/actions/create-person.js +47 -29
- package/src/lib/actions/create-person.js.map +1 -1
- package/src/lib/actions/create-product.js +18 -17
- package/src/lib/actions/create-product.js.map +1 -1
- package/src/lib/actions/find-activity.js +24 -10
- package/src/lib/actions/find-activity.js.map +1 -1
- package/src/lib/actions/find-deal.js +12 -10
- package/src/lib/actions/find-deal.js.map +1 -1
- package/src/lib/actions/find-deals-associated-with-person.js +12 -6
- package/src/lib/actions/find-deals-associated-with-person.js.map +1 -1
- package/src/lib/actions/find-notes.js +3 -3
- package/src/lib/actions/find-notes.js.map +1 -1
- package/src/lib/actions/find-organization.js +9 -7
- package/src/lib/actions/find-organization.js.map +1 -1
- package/src/lib/actions/find-person.js +9 -6
- package/src/lib/actions/find-person.js.map +1 -1
- package/src/lib/actions/find-product.js +14 -10
- package/src/lib/actions/find-product.js.map +1 -1
- package/src/lib/actions/find-products.js +20 -12
- package/src/lib/actions/find-products.js.map +1 -1
- package/src/lib/actions/find-user.js +4 -4
- package/src/lib/actions/find-user.js.map +1 -1
- package/src/lib/actions/get-note.js +6 -5
- package/src/lib/actions/get-note.js.map +1 -1
- package/src/lib/actions/get-product.js +5 -5
- package/src/lib/actions/get-product.js.map +1 -1
- package/src/lib/actions/update-activity.d.ts +2 -2
- package/src/lib/actions/update-activity.js +15 -12
- package/src/lib/actions/update-activity.js.map +1 -1
- package/src/lib/actions/update-deal.js +19 -20
- package/src/lib/actions/update-deal.js.map +1 -1
- package/src/lib/actions/update-lead.d.ts +1 -1
- package/src/lib/actions/update-lead.js +5 -5
- package/src/lib/actions/update-lead.js.map +1 -1
- package/src/lib/actions/update-organization.js +21 -18
- package/src/lib/actions/update-organization.js.map +1 -1
- package/src/lib/actions/update-person.js +37 -26
- package/src/lib/actions/update-person.js.map +1 -1
- package/src/lib/common/constants.d.ts +3 -0
- package/src/lib/common/constants.js +64 -0
- package/src/lib/common/constants.js.map +1 -0
- package/src/lib/common/index.d.ts +5 -2
- package/src/lib/common/index.js +127 -10
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/common/props.d.ts +62 -7
- package/src/lib/common/props.js +138 -81
- package/src/lib/common/props.js.map +1 -1
- package/src/lib/common/types.d.ts +319 -36
- package/src/lib/trigger/activity-matching-filter.js +10 -9
- package/src/lib/trigger/activity-matching-filter.js.map +1 -1
- package/src/lib/trigger/deal-matching-filter.js +15 -58
- package/src/lib/trigger/deal-matching-filter.js.map +1 -1
- package/src/lib/trigger/new-activity.js +51 -62
- package/src/lib/trigger/new-activity.js.map +1 -1
- package/src/lib/trigger/new-deal.js +37 -113
- package/src/lib/trigger/new-deal.js.map +1 -1
- package/src/lib/trigger/new-lead.js +13 -10
- package/src/lib/trigger/new-lead.js.map +1 -1
- package/src/lib/trigger/new-note.js +17 -23
- package/src/lib/trigger/new-note.js.map +1 -1
- package/src/lib/trigger/new-organization.js +35 -61
- package/src/lib/trigger/new-organization.js.map +1 -1
- package/src/lib/trigger/new-person.js +34 -81
- package/src/lib/trigger/new-person.js.map +1 -1
- package/src/lib/trigger/organization-matching-filter.js +46 -69
- package/src/lib/trigger/organization-matching-filter.js.map +1 -1
- package/src/lib/trigger/person-matching-filter.js +39 -84
- package/src/lib/trigger/person-matching-filter.js.map +1 -1
- package/src/lib/trigger/updated-deal-stage.js +50 -123
- package/src/lib/trigger/updated-deal-stage.js.map +1 -1
- package/src/lib/trigger/updated-deal.js +38 -128
- package/src/lib/trigger/updated-deal.js.map +1 -1
- package/src/lib/trigger/updated-organization.js +39 -68
- package/src/lib/trigger/updated-organization.js.map +1 -1
- package/src/lib/trigger/updated-person.js +39 -89
- package/src/lib/trigger/updated-person.js.map +1 -1
package/src/i18n/pt.json
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"Find User": "Localizar usuário",
|
|
31
31
|
"Custom API Call": "Chamada de API personalizada",
|
|
32
32
|
"Adds a follower to a deal, person, organization or product.": "Adiciona um seguidor ao negócio, pessoa, organização ou produto.",
|
|
33
|
-
"
|
|
33
|
+
"Finds a note by ID.": "Encontra uma nota por ID.",
|
|
34
34
|
"Creates a new note.": "Cria uma nova nota.",
|
|
35
|
-
"Adds
|
|
35
|
+
"Adds existing labels to an existing person.": "Adiciona marcadores existentes a uma pessoa existente.",
|
|
36
36
|
"Adds a product to a deal.": "Adiciona um produto a um negócio.",
|
|
37
37
|
"Uploads a file and attaches it to a deal,person,organization,activity or product.": "Carrega um arquivo e o anexa a uma oferta, pessoa, organização, atividade ou produto.",
|
|
38
38
|
"Creates a new activity.": "Cria uma nova atividade.",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"Updates an existing person.": "Atualiza uma pessoa existente.",
|
|
48
48
|
"Creates a new product.": "Cria um novo produto.",
|
|
49
49
|
"Finds multiple deals related to a specific person.": "Encontra várias ofertas relacionadas a uma pessoa específica.",
|
|
50
|
-
"
|
|
50
|
+
"Finds a product by name ": "Localiza um produto por nome ",
|
|
51
51
|
"Finds a product or products by name or product code.": "Encontra um produto ou produto por nome ou código do produto.",
|
|
52
|
-
"Finds notes by Deal,Lead,Person, or Organization ID.": "
|
|
53
|
-
"
|
|
52
|
+
"Finds notes by Deal, Lead, Person, or Organization ID.": "Encontrar notas por Oferta, Potencial, Pessoa ou ID da Organização.",
|
|
53
|
+
"Finds a product by ID.": "Encontra um produto por ID.",
|
|
54
54
|
"Finds an organization.": "Encontra uma organização.",
|
|
55
55
|
"Finds a person.": "Encontra uma pessoa.",
|
|
56
56
|
"Finds a deal by any field.": "Encontrar uma oferta por qualquer campo.",
|
|
57
57
|
"Finds an activity by subject.": "Encontra uma atividade por assunto.",
|
|
58
|
-
"
|
|
58
|
+
"Finds a user by name or email.": "Localiza um usuário por nome ou e-mail.",
|
|
59
59
|
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
|
60
60
|
"Follower": "Seguidor",
|
|
61
61
|
"Target Object": "Target Object",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"Free or Busy": "Gratuito ou Ocupado",
|
|
94
94
|
"Note": "Observação",
|
|
95
95
|
"Public Description": "Descrição pública",
|
|
96
|
-
"Activity": "Atividade",
|
|
97
96
|
"Title": "Título",
|
|
98
97
|
"Creation Time": "Hora da Criação",
|
|
99
98
|
"Status": "Estado",
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
"Visible To": "Visível para",
|
|
108
107
|
"Custom Fields": "Campos Personalizados",
|
|
109
108
|
"Channel": "Canal",
|
|
110
|
-
"Lead Value": "Valor do
|
|
109
|
+
"Lead Value Amount": "Valor do Lead",
|
|
111
110
|
"Lead Value Currency": "Moeda do Lead",
|
|
112
111
|
"Name": "Nome",
|
|
113
112
|
"Address": "Endereço",
|
|
@@ -134,6 +133,7 @@
|
|
|
134
133
|
"Headers": "Cabeçalhos",
|
|
135
134
|
"Query Parameters": "Parâmetros da consulta",
|
|
136
135
|
"Body": "Conteúdo",
|
|
136
|
+
"Response is Binary ?": "A resposta é binária ?",
|
|
137
137
|
"No Error on Failure": "Nenhum erro no Failure",
|
|
138
138
|
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
139
139
|
"Type of object to add the follower to.": "Tipo de objeto ao qual adicionar o seguidor.",
|
|
@@ -144,10 +144,13 @@
|
|
|
144
144
|
"You can use Find Product action to retrieve product ID.": "Você pode usar a ação 'Encontrar produto' para recuperar o ID do produto.",
|
|
145
145
|
"Please enter date in YYYY-MM-DD format.": "Por favor, digite a data no formato AAAA-MM-DD.",
|
|
146
146
|
"Please enter time in HH:MM format.": "Por favor, digite a hora no formato HH:MM.",
|
|
147
|
+
"Please enter time in HH:MM format (e.g., \"01:30\" for 1 hour 30 minutes).": "Por favor, digite o tempo no formato HH:MM (por exemplo, \"01:30\" para 1 hora 30 minutos).",
|
|
147
148
|
"If a stage is chosen above, the pipeline field will be ignored.": "Se for escolhida uma etapa acima, o campo de pipeline será ignorado.",
|
|
148
|
-
"Please enter currency code.": "Por favor,
|
|
149
|
+
"Please enter currency code (e.g., \"USD\", \"EUR\").": "Por favor, insira o código da moeda (ex.: \"USD\", \"EUR\").",
|
|
150
|
+
"The currency of the lead value (e.g., \"USD\", \"EUR\").": "A moeda do valor do lead (por exemplo, \"USD\", \"EUR\").",
|
|
149
151
|
"Marketing opt-in status": "Status do opt-in para marketing",
|
|
150
152
|
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
153
|
+
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
|
151
154
|
"Deal": "Negócio",
|
|
152
155
|
"Person": "Pessoa",
|
|
153
156
|
"Organization": "Cliente",
|
|
@@ -163,8 +166,8 @@
|
|
|
163
166
|
"Won": "Ganhou",
|
|
164
167
|
"Lost": "Perdido",
|
|
165
168
|
"Deleted": "Excluído",
|
|
166
|
-
"
|
|
167
|
-
"
|
|
169
|
+
"Owner & followers": "Proprietário e seguidores",
|
|
170
|
+
"Entire company": "Toda a empresa",
|
|
168
171
|
"No Consent": "Sem Consentimento",
|
|
169
172
|
"Unsubscribed": "Cancelada",
|
|
170
173
|
"Subscribed": "Subscrito",
|
|
@@ -197,16 +200,16 @@
|
|
|
197
200
|
"Triggers when a new deal is created.": "Aciona quando uma nova oferta é criada.",
|
|
198
201
|
"Triggers when a new activity is added": "Aciona quando uma nova atividade é adicionada",
|
|
199
202
|
"Triggers when a new note is created.": "Aciona quando uma nova nota é criada.",
|
|
200
|
-
"Triggers when a person is updated": "Dispara quando uma pessoa é atualizada",
|
|
201
|
-
"Triggers when a deal is updated": "Dispara quando uma operação é atualizada",
|
|
203
|
+
"Triggers when a person is updated.": "Dispara quando uma pessoa é atualizada.",
|
|
204
|
+
"Triggers when a deal is updated.": "Dispara quando uma operação é atualizada.",
|
|
202
205
|
"Triggers when a deal's stage is updated.": "Dispara quando o estágio de uma oferta é atualizado.",
|
|
203
206
|
"Triggers when a new lead is created.": "Dispara quando um novo lead é criado.",
|
|
204
207
|
"Triggers when a new organization is created.": "Dispara quando uma nova organização é criada.",
|
|
205
208
|
"Triggers when an existing organization is updated.": "Dispara quando uma organização existente é atualizada.",
|
|
206
209
|
"Trigges when an activity newly matches a Pipedrive filter for the first time.": "Aciona quando uma atividade corresponde a um filtro Pipedrive pela primeira vez.",
|
|
207
210
|
"Trigges when a deal newly matches a Pipedrive filter for the first time.": "Aciona quando uma operação se encaixa num filtro Pipedrive pela primeira vez.",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
211
|
+
"Triggers when a person newly matches a Pipedrive filter for the first time.": "Dispara quando uma pessoa recém-casar com um filtro Pipedrive pela primeira vez.",
|
|
212
|
+
"Triggers when an organization newly matches a Pipedrive filter for the first time.": "Aciona quando uma organização recém-encontrada num filtro Pipedrive pela primeira vez.",
|
|
210
213
|
"Filter by": "Filtrar por",
|
|
211
214
|
"Field Values": "Valores do campo",
|
|
212
215
|
"Field to watch for Changes On": "Campo para monitorar as alterações ativadas",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"Find User": "Find User",
|
|
31
31
|
"Custom API Call": "Custom API Call",
|
|
32
32
|
"Adds a follower to a deal, person, organization or product.": "Adds a follower to a deal, person, organization or product.",
|
|
33
|
-
"
|
|
33
|
+
"Finds a note by ID.": "Finds a note by ID.",
|
|
34
34
|
"Creates a new note.": "Creates a new note.",
|
|
35
|
-
"Adds
|
|
35
|
+
"Adds existing labels to an existing person.": "Adds existing labels to an existing person.",
|
|
36
36
|
"Adds a product to a deal.": "Adds a product to a deal.",
|
|
37
37
|
"Uploads a file and attaches it to a deal,person,organization,activity or product.": "Uploads a file and attaches it to a deal,person,organization,activity or product.",
|
|
38
38
|
"Creates a new activity.": "Creates a new activity.",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"Updates an existing person.": "Updates an existing person.",
|
|
48
48
|
"Creates a new product.": "Creates a new product.",
|
|
49
49
|
"Finds multiple deals related to a specific person.": "Finds multiple deals related to a specific person.",
|
|
50
|
-
"
|
|
50
|
+
"Finds a product by name ": "Finds a product by name ",
|
|
51
51
|
"Finds a product or products by name or product code.": "Finds a product or products by name or product code.",
|
|
52
|
-
"Finds notes by Deal,Lead,Person, or Organization ID.": "Finds notes by Deal,Lead,Person, or Organization ID.",
|
|
53
|
-
"
|
|
52
|
+
"Finds notes by Deal, Lead, Person, or Organization ID.": "Finds notes by Deal, Lead, Person, or Organization ID.",
|
|
53
|
+
"Finds a product by ID.": "Finds a product by ID.",
|
|
54
54
|
"Finds an organization.": "Finds an organization.",
|
|
55
55
|
"Finds a person.": "Finds a person.",
|
|
56
56
|
"Finds a deal by any field.": "Finds a deal by any field.",
|
|
57
57
|
"Finds an activity by subject.": "Finds an activity by subject.",
|
|
58
|
-
"
|
|
58
|
+
"Finds a user by name or email.": "Finds a user by name or email.",
|
|
59
59
|
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
60
60
|
"Follower": "Follower",
|
|
61
61
|
"Target Object": "Target Object",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"Free or Busy": "Free or Busy",
|
|
94
94
|
"Note": "Note",
|
|
95
95
|
"Public Description": "Public Description",
|
|
96
|
-
"Activity": "Activity",
|
|
97
96
|
"Title": "Title",
|
|
98
97
|
"Creation Time": "Creation Time",
|
|
99
98
|
"Status": "Status",
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
"Visible To": "Visible To",
|
|
108
107
|
"Custom Fields": "Custom Fields",
|
|
109
108
|
"Channel": "Channel",
|
|
110
|
-
"Lead Value": "Lead Value",
|
|
109
|
+
"Lead Value Amount": "Lead Value Amount",
|
|
111
110
|
"Lead Value Currency": "Lead Value Currency",
|
|
112
111
|
"Name": "Name",
|
|
113
112
|
"Address": "Address",
|
|
@@ -134,6 +133,7 @@
|
|
|
134
133
|
"Headers": "Headers",
|
|
135
134
|
"Query Parameters": "Query Parameters",
|
|
136
135
|
"Body": "Body",
|
|
136
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
137
137
|
"No Error on Failure": "No Error on Failure",
|
|
138
138
|
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
139
139
|
"Type of object to add the follower to.": "Type of object to add the follower to.",
|
|
@@ -144,10 +144,13 @@
|
|
|
144
144
|
"You can use Find Product action to retrieve product ID.": "You can use Find Product action to retrieve product ID.",
|
|
145
145
|
"Please enter date in YYYY-MM-DD format.": "Please enter date in YYYY-MM-DD format.",
|
|
146
146
|
"Please enter time in HH:MM format.": "Please enter time in HH:MM format.",
|
|
147
|
+
"Please enter time in HH:MM format (e.g., \"01:30\" for 1 hour 30 minutes).": "Please enter time in HH:MM format (e.g., \"01:30\" for 1 hour 30 minutes).",
|
|
147
148
|
"If a stage is chosen above, the pipeline field will be ignored.": "If a stage is chosen above, the pipeline field will be ignored.",
|
|
148
|
-
"Please enter currency code.": "Please enter currency code.",
|
|
149
|
+
"Please enter currency code (e.g., \"USD\", \"EUR\").": "Please enter currency code (e.g., \"USD\", \"EUR\").",
|
|
150
|
+
"The currency of the lead value (e.g., \"USD\", \"EUR\").": "The currency of the lead value (e.g., \"USD\", \"EUR\").",
|
|
149
151
|
"Marketing opt-in status": "Marketing opt-in status",
|
|
150
152
|
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
153
|
+
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
|
151
154
|
"Deal": "Deal",
|
|
152
155
|
"Person": "Person",
|
|
153
156
|
"Organization": "Organization",
|
|
@@ -163,8 +166,8 @@
|
|
|
163
166
|
"Won": "Won",
|
|
164
167
|
"Lost": "Lost",
|
|
165
168
|
"Deleted": "Deleted",
|
|
166
|
-
"
|
|
167
|
-
"
|
|
169
|
+
"Owner & followers": "Owner & followers",
|
|
170
|
+
"Entire company": "Entire company",
|
|
168
171
|
"No Consent": "No Consent",
|
|
169
172
|
"Unsubscribed": "Unsubscribed",
|
|
170
173
|
"Subscribed": "Subscribed",
|
|
@@ -197,16 +200,16 @@
|
|
|
197
200
|
"Triggers when a new deal is created.": "Triggers when a new deal is created.",
|
|
198
201
|
"Triggers when a new activity is added": "Triggers when a new activity is added",
|
|
199
202
|
"Triggers when a new note is created.": "Triggers when a new note is created.",
|
|
200
|
-
"Triggers when a person is updated": "Triggers when a person is updated",
|
|
201
|
-
"Triggers when a deal is updated": "Triggers when a deal is updated",
|
|
203
|
+
"Triggers when a person is updated.": "Triggers when a person is updated.",
|
|
204
|
+
"Triggers when a deal is updated.": "Triggers when a deal is updated.",
|
|
202
205
|
"Triggers when a deal's stage is updated.": "Triggers when a deal's stage is updated.",
|
|
203
206
|
"Triggers when a new lead is created.": "Triggers when a new lead is created.",
|
|
204
207
|
"Triggers when a new organization is created.": "Triggers when a new organization is created.",
|
|
205
208
|
"Triggers when an existing organization is updated.": "Triggers when an existing organization is updated.",
|
|
206
209
|
"Trigges when an activity newly matches a Pipedrive filter for the first time.": "Trigges when an activity newly matches a Pipedrive filter for the first time.",
|
|
207
210
|
"Trigges when a deal newly matches a Pipedrive filter for the first time.": "Trigges when a deal newly matches a Pipedrive filter for the first time.",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
211
|
+
"Triggers when a person newly matches a Pipedrive filter for the first time.": "Triggers when a person newly matches a Pipedrive filter for the first time.",
|
|
212
|
+
"Triggers when an organization newly matches a Pipedrive filter for the first time.": "Triggers when an organization newly matches a Pipedrive filter for the first time.",
|
|
210
213
|
"Filter by": "Filter by",
|
|
211
214
|
"Field Values": "Field Values",
|
|
212
215
|
"Field to watch for Changes On": "Field to watch for Changes On",
|
package/src/i18n/zh.json
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"Find User": "查找用戶",
|
|
31
31
|
"Custom API Call": "自定義 API 呼叫",
|
|
32
32
|
"Adds a follower to a deal, person, organization or product.": "添加關注到交易、人員、組織或產品。",
|
|
33
|
-
"
|
|
33
|
+
"Finds a note by ID.": "Finds a note by ID.",
|
|
34
34
|
"Creates a new note.": "創建新筆記。",
|
|
35
|
-
"Adds
|
|
35
|
+
"Adds existing labels to an existing person.": "Adds existing labels to an existing person.",
|
|
36
36
|
"Adds a product to a deal.": "將產品添加到交易。",
|
|
37
37
|
"Uploads a file and attaches it to a deal,person,organization,activity or product.": "上傳文件並將其附加到交易、人員、組織、活動或產品。",
|
|
38
38
|
"Creates a new activity.": "創建新活動。",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"Updates an existing person.": "更新現有的人員。",
|
|
48
48
|
"Creates a new product.": "創建新產品。",
|
|
49
49
|
"Finds multiple deals related to a specific person.": "查找與特定人員相關的多筆交易。",
|
|
50
|
-
"
|
|
50
|
+
"Finds a product by name ": "Finds a product by name ",
|
|
51
51
|
"Finds a product or products by name or product code.": "按名稱或產品代碼查找產品或產品。",
|
|
52
|
-
"Finds notes by Deal,Lead,Person, or Organization ID.": "
|
|
53
|
-
"
|
|
52
|
+
"Finds notes by Deal, Lead, Person, or Organization ID.": "Finds notes by Deal, Lead, Person, or Organization ID.",
|
|
53
|
+
"Finds a product by ID.": "Finds a product by ID.",
|
|
54
54
|
"Finds an organization.": "查找組織。",
|
|
55
55
|
"Finds a person.": "查找人員。",
|
|
56
56
|
"Finds a deal by any field.": "按任意字段查找交易。",
|
|
57
57
|
"Finds an activity by subject.": "按主題查找活動。",
|
|
58
|
-
"
|
|
58
|
+
"Finds a user by name or email.": "Finds a user by name or email.",
|
|
59
59
|
"Make a custom API call to a specific endpoint": "將一個自定義 API 呼叫到一個特定的終點",
|
|
60
60
|
"Follower": "關注者",
|
|
61
61
|
"Target Object": "目標對象",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"Free or Busy": "空閒或忙碌",
|
|
94
94
|
"Note": "筆記",
|
|
95
95
|
"Public Description": "公開描述",
|
|
96
|
-
"Activity": "活動",
|
|
97
96
|
"Title": "標題",
|
|
98
97
|
"Creation Time": "創建時間",
|
|
99
98
|
"Status": "狀態",
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
"Visible To": "可見性",
|
|
108
107
|
"Custom Fields": "自定義字段",
|
|
109
108
|
"Channel": "頻道",
|
|
110
|
-
"Lead Value": "
|
|
109
|
+
"Lead Value Amount": "Lead Value Amount",
|
|
111
110
|
"Lead Value Currency": "潛在客戶價值貨幣",
|
|
112
111
|
"Name": "名稱",
|
|
113
112
|
"Address": "地址",
|
|
@@ -134,6 +133,7 @@
|
|
|
134
133
|
"Headers": "信头",
|
|
135
134
|
"Query Parameters": "查詢參數",
|
|
136
135
|
"Body": "正文内容",
|
|
136
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
137
137
|
"No Error on Failure": "失敗時無錯誤",
|
|
138
138
|
"Timeout (in seconds)": "超時(秒)",
|
|
139
139
|
"Type of object to add the follower to.": "添加粉絲的對象類型。",
|
|
@@ -144,10 +144,13 @@
|
|
|
144
144
|
"You can use Find Product action to retrieve product ID.": "您可以使用查找產品動作來檢索產品ID。",
|
|
145
145
|
"Please enter date in YYYY-MM-DD format.": "請輸入日期,格式為YYYY-MM-DD。",
|
|
146
146
|
"Please enter time in HH:MM format.": "請輸入時間,格式為HH:MM。",
|
|
147
|
+
"Please enter time in HH:MM format (e.g., \"01:30\" for 1 hour 30 minutes).": "Please enter time in HH:MM format (e.g., \"01:30\" for 1 hour 30 minutes).",
|
|
147
148
|
"If a stage is chosen above, the pipeline field will be ignored.": "如果選擇了上面的階段,將忽略管道字段。",
|
|
148
|
-
"Please enter currency code.": "
|
|
149
|
+
"Please enter currency code (e.g., \"USD\", \"EUR\").": "Please enter currency code (e.g., \"USD\", \"EUR\").",
|
|
150
|
+
"The currency of the lead value (e.g., \"USD\", \"EUR\").": "The currency of the lead value (e.g., \"USD\", \"EUR\").",
|
|
149
151
|
"Marketing opt-in status": "營銷選擇加入狀態",
|
|
150
152
|
"Authorization headers are injected automatically from your connection.": "授權標頭自動從您的連接中注入。",
|
|
153
|
+
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
|
151
154
|
"Deal": "交易",
|
|
152
155
|
"Person": "人員",
|
|
153
156
|
"Organization": "組織",
|
|
@@ -163,8 +166,8 @@
|
|
|
163
166
|
"Won": "贏得",
|
|
164
167
|
"Lost": "丟失",
|
|
165
168
|
"Deleted": "已刪除",
|
|
166
|
-
"
|
|
167
|
-
"
|
|
169
|
+
"Owner & followers": "Owner & followers",
|
|
170
|
+
"Entire company": "Entire company",
|
|
168
171
|
"No Consent": "不授權",
|
|
169
172
|
"Unsubscribed": "取消訂閱",
|
|
170
173
|
"Subscribed": "已訂閱",
|
|
@@ -197,16 +200,16 @@
|
|
|
197
200
|
"Triggers when a new deal is created.": "創建新交易時觸發。",
|
|
198
201
|
"Triggers when a new activity is added": "加入新活動時觸發",
|
|
199
202
|
"Triggers when a new note is created.": "創建新筆記時觸發。",
|
|
200
|
-
"Triggers when a person is updated": "
|
|
201
|
-
"Triggers when a deal is updated": "
|
|
203
|
+
"Triggers when a person is updated.": "Triggers when a person is updated.",
|
|
204
|
+
"Triggers when a deal is updated.": "Triggers when a deal is updated.",
|
|
202
205
|
"Triggers when a deal's stage is updated.": "更新交易階段時觸發。",
|
|
203
206
|
"Triggers when a new lead is created.": "創建新的潛在客戶時觸發。",
|
|
204
207
|
"Triggers when a new organization is created.": "創建新組織時觸發。",
|
|
205
208
|
"Triggers when an existing organization is updated.": "更新現有組織時觸發。",
|
|
206
209
|
"Trigges when an activity newly matches a Pipedrive filter for the first time.": "第一次活動匹配 Pipedrive 篩選時觸發。",
|
|
207
210
|
"Trigges when a deal newly matches a Pipedrive filter for the first time.": "第一次交易匹配 Pipedrive 篩選時觸發。",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
211
|
+
"Triggers when a person newly matches a Pipedrive filter for the first time.": "Triggers when a person newly matches a Pipedrive filter for the first time.",
|
|
212
|
+
"Triggers when an organization newly matches a Pipedrive filter for the first time.": "Triggers when an organization newly matches a Pipedrive filter for the first time.",
|
|
210
213
|
"Filter by": "篩選依據",
|
|
211
214
|
"Field Values": "字段值",
|
|
212
215
|
"Field to watch for Changes On": "監視更改的字段",
|
package/src/index.js
CHANGED
|
@@ -97,7 +97,7 @@ exports.pipedrive = (0, pieces_framework_1.createPiece)({
|
|
|
97
97
|
find_activity_1.findActivityAction,
|
|
98
98
|
find_user_1.findUserAction,
|
|
99
99
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
100
|
-
baseUrl: () => 'https://api.pipedrive.com/
|
|
100
|
+
baseUrl: () => 'https://api.pipedrive.com/api/v2',
|
|
101
101
|
auth: exports.pipedriveAuth,
|
|
102
102
|
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
103
103
|
return ({
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/pipedrive/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAA6F;AAC7F,iDAAqD;AACrD,6DAAyD;AACzD,qDAAiD;AACjD,yDAAqD;AACrD,6DAAyD;AACzD,iEAA6D;AAC7D,qDAAwD;AACxD,qEAAwE;AACxE,6EAAgF;AAChF,yEAA2E;AAC3E,+DAAiE;AACjE,+DAAiE;AACjE,2EAA6E;AAC7E,2EAA6E;AAC7E,2DAA6D;AAC7D,2DAA6D;AAC7D,2DAA6D;AAC7D,2DAA6D;AAC7D,iEAAmE;AACnE,2EAA2E;AAC3E,2EAA2E;AAC3E,mEAAqE;AACrE,mEAAqE;AACrE,2DAA6D;AAC7D,6DAA+D;AAC/D,2DAA6D;AAC7D,qDAAuD;AACvD,uDAAyD;AACzD,6DAA+D;AAC/D,6FAA+F;AAC/F,iFAAmF;AACnF,qFAAuF;AACvF,6EAA+E;AAC/E,qDAAwD;AACxD,uGAAsG;AACtG,+DAAiE;AACjE,2DAA6D;AAC7D,yDAA2D;AAC3D,uEAAyE;AACzE,2DAA6D;AAC7D,uDAAyD;AACzD,+DAAiE;AAEpD,QAAA,aAAa,GAAG,4BAAS,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,6CAA6C;IACtD,QAAQ,EAAE,yCAAyC;IACnD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN,OAAO;QACP,eAAe;QACf,YAAY;QACZ,YAAY;QACZ,iBAAiB;QACjB,YAAY;QACZ,eAAe;KACf;CACD,CAAC,CAAC;AAEU,QAAA,SAAS,GAAG,IAAA,8BAAW,EAAC;IACpC,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,4CAA4C;IAEzD,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,mDAAmD;IAC5D,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,IAAI,EAAE,qBAAa;IACnB,OAAO,EAAE;QACR,gCAAiB;QACjB,wBAAa;QACb,8BAAgB;QAChB,4CAAsB;QACtB,4CAAsB;QACtB,8BAAgB;QAChB,sCAAoB;QACpB,sCAAoB;QACpB,8BAAgB;QAChB,8BAAgB;QAChB,8BAAgB;QAChB,8BAAgB;QAChB,8CAAwB;QACxB,8CAAwB;QACxB,kCAAkB;QAClB,kCAAkB;QAClB,oCAAmB;QACnB,uEAAmC;QACnC,gCAAiB;QACjB,kCAAkB;QAClB,4BAAe;QACf,8BAAgB;QAChB,0CAAsB;QACtB,8BAAgB;QAChB,0BAAc;QACd,kCAAkB;QAClB,0BAAc;QACd,IAAA,yCAAyB,EAAC;YACzB,OAAO,EAAE,GAAG,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/pipedrive/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAA6F;AAC7F,iDAAqD;AACrD,6DAAyD;AACzD,qDAAiD;AACjD,yDAAqD;AACrD,6DAAyD;AACzD,iEAA6D;AAC7D,qDAAwD;AACxD,qEAAwE;AACxE,6EAAgF;AAChF,yEAA2E;AAC3E,+DAAiE;AACjE,+DAAiE;AACjE,2EAA6E;AAC7E,2EAA6E;AAC7E,2DAA6D;AAC7D,2DAA6D;AAC7D,2DAA6D;AAC7D,2DAA6D;AAC7D,iEAAmE;AACnE,2EAA2E;AAC3E,2EAA2E;AAC3E,mEAAqE;AACrE,mEAAqE;AACrE,2DAA6D;AAC7D,6DAA+D;AAC/D,2DAA6D;AAC7D,qDAAuD;AACvD,uDAAyD;AACzD,6DAA+D;AAC/D,6FAA+F;AAC/F,iFAAmF;AACnF,qFAAuF;AACvF,6EAA+E;AAC/E,qDAAwD;AACxD,uGAAsG;AACtG,+DAAiE;AACjE,2DAA6D;A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,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,CAAC;IACnF,QAAQ,EAAE;QACT,sBAAS;QACT,kBAAO;QACP,0BAAW;QACX,yBAAc;QACd,8BAAa;QACb,0BAAW;QACX,4CAAuB;QACvB,yBAAc;QACd,yCAAsB;QACtB,iDAA0B;QAC1B,wDAA6B;QAC7B,gDAAyB;QACzB,oDAA2B;QAC3B,gEAAiC;KACjC;CACD,CAAC,CAAC"}
|
|
@@ -71,7 +71,7 @@ exports.addFollowerAction = (0, pieces_framework_1.createAction)({
|
|
|
71
71
|
accessToken: context.auth.access_token,
|
|
72
72
|
apiDomain: context.auth.data['api_domain'],
|
|
73
73
|
method: pieces_common_1.HttpMethod.POST,
|
|
74
|
-
resourceUri: endpoint
|
|
74
|
+
resourceUri: `/v2${endpoint}`,
|
|
75
75
|
body: {
|
|
76
76
|
user_id: followerId,
|
|
77
77
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-follower.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-follower.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAA8C;AAC9C,sCAA6C;AAC7C,+DAAyD;AAE5C,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE;QACN,UAAU,EAAE,IAAA,mBAAW,EAAC,UAAU,EAAE,IAAI,CAAC;QACzC,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR;wBACC,KAAK,EAAE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QAAQ;
|
|
1
|
+
{"version":3,"file":"add-follower.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-follower.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAA8C;AAC9C,sCAA6C;AAC7C,+DAAyD;AAE5C,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE;QACN,UAAU,EAAE,IAAA,mBAAW,EAAC,UAAU,EAAE,IAAI,CAAC;QACzC,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR;wBACC,KAAK,EAAE,MAAM;wBACb,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,KAAK,EAAE,QAAQ;wBACf,KAAK,EAAE,QAAQ;qBACf;oBACD;wBACC,KAAK,EAAE,cAAc;wBACrB,KAAK,EAAE,cAAc;qBACrB;oBACD;wBACC,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,SAAS;qBAChB;iBACD;aACD;SACD,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAC,IAAI;SACb,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE5D,IAAI,QAAQ,GAAG,EAAE,CAAC;YAElB,QAAQ,MAAM,EAAE,CAAC;gBAChB,KAAK,MAAM;oBACV,QAAQ,GAAG,UAAU,QAAQ,YAAY,CAAC;oBAC1C,MAAM;gBACP,KAAK,cAAc;oBAClB,QAAQ,GAAG,kBAAkB,QAAQ,YAAY,CAAC;oBAClD,MAAM;gBACP,KAAK,QAAQ;oBACZ,QAAQ,GAAG,YAAY,QAAQ,YAAY,CAAC;oBAC5C,MAAM;gBACP,KAAK,SAAS;oBACb,QAAQ,GAAG,aAAa,QAAQ,YAAY,CAAC;oBAC7C,MAAM;YACR,CAAC;YAEK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CAAC,wBAAwB,MAAM,EAAE,CAAC,CAAC;YACtD,CAAC;YAEP,MAAM,QAAQ,GAAG,MAAM,IAAA,yBAAgB,EAAC;gBACvC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,MAAM,QAAQ,EAAE;gBAC7B,IAAI,EAAE;oBACL,OAAO,EAAE,UAAU;iBACnB;aACD,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ exports.addLabelToPersonAction = (0, pieces_framework_1.createAction)({
|
|
|
11
11
|
auth: index_1.pipedriveAuth,
|
|
12
12
|
name: 'add-labels-to-person',
|
|
13
13
|
displayName: 'Add Labels to Person',
|
|
14
|
-
description: 'Adds
|
|
14
|
+
description: 'Adds existing labels to an existing person.',
|
|
15
15
|
props: {
|
|
16
16
|
personId: (0, props_1.personIdProp)(true),
|
|
17
17
|
labelIds: (0, props_1.labelIdsProp)('person', 'label_ids', true),
|
|
@@ -21,25 +21,25 @@ exports.addLabelToPersonAction = (0, pieces_framework_1.createAction)({
|
|
|
21
21
|
var _a;
|
|
22
22
|
const { personId } = context.propsValue;
|
|
23
23
|
const labelIds = (_a = context.propsValue.labelIds) !== null && _a !== void 0 ? _a : [];
|
|
24
|
-
const
|
|
24
|
+
const personUpdatePayload = {};
|
|
25
25
|
if (labelIds.length > 0) {
|
|
26
|
-
|
|
26
|
+
personUpdatePayload.label_ids = labelIds;
|
|
27
27
|
}
|
|
28
28
|
const updatedPersonResponse = yield (0, common_1.pipedriveApiCall)({
|
|
29
29
|
accessToken: context.auth.access_token,
|
|
30
30
|
apiDomain: context.auth.data['api_domain'],
|
|
31
|
-
method: pieces_common_1.HttpMethod.
|
|
32
|
-
resourceUri: `/persons/${personId}`,
|
|
33
|
-
body: Object.assign({},
|
|
31
|
+
method: pieces_common_1.HttpMethod.PATCH,
|
|
32
|
+
resourceUri: `/v2/persons/${personId}`,
|
|
33
|
+
body: Object.assign({}, personUpdatePayload),
|
|
34
34
|
});
|
|
35
|
-
const customFieldsResponse = yield (0, common_1.
|
|
35
|
+
const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
|
|
36
36
|
accessToken: context.auth.access_token,
|
|
37
37
|
apiDomain: context.auth.data['api_domain'],
|
|
38
38
|
method: pieces_common_1.HttpMethod.GET,
|
|
39
|
-
resourceUri: '/personFields',
|
|
39
|
+
resourceUri: '/v1/personFields',
|
|
40
40
|
});
|
|
41
|
-
const
|
|
42
|
-
return Object.assign(Object.assign({}, updatedPersonResponse), { data:
|
|
41
|
+
const transformedPersonData = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedPersonResponse.data);
|
|
42
|
+
return Object.assign(Object.assign({}, updatedPersonResponse), { data: transformedPersonData });
|
|
43
43
|
});
|
|
44
44
|
},
|
|
45
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-label-to-person.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-label-to-person.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAA8D;AAC9D,2CAA6D;AAC7D,sCAImB;AAEnB,+DAAyD;AAE5C,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"add-label-to-person.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-label-to-person.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAA8D;AAC9D,2CAA6D;AAC7D,sCAImB;AAEnB,+DAAyD;AAE5C,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,6CAA6C;IAC1D,KAAK,EAAE;QACN,QAAQ,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC;QAC5B,QAAQ,EAAE,IAAA,oBAAY,EAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC;KACnD;IACK,GAAG,CAAC,OAAO;;;YAChB,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACxC,MAAM,QAAQ,GAAG,MAAC,OAAO,CAAC,UAAU,CAAC,QAAqB,mCAAI,EAAE,CAAC;YAEjE,MAAM,mBAAmB,GAAwB,EAAE,CAAC;YAEpD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACzB,mBAAmB,CAAC,SAAS,GAAG,QAAQ,CAAC;YAC1C,CAAC;YAED,MAAM,qBAAqB,GAAG,MAAM,IAAA,yBAAgB,EAAoB;gBACvE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,KAAK;gBACxB,WAAW,EAAE,eAAe,QAAQ,EAAE;gBACtC,IAAI,oBACA,mBAAmB,CACtB;aACD,CAAC,CAAC;YAEH,MAAM,oBAAoB,GAAG,MAAM,IAAA,oCAA2B,EAAW;gBACxE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,kBAAkB;aAC/B,CAAC,CAAC;YAEH,MAAM,qBAAqB,GAAG,IAAA,uCAA8B,EAC3D,oBAAoB,EACpB,qBAAqB,CAAC,IAAI,CAC1B,CAAC;YAEF,uCACI,qBAAqB,KACxB,IAAI,EAAE,qBAAqB,IAC1B;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -86,15 +86,15 @@ exports.addProductToDealAction = (0, pieces_framework_1.createAction)({
|
|
|
86
86
|
accessToken: context.auth.access_token,
|
|
87
87
|
apiDomain: context.auth.data['api_domain'],
|
|
88
88
|
method: pieces_common_1.HttpMethod.POST,
|
|
89
|
-
resourceUri: `/deals/${dealId}/products`,
|
|
89
|
+
resourceUri: `/v2/deals/${dealId}/products`,
|
|
90
90
|
body: {
|
|
91
91
|
product_id: productId,
|
|
92
92
|
item_price: price,
|
|
93
93
|
quantity,
|
|
94
94
|
discount_type: discountType,
|
|
95
95
|
discount,
|
|
96
|
-
comments,
|
|
97
|
-
|
|
96
|
+
comments: comments !== null && comments !== void 0 ? comments : '',
|
|
97
|
+
is_enabled: enableProduct,
|
|
98
98
|
tax: taxPercentage,
|
|
99
99
|
tax_method: taxMethod,
|
|
100
100
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product-to-deal.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-product-to-deal.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAA4D;AAC5D,sCAA6C;AAC7C,+DAAyD;AAE5C,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;
|
|
1
|
+
{"version":3,"file":"add-product-to-deal.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-product-to-deal.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAA4D;AAC5D,sCAA6C;AAC7C,+DAAyD;AAE5C,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACH,MAAM,EAAE,IAAA,kBAAU,EAAC,IAAI,CAAC;QACxB,SAAS,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC;QAC9B,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACnB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACtB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACtB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAClC,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACL;wBACI,KAAK,EAAE,YAAY;wBACnB,KAAK,EAAE,YAAY;qBACtB;oBACD;wBACI,KAAK,EAAE,QAAQ;wBACf,KAAK,EAAE,QAAQ;qBAClB;iBACJ;aACJ;SACJ,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE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,QAAQ,GAAI,EAAE;oBACxB,UAAU,EAAE,aAAa;oBACzB,GAAG,EAAE,aAAa;oBAClB,UAAU,EAAE,SAAS;iBACxB;aACJ,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ,CAAC,CAAC"}
|
|
@@ -8,8 +8,8 @@ export declare const createActivityAction: import("@activepieces/pieces-framewor
|
|
|
8
8
|
dueDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
9
9
|
dueTime: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
10
|
duration: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
isDone: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
12
|
+
busy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
13
13
|
note: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
14
14
|
publicDescription: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
15
15
|
subject: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -19,33 +19,35 @@ exports.createActivityAction = (0, pieces_framework_1.createAction)({
|
|
|
19
19
|
}) }, props_1.activityCommonProps),
|
|
20
20
|
run(context) {
|
|
21
21
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const { subject, organizationId, personId, dealId, leadId, assignTo, type, dueDate, dueTime, duration,
|
|
23
|
-
const
|
|
22
|
+
const { subject, organizationId, personId, dealId, leadId, assignTo, type, dueDate, dueTime, duration, isDone, busy, note, publicDescription, } = context.propsValue;
|
|
23
|
+
const activityPayload = {
|
|
24
24
|
subject,
|
|
25
25
|
org_id: organizationId,
|
|
26
|
-
person_id: personId,
|
|
27
26
|
deal_id: dealId,
|
|
28
27
|
lead_id: leadId,
|
|
29
|
-
note,
|
|
30
28
|
public_description: publicDescription,
|
|
31
29
|
type,
|
|
32
|
-
|
|
30
|
+
owner_id: assignTo,
|
|
33
31
|
due_time: dueTime,
|
|
34
32
|
duration,
|
|
35
|
-
done:
|
|
33
|
+
done: isDone,
|
|
34
|
+
note
|
|
36
35
|
};
|
|
37
|
-
if (
|
|
38
|
-
|
|
36
|
+
if (personId) {
|
|
37
|
+
activityPayload.participants = [{ person_id: personId, primary: true }];
|
|
38
|
+
}
|
|
39
|
+
if (busy) {
|
|
40
|
+
activityPayload.busy = busy === 'busy' ? true : false;
|
|
39
41
|
}
|
|
40
42
|
if (dueDate) {
|
|
41
|
-
|
|
43
|
+
activityPayload.due_date = (0, dayjs_1.default)(dueDate).format('YYYY-MM-DD');
|
|
42
44
|
}
|
|
43
45
|
const response = yield (0, common_1.pipedriveApiCall)({
|
|
44
46
|
accessToken: context.auth.access_token,
|
|
45
47
|
apiDomain: context.auth.data['api_domain'],
|
|
46
48
|
method: pieces_common_1.HttpMethod.POST,
|
|
47
|
-
resourceUri: '/activities',
|
|
48
|
-
body:
|
|
49
|
+
resourceUri: '/v2/activities',
|
|
50
|
+
body: activityPayload,
|
|
49
51
|
});
|
|
50
52
|
return response;
|
|
51
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-activity.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/create-activity.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAAsD;AACtD,sCAA6C;AAC7C,+DAAyD;AACzD,0DAA0B;AAEb,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;
|
|
1
|
+
{"version":3,"file":"create-activity.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/create-activity.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAAsD;AACtD,sCAA6C;AAC7C,+DAAyD;AACzD,0DAA0B;AAEb,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,qBAAa;IACnB,I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I,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;aACxB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ const props_1 = require("../common/props");
|
|
|
8
8
|
const common_1 = require("../common");
|
|
9
9
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
10
10
|
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
11
|
+
const shared_1 = require("@activepieces/shared");
|
|
11
12
|
exports.createDealAction = (0, pieces_framework_1.createAction)({
|
|
12
13
|
auth: index_1.pipedriveAuth,
|
|
13
14
|
name: 'create-deal',
|
|
@@ -23,46 +24,45 @@ exports.createDealAction = (0, pieces_framework_1.createAction)({
|
|
|
23
24
|
const { title, dealValue, dealValueCurrency, expectedCloseDate, visibleTo, probability, stageId, status, pipelineId, ownerId, organizationId, personId, creationTime, } = context.propsValue;
|
|
24
25
|
const labelIds = (_a = context.propsValue.labelIds) !== null && _a !== void 0 ? _a : [];
|
|
25
26
|
const customFields = (_b = context.propsValue.customfields) !== null && _b !== void 0 ? _b : {};
|
|
26
|
-
const
|
|
27
|
+
const dealPayload = {
|
|
27
28
|
title,
|
|
28
29
|
pipeline_id: pipelineId,
|
|
29
30
|
stage_id: stageId,
|
|
30
31
|
status,
|
|
31
|
-
add_time: creationTime,
|
|
32
|
+
add_time: creationTime ? (0, dayjs_1.default)(creationTime).format('YYYY-MM-DDTHH:mm:ss[Z]') : undefined,
|
|
32
33
|
probability,
|
|
33
34
|
visible_to: visibleTo,
|
|
34
|
-
|
|
35
|
+
owner_id: ownerId,
|
|
35
36
|
org_id: organizationId,
|
|
36
37
|
person_id: personId,
|
|
37
38
|
value: dealValue,
|
|
38
39
|
currency: dealValueCurrency,
|
|
39
40
|
};
|
|
40
41
|
if (labelIds.length > 0) {
|
|
41
|
-
|
|
42
|
+
dealPayload.label_ids = labelIds;
|
|
42
43
|
}
|
|
43
44
|
if (expectedCloseDate) {
|
|
44
|
-
|
|
45
|
+
dealPayload.expected_close_date = (0, dayjs_1.default)(expectedCloseDate).format('YYYY-MM-DD');
|
|
45
46
|
}
|
|
46
|
-
const
|
|
47
|
-
Object.entries(customFields).forEach(([key, value]) => {
|
|
48
|
-
// Format values if they are arrays
|
|
49
|
-
dealCustomFields[key] = Array.isArray(value) ? value.join(',') : value;
|
|
50
|
-
});
|
|
51
|
-
const createdDealResponse = yield (0, common_1.pipedriveApiCall)({
|
|
47
|
+
const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
|
|
52
48
|
accessToken: context.auth.access_token,
|
|
53
49
|
apiDomain: context.auth.data['api_domain'],
|
|
54
|
-
method: pieces_common_1.HttpMethod.
|
|
55
|
-
resourceUri: '/
|
|
56
|
-
body: Object.assign(Object.assign({}, dealDefaultFields), dealCustomFields),
|
|
50
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
51
|
+
resourceUri: '/v1/dealFields',
|
|
57
52
|
});
|
|
58
|
-
const
|
|
53
|
+
const dealCustomFields = (0, common_1.pipedriveParseCustomFields)(customFieldsResponse, customFields);
|
|
54
|
+
if (!(0, shared_1.isEmpty)(dealCustomFields)) {
|
|
55
|
+
dealPayload.custom_fields = dealCustomFields;
|
|
56
|
+
}
|
|
57
|
+
const createdDealResponse = yield (0, common_1.pipedriveApiCall)({
|
|
59
58
|
accessToken: context.auth.access_token,
|
|
60
59
|
apiDomain: context.auth.data['api_domain'],
|
|
61
|
-
method: pieces_common_1.HttpMethod.
|
|
62
|
-
resourceUri: '/
|
|
60
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
61
|
+
resourceUri: '/v2/deals',
|
|
62
|
+
body: dealPayload,
|
|
63
63
|
});
|
|
64
|
-
const
|
|
65
|
-
return Object.assign(Object.assign({}, createdDealResponse), { data:
|
|
64
|
+
const transformedPersonProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, createdDealResponse.data);
|
|
65
|
+
return Object.assign(Object.assign({}, createdDealResponse), { data: transformedPersonProperties });
|
|
66
66
|
});
|
|
67
67
|
},
|
|
68
68
|
});
|