@footballbingo/client 4.2.0 → 4.4.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.
- package/dist/sdk.gen.d.ts +2 -2
- package/dist/sdk.gen.js +2 -2
- package/dist/types.gen.d.ts +36 -21
- package/package.json +1 -1
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -788,9 +788,9 @@ export declare const getLineupById: <ThrowOnError extends boolean = false>(optio
|
|
|
788
788
|
*/
|
|
789
789
|
export declare const updateLineup: <ThrowOnError extends boolean = false>(options: Options<UpdateLineupData, ThrowOnError>) => import("./client").RequestResult<UpdateLineupResponses, UpdateLineupErrors, ThrowOnError, "fields">;
|
|
790
790
|
/**
|
|
791
|
-
* Export lineup as
|
|
791
|
+
* Export lineup as PNG
|
|
792
792
|
*
|
|
793
|
-
* Export a lineup as
|
|
793
|
+
* Export a lineup as a rendered PNG at one of four social-media aspect ratios (og, feed, story, wide). Powered by satori + resvg with the v3 brand palette.
|
|
794
794
|
*/
|
|
795
795
|
export declare const exportLineup: <ThrowOnError extends boolean = false>(options: Options<ExportLineupData, ThrowOnError>) => import("./client").RequestResult<ExportLineupResponses, ExportLineupErrors, ThrowOnError, "fields">;
|
|
796
796
|
/**
|
package/dist/sdk.gen.js
CHANGED
|
@@ -1302,9 +1302,9 @@ export const updateLineup = (options) => (options.client ?? client).put({
|
|
|
1302
1302
|
}
|
|
1303
1303
|
});
|
|
1304
1304
|
/**
|
|
1305
|
-
* Export lineup as
|
|
1305
|
+
* Export lineup as PNG
|
|
1306
1306
|
*
|
|
1307
|
-
* Export a lineup as
|
|
1307
|
+
* Export a lineup as a rendered PNG at one of four social-media aspect ratios (og, feed, story, wide). Powered by satori + resvg with the v3 brand palette.
|
|
1308
1308
|
*/
|
|
1309
1309
|
export const exportLineup = (options) => (options.client ?? client).get({ url: '/api/v1/community/lineups/{id}/export', ...options });
|
|
1310
1310
|
/**
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -3340,7 +3340,7 @@ export type DeleteUserResponse = {
|
|
|
3340
3340
|
};
|
|
3341
3341
|
export type UserActivityItem = {
|
|
3342
3342
|
id: string;
|
|
3343
|
-
type: 'game_joined' | 'game_completed' | 'bingo_achieved' | 'line_completed' | 'achievement_unlocked' | 'level_up' | 'prediction_made' | 'prediction_resolved' | 'lineup_created' | 'tactics_created' | 'transfer_plan_created' | 'comment_posted' | 'match_rated' | 'user_followed' | '
|
|
3343
|
+
type: 'game_joined' | 'game_completed' | 'bingo_achieved' | 'line_completed' | 'achievement_unlocked' | 'level_up' | 'prediction_made' | 'prediction_resolved' | 'lineup_created' | 'tactics_created' | 'transfer_plan_created' | 'comment_posted' | 'match_rated' | 'user_followed' | 'mini_game_completed' | 'spin_wheel_spun' | 'challenge_completed';
|
|
3344
3344
|
timestamp: string;
|
|
3345
3345
|
description: string;
|
|
3346
3346
|
metadata: {
|
|
@@ -3813,6 +3813,11 @@ export type LineupResponse = {
|
|
|
3813
3813
|
};
|
|
3814
3814
|
};
|
|
3815
3815
|
isPublic?: boolean;
|
|
3816
|
+
isDraft?: boolean;
|
|
3817
|
+
autoShareToFeed?: boolean;
|
|
3818
|
+
fixtureId?: string | null;
|
|
3819
|
+
coverImageUrl?: string | null;
|
|
3820
|
+
sharesCount?: number;
|
|
3816
3821
|
shareToken: string;
|
|
3817
3822
|
shareUrl?: string;
|
|
3818
3823
|
viewCount?: number;
|
|
@@ -3863,7 +3868,16 @@ export type LineupListItem = {
|
|
|
3863
3868
|
} | null;
|
|
3864
3869
|
};
|
|
3865
3870
|
};
|
|
3871
|
+
preview?: Array<{
|
|
3872
|
+
position: string;
|
|
3873
|
+
photo: string | null;
|
|
3874
|
+
}>;
|
|
3866
3875
|
isPublic?: boolean;
|
|
3876
|
+
isDraft?: boolean;
|
|
3877
|
+
autoShareToFeed?: boolean;
|
|
3878
|
+
fixtureId?: string | null;
|
|
3879
|
+
coverImageUrl?: string | null;
|
|
3880
|
+
sharesCount?: number;
|
|
3867
3881
|
shareToken: string;
|
|
3868
3882
|
shareUrl?: string;
|
|
3869
3883
|
viewCount?: number;
|
|
@@ -3901,6 +3915,13 @@ export type TrendingLineupsResponse = {
|
|
|
3901
3915
|
viewCount: number;
|
|
3902
3916
|
commentsCount?: number;
|
|
3903
3917
|
likesCount?: number;
|
|
3918
|
+
sharesCount?: number;
|
|
3919
|
+
coverImageUrl?: string | null;
|
|
3920
|
+
fixtureId?: string | null;
|
|
3921
|
+
preview?: Array<{
|
|
3922
|
+
position: string;
|
|
3923
|
+
photo: string | null;
|
|
3924
|
+
}>;
|
|
3904
3925
|
isLikedByUser?: boolean;
|
|
3905
3926
|
createdAt: string;
|
|
3906
3927
|
playerCount: number;
|
|
@@ -7471,6 +7492,9 @@ export type CreateLineupInput = {
|
|
|
7471
7492
|
};
|
|
7472
7493
|
description?: string;
|
|
7473
7494
|
isPublic?: boolean;
|
|
7495
|
+
isDraft?: boolean;
|
|
7496
|
+
autoShareToFeed?: boolean;
|
|
7497
|
+
fixtureId?: string;
|
|
7474
7498
|
};
|
|
7475
7499
|
export type UpdateLineupInput = {
|
|
7476
7500
|
title?: string;
|
|
@@ -7507,6 +7531,9 @@ export type UpdateLineupInput = {
|
|
|
7507
7531
|
};
|
|
7508
7532
|
description?: string;
|
|
7509
7533
|
isPublic?: boolean;
|
|
7534
|
+
isDraft?: boolean;
|
|
7535
|
+
autoShareToFeed?: boolean;
|
|
7536
|
+
fixtureId?: string | null;
|
|
7510
7537
|
mode?: 'professional' | 'amateur';
|
|
7511
7538
|
};
|
|
7512
7539
|
export type AnimationDataInput = {
|
|
@@ -16027,6 +16054,7 @@ export type GetMyLineupsData = {
|
|
|
16027
16054
|
offset?: number | null;
|
|
16028
16055
|
sortBy?: 'createdAt' | 'updatedAt' | 'title';
|
|
16029
16056
|
sortOrder?: 'asc' | 'desc';
|
|
16057
|
+
filter?: 'all' | 'drafts' | 'published';
|
|
16030
16058
|
};
|
|
16031
16059
|
url: '/api/v1/community/lineups';
|
|
16032
16060
|
};
|
|
@@ -16119,7 +16147,7 @@ export type ListLineupsData = {
|
|
|
16119
16147
|
search?: string;
|
|
16120
16148
|
formation?: string;
|
|
16121
16149
|
mode?: 'professional' | 'amateur';
|
|
16122
|
-
sortBy?: 'createdAt' | 'viewCount' | 'title';
|
|
16150
|
+
sortBy?: 'hot' | 'createdAt' | 'viewCount' | 'title';
|
|
16123
16151
|
sortOrder?: 'asc' | 'desc';
|
|
16124
16152
|
limit?: number;
|
|
16125
16153
|
offset?: number | null;
|
|
@@ -16157,7 +16185,7 @@ export type ListTrendingLineupsData = {
|
|
|
16157
16185
|
search?: string;
|
|
16158
16186
|
formation?: string;
|
|
16159
16187
|
mode?: 'professional' | 'amateur';
|
|
16160
|
-
sortBy?: 'createdAt' | 'viewCount' | 'title';
|
|
16188
|
+
sortBy?: 'hot' | 'createdAt' | 'viewCount' | 'title';
|
|
16161
16189
|
sortOrder?: 'asc' | 'desc';
|
|
16162
16190
|
limit?: number;
|
|
16163
16191
|
offset?: number | null;
|
|
@@ -16195,7 +16223,7 @@ export type ListPopularLineupsData = {
|
|
|
16195
16223
|
search?: string;
|
|
16196
16224
|
formation?: string;
|
|
16197
16225
|
mode?: 'professional' | 'amateur';
|
|
16198
|
-
sortBy?: 'createdAt' | 'viewCount' | 'title';
|
|
16226
|
+
sortBy?: 'hot' | 'createdAt' | 'viewCount' | 'title';
|
|
16199
16227
|
sortOrder?: 'asc' | 'desc';
|
|
16200
16228
|
limit?: number;
|
|
16201
16229
|
offset?: number | null;
|
|
@@ -16500,25 +16528,12 @@ export type ExportLineupData = {
|
|
|
16500
16528
|
id: string;
|
|
16501
16529
|
};
|
|
16502
16530
|
query?: {
|
|
16503
|
-
format?: '
|
|
16531
|
+
format?: 'og' | 'feed' | 'story' | 'wide';
|
|
16532
|
+
template?: 'tactical' | 'promo';
|
|
16504
16533
|
};
|
|
16505
16534
|
url: '/api/v1/community/lineups/{id}/export';
|
|
16506
16535
|
};
|
|
16507
16536
|
export type ExportLineupErrors = {
|
|
16508
|
-
/**
|
|
16509
|
-
* Invalid format
|
|
16510
|
-
*/
|
|
16511
|
-
400: {
|
|
16512
|
-
success: false;
|
|
16513
|
-
error: {
|
|
16514
|
-
code: 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'VALIDATION_ERROR' | 'ALREADY_EXISTS' | 'INSUFFICIENT_FUNDS' | 'GAME_FULL' | 'GAME_NOT_STARTED' | 'GAME_ALREADY_STARTED' | 'GAME_ENDED' | 'INTERNAL_ERROR' | 'RATE_LIMIT_EXCEEDED';
|
|
16515
|
-
message: string;
|
|
16516
|
-
details?: {
|
|
16517
|
-
[key: string]: string | number | boolean | null;
|
|
16518
|
-
};
|
|
16519
|
-
field?: string;
|
|
16520
|
-
};
|
|
16521
|
-
};
|
|
16522
16537
|
/**
|
|
16523
16538
|
* Permission denied
|
|
16524
16539
|
*/
|
|
@@ -16565,9 +16580,9 @@ export type ExportLineupErrors = {
|
|
|
16565
16580
|
export type ExportLineupError = ExportLineupErrors[keyof ExportLineupErrors];
|
|
16566
16581
|
export type ExportLineupResponses = {
|
|
16567
16582
|
/**
|
|
16568
|
-
*
|
|
16583
|
+
* Binary PNG
|
|
16569
16584
|
*/
|
|
16570
|
-
200:
|
|
16585
|
+
200: Blob | File;
|
|
16571
16586
|
};
|
|
16572
16587
|
export type ExportLineupResponse = ExportLineupResponses[keyof ExportLineupResponses];
|
|
16573
16588
|
export type ClaimLineupData = {
|