@centia-io/sdk 0.2.4 → 0.2.6

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.
@@ -2520,6 +2520,32 @@
2520
2520
  }
2521
2521
  };
2522
2522
 
2523
+ //#endregion
2524
+ //#region src/provisioning/Maps.ts
2525
+ var Maps = class {
2526
+ constructor(client) {
2527
+ this.client = client;
2528
+ }
2529
+ /** Get the map view configuration (center, zoom, extent) for a schema. */
2530
+ async getMap(schema) {
2531
+ return this.client.request({
2532
+ path: `api/v4/map/schema/${encodeURIComponent(schema)}`,
2533
+ method: "GET"
2534
+ });
2535
+ }
2536
+ /** Set the map view configuration for a schema. Only the provided properties are updated; `null` clears a value. */
2537
+ async patchMap(schema, body) {
2538
+ var _this2 = this;
2539
+ var _res$getHeader;
2540
+ return { location: (_res$getHeader = (await _this2.client.requestFull({
2541
+ path: `api/v4/map/schema/${encodeURIComponent(schema)}`,
2542
+ method: "PATCH",
2543
+ body,
2544
+ expectedStatus: 303
2545
+ })).getHeader("Location")) !== null && _res$getHeader !== void 0 ? _res$getHeader : "" };
2546
+ }
2547
+ };
2548
+
2523
2549
  //#endregion
2524
2550
  //#region src/provisioning/Privileges.ts
2525
2551
  var Privileges = class {
@@ -2823,6 +2849,7 @@
2823
2849
  clients: new ProvisioningClients(http),
2824
2850
  rules: new Rules(http),
2825
2851
  layers: new Layers(http),
2852
+ maps: new Maps(http),
2826
2853
  privileges: new Privileges(http),
2827
2854
  rpcMethods: new RpcMethods(http),
2828
2855
  functions: new Functions(http),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centia-io/sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Centia-io TypeScript SDK",
5
5
  "author": "Martin Høgh",
6
6
  "license": "MIT",