@mastra/nestjs 0.2.5-alpha.0 → 0.2.5-alpha.2

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_types/rxjs/dist/types/internal/AsyncSubject.d.ts +0 -2
  3. package/dist/_types/rxjs/dist/types/internal/BehaviorSubject.d.ts +0 -2
  4. package/dist/_types/rxjs/dist/types/internal/Notification.d.ts +5 -10
  5. package/dist/_types/rxjs/dist/types/internal/Observable.d.ts +7 -14
  6. package/dist/_types/rxjs/dist/types/internal/ReplaySubject.d.ts +3 -3
  7. package/dist/_types/rxjs/dist/types/internal/Scheduler.d.ts +8 -10
  8. package/dist/_types/rxjs/dist/types/internal/Subject.d.ts +1 -5
  9. package/dist/_types/rxjs/dist/types/internal/Subscriber.d.ts +3 -9
  10. package/dist/_types/rxjs/dist/types/internal/Subscription.d.ts +0 -4
  11. package/dist/_types/rxjs/dist/types/internal/observable/defer.d.ts +5 -6
  12. package/dist/_types/rxjs/dist/types/internal/observable/generate.d.ts +21 -18
  13. package/dist/_types/rxjs/dist/types/internal/observable/interval.d.ts +5 -6
  14. package/dist/_types/rxjs/dist/types/internal/observable/using.d.ts +3 -5
  15. package/dist/_types/rxjs/dist/types/internal/operators/auditTime.d.ts +5 -5
  16. package/dist/_types/rxjs/dist/types/internal/operators/bufferCount.d.ts +2 -2
  17. package/dist/_types/rxjs/dist/types/internal/operators/bufferWhen.d.ts +2 -2
  18. package/dist/_types/rxjs/dist/types/internal/operators/debounceTime.d.ts +5 -6
  19. package/dist/_types/rxjs/dist/types/internal/operators/delay.d.ts +4 -4
  20. package/dist/_types/rxjs/dist/types/internal/operators/elementAt.d.ts +4 -4
  21. package/dist/_types/rxjs/dist/types/internal/operators/finalize.d.ts +1 -1
  22. package/dist/_types/rxjs/dist/types/internal/operators/max.d.ts +5 -4
  23. package/dist/_types/rxjs/dist/types/internal/operators/mergeAll.d.ts +2 -2
  24. package/dist/_types/rxjs/dist/types/internal/operators/mergeScan.d.ts +3 -4
  25. package/dist/_types/rxjs/dist/types/internal/operators/min.d.ts +5 -4
  26. package/dist/_types/rxjs/dist/types/internal/operators/repeat.d.ts +2 -2
  27. package/dist/_types/rxjs/dist/types/internal/operators/repeatWhen.d.ts +1 -1
  28. package/dist/_types/rxjs/dist/types/internal/operators/retryWhen.d.ts +1 -1
  29. package/dist/_types/rxjs/dist/types/internal/operators/sampleTime.d.ts +4 -4
  30. package/dist/_types/rxjs/dist/types/internal/operators/skip.d.ts +1 -1
  31. package/dist/_types/rxjs/dist/types/internal/operators/takeUntil.d.ts +2 -3
  32. package/dist/_types/rxjs/dist/types/internal/operators/timeInterval.d.ts +1 -1
  33. package/dist/_types/rxjs/dist/types/internal/operators/timeout.d.ts +0 -2
  34. package/dist/_types/rxjs/dist/types/internal/operators/windowCount.d.ts +5 -6
  35. package/dist/_types/rxjs/dist/types/internal/operators/windowToggle.d.ts +4 -6
  36. package/dist/_types/rxjs/dist/types/internal/operators/windowWhen.d.ts +4 -3
  37. package/dist/_types/rxjs/dist/types/internal/scheduler/Action.d.ts +5 -7
  38. package/dist/_types/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts +0 -1
  39. package/dist/_types/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts +0 -1
  40. package/dist/_types/rxjs/dist/types/internal/types.d.ts +6 -0
  41. package/dist/_types/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts +0 -2
  42. package/dist/_types/rxjs/dist/types/internal/util/EmptyError.d.ts +0 -2
  43. package/dist/_types/rxjs/dist/types/internal/util/NotFoundError.d.ts +0 -2
  44. package/dist/_types/rxjs/dist/types/internal/util/SequenceError.d.ts +0 -2
  45. package/dist/index.cjs +460 -457
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.js +460 -457
  48. package/dist/index.js.map +1 -1
  49. package/package.json +8 -8
@@ -34,10 +34,10 @@ import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
34
34
  * @see {@link sample}
35
35
  * @see {@link throttleTime}
36
36
  *
