@abyss-project/cloud 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/server-sent-events/index.d.ts +1 -0
- package/dist/server-sent-events/index.js +17 -0
- package/dist/server-sent-events/protocols/cloud/cloud.sse-protocol.d.ts +181 -0
- package/dist/server-sent-events/protocols/cloud/cloud.sse-protocol.js +28 -0
- package/dist/server-sent-events/protocols/cloud/index.d.ts +1 -0
- package/dist/server-sent-events/protocols/cloud/index.js +17 -0
- package/dist/server-sent-events/protocols/index.d.ts +11 -0
- package/dist/server-sent-events/protocols/index.js +22 -0
- package/dist/types/interface/api/requests/cloud-activity.admin.request.d.ts +1 -2
- package/dist/types/interface/api/requests/cloud-activity.request.d.ts +2 -3
- package/dist/types/interface/api/requests/cloud-public-access.admin.request.d.ts +5 -6
- package/dist/types/interface/api/requests/cloud-public-access.request.d.ts +9 -10
- package/dist/types/interface/api/requests/cloud-public-share.admin.request.d.ts +5 -6
- package/dist/types/interface/api/requests/cloud-public-share.request.d.ts +9 -10
- package/dist/types/interface/api/requests/cloud-share.admin.request.d.ts +6 -7
- package/dist/types/interface/api/requests/cloud-share.request.d.ts +7 -8
- package/dist/types/interface/api/requests/cloud-tag.request.d.ts +8 -9
- package/dist/types/interface/api/requests/cloud.admin.request.d.ts +6 -7
- package/dist/types/interface/api/requests/cloud.request.d.ts +9 -7
- package/dist/types/interface/api/requests/file-version.request.d.ts +4 -5
- package/dist/types/interface/api/requests/file.request.d.ts +15 -16
- package/dist/types/interface/api/requests/folder.request.d.ts +9 -10
- package/dist/types/interface/api/requests/gallery.admin.request.d.ts +6 -7
- package/dist/types/interface/api/requests/gallery.request.d.ts +8 -9
- package/dist/types/interface/api/requests/user.admin.request.d.ts +5 -6
- package/dist/types/others.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { IAxiosRetryConfig } from 'axios-retry';
|
|
|
2
2
|
export * from './api';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './utils';
|
|
5
|
+
export * from './server-sent-events';
|
|
5
6
|
export declare const API_KEY_HEADER = "abyss-cloud-api-key";
|
|
6
7
|
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
7
8
|
type CoreConfig = {
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ const axios_retry_1 = __importStar(require("axios-retry"));
|
|
|
36
36
|
__exportStar(require("./api"), exports);
|
|
37
37
|
__exportStar(require("./types"), exports);
|
|
38
38
|
__exportStar(require("./utils"), exports);
|
|
39
|
+
__exportStar(require("./server-sent-events"), exports);
|
|
39
40
|
const MONITOR_DEFAULT_BASE_URL = 'https://cloud-api.abyss-project.fr/api/';
|
|
40
41
|
exports.API_KEY_HEADER = 'abyss-cloud-api-key';
|
|
41
42
|
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './protocols';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./protocols"), exports);
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { ICloud, IFile, IFolder, ValueOf } from '../../../types';
|
|
2
|
+
export declare enum CloudSSEEvent {
|
|
3
|
+
CLOUD_FILE_CREATE = "cloud.file.create",
|
|
4
|
+
CLOUD_FILE_UPDATE = "cloud.file.update",
|
|
5
|
+
CLOUD_FILE_DELETE = "cloud.file.delete",
|
|
6
|
+
CLOUD_FILE_MOVE = "cloud.file.move",
|
|
7
|
+
CLOUD_FILE_RESTORE = "cloud.file.restore",
|
|
8
|
+
CLOUD_FILE_COPY = "cloud.file.copy",
|
|
9
|
+
CLOUD_FOLDER_CREATE = "cloud.folder.create",
|
|
10
|
+
CLOUD_FOLDER_UPDATE = "cloud.folder.update",
|
|
11
|
+
CLOUD_FOLDER_DELETE = "cloud.folder.delete",
|
|
12
|
+
CLOUD_FOLDER_MOVE = "cloud.folder.move",
|
|
13
|
+
CLOUD_FOLDER_RESTORE = "cloud.folder.restore",
|
|
14
|
+
CLOUD_FOLDER_COPY = "cloud.folder.copy",
|
|
15
|
+
CLOUD_UPDATE = "cloud.update",
|
|
16
|
+
CLOUD_TRASH_CLEAN = "cloud.trash.clean"
|
|
17
|
+
}
|
|
18
|
+
export declare enum SSEChannels {
|
|
19
|
+
CLOUD = "sse:cloud"
|
|
20
|
+
}
|
|
21
|
+
export type CloudSSEMessageContent = ValueOf<{
|
|
22
|
+
[K in CloudSSEEvent]: {
|
|
23
|
+
type: K;
|
|
24
|
+
payload: CloudSSEEventPayload[K];
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export declare class CloudSSEEventPayload implements Record<CloudSSEEvent, Record<string, any>> {
|
|
28
|
+
[CloudSSEEvent.CLOUD_FILE_CREATE]: {
|
|
29
|
+
cloudId: string;
|
|
30
|
+
file: IFile;
|
|
31
|
+
repository: {
|
|
32
|
+
folder: IFolder[];
|
|
33
|
+
file: IFile[];
|
|
34
|
+
size: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
[CloudSSEEvent.CLOUD_FILE_UPDATE]: {
|
|
38
|
+
cloudId: string;
|
|
39
|
+
file: IFile;
|
|
40
|
+
repository: {
|
|
41
|
+
folder: IFolder[];
|
|
42
|
+
file: IFile[];
|
|
43
|
+
size: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
[CloudSSEEvent.CLOUD_FILE_DELETE]: {
|
|
47
|
+
cloudId: string;
|
|
48
|
+
fileId: string;
|
|
49
|
+
fileName: string;
|
|
50
|
+
repository: {
|
|
51
|
+
folder: IFolder[];
|
|
52
|
+
file: IFile[];
|
|
53
|
+
size: number;
|
|
54
|
+
};
|
|
55
|
+
trash: {
|
|
56
|
+
folder: IFolder[];
|
|
57
|
+
file: IFile[];
|
|
58
|
+
size: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
[CloudSSEEvent.CLOUD_FILE_MOVE]: {
|
|
62
|
+
cloudId: string;
|
|
63
|
+
file: IFile;
|
|
64
|
+
oldFolderId: string | null;
|
|
65
|
+
newFolderId: string | null;
|
|
66
|
+
repository: {
|
|
67
|
+
folder: IFolder[];
|
|
68
|
+
file: IFile[];
|
|
69
|
+
size: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
[CloudSSEEvent.CLOUD_FILE_RESTORE]: {
|
|
73
|
+
cloudId: string;
|
|
74
|
+
file: IFile;
|
|
75
|
+
repository: {
|
|
76
|
+
folder: IFolder[];
|
|
77
|
+
file: IFile[];
|
|
78
|
+
size: number;
|
|
79
|
+
};
|
|
80
|
+
trash: {
|
|
81
|
+
folder: IFolder[];
|
|
82
|
+
file: IFile[];
|
|
83
|
+
size: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
[CloudSSEEvent.CLOUD_FILE_COPY]: {
|
|
87
|
+
cloudId: string;
|
|
88
|
+
file: IFile;
|
|
89
|
+
originalFileId: string;
|
|
90
|
+
repository: {
|
|
91
|
+
folder: IFolder[];
|
|
92
|
+
file: IFile[];
|
|
93
|
+
size: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
[CloudSSEEvent.CLOUD_FOLDER_CREATE]: {
|
|
97
|
+
cloudId: string;
|
|
98
|
+
folder: IFolder;
|
|
99
|
+
repository: {
|
|
100
|
+
folder: IFolder[];
|
|
101
|
+
file: IFile[];
|
|
102
|
+
size: number;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
[CloudSSEEvent.CLOUD_FOLDER_UPDATE]: {
|
|
106
|
+
cloudId: string;
|
|
107
|
+
folder: IFolder;
|
|
108
|
+
repository: {
|
|
109
|
+
folder: IFolder[];
|
|
110
|
+
file: IFile[];
|
|
111
|
+
size: number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
[CloudSSEEvent.CLOUD_FOLDER_DELETE]: {
|
|
115
|
+
cloudId: string;
|
|
116
|
+
folderId: string;
|
|
117
|
+
folderName: string;
|
|
118
|
+
repository: {
|
|
119
|
+
folder: IFolder[];
|
|
120
|
+
file: IFile[];
|
|
121
|
+
size: number;
|
|
122
|
+
};
|
|
123
|
+
trash: {
|
|
124
|
+
folder: IFolder[];
|
|
125
|
+
file: IFile[];
|
|
126
|
+
size: number;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
[CloudSSEEvent.CLOUD_FOLDER_MOVE]: {
|
|
130
|
+
cloudId: string;
|
|
131
|
+
folder: IFolder;
|
|
132
|
+
oldParentId: string | null;
|
|
133
|
+
newParentId: string | null;
|
|
134
|
+
repository: {
|
|
135
|
+
folder: IFolder[];
|
|
136
|
+
file: IFile[];
|
|
137
|
+
size: number;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
[CloudSSEEvent.CLOUD_FOLDER_RESTORE]: {
|
|
141
|
+
cloudId: string;
|
|
142
|
+
folder: IFolder;
|
|
143
|
+
repository: {
|
|
144
|
+
folder: IFolder[];
|
|
145
|
+
file: IFile[];
|
|
146
|
+
size: number;
|
|
147
|
+
};
|
|
148
|
+
trash: {
|
|
149
|
+
folder: IFolder[];
|
|
150
|
+
file: IFile[];
|
|
151
|
+
size: number;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
[CloudSSEEvent.CLOUD_FOLDER_COPY]: {
|
|
155
|
+
cloudId: string;
|
|
156
|
+
folder: IFolder;
|
|
157
|
+
originalFolderId: string;
|
|
158
|
+
repository: {
|
|
159
|
+
folder: IFolder[];
|
|
160
|
+
file: IFile[];
|
|
161
|
+
size: number;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
[CloudSSEEvent.CLOUD_UPDATE]: {
|
|
165
|
+
cloudId: string;
|
|
166
|
+
cloud: ICloud;
|
|
167
|
+
};
|
|
168
|
+
[CloudSSEEvent.CLOUD_TRASH_CLEAN]: {
|
|
169
|
+
cloudId: string;
|
|
170
|
+
repository: {
|
|
171
|
+
folder: IFolder[];
|
|
172
|
+
file: IFile[];
|
|
173
|
+
size: number;
|
|
174
|
+
};
|
|
175
|
+
trash: {
|
|
176
|
+
folder: IFolder[];
|
|
177
|
+
file: IFile[];
|
|
178
|
+
size: number;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudSSEEventPayload = exports.SSEChannels = exports.CloudSSEEvent = void 0;
|
|
4
|
+
var CloudSSEEvent;
|
|
5
|
+
(function (CloudSSEEvent) {
|
|
6
|
+
CloudSSEEvent["CLOUD_FILE_CREATE"] = "cloud.file.create";
|
|
7
|
+
CloudSSEEvent["CLOUD_FILE_UPDATE"] = "cloud.file.update";
|
|
8
|
+
CloudSSEEvent["CLOUD_FILE_DELETE"] = "cloud.file.delete";
|
|
9
|
+
CloudSSEEvent["CLOUD_FILE_MOVE"] = "cloud.file.move";
|
|
10
|
+
CloudSSEEvent["CLOUD_FILE_RESTORE"] = "cloud.file.restore";
|
|
11
|
+
CloudSSEEvent["CLOUD_FILE_COPY"] = "cloud.file.copy";
|
|
12
|
+
CloudSSEEvent["CLOUD_FOLDER_CREATE"] = "cloud.folder.create";
|
|
13
|
+
CloudSSEEvent["CLOUD_FOLDER_UPDATE"] = "cloud.folder.update";
|
|
14
|
+
CloudSSEEvent["CLOUD_FOLDER_DELETE"] = "cloud.folder.delete";
|
|
15
|
+
CloudSSEEvent["CLOUD_FOLDER_MOVE"] = "cloud.folder.move";
|
|
16
|
+
CloudSSEEvent["CLOUD_FOLDER_RESTORE"] = "cloud.folder.restore";
|
|
17
|
+
CloudSSEEvent["CLOUD_FOLDER_COPY"] = "cloud.folder.copy";
|
|
18
|
+
CloudSSEEvent["CLOUD_UPDATE"] = "cloud.update";
|
|
19
|
+
CloudSSEEvent["CLOUD_TRASH_CLEAN"] = "cloud.trash.clean";
|
|
20
|
+
})(CloudSSEEvent || (exports.CloudSSEEvent = CloudSSEEvent = {}));
|
|
21
|
+
var SSEChannels;
|
|
22
|
+
(function (SSEChannels) {
|
|
23
|
+
SSEChannels["CLOUD"] = "sse:cloud";
|
|
24
|
+
})(SSEChannels || (exports.SSEChannels = SSEChannels = {}));
|
|
25
|
+
class CloudSSEEventPayload {
|
|
26
|
+
}
|
|
27
|
+
exports.CloudSSEEventPayload = CloudSSEEventPayload;
|
|
28
|
+
CloudSSEEvent.CLOUD_FILE_CREATE, CloudSSEEvent.CLOUD_FILE_UPDATE, CloudSSEEvent.CLOUD_FILE_DELETE, CloudSSEEvent.CLOUD_FILE_MOVE, CloudSSEEvent.CLOUD_FILE_RESTORE, CloudSSEEvent.CLOUD_FILE_COPY, CloudSSEEvent.CLOUD_FOLDER_CREATE, CloudSSEEvent.CLOUD_FOLDER_UPDATE, CloudSSEEvent.CLOUD_FOLDER_DELETE, CloudSSEEvent.CLOUD_FOLDER_MOVE, CloudSSEEvent.CLOUD_FOLDER_RESTORE, CloudSSEEvent.CLOUD_FOLDER_COPY, CloudSSEEvent.CLOUD_UPDATE, CloudSSEEvent.CLOUD_TRASH_CLEAN;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cloud.sse-protocol';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cloud.sse-protocol"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.SYSTEM_PROTOCOL_EVENTS = void 0;
|
|
18
|
+
var SYSTEM_PROTOCOL_EVENTS;
|
|
19
|
+
(function (SYSTEM_PROTOCOL_EVENTS) {
|
|
20
|
+
SYSTEM_PROTOCOL_EVENTS["PING"] = "PING";
|
|
21
|
+
})(SYSTEM_PROTOCOL_EVENTS || (exports.SYSTEM_PROTOCOL_EVENTS = SYSTEM_PROTOCOL_EVENTS = {}));
|
|
22
|
+
__exportStar(require("./cloud"), exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { CloudActivityAction } from '../../../enum';
|
|
3
2
|
import { QueryPaginate } from '..';
|
|
4
|
-
export interface IGetCloudActivityAdminParams
|
|
3
|
+
export interface IGetCloudActivityAdminParams {
|
|
5
4
|
cloudActivityId: string;
|
|
6
5
|
}
|
|
7
6
|
export type IPaginateCloudActivityAdminQuery = QueryPaginate & {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { CloudActivityAction } from '../../../enum';
|
|
3
2
|
import { QueryPaginate } from '..';
|
|
4
|
-
export interface IGetCloudActivityParams
|
|
3
|
+
export interface IGetCloudActivityParams {
|
|
5
4
|
cloudId: string;
|
|
6
5
|
cloudActivityId: string;
|
|
7
6
|
}
|
|
8
|
-
export interface IPaginateCloudActivityParams
|
|
7
|
+
export interface IPaginateCloudActivityParams {
|
|
9
8
|
cloudId: string;
|
|
10
9
|
}
|
|
11
10
|
export type IPaginateCloudActivityQuery = QueryPaginate & {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
import { CloudPublicAccessType } from '../../../enum';
|
|
4
|
-
export interface IGetCloudPublicAccessAdminParams
|
|
3
|
+
export interface IGetCloudPublicAccessAdminParams {
|
|
5
4
|
cloudPublicAccessId: string;
|
|
6
5
|
}
|
|
7
6
|
export interface ICreateCloudPublicAccessAdminBody {
|
|
@@ -9,19 +8,19 @@ export interface ICreateCloudPublicAccessAdminBody {
|
|
|
9
8
|
folderId: string | null;
|
|
10
9
|
cloudId: string;
|
|
11
10
|
}
|
|
12
|
-
export interface IUpdateCloudPublicAccessAdminParams
|
|
11
|
+
export interface IUpdateCloudPublicAccessAdminParams {
|
|
13
12
|
cloudPublicAccessId: string;
|
|
14
13
|
}
|
|
15
14
|
export interface IUpdateCloudPublicAccessAdminBody {
|
|
16
15
|
name?: string;
|
|
17
16
|
}
|
|
18
|
-
export interface IDeleteCloudPublicAccessAdminParams
|
|
17
|
+
export interface IDeleteCloudPublicAccessAdminParams {
|
|
19
18
|
cloudPublicAccessId: string;
|
|
20
19
|
}
|
|
21
|
-
export interface IRegenerateCloudPublicAccessAdminParams
|
|
20
|
+
export interface IRegenerateCloudPublicAccessAdminParams {
|
|
22
21
|
cloudPublicAccessId: string;
|
|
23
22
|
}
|
|
24
|
-
export interface IRefreshCloudPublicAccessAdminParams
|
|
23
|
+
export interface IRefreshCloudPublicAccessAdminParams {
|
|
25
24
|
cloudPublicAccessId: string;
|
|
26
25
|
}
|
|
27
26
|
export type IPaginateCloudPublicAccessAdminQuery = {
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
import { CloudPublicAccessType } from '../../../enum';
|
|
4
|
-
export interface IGetCloudPublicAccessParams
|
|
3
|
+
export interface IGetCloudPublicAccessParams {
|
|
5
4
|
cloudId: string;
|
|
6
5
|
cloudPublicAccessId: string;
|
|
7
6
|
}
|
|
8
|
-
export interface IGetByTokenCloudPublicAccessParams
|
|
7
|
+
export interface IGetByTokenCloudPublicAccessParams {
|
|
9
8
|
token: string;
|
|
10
9
|
}
|
|
11
|
-
export interface ICreateCloudPublicAccessParams
|
|
10
|
+
export interface ICreateCloudPublicAccessParams {
|
|
12
11
|
cloudId: string;
|
|
13
12
|
}
|
|
14
13
|
export interface ICreateCloudPublicAccessBody {
|
|
15
14
|
name: string;
|
|
16
15
|
folderId: string | null;
|
|
17
16
|
}
|
|
18
|
-
export interface IUpdateCloudPublicAccessParams
|
|
17
|
+
export interface IUpdateCloudPublicAccessParams {
|
|
19
18
|
cloudId: string;
|
|
20
19
|
cloudPublicAccessId: string;
|
|
21
20
|
}
|
|
22
21
|
export interface IUpdateCloudPublicAccessBody {
|
|
23
22
|
name?: string;
|
|
24
23
|
}
|
|
25
|
-
export interface IDeleteCloudPublicAccessParams
|
|
24
|
+
export interface IDeleteCloudPublicAccessParams {
|
|
26
25
|
cloudId: string;
|
|
27
26
|
cloudPublicAccessId: string;
|
|
28
27
|
}
|
|
29
|
-
export interface IRegenerateCloudPublicAccessParams
|
|
28
|
+
export interface IRegenerateCloudPublicAccessParams {
|
|
30
29
|
cloudId: string;
|
|
31
30
|
cloudPublicAccessId: string;
|
|
32
31
|
}
|
|
33
|
-
export interface IRefreshCloudPublicAccessParams
|
|
32
|
+
export interface IRefreshCloudPublicAccessParams {
|
|
34
33
|
cloudId: string;
|
|
35
34
|
cloudPublicAccessId: string;
|
|
36
35
|
}
|
|
37
|
-
export interface IPaginateCloudPublicAccessParams
|
|
36
|
+
export interface IPaginateCloudPublicAccessParams {
|
|
38
37
|
cloudId: string;
|
|
39
38
|
}
|
|
40
39
|
export type IPaginateCloudPublicAccessQuery = {
|
|
@@ -42,7 +41,7 @@ export type IPaginateCloudPublicAccessQuery = {
|
|
|
42
41
|
onlyRoot?: boolean;
|
|
43
42
|
type?: CloudPublicAccessType;
|
|
44
43
|
} & QueryPaginate;
|
|
45
|
-
export interface IGetUploadPreSignUrlCloudPublicAccessParams
|
|
44
|
+
export interface IGetUploadPreSignUrlCloudPublicAccessParams {
|
|
46
45
|
token: string;
|
|
47
46
|
}
|
|
48
47
|
export interface IGetUploadPreSignUrlCloudPublicAccessBody {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
export interface ICreateCloudPublicShareAdminBody {
|
|
4
3
|
name: string;
|
|
@@ -8,7 +7,7 @@ export interface ICreateCloudPublicShareAdminBody {
|
|
|
8
7
|
isActive?: boolean;
|
|
9
8
|
cloudId: string;
|
|
10
9
|
}
|
|
11
|
-
export interface IUpdateCloudPublicShareAdminParams
|
|
10
|
+
export interface IUpdateCloudPublicShareAdminParams {
|
|
12
11
|
cloudPublicShareId: string;
|
|
13
12
|
}
|
|
14
13
|
export interface IUpdateCloudPublicShareAdminBody {
|
|
@@ -16,10 +15,10 @@ export interface IUpdateCloudPublicShareAdminBody {
|
|
|
16
15
|
endDate?: Date | null;
|
|
17
16
|
isActive?: boolean;
|
|
18
17
|
}
|
|
19
|
-
export interface IDeleteCloudPublicShareAdminParams
|
|
18
|
+
export interface IDeleteCloudPublicShareAdminParams {
|
|
20
19
|
cloudPublicShareId: string;
|
|
21
20
|
}
|
|
22
|
-
export interface IRegenerateCloudPublicShareAdminParams
|
|
21
|
+
export interface IRegenerateCloudPublicShareAdminParams {
|
|
23
22
|
cloudPublicShareId: string;
|
|
24
23
|
}
|
|
25
24
|
export type IPaginateCloudPublicShareAdminQuery = {
|
|
@@ -28,9 +27,9 @@ export type IPaginateCloudPublicShareAdminQuery = {
|
|
|
28
27
|
fileId?: string[];
|
|
29
28
|
folderId?: string[];
|
|
30
29
|
} & QueryPaginate;
|
|
31
|
-
export interface IGetCloudPublicShareAdminParams
|
|
30
|
+
export interface IGetCloudPublicShareAdminParams {
|
|
32
31
|
cloudPublicShareId: string;
|
|
33
32
|
}
|
|
34
|
-
export interface IListCloudPublicShareAdminParams
|
|
33
|
+
export interface IListCloudPublicShareAdminParams {
|
|
35
34
|
cloudId: string;
|
|
36
35
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
|
-
export interface ICreateCloudPublicShareParams
|
|
2
|
+
export interface ICreateCloudPublicShareParams {
|
|
4
3
|
cloudId: string;
|
|
5
4
|
}
|
|
6
5
|
export interface ICreateCloudPublicShareBody {
|
|
@@ -10,7 +9,7 @@ export interface ICreateCloudPublicShareBody {
|
|
|
10
9
|
endDate?: Date | null;
|
|
11
10
|
isActive?: boolean;
|
|
12
11
|
}
|
|
13
|
-
export interface IUpdateCloudPublicShareParams
|
|
12
|
+
export interface IUpdateCloudPublicShareParams {
|
|
14
13
|
cloudId: string;
|
|
15
14
|
cloudPublicShareId: string;
|
|
16
15
|
}
|
|
@@ -19,15 +18,15 @@ export interface IUpdateCloudPublicShareBody {
|
|
|
19
18
|
endDate?: Date | null;
|
|
20
19
|
isActive?: boolean;
|
|
21
20
|
}
|
|
22
|
-
export interface IDeleteCloudPublicShareParams
|
|
21
|
+
export interface IDeleteCloudPublicShareParams {
|
|
23
22
|
cloudId: string;
|
|
24
23
|
cloudPublicShareId: string;
|
|
25
24
|
}
|
|
26
|
-
export interface IRegenerateCloudPublicShareParams
|
|
25
|
+
export interface IRegenerateCloudPublicShareParams {
|
|
27
26
|
cloudId: string;
|
|
28
27
|
cloudPublicShareId: string;
|
|
29
28
|
}
|
|
30
|
-
export interface IPaginateCloudPublicShareParams
|
|
29
|
+
export interface IPaginateCloudPublicShareParams {
|
|
31
30
|
cloudId: string;
|
|
32
31
|
}
|
|
33
32
|
export type IPaginateCloudPublicShareQuery = {
|
|
@@ -35,16 +34,16 @@ export type IPaginateCloudPublicShareQuery = {
|
|
|
35
34
|
fileId?: string[];
|
|
36
35
|
folderId?: string[];
|
|
37
36
|
} & QueryPaginate;
|
|
38
|
-
export interface IListCloudPublicShareParams
|
|
37
|
+
export interface IListCloudPublicShareParams {
|
|
39
38
|
cloudId: string;
|
|
40
39
|
}
|
|
41
|
-
export interface IGetCloudPublicShareParams
|
|
40
|
+
export interface IGetCloudPublicShareParams {
|
|
42
41
|
cloudId: string;
|
|
43
42
|
cloudPublicShareId: string;
|
|
44
43
|
}
|
|
45
|
-
export interface IGetByIdentifierCloudPublicShareParams
|
|
44
|
+
export interface IGetByIdentifierCloudPublicShareParams {
|
|
46
45
|
identifier: string;
|
|
47
46
|
}
|
|
48
|
-
export interface IDownloadCloudPublicShareParams
|
|
47
|
+
export interface IDownloadCloudPublicShareParams {
|
|
49
48
|
identifier: string;
|
|
50
49
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
export interface ICreateCloudShareAdminBody {
|
|
4
3
|
userId: string;
|
|
@@ -9,7 +8,7 @@ export interface ICreateCloudShareAdminBody {
|
|
|
9
8
|
description?: string | null;
|
|
10
9
|
shouldThrowErrorOnLimitReached?: boolean;
|
|
11
10
|
}
|
|
12
|
-
export interface IUpdateCloudShareAdminParams
|
|
11
|
+
export interface IUpdateCloudShareAdminParams {
|
|
13
12
|
cloudShareId: string;
|
|
14
13
|
}
|
|
15
14
|
export interface IUpdateCloudShareAdminBody {
|
|
@@ -18,22 +17,22 @@ export interface IUpdateCloudShareAdminBody {
|
|
|
18
17
|
endDate?: Date | null;
|
|
19
18
|
description?: string | null;
|
|
20
19
|
}
|
|
21
|
-
export interface IDeleteCloudShareAdminParams
|
|
20
|
+
export interface IDeleteCloudShareAdminParams {
|
|
22
21
|
cloudShareId: string;
|
|
23
22
|
}
|
|
24
|
-
export interface IGetCloudShareAdminParams
|
|
23
|
+
export interface IGetCloudShareAdminParams {
|
|
25
24
|
cloudShareId: string;
|
|
26
25
|
}
|
|
27
26
|
export type IPaginateCloudShareAdminQuery = QueryPaginate;
|
|
28
|
-
export interface IGetShareToMeCloudShareAdminParams
|
|
27
|
+
export interface IGetShareToMeCloudShareAdminParams {
|
|
29
28
|
cloudShareId: string;
|
|
30
29
|
}
|
|
31
30
|
export type IPaginateShareToMeCloudShareAdminQuery = {
|
|
32
31
|
userId?: string[];
|
|
33
32
|
} & QueryPaginate;
|
|
34
|
-
export interface IAcceptCloudShareAdminParams
|
|
33
|
+
export interface IAcceptCloudShareAdminParams {
|
|
35
34
|
cloudShareId: string;
|
|
36
35
|
}
|
|
37
|
-
export interface IDeclineCloudShareAdminParams
|
|
36
|
+
export interface IDeclineCloudShareAdminParams {
|
|
38
37
|
cloudShareId: string;
|
|
39
38
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
export interface ICreateCloudShareBody {
|
|
4
3
|
userId: string;
|
|
@@ -8,7 +7,7 @@ export interface ICreateCloudShareBody {
|
|
|
8
7
|
endDate?: Date | null;
|
|
9
8
|
description?: string;
|
|
10
9
|
}
|
|
11
|
-
export interface IUpdateCloudShareParams
|
|
10
|
+
export interface IUpdateCloudShareParams {
|
|
12
11
|
cloudShareId: string;
|
|
13
12
|
}
|
|
14
13
|
export interface IUpdateCloudShareBody {
|
|
@@ -17,25 +16,25 @@ export interface IUpdateCloudShareBody {
|
|
|
17
16
|
endDate?: Date | null;
|
|
18
17
|
description?: string | null;
|
|
19
18
|
}
|
|
20
|
-
export interface IDeleteCloudShareParams
|
|
19
|
+
export interface IDeleteCloudShareParams {
|
|
21
20
|
cloudShareId: string;
|
|
22
21
|
}
|
|
23
|
-
export interface IGetCloudShareParams
|
|
22
|
+
export interface IGetCloudShareParams {
|
|
24
23
|
cloudShareId: string;
|
|
25
24
|
}
|
|
26
25
|
export type IPaginateCloudShareQuery = {
|
|
27
26
|
cloudId?: string[];
|
|
28
27
|
} & QueryPaginate;
|
|
29
|
-
export interface IGetShareToMeCloudShareParams
|
|
28
|
+
export interface IGetShareToMeCloudShareParams {
|
|
30
29
|
cloudShareId: string;
|
|
31
30
|
}
|
|
32
31
|
export type IPaginateShareToMeCloudShareQuery = QueryPaginate;
|
|
33
|
-
export interface IAcceptCloudShareParams
|
|
32
|
+
export interface IAcceptCloudShareParams {
|
|
34
33
|
cloudShareId: string;
|
|
35
34
|
}
|
|
36
|
-
export interface IDeclineCloudShareParams
|
|
35
|
+
export interface IDeclineCloudShareParams {
|
|
37
36
|
cloudShareId: string;
|
|
38
37
|
}
|
|
39
|
-
export interface ILeaveCloudShareParams
|
|
38
|
+
export interface ILeaveCloudShareParams {
|
|
40
39
|
cloudId: string;
|
|
41
40
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
|
-
export interface ICreateCloudTagParams
|
|
2
|
+
export interface ICreateCloudTagParams {
|
|
4
3
|
cloudId: string;
|
|
5
4
|
}
|
|
6
5
|
export interface ICreateCloudTagBody {
|
|
@@ -10,7 +9,7 @@ export interface ICreateCloudTagBody {
|
|
|
10
9
|
description?: string;
|
|
11
10
|
}[];
|
|
12
11
|
}
|
|
13
|
-
export interface IUpdateCloudTagParams
|
|
12
|
+
export interface IUpdateCloudTagParams {
|
|
14
13
|
cloudId: string;
|
|
15
14
|
cloudTagId: string;
|
|
16
15
|
}
|
|
@@ -19,31 +18,31 @@ export interface IUpdateCloudTagBody {
|
|
|
19
18
|
color?: string;
|
|
20
19
|
description?: string;
|
|
21
20
|
}
|
|
22
|
-
export interface IDeleteCloudTagParams
|
|
21
|
+
export interface IDeleteCloudTagParams {
|
|
23
22
|
cloudId: string;
|
|
24
23
|
cloudTagId: string;
|
|
25
24
|
}
|
|
26
|
-
export interface IAddToFileCloudTagParams
|
|
25
|
+
export interface IAddToFileCloudTagParams {
|
|
27
26
|
cloudId: string;
|
|
28
27
|
cloudTagId: string;
|
|
29
28
|
fileId: string;
|
|
30
29
|
}
|
|
31
|
-
export interface IAddToFolderCloudTagParams
|
|
30
|
+
export interface IAddToFolderCloudTagParams {
|
|
32
31
|
cloudId: string;
|
|
33
32
|
cloudTagId: string;
|
|
34
33
|
folderId: string;
|
|
35
34
|
}
|
|
36
|
-
export interface IRemoveToFileCloudTagParams
|
|
35
|
+
export interface IRemoveToFileCloudTagParams {
|
|
37
36
|
cloudId: string;
|
|
38
37
|
cloudTagId: string;
|
|
39
38
|
fileId: string;
|
|
40
39
|
}
|
|
41
|
-
export interface IRemoveToFolderCloudTagParams
|
|
40
|
+
export interface IRemoveToFolderCloudTagParams {
|
|
42
41
|
cloudId: string;
|
|
43
42
|
cloudTagId: string;
|
|
44
43
|
folderId: string;
|
|
45
44
|
}
|
|
46
|
-
export interface IPaginateCloudTagParams
|
|
45
|
+
export interface IPaginateCloudTagParams {
|
|
47
46
|
cloudId: string;
|
|
48
47
|
}
|
|
49
48
|
export type IPaginateCloudTagQuery = QueryPaginate & {
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
export interface ICreateCloudAdminBody {
|
|
4
3
|
name: string;
|
|
5
4
|
userId: string;
|
|
6
5
|
}
|
|
7
|
-
export interface IDeleteCloudAdminParams
|
|
6
|
+
export interface IDeleteCloudAdminParams {
|
|
8
7
|
cloudId: string;
|
|
9
8
|
}
|
|
10
|
-
export interface IUpdateCloudAdminParams
|
|
9
|
+
export interface IUpdateCloudAdminParams {
|
|
11
10
|
cloudId: string;
|
|
12
11
|
}
|
|
13
12
|
export interface IUpdateCloudAdminBody {
|
|
14
13
|
name?: string;
|
|
15
14
|
}
|
|
16
|
-
export interface IGetTrashCloudAdminParams
|
|
15
|
+
export interface IGetTrashCloudAdminParams {
|
|
17
16
|
cloudId: string;
|
|
18
17
|
}
|
|
19
|
-
export interface IGetRepositoryCloudAdminParams
|
|
18
|
+
export interface IGetRepositoryCloudAdminParams {
|
|
20
19
|
cloudId: string;
|
|
21
20
|
}
|
|
22
|
-
export interface IGetCloudAdminParams
|
|
21
|
+
export interface IGetCloudAdminParams {
|
|
23
22
|
cloudId: string;
|
|
24
23
|
}
|
|
25
|
-
export interface IAddFileFromStorageCloudAdminParams
|
|
24
|
+
export interface IAddFileFromStorageCloudAdminParams {
|
|
26
25
|
cloudId: string;
|
|
27
26
|
}
|
|
28
27
|
export interface IAddFileFromStorageCloudAdminBody {
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
export interface ICreateCloudBody {
|
|
4
3
|
name: string;
|
|
5
4
|
}
|
|
6
|
-
export interface IDeleteCloudParams
|
|
5
|
+
export interface IDeleteCloudParams {
|
|
7
6
|
cloudId: string;
|
|
8
7
|
}
|
|
9
|
-
export interface IUpdateCloudParams
|
|
8
|
+
export interface IUpdateCloudParams {
|
|
10
9
|
cloudId: string;
|
|
11
10
|
}
|
|
12
11
|
export interface IUpdateCloudBody {
|
|
13
12
|
name?: string;
|
|
14
13
|
}
|
|
15
|
-
export interface IGetTrashCloudParams
|
|
14
|
+
export interface IGetTrashCloudParams {
|
|
16
15
|
cloudId: string;
|
|
17
16
|
}
|
|
18
|
-
export interface ICleanTrashCloudParams
|
|
17
|
+
export interface ICleanTrashCloudParams {
|
|
19
18
|
cloudId: string;
|
|
20
19
|
}
|
|
21
|
-
export interface IGetRepositoryCloudParams
|
|
20
|
+
export interface IGetRepositoryCloudParams {
|
|
22
21
|
cloudId: string;
|
|
23
22
|
}
|
|
24
|
-
export interface IGetCloudParams
|
|
23
|
+
export interface IGetCloudParams {
|
|
25
24
|
cloudId: string;
|
|
26
25
|
}
|
|
26
|
+
export type ISSECloudParams = {
|
|
27
|
+
cloudId: string;
|
|
28
|
+
};
|
|
27
29
|
export type IPaginateCloudQuery = {
|
|
28
30
|
name?: string;
|
|
29
31
|
cloudTagId?: string[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
|
-
export interface IUpdateFileVersionParams
|
|
2
|
+
export interface IUpdateFileVersionParams {
|
|
4
3
|
cloudId: string;
|
|
5
4
|
fileId: string;
|
|
6
5
|
fileVersionId: string;
|
|
@@ -9,17 +8,17 @@ export interface IUpdateFileVersionBody {
|
|
|
9
8
|
name?: string;
|
|
10
9
|
description?: string;
|
|
11
10
|
}
|
|
12
|
-
export interface IActivateFileVersionParams
|
|
11
|
+
export interface IActivateFileVersionParams {
|
|
13
12
|
cloudId: string;
|
|
14
13
|
fileId: string;
|
|
15
14
|
fileVersionId: string;
|
|
16
15
|
}
|
|
17
|
-
export interface IDeleteFileVersionParams
|
|
16
|
+
export interface IDeleteFileVersionParams {
|
|
18
17
|
cloudId: string;
|
|
19
18
|
fileId: string;
|
|
20
19
|
fileVersionId: string;
|
|
21
20
|
}
|
|
22
|
-
export interface IPaginateFileVersionParams
|
|
21
|
+
export interface IPaginateFileVersionParams {
|
|
23
22
|
cloudId: string;
|
|
24
23
|
}
|
|
25
24
|
export type IPaginateFileVersionQuery = {
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { FileIdWithVersionId } from '../../../others';
|
|
3
2
|
import { QueryPaginate } from '..';
|
|
4
|
-
export interface ICreateFileParams
|
|
3
|
+
export interface ICreateFileParams {
|
|
5
4
|
cloudId: string;
|
|
6
5
|
}
|
|
7
6
|
export interface ICreateFileBody {
|
|
8
7
|
folderId: string | null;
|
|
9
8
|
name: string;
|
|
10
9
|
}
|
|
11
|
-
export interface IDeleteFileParams
|
|
10
|
+
export interface IDeleteFileParams {
|
|
12
11
|
cloudId: string;
|
|
13
12
|
fileId: string;
|
|
14
13
|
}
|
|
15
14
|
export type IDeleteFileQuery = {
|
|
16
15
|
force?: boolean;
|
|
17
16
|
};
|
|
18
|
-
export interface IRestoreFileParams
|
|
17
|
+
export interface IRestoreFileParams {
|
|
19
18
|
cloudId: string;
|
|
20
19
|
fileId: string;
|
|
21
20
|
}
|
|
22
|
-
export interface IGetFileParams
|
|
21
|
+
export interface IGetFileParams {
|
|
23
22
|
cloudId: string;
|
|
24
23
|
fileId: string;
|
|
25
24
|
}
|
|
26
|
-
export interface IPaginateFileParams
|
|
25
|
+
export interface IPaginateFileParams {
|
|
27
26
|
cloudId: string;
|
|
28
27
|
}
|
|
29
28
|
export type IPaginateFileQuery = QueryPaginate & {
|
|
30
29
|
name?: string;
|
|
31
30
|
deleted?: boolean;
|
|
32
31
|
};
|
|
33
|
-
export interface IUpdateFileParams
|
|
32
|
+
export interface IUpdateFileParams {
|
|
34
33
|
cloudId: string;
|
|
35
34
|
fileId: string;
|
|
36
35
|
}
|
|
@@ -39,18 +38,18 @@ export interface IUpdateFileBody {
|
|
|
39
38
|
description?: string;
|
|
40
39
|
saveVersion?: boolean;
|
|
41
40
|
}
|
|
42
|
-
export interface IRegenerateThumbnailFileParams
|
|
41
|
+
export interface IRegenerateThumbnailFileParams {
|
|
43
42
|
cloudId: string;
|
|
44
43
|
fileId: string;
|
|
45
44
|
}
|
|
46
|
-
export interface IMoveFileParams
|
|
45
|
+
export interface IMoveFileParams {
|
|
47
46
|
cloudId: string;
|
|
48
47
|
fileId: string;
|
|
49
48
|
}
|
|
50
49
|
export interface IMoveFileBody {
|
|
51
50
|
folderId: string | null;
|
|
52
51
|
}
|
|
53
|
-
export interface ICopyFileParams
|
|
52
|
+
export interface ICopyFileParams {
|
|
54
53
|
cloudId: string;
|
|
55
54
|
fileId: string;
|
|
56
55
|
}
|
|
@@ -58,7 +57,7 @@ export interface ICopyFileBody {
|
|
|
58
57
|
folderId: string | null;
|
|
59
58
|
name: string;
|
|
60
59
|
}
|
|
61
|
-
export interface IUploadFileParams
|
|
60
|
+
export interface IUploadFileParams {
|
|
62
61
|
cloudId: string;
|
|
63
62
|
}
|
|
64
63
|
export type IUploadFileBody = {
|
|
@@ -66,32 +65,32 @@ export type IUploadFileBody = {
|
|
|
66
65
|
name: string;
|
|
67
66
|
size: number;
|
|
68
67
|
};
|
|
69
|
-
export interface IWriteFileParams
|
|
68
|
+
export interface IWriteFileParams {
|
|
70
69
|
cloudId: string;
|
|
71
70
|
fileId: string;
|
|
72
71
|
}
|
|
73
72
|
export type IWriteFileBody = {
|
|
74
73
|
size: number;
|
|
75
74
|
};
|
|
76
|
-
export interface IDownloadFileParams
|
|
75
|
+
export interface IDownloadFileParams {
|
|
77
76
|
cloudId: string;
|
|
78
77
|
}
|
|
79
78
|
export type IDownloadFileBody = FileIdWithVersionId;
|
|
80
|
-
export interface IDecryptFileParams
|
|
79
|
+
export interface IDecryptFileParams {
|
|
81
80
|
cloudId: string;
|
|
82
81
|
fileId: string;
|
|
83
82
|
}
|
|
84
83
|
export interface IDecryptFileBody {
|
|
85
84
|
encryptPassword: string;
|
|
86
85
|
}
|
|
87
|
-
export interface IEncryptFileParams
|
|
86
|
+
export interface IEncryptFileParams {
|
|
88
87
|
cloudId: string;
|
|
89
88
|
fileId: string;
|
|
90
89
|
}
|
|
91
90
|
export interface IEncryptFileBody {
|
|
92
91
|
encryptPassword: string;
|
|
93
92
|
}
|
|
94
|
-
export interface IExtractFileParams
|
|
93
|
+
export interface IExtractFileParams {
|
|
95
94
|
cloudId: string;
|
|
96
95
|
fileId: string;
|
|
97
96
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
|
-
export interface ICreateFolderParams
|
|
2
|
+
export interface ICreateFolderParams {
|
|
4
3
|
cloudId: string;
|
|
5
4
|
}
|
|
6
5
|
export interface ICreateFolderBody {
|
|
@@ -8,29 +7,29 @@ export interface ICreateFolderBody {
|
|
|
8
7
|
name: string;
|
|
9
8
|
description?: string;
|
|
10
9
|
}
|
|
11
|
-
export interface IGetFolderParams
|
|
10
|
+
export interface IGetFolderParams {
|
|
12
11
|
cloudId: string;
|
|
13
12
|
folderId: string;
|
|
14
13
|
}
|
|
15
|
-
export interface IPaginateFolderParams
|
|
14
|
+
export interface IPaginateFolderParams {
|
|
16
15
|
cloudId: string;
|
|
17
16
|
}
|
|
18
17
|
export type IPaginateFolderQuery = {
|
|
19
18
|
name?: string;
|
|
20
19
|
deleted?: boolean;
|
|
21
20
|
} & QueryPaginate;
|
|
22
|
-
export interface IDeleteFolderParams
|
|
21
|
+
export interface IDeleteFolderParams {
|
|
23
22
|
cloudId: string;
|
|
24
23
|
folderId: string;
|
|
25
24
|
}
|
|
26
25
|
export interface IDeleteFolderQuery {
|
|
27
26
|
force?: boolean;
|
|
28
27
|
}
|
|
29
|
-
export interface IRestoreFolderParams
|
|
28
|
+
export interface IRestoreFolderParams {
|
|
30
29
|
cloudId: string;
|
|
31
30
|
folderId: string;
|
|
32
31
|
}
|
|
33
|
-
export interface IUpdateFolderParams
|
|
32
|
+
export interface IUpdateFolderParams {
|
|
34
33
|
cloudId: string;
|
|
35
34
|
folderId: string;
|
|
36
35
|
}
|
|
@@ -38,14 +37,14 @@ export interface IUpdateFolderBody {
|
|
|
38
37
|
name?: string;
|
|
39
38
|
description?: string;
|
|
40
39
|
}
|
|
41
|
-
export interface IMoveFolderParams
|
|
40
|
+
export interface IMoveFolderParams {
|
|
42
41
|
cloudId: string;
|
|
43
42
|
folderId: string;
|
|
44
43
|
}
|
|
45
44
|
export interface IMoveFolderBody {
|
|
46
45
|
folderId: string | null;
|
|
47
46
|
}
|
|
48
|
-
export interface ICopyFolderParams
|
|
47
|
+
export interface ICopyFolderParams {
|
|
49
48
|
cloudId: string;
|
|
50
49
|
folderId: string;
|
|
51
50
|
}
|
|
@@ -53,7 +52,7 @@ export interface ICopyFolderBody {
|
|
|
53
52
|
folderId: string | null;
|
|
54
53
|
name: string;
|
|
55
54
|
}
|
|
56
|
-
export interface IDownloadFolderParams
|
|
55
|
+
export interface IDownloadFolderParams {
|
|
57
56
|
cloudId: string;
|
|
58
57
|
}
|
|
59
58
|
export type IDownloadFolderBody = {
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
|
-
export interface IDeleteGalleryAdminParams
|
|
2
|
+
export interface IDeleteGalleryAdminParams {
|
|
4
3
|
galleryId: string;
|
|
5
4
|
}
|
|
6
|
-
export interface IUpdateGalleryAdminParams
|
|
5
|
+
export interface IUpdateGalleryAdminParams {
|
|
7
6
|
galleryId: string;
|
|
8
7
|
}
|
|
9
8
|
export interface IUpdateGalleryAdminBody {
|
|
10
9
|
name?: string;
|
|
11
10
|
folderId?: string | null;
|
|
12
11
|
}
|
|
13
|
-
export interface IGetGalleryAdminParams
|
|
12
|
+
export interface IGetGalleryAdminParams {
|
|
14
13
|
galleryId: string;
|
|
15
14
|
}
|
|
16
15
|
export type IPaginateGalleryAdminQuery = QueryPaginate;
|
|
17
|
-
export interface IResetPublicAccessGalleryAdminParams
|
|
16
|
+
export interface IResetPublicAccessGalleryAdminParams {
|
|
18
17
|
galleryId: string;
|
|
19
18
|
}
|
|
20
|
-
export interface IAddElementGalleryAdminParams
|
|
19
|
+
export interface IAddElementGalleryAdminParams {
|
|
21
20
|
galleryId: string;
|
|
22
21
|
}
|
|
23
22
|
export interface IAddElementGalleryAdminBody {
|
|
24
23
|
file: string[];
|
|
25
24
|
}
|
|
26
|
-
export interface IRemoveElementGalleryAdminParams
|
|
25
|
+
export interface IRemoveElementGalleryAdminParams {
|
|
27
26
|
galleryId: string;
|
|
28
27
|
}
|
|
29
28
|
export interface IRemoveElementGalleryAdminBody {
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import * as core from 'express-serve-static-core';
|
|
2
1
|
import { QueryPaginate } from '..';
|
|
3
2
|
export interface ICreateGalleryBody {
|
|
4
3
|
name: string;
|
|
5
4
|
folderId: string | null;
|
|
6
5
|
}
|
|
7
|
-
export interface IDeleteGalleryParams
|
|
6
|
+
export interface IDeleteGalleryParams {
|
|
8
7
|
galleryId: string;
|
|
9
8
|
}
|
|
10
|
-
export interface IUpdateGalleryParams
|
|
9
|
+
export interface IUpdateGalleryParams {
|
|
11
10
|
galleryId: string;
|
|
12
11
|
}
|
|
13
12
|
export interface IUpdateGalleryBody {
|
|
14
13
|
name?: string;
|
|
15
14
|
folderId?: string | null;
|
|
16
15
|
}
|
|
17
|
-
export interface IGetGalleryParams
|
|
16
|
+
export interface IGetGalleryParams {
|
|
18
17
|
galleryId: string;
|
|
19
18
|
}
|
|
20
|
-
export interface IGetPublicGalleryParams
|
|
19
|
+
export interface IGetPublicGalleryParams {
|
|
21
20
|
token: string;
|
|
22
21
|
}
|
|
23
|
-
export interface IGetDownloadUrlGalleryParams
|
|
22
|
+
export interface IGetDownloadUrlGalleryParams {
|
|
24
23
|
token: string;
|
|
25
24
|
fileId: string;
|
|
26
25
|
}
|
|
27
26
|
export type IPaginateGalleryQuery = QueryPaginate;
|
|
28
|
-
export interface IResetPublicAccessGalleryParams
|
|
27
|
+
export interface IResetPublicAccessGalleryParams {
|
|
29
28
|
galleryId: string;
|
|
30
29
|
}
|
|
31
|
-
export interface IAddElementGalleryParams
|
|
30
|
+
export interface IAddElementGalleryParams {
|
|
32
31
|
galleryId: string;
|
|
33
32
|
}
|
|
34
33
|
export interface IAddElementGalleryBody {
|
|
35
34
|
file: string[];
|
|
36
35
|
}
|
|
37
|
-
export interface IRemoveElementGalleryParams
|
|
36
|
+
export interface IRemoveElementGalleryParams {
|
|
38
37
|
galleryId: string;
|
|
39
38
|
}
|
|
40
39
|
export interface IRemoveElementGalleryBody {
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { QueryPaginate } from '..';
|
|
2
|
-
|
|
3
|
-
export interface IGetUserAdminParams extends core.ParamsDictionary {
|
|
2
|
+
export interface IGetUserAdminParams {
|
|
4
3
|
userId: string;
|
|
5
4
|
}
|
|
6
|
-
export interface IResetApiKeyUserAdminParams
|
|
5
|
+
export interface IResetApiKeyUserAdminParams {
|
|
7
6
|
userId: string;
|
|
8
7
|
}
|
|
9
8
|
export type IPaginateUserAdminQuery = QueryPaginate;
|
|
10
|
-
export interface IUpdateUserAdminParams
|
|
9
|
+
export interface IUpdateUserAdminParams {
|
|
11
10
|
userId: string;
|
|
12
11
|
}
|
|
13
12
|
export interface IUpdateUserAdminBody {
|
|
14
13
|
isAdmin?: boolean;
|
|
15
14
|
}
|
|
16
|
-
export interface IPermissionToFileUserAdminParams
|
|
15
|
+
export interface IPermissionToFileUserAdminParams {
|
|
17
16
|
userId: string;
|
|
18
17
|
fileId: string;
|
|
19
18
|
}
|
|
20
|
-
export interface IPermissionToCloudUserAdminParams
|
|
19
|
+
export interface IPermissionToCloudUserAdminParams {
|
|
21
20
|
userId: string;
|
|
22
21
|
cloudId: string;
|
|
23
22
|
}
|
package/dist/types/others.d.ts
CHANGED