promogame-player 2.0.7 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PromogameGame/defold-game.js +12 -12
- package/dist/components/PromogameGame/index.d.ts +2 -1
- package/dist/components/PromogameGame/index.js +1607 -1537
- package/dist/dev.js +2 -1
- package/dist/gql/gql.d.ts +2 -2
- package/dist/gql/gql.js +3 -3
- package/dist/gql/graphql.d.ts +62 -4
- package/dist/gql/graphql.js +8 -8
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -27707,6 +27707,7 @@ function sE() {
|
|
|
27707
27707
|
return process.env.NODE_ENV === "production" ? (J(), Bv.exports = oE()) : Bv.exports = fE(), Bv.exports;
|
|
27708
27708
|
}
|
|
27709
27709
|
var rE = sE();
|
|
27710
|
+
console.log("DEV MODE");
|
|
27710
27711
|
rE.createRoot(document.getElementById("root")).render(
|
|
27711
|
-
/* @__PURE__ */ E2(lE, { children: /* @__PURE__ */ E2(aE, { apiUrl: "https://api.gaas.vn/graphql",
|
|
27712
|
+
/* @__PURE__ */ E2(lE, { children: /* @__PURE__ */ E2(aE, { apiUrl: "https://api.gaas.vn/graphql", ticketCode: "GAASTESTAAAAA" }) })
|
|
27712
27713
|
);
|
package/dist/gql/gql.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as types from './graphql';
|
|
|
12
12
|
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
|
|
13
13
|
*/
|
|
14
14
|
type Documents = {
|
|
15
|
-
"\n query GetCampaign($id: ID, $zaloAppId: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
|
|
15
|
+
"\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": typeof types.GetCampaignDocument;
|
|
16
16
|
"\n mutation StartAppSession(\n $campaignId: ID!\n $externalUserId: String\n $checksum: String\n $requestedAt: Timestamp!\n $parameters: JSON!\n $authenticateRequestId: ID\n $authenticateRequestPassword: String\n ) {\n startAppSession(\n input: {\n campaignId: $campaignId\n externalUserId: $externalUserId\n checksum: $checksum\n requestedAt: $requestedAt\n parameters: $parameters\n authenticateRequestId: $authenticateRequestId\n authenticateRequestPassword: $authenticateRequestPassword\n }\n ) {\n accessToken\n }\n }\n": typeof types.StartAppSessionDocument;
|
|
17
17
|
"\nmutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String, $displayName: String) {\n updateParticipantInfo(input: {\n email: $email\n phone: $phone\n avatar: $avatar\n displayName: $displayName\n }) {\n id\n }\n}\n": typeof types.UpdateParticipantInfoDocument;
|
|
18
18
|
};
|
|
@@ -33,7 +33,7 @@ export declare function graphql(source: string): unknown;
|
|
|
33
33
|
/**
|
|
34
34
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
35
35
|
*/
|
|
36
|
-
export declare function graphql(source: "\n query GetCampaign($id: ID, $zaloAppId: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"): (typeof documents)["\n query GetCampaign($id: ID, $zaloAppId: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"];
|
|
36
|
+
export declare function graphql(source: "\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"): (typeof documents)["\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n"];
|
|
37
37
|
/**
|
|
38
38
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
39
39
|
*/
|
package/dist/gql/gql.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UpdateParticipantInfoDocument as e, StartAppSessionDocument as
|
|
1
|
+
import { UpdateParticipantInfoDocument as e, StartAppSessionDocument as t, GetCampaignDocument as a } from "./graphql.js";
|
|
2
2
|
const i = {
|
|
3
|
-
"\n query GetCampaign($id: ID, $zaloAppId: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId}) {\n id\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n":
|
|
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":
|
|
3
|
+
"\n query GetCampaign($id: ID, $zaloAppId: String, $ticketCode: String) {\n campaign(identifier: {campaignId: $id, zaloAppId: $zaloAppId, ticketCode: $ticketCode}) {\n id\n name\n startTime\n endTime\n game {\n id\n gameLink\n tags\n }\n brandKit {\n primaryColor\n secondaryColor\n surfaceColor\n accentColor\n logoLink\n }\n }\n }\n": a,
|
|
4
|
+
"\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 s(n) {
|
package/dist/gql/graphql.d.ts
CHANGED
|
@@ -71,6 +71,10 @@ export type Scalars = {
|
|
|
71
71
|
output: any;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
+
export type ActivateTicketCodeBatchInput = {
|
|
75
|
+
campaignName: Scalars['String']['input'];
|
|
76
|
+
ticketCodeBatchID: Scalars['ID']['input'];
|
|
77
|
+
};
|
|
74
78
|
export type AddBitrixContactPointInput = {
|
|
75
79
|
bitrixDialogId: Scalars['String']['input'];
|
|
76
80
|
bitrixWebhook: Scalars['String']['input'];
|
|
@@ -182,6 +186,7 @@ export type Brand = {
|
|
|
182
186
|
name: Scalars['String']['output'];
|
|
183
187
|
updatedAt: Scalars['Time']['output'];
|
|
184
188
|
zaloOaId?: Maybe<Scalars['String']['output']>;
|
|
189
|
+
zaloUserId?: Maybe<Scalars['String']['output']>;
|
|
185
190
|
};
|
|
186
191
|
export type BrandFilter = {
|
|
187
192
|
keyword?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -269,6 +274,7 @@ export type Campaign = {
|
|
|
269
274
|
startTime: Scalars['Time']['output'];
|
|
270
275
|
tags: Array<Scalars['String']['output']>;
|
|
271
276
|
thumbnailLink: Scalars['String']['output'];
|
|
277
|
+
ticketCodes: TicketCodePaginationList;
|
|
272
278
|
tnc?: Maybe<Scalars['String']['output']>;
|
|
273
279
|
topParticipants: ParticipantPaginationList;
|
|
274
280
|
updatedAt: Scalars['Time']['output'];
|
|
@@ -281,6 +287,9 @@ export type CampaignParticipantsArgs = {
|
|
|
281
287
|
filter?: InputMaybe<ParticipantFilter>;
|
|
282
288
|
pagination: PaginationInput;
|
|
283
289
|
};
|
|
290
|
+
export type CampaignTicketCodesArgs = {
|
|
291
|
+
pagination: PaginationInput;
|
|
292
|
+
};
|
|
284
293
|
export type CampaignTopParticipantsArgs = {
|
|
285
294
|
pagination: PaginationInput;
|
|
286
295
|
};
|
|
@@ -314,6 +323,7 @@ export type CampaignFilter = {
|
|
|
314
323
|
export type CampaignIdentifier = {
|
|
315
324
|
campaignId?: InputMaybe<Scalars['ID']['input']>;
|
|
316
325
|
externalCampaignId?: InputMaybe<Scalars['String']['input']>;
|
|
326
|
+
ticketCode?: InputMaybe<Scalars['String']['input']>;
|
|
317
327
|
zaloAppId?: InputMaybe<Scalars['String']['input']>;
|
|
318
328
|
};
|
|
319
329
|
export type CampaignPaginationList = PaginationList & {
|
|
@@ -431,7 +441,7 @@ export type CreateCampaignInput = {
|
|
|
431
441
|
stackScore: Scalars['Boolean']['input'];
|
|
432
442
|
startTime: Scalars['Time']['input'];
|
|
433
443
|
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
434
|
-
thumbnail
|
|
444
|
+
thumbnail?: InputMaybe<Scalars['Upload']['input']>;
|
|
435
445
|
tnc?: InputMaybe<Scalars['String']['input']>;
|
|
436
446
|
zaloAppId?: InputMaybe<Scalars['String']['input']>;
|
|
437
447
|
zaloAppSecret?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -896,6 +906,9 @@ export type LoginInput = {
|
|
|
896
906
|
password: Scalars['String']['input'];
|
|
897
907
|
username: Scalars['String']['input'];
|
|
898
908
|
};
|
|
909
|
+
export type LoginWithZaloInput = {
|
|
910
|
+
zaloAccessToken: Scalars['String']['input'];
|
|
911
|
+
};
|
|
899
912
|
export type MetricEvent = SystemEvent & {
|
|
900
913
|
__typename?: 'MetricEvent';
|
|
901
914
|
brandId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -953,6 +966,7 @@ export declare enum MissionRecurrence {
|
|
|
953
966
|
export type Mutation = {
|
|
954
967
|
__typename?: 'Mutation';
|
|
955
968
|
activateTicketCode: TicketCode;
|
|
969
|
+
activateTicketCodeBatch: Campaign;
|
|
956
970
|
addBitrixContactPoint: ContactPoint;
|
|
957
971
|
assignRole: Scalars['Boolean']['output'];
|
|
958
972
|
batchCreateTicketCode: Scalars['Int']['output'];
|
|
@@ -999,10 +1013,12 @@ export type Mutation = {
|
|
|
999
1013
|
logScore: GameSession;
|
|
1000
1014
|
login: LoginDetails;
|
|
1001
1015
|
loginHub: LoginHubResponse;
|
|
1016
|
+
loginWithZalo: LoginDetails;
|
|
1002
1017
|
ping: Ping;
|
|
1003
1018
|
processPrizeHistory: PrizeHistory;
|
|
1004
1019
|
refreshToken: LoginDetails;
|
|
1005
1020
|
register: LoginDetails;
|
|
1021
|
+
registerWithZalo: LoginDetails;
|
|
1006
1022
|
removeContactPoint: Scalars['Boolean']['output'];
|
|
1007
1023
|
removeRole: Scalars['Boolean']['output'];
|
|
1008
1024
|
reserveShopItem: ReservedShopItem;
|
|
@@ -1046,6 +1062,9 @@ export type Mutation = {
|
|
|
1046
1062
|
export type MutationActivateTicketCodeArgs = {
|
|
1047
1063
|
id: Scalars['ID']['input'];
|
|
1048
1064
|
};
|
|
1065
|
+
export type MutationActivateTicketCodeBatchArgs = {
|
|
1066
|
+
input: ActivateTicketCodeBatchInput;
|
|
1067
|
+
};
|
|
1049
1068
|
export type MutationAddBitrixContactPointArgs = {
|
|
1050
1069
|
input: AddBitrixContactPointInput;
|
|
1051
1070
|
};
|
|
@@ -1185,12 +1204,18 @@ export type MutationLoginArgs = {
|
|
|
1185
1204
|
export type MutationLoginHubArgs = {
|
|
1186
1205
|
input?: InputMaybe<LoginHubInput>;
|
|
1187
1206
|
};
|
|
1207
|
+
export type MutationLoginWithZaloArgs = {
|
|
1208
|
+
input: LoginWithZaloInput;
|
|
1209
|
+
};
|
|
1188
1210
|
export type MutationProcessPrizeHistoryArgs = {
|
|
1189
1211
|
prizeHistoryId: Scalars['ID']['input'];
|
|
1190
1212
|
};
|
|
1191
1213
|
export type MutationRegisterArgs = {
|
|
1192
1214
|
input: RegisterInput;
|
|
1193
1215
|
};
|
|
1216
|
+
export type MutationRegisterWithZaloArgs = {
|
|
1217
|
+
input: RegisterWithZaloInput;
|
|
1218
|
+
};
|
|
1194
1219
|
export type MutationRemoveContactPointArgs = {
|
|
1195
1220
|
id: Scalars['ID']['input'];
|
|
1196
1221
|
};
|
|
@@ -1533,13 +1558,12 @@ export type PrizeHistory = {
|
|
|
1533
1558
|
claimedTime: Scalars['Time']['output'];
|
|
1534
1559
|
createdAt: Scalars['Time']['output'];
|
|
1535
1560
|
gamePrize?: Maybe<GamePrize>;
|
|
1561
|
+
gameSession?: Maybe<GameSession>;
|
|
1536
1562
|
globalMission?: Maybe<GlobalMission>;
|
|
1537
1563
|
id: Scalars['ID']['output'];
|
|
1538
1564
|
leaderboard?: Maybe<Leaderboard>;
|
|
1539
1565
|
mission?: Maybe<Mission>;
|
|
1540
|
-
/** @deprecated will be removed */
|
|
1541
1566
|
participant?: Maybe<Participant>;
|
|
1542
|
-
/** @deprecated will be removed */
|
|
1543
1567
|
player: Player;
|
|
1544
1568
|
prize: Prize;
|
|
1545
1569
|
processError?: Maybe<Scalars['String']['output']>;
|
|
@@ -1550,6 +1574,7 @@ export type PrizeHistory = {
|
|
|
1550
1574
|
};
|
|
1551
1575
|
export type PrizeHistoryFilter = {
|
|
1552
1576
|
campaignId: Scalars['ID']['input'];
|
|
1577
|
+
gameSessionId?: InputMaybe<Scalars['ID']['input']>;
|
|
1553
1578
|
giftZonePrize?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1554
1579
|
processed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1555
1580
|
requireManualProcess?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -1577,6 +1602,7 @@ export type Query = {
|
|
|
1577
1602
|
authenticateRequest: AuthenticateRequest;
|
|
1578
1603
|
availableTickets: Array<Ticket>;
|
|
1579
1604
|
brand: Brand;
|
|
1605
|
+
brandByZaloUserID: Brand;
|
|
1580
1606
|
brandKit: BrandKit;
|
|
1581
1607
|
brandKits: Array<BrandKit>;
|
|
1582
1608
|
brandRoles: Array<Role>;
|
|
@@ -1615,6 +1641,7 @@ export type Query = {
|
|
|
1615
1641
|
myGameSessions: GameSessionPaginationList;
|
|
1616
1642
|
myPlayerInfo: Player;
|
|
1617
1643
|
myPrizeHistories: PrizeHistoryPaginationList;
|
|
1644
|
+
myTicketCodeBatches: Array<TicketCodeBatch>;
|
|
1618
1645
|
myTicketCodes: TicketCodePaginationList;
|
|
1619
1646
|
nominee: Nominee;
|
|
1620
1647
|
nominees: Array<Nominee>;
|
|
@@ -1630,6 +1657,7 @@ export type Query = {
|
|
|
1630
1657
|
shopItem: ShopItem;
|
|
1631
1658
|
systemEvents: SystemEventPaginationList;
|
|
1632
1659
|
systemRoles: Array<Role>;
|
|
1660
|
+
ticketCodeBatch: TicketCodeBatch;
|
|
1633
1661
|
ticketCodes: TicketCodePaginationList;
|
|
1634
1662
|
trigger: Trigger;
|
|
1635
1663
|
triggers: Array<Trigger>;
|
|
@@ -1642,6 +1670,9 @@ export type QueryAuthenticateRequestArgs = {
|
|
|
1642
1670
|
export type QueryBrandArgs = {
|
|
1643
1671
|
id: Scalars['ID']['input'];
|
|
1644
1672
|
};
|
|
1673
|
+
export type QueryBrandByZaloUserIdArgs = {
|
|
1674
|
+
id: Scalars['String']['input'];
|
|
1675
|
+
};
|
|
1645
1676
|
export type QueryBrandKitArgs = {
|
|
1646
1677
|
id: Scalars['ID']['input'];
|
|
1647
1678
|
};
|
|
@@ -1792,6 +1823,9 @@ export type QuerySystemEventsArgs = {
|
|
|
1792
1823
|
filter?: InputMaybe<SystemEventFilter>;
|
|
1793
1824
|
pagination: PaginationInput;
|
|
1794
1825
|
};
|
|
1826
|
+
export type QueryTicketCodeBatchArgs = {
|
|
1827
|
+
id: Scalars['ID']['input'];
|
|
1828
|
+
};
|
|
1795
1829
|
export type QueryTicketCodesArgs = {
|
|
1796
1830
|
filter: TicketCodeFilter;
|
|
1797
1831
|
pagination: PaginationInput;
|
|
@@ -1816,6 +1850,10 @@ export type RegisterInput = {
|
|
|
1816
1850
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
1817
1851
|
username: Scalars['String']['input'];
|
|
1818
1852
|
};
|
|
1853
|
+
export type RegisterWithZaloInput = {
|
|
1854
|
+
zaloAccessToken: Scalars['String']['input'];
|
|
1855
|
+
zaloPhoneToken: Scalars['String']['input'];
|
|
1856
|
+
};
|
|
1819
1857
|
export type RemoveContactPointInput = {
|
|
1820
1858
|
id: Scalars['ID']['input'];
|
|
1821
1859
|
};
|
|
@@ -1987,6 +2025,21 @@ export type TicketCode = {
|
|
|
1987
2025
|
updatedAt: Scalars['Time']['output'];
|
|
1988
2026
|
usedBy?: Maybe<Participant>;
|
|
1989
2027
|
};
|
|
2028
|
+
export type TicketCodeBatch = {
|
|
2029
|
+
__typename?: 'TicketCodeBatch';
|
|
2030
|
+
/** @deprecated dont need anymore */
|
|
2031
|
+
activated: Scalars['Boolean']['output'];
|
|
2032
|
+
campaign?: Maybe<Campaign>;
|
|
2033
|
+
/** @deprecated dont need anymore */
|
|
2034
|
+
claimed: Scalars['Boolean']['output'];
|
|
2035
|
+
createdAt: Scalars['Time']['output'];
|
|
2036
|
+
game: Game;
|
|
2037
|
+
id: Scalars['ID']['output'];
|
|
2038
|
+
ticketCodes: Scalars['Int']['output'];
|
|
2039
|
+
updatedAt: Scalars['Time']['output'];
|
|
2040
|
+
/** @deprecated dont need anymore */
|
|
2041
|
+
usedTicketCodes: Scalars['Int']['output'];
|
|
2042
|
+
};
|
|
1990
2043
|
export type TicketCodeFilter = {
|
|
1991
2044
|
activated?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1992
2045
|
campaignId: Scalars['ID']['input'];
|
|
@@ -2258,7 +2311,8 @@ export type User = {
|
|
|
2258
2311
|
id: Scalars['ID']['output'];
|
|
2259
2312
|
privateInfo: UserPrivateInfo;
|
|
2260
2313
|
updatedAt: Scalars['Time']['output'];
|
|
2261
|
-
username
|
|
2314
|
+
username?: Maybe<Scalars['String']['output']>;
|
|
2315
|
+
zaloUserID?: Maybe<Scalars['String']['output']>;
|
|
2262
2316
|
};
|
|
2263
2317
|
export type UserPermission = {
|
|
2264
2318
|
__typename?: 'UserPermission';
|
|
@@ -2282,12 +2336,16 @@ export type WebPushContactPoint = ContactPoint & {
|
|
|
2282
2336
|
export type GetCampaignQueryVariables = Exact<{
|
|
2283
2337
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
2284
2338
|
zaloAppId?: InputMaybe<Scalars['String']['input']>;
|
|
2339
|
+
ticketCode?: InputMaybe<Scalars['String']['input']>;
|
|
2285
2340
|
}>;
|
|
2286
2341
|
export type GetCampaignQuery = {
|
|
2287
2342
|
__typename?: 'Query';
|
|
2288
2343
|
campaign: {
|
|
2289
2344
|
__typename?: 'Campaign';
|
|
2290
2345
|
id: string;
|
|
2346
|
+
name: string;
|
|
2347
|
+
startTime: any;
|
|
2348
|
+
endTime: any;
|
|
2291
2349
|
game: {
|
|
2292
2350
|
__typename?: 'Game';
|
|
2293
2351
|
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))(a || {}), n = /* @__PURE__ */ ((e) => (e.DatabaseActionDelete = "DATABASE_ACTION_DELETE", e.DatabaseActionInsert = "DATABASE_ACTION_INSERT", e.DatabaseActionUpdate = "DATABASE_ACTION_UPDATE", e))(n || {}), i = /* @__PURE__ */ ((e) => (e.GameCategoryLuck = "GAME_CATEGORY_LUCK", e.GameCategoryQuiz = "GAME_CATEGORY_QUIZ", e.GameCategorySkill = "GAME_CATEGORY_SKILL", e))(i || {}), t = /* @__PURE__ */ ((e) => (e.GameScreenTypeLandscape = "GAME_SCREEN_TYPE_LANDSCAPE", e.GameScreenTypePortrait = "GAME_SCREEN_TYPE_PORTRAIT", e))(t || {}), d = /* @__PURE__ */ ((e) => (e.GenderFemale = "GENDER_FEMALE", e.GenderMale = "GENDER_MALE", e.GenderOther = "GENDER_OTHER", e))(d || {}), E = /* @__PURE__ */ ((e) => (e.MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY", e.MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE", e))(E || {}), l = /* @__PURE__ */ ((e) => (e.ActivateTicketCode = "ACTIVATE_TICKET_CODE", e.CreateBrand = "CREATE_BRAND", e.CreateBrandKit = "CREATE_BRAND_KIT", e.CreateCampaign = "CREATE_CAMPAIGN", e.CreateGame = "CREATE_GAME", e.CreateGamePrize = "CREATE_GAME_PRIZE", e.CreateGamePrizeKit = "CREATE_GAME_PRIZE_KIT", e.CreateLeaderboardConfig = "CREATE_LEADERBOARD_CONFIG", e.CreateMission = "CREATE_MISSION", e.CreateNominee = "CREATE_NOMINEE", e.CreatePrize = "CREATE_PRIZE", e.CreateRole = "CREATE_ROLE", e.CreateTicketCode = "CREATE_TICKET_CODE", e.CreateTrigger = "CREATE_TRIGGER", e.DeleteGamePrize = "DELETE_GAME_PRIZE", e.DeleteGamePrizeKit = "DELETE_GAME_PRIZE_KIT", e.DeleteLeaderboardConfig = "DELETE_LEADERBOARD_CONFIG", e.DeleteMission = "DELETE_MISSION", e.GetBrands = "GET_BRANDS", e.GetBrandKits = "GET_BRAND_KITS", e.GetCampaigns = "GET_CAMPAIGNS", e.GetCampaignSecretInfo = "GET_CAMPAIGN_SECRET_INFO", e.GetGames = "GET_GAMES", e.GetGameEvents = "GET_GAME_EVENTS", e.GetGamePrizeKits = "GET_GAME_PRIZE_KITS", e.GetLeaderboards = "GET_LEADERBOARDS", e.GetLeaderboardConfigs = "GET_LEADERBOARD_CONFIGS", e.GetMissions = "GET_MISSIONS", e.GetParticipants = "GET_PARTICIPANTS", e.GetPermissionsByRole = "GET_PERMISSIONS_BY_ROLE", e.GetPrivateGames = "GET_PRIVATE_GAMES", e.GetPrivateParticipantInfo = "GET_PRIVATE_PARTICIPANT_INFO", e.GetPrizes = "GET_PRIZES", e.GetPrizeHistories = "GET_PRIZE_HISTORIES", e.GetRoles = "GET_ROLES", e.GetSystemEvents = "GET_SYSTEM_EVENTS", e.GetTicketCodes = "GET_TICKET_CODES", e.GetTriggers = "GET_TRIGGERS", e.LockParticipant = "LOCK_PARTICIPANT", e.SetUserRoles = "SET_USER_ROLES", e.SubscribeEvents = "SUBSCRIBE_EVENTS", e.UpdateBrand = "UPDATE_BRAND", e.UpdateBrandKit = "UPDATE_BRAND_KIT", e.UpdateCampaign = "UPDATE_CAMPAIGN", e.UpdateCampaignSecretInfo = "UPDATE_CAMPAIGN_SECRET_INFO", e.UpdateForm = "UPDATE_FORM", e.UpdateGame = "UPDATE_GAME", e.UpdateGamePrize = "UPDATE_GAME_PRIZE", e.UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT", e.UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG", e.UpdateMission = "UPDATE_MISSION", e.UpdateNominee = "UPDATE_NOMINEE", e.UpdatePrize = "UPDATE_PRIZE", e.UpdateRole = "UPDATE_ROLE", e.UpdateTicketCode = "UPDATE_TICKET_CODE", e.UpdateTrigger = "UPDATE_TRIGGER", e))(l || {}), k = /* @__PURE__ */ ((e) => (e.PrizeTypeCosmetic = "PRIZE_TYPE_COSMETIC", e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(k || {}),
|
|
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 || {}), d = /* @__PURE__ */ ((e) => (e.GenderFemale = "GENDER_FEMALE", e.GenderMale = "GENDER_MALE", e.GenderOther = "GENDER_OTHER", e))(d || {}), E = /* @__PURE__ */ ((e) => (e.MissionRecurrenceDaily = "MISSION_RECURRENCE_DAILY", e.MissionRecurrenceOnce = "MISSION_RECURRENCE_ONCE", e))(E || {}), l = /* @__PURE__ */ ((e) => (e.ActivateTicketCode = "ACTIVATE_TICKET_CODE", e.CreateBrand = "CREATE_BRAND", e.CreateBrandKit = "CREATE_BRAND_KIT", e.CreateCampaign = "CREATE_CAMPAIGN", e.CreateGame = "CREATE_GAME", e.CreateGamePrize = "CREATE_GAME_PRIZE", e.CreateGamePrizeKit = "CREATE_GAME_PRIZE_KIT", e.CreateLeaderboardConfig = "CREATE_LEADERBOARD_CONFIG", e.CreateMission = "CREATE_MISSION", e.CreateNominee = "CREATE_NOMINEE", e.CreatePrize = "CREATE_PRIZE", e.CreateRole = "CREATE_ROLE", e.CreateTicketCode = "CREATE_TICKET_CODE", e.CreateTrigger = "CREATE_TRIGGER", e.DeleteGamePrize = "DELETE_GAME_PRIZE", e.DeleteGamePrizeKit = "DELETE_GAME_PRIZE_KIT", e.DeleteLeaderboardConfig = "DELETE_LEADERBOARD_CONFIG", e.DeleteMission = "DELETE_MISSION", e.GetBrands = "GET_BRANDS", e.GetBrandKits = "GET_BRAND_KITS", e.GetCampaigns = "GET_CAMPAIGNS", e.GetCampaignSecretInfo = "GET_CAMPAIGN_SECRET_INFO", e.GetGames = "GET_GAMES", e.GetGameEvents = "GET_GAME_EVENTS", e.GetGamePrizeKits = "GET_GAME_PRIZE_KITS", e.GetLeaderboards = "GET_LEADERBOARDS", e.GetLeaderboardConfigs = "GET_LEADERBOARD_CONFIGS", e.GetMissions = "GET_MISSIONS", e.GetParticipants = "GET_PARTICIPANTS", e.GetPermissionsByRole = "GET_PERMISSIONS_BY_ROLE", e.GetPrivateGames = "GET_PRIVATE_GAMES", e.GetPrivateParticipantInfo = "GET_PRIVATE_PARTICIPANT_INFO", e.GetPrizes = "GET_PRIZES", e.GetPrizeHistories = "GET_PRIZE_HISTORIES", e.GetRoles = "GET_ROLES", e.GetSystemEvents = "GET_SYSTEM_EVENTS", e.GetTicketCodes = "GET_TICKET_CODES", e.GetTriggers = "GET_TRIGGERS", e.LockParticipant = "LOCK_PARTICIPANT", e.SetUserRoles = "SET_USER_ROLES", e.SubscribeEvents = "SUBSCRIBE_EVENTS", e.UpdateBrand = "UPDATE_BRAND", e.UpdateBrandKit = "UPDATE_BRAND_KIT", e.UpdateCampaign = "UPDATE_CAMPAIGN", e.UpdateCampaignSecretInfo = "UPDATE_CAMPAIGN_SECRET_INFO", e.UpdateForm = "UPDATE_FORM", e.UpdateGame = "UPDATE_GAME", e.UpdateGamePrize = "UPDATE_GAME_PRIZE", e.UpdateGamePrizeKit = "UPDATE_GAME_PRIZE_KIT", e.UpdateLeaderboardConfig = "UPDATE_LEADERBOARD_CONFIG", e.UpdateMission = "UPDATE_MISSION", e.UpdateNominee = "UPDATE_NOMINEE", e.UpdatePrize = "UPDATE_PRIZE", e.UpdateRole = "UPDATE_ROLE", e.UpdateTicketCode = "UPDATE_TICKET_CODE", e.UpdateTrigger = "UPDATE_TRIGGER", e))(l || {}), k = /* @__PURE__ */ ((e) => (e.PrizeTypeCosmetic = "PRIZE_TYPE_COSMETIC", e.PrizeTypeDigital = "PRIZE_TYPE_DIGITAL", e.PrizeTypeIngame = "PRIZE_TYPE_INGAME", e.PrizeTypePhysical = "PRIZE_TYPE_PHYSICAL", e.PrizeTypeTicket = "PRIZE_TYPE_TICKET", e))(k || {}), m = /* @__PURE__ */ ((e) => (e.None = "NONE", e.OpenLink = "OPEN_LINK", e.PlayGame = "PLAY_GAME", e.Ptcr = "PTCR", e.ReadArticle = "READ_ARTICLE", e.Share = "SHARE", e.WatchAd = "WATCH_AD", e))(m || {}), N = /* @__PURE__ */ ((e) => (e.SystemEventLevelCritical = "SYSTEM_EVENT_LEVEL_CRITICAL", e.SystemEventLevelError = "SYSTEM_EVENT_LEVEL_ERROR", e.SystemEventLevelInfo = "SYSTEM_EVENT_LEVEL_INFO", e.SystemEventLevelWarning = "SYSTEM_EVENT_LEVEL_WARNING", e))(N || {}), r = /* @__PURE__ */ ((e) => (e.TicketSourceBattlePass = "TICKET_SOURCE_BATTLE_PASS", e.TicketSourceDaily = "TICKET_SOURCE_DAILY", e.TicketSourceForm = "TICKET_SOURCE_FORM", e.TicketSourceGamePrize = "TICKET_SOURCE_GAME_PRIZE", e.TicketSourceGlobalMission = "TICKET_SOURCE_GLOBAL_MISSION", e.TicketSourceInitial = "TICKET_SOURCE_INITIAL", e.TicketSourceMission = "TICKET_SOURCE_MISSION", e.TicketSourceShop = "TICKET_SOURCE_SHOP", e.TicketSourceTicketCode = "TICKET_SOURCE_TICKET_CODE", e))(r || {}), _ = /* @__PURE__ */ ((e) => (e.Day = "DAY", e.Hour = "HOUR", e.Month = "MONTH", e.Week = "WEEK", e))(_ || {});
|
|
2
|
+
const u = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetCampaign" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "ticketCode" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "campaign" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "identifier" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "campaignId" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }, { kind: "ObjectField", name: { kind: "Name", value: "zaloAppId" }, value: { kind: "Variable", name: { kind: "Name", value: "zaloAppId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "ticketCode" }, value: { kind: "Variable", name: { kind: "Name", value: "ticketCode" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "startTime" } }, { kind: "Field", name: { kind: "Name", value: "endTime" } }, { kind: "Field", name: { kind: "Name", value: "game" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "gameLink" } }, { kind: "Field", name: { kind: "Name", value: "tags" } }] } }, { kind: "Field", name: { kind: "Name", value: "brandKit" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "primaryColor" } }, { kind: "Field", name: { kind: "Name", value: "secondaryColor" } }, { kind: "Field", name: { kind: "Name", value: "surfaceColor" } }, { kind: "Field", name: { kind: "Name", value: "accentColor" } }, { kind: "Field", name: { kind: "Name", value: "logoLink" } }] } }] } }] } }] }, A = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "StartAppSession" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "campaignId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "externalUserId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "checksum" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "requestedAt" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Timestamp" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "parameters" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestId" } }, type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestPassword" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "startAppSession" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "campaignId" }, value: { kind: "Variable", name: { kind: "Name", value: "campaignId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "externalUserId" }, value: { kind: "Variable", name: { kind: "Name", value: "externalUserId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "checksum" }, value: { kind: "Variable", name: { kind: "Name", value: "checksum" } } }, { kind: "ObjectField", name: { kind: "Name", value: "requestedAt" }, value: { kind: "Variable", name: { kind: "Name", value: "requestedAt" } } }, { kind: "ObjectField", name: { kind: "Name", value: "parameters" }, value: { kind: "Variable", name: { kind: "Name", value: "parameters" } } }, { kind: "ObjectField", name: { kind: "Name", value: "authenticateRequestId" }, value: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestId" } } }, { kind: "ObjectField", name: { kind: "Name", value: "authenticateRequestPassword" }, value: { kind: "Variable", name: { kind: "Name", value: "authenticateRequestPassword" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "accessToken" } }] } }] } }] }, I = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateParticipantInfo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "email" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "phone" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "avatar" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "displayName" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateParticipantInfo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "email" }, value: { kind: "Variable", name: { kind: "Name", value: "email" } } }, { kind: "ObjectField", name: { kind: "Name", value: "phone" }, value: { kind: "Variable", name: { kind: "Name", value: "phone" } } }, { kind: "ObjectField", name: { kind: "Name", value: "avatar" }, value: { kind: "Variable", name: { kind: "Name", value: "avatar" } } }, { kind: "ObjectField", name: { kind: "Name", value: "displayName" }, value: { kind: "Variable", name: { kind: "Name", value: "displayName" } } }] } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }] };
|
|
3
3
|
export {
|
|
4
4
|
a as AuthenticatePhase,
|
|
5
5
|
n as DatabaseAction,
|
|
6
6
|
i as GameCategory,
|
|
7
7
|
t as GameScreenType,
|
|
8
8
|
d as Gender,
|
|
9
|
-
|
|
9
|
+
u as GetCampaignDocument,
|
|
10
10
|
E as MissionRecurrence,
|
|
11
11
|
l as PermissionType,
|
|
12
12
|
k as PrizeType,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
m as RedirectType,
|
|
14
|
+
A as StartAppSessionDocument,
|
|
15
|
+
N as SystemEventLevel,
|
|
16
|
+
r as TicketSource,
|
|
17
|
+
_ as TimeSeriesRange,
|
|
18
18
|
I as UpdateParticipantInfoDocument
|
|
19
19
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare global {
|
|
|
8
8
|
__PROMOGAME_API_URL: string;
|
|
9
9
|
__PROMOGAME_EXTERNAL_ACCESS_TOKEN: string;
|
|
10
10
|
__PROMOGAME_CAMPAIGN_ID: string;
|
|
11
|
+
__PROMOGAME_TICKET_CODE?: string;
|
|
11
12
|
__PROMOGAME_ERROR_CODE?: string;
|
|
12
13
|
ZaloMiniAppSDK: unknown;
|
|
13
14
|
EngineLoader: DefoldEngineLoader;
|