37
- * @param {number} period The sampling period expressed in milliseconds or the
38
- * time unit determined internally by the optional `scheduler`.
39
- * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for
40
- * managing the timers that handle the sampling.
37
+ * @param period The sampling period expressed in milliseconds or the time unit
38
+ * determined internally by the optional `scheduler`.
39
+ * @param scheduler The {@link SchedulerLike} to use for managing the timers
40
+ * that handle the sampling.
41
41
  * @return A function that returns an Observable that emits the results of
42
42
  * sampling the values emitted by the source Observable at the specified time
43
43
  * interval.
@@ -28,7 +28,7 @@ import { MonoTypeOperatorFunction } from '../types';
28
28
  * @see {@link skipUntil}
29
29
  * @see {@link skipLast}
30
30
  *
31
- * @param {Number} count - The number of times, items emitted by source Observable should be skipped.
31
+ * @param count The number of times, items emitted by source Observable should be skipped.
32
32
  * @return A function that returns an Observable that skips the first `count`
33
33
  * values emitted by the source Observable.
34
34
  */
@@ -32,9 +32,8 @@ import { MonoTypeOperatorFunction, ObservableInput } from '../types';
32
32
  * @see {@link takeWhile}
33
33
  * @see {@link skip}
34
34
  *
35
- * @param {Observable} notifier The Observable whose first emitted value will
36
- * cause the output Observable of `takeUntil` to stop emitting values from the
37
- * source Observable.
35
+ * @param notifier The `ObservableInput` whose first emitted value will cause the output
36
+ * Observable of `takeUntil` to stop emitting values from the source Observable.
38
37
  * @return A function that returns an Observable that emits the values from the
39
38
  * source Observable until `notifier` emits its first value.
40
39
  */
@@ -34,7 +34,7 @@ import { SchedulerLike, OperatorFunction } from '../types';
34
34
  * // { value: 2, interval: 1000 }
35
35
  * ```
36
36
  *
37
- * @param {SchedulerLike} [scheduler] Scheduler used to get the current time.
37
+ * @param scheduler Scheduler used to get the current time.
38
38
  * @return A function that returns an Observable that emits information about
39
39
  * value and interval.
40
40
  */
@@ -64,8 +64,6 @@ export interface TimeoutErrorCtor {
64
64
  * create your own error class and use that.
65
65
  *
66
66
  * @see {@link timeout}
67
- *
68
- * @class TimeoutError
69
67
  */
70
68
  export declare const TimeoutError: TimeoutErrorCtor;
71
69
  /**
@@ -53,12 +53,11 @@ import { OperatorFunction } from '../types';
53
53
  * @see {@link windowWhen}
54
54
  * @see {@link bufferCount}
55
55
  *
56
- * @param {number} windowSize The maximum number of values emitted by each
57
- * window.
58
- * @param {number} [startWindowEvery] Interval at which to start a new window.
59
- * For example if `startWindowEvery` is `2`, then a new window will be started
60
- * on every other value from the source. A new window is started at the
61
- * beginning of the source by default.
56
+ * @param windowSize The maximum number of values emitted by each window.
57
+ * @param startWindowEvery Interval at which to start a new window. For example
58
+ * if `startWindowEvery` is `2`, then a new window will be started on every
59
+ * other value from the source. A new window is started at the beginning of the
60
+ * source by default.
62
61
  * @return A function that returns an Observable of windows, which in turn are
63
62
  * Observable of values.
64
63
  */
@@ -38,12 +38,10 @@ import { ObservableInput, OperatorFunction } from '../types';
38
38
  * @see {@link windowWhen}
39
39
  * @see {@link bufferToggle}
40
40
  *
41
- * @param {Observable<O>} openings An observable of notifications to start new
42
- * windows.
43
- * @param {function(value: O): Observable} closingSelector A function that takes
44
- * the value emitted by the `openings` observable and returns an Observable,
45
- * which, when it emits a next notification, signals that the
46
- * associated window should complete.
41
+ * @param openings An observable of notifications to start new windows.
42
+ * @param closingSelector A function that takes the value emitted by the
43
+ * `openings` observable and returns an Observable, which, when it emits a next
44
+ * notification, signals that the associated window should complete.
47
45
  * @return A function that returns an Observable of windows, which in turn are
48
46
  * Observables.
49
47
  */
@@ -38,9 +38,10 @@ import { ObservableInput, OperatorFunction } from '../types';
38
38
  * @see {@link windowToggle}
39
39
  * @see {@link bufferWhen}
40
40
  *
41
- * @param {function(): Observable} closingSelector A function that takes no
42
- * arguments and returns an Observable that signals (on either `next` or
43
- * `complete`) when to close the previous window and start a new one.
41
+ * @param closingSelector A function that takes no arguments and returns an
42
+ * {@link ObservableInput} (that gets converted to Observable) that signals
43
+ * (on either `next` or `complete`) when to close the previous window and
44
+ * start a new one.
44
45
  * @return A function that returns an Observable of windows, which in turn are
45
46
  * Observables.
46
47
  */
@@ -12,8 +12,6 @@ import { SchedulerAction } from '../types';
12
12
  * schedule(state?: T, delay: number = 0): Subscription;
13
13
  * }
14
14
  * ```
