@vertikalx/vtx-backend-client 3.0.0-dev.9 → 3.0.1-dev-max.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -3
- package/src/api/api-call-headers.js.map +1 -1
- package/src/api/api-call-headers.ts +35 -0
- package/src/api/backend-response.js.map +1 -1
- package/src/api/backend-response.ts +14 -0
- package/src/api/domains.js.map +1 -1
- package/src/api/domains.ts +6 -0
- package/src/api/response-builder.js.map +1 -1
- package/src/api/response-builder.ts +165 -0
- package/src/api/types.js.map +1 -1
- package/src/api/types.ts +9 -0
- package/src/api/vtx-apikey-api.js.map +1 -1
- package/src/api/vtx-apikey-api.ts +23 -0
- package/src/api/vtx-base-api.d.ts +230 -15
- package/src/api/vtx-base-api.js +590 -8340
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/api/vtx-base-api.ts +2253 -0
- package/src/api/vtx-mobile-api.d.ts +3 -1
- package/src/api/vtx-mobile-api.js +3 -37
- package/src/api/vtx-mobile-api.js.map +1 -1
- package/src/api/vtx-mobile-api.ts +43 -0
- package/src/api/vtx-web-browser-api.js +1 -0
- package/src/api/vtx-web-browser-api.js.map +1 -1
- package/src/api/vtx-web-browser-api.ts +46 -0
- package/src/api/vtx-web-server-api.js +1 -0
- package/src/api/vtx-web-server-api.js.map +1 -1
- package/src/api/vtx-web-server-api.ts +41 -0
- package/src/client/index.js.map +1 -1
- package/src/client/index.ts +65 -0
- package/src/client/runtime/batcher.js.map +1 -1
- package/src/client/runtime/batcher.ts +275 -0
- package/src/client/runtime/createClient.js.map +1 -1
- package/src/client/runtime/createClient.ts +68 -0
- package/src/client/runtime/error.js.map +1 -1
- package/src/client/runtime/error.ts +29 -0
- package/src/client/runtime/fetcher.js.map +1 -1
- package/src/client/runtime/fetcher.ts +97 -0
- package/src/client/runtime/generateGraphqlOperation.js.map +1 -1
- package/src/client/runtime/generateGraphqlOperation.ts +225 -0
- package/src/client/runtime/index.js.map +1 -1
- package/src/client/runtime/index.ts +13 -0
- package/src/client/runtime/linkTypeMap.js.map +1 -1
- package/src/client/runtime/linkTypeMap.ts +156 -0
- package/src/client/runtime/typeSelection.js.map +1 -1
- package/src/client/runtime/typeSelection.ts +95 -0
- package/src/client/runtime/types.js.map +1 -1
- package/src/client/runtime/types.ts +69 -0
- package/src/client/schema.d.ts +3521 -765
- package/src/client/schema.graphql +4256 -0
- package/src/client/schema.js +693 -90
- package/src/client/schema.js.map +1 -1
- package/src/client/schema.ts +8329 -0
- package/src/client/types.d.ts +1817 -379
- package/src/client/types.js +6010 -2227
- package/src/client/types.js.map +1 -1
- package/src/client/types.ts +10578 -0
- package/src/generated/graphql.d.ts +13696 -0
- package/src/generated/graphql.js +5830 -0
- package/src/generated/graphql.js.map +1 -0
- package/src/generated/graphql.ts +12445 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +16 -0
- package/src/operations/admin.graphql +19 -0
- package/src/operations/ai-coach.graphql +117 -0
- package/src/operations/athlete.graphql +1764 -0
- package/src/operations/auth.graphql +301 -0
- package/src/operations/campaign.graphql +775 -0
- package/src/operations/email-campaign.graphql +160 -0
- package/src/operations/followers.graphql +45 -0
- package/src/operations/integrations.graphql +216 -0
- package/src/operations/leaderboard.graphql +54 -0
- package/src/operations/media.graphql +179 -0
- package/src/operations/notifications.graphql +93 -0
- package/src/operations/offers.graphql +368 -0
- package/src/operations/onboarding.graphql +29 -0
- package/src/operations/sponsor.graphql +368 -0
- package/src/operations/sport.graphql +132 -0
- package/src/operations/user.graphql +446 -0
- package/tsconfig.lib.json +10 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
# User query/management operations
|
|
2
|
+
# Extracted from vtx-base-api.ts
|
|
3
|
+
|
|
4
|
+
query FindUserByEmail($email: String!) {
|
|
5
|
+
findUserByEmail(email: $email) {
|
|
6
|
+
_id
|
|
7
|
+
loginEmail
|
|
8
|
+
suspended
|
|
9
|
+
domains {
|
|
10
|
+
_id
|
|
11
|
+
name
|
|
12
|
+
description
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
query FindVtxUser($input: FindVtxUserDto!) {
|
|
18
|
+
findVtxUser(input: $input) {
|
|
19
|
+
_id
|
|
20
|
+
loginEmail
|
|
21
|
+
suspended
|
|
22
|
+
domains {
|
|
23
|
+
_id
|
|
24
|
+
name
|
|
25
|
+
description
|
|
26
|
+
tenant {
|
|
27
|
+
_id
|
|
28
|
+
name
|
|
29
|
+
tenant_uri
|
|
30
|
+
domain {
|
|
31
|
+
_id
|
|
32
|
+
name
|
|
33
|
+
description
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
query GetUserImagesFromEmail($loginEmail: String!) {
|
|
41
|
+
getUserImagesFromEmail(loginEmail: $loginEmail) {
|
|
42
|
+
profilePictureUrl
|
|
43
|
+
cardPictureUrl
|
|
44
|
+
bannerPictureUrl
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
mutation RegisterNewDomainTenant($tenant: CreateTenantInput!) {
|
|
49
|
+
registerNewDomainTenant(tenant: $tenant) {
|
|
50
|
+
_id
|
|
51
|
+
name
|
|
52
|
+
email
|
|
53
|
+
tenant_uri
|
|
54
|
+
owner {
|
|
55
|
+
_id
|
|
56
|
+
loginEmail
|
|
57
|
+
suspended
|
|
58
|
+
}
|
|
59
|
+
domain {
|
|
60
|
+
_id
|
|
61
|
+
name
|
|
62
|
+
description
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
mutation RegisterNewDomainTenantWithLogin($tenant: CreateTenantInput!) {
|
|
68
|
+
registerNewDomainTenantWithLogin(tenant: $tenant) {
|
|
69
|
+
_id
|
|
70
|
+
name
|
|
71
|
+
email
|
|
72
|
+
tenant_uri
|
|
73
|
+
owner {
|
|
74
|
+
_id
|
|
75
|
+
loginEmail
|
|
76
|
+
suspended
|
|
77
|
+
}
|
|
78
|
+
domain {
|
|
79
|
+
_id
|
|
80
|
+
name
|
|
81
|
+
description
|
|
82
|
+
}
|
|
83
|
+
user {
|
|
84
|
+
_id
|
|
85
|
+
loginEmail
|
|
86
|
+
suspended
|
|
87
|
+
domains {
|
|
88
|
+
_id
|
|
89
|
+
name
|
|
90
|
+
description
|
|
91
|
+
}
|
|
92
|
+
token {
|
|
93
|
+
actualToken
|
|
94
|
+
refreshToken
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
mutation RegisterUserToDomainFromEmail($input: RegisterUserToDomainFromEmailInput!) {
|
|
101
|
+
registerUserToDomainFromEmail(input: $input) {
|
|
102
|
+
_id
|
|
103
|
+
loginEmail
|
|
104
|
+
suspended
|
|
105
|
+
domains {
|
|
106
|
+
_id
|
|
107
|
+
name
|
|
108
|
+
description
|
|
109
|
+
tenant {
|
|
110
|
+
_id
|
|
111
|
+
name
|
|
112
|
+
tenant_uri
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
mutation RegisterMember($input: RegisterMemberDto!) {
|
|
119
|
+
registerMember(input: $input) {
|
|
120
|
+
_id
|
|
121
|
+
fullName
|
|
122
|
+
screenName
|
|
123
|
+
memberPicture {
|
|
124
|
+
_id
|
|
125
|
+
name
|
|
126
|
+
contentType
|
|
127
|
+
size
|
|
128
|
+
useType
|
|
129
|
+
url
|
|
130
|
+
key
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
query FindMemberForUser($loginEmail: String!) {
|
|
136
|
+
findMemberForUser(loginEmail: $loginEmail) {
|
|
137
|
+
_id
|
|
138
|
+
fullName
|
|
139
|
+
screenName
|
|
140
|
+
memberPicture {
|
|
141
|
+
_id
|
|
142
|
+
name
|
|
143
|
+
contentType
|
|
144
|
+
size
|
|
145
|
+
useType
|
|
146
|
+
url
|
|
147
|
+
key
|
|
148
|
+
pendingDelete
|
|
149
|
+
}
|
|
150
|
+
donations {
|
|
151
|
+
checkoutSessionId
|
|
152
|
+
fundingCheckoutSessionDataId
|
|
153
|
+
donationMode
|
|
154
|
+
completed
|
|
155
|
+
confirmed
|
|
156
|
+
donationAmount
|
|
157
|
+
completedDate
|
|
158
|
+
createdDate
|
|
159
|
+
athleteId
|
|
160
|
+
athleteName
|
|
161
|
+
message
|
|
162
|
+
campaignReference {
|
|
163
|
+
_id
|
|
164
|
+
title
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
query FindSponsorAthleteInvitation($input: FindSponsorAthleteInvitationDto!) {
|
|
171
|
+
findSponsorAthleteInvitation(input: $input) {
|
|
172
|
+
_id
|
|
173
|
+
name
|
|
174
|
+
email
|
|
175
|
+
dateSent
|
|
176
|
+
sponsor {
|
|
177
|
+
_id
|
|
178
|
+
name
|
|
179
|
+
description
|
|
180
|
+
approved
|
|
181
|
+
}
|
|
182
|
+
magicLink {
|
|
183
|
+
_id
|
|
184
|
+
code
|
|
185
|
+
type
|
|
186
|
+
url
|
|
187
|
+
expires
|
|
188
|
+
isExpired
|
|
189
|
+
}
|
|
190
|
+
brand {
|
|
191
|
+
_id
|
|
192
|
+
name
|
|
193
|
+
slogan
|
|
194
|
+
website
|
|
195
|
+
description
|
|
196
|
+
approved
|
|
197
|
+
published
|
|
198
|
+
logo {
|
|
199
|
+
_id
|
|
200
|
+
name
|
|
201
|
+
contentType
|
|
202
|
+
size
|
|
203
|
+
useType
|
|
204
|
+
url
|
|
205
|
+
key
|
|
206
|
+
}
|
|
207
|
+
banner {
|
|
208
|
+
_id
|
|
209
|
+
name
|
|
210
|
+
contentType
|
|
211
|
+
size
|
|
212
|
+
useType
|
|
213
|
+
url
|
|
214
|
+
key
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
status
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
mutation SendAthleteInvitations($input: InviteAthletesDto!) {
|
|
222
|
+
sendAthleteInvitations(input: $input) {
|
|
223
|
+
_id
|
|
224
|
+
name
|
|
225
|
+
email
|
|
226
|
+
dateSent
|
|
227
|
+
sponsor {
|
|
228
|
+
_id
|
|
229
|
+
name
|
|
230
|
+
tenant {
|
|
231
|
+
_id
|
|
232
|
+
name
|
|
233
|
+
tenant_uri
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
magicLink {
|
|
237
|
+
_id
|
|
238
|
+
code
|
|
239
|
+
type
|
|
240
|
+
url
|
|
241
|
+
expires
|
|
242
|
+
data
|
|
243
|
+
isExpired
|
|
244
|
+
}
|
|
245
|
+
brand {
|
|
246
|
+
_id
|
|
247
|
+
name
|
|
248
|
+
logo {
|
|
249
|
+
_id
|
|
250
|
+
name
|
|
251
|
+
contentType
|
|
252
|
+
url
|
|
253
|
+
useType
|
|
254
|
+
}
|
|
255
|
+
website
|
|
256
|
+
}
|
|
257
|
+
status
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
query FindCitiesStartingWith($text: String!) {
|
|
262
|
+
findCitiesStartingWith(text: $text) {
|
|
263
|
+
_id
|
|
264
|
+
name
|
|
265
|
+
localizedName
|
|
266
|
+
state {
|
|
267
|
+
_id
|
|
268
|
+
name
|
|
269
|
+
country {
|
|
270
|
+
_id
|
|
271
|
+
name
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
latitude
|
|
275
|
+
longitude
|
|
276
|
+
timezone
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
query FindCityById($cityId: String!) {
|
|
281
|
+
findCityById(cityId: $cityId) {
|
|
282
|
+
_id
|
|
283
|
+
name
|
|
284
|
+
localizedName
|
|
285
|
+
state {
|
|
286
|
+
_id
|
|
287
|
+
name
|
|
288
|
+
country {
|
|
289
|
+
_id
|
|
290
|
+
name
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
latitude
|
|
294
|
+
longitude
|
|
295
|
+
timezone
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
query ScreenNameAvailability($input: existValueDto!) {
|
|
300
|
+
screenNameAvailability(input: $input) {
|
|
301
|
+
exist
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
query GetAllUsers {
|
|
306
|
+
getAllUsers {
|
|
307
|
+
_id
|
|
308
|
+
loginEmail
|
|
309
|
+
firstName
|
|
310
|
+
lastName
|
|
311
|
+
screenName
|
|
312
|
+
suspended
|
|
313
|
+
domains {
|
|
314
|
+
_id
|
|
315
|
+
name
|
|
316
|
+
description
|
|
317
|
+
}
|
|
318
|
+
athlete {
|
|
319
|
+
_id
|
|
320
|
+
firstName
|
|
321
|
+
lastName
|
|
322
|
+
screenName
|
|
323
|
+
dob
|
|
324
|
+
competitionGender
|
|
325
|
+
country {
|
|
326
|
+
_id
|
|
327
|
+
name
|
|
328
|
+
}
|
|
329
|
+
location {
|
|
330
|
+
_id
|
|
331
|
+
cityNameGeocode
|
|
332
|
+
stateNameGeocode
|
|
333
|
+
countryIso2CodeGeocode
|
|
334
|
+
city {
|
|
335
|
+
_id
|
|
336
|
+
name
|
|
337
|
+
localizedName
|
|
338
|
+
state {
|
|
339
|
+
_id
|
|
340
|
+
name
|
|
341
|
+
country {
|
|
342
|
+
_id
|
|
343
|
+
name
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
mainSport {
|
|
349
|
+
_id
|
|
350
|
+
name
|
|
351
|
+
}
|
|
352
|
+
mainSportLevel {
|
|
353
|
+
_id
|
|
354
|
+
label
|
|
355
|
+
}
|
|
356
|
+
allSports {
|
|
357
|
+
_id
|
|
358
|
+
name
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
member {
|
|
362
|
+
_id
|
|
363
|
+
fullName
|
|
364
|
+
screenName
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
query GetUsersPaginated($query: UserQueryDto) {
|
|
370
|
+
getUsersPaginated(query: $query) {
|
|
371
|
+
items {
|
|
372
|
+
_id
|
|
373
|
+
loginEmail
|
|
374
|
+
firstName
|
|
375
|
+
lastName
|
|
376
|
+
screenName
|
|
377
|
+
suspended
|
|
378
|
+
domains {
|
|
379
|
+
_id
|
|
380
|
+
name
|
|
381
|
+
description
|
|
382
|
+
}
|
|
383
|
+
athlete {
|
|
384
|
+
_id
|
|
385
|
+
mainSport {
|
|
386
|
+
_id
|
|
387
|
+
name
|
|
388
|
+
}
|
|
389
|
+
mainSportLevel {
|
|
390
|
+
_id
|
|
391
|
+
label
|
|
392
|
+
}
|
|
393
|
+
competitionGender
|
|
394
|
+
dob
|
|
395
|
+
country {
|
|
396
|
+
_id
|
|
397
|
+
name
|
|
398
|
+
}
|
|
399
|
+
location {
|
|
400
|
+
city {
|
|
401
|
+
_id
|
|
402
|
+
name
|
|
403
|
+
state {
|
|
404
|
+
_id
|
|
405
|
+
name
|
|
406
|
+
country {
|
|
407
|
+
_id
|
|
408
|
+
name
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
cityNameGeocode
|
|
413
|
+
stateNameGeocode
|
|
414
|
+
}
|
|
415
|
+
aboutMe
|
|
416
|
+
allSports {
|
|
417
|
+
_id
|
|
418
|
+
name
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
member {
|
|
422
|
+
_id
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
pagination {
|
|
426
|
+
currentPage
|
|
427
|
+
totalPages
|
|
428
|
+
totalItems
|
|
429
|
+
itemsPerPage
|
|
430
|
+
hasNextPage
|
|
431
|
+
hasPreviousPage
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
query GetDatabaseTextFile($input: GetDatabaseFileDto!) {
|
|
437
|
+
getDatabaseTextFile(input: $input) {
|
|
438
|
+
_id
|
|
439
|
+
identifier
|
|
440
|
+
version
|
|
441
|
+
contentType
|
|
442
|
+
updated
|
|
443
|
+
created
|
|
444
|
+
content
|
|
445
|
+
}
|
|
446
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"outDir": "../../dist/libs/vtx-backend-client",
|
|
6
|
+
"paths":{}
|
|
7
|
+
},
|
|
8
|
+
"include": ["src/**/*", "LICENSE.md", "README.md"],
|
|
9
|
+
"exclude": ["node_modules", "dist", "test", "**/*spec.ts"]
|
|
10
|
+
}
|