promogame-player 0.0.2

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,18 @@
1
+ function m(e, n) {
2
+ return n;
3
+ }
4
+ function c(e, n) {
5
+ return e;
6
+ }
7
+ function f(e, n, r) {
8
+ var a, d;
9
+ const i = (a = e.__meta__) == null ? void 0 : a.deferredFields;
10
+ if (!i) return !0;
11
+ const t = n.definitions[0], o = (d = t == null ? void 0 : t.name) == null ? void 0 : d.value, u = o && i[o] || [];
12
+ return u.length > 0 && u.every((s) => r && s in r);
13
+ }
14
+ export {
15
+ f as isFragmentReady,
16
+ c as makeFragmentData,
17
+ m as useFragment
18
+ };
@@ -0,0 +1,46 @@
1
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
2
+ import * as types from './graphql';
3
+ /**
4
+ * Map of all GraphQL operations in the project.
5
+ *
6
+ * This map has several performance disadvantages:
7
+ * 1. It is not tree-shakeable, so it will include all operations in the project.
8
+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
9
+ * 3. It does not support dead code elimination, so it will add unused operations.
10
+ *
11
+ * Therefore it is highly recommended to use the babel or swc plugin for production.
12
+ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
13
+ */
14
+ type Documents = {
15
+ "\n query GetCampaign($id: String!, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n game {\n id\n gameLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
16
+ "\n mutation StartAppSession(\n $campaignId: String!\n $externalUserId: String!\n $checksum: String!\n $requestedAt: String!\n $parameters: JSON!\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n }\n ) {\n accessToken\n }\n }\n": typeof types.StartAppSessionDocument;
17
+ "\nmutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String, $displayName: String) {\n updateParticipantInfo(input: {\n email: $email\n phone: $phone\n avatar: $avatar\n displayName: $displayName\n }) {\n id\n }\n}\n": typeof types.UpdateParticipantInfoDocument;
18
+ };
19
+ declare const documents: Documents;
20
+ /**
21
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
22
+ *
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
27
+ * ```
28
+ *
29
+ * The query argument is unknown!
30
+ * Please regenerate the types.
31
+ */
32
+ export declare function graphql(source: string): unknown;
33
+ /**
34
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
35
+ */
36
+ export declare function graphql(source: "\n query GetCampaign($id: String!, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n game {\n id\n gameLink\n }\n }\n }\n"): (typeof documents)["\n query GetCampaign($id: String!, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n game {\n id\n gameLink\n }\n }\n }\n"];
37
+ /**
38
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
39
+ */
40
+ export declare function graphql(source: "\n mutation StartAppSession(\n $campaignId: String!\n $externalUserId: String!\n $checksum: String!\n $requestedAt: String!\n $parameters: JSON!\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n }\n ) {\n accessToken\n }\n }\n"): (typeof documents)["\n mutation StartAppSession(\n $campaignId: String!\n $externalUserId: String!\n $checksum: String!\n $requestedAt: String!\n $parameters: JSON!\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n }\n ) {\n accessToken\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 declare function graphql(source: "\nmutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String, $displayName: String) {\n updateParticipantInfo(input: {\n email: $email\n phone: $phone\n avatar: $avatar\n displayName: $displayName\n }) {\n id\n }\n}\n"): (typeof documents)["\nmutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String, $displayName: String) {\n updateParticipantInfo(input: {\n email: $email\n phone: $phone\n avatar: $avatar\n displayName: $displayName\n }) {\n id\n }\n}\n"];
45
+ export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
46
+ export {};
@@ -0,0 +1,12 @@
1
+ import { UpdateParticipantInfoDocument as a, StartAppSessionDocument as t, GetCampaignDocument as e } from "./graphql.js";
2
+ const i = {
3
+ "\n query GetCampaign($id: String!, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n game {\n id\n gameLink\n }\n }\n }\n": e,
4
+ "\n mutation StartAppSession(\n $campaignId: String!\n $externalUserId: String!\n $checksum: String!\n $requestedAt: String!\n $parameters: JSON!\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n }\n ) {\n accessToken\n }\n }\n": t,
5
+ "\nmutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String, $displayName: String) {\n updateParticipantInfo(input: {\n email: $email\n phone: $phone\n avatar: $avatar\n displayName: $displayName\n }) {\n id\n }\n}\n": a
6
+ };
7
+ function p(n) {
8
+ return i[n] ?? {};
9
+ }
10
+ export {
11
+ p as graphql
12
+ };