@vertikalx/vtx-backend-client 3.0.0-dev.8 → 3.0.1-dev-max.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.
Files changed (111) hide show
  1. package/package.json +16 -3
  2. package/src/api/api-call-headers.ts +35 -0
  3. package/src/api/backend-response.ts +14 -0
  4. package/src/api/domains.ts +6 -0
  5. package/src/api/response-builder.ts +165 -0
  6. package/src/api/types.ts +9 -0
  7. package/src/api/vtx-apikey-api.ts +23 -0
  8. package/src/api/vtx-base-api.ts +2253 -0
  9. package/src/api/vtx-mobile-api.ts +43 -0
  10. package/src/api/vtx-web-browser-api.ts +46 -0
  11. package/src/api/vtx-web-server-api.ts +41 -0
  12. package/src/client/index.ts +65 -0
  13. package/src/client/runtime/batcher.ts +275 -0
  14. package/src/client/runtime/createClient.ts +68 -0
  15. package/src/client/runtime/error.ts +29 -0
  16. package/src/client/runtime/fetcher.ts +97 -0
  17. package/src/client/runtime/generateGraphqlOperation.ts +225 -0
  18. package/src/client/runtime/index.ts +13 -0
  19. package/src/client/runtime/linkTypeMap.ts +156 -0
  20. package/src/client/runtime/typeSelection.ts +95 -0
  21. package/src/client/runtime/types.ts +69 -0
  22. package/src/client/schema.graphql +4256 -0
  23. package/src/client/schema.ts +8329 -0
  24. package/src/client/{types.js → types.ts} +6016 -2230
  25. package/src/generated/graphql.ts +12445 -0
  26. package/src/{index.d.ts → index.ts} +7 -2
  27. package/src/operations/admin.graphql +19 -0
  28. package/src/operations/ai-coach.graphql +117 -0
  29. package/src/operations/athlete.graphql +1764 -0
  30. package/src/operations/auth.graphql +301 -0
  31. package/src/operations/campaign.graphql +775 -0
  32. package/src/operations/email-campaign.graphql +160 -0
  33. package/src/operations/followers.graphql +45 -0
  34. package/src/operations/integrations.graphql +216 -0
  35. package/src/operations/leaderboard.graphql +54 -0
  36. package/src/operations/media.graphql +179 -0
  37. package/src/operations/notifications.graphql +93 -0
  38. package/src/operations/offers.graphql +368 -0
  39. package/src/operations/onboarding.graphql +29 -0
  40. package/src/operations/sponsor.graphql +368 -0
  41. package/src/operations/sport.graphql +132 -0
  42. package/src/operations/user.graphql +446 -0
  43. package/tsconfig.lib.json +10 -0
  44. package/src/api/api-call-headers.d.ts +0 -12
  45. package/src/api/api-call-headers.js +0 -16
  46. package/src/api/api-call-headers.js.map +0 -1
  47. package/src/api/backend-response.d.ts +0 -10
  48. package/src/api/backend-response.js +0 -3
  49. package/src/api/backend-response.js.map +0 -1
  50. package/src/api/domains.d.ts +0 -4
  51. package/src/api/domains.js +0 -8
  52. package/src/api/domains.js.map +0 -1
  53. package/src/api/response-builder.d.ts +0 -4
  54. package/src/api/response-builder.js +0 -123
  55. package/src/api/response-builder.js.map +0 -1
  56. package/src/api/types.d.ts +0 -2
  57. package/src/api/types.js +0 -3
  58. package/src/api/types.js.map +0 -1
  59. package/src/api/vtx-apikey-api.d.ts +0 -6
  60. package/src/api/vtx-apikey-api.js +0 -19
  61. package/src/api/vtx-apikey-api.js.map +0 -1
  62. package/src/api/vtx-base-api.d.ts +0 -134
  63. package/src/api/vtx-base-api.js +0 -8586
  64. package/src/api/vtx-base-api.js.map +0 -1
  65. package/src/api/vtx-mobile-api.d.ts +0 -9
  66. package/src/api/vtx-mobile-api.js +0 -62
  67. package/src/api/vtx-mobile-api.js.map +0 -1
  68. package/src/api/vtx-web-browser-api.d.ts +0 -7
  69. package/src/api/vtx-web-browser-api.js +0 -36
  70. package/src/api/vtx-web-browser-api.js.map +0 -1
  71. package/src/api/vtx-web-server-api.d.ts +0 -7
  72. package/src/api/vtx-web-server-api.js +0 -33
  73. package/src/api/vtx-web-server-api.js.map +0 -1
  74. package/src/client/index.d.ts +0 -25
  75. package/src/client/index.js +0 -44
  76. package/src/client/index.js.map +0 -1
  77. package/src/client/runtime/batcher.d.ts +0 -36
  78. package/src/client/runtime/batcher.js +0 -123
  79. package/src/client/runtime/batcher.js.map +0 -1
  80. package/src/client/runtime/createClient.d.ts +0 -17
  81. package/src/client/runtime/createClient.js +0 -28
  82. package/src/client/runtime/createClient.js.map +0 -1
  83. package/src/client/runtime/error.d.ts +0 -15
  84. package/src/client/runtime/error.js +0 -19
  85. package/src/client/runtime/error.js.map +0 -1
  86. package/src/client/runtime/fetcher.d.ts +0 -10
  87. package/src/client/runtime/fetcher.js +0 -68
  88. package/src/client/runtime/fetcher.js.map +0 -1
  89. package/src/client/runtime/generateGraphqlOperation.d.ts +0 -30
  90. package/src/client/runtime/generateGraphqlOperation.js +0 -134
  91. package/src/client/runtime/generateGraphqlOperation.js.map +0 -1
  92. package/src/client/runtime/index.d.ts +0 -11
  93. package/src/client/runtime/index.js +0 -17
  94. package/src/client/runtime/index.js.map +0 -1
  95. package/src/client/runtime/linkTypeMap.d.ts +0 -9
  96. package/src/client/runtime/linkTypeMap.js +0 -95
  97. package/src/client/runtime/linkTypeMap.js.map +0 -1
  98. package/src/client/runtime/typeSelection.d.ts +0 -28
  99. package/src/client/runtime/typeSelection.js +0 -3
  100. package/src/client/runtime/typeSelection.js.map +0 -1
  101. package/src/client/runtime/types.d.ts +0 -55
  102. package/src/client/runtime/types.js +0 -3
  103. package/src/client/runtime/types.js.map +0 -1
  104. package/src/client/schema.d.ts +0 -4886
  105. package/src/client/schema.js +0 -1051
  106. package/src/client/schema.js.map +0 -1
  107. package/src/client/types.d.ts +0 -2601
  108. package/src/client/types.js.map +0 -1
  109. package/src/index.js +0 -28
  110. package/src/index.js.map +0 -1
  111. package/tsconfig.lib.tsbuildinfo +0 -1
