@vertikalx/vtx-backend-client 3.0.1-dev-max.2 → 3.0.1-dev-max.4

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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/src/api/api-call-headers.js.map +1 -1
  3. package/src/api/backend-response.js.map +1 -1
  4. package/src/api/domains.js.map +1 -1
  5. package/src/api/response-builder.js.map +1 -1
  6. package/src/api/types.js.map +1 -1
  7. package/src/api/vtx-apikey-api.js.map +1 -1
  8. package/src/api/vtx-base-api.js.map +1 -1
  9. package/src/api/vtx-mobile-api.js.map +1 -1
  10. package/src/api/vtx-web-browser-api.js.map +1 -1
  11. package/src/api/vtx-web-server-api.js.map +1 -1
  12. package/src/client/index.js.map +1 -1
  13. package/src/client/runtime/batcher.js.map +1 -1
  14. package/src/client/runtime/createClient.js.map +1 -1
  15. package/src/client/runtime/error.js.map +1 -1
  16. package/src/client/runtime/fetcher.js.map +1 -1
  17. package/src/client/runtime/generateGraphqlOperation.js.map +1 -1
  18. package/src/client/runtime/index.js.map +1 -1
  19. package/src/client/runtime/linkTypeMap.js.map +1 -1
  20. package/src/client/runtime/typeSelection.js.map +1 -1
  21. package/src/client/runtime/types.js.map +1 -1
  22. package/src/client/schema.d.ts +0 -8
  23. package/src/client/schema.js.map +1 -1
  24. package/src/client/types.d.ts +0 -5
  25. package/src/client/types.js +0 -15
  26. package/src/client/types.js.map +1 -1
  27. package/src/generated/graphql.d.ts +0 -12
  28. package/src/generated/graphql.js +0 -7
  29. package/src/generated/graphql.js.map +1 -1
  30. package/src/index.js.map +1 -1
  31. package/src/client/schema.graphql +0 -4256
  32. package/src/operations/admin.graphql +0 -19
  33. package/src/operations/ai-coach.graphql +0 -117
  34. package/src/operations/athlete.graphql +0 -1764
  35. package/src/operations/auth.graphql +0 -301
  36. package/src/operations/campaign.graphql +0 -775
  37. package/src/operations/email-campaign.graphql +0 -160
  38. package/src/operations/followers.graphql +0 -45
  39. package/src/operations/integrations.graphql +0 -216
  40. package/src/operations/leaderboard.graphql +0 -54
  41. package/src/operations/media.graphql +0 -179
  42. package/src/operations/notifications.graphql +0 -93
  43. package/src/operations/offers.graphql +0 -368
  44. package/src/operations/onboarding.graphql +0 -29
  45. package/src/operations/sponsor.graphql +0 -368
  46. package/src/operations/sport.graphql +0 -132
  47. package/src/operations/user.graphql +0 -446
  48. package/tsconfig.lib.json +0 -10
