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.
Files changed (167) hide show
  1. package/dist/cjs/build.tsbuildinfo +1 -1
  2. package/dist/credentials/TypeformOAuth2Api.credentials.d.ts.map +1 -1
  3. package/dist/credentials/TypeformOAuth2Api.credentials.js +32 -2
  4. package/dist/credentials/TypeformOAuth2Api.credentials.js.map +1 -1
  5. package/dist/known/credentials.json +2 -0
  6. package/dist/node-definitions/.nodes-hash +1 -1
  7. package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
  8. package/dist/node-definitions/nodes/n8n-nodes-base/grist/v1.schema.js +6 -4
  9. package/dist/node-definitions/nodes/n8n-nodes-base/grist/v1.ts +28 -4
  10. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
  11. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/index.ts +3 -1
  12. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/index.schema.js +24 -0
  13. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/index.ts +18 -0
  14. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/index.schema.js +24 -0
  15. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/index.ts +18 -0
  16. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_download.schema.js +26 -0
  17. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_download.ts +49 -0
  18. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_update.schema.js +28 -0
  19. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_update.ts +59 -0
  20. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_upload.schema.js +26 -0
  21. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_file/operation_upload.ts +46 -0
  22. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/index.schema.js +30 -0
  23. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/index.ts +27 -0
  24. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_create.schema.js +25 -0
  25. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_create.ts +47 -0
  26. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_delete.schema.js +25 -0
  27. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_delete.ts +43 -0
  28. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get.schema.js +26 -0
  29. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get.ts +48 -0
  30. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get_all.schema.js +29 -0
  31. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_get_all.ts +68 -0
  32. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_update.schema.js +25 -0
  33. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_update.ts +47 -0
  34. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_upsert.schema.js +25 -0
  35. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_item/operation_upsert.ts +47 -0
  36. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/index.schema.js +22 -0
  37. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/index.ts +15 -0
  38. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get.schema.js +25 -0
  39. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get.ts +41 -0
  40. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get_all.schema.js +26 -0
  41. package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSharePoint/v2/resource_list/operation_get_all.ts +45 -0
  42. package/dist/nodes/Confluence/actions/attachment/getMany.operation.d.ts +32 -0
  43. package/dist/nodes/Confluence/actions/attachment/getMany.operation.d.ts.map +1 -0
  44. package/dist/nodes/Confluence/actions/attachment/getMany.operation.js +98 -0
  45. package/dist/nodes/Confluence/actions/attachment/getMany.operation.js.map +1 -0
  46. package/dist/nodes/Confluence/actions/attachment/index.d.ts +5 -0
  47. package/dist/nodes/Confluence/actions/attachment/index.d.ts.map +1 -0
  48. package/dist/nodes/Confluence/actions/attachment/index.js +62 -0
  49. package/dist/nodes/Confluence/actions/attachment/index.js.map +1 -0
  50. package/dist/nodes/Confluence/actions/common.d.ts +7 -0
  51. package/dist/nodes/Confluence/actions/common.d.ts.map +1 -1
  52. package/dist/nodes/Confluence/actions/common.js +25 -2
  53. package/dist/nodes/Confluence/actions/common.js.map +1 -1
  54. package/dist/nodes/Confluence/actions/description.d.ts.map +1 -1
  55. package/dist/nodes/Confluence/actions/description.js +6 -0
  56. package/dist/nodes/Confluence/actions/description.js.map +1 -1
  57. package/dist/nodes/Confluence/actions/page/append.operation.d.ts +6 -0
  58. package/dist/nodes/Confluence/actions/page/append.operation.d.ts.map +1 -0
  59. package/dist/nodes/Confluence/actions/page/append.operation.js +85 -0
  60. package/dist/nodes/Confluence/actions/page/append.operation.js.map +1 -0
  61. package/dist/nodes/Confluence/actions/page/bodyEnvelope.d.ts +4 -1
  62. package/dist/nodes/Confluence/actions/page/bodyEnvelope.d.ts.map +1 -1
  63. package/dist/nodes/Confluence/actions/page/bodyEnvelope.js +28 -7
  64. package/dist/nodes/Confluence/actions/page/bodyEnvelope.js.map +1 -1
  65. package/dist/nodes/Confluence/actions/page/delete.operation.d.ts +5 -0
  66. package/dist/nodes/Confluence/actions/page/delete.operation.d.ts.map +1 -0
  67. package/dist/nodes/Confluence/actions/page/delete.operation.js +82 -0
  68. package/dist/nodes/Confluence/actions/page/delete.operation.js.map +1 -0
  69. package/dist/nodes/Confluence/actions/page/index.d.ts +4 -1
  70. package/dist/nodes/Confluence/actions/page/index.d.ts.map +1 -1
  71. package/dist/nodes/Confluence/actions/page/index.js +28 -1
  72. package/dist/nodes/Confluence/actions/page/index.js.map +1 -1
  73. package/dist/nodes/Confluence/actions/page/pageWrite.d.ts +17 -0
  74. package/dist/nodes/Confluence/actions/page/pageWrite.d.ts.map +1 -0
  75. package/dist/nodes/Confluence/actions/page/pageWrite.js +70 -0
  76. package/dist/nodes/Confluence/actions/page/pageWrite.js.map +1 -0
  77. package/dist/nodes/Confluence/actions/page/update.operation.d.ts +5 -0
  78. package/dist/nodes/Confluence/actions/page/update.operation.d.ts.map +1 -0
  79. package/dist/nodes/Confluence/actions/page/update.operation.js +72 -0
  80. package/dist/nodes/Confluence/actions/page/update.operation.js.map +1 -0
  81. package/dist/nodes/Confluence/actions/router.d.ts +2 -0
  82. package/dist/nodes/Confluence/actions/router.d.ts.map +1 -1
  83. package/dist/nodes/Confluence/actions/router.js +15 -1
  84. package/dist/nodes/Confluence/actions/router.js.map +1 -1
  85. package/dist/nodes/Confluence/transport/index.d.ts +6 -0
  86. package/dist/nodes/Confluence/transport/index.d.ts.map +1 -1
  87. package/dist/nodes/Confluence/transport/index.js +86 -10
  88. package/dist/nodes/Confluence/transport/index.js.map +1 -1
  89. package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.d.ts.map +1 -1
  90. package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js +2 -2
  91. package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js.map +1 -1
  92. package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.d.ts +3 -0
  93. package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.d.ts.map +1 -0
  94. package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.js +10 -0
  95. package/dist/nodes/Files/ExtractFromFile/actions/parseIcsCalendar.js.map +1 -0
  96. package/dist/nodes/Form/Form.node.d.ts.map +1 -1
  97. package/dist/nodes/Form/Form.node.js +8 -0
  98. package/dist/nodes/Form/Form.node.js.map +1 -1
  99. package/dist/nodes/Form/interfaces.d.ts +1 -0
  100. package/dist/nodes/Form/interfaces.d.ts.map +1 -1
  101. package/dist/nodes/Form/interfaces.js.map +1 -1
  102. package/dist/nodes/Form/utils/formCompletionUtils.d.ts.map +1 -1
  103. package/dist/nodes/Form/utils/formCompletionUtils.js +8 -1
  104. package/dist/nodes/Form/utils/formCompletionUtils.js.map +1 -1
  105. package/dist/nodes/Form/utils/formNodeUtils.d.ts.map +1 -1
  106. package/dist/nodes/Form/utils/formNodeUtils.js +14 -3
  107. package/dist/nodes/Form/utils/formNodeUtils.js.map +1 -1
  108. package/dist/nodes/Form/utils/utils.d.ts +49 -9
  109. package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
  110. package/dist/nodes/Form/utils/utils.js +309 -69
  111. package/dist/nodes/Form/utils/utils.js.map +1 -1
  112. package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts +1 -1
  113. package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts.map +1 -1
  114. package/dist/nodes/Form/v2/FormTriggerV2.node.js +0 -1
  115. package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
  116. package/dist/nodes/Google/Calendar/GoogleCalendar.node.d.ts.map +1 -1
  117. package/dist/nodes/Google/Calendar/GoogleCalendar.node.js +7 -0
  118. package/dist/nodes/Google/Calendar/GoogleCalendar.node.js.map +1 -1
  119. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts.map +1 -1
  120. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +82 -7
  121. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
  122. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +1 -1
  123. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -1
  124. package/dist/nodes/Grist/Grist.node.d.ts.map +1 -1
  125. package/dist/nodes/Grist/Grist.node.js +60 -2
  126. package/dist/nodes/Grist/Grist.node.js.map +1 -1
  127. package/dist/nodes/Grist/OperationDescription.d.ts.map +1 -1
  128. package/dist/nodes/Grist/OperationDescription.js +83 -3
  129. package/dist/nodes/Grist/OperationDescription.js.map +1 -1
  130. package/dist/nodes/Grist/types.d.ts +10 -0
  131. package/dist/nodes/Grist/types.d.ts.map +1 -1
  132. package/dist/nodes/MessageAnAgent/MessageAnAgent.node.d.ts.map +1 -1
  133. package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js +5 -3
  134. package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js.map +1 -1
  135. package/dist/nodes/MessageAnAgent/shared.d.ts.map +1 -1
  136. package/dist/nodes/MessageAnAgent/shared.js +146 -4
  137. package/dist/nodes/MessageAnAgent/shared.js.map +1 -1
  138. package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.d.ts.map +1 -1
  139. package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js +4 -3
  140. package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js.map +1 -1
  141. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.d.ts.map +1 -1
  142. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js +3 -8
  143. package/dist/nodes/Microsoft/SharePoint/MicrosoftSharePoint.node.js.map +1 -1
  144. package/dist/nodes/MongoDb/GenericFunctions.d.ts +1 -0
  145. package/dist/nodes/MongoDb/GenericFunctions.d.ts.map +1 -1
  146. package/dist/nodes/MongoDb/GenericFunctions.js +15 -2
  147. package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
  148. package/dist/nodes/MongoDb/MongoDb.node.d.ts.map +1 -1
  149. package/dist/nodes/MongoDb/MongoDb.node.js +32 -19
  150. package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
  151. package/dist/nodes/PagerDuty/GenericFunctions.d.ts.map +1 -1
  152. package/dist/nodes/PagerDuty/GenericFunctions.js +5 -2
  153. package/dist/nodes/PagerDuty/GenericFunctions.js.map +1 -1
  154. package/dist/nodes/Transform/Aggregate/Aggregate.node.d.ts.map +1 -1
  155. package/dist/nodes/Transform/Aggregate/Aggregate.node.js +1 -4
  156. package/dist/nodes/Transform/Aggregate/Aggregate.node.js.map +1 -1
  157. package/dist/nodes/Transform/SplitOut/utils.d.ts.map +1 -1
  158. package/dist/nodes/Transform/SplitOut/utils.js +2 -4
  159. package/dist/nodes/Transform/SplitOut/utils.js.map +1 -1
  160. package/dist/nodes/Transform/utils/utils.d.ts +6 -0
  161. package/dist/nodes/Transform/utils/utils.d.ts.map +1 -1
  162. package/dist/nodes/Transform/utils/utils.js +15 -1
  163. package/dist/nodes/Transform/utils/utils.js.map +1 -1
  164. package/dist/nodes/Wait/Wait.node.d.ts +1 -1
  165. package/dist/types/credentials.json +3 -3
  166. package/dist/types/nodes.json +9 -8
  167. 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,CAuC3B;CACF"}
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 scopes = ['webhooks:write', 'webhooks:read', 'forms:read'];
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: scopes.join(' '),
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,MAAM,GAAG,CAAC,gBAAgB,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;AAEjE;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,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SACzB;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"}
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
- 6f4ed8293a7592b1ccf9d7d192f0bf7f94f37172b04373384df2a66ab6864407
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-13T00:00:00.000+00:00
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-20T00:00:00.000+00:00
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
- dataToSend: resolveSchema({ parameters, schema: z.union([z.literal('autoMapInputs'), z.literal('defineInNode'), expressionSchema]), required: false, displayOptions: {"show":{"operation":["create","update"]}}, defaults: {"operation":"getAll"} }),
25
- inputsToIgnore: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["create","update"],"dataToSend":["autoMapInputs"]}}, defaults: {"operation":"getAll","dataToSend":"defineInNode"} }),
26
- 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"],"dataToSend":["defineInNode"]}}, defaults: {"operation":"getAll","dataToSend":"defineInNode"} }),
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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;
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-21T07:23:49.317+00:00
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-21T07:53:49.317+00:00
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
+ };
@@ -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
+ };
@@ -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
+ };