image-salon-sdk 1.0.65 → 1.0.67
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/api/file-service.d.ts +1 -0
- package/dist/api/image-upload-service.d.ts +1 -0
- package/dist/grpc/generated/exposed-file-service.client.d.ts +14 -14
- package/dist/grpc/generated/exposed-file-service.d.ts +28 -28
- package/dist/grpc/generated/exposed-folder-service.client.d.ts +19 -11
- package/dist/grpc/generated/exposed-folder-service.d.ts +35 -12
- package/dist/grpc/generated/exposed-image-metadata-service.client.d.ts +28 -0
- package/dist/grpc/generated/exposed-image-metadata-service.d.ts +70 -0
- package/dist/grpc/generated/exposed-image-upload-service.client.d.ts +6 -6
- package/dist/grpc/generated/exposed-image-upload-service.d.ts +11 -7
- package/dist/image-salon-sdk.js +3994 -4651
- package/dist/image-salon-sdk.umd.cjs +8 -8
- package/dist/image-salon.d.ts +1 -1
- package/dist/utils/image-upload-utils.d.ts +2 -1
- package/package.json +2 -1
- package/dist/plugins/browser-image-compression.d.ts +0 -2
- package/dist/workers/browser-image-compression.js +0 -3593
|
@@ -4,6 +4,7 @@ import { RpcOptions } from '@protobuf-ts/runtime-rpc/build/types/rpc-options';
|
|
|
4
4
|
|
|
5
5
|
export declare const createFileReq: (name: string, nestedFolderName: string, url: string, type: FileType, folderName: string, options: RpcOptions) => Promise<any>;
|
|
6
6
|
export declare const createFileReqForUser: (url: string, type: FileType, options: RpcOptions) => Promise<any>;
|
|
7
|
+
export declare const createFileReqForUserV2: (url: string, type: FileType, accessToken: string, mode: "development" | "production") => Promise<any>;
|
|
7
8
|
export declare const getFilesByFolder: (folderName: string, cursor: string, limit: number, options: RpcOptions) => Promise<import('@protobuf-ts/runtime-rpc').FinishedUnaryCall<GetFilesByFolderRequest, import('../grpc/generated/exposed-file-service').GetFilesByFolderResponse>>;
|
|
8
9
|
export declare const searchFiles: (query: string, cursor: string, limit: number, options: RpcOptions) => Promise<import('@protobuf-ts/runtime-rpc').FinishedUnaryCall<SearchRequest, import('../grpc/generated/exposed-file-service').SearchResult>>;
|
|
9
10
|
export declare const updateFileReq: (key: string, name: string, nestedFolderName: string, url: string, thumborUrl: string, proxyUrl: string, type: FileType, folderName: string, options: RpcOptions) => Promise<any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { RpcOptions } from '@protobuf-ts/runtime-rpc/build/types/rpc-options';
|
|
2
2
|
|
|
3
3
|
export declare const imageUploadReq: (mimeType: string, options: RpcOptions, isAdmin?: boolean) => Promise<any>;
|
|
4
|
+
export declare const imageUploadReqUser: (mimeType: string, accessToken: string, isAdmin: boolean, mode: "development" | "production") => Promise<any>;
|
|
@@ -2,38 +2,38 @@ import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/r
|
|
|
2
2
|
import { SearchResult, SearchRequest, CreateUserFileRequest, GetFilesByFolderResponse, GetFilesByFolderRequest, DeleteFileResponse, DeleteFileRequest, File, CreateFileRequest } from './exposed-file-service';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @generated from protobuf service com.hamropatro.grpc.
|
|
5
|
+
* @generated from protobuf service com.hamropatro.grpc.common.FileService
|
|
6
6
|
*/
|
|
7
7
|
export interface IFileServiceClient {
|
|
8
8
|
/**
|
|
9
|
-
* @generated from protobuf rpc: createFile(com.hamropatro.grpc.
|
|
9
|
+
* @generated from protobuf rpc: createFile(com.hamropatro.grpc.common.CreateFileRequest) returns (com.hamropatro.grpc.common.File);
|
|
10
10
|
*/
|
|
11
11
|
createFile(input: CreateFileRequest, options?: RpcOptions): UnaryCall<CreateFileRequest, File>;
|
|
12
12
|
/**
|
|
13
|
-
* @generated from protobuf rpc: updateFile(com.hamropatro.grpc.
|
|
13
|
+
* @generated from protobuf rpc: updateFile(com.hamropatro.grpc.common.File) returns (com.hamropatro.grpc.common.File);
|
|
14
14
|
*/
|
|
15
15
|
updateFile(input: File, options?: RpcOptions): UnaryCall<File, File>;
|
|
16
16
|
/**
|
|
17
|
-
* @generated from protobuf rpc: deleteFile(com.hamropatro.grpc.
|
|
17
|
+
* @generated from protobuf rpc: deleteFile(com.hamropatro.grpc.common.DeleteFileRequest) returns (com.hamropatro.grpc.common.DeleteFileResponse);
|
|
18
18
|
*/
|
|
19
19
|
deleteFile(input: DeleteFileRequest, options?: RpcOptions): UnaryCall<DeleteFileRequest, DeleteFileResponse>;
|
|
20
20
|
/**
|
|
21
|
-
* @generated from protobuf rpc: getFilesByFolder(com.hamropatro.grpc.
|
|
21
|
+
* @generated from protobuf rpc: getFilesByFolder(com.hamropatro.grpc.common.GetFilesByFolderRequest) returns (com.hamropatro.grpc.common.GetFilesByFolderResponse);
|
|
22
22
|
*/
|
|
23
23
|
getFilesByFolder(input: GetFilesByFolderRequest, options?: RpcOptions): UnaryCall<GetFilesByFolderRequest, GetFilesByFolderResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* user sepecific file
|
|
26
26
|
*
|
|
27
|
-
* @generated from protobuf rpc: createUserFile(com.hamropatro.grpc.
|
|
27
|
+
* @generated from protobuf rpc: createUserFile(com.hamropatro.grpc.common.CreateUserFileRequest) returns (com.hamropatro.grpc.common.File);
|
|
28
28
|
*/
|
|
29
29
|
createUserFile(input: CreateUserFileRequest, options?: RpcOptions): UnaryCall<CreateUserFileRequest, File>;
|
|
30
30
|
/**
|
|
31
|
-
* @generated from protobuf rpc: search(com.hamropatro.grpc.
|
|
31
|
+
* @generated from protobuf rpc: search(com.hamropatro.grpc.common.SearchRequest) returns (com.hamropatro.grpc.common.SearchResult);
|
|
32
32
|
*/
|
|
33
33
|
search(input: SearchRequest, options?: RpcOptions): UnaryCall<SearchRequest, SearchResult>;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
* @generated from protobuf service com.hamropatro.grpc.
|
|
36
|
+
* @generated from protobuf service com.hamropatro.grpc.common.FileService
|
|
37
37
|
*/
|
|
38
38
|
export declare class FileServiceClient implements IFileServiceClient, ServiceInfo {
|
|
39
39
|
private readonly _transport;
|
|
@@ -44,29 +44,29 @@ export declare class FileServiceClient implements IFileServiceClient, ServiceInf
|
|
|
44
44
|
};
|
|
45
45
|
constructor(_transport: RpcTransport);
|
|
46
46
|
/**
|
|
47
|
-
* @generated from protobuf rpc: createFile(com.hamropatro.grpc.
|
|
47
|
+
* @generated from protobuf rpc: createFile(com.hamropatro.grpc.common.CreateFileRequest) returns (com.hamropatro.grpc.common.File);
|
|
48
48
|
*/
|
|
49
49
|
createFile(input: CreateFileRequest, options?: RpcOptions): UnaryCall<CreateFileRequest, File>;
|
|
50
50
|
/**
|
|
51
|
-
* @generated from protobuf rpc: updateFile(com.hamropatro.grpc.
|
|
51
|
+
* @generated from protobuf rpc: updateFile(com.hamropatro.grpc.common.File) returns (com.hamropatro.grpc.common.File);
|
|
52
52
|
*/
|
|
53
53
|
updateFile(input: File, options?: RpcOptions): UnaryCall<File, File>;
|
|
54
54
|
/**
|
|
55
|
-
* @generated from protobuf rpc: deleteFile(com.hamropatro.grpc.
|
|
55
|
+
* @generated from protobuf rpc: deleteFile(com.hamropatro.grpc.common.DeleteFileRequest) returns (com.hamropatro.grpc.common.DeleteFileResponse);
|
|
56
56
|
*/
|
|
57
57
|
deleteFile(input: DeleteFileRequest, options?: RpcOptions): UnaryCall<DeleteFileRequest, DeleteFileResponse>;
|
|
58
58
|
/**
|
|
59
|
-
* @generated from protobuf rpc: getFilesByFolder(com.hamropatro.grpc.
|
|
59
|
+
* @generated from protobuf rpc: getFilesByFolder(com.hamropatro.grpc.common.GetFilesByFolderRequest) returns (com.hamropatro.grpc.common.GetFilesByFolderResponse);
|
|
60
60
|
*/
|
|
61
61
|
getFilesByFolder(input: GetFilesByFolderRequest, options?: RpcOptions): UnaryCall<GetFilesByFolderRequest, GetFilesByFolderResponse>;
|
|
62
62
|
/**
|
|
63
63
|
* user sepecific file
|
|
64
64
|
*
|
|
65
|
-
* @generated from protobuf rpc: createUserFile(com.hamropatro.grpc.
|
|
65
|
+
* @generated from protobuf rpc: createUserFile(com.hamropatro.grpc.common.CreateUserFileRequest) returns (com.hamropatro.grpc.common.File);
|
|
66
66
|
*/
|
|
67
67
|
createUserFile(input: CreateUserFileRequest, options?: RpcOptions): UnaryCall<CreateUserFileRequest, File>;
|
|
68
68
|
/**
|
|
69
|
-
* @generated from protobuf rpc: search(com.hamropatro.grpc.
|
|
69
|
+
* @generated from protobuf rpc: search(com.hamropatro.grpc.common.SearchRequest) returns (com.hamropatro.grpc.common.SearchResult);
|
|
70
70
|
*/
|
|
71
71
|
search(input: SearchRequest, options?: RpcOptions): UnaryCall<SearchRequest, SearchResult>;
|
|
72
72
|
}
|
|
@@ -2,7 +2,7 @@ import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
|
2
2
|
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
5
|
+
* @generated from protobuf message com.hamropatro.grpc.common.SearchRequest
|
|
6
6
|
*/
|
|
7
7
|
export interface SearchRequest {
|
|
8
8
|
/**
|
|
@@ -19,11 +19,11 @@ export interface SearchRequest {
|
|
|
19
19
|
limit: number;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
22
|
+
* @generated from protobuf message com.hamropatro.grpc.common.SearchResult
|
|
23
23
|
*/
|
|
24
24
|
export interface SearchResult {
|
|
25
25
|
/**
|
|
26
|
-
* @generated from protobuf field: repeated com.hamropatro.grpc.
|
|
26
|
+
* @generated from protobuf field: repeated com.hamropatro.grpc.common.File items = 1;
|
|
27
27
|
*/
|
|
28
28
|
items: File[];
|
|
29
29
|
/**
|
|
@@ -32,7 +32,7 @@ export interface SearchResult {
|
|
|
32
32
|
nextPageCursor: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
35
|
+
* @generated from protobuf message com.hamropatro.grpc.common.CreateFileRequest
|
|
36
36
|
*/
|
|
37
37
|
export interface CreateFileRequest {
|
|
38
38
|
/**
|
|
@@ -52,7 +52,7 @@ export interface CreateFileRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
url: string;
|
|
54
54
|
/**
|
|
55
|
-
* @generated from protobuf field: com.hamropatro.grpc.
|
|
55
|
+
* @generated from protobuf field: com.hamropatro.grpc.common.FileType type = 5;
|
|
56
56
|
*/
|
|
57
57
|
type: FileType;
|
|
58
58
|
/**
|
|
@@ -61,7 +61,7 @@ export interface CreateFileRequest {
|
|
|
61
61
|
extension: string;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
64
|
+
* @generated from protobuf message com.hamropatro.grpc.common.CreateUserFileRequest
|
|
65
65
|
*/
|
|
66
66
|
export interface CreateUserFileRequest {
|
|
67
67
|
/**
|
|
@@ -69,7 +69,7 @@ export interface CreateUserFileRequest {
|
|
|
69
69
|
*/
|
|
70
70
|
url: string;
|
|
71
71
|
/**
|
|
72
|
-
* @generated from protobuf field: com.hamropatro.grpc.
|
|
72
|
+
* @generated from protobuf field: com.hamropatro.grpc.common.FileType type = 2;
|
|
73
73
|
*/
|
|
74
74
|
type: FileType;
|
|
75
75
|
/**
|
|
@@ -78,7 +78,7 @@ export interface CreateUserFileRequest {
|
|
|
78
78
|
extension: string;
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
81
|
+
* @generated from protobuf message com.hamropatro.grpc.common.File
|
|
82
82
|
*/
|
|
83
83
|
export interface File {
|
|
84
84
|
/**
|
|
@@ -110,16 +110,16 @@ export interface File {
|
|
|
110
110
|
*/
|
|
111
111
|
proxyUrl: string;
|
|
112
112
|
/**
|
|
113
|
-
* @generated from protobuf field: com.hamropatro.grpc.
|
|
113
|
+
* @generated from protobuf field: com.hamropatro.grpc.common.FileType type = 8;
|
|
114
114
|
*/
|
|
115
115
|
type: FileType;
|
|
116
116
|
/**
|
|
117
|
-
* @generated from protobuf field: com.hamropatro.grpc.
|
|
117
|
+
* @generated from protobuf field: com.hamropatro.grpc.common.FileMetadata metadata = 9;
|
|
118
118
|
*/
|
|
119
119
|
metadata?: FileMetadata;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
122
|
+
* @generated from protobuf message com.hamropatro.grpc.common.FileMetadata
|
|
123
123
|
*/
|
|
124
124
|
export interface FileMetadata {
|
|
125
125
|
/**
|
|
@@ -140,7 +140,7 @@ export interface FileMetadata {
|
|
|
140
140
|
aspectRatio: number;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
143
|
+
* @generated from protobuf message com.hamropatro.grpc.common.DeleteFileRequest
|
|
144
144
|
*/
|
|
145
145
|
export interface DeleteFileRequest {
|
|
146
146
|
/**
|
|
@@ -149,7 +149,7 @@ export interface DeleteFileRequest {
|
|
|
149
149
|
key: string;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
152
|
+
* @generated from protobuf message com.hamropatro.grpc.common.DeleteFileResponse
|
|
153
153
|
*/
|
|
154
154
|
export interface DeleteFileResponse {
|
|
155
155
|
/**
|
|
@@ -158,7 +158,7 @@ export interface DeleteFileResponse {
|
|
|
158
158
|
isDeleted: boolean;
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
161
|
+
* @generated from protobuf message com.hamropatro.grpc.common.GetFilesByFolderRequest
|
|
162
162
|
*/
|
|
163
163
|
export interface GetFilesByFolderRequest {
|
|
164
164
|
/**
|
|
@@ -175,11 +175,11 @@ export interface GetFilesByFolderRequest {
|
|
|
175
175
|
limit: number;
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
178
|
+
* @generated from protobuf message com.hamropatro.grpc.common.GetFilesByFolderResponse
|
|
179
179
|
*/
|
|
180
180
|
export interface GetFilesByFolderResponse {
|
|
181
181
|
/**
|
|
182
|
-
* @generated from protobuf field: repeated com.hamropatro.grpc.
|
|
182
|
+
* @generated from protobuf field: repeated com.hamropatro.grpc.common.File files = 1;
|
|
183
183
|
*/
|
|
184
184
|
files: File[];
|
|
185
185
|
/**
|
|
@@ -192,7 +192,7 @@ export interface GetFilesByFolderResponse {
|
|
|
192
192
|
hasMore: boolean;
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
|
-
* @generated from protobuf enum com.hamropatro.grpc.
|
|
195
|
+
* @generated from protobuf enum com.hamropatro.grpc.common.FileType
|
|
196
196
|
*/
|
|
197
197
|
export declare enum FileType {
|
|
198
198
|
/**
|
|
@@ -223,7 +223,7 @@ declare class SearchRequest$Type extends MessageType<SearchRequest> {
|
|
|
223
223
|
internalBinaryWrite(message: SearchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
224
224
|
}
|
|
225
225
|
/**
|
|
226
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
226
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.SearchRequest
|
|
227
227
|
*/
|
|
228
228
|
export declare const SearchRequest: SearchRequest$Type;
|
|
229
229
|
declare class SearchResult$Type extends MessageType<SearchResult> {
|
|
@@ -233,7 +233,7 @@ declare class SearchResult$Type extends MessageType<SearchResult> {
|
|
|
233
233
|
internalBinaryWrite(message: SearchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
236
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.SearchResult
|
|
237
237
|
*/
|
|
238
238
|
export declare const SearchResult: SearchResult$Type;
|
|
239
239
|
declare class CreateFileRequest$Type extends MessageType<CreateFileRequest> {
|
|
@@ -243,7 +243,7 @@ declare class CreateFileRequest$Type extends MessageType<CreateFileRequest> {
|
|
|
243
243
|
internalBinaryWrite(message: CreateFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
246
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.CreateFileRequest
|
|
247
247
|
*/
|
|
248
248
|
export declare const CreateFileRequest: CreateFileRequest$Type;
|
|
249
249
|
declare class CreateUserFileRequest$Type extends MessageType<CreateUserFileRequest> {
|
|
@@ -253,7 +253,7 @@ declare class CreateUserFileRequest$Type extends MessageType<CreateUserFileReque
|
|
|
253
253
|
internalBinaryWrite(message: CreateUserFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
256
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.CreateUserFileRequest
|
|
257
257
|
*/
|
|
258
258
|
export declare const CreateUserFileRequest: CreateUserFileRequest$Type;
|
|
259
259
|
declare class File$Type extends MessageType<File> {
|
|
@@ -263,7 +263,7 @@ declare class File$Type extends MessageType<File> {
|
|
|
263
263
|
internalBinaryWrite(message: File, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
266
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.File
|
|
267
267
|
*/
|
|
268
268
|
export declare const File: File$Type;
|
|
269
269
|
declare class FileMetadata$Type extends MessageType<FileMetadata> {
|
|
@@ -273,7 +273,7 @@ declare class FileMetadata$Type extends MessageType<FileMetadata> {
|
|
|
273
273
|
internalBinaryWrite(message: FileMetadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
274
274
|
}
|
|
275
275
|
/**
|
|
276
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
276
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.FileMetadata
|
|
277
277
|
*/
|
|
278
278
|
export declare const FileMetadata: FileMetadata$Type;
|
|
279
279
|
declare class DeleteFileRequest$Type extends MessageType<DeleteFileRequest> {
|
|
@@ -283,7 +283,7 @@ declare class DeleteFileRequest$Type extends MessageType<DeleteFileRequest> {
|
|
|
283
283
|
internalBinaryWrite(message: DeleteFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
286
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.DeleteFileRequest
|
|
287
287
|
*/
|
|
288
288
|
export declare const DeleteFileRequest: DeleteFileRequest$Type;
|
|
289
289
|
declare class DeleteFileResponse$Type extends MessageType<DeleteFileResponse> {
|
|
@@ -293,7 +293,7 @@ declare class DeleteFileResponse$Type extends MessageType<DeleteFileResponse> {
|
|
|
293
293
|
internalBinaryWrite(message: DeleteFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
296
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.DeleteFileResponse
|
|
297
297
|
*/
|
|
298
298
|
export declare const DeleteFileResponse: DeleteFileResponse$Type;
|
|
299
299
|
declare class GetFilesByFolderRequest$Type extends MessageType<GetFilesByFolderRequest> {
|
|
@@ -303,7 +303,7 @@ declare class GetFilesByFolderRequest$Type extends MessageType<GetFilesByFolderR
|
|
|
303
303
|
internalBinaryWrite(message: GetFilesByFolderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
306
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.GetFilesByFolderRequest
|
|
307
307
|
*/
|
|
308
308
|
export declare const GetFilesByFolderRequest: GetFilesByFolderRequest$Type;
|
|
309
309
|
declare class GetFilesByFolderResponse$Type extends MessageType<GetFilesByFolderResponse> {
|
|
@@ -313,11 +313,11 @@ declare class GetFilesByFolderResponse$Type extends MessageType<GetFilesByFolder
|
|
|
313
313
|
internalBinaryWrite(message: GetFilesByFolderResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
314
314
|
}
|
|
315
315
|
/**
|
|
316
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
316
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.GetFilesByFolderResponse
|
|
317
317
|
*/
|
|
318
318
|
export declare const GetFilesByFolderResponse: GetFilesByFolderResponse$Type;
|
|
319
319
|
/**
|
|
320
|
-
* @generated ServiceType for protobuf service com.hamropatro.grpc.
|
|
320
|
+
* @generated ServiceType for protobuf service com.hamropatro.grpc.common.FileService
|
|
321
321
|
*/
|
|
322
322
|
export declare const FileService: ServiceType;
|
|
323
323
|
export {};
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
-
import { DeleteFolderRequest, GetAllFoldersResponse, GetAllFoldersRequest, Folder, CreateFolderRequest } from './exposed-folder-service';
|
|
2
|
+
import { ChangeNestedFolderRequest, DeleteFolderRequest, GetAllFoldersResponse, GetAllFoldersRequest, Folder, CreateFolderRequest } from './exposed-folder-service';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @generated from protobuf service com.hamropatro.grpc.
|
|
5
|
+
* @generated from protobuf service com.hamropatro.grpc.common.FolderService
|
|
6
6
|
*/
|
|
7
7
|
export interface IFolderServiceClient {
|
|
8
8
|
/**
|
|
9
|
-
* @generated from protobuf rpc: createFolder(com.hamropatro.grpc.
|
|
9
|
+
* @generated from protobuf rpc: createFolder(com.hamropatro.grpc.common.CreateFolderRequest) returns (com.hamropatro.grpc.common.Folder);
|
|
10
10
|
*/
|
|
11
11
|
createFolder(input: CreateFolderRequest, options?: RpcOptions): UnaryCall<CreateFolderRequest, Folder>;
|
|
12
12
|
/**
|
|
13
|
-
* @generated from protobuf rpc: getFolders(com.hamropatro.grpc.
|
|
13
|
+
* @generated from protobuf rpc: getFolders(com.hamropatro.grpc.common.GetAllFoldersRequest) returns (com.hamropatro.grpc.common.GetAllFoldersResponse);
|
|
14
14
|
*/
|
|
15
15
|
getFolders(input: GetAllFoldersRequest, options?: RpcOptions): UnaryCall<GetAllFoldersRequest, GetAllFoldersResponse>;
|
|
16
16
|
/**
|
|
17
|
-
* @generated from protobuf rpc: updateFolder(com.hamropatro.grpc.
|
|
17
|
+
* @generated from protobuf rpc: updateFolder(com.hamropatro.grpc.common.Folder) returns (com.hamropatro.grpc.common.Folder);
|
|
18
18
|
*/
|
|
19
19
|
updateFolder(input: Folder, options?: RpcOptions): UnaryCall<Folder, Folder>;
|
|
20
20
|
/**
|
|
21
|
-
* @generated from protobuf rpc: deleteFolder(com.hamropatro.grpc.
|
|
21
|
+
* @generated from protobuf rpc: deleteFolder(com.hamropatro.grpc.common.DeleteFolderRequest) returns (com.hamropatro.grpc.common.Folder);
|
|
22
22
|
*/
|
|
23
23
|
deleteFolder(input: DeleteFolderRequest, options?: RpcOptions): UnaryCall<DeleteFolderRequest, Folder>;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf rpc: ChangeNestedFolderName(com.hamropatro.grpc.common.ChangeNestedFolderRequest) returns (com.hamropatro.grpc.common.Folder);
|
|
26
|
+
*/
|
|
27
|
+
changeNestedFolderName(input: ChangeNestedFolderRequest, options?: RpcOptions): UnaryCall<ChangeNestedFolderRequest, Folder>;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
|
-
* @generated from protobuf service com.hamropatro.grpc.
|
|
30
|
+
* @generated from protobuf service com.hamropatro.grpc.common.FolderService
|
|
27
31
|
*/
|
|
28
32
|
export declare class FolderServiceClient implements IFolderServiceClient, ServiceInfo {
|
|
29
33
|
private readonly _transport;
|
|
@@ -34,19 +38,23 @@ export declare class FolderServiceClient implements IFolderServiceClient, Servic
|
|
|
34
38
|
};
|
|
35
39
|
constructor(_transport: RpcTransport);
|
|
36
40
|
/**
|
|
37
|
-
* @generated from protobuf rpc: createFolder(com.hamropatro.grpc.
|
|
41
|
+
* @generated from protobuf rpc: createFolder(com.hamropatro.grpc.common.CreateFolderRequest) returns (com.hamropatro.grpc.common.Folder);
|
|
38
42
|
*/
|
|
39
43
|
createFolder(input: CreateFolderRequest, options?: RpcOptions): UnaryCall<CreateFolderRequest, Folder>;
|
|
40
44
|
/**
|
|
41
|
-
* @generated from protobuf rpc: getFolders(com.hamropatro.grpc.
|
|
45
|
+
* @generated from protobuf rpc: getFolders(com.hamropatro.grpc.common.GetAllFoldersRequest) returns (com.hamropatro.grpc.common.GetAllFoldersResponse);
|
|
42
46
|
*/
|
|
43
47
|
getFolders(input: GetAllFoldersRequest, options?: RpcOptions): UnaryCall<GetAllFoldersRequest, GetAllFoldersResponse>;
|
|
44
48
|
/**
|
|
45
|
-
* @generated from protobuf rpc: updateFolder(com.hamropatro.grpc.
|
|
49
|
+
* @generated from protobuf rpc: updateFolder(com.hamropatro.grpc.common.Folder) returns (com.hamropatro.grpc.common.Folder);
|
|
46
50
|
*/
|
|
47
51
|
updateFolder(input: Folder, options?: RpcOptions): UnaryCall<Folder, Folder>;
|
|
48
52
|
/**
|
|
49
|
-
* @generated from protobuf rpc: deleteFolder(com.hamropatro.grpc.
|
|
53
|
+
* @generated from protobuf rpc: deleteFolder(com.hamropatro.grpc.common.DeleteFolderRequest) returns (com.hamropatro.grpc.common.Folder);
|
|
50
54
|
*/
|
|
51
55
|
deleteFolder(input: DeleteFolderRequest, options?: RpcOptions): UnaryCall<DeleteFolderRequest, Folder>;
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf rpc: ChangeNestedFolderName(com.hamropatro.grpc.common.ChangeNestedFolderRequest) returns (com.hamropatro.grpc.common.Folder);
|
|
58
|
+
*/
|
|
59
|
+
changeNestedFolderName(input: ChangeNestedFolderRequest, options?: RpcOptions): UnaryCall<ChangeNestedFolderRequest, Folder>;
|
|
52
60
|
}
|
|
@@ -2,7 +2,7 @@ import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
|
2
2
|
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
5
|
+
* @generated from protobuf message com.hamropatro.grpc.common.DeleteFolderRequest
|
|
6
6
|
*/
|
|
7
7
|
export interface DeleteFolderRequest {
|
|
8
8
|
/**
|
|
@@ -11,7 +11,7 @@ export interface DeleteFolderRequest {
|
|
|
11
11
|
key: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
14
|
+
* @generated from protobuf message com.hamropatro.grpc.common.CreateFolderRequest
|
|
15
15
|
*/
|
|
16
16
|
export interface CreateFolderRequest {
|
|
17
17
|
/**
|
|
@@ -28,7 +28,7 @@ export interface CreateFolderRequest {
|
|
|
28
28
|
createdBy: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
31
|
+
* @generated from protobuf message com.hamropatro.grpc.common.GetAllFoldersRequest
|
|
32
32
|
*/
|
|
33
33
|
export interface GetAllFoldersRequest {
|
|
34
34
|
/**
|
|
@@ -41,11 +41,11 @@ export interface GetAllFoldersRequest {
|
|
|
41
41
|
limit: number;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
44
|
+
* @generated from protobuf message com.hamropatro.grpc.common.GetAllFoldersResponse
|
|
45
45
|
*/
|
|
46
46
|
export interface GetAllFoldersResponse {
|
|
47
47
|
/**
|
|
48
|
-
* @generated from protobuf field: repeated com.hamropatro.grpc.
|
|
48
|
+
* @generated from protobuf field: repeated com.hamropatro.grpc.common.Folder folder = 1;
|
|
49
49
|
*/
|
|
50
50
|
folder: Folder[];
|
|
51
51
|
/**
|
|
@@ -58,7 +58,7 @@ export interface GetAllFoldersResponse {
|
|
|
58
58
|
hasMore: boolean;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* @generated from protobuf message com.hamropatro.grpc.
|
|
61
|
+
* @generated from protobuf message com.hamropatro.grpc.common.Folder
|
|
62
62
|
*/
|
|
63
63
|
export interface Folder {
|
|
64
64
|
/**
|
|
@@ -78,6 +78,19 @@ export interface Folder {
|
|
|
78
78
|
*/
|
|
79
79
|
createdBy: string;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf message com.hamropatro.grpc.common.ChangeNestedFolderRequest
|
|
83
|
+
*/
|
|
84
|
+
export interface ChangeNestedFolderRequest {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf field: string folder_key = 1;
|
|
87
|
+
*/
|
|
88
|
+
folderKey: string;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: string nested_folder_name = 2;
|
|
91
|
+
*/
|
|
92
|
+
nestedFolderName: string;
|
|
93
|
+
}
|
|
81
94
|
declare class DeleteFolderRequest$Type extends MessageType<DeleteFolderRequest> {
|
|
82
95
|
constructor();
|
|
83
96
|
create(value?: PartialMessage<DeleteFolderRequest>): DeleteFolderRequest;
|
|
@@ -85,7 +98,7 @@ declare class DeleteFolderRequest$Type extends MessageType<DeleteFolderRequest>
|
|
|
85
98
|
internalBinaryWrite(message: DeleteFolderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
86
99
|
}
|
|
87
100
|
/**
|
|
88
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
101
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.DeleteFolderRequest
|
|
89
102
|
*/
|
|
90
103
|
export declare const DeleteFolderRequest: DeleteFolderRequest$Type;
|
|
91
104
|
declare class CreateFolderRequest$Type extends MessageType<CreateFolderRequest> {
|
|
@@ -95,7 +108,7 @@ declare class CreateFolderRequest$Type extends MessageType<CreateFolderRequest>
|
|
|
95
108
|
internalBinaryWrite(message: CreateFolderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
96
109
|
}
|
|
97
110
|
/**
|
|
98
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
111
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.CreateFolderRequest
|
|
99
112
|
*/
|
|
100
113
|
export declare const CreateFolderRequest: CreateFolderRequest$Type;
|
|
101
114
|
declare class GetAllFoldersRequest$Type extends MessageType<GetAllFoldersRequest> {
|
|
@@ -105,7 +118,7 @@ declare class GetAllFoldersRequest$Type extends MessageType<GetAllFoldersRequest
|
|
|
105
118
|
internalBinaryWrite(message: GetAllFoldersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
106
119
|
}
|
|
107
120
|
/**
|
|
108
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
121
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.GetAllFoldersRequest
|
|
109
122
|
*/
|
|
110
123
|
export declare const GetAllFoldersRequest: GetAllFoldersRequest$Type;
|
|
111
124
|
declare class GetAllFoldersResponse$Type extends MessageType<GetAllFoldersResponse> {
|
|
@@ -115,7 +128,7 @@ declare class GetAllFoldersResponse$Type extends MessageType<GetAllFoldersRespon
|
|
|
115
128
|
internalBinaryWrite(message: GetAllFoldersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
116
129
|
}
|
|
117
130
|
/**
|
|
118
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
131
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.GetAllFoldersResponse
|
|
119
132
|
*/
|
|
120
133
|
export declare const GetAllFoldersResponse: GetAllFoldersResponse$Type;
|
|
121
134
|
declare class Folder$Type extends MessageType<Folder> {
|
|
@@ -125,11 +138,21 @@ declare class Folder$Type extends MessageType<Folder> {
|
|
|
125
138
|
internalBinaryWrite(message: Folder, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
126
139
|
}
|
|
127
140
|
/**
|
|
128
|
-
* @generated MessageType for protobuf message com.hamropatro.grpc.
|
|
141
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.Folder
|
|
129
142
|
*/
|
|
130
143
|
export declare const Folder: Folder$Type;
|
|
144
|
+
declare class ChangeNestedFolderRequest$Type extends MessageType<ChangeNestedFolderRequest> {
|
|
145
|
+
constructor();
|
|
146
|
+
create(value?: PartialMessage<ChangeNestedFolderRequest>): ChangeNestedFolderRequest;
|
|
147
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ChangeNestedFolderRequest): ChangeNestedFolderRequest;
|
|
148
|
+
internalBinaryWrite(message: ChangeNestedFolderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.ChangeNestedFolderRequest
|
|
152
|
+
*/
|
|
153
|
+
export declare const ChangeNestedFolderRequest: ChangeNestedFolderRequest$Type;
|
|
131
154
|
/**
|
|
132
|
-
* @generated ServiceType for protobuf service com.hamropatro.grpc.
|
|
155
|
+
* @generated ServiceType for protobuf service com.hamropatro.grpc.common.FolderService
|
|
133
156
|
*/
|
|
134
157
|
export declare const FolderService: ServiceType;
|
|
135
158
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { ImageMetadata, GetImageMetadataRequest } from './exposed-image-metadata-service';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from protobuf service com.hamropatro.grpc.common.ImageMetadataService
|
|
6
|
+
*/
|
|
7
|
+
export interface IImageMetadataServiceClient {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf rpc: getMetadata(com.hamropatro.grpc.common.GetImageMetadataRequest) returns (com.hamropatro.grpc.common.ImageMetadata);
|
|
10
|
+
*/
|
|
11
|
+
getMetadata(input: GetImageMetadataRequest, options?: RpcOptions): UnaryCall<GetImageMetadataRequest, ImageMetadata>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf service com.hamropatro.grpc.common.ImageMetadataService
|
|
15
|
+
*/
|
|
16
|
+
export declare class ImageMetadataServiceClient implements IImageMetadataServiceClient, ServiceInfo {
|
|
17
|
+
private readonly _transport;
|
|
18
|
+
typeName: string;
|
|
19
|
+
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
20
|
+
options: {
|
|
21
|
+
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
22
|
+
};
|
|
23
|
+
constructor(_transport: RpcTransport);
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf rpc: getMetadata(com.hamropatro.grpc.common.GetImageMetadataRequest) returns (com.hamropatro.grpc.common.ImageMetadata);
|
|
26
|
+
*/
|
|
27
|
+
getMetadata(input: GetImageMetadataRequest, options?: RpcOptions): UnaryCall<GetImageMetadataRequest, ImageMetadata>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from protobuf message com.hamropatro.grpc.common.GetImageMetadataRequest
|
|
6
|
+
*/
|
|
7
|
+
export interface GetImageMetadataRequest {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf field: string image_url = 1;
|
|
10
|
+
*/
|
|
11
|
+
imageUrl: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf message com.hamropatro.grpc.common.ImageMetadata
|
|
15
|
+
*/
|
|
16
|
+
export interface ImageMetadata {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf field: string key = 1;
|
|
19
|
+
*/
|
|
20
|
+
key: string;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf field: string image_url = 2;
|
|
23
|
+
*/
|
|
24
|
+
imageUrl: string;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: double aspect_ratio = 3;
|
|
27
|
+
*/
|
|
28
|
+
aspectRatio: number;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf field: int32 height = 4;
|
|
31
|
+
*/
|
|
32
|
+
height: number;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: int32 width = 5;
|
|
35
|
+
*/
|
|
36
|
+
width: number;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: string background_color = 6;
|
|
39
|
+
*/
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf field: string extension = 7;
|
|
43
|
+
*/
|
|
44
|
+
extension: string;
|
|
45
|
+
}
|
|
46
|
+
declare class GetImageMetadataRequest$Type extends MessageType<GetImageMetadataRequest> {
|
|
47
|
+
constructor();
|
|
48
|
+
create(value?: PartialMessage<GetImageMetadataRequest>): GetImageMetadataRequest;
|
|
49
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetImageMetadataRequest): GetImageMetadataRequest;
|
|
50
|
+
internalBinaryWrite(message: GetImageMetadataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.GetImageMetadataRequest
|
|
54
|
+
*/
|
|
55
|
+
export declare const GetImageMetadataRequest: GetImageMetadataRequest$Type;
|
|
56
|
+
declare class ImageMetadata$Type extends MessageType<ImageMetadata> {
|
|
57
|
+
constructor();
|
|
58
|
+
create(value?: PartialMessage<ImageMetadata>): ImageMetadata;
|
|
59
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImageMetadata): ImageMetadata;
|
|
60
|
+
internalBinaryWrite(message: ImageMetadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.common.ImageMetadata
|
|
64
|
+
*/
|
|
65
|
+
export declare const ImageMetadata: ImageMetadata$Type;
|
|
66
|
+
/**
|
|
67
|
+
* @generated ServiceType for protobuf service com.hamropatro.grpc.common.ImageMetadataService
|
|
68
|
+
*/
|
|
69
|
+
export declare const ImageMetadataService: ServiceType;
|
|
70
|
+
export {};
|