@activepieces/piece-google-drive 0.5.28 → 0.5.30
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/package.json +25 -9
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/lib/action/delete-file.d.ts +4 -0
- package/src/lib/action/delete-file.js +36 -0
- package/src/lib/action/delete-file.js.map +1 -0
- package/src/lib/action/list-files.action.js +19 -2
- package/src/lib/action/list-files.action.js.map +1 -1
- package/src/lib/action/send-to-trash.d.ts +4 -0
- package/src/lib/action/send-to-trash.js +40 -0
- package/src/lib/action/send-to-trash.js.map +1 -0
- package/src/lib/common/get-file-content.js +1 -2
- package/src/lib/common/get-file-content.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,22 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-google-drive",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.30",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@
|
|
6
|
-
"
|
|
5
|
+
"@anthropic-ai/sdk": "0.27.3",
|
|
6
|
+
"@sinclair/typebox": "0.33.17",
|
|
7
|
+
"axios": "1.7.7",
|
|
8
|
+
"axios-retry": "4.4.1",
|
|
7
9
|
"dayjs": "1.11.9",
|
|
10
|
+
"deepmerge": "4.3.1",
|
|
8
11
|
"form-data": "4.0.0",
|
|
9
12
|
"googleapis": "129.0.0",
|
|
10
13
|
"googleapis-common": "7.2.0",
|
|
11
|
-
"is-base64": "1.1.0",
|
|
12
14
|
"mime-types": "2.1.35",
|
|
13
15
|
"nanoid": "3.3.6",
|
|
16
|
+
"openai": "4.67.1",
|
|
17
|
+
"replicate": "0.34.1",
|
|
14
18
|
"semver": "7.6.0",
|
|
15
|
-
"@activepieces/pieces-common": "0.2.
|
|
16
|
-
"@activepieces/pieces-framework": "0.7.
|
|
17
|
-
"@activepieces/shared": "0.10.
|
|
18
|
-
"tslib": "
|
|
19
|
+
"@activepieces/pieces-common": "0.2.26",
|
|
20
|
+
"@activepieces/pieces-framework": "0.7.38",
|
|
21
|
+
"@activepieces/shared": "0.10.122",
|
|
22
|
+
"tslib": "2.6.2"
|
|
23
|
+
},
|
|
24
|
+
"overrides": {
|
|
25
|
+
"@tryfabric/martian": {
|
|
26
|
+
"@notionhq/client": "$@notionhq/client"
|
|
27
|
+
},
|
|
28
|
+
"vite": {
|
|
29
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"resolutions": {
|
|
33
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
19
34
|
},
|
|
20
35
|
"main": "./src/index.js",
|
|
21
|
-
"type": "commonjs"
|
|
36
|
+
"type": "commonjs",
|
|
37
|
+
"types": "./src/index.d.ts"
|
|
22
38
|
}
|
package/src/index.js
CHANGED
|
@@ -20,6 +20,8 @@ const new_file_1 = require("./lib/triggers/new-file");
|
|
|
20
20
|
const new_folder_1 = require("./lib/triggers/new-folder");
|
|
21
21
|
const set_public_access_1 = require("./lib/action/set-public-access");
|
|
22
22
|
const move_file_1 = require("./lib/action/move-file");
|
|
23
|
+
const delete_file_1 = require("./lib/action/delete-file");
|
|
24
|
+
const send_to_trash_1 = require("./lib/action/send-to-trash");
|
|
23
25
|
exports.googleDriveAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
24
26
|
description: '',
|
|
25
27
|
authUrl: 'https://accounts.google.com/o/oauth2/auth',
|
|
@@ -61,6 +63,8 @@ exports.googleDrive = (0, pieces_framework_1.createPiece)({
|
|
|
61
63
|
delete_permission_action_1.deletePermission,
|
|
62
64
|
set_public_access_1.setPublicAccess,
|
|
63
65
|
move_file_1.moveFileAction,
|
|
66
|
+
delete_file_1.googleDriveDeleteFile,
|
|
67
|
+
send_to_trash_1.googleDriveTrashFile,
|
|
64
68
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
65
69
|
baseUrl: () => 'https://www.googleapis.com/drive/v3',
|
|
66
70
|
auth: exports.googleDriveAuth,
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/google-drive/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,+DAAwE;AACxE,iDAAqD;AACrD,8EAAmE;AACnE,sEAA4E;AAC5E,4EAAiF;AACjF,oFAAyE;AACzE,8EAAyE;AACzE,gEAAyE;AACzE,sEAAsE;AACtE,sDAAkD;AAClD,kFAAqE;AACrE,4FAAoF;AACpF,0DAAiE;AACjE,sDAAkD;AAClD,0DAAsD;AACtD,sEAAiE;AACjE,sDAAwD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/google-drive/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,+DAAwE;AACxE,iDAAqD;AACrD,8EAAmE;AACnE,sEAA4E;AAC5E,4EAAiF;AACjF,oFAAyE;AACzE,8EAAyE;AACzE,gEAAyE;AACzE,sEAAsE;AACtE,sDAAkD;AAClD,kFAAqE;AACrE,4FAAoF;AACpF,0DAAiE;AACjE,sDAAkD;AAClD,0DAAsD;AACtD,sEAAiE;AACjE,sDAAwD;AACxD,0DAAiE;AACjE,8DAAkE;AAErD,QAAA,eAAe,GAAG,4BAAS,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,2CAA2C;IACpD,QAAQ,EAAE,qCAAqC;IAC/C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,CAAC,uCAAuC,CAAC;CACjD,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC;IACrC,uBAAuB,EAAE,OAAO;IAChC,OAAO,EAAE,sDAAsD;IAC/D,UAAU,EAAE,CAAC,sBAAa,CAAC,iBAAiB,CAAC;IAC7C,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,+BAA+B;IAC5C,OAAO,EAAE;QACP,WAAW;QACX,YAAY;QACZ,UAAU;QACV,cAAc;QACd,UAAU;QACV,YAAY;QACZ,YAAY;QACZ,WAAW;QACX,sBAAsB;QACtB,eAAe;QACf,UAAU;KACX;IACD,QAAQ,EAAE,CAAC,kBAAO,EAAE,sBAAS,CAAC;IAC9B,OAAO,EAAE;QACP,8CAA0B;QAC1B,mDAA4B;QAC5B,mCAAqB;QACrB,oBAAQ;QACR,2CAA0B;QAC1B,wCAAoB;QACpB,sDAAuB;QACvB,2CAAmB;QACnB,uCAAa;QACb,qCAAa;QACb,2CAAgB;QAChB,mCAAe;QACf,0BAAc;QACd,mCAAqB;QACrB,oCAAoB;QACpB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,qCAAqC;YACpD,IAAI,EAAE,uBAAe;YACrB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,IAAI,EAAE,uBAAe;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const googleDriveDeleteFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
+
fileId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.googleDriveDeleteFile = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../../");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const googleapis_1 = require("googleapis");
|
|
9
|
+
const googleapis_common_1 = require("googleapis-common");
|
|
10
|
+
exports.googleDriveDeleteFile = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: __1.googleDriveAuth,
|
|
12
|
+
name: 'delete_gdrive_file',
|
|
13
|
+
description: 'Delete permanently a file from your Google Drive',
|
|
14
|
+
displayName: 'Delete file',
|
|
15
|
+
props: {
|
|
16
|
+
fileId: pieces_framework_1.Property.ShortText({
|
|
17
|
+
displayName: 'File ID',
|
|
18
|
+
description: 'The ID of the file to delete',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
include_team_drives: common_1.common.properties.include_team_drives,
|
|
22
|
+
},
|
|
23
|
+
run(context) {
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const authClient = new googleapis_common_1.OAuth2Client();
|
|
26
|
+
authClient.setCredentials(context.auth);
|
|
27
|
+
const drive = googleapis_1.google.drive({ version: 'v3', auth: authClient });
|
|
28
|
+
const response = yield drive.files.delete({
|
|
29
|
+
fileId: context.propsValue.fileId,
|
|
30
|
+
supportsAllDrives: context.propsValue.include_team_drives,
|
|
31
|
+
});
|
|
32
|
+
return response.data;
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=delete-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-file.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/action/delete-file.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,8BAAyC;AACzC,sCAAmC;AACnC,2CAAoC;AACpC,yDAAiD;AAEpC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,mBAAe;IACrB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,kDAAkD;IAC/D,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,mBAAmB,EAAE,eAAM,CAAC,UAAU,CAAC,mBAAmB;KAC3D;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAI,gCAAY,EAAE,CAAC;YACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAExC,MAAM,KAAK,GAAG,mBAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAEhE,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;gBACjC,iBAAiB,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB;aAC1D,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -19,14 +19,31 @@ exports.googleDriveListFiles = (0, pieces_framework_1.createAction)({
|
|
|
19
19
|
},
|
|
20
20
|
run(context) {
|
|
21
21
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const
|
|
22
|
+
const result = {
|
|
23
|
+
'type': 'drive#fileList',
|
|
24
|
+
'incompleteSearch': false,
|
|
25
|
+
'files': [],
|
|
26
|
+
};
|
|
27
|
+
let response = yield pieces_common_1.httpClient.sendRequest({
|
|
23
28
|
method: pieces_common_1.HttpMethod.GET,
|
|
24
29
|
url: `https://www.googleapis.com/drive/v3/files?q='${context.propsValue.folderId}'+in+parents`,
|
|
25
30
|
headers: {
|
|
26
31
|
Authorization: `Bearer ${context.auth.access_token}`,
|
|
27
32
|
},
|
|
28
33
|
});
|
|
29
|
-
|
|
34
|
+
result.files = [...response.body.files];
|
|
35
|
+
while (response.body.nextPageToken) {
|
|
36
|
+
response = yield pieces_common_1.httpClient.sendRequest({
|
|
37
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
38
|
+
url: `https://www.googleapis.com/drive/v3/files?pageToken=${response.body.nextPageToken}&q='${context.propsValue.folderId}'+in+parents`,
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: `Bearer ${context.auth.access_token}`,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
result.files.push(...response.body.files);
|
|
44
|
+
result.incompleteSearch = result.incompleteSearch || response.body.incompleteSearch;
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
30
47
|
});
|
|
31
48
|
}
|
|
32
49
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-files.action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/action/list-files.action.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AACrE,uCAA8C;AAC9C,qEAAwE;AAE3D,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,uBAAe;IACrB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,kEAAkE;YAC/E,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;
|
|
1
|
+
{"version":3,"file":"list-files.action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/action/list-files.action.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AACrE,uCAA8C;AAC9C,qEAAwE;AAE3D,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,uBAAe;IACrB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,u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;QAChB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const googleDriveTrashFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
+
fileId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
include_team_drives: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.googleDriveTrashFile = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../../");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const googleapis_1 = require("googleapis");
|
|
9
|
+
const googleapis_common_1 = require("googleapis-common");
|
|
10
|
+
exports.googleDriveTrashFile = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: __1.googleDriveAuth,
|
|
12
|
+
name: 'trash_gdrive_file',
|
|
13
|
+
description: 'Move a file to the trash in your Google Drive',
|
|
14
|
+
displayName: 'Trash file',
|
|
15
|
+
props: {
|
|
16
|
+
fileId: pieces_framework_1.Property.ShortText({
|
|
17
|
+
displayName: 'File ID',
|
|
18
|
+
description: 'The ID of the file to trash',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
include_team_drives: common_1.common.properties.include_team_drives,
|
|
22
|
+
},
|
|
23
|
+
run(context) {
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const authClient = new googleapis_common_1.OAuth2Client();
|
|
26
|
+
authClient.setCredentials(context.auth);
|
|
27
|
+
const drive = googleapis_1.google.drive({ version: 'v3', auth: authClient });
|
|
28
|
+
const body_value = {
|
|
29
|
+
trashed: true,
|
|
30
|
+
};
|
|
31
|
+
const response = yield drive.files.update({
|
|
32
|
+
fileId: context.propsValue.fileId,
|
|
33
|
+
supportsAllDrives: context.propsValue.include_team_drives,
|
|
34
|
+
requestBody: body_value,
|
|
35
|
+
});
|
|
36
|
+
return response.data;
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=send-to-trash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-to-trash.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/action/send-to-trash.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,8BAAyC;AACzC,sCAAmC;AACnC,2CAAoC;AACpC,yDAAiD;AAEpC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,mBAAe;IACrB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,mBAAmB,EAAE,eAAM,CAAC,UAAU,CAAC,mBAAmB;KAC3D;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAI,gCAAY,EAAE,CAAC;YACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAExC,MAAM,KAAK,GAAG,mBAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAChE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,IAAI;aACd,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;gBACjC,iBAAiB,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB;gBACzD,WAAW,EAAE,UAAU;aACxB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.downloadFileFromDrive =
|
|
3
|
+
exports.downloadFileFromDrive = downloadFileFromDrive;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const mime_types_1 = require("mime-types");
|
|
6
6
|
function getMimeType(auth, fileId) {
|
|
@@ -67,5 +67,4 @@ function downloadFileFromDrive(auth, files, fileId, fileName) {
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
exports.downloadFileFromDrive = downloadFileFromDrive;
|
|
71
70
|
//# sourceMappingURL=get-file-content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/common/get-file-content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/common/get-file-content.ts"],"names":[],"mappings":";;AAoEA,sDA8CC;;AA1GD,2CAAuC;AAEvC,SAAe,WAAW,CACxB,IAAsC,EACtC,MAAc;;QAEd,MAAM,QAAQ,GAAG,CACf,MAAM,KAAK,CACT,6CAA6C,MAAM,kBAAkB,EACrE;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,CAAC,YAAY,EAAE;aAC7C;SACF,CACF,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAC5B,CAAC,UAAU,CAAW,CAAC;QACxB,OAAO,QAAQ,CAAC;IAClB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