@dailydotdev/schema 0.2.14 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,45 @@
1
1
  import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
2
  import { Error } from '../../util/error_pb.cjs';
3
3
 
4
+ /**
5
+ * @generated from enum search.Order
6
+ */
7
+ declare enum Order {
8
+ /**
9
+ * @generated from enum value: ASC = 0;
10
+ */
11
+ ASC = 0,
12
+ /**
13
+ * @generated from enum value: DESC = 1;
14
+ */
15
+ DESC = 1
16
+ }
17
+ /**
18
+ * @generated from enum search.Quantifier
19
+ */
20
+ declare enum Quantifier {
21
+ /**
22
+ * @generated from enum value: ANY = 0;
23
+ */
24
+ ANY = 0,
25
+ /**
26
+ * @generated from enum value: ALL = 1;
27
+ */
28
+ ALL = 1
29
+ }
30
+ /**
31
+ * @generated from enum search.Operation
32
+ */
33
+ declare enum Operation {
34
+ /**
35
+ * @generated from enum value: INCLUDE = 0;
36
+ */
37
+ INCLUDE = 0,
38
+ /**
39
+ * @generated from enum value: EXCLUDE = 1;
40
+ */
41
+ EXCLUDE = 1
42
+ }
4
43
  /**
5
44
  * @generated from message search.SearchRequest
6
45
  */
