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