@probo/n8n-nodes-probo 0.203.0 → 0.204.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.
Files changed (30) hide show
  1. package/dist/nodes/Probo/actions/trustCenter/createCommitment.operation.d.ts +3 -0
  2. package/dist/nodes/Probo/actions/trustCenter/createCommitment.operation.js +136 -0
  3. package/dist/nodes/Probo/actions/trustCenter/createCommitment.operation.js.map +1 -0
  4. package/dist/nodes/Probo/actions/trustCenter/createCommitmentGroup.operation.d.ts +3 -0
  5. package/dist/nodes/Probo/actions/trustCenter/createCommitmentGroup.operation.js +81 -0
  6. package/dist/nodes/Probo/actions/trustCenter/createCommitmentGroup.operation.js.map +1 -0
  7. package/dist/nodes/Probo/actions/trustCenter/deleteCommitment.operation.d.ts +3 -0
  8. package/dist/nodes/Probo/actions/trustCenter/deleteCommitment.operation.js +37 -0
  9. package/dist/nodes/Probo/actions/trustCenter/deleteCommitment.operation.js.map +1 -0
  10. package/dist/nodes/Probo/actions/trustCenter/deleteCommitmentGroup.operation.d.ts +3 -0
  11. package/dist/nodes/Probo/actions/trustCenter/deleteCommitmentGroup.operation.js +37 -0
  12. package/dist/nodes/Probo/actions/trustCenter/deleteCommitmentGroup.operation.js.map +1 -0
  13. package/dist/nodes/Probo/actions/trustCenter/getAllCommitmentGroups.operation.d.ts +3 -0
  14. package/dist/nodes/Probo/actions/trustCenter/getAllCommitmentGroups.operation.js +93 -0
  15. package/dist/nodes/Probo/actions/trustCenter/getAllCommitmentGroups.operation.js.map +1 -0
  16. package/dist/nodes/Probo/actions/trustCenter/getAllCommitments.operation.d.ts +3 -0
  17. package/dist/nodes/Probo/actions/trustCenter/getAllCommitments.operation.js +92 -0
  18. package/dist/nodes/Probo/actions/trustCenter/getAllCommitments.operation.js.map +1 -0
  19. package/dist/nodes/Probo/actions/trustCenter/index.d.ts +9 -1
  20. package/dist/nodes/Probo/actions/trustCenter/index.js +73 -1
  21. package/dist/nodes/Probo/actions/trustCenter/index.js.map +1 -1
  22. package/dist/nodes/Probo/actions/trustCenter/updateCommitment.operation.d.ts +3 -0
  23. package/dist/nodes/Probo/actions/trustCenter/updateCommitment.operation.js +154 -0
  24. package/dist/nodes/Probo/actions/trustCenter/updateCommitment.operation.js.map +1 -0
  25. package/dist/nodes/Probo/actions/trustCenter/updateCommitmentGroup.operation.d.ts +3 -0
  26. package/dist/nodes/Probo/actions/trustCenter/updateCommitmentGroup.operation.js +96 -0
  27. package/dist/nodes/Probo/actions/trustCenter/updateCommitmentGroup.operation.js.map +1 -0
  28. package/dist/package.json +1 -1
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData>;
@@ -0,0 +1,136 @@
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: 'Lock Key', value: 'LOCK_KEY' },
8
+ { name: 'Eye Slash', value: 'EYE_SLASH' },
9
+ { name: 'Fingerprint', value: 'FINGERPRINT' },
10
+ { name: 'Shield Warning', value: 'SHIELD_WARNING' },
11
+ { name: 'Shield Check', value: 'SHIELD_CHECK' },
12
+ { name: 'Siren', value: 'SIREN' },
13
+ { name: 'Key', value: 'KEY' },
14
+ { name: 'Lock', value: 'LOCK' },
15
+ { name: 'Cloud', value: 'CLOUD' },
16
+ { name: 'Database', value: 'DATABASE' },
17
+ { name: 'Globe', value: 'GLOBE' },
18
+ { name: 'Eye', value: 'EYE' },
19
+ { name: 'Users', value: 'USERS' },
20
+ { name: 'Certificate', value: 'CERTIFICATE' },
21
+ { name: 'Gavel', value: 'GAVEL' },
22
+ { name: 'Heartbeat', value: 'HEARTBEAT' },
23
+ { name: 'Bell', value: 'BELL' },
24
+ { name: 'Bug', value: 'BUG' },
25
+ { name: 'Code', value: 'CODE' },
26
+ { name: 'Server', value: 'SERVER' },
27
+ ];
28
+ exports.description = [
29
+ {
30
+ displayName: 'Commitment Group ID',
31
+ name: 'groupId',
32
+ type: 'string',
33
+ displayOptions: {
34
+ show: {
35
+ resource: ['trustCenter'],
36
+ operation: ['createCommitment'],
37
+ },
38
+ },
39
+ default: '',
40
+ description: 'The ID of the commitment group',
41
+ required: true,
42
+ },
43
+ {
44
+ displayName: 'Icon',
45
+ name: 'icon',
46
+ type: 'options',
47
+ displayOptions: {
48
+ show: {
49
+ resource: ['trustCenter'],
50
+ operation: ['createCommitment'],
51
+ },
52
+ },
53
+ options: commitmentIconOptions,
54
+ default: 'LOCK_KEY',
55
+ description: 'The icon of the commitment',
56
+ required: true,
57
+ },
58
+ {
59
+ displayName: 'Eyebrow',
60
+ name: 'eyebrow',
61
+ type: 'string',
62
+ displayOptions: {
63
+ show: {
64
+ resource: ['trustCenter'],
65
+ operation: ['createCommitment'],
66
+ },
67
+ },
68
+ default: '',
69
+ description: 'The eyebrow text of the commitment',
70
+ required: true,
71
+ },
72
+ {
73
+ displayName: 'Title',
74
+ name: 'title',
75
+ type: 'string',
76
+ displayOptions: {
77
+ show: {
78
+ resource: ['trustCenter'],
79
+ operation: ['createCommitment'],
80
+ },
81
+ },
82
+ default: '',
83
+ description: 'The title of the commitment',
84
+ required: true,
85
+ },
86
+ {
87
+ displayName: 'Description',
88
+ name: 'description',
89
+ type: 'string',
90
+ typeOptions: {
91
+ rows: 4,
92
+ },
93
+ displayOptions: {
94
+ show: {
95
+ resource: ['trustCenter'],
96
+ operation: ['createCommitment'],
97
+ },
98
+ },
99
+ default: '',
100
+ description: 'The description of the commitment',
101
+ required: true,
102
+ },
103
+ ];
104
+ async function execute(itemIndex) {
105
+ const groupId = this.getNodeParameter('groupId', itemIndex);
106
+ const icon = this.getNodeParameter('icon', itemIndex);
107
+ const eyebrow = this.getNodeParameter('eyebrow', itemIndex);
108
+ const title = this.getNodeParameter('title', itemIndex);
109
+ const description = this.getNodeParameter('description', itemIndex);
110
+ const query = `
111
+ mutation CreateCompliancePortalCommitment($input: CreateCompliancePortalCommitmentInput!) {
112
+ createCompliancePortalCommitment(input: $input) {
113
+ compliancePortalCommitmentEdge {
114
+ node {
115
+ id
116
+ icon
117
+ eyebrow
118
+ title
119
+ description
120
+ rank
121
+ createdAt
122
+ updatedAt
123
+ }
124
+ }
125
+ }
126
+ }
127
+ `;
128
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
129
+ input: { groupId, icon, eyebrow, title, description },
130
+ });
131
+ return {
132
+ json: responseData,
133
+ pairedItem: { item: itemIndex },
134
+ };
135
+ }
136
+ //# sourceMappingURL=createCommitment.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCommitment.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/trustCenter/createCommitment.operation.ts"],"names":[],"mappings":";;;AA2HA,0BAqCC;AA3ID,6DAAyD;AAEzD,MAAM,qBAAqB,GAAG;IAC7B,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,KAAK,EAAE,KAAK,EAAE;IAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAC/B,EAAE,IAAI,EAAE,OAAO,EAAE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AAS,EAAE,SAAS,CAAW,CAAC;IACtE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,CAAW,CAAC;IAClE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,CAAW,CAAC;IAE9E,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAC5D,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;KACrD,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData>;
@@ -0,0 +1,81 @@
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: 'Trust Center ID',
9
+ name: 'trustCenterId',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['trustCenter'],
14
+ operation: ['createCommitmentGroup'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the trust center',
19
+ required: true,
20
+ },
21
+ {
22
+ displayName: 'Title',
23
+ name: 'title',
24
+ type: 'string',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['trustCenter'],
28
+ operation: ['createCommitmentGroup'],
29
+ },
30
+ },
31
+ default: '',
32
+ description: 'The title of the commitment group',
33
+ required: true,
34
+ },
35
+ {
36
+ displayName: 'Description',
37
+ name: 'description',
38
+ type: 'string',
39
+ typeOptions: {
40
+ rows: 4,
41
+ },
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['trustCenter'],
45
+ operation: ['createCommitmentGroup'],
46
+ },
47
+ },
48
+ default: '',
49
+ description: 'The description of the commitment group',
50
+ required: true,
51
+ },
52
+ ];
53
+ async function execute(itemIndex) {
54
+ const trustCenterId = this.getNodeParameter('trustCenterId', itemIndex);
55
+ const title = this.getNodeParameter('title', itemIndex);
56
+ const description = this.getNodeParameter('description', itemIndex);
57
+ const query = `
58
+ mutation CreateCompliancePortalCommitmentGroup($input: CreateCompliancePortalCommitmentGroupInput!) {
59
+ createCompliancePortalCommitmentGroup(input: $input) {
60
+ compliancePortalCommitmentGroupEdge {
61
+ node {
62
+ id
63
+ title
64
+ description
65
+ rank
66
+ createdAt
67
+ updatedAt
68
+ }
69
+ }
70
+ }
71
+ }
72
+ `;
73
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
74
+ input: { trustCenterId, title, description },
75
+ });
76
+ return {
77
+ json: responseData,
78
+ pairedItem: { item: itemIndex },
79
+ };
80
+ }
81
+ //# sourceMappingURL=createCommitmentGroup.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCommitmentGroup.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/trustCenter/createCommitmentGroup.operation.ts"],"names":[],"mappings":";;;AAuEA,0BAiCC;AAnFD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,uBAAuB,CAAC;aACpC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WA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odeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const GenericFunctions_1 = require("../../GenericFunctions");
6
+ exports.description = [
7
+ {
8
+ displayName: 'Commitment ID',
9
+ name: 'commitmentId',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['trustCenter'],
14
+ operation: ['deleteCommitment'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the commitment to delete',
19
+ required: true,
20
+ },
21
+ ];
22
+ async function execute(itemIndex) {
23
+ const commitmentId = this.getNodeParameter('commitmentId', itemIndex);
24
+ const query = `
25
+ mutation DeleteCompliancePortalCommitment($input: DeleteCompliancePortalCommitmentInput!) {
26
+ deleteCompliancePortalCommitment(input: $input) {
27
+ deletedCompliancePortalCommitmentId
28
+ }
29
+ }
30
+ `;
31
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { id: commitmentId } });
32
+ return {
33
+ json: responseData,
34
+ pairedItem: { item: itemIndex },
35
+ };
36
+ }
37
+ //# sourceMappingURL=deleteCommitment.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCommitment.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/trustCenter/deleteCommitment.operation.ts"],"names":[],"mappings":";;;AAwCA,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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oCAAoC;QACjD,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,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IAE9F,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const GenericFunctions_1 = require("../../GenericFunctions");
6
+ exports.description = [
7
+ {
8
+ displayName: 'Commitment Group ID',
9
+ name: 'commitmentGroupId',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['trustCenter'],
14
+ operation: ['deleteCommitmentGroup'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the commitment group to delete',
19
+ required: true,
20
+ },
21
+ ];
22
+ async function execute(itemIndex) {
23
+ const commitmentGroupId = this.getNodeParameter('commitmentGroupId', itemIndex);
24
+ const query = `
25
+ mutation DeleteCompliancePortalCommitmentGroup($input: DeleteCompliancePortalCommitmentGroupInput!) {
26
+ deleteCompliancePortalCommitmentGroup(input: $input) {
27
+ deletedCompliancePortalCommitmentGroupId
28
+ }
29
+ }
30
+ `;
31
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { id: commitmentGroupId } });
32
+ return {
33
+ json: responseData,
34
+ pairedItem: { item: itemIndex },
35
+ };
36
+ }
37
+ //# sourceMappingURL=deleteCommitmentGroup.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCommitmentGroup.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/trustCenter/deleteCommitmentGroup.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,uBAAuB,CAAC;aACpC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,SAAS,CAAW,CAAC;IAE1F,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC;IAEnG,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData>;
@@ -0,0 +1,93 @@
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: ['trustCenter'],
14
+ operation: ['getAllCommitmentGroups'],
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: ['trustCenter'],
28
+ operation: ['getAllCommitmentGroups'],
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: ['trustCenter'],
41
+ operation: ['getAllCommitmentGroups'],
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
+ async function execute(itemIndex) {
53
+ const organizationId = this.getNodeParameter('organizationId', itemIndex);
54
+ const returnAll = this.getNodeParameter('returnAll', itemIndex);
55
+ const limit = this.getNodeParameter('limit', itemIndex, 50);
56
+ const query = `
57
+ query GetCompliancePortalCommitmentGroups($organizationId: ID!, $first: Int, $after: CursorKey) {
58
+ node(id: $organizationId) {
59
+ ... on Organization {
60
+ trustCenter {
61
+ commitmentGroups(first: $first, after: $after) {
62
+ edges {
63
+ node {
64
+ id
65
+ title
66
+ description
67
+ rank
68
+ createdAt
69
+ updatedAt
70
+ }
71
+ }
72
+ pageInfo {
73
+ hasNextPage
74
+ endCursor
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ `;
82
+ const commitmentGroups = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { organizationId }, (response) => {
83
+ const data = response === null || response === void 0 ? void 0 : response.data;
84
+ const node = data === null || data === void 0 ? void 0 : data.node;
85
+ const trustCenter = node === null || node === void 0 ? void 0 : node.trustCenter;
86
+ return trustCenter === null || trustCenter === void 0 ? void 0 : trustCenter.commitmentGroups;
87
+ }, returnAll, limit);
88
+ return {
89
+ json: { commitmentGroups },
90
+ pairedItem: { item: itemIndex },
91
+ };
92
+ }
93
+ //# sourceMappingURL=getAllCommitmentGroups.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAllCommitmentGroups.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/trustCenter/getAllCommitmentGroups.operation.ts"],"names":[],"mappings":";;;AAsEA,0BAqDC;AAtGD,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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,wBAAwB,CAAC;aACrC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,wBAAwB,CAAC;aACrC;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aA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from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData>;
@@ -0,0 +1,92 @@
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: 'groupId',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['trustCenter'],
14
+ operation: ['getAllCommitments'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the commitment group',
19
+ required: true,
20
+ },
21
+ {
22
+ displayName: 'Return All',
23
+ name: 'returnAll',
24
+ type: 'boolean',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['trustCenter'],
28
+ operation: ['getAllCommitments'],
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: ['trustCenter'],
41
+ operation: ['getAllCommitments'],
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
+ async function execute(itemIndex) {
53
+ const groupId = this.getNodeParameter('groupId', itemIndex);
54
+ const returnAll = this.getNodeParameter('returnAll', itemIndex);
55
+ const limit = this.getNodeParameter('limit', itemIndex, 50);
56
+ const query = `
57
+ query GetCompliancePortalCommitments($groupId: ID!, $first: Int, $after: CursorKey) {
58
+ node(id: $groupId) {
59
+ ... on CompliancePortalCommitmentGroup {
60
+ commitments(first: $first, after: $after) {
61
+ edges {
62
+ node {
63
+ id
64
+ icon
65
+ eyebrow
66
+ title
67
+ description
68
+ rank
69
+ createdAt
70
+ updatedAt
71
+ }
72
+ }
73
+ pageInfo {
74
+ hasNextPage
75
+ endCursor
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ `;
82
+ const commitments = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { groupId }, (response) => {
83
+ const data = response === null || response === void 0 ? void 0 : response.data;
84
+ const node = data === null || data === void 0 ? void 0 : data.node;
85
+ return node === null || node === void 0 ? void 0 : node.commitments;
86
+ }, returnAll, limit);
87
+ return {
88
+ json: { commitments },
89
+ pairedItem: { item: itemIndex },
90
+ };
91
+ }
92
+ //# sourceMappingURL=getAllCommitments.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAllCommitments.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/trustCenter/getAllCommitments.operation.ts"],"names":[],"mappings":";;;AAsEA,0BAoDC;AArGD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,mBAAmB,CAAC;gBAChC,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAW,CAAC;IACtE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAY,CAAC;IAC3E,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAEtE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;EAyBb,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,0CAAuB,CAAC,IAAI,CACrD,IAAI,EACJ,KAAK,EACL,EAAE,OAAO,EAAE,EACX,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,WAAsC,CAAC;IACrD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,WAAW,EAAE;QACrB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -8,5 +8,13 @@ import * as getAllFilesOp from './getAllFiles.operation';
8
8
  import * as deleteFileOp from './deleteFile.operation';
