@probo/n8n-nodes-probo 0.97.0 → 0.98.1
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 +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/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
|
@@ -23,7 +23,15 @@ async function proboApiRequest(query, variables = {}) {
|
|
|
23
23
|
json: true,
|
|
24
24
|
};
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
const response = await this.helpers.httpRequest(options);
|
|
27
|
+
if (response.errors && Array.isArray(response.errors) && response.errors.length > 0) {
|
|
28
|
+
const errorMessages = response.errors.map((err) => err.message || JSON.stringify(err)).join('; ');
|
|
29
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), {
|
|
30
|
+
message: `GraphQL errors: ${errorMessages}`,
|
|
31
|
+
httpCode: '200',
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return response;
|
|
27
35
|
}
|
|
28
36
|
catch (error) {
|
|
29
37
|
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Probo/GenericFunctions.ts"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Probo/GenericFunctions.ts"],"names":[],"mappings":";;AASA,0CA2CC;AAED,0DAkDC;AAjGD,+CAA4C;AAErC,KAAK,UAAU,eAAe,CAEpC,KAAa,EACb,YAAyB,EAAE;IAE3B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAE1D,IAAI,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAA,EAAE,CAAC;QAC1B,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAgB,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,OAAO,GAAwB;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE;QAChC,GAAG,EAAE,uBAAuB;QAC5B,OAAO,EAAE;YACR,aAAa,EAAE,UAAU,WAAW,CAAC,MAAM,EAAE;YAC7C,cAAc,EAAE,kBAAkB;SAClC;QACD,IAAI,EAAE;YACL,K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,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;AA3HD,sBA2HC"}
|
|
@@ -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 vendor = __importStar(require("./vendor"));
|
|
48
49
|
exports.resources = {
|
|
49
50
|
asset: asset,
|
|
50
51
|
control: control,
|
|
@@ -54,6 +55,7 @@ exports.resources = {
|
|
|
54
55
|
measure: measure,
|
|
55
56
|
meeting: meeting,
|
|
56
57
|
organization: organization,
|
|
58
|
+
vendor: vendor,
|
|
57
59
|
};
|
|
58
60
|
function getAllResourceOperations() {
|
|
59
61
|
const operations = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot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F,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,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,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,wBAAwB;QACrC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAA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AAK,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"}
|
|
@@ -0,0 +1,122 @@
|
|
|
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: ['get'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the vendor',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Options',
|
|
23
|
+
name: 'options',
|
|
24
|
+
type: 'collection',
|
|
25
|
+
placeholder: 'Add Option',
|
|
26
|
+
default: {},
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: {
|
|
29
|
+
resource: ['vendor'],
|
|
30
|
+
operation: ['get'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
options: [
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Include Organization',
|
|
36
|
+
name: 'includeOrganization',
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
default: false,
|
|
39
|
+
description: 'Whether to include organization in the response',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Include Business Owner',
|
|
43
|
+
name: 'includeBusinessOwner',
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
default: false,
|
|
46
|
+
description: 'Whether to include business owner in the response',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: 'Include Security Owner',
|
|
50
|
+
name: 'includeSecurityOwner',
|
|
51
|
+
type: 'boolean',
|
|
52
|
+
default: false,
|
|
53
|
+
description: 'Whether to include security owner in the response',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
async function execute(itemIndex) {
|
|
59
|
+
const vendorId = this.getNodeParameter('vendorId', itemIndex);
|
|
60
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
61
|
+
const organizationFragment = options.includeOrganization
|
|
62
|
+
? `organization {
|
|
63
|
+
id
|
|
64
|
+
name
|
|
65
|
+
}`
|
|
66
|
+
: '';
|
|
67
|
+
const businessOwnerFragment = options.includeBusinessOwner
|
|
68
|
+
? `businessOwner {
|
|
69
|
+
id
|
|
70
|
+
fullName
|
|
71
|
+
primaryEmailAddress
|
|
72
|
+
}`
|
|
73
|
+
: '';
|
|
74
|
+
const securityOwnerFragment = options.includeSecurityOwner
|
|
75
|
+
? `securityOwner {
|
|
76
|
+
id
|
|
77
|
+
fullName
|
|
78
|
+
primaryEmailAddress
|
|
79
|
+
}`
|
|
80
|
+
: '';
|
|
81
|
+
const query = `
|
|
82
|
+
query GetVendor($vendorId: ID!) {
|
|
83
|
+
node(id: $vendorId) {
|
|
84
|
+
... on Vendor {
|
|
85
|
+
id
|
|
86
|
+
name
|
|
87
|
+
description
|
|
88
|
+
category
|
|
89
|
+
websiteUrl
|
|
90
|
+
legalName
|
|
91
|
+
headquarterAddress
|
|
92
|
+
statusPageUrl
|
|
93
|
+
termsOfServiceUrl
|
|
94
|
+
privacyPolicyUrl
|
|
95
|
+
serviceLevelAgreementUrl
|
|
96
|
+
dataProcessingAgreementUrl
|
|
97
|
+
businessAssociateAgreementUrl
|
|
98
|
+
subprocessorsListUrl
|
|
99
|
+
securityPageUrl
|
|
100
|
+
trustPageUrl
|
|
101
|
+
certifications
|
|
102
|
+
countries
|
|
103
|
+
showOnTrustCenter
|
|
104
|
+
${organizationFragment}
|
|
105
|
+
${businessOwnerFragment}
|
|
106
|
+
${securityOwnerFragment}
|
|
107
|
+
createdAt
|
|
108
|
+
updatedAt
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
const variables = {
|
|
114
|
+
vendorId,
|
|
115
|
+
};
|
|
116
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
|
|
117
|
+
return {
|
|
118
|
+
json: responseData,
|
|
119
|
+
pairedItem: { item: itemIndex },
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/vendor/get.operation.ts"],"names":[],"mappings":";;;AAwDA,0BA6EC;AApID,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;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,iDAAiD;aAC9D;YACD;gBACC,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,mDAAmD;aAChE;YACD;gBACC,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,mDAAmD;aAChE;SACD;KACD;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAW,CAAC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