@@ -26,6 +26,13 @@ export type Scalars = {
26
26
Upload : { input : any ; output : any ; }
27
27
} ;
28
28
29
+ export type AisqlQueryResult = {
30
+ __typename ?: 'AISQLQueryResult' ;
31
+ queryFailedErrorMessage ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
32
+ sqlQuery : Scalars [ 'String' ] [ 'output' ] ;
33
+ sqlQueryResult ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
34
+ } ;
35
+
29
36
export type ActivateWorkspaceInput = {
30
37
displayName ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
31
38
} ;
@@ -333,7 +340,6 @@ export enum FieldMetadataType {
333
340
Numeric = 'NUMERIC' ,
334
341
Phone = 'PHONE' ,
335
342
Position = 'POSITION' ,
336
- Probability = 'PROBABILITY' ,
337
343
Rating = 'RATING' ,
338
344
RawJson = 'RAW_JSON' ,
339
345
Relation = 'RELATION' ,
@@ -346,6 +352,7 @@ export enum FileFolder {
346
352
Attachment = 'Attachment' ,
347
353
PersonPicture = 'PersonPicture' ,
348
354
ProfilePicture = 'ProfilePicture' ,
355
+ ServerlessFunction = 'ServerlessFunction' ,
349
356
WorkspaceLogo = 'WorkspaceLogo'
350
357
}
351
358
@@ -398,6 +405,7 @@ export type Mutation = {
398
405
createOneObject : Object ;
399
406
createOneRelation : Relation ;
400
407
createOneRemoteServer : RemoteServer ;
408
+ createOneServerlessFunction : ServerlessFunction ;
401
409
deleteCurrentWorkspace : Workspace ;
402
410
deleteOneField : Field ;
403
411
deleteOneObject : Object ;
@@ -408,6 +416,7 @@ export type Mutation = {
408
416
emailPasswordResetLink : EmailPasswordResetLink ;
409
417
enablePostgresProxy : PostgresCredentials ;
410
418
exchangeAuthorizationCode : ExchangeAuthCode ;
419
+ executeOneServerlessFunction : ServerlessFunctionExecutionResult ;
411
420
generateApiKeyToken : ApiKeyToken ;
412
421
generateJWT : AuthTokens ;
413
422
generateTransientToken : TransientToken ;
@@ -489,6 +498,12 @@ export type MutationCreateOneRemoteServerArgs = {
489
498
} ;
490
499
491
500
501
+ export type MutationCreateOneServerlessFunctionArgs = {
502
+ file : Scalars [ 'Upload' ] [ 'input' ] ;
503
+ name : Scalars [ 'String' ] [ 'input' ] ;
504
+ } ;
505
+
506
+
492
507
export type MutationDeleteOneFieldArgs = {
493
508
input : DeleteOneFieldInput ;
494
509
} ;
@@ -521,6 +536,12 @@ export type MutationExchangeAuthorizationCodeArgs = {
521
536
} ;
522
537
523
538
539
+ export type MutationExecuteOneServerlessFunctionArgs = {
540
+ name : Scalars [ 'String' ] [ 'input' ] ;
541
+ payload ?: InputMaybe < Scalars [ 'JSON' ] [ 'input' ] > ;
542
+ } ;
543
+
544
+
524
545
export type MutationGenerateApiKeyTokenArgs = {
525
546
apiKeyId : Scalars [ 'String' ] [ 'input' ] ;
526
547
expiresAt : Scalars [ 'String' ] [ 'input' ] ;
@@ -708,6 +729,7 @@ export type Query = {
708
729
findManyRemoteServersByType : Array < RemoteServer > ;
709
730
findOneRemoteServerById : RemoteServer ;
710
731
findWorkspaceFromInviteHash : Workspace ;
732
+ getAISQLQuery : AisqlQueryResult ;
711
733
getPostgresCredentials ?: Maybe < PostgresCredentials > ;
712
734
getProductPrices : ProductPricesEntity ;
713
735
getTimelineCalendarEventsFromCompanyId : TimelineCalendarEventsWithTotal ;
@@ -718,6 +740,8 @@ export type Query = {
718
740
objects : ObjectConnection ;
719
741
relation : Relation ;
720
742
relations : RelationConnection ;
743
+ serverlessFunction : ServerlessFunction ;
744
+ serverlessFunctions : ServerlessFunctionConnection ;
721
745
validatePasswordResetToken : ValidatePasswordResetToken ;
722
746
} ;
723
747
@@ -769,6 +793,11 @@ export type QueryFindWorkspaceFromInviteHashArgs = {
769
793
} ;
770
794
771
795
796
+ export type QueryGetAisqlQueryArgs = {
797
+ text : Scalars [ 'String' ] [ 'input' ] ;
798
+ } ;
799
+
800
+
772
801
export type QueryGetProductPricesArgs = {
773
802
product : Scalars [ 'String' ] [ 'input' ] ;
774
803
} ;
@@ -823,6 +852,18 @@ export type QueryRelationsArgs = {
823
852
} ;
824
853
825
854
855
+ export type QueryServerlessFunctionArgs = {
856
+ id : Scalars [ 'UUID' ] [ 'input' ] ;
857
+ } ;
858
+
859
+
860
+ export type QueryServerlessFunctionsArgs = {
861
+ filter ?: ServerlessFunctionFilter ;
862
+ paging ?: CursorPaging ;
863
+ sorting ?: Array < ServerlessFunctionSort > ;
864
+ } ;
865
+
866
+
826
867
export type QueryValidatePasswordResetTokenArgs = {
827
868
passwordResetToken : Scalars [ 'String' ] [ 'input' ] ;
828
869
} ;
@@ -916,6 +957,26 @@ export type Sentry = {
916
957
release ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
917
958
} ;
918
959
960
+ export type ServerlessFunctionConnection = {
961
+ __typename ?: 'ServerlessFunctionConnection' ;
962
+ /** Array of edges. */
963
+ edges : Array < ServerlessFunctionEdge > ;
964
+ /** Paging information */
965
+ pageInfo : PageInfo ;
966
+ } ;
967
+
968
+ export type ServerlessFunctionExecutionResult = {
969
+ __typename ?: 'ServerlessFunctionExecutionResult' ;
970
+ /** Execution result in JSON format */
971
+ result : Scalars [ 'JSON' ] [ 'output' ] ;
972
+ } ;
973
+
974
+ /** SyncStatus of the serverlessFunction */
975
+ export enum ServerlessFunctionSyncStatus {
976
+ NotReady = 'NOT_READY' ,
977
+ Ready = 'READY'
978
+ }
979
+
919
980
export type SessionEntity = {
920
981
__typename ?: 'SessionEntity' ;
921
982
url ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
@@ -1346,6 +1407,39 @@ export type RelationEdge = {
1346
1407
node : Relation ;
1347
1408
} ;
1348
1409
1410
+ export type ServerlessFunction = {
1411
+ __typename ?: 'serverlessFunction' ;
1412
+ createdAt : Scalars [ 'DateTime' ] [ 'output' ] ;
1413
+ id : Scalars [ 'UUID' ] [ 'output' ] ;
1414
+ name : Scalars [ 'String' ] [ 'output' ] ;
1415
+ syncStatus : ServerlessFunctionSyncStatus ;
1416
+ updatedAt : Scalars [ 'DateTime' ] [ 'output' ] ;
1417
+ } ;
1418
+
1419
+ export type ServerlessFunctionEdge = {
1420
+ __typename ?: 'serverlessFunctionEdge' ;
1421
+ /** Cursor for this node. */
1422
+ cursor : Scalars [ 'ConnectionCursor' ] [ 'output' ] ;
1423
+ /** The node containing the serverlessFunction */
1424
+ node : ServerlessFunction ;
1425
+ } ;
1426
+
1427
+ export type ServerlessFunctionFilter = {
1428
+ and ?: InputMaybe < Array < ServerlessFunctionFilter > > ;
1429
+ id ?: InputMaybe < UuidFilterComparison > ;
1430
+ or ?: InputMaybe < Array < ServerlessFunctionFilter > > ;
1431
+ } ;
1432
+
1433
+ export type ServerlessFunctionSort = {
1434
+ direction : SortDirection ;
1435
+ field : ServerlessFunctionSortFields ;
1436
+ nulls ?: InputMaybe < SortNulls > ;
1437
+ } ;
1438
+
1439
+ export enum ServerlessFunctionSortFields {
1440
+ Id = 'id'
1441
+ }
1442
+
1349
1443
export type RemoteServerFieldsFragment = { __typename ?: 'RemoteServer' , id : string , createdAt : any , foreignDataWrapperId : string , foreignDataWrapperOptions ?: any | null , foreignDataWrapperType : string , updatedAt : any , schema ?: string | null , label : string , userMappingOptions ?: { __typename ?: 'UserMappingOptionsUser' , user ?: string | null } | null } ;
1350
1444
1351
1445
export type RemoteTableFieldsFragment = { __typename ?: 'RemoteTable' , id ?: any | null , name : string , schema ?: string | null , status : RemoteTableStatus , schemaPendingUpdates ?: Array < DistantTableUpdate > | null } ;
0 commit comments