@rlvt/datasources-openapi-client 1.0.394 → 1.0.396

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