@probo/n8n-nodes-probo 0.96.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 (25) hide show
  1. package/dist/nodes/Probo/Probo.node.js +5 -0
  2. package/dist/nodes/Probo/Probo.node.js.map +1 -1
  3. package/dist/nodes/Probo/actions/index.js +2 -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/package.json +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
@@ -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,0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,6 +1,6 @@
1
1
  {
2
2
  "name": "@probo/n8n-nodes-probo",
3
- "version": "0.96.1",
3
+ "version": "0.97.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "n8n-node build",