@revisium/endpoint 2.2.0-alpha.2 → 2.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 +36 -1
- package/dist/src/endpoint-microservice/core-api/generated/api.d.ts +208 -12
- package/dist/src/endpoint-microservice/core-api/generated/api.js +190 -5
- package/dist/src/endpoint-microservice/core-api/generated/api.js.map +1 -1
- package/dist/src/endpoint-microservice/core-api/internal-core-api.service.js +1 -3
- package/dist/src/endpoint-microservice/core-api/internal-core-api.service.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/constants.d.ts +1 -2
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/constants.js +3 -2
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/constants.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/common-schema.service.js +25 -0
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/common-schema.service.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/naming.service.d.ts +2 -0
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/naming.service.js +8 -0
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/naming.service.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/schema.d.ts +11 -11
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/schema.js +13 -31
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/schema.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/strategy/object-type-handler.js +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/services/strategy/object-type-handler.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/utils/getProjectName.d.ts +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/utils/getProjectName.js +2 -6
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/utils/getProjectName.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/utils/getSafetyName.d.ts +1 -1
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/utils/getSafetyName.js +2 -14
- package/dist/src/endpoint-microservice/graphql/graphql-schema-converter/utils/getSafetyName.js.map +1 -1
- package/dist/src/endpoint-microservice/graphql/services/graphql-options.service.js +2 -4
- package/dist/src/endpoint-microservice/graphql/services/graphql-options.service.js.map +1 -1
- package/dist/src/endpoint-microservice/health/indicators/core-api.health.d.ts +4 -3
- package/dist/src/endpoint-microservice/health/indicators/core-api.health.js +8 -8
- package/dist/src/endpoint-microservice/health/indicators/core-api.health.js.map +1 -1
- package/dist/src/endpoint-microservice/restapi/__tests__/test-utils.d.ts +178 -0
- package/dist/src/endpoint-microservice/restapi/__tests__/test-utils.js +409 -0
- package/dist/src/endpoint-microservice/restapi/__tests__/test-utils.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/controllers/base-restapi.controller.d.ts +9 -0
- package/dist/src/endpoint-microservice/restapi/controllers/base-restapi.controller.js +24 -0
- package/dist/src/endpoint-microservice/restapi/controllers/base-restapi.controller.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/controllers/index.d.ts +4 -0
- package/dist/src/endpoint-microservice/restapi/controllers/index.js +12 -0
- package/dist/src/endpoint-microservice/restapi/controllers/index.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/controllers/revision.controller.d.ts +9 -0
- package/dist/src/endpoint-microservice/restapi/controllers/revision.controller.js +78 -0
- package/dist/src/endpoint-microservice/restapi/controllers/revision.controller.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/controllers/row.controller.d.ts +21 -0
- package/dist/src/endpoint-microservice/restapi/controllers/row.controller.js +181 -0
- package/dist/src/endpoint-microservice/restapi/controllers/row.controller.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/controllers/table.controller.d.ts +26 -0
- package/dist/src/endpoint-microservice/restapi/controllers/table.controller.js +150 -0
- package/dist/src/endpoint-microservice/restapi/controllers/table.controller.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/endpoint-middleware.interface.d.ts +23 -5
- package/dist/src/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.d.ts +1 -0
- package/dist/src/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js +36 -37
- package/dist/src/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js.map +1 -1
- package/dist/src/endpoint-microservice/restapi/queries/handlers/open-api-schema.utils.d.ts +20 -0
- package/dist/src/endpoint-microservice/restapi/queries/handlers/open-api-schema.utils.js +635 -0
- package/dist/src/endpoint-microservice/restapi/queries/handlers/open-api-schema.utils.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/queries/impl/get-open-api-schema.query.d.ts +2 -0
- package/dist/src/endpoint-microservice/restapi/queries/impl/get-open-api-schema.query.js.map +1 -1
- package/dist/src/endpoint-microservice/restapi/restapi-endpoint.service.d.ts +1 -1
- package/dist/src/endpoint-microservice/restapi/restapi-endpoint.service.js +92 -31
- package/dist/src/endpoint-microservice/restapi/restapi-endpoint.service.js.map +1 -1
- package/dist/src/endpoint-microservice/restapi/restapi.module.js +9 -2
- package/dist/src/endpoint-microservice/restapi/restapi.module.js.map +1 -1
- package/dist/src/endpoint-microservice/restapi/services/restapi-options.service.d.ts +12 -0
- package/dist/src/endpoint-microservice/restapi/services/restapi-options.service.js +50 -0
- package/dist/src/endpoint-microservice/restapi/services/restapi-options.service.js.map +1 -0
- package/dist/src/endpoint-microservice/restapi/swagger-endpoint.controller.js +1 -0
- package/dist/src/endpoint-microservice/restapi/swagger-endpoint.controller.js.map +1 -1
- package/dist/src/endpoint-microservice/shared/utils/naming.d.ts +6 -0
- package/dist/src/endpoint-microservice/shared/utils/naming.js +29 -0
- package/dist/src/endpoint-microservice/shared/utils/naming.js.map +1 -0
- package/dist/src/endpoint-microservice/shared/utils/parseHeaders.d.ts +1 -1
- package/dist/src/endpoint-microservice/shared/utils/stringUtils.js +2 -1
- package/dist/src/endpoint-microservice/shared/utils/stringUtils.js.map +1 -1
- package/dist/src/endpoint-microservice/synchronization/endpoint-sync-manager.service.d.ts +1 -1
- package/dist/src/endpoint-microservice/synchronization/endpoint-sync-manager.service.js.map +1 -1
- package/dist/src/endpoint-microservice/synchronization/strategies/db-polling.strategy.js +5 -1
- package/dist/src/endpoint-microservice/synchronization/strategies/db-polling.strategy.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -5
- package/dist/src/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.d.ts +0 -4
- package/dist/src/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.js +0 -27
- package/dist/src/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.js.map +0 -1
- package/dist/src/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.d.ts +0 -7
- package/dist/src/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.js +0 -141
- package/dist/src/endpoint-microservice/restapi/queries/handlers/open-api-shema.utils.js.map +0 -1
- package/dist/src/endpoint-microservice/restapi/restapi-endpoint.controller.d.ts +0 -12
- package/dist/src/endpoint-microservice/restapi/restapi-endpoint.controller.js +0 -171
- package/dist/src/endpoint-microservice/restapi/restapi-endpoint.controller.js.map +0 -1
package/README.md
CHANGED
|
@@ -87,4 +87,39 @@ The service validates all environment variables at startup and will fail to star
|
|
|
87
87
|
- GraphQL identifiers don't match naming conventions
|
|
88
88
|
- Postfix configurations violate mutual exclusivity rules
|
|
89
89
|
|
|
90
|
-
For detailed validation rules and error messages, see the `GraphQLOptionsService` implementation.
|
|
90
|
+
For detailed validation rules and error messages, see the `GraphQLOptionsService` implementation.
|
|
91
|
+
|
|
92
|
+
### REST API Schema Configuration
|
|
93
|
+
|
|
94
|
+
| Variable | Default | Validation | Description |
|
|
95
|
+
|----------|---------|------------|-------------|
|
|
96
|
+
| `RESTAPI_PREFIX_FOR_TABLES` | Project name | GraphQL identifier or `""` | Prefix for table-related OpenAPI schemas |
|
|
97
|
+
| `RESTAPI_PREFIX_FOR_COMMON` | Project name | GraphQL identifier or `""` | Prefix for common OpenAPI schemas (filters, orderBy) |
|
|
98
|
+
|
|
99
|
+
#### REST API Configuration Rules
|
|
100
|
+
|
|
101
|
+
1. **Identifiers**: Must match `/^[_A-Za-z][_0-9A-Za-z]*$/` or be empty string
|
|
102
|
+
2. **Default Behavior**: When not set, uses capitalized project name as prefix
|
|
103
|
+
3. **Empty Prefix**: Setting `""` removes prefix from schema names
|
|
104
|
+
|
|
105
|
+
#### REST API Configuration Examples
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Default configuration (project "blog")
|
|
109
|
+
# URLs: /tables/users/rows, /tables/users/row/{rowId}
|
|
110
|
+
# Schemas: BlogUser, BlogStringFilter
|
|
111
|
+
|
|
112
|
+
# Custom prefix
|
|
113
|
+
RESTAPI_PREFIX_FOR_TABLES=Api
|
|
114
|
+
RESTAPI_PREFIX_FOR_COMMON=Common
|
|
115
|
+
# URLs: /tables/users/rows, /tables/users/row/{rowId}
|
|
116
|
+
# Schemas: ApiUser, CommonStringFilter
|
|
117
|
+
|
|
118
|
+
# No prefix
|
|
119
|
+
RESTAPI_PREFIX_FOR_TABLES=""
|
|
120
|
+
RESTAPI_PREFIX_FOR_COMMON=""
|
|
121
|
+
# URLs: /tables/users/rows, /tables/users/row/{rowId}
|
|
122
|
+
# Schemas: User, StringFilter
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
For detailed validation rules, see the `RestapiOptionsService` implementation.
|
|
@@ -7,7 +7,7 @@ export interface LoginResponse {
|
|
|
7
7
|
}
|
|
8
8
|
export interface CreateUserDto {
|
|
9
9
|
username: string;
|
|
10
|
-
roleId:
|
|
10
|
+
roleId: CreateUserDtoRoleIdEnum;
|
|
11
11
|
password: string;
|
|
12
12
|
email?: string;
|
|
13
13
|
}
|
|
@@ -65,7 +65,7 @@ export interface UsersOrganizationConnection {
|
|
|
65
65
|
}
|
|
66
66
|
export interface AddUserToOrganizationDto {
|
|
67
67
|
userId: string;
|
|
68
|
-
roleId:
|
|
68
|
+
roleId: AddUserToOrganizationDtoRoleIdEnum;
|
|
69
69
|
}
|
|
70
70
|
export interface RemoveUserFromOrganizationDto {
|
|
71
71
|
userId: string;
|
|
@@ -108,7 +108,7 @@ export interface UsersProjectConnection {
|
|
|
108
108
|
}
|
|
109
109
|
export interface AddUserToProjectDto {
|
|
110
110
|
userId: string;
|
|
111
|
-
roleId:
|
|
111
|
+
roleId: AddUserToProjectDtoRoleIdEnum;
|
|
112
112
|
}
|
|
113
113
|
export interface TouchedModelDto {
|
|
114
114
|
touched: boolean;
|
|
@@ -138,6 +138,31 @@ export interface RevisionsConnection {
|
|
|
138
138
|
export interface CreateRevisionDto {
|
|
139
139
|
comment?: string;
|
|
140
140
|
}
|
|
141
|
+
export interface RemoveMigrationDto {
|
|
142
|
+
changeType: RemoveMigrationDtoChangeTypeEnum;
|
|
143
|
+
id: string;
|
|
144
|
+
tableId: string;
|
|
145
|
+
}
|
|
146
|
+
export interface RenameMigrationDto {
|
|
147
|
+
changeType: RenameMigrationDtoChangeTypeEnum;
|
|
148
|
+
id: string;
|
|
149
|
+
tableId: string;
|
|
150
|
+
nextTableId: string;
|
|
151
|
+
}
|
|
152
|
+
export interface UpdateMigrationDto {
|
|
153
|
+
changeType: UpdateMigrationDtoChangeTypeEnum;
|
|
154
|
+
tableId: string;
|
|
155
|
+
hash: string;
|
|
156
|
+
id: string;
|
|
157
|
+
patches: object[];
|
|
158
|
+
}
|
|
159
|
+
export interface InitMigrationDto {
|
|
160
|
+
changeType: InitMigrationDtoChangeTypeEnum;
|
|
161
|
+
tableId: string;
|
|
162
|
+
hash: string;
|
|
163
|
+
id: string;
|
|
164
|
+
schema: object;
|
|
165
|
+
}
|
|
141
166
|
export interface ChildBranchResponse {
|
|
142
167
|
branch: Id;
|
|
143
168
|
revision: Id;
|
|
@@ -162,13 +187,13 @@ export interface TablesConnection {
|
|
|
162
187
|
export interface EndpointModel {
|
|
163
188
|
id: string;
|
|
164
189
|
createdAt: string;
|
|
165
|
-
type:
|
|
190
|
+
type: EndpointModelTypeEnum;
|
|
166
191
|
}
|
|
167
192
|
export interface CreateBranchByRevisionDto {
|
|
168
193
|
branchName: string;
|
|
169
194
|
}
|
|
170
195
|
export interface CreateEndpointDto {
|
|
171
|
-
type:
|
|
196
|
+
type: CreateEndpointDtoTypeEnum;
|
|
172
197
|
}
|
|
173
198
|
export interface CreateTableDto {
|
|
174
199
|
tableId: string;
|
|
@@ -178,9 +203,17 @@ export interface CreateTableResponse {
|
|
|
178
203
|
branch: BranchModel;
|
|
179
204
|
table: TableModel;
|
|
180
205
|
}
|
|
206
|
+
export interface ApplyMigrationsResponseDto {
|
|
207
|
+
id: string;
|
|
208
|
+
status: ApplyMigrationsResponseDtoStatusEnum;
|
|
209
|
+
error?: string;
|
|
210
|
+
}
|
|
181
211
|
export interface OrderByDto {
|
|
182
|
-
field:
|
|
183
|
-
direction:
|
|
212
|
+
field: OrderByDtoFieldEnum;
|
|
213
|
+
direction: OrderByDtoDirectionEnum;
|
|
214
|
+
path?: string;
|
|
215
|
+
type?: OrderByDtoTypeEnum;
|
|
216
|
+
aggregation?: OrderByDtoAggregationEnum;
|
|
184
217
|
}
|
|
185
218
|
export interface StringFilterDto {
|
|
186
219
|
equals?: string;
|
|
@@ -193,7 +226,7 @@ export interface StringFilterDto {
|
|
|
193
226
|
contains?: string;
|
|
194
227
|
startsWith?: string;
|
|
195
228
|
endsWith?: string;
|
|
196
|
-
mode?:
|
|
229
|
+
mode?: StringFilterDtoModeEnum;
|
|
197
230
|
not?: string;
|
|
198
231
|
}
|
|
199
232
|
export interface BoolFilterDto {
|
|
@@ -211,8 +244,8 @@ export interface DateTimeFilterDto {
|
|
|
211
244
|
}
|
|
212
245
|
export interface JsonFilterDto {
|
|
213
246
|
equals?: object;
|
|
214
|
-
path?: string[];
|
|
215
|
-
mode?:
|
|
247
|
+
path?: string | string[];
|
|
248
|
+
mode?: JsonFilterDtoModeEnum;
|
|
216
249
|
string_contains?: string;
|
|
217
250
|
string_starts_with?: string;
|
|
218
251
|
string_ends_with?: string;
|
|
@@ -223,6 +256,10 @@ export interface JsonFilterDto {
|
|
|
223
256
|
lte?: number;
|
|
224
257
|
gt?: number;
|
|
225
258
|
gte?: number;
|
|
259
|
+
search?: string;
|
|
260
|
+
searchLanguage?: JsonFilterDtoSearchLanguageEnum;
|
|
261
|
+
searchType?: JsonFilterDtoSearchTypeEnum;
|
|
262
|
+
searchIn?: JsonFilterDtoSearchInEnum;
|
|
226
263
|
}
|
|
227
264
|
export interface RowWhereInputDto {
|
|
228
265
|
AND?: RowWhereInputDto[];
|
|
@@ -268,12 +305,21 @@ export interface RowsConnection {
|
|
|
268
305
|
export interface CreateRowDto {
|
|
269
306
|
rowId: string;
|
|
270
307
|
data: Record<string, any>;
|
|
308
|
+
isRestore?: boolean;
|
|
271
309
|
}
|
|
272
310
|
export interface CreateRowResponse {
|
|
273
311
|
table: TableModel;
|
|
274
312
|
previousVersionTableId: string;
|
|
275
313
|
row: RowModel;
|
|
276
314
|
}
|
|
315
|
+
export interface RemoveRowsDto {
|
|
316
|
+
rowIds: string[];
|
|
317
|
+
}
|
|
318
|
+
export interface RemoveRowsResponse {
|
|
319
|
+
branch: BranchModel;
|
|
320
|
+
table?: TableModel;
|
|
321
|
+
previousVersionTableId?: string;
|
|
322
|
+
}
|
|
277
323
|
export interface UpdateTableDto {
|
|
278
324
|
patches: object[];
|
|
279
325
|
}
|
|
@@ -293,6 +339,7 @@ export interface RemoveRowResponse {
|
|
|
293
339
|
}
|
|
294
340
|
export interface UpdateRowDto {
|
|
295
341
|
data: Record<string, any>;
|
|
342
|
+
isRestore?: boolean;
|
|
296
343
|
}
|
|
297
344
|
export interface UpdateRowResponse {
|
|
298
345
|
table?: TableModel;
|
|
@@ -300,6 +347,20 @@ export interface UpdateRowResponse {
|
|
|
300
347
|
row?: RowModel;
|
|
301
348
|
previousVersionRowId?: string;
|
|
302
349
|
}
|
|
350
|
+
export interface PatchRow {
|
|
351
|
+
op: PatchRowOpEnum;
|
|
352
|
+
path: string;
|
|
353
|
+
value: string | number | boolean | object | any[] | null;
|
|
354
|
+
}
|
|
355
|
+
export interface PatchRowDto {
|
|
356
|
+
patches: PatchRow[];
|
|
357
|
+
}
|
|
358
|
+
export interface PatchRowResponse {
|
|
359
|
+
table?: TableModel;
|
|
360
|
+
previousVersionTableId?: string;
|
|
361
|
+
row?: RowModel;
|
|
362
|
+
previousVersionRowId?: string;
|
|
363
|
+
}
|
|
303
364
|
export interface RenameRowDto {
|
|
304
365
|
nextRowId: string;
|
|
305
366
|
}
|
|
@@ -334,6 +395,127 @@ export interface ConfigurationResponse {
|
|
|
334
395
|
google: GoogleOauth;
|
|
335
396
|
github: GithubOauth;
|
|
336
397
|
}
|
|
398
|
+
export declare enum CreateUserDtoRoleIdEnum {
|
|
399
|
+
SystemAdmin = "systemAdmin",
|
|
400
|
+
SystemFullApiRead = "systemFullApiRead",
|
|
401
|
+
SystemUser = "systemUser"
|
|
402
|
+
}
|
|
403
|
+
export declare enum AddUserToOrganizationDtoRoleIdEnum {
|
|
404
|
+
OrganizationOwner = "organizationOwner",
|
|
405
|
+
OrganizationAdmin = "organizationAdmin",
|
|
406
|
+
Developer = "developer",
|
|
407
|
+
Editor = "editor",
|
|
408
|
+
Reader = "reader"
|
|
409
|
+
}
|
|
410
|
+
export declare enum AddUserToProjectDtoRoleIdEnum {
|
|
411
|
+
Developer = "developer",
|
|
412
|
+
Editor = "editor",
|
|
413
|
+
Reader = "reader"
|
|
414
|
+
}
|
|
415
|
+
export declare enum RemoveMigrationDtoChangeTypeEnum {
|
|
416
|
+
Remove = "remove"
|
|
417
|
+
}
|
|
418
|
+
export declare enum RenameMigrationDtoChangeTypeEnum {
|
|
419
|
+
Rename = "rename"
|
|
420
|
+
}
|
|
421
|
+
export declare enum UpdateMigrationDtoChangeTypeEnum {
|
|
422
|
+
Update = "update"
|
|
423
|
+
}
|
|
424
|
+
export declare enum InitMigrationDtoChangeTypeEnum {
|
|
425
|
+
Init = "init"
|
|
426
|
+
}
|
|
427
|
+
export declare enum EndpointModelTypeEnum {
|
|
428
|
+
GRAPHQL = "GRAPHQL",
|
|
429
|
+
REST_API = "REST_API"
|
|
430
|
+
}
|
|
431
|
+
export declare enum CreateEndpointDtoTypeEnum {
|
|
432
|
+
GRAPHQL = "GRAPHQL",
|
|
433
|
+
REST_API = "REST_API"
|
|
434
|
+
}
|
|
435
|
+
export declare enum ApplyMigrationsResponseDtoStatusEnum {
|
|
436
|
+
Applied = "applied",
|
|
437
|
+
Failed = "failed",
|
|
438
|
+
Skipped = "skipped"
|
|
439
|
+
}
|
|
440
|
+
export declare enum OrderByDtoFieldEnum {
|
|
441
|
+
CreatedAt = "createdAt",
|
|
442
|
+
UpdatedAt = "updatedAt",
|
|
443
|
+
PublishedAt = "publishedAt",
|
|
444
|
+
Id = "id",
|
|
445
|
+
Data = "data"
|
|
446
|
+
}
|
|
447
|
+
export declare enum OrderByDtoDirectionEnum {
|
|
448
|
+
Asc = "asc",
|
|
449
|
+
Desc = "desc"
|
|
450
|
+
}
|
|
451
|
+
export declare enum OrderByDtoTypeEnum {
|
|
452
|
+
Text = "text",
|
|
453
|
+
Int = "int",
|
|
454
|
+
Float = "float",
|
|
455
|
+
Boolean = "boolean",
|
|
456
|
+
Timestamp = "timestamp"
|
|
457
|
+
}
|
|
458
|
+
export declare enum OrderByDtoAggregationEnum {
|
|
459
|
+
Min = "min",
|
|
460
|
+
Max = "max",
|
|
461
|
+
Avg = "avg",
|
|
462
|
+
First = "first",
|
|
463
|
+
Last = "last"
|
|
464
|
+
}
|
|
465
|
+
export declare enum StringFilterDtoModeEnum {
|
|
466
|
+
Default = "default",
|
|
467
|
+
Insensitive = "insensitive"
|
|
468
|
+
}
|
|
469
|
+
export declare enum JsonFilterDtoModeEnum {
|
|
470
|
+
Default = "default",
|
|
471
|
+
Insensitive = "insensitive"
|
|
472
|
+
}
|
|
473
|
+
export declare enum JsonFilterDtoSearchLanguageEnum {
|
|
474
|
+
Simple = "simple",
|
|
475
|
+
Arabic = "arabic",
|
|
476
|
+
Armenian = "armenian",
|
|
477
|
+
Basque = "basque",
|
|
478
|
+
Catalan = "catalan",
|
|
479
|
+
Danish = "danish",
|
|
480
|
+
Dutch = "dutch",
|
|
481
|
+
English = "english",
|
|
482
|
+
Finnish = "finnish",
|
|
483
|
+
French = "french",
|
|
484
|
+
German = "german",
|
|
485
|
+
Greek = "greek",
|
|
486
|
+
Hindi = "hindi",
|
|
487
|
+
Hungarian = "hungarian",
|
|
488
|
+
Indonesian = "indonesian",
|
|
489
|
+
Irish = "irish",
|
|
490
|
+
Italian = "italian",
|
|
491
|
+
Lithuanian = "lithuanian",
|
|
492
|
+
Nepali = "nepali",
|
|
493
|
+
Norwegian = "norwegian",
|
|
494
|
+
Portuguese = "portuguese",
|
|
495
|
+
Romanian = "romanian",
|
|
496
|
+
Russian = "russian",
|
|
497
|
+
Serbian = "serbian",
|
|
498
|
+
Spanish = "spanish",
|
|
499
|
+
Swedish = "swedish",
|
|
500
|
+
Tamil = "tamil",
|
|
501
|
+
Turkish = "turkish",
|
|
502
|
+
Yiddish = "yiddish"
|
|
503
|
+
}
|
|
504
|
+
export declare enum JsonFilterDtoSearchTypeEnum {
|
|
505
|
+
Plain = "plain",
|
|
506
|
+
Phrase = "phrase"
|
|
507
|
+
}
|
|
508
|
+
export declare enum JsonFilterDtoSearchInEnum {
|
|
509
|
+
All = "all",
|
|
510
|
+
Values = "values",
|
|
511
|
+
Keys = "keys",
|
|
512
|
+
Strings = "strings",
|
|
513
|
+
Numbers = "numbers",
|
|
514
|
+
Booleans = "booleans"
|
|
515
|
+
}
|
|
516
|
+
export declare enum PatchRowOpEnum {
|
|
517
|
+
Replace = "replace"
|
|
518
|
+
}
|
|
337
519
|
export interface ProjectsParams {
|
|
338
520
|
first: number;
|
|
339
521
|
after?: string;
|
|
@@ -364,10 +546,20 @@ export interface RevisionsParams {
|
|
|
364
546
|
first: number;
|
|
365
547
|
after?: string;
|
|
366
548
|
before?: string;
|
|
549
|
+
inclusive?: boolean;
|
|
550
|
+
sort?: SortEnum;
|
|
367
551
|
organizationId: string;
|
|
368
552
|
projectName: string;
|
|
369
553
|
branchName: string;
|
|
370
554
|
}
|
|
555
|
+
export declare enum SortEnum {
|
|
556
|
+
Asc = "asc",
|
|
557
|
+
Desc = "desc"
|
|
558
|
+
}
|
|
559
|
+
export declare enum RevisionsParams1SortEnum {
|
|
560
|
+
Asc = "asc",
|
|
561
|
+
Desc = "desc"
|
|
562
|
+
}
|
|
371
563
|
export interface TablesParams {
|
|
372
564
|
first: number;
|
|
373
565
|
after?: string;
|
|
@@ -488,11 +680,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
488
680
|
createTable: (revisionId: string, data: CreateTableDto, params?: RequestParams) => Promise<HttpResponse<CreateTableResponse, any>>;
|
|
489
681
|
endpoints: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<EndpointModel[], any>>;
|
|
490
682
|
createEndpoint: (revisionId: string, data: CreateEndpointDto, params?: RequestParams) => Promise<HttpResponse<EndpointModel, any>>;
|
|
683
|
+
migrations: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<(InitMigrationDto | UpdateMigrationDto | RenameMigrationDto | RemoveMigrationDto)[], any>>;
|
|
684
|
+
applyMigrations: (revisionId: string, data: (InitMigrationDto | UpdateMigrationDto | RenameMigrationDto | RemoveMigrationDto)[], params?: RequestParams) => Promise<HttpResponse<ApplyMigrationsResponseDto[], any>>;
|
|
491
685
|
table: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<TableModel, any>>;
|
|
492
686
|
deleteTable: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
|
|
493
687
|
updateTable: (revisionId: string, tableId: string, data: UpdateTableDto, params?: RequestParams) => Promise<HttpResponse<UpdateTableResponse, any>>;
|
|
494
688
|
tableCountRows: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
|
|
495
689
|
rows: (revisionId: string, tableId: string, data: GetTableRowsDto, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
|
|
690
|
+
deleteRows: (revisionId: string, tableId: string, data: RemoveRowsDto, params?: RequestParams) => Promise<HttpResponse<RemoveRowsResponse, any>>;
|
|
496
691
|
createRow: (revisionId: string, tableId: string, data: CreateRowDto, params?: RequestParams) => Promise<HttpResponse<CreateRowResponse, any>>;
|
|
497
692
|
tableSchema: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<object, any>>;
|
|
498
693
|
tableCountForeignKeysBy: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
|
|
@@ -503,6 +698,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
503
698
|
row: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<RowModel, ErrorModel>>;
|
|
504
699
|
deleteRow: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<RemoveRowResponse, any>>;
|
|
505
700
|
updateRow: (revisionId: string, tableId: string, rowId: string, data: UpdateRowDto, params?: RequestParams) => Promise<HttpResponse<UpdateRowResponse, any>>;
|
|
701
|
+
patchRow: (revisionId: string, tableId: string, rowId: string, data: PatchRowDto, params?: RequestParams) => Promise<HttpResponse<PatchRowResponse, any>>;
|
|
506
702
|
rowCountForeignKeysBy: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
|
|
507
703
|
rowForeignKeysBy: ({ revisionId, tableId, rowId, ...query }: RowForeignKeysByParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
|
|
508
704
|
rowCountForeignKeysTo: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
|
|
@@ -516,7 +712,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
516
712
|
getConfiguration: (params?: RequestParams) => Promise<HttpResponse<ConfigurationResponse, any>>;
|
|
517
713
|
};
|
|
518
714
|
health: {
|
|
519
|
-
|
|
715
|
+
readiness: (params?: RequestParams) => Promise<HttpResponse<{
|
|
520
716
|
status?: string;
|
|
521
717
|
info?: Record<string, {
|
|
522
718
|
status: string;
|
|
@@ -545,7 +741,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
545
741
|
[key: string]: any;
|
|
546
742
|
}>;
|
|
547
743
|
}>>;
|
|
548
|
-
|
|
744
|
+
liveness: (params?: RequestParams) => Promise<HttpResponse<{
|
|
549
745
|
status?: string;
|
|
550
746
|
info?: Record<string, {
|
|
551
747
|
status: string;
|
|
@@ -1,6 +1,157 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Api = exports.HttpClient = exports.ContentType = void 0;
|
|
3
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.RevisionsParams1SortEnum = exports.SortEnum = exports.PatchRowOpEnum = exports.JsonFilterDtoSearchInEnum = exports.JsonFilterDtoSearchTypeEnum = exports.JsonFilterDtoSearchLanguageEnum = exports.JsonFilterDtoModeEnum = exports.StringFilterDtoModeEnum = exports.OrderByDtoAggregationEnum = exports.OrderByDtoTypeEnum = exports.OrderByDtoDirectionEnum = exports.OrderByDtoFieldEnum = exports.ApplyMigrationsResponseDtoStatusEnum = exports.CreateEndpointDtoTypeEnum = exports.EndpointModelTypeEnum = exports.InitMigrationDtoChangeTypeEnum = exports.UpdateMigrationDtoChangeTypeEnum = exports.RenameMigrationDtoChangeTypeEnum = exports.RemoveMigrationDtoChangeTypeEnum = exports.AddUserToProjectDtoRoleIdEnum = exports.AddUserToOrganizationDtoRoleIdEnum = exports.CreateUserDtoRoleIdEnum = void 0;
|
|
4
|
+
var CreateUserDtoRoleIdEnum;
|
|
5
|
+
(function (CreateUserDtoRoleIdEnum) {
|
|
6
|
+
CreateUserDtoRoleIdEnum["SystemAdmin"] = "systemAdmin";
|
|
7
|
+
CreateUserDtoRoleIdEnum["SystemFullApiRead"] = "systemFullApiRead";
|
|
8
|
+
CreateUserDtoRoleIdEnum["SystemUser"] = "systemUser";
|
|
9
|
+
})(CreateUserDtoRoleIdEnum || (exports.CreateUserDtoRoleIdEnum = CreateUserDtoRoleIdEnum = {}));
|
|
10
|
+
var AddUserToOrganizationDtoRoleIdEnum;
|
|
11
|
+
(function (AddUserToOrganizationDtoRoleIdEnum) {
|
|
12
|
+
AddUserToOrganizationDtoRoleIdEnum["OrganizationOwner"] = "organizationOwner";
|
|
13
|
+
AddUserToOrganizationDtoRoleIdEnum["OrganizationAdmin"] = "organizationAdmin";
|
|
14
|
+
AddUserToOrganizationDtoRoleIdEnum["Developer"] = "developer";
|
|
15
|
+
AddUserToOrganizationDtoRoleIdEnum["Editor"] = "editor";
|
|
16
|
+
AddUserToOrganizationDtoRoleIdEnum["Reader"] = "reader";
|
|
17
|
+
})(AddUserToOrganizationDtoRoleIdEnum || (exports.AddUserToOrganizationDtoRoleIdEnum = AddUserToOrganizationDtoRoleIdEnum = {}));
|
|
18
|
+
var AddUserToProjectDtoRoleIdEnum;
|
|
19
|
+
(function (AddUserToProjectDtoRoleIdEnum) {
|
|
20
|
+
AddUserToProjectDtoRoleIdEnum["Developer"] = "developer";
|
|
21
|
+
AddUserToProjectDtoRoleIdEnum["Editor"] = "editor";
|
|
22
|
+
AddUserToProjectDtoRoleIdEnum["Reader"] = "reader";
|
|
23
|
+
})(AddUserToProjectDtoRoleIdEnum || (exports.AddUserToProjectDtoRoleIdEnum = AddUserToProjectDtoRoleIdEnum = {}));
|
|
24
|
+
var RemoveMigrationDtoChangeTypeEnum;
|
|
25
|
+
(function (RemoveMigrationDtoChangeTypeEnum) {
|
|
26
|
+
RemoveMigrationDtoChangeTypeEnum["Remove"] = "remove";
|
|
27
|
+
})(RemoveMigrationDtoChangeTypeEnum || (exports.RemoveMigrationDtoChangeTypeEnum = RemoveMigrationDtoChangeTypeEnum = {}));
|
|
28
|
+
var RenameMigrationDtoChangeTypeEnum;
|
|
29
|
+
(function (RenameMigrationDtoChangeTypeEnum) {
|
|
30
|
+
RenameMigrationDtoChangeTypeEnum["Rename"] = "rename";
|
|
31
|
+
})(RenameMigrationDtoChangeTypeEnum || (exports.RenameMigrationDtoChangeTypeEnum = RenameMigrationDtoChangeTypeEnum = {}));
|
|
32
|
+
var UpdateMigrationDtoChangeTypeEnum;
|
|
33
|
+
(function (UpdateMigrationDtoChangeTypeEnum) {
|
|
34
|
+
UpdateMigrationDtoChangeTypeEnum["Update"] = "update";
|
|
35
|
+
})(UpdateMigrationDtoChangeTypeEnum || (exports.UpdateMigrationDtoChangeTypeEnum = UpdateMigrationDtoChangeTypeEnum = {}));
|
|
36
|
+
var InitMigrationDtoChangeTypeEnum;
|
|
37
|
+
(function (InitMigrationDtoChangeTypeEnum) {
|
|
38
|
+
InitMigrationDtoChangeTypeEnum["Init"] = "init";
|
|
39
|
+
})(InitMigrationDtoChangeTypeEnum || (exports.InitMigrationDtoChangeTypeEnum = InitMigrationDtoChangeTypeEnum = {}));
|
|
40
|
+
var EndpointModelTypeEnum;
|
|
41
|
+
(function (EndpointModelTypeEnum) {
|
|
42
|
+
EndpointModelTypeEnum["GRAPHQL"] = "GRAPHQL";
|
|
43
|
+
EndpointModelTypeEnum["REST_API"] = "REST_API";
|
|
44
|
+
})(EndpointModelTypeEnum || (exports.EndpointModelTypeEnum = EndpointModelTypeEnum = {}));
|
|
45
|
+
var CreateEndpointDtoTypeEnum;
|
|
46
|
+
(function (CreateEndpointDtoTypeEnum) {
|
|
47
|
+
CreateEndpointDtoTypeEnum["GRAPHQL"] = "GRAPHQL";
|
|
48
|
+
CreateEndpointDtoTypeEnum["REST_API"] = "REST_API";
|
|
49
|
+
})(CreateEndpointDtoTypeEnum || (exports.CreateEndpointDtoTypeEnum = CreateEndpointDtoTypeEnum = {}));
|
|
50
|
+
var ApplyMigrationsResponseDtoStatusEnum;
|
|
51
|
+
(function (ApplyMigrationsResponseDtoStatusEnum) {
|
|
52
|
+
ApplyMigrationsResponseDtoStatusEnum["Applied"] = "applied";
|
|
53
|
+
ApplyMigrationsResponseDtoStatusEnum["Failed"] = "failed";
|
|
54
|
+
ApplyMigrationsResponseDtoStatusEnum["Skipped"] = "skipped";
|
|
55
|
+
})(ApplyMigrationsResponseDtoStatusEnum || (exports.ApplyMigrationsResponseDtoStatusEnum = ApplyMigrationsResponseDtoStatusEnum = {}));
|
|
56
|
+
var OrderByDtoFieldEnum;
|
|
57
|
+
(function (OrderByDtoFieldEnum) {
|
|
58
|
+
OrderByDtoFieldEnum["CreatedAt"] = "createdAt";
|
|
59
|
+
OrderByDtoFieldEnum["UpdatedAt"] = "updatedAt";
|
|
60
|
+
OrderByDtoFieldEnum["PublishedAt"] = "publishedAt";
|
|
61
|
+
OrderByDtoFieldEnum["Id"] = "id";
|
|
62
|
+
OrderByDtoFieldEnum["Data"] = "data";
|
|
63
|
+
})(OrderByDtoFieldEnum || (exports.OrderByDtoFieldEnum = OrderByDtoFieldEnum = {}));
|
|
64
|
+
var OrderByDtoDirectionEnum;
|
|
65
|
+
(function (OrderByDtoDirectionEnum) {
|
|
66
|
+
OrderByDtoDirectionEnum["Asc"] = "asc";
|
|
67
|
+
OrderByDtoDirectionEnum["Desc"] = "desc";
|
|
68
|
+
})(OrderByDtoDirectionEnum || (exports.OrderByDtoDirectionEnum = OrderByDtoDirectionEnum = {}));
|
|
69
|
+
var OrderByDtoTypeEnum;
|
|
70
|
+
(function (OrderByDtoTypeEnum) {
|
|
71
|
+
OrderByDtoTypeEnum["Text"] = "text";
|
|
72
|
+
OrderByDtoTypeEnum["Int"] = "int";
|
|
73
|
+
OrderByDtoTypeEnum["Float"] = "float";
|
|
74
|
+
OrderByDtoTypeEnum["Boolean"] = "boolean";
|
|
75
|
+
OrderByDtoTypeEnum["Timestamp"] = "timestamp";
|
|
76
|
+
})(OrderByDtoTypeEnum || (exports.OrderByDtoTypeEnum = OrderByDtoTypeEnum = {}));
|
|
77
|
+
var OrderByDtoAggregationEnum;
|
|
78
|
+
(function (OrderByDtoAggregationEnum) {
|
|
79
|
+
OrderByDtoAggregationEnum["Min"] = "min";
|
|
80
|
+
OrderByDtoAggregationEnum["Max"] = "max";
|
|
81
|
+
OrderByDtoAggregationEnum["Avg"] = "avg";
|
|
82
|
+
OrderByDtoAggregationEnum["First"] = "first";
|
|
83
|
+
OrderByDtoAggregationEnum["Last"] = "last";
|
|
84
|
+
})(OrderByDtoAggregationEnum || (exports.OrderByDtoAggregationEnum = OrderByDtoAggregationEnum = {}));
|
|
85
|
+
var StringFilterDtoModeEnum;
|
|
86
|
+
(function (StringFilterDtoModeEnum) {
|
|
87
|
+
StringFilterDtoModeEnum["Default"] = "default";
|
|
88
|
+
StringFilterDtoModeEnum["Insensitive"] = "insensitive";
|
|
89
|
+
})(StringFilterDtoModeEnum || (exports.StringFilterDtoModeEnum = StringFilterDtoModeEnum = {}));
|
|
90
|
+
var JsonFilterDtoModeEnum;
|
|
91
|
+
(function (JsonFilterDtoModeEnum) {
|
|
92
|
+
JsonFilterDtoModeEnum["Default"] = "default";
|
|
93
|
+
JsonFilterDtoModeEnum["Insensitive"] = "insensitive";
|
|
94
|
+
})(JsonFilterDtoModeEnum || (exports.JsonFilterDtoModeEnum = JsonFilterDtoModeEnum = {}));
|
|
95
|
+
var JsonFilterDtoSearchLanguageEnum;
|
|
96
|
+
(function (JsonFilterDtoSearchLanguageEnum) {
|
|
97
|
+
JsonFilterDtoSearchLanguageEnum["Simple"] = "simple";
|
|
98
|
+
JsonFilterDtoSearchLanguageEnum["Arabic"] = "arabic";
|
|
99
|
+
JsonFilterDtoSearchLanguageEnum["Armenian"] = "armenian";
|
|
100
|
+
JsonFilterDtoSearchLanguageEnum["Basque"] = "basque";
|
|
101
|
+
JsonFilterDtoSearchLanguageEnum["Catalan"] = "catalan";
|
|
102
|
+
JsonFilterDtoSearchLanguageEnum["Danish"] = "danish";
|
|
103
|
+
JsonFilterDtoSearchLanguageEnum["Dutch"] = "dutch";
|
|
104
|
+
JsonFilterDtoSearchLanguageEnum["English"] = "english";
|
|
105
|
+
JsonFilterDtoSearchLanguageEnum["Finnish"] = "finnish";
|
|
106
|
+
JsonFilterDtoSearchLanguageEnum["French"] = "french";
|
|
107
|
+
JsonFilterDtoSearchLanguageEnum["German"] = "german";
|
|
108
|
+
JsonFilterDtoSearchLanguageEnum["Greek"] = "greek";
|
|
109
|
+
JsonFilterDtoSearchLanguageEnum["Hindi"] = "hindi";
|
|
110
|
+
JsonFilterDtoSearchLanguageEnum["Hungarian"] = "hungarian";
|
|
111
|
+
JsonFilterDtoSearchLanguageEnum["Indonesian"] = "indonesian";
|
|
112
|
+
JsonFilterDtoSearchLanguageEnum["Irish"] = "irish";
|
|
113
|
+
JsonFilterDtoSearchLanguageEnum["Italian"] = "italian";
|
|
114
|
+
JsonFilterDtoSearchLanguageEnum["Lithuanian"] = "lithuanian";
|
|
115
|
+
JsonFilterDtoSearchLanguageEnum["Nepali"] = "nepali";
|
|
116
|
+
JsonFilterDtoSearchLanguageEnum["Norwegian"] = "norwegian";
|
|
117
|
+
JsonFilterDtoSearchLanguageEnum["Portuguese"] = "portuguese";
|
|
118
|
+
JsonFilterDtoSearchLanguageEnum["Romanian"] = "romanian";
|
|
119
|
+
JsonFilterDtoSearchLanguageEnum["Russian"] = "russian";
|
|
120
|
+
JsonFilterDtoSearchLanguageEnum["Serbian"] = "serbian";
|
|
121
|
+
JsonFilterDtoSearchLanguageEnum["Spanish"] = "spanish";
|
|
122
|
+
JsonFilterDtoSearchLanguageEnum["Swedish"] = "swedish";
|
|
123
|
+
JsonFilterDtoSearchLanguageEnum["Tamil"] = "tamil";
|
|
124
|
+
JsonFilterDtoSearchLanguageEnum["Turkish"] = "turkish";
|
|
125
|
+
JsonFilterDtoSearchLanguageEnum["Yiddish"] = "yiddish";
|
|
126
|
+
})(JsonFilterDtoSearchLanguageEnum || (exports.JsonFilterDtoSearchLanguageEnum = JsonFilterDtoSearchLanguageEnum = {}));
|
|
127
|
+
var JsonFilterDtoSearchTypeEnum;
|
|
128
|
+
(function (JsonFilterDtoSearchTypeEnum) {
|
|
129
|
+
JsonFilterDtoSearchTypeEnum["Plain"] = "plain";
|
|
130
|
+
JsonFilterDtoSearchTypeEnum["Phrase"] = "phrase";
|
|
131
|
+
})(JsonFilterDtoSearchTypeEnum || (exports.JsonFilterDtoSearchTypeEnum = JsonFilterDtoSearchTypeEnum = {}));
|
|
132
|
+
var JsonFilterDtoSearchInEnum;
|
|
133
|
+
(function (JsonFilterDtoSearchInEnum) {
|
|
134
|
+
JsonFilterDtoSearchInEnum["All"] = "all";
|
|
135
|
+
JsonFilterDtoSearchInEnum["Values"] = "values";
|
|
136
|
+
JsonFilterDtoSearchInEnum["Keys"] = "keys";
|
|
137
|
+
JsonFilterDtoSearchInEnum["Strings"] = "strings";
|
|
138
|
+
JsonFilterDtoSearchInEnum["Numbers"] = "numbers";
|
|
139
|
+
JsonFilterDtoSearchInEnum["Booleans"] = "booleans";
|
|
140
|
+
})(JsonFilterDtoSearchInEnum || (exports.JsonFilterDtoSearchInEnum = JsonFilterDtoSearchInEnum = {}));
|
|
141
|
+
var PatchRowOpEnum;
|
|
142
|
+
(function (PatchRowOpEnum) {
|
|
143
|
+
PatchRowOpEnum["Replace"] = "replace";
|
|
144
|
+
})(PatchRowOpEnum || (exports.PatchRowOpEnum = PatchRowOpEnum = {}));
|
|
145
|
+
var SortEnum;
|
|
146
|
+
(function (SortEnum) {
|
|
147
|
+
SortEnum["Asc"] = "asc";
|
|
148
|
+
SortEnum["Desc"] = "desc";
|
|
149
|
+
})(SortEnum || (exports.SortEnum = SortEnum = {}));
|
|
150
|
+
var RevisionsParams1SortEnum;
|
|
151
|
+
(function (RevisionsParams1SortEnum) {
|
|
152
|
+
RevisionsParams1SortEnum["Asc"] = "asc";
|
|
153
|
+
RevisionsParams1SortEnum["Desc"] = "desc";
|
|
154
|
+
})(RevisionsParams1SortEnum || (exports.RevisionsParams1SortEnum = RevisionsParams1SortEnum = {}));
|
|
4
155
|
var ContentType;
|
|
5
156
|
(function (ContentType) {
|
|
6
157
|
ContentType["Json"] = "application/json";
|
|
@@ -429,6 +580,22 @@ class Api extends HttpClient {
|
|
|
429
580
|
format: "json",
|
|
430
581
|
...params,
|
|
431
582
|
}),
|
|
583
|
+
migrations: (revisionId, params = {}) => this.request({
|
|
584
|
+
path: `/api/revision/${revisionId}/migrations`,
|
|
585
|
+
method: "GET",
|
|
586
|
+
secure: true,
|
|
587
|
+
format: "json",
|
|
588
|
+
...params,
|
|
589
|
+
}),
|
|
590
|
+
applyMigrations: (revisionId, data, params = {}) => this.request({
|
|
591
|
+
path: `/api/revision/${revisionId}/apply-migrations`,
|
|
592
|
+
method: "POST",
|
|
593
|
+
body: data,
|
|
594
|
+
secure: true,
|
|
595
|
+
type: ContentType.Json,
|
|
596
|
+
format: "json",
|
|
597
|
+
...params,
|
|
598
|
+
}),
|
|
432
599
|
table: (revisionId, tableId, params = {}) => this.request({
|
|
433
600
|
path: `/api/revision/${revisionId}/tables/${tableId}`,
|
|
434
601
|
method: "GET",
|
|
@@ -468,6 +635,15 @@ class Api extends HttpClient {
|
|
|
468
635
|
format: "json",
|
|
469
636
|
...params,
|
|
470
637
|
}),
|
|
638
|
+
deleteRows: (revisionId, tableId, data, params = {}) => this.request({
|
|
639
|
+
path: `/api/revision/${revisionId}/tables/${tableId}/rows`,
|
|
640
|
+
method: "DELETE",
|
|
641
|
+
body: data,
|
|
642
|
+
secure: true,
|
|
643
|
+
type: ContentType.Json,
|
|
644
|
+
format: "json",
|
|
645
|
+
...params,
|
|
646
|
+
}),
|
|
471
647
|
createRow: (revisionId, tableId, data, params = {}) => this.request({
|
|
472
648
|
path: `/api/revision/${revisionId}/tables/${tableId}/create-row`,
|
|
473
649
|
method: "POST",
|
|
@@ -546,6 +722,15 @@ class Api extends HttpClient {
|
|
|
546
722
|
format: "json",
|
|
547
723
|
...params,
|
|
548
724
|
}),
|
|
725
|
+
patchRow: (revisionId, tableId, rowId, data, params = {}) => this.request({
|
|
726
|
+
path: `/api/revision/${revisionId}/tables/${tableId}/rows/${rowId}`,
|
|
727
|
+
method: "PATCH",
|
|
728
|
+
body: data,
|
|
729
|
+
secure: true,
|
|
730
|
+
type: ContentType.Json,
|
|
731
|
+
format: "json",
|
|
732
|
+
...params,
|
|
733
|
+
}),
|
|
549
734
|
rowCountForeignKeysBy: (revisionId, tableId, rowId, params = {}) => this.request({
|
|
550
735
|
path: `/api/revision/${revisionId}/tables/${tableId}/rows/${rowId}/count-foreign-keys-by`,
|
|
551
736
|
method: "GET",
|
|
@@ -616,14 +801,14 @@ class Api extends HttpClient {
|
|
|
616
801
|
}),
|
|
617
802
|
};
|
|
618
803
|
this.health = {
|
|
619
|
-
|
|
620
|
-
path: `/health/
|
|
804
|
+
readiness: (params = {}) => this.request({
|
|
805
|
+
path: `/health/readiness`,
|
|
621
806
|
method: "GET",
|
|
622
807
|
format: "json",
|
|
623
808
|
...params,
|
|
624
809
|
}),
|
|
625
|
-
|
|
626
|
-
path: `/health/
|
|
810
|
+
liveness: (params = {}) => this.request({
|
|
811
|
+
path: `/health/liveness`,
|
|
627
812
|
method: "GET",
|
|
628
813
|
format: "json",
|
|
629
814
|
...params,
|