@graphite-sports/sdk 0.3.0 → 0.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/index.d.ts +50 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5857,6 +5857,8 @@ export declare function confirmDeleteItem(modalControls: ModalControls, itemName
|
|
|
5857
5857
|
*/
|
|
5858
5858
|
export declare type ConstructorParams<T, R = ParamRef> = Record<string, TypeExpr<T, R>>;
|
|
5859
5859
|
|
|
5860
|
+
export declare type ContentInEventFolderDTO = components['schemas']['ContentInEventFolderDTO'];
|
|
5861
|
+
|
|
5860
5862
|
export declare interface ContextWasm {
|
|
5861
5863
|
values: Record<string, Value<Primitive>>;
|
|
5862
5864
|
}
|
|
@@ -5921,6 +5923,8 @@ export declare type EngineQueryOptions<T> = UnusedSkipTokenOptions<T, Error, T,
|
|
|
5921
5923
|
*/
|
|
5922
5924
|
declare type ErasedScopedTypeRef<T> = { type: "Param"; data: ParamRef } | { type: "ScopedExpr"; data: { expr: TypeExpr<T, ErasedScopedTypeRef<T>> } };
|
|
5923
5925
|
|
|
5926
|
+
export declare const eventFoldersByEventQueryOptions: (workspaceId: CommonWorkspaceId, eventId: EventId) => EngineQueryOptions<ContentInEventFolderDTO[]>;
|
|
5927
|
+
|
|
5924
5928
|
export declare type EventId = Brand<string, 'eventId'>;
|
|
5925
5929
|
|
|
5926
5930
|
export declare interface EventPath {
|
|
@@ -6009,7 +6013,7 @@ export declare interface ExtensionSidebarContribution {
|
|
|
6009
6013
|
|
|
6010
6014
|
export declare type ExtensionSidebarProps = EventPath;
|
|
6011
6015
|
|
|
6012
|
-
declare interface FieldTypeWithDefault {
|
|
6016
|
+
export declare interface FieldTypeWithDefault {
|
|
6013
6017
|
fieldType: TypeExpr<Type>;
|
|
6014
6018
|
/**
|
|
6015
6019
|
* Validated to be a subtype of field_type
|
|
@@ -6146,6 +6150,8 @@ export declare const getCompetitorsQO: (workspaceId: CommonWorkspaceId, eventId:
|
|
|
6146
6150
|
|
|
6147
6151
|
export declare const getGameTableResolvedByGameQO: (workspaceId: CommonWorkspaceId, eventId: EventId, gameID: GameId, tableKind: "EntryList" | "ResultList") => EngineQueryOptions<ResolvedTableDTO>;
|
|
6148
6152
|
|
|
6153
|
+
export declare const getTableByIdQueryOptions: (workspaceId: CommonWorkspaceId, eventId: EventId, tableId: TableId) => EngineQueryOptions<TableWithType>;
|
|
6154
|
+
|
|
6149
6155
|
/**
|
|
6150
6156
|
* Location of a validation error in the graph.
|
|
6151
6157
|
*/
|
|
@@ -6410,6 +6416,43 @@ export declare type Primitive = never;
|
|
|
6410
6416
|
|
|
6411
6417
|
declare function primValueToTypeExpr(value: Value<Primitive>): TypeExpr<Type, ParamRef>;
|
|
6412
6418
|
|
|
6419
|
+
/**
|
|
6420
|
+
* Replaces the rows a table holds on layer one.
|
|
6421
|
+
*
|
|
6422
|
+
* Only for tables whose layer one belongs to the user - a table filled by nodes has to be
|
|
6423
|
+
* changed through {@see postRowMutations} instead, so their rows stay intact.
|
|
6424
|
+
*/
|
|
6425
|
+
export declare function putTableRows(workspaceId: CommonWorkspaceId, eventId: EventId, tableId: TableId, rows: Row[]): Promise<{
|
|
6426
|
+
type: "unknown-error";
|
|
6427
|
+
} | {
|
|
6428
|
+
type: "success";
|
|
6429
|
+
data: undefined;
|
|
6430
|
+
} | {
|
|
6431
|
+
type: "error";
|
|
6432
|
+
error: {
|
|
6433
|
+
type: "table-is-referenced";
|
|
6434
|
+
data: components["schemas"]["TableId"];
|
|
6435
|
+
} | {
|
|
6436
|
+
type: "game-table-is-managed";
|
|
6437
|
+
data: components["schemas"]["TableId"];
|
|
6438
|
+
} | {
|
|
6439
|
+
type: "shape-is-incompatible";
|
|
6440
|
+
} | {
|
|
6441
|
+
type: "cannot-update-kind";
|
|
6442
|
+
} | {
|
|
6443
|
+
type: "game-has-table-of-kind";
|
|
6444
|
+
data: [components["schemas"]["GameId"], components["schemas"]["TableKind"]];
|
|
6445
|
+
} | {
|
|
6446
|
+
type: "column-validation-error";
|
|
6447
|
+
data: components["schemas"]["RecordValueTypeValidationError"];
|
|
6448
|
+
} | {
|
|
6449
|
+
type: "row-not-hidden";
|
|
6450
|
+
data: [components["schemas"]["TableId"], components["schemas"]["CompetitorId"]];
|
|
6451
|
+
};
|
|
6452
|
+
}>;
|
|
6453
|
+
|
|
6454
|
+
export declare type PutTableRowsResponse = Awaited<ReturnType<typeof putTableRows>>;
|
|
6455
|
+
|
|
6413
6456
|
export declare interface QueryCodec<T> {
|
|
6414
6457
|
parse(value: string): T | null;
|
|
6415
6458
|
serialize(value: T): string;
|
|
@@ -6445,7 +6488,7 @@ declare interface RecordTypeHelper<R = ParamRef> {
|
|
|
6445
6488
|
properties: Record<string, TypeExpr<Type, R>>;
|
|
6446
6489
|
}
|
|
6447
6490
|
|
|
6448
|
-
declare interface RecordTypeWithDefaults {
|
|
6491
|
+
export declare interface RecordTypeWithDefaults {
|
|
6449
6492
|
properties: Record<string, FieldTypeWithDefault>;
|
|
6450
6493
|
}
|
|
6451
6494
|
|
|
@@ -6519,7 +6562,7 @@ export declare interface RouterLocation {
|
|
|
6519
6562
|
/**
|
|
6520
6563
|
* Rows can only be created and moved by this crate, so that their [Origin] stays truthful.
|
|
6521
6564
|
*/
|
|
6522
|
-
declare interface Row {
|
|
6565
|
+
export declare interface Row {
|
|
6523
6566
|
/**
|
|
6524
6567
|
* Unique per table
|
|
6525
6568
|
*/
|
|
@@ -6613,6 +6656,8 @@ export declare enum StorageType {
|
|
|
6613
6656
|
*/
|
|
6614
6657
|
declare type Table<SortingState, M = NoMetadata> = { rows: Rows<SortingState> } & M;
|
|
6615
6658
|
|
|
6659
|
+
export declare type TableDAO = components['schemas']['TableDAO'];
|
|
6660
|
+
|
|
6616
6661
|
export declare type TableId = Brand<string, 'tableId'>;
|
|
6617
6662
|
|
|
6618
6663
|
export declare interface TableProps<TData extends RowData> {
|
|
@@ -6657,6 +6702,8 @@ export declare type TableSorting = "unsorted" | "sorted";
|
|
|
6657
6702
|
|
|
6658
6703
|
declare type TableState = number;
|
|
6659
6704
|
|
|
6705
|
+
export declare type TableWithType = components['schemas']['TableWithType'];
|
|
6706
|
+
|
|
6660
6707
|
export declare type TimeDelta = components['schemas']['TimeDeltaSchema'];
|
|
6661
6708
|
|
|
6662
6709
|
export declare const TimeDeltaInput: FC<TimeDeltaInputProps>;
|