@revobus/n8n-nodes-kajabi 1.0.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/LICENSE.md +21 -0
- package/README.md +161 -0
- package/dist/credentials/KajabiApi.credentials.d.ts +11 -0
- package/dist/credentials/KajabiApi.credentials.d.ts.map +1 -0
- package/dist/credentials/KajabiApi.credentials.js +50 -0
- package/dist/credentials/KajabiApi.credentials.js.map +1 -0
- package/dist/credentials/KajabiOAuth2Api.credentials.d.ts +12 -0
- package/dist/credentials/KajabiOAuth2Api.credentials.d.ts.map +1 -0
- package/dist/credentials/KajabiOAuth2Api.credentials.js +88 -0
- package/dist/credentials/KajabiOAuth2Api.credentials.js.map +1 -0
- package/dist/nodes/Kajabi/GenericFunctions.d.ts +30 -0
- package/dist/nodes/Kajabi/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Kajabi/GenericFunctions.js +161 -0
- package/dist/nodes/Kajabi/GenericFunctions.js.map +1 -0
- package/dist/nodes/Kajabi/Kajabi.node.d.ts +5 -0
- package/dist/nodes/Kajabi/Kajabi.node.d.ts.map +1 -0
- package/dist/nodes/Kajabi/Kajabi.node.js +176 -0
- package/dist/nodes/Kajabi/Kajabi.node.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/BlogPostDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/BlogPostDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/BlogPostDescription.js +205 -0
- package/dist/nodes/Kajabi/descriptions/BlogPostDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/ContactDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/ContactDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/ContactDescription.js +759 -0
- package/dist/nodes/Kajabi/descriptions/ContactDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/ContactNoteDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/ContactNoteDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/ContactNoteDescription.js +127 -0
- package/dist/nodes/Kajabi/descriptions/ContactNoteDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/ContactTagDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/ContactTagDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/ContactTagDescription.js +114 -0
- package/dist/nodes/Kajabi/descriptions/ContactTagDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/CourseDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/CourseDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/CourseDescription.js +197 -0
- package/dist/nodes/Kajabi/descriptions/CourseDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/CustomerDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/CustomerDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/CustomerDescription.js +358 -0
- package/dist/nodes/Kajabi/descriptions/CustomerDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/FormDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/FormDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/FormDescription.js +381 -0
- package/dist/nodes/Kajabi/descriptions/FormDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/FormSubmissionDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/FormSubmissionDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/FormSubmissionDescription.js +166 -0
- package/dist/nodes/Kajabi/descriptions/FormSubmissionDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/LandingPageDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/LandingPageDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/LandingPageDescription.js +210 -0
- package/dist/nodes/Kajabi/descriptions/LandingPageDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/OfferDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/OfferDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/OfferDescription.js +201 -0
- package/dist/nodes/Kajabi/descriptions/OfferDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/PayoutDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/PayoutDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/PayoutDescription.js +200 -0
- package/dist/nodes/Kajabi/descriptions/PayoutDescription.js.map +1 -0
- package/dist/nodes/Kajabi/descriptions/UserDescription.d.ts +4 -0
- package/dist/nodes/Kajabi/descriptions/UserDescription.d.ts.map +1 -0
- package/dist/nodes/Kajabi/descriptions/UserDescription.js +46 -0
- package/dist/nodes/Kajabi/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Kajabi/kajabi.svg +5 -0
- package/dist/nodes/KajabiTrigger/KajabiTrigger.node.d.ts +13 -0
- package/dist/nodes/KajabiTrigger/KajabiTrigger.node.d.ts.map +1 -0
- package/dist/nodes/KajabiTrigger/KajabiTrigger.node.js +152 -0
- package/dist/nodes/KajabiTrigger/KajabiTrigger.node.js.map +1 -0
- package/dist/nodes/KajabiTrigger/kajabi.svg +5 -0
- package/package.json +67 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Kajabi = void 0;
|
|
4
|
+
const ContactDescription_1 = require("./descriptions/ContactDescription");
|
|
5
|
+
const CustomerDescription_1 = require("./descriptions/CustomerDescription");
|
|
6
|
+
const OfferDescription_1 = require("./descriptions/OfferDescription");
|
|
7
|
+
const CourseDescription_1 = require("./descriptions/CourseDescription");
|
|
8
|
+
const FormDescription_1 = require("./descriptions/FormDescription");
|
|
9
|
+
const FormSubmissionDescription_1 = require("./descriptions/FormSubmissionDescription");
|
|
10
|
+
const BlogPostDescription_1 = require("./descriptions/BlogPostDescription");
|
|
11
|
+
const LandingPageDescription_1 = require("./descriptions/LandingPageDescription");
|
|
12
|
+
const PayoutDescription_1 = require("./descriptions/PayoutDescription");
|
|
13
|
+
const ContactTagDescription_1 = require("./descriptions/ContactTagDescription");
|
|
14
|
+
const ContactNoteDescription_1 = require("./descriptions/ContactNoteDescription");
|
|
15
|
+
const UserDescription_1 = require("./descriptions/UserDescription");
|
|
16
|
+
class Kajabi {
|
|
17
|
+
description = {
|
|
18
|
+
displayName: 'Kajabi',
|
|
19
|
+
name: 'kajabi',
|
|
20
|
+
icon: 'file:kajabi.svg',
|
|
21
|
+
group: ['transform'],
|
|
22
|
+
version: 1,
|
|
23
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
24
|
+
description: 'Interact with Kajabi API to manage contacts, customers, offers, courses, and more',
|
|
25
|
+
defaults: {
|
|
26
|
+
name: 'Kajabi',
|
|
27
|
+
},
|
|
28
|
+
inputs: ['main'],
|
|
29
|
+
outputs: ['main'],
|
|
30
|
+
credentials: [
|
|
31
|
+
{
|
|
32
|
+
name: 'kajabiOAuth2Api',
|
|
33
|
+
required: true,
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
authentication: ['oAuth2'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'kajabiApi',
|
|
42
|
+
required: true,
|
|
43
|
+
displayOptions: {
|
|
44
|
+
show: {
|
|
45
|
+
authentication: ['apiKey'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
requestDefaults: {
|
|
51
|
+
baseURL: 'https://api.kajabi.com',
|
|
52
|
+
headers: {
|
|
53
|
+
Accept: 'application/vnd.api+json',
|
|
54
|
+
'Content-Type': 'application/vnd.api+json',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
properties: [
|
|
58
|
+
// Authentication method selector
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Authentication',
|
|
61
|
+
name: 'authentication',
|
|
62
|
+
type: 'options',
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
name: 'OAuth2',
|
|
66
|
+
value: 'oAuth2',
|
|
67
|
+
description: 'Use OAuth2 with Client Credentials (recommended)',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'API Key',
|
|
71
|
+
value: 'apiKey',
|
|
72
|
+
description: 'Use User API Key from Kajabi Dashboard',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
default: 'oAuth2',
|
|
76
|
+
},
|
|
77
|
+
// Resource selector
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Resource',
|
|
80
|
+
name: 'resource',
|
|
81
|
+
type: 'options',
|
|
82
|
+
noDataExpression: true,
|
|
83
|
+
options: [
|
|
84
|
+
{
|
|
85
|
+
name: 'Blog Post',
|
|
86
|
+
value: 'blogPost',
|
|
87
|
+
description: 'Manage blog posts',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Contact',
|
|
91
|
+
value: 'contact',
|
|
92
|
+
description: 'Manage contacts (leads)',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Contact Note',
|
|
96
|
+
value: 'contactNote',
|
|
97
|
+
description: 'View contact notes',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Contact Tag',
|
|
101
|
+
value: 'contactTag',
|
|
102
|
+
description: 'View contact tags',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Course',
|
|
106
|
+
value: 'course',
|
|
107
|
+
description: 'View courses (products)',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Customer',
|
|
111
|
+
value: 'customer',
|
|
112
|
+
description: 'Manage customers (contacts with purchases)',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'Form',
|
|
116
|
+
value: 'form',
|
|
117
|
+
description: 'Manage forms and submissions',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Form Submission',
|
|
121
|
+
value: 'formSubmission',
|
|
122
|
+
description: 'View form submissions',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'Landing Page',
|
|
126
|
+
value: 'landingPage',
|
|
127
|
+
description: 'View landing pages',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'Offer',
|
|
131
|
+
value: 'offer',
|
|
132
|
+
description: 'View offers (pricing options)',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'Payout',
|
|
136
|
+
value: 'payout',
|
|
137
|
+
description: 'View payment payouts',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'User',
|
|
141
|
+
value: 'user',
|
|
142
|
+
description: 'Get current user profile',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
default: 'contact',
|
|
146
|
+
},
|
|
147
|
+
// Operations and fields for each resource
|
|
148
|
+
...ContactDescription_1.contactOperations,
|
|
149
|
+
...ContactDescription_1.contactFields,
|
|
150
|
+
...CustomerDescription_1.customerOperations,
|
|
151
|
+
...CustomerDescription_1.customerFields,
|
|
152
|
+
...OfferDescription_1.offerOperations,
|
|
153
|
+
...OfferDescription_1.offerFields,
|
|
154
|
+
...CourseDescription_1.courseOperations,
|
|
155
|
+
...CourseDescription_1.courseFields,
|
|
156
|
+
...FormDescription_1.formOperations,
|
|
157
|
+
...FormDescription_1.formFields,
|
|
158
|
+
...FormSubmissionDescription_1.formSubmissionOperations,
|
|
159
|
+
...FormSubmissionDescription_1.formSubmissionFields,
|
|
160
|
+
...BlogPostDescription_1.blogPostOperations,
|
|
161
|
+
...BlogPostDescription_1.blogPostFields,
|
|
162
|
+
...LandingPageDescription_1.landingPageOperations,
|
|
163
|
+
...LandingPageDescription_1.landingPageFields,
|
|
164
|
+
...PayoutDescription_1.payoutOperations,
|
|
165
|
+
...PayoutDescription_1.payoutFields,
|
|
166
|
+
...ContactTagDescription_1.contactTagOperations,
|
|
167
|
+
...ContactTagDescription_1.contactTagFields,
|
|
168
|
+
...ContactNoteDescription_1.contactNoteOperations,
|
|
169
|
+
...ContactNoteDescription_1.contactNoteFields,
|
|
170
|
+
...UserDescription_1.userOperations,
|
|
171
|
+
...UserDescription_1.userFields,
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
exports.Kajabi = Kajabi;
|
|
176
|
+
//# sourceMappingURL=Kajabi.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kajabi.node.js","sourceRoot":"","sources":["../../../nodes/Kajabi/Kajabi.node.ts"],"names":[],"mappings":";;;AAEA,0EAAqF;AACrF,4EAAwF;AACxF,sEAA+E;AAC/E,wEAAkF;AAClF,oEAA4E;AAC5E,wFAA0G;AAC1G,4EAAwF;AACxF,kFAAiG;AACjG,wEAAkF;AAClF,gFAA8F;AAC9F,kFAAiG;AACjG,oEAA4E;AAE5E,MAAa,MAAM;IAClB,WAAW,GAAyB;QACnC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,8DAA8D;QACxE,WAAW,EAAE,mFAAmF;QAChG,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;SACd;QACD,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,iBAAiB;gBACvB,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,cAAc,EAAE,CAAC,QAAQ,CAAC;qBAC1B;iBACD;aACD;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACf,I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oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,8BAA8B;qBAC3C;oBACD;wBACC,IAAI,EAAE,iBAAiB;wBACvB,KAAK,EAAE,gBAAgB;wBACvB,WAAW,EAAE,uBAAuB;qBACpC;oBACD;wBACC,IAAI,EAAE,cAAc;wBACpB,KAAK,EAAE,aAAa;wBACpB,WAAW,EAAE,oBAAoB;qBACjC;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,+BAA+B;qBAC5C;oBACD;wBACC,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,sBAAsB;qBACnC;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,0BAA0B;qBACvC;iBACD;gBACD,OAAO,EAAE,SAAS;aAClB;YACD,0CAA0C;YAC1C,GAAG,sCAAiB;YACpB,GAAG,kCAAa;YAChB,GAAG,wCAAkB;YACrB,GAAG,oCAAc;YACjB,GAAG,kCAAe;YAClB,GAAG,8BAAW;YACd,GAAG,oCAAgB;YACnB,GAAG,gCAAY;YACf,GAAG,gCAAc;YACjB,GAAG,4BAAU;YACb,GAAG,oDAAwB;YAC3B,GAAG,gDAAoB;YACvB,GAAG,wCAAkB;YACrB,GAAG,oCAAc;YACjB,GAAG,8CAAqB;YACxB,GAAG,0CAAiB;YACpB,GAAG,oCAAgB;YACnB,GAAG,gCAAY;YACf,GAAG,4CAAoB;YACvB,GAAG,wCAAgB;YACnB,GAAG,8CAAqB;YACxB,GAAG,0CAAiB;YACpB,GAAG,gCAAc;YACjB,GAAG,4BAAU;SACb;KACD,CAAC;CACF;AA9JD,wBA8JC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlogPostDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Kajabi/descriptions/BlogPostDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EA2D/C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,EA8I3C,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.blogPostFields = exports.blogPostOperations = void 0;
|
|
4
|
+
exports.blogPostOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['blogPost'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a blog post by ID',
|
|
20
|
+
action: 'Get a blog post',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '=/v1/blog_posts/{{$parameter["blogPostId"]}}',
|
|
25
|
+
},
|
|
26
|
+
output: {
|
|
27
|
+
postReceive: [
|
|
28
|
+
{
|
|
29
|
+
type: 'rootProperty',
|
|
30
|
+
properties: {
|
|
31
|
+
property: 'data',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Get Many',
|
|
40
|
+
value: 'getAll',
|
|
41
|
+
description: 'Get many blog posts',
|
|
42
|
+
action: 'Get many blog posts',
|
|
43
|
+
routing: {
|
|
44
|
+
request: {
|
|
45
|
+
method: 'GET',
|
|
46
|
+
url: '/v1/blog_posts',
|
|
47
|
+
},
|
|
48
|
+
output: {
|
|
49
|
+
postReceive: [
|
|
50
|
+
{
|
|
51
|
+
type: 'rootProperty',
|
|
52
|
+
properties: {
|
|
53
|
+
property: 'data',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
default: 'getAll',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
exports.blogPostFields = [
|
|
65
|
+
// ----------------------------------
|
|
66
|
+
// Blog Post ID
|
|
67
|
+
// ----------------------------------
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Blog Post ID',
|
|
70
|
+
name: 'blogPostId',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: '',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['blogPost'],
|
|
77
|
+
operation: ['get'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
description: 'The unique identifier of the blog post',
|
|
81
|
+
},
|
|
82
|
+
// ----------------------------------
|
|
83
|
+
// Get All: Pagination
|
|
84
|
+
// ----------------------------------
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Return All',
|
|
87
|
+
name: 'returnAll',
|
|
88
|
+
type: 'boolean',
|
|
89
|
+
default: false,
|
|
90
|
+
displayOptions: {
|
|
91
|
+
show: {
|
|
92
|
+
resource: ['blogPost'],
|
|
93
|
+
operation: ['getAll'],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Limit',
|
|
100
|
+
name: 'limit',
|
|
101
|
+
type: 'number',
|
|
102
|
+
default: 50,
|
|
103
|
+
displayOptions: {
|
|
104
|
+
show: {
|
|
105
|
+
resource: ['blogPost'],
|
|
106
|
+
operation: ['getAll'],
|
|
107
|
+
returnAll: [false],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
typeOptions: {
|
|
111
|
+
minValue: 1,
|
|
112
|
+
},
|
|
113
|
+
description: 'Max number of results to return',
|
|
114
|
+
routing: {
|
|
115
|
+
send: {
|
|
116
|
+
type: 'query',
|
|
117
|
+
property: 'page[size]',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
// ----------------------------------
|
|
122
|
+
// Get All: Filters
|
|
123
|
+
// ----------------------------------
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Filters',
|
|
126
|
+
name: 'filters',
|
|
127
|
+
type: 'collection',
|
|
128
|
+
placeholder: 'Add Filter',
|
|
129
|
+
default: {},
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
resource: ['blogPost'],
|
|
133
|
+
operation: ['getAll'],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
options: [
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Content Contains',
|
|
139
|
+
name: 'contentCont',
|
|
140
|
+
type: 'string',
|
|
141
|
+
default: '',
|
|
142
|
+
description: 'Filter posts whose content contains this string',
|
|
143
|
+
routing: {
|
|
144
|
+
send: {
|
|
145
|
+
type: 'query',
|
|
146
|
+
property: 'filter[content_cont]',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Published After',
|
|
152
|
+
name: 'publishedAtGt',
|
|
153
|
+
type: 'dateTime',
|
|
154
|
+
default: '',
|
|
155
|
+
description: 'Filter posts published after this date',
|
|
156
|
+
routing: {
|
|
157
|
+
send: {
|
|
158
|
+
type: 'query',
|
|
159
|
+
property: 'filter[published_at_gt]',
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: 'Site ID',
|
|
165
|
+
name: 'siteId',
|
|
166
|
+
type: 'string',
|
|
167
|
+
default: '',
|
|
168
|
+
description: 'Filter by Site ID (required for multi-site accounts)',
|
|
169
|
+
routing: {
|
|
170
|
+
send: {
|
|
171
|
+
type: 'query',
|
|
172
|
+
property: 'filter[site_id]',
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Tags Contain',
|
|
178
|
+
name: 'tagsCont',
|
|
179
|
+
type: 'string',
|
|
180
|
+
default: '',
|
|
181
|
+
description: 'Filter posts that have tags containing this string',
|
|
182
|
+
routing: {
|
|
183
|
+
send: {
|
|
184
|
+
type: 'query',
|
|
185
|
+
property: 'filter[tags_cont]',
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
displayName: 'Title Contains',
|
|
191
|
+
name: 'titleCont',
|
|
192
|
+
type: 'string',
|
|
193
|
+
default: '',
|
|
194
|
+
description: 'Filter posts whose title contains this string',
|
|
195
|
+
routing: {
|
|
196
|
+
send: {
|
|
197
|
+
type: 'query',
|
|
198
|
+
property: 'filter[title_cont]',
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
];
|
|
205
|
+
//# sourceMappingURL=BlogPostDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlogPostDescription.js","sourceRoot":"","sources":["../../../../nodes/Kajabi/descriptions/BlogPostDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;aACtB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EA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W,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sDAAsD;gBACnE,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,iBAAiB;qBAC3B;iBACD;aACD;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oDAAoD;gBACjE,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,mBAAmB;qBAC7B;iBACD;aACD;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+CAA+C;gBAC5D,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,oBAAoB;qBAC9B;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Kajabi/descriptions/ContactDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAyL9C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EA+jB1C,CAAC"}
|