@autentikar/step 2.0.0-alpha.30 → 2.0.0-alpha.32
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageItem, a as Step } from './index-
|
|
1
|
+
import { S as StorageItem, a as Step } from './index-SpGeBKm0.js';
|
|
2
2
|
import 'file-type/core';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ interface Preference {
|
|
|
23
23
|
|
|
24
24
|
interface System {
|
|
25
25
|
get<TValue = unknown>(name: string): Promise<TValue | undefined>;
|
|
26
|
-
stage():
|
|
26
|
+
stage(): string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare let step: Step;
|
|
@@ -6,6 +6,13 @@ interface Step {
|
|
|
6
6
|
milestone(type: string, status: string, success: boolean): Promise<void>;
|
|
7
7
|
future(type: string, id: string, ttl: number): Promise<void>;
|
|
8
8
|
identity(organization_id: string, instance_id: string, link_session: string | undefined, identity: IdentityDto, data: StepIdentityData): Promise<any>;
|
|
9
|
+
addVendorStat(params: {
|
|
10
|
+
vendor: string;
|
|
11
|
+
service: string;
|
|
12
|
+
amount?: number;
|
|
13
|
+
transaction_id: string;
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
}): Promise<void>;
|
|
9
16
|
}
|
|
10
17
|
|
|
11
18
|
type StepIdentityData = {
|
|
@@ -33,6 +40,13 @@ type StepIdentityData = {
|
|
|
33
40
|
declare class StepRequest implements Step {
|
|
34
41
|
private step;
|
|
35
42
|
constructor(params: Step);
|
|
43
|
+
addVendorStat(params: {
|
|
44
|
+
vendor: string;
|
|
45
|
+
service: string;
|
|
46
|
+
amount?: number;
|
|
47
|
+
transaction_id: string;
|
|
48
|
+
meta?: Record<string, unknown>;
|
|
49
|
+
}): Promise<void>;
|
|
36
50
|
future(type: string, id: string, ttl: number): Promise<void>;
|
|
37
51
|
milestone(type: string, status: string, success: boolean): Promise<void>;
|
|
38
52
|
params<TValue = unknown>(extend?: unknown): Promise<TValue | undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'file-type/core';
|
|
2
2
|
import 'zod';
|
|
3
|
-
export { l as AppEnv, k as AppEnvVariables, A as AppEnvironments, F as FlowContext, d as IdentityDto, I as IdentitySchemaDto, j as Method, i as MethodContext, f as MethodContextFlow, g as MethodContextInstance, M as MethodContextOrganization, h as MethodContextStep, P as PersistentType, e as Staging, o as StepContext, m as StepDefinition, b as StepIdentityData, n as StepInstance, c as StepRequest, S as StorageItem } from './index-
|
|
3
|
+
export { l as AppEnv, k as AppEnvVariables, A as AppEnvironments, F as FlowContext, d as IdentityDto, I as IdentitySchemaDto, j as Method, i as MethodContext, f as MethodContextFlow, g as MethodContextInstance, M as MethodContextOrganization, h as MethodContextStep, P as PersistentType, e as Staging, o as StepContext, m as StepDefinition, b as StepIdentityData, n as StepInstance, c as StepRequest, S as StorageItem } from './index-SpGeBKm0.js';
|
package/dist/index.js
CHANGED