@rlvt/datasources-openapi-client 1.0.373 → 1.0.374

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/build/api.d.ts CHANGED
@@ -16,6 +16,12 @@ export default class {
16
16
  private deleteOauthClient;
17
17
  private getAuthorizeUrl;
18
18
  private getAuthorizeUrlForDatasource;
19
+ private listDatagraphEntities;
20
+ private createEntity;
21
+ private getDatagraphEntity;
22
+ private updateDatagraphEntity;
23
+ private deleteDatagraphEntity;
24
+ private publishDatagraphEntity;
19
25
  private listDatagraphSchemas;
20
26
  private createSchema;
21
27
  private validateDatagraphSchema;
@@ -23,12 +29,6 @@ export default class {
23
29
  private updateDatagraphSchema;
24
30
  private deleteDatagraphSchema;
25
31
  private publishDatagraphSchema;
26
- private listDatagraphEntities;
27
- private createEntity;
28
- private getDatagraphEntity;
29
- private updateDatagraphEntity;
30
- private deleteDatagraphEntity;
31
- private publishDatagraphEntity;
32
32
  private getCurrentStepDatasource;
33
33
  private validateStepDatasource;
34
34
  private getDatasourceSettings;
@@ -9868,7 +9868,7 @@ export default class {
9868
9868
  }, any, {}>>;
9869
9869
  };
9870
9870
  get Datagraph(): {
9871
- listSchemas: (params: {
9871
+ listEntities: (params: {
9872
9872
  page?: number | undefined;
9873
9873
  perPage?: number | undefined;
9874
9874
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
@@ -9880,6 +9880,9 @@ export default class {
9880
9880
  } & {
9881
9881
  datetime: string;
9882
9882
  data: {
9883
+ readonly id: string & {
9884
+ readonly?: "__readonly" | undefined;
9885
+ };
9883
9886
  readonly companyId: string & {
9884
9887
  readonly?: "__readonly" | undefined;
9885
9888
  };
@@ -9888,52 +9891,37 @@ export default class {
9888
9891
  readonly companyId: string & {
9889
9892
  readonly?: "__readonly" | undefined;
9890
9893
  };
9891
- readonly state: import("./definitions").DatagraphSchemaVersionState & {
9894
+ readonly state: import("./definitions").DatagraphEntityVersionState & {
9892
9895
  readonly?: "__readonly" | undefined;
9893
9896
  };
9894
9897
  _id: string;
9895
9898
  __v: number;
9896
9899
  readonly definition: {
9900
+ readonly?: "__readonly" | undefined;
9897
9901
  name: string;
9898
- description?: string | undefined;
9899
- relations?: {
9900
- description?: string | undefined;
9901
- type: "Relation";
9902
- columns: string[];
9903
- reference: {
9904
- datasourceId: string;
9905
- table: string;
9906
- columns: string[];
9907
- };
9908
- }[] | undefined;
9909
- datasourceId: string;
9910
- columns: {
9902
+ options: {
9911
9903
  name: string;
9912
- description?: string | undefined;
9913
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
9914
- default?: string | number | boolean | undefined;
9915
- nullable: boolean;
9904
+ index: number;
9905
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
9906
+ shortDescription: string;
9907
+ fullDescription: string | null;
9916
9908
  }[];
9917
- virtualColumns?: {
9918
- query: string;
9909
+ sql: string | null;
9910
+ readonly answers: {
9919
9911
  name: string;
9920
- description?: string | undefined;
9921
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
9922
- nullable: boolean;
9923
- }[] | undefined;
9924
- uniqueKeys?: {
9925
- description?: string | undefined;
9926
- type: "UniqueKey";
9927
- columns: string[];
9928
- }[] | undefined;
9929
- indexes?: {
9930
- description?: string | undefined;
9931
- type: "Index";
9932
- columns: string[];
9933
- }[] | undefined;
9934
- }[];
9912
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
9913
+ }[];
9914
+ };
9935
9915
  })[];
9936
- archivedAt: string | null;
9916
+ readonly archivedAt: string & {
9917
+ readonly?: "__readonly" | undefined;
9918
+ };
9919
+ readonly createdAt: string & {
9920
+ readonly?: "__readonly" | undefined;
9921
+ };
9922
+ readonly updatedAt: string & {
9923
+ readonly?: "__readonly" | undefined;
9924
+ };
9937
9925
  }[];
9938
9926
  program: string;
9939
9927
  version: string;
@@ -9941,52 +9929,65 @@ export default class {
9941
9929
  code?: number | undefined;
9942
9930
  message: string;
9943
9931
  }, any, {}>>;
9944
- createSchema: (params: Record<string, never>, data: {
9945
- schema: {
9932
+ createEntity: (params: Record<string, never>, data: {
9933
+ entity: {
9946
9934
  name: string;
9947
- description?: string | undefined;
9948
- relations?: {
9949
- description?: string | undefined;
9950
- type: "Relation";
9951
- columns: string[];
9952
- reference: {
9953
- datasourceId: string;
9954
- table: string;
9955
- columns: string[];
9956
- };
9957
- }[] | undefined;
9958
- datasourceId: string;
9959
- columns: {
9935
+ options: {
9960
9936
  name: string;
9961
- description?: string | undefined;
9962
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
9963
- default?: string | number | boolean | undefined;
9964
- nullable: boolean;
9937
+ index: number;
9938
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
9939
+ shortDescription: string;
9940
+ fullDescription: string | null;
9965
9941
  }[];
9966
- virtualColumns?: {
9967
- query: string;
9968
- name: string;
9969
- description?: string | undefined;
9970
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
9971
- nullable: boolean;
9972
- }[] | undefined;
9973
- uniqueKeys?: {
9974
- description?: string | undefined;
9975
- type: "UniqueKey";
9976
- columns: string[];
9977
- }[] | undefined;
9978
- indexes?: {
9979
- description?: string | undefined;
9980
- type: "Index";
9981
- columns: string[];
9982
- }[] | undefined;
9983
- }[];
9942
+ sql: string | null;
9943
+ };
9984
9944
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
9985
9945
  status: "success";
9986
9946
  } & {
9987
9947
  datetime: string;
9988
9948
  data: {
9989
- [x: string]: unknown;
9949
+ readonly id: string & {
9950
+ readonly?: "__readonly" | undefined;
9951
+ };
9952
+ readonly companyId: string & {
9953
+ readonly?: "__readonly" | undefined;
9954
+ };
9955
+ readonly resourceGroupIds: string[];
9956
+ readonly versions: (string | {
9957
+ readonly companyId: string & {
9958
+ readonly?: "__readonly" | undefined;
9959
+ };
9960
+ readonly state: import("./definitions").DatagraphEntityVersionState & {
9961
+ readonly?: "__readonly" | undefined;
9962
+ };
9963
+ _id: string;
9964
+ __v: number;
9965
+ readonly definition: {
9966
+ readonly?: "__readonly" | undefined;
9967
+ name: string;
9968
+ options: {
9969
+ name: string;
9970
+ index: number;
9971
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
9972
+ shortDescription: string;
9973
+ fullDescription: string | null;
9974
+ }[];
9975
+ sql: string | null;
9976
+ readonly answers: {
9977
+ name: string;
9978
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
9979
+ }[];
9980
+ };
9981
+ })[];
9982
+ readonly archivedAt: string & {
9983
+ readonly?: "__readonly" | undefined;
9984
+ };
9985
+ readonly createdAt: string & {
9986
+ readonly?: "__readonly" | undefined;
9987
+ };
9988
+ readonly updatedAt: string & {
9989
+ readonly?: "__readonly" | undefined;
9990
+ };
9990
9991
  };
9991
9992
  program: string;
9992
9993
  version: string;
@@ -9994,77 +9995,55 @@ export default class {
9994
9995
  code?: number | undefined;
9995
9996
  message: string;
9996
9997
  }, any, {}>>;
9997
- validateSchema: (params: Record<string, never>, data: {
9998
- schema: unknown;
9998
+ getEntity: (params: {
9999
+ id: string;
9999
10000
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10000
10001
  status: "success";
10001
10002
  } & {
10002
10003
  datetime: string;
10003
10004
  data: {
10004
- validation: {
10005
- success: true;
10006
- data: {
10005
+ readonly id: string & {
10006
+ readonly?: "__readonly" | undefined;
10007
+ };
10008
+ readonly companyId: string & {
10009
+ readonly?: "__readonly" | undefined;
10010
+ };
10011
+ readonly resourceGroupIds: string[];
10012
+ readonly versions: (string | {
10013
+ readonly companyId: string & {
10014
+ readonly?: "__readonly" | undefined;
10015
+ };
10016
+ readonly state: import("./definitions").DatagraphEntityVersionState & {
10017
+ readonly?: "__readonly" | undefined;
10018
+ };
10019
+ _id: string;
10020
+ __v: number;
10021
+ readonly definition: {
10022
+ readonly?: "__readonly" | undefined;
10007
10023
  name: string;
10008
- description?: string | undefined;
10009
- relations?: {
10010
- description?: string | undefined;
10011
- type: "Relation";
10012
- columns: string[];
10013
- reference: {
10014
- datasourceId: string;
10015
- table: string;
10016
- columns: string[];
10017
- };
10018
- }[] | undefined;
10019
- datasourceId: string;
10020
- columns: {
10024
+ options: {
10021
10025
  name: string;
10022
- description?: string | undefined;
10023
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10024
- default?: string | number | boolean | undefined;
10025
- nullable: boolean;
10026
+ index: number;
10027
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10028
+ shortDescription: string;
10029
+ fullDescription: string | null;
10026
10030
  }[];
10027
- virtualColumns?: {
10028
- query: string;
10031
+ sql: string | null;
10032
+ readonly answers: {
10029
10033
  name: string;
10030
- description?: string | undefined;
10031
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10032
- nullable: boolean;
10033
- }[] | undefined;
10034
- uniqueKeys?: {
10035
- description?: string | undefined;
10036
- type: "UniqueKey";
10037
- columns: string[];
10038
- }[] | undefined;
10039
- indexes?: {
10040
- description?: string | undefined;
10041
- type: "Index";
10042
- columns: string[];
10043
- }[] | undefined;
10044
- }[];
10045
- } | {
10046
- success: false;
10047
- error: {
10048
- issues: {
10049
- path: (string | number)[];
10050
- code: string;
10051
- message: string;
10034
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10052
10035
  }[];
10053
10036
  };
10037
+ })[];
10038
+ readonly archivedAt: string & {
10039
+ readonly?: "__readonly" | undefined;
10040
+ };
10041
+ readonly createdAt: string & {
10042
+ readonly?: "__readonly" | undefined;
10043
+ };
10044
+ readonly updatedAt: string & {
10045
+ readonly?: "__readonly" | undefined;
10054
10046
  };
10055
- relations: {
10056
- error?: string | undefined;
10057
- fromDatasourceId: string;
10058
- fromTable: string;
10059
- fromColumn: string;
10060
- fromDistinctCount: number | null;
10061
- toDatasourceId: string;
10062
- toTable: string;
10063
- toColumn: string;
10064
- toDistinctCount: number | null;
10065
- matchCount: number | null;
10066
- matchPercentage: number | null;
10067
- }[];
10068
10047
  };
10069
10048
  program: string;
10070
10049
  version: string;
@@ -10072,103 +10051,22 @@ export default class {
10072
10051
  code?: number | undefined;
10073
10052
  message: string;
10074
10053
  }, any, {}>>;
10075
- getSchema: (params: {
10076
- id: string;
10077
- }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10078
- status: "success";
10079
- } & {
10080
- datetime: string;
10081
- data: {
10082
- [x: string]: unknown;
10083
- };
10084
- program: string;
10085
- version: string;
10086
- status: string;
10087
- code?: number | undefined;
10088
- message: string;
10089
- }, any, {}>>;
10090
- updateSchema: (params: {
10054
+ updateEntity: (params: {
10091
10055
  id: string;
10092
10056
  }, data: {
10093
- schema: {
10057
+ entity: {
10094
10058
  name: string;
10095
- description?: string | undefined;
10096
- relations?: {
10097
- description?: string | undefined;
10098
- type: "Relation";
10099
- columns: string[];
10100
- reference: {
10101
- datasourceId: string;
10102
- table: string;
10103
- columns: string[];
10104
- };
10105
- }[] | undefined;
10106
- datasourceId: string;
10107
- columns: {
10059
+ options: {
10108
10060
  name: string;
10109
- description?: string | undefined;
10110
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10111
- default?: string | number | boolean | undefined;
10112
- nullable: boolean;
10061
+ index: number;
10062
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10063
+ shortDescription: string;
10064
+ fullDescription: string | null;
10113
10065
  }[];
10114
- virtualColumns?: {
10115
- query: string;
10116
- name: string;
10117
- description?: string | undefined;
10118
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10119
- nullable: boolean;
10120
- }[] | undefined;
10121
- uniqueKeys?: {
10122
- description?: string | undefined;
10123
- type: "UniqueKey";
10124
- columns: string[];
10125
- }[] | undefined;
10126
- indexes?: {
10127
- description?: string | undefined;
10128
- type: "Index";
10129
- columns: string[];
10130
- }[] | undefined;
10131
- }[];
10132
- }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10133
- status: "success";
10134
- } & {
10135
- datetime: string;
10136
- data: {
10137
- [x: string]: unknown;
10066
+ sql: string | null;
10138
10067
  };
10139
- program: string;
10140
- version: string;
10141
- status: string;
10142
- code?: number | undefined;
10143
- message: string;
10144
- }, any, {}>>;
10145
- deleteSchema: (params: {
10146
- id: string;
10147
- }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
10148
- publishSchema: (params: {
10149
- id: string;
10150
10068
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10151
10069
  status: "success";
10152
- } & {
10153
- datetime: string;
10154
- data: {
10155
- [x: string]: unknown;
10156
- };
10157
- program: string;
10158
- version: string;
10159
- status: string;
10160
- code?: number | undefined;
10161
- message: string;
10162
- }, any, {}>>;
10163
- listEntities: (params: {
10164
- page?: number | undefined;
10165
- perPage?: number | undefined;
10166
- }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10167
- paginationCount: number;
10168
- paginationPage: number;
10169
- paginationLimit: number;
10170
- } & {
10171
- status: "success";
10172
10070
  } & {
10173
10071
  datetime: string;
10174
10072
  data: {
@@ -10201,7 +10099,7 @@ export default class {
10201
10099
  sql: string | null;
10202
10100
  readonly answers: {
10203
10101
  name: string;
10204
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10102
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10205
10103
  }[];
10206
10104
  };
10207
10105
  })[];
@@ -10214,25 +10112,18 @@ export default class {
10214
10112
  readonly updatedAt: string & {
10215
10113
  readonly?: "__readonly" | undefined;
10216
10114
  };
10217
- }[];
10115
+ };
10218
10116
  program: string;
10219
10117
  version: string;
10220
10118
  status: string;
10221
10119
  code?: number | undefined;
10222
10120
  message: string;
10223
10121
  }, any, {}>>;
10224
- createEntity: (params: Record<string, never>, data: {
10225
- entity: {
10226
- name: string;
10227
- options: {
10228
- name: string;
10229
- index: number;
10230
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10231
- shortDescription: string;
10232
- fullDescription: string | null;
10233
- }[];
10234
- sql: string | null;
10235
- };
10122
+ deleteEntity: (params: {
10123
+ id: string;
10124
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
10125
+ publishEntity: (params: {
10126
+ id: string;
10236
10127
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10237
10128
  status: "success";
10238
10129
  } & {
@@ -10267,7 +10158,7 @@ export default class {
10267
10158
  sql: string | null;
10268
10159
  readonly answers: {
10269
10160
  name: string;
10270
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10161
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10271
10162
  }[];
10272
10163
  };
10273
10164
  })[];
@@ -10287,16 +10178,18 @@ export default class {
10287
10178
  code?: number | undefined;
10288
10179
  message: string;
10289
10180
  }, any, {}>>;
10290
- getEntity: (params: {
10291
- id: string;
10181
+ listSchemas: (params: {
10182
+ page?: number | undefined;
10183
+ perPage?: number | undefined;
10292
10184
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10185
+ paginationCount: number;
10186
+ paginationPage: number;
10187
+ paginationLimit: number;
10188
+ } & {
10293
10189
  status: "success";
10294
10190
  } & {
10295
10191
  datetime: string;
10296
10192
  data: {
10297
- readonly id: string & {
10298
- readonly?: "__readonly" | undefined;
10299
- };
10300
10193
  readonly companyId: string & {
10301
10194
  readonly?: "__readonly" | undefined;
10302
10195
  };
@@ -10305,105 +10198,183 @@ export default class {
10305
10198
  readonly companyId: string & {
10306
10199
  readonly?: "__readonly" | undefined;
10307
10200
  };
10308
- readonly state: import("./definitions").DatagraphEntityVersionState & {
10201
+ readonly state: import("./definitions").DatagraphSchemaVersionState & {
10309
10202
  readonly?: "__readonly" | undefined;
10310
10203
  };
10311
10204
  _id: string;
10312
10205
  __v: number;
10313
10206
  readonly definition: {
10314
- readonly?: "__readonly" | undefined;
10315
10207
  name: string;
10316
- options: {
10208
+ description?: string | undefined;
10209
+ relations?: {
10210
+ description?: string | undefined;
10211
+ type: "Relation";
10212
+ columns: string[];
10213
+ reference: {
10214
+ datasourceId: string;
10215
+ table: string;
10216
+ columns: string[];
10217
+ };
10218
+ }[] | undefined;
10219
+ datasourceId: string;
10220
+ indexes?: {
10221
+ description?: string | undefined;
10222
+ type: "Index";
10223
+ columns: string[];
10224
+ }[] | undefined;
10225
+ columns: {
10317
10226
  name: string;
10318
- index: number;
10319
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10320
- shortDescription: string;
10321
- fullDescription: string | null;
10227
+ description?: string | undefined;
10228
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10229
+ default?: string | number | boolean | undefined;
10230
+ nullable: boolean;
10322
10231
  }[];
10323
- sql: string | null;
10324
- readonly answers: {
10232
+ virtualColumns?: {
10233
+ query: string;
10325
10234
  name: string;
10326
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10327
- }[];
10328
- };
10235
+ description?: string | undefined;
10236
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10237
+ nullable: boolean;
10238
+ }[] | undefined;
10239
+ uniqueKeys?: {
10240
+ description?: string | undefined;
10241
+ type: "UniqueKey";
10242
+ columns: string[];
10243
+ }[] | undefined;
10244
+ }[];
10329
10245
  })[];
10330
- readonly archivedAt: string & {
10331
- readonly?: "__readonly" | undefined;
10332
- };
10333
- readonly createdAt: string & {
10334
- readonly?: "__readonly" | undefined;
10335
- };
10336
- readonly updatedAt: string & {
10337
- readonly?: "__readonly" | undefined;
10338
- };
10339
- };
10246
+ archivedAt: string | null;
10247
+ }[];
10340
10248
  program: string;
10341
10249
  version: string;
10342
10250
  status: string;
10343
10251
  code?: number | undefined;
10344
10252
  message: string;
10345
10253
  }, any, {}>>;
10346
- updateEntity: (params: {
10347
- id: string;
10348
- }, data: {
10349
- entity: {
10254
+ createSchema: (params: Record<string, never>, data: {
10255
+ schema: {
10350
10256
  name: string;
10351
- options: {
10257
+ description?: string | undefined;
10258
+ relations?: {
10259
+ description?: string | undefined;
10260
+ type: "Relation";
10261
+ columns: string[];
10262
+ reference: {
10263
+ datasourceId: string;
10264
+ table: string;
10265
+ columns: string[];
10266
+ };
10267
+ }[] | undefined;
10268
+ datasourceId: string;
10269
+ indexes?: {
10270
+ description?: string | undefined;
10271
+ type: "Index";
10272
+ columns: string[];
10273
+ }[] | undefined;
10274
+ columns: {
10352
10275
  name: string;
10353
- index: number;
10354
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10355
- shortDescription: string;
10356
- fullDescription: string | null;
10276
+ description?: string | undefined;
10277
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10278
+ default?: string | number | boolean | undefined;
10279
+ nullable: boolean;
10357
10280
  }[];
10358
- sql: string | null;
10281
+ virtualColumns?: {
10282
+ query: string;
10283
+ name: string;
10284
+ description?: string | undefined;
10285
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10286
+ nullable: boolean;
10287
+ }[] | undefined;
10288
+ uniqueKeys?: {
10289
+ description?: string | undefined;
10290
+ type: "UniqueKey";
10291
+ columns: string[];
10292
+ }[] | undefined;
10293
+ }[];
10294
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10295
+ status: "success";
10296
+ } & {
10297
+ datetime: string;
10298
+ data: {
10299
+ [x: string]: unknown;
10359
10300
  };
10301
+ program: string;
10302
+ version: string;
10303
+ status: string;
10304
+ code?: number | undefined;
10305
+ message: string;
10306
+ }, any, {}>>;
10307
+ validateSchema: (params: Record<string, never>, data: {
10308
+ schema: unknown;
10360
10309
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10361
10310
  status: "success";
10362
10311
  } & {
10363
10312
  datetime: string;
10364
10313
  data: {
10365
- readonly id: string & {
10366
- readonly?: "__readonly" | undefined;
10367
- };
10368
- readonly companyId: string & {
10369
- readonly?: "__readonly" | undefined;
10370
- };
10371
- readonly resourceGroupIds: string[];
10372
- readonly versions: (string | {
10373
- readonly companyId: string & {
10374
- readonly?: "__readonly" | undefined;
10375
- };
10376
- readonly state: import("./definitions").DatagraphEntityVersionState & {
10377
- readonly?: "__readonly" | undefined;
10378
- };
10379
- _id: string;
10380
- __v: number;
10381
- readonly definition: {
10382
- readonly?: "__readonly" | undefined;
10314
+ validation: {
10315
+ success: true;
10316
+ data: {
10383
10317
  name: string;
10384
- options: {
10318
+ description?: string | undefined;
10319
+ relations?: {
10320
+ description?: string | undefined;
10321
+ type: "Relation";
10322
+ columns: string[];
10323
+ reference: {
10324
+ datasourceId: string;
10325
+ table: string;
10326
+ columns: string[];
10327
+ };
10328
+ }[] | undefined;
10329
+ datasourceId: string;
10330
+ indexes?: {
10331
+ description?: string | undefined;
10332
+ type: "Index";
10333
+ columns: string[];
10334
+ }[] | undefined;
10335
+ columns: {
10385
10336
  name: string;
10386
- index: number;
10387
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10388
- shortDescription: string;
10389
- fullDescription: string | null;
10337
+ description?: string | undefined;
10338
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10339
+ default?: string | number | boolean | undefined;
10340
+ nullable: boolean;
10390
10341
  }[];
10391
- sql: string | null;
10392
- readonly answers: {
10342
+ virtualColumns?: {
10343
+ query: string;
10393
10344
  name: string;
10394
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10345
+ description?: string | undefined;
10346
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10347
+ nullable: boolean;
10348
+ }[] | undefined;
10349
+ uniqueKeys?: {
10350
+ description?: string | undefined;
10351
+ type: "UniqueKey";
10352
+ columns: string[];
10353
+ }[] | undefined;
10354
+ }[];
10355
+ } | {
10356
+ success: false;
10357
+ error: {
10358
+ issues: {
10359
+ path: (string | number)[];
10360
+ code: string;
10361
+ message: string;
10395
10362
  }[];
10396
10363
  };
10397
- })[];
10398
- readonly archivedAt: string & {
10399
- readonly?: "__readonly" | undefined;
10400
- };
10401
- readonly createdAt: string & {
10402
- readonly?: "__readonly" | undefined;
10403
- };
10404
- readonly updatedAt: string & {
10405
- readonly?: "__readonly" | undefined;
10406
10364
  };
10365
+ relations: {
10366
+ error?: string | undefined;
10367
+ fromDatasourceId: string;
10368
+ fromTable: string;
10369
+ fromColumn: string;
10370
+ fromDistinctCount: number | null;
10371
+ toDatasourceId: string;
10372
+ toTable: string;
10373
+ toColumn: string;
10374
+ toDistinctCount: number | null;
10375
+ matchCount: number | null;
10376
+ matchPercentage: number | null;
10377
+ }[];
10407
10378
  };
10408
10379
  program: string;
10409
10380
  version: string;
@@ -10411,58 +10382,87 @@ export default class {
10411
10382
  code?: number | undefined;
10412
10383
  message: string;
10413
10384
  }, any, {}>>;
10414
- deleteEntity: (params: {
10385
+ getSchema: (params: {
10386
+ id: string;
10387
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10388
+ status: "success";
10389
+ } & {
10390
+ datetime: string;
10391
+ data: {
10392
+ [x: string]: unknown;
10393
+ };
10394
+ program: string;
10395
+ version: string;
10396
+ status: string;
10397
+ code?: number | undefined;
10398
+ message: string;
10399
+ }, any, {}>>;
10400
+ updateSchema: (params: {
10401
+ id: string;
10402
+ }, data: {
10403
+ schema: {
10404
+ name: string;
10405
+ description?: string | undefined;
10406
+ relations?: {
10407
+ description?: string | undefined;
10408
+ type: "Relation";
10409
+ columns: string[];
10410
+ reference: {
10411
+ datasourceId: string;
10412
+ table: string;
10413
+ columns: string[];
10414
+ };
10415
+ }[] | undefined;
10416
+ datasourceId: string;
10417
+ indexes?: {
10418
+ description?: string | undefined;
10419
+ type: "Index";
10420
+ columns: string[];
10421
+ }[] | undefined;
10422
+ columns: {
10423
+ name: string;
10424
+ description?: string | undefined;
10425
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10426
+ default?: string | number | boolean | undefined;
10427
+ nullable: boolean;
10428
+ }[];
10429
+ virtualColumns?: {
10430
+ query: string;
10431
+ name: string;
10432
+ description?: string | undefined;
10433
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10434
+ nullable: boolean;
10435
+ }[] | undefined;
10436
+ uniqueKeys?: {
10437
+ description?: string | undefined;
10438
+ type: "UniqueKey";
10439
+ columns: string[];
10440
+ }[] | undefined;
10441
+ }[];
10442
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10443
+ status: "success";
10444
+ } & {
10445
+ datetime: string;
10446
+ data: {
10447
+ [x: string]: unknown;
10448
+ };
10449
+ program: string;
10450
+ version: string;
10451
+ status: string;
10452
+ code?: number | undefined;
10453
+ message: string;
10454
+ }, any, {}>>;
10455
+ deleteSchema: (params: {
10415
10456
  id: string;
10416
10457
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
10417
- publishEntity: (params: {
10458
+ publishSchema: (params: {
10418
10459
  id: string;
10419
10460
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10420
10461
  status: "success";
10421
10462
  } & {
10422
10463
  datetime: string;
10423
10464
  data: {
10424
- readonly id: string & {
10425
- readonly?: "__readonly" | undefined;
10426
- };
10427
- readonly companyId: string & {
10428
- readonly?: "__readonly" | undefined;
10429
- };
10430
- readonly resourceGroupIds: string[];
10431
- readonly versions: (string | {
10432
- readonly companyId: string & {
10433
- readonly?: "__readonly" | undefined;
10434
- };
10435
- readonly state: import("./definitions").DatagraphEntityVersionState & {
10436
- readonly?: "__readonly" | undefined;
10437
- };
10438
- _id: string;
10439
- __v: number;
10440
- readonly definition: {
10441
- readonly?: "__readonly" | undefined;
10442
- name: string;
10443
- options: {
10444
- name: string;
10445
- index: number;
10446
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10447
- shortDescription: string;
10448
- fullDescription: string | null;
10449
- }[];
10450
- sql: string | null;
10451
- readonly answers: {
10452
- name: string;
10453
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10454
- }[];
10455
- };
10456
- })[];
10457
- readonly archivedAt: string & {
10458
- readonly?: "__readonly" | undefined;
10459
- };
10460
- readonly createdAt: string & {
10461
- readonly?: "__readonly" | undefined;
10462
- };
10463
- readonly updatedAt: string & {
10464
- readonly?: "__readonly" | undefined;
10465
- };
10465
+ [x: string]: unknown;
10466
10466
  };
10467
10467
  program: string;
10468
10468
  version: string;