-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdate_functions.queries.ts
More file actions
72 lines (58 loc) · 1.33 KB
/
date_functions.queries.ts
File metadata and controls
72 lines (58 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
export type CurrentDateTimestampParams = [];
export interface ICurrentDateTimestampResult {
id: number;
name: string;
now: string;
today: string;
}
export interface ICurrentDateTimestampQuery {
params: CurrentDateTimestampParams;
result: ICurrentDateTimestampResult;
}
export type DateTruncParams = [];
export interface IDateTruncResult {
createdDay: string;
createdMonth: string;
createdYear: string;
id: number;
name: string;
}
export interface IDateTruncQuery {
params: DateTruncParams;
result: IDateTruncResult;
}
export type ExtractFunctionParams = [];
export interface IExtractFunctionResult {
createdDay: Date;
createdMonth: Date;
createdYear: Date;
id: number;
name: string;
}
export interface IExtractFunctionQuery {
params: ExtractFunctionParams;
result: IExtractFunctionResult;
}
export type AgeFunctionParams = [];
export interface IAgeFunctionResult {
accountAge: string;
accountAgeExplicit: string;
id: number;
name: string;
}
export interface IAgeFunctionQuery {
params: AgeFunctionParams;
result: IAgeFunctionResult;
}
export type DateArithmeticParams = [];
export interface IDateArithmeticResult {
createdAt: unknown | null;
id: number;
name: string;
oneMonthAgo: number;
oneWeekLater: number;
}
export interface IDateArithmeticQuery {
params: DateArithmeticParams;
result: IDateArithmeticResult;
}