wabe 0.5.2 → 0.5.4

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/generated/wabe.ts CHANGED
@@ -29,8 +29,14 @@ export type Scalars = {
29
29
  Any: { input: any; output: any; }
30
30
  };
31
31
 
32
+ export enum RoleEnum {
33
+ Admin = 'Admin',
34
+ Client = 'Client'
35
+ }
36
+
32
37
  export enum AuthenticationProvider {
33
- Google = 'Google'
38
+ Google = 'google',
39
+ EmailPassword = 'emailPassword'
34
40
  }
35
41
 
36
42
  export enum SecondaryFactor {
@@ -546,6 +552,106 @@ export type RoleRelationInput = {
546
552
  createAndAdd?: InputMaybe<Array<RoleCreateFieldsInput>>;
547
553
  };
548
554
 
555
+ export type Payment = {
556
+ __typename?: 'Payment';
557
+ id: Scalars['ID']['output'];
558
+ user?: Maybe<User>;
559
+ amount: Scalars['Int']['output'];
560
+ currency: Currency;
561
+ acl?: Maybe<PaymentAclObject>;
562
+ createdAt?: Maybe<Scalars['Date']['output']>;
563
+ updatedAt?: Maybe<Scalars['Date']['output']>;
564
+ search?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
565
+ };
566
+
567
+ export type PaymentAclObject = {
568
+ __typename?: 'PaymentACLObject';
569
+ users?: Maybe<Array<Maybe<PaymentAclObjectUsersAcl>>>;
570
+ roles?: Maybe<Array<Maybe<PaymentAclObjectRolesAcl>>>;
571
+ };
572
+
573
+ export type PaymentAclObjectUsersAcl = {
574
+ __typename?: 'PaymentACLObjectUsersACL';
575
+ userId: Scalars['String']['output'];
576
+ read: Scalars['Boolean']['output'];
577
+ write: Scalars['Boolean']['output'];
578
+ };
579
+
580
+ export type PaymentAclObjectRolesAcl = {
581
+ __typename?: 'PaymentACLObjectRolesACL';
582
+ roleId: Scalars['String']['output'];
583
+ read: Scalars['Boolean']['output'];
584
+ write: Scalars['Boolean']['output'];
585
+ };
586
+
587
+ export type PaymentInput = {
588
+ user?: InputMaybe<UserPointerInput>;
589
+ amount: Scalars['Int']['input'];
590
+ currency: Currency;
591
+ acl?: InputMaybe<PaymentAclObjectInput>;
592
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
593
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
594
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
595
+ };
596
+
597
+ export type PaymentAclObjectInput = {
598
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclInput>>>;
599
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclInput>>>;
600
+ };
601
+
602
+ export type PaymentAclObjectUsersAclInput = {
603
+ userId: Scalars['String']['input'];
604
+ read: Scalars['Boolean']['input'];
605
+ write: Scalars['Boolean']['input'];
606
+ };
607
+
608
+ export type PaymentAclObjectRolesAclInput = {
609
+ roleId: Scalars['String']['input'];
610
+ read: Scalars['Boolean']['input'];
611
+ write: Scalars['Boolean']['input'];
612
+ };
613
+
614
+ /** Input to link an object to a pointer Payment */
615
+ export type PaymentPointerInput = {
616
+ unlink?: InputMaybe<Scalars['Boolean']['input']>;
617
+ link?: InputMaybe<Scalars['ID']['input']>;
618
+ createAndLink?: InputMaybe<PaymentCreateFieldsInput>;
619
+ };
620
+
621
+ export type PaymentCreateFieldsInput = {
622
+ user?: InputMaybe<UserPointerInput>;
623
+ amount?: InputMaybe<Scalars['Int']['input']>;
624
+ currency?: InputMaybe<Currency>;
625
+ acl?: InputMaybe<PaymentAclObjectCreateFieldsInput>;
626
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
627
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
628
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
629
+ };
630
+
631
+ export type PaymentAclObjectCreateFieldsInput = {
632
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclCreateFieldsInput>>>;
633
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclCreateFieldsInput>>>;
634
+ };
635
+
636
+ export type PaymentAclObjectUsersAclCreateFieldsInput = {
637
+ userId?: InputMaybe<Scalars['String']['input']>;
638
+ read?: InputMaybe<Scalars['Boolean']['input']>;
639
+ write?: InputMaybe<Scalars['Boolean']['input']>;
640
+ };
641
+
642
+ export type PaymentAclObjectRolesAclCreateFieldsInput = {
643
+ roleId?: InputMaybe<Scalars['String']['input']>;
644
+ read?: InputMaybe<Scalars['Boolean']['input']>;
645
+ write?: InputMaybe<Scalars['Boolean']['input']>;
646
+ };
647
+
648
+ /** Input to add a relation to the class Payment */
649
+ export type PaymentRelationInput = {
650
+ add?: InputMaybe<Array<Scalars['ID']['input']>>;
651
+ remove?: InputMaybe<Array<Scalars['ID']['input']>>;
652
+ createAndAdd?: InputMaybe<Array<PaymentCreateFieldsInput>>;
653
+ };
654
+
549
655
  export type Query = {
550
656
  __typename?: 'Query';
551
657
  /** User class */
@@ -558,6 +664,8 @@ export type Query = {
558
664
  _sessions: _SessionConnection;
559
665
  role?: Maybe<Role>;
560
666
  roles: RoleConnection;
667
+ payment?: Maybe<Payment>;
668
+ payments: PaymentConnection;
561
669
  /** Hello world description */
562
670
  helloWorld?: Maybe<Scalars['String']['output']>;
563
671
  me?: Maybe<MeOutput>;
@@ -575,6 +683,7 @@ export type QueryUsersArgs = {
575
683
  where?: InputMaybe<UserWhereInput>;
576
684
  offset?: InputMaybe<Scalars['Int']['input']>;
577
685
  first?: InputMaybe<Scalars['Int']['input']>;
686
+ order?: InputMaybe<Array<UserOrder>>;
578
687
  };
579
688
 
580
689
 
@@ -587,6 +696,7 @@ export type QueryPostsArgs = {
587
696
  where?: InputMaybe<PostWhereInput>;
588
697
  offset?: InputMaybe<Scalars['Int']['input']>;
589
698
  first?: InputMaybe<Scalars['Int']['input']>;
699
+ order?: InputMaybe<Array<PostOrder>>;
590
700
  };
591
701
 
592
702
 
@@ -599,6 +709,7 @@ export type Query_SessionsArgs = {
599
709
  where?: InputMaybe<_SessionWhereInput>;
600
710
  offset?: InputMaybe<Scalars['Int']['input']>;
601
711
  first?: InputMaybe<Scalars['Int']['input']>;
712
+ order?: InputMaybe<Array<_SessionOrder>>;
602
713
  };
603
714
 
604
715
 
@@ -611,6 +722,20 @@ export type QueryRolesArgs = {
611
722
  where?: InputMaybe<RoleWhereInput>;
612
723
  offset?: InputMaybe<Scalars['Int']['input']>;
613
724
  first?: InputMaybe<Scalars['Int']['input']>;
725
+ order?: InputMaybe<Array<RoleOrder>>;
726
+ };
727
+
728
+
729
+ export type QueryPaymentArgs = {
730
+ id?: InputMaybe<Scalars['ID']['input']>;
731
+ };
732
+
733
+
734
+ export type QueryPaymentsArgs = {
735
+ where?: InputMaybe<PaymentWhereInput>;
736
+ offset?: InputMaybe<Scalars['Int']['input']>;
737
+ first?: InputMaybe<Scalars['Int']['input']>;
738
+ order?: InputMaybe<Array<PaymentOrder>>;
614
739
  };
615
740
 
616
741
 
@@ -820,6 +945,35 @@ export type _SessionAclObjectRolesAclWhereInput = {
820
945
  AND?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
821
946
  };
822
947
 
948
+ export enum UserOrder {
949
+ NameAsc = 'name_ASC',
950
+ NameDesc = 'name_DESC',
951
+ AgeAsc = 'age_ASC',
952
+ AgeDesc = 'age_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
+ AuthenticationAsc = 'authentication_ASC',
962
+ AuthenticationDesc = 'authentication_DESC',
963
+ ProviderAsc = 'provider_ASC',
964
+ ProviderDesc = 'provider_DESC',
965
+ IsOauthAsc = 'isOauth_ASC',
966
+ IsOauthDesc = 'isOauth_DESC',
967
+ EmailAsc = 'email_ASC',
968
+ EmailDesc = 'email_DESC',
969
+ VerifiedEmailAsc = 'verifiedEmail_ASC',
970
+ VerifiedEmailDesc = 'verifiedEmail_DESC',
971
+ RoleAsc = 'role_ASC',
972
+ RoleDesc = 'role_DESC',
973
+ SessionsAsc = 'sessions_ASC',
974
+ SessionsDesc = 'sessions_DESC'
975
+ }
976
+
823
977
  export type PostConnection = {
824
978
  __typename?: 'PostConnection';
825
979
  totalCount?: Maybe<Scalars['Int']['output']>;
@@ -873,6 +1027,42 @@ export type PostAclObjectRolesAclWhereInput = {
873
1027
  AND?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
874
1028
  };
875
1029
 
1030
+ export enum PostOrder {
1031
+ NameAsc = 'name_ASC',
1032
+ NameDesc = 'name_DESC',
1033
+ TestAsc = 'test_ASC',
1034
+ TestDesc = 'test_DESC',
1035
+ AclAsc = 'acl_ASC',
1036
+ AclDesc = 'acl_DESC',
1037
+ CreatedAtAsc = 'createdAt_ASC',
1038
+ CreatedAtDesc = 'createdAt_DESC',
1039
+ UpdatedAtAsc = 'updatedAt_ASC',
1040
+ UpdatedAtDesc = 'updatedAt_DESC',
1041
+ SearchAsc = 'search_ASC',
1042
+ SearchDesc = 'search_DESC'
1043
+ }
1044
+
1045
+ export enum _SessionOrder {
1046
+ UserAsc = 'user_ASC',
1047
+ UserDesc = 'user_DESC',
1048
+ AccessTokenAsc = 'accessToken_ASC',
1049
+ AccessTokenDesc = 'accessToken_DESC',
1050
+ AccessTokenExpiresAtAsc = 'accessTokenExpiresAt_ASC',
1051
+ AccessTokenExpiresAtDesc = 'accessTokenExpiresAt_DESC',
1052
+ RefreshTokenAsc = 'refreshToken_ASC',
1053
+ RefreshTokenDesc = 'refreshToken_DESC',
1054
+ RefreshTokenExpiresAtAsc = 'refreshTokenExpiresAt_ASC',
1055
+ RefreshTokenExpiresAtDesc = 'refreshTokenExpiresAt_DESC',
1056
+ AclAsc = 'acl_ASC',
1057
+ AclDesc = 'acl_DESC',
1058
+ CreatedAtAsc = 'createdAt_ASC',
1059
+ CreatedAtDesc = 'createdAt_DESC',
1060
+ UpdatedAtAsc = 'updatedAt_ASC',
1061
+ UpdatedAtDesc = 'updatedAt_DESC',
1062
+ SearchAsc = 'search_ASC',
1063
+ SearchDesc = 'search_DESC'
1064
+ }
1065
+
876
1066
  export type RoleConnection = {
877
1067
  __typename?: 'RoleConnection';
878
1068
  totalCount?: Maybe<Scalars['Int']['output']>;
@@ -884,6 +1074,85 @@ export type RoleEdge = {
884
1074
  node: Role;
885
1075
  };
886
1076
 
1077
+ export enum RoleOrder {
1078
+ NameAsc = 'name_ASC',
1079
+ NameDesc = 'name_DESC',
1080
+ UsersAsc = 'users_ASC',
1081
+ UsersDesc = 'users_DESC',
1082
+ AclAsc = 'acl_ASC',
1083
+ AclDesc = 'acl_DESC',
1084
+ CreatedAtAsc = 'createdAt_ASC',
1085
+ CreatedAtDesc = 'createdAt_DESC',
1086
+ UpdatedAtAsc = 'updatedAt_ASC',
1087
+ UpdatedAtDesc = 'updatedAt_DESC',
1088
+ SearchAsc = 'search_ASC',
1089
+ SearchDesc = 'search_DESC'
1090
+ }
1091
+
1092
+ export type PaymentConnection = {
1093
+ __typename?: 'PaymentConnection';
1094
+ totalCount?: Maybe<Scalars['Int']['output']>;
1095
+ edges?: Maybe<Array<Maybe<PaymentEdge>>>;
1096
+ };
1097
+
1098
+ export type PaymentEdge = {
1099
+ __typename?: 'PaymentEdge';
1100
+ node: Payment;
1101
+ };
1102
+
1103
+ export type PaymentWhereInput = {
1104
+ id?: InputMaybe<IdWhereInput>;
1105
+ user?: InputMaybe<UserWhereInput>;
1106
+ amount?: InputMaybe<IntWhereInput>;
1107
+ currency?: InputMaybe<AnyWhereInput>;
1108
+ acl?: InputMaybe<PaymentAclObjectWhereInput>;
1109
+ createdAt?: InputMaybe<DateWhereInput>;
1110
+ updatedAt?: InputMaybe<DateWhereInput>;
1111
+ search?: InputMaybe<SearchWhereInput>;
1112
+ OR?: InputMaybe<Array<InputMaybe<PaymentWhereInput>>>;
1113
+ AND?: InputMaybe<Array<InputMaybe<PaymentWhereInput>>>;
1114
+ };
1115
+
1116
+ export type PaymentAclObjectWhereInput = {
1117
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclWhereInput>>>;
1118
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclWhereInput>>>;
1119
+ OR?: InputMaybe<Array<InputMaybe<PaymentAclObjectWhereInput>>>;
1120
+ AND?: InputMaybe<Array<InputMaybe<PaymentAclObjectWhereInput>>>;
1121
+ };
1122
+
1123
+ export type PaymentAclObjectUsersAclWhereInput = {
1124
+ userId?: InputMaybe<StringWhereInput>;
1125
+ read?: InputMaybe<BooleanWhereInput>;
1126
+ write?: InputMaybe<BooleanWhereInput>;
1127
+ OR?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclWhereInput>>>;
1128
+ AND?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclWhereInput>>>;
1129
+ };
1130
+
1131
+ export type PaymentAclObjectRolesAclWhereInput = {
1132
+ roleId?: InputMaybe<StringWhereInput>;
1133
+ read?: InputMaybe<BooleanWhereInput>;
1134
+ write?: InputMaybe<BooleanWhereInput>;
1135
+ OR?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclWhereInput>>>;
1136
+ AND?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclWhereInput>>>;
1137
+ };
1138
+
1139
+ export enum PaymentOrder {
1140
+ UserAsc = 'user_ASC',
1141
+ UserDesc = 'user_DESC',
1142
+ AmountAsc = 'amount_ASC',
1143
+ AmountDesc = 'amount_DESC',
1144
+ CurrencyAsc = 'currency_ASC',
1145
+ CurrencyDesc = 'currency_DESC',
1146
+ AclAsc = 'acl_ASC',
1147
+ AclDesc = 'acl_DESC',
1148
+ CreatedAtAsc = 'createdAt_ASC',
1149
+ CreatedAtDesc = 'createdAt_DESC',
1150
+ UpdatedAtAsc = 'updatedAt_ASC',
1151
+ UpdatedAtDesc = 'updatedAt_DESC',
1152
+ SearchAsc = 'search_ASC',
1153
+ SearchDesc = 'search_DESC'
1154
+ }
1155
+
887
1156
  export type MeOutput = {
888
1157
  __typename?: 'MeOutput';
889
1158
  user?: Maybe<User>;
@@ -932,11 +1201,17 @@ export type Mutation = {
932
1201
  updateRoles: RoleConnection;
933
1202
  deleteRole?: Maybe<DeleteRolePayload>;
934
1203
  deleteRoles: RoleConnection;
1204
+ createPayment?: Maybe<CreatePaymentPayload>;
1205
+ createPayments: PaymentConnection;
1206
+ updatePayment?: Maybe<UpdatePaymentPayload>;
1207
+ updatePayments: PaymentConnection;
1208
+ deletePayment?: Maybe<DeletePaymentPayload>;
1209
+ deletePayments: PaymentConnection;
935
1210
  createMutation: Scalars['Boolean']['output'];
936
1211
  customMutation?: Maybe<Scalars['Int']['output']>;
937
1212
  secondCustomMutation?: Maybe<Scalars['Int']['output']>;
938
1213
  /** Create a payment with the payment provider. Returns the url to redirect the user to pay */
939
- createPayment?: Maybe<Scalars['String']['output']>;
1214
+ makePayment?: Maybe<Scalars['String']['output']>;
940
1215
  cancelSubscription?: Maybe<Scalars['Boolean']['output']>;
941
1216
  /** Send basic email with text and html, returns the id of the email */
942
1217
  sendEmail?: Maybe<Scalars['String']['output']>;
@@ -1068,6 +1343,36 @@ export type MutationDeleteRolesArgs = {
1068
1343
  };
1069
1344
 
1070
1345
 
1346
+ export type MutationCreatePaymentArgs = {
1347
+ input: CreatePaymentInput;
1348
+ };
1349
+
1350
+
1351
+ export type MutationCreatePaymentsArgs = {
1352
+ input: CreatePaymentsInput;
1353
+ };
1354
+
1355
+
1356
+ export type MutationUpdatePaymentArgs = {
1357
+ input: UpdatePaymentInput;
1358
+ };
1359
+
1360
+
1361
+ export type MutationUpdatePaymentsArgs = {
1362
+ input: UpdatePaymentsInput;
1363
+ };
1364
+
1365
+
1366
+ export type MutationDeletePaymentArgs = {
1367
+ input: DeletePaymentInput;
1368
+ };
1369
+
1370
+
1371
+ export type MutationDeletePaymentsArgs = {
1372
+ input: DeletePaymentsInput;
1373
+ };
1374
+
1375
+
1071
1376
  export type MutationCreateMutationArgs = {
1072
1377
  input: CreateMutationInput;
1073
1378
  };
@@ -1083,8 +1388,8 @@ export type MutationSecondCustomMutationArgs = {
1083
1388
  };
1084
1389
 
1085
1390
 
1086
- export type MutationCreatePaymentArgs = {
1087
- input: CreatePaymentInput;
1391
+ export type MutationMakePaymentArgs = {
1392
+ input: MakePaymentInput;
1088
1393
  };
1089
1394
 
1090
1395
 
@@ -1131,6 +1436,7 @@ export type CreateUsersInput = {
1131
1436
  fields: Array<InputMaybe<UserCreateFieldsInput>>;
1132
1437
  offset?: InputMaybe<Scalars['Int']['input']>;
1133
1438
  first?: InputMaybe<Scalars['Int']['input']>;
1439
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1134
1440
  };
1135
1441
 
1136
1442
  export type UpdateUserPayload = {
@@ -1199,6 +1505,7 @@ export type UpdateUsersInput = {
1199
1505
  where?: InputMaybe<UserWhereInput>;
1200
1506
  offset?: InputMaybe<Scalars['Int']['input']>;
1201
1507
  first?: InputMaybe<Scalars['Int']['input']>;
1508
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1202
1509
  };
1203
1510
 
1204
1511
  export type DeleteUserPayload = {
@@ -1213,6 +1520,7 @@ export type DeleteUserInput = {
1213
1520
 
1214
1521
  export type DeleteUsersInput = {
1215
1522
  where?: InputMaybe<UserWhereInput>;
1523
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1216
1524
  };
1217
1525
 
1218
1526
  export type CreatePostPayload = {
@@ -1229,6 +1537,7 @@ export type CreatePostsInput = {
1229
1537
  fields: Array<InputMaybe<PostCreateFieldsInput>>;
1230
1538
  offset?: InputMaybe<Scalars['Int']['input']>;
1231
1539
  first?: InputMaybe<Scalars['Int']['input']>;
1540
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1232
1541
  };
1233
1542
 
1234
1543
  export type UpdatePostPayload = {
@@ -1273,6 +1582,7 @@ export type UpdatePostsInput = {
1273
1582
  where?: InputMaybe<PostWhereInput>;
1274
1583
  offset?: InputMaybe<Scalars['Int']['input']>;
1275
1584
  first?: InputMaybe<Scalars['Int']['input']>;
1585
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1276
1586
  };
1277
1587
 
1278
1588
  export type DeletePostPayload = {
@@ -1287,6 +1597,7 @@ export type DeletePostInput = {
1287
1597
 
1288
1598
  export type DeletePostsInput = {
1289
1599
  where?: InputMaybe<PostWhereInput>;
1600
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1290
1601
  };
1291
1602
 
1292
1603
  export type Create_SessionPayload = {
@@ -1303,6 +1614,7 @@ export type Create_SessionsInput = {
1303
1614
  fields: Array<InputMaybe<_SessionCreateFieldsInput>>;
1304
1615
  offset?: InputMaybe<Scalars['Int']['input']>;
1305
1616
  first?: InputMaybe<Scalars['Int']['input']>;
1617
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1306
1618
  };
1307
1619
 
1308
1620
  export type Update_SessionPayload = {
@@ -1350,6 +1662,7 @@ export type Update_SessionsInput = {
1350
1662
  where?: InputMaybe<_SessionWhereInput>;
1351
1663
  offset?: InputMaybe<Scalars['Int']['input']>;
1352
1664
  first?: InputMaybe<Scalars['Int']['input']>;
1665
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1353
1666
  };
1354
1667
 
1355
1668
  export type Delete_SessionPayload = {
@@ -1364,6 +1677,7 @@ export type Delete_SessionInput = {
1364
1677
 
1365
1678
  export type Delete_SessionsInput = {
1366
1679
  where?: InputMaybe<_SessionWhereInput>;
1680
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1367
1681
  };
1368
1682
 
1369
1683
  export type CreateRolePayload = {
@@ -1380,6 +1694,7 @@ export type CreateRolesInput = {
1380
1694
  fields: Array<InputMaybe<RoleCreateFieldsInput>>;
1381
1695
  offset?: InputMaybe<Scalars['Int']['input']>;
1382
1696
  first?: InputMaybe<Scalars['Int']['input']>;
1697
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1383
1698
  };
1384
1699
 
1385
1700
  export type UpdateRolePayload = {
@@ -1424,6 +1739,7 @@ export type UpdateRolesInput = {
1424
1739
  where?: InputMaybe<RoleWhereInput>;
1425
1740
  offset?: InputMaybe<Scalars['Int']['input']>;
1426
1741
  first?: InputMaybe<Scalars['Int']['input']>;
1742
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1427
1743
  };
1428
1744
 
1429
1745
  export type DeleteRolePayload = {
@@ -1438,6 +1754,85 @@ export type DeleteRoleInput = {
1438
1754
 
1439
1755
  export type DeleteRolesInput = {
1440
1756
  where?: InputMaybe<RoleWhereInput>;
1757
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1758
+ };
1759
+
1760
+ export type CreatePaymentPayload = {
1761
+ __typename?: 'CreatePaymentPayload';
1762
+ payment?: Maybe<Payment>;
1763
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1764
+ };
1765
+
1766
+ export type CreatePaymentInput = {
1767
+ fields?: InputMaybe<PaymentCreateFieldsInput>;
1768
+ };
1769
+
1770
+ export type CreatePaymentsInput = {
1771
+ fields: Array<InputMaybe<PaymentCreateFieldsInput>>;
1772
+ offset?: InputMaybe<Scalars['Int']['input']>;
1773
+ first?: InputMaybe<Scalars['Int']['input']>;
1774
+ order?: InputMaybe<Array<InputMaybe<PaymentOrder>>>;
1775
+ };
1776
+
1777
+ export type UpdatePaymentPayload = {
1778
+ __typename?: 'UpdatePaymentPayload';
1779
+ payment?: Maybe<Payment>;
1780
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1781
+ };
1782
+
1783
+ export type UpdatePaymentInput = {
1784
+ id?: InputMaybe<Scalars['ID']['input']>;
1785
+ fields?: InputMaybe<PaymentUpdateFieldsInput>;
1786
+ };
1787
+
1788
+ export type PaymentUpdateFieldsInput = {
1789
+ user?: InputMaybe<UserPointerInput>;
1790
+ amount?: InputMaybe<Scalars['Int']['input']>;
1791
+ currency?: InputMaybe<Currency>;
1792
+ acl?: InputMaybe<PaymentAclObjectUpdateFieldsInput>;
1793
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
1794
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
1795
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1796
+ };
1797
+
1798
+ export type PaymentAclObjectUpdateFieldsInput = {
1799
+ users?: InputMaybe<Array<InputMaybe<PaymentAclObjectUsersAclUpdateFieldsInput>>>;
1800
+ roles?: InputMaybe<Array<InputMaybe<PaymentAclObjectRolesAclUpdateFieldsInput>>>;
1801
+ };
1802
+
1803
+ export type PaymentAclObjectUsersAclUpdateFieldsInput = {
1804
+ userId?: InputMaybe<Scalars['String']['input']>;
1805
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1806
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1807
+ };
1808
+
1809
+ export type PaymentAclObjectRolesAclUpdateFieldsInput = {
1810
+ roleId?: InputMaybe<Scalars['String']['input']>;
1811
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1812
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1813
+ };
1814
+
1815
+ export type UpdatePaymentsInput = {
1816
+ fields?: InputMaybe<PaymentUpdateFieldsInput>;
1817
+ where?: InputMaybe<PaymentWhereInput>;
1818
+ offset?: InputMaybe<Scalars['Int']['input']>;
1819
+ first?: InputMaybe<Scalars['Int']['input']>;
1820
+ order?: InputMaybe<Array<InputMaybe<PaymentOrder>>>;
1821
+ };
1822
+
1823
+ export type DeletePaymentPayload = {
1824
+ __typename?: 'DeletePaymentPayload';
1825
+ payment?: Maybe<Payment>;
1826
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1827
+ };
1828
+
1829
+ export type DeletePaymentInput = {
1830
+ id?: InputMaybe<Scalars['ID']['input']>;
1831
+ };
1832
+
1833
+ export type DeletePaymentsInput = {
1834
+ where?: InputMaybe<PaymentWhereInput>;
1835
+ order?: InputMaybe<Array<InputMaybe<PaymentOrder>>>;
1441
1836
  };
1442
1837
 
1443
1838
  export type CreateMutationInput = {
@@ -1458,17 +1853,17 @@ export type SecondCustomMutationSumInput = {
1458
1853
  b: Scalars['Int']['input'];
1459
1854
  };
1460
1855
 
1461
- export type CreatePaymentInput = {
1856
+ export type MakePaymentInput = {
1462
1857
  customerEmail?: InputMaybe<Scalars['Email']['input']>;
1463
1858
  paymentMode: PaymentMode;
1464
1859
  successUrl: Scalars['String']['input'];
1465
1860
  cancelUrl: Scalars['String']['input'];
1466
- products: Array<InputMaybe<CreatePaymentProductInput>>;
1861
+ products: Array<InputMaybe<MakePaymentProductInput>>;
1467
1862
  automaticTax?: InputMaybe<Scalars['Boolean']['input']>;
1468
1863
  recurringInterval?: InputMaybe<PaymentReccuringInterval>;
1469
1864
  };
1470
1865
 
1471
- export type CreatePaymentProductInput = {
1866
+ export type MakePaymentProductInput = {
1472
1867
  name: Scalars['String']['input'];
1473
1868
  unitAmount: Scalars['Int']['input'];
1474
1869
  quantity: Scalars['Int']['input'];
@@ -1589,11 +1984,12 @@ export type Sdk = ReturnType<typeof getSdk>;
1589
1984
 
1590
1985
  export type WabeSchemaScalars = "Phone"
1591
1986
 
1592
- export type WabeSchemaEnums = "AuthenticationProvider" | "SecondaryFactor" | "PaymentMode" | "PaymentReccuringInterval" | "Currency"
1987
+ export type WabeSchemaEnums = "RoleEnum" | "AuthenticationProvider" | "SecondaryFactor" | "PaymentMode" | "PaymentReccuringInterval" | "Currency"
1593
1988
 
1594
1989
  export type WabeSchemaTypes = {
1595
1990
  User: User,
1596
1991
  Post: Post,
1597
1992
  _Session: _Session,
1598
- Role: Role
1993
+ Role: Role,
1994
+ Payment: Payment
1599
1995
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wabe",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Your backend in minutes not days",
5
5
  "homepage": "https://wabe.dev",
6
6
  "author": {
@@ -39,7 +39,7 @@
39
39
  "argon2": "0.41.1",
40
40
  "jsonwebtoken": "9.0.2",
41
41
  "mongodb": "6.8.0",
42
- "wobe": "1.1.7",
42
+ "wobe": "1.1.8",
43
43
  "wobe-graphql-yoga": "1.2.5"
44
44
  },
45
45
  "devDependencies": {