promogame-player 1.0.0 → 1.0.1

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.
@@ -7310,7 +7310,7 @@ const Cu = lr(`
7310
7310
  $campaignId: ID!
7311
7311
  $externalUserId: String
7312
7312
  $checksum: String
7313
- $requestedAt: String
7313
+ $requestedAt: Timestamp!
7314
7314
  $parameters: JSON!
7315
7315
  $authenticateRequestId: ID
7316
7316
  $authenticateRequestPassword: String
package/dist/gql/gql.d.ts CHANGED
@@ -13,7 +13,7 @@ import * as types from './graphql';
13
13
  */
14
14
  type Documents = {
15
15
  "\n query GetCampaign($id: ID, $zaloAppId: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId}) {\n id\n game {\n id\n gameLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
16
- "\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: String\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;
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
  };
19
19
  declare const documents: Documents;
@@ -37,7 +37,7 @@ export declare function graphql(source: "\n query GetCampaign($id: ID, $zaloApp
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
  */
40
- export declare function graphql(source: "\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: String\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 documents)["\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: String\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"];
40
+ export declare function graphql(source: "\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 documents)["\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"];
41
41
  /**
42
42
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
43
43
  */
package/dist/gql/gql.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { UpdateParticipantInfoDocument as e, StartAppSessionDocument as t, GetCampaignDocument as a } from "./graphql.js";
2
2
  const i = {
3
3
  "\n query GetCampaign($id: ID, $zaloAppId: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId}) {\n id\n game {\n id\n gameLink\n }\n }\n }\n": a,
4
- "\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: String\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,
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
  };
7
7
  function p(n) {
@@ -62,6 +62,10 @@ export type Scalars = {
62
62
  input: any;
63
63
  output: any;
64
64
  };
65
+ Timestamp: {
66
+ input: any;
67
+ output: any;
68
+ };
65
69
  Upload: {
66
70
  input: any;
67
71
  output: any;
@@ -94,7 +98,7 @@ export type AuditEvent = SystemEvent & {
94
98
  /** @deprecated This will be removed after backend completes */
95
99
  changedInAppSessionId?: Maybe<Scalars['ID']['output']>;
96
100
  createdAt: Scalars['Time']['output'];
97
- id: Scalars['ID']['output'];
101
+ id: Scalars['String']['output'];
98
102
  level: SystemEventLevel;
99
103
  metadata: Scalars['JSON']['output'];
100
104
  newData?: Maybe<Scalars['JSON']['output']>;
@@ -205,7 +209,7 @@ export type Campaign = {
205
209
  leaderboardIngestAuthUrl?: Maybe<Scalars['String']['output']>;
206
210
  leaderboardIngestUrl?: Maybe<Scalars['String']['output']>;
207
211
  leaderboardIngestUsername?: Maybe<Scalars['String']['output']>;
208
- myParticipationInfo?: Maybe<Participant>;
212
+ myParticipationInfo: Participant;
209
213
  name: Scalars['String']['output'];
210
214
  parameters: Scalars['JSON']['output'];
211
215
  participants: ParticipantPaginationList;
@@ -273,6 +277,7 @@ export type CreateBrandKitInput = {
273
277
  };
274
278
  export type CreateCampaignInput = {
275
279
  allowEnterTicketCode: Scalars['Boolean']['input'];
280
+ authUrl?: InputMaybe<Scalars['String']['input']>;
276
281
  authenticatePhase: AuthenticatePhase;
277
282
  brandId: Scalars['ID']['input'];
278
283
  brandKitId?: InputMaybe<Scalars['ID']['input']>;
@@ -366,12 +371,18 @@ export type CreateMissionInput = {
366
371
  triggerId: Scalars['String']['input'];
367
372
  triggerValue: Scalars['Int']['input'];
368
373
  };
374
+ export type CreateNomineeInput = {
375
+ campaignID: Scalars['ID']['input'];
376
+ name: Scalars['String']['input'];
377
+ parameters: Scalars['JSON']['input'];
378
+ thumbnail: Scalars['Upload']['input'];
379
+ };
369
380
  export type CreatePrizeInput = {
370
381
  avatar: Scalars['Upload']['input'];
371
382
  campaignId: Scalars['ID']['input'];
372
383
  externalPrizeId?: InputMaybe<Scalars['String']['input']>;
373
384
  name: Scalars['String']['input'];
374
- parameters?: InputMaybe<Scalars['JSON']['input']>;
385
+ parameters: Scalars['JSON']['input'];
375
386
  quantity: Scalars['Int']['input'];
376
387
  stock?: InputMaybe<Scalars['Int']['input']>;
377
388
  type: PrizeType;
@@ -403,13 +414,14 @@ export type DeleteGamePrizeInput = {
403
414
  id: Scalars['ID']['input'];
404
415
  };
405
416
  export type EndGameSessionInput = {
406
- checksum?: InputMaybe<Scalars['String']['input']>;
417
+ checksum: Scalars['String']['input'];
407
418
  claimPrizeImmediately: Scalars['Boolean']['input'];
408
419
  forfeitGamePrize: Scalars['Boolean']['input'];
409
420
  id: Scalars['ID']['input'];
410
- requestedAt?: InputMaybe<Scalars['String']['input']>;
421
+ requestedAt: Scalars['Timestamp']['input'];
411
422
  result: Scalars['JSON']['input'];
412
423
  score: Scalars['Int']['input'];
424
+ votedForId?: InputMaybe<Scalars['ID']['input']>;
413
425
  };
414
426
  export type FileParameterInput = {
415
427
  name: Scalars['String']['input'];
@@ -502,8 +514,16 @@ export type GameSession = {
502
514
  id: Scalars['ID']['output'];
503
515
  participant: Participant;
504
516
  prizeClaimed: Scalars['Boolean']['output'];
505
- score?: Maybe<Scalars['Int']['output']>;
517
+ score: Scalars['Int']['output'];
506
518
  startAt: Scalars['Time']['output'];
519
+ votedFor?: Maybe<Nominee>;
520
+ };
521
+ export type GameSessionPaginationList = PaginationList & {
522
+ __typename?: 'GameSessionPaginationList';
523
+ count: Scalars['Int']['output'];
524
+ gameSessions: Array<GameSession>;
525
+ start: Scalars['Int']['output'];
526
+ total: Scalars['Int']['output'];
507
527
  };
508
528
  export declare enum Gender {
509
529
  GenderFemale = "GENDER_FEMALE",
@@ -568,12 +588,18 @@ export type LogGameEventInput = {
568
588
  checksum: Scalars['String']['input'];
569
589
  key: Scalars['String']['input'];
570
590
  params?: InputMaybe<Scalars['JSON']['input']>;
571
- requestedAt: Scalars['String']['input'];
591
+ requestedAt: Scalars['Timestamp']['input'];
592
+ };
593
+ export type LogMissionProgressInput = {
594
+ checksum: Scalars['String']['input'];
595
+ requestedAt: Scalars['Timestamp']['input'];
596
+ triggerId: Scalars['String']['input'];
597
+ value: Scalars['Int']['input'];
572
598
  };
573
599
  export type LogScoreInput = {
574
- checksum?: InputMaybe<Scalars['String']['input']>;
600
+ checksum: Scalars['String']['input'];
575
601
  id: Scalars['ID']['input'];
576
- requestedAt?: InputMaybe<Scalars['String']['input']>;
602
+ requestedAt: Scalars['Timestamp']['input'];
577
603
  score: Scalars['Int']['input'];
578
604
  };
579
605
  export type LoginDetails = {
@@ -591,7 +617,7 @@ export type MetricEvent = SystemEvent & {
591
617
  brandId?: Maybe<Scalars['ID']['output']>;
592
618
  campaignId?: Maybe<Scalars['ID']['output']>;
593
619
  createdAt: Scalars['Time']['output'];
594
- id: Scalars['ID']['output'];
620
+ id: Scalars['String']['output'];
595
621
  level: SystemEventLevel;
596
622
  message: Scalars['String']['output'];
597
623
  metadata: Scalars['JSON']['output'];
@@ -601,12 +627,17 @@ export type MetricEvent = SystemEvent & {
601
627
  export type Mission = {
602
628
  __typename?: 'Mission';
603
629
  active: Scalars['Boolean']['output'];
630
+ claimed: Scalars['Boolean']['output'];
631
+ claimedTimes: Scalars['Int']['output'];
604
632
  congratulationsFormat?: Maybe<Scalars['String']['output']>;
605
633
  externalHashValue?: Maybe<Scalars['String']['output']>;
606
634
  externalMissionId?: Maybe<Scalars['String']['output']>;
607
635
  id: Scalars['ID']['output'];
636
+ isSequential: Scalars['Boolean']['output'];
608
637
  name: Scalars['String']['output'];
638
+ nextTriggerValue: Scalars['Int']['output'];
609
639
  prize: Prize;
640
+ progress: Scalars['Int']['output'];
610
641
  recurrence: MissionRecurrence;
611
642
  redirectParameters: Scalars['JSON']['output'];
612
643
  redirectType: RedirectType;
@@ -618,6 +649,13 @@ export type MissionFilter = {
618
649
  campaignId: Scalars['ID']['input'];
619
650
  keyword?: InputMaybe<Scalars['String']['input']>;
620
651
  };
652
+ export type MissionProgress = {
653
+ __typename?: 'MissionProgress';
654
+ id: Scalars['ID']['output'];
655
+ progressValue: Scalars['Float']['output'];
656
+ recurrence: MissionRecurrence;
657
+ resetTime?: Maybe<Scalars['Time']['output']>;
658
+ };
621
659
  export declare enum MissionRecurrence {
622
660
  MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY",
623
661
  MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE"
@@ -629,6 +667,7 @@ export type Mutation = {
629
667
  assignRole: Scalars['Boolean']['output'];
630
668
  batchCreateTicketCode: Scalars['Int']['output'];
631
669
  claimGamePrize: GamePrize;
670
+ claimMission: Prize;
632
671
  claimTicketCode: Array<Ticket>;
633
672
  clearParameter: Campaign;
634
673
  createAuthenticateRequest: AuthenticateRequest;
@@ -640,6 +679,7 @@ export type Mutation = {
640
679
  createGamePrizeKit: GamePrizeKit;
641
680
  createLeaderboardConfig: LeaderboardConfig;
642
681
  createMission: Mission;
682
+ createNominee: Nominee;
643
683
  createPrize: Prize;
644
684
  createRole: Role;
645
685
  createTicketCode: TicketCode;
@@ -653,6 +693,7 @@ export type Mutation = {
653
693
  forfeitGamePrize: GameSession;
654
694
  lockParticipant: Scalars['Boolean']['output'];
655
695
  logGameEvent: GameEvent;
696
+ logMissionProgress: Array<MissionProgress>;
656
697
  logScore: GameSession;
657
698
  login: LoginDetails;
658
699
  ping: Ping;
@@ -667,6 +708,7 @@ export type Mutation = {
667
708
  setCampaignNumberParameter: Campaign;
668
709
  setCampaignParameter: Campaign;
669
710
  setCampaignStringParameter: Campaign;
711
+ setMissionProgress: Array<MissionProgress>;
670
712
  startAppSession: StartAppSessionResponse;
671
713
  startGameSession: GameSession;
672
714
  subscribeWebPush: ContactPoint;
@@ -680,6 +722,7 @@ export type Mutation = {
680
722
  updateGamePrizeKit: GamePrizeKit;
681
723
  updateLeaderboardConfig: LeaderboardConfig;
682
724
  updateMission: Mission;
725
+ updateNominee: Nominee;
683
726
  updateParticipantInfo: Participant;
684
727
  updatePrize: Prize;
685
728
  updateRole: Role;
@@ -701,6 +744,9 @@ export type MutationBatchCreateTicketCodeArgs = {
701
744
  export type MutationClaimGamePrizeArgs = {
702
745
  gameSessionId: Scalars['ID']['input'];
703
746
  };
747
+ export type MutationClaimMissionArgs = {
748
+ id: Scalars['ID']['input'];
749
+ };
704
750
  export type MutationClaimTicketCodeArgs = {
705
751
  code: Scalars['String']['input'];
706
752
  };
@@ -735,6 +781,9 @@ export type MutationCreateLeaderboardConfigArgs = {
735
781
  export type MutationCreateMissionArgs = {
736
782
  input: CreateMissionInput;
737
783
  };
784
+ export type MutationCreateNomineeArgs = {
785
+ input: CreateNomineeInput;
786
+ };
738
787
  export type MutationCreatePrizeArgs = {
739
788
  input: CreatePrizeInput;
740
789
  };
@@ -774,6 +823,9 @@ export type MutationLockParticipantArgs = {
774
823
  export type MutationLogGameEventArgs = {
775
824
  input: LogGameEventInput;
776
825
  };
826
+ export type MutationLogMissionProgressArgs = {
827
+ input: LogMissionProgressInput;
828
+ };
777
829
  export type MutationLogScoreArgs = {
778
830
  input: LogScoreInput;
779
831
  };
@@ -816,6 +868,9 @@ export type MutationSetCampaignStringParameterArgs = {
816
868
  id: Scalars['ID']['input'];
817
869
  input: StringParameterInput;
818
870
  };
871
+ export type MutationSetMissionProgressArgs = {
872
+ input: SetMissionProgressInput;
873
+ };
819
874
  export type MutationStartAppSessionArgs = {
820
875
  input: StartAppSessionInput;
821
876
  };
@@ -855,6 +910,9 @@ export type MutationUpdateLeaderboardConfigArgs = {
855
910
  export type MutationUpdateMissionArgs = {
856
911
  input: UpdateMissionInput;
857
912
  };
913
+ export type MutationUpdateNomineeArgs = {
914
+ input: UpdateNomineeInput;
915
+ };
858
916
  export type MutationUpdateParticipantInfoArgs = {
859
917
  input: UpdateParticipantInfoInput;
860
918
  };
@@ -870,6 +928,22 @@ export type MutationUpdateTicketCodeArgs = {
870
928
  export type MutationUpdateTriggerArgs = {
871
929
  input: UpdateTriggerInput;
872
930
  };
931
+ export type Nominee = {
932
+ __typename?: 'Nominee';
933
+ id: Scalars['ID']['output'];
934
+ name: Scalars['String']['output'];
935
+ parameters: Scalars['JSON']['output'];
936
+ thumbnailLink: Scalars['String']['output'];
937
+ voters: ParticipantPaginationList;
938
+ votes: Scalars['Int']['output'];
939
+ };
940
+ export type NomineeVotersArgs = {
941
+ pagination: PaginationInput;
942
+ };
943
+ export type NomineeFilter = {
944
+ campaignId: Scalars['ID']['input'];
945
+ keyword?: InputMaybe<Scalars['String']['input']>;
946
+ };
873
947
  export type NumberParameterInput = {
874
948
  name: Scalars['String']['input'];
875
949
  value: Scalars['Float']['input'];
@@ -919,6 +993,7 @@ export declare enum PermissionType {
919
993
  CreateGamePrizeKit = "CREATE_GAME_PRIZE_KIT",
920
994
  CreateLeaderboardConfig = "CREATE_LEADERBOARD_CONFIG",
921
995
  CreateMission = "CREATE_MISSION",
996
+ CreateNominee = "CREATE_NOMINEE",
922
997
  CreatePrize = "CREATE_PRIZE",
923
998
  CreateRole = "CREATE_ROLE",
924
999
  CreateTicketCode = "CREATE_TICKET_CODE",
@@ -958,6 +1033,7 @@ export declare enum PermissionType {
958
1033
  UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT",
959
1034
  UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG",
960
1035
  UpdateMission = "UPDATE_MISSION",
1036
+ UpdateNominee = "UPDATE_NOMINEE",
961
1037
  UpdatePrize = "UPDATE_PRIZE",
962
1038
  UpdateRole = "UPDATE_ROLE",
963
1039
  UpdateTicketCode = "UPDATE_TICKET_CODE",
@@ -974,7 +1050,7 @@ export type Prize = {
974
1050
  externalPrizeId?: Maybe<Scalars['String']['output']>;
975
1051
  id: Scalars['ID']['output'];
976
1052
  name: Scalars['String']['output'];
977
- parameters?: Maybe<Scalars['JSON']['output']>;
1053
+ parameters: Scalars['JSON']['output'];
978
1054
  quantity: Scalars['Int']['output'];
979
1055
  stock?: Maybe<Scalars['Int']['output']>;
980
1056
  type: PrizeType;
@@ -1036,8 +1112,11 @@ export type Query = {
1036
1112
  mission: Mission;
1037
1113
  missions: Array<Mission>;
1038
1114
  myContactPoints: Array<ContactPoint>;
1115
+ myGameSessions: GameSessionPaginationList;
1039
1116
  myPrizeHistories: PrizeHistoryPaginationList;
1040
1117
  myTicketCodes: TicketCodePaginationList;
1118
+ nominee: Nominee;
1119
+ nominees: Array<Nominee>;
1041
1120
  participant: Participant;
1042
1121
  prize: Prize;
1043
1122
  prizeHistories: PrizeHistoryPaginationList;
@@ -1116,12 +1195,21 @@ export type QueryMissionArgs = {
1116
1195
  export type QueryMissionsArgs = {
1117
1196
  filter?: InputMaybe<MissionFilter>;
1118
1197
  };
1198
+ export type QueryMyGameSessionsArgs = {
1199
+ pagination: PaginationInput;
1200
+ };
1119
1201
  export type QueryMyPrizeHistoriesArgs = {
1120
1202
  pagination: PaginationInput;
1121
1203
  };
1122
1204
  export type QueryMyTicketCodesArgs = {
1123
1205
  pagination: PaginationInput;
1124
1206
  };
1207
+ export type QueryNomineeArgs = {
1208
+ id: Scalars['ID']['input'];
1209
+ };
1210
+ export type QueryNomineesArgs = {
1211
+ filter?: InputMaybe<NomineeFilter>;
1212
+ };
1125
1213
  export type QueryParticipantArgs = {
1126
1214
  id: Scalars['ID']['input'];
1127
1215
  };
@@ -1137,7 +1225,7 @@ export type QueryPrizesArgs = {
1137
1225
  };
1138
1226
  export type QuerySystemEventsArgs = {
1139
1227
  filter?: InputMaybe<SystemEventFilter>;
1140
- input: PaginationInput;
1228
+ pagination: PaginationInput;
1141
1229
  };
1142
1230
  export type QueryTicketCodesArgs = {
1143
1231
  filter: TicketCodeFilter;
@@ -1186,9 +1274,15 @@ export type SecuredParameters = {
1186
1274
  parameters: Scalars['JSON']['output'];
1187
1275
  };
1188
1276
  export type SetCampaignGameStatesInput = {
1189
- checksum?: InputMaybe<Scalars['String']['input']>;
1277
+ checksum: Scalars['String']['input'];
1190
1278
  gameStates: Scalars['JSON']['input'];
1191
- requestedAt?: InputMaybe<Scalars['String']['input']>;
1279
+ requestedAt: Scalars['Timestamp']['input'];
1280
+ };
1281
+ export type SetMissionProgressInput = {
1282
+ checksum: Scalars['String']['input'];
1283
+ requestedAt: Scalars['Timestamp']['input'];
1284
+ triggerId: Scalars['String']['input'];
1285
+ value: Scalars['Int']['input'];
1192
1286
  };
1193
1287
  export type StartAppSessionInput = {
1194
1288
  authenticateRequestId?: InputMaybe<Scalars['ID']['input']>;
@@ -1200,7 +1294,7 @@ export type StartAppSessionInput = {
1200
1294
  headers?: InputMaybe<Scalars['JSON']['input']>;
1201
1295
  ipAddress?: InputMaybe<Scalars['String']['input']>;
1202
1296
  parameters?: InputMaybe<Scalars['JSON']['input']>;
1203
- requestedAt?: InputMaybe<Scalars['String']['input']>;
1297
+ requestedAt?: InputMaybe<Scalars['Timestamp']['input']>;
1204
1298
  zaloAccessToken?: InputMaybe<Scalars['String']['input']>;
1205
1299
  zaloAppId?: InputMaybe<Scalars['String']['input']>;
1206
1300
  };
@@ -1214,6 +1308,7 @@ export type StartGameSessionInput = {
1214
1308
  claimPrizeImmediately: Scalars['Boolean']['input'];
1215
1309
  endImmediately: Scalars['Boolean']['input'];
1216
1310
  ticketId?: InputMaybe<Scalars['ID']['input']>;
1311
+ votedForId?: InputMaybe<Scalars['ID']['input']>;
1217
1312
  };
1218
1313
  export type StringParameterInput = {
1219
1314
  name: Scalars['String']['input'];
@@ -1228,7 +1323,7 @@ export type SystemEvent = {
1228
1323
  /** @deprecated This will be removed after backend completes */
1229
1324
  campaignId?: Maybe<Scalars['ID']['output']>;
1230
1325
  createdAt: Scalars['Time']['output'];
1231
- id: Scalars['ID']['output'];
1326
+ id: Scalars['String']['output'];
1232
1327
  level: SystemEventLevel;
1233
1328
  metadata: Scalars['JSON']['output'];
1234
1329
  };
@@ -1308,6 +1403,7 @@ export type UpdateAuthenticateRequestInput = {
1308
1403
  };
1309
1404
  export type UpdateBrandInput = {
1310
1405
  avatar?: InputMaybe<Scalars['Upload']['input']>;
1406
+ defaultBrandKitID?: InputMaybe<Scalars['ID']['input']>;
1311
1407
  externalBrandId?: InputMaybe<Scalars['String']['input']>;
1312
1408
  id: Scalars['ID']['input'];
1313
1409
  name?: InputMaybe<Scalars['String']['input']>;
@@ -1327,6 +1423,7 @@ export type UpdateBrandKitInput = {
1327
1423
  };
1328
1424
  export type UpdateCampaignInput = {
1329
1425
  allowEnterTicketCode?: InputMaybe<Scalars['Boolean']['input']>;
1426
+ authUrl?: InputMaybe<Scalars['String']['input']>;
1330
1427
  authenticatePhase?: InputMaybe<AuthenticatePhase>;
1331
1428
  brandKitId?: InputMaybe<Scalars['ID']['input']>;
1332
1429
  dailyTickets?: InputMaybe<Scalars['Int']['input']>;
@@ -1416,6 +1513,12 @@ export type UpdateMissionInput = {
1416
1513
  sequentialLimit?: InputMaybe<Scalars['Int']['input']>;
1417
1514
  triggerValue?: InputMaybe<Scalars['Int']['input']>;
1418
1515
  };
1516
+ export type UpdateNomineeInput = {
1517
+ id: Scalars['ID']['input'];
1518
+ name?: InputMaybe<Scalars['String']['input']>;
1519
+ parameters?: InputMaybe<Scalars['JSON']['input']>;
1520
+ thumbnail?: InputMaybe<Scalars['Upload']['input']>;
1521
+ };
1419
1522
  export type UpdateParticipantInfoInput = {
1420
1523
  address?: InputMaybe<Scalars['String']['input']>;
1421
1524
  avatar?: InputMaybe<Scalars['String']['input']>;
@@ -1460,7 +1563,7 @@ export type User = {
1460
1563
  avatarLink?: Maybe<Scalars['String']['output']>;
1461
1564
  createdAt: Scalars['Time']['output'];
1462
1565
  createdBy?: Maybe<User>;
1463
- displayName?: Maybe<Scalars['String']['output']>;
1566
+ displayName: Scalars['String']['output'];
1464
1567
  id: Scalars['ID']['output'];
1465
1568
  privateInfo: UserPrivateInfo;
1466
1569
  username: Scalars['String']['output'];
@@ -1503,7 +1606,7 @@ export type StartAppSessionMutationVariables = Exact<{
1503
1606
  campaignId: Scalars['ID']['input'];
1504
1607
  externalUserId?: InputMaybe<Scalars['String']['input']>;
1505
1608
  checksum?: InputMaybe<Scalars['String']['input']>;
1506
- requestedAt?: InputMaybe<Scalars['String']['input']>;
1609
+ requestedAt: Scalars['Timestamp']['input'];
1507
1610
  parameters: Scalars['JSON']['input'];
1508
1611
  authenticateRequestId?: InputMaybe<Scalars['ID']['input']>;
1509
1612
  authenticateRequestPassword?: InputMaybe<Scalars['String']['input']>;
@@ -1,18 +1,18 @@
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.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.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.UpdateGame = "UPDATE_GAME", e.UpdateGamePrize = "UPDATE_GAME_PRIZE", e.UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT", e.UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG", e.UpdateMission = "UPDATE_MISSION", e.UpdatePrize = "UPDATE_PRIZE", e.UpdateRole = "UPDATE_ROLE", e.UpdateTicketCode = "UPDATE_TICKET_CODE", e.UpdateTrigger = "UPDATE_TRIGGER", e))(l || {}), k = /* @__PURE__ */ ((e) => (e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(k || {}), r = /* @__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))(r || {}), _ = /* @__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))(_ || {}), m = /* @__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))(m || {});
2
- const N = { 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" } } }], 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" } } }] } }], 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" } }] } }] } }] } }] }, 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: "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" } } } }, { 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" } }] } }] } }] }, u = { 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.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.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.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(k || {}), _ = /* @__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))(_ || {}), 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 || {}), m = /* @__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))(m || {});
2
+ const r = { 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" } } }], 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" } } }] } }], 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" } }] } }] } }] } }] }, 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" } }] } }] } }] }, u = { 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,
6
6
  i as GameCategory,
7
7
  t as GameScreenType,
8
8
  d as Gender,
9
- N as GetCampaignDocument,
9
+ r as GetCampaignDocument,
10
10
  E as MissionRecurrence,
11
11
  l as PermissionType,
12
12
  k as PrizeType,
13
- r as RedirectType,
13
+ _ as RedirectType,
14
14
  A as StartAppSessionDocument,
15
- _ as SystemEventLevel,
15
+ N as SystemEventLevel,
16
16
  m as TicketSource,
17
17
  u as UpdateParticipantInfoDocument
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promogame-player",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",