@danyow/lark-mcp 0.5.5 → 0.5.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export type sheetsV3ToolName = 'sheets.v3.spreadsheet.create' | 'sheets.v3.spreadsheet.get' | 'sheets.v3.spreadsheet.patch' | 'sheets.v3.spreadsheetSheetFilterViewCondition.create' | 'sheets.v3.spreadsheetSheetFilterViewCondition.delete' | 'sheets.v3.spreadsheetSheetFilterViewCondition.get' | 'sheets.v3.spreadsheetSheetFilterViewCondition.query' | 'sheets.v3.spreadsheetSheetFilterViewCondition.update' | 'sheets.v3.spreadsheetSheetFilterView.create' | 'sheets.v3.spreadsheetSheetFilterView.delete' | 'sheets.v3.spreadsheetSheetFilterView.get' | 'sheets.v3.spreadsheetSheetFilterView.patch' | 'sheets.v3.spreadsheetSheetFilterView.query' | 'sheets.v3.spreadsheetSheetFilter.create' | 'sheets.v3.spreadsheetSheetFilter.delete' | 'sheets.v3.spreadsheetSheetFilter.get' | 'sheets.v3.spreadsheetSheetFilter.update' | 'sheets.v3.spreadsheetSheet.find' | 'sheets.v3.spreadsheetSheetFloatImage.create' | 'sheets.v3.spreadsheetSheetFloatImage.delete' | 'sheets.v3.spreadsheetSheetFloatImage.get' | 'sheets.v3.spreadsheetSheetFloatImage.patch' | 'sheets.v3.spreadsheetSheetFloatImage.query' | 'sheets.v3.spreadsheetSheet.get' | 'sheets.v3.spreadsheetSheet.moveDimension' | 'sheets.v3.spreadsheetSheet.query' | 'sheets.v3.spreadsheetSheet.replace';
|
|
2
|
+
export type sheetsV3ToolName = 'sheets.v3.spreadsheet.create' | 'sheets.v3.spreadsheet.get' | 'sheets.v3.spreadsheet.patch' | 'sheets.v3.spreadsheetSheetFilterViewCondition.create' | 'sheets.v3.spreadsheetSheetFilterViewCondition.delete' | 'sheets.v3.spreadsheetSheetFilterViewCondition.get' | 'sheets.v3.spreadsheetSheetFilterViewCondition.query' | 'sheets.v3.spreadsheetSheetFilterViewCondition.update' | 'sheets.v3.spreadsheetSheetFilterView.create' | 'sheets.v3.spreadsheetSheetFilterView.delete' | 'sheets.v3.spreadsheetSheetFilterView.get' | 'sheets.v3.spreadsheetSheetFilterView.patch' | 'sheets.v3.spreadsheetSheetFilterView.query' | 'sheets.v3.spreadsheetSheetFilter.create' | 'sheets.v3.spreadsheetSheetFilter.delete' | 'sheets.v3.spreadsheetSheetFilter.get' | 'sheets.v3.spreadsheetSheetFilter.update' | 'sheets.v3.spreadsheetSheet.find' | 'sheets.v3.spreadsheetSheetFloatImage.create' | 'sheets.v3.spreadsheetSheetFloatImage.delete' | 'sheets.v3.spreadsheetSheetFloatImage.get' | 'sheets.v3.spreadsheetSheetFloatImage.patch' | 'sheets.v3.spreadsheetSheetFloatImage.query' | 'sheets.v3.spreadsheetSheet.get' | 'sheets.v3.spreadsheetSheet.moveDimension' | 'sheets.v3.spreadsheetSheet.query' | 'sheets.v3.spreadsheetSheet.replace' | 'sheets.v3.spreadsheetSheet.mergeCells' | 'sheets.v3.spreadsheetSheet.unmergeCells';
|
|
3
3
|
export declare const sheetsV3SpreadsheetCreate: {
|
|
4
4
|
project: string;
|
|
5
5
|
name: string;
|
|
@@ -916,6 +916,67 @@ export declare const sheetsV3SpreadsheetSheetReplace: {
|
|
|
916
916
|
useUAT: z.ZodOptional<z.ZodBoolean>;
|
|
917
917
|
};
|
|
918
918
|
};
|
|
919
|
+
export declare const sheetsV3SpreadsheetSheetMergeCells: {
|
|
920
|
+
project: string;
|
|
921
|
+
name: string;
|
|
922
|
+
sdkName: string;
|
|
923
|
+
path: string;
|
|
924
|
+
httpMethod: string;
|
|
925
|
+
description: string;
|
|
926
|
+
accessTokens: string[];
|
|
927
|
+
schema: {
|
|
928
|
+
data: z.ZodObject<{
|
|
929
|
+
range: z.ZodString;
|
|
930
|
+
merge_type: z.ZodEnum<["MERGE_ALL", "MERGE_ROWS", "MERGE_COLUMNS"]>;
|
|
931
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
|
+
range: string;
|
|
933
|
+
merge_type: "MERGE_ALL" | "MERGE_ROWS" | "MERGE_COLUMNS";
|
|
934
|
+
}, {
|
|
935
|
+
range: string;
|
|
936
|
+
merge_type: "MERGE_ALL" | "MERGE_ROWS" | "MERGE_COLUMNS";
|
|
937
|
+
}>;
|
|
938
|
+
path: z.ZodOptional<z.ZodObject<{
|
|
939
|
+
spreadsheet_token: z.ZodOptional<z.ZodString>;
|
|
940
|
+
sheet_id: z.ZodOptional<z.ZodString>;
|
|
941
|
+
}, "strip", z.ZodTypeAny, {
|
|
942
|
+
spreadsheet_token?: string | undefined;
|
|
943
|
+
sheet_id?: string | undefined;
|
|
944
|
+
}, {
|
|
945
|
+
spreadsheet_token?: string | undefined;
|
|
946
|
+
sheet_id?: string | undefined;
|
|
947
|
+
}>>;
|
|
948
|
+
useUAT: z.ZodOptional<z.ZodBoolean>;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
export declare const sheetsV3SpreadsheetSheetUnmergeCells: {
|
|
952
|
+
project: string;
|
|
953
|
+
name: string;
|
|
954
|
+
sdkName: string;
|
|
955
|
+
path: string;
|
|
956
|
+
httpMethod: string;
|
|
957
|
+
description: string;
|
|
958
|
+
accessTokens: string[];
|
|
959
|
+
schema: {
|
|
960
|
+
data: z.ZodObject<{
|
|
961
|
+
range: z.ZodString;
|
|
962
|
+
}, "strip", z.ZodTypeAny, {
|
|
963
|
+
range: string;
|
|
964
|
+
}, {
|
|
965
|
+
range: string;
|
|
966
|
+
}>;
|
|
967
|
+
path: z.ZodOptional<z.ZodObject<{
|
|
968
|
+
spreadsheet_token: z.ZodOptional<z.ZodString>;
|
|
969
|
+
sheet_id: z.ZodOptional<z.ZodString>;
|
|
970
|
+
}, "strip", z.ZodTypeAny, {
|
|
971
|
+
spreadsheet_token?: string | undefined;
|
|
972
|
+
sheet_id?: string | undefined;
|
|
973
|
+
}, {
|
|
974
|
+
spreadsheet_token?: string | undefined;
|
|
975
|
+
sheet_id?: string | undefined;
|
|
976
|
+
}>>;
|
|
977
|
+
useUAT: z.ZodOptional<z.ZodBoolean>;
|
|
978
|
+
};
|
|
979
|
+
};
|
|
919
980
|
export declare const sheetsV3Tools: ({
|
|
920
981
|
project: string;
|
|
921
982
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sheetsV3Tools = exports.sheetsV3SpreadsheetSheetReplace = exports.sheetsV3SpreadsheetSheetQuery = exports.sheetsV3SpreadsheetSheetMoveDimension = exports.sheetsV3SpreadsheetSheetGet = exports.sheetsV3SpreadsheetSheetFloatImageQuery = exports.sheetsV3SpreadsheetSheetFloatImagePatch = exports.sheetsV3SpreadsheetSheetFloatImageGet = exports.sheetsV3SpreadsheetSheetFloatImageDelete = exports.sheetsV3SpreadsheetSheetFloatImageCreate = exports.sheetsV3SpreadsheetSheetFind = exports.sheetsV3SpreadsheetSheetFilterUpdate = exports.sheetsV3SpreadsheetSheetFilterGet = exports.sheetsV3SpreadsheetSheetFilterDelete = exports.sheetsV3SpreadsheetSheetFilterCreate = exports.sheetsV3SpreadsheetSheetFilterViewQuery = exports.sheetsV3SpreadsheetSheetFilterViewPatch = exports.sheetsV3SpreadsheetSheetFilterViewGet = exports.sheetsV3SpreadsheetSheetFilterViewDelete = exports.sheetsV3SpreadsheetSheetFilterViewCreate = exports.sheetsV3SpreadsheetSheetFilterViewConditionUpdate = exports.sheetsV3SpreadsheetSheetFilterViewConditionQuery = exports.sheetsV3SpreadsheetSheetFilterViewConditionGet = exports.sheetsV3SpreadsheetSheetFilterViewConditionDelete = exports.sheetsV3SpreadsheetSheetFilterViewConditionCreate = exports.sheetsV3SpreadsheetPatch = exports.sheetsV3SpreadsheetGet = exports.sheetsV3SpreadsheetCreate = void 0;
|
|
3
|
+
exports.sheetsV3Tools = exports.sheetsV3SpreadsheetSheetUnmergeCells = exports.sheetsV3SpreadsheetSheetMergeCells = exports.sheetsV3SpreadsheetSheetReplace = exports.sheetsV3SpreadsheetSheetQuery = exports.sheetsV3SpreadsheetSheetMoveDimension = exports.sheetsV3SpreadsheetSheetGet = exports.sheetsV3SpreadsheetSheetFloatImageQuery = exports.sheetsV3SpreadsheetSheetFloatImagePatch = exports.sheetsV3SpreadsheetSheetFloatImageGet = exports.sheetsV3SpreadsheetSheetFloatImageDelete = exports.sheetsV3SpreadsheetSheetFloatImageCreate = exports.sheetsV3SpreadsheetSheetFind = exports.sheetsV3SpreadsheetSheetFilterUpdate = exports.sheetsV3SpreadsheetSheetFilterGet = exports.sheetsV3SpreadsheetSheetFilterDelete = exports.sheetsV3SpreadsheetSheetFilterCreate = exports.sheetsV3SpreadsheetSheetFilterViewQuery = exports.sheetsV3SpreadsheetSheetFilterViewPatch = exports.sheetsV3SpreadsheetSheetFilterViewGet = exports.sheetsV3SpreadsheetSheetFilterViewDelete = exports.sheetsV3SpreadsheetSheetFilterViewCreate = exports.sheetsV3SpreadsheetSheetFilterViewConditionUpdate = exports.sheetsV3SpreadsheetSheetFilterViewConditionQuery = exports.sheetsV3SpreadsheetSheetFilterViewConditionGet = exports.sheetsV3SpreadsheetSheetFilterViewConditionDelete = exports.sheetsV3SpreadsheetSheetFilterViewConditionCreate = exports.sheetsV3SpreadsheetPatch = exports.sheetsV3SpreadsheetGet = exports.sheetsV3SpreadsheetCreate = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sheetsV3SpreadsheetCreate = {
|
|
6
6
|
project: 'sheets',
|
|
@@ -690,6 +690,55 @@ exports.sheetsV3SpreadsheetSheetReplace = {
|
|
|
690
690
|
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
691
691
|
},
|
|
692
692
|
};
|
|
693
|
+
exports.sheetsV3SpreadsheetSheetMergeCells = {
|
|
694
|
+
project: 'sheets',
|
|
695
|
+
name: 'sheets.v3.spreadsheetSheet.mergeCells',
|
|
696
|
+
sdkName: 'sheets.v3.spreadsheetSheet.mergeCells',
|
|
697
|
+
path: '/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/merge_cells',
|
|
698
|
+
httpMethod: 'POST',
|
|
699
|
+
description: '[Feishu/Lark]-Docs-Sheets-Cell-Merge cells-Merge cells in the specified range within the spreadsheet. Single operation limited to 5000 rows and 100 columns',
|
|
700
|
+
accessTokens: ['tenant', 'user'],
|
|
701
|
+
schema: {
|
|
702
|
+
data: zod_1.z.object({
|
|
703
|
+
range: zod_1.z
|
|
704
|
+
.string()
|
|
705
|
+
.describe('The range of cells to merge. Format: `<sheetId>!<start>:<end>`. Example: `sheet_id!A1:B2`'),
|
|
706
|
+
merge_type: zod_1.z
|
|
707
|
+
.enum(['MERGE_ALL', 'MERGE_ROWS', 'MERGE_COLUMNS'])
|
|
708
|
+
.describe('Merge type. - MERGE_ALL: Merge all selected cells into one- MERGE_ROWS: Merge selected area by rows- MERGE_COLUMNS: Merge selected area by columns'),
|
|
709
|
+
}),
|
|
710
|
+
path: zod_1.z
|
|
711
|
+
.object({
|
|
712
|
+
spreadsheet_token: zod_1.z.string().describe('Spreadsheet token').optional(),
|
|
713
|
+
sheet_id: zod_1.z.string().describe('Sheet id').optional(),
|
|
714
|
+
})
|
|
715
|
+
.optional(),
|
|
716
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
717
|
+
},
|
|
718
|
+
};
|
|
719
|
+
exports.sheetsV3SpreadsheetSheetUnmergeCells = {
|
|
720
|
+
project: 'sheets',
|
|
721
|
+
name: 'sheets.v3.spreadsheetSheet.unmergeCells',
|
|
722
|
+
sdkName: 'sheets.v3.spreadsheetSheet.unmergeCells',
|
|
723
|
+
path: '/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/unmerge_cells',
|
|
724
|
+
httpMethod: 'POST',
|
|
725
|
+
description: '[Feishu/Lark]-Docs-Sheets-Cell-Unmerge cells-Split merged cells in the specified range within the spreadsheet',
|
|
726
|
+
accessTokens: ['tenant', 'user'],
|
|
727
|
+
schema: {
|
|
728
|
+
data: zod_1.z.object({
|
|
729
|
+
range: zod_1.z
|
|
730
|
+
.string()
|
|
731
|
+
.describe('The range of cells to unmerge. Format: `<sheetId>!<start>:<end>`. Example: `sheet_id!A1:B2`'),
|
|
732
|
+
}),
|
|
733
|
+
path: zod_1.z
|
|
734
|
+
.object({
|
|
735
|
+
spreadsheet_token: zod_1.z.string().describe('Spreadsheet token').optional(),
|
|
736
|
+
sheet_id: zod_1.z.string().describe('Sheet id').optional(),
|
|
737
|
+
})
|
|
738
|
+
.optional(),
|
|
739
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
740
|
+
},
|
|
741
|
+
};
|
|
693
742
|
exports.sheetsV3Tools = [
|
|
694
743
|
exports.sheetsV3SpreadsheetCreate,
|
|
695
744
|
exports.sheetsV3SpreadsheetGet,
|
|
@@ -718,4 +767,6 @@ exports.sheetsV3Tools = [
|
|
|
718
767
|
exports.sheetsV3SpreadsheetSheetMoveDimension,
|
|
719
768
|
exports.sheetsV3SpreadsheetSheetQuery,
|
|
720
769
|
exports.sheetsV3SpreadsheetSheetReplace,
|
|
770
|
+
exports.sheetsV3SpreadsheetSheetMergeCells,
|
|
771
|
+
exports.sheetsV3SpreadsheetSheetUnmergeCells,
|
|
721
772
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export type sheetsV3ToolName = 'sheets.v3.spreadsheet.create' | 'sheets.v3.spreadsheet.get' | 'sheets.v3.spreadsheet.patch' | 'sheets.v3.spreadsheetSheetFilterViewCondition.create' | 'sheets.v3.spreadsheetSheetFilterViewCondition.delete' | 'sheets.v3.spreadsheetSheetFilterViewCondition.get' | 'sheets.v3.spreadsheetSheetFilterViewCondition.query' | 'sheets.v3.spreadsheetSheetFilterViewCondition.update' | 'sheets.v3.spreadsheetSheetFilterView.create' | 'sheets.v3.spreadsheetSheetFilterView.delete' | 'sheets.v3.spreadsheetSheetFilterView.get' | 'sheets.v3.spreadsheetSheetFilterView.patch' | 'sheets.v3.spreadsheetSheetFilterView.query' | 'sheets.v3.spreadsheetSheetFilter.create' | 'sheets.v3.spreadsheetSheetFilter.delete' | 'sheets.v3.spreadsheetSheetFilter.get' | 'sheets.v3.spreadsheetSheetFilter.update' | 'sheets.v3.spreadsheetSheet.find' | 'sheets.v3.spreadsheetSheetFloatImage.create' | 'sheets.v3.spreadsheetSheetFloatImage.delete' | 'sheets.v3.spreadsheetSheetFloatImage.get' | 'sheets.v3.spreadsheetSheetFloatImage.patch' | 'sheets.v3.spreadsheetSheetFloatImage.query' | 'sheets.v3.spreadsheetSheet.get' | 'sheets.v3.spreadsheetSheet.moveDimension' | 'sheets.v3.spreadsheetSheet.query' | 'sheets.v3.spreadsheetSheet.replace';
|
|
2
|
+
export type sheetsV3ToolName = 'sheets.v3.spreadsheet.create' | 'sheets.v3.spreadsheet.get' | 'sheets.v3.spreadsheet.patch' | 'sheets.v3.spreadsheetSheetFilterViewCondition.create' | 'sheets.v3.spreadsheetSheetFilterViewCondition.delete' | 'sheets.v3.spreadsheetSheetFilterViewCondition.get' | 'sheets.v3.spreadsheetSheetFilterViewCondition.query' | 'sheets.v3.spreadsheetSheetFilterViewCondition.update' | 'sheets.v3.spreadsheetSheetFilterView.create' | 'sheets.v3.spreadsheetSheetFilterView.delete' | 'sheets.v3.spreadsheetSheetFilterView.get' | 'sheets.v3.spreadsheetSheetFilterView.patch' | 'sheets.v3.spreadsheetSheetFilterView.query' | 'sheets.v3.spreadsheetSheetFilter.create' | 'sheets.v3.spreadsheetSheetFilter.delete' | 'sheets.v3.spreadsheetSheetFilter.get' | 'sheets.v3.spreadsheetSheetFilter.update' | 'sheets.v3.spreadsheetSheet.find' | 'sheets.v3.spreadsheetSheetFloatImage.create' | 'sheets.v3.spreadsheetSheetFloatImage.delete' | 'sheets.v3.spreadsheetSheetFloatImage.get' | 'sheets.v3.spreadsheetSheetFloatImage.patch' | 'sheets.v3.spreadsheetSheetFloatImage.query' | 'sheets.v3.spreadsheetSheet.get' | 'sheets.v3.spreadsheetSheet.moveDimension' | 'sheets.v3.spreadsheetSheet.query' | 'sheets.v3.spreadsheetSheet.replace' | 'sheets.v3.spreadsheetSheet.mergeCells' | 'sheets.v3.spreadsheetSheet.unmergeCells';
|
|
3
3
|
export declare const sheetsV3SpreadsheetCreate: {
|
|
4
4
|
project: string;
|
|
5
5
|
name: string;
|
|
@@ -916,6 +916,67 @@ export declare const sheetsV3SpreadsheetSheetReplace: {
|
|
|
916
916
|
useUAT: z.ZodOptional<z.ZodBoolean>;
|
|
917
917
|
};
|
|
918
918
|
};
|
|
919
|
+
export declare const sheetsV3SpreadsheetSheetMergeCells: {
|
|
920
|
+
project: string;
|
|
921
|
+
name: string;
|
|
922
|
+
sdkName: string;
|
|
923
|
+
path: string;
|
|
924
|
+
httpMethod: string;
|
|
925
|
+
description: string;
|
|
926
|
+
accessTokens: string[];
|
|
927
|
+
schema: {
|
|
928
|
+
data: z.ZodObject<{
|
|
929
|
+
range: z.ZodString;
|
|
930
|
+
merge_type: z.ZodEnum<["MERGE_ALL", "MERGE_ROWS", "MERGE_COLUMNS"]>;
|
|
931
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
|
+
range: string;
|
|
933
|
+
merge_type: "MERGE_ALL" | "MERGE_ROWS" | "MERGE_COLUMNS";
|
|
934
|
+
}, {
|
|
935
|
+
range: string;
|
|
936
|
+
merge_type: "MERGE_ALL" | "MERGE_ROWS" | "MERGE_COLUMNS";
|
|
937
|
+
}>;
|
|
938
|
+
path: z.ZodOptional<z.ZodObject<{
|
|
939
|
+
spreadsheet_token: z.ZodOptional<z.ZodString>;
|
|
940
|
+
sheet_id: z.ZodOptional<z.ZodString>;
|
|
941
|
+
}, "strip", z.ZodTypeAny, {
|
|
942
|
+
spreadsheet_token?: string | undefined;
|
|
943
|
+
sheet_id?: string | undefined;
|
|
944
|
+
}, {
|
|
945
|
+
spreadsheet_token?: string | undefined;
|
|
946
|
+
sheet_id?: string | undefined;
|
|
947
|
+
}>>;
|
|
948
|
+
useUAT: z.ZodOptional<z.ZodBoolean>;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
export declare const sheetsV3SpreadsheetSheetUnmergeCells: {
|
|
952
|
+
project: string;
|
|
953
|
+
name: string;
|
|
954
|
+
sdkName: string;
|
|
955
|
+
path: string;
|
|
956
|
+
httpMethod: string;
|
|
957
|
+
description: string;
|
|
958
|
+
accessTokens: string[];
|
|
959
|
+
schema: {
|
|
960
|
+
data: z.ZodObject<{
|
|
961
|
+
range: z.ZodString;
|
|
962
|
+
}, "strip", z.ZodTypeAny, {
|
|
963
|
+
range: string;
|
|
964
|
+
}, {
|
|
965
|
+
range: string;
|
|
966
|
+
}>;
|
|
967
|
+
path: z.ZodOptional<z.ZodObject<{
|
|
968
|
+
spreadsheet_token: z.ZodOptional<z.ZodString>;
|
|
969
|
+
sheet_id: z.ZodOptional<z.ZodString>;
|
|
970
|
+
}, "strip", z.ZodTypeAny, {
|
|
971
|
+
spreadsheet_token?: string | undefined;
|
|
972
|
+
sheet_id?: string | undefined;
|
|
973
|
+
}, {
|
|
974
|
+
spreadsheet_token?: string | undefined;
|
|
975
|
+
sheet_id?: string | undefined;
|
|
976
|
+
}>>;
|
|
977
|
+
useUAT: z.ZodOptional<z.ZodBoolean>;
|
|
978
|
+
};
|
|
979
|
+
};
|
|
919
980
|
export declare const sheetsV3Tools: ({
|
|
920
981
|
project: string;
|
|
921
982
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sheetsV3Tools = exports.sheetsV3SpreadsheetSheetReplace = exports.sheetsV3SpreadsheetSheetQuery = exports.sheetsV3SpreadsheetSheetMoveDimension = exports.sheetsV3SpreadsheetSheetGet = exports.sheetsV3SpreadsheetSheetFloatImageQuery = exports.sheetsV3SpreadsheetSheetFloatImagePatch = exports.sheetsV3SpreadsheetSheetFloatImageGet = exports.sheetsV3SpreadsheetSheetFloatImageDelete = exports.sheetsV3SpreadsheetSheetFloatImageCreate = exports.sheetsV3SpreadsheetSheetFind = exports.sheetsV3SpreadsheetSheetFilterUpdate = exports.sheetsV3SpreadsheetSheetFilterGet = exports.sheetsV3SpreadsheetSheetFilterDelete = exports.sheetsV3SpreadsheetSheetFilterCreate = exports.sheetsV3SpreadsheetSheetFilterViewQuery = exports.sheetsV3SpreadsheetSheetFilterViewPatch = exports.sheetsV3SpreadsheetSheetFilterViewGet = exports.sheetsV3SpreadsheetSheetFilterViewDelete = exports.sheetsV3SpreadsheetSheetFilterViewCreate = exports.sheetsV3SpreadsheetSheetFilterViewConditionUpdate = exports.sheetsV3SpreadsheetSheetFilterViewConditionQuery = exports.sheetsV3SpreadsheetSheetFilterViewConditionGet = exports.sheetsV3SpreadsheetSheetFilterViewConditionDelete = exports.sheetsV3SpreadsheetSheetFilterViewConditionCreate = exports.sheetsV3SpreadsheetPatch = exports.sheetsV3SpreadsheetGet = exports.sheetsV3SpreadsheetCreate = void 0;
|
|
3
|
+
exports.sheetsV3Tools = exports.sheetsV3SpreadsheetSheetUnmergeCells = exports.sheetsV3SpreadsheetSheetMergeCells = exports.sheetsV3SpreadsheetSheetReplace = exports.sheetsV3SpreadsheetSheetQuery = exports.sheetsV3SpreadsheetSheetMoveDimension = exports.sheetsV3SpreadsheetSheetGet = exports.sheetsV3SpreadsheetSheetFloatImageQuery = exports.sheetsV3SpreadsheetSheetFloatImagePatch = exports.sheetsV3SpreadsheetSheetFloatImageGet = exports.sheetsV3SpreadsheetSheetFloatImageDelete = exports.sheetsV3SpreadsheetSheetFloatImageCreate = exports.sheetsV3SpreadsheetSheetFind = exports.sheetsV3SpreadsheetSheetFilterUpdate = exports.sheetsV3SpreadsheetSheetFilterGet = exports.sheetsV3SpreadsheetSheetFilterDelete = exports.sheetsV3SpreadsheetSheetFilterCreate = exports.sheetsV3SpreadsheetSheetFilterViewQuery = exports.sheetsV3SpreadsheetSheetFilterViewPatch = exports.sheetsV3SpreadsheetSheetFilterViewGet = exports.sheetsV3SpreadsheetSheetFilterViewDelete = exports.sheetsV3SpreadsheetSheetFilterViewCreate = exports.sheetsV3SpreadsheetSheetFilterViewConditionUpdate = exports.sheetsV3SpreadsheetSheetFilterViewConditionQuery = exports.sheetsV3SpreadsheetSheetFilterViewConditionGet = exports.sheetsV3SpreadsheetSheetFilterViewConditionDelete = exports.sheetsV3SpreadsheetSheetFilterViewConditionCreate = exports.sheetsV3SpreadsheetPatch = exports.sheetsV3SpreadsheetGet = exports.sheetsV3SpreadsheetCreate = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sheetsV3SpreadsheetCreate = {
|
|
6
6
|
project: 'sheets',
|
|
@@ -790,6 +790,61 @@ exports.sheetsV3SpreadsheetSheetReplace = {
|
|
|
790
790
|
useUAT: zod_1.z.boolean().describe('使用用户身份请求, 否则使用应用身份').optional(),
|
|
791
791
|
},
|
|
792
792
|
};
|
|
793
|
+
exports.sheetsV3SpreadsheetSheetMergeCells = {
|
|
794
|
+
project: 'sheets',
|
|
795
|
+
name: 'sheets.v3.spreadsheetSheet.mergeCells',
|
|
796
|
+
sdkName: 'sheets.v3.spreadsheetSheet.mergeCells',
|
|
797
|
+
path: '/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/merge_cells',
|
|
798
|
+
httpMethod: 'POST',
|
|
799
|
+
description: '[Feishu/Lark]-云文档-电子表格-单元格-合并单元格-合并电子表格工作表中指定范围内的单元格。单次操作不超过5000行、100列',
|
|
800
|
+
accessTokens: ['tenant', 'user'],
|
|
801
|
+
schema: {
|
|
802
|
+
data: zod_1.z.object({
|
|
803
|
+
range: zod_1.z
|
|
804
|
+
.string()
|
|
805
|
+
.describe('要合并的单元格范围。格式为 `<sheetId>!<开始位置>:<结束位置>`。例如 `sheet_id!A1:B2`'),
|
|
806
|
+
merge_type: zod_1.z
|
|
807
|
+
.enum(['MERGE_ALL', 'MERGE_ROWS', 'MERGE_COLUMNS'])
|
|
808
|
+
.describe('合并类型。- MERGE_ALL:将所选区域直接合并- MERGE_ROWS:将所选区域按行合并- MERGE_COLUMNS:将所选区域按列合并'),
|
|
809
|
+
}),
|
|
810
|
+
path: zod_1.z
|
|
811
|
+
.object({
|
|
812
|
+
spreadsheet_token: zod_1.z
|
|
813
|
+
.string()
|
|
814
|
+
.describe('电子表格的 token。可通过以下两种方式获取。了解更多,参考[电子表格概述]。- 电子表格的 URL:https://sample.feishu.cn/sheets/==Iow7sNNEphp3WbtnbCscPqabcef==- 调用[获取文件夹中的文件清单]')
|
|
815
|
+
.optional(),
|
|
816
|
+
sheet_id: zod_1.z.string().describe('工作表的 ID,获取方式见[获取工作表]').optional(),
|
|
817
|
+
})
|
|
818
|
+
.optional(),
|
|
819
|
+
useUAT: zod_1.z.boolean().describe('使用用户身份请求, 否则使用应用身份').optional(),
|
|
820
|
+
},
|
|
821
|
+
};
|
|
822
|
+
exports.sheetsV3SpreadsheetSheetUnmergeCells = {
|
|
823
|
+
project: 'sheets',
|
|
824
|
+
name: 'sheets.v3.spreadsheetSheet.unmergeCells',
|
|
825
|
+
sdkName: 'sheets.v3.spreadsheetSheet.unmergeCells',
|
|
826
|
+
path: '/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/unmerge_cells',
|
|
827
|
+
httpMethod: 'POST',
|
|
828
|
+
description: '[Feishu/Lark]-云文档-电子表格-单元格-拆分单元格-拆分电子表格工作表中指定范围内的合并单元格',
|
|
829
|
+
accessTokens: ['tenant', 'user'],
|
|
830
|
+
schema: {
|
|
831
|
+
data: zod_1.z.object({
|
|
832
|
+
range: zod_1.z
|
|
833
|
+
.string()
|
|
834
|
+
.describe('要拆分的单元格范围。格式为 `<sheetId>!<开始位置>:<结束位置>`。例如 `sheet_id!A1:B2`'),
|
|
835
|
+
}),
|
|
836
|
+
path: zod_1.z
|
|
837
|
+
.object({
|
|
838
|
+
spreadsheet_token: zod_1.z
|
|
839
|
+
.string()
|
|
840
|
+
.describe('电子表格的 token。可通过以下两种方式获取。了解更多,参考[电子表格概述]。- 电子表格的 URL:https://sample.feishu.cn/sheets/==Iow7sNNEphp3WbtnbCscPqabcef==- 调用[获取文件夹中的文件清单]')
|
|
841
|
+
.optional(),
|
|
842
|
+
sheet_id: zod_1.z.string().describe('工作表的 ID,获取方式见[获取工作表]').optional(),
|
|
843
|
+
})
|
|
844
|
+
.optional(),
|
|
845
|
+
useUAT: zod_1.z.boolean().describe('使用用户身份请求, 否则使用应用身份').optional(),
|
|
846
|
+
},
|
|
847
|
+
};
|
|
793
848
|
exports.sheetsV3Tools = [
|
|
794
849
|
exports.sheetsV3SpreadsheetCreate,
|
|
795
850
|
exports.sheetsV3SpreadsheetGet,
|
|
@@ -818,4 +873,6 @@ exports.sheetsV3Tools = [
|
|
|
818
873
|
exports.sheetsV3SpreadsheetSheetMoveDimension,
|
|
819
874
|
exports.sheetsV3SpreadsheetSheetQuery,
|
|
820
875
|
exports.sheetsV3SpreadsheetSheetReplace,
|
|
876
|
+
exports.sheetsV3SpreadsheetSheetMergeCells,
|
|
877
|
+
exports.sheetsV3SpreadsheetSheetUnmergeCells,
|
|
821
878
|
];
|