n8n-nodes-byteplant 0.1.4 → 0.1.5
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/credentials/ByteplantAddressValidatorApi.credentials.d.ts +4 -0
- package/dist/credentials/ByteplantAddressValidatorApi.credentials.js +9 -2
- package/dist/credentials/ByteplantAddressValidatorApi.credentials.js.map +1 -1
- package/dist/credentials/ByteplantEmailValidatorApi.credentials.d.ts +4 -0
- package/dist/credentials/ByteplantEmailValidatorApi.credentials.js +5 -1
- package/dist/credentials/ByteplantEmailValidatorApi.credentials.js.map +1 -1
- package/dist/credentials/ByteplantPhoneValidatorApi.credentials.d.ts +4 -0
- package/dist/credentials/ByteplantPhoneValidatorApi.credentials.js +5 -1
- package/dist/credentials/ByteplantPhoneValidatorApi.credentials.js.map +1 -1
- package/dist/nodes/ByteplantAddressValidator/ByteplantAddressValidator.node.d.ts +1 -1
- package/dist/nodes/ByteplantAddressValidator/ByteplantAddressValidator.node.js +3 -2
- package/dist/nodes/ByteplantAddressValidator/ByteplantAddressValidator.node.js.map +1 -1
- package/dist/nodes/ByteplantEmailValidator/ByteplantEmailValidator.node.js +3 -2
- package/dist/nodes/ByteplantEmailValidator/ByteplantEmailValidator.node.js.map +1 -1
- package/dist/nodes/ByteplantPhoneValidator/ByteplantPhoneValidator.node.js +3 -2
- package/dist/nodes/ByteplantPhoneValidator/ByteplantPhoneValidator.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ export declare class ByteplantAddressValidatorApi implements ICredentialType {
|
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
documentationUrl: string;
|
|
6
|
+
icon: {
|
|
7
|
+
readonly light: "file:../nodes/ByteplantAddressValidator/byteplant-address-validator.png";
|
|
8
|
+
readonly dark: "file:../nodes/ByteplantAddressValidator/byteplant-address-validator.png";
|
|
9
|
+
};
|
|
6
10
|
properties: INodeProperties[];
|
|
7
11
|
authenticate: IAuthenticateGeneric;
|
|
8
12
|
test: ICredentialTestRequest;
|
|
@@ -5,7 +5,11 @@ class ByteplantAddressValidatorApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'byteplantAddressValidatorApi';
|
|
7
7
|
this.displayName = 'Byteplant Address Validator API';
|
|
8
|
-
this.documentationUrl = 'https://www.address-validator
|
|
8
|
+
this.documentationUrl = 'https://www.byteplant.com/address-validator/api.html';
|
|
9
|
+
this.icon = {
|
|
10
|
+
light: 'file:../nodes/ByteplantAddressValidator/byteplant-address-validator.png',
|
|
11
|
+
dark: 'file:../nodes/ByteplantAddressValidator/byteplant-address-validator.png',
|
|
12
|
+
};
|
|
9
13
|
this.properties = [
|
|
10
14
|
{
|
|
11
15
|
displayName: 'API Key',
|
|
@@ -30,7 +34,10 @@ class ByteplantAddressValidatorApi {
|
|
|
30
34
|
request: {
|
|
31
35
|
baseURL: 'https://api.address-validator.net',
|
|
32
36
|
url: '/api/verify',
|
|
33
|
-
qs: {
|
|
37
|
+
qs: {
|
|
38
|
+
StreetAddress: "test",
|
|
39
|
+
CountryCode: "DE"
|
|
40
|
+
},
|
|
34
41
|
json: true,
|
|
35
42
|
},
|
|
36
43
|
rules: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteplantAddressValidatorApi.credentials.js","sourceRoot":"","sources":["../../credentials/ByteplantAddressValidatorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,4BAA4B;IAAzC;QACC,SAAI,GAAG,8BAA8B,CAAC;QACtC,gBAAW,GAAG,iCAAiC,CAAC;QAEhD,qBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"ByteplantAddressValidatorApi.credentials.js","sourceRoot":"","sources":["../../credentials/ByteplantAddressValidatorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,4BAA4B;IAAzC;QACC,SAAI,GAAG,8BAA8B,CAAC;QACtC,gBAAW,GAAG,iCAAiC,CAAC;QAEhD,qBAAgB,GAAG,sDAAsD,CAAC;QAE1E,SAAI,GAAG;YACN,KAAK,EAAE,yEAAyE;YAChF,IAAI,EAAE,yEAAyE;SACtE,CAAC;QAGX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACV,kLAAkL;gBACnL,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,EAAE,EAAE;oBACH,MAAM,EAAE,4BAA4B;iBACpC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,mCAAmC;gBAC5C,GAAG,EAAE,aAAa;gBAClB,EAAE,EAAE;oBACH,aAAa,EAAE,MAAM;oBACrB,WAAW,EAAE,IAAI;iBACjB;gBACD,IAAI,EAAE,IAAI;aACV;YACD,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,QAAQ;wBACb,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,kBAAkB;qBAC3B;iBACD;gBACD;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,QAAQ;wBACb,KAAK,EAAE,6BAA6B;wBACpC,OAAO,EAAE,gCAAgC;qBACzC;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAhED,oEAgEC"}
|
|
@@ -3,6 +3,10 @@ export declare class ByteplantEmailValidatorApi implements ICredentialType {
|
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
documentationUrl: string;
|
|
6
|
+
icon: {
|
|
7
|
+
readonly light: "file:../nodes/ByteplantEmailValidator/byteplant-email-validator.png";
|
|
8
|
+
readonly dark: "file:../nodes/ByteplantEmailValidator/byteplant-email-validator.png";
|
|
9
|
+
};
|
|
6
10
|
properties: INodeProperties[];
|
|
7
11
|
authenticate: IAuthenticateGeneric;
|
|
8
12
|
test: ICredentialTestRequest;
|
|
@@ -5,7 +5,11 @@ class ByteplantEmailValidatorApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'byteplantEmailValidatorApi';
|
|
7
7
|
this.displayName = 'Byteplant Email Validator API';
|
|
8
|
-
this.documentationUrl = 'https://www.email-validator
|
|
8
|
+
this.documentationUrl = 'https://www.byteplant.com/email-validator/api.html';
|
|
9
|
+
this.icon = {
|
|
10
|
+
light: 'file:../nodes/ByteplantEmailValidator/byteplant-email-validator.png',
|
|
11
|
+
dark: 'file:../nodes/ByteplantEmailValidator/byteplant-email-validator.png',
|
|
12
|
+
};
|
|
9
13
|
this.properties = [
|
|
10
14
|
{
|
|
11
15
|
displayName: 'API Key',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteplantEmailValidatorApi.credentials.js","sourceRoot":"","sources":["../../credentials/ByteplantEmailValidatorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,0BAA0B;IAAvC;QACC,SAAI,GAAG,4BAA4B,CAAC;QACpC,gBAAW,GAAG,+BAA+B,CAAC;QAE9C,qBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"ByteplantEmailValidatorApi.credentials.js","sourceRoot":"","sources":["../../credentials/ByteplantEmailValidatorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,0BAA0B;IAAvC;QACC,SAAI,GAAG,4BAA4B,CAAC;QACpC,gBAAW,GAAG,+BAA+B,CAAC;QAE9C,qBAAgB,GAAG,oDAAoD,CAAC;QAExE,SAAI,GAAG;YACN,KAAK,EAAE,qEAAqE;YAC5E,IAAI,EAAE,qEAAqE;SAClE,CAAC;QAEX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACV,4KAA4K;gBAC7K,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,EAAE,EAAE;oBACH,MAAM,EAAE,4BAA4B;iBACpC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,iCAAiC;gBAC1C,GAAG,EAAE,aAAa;gBAClB,EAAE,EAAE;oBACH,YAAY,EAAE,MAAM;iBACpB;gBACD,IAAI,EAAE,IAAI;aACV;YACD,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,QAAQ;wBACb,KAAK,EAAE,GAAG;wBACV,OAAO,EAAE,gCAAgC;qBACzC;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAtDD,gEAsDC"}
|
|
@@ -3,6 +3,10 @@ export declare class ByteplantPhoneValidatorApi implements ICredentialType {
|
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
documentationUrl: string;
|
|
6
|
+
icon: {
|
|
7
|
+
readonly light: "file:../nodes/ByteplantPhoneValidator/byteplant-phone-validator.png";
|
|
8
|
+
readonly dark: "file:../nodes/ByteplantPhoneValidator/byteplant-phone-validator.png";
|
|
9
|
+
};
|
|
6
10
|
properties: INodeProperties[];
|
|
7
11
|
authenticate: IAuthenticateGeneric;
|
|
8
12
|
test: ICredentialTestRequest;
|
|
@@ -5,7 +5,11 @@ class ByteplantPhoneValidatorApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'byteplantPhoneValidatorApi';
|
|
7
7
|
this.displayName = 'Byteplant Phone Validator API';
|
|
8
|
-
this.documentationUrl = 'https://www.phone-validator
|
|
8
|
+
this.documentationUrl = 'https://www.byteplant.com/phone-validator/api.html';
|
|
9
|
+
this.icon = {
|
|
10
|
+
light: 'file:../nodes/ByteplantPhoneValidator/byteplant-phone-validator.png',
|
|
11
|
+
dark: 'file:../nodes/ByteplantPhoneValidator/byteplant-phone-validator.png',
|
|
12
|
+
};
|
|
9
13
|
this.properties = [
|
|
10
14
|
{
|
|
11
15
|
displayName: 'API Key',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteplantPhoneValidatorApi.credentials.js","sourceRoot":"","sources":["../../credentials/ByteplantPhoneValidatorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,0BAA0B;IAAvC;QACC,SAAI,GAAG,4BAA4B,CAAC;QACpC,gBAAW,GAAG,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"ByteplantPhoneValidatorApi.credentials.js","sourceRoot":"","sources":["../../credentials/ByteplantPhoneValidatorApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,0BAA0B;IAAvC;QACC,SAAI,GAAG,4BAA4B,CAAC;QACpC,gBAAW,GAAG,+BAA+B,CAAC;QAE9C,qBAAgB,GAAG,oDAAoD,CAAC;QAExE,SAAI,GAAG;YACN,KAAK,EAAE,qEAAqE;YAC5E,IAAI,EAAE,qEAAqE;SAClE,CAAC;QAEX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACV,4KAA4K;gBAC7K,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,EAAE,EAAE;oBACH,MAAM,EAAE,4BAA4B;iBACpC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,iCAAiC;gBAC1C,GAAG,EAAE,gBAAgB;gBACrB,EAAE,EAAE;oBACH,WAAW,EAAE,MAAM;iBACnB;gBACD,IAAI,EAAE,IAAI;aACV;YACD,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,QAAQ;wBACb,KAAK,EAAE,OAAO;wBACd,OAAO,EAAE,kBAAkB;qBAC3B;iBACD;gBACD;oBACC,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACX,GAAG,EAAE,QAAQ;wBACb,KAAK,EAAE,6BAA6B;wBACpC,OAAO,EAAE,gCAAgC;qBACzC;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA9DD,gEA8DC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
2
|
export declare class ByteplantAddressValidator implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
4
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
@@ -15,6 +15,7 @@ class ByteplantAddressValidator {
|
|
|
15
15
|
},
|
|
16
16
|
version: 1,
|
|
17
17
|
description: 'Byteplant Address Validator',
|
|
18
|
+
subtitle: 'Validate Address',
|
|
18
19
|
defaults: {
|
|
19
20
|
name: 'Byteplant Address Validator',
|
|
20
21
|
},
|
|
@@ -161,7 +162,7 @@ class ByteplantAddressValidator {
|
|
|
161
162
|
},
|
|
162
163
|
json: true,
|
|
163
164
|
};
|
|
164
|
-
const { ratelimit_remain, ratelimit_seconds, status, ...rest } = await this.helpers.
|
|
165
|
+
const { ratelimit_remain, ratelimit_seconds, status, ...rest } = await this.helpers.httpRequestWithAuthentication.call(this, 'byteplantAddressValidatorApi', options);
|
|
165
166
|
if (status === 'API_KEY_INVALID_OR_DEPLETED') {
|
|
166
167
|
throw new n8n_workflow_1.ApplicationError('API Key Invalid or Depleted');
|
|
167
168
|
}
|
|
@@ -179,7 +180,7 @@ class ByteplantAddressValidator {
|
|
|
179
180
|
else {
|
|
180
181
|
if (error.context) {
|
|
181
182
|
error.context.itemIndex = itemIndex;
|
|
182
|
-
throw error;
|
|
183
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex });
|
|
183
184
|
}
|
|
184
185
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
185
186
|
itemIndex,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteplantAddressValidator.node.js","sourceRoot":"","sources":["../../../nodes/ByteplantAddressValidator/ByteplantAddressValidator.node.ts"],"names":[],"mappings":";;;AAOA,+
|
|
1
|
+
{"version":3,"file":"ByteplantAddressValidator.node.js","sourceRoot":"","sources":["../../../nodes/ByteplantAddressValidator/ByteplantAddressValidator.node.ts"],"names":[],"mappings":";;;AAOA,+CAAsG;AACtG,6DAAyD;AAEzD,MAAa,yBAAyB;IAAtC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,2BAA2B;YACjC,KAAK,EAAE,EAAE;YACT,IAAI,EAAE;gBACL,KAAK,EAAE,sCAAsC;gBAC7C,IAAI,EAAE,sCAAsC;aAC5C;YACD,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,kBAAkB;YAC5B,QAAQ,EAAE;gBACT,IAAI,EAAE,6BAA6B;aACnC;YACD,MAAM,EAAE,QAAyB;YACjC,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACZ;oBACC,WAAW,EAAE,iCAAiC;oBAC9C,IAAI,EAAE,8BAA8B;oBACpC,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAA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,CAAC;oBAC3D,CAAC;oBAED,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;oBACxB,IAAI,CAAC,IAAI,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC;gBACjC,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;wBAC3B,KAAK,CAAC,IAAI,CAAC;4BACV,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;4BAC1C,KAAK;4BACL,UAAU,EAAE,SAAS;yBACrB,CAAC,CAAC;oBACJ,CAAC;yBAAM,CAAC;wBACP,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;4BACnB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;4BACpC,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;wBAC9D,CAAC;wBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;4BACnD,SAAS;yBACT,CAAC,CAAC;oBACJ,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;CACD;AA3MD,8DA2MC"}
|
|
@@ -16,6 +16,7 @@ class ByteplantEmailValidator {
|
|
|
16
16
|
},
|
|
17
17
|
version: 1,
|
|
18
18
|
description: 'Byteplant Email Validator',
|
|
19
|
+
subtitle: 'Validate Email',
|
|
19
20
|
defaults: {
|
|
20
21
|
name: 'Byteplant Email Validator',
|
|
21
22
|
},
|
|
@@ -73,7 +74,7 @@ class ByteplantEmailValidator {
|
|
|
73
74
|
},
|
|
74
75
|
json: true,
|
|
75
76
|
};
|
|
76
|
-
const { status, info, details, freemail } = await this.helpers.
|
|
77
|
+
const { status, info, details, freemail } = await this.helpers.httpRequestWithAuthentication.call(this, 'byteplantEmailValidatorApi', options);
|
|
77
78
|
if (status === 119) {
|
|
78
79
|
throw new n8n_workflow_1.ApplicationError('API Key Invalid or Depleted');
|
|
79
80
|
}
|
|
@@ -98,7 +99,7 @@ class ByteplantEmailValidator {
|
|
|
98
99
|
else {
|
|
99
100
|
if (error.context) {
|
|
100
101
|
error.context.itemIndex = itemIndex;
|
|
101
|
-
throw error;
|
|
102
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex });
|
|
102
103
|
}
|
|
103
104
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
104
105
|
itemIndex,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteplantEmailValidator.node.js","sourceRoot":"","sources":["../../../nodes/ByteplantEmailValidator/ByteplantEmailValidator.node.ts"],"names":[],"mappings":";;;AAOA,+
|
|
1
|
+
{"version":3,"file":"ByteplantEmailValidator.node.js","sourceRoot":"","sources":["../../../nodes/ByteplantEmailValidator/ByteplantEmailValidator.node.ts"],"names":[],"mappings":";;;AAOA,+CAAsG;AACtG,iDAA6C;AAC7C,6DAAyD;AAEzD,MAAa,uBAAuB;IAApC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,EAAE;YACT,IAAI,EAAE;gBACL,KAAK,EAAE,oCAAoC;gBAC3C,IAAI,EAAE,oCAAoC;aAC1C;YACD,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE;gBACT,IAAI,EAAE,2BAA2B;aACjC;YACD,MAAM,EAAE,QAAyB;YACjC,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACZ;oBACC,WAAW,EAAE,+BAA+B;oBAC5C,IAAI,EAAE,4BAA4B;oBAClC,QAAQ,EAAE,IAAI;iBACd;aACD;Y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AC,KAAK,CAAC,CAAC;IAChB,CAAC;CACD;AAnHD,0DAmHC"}
|
|
@@ -15,6 +15,7 @@ class ByteplantPhoneValidator {
|
|
|
15
15
|
},
|
|
16
16
|
version: 1,
|
|
17
17
|
description: 'Byteplant Phone Validator',
|
|
18
|
+
subtitle: 'Validate Phone Number',
|
|
18
19
|
defaults: {
|
|
19
20
|
name: 'Byteplant Phone Validator',
|
|
20
21
|
},
|
|
@@ -107,7 +108,7 @@ class ByteplantPhoneValidator {
|
|
|
107
108
|
},
|
|
108
109
|
json: true,
|
|
109
110
|
};
|
|
110
|
-
const { ratelimit_remain, ratelimit_seconds, status, ...rest } = await this.helpers.
|
|
111
|
+
const { ratelimit_remain, ratelimit_seconds, status, ...rest } = await this.helpers.httpRequestWithAuthentication.call(this, 'byteplantPhoneValidatorApi', options);
|
|
111
112
|
if (status === 'API_KEY_INVALID_OR_DEPLETED') {
|
|
112
113
|
throw new n8n_workflow_1.ApplicationError('API Key Invalid or Depleted');
|
|
113
114
|
}
|
|
@@ -125,7 +126,7 @@ class ByteplantPhoneValidator {
|
|
|
125
126
|
else {
|
|
126
127
|
if (error.context) {
|
|
127
128
|
error.context.itemIndex = itemIndex;
|
|
128
|
-
throw error;
|
|
129
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex });
|
|
129
130
|
}
|
|
130
131
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
131
132
|
itemIndex,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteplantPhoneValidator.node.js","sourceRoot":"","sources":["../../../nodes/ByteplantPhoneValidator/ByteplantPhoneValidator.node.ts"],"names":[],"mappings":";;;AAOA,+
|
|
1
|
+
{"version":3,"file":"ByteplantPhoneValidator.node.js","sourceRoot":"","sources":["../../../nodes/ByteplantPhoneValidator/ByteplantPhoneValidator.node.ts"],"names":[],"mappings":";;;AAOA,+CAAsG;AACtG,6DAAyD;AAEzD,MAAa,uBAAuB;IAAp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