@@ -1,368 +0,0 @@
1
- # Sponsor, brand, and sponsorship operations
2
- # Extracted from vtx-base-api.ts sponsor/brand methods
3
-
4
- # --- Fragments ---
5
-
6
- fragment AWSS3FileFields on AWSS3File {
7
- _id
8
- name
9
- contentType
10
- size
11
- useType
12
- url
13
- key
14
- }
15
-
16
- fragment BrandFullFields on Brand {
17
- _id
18
- name
19
- slogan
20
- website
21
- affiliateLink
22
- description
23
- approved
24
- published
25
- logo {
26
- ...AWSS3FileFields
27
- }
28
- banner {
29
- ...AWSS3FileFields
30
- }
31
- stats {
32
- campaigns
33
- sponsorships
34
- sports
35
- athletes
36
- }
37
- operatorIds
38
- }
39
-
40
- fragment SponsorshipFullFields on Sponsorship {
41
- _id
42
- title
43
- description
44
- cashValue
45
- otherValue
46
- brand {
47
- _id
48
- name
49
- slogan
50
- website
51
- description
52
- approved
53
- published
54
- logo {
55
- ...AWSS3FileFields
56
- }
57
- banner {
58
- ...AWSS3FileFields
59
- }
60
- stats {
61
- campaigns
62
- sponsorships
63
- sports
64
- athletes
65
- }
66
- operatorIds
67
- }
68
- banner {
69
- ...AWSS3FileFields
70
- }
71
- criteria {
72
- _id
73
- label
74
- qualifications {
75
- ... on AgeQualification {
76
- type
77
- value
78
- operator
79
- }
80
- ... on DistanceQualification {
81
- type
82
- maxDistance
83
- latitude
84
- longitude
85
- }
86
- ... on GenderQualification {
87
- type
88
- operator
89
- values
90
- }
91
- ... on LocationQualification {
92
- type
93
- operator
94
- countries {
95
- _id
96
- name
97
- }
98
- states {
99
- _id
100
- name
101
- country {
102
- _id
103
- name
104
- }
105
- }
106
- cities {
107
- _id
108
- name
109
- localizedName
110
- state {
111
- _id
112
- name
113
- country {
114
- _id
115
- name
116
- }
117
- }
118
- latitude
119
- longitude
120
- timezone
121
- }
122
- }
123
- ... on NationalityQualification {
124
- type
125
- operator
126
- countries {
127
- _id
128
- name
129
- }
130
- }
131
- ... on ScoreQualification {
132
- type
133
- scoreType
134
- operator
135
- value
136
- }
137
- ... on SportsLevelQualification {
138
- type
139
- operator
140
- level
141
- }
142
- ... on SportsQualification {
143
- type
144
- sports
145
- operator
146
- }
147
- }
148
- }
149
- sponsorshipItems {
150
- _id
151
- quantity
152
- title
153
- value
154
- type
155
- }
156
- deadline
157
- startDate
158
- duration {
159
- length
160
- unit
161
- }
162
- terms
163
- isPrivate
164
- stats {
165
- totalApplications
166
- newApplications
167
- discardedApplications
168
- selectedApplications
169
- approvedApplications
170
- grantedSponsorships
171
- remainingSponsorships
172
- }
173
- approved
174
- published
175
- }
176
-
177
- fragment PaginationInfoFields on EnhancedPaginationInfoType {
178
- currentPage
179
- totalPages
180
- totalItems
181
- itemsPerPage
182
- hasNextPage
183
- hasPreviousPage
184
- }
185
-
186
- # --- Brand Queries ---
187
-
188
- query FindBrandByName($name: String!, $translations: Boolean!) {
189
- getBrandByName(name: $name, translations: $translations) {
190
- _id
191
- name
192
- slogan
193
- website
194
- description
195
- logo {
196
- name
197
- contentType
198
- size
199
- useType
200
- url
201
- key
202
- }
203
- banner {
204
- name
205
- contentType
206
- size
207
- useType
208
- url
209
- key
210
- }
211
- translations {
212
- name
213
- slogan
214
- description
215
- language
216
- }
217
- }
218
- }
219
-
220
- query GetBrands {
221
- brands {
222
- ...BrandFullFields
223
- sponsors {
224
- _id
225
- sponsor {
226
- _id
227
- name
228
- description
229
- }
230
- }
231
- }
232
- }
233
-
234
- query GetBrandsPaginated($query: BrandQueryDto) {
235
- getBrandsPaginated(query: $query) {
236
- items {
237
- _id
238
- name
239
- slogan
240
- website
241
- affiliateLink
242
- description
243
- approved
244
- published
245
- logo {
246
- ...AWSS3FileFields
247
- }
248
- banner {
249
- ...AWSS3FileFields
250
- }
251
- sponsors {
252
- _id
253
- sponsor {
254
- _id
255
- name
256
- description
257
- }
258
- }
259
- }
260
- pagination {
261
- ...PaginationInfoFields
262
- }
263
- }
264
- }
265
-
266
- # --- Brand Mutations ---
267
-
268
- mutation CreateBrand($input: CreateBrandDto!) {
269
- createBrand(input: $input) {
270
- _id
271
- }
272
- }
273
-
274
- mutation UpdateBrand($id: String!, $input: CreateBrandDto!) {
275
- updateBrand(id: $id, input: $input) {
276
- _id
277
- }
278
- }
279
-
280
- mutation DeleteBrand($id: String!) {
281
- deleteBrand(id: $id)
282
- }
283
-
284
- mutation LinkBrandToSponsor($brandId: String!, $sponsorId: String!) {
285
- linkBrandToSponsor(brandId: $brandId, sponsorId: $sponsorId) {
286
- _id
287
- }
288
- }
289
-
290
- mutation UnlinkBrandFromSponsor($brandId: String!, $sponsorId: String!) {
291
- unlinkBrandFromSponsor(brandId: $brandId, sponsorId: $sponsorId) {
292
- _id
293
- }
294
- }
295
-
296
- # --- Sponsor Queries ---
297
-
298
- query GetSponsors {
299
- sponsors {
300
- _id
301
- name
302
- description
303
- tenant {
304
- _id
305
- name
306
- }
307
- }
308
- }
309
-
310
- query GetSponsorsPaginated($query: SponsorQueryDto) {
311
- getSponsorsPaginated(query: $query) {
312
- items {
313
- _id
314
- name
315
- description
316
- approved
317
- tenant {
318
- _id
319
- name
320
- }
321
- }
322
- pagination {
323
- ...PaginationInfoFields
324
- }
325
- }
326
- }
327
-
328
- # --- Sponsor Mutations ---
329
-
330
- mutation CreateSponsor($input: CreateSponsorDto!) {
331
- createSponsor(input: $input) {
332
- _id
333
- }
334
- }
335
-
336
- mutation UpdateSponsor($id: String!, $input: UpdateSponsorDto!) {
337
- updateSponsor(id: $id, input: $input) {
338
- _id
339
- }
340
- }
341
-
342
- mutation DeleteSponsor($id: String!) {
343
- deleteSponsor(id: $id)
344
- }
345
-
346
- # --- Sponsorship Queries ---
347
-
348
- query GetPublicSponsorships {
349
- getPublicSponsorships {
350
- ...SponsorshipFullFields
351
- }
352
- }
353
-
354
- query GetTenantSponsorships {
355
- getTenantSponsorships {
356
- ...SponsorshipFullFields
357
- }
358
- }
359
-
360
- # --- Sponsorship Mutations ---
361
-
362
- mutation CreateSponsorship($input: CreateSponsorshipDto!) {
363
- createSponsorship(input: $input) {
364
- _id
365
- }
366
- }
367
-
368
- # SendAthleteInvitations is in user.graphql (Plan 02A) — not duplicated here
@@ -1,132 +0,0 @@
1
- # Sports, Levels, Countries, States reference data operations
2
- # Extracted from vtx-base-api.ts + schema.graphql admin mutations
3
-
4
- query GetSports {
5
- getSports {
6
- _id
7
- name
8
- }
9
- }
10
-
11
- query GetSportsPaginated($query: SportQueryDto) {
12
- getSportsPaginated(query: $query) {
13
- items {
14
- _id
15
- name
16
- priority
17
- verified
18
- resultType
19
- }
20
- pagination {
21
- currentPage
22
- totalPages
23
- totalItems
24
- itemsPerPage
25
- hasNextPage
26
- hasPreviousPage
27
- }
28
- }
29
- }
30
-
31
- query GetSportLevels {
32
- getSportLevels {
33
- _id
34
- label
35
- index
36
- }
37
- }
38
-
39
- query GetCountries {
40
- getCountries {
41
- _id
42
- name
43
- }
44
- }
45
-
46
- query GetStates {
47
- getStates {
48
- _id
49
- name
50
- country {
51
- _id
52
- name
53
- }
54
- }
55
- }
56
-
57
- query GetCountryStates($countryId: String!) {
58
- getCountryStates(countryId: $countryId) {
59
- _id
60
- name
61
- country {
62
- _id
63
- name
64
- }
65
- }
66
- }
67
-
68
- query GetStateCities($stateId: String!) {
69
- getStateCities(stateId: $stateId) {
70
- _id
71
- name
72
- localizedName
73
- state {
74
- _id
75
- name
76
- country {
77
- _id
78
- name
79
- }
80
- }
81
- latitude
82
- longitude
83
- timezone
84
- }
85
- }
86
-
87
- mutation CreateSport($input: CreateSportDto!) {
88
- createSport(input: $input) {
89
- _id
90
- name
91
- }
92
- }
93
-
94
- mutation UpdateSport($input: UpdateSportDto!) {
95
- updateSport(input: $input) {
96
- _id
97
- name
98
- }
99
- }
100
-
101
- mutation CreateSportLevel($input: CreateSportLevelDto!) {
102
- createSportLevel(input: $input) {
103
- _id
104
- label
105
- index
106
- }
107
- }
108
-
109
- mutation CreateCountry($input: CreateCountryDto!) {
110
- createCountry(input: $input) {
111
- _id
112
- name
113
- }
114
- }
115
-
116
- mutation CreateState($input: CreateStateDto!) {
117
- createState(input: $input) {
118
- _id
119
- name
120
- }
121
- }
122
-
123
- mutation CreateCity($input: CreateCityDto!) {
124
- createCity(input: $input) {
125
- _id
126
- name
127
- localizedName
128
- latitude
129
- longitude
130
- timezone
131
- }
132
- }