9
9
  import * as createExternalUrlOp from './createExternalUrl.operation';
10
10
  import * as deleteExternalUrlOp from './deleteExternalUrl.operation';
11
+ import * as getAllCommitmentGroupsOp from './getAllCommitmentGroups.operation';
12
+ import * as createCommitmentGroupOp from './createCommitmentGroup.operation';
13
+ import * as updateCommitmentGroupOp from './updateCommitmentGroup.operation';
14
+ import * as deleteCommitmentGroupOp from './deleteCommitmentGroup.operation';
15
+ import * as getAllCommitmentsOp from './getAllCommitments.operation';
16
+ import * as createCommitmentOp from './createCommitment.operation';
17
+ import * as updateCommitmentOp from './updateCommitment.operation';
18
+ import * as deleteCommitmentOp from './deleteCommitment.operation';
11
19
  export declare const description: INodeProperties[];
12
- export { getOp as get, updateOp as update, getAllReferencesOp as getAllReferences, createReferenceOp as createReference, deleteReferenceOp as deleteReference, getAllFilesOp as getAllFiles, deleteFileOp as deleteFile, createExternalUrlOp as createExternalUrl, deleteExternalUrlOp as deleteExternalUrl, };
20
+ export { getOp as get, updateOp as update, getAllReferencesOp as getAllReferences, createReferenceOp as createReference, deleteReferenceOp as deleteReference, getAllFilesOp as getAllFiles, deleteFileOp as deleteFile, createExternalUrlOp as createExternalUrl, deleteExternalUrlOp as deleteExternalUrl, getAllCommitmentGroupsOp as getAllCommitmentGroups, createCommitmentGroupOp as createCommitmentGroup, updateCommitmentGroupOp as updateCommitmentGroup, deleteCommitmentGroupOp as deleteCommitmentGroup, getAllCommitmentsOp as getAllCommitments, createCommitmentOp as createCommitment, updateCommitmentOp as updateCommitment, deleteCommitmentOp as deleteCommitment, };