@probo/n8n-nodes-probo 0.96.1 → 0.98.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/GenericFunctions.js +9 -1
- package/dist/nodes/Probo/GenericFunctions.js.map +1 -1
- package/dist/nodes/Probo/Probo.node.js +10 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +4 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/meeting/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/meeting/create.operation.js +163 -0
- package/dist/nodes/Probo/actions/meeting/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/meeting/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/meeting/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/meeting/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/meeting/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/meeting/get.operation.js +91 -0
- package/dist/nodes/Probo/actions/meeting/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/meeting/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/meeting/getAll.operation.js +134 -0
- package/dist/nodes/Probo/actions/meeting/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/meeting/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/meeting/index.js +98 -0
- package/dist/nodes/Probo/actions/meeting/index.js.map +1 -0
- package/dist/nodes/Probo/actions/meeting/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/meeting/update.operation.js +159 -0
- package/dist/nodes/Probo/actions/meeting/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/vendor/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/vendor/create.operation.js +304 -0
- package/dist/nodes/Probo/actions/vendor/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/vendor/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/vendor/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/vendor/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/vendor/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/vendor/get.operation.js +122 -0
- package/dist/nodes/Probo/actions/vendor/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/vendor/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/vendor/getAll.operation.js +165 -0
- package/dist/nodes/Probo/actions/vendor/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/vendor/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/vendor/index.js +98 -0
- package/dist/nodes/Probo/actions/vendor/index.js.map +1 -0
- package/dist/nodes/Probo/actions/vendor/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/vendor/update.operation.js +326 -0
- package/dist/nodes/Probo/actions/vendor/update.operation.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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: ['meeting'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Create',
|
|
61
|
+
value: 'create',
|
|
62
|
+
description: 'Create a new meeting',
|
|
63
|
+
action: 'Create a meeting',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Delete',
|
|
67
|
+
value: 'delete',
|
|
68
|
+
description: 'Delete a meeting',
|
|
69
|
+
action: 'Delete a meeting',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Get',
|
|
73
|
+
value: 'get',
|
|
74
|
+
description: 'Get a meeting',
|
|
75
|
+
action: 'Get a meeting',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get Many',
|
|
79
|
+
value: 'getAll',
|
|
80
|
+
description: 'Get many meetings',
|
|
81
|
+
action: 'Get many meetings',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Update',
|
|
85
|
+
value: 'update',
|
|
86
|
+
description: 'Update an existing meeting',
|
|
87
|
+
action: 'Update a meeting',
|
|
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/meeting/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,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,kBAAkB;aAC1B;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,QAAQ,CAAC,WAAW;CACvB,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
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: 'Meeting ID',
|
|
9
|
+
name: 'meetingId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['meeting'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the meeting to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Name',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['meeting'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The name of the meeting',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Date',
|
|
36
|
+
name: 'date',
|
|
37
|
+
type: 'dateTime',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['meeting'],
|
|
41
|
+
operation: ['update'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The date and time of the meeting',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Attendee IDs',
|
|
49
|
+
name: 'attendeeIds',
|
|
50
|
+
type: 'string',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['meeting'],
|
|
54
|
+
operation: ['update'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: '',
|
|
58
|
+
description: 'Comma-separated list of attendee IDs (People IDs)',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Minutes',
|
|
62
|
+
name: 'minutes',
|
|
63
|
+
type: 'string',
|
|
64
|
+
typeOptions: {
|
|
65
|
+
rows: 4,
|
|
66
|
+
},
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
resource: ['meeting'],
|
|
70
|
+
operation: ['update'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
default: '',
|
|
74
|
+
description: 'The minutes of the meeting',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: 'Options',
|
|
78
|
+
name: 'options',
|
|
79
|
+
type: 'collection',
|
|
80
|
+
placeholder: 'Add Option',
|
|
81
|
+
default: {},
|
|
82
|
+
displayOptions: {
|
|
83
|
+
show: {
|
|
84
|
+
resource: ['meeting'],
|
|
85
|
+
operation: ['update'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
options: [
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Include Attendees',
|
|
91
|
+
name: 'includeAttendees',
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
default: false,
|
|
94
|
+
description: 'Whether to include attendees in the response',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Include Organization',
|
|
98
|
+
name: 'includeOrganization',
|
|
99
|
+
type: 'boolean',
|
|
100
|
+
default: false,
|
|
101
|
+
description: 'Whether to include organization in the response',
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
];
|
|
106
|
+
async function execute(itemIndex) {
|
|
107
|
+
const meetingId = this.getNodeParameter('meetingId', itemIndex);
|
|
108
|
+
const name = this.getNodeParameter('name', itemIndex, '');
|
|
109
|
+
const date = this.getNodeParameter('date', itemIndex, '');
|
|
110
|
+
const attendeeIdsStr = this.getNodeParameter('attendeeIds', itemIndex, '');
|
|
111
|
+
const minutes = this.getNodeParameter('minutes', itemIndex, '');
|
|
112
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
113
|
+
const attendeesFragment = options.includeAttendees
|
|
114
|
+
? `attendees {
|
|
115
|
+
id
|
|
116
|
+
fullName
|
|
117
|
+
}`
|
|
118
|
+
: '';
|
|
119
|
+
const organizationFragment = options.includeOrganization
|
|
120
|
+
? `organization {
|
|
121
|
+
id
|
|
122
|
+
name
|
|
123
|
+
}`
|
|
124
|
+
: '';
|
|
125
|
+
const query = `
|
|
126
|
+
mutation UpdateMeeting($input: UpdateMeetingInput!) {
|
|
127
|
+
updateMeeting(input: $input) {
|
|
128
|
+
meeting {
|
|
129
|
+
id
|
|
130
|
+
name
|
|
131
|
+
date
|
|
132
|
+
minutes
|
|
133
|
+
${attendeesFragment}
|
|
134
|
+
${organizationFragment}
|
|
135
|
+
createdAt
|
|
136
|
+
updatedAt
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
const attendeeIds = attendeeIdsStr ? attendeeIdsStr.split(',').map((id) => id.trim()).filter(Boolean) : undefined;
|
|
142
|
+
const input = { meetingId };
|
|
143
|
+
if (name)
|
|
144
|
+
input.name = name;
|
|
145
|
+
if (date)
|
|
146
|
+
input.date = date;
|
|
147
|
+
if (attendeeIds && attendeeIds.length > 0) {
|
|
148
|
+
input.attendeeIds = attendeeIds;
|
|
149
|
+
}
|
|
150
|
+
if (minutes !== undefined && minutes !== null) {
|
|
151
|
+
input.minutes = minutes;
|
|
152
|
+
}
|
|
153
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
154
|
+
return {
|
|
155
|
+
json: responseData,
|
|
156
|
+
pairedItem: { item: itemIndex },
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/meeting/update.operation.ts"],"names":[],"mappings":";;;AAwGA,0BA+DC;AAtKD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE,I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B;OACjB,oBAAoB;;;;;;EAMzB,CAAC;IAEF,MAAM,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAElH,MAAM,KAAK,GAA4B,EAAE,SAAS,EAAE,CAAC;IACrD,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5B,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5B,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IACD,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC/C,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,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,304 @@
|
|
|
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: ['vendor'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Name',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['vendor'],
|
|
28
|
+
operation: ['create'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The name of the vendor',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Description',
|
|
37
|
+
name: 'description',
|
|
38
|
+
type: 'string',
|
|
39
|
+
typeOptions: {
|
|
40
|
+
rows: 4,
|
|
41
|
+
},
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
resource: ['vendor'],
|
|
45
|
+
operation: ['create'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
default: '',
|
|
49
|
+
description: 'The description of the vendor',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Category',
|
|
53
|
+
name: 'category',
|
|
54
|
+
type: 'string',
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['vendor'],
|
|
58
|
+
operation: ['create'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'The category of the vendor',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Website URL',
|
|
66
|
+
name: 'websiteUrl',
|
|
67
|
+
type: 'string',
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: {
|
|
70
|
+
resource: ['vendor'],
|
|
71
|
+
operation: ['create'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
default: '',
|
|
75
|
+
description: 'The website URL of the vendor',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Legal Name',
|
|
79
|
+
name: 'legalName',
|
|
80
|
+
type: 'string',
|
|
81
|
+
displayOptions: {
|
|
82
|
+
show: {
|
|
83
|
+
resource: ['vendor'],
|
|
84
|
+
operation: ['create'],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
default: '',
|
|
88
|
+
description: 'The legal name of the vendor',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Headquarter Address',
|
|
92
|
+
name: 'headquarterAddress',
|
|
93
|
+
type: 'string',
|
|
94
|
+
displayOptions: {
|
|
95
|
+
show: {
|
|
96
|
+
resource: ['vendor'],
|
|
97
|
+
operation: ['create'],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
default: '',
|
|
101
|
+
description: 'The headquarter address of the vendor',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Business Owner ID',
|
|
105
|
+
name: 'businessOwnerId',
|
|
106
|
+
type: 'string',
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: {
|
|
109
|
+
resource: ['vendor'],
|
|
110
|
+
operation: ['create'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
default: '',
|
|
114
|
+
description: 'The ID of the business owner (People ID)',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Security Owner ID',
|
|
118
|
+
name: 'securityOwnerId',
|
|
119
|
+
type: 'string',
|
|
120
|
+
displayOptions: {
|
|
121
|
+
show: {
|
|
122
|
+
resource: ['vendor'],
|
|
123
|
+
operation: ['create'],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
default: '',
|
|
127
|
+
description: 'The ID of the security owner (People ID)',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Additional Fields',
|
|
131
|
+
name: 'additionalFields',
|
|
132
|
+
type: 'collection',
|
|
133
|
+
placeholder: 'Add Field',
|
|
134
|
+
default: {},
|
|
135
|
+
displayOptions: {
|
|
136
|
+
show: {
|
|
137
|
+
resource: ['vendor'],
|
|
138
|
+
operation: ['create'],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
options: [
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Business Associate Agreement URL',
|
|
144
|
+
name: 'businessAssociateAgreementUrl',
|
|
145
|
+
type: 'string',
|
|
146
|
+
default: '',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
displayName: 'Certifications',
|
|
150
|
+
name: 'certifications',
|
|
151
|
+
type: 'string',
|
|
152
|
+
default: '',
|
|
153
|
+
description: 'Comma-separated list of certifications',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Countries',
|
|
157
|
+
name: 'countries',
|
|
158
|
+
type: 'string',
|
|
159
|
+
default: '',
|
|
160
|
+
description: 'Comma-separated list of country codes',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Data Processing Agreement URL',
|
|
164
|
+
name: 'dataProcessingAgreementUrl',
|
|
165
|
+
type: 'string',
|
|
166
|
+
default: '',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
displayName: 'Privacy Policy URL',
|
|
170
|
+
name: 'privacyPolicyUrl',
|
|
171
|
+
type: 'string',
|
|
172
|
+
default: '',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Security Page URL',
|
|
176
|
+
name: 'securityPageUrl',
|
|
177
|
+
type: 'string',
|
|
178
|
+
default: '',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Service Level Agreement URL',
|
|
182
|
+
name: 'serviceLevelAgreementUrl',
|
|
183
|
+
type: 'string',
|
|
184
|
+
default: '',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
displayName: 'Status Page URL',
|
|
188
|
+
name: 'statusPageUrl',
|
|
189
|
+
type: 'string',
|
|
190
|
+
default: '',
|
|
191
|
+
description: 'The status page URL of the vendor',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
displayName: 'Subprocessors List URL',
|
|
195
|
+
name: 'subprocessorsListUrl',
|
|
196
|
+
type: 'string',
|
|
197
|
+
default: '',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
displayName: 'Terms of Service URL',
|
|
201
|
+
name: 'termsOfServiceUrl',
|
|
202
|
+
type: 'string',
|
|
203
|
+
default: '',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Trust Page URL',
|
|
207
|
+
name: 'trustPageUrl',
|
|
208
|
+
type: 'string',
|
|
209
|
+
default: '',
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
];
|
|
214
|
+
async function execute(itemIndex) {
|
|
215
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
216
|
+
const name = this.getNodeParameter('name', itemIndex);
|
|
217
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
218
|
+
const category = this.getNodeParameter('category', itemIndex, '');
|
|
219
|
+
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '');
|
|
220
|
+
const legalName = this.getNodeParameter('legalName', itemIndex, '');
|
|
221
|
+
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '');
|
|
222
|
+
const businessOwnerId = this.getNodeParameter('businessOwnerId', itemIndex, '');
|
|
223
|
+
const securityOwnerId = this.getNodeParameter('securityOwnerId', itemIndex, '');
|
|
224
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
225
|
+
const query = `
|
|
226
|
+
mutation CreateVendor($input: CreateVendorInput!) {
|
|
227
|
+
createVendor(input: $input) {
|
|
228
|
+
vendorEdge {
|
|
229
|
+
node {
|
|
230
|
+
id
|
|
231
|
+
name
|
|
232
|
+
description
|
|
233
|
+
category
|
|
234
|
+
websiteUrl
|
|
235
|
+
legalName
|
|
236
|
+
headquarterAddress
|
|
237
|
+
statusPageUrl
|
|
238
|
+
termsOfServiceUrl
|
|
239
|
+
privacyPolicyUrl
|
|
240
|
+
serviceLevelAgreementUrl
|
|
241
|
+
dataProcessingAgreementUrl
|
|
242
|
+
businessAssociateAgreementUrl
|
|
243
|
+
subprocessorsListUrl
|
|
244
|
+
securityPageUrl
|
|
245
|
+
trustPageUrl
|
|
246
|
+
certifications
|
|
247
|
+
countries
|
|
248
|
+
showOnTrustCenter
|
|
249
|
+
createdAt
|
|
250
|
+
updatedAt
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
`;
|
|
256
|
+
const input = {
|
|
257
|
+
organizationId,
|
|
258
|
+
name,
|
|
259
|
+
};
|
|
260
|
+
if (description)
|
|
261
|
+
input.description = description;
|
|
262
|
+
if (category)
|
|
263
|
+
input.category = category;
|
|
264
|
+
if (websiteUrl)
|
|
265
|
+
input.websiteUrl = websiteUrl;
|
|
266
|
+
if (legalName)
|
|
267
|
+
input.legalName = legalName;
|
|
268
|
+
if (headquarterAddress)
|
|
269
|
+
input.headquarterAddress = headquarterAddress;
|
|
270
|
+
if (businessOwnerId)
|
|
271
|
+
input.businessOwnerId = businessOwnerId;
|
|
272
|
+
if (securityOwnerId)
|
|
273
|
+
input.securityOwnerId = securityOwnerId;
|
|
274
|
+
if (additionalFields.statusPageUrl)
|
|
275
|
+
input.statusPageUrl = additionalFields.statusPageUrl;
|
|
276
|
+
if (additionalFields.termsOfServiceUrl)
|
|
277
|
+
input.termsOfServiceUrl = additionalFields.termsOfServiceUrl;
|
|
278
|
+
if (additionalFields.privacyPolicyUrl)
|
|
279
|
+
input.privacyPolicyUrl = additionalFields.privacyPolicyUrl;
|
|
280
|
+
if (additionalFields.serviceLevelAgreementUrl)
|
|
281
|
+
input.serviceLevelAgreementUrl = additionalFields.serviceLevelAgreementUrl;
|
|
282
|
+
if (additionalFields.dataProcessingAgreementUrl)
|
|
283
|
+
input.dataProcessingAgreementUrl = additionalFields.dataProcessingAgreementUrl;
|
|
284
|
+
if (additionalFields.businessAssociateAgreementUrl)
|
|
285
|
+
input.businessAssociateAgreementUrl = additionalFields.businessAssociateAgreementUrl;
|
|
286
|
+
if (additionalFields.subprocessorsListUrl)
|
|
287
|
+
input.subprocessorsListUrl = additionalFields.subprocessorsListUrl;
|
|
288
|
+
if (additionalFields.securityPageUrl)
|
|
289
|
+
input.securityPageUrl = additionalFields.securityPageUrl;
|
|
290
|
+
if (additionalFields.trustPageUrl)
|
|
291
|
+
input.trustPageUrl = additionalFields.trustPageUrl;
|
|
292
|
+
if (additionalFields.certifications) {
|
|
293
|
+
input.certifications = additionalFields.certifications.split(',').map((c) => c.trim()).filter(Boolean);
|
|
294
|
+
}
|
|
295
|
+
if (additionalFields.countries) {
|
|
296
|
+
input.countries = additionalFields.countries.split(',').map((c) => c.trim()).filter(Boolean);
|
|
297
|
+
}
|
|
298
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
299
|
+
return {
|
|
300
|
+
json: responseData,
|
|
301
|
+
pairedItem: { item: itemIndex },
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/vendor/create.operation.ts"],"names":[],"mappings":";;;AAoNA,0BA4FC;AA/SD,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,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ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c,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxG,CAAC;IACD,IAAI,gBAAgB,CAAC,SAAS,EAAE,CAAC;QAChC,KAAK,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED,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: 'Vendor ID',
|
|
9
|
+
name: 'vendorId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['vendor'],
|
|
14
|
+
operation: ['delete'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the vendor to delete',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const vendorId = this.getNodeParameter('vendorId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation DeleteVendor($input: DeleteVendorInput!) {
|
|
26
|
+
deleteVendor(input: $input) {
|
|
27
|
+
deletedVendorId
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { vendorId } });
|
|
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/vendor/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"}
|