@probo/n8n-nodes-probo 0.188.0 → 0.189.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.
@@ -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,53 @@
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: ['user'],
14
+ operation: ['archiveUser'],
15
+ },
16
+ },
17
+ default: '',
18
+ description: 'The ID of the organization',
19
+ required: true,
20
+ },
21
+ {
22
+ displayName: 'User ID',
23
+ name: 'userId',
24
+ type: 'string',
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['user'],
28
+ operation: ['archiveUser'],
29
+ },
30
+ },
31
+ default: '',
32
+ description: 'The ID of the user (profile) to archive in the organization',
33
+ required: true,
34
+ },
35
+ ];
36
+ async function execute(itemIndex) {
37
+ const organizationId = this.getNodeParameter('organizationId', itemIndex);
38
+ const userId = this.getNodeParameter('userId', itemIndex);
39
+ const query = `
40
+ mutation ArchiveUser($input: ArchiveUserInput!) {
41
+ archiveUser(input: $input) {
42
+ archivedProfileId
43
+ }
44
+ }
45
+ `;
46
+ const input = { organizationId, profileId: userId };
47
+ const responseData = await GenericFunctions_1.proboConnectApiRequest.call(this, query, { input });
48
+ return {
49
+ json: responseData,
50
+ pairedItem: { item: itemIndex },
51
+ };
52
+ }
53
+ //# sourceMappingURL=archiveUser.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archiveUser.operation.js","sourceRoot":"","sources":["../../../../../nod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@
1
1
  import type { INodeProperties } from 'n8n-workflow';
2
+ import * as archiveUserOp from './archiveUser.operation';
2
3
  import * as listUsersOp from './listUsers.operation';
3
4
  import * as getUserOp from './getUser.operation';
4
5
  import * as createUserOp from './createUser.operation';
@@ -7,4 +8,4 @@ import * as updateUserOp from './updateUser.operation';
7
8
  import * as updateMembershipOp from './updateMembership.operation';
8
9
  import * as removeUserOp from './removeUser.operation';
9
10
  export declare const description: INodeProperties[];
10
- export { listUsersOp as listUsers, getUserOp as getUser, createUserOp as createUser, inviteUserOp as inviteUser, updateUserOp as updateUser, updateMembershipOp as updateMembership, removeUserOp as removeUser, };
11
+ export { archiveUserOp as archiveUser, listUsersOp as listUsers, getUserOp as getUser, createUserOp as createUser, inviteUserOp as inviteUser, updateUserOp as updateUser, updateMembershipOp as updateMembership, removeUserOp as removeUser, };
@@ -33,7 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.removeUser = exports.updateMembership = exports.updateUser = exports.inviteUser = exports.createUser = exports.getUser = exports.listUsers = exports.description = void 0;
36
+ exports.removeUser = exports.updateMembership = exports.updateUser = exports.inviteUser = exports.createUser = exports.getUser = exports.listUsers = exports.archiveUser = exports.description = void 0;
37
+ const archiveUserOp = __importStar(require("./archiveUser.operation"));
38
+ exports.archiveUser = archiveUserOp;
37
39
  const listUsersOp = __importStar(require("./listUsers.operation"));
38
40
  exports.listUsers = listUsersOp;
39
41
  const getUserOp = __importStar(require("./getUser.operation"));
@@ -60,6 +62,12 @@ exports.description = [
60
62
  },
61
63
  },
62
64
  options: [
65
+ {
66
+ name: 'Archive',
67
+ value: 'archiveUser',
68
+ description: 'Archive a user in the organization',
69
+ action: 'Archive a user',
70
+ },
63
71
  {
64
72
  name: 'Create',
65
73
  value: 'createUser',
@@ -105,6 +113,7 @@ exports.description = [
105
113
  ],
106
114
  default: 'listUsers',
107
115
  },
116
+ ...archiveUserOp.description,
108
117
  ...listUsersOp.description,
109
118
  ...getUserOp.description,
110
119
  ...createUserOp.description,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,mEAAqD;AA2ErC,gCAAS;AA1EzB,+DAAiD;AA2EnC,4BAAO;AA1ErB,qEAAuD;AA2EtC,kCAAU;AA1E3B,qEAAuD;AA2EtC,kCAAU;AA1E3B,qEAAuD;AA2EtC,kCAAU;AA1E3B,iFAAmE;AA2E5C,8CAAgB;AA1EvC,qEAAuD;AA2EtC,kCAAU;AAzEd,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,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,qCAAqC;gBAClD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,OAAO,EAAE,WAAW;KACpB;IACD,GAAG,WAAW,CAAC,WAAW;IAC1B,GAAG,SAAS,CAAC,WAAW;IACxB,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,kBAAkB,CAAC,WAAW;IACjC,GAAG,YAAY,CAAC,WAAW;CAC3B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,uEAAyD;AAmFvC,oCAAW;AAlF7B,mEAAqD;AAmFrC,gCAAS;AAlFzB,+DAAiD;AAmFnC,4BAAO;AAlFrB,qEAAuD;AAmFtC,kCAAU;AAlF3B,qEAAuD;AAmFtC,kCAAU;AAlF3B,qEAAuD;AAmFtC,kCAAU;AAlF3B,iFAAmE;AAmF5C,8CAAgB;AAlFvC,qEAAuD;AAmFtC,kCAAU;AAjFd,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,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,qCAAqC;gBAClD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,OAAO,EAAE,WAAW;KACpB;IACD,GAAG,aAAa,CAAC,WAAW;IAC5B,GAAG,WAAW,CAAC,WAAW;IAC1B,GAAG,SAAS,CAAC,WAAW;IACxB,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,kBAAkB,CAAC,WAAW;IACjC,GAAG,YAAY,CAAC,WAAW;CAC3B,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probo/n8n-nodes-probo",
3
- "version": "0.188.0",
3
+ "version": "0.189.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "n8n-node build",