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,17 @@
1
+ var a = /* @__PURE__ */ ((e) => (e.AuthenticatePhaseAfterPlay = "AUTHENTICATE_PHASE_AFTER_PLAY", e.AuthenticatePhaseBeforePlay = "AUTHENTICATE_PHASE_BEFORE_PLAY", e.AuthenticatePhaseNoAuthenticate = "AUTHENTICATE_PHASE_NO_AUTHENTICATE", e.AuthenticatePhaseOther = "AUTHENTICATE_PHASE_OTHER", e.Unrecognized = "UNRECOGNIZED", e))(a || {}), n = /* @__PURE__ */ ((e) => (e.GameCategoryLucky = "GAME_CATEGORY_LUCKY", e.GameCategorySkill = "GAME_CATEGORY_SKILL", e.Unrecognized = "UNRECOGNIZED", e))(n || {}), i = /* @__PURE__ */ ((e) => (e.GameScreenTypeLandscape = "GAME_SCREEN_TYPE_LANDSCAPE", e.GameScreenTypePortrait = "GAME_SCREEN_TYPE_PORTRAIT", e.Unrecognized = "UNRECOGNIZED", e))(i || {}), d = /* @__PURE__ */ ((e) => (e.GenderFemale = "GENDER_FEMALE", e.GenderMale = "GENDER_MALE", e.GenderOther = "GENDER_OTHER", e.Unrecognized = "UNRECOGNIZED", e))(d || {}), l = /* @__PURE__ */ ((e) => (e.LeaderboardIntervalDay = "LEADERBOARD_INTERVAL_DAY", e.LeaderboardIntervalHour = "LEADERBOARD_INTERVAL_HOUR", e.LeaderboardIntervalMinute = "LEADERBOARD_INTERVAL_MINUTE", e.LeaderboardIntervalMonth = "LEADERBOARD_INTERVAL_MONTH", e.LeaderboardIntervalOnce = "LEADERBOARD_INTERVAL_ONCE", e.Unrecognized = "UNRECOGNIZED", e))(l || {}), t = /* @__PURE__ */ ((e) => (e.MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY", e.MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE", e.Unrecognized = "UNRECOGNIZED", e))(t || {}), m = /* @__PURE__ */ ((e) => (e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e.Unrecognized = "UNRECOGNIZED", e))(m || {}), k = /* @__PURE__ */ ((e) => (e.SaveProgressTypeLog = "SAVE_PROGRESS_TYPE_LOG", e.SaveProgressTypeSet = "SAVE_PROGRESS_TYPE_SET", e.Unrecognized = "UNRECOGNIZED", e))(k || {}), r = /* @__PURE__ */ ((e) => (e.TicketSourceDaily = "TICKET_SOURCE_DAILY", e.TicketSourceForm = "TICKET_SOURCE_FORM", e.TicketSourceGamePrize = "TICKET_SOURCE_GAME_PRIZE", e.TicketSourceInitial = "TICKET_SOURCE_INITIAL", e.TicketSourceMission = "TICKET_SOURCE_MISSION", e.TicketSourceTicketCode = "TICKET_SOURCE_TICKET_CODE", e.Unrecognized = "UNRECOGNIZED", e))(r || {}), N = /* @__PURE__ */ ((e) => (e.TriggerTypeCampaign = "TRIGGER_TYPE_CAMPAIGN", e.TriggerTypeMission = "TRIGGER_TYPE_MISSION", e.Unrecognized = "UNRECOGNIZED", e))(N || {});
2
+ const E = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetCampaign" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getCampaign" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }, { kind: "Argument", name: { kind: "Name", value: "zaloAppId" }, value: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "game" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "gameLink" } }] } }] } }] } }] }, u = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "StartAppSession" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "campaignId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "externalUserId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "checksum" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "requestedAt" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "parameters" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "startAppSession" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "campaignId" }, value: { kind: "Variable", name: { kind: "Name", value: "campaignId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "externalUserId" }, value: { kind: "Variable", name: { kind: "Name", value: "externalUserId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "checksum" }, value: { kind: "Variable", name: { kind: "Name", value: "checksum" } } }, { kind: "ObjectField", name: { kind: "Name", value: "requestedAt" }, value: { kind: "Variable", name: { kind: "Name", value: "requestedAt" } } }, { kind: "ObjectField", name: { kind: "Name", value: "parameters" }, value: { kind: "Variable", name: { kind: "Name", value: "parameters" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "accessToken" } }] } }] } }] }, o = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateParticipantInfo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "email" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "phone" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "avatar" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "displayName" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateParticipantInfo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "email" }, value: { kind: "Variable", name: { kind: "Name", value: "email" } } }, { kind: "ObjectField", name: { kind: "Name", value: "phone" }, value: { kind: "Variable", name: { kind: "Name", value: "phone" } } }, { kind: "ObjectField", name: { kind: "Name", value: "avatar" }, value: { kind: "Variable", name: { kind: "Name", value: "avatar" } } }, { kind: "ObjectField", name: { kind: "Name", value: "displayName" }, value: { kind: "Variable", name: { kind: "Name", value: "displayName" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }] };
3
+ export {
4
+ a as AuthenticatePhase,
5
+ n as GameCategory,
6
+ i as GameScreenType,
7
+ d as Gender,
8
+ E as GetCampaignDocument,
9
+ l as LeaderboardInterval,
10
+ t as MissionRecurrence,
11
+ m as PrizeType,
12
+ k as SaveProgressType,
13
+ u as StartAppSessionDocument,
14
+ r as TicketSource,
15
+ N as TriggerType,
16
+ o as UpdateParticipantInfoDocument
17
+ };
@@ -0,0 +1,2 @@
1
+ export * from './fragment-masking';
2
+ export * from './gql';
@@ -0,0 +1,8 @@
1
+ import { isFragmentReady as r, makeFragmentData as m, useFragment as t } from "./fragment-masking.js";
2
+ import { graphql as o } from "./gql.js";
3
+ export {
4
+ o as graphql,
5
+ r as isFragmentReady,
6
+ m as makeFragmentData,
7
+ t as useFragment
8
+ };
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { PromogameGame } from './components/PromogameGame';
package/dist/main.js ADDED
@@ -0,0 +1,4 @@
1
+ import { PromogameGame as e } from "./components/PromogameGame/index.js";
2
+ export {
3
+ e as PromogameGame
4
+ };
@@ -0,0 +1,10 @@
1
+ import { UnityInstance } from 'react-unity-webgl/declarations/unity-instance';
2
+ declare global {
3
+ interface Window {
4
+ APP_ID: string;
5
+ __PROMOGAME_EXTERNAL_ACCESS_TOKEN: string;
6
+ __PROMOGAME_CAMPAIGN_ID: string;
7
+ ZaloMiniAppSDK: unknown;
8
+ unityInstance: UnityInstance;
9
+ }
10
+ }
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;