@@ -0,0 +1,301 @@
1
+ # Authentication & Token operations
2
+ # Extracted from vtx-base-api.ts
3
+
4
+ mutation LoginUserFromEmail($email: String!, $loginMethod: String!) {
5
+ loginUserFromEmail(email: $email, loginMethod: $loginMethod) {
6
+ actualToken
7
+ refreshToken
8
+ }
9
+ }
10
+
11
+ mutation CreateUserAndLogin($user: CreateActiveUserInput!) {
12
+ createUserAndLogin(user: $user) {
13
+ _id
14
+ loginEmail
15
+ suspended
16
+ token {
17
+ actualToken
18
+ refreshToken
19
+ }
20
+ }
21
+ }
22
+
23
+ mutation LoginUserFromCredentialsVtx($username: String!, $password: String!) {
24
+ loginUserFromCredentialsVtx(username: $username, password: $password) {
25
+ _id
26
+ loginEmail
27
+ suspended
28
+ domains {
29
+ _id
30
+ name
31
+ description
32
+ tenant {
33
+ _id
34
+ name
35
+ tenant_uri
36
+ domain {
37
+ _id
38
+ name
39
+ description
40
+ }
41
+ }
42
+ }
43
+ loginMethods
44
+ token {
45
+ actualToken
46
+ refreshToken
47
+ }
48
+ }
49
+ }
50
+
51
+ query ValidateUserCredentialsVtx($username: String!, $password: String!) {
52
+ validateUserCredentialsVtx(username: $username, password: $password) {
53
+ _id
54
+ loginEmail
55
+ suspended
56
+ domains {
57
+ _id
58
+ name
59
+ description
60
+ tenant {
61
+ _id
62
+ name
63
+ tenant_uri
64
+ domain {
65
+ _id
66
+ name
67
+ description
68
+ }
69
+ }
70
+ }
71
+ loginMethods
72
+ }
73
+ }
74
+
75
+ mutation RefreshToken($dto: RefreshTokenInput!) {
76
+ refreshToken(dto: $dto) {
77
+ actualToken
78
+ refreshToken
79
+ }
80
+ }
81
+
82
+ query IsUserSuspended($loginEmail: String!) {
83
+ isUserSuspended(loginEmail: $loginEmail)
84
+ }
85
+
86
+ mutation RegisterUser($input: RegisterUserDto!) {
87
+ registerUser(input: $input) {
88
+ _id
89
+ loginEmail
90
+ suspended
91
+ domains {
92
+ _id
93
+ name
94
+ description
95
+ tenant {
96
+ _id
97
+ name
98
+ tenant_uri
99
+ domain {
100
+ _id
101
+ name
102
+ description
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+
109
+ mutation RegisterAthleteUser($input: RegisterUserDto!) {
110
+ registerAthleteUser(input: $input) {
111
+ _id
112
+ loginEmail
113
+ suspended
114
+ domains {
115
+ _id
116
+ name
117
+ description
118
+ tenant {
119
+ _id
120
+ name
121
+ tenant_uri
122
+ domain {
123
+ _id
124
+ name
125
+ description
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ mutation RegisterSponsorUser($input: RegisterUserDto!) {
133
+ registerSponsorUser(input: $input) {
134
+ _id
135
+ loginEmail
136
+ suspended
137
+ domains {
138
+ _id
139
+ name
140
+ description
141
+ tenant {
142
+ _id
143
+ name
144
+ tenant_uri
145
+ domain {
146
+ _id
147
+ name
148
+ description
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ mutation PreRegisterAthleteUser($input: RegisterUserDto!) {
156
+ preRegisterAthleteUser(input: $input) {
157
+ _id
158
+ type
159
+ recipient
160
+ expires
161
+ isExpired
162
+ createdDate
163
+ }
164
+ }
165
+
166
+ mutation ConfirmAthleteUserRegistrationAndLogin($input: VerifyCodeDto!) {
167
+ confirmAthleteUserRegistrationAndLogin(input: $input) {
168
+ _id
169
+ loginEmail
170
+ suspended
171
+ domains {
172
+ _id
173
+ name
174
+ description
175
+ tenant {
176
+ _id
177
+ name
178
+ tenant_uri
179
+ domain {
180
+ _id
181
+ name
182
+ description
183
+ }
184
+ }
185
+ }
186
+ token {
187
+ actualToken
188
+ refreshToken
189
+ }
190
+ }
191
+ }
192
+
193
+ mutation ConfirmAthleteUserRegistration($input: VerifyCodeDto!) {
194
+ confirmAthleteUserRegistration(input: $input) {
195
+ _id
196
+ loginEmail
197
+ suspended
198
+ domains {
199
+ _id
200
+ name
201
+ description
202
+ tenant {
203
+ _id
204
+ name
205
+ tenant_uri
206
+ domain {
207
+ _id
208
+ name
209
+ description
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ mutation CreateResetPasswordCode($input: String!) {
217
+ createResetPasswordCode(input: $input) {
218
+ field
219
+ changed
220
+ }
221
+ }
222
+
223
+ query GetResetVerificationCode($input: String!) {
224
+ getResetVerificationCode(input: $input) {
225
+ _id
226
+ type
227
+ recipient
228
+ expires
229
+ isExpired
230
+ createdDate
231
+ }
232
+ }
233
+
234
+ query VerifyCode($input: VerifyCodeDto!) {
235
+ verifyCode(input: $input) {
236
+ result
237
+ code {
238
+ _id
239
+ type
240
+ recipient
241
+ expires
242
+ isExpired
243
+ createdDate
244
+ }
245
+ error {
246
+ errorCode
247
+ errorMessage
248
+ }
249
+ }
250
+ }
251
+
252
+ mutation ResetUserPassword($input: resetPasswordDto!) {
253
+ resetUserPassword(input: $input) {
254
+ field
255
+ changed
256
+ }
257
+ }
258
+
259
+ mutation UpdateUserSuspendedStatus($input: UpdateUserSuspendedStatusDto!) {
260
+ updateUserSuspendedStatus(input: $input) {
261
+ field
262
+ changed
263
+ oldValue
264
+ newValue
265
+ }
266
+ }
267
+
268
+ mutation DeleteMyAccount {
269
+ deleteMyAccount {
270
+ success
271
+ deletedUserId
272
+ deletedUserEmail
273
+ deletedUserType
274
+ servicesDeleted
275
+ cognitoDeleted
276
+ dbDeleted
277
+ errorMessage
278
+ }
279
+ }
280
+
281
+ mutation DeleteVtxUser($input: DeleteVtxUserDto!) {
282
+ deleteVtxUser(input: $input) {
283
+ success
284
+ deletedUserId
285
+ deletedUserEmail
286
+ deletedUserType
287
+ servicesDeleted
288
+ cognitoDeleted
289
+ dbDeleted
290
+ errorMessage
291
+ }
292
+ }
293
+
294
+ mutation ValidateToken($input: String!) {
295
+ validateToken(input: $input) {
296
+ accessToken
297
+ refreshToken
298
+ expiresAt
299
+ refreshExpiresAt
300
+ }
301
+ }