diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 19a022c..c7eceeb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,20 +11,20 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.23 + go-version: 1.26 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'npm' - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/go-build diff --git a/ent/client.go b/ent/client.go index 1bd0359..d0cc0a7 100644 --- a/ent/client.go +++ b/ent/client.go @@ -302,8 +302,8 @@ func (c *PasswordTokenClient) Update() *PasswordTokenUpdate { } // UpdateOne returns an update builder for the given entity. -func (c *PasswordTokenClient) UpdateOne(pt *PasswordToken) *PasswordTokenUpdateOne { - mutation := newPasswordTokenMutation(c.config, OpUpdateOne, withPasswordToken(pt)) +func (c *PasswordTokenClient) UpdateOne(_m *PasswordToken) *PasswordTokenUpdateOne { + mutation := newPasswordTokenMutation(c.config, OpUpdateOne, withPasswordToken(_m)) return &PasswordTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } @@ -320,8 +320,8 @@ func (c *PasswordTokenClient) Delete() *PasswordTokenDelete { } // DeleteOne returns a builder for deleting the given entity. -func (c *PasswordTokenClient) DeleteOne(pt *PasswordToken) *PasswordTokenDeleteOne { - return c.DeleteOneID(pt.ID) +func (c *PasswordTokenClient) DeleteOne(_m *PasswordToken) *PasswordTokenDeleteOne { + return c.DeleteOneID(_m.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. @@ -356,16 +356,16 @@ func (c *PasswordTokenClient) GetX(ctx context.Context, id int) *PasswordToken { } // QueryUser queries the user edge of a PasswordToken. -func (c *PasswordTokenClient) QueryUser(pt *PasswordToken) *UserQuery { +func (c *PasswordTokenClient) QueryUser(_m *PasswordToken) *UserQuery { query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pt.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(passwordtoken.Table, passwordtoken.FieldID, id), sqlgraph.To(user.Table, user.FieldID), sqlgraph.Edge(sqlgraph.M2O, false, passwordtoken.UserTable, passwordtoken.UserColumn), ) - fromV = sqlgraph.Neighbors(pt.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query @@ -452,8 +452,8 @@ func (c *PaymentCustomerClient) Update() *PaymentCustomerUpdate { } // UpdateOne returns an update builder for the given entity. -func (c *PaymentCustomerClient) UpdateOne(pc *PaymentCustomer) *PaymentCustomerUpdateOne { - mutation := newPaymentCustomerMutation(c.config, OpUpdateOne, withPaymentCustomer(pc)) +func (c *PaymentCustomerClient) UpdateOne(_m *PaymentCustomer) *PaymentCustomerUpdateOne { + mutation := newPaymentCustomerMutation(c.config, OpUpdateOne, withPaymentCustomer(_m)) return &PaymentCustomerUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } @@ -470,8 +470,8 @@ func (c *PaymentCustomerClient) Delete() *PaymentCustomerDelete { } // DeleteOne returns a builder for deleting the given entity. -func (c *PaymentCustomerClient) DeleteOne(pc *PaymentCustomer) *PaymentCustomerDeleteOne { - return c.DeleteOneID(pc.ID) +func (c *PaymentCustomerClient) DeleteOne(_m *PaymentCustomer) *PaymentCustomerDeleteOne { + return c.DeleteOneID(_m.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. @@ -506,64 +506,64 @@ func (c *PaymentCustomerClient) GetX(ctx context.Context, id int) *PaymentCustom } // QueryUser queries the user edge of a PaymentCustomer. -func (c *PaymentCustomerClient) QueryUser(pc *PaymentCustomer) *UserQuery { +func (c *PaymentCustomerClient) QueryUser(_m *PaymentCustomer) *UserQuery { query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pc.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(paymentcustomer.Table, paymentcustomer.FieldID, id), sqlgraph.To(user.Table, user.FieldID), sqlgraph.Edge(sqlgraph.O2O, false, paymentcustomer.UserTable, paymentcustomer.UserColumn), ) - fromV = sqlgraph.Neighbors(pc.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query } // QueryPaymentIntents queries the payment_intents edge of a PaymentCustomer. -func (c *PaymentCustomerClient) QueryPaymentIntents(pc *PaymentCustomer) *PaymentIntentQuery { +func (c *PaymentCustomerClient) QueryPaymentIntents(_m *PaymentCustomer) *PaymentIntentQuery { query := (&PaymentIntentClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pc.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(paymentcustomer.Table, paymentcustomer.FieldID, id), sqlgraph.To(paymentintent.Table, paymentintent.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, paymentcustomer.PaymentIntentsTable, paymentcustomer.PaymentIntentsColumn), ) - fromV = sqlgraph.Neighbors(pc.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query } // QuerySubscriptions queries the subscriptions edge of a PaymentCustomer. -func (c *PaymentCustomerClient) QuerySubscriptions(pc *PaymentCustomer) *SubscriptionQuery { +func (c *PaymentCustomerClient) QuerySubscriptions(_m *PaymentCustomer) *SubscriptionQuery { query := (&SubscriptionClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pc.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(paymentcustomer.Table, paymentcustomer.FieldID, id), sqlgraph.To(subscription.Table, subscription.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, paymentcustomer.SubscriptionsTable, paymentcustomer.SubscriptionsColumn), ) - fromV = sqlgraph.Neighbors(pc.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query } // QueryPaymentMethods queries the payment_methods edge of a PaymentCustomer. -func (c *PaymentCustomerClient) QueryPaymentMethods(pc *PaymentCustomer) *PaymentMethodQuery { +func (c *PaymentCustomerClient) QueryPaymentMethods(_m *PaymentCustomer) *PaymentMethodQuery { query := (&PaymentMethodClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pc.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(paymentcustomer.Table, paymentcustomer.FieldID, id), sqlgraph.To(paymentmethod.Table, paymentmethod.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, paymentcustomer.PaymentMethodsTable, paymentcustomer.PaymentMethodsColumn), ) - fromV = sqlgraph.Neighbors(pc.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query @@ -649,8 +649,8 @@ func (c *PaymentIntentClient) Update() *PaymentIntentUpdate { } // UpdateOne returns an update builder for the given entity. -func (c *PaymentIntentClient) UpdateOne(pi *PaymentIntent) *PaymentIntentUpdateOne { - mutation := newPaymentIntentMutation(c.config, OpUpdateOne, withPaymentIntent(pi)) +func (c *PaymentIntentClient) UpdateOne(_m *PaymentIntent) *PaymentIntentUpdateOne { + mutation := newPaymentIntentMutation(c.config, OpUpdateOne, withPaymentIntent(_m)) return &PaymentIntentUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } @@ -667,8 +667,8 @@ func (c *PaymentIntentClient) Delete() *PaymentIntentDelete { } // DeleteOne returns a builder for deleting the given entity. -func (c *PaymentIntentClient) DeleteOne(pi *PaymentIntent) *PaymentIntentDeleteOne { - return c.DeleteOneID(pi.ID) +func (c *PaymentIntentClient) DeleteOne(_m *PaymentIntent) *PaymentIntentDeleteOne { + return c.DeleteOneID(_m.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. @@ -703,16 +703,16 @@ func (c *PaymentIntentClient) GetX(ctx context.Context, id int) *PaymentIntent { } // QueryCustomer queries the customer edge of a PaymentIntent. -func (c *PaymentIntentClient) QueryCustomer(pi *PaymentIntent) *PaymentCustomerQuery { +func (c *PaymentIntentClient) QueryCustomer(_m *PaymentIntent) *PaymentCustomerQuery { query := (&PaymentCustomerClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pi.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(paymentintent.Table, paymentintent.FieldID, id), sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, paymentintent.CustomerTable, paymentintent.CustomerColumn), ) - fromV = sqlgraph.Neighbors(pi.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query @@ -798,8 +798,8 @@ func (c *PaymentMethodClient) Update() *PaymentMethodUpdate { } // UpdateOne returns an update builder for the given entity. -func (c *PaymentMethodClient) UpdateOne(pm *PaymentMethod) *PaymentMethodUpdateOne { - mutation := newPaymentMethodMutation(c.config, OpUpdateOne, withPaymentMethod(pm)) +func (c *PaymentMethodClient) UpdateOne(_m *PaymentMethod) *PaymentMethodUpdateOne { + mutation := newPaymentMethodMutation(c.config, OpUpdateOne, withPaymentMethod(_m)) return &PaymentMethodUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } @@ -816,8 +816,8 @@ func (c *PaymentMethodClient) Delete() *PaymentMethodDelete { } // DeleteOne returns a builder for deleting the given entity. -func (c *PaymentMethodClient) DeleteOne(pm *PaymentMethod) *PaymentMethodDeleteOne { - return c.DeleteOneID(pm.ID) +func (c *PaymentMethodClient) DeleteOne(_m *PaymentMethod) *PaymentMethodDeleteOne { + return c.DeleteOneID(_m.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. @@ -852,16 +852,16 @@ func (c *PaymentMethodClient) GetX(ctx context.Context, id int) *PaymentMethod { } // QueryCustomer queries the customer edge of a PaymentMethod. -func (c *PaymentMethodClient) QueryCustomer(pm *PaymentMethod) *PaymentCustomerQuery { +func (c *PaymentMethodClient) QueryCustomer(_m *PaymentMethod) *PaymentCustomerQuery { query := (&PaymentCustomerClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pm.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(paymentmethod.Table, paymentmethod.FieldID, id), sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, paymentmethod.CustomerTable, paymentmethod.CustomerColumn), ) - fromV = sqlgraph.Neighbors(pm.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query @@ -947,8 +947,8 @@ func (c *SubscriptionClient) Update() *SubscriptionUpdate { } // UpdateOne returns an update builder for the given entity. -func (c *SubscriptionClient) UpdateOne(s *Subscription) *SubscriptionUpdateOne { - mutation := newSubscriptionMutation(c.config, OpUpdateOne, withSubscription(s)) +func (c *SubscriptionClient) UpdateOne(_m *Subscription) *SubscriptionUpdateOne { + mutation := newSubscriptionMutation(c.config, OpUpdateOne, withSubscription(_m)) return &SubscriptionUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } @@ -965,8 +965,8 @@ func (c *SubscriptionClient) Delete() *SubscriptionDelete { } // DeleteOne returns a builder for deleting the given entity. -func (c *SubscriptionClient) DeleteOne(s *Subscription) *SubscriptionDeleteOne { - return c.DeleteOneID(s.ID) +func (c *SubscriptionClient) DeleteOne(_m *Subscription) *SubscriptionDeleteOne { + return c.DeleteOneID(_m.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. @@ -1001,16 +1001,16 @@ func (c *SubscriptionClient) GetX(ctx context.Context, id int) *Subscription { } // QueryCustomer queries the customer edge of a Subscription. -func (c *SubscriptionClient) QueryCustomer(s *Subscription) *PaymentCustomerQuery { +func (c *SubscriptionClient) QueryCustomer(_m *Subscription) *PaymentCustomerQuery { query := (&PaymentCustomerClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := s.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(subscription.Table, subscription.FieldID, id), sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, subscription.CustomerTable, subscription.CustomerColumn), ) - fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query @@ -1096,8 +1096,8 @@ func (c *UserClient) Update() *UserUpdate { } // UpdateOne returns an update builder for the given entity. -func (c *UserClient) UpdateOne(u *User) *UserUpdateOne { - mutation := newUserMutation(c.config, OpUpdateOne, withUser(u)) +func (c *UserClient) UpdateOne(_m *User) *UserUpdateOne { + mutation := newUserMutation(c.config, OpUpdateOne, withUser(_m)) return &UserUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } @@ -1114,8 +1114,8 @@ func (c *UserClient) Delete() *UserDelete { } // DeleteOne returns a builder for deleting the given entity. -func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { - return c.DeleteOneID(u.ID) +func (c *UserClient) DeleteOne(_m *User) *UserDeleteOne { + return c.DeleteOneID(_m.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. @@ -1150,32 +1150,32 @@ func (c *UserClient) GetX(ctx context.Context, id int) *User { } // QueryOwner queries the owner edge of a User. -func (c *UserClient) QueryOwner(u *User) *PasswordTokenQuery { +func (c *UserClient) QueryOwner(_m *User) *PasswordTokenQuery { query := (&PasswordTokenClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := u.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(user.Table, user.FieldID, id), sqlgraph.To(passwordtoken.Table, passwordtoken.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, user.OwnerTable, user.OwnerColumn), ) - fromV = sqlgraph.Neighbors(u.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query } // QueryPaymentCustomer queries the payment_customer edge of a User. -func (c *UserClient) QueryPaymentCustomer(u *User) *PaymentCustomerQuery { +func (c *UserClient) QueryPaymentCustomer(_m *User) *PaymentCustomerQuery { query := (&PaymentCustomerClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := u.ID + id := _m.ID step := sqlgraph.NewStep( sqlgraph.From(user.Table, user.FieldID, id), sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.O2O, true, user.PaymentCustomerTable, user.PaymentCustomerColumn), ) - fromV = sqlgraph.Neighbors(u.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) return fromV, nil } return query diff --git a/ent/ent.go b/ent/ent.go index a1fa3e8..19805ac 100644 --- a/ent/ent.go +++ b/ent/ent.go @@ -75,7 +75,7 @@ var ( ) // checkColumn checks if the column exists in the given table. -func checkColumn(table, column string) error { +func checkColumn(t, c string) error { initCheck.Do(func() { columnCheck = sql.NewColumnCheck(map[string]func(string) bool{ passwordtoken.Table: passwordtoken.ValidColumn, @@ -86,7 +86,7 @@ func checkColumn(table, column string) error { user.Table: user.ValidColumn, }) }) - return columnCheck(table, column) + return columnCheck(t, c) } // Asc applies the given fields in ASC order. diff --git a/ent/passwordtoken.go b/ent/passwordtoken.go index 6bdce72..0663779 100644 --- a/ent/passwordtoken.go +++ b/ent/passwordtoken.go @@ -70,7 +70,7 @@ func (*PasswordToken) scanValues(columns []string) ([]any, error) { // assignValues assigns the values that were returned from sql.Rows (after scanning) // to the PasswordToken fields. -func (pt *PasswordToken) assignValues(columns []string, values []any) error { +func (_m *PasswordToken) assignValues(columns []string, values []any) error { if m, n := len(values), len(columns); m < n { return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) } @@ -81,27 +81,27 @@ func (pt *PasswordToken) assignValues(columns []string, values []any) error { if !ok { return fmt.Errorf("unexpected type %T for field id", value) } - pt.ID = int(value.Int64) + _m.ID = int(value.Int64) case passwordtoken.FieldToken: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field token", values[i]) } else if value.Valid { - pt.Token = value.String + _m.Token = value.String } case passwordtoken.FieldUserID: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for field user_id", values[i]) } else if value.Valid { - pt.UserID = int(value.Int64) + _m.UserID = int(value.Int64) } case passwordtoken.FieldCreatedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field created_at", values[i]) } else if value.Valid { - pt.CreatedAt = value.Time + _m.CreatedAt = value.Time } default: - pt.selectValues.Set(columns[i], values[i]) + _m.selectValues.Set(columns[i], values[i]) } } return nil @@ -109,45 +109,45 @@ func (pt *PasswordToken) assignValues(columns []string, values []any) error { // Value returns the ent.Value that was dynamically selected and assigned to the PasswordToken. // This includes values selected through modifiers, order, etc. -func (pt *PasswordToken) Value(name string) (ent.Value, error) { - return pt.selectValues.Get(name) +func (_m *PasswordToken) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) } // QueryUser queries the "user" edge of the PasswordToken entity. -func (pt *PasswordToken) QueryUser() *UserQuery { - return NewPasswordTokenClient(pt.config).QueryUser(pt) +func (_m *PasswordToken) QueryUser() *UserQuery { + return NewPasswordTokenClient(_m.config).QueryUser(_m) } // Update returns a builder for updating this PasswordToken. // Note that you need to call PasswordToken.Unwrap() before calling this method if this PasswordToken // was returned from a transaction, and the transaction was committed or rolled back. -func (pt *PasswordToken) Update() *PasswordTokenUpdateOne { - return NewPasswordTokenClient(pt.config).UpdateOne(pt) +func (_m *PasswordToken) Update() *PasswordTokenUpdateOne { + return NewPasswordTokenClient(_m.config).UpdateOne(_m) } // Unwrap unwraps the PasswordToken entity that was returned from a transaction after it was closed, // so that all future queries will be executed through the driver which created the transaction. -func (pt *PasswordToken) Unwrap() *PasswordToken { - _tx, ok := pt.config.driver.(*txDriver) +func (_m *PasswordToken) Unwrap() *PasswordToken { + _tx, ok := _m.config.driver.(*txDriver) if !ok { panic("ent: PasswordToken is not a transactional entity") } - pt.config.driver = _tx.drv - return pt + _m.config.driver = _tx.drv + return _m } // String implements the fmt.Stringer. -func (pt *PasswordToken) String() string { +func (_m *PasswordToken) String() string { var builder strings.Builder builder.WriteString("PasswordToken(") - builder.WriteString(fmt.Sprintf("id=%v, ", pt.ID)) + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) builder.WriteString("token=") builder.WriteString(", ") builder.WriteString("user_id=") - builder.WriteString(fmt.Sprintf("%v", pt.UserID)) + builder.WriteString(fmt.Sprintf("%v", _m.UserID)) builder.WriteString(", ") builder.WriteString("created_at=") - builder.WriteString(pt.CreatedAt.Format(time.ANSIC)) + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) builder.WriteByte(')') return builder.String() } diff --git a/ent/passwordtoken_create.go b/ent/passwordtoken_create.go index 1369127..abeade2 100644 --- a/ent/passwordtoken_create.go +++ b/ent/passwordtoken_create.go @@ -22,52 +22,52 @@ type PasswordTokenCreate struct { } // SetToken sets the "token" field. -func (ptc *PasswordTokenCreate) SetToken(s string) *PasswordTokenCreate { - ptc.mutation.SetToken(s) - return ptc +func (_c *PasswordTokenCreate) SetToken(v string) *PasswordTokenCreate { + _c.mutation.SetToken(v) + return _c } // SetUserID sets the "user_id" field. -func (ptc *PasswordTokenCreate) SetUserID(i int) *PasswordTokenCreate { - ptc.mutation.SetUserID(i) - return ptc +func (_c *PasswordTokenCreate) SetUserID(v int) *PasswordTokenCreate { + _c.mutation.SetUserID(v) + return _c } // SetCreatedAt sets the "created_at" field. -func (ptc *PasswordTokenCreate) SetCreatedAt(t time.Time) *PasswordTokenCreate { - ptc.mutation.SetCreatedAt(t) - return ptc +func (_c *PasswordTokenCreate) SetCreatedAt(v time.Time) *PasswordTokenCreate { + _c.mutation.SetCreatedAt(v) + return _c } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (ptc *PasswordTokenCreate) SetNillableCreatedAt(t *time.Time) *PasswordTokenCreate { - if t != nil { - ptc.SetCreatedAt(*t) +func (_c *PasswordTokenCreate) SetNillableCreatedAt(v *time.Time) *PasswordTokenCreate { + if v != nil { + _c.SetCreatedAt(*v) } - return ptc + return _c } // SetUser sets the "user" edge to the User entity. -func (ptc *PasswordTokenCreate) SetUser(u *User) *PasswordTokenCreate { - return ptc.SetUserID(u.ID) +func (_c *PasswordTokenCreate) SetUser(v *User) *PasswordTokenCreate { + return _c.SetUserID(v.ID) } // Mutation returns the PasswordTokenMutation object of the builder. -func (ptc *PasswordTokenCreate) Mutation() *PasswordTokenMutation { - return ptc.mutation +func (_c *PasswordTokenCreate) Mutation() *PasswordTokenMutation { + return _c.mutation } // Save creates the PasswordToken in the database. -func (ptc *PasswordTokenCreate) Save(ctx context.Context) (*PasswordToken, error) { - if err := ptc.defaults(); err != nil { +func (_c *PasswordTokenCreate) Save(ctx context.Context) (*PasswordToken, error) { + if err := _c.defaults(); err != nil { return nil, err } - return withHooks(ctx, ptc.sqlSave, ptc.mutation, ptc.hooks) + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) } // SaveX calls Save and panics if Save returns an error. -func (ptc *PasswordTokenCreate) SaveX(ctx context.Context) *PasswordToken { - v, err := ptc.Save(ctx) +func (_c *PasswordTokenCreate) SaveX(ctx context.Context) *PasswordToken { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -75,58 +75,58 @@ func (ptc *PasswordTokenCreate) SaveX(ctx context.Context) *PasswordToken { } // Exec executes the query. -func (ptc *PasswordTokenCreate) Exec(ctx context.Context) error { - _, err := ptc.Save(ctx) +func (_c *PasswordTokenCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (ptc *PasswordTokenCreate) ExecX(ctx context.Context) { - if err := ptc.Exec(ctx); err != nil { +func (_c *PasswordTokenCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (ptc *PasswordTokenCreate) defaults() error { - if _, ok := ptc.mutation.CreatedAt(); !ok { +func (_c *PasswordTokenCreate) defaults() error { + if _, ok := _c.mutation.CreatedAt(); !ok { if passwordtoken.DefaultCreatedAt == nil { return fmt.Errorf("ent: uninitialized passwordtoken.DefaultCreatedAt (forgotten import ent/runtime?)") } v := passwordtoken.DefaultCreatedAt() - ptc.mutation.SetCreatedAt(v) + _c.mutation.SetCreatedAt(v) } return nil } // check runs all checks and user-defined validators on the builder. -func (ptc *PasswordTokenCreate) check() error { - if _, ok := ptc.mutation.Token(); !ok { +func (_c *PasswordTokenCreate) check() error { + if _, ok := _c.mutation.Token(); !ok { return &ValidationError{Name: "token", err: errors.New(`ent: missing required field "PasswordToken.token"`)} } - if v, ok := ptc.mutation.Token(); ok { + if v, ok := _c.mutation.Token(); ok { if err := passwordtoken.TokenValidator(v); err != nil { return &ValidationError{Name: "token", err: fmt.Errorf(`ent: validator failed for field "PasswordToken.token": %w`, err)} } } - if _, ok := ptc.mutation.UserID(); !ok { + if _, ok := _c.mutation.UserID(); !ok { return &ValidationError{Name: "user_id", err: errors.New(`ent: missing required field "PasswordToken.user_id"`)} } - if _, ok := ptc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "PasswordToken.created_at"`)} } - if len(ptc.mutation.UserIDs()) == 0 { + if len(_c.mutation.UserIDs()) == 0 { return &ValidationError{Name: "user", err: errors.New(`ent: missing required edge "PasswordToken.user"`)} } return nil } -func (ptc *PasswordTokenCreate) sqlSave(ctx context.Context) (*PasswordToken, error) { - if err := ptc.check(); err != nil { +func (_c *PasswordTokenCreate) sqlSave(ctx context.Context) (*PasswordToken, error) { + if err := _c.check(); err != nil { return nil, err } - _node, _spec := ptc.createSpec() - if err := sqlgraph.CreateNode(ctx, ptc.driver, _spec); err != nil { + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -134,25 +134,25 @@ func (ptc *PasswordTokenCreate) sqlSave(ctx context.Context) (*PasswordToken, er } id := _spec.ID.Value.(int64) _node.ID = int(id) - ptc.mutation.id = &_node.ID - ptc.mutation.done = true + _c.mutation.id = &_node.ID + _c.mutation.done = true return _node, nil } -func (ptc *PasswordTokenCreate) createSpec() (*PasswordToken, *sqlgraph.CreateSpec) { +func (_c *PasswordTokenCreate) createSpec() (*PasswordToken, *sqlgraph.CreateSpec) { var ( - _node = &PasswordToken{config: ptc.config} + _node = &PasswordToken{config: _c.config} _spec = sqlgraph.NewCreateSpec(passwordtoken.Table, sqlgraph.NewFieldSpec(passwordtoken.FieldID, field.TypeInt)) ) - if value, ok := ptc.mutation.Token(); ok { + if value, ok := _c.mutation.Token(); ok { _spec.SetField(passwordtoken.FieldToken, field.TypeString, value) _node.Token = value } - if value, ok := ptc.mutation.CreatedAt(); ok { + if value, ok := _c.mutation.CreatedAt(); ok { _spec.SetField(passwordtoken.FieldCreatedAt, field.TypeTime, value) _node.CreatedAt = value } - if nodes := ptc.mutation.UserIDs(); len(nodes) > 0 { + if nodes := _c.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, @@ -180,16 +180,16 @@ type PasswordTokenCreateBulk struct { } // Save creates the PasswordToken entities in the database. -func (ptcb *PasswordTokenCreateBulk) Save(ctx context.Context) ([]*PasswordToken, error) { - if ptcb.err != nil { - return nil, ptcb.err +func (_c *PasswordTokenCreateBulk) Save(ctx context.Context) ([]*PasswordToken, error) { + if _c.err != nil { + return nil, _c.err } - specs := make([]*sqlgraph.CreateSpec, len(ptcb.builders)) - nodes := make([]*PasswordToken, len(ptcb.builders)) - mutators := make([]Mutator, len(ptcb.builders)) - for i := range ptcb.builders { + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*PasswordToken, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { func(i int, root context.Context) { - builder := ptcb.builders[i] + builder := _c.builders[i] builder.defaults() var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { mutation, ok := m.(*PasswordTokenMutation) @@ -203,11 +203,11 @@ func (ptcb *PasswordTokenCreateBulk) Save(ctx context.Context) ([]*PasswordToken var err error nodes[i], specs[i] = builder.createSpec() if i < len(mutators)-1 { - _, err = mutators[i+1].Mutate(root, ptcb.builders[i+1].mutation) + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) } else { spec := &sqlgraph.BatchCreateSpec{Nodes: specs} // Invoke the actual operation on the latest mutation in the chain. - if err = sqlgraph.BatchCreate(ctx, ptcb.driver, spec); err != nil { + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -231,7 +231,7 @@ func (ptcb *PasswordTokenCreateBulk) Save(ctx context.Context) ([]*PasswordToken }(i, ctx) } if len(mutators) > 0 { - if _, err := mutators[0].Mutate(ctx, ptcb.builders[0].mutation); err != nil { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { return nil, err } } @@ -239,8 +239,8 @@ func (ptcb *PasswordTokenCreateBulk) Save(ctx context.Context) ([]*PasswordToken } // SaveX is like Save, but panics if an error occurs. -func (ptcb *PasswordTokenCreateBulk) SaveX(ctx context.Context) []*PasswordToken { - v, err := ptcb.Save(ctx) +func (_c *PasswordTokenCreateBulk) SaveX(ctx context.Context) []*PasswordToken { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -248,14 +248,14 @@ func (ptcb *PasswordTokenCreateBulk) SaveX(ctx context.Context) []*PasswordToken } // Exec executes the query. -func (ptcb *PasswordTokenCreateBulk) Exec(ctx context.Context) error { - _, err := ptcb.Save(ctx) +func (_c *PasswordTokenCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (ptcb *PasswordTokenCreateBulk) ExecX(ctx context.Context) { - if err := ptcb.Exec(ctx); err != nil { +func (_c *PasswordTokenCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/passwordtoken_delete.go b/ent/passwordtoken_delete.go index ed49101..1b92307 100644 --- a/ent/passwordtoken_delete.go +++ b/ent/passwordtoken_delete.go @@ -20,56 +20,56 @@ type PasswordTokenDelete struct { } // Where appends a list predicates to the PasswordTokenDelete builder. -func (ptd *PasswordTokenDelete) Where(ps ...predicate.PasswordToken) *PasswordTokenDelete { - ptd.mutation.Where(ps...) - return ptd +func (_d *PasswordTokenDelete) Where(ps ...predicate.PasswordToken) *PasswordTokenDelete { + _d.mutation.Where(ps...) + return _d } // Exec executes the deletion query and returns how many vertices were deleted. -func (ptd *PasswordTokenDelete) Exec(ctx context.Context) (int, error) { - return withHooks(ctx, ptd.sqlExec, ptd.mutation, ptd.hooks) +func (_d *PasswordTokenDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) } // ExecX is like Exec, but panics if an error occurs. -func (ptd *PasswordTokenDelete) ExecX(ctx context.Context) int { - n, err := ptd.Exec(ctx) +func (_d *PasswordTokenDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) if err != nil { panic(err) } return n } -func (ptd *PasswordTokenDelete) sqlExec(ctx context.Context) (int, error) { +func (_d *PasswordTokenDelete) sqlExec(ctx context.Context) (int, error) { _spec := sqlgraph.NewDeleteSpec(passwordtoken.Table, sqlgraph.NewFieldSpec(passwordtoken.FieldID, field.TypeInt)) - if ps := ptd.mutation.predicates; len(ps) > 0 { + if ps := _d.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - affected, err := sqlgraph.DeleteNodes(ctx, ptd.driver, _spec) + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) if err != nil && sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } - ptd.mutation.done = true + _d.mutation.done = true return affected, err } // PasswordTokenDeleteOne is the builder for deleting a single PasswordToken entity. type PasswordTokenDeleteOne struct { - ptd *PasswordTokenDelete + _d *PasswordTokenDelete } // Where appends a list predicates to the PasswordTokenDelete builder. -func (ptdo *PasswordTokenDeleteOne) Where(ps ...predicate.PasswordToken) *PasswordTokenDeleteOne { - ptdo.ptd.mutation.Where(ps...) - return ptdo +func (_d *PasswordTokenDeleteOne) Where(ps ...predicate.PasswordToken) *PasswordTokenDeleteOne { + _d._d.mutation.Where(ps...) + return _d } // Exec executes the deletion query. -func (ptdo *PasswordTokenDeleteOne) Exec(ctx context.Context) error { - n, err := ptdo.ptd.Exec(ctx) +func (_d *PasswordTokenDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) switch { case err != nil: return err @@ -81,8 +81,8 @@ func (ptdo *PasswordTokenDeleteOne) Exec(ctx context.Context) error { } // ExecX is like Exec, but panics if an error occurs. -func (ptdo *PasswordTokenDeleteOne) ExecX(ctx context.Context) { - if err := ptdo.Exec(ctx); err != nil { +func (_d *PasswordTokenDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/passwordtoken_query.go b/ent/passwordtoken_query.go index 273a71e..6918aa8 100644 --- a/ent/passwordtoken_query.go +++ b/ent/passwordtoken_query.go @@ -30,44 +30,44 @@ type PasswordTokenQuery struct { } // Where adds a new predicate for the PasswordTokenQuery builder. -func (ptq *PasswordTokenQuery) Where(ps ...predicate.PasswordToken) *PasswordTokenQuery { - ptq.predicates = append(ptq.predicates, ps...) - return ptq +func (_q *PasswordTokenQuery) Where(ps ...predicate.PasswordToken) *PasswordTokenQuery { + _q.predicates = append(_q.predicates, ps...) + return _q } // Limit the number of records to be returned by this query. -func (ptq *PasswordTokenQuery) Limit(limit int) *PasswordTokenQuery { - ptq.ctx.Limit = &limit - return ptq +func (_q *PasswordTokenQuery) Limit(limit int) *PasswordTokenQuery { + _q.ctx.Limit = &limit + return _q } // Offset to start from. -func (ptq *PasswordTokenQuery) Offset(offset int) *PasswordTokenQuery { - ptq.ctx.Offset = &offset - return ptq +func (_q *PasswordTokenQuery) Offset(offset int) *PasswordTokenQuery { + _q.ctx.Offset = &offset + return _q } // Unique configures the query builder to filter duplicate records on query. // By default, unique is set to true, and can be disabled using this method. -func (ptq *PasswordTokenQuery) Unique(unique bool) *PasswordTokenQuery { - ptq.ctx.Unique = &unique - return ptq +func (_q *PasswordTokenQuery) Unique(unique bool) *PasswordTokenQuery { + _q.ctx.Unique = &unique + return _q } // Order specifies how the records should be ordered. -func (ptq *PasswordTokenQuery) Order(o ...passwordtoken.OrderOption) *PasswordTokenQuery { - ptq.order = append(ptq.order, o...) - return ptq +func (_q *PasswordTokenQuery) Order(o ...passwordtoken.OrderOption) *PasswordTokenQuery { + _q.order = append(_q.order, o...) + return _q } // QueryUser chains the current query on the "user" edge. -func (ptq *PasswordTokenQuery) QueryUser() *UserQuery { - query := (&UserClient{config: ptq.config}).Query() +func (_q *PasswordTokenQuery) QueryUser() *UserQuery { + query := (&UserClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := ptq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := ptq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -76,7 +76,7 @@ func (ptq *PasswordTokenQuery) QueryUser() *UserQuery { sqlgraph.To(user.Table, user.FieldID), sqlgraph.Edge(sqlgraph.M2O, false, passwordtoken.UserTable, passwordtoken.UserColumn), ) - fromU = sqlgraph.SetNeighbors(ptq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query @@ -84,8 +84,8 @@ func (ptq *PasswordTokenQuery) QueryUser() *UserQuery { // First returns the first PasswordToken entity from the query. // Returns a *NotFoundError when no PasswordToken was found. -func (ptq *PasswordTokenQuery) First(ctx context.Context) (*PasswordToken, error) { - nodes, err := ptq.Limit(1).All(setContextOp(ctx, ptq.ctx, ent.OpQueryFirst)) +func (_q *PasswordTokenQuery) First(ctx context.Context) (*PasswordToken, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) if err != nil { return nil, err } @@ -96,8 +96,8 @@ func (ptq *PasswordTokenQuery) First(ctx context.Context) (*PasswordToken, error } // FirstX is like First, but panics if an error occurs. -func (ptq *PasswordTokenQuery) FirstX(ctx context.Context) *PasswordToken { - node, err := ptq.First(ctx) +func (_q *PasswordTokenQuery) FirstX(ctx context.Context) *PasswordToken { + node, err := _q.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -106,9 +106,9 @@ func (ptq *PasswordTokenQuery) FirstX(ctx context.Context) *PasswordToken { // FirstID returns the first PasswordToken ID from the query. // Returns a *NotFoundError when no PasswordToken ID was found. -func (ptq *PasswordTokenQuery) FirstID(ctx context.Context) (id int, err error) { +func (_q *PasswordTokenQuery) FirstID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = ptq.Limit(1).IDs(setContextOp(ctx, ptq.ctx, ent.OpQueryFirstID)); err != nil { + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { return } if len(ids) == 0 { @@ -119,8 +119,8 @@ func (ptq *PasswordTokenQuery) FirstID(ctx context.Context) (id int, err error) } // FirstIDX is like FirstID, but panics if an error occurs. -func (ptq *PasswordTokenQuery) FirstIDX(ctx context.Context) int { - id, err := ptq.FirstID(ctx) +func (_q *PasswordTokenQuery) FirstIDX(ctx context.Context) int { + id, err := _q.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -130,8 +130,8 @@ func (ptq *PasswordTokenQuery) FirstIDX(ctx context.Context) int { // Only returns a single PasswordToken entity found by the query, ensuring it only returns one. // Returns a *NotSingularError when more than one PasswordToken entity is found. // Returns a *NotFoundError when no PasswordToken entities are found. -func (ptq *PasswordTokenQuery) Only(ctx context.Context) (*PasswordToken, error) { - nodes, err := ptq.Limit(2).All(setContextOp(ctx, ptq.ctx, ent.OpQueryOnly)) +func (_q *PasswordTokenQuery) Only(ctx context.Context) (*PasswordToken, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) if err != nil { return nil, err } @@ -146,8 +146,8 @@ func (ptq *PasswordTokenQuery) Only(ctx context.Context) (*PasswordToken, error) } // OnlyX is like Only, but panics if an error occurs. -func (ptq *PasswordTokenQuery) OnlyX(ctx context.Context) *PasswordToken { - node, err := ptq.Only(ctx) +func (_q *PasswordTokenQuery) OnlyX(ctx context.Context) *PasswordToken { + node, err := _q.Only(ctx) if err != nil { panic(err) } @@ -157,9 +157,9 @@ func (ptq *PasswordTokenQuery) OnlyX(ctx context.Context) *PasswordToken { // OnlyID is like Only, but returns the only PasswordToken ID in the query. // Returns a *NotSingularError when more than one PasswordToken ID is found. // Returns a *NotFoundError when no entities are found. -func (ptq *PasswordTokenQuery) OnlyID(ctx context.Context) (id int, err error) { +func (_q *PasswordTokenQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = ptq.Limit(2).IDs(setContextOp(ctx, ptq.ctx, ent.OpQueryOnlyID)); err != nil { + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { return } switch len(ids) { @@ -174,8 +174,8 @@ func (ptq *PasswordTokenQuery) OnlyID(ctx context.Context) (id int, err error) { } // OnlyIDX is like OnlyID, but panics if an error occurs. -func (ptq *PasswordTokenQuery) OnlyIDX(ctx context.Context) int { - id, err := ptq.OnlyID(ctx) +func (_q *PasswordTokenQuery) OnlyIDX(ctx context.Context) int { + id, err := _q.OnlyID(ctx) if err != nil { panic(err) } @@ -183,18 +183,18 @@ func (ptq *PasswordTokenQuery) OnlyIDX(ctx context.Context) int { } // All executes the query and returns a list of PasswordTokens. -func (ptq *PasswordTokenQuery) All(ctx context.Context) ([]*PasswordToken, error) { - ctx = setContextOp(ctx, ptq.ctx, ent.OpQueryAll) - if err := ptq.prepareQuery(ctx); err != nil { +func (_q *PasswordTokenQuery) All(ctx context.Context) ([]*PasswordToken, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { return nil, err } qr := querierAll[[]*PasswordToken, *PasswordTokenQuery]() - return withInterceptors[[]*PasswordToken](ctx, ptq, qr, ptq.inters) + return withInterceptors[[]*PasswordToken](ctx, _q, qr, _q.inters) } // AllX is like All, but panics if an error occurs. -func (ptq *PasswordTokenQuery) AllX(ctx context.Context) []*PasswordToken { - nodes, err := ptq.All(ctx) +func (_q *PasswordTokenQuery) AllX(ctx context.Context) []*PasswordToken { + nodes, err := _q.All(ctx) if err != nil { panic(err) } @@ -202,20 +202,20 @@ func (ptq *PasswordTokenQuery) AllX(ctx context.Context) []*PasswordToken { } // IDs executes the query and returns a list of PasswordToken IDs. -func (ptq *PasswordTokenQuery) IDs(ctx context.Context) (ids []int, err error) { - if ptq.ctx.Unique == nil && ptq.path != nil { - ptq.Unique(true) +func (_q *PasswordTokenQuery) IDs(ctx context.Context) (ids []int, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) } - ctx = setContextOp(ctx, ptq.ctx, ent.OpQueryIDs) - if err = ptq.Select(passwordtoken.FieldID).Scan(ctx, &ids); err != nil { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(passwordtoken.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil } // IDsX is like IDs, but panics if an error occurs. -func (ptq *PasswordTokenQuery) IDsX(ctx context.Context) []int { - ids, err := ptq.IDs(ctx) +func (_q *PasswordTokenQuery) IDsX(ctx context.Context) []int { + ids, err := _q.IDs(ctx) if err != nil { panic(err) } @@ -223,17 +223,17 @@ func (ptq *PasswordTokenQuery) IDsX(ctx context.Context) []int { } // Count returns the count of the given query. -func (ptq *PasswordTokenQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, ptq.ctx, ent.OpQueryCount) - if err := ptq.prepareQuery(ctx); err != nil { +func (_q *PasswordTokenQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { return 0, err } - return withInterceptors[int](ctx, ptq, querierCount[*PasswordTokenQuery](), ptq.inters) + return withInterceptors[int](ctx, _q, querierCount[*PasswordTokenQuery](), _q.inters) } // CountX is like Count, but panics if an error occurs. -func (ptq *PasswordTokenQuery) CountX(ctx context.Context) int { - count, err := ptq.Count(ctx) +func (_q *PasswordTokenQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) if err != nil { panic(err) } @@ -241,9 +241,9 @@ func (ptq *PasswordTokenQuery) CountX(ctx context.Context) int { } // Exist returns true if the query has elements in the graph. -func (ptq *PasswordTokenQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, ptq.ctx, ent.OpQueryExist) - switch _, err := ptq.FirstID(ctx); { +func (_q *PasswordTokenQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { case IsNotFound(err): return false, nil case err != nil: @@ -254,8 +254,8 @@ func (ptq *PasswordTokenQuery) Exist(ctx context.Context) (bool, error) { } // ExistX is like Exist, but panics if an error occurs. -func (ptq *PasswordTokenQuery) ExistX(ctx context.Context) bool { - exist, err := ptq.Exist(ctx) +func (_q *PasswordTokenQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) if err != nil { panic(err) } @@ -264,32 +264,32 @@ func (ptq *PasswordTokenQuery) ExistX(ctx context.Context) bool { // Clone returns a duplicate of the PasswordTokenQuery builder, including all associated steps. It can be // used to prepare common query builders and use them differently after the clone is made. -func (ptq *PasswordTokenQuery) Clone() *PasswordTokenQuery { - if ptq == nil { +func (_q *PasswordTokenQuery) Clone() *PasswordTokenQuery { + if _q == nil { return nil } return &PasswordTokenQuery{ - config: ptq.config, - ctx: ptq.ctx.Clone(), - order: append([]passwordtoken.OrderOption{}, ptq.order...), - inters: append([]Interceptor{}, ptq.inters...), - predicates: append([]predicate.PasswordToken{}, ptq.predicates...), - withUser: ptq.withUser.Clone(), + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]passwordtoken.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.PasswordToken{}, _q.predicates...), + withUser: _q.withUser.Clone(), // clone intermediate query. - sql: ptq.sql.Clone(), - path: ptq.path, + sql: _q.sql.Clone(), + path: _q.path, } } // WithUser tells the query-builder to eager-load the nodes that are connected to // the "user" edge. The optional arguments are used to configure the query builder of the edge. -func (ptq *PasswordTokenQuery) WithUser(opts ...func(*UserQuery)) *PasswordTokenQuery { - query := (&UserClient{config: ptq.config}).Query() +func (_q *PasswordTokenQuery) WithUser(opts ...func(*UserQuery)) *PasswordTokenQuery { + query := (&UserClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - ptq.withUser = query - return ptq + _q.withUser = query + return _q } // GroupBy is used to group vertices by one or more fields/columns. @@ -306,10 +306,10 @@ func (ptq *PasswordTokenQuery) WithUser(opts ...func(*UserQuery)) *PasswordToken // GroupBy(passwordtoken.FieldToken). // Aggregate(ent.Count()). // Scan(ctx, &v) -func (ptq *PasswordTokenQuery) GroupBy(field string, fields ...string) *PasswordTokenGroupBy { - ptq.ctx.Fields = append([]string{field}, fields...) - grbuild := &PasswordTokenGroupBy{build: ptq} - grbuild.flds = &ptq.ctx.Fields +func (_q *PasswordTokenQuery) GroupBy(field string, fields ...string) *PasswordTokenGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &PasswordTokenGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields grbuild.label = passwordtoken.Label grbuild.scan = grbuild.Scan return grbuild @@ -327,58 +327,58 @@ func (ptq *PasswordTokenQuery) GroupBy(field string, fields ...string) *Password // client.PasswordToken.Query(). // Select(passwordtoken.FieldToken). // Scan(ctx, &v) -func (ptq *PasswordTokenQuery) Select(fields ...string) *PasswordTokenSelect { - ptq.ctx.Fields = append(ptq.ctx.Fields, fields...) - sbuild := &PasswordTokenSelect{PasswordTokenQuery: ptq} +func (_q *PasswordTokenQuery) Select(fields ...string) *PasswordTokenSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &PasswordTokenSelect{PasswordTokenQuery: _q} sbuild.label = passwordtoken.Label - sbuild.flds, sbuild.scan = &ptq.ctx.Fields, sbuild.Scan + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan return sbuild } // Aggregate returns a PasswordTokenSelect configured with the given aggregations. -func (ptq *PasswordTokenQuery) Aggregate(fns ...AggregateFunc) *PasswordTokenSelect { - return ptq.Select().Aggregate(fns...) +func (_q *PasswordTokenQuery) Aggregate(fns ...AggregateFunc) *PasswordTokenSelect { + return _q.Select().Aggregate(fns...) } -func (ptq *PasswordTokenQuery) prepareQuery(ctx context.Context) error { - for _, inter := range ptq.inters { +func (_q *PasswordTokenQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { if inter == nil { return fmt.Errorf("ent: uninitialized interceptor (forgotten import ent/runtime?)") } if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, ptq); err != nil { + if err := trv.Traverse(ctx, _q); err != nil { return err } } } - for _, f := range ptq.ctx.Fields { + for _, f := range _q.ctx.Fields { if !passwordtoken.ValidColumn(f) { return &ValidationError{Name: f, err: fmt.Errorf("ent: invalid field %q for query", f)} } } - if ptq.path != nil { - prev, err := ptq.path(ctx) + if _q.path != nil { + prev, err := _q.path(ctx) if err != nil { return err } - ptq.sql = prev + _q.sql = prev } return nil } -func (ptq *PasswordTokenQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PasswordToken, error) { +func (_q *PasswordTokenQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PasswordToken, error) { var ( nodes = []*PasswordToken{} - _spec = ptq.querySpec() + _spec = _q.querySpec() loadedTypes = [1]bool{ - ptq.withUser != nil, + _q.withUser != nil, } ) _spec.ScanValues = func(columns []string) ([]any, error) { return (*PasswordToken).scanValues(nil, columns) } _spec.Assign = func(columns []string, values []any) error { - node := &PasswordToken{config: ptq.config} + node := &PasswordToken{config: _q.config} nodes = append(nodes, node) node.Edges.loadedTypes = loadedTypes return node.assignValues(columns, values) @@ -386,14 +386,14 @@ func (ptq *PasswordTokenQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( for i := range hooks { hooks[i](ctx, _spec) } - if err := sqlgraph.QueryNodes(ctx, ptq.driver, _spec); err != nil { + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { return nil, err } if len(nodes) == 0 { return nodes, nil } - if query := ptq.withUser; query != nil { - if err := ptq.loadUser(ctx, query, nodes, nil, + if query := _q.withUser; query != nil { + if err := _q.loadUser(ctx, query, nodes, nil, func(n *PasswordToken, e *User) { n.Edges.User = e }); err != nil { return nil, err } @@ -401,7 +401,7 @@ func (ptq *PasswordTokenQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return nodes, nil } -func (ptq *PasswordTokenQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*PasswordToken, init func(*PasswordToken), assign func(*PasswordToken, *User)) error { +func (_q *PasswordTokenQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*PasswordToken, init func(*PasswordToken), assign func(*PasswordToken, *User)) error { ids := make([]int, 0, len(nodes)) nodeids := make(map[int][]*PasswordToken) for i := range nodes { @@ -431,24 +431,24 @@ func (ptq *PasswordTokenQuery) loadUser(ctx context.Context, query *UserQuery, n return nil } -func (ptq *PasswordTokenQuery) sqlCount(ctx context.Context) (int, error) { - _spec := ptq.querySpec() - _spec.Node.Columns = ptq.ctx.Fields - if len(ptq.ctx.Fields) > 0 { - _spec.Unique = ptq.ctx.Unique != nil && *ptq.ctx.Unique +func (_q *PasswordTokenQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique } - return sqlgraph.CountNodes(ctx, ptq.driver, _spec) + return sqlgraph.CountNodes(ctx, _q.driver, _spec) } -func (ptq *PasswordTokenQuery) querySpec() *sqlgraph.QuerySpec { +func (_q *PasswordTokenQuery) querySpec() *sqlgraph.QuerySpec { _spec := sqlgraph.NewQuerySpec(passwordtoken.Table, passwordtoken.Columns, sqlgraph.NewFieldSpec(passwordtoken.FieldID, field.TypeInt)) - _spec.From = ptq.sql - if unique := ptq.ctx.Unique; unique != nil { + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { _spec.Unique = *unique - } else if ptq.path != nil { + } else if _q.path != nil { _spec.Unique = true } - if fields := ptq.ctx.Fields; len(fields) > 0 { + if fields := _q.ctx.Fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, passwordtoken.FieldID) for i := range fields { @@ -456,24 +456,24 @@ func (ptq *PasswordTokenQuery) querySpec() *sqlgraph.QuerySpec { _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) } } - if ptq.withUser != nil { + if _q.withUser != nil { _spec.Node.AddColumnOnce(passwordtoken.FieldUserID) } } - if ps := ptq.predicates; len(ps) > 0 { + if ps := _q.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if limit := ptq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { _spec.Limit = *limit } - if offset := ptq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { _spec.Offset = *offset } - if ps := ptq.order; len(ps) > 0 { + if ps := _q.order; len(ps) > 0 { _spec.Order = func(selector *sql.Selector) { for i := range ps { ps[i](selector) @@ -483,33 +483,33 @@ func (ptq *PasswordTokenQuery) querySpec() *sqlgraph.QuerySpec { return _spec } -func (ptq *PasswordTokenQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(ptq.driver.Dialect()) +func (_q *PasswordTokenQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) t1 := builder.Table(passwordtoken.Table) - columns := ptq.ctx.Fields + columns := _q.ctx.Fields if len(columns) == 0 { columns = passwordtoken.Columns } selector := builder.Select(t1.Columns(columns...)...).From(t1) - if ptq.sql != nil { - selector = ptq.sql + if _q.sql != nil { + selector = _q.sql selector.Select(selector.Columns(columns...)...) } - if ptq.ctx.Unique != nil && *ptq.ctx.Unique { + if _q.ctx.Unique != nil && *_q.ctx.Unique { selector.Distinct() } - for _, p := range ptq.predicates { + for _, p := range _q.predicates { p(selector) } - for _, p := range ptq.order { + for _, p := range _q.order { p(selector) } - if offset := ptq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. selector.Offset(*offset).Limit(math.MaxInt32) } - if limit := ptq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { selector.Limit(*limit) } return selector @@ -522,41 +522,41 @@ type PasswordTokenGroupBy struct { } // Aggregate adds the given aggregation functions to the group-by query. -func (ptgb *PasswordTokenGroupBy) Aggregate(fns ...AggregateFunc) *PasswordTokenGroupBy { - ptgb.fns = append(ptgb.fns, fns...) - return ptgb +func (_g *PasswordTokenGroupBy) Aggregate(fns ...AggregateFunc) *PasswordTokenGroupBy { + _g.fns = append(_g.fns, fns...) + return _g } // Scan applies the selector query and scans the result into the given value. -func (ptgb *PasswordTokenGroupBy) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, ptgb.build.ctx, ent.OpQueryGroupBy) - if err := ptgb.build.prepareQuery(ctx); err != nil { +func (_g *PasswordTokenGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PasswordTokenQuery, *PasswordTokenGroupBy](ctx, ptgb.build, ptgb, ptgb.build.inters, v) + return scanWithInterceptors[*PasswordTokenQuery, *PasswordTokenGroupBy](ctx, _g.build, _g, _g.build.inters, v) } -func (ptgb *PasswordTokenGroupBy) sqlScan(ctx context.Context, root *PasswordTokenQuery, v any) error { +func (_g *PasswordTokenGroupBy) sqlScan(ctx context.Context, root *PasswordTokenQuery, v any) error { selector := root.sqlQuery(ctx).Select() - aggregation := make([]string, 0, len(ptgb.fns)) - for _, fn := range ptgb.fns { + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { aggregation = append(aggregation, fn(selector)) } if len(selector.SelectedColumns()) == 0 { - columns := make([]string, 0, len(*ptgb.flds)+len(ptgb.fns)) - for _, f := range *ptgb.flds { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { columns = append(columns, selector.C(f)) } columns = append(columns, aggregation...) selector.Select(columns...) } - selector.GroupBy(selector.Columns(*ptgb.flds...)...) + selector.GroupBy(selector.Columns(*_g.flds...)...) if err := selector.Err(); err != nil { return err } rows := &sql.Rows{} query, args := selector.Query() - if err := ptgb.build.driver.Query(ctx, query, args, rows); err != nil { + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() @@ -570,27 +570,27 @@ type PasswordTokenSelect struct { } // Aggregate adds the given aggregation functions to the selector query. -func (pts *PasswordTokenSelect) Aggregate(fns ...AggregateFunc) *PasswordTokenSelect { - pts.fns = append(pts.fns, fns...) - return pts +func (_s *PasswordTokenSelect) Aggregate(fns ...AggregateFunc) *PasswordTokenSelect { + _s.fns = append(_s.fns, fns...) + return _s } // Scan applies the selector query and scans the result into the given value. -func (pts *PasswordTokenSelect) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pts.ctx, ent.OpQuerySelect) - if err := pts.prepareQuery(ctx); err != nil { +func (_s *PasswordTokenSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PasswordTokenQuery, *PasswordTokenSelect](ctx, pts.PasswordTokenQuery, pts, pts.inters, v) + return scanWithInterceptors[*PasswordTokenQuery, *PasswordTokenSelect](ctx, _s.PasswordTokenQuery, _s, _s.inters, v) } -func (pts *PasswordTokenSelect) sqlScan(ctx context.Context, root *PasswordTokenQuery, v any) error { +func (_s *PasswordTokenSelect) sqlScan(ctx context.Context, root *PasswordTokenQuery, v any) error { selector := root.sqlQuery(ctx) - aggregation := make([]string, 0, len(pts.fns)) - for _, fn := range pts.fns { + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { aggregation = append(aggregation, fn(selector)) } - switch n := len(*pts.selector.flds); { + switch n := len(*_s.selector.flds); { case n == 0 && len(aggregation) > 0: selector.Select(aggregation...) case n != 0 && len(aggregation) > 0: @@ -598,7 +598,7 @@ func (pts *PasswordTokenSelect) sqlScan(ctx context.Context, root *PasswordToken } rows := &sql.Rows{} query, args := selector.Query() - if err := pts.driver.Query(ctx, query, args, rows); err != nil { + if err := _s.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() diff --git a/ent/passwordtoken_update.go b/ent/passwordtoken_update.go index a62d5cb..1079b4e 100644 --- a/ent/passwordtoken_update.go +++ b/ent/passwordtoken_update.go @@ -24,77 +24,77 @@ type PasswordTokenUpdate struct { } // Where appends a list predicates to the PasswordTokenUpdate builder. -func (ptu *PasswordTokenUpdate) Where(ps ...predicate.PasswordToken) *PasswordTokenUpdate { - ptu.mutation.Where(ps...) - return ptu +func (_u *PasswordTokenUpdate) Where(ps ...predicate.PasswordToken) *PasswordTokenUpdate { + _u.mutation.Where(ps...) + return _u } // SetToken sets the "token" field. -func (ptu *PasswordTokenUpdate) SetToken(s string) *PasswordTokenUpdate { - ptu.mutation.SetToken(s) - return ptu +func (_u *PasswordTokenUpdate) SetToken(v string) *PasswordTokenUpdate { + _u.mutation.SetToken(v) + return _u } // SetNillableToken sets the "token" field if the given value is not nil. -func (ptu *PasswordTokenUpdate) SetNillableToken(s *string) *PasswordTokenUpdate { - if s != nil { - ptu.SetToken(*s) +func (_u *PasswordTokenUpdate) SetNillableToken(v *string) *PasswordTokenUpdate { + if v != nil { + _u.SetToken(*v) } - return ptu + return _u } // SetUserID sets the "user_id" field. -func (ptu *PasswordTokenUpdate) SetUserID(i int) *PasswordTokenUpdate { - ptu.mutation.SetUserID(i) - return ptu +func (_u *PasswordTokenUpdate) SetUserID(v int) *PasswordTokenUpdate { + _u.mutation.SetUserID(v) + return _u } // SetNillableUserID sets the "user_id" field if the given value is not nil. -func (ptu *PasswordTokenUpdate) SetNillableUserID(i *int) *PasswordTokenUpdate { - if i != nil { - ptu.SetUserID(*i) +func (_u *PasswordTokenUpdate) SetNillableUserID(v *int) *PasswordTokenUpdate { + if v != nil { + _u.SetUserID(*v) } - return ptu + return _u } // SetCreatedAt sets the "created_at" field. -func (ptu *PasswordTokenUpdate) SetCreatedAt(t time.Time) *PasswordTokenUpdate { - ptu.mutation.SetCreatedAt(t) - return ptu +func (_u *PasswordTokenUpdate) SetCreatedAt(v time.Time) *PasswordTokenUpdate { + _u.mutation.SetCreatedAt(v) + return _u } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (ptu *PasswordTokenUpdate) SetNillableCreatedAt(t *time.Time) *PasswordTokenUpdate { - if t != nil { - ptu.SetCreatedAt(*t) +func (_u *PasswordTokenUpdate) SetNillableCreatedAt(v *time.Time) *PasswordTokenUpdate { + if v != nil { + _u.SetCreatedAt(*v) } - return ptu + return _u } // SetUser sets the "user" edge to the User entity. -func (ptu *PasswordTokenUpdate) SetUser(u *User) *PasswordTokenUpdate { - return ptu.SetUserID(u.ID) +func (_u *PasswordTokenUpdate) SetUser(v *User) *PasswordTokenUpdate { + return _u.SetUserID(v.ID) } // Mutation returns the PasswordTokenMutation object of the builder. -func (ptu *PasswordTokenUpdate) Mutation() *PasswordTokenMutation { - return ptu.mutation +func (_u *PasswordTokenUpdate) Mutation() *PasswordTokenMutation { + return _u.mutation } // ClearUser clears the "user" edge to the User entity. -func (ptu *PasswordTokenUpdate) ClearUser() *PasswordTokenUpdate { - ptu.mutation.ClearUser() - return ptu +func (_u *PasswordTokenUpdate) ClearUser() *PasswordTokenUpdate { + _u.mutation.ClearUser() + return _u } // Save executes the query and returns the number of nodes affected by the update operation. -func (ptu *PasswordTokenUpdate) Save(ctx context.Context) (int, error) { - return withHooks(ctx, ptu.sqlSave, ptu.mutation, ptu.hooks) +func (_u *PasswordTokenUpdate) Save(ctx context.Context) (int, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (ptu *PasswordTokenUpdate) SaveX(ctx context.Context) int { - affected, err := ptu.Save(ctx) +func (_u *PasswordTokenUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) if err != nil { panic(err) } @@ -102,50 +102,50 @@ func (ptu *PasswordTokenUpdate) SaveX(ctx context.Context) int { } // Exec executes the query. -func (ptu *PasswordTokenUpdate) Exec(ctx context.Context) error { - _, err := ptu.Save(ctx) +func (_u *PasswordTokenUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (ptu *PasswordTokenUpdate) ExecX(ctx context.Context) { - if err := ptu.Exec(ctx); err != nil { +func (_u *PasswordTokenUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // check runs all checks and user-defined validators on the builder. -func (ptu *PasswordTokenUpdate) check() error { - if v, ok := ptu.mutation.Token(); ok { +func (_u *PasswordTokenUpdate) check() error { + if v, ok := _u.mutation.Token(); ok { if err := passwordtoken.TokenValidator(v); err != nil { return &ValidationError{Name: "token", err: fmt.Errorf(`ent: validator failed for field "PasswordToken.token": %w`, err)} } } - if ptu.mutation.UserCleared() && len(ptu.mutation.UserIDs()) > 0 { + if _u.mutation.UserCleared() && len(_u.mutation.UserIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PasswordToken.user"`) } return nil } -func (ptu *PasswordTokenUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := ptu.check(); err != nil { - return n, err +func (_u *PasswordTokenUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err } _spec := sqlgraph.NewUpdateSpec(passwordtoken.Table, passwordtoken.Columns, sqlgraph.NewFieldSpec(passwordtoken.FieldID, field.TypeInt)) - if ps := ptu.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := ptu.mutation.Token(); ok { + if value, ok := _u.mutation.Token(); ok { _spec.SetField(passwordtoken.FieldToken, field.TypeString, value) } - if value, ok := ptu.mutation.CreatedAt(); ok { + if value, ok := _u.mutation.CreatedAt(); ok { _spec.SetField(passwordtoken.FieldCreatedAt, field.TypeTime, value) } - if ptu.mutation.UserCleared() { + if _u.mutation.UserCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, @@ -158,7 +158,7 @@ func (ptu *PasswordTokenUpdate) sqlSave(ctx context.Context) (n int, err error) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := ptu.mutation.UserIDs(); len(nodes) > 0 { + if nodes := _u.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, @@ -174,7 +174,7 @@ func (ptu *PasswordTokenUpdate) sqlSave(ctx context.Context) (n int, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if n, err = sqlgraph.UpdateNodes(ctx, ptu.driver, _spec); err != nil { + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{passwordtoken.Label} } else if sqlgraph.IsConstraintError(err) { @@ -182,8 +182,8 @@ func (ptu *PasswordTokenUpdate) sqlSave(ctx context.Context) (n int, err error) } return 0, err } - ptu.mutation.done = true - return n, nil + _u.mutation.done = true + return _node, nil } // PasswordTokenUpdateOne is the builder for updating a single PasswordToken entity. @@ -195,84 +195,84 @@ type PasswordTokenUpdateOne struct { } // SetToken sets the "token" field. -func (ptuo *PasswordTokenUpdateOne) SetToken(s string) *PasswordTokenUpdateOne { - ptuo.mutation.SetToken(s) - return ptuo +func (_u *PasswordTokenUpdateOne) SetToken(v string) *PasswordTokenUpdateOne { + _u.mutation.SetToken(v) + return _u } // SetNillableToken sets the "token" field if the given value is not nil. -func (ptuo *PasswordTokenUpdateOne) SetNillableToken(s *string) *PasswordTokenUpdateOne { - if s != nil { - ptuo.SetToken(*s) +func (_u *PasswordTokenUpdateOne) SetNillableToken(v *string) *PasswordTokenUpdateOne { + if v != nil { + _u.SetToken(*v) } - return ptuo + return _u } // SetUserID sets the "user_id" field. -func (ptuo *PasswordTokenUpdateOne) SetUserID(i int) *PasswordTokenUpdateOne { - ptuo.mutation.SetUserID(i) - return ptuo +func (_u *PasswordTokenUpdateOne) SetUserID(v int) *PasswordTokenUpdateOne { + _u.mutation.SetUserID(v) + return _u } // SetNillableUserID sets the "user_id" field if the given value is not nil. -func (ptuo *PasswordTokenUpdateOne) SetNillableUserID(i *int) *PasswordTokenUpdateOne { - if i != nil { - ptuo.SetUserID(*i) +func (_u *PasswordTokenUpdateOne) SetNillableUserID(v *int) *PasswordTokenUpdateOne { + if v != nil { + _u.SetUserID(*v) } - return ptuo + return _u } // SetCreatedAt sets the "created_at" field. -func (ptuo *PasswordTokenUpdateOne) SetCreatedAt(t time.Time) *PasswordTokenUpdateOne { - ptuo.mutation.SetCreatedAt(t) - return ptuo +func (_u *PasswordTokenUpdateOne) SetCreatedAt(v time.Time) *PasswordTokenUpdateOne { + _u.mutation.SetCreatedAt(v) + return _u } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (ptuo *PasswordTokenUpdateOne) SetNillableCreatedAt(t *time.Time) *PasswordTokenUpdateOne { - if t != nil { - ptuo.SetCreatedAt(*t) +func (_u *PasswordTokenUpdateOne) SetNillableCreatedAt(v *time.Time) *PasswordTokenUpdateOne { + if v != nil { + _u.SetCreatedAt(*v) } - return ptuo + return _u } // SetUser sets the "user" edge to the User entity. -func (ptuo *PasswordTokenUpdateOne) SetUser(u *User) *PasswordTokenUpdateOne { - return ptuo.SetUserID(u.ID) +func (_u *PasswordTokenUpdateOne) SetUser(v *User) *PasswordTokenUpdateOne { + return _u.SetUserID(v.ID) } // Mutation returns the PasswordTokenMutation object of the builder. -func (ptuo *PasswordTokenUpdateOne) Mutation() *PasswordTokenMutation { - return ptuo.mutation +func (_u *PasswordTokenUpdateOne) Mutation() *PasswordTokenMutation { + return _u.mutation } // ClearUser clears the "user" edge to the User entity. -func (ptuo *PasswordTokenUpdateOne) ClearUser() *PasswordTokenUpdateOne { - ptuo.mutation.ClearUser() - return ptuo +func (_u *PasswordTokenUpdateOne) ClearUser() *PasswordTokenUpdateOne { + _u.mutation.ClearUser() + return _u } // Where appends a list predicates to the PasswordTokenUpdate builder. -func (ptuo *PasswordTokenUpdateOne) Where(ps ...predicate.PasswordToken) *PasswordTokenUpdateOne { - ptuo.mutation.Where(ps...) - return ptuo +func (_u *PasswordTokenUpdateOne) Where(ps ...predicate.PasswordToken) *PasswordTokenUpdateOne { + _u.mutation.Where(ps...) + return _u } // Select allows selecting one or more fields (columns) of the returned entity. // The default is selecting all fields defined in the entity schema. -func (ptuo *PasswordTokenUpdateOne) Select(field string, fields ...string) *PasswordTokenUpdateOne { - ptuo.fields = append([]string{field}, fields...) - return ptuo +func (_u *PasswordTokenUpdateOne) Select(field string, fields ...string) *PasswordTokenUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } // Save executes the query and returns the updated PasswordToken entity. -func (ptuo *PasswordTokenUpdateOne) Save(ctx context.Context) (*PasswordToken, error) { - return withHooks(ctx, ptuo.sqlSave, ptuo.mutation, ptuo.hooks) +func (_u *PasswordTokenUpdateOne) Save(ctx context.Context) (*PasswordToken, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (ptuo *PasswordTokenUpdateOne) SaveX(ctx context.Context) *PasswordToken { - node, err := ptuo.Save(ctx) +func (_u *PasswordTokenUpdateOne) SaveX(ctx context.Context) *PasswordToken { + node, err := _u.Save(ctx) if err != nil { panic(err) } @@ -280,42 +280,42 @@ func (ptuo *PasswordTokenUpdateOne) SaveX(ctx context.Context) *PasswordToken { } // Exec executes the query on the entity. -func (ptuo *PasswordTokenUpdateOne) Exec(ctx context.Context) error { - _, err := ptuo.Save(ctx) +func (_u *PasswordTokenUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (ptuo *PasswordTokenUpdateOne) ExecX(ctx context.Context) { - if err := ptuo.Exec(ctx); err != nil { +func (_u *PasswordTokenUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // check runs all checks and user-defined validators on the builder. -func (ptuo *PasswordTokenUpdateOne) check() error { - if v, ok := ptuo.mutation.Token(); ok { +func (_u *PasswordTokenUpdateOne) check() error { + if v, ok := _u.mutation.Token(); ok { if err := passwordtoken.TokenValidator(v); err != nil { return &ValidationError{Name: "token", err: fmt.Errorf(`ent: validator failed for field "PasswordToken.token": %w`, err)} } } - if ptuo.mutation.UserCleared() && len(ptuo.mutation.UserIDs()) > 0 { + if _u.mutation.UserCleared() && len(_u.mutation.UserIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PasswordToken.user"`) } return nil } -func (ptuo *PasswordTokenUpdateOne) sqlSave(ctx context.Context) (_node *PasswordToken, err error) { - if err := ptuo.check(); err != nil { +func (_u *PasswordTokenUpdateOne) sqlSave(ctx context.Context) (_node *PasswordToken, err error) { + if err := _u.check(); err != nil { return _node, err } _spec := sqlgraph.NewUpdateSpec(passwordtoken.Table, passwordtoken.Columns, sqlgraph.NewFieldSpec(passwordtoken.FieldID, field.TypeInt)) - id, ok := ptuo.mutation.ID() + id, ok := _u.mutation.ID() if !ok { return nil, &ValidationError{Name: "id", err: errors.New(`ent: missing "PasswordToken.id" for update`)} } _spec.Node.ID.Value = id - if fields := ptuo.fields; len(fields) > 0 { + if fields := _u.fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, passwordtoken.FieldID) for _, f := range fields { @@ -327,20 +327,20 @@ func (ptuo *PasswordTokenUpdateOne) sqlSave(ctx context.Context) (_node *Passwor } } } - if ps := ptuo.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := ptuo.mutation.Token(); ok { + if value, ok := _u.mutation.Token(); ok { _spec.SetField(passwordtoken.FieldToken, field.TypeString, value) } - if value, ok := ptuo.mutation.CreatedAt(); ok { + if value, ok := _u.mutation.CreatedAt(); ok { _spec.SetField(passwordtoken.FieldCreatedAt, field.TypeTime, value) } - if ptuo.mutation.UserCleared() { + if _u.mutation.UserCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, @@ -353,7 +353,7 @@ func (ptuo *PasswordTokenUpdateOne) sqlSave(ctx context.Context) (_node *Passwor } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := ptuo.mutation.UserIDs(); len(nodes) > 0 { + if nodes := _u.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: false, @@ -369,10 +369,10 @@ func (ptuo *PasswordTokenUpdateOne) sqlSave(ctx context.Context) (_node *Passwor } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - _node = &PasswordToken{config: ptuo.config} + _node = &PasswordToken{config: _u.config} _spec.Assign = _node.assignValues _spec.ScanValues = _node.scanValues - if err = sqlgraph.UpdateNode(ctx, ptuo.driver, _spec); err != nil { + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{passwordtoken.Label} } else if sqlgraph.IsConstraintError(err) { @@ -380,6 +380,6 @@ func (ptuo *PasswordTokenUpdateOne) sqlSave(ctx context.Context) (_node *Passwor } return nil, err } - ptuo.mutation.done = true + _u.mutation.done = true return _node, nil } diff --git a/ent/paymentcustomer.go b/ent/paymentcustomer.go index 69c2f57..af5663a 100644 --- a/ent/paymentcustomer.go +++ b/ent/paymentcustomer.go @@ -114,7 +114,7 @@ func (*PaymentCustomer) scanValues(columns []string) ([]any, error) { // assignValues assigns the values that were returned from sql.Rows (after scanning) // to the PaymentCustomer fields. -func (pc *PaymentCustomer) assignValues(columns []string, values []any) error { +func (_m *PaymentCustomer) assignValues(columns []string, values []any) error { if m, n := len(values), len(columns); m < n { return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) } @@ -125,36 +125,36 @@ func (pc *PaymentCustomer) assignValues(columns []string, values []any) error { if !ok { return fmt.Errorf("unexpected type %T for field id", value) } - pc.ID = int(value.Int64) + _m.ID = int(value.Int64) case paymentcustomer.FieldProviderCustomerID: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider_customer_id", values[i]) } else if value.Valid { - pc.ProviderCustomerID = value.String + _m.ProviderCustomerID = value.String } case paymentcustomer.FieldProvider: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider", values[i]) } else if value.Valid { - pc.Provider = value.String + _m.Provider = value.String } case paymentcustomer.FieldEmail: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field email", values[i]) } else if value.Valid { - pc.Email = value.String + _m.Email = value.String } case paymentcustomer.FieldName: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field name", values[i]) } else if value.Valid { - pc.Name = value.String + _m.Name = value.String } case paymentcustomer.FieldMetadata: if value, ok := values[i].(*[]byte); !ok { return fmt.Errorf("unexpected type %T for field metadata", values[i]) } else if value != nil && len(*value) > 0 { - if err := json.Unmarshal(*value, &pc.Metadata); err != nil { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { return fmt.Errorf("unmarshal field metadata: %w", err) } } @@ -162,16 +162,16 @@ func (pc *PaymentCustomer) assignValues(columns []string, values []any) error { if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field created_at", values[i]) } else if value.Valid { - pc.CreatedAt = value.Time + _m.CreatedAt = value.Time } case paymentcustomer.FieldUpdatedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field updated_at", values[i]) } else if value.Valid { - pc.UpdatedAt = value.Time + _m.UpdatedAt = value.Time } default: - pc.selectValues.Set(columns[i], values[i]) + _m.selectValues.Set(columns[i], values[i]) } } return nil @@ -179,73 +179,73 @@ func (pc *PaymentCustomer) assignValues(columns []string, values []any) error { // Value returns the ent.Value that was dynamically selected and assigned to the PaymentCustomer. // This includes values selected through modifiers, order, etc. -func (pc *PaymentCustomer) Value(name string) (ent.Value, error) { - return pc.selectValues.Get(name) +func (_m *PaymentCustomer) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) } // QueryUser queries the "user" edge of the PaymentCustomer entity. -func (pc *PaymentCustomer) QueryUser() *UserQuery { - return NewPaymentCustomerClient(pc.config).QueryUser(pc) +func (_m *PaymentCustomer) QueryUser() *UserQuery { + return NewPaymentCustomerClient(_m.config).QueryUser(_m) } // QueryPaymentIntents queries the "payment_intents" edge of the PaymentCustomer entity. -func (pc *PaymentCustomer) QueryPaymentIntents() *PaymentIntentQuery { - return NewPaymentCustomerClient(pc.config).QueryPaymentIntents(pc) +func (_m *PaymentCustomer) QueryPaymentIntents() *PaymentIntentQuery { + return NewPaymentCustomerClient(_m.config).QueryPaymentIntents(_m) } // QuerySubscriptions queries the "subscriptions" edge of the PaymentCustomer entity. -func (pc *PaymentCustomer) QuerySubscriptions() *SubscriptionQuery { - return NewPaymentCustomerClient(pc.config).QuerySubscriptions(pc) +func (_m *PaymentCustomer) QuerySubscriptions() *SubscriptionQuery { + return NewPaymentCustomerClient(_m.config).QuerySubscriptions(_m) } // QueryPaymentMethods queries the "payment_methods" edge of the PaymentCustomer entity. -func (pc *PaymentCustomer) QueryPaymentMethods() *PaymentMethodQuery { - return NewPaymentCustomerClient(pc.config).QueryPaymentMethods(pc) +func (_m *PaymentCustomer) QueryPaymentMethods() *PaymentMethodQuery { + return NewPaymentCustomerClient(_m.config).QueryPaymentMethods(_m) } // Update returns a builder for updating this PaymentCustomer. // Note that you need to call PaymentCustomer.Unwrap() before calling this method if this PaymentCustomer // was returned from a transaction, and the transaction was committed or rolled back. -func (pc *PaymentCustomer) Update() *PaymentCustomerUpdateOne { - return NewPaymentCustomerClient(pc.config).UpdateOne(pc) +func (_m *PaymentCustomer) Update() *PaymentCustomerUpdateOne { + return NewPaymentCustomerClient(_m.config).UpdateOne(_m) } // Unwrap unwraps the PaymentCustomer entity that was returned from a transaction after it was closed, // so that all future queries will be executed through the driver which created the transaction. -func (pc *PaymentCustomer) Unwrap() *PaymentCustomer { - _tx, ok := pc.config.driver.(*txDriver) +func (_m *PaymentCustomer) Unwrap() *PaymentCustomer { + _tx, ok := _m.config.driver.(*txDriver) if !ok { panic("ent: PaymentCustomer is not a transactional entity") } - pc.config.driver = _tx.drv - return pc + _m.config.driver = _tx.drv + return _m } // String implements the fmt.Stringer. -func (pc *PaymentCustomer) String() string { +func (_m *PaymentCustomer) String() string { var builder strings.Builder builder.WriteString("PaymentCustomer(") - builder.WriteString(fmt.Sprintf("id=%v, ", pc.ID)) + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) builder.WriteString("provider_customer_id=") - builder.WriteString(pc.ProviderCustomerID) + builder.WriteString(_m.ProviderCustomerID) builder.WriteString(", ") builder.WriteString("provider=") - builder.WriteString(pc.Provider) + builder.WriteString(_m.Provider) builder.WriteString(", ") builder.WriteString("email=") - builder.WriteString(pc.Email) + builder.WriteString(_m.Email) builder.WriteString(", ") builder.WriteString("name=") - builder.WriteString(pc.Name) + builder.WriteString(_m.Name) builder.WriteString(", ") builder.WriteString("metadata=") - builder.WriteString(fmt.Sprintf("%v", pc.Metadata)) + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) builder.WriteString(", ") builder.WriteString("created_at=") - builder.WriteString(pc.CreatedAt.Format(time.ANSIC)) + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("updated_at=") - builder.WriteString(pc.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(_m.UpdatedAt.Format(time.ANSIC)) builder.WriteByte(')') return builder.String() } diff --git a/ent/paymentcustomer_create.go b/ent/paymentcustomer_create.go index 813ffac..bbff485 100644 --- a/ent/paymentcustomer_create.go +++ b/ent/paymentcustomer_create.go @@ -25,149 +25,149 @@ type PaymentCustomerCreate struct { } // SetProviderCustomerID sets the "provider_customer_id" field. -func (pcc *PaymentCustomerCreate) SetProviderCustomerID(s string) *PaymentCustomerCreate { - pcc.mutation.SetProviderCustomerID(s) - return pcc +func (_c *PaymentCustomerCreate) SetProviderCustomerID(v string) *PaymentCustomerCreate { + _c.mutation.SetProviderCustomerID(v) + return _c } // SetProvider sets the "provider" field. -func (pcc *PaymentCustomerCreate) SetProvider(s string) *PaymentCustomerCreate { - pcc.mutation.SetProvider(s) - return pcc +func (_c *PaymentCustomerCreate) SetProvider(v string) *PaymentCustomerCreate { + _c.mutation.SetProvider(v) + return _c } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pcc *PaymentCustomerCreate) SetNillableProvider(s *string) *PaymentCustomerCreate { - if s != nil { - pcc.SetProvider(*s) +func (_c *PaymentCustomerCreate) SetNillableProvider(v *string) *PaymentCustomerCreate { + if v != nil { + _c.SetProvider(*v) } - return pcc + return _c } // SetEmail sets the "email" field. -func (pcc *PaymentCustomerCreate) SetEmail(s string) *PaymentCustomerCreate { - pcc.mutation.SetEmail(s) - return pcc +func (_c *PaymentCustomerCreate) SetEmail(v string) *PaymentCustomerCreate { + _c.mutation.SetEmail(v) + return _c } // SetName sets the "name" field. -func (pcc *PaymentCustomerCreate) SetName(s string) *PaymentCustomerCreate { - pcc.mutation.SetName(s) - return pcc +func (_c *PaymentCustomerCreate) SetName(v string) *PaymentCustomerCreate { + _c.mutation.SetName(v) + return _c } // SetNillableName sets the "name" field if the given value is not nil. -func (pcc *PaymentCustomerCreate) SetNillableName(s *string) *PaymentCustomerCreate { - if s != nil { - pcc.SetName(*s) +func (_c *PaymentCustomerCreate) SetNillableName(v *string) *PaymentCustomerCreate { + if v != nil { + _c.SetName(*v) } - return pcc + return _c } // SetMetadata sets the "metadata" field. -func (pcc *PaymentCustomerCreate) SetMetadata(m map[string]interface{}) *PaymentCustomerCreate { - pcc.mutation.SetMetadata(m) - return pcc +func (_c *PaymentCustomerCreate) SetMetadata(v map[string]interface{}) *PaymentCustomerCreate { + _c.mutation.SetMetadata(v) + return _c } // SetCreatedAt sets the "created_at" field. -func (pcc *PaymentCustomerCreate) SetCreatedAt(t time.Time) *PaymentCustomerCreate { - pcc.mutation.SetCreatedAt(t) - return pcc +func (_c *PaymentCustomerCreate) SetCreatedAt(v time.Time) *PaymentCustomerCreate { + _c.mutation.SetCreatedAt(v) + return _c } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (pcc *PaymentCustomerCreate) SetNillableCreatedAt(t *time.Time) *PaymentCustomerCreate { - if t != nil { - pcc.SetCreatedAt(*t) +func (_c *PaymentCustomerCreate) SetNillableCreatedAt(v *time.Time) *PaymentCustomerCreate { + if v != nil { + _c.SetCreatedAt(*v) } - return pcc + return _c } // SetUpdatedAt sets the "updated_at" field. -func (pcc *PaymentCustomerCreate) SetUpdatedAt(t time.Time) *PaymentCustomerCreate { - pcc.mutation.SetUpdatedAt(t) - return pcc +func (_c *PaymentCustomerCreate) SetUpdatedAt(v time.Time) *PaymentCustomerCreate { + _c.mutation.SetUpdatedAt(v) + return _c } // SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. -func (pcc *PaymentCustomerCreate) SetNillableUpdatedAt(t *time.Time) *PaymentCustomerCreate { - if t != nil { - pcc.SetUpdatedAt(*t) +func (_c *PaymentCustomerCreate) SetNillableUpdatedAt(v *time.Time) *PaymentCustomerCreate { + if v != nil { + _c.SetUpdatedAt(*v) } - return pcc + return _c } // SetUserID sets the "user" edge to the User entity by ID. -func (pcc *PaymentCustomerCreate) SetUserID(id int) *PaymentCustomerCreate { - pcc.mutation.SetUserID(id) - return pcc +func (_c *PaymentCustomerCreate) SetUserID(id int) *PaymentCustomerCreate { + _c.mutation.SetUserID(id) + return _c } // SetUser sets the "user" edge to the User entity. -func (pcc *PaymentCustomerCreate) SetUser(u *User) *PaymentCustomerCreate { - return pcc.SetUserID(u.ID) +func (_c *PaymentCustomerCreate) SetUser(v *User) *PaymentCustomerCreate { + return _c.SetUserID(v.ID) } // AddPaymentIntentIDs adds the "payment_intents" edge to the PaymentIntent entity by IDs. -func (pcc *PaymentCustomerCreate) AddPaymentIntentIDs(ids ...int) *PaymentCustomerCreate { - pcc.mutation.AddPaymentIntentIDs(ids...) - return pcc +func (_c *PaymentCustomerCreate) AddPaymentIntentIDs(ids ...int) *PaymentCustomerCreate { + _c.mutation.AddPaymentIntentIDs(ids...) + return _c } // AddPaymentIntents adds the "payment_intents" edges to the PaymentIntent entity. -func (pcc *PaymentCustomerCreate) AddPaymentIntents(p ...*PaymentIntent) *PaymentCustomerCreate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_c *PaymentCustomerCreate) AddPaymentIntents(v ...*PaymentIntent) *PaymentCustomerCreate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcc.AddPaymentIntentIDs(ids...) + return _c.AddPaymentIntentIDs(ids...) } // AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by IDs. -func (pcc *PaymentCustomerCreate) AddSubscriptionIDs(ids ...int) *PaymentCustomerCreate { - pcc.mutation.AddSubscriptionIDs(ids...) - return pcc +func (_c *PaymentCustomerCreate) AddSubscriptionIDs(ids ...int) *PaymentCustomerCreate { + _c.mutation.AddSubscriptionIDs(ids...) + return _c } // AddSubscriptions adds the "subscriptions" edges to the Subscription entity. -func (pcc *PaymentCustomerCreate) AddSubscriptions(s ...*Subscription) *PaymentCustomerCreate { - ids := make([]int, len(s)) - for i := range s { - ids[i] = s[i].ID +func (_c *PaymentCustomerCreate) AddSubscriptions(v ...*Subscription) *PaymentCustomerCreate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcc.AddSubscriptionIDs(ids...) + return _c.AddSubscriptionIDs(ids...) } // AddPaymentMethodIDs adds the "payment_methods" edge to the PaymentMethod entity by IDs. -func (pcc *PaymentCustomerCreate) AddPaymentMethodIDs(ids ...int) *PaymentCustomerCreate { - pcc.mutation.AddPaymentMethodIDs(ids...) - return pcc +func (_c *PaymentCustomerCreate) AddPaymentMethodIDs(ids ...int) *PaymentCustomerCreate { + _c.mutation.AddPaymentMethodIDs(ids...) + return _c } // AddPaymentMethods adds the "payment_methods" edges to the PaymentMethod entity. -func (pcc *PaymentCustomerCreate) AddPaymentMethods(p ...*PaymentMethod) *PaymentCustomerCreate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_c *PaymentCustomerCreate) AddPaymentMethods(v ...*PaymentMethod) *PaymentCustomerCreate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcc.AddPaymentMethodIDs(ids...) + return _c.AddPaymentMethodIDs(ids...) } // Mutation returns the PaymentCustomerMutation object of the builder. -func (pcc *PaymentCustomerCreate) Mutation() *PaymentCustomerMutation { - return pcc.mutation +func (_c *PaymentCustomerCreate) Mutation() *PaymentCustomerMutation { + return _c.mutation } // Save creates the PaymentCustomer in the database. -func (pcc *PaymentCustomerCreate) Save(ctx context.Context) (*PaymentCustomer, error) { - pcc.defaults() - return withHooks(ctx, pcc.sqlSave, pcc.mutation, pcc.hooks) +func (_c *PaymentCustomerCreate) Save(ctx context.Context) (*PaymentCustomer, error) { + _c.defaults() + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) } // SaveX calls Save and panics if Save returns an error. -func (pcc *PaymentCustomerCreate) SaveX(ctx context.Context) *PaymentCustomer { - v, err := pcc.Save(ctx) +func (_c *PaymentCustomerCreate) SaveX(ctx context.Context) *PaymentCustomer { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -175,78 +175,78 @@ func (pcc *PaymentCustomerCreate) SaveX(ctx context.Context) *PaymentCustomer { } // Exec executes the query. -func (pcc *PaymentCustomerCreate) Exec(ctx context.Context) error { - _, err := pcc.Save(ctx) +func (_c *PaymentCustomerCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pcc *PaymentCustomerCreate) ExecX(ctx context.Context) { - if err := pcc.Exec(ctx); err != nil { +func (_c *PaymentCustomerCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pcc *PaymentCustomerCreate) defaults() { - if _, ok := pcc.mutation.Provider(); !ok { +func (_c *PaymentCustomerCreate) defaults() { + if _, ok := _c.mutation.Provider(); !ok { v := paymentcustomer.DefaultProvider - pcc.mutation.SetProvider(v) + _c.mutation.SetProvider(v) } - if _, ok := pcc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { v := paymentcustomer.DefaultCreatedAt() - pcc.mutation.SetCreatedAt(v) + _c.mutation.SetCreatedAt(v) } - if _, ok := pcc.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { v := paymentcustomer.DefaultUpdatedAt() - pcc.mutation.SetUpdatedAt(v) + _c.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pcc *PaymentCustomerCreate) check() error { - if _, ok := pcc.mutation.ProviderCustomerID(); !ok { +func (_c *PaymentCustomerCreate) check() error { + if _, ok := _c.mutation.ProviderCustomerID(); !ok { return &ValidationError{Name: "provider_customer_id", err: errors.New(`ent: missing required field "PaymentCustomer.provider_customer_id"`)} } - if v, ok := pcc.mutation.ProviderCustomerID(); ok { + if v, ok := _c.mutation.ProviderCustomerID(); ok { if err := paymentcustomer.ProviderCustomerIDValidator(v); err != nil { return &ValidationError{Name: "provider_customer_id", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.provider_customer_id": %w`, err)} } } - if _, ok := pcc.mutation.Provider(); !ok { + if _, ok := _c.mutation.Provider(); !ok { return &ValidationError{Name: "provider", err: errors.New(`ent: missing required field "PaymentCustomer.provider"`)} } - if v, ok := pcc.mutation.Provider(); ok { + if v, ok := _c.mutation.Provider(); ok { if err := paymentcustomer.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.provider": %w`, err)} } } - if _, ok := pcc.mutation.Email(); !ok { + if _, ok := _c.mutation.Email(); !ok { return &ValidationError{Name: "email", err: errors.New(`ent: missing required field "PaymentCustomer.email"`)} } - if v, ok := pcc.mutation.Email(); ok { + if v, ok := _c.mutation.Email(); ok { if err := paymentcustomer.EmailValidator(v); err != nil { return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.email": %w`, err)} } } - if _, ok := pcc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "PaymentCustomer.created_at"`)} } - if _, ok := pcc.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { return &ValidationError{Name: "updated_at", err: errors.New(`ent: missing required field "PaymentCustomer.updated_at"`)} } - if len(pcc.mutation.UserIDs()) == 0 { + if len(_c.mutation.UserIDs()) == 0 { return &ValidationError{Name: "user", err: errors.New(`ent: missing required edge "PaymentCustomer.user"`)} } return nil } -func (pcc *PaymentCustomerCreate) sqlSave(ctx context.Context) (*PaymentCustomer, error) { - if err := pcc.check(); err != nil { +func (_c *PaymentCustomerCreate) sqlSave(ctx context.Context) (*PaymentCustomer, error) { + if err := _c.check(); err != nil { return nil, err } - _node, _spec := pcc.createSpec() - if err := sqlgraph.CreateNode(ctx, pcc.driver, _spec); err != nil { + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -254,45 +254,45 @@ func (pcc *PaymentCustomerCreate) sqlSave(ctx context.Context) (*PaymentCustomer } id := _spec.ID.Value.(int64) _node.ID = int(id) - pcc.mutation.id = &_node.ID - pcc.mutation.done = true + _c.mutation.id = &_node.ID + _c.mutation.done = true return _node, nil } -func (pcc *PaymentCustomerCreate) createSpec() (*PaymentCustomer, *sqlgraph.CreateSpec) { +func (_c *PaymentCustomerCreate) createSpec() (*PaymentCustomer, *sqlgraph.CreateSpec) { var ( - _node = &PaymentCustomer{config: pcc.config} + _node = &PaymentCustomer{config: _c.config} _spec = sqlgraph.NewCreateSpec(paymentcustomer.Table, sqlgraph.NewFieldSpec(paymentcustomer.FieldID, field.TypeInt)) ) - if value, ok := pcc.mutation.ProviderCustomerID(); ok { + if value, ok := _c.mutation.ProviderCustomerID(); ok { _spec.SetField(paymentcustomer.FieldProviderCustomerID, field.TypeString, value) _node.ProviderCustomerID = value } - if value, ok := pcc.mutation.Provider(); ok { + if value, ok := _c.mutation.Provider(); ok { _spec.SetField(paymentcustomer.FieldProvider, field.TypeString, value) _node.Provider = value } - if value, ok := pcc.mutation.Email(); ok { + if value, ok := _c.mutation.Email(); ok { _spec.SetField(paymentcustomer.FieldEmail, field.TypeString, value) _node.Email = value } - if value, ok := pcc.mutation.Name(); ok { + if value, ok := _c.mutation.Name(); ok { _spec.SetField(paymentcustomer.FieldName, field.TypeString, value) _node.Name = value } - if value, ok := pcc.mutation.Metadata(); ok { + if value, ok := _c.mutation.Metadata(); ok { _spec.SetField(paymentcustomer.FieldMetadata, field.TypeJSON, value) _node.Metadata = value } - if value, ok := pcc.mutation.CreatedAt(); ok { + if value, ok := _c.mutation.CreatedAt(); ok { _spec.SetField(paymentcustomer.FieldCreatedAt, field.TypeTime, value) _node.CreatedAt = value } - if value, ok := pcc.mutation.UpdatedAt(); ok { + if value, ok := _c.mutation.UpdatedAt(); ok { _spec.SetField(paymentcustomer.FieldUpdatedAt, field.TypeTime, value) _node.UpdatedAt = value } - if nodes := pcc.mutation.UserIDs(); len(nodes) > 0 { + if nodes := _c.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: false, @@ -308,7 +308,7 @@ func (pcc *PaymentCustomerCreate) createSpec() (*PaymentCustomer, *sqlgraph.Crea } _spec.Edges = append(_spec.Edges, edge) } - if nodes := pcc.mutation.PaymentIntentsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.PaymentIntentsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -324,7 +324,7 @@ func (pcc *PaymentCustomerCreate) createSpec() (*PaymentCustomer, *sqlgraph.Crea } _spec.Edges = append(_spec.Edges, edge) } - if nodes := pcc.mutation.SubscriptionsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.SubscriptionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -340,7 +340,7 @@ func (pcc *PaymentCustomerCreate) createSpec() (*PaymentCustomer, *sqlgraph.Crea } _spec.Edges = append(_spec.Edges, edge) } - if nodes := pcc.mutation.PaymentMethodsIDs(); len(nodes) > 0 { + if nodes := _c.mutation.PaymentMethodsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -367,16 +367,16 @@ type PaymentCustomerCreateBulk struct { } // Save creates the PaymentCustomer entities in the database. -func (pccb *PaymentCustomerCreateBulk) Save(ctx context.Context) ([]*PaymentCustomer, error) { - if pccb.err != nil { - return nil, pccb.err - } - specs := make([]*sqlgraph.CreateSpec, len(pccb.builders)) - nodes := make([]*PaymentCustomer, len(pccb.builders)) - mutators := make([]Mutator, len(pccb.builders)) - for i := range pccb.builders { +func (_c *PaymentCustomerCreateBulk) Save(ctx context.Context) ([]*PaymentCustomer, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*PaymentCustomer, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { func(i int, root context.Context) { - builder := pccb.builders[i] + builder := _c.builders[i] builder.defaults() var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { mutation, ok := m.(*PaymentCustomerMutation) @@ -390,11 +390,11 @@ func (pccb *PaymentCustomerCreateBulk) Save(ctx context.Context) ([]*PaymentCust var err error nodes[i], specs[i] = builder.createSpec() if i < len(mutators)-1 { - _, err = mutators[i+1].Mutate(root, pccb.builders[i+1].mutation) + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) } else { spec := &sqlgraph.BatchCreateSpec{Nodes: specs} // Invoke the actual operation on the latest mutation in the chain. - if err = sqlgraph.BatchCreate(ctx, pccb.driver, spec); err != nil { + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -418,7 +418,7 @@ func (pccb *PaymentCustomerCreateBulk) Save(ctx context.Context) ([]*PaymentCust }(i, ctx) } if len(mutators) > 0 { - if _, err := mutators[0].Mutate(ctx, pccb.builders[0].mutation); err != nil { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { return nil, err } } @@ -426,8 +426,8 @@ func (pccb *PaymentCustomerCreateBulk) Save(ctx context.Context) ([]*PaymentCust } // SaveX is like Save, but panics if an error occurs. -func (pccb *PaymentCustomerCreateBulk) SaveX(ctx context.Context) []*PaymentCustomer { - v, err := pccb.Save(ctx) +func (_c *PaymentCustomerCreateBulk) SaveX(ctx context.Context) []*PaymentCustomer { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -435,14 +435,14 @@ func (pccb *PaymentCustomerCreateBulk) SaveX(ctx context.Context) []*PaymentCust } // Exec executes the query. -func (pccb *PaymentCustomerCreateBulk) Exec(ctx context.Context) error { - _, err := pccb.Save(ctx) +func (_c *PaymentCustomerCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pccb *PaymentCustomerCreateBulk) ExecX(ctx context.Context) { - if err := pccb.Exec(ctx); err != nil { +func (_c *PaymentCustomerCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/paymentcustomer_delete.go b/ent/paymentcustomer_delete.go index 81578d8..3367cd0 100644 --- a/ent/paymentcustomer_delete.go +++ b/ent/paymentcustomer_delete.go @@ -20,56 +20,56 @@ type PaymentCustomerDelete struct { } // Where appends a list predicates to the PaymentCustomerDelete builder. -func (pcd *PaymentCustomerDelete) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerDelete { - pcd.mutation.Where(ps...) - return pcd +func (_d *PaymentCustomerDelete) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerDelete { + _d.mutation.Where(ps...) + return _d } // Exec executes the deletion query and returns how many vertices were deleted. -func (pcd *PaymentCustomerDelete) Exec(ctx context.Context) (int, error) { - return withHooks(ctx, pcd.sqlExec, pcd.mutation, pcd.hooks) +func (_d *PaymentCustomerDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) } // ExecX is like Exec, but panics if an error occurs. -func (pcd *PaymentCustomerDelete) ExecX(ctx context.Context) int { - n, err := pcd.Exec(ctx) +func (_d *PaymentCustomerDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) if err != nil { panic(err) } return n } -func (pcd *PaymentCustomerDelete) sqlExec(ctx context.Context) (int, error) { +func (_d *PaymentCustomerDelete) sqlExec(ctx context.Context) (int, error) { _spec := sqlgraph.NewDeleteSpec(paymentcustomer.Table, sqlgraph.NewFieldSpec(paymentcustomer.FieldID, field.TypeInt)) - if ps := pcd.mutation.predicates; len(ps) > 0 { + if ps := _d.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - affected, err := sqlgraph.DeleteNodes(ctx, pcd.driver, _spec) + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) if err != nil && sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } - pcd.mutation.done = true + _d.mutation.done = true return affected, err } // PaymentCustomerDeleteOne is the builder for deleting a single PaymentCustomer entity. type PaymentCustomerDeleteOne struct { - pcd *PaymentCustomerDelete + _d *PaymentCustomerDelete } // Where appends a list predicates to the PaymentCustomerDelete builder. -func (pcdo *PaymentCustomerDeleteOne) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerDeleteOne { - pcdo.pcd.mutation.Where(ps...) - return pcdo +func (_d *PaymentCustomerDeleteOne) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerDeleteOne { + _d._d.mutation.Where(ps...) + return _d } // Exec executes the deletion query. -func (pcdo *PaymentCustomerDeleteOne) Exec(ctx context.Context) error { - n, err := pcdo.pcd.Exec(ctx) +func (_d *PaymentCustomerDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) switch { case err != nil: return err @@ -81,8 +81,8 @@ func (pcdo *PaymentCustomerDeleteOne) Exec(ctx context.Context) error { } // ExecX is like Exec, but panics if an error occurs. -func (pcdo *PaymentCustomerDeleteOne) ExecX(ctx context.Context) { - if err := pcdo.Exec(ctx); err != nil { +func (_d *PaymentCustomerDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/paymentcustomer_query.go b/ent/paymentcustomer_query.go index cd97dbb..4dab54a 100644 --- a/ent/paymentcustomer_query.go +++ b/ent/paymentcustomer_query.go @@ -37,44 +37,44 @@ type PaymentCustomerQuery struct { } // Where adds a new predicate for the PaymentCustomerQuery builder. -func (pcq *PaymentCustomerQuery) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerQuery { - pcq.predicates = append(pcq.predicates, ps...) - return pcq +func (_q *PaymentCustomerQuery) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerQuery { + _q.predicates = append(_q.predicates, ps...) + return _q } // Limit the number of records to be returned by this query. -func (pcq *PaymentCustomerQuery) Limit(limit int) *PaymentCustomerQuery { - pcq.ctx.Limit = &limit - return pcq +func (_q *PaymentCustomerQuery) Limit(limit int) *PaymentCustomerQuery { + _q.ctx.Limit = &limit + return _q } // Offset to start from. -func (pcq *PaymentCustomerQuery) Offset(offset int) *PaymentCustomerQuery { - pcq.ctx.Offset = &offset - return pcq +func (_q *PaymentCustomerQuery) Offset(offset int) *PaymentCustomerQuery { + _q.ctx.Offset = &offset + return _q } // Unique configures the query builder to filter duplicate records on query. // By default, unique is set to true, and can be disabled using this method. -func (pcq *PaymentCustomerQuery) Unique(unique bool) *PaymentCustomerQuery { - pcq.ctx.Unique = &unique - return pcq +func (_q *PaymentCustomerQuery) Unique(unique bool) *PaymentCustomerQuery { + _q.ctx.Unique = &unique + return _q } // Order specifies how the records should be ordered. -func (pcq *PaymentCustomerQuery) Order(o ...paymentcustomer.OrderOption) *PaymentCustomerQuery { - pcq.order = append(pcq.order, o...) - return pcq +func (_q *PaymentCustomerQuery) Order(o ...paymentcustomer.OrderOption) *PaymentCustomerQuery { + _q.order = append(_q.order, o...) + return _q } // QueryUser chains the current query on the "user" edge. -func (pcq *PaymentCustomerQuery) QueryUser() *UserQuery { - query := (&UserClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) QueryUser() *UserQuery { + query := (&UserClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := pcq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := pcq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -83,20 +83,20 @@ func (pcq *PaymentCustomerQuery) QueryUser() *UserQuery { sqlgraph.To(user.Table, user.FieldID), sqlgraph.Edge(sqlgraph.O2O, false, paymentcustomer.UserTable, paymentcustomer.UserColumn), ) - fromU = sqlgraph.SetNeighbors(pcq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } // QueryPaymentIntents chains the current query on the "payment_intents" edge. -func (pcq *PaymentCustomerQuery) QueryPaymentIntents() *PaymentIntentQuery { - query := (&PaymentIntentClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) QueryPaymentIntents() *PaymentIntentQuery { + query := (&PaymentIntentClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := pcq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := pcq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -105,20 +105,20 @@ func (pcq *PaymentCustomerQuery) QueryPaymentIntents() *PaymentIntentQuery { sqlgraph.To(paymentintent.Table, paymentintent.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, paymentcustomer.PaymentIntentsTable, paymentcustomer.PaymentIntentsColumn), ) - fromU = sqlgraph.SetNeighbors(pcq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } // QuerySubscriptions chains the current query on the "subscriptions" edge. -func (pcq *PaymentCustomerQuery) QuerySubscriptions() *SubscriptionQuery { - query := (&SubscriptionClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) QuerySubscriptions() *SubscriptionQuery { + query := (&SubscriptionClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := pcq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := pcq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -127,20 +127,20 @@ func (pcq *PaymentCustomerQuery) QuerySubscriptions() *SubscriptionQuery { sqlgraph.To(subscription.Table, subscription.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, paymentcustomer.SubscriptionsTable, paymentcustomer.SubscriptionsColumn), ) - fromU = sqlgraph.SetNeighbors(pcq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } // QueryPaymentMethods chains the current query on the "payment_methods" edge. -func (pcq *PaymentCustomerQuery) QueryPaymentMethods() *PaymentMethodQuery { - query := (&PaymentMethodClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) QueryPaymentMethods() *PaymentMethodQuery { + query := (&PaymentMethodClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := pcq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := pcq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -149,7 +149,7 @@ func (pcq *PaymentCustomerQuery) QueryPaymentMethods() *PaymentMethodQuery { sqlgraph.To(paymentmethod.Table, paymentmethod.FieldID), sqlgraph.Edge(sqlgraph.O2M, false, paymentcustomer.PaymentMethodsTable, paymentcustomer.PaymentMethodsColumn), ) - fromU = sqlgraph.SetNeighbors(pcq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query @@ -157,8 +157,8 @@ func (pcq *PaymentCustomerQuery) QueryPaymentMethods() *PaymentMethodQuery { // First returns the first PaymentCustomer entity from the query. // Returns a *NotFoundError when no PaymentCustomer was found. -func (pcq *PaymentCustomerQuery) First(ctx context.Context) (*PaymentCustomer, error) { - nodes, err := pcq.Limit(1).All(setContextOp(ctx, pcq.ctx, ent.OpQueryFirst)) +func (_q *PaymentCustomerQuery) First(ctx context.Context) (*PaymentCustomer, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) if err != nil { return nil, err } @@ -169,8 +169,8 @@ func (pcq *PaymentCustomerQuery) First(ctx context.Context) (*PaymentCustomer, e } // FirstX is like First, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) FirstX(ctx context.Context) *PaymentCustomer { - node, err := pcq.First(ctx) +func (_q *PaymentCustomerQuery) FirstX(ctx context.Context) *PaymentCustomer { + node, err := _q.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -179,9 +179,9 @@ func (pcq *PaymentCustomerQuery) FirstX(ctx context.Context) *PaymentCustomer { // FirstID returns the first PaymentCustomer ID from the query. // Returns a *NotFoundError when no PaymentCustomer ID was found. -func (pcq *PaymentCustomerQuery) FirstID(ctx context.Context) (id int, err error) { +func (_q *PaymentCustomerQuery) FirstID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = pcq.Limit(1).IDs(setContextOp(ctx, pcq.ctx, ent.OpQueryFirstID)); err != nil { + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { return } if len(ids) == 0 { @@ -192,8 +192,8 @@ func (pcq *PaymentCustomerQuery) FirstID(ctx context.Context) (id int, err error } // FirstIDX is like FirstID, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) FirstIDX(ctx context.Context) int { - id, err := pcq.FirstID(ctx) +func (_q *PaymentCustomerQuery) FirstIDX(ctx context.Context) int { + id, err := _q.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -203,8 +203,8 @@ func (pcq *PaymentCustomerQuery) FirstIDX(ctx context.Context) int { // Only returns a single PaymentCustomer entity found by the query, ensuring it only returns one. // Returns a *NotSingularError when more than one PaymentCustomer entity is found. // Returns a *NotFoundError when no PaymentCustomer entities are found. -func (pcq *PaymentCustomerQuery) Only(ctx context.Context) (*PaymentCustomer, error) { - nodes, err := pcq.Limit(2).All(setContextOp(ctx, pcq.ctx, ent.OpQueryOnly)) +func (_q *PaymentCustomerQuery) Only(ctx context.Context) (*PaymentCustomer, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) if err != nil { return nil, err } @@ -219,8 +219,8 @@ func (pcq *PaymentCustomerQuery) Only(ctx context.Context) (*PaymentCustomer, er } // OnlyX is like Only, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) OnlyX(ctx context.Context) *PaymentCustomer { - node, err := pcq.Only(ctx) +func (_q *PaymentCustomerQuery) OnlyX(ctx context.Context) *PaymentCustomer { + node, err := _q.Only(ctx) if err != nil { panic(err) } @@ -230,9 +230,9 @@ func (pcq *PaymentCustomerQuery) OnlyX(ctx context.Context) *PaymentCustomer { // OnlyID is like Only, but returns the only PaymentCustomer ID in the query. // Returns a *NotSingularError when more than one PaymentCustomer ID is found. // Returns a *NotFoundError when no entities are found. -func (pcq *PaymentCustomerQuery) OnlyID(ctx context.Context) (id int, err error) { +func (_q *PaymentCustomerQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = pcq.Limit(2).IDs(setContextOp(ctx, pcq.ctx, ent.OpQueryOnlyID)); err != nil { + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { return } switch len(ids) { @@ -247,8 +247,8 @@ func (pcq *PaymentCustomerQuery) OnlyID(ctx context.Context) (id int, err error) } // OnlyIDX is like OnlyID, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) OnlyIDX(ctx context.Context) int { - id, err := pcq.OnlyID(ctx) +func (_q *PaymentCustomerQuery) OnlyIDX(ctx context.Context) int { + id, err := _q.OnlyID(ctx) if err != nil { panic(err) } @@ -256,18 +256,18 @@ func (pcq *PaymentCustomerQuery) OnlyIDX(ctx context.Context) int { } // All executes the query and returns a list of PaymentCustomers. -func (pcq *PaymentCustomerQuery) All(ctx context.Context) ([]*PaymentCustomer, error) { - ctx = setContextOp(ctx, pcq.ctx, ent.OpQueryAll) - if err := pcq.prepareQuery(ctx); err != nil { +func (_q *PaymentCustomerQuery) All(ctx context.Context) ([]*PaymentCustomer, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { return nil, err } qr := querierAll[[]*PaymentCustomer, *PaymentCustomerQuery]() - return withInterceptors[[]*PaymentCustomer](ctx, pcq, qr, pcq.inters) + return withInterceptors[[]*PaymentCustomer](ctx, _q, qr, _q.inters) } // AllX is like All, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) AllX(ctx context.Context) []*PaymentCustomer { - nodes, err := pcq.All(ctx) +func (_q *PaymentCustomerQuery) AllX(ctx context.Context) []*PaymentCustomer { + nodes, err := _q.All(ctx) if err != nil { panic(err) } @@ -275,20 +275,20 @@ func (pcq *PaymentCustomerQuery) AllX(ctx context.Context) []*PaymentCustomer { } // IDs executes the query and returns a list of PaymentCustomer IDs. -func (pcq *PaymentCustomerQuery) IDs(ctx context.Context) (ids []int, err error) { - if pcq.ctx.Unique == nil && pcq.path != nil { - pcq.Unique(true) +func (_q *PaymentCustomerQuery) IDs(ctx context.Context) (ids []int, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) } - ctx = setContextOp(ctx, pcq.ctx, ent.OpQueryIDs) - if err = pcq.Select(paymentcustomer.FieldID).Scan(ctx, &ids); err != nil { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(paymentcustomer.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil } // IDsX is like IDs, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) IDsX(ctx context.Context) []int { - ids, err := pcq.IDs(ctx) +func (_q *PaymentCustomerQuery) IDsX(ctx context.Context) []int { + ids, err := _q.IDs(ctx) if err != nil { panic(err) } @@ -296,17 +296,17 @@ func (pcq *PaymentCustomerQuery) IDsX(ctx context.Context) []int { } // Count returns the count of the given query. -func (pcq *PaymentCustomerQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, pcq.ctx, ent.OpQueryCount) - if err := pcq.prepareQuery(ctx); err != nil { +func (_q *PaymentCustomerQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { return 0, err } - return withInterceptors[int](ctx, pcq, querierCount[*PaymentCustomerQuery](), pcq.inters) + return withInterceptors[int](ctx, _q, querierCount[*PaymentCustomerQuery](), _q.inters) } // CountX is like Count, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) CountX(ctx context.Context) int { - count, err := pcq.Count(ctx) +func (_q *PaymentCustomerQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) if err != nil { panic(err) } @@ -314,9 +314,9 @@ func (pcq *PaymentCustomerQuery) CountX(ctx context.Context) int { } // Exist returns true if the query has elements in the graph. -func (pcq *PaymentCustomerQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, pcq.ctx, ent.OpQueryExist) - switch _, err := pcq.FirstID(ctx); { +func (_q *PaymentCustomerQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { case IsNotFound(err): return false, nil case err != nil: @@ -327,8 +327,8 @@ func (pcq *PaymentCustomerQuery) Exist(ctx context.Context) (bool, error) { } // ExistX is like Exist, but panics if an error occurs. -func (pcq *PaymentCustomerQuery) ExistX(ctx context.Context) bool { - exist, err := pcq.Exist(ctx) +func (_q *PaymentCustomerQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) if err != nil { panic(err) } @@ -337,68 +337,68 @@ func (pcq *PaymentCustomerQuery) ExistX(ctx context.Context) bool { // Clone returns a duplicate of the PaymentCustomerQuery builder, including all associated steps. It can be // used to prepare common query builders and use them differently after the clone is made. -func (pcq *PaymentCustomerQuery) Clone() *PaymentCustomerQuery { - if pcq == nil { +func (_q *PaymentCustomerQuery) Clone() *PaymentCustomerQuery { + if _q == nil { return nil } return &PaymentCustomerQuery{ - config: pcq.config, - ctx: pcq.ctx.Clone(), - order: append([]paymentcustomer.OrderOption{}, pcq.order...), - inters: append([]Interceptor{}, pcq.inters...), - predicates: append([]predicate.PaymentCustomer{}, pcq.predicates...), - withUser: pcq.withUser.Clone(), - withPaymentIntents: pcq.withPaymentIntents.Clone(), - withSubscriptions: pcq.withSubscriptions.Clone(), - withPaymentMethods: pcq.withPaymentMethods.Clone(), + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]paymentcustomer.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.PaymentCustomer{}, _q.predicates...), + withUser: _q.withUser.Clone(), + withPaymentIntents: _q.withPaymentIntents.Clone(), + withSubscriptions: _q.withSubscriptions.Clone(), + withPaymentMethods: _q.withPaymentMethods.Clone(), // clone intermediate query. - sql: pcq.sql.Clone(), - path: pcq.path, + sql: _q.sql.Clone(), + path: _q.path, } } // WithUser tells the query-builder to eager-load the nodes that are connected to // the "user" edge. The optional arguments are used to configure the query builder of the edge. -func (pcq *PaymentCustomerQuery) WithUser(opts ...func(*UserQuery)) *PaymentCustomerQuery { - query := (&UserClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) WithUser(opts ...func(*UserQuery)) *PaymentCustomerQuery { + query := (&UserClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - pcq.withUser = query - return pcq + _q.withUser = query + return _q } // WithPaymentIntents tells the query-builder to eager-load the nodes that are connected to // the "payment_intents" edge. The optional arguments are used to configure the query builder of the edge. -func (pcq *PaymentCustomerQuery) WithPaymentIntents(opts ...func(*PaymentIntentQuery)) *PaymentCustomerQuery { - query := (&PaymentIntentClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) WithPaymentIntents(opts ...func(*PaymentIntentQuery)) *PaymentCustomerQuery { + query := (&PaymentIntentClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - pcq.withPaymentIntents = query - return pcq + _q.withPaymentIntents = query + return _q } // WithSubscriptions tells the query-builder to eager-load the nodes that are connected to // the "subscriptions" edge. The optional arguments are used to configure the query builder of the edge. -func (pcq *PaymentCustomerQuery) WithSubscriptions(opts ...func(*SubscriptionQuery)) *PaymentCustomerQuery { - query := (&SubscriptionClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) WithSubscriptions(opts ...func(*SubscriptionQuery)) *PaymentCustomerQuery { + query := (&SubscriptionClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - pcq.withSubscriptions = query - return pcq + _q.withSubscriptions = query + return _q } // WithPaymentMethods tells the query-builder to eager-load the nodes that are connected to // the "payment_methods" edge. The optional arguments are used to configure the query builder of the edge. -func (pcq *PaymentCustomerQuery) WithPaymentMethods(opts ...func(*PaymentMethodQuery)) *PaymentCustomerQuery { - query := (&PaymentMethodClient{config: pcq.config}).Query() +func (_q *PaymentCustomerQuery) WithPaymentMethods(opts ...func(*PaymentMethodQuery)) *PaymentCustomerQuery { + query := (&PaymentMethodClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - pcq.withPaymentMethods = query - return pcq + _q.withPaymentMethods = query + return _q } // GroupBy is used to group vertices by one or more fields/columns. @@ -415,10 +415,10 @@ func (pcq *PaymentCustomerQuery) WithPaymentMethods(opts ...func(*PaymentMethodQ // GroupBy(paymentcustomer.FieldProviderCustomerID). // Aggregate(ent.Count()). // Scan(ctx, &v) -func (pcq *PaymentCustomerQuery) GroupBy(field string, fields ...string) *PaymentCustomerGroupBy { - pcq.ctx.Fields = append([]string{field}, fields...) - grbuild := &PaymentCustomerGroupBy{build: pcq} - grbuild.flds = &pcq.ctx.Fields +func (_q *PaymentCustomerQuery) GroupBy(field string, fields ...string) *PaymentCustomerGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &PaymentCustomerGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields grbuild.label = paymentcustomer.Label grbuild.scan = grbuild.Scan return grbuild @@ -436,61 +436,61 @@ func (pcq *PaymentCustomerQuery) GroupBy(field string, fields ...string) *Paymen // client.PaymentCustomer.Query(). // Select(paymentcustomer.FieldProviderCustomerID). // Scan(ctx, &v) -func (pcq *PaymentCustomerQuery) Select(fields ...string) *PaymentCustomerSelect { - pcq.ctx.Fields = append(pcq.ctx.Fields, fields...) - sbuild := &PaymentCustomerSelect{PaymentCustomerQuery: pcq} +func (_q *PaymentCustomerQuery) Select(fields ...string) *PaymentCustomerSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &PaymentCustomerSelect{PaymentCustomerQuery: _q} sbuild.label = paymentcustomer.Label - sbuild.flds, sbuild.scan = &pcq.ctx.Fields, sbuild.Scan + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan return sbuild } // Aggregate returns a PaymentCustomerSelect configured with the given aggregations. -func (pcq *PaymentCustomerQuery) Aggregate(fns ...AggregateFunc) *PaymentCustomerSelect { - return pcq.Select().Aggregate(fns...) +func (_q *PaymentCustomerQuery) Aggregate(fns ...AggregateFunc) *PaymentCustomerSelect { + return _q.Select().Aggregate(fns...) } -func (pcq *PaymentCustomerQuery) prepareQuery(ctx context.Context) error { - for _, inter := range pcq.inters { +func (_q *PaymentCustomerQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { if inter == nil { return fmt.Errorf("ent: uninitialized interceptor (forgotten import ent/runtime?)") } if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, pcq); err != nil { + if err := trv.Traverse(ctx, _q); err != nil { return err } } } - for _, f := range pcq.ctx.Fields { + for _, f := range _q.ctx.Fields { if !paymentcustomer.ValidColumn(f) { return &ValidationError{Name: f, err: fmt.Errorf("ent: invalid field %q for query", f)} } } - if pcq.path != nil { - prev, err := pcq.path(ctx) + if _q.path != nil { + prev, err := _q.path(ctx) if err != nil { return err } - pcq.sql = prev + _q.sql = prev } return nil } -func (pcq *PaymentCustomerQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PaymentCustomer, error) { +func (_q *PaymentCustomerQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PaymentCustomer, error) { var ( nodes = []*PaymentCustomer{} - _spec = pcq.querySpec() + _spec = _q.querySpec() loadedTypes = [4]bool{ - pcq.withUser != nil, - pcq.withPaymentIntents != nil, - pcq.withSubscriptions != nil, - pcq.withPaymentMethods != nil, + _q.withUser != nil, + _q.withPaymentIntents != nil, + _q.withSubscriptions != nil, + _q.withPaymentMethods != nil, } ) _spec.ScanValues = func(columns []string) ([]any, error) { return (*PaymentCustomer).scanValues(nil, columns) } _spec.Assign = func(columns []string, values []any) error { - node := &PaymentCustomer{config: pcq.config} + node := &PaymentCustomer{config: _q.config} nodes = append(nodes, node) node.Edges.loadedTypes = loadedTypes return node.assignValues(columns, values) @@ -498,34 +498,34 @@ func (pcq *PaymentCustomerQuery) sqlAll(ctx context.Context, hooks ...queryHook) for i := range hooks { hooks[i](ctx, _spec) } - if err := sqlgraph.QueryNodes(ctx, pcq.driver, _spec); err != nil { + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { return nil, err } if len(nodes) == 0 { return nodes, nil } - if query := pcq.withUser; query != nil { - if err := pcq.loadUser(ctx, query, nodes, nil, + if query := _q.withUser; query != nil { + if err := _q.loadUser(ctx, query, nodes, nil, func(n *PaymentCustomer, e *User) { n.Edges.User = e }); err != nil { return nil, err } } - if query := pcq.withPaymentIntents; query != nil { - if err := pcq.loadPaymentIntents(ctx, query, nodes, + if query := _q.withPaymentIntents; query != nil { + if err := _q.loadPaymentIntents(ctx, query, nodes, func(n *PaymentCustomer) { n.Edges.PaymentIntents = []*PaymentIntent{} }, func(n *PaymentCustomer, e *PaymentIntent) { n.Edges.PaymentIntents = append(n.Edges.PaymentIntents, e) }); err != nil { return nil, err } } - if query := pcq.withSubscriptions; query != nil { - if err := pcq.loadSubscriptions(ctx, query, nodes, + if query := _q.withSubscriptions; query != nil { + if err := _q.loadSubscriptions(ctx, query, nodes, func(n *PaymentCustomer) { n.Edges.Subscriptions = []*Subscription{} }, func(n *PaymentCustomer, e *Subscription) { n.Edges.Subscriptions = append(n.Edges.Subscriptions, e) }); err != nil { return nil, err } } - if query := pcq.withPaymentMethods; query != nil { - if err := pcq.loadPaymentMethods(ctx, query, nodes, + if query := _q.withPaymentMethods; query != nil { + if err := _q.loadPaymentMethods(ctx, query, nodes, func(n *PaymentCustomer) { n.Edges.PaymentMethods = []*PaymentMethod{} }, func(n *PaymentCustomer, e *PaymentMethod) { n.Edges.PaymentMethods = append(n.Edges.PaymentMethods, e) }); err != nil { return nil, err @@ -534,7 +534,7 @@ func (pcq *PaymentCustomerQuery) sqlAll(ctx context.Context, hooks ...queryHook) return nodes, nil } -func (pcq *PaymentCustomerQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *User)) error { +func (_q *PaymentCustomerQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *User)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[int]*PaymentCustomer) for i := range nodes { @@ -562,7 +562,7 @@ func (pcq *PaymentCustomerQuery) loadUser(ctx context.Context, query *UserQuery, } return nil } -func (pcq *PaymentCustomerQuery) loadPaymentIntents(ctx context.Context, query *PaymentIntentQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *PaymentIntent)) error { +func (_q *PaymentCustomerQuery) loadPaymentIntents(ctx context.Context, query *PaymentIntentQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *PaymentIntent)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[int]*PaymentCustomer) for i := range nodes { @@ -593,7 +593,7 @@ func (pcq *PaymentCustomerQuery) loadPaymentIntents(ctx context.Context, query * } return nil } -func (pcq *PaymentCustomerQuery) loadSubscriptions(ctx context.Context, query *SubscriptionQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *Subscription)) error { +func (_q *PaymentCustomerQuery) loadSubscriptions(ctx context.Context, query *SubscriptionQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *Subscription)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[int]*PaymentCustomer) for i := range nodes { @@ -624,7 +624,7 @@ func (pcq *PaymentCustomerQuery) loadSubscriptions(ctx context.Context, query *S } return nil } -func (pcq *PaymentCustomerQuery) loadPaymentMethods(ctx context.Context, query *PaymentMethodQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *PaymentMethod)) error { +func (_q *PaymentCustomerQuery) loadPaymentMethods(ctx context.Context, query *PaymentMethodQuery, nodes []*PaymentCustomer, init func(*PaymentCustomer), assign func(*PaymentCustomer, *PaymentMethod)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[int]*PaymentCustomer) for i := range nodes { @@ -656,24 +656,24 @@ func (pcq *PaymentCustomerQuery) loadPaymentMethods(ctx context.Context, query * return nil } -func (pcq *PaymentCustomerQuery) sqlCount(ctx context.Context) (int, error) { - _spec := pcq.querySpec() - _spec.Node.Columns = pcq.ctx.Fields - if len(pcq.ctx.Fields) > 0 { - _spec.Unique = pcq.ctx.Unique != nil && *pcq.ctx.Unique +func (_q *PaymentCustomerQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique } - return sqlgraph.CountNodes(ctx, pcq.driver, _spec) + return sqlgraph.CountNodes(ctx, _q.driver, _spec) } -func (pcq *PaymentCustomerQuery) querySpec() *sqlgraph.QuerySpec { +func (_q *PaymentCustomerQuery) querySpec() *sqlgraph.QuerySpec { _spec := sqlgraph.NewQuerySpec(paymentcustomer.Table, paymentcustomer.Columns, sqlgraph.NewFieldSpec(paymentcustomer.FieldID, field.TypeInt)) - _spec.From = pcq.sql - if unique := pcq.ctx.Unique; unique != nil { + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { _spec.Unique = *unique - } else if pcq.path != nil { + } else if _q.path != nil { _spec.Unique = true } - if fields := pcq.ctx.Fields; len(fields) > 0 { + if fields := _q.ctx.Fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, paymentcustomer.FieldID) for i := range fields { @@ -682,20 +682,20 @@ func (pcq *PaymentCustomerQuery) querySpec() *sqlgraph.QuerySpec { } } } - if ps := pcq.predicates; len(ps) > 0 { + if ps := _q.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if limit := pcq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { _spec.Limit = *limit } - if offset := pcq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { _spec.Offset = *offset } - if ps := pcq.order; len(ps) > 0 { + if ps := _q.order; len(ps) > 0 { _spec.Order = func(selector *sql.Selector) { for i := range ps { ps[i](selector) @@ -705,33 +705,33 @@ func (pcq *PaymentCustomerQuery) querySpec() *sqlgraph.QuerySpec { return _spec } -func (pcq *PaymentCustomerQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(pcq.driver.Dialect()) +func (_q *PaymentCustomerQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) t1 := builder.Table(paymentcustomer.Table) - columns := pcq.ctx.Fields + columns := _q.ctx.Fields if len(columns) == 0 { columns = paymentcustomer.Columns } selector := builder.Select(t1.Columns(columns...)...).From(t1) - if pcq.sql != nil { - selector = pcq.sql + if _q.sql != nil { + selector = _q.sql selector.Select(selector.Columns(columns...)...) } - if pcq.ctx.Unique != nil && *pcq.ctx.Unique { + if _q.ctx.Unique != nil && *_q.ctx.Unique { selector.Distinct() } - for _, p := range pcq.predicates { + for _, p := range _q.predicates { p(selector) } - for _, p := range pcq.order { + for _, p := range _q.order { p(selector) } - if offset := pcq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. selector.Offset(*offset).Limit(math.MaxInt32) } - if limit := pcq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { selector.Limit(*limit) } return selector @@ -744,41 +744,41 @@ type PaymentCustomerGroupBy struct { } // Aggregate adds the given aggregation functions to the group-by query. -func (pcgb *PaymentCustomerGroupBy) Aggregate(fns ...AggregateFunc) *PaymentCustomerGroupBy { - pcgb.fns = append(pcgb.fns, fns...) - return pcgb +func (_g *PaymentCustomerGroupBy) Aggregate(fns ...AggregateFunc) *PaymentCustomerGroupBy { + _g.fns = append(_g.fns, fns...) + return _g } // Scan applies the selector query and scans the result into the given value. -func (pcgb *PaymentCustomerGroupBy) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pcgb.build.ctx, ent.OpQueryGroupBy) - if err := pcgb.build.prepareQuery(ctx); err != nil { +func (_g *PaymentCustomerGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PaymentCustomerQuery, *PaymentCustomerGroupBy](ctx, pcgb.build, pcgb, pcgb.build.inters, v) + return scanWithInterceptors[*PaymentCustomerQuery, *PaymentCustomerGroupBy](ctx, _g.build, _g, _g.build.inters, v) } -func (pcgb *PaymentCustomerGroupBy) sqlScan(ctx context.Context, root *PaymentCustomerQuery, v any) error { +func (_g *PaymentCustomerGroupBy) sqlScan(ctx context.Context, root *PaymentCustomerQuery, v any) error { selector := root.sqlQuery(ctx).Select() - aggregation := make([]string, 0, len(pcgb.fns)) - for _, fn := range pcgb.fns { + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { aggregation = append(aggregation, fn(selector)) } if len(selector.SelectedColumns()) == 0 { - columns := make([]string, 0, len(*pcgb.flds)+len(pcgb.fns)) - for _, f := range *pcgb.flds { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { columns = append(columns, selector.C(f)) } columns = append(columns, aggregation...) selector.Select(columns...) } - selector.GroupBy(selector.Columns(*pcgb.flds...)...) + selector.GroupBy(selector.Columns(*_g.flds...)...) if err := selector.Err(); err != nil { return err } rows := &sql.Rows{} query, args := selector.Query() - if err := pcgb.build.driver.Query(ctx, query, args, rows); err != nil { + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() @@ -792,27 +792,27 @@ type PaymentCustomerSelect struct { } // Aggregate adds the given aggregation functions to the selector query. -func (pcs *PaymentCustomerSelect) Aggregate(fns ...AggregateFunc) *PaymentCustomerSelect { - pcs.fns = append(pcs.fns, fns...) - return pcs +func (_s *PaymentCustomerSelect) Aggregate(fns ...AggregateFunc) *PaymentCustomerSelect { + _s.fns = append(_s.fns, fns...) + return _s } // Scan applies the selector query and scans the result into the given value. -func (pcs *PaymentCustomerSelect) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pcs.ctx, ent.OpQuerySelect) - if err := pcs.prepareQuery(ctx); err != nil { +func (_s *PaymentCustomerSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PaymentCustomerQuery, *PaymentCustomerSelect](ctx, pcs.PaymentCustomerQuery, pcs, pcs.inters, v) + return scanWithInterceptors[*PaymentCustomerQuery, *PaymentCustomerSelect](ctx, _s.PaymentCustomerQuery, _s, _s.inters, v) } -func (pcs *PaymentCustomerSelect) sqlScan(ctx context.Context, root *PaymentCustomerQuery, v any) error { +func (_s *PaymentCustomerSelect) sqlScan(ctx context.Context, root *PaymentCustomerQuery, v any) error { selector := root.sqlQuery(ctx) - aggregation := make([]string, 0, len(pcs.fns)) - for _, fn := range pcs.fns { + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { aggregation = append(aggregation, fn(selector)) } - switch n := len(*pcs.selector.flds); { + switch n := len(*_s.selector.flds); { case n == 0 && len(aggregation) > 0: selector.Select(aggregation...) case n != 0 && len(aggregation) > 0: @@ -820,7 +820,7 @@ func (pcs *PaymentCustomerSelect) sqlScan(ctx context.Context, root *PaymentCust } rows := &sql.Rows{} query, args := selector.Query() - if err := pcs.driver.Query(ctx, query, args, rows); err != nil { + if err := _s.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() diff --git a/ent/paymentcustomer_update.go b/ent/paymentcustomer_update.go index 4cb9db7..9e498cf 100644 --- a/ent/paymentcustomer_update.go +++ b/ent/paymentcustomer_update.go @@ -27,230 +27,230 @@ type PaymentCustomerUpdate struct { } // Where appends a list predicates to the PaymentCustomerUpdate builder. -func (pcu *PaymentCustomerUpdate) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerUpdate { - pcu.mutation.Where(ps...) - return pcu +func (_u *PaymentCustomerUpdate) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerUpdate { + _u.mutation.Where(ps...) + return _u } // SetProviderCustomerID sets the "provider_customer_id" field. -func (pcu *PaymentCustomerUpdate) SetProviderCustomerID(s string) *PaymentCustomerUpdate { - pcu.mutation.SetProviderCustomerID(s) - return pcu +func (_u *PaymentCustomerUpdate) SetProviderCustomerID(v string) *PaymentCustomerUpdate { + _u.mutation.SetProviderCustomerID(v) + return _u } // SetNillableProviderCustomerID sets the "provider_customer_id" field if the given value is not nil. -func (pcu *PaymentCustomerUpdate) SetNillableProviderCustomerID(s *string) *PaymentCustomerUpdate { - if s != nil { - pcu.SetProviderCustomerID(*s) +func (_u *PaymentCustomerUpdate) SetNillableProviderCustomerID(v *string) *PaymentCustomerUpdate { + if v != nil { + _u.SetProviderCustomerID(*v) } - return pcu + return _u } // SetProvider sets the "provider" field. -func (pcu *PaymentCustomerUpdate) SetProvider(s string) *PaymentCustomerUpdate { - pcu.mutation.SetProvider(s) - return pcu +func (_u *PaymentCustomerUpdate) SetProvider(v string) *PaymentCustomerUpdate { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pcu *PaymentCustomerUpdate) SetNillableProvider(s *string) *PaymentCustomerUpdate { - if s != nil { - pcu.SetProvider(*s) +func (_u *PaymentCustomerUpdate) SetNillableProvider(v *string) *PaymentCustomerUpdate { + if v != nil { + _u.SetProvider(*v) } - return pcu + return _u } // SetEmail sets the "email" field. -func (pcu *PaymentCustomerUpdate) SetEmail(s string) *PaymentCustomerUpdate { - pcu.mutation.SetEmail(s) - return pcu +func (_u *PaymentCustomerUpdate) SetEmail(v string) *PaymentCustomerUpdate { + _u.mutation.SetEmail(v) + return _u } // SetNillableEmail sets the "email" field if the given value is not nil. -func (pcu *PaymentCustomerUpdate) SetNillableEmail(s *string) *PaymentCustomerUpdate { - if s != nil { - pcu.SetEmail(*s) +func (_u *PaymentCustomerUpdate) SetNillableEmail(v *string) *PaymentCustomerUpdate { + if v != nil { + _u.SetEmail(*v) } - return pcu + return _u } // SetName sets the "name" field. -func (pcu *PaymentCustomerUpdate) SetName(s string) *PaymentCustomerUpdate { - pcu.mutation.SetName(s) - return pcu +func (_u *PaymentCustomerUpdate) SetName(v string) *PaymentCustomerUpdate { + _u.mutation.SetName(v) + return _u } // SetNillableName sets the "name" field if the given value is not nil. -func (pcu *PaymentCustomerUpdate) SetNillableName(s *string) *PaymentCustomerUpdate { - if s != nil { - pcu.SetName(*s) +func (_u *PaymentCustomerUpdate) SetNillableName(v *string) *PaymentCustomerUpdate { + if v != nil { + _u.SetName(*v) } - return pcu + return _u } // ClearName clears the value of the "name" field. -func (pcu *PaymentCustomerUpdate) ClearName() *PaymentCustomerUpdate { - pcu.mutation.ClearName() - return pcu +func (_u *PaymentCustomerUpdate) ClearName() *PaymentCustomerUpdate { + _u.mutation.ClearName() + return _u } // SetMetadata sets the "metadata" field. -func (pcu *PaymentCustomerUpdate) SetMetadata(m map[string]interface{}) *PaymentCustomerUpdate { - pcu.mutation.SetMetadata(m) - return pcu +func (_u *PaymentCustomerUpdate) SetMetadata(v map[string]interface{}) *PaymentCustomerUpdate { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (pcu *PaymentCustomerUpdate) ClearMetadata() *PaymentCustomerUpdate { - pcu.mutation.ClearMetadata() - return pcu +func (_u *PaymentCustomerUpdate) ClearMetadata() *PaymentCustomerUpdate { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (pcu *PaymentCustomerUpdate) SetUpdatedAt(t time.Time) *PaymentCustomerUpdate { - pcu.mutation.SetUpdatedAt(t) - return pcu +func (_u *PaymentCustomerUpdate) SetUpdatedAt(v time.Time) *PaymentCustomerUpdate { + _u.mutation.SetUpdatedAt(v) + return _u } // SetUserID sets the "user" edge to the User entity by ID. -func (pcu *PaymentCustomerUpdate) SetUserID(id int) *PaymentCustomerUpdate { - pcu.mutation.SetUserID(id) - return pcu +func (_u *PaymentCustomerUpdate) SetUserID(id int) *PaymentCustomerUpdate { + _u.mutation.SetUserID(id) + return _u } // SetUser sets the "user" edge to the User entity. -func (pcu *PaymentCustomerUpdate) SetUser(u *User) *PaymentCustomerUpdate { - return pcu.SetUserID(u.ID) +func (_u *PaymentCustomerUpdate) SetUser(v *User) *PaymentCustomerUpdate { + return _u.SetUserID(v.ID) } // AddPaymentIntentIDs adds the "payment_intents" edge to the PaymentIntent entity by IDs. -func (pcu *PaymentCustomerUpdate) AddPaymentIntentIDs(ids ...int) *PaymentCustomerUpdate { - pcu.mutation.AddPaymentIntentIDs(ids...) - return pcu +func (_u *PaymentCustomerUpdate) AddPaymentIntentIDs(ids ...int) *PaymentCustomerUpdate { + _u.mutation.AddPaymentIntentIDs(ids...) + return _u } // AddPaymentIntents adds the "payment_intents" edges to the PaymentIntent entity. -func (pcu *PaymentCustomerUpdate) AddPaymentIntents(p ...*PaymentIntent) *PaymentCustomerUpdate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdate) AddPaymentIntents(v ...*PaymentIntent) *PaymentCustomerUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcu.AddPaymentIntentIDs(ids...) + return _u.AddPaymentIntentIDs(ids...) } // AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by IDs. -func (pcu *PaymentCustomerUpdate) AddSubscriptionIDs(ids ...int) *PaymentCustomerUpdate { - pcu.mutation.AddSubscriptionIDs(ids...) - return pcu +func (_u *PaymentCustomerUpdate) AddSubscriptionIDs(ids ...int) *PaymentCustomerUpdate { + _u.mutation.AddSubscriptionIDs(ids...) + return _u } // AddSubscriptions adds the "subscriptions" edges to the Subscription entity. -func (pcu *PaymentCustomerUpdate) AddSubscriptions(s ...*Subscription) *PaymentCustomerUpdate { - ids := make([]int, len(s)) - for i := range s { - ids[i] = s[i].ID +func (_u *PaymentCustomerUpdate) AddSubscriptions(v ...*Subscription) *PaymentCustomerUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcu.AddSubscriptionIDs(ids...) + return _u.AddSubscriptionIDs(ids...) } // AddPaymentMethodIDs adds the "payment_methods" edge to the PaymentMethod entity by IDs. -func (pcu *PaymentCustomerUpdate) AddPaymentMethodIDs(ids ...int) *PaymentCustomerUpdate { - pcu.mutation.AddPaymentMethodIDs(ids...) - return pcu +func (_u *PaymentCustomerUpdate) AddPaymentMethodIDs(ids ...int) *PaymentCustomerUpdate { + _u.mutation.AddPaymentMethodIDs(ids...) + return _u } // AddPaymentMethods adds the "payment_methods" edges to the PaymentMethod entity. -func (pcu *PaymentCustomerUpdate) AddPaymentMethods(p ...*PaymentMethod) *PaymentCustomerUpdate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdate) AddPaymentMethods(v ...*PaymentMethod) *PaymentCustomerUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcu.AddPaymentMethodIDs(ids...) + return _u.AddPaymentMethodIDs(ids...) } // Mutation returns the PaymentCustomerMutation object of the builder. -func (pcu *PaymentCustomerUpdate) Mutation() *PaymentCustomerMutation { - return pcu.mutation +func (_u *PaymentCustomerUpdate) Mutation() *PaymentCustomerMutation { + return _u.mutation } // ClearUser clears the "user" edge to the User entity. -func (pcu *PaymentCustomerUpdate) ClearUser() *PaymentCustomerUpdate { - pcu.mutation.ClearUser() - return pcu +func (_u *PaymentCustomerUpdate) ClearUser() *PaymentCustomerUpdate { + _u.mutation.ClearUser() + return _u } // ClearPaymentIntents clears all "payment_intents" edges to the PaymentIntent entity. -func (pcu *PaymentCustomerUpdate) ClearPaymentIntents() *PaymentCustomerUpdate { - pcu.mutation.ClearPaymentIntents() - return pcu +func (_u *PaymentCustomerUpdate) ClearPaymentIntents() *PaymentCustomerUpdate { + _u.mutation.ClearPaymentIntents() + return _u } // RemovePaymentIntentIDs removes the "payment_intents" edge to PaymentIntent entities by IDs. -func (pcu *PaymentCustomerUpdate) RemovePaymentIntentIDs(ids ...int) *PaymentCustomerUpdate { - pcu.mutation.RemovePaymentIntentIDs(ids...) - return pcu +func (_u *PaymentCustomerUpdate) RemovePaymentIntentIDs(ids ...int) *PaymentCustomerUpdate { + _u.mutation.RemovePaymentIntentIDs(ids...) + return _u } // RemovePaymentIntents removes "payment_intents" edges to PaymentIntent entities. -func (pcu *PaymentCustomerUpdate) RemovePaymentIntents(p ...*PaymentIntent) *PaymentCustomerUpdate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdate) RemovePaymentIntents(v ...*PaymentIntent) *PaymentCustomerUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcu.RemovePaymentIntentIDs(ids...) + return _u.RemovePaymentIntentIDs(ids...) } // ClearSubscriptions clears all "subscriptions" edges to the Subscription entity. -func (pcu *PaymentCustomerUpdate) ClearSubscriptions() *PaymentCustomerUpdate { - pcu.mutation.ClearSubscriptions() - return pcu +func (_u *PaymentCustomerUpdate) ClearSubscriptions() *PaymentCustomerUpdate { + _u.mutation.ClearSubscriptions() + return _u } // RemoveSubscriptionIDs removes the "subscriptions" edge to Subscription entities by IDs. -func (pcu *PaymentCustomerUpdate) RemoveSubscriptionIDs(ids ...int) *PaymentCustomerUpdate { - pcu.mutation.RemoveSubscriptionIDs(ids...) - return pcu +func (_u *PaymentCustomerUpdate) RemoveSubscriptionIDs(ids ...int) *PaymentCustomerUpdate { + _u.mutation.RemoveSubscriptionIDs(ids...) + return _u } // RemoveSubscriptions removes "subscriptions" edges to Subscription entities. -func (pcu *PaymentCustomerUpdate) RemoveSubscriptions(s ...*Subscription) *PaymentCustomerUpdate { - ids := make([]int, len(s)) - for i := range s { - ids[i] = s[i].ID +func (_u *PaymentCustomerUpdate) RemoveSubscriptions(v ...*Subscription) *PaymentCustomerUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcu.RemoveSubscriptionIDs(ids...) + return _u.RemoveSubscriptionIDs(ids...) } // ClearPaymentMethods clears all "payment_methods" edges to the PaymentMethod entity. -func (pcu *PaymentCustomerUpdate) ClearPaymentMethods() *PaymentCustomerUpdate { - pcu.mutation.ClearPaymentMethods() - return pcu +func (_u *PaymentCustomerUpdate) ClearPaymentMethods() *PaymentCustomerUpdate { + _u.mutation.ClearPaymentMethods() + return _u } // RemovePaymentMethodIDs removes the "payment_methods" edge to PaymentMethod entities by IDs. -func (pcu *PaymentCustomerUpdate) RemovePaymentMethodIDs(ids ...int) *PaymentCustomerUpdate { - pcu.mutation.RemovePaymentMethodIDs(ids...) - return pcu +func (_u *PaymentCustomerUpdate) RemovePaymentMethodIDs(ids ...int) *PaymentCustomerUpdate { + _u.mutation.RemovePaymentMethodIDs(ids...) + return _u } // RemovePaymentMethods removes "payment_methods" edges to PaymentMethod entities. -func (pcu *PaymentCustomerUpdate) RemovePaymentMethods(p ...*PaymentMethod) *PaymentCustomerUpdate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdate) RemovePaymentMethods(v ...*PaymentMethod) *PaymentCustomerUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcu.RemovePaymentMethodIDs(ids...) + return _u.RemovePaymentMethodIDs(ids...) } // Save executes the query and returns the number of nodes affected by the update operation. -func (pcu *PaymentCustomerUpdate) Save(ctx context.Context) (int, error) { - pcu.defaults() - return withHooks(ctx, pcu.sqlSave, pcu.mutation, pcu.hooks) +func (_u *PaymentCustomerUpdate) Save(ctx context.Context) (int, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (pcu *PaymentCustomerUpdate) SaveX(ctx context.Context) int { - affected, err := pcu.Save(ctx) +func (_u *PaymentCustomerUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) if err != nil { panic(err) } @@ -258,86 +258,86 @@ func (pcu *PaymentCustomerUpdate) SaveX(ctx context.Context) int { } // Exec executes the query. -func (pcu *PaymentCustomerUpdate) Exec(ctx context.Context) error { - _, err := pcu.Save(ctx) +func (_u *PaymentCustomerUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pcu *PaymentCustomerUpdate) ExecX(ctx context.Context) { - if err := pcu.Exec(ctx); err != nil { +func (_u *PaymentCustomerUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pcu *PaymentCustomerUpdate) defaults() { - if _, ok := pcu.mutation.UpdatedAt(); !ok { +func (_u *PaymentCustomerUpdate) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := paymentcustomer.UpdateDefaultUpdatedAt() - pcu.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pcu *PaymentCustomerUpdate) check() error { - if v, ok := pcu.mutation.ProviderCustomerID(); ok { +func (_u *PaymentCustomerUpdate) check() error { + if v, ok := _u.mutation.ProviderCustomerID(); ok { if err := paymentcustomer.ProviderCustomerIDValidator(v); err != nil { return &ValidationError{Name: "provider_customer_id", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.provider_customer_id": %w`, err)} } } - if v, ok := pcu.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := paymentcustomer.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.provider": %w`, err)} } } - if v, ok := pcu.mutation.Email(); ok { + if v, ok := _u.mutation.Email(); ok { if err := paymentcustomer.EmailValidator(v); err != nil { return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.email": %w`, err)} } } - if pcu.mutation.UserCleared() && len(pcu.mutation.UserIDs()) > 0 { + if _u.mutation.UserCleared() && len(_u.mutation.UserIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PaymentCustomer.user"`) } return nil } -func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := pcu.check(); err != nil { - return n, err +func (_u *PaymentCustomerUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err } _spec := sqlgraph.NewUpdateSpec(paymentcustomer.Table, paymentcustomer.Columns, sqlgraph.NewFieldSpec(paymentcustomer.FieldID, field.TypeInt)) - if ps := pcu.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := pcu.mutation.ProviderCustomerID(); ok { + if value, ok := _u.mutation.ProviderCustomerID(); ok { _spec.SetField(paymentcustomer.FieldProviderCustomerID, field.TypeString, value) } - if value, ok := pcu.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(paymentcustomer.FieldProvider, field.TypeString, value) } - if value, ok := pcu.mutation.Email(); ok { + if value, ok := _u.mutation.Email(); ok { _spec.SetField(paymentcustomer.FieldEmail, field.TypeString, value) } - if value, ok := pcu.mutation.Name(); ok { + if value, ok := _u.mutation.Name(); ok { _spec.SetField(paymentcustomer.FieldName, field.TypeString, value) } - if pcu.mutation.NameCleared() { + if _u.mutation.NameCleared() { _spec.ClearField(paymentcustomer.FieldName, field.TypeString) } - if value, ok := pcu.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(paymentcustomer.FieldMetadata, field.TypeJSON, value) } - if pcu.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(paymentcustomer.FieldMetadata, field.TypeJSON) } - if value, ok := pcu.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(paymentcustomer.FieldUpdatedAt, field.TypeTime, value) } - if pcu.mutation.UserCleared() { + if _u.mutation.UserCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: false, @@ -350,7 +350,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.UserIDs(); len(nodes) > 0 { + if nodes := _u.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: false, @@ -366,7 +366,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if pcu.mutation.PaymentIntentsCleared() { + if _u.mutation.PaymentIntentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -379,7 +379,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.RemovedPaymentIntentsIDs(); len(nodes) > 0 && !pcu.mutation.PaymentIntentsCleared() { + if nodes := _u.mutation.RemovedPaymentIntentsIDs(); len(nodes) > 0 && !_u.mutation.PaymentIntentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -395,7 +395,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.PaymentIntentsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PaymentIntentsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -411,7 +411,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if pcu.mutation.SubscriptionsCleared() { + if _u.mutation.SubscriptionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -424,7 +424,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.RemovedSubscriptionsIDs(); len(nodes) > 0 && !pcu.mutation.SubscriptionsCleared() { + if nodes := _u.mutation.RemovedSubscriptionsIDs(); len(nodes) > 0 && !_u.mutation.SubscriptionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -440,7 +440,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.SubscriptionsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.SubscriptionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -456,7 +456,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if pcu.mutation.PaymentMethodsCleared() { + if _u.mutation.PaymentMethodsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -469,7 +469,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.RemovedPaymentMethodsIDs(); len(nodes) > 0 && !pcu.mutation.PaymentMethodsCleared() { + if nodes := _u.mutation.RemovedPaymentMethodsIDs(); len(nodes) > 0 && !_u.mutation.PaymentMethodsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -485,7 +485,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcu.mutation.PaymentMethodsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PaymentMethodsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -501,7 +501,7 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if n, err = sqlgraph.UpdateNodes(ctx, pcu.driver, _spec); err != nil { + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{paymentcustomer.Label} } else if sqlgraph.IsConstraintError(err) { @@ -509,8 +509,8 @@ func (pcu *PaymentCustomerUpdate) sqlSave(ctx context.Context) (n int, err error } return 0, err } - pcu.mutation.done = true - return n, nil + _u.mutation.done = true + return _node, nil } // PaymentCustomerUpdateOne is the builder for updating a single PaymentCustomer entity. @@ -522,237 +522,237 @@ type PaymentCustomerUpdateOne struct { } // SetProviderCustomerID sets the "provider_customer_id" field. -func (pcuo *PaymentCustomerUpdateOne) SetProviderCustomerID(s string) *PaymentCustomerUpdateOne { - pcuo.mutation.SetProviderCustomerID(s) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetProviderCustomerID(v string) *PaymentCustomerUpdateOne { + _u.mutation.SetProviderCustomerID(v) + return _u } // SetNillableProviderCustomerID sets the "provider_customer_id" field if the given value is not nil. -func (pcuo *PaymentCustomerUpdateOne) SetNillableProviderCustomerID(s *string) *PaymentCustomerUpdateOne { - if s != nil { - pcuo.SetProviderCustomerID(*s) +func (_u *PaymentCustomerUpdateOne) SetNillableProviderCustomerID(v *string) *PaymentCustomerUpdateOne { + if v != nil { + _u.SetProviderCustomerID(*v) } - return pcuo + return _u } // SetProvider sets the "provider" field. -func (pcuo *PaymentCustomerUpdateOne) SetProvider(s string) *PaymentCustomerUpdateOne { - pcuo.mutation.SetProvider(s) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetProvider(v string) *PaymentCustomerUpdateOne { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pcuo *PaymentCustomerUpdateOne) SetNillableProvider(s *string) *PaymentCustomerUpdateOne { - if s != nil { - pcuo.SetProvider(*s) +func (_u *PaymentCustomerUpdateOne) SetNillableProvider(v *string) *PaymentCustomerUpdateOne { + if v != nil { + _u.SetProvider(*v) } - return pcuo + return _u } // SetEmail sets the "email" field. -func (pcuo *PaymentCustomerUpdateOne) SetEmail(s string) *PaymentCustomerUpdateOne { - pcuo.mutation.SetEmail(s) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetEmail(v string) *PaymentCustomerUpdateOne { + _u.mutation.SetEmail(v) + return _u } // SetNillableEmail sets the "email" field if the given value is not nil. -func (pcuo *PaymentCustomerUpdateOne) SetNillableEmail(s *string) *PaymentCustomerUpdateOne { - if s != nil { - pcuo.SetEmail(*s) +func (_u *PaymentCustomerUpdateOne) SetNillableEmail(v *string) *PaymentCustomerUpdateOne { + if v != nil { + _u.SetEmail(*v) } - return pcuo + return _u } // SetName sets the "name" field. -func (pcuo *PaymentCustomerUpdateOne) SetName(s string) *PaymentCustomerUpdateOne { - pcuo.mutation.SetName(s) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetName(v string) *PaymentCustomerUpdateOne { + _u.mutation.SetName(v) + return _u } // SetNillableName sets the "name" field if the given value is not nil. -func (pcuo *PaymentCustomerUpdateOne) SetNillableName(s *string) *PaymentCustomerUpdateOne { - if s != nil { - pcuo.SetName(*s) +func (_u *PaymentCustomerUpdateOne) SetNillableName(v *string) *PaymentCustomerUpdateOne { + if v != nil { + _u.SetName(*v) } - return pcuo + return _u } // ClearName clears the value of the "name" field. -func (pcuo *PaymentCustomerUpdateOne) ClearName() *PaymentCustomerUpdateOne { - pcuo.mutation.ClearName() - return pcuo +func (_u *PaymentCustomerUpdateOne) ClearName() *PaymentCustomerUpdateOne { + _u.mutation.ClearName() + return _u } // SetMetadata sets the "metadata" field. -func (pcuo *PaymentCustomerUpdateOne) SetMetadata(m map[string]interface{}) *PaymentCustomerUpdateOne { - pcuo.mutation.SetMetadata(m) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetMetadata(v map[string]interface{}) *PaymentCustomerUpdateOne { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (pcuo *PaymentCustomerUpdateOne) ClearMetadata() *PaymentCustomerUpdateOne { - pcuo.mutation.ClearMetadata() - return pcuo +func (_u *PaymentCustomerUpdateOne) ClearMetadata() *PaymentCustomerUpdateOne { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (pcuo *PaymentCustomerUpdateOne) SetUpdatedAt(t time.Time) *PaymentCustomerUpdateOne { - pcuo.mutation.SetUpdatedAt(t) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetUpdatedAt(v time.Time) *PaymentCustomerUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u } // SetUserID sets the "user" edge to the User entity by ID. -func (pcuo *PaymentCustomerUpdateOne) SetUserID(id int) *PaymentCustomerUpdateOne { - pcuo.mutation.SetUserID(id) - return pcuo +func (_u *PaymentCustomerUpdateOne) SetUserID(id int) *PaymentCustomerUpdateOne { + _u.mutation.SetUserID(id) + return _u } // SetUser sets the "user" edge to the User entity. -func (pcuo *PaymentCustomerUpdateOne) SetUser(u *User) *PaymentCustomerUpdateOne { - return pcuo.SetUserID(u.ID) +func (_u *PaymentCustomerUpdateOne) SetUser(v *User) *PaymentCustomerUpdateOne { + return _u.SetUserID(v.ID) } // AddPaymentIntentIDs adds the "payment_intents" edge to the PaymentIntent entity by IDs. -func (pcuo *PaymentCustomerUpdateOne) AddPaymentIntentIDs(ids ...int) *PaymentCustomerUpdateOne { - pcuo.mutation.AddPaymentIntentIDs(ids...) - return pcuo +func (_u *PaymentCustomerUpdateOne) AddPaymentIntentIDs(ids ...int) *PaymentCustomerUpdateOne { + _u.mutation.AddPaymentIntentIDs(ids...) + return _u } // AddPaymentIntents adds the "payment_intents" edges to the PaymentIntent entity. -func (pcuo *PaymentCustomerUpdateOne) AddPaymentIntents(p ...*PaymentIntent) *PaymentCustomerUpdateOne { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdateOne) AddPaymentIntents(v ...*PaymentIntent) *PaymentCustomerUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcuo.AddPaymentIntentIDs(ids...) + return _u.AddPaymentIntentIDs(ids...) } // AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by IDs. -func (pcuo *PaymentCustomerUpdateOne) AddSubscriptionIDs(ids ...int) *PaymentCustomerUpdateOne { - pcuo.mutation.AddSubscriptionIDs(ids...) - return pcuo +func (_u *PaymentCustomerUpdateOne) AddSubscriptionIDs(ids ...int) *PaymentCustomerUpdateOne { + _u.mutation.AddSubscriptionIDs(ids...) + return _u } // AddSubscriptions adds the "subscriptions" edges to the Subscription entity. -func (pcuo *PaymentCustomerUpdateOne) AddSubscriptions(s ...*Subscription) *PaymentCustomerUpdateOne { - ids := make([]int, len(s)) - for i := range s { - ids[i] = s[i].ID +func (_u *PaymentCustomerUpdateOne) AddSubscriptions(v ...*Subscription) *PaymentCustomerUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcuo.AddSubscriptionIDs(ids...) + return _u.AddSubscriptionIDs(ids...) } // AddPaymentMethodIDs adds the "payment_methods" edge to the PaymentMethod entity by IDs. -func (pcuo *PaymentCustomerUpdateOne) AddPaymentMethodIDs(ids ...int) *PaymentCustomerUpdateOne { - pcuo.mutation.AddPaymentMethodIDs(ids...) - return pcuo +func (_u *PaymentCustomerUpdateOne) AddPaymentMethodIDs(ids ...int) *PaymentCustomerUpdateOne { + _u.mutation.AddPaymentMethodIDs(ids...) + return _u } // AddPaymentMethods adds the "payment_methods" edges to the PaymentMethod entity. -func (pcuo *PaymentCustomerUpdateOne) AddPaymentMethods(p ...*PaymentMethod) *PaymentCustomerUpdateOne { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdateOne) AddPaymentMethods(v ...*PaymentMethod) *PaymentCustomerUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcuo.AddPaymentMethodIDs(ids...) + return _u.AddPaymentMethodIDs(ids...) } // Mutation returns the PaymentCustomerMutation object of the builder. -func (pcuo *PaymentCustomerUpdateOne) Mutation() *PaymentCustomerMutation { - return pcuo.mutation +func (_u *PaymentCustomerUpdateOne) Mutation() *PaymentCustomerMutation { + return _u.mutation } // ClearUser clears the "user" edge to the User entity. -func (pcuo *PaymentCustomerUpdateOne) ClearUser() *PaymentCustomerUpdateOne { - pcuo.mutation.ClearUser() - return pcuo +func (_u *PaymentCustomerUpdateOne) ClearUser() *PaymentCustomerUpdateOne { + _u.mutation.ClearUser() + return _u } // ClearPaymentIntents clears all "payment_intents" edges to the PaymentIntent entity. -func (pcuo *PaymentCustomerUpdateOne) ClearPaymentIntents() *PaymentCustomerUpdateOne { - pcuo.mutation.ClearPaymentIntents() - return pcuo +func (_u *PaymentCustomerUpdateOne) ClearPaymentIntents() *PaymentCustomerUpdateOne { + _u.mutation.ClearPaymentIntents() + return _u } // RemovePaymentIntentIDs removes the "payment_intents" edge to PaymentIntent entities by IDs. -func (pcuo *PaymentCustomerUpdateOne) RemovePaymentIntentIDs(ids ...int) *PaymentCustomerUpdateOne { - pcuo.mutation.RemovePaymentIntentIDs(ids...) - return pcuo +func (_u *PaymentCustomerUpdateOne) RemovePaymentIntentIDs(ids ...int) *PaymentCustomerUpdateOne { + _u.mutation.RemovePaymentIntentIDs(ids...) + return _u } // RemovePaymentIntents removes "payment_intents" edges to PaymentIntent entities. -func (pcuo *PaymentCustomerUpdateOne) RemovePaymentIntents(p ...*PaymentIntent) *PaymentCustomerUpdateOne { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdateOne) RemovePaymentIntents(v ...*PaymentIntent) *PaymentCustomerUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcuo.RemovePaymentIntentIDs(ids...) + return _u.RemovePaymentIntentIDs(ids...) } // ClearSubscriptions clears all "subscriptions" edges to the Subscription entity. -func (pcuo *PaymentCustomerUpdateOne) ClearSubscriptions() *PaymentCustomerUpdateOne { - pcuo.mutation.ClearSubscriptions() - return pcuo +func (_u *PaymentCustomerUpdateOne) ClearSubscriptions() *PaymentCustomerUpdateOne { + _u.mutation.ClearSubscriptions() + return _u } // RemoveSubscriptionIDs removes the "subscriptions" edge to Subscription entities by IDs. -func (pcuo *PaymentCustomerUpdateOne) RemoveSubscriptionIDs(ids ...int) *PaymentCustomerUpdateOne { - pcuo.mutation.RemoveSubscriptionIDs(ids...) - return pcuo +func (_u *PaymentCustomerUpdateOne) RemoveSubscriptionIDs(ids ...int) *PaymentCustomerUpdateOne { + _u.mutation.RemoveSubscriptionIDs(ids...) + return _u } // RemoveSubscriptions removes "subscriptions" edges to Subscription entities. -func (pcuo *PaymentCustomerUpdateOne) RemoveSubscriptions(s ...*Subscription) *PaymentCustomerUpdateOne { - ids := make([]int, len(s)) - for i := range s { - ids[i] = s[i].ID +func (_u *PaymentCustomerUpdateOne) RemoveSubscriptions(v ...*Subscription) *PaymentCustomerUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcuo.RemoveSubscriptionIDs(ids...) + return _u.RemoveSubscriptionIDs(ids...) } // ClearPaymentMethods clears all "payment_methods" edges to the PaymentMethod entity. -func (pcuo *PaymentCustomerUpdateOne) ClearPaymentMethods() *PaymentCustomerUpdateOne { - pcuo.mutation.ClearPaymentMethods() - return pcuo +func (_u *PaymentCustomerUpdateOne) ClearPaymentMethods() *PaymentCustomerUpdateOne { + _u.mutation.ClearPaymentMethods() + return _u } // RemovePaymentMethodIDs removes the "payment_methods" edge to PaymentMethod entities by IDs. -func (pcuo *PaymentCustomerUpdateOne) RemovePaymentMethodIDs(ids ...int) *PaymentCustomerUpdateOne { - pcuo.mutation.RemovePaymentMethodIDs(ids...) - return pcuo +func (_u *PaymentCustomerUpdateOne) RemovePaymentMethodIDs(ids ...int) *PaymentCustomerUpdateOne { + _u.mutation.RemovePaymentMethodIDs(ids...) + return _u } // RemovePaymentMethods removes "payment_methods" edges to PaymentMethod entities. -func (pcuo *PaymentCustomerUpdateOne) RemovePaymentMethods(p ...*PaymentMethod) *PaymentCustomerUpdateOne { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *PaymentCustomerUpdateOne) RemovePaymentMethods(v ...*PaymentMethod) *PaymentCustomerUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return pcuo.RemovePaymentMethodIDs(ids...) + return _u.RemovePaymentMethodIDs(ids...) } // Where appends a list predicates to the PaymentCustomerUpdate builder. -func (pcuo *PaymentCustomerUpdateOne) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerUpdateOne { - pcuo.mutation.Where(ps...) - return pcuo +func (_u *PaymentCustomerUpdateOne) Where(ps ...predicate.PaymentCustomer) *PaymentCustomerUpdateOne { + _u.mutation.Where(ps...) + return _u } // Select allows selecting one or more fields (columns) of the returned entity. // The default is selecting all fields defined in the entity schema. -func (pcuo *PaymentCustomerUpdateOne) Select(field string, fields ...string) *PaymentCustomerUpdateOne { - pcuo.fields = append([]string{field}, fields...) - return pcuo +func (_u *PaymentCustomerUpdateOne) Select(field string, fields ...string) *PaymentCustomerUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } // Save executes the query and returns the updated PaymentCustomer entity. -func (pcuo *PaymentCustomerUpdateOne) Save(ctx context.Context) (*PaymentCustomer, error) { - pcuo.defaults() - return withHooks(ctx, pcuo.sqlSave, pcuo.mutation, pcuo.hooks) +func (_u *PaymentCustomerUpdateOne) Save(ctx context.Context) (*PaymentCustomer, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (pcuo *PaymentCustomerUpdateOne) SaveX(ctx context.Context) *PaymentCustomer { - node, err := pcuo.Save(ctx) +func (_u *PaymentCustomerUpdateOne) SaveX(ctx context.Context) *PaymentCustomer { + node, err := _u.Save(ctx) if err != nil { panic(err) } @@ -760,60 +760,60 @@ func (pcuo *PaymentCustomerUpdateOne) SaveX(ctx context.Context) *PaymentCustome } // Exec executes the query on the entity. -func (pcuo *PaymentCustomerUpdateOne) Exec(ctx context.Context) error { - _, err := pcuo.Save(ctx) +func (_u *PaymentCustomerUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pcuo *PaymentCustomerUpdateOne) ExecX(ctx context.Context) { - if err := pcuo.Exec(ctx); err != nil { +func (_u *PaymentCustomerUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pcuo *PaymentCustomerUpdateOne) defaults() { - if _, ok := pcuo.mutation.UpdatedAt(); !ok { +func (_u *PaymentCustomerUpdateOne) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := paymentcustomer.UpdateDefaultUpdatedAt() - pcuo.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pcuo *PaymentCustomerUpdateOne) check() error { - if v, ok := pcuo.mutation.ProviderCustomerID(); ok { +func (_u *PaymentCustomerUpdateOne) check() error { + if v, ok := _u.mutation.ProviderCustomerID(); ok { if err := paymentcustomer.ProviderCustomerIDValidator(v); err != nil { return &ValidationError{Name: "provider_customer_id", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.provider_customer_id": %w`, err)} } } - if v, ok := pcuo.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := paymentcustomer.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.provider": %w`, err)} } } - if v, ok := pcuo.mutation.Email(); ok { + if v, ok := _u.mutation.Email(); ok { if err := paymentcustomer.EmailValidator(v); err != nil { return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "PaymentCustomer.email": %w`, err)} } } - if pcuo.mutation.UserCleared() && len(pcuo.mutation.UserIDs()) > 0 { + if _u.mutation.UserCleared() && len(_u.mutation.UserIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PaymentCustomer.user"`) } return nil } -func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *PaymentCustomer, err error) { - if err := pcuo.check(); err != nil { +func (_u *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *PaymentCustomer, err error) { + if err := _u.check(); err != nil { return _node, err } _spec := sqlgraph.NewUpdateSpec(paymentcustomer.Table, paymentcustomer.Columns, sqlgraph.NewFieldSpec(paymentcustomer.FieldID, field.TypeInt)) - id, ok := pcuo.mutation.ID() + id, ok := _u.mutation.ID() if !ok { return nil, &ValidationError{Name: "id", err: errors.New(`ent: missing "PaymentCustomer.id" for update`)} } _spec.Node.ID.Value = id - if fields := pcuo.fields; len(fields) > 0 { + if fields := _u.fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, paymentcustomer.FieldID) for _, f := range fields { @@ -825,38 +825,38 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } } } - if ps := pcuo.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := pcuo.mutation.ProviderCustomerID(); ok { + if value, ok := _u.mutation.ProviderCustomerID(); ok { _spec.SetField(paymentcustomer.FieldProviderCustomerID, field.TypeString, value) } - if value, ok := pcuo.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(paymentcustomer.FieldProvider, field.TypeString, value) } - if value, ok := pcuo.mutation.Email(); ok { + if value, ok := _u.mutation.Email(); ok { _spec.SetField(paymentcustomer.FieldEmail, field.TypeString, value) } - if value, ok := pcuo.mutation.Name(); ok { + if value, ok := _u.mutation.Name(); ok { _spec.SetField(paymentcustomer.FieldName, field.TypeString, value) } - if pcuo.mutation.NameCleared() { + if _u.mutation.NameCleared() { _spec.ClearField(paymentcustomer.FieldName, field.TypeString) } - if value, ok := pcuo.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(paymentcustomer.FieldMetadata, field.TypeJSON, value) } - if pcuo.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(paymentcustomer.FieldMetadata, field.TypeJSON) } - if value, ok := pcuo.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(paymentcustomer.FieldUpdatedAt, field.TypeTime, value) } - if pcuo.mutation.UserCleared() { + if _u.mutation.UserCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: false, @@ -869,7 +869,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.UserIDs(); len(nodes) > 0 { + if nodes := _u.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: false, @@ -885,7 +885,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if pcuo.mutation.PaymentIntentsCleared() { + if _u.mutation.PaymentIntentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -898,7 +898,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.RemovedPaymentIntentsIDs(); len(nodes) > 0 && !pcuo.mutation.PaymentIntentsCleared() { + if nodes := _u.mutation.RemovedPaymentIntentsIDs(); len(nodes) > 0 && !_u.mutation.PaymentIntentsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -914,7 +914,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.PaymentIntentsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PaymentIntentsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -930,7 +930,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if pcuo.mutation.SubscriptionsCleared() { + if _u.mutation.SubscriptionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -943,7 +943,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.RemovedSubscriptionsIDs(); len(nodes) > 0 && !pcuo.mutation.SubscriptionsCleared() { + if nodes := _u.mutation.RemovedSubscriptionsIDs(); len(nodes) > 0 && !_u.mutation.SubscriptionsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -959,7 +959,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.SubscriptionsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.SubscriptionsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -975,7 +975,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if pcuo.mutation.PaymentMethodsCleared() { + if _u.mutation.PaymentMethodsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -988,7 +988,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.RemovedPaymentMethodsIDs(); len(nodes) > 0 && !pcuo.mutation.PaymentMethodsCleared() { + if nodes := _u.mutation.RemovedPaymentMethodsIDs(); len(nodes) > 0 && !_u.mutation.PaymentMethodsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -1004,7 +1004,7 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pcuo.mutation.PaymentMethodsIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PaymentMethodsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, @@ -1020,10 +1020,10 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - _node = &PaymentCustomer{config: pcuo.config} + _node = &PaymentCustomer{config: _u.config} _spec.Assign = _node.assignValues _spec.ScanValues = _node.scanValues - if err = sqlgraph.UpdateNode(ctx, pcuo.driver, _spec); err != nil { + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{paymentcustomer.Label} } else if sqlgraph.IsConstraintError(err) { @@ -1031,6 +1031,6 @@ func (pcuo *PaymentCustomerUpdateOne) sqlSave(ctx context.Context) (_node *Payme } return nil, err } - pcuo.mutation.done = true + _u.mutation.done = true return _node, nil } diff --git a/ent/paymentintent.go b/ent/paymentintent.go index 4c0fd92..cf4bb65 100644 --- a/ent/paymentintent.go +++ b/ent/paymentintent.go @@ -90,7 +90,7 @@ func (*PaymentIntent) scanValues(columns []string) ([]any, error) { // assignValues assigns the values that were returned from sql.Rows (after scanning) // to the PaymentIntent fields. -func (pi *PaymentIntent) assignValues(columns []string, values []any) error { +func (_m *PaymentIntent) assignValues(columns []string, values []any) error { if m, n := len(values), len(columns); m < n { return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) } @@ -101,54 +101,54 @@ func (pi *PaymentIntent) assignValues(columns []string, values []any) error { if !ok { return fmt.Errorf("unexpected type %T for field id", value) } - pi.ID = int(value.Int64) + _m.ID = int(value.Int64) case paymentintent.FieldProviderPaymentIntentID: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider_payment_intent_id", values[i]) } else if value.Valid { - pi.ProviderPaymentIntentID = value.String + _m.ProviderPaymentIntentID = value.String } case paymentintent.FieldProvider: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider", values[i]) } else if value.Valid { - pi.Provider = value.String + _m.Provider = value.String } case paymentintent.FieldStatus: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field status", values[i]) } else if value.Valid { - pi.Status = paymentintent.Status(value.String) + _m.Status = paymentintent.Status(value.String) } case paymentintent.FieldAmount: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for field amount", values[i]) } else if value.Valid { - pi.Amount = value.Int64 + _m.Amount = value.Int64 } case paymentintent.FieldCurrency: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field currency", values[i]) } else if value.Valid { - pi.Currency = value.String + _m.Currency = value.String } case paymentintent.FieldDescription: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field description", values[i]) } else if value.Valid { - pi.Description = value.String + _m.Description = value.String } case paymentintent.FieldClientSecret: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field client_secret", values[i]) } else if value.Valid { - pi.ClientSecret = value.String + _m.ClientSecret = value.String } case paymentintent.FieldMetadata: if value, ok := values[i].(*[]byte); !ok { return fmt.Errorf("unexpected type %T for field metadata", values[i]) } else if value != nil && len(*value) > 0 { - if err := json.Unmarshal(*value, &pi.Metadata); err != nil { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { return fmt.Errorf("unmarshal field metadata: %w", err) } } @@ -156,23 +156,23 @@ func (pi *PaymentIntent) assignValues(columns []string, values []any) error { if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field created_at", values[i]) } else if value.Valid { - pi.CreatedAt = value.Time + _m.CreatedAt = value.Time } case paymentintent.FieldUpdatedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field updated_at", values[i]) } else if value.Valid { - pi.UpdatedAt = value.Time + _m.UpdatedAt = value.Time } case paymentintent.ForeignKeys[0]: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for edge-field payment_customer_payment_intents", value) } else if value.Valid { - pi.payment_customer_payment_intents = new(int) - *pi.payment_customer_payment_intents = int(value.Int64) + _m.payment_customer_payment_intents = new(int) + *_m.payment_customer_payment_intents = int(value.Int64) } default: - pi.selectValues.Set(columns[i], values[i]) + _m.selectValues.Set(columns[i], values[i]) } } return nil @@ -180,66 +180,66 @@ func (pi *PaymentIntent) assignValues(columns []string, values []any) error { // Value returns the ent.Value that was dynamically selected and assigned to the PaymentIntent. // This includes values selected through modifiers, order, etc. -func (pi *PaymentIntent) Value(name string) (ent.Value, error) { - return pi.selectValues.Get(name) +func (_m *PaymentIntent) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) } // QueryCustomer queries the "customer" edge of the PaymentIntent entity. -func (pi *PaymentIntent) QueryCustomer() *PaymentCustomerQuery { - return NewPaymentIntentClient(pi.config).QueryCustomer(pi) +func (_m *PaymentIntent) QueryCustomer() *PaymentCustomerQuery { + return NewPaymentIntentClient(_m.config).QueryCustomer(_m) } // Update returns a builder for updating this PaymentIntent. // Note that you need to call PaymentIntent.Unwrap() before calling this method if this PaymentIntent // was returned from a transaction, and the transaction was committed or rolled back. -func (pi *PaymentIntent) Update() *PaymentIntentUpdateOne { - return NewPaymentIntentClient(pi.config).UpdateOne(pi) +func (_m *PaymentIntent) Update() *PaymentIntentUpdateOne { + return NewPaymentIntentClient(_m.config).UpdateOne(_m) } // Unwrap unwraps the PaymentIntent entity that was returned from a transaction after it was closed, // so that all future queries will be executed through the driver which created the transaction. -func (pi *PaymentIntent) Unwrap() *PaymentIntent { - _tx, ok := pi.config.driver.(*txDriver) +func (_m *PaymentIntent) Unwrap() *PaymentIntent { + _tx, ok := _m.config.driver.(*txDriver) if !ok { panic("ent: PaymentIntent is not a transactional entity") } - pi.config.driver = _tx.drv - return pi + _m.config.driver = _tx.drv + return _m } // String implements the fmt.Stringer. -func (pi *PaymentIntent) String() string { +func (_m *PaymentIntent) String() string { var builder strings.Builder builder.WriteString("PaymentIntent(") - builder.WriteString(fmt.Sprintf("id=%v, ", pi.ID)) + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) builder.WriteString("provider_payment_intent_id=") - builder.WriteString(pi.ProviderPaymentIntentID) + builder.WriteString(_m.ProviderPaymentIntentID) builder.WriteString(", ") builder.WriteString("provider=") - builder.WriteString(pi.Provider) + builder.WriteString(_m.Provider) builder.WriteString(", ") builder.WriteString("status=") - builder.WriteString(fmt.Sprintf("%v", pi.Status)) + builder.WriteString(fmt.Sprintf("%v", _m.Status)) builder.WriteString(", ") builder.WriteString("amount=") - builder.WriteString(fmt.Sprintf("%v", pi.Amount)) + builder.WriteString(fmt.Sprintf("%v", _m.Amount)) builder.WriteString(", ") builder.WriteString("currency=") - builder.WriteString(pi.Currency) + builder.WriteString(_m.Currency) builder.WriteString(", ") builder.WriteString("description=") - builder.WriteString(pi.Description) + builder.WriteString(_m.Description) builder.WriteString(", ") builder.WriteString("client_secret=") builder.WriteString(", ") builder.WriteString("metadata=") - builder.WriteString(fmt.Sprintf("%v", pi.Metadata)) + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) builder.WriteString(", ") builder.WriteString("created_at=") - builder.WriteString(pi.CreatedAt.Format(time.ANSIC)) + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("updated_at=") - builder.WriteString(pi.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(_m.UpdatedAt.Format(time.ANSIC)) builder.WriteByte(')') return builder.String() } diff --git a/ent/paymentintent_create.go b/ent/paymentintent_create.go index 16352b0..27f4d66 100644 --- a/ent/paymentintent_create.go +++ b/ent/paymentintent_create.go @@ -22,146 +22,146 @@ type PaymentIntentCreate struct { } // SetProviderPaymentIntentID sets the "provider_payment_intent_id" field. -func (pic *PaymentIntentCreate) SetProviderPaymentIntentID(s string) *PaymentIntentCreate { - pic.mutation.SetProviderPaymentIntentID(s) - return pic +func (_c *PaymentIntentCreate) SetProviderPaymentIntentID(v string) *PaymentIntentCreate { + _c.mutation.SetProviderPaymentIntentID(v) + return _c } // SetProvider sets the "provider" field. -func (pic *PaymentIntentCreate) SetProvider(s string) *PaymentIntentCreate { - pic.mutation.SetProvider(s) - return pic +func (_c *PaymentIntentCreate) SetProvider(v string) *PaymentIntentCreate { + _c.mutation.SetProvider(v) + return _c } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableProvider(s *string) *PaymentIntentCreate { - if s != nil { - pic.SetProvider(*s) +func (_c *PaymentIntentCreate) SetNillableProvider(v *string) *PaymentIntentCreate { + if v != nil { + _c.SetProvider(*v) } - return pic + return _c } // SetStatus sets the "status" field. -func (pic *PaymentIntentCreate) SetStatus(pa paymentintent.Status) *PaymentIntentCreate { - pic.mutation.SetStatus(pa) - return pic +func (_c *PaymentIntentCreate) SetStatus(v paymentintent.Status) *PaymentIntentCreate { + _c.mutation.SetStatus(v) + return _c } // SetNillableStatus sets the "status" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableStatus(pa *paymentintent.Status) *PaymentIntentCreate { - if pa != nil { - pic.SetStatus(*pa) +func (_c *PaymentIntentCreate) SetNillableStatus(v *paymentintent.Status) *PaymentIntentCreate { + if v != nil { + _c.SetStatus(*v) } - return pic + return _c } // SetAmount sets the "amount" field. -func (pic *PaymentIntentCreate) SetAmount(i int64) *PaymentIntentCreate { - pic.mutation.SetAmount(i) - return pic +func (_c *PaymentIntentCreate) SetAmount(v int64) *PaymentIntentCreate { + _c.mutation.SetAmount(v) + return _c } // SetCurrency sets the "currency" field. -func (pic *PaymentIntentCreate) SetCurrency(s string) *PaymentIntentCreate { - pic.mutation.SetCurrency(s) - return pic +func (_c *PaymentIntentCreate) SetCurrency(v string) *PaymentIntentCreate { + _c.mutation.SetCurrency(v) + return _c } // SetNillableCurrency sets the "currency" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableCurrency(s *string) *PaymentIntentCreate { - if s != nil { - pic.SetCurrency(*s) +func (_c *PaymentIntentCreate) SetNillableCurrency(v *string) *PaymentIntentCreate { + if v != nil { + _c.SetCurrency(*v) } - return pic + return _c } // SetDescription sets the "description" field. -func (pic *PaymentIntentCreate) SetDescription(s string) *PaymentIntentCreate { - pic.mutation.SetDescription(s) - return pic +func (_c *PaymentIntentCreate) SetDescription(v string) *PaymentIntentCreate { + _c.mutation.SetDescription(v) + return _c } // SetNillableDescription sets the "description" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableDescription(s *string) *PaymentIntentCreate { - if s != nil { - pic.SetDescription(*s) +func (_c *PaymentIntentCreate) SetNillableDescription(v *string) *PaymentIntentCreate { + if v != nil { + _c.SetDescription(*v) } - return pic + return _c } // SetClientSecret sets the "client_secret" field. -func (pic *PaymentIntentCreate) SetClientSecret(s string) *PaymentIntentCreate { - pic.mutation.SetClientSecret(s) - return pic +func (_c *PaymentIntentCreate) SetClientSecret(v string) *PaymentIntentCreate { + _c.mutation.SetClientSecret(v) + return _c } // SetNillableClientSecret sets the "client_secret" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableClientSecret(s *string) *PaymentIntentCreate { - if s != nil { - pic.SetClientSecret(*s) +func (_c *PaymentIntentCreate) SetNillableClientSecret(v *string) *PaymentIntentCreate { + if v != nil { + _c.SetClientSecret(*v) } - return pic + return _c } // SetMetadata sets the "metadata" field. -func (pic *PaymentIntentCreate) SetMetadata(m map[string]interface{}) *PaymentIntentCreate { - pic.mutation.SetMetadata(m) - return pic +func (_c *PaymentIntentCreate) SetMetadata(v map[string]interface{}) *PaymentIntentCreate { + _c.mutation.SetMetadata(v) + return _c } // SetCreatedAt sets the "created_at" field. -func (pic *PaymentIntentCreate) SetCreatedAt(t time.Time) *PaymentIntentCreate { - pic.mutation.SetCreatedAt(t) - return pic +func (_c *PaymentIntentCreate) SetCreatedAt(v time.Time) *PaymentIntentCreate { + _c.mutation.SetCreatedAt(v) + return _c } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableCreatedAt(t *time.Time) *PaymentIntentCreate { - if t != nil { - pic.SetCreatedAt(*t) +func (_c *PaymentIntentCreate) SetNillableCreatedAt(v *time.Time) *PaymentIntentCreate { + if v != nil { + _c.SetCreatedAt(*v) } - return pic + return _c } // SetUpdatedAt sets the "updated_at" field. -func (pic *PaymentIntentCreate) SetUpdatedAt(t time.Time) *PaymentIntentCreate { - pic.mutation.SetUpdatedAt(t) - return pic +func (_c *PaymentIntentCreate) SetUpdatedAt(v time.Time) *PaymentIntentCreate { + _c.mutation.SetUpdatedAt(v) + return _c } // SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. -func (pic *PaymentIntentCreate) SetNillableUpdatedAt(t *time.Time) *PaymentIntentCreate { - if t != nil { - pic.SetUpdatedAt(*t) +func (_c *PaymentIntentCreate) SetNillableUpdatedAt(v *time.Time) *PaymentIntentCreate { + if v != nil { + _c.SetUpdatedAt(*v) } - return pic + return _c } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (pic *PaymentIntentCreate) SetCustomerID(id int) *PaymentIntentCreate { - pic.mutation.SetCustomerID(id) - return pic +func (_c *PaymentIntentCreate) SetCustomerID(id int) *PaymentIntentCreate { + _c.mutation.SetCustomerID(id) + return _c } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (pic *PaymentIntentCreate) SetCustomer(p *PaymentCustomer) *PaymentIntentCreate { - return pic.SetCustomerID(p.ID) +func (_c *PaymentIntentCreate) SetCustomer(v *PaymentCustomer) *PaymentIntentCreate { + return _c.SetCustomerID(v.ID) } // Mutation returns the PaymentIntentMutation object of the builder. -func (pic *PaymentIntentCreate) Mutation() *PaymentIntentMutation { - return pic.mutation +func (_c *PaymentIntentCreate) Mutation() *PaymentIntentMutation { + return _c.mutation } // Save creates the PaymentIntent in the database. -func (pic *PaymentIntentCreate) Save(ctx context.Context) (*PaymentIntent, error) { - pic.defaults() - return withHooks(ctx, pic.sqlSave, pic.mutation, pic.hooks) +func (_c *PaymentIntentCreate) Save(ctx context.Context) (*PaymentIntent, error) { + _c.defaults() + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) } // SaveX calls Save and panics if Save returns an error. -func (pic *PaymentIntentCreate) SaveX(ctx context.Context) *PaymentIntent { - v, err := pic.Save(ctx) +func (_c *PaymentIntentCreate) SaveX(ctx context.Context) *PaymentIntent { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -169,102 +169,102 @@ func (pic *PaymentIntentCreate) SaveX(ctx context.Context) *PaymentIntent { } // Exec executes the query. -func (pic *PaymentIntentCreate) Exec(ctx context.Context) error { - _, err := pic.Save(ctx) +func (_c *PaymentIntentCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pic *PaymentIntentCreate) ExecX(ctx context.Context) { - if err := pic.Exec(ctx); err != nil { +func (_c *PaymentIntentCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pic *PaymentIntentCreate) defaults() { - if _, ok := pic.mutation.Provider(); !ok { +func (_c *PaymentIntentCreate) defaults() { + if _, ok := _c.mutation.Provider(); !ok { v := paymentintent.DefaultProvider - pic.mutation.SetProvider(v) + _c.mutation.SetProvider(v) } - if _, ok := pic.mutation.Status(); !ok { + if _, ok := _c.mutation.Status(); !ok { v := paymentintent.DefaultStatus - pic.mutation.SetStatus(v) + _c.mutation.SetStatus(v) } - if _, ok := pic.mutation.Currency(); !ok { + if _, ok := _c.mutation.Currency(); !ok { v := paymentintent.DefaultCurrency - pic.mutation.SetCurrency(v) + _c.mutation.SetCurrency(v) } - if _, ok := pic.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { v := paymentintent.DefaultCreatedAt() - pic.mutation.SetCreatedAt(v) + _c.mutation.SetCreatedAt(v) } - if _, ok := pic.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { v := paymentintent.DefaultUpdatedAt() - pic.mutation.SetUpdatedAt(v) + _c.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pic *PaymentIntentCreate) check() error { - if _, ok := pic.mutation.ProviderPaymentIntentID(); !ok { +func (_c *PaymentIntentCreate) check() error { + if _, ok := _c.mutation.ProviderPaymentIntentID(); !ok { return &ValidationError{Name: "provider_payment_intent_id", err: errors.New(`ent: missing required field "PaymentIntent.provider_payment_intent_id"`)} } - if v, ok := pic.mutation.ProviderPaymentIntentID(); ok { + if v, ok := _c.mutation.ProviderPaymentIntentID(); ok { if err := paymentintent.ProviderPaymentIntentIDValidator(v); err != nil { return &ValidationError{Name: "provider_payment_intent_id", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.provider_payment_intent_id": %w`, err)} } } - if _, ok := pic.mutation.Provider(); !ok { + if _, ok := _c.mutation.Provider(); !ok { return &ValidationError{Name: "provider", err: errors.New(`ent: missing required field "PaymentIntent.provider"`)} } - if v, ok := pic.mutation.Provider(); ok { + if v, ok := _c.mutation.Provider(); ok { if err := paymentintent.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.provider": %w`, err)} } } - if _, ok := pic.mutation.Status(); !ok { + if _, ok := _c.mutation.Status(); !ok { return &ValidationError{Name: "status", err: errors.New(`ent: missing required field "PaymentIntent.status"`)} } - if v, ok := pic.mutation.Status(); ok { + if v, ok := _c.mutation.Status(); ok { if err := paymentintent.StatusValidator(v); err != nil { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.status": %w`, err)} } } - if _, ok := pic.mutation.Amount(); !ok { + if _, ok := _c.mutation.Amount(); !ok { return &ValidationError{Name: "amount", err: errors.New(`ent: missing required field "PaymentIntent.amount"`)} } - if v, ok := pic.mutation.Amount(); ok { + if v, ok := _c.mutation.Amount(); ok { if err := paymentintent.AmountValidator(v); err != nil { return &ValidationError{Name: "amount", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.amount": %w`, err)} } } - if _, ok := pic.mutation.Currency(); !ok { + if _, ok := _c.mutation.Currency(); !ok { return &ValidationError{Name: "currency", err: errors.New(`ent: missing required field "PaymentIntent.currency"`)} } - if v, ok := pic.mutation.Currency(); ok { + if v, ok := _c.mutation.Currency(); ok { if err := paymentintent.CurrencyValidator(v); err != nil { return &ValidationError{Name: "currency", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.currency": %w`, err)} } } - if _, ok := pic.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "PaymentIntent.created_at"`)} } - if _, ok := pic.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { return &ValidationError{Name: "updated_at", err: errors.New(`ent: missing required field "PaymentIntent.updated_at"`)} } - if len(pic.mutation.CustomerIDs()) == 0 { + if len(_c.mutation.CustomerIDs()) == 0 { return &ValidationError{Name: "customer", err: errors.New(`ent: missing required edge "PaymentIntent.customer"`)} } return nil } -func (pic *PaymentIntentCreate) sqlSave(ctx context.Context) (*PaymentIntent, error) { - if err := pic.check(); err != nil { +func (_c *PaymentIntentCreate) sqlSave(ctx context.Context) (*PaymentIntent, error) { + if err := _c.check(); err != nil { return nil, err } - _node, _spec := pic.createSpec() - if err := sqlgraph.CreateNode(ctx, pic.driver, _spec); err != nil { + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -272,57 +272,57 @@ func (pic *PaymentIntentCreate) sqlSave(ctx context.Context) (*PaymentIntent, er } id := _spec.ID.Value.(int64) _node.ID = int(id) - pic.mutation.id = &_node.ID - pic.mutation.done = true + _c.mutation.id = &_node.ID + _c.mutation.done = true return _node, nil } -func (pic *PaymentIntentCreate) createSpec() (*PaymentIntent, *sqlgraph.CreateSpec) { +func (_c *PaymentIntentCreate) createSpec() (*PaymentIntent, *sqlgraph.CreateSpec) { var ( - _node = &PaymentIntent{config: pic.config} + _node = &PaymentIntent{config: _c.config} _spec = sqlgraph.NewCreateSpec(paymentintent.Table, sqlgraph.NewFieldSpec(paymentintent.FieldID, field.TypeInt)) ) - if value, ok := pic.mutation.ProviderPaymentIntentID(); ok { + if value, ok := _c.mutation.ProviderPaymentIntentID(); ok { _spec.SetField(paymentintent.FieldProviderPaymentIntentID, field.TypeString, value) _node.ProviderPaymentIntentID = value } - if value, ok := pic.mutation.Provider(); ok { + if value, ok := _c.mutation.Provider(); ok { _spec.SetField(paymentintent.FieldProvider, field.TypeString, value) _node.Provider = value } - if value, ok := pic.mutation.Status(); ok { + if value, ok := _c.mutation.Status(); ok { _spec.SetField(paymentintent.FieldStatus, field.TypeEnum, value) _node.Status = value } - if value, ok := pic.mutation.Amount(); ok { + if value, ok := _c.mutation.Amount(); ok { _spec.SetField(paymentintent.FieldAmount, field.TypeInt64, value) _node.Amount = value } - if value, ok := pic.mutation.Currency(); ok { + if value, ok := _c.mutation.Currency(); ok { _spec.SetField(paymentintent.FieldCurrency, field.TypeString, value) _node.Currency = value } - if value, ok := pic.mutation.Description(); ok { + if value, ok := _c.mutation.Description(); ok { _spec.SetField(paymentintent.FieldDescription, field.TypeString, value) _node.Description = value } - if value, ok := pic.mutation.ClientSecret(); ok { + if value, ok := _c.mutation.ClientSecret(); ok { _spec.SetField(paymentintent.FieldClientSecret, field.TypeString, value) _node.ClientSecret = value } - if value, ok := pic.mutation.Metadata(); ok { + if value, ok := _c.mutation.Metadata(); ok { _spec.SetField(paymentintent.FieldMetadata, field.TypeJSON, value) _node.Metadata = value } - if value, ok := pic.mutation.CreatedAt(); ok { + if value, ok := _c.mutation.CreatedAt(); ok { _spec.SetField(paymentintent.FieldCreatedAt, field.TypeTime, value) _node.CreatedAt = value } - if value, ok := pic.mutation.UpdatedAt(); ok { + if value, ok := _c.mutation.UpdatedAt(); ok { _spec.SetField(paymentintent.FieldUpdatedAt, field.TypeTime, value) _node.UpdatedAt = value } - if nodes := pic.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _c.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -350,16 +350,16 @@ type PaymentIntentCreateBulk struct { } // Save creates the PaymentIntent entities in the database. -func (picb *PaymentIntentCreateBulk) Save(ctx context.Context) ([]*PaymentIntent, error) { - if picb.err != nil { - return nil, picb.err - } - specs := make([]*sqlgraph.CreateSpec, len(picb.builders)) - nodes := make([]*PaymentIntent, len(picb.builders)) - mutators := make([]Mutator, len(picb.builders)) - for i := range picb.builders { +func (_c *PaymentIntentCreateBulk) Save(ctx context.Context) ([]*PaymentIntent, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*PaymentIntent, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { func(i int, root context.Context) { - builder := picb.builders[i] + builder := _c.builders[i] builder.defaults() var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { mutation, ok := m.(*PaymentIntentMutation) @@ -373,11 +373,11 @@ func (picb *PaymentIntentCreateBulk) Save(ctx context.Context) ([]*PaymentIntent var err error nodes[i], specs[i] = builder.createSpec() if i < len(mutators)-1 { - _, err = mutators[i+1].Mutate(root, picb.builders[i+1].mutation) + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) } else { spec := &sqlgraph.BatchCreateSpec{Nodes: specs} // Invoke the actual operation on the latest mutation in the chain. - if err = sqlgraph.BatchCreate(ctx, picb.driver, spec); err != nil { + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -401,7 +401,7 @@ func (picb *PaymentIntentCreateBulk) Save(ctx context.Context) ([]*PaymentIntent }(i, ctx) } if len(mutators) > 0 { - if _, err := mutators[0].Mutate(ctx, picb.builders[0].mutation); err != nil { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { return nil, err } } @@ -409,8 +409,8 @@ func (picb *PaymentIntentCreateBulk) Save(ctx context.Context) ([]*PaymentIntent } // SaveX is like Save, but panics if an error occurs. -func (picb *PaymentIntentCreateBulk) SaveX(ctx context.Context) []*PaymentIntent { - v, err := picb.Save(ctx) +func (_c *PaymentIntentCreateBulk) SaveX(ctx context.Context) []*PaymentIntent { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -418,14 +418,14 @@ func (picb *PaymentIntentCreateBulk) SaveX(ctx context.Context) []*PaymentIntent } // Exec executes the query. -func (picb *PaymentIntentCreateBulk) Exec(ctx context.Context) error { - _, err := picb.Save(ctx) +func (_c *PaymentIntentCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (picb *PaymentIntentCreateBulk) ExecX(ctx context.Context) { - if err := picb.Exec(ctx); err != nil { +func (_c *PaymentIntentCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/paymentintent_delete.go b/ent/paymentintent_delete.go index 1985d52..4de0d3f 100644 --- a/ent/paymentintent_delete.go +++ b/ent/paymentintent_delete.go @@ -20,56 +20,56 @@ type PaymentIntentDelete struct { } // Where appends a list predicates to the PaymentIntentDelete builder. -func (pid *PaymentIntentDelete) Where(ps ...predicate.PaymentIntent) *PaymentIntentDelete { - pid.mutation.Where(ps...) - return pid +func (_d *PaymentIntentDelete) Where(ps ...predicate.PaymentIntent) *PaymentIntentDelete { + _d.mutation.Where(ps...) + return _d } // Exec executes the deletion query and returns how many vertices were deleted. -func (pid *PaymentIntentDelete) Exec(ctx context.Context) (int, error) { - return withHooks(ctx, pid.sqlExec, pid.mutation, pid.hooks) +func (_d *PaymentIntentDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) } // ExecX is like Exec, but panics if an error occurs. -func (pid *PaymentIntentDelete) ExecX(ctx context.Context) int { - n, err := pid.Exec(ctx) +func (_d *PaymentIntentDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) if err != nil { panic(err) } return n } -func (pid *PaymentIntentDelete) sqlExec(ctx context.Context) (int, error) { +func (_d *PaymentIntentDelete) sqlExec(ctx context.Context) (int, error) { _spec := sqlgraph.NewDeleteSpec(paymentintent.Table, sqlgraph.NewFieldSpec(paymentintent.FieldID, field.TypeInt)) - if ps := pid.mutation.predicates; len(ps) > 0 { + if ps := _d.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - affected, err := sqlgraph.DeleteNodes(ctx, pid.driver, _spec) + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) if err != nil && sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } - pid.mutation.done = true + _d.mutation.done = true return affected, err } // PaymentIntentDeleteOne is the builder for deleting a single PaymentIntent entity. type PaymentIntentDeleteOne struct { - pid *PaymentIntentDelete + _d *PaymentIntentDelete } // Where appends a list predicates to the PaymentIntentDelete builder. -func (pido *PaymentIntentDeleteOne) Where(ps ...predicate.PaymentIntent) *PaymentIntentDeleteOne { - pido.pid.mutation.Where(ps...) - return pido +func (_d *PaymentIntentDeleteOne) Where(ps ...predicate.PaymentIntent) *PaymentIntentDeleteOne { + _d._d.mutation.Where(ps...) + return _d } // Exec executes the deletion query. -func (pido *PaymentIntentDeleteOne) Exec(ctx context.Context) error { - n, err := pido.pid.Exec(ctx) +func (_d *PaymentIntentDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) switch { case err != nil: return err @@ -81,8 +81,8 @@ func (pido *PaymentIntentDeleteOne) Exec(ctx context.Context) error { } // ExecX is like Exec, but panics if an error occurs. -func (pido *PaymentIntentDeleteOne) ExecX(ctx context.Context) { - if err := pido.Exec(ctx); err != nil { +func (_d *PaymentIntentDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/paymentintent_query.go b/ent/paymentintent_query.go index 11deb87..328b3c2 100644 --- a/ent/paymentintent_query.go +++ b/ent/paymentintent_query.go @@ -31,44 +31,44 @@ type PaymentIntentQuery struct { } // Where adds a new predicate for the PaymentIntentQuery builder. -func (piq *PaymentIntentQuery) Where(ps ...predicate.PaymentIntent) *PaymentIntentQuery { - piq.predicates = append(piq.predicates, ps...) - return piq +func (_q *PaymentIntentQuery) Where(ps ...predicate.PaymentIntent) *PaymentIntentQuery { + _q.predicates = append(_q.predicates, ps...) + return _q } // Limit the number of records to be returned by this query. -func (piq *PaymentIntentQuery) Limit(limit int) *PaymentIntentQuery { - piq.ctx.Limit = &limit - return piq +func (_q *PaymentIntentQuery) Limit(limit int) *PaymentIntentQuery { + _q.ctx.Limit = &limit + return _q } // Offset to start from. -func (piq *PaymentIntentQuery) Offset(offset int) *PaymentIntentQuery { - piq.ctx.Offset = &offset - return piq +func (_q *PaymentIntentQuery) Offset(offset int) *PaymentIntentQuery { + _q.ctx.Offset = &offset + return _q } // Unique configures the query builder to filter duplicate records on query. // By default, unique is set to true, and can be disabled using this method. -func (piq *PaymentIntentQuery) Unique(unique bool) *PaymentIntentQuery { - piq.ctx.Unique = &unique - return piq +func (_q *PaymentIntentQuery) Unique(unique bool) *PaymentIntentQuery { + _q.ctx.Unique = &unique + return _q } // Order specifies how the records should be ordered. -func (piq *PaymentIntentQuery) Order(o ...paymentintent.OrderOption) *PaymentIntentQuery { - piq.order = append(piq.order, o...) - return piq +func (_q *PaymentIntentQuery) Order(o ...paymentintent.OrderOption) *PaymentIntentQuery { + _q.order = append(_q.order, o...) + return _q } // QueryCustomer chains the current query on the "customer" edge. -func (piq *PaymentIntentQuery) QueryCustomer() *PaymentCustomerQuery { - query := (&PaymentCustomerClient{config: piq.config}).Query() +func (_q *PaymentIntentQuery) QueryCustomer() *PaymentCustomerQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := piq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := piq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -77,7 +77,7 @@ func (piq *PaymentIntentQuery) QueryCustomer() *PaymentCustomerQuery { sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, paymentintent.CustomerTable, paymentintent.CustomerColumn), ) - fromU = sqlgraph.SetNeighbors(piq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query @@ -85,8 +85,8 @@ func (piq *PaymentIntentQuery) QueryCustomer() *PaymentCustomerQuery { // First returns the first PaymentIntent entity from the query. // Returns a *NotFoundError when no PaymentIntent was found. -func (piq *PaymentIntentQuery) First(ctx context.Context) (*PaymentIntent, error) { - nodes, err := piq.Limit(1).All(setContextOp(ctx, piq.ctx, ent.OpQueryFirst)) +func (_q *PaymentIntentQuery) First(ctx context.Context) (*PaymentIntent, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) if err != nil { return nil, err } @@ -97,8 +97,8 @@ func (piq *PaymentIntentQuery) First(ctx context.Context) (*PaymentIntent, error } // FirstX is like First, but panics if an error occurs. -func (piq *PaymentIntentQuery) FirstX(ctx context.Context) *PaymentIntent { - node, err := piq.First(ctx) +func (_q *PaymentIntentQuery) FirstX(ctx context.Context) *PaymentIntent { + node, err := _q.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -107,9 +107,9 @@ func (piq *PaymentIntentQuery) FirstX(ctx context.Context) *PaymentIntent { // FirstID returns the first PaymentIntent ID from the query. // Returns a *NotFoundError when no PaymentIntent ID was found. -func (piq *PaymentIntentQuery) FirstID(ctx context.Context) (id int, err error) { +func (_q *PaymentIntentQuery) FirstID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = piq.Limit(1).IDs(setContextOp(ctx, piq.ctx, ent.OpQueryFirstID)); err != nil { + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { return } if len(ids) == 0 { @@ -120,8 +120,8 @@ func (piq *PaymentIntentQuery) FirstID(ctx context.Context) (id int, err error) } // FirstIDX is like FirstID, but panics if an error occurs. -func (piq *PaymentIntentQuery) FirstIDX(ctx context.Context) int { - id, err := piq.FirstID(ctx) +func (_q *PaymentIntentQuery) FirstIDX(ctx context.Context) int { + id, err := _q.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -131,8 +131,8 @@ func (piq *PaymentIntentQuery) FirstIDX(ctx context.Context) int { // Only returns a single PaymentIntent entity found by the query, ensuring it only returns one. // Returns a *NotSingularError when more than one PaymentIntent entity is found. // Returns a *NotFoundError when no PaymentIntent entities are found. -func (piq *PaymentIntentQuery) Only(ctx context.Context) (*PaymentIntent, error) { - nodes, err := piq.Limit(2).All(setContextOp(ctx, piq.ctx, ent.OpQueryOnly)) +func (_q *PaymentIntentQuery) Only(ctx context.Context) (*PaymentIntent, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) if err != nil { return nil, err } @@ -147,8 +147,8 @@ func (piq *PaymentIntentQuery) Only(ctx context.Context) (*PaymentIntent, error) } // OnlyX is like Only, but panics if an error occurs. -func (piq *PaymentIntentQuery) OnlyX(ctx context.Context) *PaymentIntent { - node, err := piq.Only(ctx) +func (_q *PaymentIntentQuery) OnlyX(ctx context.Context) *PaymentIntent { + node, err := _q.Only(ctx) if err != nil { panic(err) } @@ -158,9 +158,9 @@ func (piq *PaymentIntentQuery) OnlyX(ctx context.Context) *PaymentIntent { // OnlyID is like Only, but returns the only PaymentIntent ID in the query. // Returns a *NotSingularError when more than one PaymentIntent ID is found. // Returns a *NotFoundError when no entities are found. -func (piq *PaymentIntentQuery) OnlyID(ctx context.Context) (id int, err error) { +func (_q *PaymentIntentQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = piq.Limit(2).IDs(setContextOp(ctx, piq.ctx, ent.OpQueryOnlyID)); err != nil { + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { return } switch len(ids) { @@ -175,8 +175,8 @@ func (piq *PaymentIntentQuery) OnlyID(ctx context.Context) (id int, err error) { } // OnlyIDX is like OnlyID, but panics if an error occurs. -func (piq *PaymentIntentQuery) OnlyIDX(ctx context.Context) int { - id, err := piq.OnlyID(ctx) +func (_q *PaymentIntentQuery) OnlyIDX(ctx context.Context) int { + id, err := _q.OnlyID(ctx) if err != nil { panic(err) } @@ -184,18 +184,18 @@ func (piq *PaymentIntentQuery) OnlyIDX(ctx context.Context) int { } // All executes the query and returns a list of PaymentIntents. -func (piq *PaymentIntentQuery) All(ctx context.Context) ([]*PaymentIntent, error) { - ctx = setContextOp(ctx, piq.ctx, ent.OpQueryAll) - if err := piq.prepareQuery(ctx); err != nil { +func (_q *PaymentIntentQuery) All(ctx context.Context) ([]*PaymentIntent, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { return nil, err } qr := querierAll[[]*PaymentIntent, *PaymentIntentQuery]() - return withInterceptors[[]*PaymentIntent](ctx, piq, qr, piq.inters) + return withInterceptors[[]*PaymentIntent](ctx, _q, qr, _q.inters) } // AllX is like All, but panics if an error occurs. -func (piq *PaymentIntentQuery) AllX(ctx context.Context) []*PaymentIntent { - nodes, err := piq.All(ctx) +func (_q *PaymentIntentQuery) AllX(ctx context.Context) []*PaymentIntent { + nodes, err := _q.All(ctx) if err != nil { panic(err) } @@ -203,20 +203,20 @@ func (piq *PaymentIntentQuery) AllX(ctx context.Context) []*PaymentIntent { } // IDs executes the query and returns a list of PaymentIntent IDs. -func (piq *PaymentIntentQuery) IDs(ctx context.Context) (ids []int, err error) { - if piq.ctx.Unique == nil && piq.path != nil { - piq.Unique(true) +func (_q *PaymentIntentQuery) IDs(ctx context.Context) (ids []int, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) } - ctx = setContextOp(ctx, piq.ctx, ent.OpQueryIDs) - if err = piq.Select(paymentintent.FieldID).Scan(ctx, &ids); err != nil { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(paymentintent.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil } // IDsX is like IDs, but panics if an error occurs. -func (piq *PaymentIntentQuery) IDsX(ctx context.Context) []int { - ids, err := piq.IDs(ctx) +func (_q *PaymentIntentQuery) IDsX(ctx context.Context) []int { + ids, err := _q.IDs(ctx) if err != nil { panic(err) } @@ -224,17 +224,17 @@ func (piq *PaymentIntentQuery) IDsX(ctx context.Context) []int { } // Count returns the count of the given query. -func (piq *PaymentIntentQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, piq.ctx, ent.OpQueryCount) - if err := piq.prepareQuery(ctx); err != nil { +func (_q *PaymentIntentQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { return 0, err } - return withInterceptors[int](ctx, piq, querierCount[*PaymentIntentQuery](), piq.inters) + return withInterceptors[int](ctx, _q, querierCount[*PaymentIntentQuery](), _q.inters) } // CountX is like Count, but panics if an error occurs. -func (piq *PaymentIntentQuery) CountX(ctx context.Context) int { - count, err := piq.Count(ctx) +func (_q *PaymentIntentQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) if err != nil { panic(err) } @@ -242,9 +242,9 @@ func (piq *PaymentIntentQuery) CountX(ctx context.Context) int { } // Exist returns true if the query has elements in the graph. -func (piq *PaymentIntentQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, piq.ctx, ent.OpQueryExist) - switch _, err := piq.FirstID(ctx); { +func (_q *PaymentIntentQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { case IsNotFound(err): return false, nil case err != nil: @@ -255,8 +255,8 @@ func (piq *PaymentIntentQuery) Exist(ctx context.Context) (bool, error) { } // ExistX is like Exist, but panics if an error occurs. -func (piq *PaymentIntentQuery) ExistX(ctx context.Context) bool { - exist, err := piq.Exist(ctx) +func (_q *PaymentIntentQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) if err != nil { panic(err) } @@ -265,32 +265,32 @@ func (piq *PaymentIntentQuery) ExistX(ctx context.Context) bool { // Clone returns a duplicate of the PaymentIntentQuery builder, including all associated steps. It can be // used to prepare common query builders and use them differently after the clone is made. -func (piq *PaymentIntentQuery) Clone() *PaymentIntentQuery { - if piq == nil { +func (_q *PaymentIntentQuery) Clone() *PaymentIntentQuery { + if _q == nil { return nil } return &PaymentIntentQuery{ - config: piq.config, - ctx: piq.ctx.Clone(), - order: append([]paymentintent.OrderOption{}, piq.order...), - inters: append([]Interceptor{}, piq.inters...), - predicates: append([]predicate.PaymentIntent{}, piq.predicates...), - withCustomer: piq.withCustomer.Clone(), + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]paymentintent.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.PaymentIntent{}, _q.predicates...), + withCustomer: _q.withCustomer.Clone(), // clone intermediate query. - sql: piq.sql.Clone(), - path: piq.path, + sql: _q.sql.Clone(), + path: _q.path, } } // WithCustomer tells the query-builder to eager-load the nodes that are connected to // the "customer" edge. The optional arguments are used to configure the query builder of the edge. -func (piq *PaymentIntentQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) *PaymentIntentQuery { - query := (&PaymentCustomerClient{config: piq.config}).Query() +func (_q *PaymentIntentQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) *PaymentIntentQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - piq.withCustomer = query - return piq + _q.withCustomer = query + return _q } // GroupBy is used to group vertices by one or more fields/columns. @@ -307,10 +307,10 @@ func (piq *PaymentIntentQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) // GroupBy(paymentintent.FieldProviderPaymentIntentID). // Aggregate(ent.Count()). // Scan(ctx, &v) -func (piq *PaymentIntentQuery) GroupBy(field string, fields ...string) *PaymentIntentGroupBy { - piq.ctx.Fields = append([]string{field}, fields...) - grbuild := &PaymentIntentGroupBy{build: piq} - grbuild.flds = &piq.ctx.Fields +func (_q *PaymentIntentQuery) GroupBy(field string, fields ...string) *PaymentIntentGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &PaymentIntentGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields grbuild.label = paymentintent.Label grbuild.scan = grbuild.Scan return grbuild @@ -328,55 +328,55 @@ func (piq *PaymentIntentQuery) GroupBy(field string, fields ...string) *PaymentI // client.PaymentIntent.Query(). // Select(paymentintent.FieldProviderPaymentIntentID). // Scan(ctx, &v) -func (piq *PaymentIntentQuery) Select(fields ...string) *PaymentIntentSelect { - piq.ctx.Fields = append(piq.ctx.Fields, fields...) - sbuild := &PaymentIntentSelect{PaymentIntentQuery: piq} +func (_q *PaymentIntentQuery) Select(fields ...string) *PaymentIntentSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &PaymentIntentSelect{PaymentIntentQuery: _q} sbuild.label = paymentintent.Label - sbuild.flds, sbuild.scan = &piq.ctx.Fields, sbuild.Scan + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan return sbuild } // Aggregate returns a PaymentIntentSelect configured with the given aggregations. -func (piq *PaymentIntentQuery) Aggregate(fns ...AggregateFunc) *PaymentIntentSelect { - return piq.Select().Aggregate(fns...) +func (_q *PaymentIntentQuery) Aggregate(fns ...AggregateFunc) *PaymentIntentSelect { + return _q.Select().Aggregate(fns...) } -func (piq *PaymentIntentQuery) prepareQuery(ctx context.Context) error { - for _, inter := range piq.inters { +func (_q *PaymentIntentQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { if inter == nil { return fmt.Errorf("ent: uninitialized interceptor (forgotten import ent/runtime?)") } if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, piq); err != nil { + if err := trv.Traverse(ctx, _q); err != nil { return err } } } - for _, f := range piq.ctx.Fields { + for _, f := range _q.ctx.Fields { if !paymentintent.ValidColumn(f) { return &ValidationError{Name: f, err: fmt.Errorf("ent: invalid field %q for query", f)} } } - if piq.path != nil { - prev, err := piq.path(ctx) + if _q.path != nil { + prev, err := _q.path(ctx) if err != nil { return err } - piq.sql = prev + _q.sql = prev } return nil } -func (piq *PaymentIntentQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PaymentIntent, error) { +func (_q *PaymentIntentQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PaymentIntent, error) { var ( nodes = []*PaymentIntent{} - withFKs = piq.withFKs - _spec = piq.querySpec() + withFKs = _q.withFKs + _spec = _q.querySpec() loadedTypes = [1]bool{ - piq.withCustomer != nil, + _q.withCustomer != nil, } ) - if piq.withCustomer != nil { + if _q.withCustomer != nil { withFKs = true } if withFKs { @@ -386,7 +386,7 @@ func (piq *PaymentIntentQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return (*PaymentIntent).scanValues(nil, columns) } _spec.Assign = func(columns []string, values []any) error { - node := &PaymentIntent{config: piq.config} + node := &PaymentIntent{config: _q.config} nodes = append(nodes, node) node.Edges.loadedTypes = loadedTypes return node.assignValues(columns, values) @@ -394,14 +394,14 @@ func (piq *PaymentIntentQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( for i := range hooks { hooks[i](ctx, _spec) } - if err := sqlgraph.QueryNodes(ctx, piq.driver, _spec); err != nil { + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { return nil, err } if len(nodes) == 0 { return nodes, nil } - if query := piq.withCustomer; query != nil { - if err := piq.loadCustomer(ctx, query, nodes, nil, + if query := _q.withCustomer; query != nil { + if err := _q.loadCustomer(ctx, query, nodes, nil, func(n *PaymentIntent, e *PaymentCustomer) { n.Edges.Customer = e }); err != nil { return nil, err } @@ -409,7 +409,7 @@ func (piq *PaymentIntentQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return nodes, nil } -func (piq *PaymentIntentQuery) loadCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*PaymentIntent, init func(*PaymentIntent), assign func(*PaymentIntent, *PaymentCustomer)) error { +func (_q *PaymentIntentQuery) loadCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*PaymentIntent, init func(*PaymentIntent), assign func(*PaymentIntent, *PaymentCustomer)) error { ids := make([]int, 0, len(nodes)) nodeids := make(map[int][]*PaymentIntent) for i := range nodes { @@ -442,24 +442,24 @@ func (piq *PaymentIntentQuery) loadCustomer(ctx context.Context, query *PaymentC return nil } -func (piq *PaymentIntentQuery) sqlCount(ctx context.Context) (int, error) { - _spec := piq.querySpec() - _spec.Node.Columns = piq.ctx.Fields - if len(piq.ctx.Fields) > 0 { - _spec.Unique = piq.ctx.Unique != nil && *piq.ctx.Unique +func (_q *PaymentIntentQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique } - return sqlgraph.CountNodes(ctx, piq.driver, _spec) + return sqlgraph.CountNodes(ctx, _q.driver, _spec) } -func (piq *PaymentIntentQuery) querySpec() *sqlgraph.QuerySpec { +func (_q *PaymentIntentQuery) querySpec() *sqlgraph.QuerySpec { _spec := sqlgraph.NewQuerySpec(paymentintent.Table, paymentintent.Columns, sqlgraph.NewFieldSpec(paymentintent.FieldID, field.TypeInt)) - _spec.From = piq.sql - if unique := piq.ctx.Unique; unique != nil { + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { _spec.Unique = *unique - } else if piq.path != nil { + } else if _q.path != nil { _spec.Unique = true } - if fields := piq.ctx.Fields; len(fields) > 0 { + if fields := _q.ctx.Fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, paymentintent.FieldID) for i := range fields { @@ -468,20 +468,20 @@ func (piq *PaymentIntentQuery) querySpec() *sqlgraph.QuerySpec { } } } - if ps := piq.predicates; len(ps) > 0 { + if ps := _q.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if limit := piq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { _spec.Limit = *limit } - if offset := piq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { _spec.Offset = *offset } - if ps := piq.order; len(ps) > 0 { + if ps := _q.order; len(ps) > 0 { _spec.Order = func(selector *sql.Selector) { for i := range ps { ps[i](selector) @@ -491,33 +491,33 @@ func (piq *PaymentIntentQuery) querySpec() *sqlgraph.QuerySpec { return _spec } -func (piq *PaymentIntentQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(piq.driver.Dialect()) +func (_q *PaymentIntentQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) t1 := builder.Table(paymentintent.Table) - columns := piq.ctx.Fields + columns := _q.ctx.Fields if len(columns) == 0 { columns = paymentintent.Columns } selector := builder.Select(t1.Columns(columns...)...).From(t1) - if piq.sql != nil { - selector = piq.sql + if _q.sql != nil { + selector = _q.sql selector.Select(selector.Columns(columns...)...) } - if piq.ctx.Unique != nil && *piq.ctx.Unique { + if _q.ctx.Unique != nil && *_q.ctx.Unique { selector.Distinct() } - for _, p := range piq.predicates { + for _, p := range _q.predicates { p(selector) } - for _, p := range piq.order { + for _, p := range _q.order { p(selector) } - if offset := piq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. selector.Offset(*offset).Limit(math.MaxInt32) } - if limit := piq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { selector.Limit(*limit) } return selector @@ -530,41 +530,41 @@ type PaymentIntentGroupBy struct { } // Aggregate adds the given aggregation functions to the group-by query. -func (pigb *PaymentIntentGroupBy) Aggregate(fns ...AggregateFunc) *PaymentIntentGroupBy { - pigb.fns = append(pigb.fns, fns...) - return pigb +func (_g *PaymentIntentGroupBy) Aggregate(fns ...AggregateFunc) *PaymentIntentGroupBy { + _g.fns = append(_g.fns, fns...) + return _g } // Scan applies the selector query and scans the result into the given value. -func (pigb *PaymentIntentGroupBy) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pigb.build.ctx, ent.OpQueryGroupBy) - if err := pigb.build.prepareQuery(ctx); err != nil { +func (_g *PaymentIntentGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PaymentIntentQuery, *PaymentIntentGroupBy](ctx, pigb.build, pigb, pigb.build.inters, v) + return scanWithInterceptors[*PaymentIntentQuery, *PaymentIntentGroupBy](ctx, _g.build, _g, _g.build.inters, v) } -func (pigb *PaymentIntentGroupBy) sqlScan(ctx context.Context, root *PaymentIntentQuery, v any) error { +func (_g *PaymentIntentGroupBy) sqlScan(ctx context.Context, root *PaymentIntentQuery, v any) error { selector := root.sqlQuery(ctx).Select() - aggregation := make([]string, 0, len(pigb.fns)) - for _, fn := range pigb.fns { + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { aggregation = append(aggregation, fn(selector)) } if len(selector.SelectedColumns()) == 0 { - columns := make([]string, 0, len(*pigb.flds)+len(pigb.fns)) - for _, f := range *pigb.flds { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { columns = append(columns, selector.C(f)) } columns = append(columns, aggregation...) selector.Select(columns...) } - selector.GroupBy(selector.Columns(*pigb.flds...)...) + selector.GroupBy(selector.Columns(*_g.flds...)...) if err := selector.Err(); err != nil { return err } rows := &sql.Rows{} query, args := selector.Query() - if err := pigb.build.driver.Query(ctx, query, args, rows); err != nil { + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() @@ -578,27 +578,27 @@ type PaymentIntentSelect struct { } // Aggregate adds the given aggregation functions to the selector query. -func (pis *PaymentIntentSelect) Aggregate(fns ...AggregateFunc) *PaymentIntentSelect { - pis.fns = append(pis.fns, fns...) - return pis +func (_s *PaymentIntentSelect) Aggregate(fns ...AggregateFunc) *PaymentIntentSelect { + _s.fns = append(_s.fns, fns...) + return _s } // Scan applies the selector query and scans the result into the given value. -func (pis *PaymentIntentSelect) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pis.ctx, ent.OpQuerySelect) - if err := pis.prepareQuery(ctx); err != nil { +func (_s *PaymentIntentSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PaymentIntentQuery, *PaymentIntentSelect](ctx, pis.PaymentIntentQuery, pis, pis.inters, v) + return scanWithInterceptors[*PaymentIntentQuery, *PaymentIntentSelect](ctx, _s.PaymentIntentQuery, _s, _s.inters, v) } -func (pis *PaymentIntentSelect) sqlScan(ctx context.Context, root *PaymentIntentQuery, v any) error { +func (_s *PaymentIntentSelect) sqlScan(ctx context.Context, root *PaymentIntentQuery, v any) error { selector := root.sqlQuery(ctx) - aggregation := make([]string, 0, len(pis.fns)) - for _, fn := range pis.fns { + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { aggregation = append(aggregation, fn(selector)) } - switch n := len(*pis.selector.flds); { + switch n := len(*_s.selector.flds); { case n == 0 && len(aggregation) > 0: selector.Select(aggregation...) case n != 0 && len(aggregation) > 0: @@ -606,7 +606,7 @@ func (pis *PaymentIntentSelect) sqlScan(ctx context.Context, root *PaymentIntent } rows := &sql.Rows{} query, args := selector.Query() - if err := pis.driver.Query(ctx, query, args, rows); err != nil { + if err := _s.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() diff --git a/ent/paymentintent_update.go b/ent/paymentintent_update.go index 5b0a2f8..897b686 100644 --- a/ent/paymentintent_update.go +++ b/ent/paymentintent_update.go @@ -24,177 +24,177 @@ type PaymentIntentUpdate struct { } // Where appends a list predicates to the PaymentIntentUpdate builder. -func (piu *PaymentIntentUpdate) Where(ps ...predicate.PaymentIntent) *PaymentIntentUpdate { - piu.mutation.Where(ps...) - return piu +func (_u *PaymentIntentUpdate) Where(ps ...predicate.PaymentIntent) *PaymentIntentUpdate { + _u.mutation.Where(ps...) + return _u } // SetProviderPaymentIntentID sets the "provider_payment_intent_id" field. -func (piu *PaymentIntentUpdate) SetProviderPaymentIntentID(s string) *PaymentIntentUpdate { - piu.mutation.SetProviderPaymentIntentID(s) - return piu +func (_u *PaymentIntentUpdate) SetProviderPaymentIntentID(v string) *PaymentIntentUpdate { + _u.mutation.SetProviderPaymentIntentID(v) + return _u } // SetNillableProviderPaymentIntentID sets the "provider_payment_intent_id" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableProviderPaymentIntentID(s *string) *PaymentIntentUpdate { - if s != nil { - piu.SetProviderPaymentIntentID(*s) +func (_u *PaymentIntentUpdate) SetNillableProviderPaymentIntentID(v *string) *PaymentIntentUpdate { + if v != nil { + _u.SetProviderPaymentIntentID(*v) } - return piu + return _u } // SetProvider sets the "provider" field. -func (piu *PaymentIntentUpdate) SetProvider(s string) *PaymentIntentUpdate { - piu.mutation.SetProvider(s) - return piu +func (_u *PaymentIntentUpdate) SetProvider(v string) *PaymentIntentUpdate { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableProvider(s *string) *PaymentIntentUpdate { - if s != nil { - piu.SetProvider(*s) +func (_u *PaymentIntentUpdate) SetNillableProvider(v *string) *PaymentIntentUpdate { + if v != nil { + _u.SetProvider(*v) } - return piu + return _u } // SetStatus sets the "status" field. -func (piu *PaymentIntentUpdate) SetStatus(pa paymentintent.Status) *PaymentIntentUpdate { - piu.mutation.SetStatus(pa) - return piu +func (_u *PaymentIntentUpdate) SetStatus(v paymentintent.Status) *PaymentIntentUpdate { + _u.mutation.SetStatus(v) + return _u } // SetNillableStatus sets the "status" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableStatus(pa *paymentintent.Status) *PaymentIntentUpdate { - if pa != nil { - piu.SetStatus(*pa) +func (_u *PaymentIntentUpdate) SetNillableStatus(v *paymentintent.Status) *PaymentIntentUpdate { + if v != nil { + _u.SetStatus(*v) } - return piu + return _u } // SetAmount sets the "amount" field. -func (piu *PaymentIntentUpdate) SetAmount(i int64) *PaymentIntentUpdate { - piu.mutation.ResetAmount() - piu.mutation.SetAmount(i) - return piu +func (_u *PaymentIntentUpdate) SetAmount(v int64) *PaymentIntentUpdate { + _u.mutation.ResetAmount() + _u.mutation.SetAmount(v) + return _u } // SetNillableAmount sets the "amount" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableAmount(i *int64) *PaymentIntentUpdate { - if i != nil { - piu.SetAmount(*i) +func (_u *PaymentIntentUpdate) SetNillableAmount(v *int64) *PaymentIntentUpdate { + if v != nil { + _u.SetAmount(*v) } - return piu + return _u } -// AddAmount adds i to the "amount" field. -func (piu *PaymentIntentUpdate) AddAmount(i int64) *PaymentIntentUpdate { - piu.mutation.AddAmount(i) - return piu +// AddAmount adds value to the "amount" field. +func (_u *PaymentIntentUpdate) AddAmount(v int64) *PaymentIntentUpdate { + _u.mutation.AddAmount(v) + return _u } // SetCurrency sets the "currency" field. -func (piu *PaymentIntentUpdate) SetCurrency(s string) *PaymentIntentUpdate { - piu.mutation.SetCurrency(s) - return piu +func (_u *PaymentIntentUpdate) SetCurrency(v string) *PaymentIntentUpdate { + _u.mutation.SetCurrency(v) + return _u } // SetNillableCurrency sets the "currency" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableCurrency(s *string) *PaymentIntentUpdate { - if s != nil { - piu.SetCurrency(*s) +func (_u *PaymentIntentUpdate) SetNillableCurrency(v *string) *PaymentIntentUpdate { + if v != nil { + _u.SetCurrency(*v) } - return piu + return _u } // SetDescription sets the "description" field. -func (piu *PaymentIntentUpdate) SetDescription(s string) *PaymentIntentUpdate { - piu.mutation.SetDescription(s) - return piu +func (_u *PaymentIntentUpdate) SetDescription(v string) *PaymentIntentUpdate { + _u.mutation.SetDescription(v) + return _u } // SetNillableDescription sets the "description" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableDescription(s *string) *PaymentIntentUpdate { - if s != nil { - piu.SetDescription(*s) +func (_u *PaymentIntentUpdate) SetNillableDescription(v *string) *PaymentIntentUpdate { + if v != nil { + _u.SetDescription(*v) } - return piu + return _u } // ClearDescription clears the value of the "description" field. -func (piu *PaymentIntentUpdate) ClearDescription() *PaymentIntentUpdate { - piu.mutation.ClearDescription() - return piu +func (_u *PaymentIntentUpdate) ClearDescription() *PaymentIntentUpdate { + _u.mutation.ClearDescription() + return _u } // SetClientSecret sets the "client_secret" field. -func (piu *PaymentIntentUpdate) SetClientSecret(s string) *PaymentIntentUpdate { - piu.mutation.SetClientSecret(s) - return piu +func (_u *PaymentIntentUpdate) SetClientSecret(v string) *PaymentIntentUpdate { + _u.mutation.SetClientSecret(v) + return _u } // SetNillableClientSecret sets the "client_secret" field if the given value is not nil. -func (piu *PaymentIntentUpdate) SetNillableClientSecret(s *string) *PaymentIntentUpdate { - if s != nil { - piu.SetClientSecret(*s) +func (_u *PaymentIntentUpdate) SetNillableClientSecret(v *string) *PaymentIntentUpdate { + if v != nil { + _u.SetClientSecret(*v) } - return piu + return _u } // ClearClientSecret clears the value of the "client_secret" field. -func (piu *PaymentIntentUpdate) ClearClientSecret() *PaymentIntentUpdate { - piu.mutation.ClearClientSecret() - return piu +func (_u *PaymentIntentUpdate) ClearClientSecret() *PaymentIntentUpdate { + _u.mutation.ClearClientSecret() + return _u } // SetMetadata sets the "metadata" field. -func (piu *PaymentIntentUpdate) SetMetadata(m map[string]interface{}) *PaymentIntentUpdate { - piu.mutation.SetMetadata(m) - return piu +func (_u *PaymentIntentUpdate) SetMetadata(v map[string]interface{}) *PaymentIntentUpdate { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (piu *PaymentIntentUpdate) ClearMetadata() *PaymentIntentUpdate { - piu.mutation.ClearMetadata() - return piu +func (_u *PaymentIntentUpdate) ClearMetadata() *PaymentIntentUpdate { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (piu *PaymentIntentUpdate) SetUpdatedAt(t time.Time) *PaymentIntentUpdate { - piu.mutation.SetUpdatedAt(t) - return piu +func (_u *PaymentIntentUpdate) SetUpdatedAt(v time.Time) *PaymentIntentUpdate { + _u.mutation.SetUpdatedAt(v) + return _u } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (piu *PaymentIntentUpdate) SetCustomerID(id int) *PaymentIntentUpdate { - piu.mutation.SetCustomerID(id) - return piu +func (_u *PaymentIntentUpdate) SetCustomerID(id int) *PaymentIntentUpdate { + _u.mutation.SetCustomerID(id) + return _u } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (piu *PaymentIntentUpdate) SetCustomer(p *PaymentCustomer) *PaymentIntentUpdate { - return piu.SetCustomerID(p.ID) +func (_u *PaymentIntentUpdate) SetCustomer(v *PaymentCustomer) *PaymentIntentUpdate { + return _u.SetCustomerID(v.ID) } // Mutation returns the PaymentIntentMutation object of the builder. -func (piu *PaymentIntentUpdate) Mutation() *PaymentIntentMutation { - return piu.mutation +func (_u *PaymentIntentUpdate) Mutation() *PaymentIntentMutation { + return _u.mutation } // ClearCustomer clears the "customer" edge to the PaymentCustomer entity. -func (piu *PaymentIntentUpdate) ClearCustomer() *PaymentIntentUpdate { - piu.mutation.ClearCustomer() - return piu +func (_u *PaymentIntentUpdate) ClearCustomer() *PaymentIntentUpdate { + _u.mutation.ClearCustomer() + return _u } // Save executes the query and returns the number of nodes affected by the update operation. -func (piu *PaymentIntentUpdate) Save(ctx context.Context) (int, error) { - piu.defaults() - return withHooks(ctx, piu.sqlSave, piu.mutation, piu.hooks) +func (_u *PaymentIntentUpdate) Save(ctx context.Context) (int, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (piu *PaymentIntentUpdate) SaveX(ctx context.Context) int { - affected, err := piu.Save(ctx) +func (_u *PaymentIntentUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) if err != nil { panic(err) } @@ -202,111 +202,111 @@ func (piu *PaymentIntentUpdate) SaveX(ctx context.Context) int { } // Exec executes the query. -func (piu *PaymentIntentUpdate) Exec(ctx context.Context) error { - _, err := piu.Save(ctx) +func (_u *PaymentIntentUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (piu *PaymentIntentUpdate) ExecX(ctx context.Context) { - if err := piu.Exec(ctx); err != nil { +func (_u *PaymentIntentUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (piu *PaymentIntentUpdate) defaults() { - if _, ok := piu.mutation.UpdatedAt(); !ok { +func (_u *PaymentIntentUpdate) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := paymentintent.UpdateDefaultUpdatedAt() - piu.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (piu *PaymentIntentUpdate) check() error { - if v, ok := piu.mutation.ProviderPaymentIntentID(); ok { +func (_u *PaymentIntentUpdate) check() error { + if v, ok := _u.mutation.ProviderPaymentIntentID(); ok { if err := paymentintent.ProviderPaymentIntentIDValidator(v); err != nil { return &ValidationError{Name: "provider_payment_intent_id", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.provider_payment_intent_id": %w`, err)} } } - if v, ok := piu.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := paymentintent.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.provider": %w`, err)} } } - if v, ok := piu.mutation.Status(); ok { + if v, ok := _u.mutation.Status(); ok { if err := paymentintent.StatusValidator(v); err != nil { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.status": %w`, err)} } } - if v, ok := piu.mutation.Amount(); ok { + if v, ok := _u.mutation.Amount(); ok { if err := paymentintent.AmountValidator(v); err != nil { return &ValidationError{Name: "amount", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.amount": %w`, err)} } } - if v, ok := piu.mutation.Currency(); ok { + if v, ok := _u.mutation.Currency(); ok { if err := paymentintent.CurrencyValidator(v); err != nil { return &ValidationError{Name: "currency", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.currency": %w`, err)} } } - if piu.mutation.CustomerCleared() && len(piu.mutation.CustomerIDs()) > 0 { + if _u.mutation.CustomerCleared() && len(_u.mutation.CustomerIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PaymentIntent.customer"`) } return nil } -func (piu *PaymentIntentUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := piu.check(); err != nil { - return n, err +func (_u *PaymentIntentUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err } _spec := sqlgraph.NewUpdateSpec(paymentintent.Table, paymentintent.Columns, sqlgraph.NewFieldSpec(paymentintent.FieldID, field.TypeInt)) - if ps := piu.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := piu.mutation.ProviderPaymentIntentID(); ok { + if value, ok := _u.mutation.ProviderPaymentIntentID(); ok { _spec.SetField(paymentintent.FieldProviderPaymentIntentID, field.TypeString, value) } - if value, ok := piu.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(paymentintent.FieldProvider, field.TypeString, value) } - if value, ok := piu.mutation.Status(); ok { + if value, ok := _u.mutation.Status(); ok { _spec.SetField(paymentintent.FieldStatus, field.TypeEnum, value) } - if value, ok := piu.mutation.Amount(); ok { + if value, ok := _u.mutation.Amount(); ok { _spec.SetField(paymentintent.FieldAmount, field.TypeInt64, value) } - if value, ok := piu.mutation.AddedAmount(); ok { + if value, ok := _u.mutation.AddedAmount(); ok { _spec.AddField(paymentintent.FieldAmount, field.TypeInt64, value) } - if value, ok := piu.mutation.Currency(); ok { + if value, ok := _u.mutation.Currency(); ok { _spec.SetField(paymentintent.FieldCurrency, field.TypeString, value) } - if value, ok := piu.mutation.Description(); ok { + if value, ok := _u.mutation.Description(); ok { _spec.SetField(paymentintent.FieldDescription, field.TypeString, value) } - if piu.mutation.DescriptionCleared() { + if _u.mutation.DescriptionCleared() { _spec.ClearField(paymentintent.FieldDescription, field.TypeString) } - if value, ok := piu.mutation.ClientSecret(); ok { + if value, ok := _u.mutation.ClientSecret(); ok { _spec.SetField(paymentintent.FieldClientSecret, field.TypeString, value) } - if piu.mutation.ClientSecretCleared() { + if _u.mutation.ClientSecretCleared() { _spec.ClearField(paymentintent.FieldClientSecret, field.TypeString) } - if value, ok := piu.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(paymentintent.FieldMetadata, field.TypeJSON, value) } - if piu.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(paymentintent.FieldMetadata, field.TypeJSON) } - if value, ok := piu.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(paymentintent.FieldUpdatedAt, field.TypeTime, value) } - if piu.mutation.CustomerCleared() { + if _u.mutation.CustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -319,7 +319,7 @@ func (piu *PaymentIntentUpdate) sqlSave(ctx context.Context) (n int, err error) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := piu.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -335,7 +335,7 @@ func (piu *PaymentIntentUpdate) sqlSave(ctx context.Context) (n int, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if n, err = sqlgraph.UpdateNodes(ctx, piu.driver, _spec); err != nil { + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{paymentintent.Label} } else if sqlgraph.IsConstraintError(err) { @@ -343,8 +343,8 @@ func (piu *PaymentIntentUpdate) sqlSave(ctx context.Context) (n int, err error) } return 0, err } - piu.mutation.done = true - return n, nil + _u.mutation.done = true + return _node, nil } // PaymentIntentUpdateOne is the builder for updating a single PaymentIntent entity. @@ -356,184 +356,184 @@ type PaymentIntentUpdateOne struct { } // SetProviderPaymentIntentID sets the "provider_payment_intent_id" field. -func (piuo *PaymentIntentUpdateOne) SetProviderPaymentIntentID(s string) *PaymentIntentUpdateOne { - piuo.mutation.SetProviderPaymentIntentID(s) - return piuo +func (_u *PaymentIntentUpdateOne) SetProviderPaymentIntentID(v string) *PaymentIntentUpdateOne { + _u.mutation.SetProviderPaymentIntentID(v) + return _u } // SetNillableProviderPaymentIntentID sets the "provider_payment_intent_id" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableProviderPaymentIntentID(s *string) *PaymentIntentUpdateOne { - if s != nil { - piuo.SetProviderPaymentIntentID(*s) +func (_u *PaymentIntentUpdateOne) SetNillableProviderPaymentIntentID(v *string) *PaymentIntentUpdateOne { + if v != nil { + _u.SetProviderPaymentIntentID(*v) } - return piuo + return _u } // SetProvider sets the "provider" field. -func (piuo *PaymentIntentUpdateOne) SetProvider(s string) *PaymentIntentUpdateOne { - piuo.mutation.SetProvider(s) - return piuo +func (_u *PaymentIntentUpdateOne) SetProvider(v string) *PaymentIntentUpdateOne { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableProvider(s *string) *PaymentIntentUpdateOne { - if s != nil { - piuo.SetProvider(*s) +func (_u *PaymentIntentUpdateOne) SetNillableProvider(v *string) *PaymentIntentUpdateOne { + if v != nil { + _u.SetProvider(*v) } - return piuo + return _u } // SetStatus sets the "status" field. -func (piuo *PaymentIntentUpdateOne) SetStatus(pa paymentintent.Status) *PaymentIntentUpdateOne { - piuo.mutation.SetStatus(pa) - return piuo +func (_u *PaymentIntentUpdateOne) SetStatus(v paymentintent.Status) *PaymentIntentUpdateOne { + _u.mutation.SetStatus(v) + return _u } // SetNillableStatus sets the "status" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableStatus(pa *paymentintent.Status) *PaymentIntentUpdateOne { - if pa != nil { - piuo.SetStatus(*pa) +func (_u *PaymentIntentUpdateOne) SetNillableStatus(v *paymentintent.Status) *PaymentIntentUpdateOne { + if v != nil { + _u.SetStatus(*v) } - return piuo + return _u } // SetAmount sets the "amount" field. -func (piuo *PaymentIntentUpdateOne) SetAmount(i int64) *PaymentIntentUpdateOne { - piuo.mutation.ResetAmount() - piuo.mutation.SetAmount(i) - return piuo +func (_u *PaymentIntentUpdateOne) SetAmount(v int64) *PaymentIntentUpdateOne { + _u.mutation.ResetAmount() + _u.mutation.SetAmount(v) + return _u } // SetNillableAmount sets the "amount" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableAmount(i *int64) *PaymentIntentUpdateOne { - if i != nil { - piuo.SetAmount(*i) +func (_u *PaymentIntentUpdateOne) SetNillableAmount(v *int64) *PaymentIntentUpdateOne { + if v != nil { + _u.SetAmount(*v) } - return piuo + return _u } -// AddAmount adds i to the "amount" field. -func (piuo *PaymentIntentUpdateOne) AddAmount(i int64) *PaymentIntentUpdateOne { - piuo.mutation.AddAmount(i) - return piuo +// AddAmount adds value to the "amount" field. +func (_u *PaymentIntentUpdateOne) AddAmount(v int64) *PaymentIntentUpdateOne { + _u.mutation.AddAmount(v) + return _u } // SetCurrency sets the "currency" field. -func (piuo *PaymentIntentUpdateOne) SetCurrency(s string) *PaymentIntentUpdateOne { - piuo.mutation.SetCurrency(s) - return piuo +func (_u *PaymentIntentUpdateOne) SetCurrency(v string) *PaymentIntentUpdateOne { + _u.mutation.SetCurrency(v) + return _u } // SetNillableCurrency sets the "currency" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableCurrency(s *string) *PaymentIntentUpdateOne { - if s != nil { - piuo.SetCurrency(*s) +func (_u *PaymentIntentUpdateOne) SetNillableCurrency(v *string) *PaymentIntentUpdateOne { + if v != nil { + _u.SetCurrency(*v) } - return piuo + return _u } // SetDescription sets the "description" field. -func (piuo *PaymentIntentUpdateOne) SetDescription(s string) *PaymentIntentUpdateOne { - piuo.mutation.SetDescription(s) - return piuo +func (_u *PaymentIntentUpdateOne) SetDescription(v string) *PaymentIntentUpdateOne { + _u.mutation.SetDescription(v) + return _u } // SetNillableDescription sets the "description" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableDescription(s *string) *PaymentIntentUpdateOne { - if s != nil { - piuo.SetDescription(*s) +func (_u *PaymentIntentUpdateOne) SetNillableDescription(v *string) *PaymentIntentUpdateOne { + if v != nil { + _u.SetDescription(*v) } - return piuo + return _u } // ClearDescription clears the value of the "description" field. -func (piuo *PaymentIntentUpdateOne) ClearDescription() *PaymentIntentUpdateOne { - piuo.mutation.ClearDescription() - return piuo +func (_u *PaymentIntentUpdateOne) ClearDescription() *PaymentIntentUpdateOne { + _u.mutation.ClearDescription() + return _u } // SetClientSecret sets the "client_secret" field. -func (piuo *PaymentIntentUpdateOne) SetClientSecret(s string) *PaymentIntentUpdateOne { - piuo.mutation.SetClientSecret(s) - return piuo +func (_u *PaymentIntentUpdateOne) SetClientSecret(v string) *PaymentIntentUpdateOne { + _u.mutation.SetClientSecret(v) + return _u } // SetNillableClientSecret sets the "client_secret" field if the given value is not nil. -func (piuo *PaymentIntentUpdateOne) SetNillableClientSecret(s *string) *PaymentIntentUpdateOne { - if s != nil { - piuo.SetClientSecret(*s) +func (_u *PaymentIntentUpdateOne) SetNillableClientSecret(v *string) *PaymentIntentUpdateOne { + if v != nil { + _u.SetClientSecret(*v) } - return piuo + return _u } // ClearClientSecret clears the value of the "client_secret" field. -func (piuo *PaymentIntentUpdateOne) ClearClientSecret() *PaymentIntentUpdateOne { - piuo.mutation.ClearClientSecret() - return piuo +func (_u *PaymentIntentUpdateOne) ClearClientSecret() *PaymentIntentUpdateOne { + _u.mutation.ClearClientSecret() + return _u } // SetMetadata sets the "metadata" field. -func (piuo *PaymentIntentUpdateOne) SetMetadata(m map[string]interface{}) *PaymentIntentUpdateOne { - piuo.mutation.SetMetadata(m) - return piuo +func (_u *PaymentIntentUpdateOne) SetMetadata(v map[string]interface{}) *PaymentIntentUpdateOne { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (piuo *PaymentIntentUpdateOne) ClearMetadata() *PaymentIntentUpdateOne { - piuo.mutation.ClearMetadata() - return piuo +func (_u *PaymentIntentUpdateOne) ClearMetadata() *PaymentIntentUpdateOne { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (piuo *PaymentIntentUpdateOne) SetUpdatedAt(t time.Time) *PaymentIntentUpdateOne { - piuo.mutation.SetUpdatedAt(t) - return piuo +func (_u *PaymentIntentUpdateOne) SetUpdatedAt(v time.Time) *PaymentIntentUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (piuo *PaymentIntentUpdateOne) SetCustomerID(id int) *PaymentIntentUpdateOne { - piuo.mutation.SetCustomerID(id) - return piuo +func (_u *PaymentIntentUpdateOne) SetCustomerID(id int) *PaymentIntentUpdateOne { + _u.mutation.SetCustomerID(id) + return _u } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (piuo *PaymentIntentUpdateOne) SetCustomer(p *PaymentCustomer) *PaymentIntentUpdateOne { - return piuo.SetCustomerID(p.ID) +func (_u *PaymentIntentUpdateOne) SetCustomer(v *PaymentCustomer) *PaymentIntentUpdateOne { + return _u.SetCustomerID(v.ID) } // Mutation returns the PaymentIntentMutation object of the builder. -func (piuo *PaymentIntentUpdateOne) Mutation() *PaymentIntentMutation { - return piuo.mutation +func (_u *PaymentIntentUpdateOne) Mutation() *PaymentIntentMutation { + return _u.mutation } // ClearCustomer clears the "customer" edge to the PaymentCustomer entity. -func (piuo *PaymentIntentUpdateOne) ClearCustomer() *PaymentIntentUpdateOne { - piuo.mutation.ClearCustomer() - return piuo +func (_u *PaymentIntentUpdateOne) ClearCustomer() *PaymentIntentUpdateOne { + _u.mutation.ClearCustomer() + return _u } // Where appends a list predicates to the PaymentIntentUpdate builder. -func (piuo *PaymentIntentUpdateOne) Where(ps ...predicate.PaymentIntent) *PaymentIntentUpdateOne { - piuo.mutation.Where(ps...) - return piuo +func (_u *PaymentIntentUpdateOne) Where(ps ...predicate.PaymentIntent) *PaymentIntentUpdateOne { + _u.mutation.Where(ps...) + return _u } // Select allows selecting one or more fields (columns) of the returned entity. // The default is selecting all fields defined in the entity schema. -func (piuo *PaymentIntentUpdateOne) Select(field string, fields ...string) *PaymentIntentUpdateOne { - piuo.fields = append([]string{field}, fields...) - return piuo +func (_u *PaymentIntentUpdateOne) Select(field string, fields ...string) *PaymentIntentUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } // Save executes the query and returns the updated PaymentIntent entity. -func (piuo *PaymentIntentUpdateOne) Save(ctx context.Context) (*PaymentIntent, error) { - piuo.defaults() - return withHooks(ctx, piuo.sqlSave, piuo.mutation, piuo.hooks) +func (_u *PaymentIntentUpdateOne) Save(ctx context.Context) (*PaymentIntent, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (piuo *PaymentIntentUpdateOne) SaveX(ctx context.Context) *PaymentIntent { - node, err := piuo.Save(ctx) +func (_u *PaymentIntentUpdateOne) SaveX(ctx context.Context) *PaymentIntent { + node, err := _u.Save(ctx) if err != nil { panic(err) } @@ -541,70 +541,70 @@ func (piuo *PaymentIntentUpdateOne) SaveX(ctx context.Context) *PaymentIntent { } // Exec executes the query on the entity. -func (piuo *PaymentIntentUpdateOne) Exec(ctx context.Context) error { - _, err := piuo.Save(ctx) +func (_u *PaymentIntentUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (piuo *PaymentIntentUpdateOne) ExecX(ctx context.Context) { - if err := piuo.Exec(ctx); err != nil { +func (_u *PaymentIntentUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (piuo *PaymentIntentUpdateOne) defaults() { - if _, ok := piuo.mutation.UpdatedAt(); !ok { +func (_u *PaymentIntentUpdateOne) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := paymentintent.UpdateDefaultUpdatedAt() - piuo.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (piuo *PaymentIntentUpdateOne) check() error { - if v, ok := piuo.mutation.ProviderPaymentIntentID(); ok { +func (_u *PaymentIntentUpdateOne) check() error { + if v, ok := _u.mutation.ProviderPaymentIntentID(); ok { if err := paymentintent.ProviderPaymentIntentIDValidator(v); err != nil { return &ValidationError{Name: "provider_payment_intent_id", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.provider_payment_intent_id": %w`, err)} } } - if v, ok := piuo.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := paymentintent.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.provider": %w`, err)} } } - if v, ok := piuo.mutation.Status(); ok { + if v, ok := _u.mutation.Status(); ok { if err := paymentintent.StatusValidator(v); err != nil { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.status": %w`, err)} } } - if v, ok := piuo.mutation.Amount(); ok { + if v, ok := _u.mutation.Amount(); ok { if err := paymentintent.AmountValidator(v); err != nil { return &ValidationError{Name: "amount", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.amount": %w`, err)} } } - if v, ok := piuo.mutation.Currency(); ok { + if v, ok := _u.mutation.Currency(); ok { if err := paymentintent.CurrencyValidator(v); err != nil { return &ValidationError{Name: "currency", err: fmt.Errorf(`ent: validator failed for field "PaymentIntent.currency": %w`, err)} } } - if piuo.mutation.CustomerCleared() && len(piuo.mutation.CustomerIDs()) > 0 { + if _u.mutation.CustomerCleared() && len(_u.mutation.CustomerIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PaymentIntent.customer"`) } return nil } -func (piuo *PaymentIntentUpdateOne) sqlSave(ctx context.Context) (_node *PaymentIntent, err error) { - if err := piuo.check(); err != nil { +func (_u *PaymentIntentUpdateOne) sqlSave(ctx context.Context) (_node *PaymentIntent, err error) { + if err := _u.check(); err != nil { return _node, err } _spec := sqlgraph.NewUpdateSpec(paymentintent.Table, paymentintent.Columns, sqlgraph.NewFieldSpec(paymentintent.FieldID, field.TypeInt)) - id, ok := piuo.mutation.ID() + id, ok := _u.mutation.ID() if !ok { return nil, &ValidationError{Name: "id", err: errors.New(`ent: missing "PaymentIntent.id" for update`)} } _spec.Node.ID.Value = id - if fields := piuo.fields; len(fields) > 0 { + if fields := _u.fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, paymentintent.FieldID) for _, f := range fields { @@ -616,53 +616,53 @@ func (piuo *PaymentIntentUpdateOne) sqlSave(ctx context.Context) (_node *Payment } } } - if ps := piuo.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := piuo.mutation.ProviderPaymentIntentID(); ok { + if value, ok := _u.mutation.ProviderPaymentIntentID(); ok { _spec.SetField(paymentintent.FieldProviderPaymentIntentID, field.TypeString, value) } - if value, ok := piuo.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(paymentintent.FieldProvider, field.TypeString, value) } - if value, ok := piuo.mutation.Status(); ok { + if value, ok := _u.mutation.Status(); ok { _spec.SetField(paymentintent.FieldStatus, field.TypeEnum, value) } - if value, ok := piuo.mutation.Amount(); ok { + if value, ok := _u.mutation.Amount(); ok { _spec.SetField(paymentintent.FieldAmount, field.TypeInt64, value) } - if value, ok := piuo.mutation.AddedAmount(); ok { + if value, ok := _u.mutation.AddedAmount(); ok { _spec.AddField(paymentintent.FieldAmount, field.TypeInt64, value) } - if value, ok := piuo.mutation.Currency(); ok { + if value, ok := _u.mutation.Currency(); ok { _spec.SetField(paymentintent.FieldCurrency, field.TypeString, value) } - if value, ok := piuo.mutation.Description(); ok { + if value, ok := _u.mutation.Description(); ok { _spec.SetField(paymentintent.FieldDescription, field.TypeString, value) } - if piuo.mutation.DescriptionCleared() { + if _u.mutation.DescriptionCleared() { _spec.ClearField(paymentintent.FieldDescription, field.TypeString) } - if value, ok := piuo.mutation.ClientSecret(); ok { + if value, ok := _u.mutation.ClientSecret(); ok { _spec.SetField(paymentintent.FieldClientSecret, field.TypeString, value) } - if piuo.mutation.ClientSecretCleared() { + if _u.mutation.ClientSecretCleared() { _spec.ClearField(paymentintent.FieldClientSecret, field.TypeString) } - if value, ok := piuo.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(paymentintent.FieldMetadata, field.TypeJSON, value) } - if piuo.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(paymentintent.FieldMetadata, field.TypeJSON) } - if value, ok := piuo.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(paymentintent.FieldUpdatedAt, field.TypeTime, value) } - if piuo.mutation.CustomerCleared() { + if _u.mutation.CustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -675,7 +675,7 @@ func (piuo *PaymentIntentUpdateOne) sqlSave(ctx context.Context) (_node *Payment } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := piuo.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -691,10 +691,10 @@ func (piuo *PaymentIntentUpdateOne) sqlSave(ctx context.Context) (_node *Payment } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - _node = &PaymentIntent{config: piuo.config} + _node = &PaymentIntent{config: _u.config} _spec.Assign = _node.assignValues _spec.ScanValues = _node.scanValues - if err = sqlgraph.UpdateNode(ctx, piuo.driver, _spec); err != nil { + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{paymentintent.Label} } else if sqlgraph.IsConstraintError(err) { @@ -702,6 +702,6 @@ func (piuo *PaymentIntentUpdateOne) sqlSave(ctx context.Context) (_node *Payment } return nil, err } - piuo.mutation.done = true + _u.mutation.done = true return _node, nil } diff --git a/ent/paymentmethod.go b/ent/paymentmethod.go index bc322be..27aedb2 100644 --- a/ent/paymentmethod.go +++ b/ent/paymentmethod.go @@ -94,7 +94,7 @@ func (*PaymentMethod) scanValues(columns []string) ([]any, error) { // assignValues assigns the values that were returned from sql.Rows (after scanning) // to the PaymentMethod fields. -func (pm *PaymentMethod) assignValues(columns []string, values []any) error { +func (_m *PaymentMethod) assignValues(columns []string, values []any) error { if m, n := len(values), len(columns); m < n { return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) } @@ -105,60 +105,60 @@ func (pm *PaymentMethod) assignValues(columns []string, values []any) error { if !ok { return fmt.Errorf("unexpected type %T for field id", value) } - pm.ID = int(value.Int64) + _m.ID = int(value.Int64) case paymentmethod.FieldProviderPaymentMethodID: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider_payment_method_id", values[i]) } else if value.Valid { - pm.ProviderPaymentMethodID = value.String + _m.ProviderPaymentMethodID = value.String } case paymentmethod.FieldProvider: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider", values[i]) } else if value.Valid { - pm.Provider = value.String + _m.Provider = value.String } case paymentmethod.FieldType: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field type", values[i]) } else if value.Valid { - pm.Type = paymentmethod.Type(value.String) + _m.Type = paymentmethod.Type(value.String) } case paymentmethod.FieldLastFour: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field last_four", values[i]) } else if value.Valid { - pm.LastFour = value.String + _m.LastFour = value.String } case paymentmethod.FieldBrand: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field brand", values[i]) } else if value.Valid { - pm.Brand = value.String + _m.Brand = value.String } case paymentmethod.FieldExpMonth: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for field exp_month", values[i]) } else if value.Valid { - pm.ExpMonth = int(value.Int64) + _m.ExpMonth = int(value.Int64) } case paymentmethod.FieldExpYear: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for field exp_year", values[i]) } else if value.Valid { - pm.ExpYear = int(value.Int64) + _m.ExpYear = int(value.Int64) } case paymentmethod.FieldIsDefault: if value, ok := values[i].(*sql.NullBool); !ok { return fmt.Errorf("unexpected type %T for field is_default", values[i]) } else if value.Valid { - pm.IsDefault = value.Bool + _m.IsDefault = value.Bool } case paymentmethod.FieldMetadata: if value, ok := values[i].(*[]byte); !ok { return fmt.Errorf("unexpected type %T for field metadata", values[i]) } else if value != nil && len(*value) > 0 { - if err := json.Unmarshal(*value, &pm.Metadata); err != nil { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { return fmt.Errorf("unmarshal field metadata: %w", err) } } @@ -166,23 +166,23 @@ func (pm *PaymentMethod) assignValues(columns []string, values []any) error { if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field created_at", values[i]) } else if value.Valid { - pm.CreatedAt = value.Time + _m.CreatedAt = value.Time } case paymentmethod.FieldUpdatedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field updated_at", values[i]) } else if value.Valid { - pm.UpdatedAt = value.Time + _m.UpdatedAt = value.Time } case paymentmethod.ForeignKeys[0]: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for edge-field payment_customer_payment_methods", value) } else if value.Valid { - pm.payment_customer_payment_methods = new(int) - *pm.payment_customer_payment_methods = int(value.Int64) + _m.payment_customer_payment_methods = new(int) + *_m.payment_customer_payment_methods = int(value.Int64) } default: - pm.selectValues.Set(columns[i], values[i]) + _m.selectValues.Set(columns[i], values[i]) } } return nil @@ -190,70 +190,70 @@ func (pm *PaymentMethod) assignValues(columns []string, values []any) error { // Value returns the ent.Value that was dynamically selected and assigned to the PaymentMethod. // This includes values selected through modifiers, order, etc. -func (pm *PaymentMethod) Value(name string) (ent.Value, error) { - return pm.selectValues.Get(name) +func (_m *PaymentMethod) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) } // QueryCustomer queries the "customer" edge of the PaymentMethod entity. -func (pm *PaymentMethod) QueryCustomer() *PaymentCustomerQuery { - return NewPaymentMethodClient(pm.config).QueryCustomer(pm) +func (_m *PaymentMethod) QueryCustomer() *PaymentCustomerQuery { + return NewPaymentMethodClient(_m.config).QueryCustomer(_m) } // Update returns a builder for updating this PaymentMethod. // Note that you need to call PaymentMethod.Unwrap() before calling this method if this PaymentMethod // was returned from a transaction, and the transaction was committed or rolled back. -func (pm *PaymentMethod) Update() *PaymentMethodUpdateOne { - return NewPaymentMethodClient(pm.config).UpdateOne(pm) +func (_m *PaymentMethod) Update() *PaymentMethodUpdateOne { + return NewPaymentMethodClient(_m.config).UpdateOne(_m) } // Unwrap unwraps the PaymentMethod entity that was returned from a transaction after it was closed, // so that all future queries will be executed through the driver which created the transaction. -func (pm *PaymentMethod) Unwrap() *PaymentMethod { - _tx, ok := pm.config.driver.(*txDriver) +func (_m *PaymentMethod) Unwrap() *PaymentMethod { + _tx, ok := _m.config.driver.(*txDriver) if !ok { panic("ent: PaymentMethod is not a transactional entity") } - pm.config.driver = _tx.drv - return pm + _m.config.driver = _tx.drv + return _m } // String implements the fmt.Stringer. -func (pm *PaymentMethod) String() string { +func (_m *PaymentMethod) String() string { var builder strings.Builder builder.WriteString("PaymentMethod(") - builder.WriteString(fmt.Sprintf("id=%v, ", pm.ID)) + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) builder.WriteString("provider_payment_method_id=") - builder.WriteString(pm.ProviderPaymentMethodID) + builder.WriteString(_m.ProviderPaymentMethodID) builder.WriteString(", ") builder.WriteString("provider=") - builder.WriteString(pm.Provider) + builder.WriteString(_m.Provider) builder.WriteString(", ") builder.WriteString("type=") - builder.WriteString(fmt.Sprintf("%v", pm.Type)) + builder.WriteString(fmt.Sprintf("%v", _m.Type)) builder.WriteString(", ") builder.WriteString("last_four=") - builder.WriteString(pm.LastFour) + builder.WriteString(_m.LastFour) builder.WriteString(", ") builder.WriteString("brand=") - builder.WriteString(pm.Brand) + builder.WriteString(_m.Brand) builder.WriteString(", ") builder.WriteString("exp_month=") - builder.WriteString(fmt.Sprintf("%v", pm.ExpMonth)) + builder.WriteString(fmt.Sprintf("%v", _m.ExpMonth)) builder.WriteString(", ") builder.WriteString("exp_year=") - builder.WriteString(fmt.Sprintf("%v", pm.ExpYear)) + builder.WriteString(fmt.Sprintf("%v", _m.ExpYear)) builder.WriteString(", ") builder.WriteString("is_default=") - builder.WriteString(fmt.Sprintf("%v", pm.IsDefault)) + builder.WriteString(fmt.Sprintf("%v", _m.IsDefault)) builder.WriteString(", ") builder.WriteString("metadata=") - builder.WriteString(fmt.Sprintf("%v", pm.Metadata)) + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) builder.WriteString(", ") builder.WriteString("created_at=") - builder.WriteString(pm.CreatedAt.Format(time.ANSIC)) + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("updated_at=") - builder.WriteString(pm.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(_m.UpdatedAt.Format(time.ANSIC)) builder.WriteByte(')') return builder.String() } diff --git a/ent/paymentmethod_create.go b/ent/paymentmethod_create.go index bb11b65..8cd6902 100644 --- a/ent/paymentmethod_create.go +++ b/ent/paymentmethod_create.go @@ -22,168 +22,168 @@ type PaymentMethodCreate struct { } // SetProviderPaymentMethodID sets the "provider_payment_method_id" field. -func (pmc *PaymentMethodCreate) SetProviderPaymentMethodID(s string) *PaymentMethodCreate { - pmc.mutation.SetProviderPaymentMethodID(s) - return pmc +func (_c *PaymentMethodCreate) SetProviderPaymentMethodID(v string) *PaymentMethodCreate { + _c.mutation.SetProviderPaymentMethodID(v) + return _c } // SetProvider sets the "provider" field. -func (pmc *PaymentMethodCreate) SetProvider(s string) *PaymentMethodCreate { - pmc.mutation.SetProvider(s) - return pmc +func (_c *PaymentMethodCreate) SetProvider(v string) *PaymentMethodCreate { + _c.mutation.SetProvider(v) + return _c } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableProvider(s *string) *PaymentMethodCreate { - if s != nil { - pmc.SetProvider(*s) +func (_c *PaymentMethodCreate) SetNillableProvider(v *string) *PaymentMethodCreate { + if v != nil { + _c.SetProvider(*v) } - return pmc + return _c } // SetType sets the "type" field. -func (pmc *PaymentMethodCreate) SetType(pa paymentmethod.Type) *PaymentMethodCreate { - pmc.mutation.SetType(pa) - return pmc +func (_c *PaymentMethodCreate) SetType(v paymentmethod.Type) *PaymentMethodCreate { + _c.mutation.SetType(v) + return _c } // SetNillableType sets the "type" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableType(pa *paymentmethod.Type) *PaymentMethodCreate { - if pa != nil { - pmc.SetType(*pa) +func (_c *PaymentMethodCreate) SetNillableType(v *paymentmethod.Type) *PaymentMethodCreate { + if v != nil { + _c.SetType(*v) } - return pmc + return _c } // SetLastFour sets the "last_four" field. -func (pmc *PaymentMethodCreate) SetLastFour(s string) *PaymentMethodCreate { - pmc.mutation.SetLastFour(s) - return pmc +func (_c *PaymentMethodCreate) SetLastFour(v string) *PaymentMethodCreate { + _c.mutation.SetLastFour(v) + return _c } // SetNillableLastFour sets the "last_four" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableLastFour(s *string) *PaymentMethodCreate { - if s != nil { - pmc.SetLastFour(*s) +func (_c *PaymentMethodCreate) SetNillableLastFour(v *string) *PaymentMethodCreate { + if v != nil { + _c.SetLastFour(*v) } - return pmc + return _c } // SetBrand sets the "brand" field. -func (pmc *PaymentMethodCreate) SetBrand(s string) *PaymentMethodCreate { - pmc.mutation.SetBrand(s) - return pmc +func (_c *PaymentMethodCreate) SetBrand(v string) *PaymentMethodCreate { + _c.mutation.SetBrand(v) + return _c } // SetNillableBrand sets the "brand" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableBrand(s *string) *PaymentMethodCreate { - if s != nil { - pmc.SetBrand(*s) +func (_c *PaymentMethodCreate) SetNillableBrand(v *string) *PaymentMethodCreate { + if v != nil { + _c.SetBrand(*v) } - return pmc + return _c } // SetExpMonth sets the "exp_month" field. -func (pmc *PaymentMethodCreate) SetExpMonth(i int) *PaymentMethodCreate { - pmc.mutation.SetExpMonth(i) - return pmc +func (_c *PaymentMethodCreate) SetExpMonth(v int) *PaymentMethodCreate { + _c.mutation.SetExpMonth(v) + return _c } // SetNillableExpMonth sets the "exp_month" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableExpMonth(i *int) *PaymentMethodCreate { - if i != nil { - pmc.SetExpMonth(*i) +func (_c *PaymentMethodCreate) SetNillableExpMonth(v *int) *PaymentMethodCreate { + if v != nil { + _c.SetExpMonth(*v) } - return pmc + return _c } // SetExpYear sets the "exp_year" field. -func (pmc *PaymentMethodCreate) SetExpYear(i int) *PaymentMethodCreate { - pmc.mutation.SetExpYear(i) - return pmc +func (_c *PaymentMethodCreate) SetExpYear(v int) *PaymentMethodCreate { + _c.mutation.SetExpYear(v) + return _c } // SetNillableExpYear sets the "exp_year" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableExpYear(i *int) *PaymentMethodCreate { - if i != nil { - pmc.SetExpYear(*i) +func (_c *PaymentMethodCreate) SetNillableExpYear(v *int) *PaymentMethodCreate { + if v != nil { + _c.SetExpYear(*v) } - return pmc + return _c } // SetIsDefault sets the "is_default" field. -func (pmc *PaymentMethodCreate) SetIsDefault(b bool) *PaymentMethodCreate { - pmc.mutation.SetIsDefault(b) - return pmc +func (_c *PaymentMethodCreate) SetIsDefault(v bool) *PaymentMethodCreate { + _c.mutation.SetIsDefault(v) + return _c } // SetNillableIsDefault sets the "is_default" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableIsDefault(b *bool) *PaymentMethodCreate { - if b != nil { - pmc.SetIsDefault(*b) +func (_c *PaymentMethodCreate) SetNillableIsDefault(v *bool) *PaymentMethodCreate { + if v != nil { + _c.SetIsDefault(*v) } - return pmc + return _c } // SetMetadata sets the "metadata" field. -func (pmc *PaymentMethodCreate) SetMetadata(m map[string]interface{}) *PaymentMethodCreate { - pmc.mutation.SetMetadata(m) - return pmc +func (_c *PaymentMethodCreate) SetMetadata(v map[string]interface{}) *PaymentMethodCreate { + _c.mutation.SetMetadata(v) + return _c } // SetCreatedAt sets the "created_at" field. -func (pmc *PaymentMethodCreate) SetCreatedAt(t time.Time) *PaymentMethodCreate { - pmc.mutation.SetCreatedAt(t) - return pmc +func (_c *PaymentMethodCreate) SetCreatedAt(v time.Time) *PaymentMethodCreate { + _c.mutation.SetCreatedAt(v) + return _c } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableCreatedAt(t *time.Time) *PaymentMethodCreate { - if t != nil { - pmc.SetCreatedAt(*t) +func (_c *PaymentMethodCreate) SetNillableCreatedAt(v *time.Time) *PaymentMethodCreate { + if v != nil { + _c.SetCreatedAt(*v) } - return pmc + return _c } // SetUpdatedAt sets the "updated_at" field. -func (pmc *PaymentMethodCreate) SetUpdatedAt(t time.Time) *PaymentMethodCreate { - pmc.mutation.SetUpdatedAt(t) - return pmc +func (_c *PaymentMethodCreate) SetUpdatedAt(v time.Time) *PaymentMethodCreate { + _c.mutation.SetUpdatedAt(v) + return _c } // SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. -func (pmc *PaymentMethodCreate) SetNillableUpdatedAt(t *time.Time) *PaymentMethodCreate { - if t != nil { - pmc.SetUpdatedAt(*t) +func (_c *PaymentMethodCreate) SetNillableUpdatedAt(v *time.Time) *PaymentMethodCreate { + if v != nil { + _c.SetUpdatedAt(*v) } - return pmc + return _c } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (pmc *PaymentMethodCreate) SetCustomerID(id int) *PaymentMethodCreate { - pmc.mutation.SetCustomerID(id) - return pmc +func (_c *PaymentMethodCreate) SetCustomerID(id int) *PaymentMethodCreate { + _c.mutation.SetCustomerID(id) + return _c } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (pmc *PaymentMethodCreate) SetCustomer(p *PaymentCustomer) *PaymentMethodCreate { - return pmc.SetCustomerID(p.ID) +func (_c *PaymentMethodCreate) SetCustomer(v *PaymentCustomer) *PaymentMethodCreate { + return _c.SetCustomerID(v.ID) } // Mutation returns the PaymentMethodMutation object of the builder. -func (pmc *PaymentMethodCreate) Mutation() *PaymentMethodMutation { - return pmc.mutation +func (_c *PaymentMethodCreate) Mutation() *PaymentMethodMutation { + return _c.mutation } // Save creates the PaymentMethod in the database. -func (pmc *PaymentMethodCreate) Save(ctx context.Context) (*PaymentMethod, error) { - pmc.defaults() - return withHooks(ctx, pmc.sqlSave, pmc.mutation, pmc.hooks) +func (_c *PaymentMethodCreate) Save(ctx context.Context) (*PaymentMethod, error) { + _c.defaults() + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) } // SaveX calls Save and panics if Save returns an error. -func (pmc *PaymentMethodCreate) SaveX(ctx context.Context) *PaymentMethod { - v, err := pmc.Save(ctx) +func (_c *PaymentMethodCreate) SaveX(ctx context.Context) *PaymentMethod { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -191,94 +191,94 @@ func (pmc *PaymentMethodCreate) SaveX(ctx context.Context) *PaymentMethod { } // Exec executes the query. -func (pmc *PaymentMethodCreate) Exec(ctx context.Context) error { - _, err := pmc.Save(ctx) +func (_c *PaymentMethodCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pmc *PaymentMethodCreate) ExecX(ctx context.Context) { - if err := pmc.Exec(ctx); err != nil { +func (_c *PaymentMethodCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pmc *PaymentMethodCreate) defaults() { - if _, ok := pmc.mutation.Provider(); !ok { +func (_c *PaymentMethodCreate) defaults() { + if _, ok := _c.mutation.Provider(); !ok { v := paymentmethod.DefaultProvider - pmc.mutation.SetProvider(v) + _c.mutation.SetProvider(v) } - if _, ok := pmc.mutation.GetType(); !ok { + if _, ok := _c.mutation.GetType(); !ok { v := paymentmethod.DefaultType - pmc.mutation.SetType(v) + _c.mutation.SetType(v) } - if _, ok := pmc.mutation.IsDefault(); !ok { + if _, ok := _c.mutation.IsDefault(); !ok { v := paymentmethod.DefaultIsDefault - pmc.mutation.SetIsDefault(v) + _c.mutation.SetIsDefault(v) } - if _, ok := pmc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { v := paymentmethod.DefaultCreatedAt() - pmc.mutation.SetCreatedAt(v) + _c.mutation.SetCreatedAt(v) } - if _, ok := pmc.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { v := paymentmethod.DefaultUpdatedAt() - pmc.mutation.SetUpdatedAt(v) + _c.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pmc *PaymentMethodCreate) check() error { - if _, ok := pmc.mutation.ProviderPaymentMethodID(); !ok { +func (_c *PaymentMethodCreate) check() error { + if _, ok := _c.mutation.ProviderPaymentMethodID(); !ok { return &ValidationError{Name: "provider_payment_method_id", err: errors.New(`ent: missing required field "PaymentMethod.provider_payment_method_id"`)} } - if v, ok := pmc.mutation.ProviderPaymentMethodID(); ok { + if v, ok := _c.mutation.ProviderPaymentMethodID(); ok { if err := paymentmethod.ProviderPaymentMethodIDValidator(v); err != nil { return &ValidationError{Name: "provider_payment_method_id", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.provider_payment_method_id": %w`, err)} } } - if _, ok := pmc.mutation.Provider(); !ok { + if _, ok := _c.mutation.Provider(); !ok { return &ValidationError{Name: "provider", err: errors.New(`ent: missing required field "PaymentMethod.provider"`)} } - if v, ok := pmc.mutation.Provider(); ok { + if v, ok := _c.mutation.Provider(); ok { if err := paymentmethod.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.provider": %w`, err)} } } - if _, ok := pmc.mutation.GetType(); !ok { + if _, ok := _c.mutation.GetType(); !ok { return &ValidationError{Name: "type", err: errors.New(`ent: missing required field "PaymentMethod.type"`)} } - if v, ok := pmc.mutation.GetType(); ok { + if v, ok := _c.mutation.GetType(); ok { if err := paymentmethod.TypeValidator(v); err != nil { return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.type": %w`, err)} } } - if v, ok := pmc.mutation.ExpMonth(); ok { + if v, ok := _c.mutation.ExpMonth(); ok { if err := paymentmethod.ExpMonthValidator(v); err != nil { return &ValidationError{Name: "exp_month", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.exp_month": %w`, err)} } } - if _, ok := pmc.mutation.IsDefault(); !ok { + if _, ok := _c.mutation.IsDefault(); !ok { return &ValidationError{Name: "is_default", err: errors.New(`ent: missing required field "PaymentMethod.is_default"`)} } - if _, ok := pmc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "PaymentMethod.created_at"`)} } - if _, ok := pmc.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { return &ValidationError{Name: "updated_at", err: errors.New(`ent: missing required field "PaymentMethod.updated_at"`)} } - if len(pmc.mutation.CustomerIDs()) == 0 { + if len(_c.mutation.CustomerIDs()) == 0 { return &ValidationError{Name: "customer", err: errors.New(`ent: missing required edge "PaymentMethod.customer"`)} } return nil } -func (pmc *PaymentMethodCreate) sqlSave(ctx context.Context) (*PaymentMethod, error) { - if err := pmc.check(); err != nil { +func (_c *PaymentMethodCreate) sqlSave(ctx context.Context) (*PaymentMethod, error) { + if err := _c.check(); err != nil { return nil, err } - _node, _spec := pmc.createSpec() - if err := sqlgraph.CreateNode(ctx, pmc.driver, _spec); err != nil { + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -286,61 +286,61 @@ func (pmc *PaymentMethodCreate) sqlSave(ctx context.Context) (*PaymentMethod, er } id := _spec.ID.Value.(int64) _node.ID = int(id) - pmc.mutation.id = &_node.ID - pmc.mutation.done = true + _c.mutation.id = &_node.ID + _c.mutation.done = true return _node, nil } -func (pmc *PaymentMethodCreate) createSpec() (*PaymentMethod, *sqlgraph.CreateSpec) { +func (_c *PaymentMethodCreate) createSpec() (*PaymentMethod, *sqlgraph.CreateSpec) { var ( - _node = &PaymentMethod{config: pmc.config} + _node = &PaymentMethod{config: _c.config} _spec = sqlgraph.NewCreateSpec(paymentmethod.Table, sqlgraph.NewFieldSpec(paymentmethod.FieldID, field.TypeInt)) ) - if value, ok := pmc.mutation.ProviderPaymentMethodID(); ok { + if value, ok := _c.mutation.ProviderPaymentMethodID(); ok { _spec.SetField(paymentmethod.FieldProviderPaymentMethodID, field.TypeString, value) _node.ProviderPaymentMethodID = value } - if value, ok := pmc.mutation.Provider(); ok { + if value, ok := _c.mutation.Provider(); ok { _spec.SetField(paymentmethod.FieldProvider, field.TypeString, value) _node.Provider = value } - if value, ok := pmc.mutation.GetType(); ok { + if value, ok := _c.mutation.GetType(); ok { _spec.SetField(paymentmethod.FieldType, field.TypeEnum, value) _node.Type = value } - if value, ok := pmc.mutation.LastFour(); ok { + if value, ok := _c.mutation.LastFour(); ok { _spec.SetField(paymentmethod.FieldLastFour, field.TypeString, value) _node.LastFour = value } - if value, ok := pmc.mutation.Brand(); ok { + if value, ok := _c.mutation.Brand(); ok { _spec.SetField(paymentmethod.FieldBrand, field.TypeString, value) _node.Brand = value } - if value, ok := pmc.mutation.ExpMonth(); ok { + if value, ok := _c.mutation.ExpMonth(); ok { _spec.SetField(paymentmethod.FieldExpMonth, field.TypeInt, value) _node.ExpMonth = value } - if value, ok := pmc.mutation.ExpYear(); ok { + if value, ok := _c.mutation.ExpYear(); ok { _spec.SetField(paymentmethod.FieldExpYear, field.TypeInt, value) _node.ExpYear = value } - if value, ok := pmc.mutation.IsDefault(); ok { + if value, ok := _c.mutation.IsDefault(); ok { _spec.SetField(paymentmethod.FieldIsDefault, field.TypeBool, value) _node.IsDefault = value } - if value, ok := pmc.mutation.Metadata(); ok { + if value, ok := _c.mutation.Metadata(); ok { _spec.SetField(paymentmethod.FieldMetadata, field.TypeJSON, value) _node.Metadata = value } - if value, ok := pmc.mutation.CreatedAt(); ok { + if value, ok := _c.mutation.CreatedAt(); ok { _spec.SetField(paymentmethod.FieldCreatedAt, field.TypeTime, value) _node.CreatedAt = value } - if value, ok := pmc.mutation.UpdatedAt(); ok { + if value, ok := _c.mutation.UpdatedAt(); ok { _spec.SetField(paymentmethod.FieldUpdatedAt, field.TypeTime, value) _node.UpdatedAt = value } - if nodes := pmc.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _c.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -368,16 +368,16 @@ type PaymentMethodCreateBulk struct { } // Save creates the PaymentMethod entities in the database. -func (pmcb *PaymentMethodCreateBulk) Save(ctx context.Context) ([]*PaymentMethod, error) { - if pmcb.err != nil { - return nil, pmcb.err - } - specs := make([]*sqlgraph.CreateSpec, len(pmcb.builders)) - nodes := make([]*PaymentMethod, len(pmcb.builders)) - mutators := make([]Mutator, len(pmcb.builders)) - for i := range pmcb.builders { +func (_c *PaymentMethodCreateBulk) Save(ctx context.Context) ([]*PaymentMethod, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*PaymentMethod, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { func(i int, root context.Context) { - builder := pmcb.builders[i] + builder := _c.builders[i] builder.defaults() var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { mutation, ok := m.(*PaymentMethodMutation) @@ -391,11 +391,11 @@ func (pmcb *PaymentMethodCreateBulk) Save(ctx context.Context) ([]*PaymentMethod var err error nodes[i], specs[i] = builder.createSpec() if i < len(mutators)-1 { - _, err = mutators[i+1].Mutate(root, pmcb.builders[i+1].mutation) + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) } else { spec := &sqlgraph.BatchCreateSpec{Nodes: specs} // Invoke the actual operation on the latest mutation in the chain. - if err = sqlgraph.BatchCreate(ctx, pmcb.driver, spec); err != nil { + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -419,7 +419,7 @@ func (pmcb *PaymentMethodCreateBulk) Save(ctx context.Context) ([]*PaymentMethod }(i, ctx) } if len(mutators) > 0 { - if _, err := mutators[0].Mutate(ctx, pmcb.builders[0].mutation); err != nil { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { return nil, err } } @@ -427,8 +427,8 @@ func (pmcb *PaymentMethodCreateBulk) Save(ctx context.Context) ([]*PaymentMethod } // SaveX is like Save, but panics if an error occurs. -func (pmcb *PaymentMethodCreateBulk) SaveX(ctx context.Context) []*PaymentMethod { - v, err := pmcb.Save(ctx) +func (_c *PaymentMethodCreateBulk) SaveX(ctx context.Context) []*PaymentMethod { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -436,14 +436,14 @@ func (pmcb *PaymentMethodCreateBulk) SaveX(ctx context.Context) []*PaymentMethod } // Exec executes the query. -func (pmcb *PaymentMethodCreateBulk) Exec(ctx context.Context) error { - _, err := pmcb.Save(ctx) +func (_c *PaymentMethodCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pmcb *PaymentMethodCreateBulk) ExecX(ctx context.Context) { - if err := pmcb.Exec(ctx); err != nil { +func (_c *PaymentMethodCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/paymentmethod_delete.go b/ent/paymentmethod_delete.go index 01d9f28..62043e8 100644 --- a/ent/paymentmethod_delete.go +++ b/ent/paymentmethod_delete.go @@ -20,56 +20,56 @@ type PaymentMethodDelete struct { } // Where appends a list predicates to the PaymentMethodDelete builder. -func (pmd *PaymentMethodDelete) Where(ps ...predicate.PaymentMethod) *PaymentMethodDelete { - pmd.mutation.Where(ps...) - return pmd +func (_d *PaymentMethodDelete) Where(ps ...predicate.PaymentMethod) *PaymentMethodDelete { + _d.mutation.Where(ps...) + return _d } // Exec executes the deletion query and returns how many vertices were deleted. -func (pmd *PaymentMethodDelete) Exec(ctx context.Context) (int, error) { - return withHooks(ctx, pmd.sqlExec, pmd.mutation, pmd.hooks) +func (_d *PaymentMethodDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) } // ExecX is like Exec, but panics if an error occurs. -func (pmd *PaymentMethodDelete) ExecX(ctx context.Context) int { - n, err := pmd.Exec(ctx) +func (_d *PaymentMethodDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) if err != nil { panic(err) } return n } -func (pmd *PaymentMethodDelete) sqlExec(ctx context.Context) (int, error) { +func (_d *PaymentMethodDelete) sqlExec(ctx context.Context) (int, error) { _spec := sqlgraph.NewDeleteSpec(paymentmethod.Table, sqlgraph.NewFieldSpec(paymentmethod.FieldID, field.TypeInt)) - if ps := pmd.mutation.predicates; len(ps) > 0 { + if ps := _d.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - affected, err := sqlgraph.DeleteNodes(ctx, pmd.driver, _spec) + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) if err != nil && sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } - pmd.mutation.done = true + _d.mutation.done = true return affected, err } // PaymentMethodDeleteOne is the builder for deleting a single PaymentMethod entity. type PaymentMethodDeleteOne struct { - pmd *PaymentMethodDelete + _d *PaymentMethodDelete } // Where appends a list predicates to the PaymentMethodDelete builder. -func (pmdo *PaymentMethodDeleteOne) Where(ps ...predicate.PaymentMethod) *PaymentMethodDeleteOne { - pmdo.pmd.mutation.Where(ps...) - return pmdo +func (_d *PaymentMethodDeleteOne) Where(ps ...predicate.PaymentMethod) *PaymentMethodDeleteOne { + _d._d.mutation.Where(ps...) + return _d } // Exec executes the deletion query. -func (pmdo *PaymentMethodDeleteOne) Exec(ctx context.Context) error { - n, err := pmdo.pmd.Exec(ctx) +func (_d *PaymentMethodDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) switch { case err != nil: return err @@ -81,8 +81,8 @@ func (pmdo *PaymentMethodDeleteOne) Exec(ctx context.Context) error { } // ExecX is like Exec, but panics if an error occurs. -func (pmdo *PaymentMethodDeleteOne) ExecX(ctx context.Context) { - if err := pmdo.Exec(ctx); err != nil { +func (_d *PaymentMethodDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/paymentmethod_query.go b/ent/paymentmethod_query.go index db3f5c9..a4abfe2 100644 --- a/ent/paymentmethod_query.go +++ b/ent/paymentmethod_query.go @@ -31,44 +31,44 @@ type PaymentMethodQuery struct { } // Where adds a new predicate for the PaymentMethodQuery builder. -func (pmq *PaymentMethodQuery) Where(ps ...predicate.PaymentMethod) *PaymentMethodQuery { - pmq.predicates = append(pmq.predicates, ps...) - return pmq +func (_q *PaymentMethodQuery) Where(ps ...predicate.PaymentMethod) *PaymentMethodQuery { + _q.predicates = append(_q.predicates, ps...) + return _q } // Limit the number of records to be returned by this query. -func (pmq *PaymentMethodQuery) Limit(limit int) *PaymentMethodQuery { - pmq.ctx.Limit = &limit - return pmq +func (_q *PaymentMethodQuery) Limit(limit int) *PaymentMethodQuery { + _q.ctx.Limit = &limit + return _q } // Offset to start from. -func (pmq *PaymentMethodQuery) Offset(offset int) *PaymentMethodQuery { - pmq.ctx.Offset = &offset - return pmq +func (_q *PaymentMethodQuery) Offset(offset int) *PaymentMethodQuery { + _q.ctx.Offset = &offset + return _q } // Unique configures the query builder to filter duplicate records on query. // By default, unique is set to true, and can be disabled using this method. -func (pmq *PaymentMethodQuery) Unique(unique bool) *PaymentMethodQuery { - pmq.ctx.Unique = &unique - return pmq +func (_q *PaymentMethodQuery) Unique(unique bool) *PaymentMethodQuery { + _q.ctx.Unique = &unique + return _q } // Order specifies how the records should be ordered. -func (pmq *PaymentMethodQuery) Order(o ...paymentmethod.OrderOption) *PaymentMethodQuery { - pmq.order = append(pmq.order, o...) - return pmq +func (_q *PaymentMethodQuery) Order(o ...paymentmethod.OrderOption) *PaymentMethodQuery { + _q.order = append(_q.order, o...) + return _q } // QueryCustomer chains the current query on the "customer" edge. -func (pmq *PaymentMethodQuery) QueryCustomer() *PaymentCustomerQuery { - query := (&PaymentCustomerClient{config: pmq.config}).Query() +func (_q *PaymentMethodQuery) QueryCustomer() *PaymentCustomerQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := pmq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := pmq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -77,7 +77,7 @@ func (pmq *PaymentMethodQuery) QueryCustomer() *PaymentCustomerQuery { sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, paymentmethod.CustomerTable, paymentmethod.CustomerColumn), ) - fromU = sqlgraph.SetNeighbors(pmq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query @@ -85,8 +85,8 @@ func (pmq *PaymentMethodQuery) QueryCustomer() *PaymentCustomerQuery { // First returns the first PaymentMethod entity from the query. // Returns a *NotFoundError when no PaymentMethod was found. -func (pmq *PaymentMethodQuery) First(ctx context.Context) (*PaymentMethod, error) { - nodes, err := pmq.Limit(1).All(setContextOp(ctx, pmq.ctx, ent.OpQueryFirst)) +func (_q *PaymentMethodQuery) First(ctx context.Context) (*PaymentMethod, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) if err != nil { return nil, err } @@ -97,8 +97,8 @@ func (pmq *PaymentMethodQuery) First(ctx context.Context) (*PaymentMethod, error } // FirstX is like First, but panics if an error occurs. -func (pmq *PaymentMethodQuery) FirstX(ctx context.Context) *PaymentMethod { - node, err := pmq.First(ctx) +func (_q *PaymentMethodQuery) FirstX(ctx context.Context) *PaymentMethod { + node, err := _q.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -107,9 +107,9 @@ func (pmq *PaymentMethodQuery) FirstX(ctx context.Context) *PaymentMethod { // FirstID returns the first PaymentMethod ID from the query. // Returns a *NotFoundError when no PaymentMethod ID was found. -func (pmq *PaymentMethodQuery) FirstID(ctx context.Context) (id int, err error) { +func (_q *PaymentMethodQuery) FirstID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = pmq.Limit(1).IDs(setContextOp(ctx, pmq.ctx, ent.OpQueryFirstID)); err != nil { + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { return } if len(ids) == 0 { @@ -120,8 +120,8 @@ func (pmq *PaymentMethodQuery) FirstID(ctx context.Context) (id int, err error) } // FirstIDX is like FirstID, but panics if an error occurs. -func (pmq *PaymentMethodQuery) FirstIDX(ctx context.Context) int { - id, err := pmq.FirstID(ctx) +func (_q *PaymentMethodQuery) FirstIDX(ctx context.Context) int { + id, err := _q.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -131,8 +131,8 @@ func (pmq *PaymentMethodQuery) FirstIDX(ctx context.Context) int { // Only returns a single PaymentMethod entity found by the query, ensuring it only returns one. // Returns a *NotSingularError when more than one PaymentMethod entity is found. // Returns a *NotFoundError when no PaymentMethod entities are found. -func (pmq *PaymentMethodQuery) Only(ctx context.Context) (*PaymentMethod, error) { - nodes, err := pmq.Limit(2).All(setContextOp(ctx, pmq.ctx, ent.OpQueryOnly)) +func (_q *PaymentMethodQuery) Only(ctx context.Context) (*PaymentMethod, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) if err != nil { return nil, err } @@ -147,8 +147,8 @@ func (pmq *PaymentMethodQuery) Only(ctx context.Context) (*PaymentMethod, error) } // OnlyX is like Only, but panics if an error occurs. -func (pmq *PaymentMethodQuery) OnlyX(ctx context.Context) *PaymentMethod { - node, err := pmq.Only(ctx) +func (_q *PaymentMethodQuery) OnlyX(ctx context.Context) *PaymentMethod { + node, err := _q.Only(ctx) if err != nil { panic(err) } @@ -158,9 +158,9 @@ func (pmq *PaymentMethodQuery) OnlyX(ctx context.Context) *PaymentMethod { // OnlyID is like Only, but returns the only PaymentMethod ID in the query. // Returns a *NotSingularError when more than one PaymentMethod ID is found. // Returns a *NotFoundError when no entities are found. -func (pmq *PaymentMethodQuery) OnlyID(ctx context.Context) (id int, err error) { +func (_q *PaymentMethodQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = pmq.Limit(2).IDs(setContextOp(ctx, pmq.ctx, ent.OpQueryOnlyID)); err != nil { + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { return } switch len(ids) { @@ -175,8 +175,8 @@ func (pmq *PaymentMethodQuery) OnlyID(ctx context.Context) (id int, err error) { } // OnlyIDX is like OnlyID, but panics if an error occurs. -func (pmq *PaymentMethodQuery) OnlyIDX(ctx context.Context) int { - id, err := pmq.OnlyID(ctx) +func (_q *PaymentMethodQuery) OnlyIDX(ctx context.Context) int { + id, err := _q.OnlyID(ctx) if err != nil { panic(err) } @@ -184,18 +184,18 @@ func (pmq *PaymentMethodQuery) OnlyIDX(ctx context.Context) int { } // All executes the query and returns a list of PaymentMethods. -func (pmq *PaymentMethodQuery) All(ctx context.Context) ([]*PaymentMethod, error) { - ctx = setContextOp(ctx, pmq.ctx, ent.OpQueryAll) - if err := pmq.prepareQuery(ctx); err != nil { +func (_q *PaymentMethodQuery) All(ctx context.Context) ([]*PaymentMethod, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { return nil, err } qr := querierAll[[]*PaymentMethod, *PaymentMethodQuery]() - return withInterceptors[[]*PaymentMethod](ctx, pmq, qr, pmq.inters) + return withInterceptors[[]*PaymentMethod](ctx, _q, qr, _q.inters) } // AllX is like All, but panics if an error occurs. -func (pmq *PaymentMethodQuery) AllX(ctx context.Context) []*PaymentMethod { - nodes, err := pmq.All(ctx) +func (_q *PaymentMethodQuery) AllX(ctx context.Context) []*PaymentMethod { + nodes, err := _q.All(ctx) if err != nil { panic(err) } @@ -203,20 +203,20 @@ func (pmq *PaymentMethodQuery) AllX(ctx context.Context) []*PaymentMethod { } // IDs executes the query and returns a list of PaymentMethod IDs. -func (pmq *PaymentMethodQuery) IDs(ctx context.Context) (ids []int, err error) { - if pmq.ctx.Unique == nil && pmq.path != nil { - pmq.Unique(true) +func (_q *PaymentMethodQuery) IDs(ctx context.Context) (ids []int, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) } - ctx = setContextOp(ctx, pmq.ctx, ent.OpQueryIDs) - if err = pmq.Select(paymentmethod.FieldID).Scan(ctx, &ids); err != nil { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(paymentmethod.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil } // IDsX is like IDs, but panics if an error occurs. -func (pmq *PaymentMethodQuery) IDsX(ctx context.Context) []int { - ids, err := pmq.IDs(ctx) +func (_q *PaymentMethodQuery) IDsX(ctx context.Context) []int { + ids, err := _q.IDs(ctx) if err != nil { panic(err) } @@ -224,17 +224,17 @@ func (pmq *PaymentMethodQuery) IDsX(ctx context.Context) []int { } // Count returns the count of the given query. -func (pmq *PaymentMethodQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, pmq.ctx, ent.OpQueryCount) - if err := pmq.prepareQuery(ctx); err != nil { +func (_q *PaymentMethodQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { return 0, err } - return withInterceptors[int](ctx, pmq, querierCount[*PaymentMethodQuery](), pmq.inters) + return withInterceptors[int](ctx, _q, querierCount[*PaymentMethodQuery](), _q.inters) } // CountX is like Count, but panics if an error occurs. -func (pmq *PaymentMethodQuery) CountX(ctx context.Context) int { - count, err := pmq.Count(ctx) +func (_q *PaymentMethodQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) if err != nil { panic(err) } @@ -242,9 +242,9 @@ func (pmq *PaymentMethodQuery) CountX(ctx context.Context) int { } // Exist returns true if the query has elements in the graph. -func (pmq *PaymentMethodQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, pmq.ctx, ent.OpQueryExist) - switch _, err := pmq.FirstID(ctx); { +func (_q *PaymentMethodQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { case IsNotFound(err): return false, nil case err != nil: @@ -255,8 +255,8 @@ func (pmq *PaymentMethodQuery) Exist(ctx context.Context) (bool, error) { } // ExistX is like Exist, but panics if an error occurs. -func (pmq *PaymentMethodQuery) ExistX(ctx context.Context) bool { - exist, err := pmq.Exist(ctx) +func (_q *PaymentMethodQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) if err != nil { panic(err) } @@ -265,32 +265,32 @@ func (pmq *PaymentMethodQuery) ExistX(ctx context.Context) bool { // Clone returns a duplicate of the PaymentMethodQuery builder, including all associated steps. It can be // used to prepare common query builders and use them differently after the clone is made. -func (pmq *PaymentMethodQuery) Clone() *PaymentMethodQuery { - if pmq == nil { +func (_q *PaymentMethodQuery) Clone() *PaymentMethodQuery { + if _q == nil { return nil } return &PaymentMethodQuery{ - config: pmq.config, - ctx: pmq.ctx.Clone(), - order: append([]paymentmethod.OrderOption{}, pmq.order...), - inters: append([]Interceptor{}, pmq.inters...), - predicates: append([]predicate.PaymentMethod{}, pmq.predicates...), - withCustomer: pmq.withCustomer.Clone(), + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]paymentmethod.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.PaymentMethod{}, _q.predicates...), + withCustomer: _q.withCustomer.Clone(), // clone intermediate query. - sql: pmq.sql.Clone(), - path: pmq.path, + sql: _q.sql.Clone(), + path: _q.path, } } // WithCustomer tells the query-builder to eager-load the nodes that are connected to // the "customer" edge. The optional arguments are used to configure the query builder of the edge. -func (pmq *PaymentMethodQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) *PaymentMethodQuery { - query := (&PaymentCustomerClient{config: pmq.config}).Query() +func (_q *PaymentMethodQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) *PaymentMethodQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - pmq.withCustomer = query - return pmq + _q.withCustomer = query + return _q } // GroupBy is used to group vertices by one or more fields/columns. @@ -307,10 +307,10 @@ func (pmq *PaymentMethodQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) // GroupBy(paymentmethod.FieldProviderPaymentMethodID). // Aggregate(ent.Count()). // Scan(ctx, &v) -func (pmq *PaymentMethodQuery) GroupBy(field string, fields ...string) *PaymentMethodGroupBy { - pmq.ctx.Fields = append([]string{field}, fields...) - grbuild := &PaymentMethodGroupBy{build: pmq} - grbuild.flds = &pmq.ctx.Fields +func (_q *PaymentMethodQuery) GroupBy(field string, fields ...string) *PaymentMethodGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &PaymentMethodGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields grbuild.label = paymentmethod.Label grbuild.scan = grbuild.Scan return grbuild @@ -328,55 +328,55 @@ func (pmq *PaymentMethodQuery) GroupBy(field string, fields ...string) *PaymentM // client.PaymentMethod.Query(). // Select(paymentmethod.FieldProviderPaymentMethodID). // Scan(ctx, &v) -func (pmq *PaymentMethodQuery) Select(fields ...string) *PaymentMethodSelect { - pmq.ctx.Fields = append(pmq.ctx.Fields, fields...) - sbuild := &PaymentMethodSelect{PaymentMethodQuery: pmq} +func (_q *PaymentMethodQuery) Select(fields ...string) *PaymentMethodSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &PaymentMethodSelect{PaymentMethodQuery: _q} sbuild.label = paymentmethod.Label - sbuild.flds, sbuild.scan = &pmq.ctx.Fields, sbuild.Scan + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan return sbuild } // Aggregate returns a PaymentMethodSelect configured with the given aggregations. -func (pmq *PaymentMethodQuery) Aggregate(fns ...AggregateFunc) *PaymentMethodSelect { - return pmq.Select().Aggregate(fns...) +func (_q *PaymentMethodQuery) Aggregate(fns ...AggregateFunc) *PaymentMethodSelect { + return _q.Select().Aggregate(fns...) } -func (pmq *PaymentMethodQuery) prepareQuery(ctx context.Context) error { - for _, inter := range pmq.inters { +func (_q *PaymentMethodQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { if inter == nil { return fmt.Errorf("ent: uninitialized interceptor (forgotten import ent/runtime?)") } if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, pmq); err != nil { + if err := trv.Traverse(ctx, _q); err != nil { return err } } } - for _, f := range pmq.ctx.Fields { + for _, f := range _q.ctx.Fields { if !paymentmethod.ValidColumn(f) { return &ValidationError{Name: f, err: fmt.Errorf("ent: invalid field %q for query", f)} } } - if pmq.path != nil { - prev, err := pmq.path(ctx) + if _q.path != nil { + prev, err := _q.path(ctx) if err != nil { return err } - pmq.sql = prev + _q.sql = prev } return nil } -func (pmq *PaymentMethodQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PaymentMethod, error) { +func (_q *PaymentMethodQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*PaymentMethod, error) { var ( nodes = []*PaymentMethod{} - withFKs = pmq.withFKs - _spec = pmq.querySpec() + withFKs = _q.withFKs + _spec = _q.querySpec() loadedTypes = [1]bool{ - pmq.withCustomer != nil, + _q.withCustomer != nil, } ) - if pmq.withCustomer != nil { + if _q.withCustomer != nil { withFKs = true } if withFKs { @@ -386,7 +386,7 @@ func (pmq *PaymentMethodQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return (*PaymentMethod).scanValues(nil, columns) } _spec.Assign = func(columns []string, values []any) error { - node := &PaymentMethod{config: pmq.config} + node := &PaymentMethod{config: _q.config} nodes = append(nodes, node) node.Edges.loadedTypes = loadedTypes return node.assignValues(columns, values) @@ -394,14 +394,14 @@ func (pmq *PaymentMethodQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( for i := range hooks { hooks[i](ctx, _spec) } - if err := sqlgraph.QueryNodes(ctx, pmq.driver, _spec); err != nil { + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { return nil, err } if len(nodes) == 0 { return nodes, nil } - if query := pmq.withCustomer; query != nil { - if err := pmq.loadCustomer(ctx, query, nodes, nil, + if query := _q.withCustomer; query != nil { + if err := _q.loadCustomer(ctx, query, nodes, nil, func(n *PaymentMethod, e *PaymentCustomer) { n.Edges.Customer = e }); err != nil { return nil, err } @@ -409,7 +409,7 @@ func (pmq *PaymentMethodQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return nodes, nil } -func (pmq *PaymentMethodQuery) loadCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*PaymentMethod, init func(*PaymentMethod), assign func(*PaymentMethod, *PaymentCustomer)) error { +func (_q *PaymentMethodQuery) loadCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*PaymentMethod, init func(*PaymentMethod), assign func(*PaymentMethod, *PaymentCustomer)) error { ids := make([]int, 0, len(nodes)) nodeids := make(map[int][]*PaymentMethod) for i := range nodes { @@ -442,24 +442,24 @@ func (pmq *PaymentMethodQuery) loadCustomer(ctx context.Context, query *PaymentC return nil } -func (pmq *PaymentMethodQuery) sqlCount(ctx context.Context) (int, error) { - _spec := pmq.querySpec() - _spec.Node.Columns = pmq.ctx.Fields - if len(pmq.ctx.Fields) > 0 { - _spec.Unique = pmq.ctx.Unique != nil && *pmq.ctx.Unique +func (_q *PaymentMethodQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique } - return sqlgraph.CountNodes(ctx, pmq.driver, _spec) + return sqlgraph.CountNodes(ctx, _q.driver, _spec) } -func (pmq *PaymentMethodQuery) querySpec() *sqlgraph.QuerySpec { +func (_q *PaymentMethodQuery) querySpec() *sqlgraph.QuerySpec { _spec := sqlgraph.NewQuerySpec(paymentmethod.Table, paymentmethod.Columns, sqlgraph.NewFieldSpec(paymentmethod.FieldID, field.TypeInt)) - _spec.From = pmq.sql - if unique := pmq.ctx.Unique; unique != nil { + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { _spec.Unique = *unique - } else if pmq.path != nil { + } else if _q.path != nil { _spec.Unique = true } - if fields := pmq.ctx.Fields; len(fields) > 0 { + if fields := _q.ctx.Fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, paymentmethod.FieldID) for i := range fields { @@ -468,20 +468,20 @@ func (pmq *PaymentMethodQuery) querySpec() *sqlgraph.QuerySpec { } } } - if ps := pmq.predicates; len(ps) > 0 { + if ps := _q.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if limit := pmq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { _spec.Limit = *limit } - if offset := pmq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { _spec.Offset = *offset } - if ps := pmq.order; len(ps) > 0 { + if ps := _q.order; len(ps) > 0 { _spec.Order = func(selector *sql.Selector) { for i := range ps { ps[i](selector) @@ -491,33 +491,33 @@ func (pmq *PaymentMethodQuery) querySpec() *sqlgraph.QuerySpec { return _spec } -func (pmq *PaymentMethodQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(pmq.driver.Dialect()) +func (_q *PaymentMethodQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) t1 := builder.Table(paymentmethod.Table) - columns := pmq.ctx.Fields + columns := _q.ctx.Fields if len(columns) == 0 { columns = paymentmethod.Columns } selector := builder.Select(t1.Columns(columns...)...).From(t1) - if pmq.sql != nil { - selector = pmq.sql + if _q.sql != nil { + selector = _q.sql selector.Select(selector.Columns(columns...)...) } - if pmq.ctx.Unique != nil && *pmq.ctx.Unique { + if _q.ctx.Unique != nil && *_q.ctx.Unique { selector.Distinct() } - for _, p := range pmq.predicates { + for _, p := range _q.predicates { p(selector) } - for _, p := range pmq.order { + for _, p := range _q.order { p(selector) } - if offset := pmq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. selector.Offset(*offset).Limit(math.MaxInt32) } - if limit := pmq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { selector.Limit(*limit) } return selector @@ -530,41 +530,41 @@ type PaymentMethodGroupBy struct { } // Aggregate adds the given aggregation functions to the group-by query. -func (pmgb *PaymentMethodGroupBy) Aggregate(fns ...AggregateFunc) *PaymentMethodGroupBy { - pmgb.fns = append(pmgb.fns, fns...) - return pmgb +func (_g *PaymentMethodGroupBy) Aggregate(fns ...AggregateFunc) *PaymentMethodGroupBy { + _g.fns = append(_g.fns, fns...) + return _g } // Scan applies the selector query and scans the result into the given value. -func (pmgb *PaymentMethodGroupBy) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pmgb.build.ctx, ent.OpQueryGroupBy) - if err := pmgb.build.prepareQuery(ctx); err != nil { +func (_g *PaymentMethodGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PaymentMethodQuery, *PaymentMethodGroupBy](ctx, pmgb.build, pmgb, pmgb.build.inters, v) + return scanWithInterceptors[*PaymentMethodQuery, *PaymentMethodGroupBy](ctx, _g.build, _g, _g.build.inters, v) } -func (pmgb *PaymentMethodGroupBy) sqlScan(ctx context.Context, root *PaymentMethodQuery, v any) error { +func (_g *PaymentMethodGroupBy) sqlScan(ctx context.Context, root *PaymentMethodQuery, v any) error { selector := root.sqlQuery(ctx).Select() - aggregation := make([]string, 0, len(pmgb.fns)) - for _, fn := range pmgb.fns { + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { aggregation = append(aggregation, fn(selector)) } if len(selector.SelectedColumns()) == 0 { - columns := make([]string, 0, len(*pmgb.flds)+len(pmgb.fns)) - for _, f := range *pmgb.flds { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { columns = append(columns, selector.C(f)) } columns = append(columns, aggregation...) selector.Select(columns...) } - selector.GroupBy(selector.Columns(*pmgb.flds...)...) + selector.GroupBy(selector.Columns(*_g.flds...)...) if err := selector.Err(); err != nil { return err } rows := &sql.Rows{} query, args := selector.Query() - if err := pmgb.build.driver.Query(ctx, query, args, rows); err != nil { + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() @@ -578,27 +578,27 @@ type PaymentMethodSelect struct { } // Aggregate adds the given aggregation functions to the selector query. -func (pms *PaymentMethodSelect) Aggregate(fns ...AggregateFunc) *PaymentMethodSelect { - pms.fns = append(pms.fns, fns...) - return pms +func (_s *PaymentMethodSelect) Aggregate(fns ...AggregateFunc) *PaymentMethodSelect { + _s.fns = append(_s.fns, fns...) + return _s } // Scan applies the selector query and scans the result into the given value. -func (pms *PaymentMethodSelect) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, pms.ctx, ent.OpQuerySelect) - if err := pms.prepareQuery(ctx); err != nil { +func (_s *PaymentMethodSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*PaymentMethodQuery, *PaymentMethodSelect](ctx, pms.PaymentMethodQuery, pms, pms.inters, v) + return scanWithInterceptors[*PaymentMethodQuery, *PaymentMethodSelect](ctx, _s.PaymentMethodQuery, _s, _s.inters, v) } -func (pms *PaymentMethodSelect) sqlScan(ctx context.Context, root *PaymentMethodQuery, v any) error { +func (_s *PaymentMethodSelect) sqlScan(ctx context.Context, root *PaymentMethodQuery, v any) error { selector := root.sqlQuery(ctx) - aggregation := make([]string, 0, len(pms.fns)) - for _, fn := range pms.fns { + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { aggregation = append(aggregation, fn(selector)) } - switch n := len(*pms.selector.flds); { + switch n := len(*_s.selector.flds); { case n == 0 && len(aggregation) > 0: selector.Select(aggregation...) case n != 0 && len(aggregation) > 0: @@ -606,7 +606,7 @@ func (pms *PaymentMethodSelect) sqlScan(ctx context.Context, root *PaymentMethod } rows := &sql.Rows{} query, args := selector.Query() - if err := pms.driver.Query(ctx, query, args, rows); err != nil { + if err := _s.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() diff --git a/ent/paymentmethod_update.go b/ent/paymentmethod_update.go index c14e31d..007c3f5 100644 --- a/ent/paymentmethod_update.go +++ b/ent/paymentmethod_update.go @@ -24,210 +24,210 @@ type PaymentMethodUpdate struct { } // Where appends a list predicates to the PaymentMethodUpdate builder. -func (pmu *PaymentMethodUpdate) Where(ps ...predicate.PaymentMethod) *PaymentMethodUpdate { - pmu.mutation.Where(ps...) - return pmu +func (_u *PaymentMethodUpdate) Where(ps ...predicate.PaymentMethod) *PaymentMethodUpdate { + _u.mutation.Where(ps...) + return _u } // SetProviderPaymentMethodID sets the "provider_payment_method_id" field. -func (pmu *PaymentMethodUpdate) SetProviderPaymentMethodID(s string) *PaymentMethodUpdate { - pmu.mutation.SetProviderPaymentMethodID(s) - return pmu +func (_u *PaymentMethodUpdate) SetProviderPaymentMethodID(v string) *PaymentMethodUpdate { + _u.mutation.SetProviderPaymentMethodID(v) + return _u } // SetNillableProviderPaymentMethodID sets the "provider_payment_method_id" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableProviderPaymentMethodID(s *string) *PaymentMethodUpdate { - if s != nil { - pmu.SetProviderPaymentMethodID(*s) +func (_u *PaymentMethodUpdate) SetNillableProviderPaymentMethodID(v *string) *PaymentMethodUpdate { + if v != nil { + _u.SetProviderPaymentMethodID(*v) } - return pmu + return _u } // SetProvider sets the "provider" field. -func (pmu *PaymentMethodUpdate) SetProvider(s string) *PaymentMethodUpdate { - pmu.mutation.SetProvider(s) - return pmu +func (_u *PaymentMethodUpdate) SetProvider(v string) *PaymentMethodUpdate { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableProvider(s *string) *PaymentMethodUpdate { - if s != nil { - pmu.SetProvider(*s) +func (_u *PaymentMethodUpdate) SetNillableProvider(v *string) *PaymentMethodUpdate { + if v != nil { + _u.SetProvider(*v) } - return pmu + return _u } // SetType sets the "type" field. -func (pmu *PaymentMethodUpdate) SetType(pa paymentmethod.Type) *PaymentMethodUpdate { - pmu.mutation.SetType(pa) - return pmu +func (_u *PaymentMethodUpdate) SetType(v paymentmethod.Type) *PaymentMethodUpdate { + _u.mutation.SetType(v) + return _u } // SetNillableType sets the "type" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableType(pa *paymentmethod.Type) *PaymentMethodUpdate { - if pa != nil { - pmu.SetType(*pa) +func (_u *PaymentMethodUpdate) SetNillableType(v *paymentmethod.Type) *PaymentMethodUpdate { + if v != nil { + _u.SetType(*v) } - return pmu + return _u } // SetLastFour sets the "last_four" field. -func (pmu *PaymentMethodUpdate) SetLastFour(s string) *PaymentMethodUpdate { - pmu.mutation.SetLastFour(s) - return pmu +func (_u *PaymentMethodUpdate) SetLastFour(v string) *PaymentMethodUpdate { + _u.mutation.SetLastFour(v) + return _u } // SetNillableLastFour sets the "last_four" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableLastFour(s *string) *PaymentMethodUpdate { - if s != nil { - pmu.SetLastFour(*s) +func (_u *PaymentMethodUpdate) SetNillableLastFour(v *string) *PaymentMethodUpdate { + if v != nil { + _u.SetLastFour(*v) } - return pmu + return _u } // ClearLastFour clears the value of the "last_four" field. -func (pmu *PaymentMethodUpdate) ClearLastFour() *PaymentMethodUpdate { - pmu.mutation.ClearLastFour() - return pmu +func (_u *PaymentMethodUpdate) ClearLastFour() *PaymentMethodUpdate { + _u.mutation.ClearLastFour() + return _u } // SetBrand sets the "brand" field. -func (pmu *PaymentMethodUpdate) SetBrand(s string) *PaymentMethodUpdate { - pmu.mutation.SetBrand(s) - return pmu +func (_u *PaymentMethodUpdate) SetBrand(v string) *PaymentMethodUpdate { + _u.mutation.SetBrand(v) + return _u } // SetNillableBrand sets the "brand" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableBrand(s *string) *PaymentMethodUpdate { - if s != nil { - pmu.SetBrand(*s) +func (_u *PaymentMethodUpdate) SetNillableBrand(v *string) *PaymentMethodUpdate { + if v != nil { + _u.SetBrand(*v) } - return pmu + return _u } // ClearBrand clears the value of the "brand" field. -func (pmu *PaymentMethodUpdate) ClearBrand() *PaymentMethodUpdate { - pmu.mutation.ClearBrand() - return pmu +func (_u *PaymentMethodUpdate) ClearBrand() *PaymentMethodUpdate { + _u.mutation.ClearBrand() + return _u } // SetExpMonth sets the "exp_month" field. -func (pmu *PaymentMethodUpdate) SetExpMonth(i int) *PaymentMethodUpdate { - pmu.mutation.ResetExpMonth() - pmu.mutation.SetExpMonth(i) - return pmu +func (_u *PaymentMethodUpdate) SetExpMonth(v int) *PaymentMethodUpdate { + _u.mutation.ResetExpMonth() + _u.mutation.SetExpMonth(v) + return _u } // SetNillableExpMonth sets the "exp_month" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableExpMonth(i *int) *PaymentMethodUpdate { - if i != nil { - pmu.SetExpMonth(*i) +func (_u *PaymentMethodUpdate) SetNillableExpMonth(v *int) *PaymentMethodUpdate { + if v != nil { + _u.SetExpMonth(*v) } - return pmu + return _u } -// AddExpMonth adds i to the "exp_month" field. -func (pmu *PaymentMethodUpdate) AddExpMonth(i int) *PaymentMethodUpdate { - pmu.mutation.AddExpMonth(i) - return pmu +// AddExpMonth adds value to the "exp_month" field. +func (_u *PaymentMethodUpdate) AddExpMonth(v int) *PaymentMethodUpdate { + _u.mutation.AddExpMonth(v) + return _u } // ClearExpMonth clears the value of the "exp_month" field. -func (pmu *PaymentMethodUpdate) ClearExpMonth() *PaymentMethodUpdate { - pmu.mutation.ClearExpMonth() - return pmu +func (_u *PaymentMethodUpdate) ClearExpMonth() *PaymentMethodUpdate { + _u.mutation.ClearExpMonth() + return _u } // SetExpYear sets the "exp_year" field. -func (pmu *PaymentMethodUpdate) SetExpYear(i int) *PaymentMethodUpdate { - pmu.mutation.ResetExpYear() - pmu.mutation.SetExpYear(i) - return pmu +func (_u *PaymentMethodUpdate) SetExpYear(v int) *PaymentMethodUpdate { + _u.mutation.ResetExpYear() + _u.mutation.SetExpYear(v) + return _u } // SetNillableExpYear sets the "exp_year" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableExpYear(i *int) *PaymentMethodUpdate { - if i != nil { - pmu.SetExpYear(*i) +func (_u *PaymentMethodUpdate) SetNillableExpYear(v *int) *PaymentMethodUpdate { + if v != nil { + _u.SetExpYear(*v) } - return pmu + return _u } -// AddExpYear adds i to the "exp_year" field. -func (pmu *PaymentMethodUpdate) AddExpYear(i int) *PaymentMethodUpdate { - pmu.mutation.AddExpYear(i) - return pmu +// AddExpYear adds value to the "exp_year" field. +func (_u *PaymentMethodUpdate) AddExpYear(v int) *PaymentMethodUpdate { + _u.mutation.AddExpYear(v) + return _u } // ClearExpYear clears the value of the "exp_year" field. -func (pmu *PaymentMethodUpdate) ClearExpYear() *PaymentMethodUpdate { - pmu.mutation.ClearExpYear() - return pmu +func (_u *PaymentMethodUpdate) ClearExpYear() *PaymentMethodUpdate { + _u.mutation.ClearExpYear() + return _u } // SetIsDefault sets the "is_default" field. -func (pmu *PaymentMethodUpdate) SetIsDefault(b bool) *PaymentMethodUpdate { - pmu.mutation.SetIsDefault(b) - return pmu +func (_u *PaymentMethodUpdate) SetIsDefault(v bool) *PaymentMethodUpdate { + _u.mutation.SetIsDefault(v) + return _u } // SetNillableIsDefault sets the "is_default" field if the given value is not nil. -func (pmu *PaymentMethodUpdate) SetNillableIsDefault(b *bool) *PaymentMethodUpdate { - if b != nil { - pmu.SetIsDefault(*b) +func (_u *PaymentMethodUpdate) SetNillableIsDefault(v *bool) *PaymentMethodUpdate { + if v != nil { + _u.SetIsDefault(*v) } - return pmu + return _u } // SetMetadata sets the "metadata" field. -func (pmu *PaymentMethodUpdate) SetMetadata(m map[string]interface{}) *PaymentMethodUpdate { - pmu.mutation.SetMetadata(m) - return pmu +func (_u *PaymentMethodUpdate) SetMetadata(v map[string]interface{}) *PaymentMethodUpdate { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (pmu *PaymentMethodUpdate) ClearMetadata() *PaymentMethodUpdate { - pmu.mutation.ClearMetadata() - return pmu +func (_u *PaymentMethodUpdate) ClearMetadata() *PaymentMethodUpdate { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (pmu *PaymentMethodUpdate) SetUpdatedAt(t time.Time) *PaymentMethodUpdate { - pmu.mutation.SetUpdatedAt(t) - return pmu +func (_u *PaymentMethodUpdate) SetUpdatedAt(v time.Time) *PaymentMethodUpdate { + _u.mutation.SetUpdatedAt(v) + return _u } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (pmu *PaymentMethodUpdate) SetCustomerID(id int) *PaymentMethodUpdate { - pmu.mutation.SetCustomerID(id) - return pmu +func (_u *PaymentMethodUpdate) SetCustomerID(id int) *PaymentMethodUpdate { + _u.mutation.SetCustomerID(id) + return _u } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (pmu *PaymentMethodUpdate) SetCustomer(p *PaymentCustomer) *PaymentMethodUpdate { - return pmu.SetCustomerID(p.ID) +func (_u *PaymentMethodUpdate) SetCustomer(v *PaymentCustomer) *PaymentMethodUpdate { + return _u.SetCustomerID(v.ID) } // Mutation returns the PaymentMethodMutation object of the builder. -func (pmu *PaymentMethodUpdate) Mutation() *PaymentMethodMutation { - return pmu.mutation +func (_u *PaymentMethodUpdate) Mutation() *PaymentMethodMutation { + return _u.mutation } // ClearCustomer clears the "customer" edge to the PaymentCustomer entity. -func (pmu *PaymentMethodUpdate) ClearCustomer() *PaymentMethodUpdate { - pmu.mutation.ClearCustomer() - return pmu +func (_u *PaymentMethodUpdate) ClearCustomer() *PaymentMethodUpdate { + _u.mutation.ClearCustomer() + return _u } // Save executes the query and returns the number of nodes affected by the update operation. -func (pmu *PaymentMethodUpdate) Save(ctx context.Context) (int, error) { - pmu.defaults() - return withHooks(ctx, pmu.sqlSave, pmu.mutation, pmu.hooks) +func (_u *PaymentMethodUpdate) Save(ctx context.Context) (int, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (pmu *PaymentMethodUpdate) SaveX(ctx context.Context) int { - affected, err := pmu.Save(ctx) +func (_u *PaymentMethodUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) if err != nil { panic(err) } @@ -235,118 +235,118 @@ func (pmu *PaymentMethodUpdate) SaveX(ctx context.Context) int { } // Exec executes the query. -func (pmu *PaymentMethodUpdate) Exec(ctx context.Context) error { - _, err := pmu.Save(ctx) +func (_u *PaymentMethodUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pmu *PaymentMethodUpdate) ExecX(ctx context.Context) { - if err := pmu.Exec(ctx); err != nil { +func (_u *PaymentMethodUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pmu *PaymentMethodUpdate) defaults() { - if _, ok := pmu.mutation.UpdatedAt(); !ok { +func (_u *PaymentMethodUpdate) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := paymentmethod.UpdateDefaultUpdatedAt() - pmu.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pmu *PaymentMethodUpdate) check() error { - if v, ok := pmu.mutation.ProviderPaymentMethodID(); ok { +func (_u *PaymentMethodUpdate) check() error { + if v, ok := _u.mutation.ProviderPaymentMethodID(); ok { if err := paymentmethod.ProviderPaymentMethodIDValidator(v); err != nil { return &ValidationError{Name: "provider_payment_method_id", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.provider_payment_method_id": %w`, err)} } } - if v, ok := pmu.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := paymentmethod.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.provider": %w`, err)} } } - if v, ok := pmu.mutation.GetType(); ok { + if v, ok := _u.mutation.GetType(); ok { if err := paymentmethod.TypeValidator(v); err != nil { return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.type": %w`, err)} } } - if v, ok := pmu.mutation.ExpMonth(); ok { + if v, ok := _u.mutation.ExpMonth(); ok { if err := paymentmethod.ExpMonthValidator(v); err != nil { return &ValidationError{Name: "exp_month", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.exp_month": %w`, err)} } } - if pmu.mutation.CustomerCleared() && len(pmu.mutation.CustomerIDs()) > 0 { + if _u.mutation.CustomerCleared() && len(_u.mutation.CustomerIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PaymentMethod.customer"`) } return nil } -func (pmu *PaymentMethodUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := pmu.check(); err != nil { - return n, err +func (_u *PaymentMethodUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err } _spec := sqlgraph.NewUpdateSpec(paymentmethod.Table, paymentmethod.Columns, sqlgraph.NewFieldSpec(paymentmethod.FieldID, field.TypeInt)) - if ps := pmu.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := pmu.mutation.ProviderPaymentMethodID(); ok { + if value, ok := _u.mutation.ProviderPaymentMethodID(); ok { _spec.SetField(paymentmethod.FieldProviderPaymentMethodID, field.TypeString, value) } - if value, ok := pmu.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(paymentmethod.FieldProvider, field.TypeString, value) } - if value, ok := pmu.mutation.GetType(); ok { + if value, ok := _u.mutation.GetType(); ok { _spec.SetField(paymentmethod.FieldType, field.TypeEnum, value) } - if value, ok := pmu.mutation.LastFour(); ok { + if value, ok := _u.mutation.LastFour(); ok { _spec.SetField(paymentmethod.FieldLastFour, field.TypeString, value) } - if pmu.mutation.LastFourCleared() { + if _u.mutation.LastFourCleared() { _spec.ClearField(paymentmethod.FieldLastFour, field.TypeString) } - if value, ok := pmu.mutation.Brand(); ok { + if value, ok := _u.mutation.Brand(); ok { _spec.SetField(paymentmethod.FieldBrand, field.TypeString, value) } - if pmu.mutation.BrandCleared() { + if _u.mutation.BrandCleared() { _spec.ClearField(paymentmethod.FieldBrand, field.TypeString) } - if value, ok := pmu.mutation.ExpMonth(); ok { + if value, ok := _u.mutation.ExpMonth(); ok { _spec.SetField(paymentmethod.FieldExpMonth, field.TypeInt, value) } - if value, ok := pmu.mutation.AddedExpMonth(); ok { + if value, ok := _u.mutation.AddedExpMonth(); ok { _spec.AddField(paymentmethod.FieldExpMonth, field.TypeInt, value) } - if pmu.mutation.ExpMonthCleared() { + if _u.mutation.ExpMonthCleared() { _spec.ClearField(paymentmethod.FieldExpMonth, field.TypeInt) } - if value, ok := pmu.mutation.ExpYear(); ok { + if value, ok := _u.mutation.ExpYear(); ok { _spec.SetField(paymentmethod.FieldExpYear, field.TypeInt, value) } - if value, ok := pmu.mutation.AddedExpYear(); ok { + if value, ok := _u.mutation.AddedExpYear(); ok { _spec.AddField(paymentmethod.FieldExpYear, field.TypeInt, value) } - if pmu.mutation.ExpYearCleared() { + if _u.mutation.ExpYearCleared() { _spec.ClearField(paymentmethod.FieldExpYear, field.TypeInt) } - if value, ok := pmu.mutation.IsDefault(); ok { + if value, ok := _u.mutation.IsDefault(); ok { _spec.SetField(paymentmethod.FieldIsDefault, field.TypeBool, value) } - if value, ok := pmu.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(paymentmethod.FieldMetadata, field.TypeJSON, value) } - if pmu.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(paymentmethod.FieldMetadata, field.TypeJSON) } - if value, ok := pmu.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(paymentmethod.FieldUpdatedAt, field.TypeTime, value) } - if pmu.mutation.CustomerCleared() { + if _u.mutation.CustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -359,7 +359,7 @@ func (pmu *PaymentMethodUpdate) sqlSave(ctx context.Context) (n int, err error) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pmu.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -375,7 +375,7 @@ func (pmu *PaymentMethodUpdate) sqlSave(ctx context.Context) (n int, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if n, err = sqlgraph.UpdateNodes(ctx, pmu.driver, _spec); err != nil { + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{paymentmethod.Label} } else if sqlgraph.IsConstraintError(err) { @@ -383,8 +383,8 @@ func (pmu *PaymentMethodUpdate) sqlSave(ctx context.Context) (n int, err error) } return 0, err } - pmu.mutation.done = true - return n, nil + _u.mutation.done = true + return _node, nil } // PaymentMethodUpdateOne is the builder for updating a single PaymentMethod entity. @@ -396,217 +396,217 @@ type PaymentMethodUpdateOne struct { } // SetProviderPaymentMethodID sets the "provider_payment_method_id" field. -func (pmuo *PaymentMethodUpdateOne) SetProviderPaymentMethodID(s string) *PaymentMethodUpdateOne { - pmuo.mutation.SetProviderPaymentMethodID(s) - return pmuo +func (_u *PaymentMethodUpdateOne) SetProviderPaymentMethodID(v string) *PaymentMethodUpdateOne { + _u.mutation.SetProviderPaymentMethodID(v) + return _u } // SetNillableProviderPaymentMethodID sets the "provider_payment_method_id" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableProviderPaymentMethodID(s *string) *PaymentMethodUpdateOne { - if s != nil { - pmuo.SetProviderPaymentMethodID(*s) +func (_u *PaymentMethodUpdateOne) SetNillableProviderPaymentMethodID(v *string) *PaymentMethodUpdateOne { + if v != nil { + _u.SetProviderPaymentMethodID(*v) } - return pmuo + return _u } // SetProvider sets the "provider" field. -func (pmuo *PaymentMethodUpdateOne) SetProvider(s string) *PaymentMethodUpdateOne { - pmuo.mutation.SetProvider(s) - return pmuo +func (_u *PaymentMethodUpdateOne) SetProvider(v string) *PaymentMethodUpdateOne { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableProvider(s *string) *PaymentMethodUpdateOne { - if s != nil { - pmuo.SetProvider(*s) +func (_u *PaymentMethodUpdateOne) SetNillableProvider(v *string) *PaymentMethodUpdateOne { + if v != nil { + _u.SetProvider(*v) } - return pmuo + return _u } // SetType sets the "type" field. -func (pmuo *PaymentMethodUpdateOne) SetType(pa paymentmethod.Type) *PaymentMethodUpdateOne { - pmuo.mutation.SetType(pa) - return pmuo +func (_u *PaymentMethodUpdateOne) SetType(v paymentmethod.Type) *PaymentMethodUpdateOne { + _u.mutation.SetType(v) + return _u } // SetNillableType sets the "type" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableType(pa *paymentmethod.Type) *PaymentMethodUpdateOne { - if pa != nil { - pmuo.SetType(*pa) +func (_u *PaymentMethodUpdateOne) SetNillableType(v *paymentmethod.Type) *PaymentMethodUpdateOne { + if v != nil { + _u.SetType(*v) } - return pmuo + return _u } // SetLastFour sets the "last_four" field. -func (pmuo *PaymentMethodUpdateOne) SetLastFour(s string) *PaymentMethodUpdateOne { - pmuo.mutation.SetLastFour(s) - return pmuo +func (_u *PaymentMethodUpdateOne) SetLastFour(v string) *PaymentMethodUpdateOne { + _u.mutation.SetLastFour(v) + return _u } // SetNillableLastFour sets the "last_four" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableLastFour(s *string) *PaymentMethodUpdateOne { - if s != nil { - pmuo.SetLastFour(*s) +func (_u *PaymentMethodUpdateOne) SetNillableLastFour(v *string) *PaymentMethodUpdateOne { + if v != nil { + _u.SetLastFour(*v) } - return pmuo + return _u } // ClearLastFour clears the value of the "last_four" field. -func (pmuo *PaymentMethodUpdateOne) ClearLastFour() *PaymentMethodUpdateOne { - pmuo.mutation.ClearLastFour() - return pmuo +func (_u *PaymentMethodUpdateOne) ClearLastFour() *PaymentMethodUpdateOne { + _u.mutation.ClearLastFour() + return _u } // SetBrand sets the "brand" field. -func (pmuo *PaymentMethodUpdateOne) SetBrand(s string) *PaymentMethodUpdateOne { - pmuo.mutation.SetBrand(s) - return pmuo +func (_u *PaymentMethodUpdateOne) SetBrand(v string) *PaymentMethodUpdateOne { + _u.mutation.SetBrand(v) + return _u } // SetNillableBrand sets the "brand" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableBrand(s *string) *PaymentMethodUpdateOne { - if s != nil { - pmuo.SetBrand(*s) +func (_u *PaymentMethodUpdateOne) SetNillableBrand(v *string) *PaymentMethodUpdateOne { + if v != nil { + _u.SetBrand(*v) } - return pmuo + return _u } // ClearBrand clears the value of the "brand" field. -func (pmuo *PaymentMethodUpdateOne) ClearBrand() *PaymentMethodUpdateOne { - pmuo.mutation.ClearBrand() - return pmuo +func (_u *PaymentMethodUpdateOne) ClearBrand() *PaymentMethodUpdateOne { + _u.mutation.ClearBrand() + return _u } // SetExpMonth sets the "exp_month" field. -func (pmuo *PaymentMethodUpdateOne) SetExpMonth(i int) *PaymentMethodUpdateOne { - pmuo.mutation.ResetExpMonth() - pmuo.mutation.SetExpMonth(i) - return pmuo +func (_u *PaymentMethodUpdateOne) SetExpMonth(v int) *PaymentMethodUpdateOne { + _u.mutation.ResetExpMonth() + _u.mutation.SetExpMonth(v) + return _u } // SetNillableExpMonth sets the "exp_month" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableExpMonth(i *int) *PaymentMethodUpdateOne { - if i != nil { - pmuo.SetExpMonth(*i) +func (_u *PaymentMethodUpdateOne) SetNillableExpMonth(v *int) *PaymentMethodUpdateOne { + if v != nil { + _u.SetExpMonth(*v) } - return pmuo + return _u } -// AddExpMonth adds i to the "exp_month" field. -func (pmuo *PaymentMethodUpdateOne) AddExpMonth(i int) *PaymentMethodUpdateOne { - pmuo.mutation.AddExpMonth(i) - return pmuo +// AddExpMonth adds value to the "exp_month" field. +func (_u *PaymentMethodUpdateOne) AddExpMonth(v int) *PaymentMethodUpdateOne { + _u.mutation.AddExpMonth(v) + return _u } // ClearExpMonth clears the value of the "exp_month" field. -func (pmuo *PaymentMethodUpdateOne) ClearExpMonth() *PaymentMethodUpdateOne { - pmuo.mutation.ClearExpMonth() - return pmuo +func (_u *PaymentMethodUpdateOne) ClearExpMonth() *PaymentMethodUpdateOne { + _u.mutation.ClearExpMonth() + return _u } // SetExpYear sets the "exp_year" field. -func (pmuo *PaymentMethodUpdateOne) SetExpYear(i int) *PaymentMethodUpdateOne { - pmuo.mutation.ResetExpYear() - pmuo.mutation.SetExpYear(i) - return pmuo +func (_u *PaymentMethodUpdateOne) SetExpYear(v int) *PaymentMethodUpdateOne { + _u.mutation.ResetExpYear() + _u.mutation.SetExpYear(v) + return _u } // SetNillableExpYear sets the "exp_year" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableExpYear(i *int) *PaymentMethodUpdateOne { - if i != nil { - pmuo.SetExpYear(*i) +func (_u *PaymentMethodUpdateOne) SetNillableExpYear(v *int) *PaymentMethodUpdateOne { + if v != nil { + _u.SetExpYear(*v) } - return pmuo + return _u } -// AddExpYear adds i to the "exp_year" field. -func (pmuo *PaymentMethodUpdateOne) AddExpYear(i int) *PaymentMethodUpdateOne { - pmuo.mutation.AddExpYear(i) - return pmuo +// AddExpYear adds value to the "exp_year" field. +func (_u *PaymentMethodUpdateOne) AddExpYear(v int) *PaymentMethodUpdateOne { + _u.mutation.AddExpYear(v) + return _u } // ClearExpYear clears the value of the "exp_year" field. -func (pmuo *PaymentMethodUpdateOne) ClearExpYear() *PaymentMethodUpdateOne { - pmuo.mutation.ClearExpYear() - return pmuo +func (_u *PaymentMethodUpdateOne) ClearExpYear() *PaymentMethodUpdateOne { + _u.mutation.ClearExpYear() + return _u } // SetIsDefault sets the "is_default" field. -func (pmuo *PaymentMethodUpdateOne) SetIsDefault(b bool) *PaymentMethodUpdateOne { - pmuo.mutation.SetIsDefault(b) - return pmuo +func (_u *PaymentMethodUpdateOne) SetIsDefault(v bool) *PaymentMethodUpdateOne { + _u.mutation.SetIsDefault(v) + return _u } // SetNillableIsDefault sets the "is_default" field if the given value is not nil. -func (pmuo *PaymentMethodUpdateOne) SetNillableIsDefault(b *bool) *PaymentMethodUpdateOne { - if b != nil { - pmuo.SetIsDefault(*b) +func (_u *PaymentMethodUpdateOne) SetNillableIsDefault(v *bool) *PaymentMethodUpdateOne { + if v != nil { + _u.SetIsDefault(*v) } - return pmuo + return _u } // SetMetadata sets the "metadata" field. -func (pmuo *PaymentMethodUpdateOne) SetMetadata(m map[string]interface{}) *PaymentMethodUpdateOne { - pmuo.mutation.SetMetadata(m) - return pmuo +func (_u *PaymentMethodUpdateOne) SetMetadata(v map[string]interface{}) *PaymentMethodUpdateOne { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (pmuo *PaymentMethodUpdateOne) ClearMetadata() *PaymentMethodUpdateOne { - pmuo.mutation.ClearMetadata() - return pmuo +func (_u *PaymentMethodUpdateOne) ClearMetadata() *PaymentMethodUpdateOne { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (pmuo *PaymentMethodUpdateOne) SetUpdatedAt(t time.Time) *PaymentMethodUpdateOne { - pmuo.mutation.SetUpdatedAt(t) - return pmuo +func (_u *PaymentMethodUpdateOne) SetUpdatedAt(v time.Time) *PaymentMethodUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (pmuo *PaymentMethodUpdateOne) SetCustomerID(id int) *PaymentMethodUpdateOne { - pmuo.mutation.SetCustomerID(id) - return pmuo +func (_u *PaymentMethodUpdateOne) SetCustomerID(id int) *PaymentMethodUpdateOne { + _u.mutation.SetCustomerID(id) + return _u } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (pmuo *PaymentMethodUpdateOne) SetCustomer(p *PaymentCustomer) *PaymentMethodUpdateOne { - return pmuo.SetCustomerID(p.ID) +func (_u *PaymentMethodUpdateOne) SetCustomer(v *PaymentCustomer) *PaymentMethodUpdateOne { + return _u.SetCustomerID(v.ID) } // Mutation returns the PaymentMethodMutation object of the builder. -func (pmuo *PaymentMethodUpdateOne) Mutation() *PaymentMethodMutation { - return pmuo.mutation +func (_u *PaymentMethodUpdateOne) Mutation() *PaymentMethodMutation { + return _u.mutation } // ClearCustomer clears the "customer" edge to the PaymentCustomer entity. -func (pmuo *PaymentMethodUpdateOne) ClearCustomer() *PaymentMethodUpdateOne { - pmuo.mutation.ClearCustomer() - return pmuo +func (_u *PaymentMethodUpdateOne) ClearCustomer() *PaymentMethodUpdateOne { + _u.mutation.ClearCustomer() + return _u } // Where appends a list predicates to the PaymentMethodUpdate builder. -func (pmuo *PaymentMethodUpdateOne) Where(ps ...predicate.PaymentMethod) *PaymentMethodUpdateOne { - pmuo.mutation.Where(ps...) - return pmuo +func (_u *PaymentMethodUpdateOne) Where(ps ...predicate.PaymentMethod) *PaymentMethodUpdateOne { + _u.mutation.Where(ps...) + return _u } // Select allows selecting one or more fields (columns) of the returned entity. // The default is selecting all fields defined in the entity schema. -func (pmuo *PaymentMethodUpdateOne) Select(field string, fields ...string) *PaymentMethodUpdateOne { - pmuo.fields = append([]string{field}, fields...) - return pmuo +func (_u *PaymentMethodUpdateOne) Select(field string, fields ...string) *PaymentMethodUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } // Save executes the query and returns the updated PaymentMethod entity. -func (pmuo *PaymentMethodUpdateOne) Save(ctx context.Context) (*PaymentMethod, error) { - pmuo.defaults() - return withHooks(ctx, pmuo.sqlSave, pmuo.mutation, pmuo.hooks) +func (_u *PaymentMethodUpdateOne) Save(ctx context.Context) (*PaymentMethod, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (pmuo *PaymentMethodUpdateOne) SaveX(ctx context.Context) *PaymentMethod { - node, err := pmuo.Save(ctx) +func (_u *PaymentMethodUpdateOne) SaveX(ctx context.Context) *PaymentMethod { + node, err := _u.Save(ctx) if err != nil { panic(err) } @@ -614,65 +614,65 @@ func (pmuo *PaymentMethodUpdateOne) SaveX(ctx context.Context) *PaymentMethod { } // Exec executes the query on the entity. -func (pmuo *PaymentMethodUpdateOne) Exec(ctx context.Context) error { - _, err := pmuo.Save(ctx) +func (_u *PaymentMethodUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (pmuo *PaymentMethodUpdateOne) ExecX(ctx context.Context) { - if err := pmuo.Exec(ctx); err != nil { +func (_u *PaymentMethodUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (pmuo *PaymentMethodUpdateOne) defaults() { - if _, ok := pmuo.mutation.UpdatedAt(); !ok { +func (_u *PaymentMethodUpdateOne) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := paymentmethod.UpdateDefaultUpdatedAt() - pmuo.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (pmuo *PaymentMethodUpdateOne) check() error { - if v, ok := pmuo.mutation.ProviderPaymentMethodID(); ok { +func (_u *PaymentMethodUpdateOne) check() error { + if v, ok := _u.mutation.ProviderPaymentMethodID(); ok { if err := paymentmethod.ProviderPaymentMethodIDValidator(v); err != nil { return &ValidationError{Name: "provider_payment_method_id", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.provider_payment_method_id": %w`, err)} } } - if v, ok := pmuo.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := paymentmethod.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.provider": %w`, err)} } } - if v, ok := pmuo.mutation.GetType(); ok { + if v, ok := _u.mutation.GetType(); ok { if err := paymentmethod.TypeValidator(v); err != nil { return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.type": %w`, err)} } } - if v, ok := pmuo.mutation.ExpMonth(); ok { + if v, ok := _u.mutation.ExpMonth(); ok { if err := paymentmethod.ExpMonthValidator(v); err != nil { return &ValidationError{Name: "exp_month", err: fmt.Errorf(`ent: validator failed for field "PaymentMethod.exp_month": %w`, err)} } } - if pmuo.mutation.CustomerCleared() && len(pmuo.mutation.CustomerIDs()) > 0 { + if _u.mutation.CustomerCleared() && len(_u.mutation.CustomerIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "PaymentMethod.customer"`) } return nil } -func (pmuo *PaymentMethodUpdateOne) sqlSave(ctx context.Context) (_node *PaymentMethod, err error) { - if err := pmuo.check(); err != nil { +func (_u *PaymentMethodUpdateOne) sqlSave(ctx context.Context) (_node *PaymentMethod, err error) { + if err := _u.check(); err != nil { return _node, err } _spec := sqlgraph.NewUpdateSpec(paymentmethod.Table, paymentmethod.Columns, sqlgraph.NewFieldSpec(paymentmethod.FieldID, field.TypeInt)) - id, ok := pmuo.mutation.ID() + id, ok := _u.mutation.ID() if !ok { return nil, &ValidationError{Name: "id", err: errors.New(`ent: missing "PaymentMethod.id" for update`)} } _spec.Node.ID.Value = id - if fields := pmuo.fields; len(fields) > 0 { + if fields := _u.fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, paymentmethod.FieldID) for _, f := range fields { @@ -684,65 +684,65 @@ func (pmuo *PaymentMethodUpdateOne) sqlSave(ctx context.Context) (_node *Payment } } } - if ps := pmuo.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := pmuo.mutation.ProviderPaymentMethodID(); ok { + if value, ok := _u.mutation.ProviderPaymentMethodID(); ok { _spec.SetField(paymentmethod.FieldProviderPaymentMethodID, field.TypeString, value) } - if value, ok := pmuo.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(paymentmethod.FieldProvider, field.TypeString, value) } - if value, ok := pmuo.mutation.GetType(); ok { + if value, ok := _u.mutation.GetType(); ok { _spec.SetField(paymentmethod.FieldType, field.TypeEnum, value) } - if value, ok := pmuo.mutation.LastFour(); ok { + if value, ok := _u.mutation.LastFour(); ok { _spec.SetField(paymentmethod.FieldLastFour, field.TypeString, value) } - if pmuo.mutation.LastFourCleared() { + if _u.mutation.LastFourCleared() { _spec.ClearField(paymentmethod.FieldLastFour, field.TypeString) } - if value, ok := pmuo.mutation.Brand(); ok { + if value, ok := _u.mutation.Brand(); ok { _spec.SetField(paymentmethod.FieldBrand, field.TypeString, value) } - if pmuo.mutation.BrandCleared() { + if _u.mutation.BrandCleared() { _spec.ClearField(paymentmethod.FieldBrand, field.TypeString) } - if value, ok := pmuo.mutation.ExpMonth(); ok { + if value, ok := _u.mutation.ExpMonth(); ok { _spec.SetField(paymentmethod.FieldExpMonth, field.TypeInt, value) } - if value, ok := pmuo.mutation.AddedExpMonth(); ok { + if value, ok := _u.mutation.AddedExpMonth(); ok { _spec.AddField(paymentmethod.FieldExpMonth, field.TypeInt, value) } - if pmuo.mutation.ExpMonthCleared() { + if _u.mutation.ExpMonthCleared() { _spec.ClearField(paymentmethod.FieldExpMonth, field.TypeInt) } - if value, ok := pmuo.mutation.ExpYear(); ok { + if value, ok := _u.mutation.ExpYear(); ok { _spec.SetField(paymentmethod.FieldExpYear, field.TypeInt, value) } - if value, ok := pmuo.mutation.AddedExpYear(); ok { + if value, ok := _u.mutation.AddedExpYear(); ok { _spec.AddField(paymentmethod.FieldExpYear, field.TypeInt, value) } - if pmuo.mutation.ExpYearCleared() { + if _u.mutation.ExpYearCleared() { _spec.ClearField(paymentmethod.FieldExpYear, field.TypeInt) } - if value, ok := pmuo.mutation.IsDefault(); ok { + if value, ok := _u.mutation.IsDefault(); ok { _spec.SetField(paymentmethod.FieldIsDefault, field.TypeBool, value) } - if value, ok := pmuo.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(paymentmethod.FieldMetadata, field.TypeJSON, value) } - if pmuo.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(paymentmethod.FieldMetadata, field.TypeJSON) } - if value, ok := pmuo.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(paymentmethod.FieldUpdatedAt, field.TypeTime, value) } - if pmuo.mutation.CustomerCleared() { + if _u.mutation.CustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -755,7 +755,7 @@ func (pmuo *PaymentMethodUpdateOne) sqlSave(ctx context.Context) (_node *Payment } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := pmuo.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -771,10 +771,10 @@ func (pmuo *PaymentMethodUpdateOne) sqlSave(ctx context.Context) (_node *Payment } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - _node = &PaymentMethod{config: pmuo.config} + _node = &PaymentMethod{config: _u.config} _spec.Assign = _node.assignValues _spec.ScanValues = _node.scanValues - if err = sqlgraph.UpdateNode(ctx, pmuo.driver, _spec); err != nil { + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{paymentmethod.Label} } else if sqlgraph.IsConstraintError(err) { @@ -782,6 +782,6 @@ func (pmuo *PaymentMethodUpdateOne) sqlSave(ctx context.Context) (_node *Payment } return nil, err } - pmuo.mutation.done = true + _u.mutation.done = true return _node, nil } diff --git a/ent/runtime/runtime.go b/ent/runtime/runtime.go index a7a08d7..cca05a4 100644 --- a/ent/runtime/runtime.go +++ b/ent/runtime/runtime.go @@ -219,6 +219,6 @@ func init() { } const ( - Version = "v0.14.4" // Version of ent codegen. - Sum = "h1:/DhDraSLXIkBhyiVoJeSshr4ZYi7femzhj6/TckzZuI=" // Sum of ent codegen. + Version = "v0.14.5" // Version of ent codegen. + Sum = "h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=" // Sum of ent codegen. ) diff --git a/ent/subscription.go b/ent/subscription.go index d241457..21d0f2f 100644 --- a/ent/subscription.go +++ b/ent/subscription.go @@ -104,7 +104,7 @@ func (*Subscription) scanValues(columns []string) ([]any, error) { // assignValues assigns the values that were returned from sql.Rows (after scanning) // to the Subscription fields. -func (s *Subscription) assignValues(columns []string, values []any) error { +func (_m *Subscription) assignValues(columns []string, values []any) error { if m, n := len(values), len(columns); m < n { return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) } @@ -115,96 +115,96 @@ func (s *Subscription) assignValues(columns []string, values []any) error { if !ok { return fmt.Errorf("unexpected type %T for field id", value) } - s.ID = int(value.Int64) + _m.ID = int(value.Int64) case subscription.FieldProviderSubscriptionID: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider_subscription_id", values[i]) } else if value.Valid { - s.ProviderSubscriptionID = value.String + _m.ProviderSubscriptionID = value.String } case subscription.FieldProvider: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field provider", values[i]) } else if value.Valid { - s.Provider = value.String + _m.Provider = value.String } case subscription.FieldStatus: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field status", values[i]) } else if value.Valid { - s.Status = subscription.Status(value.String) + _m.Status = subscription.Status(value.String) } case subscription.FieldPriceID: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field price_id", values[i]) } else if value.Valid { - s.PriceID = value.String + _m.PriceID = value.String } case subscription.FieldAmount: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for field amount", values[i]) } else if value.Valid { - s.Amount = value.Int64 + _m.Amount = value.Int64 } case subscription.FieldCurrency: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field currency", values[i]) } else if value.Valid { - s.Currency = value.String + _m.Currency = value.String } case subscription.FieldInterval: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field interval", values[i]) } else if value.Valid { - s.Interval = subscription.Interval(value.String) + _m.Interval = subscription.Interval(value.String) } case subscription.FieldIntervalCount: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for field interval_count", values[i]) } else if value.Valid { - s.IntervalCount = int(value.Int64) + _m.IntervalCount = int(value.Int64) } case subscription.FieldCurrentPeriodStart: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field current_period_start", values[i]) } else if value.Valid { - s.CurrentPeriodStart = value.Time + _m.CurrentPeriodStart = value.Time } case subscription.FieldCurrentPeriodEnd: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field current_period_end", values[i]) } else if value.Valid { - s.CurrentPeriodEnd = value.Time + _m.CurrentPeriodEnd = value.Time } case subscription.FieldTrialStart: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field trial_start", values[i]) } else if value.Valid { - s.TrialStart = value.Time + _m.TrialStart = value.Time } case subscription.FieldTrialEnd: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field trial_end", values[i]) } else if value.Valid { - s.TrialEnd = value.Time + _m.TrialEnd = value.Time } case subscription.FieldCanceledAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field canceled_at", values[i]) } else if value.Valid { - s.CanceledAt = value.Time + _m.CanceledAt = value.Time } case subscription.FieldEndedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field ended_at", values[i]) } else if value.Valid { - s.EndedAt = value.Time + _m.EndedAt = value.Time } case subscription.FieldMetadata: if value, ok := values[i].(*[]byte); !ok { return fmt.Errorf("unexpected type %T for field metadata", values[i]) } else if value != nil && len(*value) > 0 { - if err := json.Unmarshal(*value, &s.Metadata); err != nil { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { return fmt.Errorf("unmarshal field metadata: %w", err) } } @@ -212,23 +212,23 @@ func (s *Subscription) assignValues(columns []string, values []any) error { if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field created_at", values[i]) } else if value.Valid { - s.CreatedAt = value.Time + _m.CreatedAt = value.Time } case subscription.FieldUpdatedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field updated_at", values[i]) } else if value.Valid { - s.UpdatedAt = value.Time + _m.UpdatedAt = value.Time } case subscription.ForeignKeys[0]: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for edge-field payment_customer_subscriptions", value) } else if value.Valid { - s.payment_customer_subscriptions = new(int) - *s.payment_customer_subscriptions = int(value.Int64) + _m.payment_customer_subscriptions = new(int) + *_m.payment_customer_subscriptions = int(value.Int64) } default: - s.selectValues.Set(columns[i], values[i]) + _m.selectValues.Set(columns[i], values[i]) } } return nil @@ -236,88 +236,88 @@ func (s *Subscription) assignValues(columns []string, values []any) error { // Value returns the ent.Value that was dynamically selected and assigned to the Subscription. // This includes values selected through modifiers, order, etc. -func (s *Subscription) Value(name string) (ent.Value, error) { - return s.selectValues.Get(name) +func (_m *Subscription) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) } // QueryCustomer queries the "customer" edge of the Subscription entity. -func (s *Subscription) QueryCustomer() *PaymentCustomerQuery { - return NewSubscriptionClient(s.config).QueryCustomer(s) +func (_m *Subscription) QueryCustomer() *PaymentCustomerQuery { + return NewSubscriptionClient(_m.config).QueryCustomer(_m) } // Update returns a builder for updating this Subscription. // Note that you need to call Subscription.Unwrap() before calling this method if this Subscription // was returned from a transaction, and the transaction was committed or rolled back. -func (s *Subscription) Update() *SubscriptionUpdateOne { - return NewSubscriptionClient(s.config).UpdateOne(s) +func (_m *Subscription) Update() *SubscriptionUpdateOne { + return NewSubscriptionClient(_m.config).UpdateOne(_m) } // Unwrap unwraps the Subscription entity that was returned from a transaction after it was closed, // so that all future queries will be executed through the driver which created the transaction. -func (s *Subscription) Unwrap() *Subscription { - _tx, ok := s.config.driver.(*txDriver) +func (_m *Subscription) Unwrap() *Subscription { + _tx, ok := _m.config.driver.(*txDriver) if !ok { panic("ent: Subscription is not a transactional entity") } - s.config.driver = _tx.drv - return s + _m.config.driver = _tx.drv + return _m } // String implements the fmt.Stringer. -func (s *Subscription) String() string { +func (_m *Subscription) String() string { var builder strings.Builder builder.WriteString("Subscription(") - builder.WriteString(fmt.Sprintf("id=%v, ", s.ID)) + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) builder.WriteString("provider_subscription_id=") - builder.WriteString(s.ProviderSubscriptionID) + builder.WriteString(_m.ProviderSubscriptionID) builder.WriteString(", ") builder.WriteString("provider=") - builder.WriteString(s.Provider) + builder.WriteString(_m.Provider) builder.WriteString(", ") builder.WriteString("status=") - builder.WriteString(fmt.Sprintf("%v", s.Status)) + builder.WriteString(fmt.Sprintf("%v", _m.Status)) builder.WriteString(", ") builder.WriteString("price_id=") - builder.WriteString(s.PriceID) + builder.WriteString(_m.PriceID) builder.WriteString(", ") builder.WriteString("amount=") - builder.WriteString(fmt.Sprintf("%v", s.Amount)) + builder.WriteString(fmt.Sprintf("%v", _m.Amount)) builder.WriteString(", ") builder.WriteString("currency=") - builder.WriteString(s.Currency) + builder.WriteString(_m.Currency) builder.WriteString(", ") builder.WriteString("interval=") - builder.WriteString(fmt.Sprintf("%v", s.Interval)) + builder.WriteString(fmt.Sprintf("%v", _m.Interval)) builder.WriteString(", ") builder.WriteString("interval_count=") - builder.WriteString(fmt.Sprintf("%v", s.IntervalCount)) + builder.WriteString(fmt.Sprintf("%v", _m.IntervalCount)) builder.WriteString(", ") builder.WriteString("current_period_start=") - builder.WriteString(s.CurrentPeriodStart.Format(time.ANSIC)) + builder.WriteString(_m.CurrentPeriodStart.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("current_period_end=") - builder.WriteString(s.CurrentPeriodEnd.Format(time.ANSIC)) + builder.WriteString(_m.CurrentPeriodEnd.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("trial_start=") - builder.WriteString(s.TrialStart.Format(time.ANSIC)) + builder.WriteString(_m.TrialStart.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("trial_end=") - builder.WriteString(s.TrialEnd.Format(time.ANSIC)) + builder.WriteString(_m.TrialEnd.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("canceled_at=") - builder.WriteString(s.CanceledAt.Format(time.ANSIC)) + builder.WriteString(_m.CanceledAt.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("ended_at=") - builder.WriteString(s.EndedAt.Format(time.ANSIC)) + builder.WriteString(_m.EndedAt.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("metadata=") - builder.WriteString(fmt.Sprintf("%v", s.Metadata)) + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) builder.WriteString(", ") builder.WriteString("created_at=") - builder.WriteString(s.CreatedAt.Format(time.ANSIC)) + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) builder.WriteString(", ") builder.WriteString("updated_at=") - builder.WriteString(s.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(_m.UpdatedAt.Format(time.ANSIC)) builder.WriteByte(')') return builder.String() } diff --git a/ent/subscription_create.go b/ent/subscription_create.go index 03586a5..2abc491 100644 --- a/ent/subscription_create.go +++ b/ent/subscription_create.go @@ -22,228 +22,228 @@ type SubscriptionCreate struct { } // SetProviderSubscriptionID sets the "provider_subscription_id" field. -func (sc *SubscriptionCreate) SetProviderSubscriptionID(s string) *SubscriptionCreate { - sc.mutation.SetProviderSubscriptionID(s) - return sc +func (_c *SubscriptionCreate) SetProviderSubscriptionID(v string) *SubscriptionCreate { + _c.mutation.SetProviderSubscriptionID(v) + return _c } // SetProvider sets the "provider" field. -func (sc *SubscriptionCreate) SetProvider(s string) *SubscriptionCreate { - sc.mutation.SetProvider(s) - return sc +func (_c *SubscriptionCreate) SetProvider(v string) *SubscriptionCreate { + _c.mutation.SetProvider(v) + return _c } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableProvider(s *string) *SubscriptionCreate { - if s != nil { - sc.SetProvider(*s) +func (_c *SubscriptionCreate) SetNillableProvider(v *string) *SubscriptionCreate { + if v != nil { + _c.SetProvider(*v) } - return sc + return _c } // SetStatus sets the "status" field. -func (sc *SubscriptionCreate) SetStatus(s subscription.Status) *SubscriptionCreate { - sc.mutation.SetStatus(s) - return sc +func (_c *SubscriptionCreate) SetStatus(v subscription.Status) *SubscriptionCreate { + _c.mutation.SetStatus(v) + return _c } // SetNillableStatus sets the "status" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableStatus(s *subscription.Status) *SubscriptionCreate { - if s != nil { - sc.SetStatus(*s) +func (_c *SubscriptionCreate) SetNillableStatus(v *subscription.Status) *SubscriptionCreate { + if v != nil { + _c.SetStatus(*v) } - return sc + return _c } // SetPriceID sets the "price_id" field. -func (sc *SubscriptionCreate) SetPriceID(s string) *SubscriptionCreate { - sc.mutation.SetPriceID(s) - return sc +func (_c *SubscriptionCreate) SetPriceID(v string) *SubscriptionCreate { + _c.mutation.SetPriceID(v) + return _c } // SetAmount sets the "amount" field. -func (sc *SubscriptionCreate) SetAmount(i int64) *SubscriptionCreate { - sc.mutation.SetAmount(i) - return sc +func (_c *SubscriptionCreate) SetAmount(v int64) *SubscriptionCreate { + _c.mutation.SetAmount(v) + return _c } // SetCurrency sets the "currency" field. -func (sc *SubscriptionCreate) SetCurrency(s string) *SubscriptionCreate { - sc.mutation.SetCurrency(s) - return sc +func (_c *SubscriptionCreate) SetCurrency(v string) *SubscriptionCreate { + _c.mutation.SetCurrency(v) + return _c } // SetNillableCurrency sets the "currency" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableCurrency(s *string) *SubscriptionCreate { - if s != nil { - sc.SetCurrency(*s) +func (_c *SubscriptionCreate) SetNillableCurrency(v *string) *SubscriptionCreate { + if v != nil { + _c.SetCurrency(*v) } - return sc + return _c } // SetInterval sets the "interval" field. -func (sc *SubscriptionCreate) SetInterval(s subscription.Interval) *SubscriptionCreate { - sc.mutation.SetInterval(s) - return sc +func (_c *SubscriptionCreate) SetInterval(v subscription.Interval) *SubscriptionCreate { + _c.mutation.SetInterval(v) + return _c } // SetIntervalCount sets the "interval_count" field. -func (sc *SubscriptionCreate) SetIntervalCount(i int) *SubscriptionCreate { - sc.mutation.SetIntervalCount(i) - return sc +func (_c *SubscriptionCreate) SetIntervalCount(v int) *SubscriptionCreate { + _c.mutation.SetIntervalCount(v) + return _c } // SetNillableIntervalCount sets the "interval_count" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableIntervalCount(i *int) *SubscriptionCreate { - if i != nil { - sc.SetIntervalCount(*i) +func (_c *SubscriptionCreate) SetNillableIntervalCount(v *int) *SubscriptionCreate { + if v != nil { + _c.SetIntervalCount(*v) } - return sc + return _c } // SetCurrentPeriodStart sets the "current_period_start" field. -func (sc *SubscriptionCreate) SetCurrentPeriodStart(t time.Time) *SubscriptionCreate { - sc.mutation.SetCurrentPeriodStart(t) - return sc +func (_c *SubscriptionCreate) SetCurrentPeriodStart(v time.Time) *SubscriptionCreate { + _c.mutation.SetCurrentPeriodStart(v) + return _c } // SetNillableCurrentPeriodStart sets the "current_period_start" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableCurrentPeriodStart(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetCurrentPeriodStart(*t) +func (_c *SubscriptionCreate) SetNillableCurrentPeriodStart(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetCurrentPeriodStart(*v) } - return sc + return _c } // SetCurrentPeriodEnd sets the "current_period_end" field. -func (sc *SubscriptionCreate) SetCurrentPeriodEnd(t time.Time) *SubscriptionCreate { - sc.mutation.SetCurrentPeriodEnd(t) - return sc +func (_c *SubscriptionCreate) SetCurrentPeriodEnd(v time.Time) *SubscriptionCreate { + _c.mutation.SetCurrentPeriodEnd(v) + return _c } // SetNillableCurrentPeriodEnd sets the "current_period_end" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableCurrentPeriodEnd(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetCurrentPeriodEnd(*t) +func (_c *SubscriptionCreate) SetNillableCurrentPeriodEnd(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetCurrentPeriodEnd(*v) } - return sc + return _c } // SetTrialStart sets the "trial_start" field. -func (sc *SubscriptionCreate) SetTrialStart(t time.Time) *SubscriptionCreate { - sc.mutation.SetTrialStart(t) - return sc +func (_c *SubscriptionCreate) SetTrialStart(v time.Time) *SubscriptionCreate { + _c.mutation.SetTrialStart(v) + return _c } // SetNillableTrialStart sets the "trial_start" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableTrialStart(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetTrialStart(*t) +func (_c *SubscriptionCreate) SetNillableTrialStart(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetTrialStart(*v) } - return sc + return _c } // SetTrialEnd sets the "trial_end" field. -func (sc *SubscriptionCreate) SetTrialEnd(t time.Time) *SubscriptionCreate { - sc.mutation.SetTrialEnd(t) - return sc +func (_c *SubscriptionCreate) SetTrialEnd(v time.Time) *SubscriptionCreate { + _c.mutation.SetTrialEnd(v) + return _c } // SetNillableTrialEnd sets the "trial_end" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableTrialEnd(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetTrialEnd(*t) +func (_c *SubscriptionCreate) SetNillableTrialEnd(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetTrialEnd(*v) } - return sc + return _c } // SetCanceledAt sets the "canceled_at" field. -func (sc *SubscriptionCreate) SetCanceledAt(t time.Time) *SubscriptionCreate { - sc.mutation.SetCanceledAt(t) - return sc +func (_c *SubscriptionCreate) SetCanceledAt(v time.Time) *SubscriptionCreate { + _c.mutation.SetCanceledAt(v) + return _c } // SetNillableCanceledAt sets the "canceled_at" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableCanceledAt(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetCanceledAt(*t) +func (_c *SubscriptionCreate) SetNillableCanceledAt(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetCanceledAt(*v) } - return sc + return _c } // SetEndedAt sets the "ended_at" field. -func (sc *SubscriptionCreate) SetEndedAt(t time.Time) *SubscriptionCreate { - sc.mutation.SetEndedAt(t) - return sc +func (_c *SubscriptionCreate) SetEndedAt(v time.Time) *SubscriptionCreate { + _c.mutation.SetEndedAt(v) + return _c } // SetNillableEndedAt sets the "ended_at" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableEndedAt(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetEndedAt(*t) +func (_c *SubscriptionCreate) SetNillableEndedAt(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetEndedAt(*v) } - return sc + return _c } // SetMetadata sets the "metadata" field. -func (sc *SubscriptionCreate) SetMetadata(m map[string]interface{}) *SubscriptionCreate { - sc.mutation.SetMetadata(m) - return sc +func (_c *SubscriptionCreate) SetMetadata(v map[string]interface{}) *SubscriptionCreate { + _c.mutation.SetMetadata(v) + return _c } // SetCreatedAt sets the "created_at" field. -func (sc *SubscriptionCreate) SetCreatedAt(t time.Time) *SubscriptionCreate { - sc.mutation.SetCreatedAt(t) - return sc +func (_c *SubscriptionCreate) SetCreatedAt(v time.Time) *SubscriptionCreate { + _c.mutation.SetCreatedAt(v) + return _c } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableCreatedAt(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetCreatedAt(*t) +func (_c *SubscriptionCreate) SetNillableCreatedAt(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetCreatedAt(*v) } - return sc + return _c } // SetUpdatedAt sets the "updated_at" field. -func (sc *SubscriptionCreate) SetUpdatedAt(t time.Time) *SubscriptionCreate { - sc.mutation.SetUpdatedAt(t) - return sc +func (_c *SubscriptionCreate) SetUpdatedAt(v time.Time) *SubscriptionCreate { + _c.mutation.SetUpdatedAt(v) + return _c } // SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. -func (sc *SubscriptionCreate) SetNillableUpdatedAt(t *time.Time) *SubscriptionCreate { - if t != nil { - sc.SetUpdatedAt(*t) +func (_c *SubscriptionCreate) SetNillableUpdatedAt(v *time.Time) *SubscriptionCreate { + if v != nil { + _c.SetUpdatedAt(*v) } - return sc + return _c } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (sc *SubscriptionCreate) SetCustomerID(id int) *SubscriptionCreate { - sc.mutation.SetCustomerID(id) - return sc +func (_c *SubscriptionCreate) SetCustomerID(id int) *SubscriptionCreate { + _c.mutation.SetCustomerID(id) + return _c } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (sc *SubscriptionCreate) SetCustomer(p *PaymentCustomer) *SubscriptionCreate { - return sc.SetCustomerID(p.ID) +func (_c *SubscriptionCreate) SetCustomer(v *PaymentCustomer) *SubscriptionCreate { + return _c.SetCustomerID(v.ID) } // Mutation returns the SubscriptionMutation object of the builder. -func (sc *SubscriptionCreate) Mutation() *SubscriptionMutation { - return sc.mutation +func (_c *SubscriptionCreate) Mutation() *SubscriptionMutation { + return _c.mutation } // Save creates the Subscription in the database. -func (sc *SubscriptionCreate) Save(ctx context.Context) (*Subscription, error) { - sc.defaults() - return withHooks(ctx, sc.sqlSave, sc.mutation, sc.hooks) +func (_c *SubscriptionCreate) Save(ctx context.Context) (*Subscription, error) { + _c.defaults() + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) } // SaveX calls Save and panics if Save returns an error. -func (sc *SubscriptionCreate) SaveX(ctx context.Context) *Subscription { - v, err := sc.Save(ctx) +func (_c *SubscriptionCreate) SaveX(ctx context.Context) *Subscription { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -251,130 +251,130 @@ func (sc *SubscriptionCreate) SaveX(ctx context.Context) *Subscription { } // Exec executes the query. -func (sc *SubscriptionCreate) Exec(ctx context.Context) error { - _, err := sc.Save(ctx) +func (_c *SubscriptionCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (sc *SubscriptionCreate) ExecX(ctx context.Context) { - if err := sc.Exec(ctx); err != nil { +func (_c *SubscriptionCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (sc *SubscriptionCreate) defaults() { - if _, ok := sc.mutation.Provider(); !ok { +func (_c *SubscriptionCreate) defaults() { + if _, ok := _c.mutation.Provider(); !ok { v := subscription.DefaultProvider - sc.mutation.SetProvider(v) + _c.mutation.SetProvider(v) } - if _, ok := sc.mutation.Status(); !ok { + if _, ok := _c.mutation.Status(); !ok { v := subscription.DefaultStatus - sc.mutation.SetStatus(v) + _c.mutation.SetStatus(v) } - if _, ok := sc.mutation.Currency(); !ok { + if _, ok := _c.mutation.Currency(); !ok { v := subscription.DefaultCurrency - sc.mutation.SetCurrency(v) + _c.mutation.SetCurrency(v) } - if _, ok := sc.mutation.IntervalCount(); !ok { + if _, ok := _c.mutation.IntervalCount(); !ok { v := subscription.DefaultIntervalCount - sc.mutation.SetIntervalCount(v) + _c.mutation.SetIntervalCount(v) } - if _, ok := sc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { v := subscription.DefaultCreatedAt() - sc.mutation.SetCreatedAt(v) + _c.mutation.SetCreatedAt(v) } - if _, ok := sc.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { v := subscription.DefaultUpdatedAt() - sc.mutation.SetUpdatedAt(v) + _c.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (sc *SubscriptionCreate) check() error { - if _, ok := sc.mutation.ProviderSubscriptionID(); !ok { +func (_c *SubscriptionCreate) check() error { + if _, ok := _c.mutation.ProviderSubscriptionID(); !ok { return &ValidationError{Name: "provider_subscription_id", err: errors.New(`ent: missing required field "Subscription.provider_subscription_id"`)} } - if v, ok := sc.mutation.ProviderSubscriptionID(); ok { + if v, ok := _c.mutation.ProviderSubscriptionID(); ok { if err := subscription.ProviderSubscriptionIDValidator(v); err != nil { return &ValidationError{Name: "provider_subscription_id", err: fmt.Errorf(`ent: validator failed for field "Subscription.provider_subscription_id": %w`, err)} } } - if _, ok := sc.mutation.Provider(); !ok { + if _, ok := _c.mutation.Provider(); !ok { return &ValidationError{Name: "provider", err: errors.New(`ent: missing required field "Subscription.provider"`)} } - if v, ok := sc.mutation.Provider(); ok { + if v, ok := _c.mutation.Provider(); ok { if err := subscription.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "Subscription.provider": %w`, err)} } } - if _, ok := sc.mutation.Status(); !ok { + if _, ok := _c.mutation.Status(); !ok { return &ValidationError{Name: "status", err: errors.New(`ent: missing required field "Subscription.status"`)} } - if v, ok := sc.mutation.Status(); ok { + if v, ok := _c.mutation.Status(); ok { if err := subscription.StatusValidator(v); err != nil { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "Subscription.status": %w`, err)} } } - if _, ok := sc.mutation.PriceID(); !ok { + if _, ok := _c.mutation.PriceID(); !ok { return &ValidationError{Name: "price_id", err: errors.New(`ent: missing required field "Subscription.price_id"`)} } - if v, ok := sc.mutation.PriceID(); ok { + if v, ok := _c.mutation.PriceID(); ok { if err := subscription.PriceIDValidator(v); err != nil { return &ValidationError{Name: "price_id", err: fmt.Errorf(`ent: validator failed for field "Subscription.price_id": %w`, err)} } } - if _, ok := sc.mutation.Amount(); !ok { + if _, ok := _c.mutation.Amount(); !ok { return &ValidationError{Name: "amount", err: errors.New(`ent: missing required field "Subscription.amount"`)} } - if v, ok := sc.mutation.Amount(); ok { + if v, ok := _c.mutation.Amount(); ok { if err := subscription.AmountValidator(v); err != nil { return &ValidationError{Name: "amount", err: fmt.Errorf(`ent: validator failed for field "Subscription.amount": %w`, err)} } } - if _, ok := sc.mutation.Currency(); !ok { + if _, ok := _c.mutation.Currency(); !ok { return &ValidationError{Name: "currency", err: errors.New(`ent: missing required field "Subscription.currency"`)} } - if v, ok := sc.mutation.Currency(); ok { + if v, ok := _c.mutation.Currency(); ok { if err := subscription.CurrencyValidator(v); err != nil { return &ValidationError{Name: "currency", err: fmt.Errorf(`ent: validator failed for field "Subscription.currency": %w`, err)} } } - if _, ok := sc.mutation.Interval(); !ok { + if _, ok := _c.mutation.Interval(); !ok { return &ValidationError{Name: "interval", err: errors.New(`ent: missing required field "Subscription.interval"`)} } - if v, ok := sc.mutation.Interval(); ok { + if v, ok := _c.mutation.Interval(); ok { if err := subscription.IntervalValidator(v); err != nil { return &ValidationError{Name: "interval", err: fmt.Errorf(`ent: validator failed for field "Subscription.interval": %w`, err)} } } - if _, ok := sc.mutation.IntervalCount(); !ok { + if _, ok := _c.mutation.IntervalCount(); !ok { return &ValidationError{Name: "interval_count", err: errors.New(`ent: missing required field "Subscription.interval_count"`)} } - if v, ok := sc.mutation.IntervalCount(); ok { + if v, ok := _c.mutation.IntervalCount(); ok { if err := subscription.IntervalCountValidator(v); err != nil { return &ValidationError{Name: "interval_count", err: fmt.Errorf(`ent: validator failed for field "Subscription.interval_count": %w`, err)} } } - if _, ok := sc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "Subscription.created_at"`)} } - if _, ok := sc.mutation.UpdatedAt(); !ok { + if _, ok := _c.mutation.UpdatedAt(); !ok { return &ValidationError{Name: "updated_at", err: errors.New(`ent: missing required field "Subscription.updated_at"`)} } - if len(sc.mutation.CustomerIDs()) == 0 { + if len(_c.mutation.CustomerIDs()) == 0 { return &ValidationError{Name: "customer", err: errors.New(`ent: missing required edge "Subscription.customer"`)} } return nil } -func (sc *SubscriptionCreate) sqlSave(ctx context.Context) (*Subscription, error) { - if err := sc.check(); err != nil { +func (_c *SubscriptionCreate) sqlSave(ctx context.Context) (*Subscription, error) { + if err := _c.check(); err != nil { return nil, err } - _node, _spec := sc.createSpec() - if err := sqlgraph.CreateNode(ctx, sc.driver, _spec); err != nil { + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -382,85 +382,85 @@ func (sc *SubscriptionCreate) sqlSave(ctx context.Context) (*Subscription, error } id := _spec.ID.Value.(int64) _node.ID = int(id) - sc.mutation.id = &_node.ID - sc.mutation.done = true + _c.mutation.id = &_node.ID + _c.mutation.done = true return _node, nil } -func (sc *SubscriptionCreate) createSpec() (*Subscription, *sqlgraph.CreateSpec) { +func (_c *SubscriptionCreate) createSpec() (*Subscription, *sqlgraph.CreateSpec) { var ( - _node = &Subscription{config: sc.config} + _node = &Subscription{config: _c.config} _spec = sqlgraph.NewCreateSpec(subscription.Table, sqlgraph.NewFieldSpec(subscription.FieldID, field.TypeInt)) ) - if value, ok := sc.mutation.ProviderSubscriptionID(); ok { + if value, ok := _c.mutation.ProviderSubscriptionID(); ok { _spec.SetField(subscription.FieldProviderSubscriptionID, field.TypeString, value) _node.ProviderSubscriptionID = value } - if value, ok := sc.mutation.Provider(); ok { + if value, ok := _c.mutation.Provider(); ok { _spec.SetField(subscription.FieldProvider, field.TypeString, value) _node.Provider = value } - if value, ok := sc.mutation.Status(); ok { + if value, ok := _c.mutation.Status(); ok { _spec.SetField(subscription.FieldStatus, field.TypeEnum, value) _node.Status = value } - if value, ok := sc.mutation.PriceID(); ok { + if value, ok := _c.mutation.PriceID(); ok { _spec.SetField(subscription.FieldPriceID, field.TypeString, value) _node.PriceID = value } - if value, ok := sc.mutation.Amount(); ok { + if value, ok := _c.mutation.Amount(); ok { _spec.SetField(subscription.FieldAmount, field.TypeInt64, value) _node.Amount = value } - if value, ok := sc.mutation.Currency(); ok { + if value, ok := _c.mutation.Currency(); ok { _spec.SetField(subscription.FieldCurrency, field.TypeString, value) _node.Currency = value } - if value, ok := sc.mutation.Interval(); ok { + if value, ok := _c.mutation.Interval(); ok { _spec.SetField(subscription.FieldInterval, field.TypeEnum, value) _node.Interval = value } - if value, ok := sc.mutation.IntervalCount(); ok { + if value, ok := _c.mutation.IntervalCount(); ok { _spec.SetField(subscription.FieldIntervalCount, field.TypeInt, value) _node.IntervalCount = value } - if value, ok := sc.mutation.CurrentPeriodStart(); ok { + if value, ok := _c.mutation.CurrentPeriodStart(); ok { _spec.SetField(subscription.FieldCurrentPeriodStart, field.TypeTime, value) _node.CurrentPeriodStart = value } - if value, ok := sc.mutation.CurrentPeriodEnd(); ok { + if value, ok := _c.mutation.CurrentPeriodEnd(); ok { _spec.SetField(subscription.FieldCurrentPeriodEnd, field.TypeTime, value) _node.CurrentPeriodEnd = value } - if value, ok := sc.mutation.TrialStart(); ok { + if value, ok := _c.mutation.TrialStart(); ok { _spec.SetField(subscription.FieldTrialStart, field.TypeTime, value) _node.TrialStart = value } - if value, ok := sc.mutation.TrialEnd(); ok { + if value, ok := _c.mutation.TrialEnd(); ok { _spec.SetField(subscription.FieldTrialEnd, field.TypeTime, value) _node.TrialEnd = value } - if value, ok := sc.mutation.CanceledAt(); ok { + if value, ok := _c.mutation.CanceledAt(); ok { _spec.SetField(subscription.FieldCanceledAt, field.TypeTime, value) _node.CanceledAt = value } - if value, ok := sc.mutation.EndedAt(); ok { + if value, ok := _c.mutation.EndedAt(); ok { _spec.SetField(subscription.FieldEndedAt, field.TypeTime, value) _node.EndedAt = value } - if value, ok := sc.mutation.Metadata(); ok { + if value, ok := _c.mutation.Metadata(); ok { _spec.SetField(subscription.FieldMetadata, field.TypeJSON, value) _node.Metadata = value } - if value, ok := sc.mutation.CreatedAt(); ok { + if value, ok := _c.mutation.CreatedAt(); ok { _spec.SetField(subscription.FieldCreatedAt, field.TypeTime, value) _node.CreatedAt = value } - if value, ok := sc.mutation.UpdatedAt(); ok { + if value, ok := _c.mutation.UpdatedAt(); ok { _spec.SetField(subscription.FieldUpdatedAt, field.TypeTime, value) _node.UpdatedAt = value } - if nodes := sc.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _c.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -488,16 +488,16 @@ type SubscriptionCreateBulk struct { } // Save creates the Subscription entities in the database. -func (scb *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, error) { - if scb.err != nil { - return nil, scb.err - } - specs := make([]*sqlgraph.CreateSpec, len(scb.builders)) - nodes := make([]*Subscription, len(scb.builders)) - mutators := make([]Mutator, len(scb.builders)) - for i := range scb.builders { +func (_c *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*Subscription, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { func(i int, root context.Context) { - builder := scb.builders[i] + builder := _c.builders[i] builder.defaults() var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { mutation, ok := m.(*SubscriptionMutation) @@ -511,11 +511,11 @@ func (scb *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, e var err error nodes[i], specs[i] = builder.createSpec() if i < len(mutators)-1 { - _, err = mutators[i+1].Mutate(root, scb.builders[i+1].mutation) + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) } else { spec := &sqlgraph.BatchCreateSpec{Nodes: specs} // Invoke the actual operation on the latest mutation in the chain. - if err = sqlgraph.BatchCreate(ctx, scb.driver, spec); err != nil { + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -539,7 +539,7 @@ func (scb *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, e }(i, ctx) } if len(mutators) > 0 { - if _, err := mutators[0].Mutate(ctx, scb.builders[0].mutation); err != nil { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { return nil, err } } @@ -547,8 +547,8 @@ func (scb *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, e } // SaveX is like Save, but panics if an error occurs. -func (scb *SubscriptionCreateBulk) SaveX(ctx context.Context) []*Subscription { - v, err := scb.Save(ctx) +func (_c *SubscriptionCreateBulk) SaveX(ctx context.Context) []*Subscription { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -556,14 +556,14 @@ func (scb *SubscriptionCreateBulk) SaveX(ctx context.Context) []*Subscription { } // Exec executes the query. -func (scb *SubscriptionCreateBulk) Exec(ctx context.Context) error { - _, err := scb.Save(ctx) +func (_c *SubscriptionCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (scb *SubscriptionCreateBulk) ExecX(ctx context.Context) { - if err := scb.Exec(ctx); err != nil { +func (_c *SubscriptionCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/subscription_delete.go b/ent/subscription_delete.go index eec20aa..6e99e67 100644 --- a/ent/subscription_delete.go +++ b/ent/subscription_delete.go @@ -20,56 +20,56 @@ type SubscriptionDelete struct { } // Where appends a list predicates to the SubscriptionDelete builder. -func (sd *SubscriptionDelete) Where(ps ...predicate.Subscription) *SubscriptionDelete { - sd.mutation.Where(ps...) - return sd +func (_d *SubscriptionDelete) Where(ps ...predicate.Subscription) *SubscriptionDelete { + _d.mutation.Where(ps...) + return _d } // Exec executes the deletion query and returns how many vertices were deleted. -func (sd *SubscriptionDelete) Exec(ctx context.Context) (int, error) { - return withHooks(ctx, sd.sqlExec, sd.mutation, sd.hooks) +func (_d *SubscriptionDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) } // ExecX is like Exec, but panics if an error occurs. -func (sd *SubscriptionDelete) ExecX(ctx context.Context) int { - n, err := sd.Exec(ctx) +func (_d *SubscriptionDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) if err != nil { panic(err) } return n } -func (sd *SubscriptionDelete) sqlExec(ctx context.Context) (int, error) { +func (_d *SubscriptionDelete) sqlExec(ctx context.Context) (int, error) { _spec := sqlgraph.NewDeleteSpec(subscription.Table, sqlgraph.NewFieldSpec(subscription.FieldID, field.TypeInt)) - if ps := sd.mutation.predicates; len(ps) > 0 { + if ps := _d.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - affected, err := sqlgraph.DeleteNodes(ctx, sd.driver, _spec) + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) if err != nil && sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } - sd.mutation.done = true + _d.mutation.done = true return affected, err } // SubscriptionDeleteOne is the builder for deleting a single Subscription entity. type SubscriptionDeleteOne struct { - sd *SubscriptionDelete + _d *SubscriptionDelete } // Where appends a list predicates to the SubscriptionDelete builder. -func (sdo *SubscriptionDeleteOne) Where(ps ...predicate.Subscription) *SubscriptionDeleteOne { - sdo.sd.mutation.Where(ps...) - return sdo +func (_d *SubscriptionDeleteOne) Where(ps ...predicate.Subscription) *SubscriptionDeleteOne { + _d._d.mutation.Where(ps...) + return _d } // Exec executes the deletion query. -func (sdo *SubscriptionDeleteOne) Exec(ctx context.Context) error { - n, err := sdo.sd.Exec(ctx) +func (_d *SubscriptionDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) switch { case err != nil: return err @@ -81,8 +81,8 @@ func (sdo *SubscriptionDeleteOne) Exec(ctx context.Context) error { } // ExecX is like Exec, but panics if an error occurs. -func (sdo *SubscriptionDeleteOne) ExecX(ctx context.Context) { - if err := sdo.Exec(ctx); err != nil { +func (_d *SubscriptionDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/subscription_query.go b/ent/subscription_query.go index 6124c3a..3b6cb23 100644 --- a/ent/subscription_query.go +++ b/ent/subscription_query.go @@ -31,44 +31,44 @@ type SubscriptionQuery struct { } // Where adds a new predicate for the SubscriptionQuery builder. -func (sq *SubscriptionQuery) Where(ps ...predicate.Subscription) *SubscriptionQuery { - sq.predicates = append(sq.predicates, ps...) - return sq +func (_q *SubscriptionQuery) Where(ps ...predicate.Subscription) *SubscriptionQuery { + _q.predicates = append(_q.predicates, ps...) + return _q } // Limit the number of records to be returned by this query. -func (sq *SubscriptionQuery) Limit(limit int) *SubscriptionQuery { - sq.ctx.Limit = &limit - return sq +func (_q *SubscriptionQuery) Limit(limit int) *SubscriptionQuery { + _q.ctx.Limit = &limit + return _q } // Offset to start from. -func (sq *SubscriptionQuery) Offset(offset int) *SubscriptionQuery { - sq.ctx.Offset = &offset - return sq +func (_q *SubscriptionQuery) Offset(offset int) *SubscriptionQuery { + _q.ctx.Offset = &offset + return _q } // Unique configures the query builder to filter duplicate records on query. // By default, unique is set to true, and can be disabled using this method. -func (sq *SubscriptionQuery) Unique(unique bool) *SubscriptionQuery { - sq.ctx.Unique = &unique - return sq +func (_q *SubscriptionQuery) Unique(unique bool) *SubscriptionQuery { + _q.ctx.Unique = &unique + return _q } // Order specifies how the records should be ordered. -func (sq *SubscriptionQuery) Order(o ...subscription.OrderOption) *SubscriptionQuery { - sq.order = append(sq.order, o...) - return sq +func (_q *SubscriptionQuery) Order(o ...subscription.OrderOption) *SubscriptionQuery { + _q.order = append(_q.order, o...) + return _q } // QueryCustomer chains the current query on the "customer" edge. -func (sq *SubscriptionQuery) QueryCustomer() *PaymentCustomerQuery { - query := (&PaymentCustomerClient{config: sq.config}).Query() +func (_q *SubscriptionQuery) QueryCustomer() *PaymentCustomerQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := sq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := sq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -77,7 +77,7 @@ func (sq *SubscriptionQuery) QueryCustomer() *PaymentCustomerQuery { sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.M2O, true, subscription.CustomerTable, subscription.CustomerColumn), ) - fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query @@ -85,8 +85,8 @@ func (sq *SubscriptionQuery) QueryCustomer() *PaymentCustomerQuery { // First returns the first Subscription entity from the query. // Returns a *NotFoundError when no Subscription was found. -func (sq *SubscriptionQuery) First(ctx context.Context) (*Subscription, error) { - nodes, err := sq.Limit(1).All(setContextOp(ctx, sq.ctx, ent.OpQueryFirst)) +func (_q *SubscriptionQuery) First(ctx context.Context) (*Subscription, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) if err != nil { return nil, err } @@ -97,8 +97,8 @@ func (sq *SubscriptionQuery) First(ctx context.Context) (*Subscription, error) { } // FirstX is like First, but panics if an error occurs. -func (sq *SubscriptionQuery) FirstX(ctx context.Context) *Subscription { - node, err := sq.First(ctx) +func (_q *SubscriptionQuery) FirstX(ctx context.Context) *Subscription { + node, err := _q.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -107,9 +107,9 @@ func (sq *SubscriptionQuery) FirstX(ctx context.Context) *Subscription { // FirstID returns the first Subscription ID from the query. // Returns a *NotFoundError when no Subscription ID was found. -func (sq *SubscriptionQuery) FirstID(ctx context.Context) (id int, err error) { +func (_q *SubscriptionQuery) FirstID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = sq.Limit(1).IDs(setContextOp(ctx, sq.ctx, ent.OpQueryFirstID)); err != nil { + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { return } if len(ids) == 0 { @@ -120,8 +120,8 @@ func (sq *SubscriptionQuery) FirstID(ctx context.Context) (id int, err error) { } // FirstIDX is like FirstID, but panics if an error occurs. -func (sq *SubscriptionQuery) FirstIDX(ctx context.Context) int { - id, err := sq.FirstID(ctx) +func (_q *SubscriptionQuery) FirstIDX(ctx context.Context) int { + id, err := _q.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -131,8 +131,8 @@ func (sq *SubscriptionQuery) FirstIDX(ctx context.Context) int { // Only returns a single Subscription entity found by the query, ensuring it only returns one. // Returns a *NotSingularError when more than one Subscription entity is found. // Returns a *NotFoundError when no Subscription entities are found. -func (sq *SubscriptionQuery) Only(ctx context.Context) (*Subscription, error) { - nodes, err := sq.Limit(2).All(setContextOp(ctx, sq.ctx, ent.OpQueryOnly)) +func (_q *SubscriptionQuery) Only(ctx context.Context) (*Subscription, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) if err != nil { return nil, err } @@ -147,8 +147,8 @@ func (sq *SubscriptionQuery) Only(ctx context.Context) (*Subscription, error) { } // OnlyX is like Only, but panics if an error occurs. -func (sq *SubscriptionQuery) OnlyX(ctx context.Context) *Subscription { - node, err := sq.Only(ctx) +func (_q *SubscriptionQuery) OnlyX(ctx context.Context) *Subscription { + node, err := _q.Only(ctx) if err != nil { panic(err) } @@ -158,9 +158,9 @@ func (sq *SubscriptionQuery) OnlyX(ctx context.Context) *Subscription { // OnlyID is like Only, but returns the only Subscription ID in the query. // Returns a *NotSingularError when more than one Subscription ID is found. // Returns a *NotFoundError when no entities are found. -func (sq *SubscriptionQuery) OnlyID(ctx context.Context) (id int, err error) { +func (_q *SubscriptionQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = sq.Limit(2).IDs(setContextOp(ctx, sq.ctx, ent.OpQueryOnlyID)); err != nil { + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { return } switch len(ids) { @@ -175,8 +175,8 @@ func (sq *SubscriptionQuery) OnlyID(ctx context.Context) (id int, err error) { } // OnlyIDX is like OnlyID, but panics if an error occurs. -func (sq *SubscriptionQuery) OnlyIDX(ctx context.Context) int { - id, err := sq.OnlyID(ctx) +func (_q *SubscriptionQuery) OnlyIDX(ctx context.Context) int { + id, err := _q.OnlyID(ctx) if err != nil { panic(err) } @@ -184,18 +184,18 @@ func (sq *SubscriptionQuery) OnlyIDX(ctx context.Context) int { } // All executes the query and returns a list of Subscriptions. -func (sq *SubscriptionQuery) All(ctx context.Context) ([]*Subscription, error) { - ctx = setContextOp(ctx, sq.ctx, ent.OpQueryAll) - if err := sq.prepareQuery(ctx); err != nil { +func (_q *SubscriptionQuery) All(ctx context.Context) ([]*Subscription, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { return nil, err } qr := querierAll[[]*Subscription, *SubscriptionQuery]() - return withInterceptors[[]*Subscription](ctx, sq, qr, sq.inters) + return withInterceptors[[]*Subscription](ctx, _q, qr, _q.inters) } // AllX is like All, but panics if an error occurs. -func (sq *SubscriptionQuery) AllX(ctx context.Context) []*Subscription { - nodes, err := sq.All(ctx) +func (_q *SubscriptionQuery) AllX(ctx context.Context) []*Subscription { + nodes, err := _q.All(ctx) if err != nil { panic(err) } @@ -203,20 +203,20 @@ func (sq *SubscriptionQuery) AllX(ctx context.Context) []*Subscription { } // IDs executes the query and returns a list of Subscription IDs. -func (sq *SubscriptionQuery) IDs(ctx context.Context) (ids []int, err error) { - if sq.ctx.Unique == nil && sq.path != nil { - sq.Unique(true) +func (_q *SubscriptionQuery) IDs(ctx context.Context) (ids []int, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) } - ctx = setContextOp(ctx, sq.ctx, ent.OpQueryIDs) - if err = sq.Select(subscription.FieldID).Scan(ctx, &ids); err != nil { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(subscription.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil } // IDsX is like IDs, but panics if an error occurs. -func (sq *SubscriptionQuery) IDsX(ctx context.Context) []int { - ids, err := sq.IDs(ctx) +func (_q *SubscriptionQuery) IDsX(ctx context.Context) []int { + ids, err := _q.IDs(ctx) if err != nil { panic(err) } @@ -224,17 +224,17 @@ func (sq *SubscriptionQuery) IDsX(ctx context.Context) []int { } // Count returns the count of the given query. -func (sq *SubscriptionQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, sq.ctx, ent.OpQueryCount) - if err := sq.prepareQuery(ctx); err != nil { +func (_q *SubscriptionQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { return 0, err } - return withInterceptors[int](ctx, sq, querierCount[*SubscriptionQuery](), sq.inters) + return withInterceptors[int](ctx, _q, querierCount[*SubscriptionQuery](), _q.inters) } // CountX is like Count, but panics if an error occurs. -func (sq *SubscriptionQuery) CountX(ctx context.Context) int { - count, err := sq.Count(ctx) +func (_q *SubscriptionQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) if err != nil { panic(err) } @@ -242,9 +242,9 @@ func (sq *SubscriptionQuery) CountX(ctx context.Context) int { } // Exist returns true if the query has elements in the graph. -func (sq *SubscriptionQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, sq.ctx, ent.OpQueryExist) - switch _, err := sq.FirstID(ctx); { +func (_q *SubscriptionQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { case IsNotFound(err): return false, nil case err != nil: @@ -255,8 +255,8 @@ func (sq *SubscriptionQuery) Exist(ctx context.Context) (bool, error) { } // ExistX is like Exist, but panics if an error occurs. -func (sq *SubscriptionQuery) ExistX(ctx context.Context) bool { - exist, err := sq.Exist(ctx) +func (_q *SubscriptionQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) if err != nil { panic(err) } @@ -265,32 +265,32 @@ func (sq *SubscriptionQuery) ExistX(ctx context.Context) bool { // Clone returns a duplicate of the SubscriptionQuery builder, including all associated steps. It can be // used to prepare common query builders and use them differently after the clone is made. -func (sq *SubscriptionQuery) Clone() *SubscriptionQuery { - if sq == nil { +func (_q *SubscriptionQuery) Clone() *SubscriptionQuery { + if _q == nil { return nil } return &SubscriptionQuery{ - config: sq.config, - ctx: sq.ctx.Clone(), - order: append([]subscription.OrderOption{}, sq.order...), - inters: append([]Interceptor{}, sq.inters...), - predicates: append([]predicate.Subscription{}, sq.predicates...), - withCustomer: sq.withCustomer.Clone(), + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]subscription.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.Subscription{}, _q.predicates...), + withCustomer: _q.withCustomer.Clone(), // clone intermediate query. - sql: sq.sql.Clone(), - path: sq.path, + sql: _q.sql.Clone(), + path: _q.path, } } // WithCustomer tells the query-builder to eager-load the nodes that are connected to // the "customer" edge. The optional arguments are used to configure the query builder of the edge. -func (sq *SubscriptionQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) *SubscriptionQuery { - query := (&PaymentCustomerClient{config: sq.config}).Query() +func (_q *SubscriptionQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) *SubscriptionQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - sq.withCustomer = query - return sq + _q.withCustomer = query + return _q } // GroupBy is used to group vertices by one or more fields/columns. @@ -307,10 +307,10 @@ func (sq *SubscriptionQuery) WithCustomer(opts ...func(*PaymentCustomerQuery)) * // GroupBy(subscription.FieldProviderSubscriptionID). // Aggregate(ent.Count()). // Scan(ctx, &v) -func (sq *SubscriptionQuery) GroupBy(field string, fields ...string) *SubscriptionGroupBy { - sq.ctx.Fields = append([]string{field}, fields...) - grbuild := &SubscriptionGroupBy{build: sq} - grbuild.flds = &sq.ctx.Fields +func (_q *SubscriptionQuery) GroupBy(field string, fields ...string) *SubscriptionGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &SubscriptionGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields grbuild.label = subscription.Label grbuild.scan = grbuild.Scan return grbuild @@ -328,55 +328,55 @@ func (sq *SubscriptionQuery) GroupBy(field string, fields ...string) *Subscripti // client.Subscription.Query(). // Select(subscription.FieldProviderSubscriptionID). // Scan(ctx, &v) -func (sq *SubscriptionQuery) Select(fields ...string) *SubscriptionSelect { - sq.ctx.Fields = append(sq.ctx.Fields, fields...) - sbuild := &SubscriptionSelect{SubscriptionQuery: sq} +func (_q *SubscriptionQuery) Select(fields ...string) *SubscriptionSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &SubscriptionSelect{SubscriptionQuery: _q} sbuild.label = subscription.Label - sbuild.flds, sbuild.scan = &sq.ctx.Fields, sbuild.Scan + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan return sbuild } // Aggregate returns a SubscriptionSelect configured with the given aggregations. -func (sq *SubscriptionQuery) Aggregate(fns ...AggregateFunc) *SubscriptionSelect { - return sq.Select().Aggregate(fns...) +func (_q *SubscriptionQuery) Aggregate(fns ...AggregateFunc) *SubscriptionSelect { + return _q.Select().Aggregate(fns...) } -func (sq *SubscriptionQuery) prepareQuery(ctx context.Context) error { - for _, inter := range sq.inters { +func (_q *SubscriptionQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { if inter == nil { return fmt.Errorf("ent: uninitialized interceptor (forgotten import ent/runtime?)") } if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, sq); err != nil { + if err := trv.Traverse(ctx, _q); err != nil { return err } } } - for _, f := range sq.ctx.Fields { + for _, f := range _q.ctx.Fields { if !subscription.ValidColumn(f) { return &ValidationError{Name: f, err: fmt.Errorf("ent: invalid field %q for query", f)} } } - if sq.path != nil { - prev, err := sq.path(ctx) + if _q.path != nil { + prev, err := _q.path(ctx) if err != nil { return err } - sq.sql = prev + _q.sql = prev } return nil } -func (sq *SubscriptionQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Subscription, error) { +func (_q *SubscriptionQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Subscription, error) { var ( nodes = []*Subscription{} - withFKs = sq.withFKs - _spec = sq.querySpec() + withFKs = _q.withFKs + _spec = _q.querySpec() loadedTypes = [1]bool{ - sq.withCustomer != nil, + _q.withCustomer != nil, } ) - if sq.withCustomer != nil { + if _q.withCustomer != nil { withFKs = true } if withFKs { @@ -386,7 +386,7 @@ func (sq *SubscriptionQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] return (*Subscription).scanValues(nil, columns) } _spec.Assign = func(columns []string, values []any) error { - node := &Subscription{config: sq.config} + node := &Subscription{config: _q.config} nodes = append(nodes, node) node.Edges.loadedTypes = loadedTypes return node.assignValues(columns, values) @@ -394,14 +394,14 @@ func (sq *SubscriptionQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] for i := range hooks { hooks[i](ctx, _spec) } - if err := sqlgraph.QueryNodes(ctx, sq.driver, _spec); err != nil { + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { return nil, err } if len(nodes) == 0 { return nodes, nil } - if query := sq.withCustomer; query != nil { - if err := sq.loadCustomer(ctx, query, nodes, nil, + if query := _q.withCustomer; query != nil { + if err := _q.loadCustomer(ctx, query, nodes, nil, func(n *Subscription, e *PaymentCustomer) { n.Edges.Customer = e }); err != nil { return nil, err } @@ -409,7 +409,7 @@ func (sq *SubscriptionQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] return nodes, nil } -func (sq *SubscriptionQuery) loadCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*Subscription, init func(*Subscription), assign func(*Subscription, *PaymentCustomer)) error { +func (_q *SubscriptionQuery) loadCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*Subscription, init func(*Subscription), assign func(*Subscription, *PaymentCustomer)) error { ids := make([]int, 0, len(nodes)) nodeids := make(map[int][]*Subscription) for i := range nodes { @@ -442,24 +442,24 @@ func (sq *SubscriptionQuery) loadCustomer(ctx context.Context, query *PaymentCus return nil } -func (sq *SubscriptionQuery) sqlCount(ctx context.Context) (int, error) { - _spec := sq.querySpec() - _spec.Node.Columns = sq.ctx.Fields - if len(sq.ctx.Fields) > 0 { - _spec.Unique = sq.ctx.Unique != nil && *sq.ctx.Unique +func (_q *SubscriptionQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique } - return sqlgraph.CountNodes(ctx, sq.driver, _spec) + return sqlgraph.CountNodes(ctx, _q.driver, _spec) } -func (sq *SubscriptionQuery) querySpec() *sqlgraph.QuerySpec { +func (_q *SubscriptionQuery) querySpec() *sqlgraph.QuerySpec { _spec := sqlgraph.NewQuerySpec(subscription.Table, subscription.Columns, sqlgraph.NewFieldSpec(subscription.FieldID, field.TypeInt)) - _spec.From = sq.sql - if unique := sq.ctx.Unique; unique != nil { + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { _spec.Unique = *unique - } else if sq.path != nil { + } else if _q.path != nil { _spec.Unique = true } - if fields := sq.ctx.Fields; len(fields) > 0 { + if fields := _q.ctx.Fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, subscription.FieldID) for i := range fields { @@ -468,20 +468,20 @@ func (sq *SubscriptionQuery) querySpec() *sqlgraph.QuerySpec { } } } - if ps := sq.predicates; len(ps) > 0 { + if ps := _q.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if limit := sq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { _spec.Limit = *limit } - if offset := sq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { _spec.Offset = *offset } - if ps := sq.order; len(ps) > 0 { + if ps := _q.order; len(ps) > 0 { _spec.Order = func(selector *sql.Selector) { for i := range ps { ps[i](selector) @@ -491,33 +491,33 @@ func (sq *SubscriptionQuery) querySpec() *sqlgraph.QuerySpec { return _spec } -func (sq *SubscriptionQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(sq.driver.Dialect()) +func (_q *SubscriptionQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) t1 := builder.Table(subscription.Table) - columns := sq.ctx.Fields + columns := _q.ctx.Fields if len(columns) == 0 { columns = subscription.Columns } selector := builder.Select(t1.Columns(columns...)...).From(t1) - if sq.sql != nil { - selector = sq.sql + if _q.sql != nil { + selector = _q.sql selector.Select(selector.Columns(columns...)...) } - if sq.ctx.Unique != nil && *sq.ctx.Unique { + if _q.ctx.Unique != nil && *_q.ctx.Unique { selector.Distinct() } - for _, p := range sq.predicates { + for _, p := range _q.predicates { p(selector) } - for _, p := range sq.order { + for _, p := range _q.order { p(selector) } - if offset := sq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. selector.Offset(*offset).Limit(math.MaxInt32) } - if limit := sq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { selector.Limit(*limit) } return selector @@ -530,41 +530,41 @@ type SubscriptionGroupBy struct { } // Aggregate adds the given aggregation functions to the group-by query. -func (sgb *SubscriptionGroupBy) Aggregate(fns ...AggregateFunc) *SubscriptionGroupBy { - sgb.fns = append(sgb.fns, fns...) - return sgb +func (_g *SubscriptionGroupBy) Aggregate(fns ...AggregateFunc) *SubscriptionGroupBy { + _g.fns = append(_g.fns, fns...) + return _g } // Scan applies the selector query and scans the result into the given value. -func (sgb *SubscriptionGroupBy) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, sgb.build.ctx, ent.OpQueryGroupBy) - if err := sgb.build.prepareQuery(ctx); err != nil { +func (_g *SubscriptionGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*SubscriptionQuery, *SubscriptionGroupBy](ctx, sgb.build, sgb, sgb.build.inters, v) + return scanWithInterceptors[*SubscriptionQuery, *SubscriptionGroupBy](ctx, _g.build, _g, _g.build.inters, v) } -func (sgb *SubscriptionGroupBy) sqlScan(ctx context.Context, root *SubscriptionQuery, v any) error { +func (_g *SubscriptionGroupBy) sqlScan(ctx context.Context, root *SubscriptionQuery, v any) error { selector := root.sqlQuery(ctx).Select() - aggregation := make([]string, 0, len(sgb.fns)) - for _, fn := range sgb.fns { + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { aggregation = append(aggregation, fn(selector)) } if len(selector.SelectedColumns()) == 0 { - columns := make([]string, 0, len(*sgb.flds)+len(sgb.fns)) - for _, f := range *sgb.flds { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { columns = append(columns, selector.C(f)) } columns = append(columns, aggregation...) selector.Select(columns...) } - selector.GroupBy(selector.Columns(*sgb.flds...)...) + selector.GroupBy(selector.Columns(*_g.flds...)...) if err := selector.Err(); err != nil { return err } rows := &sql.Rows{} query, args := selector.Query() - if err := sgb.build.driver.Query(ctx, query, args, rows); err != nil { + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() @@ -578,27 +578,27 @@ type SubscriptionSelect struct { } // Aggregate adds the given aggregation functions to the selector query. -func (ss *SubscriptionSelect) Aggregate(fns ...AggregateFunc) *SubscriptionSelect { - ss.fns = append(ss.fns, fns...) - return ss +func (_s *SubscriptionSelect) Aggregate(fns ...AggregateFunc) *SubscriptionSelect { + _s.fns = append(_s.fns, fns...) + return _s } // Scan applies the selector query and scans the result into the given value. -func (ss *SubscriptionSelect) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, ss.ctx, ent.OpQuerySelect) - if err := ss.prepareQuery(ctx); err != nil { +func (_s *SubscriptionSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*SubscriptionQuery, *SubscriptionSelect](ctx, ss.SubscriptionQuery, ss, ss.inters, v) + return scanWithInterceptors[*SubscriptionQuery, *SubscriptionSelect](ctx, _s.SubscriptionQuery, _s, _s.inters, v) } -func (ss *SubscriptionSelect) sqlScan(ctx context.Context, root *SubscriptionQuery, v any) error { +func (_s *SubscriptionSelect) sqlScan(ctx context.Context, root *SubscriptionQuery, v any) error { selector := root.sqlQuery(ctx) - aggregation := make([]string, 0, len(ss.fns)) - for _, fn := range ss.fns { + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { aggregation = append(aggregation, fn(selector)) } - switch n := len(*ss.selector.flds); { + switch n := len(*_s.selector.flds); { case n == 0 && len(aggregation) > 0: selector.Select(aggregation...) case n != 0 && len(aggregation) > 0: @@ -606,7 +606,7 @@ func (ss *SubscriptionSelect) sqlScan(ctx context.Context, root *SubscriptionQue } rows := &sql.Rows{} query, args := selector.Query() - if err := ss.driver.Query(ctx, query, args, rows); err != nil { + if err := _s.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() diff --git a/ent/subscription_update.go b/ent/subscription_update.go index e02d508..0d1e8f3 100644 --- a/ent/subscription_update.go +++ b/ent/subscription_update.go @@ -24,306 +24,306 @@ type SubscriptionUpdate struct { } // Where appends a list predicates to the SubscriptionUpdate builder. -func (su *SubscriptionUpdate) Where(ps ...predicate.Subscription) *SubscriptionUpdate { - su.mutation.Where(ps...) - return su +func (_u *SubscriptionUpdate) Where(ps ...predicate.Subscription) *SubscriptionUpdate { + _u.mutation.Where(ps...) + return _u } // SetProviderSubscriptionID sets the "provider_subscription_id" field. -func (su *SubscriptionUpdate) SetProviderSubscriptionID(s string) *SubscriptionUpdate { - su.mutation.SetProviderSubscriptionID(s) - return su +func (_u *SubscriptionUpdate) SetProviderSubscriptionID(v string) *SubscriptionUpdate { + _u.mutation.SetProviderSubscriptionID(v) + return _u } // SetNillableProviderSubscriptionID sets the "provider_subscription_id" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableProviderSubscriptionID(s *string) *SubscriptionUpdate { - if s != nil { - su.SetProviderSubscriptionID(*s) +func (_u *SubscriptionUpdate) SetNillableProviderSubscriptionID(v *string) *SubscriptionUpdate { + if v != nil { + _u.SetProviderSubscriptionID(*v) } - return su + return _u } // SetProvider sets the "provider" field. -func (su *SubscriptionUpdate) SetProvider(s string) *SubscriptionUpdate { - su.mutation.SetProvider(s) - return su +func (_u *SubscriptionUpdate) SetProvider(v string) *SubscriptionUpdate { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableProvider(s *string) *SubscriptionUpdate { - if s != nil { - su.SetProvider(*s) +func (_u *SubscriptionUpdate) SetNillableProvider(v *string) *SubscriptionUpdate { + if v != nil { + _u.SetProvider(*v) } - return su + return _u } // SetStatus sets the "status" field. -func (su *SubscriptionUpdate) SetStatus(s subscription.Status) *SubscriptionUpdate { - su.mutation.SetStatus(s) - return su +func (_u *SubscriptionUpdate) SetStatus(v subscription.Status) *SubscriptionUpdate { + _u.mutation.SetStatus(v) + return _u } // SetNillableStatus sets the "status" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableStatus(s *subscription.Status) *SubscriptionUpdate { - if s != nil { - su.SetStatus(*s) +func (_u *SubscriptionUpdate) SetNillableStatus(v *subscription.Status) *SubscriptionUpdate { + if v != nil { + _u.SetStatus(*v) } - return su + return _u } // SetPriceID sets the "price_id" field. -func (su *SubscriptionUpdate) SetPriceID(s string) *SubscriptionUpdate { - su.mutation.SetPriceID(s) - return su +func (_u *SubscriptionUpdate) SetPriceID(v string) *SubscriptionUpdate { + _u.mutation.SetPriceID(v) + return _u } // SetNillablePriceID sets the "price_id" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillablePriceID(s *string) *SubscriptionUpdate { - if s != nil { - su.SetPriceID(*s) +func (_u *SubscriptionUpdate) SetNillablePriceID(v *string) *SubscriptionUpdate { + if v != nil { + _u.SetPriceID(*v) } - return su + return _u } // SetAmount sets the "amount" field. -func (su *SubscriptionUpdate) SetAmount(i int64) *SubscriptionUpdate { - su.mutation.ResetAmount() - su.mutation.SetAmount(i) - return su +func (_u *SubscriptionUpdate) SetAmount(v int64) *SubscriptionUpdate { + _u.mutation.ResetAmount() + _u.mutation.SetAmount(v) + return _u } // SetNillableAmount sets the "amount" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableAmount(i *int64) *SubscriptionUpdate { - if i != nil { - su.SetAmount(*i) +func (_u *SubscriptionUpdate) SetNillableAmount(v *int64) *SubscriptionUpdate { + if v != nil { + _u.SetAmount(*v) } - return su + return _u } -// AddAmount adds i to the "amount" field. -func (su *SubscriptionUpdate) AddAmount(i int64) *SubscriptionUpdate { - su.mutation.AddAmount(i) - return su +// AddAmount adds value to the "amount" field. +func (_u *SubscriptionUpdate) AddAmount(v int64) *SubscriptionUpdate { + _u.mutation.AddAmount(v) + return _u } // SetCurrency sets the "currency" field. -func (su *SubscriptionUpdate) SetCurrency(s string) *SubscriptionUpdate { - su.mutation.SetCurrency(s) - return su +func (_u *SubscriptionUpdate) SetCurrency(v string) *SubscriptionUpdate { + _u.mutation.SetCurrency(v) + return _u } // SetNillableCurrency sets the "currency" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableCurrency(s *string) *SubscriptionUpdate { - if s != nil { - su.SetCurrency(*s) +func (_u *SubscriptionUpdate) SetNillableCurrency(v *string) *SubscriptionUpdate { + if v != nil { + _u.SetCurrency(*v) } - return su + return _u } // SetInterval sets the "interval" field. -func (su *SubscriptionUpdate) SetInterval(s subscription.Interval) *SubscriptionUpdate { - su.mutation.SetInterval(s) - return su +func (_u *SubscriptionUpdate) SetInterval(v subscription.Interval) *SubscriptionUpdate { + _u.mutation.SetInterval(v) + return _u } // SetNillableInterval sets the "interval" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableInterval(s *subscription.Interval) *SubscriptionUpdate { - if s != nil { - su.SetInterval(*s) +func (_u *SubscriptionUpdate) SetNillableInterval(v *subscription.Interval) *SubscriptionUpdate { + if v != nil { + _u.SetInterval(*v) } - return su + return _u } // SetIntervalCount sets the "interval_count" field. -func (su *SubscriptionUpdate) SetIntervalCount(i int) *SubscriptionUpdate { - su.mutation.ResetIntervalCount() - su.mutation.SetIntervalCount(i) - return su +func (_u *SubscriptionUpdate) SetIntervalCount(v int) *SubscriptionUpdate { + _u.mutation.ResetIntervalCount() + _u.mutation.SetIntervalCount(v) + return _u } // SetNillableIntervalCount sets the "interval_count" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableIntervalCount(i *int) *SubscriptionUpdate { - if i != nil { - su.SetIntervalCount(*i) +func (_u *SubscriptionUpdate) SetNillableIntervalCount(v *int) *SubscriptionUpdate { + if v != nil { + _u.SetIntervalCount(*v) } - return su + return _u } -// AddIntervalCount adds i to the "interval_count" field. -func (su *SubscriptionUpdate) AddIntervalCount(i int) *SubscriptionUpdate { - su.mutation.AddIntervalCount(i) - return su +// AddIntervalCount adds value to the "interval_count" field. +func (_u *SubscriptionUpdate) AddIntervalCount(v int) *SubscriptionUpdate { + _u.mutation.AddIntervalCount(v) + return _u } // SetCurrentPeriodStart sets the "current_period_start" field. -func (su *SubscriptionUpdate) SetCurrentPeriodStart(t time.Time) *SubscriptionUpdate { - su.mutation.SetCurrentPeriodStart(t) - return su +func (_u *SubscriptionUpdate) SetCurrentPeriodStart(v time.Time) *SubscriptionUpdate { + _u.mutation.SetCurrentPeriodStart(v) + return _u } // SetNillableCurrentPeriodStart sets the "current_period_start" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableCurrentPeriodStart(t *time.Time) *SubscriptionUpdate { - if t != nil { - su.SetCurrentPeriodStart(*t) +func (_u *SubscriptionUpdate) SetNillableCurrentPeriodStart(v *time.Time) *SubscriptionUpdate { + if v != nil { + _u.SetCurrentPeriodStart(*v) } - return su + return _u } // ClearCurrentPeriodStart clears the value of the "current_period_start" field. -func (su *SubscriptionUpdate) ClearCurrentPeriodStart() *SubscriptionUpdate { - su.mutation.ClearCurrentPeriodStart() - return su +func (_u *SubscriptionUpdate) ClearCurrentPeriodStart() *SubscriptionUpdate { + _u.mutation.ClearCurrentPeriodStart() + return _u } // SetCurrentPeriodEnd sets the "current_period_end" field. -func (su *SubscriptionUpdate) SetCurrentPeriodEnd(t time.Time) *SubscriptionUpdate { - su.mutation.SetCurrentPeriodEnd(t) - return su +func (_u *SubscriptionUpdate) SetCurrentPeriodEnd(v time.Time) *SubscriptionUpdate { + _u.mutation.SetCurrentPeriodEnd(v) + return _u } // SetNillableCurrentPeriodEnd sets the "current_period_end" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableCurrentPeriodEnd(t *time.Time) *SubscriptionUpdate { - if t != nil { - su.SetCurrentPeriodEnd(*t) +func (_u *SubscriptionUpdate) SetNillableCurrentPeriodEnd(v *time.Time) *SubscriptionUpdate { + if v != nil { + _u.SetCurrentPeriodEnd(*v) } - return su + return _u } // ClearCurrentPeriodEnd clears the value of the "current_period_end" field. -func (su *SubscriptionUpdate) ClearCurrentPeriodEnd() *SubscriptionUpdate { - su.mutation.ClearCurrentPeriodEnd() - return su +func (_u *SubscriptionUpdate) ClearCurrentPeriodEnd() *SubscriptionUpdate { + _u.mutation.ClearCurrentPeriodEnd() + return _u } // SetTrialStart sets the "trial_start" field. -func (su *SubscriptionUpdate) SetTrialStart(t time.Time) *SubscriptionUpdate { - su.mutation.SetTrialStart(t) - return su +func (_u *SubscriptionUpdate) SetTrialStart(v time.Time) *SubscriptionUpdate { + _u.mutation.SetTrialStart(v) + return _u } // SetNillableTrialStart sets the "trial_start" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableTrialStart(t *time.Time) *SubscriptionUpdate { - if t != nil { - su.SetTrialStart(*t) +func (_u *SubscriptionUpdate) SetNillableTrialStart(v *time.Time) *SubscriptionUpdate { + if v != nil { + _u.SetTrialStart(*v) } - return su + return _u } // ClearTrialStart clears the value of the "trial_start" field. -func (su *SubscriptionUpdate) ClearTrialStart() *SubscriptionUpdate { - su.mutation.ClearTrialStart() - return su +func (_u *SubscriptionUpdate) ClearTrialStart() *SubscriptionUpdate { + _u.mutation.ClearTrialStart() + return _u } // SetTrialEnd sets the "trial_end" field. -func (su *SubscriptionUpdate) SetTrialEnd(t time.Time) *SubscriptionUpdate { - su.mutation.SetTrialEnd(t) - return su +func (_u *SubscriptionUpdate) SetTrialEnd(v time.Time) *SubscriptionUpdate { + _u.mutation.SetTrialEnd(v) + return _u } // SetNillableTrialEnd sets the "trial_end" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableTrialEnd(t *time.Time) *SubscriptionUpdate { - if t != nil { - su.SetTrialEnd(*t) +func (_u *SubscriptionUpdate) SetNillableTrialEnd(v *time.Time) *SubscriptionUpdate { + if v != nil { + _u.SetTrialEnd(*v) } - return su + return _u } // ClearTrialEnd clears the value of the "trial_end" field. -func (su *SubscriptionUpdate) ClearTrialEnd() *SubscriptionUpdate { - su.mutation.ClearTrialEnd() - return su +func (_u *SubscriptionUpdate) ClearTrialEnd() *SubscriptionUpdate { + _u.mutation.ClearTrialEnd() + return _u } // SetCanceledAt sets the "canceled_at" field. -func (su *SubscriptionUpdate) SetCanceledAt(t time.Time) *SubscriptionUpdate { - su.mutation.SetCanceledAt(t) - return su +func (_u *SubscriptionUpdate) SetCanceledAt(v time.Time) *SubscriptionUpdate { + _u.mutation.SetCanceledAt(v) + return _u } // SetNillableCanceledAt sets the "canceled_at" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableCanceledAt(t *time.Time) *SubscriptionUpdate { - if t != nil { - su.SetCanceledAt(*t) +func (_u *SubscriptionUpdate) SetNillableCanceledAt(v *time.Time) *SubscriptionUpdate { + if v != nil { + _u.SetCanceledAt(*v) } - return su + return _u } // ClearCanceledAt clears the value of the "canceled_at" field. -func (su *SubscriptionUpdate) ClearCanceledAt() *SubscriptionUpdate { - su.mutation.ClearCanceledAt() - return su +func (_u *SubscriptionUpdate) ClearCanceledAt() *SubscriptionUpdate { + _u.mutation.ClearCanceledAt() + return _u } // SetEndedAt sets the "ended_at" field. -func (su *SubscriptionUpdate) SetEndedAt(t time.Time) *SubscriptionUpdate { - su.mutation.SetEndedAt(t) - return su +func (_u *SubscriptionUpdate) SetEndedAt(v time.Time) *SubscriptionUpdate { + _u.mutation.SetEndedAt(v) + return _u } // SetNillableEndedAt sets the "ended_at" field if the given value is not nil. -func (su *SubscriptionUpdate) SetNillableEndedAt(t *time.Time) *SubscriptionUpdate { - if t != nil { - su.SetEndedAt(*t) +func (_u *SubscriptionUpdate) SetNillableEndedAt(v *time.Time) *SubscriptionUpdate { + if v != nil { + _u.SetEndedAt(*v) } - return su + return _u } // ClearEndedAt clears the value of the "ended_at" field. -func (su *SubscriptionUpdate) ClearEndedAt() *SubscriptionUpdate { - su.mutation.ClearEndedAt() - return su +func (_u *SubscriptionUpdate) ClearEndedAt() *SubscriptionUpdate { + _u.mutation.ClearEndedAt() + return _u } // SetMetadata sets the "metadata" field. -func (su *SubscriptionUpdate) SetMetadata(m map[string]interface{}) *SubscriptionUpdate { - su.mutation.SetMetadata(m) - return su +func (_u *SubscriptionUpdate) SetMetadata(v map[string]interface{}) *SubscriptionUpdate { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (su *SubscriptionUpdate) ClearMetadata() *SubscriptionUpdate { - su.mutation.ClearMetadata() - return su +func (_u *SubscriptionUpdate) ClearMetadata() *SubscriptionUpdate { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (su *SubscriptionUpdate) SetUpdatedAt(t time.Time) *SubscriptionUpdate { - su.mutation.SetUpdatedAt(t) - return su +func (_u *SubscriptionUpdate) SetUpdatedAt(v time.Time) *SubscriptionUpdate { + _u.mutation.SetUpdatedAt(v) + return _u } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (su *SubscriptionUpdate) SetCustomerID(id int) *SubscriptionUpdate { - su.mutation.SetCustomerID(id) - return su +func (_u *SubscriptionUpdate) SetCustomerID(id int) *SubscriptionUpdate { + _u.mutation.SetCustomerID(id) + return _u } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (su *SubscriptionUpdate) SetCustomer(p *PaymentCustomer) *SubscriptionUpdate { - return su.SetCustomerID(p.ID) +func (_u *SubscriptionUpdate) SetCustomer(v *PaymentCustomer) *SubscriptionUpdate { + return _u.SetCustomerID(v.ID) } // Mutation returns the SubscriptionMutation object of the builder. -func (su *SubscriptionUpdate) Mutation() *SubscriptionMutation { - return su.mutation +func (_u *SubscriptionUpdate) Mutation() *SubscriptionMutation { + return _u.mutation } // ClearCustomer clears the "customer" edge to the PaymentCustomer entity. -func (su *SubscriptionUpdate) ClearCustomer() *SubscriptionUpdate { - su.mutation.ClearCustomer() - return su +func (_u *SubscriptionUpdate) ClearCustomer() *SubscriptionUpdate { + _u.mutation.ClearCustomer() + return _u } // Save executes the query and returns the number of nodes affected by the update operation. -func (su *SubscriptionUpdate) Save(ctx context.Context) (int, error) { - su.defaults() - return withHooks(ctx, su.sqlSave, su.mutation, su.hooks) +func (_u *SubscriptionUpdate) Save(ctx context.Context) (int, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (su *SubscriptionUpdate) SaveX(ctx context.Context) int { - affected, err := su.Save(ctx) +func (_u *SubscriptionUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) if err != nil { panic(err) } @@ -331,162 +331,162 @@ func (su *SubscriptionUpdate) SaveX(ctx context.Context) int { } // Exec executes the query. -func (su *SubscriptionUpdate) Exec(ctx context.Context) error { - _, err := su.Save(ctx) +func (_u *SubscriptionUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (su *SubscriptionUpdate) ExecX(ctx context.Context) { - if err := su.Exec(ctx); err != nil { +func (_u *SubscriptionUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (su *SubscriptionUpdate) defaults() { - if _, ok := su.mutation.UpdatedAt(); !ok { +func (_u *SubscriptionUpdate) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := subscription.UpdateDefaultUpdatedAt() - su.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (su *SubscriptionUpdate) check() error { - if v, ok := su.mutation.ProviderSubscriptionID(); ok { +func (_u *SubscriptionUpdate) check() error { + if v, ok := _u.mutation.ProviderSubscriptionID(); ok { if err := subscription.ProviderSubscriptionIDValidator(v); err != nil { return &ValidationError{Name: "provider_subscription_id", err: fmt.Errorf(`ent: validator failed for field "Subscription.provider_subscription_id": %w`, err)} } } - if v, ok := su.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := subscription.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "Subscription.provider": %w`, err)} } } - if v, ok := su.mutation.Status(); ok { + if v, ok := _u.mutation.Status(); ok { if err := subscription.StatusValidator(v); err != nil { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "Subscription.status": %w`, err)} } } - if v, ok := su.mutation.PriceID(); ok { + if v, ok := _u.mutation.PriceID(); ok { if err := subscription.PriceIDValidator(v); err != nil { return &ValidationError{Name: "price_id", err: fmt.Errorf(`ent: validator failed for field "Subscription.price_id": %w`, err)} } } - if v, ok := su.mutation.Amount(); ok { + if v, ok := _u.mutation.Amount(); ok { if err := subscription.AmountValidator(v); err != nil { return &ValidationError{Name: "amount", err: fmt.Errorf(`ent: validator failed for field "Subscription.amount": %w`, err)} } } - if v, ok := su.mutation.Currency(); ok { + if v, ok := _u.mutation.Currency(); ok { if err := subscription.CurrencyValidator(v); err != nil { return &ValidationError{Name: "currency", err: fmt.Errorf(`ent: validator failed for field "Subscription.currency": %w`, err)} } } - if v, ok := su.mutation.Interval(); ok { + if v, ok := _u.mutation.Interval(); ok { if err := subscription.IntervalValidator(v); err != nil { return &ValidationError{Name: "interval", err: fmt.Errorf(`ent: validator failed for field "Subscription.interval": %w`, err)} } } - if v, ok := su.mutation.IntervalCount(); ok { + if v, ok := _u.mutation.IntervalCount(); ok { if err := subscription.IntervalCountValidator(v); err != nil { return &ValidationError{Name: "interval_count", err: fmt.Errorf(`ent: validator failed for field "Subscription.interval_count": %w`, err)} } } - if su.mutation.CustomerCleared() && len(su.mutation.CustomerIDs()) > 0 { + if _u.mutation.CustomerCleared() && len(_u.mutation.CustomerIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "Subscription.customer"`) } return nil } -func (su *SubscriptionUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := su.check(); err != nil { - return n, err +func (_u *SubscriptionUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err } _spec := sqlgraph.NewUpdateSpec(subscription.Table, subscription.Columns, sqlgraph.NewFieldSpec(subscription.FieldID, field.TypeInt)) - if ps := su.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := su.mutation.ProviderSubscriptionID(); ok { + if value, ok := _u.mutation.ProviderSubscriptionID(); ok { _spec.SetField(subscription.FieldProviderSubscriptionID, field.TypeString, value) } - if value, ok := su.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(subscription.FieldProvider, field.TypeString, value) } - if value, ok := su.mutation.Status(); ok { + if value, ok := _u.mutation.Status(); ok { _spec.SetField(subscription.FieldStatus, field.TypeEnum, value) } - if value, ok := su.mutation.PriceID(); ok { + if value, ok := _u.mutation.PriceID(); ok { _spec.SetField(subscription.FieldPriceID, field.TypeString, value) } - if value, ok := su.mutation.Amount(); ok { + if value, ok := _u.mutation.Amount(); ok { _spec.SetField(subscription.FieldAmount, field.TypeInt64, value) } - if value, ok := su.mutation.AddedAmount(); ok { + if value, ok := _u.mutation.AddedAmount(); ok { _spec.AddField(subscription.FieldAmount, field.TypeInt64, value) } - if value, ok := su.mutation.Currency(); ok { + if value, ok := _u.mutation.Currency(); ok { _spec.SetField(subscription.FieldCurrency, field.TypeString, value) } - if value, ok := su.mutation.Interval(); ok { + if value, ok := _u.mutation.Interval(); ok { _spec.SetField(subscription.FieldInterval, field.TypeEnum, value) } - if value, ok := su.mutation.IntervalCount(); ok { + if value, ok := _u.mutation.IntervalCount(); ok { _spec.SetField(subscription.FieldIntervalCount, field.TypeInt, value) } - if value, ok := su.mutation.AddedIntervalCount(); ok { + if value, ok := _u.mutation.AddedIntervalCount(); ok { _spec.AddField(subscription.FieldIntervalCount, field.TypeInt, value) } - if value, ok := su.mutation.CurrentPeriodStart(); ok { + if value, ok := _u.mutation.CurrentPeriodStart(); ok { _spec.SetField(subscription.FieldCurrentPeriodStart, field.TypeTime, value) } - if su.mutation.CurrentPeriodStartCleared() { + if _u.mutation.CurrentPeriodStartCleared() { _spec.ClearField(subscription.FieldCurrentPeriodStart, field.TypeTime) } - if value, ok := su.mutation.CurrentPeriodEnd(); ok { + if value, ok := _u.mutation.CurrentPeriodEnd(); ok { _spec.SetField(subscription.FieldCurrentPeriodEnd, field.TypeTime, value) } - if su.mutation.CurrentPeriodEndCleared() { + if _u.mutation.CurrentPeriodEndCleared() { _spec.ClearField(subscription.FieldCurrentPeriodEnd, field.TypeTime) } - if value, ok := su.mutation.TrialStart(); ok { + if value, ok := _u.mutation.TrialStart(); ok { _spec.SetField(subscription.FieldTrialStart, field.TypeTime, value) } - if su.mutation.TrialStartCleared() { + if _u.mutation.TrialStartCleared() { _spec.ClearField(subscription.FieldTrialStart, field.TypeTime) } - if value, ok := su.mutation.TrialEnd(); ok { + if value, ok := _u.mutation.TrialEnd(); ok { _spec.SetField(subscription.FieldTrialEnd, field.TypeTime, value) } - if su.mutation.TrialEndCleared() { + if _u.mutation.TrialEndCleared() { _spec.ClearField(subscription.FieldTrialEnd, field.TypeTime) } - if value, ok := su.mutation.CanceledAt(); ok { + if value, ok := _u.mutation.CanceledAt(); ok { _spec.SetField(subscription.FieldCanceledAt, field.TypeTime, value) } - if su.mutation.CanceledAtCleared() { + if _u.mutation.CanceledAtCleared() { _spec.ClearField(subscription.FieldCanceledAt, field.TypeTime) } - if value, ok := su.mutation.EndedAt(); ok { + if value, ok := _u.mutation.EndedAt(); ok { _spec.SetField(subscription.FieldEndedAt, field.TypeTime, value) } - if su.mutation.EndedAtCleared() { + if _u.mutation.EndedAtCleared() { _spec.ClearField(subscription.FieldEndedAt, field.TypeTime) } - if value, ok := su.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(subscription.FieldMetadata, field.TypeJSON, value) } - if su.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(subscription.FieldMetadata, field.TypeJSON) } - if value, ok := su.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(subscription.FieldUpdatedAt, field.TypeTime, value) } - if su.mutation.CustomerCleared() { + if _u.mutation.CustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -499,7 +499,7 @@ func (su *SubscriptionUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := su.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -515,7 +515,7 @@ func (su *SubscriptionUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if n, err = sqlgraph.UpdateNodes(ctx, su.driver, _spec); err != nil { + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{subscription.Label} } else if sqlgraph.IsConstraintError(err) { @@ -523,8 +523,8 @@ func (su *SubscriptionUpdate) sqlSave(ctx context.Context) (n int, err error) { } return 0, err } - su.mutation.done = true - return n, nil + _u.mutation.done = true + return _node, nil } // SubscriptionUpdateOne is the builder for updating a single Subscription entity. @@ -536,313 +536,313 @@ type SubscriptionUpdateOne struct { } // SetProviderSubscriptionID sets the "provider_subscription_id" field. -func (suo *SubscriptionUpdateOne) SetProviderSubscriptionID(s string) *SubscriptionUpdateOne { - suo.mutation.SetProviderSubscriptionID(s) - return suo +func (_u *SubscriptionUpdateOne) SetProviderSubscriptionID(v string) *SubscriptionUpdateOne { + _u.mutation.SetProviderSubscriptionID(v) + return _u } // SetNillableProviderSubscriptionID sets the "provider_subscription_id" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableProviderSubscriptionID(s *string) *SubscriptionUpdateOne { - if s != nil { - suo.SetProviderSubscriptionID(*s) +func (_u *SubscriptionUpdateOne) SetNillableProviderSubscriptionID(v *string) *SubscriptionUpdateOne { + if v != nil { + _u.SetProviderSubscriptionID(*v) } - return suo + return _u } // SetProvider sets the "provider" field. -func (suo *SubscriptionUpdateOne) SetProvider(s string) *SubscriptionUpdateOne { - suo.mutation.SetProvider(s) - return suo +func (_u *SubscriptionUpdateOne) SetProvider(v string) *SubscriptionUpdateOne { + _u.mutation.SetProvider(v) + return _u } // SetNillableProvider sets the "provider" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableProvider(s *string) *SubscriptionUpdateOne { - if s != nil { - suo.SetProvider(*s) +func (_u *SubscriptionUpdateOne) SetNillableProvider(v *string) *SubscriptionUpdateOne { + if v != nil { + _u.SetProvider(*v) } - return suo + return _u } // SetStatus sets the "status" field. -func (suo *SubscriptionUpdateOne) SetStatus(s subscription.Status) *SubscriptionUpdateOne { - suo.mutation.SetStatus(s) - return suo +func (_u *SubscriptionUpdateOne) SetStatus(v subscription.Status) *SubscriptionUpdateOne { + _u.mutation.SetStatus(v) + return _u } // SetNillableStatus sets the "status" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableStatus(s *subscription.Status) *SubscriptionUpdateOne { - if s != nil { - suo.SetStatus(*s) +func (_u *SubscriptionUpdateOne) SetNillableStatus(v *subscription.Status) *SubscriptionUpdateOne { + if v != nil { + _u.SetStatus(*v) } - return suo + return _u } // SetPriceID sets the "price_id" field. -func (suo *SubscriptionUpdateOne) SetPriceID(s string) *SubscriptionUpdateOne { - suo.mutation.SetPriceID(s) - return suo +func (_u *SubscriptionUpdateOne) SetPriceID(v string) *SubscriptionUpdateOne { + _u.mutation.SetPriceID(v) + return _u } // SetNillablePriceID sets the "price_id" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillablePriceID(s *string) *SubscriptionUpdateOne { - if s != nil { - suo.SetPriceID(*s) +func (_u *SubscriptionUpdateOne) SetNillablePriceID(v *string) *SubscriptionUpdateOne { + if v != nil { + _u.SetPriceID(*v) } - return suo + return _u } // SetAmount sets the "amount" field. -func (suo *SubscriptionUpdateOne) SetAmount(i int64) *SubscriptionUpdateOne { - suo.mutation.ResetAmount() - suo.mutation.SetAmount(i) - return suo +func (_u *SubscriptionUpdateOne) SetAmount(v int64) *SubscriptionUpdateOne { + _u.mutation.ResetAmount() + _u.mutation.SetAmount(v) + return _u } // SetNillableAmount sets the "amount" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableAmount(i *int64) *SubscriptionUpdateOne { - if i != nil { - suo.SetAmount(*i) +func (_u *SubscriptionUpdateOne) SetNillableAmount(v *int64) *SubscriptionUpdateOne { + if v != nil { + _u.SetAmount(*v) } - return suo + return _u } -// AddAmount adds i to the "amount" field. -func (suo *SubscriptionUpdateOne) AddAmount(i int64) *SubscriptionUpdateOne { - suo.mutation.AddAmount(i) - return suo +// AddAmount adds value to the "amount" field. +func (_u *SubscriptionUpdateOne) AddAmount(v int64) *SubscriptionUpdateOne { + _u.mutation.AddAmount(v) + return _u } // SetCurrency sets the "currency" field. -func (suo *SubscriptionUpdateOne) SetCurrency(s string) *SubscriptionUpdateOne { - suo.mutation.SetCurrency(s) - return suo +func (_u *SubscriptionUpdateOne) SetCurrency(v string) *SubscriptionUpdateOne { + _u.mutation.SetCurrency(v) + return _u } // SetNillableCurrency sets the "currency" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableCurrency(s *string) *SubscriptionUpdateOne { - if s != nil { - suo.SetCurrency(*s) +func (_u *SubscriptionUpdateOne) SetNillableCurrency(v *string) *SubscriptionUpdateOne { + if v != nil { + _u.SetCurrency(*v) } - return suo + return _u } // SetInterval sets the "interval" field. -func (suo *SubscriptionUpdateOne) SetInterval(s subscription.Interval) *SubscriptionUpdateOne { - suo.mutation.SetInterval(s) - return suo +func (_u *SubscriptionUpdateOne) SetInterval(v subscription.Interval) *SubscriptionUpdateOne { + _u.mutation.SetInterval(v) + return _u } // SetNillableInterval sets the "interval" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableInterval(s *subscription.Interval) *SubscriptionUpdateOne { - if s != nil { - suo.SetInterval(*s) +func (_u *SubscriptionUpdateOne) SetNillableInterval(v *subscription.Interval) *SubscriptionUpdateOne { + if v != nil { + _u.SetInterval(*v) } - return suo + return _u } // SetIntervalCount sets the "interval_count" field. -func (suo *SubscriptionUpdateOne) SetIntervalCount(i int) *SubscriptionUpdateOne { - suo.mutation.ResetIntervalCount() - suo.mutation.SetIntervalCount(i) - return suo +func (_u *SubscriptionUpdateOne) SetIntervalCount(v int) *SubscriptionUpdateOne { + _u.mutation.ResetIntervalCount() + _u.mutation.SetIntervalCount(v) + return _u } // SetNillableIntervalCount sets the "interval_count" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableIntervalCount(i *int) *SubscriptionUpdateOne { - if i != nil { - suo.SetIntervalCount(*i) +func (_u *SubscriptionUpdateOne) SetNillableIntervalCount(v *int) *SubscriptionUpdateOne { + if v != nil { + _u.SetIntervalCount(*v) } - return suo + return _u } -// AddIntervalCount adds i to the "interval_count" field. -func (suo *SubscriptionUpdateOne) AddIntervalCount(i int) *SubscriptionUpdateOne { - suo.mutation.AddIntervalCount(i) - return suo +// AddIntervalCount adds value to the "interval_count" field. +func (_u *SubscriptionUpdateOne) AddIntervalCount(v int) *SubscriptionUpdateOne { + _u.mutation.AddIntervalCount(v) + return _u } // SetCurrentPeriodStart sets the "current_period_start" field. -func (suo *SubscriptionUpdateOne) SetCurrentPeriodStart(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetCurrentPeriodStart(t) - return suo +func (_u *SubscriptionUpdateOne) SetCurrentPeriodStart(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetCurrentPeriodStart(v) + return _u } // SetNillableCurrentPeriodStart sets the "current_period_start" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableCurrentPeriodStart(t *time.Time) *SubscriptionUpdateOne { - if t != nil { - suo.SetCurrentPeriodStart(*t) +func (_u *SubscriptionUpdateOne) SetNillableCurrentPeriodStart(v *time.Time) *SubscriptionUpdateOne { + if v != nil { + _u.SetCurrentPeriodStart(*v) } - return suo + return _u } // ClearCurrentPeriodStart clears the value of the "current_period_start" field. -func (suo *SubscriptionUpdateOne) ClearCurrentPeriodStart() *SubscriptionUpdateOne { - suo.mutation.ClearCurrentPeriodStart() - return suo +func (_u *SubscriptionUpdateOne) ClearCurrentPeriodStart() *SubscriptionUpdateOne { + _u.mutation.ClearCurrentPeriodStart() + return _u } // SetCurrentPeriodEnd sets the "current_period_end" field. -func (suo *SubscriptionUpdateOne) SetCurrentPeriodEnd(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetCurrentPeriodEnd(t) - return suo +func (_u *SubscriptionUpdateOne) SetCurrentPeriodEnd(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetCurrentPeriodEnd(v) + return _u } // SetNillableCurrentPeriodEnd sets the "current_period_end" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableCurrentPeriodEnd(t *time.Time) *SubscriptionUpdateOne { - if t != nil { - suo.SetCurrentPeriodEnd(*t) +func (_u *SubscriptionUpdateOne) SetNillableCurrentPeriodEnd(v *time.Time) *SubscriptionUpdateOne { + if v != nil { + _u.SetCurrentPeriodEnd(*v) } - return suo + return _u } // ClearCurrentPeriodEnd clears the value of the "current_period_end" field. -func (suo *SubscriptionUpdateOne) ClearCurrentPeriodEnd() *SubscriptionUpdateOne { - suo.mutation.ClearCurrentPeriodEnd() - return suo +func (_u *SubscriptionUpdateOne) ClearCurrentPeriodEnd() *SubscriptionUpdateOne { + _u.mutation.ClearCurrentPeriodEnd() + return _u } // SetTrialStart sets the "trial_start" field. -func (suo *SubscriptionUpdateOne) SetTrialStart(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetTrialStart(t) - return suo +func (_u *SubscriptionUpdateOne) SetTrialStart(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetTrialStart(v) + return _u } // SetNillableTrialStart sets the "trial_start" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableTrialStart(t *time.Time) *SubscriptionUpdateOne { - if t != nil { - suo.SetTrialStart(*t) +func (_u *SubscriptionUpdateOne) SetNillableTrialStart(v *time.Time) *SubscriptionUpdateOne { + if v != nil { + _u.SetTrialStart(*v) } - return suo + return _u } // ClearTrialStart clears the value of the "trial_start" field. -func (suo *SubscriptionUpdateOne) ClearTrialStart() *SubscriptionUpdateOne { - suo.mutation.ClearTrialStart() - return suo +func (_u *SubscriptionUpdateOne) ClearTrialStart() *SubscriptionUpdateOne { + _u.mutation.ClearTrialStart() + return _u } // SetTrialEnd sets the "trial_end" field. -func (suo *SubscriptionUpdateOne) SetTrialEnd(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetTrialEnd(t) - return suo +func (_u *SubscriptionUpdateOne) SetTrialEnd(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetTrialEnd(v) + return _u } // SetNillableTrialEnd sets the "trial_end" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableTrialEnd(t *time.Time) *SubscriptionUpdateOne { - if t != nil { - suo.SetTrialEnd(*t) +func (_u *SubscriptionUpdateOne) SetNillableTrialEnd(v *time.Time) *SubscriptionUpdateOne { + if v != nil { + _u.SetTrialEnd(*v) } - return suo + return _u } // ClearTrialEnd clears the value of the "trial_end" field. -func (suo *SubscriptionUpdateOne) ClearTrialEnd() *SubscriptionUpdateOne { - suo.mutation.ClearTrialEnd() - return suo +func (_u *SubscriptionUpdateOne) ClearTrialEnd() *SubscriptionUpdateOne { + _u.mutation.ClearTrialEnd() + return _u } // SetCanceledAt sets the "canceled_at" field. -func (suo *SubscriptionUpdateOne) SetCanceledAt(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetCanceledAt(t) - return suo +func (_u *SubscriptionUpdateOne) SetCanceledAt(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetCanceledAt(v) + return _u } // SetNillableCanceledAt sets the "canceled_at" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableCanceledAt(t *time.Time) *SubscriptionUpdateOne { - if t != nil { - suo.SetCanceledAt(*t) +func (_u *SubscriptionUpdateOne) SetNillableCanceledAt(v *time.Time) *SubscriptionUpdateOne { + if v != nil { + _u.SetCanceledAt(*v) } - return suo + return _u } // ClearCanceledAt clears the value of the "canceled_at" field. -func (suo *SubscriptionUpdateOne) ClearCanceledAt() *SubscriptionUpdateOne { - suo.mutation.ClearCanceledAt() - return suo +func (_u *SubscriptionUpdateOne) ClearCanceledAt() *SubscriptionUpdateOne { + _u.mutation.ClearCanceledAt() + return _u } // SetEndedAt sets the "ended_at" field. -func (suo *SubscriptionUpdateOne) SetEndedAt(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetEndedAt(t) - return suo +func (_u *SubscriptionUpdateOne) SetEndedAt(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetEndedAt(v) + return _u } // SetNillableEndedAt sets the "ended_at" field if the given value is not nil. -func (suo *SubscriptionUpdateOne) SetNillableEndedAt(t *time.Time) *SubscriptionUpdateOne { - if t != nil { - suo.SetEndedAt(*t) +func (_u *SubscriptionUpdateOne) SetNillableEndedAt(v *time.Time) *SubscriptionUpdateOne { + if v != nil { + _u.SetEndedAt(*v) } - return suo + return _u } // ClearEndedAt clears the value of the "ended_at" field. -func (suo *SubscriptionUpdateOne) ClearEndedAt() *SubscriptionUpdateOne { - suo.mutation.ClearEndedAt() - return suo +func (_u *SubscriptionUpdateOne) ClearEndedAt() *SubscriptionUpdateOne { + _u.mutation.ClearEndedAt() + return _u } // SetMetadata sets the "metadata" field. -func (suo *SubscriptionUpdateOne) SetMetadata(m map[string]interface{}) *SubscriptionUpdateOne { - suo.mutation.SetMetadata(m) - return suo +func (_u *SubscriptionUpdateOne) SetMetadata(v map[string]interface{}) *SubscriptionUpdateOne { + _u.mutation.SetMetadata(v) + return _u } // ClearMetadata clears the value of the "metadata" field. -func (suo *SubscriptionUpdateOne) ClearMetadata() *SubscriptionUpdateOne { - suo.mutation.ClearMetadata() - return suo +func (_u *SubscriptionUpdateOne) ClearMetadata() *SubscriptionUpdateOne { + _u.mutation.ClearMetadata() + return _u } // SetUpdatedAt sets the "updated_at" field. -func (suo *SubscriptionUpdateOne) SetUpdatedAt(t time.Time) *SubscriptionUpdateOne { - suo.mutation.SetUpdatedAt(t) - return suo +func (_u *SubscriptionUpdateOne) SetUpdatedAt(v time.Time) *SubscriptionUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u } // SetCustomerID sets the "customer" edge to the PaymentCustomer entity by ID. -func (suo *SubscriptionUpdateOne) SetCustomerID(id int) *SubscriptionUpdateOne { - suo.mutation.SetCustomerID(id) - return suo +func (_u *SubscriptionUpdateOne) SetCustomerID(id int) *SubscriptionUpdateOne { + _u.mutation.SetCustomerID(id) + return _u } // SetCustomer sets the "customer" edge to the PaymentCustomer entity. -func (suo *SubscriptionUpdateOne) SetCustomer(p *PaymentCustomer) *SubscriptionUpdateOne { - return suo.SetCustomerID(p.ID) +func (_u *SubscriptionUpdateOne) SetCustomer(v *PaymentCustomer) *SubscriptionUpdateOne { + return _u.SetCustomerID(v.ID) } // Mutation returns the SubscriptionMutation object of the builder. -func (suo *SubscriptionUpdateOne) Mutation() *SubscriptionMutation { - return suo.mutation +func (_u *SubscriptionUpdateOne) Mutation() *SubscriptionMutation { + return _u.mutation } // ClearCustomer clears the "customer" edge to the PaymentCustomer entity. -func (suo *SubscriptionUpdateOne) ClearCustomer() *SubscriptionUpdateOne { - suo.mutation.ClearCustomer() - return suo +func (_u *SubscriptionUpdateOne) ClearCustomer() *SubscriptionUpdateOne { + _u.mutation.ClearCustomer() + return _u } // Where appends a list predicates to the SubscriptionUpdate builder. -func (suo *SubscriptionUpdateOne) Where(ps ...predicate.Subscription) *SubscriptionUpdateOne { - suo.mutation.Where(ps...) - return suo +func (_u *SubscriptionUpdateOne) Where(ps ...predicate.Subscription) *SubscriptionUpdateOne { + _u.mutation.Where(ps...) + return _u } // Select allows selecting one or more fields (columns) of the returned entity. // The default is selecting all fields defined in the entity schema. -func (suo *SubscriptionUpdateOne) Select(field string, fields ...string) *SubscriptionUpdateOne { - suo.fields = append([]string{field}, fields...) - return suo +func (_u *SubscriptionUpdateOne) Select(field string, fields ...string) *SubscriptionUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } // Save executes the query and returns the updated Subscription entity. -func (suo *SubscriptionUpdateOne) Save(ctx context.Context) (*Subscription, error) { - suo.defaults() - return withHooks(ctx, suo.sqlSave, suo.mutation, suo.hooks) +func (_u *SubscriptionUpdateOne) Save(ctx context.Context) (*Subscription, error) { + _u.defaults() + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (suo *SubscriptionUpdateOne) SaveX(ctx context.Context) *Subscription { - node, err := suo.Save(ctx) +func (_u *SubscriptionUpdateOne) SaveX(ctx context.Context) *Subscription { + node, err := _u.Save(ctx) if err != nil { panic(err) } @@ -850,85 +850,85 @@ func (suo *SubscriptionUpdateOne) SaveX(ctx context.Context) *Subscription { } // Exec executes the query on the entity. -func (suo *SubscriptionUpdateOne) Exec(ctx context.Context) error { - _, err := suo.Save(ctx) +func (_u *SubscriptionUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (suo *SubscriptionUpdateOne) ExecX(ctx context.Context) { - if err := suo.Exec(ctx); err != nil { +func (_u *SubscriptionUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (suo *SubscriptionUpdateOne) defaults() { - if _, ok := suo.mutation.UpdatedAt(); !ok { +func (_u *SubscriptionUpdateOne) defaults() { + if _, ok := _u.mutation.UpdatedAt(); !ok { v := subscription.UpdateDefaultUpdatedAt() - suo.mutation.SetUpdatedAt(v) + _u.mutation.SetUpdatedAt(v) } } // check runs all checks and user-defined validators on the builder. -func (suo *SubscriptionUpdateOne) check() error { - if v, ok := suo.mutation.ProviderSubscriptionID(); ok { +func (_u *SubscriptionUpdateOne) check() error { + if v, ok := _u.mutation.ProviderSubscriptionID(); ok { if err := subscription.ProviderSubscriptionIDValidator(v); err != nil { return &ValidationError{Name: "provider_subscription_id", err: fmt.Errorf(`ent: validator failed for field "Subscription.provider_subscription_id": %w`, err)} } } - if v, ok := suo.mutation.Provider(); ok { + if v, ok := _u.mutation.Provider(); ok { if err := subscription.ProviderValidator(v); err != nil { return &ValidationError{Name: "provider", err: fmt.Errorf(`ent: validator failed for field "Subscription.provider": %w`, err)} } } - if v, ok := suo.mutation.Status(); ok { + if v, ok := _u.mutation.Status(); ok { if err := subscription.StatusValidator(v); err != nil { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "Subscription.status": %w`, err)} } } - if v, ok := suo.mutation.PriceID(); ok { + if v, ok := _u.mutation.PriceID(); ok { if err := subscription.PriceIDValidator(v); err != nil { return &ValidationError{Name: "price_id", err: fmt.Errorf(`ent: validator failed for field "Subscription.price_id": %w`, err)} } } - if v, ok := suo.mutation.Amount(); ok { + if v, ok := _u.mutation.Amount(); ok { if err := subscription.AmountValidator(v); err != nil { return &ValidationError{Name: "amount", err: fmt.Errorf(`ent: validator failed for field "Subscription.amount": %w`, err)} } } - if v, ok := suo.mutation.Currency(); ok { + if v, ok := _u.mutation.Currency(); ok { if err := subscription.CurrencyValidator(v); err != nil { return &ValidationError{Name: "currency", err: fmt.Errorf(`ent: validator failed for field "Subscription.currency": %w`, err)} } } - if v, ok := suo.mutation.Interval(); ok { + if v, ok := _u.mutation.Interval(); ok { if err := subscription.IntervalValidator(v); err != nil { return &ValidationError{Name: "interval", err: fmt.Errorf(`ent: validator failed for field "Subscription.interval": %w`, err)} } } - if v, ok := suo.mutation.IntervalCount(); ok { + if v, ok := _u.mutation.IntervalCount(); ok { if err := subscription.IntervalCountValidator(v); err != nil { return &ValidationError{Name: "interval_count", err: fmt.Errorf(`ent: validator failed for field "Subscription.interval_count": %w`, err)} } } - if suo.mutation.CustomerCleared() && len(suo.mutation.CustomerIDs()) > 0 { + if _u.mutation.CustomerCleared() && len(_u.mutation.CustomerIDs()) > 0 { return errors.New(`ent: clearing a required unique edge "Subscription.customer"`) } return nil } -func (suo *SubscriptionUpdateOne) sqlSave(ctx context.Context) (_node *Subscription, err error) { - if err := suo.check(); err != nil { +func (_u *SubscriptionUpdateOne) sqlSave(ctx context.Context) (_node *Subscription, err error) { + if err := _u.check(); err != nil { return _node, err } _spec := sqlgraph.NewUpdateSpec(subscription.Table, subscription.Columns, sqlgraph.NewFieldSpec(subscription.FieldID, field.TypeInt)) - id, ok := suo.mutation.ID() + id, ok := _u.mutation.ID() if !ok { return nil, &ValidationError{Name: "id", err: errors.New(`ent: missing "Subscription.id" for update`)} } _spec.Node.ID.Value = id - if fields := suo.fields; len(fields) > 0 { + if fields := _u.fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, subscription.FieldID) for _, f := range fields { @@ -940,89 +940,89 @@ func (suo *SubscriptionUpdateOne) sqlSave(ctx context.Context) (_node *Subscript } } } - if ps := suo.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := suo.mutation.ProviderSubscriptionID(); ok { + if value, ok := _u.mutation.ProviderSubscriptionID(); ok { _spec.SetField(subscription.FieldProviderSubscriptionID, field.TypeString, value) } - if value, ok := suo.mutation.Provider(); ok { + if value, ok := _u.mutation.Provider(); ok { _spec.SetField(subscription.FieldProvider, field.TypeString, value) } - if value, ok := suo.mutation.Status(); ok { + if value, ok := _u.mutation.Status(); ok { _spec.SetField(subscription.FieldStatus, field.TypeEnum, value) } - if value, ok := suo.mutation.PriceID(); ok { + if value, ok := _u.mutation.PriceID(); ok { _spec.SetField(subscription.FieldPriceID, field.TypeString, value) } - if value, ok := suo.mutation.Amount(); ok { + if value, ok := _u.mutation.Amount(); ok { _spec.SetField(subscription.FieldAmount, field.TypeInt64, value) } - if value, ok := suo.mutation.AddedAmount(); ok { + if value, ok := _u.mutation.AddedAmount(); ok { _spec.AddField(subscription.FieldAmount, field.TypeInt64, value) } - if value, ok := suo.mutation.Currency(); ok { + if value, ok := _u.mutation.Currency(); ok { _spec.SetField(subscription.FieldCurrency, field.TypeString, value) } - if value, ok := suo.mutation.Interval(); ok { + if value, ok := _u.mutation.Interval(); ok { _spec.SetField(subscription.FieldInterval, field.TypeEnum, value) } - if value, ok := suo.mutation.IntervalCount(); ok { + if value, ok := _u.mutation.IntervalCount(); ok { _spec.SetField(subscription.FieldIntervalCount, field.TypeInt, value) } - if value, ok := suo.mutation.AddedIntervalCount(); ok { + if value, ok := _u.mutation.AddedIntervalCount(); ok { _spec.AddField(subscription.FieldIntervalCount, field.TypeInt, value) } - if value, ok := suo.mutation.CurrentPeriodStart(); ok { + if value, ok := _u.mutation.CurrentPeriodStart(); ok { _spec.SetField(subscription.FieldCurrentPeriodStart, field.TypeTime, value) } - if suo.mutation.CurrentPeriodStartCleared() { + if _u.mutation.CurrentPeriodStartCleared() { _spec.ClearField(subscription.FieldCurrentPeriodStart, field.TypeTime) } - if value, ok := suo.mutation.CurrentPeriodEnd(); ok { + if value, ok := _u.mutation.CurrentPeriodEnd(); ok { _spec.SetField(subscription.FieldCurrentPeriodEnd, field.TypeTime, value) } - if suo.mutation.CurrentPeriodEndCleared() { + if _u.mutation.CurrentPeriodEndCleared() { _spec.ClearField(subscription.FieldCurrentPeriodEnd, field.TypeTime) } - if value, ok := suo.mutation.TrialStart(); ok { + if value, ok := _u.mutation.TrialStart(); ok { _spec.SetField(subscription.FieldTrialStart, field.TypeTime, value) } - if suo.mutation.TrialStartCleared() { + if _u.mutation.TrialStartCleared() { _spec.ClearField(subscription.FieldTrialStart, field.TypeTime) } - if value, ok := suo.mutation.TrialEnd(); ok { + if value, ok := _u.mutation.TrialEnd(); ok { _spec.SetField(subscription.FieldTrialEnd, field.TypeTime, value) } - if suo.mutation.TrialEndCleared() { + if _u.mutation.TrialEndCleared() { _spec.ClearField(subscription.FieldTrialEnd, field.TypeTime) } - if value, ok := suo.mutation.CanceledAt(); ok { + if value, ok := _u.mutation.CanceledAt(); ok { _spec.SetField(subscription.FieldCanceledAt, field.TypeTime, value) } - if suo.mutation.CanceledAtCleared() { + if _u.mutation.CanceledAtCleared() { _spec.ClearField(subscription.FieldCanceledAt, field.TypeTime) } - if value, ok := suo.mutation.EndedAt(); ok { + if value, ok := _u.mutation.EndedAt(); ok { _spec.SetField(subscription.FieldEndedAt, field.TypeTime, value) } - if suo.mutation.EndedAtCleared() { + if _u.mutation.EndedAtCleared() { _spec.ClearField(subscription.FieldEndedAt, field.TypeTime) } - if value, ok := suo.mutation.Metadata(); ok { + if value, ok := _u.mutation.Metadata(); ok { _spec.SetField(subscription.FieldMetadata, field.TypeJSON, value) } - if suo.mutation.MetadataCleared() { + if _u.mutation.MetadataCleared() { _spec.ClearField(subscription.FieldMetadata, field.TypeJSON) } - if value, ok := suo.mutation.UpdatedAt(); ok { + if value, ok := _u.mutation.UpdatedAt(); ok { _spec.SetField(subscription.FieldUpdatedAt, field.TypeTime, value) } - if suo.mutation.CustomerCleared() { + if _u.mutation.CustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -1035,7 +1035,7 @@ func (suo *SubscriptionUpdateOne) sqlSave(ctx context.Context) (_node *Subscript } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := suo.mutation.CustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.CustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -1051,10 +1051,10 @@ func (suo *SubscriptionUpdateOne) sqlSave(ctx context.Context) (_node *Subscript } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - _node = &Subscription{config: suo.config} + _node = &Subscription{config: _u.config} _spec.Assign = _node.assignValues _spec.ScanValues = _node.scanValues - if err = sqlgraph.UpdateNode(ctx, suo.driver, _spec); err != nil { + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{subscription.Label} } else if sqlgraph.IsConstraintError(err) { @@ -1062,6 +1062,6 @@ func (suo *SubscriptionUpdateOne) sqlSave(ctx context.Context) (_node *Subscript } return nil, err } - suo.mutation.done = true + _u.mutation.done = true return _node, nil } diff --git a/ent/user.go b/ent/user.go index cdfe364..c4f4713 100644 --- a/ent/user.go +++ b/ent/user.go @@ -92,7 +92,7 @@ func (*User) scanValues(columns []string) ([]any, error) { // assignValues assigns the values that were returned from sql.Rows (after scanning) // to the User fields. -func (u *User) assignValues(columns []string, values []any) error { +func (_m *User) assignValues(columns []string, values []any) error { if m, n := len(values), len(columns); m < n { return fmt.Errorf("mismatch number of scan values: %d != %d", m, n) } @@ -103,52 +103,52 @@ func (u *User) assignValues(columns []string, values []any) error { if !ok { return fmt.Errorf("unexpected type %T for field id", value) } - u.ID = int(value.Int64) + _m.ID = int(value.Int64) case user.FieldName: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field name", values[i]) } else if value.Valid { - u.Name = value.String + _m.Name = value.String } case user.FieldEmail: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field email", values[i]) } else if value.Valid { - u.Email = value.String + _m.Email = value.String } case user.FieldPassword: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field password", values[i]) } else if value.Valid { - u.Password = value.String + _m.Password = value.String } case user.FieldVerified: if value, ok := values[i].(*sql.NullBool); !ok { return fmt.Errorf("unexpected type %T for field verified", values[i]) } else if value.Valid { - u.Verified = value.Bool + _m.Verified = value.Bool } case user.FieldAdmin: if value, ok := values[i].(*sql.NullBool); !ok { return fmt.Errorf("unexpected type %T for field admin", values[i]) } else if value.Valid { - u.Admin = value.Bool + _m.Admin = value.Bool } case user.FieldCreatedAt: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field created_at", values[i]) } else if value.Valid { - u.CreatedAt = value.Time + _m.CreatedAt = value.Time } case user.ForeignKeys[0]: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for edge-field payment_customer_user", value) } else if value.Valid { - u.payment_customer_user = new(int) - *u.payment_customer_user = int(value.Int64) + _m.payment_customer_user = new(int) + *_m.payment_customer_user = int(value.Int64) } default: - u.selectValues.Set(columns[i], values[i]) + _m.selectValues.Set(columns[i], values[i]) } } return nil @@ -156,59 +156,59 @@ func (u *User) assignValues(columns []string, values []any) error { // Value returns the ent.Value that was dynamically selected and assigned to the User. // This includes values selected through modifiers, order, etc. -func (u *User) Value(name string) (ent.Value, error) { - return u.selectValues.Get(name) +func (_m *User) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) } // QueryOwner queries the "owner" edge of the User entity. -func (u *User) QueryOwner() *PasswordTokenQuery { - return NewUserClient(u.config).QueryOwner(u) +func (_m *User) QueryOwner() *PasswordTokenQuery { + return NewUserClient(_m.config).QueryOwner(_m) } // QueryPaymentCustomer queries the "payment_customer" edge of the User entity. -func (u *User) QueryPaymentCustomer() *PaymentCustomerQuery { - return NewUserClient(u.config).QueryPaymentCustomer(u) +func (_m *User) QueryPaymentCustomer() *PaymentCustomerQuery { + return NewUserClient(_m.config).QueryPaymentCustomer(_m) } // Update returns a builder for updating this User. // Note that you need to call User.Unwrap() before calling this method if this User // was returned from a transaction, and the transaction was committed or rolled back. -func (u *User) Update() *UserUpdateOne { - return NewUserClient(u.config).UpdateOne(u) +func (_m *User) Update() *UserUpdateOne { + return NewUserClient(_m.config).UpdateOne(_m) } // Unwrap unwraps the User entity that was returned from a transaction after it was closed, // so that all future queries will be executed through the driver which created the transaction. -func (u *User) Unwrap() *User { - _tx, ok := u.config.driver.(*txDriver) +func (_m *User) Unwrap() *User { + _tx, ok := _m.config.driver.(*txDriver) if !ok { panic("ent: User is not a transactional entity") } - u.config.driver = _tx.drv - return u + _m.config.driver = _tx.drv + return _m } // String implements the fmt.Stringer. -func (u *User) String() string { +func (_m *User) String() string { var builder strings.Builder builder.WriteString("User(") - builder.WriteString(fmt.Sprintf("id=%v, ", u.ID)) + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) builder.WriteString("name=") - builder.WriteString(u.Name) + builder.WriteString(_m.Name) builder.WriteString(", ") builder.WriteString("email=") - builder.WriteString(u.Email) + builder.WriteString(_m.Email) builder.WriteString(", ") builder.WriteString("password=") builder.WriteString(", ") builder.WriteString("verified=") - builder.WriteString(fmt.Sprintf("%v", u.Verified)) + builder.WriteString(fmt.Sprintf("%v", _m.Verified)) builder.WriteString(", ") builder.WriteString("admin=") - builder.WriteString(fmt.Sprintf("%v", u.Admin)) + builder.WriteString(fmt.Sprintf("%v", _m.Admin)) builder.WriteString(", ") builder.WriteString("created_at=") - builder.WriteString(u.CreatedAt.Format(time.ANSIC)) + builder.WriteString(_m.CreatedAt.Format(time.ANSIC)) builder.WriteByte(')') return builder.String() } diff --git a/ent/user_create.go b/ent/user_create.go index d296bf8..58bb4d5 100644 --- a/ent/user_create.go +++ b/ent/user_create.go @@ -23,115 +23,115 @@ type UserCreate struct { } // SetName sets the "name" field. -func (uc *UserCreate) SetName(s string) *UserCreate { - uc.mutation.SetName(s) - return uc +func (_c *UserCreate) SetName(v string) *UserCreate { + _c.mutation.SetName(v) + return _c } // SetEmail sets the "email" field. -func (uc *UserCreate) SetEmail(s string) *UserCreate { - uc.mutation.SetEmail(s) - return uc +func (_c *UserCreate) SetEmail(v string) *UserCreate { + _c.mutation.SetEmail(v) + return _c } // SetPassword sets the "password" field. -func (uc *UserCreate) SetPassword(s string) *UserCreate { - uc.mutation.SetPassword(s) - return uc +func (_c *UserCreate) SetPassword(v string) *UserCreate { + _c.mutation.SetPassword(v) + return _c } // SetVerified sets the "verified" field. -func (uc *UserCreate) SetVerified(b bool) *UserCreate { - uc.mutation.SetVerified(b) - return uc +func (_c *UserCreate) SetVerified(v bool) *UserCreate { + _c.mutation.SetVerified(v) + return _c } // SetNillableVerified sets the "verified" field if the given value is not nil. -func (uc *UserCreate) SetNillableVerified(b *bool) *UserCreate { - if b != nil { - uc.SetVerified(*b) +func (_c *UserCreate) SetNillableVerified(v *bool) *UserCreate { + if v != nil { + _c.SetVerified(*v) } - return uc + return _c } // SetAdmin sets the "admin" field. -func (uc *UserCreate) SetAdmin(b bool) *UserCreate { - uc.mutation.SetAdmin(b) - return uc +func (_c *UserCreate) SetAdmin(v bool) *UserCreate { + _c.mutation.SetAdmin(v) + return _c } // SetNillableAdmin sets the "admin" field if the given value is not nil. -func (uc *UserCreate) SetNillableAdmin(b *bool) *UserCreate { - if b != nil { - uc.SetAdmin(*b) +func (_c *UserCreate) SetNillableAdmin(v *bool) *UserCreate { + if v != nil { + _c.SetAdmin(*v) } - return uc + return _c } // SetCreatedAt sets the "created_at" field. -func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate { - uc.mutation.SetCreatedAt(t) - return uc +func (_c *UserCreate) SetCreatedAt(v time.Time) *UserCreate { + _c.mutation.SetCreatedAt(v) + return _c } // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. -func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate { - if t != nil { - uc.SetCreatedAt(*t) +func (_c *UserCreate) SetNillableCreatedAt(v *time.Time) *UserCreate { + if v != nil { + _c.SetCreatedAt(*v) } - return uc + return _c } // AddOwnerIDs adds the "owner" edge to the PasswordToken entity by IDs. -func (uc *UserCreate) AddOwnerIDs(ids ...int) *UserCreate { - uc.mutation.AddOwnerIDs(ids...) - return uc +func (_c *UserCreate) AddOwnerIDs(ids ...int) *UserCreate { + _c.mutation.AddOwnerIDs(ids...) + return _c } // AddOwner adds the "owner" edges to the PasswordToken entity. -func (uc *UserCreate) AddOwner(p ...*PasswordToken) *UserCreate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_c *UserCreate) AddOwner(v ...*PasswordToken) *UserCreate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return uc.AddOwnerIDs(ids...) + return _c.AddOwnerIDs(ids...) } // SetPaymentCustomerID sets the "payment_customer" edge to the PaymentCustomer entity by ID. -func (uc *UserCreate) SetPaymentCustomerID(id int) *UserCreate { - uc.mutation.SetPaymentCustomerID(id) - return uc +func (_c *UserCreate) SetPaymentCustomerID(id int) *UserCreate { + _c.mutation.SetPaymentCustomerID(id) + return _c } // SetNillablePaymentCustomerID sets the "payment_customer" edge to the PaymentCustomer entity by ID if the given value is not nil. -func (uc *UserCreate) SetNillablePaymentCustomerID(id *int) *UserCreate { +func (_c *UserCreate) SetNillablePaymentCustomerID(id *int) *UserCreate { if id != nil { - uc = uc.SetPaymentCustomerID(*id) + _c = _c.SetPaymentCustomerID(*id) } - return uc + return _c } // SetPaymentCustomer sets the "payment_customer" edge to the PaymentCustomer entity. -func (uc *UserCreate) SetPaymentCustomer(p *PaymentCustomer) *UserCreate { - return uc.SetPaymentCustomerID(p.ID) +func (_c *UserCreate) SetPaymentCustomer(v *PaymentCustomer) *UserCreate { + return _c.SetPaymentCustomerID(v.ID) } // Mutation returns the UserMutation object of the builder. -func (uc *UserCreate) Mutation() *UserMutation { - return uc.mutation +func (_c *UserCreate) Mutation() *UserMutation { + return _c.mutation } // Save creates the User in the database. -func (uc *UserCreate) Save(ctx context.Context) (*User, error) { - if err := uc.defaults(); err != nil { +func (_c *UserCreate) Save(ctx context.Context) (*User, error) { + if err := _c.defaults(); err != nil { return nil, err } - return withHooks(ctx, uc.sqlSave, uc.mutation, uc.hooks) + return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) } // SaveX calls Save and panics if Save returns an error. -func (uc *UserCreate) SaveX(ctx context.Context) *User { - v, err := uc.Save(ctx) +func (_c *UserCreate) SaveX(ctx context.Context) *User { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -139,82 +139,82 @@ func (uc *UserCreate) SaveX(ctx context.Context) *User { } // Exec executes the query. -func (uc *UserCreate) Exec(ctx context.Context) error { - _, err := uc.Save(ctx) +func (_c *UserCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (uc *UserCreate) ExecX(ctx context.Context) { - if err := uc.Exec(ctx); err != nil { +func (_c *UserCreate) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } // defaults sets the default values of the builder before save. -func (uc *UserCreate) defaults() error { - if _, ok := uc.mutation.Verified(); !ok { +func (_c *UserCreate) defaults() error { + if _, ok := _c.mutation.Verified(); !ok { v := user.DefaultVerified - uc.mutation.SetVerified(v) + _c.mutation.SetVerified(v) } - if _, ok := uc.mutation.Admin(); !ok { + if _, ok := _c.mutation.Admin(); !ok { v := user.DefaultAdmin - uc.mutation.SetAdmin(v) + _c.mutation.SetAdmin(v) } - if _, ok := uc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { if user.DefaultCreatedAt == nil { return fmt.Errorf("ent: uninitialized user.DefaultCreatedAt (forgotten import ent/runtime?)") } v := user.DefaultCreatedAt() - uc.mutation.SetCreatedAt(v) + _c.mutation.SetCreatedAt(v) } return nil } // check runs all checks and user-defined validators on the builder. -func (uc *UserCreate) check() error { - if _, ok := uc.mutation.Name(); !ok { +func (_c *UserCreate) check() error { + if _, ok := _c.mutation.Name(); !ok { return &ValidationError{Name: "name", err: errors.New(`ent: missing required field "User.name"`)} } - if v, ok := uc.mutation.Name(); ok { + if v, ok := _c.mutation.Name(); ok { if err := user.NameValidator(v); err != nil { return &ValidationError{Name: "name", err: fmt.Errorf(`ent: validator failed for field "User.name": %w`, err)} } } - if _, ok := uc.mutation.Email(); !ok { + if _, ok := _c.mutation.Email(); !ok { return &ValidationError{Name: "email", err: errors.New(`ent: missing required field "User.email"`)} } - if v, ok := uc.mutation.Email(); ok { + if v, ok := _c.mutation.Email(); ok { if err := user.EmailValidator(v); err != nil { return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "User.email": %w`, err)} } } - if _, ok := uc.mutation.Password(); !ok { + if _, ok := _c.mutation.Password(); !ok { return &ValidationError{Name: "password", err: errors.New(`ent: missing required field "User.password"`)} } - if v, ok := uc.mutation.Password(); ok { + if v, ok := _c.mutation.Password(); ok { if err := user.PasswordValidator(v); err != nil { return &ValidationError{Name: "password", err: fmt.Errorf(`ent: validator failed for field "User.password": %w`, err)} } } - if _, ok := uc.mutation.Verified(); !ok { + if _, ok := _c.mutation.Verified(); !ok { return &ValidationError{Name: "verified", err: errors.New(`ent: missing required field "User.verified"`)} } - if _, ok := uc.mutation.Admin(); !ok { + if _, ok := _c.mutation.Admin(); !ok { return &ValidationError{Name: "admin", err: errors.New(`ent: missing required field "User.admin"`)} } - if _, ok := uc.mutation.CreatedAt(); !ok { + if _, ok := _c.mutation.CreatedAt(); !ok { return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "User.created_at"`)} } return nil } -func (uc *UserCreate) sqlSave(ctx context.Context) (*User, error) { - if err := uc.check(); err != nil { +func (_c *UserCreate) sqlSave(ctx context.Context) (*User, error) { + if err := _c.check(); err != nil { return nil, err } - _node, _spec := uc.createSpec() - if err := sqlgraph.CreateNode(ctx, uc.driver, _spec); err != nil { + _node, _spec := _c.createSpec() + if err := sqlgraph.CreateNode(ctx, _c.driver, _spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -222,41 +222,41 @@ func (uc *UserCreate) sqlSave(ctx context.Context) (*User, error) { } id := _spec.ID.Value.(int64) _node.ID = int(id) - uc.mutation.id = &_node.ID - uc.mutation.done = true + _c.mutation.id = &_node.ID + _c.mutation.done = true return _node, nil } -func (uc *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) { +func (_c *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) { var ( - _node = &User{config: uc.config} + _node = &User{config: _c.config} _spec = sqlgraph.NewCreateSpec(user.Table, sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt)) ) - if value, ok := uc.mutation.Name(); ok { + if value, ok := _c.mutation.Name(); ok { _spec.SetField(user.FieldName, field.TypeString, value) _node.Name = value } - if value, ok := uc.mutation.Email(); ok { + if value, ok := _c.mutation.Email(); ok { _spec.SetField(user.FieldEmail, field.TypeString, value) _node.Email = value } - if value, ok := uc.mutation.Password(); ok { + if value, ok := _c.mutation.Password(); ok { _spec.SetField(user.FieldPassword, field.TypeString, value) _node.Password = value } - if value, ok := uc.mutation.Verified(); ok { + if value, ok := _c.mutation.Verified(); ok { _spec.SetField(user.FieldVerified, field.TypeBool, value) _node.Verified = value } - if value, ok := uc.mutation.Admin(); ok { + if value, ok := _c.mutation.Admin(); ok { _spec.SetField(user.FieldAdmin, field.TypeBool, value) _node.Admin = value } - if value, ok := uc.mutation.CreatedAt(); ok { + if value, ok := _c.mutation.CreatedAt(); ok { _spec.SetField(user.FieldCreatedAt, field.TypeTime, value) _node.CreatedAt = value } - if nodes := uc.mutation.OwnerIDs(); len(nodes) > 0 { + if nodes := _c.mutation.OwnerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -272,7 +272,7 @@ func (uc *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } - if nodes := uc.mutation.PaymentCustomerIDs(); len(nodes) > 0 { + if nodes := _c.mutation.PaymentCustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: true, @@ -300,16 +300,16 @@ type UserCreateBulk struct { } // Save creates the User entities in the database. -func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { - if ucb.err != nil { - return nil, ucb.err - } - specs := make([]*sqlgraph.CreateSpec, len(ucb.builders)) - nodes := make([]*User, len(ucb.builders)) - mutators := make([]Mutator, len(ucb.builders)) - for i := range ucb.builders { +func (_c *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*User, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { func(i int, root context.Context) { - builder := ucb.builders[i] + builder := _c.builders[i] builder.defaults() var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { mutation, ok := m.(*UserMutation) @@ -323,11 +323,11 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { var err error nodes[i], specs[i] = builder.createSpec() if i < len(mutators)-1 { - _, err = mutators[i+1].Mutate(root, ucb.builders[i+1].mutation) + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) } else { spec := &sqlgraph.BatchCreateSpec{Nodes: specs} // Invoke the actual operation on the latest mutation in the chain. - if err = sqlgraph.BatchCreate(ctx, ucb.driver, spec); err != nil { + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { if sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } @@ -351,7 +351,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { }(i, ctx) } if len(mutators) > 0 { - if _, err := mutators[0].Mutate(ctx, ucb.builders[0].mutation); err != nil { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { return nil, err } } @@ -359,8 +359,8 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } // SaveX is like Save, but panics if an error occurs. -func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User { - v, err := ucb.Save(ctx) +func (_c *UserCreateBulk) SaveX(ctx context.Context) []*User { + v, err := _c.Save(ctx) if err != nil { panic(err) } @@ -368,14 +368,14 @@ func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User { } // Exec executes the query. -func (ucb *UserCreateBulk) Exec(ctx context.Context) error { - _, err := ucb.Save(ctx) +func (_c *UserCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (ucb *UserCreateBulk) ExecX(ctx context.Context) { - if err := ucb.Exec(ctx); err != nil { +func (_c *UserCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/user_delete.go b/ent/user_delete.go index 1d6af76..7125bfe 100644 --- a/ent/user_delete.go +++ b/ent/user_delete.go @@ -20,56 +20,56 @@ type UserDelete struct { } // Where appends a list predicates to the UserDelete builder. -func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.mutation.Where(ps...) - return ud +func (_d *UserDelete) Where(ps ...predicate.User) *UserDelete { + _d.mutation.Where(ps...) + return _d } // Exec executes the deletion query and returns how many vertices were deleted. -func (ud *UserDelete) Exec(ctx context.Context) (int, error) { - return withHooks(ctx, ud.sqlExec, ud.mutation, ud.hooks) +func (_d *UserDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) } // ExecX is like Exec, but panics if an error occurs. -func (ud *UserDelete) ExecX(ctx context.Context) int { - n, err := ud.Exec(ctx) +func (_d *UserDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) if err != nil { panic(err) } return n } -func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { +func (_d *UserDelete) sqlExec(ctx context.Context) (int, error) { _spec := sqlgraph.NewDeleteSpec(user.Table, sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt)) - if ps := ud.mutation.predicates; len(ps) > 0 { + if ps := _d.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - affected, err := sqlgraph.DeleteNodes(ctx, ud.driver, _spec) + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) if err != nil && sqlgraph.IsConstraintError(err) { err = &ConstraintError{msg: err.Error(), wrap: err} } - ud.mutation.done = true + _d.mutation.done = true return affected, err } // UserDeleteOne is the builder for deleting a single User entity. type UserDeleteOne struct { - ud *UserDelete + _d *UserDelete } // Where appends a list predicates to the UserDelete builder. -func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne { - udo.ud.mutation.Where(ps...) - return udo +func (_d *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne { + _d._d.mutation.Where(ps...) + return _d } // Exec executes the deletion query. -func (udo *UserDeleteOne) Exec(ctx context.Context) error { - n, err := udo.ud.Exec(ctx) +func (_d *UserDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) switch { case err != nil: return err @@ -81,8 +81,8 @@ func (udo *UserDeleteOne) Exec(ctx context.Context) error { } // ExecX is like Exec, but panics if an error occurs. -func (udo *UserDeleteOne) ExecX(ctx context.Context) { - if err := udo.Exec(ctx); err != nil { +func (_d *UserDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { panic(err) } } diff --git a/ent/user_query.go b/ent/user_query.go index 2320490..55c3057 100644 --- a/ent/user_query.go +++ b/ent/user_query.go @@ -34,44 +34,44 @@ type UserQuery struct { } // Where adds a new predicate for the UserQuery builder. -func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery { - uq.predicates = append(uq.predicates, ps...) - return uq +func (_q *UserQuery) Where(ps ...predicate.User) *UserQuery { + _q.predicates = append(_q.predicates, ps...) + return _q } // Limit the number of records to be returned by this query. -func (uq *UserQuery) Limit(limit int) *UserQuery { - uq.ctx.Limit = &limit - return uq +func (_q *UserQuery) Limit(limit int) *UserQuery { + _q.ctx.Limit = &limit + return _q } // Offset to start from. -func (uq *UserQuery) Offset(offset int) *UserQuery { - uq.ctx.Offset = &offset - return uq +func (_q *UserQuery) Offset(offset int) *UserQuery { + _q.ctx.Offset = &offset + return _q } // Unique configures the query builder to filter duplicate records on query. // By default, unique is set to true, and can be disabled using this method. -func (uq *UserQuery) Unique(unique bool) *UserQuery { - uq.ctx.Unique = &unique - return uq +func (_q *UserQuery) Unique(unique bool) *UserQuery { + _q.ctx.Unique = &unique + return _q } // Order specifies how the records should be ordered. -func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery { - uq.order = append(uq.order, o...) - return uq +func (_q *UserQuery) Order(o ...user.OrderOption) *UserQuery { + _q.order = append(_q.order, o...) + return _q } // QueryOwner chains the current query on the "owner" edge. -func (uq *UserQuery) QueryOwner() *PasswordTokenQuery { - query := (&PasswordTokenClient{config: uq.config}).Query() +func (_q *UserQuery) QueryOwner() *PasswordTokenQuery { + query := (&PasswordTokenClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := uq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := uq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -80,20 +80,20 @@ func (uq *UserQuery) QueryOwner() *PasswordTokenQuery { sqlgraph.To(passwordtoken.Table, passwordtoken.FieldID), sqlgraph.Edge(sqlgraph.O2M, true, user.OwnerTable, user.OwnerColumn), ) - fromU = sqlgraph.SetNeighbors(uq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query } // QueryPaymentCustomer chains the current query on the "payment_customer" edge. -func (uq *UserQuery) QueryPaymentCustomer() *PaymentCustomerQuery { - query := (&PaymentCustomerClient{config: uq.config}).Query() +func (_q *UserQuery) QueryPaymentCustomer() *PaymentCustomerQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { - if err := uq.prepareQuery(ctx); err != nil { + if err := _q.prepareQuery(ctx); err != nil { return nil, err } - selector := uq.sqlQuery(ctx) + selector := _q.sqlQuery(ctx) if err := selector.Err(); err != nil { return nil, err } @@ -102,7 +102,7 @@ func (uq *UserQuery) QueryPaymentCustomer() *PaymentCustomerQuery { sqlgraph.To(paymentcustomer.Table, paymentcustomer.FieldID), sqlgraph.Edge(sqlgraph.O2O, true, user.PaymentCustomerTable, user.PaymentCustomerColumn), ) - fromU = sqlgraph.SetNeighbors(uq.driver.Dialect(), step) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) return fromU, nil } return query @@ -110,8 +110,8 @@ func (uq *UserQuery) QueryPaymentCustomer() *PaymentCustomerQuery { // First returns the first User entity from the query. // Returns a *NotFoundError when no User was found. -func (uq *UserQuery) First(ctx context.Context) (*User, error) { - nodes, err := uq.Limit(1).All(setContextOp(ctx, uq.ctx, ent.OpQueryFirst)) +func (_q *UserQuery) First(ctx context.Context) (*User, error) { + nodes, err := _q.Limit(1).All(setContextOp(ctx, _q.ctx, ent.OpQueryFirst)) if err != nil { return nil, err } @@ -122,8 +122,8 @@ func (uq *UserQuery) First(ctx context.Context) (*User, error) { } // FirstX is like First, but panics if an error occurs. -func (uq *UserQuery) FirstX(ctx context.Context) *User { - node, err := uq.First(ctx) +func (_q *UserQuery) FirstX(ctx context.Context) *User { + node, err := _q.First(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -132,9 +132,9 @@ func (uq *UserQuery) FirstX(ctx context.Context) *User { // FirstID returns the first User ID from the query. // Returns a *NotFoundError when no User ID was found. -func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) { +func (_q *UserQuery) FirstID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = uq.Limit(1).IDs(setContextOp(ctx, uq.ctx, ent.OpQueryFirstID)); err != nil { + if ids, err = _q.Limit(1).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryFirstID)); err != nil { return } if len(ids) == 0 { @@ -145,8 +145,8 @@ func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) { } // FirstIDX is like FirstID, but panics if an error occurs. -func (uq *UserQuery) FirstIDX(ctx context.Context) int { - id, err := uq.FirstID(ctx) +func (_q *UserQuery) FirstIDX(ctx context.Context) int { + id, err := _q.FirstID(ctx) if err != nil && !IsNotFound(err) { panic(err) } @@ -156,8 +156,8 @@ func (uq *UserQuery) FirstIDX(ctx context.Context) int { // Only returns a single User entity found by the query, ensuring it only returns one. // Returns a *NotSingularError when more than one User entity is found. // Returns a *NotFoundError when no User entities are found. -func (uq *UserQuery) Only(ctx context.Context) (*User, error) { - nodes, err := uq.Limit(2).All(setContextOp(ctx, uq.ctx, ent.OpQueryOnly)) +func (_q *UserQuery) Only(ctx context.Context) (*User, error) { + nodes, err := _q.Limit(2).All(setContextOp(ctx, _q.ctx, ent.OpQueryOnly)) if err != nil { return nil, err } @@ -172,8 +172,8 @@ func (uq *UserQuery) Only(ctx context.Context) (*User, error) { } // OnlyX is like Only, but panics if an error occurs. -func (uq *UserQuery) OnlyX(ctx context.Context) *User { - node, err := uq.Only(ctx) +func (_q *UserQuery) OnlyX(ctx context.Context) *User { + node, err := _q.Only(ctx) if err != nil { panic(err) } @@ -183,9 +183,9 @@ func (uq *UserQuery) OnlyX(ctx context.Context) *User { // OnlyID is like Only, but returns the only User ID in the query. // Returns a *NotSingularError when more than one User ID is found. // Returns a *NotFoundError when no entities are found. -func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) { +func (_q *UserQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int - if ids, err = uq.Limit(2).IDs(setContextOp(ctx, uq.ctx, ent.OpQueryOnlyID)); err != nil { + if ids, err = _q.Limit(2).IDs(setContextOp(ctx, _q.ctx, ent.OpQueryOnlyID)); err != nil { return } switch len(ids) { @@ -200,8 +200,8 @@ func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) { } // OnlyIDX is like OnlyID, but panics if an error occurs. -func (uq *UserQuery) OnlyIDX(ctx context.Context) int { - id, err := uq.OnlyID(ctx) +func (_q *UserQuery) OnlyIDX(ctx context.Context) int { + id, err := _q.OnlyID(ctx) if err != nil { panic(err) } @@ -209,18 +209,18 @@ func (uq *UserQuery) OnlyIDX(ctx context.Context) int { } // All executes the query and returns a list of Users. -func (uq *UserQuery) All(ctx context.Context) ([]*User, error) { - ctx = setContextOp(ctx, uq.ctx, ent.OpQueryAll) - if err := uq.prepareQuery(ctx); err != nil { +func (_q *UserQuery) All(ctx context.Context) ([]*User, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { return nil, err } qr := querierAll[[]*User, *UserQuery]() - return withInterceptors[[]*User](ctx, uq, qr, uq.inters) + return withInterceptors[[]*User](ctx, _q, qr, _q.inters) } // AllX is like All, but panics if an error occurs. -func (uq *UserQuery) AllX(ctx context.Context) []*User { - nodes, err := uq.All(ctx) +func (_q *UserQuery) AllX(ctx context.Context) []*User { + nodes, err := _q.All(ctx) if err != nil { panic(err) } @@ -228,20 +228,20 @@ func (uq *UserQuery) AllX(ctx context.Context) []*User { } // IDs executes the query and returns a list of User IDs. -func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error) { - if uq.ctx.Unique == nil && uq.path != nil { - uq.Unique(true) +func (_q *UserQuery) IDs(ctx context.Context) (ids []int, err error) { + if _q.ctx.Unique == nil && _q.path != nil { + _q.Unique(true) } - ctx = setContextOp(ctx, uq.ctx, ent.OpQueryIDs) - if err = uq.Select(user.FieldID).Scan(ctx, &ids); err != nil { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs) + if err = _q.Select(user.FieldID).Scan(ctx, &ids); err != nil { return nil, err } return ids, nil } // IDsX is like IDs, but panics if an error occurs. -func (uq *UserQuery) IDsX(ctx context.Context) []int { - ids, err := uq.IDs(ctx) +func (_q *UserQuery) IDsX(ctx context.Context) []int { + ids, err := _q.IDs(ctx) if err != nil { panic(err) } @@ -249,17 +249,17 @@ func (uq *UserQuery) IDsX(ctx context.Context) []int { } // Count returns the count of the given query. -func (uq *UserQuery) Count(ctx context.Context) (int, error) { - ctx = setContextOp(ctx, uq.ctx, ent.OpQueryCount) - if err := uq.prepareQuery(ctx); err != nil { +func (_q *UserQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount) + if err := _q.prepareQuery(ctx); err != nil { return 0, err } - return withInterceptors[int](ctx, uq, querierCount[*UserQuery](), uq.inters) + return withInterceptors[int](ctx, _q, querierCount[*UserQuery](), _q.inters) } // CountX is like Count, but panics if an error occurs. -func (uq *UserQuery) CountX(ctx context.Context) int { - count, err := uq.Count(ctx) +func (_q *UserQuery) CountX(ctx context.Context) int { + count, err := _q.Count(ctx) if err != nil { panic(err) } @@ -267,9 +267,9 @@ func (uq *UserQuery) CountX(ctx context.Context) int { } // Exist returns true if the query has elements in the graph. -func (uq *UserQuery) Exist(ctx context.Context) (bool, error) { - ctx = setContextOp(ctx, uq.ctx, ent.OpQueryExist) - switch _, err := uq.FirstID(ctx); { +func (_q *UserQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryExist) + switch _, err := _q.FirstID(ctx); { case IsNotFound(err): return false, nil case err != nil: @@ -280,8 +280,8 @@ func (uq *UserQuery) Exist(ctx context.Context) (bool, error) { } // ExistX is like Exist, but panics if an error occurs. -func (uq *UserQuery) ExistX(ctx context.Context) bool { - exist, err := uq.Exist(ctx) +func (_q *UserQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) if err != nil { panic(err) } @@ -290,44 +290,44 @@ func (uq *UserQuery) ExistX(ctx context.Context) bool { // Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be // used to prepare common query builders and use them differently after the clone is made. -func (uq *UserQuery) Clone() *UserQuery { - if uq == nil { +func (_q *UserQuery) Clone() *UserQuery { + if _q == nil { return nil } return &UserQuery{ - config: uq.config, - ctx: uq.ctx.Clone(), - order: append([]user.OrderOption{}, uq.order...), - inters: append([]Interceptor{}, uq.inters...), - predicates: append([]predicate.User{}, uq.predicates...), - withOwner: uq.withOwner.Clone(), - withPaymentCustomer: uq.withPaymentCustomer.Clone(), + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]user.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.User{}, _q.predicates...), + withOwner: _q.withOwner.Clone(), + withPaymentCustomer: _q.withPaymentCustomer.Clone(), // clone intermediate query. - sql: uq.sql.Clone(), - path: uq.path, + sql: _q.sql.Clone(), + path: _q.path, } } // WithOwner tells the query-builder to eager-load the nodes that are connected to // the "owner" edge. The optional arguments are used to configure the query builder of the edge. -func (uq *UserQuery) WithOwner(opts ...func(*PasswordTokenQuery)) *UserQuery { - query := (&PasswordTokenClient{config: uq.config}).Query() +func (_q *UserQuery) WithOwner(opts ...func(*PasswordTokenQuery)) *UserQuery { + query := (&PasswordTokenClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - uq.withOwner = query - return uq + _q.withOwner = query + return _q } // WithPaymentCustomer tells the query-builder to eager-load the nodes that are connected to // the "payment_customer" edge. The optional arguments are used to configure the query builder of the edge. -func (uq *UserQuery) WithPaymentCustomer(opts ...func(*PaymentCustomerQuery)) *UserQuery { - query := (&PaymentCustomerClient{config: uq.config}).Query() +func (_q *UserQuery) WithPaymentCustomer(opts ...func(*PaymentCustomerQuery)) *UserQuery { + query := (&PaymentCustomerClient{config: _q.config}).Query() for _, opt := range opts { opt(query) } - uq.withPaymentCustomer = query - return uq + _q.withPaymentCustomer = query + return _q } // GroupBy is used to group vertices by one or more fields/columns. @@ -344,10 +344,10 @@ func (uq *UserQuery) WithPaymentCustomer(opts ...func(*PaymentCustomerQuery)) *U // GroupBy(user.FieldName). // Aggregate(ent.Count()). // Scan(ctx, &v) -func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy { - uq.ctx.Fields = append([]string{field}, fields...) - grbuild := &UserGroupBy{build: uq} - grbuild.flds = &uq.ctx.Fields +func (_q *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &UserGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields grbuild.label = user.Label grbuild.scan = grbuild.Scan return grbuild @@ -365,56 +365,56 @@ func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy { // client.User.Query(). // Select(user.FieldName). // Scan(ctx, &v) -func (uq *UserQuery) Select(fields ...string) *UserSelect { - uq.ctx.Fields = append(uq.ctx.Fields, fields...) - sbuild := &UserSelect{UserQuery: uq} +func (_q *UserQuery) Select(fields ...string) *UserSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &UserSelect{UserQuery: _q} sbuild.label = user.Label - sbuild.flds, sbuild.scan = &uq.ctx.Fields, sbuild.Scan + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan return sbuild } // Aggregate returns a UserSelect configured with the given aggregations. -func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect { - return uq.Select().Aggregate(fns...) +func (_q *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect { + return _q.Select().Aggregate(fns...) } -func (uq *UserQuery) prepareQuery(ctx context.Context) error { - for _, inter := range uq.inters { +func (_q *UserQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { if inter == nil { return fmt.Errorf("ent: uninitialized interceptor (forgotten import ent/runtime?)") } if trv, ok := inter.(Traverser); ok { - if err := trv.Traverse(ctx, uq); err != nil { + if err := trv.Traverse(ctx, _q); err != nil { return err } } } - for _, f := range uq.ctx.Fields { + for _, f := range _q.ctx.Fields { if !user.ValidColumn(f) { return &ValidationError{Name: f, err: fmt.Errorf("ent: invalid field %q for query", f)} } } - if uq.path != nil { - prev, err := uq.path(ctx) + if _q.path != nil { + prev, err := _q.path(ctx) if err != nil { return err } - uq.sql = prev + _q.sql = prev } return nil } -func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, error) { +func (_q *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, error) { var ( nodes = []*User{} - withFKs = uq.withFKs - _spec = uq.querySpec() + withFKs = _q.withFKs + _spec = _q.querySpec() loadedTypes = [2]bool{ - uq.withOwner != nil, - uq.withPaymentCustomer != nil, + _q.withOwner != nil, + _q.withPaymentCustomer != nil, } ) - if uq.withPaymentCustomer != nil { + if _q.withPaymentCustomer != nil { withFKs = true } if withFKs { @@ -424,7 +424,7 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e return (*User).scanValues(nil, columns) } _spec.Assign = func(columns []string, values []any) error { - node := &User{config: uq.config} + node := &User{config: _q.config} nodes = append(nodes, node) node.Edges.loadedTypes = loadedTypes return node.assignValues(columns, values) @@ -432,21 +432,21 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e for i := range hooks { hooks[i](ctx, _spec) } - if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { + if err := sqlgraph.QueryNodes(ctx, _q.driver, _spec); err != nil { return nil, err } if len(nodes) == 0 { return nodes, nil } - if query := uq.withOwner; query != nil { - if err := uq.loadOwner(ctx, query, nodes, + if query := _q.withOwner; query != nil { + if err := _q.loadOwner(ctx, query, nodes, func(n *User) { n.Edges.Owner = []*PasswordToken{} }, func(n *User, e *PasswordToken) { n.Edges.Owner = append(n.Edges.Owner, e) }); err != nil { return nil, err } } - if query := uq.withPaymentCustomer; query != nil { - if err := uq.loadPaymentCustomer(ctx, query, nodes, nil, + if query := _q.withPaymentCustomer; query != nil { + if err := _q.loadPaymentCustomer(ctx, query, nodes, nil, func(n *User, e *PaymentCustomer) { n.Edges.PaymentCustomer = e }); err != nil { return nil, err } @@ -454,7 +454,7 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e return nodes, nil } -func (uq *UserQuery) loadOwner(ctx context.Context, query *PasswordTokenQuery, nodes []*User, init func(*User), assign func(*User, *PasswordToken)) error { +func (_q *UserQuery) loadOwner(ctx context.Context, query *PasswordTokenQuery, nodes []*User, init func(*User), assign func(*User, *PasswordToken)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[int]*User) for i := range nodes { @@ -484,7 +484,7 @@ func (uq *UserQuery) loadOwner(ctx context.Context, query *PasswordTokenQuery, n } return nil } -func (uq *UserQuery) loadPaymentCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*User, init func(*User), assign func(*User, *PaymentCustomer)) error { +func (_q *UserQuery) loadPaymentCustomer(ctx context.Context, query *PaymentCustomerQuery, nodes []*User, init func(*User), assign func(*User, *PaymentCustomer)) error { ids := make([]int, 0, len(nodes)) nodeids := make(map[int][]*User) for i := range nodes { @@ -517,24 +517,24 @@ func (uq *UserQuery) loadPaymentCustomer(ctx context.Context, query *PaymentCust return nil } -func (uq *UserQuery) sqlCount(ctx context.Context) (int, error) { - _spec := uq.querySpec() - _spec.Node.Columns = uq.ctx.Fields - if len(uq.ctx.Fields) > 0 { - _spec.Unique = uq.ctx.Unique != nil && *uq.ctx.Unique +func (_q *UserQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + _spec.Node.Columns = _q.ctx.Fields + if len(_q.ctx.Fields) > 0 { + _spec.Unique = _q.ctx.Unique != nil && *_q.ctx.Unique } - return sqlgraph.CountNodes(ctx, uq.driver, _spec) + return sqlgraph.CountNodes(ctx, _q.driver, _spec) } -func (uq *UserQuery) querySpec() *sqlgraph.QuerySpec { +func (_q *UserQuery) querySpec() *sqlgraph.QuerySpec { _spec := sqlgraph.NewQuerySpec(user.Table, user.Columns, sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt)) - _spec.From = uq.sql - if unique := uq.ctx.Unique; unique != nil { + _spec.From = _q.sql + if unique := _q.ctx.Unique; unique != nil { _spec.Unique = *unique - } else if uq.path != nil { + } else if _q.path != nil { _spec.Unique = true } - if fields := uq.ctx.Fields; len(fields) > 0 { + if fields := _q.ctx.Fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, user.FieldID) for i := range fields { @@ -543,20 +543,20 @@ func (uq *UserQuery) querySpec() *sqlgraph.QuerySpec { } } } - if ps := uq.predicates; len(ps) > 0 { + if ps := _q.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if limit := uq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { _spec.Limit = *limit } - if offset := uq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { _spec.Offset = *offset } - if ps := uq.order; len(ps) > 0 { + if ps := _q.order; len(ps) > 0 { _spec.Order = func(selector *sql.Selector) { for i := range ps { ps[i](selector) @@ -566,33 +566,33 @@ func (uq *UserQuery) querySpec() *sqlgraph.QuerySpec { return _spec } -func (uq *UserQuery) sqlQuery(ctx context.Context) *sql.Selector { - builder := sql.Dialect(uq.driver.Dialect()) +func (_q *UserQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) t1 := builder.Table(user.Table) - columns := uq.ctx.Fields + columns := _q.ctx.Fields if len(columns) == 0 { columns = user.Columns } selector := builder.Select(t1.Columns(columns...)...).From(t1) - if uq.sql != nil { - selector = uq.sql + if _q.sql != nil { + selector = _q.sql selector.Select(selector.Columns(columns...)...) } - if uq.ctx.Unique != nil && *uq.ctx.Unique { + if _q.ctx.Unique != nil && *_q.ctx.Unique { selector.Distinct() } - for _, p := range uq.predicates { + for _, p := range _q.predicates { p(selector) } - for _, p := range uq.order { + for _, p := range _q.order { p(selector) } - if offset := uq.ctx.Offset; offset != nil { + if offset := _q.ctx.Offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. selector.Offset(*offset).Limit(math.MaxInt32) } - if limit := uq.ctx.Limit; limit != nil { + if limit := _q.ctx.Limit; limit != nil { selector.Limit(*limit) } return selector @@ -605,41 +605,41 @@ type UserGroupBy struct { } // Aggregate adds the given aggregation functions to the group-by query. -func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy { - ugb.fns = append(ugb.fns, fns...) - return ugb +func (_g *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy { + _g.fns = append(_g.fns, fns...) + return _g } // Scan applies the selector query and scans the result into the given value. -func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, ugb.build.ctx, ent.OpQueryGroupBy) - if err := ugb.build.prepareQuery(ctx); err != nil { +func (_g *UserGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*UserQuery, *UserGroupBy](ctx, ugb.build, ugb, ugb.build.inters, v) + return scanWithInterceptors[*UserQuery, *UserGroupBy](ctx, _g.build, _g, _g.build.inters, v) } -func (ugb *UserGroupBy) sqlScan(ctx context.Context, root *UserQuery, v any) error { +func (_g *UserGroupBy) sqlScan(ctx context.Context, root *UserQuery, v any) error { selector := root.sqlQuery(ctx).Select() - aggregation := make([]string, 0, len(ugb.fns)) - for _, fn := range ugb.fns { + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { aggregation = append(aggregation, fn(selector)) } if len(selector.SelectedColumns()) == 0 { - columns := make([]string, 0, len(*ugb.flds)+len(ugb.fns)) - for _, f := range *ugb.flds { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { columns = append(columns, selector.C(f)) } columns = append(columns, aggregation...) selector.Select(columns...) } - selector.GroupBy(selector.Columns(*ugb.flds...)...) + selector.GroupBy(selector.Columns(*_g.flds...)...) if err := selector.Err(); err != nil { return err } rows := &sql.Rows{} query, args := selector.Query() - if err := ugb.build.driver.Query(ctx, query, args, rows); err != nil { + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() @@ -653,27 +653,27 @@ type UserSelect struct { } // Aggregate adds the given aggregation functions to the selector query. -func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect { - us.fns = append(us.fns, fns...) - return us +func (_s *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect { + _s.fns = append(_s.fns, fns...) + return _s } // Scan applies the selector query and scans the result into the given value. -func (us *UserSelect) Scan(ctx context.Context, v any) error { - ctx = setContextOp(ctx, us.ctx, ent.OpQuerySelect) - if err := us.prepareQuery(ctx); err != nil { +func (_s *UserSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { return err } - return scanWithInterceptors[*UserQuery, *UserSelect](ctx, us.UserQuery, us, us.inters, v) + return scanWithInterceptors[*UserQuery, *UserSelect](ctx, _s.UserQuery, _s, _s.inters, v) } -func (us *UserSelect) sqlScan(ctx context.Context, root *UserQuery, v any) error { +func (_s *UserSelect) sqlScan(ctx context.Context, root *UserQuery, v any) error { selector := root.sqlQuery(ctx) - aggregation := make([]string, 0, len(us.fns)) - for _, fn := range us.fns { + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { aggregation = append(aggregation, fn(selector)) } - switch n := len(*us.selector.flds); { + switch n := len(*_s.selector.flds); { case n == 0 && len(aggregation) > 0: selector.Select(aggregation...) case n != 0 && len(aggregation) > 0: @@ -681,7 +681,7 @@ func (us *UserSelect) sqlScan(ctx context.Context, root *UserQuery, v any) error } rows := &sql.Rows{} query, args := selector.Query() - if err := us.driver.Query(ctx, query, args, rows); err != nil { + if err := _s.driver.Query(ctx, query, args, rows); err != nil { return err } defer rows.Close() diff --git a/ent/user_update.go b/ent/user_update.go index ee94135..c4d94bd 100644 --- a/ent/user_update.go +++ b/ent/user_update.go @@ -24,155 +24,155 @@ type UserUpdate struct { } // Where appends a list predicates to the UserUpdate builder. -func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.mutation.Where(ps...) - return uu +func (_u *UserUpdate) Where(ps ...predicate.User) *UserUpdate { + _u.mutation.Where(ps...) + return _u } // SetName sets the "name" field. -func (uu *UserUpdate) SetName(s string) *UserUpdate { - uu.mutation.SetName(s) - return uu +func (_u *UserUpdate) SetName(v string) *UserUpdate { + _u.mutation.SetName(v) + return _u } // SetNillableName sets the "name" field if the given value is not nil. -func (uu *UserUpdate) SetNillableName(s *string) *UserUpdate { - if s != nil { - uu.SetName(*s) +func (_u *UserUpdate) SetNillableName(v *string) *UserUpdate { + if v != nil { + _u.SetName(*v) } - return uu + return _u } // SetEmail sets the "email" field. -func (uu *UserUpdate) SetEmail(s string) *UserUpdate { - uu.mutation.SetEmail(s) - return uu +func (_u *UserUpdate) SetEmail(v string) *UserUpdate { + _u.mutation.SetEmail(v) + return _u } // SetNillableEmail sets the "email" field if the given value is not nil. -func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate { - if s != nil { - uu.SetEmail(*s) +func (_u *UserUpdate) SetNillableEmail(v *string) *UserUpdate { + if v != nil { + _u.SetEmail(*v) } - return uu + return _u } // SetPassword sets the "password" field. -func (uu *UserUpdate) SetPassword(s string) *UserUpdate { - uu.mutation.SetPassword(s) - return uu +func (_u *UserUpdate) SetPassword(v string) *UserUpdate { + _u.mutation.SetPassword(v) + return _u } // SetNillablePassword sets the "password" field if the given value is not nil. -func (uu *UserUpdate) SetNillablePassword(s *string) *UserUpdate { - if s != nil { - uu.SetPassword(*s) +func (_u *UserUpdate) SetNillablePassword(v *string) *UserUpdate { + if v != nil { + _u.SetPassword(*v) } - return uu + return _u } // SetVerified sets the "verified" field. -func (uu *UserUpdate) SetVerified(b bool) *UserUpdate { - uu.mutation.SetVerified(b) - return uu +func (_u *UserUpdate) SetVerified(v bool) *UserUpdate { + _u.mutation.SetVerified(v) + return _u } // SetNillableVerified sets the "verified" field if the given value is not nil. -func (uu *UserUpdate) SetNillableVerified(b *bool) *UserUpdate { - if b != nil { - uu.SetVerified(*b) +func (_u *UserUpdate) SetNillableVerified(v *bool) *UserUpdate { + if v != nil { + _u.SetVerified(*v) } - return uu + return _u } // SetAdmin sets the "admin" field. -func (uu *UserUpdate) SetAdmin(b bool) *UserUpdate { - uu.mutation.SetAdmin(b) - return uu +func (_u *UserUpdate) SetAdmin(v bool) *UserUpdate { + _u.mutation.SetAdmin(v) + return _u } // SetNillableAdmin sets the "admin" field if the given value is not nil. -func (uu *UserUpdate) SetNillableAdmin(b *bool) *UserUpdate { - if b != nil { - uu.SetAdmin(*b) +func (_u *UserUpdate) SetNillableAdmin(v *bool) *UserUpdate { + if v != nil { + _u.SetAdmin(*v) } - return uu + return _u } // AddOwnerIDs adds the "owner" edge to the PasswordToken entity by IDs. -func (uu *UserUpdate) AddOwnerIDs(ids ...int) *UserUpdate { - uu.mutation.AddOwnerIDs(ids...) - return uu +func (_u *UserUpdate) AddOwnerIDs(ids ...int) *UserUpdate { + _u.mutation.AddOwnerIDs(ids...) + return _u } // AddOwner adds the "owner" edges to the PasswordToken entity. -func (uu *UserUpdate) AddOwner(p ...*PasswordToken) *UserUpdate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *UserUpdate) AddOwner(v ...*PasswordToken) *UserUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return uu.AddOwnerIDs(ids...) + return _u.AddOwnerIDs(ids...) } // SetPaymentCustomerID sets the "payment_customer" edge to the PaymentCustomer entity by ID. -func (uu *UserUpdate) SetPaymentCustomerID(id int) *UserUpdate { - uu.mutation.SetPaymentCustomerID(id) - return uu +func (_u *UserUpdate) SetPaymentCustomerID(id int) *UserUpdate { + _u.mutation.SetPaymentCustomerID(id) + return _u } // SetNillablePaymentCustomerID sets the "payment_customer" edge to the PaymentCustomer entity by ID if the given value is not nil. -func (uu *UserUpdate) SetNillablePaymentCustomerID(id *int) *UserUpdate { +func (_u *UserUpdate) SetNillablePaymentCustomerID(id *int) *UserUpdate { if id != nil { - uu = uu.SetPaymentCustomerID(*id) + _u = _u.SetPaymentCustomerID(*id) } - return uu + return _u } // SetPaymentCustomer sets the "payment_customer" edge to the PaymentCustomer entity. -func (uu *UserUpdate) SetPaymentCustomer(p *PaymentCustomer) *UserUpdate { - return uu.SetPaymentCustomerID(p.ID) +func (_u *UserUpdate) SetPaymentCustomer(v *PaymentCustomer) *UserUpdate { + return _u.SetPaymentCustomerID(v.ID) } // Mutation returns the UserMutation object of the builder. -func (uu *UserUpdate) Mutation() *UserMutation { - return uu.mutation +func (_u *UserUpdate) Mutation() *UserMutation { + return _u.mutation } // ClearOwner clears all "owner" edges to the PasswordToken entity. -func (uu *UserUpdate) ClearOwner() *UserUpdate { - uu.mutation.ClearOwner() - return uu +func (_u *UserUpdate) ClearOwner() *UserUpdate { + _u.mutation.ClearOwner() + return _u } // RemoveOwnerIDs removes the "owner" edge to PasswordToken entities by IDs. -func (uu *UserUpdate) RemoveOwnerIDs(ids ...int) *UserUpdate { - uu.mutation.RemoveOwnerIDs(ids...) - return uu +func (_u *UserUpdate) RemoveOwnerIDs(ids ...int) *UserUpdate { + _u.mutation.RemoveOwnerIDs(ids...) + return _u } // RemoveOwner removes "owner" edges to PasswordToken entities. -func (uu *UserUpdate) RemoveOwner(p ...*PasswordToken) *UserUpdate { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *UserUpdate) RemoveOwner(v ...*PasswordToken) *UserUpdate { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return uu.RemoveOwnerIDs(ids...) + return _u.RemoveOwnerIDs(ids...) } // ClearPaymentCustomer clears the "payment_customer" edge to the PaymentCustomer entity. -func (uu *UserUpdate) ClearPaymentCustomer() *UserUpdate { - uu.mutation.ClearPaymentCustomer() - return uu +func (_u *UserUpdate) ClearPaymentCustomer() *UserUpdate { + _u.mutation.ClearPaymentCustomer() + return _u } // Save executes the query and returns the number of nodes affected by the update operation. -func (uu *UserUpdate) Save(ctx context.Context) (int, error) { - return withHooks(ctx, uu.sqlSave, uu.mutation, uu.hooks) +func (_u *UserUpdate) Save(ctx context.Context) (int, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (uu *UserUpdate) SaveX(ctx context.Context) int { - affected, err := uu.Save(ctx) +func (_u *UserUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) if err != nil { panic(err) } @@ -180,31 +180,31 @@ func (uu *UserUpdate) SaveX(ctx context.Context) int { } // Exec executes the query. -func (uu *UserUpdate) Exec(ctx context.Context) error { - _, err := uu.Save(ctx) +func (_u *UserUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (uu *UserUpdate) ExecX(ctx context.Context) { - if err := uu.Exec(ctx); err != nil { +func (_u *UserUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // check runs all checks and user-defined validators on the builder. -func (uu *UserUpdate) check() error { - if v, ok := uu.mutation.Name(); ok { +func (_u *UserUpdate) check() error { + if v, ok := _u.mutation.Name(); ok { if err := user.NameValidator(v); err != nil { return &ValidationError{Name: "name", err: fmt.Errorf(`ent: validator failed for field "User.name": %w`, err)} } } - if v, ok := uu.mutation.Email(); ok { + if v, ok := _u.mutation.Email(); ok { if err := user.EmailValidator(v); err != nil { return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "User.email": %w`, err)} } } - if v, ok := uu.mutation.Password(); ok { + if v, ok := _u.mutation.Password(); ok { if err := user.PasswordValidator(v); err != nil { return &ValidationError{Name: "password", err: fmt.Errorf(`ent: validator failed for field "User.password": %w`, err)} } @@ -212,34 +212,34 @@ func (uu *UserUpdate) check() error { return nil } -func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := uu.check(); err != nil { - return n, err +func (_u *UserUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err } _spec := sqlgraph.NewUpdateSpec(user.Table, user.Columns, sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt)) - if ps := uu.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := uu.mutation.Name(); ok { + if value, ok := _u.mutation.Name(); ok { _spec.SetField(user.FieldName, field.TypeString, value) } - if value, ok := uu.mutation.Email(); ok { + if value, ok := _u.mutation.Email(); ok { _spec.SetField(user.FieldEmail, field.TypeString, value) } - if value, ok := uu.mutation.Password(); ok { + if value, ok := _u.mutation.Password(); ok { _spec.SetField(user.FieldPassword, field.TypeString, value) } - if value, ok := uu.mutation.Verified(); ok { + if value, ok := _u.mutation.Verified(); ok { _spec.SetField(user.FieldVerified, field.TypeBool, value) } - if value, ok := uu.mutation.Admin(); ok { + if value, ok := _u.mutation.Admin(); ok { _spec.SetField(user.FieldAdmin, field.TypeBool, value) } - if uu.mutation.OwnerCleared() { + if _u.mutation.OwnerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -252,7 +252,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := uu.mutation.RemovedOwnerIDs(); len(nodes) > 0 && !uu.mutation.OwnerCleared() { + if nodes := _u.mutation.RemovedOwnerIDs(); len(nodes) > 0 && !_u.mutation.OwnerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -268,7 +268,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := uu.mutation.OwnerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.OwnerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -284,7 +284,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if uu.mutation.PaymentCustomerCleared() { + if _u.mutation.PaymentCustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: true, @@ -297,7 +297,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := uu.mutation.PaymentCustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PaymentCustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: true, @@ -313,7 +313,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if n, err = sqlgraph.UpdateNodes(ctx, uu.driver, _spec); err != nil { + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{user.Label} } else if sqlgraph.IsConstraintError(err) { @@ -321,8 +321,8 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } return 0, err } - uu.mutation.done = true - return n, nil + _u.mutation.done = true + return _node, nil } // UserUpdateOne is the builder for updating a single User entity. @@ -334,162 +334,162 @@ type UserUpdateOne struct { } // SetName sets the "name" field. -func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne { - uuo.mutation.SetName(s) - return uuo +func (_u *UserUpdateOne) SetName(v string) *UserUpdateOne { + _u.mutation.SetName(v) + return _u } // SetNillableName sets the "name" field if the given value is not nil. -func (uuo *UserUpdateOne) SetNillableName(s *string) *UserUpdateOne { - if s != nil { - uuo.SetName(*s) +func (_u *UserUpdateOne) SetNillableName(v *string) *UserUpdateOne { + if v != nil { + _u.SetName(*v) } - return uuo + return _u } // SetEmail sets the "email" field. -func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne { - uuo.mutation.SetEmail(s) - return uuo +func (_u *UserUpdateOne) SetEmail(v string) *UserUpdateOne { + _u.mutation.SetEmail(v) + return _u } // SetNillableEmail sets the "email" field if the given value is not nil. -func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne { - if s != nil { - uuo.SetEmail(*s) +func (_u *UserUpdateOne) SetNillableEmail(v *string) *UserUpdateOne { + if v != nil { + _u.SetEmail(*v) } - return uuo + return _u } // SetPassword sets the "password" field. -func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne { - uuo.mutation.SetPassword(s) - return uuo +func (_u *UserUpdateOne) SetPassword(v string) *UserUpdateOne { + _u.mutation.SetPassword(v) + return _u } // SetNillablePassword sets the "password" field if the given value is not nil. -func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne { - if s != nil { - uuo.SetPassword(*s) +func (_u *UserUpdateOne) SetNillablePassword(v *string) *UserUpdateOne { + if v != nil { + _u.SetPassword(*v) } - return uuo + return _u } // SetVerified sets the "verified" field. -func (uuo *UserUpdateOne) SetVerified(b bool) *UserUpdateOne { - uuo.mutation.SetVerified(b) - return uuo +func (_u *UserUpdateOne) SetVerified(v bool) *UserUpdateOne { + _u.mutation.SetVerified(v) + return _u } // SetNillableVerified sets the "verified" field if the given value is not nil. -func (uuo *UserUpdateOne) SetNillableVerified(b *bool) *UserUpdateOne { - if b != nil { - uuo.SetVerified(*b) +func (_u *UserUpdateOne) SetNillableVerified(v *bool) *UserUpdateOne { + if v != nil { + _u.SetVerified(*v) } - return uuo + return _u } // SetAdmin sets the "admin" field. -func (uuo *UserUpdateOne) SetAdmin(b bool) *UserUpdateOne { - uuo.mutation.SetAdmin(b) - return uuo +func (_u *UserUpdateOne) SetAdmin(v bool) *UserUpdateOne { + _u.mutation.SetAdmin(v) + return _u } // SetNillableAdmin sets the "admin" field if the given value is not nil. -func (uuo *UserUpdateOne) SetNillableAdmin(b *bool) *UserUpdateOne { - if b != nil { - uuo.SetAdmin(*b) +func (_u *UserUpdateOne) SetNillableAdmin(v *bool) *UserUpdateOne { + if v != nil { + _u.SetAdmin(*v) } - return uuo + return _u } // AddOwnerIDs adds the "owner" edge to the PasswordToken entity by IDs. -func (uuo *UserUpdateOne) AddOwnerIDs(ids ...int) *UserUpdateOne { - uuo.mutation.AddOwnerIDs(ids...) - return uuo +func (_u *UserUpdateOne) AddOwnerIDs(ids ...int) *UserUpdateOne { + _u.mutation.AddOwnerIDs(ids...) + return _u } // AddOwner adds the "owner" edges to the PasswordToken entity. -func (uuo *UserUpdateOne) AddOwner(p ...*PasswordToken) *UserUpdateOne { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *UserUpdateOne) AddOwner(v ...*PasswordToken) *UserUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return uuo.AddOwnerIDs(ids...) + return _u.AddOwnerIDs(ids...) } // SetPaymentCustomerID sets the "payment_customer" edge to the PaymentCustomer entity by ID. -func (uuo *UserUpdateOne) SetPaymentCustomerID(id int) *UserUpdateOne { - uuo.mutation.SetPaymentCustomerID(id) - return uuo +func (_u *UserUpdateOne) SetPaymentCustomerID(id int) *UserUpdateOne { + _u.mutation.SetPaymentCustomerID(id) + return _u } // SetNillablePaymentCustomerID sets the "payment_customer" edge to the PaymentCustomer entity by ID if the given value is not nil. -func (uuo *UserUpdateOne) SetNillablePaymentCustomerID(id *int) *UserUpdateOne { +func (_u *UserUpdateOne) SetNillablePaymentCustomerID(id *int) *UserUpdateOne { if id != nil { - uuo = uuo.SetPaymentCustomerID(*id) + _u = _u.SetPaymentCustomerID(*id) } - return uuo + return _u } // SetPaymentCustomer sets the "payment_customer" edge to the PaymentCustomer entity. -func (uuo *UserUpdateOne) SetPaymentCustomer(p *PaymentCustomer) *UserUpdateOne { - return uuo.SetPaymentCustomerID(p.ID) +func (_u *UserUpdateOne) SetPaymentCustomer(v *PaymentCustomer) *UserUpdateOne { + return _u.SetPaymentCustomerID(v.ID) } // Mutation returns the UserMutation object of the builder. -func (uuo *UserUpdateOne) Mutation() *UserMutation { - return uuo.mutation +func (_u *UserUpdateOne) Mutation() *UserMutation { + return _u.mutation } // ClearOwner clears all "owner" edges to the PasswordToken entity. -func (uuo *UserUpdateOne) ClearOwner() *UserUpdateOne { - uuo.mutation.ClearOwner() - return uuo +func (_u *UserUpdateOne) ClearOwner() *UserUpdateOne { + _u.mutation.ClearOwner() + return _u } // RemoveOwnerIDs removes the "owner" edge to PasswordToken entities by IDs. -func (uuo *UserUpdateOne) RemoveOwnerIDs(ids ...int) *UserUpdateOne { - uuo.mutation.RemoveOwnerIDs(ids...) - return uuo +func (_u *UserUpdateOne) RemoveOwnerIDs(ids ...int) *UserUpdateOne { + _u.mutation.RemoveOwnerIDs(ids...) + return _u } // RemoveOwner removes "owner" edges to PasswordToken entities. -func (uuo *UserUpdateOne) RemoveOwner(p ...*PasswordToken) *UserUpdateOne { - ids := make([]int, len(p)) - for i := range p { - ids[i] = p[i].ID +func (_u *UserUpdateOne) RemoveOwner(v ...*PasswordToken) *UserUpdateOne { + ids := make([]int, len(v)) + for i := range v { + ids[i] = v[i].ID } - return uuo.RemoveOwnerIDs(ids...) + return _u.RemoveOwnerIDs(ids...) } // ClearPaymentCustomer clears the "payment_customer" edge to the PaymentCustomer entity. -func (uuo *UserUpdateOne) ClearPaymentCustomer() *UserUpdateOne { - uuo.mutation.ClearPaymentCustomer() - return uuo +func (_u *UserUpdateOne) ClearPaymentCustomer() *UserUpdateOne { + _u.mutation.ClearPaymentCustomer() + return _u } // Where appends a list predicates to the UserUpdate builder. -func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne { - uuo.mutation.Where(ps...) - return uuo +func (_u *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne { + _u.mutation.Where(ps...) + return _u } // Select allows selecting one or more fields (columns) of the returned entity. // The default is selecting all fields defined in the entity schema. -func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne { - uuo.fields = append([]string{field}, fields...) - return uuo +func (_u *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u } // Save executes the query and returns the updated User entity. -func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) { - return withHooks(ctx, uuo.sqlSave, uuo.mutation, uuo.hooks) +func (_u *UserUpdateOne) Save(ctx context.Context) (*User, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) } // SaveX is like Save, but panics if an error occurs. -func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User { - node, err := uuo.Save(ctx) +func (_u *UserUpdateOne) SaveX(ctx context.Context) *User { + node, err := _u.Save(ctx) if err != nil { panic(err) } @@ -497,31 +497,31 @@ func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User { } // Exec executes the query on the entity. -func (uuo *UserUpdateOne) Exec(ctx context.Context) error { - _, err := uuo.Save(ctx) +func (_u *UserUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) return err } // ExecX is like Exec, but panics if an error occurs. -func (uuo *UserUpdateOne) ExecX(ctx context.Context) { - if err := uuo.Exec(ctx); err != nil { +func (_u *UserUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { panic(err) } } // check runs all checks and user-defined validators on the builder. -func (uuo *UserUpdateOne) check() error { - if v, ok := uuo.mutation.Name(); ok { +func (_u *UserUpdateOne) check() error { + if v, ok := _u.mutation.Name(); ok { if err := user.NameValidator(v); err != nil { return &ValidationError{Name: "name", err: fmt.Errorf(`ent: validator failed for field "User.name": %w`, err)} } } - if v, ok := uuo.mutation.Email(); ok { + if v, ok := _u.mutation.Email(); ok { if err := user.EmailValidator(v); err != nil { return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "User.email": %w`, err)} } } - if v, ok := uuo.mutation.Password(); ok { + if v, ok := _u.mutation.Password(); ok { if err := user.PasswordValidator(v); err != nil { return &ValidationError{Name: "password", err: fmt.Errorf(`ent: validator failed for field "User.password": %w`, err)} } @@ -529,17 +529,17 @@ func (uuo *UserUpdateOne) check() error { return nil } -func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) { - if err := uuo.check(); err != nil { +func (_u *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) { + if err := _u.check(); err != nil { return _node, err } _spec := sqlgraph.NewUpdateSpec(user.Table, user.Columns, sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt)) - id, ok := uuo.mutation.ID() + id, ok := _u.mutation.ID() if !ok { return nil, &ValidationError{Name: "id", err: errors.New(`ent: missing "User.id" for update`)} } _spec.Node.ID.Value = id - if fields := uuo.fields; len(fields) > 0 { + if fields := _u.fields; len(fields) > 0 { _spec.Node.Columns = make([]string, 0, len(fields)) _spec.Node.Columns = append(_spec.Node.Columns, user.FieldID) for _, f := range fields { @@ -551,29 +551,29 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } } } - if ps := uuo.mutation.predicates; len(ps) > 0 { + if ps := _u.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) } } } - if value, ok := uuo.mutation.Name(); ok { + if value, ok := _u.mutation.Name(); ok { _spec.SetField(user.FieldName, field.TypeString, value) } - if value, ok := uuo.mutation.Email(); ok { + if value, ok := _u.mutation.Email(); ok { _spec.SetField(user.FieldEmail, field.TypeString, value) } - if value, ok := uuo.mutation.Password(); ok { + if value, ok := _u.mutation.Password(); ok { _spec.SetField(user.FieldPassword, field.TypeString, value) } - if value, ok := uuo.mutation.Verified(); ok { + if value, ok := _u.mutation.Verified(); ok { _spec.SetField(user.FieldVerified, field.TypeBool, value) } - if value, ok := uuo.mutation.Admin(); ok { + if value, ok := _u.mutation.Admin(); ok { _spec.SetField(user.FieldAdmin, field.TypeBool, value) } - if uuo.mutation.OwnerCleared() { + if _u.mutation.OwnerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -586,7 +586,7 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := uuo.mutation.RemovedOwnerIDs(); len(nodes) > 0 && !uuo.mutation.OwnerCleared() { + if nodes := _u.mutation.RemovedOwnerIDs(); len(nodes) > 0 && !_u.mutation.OwnerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -602,7 +602,7 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := uuo.mutation.OwnerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.OwnerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: true, @@ -618,7 +618,7 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - if uuo.mutation.PaymentCustomerCleared() { + if _u.mutation.PaymentCustomerCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: true, @@ -631,7 +631,7 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } _spec.Edges.Clear = append(_spec.Edges.Clear, edge) } - if nodes := uuo.mutation.PaymentCustomerIDs(); len(nodes) > 0 { + if nodes := _u.mutation.PaymentCustomerIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2O, Inverse: true, @@ -647,10 +647,10 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } - _node = &User{config: uuo.config} + _node = &User{config: _u.config} _spec.Assign = _node.assignValues _spec.ScanValues = _node.scanValues - if err = sqlgraph.UpdateNode(ctx, uuo.driver, _spec); err != nil { + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { err = &NotFoundError{user.Label} } else if sqlgraph.IsConstraintError(err) { @@ -658,6 +658,6 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } return nil, err } - uuo.mutation.done = true + _u.mutation.done = true return _node, nil } diff --git a/go.mod b/go.mod index 834b92d..b657306 100644 --- a/go.mod +++ b/go.mod @@ -1,74 +1,72 @@ module github.com/occult/pagode -go 1.24.0 +go 1.26.0 require ( - entgo.io/ent v0.14.4 + entgo.io/ent v0.14.5 github.com/PuerkitoBio/goquery v1.10.3 - github.com/go-playground/validator/v10 v10.26.0 - github.com/golang-jwt/jwt/v5 v5.2.2 - github.com/gorilla/context v1.1.2 + github.com/go-playground/validator/v10 v10.30.1 + github.com/golang-jwt/jwt/v5 v5.3.1 github.com/gorilla/sessions v1.4.0 - github.com/labstack/echo-contrib v0.17.4 - github.com/labstack/echo/v4 v4.13.3 - github.com/lmittmann/tint v1.1.1 - github.com/mattn/go-sqlite3 v1.14.28 + github.com/labstack/echo-contrib v0.18.0 + github.com/labstack/echo/v4 v4.15.0 + github.com/lmittmann/tint v1.1.3 + github.com/mattn/go-sqlite3 v1.14.34 github.com/maypok86/otter v1.2.4 - github.com/mikestefanello/backlite v0.5.0 - github.com/resend/resend-go/v2 v2.20.0 - github.com/romsar/gonertia/v2 v2.0.5 - github.com/spf13/afero v1.14.0 - github.com/spf13/viper v1.20.1 - github.com/stretchr/testify v1.10.0 - github.com/stripe/stripe-go/v82 v82.3.0 - golang.org/x/crypto v0.38.0 - maragu.dev/gomponents v1.1.0 + github.com/mikestefanello/backlite v0.6.0 + github.com/resend/resend-go/v2 v2.28.0 + github.com/romsar/gonertia/v2 v2.1.1 + github.com/spf13/afero v1.15.0 + github.com/spf13/viper v1.21.0 + github.com/stretchr/testify v1.11.1 + github.com/stripe/stripe-go/v82 v82.5.1 + golang.org/x/crypto v0.48.0 + maragu.dev/gomponents v1.2.0 ) require ( - ariga.io/atlas v0.31.1-0.20250212144724-069be8033e83 // indirect + ariga.io/atlas v1.1.0 // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/andybalholm/cascadia v1.3.3 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/bmatcuk/doublestar v1.3.4 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dolthub/maphash v0.1.0 // indirect - github.com/fsnotify/fsnotify v1.8.0 // indirect - github.com/gabriel-vasile/mimetype v1.4.8 // indirect - github.com/gammazero/deque v0.2.1 // indirect - github.com/go-openapi/inflect v0.21.0 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect + github.com/gabriel-vasile/mimetype v1.4.13 // indirect + github.com/gammazero/deque v1.2.1 // indirect + github.com/go-openapi/inflect v0.21.5 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-viper/mapstructure/v2 v2.2.1 // indirect - github.com/google/go-cmp v0.6.0 // indirect + github.com/go-viper/mapstructure/v2 v2.5.0 // indirect + github.com/google/go-cmp v0.7.0 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/gorilla/context v1.1.2 // indirect github.com/gorilla/securecookie v1.1.2 // indirect - github.com/hashicorp/hcl/v2 v2.20.1 // indirect + github.com/hashicorp/hcl/v2 v2.24.0 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/pelletier/go-toml/v2 v2.2.3 // indirect + github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rogpeppe/go-internal v1.10.0 // indirect - github.com/sagikazarmark/locafero v0.7.0 // indirect - github.com/sourcegraph/conc v0.3.0 // indirect - github.com/spf13/cast v1.7.1 // indirect - github.com/spf13/pflag v1.0.6 // indirect + github.com/sagikazarmark/locafero v0.12.0 // indirect + github.com/spf13/cast v1.10.0 // indirect + github.com/spf13/pflag v1.0.10 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect - github.com/zclconf/go-cty v1.14.4 // indirect - github.com/zclconf/go-cty-yaml v1.1.0 // indirect - go.uber.org/multierr v1.11.0 // indirect - golang.org/x/mod v0.23.0 // indirect - golang.org/x/net v0.40.0 // indirect - golang.org/x/sync v0.14.0 // indirect - golang.org/x/sys v0.33.0 // indirect - golang.org/x/text v0.25.0 // indirect - golang.org/x/time v0.11.0 // indirect - golang.org/x/tools v0.30.0 // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + github.com/zclconf/go-cty v1.17.0 // indirect + github.com/zclconf/go-cty-yaml v1.2.0 // indirect + go.yaml.in/yaml/v3 v3.0.4 // indirect + golang.org/x/mod v0.33.0 // indirect + golang.org/x/net v0.50.0 // indirect + golang.org/x/sync v0.19.0 // indirect + golang.org/x/sys v0.41.0 // indirect + golang.org/x/text v0.34.0 // indirect + golang.org/x/time v0.14.0 // indirect + golang.org/x/tools v0.42.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 27db79a..4a5c4b4 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ -ariga.io/atlas v0.31.1-0.20250212144724-069be8033e83 h1:nX4HXncwIdvQ8/8sIUIf1nyCkK8qdBaHQ7EtzPpuiGE= -ariga.io/atlas v0.31.1-0.20250212144724-069be8033e83/go.mod h1:Oe1xWPuu5q9LzyrWfbZmEZxFYeu4BHTyzfjeW2aZp/w= -entgo.io/ent v0.14.4 h1:/DhDraSLXIkBhyiVoJeSshr4ZYi7femzhj6/TckzZuI= -entgo.io/ent v0.14.4/go.mod h1:aDPE/OziPEu8+OWbzy4UlvWmD2/kbRuWfK2A40hcxJM= +ariga.io/atlas v1.1.0 h1:Dk9Xemh6pr5RogNCsFylf/9ozhSPWDqzHb8EkR2rA78= +ariga.io/atlas v1.1.0/go.mod h1:esBbk3F+pi/mM2PvbCymDm+kWhaOk4PaaiegQdNELk8= +entgo.io/ent v0.14.5 h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4= +entgo.io/ent v0.14.5/go.mod h1:zTzLmWtPvGpmSwtkaayM2cm5m819NdM7z7tYPq3vN0U= github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/PuerkitoBio/goquery v1.10.3 h1:pFYcNSqHxBD06Fpj/KsbStFRsgRATgnf3LeXiUkhzPo= @@ -20,30 +20,31 @@ github.com/dolthub/maphash v0.1.0 h1:bsQ7JsF4FkkWyrP3oCnFJgrCUAFbFf3kOl4L/QxPDyQ github.com/dolthub/maphash v0.1.0/go.mod h1:gkg4Ch4CdCDu5h6PMriVLawB7koZ+5ijb9puGMV50a4= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= -github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/gabriel-vasile/mimetype v1.4.8 h1:FfZ3gj38NjllZIeJAmMhr+qKL8Wu+nOoI3GqacKw1NM= -github.com/gabriel-vasile/mimetype v1.4.8/go.mod h1:ByKUIKGjh1ODkGM1asKUbQZOLGrPjydw3hYPU2YU9t8= -github.com/gammazero/deque v0.2.1 h1:qSdsbG6pgp6nL7A0+K/B7s12mcCY/5l5SIUpMOl+dC0= -github.com/gammazero/deque v0.2.1/go.mod h1:LFroj8x4cMYCukHJDbxFCkT+r9AndaJnFMuZDV34tuU= -github.com/go-openapi/inflect v0.21.0 h1:FoBjBTQEcbg2cJUWX6uwL9OyIW8eqc9k4KhN4lfbeYk= -github.com/go-openapi/inflect v0.21.0/go.mod h1:INezMuUu7SJQc2AyR3WO0DqqYUJSj8Kb4hBd7WtjlAw= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/gabriel-vasile/mimetype v1.4.13 h1:46nXokslUBsAJE/wMsp5gtO500a4F3Nkz9Ufpk2AcUM= +github.com/gabriel-vasile/mimetype v1.4.13/go.mod h1:d+9Oxyo1wTzWdyVUPMmXFvp4F9tea18J8ufA774AB3s= +github.com/gammazero/deque v1.2.1 h1:9fnQVFCCZ9/NOc7ccTNqzoKd1tCWOqeI05/lPqFPMGQ= +github.com/gammazero/deque v1.2.1/go.mod h1:5nSFkzVm+afG9+gy0VIowlqVAW4N8zNcMne+CMQVD2g= +github.com/go-openapi/inflect v0.21.5 h1:M2RCq6PPS3YbIaL7CXosGL3BbzAcmfBAT0nC3YfesZA= +github.com/go-openapi/inflect v0.21.5/go.mod h1:GypUyi6bU880NYurWaEH2CmH84zFDNd+EhhmzroHmB4= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.26.0 h1:SP05Nqhjcvz81uJaRfEV0YBSSSGMc/iMaVtFbr3Sw2k= -github.com/go-playground/validator/v10 v10.26.0/go.mod h1:I5QpIEbmr8On7W0TktmJAumgzX4CA1XNl4ZmDuVHKKo= +github.com/go-playground/validator/v10 v10.30.1 h1:f3zDSN/zOma+w6+1Wswgd9fLkdwy06ntQJp0BBvFG0w= +github.com/go-playground/validator/v10 v10.30.1/go.mod h1:oSuBIQzuJxL//3MelwSLD5hc2Tu889bF0Idm9Dg26cM= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= -github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss= -github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= -github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= -github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro= +github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= +github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= @@ -54,63 +55,58 @@ github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kX github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo= github.com/gorilla/sessions v1.4.0 h1:kpIYOp/oi6MG/p5PgxApU8srsSw9tuFbt46Lt7auzqQ= github.com/gorilla/sessions v1.4.0/go.mod h1:FLWm50oby91+hl7p/wRxDth9bWSuk0qVL2emc7lT5ik= -github.com/hashicorp/hcl/v2 v2.20.1 h1:M6hgdyz7HYt1UN9e61j+qKJBqR3orTWbI1HKBJEdxtc= -github.com/hashicorp/hcl/v2 v2.20.1/go.mod h1:TZDqQ4kNKCbh1iJp99FdPiUaVDDUPivbqxZulxDYqL4= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/hashicorp/hcl/v2 v2.24.0 h1:2QJdZ454DSsYGoaE6QheQZjtKZSUs9Nh2izTWiwQxvE= +github.com/hashicorp/hcl/v2 v2.24.0/go.mod h1:oGoO1FIQYfn/AgyOhlg9qLC6/nOJPX3qGbkZpYAcqfM= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/labstack/echo-contrib v0.17.4 h1:g5mfsrJfJTKv+F5uNKCyrjLK7js+ZW6HTjg4FnDxxgk= -github.com/labstack/echo-contrib v0.17.4/go.mod h1:9O7ZPAHUeMGTOAfg80YqQduHzt0CzLak36PZRldYrZ0= -github.com/labstack/echo/v4 v4.13.3 h1:pwhpCPrTl5qry5HRdM5FwdXnhXSLSY+WE+YQSeCaafY= -github.com/labstack/echo/v4 v4.13.3/go.mod h1:o90YNEeQWjDozo584l7AwhJMHN0bOC4tAfg+Xox9q5g= +github.com/labstack/echo-contrib v0.18.0 h1:mgn4sdnEUUxH7E3bDGplIKkZ+syDZvafbIhuf7hPs3I= +github.com/labstack/echo-contrib v0.18.0/go.mod h1:8r/++U/Fw/QniApFnzunLanKaviPfBX7fX7/2QX0qOk= +github.com/labstack/echo/v4 v4.15.0 h1:hoRTKWcnR5STXZFe9BmYun9AMTNeSbjHi2vtDuADJ24= +github.com/labstack/echo/v4 v4.15.0/go.mod h1:xmw1clThob0BSVRX1CRQkGQ/vjwcpOMjQZSZa9fKA/c= github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0= github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU= github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= -github.com/lmittmann/tint v1.1.1 h1:xmmGuinUsCSxWdwH1OqMUQ4tzQsq3BdjJLAAmVKJ9Dw= -github.com/lmittmann/tint v1.1.1/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= +github.com/lmittmann/tint v1.1.3 h1:Hv4EaHWXQr+GTFnOU4VKf8UvAtZgn0VuKT+G0wFlO3I= +github.com/lmittmann/tint v1.1.3/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-sqlite3 v1.14.28 h1:ThEiQrnbtumT+QMknw63Befp/ce/nUPgBPMlRFEum7A= -github.com/mattn/go-sqlite3 v1.14.28/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= +github.com/mattn/go-sqlite3 v1.14.34 h1:3NtcvcUnFBPsuRcno8pUtupspG/GM+9nZ88zgJcp6Zk= +github.com/mattn/go-sqlite3 v1.14.34/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/maypok86/otter v1.2.4 h1:HhW1Pq6VdJkmWwcZZq19BlEQkHtI8xgsQzBVXJU0nfc= github.com/maypok86/otter v1.2.4/go.mod h1:mKLfoI7v1HOmQMwFgX4QkRk23mX6ge3RDvjdHOWG4R4= -github.com/mikestefanello/backlite v0.5.0 h1:6lKZdEYgutdmwV4Id8/t9E/NY14U3fS4/RhiOkFDD4c= -github.com/mikestefanello/backlite v0.5.0/go.mod h1:gx6UKLUQY5OVXQkIm3AzNkyPn9OzoKHKuwM4JGrY4tQ= +github.com/mikestefanello/backlite v0.6.0 h1:kpQKxR5NGHWvtAZuR0AsEZo95g967FY9fnU9y7YYvAY= +github.com/mikestefanello/backlite v0.6.0/go.mod h1:gx6UKLUQY5OVXQkIm3AzNkyPn9OzoKHKuwM4JGrY4tQ= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= -github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= -github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= +github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= +github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/resend/resend-go/v2 v2.20.0 h1:MrIrgV0aHhwRgmcRPw33Nexn6aGJvCvG2XwfFpAMBGM= -github.com/resend/resend-go/v2 v2.20.0/go.mod h1:3YCb8c8+pLiqhtRFXTyFwlLvfjQtluxOr9HEh2BwCkQ= +github.com/resend/resend-go/v2 v2.28.0 h1:ttM1/VZR4fApBv3xI1TneSKi1pbfFsVrq7fXFlHKtj4= +github.com/resend/resend-go/v2 v2.28.0/go.mod h1:3YCb8c8+pLiqhtRFXTyFwlLvfjQtluxOr9HEh2BwCkQ= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= -github.com/romsar/gonertia/v2 v2.0.5 h1:AvZ2nj27gBjg387i0lN2FVBsJCBeW3pq64VJZKNHvCQ= -github.com/romsar/gonertia/v2 v2.0.5/go.mod h1:8DOQfQz9D1GHd5M6BtXsaF+CIovjXOx/tVna2LcazvA= -github.com/sagikazarmark/locafero v0.7.0 h1:5MqpDsTGNDhY8sGp0Aowyf0qKsPrhewaLSsFaodPcyo= -github.com/sagikazarmark/locafero v0.7.0/go.mod h1:2za3Cg5rMaTMoG/2Ulr9AwtFaIppKXTRYnozin4aB5k= -github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= -github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= -github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA= -github.com/spf13/afero v1.14.0/go.mod h1:acJQ8t0ohCGuMN3O+Pv0V0hgMxNYDlvdk+VTfyZmbYo= -github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= -github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= -github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= -github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.20.1 h1:ZMi+z/lvLyPSCoNtFCpqjy0S4kPbirhpTMwl8BkW9X4= -github.com/spf13/viper v1.20.1/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/stripe/stripe-go/v82 v82.3.0 h1:6+E33xPmZ1Kzo2P/k90+Q5w2jwdKUU1XoEcrv3Fvtvk= -github.com/stripe/stripe-go/v82 v82.3.0/go.mod h1:majCQX6AfObAvJiHraPi/5udwHi4ojRvJnnxckvHrX8= +github.com/romsar/gonertia/v2 v2.1.1 h1:0l9dbyMCFkq5hHc3tRmJqgdLt7Gb5pQDbYm47atwSXo= +github.com/romsar/gonertia/v2 v2.1.1/go.mod h1:8DOQfQz9D1GHd5M6BtXsaF+CIovjXOx/tVna2LcazvA= +github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88eegjfxfHb4= +github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI= +github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= +github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg= +github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY= +github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= +github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/stripe/stripe-go/v82 v82.5.1 h1:05q6ZDKoe8PLMpQV072obF74HCgP4XJeJYoNuRSX2+8= +github.com/stripe/stripe-go/v82 v82.5.1/go.mod h1:majCQX6AfObAvJiHraPi/5udwHi4ojRvJnnxckvHrX8= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= @@ -118,29 +114,29 @@ github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyC github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= -github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= -github.com/zclconf/go-cty-yaml v1.1.0 h1:nP+jp0qPHv2IhUVqmQSzjvqAWcObN0KBkUl2rWBdig0= -github.com/zclconf/go-cty-yaml v1.1.0/go.mod h1:9YLUH4g7lOhVWqUbctnVlZ5KLpg7JAprQNgxSZ1Gyxs= -go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= -go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +github.com/zclconf/go-cty v1.17.0 h1:seZvECve6XX4tmnvRzWtJNHdscMtYEx5R7bnnVyd/d0= +github.com/zclconf/go-cty v1.17.0/go.mod h1:wqFzcImaLTI6A5HfsRwB0nj5n0MRZFwmey8YoFPPs3U= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= +github.com/zclconf/go-cty-yaml v1.2.0 h1:GDyL4+e/Qe/S0B7YaecMLbVvAR/Mp21CXMOSiCTOi1M= +github.com/zclconf/go-cty-yaml v1.2.0/go.mod h1:9YLUH4g7lOhVWqUbctnVlZ5KLpg7JAprQNgxSZ1Gyxs= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= -golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8= -golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw= +golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= +golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= -golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8= +golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -150,8 +146,8 @@ golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY= -golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds= +golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60= +golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -159,8 +155,8 @@ golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ= -golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= +golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -173,8 +169,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= -golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= +golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -193,23 +189,23 @@ golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4= -golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA= -golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0= -golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= +golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= +golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= +golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= +golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= -golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= -golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= +golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k= +golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -maragu.dev/gomponents v1.1.0 h1:iCybZZChHr1eSlvkWp/JP3CrZGzctLudQ/JI3sBcO4U= -maragu.dev/gomponents v1.1.0/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM= +maragu.dev/gomponents v1.2.0 h1:H7/N5htz1GCnhu0HB1GasluWeU2rJZOYztVEyN61iTc= +maragu.dev/gomponents v1.2.0/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM= diff --git a/package-lock.json b/package-lock.json index 21902bd..95f5388 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,26 +46,13 @@ "vite": "^6.3.5" } }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" }, @@ -74,30 +61,31 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.27.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.5.tgz", - "integrity": "sha512-KiRAp/VoJaWkkte84TvUd9qjdbZAdiqyvMxrGl1N6vzFogKmaLgoM3L1kgtLicp2HP5fBJS8JrZKLVIZGVJAVg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.27.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.4.tgz", - "integrity": "sha512-bXYxrXFubeYdvB0NhD/NBB3Qi6aZeV20GOWVI47t2dkecCEoneR4NPVcb7abpXDEvejgrUfFtG6vG/zxAKmg+g==", - "license": "MIT", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.27.3", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.27.3", - "@babel/helpers": "^7.27.4", - "@babel/parser": "^7.27.4", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.27.4", - "@babel/types": "^7.27.3", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -113,15 +101,15 @@ } }, "node_modules/@babel/generator": { - "version": "7.27.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.5.tgz", - "integrity": "sha512-ZGhA37l0e/g2s1Cnzdix0O3aLYm66eF8aufiVteOgnwxgnRP8GoyMj7VWsgWnQbVKXyge7hqrFh2K2TQM6t1Hw==", + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.27.5", - "@babel/types": "^7.27.3", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" }, "engines": { @@ -129,12 +117,12 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.27.2", + "@babel/compat-data": "^7.28.6", "@babel/helper-validator-option": "^7.27.1", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", @@ -144,28 +132,37 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", "license": "MIT", "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.27.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.3.tgz", - "integrity": "sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.27.3" + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -175,9 +172,9 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -193,9 +190,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -211,25 +208,25 @@ } }, "node_modules/@babel/helpers": { - "version": "7.27.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.4.tgz", - "integrity": "sha512-Y+bO6U+I7ZKaM5G5rDUZiYfUvQPUibYmAFe7EnKdnKBbVXDZxvp+MWOH5gYciY0EPk4EScsuFMQBbEfpdRKSCQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", "license": "MIT", "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.3" + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.27.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.5.tgz", - "integrity": "sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", "license": "MIT", "dependencies": { - "@babel/types": "^7.27.3" + "@babel/types": "^7.29.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -269,63 +266,54 @@ } }, "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.27.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.4.tgz", - "integrity": "sha512-oNcu2QbHqts9BtOWJosOVJapWjBDSxGCpFvikNR5TGDYDQf3JwpIoMzIKrvfoti93cLfPJEG4tH9SPVeyCGgdA==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.27.3", - "@babel/parser": "^7.27.4", - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.3", - "debug": "^4.3.1", - "globals": "^11.1.0" + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/types": { - "version": "7.27.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.3.tgz", - "integrity": "sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz", - "integrity": "sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", "cpu": [ "ppc64" ], @@ -339,9 +327,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.5.tgz", - "integrity": "sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", "cpu": [ "arm" ], @@ -355,9 +343,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.5.tgz", - "integrity": "sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", "cpu": [ "arm64" ], @@ -371,9 +359,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.5.tgz", - "integrity": "sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", "cpu": [ "x64" ], @@ -387,9 +375,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.5.tgz", - "integrity": "sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", "cpu": [ "arm64" ], @@ -403,9 +391,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.5.tgz", - "integrity": "sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", "cpu": [ "x64" ], @@ -419,9 +407,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.5.tgz", - "integrity": "sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", "cpu": [ "arm64" ], @@ -435,9 +423,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.5.tgz", - "integrity": "sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", "cpu": [ "x64" ], @@ -451,9 +439,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.5.tgz", - "integrity": "sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", "cpu": [ "arm" ], @@ -467,9 +455,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.5.tgz", - "integrity": "sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", "cpu": [ "arm64" ], @@ -483,9 +471,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.5.tgz", - "integrity": "sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", "cpu": [ "ia32" ], @@ -499,9 +487,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.5.tgz", - "integrity": "sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", "cpu": [ "loong64" ], @@ -515,9 +503,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.5.tgz", - "integrity": "sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", "cpu": [ "mips64el" ], @@ -531,9 +519,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.5.tgz", - "integrity": "sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", "cpu": [ "ppc64" ], @@ -547,9 +535,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.5.tgz", - "integrity": "sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", "cpu": [ "riscv64" ], @@ -563,9 +551,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.5.tgz", - "integrity": "sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", "cpu": [ "s390x" ], @@ -579,9 +567,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.5.tgz", - "integrity": "sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", "cpu": [ "x64" ], @@ -595,9 +583,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.5.tgz", - "integrity": "sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", "cpu": [ "arm64" ], @@ -611,9 +599,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.5.tgz", - "integrity": "sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", "cpu": [ "x64" ], @@ -627,9 +615,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.5.tgz", - "integrity": "sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", "cpu": [ "arm64" ], @@ -643,9 +631,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.5.tgz", - "integrity": "sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", "cpu": [ "x64" ], @@ -658,10 +646,26 @@ "node": ">=18" } }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.5.tgz", - "integrity": "sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", "cpu": [ "x64" ], @@ -675,9 +679,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.5.tgz", - "integrity": "sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", "cpu": [ "arm64" ], @@ -691,9 +695,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.5.tgz", - "integrity": "sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", "cpu": [ "ia32" ], @@ -707,9 +711,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.5.tgz", - "integrity": "sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", "cpu": [ "x64" ], @@ -723,9 +727,9 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", "license": "MIT", "dependencies": { "eslint-visitor-keys": "^3.4.3" @@ -753,22 +757,21 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/config-array": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", - "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", "license": "Apache-2.0", - "peer": true, "dependencies": { - "@eslint/object-schema": "^2.1.6", + "@eslint/object-schema": "^2.1.7", "debug": "^4.3.1", "minimatch": "^3.1.2" }, @@ -777,21 +780,22 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.2.tgz", - "integrity": "sha512-+GPzk8PlG0sPpzdU5ZvIRMPidzAnZDl/s9L+y13iodqvb8leL53bTannOrQ/Im7UkpsmFU5Ily5U60LWixnmLg==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", "license": "Apache-2.0", - "peer": true, + "dependencies": { + "@eslint/core": "^0.17.0" + }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/core": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", - "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@types/json-schema": "^7.0.15" }, @@ -800,11 +804,10 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", "license": "MIT", - "peer": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -812,7 +815,7 @@ "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", + "js-yaml": "^4.1.1", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, @@ -828,7 +831,6 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -837,11 +839,10 @@ } }, "node_modules/@eslint/js": { - "version": "9.28.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.28.0.tgz", - "integrity": "sha512-fnqSjGWd/CoIp4EXIxWVK/sHA6DOHN4+8Ix2cX5ycOY7LG0UY8nHCU5pIp2eaE1Mc7Qd8kHspYNzYXT2ojPLzg==", + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", "license": "MIT", - "peer": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -850,23 +851,21 @@ } }, "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", "license": "Apache-2.0", - "peer": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/plugin-kit": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.1.tgz", - "integrity": "sha512-0J+zgWxHN+xXONWIyPWKFMgVuJoZuGiIFu8yxk7RJjxkzpGmyja5wRFqZIVtjDVOQpV+Rw0iOAjYPE2eQyjr0w==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", "license": "Apache-2.0", - "peer": true, "dependencies": { - "@eslint/core": "^0.14.0", + "@eslint/core": "^0.17.0", "levn": "^0.4.1" }, "engines": { @@ -874,26 +873,29 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.1.tgz", - "integrity": "sha512-azI0DrjMMfIug/ExbBaeDVJXcY0a7EPvPjb2xAJPa4HeimBX+Z18HK8QQR3jb6356SnDDdxx+hinMLcJEDdOjw==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.4.tgz", + "integrity": "sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==", + "license": "MIT", "dependencies": { - "@floating-ui/utils": "^0.2.9" + "@floating-ui/utils": "^0.2.10" } }, "node_modules/@floating-ui/dom": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.1.tgz", - "integrity": "sha512-cwsmW/zyw5ltYTUeeYJ60CnQuPqmGwuGVhG9w0PRaRKkAyi38BT5CKrpIbb+jtahSwUl04cWzSx9ZOIxeS6RsQ==", + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.5.tgz", + "integrity": "sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==", + "license": "MIT", "dependencies": { - "@floating-ui/core": "^1.7.1", - "@floating-ui/utils": "^0.2.9" + "@floating-ui/core": "^1.7.4", + "@floating-ui/utils": "^0.2.10" } }, "node_modules/@floating-ui/react": { "version": "0.26.28", "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.26.28.tgz", "integrity": "sha512-yORQuuAtVpiRjpMhdc0wJj06b9JFjrYF4qp96j++v2NBpbi6SEGF7donUJ3TMieerQ6qVkAv1tgr7L4r5roTqw==", + "license": "MIT", "dependencies": { "@floating-ui/react-dom": "^2.1.2", "@floating-ui/utils": "^0.2.8", @@ -905,11 +907,12 @@ } }, "node_modules/@floating-ui/react-dom": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.3.tgz", - "integrity": "sha512-huMBfiU9UnQ2oBwIhgzyIiSpVgvlDstU8CX0AF+wS+KzmYMs0J2a3GwuFHV1Lz+jlrQGeC1fF+Nv0QoumyV0bA==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.7.tgz", + "integrity": "sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg==", + "license": "MIT", "dependencies": { - "@floating-ui/dom": "^1.0.0" + "@floating-ui/dom": "^1.7.5" }, "peerDependencies": { "react": ">=16.8.0", @@ -917,14 +920,16 @@ } }, "node_modules/@floating-ui/utils": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", - "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==" + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz", + "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==", + "license": "MIT" }, "node_modules/@headlessui/react": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.2.4.tgz", - "integrity": "sha512-lz+OGcAH1dK93rgSMzXmm1qKOJkBUqZf1L4M8TWLNplftQD3IkoEDdUFNfAn4ylsN6WOTVtWaLmvmaHOUk1dTA==", + "version": "2.2.9", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.2.9.tgz", + "integrity": "sha512-Mb+Un58gwBn0/yWZfyrCh0TJyurtT+dETj7YHleylHk5od3dv2XqETPGWMyQ5/7sYN7oWdyM1u9MvC0OC8UmzQ==", + "license": "MIT", "dependencies": { "@floating-ui/react": "^0.26.16", "@react-aria/focus": "^3.20.2", @@ -945,45 +950,28 @@ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=18.18.0" } }, "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", "license": "Apache-2.0", - "peer": true, "dependencies": { "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" + "@humanwhocodes/retry": "^0.4.0" }, "engines": { "node": ">=18.18.0" } }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "license": "Apache-2.0", - "peer": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=12.22" }, @@ -997,7 +985,6 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=18.18" }, @@ -1007,53 +994,52 @@ } }, "node_modules/@inertiajs/core": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-2.0.11.tgz", - "integrity": "sha512-DSFdkPLvLwHC0hePc/692WK9ItRzddVZ+OS5ZO1B2+6TmZnZH3kTQZGEhaYAtkAB+DHKxOm1oGHPKQrsAZ54qQ==", + "version": "2.3.14", + "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-2.3.14.tgz", + "integrity": "sha512-A6OU/Ye1ub2Dmn3eNJ2S0sEPKk5dWG/BUISAIDz/318N71/WuRXmEoqyaf9JJiYR7LTnJSO3UlugUPmFne+f1w==", "license": "MIT", "dependencies": { - "axios": "^1.8.2", - "es-toolkit": "^1.34.1", - "qs": "^6.9.0" + "@types/lodash-es": "^4.17.12", + "axios": "^1.13.2", + "laravel-precognition": "^1.0.1", + "lodash-es": "^4.17.23", + "qs": "^6.14.1" } }, "node_modules/@inertiajs/react": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@inertiajs/react/-/react-2.0.11.tgz", - "integrity": "sha512-XCikPYwdSLfCZ+cEYjAzNOdPZ6OP4yMJCxIMZfUZCjfLrkHQug6FsKxugy6Ih8hSP+qSVWMuapFqx+6GGhX7ew==", + "version": "2.3.14", + "resolved": "https://registry.npmjs.org/@inertiajs/react/-/react-2.3.14.tgz", + "integrity": "sha512-ZyJ/GP0xNMvoqhgWTcRkAqspu1L6Y8Wnk5cFkq1z5MAdZQG/DRq/x9MBZ2oDk7I5aHBWjGSCx1ELW6WAdH/lDw==", "license": "MIT", "dependencies": { - "@inertiajs/core": "2.0.11", - "es-toolkit": "^1.33.0" + "@inertiajs/core": "2.3.14", + "@types/lodash-es": "^4.17.12", + "laravel-precognition": "^1.0.1", + "lodash-es": "^4.17.23" }, "peerDependencies": { - "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "license": "ISC", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", - "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -1065,75 +1051,33 @@ "node": ">=6.0.0" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/@radix-ui/primitive": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz", - "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz", + "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==", + "license": "MIT" }, "node_modules/@radix-ui/react-arrow": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz", "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==", + "license": "MIT", "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, @@ -1152,16 +1096,13 @@ } } }, - "node_modules/@radix-ui/react-avatar": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.10.tgz", - "integrity": "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==", + "node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", "dependencies": { - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-callback-ref": "1.1.1", - "@radix-ui/react-use-is-hydrated": "0.1.0", - "@radix-ui/react-use-layout-effect": "1.1.1" + "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1178,44 +1119,35 @@ } } }, - "node_modules/@radix-ui/react-checkbox": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.2.tgz", - "integrity": "sha512-yd+dI56KZqawxKZrJ31eENUwqc1QSqg4OZ15rybGjF2ZNwMO+wCyHzAVLRp9qoYJf7kYy0YpZ2b0JCzJ42HZpA==", + "node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-presence": "1.1.4", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-controllable-state": "1.2.2", - "@radix-ui/react-use-previous": "1.1.1", - "@radix-ui/react-use-size": "1.1.1" + "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", - "@types/react-dom": "*", - "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", - "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "peerDependenciesMeta": { "@types/react": { "optional": true - }, - "@types/react-dom": { - "optional": true } } }, - "node_modules/@radix-ui/react-collection": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz", - "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==", + "node_modules/@radix-ui/react-avatar": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.11.tgz", + "integrity": "sha512-0Qk603AHGV28BOBO34p7IgD5m+V5Sg/YovfayABkoDDBM5d3NCx0Mp4gGrjzLGes1jV5eNOE1r3itqOR33VC6Q==", + "license": "MIT", "dependencies": { - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-slot": "1.2.3" + "@radix-ui/react-context": "1.1.3", + "@radix-ui/react-primitive": "2.1.4", + "@radix-ui/react-use-callback-ref": "1.1.1", + "@radix-ui/react-use-is-hydrated": "0.1.0", + "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", @@ -1232,24 +1164,41 @@ } } }, - "node_modules/@radix-ui/react-compose-refs": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz", - "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==", + "node_modules/@radix-ui/react-checkbox": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.3.tgz", + "integrity": "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-presence": "1.1.5", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-controllable-state": "1.2.2", + "@radix-ui/react-use-previous": "1.1.1", + "@radix-ui/react-use-size": "1.1.1" + }, "peerDependencies": { "@types/react": "*", - "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "peerDependenciesMeta": { "@types/react": { "optional": true + }, + "@types/react-dom": { + "optional": true } } }, - "node_modules/@radix-ui/react-context": { + "node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-context": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" @@ -1260,25 +1209,13 @@ } } }, - "node_modules/@radix-ui/react-dialog": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.14.tgz", - "integrity": "sha512-+CpweKjqpzTmwRwcYECQcNYbI8V9VSQt0SNFKeEBLgfucbsLssU6Ppq7wUdNXEGb573bMjFhVjKVll8rmV6zMw==", + "node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-dismissable-layer": "1.1.10", - "@radix-ui/react-focus-guards": "1.1.2", - "@radix-ui/react-focus-scope": "1.1.7", - "@radix-ui/react-id": "1.1.1", - "@radix-ui/react-portal": "1.1.9", - "@radix-ui/react-presence": "1.1.4", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-slot": "1.2.3", - "@radix-ui/react-use-controllable-state": "1.2.2", - "aria-hidden": "^1.2.4", - "react-remove-scroll": "^2.6.3" + "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1295,10 +1232,14 @@ } } }, - "node_modules/@radix-ui/react-direction": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz", - "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==", + "node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" @@ -1309,16 +1250,16 @@ } } }, - "node_modules/@radix-ui/react-dismissable-layer": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.10.tgz", - "integrity": "sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==", + "node_modules/@radix-ui/react-collection": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz", + "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-callback-ref": "1.1.1", - "@radix-ui/react-use-escape-keydown": "1.1.1" + "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1335,18 +1276,28 @@ } } }, - "node_modules/@radix-ui/react-dropdown-menu": { - "version": "2.1.15", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.15.tgz", - "integrity": "sha512-mIBnOjgwo9AH3FyKaSWoSu/dYj6VdhJ7frEPiGTeXCdUFHjl9h3mFh2wwhEtINOmYXWhdpf1rY2minFsmaNgVQ==", + "node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-id": "1.1.1", - "@radix-ui/react-menu": "2.1.15", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-controllable-state": "1.2.2" + "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1363,13 +1314,484 @@ } } }, - "node_modules/@radix-ui/react-focus-guards": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.2.tgz", - "integrity": "sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==", - "peerDependencies": { - "@types/react": "*", - "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + "node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz", + "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-context": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.3.tgz", + "integrity": "sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dialog": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz", + "integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-dismissable-layer": "1.1.11", + "@radix-ui/react-focus-guards": "1.1.3", + "@radix-ui/react-focus-scope": "1.1.7", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-portal": "1.1.9", + "@radix-ui/react-presence": "1.1.5", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-slot": "1.2.3", + "@radix-ui/react-use-controllable-state": "1.2.2", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.6.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-direction": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz", + "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.11.tgz", + "integrity": "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-callback-ref": "1.1.1", + "@radix-ui/react-use-escape-keydown": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dropdown-menu": { + "version": "2.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.16.tgz", + "integrity": "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-menu": "2.1.16", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-controllable-state": "1.2.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-guards": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.3.tgz", + "integrity": "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-scope": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz", + "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-callback-ref": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-id": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz", + "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-label": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.8.tgz", + "integrity": "sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-menu": { + "version": "2.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.16.tgz", + "integrity": "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-collection": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-direction": "1.1.1", + "@radix-ui/react-dismissable-layer": "1.1.11", + "@radix-ui/react-focus-guards": "1.1.3", + "@radix-ui/react-focus-scope": "1.1.7", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-popper": "1.2.8", + "@radix-ui/react-portal": "1.1.9", + "@radix-ui/react-presence": "1.1.5", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-roving-focus": "1.1.11", + "@radix-ui/react-slot": "1.2.3", + "@radix-ui/react-use-callback-ref": "1.1.1", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.6.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "peerDependenciesMeta": { "@types/react": { @@ -1377,14 +1799,13 @@ } } }, - "node_modules/@radix-ui/react-focus-scope": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz", - "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==", + "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", "dependencies": { - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-callback-ref": "1.1.1" + "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1401,12 +1822,13 @@ } } }, - "node_modules/@radix-ui/react-id": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz", - "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==", + "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", "dependencies": { - "@radix-ui/react-use-layout-effect": "1.1.1" + "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", @@ -1418,12 +1840,26 @@ } } }, - "node_modules/@radix-ui/react-label": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.7.tgz", - "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==", + "node_modules/@radix-ui/react-navigation-menu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.14.tgz", + "integrity": "sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==", + "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.3" + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-collection": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-direction": "1.1.1", + "@radix-ui/react-dismissable-layer": "1.1.11", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-presence": "1.1.5", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-callback-ref": "1.1.1", + "@radix-ui/react-use-controllable-state": "1.2.2", + "@radix-ui/react-use-layout-effect": "1.1.1", + "@radix-ui/react-use-previous": "1.1.1", + "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1440,29 +1876,28 @@ } } }, - "node_modules/@radix-ui/react-menu": { - "version": "2.1.15", - "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.15.tgz", - "integrity": "sha512-tVlmA3Vb9n8SZSd+YSbuFR66l87Wiy4du+YE+0hzKQEANA+7cWKH1WgqcEX4pXqxUFQKrWQGHdvEfw00TjFiew==", + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", - "@radix-ui/react-collection": "1.1.7", - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-direction": "1.1.1", - "@radix-ui/react-dismissable-layer": "1.1.10", - "@radix-ui/react-focus-guards": "1.1.2", - "@radix-ui/react-focus-scope": "1.1.7", - "@radix-ui/react-id": "1.1.1", - "@radix-ui/react-popper": "1.2.7", - "@radix-ui/react-portal": "1.1.9", - "@radix-ui/react-presence": "1.1.4", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-roving-focus": "1.1.10", - "@radix-ui/react-slot": "1.2.3", - "@radix-ui/react-use-callback-ref": "1.1.1", - "aria-hidden": "^1.2.4", - "react-remove-scroll": "^2.6.3" + "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", @@ -1479,45 +1914,29 @@ } } }, - "node_modules/@radix-ui/react-navigation-menu": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.13.tgz", - "integrity": "sha512-WG8wWfDiJlSF5hELjwfjSGOXcBR/ZMhBFCGYe8vERpC39CQYZeq1PQ2kaYHdye3V95d06H89KGMsVCIE4LWo3g==", + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", - "@radix-ui/react-collection": "1.1.7", - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-direction": "1.1.1", - "@radix-ui/react-dismissable-layer": "1.1.10", - "@radix-ui/react-id": "1.1.1", - "@radix-ui/react-presence": "1.1.4", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-callback-ref": "1.1.1", - "@radix-ui/react-use-controllable-state": "1.2.2", - "@radix-ui/react-use-layout-effect": "1.1.1", - "@radix-ui/react-use-previous": "1.1.1", - "@radix-ui/react-visually-hidden": "1.2.3" + "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", - "@types/react-dom": "*", - "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", - "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "peerDependenciesMeta": { "@types/react": { "optional": true - }, - "@types/react-dom": { - "optional": true } } }, "node_modules/@radix-ui/react-popper": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.7.tgz", - "integrity": "sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.8.tgz", + "integrity": "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==", + "license": "MIT", "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.7", @@ -1545,10 +1964,67 @@ } } }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-portal": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz", "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==", + "license": "MIT", "dependencies": { "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-layout-effect": "1.1.1" @@ -1568,33 +2044,145 @@ } } }, + "node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-presence": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.4.tgz", - "integrity": "sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.5.tgz", + "integrity": "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==", + "license": "MIT", "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", - "@types/react-dom": "*", - "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", - "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-primitive": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz", + "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-roving-focus": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.11.tgz", + "integrity": "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-collection": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-direction": "1.1.1", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-callback-ref": "1.1.1", + "@radix-ui/react-use-controllable-state": "1.2.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "peerDependenciesMeta": { "@types/react": { "optional": true - }, - "@types/react-dom": { - "optional": true } } }, - "node_modules/@radix-ui/react-primitive": { + "node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-primitive": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", "dependencies": { "@radix-ui/react-slot": "1.2.3" }, @@ -1613,42 +2201,31 @@ } } }, - "node_modules/@radix-ui/react-roving-focus": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.10.tgz", - "integrity": "sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==", + "node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", - "@radix-ui/react-collection": "1.1.7", - "@radix-ui/react-compose-refs": "1.1.2", - "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-direction": "1.1.1", - "@radix-ui/react-id": "1.1.1", - "@radix-ui/react-primitive": "2.1.3", - "@radix-ui/react-use-callback-ref": "1.1.1", - "@radix-ui/react-use-controllable-state": "1.2.2" + "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", - "@types/react-dom": "*", - "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", - "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "peerDependenciesMeta": { "@types/react": { "optional": true - }, - "@types/react-dom": { - "optional": true } } }, "node_modules/@radix-ui/react-separator": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.7.tgz", - "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.8.tgz", + "integrity": "sha512-sDvqVY4itsKwwSMEe0jtKgfTh+72Sy3gPmQpjqcQneqQ4PFmr/1I0YA+2/puilhggCe2gJcx5EBAYFkWkdpa5g==", + "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.3" + "@radix-ui/react-primitive": "2.1.4" }, "peerDependencies": { "@types/react": "*", @@ -1666,9 +2243,10 @@ } }, "node_modules/@radix-ui/react-slot": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", - "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.4.tgz", + "integrity": "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==", + "license": "MIT", "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, @@ -1683,18 +2261,19 @@ } }, "node_modules/@radix-ui/react-tooltip": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.7.tgz", - "integrity": "sha512-Ap+fNYwKTYJ9pzqW+Xe2HtMRbQ/EeWkj2qykZ6SuEV4iS/o1bZI5ssJbk4D2r8XuDuOBVz/tIx2JObtuqU+5Zw==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.8.tgz", + "integrity": "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==", + "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.2", + "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", - "@radix-ui/react-dismissable-layer": "1.1.10", + "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", - "@radix-ui/react-popper": "1.2.7", + "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", - "@radix-ui/react-presence": "1.1.4", + "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", @@ -1715,10 +2294,67 @@ } } }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-use-callback-ref": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz", "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==", + "license": "MIT", "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" @@ -1733,6 +2369,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz", "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==", + "license": "MIT", "dependencies": { "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-layout-effect": "1.1.1" @@ -1751,6 +2388,7 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz", "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==", + "license": "MIT", "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, @@ -1768,6 +2406,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz", "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==", + "license": "MIT", "dependencies": { "@radix-ui/react-use-callback-ref": "1.1.1" }, @@ -1785,6 +2424,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.0.tgz", "integrity": "sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==", + "license": "MIT", "dependencies": { "use-sync-external-store": "^1.5.0" }, @@ -1802,6 +2442,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz", "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==", + "license": "MIT", "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" @@ -1816,6 +2457,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz", "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==", + "license": "MIT", "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" @@ -1830,6 +2472,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz", "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==", + "license": "MIT", "dependencies": { "@radix-ui/rect": "1.1.1" }, @@ -1847,6 +2490,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz", "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==", + "license": "MIT", "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, @@ -1864,6 +2508,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz", "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==", + "license": "MIT", "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, @@ -1882,19 +2527,62 @@ } } }, + "node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/rect": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz", - "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==" + "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==", + "license": "MIT" }, "node_modules/@react-aria/focus": { - "version": "3.20.4", - "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.20.4.tgz", - "integrity": "sha512-E9M/kPYvF1fBZpkRXsKqMhvBVEyTY7vmkHeXLJo6tInKQOjYyYs0VeWlnGnxBjQIAH7J7ZKAORfTFQQHyhoueQ==", + "version": "3.21.4", + "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.21.4.tgz", + "integrity": "sha512-6gz+j9ip0/vFRTKJMl3R30MHopn4i19HqqLfSQfElxJD+r9hBnYG1Q6Wd/kl/WRR1+CALn2F+rn06jUnf5sT8Q==", + "license": "Apache-2.0", "dependencies": { - "@react-aria/interactions": "^3.25.2", - "@react-aria/utils": "^3.29.1", - "@react-types/shared": "^3.30.0", + "@react-aria/interactions": "^3.27.0", + "@react-aria/utils": "^3.33.0", + "@react-types/shared": "^3.33.0", "@swc/helpers": "^0.5.0", "clsx": "^2.0.0" }, @@ -1904,14 +2592,15 @@ } }, "node_modules/@react-aria/interactions": { - "version": "3.25.2", - "resolved": "https://registry.npmjs.org/@react-aria/interactions/-/interactions-3.25.2.tgz", - "integrity": "sha512-BWyZXBT4P17b9C9HfOIT2glDFMH9nUCfQF7vZ5FEeXNBudH/8OcSbzyBUG4Dg3XPtkOem5LP59ocaizkl32Tvg==", + "version": "3.27.0", + "resolved": "https://registry.npmjs.org/@react-aria/interactions/-/interactions-3.27.0.tgz", + "integrity": "sha512-D27pOy+0jIfHK60BB26AgqjjRFOYdvVSkwC31b2LicIzRCSPOSP06V4gMHuGmkhNTF4+YWDi1HHYjxIvMeiSlA==", + "license": "Apache-2.0", "dependencies": { - "@react-aria/ssr": "^3.9.9", - "@react-aria/utils": "^3.29.1", + "@react-aria/ssr": "^3.9.10", + "@react-aria/utils": "^3.33.0", "@react-stately/flags": "^3.1.2", - "@react-types/shared": "^3.30.0", + "@react-types/shared": "^3.33.0", "@swc/helpers": "^0.5.0" }, "peerDependencies": { @@ -1920,9 +2609,10 @@ } }, "node_modules/@react-aria/ssr": { - "version": "3.9.9", - "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.9.tgz", - "integrity": "sha512-2P5thfjfPy/np18e5wD4WPt8ydNXhij1jwA8oehxZTFqlgVMGXzcWKxTb4RtJrLFsqPO7RUQTiY8QJk0M4Vy2g==", + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.10.tgz", + "integrity": "sha512-hvTm77Pf+pMBhuBm760Li0BVIO38jv1IBws1xFm1NoL26PU+fe+FMW5+VZWyANR6nYL65joaJKZqOdTQMkO9IQ==", + "license": "Apache-2.0", "dependencies": { "@swc/helpers": "^0.5.0" }, @@ -1934,14 +2624,15 @@ } }, "node_modules/@react-aria/utils": { - "version": "3.29.1", - "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.29.1.tgz", - "integrity": "sha512-yXMFVJ73rbQ/yYE/49n5Uidjw7kh192WNN9PNQGV0Xoc7EJUlSOxqhnpHmYTyO0EotJ8fdM1fMH8durHjUSI8g==", + "version": "3.33.0", + "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.33.0.tgz", + "integrity": "sha512-yvz7CMH8d2VjwbSa5nGXqjU031tYhD8ddax95VzJsHSPyqHDEGfxul8RkhGV6oO7bVqZxVs6xY66NIgae+FHjw==", + "license": "Apache-2.0", "dependencies": { - "@react-aria/ssr": "^3.9.9", + "@react-aria/ssr": "^3.9.10", "@react-stately/flags": "^3.1.2", - "@react-stately/utils": "^3.10.7", - "@react-types/shared": "^3.30.0", + "@react-stately/utils": "^3.11.0", + "@react-types/shared": "^3.33.0", "@swc/helpers": "^0.5.0", "clsx": "^2.0.0" }, @@ -1954,14 +2645,16 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/@react-stately/flags/-/flags-3.1.2.tgz", "integrity": "sha512-2HjFcZx1MyQXoPqcBGALwWWmgFVUk2TuKVIQxCbRq7fPyWXIl6VHcakCLurdtYC2Iks7zizvz0Idv48MQ38DWg==", + "license": "Apache-2.0", "dependencies": { "@swc/helpers": "^0.5.0" } }, "node_modules/@react-stately/utils": { - "version": "3.10.7", - "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.10.7.tgz", - "integrity": "sha512-cWvjGAocvy4abO9zbr6PW6taHgF24Mwy/LbQ4TC4Aq3tKdKDntxyD+sh7AkSRfJRT2ccMVaHVv2+FfHThd3PKQ==", + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.11.0.tgz", + "integrity": "sha512-8LZpYowJ9eZmmYLpudbo/eclIRnbhWIJZ994ncmlKlouNzKohtM8qTC6B1w1pwUbiwGdUoyzLuQbeaIor5Dvcw==", + "license": "Apache-2.0", "dependencies": { "@swc/helpers": "^0.5.0" }, @@ -1970,23 +2663,24 @@ } }, "node_modules/@react-types/shared": { - "version": "3.30.0", - "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.30.0.tgz", - "integrity": "sha512-COIazDAx1ncDg046cTJ8SFYsX8aS3lB/08LDnbkH/SkdYrFPWDlXMrO/sUam8j1WWM+PJ+4d1mj7tODIKNiFog==", + "version": "3.33.0", + "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.33.0.tgz", + "integrity": "sha512-xuUpP6MyuPmJtzNOqF5pzFUIHH2YogyOQfUQHag54PRmWB7AbjuGWBUv0l1UDmz6+AbzAYGmDVAzcRDOu2PFpw==", + "license": "Apache-2.0", "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.9", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.9.tgz", - "integrity": "sha512-e9MeMtVWo186sgvFFJOPGy7/d2j2mZhLJIdVW0C/xDluuOvymEATqz6zKsP0ZmXGzQtqlyjz5sC1sYQUoJG98w==", + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.41.1.tgz", - "integrity": "sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz", + "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==", "cpu": [ "arm" ], @@ -1997,9 +2691,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.41.1.tgz", - "integrity": "sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz", + "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==", "cpu": [ "arm64" ], @@ -2010,9 +2704,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.41.1.tgz", - "integrity": "sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz", + "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==", "cpu": [ "arm64" ], @@ -2023,9 +2717,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.41.1.tgz", - "integrity": "sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz", + "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==", "cpu": [ "x64" ], @@ -2036,9 +2730,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.41.1.tgz", - "integrity": "sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz", + "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==", "cpu": [ "arm64" ], @@ -2049,9 +2743,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.41.1.tgz", - "integrity": "sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz", + "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==", "cpu": [ "x64" ], @@ -2062,9 +2756,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.41.1.tgz", - "integrity": "sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz", + "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==", "cpu": [ "arm" ], @@ -2075,9 +2769,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.41.1.tgz", - "integrity": "sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz", + "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==", "cpu": [ "arm" ], @@ -2088,9 +2782,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.41.1.tgz", - "integrity": "sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz", + "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==", "cpu": [ "arm64" ], @@ -2101,9 +2795,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.41.1.tgz", - "integrity": "sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz", + "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==", "cpu": [ "arm64" ], @@ -2113,10 +2807,23 @@ "linux" ] }, - "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.41.1.tgz", - "integrity": "sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==", + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz", + "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz", + "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==", "cpu": [ "loong64" ], @@ -2126,10 +2833,23 @@ "linux" ] }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.41.1.tgz", - "integrity": "sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==", + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz", + "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz", + "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==", "cpu": [ "ppc64" ], @@ -2140,9 +2860,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.41.1.tgz", - "integrity": "sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz", + "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==", "cpu": [ "riscv64" ], @@ -2153,9 +2873,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.41.1.tgz", - "integrity": "sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz", + "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==", "cpu": [ "riscv64" ], @@ -2166,9 +2886,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.41.1.tgz", - "integrity": "sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz", + "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==", "cpu": [ "s390x" ], @@ -2179,9 +2899,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.41.1.tgz", - "integrity": "sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz", + "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==", "cpu": [ "x64" ], @@ -2192,9 +2912,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.41.1.tgz", - "integrity": "sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz", + "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==", "cpu": [ "x64" ], @@ -2204,10 +2924,36 @@ "linux" ] }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz", + "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz", + "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.41.1.tgz", - "integrity": "sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz", + "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==", "cpu": [ "arm64" ], @@ -2218,9 +2964,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.41.1.tgz", - "integrity": "sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz", + "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==", "cpu": [ "ia32" ], @@ -2230,10 +2976,23 @@ "win32" ] }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz", + "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.41.1.tgz", - "integrity": "sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz", + "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==", "cpu": [ "x64" ], @@ -2244,60 +3003,56 @@ ] }, "node_modules/@swc/helpers": { - "version": "0.5.17", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.17.tgz", - "integrity": "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==", + "version": "0.5.18", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", + "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", + "license": "Apache-2.0", "dependencies": { "tslib": "^2.8.0" } }, "node_modules/@tailwindcss/node": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.8.tgz", - "integrity": "sha512-OWwBsbC9BFAJelmnNcrKuf+bka2ZxCE2A4Ft53Tkg4uoiE67r/PMEYwCsourC26E+kmxfwE0hVzMdxqeW+xu7Q==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.18.tgz", + "integrity": "sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==", "license": "MIT", "dependencies": { - "@ampproject/remapping": "^2.3.0", - "enhanced-resolve": "^5.18.1", - "jiti": "^2.4.2", - "lightningcss": "1.30.1", - "magic-string": "^0.30.17", + "@jridgewell/remapping": "^2.3.4", + "enhanced-resolve": "^5.18.3", + "jiti": "^2.6.1", + "lightningcss": "1.30.2", + "magic-string": "^0.30.21", "source-map-js": "^1.2.1", - "tailwindcss": "4.1.8" + "tailwindcss": "4.1.18" } }, "node_modules/@tailwindcss/oxide": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.8.tgz", - "integrity": "sha512-d7qvv9PsM5N3VNKhwVUhpK6r4h9wtLkJ6lz9ZY9aeZgrUWk1Z8VPyqyDT9MZlem7GTGseRQHkeB1j3tC7W1P+A==", - "hasInstallScript": true, + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.18.tgz", + "integrity": "sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==", "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.4", - "tar": "^7.4.3" - }, "engines": { "node": ">= 10" }, "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.1.8", - "@tailwindcss/oxide-darwin-arm64": "4.1.8", - "@tailwindcss/oxide-darwin-x64": "4.1.8", - "@tailwindcss/oxide-freebsd-x64": "4.1.8", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.8", - "@tailwindcss/oxide-linux-arm64-gnu": "4.1.8", - "@tailwindcss/oxide-linux-arm64-musl": "4.1.8", - "@tailwindcss/oxide-linux-x64-gnu": "4.1.8", - "@tailwindcss/oxide-linux-x64-musl": "4.1.8", - "@tailwindcss/oxide-wasm32-wasi": "4.1.8", - "@tailwindcss/oxide-win32-arm64-msvc": "4.1.8", - "@tailwindcss/oxide-win32-x64-msvc": "4.1.8" + "@tailwindcss/oxide-android-arm64": "4.1.18", + "@tailwindcss/oxide-darwin-arm64": "4.1.18", + "@tailwindcss/oxide-darwin-x64": "4.1.18", + "@tailwindcss/oxide-freebsd-x64": "4.1.18", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.18", + "@tailwindcss/oxide-linux-arm64-gnu": "4.1.18", + "@tailwindcss/oxide-linux-arm64-musl": "4.1.18", + "@tailwindcss/oxide-linux-x64-gnu": "4.1.18", + "@tailwindcss/oxide-linux-x64-musl": "4.1.18", + "@tailwindcss/oxide-wasm32-wasi": "4.1.18", + "@tailwindcss/oxide-win32-arm64-msvc": "4.1.18", + "@tailwindcss/oxide-win32-x64-msvc": "4.1.18" } }, "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.8.tgz", - "integrity": "sha512-Fbz7qni62uKYceWYvUjRqhGfZKwhZDQhlrJKGtnZfuNtHFqa8wmr+Wn74CTWERiW2hn3mN5gTpOoxWKk0jRxjg==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.18.tgz", + "integrity": "sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==", "cpu": [ "arm64" ], @@ -2311,9 +3066,9 @@ } }, "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.8.tgz", - "integrity": "sha512-RdRvedGsT0vwVVDztvyXhKpsU2ark/BjgG0huo4+2BluxdXo8NDgzl77qh0T1nUxmM11eXwR8jA39ibvSTbi7A==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.18.tgz", + "integrity": "sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==", "cpu": [ "arm64" ], @@ -2327,9 +3082,9 @@ } }, "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.8.tgz", - "integrity": "sha512-t6PgxjEMLp5Ovf7uMb2OFmb3kqzVTPPakWpBIFzppk4JE4ix0yEtbtSjPbU8+PZETpaYMtXvss2Sdkx8Vs4XRw==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.18.tgz", + "integrity": "sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==", "cpu": [ "x64" ], @@ -2343,9 +3098,9 @@ } }, "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.8.tgz", - "integrity": "sha512-g8C8eGEyhHTqwPStSwZNSrOlyx0bhK/V/+zX0Y+n7DoRUzyS8eMbVshVOLJTDDC+Qn9IJnilYbIKzpB9n4aBsg==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.18.tgz", + "integrity": "sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==", "cpu": [ "x64" ], @@ -2359,9 +3114,9 @@ } }, "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.8.tgz", - "integrity": "sha512-Jmzr3FA4S2tHhaC6yCjac3rGf7hG9R6Gf2z9i9JFcuyy0u79HfQsh/thifbYTF2ic82KJovKKkIB6Z9TdNhCXQ==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.18.tgz", + "integrity": "sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==", "cpu": [ "arm" ], @@ -2375,9 +3130,9 @@ } }, "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.8.tgz", - "integrity": "sha512-qq7jXtO1+UEtCmCeBBIRDrPFIVI4ilEQ97qgBGdwXAARrUqSn/L9fUrkb1XP/mvVtoVeR2bt/0L77xx53bPZ/Q==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.18.tgz", + "integrity": "sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==", "cpu": [ "arm64" ], @@ -2391,9 +3146,9 @@ } }, "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.8.tgz", - "integrity": "sha512-O6b8QesPbJCRshsNApsOIpzKt3ztG35gfX9tEf4arD7mwNinsoCKxkj8TgEE0YRjmjtO3r9FlJnT/ENd9EVefQ==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.18.tgz", + "integrity": "sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==", "cpu": [ "arm64" ], @@ -2407,9 +3162,9 @@ } }, "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.8.tgz", - "integrity": "sha512-32iEXX/pXwikshNOGnERAFwFSfiltmijMIAbUhnNyjFr3tmWmMJWQKU2vNcFX0DACSXJ3ZWcSkzNbaKTdngH6g==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.18.tgz", + "integrity": "sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==", "cpu": [ "x64" ], @@ -2423,9 +3178,9 @@ } }, "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.8.tgz", - "integrity": "sha512-s+VSSD+TfZeMEsCaFaHTaY5YNj3Dri8rST09gMvYQKwPphacRG7wbuQ5ZJMIJXN/puxPcg/nU+ucvWguPpvBDg==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.18.tgz", + "integrity": "sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==", "cpu": [ "x64" ], @@ -2439,9 +3194,9 @@ } }, "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.8.tgz", - "integrity": "sha512-CXBPVFkpDjM67sS1psWohZ6g/2/cd+cq56vPxK4JeawelxwK4YECgl9Y9TjkE2qfF+9/s1tHHJqrC4SS6cVvSg==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.18.tgz", + "integrity": "sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==", "bundleDependencies": [ "@napi-rs/wasm-runtime", "@emnapi/core", @@ -2456,21 +3211,21 @@ "license": "MIT", "optional": true, "dependencies": { - "@emnapi/core": "^1.4.3", - "@emnapi/runtime": "^1.4.3", - "@emnapi/wasi-threads": "^1.0.2", - "@napi-rs/wasm-runtime": "^0.2.10", - "@tybys/wasm-util": "^0.9.0", - "tslib": "^2.8.0" + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1", + "@emnapi/wasi-threads": "^1.1.0", + "@napi-rs/wasm-runtime": "^1.1.0", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.4.0" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.8.tgz", - "integrity": "sha512-7GmYk1n28teDHUjPlIx4Z6Z4hHEgvP5ZW2QS9ygnDAdI/myh3HTHjDqtSqgu1BpRoI4OiLx+fThAyA1JePoENA==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.18.tgz", + "integrity": "sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==", "cpu": [ "arm64" ], @@ -2484,9 +3239,9 @@ } }, "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.8.tgz", - "integrity": "sha512-fou+U20j+Jl0EHwK92spoWISON2OBnCazIc038Xj2TdweYV33ZRkS9nwqiUi2d/Wba5xg5UoHfvynnb/UB49cQ==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.18.tgz", + "integrity": "sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==", "cpu": [ "x64" ], @@ -2500,25 +3255,26 @@ } }, "node_modules/@tailwindcss/vite": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.8.tgz", - "integrity": "sha512-CQ+I8yxNV5/6uGaJjiuymgw0kEQiNKRinYbZXPdx1fk5WgiyReG0VaUx/Xq6aVNSUNJFzxm6o8FNKS5aMaim5A==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.18.tgz", + "integrity": "sha512-jVA+/UpKL1vRLg6Hkao5jldawNmRo7mQYrZtNHMIVpLfLhDml5nMRUo/8MwoX2vNXvnaXNNMedrMfMugAVX1nA==", "license": "MIT", "dependencies": { - "@tailwindcss/node": "4.1.8", - "@tailwindcss/oxide": "4.1.8", - "tailwindcss": "4.1.8" + "@tailwindcss/node": "4.1.18", + "@tailwindcss/oxide": "4.1.18", + "tailwindcss": "4.1.18" }, "peerDependencies": { - "vite": "^5.2.0 || ^6" + "vite": "^5.2.0 || ^6 || ^7" } }, "node_modules/@tanstack/react-virtual": { - "version": "3.13.9", - "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.13.9.tgz", - "integrity": "sha512-SPWC8kwG/dWBf7Py7cfheAPOxuvIv4fFQ54PdmYbg7CpXfsKxkucak43Q0qKsxVthhUJQ1A7CIMAIplq4BjVwA==", + "version": "3.13.18", + "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.13.18.tgz", + "integrity": "sha512-dZkhyfahpvlaV0rIKnvQiVoWPyURppl6w4m9IwMDpuIjcJ1sD9YGWrt0wISvgU7ewACXx2Ct46WPgI6qAD4v6A==", + "license": "MIT", "dependencies": { - "@tanstack/virtual-core": "3.13.9" + "@tanstack/virtual-core": "3.13.18" }, "funding": { "type": "github", @@ -2530,9 +3286,10 @@ } }, "node_modules/@tanstack/virtual-core": { - "version": "3.13.9", - "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.13.9.tgz", - "integrity": "sha512-3jztt0jpaoJO5TARe2WIHC1UQC3VMLAFUW5mmMo0yrkwtDB2AQP0+sh10BVUpWrnvHjSLvzFizydtEGLCJKFoQ==", + "version": "3.13.18", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.13.18.tgz", + "integrity": "sha512-Mx86Hqu1k39icq2Zusq+Ey2J6dDWTjDvEv43PJtRCoEYTLyfaPnxIQ6iy7YAOK0NV/qOEmZQ/uCufrppZxTgcg==", + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" @@ -2571,62 +3328,77 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", - "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "license": "MIT", "dependencies": { - "@babel/types": "^7.20.7" + "@babel/types": "^7.28.2" } }, "node_modules/@types/estree": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", - "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", "license": "MIT" }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-RDvF6wTulMPjrNdCoYRC8gNR880JNGT8uB+REUpC2Ns4pRqQJhGz90wh7rgdXDPpCczF3VGktDuFGVnz8zP7HA==", + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", "license": "MIT", - "peer": true + "dependencies": { + "@types/lodash": "*" + } }, "node_modules/@types/react": { - "version": "19.1.6", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.6.tgz", - "integrity": "sha512-JeG0rEWak0N6Itr6QUx+X60uQmN+5t3j9r/OVDtWzFXKaj6kD1BwJzOksD0FF6iWxZlbE1kB0q9vtnU2ekqa1Q==", + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", "devOptional": true, "license": "MIT", + "peer": true, "dependencies": { - "csstype": "^3.0.2" + "csstype": "^3.2.2" } }, "node_modules/@types/react-dom": { - "version": "19.1.6", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.6.tgz", - "integrity": "sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", "devOptional": true, "license": "MIT", + "peer": true, "peerDependencies": { - "@types/react": "^19.0.0" + "@types/react": "^19.2.0" } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.33.1.tgz", - "integrity": "sha512-TDCXj+YxLgtvxvFlAvpoRv9MAncDLBV2oT9Bd7YBGC/b/sEURoOYuIwLI99rjWOfY3QtDzO+mk0n4AmdFExW8A==", - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.33.1", - "@typescript-eslint/type-utils": "8.33.1", - "@typescript-eslint/utils": "8.33.1", - "@typescript-eslint/visitor-keys": "8.33.1", - "graphemer": "^1.4.0", - "ignore": "^7.0.0", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.55.0.tgz", + "integrity": "sha512-1y/MVSz0NglV1ijHC8OT49mPJ4qhPYjiK08YUQVbIOyu+5k862LKUHFkpKHWu//zmr7hDR2rhwUm6gnCGNmGBQ==", + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.55.0", + "@typescript-eslint/type-utils": "8.55.0", + "@typescript-eslint/utils": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0", + "ignore": "^7.0.5", "natural-compare": "^1.4.0", - "ts-api-utils": "^2.1.0" + "ts-api-utils": "^2.4.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2636,9 +3408,9 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.33.1", + "@typescript-eslint/parser": "^8.55.0", "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { @@ -2651,16 +3423,17 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.33.1.tgz", - "integrity": "sha512-qwxv6dq682yVvgKKp2qWwLgRbscDAYktPptK4JPojCwwi3R9cwrvIxS4lvBpzmcqzR4bdn54Z0IG1uHFskW4dA==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.55.0.tgz", + "integrity": "sha512-4z2nCSBfVIMnbuu8uinj+f0o4qOeggYJLbjpPHka3KH1om7e+H9yLKTYgksTaHcGco+NClhhY2vyO3HsMH1RGw==", "license": "MIT", + "peer": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.33.1", - "@typescript-eslint/types": "8.33.1", - "@typescript-eslint/typescript-estree": "8.33.1", - "@typescript-eslint/visitor-keys": "8.33.1", - "debug": "^4.3.4" + "@typescript-eslint/scope-manager": "8.55.0", + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0", + "debug": "^4.4.3" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2671,18 +3444,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.33.1.tgz", - "integrity": "sha512-DZR0efeNklDIHHGRpMpR5gJITQpu6tLr9lDJnKdONTC7vvzOlLAG/wcfxcdxEWrbiZApcoBCzXqU/Z458Za5Iw==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.55.0.tgz", + "integrity": "sha512-zRcVVPFUYWa3kNnjaZGXSu3xkKV1zXy8M4nO/pElzQhFweb7PPtluDLQtKArEOGmjXoRjnUZ29NjOiF0eCDkcQ==", "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.33.1", - "@typescript-eslint/types": "^8.33.1", - "debug": "^4.3.4" + "@typescript-eslint/tsconfig-utils": "^8.55.0", + "@typescript-eslint/types": "^8.55.0", + "debug": "^4.4.3" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2692,17 +3465,17 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.33.1.tgz", - "integrity": "sha512-dM4UBtgmzHR9bS0Rv09JST0RcHYearoEoo3pG5B6GoTR9XcyeqX87FEhPo+5kTvVfKCvfHaHrcgeJQc6mrDKrA==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.55.0.tgz", + "integrity": "sha512-fVu5Omrd3jeqeQLiB9f1YsuK/iHFOwb04bCtY4BSCLgjNbOD33ZdV6KyEqplHr+IlpgT0QTZ/iJ+wT7hvTx49Q==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.33.1", - "@typescript-eslint/visitor-keys": "8.33.1" + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2713,9 +3486,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.33.1.tgz", - "integrity": "sha512-STAQsGYbHCF0/e+ShUQ4EatXQ7ceh3fBCXkNU7/MZVKulrlq1usH7t2FhxvCpuCi5O5oi1vmVaAjrGeL71OK1g==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.55.0.tgz", + "integrity": "sha512-1R9cXqY7RQd7WuqSN47PK9EDpgFUK3VqdmbYrvWJZYDd0cavROGn+74ktWBlmJ13NXUQKlZ/iAEQHI/V0kKe0Q==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2725,19 +3498,20 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.33.1.tgz", - "integrity": "sha512-1cG37d9xOkhlykom55WVwG2QRNC7YXlxMaMzqw2uPeJixBFfKWZgaP/hjAObqMN/u3fr5BrTwTnc31/L9jQ2ww==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.55.0.tgz", + "integrity": "sha512-x1iH2unH4qAt6I37I2CGlsNs+B9WGxurP2uyZLRz6UJoZWDBx9cJL1xVN/FiOmHEONEg6RIufdvyT0TEYIgC5g==", "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.33.1", - "@typescript-eslint/utils": "8.33.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.1.0" + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0", + "@typescript-eslint/utils": "8.55.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2748,13 +3522,13 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.33.1.tgz", - "integrity": "sha512-xid1WfizGhy/TKMTwhtVOgalHwPtV8T32MS9MaH50Cwvz6x6YqRIPdD2WvW0XaqOzTV9p5xdLY0h/ZusU5Lokg==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.55.0.tgz", + "integrity": "sha512-ujT0Je8GI5BJWi+/mMoR0wxwVEQaxM+pi30xuMiJETlX80OPovb2p9E8ss87gnSVtYXtJoU9U1Cowcr6w2FE0w==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2765,21 +3539,20 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.33.1.tgz", - "integrity": "sha512-+s9LYcT8LWjdYWu7IWs7FvUxpQ/DGkdjZeE/GGulHvv8rvYwQvVaUZ6DE+j5x/prADUgSbbCWZ2nPI3usuVeOA==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.55.0.tgz", + "integrity": "sha512-EwrH67bSWdx/3aRQhCoxDaHM+CrZjotc2UCCpEDVqfCE+7OjKAGWNY2HsCSTEVvWH2clYQK8pdeLp42EVs+xQw==", "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.33.1", - "@typescript-eslint/tsconfig-utils": "8.33.1", - "@typescript-eslint/types": "8.33.1", - "@typescript-eslint/visitor-keys": "8.33.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.1.0" + "@typescript-eslint/project-service": "8.55.0", + "@typescript-eslint/tsconfig-utils": "8.55.0", + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/visitor-keys": "8.55.0", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2789,13 +3562,13 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" @@ -2817,9 +3590,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -2829,15 +3602,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.33.1.tgz", - "integrity": "sha512-52HaBiEQUaRYqAXpfzWSR2U3gxk92Kw006+xZpElaPMg3C4PgM+A5LqwoQI1f9E5aZ/qlxAZxzm42WX+vn92SQ==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.55.0.tgz", + "integrity": "sha512-BqZEsnPGdYpgyEIkDC1BadNY8oMwckftxBT+C8W0g1iKPdeqKZBtTfnvcq0nf60u7MkjFO8RBvpRGZBPw4L2ow==", "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.33.1", - "@typescript-eslint/types": "8.33.1", - "@typescript-eslint/typescript-estree": "8.33.1" + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.55.0", + "@typescript-eslint/types": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2848,17 +3621,17 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.33.1.tgz", - "integrity": "sha512-3i8NrFcZeeDHJ+7ZUuDkGT+UHq+XoFGsymNK2jZCOHcfEzRQ0BdpRtdpSx/Iyf3MHLWIcLS0COuOPibKQboIiQ==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.55.0.tgz", + "integrity": "sha512-AxNRwEie8Nn4eFS1FzDMJWIISMGoXMb037sgCBJ3UR6o0fQTzr2tqN9WT+DkWJPhIdQCfV7T6D387566VtnCJA==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.33.1", - "eslint-visitor-keys": "^4.2.0" + "@typescript-eslint/types": "8.55.0", + "eslint-visitor-keys": "^4.2.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2869,15 +3642,15 @@ } }, "node_modules/@vitejs/plugin-react": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.5.1.tgz", - "integrity": "sha512-uPZBqSI0YD4lpkIru6M35sIfylLGTyhGHvDZbNLuMA73lMlwJKz5xweH7FajfcCAc2HnINciejA9qTz0dr0M7A==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", "license": "MIT", "dependencies": { - "@babel/core": "^7.26.10", - "@babel/plugin-transform-react-jsx-self": "^7.25.9", - "@babel/plugin-transform-react-jsx-source": "^7.25.9", - "@rolldown/pluginutils": "1.0.0-beta.9", + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, @@ -2885,13 +3658,13 @@ "node": "^14.18.0 || >=16.0.0" }, "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", "peer": true, "bin": { @@ -2906,7 +3679,6 @@ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "license": "MIT", - "peer": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -2916,7 +3688,6 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "license": "MIT", - "peer": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2933,7 +3704,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "license": "MIT", - "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -2948,13 +3718,13 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "license": "Python-2.0", - "peer": true + "license": "Python-2.0" }, "node_modules/aria-hidden": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz", "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==", + "license": "MIT", "dependencies": { "tslib": "^2.0.0" }, @@ -3124,13 +3894,13 @@ } }, "node_modules/axios": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.9.0.tgz", - "integrity": "sha512-re4CqKTJaURpzbLHtIi6XpDv20/CnpXOtjRY5/CU32L8gU8ek9UIivcfvSWvmKEngmVbrUtPpdDwWDWL7DNHvg==", + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", + "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", "license": "MIT", "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", "proxy-from-env": "^1.1.0" } }, @@ -3140,32 +3910,29 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/browserslist": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.0.tgz", - "integrity": "sha512-PJ8gYKeS5e/whHBh8xrwYK+dAvEj7JXtz6uTucnMRB8OiGTsKccFekoRrjajPBHV8oOY+2tI4uxeceSimKwMFA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "funding": [ { "type": "opencollective", @@ -3181,11 +3948,13 @@ } ], "license": "MIT", + "peer": true, "dependencies": { - "caniuse-lite": "^1.0.30001718", - "electron-to-chromium": "^1.5.160", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -3246,15 +4015,14 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001721", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001721.tgz", - "integrity": "sha512-cOuvmUVtKrtEaoKiO0rSc29jcjwMwX5tOHDy4MgVFEWiUXj4uBMJkwI8MDySkgXidpMiHUcviogAvFi4pA2hDQ==", + "version": "1.0.30001769", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz", + "integrity": "sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==", "funding": [ { "type": "opencollective", @@ -3276,7 +4044,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -3288,19 +4055,11 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, "node_modules/class-variance-authority": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", "dependencies": { "clsx": "^2.1.1" }, @@ -3322,7 +4081,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "license": "MIT", - "peer": true, "dependencies": { "color-name": "~1.1.4" }, @@ -3334,8 +4092,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/combined-stream": { "version": "1.0.8", @@ -3366,7 +4123,6 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", - "peer": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3377,9 +4133,9 @@ } }, "node_modules/csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "devOptional": true, "license": "MIT" }, @@ -3435,9 +4191,9 @@ } }, "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -3455,8 +4211,7 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/define-data-property": { "version": "1.1.4", @@ -3502,9 +4257,9 @@ } }, "node_modules/detect-libc": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz", - "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "license": "Apache-2.0", "engines": { "node": ">=8" @@ -3513,7 +4268,8 @@ "node_modules/detect-node-es": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", - "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==" + "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", + "license": "MIT" }, "node_modules/doctrine": { "version": "2.1.0", @@ -3542,28 +4298,28 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.165", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.165.tgz", - "integrity": "sha512-naiMx1Z6Nb2TxPU6fiFrUrDTjyPMLdTtaOd2oLmG8zVSg2hCWGkhPyxwk+qRmZ1ytwVqUv0u7ZcDA5+ALhaUtw==", + "version": "1.5.286", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz", + "integrity": "sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==", "license": "ISC" }, "node_modules/enhanced-resolve": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz", - "integrity": "sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==", + "version": "5.19.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.19.0.tgz", + "integrity": "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==", "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "tapable": "^2.3.0" }, "engines": { "node": ">=10.13.0" } }, "node_modules/es-abstract": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", - "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz", + "integrity": "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==", "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.2", @@ -3647,26 +4403,26 @@ } }, "node_modules/es-iterator-helpers": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", - "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.2.tgz", + "integrity": "sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==", "license": "MIT", "dependencies": { "call-bind": "^1.0.8", - "call-bound": "^1.0.3", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.6", + "es-abstract": "^1.24.1", "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.0.3", + "es-set-tostringtag": "^2.1.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.6", + "get-intrinsic": "^1.3.0", "globalthis": "^1.0.4", "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", "has-proto": "^1.2.0", "has-symbols": "^1.1.0", "internal-slot": "^1.1.0", - "iterator.prototype": "^1.1.4", + "iterator.prototype": "^1.1.5", "safe-array-concat": "^1.1.3" }, "engines": { @@ -3729,20 +4485,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-toolkit": { - "version": "1.38.0", - "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.38.0.tgz", - "integrity": "sha512-OT3AxczYYd3W50bCj4V0hKoOAfqIy9tof0leNQYekEDxVKir3RTVTJOLij7VAe6fsCNsGhC0JqIkURpMXTCSEA==", - "license": "MIT", - "workspaces": [ - "docs", - "benchmarks" - ] - }, "node_modules/esbuild": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.5.tgz", - "integrity": "sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", "hasInstallScript": true, "license": "MIT", "bin": { @@ -3752,31 +4498,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.5", - "@esbuild/android-arm": "0.25.5", - "@esbuild/android-arm64": "0.25.5", - "@esbuild/android-x64": "0.25.5", - "@esbuild/darwin-arm64": "0.25.5", - "@esbuild/darwin-x64": "0.25.5", - "@esbuild/freebsd-arm64": "0.25.5", - "@esbuild/freebsd-x64": "0.25.5", - "@esbuild/linux-arm": "0.25.5", - "@esbuild/linux-arm64": "0.25.5", - "@esbuild/linux-ia32": "0.25.5", - "@esbuild/linux-loong64": "0.25.5", - "@esbuild/linux-mips64el": "0.25.5", - "@esbuild/linux-ppc64": "0.25.5", - "@esbuild/linux-riscv64": "0.25.5", - "@esbuild/linux-s390x": "0.25.5", - "@esbuild/linux-x64": "0.25.5", - "@esbuild/netbsd-arm64": "0.25.5", - "@esbuild/netbsd-x64": "0.25.5", - "@esbuild/openbsd-arm64": "0.25.5", - "@esbuild/openbsd-x64": "0.25.5", - "@esbuild/sunos-x64": "0.25.5", - "@esbuild/win32-arm64": "0.25.5", - "@esbuild/win32-ia32": "0.25.5", - "@esbuild/win32-x64": "0.25.5" + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" } }, "node_modules/escalade": { @@ -3793,7 +4540,6 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -3802,33 +4548,32 @@ } }, "node_modules/eslint": { - "version": "9.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.28.0.tgz", - "integrity": "sha512-ocgh41VhRlf9+fVpe7QKzwLj9c92fDiqOj8Y3Sd4/ZmVA4Btx4PlUYPq4pp9JDyupkf1upbEXecxL2mwNV7jPQ==", + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", "license": "MIT", "peer": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.20.0", - "@eslint/config-helpers": "^0.2.1", - "@eslint/core": "^0.14.0", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.28.0", - "@eslint/plugin-kit": "^0.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -3863,9 +4608,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "10.1.5", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.5.tgz", - "integrity": "sha512-zc1UmCpNltmVY34vuLRV61r1K27sWuX39E+uyUnY8xS2Bex88VV9cugG+UZbRSRGtGyFboj+D8JODyme1plMpw==", + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" @@ -3922,11 +4667,10 @@ } }, "node_modules/eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "license": "BSD-2-Clause", - "peer": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -3939,9 +4683,9 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3951,15 +4695,14 @@ } }, "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "license": "BSD-2-Clause", - "peer": true, "dependencies": { - "acorn": "^8.14.0", + "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" + "eslint-visitor-keys": "^4.2.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3969,11 +4712,10 @@ } }, "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", "license": "BSD-3-Clause", - "peer": true, "dependencies": { "estraverse": "^5.1.0" }, @@ -3986,7 +4728,6 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "license": "BSD-2-Clause", - "peer": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -4016,65 +4757,28 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT", - "peer": true - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } + "license": "MIT" }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "license": "MIT", - "peer": true - }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } + "license": "MIT" }, "node_modules/fdir": { - "version": "6.4.5", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.5.tgz", - "integrity": "sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, "peerDependencies": { "picomatch": "^3 || ^4" }, @@ -4089,7 +4793,6 @@ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "license": "MIT", - "peer": true, "dependencies": { "flat-cache": "^4.0.0" }, @@ -4097,24 +4800,11 @@ "node": ">=16.0.0" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "license": "MIT", - "peer": true, "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -4131,7 +4821,6 @@ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "license": "MIT", - "peer": true, "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.4" @@ -4144,13 +4833,12 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", "funding": [ { "type": "individual", @@ -4183,14 +4871,15 @@ } }, "node_modules/form-data": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", - "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", "mime-types": "^2.1.12" }, "engines": { @@ -4198,13 +4887,13 @@ } }, "node_modules/framer-motion": { - "version": "12.16.0", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.16.0.tgz", - "integrity": "sha512-xryrmD4jSBQrS2IkMdcTmiS4aSKckbS7kLDCuhUn9110SQKG1w3zlq1RTqCblewg+ZYe+m3sdtzQA6cRwo5g8Q==", + "version": "12.34.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.34.0.tgz", + "integrity": "sha512-+/H49owhzkzQyxtn7nZeF4kdH++I2FWrESQ184Zbcw5cEqNHYkE5yxWxcTLSj5lNx3NWdbIRy5FHqUvetD8FWg==", "license": "MIT", "dependencies": { - "motion-dom": "^12.16.0", - "motion-utils": "^12.12.1", + "motion-dom": "^12.34.0", + "motion-utils": "^12.29.2", "tslib": "^2.4.0" }, "peerDependencies": { @@ -4276,6 +4965,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -4313,6 +5011,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", + "license": "MIT", "engines": { "node": ">=6" } @@ -4352,7 +5051,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "license": "ISC", - "peer": true, "dependencies": { "is-glob": "^4.0.3" }, @@ -4361,9 +5059,9 @@ } }, "node_modules/globals": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.2.0.tgz", - "integrity": "sha512-O+7l9tPdHCU320IigZZPj5zmRCFG9xHmx9cU8FqU2Rp+JN714seHV+2S9+JslCpY4gJwU2vOGox0wzgae/MCEg==", + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", "license": "MIT", "engines": { "node": ">=18" @@ -4406,12 +5104,6 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "license": "ISC" }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "license": "MIT" - }, "node_modules/has-bigints": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", @@ -4429,7 +5121,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -4505,7 +5196,6 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "license": "MIT", - "peer": true, "engines": { "node": ">= 4" } @@ -4515,7 +5205,6 @@ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "license": "MIT", - "peer": true, "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -4532,7 +5221,6 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "license": "MIT", - "peer": true, "engines": { "node": ">=0.8.19" } @@ -4703,13 +5391,14 @@ } }, "node_modules/is-generator-function": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", - "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "get-proto": "^1.0.0", + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" }, @@ -4756,15 +5445,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/is-number-object": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", @@ -4927,8 +5607,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/iterator.prototype": { "version": "1.1.5", @@ -4948,9 +5627,9 @@ } }, "node_modules/jiti": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", - "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", "license": "MIT", "bin": { "jiti": "lib/jiti-cli.mjs" @@ -4963,11 +5642,10 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "license": "MIT", - "peer": true, "dependencies": { "argparse": "^2.0.1" }, @@ -4991,22 +5669,19 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/json5": { "version": "2.2.3", @@ -5040,11 +5715,20 @@ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "license": "MIT", - "peer": true, "dependencies": { "json-buffer": "3.0.1" } }, + "node_modules/laravel-precognition": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/laravel-precognition/-/laravel-precognition-1.0.2.tgz", + "integrity": "sha512-0H08JDdMWONrL/N314fvsO3FATJwGGlFKGkMF3nNmizVFJaWs17816iM+sX7Rp8d5hUjYCx6WLfsehSKfaTxjg==", + "license": "MIT", + "dependencies": { + "axios": "^1.4.0", + "lodash-es": "^4.17.21" + } + }, "node_modules/laravel-vite-plugin": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.3.0.tgz", @@ -5069,7 +5753,6 @@ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "license": "MIT", - "peer": true, "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -5079,9 +5762,9 @@ } }, "node_modules/lightningcss": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz", - "integrity": "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.2.tgz", + "integrity": "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==", "license": "MPL-2.0", "dependencies": { "detect-libc": "^2.0.3" @@ -5094,22 +5777,43 @@ "url": "https://opencollective.com/parcel" }, "optionalDependencies": { - "lightningcss-darwin-arm64": "1.30.1", - "lightningcss-darwin-x64": "1.30.1", - "lightningcss-freebsd-x64": "1.30.1", - "lightningcss-linux-arm-gnueabihf": "1.30.1", - "lightningcss-linux-arm64-gnu": "1.30.1", - "lightningcss-linux-arm64-musl": "1.30.1", - "lightningcss-linux-x64-gnu": "1.30.1", - "lightningcss-linux-x64-musl": "1.30.1", - "lightningcss-win32-arm64-msvc": "1.30.1", - "lightningcss-win32-x64-msvc": "1.30.1" + "lightningcss-android-arm64": "1.30.2", + "lightningcss-darwin-arm64": "1.30.2", + "lightningcss-darwin-x64": "1.30.2", + "lightningcss-freebsd-x64": "1.30.2", + "lightningcss-linux-arm-gnueabihf": "1.30.2", + "lightningcss-linux-arm64-gnu": "1.30.2", + "lightningcss-linux-arm64-musl": "1.30.2", + "lightningcss-linux-x64-gnu": "1.30.2", + "lightningcss-linux-x64-musl": "1.30.2", + "lightningcss-win32-arm64-msvc": "1.30.2", + "lightningcss-win32-x64-msvc": "1.30.2" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.30.2.tgz", + "integrity": "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, "node_modules/lightningcss-darwin-arm64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz", - "integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.2.tgz", + "integrity": "sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==", "cpu": [ "arm64" ], @@ -5127,9 +5831,9 @@ } }, "node_modules/lightningcss-darwin-x64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.1.tgz", - "integrity": "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.2.tgz", + "integrity": "sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==", "cpu": [ "x64" ], @@ -5147,9 +5851,9 @@ } }, "node_modules/lightningcss-freebsd-x64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.1.tgz", - "integrity": "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.2.tgz", + "integrity": "sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==", "cpu": [ "x64" ], @@ -5167,9 +5871,9 @@ } }, "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.1.tgz", - "integrity": "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.2.tgz", + "integrity": "sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==", "cpu": [ "arm" ], @@ -5187,9 +5891,9 @@ } }, "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.1.tgz", - "integrity": "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.2.tgz", + "integrity": "sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==", "cpu": [ "arm64" ], @@ -5207,9 +5911,9 @@ } }, "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.1.tgz", - "integrity": "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.2.tgz", + "integrity": "sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==", "cpu": [ "arm64" ], @@ -5227,9 +5931,9 @@ } }, "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.1.tgz", - "integrity": "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.2.tgz", + "integrity": "sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==", "cpu": [ "x64" ], @@ -5247,9 +5951,9 @@ } }, "node_modules/lightningcss-linux-x64-musl": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.1.tgz", - "integrity": "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.2.tgz", + "integrity": "sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==", "cpu": [ "x64" ], @@ -5267,9 +5971,9 @@ } }, "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.1.tgz", - "integrity": "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.2.tgz", + "integrity": "sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==", "cpu": [ "arm64" ], @@ -5287,9 +5991,9 @@ } }, "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.1.tgz", - "integrity": "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==", + "version": "1.30.2", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.2.tgz", + "integrity": "sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==", "cpu": [ "x64" ], @@ -5311,7 +6015,6 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "license": "MIT", - "peer": true, "dependencies": { "p-locate": "^5.0.0" }, @@ -5322,12 +6025,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash-es": { + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz", + "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==", + "license": "MIT" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/loose-envify": { "version": "1.4.0", @@ -5354,17 +6062,18 @@ "version": "0.513.0", "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.513.0.tgz", "integrity": "sha512-CJZKq2g8Y8yN4Aq002GahSXbG2JpFv9kXwyiOAMvUBv7pxeOFHUWKB0mO7MiY4ZVFCV4aNjv2BJFq/z3DgKPQg==", + "license": "ISC", "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/magic-string": { - "version": "0.30.17", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", - "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" + "@jridgewell/sourcemap-codec": "^1.5.5" } }, "node_modules/math-intrinsics": { @@ -5376,40 +6085,6 @@ "node": ">= 0.4" } }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/micromatch/node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -5443,55 +6118,19 @@ "node": "*" } }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minizlib": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz", - "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==", - "license": "MIT", - "dependencies": { - "minipass": "^7.1.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/motion-dom": { - "version": "12.16.0", - "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.16.0.tgz", - "integrity": "sha512-Z2nGwWrrdH4egLEtgYMCEN4V2qQt1qxlKy/uV7w691ztyA41Q5Rbn0KNGbsNVDZr9E8PD2IOQ3hSccRnB6xWzw==", + "version": "12.34.0", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.34.0.tgz", + "integrity": "sha512-Lql3NuEcScRDxTAO6GgUsRHBZOWI/3fnMlkMcH5NftzcN37zJta+bpbMAV9px4Nj057TuvRooMK7QrzMCgtz6Q==", "license": "MIT", "dependencies": { - "motion-utils": "^12.12.1" + "motion-utils": "^12.29.2" } }, "node_modules/motion-utils": { - "version": "12.12.1", - "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.12.1.tgz", - "integrity": "sha512-f9qiqUHm7hWSLlNW8gS9pisnsN7CRFRD58vNjptKdsqFLpkVnX00TNeD6Q0d27V9KzT7ySFyK1TZ/DShfVOv6w==", + "version": "12.29.2", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.29.2.tgz", + "integrity": "sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==", "license": "MIT" }, "node_modules/ms": { @@ -5535,9 +6174,9 @@ } }, "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "license": "MIT" }, "node_modules/object-assign": { @@ -5646,7 +6285,6 @@ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "license": "MIT", - "peer": true, "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -5681,7 +6319,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "license": "MIT", - "peer": true, "dependencies": { "yocto-queue": "^0.1.0" }, @@ -5697,7 +6334,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "license": "MIT", - "peer": true, "dependencies": { "p-limit": "^3.0.2" }, @@ -5713,7 +6349,6 @@ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "license": "MIT", - "peer": true, "dependencies": { "callsites": "^3.0.0" }, @@ -5726,7 +6361,6 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -5736,7 +6370,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -5754,10 +6387,11 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -5775,9 +6409,9 @@ } }, "node_modules/postcss": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.4.tgz", - "integrity": "sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==", + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", "funding": [ { "type": "opencollective", @@ -5807,7 +6441,6 @@ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8.0" } @@ -5834,15 +6467,14 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "license": "MIT", - "peer": true, "engines": { "node": ">=6" } }, "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "version": "6.14.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz", + "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" @@ -5854,45 +6486,27 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/react": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", - "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", + "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", - "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", + "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", "license": "MIT", + "peer": true, "dependencies": { - "scheduler": "^0.26.0" + "scheduler": "^0.27.0" }, "peerDependencies": { - "react": "^19.1.0" + "react": "^19.2.4" } }, "node_modules/react-is": { @@ -5911,9 +6525,10 @@ } }, "node_modules/react-remove-scroll": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz", - "integrity": "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==", + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz", + "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==", + "license": "MIT", "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", @@ -5938,6 +6553,7 @@ "version": "2.3.8", "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz", "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==", + "license": "MIT", "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" @@ -5959,6 +6575,7 @@ "version": "2.2.3", "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz", "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==", + "license": "MIT", "dependencies": { "get-nonce": "^1.0.0", "tslib": "^2.0.0" @@ -6040,28 +6657,17 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "license": "MIT", - "peer": true, "engines": { "node": ">=4" } }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, "node_modules/rollup": { - "version": "4.41.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.41.1.tgz", - "integrity": "sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz", + "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==", "license": "MIT", "dependencies": { - "@types/estree": "1.0.7" + "@types/estree": "1.0.8" }, "bin": { "rollup": "dist/bin/rollup" @@ -6071,52 +6677,34 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.41.1", - "@rollup/rollup-android-arm64": "4.41.1", - "@rollup/rollup-darwin-arm64": "4.41.1", - "@rollup/rollup-darwin-x64": "4.41.1", - "@rollup/rollup-freebsd-arm64": "4.41.1", - "@rollup/rollup-freebsd-x64": "4.41.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.41.1", - "@rollup/rollup-linux-arm-musleabihf": "4.41.1", - "@rollup/rollup-linux-arm64-gnu": "4.41.1", - "@rollup/rollup-linux-arm64-musl": "4.41.1", - "@rollup/rollup-linux-loongarch64-gnu": "4.41.1", - "@rollup/rollup-linux-powerpc64le-gnu": "4.41.1", - "@rollup/rollup-linux-riscv64-gnu": "4.41.1", - "@rollup/rollup-linux-riscv64-musl": "4.41.1", - "@rollup/rollup-linux-s390x-gnu": "4.41.1", - "@rollup/rollup-linux-x64-gnu": "4.41.1", - "@rollup/rollup-linux-x64-musl": "4.41.1", - "@rollup/rollup-win32-arm64-msvc": "4.41.1", - "@rollup/rollup-win32-ia32-msvc": "4.41.1", - "@rollup/rollup-win32-x64-msvc": "4.41.1", + "@rollup/rollup-android-arm-eabi": "4.57.1", + "@rollup/rollup-android-arm64": "4.57.1", + "@rollup/rollup-darwin-arm64": "4.57.1", + "@rollup/rollup-darwin-x64": "4.57.1", + "@rollup/rollup-freebsd-arm64": "4.57.1", + "@rollup/rollup-freebsd-x64": "4.57.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.57.1", + "@rollup/rollup-linux-arm-musleabihf": "4.57.1", + "@rollup/rollup-linux-arm64-gnu": "4.57.1", + "@rollup/rollup-linux-arm64-musl": "4.57.1", + "@rollup/rollup-linux-loong64-gnu": "4.57.1", + "@rollup/rollup-linux-loong64-musl": "4.57.1", + "@rollup/rollup-linux-ppc64-gnu": "4.57.1", + "@rollup/rollup-linux-ppc64-musl": "4.57.1", + "@rollup/rollup-linux-riscv64-gnu": "4.57.1", + "@rollup/rollup-linux-riscv64-musl": "4.57.1", + "@rollup/rollup-linux-s390x-gnu": "4.57.1", + "@rollup/rollup-linux-x64-gnu": "4.57.1", + "@rollup/rollup-linux-x64-musl": "4.57.1", + "@rollup/rollup-openbsd-x64": "4.57.1", + "@rollup/rollup-openharmony-arm64": "4.57.1", + "@rollup/rollup-win32-arm64-msvc": "4.57.1", + "@rollup/rollup-win32-ia32-msvc": "4.57.1", + "@rollup/rollup-win32-x64-gnu": "4.57.1", + "@rollup/rollup-win32-x64-msvc": "4.57.1", "fsevents": "~2.3.2" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, "node_modules/safe-array-concat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", @@ -6170,9 +6758,9 @@ } }, "node_modules/scheduler": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", - "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", "license": "MIT" }, "node_modules/semver": { @@ -6235,7 +6823,6 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "license": "MIT", - "peer": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -6248,7 +6835,6 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -6326,9 +6912,9 @@ } }, "node_modules/sonner": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.5.tgz", - "integrity": "sha512-YwbHQO6cSso3HBXlbCkgrgzDNIhws14r4MO87Ofy+cV2X7ES4pOoAK3+veSmVTvqNx1BWUxlhPmZzP00Crk2aQ==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.7.tgz", + "integrity": "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==", "license": "MIT", "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", @@ -6455,7 +7041,6 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" }, @@ -6468,7 +7053,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "license": "MIT", - "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -6489,14 +7073,15 @@ } }, "node_modules/tabbable": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", - "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.4.0.tgz", + "integrity": "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==", + "license": "MIT" }, "node_modules/tailwind-merge": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.3.0.tgz", - "integrity": "sha512-fyW/pEfcQSiigd5SNn0nApUOxx0zB/dm6UDU/rEwc2c3sX2smWUNbapHv+QRqLGVp9GWX3THIa7MUGPo+YkDzQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.4.0.tgz", + "integrity": "sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==", "license": "MIT", "funding": { "type": "github", @@ -6504,54 +7089,32 @@ } }, "node_modules/tailwindcss": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", - "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "version": "4.1.18", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.18.tgz", + "integrity": "sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==", "license": "MIT" }, "node_modules/tapable": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.2.tgz", - "integrity": "sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", "license": "MIT", "engines": { "node": ">=6" - } - }, - "node_modules/tar": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", - "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", - "license": "ISC", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" }, - "engines": { - "node": ">=18" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, "node_modules/tinyglobby": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", - "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", "license": "MIT", "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" + "fdir": "^6.5.0", + "picomatch": "^4.0.3" }, "engines": { "node": ">=12.0.0" @@ -6560,22 +7123,10 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/ts-api-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", - "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", "license": "MIT", "engines": { "node": ">=18.12" @@ -6591,9 +7142,9 @@ "license": "0BSD" }, "node_modules/tw-animate-css": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.4.tgz", - "integrity": "sha512-dd1Ht6/YQHcNbq0znIT6dG8uhO7Ce+VIIhZUhjsryXsMPJQz3bZg7Q2eNzLwipb25bRZslGb2myio5mScd1TFg==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.4.0.tgz", + "integrity": "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/Wombosvideo" @@ -6604,7 +7155,6 @@ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "license": "MIT", - "peer": true, "dependencies": { "prelude-ls": "^1.2.1" }, @@ -6687,9 +7237,9 @@ } }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "license": "Apache-2.0", "peer": true, "bin": { @@ -6701,14 +7251,15 @@ } }, "node_modules/typescript-eslint": { - "version": "8.33.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.33.1.tgz", - "integrity": "sha512-AgRnV4sKkWOiZ0Kjbnf5ytTJXMUZQ0qhSVdQtDNYLPLnjsATEYhaO94GlRQwi4t4gO8FfjM6NnikHeKjUm8D7A==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.55.0.tgz", + "integrity": "sha512-HE4wj+r5lmDVS9gdaN0/+iqNvPZwGfnJ5lZuz7s5vLlg9ODw0bIiiETaios9LvFI1U94/VBXGm3CB2Y5cNFMpw==", "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.33.1", - "@typescript-eslint/parser": "8.33.1", - "@typescript-eslint/utils": "8.33.1" + "@typescript-eslint/eslint-plugin": "8.55.0", + "@typescript-eslint/parser": "8.55.0", + "@typescript-eslint/typescript-estree": "8.55.0", + "@typescript-eslint/utils": "8.55.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -6719,7 +7270,7 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/unbox-primitive": { @@ -6741,9 +7292,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "funding": [ { "type": "opencollective", @@ -6775,7 +7326,6 @@ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "license": "BSD-2-Clause", - "peer": true, "dependencies": { "punycode": "^2.1.0" } @@ -6784,6 +7334,7 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz", "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==", + "license": "MIT", "dependencies": { "tslib": "^2.0.0" }, @@ -6804,6 +7355,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz", "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==", + "license": "MIT", "dependencies": { "detect-node-es": "^1.1.0", "tslib": "^2.0.0" @@ -6822,18 +7374,20 @@ } }, "node_modules/use-sync-external-store": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz", - "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "license": "MIT", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/vite": { - "version": "6.3.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz", - "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz", + "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==", "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", @@ -6930,7 +7484,6 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "license": "ISC", - "peer": true, "dependencies": { "isexe": "^2.0.0" }, @@ -7006,9 +7559,9 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", @@ -7031,7 +7584,6 @@ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -7047,7 +7599,6 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, diff --git a/pkg/handlers/task.go b/pkg/handlers/task.go index f32723d..593c52f 100644 --- a/pkg/handlers/task.go +++ b/pkg/handlers/task.go @@ -55,7 +55,7 @@ func (h *Task) Submit(ctx echo.Context) error { } // Insert the task - err = h.tasks. + _, err = h.tasks. Add(tasks.ExampleTask{ Message: input.Message, }). diff --git a/pkg/middleware/session.go b/pkg/middleware/session.go index 0843f6c..9baf740 100644 --- a/pkg/middleware/session.go +++ b/pkg/middleware/session.go @@ -1,7 +1,6 @@ package middleware import ( - "github.com/gorilla/context" "github.com/gorilla/sessions" "github.com/labstack/echo/v4" "github.com/occult/pagode/pkg/session" @@ -11,7 +10,6 @@ import ( func Session(store sessions.Store) echo.MiddlewareFunc { return func(next echo.HandlerFunc) echo.HandlerFunc { return func(ctx echo.Context) error { - defer context.Clear(ctx.Request()) session.Store(ctx, store) return next(ctx) } diff --git a/pkg/services/container.go b/pkg/services/container.go index 20d3975..fe9c5b9 100644 --- a/pkg/services/container.go +++ b/pkg/services/container.go @@ -319,24 +319,26 @@ func (c *Container) getInertia() *inertia.Inertia { } // laravel-vite-plugin not running in dev mode, use build manifest file - // check if the manifest file exists, if not, rename it + // Vite 6+ places the manifest at .vite/manifest.json; support both paths + // without renaming to avoid race conditions when tests run in parallel. + actualManifestPath := manifestPath if _, err := os.Stat(manifestPath); os.IsNotExist(err) { - // move the manifest from ./public/build/.vite/manifest.json to ./public/build/manifest.json - // so that the vite function can find it - if err := os.Rename(viteManifestPath, manifestPath); err != nil { - panic(fmt.Errorf("inertia build manifest file not found: %w", err)) + if _, err := os.Stat(viteManifestPath); err == nil { + actualManifestPath = viteManifestPath + } else { + panic(fmt.Errorf("inertia build manifest file not found at %s or %s", manifestPath, viteManifestPath)) } } i, err := inertia.NewFromFile( rootViewFile, - inertia.WithVersionFromFile(manifestPath), + inertia.WithVersionFromFile(actualManifestPath), ) if err != nil { panic(err) } - i.ShareTemplateFunc("vite", vite(manifestPath, "/build/")) + i.ShareTemplateFunc("vite", vite(actualManifestPath, "/build/")) i.ShareTemplateFunc("viteReactRefresh", viteReactRefresh(url)) return i