@singularlogic/coreplatts 0.0.17 → 0.0.18

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/dist/index.d.ts CHANGED
@@ -215,7 +215,7 @@ declare class Client implements IClient$1 {
215
215
  *
216
216
  * But the best pattern is: do not pass token in SPA and let interceptor handle it.
217
217
  */
218
- totalInfo(token?: string): Promise<TotalInfo>;
218
+ totalInfo(): Promise<TotalInfo>;
219
219
  myUser(token?: string): Promise<User>;
220
220
  allOrganizations(token?: string): Promise<Group[]>;
221
221
  myOrganizations(token?: string): Promise<Group[]>;
package/dist/index.js CHANGED
@@ -792,6 +792,17 @@ var FolderConsumer = class extends BaseConsumer {
792
792
  }
793
793
  };
794
794
 
795
+ // src/apis/management/public.consumer.ts
796
+ var _namespace7 = "public";
797
+ var PublicConsumer = class extends BaseConsumer {
798
+ constructor(_httpClient) {
799
+ super(_httpClient, _namespace7);
800
+ }
801
+ totalInfo() {
802
+ return this.getOne("/total", void 0, void 0);
803
+ }
804
+ };
805
+
795
806
  // src/client.ts
796
807
  var Client = class {
797
808
  constructor(managementURL, accountURL) {
@@ -805,6 +816,7 @@ var Client = class {
805
816
  this._groupConsumer = new GroupConsumer(axiosAccount);
806
817
  this._bucketConsumer = new BucketConsumer(axiosManagement);
807
818
  this._folderConsumer = new FolderConsumer(axiosManagement);
819
+ this._publicConsumer = new PublicConsumer(axiosManagement);
808
820
  }
809
821
  /**
810
822
  * Set a token provider (Keycloak-friendly).
@@ -875,7 +887,7 @@ var Client = class {
875
887
  // -----------------------------
876
888
  // Public APIs
877
889
  // -----------------------------
878
- totalInfo(token) {
890
+ totalInfo() {
879
891
  return this._publicConsumer.totalInfo();
880
892
  }
881
893
  // -----------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularlogic/coreplatts",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [