guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
107 lines (106 loc) • 4.56 kB
TypeScript
import { z } from 'zod';
/**
* /v2/guild/:id/log definition
*/
export declare const GuildLogDTO: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"joined">;
/** The account name of the guild member who generated this log entry. */
user: z.ZodString;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"invited">;
/** The account name of the guild member who generated this log entry. */
user: z.ZodString;
/** Account name of the guild member which invited the player. */
invited_by: z.ZodString;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"kick">;
/** The account name of the guild member who generated this log entry. */
user: z.ZodString;
/** Account name of the guild member which kicked the player. */
kicked_by: z.ZodString;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"rank_change">;
/** The account name of the guild member who generated this log entry. */
user: z.ZodString;
/** Old rank name. */
old_rank: z.ZodString;
/** New rank name. */
new_rank: z.ZodString;
/** Account name of the guild member which changed the player rank. */
changed_by: z.ZodOptional<z.ZodString>;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"stash">;
/** Stash operation type. */
operation: z.ZodEnum<{
deposit: "deposit";
withdraw: "withdraw";
move: "move";
}>;
/** The item ID that was deposited into the treasury. */
item_id: z.ZodNumber;
/** How many of the specified item was deposited. */
count: z.ZodNumber;
/** How many coins (in copper) were deposited. */
coins: z.ZodNumber;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"motd">;
/** The account name of the guild member who generated this log entry. */
user: z.ZodString;
/** The new message of the day. */
motd: z.ZodString;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
/** The type of log entry. */
type: z.ZodLiteral<"upgrade">;
/** The type of interaction had. */
action: z.ZodEnum<{
queued: "queued";
cancelled: "cancelled";
completed: "completed";
sped_up: "sped_up";
}>;
/** If upgrade was completed, indicates how many upgrades were added. */
count: z.ZodOptional<z.ZodNumber>;
/** The id of the completed upgrade. */
upgrade_id: z.ZodNumber;
/** May be added if the upgrade was created through a scribe station by a scribe. */
recipe_id: z.ZodOptional<z.ZodNumber>;
/** An ID to uniquely identify the log entry within the scope of the guild. Not globally unique. */
id: z.ZodNumber;
/** ISO-8601 standard timestamp for when the log entry was created. */
time: z.ZodString;
}, z.core.$strict>]>>;