@posty5/n8n-nodes-posty5 2.1.0 → 3.0.1
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/utils/api.helpers.js +1 -1
- package/dist/utils/api.helpers.js.map +1 -1
- package/package.json +2 -1
- package/dist/nodes/Posty5HtmlHostingVariables/Posty5HtmlHostingVariables.node.d.ts +0 -6
- package/dist/nodes/Posty5HtmlHostingVariables/Posty5HtmlHostingVariables.node.d.ts.map +0 -1
- package/dist/nodes/Posty5HtmlHostingVariables/Posty5HtmlHostingVariables.node.js +0 -285
- package/dist/nodes/Posty5HtmlHostingVariables/Posty5HtmlHostingVariables.node.js.map +0 -1
- package/dist/types/task.types.d.ts +0 -332
- package/dist/types/task.types.d.ts.map +0 -1
- package/dist/types/task.types.js +0 -7
- package/dist/types/task.types.js.map +0 -1
- package/dist/types/workspace.types.d.ts +0 -105
- package/dist/types/workspace.types.d.ts.map +0 -1
- package/dist/types/workspace.types.js +0 -7
- package/dist/types/workspace.types.js.map +0 -1
|
@@ -16,7 +16,7 @@ const constants_1 = require("./constants");
|
|
|
16
16
|
* @returns API response
|
|
17
17
|
*/
|
|
18
18
|
async function makeApiRequest(apiKey, options) {
|
|
19
|
-
const baseUrl =
|
|
19
|
+
const baseUrl = constants_1.POSTY5_API_BASE_URL;
|
|
20
20
|
const requestOptions = {
|
|
21
21
|
method: options.method,
|
|
22
22
|
url: `${baseUrl}${options.endpoint}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.helpers.js","sourceRoot":"","sources":["../../utils/api.helpers.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAmBH,wCAgDC;AAWD,oDAeC;AAQD,gCAsBC;AAxHD,2CAAkD;AASlD;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CAEnC,MAAc,EACd,OAA2B;IAE3B,MAAM,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"api.helpers.js","sourceRoot":"","sources":["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|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "N8N community nodes for Posty5 - URL shortening, QR codes, HTML hosting, and social media publishing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"main": "dist/index.js",
|
|
29
29
|
"types": "dist/index.d.ts",
|
|
30
30
|
"scripts": {
|
|
31
|
+
"prebuild": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
31
32
|
"build": "tsc",
|
|
32
33
|
"dev": "tsc --watch",
|
|
33
34
|
"format": "prettier --write \"**/*.ts\"",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class Posty5HtmlHostingVariables implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
4
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=Posty5HtmlHostingVariables.node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5HtmlHostingVariables.node.d.ts","sourceRoot":"","sources":["../../../nodes/Posty5HtmlHostingVariables/Posty5HtmlHostingVariables.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAGtB,qBAAa,0BAA2B,YAAW,SAAS;IAC3D,WAAW,EAAE,oBAAoB,CAyK/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAsFvE"}
|
|
@@ -1,285 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Posty5HtmlHostingVariables = void 0;
|
|
37
|
-
const html_hosting_variables_1 = require("@posty5/html-hosting-variables");
|
|
38
|
-
class Posty5HtmlHostingVariables {
|
|
39
|
-
constructor() {
|
|
40
|
-
this.description = {
|
|
41
|
-
displayName: 'Posty5 HTML Variables',
|
|
42
|
-
name: 'posty5HtmlHostingVariables',
|
|
43
|
-
icon: 'file:posty5.svg',
|
|
44
|
-
group: ['transform'],
|
|
45
|
-
version: 1,
|
|
46
|
-
subtitle: '={{$parameter["operation"]}}',
|
|
47
|
-
description: 'Manage dynamic variables for HTML pages',
|
|
48
|
-
defaults: {
|
|
49
|
-
name: 'Posty5 HTML Variables',
|
|
50
|
-
},
|
|
51
|
-
inputs: ['main'],
|
|
52
|
-
outputs: ['main'],
|
|
53
|
-
credentials: [
|
|
54
|
-
{
|
|
55
|
-
name: 'posty5Api',
|
|
56
|
-
required: true,
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
properties: [
|
|
60
|
-
{
|
|
61
|
-
displayName: 'Operation',
|
|
62
|
-
name: 'operation',
|
|
63
|
-
type: 'options',
|
|
64
|
-
noDataExpression: true,
|
|
65
|
-
options: [
|
|
66
|
-
{
|
|
67
|
-
name: 'Create',
|
|
68
|
-
value: 'create',
|
|
69
|
-
description: 'Create a new variable',
|
|
70
|
-
action: 'Create a variable',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'Delete',
|
|
74
|
-
value: 'delete',
|
|
75
|
-
description: 'Delete a variable',
|
|
76
|
-
action: 'Delete a variable',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'Get',
|
|
80
|
-
value: 'get',
|
|
81
|
-
description: 'Get a variable',
|
|
82
|
-
action: 'Get a variable',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'List',
|
|
86
|
-
value: 'list',
|
|
87
|
-
description: 'List all variables',
|
|
88
|
-
action: 'List variables',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'Update',
|
|
92
|
-
value: 'update',
|
|
93
|
-
description: 'Update a variable',
|
|
94
|
-
action: 'Update a variable',
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
default: 'create',
|
|
98
|
-
},
|
|
99
|
-
// Create operation fields
|
|
100
|
-
{
|
|
101
|
-
displayName: 'Variable Name',
|
|
102
|
-
name: 'name',
|
|
103
|
-
type: 'string',
|
|
104
|
-
required: true,
|
|
105
|
-
displayOptions: {
|
|
106
|
-
show: {
|
|
107
|
-
operation: ['create', 'update'],
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
default: '',
|
|
111
|
-
description: 'A friendly name for the variable',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
displayName: 'Variable Key',
|
|
115
|
-
name: 'key',
|
|
116
|
-
type: 'string',
|
|
117
|
-
required: true,
|
|
118
|
-
displayOptions: {
|
|
119
|
-
show: {
|
|
120
|
-
operation: ['create', 'update'],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
default: 'pst5_',
|
|
124
|
-
description: 'Variable key (must start with "pst5_")',
|
|
125
|
-
placeholder: 'pst5_my_variable',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
displayName: 'Variable Value',
|
|
129
|
-
name: 'value',
|
|
130
|
-
type: 'string',
|
|
131
|
-
required: true,
|
|
132
|
-
displayOptions: {
|
|
133
|
-
show: {
|
|
134
|
-
operation: ['create', 'update'],
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
default: '',
|
|
138
|
-
description: 'The value of the variable',
|
|
139
|
-
},
|
|
140
|
-
// Variable ID for get/update/delete operations
|
|
141
|
-
{
|
|
142
|
-
displayName: 'Variable ID',
|
|
143
|
-
name: 'variableId',
|
|
144
|
-
type: 'string',
|
|
145
|
-
required: true,
|
|
146
|
-
displayOptions: {
|
|
147
|
-
show: {
|
|
148
|
-
operation: ['get', 'update', 'delete'],
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
default: '',
|
|
152
|
-
description: 'The ID of the variable',
|
|
153
|
-
},
|
|
154
|
-
// List operation fields
|
|
155
|
-
{
|
|
156
|
-
displayName: 'Return All',
|
|
157
|
-
name: 'returnAll',
|
|
158
|
-
type: 'boolean',
|
|
159
|
-
displayOptions: {
|
|
160
|
-
show: {
|
|
161
|
-
operation: ['list'],
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
default: false,
|
|
165
|
-
description: 'Whether to return all results or only up to a given limit',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
displayName: 'Limit',
|
|
169
|
-
name: 'limit',
|
|
170
|
-
type: 'number',
|
|
171
|
-
displayOptions: {
|
|
172
|
-
show: {
|
|
173
|
-
operation: ['list'],
|
|
174
|
-
returnAll: [false],
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
typeOptions: {
|
|
178
|
-
minValue: 1,
|
|
179
|
-
maxValue: 100,
|
|
180
|
-
},
|
|
181
|
-
default: 50,
|
|
182
|
-
description: 'Max number of results to return',
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
displayName: 'Filters',
|
|
186
|
-
name: 'filters',
|
|
187
|
-
type: 'collection',
|
|
188
|
-
placeholder: 'Add Filter',
|
|
189
|
-
default: {},
|
|
190
|
-
displayOptions: {
|
|
191
|
-
show: {
|
|
192
|
-
operation: ['list'],
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
options: [
|
|
196
|
-
{
|
|
197
|
-
displayName: 'Search',
|
|
198
|
-
name: 'search',
|
|
199
|
-
type: 'string',
|
|
200
|
-
default: '',
|
|
201
|
-
description: 'Search term',
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
async execute() {
|
|
209
|
-
const items = this.getInputData();
|
|
210
|
-
const returnData = [];
|
|
211
|
-
const operation = this.getNodeParameter('operation', 0);
|
|
212
|
-
const credentials = await this.getCredentials('posty5Api');
|
|
213
|
-
const { HttpClient } = await Promise.resolve().then(() => __importStar(require('@posty5/core')));
|
|
214
|
-
const http = new HttpClient({
|
|
215
|
-
apiKey: credentials.apiKey,
|
|
216
|
-
});
|
|
217
|
-
const client = new html_hosting_variables_1.HtmlHostingVariablesClient(http);
|
|
218
|
-
for (let i = 0; i < items.length; i++) {
|
|
219
|
-
try {
|
|
220
|
-
let responseData = {};
|
|
221
|
-
if (operation === 'create') {
|
|
222
|
-
const name = this.getNodeParameter('name', i);
|
|
223
|
-
const key = this.getNodeParameter('key', i);
|
|
224
|
-
const value = this.getNodeParameter('value', i);
|
|
225
|
-
responseData = await client.create({ name, key, value });
|
|
226
|
-
}
|
|
227
|
-
else if (operation === 'get') {
|
|
228
|
-
const variableId = this.getNodeParameter('variableId', i);
|
|
229
|
-
responseData = await client.get(variableId);
|
|
230
|
-
}
|
|
231
|
-
else if (operation === 'update') {
|
|
232
|
-
const variableId = this.getNodeParameter('variableId', i);
|
|
233
|
-
const name = this.getNodeParameter('name', i);
|
|
234
|
-
const key = this.getNodeParameter('key', i);
|
|
235
|
-
const value = this.getNodeParameter('value', i);
|
|
236
|
-
responseData = await client.update(variableId, { name, key, value });
|
|
237
|
-
}
|
|
238
|
-
else if (operation === 'delete') {
|
|
239
|
-
const variableId = this.getNodeParameter('variableId', i);
|
|
240
|
-
responseData = await client.delete(variableId);
|
|
241
|
-
}
|
|
242
|
-
else if (operation === 'list') {
|
|
243
|
-
const returnAll = this.getNodeParameter('returnAll', i, false);
|
|
244
|
-
const filters = this.getNodeParameter('filters', i, {});
|
|
245
|
-
const params = {
|
|
246
|
-
page: 1,
|
|
247
|
-
pageSize: returnAll ? 100 : this.getNodeParameter('limit', i, 50),
|
|
248
|
-
...filters,
|
|
249
|
-
};
|
|
250
|
-
if (returnAll) {
|
|
251
|
-
let allResults = [];
|
|
252
|
-
let page = 1;
|
|
253
|
-
let hasMore = true;
|
|
254
|
-
while (hasMore) {
|
|
255
|
-
const result = await client.list({ ...filters }, { page, pageSize: params.pageSize });
|
|
256
|
-
allResults = allResults.concat(result.items);
|
|
257
|
-
hasMore = result.items.length === params.pageSize;
|
|
258
|
-
page++;
|
|
259
|
-
}
|
|
260
|
-
responseData = allResults;
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
const result = await client.list({ ...filters }, { page: 1, pageSize: params.pageSize });
|
|
264
|
-
responseData = result.items;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
|
268
|
-
returnData.push(...executionData);
|
|
269
|
-
}
|
|
270
|
-
catch (error) {
|
|
271
|
-
if (this.continueOnFail()) {
|
|
272
|
-
returnData.push({
|
|
273
|
-
json: { error: error.message },
|
|
274
|
-
pairedItem: { item: i },
|
|
275
|
-
});
|
|
276
|
-
continue;
|
|
277
|
-
}
|
|
278
|
-
throw error;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return [returnData];
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
exports.Posty5HtmlHostingVariables = Posty5HtmlHostingVariables;
|
|
285
|
-
//# sourceMappingURL=Posty5HtmlHostingVariables.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Posty5HtmlHostingVariables.node.js","sourceRoot":"","sources":["../../../nodes/Posty5HtmlHostingVariables/Posty5HtmlHostingVariables.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,2EAA4E;AAE5E,MAAa,0BAA0B;IAAvC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,4BAA4B;YAClC,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE;gBACT,IAAI,EAAE,uBAAuB;aAC7B;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;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C,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,EAC1C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;gBACF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;YACnC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE;wBACzC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAlQD,gEAkQC"}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Social Publisher Task Types for Posty5 N8N Nodes
|
|
3
|
-
* Type definitions for Social Publisher Task operations
|
|
4
|
-
*/
|
|
5
|
-
import { IPaginationResponse } from './common';
|
|
6
|
-
import { SocialPublisherAccountStatusType } from './workspace.types';
|
|
7
|
-
/**
|
|
8
|
-
* Social publisher task status type
|
|
9
|
-
*/
|
|
10
|
-
export type SocialPublisherPostStatusType = 'pending' | 'processing' | 'processingInPlatform' | 'failedByPlatform' | 'done' | 'error' | 'canceled' | 'needsMaintenance' | 'invalidVideoURL' | 'invalidPostVideoURL' | 'retrying';
|
|
11
|
-
/**
|
|
12
|
-
* Social publisher task type
|
|
13
|
-
*/
|
|
14
|
-
export type SocialPublisherPostType = 'shortVideo';
|
|
15
|
-
/**
|
|
16
|
-
* Social publisher task account type
|
|
17
|
-
*/
|
|
18
|
-
export type SocialPublisherPostAccountType = 'youtube' | 'facebook' | 'instagram' | 'tiktok';
|
|
19
|
-
/**
|
|
20
|
-
* Social publisher task schedule type
|
|
21
|
-
*/
|
|
22
|
-
export type SocialPublisherPostScheduleType = 'now' | 'schedule';
|
|
23
|
-
/**
|
|
24
|
-
* Social publisher task source type
|
|
25
|
-
*/
|
|
26
|
-
export type SocialPublisherPostSourceType = 'video-file' | 'video-url' | 'facebook-video' | 'youtube-video' | 'tiktok-video';
|
|
27
|
-
/**
|
|
28
|
-
* Upload config for video and thumbnail
|
|
29
|
-
*/
|
|
30
|
-
export interface IUploadConfig {
|
|
31
|
-
url: string;
|
|
32
|
-
fields: Record<string, string>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Generate upload URLs response
|
|
36
|
-
*/
|
|
37
|
-
export interface IGenerateUploadUrlsResponse {
|
|
38
|
-
postId: string;
|
|
39
|
-
thumb: {
|
|
40
|
-
fileURL: string | undefined;
|
|
41
|
-
uploadFileURL: string | undefined;
|
|
42
|
-
bucketFilePath: string | undefined;
|
|
43
|
-
};
|
|
44
|
-
video: {
|
|
45
|
-
fileURL: string | undefined;
|
|
46
|
-
uploadFileURL: string | undefined;
|
|
47
|
-
bucketFilePath: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Social publisher task status log
|
|
52
|
-
*/
|
|
53
|
-
export interface ISocialPublisherPostStatusLog {
|
|
54
|
-
status: SocialPublisherPostStatusType;
|
|
55
|
-
error: string;
|
|
56
|
-
changedAt: Date;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Social publisher task post info
|
|
60
|
-
*/
|
|
61
|
-
export interface ISocialPublisherPostPostInfo {
|
|
62
|
-
platformAccountId: string;
|
|
63
|
-
currentError: string;
|
|
64
|
-
isAllow: boolean;
|
|
65
|
-
currentStatus: SocialPublisherPostStatusType;
|
|
66
|
-
currentStatusChangedAt: Date;
|
|
67
|
-
publishId: string;
|
|
68
|
-
videoId: string;
|
|
69
|
-
videoURL: string;
|
|
70
|
-
statusHistory: {
|
|
71
|
-
status: SocialPublisherPostStatusType;
|
|
72
|
-
changedAt: Date;
|
|
73
|
-
}[];
|
|
74
|
-
socialPublisherAccountId: string | any;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Social publisher task platform
|
|
78
|
-
*/
|
|
79
|
-
export interface ISocialPublisherPostPlatform {
|
|
80
|
-
postInfo: ISocialPublisherPostPostInfo;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Social publisher task response
|
|
84
|
-
*/
|
|
85
|
-
export interface ISocialPublisherPostResponse {
|
|
86
|
-
_id: string;
|
|
87
|
-
numbering: string;
|
|
88
|
-
caption: string;
|
|
89
|
-
createdAt: Date;
|
|
90
|
-
currentStatus: SocialPublisherPostStatusType;
|
|
91
|
-
isAllow: {
|
|
92
|
-
tiktok: boolean;
|
|
93
|
-
facebookPage: boolean;
|
|
94
|
-
instagram: boolean;
|
|
95
|
-
youtube: boolean;
|
|
96
|
-
};
|
|
97
|
-
workspace: {
|
|
98
|
-
_id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
};
|
|
101
|
-
schedule: {
|
|
102
|
-
type: 'schedule' | 'now';
|
|
103
|
-
scheduledAt: Date;
|
|
104
|
-
executedAt: Date;
|
|
105
|
-
};
|
|
106
|
-
refId: string;
|
|
107
|
-
tag: string;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Base status history grouped day
|
|
111
|
-
*/
|
|
112
|
-
export interface IBaseStatusHistoryGroupedDay<StatusType> {
|
|
113
|
-
day: Date;
|
|
114
|
-
history: IBaseStatusHistoryGroupedItem<StatusType>[];
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Base status history grouped item
|
|
118
|
-
*/
|
|
119
|
-
export interface IBaseStatusHistoryGroupedItem<StatusType> {
|
|
120
|
-
time: Date;
|
|
121
|
-
status: StatusType;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Social publisher task status response
|
|
125
|
-
*/
|
|
126
|
-
export interface ISocialPublisherPostStatusResponse {
|
|
127
|
-
_id: string;
|
|
128
|
-
numbering: string;
|
|
129
|
-
type: 'shortVideo';
|
|
130
|
-
source: SocialPublisherPostSourceType;
|
|
131
|
-
sourceURLs: {
|
|
132
|
-
thumbURL?: string | null;
|
|
133
|
-
videoURL?: string;
|
|
134
|
-
postURL?: string;
|
|
135
|
-
};
|
|
136
|
-
currentStatus: SocialPublisherPostStatusType;
|
|
137
|
-
currentError: string;
|
|
138
|
-
currentStatusChangedAt: string;
|
|
139
|
-
statusHistoryGrouped: IBaseStatusHistoryGroupedDay<SocialPublisherPostStatusType>[];
|
|
140
|
-
tiktok?: ISocialPublisherPostTikTokPostDetails;
|
|
141
|
-
facebook?: ISocialPublisherPostFacebookPagePostDetails;
|
|
142
|
-
instagram?: ISocialPublisherPostInstagramPostDetails;
|
|
143
|
-
youtube?: ISocialPublisherPostYouTubePostDetails;
|
|
144
|
-
workspace: ISocialPublisherWorkspace;
|
|
145
|
-
createdAt: Date;
|
|
146
|
-
startedAt: Date;
|
|
147
|
-
schedule: {
|
|
148
|
-
type: 'schedule' | 'now';
|
|
149
|
-
scheduledAt: Date;
|
|
150
|
-
executedAt: Date;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Social publisher workspace
|
|
155
|
-
*/
|
|
156
|
-
export interface ISocialPublisherWorkspace {
|
|
157
|
-
_id: string;
|
|
158
|
-
name: string;
|
|
159
|
-
description: string;
|
|
160
|
-
createdAt: Date;
|
|
161
|
-
account: {
|
|
162
|
-
youtube?: ISocialPublisherAccount;
|
|
163
|
-
tiktok?: ISocialPublisherAccount;
|
|
164
|
-
facebook?: ISocialPublisherAccount;
|
|
165
|
-
instagram?: ISocialPublisherAccount;
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Social publisher account
|
|
170
|
-
*/
|
|
171
|
-
export interface ISocialPublisherAccount {
|
|
172
|
-
_id: string;
|
|
173
|
-
status: SocialPublisherAccountStatusType;
|
|
174
|
-
link: string;
|
|
175
|
-
name: string;
|
|
176
|
-
thumbnail: string;
|
|
177
|
-
platformAccountId: string;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Social publisher task account
|
|
181
|
-
*/
|
|
182
|
-
export interface ISocialPublisherPostAccount {
|
|
183
|
-
tags: string[];
|
|
184
|
-
postInfo: {
|
|
185
|
-
isAllow: boolean;
|
|
186
|
-
currentStatus: SocialPublisherPostStatusType;
|
|
187
|
-
statusHistoryGrouped: IBaseStatusHistoryGroupedDay<SocialPublisherPostStatusType>[];
|
|
188
|
-
videoURL: string;
|
|
189
|
-
socialPublisherAccount: ISocialPublisherAccount;
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Social publisher task TikTok post details
|
|
194
|
-
*/
|
|
195
|
-
export interface ISocialPublisherPostTikTokPostDetails extends ISocialPublisherPostAccount {
|
|
196
|
-
caption: string;
|
|
197
|
-
disable_duet: boolean;
|
|
198
|
-
disable_stitch: boolean;
|
|
199
|
-
disable_comment: boolean;
|
|
200
|
-
privacy_level: string;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Social publisher task Facebook page post details
|
|
204
|
-
*/
|
|
205
|
-
export interface ISocialPublisherPostFacebookPagePostDetails extends ISocialPublisherPostAccount {
|
|
206
|
-
description: string;
|
|
207
|
-
title: string;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Social publisher task Instagram post details
|
|
211
|
-
*/
|
|
212
|
-
export interface ISocialPublisherPostInstagramPostDetails extends ISocialPublisherPostAccount {
|
|
213
|
-
description: string;
|
|
214
|
-
share_to_feed: boolean;
|
|
215
|
-
is_published_to_both_feed_and_story: boolean;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Social publisher task YouTube post details
|
|
219
|
-
*/
|
|
220
|
-
export interface ISocialPublisherPostYouTubePostDetails extends ISocialPublisherPostAccount {
|
|
221
|
-
title: string;
|
|
222
|
-
description: string;
|
|
223
|
-
tags: string[];
|
|
224
|
-
madeForKids: boolean;
|
|
225
|
-
defaultLanguage: string;
|
|
226
|
-
defaultAudioLanguage: string;
|
|
227
|
-
categoryId: string;
|
|
228
|
-
localizationLanguages: string[];
|
|
229
|
-
localizations: any;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Social publisher task next/previous response
|
|
233
|
-
*/
|
|
234
|
-
export interface ISocialPublisherPostNextPreviousResponse {
|
|
235
|
-
nextId?: string;
|
|
236
|
-
previousId?: string;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* YouTube configuration
|
|
240
|
-
*/
|
|
241
|
-
export interface IYouTubeConfig {
|
|
242
|
-
title: string;
|
|
243
|
-
description: string;
|
|
244
|
-
tags: string[];
|
|
245
|
-
madeForKids?: boolean;
|
|
246
|
-
defaultLanguage?: string;
|
|
247
|
-
defaultAudioLanguage?: string;
|
|
248
|
-
categoryId?: string;
|
|
249
|
-
localizationLanguages?: string[];
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* TikTok configuration
|
|
253
|
-
*/
|
|
254
|
-
export interface ITikTokConfig {
|
|
255
|
-
caption: string;
|
|
256
|
-
disable_duet: boolean;
|
|
257
|
-
disable_stitch: boolean;
|
|
258
|
-
disable_comment: boolean;
|
|
259
|
-
privacy_level: string;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Facebook page configuration
|
|
263
|
-
*/
|
|
264
|
-
export interface IFacebookPageConfig {
|
|
265
|
-
description: string;
|
|
266
|
-
title?: string;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Instagram configuration
|
|
270
|
-
*/
|
|
271
|
-
export interface IInstagramConfig {
|
|
272
|
-
description: string;
|
|
273
|
-
share_to_feed?: boolean;
|
|
274
|
-
is_published_to_both_feed_and_story?: boolean;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Schedule configuration
|
|
278
|
-
*/
|
|
279
|
-
export interface IScheduleConfig {
|
|
280
|
-
type: SocialPublisherPostScheduleType;
|
|
281
|
-
scheduledAt?: Date;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Create social publisher task request
|
|
285
|
-
*/
|
|
286
|
-
export interface ICreateSocialPublisherPostRequest {
|
|
287
|
-
workspaceId: string;
|
|
288
|
-
source: SocialPublisherPostSourceType;
|
|
289
|
-
isAllowYouTube: boolean;
|
|
290
|
-
isAllowTiktok: boolean;
|
|
291
|
-
isAllowFacebookPage: boolean;
|
|
292
|
-
isAllowInstagram: boolean;
|
|
293
|
-
youTube?: IYouTubeConfig;
|
|
294
|
-
tiktok?: ITikTokConfig;
|
|
295
|
-
facebook?: IFacebookPageConfig;
|
|
296
|
-
instagram?: IInstagramConfig;
|
|
297
|
-
videoURL?: string;
|
|
298
|
-
thumbURL?: string;
|
|
299
|
-
postURL?: string;
|
|
300
|
-
schedule?: IScheduleConfig;
|
|
301
|
-
tag?: string;
|
|
302
|
-
refId?: string;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Generate upload URLs request
|
|
306
|
-
*/
|
|
307
|
-
export interface IGenerateUploadUrlsRequest {
|
|
308
|
-
thumbFileType?: string;
|
|
309
|
-
videoFileType?: string;
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* List parameters for filtering tasks
|
|
313
|
-
*/
|
|
314
|
-
export interface IListParams {
|
|
315
|
-
caption?: string;
|
|
316
|
-
numbering?: string;
|
|
317
|
-
currentStatus?: string;
|
|
318
|
-
workspaceId?: string;
|
|
319
|
-
refId?: string;
|
|
320
|
-
tag?: string;
|
|
321
|
-
'youtube.postInfo.isAllow'?: boolean;
|
|
322
|
-
'facebook.postInfo.isAllow'?: boolean;
|
|
323
|
-
'instagram.postInfo.isAllow'?: boolean;
|
|
324
|
-
'tiktok.postInfo.isAllow'?: boolean;
|
|
325
|
-
}
|
|
326
|
-
export type ISearchSocialPublisherPostResponse = IPaginationResponse<ISocialPublisherPostResponse>;
|
|
327
|
-
export type IGetTaskResponse = ISocialPublisherPostStatusResponse;
|
|
328
|
-
export type IgetPostStatusResponse = ISocialPublisherPostStatusResponse;
|
|
329
|
-
export interface IDeleteTaskResponse {
|
|
330
|
-
message?: string;
|
|
331
|
-
}
|
|
332
|
-
//# sourceMappingURL=task.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.types.d.ts","sourceRoot":"","sources":["../../types/task.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACtC,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,kBAAkB,GAClB,MAAM,GACN,OAAO,GACP,UAAU,GACV,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,UAAU,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,KAAK,GAAG,UAAU,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACtC,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,eAAe,GACf,cAAc,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QACN,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC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CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACpC;AAGD,MAAM,MAAM,kCAAkC,GAAG,mBAAmB,CAAC,4BAA4B,CAAC,CAAC;AACnG,MAAM,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG,kCAAkC,CAAC;AACxE,MAAM,WAAW,mBAAmB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/types/task.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.types.js","sourceRoot":"","sources":["../../types/task.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Social Publisher Workspace Types for Posty5 N8N Nodes
|
|
3
|
-
* Type definitions for Social Publisher Workspace operations
|
|
4
|
-
*/
|
|
5
|
-
import { IPaginationResponse } from './common';
|
|
6
|
-
/**
|
|
7
|
-
* Social publisher account status type
|
|
8
|
-
*/
|
|
9
|
-
export type SocialPublisherAccountStatusType = 'active' | 'inactive' | 'authenticationExpired';
|
|
10
|
-
/**
|
|
11
|
-
* Account sample details
|
|
12
|
-
*/
|
|
13
|
-
export interface IAccountSampleDetails {
|
|
14
|
-
link: string;
|
|
15
|
-
name: string;
|
|
16
|
-
thumbnail: string;
|
|
17
|
-
platformAccountId: string;
|
|
18
|
-
status: SocialPublisherAccountStatusType;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Workspace account configuration
|
|
22
|
-
*/
|
|
23
|
-
export interface IWorkspaceAccount {
|
|
24
|
-
youtube?: IAccountSampleDetails | any;
|
|
25
|
-
facebook?: IAccountSampleDetails | any;
|
|
26
|
-
instagram?: IAccountSampleDetails | any;
|
|
27
|
-
tiktok?: IAccountSampleDetails | any;
|
|
28
|
-
facebookPlatformPageId?: string;
|
|
29
|
-
instagramPlatformAccountId?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Workspace response
|
|
33
|
-
*/
|
|
34
|
-
export interface IWorkspaceResponse {
|
|
35
|
-
_id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
imageUrl?: string;
|
|
39
|
-
account: IWorkspaceAccount;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Workspace sample details (used in lists)
|
|
43
|
-
*/
|
|
44
|
-
export interface IWorkspaceSampleDetails {
|
|
45
|
-
_id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
description: string;
|
|
48
|
-
imageUrl?: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt?: string;
|
|
51
|
-
refId?: string;
|
|
52
|
-
tag: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Upload image configuration returned by API
|
|
56
|
-
*/
|
|
57
|
-
export interface IUploadImageConfig {
|
|
58
|
-
uploadUrl: string;
|
|
59
|
-
imageUrl: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Workspace details with upload config
|
|
63
|
-
*/
|
|
64
|
-
export interface IWorkspaceWithUploadConfig {
|
|
65
|
-
workspaceId: string;
|
|
66
|
-
uploadImageConfig: IUploadImageConfig | null;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Workspace details formatted for new task creation with populated accounts
|
|
70
|
-
*/
|
|
71
|
-
export interface IWorkspaceForNewTaskResponse {
|
|
72
|
-
_id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
description: string;
|
|
75
|
-
imageUrl?: string;
|
|
76
|
-
account: IWorkspaceAccount;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Workspace request
|
|
80
|
-
*/
|
|
81
|
-
export interface IWorkspaceRequest {
|
|
82
|
-
name: string;
|
|
83
|
-
description: string;
|
|
84
|
-
tag?: string;
|
|
85
|
-
refId?: string;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* List parameters for filtering workspaces
|
|
89
|
-
*/
|
|
90
|
-
export interface IListParams {
|
|
91
|
-
name?: string;
|
|
92
|
-
description?: string;
|
|
93
|
-
tag?: string;
|
|
94
|
-
refId?: string;
|
|
95
|
-
}
|
|
96
|
-
export type ISearchWorkspaceResponse = IPaginationResponse<IWorkspaceSampleDetails>;
|
|
97
|
-
export type ICreateWorkspaceRequest = IWorkspaceRequest;
|
|
98
|
-
export type IUpdateWorkspaceRequest = IWorkspaceRequest;
|
|
99
|
-
export type ICreateWorkspaceResponse = IWorkspaceWithUploadConfig;
|
|
100
|
-
export type IUpdateWorkspaceResponse = IWorkspaceWithUploadConfig;
|
|
101
|
-
export type IGetWorkspaceResponse = IWorkspaceResponse;
|
|
102
|
-
export interface IDeleteWorkspaceResponse {
|
|
103
|
-
message?: string;
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=workspace.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.types.d.ts","sourceRoot":"","sources":["../../types/workspace.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,GAAG,UAAU,GAAG,uBAAuB,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,C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