promogame-player 2.0.9 → 2.2.0

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/dist/dev.js CHANGED
@@ -27707,6 +27707,7 @@ function sE() {
27707
27707
  return process.env.NODE_ENV === "production" ? (J(), Bv.exports = oE()) : Bv.exports = fE(), Bv.exports;
27708
27708
  }
27709
27709
  var rE = sE();
27710
+ console.log("DEV MODE");
27710
27711
  rE.createRoot(document.getElementById("root")).render(
27711
- /* @__PURE__ */ E2(lE, { children: /* @__PURE__ */ E2(aE, { apiUrl: "https://api.gaas.vn/graphql", ticketCode: "GAASTEST" }) })
27712
+ /* @__PURE__ */ E2(lE, { children: /* @__PURE__ */ E2(aE, { apiUrl: "https://api.gaas.vn/graphql", ticketCode: "GAASTESTAAAAA" }) })
27712
27713
  );
package/dist/gql/gql.d.ts CHANGED
@@ -12,7 +12,7 @@ import * as types from './graphql';
12
12
  * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
13
13
  */
14
14
  type Documents = {
15
- "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
15
+ "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
16
16
  "\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: Timestamp!\n $parameters: JSON!\n $authenticateRequestId: ID\n $authenticateRequestPassword: String\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n authenticateRequestId: $authenticateRequestId\n authenticateRequestPassword: $authenticateRequestPassword\n }\n ) {\n accessToken\n }\n }\n": typeof types.StartAppSessionDocument;
17
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
18
  };
@@ -33,7 +33,7 @@ export declare function graphql(source: string): unknown;
33
33
  /**
34
34
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
35
35
  */
36
- export declare function graphql(source: "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"): (typeof documents)["\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"];
36
+ export declare function graphql(source: "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"): (typeof documents)["\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"];
37
37
  /**
38
38
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
39
39
  */
package/dist/gql/gql.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UpdateParticipantInfoDocument as e, StartAppSessionDocument as t, GetCampaignDocument as a } from "./graphql.js";
2
2
  const i = {
3
- "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": a,
3
+ "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": a,
4
4
  "\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: Timestamp!\n $parameters: JSON!\n $authenticateRequestId: ID\n $authenticateRequestPassword: String\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n authenticateRequestId: $authenticateRequestId\n authenticateRequestPassword: $authenticateRequestPassword\n }\n ) {\n accessToken\n }\n }\n": t,
5
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": e
6
6
  };
@@ -72,7 +72,7 @@ export type Scalars = {
72
72
  };
73
73
  };
74
74
  export type ActivateTicketCodeBatchInput = {
75
- campaignID: Scalars['ID']['input'];
75
+ campaignName: Scalars['String']['input'];
76
76
  ticketCodeBatchID: Scalars['ID']['input'];
77
77
  };
