@lazycatcloud/sdk 0.1.18 → 0.1.21
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/localdevice/photo.d.ts +56 -68
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +123 -139
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/package_manager.d.ts +9 -9
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +7 -10
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +27 -0
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +39 -2
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/package.json +1 -1
|
@@ -30,22 +30,26 @@ export interface QueryPhotoHashRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
changedAfter: Date | undefined;
|
|
32
32
|
}
|
|
33
|
-
export interface PhotoHashSet {
|
|
34
|
-
/** hash --> id */
|
|
35
|
-
entry: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export interface PhotoHashSet_EntryEntry {
|
|
40
|
-
key: string;
|
|
41
|
-
value: string;
|
|
42
|
-
}
|
|
43
33
|
export interface QueryPhotoRequest {
|
|
44
34
|
id: string;
|
|
45
35
|
}
|
|
36
|
+
export interface MakeAlbumRequest {
|
|
37
|
+
title: string;
|
|
38
|
+
}
|
|
39
|
+
export interface PutPhotoRequest {
|
|
40
|
+
albumId: string;
|
|
41
|
+
/** 图片路径, 支持dataurl */
|
|
42
|
+
url: string;
|
|
43
|
+
fileName?: string | undefined;
|
|
44
|
+
}
|
|
46
45
|
export interface PutPhotoReply {
|
|
47
|
-
/**
|
|
48
|
-
|
|
46
|
+
/** 是否完成. 若已完成则photo_id字段生效 */
|
|
47
|
+
done: boolean;
|
|
48
|
+
/** 若无total_size表示无法获取文件大小,此时无法计算出准确进度 */
|
|
49
|
+
totalSize?: number | undefined;
|
|
50
|
+
fetchedSize?: number | undefined;
|
|
51
|
+
/** 新添加图片的id, 仅在completed=true后才有意义 */
|
|
52
|
+
photoId?: string | undefined;
|
|
49
53
|
}
|
|
50
54
|
export interface DeletePhotoReply {
|
|
51
55
|
/** 删除失败的图片id */
|
|
@@ -106,12 +110,6 @@ export interface ListAlbumsRequest {
|
|
|
106
110
|
export interface ListAlbumsReply {
|
|
107
111
|
albums: Album[];
|
|
108
112
|
}
|
|
109
|
-
export interface PutPhotoRequest {
|
|
110
|
-
albumId: string;
|
|
111
|
-
/** 图片路径, 支持dataurl */
|
|
112
|
-
url: string;
|
|
113
|
-
fileName?: string | undefined;
|
|
114
|
-
}
|
|
115
113
|
export declare const QueryPhotoHashRequest: {
|
|
116
114
|
encode(message: QueryPhotoHashRequest, writer?: _m0.Writer): _m0.Writer;
|
|
117
115
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPhotoHashRequest;
|
|
@@ -123,36 +121,6 @@ export declare const QueryPhotoHashRequest: {
|
|
|
123
121
|
changedAfter?: Date | undefined;
|
|
124
122
|
} & Record<Exclude<keyof I, "changedAfter">, never>>(object: I): QueryPhotoHashRequest;
|
|
125
123
|
};
|
|
126
|
-
export declare const PhotoHashSet: {
|
|
127
|
-
encode(message: PhotoHashSet, writer?: _m0.Writer): _m0.Writer;
|
|
128
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PhotoHashSet;
|
|
129
|
-
fromJSON(object: any): PhotoHashSet;
|
|
130
|
-
toJSON(message: PhotoHashSet): unknown;
|
|
131
|
-
fromPartial<I extends {
|
|
132
|
-
entry?: {
|
|
133
|
-
[x: string]: string;
|
|
134
|
-
};
|
|
135
|
-
} & {
|
|
136
|
-
entry?: {
|
|
137
|
-
[x: string]: string;
|
|
138
|
-
} & {
|
|
139
|
-
[x: string]: string;
|
|
140
|
-
} & Record<Exclude<keyof I["entry"], string | number>, never>;
|
|
141
|
-
} & Record<Exclude<keyof I, "entry">, never>>(object: I): PhotoHashSet;
|
|
142
|
-
};
|
|
143
|
-
export declare const PhotoHashSet_EntryEntry: {
|
|
144
|
-
encode(message: PhotoHashSet_EntryEntry, writer?: _m0.Writer): _m0.Writer;
|
|
145
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PhotoHashSet_EntryEntry;
|
|
146
|
-
fromJSON(object: any): PhotoHashSet_EntryEntry;
|
|
147
|
-
toJSON(message: PhotoHashSet_EntryEntry): unknown;
|
|
148
|
-
fromPartial<I extends {
|
|
149
|
-
key?: string;
|
|
150
|
-
value?: string;
|
|
151
|
-
} & {
|
|
152
|
-
key?: string;
|
|
153
|
-
value?: string;
|
|
154
|
-
} & Record<Exclude<keyof I, keyof PhotoHashSet_EntryEntry>, never>>(object: I): PhotoHashSet_EntryEntry;
|
|
155
|
-
};
|
|
156
124
|
export declare const QueryPhotoRequest: {
|
|
157
125
|
encode(message: QueryPhotoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
158
126
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPhotoRequest;
|
|
@@ -164,16 +132,48 @@ export declare const QueryPhotoRequest: {
|
|
|
164
132
|
id?: string;
|
|
165
133
|
} & Record<Exclude<keyof I, "id">, never>>(object: I): QueryPhotoRequest;
|
|
166
134
|
};
|
|
135
|
+
export declare const MakeAlbumRequest: {
|
|
136
|
+
encode(message: MakeAlbumRequest, writer?: _m0.Writer): _m0.Writer;
|
|
137
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MakeAlbumRequest;
|
|
138
|
+
fromJSON(object: any): MakeAlbumRequest;
|
|
139
|
+
toJSON(message: MakeAlbumRequest): unknown;
|
|
140
|
+
fromPartial<I extends {
|
|
141
|
+
title?: string;
|
|
142
|
+
} & {
|
|
143
|
+
title?: string;
|
|
144
|
+
} & Record<Exclude<keyof I, "title">, never>>(object: I): MakeAlbumRequest;
|
|
145
|
+
};
|
|
146
|
+
export declare const PutPhotoRequest: {
|
|
147
|
+
encode(message: PutPhotoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
148
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PutPhotoRequest;
|
|
149
|
+
fromJSON(object: any): PutPhotoRequest;
|
|
150
|
+
toJSON(message: PutPhotoRequest): unknown;
|
|
151
|
+
fromPartial<I extends {
|
|
152
|
+
albumId?: string;
|
|
153
|
+
url?: string;
|
|
154
|
+
fileName?: string | undefined;
|
|
155
|
+
} & {
|
|
156
|
+
albumId?: string;
|
|
157
|
+
url?: string;
|
|
158
|
+
fileName?: string | undefined;
|
|
159
|
+
} & Record<Exclude<keyof I, keyof PutPhotoRequest>, never>>(object: I): PutPhotoRequest;
|
|
160
|
+
};
|
|
167
161
|
export declare const PutPhotoReply: {
|
|
168
162
|
encode(message: PutPhotoReply, writer?: _m0.Writer): _m0.Writer;
|
|
169
163
|
decode(input: _m0.Reader | Uint8Array, length?: number): PutPhotoReply;
|
|
170
164
|
fromJSON(object: any): PutPhotoReply;
|
|
171
165
|
toJSON(message: PutPhotoReply): unknown;
|
|
172
166
|
fromPartial<I extends {
|
|
173
|
-
|
|
167
|
+
done?: boolean;
|
|
168
|
+
totalSize?: number | undefined;
|
|
169
|
+
fetchedSize?: number | undefined;
|
|
170
|
+
photoId?: string | undefined;
|
|
174
171
|
} & {
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
done?: boolean;
|
|
173
|
+
totalSize?: number | undefined;
|
|
174
|
+
fetchedSize?: number | undefined;
|
|
175
|
+
photoId?: string | undefined;
|
|
176
|
+
} & Record<Exclude<keyof I, keyof PutPhotoReply>, never>>(object: I): PutPhotoReply;
|
|
177
177
|
};
|
|
178
178
|
export declare const DeletePhotoReply: {
|
|
179
179
|
encode(message: DeletePhotoReply, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -345,26 +345,12 @@ export declare const ListAlbumsReply: {
|
|
|
345
345
|
}[]>, never>;
|
|
346
346
|
} & Record<Exclude<keyof I, "albums">, never>>(object: I): ListAlbumsReply;
|
|
347
347
|
};
|
|
348
|
-
export declare const PutPhotoRequest: {
|
|
349
|
-
encode(message: PutPhotoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
350
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PutPhotoRequest;
|
|
351
|
-
fromJSON(object: any): PutPhotoRequest;
|
|
352
|
-
toJSON(message: PutPhotoRequest): unknown;
|
|
353
|
-
fromPartial<I extends {
|
|
354
|
-
albumId?: string;
|
|
355
|
-
url?: string;
|
|
356
|
-
fileName?: string | undefined;
|
|
357
|
-
} & {
|
|
358
|
-
albumId?: string;
|
|
359
|
-
url?: string;
|
|
360
|
-
fileName?: string | undefined;
|
|
361
|
-
} & Record<Exclude<keyof I, keyof PutPhotoRequest>, never>>(object: I): PutPhotoRequest;
|
|
362
|
-
};
|
|
363
348
|
export interface PhotoLibrary {
|
|
349
|
+
MakeAlbum(request: DeepPartial<MakeAlbumRequest>, metadata?: grpc.Metadata): Promise<Album>;
|
|
364
350
|
/** 列举所有的系统相册 */
|
|
365
351
|
ListAlbums(request: DeepPartial<ListAlbumsRequest>, metadata?: grpc.Metadata): Promise<ListAlbumsReply>;
|
|
366
352
|
/** 存储一张图片到某个相册中 */
|
|
367
|
-
PutPhoto(request: DeepPartial<PutPhotoRequest>, metadata?: grpc.Metadata):
|
|
353
|
+
PutPhoto(request: DeepPartial<PutPhotoRequest>, metadata?: grpc.Metadata): Observable<PutPhotoReply>;
|
|
368
354
|
DeletePhoto(request: DeepPartial<DeletePhotoRequest>, metadata?: grpc.Metadata): Promise<DeletePhotoReply>;
|
|
369
355
|
/** 枚举具体相册中的图片元信息 */
|
|
370
356
|
ListPhotoMetas(request: DeepPartial<ListPhotoMetasRequest>, metadata?: grpc.Metadata): Observable<PhotoMeta>;
|
|
@@ -373,8 +359,9 @@ export interface PhotoLibrary {
|
|
|
373
359
|
export declare class PhotoLibraryClientImpl implements PhotoLibrary {
|
|
374
360
|
private readonly rpc;
|
|
375
361
|
constructor(rpc: Rpc);
|
|
362
|
+
MakeAlbum(request: DeepPartial<MakeAlbumRequest>, metadata?: grpc.Metadata): Promise<Album>;
|
|
376
363
|
ListAlbums(request: DeepPartial<ListAlbumsRequest>, metadata?: grpc.Metadata): Promise<ListAlbumsReply>;
|
|
377
|
-
PutPhoto(request: DeepPartial<PutPhotoRequest>, metadata?: grpc.Metadata):
|
|
364
|
+
PutPhoto(request: DeepPartial<PutPhotoRequest>, metadata?: grpc.Metadata): Observable<PutPhotoReply>;
|
|
378
365
|
DeletePhoto(request: DeepPartial<DeletePhotoRequest>, metadata?: grpc.Metadata): Promise<DeletePhotoReply>;
|
|
379
366
|
ListPhotoMetas(request: DeepPartial<ListPhotoMetasRequest>, metadata?: grpc.Metadata): Observable<PhotoMeta>;
|
|
380
367
|
QueryPhoto(request: DeepPartial<QueryPhotoRequest>, metadata?: grpc.Metadata): Promise<PhotoMeta>;
|
|
@@ -382,6 +369,7 @@ export declare class PhotoLibraryClientImpl implements PhotoLibrary {
|
|
|
382
369
|
export declare const PhotoLibraryDesc: {
|
|
383
370
|
serviceName: string;
|
|
384
371
|
};
|
|
372
|
+
export declare const PhotoLibraryMakeAlbumDesc: UnaryMethodDefinitionish;
|
|
385
373
|
export declare const PhotoLibraryListAlbumsDesc: UnaryMethodDefinitionish;
|
|
386
374
|
export declare const PhotoLibraryPutPhotoDesc: UnaryMethodDefinitionish;
|
|
387
375
|
export declare const PhotoLibraryDeletePhotoDesc: UnaryMethodDefinitionish;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../localdevice/photo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAKhD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,kBAAkB;AAClB,oBAAY,kBAAkB;IAC5B,gCAAgC;IAChC,gBAAgB,IAA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QAChB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC1B;IAMH,KAAK,CAAC,CAAC,SAAS,wBAAwB,EACtC,UAAU,EAAE,CAAC,EACb,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,SAAS,GAClC,OAAO,CAAC,GAAG,CAAC;IA8Bf,MAAM,CAAC,CAAC,SAAS,wBAAwB,EACvC,UAAU,EAAE,CAAC,EACb,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,SAAS,GAClC,UAAU,CAAC,GAAG,CAAC;CAoCnB;AAaD,aAAK,OAAO,GACR,IAAI,GACJ,QAAQ,GACR,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,CAAC;AAEd,aAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GACnC,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACxB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAChC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC7B,CAAC,SAAS,EAAE,GACZ;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACtC,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.GrpcWebImpl = exports.PhotoLibraryQueryPhotoDesc = exports.PhotoLibraryListPhotoMetasDesc = exports.PhotoLibraryDeletePhotoDesc = exports.PhotoLibraryPutPhotoDesc = exports.PhotoLibraryListAlbumsDesc = exports.
|
|
29
|
+
exports.GrpcWebImpl = exports.PhotoLibraryQueryPhotoDesc = exports.PhotoLibraryListPhotoMetasDesc = exports.PhotoLibraryDeletePhotoDesc = exports.PhotoLibraryPutPhotoDesc = exports.PhotoLibraryListAlbumsDesc = exports.PhotoLibraryMakeAlbumDesc = exports.PhotoLibraryDesc = exports.PhotoLibraryClientImpl = exports.ListAlbumsReply = exports.ListAlbumsRequest = exports.Album = exports.PhotoMeta = exports.ListPhotoMetasRequest = exports.DeletePhotoRequest = exports.DeletePhotoReply = exports.PutPhotoReply = exports.PutPhotoRequest = exports.MakeAlbumRequest = exports.QueryPhotoRequest = exports.QueryPhotoHashRequest = exports.photoMetasSortTypeToJSON = exports.photoMetasSortTypeFromJSON = exports.PhotoMetasSortType = void 0;
|
|
30
30
|
/* eslint-disable */
|
|
31
31
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
32
32
|
const browser_headers_1 = require("browser-headers");
|
|
@@ -160,28 +160,25 @@ exports.QueryPhotoHashRequest = {
|
|
|
160
160
|
return message;
|
|
161
161
|
},
|
|
162
162
|
};
|
|
163
|
-
function
|
|
164
|
-
return {
|
|
163
|
+
function createBaseQueryPhotoRequest() {
|
|
164
|
+
return { id: "" };
|
|
165
165
|
}
|
|
166
|
-
exports.
|
|
166
|
+
exports.QueryPhotoRequest = {
|
|
167
167
|
encode(message, writer = _m0.Writer.create()) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
168
|
+
if (message.id !== "") {
|
|
169
|
+
writer.uint32(10).string(message.id);
|
|
170
|
+
}
|
|
171
171
|
return writer;
|
|
172
172
|
},
|
|
173
173
|
decode(input, length) {
|
|
174
174
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
175
175
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
176
|
-
const message =
|
|
176
|
+
const message = createBaseQueryPhotoRequest();
|
|
177
177
|
while (reader.pos < end) {
|
|
178
178
|
const tag = reader.uint32();
|
|
179
179
|
switch (tag >>> 3) {
|
|
180
180
|
case 1:
|
|
181
|
-
|
|
182
|
-
if (entry1.value !== undefined) {
|
|
183
|
-
message.entry[entry1.key] = entry1.value;
|
|
184
|
-
}
|
|
181
|
+
message.id = reader.string();
|
|
185
182
|
break;
|
|
186
183
|
default:
|
|
187
184
|
reader.skipType(tag & 7);
|
|
@@ -192,61 +189,40 @@ exports.PhotoHashSet = {
|
|
|
192
189
|
},
|
|
193
190
|
fromJSON(object) {
|
|
194
191
|
return {
|
|
195
|
-
|
|
196
|
-
? Object.entries(object.entry).reduce((acc, [key, value]) => {
|
|
197
|
-
acc[key] = String(value);
|
|
198
|
-
return acc;
|
|
199
|
-
}, {})
|
|
200
|
-
: {},
|
|
192
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
201
193
|
};
|
|
202
194
|
},
|
|
203
195
|
toJSON(message) {
|
|
204
196
|
const obj = {};
|
|
205
|
-
obj.
|
|
206
|
-
if (message.entry) {
|
|
207
|
-
Object.entries(message.entry).forEach(([k, v]) => {
|
|
208
|
-
obj.entry[k] = v;
|
|
209
|
-
});
|
|
210
|
-
}
|
|
197
|
+
message.id !== undefined && (obj.id = message.id);
|
|
211
198
|
return obj;
|
|
212
199
|
},
|
|
213
200
|
fromPartial(object) {
|
|
214
201
|
var _a;
|
|
215
|
-
const message =
|
|
216
|
-
message.
|
|
217
|
-
if (value !== undefined) {
|
|
218
|
-
acc[key] = String(value);
|
|
219
|
-
}
|
|
220
|
-
return acc;
|
|
221
|
-
}, {});
|
|
202
|
+
const message = createBaseQueryPhotoRequest();
|
|
203
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
222
204
|
return message;
|
|
223
205
|
},
|
|
224
206
|
};
|
|
225
|
-
function
|
|
226
|
-
return {
|
|
207
|
+
function createBaseMakeAlbumRequest() {
|
|
208
|
+
return { title: "" };
|
|
227
209
|
}
|
|
228
|
-
exports.
|
|
210
|
+
exports.MakeAlbumRequest = {
|
|
229
211
|
encode(message, writer = _m0.Writer.create()) {
|
|
230
|
-
if (message.
|
|
231
|
-
writer.uint32(10).string(message.
|
|
232
|
-
}
|
|
233
|
-
if (message.value !== "") {
|
|
234
|
-
writer.uint32(18).string(message.value);
|
|
212
|
+
if (message.title !== "") {
|
|
213
|
+
writer.uint32(10).string(message.title);
|
|
235
214
|
}
|
|
236
215
|
return writer;
|
|
237
216
|
},
|
|
238
217
|
decode(input, length) {
|
|
239
218
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
240
219
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
241
|
-
const message =
|
|
220
|
+
const message = createBaseMakeAlbumRequest();
|
|
242
221
|
while (reader.pos < end) {
|
|
243
222
|
const tag = reader.uint32();
|
|
244
223
|
switch (tag >>> 3) {
|
|
245
224
|
case 1:
|
|
246
|
-
message.
|
|
247
|
-
break;
|
|
248
|
-
case 2:
|
|
249
|
-
message.value = reader.string();
|
|
225
|
+
message.title = reader.string();
|
|
250
226
|
break;
|
|
251
227
|
default:
|
|
252
228
|
reader.skipType(tag & 7);
|
|
@@ -257,43 +233,52 @@ exports.PhotoHashSet_EntryEntry = {
|
|
|
257
233
|
},
|
|
258
234
|
fromJSON(object) {
|
|
259
235
|
return {
|
|
260
|
-
|
|
261
|
-
value: isSet(object.value) ? String(object.value) : "",
|
|
236
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
262
237
|
};
|
|
263
238
|
},
|
|
264
239
|
toJSON(message) {
|
|
265
240
|
const obj = {};
|
|
266
|
-
message.
|
|
267
|
-
message.value !== undefined && (obj.value = message.value);
|
|
241
|
+
message.title !== undefined && (obj.title = message.title);
|
|
268
242
|
return obj;
|
|
269
243
|
},
|
|
270
244
|
fromPartial(object) {
|
|
271
|
-
var _a
|
|
272
|
-
const message =
|
|
273
|
-
message.
|
|
274
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
245
|
+
var _a;
|
|
246
|
+
const message = createBaseMakeAlbumRequest();
|
|
247
|
+
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
275
248
|
return message;
|
|
276
249
|
},
|
|
277
250
|
};
|
|
278
|
-
function
|
|
279
|
-
return {
|
|
251
|
+
function createBasePutPhotoRequest() {
|
|
252
|
+
return { albumId: "", url: "", fileName: undefined };
|
|
280
253
|
}
|
|
281
|
-
exports.
|
|
254
|
+
exports.PutPhotoRequest = {
|
|
282
255
|
encode(message, writer = _m0.Writer.create()) {
|
|
283
|
-
if (message.
|
|
284
|
-
writer.uint32(10).string(message.
|
|
256
|
+
if (message.albumId !== "") {
|
|
257
|
+
writer.uint32(10).string(message.albumId);
|
|
258
|
+
}
|
|
259
|
+
if (message.url !== "") {
|
|
260
|
+
writer.uint32(18).string(message.url);
|
|
261
|
+
}
|
|
262
|
+
if (message.fileName !== undefined) {
|
|
263
|
+
writer.uint32(26).string(message.fileName);
|
|
285
264
|
}
|
|
286
265
|
return writer;
|
|
287
266
|
},
|
|
288
267
|
decode(input, length) {
|
|
289
268
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
290
269
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
291
|
-
const message =
|
|
270
|
+
const message = createBasePutPhotoRequest();
|
|
292
271
|
while (reader.pos < end) {
|
|
293
272
|
const tag = reader.uint32();
|
|
294
273
|
switch (tag >>> 3) {
|
|
295
274
|
case 1:
|
|
296
|
-
message.
|
|
275
|
+
message.albumId = reader.string();
|
|
276
|
+
break;
|
|
277
|
+
case 2:
|
|
278
|
+
message.url = reader.string();
|
|
279
|
+
break;
|
|
280
|
+
case 3:
|
|
281
|
+
message.fileName = reader.string();
|
|
297
282
|
break;
|
|
298
283
|
default:
|
|
299
284
|
reader.skipType(tag & 7);
|
|
@@ -304,28 +289,48 @@ exports.QueryPhotoRequest = {
|
|
|
304
289
|
},
|
|
305
290
|
fromJSON(object) {
|
|
306
291
|
return {
|
|
307
|
-
|
|
292
|
+
albumId: isSet(object.albumId) ? String(object.albumId) : "",
|
|
293
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
294
|
+
fileName: isSet(object.fileName) ? String(object.fileName) : undefined,
|
|
308
295
|
};
|
|
309
296
|
},
|
|
310
297
|
toJSON(message) {
|
|
311
298
|
const obj = {};
|
|
312
|
-
message.
|
|
299
|
+
message.albumId !== undefined && (obj.albumId = message.albumId);
|
|
300
|
+
message.url !== undefined && (obj.url = message.url);
|
|
301
|
+
message.fileName !== undefined && (obj.fileName = message.fileName);
|
|
313
302
|
return obj;
|
|
314
303
|
},
|
|
315
304
|
fromPartial(object) {
|
|
316
|
-
var _a;
|
|
317
|
-
const message =
|
|
318
|
-
message.
|
|
305
|
+
var _a, _b, _c;
|
|
306
|
+
const message = createBasePutPhotoRequest();
|
|
307
|
+
message.albumId = (_a = object.albumId) !== null && _a !== void 0 ? _a : "";
|
|
308
|
+
message.url = (_b = object.url) !== null && _b !== void 0 ? _b : "";
|
|
309
|
+
message.fileName = (_c = object.fileName) !== null && _c !== void 0 ? _c : undefined;
|
|
319
310
|
return message;
|
|
320
311
|
},
|
|
321
312
|
};
|
|
322
313
|
function createBasePutPhotoReply() {
|
|
323
|
-
return {
|
|
314
|
+
return {
|
|
315
|
+
done: false,
|
|
316
|
+
totalSize: undefined,
|
|
317
|
+
fetchedSize: undefined,
|
|
318
|
+
photoId: undefined,
|
|
319
|
+
};
|
|
324
320
|
}
|
|
325
321
|
exports.PutPhotoReply = {
|
|
326
322
|
encode(message, writer = _m0.Writer.create()) {
|
|
327
|
-
if (message.
|
|
328
|
-
writer.uint32(
|
|
323
|
+
if (message.done === true) {
|
|
324
|
+
writer.uint32(8).bool(message.done);
|
|
325
|
+
}
|
|
326
|
+
if (message.totalSize !== undefined) {
|
|
327
|
+
writer.uint32(16).int64(message.totalSize);
|
|
328
|
+
}
|
|
329
|
+
if (message.fetchedSize !== undefined) {
|
|
330
|
+
writer.uint32(24).int64(message.fetchedSize);
|
|
331
|
+
}
|
|
332
|
+
if (message.photoId !== undefined) {
|
|
333
|
+
writer.uint32(34).string(message.photoId);
|
|
329
334
|
}
|
|
330
335
|
return writer;
|
|
331
336
|
},
|
|
@@ -337,7 +342,16 @@ exports.PutPhotoReply = {
|
|
|
337
342
|
const tag = reader.uint32();
|
|
338
343
|
switch (tag >>> 3) {
|
|
339
344
|
case 1:
|
|
340
|
-
message.
|
|
345
|
+
message.done = reader.bool();
|
|
346
|
+
break;
|
|
347
|
+
case 2:
|
|
348
|
+
message.totalSize = longToNumber(reader.int64());
|
|
349
|
+
break;
|
|
350
|
+
case 3:
|
|
351
|
+
message.fetchedSize = longToNumber(reader.int64());
|
|
352
|
+
break;
|
|
353
|
+
case 4:
|
|
354
|
+
message.photoId = reader.string();
|
|
341
355
|
break;
|
|
342
356
|
default:
|
|
343
357
|
reader.skipType(tag & 7);
|
|
@@ -348,18 +362,31 @@ exports.PutPhotoReply = {
|
|
|
348
362
|
},
|
|
349
363
|
fromJSON(object) {
|
|
350
364
|
return {
|
|
351
|
-
|
|
365
|
+
done: isSet(object.done) ? Boolean(object.done) : false,
|
|
366
|
+
totalSize: isSet(object.totalSize) ? Number(object.totalSize) : undefined,
|
|
367
|
+
fetchedSize: isSet(object.fetchedSize)
|
|
368
|
+
? Number(object.fetchedSize)
|
|
369
|
+
: undefined,
|
|
370
|
+
photoId: isSet(object.photoId) ? String(object.photoId) : undefined,
|
|
352
371
|
};
|
|
353
372
|
},
|
|
354
373
|
toJSON(message) {
|
|
355
374
|
const obj = {};
|
|
356
|
-
message.
|
|
375
|
+
message.done !== undefined && (obj.done = message.done);
|
|
376
|
+
message.totalSize !== undefined &&
|
|
377
|
+
(obj.totalSize = Math.round(message.totalSize));
|
|
378
|
+
message.fetchedSize !== undefined &&
|
|
379
|
+
(obj.fetchedSize = Math.round(message.fetchedSize));
|
|
380
|
+
message.photoId !== undefined && (obj.photoId = message.photoId);
|
|
357
381
|
return obj;
|
|
358
382
|
},
|
|
359
383
|
fromPartial(object) {
|
|
360
|
-
var _a;
|
|
384
|
+
var _a, _b, _c, _d;
|
|
361
385
|
const message = createBasePutPhotoReply();
|
|
362
|
-
message.
|
|
386
|
+
message.done = (_a = object.done) !== null && _a !== void 0 ? _a : false;
|
|
387
|
+
message.totalSize = (_b = object.totalSize) !== null && _b !== void 0 ? _b : undefined;
|
|
388
|
+
message.fetchedSize = (_c = object.fetchedSize) !== null && _c !== void 0 ? _c : undefined;
|
|
389
|
+
message.photoId = (_d = object.photoId) !== null && _d !== void 0 ? _d : undefined;
|
|
363
390
|
return message;
|
|
364
391
|
},
|
|
365
392
|
};
|
|
@@ -1057,82 +1084,24 @@ exports.ListAlbumsReply = {
|
|
|
1057
1084
|
return message;
|
|
1058
1085
|
},
|
|
1059
1086
|
};
|
|
1060
|
-
function createBasePutPhotoRequest() {
|
|
1061
|
-
return { albumId: "", url: "", fileName: undefined };
|
|
1062
|
-
}
|
|
1063
|
-
exports.PutPhotoRequest = {
|
|
1064
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1065
|
-
if (message.albumId !== "") {
|
|
1066
|
-
writer.uint32(10).string(message.albumId);
|
|
1067
|
-
}
|
|
1068
|
-
if (message.url !== "") {
|
|
1069
|
-
writer.uint32(18).string(message.url);
|
|
1070
|
-
}
|
|
1071
|
-
if (message.fileName !== undefined) {
|
|
1072
|
-
writer.uint32(26).string(message.fileName);
|
|
1073
|
-
}
|
|
1074
|
-
return writer;
|
|
1075
|
-
},
|
|
1076
|
-
decode(input, length) {
|
|
1077
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1078
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1079
|
-
const message = createBasePutPhotoRequest();
|
|
1080
|
-
while (reader.pos < end) {
|
|
1081
|
-
const tag = reader.uint32();
|
|
1082
|
-
switch (tag >>> 3) {
|
|
1083
|
-
case 1:
|
|
1084
|
-
message.albumId = reader.string();
|
|
1085
|
-
break;
|
|
1086
|
-
case 2:
|
|
1087
|
-
message.url = reader.string();
|
|
1088
|
-
break;
|
|
1089
|
-
case 3:
|
|
1090
|
-
message.fileName = reader.string();
|
|
1091
|
-
break;
|
|
1092
|
-
default:
|
|
1093
|
-
reader.skipType(tag & 7);
|
|
1094
|
-
break;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
return message;
|
|
1098
|
-
},
|
|
1099
|
-
fromJSON(object) {
|
|
1100
|
-
return {
|
|
1101
|
-
albumId: isSet(object.albumId) ? String(object.albumId) : "",
|
|
1102
|
-
url: isSet(object.url) ? String(object.url) : "",
|
|
1103
|
-
fileName: isSet(object.fileName) ? String(object.fileName) : undefined,
|
|
1104
|
-
};
|
|
1105
|
-
},
|
|
1106
|
-
toJSON(message) {
|
|
1107
|
-
const obj = {};
|
|
1108
|
-
message.albumId !== undefined && (obj.albumId = message.albumId);
|
|
1109
|
-
message.url !== undefined && (obj.url = message.url);
|
|
1110
|
-
message.fileName !== undefined && (obj.fileName = message.fileName);
|
|
1111
|
-
return obj;
|
|
1112
|
-
},
|
|
1113
|
-
fromPartial(object) {
|
|
1114
|
-
var _a, _b, _c;
|
|
1115
|
-
const message = createBasePutPhotoRequest();
|
|
1116
|
-
message.albumId = (_a = object.albumId) !== null && _a !== void 0 ? _a : "";
|
|
1117
|
-
message.url = (_b = object.url) !== null && _b !== void 0 ? _b : "";
|
|
1118
|
-
message.fileName = (_c = object.fileName) !== null && _c !== void 0 ? _c : undefined;
|
|
1119
|
-
return message;
|
|
1120
|
-
},
|
|
1121
|
-
};
|
|
1122
1087
|
class PhotoLibraryClientImpl {
|
|
1123
1088
|
constructor(rpc) {
|
|
1124
1089
|
this.rpc = rpc;
|
|
1090
|
+
this.MakeAlbum = this.MakeAlbum.bind(this);
|
|
1125
1091
|
this.ListAlbums = this.ListAlbums.bind(this);
|
|
1126
1092
|
this.PutPhoto = this.PutPhoto.bind(this);
|
|
1127
1093
|
this.DeletePhoto = this.DeletePhoto.bind(this);
|
|
1128
1094
|
this.ListPhotoMetas = this.ListPhotoMetas.bind(this);
|
|
1129
1095
|
this.QueryPhoto = this.QueryPhoto.bind(this);
|
|
1130
1096
|
}
|
|
1097
|
+
MakeAlbum(request, metadata) {
|
|
1098
|
+
return this.rpc.unary(exports.PhotoLibraryMakeAlbumDesc, exports.MakeAlbumRequest.fromPartial(request), metadata);
|
|
1099
|
+
}
|
|
1131
1100
|
ListAlbums(request, metadata) {
|
|
1132
1101
|
return this.rpc.unary(exports.PhotoLibraryListAlbumsDesc, exports.ListAlbumsRequest.fromPartial(request), metadata);
|
|
1133
1102
|
}
|
|
1134
1103
|
PutPhoto(request, metadata) {
|
|
1135
|
-
return this.rpc.
|
|
1104
|
+
return this.rpc.invoke(exports.PhotoLibraryPutPhotoDesc, exports.PutPhotoRequest.fromPartial(request), metadata);
|
|
1136
1105
|
}
|
|
1137
1106
|
DeletePhoto(request, metadata) {
|
|
1138
1107
|
return this.rpc.unary(exports.PhotoLibraryDeletePhotoDesc, exports.DeletePhotoRequest.fromPartial(request), metadata);
|
|
@@ -1148,6 +1117,24 @@ exports.PhotoLibraryClientImpl = PhotoLibraryClientImpl;
|
|
|
1148
1117
|
exports.PhotoLibraryDesc = {
|
|
1149
1118
|
serviceName: "cloud.lazycat.apis.localdevice.PhotoLibrary",
|
|
1150
1119
|
};
|
|
1120
|
+
exports.PhotoLibraryMakeAlbumDesc = {
|
|
1121
|
+
methodName: "MakeAlbum",
|
|
1122
|
+
service: exports.PhotoLibraryDesc,
|
|
1123
|
+
requestStream: false,
|
|
1124
|
+
responseStream: false,
|
|
1125
|
+
requestType: {
|
|
1126
|
+
serializeBinary() {
|
|
1127
|
+
return exports.MakeAlbumRequest.encode(this).finish();
|
|
1128
|
+
},
|
|
1129
|
+
},
|
|
1130
|
+
responseType: {
|
|
1131
|
+
deserializeBinary(data) {
|
|
1132
|
+
return Object.assign(Object.assign({}, exports.Album.decode(data)), { toObject() {
|
|
1133
|
+
return this;
|
|
1134
|
+
} });
|
|
1135
|
+
},
|
|
1136
|
+
},
|
|
1137
|
+
};
|
|
1151
1138
|
exports.PhotoLibraryListAlbumsDesc = {
|
|
1152
1139
|
methodName: "ListAlbums",
|
|
1153
1140
|
service: exports.PhotoLibraryDesc,
|
|
@@ -1170,7 +1157,7 @@ exports.PhotoLibraryPutPhotoDesc = {
|
|
|
1170
1157
|
methodName: "PutPhoto",
|
|
1171
1158
|
service: exports.PhotoLibraryDesc,
|
|
1172
1159
|
requestStream: false,
|
|
1173
|
-
responseStream:
|
|
1160
|
+
responseStream: true,
|
|
1174
1161
|
requestType: {
|
|
1175
1162
|
serializeBinary() {
|
|
1176
1163
|
return exports.PutPhotoRequest.encode(this).finish();
|
|
@@ -1349,9 +1336,6 @@ if (_m0.util.Long !== long_1.default) {
|
|
|
1349
1336
|
_m0.util.Long = long_1.default;
|
|
1350
1337
|
_m0.configure();
|
|
1351
1338
|
}
|
|
1352
|
-
function isObject(value) {
|
|
1353
|
-
return typeof value === "object" && value !== null;
|
|
1354
|
-
}
|
|
1355
1339
|
function isSet(value) {
|
|
1356
1340
|
return value !== null && value !== undefined;
|
|
1357
1341
|
}
|