diff --git a/web-marketplace/graphql.schema.json b/web-marketplace/graphql.schema.json index 94ee373ae6..efa675425d 100644 --- a/web-marketplace/graphql.schema.json +++ b/web-marketplace/graphql.schema.json @@ -233,6 +233,42 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "stripeCustomerId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "custodialAddress", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "active", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "accountByCreatorId", "description": "Reads a single `Account` that is related to this `Account`.", @@ -4325,6 +4361,42 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stripeCustomerId", + "description": "Checks for equality with the object’s `stripeCustomerId` field.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "custodialAddress", + "description": "Checks for equality with the object’s `custodialAddress` field.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "active", + "description": "Checks for equality with the object’s `active` field.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -5249,6 +5321,42 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stripeCustomerId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "custodialAddress", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "active", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -5440,6 +5548,42 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stripeCustomerId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "custodialAddress", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "active", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -6381,6 +6525,42 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "STRIPE_CUSTOMER_ID_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STRIPE_CUSTOMER_ID_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CUSTODIAL_ADDRESS_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CUSTODIAL_ADDRESS_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ACTIVE_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ACTIVE_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "PRIMARY_KEY_ASC", "description": null, @@ -6407,41 +6587,34 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "Context", - "description": null, - "fields": [ + "kind": "INPUT_OBJECT", + "name": "CreateAccountInput", + "description": "All input for the create `Account` mutation.", + "fields": null, + "inputFields": [ { - "name": "column", - "description": null, - "args": [], + "name": "clientMutationId", + "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", "type": { "kind": "SCALAR", - "name": "JSON", + "name": "String", "ofType": null }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ContextCondition", - "description": "A condition to be used against `Context` object types. All fields are tested for equality and combined with a logical ‘and.’", - "fields": null, - "inputFields": [ + }, { - "name": "column", - "description": "Checks for equality with the object’s `column` field.", + "name": "account", + "description": "The `Account` to be created by this mutation.", "type": { - "kind": "SCALAR", - "name": "JSON", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AccountInput", + "ofType": null + } }, "defaultValue": null, "isDeprecated": false, @@ -6453,315 +6626,50 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "ContextFilter", - "description": "A filter to be used against `Context` object types. All fields are combined with a logical ‘and.’", - "fields": null, - "inputFields": [ + "kind": "OBJECT", + "name": "CreateAccountPayload", + "description": "The output of our create `Account` mutation.", + "fields": [ { - "name": "column", - "description": "Filter by the object’s `column` field.", + "name": "clientMutationId", + "description": "The exact same `clientMutationId` that was provided in the mutation input,\nunchanged and unused. May be used by a client to track mutations.", + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "JSONFilter", + "kind": "SCALAR", + "name": "String", "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "and", - "description": "Checks for all expressions in this list.", + "name": "account", + "description": "The `Account` that was created by this mutation.", + "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContextFilter", - "ofType": null - } - } + "kind": "OBJECT", + "name": "Account", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "or", - "description": "Checks for any expressions in this list.", + "name": "query", + "description": "Our root query field type. Allows us to run any query from our mutation payload.", + "args": [], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContextFilter", - "ofType": null - } - } + "kind": "OBJECT", + "name": "Query", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "not", - "description": "Negates the expression.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ContextFilter", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContextsConnection", - "description": "A connection to a list of `Context` values.", - "fields": [ - { - "name": "nodes", - "description": "A list of `Context` objects.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Context", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": "A list of edges which contains the `Context` and cursor to aid in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContextsEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": "Information to aid in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "The count of *all* `Context` you could get from the connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContextsEdge", - "description": "A `Context` edge in the connection.", - "fields": [ - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Cursor", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": "The `Context` at the end of the edge.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Context", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ContextsOrderBy", - "description": "Methods to use when ordering `Context`.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NATURAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLUMN_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "COLUMN_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateAccountInput", - "description": "All input for the create `Account` mutation.", - "fields": null, - "inputFields": [ - { - "name": "clientMutationId", - "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "account", - "description": "The `Account` to be created by this mutation.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AccountInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CreateAccountPayload", - "description": "The output of our create `Account` mutation.", - "fields": [ - { - "name": "clientMutationId", - "description": "The exact same `clientMutationId` that was provided in the mutation input,\nunchanged and unused. May be used by a client to track mutations.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "account", - "description": "The `Account` that was created by this mutation.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Account", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Our root query field type. Allows us to run any query from our mutation payload.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Query", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "accountByCreatorId", - "description": "Reads a single `Account` that is related to this `Account`.", - "args": [], + "name": "accountByCreatorId", + "description": "Reads a single `Account` that is related to this `Account`.", + "args": [], "type": { "kind": "OBJECT", "name": "Account", @@ -8148,7 +8056,7 @@ } } }, - "defaultValue": "[NATURAL]", + "defaultValue": "[PRIMARY_KEY_ASC]", "isDeprecated": false, "deprecationReason": null } @@ -8288,8 +8196,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "CreateTestInput", - "description": "All input for the create `Test` mutation.", + "name": "CreateUploadInput", + "description": "All input for the create `Upload` mutation.", "fields": null, "inputFields": [ { @@ -8305,14 +8213,14 @@ "deprecationReason": null }, { - "name": "test", - "description": "The `Test` to be created by this mutation.", + "name": "upload", + "description": "The `Upload` to be created by this mutation.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "TestInput", + "name": "UploadInput", "ofType": null } }, @@ -8327,8 +8235,8 @@ }, { "kind": "OBJECT", - "name": "CreateTestPayload", - "description": "The output of our create `Test` mutation.", + "name": "CreateUploadPayload", + "description": "The output of our create `Upload` mutation.", "fields": [ { "name": "clientMutationId", @@ -8343,131 +8251,12 @@ "deprecationReason": null }, { - "name": "test", - "description": "The `Test` that was created by this mutation.", + "name": "upload", + "description": "The `Upload` that was created by this mutation.", "args": [], "type": { "kind": "OBJECT", - "name": "Test", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Our root query field type. Allows us to run any query from our mutation payload.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Query", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "testEdge", - "description": "An edge for our `Test`. May be used by Relay 1.", - "args": [ - { - "name": "orderBy", - "description": "The method to use when ordering `Test`.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TestsOrderBy", - "ofType": null - } - } - }, - "defaultValue": "[NATURAL]", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TestsEdge", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateUploadInput", - "description": "All input for the create `Upload` mutation.", - "fields": null, - "inputFields": [ - { - "name": "clientMutationId", - "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "upload", - "description": "The `Upload` to be created by this mutation.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UploadInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CreateUploadPayload", - "description": "The output of our create `Upload` mutation.", - "fields": [ - { - "name": "clientMutationId", - "description": "The exact same `clientMutationId` that was provided in the mutation input,\nunchanged and unused. May be used by a client to track mutations.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "upload", - "description": "The `Upload` that was created by this mutation.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Upload", + "name": "Upload", "ofType": null }, "isDeprecated": false, @@ -10912,13 +10701,9 @@ "name": "uri", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -14147,8 +13932,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "DeleteShaclGraphByUriInput", - "description": "All input for the `deleteShaclGraphByUri` mutation.", + "name": "DeleteS3DeletionByIdInput", + "description": "All input for the `deleteS3DeletionById` mutation.", "fields": null, "inputFields": [ { @@ -14164,14 +13949,14 @@ "deprecationReason": null }, { - "name": "uri", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "UUID", "ofType": null } }, @@ -14186,8 +13971,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "DeleteShaclGraphInput", - "description": "All input for the `deleteShaclGraph` mutation.", + "name": "DeleteS3DeletionInput", + "description": "All input for the `deleteS3Deletion` mutation.", "fields": null, "inputFields": [ { @@ -14204,7 +13989,7 @@ }, { "name": "nodeId", - "description": "The globally unique `ID` which will identify a single `ShaclGraph` to be deleted.", + "description": "The globally unique `ID` which will identify a single `S3Deletion` to be deleted.", "type": { "kind": "NON_NULL", "name": null, @@ -14225,8 +14010,8 @@ }, { "kind": "OBJECT", - "name": "DeleteShaclGraphPayload", - "description": "The output of our delete `ShaclGraph` mutation.", + "name": "DeleteS3DeletionPayload", + "description": "The output of our delete `S3Deletion` mutation.", "fields": [ { "name": "clientMutationId", @@ -14241,19 +14026,19 @@ "deprecationReason": null }, { - "name": "shaclGraph", - "description": "The `ShaclGraph` that was deleted by this mutation.", + "name": "s3Deletion", + "description": "The `S3Deletion` that was deleted by this mutation.", "args": [], "type": { "kind": "OBJECT", - "name": "ShaclGraph", + "name": "S3Deletion", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deletedShaclGraphId", + "name": "deletedS3DeletionId", "description": null, "args": [], "type": { @@ -14277,12 +14062,12 @@ "deprecationReason": null }, { - "name": "shaclGraphEdge", - "description": "An edge for our `ShaclGraph`. May be used by Relay 1.", + "name": "s3DeletionEdge", + "description": "An edge for our `S3Deletion`. May be used by Relay 1.", "args": [ { "name": "orderBy", - "description": "The method to use when ordering `ShaclGraph`.", + "description": "The method to use when ordering `S3Deletion`.", "type": { "kind": "LIST", "name": null, @@ -14291,7 +14076,7 @@ "name": null, "ofType": { "kind": "ENUM", - "name": "ShaclGraphsOrderBy", + "name": "S3DeletionsOrderBy", "ofType": null } } @@ -14303,7 +14088,7 @@ ], "type": { "kind": "OBJECT", - "name": "ShaclGraphsEdge", + "name": "S3DeletionsEdge", "ofType": null }, "isDeprecated": false, @@ -14317,47 +14102,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "DeleteUploadByIdInput", - "description": "All input for the `deleteUploadById` mutation.", - "fields": null, - "inputFields": [ - { - "name": "clientMutationId", - "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UUID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "DeleteUploadByUrlInput", - "description": "All input for the `deleteUploadByUrl` mutation.", + "name": "DeleteShaclGraphByUriInput", + "description": "All input for the `deleteShaclGraphByUri` mutation.", "fields": null, "inputFields": [ { @@ -14373,7 +14119,7 @@ "deprecationReason": null }, { - "name": "url", + "name": "uri", "description": null, "type": { "kind": "NON_NULL", @@ -14395,8 +14141,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "DeleteUploadInput", - "description": "All input for the `deleteUpload` mutation.", + "name": "DeleteShaclGraphInput", + "description": "All input for the `deleteShaclGraph` mutation.", "fields": null, "inputFields": [ { @@ -14413,7 +14159,7 @@ }, { "name": "nodeId", - "description": "The globally unique `ID` which will identify a single `Upload` to be deleted.", + "description": "The globally unique `ID` which will identify a single `ShaclGraph` to be deleted.", "type": { "kind": "NON_NULL", "name": null, @@ -14434,8 +14180,8 @@ }, { "kind": "OBJECT", - "name": "DeleteUploadPayload", - "description": "The output of our delete `Upload` mutation.", + "name": "DeleteShaclGraphPayload", + "description": "The output of our delete `ShaclGraph` mutation.", "fields": [ { "name": "clientMutationId", @@ -14450,19 +14196,19 @@ "deprecationReason": null }, { - "name": "upload", - "description": "The `Upload` that was deleted by this mutation.", + "name": "shaclGraph", + "description": "The `ShaclGraph` that was deleted by this mutation.", "args": [], "type": { "kind": "OBJECT", - "name": "Upload", + "name": "ShaclGraph", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deletedUploadId", + "name": "deletedShaclGraphId", "description": null, "args": [], "type": { @@ -14486,36 +14232,12 @@ "deprecationReason": null }, { - "name": "accountByAccountId", - "description": "Reads a single `Account` that is related to this `Upload`.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Account", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "projectByProjectId", - "description": "Reads a single `Project` that is related to this `Upload`.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Project", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "uploadEdge", - "description": "An edge for our `Upload`. May be used by Relay 1.", + "name": "shaclGraphEdge", + "description": "An edge for our `ShaclGraph`. May be used by Relay 1.", "args": [ { "name": "orderBy", - "description": "The method to use when ordering `Upload`.", + "description": "The method to use when ordering `ShaclGraph`.", "type": { "kind": "LIST", "name": null, @@ -14524,7 +14246,7 @@ "name": null, "ofType": { "kind": "ENUM", - "name": "UploadsOrderBy", + "name": "ShaclGraphsOrderBy", "ofType": null } } @@ -14536,7 +14258,7 @@ ], "type": { "kind": "OBJECT", - "name": "UploadsEdge", + "name": "ShaclGraphsEdge", "ofType": null }, "isDeprecated": false, @@ -14549,22 +14271,255 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "Document", - "description": null, - "fields": [ + "kind": "INPUT_OBJECT", + "name": "DeleteUploadByIdInput", + "description": "All input for the `deleteUploadById` mutation.", + "fields": null, + "inputFields": [ { - "name": "nodeId", - "description": "A globally unique identifier. Can be used in various places throughout the system to identify this single value.", - "args": [], + "name": "clientMutationId", + "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "UUID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "DeleteUploadByUrlInput", + "description": "All input for the `deleteUploadByUrl` mutation.", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "url", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "DeleteUploadInput", + "description": "All input for the `deleteUpload` mutation.", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nodeId", + "description": "The globally unique `ID` which will identify a single `Upload` to be deleted.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "DeleteUploadPayload", + "description": "The output of our delete `Upload` mutation.", + "fields": [ + { + "name": "clientMutationId", + "description": "The exact same `clientMutationId` that was provided in the mutation input,\nunchanged and unused. May be used by a client to track mutations.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "upload", + "description": "The `Upload` that was deleted by this mutation.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Upload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deletedUploadId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "query", + "description": "Our root query field type. Allows us to run any query from our mutation payload.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Query", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "accountByAccountId", + "description": "Reads a single `Account` that is related to this `Upload`.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Account", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "projectByProjectId", + "description": "Reads a single `Project` that is related to this `Upload`.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Project", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "uploadEdge", + "description": "An edge for our `Upload`. May be used by Relay 1.", + "args": [ + { + "name": "orderBy", + "description": "The method to use when ordering `Upload`.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UploadsOrderBy", + "ofType": null + } + } + }, + "defaultValue": "[PRIMARY_KEY_ASC]", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "UploadsEdge", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Document", + "description": null, + "fields": [ + { + "name": "nodeId", + "description": "A globally unique identifier. Can be used in various places throughout the system to identify this single value.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -15387,6 +15342,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updatedAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Datetime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "metadata", "description": null, @@ -15445,6 +15416,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updatedAt", + "description": "Checks for equality with the object’s `updatedAt` field.", + "type": { + "kind": "SCALAR", + "name": "Datetime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "metadata", "description": "Checks for equality with the object’s `metadata` field.", @@ -15571,6 +15554,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updatedAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Datetime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "metadata", "description": null, @@ -15622,6 +15617,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updatedAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Datetime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "metadata", "description": null, @@ -15799,6 +15806,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "UPDATED_AT_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UPDATED_AT_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "METADATA_ASC", "description": null, @@ -16179,35 +16198,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "createTest", - "description": "Creates a single `Test`.", - "args": [ - { - "name": "input", - "description": "The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateTestInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "CreateTestPayload", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "createUpload", "description": "Creates a single `Upload`.", @@ -17020,6 +17010,64 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updateS3Deletion", + "description": "Updates a single `S3Deletion` using its globally unique id and a patch.", + "args": [ + { + "name": "input", + "description": "The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateS3DeletionInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "UpdateS3DeletionPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updateS3DeletionById", + "description": "Updates a single `S3Deletion` using a unique key and a patch.", + "args": [ + { + "name": "input", + "description": "The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateS3DeletionByIdInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "UpdateS3DeletionPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "updateShaclGraph", "description": "Updates a single `ShaclGraph` using its globally unique id and a patch.", @@ -17949,8 +17997,8 @@ "deprecationReason": null }, { - "name": "deleteShaclGraph", - "description": "Deletes a single `ShaclGraph` using its globally unique id.", + "name": "deleteS3Deletion", + "description": "Deletes a single `S3Deletion` using its globally unique id.", "args": [ { "name": "input", @@ -17960,7 +18008,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "DeleteShaclGraphInput", + "name": "DeleteS3DeletionInput", "ofType": null } }, @@ -17971,15 +18019,15 @@ ], "type": { "kind": "OBJECT", - "name": "DeleteShaclGraphPayload", + "name": "DeleteS3DeletionPayload", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deleteShaclGraphByUri", - "description": "Deletes a single `ShaclGraph` using a unique key.", + "name": "deleteS3DeletionById", + "description": "Deletes a single `S3Deletion` using a unique key.", "args": [ { "name": "input", @@ -17989,7 +18037,36 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "DeleteShaclGraphByUriInput", + "name": "DeleteS3DeletionByIdInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "DeleteS3DeletionPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deleteShaclGraph", + "description": "Deletes a single `ShaclGraph` using its globally unique id.", + "args": [ + { + "name": "input", + "description": "The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DeleteShaclGraphInput", "ofType": null } }, @@ -18007,8 +18084,8 @@ "deprecationReason": null }, { - "name": "deleteUpload", - "description": "Deletes a single `Upload` using its globally unique id.", + "name": "deleteShaclGraphByUri", + "description": "Deletes a single `ShaclGraph` using a unique key.", "args": [ { "name": "input", @@ -18018,7 +18095,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "DeleteUploadInput", + "name": "DeleteShaclGraphByUriInput", "ofType": null } }, @@ -18029,15 +18106,15 @@ ], "type": { "kind": "OBJECT", - "name": "DeleteUploadPayload", + "name": "DeleteShaclGraphPayload", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deleteUploadByUrl", - "description": "Deletes a single `Upload` using a unique key.", + "name": "deleteUpload", + "description": "Deletes a single `Upload` using its globally unique id.", "args": [ { "name": "input", @@ -18047,7 +18124,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "DeleteUploadByUrlInput", + "name": "DeleteUploadInput", "ofType": null } }, @@ -18065,7 +18142,7 @@ "deprecationReason": null }, { - "name": "deleteUploadById", + "name": "deleteUploadByUrl", "description": "Deletes a single `Upload` using a unique key.", "args": [ { @@ -18076,7 +18153,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "DeleteUploadByIdInput", + "name": "DeleteUploadByUrlInput", "ofType": null } }, @@ -18094,8 +18171,8 @@ "deprecationReason": null }, { - "name": "shuffle", - "description": null, + "name": "deleteUploadById", + "description": "Deletes a single `Upload` using a unique key.", "args": [ { "name": "input", @@ -18105,7 +18182,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "ShuffleInput", + "name": "DeleteUploadByIdInput", "ofType": null } }, @@ -18116,7 +18193,7 @@ ], "type": { "kind": "OBJECT", - "name": "ShufflePayload", + "name": "DeleteUploadPayload", "ofType": null }, "isDeprecated": false, @@ -18209,6 +18286,11 @@ "name": "Query", "ofType": null }, + { + "kind": "OBJECT", + "name": "S3Deletion", + "ofType": null + }, { "kind": "OBJECT", "name": "ShaclGraph", @@ -18942,9 +19024,25 @@ "name": "contents", "description": null, "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "published", + "description": null, + "args": [], "type": { "kind": "SCALAR", - "name": "JSON", + "name": "Boolean", "ofType": null }, "isDeprecated": false, @@ -19063,6 +19161,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "published", + "description": "Checks for equality with the object’s `published` field.", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -19225,9 +19335,25 @@ { "name": "contents", "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "published", + "description": null, "type": { "kind": "SCALAR", - "name": "JSON", + "name": "Boolean", "ofType": null }, "defaultValue": null, @@ -19316,6 +19442,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "published", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -19566,23 +19704,35 @@ "deprecationReason": null }, { - "name": "PRIMARY_KEY_ASC", + "name": "PUBLISHED_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "PRIMARY_KEY_DESC", + "name": "PUBLISHED_DESC", "description": null, "isDeprecated": false, "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Project", + }, + { + "name": "PRIMARY_KEY_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRIMARY_KEY_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Project", "description": null, "fields": [ { @@ -22692,123 +22842,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "allContexts", - "description": "Reads and enables pagination through a set of `Context`.", - "args": [ - { - "name": "first", - "description": "Only read the first `n` values of the set.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Only read the last `n` values of the set.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": "Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Read all values in the set before (above) this cursor.", - "type": { - "kind": "SCALAR", - "name": "Cursor", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Read all values in the set after (below) this cursor.", - "type": { - "kind": "SCALAR", - "name": "Cursor", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderBy", - "description": "The method to use when ordering `Context`.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ContextsOrderBy", - "ofType": null - } - } - }, - "defaultValue": "[NATURAL]", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "condition", - "description": "A condition to be used in determining which values should be returned by the collection.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ContextCondition", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "A filter to be used in determining which values should be returned by the collection.", - "type": { - "kind": "INPUT_OBJECT", - "name": "ContextFilter", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ContextsConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "allCreditBatches", "description": "Reads and enables pagination through a set of `CreditBatch`.", @@ -23894,7 +23927,7 @@ } } }, - "defaultValue": "[NATURAL]", + "defaultValue": "[PRIMARY_KEY_ASC]", "isDeprecated": false, "deprecationReason": null }, @@ -24036,123 +24069,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "allTests", - "description": "Reads and enables pagination through a set of `Test`.", - "args": [ - { - "name": "first", - "description": "Only read the first `n` values of the set.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Only read the last `n` values of the set.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": "Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Read all values in the set before (above) this cursor.", - "type": { - "kind": "SCALAR", - "name": "Cursor", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Read all values in the set after (below) this cursor.", - "type": { - "kind": "SCALAR", - "name": "Cursor", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "orderBy", - "description": "The method to use when ordering `Test`.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TestsOrderBy", - "ofType": null - } - } - }, - "defaultValue": "[NATURAL]", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "condition", - "description": "A condition to be used in determining which values should be returned by the collection.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TestCondition", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": "A filter to be used in determining which values should be returned by the collection.", - "type": { - "kind": "INPUT_OBJECT", - "name": "TestFilter", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "TestsConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "allUploads", "description": "Reads and enables pagination through a set of `Upload`.", @@ -24784,18 +24700,18 @@ "deprecationReason": null }, { - "name": "shaclGraphByUri", + "name": "s3DeletionById", "description": null, "args": [ { - "name": "uri", + "name": "id", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "UUID", "ofType": null } }, @@ -24806,18 +24722,18 @@ ], "type": { "kind": "OBJECT", - "name": "ShaclGraph", + "name": "S3Deletion", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "uploadByUrl", + "name": "shaclGraphByUri", "description": null, "args": [ { - "name": "url", + "name": "uri", "description": null, "type": { "kind": "NON_NULL", @@ -24835,25 +24751,54 @@ ], "type": { "kind": "OBJECT", - "name": "Upload", + "name": "ShaclGraph", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "uploadById", + "name": "uploadByUrl", "description": null, "args": [ { - "name": "id", + "name": "url", "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "UUID", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Upload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "uploadById", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "UUID", "ofType": null } }, @@ -25257,6 +25202,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "s3Deletion", + "description": "Reads a single `S3Deletion` using its globally unique `ID`.", + "args": [ + { + "name": "nodeId", + "description": "The globally unique `ID` to be used in selecting a single `S3Deletion`.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "S3Deletion", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "shaclGraph", "description": "Reads a single `ShaclGraph` using its globally unique `ID`.", @@ -25332,6 +25306,22 @@ "name": "S3Deletion", "description": "Table serving as a FIFO queue for files to be deleted from AWS S3.", "fields": [ + { + "name": "nodeId", + "description": "A globally unique identifier. Can be used in various places throughout the system to identify this single value.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "id", "description": null, @@ -25394,7 +25384,13 @@ } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, @@ -25524,6 +25520,65 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "S3DeletionPatch", + "description": "Represents an update to a `S3Deletion`. Fields that are set will be updated.", + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "UUID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Datetime", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bucket", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "key", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "S3DeletionsConnection", @@ -25707,6 +25762,18 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "PRIMARY_KEY_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRIMARY_KEY_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -26040,444 +26107,19 @@ "deprecationReason": null }, { - "name": "updatedAt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Datetime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "graph", - "description": null, - "type": { - "kind": "SCALAR", - "name": "JSON", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShaclGraphsConnection", - "description": "A connection to a list of `ShaclGraph` values.", - "fields": [ - { - "name": "nodes", - "description": "A list of `ShaclGraph` objects.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShaclGraph", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": "A list of edges which contains the `ShaclGraph` and cursor to aid in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ShaclGraphsEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": "Information to aid in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "The count of *all* `ShaclGraph` you could get from the connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShaclGraphsEdge", - "description": "A `ShaclGraph` edge in the connection.", - "fields": [ - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Cursor", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": "The `ShaclGraph` at the end of the edge.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "ShaclGraph", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ShaclGraphsOrderBy", - "description": "Methods to use when ordering `ShaclGraph`.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NATURAL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "URI_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "URI_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "CREATED_AT_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UPDATED_AT_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UPDATED_AT_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPH_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "GRAPH_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRIMARY_KEY_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PRIMARY_KEY_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ShuffleInput", - "description": "All input for the `shuffle` mutation.", - "fields": null, - "inputFields": [ - { - "name": "clientMutationId", - "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "arg0", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ShufflePayload", - "description": "The output of our `shuffle` mutation.", - "fields": [ - { - "name": "clientMutationId", - "description": "The exact same `clientMutationId` that was provided in the mutation input,\nunchanged and unused. May be used by a client to track mutations.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "string", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "query", - "description": "Our root query field type. Allows us to run any query from our mutation payload.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Query", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Test", - "description": null, - "fields": [ - { - "name": "j", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSON", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TestCondition", - "description": "A condition to be used against `Test` object types. All fields are tested for equality and combined with a logical ‘and.’", - "fields": null, - "inputFields": [ - { - "name": "j", - "description": "Checks for equality with the object’s `j` field.", - "type": { - "kind": "SCALAR", - "name": "JSON", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TestFilter", - "description": "A filter to be used against `Test` object types. All fields are combined with a logical ‘and.’", - "fields": null, - "inputFields": [ - { - "name": "j", - "description": "Filter by the object’s `j` field.", - "type": { - "kind": "INPUT_OBJECT", - "name": "JSONFilter", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "and", - "description": "Checks for all expressions in this list.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TestFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "or", - "description": "Checks for any expressions in this list.", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "TestFilter", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "not", - "description": "Negates the expression.", + "name": "updatedAt", + "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "TestFilter", + "kind": "SCALAR", + "name": "Datetime", "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TestInput", - "description": "An input for mutations affecting `Test`", - "fields": null, - "inputFields": [ + }, { - "name": "j", + "name": "graph", "description": null, "type": { "kind": "SCALAR", @@ -26495,12 +26137,12 @@ }, { "kind": "OBJECT", - "name": "TestsConnection", - "description": "A connection to a list of `Test` values.", + "name": "ShaclGraphsConnection", + "description": "A connection to a list of `ShaclGraph` values.", "fields": [ { "name": "nodes", - "description": "A list of `Test` objects.", + "description": "A list of `ShaclGraph` objects.", "args": [], "type": { "kind": "NON_NULL", @@ -26510,7 +26152,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Test", + "name": "ShaclGraph", "ofType": null } } @@ -26520,7 +26162,7 @@ }, { "name": "edges", - "description": "A list of edges which contains the `Test` and cursor to aid in pagination.", + "description": "A list of edges which contains the `ShaclGraph` and cursor to aid in pagination.", "args": [], "type": { "kind": "NON_NULL", @@ -26533,7 +26175,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "TestsEdge", + "name": "ShaclGraphsEdge", "ofType": null } } @@ -26560,7 +26202,7 @@ }, { "name": "totalCount", - "description": "The count of *all* `Test` you could get from the connection.", + "description": "The count of *all* `ShaclGraph` you could get from the connection.", "args": [], "type": { "kind": "NON_NULL", @@ -26582,8 +26224,8 @@ }, { "kind": "OBJECT", - "name": "TestsEdge", - "description": "A `Test` edge in the connection.", + "name": "ShaclGraphsEdge", + "description": "A `ShaclGraph` edge in the connection.", "fields": [ { "name": "cursor", @@ -26599,11 +26241,11 @@ }, { "name": "node", - "description": "The `Test` at the end of the edge.", + "description": "The `ShaclGraph` at the end of the edge.", "args": [], "type": { "kind": "OBJECT", - "name": "Test", + "name": "ShaclGraph", "ofType": null }, "isDeprecated": false, @@ -26617,8 +26259,8 @@ }, { "kind": "ENUM", - "name": "TestsOrderBy", - "description": "Methods to use when ordering `Test`.", + "name": "ShaclGraphsOrderBy", + "description": "Methods to use when ordering `ShaclGraph`.", "fields": null, "inputFields": null, "interfaces": null, @@ -26630,13 +26272,61 @@ "deprecationReason": null }, { - "name": "J_ASC", + "name": "URI_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "URI_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CREATED_AT_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "CREATED_AT_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UPDATED_AT_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UPDATED_AT_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPH_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "GRAPH_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PRIMARY_KEY_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "J_DESC", + "name": "PRIMARY_KEY_DESC", "description": null, "isDeprecated": false, "deprecationReason": null @@ -29151,6 +28841,196 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "UpdateS3DeletionByIdInput", + "description": "All input for the `updateS3DeletionById` mutation.", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "s3DeletionPatch", + "description": "An object where the defined keys will be set on the `S3Deletion` being updated.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "S3DeletionPatch", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "UUID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "UpdateS3DeletionInput", + "description": "All input for the `updateS3Deletion` mutation.", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "An arbitrary string value with no semantic meaning. Will be included in the\npayload verbatim. May be used to track mutations by the client.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nodeId", + "description": "The globally unique `ID` which will identify a single `S3Deletion` to be updated.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "s3DeletionPatch", + "description": "An object where the defined keys will be set on the `S3Deletion` being updated.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "S3DeletionPatch", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UpdateS3DeletionPayload", + "description": "The output of our update `S3Deletion` mutation.", + "fields": [ + { + "name": "clientMutationId", + "description": "The exact same `clientMutationId` that was provided in the mutation input,\nunchanged and unused. May be used by a client to track mutations.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "s3Deletion", + "description": "The `S3Deletion` that was updated by this mutation.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "S3Deletion", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "query", + "description": "Our root query field type. Allows us to run any query from our mutation payload.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Query", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "s3DeletionEdge", + "description": "An edge for our `S3Deletion`. May be used by Relay 1.", + "args": [ + { + "name": "orderBy", + "description": "The method to use when ordering `S3Deletion`.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "S3DeletionsOrderBy", + "ofType": null + } + } + }, + "defaultValue": "[PRIMARY_KEY_ASC]", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "S3DeletionsEdge", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "UpdateShaclGraphByUriInput", diff --git a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx index eab09a4e74..d4a53fcbe7 100644 --- a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx +++ b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx @@ -9,7 +9,8 @@ import { Body } from 'web-components/src/components/typography'; import { SocialProviderInfo } from './UserAccountSettings.types'; -type Props = SocialProviderInfo & { +type Props = Omit & { + name?: string; connect?: () => void; disconnect?: () => void; address?: string; @@ -29,9 +30,11 @@ export const ConnectField = ({ return (
- - {name} - + {name && ( + + {name} + + )} {address ? ( ) : ( diff --git a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.stories.tsx b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.stories.tsx index 2cfee13b87..8468882f5f 100644 --- a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.stories.tsx +++ b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.stories.tsx @@ -5,37 +5,76 @@ import { Title } from 'web-components/src/components/typography'; import { UserAccountSettings } from './UserAccountSettings'; -const meta: Meta = { - title: 'Marketplace/Organisms/UserAccountSettings', - component: UserAccountSettings, - args: { - email: 'joemcnab@gmail.com', - socialProviders: [ - { - name: 'Google', - connect: action('connect google'), - }, - { - name: 'LinkedIn', - disconnect: async () => { - action('disconnect linkedin')(); - }, - }, - ], - walletProvider: { - address: 'regenfoobar3792723djghsdg', +const args = { + email: '', + socialProviders: [ + { + name: 'Google', + connect: action('connect google'), + }, + { + name: 'LinkedIn', disconnect: async () => { - action('disconnect wallet')(); + action('disconnect linkedin')(); }, }, + ], + walletProvider: { + address: 'regenfoobar3792723djghsdg', + disconnect: async () => { + action('disconnect wallet')(); + }, + }, + custodialAddress: 'mock-regen-custodial-address', + emailConfirmationData: { + isConfirmationModalOpen: false, + email: '', + emailModalError: '', + resendTimeLeft: null, + onConfirmationModalClose: action('close confirmation modal'), + onMailCodeChange: async (passcode: string) => { + action('mail code change')(passcode); + }, + onResendPasscode: async () => { + action('resend passcode')(); + return Promise.resolve(); + }, + onEmailSubmit: async ({ + email, + callback, + }: { + email: string; + callback?: () => void; + }) => { + action('email submit')({ email, callback }); + return Promise.resolve(); + }, + isConnectedEmailErrorModalOpen: false, + onConnectedEmailErrorModalClose: action( + 'close connected email error modal', + ), }, }; +const meta: Meta = { + title: 'Marketplace/Organisms/UserAccountSettings', + component: UserAccountSettings, +}; + export default meta; type Story = StoryObj; export const Default: Story = {}; +Default.args = args; + +export const WithEmail: Story = {}; + +WithEmail.args = { + ...args, + email: 'joemcnab@gmail.com', +}; + export const Width375: Story = { name: 'Wrapped in a 375px mobile container', render: args => ( @@ -50,6 +89,8 @@ export const Width375: Story = { ), }; +Width375.args = args; + export const Width560: Story = { name: 'Wrapped in a 560px container', render: args => ( @@ -63,3 +104,5 @@ export const Width560: Story = {
), }; + +Width560.args = args; diff --git a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx index dd6725d16b..7bfb42b798 100644 --- a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx +++ b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx @@ -7,6 +7,7 @@ import TextField from 'web-components/src/components/inputs/new/TextField/TextFi import { EmailConfirmationModal } from 'web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal'; import { Body, Subtitle } from 'web-components/src/components/typography'; +import { Link } from 'components/atoms'; import Form from 'components/molecules/Form/Form'; import { useZodForm } from 'components/molecules/Form/hook/useZodForm'; @@ -16,11 +17,9 @@ import { } from '../LoginButton/LoginButton.constants'; import { getResendCodeButtonLink } from '../LoginButton/utils/getResendCodeButtonLink'; import { getResendCodeLabel } from '../LoginButton/utils/getResendCodeLabel'; -import { useEmailConfirmationData } from '../LoginFlow/hooks/useEmailConfirmationData'; import { emailFormSchema } from '../LoginModal/LoginModal.schema'; import { ConnectedEmailErrorModal } from './UserAccountSettings.ConnectedEmailErrorModal'; import { ConnectField } from './UserAccountSettings.ConnectField'; -import { EMAIL_ADDED } from './UserAccountSettings.constants'; import { UserAccountSettingsProps } from './UserAccountSettings.types'; /** UserAccountSettings is a component for displaying and managing a user's @@ -33,6 +32,8 @@ export const UserAccountSettings = ({ email: initialEmail, socialProviders, walletProvider, + custodialAddress, + emailConfirmationData, }: UserAccountSettingsProps) => { const { _ } = useLingui(); const { @@ -46,7 +47,8 @@ export const UserAccountSettings = ({ onEmailSubmit, isConnectedEmailErrorModalOpen, onConnectedEmailErrorModalClose, - } = useEmailConfirmationData({ emailConfirmationText: _(EMAIL_ADDED) }); + } = emailConfirmationData; + const form = useZodForm({ schema: emailFormSchema, defaultValues: { @@ -152,6 +154,31 @@ export const UserAccountSettings = ({ {/* eslint-disable-next-line lingui/no-unlocalized-strings */}
+ {custodialAddress && ( +
+
+ + Regen impact address + + + + In order to buy and retire ecocredits using credit card payment, + we may generate a dedicated hosted wallet address to use as the + recipient of the retired blockchain credits. Please do not send + funds or tradable credits to this address, as you will not have + the ability to initiate transactions from this account. + + Learn more» + + + +
+ +
+ )} ); }; diff --git a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.types.ts b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.types.ts index 07467453cd..7031a1ee8a 100644 --- a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.types.ts +++ b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.types.ts @@ -1,3 +1,7 @@ +import { AccountByIdQuery } from 'generated/graphql'; + +import { useEmailConfirmationData } from '../LoginFlow/hooks/useEmailConfirmationData'; + /** * Describes the props for the UserAccountSettings component. */ @@ -16,6 +20,31 @@ export interface UserAccountSettingsProps { * The wallet provider that the user can connect to. */ walletProvider: WalletProviderInfo; + + /** + * The current user's custodial address. + */ + custodialAddress: NonNullable< + AccountByIdQuery['accountById'] + >['custodialAddress']; + + /** + * Methods and data related to email confirmation, + * returned by the useEmailConfirmationData hook. + */ + emailConfirmationData: Pick< + ReturnType, + | 'isConfirmationModalOpen' + | 'email' + | 'emailModalError' + | 'resendTimeLeft' + | 'onConfirmationModalClose' + | 'onMailCodeChange' + | 'onResendPasscode' + | 'onEmailSubmit' + | 'isConnectedEmailErrorModalOpen' + | 'onConnectedEmailErrorModalClose' + >; } type DisconnectedState = { diff --git a/web-marketplace/src/generated/graphql.tsx b/web-marketplace/src/generated/graphql.tsx index 55fb368809..43450bc4ac 100644 --- a/web-marketplace/src/generated/graphql.tsx +++ b/web-marketplace/src/generated/graphql.tsx @@ -46,6 +46,9 @@ export type Account = Node & { addr?: Maybe; hideEcocredits?: Maybe; hideRetirements?: Maybe; + stripeCustomerId?: Maybe; + custodialAddress?: Maybe; + active?: Maybe; /** Reads a single `Account` that is related to this `Account`. */ accountByCreatorId?: Maybe; /** Reads and enables pagination through a set of `CreditClass`. */ @@ -589,6 +592,12 @@ export type AccountCondition = { hideEcocredits?: Maybe; /** Checks for equality with the object’s `hideRetirements` field. */ hideRetirements?: Maybe; + /** Checks for equality with the object’s `stripeCustomerId` field. */ + stripeCustomerId?: Maybe; + /** Checks for equality with the object’s `custodialAddress` field. */ + custodialAddress?: Maybe; + /** Checks for equality with the object’s `active` field. */ + active?: Maybe; }; /** A connection to a list of `CreditClass` values, with data from `Project`. */ @@ -719,6 +728,9 @@ export type AccountInput = { addr?: Maybe; hideEcocredits?: Maybe; hideRetirements?: Maybe; + stripeCustomerId?: Maybe; + custodialAddress?: Maybe; + active?: Maybe; }; /** Represents an update to a `Account`. Fields that are set will be updated. */ @@ -738,6 +750,9 @@ export type AccountPatch = { addr?: Maybe; hideEcocredits?: Maybe; hideRetirements?: Maybe; + stripeCustomerId?: Maybe; + custodialAddress?: Maybe; + active?: Maybe; }; /** A connection to a list of `Project` values, with data from `Post`. */ @@ -895,63 +910,17 @@ export enum AccountsOrderBy { HideEcocreditsDesc = 'HIDE_ECOCREDITS_DESC', HideRetirementsAsc = 'HIDE_RETIREMENTS_ASC', HideRetirementsDesc = 'HIDE_RETIREMENTS_DESC', + StripeCustomerIdAsc = 'STRIPE_CUSTOMER_ID_ASC', + StripeCustomerIdDesc = 'STRIPE_CUSTOMER_ID_DESC', + CustodialAddressAsc = 'CUSTODIAL_ADDRESS_ASC', + CustodialAddressDesc = 'CUSTODIAL_ADDRESS_DESC', + ActiveAsc = 'ACTIVE_ASC', + ActiveDesc = 'ACTIVE_DESC', PrimaryKeyAsc = 'PRIMARY_KEY_ASC', PrimaryKeyDesc = 'PRIMARY_KEY_DESC' } -export type Context = { - __typename?: 'Context'; - column?: Maybe; -}; - -/** A condition to be used against `Context` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export type ContextCondition = { - /** Checks for equality with the object’s `column` field. */ - column?: Maybe; -}; - -/** A filter to be used against `Context` object types. All fields are combined with a logical ‘and.’ */ -export type ContextFilter = { - /** Filter by the object’s `column` field. */ - column?: Maybe; - /** Checks for all expressions in this list. */ - and?: Maybe>; - /** Checks for any expressions in this list. */ - or?: Maybe>; - /** Negates the expression. */ - not?: Maybe; -}; - -/** A connection to a list of `Context` values. */ -export type ContextsConnection = { - __typename?: 'ContextsConnection'; - /** A list of `Context` objects. */ - nodes: Array>; - /** A list of edges which contains the `Context` and cursor to aid in pagination. */ - edges: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** The count of *all* `Context` you could get from the connection. */ - totalCount: Scalars['Int']; -}; - -/** A `Context` edge in the connection. */ -export type ContextsEdge = { - __typename?: 'ContextsEdge'; - /** A cursor for use in pagination. */ - cursor?: Maybe; - /** The `Context` at the end of the edge. */ - node?: Maybe; -}; - -/** Methods to use when ordering `Context`. */ -export enum ContextsOrderBy { - Natural = 'NATURAL', - ColumnAsc = 'COLUMN_ASC', - ColumnDesc = 'COLUMN_DESC' -} - /** All input for the create `Account` mutation. */ export type CreateAccountInput = { /** @@ -1378,39 +1347,6 @@ export type CreateShaclGraphPayloadShaclGraphEdgeArgs = { orderBy?: Maybe>; }; -/** All input for the create `Test` mutation. */ -export type CreateTestInput = { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ - clientMutationId?: Maybe; - /** The `Test` to be created by this mutation. */ - test: TestInput; -}; - -/** The output of our create `Test` mutation. */ -export type CreateTestPayload = { - __typename?: 'CreateTestPayload'; - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ - clientMutationId?: Maybe; - /** The `Test` that was created by this mutation. */ - test?: Maybe; - /** Our root query field type. Allows us to run any query from our mutation payload. */ - query?: Maybe; - /** An edge for our `Test`. May be used by Relay 1. */ - testEdge?: Maybe; -}; - - -/** The output of our create `Test` mutation. */ -export type CreateTestPayloadTestEdgeArgs = { - orderBy?: Maybe>; -}; - /** All input for the create `Upload` mutation. */ export type CreateUploadInput = { /** @@ -1786,7 +1722,7 @@ export type CreditClassInput = { id?: Maybe; createdAt?: Maybe; updatedAt?: Maybe; - uri: Scalars['String']; + uri?: Maybe; onChainId?: Maybe; registryId?: Maybe; }; @@ -2492,6 +2428,50 @@ export type DeleteProjectPayloadProjectEdgeArgs = { orderBy?: Maybe>; }; +/** All input for the `deleteS3DeletionById` mutation. */ +export type DeleteS3DeletionByIdInput = { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ + clientMutationId?: Maybe; + id: Scalars['UUID']; +}; + +/** All input for the `deleteS3Deletion` mutation. */ +export type DeleteS3DeletionInput = { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ + clientMutationId?: Maybe; + /** The globally unique `ID` which will identify a single `S3Deletion` to be deleted. */ + nodeId: Scalars['ID']; +}; + +/** The output of our delete `S3Deletion` mutation. */ +export type DeleteS3DeletionPayload = { + __typename?: 'DeleteS3DeletionPayload'; + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ + clientMutationId?: Maybe; + /** The `S3Deletion` that was deleted by this mutation. */ + s3Deletion?: Maybe; + deletedS3DeletionId?: Maybe; + /** Our root query field type. Allows us to run any query from our mutation payload. */ + query?: Maybe; + /** An edge for our `S3Deletion`. May be used by Relay 1. */ + s3DeletionEdge?: Maybe; +}; + + +/** The output of our delete `S3Deletion` mutation. */ +export type DeleteS3DeletionPayloadS3DeletionEdgeArgs = { + orderBy?: Maybe>; +}; + /** All input for the `deleteShaclGraphByUri` mutation. */ export type DeleteShaclGraphByUriInput = { /** @@ -2715,6 +2695,7 @@ export type MetadataGraph = Node & { nodeId: Scalars['ID']; iri: Scalars['String']; createdAt: Scalars['Datetime']; + updatedAt: Scalars['Datetime']; metadata: Scalars['JSON']; }; @@ -2727,6 +2708,8 @@ export type MetadataGraphCondition = { iri?: Maybe; /** Checks for equality with the object’s `createdAt` field. */ createdAt?: Maybe; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: Maybe; /** Checks for equality with the object’s `metadata` field. */ metadata?: Maybe; }; @@ -2747,6 +2730,7 @@ export type MetadataGraphFilter = { export type MetadataGraphInput = { iri: Scalars['String']; createdAt?: Maybe; + updatedAt?: Maybe; metadata: Scalars['JSON']; }; @@ -2754,6 +2738,7 @@ export type MetadataGraphInput = { export type MetadataGraphPatch = { iri?: Maybe; createdAt?: Maybe; + updatedAt?: Maybe; metadata?: Maybe; }; @@ -2786,6 +2771,8 @@ export enum MetadataGraphsOrderBy { IriDesc = 'IRI_DESC', CreatedAtAsc = 'CREATED_AT_ASC', CreatedAtDesc = 'CREATED_AT_DESC', + UpdatedAtAsc = 'UPDATED_AT_ASC', + UpdatedAtDesc = 'UPDATED_AT_DESC', MetadataAsc = 'METADATA_ASC', MetadataDesc = 'METADATA_DESC', PrimaryKeyAsc = 'PRIMARY_KEY_ASC', @@ -2819,8 +2806,6 @@ export type Mutation = { createS3Deletion?: Maybe; /** Creates a single `ShaclGraph`. */ createShaclGraph?: Maybe; - /** Creates a single `Test`. */ - createTest?: Maybe; /** Creates a single `Upload`. */ createUpload?: Maybe; /** Updates a single `Account` using its globally unique id and a patch. */ @@ -2877,6 +2862,10 @@ export type Mutation = { updateProjectPartner?: Maybe; /** Updates a single `ProjectPartner` using a unique key and a patch. */ updateProjectPartnerByProjectIdAndAccountId?: Maybe; + /** Updates a single `S3Deletion` using its globally unique id and a patch. */ + updateS3Deletion?: Maybe; + /** Updates a single `S3Deletion` using a unique key and a patch. */ + updateS3DeletionById?: Maybe; /** Updates a single `ShaclGraph` using its globally unique id and a patch. */ updateShaclGraph?: Maybe; /** Updates a single `ShaclGraph` using a unique key and a patch. */ @@ -2941,6 +2930,10 @@ export type Mutation = { deleteProjectPartner?: Maybe; /** Deletes a single `ProjectPartner` using a unique key. */ deleteProjectPartnerByProjectIdAndAccountId?: Maybe; + /** Deletes a single `S3Deletion` using its globally unique id. */ + deleteS3Deletion?: Maybe; + /** Deletes a single `S3Deletion` using a unique key. */ + deleteS3DeletionById?: Maybe; /** Deletes a single `ShaclGraph` using its globally unique id. */ deleteShaclGraph?: Maybe; /** Deletes a single `ShaclGraph` using a unique key. */ @@ -2951,7 +2944,6 @@ export type Mutation = { deleteUploadByUrl?: Maybe; /** Deletes a single `Upload` using a unique key. */ deleteUploadById?: Maybe; - shuffle?: Maybe; }; @@ -3027,12 +3019,6 @@ export type MutationCreateShaclGraphArgs = { }; -/** The root mutation type which contains root level fields which mutate data. */ -export type MutationCreateTestArgs = { - input: CreateTestInput; -}; - - /** The root mutation type which contains root level fields which mutate data. */ export type MutationCreateUploadArgs = { input: CreateUploadInput; @@ -3201,6 +3187,18 @@ export type MutationUpdateProjectPartnerByProjectIdAndAccountIdArgs = { }; +/** The root mutation type which contains root level fields which mutate data. */ +export type MutationUpdateS3DeletionArgs = { + input: UpdateS3DeletionInput; +}; + + +/** The root mutation type which contains root level fields which mutate data. */ +export type MutationUpdateS3DeletionByIdArgs = { + input: UpdateS3DeletionByIdInput; +}; + + /** The root mutation type which contains root level fields which mutate data. */ export type MutationUpdateShaclGraphArgs = { input: UpdateShaclGraphInput; @@ -3393,6 +3391,18 @@ export type MutationDeleteProjectPartnerByProjectIdAndAccountIdArgs = { }; +/** The root mutation type which contains root level fields which mutate data. */ +export type MutationDeleteS3DeletionArgs = { + input: DeleteS3DeletionInput; +}; + + +/** The root mutation type which contains root level fields which mutate data. */ +export type MutationDeleteS3DeletionByIdArgs = { + input: DeleteS3DeletionByIdInput; +}; + + /** The root mutation type which contains root level fields which mutate data. */ export type MutationDeleteShaclGraphArgs = { input: DeleteShaclGraphInput; @@ -3422,12 +3432,6 @@ export type MutationDeleteUploadByIdArgs = { input: DeleteUploadByIdInput; }; - -/** The root mutation type which contains root level fields which mutate data. */ -export type MutationShuffleArgs = { - input: ShuffleInput; -}; - /** An object with a globally unique `ID`. */ export type Node = { /** A globally unique identifier. Can be used in various places throughout the system to identify this single value. */ @@ -3544,7 +3548,8 @@ export type Post = Node & { creatorAccountId: Scalars['UUID']; projectId: Scalars['UUID']; privacy: PostPrivacy; - contents?: Maybe; + contents: Scalars['JSON']; + published?: Maybe; /** Reads a single `Account` that is related to this `Post`. */ accountByCreatorAccountId?: Maybe; /** Reads a single `Project` that is related to this `Post`. */ @@ -3565,6 +3570,8 @@ export type PostCondition = { privacy?: Maybe; /** Checks for equality with the object’s `contents` field. */ contents?: Maybe; + /** Checks for equality with the object’s `published` field. */ + published?: Maybe; }; /** A filter to be used against `Post` object types. All fields are combined with a logical ‘and.’ */ @@ -3586,7 +3593,8 @@ export type PostInput = { creatorAccountId: Scalars['UUID']; projectId: Scalars['UUID']; privacy?: Maybe; - contents?: Maybe; + contents: Scalars['JSON']; + published?: Maybe; }; /** Represents an update to a `Post`. Fields that are set will be updated. */ @@ -3597,6 +3605,7 @@ export type PostPatch = { projectId?: Maybe; privacy?: Maybe; contents?: Maybe; + published?: Maybe; }; /** @@ -3649,6 +3658,8 @@ export enum PostsOrderBy { PrivacyDesc = 'PRIVACY_DESC', ContentsAsc = 'CONTENTS_ASC', ContentsDesc = 'CONTENTS_DESC', + PublishedAsc = 'PUBLISHED_ASC', + PublishedDesc = 'PUBLISHED_DESC', PrimaryKeyAsc = 'PRIMARY_KEY_ASC', PrimaryKeyDesc = 'PRIMARY_KEY_DESC' } @@ -4087,8 +4098,6 @@ export type Query = Node & { node?: Maybe; /** Reads and enables pagination through a set of `Account`. */ allAccounts?: Maybe; - /** Reads and enables pagination through a set of `Context`. */ - allContexts?: Maybe; /** Reads and enables pagination through a set of `CreditBatch`. */ allCreditBatches?: Maybe; /** Reads and enables pagination through a set of `CreditClass`. */ @@ -4111,8 +4120,6 @@ export type Query = Node & { allS3Deletions?: Maybe; /** Reads and enables pagination through a set of `ShaclGraph`. */ allShaclGraphs?: Maybe; - /** Reads and enables pagination through a set of `Test`. */ - allTests?: Maybe; /** Reads and enables pagination through a set of `Upload`. */ allUploads?: Maybe; accountById?: Maybe; @@ -4132,6 +4139,7 @@ export type Query = Node & { projectBySlug?: Maybe; projectByOnChainId?: Maybe; projectPartnerByProjectIdAndAccountId?: Maybe; + s3DeletionById?: Maybe; shaclGraphByUri?: Maybe; uploadByUrl?: Maybe; uploadById?: Maybe; @@ -4158,6 +4166,8 @@ export type Query = Node & { project?: Maybe; /** Reads a single `ProjectPartner` using its globally unique `ID`. */ projectPartner?: Maybe; + /** Reads a single `S3Deletion` using its globally unique `ID`. */ + s3Deletion?: Maybe; /** Reads a single `ShaclGraph` using its globally unique `ID`. */ shaclGraph?: Maybe; /** Reads a single `Upload` using its globally unique `ID`. */ @@ -4183,19 +4193,6 @@ export type QueryAllAccountsArgs = { }; -/** The root query type which gives access points into the data universe. */ -export type QueryAllContextsArgs = { - first?: Maybe; - last?: Maybe; - offset?: Maybe; - before?: Maybe; - after?: Maybe; - orderBy?: Maybe>; - condition?: Maybe; - filter?: Maybe; -}; - - /** The root query type which gives access points into the data universe. */ export type QueryAllCreditBatchesArgs = { first?: Maybe; @@ -4334,19 +4331,6 @@ export type QueryAllShaclGraphsArgs = { }; -/** The root query type which gives access points into the data universe. */ -export type QueryAllTestsArgs = { - first?: Maybe; - last?: Maybe; - offset?: Maybe; - before?: Maybe; - after?: Maybe; - orderBy?: Maybe>; - condition?: Maybe; - filter?: Maybe; -}; - - /** The root query type which gives access points into the data universe. */ export type QueryAllUploadsArgs = { first?: Maybe; @@ -4463,6 +4447,12 @@ export type QueryProjectPartnerByProjectIdAndAccountIdArgs = { }; +/** The root query type which gives access points into the data universe. */ +export type QueryS3DeletionByIdArgs = { + id: Scalars['UUID']; +}; + + /** The root query type which gives access points into the data universe. */ export type QueryShaclGraphByUriArgs = { uri: Scalars['String']; @@ -4552,6 +4542,12 @@ export type QueryProjectPartnerArgs = { }; +/** The root query type which gives access points into the data universe. */ +export type QueryS3DeletionArgs = { + nodeId: Scalars['ID']; +}; + + /** The root query type which gives access points into the data universe. */ export type QueryShaclGraphArgs = { nodeId: Scalars['ID']; @@ -4564,8 +4560,10 @@ export type QueryUploadArgs = { }; /** Table serving as a FIFO queue for files to be deleted from AWS S3. */ -export type S3Deletion = { +export type S3Deletion = Node & { __typename?: 'S3Deletion'; + /** A globally unique identifier. Can be used in various places throughout the system to identify this single value. */ + nodeId: Scalars['ID']; id: Scalars['UUID']; createdAt?: Maybe; bucket: Scalars['String']; @@ -4595,6 +4593,14 @@ export type S3DeletionInput = { key: Scalars['String']; }; +/** Represents an update to a `S3Deletion`. Fields that are set will be updated. */ +export type S3DeletionPatch = { + id?: Maybe; + createdAt?: Maybe; + bucket?: Maybe; + key?: Maybe; +}; + /** A connection to a list of `S3Deletion` values. */ export type S3DeletionsConnection = { __typename?: 'S3DeletionsConnection'; @@ -4627,7 +4633,9 @@ export enum S3DeletionsOrderBy { BucketAsc = 'BUCKET_ASC', BucketDesc = 'BUCKET_DESC', KeyAsc = 'KEY_ASC', - KeyDesc = 'KEY_DESC' + KeyDesc = 'KEY_DESC', + PrimaryKeyAsc = 'PRIMARY_KEY_ASC', + PrimaryKeyDesc = 'PRIMARY_KEY_DESC' } export type ShaclGraph = Node & { @@ -4720,86 +4728,6 @@ export enum ShaclGraphsOrderBy { PrimaryKeyDesc = 'PRIMARY_KEY_DESC' } -/** All input for the `shuffle` mutation. */ -export type ShuffleInput = { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ - clientMutationId?: Maybe; - arg0?: Maybe; -}; - -/** The output of our `shuffle` mutation. */ -export type ShufflePayload = { - __typename?: 'ShufflePayload'; - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ - clientMutationId?: Maybe; - string?: Maybe; - /** Our root query field type. Allows us to run any query from our mutation payload. */ - query?: Maybe; -}; - -export type Test = { - __typename?: 'Test'; - j?: Maybe; -}; - -/** A condition to be used against `Test` object types. All fields are tested for equality and combined with a logical ‘and.’ */ -export type TestCondition = { - /** Checks for equality with the object’s `j` field. */ - j?: Maybe; -}; - -/** A filter to be used against `Test` object types. All fields are combined with a logical ‘and.’ */ -export type TestFilter = { - /** Filter by the object’s `j` field. */ - j?: Maybe; - /** Checks for all expressions in this list. */ - and?: Maybe>; - /** Checks for any expressions in this list. */ - or?: Maybe>; - /** Negates the expression. */ - not?: Maybe; -}; - -/** An input for mutations affecting `Test` */ -export type TestInput = { - j?: Maybe; -}; - -/** A connection to a list of `Test` values. */ -export type TestsConnection = { - __typename?: 'TestsConnection'; - /** A list of `Test` objects. */ - nodes: Array>; - /** A list of edges which contains the `Test` and cursor to aid in pagination. */ - edges: Array; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** The count of *all* `Test` you could get from the connection. */ - totalCount: Scalars['Int']; -}; - -/** A `Test` edge in the connection. */ -export type TestsEdge = { - __typename?: 'TestsEdge'; - /** A cursor for use in pagination. */ - cursor?: Maybe; - /** The `Test` at the end of the edge. */ - node?: Maybe; -}; - -/** Methods to use when ordering `Test`. */ -export enum TestsOrderBy { - Natural = 'NATURAL', - JAsc = 'J_ASC', - JDesc = 'J_DESC' -} - /** All input for the `updateAccountByAddr` mutation. */ export type UpdateAccountByAddrInput = { @@ -5387,6 +5315,53 @@ export type UpdateProjectPayloadProjectEdgeArgs = { orderBy?: Maybe>; }; +/** All input for the `updateS3DeletionById` mutation. */ +export type UpdateS3DeletionByIdInput = { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ + clientMutationId?: Maybe; + /** An object where the defined keys will be set on the `S3Deletion` being updated. */ + s3DeletionPatch: S3DeletionPatch; + id: Scalars['UUID']; +}; + +/** All input for the `updateS3Deletion` mutation. */ +export type UpdateS3DeletionInput = { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ + clientMutationId?: Maybe; + /** The globally unique `ID` which will identify a single `S3Deletion` to be updated. */ + nodeId: Scalars['ID']; + /** An object where the defined keys will be set on the `S3Deletion` being updated. */ + s3DeletionPatch: S3DeletionPatch; +}; + +/** The output of our update `S3Deletion` mutation. */ +export type UpdateS3DeletionPayload = { + __typename?: 'UpdateS3DeletionPayload'; + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ + clientMutationId?: Maybe; + /** The `S3Deletion` that was updated by this mutation. */ + s3Deletion?: Maybe; + /** Our root query field type. Allows us to run any query from our mutation payload. */ + query?: Maybe; + /** An edge for our `S3Deletion`. May be used by Relay 1. */ + s3DeletionEdge?: Maybe; +}; + + +/** The output of our update `S3Deletion` mutation. */ +export type UpdateS3DeletionPayloadS3DeletionEdgeArgs = { + orderBy?: Maybe>; +}; + /** All input for the `updateShaclGraphByUri` mutation. */ export type UpdateShaclGraphByUriInput = { /** @@ -5627,7 +5602,7 @@ export type AccountByIdQuery = ( { __typename?: 'Query' } & { accountById?: Maybe<( { __typename?: 'Account' } - & Pick + & Pick )> } ); @@ -6154,6 +6129,7 @@ export const AccountByIdDocument = gql` nonce hideEcocredits hideRetirements + custodialAddress } } `; diff --git a/web-marketplace/src/graphql/AccountById.graphql b/web-marketplace/src/graphql/AccountById.graphql index 80479fe1f7..87355c4670 100644 --- a/web-marketplace/src/graphql/AccountById.graphql +++ b/web-marketplace/src/graphql/AccountById.graphql @@ -12,5 +12,6 @@ query AccountById($id: UUID!) { nonce hideEcocredits hideRetirements + custodialAddress } } diff --git a/web-marketplace/src/lib/i18n/locales/en.po b/web-marketplace/src/lib/i18n/locales/en.po index 8f10579596..1217b44309 100644 --- a/web-marketplace/src/lib/i18n/locales/en.po +++ b/web-marketplace/src/lib/i18n/locales/en.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2024-09-12 12:50+0200\n" +"POT-Creation-Date: 2024-09-16 14:46+0100\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -198,7 +198,7 @@ msgstr "" msgid "Additional Info" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:72 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:75 msgid "Address copied!" msgstr "" @@ -749,15 +749,15 @@ msgstr "" msgid "Congrats! Your purchase was successful." msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:78 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:80 msgid "connect" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:44 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:47 msgid "CONNECT" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:142 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:144 msgid "Connect a wallet address to be able to perform on chain tasks such as buying and selling credits, and creating projects on Regen Ledger." msgstr "" @@ -777,7 +777,7 @@ msgstr "" msgid "Copy" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:71 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:74 msgid "Copy address" msgstr "" @@ -1118,7 +1118,7 @@ msgstr "" msgid "Description" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:52 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:55 msgid "DISCONNECT" msgstr "" @@ -1511,6 +1511,10 @@ msgstr "" msgid "In one sentence, summarize the story above." msgstr "" +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:164 +msgid "In order to buy and retire ecocredits using credit card payment, we may generate a dedicated hosted wallet address to use as the recipient of the retired blockchain credits. Please do not send funds or tradable credits to this address, as you will not have the ability to initiate transactions from this account.<0>Learn more»" +msgstr "" + #: src/components/organisms/AdditionalityForm.tsx:139 msgid "In this form of rotational grazing, grazing animals, at a very high stocking density, graze a management unit for very short period of time." msgstr "" @@ -1682,7 +1686,7 @@ msgstr "" msgid "log in for faster checkout" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:66 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:68 msgid "Login Email" msgstr "" @@ -1890,7 +1894,7 @@ msgstr "" msgid "Nonprofit" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:38 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:41 msgid "Not connected" msgstr "" @@ -2373,6 +2377,10 @@ msgstr "" msgid "Regen Data Provider" msgstr "" +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:161 +msgid "Regen impact address" +msgstr "" + #: src/siteMetadata.ts:4 msgid "Regen Marketplace" msgstr "" @@ -2727,7 +2735,7 @@ msgstr "" msgid "Small or Medium Sized Business" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:114 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:116 msgid "Social Accounts" msgstr "" @@ -3170,7 +3178,7 @@ msgstr "" msgid "Use my credit card on file ending in {0}" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:117 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:119 msgid "Use your social account to log in to Regen Marketplace." msgstr "" @@ -3314,7 +3322,7 @@ msgstr "" msgid "visit our homepage instead" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:139 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:141 msgid "Wallet integration" msgstr "" diff --git a/web-marketplace/src/lib/i18n/locales/es.po b/web-marketplace/src/lib/i18n/locales/es.po index 966729724a..a96ae1987d 100644 --- a/web-marketplace/src/lib/i18n/locales/es.po +++ b/web-marketplace/src/lib/i18n/locales/es.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2024-09-12 12:50+0200\n" +"POT-Creation-Date: 2024-09-16 14:46+0100\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -198,7 +198,7 @@ msgstr "" msgid "Additional Info" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:72 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:75 msgid "Address copied!" msgstr "" @@ -749,15 +749,15 @@ msgstr "" msgid "Congrats! Your purchase was successful." msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:78 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:80 msgid "connect" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:44 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:47 msgid "CONNECT" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:142 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:144 msgid "Connect a wallet address to be able to perform on chain tasks such as buying and selling credits, and creating projects on Regen Ledger." msgstr "" @@ -777,7 +777,7 @@ msgstr "" msgid "Copy" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:71 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:74 msgid "Copy address" msgstr "" @@ -1118,7 +1118,7 @@ msgstr "" msgid "Description" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:52 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:55 msgid "DISCONNECT" msgstr "" @@ -1511,6 +1511,10 @@ msgstr "" msgid "In one sentence, summarize the story above." msgstr "" +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:164 +msgid "In order to buy and retire ecocredits using credit card payment, we may generate a dedicated hosted wallet address to use as the recipient of the retired blockchain credits. Please do not send funds or tradable credits to this address, as you will not have the ability to initiate transactions from this account.<0>Learn more»" +msgstr "" + #: src/components/organisms/AdditionalityForm.tsx:139 msgid "In this form of rotational grazing, grazing animals, at a very high stocking density, graze a management unit for very short period of time." msgstr "" @@ -1682,7 +1686,7 @@ msgstr "" msgid "log in for faster checkout" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:66 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:68 msgid "Login Email" msgstr "" @@ -1890,7 +1894,7 @@ msgstr "" msgid "Nonprofit" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:38 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.ConnectField.tsx:41 msgid "Not connected" msgstr "" @@ -2373,6 +2377,10 @@ msgstr "" msgid "Regen Data Provider" msgstr "" +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:161 +msgid "Regen impact address" +msgstr "" + #: src/siteMetadata.ts:4 msgid "Regen Marketplace" msgstr "" @@ -2727,7 +2735,7 @@ msgstr "" msgid "Small or Medium Sized Business" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:114 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:116 msgid "Social Accounts" msgstr "" @@ -3170,7 +3178,7 @@ msgstr "" msgid "Use my credit card on file ending in {0}" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:117 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:119 msgid "Use your social account to log in to Regen Marketplace." msgstr "" @@ -3314,7 +3322,7 @@ msgstr "" msgid "visit our homepage instead" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:139 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:141 msgid "Wallet integration" msgstr "" diff --git a/web-marketplace/src/pages/ProfileEdit/ProfileEdit.Settings.tsx b/web-marketplace/src/pages/ProfileEdit/ProfileEdit.Settings.tsx index a53f1405d9..8776378d17 100644 --- a/web-marketplace/src/pages/ProfileEdit/ProfileEdit.Settings.tsx +++ b/web-marketplace/src/pages/ProfileEdit/ProfileEdit.Settings.tsx @@ -1,4 +1,5 @@ import { useState } from 'react'; +import { useLingui } from '@lingui/react'; import ErrorBanner from 'web-components/src/components/banner/ErrorBanner'; @@ -9,12 +10,15 @@ import { WalletType } from 'lib/wallet/walletsConfig/walletsConfig.types'; import { AccountConnectWalletModal } from 'components/organisms/AccountConnectWalletModal/AccountConnectWalletModal'; import { ConnectWalletFlow } from 'components/organisms/ConnectWalletFlow/ConnectWalletFlow'; import { useLoginData } from 'components/organisms/LoginButton/hooks/useLoginData'; +import { useEmailConfirmationData } from 'components/organisms/LoginFlow/hooks/useEmailConfirmationData'; import { UserAccountSettings } from 'components/organisms/UserAccountSettings/UserAccountSettings'; +import { EMAIL_ADDED } from 'components/organisms/UserAccountSettings/UserAccountSettings.constants'; import { WalletProviderInfo } from 'components/organisms/UserAccountSettings/UserAccountSettings.types'; import { useSocialProviders } from './hooks/useSocialProviders'; export const ProfileEditSettings = () => { + const { _ } = useLingui(); const [error, setError] = useState(undefined); const { activeAccount, privActiveAccount } = useAuth(); const hasKeplrAccount = !!activeAccount?.addr; @@ -43,6 +47,10 @@ export const ProfileEditSettings = () => { ? { address: String(activeAccount?.addr) } : { connect: onButtonClick }; + const emailConfirmationData = useEmailConfirmationData({ + emailConfirmationText: _(EMAIL_ADDED), + }); + return ( <> {error && ( @@ -55,6 +63,8 @@ export const ProfileEditSettings = () => { email={privActiveAccount?.email ?? ''} socialProviders={_socialProviders} walletProvider={walletProviderInfo} + custodialAddress={activeAccount?.custodialAddress} + emailConfirmationData={emailConfirmationData} /> { return (
-
+
{ isLoading={accountChanging || loading} sx={{ mx: 'auto' }} > -
+