@scalemule/news-publication 0.0.74 → 0.0.75
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.
|
@@ -85,6 +85,14 @@ var PublicationArticleClient = class {
|
|
|
85
85
|
{ expected_generation: expectedGeneration }
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
+
/** Prioritize existing active Blog processing; never resets paid work or raises TTS limits. */
|
|
89
|
+
expediteNarration(articleId, expectedVersion) {
|
|
90
|
+
return this.request(
|
|
91
|
+
`/articles/${encodeURIComponent(articleId)}/processing`,
|
|
92
|
+
"POST",
|
|
93
|
+
{ expected_version: expectedVersion, expedite: true }
|
|
94
|
+
);
|
|
95
|
+
}
|
|
88
96
|
retryProcessing(articleId, expectedVersion, assetSourceFileId, narrationProfileVersion) {
|
|
89
97
|
return this.request(
|
|
90
98
|
`/articles/${encodeURIComponent(articleId)}/processing`,
|
|
@@ -43,6 +43,7 @@ type ArticleProcessing = {
|
|
|
43
43
|
audio_id?: string | null;
|
|
44
44
|
job_id?: string | null;
|
|
45
45
|
profile_override_version?: number | null;
|
|
46
|
+
work_priority?: number | null;
|
|
46
47
|
error_code?: string | null;
|
|
47
48
|
last_progress_at?: string | null;
|
|
48
49
|
};
|
|
@@ -84,6 +85,7 @@ type ArticleWorkflowOptions = {
|
|
|
84
85
|
managed_private_asset_upload: boolean;
|
|
85
86
|
inline_media_body?: boolean;
|
|
86
87
|
automatic_public_narration?: boolean;
|
|
88
|
+
prioritized_narration_processing?: boolean;
|
|
87
89
|
};
|
|
88
90
|
};
|
|
89
91
|
type ArticleOperation = {
|
|
@@ -149,6 +151,8 @@ declare class PublicationArticleClient {
|
|
|
149
151
|
audio_id?: string | null;
|
|
150
152
|
job_id?: string | null;
|
|
151
153
|
}>;
|
|
154
|
+
/** Prioritize existing active Blog processing; never resets paid work or raises TTS limits. */
|
|
155
|
+
expediteNarration(articleId: string, expectedVersion: number): Promise<unknown>;
|
|
152
156
|
retryProcessing(articleId: string, expectedVersion: number, assetSourceFileId?: string, narrationProfileVersion?: number): Promise<unknown>;
|
|
153
157
|
create(key: string, authorProfileId: string, document: ArticleDocument, reviewPolicy?: string): Promise<ArticleOperation>;
|
|
154
158
|
save(key: string, articleId: string, generation: number, document: ArticleDocument, reason?: string): Promise<ArticleOperation>;
|
|
@@ -43,6 +43,7 @@ type ArticleProcessing = {
|
|
|
43
43
|
audio_id?: string | null;
|
|
44
44
|
job_id?: string | null;
|
|
45
45
|
profile_override_version?: number | null;
|
|
46
|
+
work_priority?: number | null;
|
|
46
47
|
error_code?: string | null;
|
|
47
48
|
last_progress_at?: string | null;
|
|
48
49
|
};
|
|
@@ -84,6 +85,7 @@ type ArticleWorkflowOptions = {
|
|
|
84
85
|
managed_private_asset_upload: boolean;
|
|
85
86
|
inline_media_body?: boolean;
|
|
86
87
|
automatic_public_narration?: boolean;
|
|
88
|
+
prioritized_narration_processing?: boolean;
|
|
87
89
|
};
|
|
88
90
|
};
|
|
89
91
|
type ArticleOperation = {
|
|
@@ -149,6 +151,8 @@ declare class PublicationArticleClient {
|
|
|
149
151
|
audio_id?: string | null;
|
|
150
152
|
job_id?: string | null;
|
|
151
153
|
}>;
|
|
154
|
+
/** Prioritize existing active Blog processing; never resets paid work or raises TTS limits. */
|
|
155
|
+
expediteNarration(articleId: string, expectedVersion: number): Promise<unknown>;
|
|
152
156
|
retryProcessing(articleId: string, expectedVersion: number, assetSourceFileId?: string, narrationProfileVersion?: number): Promise<unknown>;
|
|
153
157
|
create(key: string, authorProfileId: string, document: ArticleDocument, reviewPolicy?: string): Promise<ArticleOperation>;
|
|
154
158
|
save(key: string, articleId: string, generation: number, document: ArticleDocument, reason?: string): Promise<ArticleOperation>;
|
|
@@ -83,6 +83,14 @@ var PublicationArticleClient = class {
|
|
|
83
83
|
{ expected_generation: expectedGeneration }
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
+
/** Prioritize existing active Blog processing; never resets paid work or raises TTS limits. */
|
|
87
|
+
expediteNarration(articleId, expectedVersion) {
|
|
88
|
+
return this.request(
|
|
89
|
+
`/articles/${encodeURIComponent(articleId)}/processing`,
|
|
90
|
+
"POST",
|
|
91
|
+
{ expected_version: expectedVersion, expedite: true }
|
|
92
|
+
);
|
|
93
|
+
}
|
|
86
94
|
retryProcessing(articleId, expectedVersion, assetSourceFileId, narrationProfileVersion) {
|
|
87
95
|
return this.request(
|
|
88
96
|
`/articles/${encodeURIComponent(articleId)}/processing`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalemule/news-publication",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"description": "Shared server framework for ScaleMule local news publications. Walnut Creek Times is the broadsheet default; each paper supplies its own identity and feature flags.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|