@autentikar/step 2.0.0-alpha.31 → 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-1GFUBa2C.js';
1
+ import { S as StorageItem, a as Step } from './index-SpGeBKm0.js';
2
2
  import 'file-type/core';
3
3
  import 'zod';
4
4
 
@@ -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-1GFUBa2C.js';
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
@@ -46,6 +46,9 @@ var StepRequest = class {
46
46
  constructor(params) {
47
47
  this.step = params;
48
48
  }
49
+ addVendorStat(params) {
50
+ return this.step.addVendorStat(params);
51
+ }
49
52
  future(type, id, ttl) {
50
53
  return this.step.future(type, id, ttl);
51
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autentikar/step",
3
- "version": "2.0.0-alpha.31",
3
+ "version": "2.0.0-alpha.32",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist"