@haus-tech/badge-plugin 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ /* eslint-disable */
2
+ import * as types from './graphql';
3
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
4
+
5
+ /**
6
+ * Map of all GraphQL operations in the project.
7
+ *
8
+ * This map has several performance disadvantages:
9
+ * 1. It is not tree-shakeable, so it will include all operations in the project.
10
+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
11
+ * 3. It does not support dead code elimination, so it will add unused operations.
12
+ *
13
+ * Therefore it is highly recommended to use the babel or swc plugin for production.
14
+ */
15
+ const documents = {
16
+ "\n query GetBadges($options: BadgeListOptions) {\n badges(options: $options) {\n items {\n id\n createdAt\n updatedAt\n collection {\n id\n }\n collectionId\n position\n asset {\n id\n name\n type\n mimeType\n width\n height\n fileSize\n source\n preview\n }\n }\n totalItems\n }\n }\n": types.GetBadgesDocument,
17
+ "\n mutation CreateBadge($input: CreateBadgeInput!) {\n createBadge(input: $input) {\n id\n }\n }\n": types.CreateBadgeDocument,
18
+ "\n mutation DeleteBadge($ids: [ID!]!) {\n deleteBadge(ids: $ids) {\n result\n message\n }\n }\n": types.DeleteBadgeDocument,
19
+ "\n query GetBadgePluginConfig {\n getBadgePluginConfig {\n availablePositions\n }\n }\n": types.GetBadgePluginConfigDocument,
20
+ "\n mutation UpdateBadge($input: UpdateBadgeInput!) {\n updateBadge(input: $input) {\n id\n }\n }\n": types.UpdateBadgeDocument,
21
+ };
22
+
23
+ /**
24
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
25
+ *
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
30
+ * ```
31
+ *
32
+ * The query argument is unknown!
33
+ * Please regenerate the types.
34
+ */
35
+ export function graphql(source: string): unknown;
36
+
37
+ /**
38
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
39
+ */
40
+ export function graphql(source: "\n query GetBadges($options: BadgeListOptions) {\n badges(options: $options) {\n items {\n id\n createdAt\n updatedAt\n collection {\n id\n }\n collectionId\n position\n asset {\n id\n name\n type\n mimeType\n width\n height\n fileSize\n source\n preview\n }\n }\n totalItems\n }\n }\n"): (typeof documents)["\n query GetBadges($options: BadgeListOptions) {\n badges(options: $options) {\n items {\n id\n createdAt\n updatedAt\n collection {\n id\n }\n collectionId\n position\n asset {\n id\n name\n type\n mimeType\n width\n height\n fileSize\n source\n preview\n }\n }\n totalItems\n }\n }\n"];
41
+ /**
42
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
43
+ */
44
+ export function graphql(source: "\n mutation CreateBadge($input: CreateBadgeInput!) {\n createBadge(input: $input) {\n id\n }\n }\n"): (typeof documents)["\n mutation CreateBadge($input: CreateBadgeInput!) {\n createBadge(input: $input) {\n id\n }\n }\n"];
45
+ /**
46
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
47
+ */
48
+ export function graphql(source: "\n mutation DeleteBadge($ids: [ID!]!) {\n deleteBadge(ids: $ids) {\n result\n message\n }\n }\n"): (typeof documents)["\n mutation DeleteBadge($ids: [ID!]!) {\n deleteBadge(ids: $ids) {\n result\n message\n }\n }\n"];
49
+ /**
50
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
51
+ */
52
+ export function graphql(source: "\n query GetBadgePluginConfig {\n getBadgePluginConfig {\n availablePositions\n }\n }\n"): (typeof documents)["\n query GetBadgePluginConfig {\n getBadgePluginConfig {\n availablePositions\n }\n }\n"];
53
+ /**
54
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
55
+ */
56
+ export function graphql(source: "\n mutation UpdateBadge($input: UpdateBadgeInput!) {\n updateBadge(input: $input) {\n id\n }\n }\n"): (typeof documents)["\n mutation UpdateBadge($input: UpdateBadgeInput!) {\n updateBadge(input: $input) {\n id\n }\n }\n"];
57
+
58
+ export function graphql(source: string) {
59
+ return (documents as any)[source] ?? {};
60
+ }
61
+
62
+ export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;