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.
- package/README.md +3 -0
- package/dist/components/PromogameGame/index.d.ts +17 -0
- package/dist/components/PromogameGame/index.js +14239 -0
- package/dist/components/PromogameGame/unity-game.d.ts +9 -0
- package/dist/components/PromogameGame/unity-game.js +657 -0
- package/dist/gql/fragment-masking.d.ts +19 -0
- package/dist/gql/fragment-masking.js +18 -0
- package/dist/gql/gql.d.ts +46 -0
- package/dist/gql/gql.js +12 -0
- package/dist/gql/graphql.d.ts +1431 -0
- package/dist/gql/graphql.js +17 -0
- package/dist/gql/index.d.ts +2 -0
- package/dist/gql/index.js +8 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +4 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +2743 -0
- package/package.json +45 -0
|
@@ -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
|
+
};
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PromogameGame } from './components/PromogameGame';
|
package/dist/main.js
ADDED
package/dist/types.d.ts
ADDED
|
@@ -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
|
+
|
package/dist/utils.d.ts
ADDED