n8n-nodes-base 1.63.0 → 1.64.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/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/GongApi.credentials.d.ts +9 -0
- package/dist/credentials/GongApi.credentials.js +53 -0
- package/dist/credentials/GongApi.credentials.js.map +1 -0
- package/dist/credentials/GongOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/GongOAuth2Api.credentials.js +59 -0
- package/dist/credentials/GongOAuth2Api.credentials.js.map +1 -0
- package/dist/known/credentials.json +18 -0
- package/dist/known/nodes.json +4 -0
- package/dist/methods/defined.json +1 -1
- package/dist/methods/referenced.json +1 -1
- package/dist/nodes/Code/JsTaskRunnerSandbox.d.ts +1 -1
- package/dist/nodes/Code/JsTaskRunnerSandbox.js +18 -31
- package/dist/nodes/Code/JsTaskRunnerSandbox.js.map +1 -1
- package/dist/nodes/Code/errors/WrappedExecutionError.d.ts +8 -0
- package/dist/nodes/Code/errors/WrappedExecutionError.js +27 -0
- package/dist/nodes/Code/errors/WrappedExecutionError.js.map +1 -0
- package/dist/nodes/Gong/GenericFunctions.d.ts +9 -0
- package/dist/nodes/Gong/GenericFunctions.js +175 -0
- package/dist/nodes/Gong/GenericFunctions.js.map +1 -0
- package/dist/nodes/Gong/Gong.node.d.ts +10 -0
- package/dist/nodes/Gong/Gong.node.js +139 -0
- package/dist/nodes/Gong/Gong.node.js.map +1 -0
- package/dist/nodes/Gong/Gong.node.json +18 -0
- package/dist/nodes/Gong/descriptions/CallDescription.d.ts +3 -0
- package/dist/nodes/Gong/descriptions/CallDescription.js +551 -0
- package/dist/nodes/Gong/descriptions/CallDescription.js.map +1 -0
- package/dist/nodes/Gong/descriptions/UserDescription.d.ts +3 -0
- package/dist/nodes/Gong/descriptions/UserDescription.js +265 -0
- package/dist/nodes/Gong/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Gong/descriptions/index.d.ts +2 -0
- package/dist/nodes/Gong/descriptions/index.js +19 -0
- package/dist/nodes/Gong/descriptions/index.js.map +1 -0
- package/dist/nodes/Gong/gong.svg +4 -0
- package/dist/nodes/Gong/test/mocks.d.ts +540 -0
- package/dist/nodes/Gong/test/mocks.js +772 -0
- package/dist/nodes/Gong/test/mocks.js.map +1 -0
- package/dist/nodes/Google/Ads/CampaignDescription.js +2 -2
- package/dist/nodes/Google/Ads/GoogleAds.node.js +1 -1
- package/dist/nodes/Google/Calendar/EventDescription.js +58 -1
- package/dist/nodes/Google/Calendar/EventDescription.js.map +1 -1
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.d.ts +1 -1
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.js +21 -5
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js +3 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +3 -3
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Line/Line.node.js +6 -0
- package/dist/nodes/Line/Line.node.js.map +1 -1
- package/dist/nodes/MySql/v2/helpers/utils.js +19 -19
- package/dist/nodes/MySql/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/N8nTrigger/N8nTrigger.node.js +23 -2
- package/dist/nodes/N8nTrigger/N8nTrigger.node.js.map +1 -1
- package/dist/nodes/Set/v2/SetV2.node.js +38 -0
- package/dist/nodes/Set/v2/SetV2.node.js.map +1 -1
- package/dist/nodes/Strava/GenericFunctions.js +1 -1
- package/dist/nodes/Strava/GenericFunctions.js.map +1 -1
- package/dist/nodes/Strava/StravaTrigger.node.js +4 -5
- package/dist/nodes/Strava/StravaTrigger.node.js.map +1 -1
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.d.ts +3 -4
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.js +11 -183
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.js.map +1 -1
- package/dist/nodes/Transform/RemoveDuplicates/utils.d.ts +2 -1
- package/dist/nodes/Transform/RemoveDuplicates/utils.js +89 -0
- package/dist/nodes/Transform/RemoveDuplicates/utils.js.map +1 -1
- package/dist/nodes/Transform/RemoveDuplicates/v1/RemoveDuplicatesV1.node.d.ts +6 -0
- package/dist/nodes/Transform/RemoveDuplicates/v1/RemoveDuplicatesV1.node.js +111 -0
- package/dist/nodes/Transform/RemoveDuplicates/v1/RemoveDuplicatesV1.node.js.map +1 -0
- package/dist/nodes/Transform/RemoveDuplicates/v2/RemoveDuplicatesV2.description.d.ts +2 -0
- package/dist/nodes/Transform/RemoveDuplicates/v2/RemoveDuplicatesV2.description.js +271 -0
- package/dist/nodes/Transform/RemoveDuplicates/v2/RemoveDuplicatesV2.description.js.map +1 -0
- package/dist/nodes/Transform/RemoveDuplicates/v2/RemoveDuplicatesV2.node.d.ts +6 -0
- package/dist/nodes/Transform/RemoveDuplicates/v2/RemoveDuplicatesV2.node.js +206 -0
- package/dist/nodes/Transform/RemoveDuplicates/v2/RemoveDuplicatesV2.node.js.map +1 -0
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js +7 -0
- package/dist/nodes/WorkflowTrigger/WorkflowTrigger.node.js.map +1 -1
- package/dist/types/credentials.json +2 -0
- package/dist/types/nodes.json +12 -10
- package/package.json +7 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class GongApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GongApi = void 0;
|
|
4
|
+
class GongApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'gongApi';
|
|
7
|
+
this.displayName = 'Gong API';
|
|
8
|
+
this.documentationUrl = 'gong';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Base URL',
|
|
12
|
+
name: 'baseUrl',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: 'https://api.gong.io',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Access Key',
|
|
18
|
+
name: 'accessKey',
|
|
19
|
+
type: 'string',
|
|
20
|
+
typeOptions: {
|
|
21
|
+
password: true,
|
|
22
|
+
},
|
|
23
|
+
default: '',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Access Key Secret',
|
|
27
|
+
name: 'accessKeySecret',
|
|
28
|
+
type: 'string',
|
|
29
|
+
default: '',
|
|
30
|
+
typeOptions: {
|
|
31
|
+
password: true,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
this.authenticate = {
|
|
36
|
+
type: 'generic',
|
|
37
|
+
properties: {
|
|
38
|
+
auth: {
|
|
39
|
+
username: '={{ $credentials.accessKey }}',
|
|
40
|
+
password: '={{ $credentials.accessKeySecret }}',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
this.test = {
|
|
45
|
+
request: {
|
|
46
|
+
baseURL: '={{ $credentials.baseUrl.replace(new RegExp("/$"), "") }}',
|
|
47
|
+
url: '/v2/users',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GongApi = GongApi;
|
|
53
|
+
//# sourceMappingURL=GongApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GongApi.credentials.js","sourceRoot":"","sources":["../../credentials/GongApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC;QAEjB,gBAAW,GAAG,UAAU,CAAC;QAEzB,qBAAgB,GAAG,MAAM,CAAC;QAE1B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,qBAAqB;aAC9B;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,IAAI,EAAE;oBACL,QAAQ,EAAE,+BAA+B;oBACzC,QAAQ,EAAE,qCAAqC;iBAC/C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2DAA2D;gBACpE,GAAG,EAAE,WAAW;aAChB;SACD,CAAC;IACH,CAAC;CAAA;AAlDD,0BAkDC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GongOAuth2Api = void 0;
|
|
4
|
+
class GongOAuth2Api {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'gongOAuth2Api';
|
|
7
|
+
this.extends = ['oAuth2Api'];
|
|
8
|
+
this.displayName = 'Gong OAuth2 API';
|
|
9
|
+
this.documentationUrl = 'gong';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Base URL',
|
|
13
|
+
name: 'baseUrl',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: 'https://api.gong.io',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Grant Type',
|
|
19
|
+
name: 'grantType',
|
|
20
|
+
type: 'hidden',
|
|
21
|
+
default: 'authorizationCode',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Authorization URL',
|
|
25
|
+
name: 'authUrl',
|
|
26
|
+
type: 'hidden',
|
|
27
|
+
default: 'https://app.gong.io/oauth2/authorize',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Access Token URL',
|
|
32
|
+
name: 'accessTokenUrl',
|
|
33
|
+
type: 'hidden',
|
|
34
|
+
default: 'https://app.gong.io/oauth2/generate-customer-token',
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Scope',
|
|
39
|
+
name: 'scope',
|
|
40
|
+
type: 'hidden',
|
|
41
|
+
default: 'api:calls:read:transcript api:provisioning:read api:workspaces:read api:meetings:user:delete api:crm:get-objects api:data-privacy:delete api:crm:schema api:flows:write api:crm:upload api:meetings:integration:status api:calls:read:extensive api:meetings:user:update api:integration-settings:write api:settings:scorecards:read api:stats:scorecards api:stats:interaction api:stats:user-actions api:crm:integration:delete api:calls:read:basic api:calls:read:media-url api:digital-interactions:write api:crm:integrations:read api:library:read api:data-privacy:read api:users:read api:logs:read api:calls:create api:meetings:user:create api:stats:user-actions:detailed api:settings:trackers:read api:crm:integration:register api:provisioning:read-write api:engagement-data:write api:permission-profile:read api:permission-profile:write api:flows:read api:crm-calls:manual-association:read',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Auth URI Query Parameters',
|
|
45
|
+
name: 'authQueryParameters',
|
|
46
|
+
type: 'hidden',
|
|
47
|
+
default: '',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Authentication',
|
|
51
|
+
name: 'authentication',
|
|
52
|
+
type: 'hidden',
|
|
53
|
+
default: 'header',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.GongOAuth2Api = GongOAuth2Api;
|
|
59
|
+
//# sourceMappingURL=GongOAuth2Api.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GongOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/GongOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;IAA1B;QACC,SAAI,GAAG,eAAe,CAAC;QAEvB,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,iBAAiB,CAAC;QAEhC,qBAAgB,GAAG,MAAM,CAAC;QAE1B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,qBAAqB;aAC9B;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,sCAAsC;gBAC/C,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oDAAoD;gBAC7D,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EACN,o3BAAo3B;aACr3B;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AAxDD,sCAwDC"}
|
|
@@ -813,6 +813,23 @@
|
|
|
813
813
|
"goToWebinar"
|
|
814
814
|
]
|
|
815
815
|
},
|
|
816
|
+
"gongApi": {
|
|
817
|
+
"className": "GongApi",
|
|
818
|
+
"sourcePath": "dist/credentials/GongApi.credentials.js",
|
|
819
|
+
"supportedNodes": [
|
|
820
|
+
"gong"
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
"gongOAuth2Api": {
|
|
824
|
+
"className": "GongOAuth2Api",
|
|
825
|
+
"sourcePath": "dist/credentials/GongOAuth2Api.credentials.js",
|
|
826
|
+
"extends": [
|
|
827
|
+
"oAuth2Api"
|
|
828
|
+
],
|
|
829
|
+
"supportedNodes": [
|
|
830
|
+
"gong"
|
|
831
|
+
]
|
|
832
|
+
},
|
|
816
833
|
"googleAdsOAuth2Api": {
|
|
817
834
|
"className": "GoogleAdsOAuth2Api",
|
|
818
835
|
"sourcePath": "dist/credentials/GoogleAdsOAuth2Api.credentials.js",
|
|
@@ -1886,6 +1903,7 @@
|
|
|
1886
1903
|
"gitlab",
|
|
1887
1904
|
"gitlabTrigger",
|
|
1888
1905
|
"goToWebinar",
|
|
1906
|
+
"gong",
|
|
1889
1907
|
"gSuiteAdmin",
|
|
1890
1908
|
"gmail",
|
|
1891
1909
|
"gmailTrigger",
|
package/dist/known/nodes.json
CHANGED
|
@@ -463,6 +463,10 @@
|
|
|
463
463
|
"className": "GoToWebinar",
|
|
464
464
|
"sourcePath": "dist/nodes/GoToWebinar/GoToWebinar.node.js"
|
|
465
465
|
},
|
|
466
|
+
"gong": {
|
|
467
|
+
"className": "Gong",
|
|
468
|
+
"sourcePath": "dist/nodes/Gong/Gong.node.js"
|
|
469
|
+
},
|
|
466
470
|
"gotify": {
|
|
467
471
|
"className": "Gotify",
|
|
468
472
|
"sourcePath": "dist/nodes/Gotify/Gotify.node.js"
|
|
@@ -5,7 +5,7 @@ export declare class JsTaskRunnerSandbox {
|
|
|
5
5
|
private readonly workflowMode;
|
|
6
6
|
private readonly executeFunctions;
|
|
7
7
|
constructor(jsCode: string, nodeMode: CodeExecutionMode, workflowMode: WorkflowExecuteMode, executeFunctions: IExecuteFunctions);
|
|
8
|
-
runCode<T = unknown>(): Promise<T>;
|
|
9
8
|
runCodeAllItems(): Promise<INodeExecutionData[]>;
|
|
10
9
|
runCodeForEachItem(): Promise<INodeExecutionData[]>;
|
|
10
|
+
private throwExecutionError;
|
|
11
11
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.JsTaskRunnerSandbox = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const
|
|
5
|
+
const WrappedExecutionError_1 = require("./errors/WrappedExecutionError");
|
|
6
6
|
const JsCodeValidator_1 = require("./JsCodeValidator");
|
|
7
7
|
class JsTaskRunnerSandbox {
|
|
8
8
|
constructor(jsCode, nodeMode, workflowMode, executeFunctions) {
|
|
@@ -11,50 +11,37 @@ class JsTaskRunnerSandbox {
|
|
|
11
11
|
this.workflowMode = workflowMode;
|
|
12
12
|
this.executeFunctions = executeFunctions;
|
|
13
13
|
}
|
|
14
|
-
async runCode() {
|
|
15
|
-
const itemIndex = 0;
|
|
16
|
-
try {
|
|
17
|
-
const executionResult = (await this.executeFunctions.startJob('javascript', {
|
|
18
|
-
code: this.jsCode,
|
|
19
|
-
nodeMode: this.nodeMode,
|
|
20
|
-
workflowMode: this.workflowMode,
|
|
21
|
-
}, itemIndex));
|
|
22
|
-
return executionResult;
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
const error = (0, n8n_workflow_1.ensureError)(e);
|
|
26
|
-
throw new ExecutionError_1.ExecutionError(error);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
14
|
async runCodeAllItems() {
|
|
30
15
|
const itemIndex = 0;
|
|
31
|
-
|
|
32
|
-
.startJob('javascript', {
|
|
16
|
+
const executionResult = await this.executeFunctions.startJob('javascript', {
|
|
33
17
|
code: this.jsCode,
|
|
34
18
|
nodeMode: this.nodeMode,
|
|
35
19
|
workflowMode: this.workflowMode,
|
|
36
20
|
continueOnFail: this.executeFunctions.continueOnFail(),
|
|
37
|
-
}, itemIndex)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
throw new ExecutionError_1.ExecutionError(error);
|
|
42
|
-
});
|
|
21
|
+
}, itemIndex);
|
|
22
|
+
return executionResult.ok
|
|
23
|
+
? executionResult.result
|
|
24
|
+
: this.throwExecutionError(executionResult.error);
|
|
43
25
|
}
|
|
44
26
|
async runCodeForEachItem() {
|
|
45
27
|
(0, JsCodeValidator_1.validateNoDisallowedMethodsInRunForEach)(this.jsCode, 0);
|
|
46
28
|
const itemIndex = 0;
|
|
47
|
-
|
|
48
|
-
.startJob('javascript', {
|
|
29
|
+
const executionResult = await this.executeFunctions.startJob('javascript', {
|
|
49
30
|
code: this.jsCode,
|
|
50
31
|
nodeMode: this.nodeMode,
|
|
51
32
|
workflowMode: this.workflowMode,
|
|
52
33
|
continueOnFail: this.executeFunctions.continueOnFail(),
|
|
53
|
-
}, itemIndex)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
34
|
+
}, itemIndex);
|
|
35
|
+
return executionResult.ok
|
|
36
|
+
? executionResult.result
|
|
37
|
+
: this.throwExecutionError(executionResult.error);
|
|
38
|
+
}
|
|
39
|
+
throwExecutionError(error) {
|
|
40
|
+
if ((0, WrappedExecutionError_1.isWrappableError)(error)) {
|
|
41
|
+
throw new WrappedExecutionError_1.WrappedExecutionError(error);
|
|
42
|
+
}
|
|
43
|
+
throw new n8n_workflow_1.ApplicationError('Unknown error', {
|
|
44
|
+
cause: error,
|
|
58
45
|
});
|
|
59
46
|
}
|
|
60
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsTaskRunnerSandbox.js","sourceRoot":"","sources":["../../../nodes/Code/JsTaskRunnerSandbox.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAEtB,
|
|
1
|
+
{"version":3,"file":"JsTaskRunnerSandbox.js","sourceRoot":"","sources":["../../../nodes/Code/JsTaskRunnerSandbox.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAEtB,0EAAyF;AACzF,uDAA4E;AAK5E,MAAa,mBAAmB;IAC/B,YACkB,MAAc,EACd,QAA2B,EAC3B,YAAiC,EACjC,gBAAmC;QAHnC,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAmB;QAC3B,iBAAY,GAAZ,YAAY,CAAqB;QACjC,qBAAgB,GAAhB,gBAAgB,CAAmB;IAClD,CAAC;IAEJ,KAAK,CAAC,eAAe;QACpB,MAAM,SAAS,GAAG,CAAC,CAAC;QAEpB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAC3D,YAAY,EACZ;YACC,IAAI,EAAE,IAAI,CAAC,MAAM;YACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE;SACtD,EACD,SAAS,CACT,CAAC;QAEF,OAAO,eAAe,CAAC,EAAE;YACxB,CAAC,CAAC,eAAe,CAAC,MAAM;YACxB,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,kBAAkB;QACvB,IAAA,yDAAuC,EAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACxD,MAAM,SAAS,GAAG,CAAC,CAAC;QAEpB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAC3D,YAAY,EACZ;YACC,IAAI,EAAE,IAAI,CAAC,MAAM;YACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE;SACtD,EACD,SAAS,CACT,CAAC;QAEF,OAAO,eAAe,CAAC,EAAE;YACxB,CAAC,CAAC,eAAe,CAAC,MAAM;YACxB,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IAEO,mBAAmB,CAAC,KAAc;QAGzC,IAAI,IAAA,wCAAgB,EAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,6CAAqB,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QAED,MAAM,IAAI,+BAAgB,CAAC,eAAe,EAAE;YAC3C,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;IACJ,CAAC;CACD;AA1DD,kDA0DC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApplicationError } from 'n8n-workflow';
|
|
2
|
+
export type WrappableError = Record<string, unknown>;
|
|
3
|
+
export declare class WrappedExecutionError extends ApplicationError {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
constructor(error: WrappableError);
|
|
6
|
+
private copyErrorProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare function isWrappableError(error: unknown): error is WrappableError;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WrappedExecutionError = void 0;
|
|
4
|
+
exports.isWrappableError = isWrappableError;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
class WrappedExecutionError extends n8n_workflow_1.ApplicationError {
|
|
7
|
+
constructor(error) {
|
|
8
|
+
const message = typeof error.message === 'string' ? error.message : 'Unknown error';
|
|
9
|
+
super(message, {
|
|
10
|
+
cause: error,
|
|
11
|
+
});
|
|
12
|
+
this.copyErrorProperties(error);
|
|
13
|
+
}
|
|
14
|
+
copyErrorProperties(error) {
|
|
15
|
+
for (const key of Object.getOwnPropertyNames(error)) {
|
|
16
|
+
if (key === 'message' || key === 'stack') {
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
this[key] = error[key];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.WrappedExecutionError = WrappedExecutionError;
|
|
24
|
+
function isWrappableError(error) {
|
|
25
|
+
return typeof error === 'object' && error !== null;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=WrappedExecutionError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WrappedExecutionError.js","sourceRoot":"","sources":["../../../../nodes/Code/errors/WrappedExecutionError.ts"],"names":[],"mappings":";;;AAgCA,4CAEC;AAlCD,+CAAgD;AAShD,MAAa,qBAAsB,SAAQ,+BAAgB;IAG1D,YAAY,KAAqB;QAChC,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;QACpF,KAAK,CAAC,OAAO,EAAE;YACd,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;QAEH,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAEO,mBAAmB,CAAC,KAAqB;QAChD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;YACrD,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;gBAC1C,SAAS;YACV,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;IACF,CAAC;CACD;AArBD,sDAqBC;AAED,SAAgB,gBAAgB,CAAC,KAAc;IAC9C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DeclarativeRestApiSettings, IDataObject, IExecuteFunctions, IExecutePaginationFunctions, IExecuteSingleFunctions, IHttpRequestMethods, ILoadOptionsFunctions, IN8nHttpFullResponse, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare function gongApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, query?: IDataObject): Promise<any>;
|
|
3
|
+
export declare function gongApiPaginateRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, query?: IDataObject, itemIndex?: number, rootProperty?: string | undefined): Promise<any>;
|
|
4
|
+
export declare const extractCalls: (items: INodeExecutionData[]) => INodeExecutionData[];
|
|
5
|
+
export declare const extractUsers: (items: INodeExecutionData[]) => INodeExecutionData[];
|
|
6
|
+
export declare const getCursorPaginatorCalls: () => (this: IExecutePaginationFunctions, requestOptions: DeclarativeRestApiSettings.ResultOptions) => Promise<INodeExecutionData[]>;
|
|
7
|
+
export declare const getCursorPaginatorUsers: () => (this: IExecutePaginationFunctions, requestOptions: DeclarativeRestApiSettings.ResultOptions) => Promise<INodeExecutionData[]>;
|
|
8
|
+
export declare function handleErrorPostReceive(this: IExecuteSingleFunctions, data: INodeExecutionData[], response: IN8nHttpFullResponse): Promise<INodeExecutionData[]>;
|
|
9
|
+
export declare function isValidNumberIds(value: number | number[] | string | string[]): boolean;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getCursorPaginatorUsers = exports.getCursorPaginatorCalls = exports.extractUsers = exports.extractCalls = void 0;
|
|
7
|
+
exports.gongApiRequest = gongApiRequest;
|
|
8
|
+
exports.gongApiPaginateRequest = gongApiPaginateRequest;
|
|
9
|
+
exports.handleErrorPostReceive = handleErrorPostReceive;
|
|
10
|
+
exports.isValidNumberIds = isValidNumberIds;
|
|
11
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
12
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
13
|
+
async function gongApiRequest(method, endpoint, body = {}, query = {}) {
|
|
14
|
+
const authentication = this.getNodeParameter('authentication', 0);
|
|
15
|
+
const credentialsType = authentication === 'oAuth2' ? 'gongOAuth2Api' : 'gongApi';
|
|
16
|
+
const { baseUrl } = await this.getCredentials(credentialsType);
|
|
17
|
+
const options = {
|
|
18
|
+
method,
|
|
19
|
+
url: baseUrl.replace(new RegExp('/$'), '') + endpoint,
|
|
20
|
+
json: true,
|
|
21
|
+
headers: {
|
|
22
|
+
'Content-Type': 'application/json',
|
|
23
|
+
},
|
|
24
|
+
body,
|
|
25
|
+
qs: query,
|
|
26
|
+
};
|
|
27
|
+
if (Object.keys(body).length === 0) {
|
|
28
|
+
delete options.body;
|
|
29
|
+
}
|
|
30
|
+
return await this.helpers.requestWithAuthentication.call(this, credentialsType, options);
|
|
31
|
+
}
|
|
32
|
+
async function gongApiPaginateRequest(method, endpoint, body = {}, query = {}, itemIndex = 0, rootProperty = undefined) {
|
|
33
|
+
const authentication = this.getNodeParameter('authentication', 0);
|
|
34
|
+
const credentialsType = authentication === 'oAuth2' ? 'gongOAuth2Api' : 'gongApi';
|
|
35
|
+
const { baseUrl } = await this.getCredentials(credentialsType);
|
|
36
|
+
const options = {
|
|
37
|
+
method,
|
|
38
|
+
url: baseUrl.replace(new RegExp('/$'), '') + endpoint,
|
|
39
|
+
json: true,
|
|
40
|
+
headers: {
|
|
41
|
+
'Content-Type': 'application/json',
|
|
42
|
+
},
|
|
43
|
+
body,
|
|
44
|
+
qs: query,
|
|
45
|
+
};
|
|
46
|
+
if (Object.keys(body).length === 0) {
|
|
47
|
+
delete options.body;
|
|
48
|
+
}
|
|
49
|
+
const pages = await this.helpers.requestWithAuthenticationPaginated.call(this, options, itemIndex, {
|
|
50
|
+
requestInterval: 340,
|
|
51
|
+
continue: '={{ $response.body.records.cursor }}',
|
|
52
|
+
request: {
|
|
53
|
+
[method === 'POST' ? 'body' : 'qs']: '={{ $if($response.body?.records.cursor, { cursor: $response.body.records.cursor }, {}) }}',
|
|
54
|
+
url: options.url,
|
|
55
|
+
},
|
|
56
|
+
}, credentialsType);
|
|
57
|
+
if (rootProperty) {
|
|
58
|
+
let results = [];
|
|
59
|
+
for (const page of pages) {
|
|
60
|
+
const items = page.body[rootProperty];
|
|
61
|
+
if (items) {
|
|
62
|
+
results = results.concat(items);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return results;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return pages.flat();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const getCursorPaginator = (extractItems) => {
|
|
72
|
+
return async function cursorPagination(requestOptions) {
|
|
73
|
+
let executions = [];
|
|
74
|
+
let responseData;
|
|
75
|
+
let nextCursor = undefined;
|
|
76
|
+
const returnAll = this.getNodeParameter('returnAll', true);
|
|
77
|
+
do {
|
|
78
|
+
requestOptions.options.body.cursor = nextCursor;
|
|
79
|
+
responseData = await this.makeRoutingRequest(requestOptions);
|
|
80
|
+
const lastItem = responseData[responseData.length - 1].json;
|
|
81
|
+
nextCursor = lastItem.records?.cursor;
|
|
82
|
+
executions = executions.concat(extractItems(responseData));
|
|
83
|
+
} while (returnAll && nextCursor);
|
|
84
|
+
return executions;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
const extractCalls = (items) => {
|
|
88
|
+
const calls = items.flatMap((item) => (0, get_1.default)(item.json, 'calls'));
|
|
89
|
+
return calls.map((call) => {
|
|
90
|
+
const { metaData, ...rest } = call ?? {};
|
|
91
|
+
return { json: { ...metaData, ...rest } };
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
exports.extractCalls = extractCalls;
|
|
95
|
+
const extractUsers = (items) => {
|
|
96
|
+
const users = items.flatMap((item) => (0, get_1.default)(item.json, 'users'));
|
|
97
|
+
return users.map((user) => ({ json: user }));
|
|
98
|
+
};
|
|
99
|
+
exports.extractUsers = extractUsers;
|
|
100
|
+
const getCursorPaginatorCalls = () => {
|
|
101
|
+
return getCursorPaginator(exports.extractCalls);
|
|
102
|
+
};
|
|
103
|
+
exports.getCursorPaginatorCalls = getCursorPaginatorCalls;
|
|
104
|
+
const getCursorPaginatorUsers = () => {
|
|
105
|
+
return getCursorPaginator(exports.extractUsers);
|
|
106
|
+
};
|
|
107
|
+
exports.getCursorPaginatorUsers = getCursorPaginatorUsers;
|
|
108
|
+
async function handleErrorPostReceive(data, response) {
|
|
109
|
+
if (String(response.statusCode).startsWith('4') || String(response.statusCode).startsWith('5')) {
|
|
110
|
+
const { resource, operation } = this.getNode().parameters;
|
|
111
|
+
if (resource === 'call') {
|
|
112
|
+
if (operation === 'get') {
|
|
113
|
+
if (response.statusCode === 404) {
|
|
114
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), response, {
|
|
115
|
+
message: "The required call doesn't match any existing one",
|
|
116
|
+
description: "Double-check the value in the parameter 'Call to Get' and try again",
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (operation === 'getAll') {
|
|
121
|
+
if (response.statusCode === 404) {
|
|
122
|
+
const primaryUserId = this.getNodeParameter('filters.primaryUserIds', {});
|
|
123
|
+
if (Object.keys(primaryUserId).length !== 0) {
|
|
124
|
+
return [{ json: {} }];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
else if (response.statusCode === 400 || response.statusCode === 500) {
|
|
128
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), response, {
|
|
129
|
+
description: 'Double-check the value(s) in the parameter(s)',
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
else if (resource === 'user') {
|
|
135
|
+
if (operation === 'get') {
|
|
136
|
+
if (response.statusCode === 404) {
|
|
137
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), response, {
|
|
138
|
+
message: "The required user doesn't match any existing one",
|
|
139
|
+
description: "Double-check the value in the parameter 'User to Get' and try again",
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else if (operation === 'getAll') {
|
|
144
|
+
if (response.statusCode === 404) {
|
|
145
|
+
const userIds = this.getNodeParameter('filters.userIds', '');
|
|
146
|
+
if (userIds) {
|
|
147
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), response, {
|
|
148
|
+
message: "The Users IDs don't match any existing user",
|
|
149
|
+
description: "Double-check the values in the parameter 'Users IDs' and try again",
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), response);
|
|
156
|
+
}
|
|
157
|
+
return data;
|
|
158
|
+
}
|
|
159
|
+
function isValidNumberIds(value) {
|
|
160
|
+
if (typeof value === 'number') {
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
if (Array.isArray(value) && value.every((item) => typeof item === 'number')) {
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
if (typeof value === 'string') {
|
|
167
|
+
const parts = value.split(',');
|
|
168
|
+
return parts.every((part) => !isNaN(Number(part.trim())));
|
|
169
|
+
}
|
|
170
|
+
if (Array.isArray(value) && value.every((item) => typeof item === 'string')) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Gong/GenericFunctions.ts"],"names":[],"mappings":";;;;;;AAgBA,wCA6BC;AAED,wDA0DC;AA+CD,wDAqDC;AAED,4CAmBC;AAlOD,qDAA6B;AAc7B,+CAA4C;AAErC,KAAK,UAAU,cAAc,CAEnC,MAA2B,EAC3B,QAAgB,EAChB,OAAoB,EAAE,EACtB,QAAqB,EAAE;IAEvB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAA6B,CAAC;IAC9F,MAAM,eAAe,GAAG,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;IAClF,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,cAAc,CAE1C,eAAe,CAAC,CAAC;IAEpB,MAAM,OAAO,GAAwB;QACpC,MAAM;QACN,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,QAAQ;QACrD,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACR,cAAc,EAAE,kBAAkB;SAClC;QACD,IAAI;QACJ,EAAE,EAAE,KAAK;KACT,CAAC;IAEF,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,OAAO,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;AAC1F,CAAC;AAEM,KAAK,UAAU,sBAAsB,CAE3C,MAA2B,EAC3B,QAAgB,EACh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AAC,OAAO,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ILoadOptionsFunctions, type INodeListSearchResult, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class Gong implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
listSearch: {
|
|
6
|
+
getCalls(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
7
|
+
getUsers(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|