Seats
Seat capacity benefit schema and validated constructor; constructing terms does not assign members or authorize access.
Declaration
Section titled “Declaration”const Seats: Schema.Union<readonly [Schema.Struct<{ pool: Schema.brand<Schema.String, "SeatPoolKey">; quantity: Schema.Union<readonly [Schema.brand<Schema.Int, "SeatCapacityQuantity">, Schema.Literal<"purchase_quantity">]>; entitlement: Schema.brand<Schema.String, "EntitlementKey">; validity: Schema.Literal<"while_entitled">; type: Schema.tag<"seat_capacity">;}>]> & { discriminants: readonly ["seat_capacity"]; cases: { seat_capacity: Schema.Struct<{ pool: Schema.brand<Schema.String, "SeatPoolKey">; quantity: Schema.Union<readonly [Schema.brand<Schema.Int, "SeatCapacityQuantity">, Schema.Literal<"purchase_quantity">]>; entitlement: Schema.brand<Schema.String, "EntitlementKey">; validity: Schema.Literal<"while_entitled">; type: Schema.tag<"seat_capacity">; }>; }; isAnyOf: <Keys>(keys) => (value) => value is Extract<{ pool: string & any; quantity: "purchase_quantity" | number & any; entitlement: string & any; validity: "while_entitled"; type: "seat_capacity" }, { type: Keys }>; guards: { seat_capacity: (u) => u is { pool: string & any; quantity: "purchase_quantity" | number & any; entitlement: string & any; validity: "while_entitled"; type: "seat_capacity" }; }; match: { <Cases> (value, cases): Cases[keyof Cases] extends (value) => R ? any : never; <Cases> (cases): (value) => Cases[keyof Cases] extends (value) => R ? any : never; };} & { capacity: (input) => Effect.Effect<typeof SeatBenefit.Type, Schema.SchemaError>;};Type Declaration
Section titled “Type Declaration”discriminants
Section titled “discriminants”readonly discriminants: readonly ["seat_capacity"];readonly cases: { seat_capacity: Schema.Struct<{ pool: Schema.brand<Schema.String, "SeatPoolKey">; quantity: Schema.Union<readonly [Schema.brand<Schema.Int, "SeatCapacityQuantity">, Schema.Literal<"purchase_quantity">]>; entitlement: Schema.brand<Schema.String, "EntitlementKey">; validity: Schema.Literal<"while_entitled">; type: Schema.tag<"seat_capacity">; }>;};cases.seat_capacity
Section titled “cases.seat_capacity”seat_capacity: Schema.Struct<{ pool: Schema.brand<Schema.String, "SeatPoolKey">; quantity: Schema.Union<readonly [Schema.brand<Schema.Int, "SeatCapacityQuantity">, Schema.Literal<"purchase_quantity">]>; entitlement: Schema.brand<Schema.String, "EntitlementKey">; validity: Schema.Literal<"while_entitled">; type: Schema.tag<"seat_capacity">;}>;isAnyOf
Section titled “isAnyOf”readonly isAnyOf: <Keys>(keys) => (value) => value is Extract<{ pool: string & any; quantity: "purchase_quantity" | number & any; entitlement: string & any; validity: "while_entitled"; type: "seat_capacity" }, { type: Keys }>;Type Parameters
Section titled “Type Parameters”Keys
Parameters
Section titled “Parameters”readonly Keys[]
Returns
Section titled “Returns”(value) => value is Extract<{ pool: string & any; quantity: “purchase_quantity” | number & any; entitlement: string & any; validity: “while_entitled”; type: “seat_capacity” }, { type: Keys }>
guards
Section titled “guards”readonly guards: { seat_capacity: (u) => u is { pool: string & any; quantity: "purchase_quantity" | number & any; entitlement: string & any; validity: "while_entitled"; type: "seat_capacity" };};guards.seat_capacity
Section titled “guards.seat_capacity”seat_capacity: (u) => u is { pool: string & any; quantity: "purchase_quantity" | number & any; entitlement: string & any; validity: "while_entitled"; type: "seat_capacity" };Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”u is { pool: string & any; quantity: “purchase_quantity” | number & any; entitlement: string & any; validity: “while_entitled”; type: “seat_capacity” }
readonly match: {<Cases> (value, cases): Cases[keyof Cases] extends (value) => R ? any : never;<Cases> (cases): (value) => Cases[keyof Cases] extends (value) => R ? any : never;};Call Signature
Section titled “Call Signature”<Cases>(value, cases): Cases[keyof Cases] extends (value) => R ? any : never;Type Parameters
Section titled “Type Parameters”Cases extends {
[key: string]: (value) => any;
}
Parameters
Section titled “Parameters”string & any
quantity
Section titled “quantity”"purchase_quantity" | number & any
entitlement
Section titled “entitlement”string & any
validity
Section titled “validity”"while_entitled"
"seat_capacity"
Cases
Returns
Section titled “Returns”Cases[keyof Cases] extends (value) => R ? any : never
Call Signature
Section titled “Call Signature”<Cases>(cases): (value) => Cases[keyof Cases] extends (value) => R ? any : never;Type Parameters
Section titled “Type Parameters”Cases extends {
[key: string]: (value) => any;
}
Parameters
Section titled “Parameters”Cases
Returns
Section titled “Returns”(value) => Cases[keyof Cases] extends (value) => R ? any : never
Type Declaration
Section titled “Type Declaration”capacity
Section titled “capacity”capacity: (input) => Effect.Effect<typeof SeatBenefit.Type, Schema.SchemaError>;Parses seat capacity associated with a same-purchase entitlement.
Parameters
Section titled “Parameters”Omit<typeof SeatBenefit.Encoded, "type" | "validity">
Returns
Section titled “Returns”Effect.Effect<typeof SeatBenefit.Type, Schema.SchemaError>