image-salon-sdk 0.0.1 → 1.0.1
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 +3 -0
- package/dist/api/folder-service.d.ts +1 -0
- package/dist/api/image-upload-service.d.ts +1 -0
- package/dist/browse-btn-svg.svg +18 -0
- package/dist/components/dialog/dialog.d.ts +26 -0
- package/dist/components/loader/loader.d.ts +7 -0
- package/dist/grpc/factory.d.ts +14 -0
- package/dist/grpc/generated/exposed-common-service.d.ts +18 -0
- package/dist/grpc/generated/exposed-file-service.client.d.ts +52 -0
- package/dist/grpc/generated/exposed-file-service.d.ts +238 -0
- package/dist/grpc/generated/exposed-folder-service.client.d.ts +44 -0
- package/dist/grpc/generated/exposed-folder-service.d.ts +116 -0
- package/dist/grpc/generated/exposed-image-upload-service.client.d.ts +28 -0
- package/dist/grpc/generated/exposed-image-upload-service.d.ts +46 -0
- package/dist/image-salon-sdk.js +3907 -0
- package/dist/image-salon-sdk.umd.cjs +19 -0
- package/dist/image-salon.d.ts +19 -0
- package/dist/index.d.ts +5 -0
- package/dist/loader.svg +3 -0
- package/dist/style.css +1 -0
- package/dist/types/image-salon-types.d.ts +32 -0
- package/dist/upload.svg +1 -0
- package/dist/utils/config.d.ts +3 -0
- package/dist/utils/element-creator.d.ts +1 -0
- package/dist/utils/helper-function.d.ts +6 -0
- package/dist/utils/image-upload-utils.d.ts +5 -0
- package/dist/utils/types.d.ts +6 -0
- package/package.json +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createFolderReq: (name: string, nestedFolderName: string, createdBy: string) => Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const imageUploadReq: () => Promise<any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
width="24"
|
|
4
|
+
height="24"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
fill="none"
|
|
7
|
+
stroke="white"
|
|
8
|
+
stroke-width="2"
|
|
9
|
+
stroke-linecap="round"
|
|
10
|
+
stroke-linejoin="round"
|
|
11
|
+
class="lucide lucide-cloud-upload"
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"
|
|
15
|
+
/>
|
|
16
|
+
<path d="M12 12v9" />
|
|
17
|
+
<path d="m16 16-4-4-4 4" />
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface DialogOptions {
|
|
2
|
+
title: string | HTMLElement;
|
|
3
|
+
content: string | HTMLElement;
|
|
4
|
+
confirmButtonText?: string;
|
|
5
|
+
cancelButtonText?: string;
|
|
6
|
+
onConfirm?: () => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare class Dialog {
|
|
10
|
+
main: HTMLElement;
|
|
11
|
+
dialogHeader: HTMLElement;
|
|
12
|
+
dialogBody: HTMLElement;
|
|
13
|
+
dialogFooter: HTMLElement;
|
|
14
|
+
confirmButton: HTMLButtonElement;
|
|
15
|
+
cancelButton: HTMLButtonElement;
|
|
16
|
+
confirmCallback: (() => void) | undefined;
|
|
17
|
+
cancelCallback: (() => void) | undefined;
|
|
18
|
+
constructor();
|
|
19
|
+
show(options: DialogOptions): Promise<unknown>;
|
|
20
|
+
hide(): void;
|
|
21
|
+
updateUploadBtnText(text: string): void;
|
|
22
|
+
disableConfirmButton(status: boolean): void;
|
|
23
|
+
updateUploadBtn(loading: boolean): void;
|
|
24
|
+
}
|
|
25
|
+
export declare const HpDialog: Dialog;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FolderServiceClient } from './generated/exposed-folder-service.client';
|
|
2
|
+
import { FileServiceClient } from './generated/exposed-file-service.client';
|
|
3
|
+
import { ImageUploadServiceClient } from './generated/exposed-image-upload-service.client';
|
|
4
|
+
import { CreateFolderRequest } from './generated/exposed-folder-service';
|
|
5
|
+
import { CreateFileRequest } from './generated/exposed-file-service';
|
|
6
|
+
import { ImageUploadRequest } from './generated/exposed-image-upload-service';
|
|
7
|
+
|
|
8
|
+
declare const folderServiceClient: FolderServiceClient;
|
|
9
|
+
declare const createFolderRequest: CreateFolderRequest;
|
|
10
|
+
declare const fileServiceClient: FileServiceClient;
|
|
11
|
+
declare const createFileRequest: CreateFileRequest;
|
|
12
|
+
declare const imageUploadServiceClient: ImageUploadServiceClient;
|
|
13
|
+
declare const imageUploadRequest: ImageUploadRequest;
|
|
14
|
+
export { folderServiceClient, fileServiceClient, imageUploadServiceClient, createFolderRequest, createFileRequest, imageUploadRequest, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.Empty
|
|
5
|
+
*/
|
|
6
|
+
export interface Empty {
|
|
7
|
+
}
|
|
8
|
+
declare class Empty$Type extends MessageType<Empty> {
|
|
9
|
+
constructor();
|
|
10
|
+
create(value?: PartialMessage<Empty>): Empty;
|
|
11
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty;
|
|
12
|
+
internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.Empty
|
|
16
|
+
*/
|
|
17
|
+
export declare const Empty: Empty$Type;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { GetFilesByFolderResponse, GetFilesByFolderRequest, DeleteFileResponse, DeleteFileRequest, File, CreateFileRequest } from './exposed-file-service';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from protobuf service com.hamropatro.grpc.cms.FileService
|
|
6
|
+
*/
|
|
7
|
+
export interface IFileServiceClient {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf rpc: createFile(com.hamropatro.grpc.cms.CreateFileRequest) returns (com.hamropatro.grpc.cms.File);
|
|
10
|
+
*/
|
|
11
|
+
createFile(input: CreateFileRequest, options?: RpcOptions): UnaryCall<CreateFileRequest, File>;
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf rpc: updateFile(com.hamropatro.grpc.cms.File) returns (com.hamropatro.grpc.cms.File);
|
|
14
|
+
*/
|
|
15
|
+
updateFile(input: File, options?: RpcOptions): UnaryCall<File, File>;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf rpc: deleteFile(com.hamropatro.grpc.cms.DeleteFileRequest) returns (com.hamropatro.grpc.cms.DeleteFileResponse);
|
|
18
|
+
*/
|
|
19
|
+
deleteFile(input: DeleteFileRequest, options?: RpcOptions): UnaryCall<DeleteFileRequest, DeleteFileResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf rpc: getFilesByFolder(com.hamropatro.grpc.cms.GetFilesByFolderRequest) returns (com.hamropatro.grpc.cms.GetFilesByFolderResponse);
|
|
22
|
+
*/
|
|
23
|
+
getFilesByFolder(input: GetFilesByFolderRequest, options?: RpcOptions): UnaryCall<GetFilesByFolderRequest, GetFilesByFolderResponse>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf service com.hamropatro.grpc.cms.FileService
|
|
27
|
+
*/
|
|
28
|
+
export declare class FileServiceClient implements IFileServiceClient, ServiceInfo {
|
|
29
|
+
private readonly _transport;
|
|
30
|
+
typeName: string;
|
|
31
|
+
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
32
|
+
options: {
|
|
33
|
+
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
34
|
+
};
|
|
35
|
+
constructor(_transport: RpcTransport);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf rpc: createFile(com.hamropatro.grpc.cms.CreateFileRequest) returns (com.hamropatro.grpc.cms.File);
|
|
38
|
+
*/
|
|
39
|
+
createFile(input: CreateFileRequest, options?: RpcOptions): UnaryCall<CreateFileRequest, File>;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf rpc: updateFile(com.hamropatro.grpc.cms.File) returns (com.hamropatro.grpc.cms.File);
|
|
42
|
+
*/
|
|
43
|
+
updateFile(input: File, options?: RpcOptions): UnaryCall<File, File>;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf rpc: deleteFile(com.hamropatro.grpc.cms.DeleteFileRequest) returns (com.hamropatro.grpc.cms.DeleteFileResponse);
|
|
46
|
+
*/
|
|
47
|
+
deleteFile(input: DeleteFileRequest, options?: RpcOptions): UnaryCall<DeleteFileRequest, DeleteFileResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf rpc: getFilesByFolder(com.hamropatro.grpc.cms.GetFilesByFolderRequest) returns (com.hamropatro.grpc.cms.GetFilesByFolderResponse);
|
|
50
|
+
*/
|
|
51
|
+
getFilesByFolder(input: GetFilesByFolderRequest, options?: RpcOptions): UnaryCall<GetFilesByFolderRequest, GetFilesByFolderResponse>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
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.cms.CreateFileRequest
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateFileRequest {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf field: string name = 1;
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf field: string folder_name = 2;
|
|
14
|
+
*/
|
|
15
|
+
folderName: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf field: string nested_folder_name = 3;
|
|
18
|
+
*/
|
|
19
|
+
nestedFolderName: string;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: string url = 4;
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: com.hamropatro.grpc.cms.FileType type = 5;
|
|
26
|
+
*/
|
|
27
|
+
type: FileType;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.File
|
|
31
|
+
*/
|
|
32
|
+
export interface File {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: string key = 1;
|
|
35
|
+
*/
|
|
36
|
+
key: string;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: string name = 2;
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf field: string folder_name = 3;
|
|
43
|
+
*/
|
|
44
|
+
folderName: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: string nested_folder_name = 4;
|
|
47
|
+
*/
|
|
48
|
+
nestedFolderName: string;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: string url = 5;
|
|
51
|
+
*/
|
|
52
|
+
url: string;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: string thumbor_url = 6;
|
|
55
|
+
*/
|
|
56
|
+
thumborUrl: string;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: string proxy_url = 7;
|
|
59
|
+
*/
|
|
60
|
+
proxyUrl: string;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: com.hamropatro.grpc.cms.FileType type = 8;
|
|
63
|
+
*/
|
|
64
|
+
type: FileType;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: com.hamropatro.grpc.cms.FileMetadata metadata = 9;
|
|
67
|
+
*/
|
|
68
|
+
metadata?: FileMetadata;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.FileMetadata
|
|
72
|
+
*/
|
|
73
|
+
export interface FileMetadata {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: int32 height = 1;
|
|
76
|
+
*/
|
|
77
|
+
height: number;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf field: int32 width = 2;
|
|
80
|
+
*/
|
|
81
|
+
width: number;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: string background_color = 3;
|
|
84
|
+
*/
|
|
85
|
+
backgroundColor: string;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: double aspect_ratio = 4;
|
|
88
|
+
*/
|
|
89
|
+
aspectRatio: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.DeleteFileRequest
|
|
93
|
+
*/
|
|
94
|
+
export interface DeleteFileRequest {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: string key = 1;
|
|
97
|
+
*/
|
|
98
|
+
key: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.DeleteFileResponse
|
|
102
|
+
*/
|
|
103
|
+
export interface DeleteFileResponse {
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf field: bool is_deleted = 1;
|
|
106
|
+
*/
|
|
107
|
+
isDeleted: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.GetFilesByFolderRequest
|
|
111
|
+
*/
|
|
112
|
+
export interface GetFilesByFolderRequest {
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf field: string folder_name = 1;
|
|
115
|
+
*/
|
|
116
|
+
folderName: string;
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf field: string cursor = 2;
|
|
119
|
+
*/
|
|
120
|
+
cursor: string;
|
|
121
|
+
/**
|
|
122
|
+
* @generated from protobuf field: int32 limit = 3;
|
|
123
|
+
*/
|
|
124
|
+
limit: number;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.GetFilesByFolderResponse
|
|
128
|
+
*/
|
|
129
|
+
export interface GetFilesByFolderResponse {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf field: repeated com.hamropatro.grpc.cms.File files = 1;
|
|
132
|
+
*/
|
|
133
|
+
files: File[];
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf field: string next_cursor = 2;
|
|
136
|
+
*/
|
|
137
|
+
nextCursor: string;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf field: bool has_more = 3;
|
|
140
|
+
*/
|
|
141
|
+
hasMore: boolean;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf enum com.hamropatro.grpc.cms.FileType
|
|
145
|
+
*/
|
|
146
|
+
export declare enum FileType {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf enum value: IMAGE = 0;
|
|
149
|
+
*/
|
|
150
|
+
IMAGE = 0,
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf enum value: AUDIO = 1;
|
|
153
|
+
*/
|
|
154
|
+
AUDIO = 1,
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf enum value: VIDEO = 2;
|
|
157
|
+
*/
|
|
158
|
+
VIDEO = 2,
|
|
159
|
+
/**
|
|
160
|
+
* @generated from protobuf enum value: ALL = 3;
|
|
161
|
+
*/
|
|
162
|
+
ALL = 3
|
|
163
|
+
}
|
|
164
|
+
declare class CreateFileRequest$Type extends MessageType<CreateFileRequest> {
|
|
165
|
+
constructor();
|
|
166
|
+
create(value?: PartialMessage<CreateFileRequest>): CreateFileRequest;
|
|
167
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateFileRequest): CreateFileRequest;
|
|
168
|
+
internalBinaryWrite(message: CreateFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.CreateFileRequest
|
|
172
|
+
*/
|
|
173
|
+
export declare const CreateFileRequest: CreateFileRequest$Type;
|
|
174
|
+
declare class File$Type extends MessageType<File> {
|
|
175
|
+
constructor();
|
|
176
|
+
create(value?: PartialMessage<File>): File;
|
|
177
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: File): File;
|
|
178
|
+
internalBinaryWrite(message: File, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.File
|
|
182
|
+
*/
|
|
183
|
+
export declare const File: File$Type;
|
|
184
|
+
declare class FileMetadata$Type extends MessageType<FileMetadata> {
|
|
185
|
+
constructor();
|
|
186
|
+
create(value?: PartialMessage<FileMetadata>): FileMetadata;
|
|
187
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileMetadata): FileMetadata;
|
|
188
|
+
internalBinaryWrite(message: FileMetadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.FileMetadata
|
|
192
|
+
*/
|
|
193
|
+
export declare const FileMetadata: FileMetadata$Type;
|
|
194
|
+
declare class DeleteFileRequest$Type extends MessageType<DeleteFileRequest> {
|
|
195
|
+
constructor();
|
|
196
|
+
create(value?: PartialMessage<DeleteFileRequest>): DeleteFileRequest;
|
|
197
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFileRequest): DeleteFileRequest;
|
|
198
|
+
internalBinaryWrite(message: DeleteFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.DeleteFileRequest
|
|
202
|
+
*/
|
|
203
|
+
export declare const DeleteFileRequest: DeleteFileRequest$Type;
|
|
204
|
+
declare class DeleteFileResponse$Type extends MessageType<DeleteFileResponse> {
|
|
205
|
+
constructor();
|
|
206
|
+
create(value?: PartialMessage<DeleteFileResponse>): DeleteFileResponse;
|
|
207
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFileResponse): DeleteFileResponse;
|
|
208
|
+
internalBinaryWrite(message: DeleteFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.DeleteFileResponse
|
|
212
|
+
*/
|
|
213
|
+
export declare const DeleteFileResponse: DeleteFileResponse$Type;
|
|
214
|
+
declare class GetFilesByFolderRequest$Type extends MessageType<GetFilesByFolderRequest> {
|
|
215
|
+
constructor();
|
|
216
|
+
create(value?: PartialMessage<GetFilesByFolderRequest>): GetFilesByFolderRequest;
|
|
217
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFilesByFolderRequest): GetFilesByFolderRequest;
|
|
218
|
+
internalBinaryWrite(message: GetFilesByFolderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.GetFilesByFolderRequest
|
|
222
|
+
*/
|
|
223
|
+
export declare const GetFilesByFolderRequest: GetFilesByFolderRequest$Type;
|
|
224
|
+
declare class GetFilesByFolderResponse$Type extends MessageType<GetFilesByFolderResponse> {
|
|
225
|
+
constructor();
|
|
226
|
+
create(value?: PartialMessage<GetFilesByFolderResponse>): GetFilesByFolderResponse;
|
|
227
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFilesByFolderResponse): GetFilesByFolderResponse;
|
|
228
|
+
internalBinaryWrite(message: GetFilesByFolderResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.GetFilesByFolderResponse
|
|
232
|
+
*/
|
|
233
|
+
export declare const GetFilesByFolderResponse: GetFilesByFolderResponse$Type;
|
|
234
|
+
/**
|
|
235
|
+
* @generated ServiceType for protobuf service com.hamropatro.grpc.cms.FileService
|
|
236
|
+
*/
|
|
237
|
+
export declare const FileService: ServiceType;
|
|
238
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { GetAllFoldersResponse, GetAllFoldersRequest, Folder, CreateFolderRequest } from './exposed-folder-service';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from protobuf service com.hamropatro.grpc.cms.FolderService
|
|
6
|
+
*/
|
|
7
|
+
export interface IFolderServiceClient {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf rpc: createFolder(com.hamropatro.grpc.cms.CreateFolderRequest) returns (com.hamropatro.grpc.cms.Folder);
|
|
10
|
+
*/
|
|
11
|
+
createFolder(input: CreateFolderRequest, options?: RpcOptions): UnaryCall<CreateFolderRequest, Folder>;
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf rpc: getFolders(com.hamropatro.grpc.cms.GetAllFoldersRequest) returns (com.hamropatro.grpc.cms.GetAllFoldersResponse);
|
|
14
|
+
*/
|
|
15
|
+
getFolders(input: GetAllFoldersRequest, options?: RpcOptions): UnaryCall<GetAllFoldersRequest, GetAllFoldersResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf rpc: updateFolder(com.hamropatro.grpc.cms.Folder) returns (com.hamropatro.grpc.cms.Folder);
|
|
18
|
+
*/
|
|
19
|
+
updateFolder(input: Folder, options?: RpcOptions): UnaryCall<Folder, Folder>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf service com.hamropatro.grpc.cms.FolderService
|
|
23
|
+
*/
|
|
24
|
+
export declare class FolderServiceClient implements IFolderServiceClient, ServiceInfo {
|
|
25
|
+
private readonly _transport;
|
|
26
|
+
typeName: string;
|
|
27
|
+
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
28
|
+
options: {
|
|
29
|
+
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
30
|
+
};
|
|
31
|
+
constructor(_transport: RpcTransport);
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf rpc: createFolder(com.hamropatro.grpc.cms.CreateFolderRequest) returns (com.hamropatro.grpc.cms.Folder);
|
|
34
|
+
*/
|
|
35
|
+
createFolder(input: CreateFolderRequest, options?: RpcOptions): UnaryCall<CreateFolderRequest, Folder>;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf rpc: getFolders(com.hamropatro.grpc.cms.GetAllFoldersRequest) returns (com.hamropatro.grpc.cms.GetAllFoldersResponse);
|
|
38
|
+
*/
|
|
39
|
+
getFolders(input: GetAllFoldersRequest, options?: RpcOptions): UnaryCall<GetAllFoldersRequest, GetAllFoldersResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf rpc: updateFolder(com.hamropatro.grpc.cms.Folder) returns (com.hamropatro.grpc.cms.Folder);
|
|
42
|
+
*/
|
|
43
|
+
updateFolder(input: Folder, options?: RpcOptions): UnaryCall<Folder, Folder>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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.cms.CreateFolderRequest
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateFolderRequest {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf field: string name = 1;
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf field: string nested_folder_name = 2;
|
|
14
|
+
*/
|
|
15
|
+
nestedFolderName: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf field: string created_by = 3;
|
|
18
|
+
*/
|
|
19
|
+
createdBy: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.GetAllFoldersRequest
|
|
23
|
+
*/
|
|
24
|
+
export interface GetAllFoldersRequest {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: string cursor = 1;
|
|
27
|
+
*/
|
|
28
|
+
cursor: string;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf field: int32 limit = 2;
|
|
31
|
+
*/
|
|
32
|
+
limit: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.GetAllFoldersResponse
|
|
36
|
+
*/
|
|
37
|
+
export interface GetAllFoldersResponse {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: repeated com.hamropatro.grpc.cms.Folder folder = 1;
|
|
40
|
+
*/
|
|
41
|
+
folder: Folder[];
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: string next_cursor = 2;
|
|
44
|
+
*/
|
|
45
|
+
nextCursor: string;
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf field: bool has_more = 3;
|
|
48
|
+
*/
|
|
49
|
+
hasMore: boolean;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.Folder
|
|
53
|
+
*/
|
|
54
|
+
export interface Folder {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf field: string key = 1;
|
|
57
|
+
*/
|
|
58
|
+
key: string;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf field: string name = 2;
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: string nested_folder_name = 3;
|
|
65
|
+
*/
|
|
66
|
+
nestedFolderName: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: string created_by = 4;
|
|
69
|
+
*/
|
|
70
|
+
createdBy: string;
|
|
71
|
+
}
|
|
72
|
+
declare class CreateFolderRequest$Type extends MessageType<CreateFolderRequest> {
|
|
73
|
+
constructor();
|
|
74
|
+
create(value?: PartialMessage<CreateFolderRequest>): CreateFolderRequest;
|
|
75
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateFolderRequest): CreateFolderRequest;
|
|
76
|
+
internalBinaryWrite(message: CreateFolderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.CreateFolderRequest
|
|
80
|
+
*/
|
|
81
|
+
export declare const CreateFolderRequest: CreateFolderRequest$Type;
|
|
82
|
+
declare class GetAllFoldersRequest$Type extends MessageType<GetAllFoldersRequest> {
|
|
83
|
+
constructor();
|
|
84
|
+
create(value?: PartialMessage<GetAllFoldersRequest>): GetAllFoldersRequest;
|
|
85
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAllFoldersRequest): GetAllFoldersRequest;
|
|
86
|
+
internalBinaryWrite(message: GetAllFoldersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.GetAllFoldersRequest
|
|
90
|
+
*/
|
|
91
|
+
export declare const GetAllFoldersRequest: GetAllFoldersRequest$Type;
|
|
92
|
+
declare class GetAllFoldersResponse$Type extends MessageType<GetAllFoldersResponse> {
|
|
93
|
+
constructor();
|
|
94
|
+
create(value?: PartialMessage<GetAllFoldersResponse>): GetAllFoldersResponse;
|
|
95
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAllFoldersResponse): GetAllFoldersResponse;
|
|
96
|
+
internalBinaryWrite(message: GetAllFoldersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.GetAllFoldersResponse
|
|
100
|
+
*/
|
|
101
|
+
export declare const GetAllFoldersResponse: GetAllFoldersResponse$Type;
|
|
102
|
+
declare class Folder$Type extends MessageType<Folder> {
|
|
103
|
+
constructor();
|
|
104
|
+
create(value?: PartialMessage<Folder>): Folder;
|
|
105
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Folder): Folder;
|
|
106
|
+
internalBinaryWrite(message: Folder, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.Folder
|
|
110
|
+
*/
|
|
111
|
+
export declare const Folder: Folder$Type;
|
|
112
|
+
/**
|
|
113
|
+
* @generated ServiceType for protobuf service com.hamropatro.grpc.cms.FolderService
|
|
114
|
+
*/
|
|
115
|
+
export declare const FolderService: ServiceType;
|
|
116
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
+
import { ImageUploadResponse, ImageUploadRequest } from './exposed-image-upload-service';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @generated from protobuf service com.hamropatro.grpc.cms.ImageUploadService
|
|
6
|
+
*/
|
|
7
|
+
export interface IImageUploadServiceClient {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf rpc: Upload(com.hamropatro.grpc.cms.ImageUploadRequest) returns (com.hamropatro.grpc.cms.ImageUploadResponse);
|
|
10
|
+
*/
|
|
11
|
+
upload(input: ImageUploadRequest, options?: RpcOptions): UnaryCall<ImageUploadRequest, ImageUploadResponse>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf service com.hamropatro.grpc.cms.ImageUploadService
|
|
15
|
+
*/
|
|
16
|
+
export declare class ImageUploadServiceClient implements IImageUploadServiceClient, 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: Upload(com.hamropatro.grpc.cms.ImageUploadRequest) returns (com.hamropatro.grpc.cms.ImageUploadResponse);
|
|
26
|
+
*/
|
|
27
|
+
upload(input: ImageUploadRequest, options?: RpcOptions): UnaryCall<ImageUploadRequest, ImageUploadResponse>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.cms.ImageUploadRequest
|
|
6
|
+
*/
|
|
7
|
+
export interface ImageUploadRequest {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @generated from protobuf message com.hamropatro.grpc.cms.ImageUploadResponse
|
|
11
|
+
*/
|
|
12
|
+
export interface ImageUploadResponse {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf field: string key = 1;
|
|
15
|
+
*/
|
|
16
|
+
key: string;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf field: string url = 2;
|
|
19
|
+
*/
|
|
20
|
+
url: string;
|
|
21
|
+
}
|
|
22
|
+
declare class ImageUploadRequest$Type extends MessageType<ImageUploadRequest> {
|
|
23
|
+
constructor();
|
|
24
|
+
create(value?: PartialMessage<ImageUploadRequest>): ImageUploadRequest;
|
|
25
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImageUploadRequest): ImageUploadRequest;
|
|
26
|
+
internalBinaryWrite(message: ImageUploadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.ImageUploadRequest
|
|
30
|
+
*/
|
|
31
|
+
export declare const ImageUploadRequest: ImageUploadRequest$Type;
|
|
32
|
+
declare class ImageUploadResponse$Type extends MessageType<ImageUploadResponse> {
|
|
33
|
+
constructor();
|
|
34
|
+
create(value?: PartialMessage<ImageUploadResponse>): ImageUploadResponse;
|
|
35
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImageUploadResponse): ImageUploadResponse;
|
|
36
|
+
internalBinaryWrite(message: ImageUploadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @generated MessageType for protobuf message com.hamropatro.grpc.cms.ImageUploadResponse
|
|
40
|
+
*/
|
|
41
|
+
export declare const ImageUploadResponse: ImageUploadResponse$Type;
|
|
42
|
+
/**
|
|
43
|
+
* @generated ServiceType for protobuf service com.hamropatro.grpc.cms.ImageUploadService
|
|
44
|
+
*/
|
|
45
|
+
export declare const ImageUploadService: ServiceType;
|
|
46
|
+
export {};
|