n8n-nodes-base 1.121.0 → 2.0.0-rc.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/known/credentials.json +0 -29
- package/dist/known/nodes.json +0 -20
- package/dist/methods/defined.json +0 -12
- package/dist/methods/referenced.json +0 -11
- package/dist/nodes/N8nTrigger/N8nTrigger.node.d.ts.map +1 -1
- package/dist/nodes/N8nTrigger/N8nTrigger.node.js +7 -7
- package/dist/nodes/N8nTrigger/N8nTrigger.node.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +0 -4
- package/dist/types/nodes.json +3 -8
- package/package.json +5 -14
- package/dist/credentials/AutomizyApi.credentials.d.ts +0 -8
- package/dist/credentials/AutomizyApi.credentials.d.ts.map +0 -1
- package/dist/credentials/AutomizyApi.credentials.js +0 -25
- package/dist/credentials/AutomizyApi.credentials.js.map +0 -1
- package/dist/credentials/CrowdDevApi.credentials.d.ts +0 -10
- package/dist/credentials/CrowdDevApi.credentials.d.ts.map +0 -1
- package/dist/credentials/CrowdDevApi.credentials.js +0 -65
- package/dist/credentials/CrowdDevApi.credentials.js.map +0 -1
- package/dist/credentials/KitemakerApi.credentials.d.ts +0 -8
- package/dist/credentials/KitemakerApi.credentials.d.ts.map +0 -1
- package/dist/credentials/KitemakerApi.credentials.js +0 -19
- package/dist/credentials/KitemakerApi.credentials.js.map +0 -1
- package/dist/credentials/SpontitApi.credentials.d.ts +0 -8
- package/dist/credentials/SpontitApi.credentials.d.ts.map +0 -1
- package/dist/credentials/SpontitApi.credentials.js +0 -25
- package/dist/credentials/SpontitApi.credentials.js.map +0 -1
- package/dist/nodes/Automizy/Automizy.node.d.ts +0 -13
- package/dist/nodes/Automizy/Automizy.node.d.ts.map +0 -1
- package/dist/nodes/Automizy/Automizy.node.js +0 -235
- package/dist/nodes/Automizy/Automizy.node.js.map +0 -1
- package/dist/nodes/Automizy/Automizy.node.json +0 -18
- package/dist/nodes/Automizy/ContactDescription.d.ts +0 -4
- package/dist/nodes/Automizy/ContactDescription.d.ts.map +0 -1
- package/dist/nodes/Automizy/ContactDescription.js +0 -435
- package/dist/nodes/Automizy/ContactDescription.js.map +0 -1
- package/dist/nodes/Automizy/GenericFunctions.d.ts +0 -4
- package/dist/nodes/Automizy/GenericFunctions.d.ts.map +0 -1
- package/dist/nodes/Automizy/GenericFunctions.js +0 -46
- package/dist/nodes/Automizy/GenericFunctions.js.map +0 -1
- package/dist/nodes/Automizy/ListDescription.d.ts +0 -4
- package/dist/nodes/Automizy/ListDescription.d.ts.map +0 -1
- package/dist/nodes/Automizy/ListDescription.js +0 -208
- package/dist/nodes/Automizy/ListDescription.js.map +0 -1
- package/dist/nodes/Automizy/automizy.png +0 -0
- package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +0 -5
- package/dist/nodes/CrowdDev/CrowdDev.node.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/CrowdDev.node.js +0 -36
- package/dist/nodes/CrowdDev/CrowdDev.node.js.map +0 -1
- package/dist/nodes/CrowdDev/CrowdDev.node.json +0 -18
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +0 -13
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +0 -148
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +0 -1
- package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +0 -18
- package/dist/nodes/CrowdDev/GenericFunctions.d.ts +0 -8
- package/dist/nodes/CrowdDev/GenericFunctions.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/GenericFunctions.js +0 -157
- package/dist/nodes/CrowdDev/GenericFunctions.js.map +0 -1
- package/dist/nodes/CrowdDev/crowdDev.dark.svg +0 -4
- package/dist/nodes/CrowdDev/crowdDev.svg +0 -4
- package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/activityFields.js +0 -180
- package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/automationFields.js +0 -126
- package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/index.d.ts +0 -3
- package/dist/nodes/CrowdDev/descriptions/index.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/index.js +0 -26
- package/dist/nodes/CrowdDev/descriptions/index.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/memberFields.js +0 -301
- package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/noteFields.js +0 -90
- package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js +0 -146
- package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/resources.d.ts +0 -3
- package/dist/nodes/CrowdDev/descriptions/resources.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/resources.js +0 -38
- package/dist/nodes/CrowdDev/descriptions/resources.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/shared.d.ts +0 -3
- package/dist/nodes/CrowdDev/descriptions/shared.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/shared.js +0 -29
- package/dist/nodes/CrowdDev/descriptions/shared.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +0 -5
- package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/taskFields.js +0 -159
- package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/utils.d.ts +0 -6
- package/dist/nodes/CrowdDev/descriptions/utils.d.ts.map +0 -1
- package/dist/nodes/CrowdDev/descriptions/utils.js +0 -55
- package/dist/nodes/CrowdDev/descriptions/utils.js.map +0 -1
- package/dist/nodes/Kitemaker/GenericFunctions.d.ts +0 -19
- package/dist/nodes/Kitemaker/GenericFunctions.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/GenericFunctions.js +0 -58
- package/dist/nodes/Kitemaker/GenericFunctions.js.map +0 -1
- package/dist/nodes/Kitemaker/Kitemaker.node.d.ts +0 -30
- package/dist/nodes/Kitemaker/Kitemaker.node.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/Kitemaker.node.js +0 -230
- package/dist/nodes/Kitemaker/Kitemaker.node.js.map +0 -1
- package/dist/nodes/Kitemaker/Kitemaker.node.json +0 -18
- package/dist/nodes/Kitemaker/descriptions/OrganizationDescription.d.ts +0 -3
- package/dist/nodes/Kitemaker/descriptions/OrganizationDescription.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/OrganizationDescription.js +0 -26
- package/dist/nodes/Kitemaker/descriptions/OrganizationDescription.js.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/SpaceDescription.d.ts +0 -4
- package/dist/nodes/Kitemaker/descriptions/SpaceDescription.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/SpaceDescription.js +0 -59
- package/dist/nodes/Kitemaker/descriptions/SpaceDescription.js.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/UserDescription.d.ts +0 -4
- package/dist/nodes/Kitemaker/descriptions/UserDescription.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/UserDescription.js +0 -59
- package/dist/nodes/Kitemaker/descriptions/UserDescription.js.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/WorkItemDescription.d.ts +0 -4
- package/dist/nodes/Kitemaker/descriptions/WorkItemDescription.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/WorkItemDescription.js +0 -344
- package/dist/nodes/Kitemaker/descriptions/WorkItemDescription.js.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/index.d.ts +0 -5
- package/dist/nodes/Kitemaker/descriptions/index.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/descriptions/index.js +0 -21
- package/dist/nodes/Kitemaker/descriptions/index.js.map +0 -1
- package/dist/nodes/Kitemaker/kitemaker.dark.svg +0 -5
- package/dist/nodes/Kitemaker/kitemaker.svg +0 -5
- package/dist/nodes/Kitemaker/mutations.d.ts +0 -3
- package/dist/nodes/Kitemaker/mutations.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/mutations.js +0 -71
- package/dist/nodes/Kitemaker/mutations.js.map +0 -1
- package/dist/nodes/Kitemaker/queries.d.ts +0 -11
- package/dist/nodes/Kitemaker/queries.d.ts.map +0 -1
- package/dist/nodes/Kitemaker/queries.js +0 -194
- package/dist/nodes/Kitemaker/queries.js.map +0 -1
- package/dist/nodes/Spontit/GenericFunctions.d.ts +0 -3
- package/dist/nodes/Spontit/GenericFunctions.d.ts.map +0 -1
- package/dist/nodes/Spontit/GenericFunctions.js +0 -28
- package/dist/nodes/Spontit/GenericFunctions.js.map +0 -1
- package/dist/nodes/Spontit/PushDescription.d.ts +0 -4
- package/dist/nodes/Spontit/PushDescription.d.ts.map +0 -1
- package/dist/nodes/Spontit/PushDescription.js +0 -143
- package/dist/nodes/Spontit/PushDescription.js.map +0 -1
- package/dist/nodes/Spontit/Spontit.node.d.ts +0 -6
- package/dist/nodes/Spontit/Spontit.node.d.ts.map +0 -1
- package/dist/nodes/Spontit/Spontit.node.js +0 -106
- package/dist/nodes/Spontit/Spontit.node.js.map +0 -1
- package/dist/nodes/Spontit/Spontit.node.json +0 -18
- package/dist/nodes/Spontit/spontit.png +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ----------------------------------
|
|
3
|
-
// mutations
|
|
4
|
-
// ----------------------------------
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.editWorkItem = exports.createWorkItem = void 0;
|
|
7
|
-
exports.createWorkItem = `
|
|
8
|
-
mutation($input: CreateWorkItemInput!) {
|
|
9
|
-
createWorkItem(input: $input) {
|
|
10
|
-
workItem {
|
|
11
|
-
id
|
|
12
|
-
number
|
|
13
|
-
title
|
|
14
|
-
description
|
|
15
|
-
status {
|
|
16
|
-
id
|
|
17
|
-
name
|
|
18
|
-
}
|
|
19
|
-
members {
|
|
20
|
-
id
|
|
21
|
-
username
|
|
22
|
-
}
|
|
23
|
-
watchers {
|
|
24
|
-
id
|
|
25
|
-
username
|
|
26
|
-
}
|
|
27
|
-
labels {
|
|
28
|
-
id
|
|
29
|
-
name
|
|
30
|
-
}
|
|
31
|
-
effort
|
|
32
|
-
impact
|
|
33
|
-
updatedAt
|
|
34
|
-
createdAt
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
exports.editWorkItem = `
|
|
40
|
-
mutation ($input: EditWorkItemInput!) {
|
|
41
|
-
editWorkItem(input: $input) {
|
|
42
|
-
workItem {
|
|
43
|
-
id
|
|
44
|
-
number
|
|
45
|
-
title
|
|
46
|
-
description
|
|
47
|
-
status {
|
|
48
|
-
id
|
|
49
|
-
name
|
|
50
|
-
}
|
|
51
|
-
members {
|
|
52
|
-
id
|
|
53
|
-
username
|
|
54
|
-
}
|
|
55
|
-
watchers {
|
|
56
|
-
id
|
|
57
|
-
username
|
|
58
|
-
}
|
|
59
|
-
labels {
|
|
60
|
-
id
|
|
61
|
-
name
|
|
62
|
-
}
|
|
63
|
-
effort
|
|
64
|
-
impact
|
|
65
|
-
updatedAt
|
|
66
|
-
createdAt
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
//# sourceMappingURL=mutations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../nodes/Kitemaker/mutations.ts"],"names":[],"mappings":";AAAA,qCAAqC;AACrC,sBAAsB;AACtB,qCAAqC;;;AAExB,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAEW,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B3B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const getAllSpaces = "\n\tquery {\n\t\torganization {\n\t\t\tspaces {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t\tlabels {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tcolor\n\t\t\t\t}\n\t\t\t\tstatuses {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\ttype\n\t\t\t\t\tdefault\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n";
|
|
2
|
-
export declare const getAllUsers = "\n\tquery {\n\t\torganization {\n\t\t\tusers {\n\t\t\t\tid\n\t\t\t\tusername\n\t\t\t}\n\t\t}\n\t}\n";
|
|
3
|
-
export declare const getLabels = "\n\tquery {\n\t\torganization {\n\t\t\tspaces {\n\t\t\t\tlabels {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tcolor\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n";
|
|
4
|
-
export declare const getOrganization = "\n\tquery {\n\t\torganization {\n\t\t\tid\n\t\t\tname\n\t\t}\n\t}\n";
|
|
5
|
-
export declare const getSpaces = "\n\tquery {\n\t\torganization {\n\t\t\tspaces {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t\tlabels {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tcolor\n\t\t\t\t}\n\t\t\t\tstatuses {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\ttype\n\t\t\t\t\tdefault\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n";
|
|
6
|
-
export declare const getStatuses = "\n\tquery {\n\t\torganization {\n\t\t\tspaces {\n\t\t\t\tid\n\t\t\t\tstatuses {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\ttype\n\t\t\t\t\tdefault\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n";
|
|
7
|
-
export declare const getUsers = "\n\tquery {\n\t\torganization {\n\t\t\tusers {\n\t\t\t\tid\n\t\t\t\tusername\n\t\t\t}\n\t\t}\n\t}\n";
|
|
8
|
-
export declare const getWorkItems = "\n\tquery($spaceId: ID!) {\n\t\tworkItems(spaceId: $spaceId) {\n\t\t\tworkItems {\n\t\t\t\tid\n\t\t\t\ttitle\n\t\t\t}\n\t\t}\n\t}\n";
|
|
9
|
-
export declare const getWorkItem = "\n\tquery($workItemId: ID!) {\n\t\tworkItem(id: $workItemId) {\n\t\t\tid\n\t\t\tnumber\n\t\t\ttitle\n\t\t\tdescription\n\t\t\tstatus {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t}\n\t\t\tsort\n\t\t\tmembers {\n\t\t\t\tid\n\t\t\t\tusername\n\t\t\t}\n\t\t\twatchers {\n\t\t\t\tid\n\t\t\t\tusername\n\t\t\t}\n\t\t\tlabels {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t}\n\t\t\tcomments {\n\t\t\t\tid\n\t\t\t\tactor {\n\t\t\t\t\t__typename\n\t\t\t\t}\n\t\t\t\tbody\n\t\t\t\tthreadId\n\t\t\t\tupdatedAt\n\t\t\t\tcreatedAt\n\t\t\t}\n\t\t\teffort\n\t\t\timpact\n\t\t\tupdatedAt\n\t\t\tcreatedAt\n\t\t}\n\t}\n";
|
|
10
|
-
export declare const getAllWorkItems = "\n\tquery($spaceId: ID!, $cursor: String) {\n\t\tworkItems(spaceId: $spaceId, cursor: $cursor) {\n\t\t\thasMore,\n\t\t\tcursor,\n\t\t\tworkItems {\n\t\t\t\tid\n\t\t\t\ttitle\n\t\t\t\tdescription\n\t\t\t\tlabels {\n\t\t\t\t\tid\n\t\t\t\t}\n\t\t\t\tcomments {\n\t\t\t\t\tid\n\t\t\t\t\tbody\n\t\t\t\t\tactor {\n\t\t\t\t\t\t... on User {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tusername\n\t\t\t\t\t\t}\n\t\t\t\t\t\t... on IntegrationUser {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\texternalName\n\t\t\t\t\t\t}\n\t\t\t\t\t\t... on Integration {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\ttype\n\t\t\t\t\t\t}\n\t\t\t\t\t\t... on Application {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tname\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n";
|
|
11
|
-
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../nodes/Kitemaker/queries.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,iRAoBxB,CAAC;AAEF,eAAO,MAAM,WAAW,wGASvB,CAAC;AAEF,eAAO,MAAM,SAAS,uJAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,wEAO3B,CAAC;AAEF,eAAO,MAAM,SAAS,iRAoBrB,CAAC;AAEF,eAAO,MAAM,WAAW,uLAcvB,CAAC;AAEF,eAAO,MAAM,QAAQ,wGASpB,CAAC;AAEF,eAAO,MAAM,YAAY,wIASxB,CAAC;AAEF,eAAO,MAAM,WAAW,ykBAwCvB,CAAC;AAEF,eAAO,MAAM,eAAe,2sBAqC3B,CAAC"}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// ----------------------------------
|
|
3
|
-
// queries
|
|
4
|
-
// ----------------------------------
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getAllWorkItems = exports.getWorkItem = exports.getWorkItems = exports.getUsers = exports.getStatuses = exports.getSpaces = exports.getOrganization = exports.getLabels = exports.getAllUsers = exports.getAllSpaces = void 0;
|
|
7
|
-
exports.getAllSpaces = `
|
|
8
|
-
query {
|
|
9
|
-
organization {
|
|
10
|
-
spaces {
|
|
11
|
-
id
|
|
12
|
-
name
|
|
13
|
-
labels {
|
|
14
|
-
id
|
|
15
|
-
name
|
|
16
|
-
color
|
|
17
|
-
}
|
|
18
|
-
statuses {
|
|
19
|
-
id
|
|
20
|
-
name
|
|
21
|
-
type
|
|
22
|
-
default
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
exports.getAllUsers = `
|
|
29
|
-
query {
|
|
30
|
-
organization {
|
|
31
|
-
users {
|
|
32
|
-
id
|
|
33
|
-
username
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
exports.getLabels = `
|
|
39
|
-
query {
|
|
40
|
-
organization {
|
|
41
|
-
spaces {
|
|
42
|
-
labels {
|
|
43
|
-
id
|
|
44
|
-
name
|
|
45
|
-
color
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
exports.getOrganization = `
|
|
52
|
-
query {
|
|
53
|
-
organization {
|
|
54
|
-
id
|
|
55
|
-
name
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
exports.getSpaces = `
|
|
60
|
-
query {
|
|
61
|
-
organization {
|
|
62
|
-
spaces {
|
|
63
|
-
id
|
|
64
|
-
name
|
|
65
|
-
labels {
|
|
66
|
-
id
|
|
67
|
-
name
|
|
68
|
-
color
|
|
69
|
-
}
|
|
70
|
-
statuses {
|
|
71
|
-
id
|
|
72
|
-
name
|
|
73
|
-
type
|
|
74
|
-
default
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
exports.getStatuses = `
|
|
81
|
-
query {
|
|
82
|
-
organization {
|
|
83
|
-
spaces {
|
|
84
|
-
id
|
|
85
|
-
statuses {
|
|
86
|
-
id
|
|
87
|
-
name
|
|
88
|
-
type
|
|
89
|
-
default
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
`;
|
|
95
|
-
exports.getUsers = `
|
|
96
|
-
query {
|
|
97
|
-
organization {
|
|
98
|
-
users {
|
|
99
|
-
id
|
|
100
|
-
username
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
`;
|
|
105
|
-
exports.getWorkItems = `
|
|
106
|
-
query($spaceId: ID!) {
|
|
107
|
-
workItems(spaceId: $spaceId) {
|
|
108
|
-
workItems {
|
|
109
|
-
id
|
|
110
|
-
title
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
`;
|
|
115
|
-
exports.getWorkItem = `
|
|
116
|
-
query($workItemId: ID!) {
|
|
117
|
-
workItem(id: $workItemId) {
|
|
118
|
-
id
|
|
119
|
-
number
|
|
120
|
-
title
|
|
121
|
-
description
|
|
122
|
-
status {
|
|
123
|
-
id
|
|
124
|
-
name
|
|
125
|
-
}
|
|
126
|
-
sort
|
|
127
|
-
members {
|
|
128
|
-
id
|
|
129
|
-
username
|
|
130
|
-
}
|
|
131
|
-
watchers {
|
|
132
|
-
id
|
|
133
|
-
username
|
|
134
|
-
}
|
|
135
|
-
labels {
|
|
136
|
-
id
|
|
137
|
-
name
|
|
138
|
-
}
|
|
139
|
-
comments {
|
|
140
|
-
id
|
|
141
|
-
actor {
|
|
142
|
-
__typename
|
|
143
|
-
}
|
|
144
|
-
body
|
|
145
|
-
threadId
|
|
146
|
-
updatedAt
|
|
147
|
-
createdAt
|
|
148
|
-
}
|
|
149
|
-
effort
|
|
150
|
-
impact
|
|
151
|
-
updatedAt
|
|
152
|
-
createdAt
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
`;
|
|
156
|
-
exports.getAllWorkItems = `
|
|
157
|
-
query($spaceId: ID!, $cursor: String) {
|
|
158
|
-
workItems(spaceId: $spaceId, cursor: $cursor) {
|
|
159
|
-
hasMore,
|
|
160
|
-
cursor,
|
|
161
|
-
workItems {
|
|
162
|
-
id
|
|
163
|
-
title
|
|
164
|
-
description
|
|
165
|
-
labels {
|
|
166
|
-
id
|
|
167
|
-
}
|
|
168
|
-
comments {
|
|
169
|
-
id
|
|
170
|
-
body
|
|
171
|
-
actor {
|
|
172
|
-
... on User {
|
|
173
|
-
id
|
|
174
|
-
username
|
|
175
|
-
}
|
|
176
|
-
... on IntegrationUser {
|
|
177
|
-
id
|
|
178
|
-
externalName
|
|
179
|
-
}
|
|
180
|
-
... on Integration {
|
|
181
|
-
id
|
|
182
|
-
type
|
|
183
|
-
}
|
|
184
|
-
... on Application {
|
|
185
|
-
id
|
|
186
|
-
name
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
`;
|
|
194
|
-
//# sourceMappingURL=queries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../nodes/Kitemaker/queries.ts"],"names":[],"mappings":";AAAA,qCAAqC;AACrC,sBAAsB;AACtB,qCAAqC;;;AAExB,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;CAS1B,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;CAYxB,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;CAO9B,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;;;;;CAc1B,CAAC;AAEW,QAAA,QAAQ,GAAG;;;;;;;;;CASvB,CAAC;AAEW,QAAA,YAAY,GAAG;;;;;;;;;CAS3B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC1B,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC9B,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { IDataObject, IExecuteFunctions, IHookFunctions, IHttpRequestMethods, ILoadOptionsFunctions, IWebhookFunctions } from 'n8n-workflow';
|
|
2
|
-
export declare function spontitApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions, method: IHttpRequestMethods, resource: string, body?: any, qs?: IDataObject): Promise<any>;
|
|
3
|
-
//# sourceMappingURL=GenericFunctions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../nodes/Spontit/GenericFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EAErB,iBAAiB,EAEjB,MAAM,cAAc,CAAC;AAGtB,wBAAsB,iBAAiB,CACtC,IAAI,EAAE,iBAAiB,GAAG,qBAAqB,GAAG,cAAc,GAAG,iBAAiB,EACpF,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,EAEhB,IAAI,GAAE,GAAQ,EACd,EAAE,GAAE,WAAgB,gBAwBpB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.spontitApiRequest = spontitApiRequest;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
async function spontitApiRequest(method, resource, body = {}, qs = {}) {
|
|
6
|
-
const credentials = await this.getCredentials('spontitApi');
|
|
7
|
-
try {
|
|
8
|
-
const options = {
|
|
9
|
-
headers: {
|
|
10
|
-
'X-Authorization': credentials.apiKey,
|
|
11
|
-
'X-UserId': credentials.username,
|
|
12
|
-
},
|
|
13
|
-
method,
|
|
14
|
-
body,
|
|
15
|
-
qs,
|
|
16
|
-
uri: `https://api.spontit.com/v3${resource}`,
|
|
17
|
-
json: true,
|
|
18
|
-
};
|
|
19
|
-
if (Object.keys(body).length === 0) {
|
|
20
|
-
delete options.body;
|
|
21
|
-
}
|
|
22
|
-
return await this.helpers?.request(options);
|
|
23
|
-
}
|
|
24
|
-
catch (error) {
|
|
25
|
-
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Spontit/GenericFunctions.ts"],"names":[],"mappings":";;AAYA,8CA8BC;AAhCD,+CAA4C;AAErC,KAAK,UAAU,iBAAiB,CAEtC,MAA2B,EAC3B,QAAgB,EAEhB,OAAY,EAAE,EACd,KAAkB,EAAE;IAEpB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAE5D,IAAI,CAAC;QACJ,MAAM,OAAO,GAAoB;YAChC,OAAO,EAAE;gBACR,iBAAiB,EAAE,WAAW,CAAC,MAAgB;gBAC/C,UAAU,EAAE,WAAW,CAAC,QAAkB;aAC1C;YACD,MAAM;YACN,IAAI;YACJ,EAAE;YACF,GAAG,EAAE,6BAA6B,QAAQ,EAAE;YAC5C,IAAI,EAAE,IAAI;SACV,CAAC;QACF,IAAI,MAAM,CAAC,IAAI,CAAC,IAAmB,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnD,OAAO,OAAO,CAAC,IAAI,CAAC;QACrB,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,CAAC,CAAC;IAC7D,CAAC;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PushDescription.d.ts","sourceRoot":"","sources":["../../../nodes/Spontit/PushDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,eAAe,EAqB3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EA8HvC,CAAC"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pushFields = exports.pushOperations = void 0;
|
|
4
|
-
exports.pushOperations = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
displayOptions: {
|
|
11
|
-
show: {
|
|
12
|
-
resource: ['push'],
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
options: [
|
|
16
|
-
{
|
|
17
|
-
name: 'Create',
|
|
18
|
-
value: 'create',
|
|
19
|
-
description: 'Create a push notification',
|
|
20
|
-
action: 'Create a push notification',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
default: 'create',
|
|
24
|
-
},
|
|
25
|
-
];
|
|
26
|
-
exports.pushFields = [
|
|
27
|
-
/* -------------------------------------------------------------------------- */
|
|
28
|
-
/* push:create */
|
|
29
|
-
/* -------------------------------------------------------------------------- */
|
|
30
|
-
{
|
|
31
|
-
displayName: 'Content',
|
|
32
|
-
name: 'content',
|
|
33
|
-
type: 'string',
|
|
34
|
-
default: '',
|
|
35
|
-
displayOptions: {
|
|
36
|
-
show: {
|
|
37
|
-
operation: ['create'],
|
|
38
|
-
resource: ['push'],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
description: 'To provide text in a push, supply one of either "content" or "pushContent" (or both). Limited to 2500 characters. (Required if a value for "pushContent" is not provided).',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
displayName: 'Additional Fields',
|
|
45
|
-
name: 'additionalFields',
|
|
46
|
-
type: 'collection',
|
|
47
|
-
placeholder: 'Add Field',
|
|
48
|
-
displayOptions: {
|
|
49
|
-
show: {
|
|
50
|
-
operation: ['create'],
|
|
51
|
-
resource: ['push'],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
default: {},
|
|
55
|
-
options: [
|
|
56
|
-
{
|
|
57
|
-
displayName: 'Channel Name',
|
|
58
|
-
name: 'channelName',
|
|
59
|
-
type: 'string',
|
|
60
|
-
default: '',
|
|
61
|
-
description: "The name of a channel you created. If you have not yet created a channel, simply don't provide this value and the push will be sent to your main account.",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
displayName: 'Expiration Stamp',
|
|
65
|
-
name: 'expirationStamp',
|
|
66
|
-
type: 'dateTime',
|
|
67
|
-
default: '',
|
|
68
|
-
description: 'A Unix timestamp. When to automatically expire your push notification. The default is 10 days after pushing. The push will become unaccessible within 15-30 minutes of the selected time, but will remain on all device screens until dismissed or clicked.',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
displayName: 'iOS DeepLink',
|
|
72
|
-
name: 'iOSDeepLink',
|
|
73
|
-
type: 'string',
|
|
74
|
-
default: '',
|
|
75
|
-
description: 'An iOS deep link. Use this to deep link into other apps. Alternatively, you can provide a universal link in the link attribute and set openLinkInApp to false.',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
displayName: 'Link',
|
|
79
|
-
name: 'link',
|
|
80
|
-
type: 'string',
|
|
81
|
-
default: '',
|
|
82
|
-
description: 'A link that can be attached to your push. Must be a valid URL.',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
displayName: 'Open In Home Feed',
|
|
86
|
-
name: 'openInHomeFeed',
|
|
87
|
-
type: 'boolean',
|
|
88
|
-
default: false,
|
|
89
|
-
description: 'Whether the notification opens to the home feed or to a standalone page with the notification. The default (openInHomeFeed=False) is to open the notification on a standalone page.',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
displayName: 'Open Link In App',
|
|
93
|
-
name: 'openLinkInApp',
|
|
94
|
-
type: 'boolean',
|
|
95
|
-
default: false,
|
|
96
|
-
description: 'Whether to open the provided link within the iOS app or in Safari. Android PWA opens all links in the default web browser.',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
displayName: 'Push To Emails',
|
|
100
|
-
name: 'pushToEmails',
|
|
101
|
-
type: 'string',
|
|
102
|
-
default: '',
|
|
103
|
-
description: "<p>Emails (strings) to whom to send the notification. If all three attributes 'pushToFollowers', 'pushToPhoneNumbers' and 'pushToEmails' are not supplied, then everyone who follows the channel will receive the push notification.</p><p>If 'pushToFollowers' is supplied, only those listed in the array will receive the push notification.</p><p>If one of the userIds supplied does not follow the specified channel, then that userId value will be ignored.</p><p>See the \"Followers\" section to learn how to list the userIds of those who follow one of your channels.</p>.",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
displayName: 'Push To Followers',
|
|
107
|
-
name: 'pushToFollowers',
|
|
108
|
-
type: 'string',
|
|
109
|
-
default: '',
|
|
110
|
-
description: "<p>User IDs (strings) to whom to send the notification. If all three attributes 'pushToFollowers', 'pushToPhoneNumbers' and 'pushToEmails' are not supplied, then everyone who follows the channel will receive the push notification.</p><p>If 'pushToFollowers' is supplied, only those listed in the array will receive the push notification.</p><p>If one of the userIds supplied does not follow the specified channel, then that userId value will be ignored.</p><p>See the \"Followers\" section to learn how to list the userIds of those who follow one of your channels.</p>.",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
displayName: 'Push To Phone Numbers',
|
|
114
|
-
name: 'pushToPhoneNumbers',
|
|
115
|
-
type: 'string',
|
|
116
|
-
default: '',
|
|
117
|
-
description: "<p>Phone numbers (strings) to whom to send the notification. If all three attributes 'pushToFollowers', 'pushToPhoneNumbers' and 'pushToEmails' are not supplied, then everyone who follows the channel will receive the push notification.</p><p>If 'pushToFollowers' is supplied, only those listed in the array will receive the push notification.</p><p>If one of the userIds supplied does not follow the specified channel, then that userId value will be ignored.</p><p>See the \"Followers\" section to learn how to list the userIds of those who follow one of your channels.</p>.",
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
displayName: 'Schedule',
|
|
121
|
-
name: 'schedule',
|
|
122
|
-
type: 'dateTime',
|
|
123
|
-
default: '',
|
|
124
|
-
description: 'A Unix timestamp. Schedule a push to be sent at a later date and time.',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
displayName: 'Subtitle',
|
|
128
|
-
name: 'subtitle',
|
|
129
|
-
type: 'string',
|
|
130
|
-
default: '',
|
|
131
|
-
description: 'The subtitle of your push. Limited to 20 characters. Only appears on iOS devices.',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
displayName: 'Title',
|
|
135
|
-
name: 'pushTitle',
|
|
136
|
-
type: 'string',
|
|
137
|
-
default: '',
|
|
138
|
-
description: 'The title of push. Appears in bold at the top. Limited to 100 characters.',
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
},
|
|
142
|
-
];
|
|
143
|
-
//# sourceMappingURL=PushDescription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PushDescription.js","sourceRoot":"","sources":["../../../nodes/Spontit/PushDescription.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class Spontit implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
4
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=Spontit.node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spontit.node.d.ts","sourceRoot":"","sources":["../../../nodes/Spontit/Spontit.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,iBAAiB,EAEjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAMtB,qBAAa,OAAQ,YAAW,SAAS;IACxC,WAAW,EAAE,oBAAoB,CAsC/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA6DvE"}
|
|
@@ -1,106 +0,0 @@
|
|
|
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.Spontit = void 0;
|
|
7
|
-
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
8
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
9
|
-
const GenericFunctions_1 = require("./GenericFunctions");
|
|
10
|
-
const PushDescription_1 = require("./PushDescription");
|
|
11
|
-
class Spontit {
|
|
12
|
-
description = {
|
|
13
|
-
displayName: 'Spontit',
|
|
14
|
-
name: 'spontit',
|
|
15
|
-
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
|
16
|
-
icon: 'file:spontit.png',
|
|
17
|
-
group: ['output'],
|
|
18
|
-
version: 1,
|
|
19
|
-
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
20
|
-
description: 'Consume Spontit API',
|
|
21
|
-
defaults: {
|
|
22
|
-
name: 'Spontit',
|
|
23
|
-
},
|
|
24
|
-
usableAsTool: true,
|
|
25
|
-
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
26
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
27
|
-
credentials: [
|
|
28
|
-
{
|
|
29
|
-
name: 'spontitApi',
|
|
30
|
-
required: true,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
properties: [
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Resource',
|
|
36
|
-
name: 'resource',
|
|
37
|
-
type: 'options',
|
|
38
|
-
noDataExpression: true,
|
|
39
|
-
options: [
|
|
40
|
-
{
|
|
41
|
-
name: 'Push',
|
|
42
|
-
value: 'push',
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
default: 'push',
|
|
46
|
-
},
|
|
47
|
-
...PushDescription_1.pushOperations,
|
|
48
|
-
...PushDescription_1.pushFields,
|
|
49
|
-
],
|
|
50
|
-
};
|
|
51
|
-
async execute() {
|
|
52
|
-
const items = this.getInputData();
|
|
53
|
-
const returnData = [];
|
|
54
|
-
const timezone = this.getTimezone();
|
|
55
|
-
let responseData;
|
|
56
|
-
const resource = this.getNodeParameter('resource', 0);
|
|
57
|
-
const operation = this.getNodeParameter('operation', 0);
|
|
58
|
-
for (let i = 0; i < items.length; i++) {
|
|
59
|
-
try {
|
|
60
|
-
if (resource === 'push') {
|
|
61
|
-
if (operation === 'create') {
|
|
62
|
-
const content = this.getNodeParameter('content', i);
|
|
63
|
-
const additionalFields = this.getNodeParameter('additionalFields', i);
|
|
64
|
-
const body = {
|
|
65
|
-
content,
|
|
66
|
-
};
|
|
67
|
-
Object.assign(body, additionalFields);
|
|
68
|
-
if (body.pushToFollowers) {
|
|
69
|
-
body.pushToFollowers = body.pushToFollowers.split(',');
|
|
70
|
-
}
|
|
71
|
-
if (body.pushToPhoneNumbers) {
|
|
72
|
-
body.pushToPhoneNumbers = body.pushToPhoneNumbers.split(',');
|
|
73
|
-
}
|
|
74
|
-
if (body.pushToEmails) {
|
|
75
|
-
body.pushToEmails = body.pushToEmails.split(',');
|
|
76
|
-
}
|
|
77
|
-
if (body.schedule) {
|
|
78
|
-
body.scheduled = moment_timezone_1.default.tz(body.schedule, timezone).unix();
|
|
79
|
-
}
|
|
80
|
-
if (body.expirationStamp) {
|
|
81
|
-
body.expirationStamp = moment_timezone_1.default.tz(body.expirationStamp, timezone).unix();
|
|
82
|
-
}
|
|
83
|
-
responseData = await GenericFunctions_1.spontitApiRequest.call(this, 'POST', '/push', body);
|
|
84
|
-
responseData = responseData.data;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (Array.isArray(responseData)) {
|
|
88
|
-
returnData.push.apply(returnData, responseData);
|
|
89
|
-
}
|
|
90
|
-
else if (responseData !== undefined) {
|
|
91
|
-
returnData.push(responseData);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
if (this.continueOnFail()) {
|
|
96
|
-
returnData.push({ error: error.message });
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
throw error;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return [this.helpers.returnJsonArray(returnData)];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.Spontit = Spontit;
|
|
106
|
-
//# sourceMappingURL=Spontit.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spontit.node.js","sourceRoot":"","sources":["../../../nodes/Spontit/Spontit.node.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": "n8n-nodes-base.spontit",
|
|
3
|
-
"nodeVersion": "1.0",
|
|
4
|
-
"codexVersion": "1.0",
|
|
5
|
-
"categories": ["Communication"],
|
|
6
|
-
"resources": {
|
|
7
|
-
"credentialDocumentation": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://docs.n8n.io/integrations/builtin/credentials/spontit/"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"primaryDocumentation": [
|
|
13
|
-
{
|
|
14
|
-
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.spontit/"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
Binary file
|