opengate-js 14.6.0 → 14.7.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/bower.json +1 -1
- package/dist/{opengate-api-bower-14.6.0.js → opengate-api-bower-14.7.0.js} +211 -41
- package/dist/opengate-api-bower-14.7.0.js.map +1 -0
- package/dist/{opengate-api-bower-14.6.0.min.js → opengate-api-bower-14.7.0.min.js} +2 -2
- package/dist/opengate-api-bower-14.7.0.min.js.map +1 -0
- package/dist/src/datasets/DatasetFinder.js +122 -37
- package/dist/src/datasets/DatasetFinder.js.map +1 -1
- package/dist/src/timeseries/TimeseriesFinder.js +85 -0
- package/dist/src/timeseries/TimeseriesFinder.js.map +1 -1
- package/docs/ast/source/datasets/DatasetFinder.js.json +16438 -1121
- package/docs/ast/source/timeseries/TimeseriesFinder.js.json +17813 -2496
- package/docs/class/src/datasets/DatasetFinder.js~DatasetFinder.html +113 -5
- package/docs/class/src/timeseries/TimeseriesFinder.js~TimeseriesFinder.html +113 -5
- package/docs/coverage.json +7 -7
- package/docs/dump.json +2371 -2273
- package/docs/file/src/datasets/DatasetFinder.js.html +81 -0
- package/docs/file/src/timeseries/TimeseriesFinder.js.html +104 -22
- package/docs/package.json +1 -1
- package/docs/script/search_index.js +12 -0
- package/docs/source.html +240 -240
- package/features/features/provision/datasets/find_dataset.feature +12 -3
- package/features/features/provision/timeseries/find_timeseries.feature +10 -1
- package/features/support/find_model.js +3 -1
- package/package.json +1 -1
- package/src/datasets/DatasetFinder.js +81 -0
- package/src/timeseries/TimeseriesFinder.js +104 -22
- package/dist/opengate-api-bower-14.6.0.js.map +0 -1
- package/dist/opengate-api-bower-14.6.0.min.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
|
|
4
|
+
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
|
|
@@ -14,59 +14,144 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
14
14
|
|
|
15
15
|
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
16
16
|
|
|
17
|
+
var _q = require('q');
|
|
18
|
+
|
|
19
|
+
var _q2 = _interopRequireDefault(_q);
|
|
20
|
+
|
|
17
21
|
var _GenericFinder2 = require('../GenericFinder');
|
|
18
22
|
|
|
19
23
|
var _GenericFinder3 = _interopRequireDefault(_GenericFinder2);
|
|
20
24
|
|
|
25
|
+
var _httpStatusCodes = require('http-status-codes');
|
|
26
|
+
|
|
27
|
+
var _httpStatusCodes2 = _interopRequireDefault(_httpStatusCodes);
|
|
28
|
+
|
|
21
29
|
/**
|
|
22
30
|
* This class allow make get request to DatasetFinder resource into Opengate North API.
|
|
23
31
|
*/
|
|
24
32
|
|
|
25
33
|
var DatasetFinder = (function (_GenericFinder) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Performs a get that returns list of datasets
|
|
40
|
-
* @test
|
|
41
|
-
* ogapi.newDatasetFinder().findByOrganization(organization);
|
|
42
|
-
* @param {string} organization - organization
|
|
43
|
-
* @return {Promise}
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
_createClass(DatasetFinder, [{
|
|
47
|
-
key: 'findByOrganization',
|
|
48
|
-
value: function findByOrganization(organization) {
|
|
49
|
-
this._withId(organization);
|
|
50
|
-
return this._execute();
|
|
34
|
+
_inherits(DatasetFinder, _GenericFinder);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {InternalOpenGateAPI} ogapi - Reference to the API object.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
function DatasetFinder(ogapi) {
|
|
41
|
+
_classCallCheck(this, DatasetFinder);
|
|
42
|
+
|
|
43
|
+
_get(Object.getPrototypeOf(DatasetFinder.prototype), 'constructor', this).call(this, ogapi, 'datasets/provision/organizations', 'datasets');
|
|
51
44
|
}
|
|
52
45
|
|
|
53
46
|
/**
|
|
54
|
-
* Performs a get that returns
|
|
47
|
+
* Performs a get that returns list of datasets
|
|
55
48
|
* @test
|
|
56
|
-
* ogapi.newDatasetFinder().
|
|
49
|
+
* ogapi.newDatasetFinder().findByOrganization(organization);
|
|
57
50
|
* @param {string} organization - organization
|
|
58
|
-
* @param {string} datasetId - dataset identifier
|
|
59
51
|
* @return {Promise}
|
|
60
52
|
*/
|
|
61
|
-
}, {
|
|
62
|
-
key: 'findByOrganizationAndDatasetId',
|
|
63
|
-
value: function findByOrganizationAndDatasetId(organization, datasetId) {
|
|
64
|
-
this._withId(organization + '/' + datasetId);
|
|
65
|
-
return this._execute();
|
|
66
|
-
}
|
|
67
|
-
}]);
|
|
68
53
|
|
|
69
|
-
|
|
54
|
+
_createClass(DatasetFinder, [{
|
|
55
|
+
key: 'findByOrganization',
|
|
56
|
+
value: function findByOrganization(organization) {
|
|
57
|
+
this._withId(organization);
|
|
58
|
+
return this._execute();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Performs a get that returns a definition of dataset
|
|
63
|
+
* @test
|
|
64
|
+
* ogapi.newDatasetFinder().findByOrganizationAndDatasetId(organization, datasetId);
|
|
65
|
+
* @param {string} organization - organization
|
|
66
|
+
* @param {string} datasetId - dataset identifier
|
|
67
|
+
* @return {Promise}
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: 'findByOrganizationAndDatasetId',
|
|
71
|
+
value: function findByOrganizationAndDatasetId(organization, datasetId) {
|
|
72
|
+
this._withId(organization + '/' + datasetId);
|
|
73
|
+
return this._execute();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Performs a get that returns a definition of timeserie
|
|
78
|
+
* @test
|
|
79
|
+
* ogapi.newDatasetFinder().findByOrganizationAndName(organization, name);
|
|
80
|
+
* @param {string} organization - organization
|
|
81
|
+
* @param {string} name - timeserie name
|
|
82
|
+
* @return {Promise}
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: 'findByOrganizationAndName',
|
|
86
|
+
value: function findByOrganizationAndName(organization, name) {
|
|
87
|
+
var defered = _q2['default'].defer();
|
|
88
|
+
var promise = defered.promise;
|
|
89
|
+
|
|
90
|
+
this._withId(organization);
|
|
91
|
+
var _this = this;
|
|
92
|
+
var _error_not_found = this._error_not_found;
|
|
93
|
+
var _entity = this._entity;
|
|
94
|
+
this._execute().then(function (result) {
|
|
95
|
+
if (result.data.length > 0) {
|
|
96
|
+
var timeserieId;
|
|
97
|
+
result.data.forEach(function (tsData) {
|
|
98
|
+
if (!timeserieId && tsData.name === name) {
|
|
99
|
+
timeserieId = tsData.identifier;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
if (!timeserieId) {
|
|
104
|
+
defered.reject({
|
|
105
|
+
error: _error_not_found,
|
|
106
|
+
statusCode: _httpStatusCodes2['default'].NOT_FOUND
|
|
107
|
+
});
|
|
108
|
+
} else {
|
|
109
|
+
_this._withId(organization + '/' + timeserieId);
|
|
110
|
+
|
|
111
|
+
_this._api.get(_this._composeUrl(), undefined, _this._getExtraHeaders(), _this._getUrlParameters(), false, _this._getServiceBaseURL()).then(function (req) {
|
|
112
|
+
if (req.statusCode === 204) {
|
|
113
|
+
defered.reject({
|
|
114
|
+
error: _error_not_found,
|
|
115
|
+
statusCode: _httpStatusCodes2['default'].NOT_FOUND
|
|
116
|
+
});
|
|
117
|
+
} else {
|
|
118
|
+
if (req.body) {
|
|
119
|
+
var data = req.body[_entity] && req.body.provision ? req.body : req.body[_entity];
|
|
120
|
+
defered.resolve({
|
|
121
|
+
data: data ? data : req.body,
|
|
122
|
+
statusCode: req.statusCode
|
|
123
|
+
});
|
|
124
|
+
} else {
|
|
125
|
+
defered.resolve({
|
|
126
|
+
data: req.text,
|
|
127
|
+
statusCode: req.statusCode
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
})['catch'](function (error) {
|
|
132
|
+
// BUG RELACIONADO (http://cm.amplia.es/jira/browse/OGODM-3250)
|
|
133
|
+
if (error.statusCode === 400) {
|
|
134
|
+
error.statusCode = _httpStatusCodes2['default'].NOT_FOUND;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
defered.reject(error);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
} else {
|
|
141
|
+
defered.reject({
|
|
142
|
+
error: _error_not_found,
|
|
143
|
+
statusCode: _httpStatusCodes2['default'].NOT_FOUND
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
})['catch'](function (error) {
|
|
147
|
+
defered.reject(error);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
return promise;
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
|
|
154
|
+
return DatasetFinder;
|
|
70
155
|
})(_GenericFinder3['default']);
|
|
71
156
|
|
|
72
157
|
exports['default'] = DatasetFinder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["src/datasets/DatasetFinder.js"],"names":[],"mappings":"A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GAAG,CAAC,UAAU;qCAC7B,CAAC,CAAC;iCACN;6BACJ;yBACJ,CAAC,SACI,CAAC,UAAC,KAAK,EAAK;;AAEd,gCAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE;AAC1B,qCAAK,CAAC,UAAU,GAAG,6BAAW,SAAS,CAAC;6BAC3C;;AAED,mCAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;yBACzB,CAAC,CAAC;qBACV;iBACJ,MAAM;AACH,2BAAO,CAAC,MAAM,CAAC;AACX,6BAAK,EAAE,gBAAgB;AACvB,kCAAU,EAAE,6BAAW,SAAS;qBACnC,CAAC,CAAC;iBACN;aACJ,CAAC,SACQ,CAAC,UAAC,KAAK,EAAK;AACd,uBAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aACzB,CAAC,CAAC;;AAGP,mBAAO,OAAO,CAAC;SAClB;;;WA/GgB,aAAa;;;qBAAb,aAAa","file":"DatasetFinder.js","sourceRoot":"../../.."}
|
|
@@ -14,10 +14,18 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
14
14
|
|
|
15
15
|
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
16
16
|
|
|
17
|
+
var _q = require('q');
|
|
18
|
+
|
|
19
|
+
var _q2 = _interopRequireDefault(_q);
|
|
20
|
+
|
|
17
21
|
var _GenericFinder2 = require('../GenericFinder');
|
|
18
22
|
|
|
19
23
|
var _GenericFinder3 = _interopRequireDefault(_GenericFinder2);
|
|
20
24
|
|
|
25
|
+
var _httpStatusCodes = require('http-status-codes');
|
|
26
|
+
|
|
27
|
+
var _httpStatusCodes2 = _interopRequireDefault(_httpStatusCodes);
|
|
28
|
+
|
|
21
29
|
/**
|
|
22
30
|
* This class allow make get request to TimeseriesFinder resource into Opengate North API.
|
|
23
31
|
*/
|
|
@@ -89,6 +97,83 @@ var TimeseriesFinder = (function (_GenericFinder) {
|
|
|
89
97
|
this._withId(organization + '/' + timeserieId);
|
|
90
98
|
return this._execute();
|
|
91
99
|
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Performs a get that returns a definition of timeserie
|
|
103
|
+
* @test
|
|
104
|
+
* ogapi.newTimeserieFinder().findByOrganizationAndName(organization, name);
|
|
105
|
+
* @param {string} organization - organization
|
|
106
|
+
* @param {string} name - timeserie name
|
|
107
|
+
* @return {Promise}
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: 'findByOrganizationAndName',
|
|
111
|
+
value: function findByOrganizationAndName(organization, name) {
|
|
112
|
+
var defered = _q2['default'].defer();
|
|
113
|
+
var promise = defered.promise;
|
|
114
|
+
|
|
115
|
+
this._withId(organization);
|
|
116
|
+
var _this = this;
|
|
117
|
+
var _error_not_found = this._error_not_found;
|
|
118
|
+
var _entity = this._entity;
|
|
119
|
+
this._execute().then(function (result) {
|
|
120
|
+
if (result.data.length > 0) {
|
|
121
|
+
var timeserieId;
|
|
122
|
+
result.data.forEach(function (tsData) {
|
|
123
|
+
if (!timeserieId && tsData.name === name) {
|
|
124
|
+
timeserieId = tsData.identifier;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
if (!timeserieId) {
|
|
129
|
+
defered.reject({
|
|
130
|
+
error: _error_not_found,
|
|
131
|
+
statusCode: _httpStatusCodes2['default'].NOT_FOUND
|
|
132
|
+
});
|
|
133
|
+
} else {
|
|
134
|
+
_this._withId(organization + '/' + timeserieId);
|
|
135
|
+
|
|
136
|
+
_this._api.get(_this._composeUrl(), undefined, _this._getExtraHeaders(), _this._getUrlParameters(), false, _this._getServiceBaseURL()).then(function (req) {
|
|
137
|
+
if (req.statusCode === 204) {
|
|
138
|
+
defered.reject({
|
|
139
|
+
error: _error_not_found,
|
|
140
|
+
statusCode: _httpStatusCodes2['default'].NOT_FOUND
|
|
141
|
+
});
|
|
142
|
+
} else {
|
|
143
|
+
if (req.body) {
|
|
144
|
+
var data = req.body[_entity] && req.body.provision ? req.body : req.body[_entity];
|
|
145
|
+
defered.resolve({
|
|
146
|
+
data: data ? data : req.body,
|
|
147
|
+
statusCode: req.statusCode
|
|
148
|
+
});
|
|
149
|
+
} else {
|
|
150
|
+
defered.resolve({
|
|
151
|
+
data: req.text,
|
|
152
|
+
statusCode: req.statusCode
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
})['catch'](function (error) {
|
|
157
|
+
// BUG RELACIONADO (http://cm.amplia.es/jira/browse/OGODM-3250)
|
|
158
|
+
if (error.statusCode === 400) {
|
|
159
|
+
error.statusCode = _httpStatusCodes2['default'].NOT_FOUND;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
defered.reject(error);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
defered.reject({
|
|
167
|
+
error: _error_not_found,
|
|
168
|
+
statusCode: _httpStatusCodes2['default'].NOT_FOUND
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
})['catch'](function (error) {
|
|
172
|
+
defered.reject(error);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
return promise;
|
|
176
|
+
}
|
|
92
177
|
}]);
|
|
93
178
|
|
|
94
179
|
return TimeseriesFinder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["src/timeseries/TimeseriesFinder.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["src/timeseries/TimeseriesFinder.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;iBAEC,GAAG;;;;8BACS,kBAAkB;;;;+BACrB,mBAAmB;;;;;;;;IAMrB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