@voiceflow/api-sdk 3.13.26 → 3.14.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.
|
@@ -61,9 +61,13 @@ declare class VersionResource extends CrudResource<BaseModels.Version.Model<Base
|
|
|
61
61
|
getPrototypePlan(id: string): Promise<{
|
|
62
62
|
plan: string;
|
|
63
63
|
}>;
|
|
64
|
-
reorderTopics
|
|
64
|
+
reorderTopics(id: string, body: {
|
|
65
65
|
fromID: string;
|
|
66
66
|
toIndex: number;
|
|
67
|
-
}
|
|
67
|
+
}): Promise<BaseModels.Version.FolderItem>;
|
|
68
|
+
reorderComponents(id: string, body: {
|
|
69
|
+
fromID: string;
|
|
70
|
+
toIndex: number;
|
|
71
|
+
}): Promise<BaseModels.Version.FolderItem>;
|
|
68
72
|
}
|
|
69
73
|
export default VersionResource;
|
|
@@ -91,5 +91,9 @@ class VersionResource extends crud_1.default {
|
|
|
91
91
|
const { data } = await this.fetch.patch(`${this._getCRUDEndpoint(id)}/topics/reorder`, body);
|
|
92
92
|
return data;
|
|
93
93
|
}
|
|
94
|
+
async reorderComponents(id, body) {
|
|
95
|
+
const { data } = await this.fetch.patch(`${this._getCRUDEndpoint(id)}/components/reorder`, body);
|
|
96
|
+
return data;
|
|
97
|
+
}
|
|
94
98
|
}
|
|
95
99
|
exports.default = VersionResource;
|
|
@@ -61,9 +61,13 @@ declare class VersionResource extends CrudResource<BaseModels.Version.Model<Base
|
|
|
61
61
|
getPrototypePlan(id: string): Promise<{
|
|
62
62
|
plan: string;
|
|
63
63
|
}>;
|
|
64
|
-
reorderTopics
|
|
64
|
+
reorderTopics(id: string, body: {
|
|
65
65
|
fromID: string;
|
|
66
66
|
toIndex: number;
|
|
67
|
-
}
|
|
67
|
+
}): Promise<BaseModels.Version.FolderItem>;
|
|
68
|
+
reorderComponents(id: string, body: {
|
|
69
|
+
fromID: string;
|
|
70
|
+
toIndex: number;
|
|
71
|
+
}): Promise<BaseModels.Version.FolderItem>;
|
|
68
72
|
}
|
|
69
73
|
export default VersionResource;
|
|
@@ -85,5 +85,9 @@ class VersionResource extends CrudResource {
|
|
|
85
85
|
const { data } = await this.fetch.patch(`${this._getCRUDEndpoint(id)}/topics/reorder`, body);
|
|
86
86
|
return data;
|
|
87
87
|
}
|
|
88
|
+
async reorderComponents(id, body) {
|
|
89
|
+
const { data } = await this.fetch.patch(`${this._getCRUDEndpoint(id)}/components/reorder`, body);
|
|
90
|
+
return data;
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
export default VersionResource;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/api-sdk",
|
|
3
3
|
"description": "wrapper for creator-api",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.14.0",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@voiceflow/base-types": "^2.
|
|
10
|
+
"@voiceflow/base-types": "^2.42.0",
|
|
11
11
|
"@voiceflow/common": "^7.27.0",
|
|
12
12
|
"axios": "0.24.0",
|
|
13
13
|
"jwt-decode": "^3.1.2",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"test:single": "NODE_ENV=test ts-mocha --paths --config ./config/tests/.mocharc.json",
|
|
63
63
|
"test:unit": "NODE_ENV=test nyc --report-dir=nyc_coverage_unit ts-mocha --paths --config ./config/tests/.mocharc.json 'tests/**/*.unit.ts'"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "5e760fba3f7861ec42f8dae367e302eb2a1fd20b"
|
|
66
66
|
}
|