Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed Oct 3, 2024
1 parent b2c576d commit e8291ea
Show file tree
Hide file tree
Showing 10 changed files with 5,486 additions and 3,081 deletions.
301 changes: 301 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"depcheck": "npx @opencollective/depcheck .",
"deploy:production": "./scripts/pre-deploy.sh production && git push production main",
"deploy:staging": "./scripts/pre-deploy.sh staging && git push -f staging main",
"dev": "nodemon src/server/index.js -x \"babel-node --extensions .js,.ts\" . -e js,ts",
"dev": "nodemon src/server/index.ts -x \"babel-node --extensions .js,.ts\" . -e js,ts",
"git:clean": "./scripts/git_clean.sh",
"graphql:update:local": "cp ../frontend/lib/graphql/*.graphql src/graphql/ && prettier src/graphql/*.graphql --write",
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2",
Expand All @@ -66,6 +66,7 @@
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/node": "^7.25.7",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@types/express": "^5.0.0",
"@types/lodash": "^4.17.9",
Expand Down
154 changes: 5 additions & 149 deletions src/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ interface CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -429,6 +424,7 @@ This represents an Tier
"""
type Tier {
id: Int
idV2: String!
slug: String
type: String
name: String
Expand Down Expand Up @@ -1079,7 +1075,6 @@ type CollectiveFeatures {
CONTACT_COLLECTIVE: CollectiveFeatureStatus
CONTACT_FORM: CollectiveFeatureStatus
CREATE_COLLECTIVE: CollectiveFeatureStatus
CROSS_CURRENCY_MANUAL_TRANSACTIONS: CollectiveFeatureStatus
TRANSFERWISE: CollectiveFeatureStatus
PAYPAL_PAYOUTS: CollectiveFeatureStatus
PAYPAL_DONATIONS: CollectiveFeatureStatus
Expand Down Expand Up @@ -1146,6 +1141,7 @@ type Policies {
MAXIMUM_VIRTUAL_CARD_LIMIT_AMOUNT_FOR_INTERVAL: MAXIMUM_VIRTUAL_CARD_LIMIT_AMOUNT_FOR_INTERVAL
EXPENSE_CATEGORIZATION: EXPENSE_CATEGORIZATION
EXPENSE_PUBLIC_VENDORS: Boolean
COLLECTIVE_ADMINS_CAN_SEE_PAYOUT_METHODS: Boolean
}

type EXPENSE_AUTHOR_CANNOT_APPROVE {
Expand Down Expand Up @@ -2145,11 +2141,6 @@ type Collective implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -2419,11 +2410,6 @@ type Event implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -2693,11 +2679,6 @@ type Fund implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -2967,11 +2948,6 @@ type Organization implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -3241,11 +3217,6 @@ type Project implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -3810,11 +3781,6 @@ type User implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -4086,11 +4052,6 @@ type Vendor implements CollectiveInterface {
backgroundImage: String
backgroundImageUrl(height: Int, format: ImageFormat): String
settings: JSON!

"""
Defines if a collective is pledged
"""
isPledged: Boolean @deprecated(reason: "2023-11-20: Pledged collectives do not exist anymore")
data: JSON @deprecated(reason: "2020-10-08: This field is not provided anymore and will return an empty object")

"""
Expand Down Expand Up @@ -4595,45 +4556,25 @@ type Mutation {
"""
email: String!
): UserDetails

"""
Confirm the new user email from confirmation token
"""
confirmUserEmail(
"""
User's emailConfirmationToken
"""
token: String!
): UserDetails
editConnectedAccount(connectedAccount: ConnectedAccountInputType!): ConnectedAccountType

"""
Update a single tier
"""
editTier(
"""
The tier to update
"""
tier: TierInputType!
): Tier
editTiers(id: Int!, tiers: [TierInputType]): [Tier]

"""
Updates all the core contributors (role = ADMIN or MEMBER) for this collective.
"""
editCoreContributors(collectiveId: Int!, members: [MemberInputType!]!): CollectiveInterface
@deprecated(reason: "2021-07-02: Please use inviteMember, editMember or removeMember mutations from GQLV2")
@deprecated(reason: "2021-07-02: Please use inviteMember, editMember or removeMember mutations from GraphQLV2")

"""
A mutation to edit the public message of all matching members.
"""
editPublicMessage(FromCollectiveId: Int!, CollectiveId: Int!, message: String): [Member]
@deprecated(reason: "2021-01-27: Please use editPublicMessage from GQLV2")
@deprecated(reason: "2021-01-27: Please use editPublicMessage from GraphQLV2")

"""
Update a payment method
"""
updatePaymentMethod(id: Int!, name: String, monthlyLimitPerMember: Int): PaymentMethodType
@deprecated(reason: "2024-07-16: Please use updateOrder from GraphQLV2")

"""
Replace a payment method
Expand Down Expand Up @@ -4820,7 +4761,6 @@ input CollectiveInputType {
image: String
backgroundImage: String
tags: [String]
tiers: [TierInputType]
settings: JSON
data: JSON @deprecated(reason: "2020-10-08: data cannot be edited. This field will be ignored.")

Expand Down Expand Up @@ -4880,90 +4820,6 @@ input LocationInputType {
structured: JSON
}

"""
Input type for TierType
"""
input TierInputType {
id: Int
type: String
name: String
description: String

"""
A long, html-formatted description.
"""
longDescription: String

"""
Whether this tier has a standalone page
"""
useStandalonePage: Boolean

"""
Link to a video (YouTube, Vimeo).
"""
videoUrl: String

"""
amount in the lowest unit of the currency of the host (ie. in cents)
"""
amount: Int

"""
Button text
"""
button: String
currency: String
presets: [Int]
interval: String
maxQuantity: Int
minimumAmount: Int
amountType: String

"""
amount that you are trying to raise with this tier
"""
goal: Int
customFields: [CustomFieldsInputType]

"""
Start of the campaign
"""
startsAt: String

"""
End of the campaign
"""
endsAt: String

"""
Invoice receipt template
"""
invoiceTemplate: String
}

"""
Input for custom fields for order
"""
input CustomFieldsInputType {
type: CustomFieldType
name: String
label: String
required: Boolean
}

"""
Type of custom field
"""
enum CustomFieldType {
number
text
email
date
radio
url
}

"""
Input type for MemberType
"""
Expand Down
Loading

0 comments on commit e8291ea

Please sign in to comment.