@posty5/n8n-nodes-posty5 2.0.0 → 2.1.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/README.md +7 -7
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.d.ts.map +1 -1
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js +41 -72
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.d.ts.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js +93 -84
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +73 -118
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js +59 -78
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js.map +1 -1
- package/dist/nodes/{Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.d.ts → Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts} +2 -2
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -0
- package/dist/nodes/{Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.js → Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js} +151 -116
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -0
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.d.ts.map +1 -1
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js +31 -159
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js.map +1 -1
- package/dist/types/common.d.ts +58 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +7 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/form-submission.types.d.ts +110 -0
- package/dist/types/form-submission.types.d.ts.map +1 -0
- package/dist/types/form-submission.types.js +7 -0
- package/dist/types/form-submission.types.js.map +1 -0
- package/dist/types/html-hosting.types.d.ts +177 -0
- package/dist/types/html-hosting.types.d.ts.map +1 -0
- package/dist/types/html-hosting.types.js +7 -0
- package/dist/types/html-hosting.types.js.map +1 -0
- package/dist/types/qr-code.types.d.ts +259 -0
- package/dist/types/qr-code.types.d.ts.map +1 -0
- package/dist/types/qr-code.types.js +7 -0
- package/dist/types/qr-code.types.js.map +1 -0
- package/dist/types/short-link.types.d.ts +156 -0
- package/dist/types/short-link.types.d.ts.map +1 -0
- package/dist/types/short-link.types.js +7 -0
- package/dist/types/short-link.types.js.map +1 -0
- package/dist/types/task.types.d.ts +332 -0
- package/dist/types/task.types.d.ts.map +1 -0
- package/dist/types/task.types.js +7 -0
- package/dist/types/task.types.js.map +1 -0
- package/dist/types/workspace.types.d.ts +105 -0
- package/dist/types/workspace.types.d.ts.map +1 -0
- package/dist/types/workspace.types.js +7 -0
- package/dist/types/workspace.types.js.map +1 -0
- package/dist/utils/api.helpers.d.ts +40 -0
- package/dist/utils/api.helpers.d.ts.map +1 -0
- package/dist/utils/api.helpers.js +101 -0
- package/dist/utils/api.helpers.js.map +1 -0
- package/dist/utils/constants.d.ts +22 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +25 -0
- package/dist/utils/constants.js.map +1 -0
- package/package.json +9 -14
- package/dist/nodes/Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.d.ts.map +0 -1
- package/dist/nodes/Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.js.map +0 -1
|
@@ -1,40 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.Posty5SocialPublisherWorkspace = void 0;
|
|
37
|
-
const
|
|
4
|
+
const api_helpers_1 = require("../../utils/api.helpers");
|
|
5
|
+
const constants_1 = require("../../utils/constants");
|
|
38
6
|
class Posty5SocialPublisherWorkspace {
|
|
39
7
|
constructor() {
|
|
40
8
|
this.description = {
|
|
@@ -63,18 +31,6 @@ class Posty5SocialPublisherWorkspace {
|
|
|
63
31
|
type: 'options',
|
|
64
32
|
noDataExpression: true,
|
|
65
33
|
options: [
|
|
66
|
-
{
|
|
67
|
-
name: 'Create',
|
|
68
|
-
value: 'create',
|
|
69
|
-
description: 'Create a new workspace',
|
|
70
|
-
action: 'Create a workspace',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'Delete',
|
|
74
|
-
value: 'delete',
|
|
75
|
-
description: 'Delete a workspace',
|
|
76
|
-
action: 'Delete a workspace',
|
|
77
|
-
},
|
|
78
34
|
{
|
|
79
35
|
name: 'Get',
|
|
80
36
|
value: 'get',
|
|
@@ -88,59 +44,15 @@ class Posty5SocialPublisherWorkspace {
|
|
|
88
44
|
action: 'List workspaces',
|
|
89
45
|
},
|
|
90
46
|
{
|
|
91
|
-
name: '
|
|
92
|
-
value: '
|
|
93
|
-
description: '
|
|
94
|
-
action: '
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'Get For New Task',
|
|
98
|
-
value: 'getForNewTask',
|
|
99
|
-
description: 'Get workspace details for creating new task',
|
|
100
|
-
action: 'Get workspace for new task',
|
|
47
|
+
name: 'Get For New Post',
|
|
48
|
+
value: 'getForNewPost',
|
|
49
|
+
description: 'Get workspace details for creating new post',
|
|
50
|
+
action: 'Get workspace for new post',
|
|
101
51
|
},
|
|
102
52
|
],
|
|
103
|
-
default: '
|
|
53
|
+
default: 'list',
|
|
104
54
|
},
|
|
105
|
-
//
|
|
106
|
-
{
|
|
107
|
-
displayName: 'Workspace Name',
|
|
108
|
-
name: 'name',
|
|
109
|
-
type: 'string',
|
|
110
|
-
required: true,
|
|
111
|
-
displayOptions: {
|
|
112
|
-
show: {
|
|
113
|
-
operation: ['create', 'update'],
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
default: '',
|
|
117
|
-
description: 'Name of the workspace',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
displayName: 'Description',
|
|
121
|
-
name: 'description',
|
|
122
|
-
type: 'string',
|
|
123
|
-
displayOptions: {
|
|
124
|
-
show: {
|
|
125
|
-
operation: ['create', 'update'],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
default: '',
|
|
129
|
-
description: 'Description of the workspace',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
displayName: 'Logo',
|
|
133
|
-
name: 'logo',
|
|
134
|
-
type: 'string',
|
|
135
|
-
displayOptions: {
|
|
136
|
-
show: {
|
|
137
|
-
operation: ['create', 'update'],
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
default: 'data',
|
|
141
|
-
description: 'Name of the binary property containing the logo image (optional)',
|
|
142
|
-
},
|
|
143
|
-
// Workspace ID for get/update/delete operations
|
|
55
|
+
// Workspace ID for get/getForNewPost operations
|
|
144
56
|
{
|
|
145
57
|
displayName: 'Workspace ID',
|
|
146
58
|
name: 'workspaceId',
|
|
@@ -148,7 +60,7 @@ class Posty5SocialPublisherWorkspace {
|
|
|
148
60
|
required: true,
|
|
149
61
|
displayOptions: {
|
|
150
62
|
show: {
|
|
151
|
-
operation: ['get', '
|
|
63
|
+
operation: ['get', 'getForNewPost'],
|
|
152
64
|
},
|
|
153
65
|
},
|
|
154
66
|
default: '',
|
|
@@ -192,80 +104,40 @@ class Posty5SocialPublisherWorkspace {
|
|
|
192
104
|
const returnData = [];
|
|
193
105
|
const operation = this.getNodeParameter('operation', 0);
|
|
194
106
|
const credentials = await this.getCredentials('posty5Api');
|
|
195
|
-
const
|
|
196
|
-
const http = new HttpClient({
|
|
197
|
-
apiKey: credentials.apiKey,
|
|
198
|
-
});
|
|
199
|
-
const client = new social_publisher_workspace_1.SocialPublisherWorkspaceClient(http);
|
|
107
|
+
const apiKey = credentials.apiKey;
|
|
200
108
|
for (let i = 0; i < items.length; i++) {
|
|
201
109
|
try {
|
|
202
110
|
let responseData = {};
|
|
203
|
-
if (operation === '
|
|
204
|
-
const name = this.getNodeParameter('name', i);
|
|
205
|
-
const description = this.getNodeParameter('description', i, '');
|
|
206
|
-
const logoBinaryProperty = this.getNodeParameter('logo', i, '');
|
|
207
|
-
const params = { name };
|
|
208
|
-
if (description)
|
|
209
|
-
params.description = description;
|
|
210
|
-
// Handle optional logo upload
|
|
211
|
-
let logoFile;
|
|
212
|
-
if (logoBinaryProperty && items[i].binary?.[logoBinaryProperty]) {
|
|
213
|
-
const logoBuffer = await this.helpers.getBinaryDataBuffer(i, logoBinaryProperty);
|
|
214
|
-
const logoBlob = new Blob([logoBuffer], { type: 'image/png' });
|
|
215
|
-
logoFile = new File([logoBlob], 'logo.png', { type: 'image/png' });
|
|
216
|
-
}
|
|
217
|
-
responseData = await client.create(params, logoFile);
|
|
218
|
-
}
|
|
219
|
-
else if (operation === 'get') {
|
|
220
|
-
const workspaceId = this.getNodeParameter('workspaceId', i);
|
|
221
|
-
responseData = await client.get(workspaceId);
|
|
222
|
-
}
|
|
223
|
-
else if (operation === 'update') {
|
|
111
|
+
if (operation === 'get') {
|
|
224
112
|
const workspaceId = this.getNodeParameter('workspaceId', i);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
if (description)
|
|
230
|
-
params.description = description;
|
|
231
|
-
// Handle optional logo upload
|
|
232
|
-
let logoFile;
|
|
233
|
-
if (logoBinaryProperty && items[i].binary?.[logoBinaryProperty]) {
|
|
234
|
-
const logoBuffer = await this.helpers.getBinaryDataBuffer(i, logoBinaryProperty);
|
|
235
|
-
const logoBlob = new Blob([logoBuffer], { type: 'image/png' });
|
|
236
|
-
logoFile = new File([logoBlob], 'logo.png', { type: 'image/png' });
|
|
237
|
-
}
|
|
238
|
-
responseData = await client.update(workspaceId, params, logoFile);
|
|
239
|
-
}
|
|
240
|
-
else if (operation === 'delete') {
|
|
241
|
-
const workspaceId = this.getNodeParameter('workspaceId', i);
|
|
242
|
-
responseData = await client.delete(workspaceId);
|
|
113
|
+
responseData = await api_helpers_1.makeApiRequest.call(this, apiKey, {
|
|
114
|
+
method: 'GET',
|
|
115
|
+
endpoint: `${constants_1.API_ENDPOINTS.SOCIAL_PUBLISHER_WORKSPACE}/${workspaceId}`,
|
|
116
|
+
});
|
|
243
117
|
}
|
|
244
|
-
else if (operation === '
|
|
118
|
+
else if (operation === 'getForNewPost') {
|
|
245
119
|
const workspaceId = this.getNodeParameter('workspaceId', i);
|
|
246
|
-
responseData = await
|
|
120
|
+
responseData = await api_helpers_1.makeApiRequest.call(this, apiKey, {
|
|
121
|
+
method: 'GET',
|
|
122
|
+
endpoint: `${constants_1.API_ENDPOINTS.SOCIAL_PUBLISHER_WORKSPACE}/${workspaceId}/for-new-post`,
|
|
123
|
+
});
|
|
247
124
|
}
|
|
248
125
|
else if (operation === 'list') {
|
|
249
126
|
const returnAll = this.getNodeParameter('returnAll', i, false);
|
|
250
|
-
const params = {
|
|
251
|
-
page: 1,
|
|
252
|
-
pageSize: returnAll ? 100 : this.getNodeParameter('limit', i, 50),
|
|
253
|
-
};
|
|
254
127
|
if (returnAll) {
|
|
255
|
-
|
|
256
|
-
let page = 1;
|
|
257
|
-
let hasMore = true;
|
|
258
|
-
while (hasMore) {
|
|
259
|
-
const result = await client.list({}, { page, pageSize: params.pageSize });
|
|
260
|
-
allResults = allResults.concat(result.items);
|
|
261
|
-
hasMore = result.items.length === params.pageSize;
|
|
262
|
-
page++;
|
|
263
|
-
}
|
|
264
|
-
responseData = allResults;
|
|
128
|
+
responseData = await api_helpers_1.makePaginatedRequest.call(this, apiKey, constants_1.API_ENDPOINTS.SOCIAL_PUBLISHER_WORKSPACE, {});
|
|
265
129
|
}
|
|
266
130
|
else {
|
|
267
|
-
const
|
|
268
|
-
|
|
131
|
+
const limit = this.getNodeParameter('limit', i, 50);
|
|
132
|
+
const result = await api_helpers_1.makeApiRequest.call(this, apiKey, {
|
|
133
|
+
method: 'GET',
|
|
134
|
+
endpoint: constants_1.API_ENDPOINTS.SOCIAL_PUBLISHER_WORKSPACE,
|
|
135
|
+
qs: {
|
|
136
|
+
page: 1,
|
|
137
|
+
pageSize: limit,
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
responseData = result.items || [];
|
|
269
141
|
}
|
|
270
142
|
}
|
|
271
143
|
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5SocialPublisherWorkspace.node.js","sourceRoot":"","sources":["../../../nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Posty5SocialPublisherWorkspace.node.js","sourceRoot":"","sources":["../../../nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.ts"],"names":[],"mappings":";;;AAMA,yDAA+E;AAC/E,qDAAsD;AAEtD,MAAa,8BAA8B;IAA3C;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE;gBACT,IAAI,EAAE,mCAAmC;aACzC;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,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AK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AApKD,wEAoKC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Types for Posty5 N8N Nodes
|
|
3
|
+
* Shared interfaces and types used across multiple nodes
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Standard API response wrapper
|
|
7
|
+
*/
|
|
8
|
+
export interface IResponse<T> {
|
|
9
|
+
message: string;
|
|
10
|
+
isSuccess?: boolean;
|
|
11
|
+
noMoreOfResult?: boolean;
|
|
12
|
+
result?: T;
|
|
13
|
+
exeption?: any;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Pagination parameters
|
|
17
|
+
*/
|
|
18
|
+
export interface IPaginationParams {
|
|
19
|
+
page?: number;
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Paginated response
|
|
24
|
+
*/
|
|
25
|
+
export interface IPaginationResponse<T> {
|
|
26
|
+
items: T[];
|
|
27
|
+
total: number;
|
|
28
|
+
page: number;
|
|
29
|
+
pageSize: number;
|
|
30
|
+
totalPages: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* User reference (populated in responses)
|
|
34
|
+
*/
|
|
35
|
+
export interface IUser {
|
|
36
|
+
_id: string;
|
|
37
|
+
fullName: string;
|
|
38
|
+
email: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* API Key reference (populated in responses)
|
|
42
|
+
*/
|
|
43
|
+
export interface IApiKey {
|
|
44
|
+
_id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
key: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Delete response
|
|
50
|
+
*/
|
|
51
|
+
export interface IDeleteResponse {
|
|
52
|
+
message: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Created from sources
|
|
56
|
+
*/
|
|
57
|
+
export type CreatedFromType = 'dashboard' | 'npmPackage' | 'dotnetPackage' | 'n8n' | 'zapier' | 'api';
|
|
58
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../types/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,QAAQ,CAAC,EAAE,GAAG,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACrC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GACxB,WAAW,GACX,YAAY,GACZ,eAAe,GACf,KAAK,GACL,QAAQ,GACR,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../types/common.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form Submission Types for Posty5 N8N Nodes
|
|
3
|
+
* Type definitions for HTML Hosting Form Submission operations
|
|
4
|
+
*/
|
|
5
|
+
import { IPaginationResponse } from './common';
|
|
6
|
+
/**
|
|
7
|
+
* Form status type
|
|
8
|
+
*/
|
|
9
|
+
export type IFormStatusType = 'new' | 'pendingReview' | 'inProgress' | 'onHold' | 'needMoreInfo' | 'approved' | 'partiallyApproved' | 'rejected' | 'completed' | 'archived' | 'cancelled';
|
|
10
|
+
/**
|
|
11
|
+
* HTML hosting object (populated)
|
|
12
|
+
*/
|
|
13
|
+
export interface IHtmlHosting {
|
|
14
|
+
_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
customLandingId?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Form object (populated)
|
|
20
|
+
*/
|
|
21
|
+
export interface IForm {
|
|
22
|
+
_id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
fields?: any[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Status history entry
|
|
28
|
+
*/
|
|
29
|
+
export interface IStatusHistoryEntry {
|
|
30
|
+
status: IFormStatusType;
|
|
31
|
+
rejectedReason?: string;
|
|
32
|
+
changedAt: string;
|
|
33
|
+
notes?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Syncing status
|
|
37
|
+
*/
|
|
38
|
+
export interface ISyncingStatus {
|
|
39
|
+
isDone: boolean;
|
|
40
|
+
lastError?: string;
|
|
41
|
+
lastAttemptAt?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* HTML hosting form submission response
|
|
45
|
+
*/
|
|
46
|
+
export interface IHtmlHostingFormSubmissionResponse {
|
|
47
|
+
_id: string;
|
|
48
|
+
htmlHostingId: string;
|
|
49
|
+
formId: string;
|
|
50
|
+
visitorId: string;
|
|
51
|
+
numbering: string;
|
|
52
|
+
data: Record<string, any>;
|
|
53
|
+
fields?: string[];
|
|
54
|
+
refId?: string;
|
|
55
|
+
tag?: string;
|
|
56
|
+
status: IFormStatusType;
|
|
57
|
+
statusHistory: IStatusHistoryEntry[];
|
|
58
|
+
syncing: ISyncingStatus;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* HTML hosting form submission full details response (from GET by ID)
|
|
64
|
+
*/
|
|
65
|
+
export interface IHtmlHostingFormSubmissionFullDetailsResponse extends IHtmlHostingFormSubmissionResponse {
|
|
66
|
+
htmlHosting?: IHtmlHosting;
|
|
67
|
+
form?: IForm;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Next and previous submission navigation
|
|
71
|
+
*/
|
|
72
|
+
export interface INextPreviousSubmission {
|
|
73
|
+
_id: string;
|
|
74
|
+
numbering: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Next and previous submissions response
|
|
78
|
+
*/
|
|
79
|
+
export interface INextPreviousSubmissionsResponse {
|
|
80
|
+
previous?: INextPreviousSubmission;
|
|
81
|
+
next?: INextPreviousSubmission;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Request interface for changing form submission status
|
|
85
|
+
*/
|
|
86
|
+
export interface IChangeStatusRequest {
|
|
87
|
+
status: IFormStatusType;
|
|
88
|
+
rejectedReason?: string | null;
|
|
89
|
+
notes?: string | null;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* List parameters for filtering form submissions
|
|
93
|
+
*/
|
|
94
|
+
export interface IListParams {
|
|
95
|
+
filteredFields?: string;
|
|
96
|
+
htmlHostingId: string;
|
|
97
|
+
formId?: string;
|
|
98
|
+
numbering?: string;
|
|
99
|
+
status?: IFormStatusType;
|
|
100
|
+
}
|
|
101
|
+
export type ISearchFormSubmissionsResponse = IPaginationResponse<IHtmlHostingFormSubmissionResponse>;
|
|
102
|
+
export type IGetFormSubmissionResponse = IHtmlHostingFormSubmissionFullDetailsResponse;
|
|
103
|
+
export interface IChangeStatusResponse {
|
|
104
|
+
message?: string;
|
|
105
|
+
statusHistory?: any[];
|
|
106
|
+
}
|
|
107
|
+
export interface IDeleteFormSubmissionResponse {
|
|
108
|
+
message?: string;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=form-submission.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-submission.types.d.ts","sourceRoot":"","sources":["../../types/form-submission.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,eAAe,GACxB,KAAK,GACL,eAAe,GACf,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,UAAU,GACV,mBAAmB,GACnB,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,CAAC;AAEf;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC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M,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,eAAe,CAAC;CACzB;AAGD,MAAM,MAAM,8BAA8B,GACzC,mBAAmB,CAAC,kCAAkC,CAAC,CAAC;AACzD,MAAM,MAAM,0BAA0B,GAAG,6CAA6C,CAAC;AACvF,MAAM,WAAW,qBAAqB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;AACD,MAAM,WAAW,6BAA6B;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-submission.types.js","sourceRoot":"","sources":["../../types/form-submission.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTML Hosting Types for Posty5 N8N Nodes
|
|
3
|
+
* Type definitions for HTML Hosting operations
|
|
4
|
+
*/
|
|
5
|
+
import { IPaginationResponse } from './common';
|
|
6
|
+
/**
|
|
7
|
+
* HTML Hosting status type
|
|
8
|
+
*/
|
|
9
|
+
export type HtmlHostingStatusType = 'new' | 'pending' | 'rejected' | 'approved';
|
|
10
|
+
/**
|
|
11
|
+
* HTML Hosting source type
|
|
12
|
+
*/
|
|
13
|
+
export type HtmlHostingSourceType = 'file' | 'github';
|
|
14
|
+
/**
|
|
15
|
+
* GitHub information in response
|
|
16
|
+
*/
|
|
17
|
+
export interface IGithubInfoResponse {
|
|
18
|
+
fileURL: string;
|
|
19
|
+
finalFileRawURL?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* GitHub information for requests
|
|
23
|
+
*/
|
|
24
|
+
export interface IGithubInfo {
|
|
25
|
+
fileURL: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Form submission data
|
|
29
|
+
*/
|
|
30
|
+
export interface IFormSubmissionData {
|
|
31
|
+
lasFormSubmissionAt?: string;
|
|
32
|
+
numberOfFormSubmission: number;
|
|
33
|
+
lasExportTime?: Date;
|
|
34
|
+
forms?: {
|
|
35
|
+
formId?: string;
|
|
36
|
+
formFields?: string[];
|
|
37
|
+
spreadsheetId?: string;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Preview reason
|
|
42
|
+
*/
|
|
43
|
+
export interface IPreviewReason {
|
|
44
|
+
key: string;
|
|
45
|
+
value: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* HTML page response
|
|
49
|
+
*/
|
|
50
|
+
export interface IHtmlPageResponse {
|
|
51
|
+
_id: string;
|
|
52
|
+
htmlHostingId: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
lastVisitorDate?: string;
|
|
55
|
+
numberOfVisitors: number;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt?: string;
|
|
58
|
+
user: string;
|
|
59
|
+
isEnableMonetization?: boolean;
|
|
60
|
+
autoSaveInGoogleSheet?: boolean;
|
|
61
|
+
isTemp: boolean;
|
|
62
|
+
status: HtmlHostingStatusType;
|
|
63
|
+
isCachedInLocalStorage: boolean;
|
|
64
|
+
sourceType?: HtmlHostingSourceType;
|
|
65
|
+
formSubmission?: IFormSubmissionData;
|
|
66
|
+
shorterLink: string;
|
|
67
|
+
fileUrl?: string;
|
|
68
|
+
githubInfo?: IGithubInfoResponse;
|
|
69
|
+
fileName?: string;
|
|
70
|
+
refId?: string;
|
|
71
|
+
tag?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* HTML page lookup item (simplified)
|
|
75
|
+
*/
|
|
76
|
+
export interface IHtmlPageLookupItem {
|
|
77
|
+
_id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
htmlHostingId: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Form lookup item
|
|
83
|
+
*/
|
|
84
|
+
export interface IFormLookupItem {
|
|
85
|
+
_id: string;
|
|
86
|
+
formId: string;
|
|
87
|
+
formFields: string[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* GitHub file proxy response
|
|
91
|
+
*/
|
|
92
|
+
export interface IGithubFileProxyResponse {
|
|
93
|
+
content: string;
|
|
94
|
+
encoding?: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* File content response
|
|
98
|
+
*/
|
|
99
|
+
export interface IFileContentResponse {
|
|
100
|
+
content: string;
|
|
101
|
+
contentType?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* AWS S3 upload configuration
|
|
105
|
+
*/
|
|
106
|
+
export interface IUploadFileConfig {
|
|
107
|
+
uploadUrl: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Create HTML page response (returns uploadFileConfig + details)
|
|
111
|
+
*/
|
|
112
|
+
export interface ICreateHtmlPageResponse {
|
|
113
|
+
uploadFileConfig: IUploadFileConfig;
|
|
114
|
+
details: IHtmlPageResponse;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Update HTML page response (returns uploadFileConfig + details when isNewFile=true)
|
|
118
|
+
*/
|
|
119
|
+
export interface IUpdateHtmlPageResponse {
|
|
120
|
+
uploadFileConfig: IUploadFileConfig | null;
|
|
121
|
+
details: IHtmlPageResponse;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Request interface for creating an HTML page
|
|
125
|
+
*/
|
|
126
|
+
export interface ICreateHtmlPageRequest {
|
|
127
|
+
name: string;
|
|
128
|
+
customLandingId?: string | null;
|
|
129
|
+
isEnableMonetization?: boolean | null;
|
|
130
|
+
autoSaveInGoogleSheet?: boolean | null;
|
|
131
|
+
tag?: string;
|
|
132
|
+
refId?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ICreateHtmlPageRequestWithFile extends ICreateHtmlPageRequest {
|
|
135
|
+
fileName: string;
|
|
136
|
+
}
|
|
137
|
+
export interface ICreateHtmlPageRequestWithGithub extends ICreateHtmlPageRequest {
|
|
138
|
+
githubInfo: IGithubInfo;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Request interface for updating an HTML page
|
|
142
|
+
*/
|
|
143
|
+
export interface IUpdateHtmlPageRequest {
|
|
144
|
+
name: string;
|
|
145
|
+
customLandingId?: string | null;
|
|
146
|
+
isEnableMonetization?: boolean | null;
|
|
147
|
+
autoSaveInGoogleSheet?: boolean | null;
|
|
148
|
+
}
|
|
149
|
+
export interface IUpdateHtmlPageRequestWithFile extends IUpdateHtmlPageRequest {
|
|
150
|
+
fileName: string;
|
|
151
|
+
}
|
|
152
|
+
export interface IUpdateHtmlPageRequestWithGithub extends IUpdateHtmlPageRequest {
|
|
153
|
+
githubInfo: IGithubInfo;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* List parameters for filtering HTML pages
|
|
157
|
+
*/
|
|
158
|
+
export interface IListParams {
|
|
159
|
+
name?: string;
|
|
160
|
+
htmlHostingId?: string;
|
|
161
|
+
tag?: string;
|
|
162
|
+
refId?: string;
|
|
163
|
+
status?: HtmlHostingStatusType;
|
|
164
|
+
sourceType?: HtmlHostingSourceType;
|
|
165
|
+
isEnableMonetization?: boolean;
|
|
166
|
+
autoSaveInGoogleSheet?: boolean;
|
|
167
|
+
isTemp?: boolean;
|
|
168
|
+
isCachedInLocalStorage?: boolean;
|
|
169
|
+
}
|
|
170
|
+
export type ISearchHtmlPagesResponse = IPaginationResponse<IHtmlPageResponse>;
|
|
171
|
+
export type ILookupHtmlPagesResponse = IHtmlPageLookupItem[];
|
|
172
|
+
export type ILookupFormsResponse = IFormLookupItem[];
|
|
173
|
+
export type IGetHtmlPageResponse = IHtmlPageResponse;
|
|
174
|
+
export interface IDeleteHtmlPageResponse {
|
|
175
|
+
message: string;
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=html-hosting.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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