promogame-player 0.0.32 → 0.0.33
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.
|
@@ -4,7 +4,7 @@ export interface PromogamePlayerProps extends React.RefAttributes<PromogamePlaye
|
|
|
4
4
|
apiUrl: string;
|
|
5
5
|
authenticateRequestId?: string;
|
|
6
6
|
authenticateRequestPassword?: string;
|
|
7
|
-
campaignId
|
|
7
|
+
campaignId?: string;
|
|
8
8
|
checksum?: string;
|
|
9
9
|
externalUserId?: string;
|
|
10
10
|
requestedAt?: string;
|
|
@@ -7296,8 +7296,9 @@ function Ru(t) {
|
|
|
7296
7296
|
});
|
|
7297
7297
|
}
|
|
7298
7298
|
const Cu = lr(`
|
|
7299
|
-
query GetCampaign($id: String
|
|
7299
|
+
query GetCampaign($id: String, $zaloAppId: String) {
|
|
7300
7300
|
getCampaign(id: $id, zaloAppId: $zaloAppId) {
|
|
7301
|
+
id
|
|
7301
7302
|
game {
|
|
7302
7303
|
id
|
|
7303
7304
|
gameLink
|
|
@@ -7382,13 +7383,13 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7382
7383
|
});
|
|
7383
7384
|
}, [r]), { data: _, error: E } = gu(Cu, {
|
|
7384
7385
|
client: b,
|
|
7385
|
-
variables: { id: e
|
|
7386
|
+
variables: { id: e, zaloAppId: window == null ? void 0 : window.APP_ID },
|
|
7386
7387
|
skip: !(e || window != null && window.APP_ID)
|
|
7387
7388
|
}), [w, O] = qr.useState(!v), [D] = $n(Mu, { client: b }), [k] = $n(Pu, { client: b });
|
|
7388
7389
|
Vr(() => {
|
|
7389
7390
|
window != null && window.APP_ID && (window.ZaloMiniAppSDK = d);
|
|
7390
7391
|
}, [d]), Vr(() => {
|
|
7391
|
-
(async () => {
|
|
7392
|
+
v && (async () => {
|
|
7392
7393
|
var J, j, U;
|
|
7393
7394
|
if (!w && window)
|
|
7394
7395
|
try {
|
|
@@ -7422,6 +7423,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7422
7423
|
}
|
|
7423
7424
|
})();
|
|
7424
7425
|
}, [
|
|
7426
|
+
v,
|
|
7425
7427
|
e,
|
|
7426
7428
|
n,
|
|
7427
7429
|
i,
|
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: String
|
|
15
|
+
"\n query GetCampaign($id: String, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n id\n game {\n id\n gameLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
|
|
16
16
|
"\n mutation StartAppSession(\n $campaignId: String!\n $externalUserId: String\n $checksum: String\n $requestedAt: String\n $parameters: JSON!\n $authenticateRequestId: String\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: String
|
|
36
|
+
export declare function graphql(source: "\n query GetCampaign($id: String, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n id\n game {\n id\n gameLink\n }\n }\n }\n"): (typeof documents)["\n query GetCampaign($id: String, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n id\n game {\n id\n gameLink\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 t, StartAppSessionDocument as e, GetCampaignDocument as a } from "./graphql.js";
|
|
2
2
|
const i = {
|
|
3
|
-
"\n query GetCampaign($id: String
|
|
3
|
+
"\n query GetCampaign($id: String, $zaloAppId: String) {\n getCampaign(id: $id, zaloAppId: $zaloAppId) {\n id\n game {\n id\n gameLink\n }\n }\n }\n": a,
|
|
4
4
|
"\n mutation StartAppSession(\n $campaignId: String!\n $externalUserId: String\n $checksum: String\n $requestedAt: String\n $parameters: JSON!\n $authenticateRequestId: String\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": e,
|
|
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": t
|
|
6
6
|
};
|
package/dist/gql/graphql.d.ts
CHANGED
|
@@ -95,9 +95,19 @@ export declare enum AuthenticatePhase {
|
|
|
95
95
|
AuthenticatePhaseAfterPlay = "AUTHENTICATE_PHASE_AFTER_PLAY",
|
|
96
96
|
AuthenticatePhaseBeforePlay = "AUTHENTICATE_PHASE_BEFORE_PLAY",
|
|
97
97
|
AuthenticatePhaseNoAuthenticate = "AUTHENTICATE_PHASE_NO_AUTHENTICATE",
|
|
98
|
-
AuthenticatePhaseOther = "AUTHENTICATE_PHASE_OTHER"
|
|
99
|
-
Unrecognized = "UNRECOGNIZED"
|
|
98
|
+
AuthenticatePhaseOther = "AUTHENTICATE_PHASE_OTHER"
|
|
100
99
|
}
|
|
100
|
+
export type BatchCreateTicketCodeInput = {
|
|
101
|
+
activateOnCreation?: InputMaybe<Scalars['Boolean']['input']>;
|
|
102
|
+
campaignId: Scalars['String']['input'];
|
|
103
|
+
charset: Scalars['String']['input'];
|
|
104
|
+
numberOfCodes: Scalars['Int']['input'];
|
|
105
|
+
numberOfTicketsPerCode: Scalars['Int']['input'];
|
|
106
|
+
parameters?: InputMaybe<Scalars['JSON']['input']>;
|
|
107
|
+
prefix: Scalars['String']['input'];
|
|
108
|
+
randomLength: Scalars['Int']['input'];
|
|
109
|
+
suffix: Scalars['String']['input'];
|
|
110
|
+
};
|
|
101
111
|
export type BitrixContactPoint = ContactPoint & {
|
|
102
112
|
__typename?: 'BitrixContactPoint';
|
|
103
113
|
bitrixDialogId: Scalars['String']['output'];
|
|
@@ -113,6 +123,9 @@ export type Brand = {
|
|
|
113
123
|
pangoOrgId?: Maybe<Scalars['String']['output']>;
|
|
114
124
|
zaloOaId?: Maybe<Scalars['String']['output']>;
|
|
115
125
|
};
|
|
126
|
+
export type BrandFilter = {
|
|
127
|
+
keyword?: InputMaybe<Scalars['String']['input']>;
|
|
128
|
+
};
|
|
116
129
|
export type BrandKit = {
|
|
117
130
|
__typename?: 'BrandKit';
|
|
118
131
|
firstColor?: Maybe<Scalars['String']['output']>;
|
|
@@ -157,12 +170,11 @@ export type Campaign = {
|
|
|
157
170
|
id: Scalars['String']['output'];
|
|
158
171
|
ingestEventUrl?: Maybe<Scalars['String']['output']>;
|
|
159
172
|
initialTickets: Scalars['Int']['output'];
|
|
173
|
+
/** @deprecated This field will be removed in the next version */
|
|
160
174
|
isJoinPrizesAvailable: Scalars['Boolean']['output'];
|
|
161
175
|
leaderboardEnable: Scalars['Boolean']['output'];
|
|
162
|
-
maximumConcurrentSessions?: Maybe<Scalars['Int']['output']>;
|
|
163
176
|
minimumGamePrize?: Maybe<Scalars['Int']['output']>;
|
|
164
177
|
missions?: Maybe<Array<Mission>>;
|
|
165
|
-
myParticipantInventories?: Maybe<Array<ParticipantInventory>>;
|
|
166
178
|
myParticipationInfo?: Maybe<Participant>;
|
|
167
179
|
name: Scalars['String']['output'];
|
|
168
180
|
news?: Maybe<Scalars['String']['output']>;
|
|
@@ -198,7 +210,7 @@ export type CampaignPaginationList = PaginationList & {
|
|
|
198
210
|
};
|
|
199
211
|
export type CampaignSecuredParameters = {
|
|
200
212
|
__typename?: 'CampaignSecuredParameters';
|
|
201
|
-
checksum
|
|
213
|
+
checksum: Scalars['String']['output'];
|
|
202
214
|
parameters: Scalars['JSON']['output'];
|
|
203
215
|
};
|
|
204
216
|
export type ClaimExternalMissionInput = {
|
|
@@ -212,19 +224,9 @@ export type ClaimExternalMissionInput = {
|
|
|
212
224
|
export type ClaimGamePrizeInput = {
|
|
213
225
|
gameSessionId: Scalars['String']['input'];
|
|
214
226
|
};
|
|
215
|
-
export type ClaimGiftZoneMissionInput = {
|
|
216
|
-
checksum: Scalars['String']['input'];
|
|
217
|
-
giftZoneMissionResult: Scalars['JSON']['input'];
|
|
218
|
-
missionId: Scalars['String']['input'];
|
|
219
|
-
};
|
|
220
227
|
export type ClaimMissionInput = {
|
|
221
228
|
missionId: Scalars['String']['input'];
|
|
222
229
|
};
|
|
223
|
-
export type CollectGameItemInput = {
|
|
224
|
-
campaignId: Scalars['String']['input'];
|
|
225
|
-
itemId: Scalars['String']['input'];
|
|
226
|
-
quantity: Scalars['Int']['input'];
|
|
227
|
-
};
|
|
228
230
|
export type ContactPoint = {
|
|
229
231
|
id: Scalars['String']['output'];
|
|
230
232
|
};
|
|
@@ -316,7 +318,6 @@ export type CreateGamePrizeKitInput = {
|
|
|
316
318
|
};
|
|
317
319
|
export type CreateMissionInput = {
|
|
318
320
|
active: Scalars['Boolean']['input'];
|
|
319
|
-
avatar?: InputMaybe<GraphQlFile>;
|
|
320
321
|
campaignId: Scalars['String']['input'];
|
|
321
322
|
congratulationsFormat?: InputMaybe<Scalars['String']['input']>;
|
|
322
323
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -348,6 +349,12 @@ export type CreateRoleInput = {
|
|
|
348
349
|
name: Scalars['String']['input'];
|
|
349
350
|
permissions: Array<Permission>;
|
|
350
351
|
};
|
|
352
|
+
export type CreateTicketCodeInput = {
|
|
353
|
+
campaignId: Scalars['String']['input'];
|
|
354
|
+
code: Scalars['String']['input'];
|
|
355
|
+
numberOfTickets: Scalars['Int']['input'];
|
|
356
|
+
parameters?: InputMaybe<Scalars['JSON']['input']>;
|
|
357
|
+
};
|
|
351
358
|
export type CreateTriggerInput = {
|
|
352
359
|
gameId?: InputMaybe<Scalars['String']['input']>;
|
|
353
360
|
id: Scalars['String']['input'];
|
|
@@ -357,8 +364,7 @@ export type CreateTriggerInput = {
|
|
|
357
364
|
export declare enum DatabaseAction {
|
|
358
365
|
DatabaseActionDelete = "DATABASE_ACTION_DELETE",
|
|
359
366
|
DatabaseActionInsert = "DATABASE_ACTION_INSERT",
|
|
360
|
-
DatabaseActionUpdate = "DATABASE_ACTION_UPDATE"
|
|
361
|
-
Unrecognized = "UNRECOGNIZED"
|
|
367
|
+
DatabaseActionUpdate = "DATABASE_ACTION_UPDATE"
|
|
362
368
|
}
|
|
363
369
|
export type DeleteGamePrizeInput = {
|
|
364
370
|
id: Scalars['String']['input'];
|
|
@@ -369,6 +375,10 @@ export type DeleteGamePrizeKitInput = {
|
|
|
369
375
|
export type DeleteMissionInput = {
|
|
370
376
|
id: Scalars['String']['input'];
|
|
371
377
|
};
|
|
378
|
+
export type DeprecatedPaginationInput = {
|
|
379
|
+
count: Scalars['Int']['input'];
|
|
380
|
+
start: Scalars['Int']['input'];
|
|
381
|
+
};
|
|
372
382
|
export type EndGameSessionInput = {
|
|
373
383
|
checksum?: InputMaybe<Scalars['String']['input']>;
|
|
374
384
|
forfeitGamePrize?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -405,25 +415,18 @@ export type Game = {
|
|
|
405
415
|
};
|
|
406
416
|
export declare enum GameCategory {
|
|
407
417
|
GameCategoryLuck = "GAME_CATEGORY_LUCK",
|
|
408
|
-
|
|
409
|
-
|
|
418
|
+
GameCategoryQuiz = "GAME_CATEGORY_QUIZ",
|
|
419
|
+
GameCategorySkill = "GAME_CATEGORY_SKILL"
|
|
410
420
|
}
|
|
411
421
|
export type GameEvent = {
|
|
412
422
|
__typename?: 'GameEvent';
|
|
413
|
-
appSessionId: Scalars['String']['output'];
|
|
414
423
|
key: Scalars['String']['output'];
|
|
415
424
|
params: Scalars['JSON']['output'];
|
|
416
425
|
};
|
|
417
|
-
export type GameItem = {
|
|
418
|
-
__typename?: 'GameItem';
|
|
419
|
-
id: Scalars['String']['output'];
|
|
420
|
-
name: Scalars['String']['output'];
|
|
421
|
-
};
|
|
422
426
|
export type GamePrize = {
|
|
423
427
|
__typename?: 'GamePrize';
|
|
424
428
|
dailyClaimLimit?: Maybe<Scalars['Int']['output']>;
|
|
425
429
|
id: Scalars['String']['output'];
|
|
426
|
-
issuedToday?: Maybe<Scalars['Int']['output']>;
|
|
427
430
|
prize: Prize;
|
|
428
431
|
rate: Scalars['Float']['output'];
|
|
429
432
|
status: GetGamePrizeStatus;
|
|
@@ -450,8 +453,7 @@ export type GamePrizePaginationListResponse = PaginationList & {
|
|
|
450
453
|
};
|
|
451
454
|
export declare enum GameScreenType {
|
|
452
455
|
GameScreenTypeLandscape = "GAME_SCREEN_TYPE_LANDSCAPE",
|
|
453
|
-
GameScreenTypePortrait = "GAME_SCREEN_TYPE_PORTRAIT"
|
|
454
|
-
Unrecognized = "UNRECOGNIZED"
|
|
456
|
+
GameScreenTypePortrait = "GAME_SCREEN_TYPE_PORTRAIT"
|
|
455
457
|
}
|
|
456
458
|
export type GameSession = {
|
|
457
459
|
__typename?: 'GameSession';
|
|
@@ -468,11 +470,11 @@ export type GameSession = {
|
|
|
468
470
|
export declare enum Gender {
|
|
469
471
|
GenderFemale = "GENDER_FEMALE",
|
|
470
472
|
GenderMale = "GENDER_MALE",
|
|
471
|
-
GenderOther = "GENDER_OTHER"
|
|
472
|
-
Unrecognized = "UNRECOGNIZED"
|
|
473
|
+
GenderOther = "GENDER_OTHER"
|
|
473
474
|
}
|
|
474
475
|
export type GetAllCampaignsInput = {
|
|
475
476
|
brandId?: InputMaybe<Scalars['String']['input']>;
|
|
477
|
+
keyword?: InputMaybe<Scalars['String']['input']>;
|
|
476
478
|
};
|
|
477
479
|
export type GetAllGamePrizeKitsInput = {
|
|
478
480
|
campaignId: Scalars['String']['input'];
|
|
@@ -525,11 +527,11 @@ export type Leaderboard = {
|
|
|
525
527
|
id: Scalars['String']['output'];
|
|
526
528
|
leaderboardParticipants: Array<LeaderboardParticipant>;
|
|
527
529
|
myLeaderboardParticipant?: Maybe<LeaderboardParticipant>;
|
|
528
|
-
startTime
|
|
530
|
+
startTime?: Maybe<Scalars['DateTime']['output']>;
|
|
529
531
|
};
|
|
530
532
|
export type LeaderboardConfig = {
|
|
531
533
|
__typename?: 'LeaderboardConfig';
|
|
532
|
-
condition:
|
|
534
|
+
condition: Scalars['JSON']['output'];
|
|
533
535
|
getLeaderboards: LeaderboardPaginationList;
|
|
534
536
|
id: Scalars['String']['output'];
|
|
535
537
|
interval?: Maybe<LeaderboardInterval>;
|
|
@@ -546,8 +548,7 @@ export declare enum LeaderboardInterval {
|
|
|
546
548
|
LeaderboardIntervalHour = "LEADERBOARD_INTERVAL_HOUR",
|
|
547
549
|
LeaderboardIntervalMinute = "LEADERBOARD_INTERVAL_MINUTE",
|
|
548
550
|
LeaderboardIntervalMonth = "LEADERBOARD_INTERVAL_MONTH",
|
|
549
|
-
LeaderboardIntervalOnce = "LEADERBOARD_INTERVAL_ONCE"
|
|
550
|
-
Unrecognized = "UNRECOGNIZED"
|
|
551
|
+
LeaderboardIntervalOnce = "LEADERBOARD_INTERVAL_ONCE"
|
|
551
552
|
}
|
|
552
553
|
export type LeaderboardPaginationList = PaginationList & {
|
|
553
554
|
__typename?: 'LeaderboardPaginationList';
|
|
@@ -586,6 +587,7 @@ export type LoginDetails = {
|
|
|
586
587
|
__typename?: 'LoginDetails';
|
|
587
588
|
accessToken: Scalars['String']['output'];
|
|
588
589
|
refreshToken: Scalars['String']['output'];
|
|
590
|
+
user: UserResponse;
|
|
589
591
|
};
|
|
590
592
|
export type LoginInput = {
|
|
591
593
|
password: Scalars['String']['input'];
|
|
@@ -605,10 +607,10 @@ export type MetricEvent = SystemEvent & {
|
|
|
605
607
|
export type Mission = {
|
|
606
608
|
__typename?: 'Mission';
|
|
607
609
|
active: Scalars['Boolean']['output'];
|
|
608
|
-
avatarLink?: Maybe<Scalars['String']['output']>;
|
|
609
610
|
claimed: Scalars['Boolean']['output'];
|
|
610
611
|
congratulationsFormat?: Maybe<Scalars['String']['output']>;
|
|
611
612
|
externalMissionId?: Maybe<Scalars['String']['output']>;
|
|
613
|
+
/** @deprecated This field will be removed in the next version */
|
|
612
614
|
giftZoneRedirectLink?: Maybe<Scalars['String']['output']>;
|
|
613
615
|
id: Scalars['String']['output'];
|
|
614
616
|
initialTriggerValue: Scalars['Int']['output'];
|
|
@@ -620,7 +622,7 @@ export type Mission = {
|
|
|
620
622
|
progress: Scalars['Float']['output'];
|
|
621
623
|
recurrence: MissionRecurrence;
|
|
622
624
|
redirectLink?: Maybe<Scalars['String']['output']>;
|
|
623
|
-
sequentialLimit
|
|
625
|
+
sequentialLimit?: Maybe<Scalars['Int']['output']>;
|
|
624
626
|
/** @deprecated This field will be removed in the next version */
|
|
625
627
|
sequentialLimitReached: Scalars['Boolean']['output'];
|
|
626
628
|
totalClaimed: Scalars['Int']['output'];
|
|
@@ -636,18 +638,18 @@ export type MissionProgress = {
|
|
|
636
638
|
};
|
|
637
639
|
export declare enum MissionRecurrence {
|
|
638
640
|
MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY",
|
|
639
|
-
MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE"
|
|
640
|
-
Unrecognized = "UNRECOGNIZED"
|
|
641
|
+
MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE"
|
|
641
642
|
}
|
|
642
643
|
export type Mutation = {
|
|
643
644
|
__typename?: 'Mutation';
|
|
645
|
+
activateTicketCode: TicketCode;
|
|
644
646
|
addBitrixContactPoint: ContactPoint;
|
|
645
647
|
assignRole: Scalars['Boolean']['output'];
|
|
648
|
+
batchCreateTicketCode: Scalars['Int']['output'];
|
|
646
649
|
claimExternalMission: Prize;
|
|
647
650
|
claimGamePrize?: Maybe<GamePrize>;
|
|
648
|
-
claimGiftZoneMission: Prize;
|
|
649
651
|
claimMission: Prize;
|
|
650
|
-
|
|
652
|
+
claimTicketCode: Array<Ticket>;
|
|
651
653
|
createBrand: Brand;
|
|
652
654
|
createBrandKit: BrandKit;
|
|
653
655
|
createCampaign: Campaign;
|
|
@@ -657,10 +659,12 @@ export type Mutation = {
|
|
|
657
659
|
createMission: Mission;
|
|
658
660
|
createPrize: Prize;
|
|
659
661
|
createRole: Role;
|
|
662
|
+
createTicketCode: TicketCode;
|
|
660
663
|
createTrigger: Trigger;
|
|
661
664
|
deleteGamePrize: Scalars['Boolean']['output'];
|
|
662
665
|
deleteGamePrizeKit: Scalars['Boolean']['output'];
|
|
663
666
|
deleteMission: Scalars['Boolean']['output'];
|
|
667
|
+
disableTicketCode: TicketCode;
|
|
664
668
|
endGameSession: GameSession;
|
|
665
669
|
forfeitGamePrize: GameSession;
|
|
666
670
|
lockParticipant: Scalars['Boolean']['output'];
|
|
@@ -696,28 +700,32 @@ export type Mutation = {
|
|
|
696
700
|
updateParticipantInfo: Participant;
|
|
697
701
|
updatePrize: Prize;
|
|
698
702
|
updateRole: Role;
|
|
703
|
+
updateTicketCode: TicketCode;
|
|
699
704
|
updateTrigger: Trigger;
|
|
700
705
|
};
|
|
706
|
+
export type MutationActivateTicketCodeArgs = {
|
|
707
|
+
id: Scalars['String']['input'];
|
|
708
|
+
};
|
|
701
709
|
export type MutationAddBitrixContactPointArgs = {
|
|
702
710
|
input: AddBitrixContactPointInput;
|
|
703
711
|
};
|
|
704
712
|
export type MutationAssignRoleArgs = {
|
|
705
713
|
input: AssignRoleInput;
|
|
706
714
|
};
|
|
715
|
+
export type MutationBatchCreateTicketCodeArgs = {
|
|
716
|
+
input: BatchCreateTicketCodeInput;
|
|
717
|
+
};
|
|
707
718
|
export type MutationClaimExternalMissionArgs = {
|
|
708
719
|
input: ClaimExternalMissionInput;
|
|
709
720
|
};
|
|
710
721
|
export type MutationClaimGamePrizeArgs = {
|
|
711
722
|
input: ClaimGamePrizeInput;
|
|
712
723
|
};
|
|
713
|
-
export type MutationClaimGiftZoneMissionArgs = {
|
|
714
|
-
input: ClaimGiftZoneMissionInput;
|
|
715
|
-
};
|
|
716
724
|
export type MutationClaimMissionArgs = {
|
|
717
725
|
input: ClaimMissionInput;
|
|
718
726
|
};
|
|
719
|
-
export type
|
|
720
|
-
|
|
727
|
+
export type MutationClaimTicketCodeArgs = {
|
|
728
|
+
code: Scalars['String']['input'];
|
|
721
729
|
};
|
|
722
730
|
export type MutationCreateBrandArgs = {
|
|
723
731
|
input: CreateBrandInput;
|
|
@@ -746,6 +754,9 @@ export type MutationCreatePrizeArgs = {
|
|
|
746
754
|
export type MutationCreateRoleArgs = {
|
|
747
755
|
input: CreateRoleInput;
|
|
748
756
|
};
|
|
757
|
+
export type MutationCreateTicketCodeArgs = {
|
|
758
|
+
input: CreateTicketCodeInput;
|
|
759
|
+
};
|
|
749
760
|
export type MutationCreateTriggerArgs = {
|
|
750
761
|
input: CreateTriggerInput;
|
|
751
762
|
};
|
|
@@ -758,6 +769,9 @@ export type MutationDeleteGamePrizeKitArgs = {
|
|
|
758
769
|
export type MutationDeleteMissionArgs = {
|
|
759
770
|
input: DeleteMissionInput;
|
|
760
771
|
};
|
|
772
|
+
export type MutationDisableTicketCodeArgs = {
|
|
773
|
+
id: Scalars['String']['input'];
|
|
774
|
+
};
|
|
761
775
|
export type MutationEndGameSessionArgs = {
|
|
762
776
|
input: EndGameSessionInput;
|
|
763
777
|
};
|
|
@@ -857,15 +871,12 @@ export type MutationUpdatePrizeArgs = {
|
|
|
857
871
|
export type MutationUpdateRoleArgs = {
|
|
858
872
|
input: UpdateRoleInput;
|
|
859
873
|
};
|
|
874
|
+
export type MutationUpdateTicketCodeArgs = {
|
|
875
|
+
input: UpdateTicketCodeInput;
|
|
876
|
+
};
|
|
860
877
|
export type MutationUpdateTriggerArgs = {
|
|
861
878
|
input: UpdateTriggerInput;
|
|
862
879
|
};
|
|
863
|
-
export type MyPermissions = {
|
|
864
|
-
__typename?: 'MyPermissions';
|
|
865
|
-
brandId?: Maybe<Scalars['String']['output']>;
|
|
866
|
-
campaignId?: Maybe<Scalars['String']['output']>;
|
|
867
|
-
permission: Permission;
|
|
868
|
-
};
|
|
869
880
|
export type PaginationInput = {
|
|
870
881
|
count: Scalars['Int']['input'];
|
|
871
882
|
start: Scalars['Int']['input'];
|
|
@@ -877,6 +888,7 @@ export type PaginationList = {
|
|
|
877
888
|
};
|
|
878
889
|
export type Participant = {
|
|
879
890
|
__typename?: 'Participant';
|
|
891
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
880
892
|
avatarLink?: Maybe<Scalars['String']['output']>;
|
|
881
893
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
882
894
|
firstName?: Maybe<Scalars['String']['output']>;
|
|
@@ -893,12 +905,6 @@ export type Participant = {
|
|
|
893
905
|
privateParticipantInfo: PrivateParticipantInfo;
|
|
894
906
|
totalScore: Scalars['Int']['output'];
|
|
895
907
|
};
|
|
896
|
-
export type ParticipantInventory = {
|
|
897
|
-
__typename?: 'ParticipantInventory';
|
|
898
|
-
id: Scalars['String']['output'];
|
|
899
|
-
item: Array<GameItem>;
|
|
900
|
-
quantity: Scalars['Int']['output'];
|
|
901
|
-
};
|
|
902
908
|
export type ParticipantPaginationList = PaginationList & {
|
|
903
909
|
__typename?: 'ParticipantPaginationList';
|
|
904
910
|
count: Scalars['Int']['output'];
|
|
@@ -907,18 +913,22 @@ export type ParticipantPaginationList = PaginationList & {
|
|
|
907
913
|
total: Scalars['Int']['output'];
|
|
908
914
|
};
|
|
909
915
|
export declare enum Permission {
|
|
916
|
+
ActivateTicketCode = "ACTIVATE_TICKET_CODE",
|
|
910
917
|
CreateBrand = "CREATE_BRAND",
|
|
911
918
|
CreateBrandKit = "CREATE_BRAND_KIT",
|
|
912
919
|
CreateCampaign = "CREATE_CAMPAIGN",
|
|
913
920
|
CreateGame = "CREATE_GAME",
|
|
914
921
|
CreateGamePrize = "CREATE_GAME_PRIZE",
|
|
915
922
|
CreateGamePrizeKit = "CREATE_GAME_PRIZE_KIT",
|
|
923
|
+
CreateLeaderboardConfig = "CREATE_LEADERBOARD_CONFIG",
|
|
916
924
|
CreateMission = "CREATE_MISSION",
|
|
917
925
|
CreatePrize = "CREATE_PRIZE",
|
|
918
926
|
CreateRole = "CREATE_ROLE",
|
|
927
|
+
CreateTicketCode = "CREATE_TICKET_CODE",
|
|
919
928
|
CreateTrigger = "CREATE_TRIGGER",
|
|
920
929
|
DeleteGamePrize = "DELETE_GAME_PRIZE",
|
|
921
930
|
DeleteGamePrizeKit = "DELETE_GAME_PRIZE_KIT",
|
|
931
|
+
DeleteLeaderboardConfig = "DELETE_LEADERBOARD_CONFIG",
|
|
922
932
|
DeleteMission = "DELETE_MISSION",
|
|
923
933
|
GetBrands = "GET_BRANDS",
|
|
924
934
|
GetBrandKits = "GET_BRAND_KITS",
|
|
@@ -927,6 +937,8 @@ export declare enum Permission {
|
|
|
927
937
|
GetGames = "GET_GAMES",
|
|
928
938
|
GetGameEvents = "GET_GAME_EVENTS",
|
|
929
939
|
GetGamePrizeKits = "GET_GAME_PRIZE_KITS",
|
|
940
|
+
GetLeaderboards = "GET_LEADERBOARDS",
|
|
941
|
+
GetLeaderboardConfigs = "GET_LEADERBOARD_CONFIGS",
|
|
930
942
|
GetParticipants = "GET_PARTICIPANTS",
|
|
931
943
|
GetPermissionsByRole = "GET_PERMISSIONS_BY_ROLE",
|
|
932
944
|
GetPrivateGames = "GET_PRIVATE_GAMES",
|
|
@@ -935,11 +947,11 @@ export declare enum Permission {
|
|
|
935
947
|
GetPrizeHistories = "GET_PRIZE_HISTORIES",
|
|
936
948
|
GetRoles = "GET_ROLES",
|
|
937
949
|
GetSystemEvents = "GET_SYSTEM_EVENTS",
|
|
950
|
+
GetTicketCodes = "GET_TICKET_CODES",
|
|
938
951
|
GetTriggers = "GET_TRIGGERS",
|
|
939
952
|
LockParticipant = "LOCK_PARTICIPANT",
|
|
940
953
|
SetUserRoles = "SET_USER_ROLES",
|
|
941
954
|
SubscribeEvents = "SUBSCRIBE_EVENTS",
|
|
942
|
-
Unrecognized = "UNRECOGNIZED",
|
|
943
955
|
UpdateBrand = "UPDATE_BRAND",
|
|
944
956
|
UpdateBrandKit = "UPDATE_BRAND_KIT",
|
|
945
957
|
UpdateCampaign = "UPDATE_CAMPAIGN",
|
|
@@ -947,9 +959,11 @@ export declare enum Permission {
|
|
|
947
959
|
UpdateGame = "UPDATE_GAME",
|
|
948
960
|
UpdateGamePrize = "UPDATE_GAME_PRIZE",
|
|
949
961
|
UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT",
|
|
962
|
+
UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG",
|
|
950
963
|
UpdateMission = "UPDATE_MISSION",
|
|
951
964
|
UpdatePrize = "UPDATE_PRIZE",
|
|
952
965
|
UpdateRole = "UPDATE_ROLE",
|
|
966
|
+
UpdateTicketCode = "UPDATE_TICKET_CODE",
|
|
953
967
|
UpdateTrigger = "UPDATE_TRIGGER"
|
|
954
968
|
}
|
|
955
969
|
export type Ping = {
|
|
@@ -971,13 +985,13 @@ export type PrivateUserInfo = {
|
|
|
971
985
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
972
986
|
email?: Maybe<Scalars['String']['output']>;
|
|
973
987
|
id: Scalars['String']['output'];
|
|
974
|
-
permissions
|
|
988
|
+
permissions: Array<UserPermissions>;
|
|
975
989
|
phone?: Maybe<Scalars['String']['output']>;
|
|
976
990
|
username: Scalars['String']['output'];
|
|
977
991
|
};
|
|
978
992
|
export type Prize = {
|
|
979
993
|
__typename?: 'Prize';
|
|
980
|
-
avatarLink
|
|
994
|
+
avatarLink: Scalars['String']['output'];
|
|
981
995
|
externalPrizeId?: Maybe<Scalars['String']['output']>;
|
|
982
996
|
id: Scalars['String']['output'];
|
|
983
997
|
name: Scalars['String']['output'];
|
|
@@ -1006,8 +1020,7 @@ export declare enum PrizeType {
|
|
|
1006
1020
|
PrizeTypeDigital = "PRIZE_TYPE_DIGITAL",
|
|
1007
1021
|
PrizeTypeIngame = "PRIZE_TYPE_INGAME",
|
|
1008
1022
|
PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL",
|
|
1009
|
-
PrizeTypeTicket = "PRIZE_TYPE_TICKET"
|
|
1010
|
-
Unrecognized = "UNRECOGNIZED"
|
|
1023
|
+
PrizeTypeTicket = "PRIZE_TYPE_TICKET"
|
|
1011
1024
|
}
|
|
1012
1025
|
export type Query = {
|
|
1013
1026
|
__typename?: 'Query';
|
|
@@ -1022,21 +1035,28 @@ export type Query = {
|
|
|
1022
1035
|
getAllPrizeKits: Array<GamePrizeKit>;
|
|
1023
1036
|
getAllPrizes: Array<Prize>;
|
|
1024
1037
|
getAllTriggers: Array<Trigger>;
|
|
1038
|
+
getAllUsers: Array<UserResponse>;
|
|
1025
1039
|
getAvailableTickets: Array<Ticket>;
|
|
1026
1040
|
getBrand: Brand;
|
|
1027
1041
|
getBrandKit: BrandKit;
|
|
1028
1042
|
getBrandKitsByBrand: Array<BrandKit>;
|
|
1043
|
+
getBrandRoles: Array<Role>;
|
|
1029
1044
|
getCampaign: Campaign;
|
|
1045
|
+
getCampaignRoles: Array<Role>;
|
|
1030
1046
|
getDefaultGamePrizeKit: GamePrizeKit;
|
|
1031
1047
|
getGame: Game;
|
|
1032
1048
|
getMyContactPoints: Array<ContactPoint>;
|
|
1033
1049
|
getMyPrizeHistory: PrizeHistoryPaginationList;
|
|
1050
|
+
getMyTicketCodes: TicketCodePaginationList;
|
|
1034
1051
|
getPrizeHistory: PrizeHistoryPaginationList;
|
|
1035
1052
|
getSystemEvents: SystemEventPaginationList;
|
|
1053
|
+
getSystemRoles: Array<Role>;
|
|
1054
|
+
getTicketCodes: TicketCodePaginationList;
|
|
1036
1055
|
getTrigger: Trigger;
|
|
1037
1056
|
me: PrivateUserInfo;
|
|
1038
1057
|
};
|
|
1039
1058
|
export type QueryGetAllBrandsArgs = {
|
|
1059
|
+
filter?: InputMaybe<BrandFilter>;
|
|
1040
1060
|
input: PaginationInput;
|
|
1041
1061
|
};
|
|
1042
1062
|
export type QueryGetAllCampaignsArgs = {
|
|
@@ -1045,7 +1065,6 @@ export type QueryGetAllCampaignsArgs = {
|
|
|
1045
1065
|
};
|
|
1046
1066
|
export type QueryGetAllGamePrizesArgs = {
|
|
1047
1067
|
campaignId: Scalars['String']['input'];
|
|
1048
|
-
input: PaginationInput;
|
|
1049
1068
|
};
|
|
1050
1069
|
export type QueryGetAllLeaderboardConfigsArgs = {
|
|
1051
1070
|
input: GetAllLeaderboardConfigsInput;
|
|
@@ -1076,12 +1095,18 @@ export type QueryGetBrandKitArgs = {
|
|
|
1076
1095
|
export type QueryGetBrandKitsByBrandArgs = {
|
|
1077
1096
|
input: GetBrandKitsByBrandInput;
|
|
1078
1097
|
};
|
|
1098
|
+
export type QueryGetBrandRolesArgs = {
|
|
1099
|
+
brandId: Scalars['String']['input'];
|
|
1100
|
+
};
|
|
1079
1101
|
export type QueryGetCampaignArgs = {
|
|
1080
1102
|
externalCampaignId?: InputMaybe<Scalars['String']['input']>;
|
|
1081
1103
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
1082
1104
|
pangoAppId?: InputMaybe<Scalars['String']['input']>;
|
|
1083
1105
|
zaloAppId?: InputMaybe<Scalars['String']['input']>;
|
|
1084
1106
|
};
|
|
1107
|
+
export type QueryGetCampaignRolesArgs = {
|
|
1108
|
+
campaignId: Scalars['String']['input'];
|
|
1109
|
+
};
|
|
1085
1110
|
export type QueryGetDefaultGamePrizeKitArgs = {
|
|
1086
1111
|
input: GetDefaultGamePrizeKitInput;
|
|
1087
1112
|
};
|
|
@@ -1091,6 +1116,9 @@ export type QueryGetGameArgs = {
|
|
|
1091
1116
|
export type QueryGetMyPrizeHistoryArgs = {
|
|
1092
1117
|
input: PaginationInput;
|
|
1093
1118
|
};
|
|
1119
|
+
export type QueryGetMyTicketCodesArgs = {
|
|
1120
|
+
pagination: PaginationInput;
|
|
1121
|
+
};
|
|
1094
1122
|
export type QueryGetPrizeHistoryArgs = {
|
|
1095
1123
|
campaignId: Scalars['String']['input'];
|
|
1096
1124
|
input: PaginationInput;
|
|
@@ -1099,6 +1127,10 @@ export type QueryGetSystemEventsArgs = {
|
|
|
1099
1127
|
filter?: InputMaybe<GetSystemEventsInput>;
|
|
1100
1128
|
input: PaginationInput;
|
|
1101
1129
|
};
|
|
1130
|
+
export type QueryGetTicketCodesArgs = {
|
|
1131
|
+
filter: TicketCodeFilter;
|
|
1132
|
+
pagination: PaginationInput;
|
|
1133
|
+
};
|
|
1102
1134
|
export type QueryGetTriggerArgs = {
|
|
1103
1135
|
id: Scalars['String']['input'];
|
|
1104
1136
|
};
|
|
@@ -1137,8 +1169,7 @@ export type SaveMissionProgressesInput = {
|
|
|
1137
1169
|
};
|
|
1138
1170
|
export declare enum SaveProgressType {
|
|
1139
1171
|
SaveProgressTypeLog = "SAVE_PROGRESS_TYPE_LOG",
|
|
1140
|
-
SaveProgressTypeSet = "SAVE_PROGRESS_TYPE_SET"
|
|
1141
|
-
Unrecognized = "UNRECOGNIZED"
|
|
1172
|
+
SaveProgressTypeSet = "SAVE_PROGRESS_TYPE_SET"
|
|
1142
1173
|
}
|
|
1143
1174
|
export type SessionCountFilter = {
|
|
1144
1175
|
max?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1219,8 +1250,7 @@ export declare enum SystemEventLevel {
|
|
|
1219
1250
|
SystemEventLevelCritical = "SYSTEM_EVENT_LEVEL_CRITICAL",
|
|
1220
1251
|
SystemEventLevelError = "SYSTEM_EVENT_LEVEL_ERROR",
|
|
1221
1252
|
SystemEventLevelInfo = "SYSTEM_EVENT_LEVEL_INFO",
|
|
1222
|
-
SystemEventLevelWarning = "SYSTEM_EVENT_LEVEL_WARNING"
|
|
1223
|
-
Unrecognized = "UNRECOGNIZED"
|
|
1253
|
+
SystemEventLevelWarning = "SYSTEM_EVENT_LEVEL_WARNING"
|
|
1224
1254
|
}
|
|
1225
1255
|
export type SystemEventPaginationList = PaginationList & {
|
|
1226
1256
|
__typename?: 'SystemEventPaginationList';
|
|
@@ -1232,18 +1262,48 @@ export type SystemEventPaginationList = PaginationList & {
|
|
|
1232
1262
|
export type Ticket = {
|
|
1233
1263
|
__typename?: 'Ticket';
|
|
1234
1264
|
expiredAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1265
|
+
gameSessions: Array<GameSession>;
|
|
1235
1266
|
id: Scalars['String']['output'];
|
|
1236
1267
|
parameters?: Maybe<Scalars['JSON']['output']>;
|
|
1237
1268
|
source: TicketSource;
|
|
1238
1269
|
};
|
|
1270
|
+
export type TicketCode = {
|
|
1271
|
+
__typename?: 'TicketCode';
|
|
1272
|
+
active: Scalars['Boolean']['output'];
|
|
1273
|
+
code: Scalars['String']['output'];
|
|
1274
|
+
id: Scalars['String']['output'];
|
|
1275
|
+
numberOfTickets: Scalars['Int']['output'];
|
|
1276
|
+
parameters: Scalars['JSON']['output'];
|
|
1277
|
+
tickets: Array<Ticket>;
|
|
1278
|
+
usedBy?: Maybe<TicketCodeOwner>;
|
|
1279
|
+
};
|
|
1280
|
+
export type TicketCodeFilter = {
|
|
1281
|
+
activated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1282
|
+
campaignId: Scalars['String']['input'];
|
|
1283
|
+
keyword?: InputMaybe<Scalars['String']['input']>;
|
|
1284
|
+
used?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1285
|
+
};
|
|
1286
|
+
export type TicketCodeOwner = {
|
|
1287
|
+
__typename?: 'TicketCodeOwner';
|
|
1288
|
+
displayName?: Maybe<Scalars['String']['output']>;
|
|
1289
|
+
id: Scalars['String']['output'];
|
|
1290
|
+
};
|
|
1291
|
+
export type TicketCodePaginationList = PaginationList & {
|
|
1292
|
+
__typename?: 'TicketCodePaginationList';
|
|
1293
|
+
activated: Scalars['Int']['output'];
|
|
1294
|
+
count: Scalars['Int']['output'];
|
|
1295
|
+
start: Scalars['Int']['output'];
|
|
1296
|
+
ticketCodes: Array<TicketCode>;
|
|
1297
|
+
total: Scalars['Int']['output'];
|
|
1298
|
+
used: Scalars['Int']['output'];
|
|
1299
|
+
};
|
|
1239
1300
|
export declare enum TicketSource {
|
|
1240
1301
|
TicketSourceDaily = "TICKET_SOURCE_DAILY",
|
|
1241
1302
|
TicketSourceForm = "TICKET_SOURCE_FORM",
|
|
1242
1303
|
TicketSourceGamePrize = "TICKET_SOURCE_GAME_PRIZE",
|
|
1243
1304
|
TicketSourceInitial = "TICKET_SOURCE_INITIAL",
|
|
1244
1305
|
TicketSourceMission = "TICKET_SOURCE_MISSION",
|
|
1245
|
-
TicketSourceTicketCode = "TICKET_SOURCE_TICKET_CODE"
|
|
1246
|
-
Unrecognized = "UNRECOGNIZED"
|
|
1306
|
+
TicketSourceTicketCode = "TICKET_SOURCE_TICKET_CODE"
|
|
1247
1307
|
}
|
|
1248
1308
|
export type Trigger = {
|
|
1249
1309
|
__typename?: 'Trigger';
|
|
@@ -1338,9 +1398,7 @@ export type UpdateGamePrizeKitInput = {
|
|
|
1338
1398
|
};
|
|
1339
1399
|
export type UpdateMissionInput = {
|
|
1340
1400
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1341
|
-
avatar?: InputMaybe<GraphQlFile>;
|
|
1342
1401
|
congratulationsFormat?: InputMaybe<Scalars['String']['input']>;
|
|
1343
|
-
description?: InputMaybe<Scalars['String']['input']>;
|
|
1344
1402
|
externalHashValue?: InputMaybe<Scalars['String']['input']>;
|
|
1345
1403
|
externalMissionId?: InputMaybe<Scalars['String']['input']>;
|
|
1346
1404
|
giftZoneAppId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1355,6 +1413,7 @@ export type UpdateMissionInput = {
|
|
|
1355
1413
|
triggerValue?: InputMaybe<Scalars['Int']['input']>;
|
|
1356
1414
|
};
|
|
1357
1415
|
export type UpdateParticipantInfoInput = {
|
|
1416
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
1358
1417
|
avatar?: InputMaybe<Scalars['String']['input']>;
|
|
1359
1418
|
campaignId?: InputMaybe<Scalars['String']['input']>;
|
|
1360
1419
|
displayName?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1380,25 +1439,50 @@ export type UpdateRoleInput = {
|
|
|
1380
1439
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1381
1440
|
permissions?: InputMaybe<Array<Permission>>;
|
|
1382
1441
|
};
|
|
1442
|
+
export type UpdateTicketCodeInput = {
|
|
1443
|
+
batchId?: InputMaybe<Scalars['String']['input']>;
|
|
1444
|
+
id: Scalars['String']['input'];
|
|
1445
|
+
numberOfTickets?: InputMaybe<Scalars['Int']['input']>;
|
|
1446
|
+
parameters?: InputMaybe<Scalars['JSON']['input']>;
|
|
1447
|
+
};
|
|
1383
1448
|
export type UpdateTriggerInput = {
|
|
1384
1449
|
gameId?: InputMaybe<Scalars['String']['input']>;
|
|
1385
1450
|
id: Scalars['String']['input'];
|
|
1386
1451
|
isClientSide?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1387
1452
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1388
1453
|
};
|
|
1454
|
+
export type UserCreatorDetails = {
|
|
1455
|
+
__typename?: 'UserCreatorDetails';
|
|
1456
|
+
id: Scalars['String']['output'];
|
|
1457
|
+
};
|
|
1458
|
+
export type UserPermissions = {
|
|
1459
|
+
__typename?: 'UserPermissions';
|
|
1460
|
+
brandId?: Maybe<Scalars['String']['output']>;
|
|
1461
|
+
campaignId?: Maybe<Scalars['String']['output']>;
|
|
1462
|
+
permission?: Maybe<Permission>;
|
|
1463
|
+
};
|
|
1464
|
+
export type UserResponse = {
|
|
1465
|
+
__typename?: 'UserResponse';
|
|
1466
|
+
avatarLink?: Maybe<Scalars['String']['output']>;
|
|
1467
|
+
createdBy?: Maybe<UserCreatorDetails>;
|
|
1468
|
+
displayName?: Maybe<Scalars['String']['output']>;
|
|
1469
|
+
id: Scalars['String']['output'];
|
|
1470
|
+
username: Scalars['String']['output'];
|
|
1471
|
+
};
|
|
1389
1472
|
export type WebPushContactPoint = ContactPoint & {
|
|
1390
1473
|
__typename?: 'WebPushContactPoint';
|
|
1391
1474
|
id: Scalars['String']['output'];
|
|
1392
1475
|
subscription: Scalars['JSON']['output'];
|
|
1393
1476
|
};
|
|
1394
1477
|
export type GetCampaignQueryVariables = Exact<{
|
|
1395
|
-
id
|
|
1478
|
+
id?: InputMaybe<Scalars['String']['input']>;
|
|
1396
1479
|
zaloAppId?: InputMaybe<Scalars['String']['input']>;
|
|
1397
1480
|
}>;
|
|
1398
1481
|
export type GetCampaignQuery = {
|
|
1399
1482
|
__typename?: 'Query';
|
|
1400
1483
|
getCampaign: {
|
|
1401
1484
|
__typename?: 'Campaign';
|
|
1485
|
+
id: string;
|
|
1402
1486
|
game: {
|
|
1403
1487
|
__typename?: 'Game';
|
|
1404
1488
|
id: string;
|
package/dist/gql/graphql.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
2
|
-
const
|
|
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 || {}), E = /* @__PURE__ */ ((e) => (e.GenderFemale = "GENDER_FEMALE", e.GenderMale = "GENDER_MALE", e.GenderOther = "GENDER_OTHER", e))(E || {}), d = /* @__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))(d || {}), l = /* @__PURE__ */ ((e) => (e.MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY", e.MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE", e))(l || {}), T = /* @__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))(T || {}), r = /* @__PURE__ */ ((e) => (e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(r || {}), k = /* @__PURE__ */ ((e) => (e.SaveProgressTypeLog = "SAVE_PROGRESS_TYPE_LOG", e.SaveProgressTypeSet = "SAVE_PROGRESS_TYPE_SET", e))(k || {}), _ = /* @__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))(_ || {}), A = /* @__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))(A || {});
|
|
2
|
+
const m = { 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: "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: "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" } }] } }] } }] } }] }, N = { 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: "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: "String" } } }, { 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
|
E as Gender,
|
|
9
|
-
|
|
9
|
+
m as GetCampaignDocument,
|
|
10
10
|
d as LeaderboardInterval,
|
|
11
11
|
l as MissionRecurrence,
|
|
12
|
-
|
|
12
|
+
T as Permission,
|
|
13
13
|
r as PrizeType,
|
|
14
14
|
k as SaveProgressType,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
N as StartAppSessionDocument,
|
|
16
|
+
_ as SystemEventLevel,
|
|
17
|
+
A as TicketSource,
|
|
18
18
|
u as UpdateParticipantInfoDocument
|
|
19
19
|
};
|