@probo/n8n-nodes-probo 0.0.1 → 0.97.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 (43) hide show
  1. package/dist/nodes/Probo/Probo.node.js +10 -0
  2. package/dist/nodes/Probo/Probo.node.js.map +1 -1
  3. package/dist/nodes/Probo/actions/index.js +4 -0
  4. package/dist/nodes/Probo/actions/index.js.map +1 -1
  5. package/dist/nodes/Probo/actions/meeting/create.operation.d.ts +3 -0
  6. package/dist/nodes/Probo/actions/meeting/create.operation.js +163 -0
  7. package/dist/nodes/Probo/actions/meeting/create.operation.js.map +1 -0
  8. package/dist/nodes/Probo/actions/meeting/delete.operation.d.ts +3 -0
  9. package/dist/nodes/Probo/actions/meeting/delete.operation.js +37 -0
  10. package/dist/nodes/Probo/actions/meeting/delete.operation.js.map +1 -0
  11. package/dist/nodes/Probo/actions/meeting/get.operation.d.ts +3 -0
  12. package/dist/nodes/Probo/actions/meeting/get.operation.js +91 -0
  13. package/dist/nodes/Probo/actions/meeting/get.operation.js.map +1 -0
  14. package/dist/nodes/Probo/actions/meeting/getAll.operation.d.ts +3 -0
  15. package/dist/nodes/Probo/actions/meeting/getAll.operation.js +134 -0
  16. package/dist/nodes/Probo/actions/meeting/getAll.operation.js.map +1 -0
  17. package/dist/nodes/Probo/actions/meeting/index.d.ts +8 -0
  18. package/dist/nodes/Probo/actions/meeting/index.js +98 -0
  19. package/dist/nodes/Probo/actions/meeting/index.js.map +1 -0
  20. package/dist/nodes/Probo/actions/meeting/update.operation.d.ts +3 -0
  21. package/dist/nodes/Probo/actions/meeting/update.operation.js +159 -0
  22. package/dist/nodes/Probo/actions/meeting/update.operation.js.map +1 -0
  23. package/dist/nodes/Probo/actions/organization/create.operation.d.ts +3 -0
  24. package/dist/nodes/Probo/actions/organization/create.operation.js +55 -0
  25. package/dist/nodes/Probo/actions/organization/create.operation.js.map +1 -0
  26. package/dist/nodes/Probo/actions/organization/delete.operation.d.ts +3 -0
  27. package/dist/nodes/Probo/actions/organization/delete.operation.js +37 -0
  28. package/dist/nodes/Probo/actions/organization/delete.operation.js.map +1 -0
  29. package/dist/nodes/Probo/actions/organization/get.operation.d.ts +3 -0
  30. package/dist/nodes/Probo/actions/organization/get.operation.js +51 -0
  31. package/dist/nodes/Probo/actions/organization/get.operation.js.map +1 -0
  32. package/dist/nodes/Probo/actions/organization/getAll.operation.d.ts +3 -0
  33. package/dist/nodes/Probo/actions/organization/getAll.operation.js +77 -0
  34. package/dist/nodes/Probo/actions/organization/getAll.operation.js.map +1 -0
  35. package/dist/nodes/Probo/actions/organization/index.d.ts +8 -0
  36. package/dist/nodes/Probo/actions/organization/index.js +98 -0
  37. package/dist/nodes/Probo/actions/organization/index.js.map +1 -0
  38. package/dist/nodes/Probo/actions/organization/update.operation.d.ts +3 -0
  39. package/dist/nodes/Probo/actions/organization/update.operation.js +130 -0
  40. package/dist/nodes/Probo/actions/organization/update.operation.js.map +1 -0
  41. package/dist/package.json +2 -2
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +2 -2
@@ -0,0 +1,159 @@
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: 'Meeting ID',
9
+ name: 'meetingId',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['meeting'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the meeting to update',
19
+ required: true,
20
+ },
21
+ {
22
+ displayName: 'Name',
23
+ name: 'name',
24
+ type: 'string',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['meeting'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ default: '',
32
+ description: 'The name of the meeting',
33
+ },
34
+ {
35
+ displayName: 'Date',
36
+ name: 'date',
37
+ type: 'dateTime',
38
+ displayOptions: {
39
+ show: {
40
+ resource: ['meeting'],
41
+ operation: ['update'],
42
+ },
43
+ },
44
+ default: '',
45
+ description: 'The date and time of the meeting',
46
+ },
47
+ {
48
+ displayName: 'Attendee IDs',
49
+ name: 'attendeeIds',
50
+ type: 'string',
51
+ displayOptions: {
52
+ show: {
53
+ resource: ['meeting'],
54
+ operation: ['update'],
55
+ },
56
+ },
57
+ default: '',
58
+ description: 'Comma-separated list of attendee IDs (People IDs)',
59
+ },
60
+ {
61
+ displayName: 'Minutes',
62
+ name: 'minutes',
63
+ type: 'string',
64
+ typeOptions: {
65
+ rows: 4,
66
+ },
67
+ displayOptions: {
68
+ show: {
69
+ resource: ['meeting'],
70
+ operation: ['update'],
71
+ },
72
+ },
73
+ default: '',
74
+ description: 'The minutes of the meeting',
75
+ },
76
+ {
77
+ displayName: 'Options',
78
+ name: 'options',
79
+ type: 'collection',
80
+ placeholder: 'Add Option',
81
+ default: {},
82
+ displayOptions: {
83
+ show: {
84
+ resource: ['meeting'],
85
+ operation: ['update'],
86
+ },
87
+ },
88
+ options: [
89
+ {
90
+ displayName: 'Include Attendees',
91
+ name: 'includeAttendees',
92
+ type: 'boolean',
93
+ default: false,
94
+ description: 'Whether to include attendees in the response',
95
+ },
96
+ {
97
+ displayName: 'Include Organization',
98
+ name: 'includeOrganization',
99
+ type: 'boolean',
100
+ default: false,
101
+ description: 'Whether to include organization in the response',
102
+ },
103
+ ],
104
+ },
105
+ ];
106
+ async function execute(itemIndex) {
107
+ const meetingId = this.getNodeParameter('meetingId', itemIndex);
108
+ const name = this.getNodeParameter('name', itemIndex, '');
109
+ const date = this.getNodeParameter('date', itemIndex, '');
110
+ const attendeeIdsStr = this.getNodeParameter('attendeeIds', itemIndex, '');
111
+ const minutes = this.getNodeParameter('minutes', itemIndex, '');
112
+ const options = this.getNodeParameter('options', itemIndex, {});
113
+ const attendeesFragment = options.includeAttendees
114
+ ? `attendees {
115
+ id
116
+ fullName
117
+ }`
118
+ : '';
119
+ const organizationFragment = options.includeOrganization
120
+ ? `organization {
121
+ id
122
+ name
123
+ }`
124
+ : '';
125
+ const query = `
126
+ mutation UpdateMeeting($input: UpdateMeetingInput!) {
127
+ updateMeeting(input: $input) {
128
+ meeting {
129
+ id
130
+ name
131
+ date
132
+ minutes
133
+ ${attendeesFragment}
134
+ ${organizationFragment}
135
+ createdAt
136
+ updatedAt
137
+ }
138
+ }
139
+ }
140
+ `;
141
+ const attendeeIds = attendeeIdsStr ? attendeeIdsStr.split(',').map((id) => id.trim()).filter(Boolean) : undefined;
142
+ const input = { meetingId };
143
+ if (name)
144
+ input.name = name;
145
+ if (date)
146
+ input.date = date;
147
+ if (attendeeIds && attendeeIds.length > 0) {
148
+ input.attendeeIds = attendeeIds;
149
+ }
150
+ if (minutes !== undefined && minutes !== null) {
151
+ input.minutes = minutes;
152
+ }
153
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
154
+ return {
155
+ json: responseData,
156
+ pairedItem: { item: itemIndex },
157
+ };
158
+ }
159
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/meeting/update.operation.ts"],"names":[],"mappings":";;;AAwGA,0BA+DC;AAtKD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,C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AC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAElH,MAAM,KAAK,GAA4B,EAAE,SAAS,EAAE,CAAC;IACrD,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5B,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5B,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IACD,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC/C,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAExE,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -0,0 +1,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,55 @@
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: 'Name',
9
+ name: 'name',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['organization'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The name of the organization',
19
+ required: true,
20
+ },
21
+ ];
22
+ async function execute(itemIndex) {
23
+ const name = this.getNodeParameter('name', itemIndex);
24
+ const query = `
25
+ mutation CreateOrganization($input: CreateOrganizationInput!) {
26
+ createOrganization(input: $input) {
27
+ organizationEdge {
28
+ node {
29
+ id
30
+ name
31
+ description
32
+ websiteUrl
33
+ email
34
+ headquarterAddress
35
+ logoUrl
36
+ horizontalLogoUrl
37
+ createdAt
38
+ updatedAt
39
+ }
40
+ }
41
+ }
42
+ }
43
+ `;
44
+ const variables = {
45
+ input: {
46
+ name,
47
+ },
48
+ };
49
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
50
+ return {
51
+ json: responseData,
52
+ pairedItem: { item: itemIndex },
53
+ };
54
+ }
55
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/create.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAuCC;AA1DD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;IAEhE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;EAmBb,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,KAAK,EAAE;YACN,IAAI;SACJ;KACD,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"}
@@ -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: 'Organization ID',
9
+ name: 'organizationId',
10
+ type: 'string',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['organization'],
14
+ operation: ['delete'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the organization to delete',
19
+ required: true,
20
+ },
21
+ ];
22
+ async function execute(itemIndex) {
23
+ const organizationId = this.getNodeParameter('organizationId', itemIndex);
24
+ const query = `
25
+ mutation DeleteOrganization($input: DeleteOrganizationInput!) {
26
+ deleteOrganization(input: $input) {
27
+ deletedOrganizationId
28
+ }
29
+ }
30
+ `;
31
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { organizationId } });
32
+ return {
33
+ json: responseData,
34
+ pairedItem: { item: itemIndex },
35
+ };
36
+ }
37
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/delete.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAoBC;AAvCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;EAMb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;IAE5F,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,51 @@
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: ['organization'],
14
+ operation: ['get'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the organization',
19
+ required: true,
20
+ },
21
+ ];
22
+ async function execute(itemIndex) {
23
+ const organizationId = this.getNodeParameter('organizationId', itemIndex);
24
+ const query = `
25
+ query GetOrganization($organizationId: ID!) {
26
+ node(id: $organizationId) {
27
+ ... on Organization {
28
+ id
29
+ name
30
+ description
31
+ websiteUrl
32
+ email
33
+ headquarterAddress
34
+ logoUrl
35
+ horizontalLogoUrl
36
+ createdAt
37
+ updatedAt
38
+ }
39
+ }
40
+ }
41
+ `;
42
+ const variables = {
43
+ organizationId,
44
+ };
45
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, variables);
46
+ return {
47
+ json: responseData,
48
+ pairedItem: { item: itemIndex },
49
+ };
50
+ }
51
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/get.operation.ts"],"names":[],"mappings":";;;AAoBA,0BAmCC;AAtDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;EAiBb,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,cAAc;KACd,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"}
@@ -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,77 @@
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: 'Return All',
9
+ name: 'returnAll',
10
+ type: 'boolean',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['organization'],
14
+ operation: ['getAll'],
15
+ },
16
+ },
17
+ default: false,
18
+ description: 'Whether to return all results or only up to a given limit',
19
+ },
20
+ {
21
+ displayName: 'Limit',
22
+ name: 'limit',
23
+ type: 'number',
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['organization'],
27
+ operation: ['getAll'],
28
+ returnAll: [false],
29
+ },
30
+ },
31
+ typeOptions: {
32
+ minValue: 1,
33
+ },
34
+ default: 50,
35
+ description: 'Max number of results to return',
36
+ },
37
+ ];
38
+ async function execute(itemIndex) {
39
+ const returnAll = this.getNodeParameter('returnAll', itemIndex);
40
+ const limit = this.getNodeParameter('limit', itemIndex, 50);
41
+ const query = `
42
+ query GetOrganizations($first: Int, $after: CursorKey) {
43
+ viewer {
44
+ organizations(first: $first, after: $after) {
45
+ edges {
46
+ node {
47
+ id
48
+ name
49
+ description
50
+ websiteUrl
51
+ email
52
+ headquarterAddress
53
+ logoUrl
54
+ horizontalLogoUrl
55
+ createdAt
56
+ updatedAt
57
+ }
58
+ }
59
+ pageInfo {
60
+ hasNextPage
61
+ endCursor
62
+ }
63
+ }
64
+ }
65
+ }
66
+ `;
67
+ const organizations = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, {}, (response) => {
68
+ const data = response === null || response === void 0 ? void 0 : response.data;
69
+ const viewer = data === null || data === void 0 ? void 0 : data.viewer;
70
+ return viewer === null || viewer === void 0 ? void 0 : viewer.organizations;
71
+ }, returnAll, limit);
72
+ return {
73
+ json: { organizations },
74
+ pairedItem: { item: itemIndex },
75
+ };
76
+ }
77
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/getAll.operation.ts"],"names":[],"mappings":";;;AAoCA,0BAmDC;AAtFD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;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,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,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,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,aAAa,GAAG,MAAM,0CAAuB,CAAC,IAAI,CACvD,IAAI,EACJ,KAAK,EACL,EAAE,EACF,CAAC,QAAQ,EAAE,EAAE;QACZ,MAAM,IAAI,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAA+B,CAAC;QACvD,MAAM,MAAM,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAiC,CAAC;QACvD,OAAO,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAwC,CAAC;IACzD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,aAAa,EAAE;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import * as createOp from './create.operation';
3
+ import * as updateOp from './update.operation';
4
+ import * as deleteOp from './delete.operation';
5
+ import * as getOp from './get.operation';
6
+ import * as getAllOp from './getAll.operation';
7
+ export declare const description: INodeProperties[];
8
+ export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
37
+ const createOp = __importStar(require("./create.operation"));
38
+ exports.create = createOp;
39
+ const updateOp = __importStar(require("./update.operation"));
40
+ exports.update = updateOp;
41
+ const deleteOp = __importStar(require("./delete.operation"));
42
+ exports.delete = deleteOp;
43
+ const getOp = __importStar(require("./get.operation"));
44
+ exports.get = getOp;
45
+ const getAllOp = __importStar(require("./getAll.operation"));
46
+ exports.getAll = getAllOp;
47
+ exports.description = [
48
+ {
49
+ displayName: 'Operation',
50
+ name: 'operation',
51
+ type: 'options',
52
+ noDataExpression: true,
53
+ displayOptions: {
54
+ show: {
55
+ resource: ['organization'],
56
+ },
57
+ },
58
+ options: [
59
+ {
60
+ name: 'Create',
61
+ value: 'create',
62
+ description: 'Create a new organization',
63
+ action: 'Create an organization',
64
+ },
65
+ {
66
+ name: 'Delete',
67
+ value: 'delete',
68
+ description: 'Delete an organization',
69
+ action: 'Delete an organization',
70
+ },
71
+ {
72
+ name: 'Get',
73
+ value: 'get',
74
+ description: 'Get an organization',
75
+ action: 'Get an organization',
76
+ },
77
+ {
78
+ name: 'Get Many',
79
+ value: 'getAll',
80
+ description: 'Get many organizations',
81
+ action: 'Get many organizations',
82
+ },
83
+ {
84
+ name: 'Update',
85
+ value: 'update',
86
+ description: 'Update an existing organization',
87
+ action: 'Update an organization',
88
+ },
89
+ ],
90
+ default: 'create',
91
+ },
92
+ ...createOp.description,
93
+ ...updateOp.description,
94
+ ...deleteOp.description,
95
+ ...getOp.description,
96
+ ...getAllOp.description,
97
+ ];
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6DAA+C;AA0D1B,0BAAM;AAzD3B,6DAA+C;AAyDN,0BAAM;AAxD/C,6DAA+C;AAwDc,0BAAM;AAvDnE,uDAAyC;AAuDqC,oBAAG;AAtDjF,6DAA+C;AAsDgD,0BAAM;AApDxF,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,cAAc,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,2BAA2B;gBACxC,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,qBAAqB;aAC7B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,QAAQ,CAAC,WAAW;CACvB,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,130 @@
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: ['organization'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the organization to update',
19
+ required: true,
20
+ },
21
+ {
22
+ displayName: 'Name',
23
+ name: 'name',
24
+ type: 'string',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['organization'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ default: '',
32
+ description: 'The name of the organization',
33
+ },
34
+ {
35
+ displayName: 'Description',
36
+ name: 'description',
37
+ type: 'string',
38
+ displayOptions: {
39
+ show: {
40
+ resource: ['organization'],
41
+ operation: ['update'],
42
+ },
43
+ },
44
+ default: '',
45
+ description: 'The description of the organization',
46
+ },
47
+ {
48
+ displayName: 'Website URL',
49
+ name: 'websiteUrl',
50
+ type: 'string',
51
+ displayOptions: {
52
+ show: {
53
+ resource: ['organization'],
54
+ operation: ['update'],
55
+ },
56
+ },
57
+ default: '',
58
+ description: 'The website URL of the organization',
59
+ },
60
+ {
61
+ displayName: 'Email',
62
+ name: 'email',
63
+ type: 'string',
64
+ placeholder: 'name@example.com',
65
+ displayOptions: {
66
+ show: {
67
+ resource: ['organization'],
68
+ operation: ['update'],
69
+ },
70
+ },
71
+ default: '',
72
+ description: 'The email address of the organization',
73
+ },
74
+ {
75
+ displayName: 'Headquarter Address',
76
+ name: 'headquarterAddress',
77
+ type: 'string',
78
+ displayOptions: {
79
+ show: {
80
+ resource: ['organization'],
81
+ operation: ['update'],
82
+ },
83
+ },
84
+ default: '',
85
+ description: 'The headquarter address of the organization',
86
+ },
87
+ ];
88
+ async function execute(itemIndex) {
89
+ const organizationId = this.getNodeParameter('organizationId', itemIndex);
90
+ const name = this.getNodeParameter('name', itemIndex, '');
91
+ const description = this.getNodeParameter('description', itemIndex, '');
92
+ const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '');
93
+ const email = this.getNodeParameter('email', itemIndex, '');
94
+ const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '');
95
+ const query = `
96
+ mutation UpdateOrganization($input: UpdateOrganizationInput!) {
97
+ updateOrganization(input: $input) {
98
+ organization {
99
+ id
100
+ name
101
+ description
102
+ websiteUrl
103
+ email
104
+ headquarterAddress
105
+ logoUrl
106
+ horizontalLogoUrl
107
+ createdAt
108
+ updatedAt
109
+ }
110
+ }
111
+ }
112
+ `;
113
+ const input = { organizationId };
114
+ if (name)
115
+ input.name = name;
116
+ if (description)
117
+ input.description = description;
118
+ if (websiteUrl)
119
+ input.websiteUrl = websiteUrl;
120
+ if (email)
121
+ input.email = email;
122
+ if (headquarterAddress)
123
+ input.headquarterAddress = headquarterAddress;
124
+ const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
125
+ return {
126
+ json: responseData,
127
+ pairedItem: { item: itemIndex },
128
+ };
129
+ }
130
+ //# sourceMappingURL=update.operation.js.map