@revisium/endpoint 0.11.0-alpha.2 → 0.11.0-alpha.4

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.
Files changed (125) hide show
  1. package/dist/endpoint-microservice/core-api/generated/api.d.ts +83 -68
  2. package/dist/endpoint-microservice/core-api/generated/api.js +489 -466
  3. package/dist/endpoint-microservice/core-api/generated/api.js.map +1 -1
  4. package/dist/endpoint-microservice/core-api/internal-core-api.service.js +1 -1
  5. package/dist/endpoint-microservice/core-api/internal-core-api.service.js.map +1 -1
  6. package/dist/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.js +2 -0
  7. package/dist/endpoint-microservice/core-api/utils/transformFromPrismaToRowModel.js.map +1 -1
  8. package/dist/endpoint-microservice/graphql/commands/handlers/create-graphql-endpoint.handler.d.ts +1 -0
  9. package/dist/endpoint-microservice/graphql/commands/handlers/create-graphql-endpoint.handler.js +11 -3
  10. package/dist/endpoint-microservice/graphql/commands/handlers/create-graphql-endpoint.handler.js.map +1 -1
  11. package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.js +13 -8
  12. package/dist/endpoint-microservice/graphql/graphql-schema-converter/graphql-schema.converter.js.map +1 -1
  13. package/dist/endpoint-microservice/graphql/graphql-schema-converter/utils.d.ts +2 -1
  14. package/dist/endpoint-microservice/graphql/graphql-schema-converter/utils.js +8 -1
  15. package/dist/endpoint-microservice/graphql/graphql-schema-converter/utils.js.map +1 -1
  16. package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.d.ts +1 -1
  17. package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.js +3 -2
  18. package/dist/endpoint-microservice/graphql/queries/handlers/get-graphql-schema.handler.js.map +1 -1
  19. package/dist/endpoint-microservice/restapi/commands/handlers/create-restapi-endpoint.handler.d.ts +1 -0
  20. package/dist/endpoint-microservice/restapi/commands/handlers/create-restapi-endpoint.handler.js +11 -3
  21. package/dist/endpoint-microservice/restapi/commands/handlers/create-restapi-endpoint.handler.js.map +1 -1
  22. package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js +7 -6
  23. package/dist/endpoint-microservice/restapi/queries/handlers/get-open-api-schema.handler.js.map +1 -1
  24. package/dist/endpoint-microservice/restapi/restapi-endpoint.service.js +7 -7
  25. package/dist/endpoint-microservice/restapi/restapi-endpoint.service.js.map +1 -1
  26. package/dist/endpoint-microservice/shared/converter.d.ts +1 -1
  27. package/dist/endpoint-microservice/shared/schema/index.d.ts +5 -0
  28. package/dist/endpoint-microservice/shared/schema/index.js +22 -0
  29. package/dist/endpoint-microservice/shared/schema/index.js.map +1 -0
  30. package/dist/endpoint-microservice/shared/schema/lib/createJsonSchemaStore.d.ts +5 -0
  31. package/dist/endpoint-microservice/shared/schema/lib/createJsonSchemaStore.js +56 -0
  32. package/dist/endpoint-microservice/shared/schema/lib/createJsonSchemaStore.js.map +1 -0
  33. package/dist/endpoint-microservice/shared/schema/lib/createJsonValueStore.d.ts +5 -0
  34. package/dist/endpoint-microservice/shared/schema/lib/createJsonValueStore.js +49 -0
  35. package/dist/endpoint-microservice/shared/schema/lib/createJsonValueStore.js.map +1 -0
  36. package/dist/endpoint-microservice/shared/schema/lib/index.d.ts +5 -0
  37. package/dist/endpoint-microservice/shared/schema/lib/index.js +22 -0
  38. package/dist/endpoint-microservice/shared/schema/lib/index.js.map +1 -0
  39. package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.d.ts +3 -0
  40. package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.js +15 -0
  41. package/dist/endpoint-microservice/shared/schema/lib/resolveRefs.js.map +1 -0
  42. package/dist/endpoint-microservice/shared/schema/lib/traverseStore.d.ts +2 -0
  43. package/dist/endpoint-microservice/shared/schema/lib/traverseStore.js +17 -0
  44. package/dist/endpoint-microservice/shared/schema/lib/traverseStore.js.map +1 -0
  45. package/dist/endpoint-microservice/shared/schema/lib/traverseValue.d.ts +2 -0
  46. package/dist/endpoint-microservice/shared/schema/lib/traverseValue.js +19 -0
  47. package/dist/endpoint-microservice/shared/schema/lib/traverseValue.js.map +1 -0
  48. package/dist/endpoint-microservice/shared/schema/model/index.d.ts +2 -0
  49. package/dist/endpoint-microservice/shared/schema/model/index.js +19 -0
  50. package/dist/endpoint-microservice/shared/schema/model/index.js.map +1 -0
  51. package/dist/endpoint-microservice/shared/schema/model/schema/index.d.ts +6 -0
  52. package/dist/endpoint-microservice/shared/schema/model/schema/index.js +23 -0
  53. package/dist/endpoint-microservice/shared/schema/model/schema/index.js.map +1 -0
  54. package/dist/endpoint-microservice/shared/schema/model/schema/json-array.store.d.ts +30 -0
  55. package/dist/endpoint-microservice/shared/schema/model/schema/json-array.store.js +74 -0
  56. package/dist/endpoint-microservice/shared/schema/model/schema/json-array.store.js.map +1 -0
  57. package/dist/endpoint-microservice/shared/schema/model/schema/json-boolean.store.d.ts +19 -0
  58. package/dist/endpoint-microservice/shared/schema/model/schema/json-boolean.store.js +44 -0
  59. package/dist/endpoint-microservice/shared/schema/model/schema/json-boolean.store.js.map +1 -0
  60. package/dist/endpoint-microservice/shared/schema/model/schema/json-number.store.d.ts +19 -0
  61. package/dist/endpoint-microservice/shared/schema/model/schema/json-number.store.js +44 -0
  62. package/dist/endpoint-microservice/shared/schema/model/schema/json-number.store.js.map +1 -0
  63. package/dist/endpoint-microservice/shared/schema/model/schema/json-object.store.d.ts +45 -0
  64. package/dist/endpoint-microservice/shared/schema/model/schema/json-object.store.js +146 -0
  65. package/dist/endpoint-microservice/shared/schema/model/schema/json-object.store.js.map +1 -0
  66. package/dist/endpoint-microservice/shared/schema/model/schema/json-schema.store.d.ts +3 -0
  67. package/dist/endpoint-microservice/shared/schema/model/schema/json-schema.store.js +3 -0
  68. package/dist/endpoint-microservice/shared/schema/model/schema/json-schema.store.js.map +1 -0
  69. package/dist/endpoint-microservice/shared/schema/model/schema/json-string.store.d.ts +20 -0
  70. package/dist/endpoint-microservice/shared/schema/model/schema/json-string.store.js +48 -0
  71. package/dist/endpoint-microservice/shared/schema/model/schema/json-string.store.js.map +1 -0
  72. package/dist/endpoint-microservice/shared/schema/model/value/index.d.ts +7 -0
  73. package/dist/endpoint-microservice/shared/schema/model/value/index.js +24 -0
  74. package/dist/endpoint-microservice/shared/schema/model/value/index.js.map +1 -0
  75. package/dist/endpoint-microservice/shared/schema/model/value/json-array-value.store.d.ts +15 -0
  76. package/dist/endpoint-microservice/shared/schema/model/value/json-array-value.store.js +47 -0
  77. package/dist/endpoint-microservice/shared/schema/model/value/json-array-value.store.js.map +1 -0
  78. package/dist/endpoint-microservice/shared/schema/model/value/json-boolean-value.store.d.ts +11 -0
  79. package/dist/endpoint-microservice/shared/schema/model/value/json-boolean-value.store.js +19 -0
  80. package/dist/endpoint-microservice/shared/schema/model/value/json-boolean-value.store.js.map +1 -0
  81. package/dist/endpoint-microservice/shared/schema/model/value/json-number-value.store.d.ts +11 -0
  82. package/dist/endpoint-microservice/shared/schema/model/value/json-number-value.store.js +19 -0
  83. package/dist/endpoint-microservice/shared/schema/model/value/json-number-value.store.js.map +1 -0
  84. package/dist/endpoint-microservice/shared/schema/model/value/json-object-value.store.d.ts +18 -0
  85. package/dist/endpoint-microservice/shared/schema/model/value/json-object-value.store.js +60 -0
  86. package/dist/endpoint-microservice/shared/schema/model/value/json-object-value.store.js.map +1 -0
  87. package/dist/endpoint-microservice/shared/schema/model/value/json-string-value.store.d.ts +12 -0
  88. package/dist/endpoint-microservice/shared/schema/model/value/json-string-value.store.js +22 -0
  89. package/dist/endpoint-microservice/shared/schema/model/value/json-string-value.store.js.map +1 -0
  90. package/dist/endpoint-microservice/shared/schema/model/value/json-value.store.d.ts +4 -0
  91. package/dist/endpoint-microservice/shared/{types/schema.types.js → schema/model/value/json-value.store.js} +1 -1
  92. package/dist/endpoint-microservice/shared/schema/model/value/json-value.store.js.map +1 -0
  93. package/dist/endpoint-microservice/shared/schema/model/value/value-transformation.d.ts +13 -0
  94. package/dist/endpoint-microservice/shared/schema/model/value/value-transformation.js +110 -0
  95. package/dist/endpoint-microservice/shared/schema/model/value/value-transformation.js.map +1 -0
  96. package/dist/endpoint-microservice/shared/schema/plugins/file-schema.d.ts +4 -0
  97. package/dist/endpoint-microservice/shared/schema/plugins/file-schema.js +62 -0
  98. package/dist/endpoint-microservice/shared/schema/plugins/file-schema.js.map +1 -0
  99. package/dist/endpoint-microservice/shared/schema/plugins/index.d.ts +1 -0
  100. package/dist/endpoint-microservice/shared/schema/plugins/index.js +18 -0
  101. package/dist/endpoint-microservice/shared/schema/plugins/index.js.map +1 -0
  102. package/dist/{__tests__ → endpoint-microservice/shared/schema}/schema.mocks.d.ts +2 -2
  103. package/dist/{__tests__ → endpoint-microservice/shared/schema}/schema.mocks.js +11 -6
  104. package/dist/endpoint-microservice/shared/schema/schema.mocks.js.map +1 -0
  105. package/dist/endpoint-microservice/shared/schema/types/index.d.ts +3 -0
  106. package/dist/endpoint-microservice/shared/schema/types/index.js +20 -0
  107. package/dist/endpoint-microservice/shared/schema/types/index.js.map +1 -0
  108. package/dist/endpoint-microservice/shared/{types → schema/types}/json-patch.types.d.ts +1 -1
  109. package/dist/endpoint-microservice/shared/schema/types/json-patch.types.js.map +1 -0
  110. package/dist/endpoint-microservice/shared/schema/types/json.types.js.map +1 -0
  111. package/dist/endpoint-microservice/shared/{types → schema/types}/schema.types.d.ts +16 -6
  112. package/dist/endpoint-microservice/shared/schema/types/schema.types.js +12 -0
  113. package/dist/endpoint-microservice/shared/schema/types/schema.types.js.map +1 -0
  114. package/dist/endpoint-microservice/shared/schema-ids.consts.d.ts +3 -0
  115. package/dist/endpoint-microservice/shared/schema-ids.consts.js +8 -0
  116. package/dist/endpoint-microservice/shared/schema-ids.consts.js.map +1 -0
  117. package/dist/tsconfig.build.tsbuildinfo +1 -1
  118. package/package.json +3 -2
  119. package/dist/__tests__/schema.mocks.js.map +0 -1
  120. package/dist/endpoint-microservice/shared/types/json-patch.types.js.map +0 -1
  121. package/dist/endpoint-microservice/shared/types/json.types.js.map +0 -1
  122. package/dist/endpoint-microservice/shared/types/schema.types.js.map +0 -1
  123. /package/dist/endpoint-microservice/shared/{types → schema/types}/json-patch.types.js +0 -0
  124. /package/dist/endpoint-microservice/shared/{types → schema/types}/json.types.d.ts +0 -0
  125. /package/dist/endpoint-microservice/shared/{types → schema/types}/json.types.js +0 -0
