@yomotech/view-toolkit 0.0.78 → 0.0.80
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
|
@@ -97,28 +97,22 @@ declare class UtilityService {
|
|
|
97
97
|
|
|
98
98
|
declare class Couchdb {
|
|
99
99
|
private utilityService;
|
|
100
|
-
private
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
constructor(utilityService: UtilityService, platform: Platform);
|
|
104
|
-
getTenantDatabases(tenantKey: string): Promise<any[]>;
|
|
105
|
-
getFileContentFromCouchDb(couchDbName: string, filePath: string): Promise<any | null>;
|
|
106
|
-
getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
|
|
107
|
-
private sendGetRequest;
|
|
108
|
-
private sendNativeGetRequest;
|
|
109
|
-
private sendWebGetRequest;
|
|
110
|
-
private normalizeNativeResponseData;
|
|
111
|
-
private extractNativeErrorStatus;
|
|
112
|
-
private extractNativeErrorData;
|
|
113
|
-
private getDocumentPath;
|
|
114
|
-
private getReadHeaders;
|
|
115
|
-
private buildTenantHeaders;
|
|
100
|
+
private readonly couchDbBaseUrl;
|
|
101
|
+
constructor(utilityService: UtilityService);
|
|
102
|
+
getTenantDatabases(tenantKey: any): Promise<any[]>;
|
|
116
103
|
private parseJsonOrText;
|
|
117
104
|
private stringifyErrorDetails;
|
|
118
|
-
|
|
119
|
-
private isJsonFile;
|
|
105
|
+
getFileContentFromCouchDb(couchDbName: string, filePath: string): Promise<any | null>;
|
|
120
106
|
private isBinaryMediaFile;
|
|
121
107
|
private getMimeType;
|
|
108
|
+
private getImageMimeType;
|
|
109
|
+
private fromBase64;
|
|
110
|
+
private isJsonFile;
|
|
111
|
+
private getDocumentUrl;
|
|
112
|
+
private getDbUrl;
|
|
113
|
+
private getReadHeaders;
|
|
114
|
+
private buildTenantHeaders;
|
|
115
|
+
getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
|
|
122
116
|
static ɵfac: i0.ɵɵFactoryDeclaration<Couchdb, never>;
|
|
123
117
|
static ɵprov: i0.ɵɵInjectableDeclaration<Couchdb>;
|
|
124
118
|
}
|