n8n-nodes-base 2.36.3 → 2.37.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/cjs/build.tsbuildinfo +1 -1
- package/dist/credentials/TypeformOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/TypeformOAuth2Api.credentials.js +32 -2
- package/dist/credentials/TypeformOAuth2Api.credentials.js.map +1 -1
- package/dist/known/credentials.json +2 -0
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/grist/v1.schema.js +6 -4
- package/dist/node-definitions/nodes/n8n-nodes-base/grist/v1.ts +28 -4
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_download.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_download.ts +49 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_update.schema.js +28 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_update.ts +59 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_upload.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_upload.ts +46 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/index.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/index.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_create.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_create.ts +47 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_delete.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_delete.ts +43 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get.ts +48 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get_all.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get_all.ts +68 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_update.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_update.ts +47 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_upsert.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_upsert.ts +47 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get.ts +41 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get_all.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get_all.ts +45 -0
- package/dist/nodes/Confluence/actions/attachment/getMany.operation.d.ts +32 -0
- package/dist/nodes/Confluence/actions/attachment/getMany.operation.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/attachment/getMany.operation.js +98 -0
- package/dist/nodes/Confluence/actions/attachment/getMany.operation.js.map +1 -0
- package/dist/nodes/Confluence/actions/attachment/index.d.ts +5 -0
- package/dist/nodes/Confluence/actions/attachment/index.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/attachment/index.js +62 -0
- package/dist/nodes/Confluence/actions/attachment/index.js.map +1 -0
- package/dist/nodes/Confluence/actions/common.d.ts +7 -0
- package/dist/nodes/Confluence/actions/common.d.ts.map +1 -1
- package/dist/nodes/Confluence/actions/common.js +25 -2
- package/dist/nodes/Confluence/actions/common.js.map +1 -1
- package/dist/nodes/Confluence/actions/description.d.ts.map +1 -1
- package/dist/nodes/Confluence/actions/description.js +6 -0
- package/dist/nodes/Confluence/actions/description.js.map +1 -1
- package/dist/nodes/Confluence/actions/page/append.operation.d.ts +6 -0
- package/dist/nodes/Confluence/actions/page/append.operation.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/page/append.operation.js +85 -0
- package/dist/nodes/Confluence/actions/page/append.operation.js.map +1 -0
- package/dist/nodes/Confluence/actions/page/bodyEnvelope.d.ts +4 -1
- package/dist/nodes/Confluence/actions/page/bodyEnvelope.d.ts.map +1 -1
- package/dist/nodes/Confluence/actions/page/bodyEnvelope.js +28 -7
- package/dist/nodes/Confluence/actions/page/bodyEnvelope.js.map +1 -1
- package/dist/nodes/Confluence/actions/page/delete.operation.d.ts +5 -0
- package/dist/nodes/Confluence/actions/page/delete.operation.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/page/delete.operation.js +82 -0
- package/dist/nodes/Confluence/actions/page/delete.operation.js.map +1 -0
- package/dist/nodes/Confluence/actions/page/index.d.ts +4 -1
- package/dist/nodes/Confluence/actions/page/index.d.ts.map +1 -1
- package/dist/nodes/Confluence/actions/page/index.js +28 -1
- package/dist/nodes/Confluence/actions/page/index.js.map +1 -1
- package/dist/nodes/Confluence/actions/page/pageWrite.d.ts +17 -0
- package/dist/nodes/Confluence/actions/page/pageWrite.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/page/pageWrite.js +70 -0
- package/dist/nodes/Confluence/actions/page/pageWrite.js.map +1 -0
- package/dist/nodes/Confluence/actions/page/update.operation.d.ts +5 -0
- package/dist/nodes/Confluence/actions/page/update.operation.d.ts.map +1 -0
- package/dist/nodes/Confluence/actions/page/update.operation.js +72 -0
- package/dist/nodes/Confluence/actions/page/update.operation.js.map +1 -0
- package/dist/nodes/Confluence/actions/router.d.ts +2 -0
- package/dist/nodes/Confluence/actions/router.d.ts.map +1 -1
- package/dist/nodes/Confluence/actions/router.js +15 -1
- package/dist/nodes/Confluence/actions/router.js.map +1 -1
- package/dist/nodes/Confluence/transport/index.d.ts +6 -0
- package/dist/nodes/Confluence/transport/index.d.ts.map +1 -1
- package/dist/nodes/Confluence/transport/index.js +86 -10
- package/dist/nodes/Confluence/transport/index.js.map +1 -1
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.d.ts.map +1 -1
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js +2 -2
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js.map +1 -1
- package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.d.ts +3 -0
- package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.d.ts.map +1 -0
- package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.js +10 -0
- package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.js.map +1 -0
- package/dist/nodes/Form/Form.node.d.ts.map +1 -1
- package/dist/nodes/Form/Form.node.js +8 -0
- package/dist/nodes/Form/Form.node.js.map +1 -1
- package/dist/nodes/Form/interfaces.d.ts +1 -0
- package/dist/nodes/Form/interfaces.d.ts.map +1 -1
- package/dist/nodes/Form/interfaces.js.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js +8 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js.map +1 -1
- package/dist/nodes/Form/utils/formNodeUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formNodeUtils.js +14 -3
- package/dist/nodes/Form/utils/formNodeUtils.js.map +1 -1
- package/dist/nodes/Form/utils/utils.d.ts +49 -9
- package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/utils.js +309 -69
- package/dist/nodes/Form/utils/utils.js.map +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts.map +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js +0 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.d.ts.map +1 -1
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.js +7 -0
- package/dist/nodes/Google/Calendar/GoogleCalendar.node.js.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +82 -7
- package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +1 -1
- package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -1
- package/dist/nodes/Grist/Grist.node.d.ts.map +1 -1
- package/dist/nodes/Grist/Grist.node.js +60 -2
- package/dist/nodes/Grist/Grist.node.js.map +1 -1
- package/dist/nodes/Grist/OperationDescription.d.ts.map +1 -1
- package/dist/nodes/Grist/OperationDescription.js +83 -3
- package/dist/nodes/Grist/OperationDescription.js.map +1 -1
- package/dist/nodes/Grist/types.d.ts +10 -0
- package/dist/nodes/Grist/types.d.ts.map +1 -1
- package/dist/nodes/MessageAnAgent/MessageAnAgent.node.d.ts.map +1 -1
- package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js +5 -3
- package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js.map +1 -1
- package/dist/nodes/MessageAnAgent/shared.d.ts.map +1 -1
- package/dist/nodes/MessageAnAgent/shared.js +146 -4
- package/dist/nodes/MessageAnAgent/shared.js.map +1 -1
- package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.d.ts.map +1 -1
- package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js +4 -3
- package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.d.ts.map +1 -1
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +3 -8
- package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.d.ts +1 -0
- package/dist/nodes/MongoDb/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.js +15 -2
- package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.d.ts.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.js +32 -19
- package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
- package/dist/nodes/PagerDuty/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/PagerDuty/GenericFunctions.js +5 -2
- package/dist/nodes/PagerDuty/GenericFunctions.js.map +1 -1
- package/dist/nodes/Transform/Aggregate/Aggregate.node.d.ts.map +1 -1
- package/dist/nodes/Transform/Aggregate/Aggregate.node.js +1 -4
- package/dist/nodes/Transform/Aggregate/Aggregate.node.js.map +1 -1
- package/dist/nodes/Transform/SplitOut/utils.d.ts.map +1 -1
- package/dist/nodes/Transform/SplitOut/utils.js +2 -4
- package/dist/nodes/Transform/SplitOut/utils.js.map +1 -1
- package/dist/nodes/Transform/utils/utils.d.ts +6 -0
- package/dist/nodes/Transform/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Transform/utils/utils.js +15 -1
- package/dist/nodes/Transform/utils/utils.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.d.ts +1 -1
- package/dist/types/credentials.json +3 -3
- package/dist/types/nodes.json +9 -8
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeformOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/TypeformOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIrE,qBAAa,iBAAkB,YAAW,eAAe;IACxD,IAAI,SAAuB;IAE3B,OAAO,WAAiB;IAExB,WAAW,SAAyB;IAEpC,gBAAgB,SAAc;IAE9B,UAAU,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"TypeformOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/TypeformOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIrE,qBAAa,iBAAkB,YAAW,eAAe;IACxD,IAAI,SAAuB;IAE3B,OAAO,WAAiB;IAExB,WAAW,SAAyB;IAEpC,gBAAgB,SAAc;IAE9B,UAAU,EAAE,eAAe,EAAE,CAuE3B;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TypeformOAuth2Api = void 0;
|
|
4
|
-
const
|
|
4
|
+
const defaultScopes = ['webhooks:write', 'webhooks:read', 'forms:read'];
|
|
5
5
|
class TypeformOAuth2Api {
|
|
6
6
|
name = 'typeformOAuth2Api';
|
|
7
7
|
extends = ['oAuth2Api'];
|
|
@@ -32,7 +32,37 @@ class TypeformOAuth2Api {
|
|
|
32
32
|
displayName: 'Scope',
|
|
33
33
|
name: 'scope',
|
|
34
34
|
type: 'hidden',
|
|
35
|
-
default:
|
|
35
|
+
default: '={{$self["customScopes"] ? $self["enabledScopes"] : "' + defaultScopes.join(' ') + '"}}',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Custom Scopes',
|
|
39
|
+
name: 'customScopes',
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
default: false,
|
|
42
|
+
description: 'Define custom scopes',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'The default scopes needed for the node to work are already set. If you change these the node may not function correctly.',
|
|
46
|
+
name: 'customScopesNotice',
|
|
47
|
+
type: 'notice',
|
|
48
|
+
default: '',
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: {
|
|
51
|
+
customScopes: [true],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Enabled Scopes',
|
|
57
|
+
name: 'enabledScopes',
|
|
58
|
+
type: 'string',
|
|
59
|
+
displayOptions: {
|
|
60
|
+
show: {
|
|
61
|
+
customScopes: [true],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
default: defaultScopes.join(' '),
|
|
65
|
+
description: 'Scopes that should be enabled',
|
|
36
66
|
},
|
|
37
67
|
{
|
|
38
68
|
displayName: 'Auth URI Query Parameters',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeformOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/TypeformOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,
|
|
1
|
+
{"version":3,"file":"TypeformOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/TypeformOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,aAAa,GAAG,CAAC,gBAAgB,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;AAExE;IACC,IAAI,GAAG,mBAAmB,CAAC;IAE3B,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IAExB,WAAW,GAAG,qBAAqB,CAAC;IAEpC,gBAAgB,GAAG,UAAU,CAAC;IAE9B,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mBAAmB;SAC5B;QACD;YACC,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,0CAA0C;YACnD,QAAQ,EAAE,IAAI;SACd;QACD;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,sCAAsC;YAC/C,QAAQ,EAAE,IAAI;SACd;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,uDAAuD,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;SAC1F;QACD;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,sBAAsB;SACnC;QACD;YACC,WAAW,EACV,0HAA0H;YAC3H,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,YAAY,EAAE,CAAC,IAAI,CAAC;iBACpB;aACD;SACD;QACD;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,YAAY,EAAE,CAAC,IAAI,CAAC;iBACpB;aACD;YACD,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;YAChC,WAAW,EAAE,+BAA+B;SAC5C;QACD;YACC,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACX;QACD;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;SACjB;KACD,CAAC;CACF"}
|
|
@@ -1815,6 +1815,7 @@
|
|
|
1815
1815
|
"microsoftOneDriveTrigger",
|
|
1816
1816
|
"microsoftOutlook",
|
|
1817
1817
|
"microsoftOutlookTrigger",
|
|
1818
|
+
"microsoftSharePoint",
|
|
1818
1819
|
"microsoftTeams",
|
|
1819
1820
|
"microsoftTeamsTrigger",
|
|
1820
1821
|
"microsoftToDo"
|
|
@@ -1854,6 +1855,7 @@
|
|
|
1854
1855
|
"microsoftOneDriveTrigger",
|
|
1855
1856
|
"microsoftOutlook",
|
|
1856
1857
|
"microsoftOutlookTrigger",
|
|
1858
|
+
"microsoftSharePoint",
|
|
1857
1859
|
"microsoftTeams",
|
|
1858
1860
|
"microsoftTeamsTrigger",
|
|
1859
1861
|
"microsoftToDo"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2e56cbac16536e69bdb017f7708bf4c3610a8c1d907006fe1cef52f0b52c6132
|
|
@@ -34,13 +34,13 @@ export type GoogleAnalyticsV2ReportGetParams = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
36
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
37
|
-
* @default 2026-08-
|
|
37
|
+
* @default 2026-08-17T00:00:00.000+00:00
|
|
38
38
|
*/
|
|
39
39
|
startDate?: string | Expression<string>;
|
|
40
40
|
/**
|
|
41
41
|
* End
|
|
42
42
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
43
|
-
* @default 2026-08-
|
|
43
|
+
* @default 2026-08-24T00:00:00.000+00:00
|
|
44
44
|
*/
|
|
45
45
|
endDate?: string | Expression<string>;
|
|
46
46
|
/**
|
|
@@ -14,16 +14,18 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
14
14
|
|
|
15
15
|
// Parameters schema
|
|
16
16
|
const parametersSchema = z.object({
|
|
17
|
-
operation: z.union([z.literal('create'), z.literal('delete'), z.literal('getAll'), z.literal('update')]).optional(),
|
|
17
|
+
operation: z.union([z.literal('upsert'), z.literal('create'), z.literal('delete'), z.literal('getAll'), z.literal('update')]).optional(),
|
|
18
18
|
docId: stringOrExpression,
|
|
19
19
|
tableId: stringOrExpression,
|
|
20
20
|
rowId: resolveOneOfSchemas({ parameters, variants: [{ schema: stringOrExpression, required: true, displayOptions: {"show":{"operation":["delete"]}}, defaults: {"operation":"getAll"} }, { schema: stringOrExpression, required: true, displayOptions: {"show":{"operation":["update"]}}, defaults: {"operation":"getAll"} }] }),
|
|
21
21
|
returnAll: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"operation":["getAll"]}}, defaults: {"operation":"getAll"} }),
|
|
22
22
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"operation":["getAll"],"returnAll":[false]}}, defaults: {"operation":"getAll","returnAll":false} }),
|
|
23
23
|
additionalOptions: resolveSchema({ parameters, schema: z.object({ filter: z.object({ filterProperties: z.array(z.object({ field: stringOrExpression.optional(), values: stringOrExpression.optional() })).optional() }).optional(), sort: z.object({ sortProperties: z.array(z.object({ field: stringOrExpression.optional(), direction: z.union([z.literal('asc'), z.literal('desc'), expressionSchema]).optional() })).optional() }).optional() }), required: false, displayOptions: {"show":{"operation":["getAll"]}}, defaults: {"operation":"getAll"} }),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
upsertCriteria: resolveSchema({ parameters, schema: z.object({ properties: z.array(z.object({ fieldId: stringOrExpression.optional(), fieldValue: stringOrExpression.optional() })).optional() }), required: false, displayOptions: {"show":{"operation":["upsert"]}}, defaults: {"operation":"getAll"} }),
|
|
25
|
+
onMany: resolveSchema({ parameters, schema: z.union([z.literal('first'), z.literal('none'), z.literal('all'), expressionSchema]), required: false, displayOptions: {"show":{"operation":["upsert"]}}, defaults: {"operation":"getAll"} }),
|
|
26
|
+
dataToSend: resolveSchema({ parameters, schema: z.union([z.literal('autoMapInputs'), z.literal('defineInNode'), expressionSchema]), required: false, displayOptions: {"show":{"operation":["create","update","upsert"]}}, defaults: {"operation":"getAll"} }),
|
|
27
|
+
inputsToIgnore: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["create","update","upsert"],"dataToSend":["autoMapInputs"]}}, defaults: {"operation":"getAll","dataToSend":"defineInNode"} }),
|
|
28
|
+
fieldsToSend: resolveSchema({ parameters, schema: z.object({ properties: z.array(z.object({ fieldId: stringOrExpression.optional(), fieldValue: stringOrExpression.optional() })).optional() }), required: false, displayOptions: {"show":{"operation":["create","update","upsert"],"dataToSend":["defineInNode"]}}, defaults: {"operation":"getAll","dataToSend":"defineInNode"} }),
|
|
27
29
|
});
|
|
28
30
|
|
|
29
31
|
// Return combined config schema
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export interface GristV1Params {
|
|
8
|
-
operation?: 'create' | 'delete' | 'getAll' | 'update';
|
|
8
|
+
operation?: 'upsert' | 'create' | 'delete' | 'getAll' | 'update';
|
|
9
9
|
/**
|
|
10
10
|
* In your document, click your profile icon, then Document Settings, then copy the value under "This document's ID"
|
|
11
11
|
*/
|
|
@@ -71,20 +71,44 @@ export interface GristV1Params {
|
|
|
71
71
|
}>;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* Fields to use for matching existing records
|
|
76
|
+
* @displayOptions.show { operation: ["upsert"] }
|
|
77
|
+
* @default {}
|
|
78
|
+
*/
|
|
79
|
+
upsertCriteria?: {
|
|
80
|
+
/** Properties
|
|
81
|
+
*/
|
|
82
|
+
properties?: Array<{
|
|
83
|
+
/** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
|
|
84
|
+
* @loadOptionsMethod getTableColumns
|
|
85
|
+
*/
|
|
86
|
+
fieldId?: string | Expression<string>;
|
|
87
|
+
/** Field Value
|
|
88
|
+
*/
|
|
89
|
+
fieldValue?: string | Expression<string>;
|
|
90
|
+
}>;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* What to do when multiple records match the upsert criteria
|
|
94
|
+
* @displayOptions.show { operation: ["upsert"] }
|
|
95
|
+
* @default first
|
|
96
|
+
*/
|
|
97
|
+
onMany?: 'first' | 'none' | 'all' | Expression<string>;
|
|
74
98
|
/**
|
|
75
99
|
* Whether to insert the input data this node receives in the new row
|
|
76
|
-
* @displayOptions.show { operation: ["create", "update"] }
|
|
100
|
+
* @displayOptions.show { operation: ["create", "update", "upsert"] }
|
|
77
101
|
* @default defineInNode
|
|
78
102
|
*/
|
|
79
103
|
dataToSend?: 'autoMapInputs' | 'defineInNode' | Expression<string>;
|
|
80
104
|
/**
|
|
81
105
|
* List of input properties to avoid sending, separated by commas. Leave empty to send all properties.
|
|
82
|
-
* @displayOptions.show { operation: ["create", "update"], dataToSend: ["autoMapInputs"] }
|
|
106
|
+
* @displayOptions.show { operation: ["create", "update", "upsert"], dataToSend: ["autoMapInputs"] }
|
|
83
107
|
*/
|
|
84
108
|
inputsToIgnore?: string | Expression<string>;
|
|
85
109
|
/**
|
|
86
110
|
* Fields to Send
|
|
87
|
-
* @displayOptions.show { operation: ["create", "update"], dataToSend: ["defineInNode"] }
|
|
111
|
+
* @displayOptions.show { operation: ["create", "update", "upsert"], dataToSend: ["defineInNode"] }
|
|
88
112
|
* @default {}
|
|
89
113
|
*/
|
|
90
114
|
fieldsToSend?: {
|
|
@@ -33,12 +33,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
|
|
|
33
33
|
subject: string | Expression<string>;
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
|
-
* @default 2026-08-
|
|
36
|
+
* @default 2026-08-25T07:36:21.663+00:00
|
|
37
37
|
*/
|
|
38
38
|
startDateTime?: string | Expression<string>;
|
|
39
39
|
/**
|
|
40
40
|
* End
|
|
41
|
-
* @default 2026-08-
|
|
41
|
+
* @default 2026-08-25T08:06:21.663+00:00
|
|
42
42
|
*/
|
|
43
43
|
endDateTime?: string | Expression<string>;
|
|
44
44
|
/**
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* Re-exports all version-specific types and provides combined union type.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import type { MicrosoftSharePointV2Node } from './v2';
|
|
7
8
|
import type { MicrosoftSharePointV1Node } from './v1';
|
|
8
9
|
|
|
10
|
+
export * from './v2';
|
|
9
11
|
export * from './v1';
|
|
10
12
|
|
|
11
13
|
// Combined union type for all versions
|
|
12
|
-
export type MicrosoftSharePointNode = MicrosoftSharePointV1Node;
|
|
14
|
+
export type MicrosoftSharePointNode = MicrosoftSharePointV2Node | MicrosoftSharePointV1Node;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all discriminator schemas.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getFileSchema = require('./resource_file/index.schema');
|
|
12
|
+
const getItemSchema = require('./resource_item/index.schema');
|
|
13
|
+
const getListSchema = require('./resource_list/index.schema');
|
|
14
|
+
|
|
15
|
+
module.exports = function getSchema(helpers) {
|
|
16
|
+
const { parameters, z } = helpers;
|
|
17
|
+
// Apply discriminator default if not set
|
|
18
|
+
const effectiveParams = parameters.resource === undefined ? { ...parameters, resource: 'list' } : parameters;
|
|
19
|
+
return z.union([
|
|
20
|
+
getFileSchema({ ...helpers, parameters: effectiveParams }),
|
|
21
|
+
getItemSchema({ ...helpers, parameters: effectiveParams }),
|
|
22
|
+
getListSchema({ ...helpers, parameters: effectiveParams }),
|
|
23
|
+
]);
|
|
24
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Re-exports all discriminator combinations.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { MicrosoftSharePointV2FileNode } from './resource_file';
|
|
7
|
+
import type { MicrosoftSharePointV2ItemNode } from './resource_item';
|
|
8
|
+
import type { MicrosoftSharePointV2ListNode } from './resource_list';
|
|
9
|
+
|
|
10
|
+
export * from './resource_file';
|
|
11
|
+
export * from './resource_item';
|
|
12
|
+
export * from './resource_list';
|
|
13
|
+
|
|
14
|
+
export type MicrosoftSharePointV2Node =
|
|
15
|
+
| MicrosoftSharePointV2FileNode
|
|
16
|
+
| MicrosoftSharePointV2ItemNode
|
|
17
|
+
| MicrosoftSharePointV2ListNode
|
|
18
|
+
;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint - File Resource - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all operation schemas for this resource.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getDownloadSchema = require('./operation_download.schema');
|
|
12
|
+
const getUpdateSchema = require('./operation_update.schema');
|
|
13
|
+
const getUploadSchema = require('./operation_upload.schema');
|
|
14
|
+
|
|
15
|
+
module.exports = function getSchema(helpers) {
|
|
16
|
+
const { parameters, z } = helpers;
|
|
17
|
+
// Apply operation default if not set
|
|
18
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'upload' } : parameters;
|
|
19
|
+
return z.union([
|
|
20
|
+
getDownloadSchema({ ...helpers, parameters: effectiveParams }),
|
|
21
|
+
getUpdateSchema({ ...helpers, parameters: effectiveParams }),
|
|
22
|
+
getUploadSchema({ ...helpers, parameters: effectiveParams }),
|
|
23
|
+
]);
|
|
24
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint - File Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { MicrosoftSharePointV2FileDownloadNode } from './operation_download';
|
|
7
|
+
import type { MicrosoftSharePointV2FileUpdateNode } from './operation_update';
|
|
8
|
+
import type { MicrosoftSharePointV2FileUploadNode } from './operation_upload';
|
|
9
|
+
|
|
10
|
+
export * from './operation_download';
|
|
11
|
+
export * from './operation_update';
|
|
12
|
+
export * from './operation_upload';
|
|
13
|
+
|
|
14
|
+
export type MicrosoftSharePointV2FileNode =
|
|
15
|
+
| MicrosoftSharePointV2FileDownloadNode
|
|
16
|
+
| MicrosoftSharePointV2FileUpdateNode
|
|
17
|
+
| MicrosoftSharePointV2FileUploadNode
|
|
18
|
+
;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=download
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file'),
|
|
18
|
+
operation: z.literal('download'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
site: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('url'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
|
|
21
|
+
folder: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"site":[""]}}, defaults: {"site":{"mode":"list","value":""}} }),
|
|
22
|
+
file: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"site":[""],"folder":[""]}}, defaults: {"site":{"mode":"list","value":""},"folder":{"mode":"list","value":""}} }),
|
|
23
|
+
binaryPropertyName: stringOrExpression.optional(),
|
|
24
|
+
}).optional(),
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=file, operation=download
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Download a file */
|
|
13
|
+
export type MicrosoftSharePointV2FileDownloadParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'download';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site to download from
|
|
19
|
+
* @searchListMethod getSites
|
|
20
|
+
* @default {"mode":"list","value":""}
|
|
21
|
+
*/
|
|
22
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
23
|
+
/**
|
|
24
|
+
* Select the folder the file lives in
|
|
25
|
+
* @searchListMethod getFolders
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
folder?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* Select the file to download
|
|
32
|
+
* @searchListMethod getFiles
|
|
33
|
+
* @displayOptions.hide { site: [""], folder: [""] }
|
|
34
|
+
* @default {"mode":"list","value":""}
|
|
35
|
+
*/
|
|
36
|
+
file?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
37
|
+
/**
|
|
38
|
+
* Put Output File in Field
|
|
39
|
+
* @hint The name of the output binary field to put the file in
|
|
40
|
+
* @default data
|
|
41
|
+
*/
|
|
42
|
+
binaryPropertyName?: string | Expression<string>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type MicrosoftSharePointV2FileDownloadNode = {
|
|
46
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
47
|
+
version: 2;
|
|
48
|
+
config: NodeConfig<MicrosoftSharePointV2FileDownloadParams> & { credentials?: Credentials };
|
|
49
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=update
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file'),
|
|
18
|
+
operation: z.literal('update'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
site: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('url'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
|
|
21
|
+
folder: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"site":[""]}}, defaults: {"site":{"mode":"list","value":""}} }),
|
|
22
|
+
file: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"site":[""],"folder":[""]}}, defaults: {"site":{"mode":"list","value":""},"folder":{"mode":"list","value":""}} }),
|
|
23
|
+
fileName: stringOrExpression.optional(),
|
|
24
|
+
changeFileContent: booleanOrExpression.optional(),
|
|
25
|
+
binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"changeFileContent":[true]}}, defaults: {"changeFileContent":false} }),
|
|
26
|
+
}).optional(),
|
|
27
|
+
});
|
|
28
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=file, operation=update
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Rename a file and/or replace its contents */
|
|
13
|
+
export type MicrosoftSharePointV2FileUpdateParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'update';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site the file lives in
|
|
19
|
+
* @searchListMethod getSites
|
|
20
|
+
* @default {"mode":"list","value":""}
|
|
21
|
+
*/
|
|
22
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
23
|
+
/**
|
|
24
|
+
* Select the folder the file lives in
|
|
25
|
+
* @searchListMethod getFolders
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
folder?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* Select the file to update
|
|
32
|
+
* @searchListMethod getFiles
|
|
33
|
+
* @displayOptions.hide { site: [""], folder: [""] }
|
|
34
|
+
* @default {"mode":"list","value":""}
|
|
35
|
+
*/
|
|
36
|
+
file?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
37
|
+
/**
|
|
38
|
+
* New name for the file. Leave empty to keep the current name.
|
|
39
|
+
*/
|
|
40
|
+
fileName?: string | Expression<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to replace the file’s contents with the input binary data
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
changeFileContent?: boolean | Expression<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Input Binary Field
|
|
48
|
+
* @hint The name of the input binary field containing the new file contents
|
|
49
|
+
* @displayOptions.show { changeFileContent: [true] }
|
|
50
|
+
* @default data
|
|
51
|
+
*/
|
|
52
|
+
binaryPropertyName?: string | Expression<string>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type MicrosoftSharePointV2FileUpdateNode = {
|
|
56
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
57
|
+
version: 2;
|
|
58
|
+
config: NodeConfig<MicrosoftSharePointV2FileUpdateParams> & { credentials?: Credentials };
|
|
59
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=upload
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file'),
|
|
18
|
+
operation: z.literal('upload').default('upload'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
site: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('url'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
|
|
21
|
+
folder: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"site":[""]}}, defaults: {"site":{"mode":"list","value":""}} }),
|
|
22
|
+
fileName: stringOrExpression,
|
|
23
|
+
binaryPropertyName: stringOrExpression.optional(),
|
|
24
|
+
}).optional(),
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=file, operation=upload
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Upload a file to a folder */
|
|
13
|
+
export type MicrosoftSharePointV2FileUploadParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'upload';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site to upload to
|
|
19
|
+
* @searchListMethod getSites
|
|
20
|
+
* @default {"mode":"list","value":""}
|
|
21
|
+
*/
|
|
22
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
23
|
+
/**
|
|
24
|
+
* Select the folder to upload the file to
|
|
25
|
+
* @searchListMethod getFolders
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
folder?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* Name the file will have in SharePoint
|
|
32
|
+
*/
|
|
33
|
+
fileName: string | Expression<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Input Binary Field
|
|
36
|
+
* @hint The name of the input binary field containing the file to upload
|
|
37
|
+
* @default data
|
|
38
|
+
*/
|
|
39
|
+
binaryPropertyName?: string | Expression<string>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type MicrosoftSharePointV2FileUploadNode = {
|
|
43
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
44
|
+
version: 2;
|
|
45
|
+
config: NodeConfig<MicrosoftSharePointV2FileUploadParams> & { credentials?: Credentials };
|
|
46
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint - Item Resource - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all operation schemas for this resource.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getCreateSchema = require('./operation_create.schema');
|
|
12
|
+
const getDeleteSchema = require('./operation_delete.schema');
|
|
13
|
+
const getGetSchema = require('./operation_get.schema');
|
|
14
|
+
const getGetAllSchema = require('./operation_get_all.schema');
|
|
15
|
+
const getUpdateSchema = require('./operation_update.schema');
|
|
16
|
+
const getUpsertSchema = require('./operation_upsert.schema');
|
|
17
|
+
|
|
18
|
+
module.exports = function getSchema(helpers) {
|
|
19
|
+
const { parameters, z } = helpers;
|
|
20
|
+
// Apply operation default if not set
|
|
21
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'getAll' } : parameters;
|
|
22
|
+
return z.union([
|
|
23
|
+
getCreateSchema({ ...helpers, parameters: effectiveParams }),
|
|
24
|
+
getDeleteSchema({ ...helpers, parameters: effectiveParams }),
|
|
25
|
+
getGetSchema({ ...helpers, parameters: effectiveParams }),
|
|
26
|
+
getGetAllSchema({ ...helpers, parameters: effectiveParams }),
|
|
27
|
+
getUpdateSchema({ ...helpers, parameters: effectiveParams }),
|
|
28
|
+
getUpsertSchema({ ...helpers, parameters: effectiveParams }),
|
|
29
|
+
]);
|
|
30
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/index.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint - Item Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { MicrosoftSharePointV2ItemCreateNode } from './operation_create';
|
|
7
|
+
import type { MicrosoftSharePointV2ItemDeleteNode } from './operation_delete';
|
|
8
|
+
import type { MicrosoftSharePointV2ItemGetNode } from './operation_get';
|
|
9
|
+
import type { MicrosoftSharePointV2ItemGetAllNode } from './operation_get_all';
|
|
10
|
+
import type { MicrosoftSharePointV2ItemUpdateNode } from './operation_update';
|
|
11
|
+
import type { MicrosoftSharePointV2ItemUpsertNode } from './operation_upsert';
|
|
12
|
+
|
|
13
|
+
export * from './operation_create';
|
|
14
|
+
export * from './operation_delete';
|
|
15
|
+
export * from './operation_get';
|
|
16
|
+
export * from './operation_get_all';
|
|
17
|
+
export * from './operation_update';
|
|
18
|
+
export * from './operation_upsert';
|
|
19
|
+
|
|
20
|
+
export type MicrosoftSharePointV2ItemNode =
|
|
21
|
+
| MicrosoftSharePointV2ItemCreateNode
|
|
22
|
+
| MicrosoftSharePointV2ItemDeleteNode
|
|
23
|
+
| MicrosoftSharePointV2ItemGetNode
|
|
24
|
+
| MicrosoftSharePointV2ItemGetAllNode
|
|
25
|
+
| MicrosoftSharePointV2ItemUpdateNode
|
|
26
|
+
| MicrosoftSharePointV2ItemUpsertNode
|
|
27
|
+
;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=item, operation=create
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('item'),
|
|
18
|
+
operation: z.literal('create'),
|
|
19
|
+
authentication: z.union([z.literal('microsoftOAuth2Api'), z.literal('microsoftEntraServicePrincipalApi')]).optional(),
|
|
20
|
+
site: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('url'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
|
|
21
|
+
list: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"hide":{"site":[""]}}, defaults: {"site":{"mode":"list","value":""}} }),
|
|
22
|
+
columns: resolveSchema({ parameters, schema: resourceMapperValueSchema, required: false, displayOptions: {"hide":{"site":[""],"list":[""]}}, defaults: {"site":{"mode":"list","value":""},"list":{"mode":"list","value":""}} }),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|