n8n-nodes-cention 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 +21 -0
- package/README.md +165 -0
- package/dist/credentials/CentionApi.credentials.d.ts +11 -0
- package/dist/credentials/CentionApi.credentials.d.ts.map +1 -0
- package/dist/credentials/CentionApi.credentials.js +63 -0
- package/dist/credentials/CentionApi.credentials.js.map +1 -0
- package/dist/nodes/Cention/AgentPresenceDescription.d.ts +4 -0
- package/dist/nodes/Cention/AgentPresenceDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/AgentPresenceDescription.js +90 -0
- package/dist/nodes/Cention/AgentPresenceDescription.js.map +1 -0
- package/dist/nodes/Cention/Cention.node.d.ts +7 -0
- package/dist/nodes/Cention/Cention.node.d.ts.map +1 -0
- package/dist/nodes/Cention/Cention.node.js +676 -0
- package/dist/nodes/Cention/Cention.node.js.map +1 -0
- package/dist/nodes/Cention/CentionTrigger.node.d.ts +7 -0
- package/dist/nodes/Cention/CentionTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Cention/CentionTrigger.node.js +165 -0
- package/dist/nodes/Cention/CentionTrigger.node.js.map +1 -0
- package/dist/nodes/Cention/ChannelDescription.d.ts +4 -0
- package/dist/nodes/Cention/ChannelDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ChannelDescription.js +144 -0
- package/dist/nodes/Cention/ChannelDescription.js.map +1 -0
- package/dist/nodes/Cention/ChatMessageDescription.d.ts +4 -0
- package/dist/nodes/Cention/ChatMessageDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ChatMessageDescription.js +86 -0
- package/dist/nodes/Cention/ChatMessageDescription.js.map +1 -0
- package/dist/nodes/Cention/ContactCardDescription.d.ts +4 -0
- package/dist/nodes/Cention/ContactCardDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ContactCardDescription.js +446 -0
- package/dist/nodes/Cention/ContactCardDescription.js.map +1 -0
- package/dist/nodes/Cention/ErrandDescription.d.ts +4 -0
- package/dist/nodes/Cention/ErrandDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/ErrandDescription.js +409 -0
- package/dist/nodes/Cention/ErrandDescription.js.map +1 -0
- package/dist/nodes/Cention/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Cention/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Cention/GenericFunctions.js +60 -0
- package/dist/nodes/Cention/GenericFunctions.js.map +1 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.d.ts +4 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.js +216 -0
- package/dist/nodes/Cention/LibraryQuestionDescription.js.map +1 -0
- package/dist/nodes/Cention/StatisticsDescription.d.ts +4 -0
- package/dist/nodes/Cention/StatisticsDescription.d.ts.map +1 -0
- package/dist/nodes/Cention/StatisticsDescription.js +169 -0
- package/dist/nodes/Cention/StatisticsDescription.js.map +1 -0
- package/dist/nodes/Cention/cention.svg +7 -0
- package/dist/nodes/Cention/logo.png +0 -0
- package/package.json +60 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.libraryQuestionFields = exports.libraryQuestionOperations = void 0;
|
|
4
|
+
exports.libraryQuestionOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['libraryQuestion'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a knowledge base article by ID',
|
|
20
|
+
action: 'Get a knowledge base article',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many knowledge base articles',
|
|
26
|
+
action: 'Get many knowledge base articles',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Search',
|
|
30
|
+
value: 'search',
|
|
31
|
+
description: 'Search knowledge base articles',
|
|
32
|
+
action: 'Search knowledge base articles',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
default: 'get',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
exports.libraryQuestionFields = [
|
|
39
|
+
/* -------------------------------------------------------------------------- */
|
|
40
|
+
/* libraryQuestion:get */
|
|
41
|
+
/* -------------------------------------------------------------------------- */
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Question ID',
|
|
44
|
+
name: 'questionId',
|
|
45
|
+
type: 'number',
|
|
46
|
+
required: true,
|
|
47
|
+
displayOptions: {
|
|
48
|
+
show: {
|
|
49
|
+
resource: ['libraryQuestion'],
|
|
50
|
+
operation: ['get'],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
default: 0,
|
|
54
|
+
description: 'The ID of the knowledge base article to retrieve',
|
|
55
|
+
},
|
|
56
|
+
/* -------------------------------------------------------------------------- */
|
|
57
|
+
/* libraryQuestion:getAll */
|
|
58
|
+
/* -------------------------------------------------------------------------- */
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Return All',
|
|
61
|
+
name: 'returnAll',
|
|
62
|
+
type: 'boolean',
|
|
63
|
+
displayOptions: {
|
|
64
|
+
show: {
|
|
65
|
+
resource: ['libraryQuestion'],
|
|
66
|
+
operation: ['getAll'],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
default: false,
|
|
70
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Limit',
|
|
74
|
+
name: 'limit',
|
|
75
|
+
type: 'number',
|
|
76
|
+
displayOptions: {
|
|
77
|
+
show: {
|
|
78
|
+
resource: ['libraryQuestion'],
|
|
79
|
+
operation: ['getAll'],
|
|
80
|
+
returnAll: [false],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
typeOptions: {
|
|
84
|
+
minValue: 1,
|
|
85
|
+
maxValue: 100,
|
|
86
|
+
},
|
|
87
|
+
default: 50,
|
|
88
|
+
description: 'Max number of results to return',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Additional Fields',
|
|
92
|
+
name: 'additionalFields',
|
|
93
|
+
type: 'collection',
|
|
94
|
+
placeholder: 'Add Field',
|
|
95
|
+
default: {},
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['libraryQuestion'],
|
|
99
|
+
operation: ['getAll'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Library ID',
|
|
105
|
+
name: 'libraryId',
|
|
106
|
+
type: 'number',
|
|
107
|
+
default: 0,
|
|
108
|
+
description: 'Filter by library ID',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Get Top List',
|
|
112
|
+
name: 'topList',
|
|
113
|
+
type: 'boolean',
|
|
114
|
+
default: false,
|
|
115
|
+
description: 'Whether to get the most used articles',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
/* -------------------------------------------------------------------------- */
|
|
120
|
+
/* libraryQuestion:search */
|
|
121
|
+
/* -------------------------------------------------------------------------- */
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Search Term',
|
|
124
|
+
name: 'searchTerm',
|
|
125
|
+
type: 'string',
|
|
126
|
+
required: true,
|
|
127
|
+
displayOptions: {
|
|
128
|
+
show: {
|
|
129
|
+
resource: ['libraryQuestion'],
|
|
130
|
+
operation: ['search'],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
default: '',
|
|
134
|
+
description: 'The text to search for in questions and answers',
|
|
135
|
+
placeholder: 'password reset',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Return All',
|
|
139
|
+
name: 'returnAll',
|
|
140
|
+
type: 'boolean',
|
|
141
|
+
displayOptions: {
|
|
142
|
+
show: {
|
|
143
|
+
resource: ['libraryQuestion'],
|
|
144
|
+
operation: ['search'],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
default: false,
|
|
148
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Limit',
|
|
152
|
+
name: 'limit',
|
|
153
|
+
type: 'number',
|
|
154
|
+
displayOptions: {
|
|
155
|
+
show: {
|
|
156
|
+
resource: ['libraryQuestion'],
|
|
157
|
+
operation: ['search'],
|
|
158
|
+
returnAll: [false],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
typeOptions: {
|
|
162
|
+
minValue: 1,
|
|
163
|
+
maxValue: 100,
|
|
164
|
+
},
|
|
165
|
+
default: 50,
|
|
166
|
+
description: 'Max number of results to return',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
displayName: 'Additional Fields',
|
|
170
|
+
name: 'additionalFields',
|
|
171
|
+
type: 'collection',
|
|
172
|
+
placeholder: 'Add Field',
|
|
173
|
+
default: {},
|
|
174
|
+
displayOptions: {
|
|
175
|
+
show: {
|
|
176
|
+
resource: ['libraryQuestion'],
|
|
177
|
+
operation: ['search'],
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
options: [
|
|
181
|
+
{
|
|
182
|
+
displayName: 'Search In',
|
|
183
|
+
name: 'searchOption',
|
|
184
|
+
type: 'options',
|
|
185
|
+
options: [
|
|
186
|
+
{
|
|
187
|
+
name: 'Both Question and Answer',
|
|
188
|
+
value: 'both',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'Question Only',
|
|
192
|
+
value: 'question',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'Answer Only',
|
|
196
|
+
value: 'answer',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'Either Question or Answer',
|
|
200
|
+
value: 'all',
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
default: 'both',
|
|
204
|
+
description: 'Where to search for the term',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Library ID',
|
|
208
|
+
name: 'libraryId',
|
|
209
|
+
type: 'number',
|
|
210
|
+
default: 0,
|
|
211
|
+
description: 'Filter by library ID',
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
];
|
|
216
|
+
//# sourceMappingURL=LibraryQuestionDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LibraryQuestionDescription.js","sourceRoot":"","sources":["../../../nodes/Cention/LibraryQuestionDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,8BAA8B;aACtC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,kCAAkC;aAC1C;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,gCAAgC;aACxC;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD,gFAAgF;IAChF,g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EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,0BAA0B;wBAChC,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,UAAU;qBACjB;oBACD;wBACC,IAAI,EAAE,aAAa;wBACnB,KAAK,EAAE,QAAQ;qBACf;oBACD;wBACC,IAAI,EAAE,2BAA2B;wBACjC,KAAK,EAAE,KAAK;qBACZ;iBACD;gBACD,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,sBAAsB;aACnC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatisticsDescription.d.ts","sourceRoot":"","sources":["../../../nodes/Cention/StatisticsDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAqBjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,eAAe,EA8I7C,CAAC"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.statisticsFields = exports.statisticsOperations = void 0;
|
|
4
|
+
exports.statisticsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['statistics'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get statistics report',
|
|
20
|
+
action: 'Get statistics report',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
default: 'get',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.statisticsFields = [
|
|
27
|
+
/* -------------------------------------------------------------------------- */
|
|
28
|
+
/* statistics:get */
|
|
29
|
+
/* -------------------------------------------------------------------------- */
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Report Type',
|
|
32
|
+
name: 'reportType',
|
|
33
|
+
type: 'options',
|
|
34
|
+
required: true,
|
|
35
|
+
displayOptions: {
|
|
36
|
+
show: {
|
|
37
|
+
resource: ['statistics'],
|
|
38
|
+
operation: ['get'],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Errand Summary',
|
|
44
|
+
value: 'errand_summary',
|
|
45
|
+
description: 'Summary of errands by status, area, and time period',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Agent Performance',
|
|
49
|
+
value: 'agent_performance',
|
|
50
|
+
description: 'Performance metrics for agents',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Response Time',
|
|
54
|
+
value: 'response_time',
|
|
55
|
+
description: 'Average response times',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'SLA Compliance',
|
|
59
|
+
value: 'sla_compliance',
|
|
60
|
+
description: 'SLA compliance metrics',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'Channel Distribution',
|
|
64
|
+
value: 'channel_distribution',
|
|
65
|
+
description: 'Distribution of errands across channels',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
default: 'errand_summary',
|
|
69
|
+
description: 'The type of statistics report to retrieve',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'From Date',
|
|
73
|
+
name: 'fromDate',
|
|
74
|
+
type: 'dateTime',
|
|
75
|
+
required: true,
|
|
76
|
+
displayOptions: {
|
|
77
|
+
show: {
|
|
78
|
+
resource: ['statistics'],
|
|
79
|
+
operation: ['get'],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
default: '',
|
|
83
|
+
description: 'Start date for the report period',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'To Date',
|
|
87
|
+
name: 'toDate',
|
|
88
|
+
type: 'dateTime',
|
|
89
|
+
required: true,
|
|
90
|
+
displayOptions: {
|
|
91
|
+
show: {
|
|
92
|
+
resource: ['statistics'],
|
|
93
|
+
operation: ['get'],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
default: '',
|
|
97
|
+
description: 'End date for the report period',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
displayName: 'Additional Fields',
|
|
101
|
+
name: 'additionalFields',
|
|
102
|
+
type: 'collection',
|
|
103
|
+
placeholder: 'Add Field',
|
|
104
|
+
default: {},
|
|
105
|
+
displayOptions: {
|
|
106
|
+
show: {
|
|
107
|
+
resource: ['statistics'],
|
|
108
|
+
operation: ['get'],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
options: [
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Area ID',
|
|
114
|
+
name: 'areaId',
|
|
115
|
+
type: 'number',
|
|
116
|
+
default: 0,
|
|
117
|
+
description: 'Filter by area ID',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Organization ID',
|
|
121
|
+
name: 'organizationId',
|
|
122
|
+
type: 'number',
|
|
123
|
+
default: 0,
|
|
124
|
+
description: 'Filter by organization ID',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: 'Agent ID',
|
|
128
|
+
name: 'agentId',
|
|
129
|
+
type: 'number',
|
|
130
|
+
default: 0,
|
|
131
|
+
description: 'Filter by agent ID',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Group By',
|
|
135
|
+
name: 'groupBy',
|
|
136
|
+
type: 'options',
|
|
137
|
+
options: [
|
|
138
|
+
{
|
|
139
|
+
name: 'Day',
|
|
140
|
+
value: 'day',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'Week',
|
|
144
|
+
value: 'week',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'Month',
|
|
148
|
+
value: 'month',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'Area',
|
|
152
|
+
value: 'area',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'Agent',
|
|
156
|
+
value: 'agent',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'Channel',
|
|
160
|
+
value: 'channel',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
default: 'day',
|
|
164
|
+
description: 'How to group the statistics',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
];
|
|
169
|
+
//# sourceMappingURL=StatisticsDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatisticsDescription.js","sourceRoot":"","sources":["../../../nodes/Cention/StatisticsDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB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,KAAK;qBACZ;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACd;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACd;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;iBACD;gBACD,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,6BAA6B;aAC1C;SACD;KACD;CACD,CAAC"}
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-cention",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "n8n node for Cention - Customer Service Platform Integration",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"cention",
|
|
9
|
+
"customer-service",
|
|
10
|
+
"helpdesk",
|
|
11
|
+
"support",
|
|
12
|
+
"errand",
|
|
13
|
+
"ticket"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/cention/n8n-nodes-cention",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Cention",
|
|
19
|
+
"email": "support@cention.com"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/cention/n8n-nodes-cention.git"
|
|
24
|
+
},
|
|
25
|
+
"main": "index.js",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc && gulp build:icons",
|
|
28
|
+
"dev": "tsc --watch",
|
|
29
|
+
"format": "prettier nodes credentials --write",
|
|
30
|
+
"lint": "eslint \"nodes/**/*.ts\" \"credentials/**/*.ts\" package.json",
|
|
31
|
+
"lintfix": "eslint \"nodes/**/*.ts\" \"credentials/**/*.ts\" package.json --fix",
|
|
32
|
+
"prepublishOnly": "npm run build"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"n8n": {
|
|
38
|
+
"n8nNodesApiVersion": 1,
|
|
39
|
+
"credentials": [
|
|
40
|
+
"dist/credentials/CentionApi.credentials.js"
|
|
41
|
+
],
|
|
42
|
+
"nodes": [
|
|
43
|
+
"dist/nodes/Cention/Cention.node.js",
|
|
44
|
+
"dist/nodes/Cention/CentionTrigger.node.js"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
49
|
+
"eslint": "^8.56.0",
|
|
50
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
51
|
+
"gulp": "^4.0.2",
|
|
52
|
+
"n8n-workflow": "*",
|
|
53
|
+
"prettier": "^3.3.2",
|
|
54
|
+
"typescript": "^5.5.3"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"n8n-workflow": "*"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {}
|
|
60
|
+
}
|