@autentikar/step 2.0.0-alpha.17 → 2.0.0-alpha.19

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-bYFaLTgo.js';
1
+ import { S as StorageItem, a as Step } from './index-mVvTh40G.js';
2
2
  import 'file-type/core';
3
3
  import 'zod';
4
4
 
@@ -4,15 +4,16 @@ import { z } from 'zod';
4
4
  interface Step {
5
5
  params<TValue = unknown>(): Promise<TValue | undefined>;
6
6
  milestone(type: string, status: string, success: boolean): Promise<void>;
7
+ future(type: string, id: string, ttl: number): Promise<void>;
7
8
  }
8
9
 
9
- declare class StepRequester implements Step {
10
+ declare class StepRequest implements Step {
10
11
  private step;
11
12
  constructor(params: Step);
13
+ future(type: string, id: string, ttl: number): Promise<void>;
12
14
  milestone(type: string, status: string, success: boolean): Promise<void>;
13
15
  params<TValue = unknown>(): Promise<TValue | undefined>;
14
16
  }
15
- type StepRequest = StepRequester;
16
17
  declare const AppEnvironmentsSchema: z.ZodObject<{
17
18
  STAGING: z.ZodEnum<["LOCAL", "QA", "PROD"]>;
18
19
  STEP_TYPE: z.ZodString;
@@ -63,4 +64,4 @@ type AppEnv = {
63
64
  };
64
65
  };
65
66
 
66
- export { type AppEnvironments as A, type MethodContextOrganization as M, type PersistentType as P, StorageItem as S, type Step as a, type StepRequest as b, type Staging as c, type MethodContextFlow as d, type MethodContextInstance as e, type MethodContext as f, type Method as g, type AppEnv as h };
67
+ export { type AppEnvironments as A, type MethodContextOrganization as M, type PersistentType as P, StorageItem as S, type Step as a, StepRequest as b, type Staging as c, type MethodContextFlow as d, type MethodContextInstance as e, type MethodContext as f, type Method as g, type AppEnv as h };
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, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, b as StepRequest, S as StorageItem } from './index-bYFaLTgo.js';
3
+ export { h as AppEnv, A as AppEnvironments, g as Method, f as MethodContext, d as MethodContextFlow, e as MethodContextInstance, M as MethodContextOrganization, P as PersistentType, c as Staging, b as StepRequest, S as StorageItem } from './index-mVvTh40G.js';
package/dist/index.js CHANGED
@@ -30,11 +30,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
+ StepRequest: () => StepRequest,
33
34
  StorageItem: () => StorageItem
34
35
  });
35
36
  module.exports = __toCommonJS(src_exports);
36
37
  var import_zod = require("zod");
37
38
  var import_file_type = __toESM(require("file-type"));
39
+ var StepRequest = class {
40
+ step;
41
+ constructor(params) {
42
+ this.step = params;
43
+ }
44
+ future(type, id, ttl) {
45
+ return this.step.future(type, id, ttl);
46
+ }
47
+ milestone(type, status, success) {
48
+ return this.step.milestone(type, status, success);
49
+ }
50
+ params() {
51
+ return this.step.params();
52
+ }
53
+ };
38
54
  var AppEnvironmentsSchema = import_zod.z.object({
39
55
  STAGING: import_zod.z.enum(["LOCAL", "QA", "PROD"]),
40
56
  STEP_TYPE: import_zod.z.string()
@@ -64,5 +80,6 @@ var StorageItem = class {
64
80
  };
65
81
  // Annotate the CommonJS export names for ESM import in node:
66
82
  0 && (module.exports = {
83
+ StepRequest,
67
84
  StorageItem
68
85
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autentikar/step",
3
- "version": "2.0.0-alpha.17",
3
+ "version": "2.0.0-alpha.19",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist"