Skip to content

Commit ab578e6

Browse files
Pipedrive - fix app name (PipedreamHQ#18370)
* use pipedriveApp instead of app * bump package.json
1 parent cab79a5 commit ab578e6

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

components/pipedrive/actions/add-deal/add-deal.mjs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,139 @@
11
import { ConfigurationError } from "@pipedream/platform";
2-
import app from "../../pipedrive.app.mjs";
2+
import pipedriveApp from "../../pipedrive.app.mjs";
33
import { parseObject } from "../../common/utils.mjs";
44

55
export default {
66
key: "pipedrive-add-deal",
77
name: "Add Deal",
88
description: "Adds a new deal. See the Pipedrive API docs for Deals [here](https://developers.pipedrive.com/docs/api/v1/Deals#addDeal)",
9-
version: "0.1.14",
9+
version: "0.1.15",
1010
type: "action",
1111
props: {
12-
app,
12+
pipedriveApp,
1313
title: {
1414
propDefinition: [
15-
app,
15+
pipedriveApp,
1616
"dealTitle",
1717
],
1818
},
1919
ownerId: {
2020
propDefinition: [
21-
app,
21+
pipedriveApp,
2222
"userId",
2323
],
2424
},
2525
personId: {
2626
propDefinition: [
27-
app,
27+
pipedriveApp,
2828
"personId",
2929
],
3030
},
3131
orgId: {
3232
propDefinition: [
33-
app,
33+
pipedriveApp,
3434
"organizationId",
3535
],
3636
},
3737
pipelineId: {
3838
propDefinition: [
39-
app,
39+
pipedriveApp,
4040
"pipelineId",
4141
],
4242
optional: true,
4343
},
4444
stageId: {
4545
propDefinition: [
46-
app,
46+
pipedriveApp,
4747
"stageId",
4848
],
4949
},
5050
value: {
5151
propDefinition: [
52-
app,
52+
pipedriveApp,
5353
"dealValue",
5454
],
5555
},
5656
currency: {
5757
propDefinition: [
58-
app,
58+
pipedriveApp,
5959
"dealCurrency",
6060
],
6161
},
6262
status: {
6363
propDefinition: [
64-
app,
64+
pipedriveApp,
6565
"status",
6666
],
6767
},
6868
probability: {
6969
propDefinition: [
70-
app,
70+
pipedriveApp,
7171
"probability",
7272
],
7373
},
7474
lostReason: {
7575
propDefinition: [
76-
app,
76+
pipedriveApp,
7777
"lostReason",
7878
],
7979
},
8080
visibleTo: {
8181
propDefinition: [
82-
app,
82+
pipedriveApp,
8383
"visibleTo",
8484
],
8585
},
8686
isDeleted: {
8787
propDefinition: [
88-
app,
88+
pipedriveApp,
8989
"isDeleted",
9090
],
9191
},
9292
isArchived: {
9393
propDefinition: [
94-
app,
94+
pipedriveApp,
9595
"isArchived",
9696
],
9797
},
9898
archiveTime: {
9999
propDefinition: [
100-
app,
100+
pipedriveApp,
101101
"archiveTime",
102102
],
103103
},
104104
closeTime: {
105105
propDefinition: [
106-
app,
106+
pipedriveApp,
107107
"closeTime",
108108
],
109109
},
110110
wonTime: {
111111
propDefinition: [
112-
app,
112+
pipedriveApp,
113113
"wonTime",
114114
],
115115
},
116116
lostTime: {
117117
propDefinition: [
118-
app,
118+
pipedriveApp,
119119
"lostTime",
120120
],
121121
},
122122
expectedCloseDate: {
123123
propDefinition: [
124-
app,
124+
pipedriveApp,
125125
"expectedCloseDate",
126126
],
127127
},
128128
labelIds: {
129129
propDefinition: [
130-
app,
130+
pipedriveApp,
131131
"labelIds",
132132
],
133133
},
134134
customFields: {
135135
propDefinition: [
136-
app,
136+
pipedriveApp,
137137
"customFields",
138138
],
139139
},
@@ -146,7 +146,7 @@ export default {
146146
},
147147
async run({ $ }) {
148148
const {
149-
app,
149+
pipedriveApp,
150150
title,
151151
ownerId,
152152
personId,
@@ -172,7 +172,7 @@ export default {
172172
} = this;
173173

174174
try {
175-
const resp = await app.addDeal({
175+
const resp = await pipedriveApp.addDeal({
176176
title,
177177
owner_id: ownerId,
178178
person_id: personId,
@@ -197,7 +197,7 @@ export default {
197197
});
198198

199199
if (note) {
200-
await app.addNote({
200+
await pipedriveApp.addNote({
201201
content: note,
202202
deal_id: resp.data?.id,
203203
});

components/pipedrive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/pipedrive",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "Pipedream Pipedrive Components",
55
"main": "pipedrive.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)