@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,160 +0,0 @@
1
- # Email campaign management operations
2
- # Extracted from vtx-base-api.ts email campaign methods
3
- # Uses proper typed inputs from schema.graphql (not `any` as in vtx-base-api.ts)
4
-
5
- # --- Queries ---
6
-
7
- query GetEmailCampaigns($status: String, $search: String, $page: Int = 1, $limit: Int = 20) {
8
- getEmailCampaigns(status: $status, search: $search, page: $page, limit: $limit) {
9
- campaigns {
10
- _id
11
- subject
12
- templateId
13
- templateName
14
- htmlContent
15
- audienceFilters
16
- segmentId
17
- status
18
- scheduledFor
19
- sentAt
20
- recipientCount
21
- createdBy
22
- createdAt
23
- updatedAt
24
- testSentAt
25
- deliveryStats {
26
- delivered
27
- opens
28
- uniqueOpens
29
- clicks
30
- uniqueClicks
31
- bounces
32
- spamReports
33
- lastUpdated
34
- }
35
- segment {
36
- _id
37
- name
38
- filters
39
- createdBy
40
- createdAt
41
- }
42
- }
43
- total
44
- }
45
- }
46
-
47
- query GetAudiencePreview($filters: AudienceFilterDto!) {
48
- getAudiencePreview(filters: $filters) {
49
- total
50
- users {
51
- firstName
52
- lastName
53
- email
54
- userType
55
- }
56
- }
57
- }
58
-
59
- query GetSendGridTemplates {
60
- getSendGridTemplates {
61
- id
62
- name
63
- subject
64
- updatedAt
65
- }
66
- }
67
-
68
- query GetSendGridTemplatePreview($templateId: String!) {
69
- getSendGridTemplatePreview(templateId: $templateId)
70
- }
71
-
72
- query GetEmailSegments {
73
- getEmailSegments {
74
- _id
75
- name
76
- filters
77
- createdBy
78
- createdAt
79
- }
80
- }
81
-
82
- # --- Mutations ---
83
-
84
- mutation CreateEmailCampaign($input: CreateEmailCampaignDto!) {
85
- createEmailCampaign(input: $input) {
86
- _id
87
- subject
88
- status
89
- createdAt
90
- updatedAt
91
- }
92
- }
93
-
94
- mutation UpdateEmailCampaign($id: String!, $input: UpdateEmailCampaignDto!) {
95
- updateEmailCampaign(id: $id, input: $input) {
96
- _id
97
- subject
98
- status
99
- updatedAt
100
- }
101
- }
102
-
103
- mutation DeleteEmailCampaign($id: String!) {
104
- deleteEmailCampaign(id: $id)
105
- }
106
-
107
- mutation CloneEmailCampaign($id: String!) {
108
- cloneEmailCampaign(id: $id) {
109
- _id
110
- subject
111
- status
112
- createdAt
113
- }
114
- }
115
-
116
- mutation SendTestEmail($campaignId: String!, $adminEmail: String!) {
117
- sendTestEmail(campaignId: $campaignId, adminEmail: $adminEmail)
118
- }
119
-
120
- mutation SendBulkEmail($campaignId: String!) {
121
- sendBulkEmail(campaignId: $campaignId)
122
- }
123
-
124
- mutation ScheduleEmailCampaign($campaignId: String!, $scheduledFor: DateTime!) {
125
- scheduleEmailCampaign(campaignId: $campaignId, scheduledFor: $scheduledFor) {
126
- _id
127
- status
128
- scheduledFor
129
- }
130
- }
131
-
132
- mutation CancelScheduledEmail($campaignId: String!) {
133
- cancelScheduledEmail(campaignId: $campaignId) {
134
- _id
135
- status
136
- }
137
- }
138
-
139
- mutation CreateEmailSegment($input: CreateEmailSegmentDto!) {
140
- createEmailSegment(input: $input) {
141
- _id
142
- name
143
- filters
144
- createdBy
145
- createdAt
146
- }
147
- }
148
-
149
- mutation UpdateEmailSegment($id: String!, $input: UpdateEmailSegmentDto!) {
150
- updateEmailSegment(id: $id, input: $input) {
151
- _id
152
- name
153
- filters
154
- createdAt
155
- }
156
- }
157
-
158
- mutation DeleteEmailSegment($id: String!) {
159
- deleteEmailSegment(id: $id)
160
- }
@@ -1,45 +0,0 @@
1
- # ============================================================
2
- # Follower Operations
3
- # ============================================================
4
-
5
- # ============================================================
6
- # Follower Mutations
7
- # ============================================================
8
-
9
- mutation FollowAthlete($input: FollowAthleteInput!) {
10
- followAthlete(input: $input)
11
- }
12
-
13
- mutation UnfollowAthlete($input: UnfollowAthleteInput!) {
14
- unfollowAthlete(input: $input)
15
- }
16
-
17
- # ============================================================
18
- # Follower Queries
19
- # ============================================================
20
-
21
- query IsFollowingAthlete($input: IsFollowingAthleteInput!) {
22
- isFollowingAthlete(input: $input) {
23
- isFollowing
24
- }
25
- }
26
-
27
- query MyFollowedAthletes($input: FollowedAthletesQueryInput) {
28
- myFollowedAthletes(input: $input) {
29
- athletes {
30
- id
31
- firstName
32
- lastName
33
- screenName
34
- profilePicture {
35
- _id
36
- url
37
- key
38
- }
39
- sportName
40
- vtxScore
41
- }
42
- total
43
- hasMore
44
- }
45
- }
@@ -1,216 +0,0 @@
1
- # Strava and Instagram integration operations
2
- # Extracted from vtx-base-api.ts
3
-
4
- # ============================================================
5
- # QUERIES
6
- # ============================================================
7
-
8
- # getAthleteIntegrationsByAthlete method (line 9513) — calls getAthleteInstagramIntegration in schema
9
- # Note: Despite method name suggesting "all integrations", it actually queries only Instagram integration
10
- query GetAthleteIntegrationsByAthlete {
11
- getAthleteInstagramIntegration {
12
- _id
13
- athlete {
14
- _id
15
- }
16
- hasInstagramIntegration
17
- instagramTokenExpires
18
- instagramUserData {
19
- user_id
20
- username
21
- name
22
- account_type
23
- followers_count
24
- media_count
25
- }
26
- instagramMediaData {
27
- data {
28
- id
29
- caption
30
- media_type
31
- media_url
32
- permalink
33
- thumbnail_url
34
- timestamp
35
- username
36
- like_count
37
- comments_count
38
- insights {
39
- data {
40
- name
41
- period
42
- values
43
- }
44
- }
45
- }
46
- paging {
47
- cursors {
48
- before
49
- after
50
- }
51
- next
52
- }
53
- }
54
- }
55
- }
56
-
57
- # getAthleteStravaIntegration method (line 9620)
58
- query GetAthleteStravaIntegration {
59
- getAthleteStravaIntegration {
60
- _id
61
- athlete {
62
- _id
63
- }
64
- hasStravaIntegration
65
- stravaTokenExpires
66
- stravaAthleteData {
67
- id
68
- username
69
- firstname
70
- lastname
71
- bio
72
- city
73
- state
74
- country
75
- sex
76
- premium
77
- profile
78
- created_at
79
- updated_at
80
- weight
81
- }
82
- }
83
- }
84
-
85
- # getAthleteInstagramIntegration method (line 9674)
86
- query GetAthleteInstagramIntegration {
87
- getAthleteInstagramIntegration {
88
- _id
89
- athlete {
90
- _id
91
- }
92
- hasInstagramIntegration
93
- instagramTokenExpires
94
- instagramUserData {
95
- user_id
96
- username
97
- name
98
- account_type
99
- followers_count
100
- media_count
101
- }
102
- instagramMediaData {
103
- data {
104
- id
105
- caption
106
- media_type
107
- media_url
108
- permalink
109
- thumbnail_url
110
- timestamp
111
- username
112
- like_count
113
- comments_count
114
- insights {
115
- data {
116
- name
117
- period
118
- values
119
- }
120
- }
121
- }
122
- paging {
123
- cursors {
124
- before
125
- after
126
- }
127
- next
128
- }
129
- }
130
- }
131
- }
132
-
133
- # getAthleteIntegrations method (line 9790) — combined Strava + Instagram
134
- query GetAthleteIntegrations {
135
- getAthleteIntegrations {
136
- _id
137
- athlete {
138
- _id
139
- }
140
- hasStravaIntegration
141
- stravaTokenExpires
142
- stravaAthleteData {
143
- id
144
- username
145
- firstname
146
- lastname
147
- bio
148
- city
149
- state
150
- country
151
- sex
152
- premium
153
- profile
154
- created_at
155
- updated_at
156
- weight
157
- }
158
- hasInstagramIntegration
159
- instagramTokenExpires
160
- instagramUserData {
161
- user_id
162
- username
163
- name
164
- account_type
165
- followers_count
166
- media_count
167
- }
168
- instagramMediaData {
169
- data {
170
- id
171
- caption
172
- media_type
173
- media_url
174
- permalink
175
- thumbnail_url
176
- timestamp
177
- username
178
- like_count
179
- comments_count
180
- insights {
181
- data {
182
- name
183
- period
184
- values
185
- }
186
- }
187
- }
188
- paging {
189
- cursors {
190
- before
191
- after
192
- }
193
- next
194
- }
195
- }
196
- }
197
- }
198
-
199
- # getStravaLoginUrl — exists in schema, returns String
200
- query GetStravaLoginUrl {
201
- getStravaLoginUrl
202
- }
203
-
204
- # ============================================================
205
- # MUTATIONS
206
- # ============================================================
207
-
208
- # updateAthleteIntegration method (line 10178) — returns Boolean
209
- mutation UpdateAthleteIntegration($type: String!) {
210
- updateAthleteIntegration(type: $type)
211
- }
212
-
213
- # unlinkInstagram — exists in schema, returns Boolean
214
- mutation UnlinkInstagram {
215
- unlinkInstagram
216
- }
@@ -1,54 +0,0 @@
1
- # ============================================================
2
- # Leaderboard and Ranking Operations
3
- # ============================================================
4
-
5
- query GetLeaderboard($input: LeaderboardQueryDto) {
6
- getLeaderboard(input: $input) {
7
- entries {
8
- rank
9
- rankChange
10
- athleteId
11
- screenName
12
- firstName
13
- lastName
14
- profilePicture
15
- score
16
- countryCode
17
- nationalityCode
18
- cityName
19
- countryRank
20
- sportId
21
- vtxScore
22
- trainingScore
23
- socialScore
24
- competitionScore
25
- mainSport
26
- mainSportLevel
27
- }
28
- pagination {
29
- page
30
- limit
31
- total
32
- totalPages
33
- }
34
- filters {
35
- scoreType
36
- sportId
37
- countryCode
38
- sportLevelId
39
- }
40
- }
41
- }
42
-
43
- query GetUserRank($input: UserRankQueryDto!) {
44
- getUserRank(input: $input) {
45
- globalRank
46
- countryRank
47
- score
48
- scoreType
49
- }
50
- }
51
-
52
- mutation RebuildLeaderboardCache {
53
- rebuildLeaderboardCache
54
- }
@@ -1,179 +0,0 @@
1
- # S3 upload, album, and picture operations
2
- # Extracted from vtx-base-api.ts
3
- #
4
- # CUSTOM CHECKERS FOR PLAN 03:
5
- # GetS3UploadUrl: checker = (r) => r?.getUploadUrl?.uploadUrl !== undefined && r?.getUploadUrl?.uploadUrl !== null
6
- # GetVtxS3UploadUrl: checker = (r) => r?.getS3UploadUrl?.uploadUrl !== undefined && r?.getS3UploadUrl?.uploadUrl !== null
7
- # AddAlbumPictures: checker = (r) => r?.AddAlbumPictures?.result === 'success' || r?.AddAlbumPictures?.result === 'partial'
8
-
9
- # ============================================================
10
- # FRAGMENTS - Reusable album field selections
11
- # ============================================================
12
-
13
- fragment AlbumFields on Album {
14
- _id
15
- label
16
- description
17
- displayIndex
18
- competitionId
19
- visibility
20
- photos {
21
- _id
22
- photo {
23
- _id
24
- name
25
- contentType
26
- size
27
- useType
28
- url
29
- }
30
- }
31
- }
32
-
33
- fragment S3UploadFields on AWSS3UploadUrl {
34
- uploadUrl
35
- fields {
36
- key
37
- value
38
- }
39
- downloadUrl
40
- bucket
41
- key
42
- }
43
-
44
- # ============================================================
45
- # QUERIES
46
- # ============================================================
47
-
48
- # getS3UploadUrl method (line 1272) — calls getUploadUrl in schema
49
- # Note: method name is getS3UploadUrl but schema query is getUploadUrl
50
- query GetS3UploadUrl($input: AWSS3GetUploadDto!) {
51
- getUploadUrl(input: $input) {
52
- ...S3UploadFields
53
- }
54
- }
55
-
56
- # getVtxS3UploadUrl method (line 1354) — calls getS3UploadUrl in schema
57
- # Note: method name is getVtxS3UploadUrl but schema query is getS3UploadUrl
58
- query GetVtxS3UploadUrl($input: AWSS3GetUploadDto!) {
59
- getS3UploadUrl(input: $input) {
60
- ...S3UploadFields
61
- }
62
- }
63
-
64
- # getAthleteAlbums method (line 8847) — no arguments
65
- query GetAthleteAlbums {
66
- getAthleteAlbums {
67
- ...AlbumFields
68
- }
69
- }
70
-
71
- # getPublicAthleteAlbums method (line 8976)
72
- query GetPublicAthleteAlbums($athleteId: String!) {
73
- getPublicAthleteAlbums(athleteId: $athleteId) {
74
- ...AlbumFields
75
- }
76
- }
77
-
78
- # getAthleteAlbumsById method (line 9042) — calls getAthleteAlbumId in schema
79
- query GetAthleteAlbumsById($input: String!) {
80
- getAthleteAlbumId(input: $input) {
81
- ...AlbumFields
82
- }
83
- }
84
-
85
- # getAndSetAlbumById method (line 9107)
86
- query GetAndSetAlbumById($input: String!) {
87
- getAndSetAlbumById(input: $input) {
88
- ...AlbumFields
89
- }
90
- }
91
-
92
- # NOTE: getReceipt and getReceiptUrl are in campaign.graphql (receipt operations are campaign-related)
93
-
94
- # ============================================================
95
- # MUTATIONS
96
- # ============================================================
97
-
98
- # addAlbumsPictures method (line 8184) — calls AddAlbumPictures in schema
99
- mutation AddAlbumPictures($input: UploadAlbumsPicturesDto!) {
100
- AddAlbumPictures(input: $input) {
101
- added
102
- failedToAdd
103
- failureReason {
104
- code
105
- message
106
- }
107
- result
108
- }
109
- }
110
-
111
- # editAlbumsPictures method (line 8241) — calls editAlbum in schema
112
- mutation EditAlbumsPictures($input: UploadAlbumsPicturesDto!) {
113
- editAlbum(input: $input) {
114
- ...AlbumFields
115
- }
116
- }
117
-
118
- # createAthleteAlbum method (line 8309)
119
- mutation CreateAthleteAlbum($input: UploadAlbumsPicturesDto!) {
120
- createAthleteAlbum(input: $input) {
121
- ...AlbumFields
122
- }
123
- }
124
-
125
- # deleteAthleteAlbum method (line 8791)
126
- mutation DeleteAthleteAlbum($input: DeleteSingleValueDto!) {
127
- deleteAthleteAlbum(input: $input) {
128
- idToDelete
129
- deleted
130
- failureReason {
131
- code
132
- message
133
- }
134
- }
135
- }
136
-
137
- # reorderAlbums method (line 8911) — calls reorderAlbumIndex in schema
138
- mutation ReorderAlbums($input: EditDisplayIndexDto!) {
139
- reorderAlbumIndex(input: $input) {
140
- _id
141
- label
142
- description
143
- displayIndex
144
- photos {
145
- _id
146
- photo {
147
- _id
148
- name
149
- contentType
150
- size
151
- useType
152
- url
153
- }
154
- }
155
- }
156
- }
157
-
158
- # deleteAlbumFotos method (line 10727) — calls deleteAthletePhotos in schema
159
- mutation DeleteAlbumFotos($input: DeleteValuesDto!) {
160
- deleteAthletePhotos(input: $input) {
161
- deleted
162
- failedToDelete
163
- failureReason {
164
- code
165
- message
166
- }
167
- result
168
- }
169
- }
170
-
171
- # deleteUploadedTypeKeyFile method (line 10208)
172
- mutation DeleteUploadedTypeKeyFile($input: AWSS3DeleteUseTypeKeyDto!) {
173
- deleteUploadedTypeKeyFile(input: $input) {
174
- httpStatus
175
- result
176
- message
177
- errors
178
- }
179
- }