@ahoo-wang/fetcher-wow 0.11.0 → 0.11.1

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,15 +1,58 @@
1
1
  import { NullableAggregateVersionCapable } from './types';
2
2
  import { HttpMethod, RequestHeaders } from '@ahoo-wang/fetcher';
3
+ /**
4
+ * Command request interface
5
+ *
6
+ * Represents a command request with all necessary metadata for execution.
7
+ * This interface extends NullableAggregateVersionCapable to include optional aggregate version information.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * const commandRequest: CommandRequest = {
12
+ * path: '/commands/user/CreateUser',
13
+ * method: HttpMethod.POST,
14
+ * headers: {
15
+ * [CommandHeaders.TENANT_ID]: 'tenant-123',
16
+ * [CommandHeaders.REQUEST_ID]: 'req-' + Date.now()
17
+ * },
18
+ * body: {
19
+ * name: 'John Doe',
20
+ * email: 'john@example.com'
21
+ * },
22
+ * timeout: 10000,
23
+ * localFirst: true,
24
+ * stream: false
25
+ * };
26
+ * ```
27
+ */
3
28
  export interface CommandRequest extends NullableAggregateVersionCapable {
29
+ /**
30
+ * The path for the command request
31
+ */
4
32
  path: string;
33
+ /**
34
+ * Path parameters for the command request
35
+ */
5
36
  pathParams?: Record<string, any>;
37
+ /**
38
+ * HTTP method for the command request
39
+ */
6
40
  method: HttpMethod;
41
+ /**
42
+ * HTTP headers for the command request
43
+ */
7
44
  headers: RequestHeaders;
45
+ /**
46
+ * Request body containing the command data
47
+ */
8
48
  body: Record<string, any>;
9
49
  /**
10
- * Command timeout period. Milliseconds
50
+ * Command timeout period in milliseconds
11
51
  */
12
52
  timeout?: number;
53
+ /**
54
+ * Aggregate ID for the command
55
+ */
13
56
  aggregateId?: string;
14
57
  /**
15
58
  * The version of the target aggregate, which is used to control version conflicts
@@ -1 +1 @@
1
- {"version":3,"file":"commandRequest.d.ts","sourceRoot":"","sources":["../../src/command/commandRequest.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,+BAA+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CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -1,14 +1,39 @@
1
1
  import { AggregateId, AggregateNameCapable, ErrorInfo, FunctionInfoCapable, Identifier, NamedBoundedContext } from '../types';
2
2
  import { CommandId, CommandResultCapable, CommandStageCapable, NullableAggregateVersionCapable, RequestId, SignalTimeCapable, WaitCommandIdCapable } from './types';
3
3
  import { JsonServerSentEvent } from '@ahoo-wang/fetcher-eventstream';
4
+ /**
5
+ * Command execution result interface
6
+ *
7
+ * Represents the result of a command execution, containing information about:
8
+ * - Command identification (commandId, requestId)
9
+ * - Execution context (bounded context, aggregate information)
10
+ * - Execution status and errors
11
+ * - Timing information (signalTime)
12
+ * - Version tracking (aggregateVersion)
13
+ */
4
14
  export interface CommandResult extends Identifier, WaitCommandIdCapable, CommandStageCapable, NamedBoundedContext, AggregateNameCapable, AggregateId, ErrorInfo, CommandId, RequestId, ErrorInfo, FunctionInfoCapable, CommandResultCapable, SignalTimeCapable, NullableAggregateVersionCapable {
5
15
  /**
6
- * 聚合根版本号
7
- * - 命令处理成功时,为聚合根完成命令处理后的版本号
8
- * - 当命令在命令网关验证失败时,为 null
9
- * - 当命令在命令处理器中执行失败时,为聚合根的当前版本号
16
+ * Aggregate root version number
17
+ * - When command processing succeeds, this is the version number after the aggregate root has completed command processing
18
+ * - When command validation fails at the command gateway, this is null
19
+ * - When command execution fails in the command handler, this is the current version number of the aggregate root
10
20
  */
11
21
  aggregateVersion?: number;
12
22
  }
23
+ /**
24
+ * Command result event stream type
25
+ *
26
+ * A readable stream of JSON Server-Sent Events containing command execution results.
27
+ * This stream allows real-time consumption of command results as they are processed.
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const eventStream: CommandResultEventStream = getCommandResultStream();
32
+ * for await (const event of eventStream) {
33
+ * const commandResult: CommandResult = event.data;
34
+ * console.log('Command result received:', commandResult);
35
+ * }
36
+ * ```
37
+ */
13
38
  export type CommandResultEventStream = ReadableStream<JsonServerSentEvent<CommandResult>>;
14
39
  //# sourceMappingURL=commandResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commandResult.d.ts","sourceRoot":"","sources":["../../src/command/commandResult.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,WAAW,EACX,oBAAoB,EACpB,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,aACf,SAAQ,UAAU,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAChF,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EAAE,SAAS,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,+BAA+B;IACrH;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAE3B;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"commandResult.d.ts","sourceRoot":"","sources":["../../src/command/commandResult.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,WAAW,EACX,oBAAoB,EACpB,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,WAAW,aACf,SAAQ,UAAU,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,+BAA+B;IACjC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,mBAAmB,CAAC,aAAa,CAAC,CACnC,CAAC"}
@@ -1,47 +1,87 @@
1
+ /**
2
+ * Command identifier interface
3
+ *
4
+ * Represents the unique identifier for a command.
5
+ */
1
6
  export interface CommandId {
2
7
  commandId: string;
3
8
  }
9
+ /**
10
+ * Wait command identifier capable interface
11
+ *
12
+ * Represents the identifier of the command being waited for.
13
+ */
4
14
  export interface WaitCommandIdCapable {
5
15
  waitCommandId: string;
6
16
  }
17
+ /**
18
+ * Request identifier interface
19
+ *
20
+ * Represents the unique identifier for a request, used for idempotency control.
21
+ */
7
22
  export interface RequestId {
8
23
  requestId: string;
9
24
  }
25
+ /**
26
+ * Command execution stage enum
27
+ *
28
+ * Represents the different stages of command execution lifecycle.
29
+ */
10
30
  export declare enum CommandStage {
11
31
  /**
12
- * 当命令发布到命令总线/队列后,生成完成信号.
32
+ * When the command is published to the command bus/queue, a completion signal is generated.
13
33
  */
14
34
  SENT = "SENT",
15
35
  /**
16
- * 当命令被聚合根处理完成后,生成完成信号.
36
+ * When the command is processed by the aggregate root, a completion signal is generated.
17
37
  */
18
38
  PROCESSED = "PROCESSED",
19
39
  /**
20
- * 当快照被生成后,生成完成信号.
40
+ * When the snapshot is generated, a completion signal is generated.
21
41
  */
22
42
  SNAPSHOT = "SNAPSHOT",
23
43
  /**
24
- * 当命令产生的事件*投影*完成后,生成完成信号.
44
+ * When the events generated by the command are *projected*, a completion signal is generated.
25
45
  */
26
46
  PROJECTED = "PROJECTED",
27
47
  /**
28
- * 当命令产生的事件被*事件处理器*处理完成后,生成完成信号.
48
+ * When the events generated by the command are processed by *event handlers*, a completion signal is generated.
29
49
  */
30
50
  EVENT_HANDLED = "EVENT_HANDLED",
31
51
  /**
32
- * 当命令产生的事件被*Saga*处理完成后,生成完成信号.
52
+ * When the events generated by the command are processed by *Saga*, a completion signal is generated.
33
53
  */
34
54
  SAGA_HANDLED = "SAGA_HANDLED"
35
55
  }
56
+ /**
57
+ * Command stage capable interface
58
+ *
59
+ * Represents an object that has a command execution stage.
60
+ */
36
61
  export interface CommandStageCapable {
37
62
  stage: CommandStage;
38
63
  }
64
+ /**
65
+ * Command result capable interface
66
+ *
67
+ * Represents an object that contains command execution results.
68
+ */
39
69
  export interface CommandResultCapable {
40
70
  result: Record<string, any>;
41
71
  }
72
+ /**
73
+ * Signal time capable interface
74
+ *
75
+ * Represents an object that has a signal time (timestamp).
76
+ */
42
77
  export interface SignalTimeCapable {
43
78
  signalTime: number;
44
79
  }
80
+ /**
81
+ * Nullable aggregate version capable interface
82
+ *
83
+ * Represents an object that may have an aggregate version for optimistic concurrency control.
84
+ */
45
85
  export interface NullableAggregateVersionCapable {
46
86
  /**
47
87
  * The aggregate version of the aggregate.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/command/types.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,YAAY;IACtB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,aAAa,kBAAkB;IAE/B;;OAEG;IACH,YAAY,iBAAiB;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/command/types.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,oBAAY,YAAY;IACtB;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,aAAa,kBAAkB;IAE/B;;OAEG;IACH,YAAY,iBAAiB;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,YAAY,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -1,13 +1,45 @@
1
1
  import { Operator } from './operator';
2
+ /**
3
+ * Condition option keys enumeration
4
+ *
5
+ * Defines standard option keys used in query conditions for special handling.
6
+ */
2
7
  export declare enum ConditionOptionKey {
8
+ /**
9
+ * Ignore case option key for string comparisons
10
+ */
3
11
  IGNORE_CASE_OPTION_KEY = "ignoreCase",
12
+ /**
13
+ * Time zone ID option key for date operations
14
+ */
4
15
  ZONE_ID_OPTION_KEY = "zoneId",
16
+ /**
17
+ * Date pattern option key for date formatting
18
+ */
5
19
  DATE_PATTERN_OPTION_KEY = "datePattern"
6
20
  }
21
+ /**
22
+ * Condition options interface
23
+ *
24
+ * Represents additional options that can be applied to query conditions,
25
+ * such as case sensitivity, date patterns, and time zones.
26
+ */
7
27
  export interface ConditionOptions {
28
+ /**
29
+ * Whether to ignore case in string comparisons
30
+ */
8
31
  ignoreCase?: boolean;
32
+ /**
33
+ * Date pattern for date formatting
34
+ */
9
35
  datePattern?: string;
36
+ /**
37
+ * Time zone ID for date operations
38
+ */
10
39
  zoneId?: string;
40
+ /**
41
+ * Additional custom options
42
+ */
11
43
  [key: string]: any;
12
44
  }
13
45
  /**
@@ -31,10 +63,25 @@ export declare function dateOptions(datePattern?: string, zoneId?: string): Cond
31
63
  * When `operator` is `AND` or `OR` or `NOR`, `children` cannot be empty.
32
64
  */
33
65
  export interface Condition {
66
+ /**
67
+ * Field name for the condition
68
+ */
34
69
  field?: string;
70
+ /**
71
+ * Operator for the condition
72
+ */
35
73
  operator?: Operator;
74
+ /**
75
+ * Value for the condition
76
+ */
36
77
  value?: any;
78
+ /**
79
+ * Child conditions for logical operators (AND, OR, NOR)
80
+ */
37
81
  children?: Condition[];
82
+ /**
83
+ * Additional options for the condition
84
+ */
38
85
  options?: ConditionOptions;
39
86
  }
40
87
  /**
@@ -43,9 +90,23 @@ export interface Condition {
43
90
  export interface ConditionCapable {
44
91
  condition: Condition;
45
92
  }
93
+ /**
94
+ * Deletion state enumeration
95
+ *
96
+ * Represents the different states of deletion for entities.
97
+ */
46
98
  export declare enum DeletionState {
99
+ /**
100
+ * Active state - entity is not deleted
101
+ */
47
102
  ACTIVE = "ACTIVE",
103
+ /**
104
+ * Deleted state - entity is deleted
105
+ */
48
106
  DELETED = "DELETED",
107
+ /**
108
+ * All state - includes both active and deleted entities
109
+ */
49
110
  ALL = "ALL"
50
111
  }
51
112
  /**
@@ -69,43 +130,317 @@ export declare function or(...conditions: Condition[]): Condition;
69
130
  * @returns A condition with NOR operator
70
131
  */
71
132
  export declare function nor(...conditions: Condition[]): Condition;
133
+ /**
134
+ * Creates an ID condition with the specified value.
135
+ *
136
+ * @param value - The ID value to match
137
+ * @returns A condition with ID operator
138
+ */
72
139
  export declare function id(value: string): Condition;
140
+ /**
141
+ * Creates an IDS condition with the specified values.
142
+ *
143
+ * @param value - The ID values to match
144
+ * @returns A condition with IDS operator
145
+ */
73
146
  export declare function ids(value: string[]): Condition;
147
+ /**
148
+ * Creates an AGGREGATE_ID condition with the specified value.
149
+ *
150
+ * @param value - The aggregate ID value to match
151
+ * @returns A condition with AGGREGATE_ID operator
152
+ */
74
153
  export declare function aggregateId(value: string): Condition;
154
+ /**
155
+ * Creates an AGGREGATE_IDS condition with the specified values.
156
+ *
157
+ * @param value - The aggregate ID values to match
158
+ * @returns A condition with AGGREGATE_IDS operator
159
+ */
75
160
  export declare function aggregateIds(...value: string[]): Condition;
161
+ /**
162
+ * Creates a TENANT_ID condition with the specified value.
163
+ *
164
+ * @param value - The tenant ID value to match
165
+ * @returns A condition with TENANT_ID operator
166
+ */
76
167
  export declare function tenantId(value: string): Condition;
168
+ /**
169
+ * Creates an OWNER_ID condition with the specified value.
170
+ *
171
+ * @param value - The owner ID value to match
172
+ * @returns A condition with OWNER_ID operator
173
+ */
77
174
  export declare function ownerId(value: string): Condition;
175
+ /**
176
+ * Creates a DELETED condition with the specified value.
177
+ *
178
+ * @param value - The deletion state value to match
179
+ * @returns A condition with DELETED operator
180
+ */
78
181
  export declare function deleted(value: DeletionState): Condition;
182
+ /**
183
+ * Creates an ACTIVE deletion state condition.
184
+ *
185
+ * @returns A condition with DELETED operator set to ACTIVE
186
+ */
79
187
  export declare function active(): Condition;
188
+ /**
189
+ * Creates an ALL condition.
190
+ *
191
+ * @returns A condition with ALL operator
192
+ */
80
193
  export declare function all(): Condition;
194
+ /**
195
+ * Creates an EQ (equals) condition with the specified field and value.
196
+ *
197
+ * @param field - The field name to compare
198
+ * @param value - The value to compare against
199
+ * @returns A condition with EQ operator
200
+ */
81
201
  export declare function eq(field: string, value: any): Condition;
202
+ /**
203
+ * Creates a NE (not equals) condition with the specified field and value.
204
+ *
205
+ * @param field - The field name to compare
206
+ * @param value - The value to compare against
207
+ * @returns A condition with NE operator
208
+ */
82
209
  export declare function ne(field: string, value: any): Condition;
210
+ /**
211
+ * Creates a GT (greater than) condition with the specified field and value.
212
+ *
213
+ * @param field - The field name to compare
214
+ * @param value - The value to compare against
215
+ * @returns A condition with GT operator
216
+ */
83
217
  export declare function gt(field: string, value: any): Condition;
218
+ /**
219
+ * Creates a LT (less than) condition with the specified field and value.
220
+ *
221
+ * @param field - The field name to compare
222
+ * @param value - The value to compare against
223
+ * @returns A condition with LT operator
224
+ */
84
225
  export declare function lt(field: string, value: any): Condition;
226
+ /**
227
+ * Creates a GTE (greater than or equal) condition with the specified field and value.
228
+ *
229
+ * @param field - The field name to compare
230
+ * @param value - The value to compare against
231
+ * @returns A condition with GTE operator
232
+ */
85
233
  export declare function gte(field: string, value: any): Condition;
234
+ /**
235
+ * Creates a LTE (less than or equal) condition with the specified field and value.
236
+ *
237
+ * @param field - The field name to compare
238
+ * @param value - The value to compare against
239
+ * @returns A condition with LTE operator
240
+ */
86
241
  export declare function lte(field: string, value: any): Condition;
242
+ /**
243
+ * Creates a CONTAINS condition with the specified field and value.
244
+ *
245
+ * @param field - The field name to search in
246
+ * @param value - The value to search for
247
+ * @param ignoreCase - Whether to ignore case in the search
248
+ * @returns A condition with CONTAINS operator
249
+ */
87
250
  export declare function contains(field: string, value: any, ignoreCase?: boolean): Condition;
251
+ /**
252
+ * Creates an IN condition with the specified field and values.
253
+ *
254
+ * @param field - The field name to compare
255
+ * @param value - The values to compare against
256
+ * @returns A condition with IN operator
257
+ */
88
258
  export declare function isIn(field: string, ...value: any[]): Condition;
259
+ /**
260
+ * Creates a NOT_IN condition with the specified field and values.
261
+ *
262
+ * @param field - The field name to compare
263
+ * @param value - The values to compare against
264
+ * @returns A condition with NOT_IN operator
265
+ */
89
266
  export declare function notIn(field: string, ...value: any[]): Condition;
267
+ /**
268
+ * Creates a BETWEEN condition with the specified field and range.
269
+ *
270
+ * @param field - The field name to compare
271
+ * @param start - The start value of the range
272
+ * @param end - The end value of the range
273
+ * @returns A condition with BETWEEN operator
274
+ */
90
275
  export declare function between(field: string, start: any, end: any): Condition;
276
+ /**
277
+ * Creates an ALL_IN condition with the specified field and values.
278
+ *
279
+ * @param field - The field name to compare
280
+ * @param value - The values to compare against
281
+ * @returns A condition with ALL_IN operator
282
+ */
91
283
  export declare function allIn(field: string, ...value: any[]): Condition;
284
+ /**
285
+ * Creates a STARTS_WITH condition with the specified field and value.
286
+ *
287
+ * @param field - The field name to compare
288
+ * @param value - The value to compare against
289
+ * @param ignoreCase - Whether to ignore case in the comparison
290
+ * @returns A condition with STARTS_WITH operator
291
+ */
92
292
  export declare function startsWith(field: string, value: any, ignoreCase?: boolean): Condition;
293
+ /**
294
+ * Creates an ENDS_WITH condition with the specified field and value.
295
+ *
296
+ * @param field - The field name to compare
297
+ * @param value - The value to compare against
298
+ * @param ignoreCase - Whether to ignore case in the comparison
299
+ * @returns A condition with ENDS_WITH operator
300
+ */
93
301
  export declare function endsWith(field: string, value: any, ignoreCase?: boolean): Condition;
302
+ /**
303
+ * Creates an ELEM_MATCH condition with the specified field and child condition.
304
+ *
305
+ * @param field - The field name to match elements in
306
+ * @param value - The condition to match elements against
307
+ * @returns A condition with ELEM_MATCH operator
308
+ */
94
309
  export declare function elemMatch(field: string, value: Condition): Condition;
310
+ /**
311
+ * Creates a NULL condition with the specified field.
312
+ *
313
+ * @param field - The field name to check
314
+ * @returns A condition with NULL operator
315
+ */
95
316
  export declare function isNull(field: string): Condition;
317
+ /**
318
+ * Creates a NOT_NULL condition with the specified field.
319
+ *
320
+ * @param field - The field name to check
321
+ * @returns A condition with NOT_NULL operator
322
+ */
96
323
  export declare function notNull(field: string): Condition;
324
+ /**
325
+ * Creates a TRUE condition with the specified field.
326
+ *
327
+ * @param field - The field name to check
328
+ * @returns A condition with TRUE operator
329
+ */
97
330
  export declare function isTrue(field: string): Condition;
331
+ /**
332
+ * Creates a FALSE condition with the specified field.
333
+ *
334
+ * @param field - The field name to check
335
+ * @returns A condition with FALSE operator
336
+ */
98
337
  export declare function isFalse(field: string): Condition;
338
+ /**
339
+ * Creates an EXISTS condition with the specified field and existence flag.
340
+ *
341
+ * @param field - The field name to check
342
+ * @param exists - Whether the field should exist (default: true)
343
+ * @returns A condition with EXISTS operator
344
+ */
99
345
  export declare function exists(field: string, exists?: boolean): Condition;
346
+ /**
347
+ * Creates a TODAY condition with the specified field.
348
+ *
349
+ * @param field - The field name to check
350
+ * @param datePattern - The date pattern to use
351
+ * @param zoneId - The time zone ID to use
352
+ * @returns A condition with TODAY operator
353
+ */
100
354
  export declare function today(field: string, datePattern?: string, zoneId?: string): Condition;
355
+ /**
356
+ * Creates a BEFORE_TODAY condition with the specified field and time.
357
+ *
358
+ * @param field - The field name to check
359
+ * @param time - The time to compare against
360
+ * @param datePattern - The date pattern to use
361
+ * @param zoneId - The time zone ID to use
362
+ * @returns A condition with BEFORE_TODAY operator
363
+ */
101
364
  export declare function beforeToday(field: string, time: any, datePattern?: string, zoneId?: string): Condition;
365
+ /**
366
+ * Creates a TOMORROW condition with the specified field.
367
+ *
368
+ * @param field - The field name to check
369
+ * @param datePattern - The date pattern to use
370
+ * @param zoneId - The time zone ID to use
371
+ * @returns A condition with TOMORROW operator
372
+ */
102
373
  export declare function tomorrow(field: string, datePattern?: string, zoneId?: string): Condition;
374
+ /**
375
+ * Creates a THIS_WEEK condition with the specified field.
376
+ *
377
+ * @param field - The field name to check
378
+ * @param datePattern - The date pattern to use
379
+ * @param zoneId - The time zone ID to use
380
+ * @returns A condition with THIS_WEEK operator
381
+ */
103
382
  export declare function thisWeek(field: string, datePattern?: string, zoneId?: string): Condition;
383
+ /**
384
+ * Creates a NEXT_WEEK condition with the specified field.
385
+ *
386
+ * @param field - The field name to check
387
+ * @param datePattern - The date pattern to use
388
+ * @param zoneId - The time zone ID to use
389
+ * @returns A condition with NEXT_WEEK operator
390
+ */
104
391
  export declare function nextWeek(field: string, datePattern?: string, zoneId?: string): Condition;
392
+ /**
393
+ * Creates a LAST_WEEK condition with the specified field.
394
+ *
395
+ * @param field - The field name to check
396
+ * @param datePattern - The date pattern to use
397
+ * @param zoneId - The time zone ID to use
398
+ * @returns A condition with LAST_WEEK operator
399
+ */
105
400
  export declare function lastWeek(field: string, datePattern?: string, zoneId?: string): Condition;
401
+ /**
402
+ * Creates a THIS_MONTH condition with the specified field.
403
+ *
404
+ * @param field - The field name to check
405
+ * @param datePattern - The date pattern to use
406
+ * @param zoneId - The time zone ID to use
407
+ * @returns A condition with THIS_MONTH operator
408
+ */
106
409
  export declare function thisMonth(field: string, datePattern?: string, zoneId?: string): Condition;
410
+ /**
411
+ * Creates a LAST_MONTH condition with the specified field.
412
+ *
413
+ * @param field - The field name to check
414
+ * @param datePattern - The date pattern to use
415
+ * @param zoneId - The time zone ID to use
416
+ * @returns A condition with LAST_MONTH operator
417
+ */
107
418
  export declare function lastMonth(field: string, datePattern?: string, zoneId?: string): Condition;
419
+ /**
420
+ * Creates a RECENT_DAYS condition with the specified field and number of days.
421
+ *
422
+ * @param field - The field name to check
423
+ * @param days - The number of recent days to include
424
+ * @param datePattern - The date pattern to use
425
+ * @param zoneId - The time zone ID to use
426
+ * @returns A condition with RECENT_DAYS operator
427
+ */
108
428
  export declare function recentDays(field: string, days: number, datePattern?: string, zoneId?: string): Condition;
429
+ /**
430
+ * Creates an EARLIER_DAYS condition with the specified field and number of days.
431
+ *
432
+ * @param field - The field name to check
433
+ * @param days - The number of days to look back
434
+ * @param datePattern - The date pattern to use
435
+ * @param zoneId - The time zone ID to use
436
+ * @returns A condition with EARLIER_DAYS operator
437
+ */
109
438
  export declare function earlierDays(field: string, days: number, datePattern?: string, zoneId?: string): Condition;
439
+ /**
440
+ * Creates a RAW condition with the specified raw value.
441
+ *
442
+ * @param raw - The raw condition value
443
+ * @returns A condition with RAW operator
444
+ */
110
445
  export declare function raw(raw: any): Condition;
111
446
  //# sourceMappingURL=condition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../src/query/condition.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,kBAAkB;IAC5B,sBAAsB,eAAe;IACrC,kBAAkB,WAAW;IAC7B,uBAAuB,gBAAgB;CACxC;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,CAAC,EAAE,OAAO,GACnB,gBAAgB,GAAG,SAAS,CAK9B;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,WAAW,CAAC,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,gBAAgB,GAAG,SAAS,CAY9B;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;I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,GAAG,SAAS,CAEvC"}
@@ -1,8 +1,28 @@
1
+ /**
2
+ * Function kind enum
3
+ *
4
+ * Represents the different types of functions in the system.
5
+ */
1
6
  export declare enum FunctionKind {
7
+ /**
8
+ * Command function kind
9
+ */
2
10
  COMMAND = "COMMAND",
11
+ /**
12
+ * Error function kind
13
+ */
3
14
  ERROR = "ERROR",
15
+ /**
16
+ * Event function kind
17
+ */
4
18
  EVENT = "EVENT",
19
+ /**
20
+ * Sourcing function kind
21
+ */
5
22
  SOURCING = "SOURCING",
23
+ /**
24
+ * State event function kind
25
+ */
6
26
  STATE_EVENT = "STATE_EVENT"
7
27
  }
8
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../src/types/function.ts"],"names":[],"mappings":"AAaA,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,YAAY,CAAC;CACxB"}
1
+ {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../src/types/function.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,oBAAY,YAAY;IACtB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,YAAY,CAAC;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahoo-wang/fetcher-wow",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Support for Wow(https://github.com/Ahoo-Wang/Wow) in Fetcher",
5
5
  "keywords": [
6
6
  "fetch",
@@ -38,8 +38,8 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "@ahoo-wang/fetcher": "0.11.0",
42
- "@ahoo-wang/fetcher-eventstream": "0.11.0"
41
+ "@ahoo-wang/fetcher": "0.11.1",
42
+ "@ahoo-wang/fetcher-eventstream": "0.11.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@vitest/coverage-v8": "^3.2.4",