@autentikar/step 2.0.0-alpha.21 → 2.0.0-alpha.22
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/dist/context.d.ts
CHANGED
|
@@ -98,9 +98,8 @@ declare class StepInstance {
|
|
|
98
98
|
}
|
|
99
99
|
declare class FlowContext {
|
|
100
100
|
readonly id: string;
|
|
101
|
-
readonly params: unknown;
|
|
102
101
|
readonly webhook: string | undefined;
|
|
103
|
-
constructor(id: string,
|
|
102
|
+
constructor(id: string, webhook: string | undefined);
|
|
104
103
|
}
|
|
105
104
|
declare class StepContext {
|
|
106
105
|
readonly org: string;
|
|
@@ -108,7 +107,8 @@ declare class StepContext {
|
|
|
108
107
|
readonly step: StepDefinition;
|
|
109
108
|
readonly instance: StepInstance;
|
|
110
109
|
readonly expires_at: number | undefined;
|
|
111
|
-
|
|
110
|
+
readonly params: unknown;
|
|
111
|
+
constructor(org: string, flow: FlowContext, step: StepDefinition, instance: StepInstance, expires_at: number | undefined, params: unknown);
|
|
112
112
|
isExpired(): boolean | 0 | undefined;
|
|
113
113
|
}
|
|
114
114
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'file-type/core';
|
|
2
2
|
import 'zod';
|
|
3
|
-
export { h as AppEnv, A as AppEnvironments, F as FlowContext, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, k as StepContext, i as StepDefinition, j as StepInstance, b as StepRequest, S as StorageItem } from './index-
|
|
3
|
+
export { h as AppEnv, A as AppEnvironments, F as FlowContext, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, k as StepContext, i as StepDefinition, j as StepInstance, b as StepRequest, S as StorageItem } from './index-ssFn-GXQ.js';
|
package/dist/index.js
CHANGED
|
@@ -108,19 +108,19 @@ var StepInstance = class {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
var FlowContext = class {
|
|
111
|
-
constructor(id,
|
|
111
|
+
constructor(id, webhook) {
|
|
112
112
|
this.id = id;
|
|
113
|
-
this.params = params;
|
|
114
113
|
this.webhook = webhook;
|
|
115
114
|
}
|
|
116
115
|
};
|
|
117
116
|
var StepContext = class {
|
|
118
|
-
constructor(org, flow, step, instance, expires_at) {
|
|
117
|
+
constructor(org, flow, step, instance, expires_at, params) {
|
|
119
118
|
this.org = org;
|
|
120
119
|
this.flow = flow;
|
|
121
120
|
this.step = step;
|
|
122
121
|
this.instance = instance;
|
|
123
122
|
this.expires_at = expires_at;
|
|
123
|
+
this.params = params;
|
|
124
124
|
}
|
|
125
125
|
isExpired() {
|
|
126
126
|
return this.expires_at && this.expires_at < Date.now();
|