n8n-nodes-base 2.36.2 → 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
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=item, operation=create
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// Helper types for special n8n fields
|
|
8
|
+
type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
|
|
9
|
+
type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
|
|
10
|
+
type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
|
|
11
|
+
|
|
12
|
+
interface Credentials {
|
|
13
|
+
microsoftOAuth2Api: CredentialReference;
|
|
14
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Create an item in an existing list */
|
|
18
|
+
export type MicrosoftSharePointV2ItemCreateParams = {
|
|
19
|
+
resource: 'item';
|
|
20
|
+
operation: 'create';
|
|
21
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
22
|
+
/**
|
|
23
|
+
* Select the site the list belongs to
|
|
24
|
+
* @searchListMethod getSites
|
|
25
|
+
* @default {"mode":"list","value":""}
|
|
26
|
+
*/
|
|
27
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
28
|
+
/**
|
|
29
|
+
* Select the list to create an item in
|
|
30
|
+
* @searchListMethod getLists
|
|
31
|
+
* @displayOptions.hide { site: [""] }
|
|
32
|
+
* @default {"mode":"list","value":""}
|
|
33
|
+
*/
|
|
34
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
35
|
+
/**
|
|
36
|
+
* Columns
|
|
37
|
+
* @displayOptions.hide { site: [""], list: [""] }
|
|
38
|
+
* @default {"mappingMode":"defineBelow","value":null}
|
|
39
|
+
*/
|
|
40
|
+
columns?: ResourceMapperValue;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type MicrosoftSharePointV2ItemCreateNode = {
|
|
44
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
45
|
+
version: 2;
|
|
46
|
+
config: NodeConfig<MicrosoftSharePointV2ItemCreateParams> & { credentials?: Credentials };
|
|
47
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=item, operation=delete
|
|
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('delete'),
|
|
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
|
+
item: 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":[""],"list":[""]}}, defaults: {"site":{"mode":"list","value":""},"list":{"mode":"list","value":""}} }),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=item, operation=delete
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Delete an item */
|
|
13
|
+
export type MicrosoftSharePointV2ItemDeleteParams = {
|
|
14
|
+
resource: 'item';
|
|
15
|
+
operation: 'delete';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site the item is 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 list the item is in
|
|
25
|
+
* @searchListMethod getLists
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* Select the item you want to delete
|
|
32
|
+
* @searchListMethod getItems
|
|
33
|
+
* @displayOptions.hide { site: [""], list: [""] }
|
|
34
|
+
* @default {"mode":"list","value":""}
|
|
35
|
+
*/
|
|
36
|
+
item?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type MicrosoftSharePointV2ItemDeleteNode = {
|
|
40
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
41
|
+
version: 2;
|
|
42
|
+
config: NodeConfig<MicrosoftSharePointV2ItemDeleteParams> & { credentials?: Credentials };
|
|
43
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=item, operation=get
|
|
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('get'),
|
|
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
|
+
item: 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":[""],"list":[""]}}, defaults: {"site":{"mode":"list","value":""},"list":{"mode":"list","value":""}} }),
|
|
23
|
+
simplify: booleanOrExpression.optional(),
|
|
24
|
+
}).optional(),
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=item, operation=get
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Retrieve details of a single item */
|
|
13
|
+
export type MicrosoftSharePointV2ItemGetParams = {
|
|
14
|
+
resource: 'item';
|
|
15
|
+
operation: 'get';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site the item is 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 list the item is in
|
|
25
|
+
* @searchListMethod getLists
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* Select the item you want to retrieve
|
|
32
|
+
* @searchListMethod getItems
|
|
33
|
+
* @displayOptions.hide { site: [""], list: [""] }
|
|
34
|
+
* @default {"mode":"list","value":""}
|
|
35
|
+
*/
|
|
36
|
+
item?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
37
|
+
/**
|
|
38
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
simplify?: boolean | Expression<boolean>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type MicrosoftSharePointV2ItemGetNode = {
|
|
45
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
46
|
+
version: 2;
|
|
47
|
+
config: NodeConfig<MicrosoftSharePointV2ItemGetParams> & { credentials?: Credentials };
|
|
48
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=item, operation=getAll
|
|
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('getAll').default('getAll'),
|
|
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
|
+
filter: stringOrExpression.optional(),
|
|
23
|
+
returnAll: booleanOrExpression.optional(),
|
|
24
|
+
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
25
|
+
options: z.object({ fields: z.array(z.union([z.literal('contentType'), z.literal('createdDateTime'), z.literal('createdBy'), z.literal('fields'), z.literal('id'), z.literal('lastModifiedDateTime'), z.literal('lastModifiedBy'), z.literal('parentReference'), z.literal('webUrl')])).optional() }).optional(),
|
|
26
|
+
simplify: booleanOrExpression.optional(),
|
|
27
|
+
}).optional(),
|
|
28
|
+
});
|
|
29
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=item, operation=getAll
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Get specific items in a list or list many items */
|
|
13
|
+
export type MicrosoftSharePointV2ItemGetAllParams = {
|
|
14
|
+
resource: 'item';
|
|
15
|
+
operation: 'getAll';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site the list belongs 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 list you want to search for items in
|
|
25
|
+
* @searchListMethod getLists
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* The formula will be evaluated for each record. <a href="https://learn.microsoft.com/en-us/graph/filter-query-parameter">More info</a>.
|
|
32
|
+
* @hint If empty, all the items will be returned
|
|
33
|
+
*/
|
|
34
|
+
filter?: string | Expression<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to return all results or only up to a given limit
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
returnAll?: boolean | Expression<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Max number of results to return
|
|
42
|
+
* @displayOptions.show { returnAll: [false] }
|
|
43
|
+
* @default 100
|
|
44
|
+
*/
|
|
45
|
+
limit?: number | Expression<number>;
|
|
46
|
+
/**
|
|
47
|
+
* Options
|
|
48
|
+
* @default {}
|
|
49
|
+
*/
|
|
50
|
+
options?: {
|
|
51
|
+
/** The fields you want to include in the output
|
|
52
|
+
* @displayOptions.hide { /simplify: [true] }
|
|
53
|
+
* @default []
|
|
54
|
+
*/
|
|
55
|
+
fields?: Array<'contentType' | 'createdDateTime' | 'createdBy' | 'fields' | 'id' | 'lastModifiedDateTime' | 'lastModifiedBy' | 'parentReference' | 'webUrl'>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
simplify?: boolean | Expression<boolean>;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type MicrosoftSharePointV2ItemGetAllNode = {
|
|
65
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
66
|
+
version: 2;
|
|
67
|
+
config: NodeConfig<MicrosoftSharePointV2ItemGetAllParams> & { credentials?: Credentials };
|
|
68
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=item, 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('item'),
|
|
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
|
+
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
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=item, operation=update
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// Helper types for special n8n fields
|
|
8
|
+
type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
|
|
9
|
+
type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
|
|
10
|
+
type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
|
|
11
|
+
|
|
12
|
+
interface Credentials {
|
|
13
|
+
microsoftOAuth2Api: CredentialReference;
|
|
14
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Rename a file and/or replace its contents */
|
|
18
|
+
export type MicrosoftSharePointV2ItemUpdateParams = {
|
|
19
|
+
resource: 'item';
|
|
20
|
+
operation: 'update';
|
|
21
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
22
|
+
/**
|
|
23
|
+
* Select the site to retrieve lists from
|
|
24
|
+
* @searchListMethod getSites
|
|
25
|
+
* @default {"mode":"list","value":""}
|
|
26
|
+
*/
|
|
27
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
28
|
+
/**
|
|
29
|
+
* Select the list you want to update an item in
|
|
30
|
+
* @searchListMethod getLists
|
|
31
|
+
* @displayOptions.hide { site: [""] }
|
|
32
|
+
* @default {"mode":"list","value":""}
|
|
33
|
+
*/
|
|
34
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
35
|
+
/**
|
|
36
|
+
* Columns
|
|
37
|
+
* @displayOptions.hide { site: [""], list: [""] }
|
|
38
|
+
* @default {"mappingMode":"defineBelow","value":null}
|
|
39
|
+
*/
|
|
40
|
+
columns?: ResourceMapperValue;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type MicrosoftSharePointV2ItemUpdateNode = {
|
|
44
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
45
|
+
version: 2;
|
|
46
|
+
config: NodeConfig<MicrosoftSharePointV2ItemUpdateParams> & { credentials?: Credentials };
|
|
47
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=item, operation=upsert
|
|
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('upsert'),
|
|
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
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=item, operation=upsert
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// Helper types for special n8n fields
|
|
8
|
+
type ResourceMapperField = { id?: string; displayName?: string; required?: boolean; defaultMatch?: boolean; display?: boolean; type?: string; canBeUsedToMatch?: boolean; [key: string]: unknown };
|
|
9
|
+
type ResourceMapperCommon = { matchingColumns?: string[]; cachedResultName?: string; [key: string]: unknown };
|
|
10
|
+
type ResourceMapperValue = ResourceMapperCommon & { mappingMode: string; value?: null | Record<string, unknown>; schema?: ResourceMapperField[] };
|
|
11
|
+
|
|
12
|
+
interface Credentials {
|
|
13
|
+
microsoftOAuth2Api: CredentialReference;
|
|
14
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Create a new item, or update the current one if it already exists (upsert) */
|
|
18
|
+
export type MicrosoftSharePointV2ItemUpsertParams = {
|
|
19
|
+
resource: 'item';
|
|
20
|
+
operation: 'upsert';
|
|
21
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
22
|
+
/**
|
|
23
|
+
* Select the site the list belongs to
|
|
24
|
+
* @searchListMethod getSites
|
|
25
|
+
* @default {"mode":"list","value":""}
|
|
26
|
+
*/
|
|
27
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
28
|
+
/**
|
|
29
|
+
* Select the list you want to create or update an item in
|
|
30
|
+
* @searchListMethod getLists
|
|
31
|
+
* @displayOptions.hide { site: [""] }
|
|
32
|
+
* @default {"mode":"list","value":""}
|
|
33
|
+
*/
|
|
34
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
35
|
+
/**
|
|
36
|
+
* Columns
|
|
37
|
+
* @displayOptions.hide { site: [""], list: [""] }
|
|
38
|
+
* @default {"mappingMode":"defineBelow","value":null}
|
|
39
|
+
*/
|
|
40
|
+
columns?: ResourceMapperValue;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type MicrosoftSharePointV2ItemUpsertNode = {
|
|
44
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
45
|
+
version: 2;
|
|
46
|
+
config: NodeConfig<MicrosoftSharePointV2ItemUpsertParams> & { credentials?: Credentials };
|
|
47
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint - List 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 getGetSchema = require('./operation_get.schema');
|
|
12
|
+
const getGetAllSchema = require('./operation_get_all.schema');
|
|
13
|
+
|
|
14
|
+
module.exports = function getSchema(helpers) {
|
|
15
|
+
const { parameters, z } = helpers;
|
|
16
|
+
// Apply operation default if not set
|
|
17
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'get' } : parameters;
|
|
18
|
+
return z.union([
|
|
19
|
+
getGetSchema({ ...helpers, parameters: effectiveParams }),
|
|
20
|
+
getGetAllSchema({ ...helpers, parameters: effectiveParams }),
|
|
21
|
+
]);
|
|
22
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint - List Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { MicrosoftSharePointV2ListGetNode } from './operation_get';
|
|
7
|
+
import type { MicrosoftSharePointV2ListGetAllNode } from './operation_get_all';
|
|
8
|
+
|
|
9
|
+
export * from './operation_get';
|
|
10
|
+
export * from './operation_get_all';
|
|
11
|
+
|
|
12
|
+
export type MicrosoftSharePointV2ListNode =
|
|
13
|
+
| MicrosoftSharePointV2ListGetNode
|
|
14
|
+
| MicrosoftSharePointV2ListGetAllNode
|
|
15
|
+
;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=list, operation=get
|
|
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('list').default('list'),
|
|
18
|
+
operation: z.literal('get').default('get'),
|
|
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
|
+
simplify: booleanOrExpression.optional(),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=list, operation=get
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Retrieve details of a single item */
|
|
13
|
+
export type MicrosoftSharePointV2ListGetParams = {
|
|
14
|
+
resource: 'list';
|
|
15
|
+
operation: 'get';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site to retrieve lists 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 list you want to retrieve
|
|
25
|
+
* @searchListMethod getLists
|
|
26
|
+
* @displayOptions.hide { site: [""] }
|
|
27
|
+
* @default {"mode":"list","value":""}
|
|
28
|
+
*/
|
|
29
|
+
list?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
|
|
30
|
+
/**
|
|
31
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
simplify?: boolean | Expression<boolean>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type MicrosoftSharePointV2ListGetNode = {
|
|
38
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
39
|
+
version: 2;
|
|
40
|
+
config: NodeConfig<MicrosoftSharePointV2ListGetParams> & { credentials?: Credentials };
|
|
41
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2 - Zod Schema
|
|
3
|
+
* Discriminator: resource=list, operation=getAll
|
|
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('list').default('list'),
|
|
18
|
+
operation: z.literal('getAll'),
|
|
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
|
+
returnAll: booleanOrExpression.optional(),
|
|
22
|
+
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
23
|
+
simplify: booleanOrExpression.optional(),
|
|
24
|
+
}).optional(),
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsoft SharePoint Node - Version 2
|
|
3
|
+
* Discriminator: resource=list, operation=getAll
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
microsoftOAuth2Api: CredentialReference;
|
|
9
|
+
microsoftEntraServicePrincipalApi: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Get specific items in a list or list many items */
|
|
13
|
+
export type MicrosoftSharePointV2ListGetAllParams = {
|
|
14
|
+
resource: 'list';
|
|
15
|
+
operation: 'getAll';
|
|
16
|
+
authentication?: 'microsoftOAuth2Api' | 'microsoftEntraServicePrincipalApi';
|
|
17
|
+
/**
|
|
18
|
+
* Select the site to retrieve lists from
|
|
19
|
+
* @searchListMethod getSites
|
|
20
|
+
* @default {"mode":"list","value":""}
|
|
21
|
+
*/
|
|
22
|
+
site?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
|
|
23
|
+
/**
|
|
24
|
+
* Whether to return all results or only up to a given limit
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
returnAll?: boolean | Expression<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Max number of results to return
|
|
30
|
+
* @displayOptions.show { returnAll: [false] }
|
|
31
|
+
* @default 100
|
|
32
|
+
*/
|
|
33
|
+
limit?: number | Expression<number>;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
simplify?: boolean | Expression<boolean>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type MicrosoftSharePointV2ListGetAllNode = {
|
|
42
|
+
type: 'n8n-nodes-base.microsoftSharePoint';
|
|
43
|
+
version: 2;
|
|
44
|
+
config: NodeConfig<MicrosoftSharePointV2ListGetAllParams> & { credentials?: Credentials };
|
|
45
|
+
};
|