@yomotech/view-toolkit 0.0.51 → 0.0.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yomotech/view-toolkit",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^21.1.2",
6
6
  "@angular/cdk": "^21.1.2",
@@ -98,22 +98,30 @@ declare class UtilityService {
98
98
 
99
99
  declare class Couchdb {
100
100
  private utilityService;
101
- private readonly couchDbBaseUrl;
101
+ private readonly remoteCouchDbBaseUrl;
102
+ private readonly webProxyBaseUrl;
102
103
  constructor(utilityService: UtilityService);
103
- getTenantDatabases(tenantKey: any): Promise<any[]>;
104
- private parseJsonOrText;
105
- private stringifyErrorDetails;
104
+ /**
105
+ * Angular web development:
106
+ * /couchdb-api -> Angular proxy -> https://couchdb.yomotech.de
107
+ *
108
+ * Capacitor Android/iOS:
109
+ * Direct native request to https://couchdb.yomotech.de
110
+ */
111
+ private get couchDbBaseUrl();
112
+ getTenantDatabases(tenantKey: string): Promise<any[]>;
106
113
  getFileContentFromCouchDb(couchDbName: string, filePath: string): Promise<any | null>;
107
- private isBinaryMediaFile;
108
- private getMimeType;
109
- private getImageMimeType;
110
- private fromBase64;
111
- private isJsonFile;
114
+ getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
112
115
  private getDocumentUrl;
113
116
  private getDbUrl;
114
117
  private getReadHeaders;
115
118
  private buildTenantHeaders;
116
- getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
119
+ private parseJsonOrText;
120
+ private stringifyErrorDetails;
121
+ private fromBase64;
122
+ private isJsonFile;
123
+ private isBinaryMediaFile;
124
+ private getMimeType;
117
125
  static ɵfac: i0.ɵɵFactoryDeclaration<Couchdb, never>;
118
126
  static ɵprov: i0.ɵɵInjectableDeclaration<Couchdb>;
119
127
  }