UNPKG

1.51 kBTypeScriptView Raw
1// Copyright (c) .NET Foundation. All rights reserved.
2// Licensed under the MIT License.
3
4import { FunctionInput, FunctionOutput } from './index';
5
6export interface TableOutputOptions {
7 /**
8 * The table name
9 */
10 tableName: string;
11
12 /**
13 * An app setting (or environment variable) with the storage connection string to be used by this table output
14 */
15 connection: string;
16
17 /**
18 * The partition key of the table entity to write.
19 */
20 partitionKey?: string;
21
22 /**
23 * The row key of the table entity to write.
24 */
25 rowKey?: string;
26}
27export type TableOutput = FunctionOutput & TableOutputOptions;
28
29export interface TableInputOptions {
30 /**
31 * The table name
32 */
33 tableName: string;
34
35 /**
36 * An app setting (or environment variable) with the storage connection string to be used by this table input
37 */
38 connection: string;
39
40 /**
41 * The partition key of the table entity to read.
42 */
43 partitionKey?: string;
44
45 /**
46 * The row key of the table entity to read. Can't be used with `take` or `filter`.
47 */
48 rowKey?: string;
49
50 /**
51 * The maximum number of entities to return. Can't be used with `rowKey`
52 */
53 take?: number;
54
55 /**
56 * An OData filter expression for the entities to return from the table. Can't be used with `rowKey`.
57 */
58 filter?: string;
59}
60export type TableInput = FunctionInput & TableInputOptions;