Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type '"MANAGE_ORDERS_IMPORT"' is not assignable to type 'AppPermission'.t #301

Closed
JannikZed opened this issue Nov 14, 2023 · 0 comments · Fixed by #302
Closed

Type '"MANAGE_ORDERS_IMPORT"' is not assignable to type 'AppPermission'.t #301

JannikZed opened this issue Nov 14, 2023 · 0 comments · Fixed by #302
Assignees

Comments

@JannikZed
Copy link

JannikZed commented Nov 14, 2023

What I'm trying to achieve

Type is missing:
Type '"MANAGE_ORDERS_IMPORT"' is not assignable to type 'AppPermission'.ts(2322)

import { AppPermission, WebhookManifest } from "@saleor/app-sdk/types";

const getName = () => "schemabase datahub";

const getPermissions = (): AppPermission[] => {
    return [
        "MANAGE_ORDERS",
        "MANAGE_ORDERS_IMPORT",
        "MANAGE_CHANNELS",
        "MANAGE_PRODUCTS",
        "MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES",
        "MANAGE_DISCOUNTS",
        "MANAGE_GIFT_CARD",
        "MANAGE_SHIPPING",
        "MANAGE_USERS",
    ];
};

Describe a proposed solution

Automatically update these types, as there always seems something to be missing.

Other solutions I've tried and won't work

Screenshots or mockups

@lkostrowski lkostrowski linked a pull request Nov 17, 2023 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants