@footballbingo/client 4.3.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 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 image
791
+ * Export lineup as PNG
792
792
  *
793
- * Export a lineup as an SVG image or data URL
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 image
1305
+ * Export lineup as PNG
1306
1306
  *
1307
- * Export a lineup as an SVG image or data URL
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
  /**
@@ -16528,25 +16528,12 @@ export type ExportLineupData = {
16528
16528
  id: string;
16529
16529
  };
16530
16530
  query?: {
16531
- format?: 'svg' | 'data-url';
16531
+ format?: 'og' | 'feed' | 'story' | 'wide';
16532
+ template?: 'tactical' | 'promo';
16532
16533
  };
16533
16534
  url: '/api/v1/community/lineups/{id}/export';
16534
16535
  };
16535
16536
  export type ExportLineupErrors = {
16536
- /**
16537
- * Invalid format
16538
- */
16539
- 400: {
16540
- success: false;
16541
- error: {
16542
- 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';
16543
- message: string;
16544
- details?: {
16545
- [key: string]: string | number | boolean | null;
16546
- };
16547
- field?: string;
16548
- };
16549
- };
16550
16537
  /**
16551
16538
  * Permission denied
16552
16539
  */
@@ -16593,9 +16580,9 @@ export type ExportLineupErrors = {
16593
16580
  export type ExportLineupError = ExportLineupErrors[keyof ExportLineupErrors];
16594
16581
  export type ExportLineupResponses = {
16595
16582
  /**
16596
- * Lineup exported successfully
16583
+ * Binary PNG
16597
16584
  */
16598
- 200: ExportDataUrlResponse;
16585
+ 200: Blob | File;
16599
16586
  };
16600
16587
  export type ExportLineupResponse = ExportLineupResponses[keyof ExportLineupResponses];
16601
16588
  export type ClaimLineupData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@footballbingo/client",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "Auto-generated TypeScript client for the Football Bingo API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",