n8n-nodes-base 1.92.0 → 1.93.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.
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +0 -9
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js +13 -0
- package/dist/credentials/MicrosoftTeamsOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/Snowflake.credentials.js +46 -2
- package/dist/credentials/Snowflake.credentials.js.map +1 -1
- package/dist/known/credentials.json +10 -1
- package/dist/known/nodes.json +20 -0
- package/dist/methods/defined.json +6 -0
- package/dist/methods/referenced.json +3 -0
- package/dist/nodes/Aws/IAM/AwsIam.node.js +95 -0
- package/dist/nodes/Aws/IAM/AwsIam.node.js.map +1 -0
- package/dist/nodes/Aws/IAM/AwsIam.node.json +18 -0
- package/dist/nodes/Aws/IAM/AwsIam.svg +18 -0
- package/dist/nodes/Aws/IAM/descriptions/common.js +188 -0
- package/dist/nodes/Aws/IAM/descriptions/common.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js +175 -0
- package/dist/nodes/Aws/IAM/descriptions/group/Group.resource.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js +66 -0
- package/dist/nodes/Aws/IAM/descriptions/group/create.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js +43 -0
- package/dist/nodes/Aws/IAM/descriptions/group/delete.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js +50 -0
- package/dist/nodes/Aws/IAM/descriptions/group/get.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js +47 -0
- package/dist/nodes/Aws/IAM/descriptions/group/getAll.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js +70 -0
- package/dist/nodes/Aws/IAM/descriptions/group/update.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/index.js +42 -0
- package/dist/nodes/Aws/IAM/descriptions/index.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js +231 -0
- package/dist/nodes/Aws/IAM/descriptions/user/User.resource.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js +47 -0
- package/dist/nodes/Aws/IAM/descriptions/user/addToGroup.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js +118 -0
- package/dist/nodes/Aws/IAM/descriptions/user/create.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js +43 -0
- package/dist/nodes/Aws/IAM/descriptions/user/delete.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js +43 -0
- package/dist/nodes/Aws/IAM/descriptions/user/get.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js +66 -0
- package/dist/nodes/Aws/IAM/descriptions/user/getAll.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js +74 -0
- package/dist/nodes/Aws/IAM/descriptions/user/removeFromGroup.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js +68 -0
- package/dist/nodes/Aws/IAM/descriptions/user/update.operation.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/constants.js +47 -0
- package/dist/nodes/Aws/IAM/helpers/constants.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/errorHandler.js +90 -0
- package/dist/nodes/Aws/IAM/helpers/errorHandler.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/types.js +17 -0
- package/dist/nodes/Aws/IAM/helpers/types.js.map +1 -0
- package/dist/nodes/Aws/IAM/helpers/utils.js +279 -0
- package/dist/nodes/Aws/IAM/helpers/utils.js.map +1 -0
- package/dist/nodes/Aws/IAM/methods/index.js +39 -0
- package/dist/nodes/Aws/IAM/methods/index.js.map +1 -0
- package/dist/nodes/Aws/IAM/methods/listSearch.js +132 -0
- package/dist/nodes/Aws/IAM/methods/listSearch.js.map +1 -0
- package/dist/nodes/Aws/IAM/transport/index.js +64 -0
- package/dist/nodes/Aws/IAM/transport/index.js.map +1 -0
- package/dist/nodes/Cron/Cron.node.js +1 -1
- package/dist/nodes/Cron/Cron.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +2 -2
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +2 -2
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/Evaluation/Evaluation/Description.node.js +146 -0
- package/dist/nodes/Evaluation/Evaluation/Description.node.js.map +1 -0
- package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js +117 -0
- package/dist/nodes/Evaluation/Evaluation/Evaluation.node.ee.js.map +1 -0
- package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +187 -0
- package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -0
- package/dist/nodes/Evaluation/methods/index.js +42 -0
- package/dist/nodes/Evaluation/methods/index.js.map +1 -0
- package/dist/nodes/Evaluation/methods/loadOptions.js +40 -0
- package/dist/nodes/Evaluation/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js +119 -0
- package/dist/nodes/Evaluation/utils/evaluationTriggerUtils.js.map +1 -0
- package/dist/nodes/Evaluation/utils/evaluationUtils.js +171 -0
- package/dist/nodes/Evaluation/utils/evaluationUtils.js.map +1 -0
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +4 -3
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
- package/dist/nodes/Form/common.descriptions.js +2 -2
- package/dist/nodes/Form/common.descriptions.js.map +1 -1
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +113 -107
- package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +52 -106
- package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js +97 -0
- package/dist/nodes/Google/Sheet/v2/actions/utils/readOperation.js.map +1 -0
- package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +20 -17
- package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Google/YouTube/YouTube.node.js +4 -2
- package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
- package/dist/nodes/Interval/Interval.node.js +1 -1
- package/dist/nodes/Interval/Interval.node.js.map +1 -1
- package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +2 -2
- package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
- package/dist/nodes/MQTT/MqttTrigger.node.js +2 -2
- package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
- package/dist/nodes/ManualTrigger/ManualTrigger.node.js +1 -1
- package/dist/nodes/ManualTrigger/ManualTrigger.node.js.map +1 -1
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +93 -0
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharepoint.node.json +18 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js +190 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/common.descriptions.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js +108 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/File.resource.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js +62 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/download.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js +129 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/update.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js +77 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/file/upload.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/index.js +45 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/index.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js +175 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/Item.resource.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js +100 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/create.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js +62 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/delete.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js +83 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/get.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js +203 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/getAll.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js +100 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/update.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js +100 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/item/upsert.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js +99 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/List.resource.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js +65 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/get.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js +105 -0
- package/dist/nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js +17 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/utils.js +252 -0
- package/dist/nodes/Microsoft/SharePoint/helpers/utils.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/methods/index.js +42 -0
- package/dist/nodes/Microsoft/SharePoint/methods/index.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js +222 -0
- package/dist/nodes/Microsoft/SharePoint/methods/listSearch.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js +104 -0
- package/dist/nodes/Microsoft/SharePoint/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/test/credentials.js +54 -0
- package/dist/nodes/Microsoft/SharePoint/test/credentials.js.map +1 -0
- package/dist/nodes/Microsoft/SharePoint/transport/index.js +46 -0
- package/dist/nodes/Microsoft/SharePoint/transport/index.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +387 -0
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.json +18 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/types.js +17 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/types.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +147 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -0
- package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
- package/dist/nodes/PostBin/BinDescription.js +1 -1
- package/dist/nodes/PostBin/BinDescription.js.map +1 -1
- package/dist/nodes/PostBin/GenericFunctions.js +5 -5
- package/dist/nodes/PostBin/GenericFunctions.js.map +1 -1
- package/dist/nodes/PostBin/PostBin.node.js +1 -1
- package/dist/nodes/PostBin/PostBin.node.js.map +1 -1
- package/dist/nodes/PostBin/RequestDescription.js +2 -2
- package/dist/nodes/PostBin/RequestDescription.js.map +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
- package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +2 -2
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +8 -3
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/utils.js +43 -0
- package/dist/nodes/RespondToWebhook/utils.js.map +1 -0
- package/dist/nodes/Schedule/ScheduleTrigger.node.js +1 -1
- package/dist/nodes/Schedule/ScheduleTrigger.node.js.map +1 -1
- package/dist/nodes/Snowflake/GenericFunctions.js +34 -2
- package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.js +5 -7
- package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
- package/dist/nodes/SseTrigger/SseTrigger.node.js +2 -2
- package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
- package/dist/types/credentials.json +6 -6
- package/dist/types/nodes.json +22 -17
- package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +12 -2
- package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
- package/package.json +13 -9
- /package/dist/{credentials/icons/SharePoint.svg → nodes/Microsoft/SharePoint/microsoftSharePoint.svg} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var get_operation_exports = {};
|
|
20
|
+
__export(get_operation_exports, {
|
|
21
|
+
description: () => description
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(get_operation_exports);
|
|
24
|
+
var import_n8n_workflow = require("n8n-workflow");
|
|
25
|
+
var import_common = require("../common.descriptions");
|
|
26
|
+
const properties = [
|
|
27
|
+
{
|
|
28
|
+
...import_common.siteRLC,
|
|
29
|
+
description: "Select the site to retrieve lists from"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
...import_common.listRLC,
|
|
33
|
+
description: "Select the list you want to retrieve",
|
|
34
|
+
displayOptions: {
|
|
35
|
+
hide: {
|
|
36
|
+
...import_common.untilSiteSelected
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayName: "Simplify",
|
|
42
|
+
name: "simplify",
|
|
43
|
+
default: true,
|
|
44
|
+
routing: {
|
|
45
|
+
send: {
|
|
46
|
+
property: "$select",
|
|
47
|
+
type: "query",
|
|
48
|
+
value: '={{ $value ? "id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl" : undefined }}'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
type: "boolean"
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
const displayOptions = {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ["list"],
|
|
57
|
+
operation: ["get"]
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
description
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../nodes/Microsoft/SharePoint/descriptions/list/get.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { listRLC, siteRLC, untilSiteSelected } from '../common.descriptions';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...siteRLC,\n\t\tdescription: 'Select the site to retrieve lists from',\n\t},\n\t{\n\t\t...listRLC,\n\t\tdescription: 'Select the list you want to retrieve',\n\t\tdisplayOptions: {\n\t\t\thide: {\n\t\t\t\t...untilSiteSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simplify',\n\t\tdefault: true,\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: '$select',\n\t\t\t\ttype: 'query',\n\t\t\t\tvalue:\n\t\t\t\t\t'={{ $value ? \"id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl\" : undefined }}',\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['list'],\n\t\toperation: ['get'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAoD;AAEpD,MAAM,aAAgC;AAAA,EACrC;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,EACd;AAAA,EACA;AAAA,IACC,GAAG;AAAA,IACH,aAAa;AAAA,IACb,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,EACD;AAAA,EACA;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,MACR,MAAM;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OACC;AAAA,MACF;AAAA,IACD;AAAA,IACA,MAAM;AAAA,EACP;AACD;AAEA,MAAM,iBAAiB;AAAA,EACtB,MAAM;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,WAAW,CAAC,KAAK;AAAA,EAClB;AACD;AAEO,MAAM,kBAAc,0CAAqB,gBAAgB,UAAU;","names":[]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getAll_operation_exports = {};
|
|
20
|
+
__export(getAll_operation_exports, {
|
|
21
|
+
description: () => description
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getAll_operation_exports);
|
|
24
|
+
var import_n8n_workflow = require("n8n-workflow");
|
|
25
|
+
var import_common = require("../common.descriptions");
|
|
26
|
+
const properties = [
|
|
27
|
+
{
|
|
28
|
+
...import_common.siteRLC,
|
|
29
|
+
description: "Select the site to retrieve lists from"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: "Return All",
|
|
33
|
+
name: "returnAll",
|
|
34
|
+
default: false,
|
|
35
|
+
description: "Whether to return all results or only up to a given limit",
|
|
36
|
+
routing: {
|
|
37
|
+
send: {
|
|
38
|
+
paginate: "={{ $value }}"
|
|
39
|
+
},
|
|
40
|
+
operations: {
|
|
41
|
+
pagination: {
|
|
42
|
+
type: "generic",
|
|
43
|
+
properties: {
|
|
44
|
+
continue: '={{ !!$response.body?.["@odata.nextLink"] }}',
|
|
45
|
+
request: {
|
|
46
|
+
url: '={{ $response.body?.["@odata.nextLink"] ?? $request.url }}',
|
|
47
|
+
qs: {
|
|
48
|
+
$select: '={{ !!$response.body?.["@odata.nextLink"] ? undefined : $request.qs?.$select }}'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
type: "boolean"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: "Limit",
|
|
59
|
+
name: "limit",
|
|
60
|
+
default: 50,
|
|
61
|
+
description: "Max number of results to return",
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
returnAll: [false]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
routing: {
|
|
68
|
+
send: {
|
|
69
|
+
property: "$top",
|
|
70
|
+
type: "query",
|
|
71
|
+
value: "={{ $value }}"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
type: "number",
|
|
75
|
+
typeOptions: {
|
|
76
|
+
minValue: 1
|
|
77
|
+
},
|
|
78
|
+
validateType: "number"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: "Simplify",
|
|
82
|
+
name: "simplify",
|
|
83
|
+
default: true,
|
|
84
|
+
routing: {
|
|
85
|
+
send: {
|
|
86
|
+
property: "$select",
|
|
87
|
+
type: "query",
|
|
88
|
+
value: '={{ $value ? "id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl" : undefined }}'
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
type: "boolean"
|
|
92
|
+
}
|
|
93
|
+
];
|
|
94
|
+
const displayOptions = {
|
|
95
|
+
show: {
|
|
96
|
+
resource: ["list"],
|
|
97
|
+
operation: ["getAll"]
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const description = (0, import_n8n_workflow.updateDisplayOptions)(displayOptions, properties);
|
|
101
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
102
|
+
0 && (module.exports = {
|
|
103
|
+
description
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../nodes/Microsoft/SharePoint/descriptions/list/getAll.operation.ts"],"sourcesContent":["import { updateDisplayOptions, type INodeProperties } from 'n8n-workflow';\n\nimport { siteRLC } from '../common.descriptions';\n\nconst properties: INodeProperties[] = [\n\t{\n\t\t...siteRLC,\n\t\tdescription: 'Select the site to retrieve lists from',\n\t},\n\t{\n\t\tdisplayName: 'Return All',\n\t\tname: 'returnAll',\n\t\tdefault: false,\n\t\tdescription: 'Whether to return all results or only up to a given limit',\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tpaginate: '={{ $value }}',\n\t\t\t},\n\t\t\toperations: {\n\t\t\t\tpagination: {\n\t\t\t\t\ttype: 'generic',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tcontinue: '={{ !!$response.body?.[\"@odata.nextLink\"] }}',\n\t\t\t\t\t\trequest: {\n\t\t\t\t\t\t\turl: '={{ $response.body?.[\"@odata.nextLink\"] ?? $request.url }}',\n\t\t\t\t\t\t\tqs: {\n\t\t\t\t\t\t\t\t$select:\n\t\t\t\t\t\t\t\t\t'={{ !!$response.body?.[\"@odata.nextLink\"] ? undefined : $request.qs?.$select }}',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n\t{\n\t\tdisplayName: 'Limit',\n\t\tname: 'limit',\n\t\tdefault: 50,\n\t\tdescription: 'Max number of results to return',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\treturnAll: [false],\n\t\t\t},\n\t\t},\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: '$top',\n\t\t\t\ttype: 'query',\n\t\t\t\tvalue: '={{ $value }}',\n\t\t\t},\n\t\t},\n\t\ttype: 'number',\n\t\ttypeOptions: {\n\t\t\tminValue: 1,\n\t\t},\n\t\tvalidateType: 'number',\n\t},\n\t{\n\t\tdisplayName: 'Simplify',\n\t\tname: 'simplify',\n\t\tdefault: true,\n\t\trouting: {\n\t\t\tsend: {\n\t\t\t\tproperty: '$select',\n\t\t\t\ttype: 'query',\n\t\t\t\tvalue:\n\t\t\t\t\t'={{ $value ? \"id,name,displayName,description,createdDateTime,lastModifiedDateTime,webUrl\" : undefined }}',\n\t\t\t},\n\t\t},\n\t\ttype: 'boolean',\n\t},\n];\n\nconst displayOptions = {\n\tshow: {\n\t\tresource: ['list'],\n\t\toperation: ['getAll'],\n\t},\n};\n\nexport const description = updateDisplayOptions(displayOptions, properties);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2D;AAE3D,oBAAwB;AA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|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var interfaces_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(interfaces_exports);
|
|
17
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/helpers/interfaces.ts"],"sourcesContent":["import type { IDataObject } from 'n8n-workflow';\n\nexport interface IListColumnType {\n\tid: string;\n\thidden: boolean;\n\tname: string;\n\tdisplayName: string;\n\treadOnly: boolean;\n\trequired: boolean;\n\ttype: string;\n\tenforceUniqueValues: boolean;\n\tchoice?: {\n\t\tchoices: string[];\n\t};\n}\n\nexport interface IDriveItem {\n\tid: string;\n\tname: string;\n\tfile?: IDataObject;\n\tfolder?: IDataObject;\n}\n\nexport interface IListItem {\n\tid: string;\n\tfields: {\n\t\tTitle: string;\n\t};\n}\n\nexport interface IList {\n\tid: string;\n\tdisplayName: string;\n}\n\nexport interface ISite {\n\tid: string;\n\ttitle: string;\n}\n\nexport interface IErrorResponse {\n\terror: {\n\t\tcode: string;\n\t\tmessage: string;\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var utils_exports = {};
|
|
20
|
+
__export(utils_exports, {
|
|
21
|
+
downloadFilePostReceive: () => downloadFilePostReceive,
|
|
22
|
+
handleErrorPostReceive: () => handleErrorPostReceive,
|
|
23
|
+
itemColumnsPreSend: () => itemColumnsPreSend,
|
|
24
|
+
itemGetAllFieldsPreSend: () => itemGetAllFieldsPreSend,
|
|
25
|
+
simplifyItemPostReceive: () => simplifyItemPostReceive,
|
|
26
|
+
simplifyListPostReceive: () => simplifyListPostReceive,
|
|
27
|
+
uploadFilePreSend: () => uploadFilePreSend
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(utils_exports);
|
|
30
|
+
var import_n8n_workflow = require("n8n-workflow");
|
|
31
|
+
var import_transport = require("../transport");
|
|
32
|
+
async function simplifyItemPostReceive(items, _response) {
|
|
33
|
+
if (items.length === 0) {
|
|
34
|
+
return items;
|
|
35
|
+
}
|
|
36
|
+
const simplify = this.getNodeParameter("simplify");
|
|
37
|
+
if (simplify) {
|
|
38
|
+
for (const item of items) {
|
|
39
|
+
delete item.json["@odata.context"];
|
|
40
|
+
delete item.json["@odata.etag"];
|
|
41
|
+
delete item.json["fields@odata.navigationLink"];
|
|
42
|
+
delete item.json.fields?.["@odata.etag"];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return items;
|
|
46
|
+
}
|
|
47
|
+
async function simplifyListPostReceive(items, _response) {
|
|
48
|
+
if (items.length === 0) {
|
|
49
|
+
return items;
|
|
50
|
+
}
|
|
51
|
+
const simplify = this.getNodeParameter("simplify");
|
|
52
|
+
if (simplify) {
|
|
53
|
+
for (const item of items) {
|
|
54
|
+
delete item.json["@odata.context"];
|
|
55
|
+
delete item.json["@odata.etag"];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return items;
|
|
59
|
+
}
|
|
60
|
+
async function downloadFilePostReceive(_items, response) {
|
|
61
|
+
let fileName;
|
|
62
|
+
if (response.headers["content-disposition"]) {
|
|
63
|
+
let fileNameMatch = /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(
|
|
64
|
+
response.headers["content-disposition"]
|
|
65
|
+
);
|
|
66
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : void 0;
|
|
67
|
+
if (fileName) {
|
|
68
|
+
fileName = decodeURIComponent(fileName);
|
|
69
|
+
} else {
|
|
70
|
+
fileNameMatch = /filename="?([^"]*?)"?(;|$)/g.exec(
|
|
71
|
+
response.headers["content-disposition"]
|
|
72
|
+
);
|
|
73
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : void 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const newItem = {
|
|
77
|
+
json: {},
|
|
78
|
+
binary: {
|
|
79
|
+
data: await this.helpers.prepareBinaryData(
|
|
80
|
+
response.body,
|
|
81
|
+
fileName,
|
|
82
|
+
response.headers["content-type"]
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return [newItem];
|
|
87
|
+
}
|
|
88
|
+
async function uploadFilePreSend(requestOptions) {
|
|
89
|
+
const binaryProperty = this.getNodeParameter("fileContents");
|
|
90
|
+
this.helpers.assertBinaryData(binaryProperty);
|
|
91
|
+
const binaryDataBuffer = await this.helpers.getBinaryDataBuffer(binaryProperty);
|
|
92
|
+
requestOptions.body = binaryDataBuffer;
|
|
93
|
+
return requestOptions;
|
|
94
|
+
}
|
|
95
|
+
async function itemGetAllFieldsPreSend(requestOptions) {
|
|
96
|
+
const fields = this.getNodeParameter("options.fields");
|
|
97
|
+
requestOptions.qs ??= {};
|
|
98
|
+
if (fields.some((x) => x === "fields")) {
|
|
99
|
+
requestOptions.qs.$expand = "fields";
|
|
100
|
+
}
|
|
101
|
+
requestOptions.qs.$select = fields.map((x) => x);
|
|
102
|
+
return requestOptions;
|
|
103
|
+
}
|
|
104
|
+
async function itemColumnsPreSend(requestOptions) {
|
|
105
|
+
const mapperValue = this.getNodeParameter("columns");
|
|
106
|
+
const operation = this.getNodeParameter("operation");
|
|
107
|
+
if (["upsert", "update"].includes(operation) && mapperValue.matchingColumns?.length > 0) {
|
|
108
|
+
if (!mapperValue.matchingColumns.includes("id")) {
|
|
109
|
+
const site = this.getNodeParameter("site", void 0, { extractValue: true });
|
|
110
|
+
const list = this.getNodeParameter("list", void 0, { extractValue: true });
|
|
111
|
+
const response = await import_transport.microsoftSharePointApiRequest.call(
|
|
112
|
+
this,
|
|
113
|
+
"GET",
|
|
114
|
+
`/sites/${site}/lists/${list}/items`,
|
|
115
|
+
{},
|
|
116
|
+
{
|
|
117
|
+
$filter: mapperValue.matchingColumns.map((x) => `fields/${x} eq '${mapperValue.value[x]}'`).join(" and")
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
Prefer: "HonorNonIndexedQueriesWarningMayFailRandomly"
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
if (response.value?.length === 1) {
|
|
124
|
+
mapperValue.matchingColumns.push("id");
|
|
125
|
+
mapperValue.value ??= {};
|
|
126
|
+
mapperValue.value.id = response.value[0].id;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (operation === "upsert") {
|
|
130
|
+
if (mapperValue.matchingColumns.includes("id")) {
|
|
131
|
+
if (!mapperValue.value?.id) {
|
|
132
|
+
throw new import_n8n_workflow.NodeOperationError(
|
|
133
|
+
this.getNode(),
|
|
134
|
+
"The column(s) don't match any existing item",
|
|
135
|
+
{
|
|
136
|
+
description: "Double-check the value(s) for the columns to match and try again"
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
requestOptions.url += "/" + mapperValue.value.id;
|
|
141
|
+
delete mapperValue.value.id;
|
|
142
|
+
requestOptions.method = "PATCH";
|
|
143
|
+
}
|
|
144
|
+
} else if (operation === "update") {
|
|
145
|
+
if (mapperValue.matchingColumns.includes("id") && mapperValue.value?.id) {
|
|
146
|
+
requestOptions.url += "/" + mapperValue.value.id;
|
|
147
|
+
delete mapperValue.value.id;
|
|
148
|
+
} else {
|
|
149
|
+
throw new import_n8n_workflow.NodeOperationError(
|
|
150
|
+
this.getNode(),
|
|
151
|
+
"The column(s) don't match any existing item",
|
|
152
|
+
{
|
|
153
|
+
description: "Double-check the value(s) for the columns to match and try again"
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const fields = {};
|
|
160
|
+
for (const [key, value] of Object.entries(mapperValue.value ?? {})) {
|
|
161
|
+
if (mapperValue.schema.find((x) => x.id === key)?.type === "url") {
|
|
162
|
+
fields[key] = {
|
|
163
|
+
Description: value,
|
|
164
|
+
Url: value
|
|
165
|
+
};
|
|
166
|
+
} else {
|
|
167
|
+
fields[key] = value;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
requestOptions.body ??= {};
|
|
171
|
+
requestOptions.body.fields = fields;
|
|
172
|
+
return requestOptions;
|
|
173
|
+
}
|
|
174
|
+
async function handleErrorPostReceive(data, response) {
|
|
175
|
+
if (String(response.statusCode).startsWith("4") || String(response.statusCode).startsWith("5")) {
|
|
176
|
+
const resource = this.getNodeParameter("resource");
|
|
177
|
+
const operation = this.getNodeParameter("operation");
|
|
178
|
+
if (resource === "file" && operation === "download" && Buffer.isBuffer(response.body)) {
|
|
179
|
+
response.body = (0, import_n8n_workflow.jsonParse)(response.body.toString());
|
|
180
|
+
}
|
|
181
|
+
const error = response.body?.error ?? {};
|
|
182
|
+
if (resource === "file") {
|
|
183
|
+
if (operation === "download") {
|
|
184
|
+
} else if (operation === "update") {
|
|
185
|
+
} else if (operation === "upload") {
|
|
186
|
+
}
|
|
187
|
+
} else if (resource === "item") {
|
|
188
|
+
if (operation === "create") {
|
|
189
|
+
if (error.code === "invalidRequest") {
|
|
190
|
+
if (error.message === "One or more fields with unique constraints already has the provided value.") {
|
|
191
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
192
|
+
message: "One or more fields with unique constraints already has the provided value",
|
|
193
|
+
description: "Double-check the value(s) in 'Values to Send' and try again"
|
|
194
|
+
});
|
|
195
|
+
} else {
|
|
196
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
197
|
+
message: error.message,
|
|
198
|
+
description: "Double-check the value(s) in 'Values to Send' and try again"
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
} else if (operation === "delete") {
|
|
203
|
+
} else if (operation === "get") {
|
|
204
|
+
} else if (operation === "getAll") {
|
|
205
|
+
} else if (operation === "update") {
|
|
206
|
+
if (error.code === "invalidRequest") {
|
|
207
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
208
|
+
message: error.message,
|
|
209
|
+
description: "Double-check the value(s) in 'Values to Update' and try again"
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
} else if (operation === "upsert") {
|
|
213
|
+
if (error.code === "invalidRequest") {
|
|
214
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
215
|
+
message: error.message,
|
|
216
|
+
description: "Double-check the value(s) in 'Values to Send' and try again"
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
} else if (resource === "list") {
|
|
221
|
+
if (operation === "get") {
|
|
222
|
+
} else if (operation === "getAll") {
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (error.code === "itemNotFound") {
|
|
226
|
+
if (error.message.includes("list item")) {
|
|
227
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
228
|
+
message: "The required item doesn't match any existing one",
|
|
229
|
+
description: "Double-check the value in the parameter 'Item' and try again"
|
|
230
|
+
});
|
|
231
|
+
} else if (error.message.includes("list")) {
|
|
232
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response, {
|
|
233
|
+
message: "The required list doesn't match any existing one",
|
|
234
|
+
description: "Double-check the value in the parameter 'List' and try again"
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
throw new import_n8n_workflow.NodeApiError(this.getNode(), response);
|
|
239
|
+
}
|
|
240
|
+
return data;
|
|
241
|
+
}
|
|
242
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
243
|
+
0 && (module.exports = {
|
|
244
|
+
downloadFilePostReceive,
|
|
245
|
+
handleErrorPostReceive,
|
|
246
|
+
itemColumnsPreSend,
|
|
247
|
+
itemGetAllFieldsPreSend,
|
|
248
|
+
simplifyItemPostReceive,
|
|
249
|
+
simplifyListPostReceive,
|
|
250
|
+
uploadFilePreSend
|
|
251
|
+
});
|
|
252
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/helpers/utils.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIHttpRequestOptions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n\tJsonObject,\n\tResourceMapperValue,\n} from 'n8n-workflow';\nimport { jsonParse, NodeApiError, NodeOperationError } from 'n8n-workflow';\n\nimport type { IErrorResponse } from './interfaces';\nimport { microsoftSharePointApiRequest } from '../transport';\n\nexport async function simplifyItemPostReceive(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (items.length === 0) {\n\t\treturn items;\n\t}\n\n\tconst simplify = this.getNodeParameter('simplify') as boolean;\n\tif (simplify) {\n\t\tfor (const item of items) {\n\t\t\tdelete item.json['@odata.context'];\n\t\t\tdelete item.json['@odata.etag'];\n\t\t\tdelete item.json['fields@odata.navigationLink'];\n\t\t\tdelete (item.json.fields as IDataObject)?.['@odata.etag'];\n\t\t}\n\t}\n\n\treturn items;\n}\n\nexport async function simplifyListPostReceive(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (items.length === 0) {\n\t\treturn items;\n\t}\n\n\tconst simplify = this.getNodeParameter('simplify') as boolean;\n\tif (simplify) {\n\t\tfor (const item of items) {\n\t\t\tdelete item.json['@odata.context'];\n\t\t\tdelete item.json['@odata.etag'];\n\t\t}\n\t}\n\n\treturn items;\n}\n\nexport async function downloadFilePostReceive(\n\tthis: IExecuteSingleFunctions,\n\t_items: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tlet fileName: string | undefined;\n\tif (response.headers['content-disposition']) {\n\t\tlet fileNameMatch = /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(\n\t\t\tresponse.headers['content-disposition'] as string,\n\t\t);\n\t\tfileName =\n\t\t\tfileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\n\t\tif (fileName) {\n\t\t\tfileName = decodeURIComponent(fileName);\n\t\t} else {\n\t\t\tfileNameMatch = /filename=\"?([^\"]*?)\"?(;|$)/g.exec(\n\t\t\t\tresponse.headers['content-disposition'] as string,\n\t\t\t);\n\t\t\tfileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\n\t\t}\n\t}\n\n\tconst newItem: INodeExecutionData = {\n\t\tjson: {},\n\t\tbinary: {\n\t\t\tdata: await this.helpers.prepareBinaryData(\n\t\t\t\tresponse.body as Buffer,\n\t\t\t\tfileName,\n\t\t\t\tresponse.headers['content-type'] as string,\n\t\t\t),\n\t\t},\n\t};\n\n\treturn [newItem];\n}\n\nexport async function uploadFilePreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst binaryProperty = this.getNodeParameter('fileContents') as string;\n\tthis.helpers.assertBinaryData(binaryProperty);\n\tconst binaryDataBuffer = await this.helpers.getBinaryDataBuffer(binaryProperty);\n\trequestOptions.body = binaryDataBuffer;\n\treturn requestOptions;\n}\n\nexport async function itemGetAllFieldsPreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst fields = this.getNodeParameter('options.fields') as string[];\n\trequestOptions.qs ??= {};\n\tif (fields.some((x) => x === 'fields')) {\n\t\trequestOptions.qs.$expand = 'fields';\n\t}\n\trequestOptions.qs.$select = fields.map((x) => x);\n\treturn requestOptions;\n}\n\nexport async function itemColumnsPreSend(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst mapperValue = this.getNodeParameter('columns') as ResourceMapperValue;\n\tconst operation = this.getNodeParameter('operation') as string;\n\n\tif (['upsert', 'update'].includes(operation) && mapperValue.matchingColumns?.length > 0) {\n\t\tif (!mapperValue.matchingColumns.includes('id')) {\n\t\t\tconst site = this.getNodeParameter('site', undefined, { extractValue: true }) as string;\n\t\t\tconst list = this.getNodeParameter('list', undefined, { extractValue: true }) as string;\n\n\t\t\tconst response = await microsoftSharePointApiRequest.call(\n\t\t\t\tthis,\n\t\t\t\t'GET',\n\t\t\t\t`/sites/${site}/lists/${list}/items`,\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\t$filter: mapperValue.matchingColumns\n\t\t\t\t\t\t.map((x) => `fields/${x} eq '${mapperValue.value![x]}'`)\n\t\t\t\t\t\t.join(' and'),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tPrefer: 'HonorNonIndexedQueriesWarningMayFailRandomly',\n\t\t\t\t},\n\t\t\t);\n\t\t\tif (response.value?.length === 1) {\n\t\t\t\tmapperValue.matchingColumns.push('id');\n\t\t\t\tmapperValue.value ??= {};\n\t\t\t\tmapperValue.value.id = response.value[0].id;\n\t\t\t}\n\t\t}\n\n\t\tif (operation === 'upsert') {\n\t\t\tif (mapperValue.matchingColumns.includes('id')) {\n\t\t\t\tif (!mapperValue.value?.id) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"The column(s) don't match any existing item\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: 'Double-check the value(s) for the columns to match and try again',\n\t\t\t\t\t\t},\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\trequestOptions.url += '/' + mapperValue.value.id;\n\t\t\t\tdelete mapperValue.value.id;\n\t\t\t\trequestOptions.method = 'PATCH';\n\t\t\t}\n\t\t} else if (operation === 'update') {\n\t\t\tif (mapperValue.matchingColumns.includes('id') && mapperValue.value?.id) {\n\t\t\t\trequestOptions.url += '/' + mapperValue.value.id;\n\t\t\t\tdelete mapperValue.value.id;\n\t\t\t} else {\n\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\"The column(s) don't match any existing item\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription: 'Double-check the value(s) for the columns to match and try again',\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tconst fields = {} as IDataObject;\n\tfor (const [key, value] of Object.entries(mapperValue.value ?? {})) {\n\t\tif (mapperValue.schema.find((x) => x.id === key)?.type === 'url') {\n\t\t\tfields[key] = {\n\t\t\t\tDescription: value,\n\t\t\t\tUrl: value,\n\t\t\t};\n\t\t} else {\n\t\t\tfields[key] = value;\n\t\t}\n\t}\n\trequestOptions.body ??= {};\n\t(requestOptions.body as IDataObject).fields = fields;\n\n\treturn requestOptions;\n}\n\nexport async function handleErrorPostReceive(\n\tthis: IExecuteSingleFunctions,\n\tdata: INodeExecutionData[],\n\tresponse: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tif (String(response.statusCode).startsWith('4') || String(response.statusCode).startsWith('5')) {\n\t\tconst resource = this.getNodeParameter('resource') as string;\n\t\tconst operation = this.getNodeParameter('operation') as string;\n\n\t\tif (resource === 'file' && operation === 'download' && Buffer.isBuffer(response.body)) {\n\t\t\tresponse.body = jsonParse((response.body as Buffer).toString());\n\t\t}\n\t\tconst error = (response.body as IErrorResponse)?.error ?? {};\n\n\t\tif (resource === 'file') {\n\t\t\tif (operation === 'download') {\n\t\t\t} else if (operation === 'update') {\n\t\t\t} else if (operation === 'upload') {\n\t\t\t}\n\t\t} else if (resource === 'item') {\n\t\t\tif (operation === 'create') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tif (\n\t\t\t\t\t\terror.message ===\n\t\t\t\t\t\t'One or more fields with unique constraints already has the provided value.'\n\t\t\t\t\t) {\n\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\t\tmessage: 'One or more fields with unique constraints already has the provided value',\n\t\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (operation === 'delete') {\n\t\t\t} else if (operation === 'get') {\n\t\t\t} else if (operation === 'getAll') {\n\t\t\t} else if (operation === 'update') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Update' and try again\",\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else if (operation === 'upsert') {\n\t\t\t\tif (error.code === 'invalidRequest') {\n\t\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\t\tmessage: error.message,\n\t\t\t\t\t\tdescription: \"Double-check the value(s) in 'Values to Send' and try again\",\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (resource === 'list') {\n\t\t\tif (operation === 'get') {\n\t\t\t} else if (operation === 'getAll') {\n\t\t\t}\n\t\t}\n\n\t\tif (error.code === 'itemNotFound') {\n\t\t\tif (error.message.includes('list item')) {\n\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\tmessage: \"The required item doesn't match any existing one\",\n\t\t\t\t\tdescription: \"Double-check the value in the parameter 'Item' and try again\",\n\t\t\t\t});\n\t\t\t} else if (error.message.includes('list')) {\n\t\t\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject, {\n\t\t\t\t\tmessage: \"The required list doesn't match any existing one\",\n\t\t\t\t\tdescription: \"Double-check the value in the parameter 'List' and try again\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tthrow new NodeApiError(this.getNode(), response as unknown as JsonObject);\n\t}\n\n\treturn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AACpC,gBAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,UAAmC;AAAA,YACzE,SAAS,MAAM;AAAA,YACf,aAAa;AAAA,UACd,CAAC;AAAA,QACF;AAAA,MACD;AAAA,IACD,WAAW,aAAa,QAAQ;AAC/B,UAAI,cAAc,OAAO;AAAA,MACzB,WAAW,cAAc,UAAU;AAAA,MACnC;AAAA,IACD;AAEA,QAAI,MAAM,SAAS,gBAAgB;AAClC,UAAI,MAAM,QAAQ,SAAS,WAAW,GAAG;AACxC,cAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,UAAmC;AAAA,UACzE,SAAS;AAAA,UACT,aAAa;AAAA,QACd,CAAC;AAAA,MACF,WAAW,MAAM,QAAQ,SAAS,MAAM,GAAG;AAC1C,cAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,UAAmC;AAAA,UACzE,SAAS;AAAA,UACT,aAAa;AAAA,QACd,CAAC;AAAA,MACF;AAAA,IACD;AAEA,UAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,QAAiC;AAAA,EACzE;AAEA,SAAO;AACR;","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var methods_exports = {};
|
|
30
|
+
__export(methods_exports, {
|
|
31
|
+
listSearch: () => listSearch,
|
|
32
|
+
resourceMapping: () => resourceMapping
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(methods_exports);
|
|
35
|
+
var listSearch = __toESM(require("./listSearch"));
|
|
36
|
+
var resourceMapping = __toESM(require("./resourceMapping"));
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
listSearch,
|
|
40
|
+
resourceMapping
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../nodes/Microsoft/SharePoint/methods/index.ts"],"sourcesContent":["export * as listSearch from './listSearch';\nexport * as resourceMapping from './resourceMapping';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA4B;AAC5B,sBAAiC;","names":[]}
|