正在載入此比較的其餘部分。

schema-dts v1.1.0 (vs 1.0.0)

建立於 差異永不過期
3 刪除
314 行
3 新增
314 行
/** Used at the top-level node to indicate the context for the JSON-LD objects used. The context provided in this type is compatible with the keys and URLs in the rest of this generated file. */
/** Used at the top-level node to indicate the context for the JSON-LD objects used. The context provided in this type is compatible with the keys and URLs in the rest of this generated file. */
export declare type WithContext<T extends Thing> = T & {
export declare type WithContext<T extends Thing> = T & {
"@context": "https://schema.org";
"@context": "https://schema.org";
};
};
export interface Graph {
export interface Graph {
"@context": "https://schema.org";
"@context": "https://schema.org";
"@graph": readonly Thing[];
"@graph": readonly Thing[];
}
}
declare type SchemaValue<T, TProperty extends string> = T | Role<T, TProperty> | readonly (T | Role<T, TProperty>)[];
declare type SchemaValue<T, TProperty extends string> = T | Role<T, TProperty> | readonly (T | Role<T, TProperty>)[];
declare type IdReference = {
declare type IdReference = {
/** IRI identifying the canonical address of this object. */
/** IRI identifying the canonical address of this object. */
"@id": string;
"@id": string;
};
};
/** Boolean: True or False. */
/** Boolean: True or False. */
export declare type Boolean = "https://schema.org/False" | "False" | "https://schema.org/True" | "True" | boolean;
export declare type Boolean = "https://schema.org/False" | "False" | "https://schema.org/True" | "True" | boolean;
/** A date value in {@link http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 date format}. */
/** A date value in {@link http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 date format}. */
export declare type Date = string;
export declare type Date = string;
/** A combination of date and time of day in the form [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] (see Chapter 5.4 of ISO 8601). */
/** A combination of date and time of day in the form [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] (see Chapter 5.4 of ISO 8601). */
export declare type DateTime = string;
export declare type DateTime = string;
interface EmployeeRoleBase extends OrganizationRoleBase {
interface EmployeeRoleBase extends OrganizationRoleBase {
/** The base salary of the job or of an employee in an EmployeeRole. */
/** The base salary of the job or of an employee in an EmployeeRole. */
"baseSalary"?: SchemaValue<MonetaryAmount | Number | PriceSpecification | IdReference, "baseSalary">;
"baseSalary"?: SchemaValue<MonetaryAmount | Number | PriceSpecification | IdReference, "baseSalary">;
/** The currency (coded using {@link http://en.wikipedia.org/wiki/ISO_4217 ISO 4217} ) used for the main salary information in this job posting or for this employee. */
/** The currency (coded using {@link http://en.wikipedia.org/wiki/ISO_4217 ISO 4217} ) used for the main salary information in this job posting or for this employee. */
"salaryCurrency"?: SchemaValue<Text, "salaryCurrency">;
"salaryCurrency"?: SchemaValue<Text, "salaryCurrency">;
}
}
declare type EmployeeRoleLeaf<TContent, TProperty extends string> = EmployeeRoleBase & {
declare type EmployeeRoleLeaf<TContent, TProperty extends string> = EmployeeRoleBase & {
"@type": "EmployeeRole";
"@type": "EmployeeRole";
} & {
} & {
[key in TProperty]: TContent;
[key in TProperty]: TContent;
};
};
/** A subclass of OrganizationRole used to describe employee relationships. */
/** A subclass of OrganizationRole used to describe employee relationships. */
export declare type EmployeeRole<TContent = never, TProperty extends string = never> = EmployeeRoleLeaf<TContent, TProperty>;
export declare type EmployeeRole<TContent = never, TProperty extends string = never> = EmployeeRoleLeaf<TContent, TProperty>;
interface LinkRoleBase extends RoleBase {
interface LinkRoleBase extends RoleBase {
/** The language of the content or performance or used in an action. Please use one of the language codes from the {@link http://tools.ietf.org/html/bcp47 IETF BCP 47 standard}. See also {@link https://schema.org/availableLanguage availableLanguage}. */
/** The language of the content or performance or used in an action. Please use one of the language codes from the {@link http://tools.ietf.org/html/bcp47 IETF BCP 47 standard}. See also {@link https://schema.org/availableLanguage availableLanguage}. */
"inLanguage"?: SchemaValue<Language | Text | IdReference, "inLanguage">;
"inLanguage"?: SchemaValue<Language | Text | IdReference, "inLanguage">;
/** Indicates the relationship type of a Web link. */
/** Indicates the relationship type of a Web link. */
"linkRelationship"?: SchemaValue<Text, "linkRelationship">;
"linkRelationship"?: SchemaValue<Text, "linkRelationship">;
}
}
declare type LinkRoleLeaf<TContent, TProperty extends string> = LinkRoleBase & {
declare type LinkRoleLeaf<TContent, TProperty extends string> = LinkRoleBase & {
"@type": "LinkRole";
"@type": "LinkRole";
} & {
} & {
[key in TProperty]: TContent;
[key in TProperty]: TContent;
};
};
/** A Role that represents a Web link e.g. as expressed via the 'url' property. Its linkRelationship property can indicate URL-based and plain textual link types e.g. those in IANA link registry or others such as 'amphtml'. This structure provides a placeholder where details from HTML's link element can be represented outside of HTML, e.g. in JSON-LD feeds. */
/** A Role that represents a Web link e.g. as expressed via the 'url' property. Its linkRelationship property can indicate URL-based and plain textual link types e.g. those in IANA link registry or others such as 'amphtml'. This structure provides a placeholder where details from HTML's link element can be represented outside of HTML, e.g. in JSON-LD feeds. */
export declare type LinkRole<TContent = never, TProperty extends string = never> = LinkRoleLeaf<TContent, TProperty>;
export declare type LinkRole<TContent = never, TProperty extends string = never> = LinkRoleLeaf<TContent, TProperty>;
/**
/**
* Data type: Number.
* Data type: Number.
*
*
* Usage guidelines:
* Usage guidelines:
* - Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.
* - Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.
* - Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
* - Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*/
*/
export declare type Number = Float | Integer | number | `${number}`;
export declare type Number = Float | Integer | number | `${number}`;
interface OrganizationRoleBase extends RoleBase {
interface OrganizationRoleBase extends RoleBase {
/** A number associated with a role in an organization, for example, the number on an athlete's jersey. */
/** A number associated with a role in an organization, for example, the number on an athlete's jersey. */
"numberedPosition"?: SchemaValue<Number, "numberedPosition">;
"numberedPosition"?: SchemaValue<Number, "numberedPosition">;
}
}
declare type OrganizationRoleLeaf<TContent, TProperty extends string> = OrganizationRoleBase & {
declare type OrganizationRoleLeaf<TContent, TProperty extends string> = OrganizationRoleBase & {
"@type": "OrganizationRole";
"@type": "OrganizationRole";
} & {
} & {
[key in TProperty]: TContent;
[key in TProperty]: TContent;
};
};
/** A subclass of Role used to describe roles within organizations. */
/** A subclass of Role used to describe roles within organizations. */
export declare type OrganizationRole<TContent = never, TProperty extends string = never> = OrganizationRoleLeaf<TContent, TProperty> | EmployeeRole<TContent, TProperty>;
export declare type OrganizationRole<TContent = never, TProperty extends string = never> = OrganizationRoleLeaf<TContent, TProperty> | EmployeeRole<TContent, TProperty>;
interface PerformanceRoleBase extends RoleBase {
interface PerformanceRoleBase extends RoleBase {
/** The name of a character played in some acting or performing role, i.e. in a PerformanceRole. */
/** The name of a character played in some acting or performing role, i.e. in a PerformanceRole. */
"characterName"?: SchemaValue<Text, "characterName">;
"characterName"?: SchemaValue<Text, "characterName">;
}
}
declare type PerformanceRoleLeaf<TContent, TProperty extends string> = PerformanceRoleBase & {
declare type PerformanceRoleLeaf<TContent, TProperty extends string> = PerformanceRoleBase & {
"@type": "PerformanceRole";
"@type": "PerformanceRole";
} & {
} & {
[key in TProperty]: TContent;
[key in TProperty]: TContent;
};
};
/** A PerformanceRole is a Role that some entity places with regard to a theatrical performance, e.g. in a Movie, TVSeries etc. */
/** A PerformanceRole is a Role that some entity places with regard to a theatrical performance, e.g. in a Movie, TVSeries etc. */
export declare type PerformanceRole<TContent = never, TProperty extends string = never> = PerformanceRoleLeaf<TContent, TProperty>;
export declare type PerformanceRole<TContent = never, TProperty extends string = never> = PerformanceRoleLeaf<TContent, TProperty>;
interface RoleBase extends ThingBase {
interface RoleBase extends ThingBase {
/** The end date and time of the item (in {@link http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 date format}). */
/** The end date and time of the item (in {@link http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 date format}). */
"endDate"?: SchemaValue<Date | DateTime, "endDate">;
"endDate"?: SchemaValue<Date | DateTime, "endDate">;
/**
/**
* A position played, performed or filled by a person or organization, as part of an organization. For example, an athlete in a SportsTeam might play in the position named 'Quarterback'.
* A position played, performed or filled by a person or organization, as part of an organization. For example, an athlete in a SportsTeam might play in the position named 'Quarterback'.
*
*
* @deprecated Consider using https://schema.org/roleName instead.
* @deprecated Consider using https://schema.org/roleName instead.
*/
*/
"namedPosition"?: SchemaValue<Text | URL, "namedPosition">;
"namedPosition"?: SchemaValue<Text | URL, "namedPosition">;
/** A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'. */
/** A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'. */
"roleName"?: SchemaValue<Text | URL, "roleName">;
"roleName"?: SchemaValue<Text | URL, "roleName">;
/** The start date and time of the item (in {@link http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 date format}). */
/** The start date and time of the item (in {@link http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 date format}). */
"startDate"?: SchemaValue<Date | DateTime, "startDate">;
"startDate"?: SchemaValue<Date | DateTime, "startDate">;
}
}
declare type RoleLeaf<TContent, TProperty extends string> = RoleBase & {
declare type RoleLeaf<TContent, TProperty extends string> = RoleBase & {
"@type": "Role";
"@type": "Role";
} & {
} & {
[key in TProperty]: TContent;
[key in TProperty]: TContent;
};
};
/**
/**
* Represents additional information about a relationship or property. For example a Role can be used to say that a 'member' role linking some SportsTeam to a player occurred during a particular time period. Or that a Person's 'actor' role in a Movie was for some particular characterName. Such properties can be attached to a Role entity, which is then associated with the main entities using ordinary properties like 'member' or 'actor'.
* Represents additional information about a relationship or property. For example a Role can be used to say that a 'member' role linking some SportsTeam to a player occurred during a particular time period. Or that a Person's 'actor' role in a Movie was for some particular characterName. Such properties can be attached to a Role entity, which is then associated with the main entities using ordinary properties like 'member' or 'actor'.
*
*
* See also {@link http://blog.schema.org/2014/06/introducing-role.html blog post}.
* See also {@link http://blog.schema.org/2014/06/introducing-role.html blog post}.
*/
*/
export declare type Role<TContent = never, TProperty extends string = never> = RoleLeaf<TContent, TProperty> | LinkRole<TContent, TProperty> | OrganizationRole<TContent, TProperty> | PerformanceRole<TContent, TProperty>;
export declare type Role<TContent = never, TProperty extends string = never> = RoleLeaf<TContent, TProperty> | LinkRole<TContent, TProperty> | OrganizationRole<TContent, TProperty> | PerformanceRole<TContent, TProperty>;