n8n-nodes-aimfox 1.0.0
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/LICENSE.md +19 -0
- package/README.md +116 -0
- package/dist/credentials/AimfoxApi.credentials.d.ts +8 -0
- package/dist/credentials/AimfoxApi.credentials.js +29 -0
- package/dist/credentials/AimfoxApi.credentials.js.map +1 -0
- package/dist/credentials/AimfoxOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/AimfoxOAuth2Api.credentials.js +69 -0
- package/dist/credentials/AimfoxOAuth2Api.credentials.js.map +1 -0
- package/dist/credentials/CityWeatherApi.credentials.d.ts +8 -0
- package/dist/credentials/CityWeatherApi.credentials.js +28 -0
- package/dist/credentials/CityWeatherApi.credentials.js.map +1 -0
- package/dist/nodes/Aimfox/Aimfox.node.d.ts +4 -0
- package/dist/nodes/Aimfox/Aimfox.node.js +38 -0
- package/dist/nodes/Aimfox/Aimfox.node.js.map +1 -0
- package/dist/nodes/Aimfox/Aimfox.node.json +23 -0
- package/dist/nodes/Aimfox/aimfox.svg +3 -0
- package/dist/nodes/Aimfox/properties/account/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/account/operations.js +33 -0
- package/dist/nodes/Aimfox/properties/account/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/blacklist/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/blacklist/fields.js +21 -0
- package/dist/nodes/Aimfox/properties/blacklist/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/blacklist/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/blacklist/operations.js +63 -0
- package/dist/nodes/Aimfox/properties/blacklist/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/campaign/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/campaign/fields.js +82 -0
- package/dist/nodes/Aimfox/properties/campaign/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/campaign/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/campaign/operations.js +126 -0
- package/dist/nodes/Aimfox/properties/campaign/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/conversation/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/conversation/fields.js +72 -0
- package/dist/nodes/Aimfox/properties/conversation/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/conversation/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/conversation/operations.js +115 -0
- package/dist/nodes/Aimfox/properties/conversation/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/index.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/index.js +72 -0
- package/dist/nodes/Aimfox/properties/index.js.map +1 -0
- package/dist/nodes/Aimfox/properties/label/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/label/fields.js +58 -0
- package/dist/nodes/Aimfox/properties/label/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/label/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/label/operations.js +52 -0
- package/dist/nodes/Aimfox/properties/label/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/lead/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/lead/fields.js +21 -0
- package/dist/nodes/Aimfox/properties/lead/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/lead/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/lead/operations.js +96 -0
- package/dist/nodes/Aimfox/properties/lead/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/note/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/note/fields.js +21 -0
- package/dist/nodes/Aimfox/properties/note/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/template/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/template/fields.js +99 -0
- package/dist/nodes/Aimfox/properties/template/fields.js.map +1 -0
- package/dist/nodes/Aimfox/properties/template/operations.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/template/operations.js +85 -0
- package/dist/nodes/Aimfox/properties/template/operations.js.map +1 -0
- package/dist/nodes/Aimfox/properties/workspace/fields.d.ts +2 -0
- package/dist/nodes/Aimfox/properties/workspace/fields.js +41 -0
- package/dist/nodes/Aimfox/properties/workspace/fields.js.map +1 -0
- package/dist/nodes/AimfoxTrigger/AimfoxTrigger.node.d.ts +12 -0
- package/dist/nodes/AimfoxTrigger/AimfoxTrigger.node.js +131 -0
- package/dist/nodes/AimfoxTrigger/AimfoxTrigger.node.js.map +1 -0
- package/dist/nodes/AimfoxTrigger/AimfoxTrigger.node.json +17 -0
- package/dist/nodes/AimfoxTrigger/GenericFunctions.d.ts +2 -0
- package/dist/nodes/AimfoxTrigger/GenericFunctions.js +31 -0
- package/dist/nodes/AimfoxTrigger/GenericFunctions.js.map +1 -0
- package/dist/nodes/AimfoxTrigger/aimfox.svg +3 -0
- package/dist/nodes/AimfoxTrigger/properties/index.d.ts +2 -0
- package/dist/nodes/AimfoxTrigger/properties/index.js +58 -0
- package/dist/nodes/AimfoxTrigger/properties/index.js.map +1 -0
- package/dist/nodes/AimfoxTrigger/properties/workspace/fields.d.ts +2 -0
- package/dist/nodes/AimfoxTrigger/properties/workspace/fields.js +41 -0
- package/dist/nodes/AimfoxTrigger/properties/workspace/fields.js.map +1 -0
- package/dist/nodes/CityWeather/CityWeather.node.d.ts +4 -0
- package/dist/nodes/CityWeather/CityWeather.node.js +892 -0
- package/dist/nodes/CityWeather/CityWeather.node.js.map +1 -0
- package/dist/nodes/CityWeather/CityWeather.node.json +23 -0
- package/dist/nodes/CityWeather/aimfox.svg +3 -0
- package/dist/nodes/CityWeather/openweather.svg +3 -0
- package/dist/package.json +51 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +0 -0
- package/package.json +51 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignOperations = void 0;
|
|
4
|
+
exports.campaignOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
default: 'listCampaigns',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['campaign'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add Profile to Campaign',
|
|
18
|
+
value: 'addProfileToCampaign',
|
|
19
|
+
action: 'Add profile to campaign',
|
|
20
|
+
description: 'Add profile to the selected campaign',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
url: '=/campaigns/{{$parameter["campaignId"]}}/audience',
|
|
25
|
+
headers: {
|
|
26
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
27
|
+
},
|
|
28
|
+
body: {
|
|
29
|
+
profile_url: '={{$parameter["profileUrl"]}}',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Add Profile to Campaign with Custom Variables',
|
|
36
|
+
value: 'addProfileToCampaignWithCustomVariables',
|
|
37
|
+
action: 'Add profile to campaign with custom variables',
|
|
38
|
+
description: 'Add profile to the selected campaign with custom variables',
|
|
39
|
+
routing: {
|
|
40
|
+
request: {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
url: '=/campaigns/{{$parameter["campaignId"]}}/audience/multiple',
|
|
43
|
+
headers: {
|
|
44
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
45
|
+
},
|
|
46
|
+
body: {
|
|
47
|
+
type: 'profile_url',
|
|
48
|
+
profiles: [
|
|
49
|
+
{
|
|
50
|
+
profile_url: '={{$parameter["profileUrl"]}}',
|
|
51
|
+
custom_variables: '={{JSON.parse($parameter["customVariables"])}}',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Get Campaign',
|
|
60
|
+
value: 'getCampaign',
|
|
61
|
+
action: 'Get a campaign',
|
|
62
|
+
description: 'Get a specific campaign by ID',
|
|
63
|
+
routing: {
|
|
64
|
+
request: {
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '=/campaigns/{{$parameter["campaignId"]}}',
|
|
67
|
+
headers: {
|
|
68
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'List Campaigns',
|
|
75
|
+
value: 'listCampaigns',
|
|
76
|
+
action: 'List campaigns',
|
|
77
|
+
description: 'List all campaigns in the workspace',
|
|
78
|
+
routing: {
|
|
79
|
+
request: {
|
|
80
|
+
method: 'GET',
|
|
81
|
+
url: '/campaigns',
|
|
82
|
+
headers: {
|
|
83
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Pause',
|
|
90
|
+
value: 'pauseCampaign',
|
|
91
|
+
action: 'Pause a campaign',
|
|
92
|
+
description: 'Pause a running campaign',
|
|
93
|
+
routing: {
|
|
94
|
+
request: {
|
|
95
|
+
method: 'PATCH',
|
|
96
|
+
url: '=/campaigns/{{$parameter["campaignId"]}}',
|
|
97
|
+
headers: {
|
|
98
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
99
|
+
},
|
|
100
|
+
body: {
|
|
101
|
+
state: 'PAUSED',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Resume',
|
|
108
|
+
value: 'resumeCampaign',
|
|
109
|
+
action: 'Resume a campaign',
|
|
110
|
+
description: 'Resume a paused campaign',
|
|
111
|
+
routing: {
|
|
112
|
+
request: {
|
|
113
|
+
method: 'PATCH',
|
|
114
|
+
url: '=/campaigns/{{$parameter["campaignId"]}}',
|
|
115
|
+
headers: {
|
|
116
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
117
|
+
},
|
|
118
|
+
body: {
|
|
119
|
+
state: 'ACTIVE',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../nodes/Aimfox/properties/campaign/operations.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAoB;IAClD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE,eAAe;IACxB,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,UAAU,CAAC;SACtB;KACD;IACD,OAAO,EAAE;QACR;YACC,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,sBAAsB;YAC7B,MAAM,EAAE,yBAAyB;YACjC,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,mDAAmD;oBACxD,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,WAAW,EAAE,+BAA+B;qBAC5C;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,+CAA+C;YACrD,KAAK,EAAE,yCAAyC;YAChD,MAAM,EAAE,+CAA+C;YACvD,WAAW,EAAE,4DAA4D;YACzE,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,4DAA4D;oBACjE,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,IAAI,EAAE,aAAa;wBACnB,QAAQ,EAAE;4BACT;gCACC,WAAW,EAAE,+BAA+B;gCAC5C,gBAAgB,EAAE,gDAAgD;6BAClE;yBACD;qBACD;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,gBAAgB;YACxB,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,0CAA0C;oBAC/C,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,eAAe;YACtB,MAAM,EAAE,gBAAgB;YACxB,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,YAAY;oBACjB,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,eAAe;YACtB,MAAM,EAAE,kBAAkB;YAC1B,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,OAAO;oBACf,GAAG,EAAE,0CAA0C;oBAC/C,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,KAAK,EAAE,QAAQ;qBACf;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,gBAAgB;YACvB,MAAM,EAAE,mBAAmB;YAC3B,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,OAAO;oBACf,GAAG,EAAE,0CAA0C;oBAC/C,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,KAAK,EAAE,QAAQ;qBACf;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conversationFields = void 0;
|
|
4
|
+
exports.conversationFields = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation URN',
|
|
7
|
+
name: 'conversationUrn',
|
|
8
|
+
type: 'string',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['conversation'],
|
|
12
|
+
operation: ['getConversation', 'sendMessageToConversation', 'markConversationAsRead'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: '',
|
|
16
|
+
placeholder: '2-MTczMTgzNzQyMTM4OGI1NzMzNC0wMDMmNDU5NGMxYzgtZGIyMi00Yzc4LWFjNTYtOWIyNDdmMzI4MmQwXzAxMg==',
|
|
17
|
+
description: 'The URN of the conversation to retrieve',
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Account ID',
|
|
22
|
+
name: 'accountId',
|
|
23
|
+
type: 'string',
|
|
24
|
+
displayOptions: {
|
|
25
|
+
show: {
|
|
26
|
+
resource: ['conversation'],
|
|
27
|
+
operation: [
|
|
28
|
+
'getConversation',
|
|
29
|
+
'getLeadConversation',
|
|
30
|
+
'startConversation',
|
|
31
|
+
'sendMessageToConversation',
|
|
32
|
+
'markConversationAsRead',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
default: '',
|
|
37
|
+
placeholder: '987654321',
|
|
38
|
+
description: 'The LinkedIn ID of the account to retrieve the conversation for',
|
|
39
|
+
required: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Lead ID',
|
|
43
|
+
name: 'leadId',
|
|
44
|
+
type: 'string',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
resource: ['conversation'],
|
|
48
|
+
operation: ['getLeadConversation', 'startConversation'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
default: '',
|
|
52
|
+
placeholder: '123123123',
|
|
53
|
+
description: 'The LinkedIn ID of the lead the conversation was with',
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Conversation Message',
|
|
58
|
+
name: 'conversationMessage',
|
|
59
|
+
type: 'string',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['conversation'],
|
|
63
|
+
operation: ['startConversation', 'sendMessageToConversation'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
default: '',
|
|
67
|
+
placeholder: 'Hello! How are you?',
|
|
68
|
+
description: 'The message to send in the conversation',
|
|
69
|
+
required: true,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../nodes/Aimfox/properties/conversation/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,wBAAwB,CAAC;aACrF;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,4FAA4F;QAC7F,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE;oBACV,iBAAiB;oBACjB,qBAAqB;oBACrB,mBAAmB;oBACnB,2BAA2B;oBAC3B,wBAAwB;iBACxB;aACD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE,iEAAiE;QAC9E,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;aACvD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE,uDAAuD;QACpE,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;aAC7D;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conversationOperations = void 0;
|
|
4
|
+
exports.conversationOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['conversation'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Get Conversation',
|
|
17
|
+
value: 'getConversation',
|
|
18
|
+
action: 'Get conversation',
|
|
19
|
+
description: 'Get a specific conversation by URN',
|
|
20
|
+
routing: {
|
|
21
|
+
request: {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '=/accounts/{{$parameter["accountId"]}}/conversations/{{$parameter["conversationUrn"]}}',
|
|
24
|
+
headers: {
|
|
25
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Get Lead Conversation',
|
|
32
|
+
value: 'getLeadConversation',
|
|
33
|
+
action: 'Get lead conversation',
|
|
34
|
+
description: 'Get a specific lead conversation URN',
|
|
35
|
+
routing: {
|
|
36
|
+
request: {
|
|
37
|
+
method: 'GET',
|
|
38
|
+
url: '=/accounts/{{$parameter["accountId"]}}/leads/{{$parameter["leadId"]}}/conversation',
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'List Conversations',
|
|
47
|
+
value: 'listConversations',
|
|
48
|
+
action: 'List conversations',
|
|
49
|
+
description: 'List all conversations for the selected workspace',
|
|
50
|
+
routing: {
|
|
51
|
+
request: {
|
|
52
|
+
method: 'GET',
|
|
53
|
+
url: '/conversations',
|
|
54
|
+
headers: {
|
|
55
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Mark Conversation As Read',
|
|
62
|
+
value: 'markConversationAsRead',
|
|
63
|
+
action: 'Mark conversation as read',
|
|
64
|
+
description: 'Mark an existing conversation as read',
|
|
65
|
+
routing: {
|
|
66
|
+
request: {
|
|
67
|
+
method: 'POST',
|
|
68
|
+
url: '=/accounts/{{$parameter["accountId"]}}/conversations/{{$parameter["conversationUrn"]}}/mark-as-read',
|
|
69
|
+
headers: {
|
|
70
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Send Message To Conversation',
|
|
77
|
+
value: 'sendMessageToConversation',
|
|
78
|
+
action: 'Send message to conversation',
|
|
79
|
+
description: 'Send a message to an existing conversation',
|
|
80
|
+
routing: {
|
|
81
|
+
request: {
|
|
82
|
+
method: 'POST',
|
|
83
|
+
url: '=/accounts/{{$parameter["accountId"]}}/conversations/{{$parameter["conversationUrn"]}}',
|
|
84
|
+
headers: {
|
|
85
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
86
|
+
},
|
|
87
|
+
body: {
|
|
88
|
+
message: '={{$parameter["conversationMessage"]}}',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Start Conversation',
|
|
95
|
+
value: 'startConversation',
|
|
96
|
+
action: 'Start conversation',
|
|
97
|
+
description: 'Start a new conversation with the lead',
|
|
98
|
+
routing: {
|
|
99
|
+
request: {
|
|
100
|
+
method: 'POST',
|
|
101
|
+
url: '=/accounts/{{$parameter["accountId"]}}/conversations',
|
|
102
|
+
headers: {
|
|
103
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
104
|
+
},
|
|
105
|
+
body: {
|
|
106
|
+
message: '={{$parameter["conversationMessage"]}}',
|
|
107
|
+
recipients: ['={{$parameter["leadId"]}}'],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
default: 'listConversations',
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../nodes/Aimfox/properties/conversation/operations.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAoB;IACtD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC1B;KACD;IACD,OAAO,EAAE;QACR;YACC,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,iBAAiB;YACxB,MAAM,EAAE,kBAAkB;YAC1B,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,wFAAwF;oBAC7F,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,qBAAqB;YAC5B,MAAM,EAAE,uBAAuB;YAC/B,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,oFAAoF;oBACzF,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,mBAAmB;YAC1B,MAAM,EAAE,oBAAoB;YAC5B,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,gBAAgB;oBACrB,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,2BAA2B;YACjC,KAAK,EAAE,wBAAwB;YAC/B,MAAM,EAAE,2BAA2B;YACnC,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,qGAAqG;oBAC1G,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,8BAA8B;YACpC,KAAK,EAAE,2BAA2B;YAClC,MAAM,EAAE,8BAA8B;YACtC,WAAW,EAAE,4CAA4C;YACzD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,wFAAwF;oBAC7F,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE,wCAAwC;qBACjD;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,mBAAmB;YAC1B,MAAM,EAAE,oBAAoB;YAC5B,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,sDAAsD;oBAC3D,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE,wCAAwC;wBACjD,UAAU,EAAE,CAAC,2BAA2B,CAAC;qBACzC;iBACD;aACD;SACD;KACD;IACD,OAAO,EAAE,mBAAmB;CAC5B,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.aimfoxNodeProperties = void 0;
|
|
4
|
+
const operations_1 = require("./account/operations");
|
|
5
|
+
const fields_1 = require("./blacklist/fields");
|
|
6
|
+
const operations_2 = require("./blacklist/operations");
|
|
7
|
+
const fields_2 = require("./campaign/fields");
|
|
8
|
+
const operations_3 = require("./campaign/operations");
|
|
9
|
+
const fields_3 = require("./conversation/fields");
|
|
10
|
+
const operations_4 = require("./conversation/operations");
|
|
11
|
+
const fields_4 = require("./label/fields");
|
|
12
|
+
const operations_5 = require("./label/operations");
|
|
13
|
+
const fields_5 = require("./lead/fields");
|
|
14
|
+
const operations_6 = require("./lead/operations");
|
|
15
|
+
const fields_6 = require("./note/fields");
|
|
16
|
+
const fields_7 = require("./template/fields");
|
|
17
|
+
const operations_7 = require("./template/operations");
|
|
18
|
+
const resourceOptions = {
|
|
19
|
+
displayName: 'Resource',
|
|
20
|
+
name: 'resource',
|
|
21
|
+
type: 'options',
|
|
22
|
+
noDataExpression: true,
|
|
23
|
+
options: [
|
|
24
|
+
{
|
|
25
|
+
name: 'Account',
|
|
26
|
+
value: 'account',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Blacklist',
|
|
30
|
+
value: 'blacklist',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Campaign',
|
|
34
|
+
value: 'campaign',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Conversation',
|
|
38
|
+
value: 'conversation',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Label',
|
|
42
|
+
value: 'label',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Lead',
|
|
46
|
+
value: 'lead',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Template',
|
|
50
|
+
value: 'template',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
default: 'account',
|
|
54
|
+
};
|
|
55
|
+
exports.aimfoxNodeProperties = [
|
|
56
|
+
resourceOptions,
|
|
57
|
+
operations_1.accountOperations,
|
|
58
|
+
operations_2.blacklistOperations,
|
|
59
|
+
operations_4.conversationOperations,
|
|
60
|
+
operations_3.campaignOperations,
|
|
61
|
+
operations_5.labelOperations,
|
|
62
|
+
operations_6.leadOperations,
|
|
63
|
+
operations_7.templateOperations,
|
|
64
|
+
...fields_1.blacklistFields,
|
|
65
|
+
...fields_2.campaignFields,
|
|
66
|
+
...fields_3.conversationFields,
|
|
67
|
+
...fields_4.labelFields,
|
|
68
|
+
...fields_5.leadFields,
|
|
69
|
+
...fields_6.noteFields,
|
|
70
|
+
...fields_7.templateFields,
|
|
71
|
+
];
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Aimfox/properties/index.ts"],"names":[],"mappings":";;;AACA,qDAAyD;AACzD,+CAAqD;AACrD,uDAA6D;AAC7D,8CAAmD;AACnD,sDAA2D;AAC3D,kDAA2D;AAC3D,0DAAmE;AACnE,2CAA6C;AAC7C,mDAAqD;AACrD,0CAA2C;AAC3C,kDAAmD;AACnD,0CAA2C;AAC3C,8CAAmD;AACnD,sDAA2D;AAE3D,MAAM,eAAe,GAAoB;IACxC,WAAW,EAAE,UAAU;IACvB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SAChB;QACD;YACC,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,WAAW;SAClB;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;SACjB;QACD;YACC,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,cAAc;SACrB;QACD;YACC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;SACd;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;SACb;QACD;YACC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;SACjB;KACD;IACD,OAAO,EAAE,SAAS;CAClB,CAAC;AAEW,QAAA,oBAAoB,GAAG;IACnC,eAAe;IACf,8BAAiB;IACjB,gCAAmB;IACnB,mCAAsB;IACtB,+BAAkB;IAClB,4BAAe;IACf,2BAAc;IACd,+BAAkB;IAClB,GAAG,wBAAe;IAClB,GAAG,uBAAc;IACjB,GAAG,2BAAkB;IACrB,GAAG,oBAAW;IACd,GAAG,mBAAU;IACb,GAAG,mBAAU;IACb,GAAG,uBAAc;CACjB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.labelFields = void 0;
|
|
4
|
+
exports.labelFields = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Label ID',
|
|
7
|
+
name: 'labelId',
|
|
8
|
+
type: 'string',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['lead'],
|
|
12
|
+
operation: ['addLabelToLead', 'removeLabelFromLead'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: '',
|
|
16
|
+
placeholder: '83b3aa1d-cda0-42b3-845c-afccf1192dc5',
|
|
17
|
+
description: 'The ID of the label',
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Label Name',
|
|
22
|
+
name: 'labelName',
|
|
23
|
+
type: 'string',
|
|
24
|
+
displayOptions: {
|
|
25
|
+
show: {
|
|
26
|
+
resource: ['label'],
|
|
27
|
+
operation: ['addLabel'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
default: '',
|
|
31
|
+
placeholder: 'Label Name',
|
|
32
|
+
description: 'The name of the label to add',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Label Color',
|
|
37
|
+
name: 'labelColor',
|
|
38
|
+
type: 'options',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['label'],
|
|
42
|
+
operation: ['addLabel'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
options: [
|
|
46
|
+
{ name: 'Blue', value: 'info' },
|
|
47
|
+
{ name: 'Gray', value: 'quaternary' },
|
|
48
|
+
{ name: 'Green', value: 'success' },
|
|
49
|
+
{ name: 'Purple', value: 'secondary' },
|
|
50
|
+
{ name: 'Red', value: 'danger' },
|
|
51
|
+
{ name: 'Yellow', value: 'yellow' },
|
|
52
|
+
],
|
|
53
|
+
default: 'info',
|
|
54
|
+
description: 'The color of the label to add',
|
|
55
|
+
required: true,
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../nodes/Aimfox/properties/label/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;aACpD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sCAAsC;QACnD,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,UAAU,CAAC;aACvB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,8BAA8B;QAC3C,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,UAAU,CAAC;aACvB;SACD;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE;YACrC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE;YACtC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;YAChC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;SACnC;QACD,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.labelOperations = void 0;
|
|
4
|
+
exports.labelOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['label'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'List Labels',
|
|
17
|
+
value: 'listLabels',
|
|
18
|
+
action: 'List labels',
|
|
19
|
+
description: 'List all labels for the selected workspace',
|
|
20
|
+
routing: {
|
|
21
|
+
request: {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/labels',
|
|
24
|
+
headers: {
|
|
25
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Add Label',
|
|
32
|
+
value: 'addLabel',
|
|
33
|
+
action: 'Add label',
|
|
34
|
+
description: 'Add a new label to the selected workspace',
|
|
35
|
+
routing: {
|
|
36
|
+
request: {
|
|
37
|
+
method: 'POST',
|
|
38
|
+
url: '/labels',
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: '={{"Bearer " + $credentials.aimfoxApi.apiKey}}',
|
|
41
|
+
},
|
|
42
|
+
body: {
|
|
43
|
+
name: '={{$parameter["labelName"]}}',
|
|
44
|
+
color: '={{$parameter["labelColor"]}}',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
default: 'listLabels',
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../nodes/Aimfox/properties/label/operations.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAoB;IAC/C,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,OAAO,CAAC;SACnB;KACD;IACD,OAAO,EAAE;QACR;YACC,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,YAAY;YACnB,MAAM,EAAE,aAAa;YACrB,WAAW,EAAE,4CAA4C;YACzD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,KAAK;oBACb,GAAG,EAAE,SAAS;oBACd,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;iBACD;aACD;SACD;QACD;YACC,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,2CAA2C;YACxD,OAAO,EAAE;gBACR,OAAO,EAAE;oBACR,MAAM,EAAE,MAAM;oBACd,GAAG,EAAE,SAAS;oBACd,OAAO,EAAE;wBACR,aAAa,EAAE,gDAAgD;qBAC/D;oBACD,IAAI,EAAE;wBACL,IAAI,EAAE,8BAA8B;wBACpC,KAAK,EAAE,+BAA+B;qBACtC;iBACD;aACD;SACD;KACD;IACD,OAAO,EAAE,YAAY;CACrB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leadFields = void 0;
|
|
4
|
+
exports.leadFields = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Lead ID',
|
|
7
|
+
name: 'leadId',
|
|
8
|
+
type: 'string',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['lead'],
|
|
12
|
+
operation: ['getLead', 'addLabelToLead', 'removeLabelFromLead', 'addNoteToLead'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: '',
|
|
16
|
+
placeholder: '1113575872',
|
|
17
|
+
description: 'The LinkedIn ID of the lead to retrieve',
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../nodes/Aimfox/properties/lead/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,eAAe,CAAC;aAChF;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC"}
|