@@ -7,7 +7,7 @@ export interface LoginResponse {
7
7
  }
8
8
  export interface CreateUserDto {
9
9
  username: string;
10
- roleId: 'systemAdmin' | 'systemFullApiRead' | 'systemUser';
10
+ roleId: "systemAdmin" | "systemFullApiRead" | "systemUser";
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: 'organizationOwner' | 'organizationAdmin' | 'developer' | 'editor' | 'reader';
68
+ roleId: "organizationOwner" | "organizationAdmin" | "developer" | "editor" | "reader";
69
69
  }
70
70
  export interface RemoveUserFromOrganizationDto {
71
71
  userId: string;
@@ -105,7 +105,7 @@ export interface UsersProjectConnection {
105
105
  }
106
106
  export interface AddUserToProjectDto {
107
107
  userId: string;
108
- roleId: 'developer' | 'editor' | 'reader';
108
+ roleId: "developer" | "editor" | "reader";
109
109
  }
110
110
  export interface Id {
111
111
  id: string;
@@ -137,9 +137,11 @@ export interface ChildBranchResponse {
137
137
  revision: Id;
138
138
  }
139
139
  export interface TableModel {
140
- versionId: string;
140
+ createdId: string;
141
141
  id: string;
142
+ versionId: string;
142
143
  createdAt: string;
144
+ updatedAt: string;
143
145
  readonly: boolean;
144
146
  }
145
147
  export interface TableModelEdgeType {
@@ -154,13 +156,13 @@ export interface TablesConnection {
154
156
  export interface EndpointModel {
155
157
  id: string;
156
158
  createdAt: string;
157
- type: 'GRAPHQL' | 'REST_API';
159
+ type: "GRAPHQL" | "REST_API";
158
160
  }
159
161
  export interface CreateBranchByRevisionDto {
160
162
  branchName: string;
161
163
  }
162
164
  export interface CreateEndpointDto {
163
- type: 'GRAPHQL' | 'REST_API';
165
+ type: "GRAPHQL" | "REST_API";
164
166
  }
165
167
  export interface CreateTableDto {
166
168
  tableId: string;
@@ -171,9 +173,11 @@ export interface CreateTableResponse {
171
173
  table: TableModel;
172
174
  }
173
175
  export interface RowModel {
174
- versionId: string;
176
+ createdId: string;
175
177
  id: string;
178
+ versionId: string;
176
179
  createdAt: string;
180
+ updatedAt: string;
177
181
  readonly: boolean;
178
182
  data: object;
179
183
  }
@@ -230,6 +234,12 @@ export interface RenameRowResponse {
230
234
  row?: RowModel;
231
235
  previousVersionRowId?: string;
232
236
  }
237
+ export interface UploadFileResponse {
238
+ table?: TableModel;
239
+ previousVersionTableId?: string;
240
+ row?: RowModel;
241
+ previousVersionRowId?: string;
242
+ }
233
243
  export interface GoogleOauth {
234
244
  available: boolean;
235
245
  clientId?: string;
@@ -317,8 +327,8 @@ export interface RowForeignKeysToParams {
317
327
  rowId: string;
318
328
  }
319
329
  export type QueryParamsType = Record<string | number, any>;
320
- export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
321
- export interface FullRequestParams extends Omit<RequestInit, 'body'> {
330
+ export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
331
+ export interface FullRequestParams extends Omit<RequestInit, "body"> {
322
332
  secure?: boolean;
323
333
  path: string;
324
334
  type?: ContentType;
@@ -328,10 +338,10 @@ export interface FullRequestParams extends Omit<RequestInit, 'body'> {
328
338
  baseUrl?: string;
329
339
  cancelToken?: CancelToken;
330
340
  }
331
- export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
341
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
332
342
  export interface ApiConfig<SecurityDataType = unknown> {
333
343
  baseUrl?: string;
334
- baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
344
+ baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
335
345
  securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
336
346
  customFetch?: typeof fetch;
337
347
  }
@@ -367,63 +377,68 @@ export declare class HttpClient<SecurityDataType = unknown> {
367
377
  request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
368
378
  }
369
379
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
370
- login: (data: LoginDto, params?: RequestParams) => Promise<HttpResponse<LoginResponse, any>>;
371
- createUser: (data: CreateUserDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
372
- updatePassword: (data: UpdatePasswordDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
373
- me: (params?: RequestParams) => Promise<HttpResponse<UserModel, any>>;
374
- projects: ({ organizationId, ...query }: ProjectsParams, params?: RequestParams) => Promise<HttpResponse<ProjectsConnection, any>>;
375
- createProject: ({ organizationId, ...query }: CreateProjectParams, data: CreateProjectDto, params?: RequestParams) => Promise<HttpResponse<ProjectModel, any>>;
376
- usersOrganization: ({ organizationId, ...query }: UsersOrganizationParams, params?: RequestParams) => Promise<HttpResponse<UsersOrganizationConnection, any>>;
377
- addUserToOrganization: (organizationId: string, data: AddUserToOrganizationDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
378
- removeUserFromOrganization: (organizationId: string, data: RemoveUserFromOrganizationDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
379
- project: (organizationId: string, projectName: string, params?: RequestParams) => Promise<HttpResponse<ProjectModel, any>>;
380
- deleteProject: (organizationId: string, projectName: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
381
- updateProject: (organizationId: string, projectName: string, data: UpdateProjectDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
382
- rootBranch: (organizationId: string, projectName: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
383
- branches: ({ organizationId, projectName, ...query }: BranchesParams, params?: RequestParams) => Promise<HttpResponse<BranchesConnection, any>>;
384
- usersProject: ({ organizationId, projectName, ...query }: UsersProjectParams, params?: RequestParams) => Promise<HttpResponse<UsersProjectConnection, any>>;
385
- addUserToProject: (organizationId: string, projectName: string, data: AddUserToProjectDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
386
- removeUserFromProject: (organizationId: string, projectName: string, userId: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
387
- branch: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
388
- branchTouched: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
389
- parentBranch: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<ParentBranchResponse, any>>;
390
- startRevision: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
391
- headRevision: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
392
- draftRevision: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
393
- revisions: ({ organizationId, projectName, branchName, ...query }: RevisionsParams, params?: RequestParams) => Promise<HttpResponse<RevisionsConnection, any>>;
394
- createRevision: (organizationId: string, projectName: string, branchName: string, data: CreateRevisionDto, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
395
- revertChanges: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
396
- revision: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
397
- parentRevision: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
398
- childRevision: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
399
- childBranches: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<ChildBranchResponse[], any>>;
400
- createBranch: (revisionId: string, data: CreateBranchByRevisionDto, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
401
- tables: ({ revisionId, ...query }: TablesParams, params?: RequestParams) => Promise<HttpResponse<TablesConnection, any>>;
402
- createTable: (revisionId: string, data: CreateTableDto, params?: RequestParams) => Promise<HttpResponse<CreateTableResponse, any>>;
403
- endpoints: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<EndpointModel[], any>>;
404
- createEndpoint: (revisionId: string, data: CreateEndpointDto, params?: RequestParams) => Promise<HttpResponse<EndpointModel, any>>;
405
- table: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<TableModel, any>>;
406
- deleteTable: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
407
- updateTable: (revisionId: string, tableId: string, data: UpdateTableDto, params?: RequestParams) => Promise<HttpResponse<UpdateTableResponse, any>>;
408
- tableCountRows: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
409
- rows: ({ revisionId, tableId, ...query }: RowsParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
410
- createRow: (revisionId: string, tableId: string, data: CreateRowDto, params?: RequestParams) => Promise<HttpResponse<CreateRowResponse, any>>;
411
- tableSchema: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<object, any>>;
412
- tableCountForeignKeysBy: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
413
- tableForeignKeysBy: ({ revisionId, tableId, ...query }: TableForeignKeysByParams, params?: RequestParams) => Promise<HttpResponse<TablesConnection, any>>;
414
- tableCountForeignKeysTo: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
415
- tableForeignKeysTo: ({ revisionId, tableId, ...query }: TableForeignKeysToParams, params?: RequestParams) => Promise<HttpResponse<TablesConnection, any>>;
416
- renameTable: (revisionId: string, tableId: string, data: UpdateTableDto, params?: RequestParams) => Promise<HttpResponse<UpdateTableResponse, any>>;
417
- row: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<RowModel, ErrorModel>>;
418
- deleteRow: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<RemoveRowResponse, any>>;
419
- updateRow: (revisionId: string, tableId: string, rowId: string, data: UpdateRowDto, params?: RequestParams) => Promise<HttpResponse<UpdateRowResponse, any>>;
420
- rowCountForeignKeysBy: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
421
- rowForeignKeysBy: ({ revisionId, tableId, rowId, ...query }: RowForeignKeysByParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
422
- rowCountForeignKeysTo: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
423
- rowForeignKeysTo: ({ revisionId, tableId, rowId, ...query }: RowForeignKeysToParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
424
- renameRow: (revisionId: string, tableId: string, rowId: string, data: RenameRowDto, params?: RequestParams) => Promise<HttpResponse<RenameRowResponse, any>>;
425
- deleteEndpoint: (endpointId: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
426
- getConfiguration: (params?: RequestParams) => Promise<HttpResponse<ConfigurationResponse, any>>;
380
+ api: {
381
+ login: (data: LoginDto, params?: RequestParams) => Promise<HttpResponse<LoginResponse, any>>;
382
+ createUser: (data: CreateUserDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
383
+ updatePassword: (data: UpdatePasswordDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
384
+ me: (params?: RequestParams) => Promise<HttpResponse<UserModel, any>>;
385
+ projects: ({ organizationId, ...query }: ProjectsParams, params?: RequestParams) => Promise<HttpResponse<ProjectsConnection, any>>;
386
+ createProject: ({ organizationId, ...query }: CreateProjectParams, data: CreateProjectDto, params?: RequestParams) => Promise<HttpResponse<ProjectModel, any>>;
387
+ usersOrganization: ({ organizationId, ...query }: UsersOrganizationParams, params?: RequestParams) => Promise<HttpResponse<UsersOrganizationConnection, any>>;
388
+ addUserToOrganization: (organizationId: string, data: AddUserToOrganizationDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
389
+ removeUserFromOrganization: (organizationId: string, data: RemoveUserFromOrganizationDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
390
+ project: (organizationId: string, projectName: string, params?: RequestParams) => Promise<HttpResponse<ProjectModel, any>>;
391
+ deleteProject: (organizationId: string, projectName: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
392
+ updateProject: (organizationId: string, projectName: string, data: UpdateProjectDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
393
+ rootBranch: (organizationId: string, projectName: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
394
+ branches: ({ organizationId, projectName, ...query }: BranchesParams, params?: RequestParams) => Promise<HttpResponse<BranchesConnection, any>>;
395
+ usersProject: ({ organizationId, projectName, ...query }: UsersProjectParams, params?: RequestParams) => Promise<HttpResponse<UsersProjectConnection, any>>;
396
+ addUserToProject: (organizationId: string, projectName: string, data: AddUserToProjectDto, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
397
+ removeUserFromProject: (organizationId: string, projectName: string, userId: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
398
+ branch: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
399
+ branchTouched: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
400
+ parentBranch: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<ParentBranchResponse, any>>;
401
+ startRevision: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
402
+ headRevision: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
403
+ draftRevision: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
404
+ revisions: ({ organizationId, projectName, branchName, ...query }: RevisionsParams, params?: RequestParams) => Promise<HttpResponse<RevisionsConnection, any>>;
405
+ createRevision: (organizationId: string, projectName: string, branchName: string, data: CreateRevisionDto, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
406
+ revertChanges: (organizationId: string, projectName: string, branchName: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
407
+ revision: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
408
+ parentRevision: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
409
+ childRevision: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<RevisionModel, any>>;
410
+ childBranches: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<ChildBranchResponse[], any>>;
411
+ createBranch: (revisionId: string, data: CreateBranchByRevisionDto, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
412
+ tables: ({ revisionId, ...query }: TablesParams, params?: RequestParams) => Promise<HttpResponse<TablesConnection, any>>;
413
+ createTable: (revisionId: string, data: CreateTableDto, params?: RequestParams) => Promise<HttpResponse<CreateTableResponse, any>>;
414
+ endpoints: (revisionId: string, params?: RequestParams) => Promise<HttpResponse<EndpointModel[], any>>;
415
+ createEndpoint: (revisionId: string, data: CreateEndpointDto, params?: RequestParams) => Promise<HttpResponse<EndpointModel, any>>;
416
+ table: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<TableModel, any>>;
417
+ deleteTable: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<BranchModel, any>>;
418
+ updateTable: (revisionId: string, tableId: string, data: UpdateTableDto, params?: RequestParams) => Promise<HttpResponse<UpdateTableResponse, any>>;
419
+ tableCountRows: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
420
+ rows: ({ revisionId, tableId, ...query }: RowsParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
421
+ createRow: (revisionId: string, tableId: string, data: CreateRowDto, params?: RequestParams) => Promise<HttpResponse<CreateRowResponse, any>>;
422
+ tableSchema: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<object, any>>;
423
+ tableCountForeignKeysBy: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
424
+ tableForeignKeysBy: ({ revisionId, tableId, ...query }: TableForeignKeysByParams, params?: RequestParams) => Promise<HttpResponse<TablesConnection, any>>;
425
+ tableCountForeignKeysTo: (revisionId: string, tableId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
426
+ tableForeignKeysTo: ({ revisionId, tableId, ...query }: TableForeignKeysToParams, params?: RequestParams) => Promise<HttpResponse<TablesConnection, any>>;
427
+ renameTable: (revisionId: string, tableId: string, data: UpdateTableDto, params?: RequestParams) => Promise<HttpResponse<UpdateTableResponse, any>>;
428
+ row: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<RowModel, ErrorModel>>;
429
+ deleteRow: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<RemoveRowResponse, any>>;
430
+ updateRow: (revisionId: string, tableId: string, rowId: string, data: UpdateRowDto, params?: RequestParams) => Promise<HttpResponse<UpdateRowResponse, any>>;
431
+ rowCountForeignKeysBy: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
432
+ rowForeignKeysBy: ({ revisionId, tableId, rowId, ...query }: RowForeignKeysByParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
433
+ rowCountForeignKeysTo: (revisionId: string, tableId: string, rowId: string, params?: RequestParams) => Promise<HttpResponse<number, any>>;
434
+ rowForeignKeysTo: ({ revisionId, tableId, rowId, ...query }: RowForeignKeysToParams, params?: RequestParams) => Promise<HttpResponse<RowsConnection, any>>;
435
+ renameRow: (revisionId: string, tableId: string, rowId: string, data: RenameRowDto, params?: RequestParams) => Promise<HttpResponse<RenameRowResponse, any>>;
436
+ uploadFile: (revisionId: string, tableId: string, rowId: string, fileId: string, data: {
437
+ file: File;
438
+ }, params?: RequestParams) => Promise<HttpResponse<UploadFileResponse, any>>;
439
+ deleteEndpoint: (endpointId: string, params?: RequestParams) => Promise<HttpResponse<boolean, any>>;
440
+ getConfiguration: (params?: RequestParams) => Promise<HttpResponse<ConfigurationResponse, any>>;
441
+ };
427
442
  health: {
428
443
  liveness: (params?: RequestParams) => Promise<HttpResponse<{
429
444
  status?: string;