2023-07-23 15:08:43 +00:00
|
|
|
import { gql } from 'graphql-tag'
|
2021-03-25 19:29:24 +00:00
|
|
|
|
|
|
|
import user from './user'
|
|
|
|
import message from './message'
|
2021-04-12 18:05:09 +00:00
|
|
|
import item from './item'
|
multiple forwards on a post (#403)
* multiple forwards on a post
first phase of the multi-forward support
* update the graphql mutation for discussion posts to accept and validate multiple forwards
* update the discussion form to allow multiple forwards in the UI
* start working on db schema changes
* uncomment db schema, add migration to create the new model, and update create_item, update_item
stored procedures
* Propagate updates from discussion to poll, link, and bounty forms
Update the create, update poll sql functions for multi forward support
* Update gql, typedefs, and resolver to return forwarded users in items responses
* UI changes to show multiple forward recipients, and conditional upvote logic changes
* Update notification text to reflect multiple forwards upon vote action
* Disallow duplicate stacker entries
* reduce duplication in populating adv-post-form initial values
* Update item_act sql function to implement multi-way forwarding
* Update referral functions to scale referral bonuses for forwarded users
* Update notification text to reflect non-100% forwarded sats cases
* Update wallet history sql queries to accommodate multi-forward use cases
* Block zaps for posts you are forwarded zaps at the API layer, in addition
to in the UI
* Delete fwdUserId column from Item table as part of migration
* Fix how we calculate stacked sats after partial forwards in wallet history
* Exclude entries from wallet history that are 0 stacked sats from posts with 100% forwarded to other users
* Fix wallet history query for forwarded stacked sats to be scaled by the fwd pct
* Reduce duplication in adv post form, and do some style tweaks for better layout
* Use MAX_FORWARDS constants
* Address various PR feedback
* first enhancement pass
* enhancement pass too
---------
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-08-23 22:44:17 +00:00
|
|
|
import itemForward from './itemForward'
|
2021-04-30 21:42:51 +00:00
|
|
|
import wallet from './wallet'
|
2021-06-27 03:09:39 +00:00
|
|
|
import lnurl from './lnurl'
|
2021-08-17 18:15:24 +00:00
|
|
|
import notifications from './notifications'
|
2021-10-12 23:49:04 +00:00
|
|
|
import invite from './invite'
|
2022-02-17 17:23:43 +00:00
|
|
|
import sub from './sub'
|
2022-05-12 18:44:21 +00:00
|
|
|
import upload from './upload'
|
2022-06-10 19:20:33 +00:00
|
|
|
import growth from './growth'
|
2022-12-08 00:04:02 +00:00
|
|
|
import rewards from './rewards'
|
2022-12-19 22:27:52 +00:00
|
|
|
import referrals from './referrals'
|
2023-01-27 23:20:33 +00:00
|
|
|
import price from './price'
|
2023-06-20 01:26:34 +00:00
|
|
|
import admin from './admin'
|
2023-09-12 15:56:02 +00:00
|
|
|
import blockHeight from './blockHeight'
|
2021-03-25 19:29:24 +00:00
|
|
|
|
2023-07-27 00:18:42 +00:00
|
|
|
const common = gql`
|
2021-03-25 19:29:24 +00:00
|
|
|
type Query {
|
|
|
|
_: Boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
_: Boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
type Subscription {
|
|
|
|
_: Boolean
|
|
|
|
}
|
2023-07-27 00:18:42 +00:00
|
|
|
|
|
|
|
scalar JSONObject
|
|
|
|
scalar Date
|
2021-03-25 19:29:24 +00:00
|
|
|
`
|
|
|
|
|
multiple forwards on a post (#403)
* multiple forwards on a post
first phase of the multi-forward support
* update the graphql mutation for discussion posts to accept and validate multiple forwards
* update the discussion form to allow multiple forwards in the UI
* start working on db schema changes
* uncomment db schema, add migration to create the new model, and update create_item, update_item
stored procedures
* Propagate updates from discussion to poll, link, and bounty forms
Update the create, update poll sql functions for multi forward support
* Update gql, typedefs, and resolver to return forwarded users in items responses
* UI changes to show multiple forward recipients, and conditional upvote logic changes
* Update notification text to reflect multiple forwards upon vote action
* Disallow duplicate stacker entries
* reduce duplication in populating adv-post-form initial values
* Update item_act sql function to implement multi-way forwarding
* Update referral functions to scale referral bonuses for forwarded users
* Update notification text to reflect non-100% forwarded sats cases
* Update wallet history sql queries to accommodate multi-forward use cases
* Block zaps for posts you are forwarded zaps at the API layer, in addition
to in the UI
* Delete fwdUserId column from Item table as part of migration
* Fix how we calculate stacked sats after partial forwards in wallet history
* Exclude entries from wallet history that are 0 stacked sats from posts with 100% forwarded to other users
* Fix wallet history query for forwarded stacked sats to be scaled by the fwd pct
* Reduce duplication in adv post form, and do some style tweaks for better layout
* Use MAX_FORWARDS constants
* Address various PR feedback
* first enhancement pass
* enhancement pass too
---------
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-08-23 22:44:17 +00:00
|
|
|
export default [common, user, item, itemForward, message, wallet, lnurl, notifications, invite,
|
2023-09-12 15:56:02 +00:00
|
|
|
sub, upload, growth, rewards, referrals, price, admin, blockHeight]
|