@probo/n8n-nodes-probo 0.0.1 → 0.96.1
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 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/organization/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/organization/create.operation.js +55 -0
- package/dist/nodes/Probo/actions/organization/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/organization/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/organization/delete.operation.js +37 -0
- package/dist/nodes/Probo/actions/organization/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/organization/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/organization/get.operation.js +51 -0
- package/dist/nodes/Probo/actions/organization/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/organization/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/organization/getAll.operation.js +77 -0
- package/dist/nodes/Probo/actions/organization/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/organization/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/organization/index.js +98 -0
- package/dist/nodes/Probo/actions/organization/index.js.map +1 -0
- package/dist/nodes/Probo/actions/organization/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/organization/update.operation.js +130 -0
- package/dist/nodes/Probo/actions/organization/update.operation.js.map +1 -0
- package/dist/package.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Probo.node.js","sourceRoot":"","sources":["../../../nodes/Probo/Probo.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AACtB,uCAImB;AAEnB,MAAa,KAAK;IAAlB;QACC,gBAAW,GAAyB;YACnC,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M,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACnD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CAKD;AAjHD,sBAiHC"}
|
|
@@ -43,6 +43,7 @@ const datum = __importStar(require("./datum"));
|
|
|
43
43
|
const execute = __importStar(require("./execute"));
|
|
44
44
|
const framework = __importStar(require("./framework"));
|
|
45
45
|
const measure = __importStar(require("./measure"));
|
|
46
|
+
const organization = __importStar(require("./organization"));
|
|
46
47
|
exports.resources = {
|
|
47
48
|
asset: asset,
|
|
48
49
|
control: control,
|
|
@@ -50,6 +51,7 @@ exports.resources = {
|
|
|
50
51
|
execute: execute,
|
|
51
52
|
framework: framework,
|
|
52
53
|
measure: measure,
|
|
54
|
+
organization: organization,
|
|
53
55
|
};
|
|
54
56
|
function getAllResourceOperations() {
|
|
55
57
|
const operations = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,4DAWC;AAED,oDAQC;AAED,gDAeC;AAlED,+CAAiC;AACjC,mDAAqC;AACrC,+CAAiC;AACjC,mDAAqC;AACrC,uDAAyC;AACzC,mDAAqC;AACrC,6DAA+C;AAYlC,QAAA,SAAS,GAAmC;IACxD,KAAK,EAAE,KAAuB;IAC9B,OAAO,EAAE,OAAyB;IAClC,KAAK,EAAE,KAAuB;IAC9B,OAAO,EAAE,OAAyB;IAClC,SAAS,EAAE,SAA2B;IACtC,OAAO,EAAE,OAAyB;IAClC,YAAY,EAAE,YAA8B;CAC5C,C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AAsB,aAAa,kBAAkB,YAAY,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,OAAO,SAAS,CAAC,OAAO,CAAC;AAC1B,CAAC"}
|
|
@@ -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,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,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,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,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/organization/update.operation.ts"],"names":[],"mappings":";;;AAsFA,0BA2CC;AAhID,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;IACD;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,CA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"version": "0.
|
|
3
|
+
"version": "0.96.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "n8n-node build",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/getprobo/probo.git",
|
|
43
|
+
"url": "git+https://github.com/getprobo/probo.git",
|
|
44
44
|
"directory": "packages/n8n-node"
|
|
45
45
|
},
|
|
46
46
|
"bugs": {
|