@posty5/n8n-nodes-posty5 3.0.0 → 4.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/README.md +356 -356
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -1
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js +292 -52
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -1
- package/dist/utils/api.helpers.js +1 -1
- package/dist/utils/api.helpers.js.map +1 -1
- package/package.json +74 -73
- 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
|
@@ -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;A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AAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,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,C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