TypedOffer

@torque-labs/sdk


@torque-labs/sdk / TypedOffer

Type Alias: TypedOffer

type TypedOffer = {
  endTime: Date;
  metadata: {
     backgroundColor: string | null;
     backgroundImage: string | null;
     colorMode: "light" | "dark" | null;
     description: string | null;
     image: string | null;
     title: string;
     url: string | null;
    };
  startTime: Date;
  status: "DRAFT" | "ACTIVE" | "CLOSED";
};

Defined in: sdk/src/types/schemaTypes.ts:1589

Properties

endTime

endTime: Date;

Defined in: sdk/src/types/schemaTypes.ts:1592


metadata

metadata: {
  backgroundColor: string | null;
  backgroundImage: string | null;
  colorMode: "light" | "dark" | null;
  description: string | null;
  image: string | null;
  title: string;
  url: string | null;
};

Defined in: sdk/src/types/schemaTypes.ts:1593

Name
Type

backgroundColor?

string | null

backgroundImage?

string | null

colorMode?

"light" | "dark" | null

description?

string | null

image?

string | null

title

string

url?

string | null


startTime

startTime: Date;

Defined in: sdk/src/types/schemaTypes.ts:1591


status

status: "DRAFT" | "ACTIVE" | "CLOSED";

Defined in: sdk/src/types/schemaTypes.ts:1590

Last updated