@replyio/n8n-nodes-reply 0.1.0 → 0.3.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/credentials/ReplyApi.credentials.d.ts +4 -1
- package/dist/credentials/ReplyApi.credentials.js +4 -1
- package/dist/credentials/ReplyApi.credentials.js.map +1 -1
- package/dist/nodes/Reply/Reply.node.d.ts +6 -1
- package/dist/nodes/Reply/Reply.node.js +21 -0
- package/dist/nodes/Reply/Reply.node.js.map +1 -1
- package/dist/nodes/Reply/ReplyTrigger.node.js +294 -175
- package/dist/nodes/Reply/ReplyTrigger.node.js.map +1 -1
- package/dist/nodes/Reply/actions/contact/update.operation.js +31 -1
- package/dist/nodes/Reply/actions/contact/update.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/contactStatus/index.js +1 -2
- package/dist/nodes/Reply/actions/contactStatus/index.js.map +1 -1
- package/dist/nodes/Reply/actions/contactStatus/statusHelper.js +8 -4
- package/dist/nodes/Reply/actions/contactStatus/statusHelper.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/addContact.operation.js +12 -27
- package/dist/nodes/Reply/actions/sequence/addContact.operation.js.map +1 -1
- package/dist/nodes/Reply/actions/sequence/index.js +23 -41
- package/dist/nodes/Reply/actions/sequence/index.js.map +1 -1
- package/dist/nodes/Reply/utils/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Reply/utils/GenericFunctions.js +29 -10
- package/dist/nodes/Reply/utils/GenericFunctions.js.map +1 -1
- package/dist/nodes/Reply/utils/constants.d.ts +36 -49
- package/dist/nodes/Reply/utils/constants.js +37 -30
- package/dist/nodes/Reply/utils/constants.js.map +1 -1
- package/dist/nodes/Reply/utils/validation.d.ts +0 -10
- package/dist/nodes/Reply/utils/validation.js +0 -43
- package/dist/nodes/Reply/utils/validation.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/publicUrls.d.ts +1 -0
- package/dist/publicUrls.js +1 -0
- package/dist/publicUrls.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/Reply/triggers/filters.d.ts +0 -6
- package/dist/nodes/Reply/triggers/filters.js +0 -53
- package/dist/nodes/Reply/triggers/filters.js.map +0 -1
|
@@ -2,7 +2,10 @@ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
2
2
|
export declare class ReplyApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
|
-
icon:
|
|
5
|
+
icon: {
|
|
6
|
+
readonly light: "file:../icons/reply.svg";
|
|
7
|
+
readonly dark: "file:../icons/reply.dark.svg";
|
|
8
|
+
};
|
|
6
9
|
documentationUrl: string;
|
|
7
10
|
properties: INodeProperties[];
|
|
8
11
|
test: {
|
|
@@ -6,7 +6,10 @@ class ReplyApi {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.name = 'replyApi';
|
|
8
8
|
this.displayName = 'Reply API';
|
|
9
|
-
this.icon =
|
|
9
|
+
this.icon = {
|
|
10
|
+
light: 'file:../icons/reply.svg',
|
|
11
|
+
dark: 'file:../icons/reply.dark.svg',
|
|
12
|
+
};
|
|
10
13
|
this.documentationUrl = 'https://apidocs.reply.io/';
|
|
11
14
|
this.properties = [
|
|
12
15
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplyApi.credentials.js","sourceRoot":"","sources":["../../credentials/ReplyApi.credentials.ts"],"names":[],"mappings":";;;AAEA,8CAA2C;AAE3C,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,WAAW,CAAC;QAE1B,SAAI,GAAG,
|
|
1
|
+
{"version":3,"file":"ReplyApi.credentials.js","sourceRoot":"","sources":["../../credentials/ReplyApi.credentials.ts"],"names":[],"mappings":";;;AAEA,8CAA2C;AAE3C,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,WAAW,CAAC;QAE1B,SAAI,GAAG;YACN,KAAK,EAAE,yBAAyB;YAChC,IAAI,EAAE,8BAA8B;SAC3B,CAAC;QAEX,qBAAgB,GAAG,2BAA2B,CAAC;QAE/C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;SACD,CAAC;QAEF,SAAI,GAAG;YACN,OAAO,EAAE;gBACR,OAAO,EAAE,GAAG,uBAAU,CAAC,SAAS,KAAK;gBACrC,GAAG,EAAE,YAAY;gBACjB,EAAE,EAAE;oBACH,GAAG,EAAE,CAAC;iBACN;gBACD,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAnCD,4BAmCC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
1
|
+
import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodeListSearchResult, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
2
|
export declare class Reply implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
listSearch: {
|
|
6
|
+
searchSequences(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
10
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Reply = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const GenericFunctions_1 = require("./utils/GenericFunctions");
|
|
5
6
|
const router_1 = require("./actions/router");
|
|
6
7
|
const contact_1 = require("./actions/contact");
|
|
7
8
|
const contactStatus_1 = require("./actions/contactStatus");
|
|
@@ -55,6 +56,26 @@ class Reply {
|
|
|
55
56
|
...sequence_1.description,
|
|
56
57
|
],
|
|
57
58
|
};
|
|
59
|
+
this.methods = {
|
|
60
|
+
listSearch: {
|
|
61
|
+
async searchSequences(filter) {
|
|
62
|
+
const response = (await GenericFunctions_1.replyApiRequest.call(this, 'GET', '/v3/sequences', undefined, { top: 100 }));
|
|
63
|
+
const sequences = response.items || [];
|
|
64
|
+
const results = sequences
|
|
65
|
+
.filter((seq) => {
|
|
66
|
+
if (!filter)
|
|
67
|
+
return true;
|
|
68
|
+
const name = seq.name || '';
|
|
69
|
+
return name.toLowerCase().includes(filter.toLowerCase());
|
|
70
|
+
})
|
|
71
|
+
.map((seq) => ({
|
|
72
|
+
name: seq.name || `Sequence ${seq.id}`,
|
|
73
|
+
value: seq.id,
|
|
74
|
+
}));
|
|
75
|
+
return { results };
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
58
79
|
}
|
|
59
80
|
async execute() {
|
|
60
81
|
return router_1.router.call(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reply.node.js","sourceRoot":"","sources":["../../../nodes/Reply/Reply.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Reply.node.js","sourceRoot":"","sources":["../../../nodes/Reply/Reply.node.ts"],"names":[],"mappings":";;;AAUA,+CAAmD;AAEnD,+DAA2D;AAE3D,6CAA0C;AAC1C,+CAAsE;AACtE,2DAAkF;AAClF,iDAAwE;AAExE,MAAa,KAAK;IAAlB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,IAAI,EAAE,iCAAiC,EAAE;YACtF,KAAK,EAAE,CAAC,WA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