@probo/n8n-nodes-probo 0.97.0 → 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 +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
|
@@ -0,0 +1,165 @@
|
|
|
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: ['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: ['vendor'],
|
|
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: ['vendor'],
|
|
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
|
+
displayName: 'Options',
|
|
53
|
+
name: 'options',
|
|
54
|
+
type: 'collection',
|
|
55
|
+
placeholder: 'Add Option',
|
|
56
|
+
default: {},
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: ['vendor'],
|
|
60
|
+
operation: ['getAll'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Include Organization',
|
|
66
|
+
name: 'includeOrganization',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
default: false,
|
|
69
|
+
description: 'Whether to include organization in the response',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Include Business Owner',
|
|
73
|
+
name: 'includeBusinessOwner',
|
|
74
|
+
type: 'boolean',
|
|
75
|
+
default: false,
|
|
76
|
+
description: 'Whether to include business owner in the response',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Include Security Owner',
|
|
80
|
+
name: 'includeSecurityOwner',
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
default: false,
|
|
83
|
+
description: 'Whether to include security owner in the response',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
async function execute(itemIndex) {
|
|
89
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
90
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
91
|
+
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
92
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
93
|
+
const organizationFragment = options.includeOrganization
|
|
94
|
+
? `organization {
|
|
95
|
+
id
|
|
96
|
+
name
|
|
97
|
+
}`
|
|
98
|
+
: '';
|
|
99
|
+
const businessOwnerFragment = options.includeBusinessOwner
|
|
100
|
+
? `businessOwner {
|
|
101
|
+
id
|
|
102
|
+
fullName
|
|
103
|
+
primaryEmailAddress
|
|
104
|
+
}`
|
|
105
|
+
: '';
|
|
106
|
+
const securityOwnerFragment = options.includeSecurityOwner
|
|
107
|
+
? `securityOwner {
|
|
108
|
+
id
|
|
109
|
+
fullName
|
|
110
|
+
primaryEmailAddress
|
|
111
|
+
}`
|
|
112
|
+
: '';
|
|
113
|
+
const query = `
|
|
114
|
+
query GetVendors($organizationId: ID!, $first: Int, $after: CursorKey) {
|
|
115
|
+
node(id: $organizationId) {
|
|
116
|
+
... on Organization {
|
|
117
|
+
vendors(first: $first, after: $after) {
|
|
118
|
+
edges {
|
|
119
|
+
node {
|
|
120
|
+
id
|
|
121
|
+
name
|
|
122
|
+
description
|
|
123
|
+
category
|
|
124
|
+
websiteUrl
|
|
125
|
+
legalName
|
|
126
|
+
headquarterAddress
|
|
127
|
+
statusPageUrl
|
|
128
|
+
termsOfServiceUrl
|
|
129
|
+
privacyPolicyUrl
|
|
130
|
+
serviceLevelAgreementUrl
|
|
131
|
+
dataProcessingAgreementUrl
|
|
132
|
+
businessAssociateAgreementUrl
|
|
133
|
+
subprocessorsListUrl
|
|
134
|
+
securityPageUrl
|
|
135
|
+
trustPageUrl
|
|
136
|
+
certifications
|
|
137
|
+
countries
|
|
138
|
+
showOnTrustCenter
|
|
139
|
+
${organizationFragment}
|
|
140
|
+
${businessOwnerFragment}
|
|
141
|
+
${securityOwnerFragment}
|
|
142
|
+
createdAt
|
|
143
|
+
updatedAt
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
pageInfo {
|
|
147
|
+
hasNextPage
|
|
148
|
+
endCursor
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
const vendors = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { organizationId }, (response) => {
|
|
156
|
+
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
157
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
158
|
+
return node === null || node === void 0 ? void 0 : node.vendors;
|
|
159
|
+
}, returnAll, limit);
|
|
160
|
+
return {
|
|
161
|
+
json: { vendors },
|
|
162
|
+
pairedItem: { item: itemIndex },
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"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oB;UACpB,qBAAqB;UACrB,qBAAqB;;;;;;;;;;;;;EAa7B,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,0CAAuB,CAAC,IAAI,CACjD,IAAI,EACJ,KAAK,EACL,EAAE,cAAc,EAAE,EAClB,CAAC,QAAQ,EAAE,EAAE;QACZ,MAAM,IAAI,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAA+B,CAAC;QACvD,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAA+B,CAAC;QACnD,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAkC,CAAC;IACjD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;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: ['vendor'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Create',
|
|
61
|
+
value: 'create',
|
|
62
|
+
description: 'Create a new vendor',
|
|
63
|
+
action: 'Create a vendor',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Delete',
|
|
67
|
+
value: 'delete',
|
|
68
|
+
description: 'Delete a vendor',
|
|
69
|
+
action: 'Delete a vendor',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Get',
|
|
73
|
+
value: 'get',
|
|
74
|
+
description: 'Get a vendor',
|
|
75
|
+
action: 'Get a vendor',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get Many',
|
|
79
|
+
value: 'getAll',
|
|
80
|
+
description: 'Get many vendors',
|
|
81
|
+
action: 'Get many vendors',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Update',
|
|
85
|
+
value: 'update',
|
|
86
|
+
description: 'Update an existing vendor',
|
|
87
|
+
action: 'Update a vendor',
|
|
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/vendor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6DAA+C;AA0D1B,0BAAM;AAzD3B,6DAA+C;A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
|
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: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the vendor to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Name',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['vendor'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The name of the vendor',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Description',
|
|
36
|
+
name: 'description',
|
|
37
|
+
type: 'string',
|
|
38
|
+
typeOptions: {
|
|
39
|
+
rows: 4,
|
|
40
|
+
},
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: {
|
|
43
|
+
resource: ['vendor'],
|
|
44
|
+
operation: ['update'],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
default: '',
|
|
48
|
+
description: 'The description of the vendor',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Category',
|
|
52
|
+
name: 'category',
|
|
53
|
+
type: 'string',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['vendor'],
|
|
57
|
+
operation: ['update'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
default: '',
|
|
61
|
+
description: 'The category of the vendor',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Website URL',
|
|
65
|
+
name: 'websiteUrl',
|
|
66
|
+
type: 'string',
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
resource: ['vendor'],
|
|
70
|
+
operation: ['update'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
default: '',
|
|
74
|
+
description: 'The website URL of the vendor',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: 'Legal Name',
|
|
78
|
+
name: 'legalName',
|
|
79
|
+
type: 'string',
|
|
80
|
+
displayOptions: {
|
|
81
|
+
show: {
|
|
82
|
+
resource: ['vendor'],
|
|
83
|
+
operation: ['update'],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
default: '',
|
|
87
|
+
description: 'The legal name of the vendor',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Headquarter Address',
|
|
91
|
+
name: 'headquarterAddress',
|
|
92
|
+
type: 'string',
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: {
|
|
95
|
+
resource: ['vendor'],
|
|
96
|
+
operation: ['update'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
default: '',
|
|
100
|
+
description: 'The headquarter address of the vendor',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Business Owner ID',
|
|
104
|
+
name: 'businessOwnerId',
|
|
105
|
+
type: 'string',
|
|
106
|
+
displayOptions: {
|
|
107
|
+
show: {
|
|
108
|
+
resource: ['vendor'],
|
|
109
|
+
operation: ['update'],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
default: '',
|
|
113
|
+
description: 'The ID of the business owner (People ID)',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Security Owner ID',
|
|
117
|
+
name: 'securityOwnerId',
|
|
118
|
+
type: 'string',
|
|
119
|
+
displayOptions: {
|
|
120
|
+
show: {
|
|
121
|
+
resource: ['vendor'],
|
|
122
|
+
operation: ['update'],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
default: '',
|
|
126
|
+
description: 'The ID of the security owner (People ID)',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Show on Trust Center',
|
|
130
|
+
name: 'showOnTrustCenter',
|
|
131
|
+
type: 'boolean',
|
|
132
|
+
displayOptions: {
|
|
133
|
+
show: {
|
|
134
|
+
resource: ['vendor'],
|
|
135
|
+
operation: ['update'],
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
default: false,
|
|
139
|
+
description: 'Whether to show the vendor on the trust center',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
displayName: 'Additional Fields',
|
|
143
|
+
name: 'additionalFields',
|
|
144
|
+
type: 'collection',
|
|
145
|
+
placeholder: 'Add Field',
|
|
146
|
+
default: {},
|
|
147
|
+
displayOptions: {
|
|
148
|
+
show: {
|
|
149
|
+
resource: ['vendor'],
|
|
150
|
+
operation: ['update'],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
options: [
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Business Associate Agreement URL',
|
|
156
|
+
name: 'businessAssociateAgreementUrl',
|
|
157
|
+
type: 'string',
|
|
158
|
+
default: '',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Certifications',
|
|
162
|
+
name: 'certifications',
|
|
163
|
+
type: 'string',
|
|
164
|
+
default: '',
|
|
165
|
+
description: 'Comma-separated list of certifications',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Countries',
|
|
169
|
+
name: 'countries',
|
|
170
|
+
type: 'string',
|
|
171
|
+
default: '',
|
|
172
|
+
description: 'Comma-separated list of country codes',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Data Processing Agreement URL',
|
|
176
|
+
name: 'dataProcessingAgreementUrl',
|
|
177
|
+
type: 'string',
|
|
178
|
+
default: '',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Privacy Policy URL',
|
|
182
|
+
name: 'privacyPolicyUrl',
|
|
183
|
+
type: 'string',
|
|
184
|
+
default: '',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
displayName: 'Security Page URL',
|
|
188
|
+
name: 'securityPageUrl',
|
|
189
|
+
type: 'string',
|
|
190
|
+
default: '',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Service Level Agreement URL',
|
|
194
|
+
name: 'serviceLevelAgreementUrl',
|
|
195
|
+
type: 'string',
|
|
196
|
+
default: '',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: 'Status Page URL',
|
|
200
|
+
name: 'statusPageUrl',
|
|
201
|
+
type: 'string',
|
|
202
|
+
default: '',
|
|
203
|
+
description: 'The status page URL of the vendor',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Subprocessors List URL',
|
|
207
|
+
name: 'subprocessorsListUrl',
|
|
208
|
+
type: 'string',
|
|
209
|
+
default: '',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
displayName: 'Terms of Service URL',
|
|
213
|
+
name: 'termsOfServiceUrl',
|
|
214
|
+
type: 'string',
|
|
215
|
+
default: '',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Trust Page URL',
|
|
219
|
+
name: 'trustPageUrl',
|
|
220
|
+
type: 'string',
|
|
221
|
+
default: '',
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
async function execute(itemIndex) {
|
|
227
|
+
const vendorId = this.getNodeParameter('vendorId', itemIndex);
|
|
228
|
+
const name = this.getNodeParameter('name', itemIndex, '');
|
|
229
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
230
|
+
const category = this.getNodeParameter('category', itemIndex, '');
|
|
231
|
+
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '');
|
|
232
|
+
const legalName = this.getNodeParameter('legalName', itemIndex, '');
|
|
233
|
+
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '');
|
|
234
|
+
const businessOwnerId = this.getNodeParameter('businessOwnerId', itemIndex, '');
|
|
235
|
+
const securityOwnerId = this.getNodeParameter('securityOwnerId', itemIndex, '');
|
|
236
|
+
const showOnTrustCenter = this.getNodeParameter('showOnTrustCenter', itemIndex);
|
|
237
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
238
|
+
const query = `
|
|
239
|
+
mutation UpdateVendor($input: UpdateVendorInput!) {
|
|
240
|
+
updateVendor(input: $input) {
|
|
241
|
+
vendor {
|
|
242
|
+
id
|
|
243
|
+
name
|
|
244
|
+
description
|
|
245
|
+
category
|
|
246
|
+
websiteUrl
|
|
247
|
+
legalName
|
|
248
|
+
headquarterAddress
|
|
249
|
+
statusPageUrl
|
|
250
|
+
termsOfServiceUrl
|
|
251
|
+
privacyPolicyUrl
|
|
252
|
+
serviceLevelAgreementUrl
|
|
253
|
+
dataProcessingAgreementUrl
|
|
254
|
+
businessAssociateAgreementUrl
|
|
255
|
+
subprocessorsListUrl
|
|
256
|
+
securityPageUrl
|
|
257
|
+
trustPageUrl
|
|
258
|
+
certifications
|
|
259
|
+
countries
|
|
260
|
+
showOnTrustCenter
|
|
261
|
+
createdAt
|
|
262
|
+
updatedAt
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
`;
|
|
267
|
+
const input = { id: vendorId };
|
|
268
|
+
if (name)
|
|
269
|
+
input.name = name;
|
|
270
|
+
if (description !== undefined)
|
|
271
|
+
input.description = description === '' ? null : description;
|
|
272
|
+
if (category)
|
|
273
|
+
input.category = category;
|
|
274
|
+
if (websiteUrl !== undefined)
|
|
275
|
+
input.websiteUrl = websiteUrl === '' ? null : websiteUrl;
|
|
276
|
+
if (legalName !== undefined)
|
|
277
|
+
input.legalName = legalName === '' ? null : legalName;
|
|
278
|
+
if (headquarterAddress !== undefined)
|
|
279
|
+
input.headquarterAddress = headquarterAddress === '' ? null : headquarterAddress;
|
|
280
|
+
if (businessOwnerId !== undefined)
|
|
281
|
+
input.businessOwnerId = businessOwnerId === '' ? null : businessOwnerId;
|
|
282
|
+
if (securityOwnerId !== undefined)
|
|
283
|
+
input.securityOwnerId = securityOwnerId === '' ? null : securityOwnerId;
|
|
284
|
+
if (showOnTrustCenter !== undefined)
|
|
285
|
+
input.showOnTrustCenter = showOnTrustCenter;
|
|
286
|
+
if (additionalFields.statusPageUrl !== undefined)
|
|
287
|
+
input.statusPageUrl = additionalFields.statusPageUrl === '' ? null : additionalFields.statusPageUrl;
|
|
288
|
+
if (additionalFields.termsOfServiceUrl !== undefined)
|
|
289
|
+
input.termsOfServiceUrl = additionalFields.termsOfServiceUrl === '' ? null : additionalFields.termsOfServiceUrl;
|
|
290
|
+
if (additionalFields.privacyPolicyUrl !== undefined)
|
|
291
|
+
input.privacyPolicyUrl = additionalFields.privacyPolicyUrl === '' ? null : additionalFields.privacyPolicyUrl;
|
|
292
|
+
if (additionalFields.serviceLevelAgreementUrl !== undefined)
|
|
293
|
+
input.serviceLevelAgreementUrl = additionalFields.serviceLevelAgreementUrl === '' ? null : additionalFields.serviceLevelAgreementUrl;
|
|
294
|
+
if (additionalFields.dataProcessingAgreementUrl !== undefined)
|
|
295
|
+
input.dataProcessingAgreementUrl = additionalFields.dataProcessingAgreementUrl === '' ? null : additionalFields.dataProcessingAgreementUrl;
|
|
296
|
+
if (additionalFields.businessAssociateAgreementUrl !== undefined)
|
|
297
|
+
input.businessAssociateAgreementUrl = additionalFields.businessAssociateAgreementUrl === '' ? null : additionalFields.businessAssociateAgreementUrl;
|
|
298
|
+
if (additionalFields.subprocessorsListUrl !== undefined)
|
|
299
|
+
input.subprocessorsListUrl = additionalFields.subprocessorsListUrl === '' ? null : additionalFields.subprocessorsListUrl;
|
|
300
|
+
if (additionalFields.securityPageUrl !== undefined)
|
|
301
|
+
input.securityPageUrl = additionalFields.securityPageUrl === '' ? null : additionalFields.securityPageUrl;
|
|
302
|
+
if (additionalFields.trustPageUrl !== undefined)
|
|
303
|
+
input.trustPageUrl = additionalFields.trustPageUrl === '' ? null : additionalFields.trustPageUrl;
|
|
304
|
+
if (additionalFields.certifications !== undefined) {
|
|
305
|
+
if (additionalFields.certifications === '') {
|
|
306
|
+
input.certifications = [];
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
input.certifications = additionalFields.certifications.split(',').map((c) => c.trim()).filter(Boolean);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (additionalFields.countries !== undefined) {
|
|
313
|
+
if (additionalFields.countries === '') {
|
|
314
|
+
input.countries = [];
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
input.countries = additionalFields.countries.split(',').map((c) => c.trim()).filter(Boolean);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
321
|
+
return {
|
|
322
|
+
json: responseData,
|
|
323
|
+
pairedItem: { item: itemIndex },
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/vendor/update.operation.ts"],"names":[],"mappings":";;;AAgOA,0BAkGC;AAjUD,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;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,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