@redonvn/redai-backend-api-sdk 0.1.1
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 +69 -0
- package/dist/core/auth.d.ts +19 -0
- package/dist/core/auth.js +47 -0
- package/dist/core/http-client.d.ts +9 -0
- package/dist/core/http-client.js +41 -0
- package/dist/core/types.d.ts +19 -0
- package/dist/core/types.js +2 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +19 -0
- package/dist/generated/services/auth.service.d.ts +7 -0
- package/dist/generated/services/auth.service.js +18 -0
- package/dist/generated/services/bases.service.d.ts +11 -0
- package/dist/generated/services/bases.service.js +54 -0
- package/dist/generated/services/calendars.service.d.ts +8 -0
- package/dist/generated/services/calendars.service.js +27 -0
- package/dist/generated/services/columns.service.d.ts +10 -0
- package/dist/generated/services/columns.service.js +45 -0
- package/dist/generated/services/filters.service.d.ts +10 -0
- package/dist/generated/services/filters.service.js +45 -0
- package/dist/generated/services/form-columns.service.d.ts +7 -0
- package/dist/generated/services/form-columns.service.js +18 -0
- package/dist/generated/services/forms.service.d.ts +8 -0
- package/dist/generated/services/forms.service.js +27 -0
- package/dist/generated/services/galleries.service.d.ts +8 -0
- package/dist/generated/services/galleries.service.js +27 -0
- package/dist/generated/services/grid-columns.service.d.ts +7 -0
- package/dist/generated/services/grid-columns.service.js +18 -0
- package/dist/generated/services/grids.service.d.ts +8 -0
- package/dist/generated/services/grids.service.js +27 -0
- package/dist/generated/services/index.d.ts +17 -0
- package/dist/generated/services/index.js +38 -0
- package/dist/generated/services/kanbans.service.d.ts +8 -0
- package/dist/generated/services/kanbans.service.js +27 -0
- package/dist/generated/services/maps.service.d.ts +8 -0
- package/dist/generated/services/maps.service.js +27 -0
- package/dist/generated/services/sorts.service.d.ts +9 -0
- package/dist/generated/services/sorts.service.js +36 -0
- package/dist/generated/services/sources.service.d.ts +9 -0
- package/dist/generated/services/sources.service.js +36 -0
- package/dist/generated/services/tables.service.d.ts +44 -0
- package/dist/generated/services/tables.service.js +351 -0
- package/dist/generated/services/views.service.d.ts +27 -0
- package/dist/generated/services/views.service.js +198 -0
- package/dist/generated/services/workspaces.service.d.ts +18 -0
- package/dist/generated/services/workspaces.service.js +117 -0
- package/dist/generated/types.d.ts +540 -0
- package/dist/generated/types.js +2 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +75 -0
- package/package.json +34 -0
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
export type AddWorkspaceMemberDto = {};
|
|
2
|
+
export type BulkColumnsDto = {};
|
|
3
|
+
export type BulkDataListDto = {
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
};
|
|
7
|
+
export type BulkGroupDto = {
|
|
8
|
+
limit?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
};
|
|
11
|
+
export type BulkLinkDto = {};
|
|
12
|
+
export type BulkUpdateViewColumnsDto = {};
|
|
13
|
+
export type CreateBaseDto = {};
|
|
14
|
+
export type CreateCalendarViewDto = {};
|
|
15
|
+
export type CreateColumnDto = {};
|
|
16
|
+
export type CreateFormViewDto = {};
|
|
17
|
+
export type CreateGalleryViewDto = {};
|
|
18
|
+
export type CreateGridViewDto = {};
|
|
19
|
+
export type CreateKanbanViewDto = {};
|
|
20
|
+
export type CreateMapViewDto = {};
|
|
21
|
+
export type CreateRowColorConditionDto = {};
|
|
22
|
+
export type CreateSourceDto = {};
|
|
23
|
+
export type CreateTableDto = {};
|
|
24
|
+
export type CreateViewColumnDto = {};
|
|
25
|
+
export type CreateViewDto = {};
|
|
26
|
+
export type CreateViewFilterDto = {};
|
|
27
|
+
export type CreateViewSortDto = {};
|
|
28
|
+
export type CreateWorkspaceDto = {};
|
|
29
|
+
export type RecordMoveDto = {};
|
|
30
|
+
export type RelationUpdateDto = {};
|
|
31
|
+
export type ReorderColumnsDto = {};
|
|
32
|
+
export type ReorderTablesDto = {};
|
|
33
|
+
export type ReorderViewSortsDto = {};
|
|
34
|
+
export type UpdateBaseDto = {};
|
|
35
|
+
export type UpdateCalendarViewDto = {};
|
|
36
|
+
export type UpdateColumnDto = {};
|
|
37
|
+
export type UpdateFormViewDto = {};
|
|
38
|
+
export type UpdateGalleryViewDto = {};
|
|
39
|
+
export type UpdateGridViewDto = {};
|
|
40
|
+
export type UpdateKanbanViewDto = {};
|
|
41
|
+
export type UpdateMapViewDto = {};
|
|
42
|
+
export type UpdateRowColorConditionDto = {};
|
|
43
|
+
export type UpdateRowColorModeDto = {};
|
|
44
|
+
export type UpdateSourceDto = {};
|
|
45
|
+
export type UpdateTableDto = {};
|
|
46
|
+
export type UpdateViewColumnDto = {};
|
|
47
|
+
export type UpdateViewDto = {};
|
|
48
|
+
export type UpdateViewFilterDto = {};
|
|
49
|
+
export type UpdateViewSortDto = {};
|
|
50
|
+
export type UpdateWorkspaceDto = {};
|
|
51
|
+
export type UpdateWorkspaceMemberDto = {};
|
|
52
|
+
export type DeleteBaseV1ParamsBaseIdPath = string;
|
|
53
|
+
export type ListSourcesV1ParamsPageQuery = number;
|
|
54
|
+
export type ListSourcesV1ParamsEnabledQuery = boolean;
|
|
55
|
+
export type ListTablesV1ParamsIncludeFieldsQuery = boolean;
|
|
56
|
+
export interface AddMemberV1Params {
|
|
57
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
58
|
+
body: AddWorkspaceMemberDto;
|
|
59
|
+
}
|
|
60
|
+
export interface AggregateRecordsV1Params {
|
|
61
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
62
|
+
query?: {
|
|
63
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
64
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface BulkColumnsV1Params {
|
|
68
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
69
|
+
body: BulkColumnsDto;
|
|
70
|
+
}
|
|
71
|
+
export interface BulkDataListV1Params {
|
|
72
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
73
|
+
body: BulkDataListDto;
|
|
74
|
+
}
|
|
75
|
+
export interface BulkGroupByV1Params {
|
|
76
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
77
|
+
body: BulkGroupDto;
|
|
78
|
+
}
|
|
79
|
+
export interface BulkUpdateViewColumnsV1Params {
|
|
80
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
81
|
+
body: BulkUpdateViewColumnsDto;
|
|
82
|
+
}
|
|
83
|
+
export interface ClearRowColorV1Params {
|
|
84
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
85
|
+
}
|
|
86
|
+
export interface CountByDateV1Params {
|
|
87
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
88
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
89
|
+
query?: {
|
|
90
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
91
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export interface CountRangeV1Params {
|
|
95
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
96
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
97
|
+
query?: {
|
|
98
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
99
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface CountRecordsV1Params {
|
|
103
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
104
|
+
query?: {
|
|
105
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
106
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export interface CreateBaseV1Params {
|
|
110
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
111
|
+
body: CreateBaseDto;
|
|
112
|
+
}
|
|
113
|
+
export interface CreateCalendarViewV1Params {
|
|
114
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
115
|
+
body: CreateCalendarViewDto;
|
|
116
|
+
}
|
|
117
|
+
export interface CreateColumnV1Params {
|
|
118
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
119
|
+
body: CreateColumnDto;
|
|
120
|
+
}
|
|
121
|
+
export interface CreateFilterV1Params {
|
|
122
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
123
|
+
body: CreateViewFilterDto;
|
|
124
|
+
}
|
|
125
|
+
export interface CreateFormViewV1Params {
|
|
126
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
127
|
+
body: CreateFormViewDto;
|
|
128
|
+
}
|
|
129
|
+
export interface CreateGalleryViewV1Params {
|
|
130
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
131
|
+
body: CreateGalleryViewDto;
|
|
132
|
+
}
|
|
133
|
+
export interface CreateGridViewV1Params {
|
|
134
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
135
|
+
body: CreateGridViewDto;
|
|
136
|
+
}
|
|
137
|
+
export interface CreateKanbanViewV1Params {
|
|
138
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
139
|
+
body: CreateKanbanViewDto;
|
|
140
|
+
}
|
|
141
|
+
export interface CreateMapViewV1Params {
|
|
142
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
143
|
+
body: CreateMapViewDto;
|
|
144
|
+
}
|
|
145
|
+
export interface CreateRecordsV1Params {
|
|
146
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
147
|
+
}
|
|
148
|
+
export interface CreateRowColorConditionV1Params {
|
|
149
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
150
|
+
body: CreateRowColorConditionDto;
|
|
151
|
+
}
|
|
152
|
+
export interface CreateSortV1Params {
|
|
153
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
154
|
+
body: CreateViewSortDto;
|
|
155
|
+
}
|
|
156
|
+
export interface CreateSourceV1Params {
|
|
157
|
+
baseId: DeleteBaseV1ParamsBaseIdPath;
|
|
158
|
+
body: CreateSourceDto;
|
|
159
|
+
}
|
|
160
|
+
export interface CreateTableV1Params {
|
|
161
|
+
body: CreateTableDto;
|
|
162
|
+
}
|
|
163
|
+
export interface CreateViewColumnV1Params {
|
|
164
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
165
|
+
body: CreateViewColumnDto;
|
|
166
|
+
}
|
|
167
|
+
export interface CreateViewV1Params {
|
|
168
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
169
|
+
body: CreateViewDto;
|
|
170
|
+
}
|
|
171
|
+
export interface CreateWorkspaceV1Params {
|
|
172
|
+
body: CreateWorkspaceDto;
|
|
173
|
+
}
|
|
174
|
+
export interface DeleteBaseV1Params {
|
|
175
|
+
baseId: DeleteBaseV1ParamsBaseIdPath;
|
|
176
|
+
}
|
|
177
|
+
export interface DeleteColumnV1Params {
|
|
178
|
+
columnId: DeleteBaseV1ParamsBaseIdPath;
|
|
179
|
+
}
|
|
180
|
+
export interface DeleteFilterV1Params {
|
|
181
|
+
filterId: DeleteBaseV1ParamsBaseIdPath;
|
|
182
|
+
}
|
|
183
|
+
export interface DeleteRecordsV1Params {
|
|
184
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
185
|
+
}
|
|
186
|
+
export interface DeleteRowColorConditionV1Params {
|
|
187
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
188
|
+
id: DeleteBaseV1ParamsBaseIdPath;
|
|
189
|
+
}
|
|
190
|
+
export interface DeleteSortV1Params {
|
|
191
|
+
sortId: DeleteBaseV1ParamsBaseIdPath;
|
|
192
|
+
}
|
|
193
|
+
export interface DeleteSourceV1Params {
|
|
194
|
+
sourceId: DeleteBaseV1ParamsBaseIdPath;
|
|
195
|
+
}
|
|
196
|
+
export interface DeleteTableV1Params {
|
|
197
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
198
|
+
}
|
|
199
|
+
export interface DeleteViewV1Params {
|
|
200
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
201
|
+
}
|
|
202
|
+
export interface DeleteWorkspaceV1Params {
|
|
203
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
204
|
+
}
|
|
205
|
+
export interface ExchangeTokenV1Params {
|
|
206
|
+
_?: never;
|
|
207
|
+
}
|
|
208
|
+
export interface GetBaseV1Params {
|
|
209
|
+
baseId: DeleteBaseV1ParamsBaseIdPath;
|
|
210
|
+
}
|
|
211
|
+
export interface GetCalendarViewV1Params {
|
|
212
|
+
calendarViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
213
|
+
}
|
|
214
|
+
export interface GetColumnsHashV1Params {
|
|
215
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
216
|
+
}
|
|
217
|
+
export interface GetColumnV1Params {
|
|
218
|
+
columnId: DeleteBaseV1ParamsBaseIdPath;
|
|
219
|
+
}
|
|
220
|
+
export interface GetFilterV1Params {
|
|
221
|
+
filterId: DeleteBaseV1ParamsBaseIdPath;
|
|
222
|
+
}
|
|
223
|
+
export interface GetFormViewV1Params {
|
|
224
|
+
formViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
225
|
+
}
|
|
226
|
+
export interface GetGalleryViewV1Params {
|
|
227
|
+
galleryViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
228
|
+
}
|
|
229
|
+
export interface GetKanbanViewV1Params {
|
|
230
|
+
kanbanViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
231
|
+
}
|
|
232
|
+
export interface GetMapViewV1Params {
|
|
233
|
+
mapViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
234
|
+
}
|
|
235
|
+
export interface GetRecordV1Params {
|
|
236
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
237
|
+
recordId: DeleteBaseV1ParamsBaseIdPath;
|
|
238
|
+
}
|
|
239
|
+
export interface GetRowColorV1Params {
|
|
240
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
241
|
+
}
|
|
242
|
+
export interface GetSortV1Params {
|
|
243
|
+
sortId: DeleteBaseV1ParamsBaseIdPath;
|
|
244
|
+
}
|
|
245
|
+
export interface GetSourceV1Params {
|
|
246
|
+
sourceId: DeleteBaseV1ParamsBaseIdPath;
|
|
247
|
+
}
|
|
248
|
+
export interface GetTableV1Params {
|
|
249
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
250
|
+
query?: {
|
|
251
|
+
page?: ListSourcesV1ParamsPageQuery;
|
|
252
|
+
pageSize?: ListSourcesV1ParamsPageQuery;
|
|
253
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
254
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
255
|
+
workspaceId?: DeleteBaseV1ParamsBaseIdPath;
|
|
256
|
+
baseId?: DeleteBaseV1ParamsBaseIdPath;
|
|
257
|
+
includeFields?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
258
|
+
includeViews?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
259
|
+
includeDeleted?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
260
|
+
q?: DeleteBaseV1ParamsBaseIdPath;
|
|
261
|
+
sort?: DeleteBaseV1ParamsBaseIdPath;
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
export interface GetViewV1Params {
|
|
265
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
266
|
+
query?: {
|
|
267
|
+
includeConfig?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
268
|
+
includeColumns?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export interface GetWorkspaceBySlugV1Params {
|
|
272
|
+
slug: DeleteBaseV1ParamsBaseIdPath;
|
|
273
|
+
}
|
|
274
|
+
export interface GetWorkspaceV1Params {
|
|
275
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
276
|
+
}
|
|
277
|
+
export interface GroupByV1Params {
|
|
278
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
279
|
+
fieldId: DeleteBaseV1ParamsBaseIdPath;
|
|
280
|
+
query?: {
|
|
281
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
282
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
export interface HideViewV1Params {
|
|
286
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
287
|
+
}
|
|
288
|
+
export interface LinkRecordsBulkV1Params {
|
|
289
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
290
|
+
fieldId: DeleteBaseV1ParamsBaseIdPath;
|
|
291
|
+
body: BulkLinkDto;
|
|
292
|
+
}
|
|
293
|
+
export interface LinkRecordsV1Params {
|
|
294
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
295
|
+
recordId: DeleteBaseV1ParamsBaseIdPath;
|
|
296
|
+
fieldId: DeleteBaseV1ParamsBaseIdPath;
|
|
297
|
+
body: RelationUpdateDto;
|
|
298
|
+
}
|
|
299
|
+
export interface ListBasesV1Params {
|
|
300
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
301
|
+
query?: {
|
|
302
|
+
page?: ListSourcesV1ParamsPageQuery;
|
|
303
|
+
pageSize?: ListSourcesV1ParamsPageQuery;
|
|
304
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
305
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
306
|
+
workspaceId?: DeleteBaseV1ParamsBaseIdPath;
|
|
307
|
+
status?: DeleteBaseV1ParamsBaseIdPath;
|
|
308
|
+
isMeta?: ListSourcesV1ParamsEnabledQuery;
|
|
309
|
+
deleted?: ListSourcesV1ParamsEnabledQuery;
|
|
310
|
+
q?: DeleteBaseV1ParamsBaseIdPath;
|
|
311
|
+
sort?: DeleteBaseV1ParamsBaseIdPath;
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
export interface ListCalendarRecordsV1Params {
|
|
315
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
316
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
317
|
+
query?: {
|
|
318
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
319
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
export interface ListChildrenV1Params {
|
|
323
|
+
filterParentId: DeleteBaseV1ParamsBaseIdPath;
|
|
324
|
+
}
|
|
325
|
+
export interface ListFiltersV1Params {
|
|
326
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
327
|
+
}
|
|
328
|
+
export interface ListGridColumnsV1Params {
|
|
329
|
+
gridViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
330
|
+
}
|
|
331
|
+
export interface ListGroupedRecordsV1Params {
|
|
332
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
333
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
334
|
+
query?: {
|
|
335
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
336
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
export interface ListLinkedRecordsV1Params {
|
|
340
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
341
|
+
recordId: DeleteBaseV1ParamsBaseIdPath;
|
|
342
|
+
fieldId: DeleteBaseV1ParamsBaseIdPath;
|
|
343
|
+
}
|
|
344
|
+
export interface ListMembersV1Params {
|
|
345
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
346
|
+
query?: {
|
|
347
|
+
page?: ListSourcesV1ParamsPageQuery;
|
|
348
|
+
pageSize?: ListSourcesV1ParamsPageQuery;
|
|
349
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
350
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
351
|
+
role?: DeleteBaseV1ParamsBaseIdPath;
|
|
352
|
+
isActive?: ListSourcesV1ParamsEnabledQuery;
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
export interface ListRecordsV1Params {
|
|
356
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
357
|
+
query?: {
|
|
358
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
359
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
export interface ListSortsV1Params {
|
|
363
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
364
|
+
}
|
|
365
|
+
export interface ListSourcesV1Params {
|
|
366
|
+
baseId: DeleteBaseV1ParamsBaseIdPath;
|
|
367
|
+
query?: {
|
|
368
|
+
page?: ListSourcesV1ParamsPageQuery;
|
|
369
|
+
pageSize?: ListSourcesV1ParamsPageQuery;
|
|
370
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
371
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
372
|
+
workspaceId?: DeleteBaseV1ParamsBaseIdPath;
|
|
373
|
+
baseId?: DeleteBaseV1ParamsBaseIdPath;
|
|
374
|
+
type?: DeleteBaseV1ParamsBaseIdPath;
|
|
375
|
+
enabled?: ListSourcesV1ParamsEnabledQuery;
|
|
376
|
+
deleted?: ListSourcesV1ParamsEnabledQuery;
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
export interface ListTablesV1Params {
|
|
380
|
+
query?: {
|
|
381
|
+
page?: ListSourcesV1ParamsPageQuery;
|
|
382
|
+
pageSize?: ListSourcesV1ParamsPageQuery;
|
|
383
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
384
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
385
|
+
workspaceId?: DeleteBaseV1ParamsBaseIdPath;
|
|
386
|
+
baseId?: DeleteBaseV1ParamsBaseIdPath;
|
|
387
|
+
includeFields?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
388
|
+
includeViews?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
389
|
+
includeDeleted?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
390
|
+
q?: DeleteBaseV1ParamsBaseIdPath;
|
|
391
|
+
sort?: DeleteBaseV1ParamsBaseIdPath;
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
export interface ListViewColumnsV1Params {
|
|
395
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
396
|
+
}
|
|
397
|
+
export interface ListViewsV1Params {
|
|
398
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
399
|
+
query?: {
|
|
400
|
+
includeConfig?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
401
|
+
includeColumns?: ListTablesV1ParamsIncludeFieldsQuery;
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
export interface ListWorkspacesV1Params {
|
|
405
|
+
query?: {
|
|
406
|
+
page?: ListSourcesV1ParamsPageQuery;
|
|
407
|
+
pageSize?: ListSourcesV1ParamsPageQuery;
|
|
408
|
+
limit?: ListSourcesV1ParamsPageQuery;
|
|
409
|
+
offset?: ListSourcesV1ParamsPageQuery;
|
|
410
|
+
isActive?: ListSourcesV1ParamsEnabledQuery;
|
|
411
|
+
q?: DeleteBaseV1ParamsBaseIdPath;
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
export interface MoveRecordV1Params {
|
|
415
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
416
|
+
recordId: DeleteBaseV1ParamsBaseIdPath;
|
|
417
|
+
body: RecordMoveDto;
|
|
418
|
+
}
|
|
419
|
+
export interface RemoveMemberV1Params {
|
|
420
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
421
|
+
memberId: DeleteBaseV1ParamsBaseIdPath;
|
|
422
|
+
}
|
|
423
|
+
export interface ReorderColumnsV1Params {
|
|
424
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
425
|
+
body: ReorderColumnsDto;
|
|
426
|
+
}
|
|
427
|
+
export interface ReorderSortsV1Params {
|
|
428
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
429
|
+
body: ReorderViewSortsDto;
|
|
430
|
+
}
|
|
431
|
+
export interface ReorderTablesV1Params {
|
|
432
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
433
|
+
body: ReorderTablesDto;
|
|
434
|
+
}
|
|
435
|
+
export interface SetDefaultViewV1Params {
|
|
436
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
437
|
+
}
|
|
438
|
+
export interface SetPrimaryColumnV1Params {
|
|
439
|
+
columnId: DeleteBaseV1ParamsBaseIdPath;
|
|
440
|
+
}
|
|
441
|
+
export interface ShowViewV1Params {
|
|
442
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
443
|
+
}
|
|
444
|
+
export interface UnlinkRecordsBulkV1Params {
|
|
445
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
446
|
+
fieldId: DeleteBaseV1ParamsBaseIdPath;
|
|
447
|
+
body: BulkLinkDto;
|
|
448
|
+
}
|
|
449
|
+
export interface UnlinkRecordsV1Params {
|
|
450
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
451
|
+
recordId: DeleteBaseV1ParamsBaseIdPath;
|
|
452
|
+
fieldId: DeleteBaseV1ParamsBaseIdPath;
|
|
453
|
+
body: RelationUpdateDto;
|
|
454
|
+
}
|
|
455
|
+
export interface UpdateBaseV1Params {
|
|
456
|
+
baseId: DeleteBaseV1ParamsBaseIdPath;
|
|
457
|
+
body: UpdateBaseDto;
|
|
458
|
+
}
|
|
459
|
+
export interface UpdateCalendarViewV1Params {
|
|
460
|
+
calendarViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
461
|
+
body: UpdateCalendarViewDto;
|
|
462
|
+
}
|
|
463
|
+
export interface UpdateColumnV1Params {
|
|
464
|
+
columnId: DeleteBaseV1ParamsBaseIdPath;
|
|
465
|
+
body: UpdateColumnDto;
|
|
466
|
+
}
|
|
467
|
+
export interface UpdateFilterV1Params {
|
|
468
|
+
filterId: DeleteBaseV1ParamsBaseIdPath;
|
|
469
|
+
body: UpdateViewFilterDto;
|
|
470
|
+
}
|
|
471
|
+
export interface UpdateFormColumnV1Params {
|
|
472
|
+
formViewColumnId: DeleteBaseV1ParamsBaseIdPath;
|
|
473
|
+
body: UpdateViewColumnDto;
|
|
474
|
+
}
|
|
475
|
+
export interface UpdateFormViewV1Params {
|
|
476
|
+
formViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
477
|
+
body: UpdateFormViewDto;
|
|
478
|
+
}
|
|
479
|
+
export interface UpdateGalleryViewV1Params {
|
|
480
|
+
galleryViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
481
|
+
body: UpdateGalleryViewDto;
|
|
482
|
+
}
|
|
483
|
+
export interface UpdateGridColumnV1Params {
|
|
484
|
+
gridViewColumnId: DeleteBaseV1ParamsBaseIdPath;
|
|
485
|
+
body: UpdateViewColumnDto;
|
|
486
|
+
}
|
|
487
|
+
export interface UpdateGridViewV1Params {
|
|
488
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
489
|
+
body: UpdateGridViewDto;
|
|
490
|
+
}
|
|
491
|
+
export interface UpdateKanbanViewV1Params {
|
|
492
|
+
kanbanViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
493
|
+
body: UpdateKanbanViewDto;
|
|
494
|
+
}
|
|
495
|
+
export interface UpdateMapViewV1Params {
|
|
496
|
+
mapViewId: DeleteBaseV1ParamsBaseIdPath;
|
|
497
|
+
body: UpdateMapViewDto;
|
|
498
|
+
}
|
|
499
|
+
export interface UpdateMemberV1Params {
|
|
500
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
501
|
+
memberId: DeleteBaseV1ParamsBaseIdPath;
|
|
502
|
+
body: UpdateWorkspaceMemberDto;
|
|
503
|
+
}
|
|
504
|
+
export interface UpdateRecordsV1Params {
|
|
505
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
506
|
+
}
|
|
507
|
+
export interface UpdateRowColorConditionV1Params {
|
|
508
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
509
|
+
id: DeleteBaseV1ParamsBaseIdPath;
|
|
510
|
+
body: UpdateRowColorConditionDto;
|
|
511
|
+
}
|
|
512
|
+
export interface UpdateRowColorModeV1Params {
|
|
513
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
514
|
+
body: UpdateRowColorModeDto;
|
|
515
|
+
}
|
|
516
|
+
export interface UpdateSortV1Params {
|
|
517
|
+
sortId: DeleteBaseV1ParamsBaseIdPath;
|
|
518
|
+
body: UpdateViewSortDto;
|
|
519
|
+
}
|
|
520
|
+
export interface UpdateSourceV1Params {
|
|
521
|
+
sourceId: DeleteBaseV1ParamsBaseIdPath;
|
|
522
|
+
body: UpdateSourceDto;
|
|
523
|
+
}
|
|
524
|
+
export interface UpdateTableV1Params {
|
|
525
|
+
tableId: DeleteBaseV1ParamsBaseIdPath;
|
|
526
|
+
body: UpdateTableDto;
|
|
527
|
+
}
|
|
528
|
+
export interface UpdateViewColumnV1Params {
|
|
529
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
530
|
+
columnId: DeleteBaseV1ParamsBaseIdPath;
|
|
531
|
+
body: UpdateViewColumnDto;
|
|
532
|
+
}
|
|
533
|
+
export interface UpdateViewV1Params {
|
|
534
|
+
viewId: DeleteBaseV1ParamsBaseIdPath;
|
|
535
|
+
body: UpdateViewDto;
|
|
536
|
+
}
|
|
537
|
+
export interface UpdateWorkspaceV1Params {
|
|
538
|
+
workspaceId: DeleteBaseV1ParamsBaseIdPath;
|
|
539
|
+
body: UpdateWorkspaceDto;
|
|
540
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DynamicTableAuth } from './core/auth';
|
|
2
|
+
import { DynamicTableSdkConfig } from './core/types';
|
|
3
|
+
import { AuthService, BasesService, CalendarsService, ColumnsService, FiltersService, FormColumnsService, FormsService, GalleriesService, GridColumnsService, GridsService, KanbansService, MapsService, SortsService, SourcesService, TablesService, ViewsService, WorkspacesService } from './generated/services';
|
|
4
|
+
export type { ApiResponseDto, DynamicTableSdkConfig, DynamicTableTokenProvider } from './core/types';
|
|
5
|
+
export * from './generated';
|
|
6
|
+
export declare const createFrontendAxiosTokenProvider: (options?: {
|
|
7
|
+
authStorageKey?: string;
|
|
8
|
+
dtApiToken?: string | null;
|
|
9
|
+
getDtApiToken?: () => string | null | undefined;
|
|
10
|
+
}) => {
|
|
11
|
+
readonly getBearerToken: () => string | null;
|
|
12
|
+
readonly getDtApiToken: () => string | null;
|
|
13
|
+
};
|
|
14
|
+
export declare const createDynamicTableSdk: (config: DynamicTableSdkConfig) => {
|
|
15
|
+
auth: DynamicTableAuth;
|
|
16
|
+
authService: AuthService;
|
|
17
|
+
bases: BasesService;
|
|
18
|
+
calendars: CalendarsService;
|
|
19
|
+
columns: ColumnsService;
|
|
20
|
+
filters: FiltersService;
|
|
21
|
+
formColumns: FormColumnsService;
|
|
22
|
+
forms: FormsService;
|
|
23
|
+
galleries: GalleriesService;
|
|
24
|
+
gridColumns: GridColumnsService;
|
|
25
|
+
grids: GridsService;
|
|
26
|
+
kanbans: KanbansService;
|
|
27
|
+
maps: MapsService;
|
|
28
|
+
sorts: SortsService;
|
|
29
|
+
sources: SourcesService;
|
|
30
|
+
tables: TablesService;
|
|
31
|
+
views: ViewsService;
|
|
32
|
+
workspaces: WorkspacesService;
|
|
33
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.createDynamicTableSdk = exports.createFrontendAxiosTokenProvider = void 0;
|
|
18
|
+
const auth_1 = require("./core/auth");
|
|
19
|
+
const http_client_1 = require("./core/http-client");
|
|
20
|
+
const services_1 = require("./generated/services");
|
|
21
|
+
__exportStar(require("./generated"), exports);
|
|
22
|
+
const createFrontendAxiosTokenProvider = (options) => {
|
|
23
|
+
const authStorageKey = options?.authStorageKey ?? 'auth_data';
|
|
24
|
+
return {
|
|
25
|
+
getBearerToken: () => {
|
|
26
|
+
const storage = globalThis.localStorage;
|
|
27
|
+
if (!storage)
|
|
28
|
+
return null;
|
|
29
|
+
try {
|
|
30
|
+
const raw = storage.getItem(authStorageKey);
|
|
31
|
+
if (!raw)
|
|
32
|
+
return null;
|
|
33
|
+
const parsed = JSON.parse(raw);
|
|
34
|
+
if (!parsed?.accessToken)
|
|
35
|
+
return null;
|
|
36
|
+
if (typeof parsed.expiresAt === 'number' && parsed.expiresAt <= Date.now())
|
|
37
|
+
return null;
|
|
38
|
+
return parsed.accessToken;
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
getDtApiToken: () => options?.getDtApiToken?.() ?? options?.dtApiToken ?? null,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.createFrontendAxiosTokenProvider = createFrontendAxiosTokenProvider;
|
|
48
|
+
const createDynamicTableSdk = (config) => {
|
|
49
|
+
const auth = new auth_1.DynamicTableAuth({
|
|
50
|
+
bearerToken: config.bearerToken ?? null,
|
|
51
|
+
dtApiToken: config.dtApiToken ?? null,
|
|
52
|
+
}, config.tokenProvider);
|
|
53
|
+
const client = new http_client_1.HttpClient(config, auth);
|
|
54
|
+
return {
|
|
55
|
+
auth,
|
|
56
|
+
authService: new services_1.AuthService(client),
|
|
57
|
+
bases: new services_1.BasesService(client),
|
|
58
|
+
calendars: new services_1.CalendarsService(client),
|
|
59
|
+
columns: new services_1.ColumnsService(client),
|
|
60
|
+
filters: new services_1.FiltersService(client),
|
|
61
|
+
formColumns: new services_1.FormColumnsService(client),
|
|
62
|
+
forms: new services_1.FormsService(client),
|
|
63
|
+
galleries: new services_1.GalleriesService(client),
|
|
64
|
+
gridColumns: new services_1.GridColumnsService(client),
|
|
65
|
+
grids: new services_1.GridsService(client),
|
|
66
|
+
kanbans: new services_1.KanbansService(client),
|
|
67
|
+
maps: new services_1.MapsService(client),
|
|
68
|
+
sorts: new services_1.SortsService(client),
|
|
69
|
+
sources: new services_1.SourcesService(client),
|
|
70
|
+
tables: new services_1.TablesService(client),
|
|
71
|
+
views: new services_1.ViewsService(client),
|
|
72
|
+
workspaces: new services_1.WorkspacesService(client),
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
exports.createDynamicTableSdk = createDynamicTableSdk;
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@redonvn/redai-backend-api-sdk",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Axios SDK for RedAI Dynamic Table APIs",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"generate": "cross-env GEN_MODE=hybrid OUTPUT_REPORT=true tsx tools/generate-dynamic-table-sdk.ts",
|
|
17
|
+
"generate:sdk": "tsx tools/generate-sdk.ts",
|
|
18
|
+
"generate:ts": "cross-env GEN_MODE=ts OUTPUT_REPORT=true tsx tools/generate-dynamic-table-sdk.ts",
|
|
19
|
+
"generate:openapi": "cross-env GEN_MODE=openapi OUTPUT_REPORT=true tsx tools/generate-dynamic-table-sdk.ts",
|
|
20
|
+
"generate:report": "cross-env GEN_MODE=hybrid OUTPUT_REPORT=true tsx tools/generate-dynamic-table-sdk.ts",
|
|
21
|
+
"verify:generated": "tsx tools/verify-generated.ts --module=dynamic-table --pathPrefix=/v1/dynamic-table --backendRoot=F:\\Redon\\DuAn\\project01\\true --controllersDir=src/modules/dynamic-table/controllers",
|
|
22
|
+
"type-check": "tsc --noEmit",
|
|
23
|
+
"build": "tsc -p tsconfig.json"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"axios": "^1.9.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "^25.2.0",
|
|
30
|
+
"cross-env": "^7.0.3",
|
|
31
|
+
"tsx": "^4.20.5",
|
|
32
|
+
"typescript": "^5.8.3"
|
|
33
|
+
}
|
|
34
|
+
}
|