@or-sdk/bots 1.6.2-beta.4096.0 → 1.6.2-beta.4098.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.
- package/dist/types/Bots.d.ts +56 -0
- package/dist/types/Bots.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/types/Bots.d.ts
CHANGED
|
@@ -6,15 +6,71 @@ export declare class Bots implements Taggable<Bot> {
|
|
|
6
6
|
private readonly dataHubSvc;
|
|
7
7
|
private readonly tags;
|
|
8
8
|
constructor(params: BotsConfig);
|
|
9
|
+
/**
|
|
10
|
+
* List bots
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const botList = await bots.listBots();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
9
15
|
listBots(params?: ListBotsParams, paginationOptions?: PaginationOptions): Promise<List<Bot>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get bot
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const bot = await bots.getBot('bot-id');
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
10
22
|
getBot(id: string, params?: GetBotsParams): Promise<Bot>;
|
|
23
|
+
/**
|
|
24
|
+
* Save bot
|
|
25
|
+
*
|
|
26
|
+
* If source contains existing id - existing bot will be updated
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const savedBot = await bots.saveBot(botSource);
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
11
31
|
saveBot(source: Bot): Promise<Bot>;
|
|
32
|
+
/**
|
|
33
|
+
* Delete bot
|
|
34
|
+
* ```typescript
|
|
35
|
+
* await bots.deleteBot('bot-id');
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
12
38
|
deleteBot(botId: string, temporarily?: boolean, context?: CheckProgressContext): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Recover bot
|
|
41
|
+
* ```typescript
|
|
42
|
+
* await bots.recoverBot('bot-id');
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
13
45
|
recoverBot(botId: string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Download bot template to account
|
|
48
|
+
* ```typescript
|
|
49
|
+
* const result = await bots.downloadTemplate('bot-template-id');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
14
52
|
downloadTemplate(botTemplateId: string): Promise<DownloadTemplateResult>;
|
|
53
|
+
/**
|
|
54
|
+
* Add tags
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const bot = await bots.addTags(botSource, tagIdsArr);
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
15
59
|
addTags(source: Bot, tagNames: string[]): Promise<Bot>;
|
|
60
|
+
/**
|
|
61
|
+
* Remove tags
|
|
62
|
+
* ```typescript
|
|
63
|
+
* const bot = await bots.removeTags(botSource, tagIdsArr);
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
16
66
|
removeTags(source: Bot, tagNames: string[]): Promise<Bot>;
|
|
17
67
|
uploaderBotImage({ path, fileModel, cacheControl }: BotUploadIcon): Promise<string>;
|
|
68
|
+
/**
|
|
69
|
+
* List bot categories
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const categories = await bots.listBotCategories();
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
18
74
|
listBotCategories(): Promise<BotCategoriesResponse>;
|
|
19
75
|
}
|
|
20
76
|
//# sourceMappingURL=Bots.d.ts.map
|
package/dist/types/Bots.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bots.d.ts","sourceRoot":"","sources":["../../src/Bots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAuB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAQ,QAAQ,EAA0C,MAAM,cAAc,CAAC;AAItF,OAAO,EACL,UAAU,EACV,GAAG,EACH,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,qBA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AE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUrD;;;;;OAKG;IACU,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAarF;;;;;OAKG;IACU,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAgBnE;;;;;OAKG;IACU,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAgBzD,gBAAgB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAA8B,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;IAoClH;;;;;OAKG;IACU,iBAAiB,IAAI,OAAO,CAAC,qBAAqB,CAAC;CAQjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/bots",
|
|
3
|
-
"version": "1.6.2-beta.
|
|
3
|
+
"version": "1.6.2-beta.4098.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dev": "pnpm build:watch:esm"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@or-sdk/base": "^0.44.1-beta.
|
|
22
|
-
"@or-sdk/data-hub-svc": "^2.3.2-beta.
|
|
23
|
-
"@or-sdk/tags": "^1.1.2-beta.
|
|
21
|
+
"@or-sdk/base": "^0.44.1-beta.4098.0",
|
|
22
|
+
"@or-sdk/data-hub-svc": "^2.3.2-beta.4098.0",
|
|
23
|
+
"@or-sdk/tags": "^1.1.2-beta.4098.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"concurrently": "9.0.1",
|