@midwayjs/tablestore 3.9.0 → 3.10.0
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/interface.d.ts +11 -11
- package/package.json +5 -5
package/dist/interface.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { Int64LE } from 'int64-buffer';
|
|
|
3
3
|
/**
|
|
4
4
|
* protocol/proto_buffer
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export type ExtraMetadata = typeof INF_MIN & typeof INF_MAX & typeof PK_AUTO_INCR;
|
|
7
|
+
export type PrimaryKeyValue = Int64LE | string | Buffer;
|
|
8
|
+
export type ColumnValue = number | boolean | PrimaryKeyValue;
|
|
9
|
+
export type PrimaryKey = {
|
|
10
10
|
[key: string]: PrimaryKeyValue | ExtraMetadata;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
@@ -169,7 +169,7 @@ export interface CreateTableParams {
|
|
|
169
169
|
definedColumn: string[];
|
|
170
170
|
}[];
|
|
171
171
|
}
|
|
172
|
-
export
|
|
172
|
+
export type ListTableParams = undefined | null | {};
|
|
173
173
|
export interface DeleteTableParams {
|
|
174
174
|
tableName: string;
|
|
175
175
|
}
|
|
@@ -203,11 +203,11 @@ export interface GetRowParams {
|
|
|
203
203
|
columnsToGet?: string[];
|
|
204
204
|
transactionId?: string;
|
|
205
205
|
}
|
|
206
|
-
export
|
|
206
|
+
export type AttributeColumn = {
|
|
207
207
|
[key: string]: ColumnValue;
|
|
208
208
|
timestamp?: number;
|
|
209
209
|
};
|
|
210
|
-
export
|
|
210
|
+
export type UpdateColumn = {
|
|
211
211
|
[key in UpdateType.DELETE_ALL]?: string[];
|
|
212
212
|
} & {
|
|
213
213
|
[key in Exclude<UpdateType, UpdateType.DELETE_ALL>]?: AttributeColumn[];
|
|
@@ -277,7 +277,7 @@ export interface BatchGetRowParams {
|
|
|
277
277
|
}[];
|
|
278
278
|
transactionId?: string;
|
|
279
279
|
}
|
|
280
|
-
export
|
|
280
|
+
export type BatchWriteRowItem = ({
|
|
281
281
|
type: 'PUT' | 'DELETE';
|
|
282
282
|
attributeColumns?: AttributeColumn[];
|
|
283
283
|
} | {
|
|
@@ -326,7 +326,7 @@ export interface SearchIndexSetting {
|
|
|
326
326
|
routingFields?: string[];
|
|
327
327
|
routingPartitionSize?: number | null;
|
|
328
328
|
}
|
|
329
|
-
export
|
|
329
|
+
export type SearchIndexQuery = {
|
|
330
330
|
queryType?: QueryType.MATCH_QUERY;
|
|
331
331
|
query?: {
|
|
332
332
|
fieldName: string;
|
|
@@ -520,10 +520,10 @@ export interface StartLocalTransactionParams {
|
|
|
520
520
|
tableName: string;
|
|
521
521
|
primaryKey: PrimaryKey[];
|
|
522
522
|
}
|
|
523
|
-
export
|
|
523
|
+
export type CommitTransactionParams = string | {
|
|
524
524
|
transactionId: string;
|
|
525
525
|
};
|
|
526
|
-
export
|
|
526
|
+
export type AbortTransactionParams = string | {
|
|
527
527
|
transactionId: string;
|
|
528
528
|
};
|
|
529
529
|
export interface TableStoreResult {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/tablestore",
|
|
3
3
|
"description": "midway tablestore component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.10.0",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.
|
|
14
|
-
"@midwayjs/mock": "^3.
|
|
13
|
+
"@midwayjs/core": "^3.10.0",
|
|
14
|
+
"@midwayjs/mock": "^3.10.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"int64-buffer": "1.0.1",
|
|
18
|
-
"tablestore": "5.3.
|
|
18
|
+
"tablestore": "5.3.1"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"aliyun",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"type": "git",
|
|
38
38
|
"url": "https://github.com/midwayjs/midway.git"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "33d28f1a020963404488e866432916fd15c0952c"
|
|
41
41
|
}
|