@geoly-ai/social-hub-sdk 0.1.20 → 0.1.21
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/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -0
- package/dist/index.js.map +1 -1
- package/dist/intake-ops.d.ts +227 -0
- package/dist/intake-ops.d.ts.map +1 -0
- package/dist/intake-ops.js +10 -0
- package/dist/intake-ops.js.map +1 -0
- package/dist/intake-ops.test.d.ts +2 -0
- package/dist/intake-ops.test.d.ts.map +1 -0
- package/dist/intake-ops.test.js +158 -0
- package/dist/intake-ops.test.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ConfirmSubredditRestrictionInput, CreateSubredditRestrictionInput, ListSubredditRestrictionsParams, ListSubredditRestrictionsResponse, OpsBlockedJobAck, OpsBlockedReceipt, ReportSubredditRestrictionInput, ReportSubredditRestrictionResponse, RevokeSubredditRestrictionInput, SubredditRestriction, SubredditRestrictionCheckResult, SubredditRestrictionFanoutParams, SubredditRestrictionFanoutResponse } from "./subreddit-restrictions.js";
|
|
2
2
|
import type { IntakeBrandMapping, IntakeOrderTeam, ListIntakeBrandMappingsParams, ListIntakeBrandMappingsResponse, UpdateIntakeBrandMappingInput } from "./intake-admin.js";
|
|
3
|
+
import type { AcceptIntakeOrderInput, ConfirmIntakeOrderPublishedInput, EditIntakeOrderDraftInput, FailIntakeOrderInput, IntakeOpsOrderDetail, IntakeOpsOrderResponse, ListIntakeOpsOrdersParams, ListIntakeOpsOrdersResponse, ProvideIntakeThreadContextInput, ReReviewIntakeOrderInput, RegisterIntakeOrderAnomalyInput, RegisterIntakeOrderAnomalyResponse, RejectIntakeOrderInput, ScheduleIntakeOrderInput, StartIntakeOrderInput } from "./intake-ops.js";
|
|
3
4
|
export * from "./intake-admin.js";
|
|
5
|
+
export * from "./intake-ops.js";
|
|
4
6
|
export * from "./subreddit-restrictions.js";
|
|
5
7
|
/**
|
|
6
8
|
* 「返回了不完整结果、但看起来像完整的」这一族缺陷的统一探针。
|
|
@@ -4818,6 +4820,31 @@ export declare class SocialHubClient {
|
|
|
4818
4820
|
getIntakeOrderTeam(): Promise<IntakeOrderTeam>;
|
|
4819
4821
|
/** PUT /v1/system/intake-admin/order-team — 设置接单团队(团队须存在;最后写入者覆盖,留审计)。 */
|
|
4820
4822
|
setIntakeOrderTeam(teamId: string): Promise<IntakeOrderTeam>;
|
|
4823
|
+
/** GET /v1/system/intake-ops/orders — 列表(status / kind / deliveryChannel / brandId / 分页)。 */
|
|
4824
|
+
listIntakeOpsOrders(params?: ListIntakeOpsOrdersParams): Promise<ListIntakeOpsOrdersResponse>;
|
|
4825
|
+
/** GET /v1/system/intake-ops/orders/:hubRef — 详情(含 rowVersion / checks / allowedActions)。 */
|
|
4826
|
+
getIntakeOpsOrder(hubRef: string): Promise<IntakeOpsOrderDetail>;
|
|
4827
|
+
/** POST …/orders/:hubRef/thread-context — 人工粘贴线程语境(递增订单 rowVersion)。 */
|
|
4828
|
+
provideIntakeThreadContext(hubRef: string, body: ProvideIntakeThreadContextInput): Promise<IntakeOpsOrderResponse>;
|
|
4829
|
+
/** POST …/orders/:hubRef/accept */
|
|
4830
|
+
acceptIntakeOrder(hubRef: string, body: AcceptIntakeOrderInput): Promise<IntakeOpsOrderResponse>;
|
|
4831
|
+
/** POST …/orders/:hubRef/reject */
|
|
4832
|
+
rejectIntakeOrder(hubRef: string, body: RejectIntakeOrderInput): Promise<IntakeOpsOrderResponse>;
|
|
4833
|
+
/** PUT …/orders/:hubRef/draft — 改稿(新内容版本,旧审核失效,须重审)。 */
|
|
4834
|
+
editIntakeOrderDraft(hubRef: string, body: EditIntakeOrderDraftInput): Promise<IntakeOpsOrderResponse>;
|
|
4835
|
+
/** POST …/orders/:hubRef/schedule — 排期并建审核目标(受执行开关闸)。 */
|
|
4836
|
+
scheduleIntakeOrder(hubRef: string, body: ScheduleIntakeOrderInput): Promise<IntakeOpsOrderResponse>;
|
|
4837
|
+
/** POST …/orders/:hubRef/re-review — 重新审核(受执行开关闸)。 */
|
|
4838
|
+
reReviewIntakeOrder(hubRef: string, body: ReReviewIntakeOrderInput): Promise<IntakeOpsOrderResponse>;
|
|
4839
|
+
/** POST …/orders/:hubRef/start — 标记开始执行(可选步骤;受执行开关闸)。 */
|
|
4840
|
+
startIntakeOrder(hubRef: string, body: StartIntakeOrderInput): Promise<IntakeOpsOrderResponse>;
|
|
4841
|
+
/** POST …/orders/:hubRef/confirm-published — 回填已发布(需当前审核 passed + 内容身份一致)。 */
|
|
4842
|
+
confirmIntakeOrderPublished(hubRef: string, body: ConfirmIntakeOrderPublishedInput): Promise<IntakeOpsOrderResponse>;
|
|
4843
|
+
/** POST …/orders/:hubRef/fail — 置失败(须声明帖子不在 Reddit 上)。 */
|
|
4844
|
+
failIntakeOrder(hubRef: string, body: FailIntakeOrderInput): Promise<IntakeOpsOrderResponse>;
|
|
4845
|
+
/** POST …/orders/:hubRef/anomalies — 异常事实登记(不改订单状态、不产生 published 事件);rowVersion 可选。 */
|
|
4846
|
+
registerIntakeOrderAnomaly(hubRef: string, body: RegisterIntakeOrderAnomalyInput): Promise<RegisterIntakeOrderAnomalyResponse>;
|
|
4847
|
+
private intakeOpsWrite;
|
|
4821
4848
|
/** GET /v1/system/subreddit-restrictions — 列表(state 多值、updatedSince 增量拉取)。 */
|
|
4822
4849
|
listSubredditRestrictions(params?: ListSubredditRestrictionsParams): Promise<ListSubredditRestrictionsResponse>;
|
|
4823
4850
|
/** GET /v1/system/subreddit-restrictions/:id — 单条(含全量 evidence)。 */
|