@incodetech/core 0.0.0-dev-20260415-432dcaa → 0.0.0-dev-20260415-a89783e

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.
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-JJUrroR5.js";
2
2
  import "./Actor-3i5cyga0.js";
3
3
  import "./camera-CXTjb-hl.js";
4
4
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-Dt0PX_G8.js";
5
- import * as xstate483 from "xstate";
5
+ import * as xstate16 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate16.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate483.ActorRefFromLogic<xstate483.PromiseActorLogic<void, {
21
+ [x: string]: xstate16.ActorRefFromLogic<xstate16.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate483.EventObject>> | xstate483.ActorRefFromLogic<xstate483.PromiseActorLogic<MediaStream, void, xstate483.EventObject>> | undefined;
26
- }, xstate483.Values<{
25
+ }, xstate16.EventObject>> | xstate16.ActorRefFromLogic<xstate16.PromiseActorLogic<MediaStream, void, xstate16.EventObject>> | undefined;
26
+ }, xstate16.Values<{
27
27
  uploadDocument: {
28
28
  src: "uploadDocument";
29
- logic: xstate483.PromiseActorLogic<void, {
29
+ logic: xstate16.PromiseActorLogic<void, {
30
30
  imageBase64: string;
31
31
  documentType: string;
32
32
  onProgress: (progress: number) => void;
33
- }, xstate483.EventObject>;
33
+ }, xstate16.EventObject>;
34
34
  id: string | undefined;
35
35
  };
36
36
  initCamera: {
37
37
  src: "initCamera";
38
- logic: xstate483.PromiseActorLogic<MediaStream, void, xstate483.EventObject>;
38
+ logic: xstate16.PromiseActorLogic<MediaStream, void, xstate16.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate483.Values<{
42
- setError: {
43
- type: "setError";
44
- params: xstate483.NonReducibleUnknown;
45
- };
46
- clearError: {
47
- type: "clearError";
48
- params: xstate483.NonReducibleUnknown;
49
- };
41
+ }>, xstate16.Values<{
50
42
  setStream: {
51
43
  type: "setStream";
52
- params: xstate483.NonReducibleUnknown;
44
+ params: xstate16.NonReducibleUnknown;
53
45
  };
54
46
  setImageAndClearError: {
55
47
  type: "setImageAndClearError";
56
- params: xstate483.NonReducibleUnknown;
48
+ params: xstate16.NonReducibleUnknown;
57
49
  };
58
50
  setProgress: {
59
51
  type: "setProgress";
60
- params: xstate483.NonReducibleUnknown;
52
+ params: xstate16.NonReducibleUnknown;
53
+ };
54
+ setError: {
55
+ type: "setError";
56
+ params: xstate16.NonReducibleUnknown;
57
+ };
58
+ clearError: {
59
+ type: "clearError";
60
+ params: xstate16.NonReducibleUnknown;
61
61
  };
62
62
  stopStream: {
63
63
  type: "stopStream";
64
- params: xstate483.NonReducibleUnknown;
64
+ params: xstate16.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate483.NonReducibleUnknown, xstate483.EventObject, xstate483.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate16.NonReducibleUnknown, xstate16.EventObject, xstate16.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
72
72
  spawn: {
73
73
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
74
74
  src: "uploadDocument";
75
- logic: xstate483.PromiseActorLogic<void, {
75
+ logic: xstate16.PromiseActorLogic<void, {
76
76
  imageBase64: string;
77
77
  documentType: string;
78
78
  onProgress: (progress: number) => void;
79
- }, xstate483.EventObject>;
79
+ }, xstate16.EventObject>;
80
80
  id: string | undefined;
81
81
  } extends infer T ? T extends {
82
82
  src: "uploadDocument";
83
- logic: xstate483.PromiseActorLogic<void, {
83
+ logic: xstate16.PromiseActorLogic<void, {
84
84
  imageBase64: string;
85
85
  documentType: string;
86
86
  onProgress: (progress: number) => void;
87
- }, xstate483.EventObject>;
87
+ }, xstate16.EventObject>;
88
88
  id: string | undefined;
89
89
  } ? T extends {
90
90
  src: TSrc;
91
- } ? xstate483.ConditionalRequired<[options?: ({
91
+ } ? xstate16.ConditionalRequired<[options?: ({
92
92
  id?: T["id"] | undefined;
93
93
  systemId?: string;
94
- input?: xstate483.InputFrom<T["logic"]> | undefined;
94
+ input?: xstate16.InputFrom<T["logic"]> | undefined;
95
95
  syncSnapshot?: boolean;
96
- } & { [K in xstate483.RequiredActorOptions<T>]: unknown }) | undefined], xstate483.IsNotNever<xstate483.RequiredActorOptions<T>>> : never : never : never) | ({
96
+ } & { [K in xstate16.RequiredActorOptions<T>]: unknown }) | undefined], xstate16.IsNotNever<xstate16.RequiredActorOptions<T>>> : never : never : never) | ({
97
97
  src: "initCamera";
98
- logic: xstate483.PromiseActorLogic<MediaStream, void, xstate483.EventObject>;
98
+ logic: xstate16.PromiseActorLogic<MediaStream, void, xstate16.EventObject>;
99
99
  id: string | undefined;
100
100
  } extends infer T_1 ? T_1 extends {
101
101
  src: "initCamera";
102
- logic: xstate483.PromiseActorLogic<MediaStream, void, xstate483.EventObject>;
102
+ logic: xstate16.PromiseActorLogic<MediaStream, void, xstate16.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate483.ConditionalRequired<[options?: ({
106
+ } ? xstate16.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate483.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate16.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate483.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate483.IsNotNever<xstate483.RequiredActorOptions<T_1>>> : never : never : never)): xstate483.ActorRefFromLogic<xstate483.GetConcreteByKey<xstate483.Values<{
111
+ } & { [K_1 in xstate16.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate16.IsNotNever<xstate16.RequiredActorOptions<T_1>>> : never : never : never)): xstate16.ActorRefFromLogic<xstate16.GetConcreteByKey<xstate16.Values<{
112
112
  uploadDocument: {
113
113
  src: "uploadDocument";
114
- logic: xstate483.PromiseActorLogic<void, {
114
+ logic: xstate16.PromiseActorLogic<void, {
115
115
  imageBase64: string;
116
116
  documentType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate483.EventObject>;
118
+ }, xstate16.EventObject>;
119
119
  id: string | undefined;
120
120
  };
121
121
  initCamera: {
122
122
  src: "initCamera";
123
- logic: xstate483.PromiseActorLogic<MediaStream, void, xstate483.EventObject>;
123
+ logic: xstate16.PromiseActorLogic<MediaStream, void, xstate16.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate483.AnyActorLogic>(src: TLogic, ...[options]: xstate483.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate16.AnyActorLogic>(src: TLogic, ...[options]: xstate16.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate483.InputFrom<TLogic> | undefined;
130
+ input?: xstate16.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate483.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate483.IsNotNever<xstate483.RequiredLogicInput<TLogic>>>): xstate483.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate16.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate16.IsNotNever<xstate16.RequiredLogicInput<TLogic>>>): xstate16.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate483.ActorRef<xstate483.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate16.ActorRef<xstate16.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate483.AnyActorRef | undefined>, xstate483.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate16.AnyActorRef | undefined>, xstate16.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate483.AnyEventObject>;
159
+ }, xstate16.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate483.ActorRef<xstate483.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate16.ActorRef<xstate16.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate483.AnyActorRef>, xstate483.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate16.AnyActorRef>, xstate16.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate483.StateMachine<DocumentUploadContex
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate483.AnyEventObject>;
253
+ }, xstate16.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;