n8n-nodes-vtiger-oss 0.1.2 → 0.1.4
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
1
|
+
import type { Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare class VtigerOssApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
icon: Icon;
|
|
6
6
|
documentationUrl: string;
|
|
7
7
|
properties: INodeProperties[];
|
|
8
|
+
test: ICredentialTestRequest;
|
|
8
9
|
}
|
|
@@ -44,6 +44,26 @@ class VtigerOssApi {
|
|
|
44
44
|
description: 'Whether to allow unencrypted HTTP connections. Enable only for isolated development systems.',
|
|
45
45
|
},
|
|
46
46
|
];
|
|
47
|
+
this.test = {
|
|
48
|
+
request: {
|
|
49
|
+
url: '={{$credentials.baseUrl.trim().replace(/\\/+$/, "") + "/webservice.php"}}',
|
|
50
|
+
method: 'GET',
|
|
51
|
+
qs: {
|
|
52
|
+
operation: 'getchallenge',
|
|
53
|
+
username: '={{$credentials.username.trim()}}',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
rules: [
|
|
57
|
+
{
|
|
58
|
+
type: 'responseSuccessBody',
|
|
59
|
+
properties: {
|
|
60
|
+
message: 'Vtiger rejected the username or base URL',
|
|
61
|
+
key: 'success',
|
|
62
|
+
value: true,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
47
67
|
}
|
|
48
68
|
}
|
|
49
69
|
exports.VtigerOssApi = VtigerOssApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtigerOssApi.credentials.js","sourceRoot":"","sources":["../../credentials/VtigerOssApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,wBAAwB,CAAC;QAEvC,SAAI,GAAS;YACZ,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,4CAA4C;SAClD,CAAC;QAEF,qBAAgB,GAAG,0DAA0D,CAAC;QAE9E,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2CAA2C;gBACxD,WAAW,EACV,4GAA4G;gBAC7G,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uEAAuE;gBACpF,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,8FAA8F;aAC/F;SACD,CAAC;IACH,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"VtigerOssApi.credentials.js","sourceRoot":"","sources":["../../credentials/VtigerOssApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,wBAAwB,CAAC;QAEvC,SAAI,GAAS;YACZ,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,4CAA4C;SAClD,CAAC;QAEF,qBAAgB,GAAG,0DAA0D,CAAC;QAE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