@superdurable/connector-coda 0.1.1 → 0.2.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/README.md +22 -3
- package/dex-connector.json +351 -4
- package/dist/chunk-KSTUDMMZ.js +373 -0
- package/dist/connection-CYkN7IqB.d.ts +260 -0
- package/dist/index.d.ts +309 -7
- package/dist/index.js +376 -17
- package/dist/mock.d.ts +107 -2
- package/dist/mock.js +259 -2
- package/package.json +3 -2
- package/dist/chunk-ZY4WUCOW.js +0 -132
- package/dist/connection-Bh8uZ-8W.d.ts +0 -99
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as
|
|
2
|
-
export {
|
|
1
|
+
import { G as GetDocInput, D as Doc, C as Connection$1, a as GetRowInput, b as GetRowOutput, c as GetTableInput, T as Table, L as ListColumnsInput, d as ColumnsPage, e as ListDocsInput, f as DocsPage, g as ListRowsInput, h as ListRowsOutput, i as ListTablesInput, j as TablesPage, O as Operations, k as Config, l as Credentials } from './connection-CYkN7IqB.js';
|
|
2
|
+
export { m as Column, n as ColumnSchema, o as ColumnsPageSchema, p as ConfigSchema, q as CredentialMaterialError, r as CredentialSource, s as DocSchema, t as DocsPageSchema, u as GetDocInputSchema, v as GetRowInputSchema, w as GetRowOutputSchema, x as GetTableInputSchema, y as ListColumnsInputSchema, z as ListDocsInputSchema, A as ListRowsInputSchema, B as ListRowsOutputSchema, E as ListTablesInputSchema, F as TableSchema, H as TablesPageSchema, I as decodeCredentials, J as isCredentialMaterialError } from './connection-CYkN7IqB.js';
|
|
3
3
|
import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
|
|
4
|
-
import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, Call, QueryAttempt, CredentialProvider, Failure } from '@superdurable/connectors-sdk';
|
|
4
|
+
import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, ConnectionRef, Call, QueryAttempt, CredentialProvider, Failure } from '@superdurable/connectors-sdk';
|
|
5
5
|
import { StepTarget } from '@superdurable/dex';
|
|
6
6
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
7
7
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
@@ -60,11 +60,138 @@ declare const GetRowMetadata: {
|
|
|
60
60
|
readonly idempotency: "none";
|
|
61
61
|
readonly authorization: "required";
|
|
62
62
|
};
|
|
63
|
+
/** Branch IDs for listDocs. */
|
|
64
|
+
declare const ListDocsBranch: {
|
|
65
|
+
readonly Listed: "listed";
|
|
66
|
+
readonly ProviderRejected: "providerRejected";
|
|
67
|
+
readonly InvalidResponse: "invalidResponse";
|
|
68
|
+
readonly Defect: "defect";
|
|
69
|
+
};
|
|
70
|
+
/** Coda returned the doc page. */
|
|
71
|
+
declare const ListDocsBranchListed: "listed";
|
|
72
|
+
/** Coda conclusively rejected the read. */
|
|
73
|
+
declare const ListDocsBranchProviderRejected: "providerRejected";
|
|
74
|
+
/** Coda returned malformed or oversized JSON. */
|
|
75
|
+
declare const ListDocsBranchInvalidResponse: "invalidResponse";
|
|
76
|
+
/** Local input or connection credentials are invalid. */
|
|
77
|
+
declare const ListDocsBranchDefect: "defect";
|
|
78
|
+
/** Manifest definition for listDocs. */
|
|
79
|
+
declare const ListDocsDefinition: QueryDefinition;
|
|
80
|
+
/** Manifest metadata for listDocs. */
|
|
81
|
+
declare const ListDocsMetadata: {
|
|
82
|
+
readonly kind: "query";
|
|
83
|
+
readonly idempotency: "none";
|
|
84
|
+
readonly authorization: "required";
|
|
85
|
+
};
|
|
86
|
+
/** Branch IDs for getDoc. */
|
|
87
|
+
declare const GetDocBranch: {
|
|
88
|
+
readonly Found: "found";
|
|
89
|
+
readonly NotFound: "notFound";
|
|
90
|
+
readonly ProviderRejected: "providerRejected";
|
|
91
|
+
readonly InvalidResponse: "invalidResponse";
|
|
92
|
+
readonly Defect: "defect";
|
|
93
|
+
};
|
|
94
|
+
/** Coda returned the doc. */
|
|
95
|
+
declare const GetDocBranchFound: "found";
|
|
96
|
+
/** The doc does not exist or is inaccessible. */
|
|
97
|
+
declare const GetDocBranchNotFound: "notFound";
|
|
98
|
+
/** Coda conclusively rejected the read. */
|
|
99
|
+
declare const GetDocBranchProviderRejected: "providerRejected";
|
|
100
|
+
/** Coda returned malformed or oversized JSON. */
|
|
101
|
+
declare const GetDocBranchInvalidResponse: "invalidResponse";
|
|
102
|
+
/** Local input or connection credentials are invalid. */
|
|
103
|
+
declare const GetDocBranchDefect: "defect";
|
|
104
|
+
/** Manifest definition for getDoc. */
|
|
105
|
+
declare const GetDocDefinition: QueryDefinition;
|
|
106
|
+
/** Manifest metadata for getDoc. */
|
|
107
|
+
declare const GetDocMetadata: {
|
|
108
|
+
readonly kind: "query";
|
|
109
|
+
readonly idempotency: "none";
|
|
110
|
+
readonly authorization: "required";
|
|
111
|
+
};
|
|
112
|
+
/** Branch IDs for listTables. */
|
|
113
|
+
declare const ListTablesBranch: {
|
|
114
|
+
readonly Listed: "listed";
|
|
115
|
+
readonly NotFound: "notFound";
|
|
116
|
+
readonly ProviderRejected: "providerRejected";
|
|
117
|
+
readonly InvalidResponse: "invalidResponse";
|
|
118
|
+
readonly Defect: "defect";
|
|
119
|
+
};
|
|
120
|
+
/** Coda returned the table page. */
|
|
121
|
+
declare const ListTablesBranchListed: "listed";
|
|
122
|
+
/** The doc does not exist or is inaccessible. */
|
|
123
|
+
declare const ListTablesBranchNotFound: "notFound";
|
|
124
|
+
/** Coda conclusively rejected the read. */
|
|
125
|
+
declare const ListTablesBranchProviderRejected: "providerRejected";
|
|
126
|
+
/** Coda returned malformed or oversized JSON. */
|
|
127
|
+
declare const ListTablesBranchInvalidResponse: "invalidResponse";
|
|
128
|
+
/** Local input or connection credentials are invalid. */
|
|
129
|
+
declare const ListTablesBranchDefect: "defect";
|
|
130
|
+
/** Manifest definition for listTables. */
|
|
131
|
+
declare const ListTablesDefinition: QueryDefinition;
|
|
132
|
+
/** Manifest metadata for listTables. */
|
|
133
|
+
declare const ListTablesMetadata: {
|
|
134
|
+
readonly kind: "query";
|
|
135
|
+
readonly idempotency: "none";
|
|
136
|
+
readonly authorization: "required";
|
|
137
|
+
};
|
|
138
|
+
/** Branch IDs for getTable. */
|
|
139
|
+
declare const GetTableBranch: {
|
|
140
|
+
readonly Found: "found";
|
|
141
|
+
readonly NotFound: "notFound";
|
|
142
|
+
readonly ProviderRejected: "providerRejected";
|
|
143
|
+
readonly InvalidResponse: "invalidResponse";
|
|
144
|
+
readonly Defect: "defect";
|
|
145
|
+
};
|
|
146
|
+
/** Coda returned the table. */
|
|
147
|
+
declare const GetTableBranchFound: "found";
|
|
148
|
+
/** The table does not exist or is inaccessible. */
|
|
149
|
+
declare const GetTableBranchNotFound: "notFound";
|
|
150
|
+
/** Coda conclusively rejected the read. */
|
|
151
|
+
declare const GetTableBranchProviderRejected: "providerRejected";
|
|
152
|
+
/** Coda returned malformed or oversized JSON. */
|
|
153
|
+
declare const GetTableBranchInvalidResponse: "invalidResponse";
|
|
154
|
+
/** Local input or connection credentials are invalid. */
|
|
155
|
+
declare const GetTableBranchDefect: "defect";
|
|
156
|
+
/** Manifest definition for getTable. */
|
|
157
|
+
declare const GetTableDefinition: QueryDefinition;
|
|
158
|
+
/** Manifest metadata for getTable. */
|
|
159
|
+
declare const GetTableMetadata: {
|
|
160
|
+
readonly kind: "query";
|
|
161
|
+
readonly idempotency: "none";
|
|
162
|
+
readonly authorization: "required";
|
|
163
|
+
};
|
|
164
|
+
/** Branch IDs for listColumns. */
|
|
165
|
+
declare const ListColumnsBranch: {
|
|
166
|
+
readonly Listed: "listed";
|
|
167
|
+
readonly NotFound: "notFound";
|
|
168
|
+
readonly ProviderRejected: "providerRejected";
|
|
169
|
+
readonly InvalidResponse: "invalidResponse";
|
|
170
|
+
readonly Defect: "defect";
|
|
171
|
+
};
|
|
172
|
+
/** Coda returned the column page. */
|
|
173
|
+
declare const ListColumnsBranchListed: "listed";
|
|
174
|
+
/** The table does not exist or is inaccessible. */
|
|
175
|
+
declare const ListColumnsBranchNotFound: "notFound";
|
|
176
|
+
/** Coda conclusively rejected the read. */
|
|
177
|
+
declare const ListColumnsBranchProviderRejected: "providerRejected";
|
|
178
|
+
/** Coda returned malformed or oversized JSON. */
|
|
179
|
+
declare const ListColumnsBranchInvalidResponse: "invalidResponse";
|
|
180
|
+
/** Local input or connection credentials are invalid. */
|
|
181
|
+
declare const ListColumnsBranchDefect: "defect";
|
|
182
|
+
/** Manifest definition for listColumns. */
|
|
183
|
+
declare const ListColumnsDefinition: QueryDefinition;
|
|
184
|
+
/** Manifest metadata for listColumns. */
|
|
185
|
+
declare const ListColumnsMetadata: {
|
|
186
|
+
readonly kind: "query";
|
|
187
|
+
readonly idempotency: "none";
|
|
188
|
+
readonly authorization: "required";
|
|
189
|
+
};
|
|
63
190
|
|
|
64
191
|
/** Configuration for the listRows connector Step. */
|
|
65
192
|
interface ListRowsStepConfig<StepInput, OperationInput = ListRowsInput, OperationOutput = ListRowsOutput> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
66
193
|
/** Named connection supplying this operation. */
|
|
67
|
-
connection: Connection<{
|
|
194
|
+
connection: Connection$1<{
|
|
68
195
|
listRows(): Query<OperationInput, OperationOutput>;
|
|
69
196
|
}>;
|
|
70
197
|
/** Name matching the bound connection. */
|
|
@@ -83,7 +210,7 @@ declare function newListRowsStep<StepInput, OperationInput = ListRowsInput, Oper
|
|
|
83
210
|
/** Configuration for the getRow connector Step. */
|
|
84
211
|
interface GetRowStepConfig<StepInput, OperationInput = GetRowInput, OperationOutput = GetRowOutput> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
85
212
|
/** Named connection supplying this operation. */
|
|
86
|
-
connection: Connection<{
|
|
213
|
+
connection: Connection$1<{
|
|
87
214
|
getRow(): Query<OperationInput, OperationOutput>;
|
|
88
215
|
}>;
|
|
89
216
|
/** Name matching the bound connection. */
|
|
@@ -101,6 +228,171 @@ interface GetRowStepConfig<StepInput, OperationInput = GetRowInput, OperationOut
|
|
|
101
228
|
}
|
|
102
229
|
/** Build the getRow Step from a named connection. */
|
|
103
230
|
declare function newGetRowStep<StepInput, OperationInput = GetRowInput, OperationOutput = GetRowOutput>(configuration: GetRowStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
231
|
+
/** Configuration for the listDocs connector Step. */
|
|
232
|
+
interface ListDocsStepConfig<StepInput, OperationInput = ListDocsInput, OperationOutput = DocsPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
233
|
+
/** Named connection supplying this operation. */
|
|
234
|
+
connection: Connection$1<{
|
|
235
|
+
listDocs(): Query<OperationInput, OperationOutput>;
|
|
236
|
+
}>;
|
|
237
|
+
/** Name matching the bound connection. */
|
|
238
|
+
connectionName: string;
|
|
239
|
+
/** Coda returned the doc page. */
|
|
240
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
241
|
+
/** Coda conclusively rejected the read. */
|
|
242
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
243
|
+
/** Coda returned malformed or oversized JSON. */
|
|
244
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
245
|
+
/** Local input or connection credentials are invalid. */
|
|
246
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
247
|
+
}
|
|
248
|
+
/** Build the listDocs Step from a named connection. */
|
|
249
|
+
declare function newListDocsStep<StepInput, OperationInput = ListDocsInput, OperationOutput = DocsPage>(configuration: ListDocsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
250
|
+
/** Configuration for the getDoc connector Step. */
|
|
251
|
+
interface GetDocStepConfig<StepInput, OperationInput = GetDocInput, OperationOutput = Doc> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
252
|
+
/** Named connection supplying this operation. */
|
|
253
|
+
connection: Connection$1<{
|
|
254
|
+
getDoc(): Query<OperationInput, OperationOutput>;
|
|
255
|
+
}>;
|
|
256
|
+
/** Name matching the bound connection. */
|
|
257
|
+
connectionName: string;
|
|
258
|
+
/** Coda returned the doc. */
|
|
259
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
260
|
+
/** The doc does not exist or is inaccessible. */
|
|
261
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
262
|
+
/** Coda conclusively rejected the read. */
|
|
263
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
264
|
+
/** Coda returned malformed or oversized JSON. */
|
|
265
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
266
|
+
/** Local input or connection credentials are invalid. */
|
|
267
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
268
|
+
}
|
|
269
|
+
/** Build the getDoc Step from a named connection. */
|
|
270
|
+
declare function newGetDocStep<StepInput, OperationInput = GetDocInput, OperationOutput = Doc>(configuration: GetDocStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
271
|
+
/** Configuration for the listTables connector Step. */
|
|
272
|
+
interface ListTablesStepConfig<StepInput, OperationInput = ListTablesInput, OperationOutput = TablesPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
273
|
+
/** Named connection supplying this operation. */
|
|
274
|
+
connection: Connection$1<{
|
|
275
|
+
listTables(): Query<OperationInput, OperationOutput>;
|
|
276
|
+
}>;
|
|
277
|
+
/** Name matching the bound connection. */
|
|
278
|
+
connectionName: string;
|
|
279
|
+
/** Coda returned the table page. */
|
|
280
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
281
|
+
/** The doc does not exist or is inaccessible. */
|
|
282
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
283
|
+
/** Coda conclusively rejected the read. */
|
|
284
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
285
|
+
/** Coda returned malformed or oversized JSON. */
|
|
286
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
287
|
+
/** Local input or connection credentials are invalid. */
|
|
288
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
289
|
+
}
|
|
290
|
+
/** Build the listTables Step from a named connection. */
|
|
291
|
+
declare function newListTablesStep<StepInput, OperationInput = ListTablesInput, OperationOutput = TablesPage>(configuration: ListTablesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
292
|
+
/** Configuration for the getTable connector Step. */
|
|
293
|
+
interface GetTableStepConfig<StepInput, OperationInput = GetTableInput, OperationOutput = Table> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
294
|
+
/** Named connection supplying this operation. */
|
|
295
|
+
connection: Connection$1<{
|
|
296
|
+
getTable(): Query<OperationInput, OperationOutput>;
|
|
297
|
+
}>;
|
|
298
|
+
/** Name matching the bound connection. */
|
|
299
|
+
connectionName: string;
|
|
300
|
+
/** Coda returned the table. */
|
|
301
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
302
|
+
/** The table does not exist or is inaccessible. */
|
|
303
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
304
|
+
/** Coda conclusively rejected the read. */
|
|
305
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
306
|
+
/** Coda returned malformed or oversized JSON. */
|
|
307
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
308
|
+
/** Local input or connection credentials are invalid. */
|
|
309
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
310
|
+
}
|
|
311
|
+
/** Build the getTable Step from a named connection. */
|
|
312
|
+
declare function newGetTableStep<StepInput, OperationInput = GetTableInput, OperationOutput = Table>(configuration: GetTableStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
313
|
+
/** Configuration for the listColumns connector Step. */
|
|
314
|
+
interface ListColumnsStepConfig<StepInput, OperationInput = ListColumnsInput, OperationOutput = ColumnsPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
315
|
+
/** Named connection supplying this operation. */
|
|
316
|
+
connection: Connection$1<{
|
|
317
|
+
listColumns(): Query<OperationInput, OperationOutput>;
|
|
318
|
+
}>;
|
|
319
|
+
/** Name matching the bound connection. */
|
|
320
|
+
connectionName: string;
|
|
321
|
+
/** Coda returned the column page. */
|
|
322
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
323
|
+
/** The table does not exist or is inaccessible. */
|
|
324
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
325
|
+
/** Coda conclusively rejected the read. */
|
|
326
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
327
|
+
/** Coda returned malformed or oversized JSON. */
|
|
328
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
329
|
+
/** Local input or connection credentials are invalid. */
|
|
330
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
331
|
+
}
|
|
332
|
+
/** Build the listColumns Step from a named connection. */
|
|
333
|
+
declare function newListColumnsStep<StepInput, OperationInput = ListColumnsInput, OperationOutput = ColumnsPage>(configuration: ListColumnsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
334
|
+
|
|
335
|
+
type RowOperations = Pick<Operations, 'listRows' | 'getRow'>;
|
|
336
|
+
type CodaBindings = RowOperations & Partial<Operations>;
|
|
337
|
+
/** Named Coda connection retaining the supplied query bindings. */
|
|
338
|
+
type Connection<Bindings = CodaBindings> = Connection$1<Bindings>;
|
|
339
|
+
/** Construct a connection for a client or an injected set of queries. */
|
|
340
|
+
declare const Connection: typeof Connection$1;
|
|
341
|
+
/** Bind a provider client to its named connection. */
|
|
342
|
+
declare function newConnection<Bindings extends CodaBindings>(client: Bindings, reference: ConnectionRef): Connection<Bindings>;
|
|
343
|
+
/** Bind injected queries without requiring mocks for unused metadata queries. */
|
|
344
|
+
declare function newConnectionWithOperations<Bindings extends CodaBindings>(operations: Bindings, reference: ConnectionRef): Connection<Bindings>;
|
|
345
|
+
|
|
346
|
+
/** Read one page of doc metadata from Coda. */
|
|
347
|
+
declare class ListDocsOperation implements Query<ListDocsInput, DocsPage> {
|
|
348
|
+
private readonly client;
|
|
349
|
+
/** Bind this operation to the provider client. */
|
|
350
|
+
constructor(client: CodaClient);
|
|
351
|
+
/** Return the manifest definition and retry policy. */
|
|
352
|
+
definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
353
|
+
/** Validate the request and return the provider outcome. */
|
|
354
|
+
invoke(call: Call, input: ListDocsInput): Promise<QueryAttempt<DocsPage>>;
|
|
355
|
+
}
|
|
356
|
+
/** Read one doc from Coda. */
|
|
357
|
+
declare class GetDocOperation implements Query<GetDocInput, Doc> {
|
|
358
|
+
private readonly client;
|
|
359
|
+
/** Bind this operation to the provider client. */
|
|
360
|
+
constructor(client: CodaClient);
|
|
361
|
+
/** Return the manifest definition and retry policy. */
|
|
362
|
+
definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
363
|
+
/** Validate the request and return the provider outcome. */
|
|
364
|
+
invoke(call: Call, input: GetDocInput): Promise<QueryAttempt<Doc>>;
|
|
365
|
+
}
|
|
366
|
+
/** Read one page of table metadata from Coda. */
|
|
367
|
+
declare class ListTablesOperation implements Query<ListTablesInput, TablesPage> {
|
|
368
|
+
private readonly client;
|
|
369
|
+
/** Bind this operation to the provider client. */
|
|
370
|
+
constructor(client: CodaClient);
|
|
371
|
+
/** Return the manifest definition and retry policy. */
|
|
372
|
+
definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
373
|
+
/** Validate the request and return the provider outcome. */
|
|
374
|
+
invoke(call: Call, input: ListTablesInput): Promise<QueryAttempt<TablesPage>>;
|
|
375
|
+
}
|
|
376
|
+
/** Read one table from Coda. */
|
|
377
|
+
declare class GetTableOperation implements Query<GetTableInput, Table> {
|
|
378
|
+
private readonly client;
|
|
379
|
+
/** Bind this operation to the provider client. */
|
|
380
|
+
constructor(client: CodaClient);
|
|
381
|
+
/** Return the manifest definition and retry policy. */
|
|
382
|
+
definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
383
|
+
/** Validate the request and return the provider outcome. */
|
|
384
|
+
invoke(call: Call, input: GetTableInput): Promise<QueryAttempt<Table>>;
|
|
385
|
+
}
|
|
386
|
+
/** Read one page of column metadata from Coda. */
|
|
387
|
+
declare class ListColumnsOperation implements Query<ListColumnsInput, ColumnsPage> {
|
|
388
|
+
private readonly client;
|
|
389
|
+
/** Bind this operation to the provider client. */
|
|
390
|
+
constructor(client: CodaClient);
|
|
391
|
+
/** Return the manifest definition and retry policy. */
|
|
392
|
+
definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
393
|
+
/** Validate the request and return the provider outcome. */
|
|
394
|
+
invoke(call: Call, input: ListColumnsInput): Promise<QueryAttempt<ColumnsPage>>;
|
|
395
|
+
}
|
|
104
396
|
|
|
105
397
|
/** List one page of rows from a Coda table. */
|
|
106
398
|
declare class ListRowsOperation implements Query<ListRowsInput, ListRowsOutput> {
|
|
@@ -150,6 +442,16 @@ declare class CodaClient {
|
|
|
150
442
|
private readonly send;
|
|
151
443
|
/** Construct without sending a provider request. */
|
|
152
444
|
constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: CodaClientOptions);
|
|
445
|
+
/** Bind the listDocs Query. */
|
|
446
|
+
listDocs(): ListDocsOperation;
|
|
447
|
+
/** Bind the getDoc Query. */
|
|
448
|
+
getDoc(): GetDocOperation;
|
|
449
|
+
/** Bind the listTables Query. */
|
|
450
|
+
listTables(): ListTablesOperation;
|
|
451
|
+
/** Bind the getTable Query. */
|
|
452
|
+
getTable(): GetTableOperation;
|
|
453
|
+
/** Bind the listColumns Query. */
|
|
454
|
+
listColumns(): ListColumnsOperation;
|
|
153
455
|
/** Bind the list query. */
|
|
154
456
|
listRows(): ListRowsOperation;
|
|
155
457
|
/** Bind the single-row query. */
|
|
@@ -160,6 +462,6 @@ declare class CodaClient {
|
|
|
160
462
|
}
|
|
161
463
|
|
|
162
464
|
/** Bind one named Coda connection from a private Dex project configuration. */
|
|
163
|
-
declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
|
|
465
|
+
declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection$1<Operations>;
|
|
164
466
|
|
|
165
|
-
export { CodaClient, type CodaClientOptions, type CodaRequestSender, Config, Connection, ConnectorID, Credentials, GetRowBranch, GetRowBranchDefect, GetRowBranchFound, GetRowBranchInvalidResponse, GetRowBranchNotFound, GetRowBranchProviderRejected, GetRowDefinition, GetRowInput, GetRowMetadata, GetRowOperation, GetRowOutput, type GetRowStepConfig, ListRowsBranch, ListRowsBranchDefect, ListRowsBranchInvalidResponse, ListRowsBranchListed, ListRowsBranchProviderRejected, ListRowsDefinition, ListRowsInput, ListRowsMetadata, ListRowsOperation, ListRowsOutput, type ListRowsStepConfig, ProviderID, newGetRowStep, newListRowsStep, newProjectConnection };
|
|
467
|
+
export { CodaClient, type CodaClientOptions, type CodaRequestSender, ColumnsPage, Config, Connection, ConnectorID, Credentials, Doc, DocsPage, GetDocBranch, GetDocBranchDefect, GetDocBranchFound, GetDocBranchInvalidResponse, GetDocBranchNotFound, GetDocBranchProviderRejected, GetDocDefinition, GetDocInput, GetDocMetadata, GetDocOperation, type GetDocStepConfig, GetRowBranch, GetRowBranchDefect, GetRowBranchFound, GetRowBranchInvalidResponse, GetRowBranchNotFound, GetRowBranchProviderRejected, GetRowDefinition, GetRowInput, GetRowMetadata, GetRowOperation, GetRowOutput, type GetRowStepConfig, GetTableBranch, GetTableBranchDefect, GetTableBranchFound, GetTableBranchInvalidResponse, GetTableBranchNotFound, GetTableBranchProviderRejected, GetTableDefinition, GetTableInput, GetTableMetadata, GetTableOperation, type GetTableStepConfig, ListColumnsBranch, ListColumnsBranchDefect, ListColumnsBranchInvalidResponse, ListColumnsBranchListed, ListColumnsBranchNotFound, ListColumnsBranchProviderRejected, ListColumnsDefinition, ListColumnsInput, ListColumnsMetadata, ListColumnsOperation, type ListColumnsStepConfig, ListDocsBranch, ListDocsBranchDefect, ListDocsBranchInvalidResponse, ListDocsBranchListed, ListDocsBranchProviderRejected, ListDocsDefinition, ListDocsInput, ListDocsMetadata, ListDocsOperation, type ListDocsStepConfig, ListRowsBranch, ListRowsBranchDefect, ListRowsBranchInvalidResponse, ListRowsBranchListed, ListRowsBranchProviderRejected, ListRowsDefinition, ListRowsInput, ListRowsMetadata, ListRowsOperation, ListRowsOutput, type ListRowsStepConfig, ListTablesBranch, ListTablesBranchDefect, ListTablesBranchInvalidResponse, ListTablesBranchListed, ListTablesBranchNotFound, ListTablesBranchProviderRejected, ListTablesDefinition, ListTablesInput, ListTablesMetadata, ListTablesOperation, type ListTablesStepConfig, Operations, ProviderID, Table, TablesPage, newConnection, newConnectionWithOperations, newGetDocStep, newGetRowStep, newGetTableStep, newListColumnsStep, newListDocsStep, newListRowsStep, newListTablesStep, newProjectConnection };
|