opengate-js 12.9.3 → 12.9.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opengate-js",
3
- "version": "12.9.3",
3
+ "version": "12.9.4",
4
4
  "description": "",
5
5
  "main": "dist/opengate-api-npm.js",
6
6
  "repository": {
@@ -40,19 +40,18 @@ export default class AIModelsFinder extends GenericFinder {
40
40
  return this._execute();
41
41
  }
42
42
 
43
- /**
43
+ /**
44
44
  * Download a specific ai model by its organization and id. This execute a GET http method
45
45
  * @test
46
- * ogapi.newAIModelFinder().downloadByOrganizationAndIdentifierAndFilename('orgname', xxx-xx-xxx-xxx', 'filename').then().catch();
46
+ * ogapi.newAIModelFinder().downloadByOrganizationAndIdentifier('orgname', xxx-xx-xxx-xxx').then().catch();
47
47
  * @param {string} organization - transformer organization .
48
48
  * @param {string} identifier - transformer identifier.
49
- * @param {string} filename - name of transformer file.
50
49
  * @return {Promise}
51
50
  */
52
- downloadByOrganizationAndIdentifierAndFilename(organization, identifier, filename) {
51
+ downloadByOrganizationAndIdentifier(organization, identifier) {
53
52
  this._organization = organization;
54
53
  this._identifier = identifier;
55
- this._filename = filename
54
+ this._filename = true
56
55
  return this._download();
57
56
  }
58
57
 
@@ -61,6 +60,6 @@ export default class AIModelsFinder extends GenericFinder {
61
60
  * @private
62
61
  */
63
62
  _composeUrl() {
64
- return this._baseUrl + "/" + this._organization + "/models" +(this._identifier?'/'+ this._identifier + (this._filename?'/'+ this._filename:''):'');
63
+ return this._baseUrl + "/" + this._organization + "/models" +(this._identifier?'/'+ this._identifier + (this._filename?'/file':''):'');
65
64
  }
66
65
  }
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"mappings":"","sources":["opengate-api-bower.js"],"file":"opengate-api-bower-12.9.3.js","sourceRoot":".."}