@probo/n8n-nodes-probo 0.185.0 → 0.186.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/asset/create.operation.js +12 -12
- package/dist/nodes/Probo/actions/asset/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/asset/get.operation.js +6 -6
- package/dist/nodes/Probo/actions/asset/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/asset/getAll.operation.js +6 -6
- package/dist/nodes/Probo/actions/asset/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/asset/update.operation.js +14 -14
- package/dist/nodes/Probo/actions/asset/update.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/datum/create.operation.js +12 -12
- package/dist/nodes/Probo/actions/datum/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/datum/get.operation.js +6 -6
- package/dist/nodes/Probo/actions/datum/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/datum/getAll.operation.js +6 -6
- package/dist/nodes/Probo/actions/datum/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/datum/update.operation.js +14 -14
- package/dist/nodes/Probo/actions/datum/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/{vendor → thirdParty}/create.operation.js +20 -20
- package/dist/nodes/Probo/actions/thirdParty/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/createContact.operation.js +13 -13
- package/dist/nodes/Probo/actions/thirdParty/createContact.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/createRiskAssessment.operation.js +13 -13
- package/dist/nodes/Probo/actions/thirdParty/createRiskAssessment.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/createService.operation.js +13 -13
- package/dist/nodes/Probo/actions/thirdParty/createService.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/delete.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteBusinessAssociateAgreement.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/deleteBusinessAssociateAgreement.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteComplianceReport.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/deleteComplianceReport.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteContact.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/deleteContact.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteDataPrivacyAgreement.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/deleteDataPrivacyAgreement.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteService.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/deleteService.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/get.operation.js +10 -10
- package/dist/nodes/Probo/actions/thirdParty/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAll.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllComplianceReports.operation.js +12 -12
- package/dist/nodes/Probo/actions/thirdParty/getAllComplianceReports.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllContacts.operation.js +19 -19
- package/dist/nodes/Probo/actions/thirdParty/getAllContacts.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllRiskAssessments.operation.js +19 -19
- package/dist/nodes/Probo/actions/thirdParty/getAllRiskAssessments.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllServices.operation.js +19 -19
- package/dist/nodes/Probo/actions/thirdParty/getAllServices.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getBusinessAssociateAgreement.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/getBusinessAssociateAgreement.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getContact.operation.js +16 -16
- package/dist/nodes/Probo/actions/thirdParty/getContact.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getDataPrivacyAgreement.operation.js +9 -9
- package/dist/nodes/Probo/actions/thirdParty/getDataPrivacyAgreement.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getRiskAssessment.operation.js +16 -16
- package/dist/nodes/Probo/actions/thirdParty/getRiskAssessment.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/getService.operation.js +16 -16
- package/dist/nodes/Probo/actions/thirdParty/getService.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/index.js +55 -55
- package/dist/nodes/Probo/actions/thirdParty/index.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/publish.operation.js +6 -6
- package/dist/nodes/Probo/actions/thirdParty/publish.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/update.operation.js +27 -27
- package/dist/nodes/Probo/actions/thirdParty/update.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateBusinessAssociateAgreement.operation.js +11 -11
- package/dist/nodes/Probo/actions/thirdParty/updateBusinessAssociateAgreement.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateContact.operation.js +10 -10
- package/dist/nodes/Probo/actions/thirdParty/updateContact.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateDataPrivacyAgreement.operation.js +11 -11
- package/dist/nodes/Probo/actions/thirdParty/updateDataPrivacyAgreement.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateService.operation.js +13 -13
- package/dist/nodes/Probo/actions/thirdParty/updateService.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/create.operation.js +3 -3
- package/dist/nodes/Probo/actions/webhook/create.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/webhook/update.operation.js +3 -3
- package/dist/nodes/Probo/actions/webhook/update.operation.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/vendor/create.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/createContact.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/createRiskAssessment.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/createService.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/delete.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/deleteBusinessAssociateAgreement.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/deleteComplianceReport.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/deleteContact.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/deleteDataPrivacyAgreement.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/deleteService.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/get.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getAll.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getAllComplianceReports.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getAllContacts.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getAllRiskAssessments.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getAllServices.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getBusinessAssociateAgreement.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getContact.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getDataPrivacyAgreement.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getRiskAssessment.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/getService.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/index.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/publish.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/update.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/updateBusinessAssociateAgreement.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/updateContact.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/updateDataPrivacyAgreement.operation.js.map +0 -1
- package/dist/nodes/Probo/actions/vendor/updateService.operation.js.map +0 -1
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/create.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/createContact.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/createRiskAssessment.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/createService.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/delete.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteBusinessAssociateAgreement.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteComplianceReport.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteContact.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteDataPrivacyAgreement.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteService.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/get.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAll.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllComplianceReports.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllContacts.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllRiskAssessments.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getAllServices.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getBusinessAssociateAgreement.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getContact.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getDataPrivacyAgreement.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getRiskAssessment.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/getService.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/index.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/publish.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/update.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateBusinessAssociateAgreement.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateContact.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateDataPrivacyAgreement.operation.d.ts +0 -0
- /package/dist/nodes/Probo/actions/{vendor → thirdParty}/updateService.operation.d.ts +0 -0
|
@@ -5,30 +5,30 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty Contact ID',
|
|
9
|
+
name: 'thirdPartyContactId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['deleteContact'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty contact to delete',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
22
|
async function execute(itemIndex) {
|
|
23
|
-
const
|
|
23
|
+
const thirdPartyContactId = this.getNodeParameter('thirdPartyContactId', itemIndex);
|
|
24
24
|
const query = `
|
|
25
|
-
mutation
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
mutation DeleteThirdPartyContact($input: DeleteThirdPartyContactInput!) {
|
|
26
|
+
deleteThirdPartyContact(input: $input) {
|
|
27
|
+
deletedThirdPartyContactId
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
`;
|
|
31
|
-
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: {
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { thirdPartyContactId } });
|
|
32
32
|
return {
|
|
33
33
|
json: responseData,
|
|
34
34
|
pairedItem: { item: itemIndex },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteContact.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/deleteContact.operation.ts"],"names":[],"mappings":";;;AAkCA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,SAAS,CAAW,CAAC;IAE9F,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAEjG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
package/dist/nodes/Probo/actions/{vendor → thirdParty}/deleteDataPrivacyAgreement.operation.js
RENAMED
|
@@ -5,30 +5,30 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty ID',
|
|
9
|
+
name: 'thirdPartyId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['deleteDataPrivacyAgreement'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
22
|
async function execute(itemIndex) {
|
|
23
|
-
const
|
|
23
|
+
const thirdPartyId = this.getNodeParameter('thirdPartyId', itemIndex);
|
|
24
24
|
const query = `
|
|
25
|
-
mutation
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
mutation DeleteThirdPartyDataPrivacyAgreement($input: DeleteThirdPartyDataPrivacyAgreementInput!) {
|
|
26
|
+
deleteThirdPartyDataPrivacyAgreement(input: $input) {
|
|
27
|
+
deletedThirdPartyDataPrivacyAgreementId
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
`;
|
|
31
|
-
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: {
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { thirdPartyId } });
|
|
32
32
|
return {
|
|
33
33
|
json: responseData,
|
|
34
34
|
pairedItem: { item: itemIndex },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteDataPrivacyAgreement.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/deleteDataPrivacyAgreement.operation.ts"],"names":[],"mappings":";;;AAkCA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,4BAA4B,CAAC;aACzC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,SAAS,CAAW,CAAC;IAEhF,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -5,30 +5,30 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty Service ID',
|
|
9
|
+
name: 'thirdPartyServiceId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['deleteService'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty service to delete',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
22
|
async function execute(itemIndex) {
|
|
23
|
-
const
|
|
23
|
+
const thirdPartyServiceId = this.getNodeParameter('thirdPartyServiceId', itemIndex);
|
|
24
24
|
const query = `
|
|
25
|
-
mutation
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
mutation DeleteThirdPartyService($input: DeleteThirdPartyServiceInput!) {
|
|
26
|
+
deleteThirdPartyService(input: $input) {
|
|
27
|
+
deletedThirdPartyServiceId
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
`;
|
|
31
|
-
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: {
|
|
31
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { thirdPartyServiceId } });
|
|
32
32
|
return {
|
|
33
33
|
json: responseData,
|
|
34
34
|
pairedItem: { item: itemIndex },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteService.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/deleteService.operation.ts"],"names":[],"mappings":";;;AAkCA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,SAAS,CAAW,CAAC;IAE9F,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAEjG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -5,17 +5,17 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty ID',
|
|
9
|
+
name: 'thirdPartyId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['get'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -26,7 +26,7 @@ exports.description = [
|
|
|
26
26
|
default: {},
|
|
27
27
|
displayOptions: {
|
|
28
28
|
show: {
|
|
29
|
-
resource: ['
|
|
29
|
+
resource: ['thirdParty'],
|
|
30
30
|
operation: ['get'],
|
|
31
31
|
},
|
|
32
32
|
},
|
|
@@ -56,7 +56,7 @@ exports.description = [
|
|
|
56
56
|
},
|
|
57
57
|
];
|
|
58
58
|
async function execute(itemIndex) {
|
|
59
|
-
const
|
|
59
|
+
const thirdPartyId = this.getNodeParameter('thirdPartyId', itemIndex);
|
|
60
60
|
const options = this.getNodeParameter('options', itemIndex, {});
|
|
61
61
|
const organizationFragment = options.includeOrganization
|
|
62
62
|
? `organization {
|
|
@@ -79,9 +79,9 @@ async function execute(itemIndex) {
|
|
|
79
79
|
}`
|
|
80
80
|
: '';
|
|
81
81
|
const query = `
|
|
82
|
-
query
|
|
83
|
-
node(id: $
|
|
84
|
-
... on
|
|
82
|
+
query GetThirdParty($thirdPartyId: ID!) {
|
|
83
|
+
node(id: $thirdPartyId) {
|
|
84
|
+
... on ThirdParty {
|
|
85
85
|
id
|
|
86
86
|
name
|
|
87
87
|
description
|
|
@@ -111,7 +111,7 @@ async function execute(itemIndex) {
|
|
|
111
111
|
}
|
|
112
112
|
`;
|
|
113
113
|
const variables = {
|
|
114
|
-
|
|
114
|
+
thirdPartyId,
|
|
115
115
|
};
|
|
116
116
|
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
|
|
117
117
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/get.operation.ts"],"names":[],"mappings":";;;AAsEA,0BA6EC;AApID,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;S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G,OAAO,CAAC,oBAAoB;QACzD,CAAC,CAAC;;;;IAIA;QACF,CAAC,CAAC,EAAE,CAAC;IAEN,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;OAuBR,oBAAoB;OACpB,qBAAqB;OACrB,qBAAqB;;;;;;EAM1B,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,YAAY;KACZ,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -10,7 +10,7 @@ exports.description = [
|
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['getAll'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
@@ -24,7 +24,7 @@ exports.description = [
|
|
|
24
24
|
type: 'boolean',
|
|
25
25
|
displayOptions: {
|
|
26
26
|
show: {
|
|
27
|
-
resource: ['
|
|
27
|
+
resource: ['thirdParty'],
|
|
28
28
|
operation: ['getAll'],
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -37,7 +37,7 @@ exports.description = [
|
|
|
37
37
|
type: 'number',
|
|
38
38
|
displayOptions: {
|
|
39
39
|
show: {
|
|
40
|
-
resource: ['
|
|
40
|
+
resource: ['thirdParty'],
|
|
41
41
|
operation: ['getAll'],
|
|
42
42
|
returnAll: [false],
|
|
43
43
|
},
|
|
@@ -56,7 +56,7 @@ exports.description = [
|
|
|
56
56
|
default: {},
|
|
57
57
|
displayOptions: {
|
|
58
58
|
show: {
|
|
59
|
-
resource: ['
|
|
59
|
+
resource: ['thirdParty'],
|
|
60
60
|
operation: ['getAll'],
|
|
61
61
|
},
|
|
62
62
|
},
|
|
@@ -111,10 +111,10 @@ async function execute(itemIndex) {
|
|
|
111
111
|
}`
|
|
112
112
|
: '';
|
|
113
113
|
const query = `
|
|
114
|
-
query
|
|
114
|
+
query GetThirdParties($organizationId: ID!, $first: Int, $after: CursorKey) {
|
|
115
115
|
node(id: $organizationId) {
|
|
116
116
|
... on Organization {
|
|
117
|
-
|
|
117
|
+
thirdParties(first: $first, after: $after) {
|
|
118
118
|
edges {
|
|
119
119
|
node {
|
|
120
120
|
id
|
|
@@ -152,13 +152,13 @@ async function execute(itemIndex) {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
`;
|
|
155
|
-
const
|
|
155
|
+
const thirdParties = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { organizationId }, (response) => {
|
|
156
156
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
157
157
|
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
158
|
-
return node === null || node === void 0 ? void 0 : node.
|
|
158
|
+
return node === null || node === void 0 ? void 0 : node.thirdParties;
|
|
159
159
|
}, returnAll, limit);
|
|
160
160
|
return {
|
|
161
|
-
json: {
|
|
161
|
+
json: { thirdParties },
|
|
162
162
|
pairedItem: { item: itemIndex },
|
|
163
163
|
};
|
|
164
164
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/getAll.operation.ts"],"names":[],"mappings":";;;AAoGA,0BAgGC;AArLD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,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J,IAAI,CAAE,YAAuC,CAAC;IACtD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,YAAY,EAAE;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -5,17 +5,17 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty ID',
|
|
9
|
+
name: 'thirdPartyId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['getAllComplianceReports'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -24,7 +24,7 @@ exports.description = [
|
|
|
24
24
|
type: 'boolean',
|
|
25
25
|
displayOptions: {
|
|
26
26
|
show: {
|
|
27
|
-
resource: ['
|
|
27
|
+
resource: ['thirdParty'],
|
|
28
28
|
operation: ['getAllComplianceReports'],
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -37,7 +37,7 @@ exports.description = [
|
|
|
37
37
|
type: 'number',
|
|
38
38
|
displayOptions: {
|
|
39
39
|
show: {
|
|
40
|
-
resource: ['
|
|
40
|
+
resource: ['thirdParty'],
|
|
41
41
|
operation: ['getAllComplianceReports'],
|
|
42
42
|
returnAll: [false],
|
|
43
43
|
},
|
|
@@ -50,13 +50,13 @@ exports.description = [
|
|
|
50
50
|
},
|
|
51
51
|
];
|
|
52
52
|
async function execute(itemIndex) {
|
|
53
|
-
const
|
|
53
|
+
const thirdPartyId = this.getNodeParameter('thirdPartyId', itemIndex);
|
|
54
54
|
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
55
55
|
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
56
56
|
const query = `
|
|
57
|
-
query
|
|
58
|
-
node(id: $
|
|
59
|
-
... on
|
|
57
|
+
query GetThirdPartyComplianceReports($thirdPartyId: ID!, $first: Int, $after: CursorKey) {
|
|
58
|
+
node(id: $thirdPartyId) {
|
|
59
|
+
... on ThirdParty {
|
|
60
60
|
complianceReports(first: $first, after: $after) {
|
|
61
61
|
edges {
|
|
62
62
|
node {
|
|
@@ -77,13 +77,13 @@ async function execute(itemIndex) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
`;
|
|
80
|
-
const
|
|
80
|
+
const thirdPartyComplianceReports = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { thirdPartyId }, (response) => {
|
|
81
81
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
82
82
|
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
83
83
|
return node === null || node === void 0 ? void 0 : node.complianceReports;
|
|
84
84
|
}, returnAll, limit);
|
|
85
85
|
return {
|
|
86
|
-
json: {
|
|
86
|
+
json: { thirdPartyComplianceReports },
|
|
87
87
|
pairedItem: { item: itemIndex },
|
|
88
88
|
};
|
|
89
89
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllComplianceReports.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/getAllComplianceReports.operation.ts"],"names":[],"mappings":";;;AAgEA,0BAkDC;AAnGD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,yBAAyB,CA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R,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,iBAA4C,CAAC;IAC3D,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,2BAA2B,EAAE;QACrC,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -5,17 +5,17 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty ID',
|
|
9
|
+
name: 'thirdPartyId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['getAllContacts'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -24,7 +24,7 @@ exports.description = [
|
|
|
24
24
|
type: 'boolean',
|
|
25
25
|
displayOptions: {
|
|
26
26
|
show: {
|
|
27
|
-
resource: ['
|
|
27
|
+
resource: ['thirdParty'],
|
|
28
28
|
operation: ['getAllContacts'],
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -37,7 +37,7 @@ exports.description = [
|
|
|
37
37
|
type: 'number',
|
|
38
38
|
displayOptions: {
|
|
39
39
|
show: {
|
|
40
|
-
resource: ['
|
|
40
|
+
resource: ['thirdParty'],
|
|
41
41
|
operation: ['getAllContacts'],
|
|
42
42
|
returnAll: [false],
|
|
43
43
|
},
|
|
@@ -56,36 +56,36 @@ exports.description = [
|
|
|
56
56
|
default: {},
|
|
57
57
|
displayOptions: {
|
|
58
58
|
show: {
|
|
59
|
-
resource: ['
|
|
59
|
+
resource: ['thirdParty'],
|
|
60
60
|
operation: ['getAllContacts'],
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
options: [
|
|
64
64
|
{
|
|
65
|
-
displayName: 'Include
|
|
66
|
-
name: '
|
|
65
|
+
displayName: 'Include ThirdParty',
|
|
66
|
+
name: 'includeThirdParty',
|
|
67
67
|
type: 'boolean',
|
|
68
68
|
default: false,
|
|
69
|
-
description: 'Whether to include
|
|
69
|
+
description: 'Whether to include thirdParty in the response',
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
},
|
|
73
73
|
];
|
|
74
74
|
async function execute(itemIndex) {
|
|
75
|
-
const
|
|
75
|
+
const thirdPartyId = this.getNodeParameter('thirdPartyId', itemIndex);
|
|
76
76
|
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
77
77
|
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
78
78
|
const options = this.getNodeParameter('options', itemIndex, {});
|
|
79
|
-
const
|
|
80
|
-
? `
|
|
79
|
+
const thirdPartyFragment = options.includeThirdParty
|
|
80
|
+
? `thirdParty {
|
|
81
81
|
id
|
|
82
82
|
name
|
|
83
83
|
}`
|
|
84
84
|
: '';
|
|
85
85
|
const query = `
|
|
86
|
-
query
|
|
87
|
-
node(id: $
|
|
88
|
-
... on
|
|
86
|
+
query GetThirdPartyContacts($thirdPartyId: ID!, $first: Int, $after: CursorKey) {
|
|
87
|
+
node(id: $thirdPartyId) {
|
|
88
|
+
... on ThirdParty {
|
|
89
89
|
contacts(first: $first, after: $after) {
|
|
90
90
|
edges {
|
|
91
91
|
node {
|
|
@@ -94,7 +94,7 @@ async function execute(itemIndex) {
|
|
|
94
94
|
email
|
|
95
95
|
phone
|
|
96
96
|
role
|
|
97
|
-
${
|
|
97
|
+
${thirdPartyFragment}
|
|
98
98
|
createdAt
|
|
99
99
|
updatedAt
|
|
100
100
|
}
|
|
@@ -108,13 +108,13 @@ async function execute(itemIndex) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
`;
|
|
111
|
-
const
|
|
111
|
+
const thirdPartyContacts = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { thirdPartyId }, (response) => {
|
|
112
112
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
113
113
|
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
114
114
|
return node === null || node === void 0 ? void 0 : node.contacts;
|
|
115
115
|
}, returnAll, limit);
|
|
116
116
|
return {
|
|
117
|
-
json: {
|
|
117
|
+
json: { thirdPartyContacts },
|
|
118
118
|
pairedItem: { item: itemIndex },
|
|
119
119
|
};
|
|
120
120
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllContacts.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/getAllContacts.operation.ts"],"names":[],"mappings":";;;AAsFA,0BA8DC;AArID,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAA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;;;IAGA;QACF,CAAC,CAAC,EAAE,CAAC;IAEN,MAAM,KAAK,GAAG;;;;;;;;;;;;UAYL,kBAAkB;;;;;;;;;;;;;EAa1B,CAAC;IAEF,MAAM,kBAAkB,GAAG,MAAM,0CAAuB,CAAC,IAAI,CAC5D,IAAI,EACJ,KAAK,EACL,EAAE,YAAY,EAAE,EAChB,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,QAAmC,CAAC;IAClD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,kBAAkB,EAAE;QAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -5,17 +5,17 @@ exports.execute = execute;
|
|
|
5
5
|
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
6
|
exports.description = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
9
|
-
name: '
|
|
8
|
+
displayName: 'ThirdParty ID',
|
|
9
|
+
name: 'thirdPartyId',
|
|
10
10
|
type: 'string',
|
|
11
11
|
displayOptions: {
|
|
12
12
|
show: {
|
|
13
|
-
resource: ['
|
|
13
|
+
resource: ['thirdParty'],
|
|
14
14
|
operation: ['getAllRiskAssessments'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
|
-
description: 'The ID of the
|
|
18
|
+
description: 'The ID of the thirdParty',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -24,7 +24,7 @@ exports.description = [
|
|
|
24
24
|
type: 'boolean',
|
|
25
25
|
displayOptions: {
|
|
26
26
|
show: {
|
|
27
|
-
resource: ['
|
|
27
|
+
resource: ['thirdParty'],
|
|
28
28
|
operation: ['getAllRiskAssessments'],
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -37,7 +37,7 @@ exports.description = [
|
|
|
37
37
|
type: 'number',
|
|
38
38
|
displayOptions: {
|
|
39
39
|
show: {
|
|
40
|
-
resource: ['
|
|
40
|
+
resource: ['thirdParty'],
|
|
41
41
|
operation: ['getAllRiskAssessments'],
|
|
42
42
|
returnAll: [false],
|
|
43
43
|
},
|
|
@@ -56,36 +56,36 @@ exports.description = [
|
|
|
56
56
|
default: {},
|
|
57
57
|
displayOptions: {
|
|
58
58
|
show: {
|
|
59
|
-
resource: ['
|
|
59
|
+
resource: ['thirdParty'],
|
|
60
60
|
operation: ['getAllRiskAssessments'],
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
options: [
|
|
64
64
|
{
|
|
65
|
-
displayName: 'Include
|
|
66
|
-
name: '
|
|
65
|
+
displayName: 'Include ThirdParty',
|
|
66
|
+
name: 'includeThirdParty',
|
|
67
67
|
type: 'boolean',
|
|
68
68
|
default: false,
|
|
69
|
-
description: 'Whether to include
|
|
69
|
+
description: 'Whether to include thirdParty in the response',
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
},
|
|
73
73
|
];
|
|
74
74
|
async function execute(itemIndex) {
|
|
75
|
-
const
|
|
75
|
+
const thirdPartyId = this.getNodeParameter('thirdPartyId', itemIndex);
|
|
76
76
|
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
77
77
|
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
78
78
|
const options = this.getNodeParameter('options', itemIndex, {});
|
|
79
|
-
const
|
|
80
|
-
? `
|
|
79
|
+
const thirdPartyFragment = options.includeThirdParty
|
|
80
|
+
? `thirdParty {
|
|
81
81
|
id
|
|
82
82
|
name
|
|
83
83
|
}`
|
|
84
84
|
: '';
|
|
85
85
|
const query = `
|
|
86
|
-
query
|
|
87
|
-
node(id: $
|
|
88
|
-
... on
|
|
86
|
+
query GetThirdPartyRiskAssessments($thirdPartyId: ID!, $first: Int, $after: CursorKey) {
|
|
87
|
+
node(id: $thirdPartyId) {
|
|
88
|
+
... on ThirdParty {
|
|
89
89
|
riskAssessments(first: $first, after: $after) {
|
|
90
90
|
edges {
|
|
91
91
|
node {
|
|
@@ -94,7 +94,7 @@ async function execute(itemIndex) {
|
|
|
94
94
|
dataSensitivity
|
|
95
95
|
businessImpact
|
|
96
96
|
notes
|
|
97
|
-
${
|
|
97
|
+
${thirdPartyFragment}
|
|
98
98
|
createdAt
|
|
99
99
|
updatedAt
|
|
100
100
|
}
|
|
@@ -108,13 +108,13 @@ async function execute(itemIndex) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
`;
|
|
111
|
-
const
|
|
111
|
+
const thirdPartyRiskAssessments = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { thirdPartyId }, (response) => {
|
|
112
112
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
113
113
|
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
114
114
|
return node === null || node === void 0 ? void 0 : node.riskAssessments;
|
|
115
115
|
}, returnAll, limit);
|
|
116
116
|
return {
|
|
117
|
-
json: {
|
|
117
|
+
json: { thirdPartyRiskAssessments },
|
|
118
118
|
pairedItem: { item: itemIndex },
|
|
119
119
|
};
|
|
120
120
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllRiskAssessments.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/thirdParty/getAllRiskAssessments.operation.ts"],"names":[],"mappings":";;;AAsFA,0BA8DC;AArID,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACx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