@@ -21,6 +60,14 @@ declare class SearchRequest extends Message<SearchRequest> {
21
60
  * @generated from field: int32 limit = 4;
22
61
  */
23
62
  limit: number;
63
+ /**
64
+ * @generated from field: repeated search.Filter filters = 5;
65
+ */
66
+ filters: Filter[];
67
+ /**
68
+ * @generated from field: search.Sort sort = 6;
69
+ */
70
+ sort?: Sort;
24
71
  constructor(data?: PartialMessage<SearchRequest>);
25
72
  static readonly runtime: typeof proto3;
26
73
  static readonly typeName = "search.SearchRequest";
@@ -30,6 +77,132 @@ declare class SearchRequest extends Message<SearchRequest> {
30
77
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
31
78
  static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
32
79
  }
80
+ /**
81
+ * @generated from message search.Sort
82
+ */
83
+ declare class Sort extends Message<Sort> {
84
+ /**
85
+ * @generated from field: string field = 1;
86
+ */
87
+ field: string;
88
+ /**
89
+ * @generated from field: search.Order order = 2;
90
+ */
91
+ order: Order;
92
+ constructor(data?: PartialMessage<Sort>);
93
+ static readonly runtime: typeof proto3;
94
+ static readonly typeName = "search.Sort";
95
+ static readonly fields: FieldList;
96
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sort;
97
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sort;
98
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sort;
99
+ static equals(a: Sort | PlainMessage<Sort> | undefined, b: Sort | PlainMessage<Sort> | undefined): boolean;
100
+ }
101
+ /**
102
+ * @generated from message search.Filter
103
+ */
104
+ declare class Filter extends Message<Filter> {
105
+ /**
106
+ * @generated from field: string field = 1;
107
+ */
108
+ field: string;
109
+ /**
110
+ * @generated from oneof search.Filter.condition
111
+ */
112
+ condition: {
113
+ /**
114
+ * @generated from field: search.BoolFilter bool_filter = 2;
115
+ */
116
+ value: BoolFilter;
117
+ case: "boolFilter";
118
+ } | {
119
+ /**
120
+ * @generated from field: search.TimeRangeFilter time_range_filter = 3;
121
+ */
122
+ value: TimeRangeFilter;
123
+ case: "timeRangeFilter";
124
+ } | {
125
+ /**
126
+ * @generated from field: search.StringListFilter string_list_filter = 4;
127
+ */
128
+ value: StringListFilter;
129
+ case: "stringListFilter";
130
+ } | {
131
+ case: undefined;
132
+ value?: undefined;
133
+ };
134
+ constructor(data?: PartialMessage<Filter>);
135
+ static readonly runtime: typeof proto3;
136
+ static readonly typeName = "search.Filter";
137
+ static readonly fields: FieldList;
138
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter;
139
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter;
140
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter;
141
+ static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean;
142
+ }
143
+ /**
144
+ * @generated from message search.BoolFilter
145
+ */
146
+ declare class BoolFilter extends Message<BoolFilter> {
147
+ /**
148
+ * @generated from field: bool value = 1;
149
+ */
150
+ value: boolean;
151
+ constructor(data?: PartialMessage<BoolFilter>);
152
+ static readonly runtime: typeof proto3;
153
+ static readonly typeName = "search.BoolFilter";
154
+ static readonly fields: FieldList;
155
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolFilter;
156
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolFilter;
157
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolFilter;
158
+ static equals(a: BoolFilter | PlainMessage<BoolFilter> | undefined, b: BoolFilter | PlainMessage<BoolFilter> | undefined): boolean;
159
+ }
160
+ /**
161
+ * @generated from message search.StringListFilter
162
+ */
163
+ declare class StringListFilter extends Message<StringListFilter> {
164
+ /**
165
+ * @generated from field: repeated string value = 1;
166
+ */
167
+ value: string[];
168
+ /**
169
+ * @generated from field: search.Quantifier quantifier = 2;
170
+ */
171
+ quantifier: Quantifier;
172
+ /**
173
+ * @generated from field: search.Operation operation = 3;
174
+ */
175
+ operation: Operation;
176
+ constructor(data?: PartialMessage<StringListFilter>);
177
+ static readonly runtime: typeof proto3;
178
+ static readonly typeName = "search.StringListFilter";
179
+ static readonly fields: FieldList;
180
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringListFilter;
181
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringListFilter;
182
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringListFilter;
183
+ static equals(a: StringListFilter | PlainMessage<StringListFilter> | undefined, b: StringListFilter | PlainMessage<StringListFilter> | undefined): boolean;
184
+ }
185
+ /**
186
+ * @generated from message search.TimeRangeFilter
187
+ */
188
+ declare class TimeRangeFilter extends Message<TimeRangeFilter> {
189
+ /**
190
+ * @generated from field: optional int64 start_timestamp = 1;
191
+ */
192
+ startTimestamp?: bigint;
193
+ /**
194
+ * @generated from field: optional int64 end_timestamp = 2;
195
+ */
196
+ endTimestamp?: bigint;
197
+ constructor(data?: PartialMessage<TimeRangeFilter>);
198
+ static readonly runtime: typeof proto3;
199
+ static readonly typeName = "search.TimeRangeFilter";
200
+ static readonly fields: FieldList;
201
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRangeFilter;
202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRangeFilter;
203
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRangeFilter;
204
+ static equals(a: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined, b: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined): boolean;
205
+ }
33
206
  /**
34
207
  * @generated from message search.SearchResponse
35
208
  */
@@ -69,4 +242,4 @@ declare class SearchResult extends Message<SearchResult> {
69
242
  static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
70
243
  }
71
244
 
72
- export { SearchRequest, SearchResponse, SearchResult };
245
+ export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter };
@@ -1,6 +1,45 @@
1
1
  import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
2
  import { Error } from '../../util/error_pb.js';
3
3
 
4
+ /**
5
+ * @generated from enum search.Order
6
+ */
7
+ declare enum Order {
8
+ /**
9
+ * @generated from enum value: ASC = 0;
10
+ */
11
+ ASC = 0,
12
+ /**
13
+ * @generated from enum value: DESC = 1;
14
+ */
15
+ DESC = 1
16
+ }
17
+ /**
18
+ * @generated from enum search.Quantifier
19
+ */
20
+ declare enum Quantifier {
21
+ /**
22
+ * @generated from enum value: ANY = 0;
23
+ */
24
+ ANY = 0,
25
+ /**
26
+ * @generated from enum value: ALL = 1;
27
+ */
28
+ ALL = 1
29
+ }
30
+ /**
31
+ * @generated from enum search.Operation
32
+ */
33
+ declare enum Operation {
34
+ /**
35
+ * @generated from enum value: INCLUDE = 0;
36
+ */
37
+ INCLUDE = 0,
38
+ /**
39
+ * @generated from enum value: EXCLUDE = 1;
40
+ */
41
+ EXCLUDE = 1
42
+ }
4
43
  /**
5
44
  * @generated from message search.SearchRequest
6
45
  */
