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.
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
  }
@@ -37,6 +42,21 @@ export enum SecondaryFactor {
37
42
  EmailOtp = 'EmailOTP'
38
43
  }
39
44
 
45
+ export enum PaymentMode {
46
+ Payment = 'payment',
47
+ Subscription = 'subscription'
48
+ }
49
+
50
+ export enum PaymentReccuringInterval {
51
+ Month = 'month',
52
+ Year = 'year'
53
+ }
54
+
55
+ export enum Currency {
56
+ Eur = 'eur',
57
+ Usd = 'usd'
58
+ }
59
+
40
60
  /** User class */
41
61
  export type User = {
42
62
  __typename?: 'User';
@@ -531,6 +551,106 @@ export type RoleRelationInput = {
531
551
  createAndAdd?: InputMaybe<Array<RoleCreateFieldsInput>>;
532
552
  };
533
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
+
534
654
  export type Query = {
535
655
  __typename?: 'Query';
536
656
  /** User class */
@@ -543,9 +663,13 @@ export type Query = {
543
663
  _sessions: _SessionConnection;
544
664
  role?: Maybe<Role>;
545
665
  roles: RoleConnection;
666
+ payment?: Maybe<Payment>;
667
+ payments: PaymentConnection;
546
668
  /** Hello world description */
547
669
  helloWorld?: Maybe<Scalars['String']['output']>;
548
670
  me?: Maybe<MeOutput>;
671
+ /** Get invoices of a customer */
672
+ getInvoices: Array<Maybe<Invoice>>;
549
673
  };
550
674
 
551
675
 
@@ -558,6 +682,7 @@ export type QueryUsersArgs = {
558
682
  where?: InputMaybe<UserWhereInput>;
559
683
  offset?: InputMaybe<Scalars['Int']['input']>;
560
684
  first?: InputMaybe<Scalars['Int']['input']>;
685
+ order?: InputMaybe<Array<UserOrder>>;
561
686
  };
562
687
 
563
688
 
@@ -570,6 +695,7 @@ export type QueryPostsArgs = {
570
695
  where?: InputMaybe<PostWhereInput>;
571
696
  offset?: InputMaybe<Scalars['Int']['input']>;
572
697
  first?: InputMaybe<Scalars['Int']['input']>;
698
+ order?: InputMaybe<Array<PostOrder>>;
573
699
  };
574
700
 
575
701
 
@@ -582,6 +708,7 @@ export type Query_SessionsArgs = {
582
708
  where?: InputMaybe<_SessionWhereInput>;
583
709
  offset?: InputMaybe<Scalars['Int']['input']>;
584
710
  first?: InputMaybe<Scalars['Int']['input']>;
711
+ order?: InputMaybe<Array<_SessionOrder>>;
585
712
  };
586
713
 
587
714
 
@@ -594,6 +721,20 @@ export type QueryRolesArgs = {
594
721
  where?: InputMaybe<RoleWhereInput>;
595
722
  offset?: InputMaybe<Scalars['Int']['input']>;
596
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>>;
597
738
  };
598
739
 
599
740
 
@@ -601,6 +742,11 @@ export type QueryHelloWorldArgs = {
601
742
  name: Scalars['String']['input'];
602
743
  };
603
744
 
745
+
746
+ export type QueryGetInvoicesArgs = {
747
+ email: Scalars['Email']['input'];
748
+ };
749
+
604
750
  /** User class */
605
751
  export type UserWhereInput = {
606
752
  id?: InputMaybe<IdWhereInput>;
@@ -798,6 +944,35 @@ export type _SessionAclObjectRolesAclWhereInput = {
798
944
  AND?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
799
945
  };
800
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
+
801
976
  export type PostConnection = {
802
977
  __typename?: 'PostConnection';
803
978
  totalCount?: Maybe<Scalars['Int']['output']>;
@@ -851,6 +1026,42 @@ export type PostAclObjectRolesAclWhereInput = {
851
1026
  AND?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
852
1027
  };
853
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
+
854
1065
  export type RoleConnection = {
855
1066
  __typename?: 'RoleConnection';
856
1067
  totalCount?: Maybe<Scalars['Int']['output']>;
@@ -862,11 +1073,101 @@ export type RoleEdge = {
862
1073
  node: Role;
863
1074
  };
864
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
+
865
1155
  export type MeOutput = {
866
1156
  __typename?: 'MeOutput';
867
1157
  user?: Maybe<User>;
868
1158
  };
869
1159
 
1160
+ export type Invoice = {
1161
+ __typename?: 'Invoice';
1162
+ amountDue: Scalars['Int']['output'];
1163
+ amountPaid: Scalars['Int']['output'];
1164
+ currency: Currency;
1165
+ id: Scalars['String']['output'];
1166
+ created: Scalars['Int']['output'];
1167
+ invoiceUrl: Scalars['String']['output'];
1168
+ isPaid: Scalars['Boolean']['output'];
1169
+ };
1170
+
870
1171
  export type Mutation = {
871
1172
  __typename?: 'Mutation';
872
1173
  /** User class */
@@ -899,9 +1200,18 @@ export type Mutation = {
899
1200
  updateRoles: RoleConnection;
900
1201
  deleteRole?: Maybe<DeleteRolePayload>;
901
1202
  deleteRoles: RoleConnection;
1203
+ createPayment?: Maybe<CreatePaymentPayload>;
1204
+ createPayments: PaymentConnection;
1205
+ updatePayment?: Maybe<UpdatePaymentPayload>;
1206
+ updatePayments: PaymentConnection;
1207
+ deletePayment?: Maybe<DeletePaymentPayload>;
1208
+ deletePayments: PaymentConnection;
902
1209
  createMutation: Scalars['Boolean']['output'];
903
1210
  customMutation?: Maybe<Scalars['Int']['output']>;
904
1211
  secondCustomMutation?: Maybe<Scalars['Int']['output']>;
1212
+ /** Create a payment with the payment provider. Returns the url to redirect the user to pay */
1213
+ makePayment?: Maybe<Scalars['String']['output']>;
1214
+ cancelSubscription?: Maybe<Scalars['Boolean']['output']>;
905
1215
  /** Send basic email with text and html, returns the id of the email */
906
1216
  sendEmail?: Maybe<Scalars['String']['output']>;
907
1217
  signInWith?: Maybe<SignInWithOutput>;
@@ -1032,6 +1342,36 @@ export type MutationDeleteRolesArgs = {
1032
1342
  };
1033
1343
 
1034
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
+
1035
1375
  export type MutationCreateMutationArgs = {
1036
1376
  input: CreateMutationInput;
1037
1377
  };
@@ -1047,6 +1387,16 @@ export type MutationSecondCustomMutationArgs = {
1047
1387
  };
1048
1388
 
1049
1389
 
1390
+ export type MutationMakePaymentArgs = {
1391
+ input: MakePaymentInput;
1392
+ };
1393
+
1394
+
1395
+ export type MutationCancelSubscriptionArgs = {
1396
+ input: CancelSubscriptionInput;
1397
+ };
1398
+
1399
+
1050
1400
  export type MutationSendEmailArgs = {
1051
1401
  input: SendEmailInput;
1052
1402
  };
@@ -1085,6 +1435,7 @@ export type CreateUsersInput = {
1085
1435
  fields: Array<InputMaybe<UserCreateFieldsInput>>;
1086
1436
  offset?: InputMaybe<Scalars['Int']['input']>;
1087
1437
  first?: InputMaybe<Scalars['Int']['input']>;
1438
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1088
1439
  };
1089
1440
 
1090
1441
  export type UpdateUserPayload = {
@@ -1153,6 +1504,7 @@ export type UpdateUsersInput = {
1153
1504
  where?: InputMaybe<UserWhereInput>;
1154
1505
  offset?: InputMaybe<Scalars['Int']['input']>;
1155
1506
  first?: InputMaybe<Scalars['Int']['input']>;
1507
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1156
1508
  };
1157
1509
 
1158
1510
  export type DeleteUserPayload = {
@@ -1167,6 +1519,7 @@ export type DeleteUserInput = {
1167
1519
 
1168
1520
  export type DeleteUsersInput = {
1169
1521
  where?: InputMaybe<UserWhereInput>;
1522
+ order?: InputMaybe<Array<InputMaybe<UserOrder>>>;
1170
1523
  };
1171
1524
 
1172
1525
  export type CreatePostPayload = {
@@ -1183,6 +1536,7 @@ export type CreatePostsInput = {
1183
1536
  fields: Array<InputMaybe<PostCreateFieldsInput>>;
1184
1537
  offset?: InputMaybe<Scalars['Int']['input']>;
1185
1538
  first?: InputMaybe<Scalars['Int']['input']>;
1539
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1186
1540
  };
1187
1541
 
1188
1542
  export type UpdatePostPayload = {
@@ -1227,6 +1581,7 @@ export type UpdatePostsInput = {
1227
1581
  where?: InputMaybe<PostWhereInput>;
1228
1582
  offset?: InputMaybe<Scalars['Int']['input']>;
1229
1583
  first?: InputMaybe<Scalars['Int']['input']>;
1584
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1230
1585
  };
1231
1586
 
1232
1587
  export type DeletePostPayload = {
@@ -1241,6 +1596,7 @@ export type DeletePostInput = {
1241
1596
 
1242
1597
  export type DeletePostsInput = {
1243
1598
  where?: InputMaybe<PostWhereInput>;
1599
+ order?: InputMaybe<Array<InputMaybe<PostOrder>>>;
1244
1600
  };
1245
1601
 
1246
1602
  export type Create_SessionPayload = {
@@ -1257,6 +1613,7 @@ export type Create_SessionsInput = {
1257
1613
  fields: Array<InputMaybe<_SessionCreateFieldsInput>>;
1258
1614
  offset?: InputMaybe<Scalars['Int']['input']>;
1259
1615
  first?: InputMaybe<Scalars['Int']['input']>;
1616
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1260
1617
  };
1261
1618
 
1262
1619
  export type Update_SessionPayload = {
@@ -1304,6 +1661,7 @@ export type Update_SessionsInput = {
1304
1661
  where?: InputMaybe<_SessionWhereInput>;
1305
1662
  offset?: InputMaybe<Scalars['Int']['input']>;
1306
1663
  first?: InputMaybe<Scalars['Int']['input']>;
1664
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1307
1665
  };
1308
1666
 
1309
1667
  export type Delete_SessionPayload = {
@@ -1318,6 +1676,7 @@ export type Delete_SessionInput = {
1318
1676
 
1319
1677
  export type Delete_SessionsInput = {
1320
1678
  where?: InputMaybe<_SessionWhereInput>;
1679
+ order?: InputMaybe<Array<InputMaybe<_SessionOrder>>>;
1321
1680
  };
1322
1681
 
1323
1682
  export type CreateRolePayload = {
@@ -1334,6 +1693,7 @@ export type CreateRolesInput = {
1334
1693
  fields: Array<InputMaybe<RoleCreateFieldsInput>>;
1335
1694
  offset?: InputMaybe<Scalars['Int']['input']>;
1336
1695
  first?: InputMaybe<Scalars['Int']['input']>;
1696
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1337
1697
  };
1338
1698
 
1339
1699
  export type UpdateRolePayload = {
@@ -1378,6 +1738,7 @@ export type UpdateRolesInput = {
1378
1738
  where?: InputMaybe<RoleWhereInput>;
1379
1739
  offset?: InputMaybe<Scalars['Int']['input']>;
1380
1740
  first?: InputMaybe<Scalars['Int']['input']>;
1741
+ order?: InputMaybe<Array<InputMaybe<RoleOrder>>>;
1381
1742
  };
1382
1743
 
1383
1744
  export type DeleteRolePayload = {
@@ -1392,6 +1753,85 @@ export type DeleteRoleInput = {
1392
1753
 
1393
1754
  export type DeleteRolesInput = {
1394
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>>>;
1395
1835
  };
1396
1836
 
1397
1837
  export type CreateMutationInput = {
@@ -1412,6 +1852,26 @@ export type SecondCustomMutationSumInput = {
1412
1852
  b: Scalars['Int']['input'];
1413
1853
  };
1414
1854
 
1855
+ export type MakePaymentInput = {
1856
+ customerEmail?: InputMaybe<Scalars['Email']['input']>;
1857
+ paymentMode: PaymentMode;
1858
+ successUrl: Scalars['String']['input'];
1859
+ cancelUrl: Scalars['String']['input'];
1860
+ products: Array<InputMaybe<MakePaymentProductInput>>;
1861
+ automaticTax?: InputMaybe<Scalars['Boolean']['input']>;
1862
+ recurringInterval?: InputMaybe<PaymentReccuringInterval>;
1863
+ };
1864
+
1865
+ export type MakePaymentProductInput = {
1866
+ name: Scalars['String']['input'];
1867
+ unitAmount: Scalars['Int']['input'];
1868
+ quantity: Scalars['Int']['input'];
1869
+ };
1870
+
1871
+ export type CancelSubscriptionInput = {
1872
+ email: Scalars['Email']['input'];
1873
+ };
1874
+
1415
1875
  export type SendEmailInput = {
1416
1876
  from: Scalars['String']['input'];
1417
1877
  to: Array<Scalars['String']['input']>;
@@ -1523,11 +1983,12 @@ export type Sdk = ReturnType<typeof getSdk>;
1523
1983
 
1524
1984
  export type WabeSchemaScalars = "Phone"
1525
1985
 
1526
- export type WabeSchemaEnums = "AuthenticationProvider" | "SecondaryFactor"
1986
+ export type WabeSchemaEnums = "RoleEnum" | "AuthenticationProvider" | "SecondaryFactor" | "PaymentMode" | "PaymentReccuringInterval" | "Currency"
1527
1987
 
1528
1988
  export type WabeSchemaTypes = {
1529
1989
  User: User,
1530
1990
  Post: Post,
1531
1991
  _Session: _Session,
1532
- Role: Role
1992
+ Role: Role,
1993
+ Payment: Payment
1533
1994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wabe",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Your backend in minutes not days",
5
5
  "homepage": "https://wabe.dev",
6
6
  "author": {
@@ -8,14 +8,19 @@
8
8
  "url": "https://github.com/coratgerl"
9
9
  },
10
10
  "license": "Apache-2.0",
11
- "keywords": ["backend", "wabe", "graphql", "baas"],
11
+ "keywords": [
12
+ "backend",
13
+ "wabe",
14
+ "graphql",
15
+ "baas"
16
+ ],
12
17
  "repository": {
13
18
  "type": "git",
14
19
  "url": "git+https://github.com/palixir/wabe.git"
15
20
  },
16
21
  "main": "dist/index.js",
17
22
  "scripts": {
18
- "build": "bun generate:codegen && bun build --outdir dist $(pwd)/src/index.ts --target=node && bun generate:types",
23
+ "build": "bun generate:codegen && bun build --outdir dist $(pwd)/src/index.ts --target=node --external=argon2 && bun generate:types",
19
24
  "generate:types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --no-check --external-imports=wobe",
20
25
  "check": "tsc --project $(pwd)/tsconfig.json",
21
26
  "lint": "biome lint . --no-errors-on-unmatched --config-path=../../",