@geoly-ai/social-hub-sdk 0.1.19 → 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 +43 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -3
- package/dist/index.js.map +1 -1
- package/dist/intake-admin.d.ts +49 -0
- package/dist/intake-admin.d.ts.map +1 -0
- package/dist/intake-admin.js +8 -0
- package/dist/intake-admin.js.map +1 -0
- package/dist/intake-admin.test.d.ts +2 -0
- package/dist/intake-admin.test.d.ts.map +1 -0
- package/dist/intake-admin.test.js +67 -0
- package/dist/intake-admin.test.js.map +1 -0
- 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,4 +1,8 @@
|
|
|
1
1
|
import type { ConfirmSubredditRestrictionInput, CreateSubredditRestrictionInput, ListSubredditRestrictionsParams, ListSubredditRestrictionsResponse, OpsBlockedJobAck, OpsBlockedReceipt, ReportSubredditRestrictionInput, ReportSubredditRestrictionResponse, RevokeSubredditRestrictionInput, SubredditRestriction, SubredditRestrictionCheckResult, SubredditRestrictionFanoutParams, SubredditRestrictionFanoutResponse } from "./subreddit-restrictions.js";
|
|
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";
|
|
4
|
+
export * from "./intake-admin.js";
|
|
5
|
+
export * from "./intake-ops.js";
|
|
2
6
|
export * from "./subreddit-restrictions.js";
|
|
3
7
|
/**
|
|
4
8
|
* 「返回了不完整结果、但看起来像完整的」这一族缺陷的统一探针。
|
|
@@ -4368,9 +4372,10 @@ export declare class SocialHubClient {
|
|
|
4368
4372
|
/**
|
|
4369
4373
|
* POST :id/weekly-stats/refresh — 手动刷新该板块的页面周指标(202 入队)。
|
|
4370
4374
|
*
|
|
4371
|
-
*
|
|
4372
|
-
* `refresh_already_charged_today
|
|
4373
|
-
*
|
|
4375
|
+
* 每板块每业务日最多手动真实抓 2 次(与每日补跑的 1 次互不占用,合计 3 次):
|
|
4376
|
+
* 该板块已有抓取在排队/运行 → 409 `refresh_already_charged_today`;当日 2 次手动用完 →
|
|
4377
|
+
* 409 `manual_refresh_limit_reached`(`details.dailyLimit`=2);两者的 `details.nextAllowedAt`
|
|
4378
|
+
* 都是下一业务日起点;其余稳定码见 contracts `WEEKLY_STATS_REFRESH_REJECT_CODES`。
|
|
4374
4379
|
* 仅 active 资产;写权限同其它写端点(真实登录 admin,拒 API Key)。
|
|
4375
4380
|
*/
|
|
4376
4381
|
refreshOwnedSubredditWeeklyStats(ownedSubredditId: string): Promise<OwnedSubredditWeeklyRefreshAccepted>;
|
|
@@ -4805,6 +4810,41 @@ export declare class SocialHubClient {
|
|
|
4805
4810
|
availability: string;
|
|
4806
4811
|
availabilityCheckedAt: string;
|
|
4807
4812
|
}>;
|
|
4813
|
+
/** GET /v1/system/intake-admin/brand-mappings — 列表(status / mapped=mapped|pending / 分页)。 */
|
|
4814
|
+
listIntakeBrandMappings(params?: ListIntakeBrandMappingsParams): Promise<ListIntakeBrandMappingsResponse>;
|
|
4815
|
+
/** GET /v1/system/intake-admin/brand-mappings/:id */
|
|
4816
|
+
getIntakeBrandMapping(id: string): Promise<IntakeBrandMapping>;
|
|
4817
|
+
/** PATCH /v1/system/intake-admin/brand-mappings/:id — `rowVersion` 必填(409 = 版本过期,重新 get)。 */
|
|
4818
|
+
updateIntakeBrandMapping(id: string, body: UpdateIntakeBrandMappingInput): Promise<IntakeBrandMapping>;
|
|
4819
|
+
/** GET /v1/system/intake-admin/order-team */
|
|
4820
|
+
getIntakeOrderTeam(): Promise<IntakeOrderTeam>;
|
|
4821
|
+
/** PUT /v1/system/intake-admin/order-team — 设置接单团队(团队须存在;最后写入者覆盖,留审计)。 */
|
|
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;
|
|
4808
4848
|
/** GET /v1/system/subreddit-restrictions — 列表(state 多值、updatedSince 增量拉取)。 */
|
|
4809
4849
|
listSubredditRestrictions(params?: ListSubredditRestrictionsParams): Promise<ListSubredditRestrictionsResponse>;
|
|
4810
4850
|
/** GET /v1/system/subreddit-restrictions/:id — 单条(含全量 evidence)。 */
|