78
78
  export type AddBitrixContactPointInput = {
@@ -966,7 +966,7 @@ export declare enum MissionRecurrence {
966
966
  export type Mutation = {
967
967
  __typename?: 'Mutation';
968
968
  activateTicketCode: TicketCode;
969
- activateTicketCodeBatch: TicketCodeBatch;
969
+ activateTicketCodeBatch: Campaign;
970
970
  addBitrixContactPoint: ContactPoint;
971
971
  assignRole: Scalars['Boolean']['output'];
972
972
  batchCreateTicketCode: Scalars['Int']['output'];
@@ -977,7 +977,6 @@ export type Mutation = {
977
977
  claimGlobalMission: Prize;
978
978
  claimMission: Prize;
979
979
  claimTicketCode: Array<Ticket>;
980
- claimTicketCodeBatch: TicketCodeBatch;
981
980
  clearParameter: Campaign;
982
981
  completeExternalMission: Scalars['Boolean']['output'];
983
982
  completeFormSession: FormSession;
@@ -1096,9 +1095,6 @@ export type MutationClaimMissionArgs = {
1096
1095
  export type MutationClaimTicketCodeArgs = {
1097
1096
  code: Scalars['String']['input'];
1098
1097
  };
1099
- export type MutationClaimTicketCodeBatchArgs = {
1100
- id: Scalars['ID']['input'];
1101
- };
1102
1098
  export type MutationClearParameterArgs = {
1103
1099
  id: Scalars['ID']['input'];
1104
1100
  input: ClearParameterInput;
@@ -1562,13 +1558,12 @@ export type PrizeHistory = {
1562
1558
  claimedTime: Scalars['Time']['output'];
1563
1559
  createdAt: Scalars['Time']['output'];
1564
1560
  gamePrize?: Maybe<GamePrize>;
1561
+ gameSession?: Maybe<GameSession>;
1565
1562
  globalMission?: Maybe<GlobalMission>;
1566
1563
  id: Scalars['ID']['output'];
1567
1564
  leaderboard?: Maybe<Leaderboard>;
1568
1565
  mission?: Maybe<Mission>;
1569
- /** @deprecated will be removed */
1570
1566
  participant?: Maybe<Participant>;
1571
- /** @deprecated will be removed */
1572
1567
  player: Player;
1573
1568
  prize: Prize;
1574
1569
  processError?: Maybe<Scalars['String']['output']>;
@@ -1579,6 +1574,7 @@ export type PrizeHistory = {
1579
1574
  };
1580
1575
  export type PrizeHistoryFilter = {
1581
1576
  campaignId: Scalars['ID']['input'];
1577
+ gameSessionId?: InputMaybe<Scalars['ID']['input']>;
1582
1578
  giftZonePrize?: InputMaybe<Scalars['Boolean']['input']>;
1583
1579
  processed?: InputMaybe<Scalars['Boolean']['input']>;
1584
1580
  requireManualProcess?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1661,6 +1657,7 @@ export type Query = {
1661
1657
  shopItem: ShopItem;
1662
1658
  systemEvents: SystemEventPaginationList;
1663
1659
  systemRoles: Array<Role>;
1660
+ ticketCodeBatch: TicketCodeBatch;
1664
1661
  ticketCodes: TicketCodePaginationList;
1665
1662
  trigger: Trigger;
1666
1663
  triggers: Array<Trigger>;
@@ -1826,6 +1823,9 @@ export type QuerySystemEventsArgs = {
1826
1823
  filter?: InputMaybe<SystemEventFilter>;
1827
1824
  pagination: PaginationInput;
1828
1825
  };
1826
+ export type QueryTicketCodeBatchArgs = {
1827
+ id: Scalars['ID']['input'];
1828
+ };
1829
1829
  export type QueryTicketCodesArgs = {
1830
1830
  filter: TicketCodeFilter;
1831
1831
  pagination: PaginationInput;
@@ -2027,13 +2027,17 @@ export type TicketCode = {
2027
2027
  };
2028
2028
  export type TicketCodeBatch = {
2029
2029
  __typename?: 'TicketCodeBatch';
2030
+ /** @deprecated dont need anymore */
2030
2031
  activated: Scalars['Boolean']['output'];
2031
2032
  campaign?: Maybe<Campaign>;
2033
+ /** @deprecated dont need anymore */
2032
2034
  claimed: Scalars['Boolean']['output'];
2033
2035
  createdAt: Scalars['Time']['output'];
2036
+ game: Game;
2034
2037
  id: Scalars['ID']['output'];
2035
2038
  ticketCodes: Scalars['Int']['output'];
2036
2039
  updatedAt: Scalars['Time']['output'];
2040
+ /** @deprecated dont need anymore */
2037
2041
  usedTicketCodes: Scalars['Int']['output'];
2038
2042
  };
2039
2043
  export type TicketCodeFilter = {
@@ -2339,6 +2343,9 @@ export type GetCampaignQuery = {
2339
2343
  campaign: {
2340
2344
  __typename?: 'Campaign';
2341
2345
  id: string;
2346
+ name: string;
2347
+ startTime: any;
2348
+ endTime: any;
2342
2349
  game: {
2343
2350
  __typename?: 'Game';
2344
2351
  id: string;
@@ -1,5 +1,5 @@
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))(a || {}), n = /* @__PURE__ */ ((e) => (e.DatabaseActionDelete = "DATABASE_ACTION_DELETE", e.DatabaseActionInsert = "DATABASE_ACTION_INSERT", e.DatabaseActionUpdate = "DATABASE_ACTION_UPDATE", e))(n || {}), i = /* @__PURE__ */ ((e) => (e.GameCategoryLuck = "GAME_CATEGORY_LUCK", e.GameCategoryQuiz = "GAME_CATEGORY_QUIZ", e.GameCategorySkill = "GAME_CATEGORY_SKILL", e))(i || {}), t = /* @__PURE__ */ ((e) => (e.GameScreenTypeLandscape = "GAME_SCREEN_TYPE_LANDSCAPE", e.GameScreenTypePortrait = "GAME_SCREEN_TYPE_PORTRAIT", e))(t || {}), d = /* @__PURE__ */ ((e) => (e.GenderFemale = "GENDER_FEMALE", e.GenderMale = "GENDER_MALE", e.GenderOther = "GENDER_OTHER", e))(d || {}), E = /* @__PURE__ */ ((e) => (e.MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY", e.MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE", e))(E || {}), l = /* @__PURE__ */ ((e) => (e.ActivateTicketCode = "ACTIVATE_TICKET_CODE", e.CreateBrand = "CREATE_BRAND", e.CreateBrandKit = "CREATE_BRAND_KIT", e.CreateCampaign = "CREATE_CAMPAIGN", e.CreateGame = "CREATE_GAME", e.CreateGamePrize = "CREATE_GAME_PRIZE", e.CreateGamePrizeKit = "CREATE_GAME_PRIZE_KIT", e.CreateLeaderboardConfig = "CREATE_LEADERBOARD_CONFIG", e.CreateMission = "CREATE_MISSION", e.CreateNominee = "CREATE_NOMINEE", e.CreatePrize = "CREATE_PRIZE", e.CreateRole = "CREATE_ROLE", e.CreateTicketCode = "CREATE_TICKET_CODE", e.CreateTrigger = "CREATE_TRIGGER", e.DeleteGamePrize = "DELETE_GAME_PRIZE", e.DeleteGamePrizeKit = "DELETE_GAME_PRIZE_KIT", e.DeleteLeaderboardConfig = "DELETE_LEADERBOARD_CONFIG", e.DeleteMission = "DELETE_MISSION", e.GetBrands = "GET_BRANDS", e.GetBrandKits = "GET_BRAND_KITS", e.GetCampaigns = "GET_CAMPAIGNS", e.GetCampaignSecretInfo = "GET_CAMPAIGN_SECRET_INFO", e.GetGames = "GET_GAMES", e.GetGameEvents = "GET_GAME_EVENTS", e.GetGamePrizeKits = "GET_GAME_PRIZE_KITS", e.GetLeaderboards = "GET_LEADERBOARDS", e.GetLeaderboardConfigs = "GET_LEADERBOARD_CONFIGS", e.GetMissions = "GET_MISSIONS", e.GetParticipants = "GET_PARTICIPANTS", e.GetPermissionsByRole = "GET_PERMISSIONS_BY_ROLE", e.GetPrivateGames = "GET_PRIVATE_GAMES", e.GetPrivateParticipantInfo = "GET_PRIVATE_PARTICIPANT_INFO", e.GetPrizes = "GET_PRIZES", e.GetPrizeHistories = "GET_PRIZE_HISTORIES", e.GetRoles = "GET_ROLES", e.GetSystemEvents = "GET_SYSTEM_EVENTS", e.GetTicketCodes = "GET_TICKET_CODES", e.GetTriggers = "GET_TRIGGERS", e.LockParticipant = "LOCK_PARTICIPANT", e.SetUserRoles = "SET_USER_ROLES", e.SubscribeEvents = "SUBSCRIBE_EVENTS", e.UpdateBrand = "UPDATE_BRAND", e.UpdateBrandKit = "UPDATE_BRAND_KIT", e.UpdateCampaign = "UPDATE_CAMPAIGN", e.UpdateCampaignSecretInfo = "UPDATE_CAMPAIGN_SECRET_INFO", e.UpdateForm = "UPDATE_FORM", e.UpdateGame = "UPDATE_GAME", e.UpdateGamePrize = "UPDATE_GAME_PRIZE", e.UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT", e.UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG", e.UpdateMission = "UPDATE_MISSION", e.UpdateNominee = "UPDATE_NOMINEE", e.UpdatePrize = "UPDATE_PRIZE", e.UpdateRole = "UPDATE_ROLE", e.UpdateTicketCode = "UPDATE_TICKET_CODE", e.UpdateTrigger = "UPDATE_TRIGGER", e))(l || {}), k = /* @__PURE__ */ ((e) => (e.PrizeTypeCosmetic = "PRIZE_TYPE_COSMETIC", e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(k || {}), m = /* @__PURE__ */ ((e) => (e.None = "NONE", e.OpenLink = "OPEN_LINK", e.PlayGame = "PLAY_GAME", e.Ptcr = "PTCR", e.ReadArticle = "READ_ARTICLE", e.Share = "SHARE", e.WatchAd = "WATCH_AD", e))(m || {}), N = /* @__PURE__ */ ((e) => (e.SystemEventLevelCritical = "SYSTEM_EVENT_LEVEL_CRITICAL", e.SystemEventLevelError = "SYSTEM_EVENT_LEVEL_ERROR", e.SystemEventLevelInfo = "SYSTEM_EVENT_LEVEL_INFO", e.SystemEventLevelWarning = "SYSTEM_EVENT_LEVEL_WARNING", e))(N || {}), _ = /* @__PURE__ */ ((e) => (e.TicketSourceBattlePass = "TICKET_SOURCE_BATTLE_PASS", e.TicketSourceDaily = "TICKET_SOURCE_DAILY", e.TicketSourceForm = "TICKET_SOURCE_FORM", e.TicketSourceGamePrize = "TICKET_SOURCE_GAME_PRIZE", e.TicketSourceGlobalMission = "TICKET_SOURCE_GLOBAL_MISSION", e.TicketSourceInitial = "TICKET_SOURCE_INITIAL", e.TicketSourceMission = "TICKET_SOURCE_MISSION", e.TicketSourceShop = "TICKET_SOURCE_SHOP", e.TicketSourceTicketCode = "TICKET_SOURCE_TICKET_CODE", e))(_ || {}), r = /* @__PURE__ */ ((e) => (e.Day = "DAY", e.Hour = "HOUR", e.Month = "MONTH", e.Week = "WEEK", e))(r || {});
2
- const u = { 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: "NamedType", name: { kind: "Name", value: "ID" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "ticketCode" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "campaign" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "identifier" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "campaignId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }, { kind: "ObjectField", name: { kind: "Name", value: "zaloAppId" }, value: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "ticketCode" }, value: { kind: "Variable", name: { kind: "Name", value: "ticketCode" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { 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" } }, { kind: "Field", name: { kind: "Name", value: "tags" } }] } }, { kind: "Field", name: { kind: "Name", value: "brandKit" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "primaryColor" } }, { kind: "Field", name: { kind: "Name", value: "secondaryColor" } }, { kind: "Field", name: { kind: "Name", value: "surfaceColor" } }, { kind: "Field", name: { kind: "Name", value: "accentColor" } }, { kind: "Field", name: { kind: "Name", value: "logoLink" } }] } }] } }] } }] }, A = { 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: "ID" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "externalUserId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "checksum" } }, 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: "Timestamp" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "parameters" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestPassword" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], 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" } } }, { kind: "ObjectField", name: { kind: "Name", value: "authenticateRequestId" }, value: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "authenticateRequestPassword" }, value: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestPassword" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "accessToken" } }] } }] } }] }, I = { 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" } }] } }] } }] };
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))(a || {}), n = /* @__PURE__ */ ((e) => (e.DatabaseActionDelete = "DATABASE_ACTION_DELETE", e.DatabaseActionInsert = "DATABASE_ACTION_INSERT", e.DatabaseActionUpdate = "DATABASE_ACTION_UPDATE", e))(n || {}), i = /* @__PURE__ */ ((e) => (e.GameCategoryLuck = "GAME_CATEGORY_LUCK", e.GameCategoryQuiz = "GAME_CATEGORY_QUIZ", e.GameCategorySkill = "GAME_CATEGORY_SKILL", e))(i || {}), t = /* @__PURE__ */ ((e) => (e.GameScreenTypeLandscape = "GAME_SCREEN_TYPE_LANDSCAPE", e.GameScreenTypePortrait = "GAME_SCREEN_TYPE_PORTRAIT", e))(t || {}), d = /* @__PURE__ */ ((e) => (e.GenderFemale = "GENDER_FEMALE", e.GenderMale = "GENDER_MALE", e.GenderOther = "GENDER_OTHER", e))(d || {}), E = /* @__PURE__ */ ((e) => (e.MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY", e.MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE", e))(E || {}), l = /* @__PURE__ */ ((e) => (e.ActivateTicketCode = "ACTIVATE_TICKET_CODE", e.CreateBrand = "CREATE_BRAND", e.CreateBrandKit = "CREATE_BRAND_KIT", e.CreateCampaign = "CREATE_CAMPAIGN", e.CreateGame = "CREATE_GAME", e.CreateGamePrize = "CREATE_GAME_PRIZE", e.CreateGamePrizeKit = "CREATE_GAME_PRIZE_KIT", e.CreateLeaderboardConfig = "CREATE_LEADERBOARD_CONFIG", e.CreateMission = "CREATE_MISSION", e.CreateNominee = "CREATE_NOMINEE", e.CreatePrize = "CREATE_PRIZE", e.CreateRole = "CREATE_ROLE", e.CreateTicketCode = "CREATE_TICKET_CODE", e.CreateTrigger = "CREATE_TRIGGER", e.DeleteGamePrize = "DELETE_GAME_PRIZE", e.DeleteGamePrizeKit = "DELETE_GAME_PRIZE_KIT", e.DeleteLeaderboardConfig = "DELETE_LEADERBOARD_CONFIG", e.DeleteMission = "DELETE_MISSION", e.GetBrands = "GET_BRANDS", e.GetBrandKits = "GET_BRAND_KITS", e.GetCampaigns = "GET_CAMPAIGNS", e.GetCampaignSecretInfo = "GET_CAMPAIGN_SECRET_INFO", e.GetGames = "GET_GAMES", e.GetGameEvents = "GET_GAME_EVENTS", e.GetGamePrizeKits = "GET_GAME_PRIZE_KITS", e.GetLeaderboards = "GET_LEADERBOARDS", e.GetLeaderboardConfigs = "GET_LEADERBOARD_CONFIGS", e.GetMissions = "GET_MISSIONS", e.GetParticipants = "GET_PARTICIPANTS", e.GetPermissionsByRole = "GET_PERMISSIONS_BY_ROLE", e.GetPrivateGames = "GET_PRIVATE_GAMES", e.GetPrivateParticipantInfo = "GET_PRIVATE_PARTICIPANT_INFO", e.GetPrizes = "GET_PRIZES", e.GetPrizeHistories = "GET_PRIZE_HISTORIES", e.GetRoles = "GET_ROLES", e.GetSystemEvents = "GET_SYSTEM_EVENTS", e.GetTicketCodes = "GET_TICKET_CODES", e.GetTriggers = "GET_TRIGGERS", e.LockParticipant = "LOCK_PARTICIPANT", e.SetUserRoles = "SET_USER_ROLES", e.SubscribeEvents = "SUBSCRIBE_EVENTS", e.UpdateBrand = "UPDATE_BRAND", e.UpdateBrandKit = "UPDATE_BRAND_KIT", e.UpdateCampaign = "UPDATE_CAMPAIGN", e.UpdateCampaignSecretInfo = "UPDATE_CAMPAIGN_SECRET_INFO", e.UpdateForm = "UPDATE_FORM", e.UpdateGame = "UPDATE_GAME", e.UpdateGamePrize = "UPDATE_GAME_PRIZE", e.UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT", e.UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG", e.UpdateMission = "UPDATE_MISSION", e.UpdateNominee = "UPDATE_NOMINEE", e.UpdatePrize = "UPDATE_PRIZE", e.UpdateRole = "UPDATE_ROLE", e.UpdateTicketCode = "UPDATE_TICKET_CODE", e.UpdateTrigger = "UPDATE_TRIGGER", e))(l || {}), k = /* @__PURE__ */ ((e) => (e.PrizeTypeCosmetic = "PRIZE_TYPE_COSMETIC", e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(k || {}), m = /* @__PURE__ */ ((e) => (e.None = "NONE", e.OpenLink = "OPEN_LINK", e.PlayGame = "PLAY_GAME", e.Ptcr = "PTCR", e.ReadArticle = "READ_ARTICLE", e.Share = "SHARE", e.WatchAd = "WATCH_AD", e))(m || {}), N = /* @__PURE__ */ ((e) => (e.SystemEventLevelCritical = "SYSTEM_EVENT_LEVEL_CRITICAL", e.SystemEventLevelError = "SYSTEM_EVENT_LEVEL_ERROR", e.SystemEventLevelInfo = "SYSTEM_EVENT_LEVEL_INFO", e.SystemEventLevelWarning = "SYSTEM_EVENT_LEVEL_WARNING", e))(N || {}), r = /* @__PURE__ */ ((e) => (e.TicketSourceBattlePass = "TICKET_SOURCE_BATTLE_PASS", e.TicketSourceDaily = "TICKET_SOURCE_DAILY", e.TicketSourceForm = "TICKET_SOURCE_FORM", e.TicketSourceGamePrize = "TICKET_SOURCE_GAME_PRIZE", e.TicketSourceGlobalMission = "TICKET_SOURCE_GLOBAL_MISSION", e.TicketSourceInitial = "TICKET_SOURCE_INITIAL", e.TicketSourceMission = "TICKET_SOURCE_MISSION", e.TicketSourceShop = "TICKET_SOURCE_SHOP", e.TicketSourceTicketCode = "TICKET_SOURCE_TICKET_CODE", e))(r || {}), _ = /* @__PURE__ */ ((e) => (e.Day = "DAY", e.Hour = "HOUR", e.Month = "MONTH", e.Week = "WEEK", e))(_ || {});
2
+ const u = { 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: "NamedType", name: { kind: "Name", value: "ID" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "ticketCode" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "campaign" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "identifier" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "campaignId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }, { kind: "ObjectField", name: { kind: "Name", value: "zaloAppId" }, value: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "ticketCode" }, value: { kind: "Variable", name: { kind: "Name", value: "ticketCode" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "startTime" } }, { kind: "Field", name: { kind: "Name", value: "endTime" } }, { 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" } }, { kind: "Field", name: { kind: "Name", value: "tags" } }] } }, { kind: "Field", name: { kind: "Name", value: "brandKit" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "primaryColor" } }, { kind: "Field", name: { kind: "Name", value: "secondaryColor" } }, { kind: "Field", name: { kind: "Name", value: "surfaceColor" } }, { kind: "Field", name: { kind: "Name", value: "accentColor" } }, { kind: "Field", name: { kind: "Name", value: "logoLink" } }] } }] } }] } }] }, A = { 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: "ID" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "externalUserId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "checksum" } }, 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: "Timestamp" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "parameters" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestPassword" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], 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" } } }, { kind: "ObjectField", name: { kind: "Name", value: "authenticateRequestId" }, value: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "authenticateRequestPassword" }, value: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestPassword" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "accessToken" } }] } }] } }] }, I = { 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
3
  export {
4
4
  a as AuthenticatePhase,
5
5
  n as DatabaseAction,
@@ -13,7 +13,7 @@ export {
13
13
  m as RedirectType,
14
14
  A as StartAppSessionDocument,
15
15
  N as SystemEventLevel,
16
- _ as TicketSource,
17
- r as TimeSeriesRange,
16
+ r as TicketSource,
17
+ _ as TimeSeriesRange,
18
18
  I as UpdateParticipantInfoDocument
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promogame-player",
3
- "version": "2.0.9",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",