@rlvt/datasources-openapi-client 1.0.374 → 1.0.376

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,12 +16,6 @@ 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;
25
19
  private listDatagraphSchemas;
26
20
  private createSchema;
27
21
  private validateDatagraphSchema;
@@ -29,6 +23,12 @@ export default class {
29
23
  private updateDatagraphSchema;
30
24
  private deleteDatagraphSchema;
31
25
  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
- listEntities: (params: {
9871
+ listSchemas: (params: {
9872
9872
  page?: number | undefined;
9873
9873
  perPage?: number | undefined;
9874
9874
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
@@ -9880,9 +9880,6 @@ export default class {
9880
9880
  } & {
9881
9881
  datetime: string;
9882
9882
  data: {
9883
- readonly id: string & {
9884
- readonly?: "__readonly" | undefined;
9885
- };
9886
9883
  readonly companyId: string & {
9887
9884
  readonly?: "__readonly" | undefined;
9888
9885
  };
@@ -9891,37 +9888,52 @@ export default class {
9891
9888
  readonly companyId: string & {
9892
9889
  readonly?: "__readonly" | undefined;
9893
9890
  };
9894
- readonly state: import("./definitions").DatagraphEntityVersionState & {
9891
+ readonly state: import("./definitions").DatagraphSchemaVersionState & {
9895
9892
  readonly?: "__readonly" | undefined;
9896
9893
  };
9897
9894
  _id: string;
9898
9895
  __v: number;
9899
9896
  readonly definition: {
9900
- readonly?: "__readonly" | undefined;
9901
9897
  name: string;
9902
- options: {
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: {
9903
9911
  name: string;
9904
- index: number;
9905
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
9906
- shortDescription: string;
9907
- fullDescription: string | null;
9912
+ description?: string | undefined;
9913
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
9914
+ default?: string | number | boolean | undefined;
9915
+ nullable: boolean;
9908
9916
  }[];
9909
- sql: string | null;
9910
- readonly answers: {
9917
+ virtualColumns?: {
9918
+ query: string;
9911
9919
  name: string;
9912
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
9913
- }[];
9914
- };
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
+ }[];
9915
9935
  })[];
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
- };
9936
+ archivedAt: string | null;
9925
9937
  }[];
9926
9938
  program: string;
9927
9939
  version: string;
@@ -9929,65 +9941,52 @@ export default class {
9929
9941
  code?: number | undefined;
9930
9942
  message: string;
9931
9943
  }, any, {}>>;
9932
- createEntity: (params: Record<string, never>, data: {
9933
- entity: {
9944
+ createSchema: (params: Record<string, never>, data: {
9945
+ schema: {
9934
9946
  name: string;
9935
- options: {
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: {
9936
9960
  name: string;
9937
- index: number;
9938
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
9939
- shortDescription: string;
9940
- fullDescription: string | null;
9961
+ description?: string | undefined;
9962
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
9963
+ default?: string | number | boolean | undefined;
9964
+ nullable: boolean;
9941
9965
  }[];
9942
- sql: string | null;
9943
- };
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
+ }[];
9944
9984
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
9945
9985
  status: "success";
9946
9986
  } & {
9947
9987
  datetime: string;
9948
9988
  data: {
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
- };
9989
+ [x: string]: unknown;
9991
9990
  };
9992
9991
  program: string;
9993
9992
  version: string;
@@ -9995,55 +9994,77 @@ export default class {
9995
9994
  code?: number | undefined;
9996
9995
  message: string;
9997
9996
  }, any, {}>>;
9998
- getEntity: (params: {
9999
- id: string;
9997
+ validateSchema: (params: Record<string, never>, data: {
9998
+ schema: unknown;
10000
9999
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10001
10000
  status: "success";
10002
10001
  } & {
10003
10002
  datetime: string;
10004
10003
  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;
10004
+ validation: {
10005
+ success: true;
10006
+ data: {
10023
10007
  name: string;
10024
- options: {
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: {
10025
10021
  name: string;
10026
- index: number;
10027
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10028
- shortDescription: string;
10029
- fullDescription: string | null;
10022
+ description?: string | undefined;
10023
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10024
+ default?: string | number | boolean | undefined;
10025
+ nullable: boolean;
10030
10026
  }[];
10031
- sql: string | null;
10032
- readonly answers: {
10027
+ virtualColumns?: {
10028
+ query: string;
10033
10029
  name: string;
10034
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
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;
10035
10052
  }[];
10036
10053
  };
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;
10046
10054
  };
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
+ }[];
10047
10068
  };
10048
10069
  program: string;
10049
10070
  version: string;
@@ -10051,22 +10072,104 @@ export default class {
10051
10072
  code?: number | undefined;
10052
10073
  message: string;
10053
10074
  }, any, {}>>;
10054
- updateEntity: (params: {
10075
+ getSchema: (params: {
10055
10076
  id: string;
10056
- }, data: {
10057
- entity: {
10058
- name: string;
10059
- options: {
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: {
10091
+ id: string;
10092
+ }, data: {
10093
+ schema: {
10094
+ 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: {
10060
10108
  name: string;
10061
- index: number;
10062
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10063
- shortDescription: string;
10064
- fullDescription: string | null;
10109
+ description?: string | undefined;
10110
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10111
+ default?: string | number | boolean | undefined;
10112
+ nullable: boolean;
10065
10113
  }[];
10066
- sql: string | null;
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;
10067
10138
  };
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;
10068
10150
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10069
10151
  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
+ name?: string | undefined;
10165
+ page?: number | undefined;
10166
+ perPage?: number | undefined;
10167
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10168
+ paginationCount: number;
10169
+ paginationPage: number;
10170
+ paginationLimit: number;
10171
+ } & {
10172
+ status: "success";
10070
10173
  } & {
10071
10174
  datetime: string;
10072
10175
  data: {
@@ -10095,11 +10198,12 @@ export default class {
10095
10198
  primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10096
10199
  shortDescription: string;
10097
10200
  fullDescription: string | null;
10201
+ optional?: boolean | undefined;
10098
10202
  }[];
10099
10203
  sql: string | null;
10100
10204
  readonly answers: {
10101
10205
  name: string;
10102
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10206
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10103
10207
  }[];
10104
10208
  };
10105
10209
  })[];
@@ -10112,18 +10216,26 @@ export default class {
10112
10216
  readonly updatedAt: string & {
10113
10217
  readonly?: "__readonly" | undefined;
10114
10218
  };
10115
- };
10219
+ }[];
10116
10220
  program: string;
10117
10221
  version: string;
10118
10222
  status: string;
10119
10223
  code?: number | undefined;
10120
10224
  message: string;
10121
10225
  }, any, {}>>;
10122
- deleteEntity: (params: {
10123
- id: string;
10124
- }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
10125
- publishEntity: (params: {
10126
- id: string;
10226
+ createEntity: (params: Record<string, never>, data: {
10227
+ entity: {
10228
+ name: string;
10229
+ options: {
10230
+ name: string;
10231
+ index: number;
10232
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10233
+ shortDescription: string;
10234
+ fullDescription: string | null;
10235
+ optional?: boolean | undefined;
10236
+ }[];
10237
+ sql: string | null;
10238
+ };
10127
10239
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10128
10240
  status: "success";
10129
10241
  } & {
@@ -10154,11 +10266,12 @@ export default class {
10154
10266
  primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10155
10267
  shortDescription: string;
10156
10268
  fullDescription: string | null;
10269
+ optional?: boolean | undefined;
10157
10270
  }[];
10158
10271
  sql: string | null;
10159
10272
  readonly answers: {
10160
10273
  name: string;
10161
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10274
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10162
10275
  }[];
10163
10276
  };
10164
10277
  })[];
@@ -10178,18 +10291,16 @@ export default class {
10178
10291
  code?: number | undefined;
10179
10292
  message: string;
10180
10293
  }, any, {}>>;
10181
- listSchemas: (params: {
10182
- page?: number | undefined;
10183
- perPage?: number | undefined;
10294
+ getEntity: (params: {
10295
+ id: string;
10184
10296
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10185
- paginationCount: number;
10186
- paginationPage: number;
10187
- paginationLimit: number;
10188
- } & {
10189
10297
  status: "success";
10190
10298
  } & {
10191
10299
  datetime: string;
10192
10300
  data: {
10301
+ readonly id: string & {
10302
+ readonly?: "__readonly" | undefined;
10303
+ };
10193
10304
  readonly companyId: string & {
10194
10305
  readonly?: "__readonly" | undefined;
10195
10306
  };
@@ -10198,253 +10309,108 @@ export default class {
10198
10309
  readonly companyId: string & {
10199
10310
  readonly?: "__readonly" | undefined;
10200
10311
  };
10201
- readonly state: import("./definitions").DatagraphSchemaVersionState & {
10312
+ readonly state: import("./definitions").DatagraphEntityVersionState & {
10202
10313
  readonly?: "__readonly" | undefined;
10203
10314
  };
10204
10315
  _id: string;
10205
10316
  __v: number;
10206
10317
  readonly definition: {
10318
+ readonly?: "__readonly" | undefined;
10207
10319
  name: string;
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: {
10320
+ options: {
10226
10321
  name: string;
10227
- description?: string | undefined;
10228
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10229
- default?: string | number | boolean | undefined;
10230
- nullable: boolean;
10322
+ index: number;
10323
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10324
+ shortDescription: string;
10325
+ fullDescription: string | null;
10326
+ optional?: boolean | undefined;
10231
10327
  }[];
10232
- virtualColumns?: {
10233
- query: string;
10328
+ sql: string | null;
10329
+ readonly answers: {
10234
10330
  name: string;
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
- }[];
10331
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10332
+ }[];
10333
+ };
10245
10334
  })[];
10246
- archivedAt: string | null;
10247
- }[];
10335
+ readonly archivedAt: string & {
10336
+ readonly?: "__readonly" | undefined;
10337
+ };
10338
+ readonly createdAt: string & {
10339
+ readonly?: "__readonly" | undefined;
10340
+ };
10341
+ readonly updatedAt: string & {
10342
+ readonly?: "__readonly" | undefined;
10343
+ };
10344
+ };
10248
10345
  program: string;
10249
10346
  version: string;
10250
10347
  status: string;
10251
10348
  code?: number | undefined;
10252
10349
  message: string;
10253
10350
  }, any, {}>>;
10254
- createSchema: (params: Record<string, never>, data: {
10255
- schema: {
10351
+ updateEntity: (params: {
10352
+ id: string;
10353
+ }, data: {
10354
+ entity: {
10256
10355
  name: string;
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: {
10356
+ options: {
10275
10357
  name: string;
10276
- description?: string | undefined;
10277
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10278
- default?: string | number | boolean | undefined;
10279
- nullable: boolean;
10358
+ index: number;
10359
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10360
+ shortDescription: string;
10361
+ fullDescription: string | null;
10362
+ optional?: boolean | undefined;
10280
10363
  }[];
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;
10364
+ sql: string | null;
10300
10365
  };
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;
10309
10366
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10310
10367
  status: "success";
10311
10368
  } & {
10312
10369
  datetime: string;
10313
10370
  data: {
10314
- validation: {
10315
- success: true;
10316
- data: {
10371
+ readonly id: string & {
10372
+ readonly?: "__readonly" | undefined;
10373
+ };
10374
+ readonly companyId: string & {
10375
+ readonly?: "__readonly" | undefined;
10376
+ };
10377
+ readonly resourceGroupIds: string[];
10378
+ readonly versions: (string | {
10379
+ readonly companyId: string & {
10380
+ readonly?: "__readonly" | undefined;
10381
+ };
10382
+ readonly state: import("./definitions").DatagraphEntityVersionState & {
10383
+ readonly?: "__readonly" | undefined;
10384
+ };
10385
+ _id: string;
10386
+ __v: number;
10387
+ readonly definition: {
10388
+ readonly?: "__readonly" | undefined;
10317
10389
  name: string;
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: {
10390
+ options: {
10336
10391
  name: string;
10337
- description?: string | undefined;
10338
- type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
10339
- default?: string | number | boolean | undefined;
10340
- nullable: boolean;
10392
+ index: number;
10393
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10394
+ shortDescription: string;
10395
+ fullDescription: string | null;
10396
+ optional?: boolean | undefined;
10341
10397
  }[];
10342
- virtualColumns?: {
10343
- query: string;
10398
+ sql: string | null;
10399
+ readonly answers: {
10344
10400
  name: string;
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;
10401
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10362
10402
  }[];
10363
10403
  };
10404
+ })[];
10405
+ readonly archivedAt: string & {
10406
+ readonly?: "__readonly" | undefined;
10407
+ };
10408
+ readonly createdAt: string & {
10409
+ readonly?: "__readonly" | undefined;
10410
+ };
10411
+ readonly updatedAt: string & {
10412
+ readonly?: "__readonly" | undefined;
10364
10413
  };
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
- }[];
10378
- };
10379
- program: string;
10380
- version: string;
10381
- status: string;
10382
- code?: number | undefined;
10383
- message: string;
10384
- }, any, {}>>;
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
10414
  };
10449
10415
  program: string;
10450
10416
  version: string;
@@ -10452,17 +10418,59 @@ export default class {
10452
10418
  code?: number | undefined;
10453
10419
  message: string;
10454
10420
  }, any, {}>>;
10455
- deleteSchema: (params: {
10421
+ deleteEntity: (params: {
10456
10422
  id: string;
10457
10423
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
10458
- publishSchema: (params: {
10424
+ publishEntity: (params: {
10459
10425
  id: string;
10460
10426
  }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
10461
10427
  status: "success";
10462
10428
  } & {
10463
10429
  datetime: string;
10464
10430
  data: {
10465
- [x: string]: unknown;
10431
+ readonly id: string & {
10432
+ readonly?: "__readonly" | undefined;
10433
+ };
10434
+ readonly companyId: string & {
10435
+ readonly?: "__readonly" | undefined;
10436
+ };
10437
+ readonly resourceGroupIds: string[];
10438
+ readonly versions: (string | {
10439
+ readonly companyId: string & {
10440
+ readonly?: "__readonly" | undefined;
10441
+ };
10442
+ readonly state: import("./definitions").DatagraphEntityVersionState & {
10443
+ readonly?: "__readonly" | undefined;
10444
+ };
10445
+ _id: string;
10446
+ __v: number;
10447
+ readonly definition: {
10448
+ readonly?: "__readonly" | undefined;
10449
+ name: string;
10450
+ options: {
10451
+ name: string;
10452
+ index: number;
10453
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
10454
+ shortDescription: string;
10455
+ fullDescription: string | null;
10456
+ optional?: boolean | undefined;
10457
+ }[];
10458
+ sql: string | null;
10459
+ readonly answers: {
10460
+ name: string;
10461
+ type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
10462
+ }[];
10463
+ };
10464
+ })[];
10465
+ readonly archivedAt: string & {
10466
+ readonly?: "__readonly" | undefined;
10467
+ };
10468
+ readonly createdAt: string & {
10469
+ readonly?: "__readonly" | undefined;
10470
+ };
10471
+ readonly updatedAt: string & {
10472
+ readonly?: "__readonly" | undefined;
10473
+ };
10466
10474
  };
10467
10475
  program: string;
10468
10476
  version: string;