@boltic/sdk 0.1.1 → 0.1.2
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 +1 -8
- package/dist/sdk.js +2 -34
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.mjs +2 -34
- package/dist/sdk.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -13
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -154,10 +154,6 @@ export declare class BolticClient {
|
|
|
154
154
|
message: string;
|
|
155
155
|
}>>;
|
|
156
156
|
rename: (oldName: string, newName: string) => Promise<BolticSuccessResponse<TableRecord>>;
|
|
157
|
-
setAccess: (request: {
|
|
158
|
-
table_name: string;
|
|
159
|
-
is_shared: boolean;
|
|
160
|
-
}) => Promise<BolticSuccessResponse<TableRecord>>;
|
|
161
157
|
};
|
|
162
158
|
get columns(): {
|
|
163
159
|
create: (tableName: string, column: FieldDefinition) => Promise<BolticErrorResponse | BolticSuccessResponse<ColumnRecord>>;
|
|
@@ -1013,7 +1009,6 @@ declare class SqlResource {
|
|
|
1013
1009
|
declare class TableBuilder {
|
|
1014
1010
|
private tableName;
|
|
1015
1011
|
private description?;
|
|
1016
|
-
private isPublic;
|
|
1017
1012
|
private fields;
|
|
1018
1013
|
private tablesApiClient?;
|
|
1019
1014
|
constructor(options: TableBuilderOptions, tablesApiClient?: TablesApiClient);
|
|
@@ -1025,10 +1020,6 @@ declare class TableBuilder {
|
|
|
1025
1020
|
* Set table description
|
|
1026
1021
|
*/
|
|
1027
1022
|
describe(description: string): TableBuilder;
|
|
1028
|
-
/**
|
|
1029
|
-
* Set if table is public
|
|
1030
|
-
*/
|
|
1031
|
-
public(isPublic?: boolean): TableBuilder;
|
|
1032
1023
|
/**
|
|
1033
1024
|
* Add a text field
|
|
1034
1025
|
*/
|
|
@@ -1197,7 +1188,6 @@ declare interface TableCreateResponse {
|
|
|
1197
1188
|
declare interface TableListOptions extends TableQueryOptions {
|
|
1198
1189
|
page?: number;
|
|
1199
1190
|
pageSize?: number;
|
|
1200
|
-
isShared?: boolean;
|
|
1201
1191
|
db_id?: string;
|
|
1202
1192
|
}
|
|
1203
1193
|
|
|
@@ -1207,7 +1197,6 @@ declare interface TableQueryOptions {
|
|
|
1207
1197
|
name?: string;
|
|
1208
1198
|
db_id?: string;
|
|
1209
1199
|
resource_id?: string;
|
|
1210
|
-
is_public?: boolean;
|
|
1211
1200
|
created_by?: string;
|
|
1212
1201
|
created_at?: {
|
|
1213
1202
|
$gte?: string;
|
|
@@ -1236,6 +1225,7 @@ export declare interface TableRecord {
|
|
|
1236
1225
|
type?: string;
|
|
1237
1226
|
parent_table_id?: string;
|
|
1238
1227
|
is_deleted: boolean;
|
|
1228
|
+
/** @deprecated All tables are now public by default. This field is always true and ineffective. */
|
|
1239
1229
|
is_public: boolean;
|
|
1240
1230
|
created_by: string;
|
|
1241
1231
|
created_at: string;
|
|
@@ -1276,7 +1266,6 @@ declare class TablesApiClient {
|
|
|
1276
1266
|
updateTable(tableId: string, updates: {
|
|
1277
1267
|
name?: string;
|
|
1278
1268
|
description?: string;
|
|
1279
|
-
is_shared?: boolean;
|
|
1280
1269
|
fields?: Array<keyof TableRecord>;
|
|
1281
1270
|
db_id?: string;
|
|
1282
1271
|
}): Promise<BolticSuccessResponse_2<TableRecord> | BolticErrorResponse_2>;
|
|
@@ -1306,7 +1295,6 @@ declare interface TablesApiClientConfig {
|
|
|
1306
1295
|
declare interface TableUpdateRequest {
|
|
1307
1296
|
name?: string;
|
|
1308
1297
|
description?: string;
|
|
1309
|
-
is_shared?: boolean;
|
|
1310
1298
|
fields?: Array<keyof TableRecord>;
|
|
1311
1299
|
}
|
|
1312
1300
|
|