@probo/n8n-nodes-probo 0.98.1 → 0.100.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/nodes/Probo/Probo.node.js +5 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/people/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/people/create.operation.js +166 -0
- package/dist/nodes/Probo/actions/people/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/people/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/people/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/people/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/people/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/people/get.operation.js +51 -0
- package/dist/nodes/Probo/actions/people/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/people/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/people/getAll.operation.js +94 -0
- package/dist/nodes/Probo/actions/people/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/people/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/people/index.js +98 -0
- package/dist/nodes/Probo/actions/people/index.js.map +1 -0
- package/dist/nodes/Probo/actions/people/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/people/update.operation.js +167 -0
- package/dist/nodes/Probo/actions/people/update.operation.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Probo.node.js","sourceRoot":"","sources":["../../../nodes/Probo/Probo.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AACtB,uCAImB;AAEnB,MAAa,KAAK;IAAlB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACp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SACd,CAAC;IACH,CAAC;IAnBA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAClC,MAAM,UAAU,GAAyB,EAAE,CAAC;QAE5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;YAChE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,EAAE,SAAS,CAAW,CAAC;YAE7E,MAAM,eAAe,GAAG,IAAA,4BAAkB,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;YAChE,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACnD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CAKD;AAhID,sBAgIC"}
|
|
@@ -45,6 +45,7 @@ const framework = __importStar(require("./framework"));
|
|
|
45
45
|
const measure = __importStar(require("./measure"));
|
|
46
46
|
const meeting = __importStar(require("./meeting"));
|
|
47
47
|
const organization = __importStar(require("./organization"));
|
|
48
|
+
const people = __importStar(require("./people"));
|
|
48
49
|
const vendor = __importStar(require("./vendor"));
|
|
49
50
|
exports.resources = {
|
|
50
51
|
asset: asset,
|
|
@@ -55,6 +56,7 @@ exports.resources = {
|
|
|
55
56
|
measure: measure,
|
|
56
57
|
meeting: meeting,
|
|
57
58
|
organization: organization,
|
|
59
|
+
people: people,
|
|
58
60
|
vendor: vendor,
|
|
59
61
|
};
|
|
60
62
|
function getAllResourceOperations() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,4DAWC;AAED,oDAQC;AAED,gDAeC;AAxED,+CAAiC;AACjC,mDAAqC;AACrC,+CAAiC;AACjC,mDAAqC;AACrC,uDAAyC;AACzC,mDAAqC;AACrC,mDAAqC;AACrC,6DAA+C;AAC/C,iDAAmC;AACnC,iDAAmC;AAYtB,QAAA,SAAS,GAAmC;IACxD,KAAK,EAAE,KAAuB;IAC9B,OAAO,EAAE,OAAyB;IAClC,KAAK,EAAE,KAAuB;IAC9B,OAAO,EAAE,OAAyB;IAClC,SAAS,EAAE,SAA2B;IACtC,OAAO,EAAE,OAAyB;IAClC,OAAO,EAAE,OAAyB;IAClC,YAAY,EAAE,YAA8B;IAC5C,MAAM,EAAE,MAAwB;IAChC,MAAM,EAAE,MAAwB;CAChC,CAAC;AAEF,SAAgB,wBAAwB;IACvC,MAAM,UAAU,GAAsB,EAAE,CAAC;IAEzC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,iBAAS,CAAC,EAAE,CAAC;QACjD,MAAM,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;QACrF,IAAI,aAAa,EAAE,CAAC;YACnB,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChC,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AAED,SAAgB,oBAAoB;IACnC,MAAM,MAAM,GAAsB,EAAE,CAAC;IAErC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,iBAAS,CAAC,EAAE,CAAC;QACjD,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC;IAClF,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAgB,kBAAkB,CAAC,YAAoB,EAAE,aAAqB;IAC7E,MAAM,QAAQ,GAAG,iBAAS,CAAC,YAAY,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,qBAAqB,YAAY,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,YAAY,GAAG,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC;IAE5E,MAAM,SAAS,GAAG,QAAQ,CAAC,YAAY,CAAoB,CAAC;IAE5D,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,sBAAsB,aAAa,kBAAkB,YAAY,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,OAAO,SAAS,CAAC,OAAO,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['people'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Full Name',
|
|
23
|
+
name: 'fullName',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['people'],
|
|
28
|
+
operation: ['create'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The full name of the person',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Primary Email Address',
|
|
37
|
+
name: 'primaryEmailAddress',
|
|
38
|
+
type: 'string',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['people'],
|
|
42
|
+
operation: ['create'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'The primary email address of the person',
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Kind',
|
|
51
|
+
name: 'kind',
|
|
52
|
+
type: 'options',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['people'],
|
|
56
|
+
operation: ['create'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
options: [
|
|
60
|
+
{
|
|
61
|
+
name: 'Employee',
|
|
62
|
+
value: 'EMPLOYEE',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Contractor',
|
|
66
|
+
value: 'CONTRACTOR',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Service Account',
|
|
70
|
+
value: 'SERVICE_ACCOUNT',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
default: 'EMPLOYEE',
|
|
74
|
+
description: 'The kind of person',
|
|
75
|
+
required: true,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Additional Fields',
|
|
79
|
+
name: 'additionalFields',
|
|
80
|
+
type: 'collection',
|
|
81
|
+
placeholder: 'Add Field',
|
|
82
|
+
default: {},
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: {
|
|
85
|
+
resource: ['people'],
|
|
86
|
+
operation: ['create'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
options: [
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Additional Email Addresses',
|
|
92
|
+
name: 'additionalEmailAddresses',
|
|
93
|
+
type: 'string',
|
|
94
|
+
default: '',
|
|
95
|
+
description: 'Comma-separated list of additional email addresses',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Position',
|
|
99
|
+
name: 'position',
|
|
100
|
+
type: 'string',
|
|
101
|
+
default: '',
|
|
102
|
+
description: 'The position of the person',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Contract Start Date',
|
|
106
|
+
name: 'contractStartDate',
|
|
107
|
+
type: 'dateTime',
|
|
108
|
+
default: '',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Contract End Date',
|
|
112
|
+
name: 'contractEndDate',
|
|
113
|
+
type: 'dateTime',
|
|
114
|
+
default: '',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
async function execute(itemIndex) {
|
|
120
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
121
|
+
const fullName = this.getNodeParameter('fullName', itemIndex);
|
|
122
|
+
const primaryEmailAddress = this.getNodeParameter('primaryEmailAddress', itemIndex);
|
|
123
|
+
const kind = this.getNodeParameter('kind', itemIndex);
|
|
124
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
125
|
+
const query = `
|
|
126
|
+
mutation CreatePeople($input: CreatePeopleInput!) {
|
|
127
|
+
createPeople(input: $input) {
|
|
128
|
+
peopleEdge {
|
|
129
|
+
node {
|
|
130
|
+
id
|
|
131
|
+
fullName
|
|
132
|
+
primaryEmailAddress
|
|
133
|
+
additionalEmailAddresses
|
|
134
|
+
kind
|
|
135
|
+
position
|
|
136
|
+
contractStartDate
|
|
137
|
+
contractEndDate
|
|
138
|
+
createdAt
|
|
139
|
+
updatedAt
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`;
|
|
145
|
+
const input = {
|
|
146
|
+
organizationId,
|
|
147
|
+
fullName,
|
|
148
|
+
primaryEmailAddress,
|
|
149
|
+
kind,
|
|
150
|
+
};
|
|
151
|
+
if (additionalFields.additionalEmailAddresses) {
|
|
152
|
+
input.additionalEmailAddresses = additionalFields.additionalEmailAddresses.split(',').map((e) => e.trim()).filter(Boolean);
|
|
153
|
+
}
|
|
154
|
+
if (additionalFields.position)
|
|
155
|
+
input.position = additionalFields.position;
|
|
156
|
+
if (additionalFields.contractStartDate)
|
|
157
|
+
input.contractStartDate = additionalFields.contractStartDate;
|
|
158
|
+
if (additionalFields.contractEndDate)
|
|
159
|
+
input.contractEndDate = additionalFields.contractEndDate;
|
|
160
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
161
|
+
return {
|
|
162
|
+
json: responseData,
|
|
163
|
+
pairedItem: { item: itemIndex },
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/people/create.operation.ts"],"names":[],"mappings":";;;AAqHA,0BAuDC;AA3KD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EA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,mBAAmB;QACnB,IAAI;KACJ,CAAC;IACF,IAAI,gBAAgB,CAAC,wBAAwB,EAAE,CAAC;QAC/C,KAAK,CAAC,wBAAwB,GAAG,gBAAgB,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5H,CAAC;IACD,IAAI,gBAAgB,CAAC,QAAQ;QAAE,KAAK,CAAC,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IAC1E,IAAI,gBAAgB,CAAC,iBAAiB;QAAE,KAAK,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC;IACrG,IAAI,gBAAgB,CAAC,eAAe;QAAE,KAAK,CAAC,eAAe,GAAG,gBAAgB,CAAC,eAAe,CAAC;IAE/F,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'People ID',
|
|
9
|
+
name: 'peopleId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['people'],
|
|
14
|
+
operation: ['delete'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the person to delete',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const peopleId = this.getNodeParameter('peopleId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation DeletePeople($input: DeletePeopleInput!) {
|
|
26
|
+
deletePeople(input: $input) {
|
|
27
|
+
deletedPeopleId
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { peopleId } });
|
|
32
|
+
return {
|
|
33
|
+
json: responseData,
|
|
34
|
+
pairedItem: { item: itemIndex },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/people/delete.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAW,CAAC;IAExE,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEtF,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'People ID',
|
|
9
|
+
name: 'peopleId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['people'],
|
|
14
|
+
operation: ['get'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the person',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const peopleId = this.getNodeParameter('peopleId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
query GetPeople($peopleId: ID!) {
|
|
26
|
+
node(id: $peopleId) {
|
|
27
|
+
... on People {
|
|
28
|
+
id
|
|
29
|
+
fullName
|
|
30
|
+
primaryEmailAddress
|
|
31
|
+
additionalEmailAddresses
|
|
32
|
+
kind
|
|
33
|
+
position
|
|
34
|
+
contractStartDate
|
|
35
|
+
contractEndDate
|
|
36
|
+
createdAt
|
|
37
|
+
updatedAt
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
const variables = {
|
|
43
|
+
peopleId,
|
|
44
|
+
};
|
|
45
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
|
|
46
|
+
return {
|
|
47
|
+
json: responseData,
|
|
48
|
+
pairedItem: { item: itemIndex },
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/people/get.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAmCC;AAtDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sBAAsB;QACnC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAW,CAAC;IAExE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,QAAQ;KACR,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['people'],
|
|
14
|
+
operation: ['getAll'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Return All',
|
|
23
|
+
name: 'returnAll',
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['people'],
|
|
28
|
+
operation: ['getAll'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: false,
|
|
32
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Limit',
|
|
36
|
+
name: 'limit',
|
|
37
|
+
type: 'number',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['people'],
|
|
41
|
+
operation: ['getAll'],
|
|
42
|
+
returnAll: [false],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
typeOptions: {
|
|
46
|
+
minValue: 1,
|
|
47
|
+
},
|
|
48
|
+
default: 50,
|
|
49
|
+
description: 'Max number of results to return',
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
async function execute(itemIndex) {
|
|
53
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
54
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
55
|
+
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
56
|
+
const query = `
|
|
57
|
+
query GetPeoples($organizationId: ID!, $first: Int, $after: CursorKey) {
|
|
58
|
+
node(id: $organizationId) {
|
|
59
|
+
... on Organization {
|
|
60
|
+
peoples(first: $first, after: $after) {
|
|
61
|
+
edges {
|
|
62
|
+
node {
|
|
63
|
+
id
|
|
64
|
+
fullName
|
|
65
|
+
primaryEmailAddress
|
|
66
|
+
additionalEmailAddresses
|
|
67
|
+
kind
|
|
68
|
+
position
|
|
69
|
+
contractStartDate
|
|
70
|
+
contractEndDate
|
|
71
|
+
createdAt
|
|
72
|
+
updatedAt
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
pageInfo {
|
|
76
|
+
hasNextPage
|
|
77
|
+
endCursor
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
const peoples = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { organizationId }, (response) => {
|
|
85
|
+
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
86
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
87
|
+
return node === null || node === void 0 ? void 0 : node.peoples;
|
|
88
|
+
}, returnAll, limit);
|
|
89
|
+
return {
|
|
90
|
+
json: { peoples },
|
|
91
|
+
pairedItem: { item: itemIndex },
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/people/getAll.operation.ts"],"names":[],"mappings":";;;AAkDA,0BAsDC;AAvGD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAA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C;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,OAAO,EAAE;QACjB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import * as createOp from './create.operation';
|
|
3
|
+
import * as updateOp from './update.operation';
|
|
4
|
+
import * as deleteOp from './delete.operation';
|
|
5
|
+
import * as getOp from './get.operation';
|
|
6
|
+
import * as getAllOp from './getAll.operation';
|
|
7
|
+
export declare const description: INodeProperties[];
|
|
8
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
37
|
+
const createOp = __importStar(require("./create.operation"));
|
|
38
|
+
exports.create = createOp;
|
|
39
|
+
const updateOp = __importStar(require("./update.operation"));
|
|
40
|
+
exports.update = updateOp;
|
|
41
|
+
const deleteOp = __importStar(require("./delete.operation"));
|
|
42
|
+
exports.delete = deleteOp;
|
|
43
|
+
const getOp = __importStar(require("./get.operation"));
|
|
44
|
+
exports.get = getOp;
|
|
45
|
+
const getAllOp = __importStar(require("./getAll.operation"));
|
|
46
|
+
exports.getAll = getAllOp;
|
|
47
|
+
exports.description = [
|
|
48
|
+
{
|
|
49
|
+
displayName: 'Operation',
|
|
50
|
+
name: 'operation',
|
|
51
|
+
type: 'options',
|
|
52
|
+
noDataExpression: true,
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['people'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Create',
|
|
61
|
+
value: 'create',
|
|
62
|
+
description: 'Create a new person',
|
|
63
|
+
action: 'Create a person',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Delete',
|
|
67
|
+
value: 'delete',
|
|
68
|
+
description: 'Delete a person',
|
|
69
|
+
action: 'Delete a person',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Get',
|
|
73
|
+
value: 'get',
|
|
74
|
+
description: 'Get a person',
|
|
75
|
+
action: 'Get a person',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get Many',
|
|
79
|
+
value: 'getAll',
|
|
80
|
+
description: 'Get many people',
|
|
81
|
+
action: 'Get many people',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Update',
|
|
85
|
+
value: 'update',
|
|
86
|
+
description: 'Update an existing person',
|
|
87
|
+
action: 'Update a person',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
default: 'create',
|
|
91
|
+
},
|
|
92
|
+
...createOp.description,
|
|
93
|
+
...updateOp.description,
|
|
94
|
+
...deleteOp.description,
|
|
95
|
+
...getOp.description,
|
|
96
|
+
...getAllOp.description,
|
|
97
|
+
];
|
|
98
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/people/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6DAA+C;AA0D1B,0BAAM;AAzD3B,6DAA+C;AAyDN,0BAAM;AAxD/C,6DAA+C;AAwDc,0BAAM;AAvDnE,uDAAyC;AAuDqC,oBAAG;AAtDjF,6DAA+C;AAsDgD,0BAAM;AApDxF,QAAA,WAAW,GAAsB;IAC7C;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,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,Q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