wabe 0.5.1 → 0.5.3

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.
@@ -73,12 +73,28 @@ export type Scalars = {
73
73
  output: any;
74
74
  };
75
75
  };
76
+ export declare enum RoleEnum {
77
+ Admin = "Admin",
78
+ Client = "Client"
79
+ }
76
80
  export declare enum AuthenticationProvider {
77
81
  Google = "Google"
78
82
  }
79
83
  export declare enum SecondaryFactor {
80
84
  EmailOtp = "EmailOTP"
81
85
  }
86
+ export declare enum PaymentMode {
87
+ Payment = "payment",
88
+ Subscription = "subscription"
89
+ }
90
+ export declare enum PaymentReccuringInterval {
91
+ Month = "month",
92
+ Year = "year"
93
+ }
94
+ export declare enum Currency {
95
+ Eur = "eur",
96
+ Usd = "usd"
97
+ }
82
98
  /** User class */
83
99
  export type User = {
84
100
  __typename?: 'User';
@@ -504,6 +520,92 @@ export type RoleRelationInput = {
504
520
  remove?: InputMaybe<Array<Scalars['ID']['input']>>;
505
521
  createAndAdd?: InputMaybe<Array<RoleCreateFieldsInput>>;
506
522
  };
523
+ export type Payment = {
524
+ __typename?: 'Payment';
525
+ id: Scalars['ID']['output'];
526
+ user?: Maybe<User>;
527
+ amount: Scalars['Int']['output'];
528
+ currency: Currency;
529
+ acl?: Maybe<PaymentAclObject>;
530
+ createdAt?: Maybe<Scalars['Date']['output']>;
531
+ updatedAt?: Maybe<Scalars['Date']['output']>;
532
+ search?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
533
+ };
534
+ export type PaymentAclObject = {
535
+ __typename?: 'PaymentACLObject';
536
+ users?: Maybe<Array<Maybe<PaymentAclObjectUsersAcl>>>;
537
+ roles?: Maybe<Array<Maybe<PaymentAclObjectRolesAcl>>>;
538
+ };
539
+ export type PaymentAclObjectUsersAcl = {
540
+ __typename?: 'PaymentACLObjectUsersACL';
541
+ userId: Scalars['String']['output'];
542
+ read: Scalars['Boolean']['output'];
543
+ write: Scalars['Boolean']['output'];
544
+ };
545
+ export type PaymentAclObjectRolesAcl = {
546
+ __typename?: 'PaymentACLObjectRolesACL';
547
+ roleId: Scalars['String']['output'];
548
+ read: Scalars['Boolean']['output'];
549
+ write: Scalars['Boolean']['output'];
550
+ };
551
+ export type PaymentInput = {
552
+ user?: InputMaybe<UserPointerInput>;
553
+ amount: Scalars['Int']['input'];
554
+ currency: Currency;
555
+ acl?: InputMaybe<PaymentAclObjectInput>;
556
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
557
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
558
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
559
+ };
560
+ export type PaymentAclObjectInput = {
561
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclInput>>>;
562
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclInput>>>;
563
+ };
564
+ export type PaymentAclObjectUsersAclInput = {
565
+ userId: Scalars['String']['input'];
566
+ read: Scalars['Boolean']['input'];
567
+ write: Scalars['Boolean']['input'];
568
+ };
569
+ export type PaymentAclObjectRolesAclInput = {
570
+ roleId: Scalars['String']['input'];
571
+ read: Scalars['Boolean']['input'];
572
+ write: Scalars['Boolean']['input'];
573
+ };
574
+ /** Input to link an object to a pointer Payment */
575
+ export type PaymentPointerInput = {
576
+ unlink?: InputMaybe<Scalars['Boolean']['input']>;
577
+ link?: InputMaybe<Scalars['ID']['input']>;
578
+ createAndLink?: InputMaybe<PaymentCreateFieldsInput>;
579
+ };
580
+ export type PaymentCreateFieldsInput = {
581
+ user?: InputMaybe<UserPointerInput>;
582
+ amount?: InputMaybe<Scalars['Int']['input']>;
583
+ currency?: InputMaybe<Currency>;
584
+ acl?: InputMaybe<PaymentAclObjectCreateFieldsInput>;
585
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
586
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
587
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
588
+ };
589
+ export type PaymentAclObjectCreateFieldsInput = {
590
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclCreateFieldsInput>>>;
591
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclCreateFieldsInput>>>;
592
+ };
593
+ export type PaymentAclObjectUsersAclCreateFieldsInput = {
594
+ userId?: InputMaybe<Scalars['String']['input']>;
595
+ read?: InputMaybe<Scalars['Boolean']['input']>;
596
+ write?: InputMaybe<Scalars['Boolean']['input']>;
597
+ };
598
+ export type PaymentAclObjectRolesAclCreateFieldsInput = {
599
+ roleId?: InputMaybe<Scalars['String']['input']>;
600
+ read?: InputMaybe<Scalars['Boolean']['input']>;
601
+ write?: InputMaybe<Scalars['Boolean']['input']>;
602
+ };
603
+ /** Input to add a relation to the class Payment */
604
+ export type PaymentRelationInput = {
605
+ add?: InputMaybe<Array<Scalars['ID']['input']>>;
606
+ remove?: InputMaybe<Array<Scalars['ID']['input']>>;
607
+ createAndAdd?: InputMaybe<Array<PaymentCreateFieldsInput>>;
608
+ };
507
609
  export type Query = {
508
610
  __typename?: 'Query';
509
611
  /** User class */
@@ -516,9 +618,13 @@ export type Query = {
516
618
  _sessions: _SessionConnection;
517
619
  role?: Maybe<Role>;
518
620
  roles: RoleConnection;
621
+ payment?: Maybe<Payment>;
622
+ payments: PaymentConnection;
519
623
  /** Hello world description */
520
624
  helloWorld?: Maybe<Scalars['String']['output']>;
521
625
  me?: Maybe<MeOutput>;
626
+ /** Get invoices of a customer */
627
+ getInvoices: Array<Maybe<Invoice>>;
522
628
  };
523
629
  export type QueryUserArgs = {
524
630
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -527,6 +633,7 @@ export type QueryUsersArgs = {
527
633
  where?: InputMaybe<UserWhereInput>;
528
634
  offset?: InputMaybe<Scalars['Int']['input']>;
529
635
  first?: InputMaybe<Scalars['Int']['input']>;
636
+ order?: InputMaybe<Array<UserOrder>>;
530
637
  };
531
638
  export type QueryPostArgs = {
532
639
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -535,6 +642,7 @@ export type QueryPostsArgs = {
535
642
  where?: InputMaybe<PostWhereInput>;
536
643
  offset?: InputMaybe<Scalars['Int']['input']>;
537
644
  first?: InputMaybe<Scalars['Int']['input']>;
645
+ order?: InputMaybe<Array<PostOrder>>;
538
646
  };
539
647
  export type Query_SessionArgs = {
540
648
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -543,6 +651,7 @@ export type Query_SessionsArgs = {
543
651
  where?: InputMaybe<_SessionWhereInput>;
544
652
  offset?: InputMaybe<Scalars['Int']['input']>;
545
653
  first?: InputMaybe<Scalars['Int']['input']>;
654
+ order?: InputMaybe<Array<_SessionOrder>>;
546
655
  };
547
656
  export type QueryRoleArgs = {
548
657
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -551,10 +660,23 @@ export type QueryRolesArgs = {
551
660
  where?: InputMaybe<RoleWhereInput>;
552
661
  offset?: InputMaybe<Scalars['Int']['input']>;
553
662
  first?: InputMaybe<Scalars['Int']['input']>;
663
+ order?: InputMaybe<Array<RoleOrder>>;
664
+ };
665
+ export type QueryPaymentArgs = {
666
+ id?: InputMaybe<Scalars['ID']['input']>;
667
+ };
668
+ export type QueryPaymentsArgs = {
669
+ where?: InputMaybe<PaymentWhereInput>;
670
+ offset?: InputMaybe<Scalars['Int']['input']>;
671
+ first?: InputMaybe<Scalars['Int']['input']>;
672
+ order?: InputMaybe<Array<PaymentOrder>>;
554
673
  };
555
674
  export type QueryHelloWorldArgs = {
556
675
  name: Scalars['String']['input'];
557
676
  };
677
+ export type QueryGetInvoicesArgs = {
678
+ email: Scalars['Email']['input'];
679
+ };
558
680
  /** User class */
559
681
  export type UserWhereInput = {
560
682
  id?: InputMaybe<IdWhereInput>;
@@ -729,6 +851,34 @@ export type _SessionAclObjectRolesAclWhereInput = {
729
851
  OR?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
730
852
  AND?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
731
853
  };
854
+ export declare enum UserOrder {
855
+ NameAsc = "name_ASC",
856
+ NameDesc = "name_DESC",
857
+ AgeAsc = "age_ASC",
858
+ AgeDesc = "age_DESC",
859
+ AclAsc = "acl_ASC",
860
+ AclDesc = "acl_DESC",
861
+ CreatedAtAsc = "createdAt_ASC",
862
+ CreatedAtDesc = "createdAt_DESC",
863
+ UpdatedAtAsc = "updatedAt_ASC",
864
+ UpdatedAtDesc = "updatedAt_DESC",
865
+ SearchAsc = "search_ASC",
866
+ SearchDesc = "search_DESC",
867
+ AuthenticationAsc = "authentication_ASC",
868
+ AuthenticationDesc = "authentication_DESC",
869
+ ProviderAsc = "provider_ASC",
870
+ ProviderDesc = "provider_DESC",
871
+ IsOauthAsc = "isOauth_ASC",
872
+ IsOauthDesc = "isOauth_DESC",
873
+ EmailAsc = "email_ASC",
874
+ EmailDesc = "email_DESC",
875
+ VerifiedEmailAsc = "verifiedEmail_ASC",
876
+ VerifiedEmailDesc = "verifiedEmail_DESC",
877
+ RoleAsc = "role_ASC",
878
+ RoleDesc = "role_DESC",
879
+ SessionsAsc = "sessions_ASC",
880
+ SessionsDesc = "sessions_DESC"
881
+ }
732
882
  export type PostConnection = {
733
883
  __typename?: 'PostConnection';
734
884
  totalCount?: Maybe<Scalars['Int']['output']>;
@@ -775,6 +925,40 @@ export type PostAclObjectRolesAclWhereInput = {
775
925
  OR?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
776
926
  AND?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
777
927
  };
928
+ export declare enum PostOrder {
929
+ NameAsc = "name_ASC",
930
+ NameDesc = "name_DESC",
931
+ TestAsc = "test_ASC",
932
+ TestDesc = "test_DESC",
933
+ AclAsc = "acl_ASC",
934
+ AclDesc = "acl_DESC",
935
+ CreatedAtAsc = "createdAt_ASC",
936
+ CreatedAtDesc = "createdAt_DESC",
937
+ UpdatedAtAsc = "updatedAt_ASC",
938
+ UpdatedAtDesc = "updatedAt_DESC",
939
+ SearchAsc = "search_ASC",
940
+ SearchDesc = "search_DESC"
941
+ }
942
+ export declare enum _SessionOrder {
943
+ UserAsc = "user_ASC",
944
+ UserDesc = "user_DESC",
945
+ AccessTokenAsc = "accessToken_ASC",
946
+ AccessTokenDesc = "accessToken_DESC",
947
+ AccessTokenExpiresAtAsc = "accessTokenExpiresAt_ASC",
948
+ AccessTokenExpiresAtDesc = "accessTokenExpiresAt_DESC",
949
+ RefreshTokenAsc = "refreshToken_ASC",
950
+ RefreshTokenDesc = "refreshToken_DESC",
951
+ RefreshTokenExpiresAtAsc = "refreshTokenExpiresAt_ASC",
952
+ RefreshTokenExpiresAtDesc = "refreshTokenExpiresAt_DESC",
953
+ AclAsc = "acl_ASC",
954
+ AclDesc = "acl_DESC",
955
+ CreatedAtAsc = "createdAt_ASC",
956
+ CreatedAtDesc = "createdAt_DESC",
957
+ UpdatedAtAsc = "updatedAt_ASC",
958
+ UpdatedAtDesc = "updatedAt_DESC",
959
+ SearchAsc = "search_ASC",
960
+ SearchDesc = "search_DESC"
961
+ }
778
962
  export type RoleConnection = {
779
963
  __typename?: 'RoleConnection';
780
964
  totalCount?: Maybe<Scalars['Int']['output']>;
@@ -784,10 +968,91 @@ export type RoleEdge = {
784
968
  __typename?: 'RoleEdge';
785
969
  node: Role;
786
970
  };
971
+ export declare enum RoleOrder {
972
+ NameAsc = "name_ASC",
973
+ NameDesc = "name_DESC",
974
+ UsersAsc = "users_ASC",
975
+ UsersDesc = "users_DESC",
976
+ AclAsc = "acl_ASC",
977
+ AclDesc = "acl_DESC",
978
+ CreatedAtAsc = "createdAt_ASC",
979
+ CreatedAtDesc = "createdAt_DESC",
980
+ UpdatedAtAsc = "updatedAt_ASC",
981
+ UpdatedAtDesc = "updatedAt_DESC",
982
+ SearchAsc = "search_ASC",
983
+ SearchDesc = "search_DESC"
984
+ }
985
+ export type PaymentConnection = {
986
+ __typename?: 'PaymentConnection';
987
+ totalCount?: Maybe<Scalars['Int']['output']>;
988
+ edges?: Maybe<Array<Maybe<PaymentEdge>>>;
989
+ };
990
+ export type PaymentEdge = {
991
+ __typename?: 'PaymentEdge';
992
+ node: Payment;
993
+ };
994
+ export type PaymentWhereInput = {
995
+ id?: InputMaybe<IdWhereInput>;
996
+ user?: InputMaybe<UserWhereInput>;
997
+ amount?: InputMaybe<IntWhereInput>;
998
+ currency?: InputMaybe<AnyWhereInput>;
999
+ acl?: InputMaybe<PaymentAclObjectWhereInput>;
1000
+ createdAt?: InputMaybe<DateWhereInput>;
1001
+ updatedAt?: InputMaybe<DateWhereInput>;
1002
+ search?: InputMaybe<SearchWhereInput>;
1003
+ OR?: InputMaybe<Array<InputMaybe<PaymentWhereInput>>>;
1004
+ AND?: InputMaybe<Array<InputMaybe<PaymentWhereInput>>>;
1005
+ };
1006
+ export type PaymentAclObjectWhereInput = {
1007
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclWhereInput>>>;
1008
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclWhereInput>>>;
1009
+ OR?: InputMaybe<Array<InputMaybe<PaymentAclObjectWhereInput>>>;
1010
+ AND?: InputMaybe<Array<InputMaybe<PaymentAclObjectWhereInput>>>;
1011
+ };
1012
+ export type PaymentAclObjectUsersAclWhereInput = {
1013
+ userId?: InputMaybe<StringWhereInput>;
1014
+ read?: InputMaybe<BooleanWhereInput>;
1015
+ write?: InputMaybe<BooleanWhereInput>;
1016
+ OR?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclWhereInput>>>;
1017
+ AND?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclWhereInput>>>;
1018
+ };
1019
+ export type PaymentAclObjectRolesAclWhereInput = {
1020
+ roleId?: InputMaybe<StringWhereInput>;
1021
+ read?: InputMaybe<BooleanWhereInput>;
1022
+ write?: InputMaybe<BooleanWhereInput>;
1023
+ OR?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclWhereInput>>>;
1024
+ AND?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclWhereInput>>>;
1025
+ };
1026
+ export declare enum PaymentOrder {
1027
+ UserAsc = "user_ASC",
1028
+ UserDesc = "user_DESC",
1029
+ AmountAsc = "amount_ASC",
1030
+ AmountDesc = "amount_DESC",
1031
+ CurrencyAsc = "currency_ASC",
1032
+ CurrencyDesc = "currency_DESC",
1033
+ AclAsc = "acl_ASC",
1034
+ AclDesc = "acl_DESC",
1035
+ CreatedAtAsc = "createdAt_ASC",
1036
+ CreatedAtDesc = "createdAt_DESC",
1037
+ UpdatedAtAsc = "updatedAt_ASC",
1038
+ UpdatedAtDesc = "updatedAt_DESC",
1039
+ SearchAsc = "search_ASC",
1040
+ SearchDesc = "search_DESC"
1041
+ }
787
1042
  export type MeOutput = {
788
1043
  __typename?: 'MeOutput';
789
1044
  user?: Maybe<User>;
790
1045
  };
1046
+ export type Invoice = {
1047
+ __typename?: 'Invoice';
1048
+ amountDue: Scalars['Int']['output'];
1049
+ amountPaid: Scalars['Int']['output'];
1050
+ currency: Currency;
1051
+ id: Scalars['String']['output'];
1052
+ created: Scalars['Int']['output'];
1053
+ invoiceUrl: Scalars['String']['output'];
1054
+ isPaid: Scalars['Boolean']['output'];
1055
+ };
791
1056
  export type Mutation = {
792
1057
  __typename?: 'Mutation';
793
1058
  /** User class */
@@ -820,9 +1085,18 @@ export type Mutation = {
820
1085
  updateRoles: RoleConnection;
821
1086
  deleteRole?: Maybe<DeleteRolePayload>;
822
1087
  deleteRoles: RoleConnection;
1088
+ createPayment?: Maybe<CreatePaymentPayload>;
1089
+ createPayments: PaymentConnection;
1090
+ updatePayment?: Maybe<UpdatePaymentPayload>;
1091
+ updatePayments: PaymentConnection;
1092
+ deletePayment?: Maybe<DeletePaymentPayload>;
1093
+ deletePayments: PaymentConnection;
823
1094
  createMutation: Scalars['Boolean']['output'];
824
1095
  customMutation?: Maybe<Scalars['Int']['output']>;
825
1096
  secondCustomMutation?: Maybe<Scalars['Int']['output']>;
1097
+ /** Create a payment with the payment provider. Returns the url to redirect the user to pay */
1098
+ makePayment?: Maybe<Scalars['String']['output']>;
1099
+ cancelSubscription?: Maybe<Scalars['Boolean']['output']>;
826
1100
  /** Send basic email with text and html, returns the id of the email */
827
1101
  sendEmail?: Maybe<Scalars['String']['output']>;
828
1102
  signInWith?: Maybe<SignInWithOutput>;
@@ -903,6 +1177,24 @@ export type MutationDeleteRoleArgs = {
903
1177
  export type MutationDeleteRolesArgs = {
904
1178
  input: DeleteRolesInput;
905
1179
  };
1180
+ export type MutationCreatePaymentArgs = {
1181
+ input: CreatePaymentInput;
1182
+ };
1183
+ export type MutationCreatePaymentsArgs = {
1184
+ input: CreatePaymentsInput;
1185
+ };
1186
+ export type MutationUpdatePaymentArgs = {
1187
+ input: UpdatePaymentInput;
1188
+ };
1189
+ export type MutationUpdatePaymentsArgs = {
1190
+ input: UpdatePaymentsInput;
1191
+ };
1192
+ export type MutationDeletePaymentArgs = {
1193
+ input: DeletePaymentInput;
1194
+ };
1195
+ export type MutationDeletePaymentsArgs = {
1196
+ input: DeletePaymentsInput;
1197
+ };
906
1198
  export type MutationCreateMutationArgs = {
907
1199
  input: CreateMutationInput;
908
1200
  };
@@ -912,6 +1204,12 @@ export type MutationCustomMutationArgs = {
912
1204
  export type MutationSecondCustomMutationArgs = {
913
1205
  input: SecondCustomMutationInput;
914
1206
  };
1207
+ export type MutationMakePaymentArgs = {
1208
+ input: MakePaymentInput;
1209
+ };
1210
+ export type MutationCancelSubscriptionArgs = {
1211
+ input: CancelSubscriptionInput;
1212
+ };
915
1213
  export type MutationSendEmailArgs = {
916
1214
  input: SendEmailInput;
917
1215
  };
@@ -939,6 +1237,7 @@ export type CreateUsersInput = {
939
1237
  fields: Array<InputMaybe<UserCreateFieldsInput>>;
940
1238
  offset?: InputMaybe<Scalars['Int']['input']>;
941
1239
  first?: InputMaybe<Scalars['Int']['input']>;
1240
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
942
1241
  };
943
1242
  export type UpdateUserPayload = {
944
1243
  __typename?: 'UpdateUserPayload';
@@ -997,6 +1296,7 @@ export type UpdateUsersInput = {
997
1296
  where?: InputMaybe<UserWhereInput>;
998
1297
  offset?: InputMaybe<Scalars['Int']['input']>;
999
1298
  first?: InputMaybe<Scalars['Int']['input']>;
1299
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1000
1300
  };
1001
1301
  export type DeleteUserPayload = {
1002
1302
  __typename?: 'DeleteUserPayload';
@@ -1008,6 +1308,7 @@ export type DeleteUserInput = {
1008
1308
  };
1009
1309
  export type DeleteUsersInput = {
1010
1310
  where?: InputMaybe<UserWhereInput>;
1311
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1011
1312
  };
1012
1313
  export type CreatePostPayload = {
1013
1314
  __typename?: 'CreatePostPayload';
@@ -1021,6 +1322,7 @@ export type CreatePostsInput = {
1021
1322
  fields: Array<InputMaybe<PostCreateFieldsInput>>;
1022
1323
  offset?: InputMaybe<Scalars['Int']['input']>;
1023
1324
  first?: InputMaybe<Scalars['Int']['input']>;
1325
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1024
1326
  };
1025
1327
  export type UpdatePostPayload = {
1026
1328
  __typename?: 'UpdatePostPayload';
@@ -1058,6 +1360,7 @@ export type UpdatePostsInput = {
1058
1360
  where?: InputMaybe<PostWhereInput>;
1059
1361
  offset?: InputMaybe<Scalars['Int']['input']>;
1060
1362
  first?: InputMaybe<Scalars['Int']['input']>;
1363
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1061
1364
  };
1062
1365
  export type DeletePostPayload = {
1063
1366
  __typename?: 'DeletePostPayload';
@@ -1069,6 +1372,7 @@ export type DeletePostInput = {
1069
1372
  };
1070
1373
  export type DeletePostsInput = {
1071
1374
  where?: InputMaybe<PostWhereInput>;
1375
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1072
1376
  };
1073
1377
  export type Create_SessionPayload = {
1074
1378
  __typename?: 'Create_SessionPayload';
@@ -1082,6 +1386,7 @@ export type Create_SessionsInput = {
1082
1386
  fields: Array<InputMaybe<_SessionCreateFieldsInput>>;
1083
1387
  offset?: InputMaybe<Scalars['Int']['input']>;
1084
1388
  first?: InputMaybe<Scalars['Int']['input']>;
1389
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1085
1390
  };
1086
1391
  export type Update_SessionPayload = {
1087
1392
  __typename?: 'Update_SessionPayload';
@@ -1122,6 +1427,7 @@ export type Update_SessionsInput = {
1122
1427
  where?: InputMaybe<_SessionWhereInput>;
1123
1428
  offset?: InputMaybe<Scalars['Int']['input']>;
1124
1429
  first?: InputMaybe<Scalars['Int']['input']>;
1430
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1125
1431
  };
1126
1432
  export type Delete_SessionPayload = {
1127
1433
  __typename?: 'Delete_SessionPayload';
@@ -1133,6 +1439,7 @@ export type Delete_SessionInput = {
1133
1439
  };
1134
1440
  export type Delete_SessionsInput = {
1135
1441
  where?: InputMaybe<_SessionWhereInput>;
1442
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1136
1443
  };
1137
1444
  export type CreateRolePayload = {
1138
1445
  __typename?: 'CreateRolePayload';
@@ -1146,6 +1453,7 @@ export type CreateRolesInput = {
1146
1453
  fields: Array<InputMaybe<RoleCreateFieldsInput>>;
1147
1454
  offset?: InputMaybe<Scalars['Int']['input']>;
1148
1455
  first?: InputMaybe<Scalars['Int']['input']>;
1456
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1149
1457
  };
1150
1458
  export type UpdateRolePayload = {
1151
1459
  __typename?: 'UpdateRolePayload';
@@ -1183,6 +1491,7 @@ export type UpdateRolesInput = {
1183
1491
  where?: InputMaybe<RoleWhereInput>;
1184
1492
  offset?: InputMaybe<Scalars['Int']['input']>;
1185
1493
  first?: InputMaybe<Scalars['Int']['input']>;
1494
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1186
1495
  };
1187
1496
  export type DeleteRolePayload = {
1188
1497
  __typename?: 'DeleteRolePayload';
@@ -1194,6 +1503,72 @@ export type DeleteRoleInput = {
1194
1503
  };
1195
1504
  export type DeleteRolesInput = {
1196
1505
  where?: InputMaybe<RoleWhereInput>;
1506
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1507
+ };
1508
+ export type CreatePaymentPayload = {
1509
+ __typename?: 'CreatePaymentPayload';
1510
+ payment?: Maybe<Payment>;
1511
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1512
+ };
1513
+ export type CreatePaymentInput = {
1514
+ fields?: InputMaybe<PaymentCreateFieldsInput>;
1515
+ };
1516
+ export type CreatePaymentsInput = {
1517
+ fields: Array<InputMaybe<PaymentCreateFieldsInput>>;
1518
+ offset?: InputMaybe<Scalars['Int']['input']>;
1519
+ first?: InputMaybe<Scalars['Int']['input']>;
1520
+ order?: InputMaybe<Array<InputMaybe<PaymentOrder>>>;
1521
+ };
1522
+ export type UpdatePaymentPayload = {
1523
+ __typename?: 'UpdatePaymentPayload';
1524
+ payment?: Maybe<Payment>;
1525
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1526
+ };
1527
+ export type UpdatePaymentInput = {
1528
+ id?: InputMaybe<Scalars['ID']['input']>;
1529
+ fields?: InputMaybe<PaymentUpdateFieldsInput>;
1530
+ };
1531
+ export type PaymentUpdateFieldsInput = {
1532
+ user?: InputMaybe<UserPointerInput>;
1533
+ amount?: InputMaybe<Scalars['Int']['input']>;
1534
+ currency?: InputMaybe<Currency>;
1535
+ acl?: InputMaybe<PaymentAclObjectUpdateFieldsInput>;
1536
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
1537
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
1538
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1539
+ };
1540
+ export type PaymentAclObjectUpdateFieldsInput = {
1541
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclUpdateFieldsInput>>>;
1542
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclUpdateFieldsInput>>>;
1543
+ };
1544
+ export type PaymentAclObjectUsersAclUpdateFieldsInput = {
1545
+ userId?: InputMaybe<Scalars['String']['input']>;
1546
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1547
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1548
+ };
1549
+ export type PaymentAclObjectRolesAclUpdateFieldsInput = {
1550
+ roleId?: InputMaybe<Scalars['String']['input']>;
1551
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1552
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1553
+ };
1554
+ export type UpdatePaymentsInput = {
1555
+ fields?: InputMaybe<PaymentUpdateFieldsInput>;
1556
+ where?: InputMaybe<PaymentWhereInput>;
1557
+ offset?: InputMaybe<Scalars['Int']['input']>;
1558
+ first?: InputMaybe<Scalars['Int']['input']>;
1559
+ order?: InputMaybe<Array<InputMaybe<PaymentOrder>>>;
1560
+ };
1561
+ export type DeletePaymentPayload = {
1562
+ __typename?: 'DeletePaymentPayload';
1563
+ payment?: Maybe<Payment>;
1564
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1565
+ };
1566
+ export type DeletePaymentInput = {
1567
+ id?: InputMaybe<Scalars['ID']['input']>;
1568
+ };
1569
+ export type DeletePaymentsInput = {
1570
+ where?: InputMaybe<PaymentWhereInput>;
1571
+ order?: InputMaybe<Array<InputMaybe<PaymentOrder>>>;
1197
1572
  };
1198
1573
  export type CreateMutationInput = {
1199
1574
  name: Scalars['Int']['input'];
@@ -1209,6 +1584,23 @@ export type SecondCustomMutationSumInput = {
1209
1584
  a: Scalars['Int']['input'];
1210
1585
  b: Scalars['Int']['input'];
1211
1586
  };
1587
+ export type MakePaymentInput = {
1588
+ customerEmail?: InputMaybe<Scalars['Email']['input']>;
1589
+ paymentMode: PaymentMode;
1590
+ successUrl: Scalars['String']['input'];
1591
+ cancelUrl: Scalars['String']['input'];
1592
+ products: Array<InputMaybe<MakePaymentProductInput>>;
1593
+ automaticTax?: InputMaybe<Scalars['Boolean']['input']>;
1594
+ recurringInterval?: InputMaybe<PaymentReccuringInterval>;
1595
+ };
1596
+ export type MakePaymentProductInput = {
1597
+ name: Scalars['String']['input'];
1598
+ unitAmount: Scalars['Int']['input'];
1599
+ quantity: Scalars['Int']['input'];
1600
+ };
1601
+ export type CancelSubscriptionInput = {
1602
+ email: Scalars['Email']['input'];
1603
+ };
1212
1604
  export type SendEmailInput = {
1213
1605
  from: Scalars['String']['input'];
1214
1606
  to: Array<Scalars['String']['input']>;
@@ -1290,10 +1682,11 @@ export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, st
1290
1682
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {};
1291
1683
  export type Sdk = ReturnType<typeof getSdk>;
1292
1684
  export type WabeSchemaScalars = "Phone";
1293
- export type WabeSchemaEnums = "AuthenticationProvider" | "SecondaryFactor";
1685
+ export type WabeSchemaEnums = "RoleEnum" | "AuthenticationProvider" | "SecondaryFactor" | "PaymentMode" | "PaymentReccuringInterval" | "Currency";
1294
1686
  export type WabeSchemaTypes = {
1295
1687
  User: User;
1296
1688
  Post: Post;
1297
1689
  _Session: _Session;
1298
1690
  Role: Role;
1691
+ Payment: Payment;
1299
1692
  };