wabe 0.5.7 → 0.5.9

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.
@@ -722,9 +722,6 @@ type Query {
722
722
  """Hello world description"""
723
723
  helloWorld(name: String!): String
724
724
  me: MeOutput
725
-
726
- """Get invoices of a customer"""
727
- getInvoices(email: Email!): [Invoice]!
728
725
  }
729
726
 
730
727
  """User class"""
@@ -1200,16 +1197,6 @@ type MeOutput {
1200
1197
  user: User
1201
1198
  }
1202
1199
 
1203
- type Invoice {
1204
- amountDue: Int!
1205
- amountPaid: Int!
1206
- currency: Currency!
1207
- id: String!
1208
- created: Int!
1209
- invoiceUrl: String!
1210
- isPaid: Boolean!
1211
- }
1212
-
1213
1200
  type Mutation {
1214
1201
  """User class"""
1215
1202
  createUser(input: CreateUserInput!): CreateUserPayload
@@ -1268,12 +1255,6 @@ type Mutation {
1268
1255
  """Send an OTP code by email to the user"""
1269
1256
  sendOtpCode(input: SendOtpCodeInput!): Boolean
1270
1257
 
1271
- """
1272
- Create a payment with the payment provider. Returns the url to redirect the user to pay
1273
- """
1274
- makePayment(input: MakePaymentInput!): String
1275
- cancelSubscription(input: CancelSubscriptionInput!): Boolean
1276
-
1277
1258
  """Send basic email with text and html, returns the id of the email"""
1278
1259
  sendEmail(input: SendEmailInput!): String
1279
1260
  signInWith(input: SignInWithInput!): SignInWithOutput
@@ -1785,26 +1766,6 @@ input SendOtpCodeInput {
1785
1766
  email: Email!
1786
1767
  }
1787
1768
 
1788
- input MakePaymentInput {
1789
- customerEmail: Email
1790
- paymentMode: PaymentMode!
1791
- successUrl: String!
1792
- cancelUrl: String!
1793
- products: [MakePaymentProductInput]!
1794
- automaticTax: Boolean
1795
- recurringInterval: PaymentReccuringInterval
1796
- }
1797
-
1798
- input MakePaymentProductInput {
1799
- name: String!
1800
- unitAmount: Int!
1801
- quantity: Int!
1802
- }
1803
-
1804
- input CancelSubscriptionInput {
1805
- email: Email!
1806
- }
1807
-
1808
1769
  input SendEmailInput {
1809
1770
  from: String!
1810
1771
  to: [String!]!
package/generated/wabe.ts CHANGED
@@ -705,7 +705,6 @@ export type Query = {
705
705
  _internalConfigs: _InternalConfigConnection;
706
706
  helloWorld?: Scalars['String']['output'];
707
707
  me?: MeOutput;
708
- getInvoices: Invoice[];
709
708
  };
710
709
 
711
710
  export type QueryUserArgs = {
@@ -778,10 +777,6 @@ export type QueryHelloWorldArgs = {
778
777
  name: Scalars['String']['input'];
779
778
  };
780
779
 
781
- export type QueryGetInvoicesArgs = {
782
- email: Scalars['Email']['input'];
783
- };
784
-
785
780
  export type UserWhereInput = {
786
781
  id?: IdWhereInput;
787
782
  name?: StringWhereInput;
@@ -1246,16 +1241,6 @@ export type MeOutput = {
1246
1241
  user?: User;
1247
1242
  };
1248
1243
 
1249
- export type Invoice = {
1250
- amountDue: Scalars['Int']['output'];
1251
- amountPaid: Scalars['Int']['output'];
1252
- currency: Currency;
1253
- id: Scalars['String']['output'];
1254
- created: Scalars['Int']['output'];
1255
- invoiceUrl: Scalars['String']['output'];
1256
- isPaid: Scalars['Boolean']['output'];
1257
- };
1258
-
1259
1244
  export type Mutation = {
1260
1245
  createUser?: CreateUserPayload;
1261
1246
  createUsers: UserConnection;
@@ -1298,8 +1283,6 @@ export type Mutation = {
1298
1283
  secondCustomMutation?: Scalars['Int']['output'];
1299
1284
  resetPassword?: Scalars['Boolean']['output'];
1300
1285
  sendOtpCode?: Scalars['Boolean']['output'];
1301
- makePayment?: Scalars['String']['output'];
1302
- cancelSubscription?: Scalars['Boolean']['output'];
1303
1286
  sendEmail?: Scalars['String']['output'];
1304
1287
  signInWith?: SignInWithOutput;
1305
1288
  signUpWith?: SignUpWithOutput;
@@ -1472,14 +1455,6 @@ export type MutationSendOtpCodeArgs = {
1472
1455
  input: SendOtpCodeInput;
1473
1456
  };
1474
1457
 
1475
- export type MutationMakePaymentArgs = {
1476
- input: MakePaymentInput;
1477
- };
1478
-
1479
- export type MutationCancelSubscriptionArgs = {
1480
- input: CancelSubscriptionInput;
1481
- };
1482
-
1483
1458
  export type MutationSendEmailArgs = {
1484
1459
  input: SendEmailInput;
1485
1460
  };
@@ -2001,26 +1976,6 @@ export type SendOtpCodeInput = {
2001
1976
  email: Scalars['Email']['input'];
2002
1977
  };
2003
1978
 
2004
- export type MakePaymentInput = {
2005
- customerEmail?: Scalars['Email']['input'];
2006
- paymentMode: PaymentMode;
2007
- successUrl: Scalars['String']['input'];
2008
- cancelUrl: Scalars['String']['input'];
2009
- products: MakePaymentProductInput[];
2010
- automaticTax?: Scalars['Boolean']['input'];
2011
- recurringInterval?: PaymentReccuringInterval;
2012
- };
2013
-
2014
- export type MakePaymentProductInput = {
2015
- name: Scalars['String']['input'];
2016
- unitAmount: Scalars['Int']['input'];
2017
- quantity: Scalars['Int']['input'];
2018
- };
2019
-
2020
- export type CancelSubscriptionInput = {
2021
- email: Scalars['Email']['input'];
2022
- };
2023
-
2024
1979
  export type SendEmailInput = {
2025
1980
  from: Scalars['String']['input'];
2026
1981
  to: Scalars['String']['input'][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wabe",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "Your backend in minutes not days",
5
5
  "homepage": "https://wabe.dev",
6
6
  "author": {
@@ -36,14 +36,13 @@
36
36
  "jsonwebtoken": "9.0.2",
37
37
  "mongodb": "6.8.0",
38
38
  "otplib": "12.0.1",
39
- "wobe": "1.1.8",
39
+ "wobe": "1.1.9",
40
40
  "wobe-graphql-yoga": "1.2.5"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@parcel/watcher": "2.3.0",
44
44
  "@types/bun": "1.1.8",
45
45
  "@types/jsonwebtoken": "9.0.6",
46
- "@types/react": "^18.3.5",
47
46
  "@types/uuid": "9.0.6",
48
47
  "dts-bundle-generator": "9.5.1",
49
48
  "get-port": "7.1.0",