inngest 1.3.5 → 1.4.0
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.
- package/CHANGELOG.md +7 -0
- package/components/Inngest.d.ts +36 -4
- package/components/Inngest.d.ts.map +1 -1
- package/components/Inngest.js +3 -2
- package/components/Inngest.js.map +1 -1
- package/components/InngestCommHandler.d.ts +2 -2
- package/components/InngestCommHandler.d.ts.map +1 -1
- package/components/InngestCommHandler.js +13 -8
- package/components/InngestCommHandler.js.map +1 -1
- package/components/InngestFunction.d.ts +4 -3
- package/components/InngestFunction.d.ts.map +1 -1
- package/components/InngestFunction.js +76 -10
- package/components/InngestFunction.js.map +1 -1
- package/helpers/consts.d.ts +13 -0
- package/helpers/consts.d.ts.map +1 -1
- package/helpers/consts.js +15 -1
- package/helpers/consts.js.map +1 -1
- package/helpers/strings.d.ts +2 -1
- package/helpers/strings.d.ts.map +1 -1
- package/helpers/strings.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/landing.d.ts +1 -1
- package/landing.d.ts.map +1 -1
- package/landing.js +1 -1
- package/landing.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +180 -58
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/landing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing.js","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAClB
|
|
1
|
+
{"version":3,"file":"landing.js","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAClB,k+qHAAk+qH,CAAC"}
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,68 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { createStepTools } from "./components/InngestStepTools";
|
|
3
|
-
import
|
|
3
|
+
import { internalEvents } from "./helpers/consts";
|
|
4
|
+
import type { KeysNotOfType, ObjectPaths, StrictUnion } from "./helpers/types";
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* The payload for an internal Inngest event that is sent when a function fails.
|
|
6
7
|
*
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
export type FailureEventPayload<P extends EventPayload = EventPayload> = {
|
|
11
|
+
name: `${internalEvents.FunctionFailed}`;
|
|
12
|
+
data: {
|
|
13
|
+
function_id: string;
|
|
14
|
+
run_id: string;
|
|
15
|
+
error: {
|
|
16
|
+
message: string;
|
|
17
|
+
stack?: string;
|
|
18
|
+
cause?: string;
|
|
19
|
+
status?: number;
|
|
20
|
+
};
|
|
21
|
+
event: P;
|
|
22
|
+
};
|
|
14
23
|
};
|
|
15
24
|
/**
|
|
16
|
-
*
|
|
17
|
-
* including step function tooling.
|
|
25
|
+
* Context arguments specific to a failure event.
|
|
18
26
|
*
|
|
19
27
|
* @public
|
|
20
28
|
*/
|
|
21
|
-
export type
|
|
29
|
+
export type FailureEventArgs<P extends EventPayload = EventPayload> = {
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* The event data present in the payload.
|
|
24
32
|
*/
|
|
25
|
-
|
|
26
|
-
step: ReturnType<typeof createStepTools<Events, Event>>[0];
|
|
27
|
-
} & (Opts["fns"] extends Record<string, any> ? {
|
|
33
|
+
event: FailureEventPayload<P>;
|
|
28
34
|
/**
|
|
29
|
-
*
|
|
30
|
-
* available here and can be used as normal.
|
|
31
|
-
*
|
|
32
|
-
* Every call to one of these functions will become a new retryable
|
|
33
|
-
* step.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
*
|
|
37
|
-
* Both examples behave the same; it's preference as to which you
|
|
38
|
-
* prefer.
|
|
39
|
-
*
|
|
40
|
-
* ```ts
|
|
41
|
-
* import { userDb } from "./db";
|
|
42
|
-
*
|
|
43
|
-
* // Specify `fns` and be able to use them in your Inngest function
|
|
44
|
-
* inngest.createFunction(
|
|
45
|
-
* { name: "Create user from PR", fns: { ...userDb } },
|
|
46
|
-
* { event: "github/pull_request" },
|
|
47
|
-
* async ({ tools: { run }, fns: { createUser } }) => {
|
|
48
|
-
* await createUser("Alice");
|
|
49
|
-
* }
|
|
50
|
-
* );
|
|
51
|
-
*
|
|
52
|
-
* // Or always use `run()` to run inline steps and use them directly
|
|
53
|
-
* inngest.createFunction(
|
|
54
|
-
* { name: "Create user from PR" },
|
|
55
|
-
* { event: "github/pull_request" },
|
|
56
|
-
* async ({ tools: { run } }) => {
|
|
57
|
-
* await run("createUser", () => userDb.createUser("Alice"));
|
|
58
|
-
* }
|
|
59
|
-
* );
|
|
60
|
-
* ```
|
|
35
|
+
* The final error that caused this function to exhaust all retries.
|
|
61
36
|
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
} : Record<string, never>);
|
|
37
|
+
err: FailureEventPayload<P>["data"]["error"];
|
|
38
|
+
};
|
|
66
39
|
/**
|
|
67
40
|
* Unique codes for the different types of operation that can be sent to Inngest
|
|
68
41
|
* from SDK step functions.
|
|
@@ -153,15 +126,76 @@ export type SubmitOpFn = (op: Op) => void;
|
|
|
153
126
|
* @public
|
|
154
127
|
*/
|
|
155
128
|
export type TimeStr = `${`${number}w` | ""}${`${number}d` | ""}${`${number}h` | ""}${`${number}m` | ""}${`${number}s` | ""}`;
|
|
129
|
+
export type BaseContext<TEvents extends Record<string, EventPayload>, TTrigger extends keyof TEvents & string, TShimmedFns extends Record<string, (...args: any[]) => any>> = {
|
|
130
|
+
/**
|
|
131
|
+
* The event data present in the payload.
|
|
132
|
+
*/
|
|
133
|
+
event: TEvents[TTrigger];
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Use `step` instead.
|
|
136
|
+
*/
|
|
137
|
+
tools: ReturnType<typeof createStepTools<TEvents, TTrigger>>[0];
|
|
138
|
+
step: ReturnType<typeof createStepTools<TEvents, TTrigger>>[0];
|
|
139
|
+
/**
|
|
140
|
+
* Any `fns` passed when creating your Inngest function will be
|
|
141
|
+
* available here and can be used as normal.
|
|
142
|
+
*
|
|
143
|
+
* Every call to one of these functions will become a new retryable
|
|
144
|
+
* step.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
*
|
|
148
|
+
* Both examples behave the same; it's preference as to which you
|
|
149
|
+
* prefer.
|
|
150
|
+
*
|
|
151
|
+
* ```ts
|
|
152
|
+
* import { userDb } from "./db";
|
|
153
|
+
*
|
|
154
|
+
* // Specify `fns` and be able to use them in your Inngest function
|
|
155
|
+
* inngest.createFunction(
|
|
156
|
+
* { name: "Create user from PR", fns: { ...userDb } },
|
|
157
|
+
* { event: "github/pull_request" },
|
|
158
|
+
* async ({ tools: { run }, fns: { createUser } }) => {
|
|
159
|
+
* await createUser("Alice");
|
|
160
|
+
* }
|
|
161
|
+
* );
|
|
162
|
+
*
|
|
163
|
+
* // Or always use `run()` to run inline steps and use them directly
|
|
164
|
+
* inngest.createFunction(
|
|
165
|
+
* { name: "Create user from PR" },
|
|
166
|
+
* { event: "github/pull_request" },
|
|
167
|
+
* async ({ tools: { run } }) => {
|
|
168
|
+
* await run("createUser", () => userDb.createUser("Alice"));
|
|
169
|
+
* }
|
|
170
|
+
* );
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
fns: TShimmedFns;
|
|
174
|
+
};
|
|
156
175
|
/**
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
|
|
160
|
-
|
|
176
|
+
* Given a set of generic objects, extract any top-level functions and
|
|
177
|
+
* appropriately shim their types.
|
|
178
|
+
*/
|
|
179
|
+
export type ShimmedFns<Fns extends Record<string, any>> = Fns extends Record<string, any> ? {
|
|
180
|
+
[K in keyof Omit<Fns, KeysNotOfType<Fns, (...args: any[]) => any>>]: (...args: Parameters<Fns[K]>) => Promise<Awaited<ReturnType<Fns[K]>>>;
|
|
181
|
+
} : Record<string, never>;
|
|
182
|
+
/**
|
|
183
|
+
* Builds a context object for an Inngest handler, optionally overriding some
|
|
184
|
+
* keys.
|
|
185
|
+
*/
|
|
186
|
+
export type Context<TEvents extends Record<string, EventPayload>, TTrigger extends keyof TEvents & string, TShimmedFns extends Record<string, (...args: any[]) => any>, TOverrides extends Record<string, any> = Record<never, never>> = Omit<BaseContext<TEvents, TTrigger, TShimmedFns>, keyof TOverrides> & TOverrides;
|
|
187
|
+
/**
|
|
188
|
+
* The shape of a Inngest function, taking in event, step, ctx, and step
|
|
189
|
+
* tooling.
|
|
161
190
|
*
|
|
162
191
|
* @public
|
|
163
192
|
*/
|
|
164
|
-
export type Handler<
|
|
193
|
+
export type Handler<TEvents extends Record<string, EventPayload>, TTrigger extends keyof TEvents & string, TShimmedFns extends Record<string, (...args: any[]) => any>, TOverrides extends Record<string, any> = Record<never, never>> = (
|
|
194
|
+
/**
|
|
195
|
+
* The context argument provides access to all data and tooling available to
|
|
196
|
+
* the function.
|
|
197
|
+
*/
|
|
198
|
+
ctx: Context<TEvents, TTrigger, TShimmedFns, TOverrides>) => any;
|
|
165
199
|
/**
|
|
166
200
|
* The shape of a single event's payload. It should be extended to enforce
|
|
167
201
|
* adherence to given events and not used as a method of creating them (i.e. as
|
|
@@ -234,12 +268,12 @@ export interface Response {
|
|
|
234
268
|
*
|
|
235
269
|
* @internal
|
|
236
270
|
*/
|
|
237
|
-
export type Step<
|
|
271
|
+
export type Step<TContext = any> = (
|
|
238
272
|
/**
|
|
239
273
|
* The context for this step, including the triggering event and any previous
|
|
240
274
|
* step output.
|
|
241
275
|
*/
|
|
242
|
-
context:
|
|
276
|
+
context: TContext) => Promise<Response> | Response;
|
|
243
277
|
/**
|
|
244
278
|
* A set of options for configuring the Inngest client.
|
|
245
279
|
*
|
|
@@ -367,6 +401,9 @@ export interface RegisterOptions {
|
|
|
367
401
|
*/
|
|
368
402
|
logLevel?: LogLevel;
|
|
369
403
|
}
|
|
404
|
+
/**
|
|
405
|
+
* A user-friendly method of specifying a trigger for an Inngest function.
|
|
406
|
+
*/
|
|
370
407
|
export type TriggerOptions<T extends string> = T | StrictUnion<{
|
|
371
408
|
event: T;
|
|
372
409
|
} | {
|
|
@@ -377,7 +414,7 @@ export type TriggerOptions<T extends string> = T | StrictUnion<{
|
|
|
377
414
|
*
|
|
378
415
|
* @public
|
|
379
416
|
*/
|
|
380
|
-
export interface FunctionOptions {
|
|
417
|
+
export interface FunctionOptions<Events extends Record<string, EventPayload>, Event extends keyof Events & string> {
|
|
381
418
|
/**
|
|
382
419
|
* An optional unique ID used to identify the function. This is used
|
|
383
420
|
* internally for versioning and referring to your function, so should not
|
|
@@ -402,6 +439,12 @@ export interface FunctionOptions {
|
|
|
402
439
|
* the name.
|
|
403
440
|
*/
|
|
404
441
|
name: string;
|
|
442
|
+
/**
|
|
443
|
+
* Concurrency specifies a limit on the total number of concurrent steps that
|
|
444
|
+
* can occur across all runs of the function. A value of 0 (or undefined) means
|
|
445
|
+
* use the maximum available concurrency.
|
|
446
|
+
*/
|
|
447
|
+
concurrency?: number;
|
|
405
448
|
fns?: Record<string, any>;
|
|
406
449
|
/**
|
|
407
450
|
* Allow the specification of an idempotency key using event data. If
|
|
@@ -427,13 +470,78 @@ export interface FunctionOptions {
|
|
|
427
470
|
*/
|
|
428
471
|
period: TimeStr;
|
|
429
472
|
};
|
|
473
|
+
cancelOn?: Cancellation<Events, Event>[];
|
|
430
474
|
/**
|
|
431
475
|
* Specifies the maximum number of retries for all steps across this function.
|
|
432
476
|
*
|
|
433
477
|
* Can be a number from `0` to `20`. Defaults to `3`.
|
|
434
478
|
*/
|
|
435
479
|
retries?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
|
480
|
+
onFailure?: (...args: any[]) => any;
|
|
436
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Configuration for cancelling a function run based on an incoming event.
|
|
484
|
+
*
|
|
485
|
+
* @public
|
|
486
|
+
*/
|
|
487
|
+
export type Cancellation<Events extends Record<string, EventPayload>, TriggeringEvent extends keyof Events & string> = {
|
|
488
|
+
[K in keyof Events]: {
|
|
489
|
+
/**
|
|
490
|
+
* The name of the event that should cancel the function run.
|
|
491
|
+
*/
|
|
492
|
+
event: K & string;
|
|
493
|
+
/**
|
|
494
|
+
* The expression that must evaluate to true in order to cancel the function run. There
|
|
495
|
+
* are two variables available in this expression:
|
|
496
|
+
* - event, referencing the original function's event trigger
|
|
497
|
+
* - async, referencing the new cancel event.
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
*
|
|
501
|
+
* Ensures the cancel event's data.user_id field matches the triggering event's data.user_id
|
|
502
|
+
* field:
|
|
503
|
+
*
|
|
504
|
+
* ```ts
|
|
505
|
+
* "async.data.user_id == event.data.user_id"
|
|
506
|
+
* ```
|
|
507
|
+
*/
|
|
508
|
+
if?: string;
|
|
509
|
+
/**
|
|
510
|
+
* If provided, the step function will wait for the incoming event to match
|
|
511
|
+
* particular criteria. If the event does not match, it will be ignored and
|
|
512
|
+
* the step function will wait for another event.
|
|
513
|
+
*
|
|
514
|
+
* It must be a string of a dot-notation field name within both events to
|
|
515
|
+
* compare, e.g. `"data.id"` or `"user.email"`.
|
|
516
|
+
*
|
|
517
|
+
* ```
|
|
518
|
+
* // Wait for an event where the `user.email` field matches
|
|
519
|
+
* match: "user.email"
|
|
520
|
+
* ```
|
|
521
|
+
*
|
|
522
|
+
* All of these are helpers for the `if` option, which allows you to specify
|
|
523
|
+
* a custom condition to check. This can be useful if you need to compare
|
|
524
|
+
* multiple fields or use a more complex condition.
|
|
525
|
+
*
|
|
526
|
+
* See the Inngest expressions docs for more information.
|
|
527
|
+
*
|
|
528
|
+
* {@link https://www.inngest.com/docs/functions/expressions}
|
|
529
|
+
*/
|
|
530
|
+
match?: ObjectPaths<Events[TriggeringEvent]> & ObjectPaths<Events[K]>;
|
|
531
|
+
/**
|
|
532
|
+
* An optional timeout that the cancel is valid for. If this isn't
|
|
533
|
+
* specified, cancellation triggers are valid for up to a year or until the
|
|
534
|
+
* function ends.
|
|
535
|
+
*
|
|
536
|
+
* The time to wait can be specified using a `number` of milliseconds, an
|
|
537
|
+
* `ms`-compatible time string like `"1 hour"`, `"30 mins"`, or `"2.5d"`, or
|
|
538
|
+
* a `Date` object.
|
|
539
|
+
*
|
|
540
|
+
* {@link https://npm.im/ms}
|
|
541
|
+
*/
|
|
542
|
+
timeout?: number | string | Date;
|
|
543
|
+
};
|
|
544
|
+
}[keyof Events];
|
|
437
545
|
/**
|
|
438
546
|
* Expected responses to be used within an `InngestCommHandler` in order to
|
|
439
547
|
* appropriately respond to Inngest.
|
|
@@ -551,6 +659,11 @@ export interface FunctionConfig {
|
|
|
551
659
|
count: number;
|
|
552
660
|
period: TimeStr;
|
|
553
661
|
};
|
|
662
|
+
cancel?: {
|
|
663
|
+
event: string;
|
|
664
|
+
if?: string;
|
|
665
|
+
timeout?: TimeStr;
|
|
666
|
+
}[];
|
|
554
667
|
}
|
|
555
668
|
export interface DevServerInfo {
|
|
556
669
|
/**
|
|
@@ -566,4 +679,13 @@ export interface DevServerInfo {
|
|
|
566
679
|
functions: FunctionConfig[];
|
|
567
680
|
handlers: RegisterRequest[];
|
|
568
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* Given a set of events and a user-friendly trigger paramter, returns the name
|
|
684
|
+
* of the event that the user intends to listen to.
|
|
685
|
+
*
|
|
686
|
+
* @public
|
|
687
|
+
*/
|
|
688
|
+
export type EventNameFromTrigger<Events extends Record<string, EventPayload>, T extends TriggerOptions<keyof Events & string>> = T extends string ? T : T extends {
|
|
689
|
+
event: string;
|
|
690
|
+
} ? T["event"] : string;
|
|
569
691
|
//# sourceMappingURL=types.d.ts.map
|
package/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE/E;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IACvE,IAAI,EAAE,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;IACzC,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE;YACL,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,KAAK,EAAE,CAAC,CAAC;KACV,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IACpE;;OAEG;IACH,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAE9B;;OAEG;IACH,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;CAC9C,CAAC;AAEF;;;GAGG;AACH,oBAAY,UAAU;IACpB,YAAY,iBAAiB;IAC7B,OAAO,SAAS;IAChB,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,MAAM,GAAG,MAAM,CAAC,IAC7C,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,CAAC,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC"}
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA0CxB;;;GAGG;AACH,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAA6B,CAAA;IAC7B,8BAAgB,CAAA;IAChB,yCAA2B,CAAA;IAC3B,6BAAe,CAAA;AACjB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAyCY,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxB,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC1B,CAAC,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED