n8n-nodes-base 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/SalesforceJwtApi.credentials.d.ts.map +1 -1
- package/dist/credentials/SalesforceJwtApi.credentials.js +4 -1
- package/dist/credentials/SalesforceJwtApi.credentials.js.map +1 -1
- package/dist/credentials/WordpressOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/WordpressOAuth2Api.credentials.d.ts.map +1 -0
- package/dist/credentials/WordpressOAuth2Api.credentials.js +96 -0
- package/dist/credentials/WordpressOAuth2Api.credentials.js.map +1 -0
- package/dist/known/credentials.json +10 -0
- package/dist/methods/defined.json +4 -1
- package/dist/methods/referenced.json +4 -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/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/v1.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/v1.ts +13 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/v11.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftSql/v11.ts +13 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_create.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_create.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_get.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_get.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_get_all.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_get_all.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_update.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_update.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_create.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_create.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_get.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_get.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_get_all.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_get_all.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_update.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_update.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_create.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_create.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_get.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_get.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_get_all.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_get_all.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_update.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_update.ts +6 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/zammad/v1/resource_ticket/index.schema.js +2 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/zammad/v1/resource_ticket/index.ts +3 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/zammad/v1/resource_ticket/operation_create.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/zammad/v1/resource_ticket/operation_update.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/zammad/v1/resource_ticket/operation_update.ts +73 -0
- package/dist/nodes/ActionNetwork/GenericFunctions.d.ts +10 -10
- package/dist/nodes/DataTable/actions/row/get.operation.d.ts +1 -1
- package/dist/nodes/DataTable/actions/row/get.operation.d.ts.map +1 -1
- package/dist/nodes/DataTable/actions/row/get.operation.js +6 -1
- package/dist/nodes/DataTable/actions/row/get.operation.js.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js +3 -3
- package/dist/nodes/Form/utils/formCompletionUtils.js.map +1 -1
- package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/utils.js +3 -1
- package/dist/nodes/Form/utils/utils.js.map +1 -1
- package/dist/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.d.ts.map +1 -1
- package/dist/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.js +12 -4
- package/dist/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.js.map +1 -1
- package/dist/nodes/HttpRequest/GenericFunctions.d.ts +3 -2
- package/dist/nodes/HttpRequest/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/GenericFunctions.js +26 -10
- package/dist/nodes/HttpRequest/GenericFunctions.js.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +30 -37
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +25 -39
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +20 -48
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Ldap/Helpers.d.ts +1 -0
- package/dist/nodes/Ldap/Helpers.d.ts.map +1 -1
- package/dist/nodes/Ldap/Helpers.js +9 -0
- package/dist/nodes/Ldap/Helpers.js.map +1 -1
- package/dist/nodes/Ldap/Ldap.node.d.ts.map +1 -1
- package/dist/nodes/Ldap/Ldap.node.js +11 -2
- package/dist/nodes/Ldap/Ldap.node.js.map +1 -1
- package/dist/nodes/Merge/v3/helpers/sandbox-utils.d.ts.map +1 -1
- package/dist/nodes/Merge/v3/helpers/sandbox-utils.js +8 -0
- package/dist/nodes/Merge/v3/helpers/sandbox-utils.js.map +1 -1
- package/dist/nodes/Microsoft/Outlook/v2/helpers/utils.js +1 -1
- package/dist/nodes/Microsoft/Outlook/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js +12 -2
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +39 -3
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
- package/dist/nodes/Wordpress/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Wordpress/GenericFunctions.js +25 -4
- package/dist/nodes/Wordpress/GenericFunctions.js.map +1 -1
- package/dist/nodes/Wordpress/Wordpress.node.d.ts.map +1 -1
- package/dist/nodes/Wordpress/Wordpress.node.js +31 -0
- package/dist/nodes/Wordpress/Wordpress.node.js.map +1 -1
- package/dist/nodes/Zammad/Zammad.node.d.ts +18 -2
- package/dist/nodes/Zammad/Zammad.node.d.ts.map +1 -1
- package/dist/nodes/Zammad/Zammad.node.js +60 -2
- package/dist/nodes/Zammad/Zammad.node.js.map +1 -1
- package/dist/nodes/Zammad/descriptions/TicketDescription.d.ts.map +1 -1
- package/dist/nodes/Zammad/descriptions/TicketDescription.js +146 -2
- package/dist/nodes/Zammad/descriptions/TicketDescription.js.map +1 -1
- package/dist/nodes/Zammad/types.d.ts.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +2 -1
- package/dist/types/nodes.json +5 -5
- package/dist/utils/sendAndWait/utils.d.ts.map +1 -1
- package/dist/utils/sendAndWait/utils.js +6 -2
- package/dist/utils/sendAndWait/utils.js.map +1 -1
- package/package.json +8 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesforceJwtApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/SalesforceJwtApi.credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SalesforceJwtApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/SalesforceJwtApi.credentials.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,8BAA8B,EAC9B,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,gBAAiB,YAAW,eAAe;IACvD,IAAI,SAAsB;IAE1B,WAAW,SAAwB;IAEnC,gBAAgB,SAAgB;IAEhC,UAAU,EAAE,eAAe,EAAE,CA6C3B;IAEI,YAAY,CACjB,WAAW,EAAE,8BAA8B,EAC3C,cAAc,EAAE,mBAAmB,GACjC,OAAO,CAAC,mBAAmB,CAAC;IA+C/B,IAAI,EAAE,sBAAsB,CAO1B;CACF"}
|
|
@@ -7,6 +7,7 @@ exports.SalesforceJwtApi = void 0;
|
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
|
|
9
9
|
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
10
|
+
const utilities_1 = require("../utils/utilities");
|
|
10
11
|
class SalesforceJwtApi {
|
|
11
12
|
name = 'salesforceJwtApi';
|
|
12
13
|
displayName = 'Salesforce JWT API';
|
|
@@ -49,6 +50,7 @@ class SalesforceJwtApi {
|
|
|
49
50
|
type: 'string',
|
|
50
51
|
typeOptions: {
|
|
51
52
|
password: true,
|
|
53
|
+
rows: 4,
|
|
52
54
|
},
|
|
53
55
|
default: '',
|
|
54
56
|
required: true,
|
|
@@ -60,12 +62,13 @@ class SalesforceJwtApi {
|
|
|
60
62
|
const authUrl = credentials.environment === 'sandbox'
|
|
61
63
|
? 'https://test.salesforce.com'
|
|
62
64
|
: 'https://login.salesforce.com';
|
|
65
|
+
const privateKey = (0, utilities_1.formatPrivateKey)(credentials.privateKey);
|
|
63
66
|
const signature = jsonwebtoken_1.default.sign({
|
|
64
67
|
iss: credentials.clientId,
|
|
65
68
|
sub: credentials.username,
|
|
66
69
|
aud: authUrl,
|
|
67
70
|
exp: now + 3 * 60,
|
|
68
|
-
},
|
|
71
|
+
}, privateKey, {
|
|
69
72
|
algorithm: 'RS256',
|
|
70
73
|
header: {
|
|
71
74
|
alg: 'RS256',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesforceJwtApi.credentials.js","sourceRoot":"","sources":["../../credentials/SalesforceJwtApi.credentials.ts"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAC1B,gEAA+B;AAC/B,sEAAqC;
|
|
1
|
+
{"version":3,"file":"SalesforceJwtApi.credentials.js","sourceRoot":"","sources":["../../credentials/SalesforceJwtApi.credentials.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class WordpressOAuth2Api implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
extends: string[];
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=WordpressOAuth2Api.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WordpressOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/WordpressOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAErE,qBAAa,kBAAmB,YAAW,eAAe;IACzD,IAAI,SAAwB;IAE5B,WAAW,SAA0B;IAErC,OAAO,WAAiB;IAExB,gBAAgB,SAAe;IAE/B,UAAU,EAAE,eAAe,EAAE,CAuF3B;CACF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WordpressOAuth2Api = void 0;
|
|
4
|
+
class WordpressOAuth2Api {
|
|
5
|
+
name = 'wordpressOAuth2Api';
|
|
6
|
+
displayName = 'WordPress OAuth2 API';
|
|
7
|
+
extends = ['oAuth2Api'];
|
|
8
|
+
documentationUrl = 'wordpress';
|
|
9
|
+
properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'OAuth2 authentication works with WordPress.com-hosted sites only. For self-hosted WordPress, use the WordPress API (Basic Auth) credential instead.',
|
|
12
|
+
name: 'wordpressComNotice',
|
|
13
|
+
type: 'notice',
|
|
14
|
+
default: '',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Grant Type',
|
|
18
|
+
name: 'grantType',
|
|
19
|
+
type: 'hidden',
|
|
20
|
+
default: 'authorizationCode',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Authorization URL',
|
|
24
|
+
name: 'authUrl',
|
|
25
|
+
type: 'hidden',
|
|
26
|
+
default: 'https://public-api.wordpress.com/oauth2/authorize',
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Access Token URL',
|
|
31
|
+
name: 'accessTokenUrl',
|
|
32
|
+
type: 'hidden',
|
|
33
|
+
default: 'https://public-api.wordpress.com/oauth2/token',
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Auth URI Query Parameters',
|
|
38
|
+
name: 'authQueryParameters',
|
|
39
|
+
type: 'hidden',
|
|
40
|
+
default: '',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Authentication',
|
|
44
|
+
name: 'authentication',
|
|
45
|
+
type: 'hidden',
|
|
46
|
+
default: 'header',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: 'WordPress.com Site',
|
|
50
|
+
name: 'wordpressSite',
|
|
51
|
+
type: 'string',
|
|
52
|
+
default: '',
|
|
53
|
+
required: true,
|
|
54
|
+
placeholder: 'myblog.wordpress.com',
|
|
55
|
+
description: 'Your WordPress.com site identifier — either a .wordpress.com subdomain (e.g. myblog.wordpress.com) or a custom domain (e.g. myblog.com). Used in API requests that still route through public-api.wordpress.com.',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Custom Scopes',
|
|
59
|
+
name: 'customScopes',
|
|
60
|
+
type: 'boolean',
|
|
61
|
+
default: false,
|
|
62
|
+
description: 'Whether to define custom OAuth2 scopes instead of the defaults',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'The default scopes needed for the node to work are already set. If you change these the node may not function correctly.',
|
|
66
|
+
name: 'customScopesNotice',
|
|
67
|
+
type: 'notice',
|
|
68
|
+
default: '',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
customScopes: [true],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Enabled Scopes',
|
|
77
|
+
name: 'enabledScopes',
|
|
78
|
+
type: 'string',
|
|
79
|
+
displayOptions: {
|
|
80
|
+
show: {
|
|
81
|
+
customScopes: [true],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
default: 'global',
|
|
85
|
+
description: 'Space-separated list of OAuth2 scopes to request',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Scope',
|
|
89
|
+
name: 'scope',
|
|
90
|
+
type: 'hidden',
|
|
91
|
+
default: '={{$self["customScopes"] ? $self["enabledScopes"] : "global"}}',
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
exports.WordpressOAuth2Api = WordpressOAuth2Api;
|
|
96
|
+
//# sourceMappingURL=WordpressOAuth2Api.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WordpressOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/WordpressOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IAC9B,IAAI,GAAG,oBAAoB,CAAC;IAE5B,WAAW,GAAG,sBAAsB,CAAC;IAErC,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IAExB,gBAAgB,GAAG,WAAW,CAAC;IAE/B,UAAU,GAAsB;QAC/B;YACC,WAAW,EACV,qJAAqJ;YACtJ,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACX;QACD;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,mDAAmD;YAC5D,QAAQ,EAAE,IAAI;SACd;QACD;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,+CAA+C;YACxD,QAAQ,EAAE,IAAI;SACd;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;QACD;YACC,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,sBAAsB;YACnC,WAAW,EACV,kNAAkN;SACnN;QACD;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,gEAAgE;SAC7E;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,QAAQ;YACjB,WAAW,EAAE,kDAAkD;SAC/D;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,gEAAgE;SACzE;KACD,CAAC;CACF;AAjGD,gDAiGC"}
|
|
@@ -2929,6 +2929,16 @@
|
|
|
2929
2929
|
"wordpress"
|
|
2930
2930
|
]
|
|
2931
2931
|
},
|
|
2932
|
+
"wordpressOAuth2Api": {
|
|
2933
|
+
"className": "WordpressOAuth2Api",
|
|
2934
|
+
"sourcePath": "dist/credentials/WordpressOAuth2Api.credentials.js",
|
|
2935
|
+
"extends": [
|
|
2936
|
+
"oAuth2Api"
|
|
2937
|
+
],
|
|
2938
|
+
"supportedNodes": [
|
|
2939
|
+
"wordpress"
|
|
2940
|
+
]
|
|
2941
|
+
},
|
|
2932
2942
|
"workableApi": {
|
|
2933
2943
|
"className": "WorkableApi",
|
|
2934
2944
|
"sourcePath": "dist/credentials/WorkableApi.credentials.js",
|
|
@@ -1082,9 +1082,12 @@
|
|
|
1082
1082
|
"loadGroupNames",
|
|
1083
1083
|
"loadOrganizationNames",
|
|
1084
1084
|
"loadCustomerEmails",
|
|
1085
|
+
"loadCustomerIds",
|
|
1085
1086
|
"loadGroups",
|
|
1086
1087
|
"loadOrganizations",
|
|
1087
|
-
"loadUsers"
|
|
1088
|
+
"loadUsers",
|
|
1089
|
+
"loadTicketStates",
|
|
1090
|
+
"loadTicketPriorities"
|
|
1088
1091
|
],
|
|
1089
1092
|
"zendesk": [
|
|
1090
1093
|
"getCustomFields",
|
|
@@ -1031,6 +1031,10 @@
|
|
|
1031
1031
|
"loadGroupNames",
|
|
1032
1032
|
"loadCustomerEmails",
|
|
1033
1033
|
"loadTicketCustomFields",
|
|
1034
|
+
"loadTicketStates",
|
|
1035
|
+
"loadTicketPriorities",
|
|
1036
|
+
"loadUsers",
|
|
1037
|
+
"loadCustomerIds",
|
|
1034
1038
|
"loadUserCustomFields",
|
|
1035
1039
|
"loadOrganizations",
|
|
1036
1040
|
"loadOrganizationNames",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b4906c9733dc9068394dc20f7a1764f0944d3eecc1f1a1b99e1ebe2acb1df757
|
|
@@ -33,13 +33,13 @@ export type GoogleAnalyticsV2ReportGetParams = {
|
|
|
33
33
|
/**
|
|
34
34
|
* Start
|
|
35
35
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
36
|
-
* @default 2026-03-
|
|
36
|
+
* @default 2026-03-22T00:00:00.000+00:00
|
|
37
37
|
*/
|
|
38
38
|
startDate?: string | Expression<string>;
|
|
39
39
|
/**
|
|
40
40
|
* End
|
|
41
41
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
42
|
-
* @default 2026-03-
|
|
42
|
+
* @default 2026-03-29T00:00:00.000+00:00
|
|
43
43
|
*/
|
|
44
44
|
endDate?: string | Expression<string>;
|
|
45
45
|
/**
|
|
@@ -23,12 +23,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
|
|
|
23
23
|
subject?: string | Expression<string> | PlaceholderValue;
|
|
24
24
|
/**
|
|
25
25
|
* Start
|
|
26
|
-
* @default 2026-03-
|
|
26
|
+
* @default 2026-03-30T14:20:48.113+00:00
|
|
27
27
|
*/
|
|
28
28
|
startDateTime?: string | Expression<string>;
|
|
29
29
|
/**
|
|
30
30
|
* End
|
|
31
|
-
* @default 2026-03-
|
|
31
|
+
* @default 2026-03-30T14:50:48.113+00:00
|
|
32
32
|
*/
|
|
33
33
|
endDateTime?: string | Expression<string>;
|
|
34
34
|
/**
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
const parametersSchema = z.object({
|
|
17
17
|
operation: z.union([z.literal('executeQuery'), z.literal('insert'), z.literal('update'), z.literal('delete')]).optional(),
|
|
18
18
|
query: resolveSchema({ parameters, schema: z.string(), required: false, displayOptions: {"show":{"operation":["executeQuery"]}}, defaults: {"operation":"insert"} }),
|
|
19
|
+
options: resolveSchema({ parameters, schema: z.object({ queryReplacement: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"operation":["executeQuery"]}}, defaults: {"operation":"insert"} }),
|
|
19
20
|
table: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["insert","update","delete"]}}, defaults: {"operation":"insert"} }),
|
|
20
21
|
columns: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["insert","update"]}}, defaults: {"operation":"insert"} }),
|
|
21
22
|
updateKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["update"]}}, defaults: {"operation":"insert"} }),
|
|
@@ -7,10 +7,22 @@
|
|
|
7
7
|
export interface MicrosoftSqlV1Params {
|
|
8
8
|
operation?: 'executeQuery' | 'insert' | 'update' | 'delete';
|
|
9
9
|
/**
|
|
10
|
-
* The SQL query to execute
|
|
10
|
+
* The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.
|
|
11
|
+
* @hint Consider using query parameters to prevent SQL injection attacks. Add them in the options below
|
|
11
12
|
* @displayOptions.show { operation: ["executeQuery"] }
|
|
12
13
|
*/
|
|
13
14
|
query?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Options
|
|
17
|
+
* @displayOptions.show { operation: ["executeQuery"] }
|
|
18
|
+
* @default {}
|
|
19
|
+
*/
|
|
20
|
+
options?: {
|
|
21
|
+
/** Comma-separated list of values to use as query parameters. Reference them in the query as $1, $2, $3, etc. You can drag values from the input panel on the left.
|
|
22
|
+
* @hint Comma-separated list of values: reference them in your query as $1, $2, $3…
|
|
23
|
+
*/
|
|
24
|
+
queryReplacement?: string | Expression<string> | PlaceholderValue;
|
|
25
|
+
};
|
|
14
26
|
/**
|
|
15
27
|
* Name of the table in which to insert data to
|
|
16
28
|
* @displayOptions.show { operation: ["insert"] }
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
const parametersSchema = z.object({
|
|
17
17
|
operation: z.union([z.literal('executeQuery'), z.literal('insert'), z.literal('update'), z.literal('delete')]).optional(),
|
|
18
18
|
query: resolveSchema({ parameters, schema: z.string(), required: false, displayOptions: {"show":{"operation":["executeQuery"]}}, defaults: {"operation":"insert"} }),
|
|
19
|
+
options: resolveSchema({ parameters, schema: z.object({ queryReplacement: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"operation":["executeQuery"]}}, defaults: {"operation":"insert"} }),
|
|
19
20
|
table: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["insert","update","delete"]}}, defaults: {"operation":"insert"} }),
|
|
20
21
|
columns: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["insert","update"]}}, defaults: {"operation":"insert"} }),
|
|
21
22
|
updateKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"operation":["update"]}}, defaults: {"operation":"insert"} }),
|
|
@@ -7,10 +7,22 @@
|
|
|
7
7
|
export interface MicrosoftSqlV11Params {
|
|
8
8
|
operation?: 'executeQuery' | 'insert' | 'update' | 'delete';
|
|
9
9
|
/**
|
|
10
|
-
* The SQL query to execute
|
|
10
|
+
* The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.
|
|
11
|
+
* @hint Consider using query parameters to prevent SQL injection attacks. Add them in the options below
|
|
11
12
|
* @displayOptions.show { operation: ["executeQuery"] }
|
|
12
13
|
*/
|
|
13
14
|
query?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Options
|
|
17
|
+
* @displayOptions.show { operation: ["executeQuery"] }
|
|
18
|
+
* @default {}
|
|
19
|
+
*/
|
|
20
|
+
options?: {
|
|
21
|
+
/** Comma-separated list of values to use as query parameters. Reference them in the query as $1, $2, $3, etc. You can drag values from the input panel on the left.
|
|
22
|
+
* @hint Comma-separated list of values: reference them in your query as $1, $2, $3…
|
|
23
|
+
*/
|
|
24
|
+
queryReplacement?: string | Expression<string> | PlaceholderValue;
|
|
25
|
+
};
|
|
14
26
|
/**
|
|
15
27
|
* Name of the table in which to insert data to
|
|
16
28
|
* @displayOptions.show { operation: ["insert", "update", "delete"] }
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('page'),
|
|
18
18
|
operation: z.literal('create').default('create'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
title: stringOrExpression.optional(),
|
|
20
21
|
additionalFields: z.object({ authorId: stringOrExpression.optional(), parent: numberOrExpression.optional(), content: stringOrExpression.optional(), slug: stringOrExpression.optional(), password: stringOrExpression.optional(), status: z.union([z.literal('draft'), z.literal('future'), z.literal('pending'), z.literal('private'), z.literal('publish'), expressionSchema]).optional(), commentStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), pingStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), pageTemplate: z.unknown().optional(), menuOrder: numberOrExpression.optional(), featuredMediaId: numberOrExpression.optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_create.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Create a post */
|
|
12
13
|
export type WordpressV1PageCreateParams = {
|
|
13
14
|
resource: 'page';
|
|
14
15
|
operation: 'create';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* The title for the page
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('page'),
|
|
18
18
|
operation: z.literal('get'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
pageId: stringOrExpression.optional(),
|
|
20
21
|
options: z.object({ password: stringOrExpression.optional(), context: z.union([z.literal('view'), z.literal('embed'), z.literal('edit'), expressionSchema]).optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_get.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Get a post */
|
|
12
13
|
export type WordpressV1PageGetParams = {
|
|
13
14
|
resource: 'page';
|
|
14
15
|
operation: 'get';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Unique identifier for the object
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('page'),
|
|
18
18
|
operation: z.literal('getAll'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
returnAll: booleanOrExpression.optional(),
|
|
20
21
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
21
22
|
options: z.object({ after: stringOrExpression.optional(), author: z.array(z.string()).optional(), before: stringOrExpression.optional(), context: z.union([z.literal('view'), z.literal('embed'), z.literal('edit'), expressionSchema]).optional(), menuOrder: numberOrExpression.optional(), order: z.union([z.literal('asc'), z.literal('desc'), expressionSchema]).optional(), orderBy: z.union([z.literal('author'), z.literal('date'), z.literal('id'), z.literal('include'), z.literal('include_slugs'), z.literal('modified'), z.literal('parent'), z.literal('relevance'), z.literal('slug'), z.literal('title'), expressionSchema]).optional(), page: numberOrExpression.optional(), parent: numberOrExpression.optional(), search: stringOrExpression.optional(), status: z.union([z.literal('draft'), z.literal('future'), z.literal('pending'), z.literal('private'), z.literal('publish'), expressionSchema]).optional() }).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_get_all.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Get many posts */
|
|
12
13
|
export type WordpressV1PageGetAllParams = {
|
|
13
14
|
resource: 'page';
|
|
14
15
|
operation: 'getAll';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Whether to return all results or only up to a given limit
|
|
17
23
|
* @default false
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('page'),
|
|
18
18
|
operation: z.literal('update'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
pageId: stringOrExpression.optional(),
|
|
20
21
|
updateFields: z.object({ authorId: stringOrExpression.optional(), parent: numberOrExpression.optional(), title: stringOrExpression.optional(), content: stringOrExpression.optional(), slug: stringOrExpression.optional(), password: stringOrExpression.optional(), status: z.union([z.literal('draft'), z.literal('future'), z.literal('pending'), z.literal('private'), z.literal('publish'), expressionSchema]).optional(), commentStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), pingStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), pageTemplate: z.unknown().optional(), menuOrder: numberOrExpression.optional(), commentStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), featuredMediaId: numberOrExpression.optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_page/operation_update.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Update a post */
|
|
12
13
|
export type WordpressV1PageUpdateParams = {
|
|
13
14
|
resource: 'page';
|
|
14
15
|
operation: 'update';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Unique identifier for the object
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('post').default('post'),
|
|
18
18
|
operation: z.literal('create').default('create'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
title: stringOrExpression.optional(),
|
|
20
21
|
additionalFields: z.object({ authorId: stringOrExpression.optional(), content: stringOrExpression.optional(), slug: stringOrExpression.optional(), password: stringOrExpression.optional(), status: z.union([z.literal('draft'), z.literal('future'), z.literal('pending'), z.literal('private'), z.literal('publish'), expressionSchema]).optional(), date: stringOrExpression.optional(), commentStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), pingStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), format: z.union([z.literal('aside'), z.literal('audio'), z.literal('chat'), z.literal('gallery'), z.literal('image'), z.literal('link'), z.literal('quote'), z.literal('standard'), z.literal('status'), z.literal('video'), expressionSchema]).optional(), sticky: booleanOrExpression.optional(), categories: z.array(z.string()).optional(), tags: z.array(z.string()).optional(), postTemplate: z.unknown().optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_create.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Create a post */
|
|
12
13
|
export type WordpressV1PostCreateParams = {
|
|
13
14
|
resource: 'post';
|
|
14
15
|
operation: 'create';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* The title for the post
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('post').default('post'),
|
|
18
18
|
operation: z.literal('get'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
postId: stringOrExpression.optional(),
|
|
20
21
|
options: z.object({ password: stringOrExpression.optional(), context: z.union([z.literal('view'), z.literal('embed'), z.literal('edit'), expressionSchema]).optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_get.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Get a post */
|
|
12
13
|
export type WordpressV1PostGetParams = {
|
|
13
14
|
resource: 'post';
|
|
14
15
|
operation: 'get';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Unique identifier for the object
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('post').default('post'),
|
|
18
18
|
operation: z.literal('getAll'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
returnAll: booleanOrExpression.optional(),
|
|
20
21
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
21
22
|
options: z.object({ after: stringOrExpression.optional(), author: z.array(z.string()).optional(), before: stringOrExpression.optional(), categories: z.array(z.string()).optional(), context: z.union([z.literal('view'), z.literal('embed'), z.literal('edit'), expressionSchema]).optional(), excludedCategories: z.array(z.string()).optional(), excludedTags: z.array(z.string()).optional(), order: z.union([z.literal('asc'), z.literal('desc'), expressionSchema]).optional(), orderBy: z.union([z.literal('author'), z.literal('date'), z.literal('id'), z.literal('include'), z.literal('include_slugs'), z.literal('modified'), z.literal('parent'), z.literal('relevance'), z.literal('slug'), z.literal('title'), expressionSchema]).optional(), search: stringOrExpression.optional(), status: z.union([z.literal('draft'), z.literal('future'), z.literal('pending'), z.literal('private'), z.literal('publish'), expressionSchema]).optional(), sticky: booleanOrExpression.optional(), tags: z.array(z.string()).optional() }).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_get_all.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Get many posts */
|
|
12
13
|
export type WordpressV1PostGetAllParams = {
|
|
13
14
|
resource: 'post';
|
|
14
15
|
operation: 'getAll';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Whether to return all results or only up to a given limit
|
|
17
23
|
* @default false
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('post').default('post'),
|
|
18
18
|
operation: z.literal('update'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
postId: stringOrExpression.optional(),
|
|
20
21
|
updateFields: z.object({ authorId: stringOrExpression.optional(), title: stringOrExpression.optional(), content: stringOrExpression.optional(), slug: stringOrExpression.optional(), password: stringOrExpression.optional(), status: z.union([z.literal('draft'), z.literal('future'), z.literal('pending'), z.literal('private'), z.literal('publish'), expressionSchema]).optional(), date: stringOrExpression.optional(), commentStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), pingStatus: z.union([z.literal('open'), z.literal('closed'), expressionSchema]).optional(), format: z.union([z.literal('aside'), z.literal('audio'), z.literal('chat'), z.literal('gallery'), z.literal('image'), z.literal('link'), z.literal('quote'), z.literal('standard'), z.literal('status'), z.literal('video'), expressionSchema]).optional(), sticky: booleanOrExpression.optional(), categories: z.array(z.string()).optional(), tags: z.array(z.string()).optional(), postTemplate: z.unknown().optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_post/operation_update.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Update a post */
|
|
12
13
|
export type WordpressV1PostUpdateParams = {
|
|
13
14
|
resource: 'post';
|
|
14
15
|
operation: 'update';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Unique identifier for the object
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('user'),
|
|
18
18
|
operation: z.literal('create').default('create'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
username: stringOrExpression.optional(),
|
|
20
21
|
name: stringOrExpression.optional(),
|
|
21
22
|
firstName: stringOrExpression.optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_create.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Create a post */
|
|
12
13
|
export type WordpressV1UserCreateParams = {
|
|
13
14
|
resource: 'user';
|
|
14
15
|
operation: 'create';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Login name for the user
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('user'),
|
|
18
18
|
operation: z.literal('get'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
userId: stringOrExpression.optional(),
|
|
20
21
|
options: z.object({ context: z.union([z.literal('view'), z.literal('embed'), z.literal('edit'), expressionSchema]).optional() }).optional(),
|
|
21
22
|
}).optional(),
|
package/dist/node-definitions/nodes/n8n-nodes-base/wordpress/v1/resource_user/operation_get.ts
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
interface Credentials {
|
|
8
8
|
wordpressApi: CredentialReference;
|
|
9
|
+
wordpressOAuth2Api: CredentialReference;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
/** Get a post */
|
|
12
13
|
export type WordpressV1UserGetParams = {
|
|
13
14
|
resource: 'user';
|
|
14
15
|
operation: 'get';
|
|
16
|
+
/**
|
|
17
|
+
* The authentication method to use
|
|
18
|
+
* @default basicAuth
|
|
19
|
+
*/
|
|
20
|
+
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
|
|
15
21
|
/**
|
|
16
22
|
* Unique identifier for the user
|
|
17
23
|
*/
|
|
@@ -16,6 +16,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
16
16
|
parameters: z.object({
|
|
17
17
|
resource: z.literal('user'),
|
|
18
18
|
operation: z.literal('getAll'),
|
|
19
|
+
authType: z.union([z.literal('basicAuth'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
19
20
|
returnAll: booleanOrExpression.optional(),
|
|
20
21
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
21
22
|
options: z.object({ context: z.union([z.literal('view'), z.literal('embed'), z.literal('edit'), expressionSchema]).optional(), orderBy: z.union([z.literal('email'), z.literal('id'), z.literal('include'), z.literal('include_slugs'), z.literal('name'), z.literal('registered_date'), z.literal('slug'), z.literal('url'), expressionSchema]).optional(), order: z.union([z.literal('asc'), z.literal('desc'), expressionSchema]).optional(), search: stringOrExpression.optional(), who: z.union([z.literal('authors'), expressionSchema]).optional() }).optional(),
|