@momo-cloud/gami-sdk 0.0.43 → 0.0.45
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.public.d.ts +5 -4
- package/dist/index.public.js +1045 -1055
- package/package.json +1 -1
package/dist/index.public.d.ts
CHANGED
|
@@ -130,11 +130,12 @@ declare const GamiSDK: {
|
|
|
130
130
|
fetchBinary: ({ url }: {
|
|
131
131
|
url: string;
|
|
132
132
|
}) => Promise<unknown>;
|
|
133
|
-
fetchProtobuf: ({ path, method, subDomain, param }: {
|
|
133
|
+
fetchProtobuf: ({ path, method, subDomain, param, body }: {
|
|
134
134
|
path: string;
|
|
135
135
|
method: string;
|
|
136
136
|
subDomain?: string;
|
|
137
137
|
param?: any;
|
|
138
|
+
body?: any;
|
|
138
139
|
}) => Promise<unknown>;
|
|
139
140
|
saveCalendarEvent: ({ title, startDate, endDate, notes, key, alarm, des, toast }: {
|
|
140
141
|
title: string;
|
|
@@ -201,9 +202,9 @@ export { Storage_2 as Storage }
|
|
|
201
202
|
|
|
202
203
|
declare interface StorageAPI {
|
|
203
204
|
cacheJson(key: string, obj: any): void;
|
|
204
|
-
|
|
205
|
-
getJson(key: string): Promise<any>;
|
|
206
|
-
|
|
205
|
+
cacheValue(key: string, val: any): void;
|
|
206
|
+
getJson(key: string, defaultValue?: any): Promise<any>;
|
|
207
|
+
getValue(key: string, defaultValue?: any): Promise<any>;
|
|
207
208
|
getInCache(url: string): string | undefined;
|
|
208
209
|
cacheFile(url: string): Promise<string>;
|
|
209
210
|
}
|