@internxt/sdk 1.11.3 → 1.11.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/drive/storage/index.d.ts +4 -2
- package/dist/drive/storage/index.js +6 -8
- package/dist/drive/storage/types.d.ts +2 -8
- package/dist/meet/index.test.js +2 -0
- package/dist/meet/types.d.ts +2 -0
- package/dist/schema.d.ts +9096 -8875
- package/dist/schema.js +6 -0
- package/package.json +6 -6
|
@@ -24,13 +24,14 @@ export declare class Storage {
|
|
|
24
24
|
/**
|
|
25
25
|
* Moves a specific folder to a new location
|
|
26
26
|
* @param payload
|
|
27
|
+
* @deprecated Use `moveFolderByUuid` instead.
|
|
27
28
|
*/
|
|
28
29
|
moveFolder(payload: MoveFolderPayload): Promise<MoveFolderResponse>;
|
|
29
30
|
/**
|
|
30
31
|
* Moves a specific folder to a new location
|
|
31
32
|
* @param payload
|
|
32
33
|
*/
|
|
33
|
-
moveFolderByUuid(payload: MoveFolderUuidPayload): Promise<FolderMeta>;
|
|
34
|
+
moveFolderByUuid(uuid: string, payload: MoveFolderUuidPayload): Promise<FolderMeta>;
|
|
34
35
|
/**
|
|
35
36
|
* Updates the metadata of a folder
|
|
36
37
|
* @param payload
|
|
@@ -211,13 +212,14 @@ export declare class Storage {
|
|
|
211
212
|
/**
|
|
212
213
|
* Updates the persisted path of a file entry
|
|
213
214
|
* @param payload
|
|
215
|
+
* @deprecated Use `moveFileByUuid` instead.
|
|
214
216
|
*/
|
|
215
217
|
moveFile(payload: MoveFilePayload): Promise<MoveFileResponse>;
|
|
216
218
|
/**
|
|
217
219
|
* Moves a specific file to a new location
|
|
218
220
|
* @param payload
|
|
219
221
|
*/
|
|
220
|
-
moveFileByUuid(payload: MoveFileUuidPayload): Promise<FileMeta>;
|
|
222
|
+
moveFileByUuid(uuid: string, payload: MoveFileUuidPayload): Promise<FileMeta>;
|
|
221
223
|
/**
|
|
222
224
|
* Returns a list of the n most recent files
|
|
223
225
|
* @param limit
|
|
@@ -118,6 +118,7 @@ var Storage = /** @class */ (function () {
|
|
|
118
118
|
/**
|
|
119
119
|
* Moves a specific folder to a new location
|
|
120
120
|
* @param payload
|
|
121
|
+
* @deprecated Use `moveFolderByUuid` instead.
|
|
121
122
|
*/
|
|
122
123
|
Storage.prototype.moveFolder = function (payload) {
|
|
123
124
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -133,12 +134,10 @@ var Storage = /** @class */ (function () {
|
|
|
133
134
|
* Moves a specific folder to a new location
|
|
134
135
|
* @param payload
|
|
135
136
|
*/
|
|
136
|
-
Storage.prototype.moveFolderByUuid = function (payload) {
|
|
137
|
+
Storage.prototype.moveFolderByUuid = function (uuid, payload) {
|
|
137
138
|
return __awaiter(this, void 0, void 0, function () {
|
|
138
139
|
return __generator(this, function (_a) {
|
|
139
|
-
return [2 /*return*/, this.client.patch("/folders/".concat(payload.
|
|
140
|
-
destinationFolder: payload.destinationFolderUuid,
|
|
141
|
-
}, this.headers())];
|
|
140
|
+
return [2 /*return*/, this.client.patch("/folders/".concat(uuid), payload, this.headers())];
|
|
142
141
|
});
|
|
143
142
|
});
|
|
144
143
|
};
|
|
@@ -457,6 +456,7 @@ var Storage = /** @class */ (function () {
|
|
|
457
456
|
/**
|
|
458
457
|
* Updates the persisted path of a file entry
|
|
459
458
|
* @param payload
|
|
459
|
+
* @deprecated Use `moveFileByUuid` instead.
|
|
460
460
|
*/
|
|
461
461
|
Storage.prototype.moveFile = function (payload) {
|
|
462
462
|
return this.client.post('/storage/move/file', {
|
|
@@ -470,12 +470,10 @@ var Storage = /** @class */ (function () {
|
|
|
470
470
|
* Moves a specific file to a new location
|
|
471
471
|
* @param payload
|
|
472
472
|
*/
|
|
473
|
-
Storage.prototype.moveFileByUuid = function (payload) {
|
|
473
|
+
Storage.prototype.moveFileByUuid = function (uuid, payload) {
|
|
474
474
|
return __awaiter(this, void 0, void 0, function () {
|
|
475
475
|
return __generator(this, function (_a) {
|
|
476
|
-
return [2 /*return*/, this.client.patch("/files/".concat(payload.
|
|
477
|
-
destinationFolder: payload.destinationFolderUuid,
|
|
478
|
-
}, this.headers())];
|
|
476
|
+
return [2 /*return*/, this.client.patch("/files/".concat(uuid), payload, this.headers())];
|
|
479
477
|
});
|
|
480
478
|
});
|
|
481
479
|
};
|
|
@@ -327,10 +327,7 @@ export interface MoveFolderPayload {
|
|
|
327
327
|
folderId: number;
|
|
328
328
|
destinationFolderId: number;
|
|
329
329
|
}
|
|
330
|
-
export
|
|
331
|
-
folderUuid: string;
|
|
332
|
-
destinationFolderUuid: string;
|
|
333
|
-
}
|
|
330
|
+
export type MoveFolderUuidPayload = paths['/folders/{uuid}']['patch']['requestBody']['content']['application/json'];
|
|
334
331
|
export interface MoveFolderResponse {
|
|
335
332
|
item: DriveFolderData;
|
|
336
333
|
destination: number;
|
|
@@ -362,10 +359,7 @@ export interface MoveFilePayload {
|
|
|
362
359
|
destinationPath: string;
|
|
363
360
|
bucketId: string;
|
|
364
361
|
}
|
|
365
|
-
export
|
|
366
|
-
fileUuid: string;
|
|
367
|
-
destinationFolderUuid: string;
|
|
368
|
-
}
|
|
362
|
+
export type MoveFileUuidPayload = paths['/files/{uuid}']['patch']['requestBody']['content']['application/json'];
|
|
369
363
|
export interface MoveFileResponse {
|
|
370
364
|
item: DriveFileData;
|
|
371
365
|
destination: number;
|
package/dist/meet/index.test.js
CHANGED
|
@@ -61,6 +61,7 @@ describe('Meet service tests', function () {
|
|
|
61
61
|
token: 'call-token',
|
|
62
62
|
room: 'room-id',
|
|
63
63
|
paxPerCall: 10,
|
|
64
|
+
appId: 'app-id',
|
|
64
65
|
};
|
|
65
66
|
_a = clientAndHeadersWithToken(), client = _a.client, headers = _a.headers;
|
|
66
67
|
postCall = sinon_1.default.stub(httpClient, 'post').resolves(expectedResponse);
|
|
@@ -101,6 +102,7 @@ describe('Meet service tests', function () {
|
|
|
101
102
|
token: 'join-token',
|
|
102
103
|
room: 'room-id',
|
|
103
104
|
userId: 'user-123',
|
|
105
|
+
appId: 'app-id',
|
|
104
106
|
};
|
|
105
107
|
it('should join a call successfully with token', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
108
|
var _a, client, headers, postCall, response;
|
package/dist/meet/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export interface CreateCallResponse {
|
|
|
2
2
|
token: string;
|
|
3
3
|
room: string;
|
|
4
4
|
paxPerCall: number;
|
|
5
|
+
appId: string;
|
|
5
6
|
}
|
|
6
7
|
export interface JoinCallPayload {
|
|
7
8
|
name: string;
|
|
@@ -12,6 +13,7 @@ export interface JoinCallResponse {
|
|
|
12
13
|
token: string;
|
|
13
14
|
room: string;
|
|
14
15
|
userId: string;
|
|
16
|
+
appId: string;
|
|
15
17
|
}
|
|
16
18
|
export interface UsersInCallResponse {
|
|
17
19
|
userId: string;
|