@evergis/api 3.0.186 → 3.0.187
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/LICENSE +20 -20
- package/README.md +21 -21
- package/dist/__generated__/CatalogService.d.ts +25 -3
- package/dist/__generated__/LayersService.d.ts +3 -3
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/TagsService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +313 -268
- package/dist/api.cjs.development.js +55 -28
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +260 -227
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Projects.d.ts +1 -1
- package/dist/services/Statistic.d.ts +2 -2
- package/dist/services/Tables.d.ts +1 -1
- package/package.json +2 -2
|
@@ -36,9 +36,6 @@ function _defineProperties(target, props) {
|
|
|
36
36
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
37
37
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
38
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
40
|
-
writable: false
|
|
41
|
-
});
|
|
42
39
|
return Constructor;
|
|
43
40
|
}
|
|
44
41
|
|
|
@@ -72,9 +69,6 @@ function _inherits(subClass, superClass) {
|
|
|
72
69
|
configurable: true
|
|
73
70
|
}
|
|
74
71
|
});
|
|
75
|
-
Object.defineProperty(subClass, "prototype", {
|
|
76
|
-
writable: false
|
|
77
|
-
});
|
|
78
72
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
79
73
|
}
|
|
80
74
|
|
|
@@ -133,8 +127,6 @@ function _assertThisInitialized(self) {
|
|
|
133
127
|
function _possibleConstructorReturn(self, call) {
|
|
134
128
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
135
129
|
return call;
|
|
136
|
-
} else if (call !== void 0) {
|
|
137
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
138
130
|
}
|
|
139
131
|
|
|
140
132
|
return _assertThisInitialized(self);
|
|
@@ -168,7 +160,7 @@ function _superPropBase(object, property) {
|
|
|
168
160
|
return object;
|
|
169
161
|
}
|
|
170
162
|
|
|
171
|
-
function _get() {
|
|
163
|
+
function _get(target, property, receiver) {
|
|
172
164
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
173
165
|
_get = Reflect.get;
|
|
174
166
|
} else {
|
|
@@ -179,14 +171,14 @@ function _get() {
|
|
|
179
171
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
180
172
|
|
|
181
173
|
if (desc.get) {
|
|
182
|
-
return desc.get.call(
|
|
174
|
+
return desc.get.call(receiver);
|
|
183
175
|
}
|
|
184
176
|
|
|
185
177
|
return desc.value;
|
|
186
178
|
};
|
|
187
179
|
}
|
|
188
180
|
|
|
189
|
-
return _get
|
|
181
|
+
return _get(target, property, receiver || target);
|
|
190
182
|
}
|
|
191
183
|
|
|
192
184
|
let HttpClient = /*#__PURE__*/function () {
|
|
@@ -569,6 +561,22 @@ let CatalogService = /*#__PURE__*/function (_Service) {
|
|
|
569
561
|
function getAll(query) {
|
|
570
562
|
return this.http.get("/resources", query).json();
|
|
571
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* No description
|
|
566
|
+
*
|
|
567
|
+
* @tags Catalog
|
|
568
|
+
* @name PostGetAll
|
|
569
|
+
* @operationId CatalogController_PostGetAll
|
|
570
|
+
* @summary Get all resource with given.
|
|
571
|
+
* @request POST:/resources
|
|
572
|
+
* @response `200` OK
|
|
573
|
+
*/
|
|
574
|
+
|
|
575
|
+
}, {
|
|
576
|
+
key: "postGetAll",
|
|
577
|
+
value: function postGetAll(data) {
|
|
578
|
+
return this.http.post("/resources", data).json();
|
|
579
|
+
}
|
|
572
580
|
/**
|
|
573
581
|
* No description
|
|
574
582
|
*
|
|
@@ -681,6 +689,22 @@ let CatalogService = /*#__PURE__*/function (_Service) {
|
|
|
681
689
|
value: function getPermissions(resourceId) {
|
|
682
690
|
return this.http.get("/resources/" + resourceId + "/permissions").json();
|
|
683
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* No description
|
|
694
|
+
*
|
|
695
|
+
* @tags Catalog
|
|
696
|
+
* @name SetPermissions1
|
|
697
|
+
* @operationId CatalogController_SetPermissions_1
|
|
698
|
+
* @summary Set permissions to the resource.
|
|
699
|
+
* @request PUT:/resources/{resourceId}/permissions
|
|
700
|
+
* @response `200` OK
|
|
701
|
+
*/
|
|
702
|
+
|
|
703
|
+
}, {
|
|
704
|
+
key: "setPermissions1",
|
|
705
|
+
value: function setPermissions1(resourceId, data) {
|
|
706
|
+
return this.http.put("/resources/" + resourceId + "/permissions", data).json();
|
|
707
|
+
}
|
|
684
708
|
/**
|
|
685
709
|
* No description
|
|
686
710
|
*
|
|
@@ -688,14 +712,14 @@ let CatalogService = /*#__PURE__*/function (_Service) {
|
|
|
688
712
|
* @name SetPermissions
|
|
689
713
|
* @operationId CatalogController_SetPermissions
|
|
690
714
|
* @summary Set permissions to the resource.
|
|
691
|
-
* @request PUT:/resources/
|
|
715
|
+
* @request PUT:/resources/permissions
|
|
692
716
|
* @response `200` OK
|
|
693
717
|
*/
|
|
694
718
|
|
|
695
719
|
}, {
|
|
696
720
|
key: "setPermissions",
|
|
697
|
-
value: function setPermissions(
|
|
698
|
-
return this.http.put("/resources/
|
|
721
|
+
value: function setPermissions(data) {
|
|
722
|
+
return this.http.put("/resources/permissions", data).json();
|
|
699
723
|
}
|
|
700
724
|
/**
|
|
701
725
|
* No description
|
|
@@ -4171,7 +4195,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
4171
4195
|
}, {
|
|
4172
4196
|
key: "getDataLayout",
|
|
4173
4197
|
value: function getDataLayout(name) {
|
|
4174
|
-
return this.http.get("/layers/" + name + "/style/sprite.json").
|
|
4198
|
+
return this.http.get("/layers/" + name + "/style/sprite.json").then(() => {});
|
|
4175
4199
|
}
|
|
4176
4200
|
/**
|
|
4177
4201
|
* No description
|
|
@@ -4913,8 +4937,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
4913
4937
|
|| event.code === 4002
|
|
4914
4938
|
/* InvalidSession */
|
|
4915
4939
|
) {
|
|
4916
|
-
|
|
4917
|
-
|
|
4940
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
4941
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
4918
4942
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
4919
4943
|
_this.reconnectTries++;
|
|
4920
4944
|
|
|
@@ -5746,12 +5770,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
5746
5770
|
}, {
|
|
5747
5771
|
key: "getDependentNames",
|
|
5748
5772
|
value: function getDependentNames(deps, depType) {
|
|
5749
|
-
return deps.filter(_ref => {
|
|
5773
|
+
return deps.filter((_ref) => {
|
|
5750
5774
|
let {
|
|
5751
5775
|
type
|
|
5752
5776
|
} = _ref;
|
|
5753
5777
|
return type === depType;
|
|
5754
|
-
}).map(_ref2 => {
|
|
5778
|
+
}).map((_ref2) => {
|
|
5755
5779
|
let {
|
|
5756
5780
|
name
|
|
5757
5781
|
} = _ref2;
|
|
@@ -6207,7 +6231,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
6207
6231
|
const taskProgress = await this.getTaskProgress(id);
|
|
6208
6232
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
6209
6233
|
|
|
6210
|
-
const taskResultCallback = async _ref => {
|
|
6234
|
+
const taskResultCallback = async (_ref) => {
|
|
6211
6235
|
let {
|
|
6212
6236
|
data
|
|
6213
6237
|
} = _ref;
|
|
@@ -7918,6 +7942,15 @@ function isFeatureLayer(layer) {
|
|
|
7918
7942
|
AttributeType["Json"] = "Json";
|
|
7919
7943
|
})(exports.AttributeType || (exports.AttributeType = {}));
|
|
7920
7944
|
|
|
7945
|
+
(function (CatalogResourceType) {
|
|
7946
|
+
CatalogResourceType["None"] = "None";
|
|
7947
|
+
CatalogResourceType["Map"] = "Map";
|
|
7948
|
+
CatalogResourceType["Layer"] = "Layer";
|
|
7949
|
+
CatalogResourceType["Table"] = "Table";
|
|
7950
|
+
CatalogResourceType["File"] = "File";
|
|
7951
|
+
CatalogResourceType["TaskPrototype"] = "TaskPrototype";
|
|
7952
|
+
})(exports.CatalogResourceType || (exports.CatalogResourceType = {}));
|
|
7953
|
+
|
|
7921
7954
|
(function (ClassificationType) {
|
|
7922
7955
|
ClassificationType["None"] = "none";
|
|
7923
7956
|
ClassificationType["NaturalBreaks"] = "naturalBreaks";
|
|
@@ -8070,12 +8103,6 @@ function isFeatureLayer(layer) {
|
|
|
8070
8103
|
LineJoinType["Round"] = "Round";
|
|
8071
8104
|
})(exports.LineJoinType || (exports.LineJoinType = {}));
|
|
8072
8105
|
|
|
8073
|
-
(function (ObjectTypeFilter) {
|
|
8074
|
-
ObjectTypeFilter["All"] = "All";
|
|
8075
|
-
ObjectTypeFilter["Directory"] = "Directory";
|
|
8076
|
-
ObjectTypeFilter["File"] = "File";
|
|
8077
|
-
})(exports.ObjectTypeFilter || (exports.ObjectTypeFilter = {}));
|
|
8078
|
-
|
|
8079
8106
|
(function (Operation) {
|
|
8080
8107
|
Operation["Unknown"] = "Unknown";
|
|
8081
8108
|
Operation["Union"] = "union";
|
|
@@ -8086,8 +8113,8 @@ function isFeatureLayer(layer) {
|
|
|
8086
8113
|
|
|
8087
8114
|
(function (OwnerFilter) {
|
|
8088
8115
|
OwnerFilter["My"] = "My";
|
|
8089
|
-
OwnerFilter["
|
|
8090
|
-
OwnerFilter["
|
|
8116
|
+
OwnerFilter["Shared"] = "Shared";
|
|
8117
|
+
OwnerFilter["Public"] = "Public";
|
|
8091
8118
|
})(exports.OwnerFilter || (exports.OwnerFilter = {}));
|
|
8092
8119
|
|
|
8093
8120
|
(function (PbfSchema) {
|