ad2app-lib 1.1.0 → 1.2.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.
|
@@ -30,6 +30,7 @@ export declare class SchedulingCreatePostDTO {
|
|
|
30
30
|
publishNow?: boolean;
|
|
31
31
|
mediaItems?: SchedulingMediaItemDTO[];
|
|
32
32
|
platformSpecificData?: Record<string, Record<string, unknown>>;
|
|
33
|
+
tiktokSettings?: Record<string, unknown>;
|
|
33
34
|
constructor(data?: Partial<SchedulingCreatePostDTO>);
|
|
34
35
|
}
|
|
35
36
|
/** Input DTO for updating an existing post's content or scheduled time. */
|
|
@@ -46,6 +47,8 @@ export declare class SchedulingPostDTO {
|
|
|
46
47
|
platformStatuses: SchedulingPlatformStatusMap;
|
|
47
48
|
/** Per-platform URLs to the published post (e.g. { instagram: 'https://...' }). */
|
|
48
49
|
postUrls?: Record<string, string>;
|
|
50
|
+
/** Per-platform error messages for platforms that failed to publish. */
|
|
51
|
+
platformErrors?: Record<string, string>;
|
|
49
52
|
scheduledAt?: string;
|
|
50
53
|
publishedAt?: string;
|
|
51
54
|
status: SchedulingPostStatus;
|
|
@@ -48,6 +48,7 @@ class SchedulingCreatePostDTO {
|
|
|
48
48
|
this.publishNow = data.publishNow;
|
|
49
49
|
this.mediaItems = data.mediaItems;
|
|
50
50
|
this.platformSpecificData = data.platformSpecificData;
|
|
51
|
+
this.tiktokSettings = data.tiktokSettings;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
exports.SchedulingCreatePostDTO = SchedulingCreatePostDTO;
|
|
@@ -71,6 +72,7 @@ class SchedulingPostDTO {
|
|
|
71
72
|
this.platforms = data.platforms;
|
|
72
73
|
this.platformStatuses = data.platformStatuses;
|
|
73
74
|
this.postUrls = data.postUrls;
|
|
75
|
+
this.platformErrors = data.platformErrors;
|
|
74
76
|
this.scheduledAt = data.scheduledAt;
|
|
75
77
|
this.publishedAt = data.publishedAt;
|
|
76
78
|
this.status = data.status;
|
package/package.json
CHANGED
|
@@ -58,6 +58,7 @@ export class SchedulingCreatePostDTO {
|
|
|
58
58
|
publishNow?: boolean;
|
|
59
59
|
mediaItems?: SchedulingMediaItemDTO[];
|
|
60
60
|
platformSpecificData?: Record<string, Record<string, unknown>>;
|
|
61
|
+
tiktokSettings?: Record<string, unknown>;
|
|
61
62
|
|
|
62
63
|
constructor(data?: Partial<SchedulingCreatePostDTO>) {
|
|
63
64
|
if (!data) return;
|
|
@@ -67,6 +68,7 @@ export class SchedulingCreatePostDTO {
|
|
|
67
68
|
this.publishNow = data.publishNow;
|
|
68
69
|
this.mediaItems = data.mediaItems;
|
|
69
70
|
this.platformSpecificData = data.platformSpecificData;
|
|
71
|
+
this.tiktokSettings = data.tiktokSettings;
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
|
|
@@ -94,6 +96,8 @@ export class SchedulingPostDTO {
|
|
|
94
96
|
platformStatuses: SchedulingPlatformStatusMap;
|
|
95
97
|
/** Per-platform URLs to the published post (e.g. { instagram: 'https://...' }). */
|
|
96
98
|
postUrls?: Record<string, string>;
|
|
99
|
+
/** Per-platform error messages for platforms that failed to publish. */
|
|
100
|
+
platformErrors?: Record<string, string>;
|
|
97
101
|
scheduledAt?: string;
|
|
98
102
|
publishedAt?: string;
|
|
99
103
|
status: SchedulingPostStatus;
|
|
@@ -107,6 +111,7 @@ export class SchedulingPostDTO {
|
|
|
107
111
|
this.platforms = data.platforms;
|
|
108
112
|
this.platformStatuses = data.platformStatuses;
|
|
109
113
|
this.postUrls = data.postUrls;
|
|
114
|
+
this.platformErrors = data.platformErrors;
|
|
110
115
|
this.scheduledAt = data.scheduledAt;
|
|
111
116
|
this.publishedAt = data.publishedAt;
|
|
112
117
|
this.status = data.status;
|