@seatlayer/js 0.55.0 → 0.56.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.
@@ -70,6 +70,16 @@ interface ChannelRecord {
70
70
  archivedAt: number | null;
71
71
  counts: ChannelCounts;
72
72
  access?: ChannelAccessSummary | null;
73
+ /** Sparse per-category/tier buyer prices. Missing on pre-0.56 workers. */
74
+ priceOverrides?: ChannelPriceOverride[];
75
+ /** Optimistic-concurrency token for price edits. */
76
+ pricingVersion?: number;
77
+ }
78
+ interface ChannelPriceOverride {
79
+ categoryKey: string;
80
+ tierId: string | null;
81
+ /** Major currency units, matching chart category/tier prices. */
82
+ price: number;
73
83
  }
74
84
  interface PublicSaleChannel {
75
85
  /** `'public'` on every shipped worker; typed loosely so an older build that
@@ -930,6 +940,11 @@ declare class ManageApi {
930
940
  ok: true;
931
941
  channel: ChannelRecord;
932
942
  }>;
943
+ /** Replace a channel's sparse category/tier prices with optimistic concurrency. */
944
+ updateChannelPricing(key: string, channelId: string, priceOverrides: ChannelPriceOverride[], expectedPricingVersion: number): Promise<{
945
+ ok: true;
946
+ channel: ChannelRecord;
947
+ }>;
933
948
  setChannelPaused(key: string, channelId: string, paused: boolean): Promise<{
934
949
  ok: true;
935
950
  channel: ChannelRecord;
@@ -1801,6 +1816,12 @@ interface ChannelsClient {
1801
1816
  ok: true;
1802
1817
  channel: ChannelRecord;
1803
1818
  }>;
1819
+ /** Replace the sparse channel price map. Optional for custom clients built
1820
+ * against an older manager contract; the editor is absent when omitted. */
1821
+ updateChannelPricing?(key: string, channelId: string, priceOverrides: ChannelPriceOverride[], expectedPricingVersion: number): Promise<{
1822
+ ok: true;
1823
+ channel: ChannelRecord;
1824
+ }>;
1804
1825
  setChannelPaused(key: string, channelId: string, paused: boolean): Promise<{
1805
1826
  ok: true;
1806
1827
  channel: ChannelRecord;
@@ -1886,6 +1907,12 @@ interface ChannelsModeHost {
1886
1907
  key: string;
1887
1908
  label: string;
1888
1909
  color?: string;
1910
+ price?: number;
1911
+ tiers?: Array<{
1912
+ id: string;
1913
+ name: string;
1914
+ price: number;
1915
+ }>;
1889
1916
  }>;
1890
1917
  labelsInCategory(key: string): string[];
1891
1918
  sectionOfLabel(label: string): {
@@ -2242,6 +2269,9 @@ declare class ChannelsMode {
2242
2269
  */
2243
2270
  private renderMenuDialog;
2244
2271
  private renderRenameDialog;
2272
+ /** Sparse channel pricing: blank means inherit the event's category/tier price. */
2273
+ private renderPricingDialog;
2274
+ private saveChannelPricing;
2245
2275
  /**
2246
2276
  * "Use a website or app" — declare the channel's route as `server`.
2247
2277
  *
@@ -70,6 +70,16 @@ interface ChannelRecord {
70
70
  archivedAt: number | null;
71
71
  counts: ChannelCounts;
72
72
  access?: ChannelAccessSummary | null;
73
+ /** Sparse per-category/tier buyer prices. Missing on pre-0.56 workers. */
74
+ priceOverrides?: ChannelPriceOverride[];
75
+ /** Optimistic-concurrency token for price edits. */
76
+ pricingVersion?: number;
77
+ }
78
+ interface ChannelPriceOverride {
79
+ categoryKey: string;
80
+ tierId: string | null;
81
+ /** Major currency units, matching chart category/tier prices. */
82
+ price: number;
73
83
  }
74
84
  interface PublicSaleChannel {
75
85
  /** `'public'` on every shipped worker; typed loosely so an older build that
@@ -930,6 +940,11 @@ declare class ManageApi {
930
940
  ok: true;
931
941
  channel: ChannelRecord;
932
942
  }>;
943
+ /** Replace a channel's sparse category/tier prices with optimistic concurrency. */
944
+ updateChannelPricing(key: string, channelId: string, priceOverrides: ChannelPriceOverride[], expectedPricingVersion: number): Promise<{
945
+ ok: true;
946
+ channel: ChannelRecord;
947
+ }>;
933
948
  setChannelPaused(key: string, channelId: string, paused: boolean): Promise<{
934
949
  ok: true;
935
950
  channel: ChannelRecord;
@@ -1801,6 +1816,12 @@ interface ChannelsClient {
1801
1816
  ok: true;
1802
1817
  channel: ChannelRecord;
1803
1818
  }>;
1819
+ /** Replace the sparse channel price map. Optional for custom clients built
1820
+ * against an older manager contract; the editor is absent when omitted. */
1821
+ updateChannelPricing?(key: string, channelId: string, priceOverrides: ChannelPriceOverride[], expectedPricingVersion: number): Promise<{
1822
+ ok: true;
1823
+ channel: ChannelRecord;
1824
+ }>;
1804
1825
  setChannelPaused(key: string, channelId: string, paused: boolean): Promise<{
1805
1826
  ok: true;
1806
1827
  channel: ChannelRecord;
@@ -1886,6 +1907,12 @@ interface ChannelsModeHost {
1886
1907
  key: string;
1887
1908
  label: string;
1888
1909
  color?: string;
1910
+ price?: number;
1911
+ tiers?: Array<{
1912
+ id: string;
1913
+ name: string;
1914
+ price: number;
1915
+ }>;
1889
1916
  }>;
1890
1917
  labelsInCategory(key: string): string[];
1891
1918
  sectionOfLabel(label: string): {
@@ -2242,6 +2269,9 @@ declare class ChannelsMode {
2242
2269
  */
2243
2270
  private renderMenuDialog;
2244
2271
  private renderRenameDialog;
2272
+ /** Sparse channel pricing: blank means inherit the event's category/tier price. */
2273
+ private renderPricingDialog;
2274
+ private saveChannelPricing;
2245
2275
  /**
2246
2276
  * "Use a website or app" — declare the channel's route as `server`.
2247
2277
  *
@@ -1 +1 @@
1
- import{A as a,B as b,C as c}from"./chunk-MZAMI4UR.js";import"./chunk-OSZ7DOEH.js";export{b as CHANNELS_CSS,c as ChannelsMode,a as bucketRowsHtml};
1
+ import{A as a,B as b,C as c}from"./chunk-VCVUAOOK.js";import"./chunk-OSZ7DOEH.js";export{b as CHANNELS_CSS,c as ChannelsMode,a as bucketRowsHtml};