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/bower.json +1 -1
- package/dist/{opengate-api-bower-12.9.3.js → opengate-api-bower-12.9.4.js} +15 -16
- package/dist/opengate-api-bower-12.9.4.js.map +1 -0
- package/dist/{opengate-api-bower-12.9.3.min.js → opengate-api-bower-12.9.4.min.js} +3 -3
- package/dist/{opengate-api-bower-12.9.3.min.js.map → opengate-api-bower-12.9.4.min.js.map} +1 -1
- package/dist/src/AIModels/AIModelsFinder.js +11 -12
- package/dist/src/AIModels/AIModelsFinder.js.map +1 -1
- package/docs/ast/source/AIModels/AIModelsFinder.js.json +664 -903
- package/docs/class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html +4 -11
- package/docs/dump.json +10 -20
- package/docs/file/src/AIModels/AIModelsFinder.js.html +5 -6
- package/docs/package.json +1 -1
- package/docs/script/search_index.js +3 -3
- package/docs/source.html +225 -225
- package/package.json +1 -1
- package/src/AIModels/AIModelsFinder.js +5 -6
- package/dist/opengate-api-bower-12.9.3.js.map +0 -1
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
<p>
|
|
374
374
|
|
|
375
375
|
|
|
376
|
-
<span data-ice="name"><span><a href="class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html#instance-method-
|
|
376
|
+
<span data-ice="name"><span><a href="class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html#instance-method-downloadByOrganizationAndIdentifier">downloadByOrganizationAndIdentifier</a></span></span><span data-ice="signature">(organization: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span>, identifier: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span></span>
|
|
377
377
|
</p>
|
|
378
378
|
</div>
|
|
379
379
|
<div>
|
|
@@ -519,18 +519,18 @@
|
|
|
519
519
|
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
|
|
520
520
|
|
|
521
521
|
<div class="detail" data-ice="detail">
|
|
522
|
-
<h3 data-ice="anchor" id="instance-method-
|
|
522
|
+
<h3 data-ice="anchor" id="instance-method-downloadByOrganizationAndIdentifier">
|
|
523
523
|
<span class="access" data-ice="access">public</span>
|
|
524
524
|
|
|
525
525
|
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
|
|
529
|
-
<span data-ice="name">
|
|
529
|
+
<span data-ice="name">downloadByOrganizationAndIdentifier</span><span data-ice="signature">(organization: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span>, identifier: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span></span>
|
|
530
530
|
<span class="right-info">
|
|
531
531
|
|
|
532
532
|
|
|
533
|
-
<span data-ice="source"><span><a href="file/src/AIModels/AIModelsFinder.js.html#
|
|
533
|
+
<span data-ice="source"><span><a href="file/src/AIModels/AIModelsFinder.js.html#lineNumber51">source</a></span></span>
|
|
534
534
|
</span>
|
|
535
535
|
</h3>
|
|
536
536
|
|
|
@@ -564,13 +564,6 @@
|
|
|
564
564
|
<td data-ice="description"><p>transformer identifier.</p>
|
|
565
565
|
</td>
|
|
566
566
|
</tr>
|
|
567
|
-
<tr data-ice="property" data-depth="0">
|
|
568
|
-
<td data-ice="name" data-depth="0">filename</td>
|
|
569
|
-
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span></td>
|
|
570
|
-
<td data-ice="appendix"></td>
|
|
571
|
-
<td data-ice="description"><p>name of transformer file.</p>
|
|
572
|
-
</td>
|
|
573
|
-
</tr>
|
|
574
567
|
</tbody>
|
|
575
568
|
</table>
|
|
576
569
|
</div>
|
package/docs/dump.json
CHANGED
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"__docId__": 17,
|
|
430
430
|
"kind": "file",
|
|
431
431
|
"name": "src/AIModels/AIModelsFinder.js",
|
|
432
|
-
"content": "'use strict';\r\n\r\nimport GenericFinder from '../GenericFinder';\r\n\r\n/**\r\n * This class allow make get request to aiModel resource into Opengate North API.\r\n */\r\nexport default class AIModelsFinder extends GenericFinder {\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} ogapi - Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, 'ai', 'list', 'AIModel not found', 'north');\r\n }\r\n\r\n /**\r\n * Download a complete list of aiModels by its organization. This execute a GET http method\r\n * @test\r\n * ogapi.newAIModelFinder().findByOrganization('orgname').then().catch();\r\n * @param {string} organization - aiModel organization .\r\n * @return {Promise} \r\n */\r\n findByOrganization(organization) {\r\n this._organization = organization;\r\n return this._execute();\r\n }\r\n\r\n /**\r\n * Gets a specific ai model by its organization and id. This execute a GET http method\r\n * @test\r\n * ogapi.newAIModelFinder().findByOrganizationAndIdentifier('orgname', xxx-xx-xxx-xxx').then().catch();\r\n * @param {string} organization - transformer organization .\r\n * @param {string} identifier - transformer identifier.\r\n * @return {Promise} \r\n */\r\n findByOrganizationAndIdentifier(organization, identifier) {\r\n this._organization = organization;\r\n this._identifier = identifier;\r\n return this._execute();\r\n }\r\n\r\n
|
|
432
|
+
"content": "'use strict';\r\n\r\nimport GenericFinder from '../GenericFinder';\r\n\r\n/**\r\n * This class allow make get request to aiModel resource into Opengate North API.\r\n */\r\nexport default class AIModelsFinder extends GenericFinder {\r\n\r\n /** \r\n * @param {InternalOpenGateAPI} ogapi - Reference to the API object.\r\n */\r\n constructor(ogapi) {\r\n super(ogapi, 'ai', 'list', 'AIModel not found', 'north');\r\n }\r\n\r\n /**\r\n * Download a complete list of aiModels by its organization. This execute a GET http method\r\n * @test\r\n * ogapi.newAIModelFinder().findByOrganization('orgname').then().catch();\r\n * @param {string} organization - aiModel organization .\r\n * @return {Promise} \r\n */\r\n findByOrganization(organization) {\r\n this._organization = organization;\r\n return this._execute();\r\n }\r\n\r\n /**\r\n * Gets a specific ai model by its organization and id. This execute a GET http method\r\n * @test\r\n * ogapi.newAIModelFinder().findByOrganizationAndIdentifier('orgname', xxx-xx-xxx-xxx').then().catch();\r\n * @param {string} organization - transformer organization .\r\n * @param {string} identifier - transformer identifier.\r\n * @return {Promise} \r\n */\r\n findByOrganizationAndIdentifier(organization, identifier) {\r\n this._organization = organization;\r\n this._identifier = identifier;\r\n return this._execute();\r\n }\r\n\r\n /**\r\n * Download a specific ai model by its organization and id. This execute a GET http method\r\n * @test\r\n * ogapi.newAIModelFinder().downloadByOrganizationAndIdentifier('orgname', xxx-xx-xxx-xxx').then().catch();\r\n * @param {string} organization - transformer organization .\r\n * @param {string} identifier - transformer identifier.\r\n * @return {Promise} \r\n */\r\n downloadByOrganizationAndIdentifier(organization, identifier) {\r\n this._organization = organization;\r\n this._identifier = identifier;\r\n this._filename = true\r\n return this._download();\r\n }\r\n\r\n /**\r\n * @return {String} This returns a string with the URL of the request.\r\n * @private\r\n */\r\n _composeUrl() {\r\n return this._baseUrl + \"/\" + this._organization + \"/models\" +(this._identifier?'/'+ this._identifier + (this._filename?'/file':''):'');\r\n }\r\n}",
|
|
433
433
|
"static": true,
|
|
434
434
|
"longname": "src/AIModels/AIModelsFinder.js",
|
|
435
435
|
"access": null,
|
|
@@ -639,19 +639,19 @@
|
|
|
639
639
|
{
|
|
640
640
|
"__docId__": 25,
|
|
641
641
|
"kind": "method",
|
|
642
|
-
"name": "
|
|
642
|
+
"name": "downloadByOrganizationAndIdentifier",
|
|
643
643
|
"memberof": "src/AIModels/AIModelsFinder.js~AIModelsFinder",
|
|
644
644
|
"generator": false,
|
|
645
645
|
"async": false,
|
|
646
646
|
"static": false,
|
|
647
|
-
"longname": "src/AIModels/AIModelsFinder.js~AIModelsFinder#
|
|
647
|
+
"longname": "src/AIModels/AIModelsFinder.js~AIModelsFinder#downloadByOrganizationAndIdentifier",
|
|
648
648
|
"access": null,
|
|
649
649
|
"description": "Download a specific ai model by its organization and id. This execute a GET http method",
|
|
650
|
-
"lineNumber":
|
|
650
|
+
"lineNumber": 51,
|
|
651
651
|
"unknown": [
|
|
652
652
|
{
|
|
653
653
|
"tagName": "@test",
|
|
654
|
-
"tagValue": " ogapi.newAIModelFinder().
|
|
654
|
+
"tagValue": " ogapi.newAIModelFinder().downloadByOrganizationAndIdentifier('orgname', xxx-xx-xxx-xxx').then().catch();"
|
|
655
655
|
}
|
|
656
656
|
],
|
|
657
657
|
"params": [
|
|
@@ -674,16 +674,6 @@
|
|
|
674
674
|
"optional": false,
|
|
675
675
|
"name": "identifier",
|
|
676
676
|
"description": "transformer identifier."
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"nullable": null,
|
|
680
|
-
"types": [
|
|
681
|
-
"string"
|
|
682
|
-
],
|
|
683
|
-
"spread": false,
|
|
684
|
-
"optional": false,
|
|
685
|
-
"name": "filename",
|
|
686
|
-
"description": "name of transformer file."
|
|
687
677
|
}
|
|
688
678
|
],
|
|
689
679
|
"return": {
|
|
@@ -704,7 +694,7 @@
|
|
|
704
694
|
"longname": "src/AIModels/AIModelsFinder.js~AIModelsFinder#_organization",
|
|
705
695
|
"access": null,
|
|
706
696
|
"description": null,
|
|
707
|
-
"lineNumber":
|
|
697
|
+
"lineNumber": 52,
|
|
708
698
|
"undocument": true,
|
|
709
699
|
"unknown": [
|
|
710
700
|
{
|
|
@@ -727,7 +717,7 @@
|
|
|
727
717
|
"longname": "src/AIModels/AIModelsFinder.js~AIModelsFinder#_identifier",
|
|
728
718
|
"access": null,
|
|
729
719
|
"description": null,
|
|
730
|
-
"lineNumber":
|
|
720
|
+
"lineNumber": 53,
|
|
731
721
|
"undocument": true,
|
|
732
722
|
"unknown": [
|
|
733
723
|
{
|
|
@@ -750,7 +740,7 @@
|
|
|
750
740
|
"longname": "src/AIModels/AIModelsFinder.js~AIModelsFinder#_filename",
|
|
751
741
|
"access": null,
|
|
752
742
|
"description": null,
|
|
753
|
-
"lineNumber":
|
|
743
|
+
"lineNumber": 54,
|
|
754
744
|
"undocument": true,
|
|
755
745
|
"unknown": [
|
|
756
746
|
{
|
|
@@ -760,7 +750,7 @@
|
|
|
760
750
|
],
|
|
761
751
|
"type": {
|
|
762
752
|
"types": [
|
|
763
|
-
"
|
|
753
|
+
"boolean"
|
|
764
754
|
]
|
|
765
755
|
}
|
|
766
756
|
},
|
|
@@ -775,7 +765,7 @@
|
|
|
775
765
|
"longname": "src/AIModels/AIModelsFinder.js~AIModelsFinder#_composeUrl",
|
|
776
766
|
"access": "private",
|
|
777
767
|
"description": "",
|
|
778
|
-
"lineNumber":
|
|
768
|
+
"lineNumber": 62,
|
|
779
769
|
"params": [],
|
|
780
770
|
"return": {
|
|
781
771
|
"nullable": null,
|
|
@@ -322,19 +322,18 @@ export default class AIModelsFinder extends GenericFinder {
|
|
|
322
322
|
return this._execute();
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
/**
|
|
326
326
|
* Download a specific ai model by its organization and id. This execute a GET http method
|
|
327
327
|
* @test
|
|
328
|
-
* ogapi.newAIModelFinder().
|
|
328
|
+
* ogapi.newAIModelFinder().downloadByOrganizationAndIdentifier('orgname', xxx-xx-xxx-xxx').then().catch();
|
|
329
329
|
* @param {string} organization - transformer organization .
|
|
330
330
|
* @param {string} identifier - transformer identifier.
|
|
331
|
-
* @param {string} filename - name of transformer file.
|
|
332
331
|
* @return {Promise}
|
|
333
332
|
*/
|
|
334
|
-
|
|
333
|
+
downloadByOrganizationAndIdentifier(organization, identifier) {
|
|
335
334
|
this._organization = organization;
|
|
336
335
|
this._identifier = identifier;
|
|
337
|
-
this._filename =
|
|
336
|
+
this._filename = true
|
|
338
337
|
return this._download();
|
|
339
338
|
}
|
|
340
339
|
|
|
@@ -343,7 +342,7 @@ export default class AIModelsFinder extends GenericFinder {
|
|
|
343
342
|
* @private
|
|
344
343
|
*/
|
|
345
344
|
_composeUrl() {
|
|
346
|
-
return this._baseUrl + "/" + this._organization + "/models" +(this._identifier?'/'+ this._identifier + (this._filename?&apos
|
|
345
|
+
return this._baseUrl + "/" + this._organization + "/models" +(this._identifier?'/'+ this._identifier + (this._filename?'/file':''):'');
|
|
347
346
|
}
|
|
348
347
|
}</code></pre>
|
|
349
348
|
|
package/docs/package.json
CHANGED
|
@@ -3246,9 +3246,9 @@ window.esdocSearchIndex = [
|
|
|
3246
3246
|
"method"
|
|
3247
3247
|
],
|
|
3248
3248
|
[
|
|
3249
|
-
"src/aimodels/aimodelsfinder.js~aimodelsfinder#
|
|
3250
|
-
"class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html#instance-method-
|
|
3251
|
-
"src/AIModels/AIModelsFinder.js~AIModelsFinder#
|
|
3249
|
+
"src/aimodels/aimodelsfinder.js~aimodelsfinder#downloadbyorganizationandidentifier",
|
|
3250
|
+
"class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html#instance-method-downloadByOrganizationAndIdentifier",
|
|
3251
|
+
"src/AIModels/AIModelsFinder.js~AIModelsFinder#downloadByOrganizationAndIdentifier",
|
|
3252
3252
|
"method"
|
|
3253
3253
|
],
|
|
3254
3254
|
[
|