From 1c131053d6b27173f45451c514436197a701c722 Mon Sep 17 00:00:00 2001 From: Tomasz Magulski Date: Wed, 29 Jun 2022 10:08:46 +0200 Subject: [PATCH] [SALEOR-6851] Replace appUrl with manifestUrl in 3rd-party apps list (#2115) --- introspection.json | 662 +++++++++++++++++- schema.graphql | 205 +++++- .../InstalledApps/InstalledApps.tsx | 6 +- src/apps/fixtures.ts | 4 + src/apps/styles.ts | 2 +- src/fragments/apps.ts | 2 + src/graphql/fragmentTypes.generated.ts | 6 + src/graphql/hooks.generated.ts | 2 + src/graphql/typePolicies.generated.ts | 75 +- src/graphql/types.generated.ts | 43 +- .../__snapshots__/Stories.test.ts.snap | 9 +- 11 files changed, 984 insertions(+), 32 deletions(-) diff --git a/introspection.json b/introspection.json index 0085a151a..d685bfc22 100644 --- a/introspection.json +++ b/introspection.json @@ -2800,8 +2800,8 @@ "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead." }, { "name": "dataPrivacyUrl", @@ -2848,8 +2848,8 @@ "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0. Use `appUrl` instead." }, { "name": "appUrl", @@ -2863,6 +2863,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "manifestUrl", + "description": "Url to manifest used during app's installation.\n\nAdded in Saleor 3.5.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "version", "description": "Version number of the app.", @@ -6669,6 +6681,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AttributeCreated", + "description": null, + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "attribute", + "description": "The attribute the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Attribute", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AttributeDelete", @@ -6740,6 +6829,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AttributeDeleted", + "description": null, + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "attribute", + "description": "The attribute the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Attribute", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "AttributeEntityTypeEnum", @@ -7886,6 +8052,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "AttributeUpdated", + "description": null, + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "attribute", + "description": "The attribute the event relates to.\n\nAdded in Saleor 3.5.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Attribute", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "AttributeValue", @@ -23768,6 +24011,21 @@ "name": "AppUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "AttributeCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "AttributeDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "AttributeUpdated", + "ofType": null + }, { "kind": "OBJECT", "name": "CategoryCreated", @@ -24073,6 +24331,21 @@ "name": "ShippingZoneUpdated", "ofType": null }, + { + "kind": "OBJECT", + "name": "StaffCreated", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "StaffDeleted", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "StaffUpdated", + "ofType": null + }, { "kind": "OBJECT", "name": "TransactionActionRequest", @@ -37604,15 +37877,15 @@ }, { "name": "configurationUrl", - "description": null, + "description": "Url to iframe with the configuration for the app.", "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0. Use `appUrl` instead." }, { "name": "tokenTargetUrl", @@ -37628,15 +37901,15 @@ }, { "name": "dataPrivacy", - "description": null, + "description": "Description of the data privacy defined for this app.", "args": [], "type": { "kind": "SCALAR", "name": "String", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead." }, { "name": "dataPrivacyUrl", @@ -49514,7 +49787,7 @@ "ofType": null }, "isDeprecated": true, - "deprecationReason": "DEPRECATED: Will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead." + "deprecationReason": "This field will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead." }, { "name": "checkoutLinesDelete", @@ -57865,6 +58138,26 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "numbers", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -59892,6 +60185,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "RANK", + "description": "Sort orders by rank. Note: This option is available only with the `search` filter.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CREATION_DATE", "description": "Sort orders by creation date. \n\nDEPRECATED: this field will be removed in Saleor 4.0.", @@ -89508,6 +89807,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "StaffCreated", + "description": null, + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "user", + "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "StaffDelete", @@ -89579,6 +89955,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "StaffDeleted", + "description": null, + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "user", + "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "StaffError", @@ -90236,6 +90689,83 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "StaffUpdated", + "description": null, + "fields": [ + { + "name": "issuedAt", + "description": "Time of the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": "Saleor version that triggered the event.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issuingPrincipal", + "description": "The user or application that triggered the event.", + "args": [], + "type": { + "kind": "UNION", + "name": "IssuingPrincipal", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "recipient", + "description": "The application receiving the webhook.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "App", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "user", + "description": "The user the event relates to.\n\nAdded in Saleor 3.2.\n\nNote: this API is currently in Feature Preview and can be subject to changes at later point.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Event", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "StaffUserInput", @@ -99780,7 +100310,7 @@ }, { "name": "secretKey", - "description": "Used to create a hash signature with each payload.", + "description": "Used to create a hash signature with each payload.\n\nIf not set, since Saleor 3.5, your payload will be signed using private key used also to sign JWT tokens.", "args": [], "type": { "kind": "SCALAR", @@ -100376,6 +100906,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ATTRIBUTE_CREATED", + "description": "A new attribute is created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_UPDATED", + "description": "An attribute is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_DELETED", + "description": "An attribute is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CATEGORY_CREATED", "description": "A new category created.", @@ -100748,6 +101296,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "STAFF_CREATED", + "description": "A staff user is deleted", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STAFF_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STAFF_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSACTION_ACTION_REQUEST", "description": null, @@ -100867,6 +101433,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ATTRIBUTE_CREATED", + "description": "A new attribute is created.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_UPDATED", + "description": "An attribute is updated.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_DELETED", + "description": "An attribute is deleted.", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CATEGORY_CREATED", "description": "A new category created.", @@ -101239,6 +101823,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "STAFF_CREATED", + "description": "A staff user is deleted", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STAFF_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STAFF_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSACTION_ACTION_REQUEST", "description": null, @@ -101483,6 +102085,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ATTRIBUTE_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ATTRIBUTE_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "CATEGORY_CREATED", "description": null, @@ -101855,6 +102475,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "STAFF_CREATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STAFF_UPDATED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "STAFF_DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "TRANSACTION_ACTION_REQUEST", "description": null, diff --git a/schema.graphql b/schema.graphql index 61be0ae6c..198dd6404 100644 --- a/schema.graphql +++ b/schema.graphql @@ -491,7 +491,7 @@ type App implements Node & ObjectWithMetadata { aboutApp: String """Description of the data privacy defined for this app.""" - dataPrivacy: String + dataPrivacy: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead.") """Url to details about the privacy policy on the app owner page.""" dataPrivacyUrl: String @@ -503,11 +503,18 @@ type App implements Node & ObjectWithMetadata { supportUrl: String """Url to iframe with the configuration for the app.""" - configurationUrl: String + configurationUrl: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `appUrl` instead.") """Url to iframe with the app.""" appUrl: String + """ + Url to manifest used during app's installation. + + Added in Saleor 3.5. + """ + manifestUrl: String + """Version number of the app.""" version: String @@ -1273,6 +1280,29 @@ input AttributeCreateInput { availableInGrid: Boolean } +type AttributeCreated implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """ + The attribute the event relates to. + + Added in Saleor 3.5. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + attribute: Attribute +} + """ Deletes an attribute. @@ -1284,6 +1314,29 @@ type AttributeDelete { attribute: Attribute } +type AttributeDeleted implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """ + The attribute the event relates to. + + Added in Saleor 3.5. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + attribute: Attribute +} + """An enumeration.""" enum AttributeEntityTypeEnum { PAGE @@ -1513,6 +1566,29 @@ input AttributeUpdateInput { availableInGrid: Boolean } +type AttributeUpdated implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """ + The attribute the event relates to. + + Added in Saleor 3.5. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + attribute: Attribute +} + """Represents a value of an attribute.""" type AttributeValue implements Node { id: ID! @@ -7443,9 +7519,13 @@ type Manifest { about: String permissions: [Permission!] appUrl: String - configurationUrl: String + + """Url to iframe with the configuration for the app.""" + configurationUrl: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `appUrl` instead.") tokenTargetUrl: String - dataPrivacy: String + + """Description of the data privacy defined for this app.""" + dataPrivacy: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead.") dataPrivacyUrl: String homepageUrl: String supportUrl: String @@ -10693,7 +10773,7 @@ type Mutation { DEPRECATED: this field will be removed in Saleor 4.0. Use `id` instead. """ token: UUID - ): CheckoutLineDelete @deprecated(reason: "DEPRECATED: Will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead.") + ): CheckoutLineDelete @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead.") """Deletes checkout lines.""" checkoutLinesDelete( @@ -12646,6 +12726,7 @@ input OrderFilterInput { ids: [ID!] giftCardUsed: Boolean giftCardBought: Boolean + numbers: [String!] } """ @@ -13044,6 +13125,11 @@ enum OrderSortField { """Sort orders by number.""" NUMBER + """ + Sort orders by rank. Note: This option is available only with the `search` filter. + """ + RANK + """ Sort orders by creation date. @@ -19815,6 +19901,29 @@ input StaffCreateInput { redirectUrl: String } +type StaffCreated implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """ + The user the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User +} + """ Deletes a staff user. @@ -19826,6 +19935,29 @@ type StaffDelete { user: User } +type StaffDeleted implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """ + The user the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User +} + type StaffError { """ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. @@ -19953,6 +20085,29 @@ input StaffUpdateInput { removeGroups: [ID!] } +type StaffUpdated implements Event { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """ + The user the event relates to. + + Added in Saleor 3.2. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + user: User +} + input StaffUserInput { status: StaffMemberStatus search: String @@ -21936,7 +22091,11 @@ type Webhook implements Node { """Informs if webhook is activated.""" isActive: Boolean! - """Used to create a hash signature with each payload.""" + """ + Used to create a hash signature with each payload. + + If not set, since Saleor 3.5, your payload will be signed using private key used also to sign JWT tokens. + """ secretKey: String """Used to define payloads for specific events.""" @@ -22079,6 +22238,15 @@ enum WebhookEventTypeAsyncEnum { """An app status is changed.""" APP_STATUS_CHANGED + """A new attribute is created.""" + ATTRIBUTE_CREATED + + """An attribute is updated.""" + ATTRIBUTE_UPDATED + + """An attribute is deleted.""" + ATTRIBUTE_DELETED + """A new category created.""" CATEGORY_CREATED @@ -22254,6 +22422,11 @@ enum WebhookEventTypeAsyncEnum { """A shipping zone is deleted.""" SHIPPING_ZONE_DELETED + + """A staff user is deleted""" + STAFF_CREATED + STAFF_UPDATED + STAFF_DELETED TRANSACTION_ACTION_REQUEST TRANSLATION_CREATED TRANSLATION_UPDATED @@ -22306,6 +22479,15 @@ enum WebhookEventTypeEnum { """An app status is changed.""" APP_STATUS_CHANGED + """A new attribute is created.""" + ATTRIBUTE_CREATED + + """An attribute is updated.""" + ATTRIBUTE_UPDATED + + """An attribute is deleted.""" + ATTRIBUTE_DELETED + """A new category created.""" CATEGORY_CREATED @@ -22481,6 +22663,11 @@ enum WebhookEventTypeEnum { """A shipping zone is deleted.""" SHIPPING_ZONE_DELETED + + """A staff user is deleted""" + STAFF_CREATED + STAFF_UPDATED + STAFF_DELETED TRANSACTION_ACTION_REQUEST TRANSLATION_CREATED TRANSLATION_UPDATED @@ -22540,6 +22727,9 @@ enum WebhookSampleEventTypeEnum { APP_UPDATED APP_DELETED APP_STATUS_CHANGED + ATTRIBUTE_CREATED + ATTRIBUTE_UPDATED + ATTRIBUTE_DELETED CATEGORY_CREATED CATEGORY_UPDATED CATEGORY_DELETED @@ -22602,6 +22792,9 @@ enum WebhookSampleEventTypeEnum { SHIPPING_ZONE_CREATED SHIPPING_ZONE_UPDATED SHIPPING_ZONE_DELETED + STAFF_CREATED + STAFF_UPDATED + STAFF_DELETED TRANSACTION_ACTION_REQUEST TRANSLATION_CREATED TRANSLATION_UPDATED diff --git a/src/apps/components/InstalledApps/InstalledApps.tsx b/src/apps/components/InstalledApps/InstalledApps.tsx index ea66088a6..64d57debd 100644 --- a/src/apps/components/InstalledApps/InstalledApps.tsx +++ b/src/apps/components/InstalledApps/InstalledApps.tsx @@ -75,12 +75,12 @@ const InstalledApps: React.FC = ({ - {app.node.appUrl && ( + {app.node.manifestUrl && ( - {app.node.appUrl} + {app.node.manifestUrl} )} diff --git a/src/apps/fixtures.ts b/src/apps/fixtures.ts index ad46fcff2..10f6c5d3b 100644 --- a/src/apps/fixtures.ts +++ b/src/apps/fixtures.ts @@ -18,6 +18,7 @@ export const appsList: AppsListQuery["apps"]["edges"] = [ name: "app", type: AppTypeEnum.THIRDPARTY, appUrl: null, + manifestUrl: "http://localhost:3000/api/manifest", permissions: [ { __typename: "Permission", @@ -36,6 +37,7 @@ export const appsList: AppsListQuery["apps"]["edges"] = [ name: "app1", type: AppTypeEnum.THIRDPARTY, appUrl: "http://localhost:3000", + manifestUrl: "http://localhost:3000/api/manifest", permissions: [ { __typename: "Permission", @@ -62,6 +64,7 @@ export const customAppsList: AppsListQuery["apps"]["edges"] = [ name: "app custom", type: AppTypeEnum.LOCAL, appUrl: null, + manifestUrl: null, permissions: [ { __typename: "Permission", @@ -110,6 +113,7 @@ export const appDetails: AppQuery["app"] = { aboutApp: "Lorem ipsum", accessToken: "token", appUrl: "http://localhost:8888/app", + manifestUrl: "http://localhost:8888/api/manifest", configurationUrl: "htpp://localhost:8888/configuration", created: "2020-06-02T12:24:26.818138+00:00", dataPrivacy: "Lorem ipsum", diff --git a/src/apps/styles.ts b/src/apps/styles.ts index a98d842ad..2042d2f46 100644 --- a/src/apps/styles.ts +++ b/src/apps/styles.ts @@ -210,7 +210,7 @@ export const useStyles = makeStyles( marginRight: theme.spacing(1), }, }, - appUrl: { + manifestUrl: { marginRight: theme.spacing(1), }, }), diff --git a/src/fragments/apps.ts b/src/fragments/apps.ts index 10aecf94b..f7300ea3d 100644 --- a/src/fragments/apps.ts +++ b/src/fragments/apps.ts @@ -9,6 +9,7 @@ export const appFragment = gql` type homepageUrl appUrl + manifestUrl configurationUrl supportUrl version @@ -39,6 +40,7 @@ export const appListItemFragment = gql` isActive type appUrl + manifestUrl permissions { ...AppPermission } diff --git a/src/graphql/fragmentTypes.generated.ts b/src/graphql/fragmentTypes.generated.ts index f9249db20..ac5005bb8 100644 --- a/src/graphql/fragmentTypes.generated.ts +++ b/src/graphql/fragmentTypes.generated.ts @@ -19,6 +19,9 @@ "AppInstalled", "AppStatusChanged", "AppUpdated", + "AttributeCreated", + "AttributeDeleted", + "AttributeUpdated", "CategoryCreated", "CategoryDeleted", "CategoryUpdated", @@ -80,6 +83,9 @@ "ShippingZoneCreated", "ShippingZoneDeleted", "ShippingZoneUpdated", + "StaffCreated", + "StaffDeleted", + "StaffUpdated", "TransactionActionRequest", "TranslationCreated", "TranslationUpdated", diff --git a/src/graphql/hooks.generated.ts b/src/graphql/hooks.generated.ts index 354f9dde9..b498bdc8e 100644 --- a/src/graphql/hooks.generated.ts +++ b/src/graphql/hooks.generated.ts @@ -25,6 +25,7 @@ export const AppFragmentDoc = gql` type homepageUrl appUrl + manifestUrl configurationUrl supportUrl version @@ -60,6 +61,7 @@ export const AppListItemFragmentDoc = gql` isActive type appUrl + manifestUrl permissions { ...AppPermission } diff --git a/src/graphql/typePolicies.generated.ts b/src/graphql/typePolicies.generated.ts index 7375b6165..68cc8bfd1 100644 --- a/src/graphql/typePolicies.generated.ts +++ b/src/graphql/typePolicies.generated.ts @@ -152,7 +152,7 @@ export type AllocationFieldPolicy = { quantity?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; -export type AppKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'permissions' | 'created' | 'isActive' | 'name' | 'type' | 'tokens' | 'webhooks' | 'aboutApp' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'configurationUrl' | 'appUrl' | 'version' | 'accessToken' | 'extensions' | AppKeySpecifier)[]; +export type AppKeySpecifier = ('id' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'metadata' | 'metafield' | 'metafields' | 'permissions' | 'created' | 'isActive' | 'name' | 'type' | 'tokens' | 'webhooks' | 'aboutApp' | 'dataPrivacy' | 'dataPrivacyUrl' | 'homepageUrl' | 'supportUrl' | 'configurationUrl' | 'appUrl' | 'manifestUrl' | 'version' | 'accessToken' | 'extensions' | AppKeySpecifier)[]; export type AppFieldPolicy = { id?: FieldPolicy | FieldReadFunction, privateMetadata?: FieldPolicy | FieldReadFunction, @@ -175,6 +175,7 @@ export type AppFieldPolicy = { supportUrl?: FieldPolicy | FieldReadFunction, configurationUrl?: FieldPolicy | FieldReadFunction, appUrl?: FieldPolicy | FieldReadFunction, + manifestUrl?: FieldPolicy | FieldReadFunction, version?: FieldPolicy | FieldReadFunction, accessToken?: FieldPolicy | FieldReadFunction, extensions?: FieldPolicy | FieldReadFunction @@ -410,12 +411,28 @@ export type AttributeCreateFieldPolicy = { attributeErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type AttributeCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeCreatedKeySpecifier)[]; +export type AttributeCreatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + attribute?: FieldPolicy | FieldReadFunction +}; export type AttributeDeleteKeySpecifier = ('attributeErrors' | 'errors' | 'attribute' | AttributeDeleteKeySpecifier)[]; export type AttributeDeleteFieldPolicy = { attributeErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, attribute?: FieldPolicy | FieldReadFunction }; +export type AttributeDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeDeletedKeySpecifier)[]; +export type AttributeDeletedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + attribute?: FieldPolicy | FieldReadFunction +}; export type AttributeErrorKeySpecifier = ('field' | 'message' | 'code' | AttributeErrorKeySpecifier)[]; export type AttributeErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, @@ -453,6 +470,14 @@ export type AttributeUpdateFieldPolicy = { attributeErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction }; +export type AttributeUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'attribute' | AttributeUpdatedKeySpecifier)[]; +export type AttributeUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + attribute?: FieldPolicy | FieldReadFunction +}; export type AttributeValueKeySpecifier = ('id' | 'name' | 'slug' | 'value' | 'translation' | 'inputType' | 'reference' | 'file' | 'richText' | 'plainText' | 'boolean' | 'date' | 'dateTime' | AttributeValueKeySpecifier)[]; export type AttributeValueFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -4322,12 +4347,28 @@ export type StaffCreateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; +export type StaffCreatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffCreatedKeySpecifier)[]; +export type StaffCreatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; export type StaffDeleteKeySpecifier = ('staffErrors' | 'errors' | 'user' | StaffDeleteKeySpecifier)[]; export type StaffDeleteFieldPolicy = { staffErrors?: FieldPolicy | FieldReadFunction, errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; +export type StaffDeletedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffDeletedKeySpecifier)[]; +export type StaffDeletedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; export type StaffErrorKeySpecifier = ('field' | 'message' | 'code' | 'addressType' | 'permissions' | 'groups' | 'users' | StaffErrorKeySpecifier)[]; export type StaffErrorFieldPolicy = { field?: FieldPolicy | FieldReadFunction, @@ -4369,6 +4410,14 @@ export type StaffUpdateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction }; +export type StaffUpdatedKeySpecifier = ('issuedAt' | 'version' | 'issuingPrincipal' | 'recipient' | 'user' | StaffUpdatedKeySpecifier)[]; +export type StaffUpdatedFieldPolicy = { + issuedAt?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + user?: FieldPolicy | FieldReadFunction +}; export type StockKeySpecifier = ('id' | 'warehouse' | 'productVariant' | 'quantity' | 'quantityAllocated' | 'quantityReserved' | StockKeySpecifier)[]; export type StockFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -5162,10 +5211,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | AttributeCreateKeySpecifier | (() => undefined | AttributeCreateKeySpecifier), fields?: AttributeCreateFieldPolicy, }, + AttributeCreated?: Omit & { + keyFields?: false | AttributeCreatedKeySpecifier | (() => undefined | AttributeCreatedKeySpecifier), + fields?: AttributeCreatedFieldPolicy, + }, AttributeDelete?: Omit & { keyFields?: false | AttributeDeleteKeySpecifier | (() => undefined | AttributeDeleteKeySpecifier), fields?: AttributeDeleteFieldPolicy, }, + AttributeDeleted?: Omit & { + keyFields?: false | AttributeDeletedKeySpecifier | (() => undefined | AttributeDeletedKeySpecifier), + fields?: AttributeDeletedFieldPolicy, + }, AttributeError?: Omit & { keyFields?: false | AttributeErrorKeySpecifier | (() => undefined | AttributeErrorKeySpecifier), fields?: AttributeErrorFieldPolicy, @@ -5190,6 +5247,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | AttributeUpdateKeySpecifier | (() => undefined | AttributeUpdateKeySpecifier), fields?: AttributeUpdateFieldPolicy, }, + AttributeUpdated?: Omit & { + keyFields?: false | AttributeUpdatedKeySpecifier | (() => undefined | AttributeUpdatedKeySpecifier), + fields?: AttributeUpdatedFieldPolicy, + }, AttributeValue?: Omit & { keyFields?: false | AttributeValueKeySpecifier | (() => undefined | AttributeValueKeySpecifier), fields?: AttributeValueFieldPolicy, @@ -7006,10 +7067,18 @@ export type StrictTypedTypePolicies = { keyFields?: false | StaffCreateKeySpecifier | (() => undefined | StaffCreateKeySpecifier), fields?: StaffCreateFieldPolicy, }, + StaffCreated?: Omit & { + keyFields?: false | StaffCreatedKeySpecifier | (() => undefined | StaffCreatedKeySpecifier), + fields?: StaffCreatedFieldPolicy, + }, StaffDelete?: Omit & { keyFields?: false | StaffDeleteKeySpecifier | (() => undefined | StaffDeleteKeySpecifier), fields?: StaffDeleteFieldPolicy, }, + StaffDeleted?: Omit & { + keyFields?: false | StaffDeletedKeySpecifier | (() => undefined | StaffDeletedKeySpecifier), + fields?: StaffDeletedFieldPolicy, + }, StaffError?: Omit & { keyFields?: false | StaffErrorKeySpecifier | (() => undefined | StaffErrorKeySpecifier), fields?: StaffErrorFieldPolicy, @@ -7034,6 +7103,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | StaffUpdateKeySpecifier | (() => undefined | StaffUpdateKeySpecifier), fields?: StaffUpdateFieldPolicy, }, + StaffUpdated?: Omit & { + keyFields?: false | StaffUpdatedKeySpecifier | (() => undefined | StaffUpdatedKeySpecifier), + fields?: StaffUpdatedFieldPolicy, + }, Stock?: Omit & { keyFields?: false | StockKeySpecifier | (() => undefined | StockKeySpecifier), fields?: StockFieldPolicy, diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 1b0fbc9a2..08321c827 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -2948,6 +2948,7 @@ export type OrderFilterInput = { ids?: InputMaybe>; giftCardUsed?: InputMaybe; giftCardBought?: InputMaybe; + numbers?: InputMaybe>; }; export type OrderFulfillInput = { @@ -3063,6 +3064,8 @@ export type OrderSettingsUpdateInput = { export enum OrderSortField { /** Sort orders by number. */ NUMBER = 'NUMBER', + /** Sort orders by rank. Note: This option is available only with the `search` filter. */ + RANK = 'RANK', /** * Sort orders by creation date. * @@ -4908,6 +4911,12 @@ export enum WebhookEventTypeAsyncEnum { APP_DELETED = 'APP_DELETED', /** An app status is changed. */ APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', + /** A new attribute is created. */ + ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', + /** An attribute is updated. */ + ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', + /** An attribute is deleted. */ + ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', /** A new category created. */ CATEGORY_CREATED = 'CATEGORY_CREATED', /** A category is updated. */ @@ -5024,6 +5033,10 @@ export enum WebhookEventTypeAsyncEnum { SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', /** A shipping zone is deleted. */ SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', + /** A staff user is deleted */ + STAFF_CREATED = 'STAFF_CREATED', + STAFF_UPDATED = 'STAFF_UPDATED', + STAFF_DELETED = 'STAFF_DELETED', TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', TRANSLATION_CREATED = 'TRANSLATION_CREATED', TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', @@ -5061,6 +5074,12 @@ export enum WebhookEventTypeEnum { APP_DELETED = 'APP_DELETED', /** An app status is changed. */ APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', + /** A new attribute is created. */ + ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', + /** An attribute is updated. */ + ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', + /** An attribute is deleted. */ + ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', /** A new category created. */ CATEGORY_CREATED = 'CATEGORY_CREATED', /** A category is updated. */ @@ -5177,6 +5196,10 @@ export enum WebhookEventTypeEnum { SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', /** A shipping zone is deleted. */ SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', + /** A staff user is deleted */ + STAFF_CREATED = 'STAFF_CREATED', + STAFF_UPDATED = 'STAFF_UPDATED', + STAFF_DELETED = 'STAFF_DELETED', TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', TRANSLATION_CREATED = 'TRANSLATION_CREATED', TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', @@ -5229,6 +5252,9 @@ export enum WebhookSampleEventTypeEnum { APP_UPDATED = 'APP_UPDATED', APP_DELETED = 'APP_DELETED', APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', + ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', + ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', + ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', CATEGORY_CREATED = 'CATEGORY_CREATED', CATEGORY_UPDATED = 'CATEGORY_UPDATED', CATEGORY_DELETED = 'CATEGORY_DELETED', @@ -5291,6 +5317,9 @@ export enum WebhookSampleEventTypeEnum { SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', + STAFF_CREATED = 'STAFF_CREATED', + STAFF_UPDATED = 'STAFF_UPDATED', + STAFF_DELETED = 'STAFF_DELETED', TRANSACTION_ACTION_REQUEST = 'TRANSACTION_ACTION_REQUEST', TRANSLATION_CREATED = 'TRANSLATION_CREATED', TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', @@ -5348,14 +5377,14 @@ export type AppCreateMutationVariables = Exact<{ }>; -export type AppCreateMutation = { __typename: 'Mutation', appCreate: { __typename: 'AppCreate', authToken: string | null, app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type AppCreateMutation = { __typename: 'Mutation', appCreate: { __typename: 'AppCreate', authToken: string | null, app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; export type AppDeleteMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type AppDeleteMutation = { __typename: 'Mutation', appDelete: { __typename: 'AppDelete', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type AppDeleteMutation = { __typename: 'Mutation', appDelete: { __typename: 'AppDelete', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; export type AppDeleteFailedInstallationMutationVariables = Exact<{ id: Scalars['ID']; @@ -5391,7 +5420,7 @@ export type AppUpdateMutationVariables = Exact<{ }>; -export type AppUpdateMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', message: string | null, permissions: Array | null, field: string | null, code: AppErrorCode }> } | null }; +export type AppUpdateMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', message: string | null, permissions: Array | null, field: string | null, code: AppErrorCode }> } | null }; export type AppTokenCreateMutationVariables = Exact<{ input: AppTokenInput; @@ -5431,7 +5460,7 @@ export type AppsListQueryVariables = Exact<{ }>; -export type AppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null } }> } | null }; +export type AppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null } }> } | null }; export type AppsInstallationsQueryVariables = Exact<{ [key: string]: never; }>; @@ -5443,7 +5472,7 @@ export type AppQueryVariables = Exact<{ }>; -export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; +export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; export type ExtensionListQueryVariables = Exact<{ filter: AppExtensionFilterInput; @@ -6087,9 +6116,9 @@ export type FileUploadMutation = { __typename: 'Mutation', fileUpload: { __typen export type AddressFragment = { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }; -export type AppFragment = { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null }; +export type AppFragment = { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null }; -export type AppListItemFragment = { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null }; +export type AppListItemFragment = { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null }; export type AppPermissionFragment = { __typename: 'Permission', name: string, code: PermissionEnum }; diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index cd8c0a713..09e20e795 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -25195,6 +25195,11 @@ exports[`Storyshots Views / Apps / Apps list default 1`] = ` +
+ http://localhost:3000/api/manifest +
@@ -25288,9 +25293,9 @@ exports[`Storyshots Views / Apps / Apps list default 1`] = ` class="MuiTableCell-root-id MuiTableCell-body-id AppList-colAction-id" >
- http://localhost:3000 + http://localhost:3000/api/manifest