Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions handwritten/firestore/api-report/firestore.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,10 @@ abstract class Expression implements firestore.Pipelines.Expression, HasUserData
sum(): AggregateFunction;
timestampAdd(unit: Expression, amount: Expression): FunctionExpression;
timestampAdd(unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day', amount: number): FunctionExpression;
timestampDiff(start: Expression, unit: Expression): FunctionExpression;
timestampDiff(start: string | Expression, unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day'): FunctionExpression;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is going to be replaced by the new types u r refactoring.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it will be changed by that

timestampExtract(part: firestore.Pipelines.TimePart, timezone?: string | Expression): FunctionExpression;
timestampExtract(part: Expression, timezone?: string | Expression): FunctionExpression;
timestampSubtract(unit: Expression, amount: Expression): FunctionExpression;
timestampSubtract(unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day', amount: number): FunctionExpression;
timestampToUnixMicros(): FunctionExpression;
Expand Down Expand Up @@ -2116,6 +2120,8 @@ declare namespace Pipelines {
isType,
Type,
timestampTruncate,
timestampExtract,
timestampDiff,
split,
ltrim,
rtrim,
Expand Down Expand Up @@ -2709,6 +2715,30 @@ function timestampAdd(timestamp: Expression, unit: 'microsecond' | 'millisecond'
// @beta
function timestampAdd(fieldName: string, unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day', amount: number): FunctionExpression;

// @beta
function timestampDiff(endFieldName: string, startFieldName: string, unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | Expression): FunctionExpression;

// @beta
function timestampDiff(endFieldName: string, startExpression: Expression, unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | Expression): FunctionExpression;

// @beta
function timestampDiff(endExpression: Expression, startFieldName: string, unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | Expression): FunctionExpression;

// @beta
function timestampDiff(endExpression: Expression, startExpression: Expression, unit: 'microsecond' | 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | Expression): FunctionExpression;

// @beta
function timestampExtract(fieldName: string, part: firestore.Pipelines.TimePart, timezone?: string | Expression): FunctionExpression;

// @beta
function timestampExtract(fieldName: string, part: Expression, timezone?: string | Expression): FunctionExpression;

// @beta
function timestampExtract(timestampExpression: Expression, part: firestore.Pipelines.TimePart, timezone?: string | Expression): FunctionExpression;

// @beta
function timestampExtract(timestampExpression: Expression, part: Expression, timezone?: string | Expression): FunctionExpression;

// @beta
function timestampSubtract(timestamp: Expression, unit: Expression, amount: Expression): FunctionExpression;

Expand Down
Loading
Loading