@opexa/portal-components 0.0.100 → 0.0.101
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/client/hooks/index.d.ts +65 -0
- package/dist/client/hooks/index.js +65 -0
- package/dist/client/services/index.d.ts +4 -0
- package/dist/client/services/index.js +4 -0
- package/dist/client/utils/index.d.ts +3 -0
- package/dist/client/utils/index.js +3 -0
- package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +2 -0
- package/dist/components/CashbackBonus/CashbackBonus.client.js +9 -0
- package/dist/components/CashbackBonus/CashbackBonus.d.ts +10 -0
- package/dist/components/CashbackBonus/CashbackBonus.js +5 -0
- package/dist/components/CashbackBonus/index.d.ts +1 -0
- package/dist/components/CashbackBonus/index.js +1 -0
- package/dist/components/Games/GameContext.d.ts +2 -0
- package/dist/components/Games/GameContext.js +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +66 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +17 -0
- package/dist/components/JackpotCounter/JackpotCounter.js +21 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +18 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.js +109 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -0
- package/dist/components/JackpotCounter/index.d.ts +1 -0
- package/dist/components/JackpotCounter/index.js +1 -0
- package/dist/components/Jackpots/JackpotDesktop.d.ts +1 -0
- package/dist/components/Jackpots/JackpotDesktop.js +45 -0
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +5 -0
- package/dist/components/Jackpots/JackpotGameProviders.js +41 -0
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +9 -0
- package/dist/components/Jackpots/JackpotItemDesktop.js +43 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +9 -0
- package/dist/components/Jackpots/JackpotItemMobile.js +44 -0
- package/dist/components/Jackpots/JackpotMobile.d.ts +1 -0
- package/dist/components/Jackpots/JackpotMobile.js +46 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +5 -0
- package/dist/components/Jackpots/JackpotRules.js +11 -0
- package/dist/components/Jackpots/Jackpots.client.d.ts +2 -0
- package/dist/components/Jackpots/Jackpots.client.js +29 -0
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +5 -6
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
- package/dist/components/Jackpots/JackpotsContext.d.ts +4 -0
- package/dist/components/Jackpots/JackpotsContext.js +3 -0
- package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +3 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +7 -7
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +6 -7
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +8 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +4 -5
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +0 -4
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +0 -23
- package/dist/components/Jackpots/useJackpotData.d.ts +14 -0
- package/dist/components/Jackpots/useJackpotData.js +93 -0
- package/dist/components/Jackpots/useJackpotItemData.d.ts +20 -0
- package/dist/components/Jackpots/useJackpotItemData.js +87 -0
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +34 -0
- package/dist/components/PortalProvider/WebVitals.d.ts +1 -0
- package/dist/components/PortalProvider/WebVitals.js +8 -0
- package/dist/components/Promo/PromoContent.d.ts +2 -0
- package/dist/components/Promo/PromoContent.js +9 -0
- package/dist/components/Promos/PromoCarousel.d.ts +2 -0
- package/dist/components/Promos/PromoCarousel.js +41 -0
- package/dist/components/Promos/PromoGrid.d.ts +2 -0
- package/dist/components/Promos/PromoGrid.js +12 -0
- package/dist/components/Promos/PromoItem.d.ts +7 -0
- package/dist/components/Promos/PromoItem.js +10 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +50 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounter.js +21 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.js +106 -0
- package/dist/components/TournamentCounter/index.d.ts +1 -0
- package/dist/components/TournamentCounter/index.js +1 -0
- package/dist/components/Tournaments/TournamentDesktop.d.ts +1 -0
- package/dist/components/Tournaments/TournamentDesktop.js +57 -0
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +5 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +38 -0
- package/dist/components/Tournaments/TournamentItemDesktop.d.ts +7 -0
- package/dist/components/Tournaments/TournamentItemDesktop.js +56 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +7 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +54 -0
- package/dist/components/Tournaments/TournamentMobile.d.ts +1 -0
- package/dist/components/Tournaments/TournamentMobile.js +55 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +5 -0
- package/dist/components/Tournaments/TournamentRules.js +11 -0
- package/dist/components/Tournaments/Tournaments.client.d.ts +2 -0
- package/dist/components/Tournaments/Tournaments.client.js +20 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
- package/dist/components/Tournaments/TournamentsContext.d.ts +4 -0
- package/dist/components/Tournaments/TournamentsContext.js +3 -0
- package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
- package/dist/components/Tournaments/useTournamentData.d.ts +10 -0
- package/dist/components/Tournaments/useTournamentData.js +72 -0
- package/dist/components/Tournaments/useTournamentItemData.d.ts +16 -0
- package/dist/components/Tournaments/useTournamentItemData.js +64 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +33 -0
- package/dist/icons/index.d.ts +65 -0
- package/dist/icons/index.js +65 -0
- package/dist/images/hacksaw-gaming.png +0 -0
- package/dist/next.config.js +4 -0
- package/dist/server/services/index.d.ts +4 -0
- package/dist/server/services/index.js +4 -0
- package/dist/server/utils/index.d.ts +29 -0
- package/dist/server/utils/index.js +29 -0
- package/dist/services/queries.js +2351 -2351
- package/dist/styles/theme.css +697 -697
- package/dist/ui/index.d.ts +26 -0
- package/dist/ui/index.js +26 -0
- package/dist/utils/index.d.ts +17 -0
- package/dist/utils/index.js +17 -0
- package/package.json +162 -162
- package/dist/services/account.service.d.ts +0 -341
- package/dist/services/account.service.js +0 -233
- package/dist/services/auth.service.d.ts +0 -80
- package/dist/services/auth.service.js +0 -152
- package/dist/services/cmsPortal.service.d.ts +0 -43
- package/dist/services/cmsPortal.service.js +0 -148
- package/dist/services/file.service.d.ts +0 -33
- package/dist/services/file.service.js +0 -18
- package/dist/services/game.service.d.ts +0 -44
- package/dist/services/game.service.js +0 -33
- package/dist/services/portal.service.d.ts +0 -37
- package/dist/services/portal.service.js +0 -44
- package/dist/services/report.service.d.ts +0 -223
- package/dist/services/report.service.js +0 -72
- package/dist/services/trigger.service.d.ts +0 -94
- package/dist/services/trigger.service.js +0 -88
- package/dist/services/wallet.service.d.ts +0 -475
- package/dist/services/wallet.service.js +0 -365
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import type { Simplify, SimplifyDeep } from 'type-fest';
|
|
2
|
-
import type { Announcement, AnnouncementType, AnnouncementVisibility, DateFilterField, EnumFilterField, MemberAccount, MemberVerification, PaginatedQuery, PaymentSettings, PointsClubSettings, ProfileCompletion, SecretQuestion } from '../types';
|
|
3
|
-
import { type GraphQLRequestOptions } from './graphqlRequest';
|
|
4
|
-
export interface MemberAccountQuery {
|
|
5
|
-
memberAccount: MemberAccount;
|
|
6
|
-
}
|
|
7
|
-
export declare const getMemberAccount: (options?: GraphQLRequestOptions) => Promise<MemberAccount>;
|
|
8
|
-
export type RegisterMemberAccountError = {
|
|
9
|
-
name: 'AccountNameNotAvailableError';
|
|
10
|
-
message: string;
|
|
11
|
-
} | {
|
|
12
|
-
name: 'InvalidPlatformError';
|
|
13
|
-
message: string;
|
|
14
|
-
} | {
|
|
15
|
-
name: 'InvalidReCAPTCHAResponseError';
|
|
16
|
-
message: string;
|
|
17
|
-
} | {
|
|
18
|
-
name: 'InvalidSMSVerificationCodeError';
|
|
19
|
-
message: string;
|
|
20
|
-
} | {
|
|
21
|
-
name: 'MinimumAgeRequirementError';
|
|
22
|
-
message: string;
|
|
23
|
-
} | {
|
|
24
|
-
name: 'MobileNumberNotAvailableError';
|
|
25
|
-
message: string;
|
|
26
|
-
} | {
|
|
27
|
-
name: 'ReCAPTCHAVerificationFailedError';
|
|
28
|
-
message: string;
|
|
29
|
-
};
|
|
30
|
-
export interface RegisterMemberAccountMutation {
|
|
31
|
-
registerMemberAccount?: null | RegisterMemberAccountError;
|
|
32
|
-
}
|
|
33
|
-
export interface RegisterMemberAccountMutationVariables {
|
|
34
|
-
input: {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
password: string;
|
|
38
|
-
mobileNumber: string;
|
|
39
|
-
birthDay: string;
|
|
40
|
-
domain?: string;
|
|
41
|
-
btag?: string;
|
|
42
|
-
};
|
|
43
|
-
referralCode?: string;
|
|
44
|
-
verificationCode?: string;
|
|
45
|
-
}
|
|
46
|
-
export type RegisterMemberAccountInput = Simplify<RegisterMemberAccountMutationVariables['input'] & Pick<RegisterMemberAccountMutationVariables, 'referralCode' | 'verificationCode'>>;
|
|
47
|
-
export declare const registerMemberAccount: (input: RegisterMemberAccountInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
48
|
-
export interface RegisterMemberAccountViaMobileMutation {
|
|
49
|
-
registerMemberAccountViaMobile?: null | RegisterMemberAccountError;
|
|
50
|
-
}
|
|
51
|
-
export interface RegisterMemberAccountViaMobileMutationVariables {
|
|
52
|
-
input: {
|
|
53
|
-
id: string;
|
|
54
|
-
mobileNumber: string;
|
|
55
|
-
domain?: string;
|
|
56
|
-
btag?: string;
|
|
57
|
-
};
|
|
58
|
-
referralCode?: string;
|
|
59
|
-
verificationCode?: string;
|
|
60
|
-
}
|
|
61
|
-
export type RegisterMemberAccountViaMobileInput = Simplify<RegisterMemberAccountViaMobileMutationVariables['input'] & Pick<RegisterMemberAccountViaMobileMutationVariables, 'verificationCode' | 'referralCode'>>;
|
|
62
|
-
export declare const registerMemberAccountViaMobile: (input: RegisterMemberAccountViaMobileInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
63
|
-
export interface RegisterMemberAccountByMobileNumberMutationVariables {
|
|
64
|
-
input: {
|
|
65
|
-
id: string;
|
|
66
|
-
mobileNumber: string;
|
|
67
|
-
password: string;
|
|
68
|
-
realName: string;
|
|
69
|
-
};
|
|
70
|
-
mobileNumberVerificationCode: string;
|
|
71
|
-
}
|
|
72
|
-
export type RegisterMemberAccountByMobileNumberError = {
|
|
73
|
-
name: 'MobileNumberNotAvailableError';
|
|
74
|
-
message: string;
|
|
75
|
-
} | {
|
|
76
|
-
name: 'InvalidSMSVerificationCodeError';
|
|
77
|
-
message: string;
|
|
78
|
-
} | {
|
|
79
|
-
name: 'InvalidPlatformError';
|
|
80
|
-
message: string;
|
|
81
|
-
};
|
|
82
|
-
export interface RegisterMemberAccountByMobileNumberMutation {
|
|
83
|
-
registerMemberAccountByMobileNumber?: null | RegisterMemberAccountByMobileNumberError;
|
|
84
|
-
}
|
|
85
|
-
export type RegisterMemberAccountByMobileNumberInput = Simplify<RegisterMemberAccountByMobileNumberMutationVariables['input'] & Pick<RegisterMemberAccountByMobileNumberMutationVariables, 'mobileNumberVerificationCode'>>;
|
|
86
|
-
export declare const registerMemberAccountByMobileNumber: (input: RegisterMemberAccountByMobileNumberInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
87
|
-
export interface RegisterMemberAccountMutationVariables__Next {
|
|
88
|
-
input: {
|
|
89
|
-
id: string;
|
|
90
|
-
name: string;
|
|
91
|
-
password: string;
|
|
92
|
-
mobileNumber?: string;
|
|
93
|
-
domain?: string;
|
|
94
|
-
btag?: string;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
export type RegisterMemberAccountInput__Next = Simplify<RegisterMemberAccountMutationVariables__Next['input']>;
|
|
98
|
-
export declare const registerMemberAccount__next: (input: RegisterMemberAccountInput__Next, options?: GraphQLRequestOptions) => Promise<void>;
|
|
99
|
-
export type RegisterMemberAccountByNameError = {
|
|
100
|
-
name: 'AccountNameNotAvailableError';
|
|
101
|
-
message: string;
|
|
102
|
-
} | {
|
|
103
|
-
name: 'InvalidPlatformError';
|
|
104
|
-
message: string;
|
|
105
|
-
} | {
|
|
106
|
-
name: 'InvalidReCAPTCHAResponseError';
|
|
107
|
-
message: string;
|
|
108
|
-
};
|
|
109
|
-
export interface RegisterMemberAccountByNameMutationVariables {
|
|
110
|
-
input: {
|
|
111
|
-
id: string;
|
|
112
|
-
name: string;
|
|
113
|
-
password: string;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
export interface RegisterMemberAccountByNameMutation {
|
|
117
|
-
registerMemberAccountByName?: null | RegisterMemberAccountByNameError;
|
|
118
|
-
}
|
|
119
|
-
export type RegisterMemberAccountByNameInput = Simplify<RegisterMemberAccountByNameMutationVariables['input']>;
|
|
120
|
-
export declare const registerMemberAccountByName: (input: RegisterMemberAccountByNameInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
121
|
-
export type UpdateMemberAccountError = {
|
|
122
|
-
name: 'AccountNameNotAvailableError';
|
|
123
|
-
message: string;
|
|
124
|
-
} | {
|
|
125
|
-
name: 'EmailAddressNotAvailableError';
|
|
126
|
-
message: string;
|
|
127
|
-
} | {
|
|
128
|
-
name: 'InvalidTransactionPasswordError';
|
|
129
|
-
message: string;
|
|
130
|
-
} | {
|
|
131
|
-
name: 'MobileNumberNotAvailableError';
|
|
132
|
-
message: string;
|
|
133
|
-
} | {
|
|
134
|
-
name: 'NickNameNotAvailableError';
|
|
135
|
-
message: string;
|
|
136
|
-
} | {
|
|
137
|
-
name: 'RealNameAlreadySetError';
|
|
138
|
-
message: string;
|
|
139
|
-
} | {
|
|
140
|
-
name: 'ValidIdAlreadySetError';
|
|
141
|
-
message: string;
|
|
142
|
-
};
|
|
143
|
-
export interface UpdateMemberAccountMutation {
|
|
144
|
-
updateMemberAccount?: null | UpdateMemberAccountError;
|
|
145
|
-
}
|
|
146
|
-
export interface UpdateMemberAccountMutationVariables {
|
|
147
|
-
input: {
|
|
148
|
-
id: string;
|
|
149
|
-
data: {
|
|
150
|
-
name?: string;
|
|
151
|
-
password?: string;
|
|
152
|
-
emailAddress?: string;
|
|
153
|
-
mobileNumber?: string;
|
|
154
|
-
realName?: string;
|
|
155
|
-
nickName?: string;
|
|
156
|
-
transactionPassword?: string;
|
|
157
|
-
validId?: string;
|
|
158
|
-
mobileNumberVerificationRequired?: boolean;
|
|
159
|
-
secretQuestion?: SecretQuestion;
|
|
160
|
-
secretAnswer?: string;
|
|
161
|
-
birthDay?: string;
|
|
162
|
-
branchCode?: string;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
export type UpdateMemberAccountDataInput = Simplify<UpdateMemberAccountMutationVariables['input']['data']>;
|
|
167
|
-
export declare const updateMemberAccount: (id: string, data: UpdateMemberAccountDataInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
168
|
-
export interface DeleteMemberAccountMutation {
|
|
169
|
-
deleteMemberAccount: boolean;
|
|
170
|
-
}
|
|
171
|
-
export interface DeleteMemberAccountMutationVariables {
|
|
172
|
-
input: {
|
|
173
|
-
id: string;
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
export declare const deleteMemberAccount: (id: string, options?: GraphQLRequestOptions) => Promise<void>;
|
|
177
|
-
export type ResetPasswordError = {
|
|
178
|
-
name: 'AccountNotFoundError';
|
|
179
|
-
message: string;
|
|
180
|
-
} | {
|
|
181
|
-
name: 'InvalidVerificationCodeError';
|
|
182
|
-
message: string;
|
|
183
|
-
};
|
|
184
|
-
export interface ResetPasswordMutation {
|
|
185
|
-
resetPassword?: null | ResetPasswordError;
|
|
186
|
-
}
|
|
187
|
-
export interface ResetPasswordMutationVariables {
|
|
188
|
-
input: {
|
|
189
|
-
mobileNumber: string;
|
|
190
|
-
newPassword: string;
|
|
191
|
-
};
|
|
192
|
-
verificationCode: string;
|
|
193
|
-
}
|
|
194
|
-
export type ResetPasswordInput = Simplify<ResetPasswordMutationVariables['input'] & Pick<ResetPasswordMutationVariables, 'verificationCode'>>;
|
|
195
|
-
export declare const resetPassword: (input: ResetPasswordInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
196
|
-
export interface ProfileCompletionQuery {
|
|
197
|
-
profileCompletion: ProfileCompletion;
|
|
198
|
-
}
|
|
199
|
-
export declare const getProfileCompletion: (options?: GraphQLRequestOptions) => Promise<ProfileCompletion>;
|
|
200
|
-
export interface PaymentSettingsQuery extends PaymentSettings {
|
|
201
|
-
}
|
|
202
|
-
export declare const getPaymentSettings: (options?: GraphQLRequestOptions) => Promise<PaymentSettingsQuery>;
|
|
203
|
-
export type VerifyMobileNumberError = {
|
|
204
|
-
name: 'InvalidSMSVerificationCodeError';
|
|
205
|
-
message: string;
|
|
206
|
-
} | {
|
|
207
|
-
name: 'MobileNumberAlreadyVerifiedError';
|
|
208
|
-
message: string;
|
|
209
|
-
};
|
|
210
|
-
export interface VerifyMobileNumberMutation {
|
|
211
|
-
verifyMobileNumber?: null | VerifyMobileNumberError;
|
|
212
|
-
}
|
|
213
|
-
export interface VerifyMobileNumberMutationVariables {
|
|
214
|
-
input: {
|
|
215
|
-
verificationCode: string;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
export declare const verifyMobileNumber: (verificationCode: string, options?: GraphQLRequestOptions) => Promise<void>;
|
|
219
|
-
export type CreateMemberVerificationError = {
|
|
220
|
-
name: 'FileDoesNotExistError';
|
|
221
|
-
message: string;
|
|
222
|
-
} | {
|
|
223
|
-
name: 'FileNotReadyError';
|
|
224
|
-
message: string;
|
|
225
|
-
} | {
|
|
226
|
-
name: 'MemberVerificationAlreadyExistsError';
|
|
227
|
-
message: string;
|
|
228
|
-
};
|
|
229
|
-
export interface CreateMemberVerificationMutation {
|
|
230
|
-
createMemberVerification?: null | CreateMemberVerificationError;
|
|
231
|
-
}
|
|
232
|
-
export interface CreateMemberVerificationMutationVariables {
|
|
233
|
-
input: {
|
|
234
|
-
id: string;
|
|
235
|
-
idFrontImage: string;
|
|
236
|
-
selfieImage: string;
|
|
237
|
-
address: string;
|
|
238
|
-
permanentAddress: string;
|
|
239
|
-
sourceOfIncome: string;
|
|
240
|
-
natureOfWork: string;
|
|
241
|
-
nationality: string;
|
|
242
|
-
placeOfBirth: string;
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
export type CreateMemberVerificationInput = Simplify<CreateMemberVerificationMutationVariables['input']>;
|
|
246
|
-
export declare const createMemberVerification: (input: CreateMemberVerificationInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
247
|
-
export declare const createMemberVerification__next: (input: CreateMemberVerificationInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
248
|
-
export type UpdateMemberVerificationError = {
|
|
249
|
-
name: 'FileDoesNotExistError';
|
|
250
|
-
message: string;
|
|
251
|
-
} | {
|
|
252
|
-
name: 'FileNotReadyError';
|
|
253
|
-
message: string;
|
|
254
|
-
} | {
|
|
255
|
-
name: 'MemberVerificationAlreadyApprovedError';
|
|
256
|
-
message: string;
|
|
257
|
-
} | {
|
|
258
|
-
name: 'MemberVerificationDoesNotExistError';
|
|
259
|
-
message: string;
|
|
260
|
-
};
|
|
261
|
-
export interface UpdateMemberVerificationMutation {
|
|
262
|
-
updateMemberVerification?: null | UpdateMemberVerificationError;
|
|
263
|
-
}
|
|
264
|
-
export interface UpdateMemberVerificationMutationVariables {
|
|
265
|
-
input: {
|
|
266
|
-
id: string;
|
|
267
|
-
data: {
|
|
268
|
-
idFrontImage?: string;
|
|
269
|
-
selfieImage?: string;
|
|
270
|
-
address?: string;
|
|
271
|
-
permanentAddress?: string;
|
|
272
|
-
sourceOfIncome?: string;
|
|
273
|
-
natureOfWork?: string;
|
|
274
|
-
nationality?: string;
|
|
275
|
-
placeOfBirth?: string;
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
export type UpdateMemberVerificationDataInput = Simplify<UpdateMemberVerificationMutationVariables['input']['data']>;
|
|
280
|
-
export declare const updateMemberVerification: (id: string, data: UpdateMemberVerificationDataInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
281
|
-
export interface MemberVerificationQuery {
|
|
282
|
-
memberAccount: {
|
|
283
|
-
verification?: MemberVerification | null;
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
export declare const getMemberVerification: (options?: GraphQLRequestOptions) => Promise<MemberVerification | null>;
|
|
287
|
-
export interface AnnouncementsQuery extends PaginatedQuery<'announcements', Announcement> {
|
|
288
|
-
}
|
|
289
|
-
export interface AnnouncementsQueryVariables {
|
|
290
|
-
first?: number;
|
|
291
|
-
after?: string;
|
|
292
|
-
filter?: {
|
|
293
|
-
type?: EnumFilterField<AnnouncementType>;
|
|
294
|
-
visibility?: EnumFilterField<AnnouncementVisibility>;
|
|
295
|
-
activationStartDateTime?: DateFilterField;
|
|
296
|
-
activationEndDateTime?: DateFilterField;
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
export type AnnouncementsInput = SimplifyDeep<AnnouncementsQueryVariables>;
|
|
300
|
-
export declare const getAnnouncements: (input?: AnnouncementsInput, options?: GraphQLRequestOptions) => Promise<import("../types").PaginatedQueryResult<Announcement>>;
|
|
301
|
-
export type RegisterMayaMemberAccountError = {
|
|
302
|
-
name: 'AccountNameNotAvailableError';
|
|
303
|
-
message: string;
|
|
304
|
-
};
|
|
305
|
-
export interface RegisterMayaMemberAccountMutation {
|
|
306
|
-
registerMayaMemberAccount?: null | RegisterMayaMemberAccountError;
|
|
307
|
-
}
|
|
308
|
-
export interface RegisterMayaMemberAccountMutationVariables {
|
|
309
|
-
input: {
|
|
310
|
-
name: string;
|
|
311
|
-
password: string;
|
|
312
|
-
domain?: string;
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
export type RegisterMayaMemberAccountInput = Simplify<RegisterMayaMemberAccountMutationVariables['input']>;
|
|
316
|
-
export declare const registerMayaMemberAccount: (input: RegisterMayaMemberAccountInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
317
|
-
export interface ReferralCodeQuery {
|
|
318
|
-
referralCode?: string | null;
|
|
319
|
-
}
|
|
320
|
-
export declare const getReferralCode: (options?: GraphQLRequestOptions) => Promise<string | null>;
|
|
321
|
-
export interface UpdateReferralCodeMutationVariables {
|
|
322
|
-
input: {
|
|
323
|
-
code: string;
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
export type UpdateReferralCodeError = {
|
|
327
|
-
name: 'ReferralCodeNotAvailableError';
|
|
328
|
-
message: string;
|
|
329
|
-
};
|
|
330
|
-
export interface UpdateReferralCodeMutation {
|
|
331
|
-
updateReferralCode?: null | UpdateReferralCodeError;
|
|
332
|
-
}
|
|
333
|
-
export declare const updateReferralCode: (code: string, options?: GraphQLRequestOptions) => Promise<void>;
|
|
334
|
-
export interface PointsClubSettingsQuery {
|
|
335
|
-
pointsClubSettings?: PointsClubSettings | null;
|
|
336
|
-
}
|
|
337
|
-
export declare const getPointsClubSettings: (options?: GraphQLRequestOptions) => Promise<PointsClubSettings | null>;
|
|
338
|
-
export interface GoogleClientIdQuery {
|
|
339
|
-
googleClientId?: string | null;
|
|
340
|
-
}
|
|
341
|
-
export declare const getGoogleClientId: (options?: GraphQLRequestOptions) => Promise<string | null>;
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { cache } from 'react';
|
|
2
|
-
import { ACCOUNT_GRAPHQL_ENDPOINT } from '../constants/index.js';
|
|
3
|
-
import { graphqlRequest } from './graphqlRequest.js';
|
|
4
|
-
import { ANNOUNCEMENTS, CREATE_MEMBER_VERIFICATION, CREATE_MEMBER_VERIFICATION__NEXT, DELETE_MEMBER_ACCOUNT, GOOGLE_CLIENT_ID, MEMBER_ACCOUNT, MEMBER_VERIFICATION, PAYMENT_SETTINGS, POINTS_CLUB_SETTINGS, PROFILE_COMPLETION, REFERRAL_CODE, REGISTER_MAYA_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT, REGISTER_MEMBER_ACCOUNT__NEXT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER, REGISTER_MEMBER_ACCOUNT_BY_NAME, REGISTER_MEMBER_ACCOUNT_VIA_MOBILE, RESET_PASSWORD, UPDATE_MEMBER_ACCOUNT, UPDATE_MEMBER_VERIFICATION, UPDATE_REFERRAL_CODE, VERIFY_MOBILE_NUMBER, } from './queries.js';
|
|
5
|
-
import { sha256 } from './sha256.js';
|
|
6
|
-
export const getMemberAccount = cache(async (options) => {
|
|
7
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, MEMBER_ACCOUNT, undefined, options);
|
|
8
|
-
return res.memberAccount;
|
|
9
|
-
});
|
|
10
|
-
export const registerMemberAccount = async (input, options) => {
|
|
11
|
-
const { password, referralCode, verificationCode, ...rest } = input;
|
|
12
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT, {
|
|
13
|
-
input: {
|
|
14
|
-
password: await sha256(password),
|
|
15
|
-
...rest,
|
|
16
|
-
},
|
|
17
|
-
referralCode,
|
|
18
|
-
verificationCode,
|
|
19
|
-
}, options);
|
|
20
|
-
if (res.registerMemberAccount) {
|
|
21
|
-
const error = new Error();
|
|
22
|
-
error.name = res.registerMemberAccount.name;
|
|
23
|
-
error.message = res.registerMemberAccount.message;
|
|
24
|
-
Error.captureStackTrace?.(error, registerMemberAccount);
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export const registerMemberAccountViaMobile = async (input, options) => {
|
|
29
|
-
const { verificationCode, referralCode, ...rest } = input;
|
|
30
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT_VIA_MOBILE, {
|
|
31
|
-
input: {
|
|
32
|
-
...rest,
|
|
33
|
-
},
|
|
34
|
-
referralCode,
|
|
35
|
-
verificationCode,
|
|
36
|
-
}, options);
|
|
37
|
-
if (res.registerMemberAccountViaMobile) {
|
|
38
|
-
const error = new Error();
|
|
39
|
-
error.name = res.registerMemberAccountViaMobile.name;
|
|
40
|
-
error.message = res.registerMemberAccountViaMobile.message;
|
|
41
|
-
Error.captureStackTrace?.(error, registerMemberAccountViaMobile);
|
|
42
|
-
throw error;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
export const registerMemberAccountByMobileNumber = async (input, options) => {
|
|
46
|
-
const { password, mobileNumberVerificationCode, ...rest } = input;
|
|
47
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER, {
|
|
48
|
-
input: {
|
|
49
|
-
password: await sha256(password),
|
|
50
|
-
...rest,
|
|
51
|
-
},
|
|
52
|
-
mobileNumberVerificationCode,
|
|
53
|
-
}, options);
|
|
54
|
-
if (res.registerMemberAccountByMobileNumber) {
|
|
55
|
-
const error = new Error();
|
|
56
|
-
error.name = res.registerMemberAccountByMobileNumber.name;
|
|
57
|
-
error.message = res.registerMemberAccountByMobileNumber.message;
|
|
58
|
-
Error.captureStackTrace?.(error, registerMemberAccountByMobileNumber);
|
|
59
|
-
throw error;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
export const registerMemberAccount__next = async (input, options) => {
|
|
63
|
-
const { password, ...rest } = input;
|
|
64
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT__NEXT, {
|
|
65
|
-
input: {
|
|
66
|
-
password: await sha256(password),
|
|
67
|
-
...rest,
|
|
68
|
-
},
|
|
69
|
-
}, options);
|
|
70
|
-
if (res.registerMemberAccount) {
|
|
71
|
-
const error = new Error();
|
|
72
|
-
error.name = res.registerMemberAccount.name;
|
|
73
|
-
error.message = res.registerMemberAccount.message;
|
|
74
|
-
Error.captureStackTrace?.(error, registerMemberAccount__next);
|
|
75
|
-
throw error;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
export const registerMemberAccountByName = async (input, options) => {
|
|
79
|
-
const { password, ...rest } = input;
|
|
80
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MEMBER_ACCOUNT_BY_NAME, {
|
|
81
|
-
input: {
|
|
82
|
-
password: await sha256(password),
|
|
83
|
-
...rest,
|
|
84
|
-
},
|
|
85
|
-
}, options);
|
|
86
|
-
if (res.registerMemberAccountByName) {
|
|
87
|
-
const error = new Error();
|
|
88
|
-
error.name = res.registerMemberAccountByName.name;
|
|
89
|
-
error.message = res.registerMemberAccountByName.message;
|
|
90
|
-
Error.captureStackTrace?.(error, registerMemberAccountByName);
|
|
91
|
-
throw error;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
export const updateMemberAccount = async (id, data, options) => {
|
|
95
|
-
const { password, secretAnswer, ...rest } = data;
|
|
96
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, UPDATE_MEMBER_ACCOUNT, {
|
|
97
|
-
input: {
|
|
98
|
-
id,
|
|
99
|
-
data: {
|
|
100
|
-
password: password ? await sha256(password) : undefined,
|
|
101
|
-
secretAnswer: secretAnswer ? await sha256(secretAnswer) : undefined,
|
|
102
|
-
...rest,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
}, options);
|
|
106
|
-
if (res.updateMemberAccount) {
|
|
107
|
-
const error = new Error();
|
|
108
|
-
error.name = res.updateMemberAccount.name;
|
|
109
|
-
error.message = res.updateMemberAccount.message;
|
|
110
|
-
Error.captureStackTrace?.(error, updateMemberAccount);
|
|
111
|
-
throw error;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
export const deleteMemberAccount = async (id, options) => {
|
|
115
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, DELETE_MEMBER_ACCOUNT, { input: { id } }, options);
|
|
116
|
-
if (!res.deleteMemberAccount) {
|
|
117
|
-
const error = new Error();
|
|
118
|
-
error.name = 'DeleteMemberAccountError';
|
|
119
|
-
error.message = 'Failed to delete member account';
|
|
120
|
-
Error.captureStackTrace?.(error, deleteMemberAccount);
|
|
121
|
-
throw error;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
export const resetPassword = async (input, options) => {
|
|
125
|
-
const { newPassword, verificationCode, ...rest } = input;
|
|
126
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, RESET_PASSWORD, {
|
|
127
|
-
input: {
|
|
128
|
-
newPassword: await sha256(newPassword),
|
|
129
|
-
...rest,
|
|
130
|
-
},
|
|
131
|
-
verificationCode,
|
|
132
|
-
}, options);
|
|
133
|
-
if (res.resetPassword) {
|
|
134
|
-
const error = new Error();
|
|
135
|
-
error.name = res.resetPassword.name;
|
|
136
|
-
error.message = res.resetPassword.message;
|
|
137
|
-
Error.captureStackTrace?.(error, resetPassword);
|
|
138
|
-
throw error;
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
export const getProfileCompletion = cache(async (options) => {
|
|
142
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, PROFILE_COMPLETION, undefined, options);
|
|
143
|
-
return res.profileCompletion;
|
|
144
|
-
});
|
|
145
|
-
export const getPaymentSettings = cache(async (options) => {
|
|
146
|
-
return await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, PAYMENT_SETTINGS, undefined, options);
|
|
147
|
-
});
|
|
148
|
-
export const verifyMobileNumber = async (verificationCode, options) => {
|
|
149
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, VERIFY_MOBILE_NUMBER, { input: { verificationCode } }, options);
|
|
150
|
-
if (res.verifyMobileNumber) {
|
|
151
|
-
const error = new Error();
|
|
152
|
-
error.name = res.verifyMobileNumber.name;
|
|
153
|
-
error.message = res.verifyMobileNumber.message;
|
|
154
|
-
Error.captureStackTrace?.(error, verifyMobileNumber);
|
|
155
|
-
throw error;
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
export const createMemberVerification = async (input, options) => {
|
|
159
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, CREATE_MEMBER_VERIFICATION, { input }, options);
|
|
160
|
-
if (res.createMemberVerification) {
|
|
161
|
-
const error = new Error();
|
|
162
|
-
error.name = res.createMemberVerification.name;
|
|
163
|
-
error.message = res.createMemberVerification.message;
|
|
164
|
-
Error.captureStackTrace?.(error, createMemberVerification);
|
|
165
|
-
throw error;
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
export const createMemberVerification__next = async (input, options) => {
|
|
169
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, CREATE_MEMBER_VERIFICATION__NEXT, { input }, options);
|
|
170
|
-
if (res.createMemberVerification) {
|
|
171
|
-
const error = new Error();
|
|
172
|
-
error.name = res.createMemberVerification.name;
|
|
173
|
-
error.message = res.createMemberVerification.message;
|
|
174
|
-
Error.captureStackTrace?.(error, createMemberVerification__next);
|
|
175
|
-
throw error;
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
export const updateMemberVerification = async (id, data, options) => {
|
|
179
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, UPDATE_MEMBER_VERIFICATION, { input: { id, data } }, options);
|
|
180
|
-
if (res.updateMemberVerification) {
|
|
181
|
-
const error = new Error();
|
|
182
|
-
error.name = res.updateMemberVerification.name;
|
|
183
|
-
error.message = res.updateMemberVerification.message;
|
|
184
|
-
Error.captureStackTrace?.(error, updateMemberVerification);
|
|
185
|
-
throw error;
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
export const getMemberVerification = cache(async (options) => {
|
|
189
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, MEMBER_VERIFICATION, undefined, options);
|
|
190
|
-
return res.memberAccount.verification ?? null;
|
|
191
|
-
});
|
|
192
|
-
export const getAnnouncements = cache(async (input, options) => {
|
|
193
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, ANNOUNCEMENTS, input, options);
|
|
194
|
-
return res.announcements;
|
|
195
|
-
});
|
|
196
|
-
export const registerMayaMemberAccount = async (input, options) => {
|
|
197
|
-
const { password, ...rest } = input;
|
|
198
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REGISTER_MAYA_MEMBER_ACCOUNT, {
|
|
199
|
-
input: {
|
|
200
|
-
password: await sha256(password),
|
|
201
|
-
...rest,
|
|
202
|
-
},
|
|
203
|
-
}, options);
|
|
204
|
-
if (res.registerMayaMemberAccount) {
|
|
205
|
-
const error = new Error();
|
|
206
|
-
error.name = res.registerMayaMemberAccount.name;
|
|
207
|
-
error.message = res.registerMayaMemberAccount.message;
|
|
208
|
-
Error.captureStackTrace?.(error, registerMayaMemberAccount);
|
|
209
|
-
throw error;
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
export const getReferralCode = cache(async (options) => {
|
|
213
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, REFERRAL_CODE, undefined, options);
|
|
214
|
-
return res.referralCode ?? null;
|
|
215
|
-
});
|
|
216
|
-
export const updateReferralCode = async (code, options) => {
|
|
217
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, UPDATE_REFERRAL_CODE, { input: { code } }, options);
|
|
218
|
-
if (res.updateReferralCode) {
|
|
219
|
-
const error = new Error();
|
|
220
|
-
error.name = res.updateReferralCode.name;
|
|
221
|
-
error.message = res.updateReferralCode.message;
|
|
222
|
-
Error.captureStackTrace?.(error, updateReferralCode);
|
|
223
|
-
throw error;
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
export const getPointsClubSettings = cache(async (options) => {
|
|
227
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, POINTS_CLUB_SETTINGS, undefined, options);
|
|
228
|
-
return res.pointsClubSettings ?? null;
|
|
229
|
-
});
|
|
230
|
-
export const getGoogleClientId = cache(async (options) => {
|
|
231
|
-
const res = await graphqlRequest(ACCOUNT_GRAPHQL_ENDPOINT, GOOGLE_CLIENT_ID, undefined, options);
|
|
232
|
-
return res.googleClientId ?? null;
|
|
233
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type { Authenticator } from '../types';
|
|
2
|
-
import { type HttpRequestOptions } from './httpRequest';
|
|
3
|
-
export interface CreateSessionInput__UsernameAndPassword {
|
|
4
|
-
type: 'NAME_AND_PASSWORD';
|
|
5
|
-
name: string;
|
|
6
|
-
password: string;
|
|
7
|
-
}
|
|
8
|
-
export interface CreateSessionInput__MobileNumber {
|
|
9
|
-
type: 'MOBILE_NUMBER';
|
|
10
|
-
mobileNumber: string;
|
|
11
|
-
verificationCode: string;
|
|
12
|
-
}
|
|
13
|
-
export interface CreateSessionInput__Maya {
|
|
14
|
-
type: 'MAYA';
|
|
15
|
-
session: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CreateSessionInput__Libangan {
|
|
18
|
-
type: 'LIBANGAN';
|
|
19
|
-
session: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CreateSessionInput__Token {
|
|
22
|
-
type: 'SOCIALS' | 'CABINET' | 'SINGLE_USE_TOKEN';
|
|
23
|
-
token: string;
|
|
24
|
-
}
|
|
25
|
-
export type CreateSessionInput = CreateSessionInput__UsernameAndPassword | CreateSessionInput__MobileNumber | CreateSessionInput__Maya | CreateSessionInput__Libangan | CreateSessionInput__Token;
|
|
26
|
-
export interface CreateSessionTwoFactorAuthDisabledMutation {
|
|
27
|
-
session: {
|
|
28
|
-
id: string;
|
|
29
|
-
dateTimeCreated: string;
|
|
30
|
-
};
|
|
31
|
-
accessToken: string;
|
|
32
|
-
refreshToken: string;
|
|
33
|
-
authenticator?: never;
|
|
34
|
-
}
|
|
35
|
-
export interface CreateSessionTwoFactorAuthEnabledMutation {
|
|
36
|
-
authenticator: Authenticator;
|
|
37
|
-
}
|
|
38
|
-
export type CreateSessionMutation = CreateSessionTwoFactorAuthDisabledMutation | CreateSessionTwoFactorAuthEnabledMutation;
|
|
39
|
-
export declare function createSession(input: CreateSessionInput, options?: HttpRequestOptions): Promise<CreateSessionMutation>;
|
|
40
|
-
export interface AuthenticateInput__SecurityQuestion {
|
|
41
|
-
type: 'SECURITY_QUESTION';
|
|
42
|
-
token: string;
|
|
43
|
-
secretAnswer: string;
|
|
44
|
-
}
|
|
45
|
-
export interface AuthenticateMutation extends RefreshSessionMutation {
|
|
46
|
-
}
|
|
47
|
-
export type AuthenticateInput = AuthenticateInput__SecurityQuestion;
|
|
48
|
-
export declare function authenticate(input: AuthenticateInput, options?: HttpRequestOptions): Promise<AuthenticateMutation>;
|
|
49
|
-
export interface RefreshSessionMutation extends Omit<CreateSessionTwoFactorAuthDisabledMutation, 'authenticator'> {
|
|
50
|
-
}
|
|
51
|
-
export declare function refreshSession(options?: HttpRequestOptions): Promise<RefreshSessionMutation>;
|
|
52
|
-
export declare function destroySession(options?: HttpRequestOptions): Promise<void>;
|
|
53
|
-
export declare function verifySession(options?: HttpRequestOptions): Promise<boolean>;
|
|
54
|
-
export interface SendVerificationCodeInput {
|
|
55
|
-
strict?: boolean;
|
|
56
|
-
channel: 'SMS' | 'EMAIL';
|
|
57
|
-
recipient: string;
|
|
58
|
-
}
|
|
59
|
-
export declare function sendVerificationCode(input: SendVerificationCodeInput, options?: HttpRequestOptions): Promise<{
|
|
60
|
-
json<T>(): Promise<T>;
|
|
61
|
-
headers: Headers;
|
|
62
|
-
ok: boolean;
|
|
63
|
-
redirected: boolean;
|
|
64
|
-
status: number;
|
|
65
|
-
statusText: string;
|
|
66
|
-
type: ResponseType;
|
|
67
|
-
url: string;
|
|
68
|
-
clone(): Response;
|
|
69
|
-
body: ReadableStream<Uint8Array> | null;
|
|
70
|
-
bodyUsed: boolean;
|
|
71
|
-
arrayBuffer(): Promise<ArrayBuffer>;
|
|
72
|
-
blob(): Promise<Blob>;
|
|
73
|
-
bytes(): Promise<Uint8Array>;
|
|
74
|
-
formData(): Promise<FormData>;
|
|
75
|
-
text(): Promise<string>;
|
|
76
|
-
}>;
|
|
77
|
-
export interface CreateSingleUseTokenMutation {
|
|
78
|
-
token: string;
|
|
79
|
-
}
|
|
80
|
-
export declare function createSingleUseToken(options?: HttpRequestOptions): Promise<CreateSingleUseTokenMutation>;
|