@yomotech/view-toolkit 0.0.51 → 0.0.52
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
|
@@ -98,22 +98,30 @@ declare class UtilityService {
|
|
|
98
98
|
|
|
99
99
|
declare class Couchdb {
|
|
100
100
|
private utilityService;
|
|
101
|
-
private readonly
|
|
101
|
+
private readonly remoteCouchDbBaseUrl;
|
|
102
|
+
private readonly webProxyBaseUrl;
|
|
102
103
|
constructor(utilityService: UtilityService);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|