@probo/n8n-nodes-probo 0.203.0 → 0.205.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 -5
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/audit/create.operation.js +1 -1
- package/dist/nodes/Probo/actions/audit/deleteReport.operation.js +1 -1
- package/dist/nodes/Probo/actions/audit/get.operation.js +1 -1
- package/dist/nodes/Probo/actions/audit/getAll.operation.js +1 -1
- package/dist/nodes/Probo/actions/audit/update.operation.js +1 -1
- package/dist/nodes/Probo/actions/audit/uploadReport.operation.js +1 -1
- package/dist/nodes/Probo/actions/compliancePortal/createCommitment.operation.js +136 -0
- package/dist/nodes/Probo/actions/compliancePortal/createCommitment.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/createCommitmentGroup.operation.js +81 -0
- package/dist/nodes/Probo/actions/compliancePortal/createCommitmentGroup.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{trustCenter/createExternalUrl.operation.js → compliancePortal/createCustomLink.operation.js} +17 -17
- package/dist/nodes/Probo/actions/compliancePortal/createCustomLink.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{trustCenter → compliancePortal}/createReference.operation.js +12 -12
- package/dist/nodes/Probo/actions/compliancePortal/createReference.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{trustCenter/deleteFile.operation.js → compliancePortal/deleteCommitment.operation.js} +10 -10
- package/dist/nodes/Probo/actions/compliancePortal/deleteCommitment.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{trustCenter/deleteExternalUrl.operation.js → compliancePortal/deleteCommitmentGroup.operation.js} +10 -10
- package/dist/nodes/Probo/actions/compliancePortal/deleteCommitmentGroup.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/deleteCustomLink.operation.js +37 -0
- package/dist/nodes/Probo/actions/compliancePortal/deleteCustomLink.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/deleteFile.operation.js +37 -0
- package/dist/nodes/Probo/actions/compliancePortal/deleteFile.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{trustCenter → compliancePortal}/deleteReference.operation.js +9 -9
- package/dist/nodes/Probo/actions/compliancePortal/deleteReference.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/{trustCenter → compliancePortal}/get.operation.js +3 -3
- package/dist/nodes/Probo/actions/compliancePortal/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllCommitmentGroups.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllCommitmentGroups.operation.js +93 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllCommitmentGroups.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllCommitments.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllCommitments.operation.js +92 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllCommitments.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllFiles.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/{trustCenter → compliancePortal}/getAllFiles.operation.js +9 -9
- package/dist/nodes/Probo/actions/compliancePortal/getAllFiles.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/getAllReferences.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/{trustCenter → compliancePortal}/getAllReferences.operation.js +7 -7
- package/dist/nodes/Probo/actions/compliancePortal/getAllReferences.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/index.d.ts +20 -0
- package/dist/nodes/Probo/actions/compliancePortal/index.js +206 -0
- package/dist/nodes/Probo/actions/compliancePortal/index.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/compliancePortal/update.operation.js +173 -0
- package/dist/nodes/Probo/actions/compliancePortal/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/updateCommitment.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/compliancePortal/updateCommitment.operation.js +154 -0
- package/dist/nodes/Probo/actions/compliancePortal/updateCommitment.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/compliancePortal/updateCommitmentGroup.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/compliancePortal/updateCommitmentGroup.operation.js +96 -0
- package/dist/nodes/Probo/actions/compliancePortal/updateCommitmentGroup.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/document/archive.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/create.operation.js +6 -6
- package/dist/nodes/Probo/actions/document/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/document/get.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/getAll.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/publish.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/unarchive.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/update.operation.js +15 -15
- package/dist/nodes/Probo/actions/document/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -2
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/organization/update.operation.js +0 -69
- package/dist/nodes/Probo/actions/organization/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/thirdParty/create.operation.js +1 -1
- package/dist/nodes/Probo/actions/thirdParty/get.operation.js +1 -1
- package/dist/nodes/Probo/actions/thirdParty/getAll.operation.js +1 -1
- package/dist/nodes/Probo/actions/thirdParty/update.operation.js +7 -7
- package/dist/nodes/Probo/actions/thirdParty/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/webhook/events.js +3 -0
- package/dist/nodes/Probo/actions/webhook/events.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/Probo/actions/trustCenter/createExternalUrl.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/createReference.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/deleteExternalUrl.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/deleteFile.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/deleteReference.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/get.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/getAllFiles.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/getAllReferences.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/index.d.ts +0 -12
- package/dist/nodes/Probo/actions/trustCenter/index.js +0 -134
- package/dist/nodes/Probo/actions/trustCenter/index.js.map +0 -1
- package/dist/nodes/Probo/actions/trustCenter/update.operation.js +0 -90
- package/dist/nodes/Probo/actions/trustCenter/update.operation.js.map +0 -1
- /package/dist/nodes/Probo/actions/{trustCenter/createExternalUrl.operation.d.ts → compliancePortal/createCommitment.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/createReference.operation.d.ts → compliancePortal/createCommitmentGroup.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/deleteExternalUrl.operation.d.ts → compliancePortal/createCustomLink.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/deleteFile.operation.d.ts → compliancePortal/createReference.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/deleteReference.operation.d.ts → compliancePortal/deleteCommitment.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/get.operation.d.ts → compliancePortal/deleteCommitmentGroup.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/getAllFiles.operation.d.ts → compliancePortal/deleteCustomLink.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/getAllReferences.operation.d.ts → compliancePortal/deleteFile.operation.d.ts} +0 -0
- /package/dist/nodes/Probo/actions/{trustCenter/update.operation.d.ts → compliancePortal/deleteReference.operation.d.ts} +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
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.deleteCommitment = exports.updateCommitment = exports.createCommitment = exports.getAllCommitments = exports.deleteCommitmentGroup = exports.updateCommitmentGroup = exports.createCommitmentGroup = exports.getAllCommitmentGroups = exports.deleteCustomLink = exports.createCustomLink = exports.deleteFile = exports.getAllFiles = exports.deleteReference = exports.createReference = exports.getAllReferences = exports.update = exports.get = exports.description = void 0;
|
|
37
|
+
const getOp = __importStar(require("./get.operation"));
|
|
38
|
+
exports.get = getOp;
|
|
39
|
+
const updateOp = __importStar(require("./update.operation"));
|
|
40
|
+
exports.update = updateOp;
|
|
41
|
+
const getAllReferencesOp = __importStar(require("./getAllReferences.operation"));
|
|
42
|
+
exports.getAllReferences = getAllReferencesOp;
|
|
43
|
+
const createReferenceOp = __importStar(require("./createReference.operation"));
|
|
44
|
+
exports.createReference = createReferenceOp;
|
|
45
|
+
const deleteReferenceOp = __importStar(require("./deleteReference.operation"));
|
|
46
|
+
exports.deleteReference = deleteReferenceOp;
|
|
47
|
+
const getAllFilesOp = __importStar(require("./getAllFiles.operation"));
|
|
48
|
+
exports.getAllFiles = getAllFilesOp;
|
|
49
|
+
const deleteFileOp = __importStar(require("./deleteFile.operation"));
|
|
50
|
+
exports.deleteFile = deleteFileOp;
|
|
51
|
+
const createCustomLinkOp = __importStar(require("./createCustomLink.operation"));
|
|
52
|
+
exports.createCustomLink = createCustomLinkOp;
|
|
53
|
+
const deleteCustomLinkOp = __importStar(require("./deleteCustomLink.operation"));
|
|
54
|
+
exports.deleteCustomLink = deleteCustomLinkOp;
|
|
55
|
+
const getAllCommitmentGroupsOp = __importStar(require("./getAllCommitmentGroups.operation"));
|
|
56
|
+
exports.getAllCommitmentGroups = getAllCommitmentGroupsOp;
|
|
57
|
+
const createCommitmentGroupOp = __importStar(require("./createCommitmentGroup.operation"));
|
|
58
|
+
exports.createCommitmentGroup = createCommitmentGroupOp;
|
|
59
|
+
const updateCommitmentGroupOp = __importStar(require("./updateCommitmentGroup.operation"));
|
|
60
|
+
exports.updateCommitmentGroup = updateCommitmentGroupOp;
|
|
61
|
+
const deleteCommitmentGroupOp = __importStar(require("./deleteCommitmentGroup.operation"));
|
|
62
|
+
exports.deleteCommitmentGroup = deleteCommitmentGroupOp;
|
|
63
|
+
const getAllCommitmentsOp = __importStar(require("./getAllCommitments.operation"));
|
|
64
|
+
exports.getAllCommitments = getAllCommitmentsOp;
|
|
65
|
+
const createCommitmentOp = __importStar(require("./createCommitment.operation"));
|
|
66
|
+
exports.createCommitment = createCommitmentOp;
|
|
67
|
+
const updateCommitmentOp = __importStar(require("./updateCommitment.operation"));
|
|
68
|
+
exports.updateCommitment = updateCommitmentOp;
|
|
69
|
+
const deleteCommitmentOp = __importStar(require("./deleteCommitment.operation"));
|
|
70
|
+
exports.deleteCommitment = deleteCommitmentOp;
|
|
71
|
+
exports.description = [
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Operation',
|
|
74
|
+
name: 'operation',
|
|
75
|
+
type: 'options',
|
|
76
|
+
noDataExpression: true,
|
|
77
|
+
displayOptions: {
|
|
78
|
+
show: {
|
|
79
|
+
resource: ['compliancePortal'],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
options: [
|
|
83
|
+
{
|
|
84
|
+
name: 'Create Commitment',
|
|
85
|
+
value: 'createCommitment',
|
|
86
|
+
description: 'Create a new compliance portal commitment',
|
|
87
|
+
action: 'Create a compliance portal commitment',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Create Commitment Group',
|
|
91
|
+
value: 'createCommitmentGroup',
|
|
92
|
+
description: 'Create a new compliance portal commitment group',
|
|
93
|
+
action: 'Create a compliance portal commitment group',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Create Custom Link',
|
|
97
|
+
value: 'createCustomLink',
|
|
98
|
+
description: 'Create a new compliance custom link',
|
|
99
|
+
action: 'Create a compliance custom link',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Create Reference',
|
|
103
|
+
value: 'createReference',
|
|
104
|
+
description: 'Create a new compliance portal reference',
|
|
105
|
+
action: 'Create a compliance portal reference',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Delete Commitment',
|
|
109
|
+
value: 'deleteCommitment',
|
|
110
|
+
description: 'Delete a compliance portal commitment',
|
|
111
|
+
action: 'Delete a compliance portal commitment',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Delete Commitment Group',
|
|
115
|
+
value: 'deleteCommitmentGroup',
|
|
116
|
+
description: 'Delete a compliance portal commitment group',
|
|
117
|
+
action: 'Delete a compliance portal commitment group',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Delete Custom Link',
|
|
121
|
+
value: 'deleteCustomLink',
|
|
122
|
+
description: 'Delete a compliance custom link',
|
|
123
|
+
action: 'Delete a compliance custom link',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Delete File',
|
|
127
|
+
value: 'deleteFile',
|
|
128
|
+
description: 'Delete a compliance portal file',
|
|
129
|
+
action: 'Delete a compliance portal file',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'Delete Reference',
|
|
133
|
+
value: 'deleteReference',
|
|
134
|
+
description: 'Delete a compliance portal reference',
|
|
135
|
+
action: 'Delete a compliance portal reference',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Get',
|
|
139
|
+
value: 'get',
|
|
140
|
+
description: 'Get compliance portal settings',
|
|
141
|
+
action: 'Get compliance portal settings',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'Get Many Commitment Groups',
|
|
145
|
+
value: 'getAllCommitmentGroups',
|
|
146
|
+
description: 'Get many compliance portal commitment groups',
|
|
147
|
+
action: 'Get many compliance portal commitment groups',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'Get Many Commitments',
|
|
151
|
+
value: 'getAllCommitments',
|
|
152
|
+
description: 'Get many compliance portal commitments',
|
|
153
|
+
action: 'Get many compliance portal commitments',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'Get Many Files',
|
|
157
|
+
value: 'getAllFiles',
|
|
158
|
+
description: 'Get many compliance portal files',
|
|
159
|
+
action: 'Get many compliance portal files',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'Get Many References',
|
|
163
|
+
value: 'getAllReferences',
|
|
164
|
+
description: 'Get many compliance portal references',
|
|
165
|
+
action: 'Get many compliance portal references',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'Update',
|
|
169
|
+
value: 'update',
|
|
170
|
+
description: 'Update compliance portal settings',
|
|
171
|
+
action: 'Update compliance portal settings',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'Update Commitment',
|
|
175
|
+
value: 'updateCommitment',
|
|
176
|
+
description: 'Update a compliance portal commitment',
|
|
177
|
+
action: 'Update a compliance portal commitment',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'Update Commitment Group',
|
|
181
|
+
value: 'updateCommitmentGroup',
|
|
182
|
+
description: 'Update a compliance portal commitment group',
|
|
183
|
+
action: 'Update a compliance portal commitment group',
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
default: 'get',
|
|
187
|
+
},
|
|
188
|
+
...getOp.description,
|
|
189
|
+
...updateOp.description,
|
|
190
|
+
...getAllReferencesOp.description,
|
|
191
|
+
...createReferenceOp.description,
|
|
192
|
+
...deleteReferenceOp.description,
|
|
193
|
+
...getAllFilesOp.description,
|
|
194
|
+
...deleteFileOp.description,
|
|
195
|
+
...createCustomLinkOp.description,
|
|
196
|
+
...deleteCustomLinkOp.description,
|
|
197
|
+
...getAllCommitmentGroupsOp.description,
|
|
198
|
+
...createCommitmentGroupOp.description,
|
|
199
|
+
...updateCommitmentGroupOp.description,
|
|
200
|
+
...deleteCommitmentGroupOp.description,
|
|
201
|
+
...getAllCommitmentsOp.description,
|
|
202
|
+
...createCommitmentOp.description,
|
|
203
|
+
...updateCommitmentOp.description,
|
|
204
|
+
...deleteCommitmentOp.description,
|
|
205
|
+
];
|
|
206
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/compliancePortal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,uDAAyC;AA2J/B,oBAAG;AA1Jb,6DAA+C;AA2JlC,0BAAM;AA1JnB,iFAAmE;AA2J5C,8CAAgB;AA1JvC,+EAAiE;AA2J3C,4CAAe;AA1JrC,+EAAiE;AA2J3C,4CAAe;AA1JrC,uEAAyD;AA2JvC,oCAAW;AA1J7B,qEAAuD;AA2JtC,kCAAU;AA1J3B,iFAAmE;AA2J5C,8CAAgB;AA1JvC,iFAAmE;AA2J5C,8CAAgB;AA1JvC,6FAA+E;AA2JlD,0DAAsB;AA1JnD,2FAA6E;AA2JjD,wDAAqB;AA1JjD,2FAA6E;AA2JjD,wDAAqB;AA1JjD,2FAA6E;AA2JjD,wDAAqB;AA1JjD,mFAAqE;AA2J7C,gDAAiB;AA1JzC,iFAAmE;AA2J5C,8CAAgB;AA1JvC,iFAAmE;AA2J5C,8CAAgB;AA1JvC,iFAAmE;AA2J5C,8CAAgB;AAzJ1B,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,kBAAkB,CAAC;aAC9B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,2CAA2C;gBACxD,MAAM,EAAE,uCAAuC;aAC/C;YACD;gBACC,IAAI,EAAE,yBA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GAAG,kBAAkB,CAAC,WAAW;CACjC,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
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: 'Compliance Portal ID',
|
|
9
|
+
name: 'compliancePortalId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['compliancePortal'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the compliance portal to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Active',
|
|
23
|
+
name: 'active',
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['compliancePortal'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: false,
|
|
32
|
+
description: 'Whether the compliance portal is active',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Search Engine Indexing',
|
|
36
|
+
name: 'searchEngineIndexing',
|
|
37
|
+
type: 'options',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['compliancePortal'],
|
|
41
|
+
operation: ['update'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
options: [
|
|
45
|
+
{
|
|
46
|
+
name: '(Unchanged)',
|
|
47
|
+
value: '',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Indexable',
|
|
51
|
+
value: 'INDEXABLE',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Not Indexable',
|
|
55
|
+
value: 'NOT_INDEXABLE',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
default: '',
|
|
59
|
+
description: 'Whether search engines should index the compliance portal',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Title',
|
|
63
|
+
name: 'title',
|
|
64
|
+
type: 'string',
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['compliancePortal'],
|
|
68
|
+
operation: ['update'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'The title shown on the public compliance page',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Description',
|
|
76
|
+
name: 'description',
|
|
77
|
+
type: 'string',
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
resource: ['compliancePortal'],
|
|
81
|
+
operation: ['update'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
default: '',
|
|
85
|
+
description: 'The description shown on the compliance page',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Website URL',
|
|
89
|
+
name: 'websiteUrl',
|
|
90
|
+
type: 'string',
|
|
91
|
+
displayOptions: {
|
|
92
|
+
show: {
|
|
93
|
+
resource: ['compliancePortal'],
|
|
94
|
+
operation: ['update'],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
default: '',
|
|
98
|
+
description: 'The website URL shown on the compliance page',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Email',
|
|
102
|
+
name: 'email',
|
|
103
|
+
type: 'string',
|
|
104
|
+
placeholder: 'name@example.com',
|
|
105
|
+
displayOptions: {
|
|
106
|
+
show: {
|
|
107
|
+
resource: ['compliancePortal'],
|
|
108
|
+
operation: ['update'],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
default: '',
|
|
112
|
+
description: 'The contact email shown on the compliance page',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Headquarter Address',
|
|
116
|
+
name: 'headquarterAddress',
|
|
117
|
+
type: 'string',
|
|
118
|
+
displayOptions: {
|
|
119
|
+
show: {
|
|
120
|
+
resource: ['compliancePortal'],
|
|
121
|
+
operation: ['update'],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
default: '',
|
|
125
|
+
description: 'The headquarter address shown on the compliance page',
|
|
126
|
+
},
|
|
127
|
+
];
|
|
128
|
+
async function execute(itemIndex) {
|
|
129
|
+
const compliancePortalId = this.getNodeParameter('compliancePortalId', itemIndex);
|
|
130
|
+
const active = this.getNodeParameter('active', itemIndex);
|
|
131
|
+
const searchEngineIndexing = this.getNodeParameter('searchEngineIndexing', itemIndex, '');
|
|
132
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
133
|
+
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '');
|
|
134
|
+
const email = this.getNodeParameter('email', itemIndex, '');
|
|
135
|
+
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '');
|
|
136
|
+
const title = this.getNodeParameter('title', itemIndex, '');
|
|
137
|
+
const query = `
|
|
138
|
+
mutation UpdateCompliancePortal($input: UpdateCompliancePortalInput!) {
|
|
139
|
+
updateCompliancePortal(input: $input) {
|
|
140
|
+
compliancePortal {
|
|
141
|
+
id
|
|
142
|
+
active
|
|
143
|
+
searchEngineIndexing
|
|
144
|
+
title
|
|
145
|
+
description
|
|
146
|
+
websiteUrl
|
|
147
|
+
email
|
|
148
|
+
headquarterAddress
|
|
149
|
+
createdAt
|
|
150
|
+
updatedAt
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
const input = {
|
|
156
|
+
compliancePortalId,
|
|
157
|
+
title,
|
|
158
|
+
description,
|
|
159
|
+
websiteUrl,
|
|
160
|
+
email,
|
|
161
|
+
headquarterAddress,
|
|
162
|
+
};
|
|
163
|
+
if (active !== undefined)
|
|
164
|
+
input.active = active;
|
|
165
|
+
if (searchEngineIndexing)
|
|
166
|
+
input.searchEngineIndexing = searchEngineIndexing;
|
|
167
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
168
|
+
return {
|
|
169
|
+
json: responseData,
|
|
170
|
+
pairedItem: { item: itemIndex },
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/compliancePortal/update.operation.ts"],"names":[],"mappings":";;;AAkJA,0BAiDC;AA9KD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,kBAAkB,CAAC;gBAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2CAA2C;QACxD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,kBAAkB,CAAC;gBAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,yCAAyC;KACtD;IACD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,kBAAkB,CAAC;gBAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,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ACL,kBAAkB;KAClB,CAAC;IACF,IAAI,MAAM,KAAK,SAAS;QAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAChD,IAAI,oBAAoB;QAAE,KAAK,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IAE5E,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,154 @@
|
|
|
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
|
+
const commitmentIconOptions = [
|
|
7
|
+
{ name: '(Unchanged)', value: '' },
|
|
8
|
+
{ name: 'Lock Key', value: 'LOCK_KEY' },
|
|
9
|
+
{ name: 'Eye Slash', value: 'EYE_SLASH' },
|
|
10
|
+
{ name: 'Fingerprint', value: 'FINGERPRINT' },
|
|
11
|
+
{ name: 'Shield Warning', value: 'SHIELD_WARNING' },
|
|
12
|
+
{ name: 'Shield Check', value: 'SHIELD_CHECK' },
|
|
13
|
+
{ name: 'Siren', value: 'SIREN' },
|
|
14
|
+
{ name: 'Key', value: 'KEY' },
|
|
15
|
+
{ name: 'Lock', value: 'LOCK' },
|
|
16
|
+
{ name: 'Cloud', value: 'CLOUD' },
|
|
17
|
+
{ name: 'Database', value: 'DATABASE' },
|
|
18
|
+
{ name: 'Globe', value: 'GLOBE' },
|
|
19
|
+
{ name: 'Eye', value: 'EYE' },
|
|
20
|
+
{ name: 'Users', value: 'USERS' },
|
|
21
|
+
{ name: 'Certificate', value: 'CERTIFICATE' },
|
|
22
|
+
{ name: 'Gavel', value: 'GAVEL' },
|
|
23
|
+
{ name: 'Heartbeat', value: 'HEARTBEAT' },
|
|
24
|
+
{ name: 'Bell', value: 'BELL' },
|
|
25
|
+
{ name: 'Bug', value: 'BUG' },
|
|
26
|
+
{ name: 'Code', value: 'CODE' },
|
|
27
|
+
{ name: 'Server', value: 'SERVER' },
|
|
28
|
+
];
|
|
29
|
+
exports.description = [
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Commitment ID',
|
|
32
|
+
name: 'commitmentId',
|
|
33
|
+
type: 'string',
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
resource: ['trustCenter'],
|
|
37
|
+
operation: ['updateCommitment'],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
default: '',
|
|
41
|
+
description: 'The ID of the commitment to update',
|
|
42
|
+
required: true,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Icon',
|
|
46
|
+
name: 'icon',
|
|
47
|
+
type: 'options',
|
|
48
|
+
displayOptions: {
|
|
49
|
+
show: {
|
|
50
|
+
resource: ['trustCenter'],
|
|
51
|
+
operation: ['updateCommitment'],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
options: commitmentIconOptions,
|
|
55
|
+
default: '',
|
|
56
|
+
description: 'The icon of the commitment',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Eyebrow',
|
|
60
|
+
name: 'eyebrow',
|
|
61
|
+
type: 'string',
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
resource: ['trustCenter'],
|
|
65
|
+
operation: ['updateCommitment'],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
default: '',
|
|
69
|
+
description: 'The eyebrow text of the commitment',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Title',
|
|
73
|
+
name: 'title',
|
|
74
|
+
type: 'string',
|
|
75
|
+
displayOptions: {
|
|
76
|
+
show: {
|
|
77
|
+
resource: ['trustCenter'],
|
|
78
|
+
operation: ['updateCommitment'],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
default: '',
|
|
82
|
+
description: 'The title of the commitment',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: 'Description',
|
|
86
|
+
name: 'description',
|
|
87
|
+
type: 'string',
|
|
88
|
+
typeOptions: {
|
|
89
|
+
rows: 4,
|
|
90
|
+
},
|
|
91
|
+
displayOptions: {
|
|
92
|
+
show: {
|
|
93
|
+
resource: ['trustCenter'],
|
|
94
|
+
operation: ['updateCommitment'],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
default: '',
|
|
98
|
+
description: 'The description of the commitment',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Rank',
|
|
102
|
+
name: 'rank',
|
|
103
|
+
type: 'string',
|
|
104
|
+
displayOptions: {
|
|
105
|
+
show: {
|
|
106
|
+
resource: ['trustCenter'],
|
|
107
|
+
operation: ['updateCommitment'],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
default: '',
|
|
111
|
+
description: 'The rank of the commitment for ordering',
|
|
112
|
+
},
|
|
113
|
+
];
|
|
114
|
+
async function execute(itemIndex) {
|
|
115
|
+
const commitmentId = this.getNodeParameter('commitmentId', itemIndex);
|
|
116
|
+
const icon = this.getNodeParameter('icon', itemIndex, '');
|
|
117
|
+
const eyebrow = this.getNodeParameter('eyebrow', itemIndex, '');
|
|
118
|
+
const title = this.getNodeParameter('title', itemIndex, '');
|
|
119
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
120
|
+
const rank = this.getNodeParameter('rank', itemIndex, '');
|
|
121
|
+
const query = `
|
|
122
|
+
mutation UpdateCompliancePortalCommitment($input: UpdateCompliancePortalCommitmentInput!) {
|
|
123
|
+
updateCompliancePortalCommitment(input: $input) {
|
|
124
|
+
compliancePortalCommitment {
|
|
125
|
+
id
|
|
126
|
+
icon
|
|
127
|
+
eyebrow
|
|
128
|
+
title
|
|
129
|
+
description
|
|
130
|
+
rank
|
|
131
|
+
createdAt
|
|
132
|
+
updatedAt
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
const input = { id: commitmentId };
|
|
138
|
+
if (icon)
|
|
139
|
+
input.icon = icon;
|
|
140
|
+
if (eyebrow)
|
|
141
|
+
input.eyebrow = eyebrow;
|
|
142
|
+
if (title)
|
|
143
|
+
input.title = title;
|
|
144
|
+
if (description)
|
|
145
|
+
input.description = description;
|
|
146
|
+
if (rank)
|
|
147
|
+
input.rank = Number(rank);
|
|
148
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
149
|
+
return {
|
|
150
|
+
json: responseData,
|
|
151
|
+
pairedItem: { item: itemIndex },
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=updateCommitment.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateCommitment.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/compliancePortal/updateCommitment.operation.ts"],"names":[],"mappings":";;;AAqIA,0BAyCC;AAzJD,6DAAyD;AAEzD,MAAM,qBAAqB,GAAG;IAC7B,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE;IAClC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;IACvC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;IACzC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC7C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACnD,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACjC,EAAE,IAAI,EAAE,KAAK,EAAE,KAA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AAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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: 'Commitment Group ID',
|
|
9
|
+
name: 'commitmentGroupId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['trustCenter'],
|
|
14
|
+
operation: ['updateCommitmentGroup'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the commitment group to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Title',
|
|
23
|
+
name: 'title',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['trustCenter'],
|
|
28
|
+
operation: ['updateCommitmentGroup'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The title of the commitment group',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Description',
|
|
36
|
+
name: 'description',
|
|
37
|
+
type: 'string',
|
|
38
|
+
typeOptions: {
|
|
39
|
+
rows: 4,
|
|
40
|
+
},
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: {
|
|
43
|
+
resource: ['trustCenter'],
|
|
44
|
+
operation: ['updateCommitmentGroup'],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
default: '',
|
|
48
|
+
description: 'The description of the commitment group',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Rank',
|
|
52
|
+
name: 'rank',
|
|
53
|
+
type: 'string',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['trustCenter'],
|
|
57
|
+
operation: ['updateCommitmentGroup'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
default: '',
|
|
61
|
+
description: 'The rank of the commitment group for ordering',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
async function execute(itemIndex) {
|
|
65
|
+
const commitmentGroupId = this.getNodeParameter('commitmentGroupId', itemIndex);
|
|
66
|
+
const title = this.getNodeParameter('title', itemIndex, '');
|
|
67
|
+
const description = this.getNodeParameter('description', itemIndex, '');
|
|
68
|
+
const rank = this.getNodeParameter('rank', itemIndex, '');
|
|
69
|
+
const query = `
|
|
70
|
+
mutation UpdateCompliancePortalCommitmentGroup($input: UpdateCompliancePortalCommitmentGroupInput!) {
|
|
71
|
+
updateCompliancePortalCommitmentGroup(input: $input) {
|
|
72
|
+
compliancePortalCommitmentGroup {
|
|
73
|
+
id
|
|
74
|
+
title
|
|
75
|
+
description
|
|
76
|
+
rank
|
|
77
|
+
createdAt
|
|
78
|
+
updatedAt
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
const input = { id: commitmentGroupId };
|
|
84
|
+
if (title)
|
|
85
|
+
input.title = title;
|
|
86
|
+
if (description)
|
|
87
|
+
input.description = description;
|
|
88
|
+
if (rank)
|
|
89
|
+
input.rank = Number(rank);
|
|
90
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
91
|
+
return {
|
|
92
|
+
json: responseData,
|
|
93
|
+
pairedItem: { item: itemIndex },
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=updateCommitmentGroup.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateCommitmentGroup.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/compliancePortal/updateCommitmentGroup.operation.ts"],"names":[],"mappings":";;;AAkFA,0BAmCC;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