@@ -21,6 +60,14 @@ declare class SearchRequest extends Message<SearchRequest> {
21
60
  * @generated from field: int32 limit = 4;
22
61
  */
23
62
  limit: number;
63
+ /**
64
+ * @generated from field: repeated search.Filter filters = 5;
65
+ */
66
+ filters: Filter[];
67
+ /**
68
+ * @generated from field: search.Sort sort = 6;
69
+ */
70
+ sort?: Sort;
24
71
  constructor(data?: PartialMessage<SearchRequest>);
25
72
  static readonly runtime: typeof proto3;
26
73
  static readonly typeName = "search.SearchRequest";
@@ -30,6 +77,132 @@ declare class SearchRequest extends Message<SearchRequest> {
30
77
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
31
78
  static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
32
79
  }
80
+ /**
81
+ * @generated from message search.Sort
82
+ */
83
+ declare class Sort extends Message<Sort> {
84
+ /**
85
+ * @generated from field: string field = 1;
86
+ */
87
+ field: string;
88
+ /**
89
+ * @generated from field: search.Order order = 2;
90
+ */
91
+ order: Order;
92
+ constructor(data?: PartialMessage<Sort>);
93
+ static readonly runtime: typeof proto3;
94
+ static readonly typeName = "search.Sort";
95
+ static readonly fields: FieldList;
96
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sort;
97
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sort;
98
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sort;
99
+ static equals(a: Sort | PlainMessage<Sort> | undefined, b: Sort | PlainMessage<Sort> | undefined): boolean;
100
+ }
101
+ /**
102
+ * @generated from message search.Filter
103
+ */
104
+ declare class Filter extends Message<Filter> {
105
+ /**
106
+ * @generated from field: string field = 1;
107
+ */
108
+ field: string;
109
+ /**
110
+ * @generated from oneof search.Filter.condition
111
+ */
112
+ condition: {
113
+ /**
114
+ * @generated from field: search.BoolFilter bool_filter = 2;
115
+ */
116
+ value: BoolFilter;
117
+ case: "boolFilter";
118
+ } | {
119
+ /**
120
+ * @generated from field: search.TimeRangeFilter time_range_filter = 3;
121
+ */
122
+ value: TimeRangeFilter;
123
+ case: "timeRangeFilter";
124
+ } | {
125
+ /**
126
+ * @generated from field: search.StringListFilter string_list_filter = 4;
127
+ */
128
+ value: StringListFilter;
129
+ case: "stringListFilter";
130
+ } | {
131
+ case: undefined;
132
+ value?: undefined;
133
+ };
134
+ constructor(data?: PartialMessage<Filter>);
135
+ static readonly runtime: typeof proto3;
136
+ static readonly typeName = "search.Filter";
137
+ static readonly fields: FieldList;
138
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter;
139
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter;
140
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter;
141
+ static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean;
142
+ }
143
+ /**
144
+ * @generated from message search.BoolFilter
145
+ */
146
+ declare class BoolFilter extends Message<BoolFilter> {
147
+ /**
148
+ * @generated from field: bool value = 1;
149
+ */
150
+ value: boolean;
151
+ constructor(data?: PartialMessage<BoolFilter>);
152
+ static readonly runtime: typeof proto3;
153
+ static readonly typeName = "search.BoolFilter";
154
+ static readonly fields: FieldList;
155
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolFilter;
156
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolFilter;
157
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolFilter;
158
+ static equals(a: BoolFilter | PlainMessage<BoolFilter> | undefined, b: BoolFilter | PlainMessage<BoolFilter> | undefined): boolean;
159
+ }
160
+ /**
161
+ * @generated from message search.StringListFilter
162
+ */
163
+ declare class StringListFilter extends Message<StringListFilter> {
164
+ /**
165
+ * @generated from field: repeated string value = 1;
166
+ */
167
+ value: string[];
168
+ /**
169
+ * @generated from field: search.Quantifier quantifier = 2;
170
+ */
171
+ quantifier: Quantifier;
172
+ /**
173
+ * @generated from field: search.Operation operation = 3;
174
+ */
175
+ operation: Operation;
176
+ constructor(data?: PartialMessage<StringListFilter>);
177
+ static readonly runtime: typeof proto3;
178
+ static readonly typeName = "search.StringListFilter";
179
+ static readonly fields: FieldList;
180
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringListFilter;
181
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringListFilter;
182
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringListFilter;
183
+ static equals(a: StringListFilter | PlainMessage<StringListFilter> | undefined, b: StringListFilter | PlainMessage<StringListFilter> | undefined): boolean;
184
+ }
185
+ /**
186
+ * @generated from message search.TimeRangeFilter
187
+ */
188
+ declare class TimeRangeFilter extends Message<TimeRangeFilter> {
189
+ /**
190
+ * @generated from field: optional int64 start_timestamp = 1;
191
+ */
192
+ startTimestamp?: bigint;
193
+ /**
194
+ * @generated from field: optional int64 end_timestamp = 2;
195
+ */
196
+ endTimestamp?: bigint;
197
+ constructor(data?: PartialMessage<TimeRangeFilter>);
198
+ static readonly runtime: typeof proto3;
199
+ static readonly typeName = "search.TimeRangeFilter";
200
+ static readonly fields: FieldList;
201
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRangeFilter;
202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRangeFilter;
203
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRangeFilter;
204
+ static equals(a: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined, b: TimeRangeFilter | PlainMessage<TimeRangeFilter> | undefined): boolean;
205
+ }
33
206
  /**
34
207
  * @generated from message search.SearchResponse
35
208
  */
@@ -69,4 +242,4 @@ declare class SearchResult extends Message<SearchResult> {
69
242
  static equals(a: SearchResult | PlainMessage<SearchResult> | undefined, b: SearchResult | PlainMessage<SearchResult> | undefined): boolean;
70
243
  }
71
244
 
72
- export { SearchRequest, SearchResponse, SearchResult };
245
+ export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter };
@@ -1 +1 @@
1
- import{Message as t,proto3 as r}from"@bufbuild/protobuf";import{Error as e}from"../../util/error_pb.ts";class s extends t{query="";version=0;offset=0;limit=0;constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="search.SearchRequest";static fields=r.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5},{no:3,name:"offset",kind:"scalar",T:5},{no:4,name:"limit",kind:"scalar",T:5}]));static fromBinary(t,r){return(new s).fromBinary(t,r)}static fromJson(t,r){return(new s).fromJson(t,r)}static fromJsonString(t,r){return(new s).fromJsonString(t,r)}static equals(t,e){return r.util.equals(s,t,e)}}class i extends t{result=[];error=[];constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="search.SearchResponse";static fields=r.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:n,repeated:!0},{no:2,name:"error",kind:"message",T:e,repeated:!0}]));static fromBinary(t,r){return(new i).fromBinary(t,r)}static fromJson(t,r){return(new i).fromJson(t,r)}static fromJsonString(t,r){return(new i).fromJsonString(t,r)}static equals(t,e){return r.util.equals(i,t,e)}}class n extends t{postId="";constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="search.SearchResult";static fields=r.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new n).fromBinary(t,r)}static fromJson(t,r){return(new n).fromJson(t,r)}static fromJsonString(t,r){return(new n).fromJsonString(t,r)}static equals(t,e){return r.util.equals(n,t,e)}}export{s as SearchRequest,i as SearchResponse,n as SearchResult};
1
+ import{Message as t,proto3 as e}from"@bufbuild/protobuf";import{Error as n}from"../../util/error_pb.ts";var r=(t=>(t[t.ASC=0]="ASC",t[t.DESC=1]="DESC",t))(r||{});e.util.setEnumType(r,"search.Order",[{no:0,name:"ASC"},{no:1,name:"DESC"}]);var i=(t=>(t[t.ANY=0]="ANY",t[t.ALL=1]="ALL",t))(i||{});e.util.setEnumType(i,"search.Quantifier",[{no:0,name:"ANY"},{no:1,name:"ALL"}]);var s=(t=>(t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t))(s||{});e.util.setEnumType(s,"search.Operation",[{no:0,name:"INCLUDE"},{no:1,name:"EXCLUDE"}]);class a extends t{query="";version=0;offset=0;limit=0;filters=[];sort;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.SearchRequest";static fields=e.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5},{no:3,name:"offset",kind:"scalar",T:5},{no:4,name:"limit",kind:"scalar",T:5},{no:5,name:"filters",kind:"message",T:u,repeated:!0},{no:6,name:"sort",kind:"message",T:o}]));static fromBinary(t,e){return(new a).fromBinary(t,e)}static fromJson(t,e){return(new a).fromJson(t,e)}static fromJsonString(t,e){return(new a).fromJsonString(t,e)}static equals(t,n){return e.util.equals(a,t,n)}}class o extends t{field="";order=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.Sort";static fields=e.util.newFieldList((()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"enum",T:e.getEnumType(r)}]));static fromBinary(t,e){return(new o).fromBinary(t,e)}static fromJson(t,e){return(new o).fromJson(t,e)}static fromJsonString(t,e){return(new o).fromJsonString(t,e)}static equals(t,n){return e.util.equals(o,t,n)}}class u extends t{field="";condition={case:void 0};constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.Filter";static fields=e.util.newFieldList((()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"bool_filter",kind:"message",T:m,oneof:"condition"},{no:3,name:"time_range_filter",kind:"message",T:c,oneof:"condition"},{no:4,name:"string_list_filter",kind:"message",T:l,oneof:"condition"}]));static fromBinary(t,e){return(new u).fromBinary(t,e)}static fromJson(t,e){return(new u).fromJson(t,e)}static fromJsonString(t,e){return(new u).fromJsonString(t,e)}static equals(t,n){return e.util.equals(u,t,n)}}class m extends t{value=!1;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.BoolFilter";static fields=e.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:8}]));static fromBinary(t,e){return(new m).fromBinary(t,e)}static fromJson(t,e){return(new m).fromJson(t,e)}static fromJsonString(t,e){return(new m).fromJsonString(t,e)}static equals(t,n){return e.util.equals(m,t,n)}}class l extends t{value=[];quantifier=0;operation=0;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.StringListFilter";static fields=e.util.newFieldList((()=>[{no:1,name:"value",kind:"scalar",T:9,repeated:!0},{no:2,name:"quantifier",kind:"enum",T:e.getEnumType(i)},{no:3,name:"operation",kind:"enum",T:e.getEnumType(s)}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,n){return e.util.equals(l,t,n)}}class c extends t{startTimestamp;endTimestamp;constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.TimeRangeFilter";static fields=e.util.newFieldList((()=>[{no:1,name:"start_timestamp",kind:"scalar",T:3,opt:!0},{no:2,name:"end_timestamp",kind:"scalar",T:3,opt:!0}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,n){return e.util.equals(c,t,n)}}class f extends t{result=[];error=[];constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.SearchResponse";static fields=e.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:d,repeated:!0},{no:2,name:"error",kind:"message",T:n,repeated:!0}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,n){return e.util.equals(f,t,n)}}class d extends t{postId="";constructor(t){super(),e.util.initPartial(t,this)}static runtime=e;static typeName="search.SearchResult";static fields=e.util.newFieldList((()=>[{no:1,name:"post_id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,n){return e.util.equals(d,t,n)}}export{m as BoolFilter,u as Filter,s as Operation,r as Order,i as Quantifier,a as SearchRequest,f as SearchResponse,d as SearchResult,o as Sort,l as StringListFilter,c as TimeRangeFilter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dailydotdev/schema",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "author": "@dailydotdev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",