15
- *
16
- * @class Action<T>
17
15
  */
18
16
  export declare class Action<T> extends Subscription {
19
17
  constructor(scheduler: Scheduler, work: (this: SchedulerAction<T>, state?: T) => void);
@@ -21,11 +19,11 @@ export declare class Action<T> extends Subscription {
21
19
  * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed
22
20
  * some context object, `state`. May happen at some point in the future,
23
21
  * according to the `delay` parameter, if specified.
24
- * @param {T} [state] Some contextual data that the `work` function uses when
25
- * called by the Scheduler.
26
- * @param {number} [delay] Time to wait before executing the work, where the
27
- * time unit is implicit and defined by the Scheduler.
28
- * @return {void}
22
+ * @param state Some contextual data that the `work` function uses when called by the
23
+ * Scheduler.
24
+ * @param delay Time to wait before executing the work, where the time unit is implicit
25
+ * and defined by the Scheduler.
26
+ * @return A subscription in order to be able to unsubscribe the scheduled work.
29
27
  */
30
28
  schedule(state?: T, delay?: number): Subscription;
31
29
  }
@@ -16,7 +16,6 @@ export declare class AsyncAction<T> extends Action<T> {
16
16
  protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay?: number | null): TimerHandle | undefined;
17
17
  /**
18
18
  * Immediately executes this action and the `work` it contains.
19
- * @return {any}
20
19
  */
21
20
  execute(state: T, delay: number): any;
22
21
  protected _execute(state: T, _delay: number): any;
@@ -30,7 +30,6 @@ export declare class VirtualTimeScheduler extends AsyncScheduler {
30
30
  /**
31
31
  * Prompt the Scheduler to execute all of its queued actions, therefore
32
32
  * clearing its queue.
33
- * @return {void}
34
33
  */
35
34
  flush(): void;
36
35
  }
@@ -23,6 +23,12 @@ export interface UnaryFunction<T, R> {
23
23
  export interface OperatorFunction<T, R> extends UnaryFunction<Observable<T>, Observable<R>> {
24
24
  }
25
25
  export declare type FactoryOrValue<T> = T | (() => T);
26
+ /**
27
+ * A function type interface that describes a function that accepts and returns a parameter of the same type.
28
+ *
29
+ * Used to describe {@link OperatorFunction} with the only one type: `OperatorFunction<T, T>`.
30
+ *
31
+ */
26
32
  export interface MonoTypeOperatorFunction<T> extends OperatorFunction<T, T> {
27
33
  }
28
34
  /**
@@ -14,8 +14,6 @@ export interface ArgumentOutOfRangeErrorCtor {
14
14
  * @see {@link elementAt}
15
15
  * @see {@link take}
16
16
  * @see {@link takeLast}
17
- *
18
- * @class ArgumentOutOfRangeError
19
17
  */
20
18
  export declare const ArgumentOutOfRangeError: ArgumentOutOfRangeErrorCtor;
21
19
  //# sourceMappingURL=ArgumentOutOfRangeError.d.ts.map
@@ -16,8 +16,6 @@ export interface EmptyErrorCtor {
16
16
  * @see {@link single}
17
17
  * @see {@link firstValueFrom}
18
18
  * @see {@link lastValueFrom}
19
- *
20
- * @class EmptyError
21
19
  */
22
20
  export declare const EmptyError: EmptyErrorCtor;
23
21
  //# sourceMappingURL=EmptyError.d.ts.map
@@ -12,8 +12,6 @@ export interface NotFoundErrorCtor {
12
12
  * observable sequence.
13
13
  *
14
14
  * @see {@link operators/single}
15
- *
16
- * @class NotFoundError
17
15
  */
18
16
  export declare const NotFoundError: NotFoundErrorCtor;
19
17
  //# sourceMappingURL=NotFoundError.d.ts.map
@@ -12,8 +12,6 @@ export interface SequenceErrorCtor {
12
12
  * values arriving on the observable.
13
13
  *
14
14
  * @see {@link operators/single}
15
- *
16
- * @class SequenceError
17
15
  */
18
16
  export declare const SequenceError: SequenceErrorCtor;
19
17
  //# sourceMappingURL=SequenceError.d.ts.map