polyv-live-cli 1.2.17 → 1.2.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/commands/ai.commands.d.ts +12 -0
- package/dist/commands/ai.commands.d.ts.map +1 -0
- package/dist/commands/ai.commands.js +126 -0
- package/dist/commands/ai.commands.js.map +1 -0
- package/dist/commands/card-push.commands.d.ts +15 -0
- package/dist/commands/card-push.commands.d.ts.map +1 -0
- package/dist/commands/card-push.commands.js +257 -0
- package/dist/commands/card-push.commands.js.map +1 -0
- package/dist/commands/chat.commands.d.ts.map +1 -1
- package/dist/commands/chat.commands.js +152 -0
- package/dist/commands/chat.commands.js.map +1 -1
- package/dist/commands/checkin.commands.d.ts +4 -0
- package/dist/commands/checkin.commands.d.ts.map +1 -0
- package/dist/commands/checkin.commands.js +228 -0
- package/dist/commands/checkin.commands.js.map +1 -0
- package/dist/commands/donate.commands.d.ts +5 -0
- package/dist/commands/donate.commands.d.ts.map +1 -0
- package/dist/commands/donate.commands.js +177 -0
- package/dist/commands/donate.commands.js.map +1 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +3 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/lottery.commands.d.ts +5 -0
- package/dist/commands/lottery.commands.d.ts.map +1 -0
- package/dist/commands/lottery.commands.js +330 -0
- package/dist/commands/lottery.commands.js.map +1 -0
- package/dist/commands/platform-label.commands.d.ts +11 -0
- package/dist/commands/platform-label.commands.d.ts.map +1 -0
- package/dist/commands/platform-label.commands.js +173 -0
- package/dist/commands/platform-label.commands.js.map +1 -0
- package/dist/commands/platform.commands.d.ts +13 -0
- package/dist/commands/platform.commands.d.ts.map +1 -0
- package/dist/commands/platform.commands.js +366 -0
- package/dist/commands/platform.commands.js.map +1 -0
- package/dist/commands/promotion.commands.d.ts +12 -0
- package/dist/commands/promotion.commands.d.ts.map +1 -0
- package/dist/commands/promotion.commands.js +98 -0
- package/dist/commands/promotion.commands.js.map +1 -0
- package/dist/commands/qa.commands.d.ts +4 -0
- package/dist/commands/qa.commands.d.ts.map +1 -0
- package/dist/commands/qa.commands.js +159 -0
- package/dist/commands/qa.commands.js.map +1 -0
- package/dist/commands/questionnaire.commands.d.ts +4 -0
- package/dist/commands/questionnaire.commands.d.ts.map +1 -0
- package/dist/commands/questionnaire.commands.js +187 -0
- package/dist/commands/questionnaire.commands.js.map +1 -0
- package/dist/commands/transmit.commands.d.ts +12 -0
- package/dist/commands/transmit.commands.d.ts.map +1 -0
- package/dist/commands/transmit.commands.js +98 -0
- package/dist/commands/transmit.commands.js.map +1 -0
- package/dist/commands/viewer.commands.d.ts +5 -0
- package/dist/commands/viewer.commands.d.ts.map +1 -0
- package/dist/commands/viewer.commands.js +257 -0
- package/dist/commands/viewer.commands.js.map +1 -0
- package/dist/commands/watch-condition.commands.d.ts +5 -0
- package/dist/commands/watch-condition.commands.d.ts.map +1 -0
- package/dist/commands/watch-condition.commands.js +158 -0
- package/dist/commands/watch-condition.commands.js.map +1 -0
- package/dist/commands/whitelist.commands.d.ts +5 -0
- package/dist/commands/whitelist.commands.d.ts.map +1 -0
- package/dist/commands/whitelist.commands.js +216 -0
- package/dist/commands/whitelist.commands.js.map +1 -0
- package/dist/handlers/ai-digital-human.handler.d.ts +18 -0
- package/dist/handlers/ai-digital-human.handler.d.ts.map +1 -0
- package/dist/handlers/ai-digital-human.handler.js +134 -0
- package/dist/handlers/ai-digital-human.handler.js.map +1 -0
- package/dist/handlers/card-push.handler.d.ts +25 -0
- package/dist/handlers/card-push.handler.d.ts.map +1 -0
- package/dist/handlers/card-push.handler.js +287 -0
- package/dist/handlers/card-push.handler.js.map +1 -0
- package/dist/handlers/chat.handler.d.ts +17 -1
- package/dist/handlers/chat.handler.d.ts.map +1 -1
- package/dist/handlers/chat.handler.js +272 -0
- package/dist/handlers/chat.handler.js.map +1 -1
- package/dist/handlers/checkin.handler.d.ts +22 -0
- package/dist/handlers/checkin.handler.d.ts.map +1 -0
- package/dist/handlers/checkin.handler.js +261 -0
- package/dist/handlers/checkin.handler.js.map +1 -0
- package/dist/handlers/donate.handler.d.ts +18 -0
- package/dist/handlers/donate.handler.d.ts.map +1 -0
- package/dist/handlers/donate.handler.js +221 -0
- package/dist/handlers/donate.handler.js.map +1 -0
- package/dist/handlers/lottery.handler.d.ts +29 -0
- package/dist/handlers/lottery.handler.d.ts.map +1 -0
- package/dist/handlers/lottery.handler.js +386 -0
- package/dist/handlers/lottery.handler.js.map +1 -0
- package/dist/handlers/platform-label.handler.d.ts +18 -0
- package/dist/handlers/platform-label.handler.d.ts.map +1 -0
- package/dist/handlers/platform-label.handler.js +113 -0
- package/dist/handlers/platform-label.handler.js.map +1 -0
- package/dist/handlers/platform.handler.d.ts +24 -0
- package/dist/handlers/platform.handler.d.ts.map +1 -0
- package/dist/handlers/platform.handler.js +302 -0
- package/dist/handlers/platform.handler.js.map +1 -0
- package/dist/handlers/promotion.handler.d.ts +16 -0
- package/dist/handlers/promotion.handler.d.ts.map +1 -0
- package/dist/handlers/promotion.handler.js +103 -0
- package/dist/handlers/promotion.handler.js.map +1 -0
- package/dist/handlers/qa-questionnaire.handler.d.ts +27 -0
- package/dist/handlers/qa-questionnaire.handler.d.ts.map +1 -0
- package/dist/handlers/qa-questionnaire.handler.js +386 -0
- package/dist/handlers/qa-questionnaire.handler.js.map +1 -0
- package/dist/handlers/transmit.handler.d.ts +15 -0
- package/dist/handlers/transmit.handler.d.ts.map +1 -0
- package/dist/handlers/transmit.handler.js +86 -0
- package/dist/handlers/transmit.handler.js.map +1 -0
- package/dist/handlers/viewer.handler.d.ts +23 -0
- package/dist/handlers/viewer.handler.d.ts.map +1 -0
- package/dist/handlers/viewer.handler.js +322 -0
- package/dist/handlers/viewer.handler.js.map +1 -0
- package/dist/handlers/watch-condition.handler.d.ts +18 -0
- package/dist/handlers/watch-condition.handler.d.ts.map +1 -0
- package/dist/handlers/watch-condition.handler.js +178 -0
- package/dist/handlers/watch-condition.handler.js.map +1 -0
- package/dist/handlers/whitelist.handler.d.ts +20 -0
- package/dist/handlers/whitelist.handler.d.ts.map +1 -0
- package/dist/handlers/whitelist.handler.js +241 -0
- package/dist/handlers/whitelist.handler.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -4
- package/dist/index.js.map +1 -1
- package/dist/services/ai-digital-human-service.d.ts +10 -0
- package/dist/services/ai-digital-human-service.d.ts.map +1 -0
- package/dist/services/ai-digital-human-service.js +64 -0
- package/dist/services/ai-digital-human-service.js.map +1 -0
- package/dist/services/card-push-service.d.ts +16 -0
- package/dist/services/card-push-service.d.ts.map +1 -0
- package/dist/services/card-push-service.js +153 -0
- package/dist/services/card-push-service.js.map +1 -0
- package/dist/services/chat.service.sdk.d.ts +39 -1
- package/dist/services/chat.service.sdk.d.ts.map +1 -1
- package/dist/services/chat.service.sdk.js +60 -0
- package/dist/services/chat.service.sdk.js.map +1 -1
- package/dist/services/checkin-service.d.ts +14 -0
- package/dist/services/checkin-service.d.ts.map +1 -0
- package/dist/services/checkin-service.js +89 -0
- package/dist/services/checkin-service.js.map +1 -0
- package/dist/services/donate-service.d.ts +12 -0
- package/dist/services/donate-service.d.ts.map +1 -0
- package/dist/services/donate-service.js +59 -0
- package/dist/services/donate-service.js.map +1 -0
- package/dist/services/lottery-service.d.ts +17 -0
- package/dist/services/lottery-service.d.ts.map +1 -0
- package/dist/services/lottery-service.js +84 -0
- package/dist/services/lottery-service.js.map +1 -0
- package/dist/services/platform-label-service.d.ts +21 -0
- package/dist/services/platform-label-service.d.ts.map +1 -0
- package/dist/services/platform-label-service.js +56 -0
- package/dist/services/platform-label-service.js.map +1 -0
- package/dist/services/platform-service.d.ts +47 -0
- package/dist/services/platform-service.d.ts.map +1 -0
- package/dist/services/platform-service.js +144 -0
- package/dist/services/platform-service.js.map +1 -0
- package/dist/services/promotion-service.d.ts +12 -0
- package/dist/services/promotion-service.d.ts.map +1 -0
- package/dist/services/promotion-service.js +54 -0
- package/dist/services/promotion-service.js.map +1 -0
- package/dist/services/qa-questionnaire-service.d.ts +15 -0
- package/dist/services/qa-questionnaire-service.d.ts.map +1 -0
- package/dist/services/qa-questionnaire-service.js +102 -0
- package/dist/services/qa-questionnaire-service.js.map +1 -0
- package/dist/services/stream.service.sdk.d.ts.map +1 -1
- package/dist/services/stream.service.sdk.js +8 -12
- package/dist/services/stream.service.sdk.js.map +1 -1
- package/dist/services/transmit-service.d.ts +9 -0
- package/dist/services/transmit-service.d.ts.map +1 -0
- package/dist/services/transmit-service.js +45 -0
- package/dist/services/transmit-service.js.map +1 -0
- package/dist/services/viewer-service.d.ts +29 -0
- package/dist/services/viewer-service.d.ts.map +1 -0
- package/dist/services/viewer-service.js +106 -0
- package/dist/services/viewer-service.js.map +1 -0
- package/dist/services/watch-condition-service.d.ts +16 -0
- package/dist/services/watch-condition-service.d.ts.map +1 -0
- package/dist/services/watch-condition-service.js +38 -0
- package/dist/services/watch-condition-service.js.map +1 -0
- package/dist/services/whitelist-service.d.ts +50 -0
- package/dist/services/whitelist-service.d.ts.map +1 -0
- package/dist/services/whitelist-service.js +56 -0
- package/dist/services/whitelist-service.js.map +1 -0
- package/dist/types/ai-digital-human.d.ts +49 -0
- package/dist/types/ai-digital-human.d.ts.map +1 -0
- package/dist/types/ai-digital-human.js +3 -0
- package/dist/types/ai-digital-human.js.map +1 -0
- package/dist/types/card-push.d.ts +151 -0
- package/dist/types/card-push.d.ts.map +1 -0
- package/dist/types/card-push.js +3 -0
- package/dist/types/card-push.js.map +1 -0
- package/dist/types/chat.d.ts +35 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/checkin.d.ts +57 -0
- package/dist/types/checkin.d.ts.map +1 -0
- package/dist/types/checkin.js +3 -0
- package/dist/types/checkin.js.map +1 -0
- package/dist/types/donate.d.ts +92 -0
- package/dist/types/donate.d.ts.map +1 -0
- package/dist/types/donate.js +3 -0
- package/dist/types/donate.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/lottery.d.ts +110 -0
- package/dist/types/lottery.d.ts.map +1 -0
- package/dist/types/lottery.js +3 -0
- package/dist/types/lottery.js.map +1 -0
- package/dist/types/platform-label.d.ts +29 -0
- package/dist/types/platform-label.d.ts.map +1 -0
- package/dist/types/platform-label.js +3 -0
- package/dist/types/platform-label.js.map +1 -0
- package/dist/types/platform.d.ts +44 -0
- package/dist/types/platform.d.ts.map +1 -0
- package/dist/types/platform.js +11 -0
- package/dist/types/platform.js.map +1 -0
- package/dist/types/promotion.d.ts +31 -0
- package/dist/types/promotion.d.ts.map +1 -0
- package/dist/types/promotion.js +3 -0
- package/dist/types/promotion.js.map +1 -0
- package/dist/types/qa.d.ts +90 -0
- package/dist/types/qa.d.ts.map +1 -0
- package/dist/types/qa.js +3 -0
- package/dist/types/qa.js.map +1 -0
- package/dist/types/transmit.d.ts +40 -0
- package/dist/types/transmit.d.ts.map +1 -0
- package/dist/types/transmit.js +3 -0
- package/dist/types/transmit.js.map +1 -0
- package/dist/types/viewer.d.ts +36 -0
- package/dist/types/viewer.d.ts.map +1 -0
- package/dist/types/viewer.js +3 -0
- package/dist/types/viewer.js.map +1 -0
- package/dist/types/watch-condition.d.ts +49 -0
- package/dist/types/watch-condition.d.ts.map +1 -0
- package/dist/types/watch-condition.js +18 -0
- package/dist/types/watch-condition.js.map +1 -0
- package/dist/types/whitelist.d.ts +36 -0
- package/dist/types/whitelist.d.ts.map +1 -0
- package/dist/types/whitelist.js +3 -0
- package/dist/types/whitelist.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransmitServiceSdk = void 0;
|
|
4
|
+
const polyv_live_api_sdk_1 = require("polyv-live-api-sdk");
|
|
5
|
+
class TransmitServiceSdk {
|
|
6
|
+
constructor(authConfig, config) {
|
|
7
|
+
this.client = new polyv_live_api_sdk_1.PolyVClient({
|
|
8
|
+
appId: authConfig.appId,
|
|
9
|
+
appSecret: authConfig.appSecret,
|
|
10
|
+
baseUrl: config?.baseUrl || 'https://api.polyv.net',
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
async batchCreateTransmitChannels(channelId, names) {
|
|
14
|
+
if (!channelId || channelId.trim() === '') {
|
|
15
|
+
throw new Error('Channel ID is required (频道ID是必需的)');
|
|
16
|
+
}
|
|
17
|
+
if (!names || names.length === 0) {
|
|
18
|
+
throw new Error('Names are required (频道名称是必需的)');
|
|
19
|
+
}
|
|
20
|
+
if (names.length > 100) {
|
|
21
|
+
throw new Error('Names count exceeds maximum of 100 (频道名称数量超过最大值100)');
|
|
22
|
+
}
|
|
23
|
+
const response = await this.client.httpClient.post('/live/v3/channel/transmit/batch-create', names, {
|
|
24
|
+
params: {
|
|
25
|
+
channelId: parseInt(channelId, 10),
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
const data = response;
|
|
29
|
+
return data?.data || [];
|
|
30
|
+
}
|
|
31
|
+
async getTransmitAssociations(channelId) {
|
|
32
|
+
if (!channelId || channelId.trim() === '') {
|
|
33
|
+
throw new Error('Channel ID is required (频道ID是必需的)');
|
|
34
|
+
}
|
|
35
|
+
const response = await this.client.httpClient.get('/live/v3/channel/transmit/get-associations', {
|
|
36
|
+
params: {
|
|
37
|
+
channelId,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
const data = response;
|
|
41
|
+
return data?.data || [];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.TransmitServiceSdk = TransmitServiceSdk;
|
|
45
|
+
//# sourceMappingURL=transmit-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transmit-service.js","sourceRoot":"","sources":["../../src/services/transmit-service.ts"],"names":[],"mappings":";;;AAMA,2DAAiD;AAWjD,MAAa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AAC,GAAG,CAC/C,4CAA4C,EAC5C;YACE,MAAM,EAAE;gBACN,SAAS;aACV;SACF,CACF,CAAC;QAGF,MAAM,IAAI,GAAG,QAAsD,CAAC;QACpE,OAAO,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC;IAC1B,CAAC;CACF;AA1ED,gDA0EC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AuthConfig } from '../types/auth';
|
|
2
|
+
import { ViewerServiceConfig } from '../types/viewer';
|
|
3
|
+
import type { GetViewerRecordParams, ViewerRecord, ListViewerRecordsParams, ListViewerRecordsResponse, ListViewerLabelsResponse } from 'polyv-live-api-sdk';
|
|
4
|
+
export interface BatchOperationResult {
|
|
5
|
+
viewerUnionId: string;
|
|
6
|
+
labelId: number;
|
|
7
|
+
success: boolean;
|
|
8
|
+
error?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BatchOperationSummary {
|
|
11
|
+
total: number;
|
|
12
|
+
succeeded: number;
|
|
13
|
+
failed: number;
|
|
14
|
+
results: BatchOperationResult[];
|
|
15
|
+
}
|
|
16
|
+
export declare class ViewerServiceSdk {
|
|
17
|
+
private readonly client;
|
|
18
|
+
private readonly v4User;
|
|
19
|
+
constructor(authConfig: AuthConfig, _serviceConfig?: ViewerServiceConfig);
|
|
20
|
+
getViewerRecord(params: GetViewerRecordParams): Promise<ViewerRecord>;
|
|
21
|
+
listViewerRecords(params: ListViewerRecordsParams): Promise<ListViewerRecordsResponse>;
|
|
22
|
+
listViewerLabels(): Promise<ListViewerLabelsResponse>;
|
|
23
|
+
addViewersLabels(viewerUnionIds: string[], labelIds: number[], onProgress?: (completed: number, total: number) => void): Promise<BatchOperationSummary>;
|
|
24
|
+
removeViewersLabels(viewerUnionIds: string[], labelIds: number[], onProgress?: (completed: number, total: number) => void): Promise<BatchOperationSummary>;
|
|
25
|
+
private executeBatchOperation;
|
|
26
|
+
private delay;
|
|
27
|
+
private wrapError;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=viewer-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer-service.d.ts","sourceRoot":"","sources":["../../src/services/viewer-service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAK5B,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAWD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAM;gBAOjB,UAAU,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,mBAAmB;IAUlE,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC;IAcrE,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAiBtF,gBAAgB,IAAI,OAAO,CAAC,wBAAwB,CAAC;IAiBrD,gBAAgB,CACpB,cAAc,EAAE,MAAM,EAAE,EACxB,QAAQ,EAAE,MAAM,EAAE,EAClB,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GACtD,OAAO,CAAC,qBAAqB,CAAC;IAkB3B,mBAAmB,CACvB,cAAc,EAAE,MAAM,EAAE,EACxB,QAAQ,EAAE,MAAM,EAAE,EAClB,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GACtD,OAAO,CAAC,qBAAqB,CAAC;YAcnB,qBAAqB;IA+EnC,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,SAAS;CAYlB"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewerServiceSdk = void 0;
|
|
4
|
+
const polyv_live_api_sdk_1 = require("polyv-live-api-sdk");
|
|
5
|
+
const errors_1 = require("../utils/errors");
|
|
6
|
+
const BATCH_CONCURRENCY = 5;
|
|
7
|
+
const BATCH_DELAY_MS = 100;
|
|
8
|
+
class ViewerServiceSdk {
|
|
9
|
+
constructor(authConfig, _serviceConfig) {
|
|
10
|
+
this.client = new polyv_live_api_sdk_1.PolyVClient(authConfig);
|
|
11
|
+
this.v4User = this.client.v4User;
|
|
12
|
+
}
|
|
13
|
+
async getViewerRecord(params) {
|
|
14
|
+
try {
|
|
15
|
+
const result = await this.v4User.getViewerRecord(params);
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
throw this.wrapError(error, 'getViewerRecord');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async listViewerRecords(params) {
|
|
23
|
+
try {
|
|
24
|
+
const result = await this.v4User.listViewerRecords(params);
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
throw this.wrapError(error, 'listViewerRecords');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async listViewerLabels() {
|
|
32
|
+
try {
|
|
33
|
+
const result = await this.v4User.listViewerLabels();
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
throw this.wrapError(error, 'listViewerLabels');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
async addViewersLabels(viewerUnionIds, labelIds, onProgress) {
|
|
41
|
+
return this.executeBatchOperation(viewerUnionIds, labelIds, (viewerUnionId, labelId) => this.v4User.addViewerLabel({ viewerUnionId, labelId }), 'addViewersLabels', onProgress);
|
|
42
|
+
}
|
|
43
|
+
async removeViewersLabels(viewerUnionIds, labelIds, onProgress) {
|
|
44
|
+
return this.executeBatchOperation(viewerUnionIds, labelIds, (viewerUnionId, labelId) => this.v4User.deleteViewerLabelRef({ viewerUnionId, labelId }), 'removeViewersLabels', onProgress);
|
|
45
|
+
}
|
|
46
|
+
async executeBatchOperation(viewerUnionIds, labelIds, operation, operationName, onProgress) {
|
|
47
|
+
const results = [];
|
|
48
|
+
const combinations = [];
|
|
49
|
+
for (const viewerUnionId of viewerUnionIds) {
|
|
50
|
+
for (const labelId of labelIds) {
|
|
51
|
+
combinations.push({ viewerUnionId, labelId });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const total = combinations.length;
|
|
55
|
+
let completed = 0;
|
|
56
|
+
for (let i = 0; i < combinations.length; i += BATCH_CONCURRENCY) {
|
|
57
|
+
const chunk = combinations.slice(i, i + BATCH_CONCURRENCY);
|
|
58
|
+
const chunkResults = await Promise.allSettled(chunk.map(async ({ viewerUnionId, labelId }) => {
|
|
59
|
+
await operation(viewerUnionId, labelId);
|
|
60
|
+
return { viewerUnionId, labelId, success: true };
|
|
61
|
+
}));
|
|
62
|
+
chunkResults.forEach((settledResult, j) => {
|
|
63
|
+
const { viewerUnionId, labelId } = chunk[j];
|
|
64
|
+
if (settledResult.status === 'fulfilled') {
|
|
65
|
+
results.push(settledResult.value);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const reason = settledResult.reason;
|
|
69
|
+
results.push({
|
|
70
|
+
viewerUnionId,
|
|
71
|
+
labelId,
|
|
72
|
+
success: false,
|
|
73
|
+
error: reason instanceof Error ? reason.message : String(reason),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
completed++;
|
|
77
|
+
onProgress?.(completed, total);
|
|
78
|
+
});
|
|
79
|
+
if (i + BATCH_CONCURRENCY < combinations.length) {
|
|
80
|
+
await this.delay(BATCH_DELAY_MS);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const summary = {
|
|
84
|
+
total,
|
|
85
|
+
succeeded: results.filter(r => r.success).length,
|
|
86
|
+
failed: results.filter(r => !r.success).length,
|
|
87
|
+
results,
|
|
88
|
+
};
|
|
89
|
+
if (summary.failed > 0 && summary.succeeded === 0) {
|
|
90
|
+
throw this.wrapError(new Error(`All ${summary.failed} operations failed`), operationName);
|
|
91
|
+
}
|
|
92
|
+
return summary;
|
|
93
|
+
}
|
|
94
|
+
delay(ms) {
|
|
95
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
96
|
+
}
|
|
97
|
+
wrapError(error, operation) {
|
|
98
|
+
if (error instanceof errors_1.PolyVError) {
|
|
99
|
+
return error;
|
|
100
|
+
}
|
|
101
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
102
|
+
return new errors_1.PolyVError(`${operation} failed: ${message}`, 'VIEWER_API_ERROR', 1, { originalError: error });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.ViewerServiceSdk = ViewerServiceSdk;
|
|
106
|
+
//# sourceMappingURL=viewer-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer-service.js","sourceRoot":"","sources":["../../src/services/viewer-service.ts"],"names":[],"mappings":";;;AAMA,2DAAiD;AAGjD,4CAA6C;AAgC7C,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,MAAM,cAAc,GAAG,GAAG,CAAC;AAM3B,MAAa,gBAAgB;IAS3B,YAAY,UAAsB,EAAE,cAAoC;QACtE,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAW,CAAC,UAAU,CAAC,CAAC;QAC1C,I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IAAI,KAAK,CAAC,OAAO,OAAO,CAAC,MAAM,oBAAoB,CAAC,EACpD,aAAa,CACd,CAAC;QACJ,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAMO,KAAK,CAAC,EAAU;QACtB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IACzD,CAAC;IAKO,SAAS,CAAC,KAAc,EAAE,SAAiB;QACjD,IAAI,KAAK,YAAY,mBAAU,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,IAAI,mBAAU,CACnB,GAAG,SAAS,YAAY,OAAO,EAAE,EACjC,kBAAkB,EAClB,CAAC,EACD,EAAE,aAAa,EAAE,KAAK,EAAE,CACzB,CAAC;IACJ,CAAC;CACF;AA7MD,4CA6MC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AuthConfig } from '../types/auth';
|
|
2
|
+
import type { WatchConditionServiceConfig, ConfigAuthSetting } from '../types/watch-condition';
|
|
3
|
+
export declare class WatchConditionServiceSdk {
|
|
4
|
+
private readonly client;
|
|
5
|
+
private readonly web;
|
|
6
|
+
constructor(authConfig: AuthConfig, _serviceConfig?: WatchConditionServiceConfig);
|
|
7
|
+
getWatchCondition(params: {
|
|
8
|
+
channelId?: string;
|
|
9
|
+
}): Promise<any[]>;
|
|
10
|
+
setWatchCondition(params: {
|
|
11
|
+
channelId?: string;
|
|
12
|
+
authSettings: ConfigAuthSetting[];
|
|
13
|
+
}): Promise<string>;
|
|
14
|
+
private wrapError;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=watch-condition-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-condition-service.d.ts","sourceRoot":"","sources":["../../src/services/watch-condition-service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAa/F,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA+B;gBAOvC,UAAU,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,2BAA2B;IAU1E,iBAAiB,CAAC,MAAM,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAcjE,iBAAiB,CAAC,MAAM,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,iBAAiB,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAY3G,OAAO,CAAC,SAAS;CAYlB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WatchConditionServiceSdk = void 0;
|
|
4
|
+
const polyv_live_api_sdk_1 = require("polyv-live-api-sdk");
|
|
5
|
+
const errors_1 = require("../utils/errors");
|
|
6
|
+
class WatchConditionServiceSdk {
|
|
7
|
+
constructor(authConfig, _serviceConfig) {
|
|
8
|
+
this.client = new polyv_live_api_sdk_1.PolyVClient(authConfig);
|
|
9
|
+
this.web = this.client.web;
|
|
10
|
+
}
|
|
11
|
+
async getWatchCondition(params) {
|
|
12
|
+
try {
|
|
13
|
+
const result = await this.web.getWatchCondition(params);
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
throw this.wrapError(error, 'getWatchCondition');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
async setWatchCondition(params) {
|
|
21
|
+
try {
|
|
22
|
+
const result = await this.web.setWatchCondition(params);
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
throw this.wrapError(error, 'setWatchCondition');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
wrapError(error, operation) {
|
|
30
|
+
if (error instanceof errors_1.PolyVError) {
|
|
31
|
+
return error;
|
|
32
|
+
}
|
|
33
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
34
|
+
return new errors_1.PolyVError(`${operation} failed: ${message}`, 'WATCH_CONDITION_API_ERROR', 1, { originalError: error });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.WatchConditionServiceSdk = WatchConditionServiceSdk;
|
|
38
|
+
//# sourceMappingURL=watch-condition-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-condition-service.js","sourceRoot":"","sources":["../../src/services/watch-condition-service.ts"],"names":[],"mappings":";;;AAMA,2DAAiD;AAGjD,4CAA6C;AAY7C,MAAa,wBAAwB;IASnC,YAAY,UAAsB,EAAE,cAA4C;QAC9E,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAW,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,GAA8C,CAAC;IACxE,CAAC;IAOD,KAAK,CAAC,iBAAiB,CAAC,MAA8B;QACpD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;YACxD,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAOD,KAAK,CAAC,iBAAiB,CAAC,MAAiE;QACvF,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;YACxD,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAKO,SAAS,CAAC,KAAc,EAAE,SAAiB;QACjD,IAAI,KAAK,YAAY,mBAAU,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,IAAI,mBAAU,CACnB,GAAG,SAAS,YAAY,OAAO,EAAE,EACjC,2BAA2B,EAC3B,CAAC,EACD,EAAE,aAAa,EAAE,KAAK,EAAE,CACzB,CAAC;IACJ,CAAC;CACF;AAzDD,4DAyDC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AuthConfig } from '../types/auth';
|
|
2
|
+
import type { WhitelistServiceConfig } from '../types/whitelist';
|
|
3
|
+
interface LocalGetWhiteListParams {
|
|
4
|
+
rank: 1 | 2;
|
|
5
|
+
channelId?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
keyword?: string;
|
|
9
|
+
}
|
|
10
|
+
interface LocalGetWhiteListResponse {
|
|
11
|
+
pageNumber: number;
|
|
12
|
+
totalPages: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
contents: LocalWhiteListItem[];
|
|
15
|
+
}
|
|
16
|
+
interface LocalWhiteListItem {
|
|
17
|
+
name: string;
|
|
18
|
+
phone: string;
|
|
19
|
+
}
|
|
20
|
+
interface LocalAddWhiteListParams {
|
|
21
|
+
rank: 1 | 2;
|
|
22
|
+
code: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
channelId?: string;
|
|
25
|
+
}
|
|
26
|
+
interface LocalUpdateWhiteListParams {
|
|
27
|
+
rank: 1 | 2;
|
|
28
|
+
code: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
channelId?: string;
|
|
31
|
+
oldCode: string;
|
|
32
|
+
}
|
|
33
|
+
interface LocalDeleteWhiteListParams {
|
|
34
|
+
rank: 1 | 2;
|
|
35
|
+
isClear: 'Y' | 'N';
|
|
36
|
+
codes?: string;
|
|
37
|
+
channelId?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare class WhitelistServiceSdk {
|
|
40
|
+
private readonly client;
|
|
41
|
+
private readonly web;
|
|
42
|
+
constructor(authConfig: AuthConfig, _serviceConfig?: WhitelistServiceConfig);
|
|
43
|
+
getWhiteList(params: LocalGetWhiteListParams): Promise<LocalGetWhiteListResponse>;
|
|
44
|
+
addWhiteList(params: LocalAddWhiteListParams): Promise<string>;
|
|
45
|
+
updateWhiteList(params: LocalUpdateWhiteListParams): Promise<string>;
|
|
46
|
+
deleteWhiteList(params: LocalDeleteWhiteListParams): Promise<string>;
|
|
47
|
+
private wrapError;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=whitelist-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whitelist-service.d.ts","sourceRoot":"","sources":["../../src/services/whitelist-service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAIjE,UAAU,uBAAuB;IAC/B,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,UAAU,EAAE,MAAM,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|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WhitelistServiceSdk = void 0;
|
|
4
|
+
const polyv_live_api_sdk_1 = require("polyv-live-api-sdk");
|
|
5
|
+
const errors_1 = require("../utils/errors");
|
|
6
|
+
class WhitelistServiceSdk {
|
|
7
|
+
constructor(authConfig, _serviceConfig) {
|
|
8
|
+
this.client = new polyv_live_api_sdk_1.PolyVClient(authConfig);
|
|
9
|
+
this.web = this.client.web;
|
|
10
|
+
}
|
|
11
|
+
async getWhiteList(params) {
|
|
12
|
+
try {
|
|
13
|
+
const result = await this.web.getWhiteList(params);
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
throw this.wrapError(error, 'getWhiteList');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
async addWhiteList(params) {
|
|
21
|
+
try {
|
|
22
|
+
const result = await this.web.addWhiteList(params);
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
throw this.wrapError(error, 'addWhiteList');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
async updateWhiteList(params) {
|
|
30
|
+
try {
|
|
31
|
+
const result = await this.web.updateWhiteList(params);
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
throw this.wrapError(error, 'updateWhiteList');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async deleteWhiteList(params) {
|
|
39
|
+
try {
|
|
40
|
+
const result = await this.web.deleteWhiteList(params);
|
|
41
|
+
return result;
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
throw this.wrapError(error, 'deleteWhiteList');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
wrapError(error, operation) {
|
|
48
|
+
if (error instanceof errors_1.PolyVError) {
|
|
49
|
+
return error;
|
|
50
|
+
}
|
|
51
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
52
|
+
return new errors_1.PolyVError(`${operation} failed: ${message}`, 'WHITELIST_API_ERROR', 1, { originalError: error });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.WhitelistServiceSdk = WhitelistServiceSdk;
|
|
56
|
+
//# sourceMappingURL=whitelist-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whitelist-service.js","sourceRoot":"","sources":["../../src/services/whitelist-service.ts"],"names":[],"mappings":";;;AAMA,2DAAiD;AAGjD,4CAA6C;AA2D7C,MAAa,mBAAmB;IAS9B,YAAY,UAAsB,EAAE,cAAuC;QACzE,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAW,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,GAAyC,CAAC;IACnE,CAAC;IAOD,KAAK,CAAC,YAAY,CAAC,MAA+B;QAChD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YACnD,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAOD,KAAK,CAAC,YAAY,CAAC,MAA+B;QAChD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YACnD,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAQD,KAAK,CAAC,eAAe,CAAC,MAAkC;QACtD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YACtD,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAOD,KAAK,CAAC,eAAe,CAAC,MAAkC;QACtD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YACtD,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAKO,SAAS,CAAC,KAAc,EAAE,SAAiB;QACjD,IAAI,KAAK,YAAY,mBAAU,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,IAAI,mBAAU,CACnB,GAAG,SAAS,YAAY,OAAO,EAAE,EACjC,qBAAqB,EACrB,CAAC,EACD,EAAE,aAAa,EAAE,KAAK,EAAE,CACzB,CAAC;IACJ,CAAC;CACF;AAtFD,kDAsFC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface AIDigitalHumanServiceConfig {
|
|
2
|
+
baseUrl?: string;
|
|
3
|
+
timeout?: number;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface AIDigitalHuman {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
thirdRoleCode: string;
|
|
10
|
+
coverPhoto: string;
|
|
11
|
+
fullBodyPhoto: string;
|
|
12
|
+
defaultTtsVoiceId: number;
|
|
13
|
+
clothesDesc: string;
|
|
14
|
+
createTime: number;
|
|
15
|
+
}
|
|
16
|
+
export interface AIDigitalHumanListResponse {
|
|
17
|
+
pageNumber: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
totalPages: number;
|
|
20
|
+
totalItems: number;
|
|
21
|
+
contents: AIDigitalHuman[];
|
|
22
|
+
}
|
|
23
|
+
export interface AIDigitalHumanOrganization {
|
|
24
|
+
aiDigitalHumanId: number;
|
|
25
|
+
organizationIds: number[];
|
|
26
|
+
includeChildren: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface SetOrganizationParams {
|
|
29
|
+
aiDigitalHumanId: number;
|
|
30
|
+
organizationIds: number[];
|
|
31
|
+
includeChildren: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface AIDigitalHumanListOptions {
|
|
34
|
+
page?: number;
|
|
35
|
+
size?: number;
|
|
36
|
+
output?: 'table' | 'json';
|
|
37
|
+
}
|
|
38
|
+
export interface AIDigitalHumanListOrgOptions {
|
|
39
|
+
ids: string;
|
|
40
|
+
output?: 'table' | 'json';
|
|
41
|
+
}
|
|
42
|
+
export interface AIDigitalHumanSetOrgOptions {
|
|
43
|
+
config?: string;
|
|
44
|
+
aiDigitalHumanId?: string;
|
|
45
|
+
organizationIds?: string;
|
|
46
|
+
includeChildren?: boolean;
|
|
47
|
+
output?: 'table' | 'json';
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=ai-digital-human.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-digital-human.d.ts","sourceRoot":"","sources":["../../src/types/ai-digital-human.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAKD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAA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"ai-digital-human.js","sourceRoot":"","sources":["../../src/types/ai-digital-human.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export interface CardPushServiceConfig {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
timeout: number;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface CardPushListOptions {
|
|
7
|
+
channelId: string;
|
|
8
|
+
output?: 'table' | 'json';
|
|
9
|
+
}
|
|
10
|
+
export interface CardPushCreateOptions {
|
|
11
|
+
channelId: string;
|
|
12
|
+
cardType?: 'common' | 'qrCode';
|
|
13
|
+
imageType: 'giftbox' | 'redpack' | 'custom' | 'weixinWork';
|
|
14
|
+
title: string;
|
|
15
|
+
link: string;
|
|
16
|
+
duration: number;
|
|
17
|
+
durationPosition?: 'bottom' | 'top';
|
|
18
|
+
showCondition: 'PUSH' | 'WATCH';
|
|
19
|
+
conditionValue?: number;
|
|
20
|
+
conditionUnit?: 'SECONDS' | 'MINUTES';
|
|
21
|
+
countdownMsg?: string;
|
|
22
|
+
enterEnabled?: 'Y' | 'N';
|
|
23
|
+
linkEnabled?: 'Y' | 'N';
|
|
24
|
+
redirectType?: 'iframe' | 'tab';
|
|
25
|
+
output?: 'table' | 'json';
|
|
26
|
+
}
|
|
27
|
+
export interface CardPushUpdateOptions {
|
|
28
|
+
channelId: string;
|
|
29
|
+
cardPushId: string;
|
|
30
|
+
cardType?: 'common' | 'qrCode';
|
|
31
|
+
imageType?: 'giftbox' | 'redpack' | 'custom' | 'weixinWork';
|
|
32
|
+
title?: string;
|
|
33
|
+
link?: string;
|
|
34
|
+
duration?: number;
|
|
35
|
+
durationPosition?: 'bottom' | 'top';
|
|
36
|
+
showCondition?: 'PUSH' | 'WATCH';
|
|
37
|
+
conditionValue?: number;
|
|
38
|
+
conditionUnit?: 'SECONDS' | 'MINUTES';
|
|
39
|
+
countdownMsg?: string;
|
|
40
|
+
enterEnabled?: 'Y' | 'N';
|
|
41
|
+
linkEnabled?: 'Y' | 'N';
|
|
42
|
+
redirectType?: 'iframe' | 'tab';
|
|
43
|
+
output?: 'table' | 'json';
|
|
44
|
+
}
|
|
45
|
+
export interface CardPushPushOptions {
|
|
46
|
+
channelId: string;
|
|
47
|
+
cardPushId: string;
|
|
48
|
+
output?: 'table' | 'json';
|
|
49
|
+
}
|
|
50
|
+
export interface CardPushCancelOptions {
|
|
51
|
+
channelId: string;
|
|
52
|
+
cardPushId: string;
|
|
53
|
+
output?: 'table' | 'json';
|
|
54
|
+
}
|
|
55
|
+
export interface CardPushDeleteOptions {
|
|
56
|
+
channelId: string;
|
|
57
|
+
cardPushId: string;
|
|
58
|
+
output?: 'table' | 'json';
|
|
59
|
+
}
|
|
60
|
+
export interface CardPush {
|
|
61
|
+
id: number;
|
|
62
|
+
channelId: number;
|
|
63
|
+
title: string;
|
|
64
|
+
cardType?: 'common' | 'qrCode';
|
|
65
|
+
imageType: 'giftbox' | 'redpack' | 'custom' | 'weixinWork';
|
|
66
|
+
duration: number;
|
|
67
|
+
durationPosition?: 'bottom' | 'top';
|
|
68
|
+
link: string;
|
|
69
|
+
pushStatus: 'Y' | 'N' | 'L';
|
|
70
|
+
enterEnabled: 'Y' | 'N';
|
|
71
|
+
showCondition: 'PUSH' | 'WATCH';
|
|
72
|
+
conditionValue?: number;
|
|
73
|
+
conditionUnit?: 'SECONDS' | 'MINUTES';
|
|
74
|
+
countdownMsg?: string;
|
|
75
|
+
linkEnabled?: 'Y' | 'N';
|
|
76
|
+
redirectType?: 'iframe' | 'tab';
|
|
77
|
+
createdTime: number;
|
|
78
|
+
lastModified?: number;
|
|
79
|
+
pushTime?: number;
|
|
80
|
+
pushEndTime?: number;
|
|
81
|
+
enterImage?: string;
|
|
82
|
+
cardImage?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface CreatedCardPush {
|
|
85
|
+
id: number;
|
|
86
|
+
channelId: number;
|
|
87
|
+
title: string;
|
|
88
|
+
cardType?: 'common' | 'qrCode';
|
|
89
|
+
imageType: 'giftbox' | 'redpack' | 'custom' | 'weixinWork';
|
|
90
|
+
duration: number;
|
|
91
|
+
durationPosition?: 'bottom' | 'top';
|
|
92
|
+
link: string;
|
|
93
|
+
pushStatus: 'Y' | 'N' | 'L';
|
|
94
|
+
enterEnabled?: 'Y' | 'N';
|
|
95
|
+
showCondition: 'PUSH' | 'WATCH';
|
|
96
|
+
conditionValue?: number;
|
|
97
|
+
conditionUnit?: 'SECONDS' | 'MINUTES';
|
|
98
|
+
countdownMsg?: string;
|
|
99
|
+
linkEnabled?: 'Y' | 'N';
|
|
100
|
+
redirectType?: 'iframe' | 'tab';
|
|
101
|
+
createdTime: number;
|
|
102
|
+
lastModified?: number;
|
|
103
|
+
pushTime?: number;
|
|
104
|
+
pushEndTime?: number;
|
|
105
|
+
}
|
|
106
|
+
export interface CardPushCreateParams {
|
|
107
|
+
channelId: string;
|
|
108
|
+
cardType?: 'common' | 'qrCode' | undefined;
|
|
109
|
+
imageType: 'giftbox' | 'redpack' | 'custom' | 'weixinWork';
|
|
110
|
+
title: string;
|
|
111
|
+
link: string;
|
|
112
|
+
duration: number;
|
|
113
|
+
durationPosition?: 'bottom' | 'top' | undefined;
|
|
114
|
+
showCondition: 'PUSH' | 'WATCH';
|
|
115
|
+
conditionValue?: number | undefined;
|
|
116
|
+
conditionUnit?: 'SECONDS' | 'MINUTES' | undefined;
|
|
117
|
+
countdownMsg?: string | undefined;
|
|
118
|
+
enterEnabled?: 'Y' | 'N' | undefined;
|
|
119
|
+
linkEnabled?: 'Y' | 'N' | undefined;
|
|
120
|
+
redirectType?: 'iframe' | 'tab' | undefined;
|
|
121
|
+
}
|
|
122
|
+
export interface CardPushUpdateParams {
|
|
123
|
+
channelId: string;
|
|
124
|
+
cardPushId: string;
|
|
125
|
+
cardType?: 'common' | 'qrCode' | undefined;
|
|
126
|
+
imageType?: 'giftbox' | 'redpack' | 'custom' | 'weixinWork' | undefined;
|
|
127
|
+
title?: string | undefined;
|
|
128
|
+
link?: string | undefined;
|
|
129
|
+
duration?: number | undefined;
|
|
130
|
+
durationPosition?: 'bottom' | 'top' | undefined;
|
|
131
|
+
showCondition?: 'PUSH' | 'WATCH' | undefined;
|
|
132
|
+
conditionValue?: number | undefined;
|
|
133
|
+
conditionUnit?: 'SECONDS' | 'MINUTES' | undefined;
|
|
134
|
+
countdownMsg?: string | undefined;
|
|
135
|
+
enterEnabled?: 'Y' | 'N' | undefined;
|
|
136
|
+
linkEnabled?: 'Y' | 'N' | undefined;
|
|
137
|
+
redirectType?: 'iframe' | 'tab' | undefined;
|
|
138
|
+
}
|
|
139
|
+
export interface CardPushPushParams {
|
|
140
|
+
channelId: string;
|
|
141
|
+
cardPushId: string;
|
|
142
|
+
}
|
|
143
|
+
export interface CardPushCancelParams {
|
|
144
|
+
channelId: string;
|
|
145
|
+
cardPushId: string;
|
|
146
|
+
}
|
|
147
|
+
export interface CardPushDeleteParams {
|
|
148
|
+
channelId: string;
|
|
149
|
+
cardPushId: string;
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=card-push.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-push.d.ts","sourceRoot":"","sources":["../../src/types/card-push.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,qBAAqB;IAEpC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAKD,MAAM,WAAW,mBAAmB;IAElC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAKD,MAAM,WAAW,qBAAqB;IAEpC,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAE/B,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;IAE3D,KAAK,EAAE,MAAM,CAAC;IAEd,IAA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