File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
from enum import Enum
2
- from pathlib import Path
3
2
from typing import List , Optional , Union
4
3
5
4
from pydantic import BaseModel
6
5
7
6
from spylib .admin_api import OfflineTokenABC
8
7
from spylib .exceptions import ShopifyGQLUserError
9
8
from spylib .hmac import validate as validate_hmac
10
-
11
- WEBHOOK_CREATE_GQL = Path ('./spylib/webhook.graphql' ).read_text ()
9
+ from spylib .webhook .graphql_queries import WEBHOOK_CREATE_GQL
12
10
13
11
14
12
class WebhookTopic (Enum ):
Original file line number Diff line number Diff line change
1
+ WEBHOOK_CREATE_GQL = """
1
2
mutation webhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: WebhookSubscriptionInput!) {
2
3
webhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) {
3
4
webhookSubscription {
52
53
}
53
54
}
54
55
}
56
+ """
You can’t perform that action at this time.
0 commit comments