@incodetech/core 0.0.0-dev-20260320-9f7f27a → 0.0.0-dev-20260320-c2feb04

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/consent.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-DKHVvCA1.js";
2
- import * as xstate122 from "xstate";
2
+ import * as xstate336 from "xstate";
3
3
 
4
4
  //#region src/modules/consent/types.d.ts
5
5
  type ConsentConfig = {
@@ -35,7 +35,7 @@ type ConsentContext = {
35
35
  type ConsentInput = {
36
36
  config: ConsentConfig;
37
37
  };
38
- declare const consentMachine: xstate122.StateMachine<ConsentContext, {
38
+ declare const consentMachine: xstate336.StateMachine<ConsentContext, {
39
39
  type: "LOAD";
40
40
  } | {
41
41
  type: "TOGGLE_CHECKBOX";
@@ -47,29 +47,29 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
47
47
  } | {
48
48
  type: "RESET";
49
49
  }, {
50
- [x: string]: xstate122.ActorRefFromLogic<xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
50
+ [x: string]: xstate336.ActorRefFromLogic<xstate336.PromiseActorLogic<FetchCombinedConsentResponse, {
51
51
  consentId: string;
52
- }, xstate122.EventObject>> | xstate122.ActorRefFromLogic<xstate122.PromiseActorLogic<void, {
52
+ }, xstate336.EventObject>> | xstate336.ActorRefFromLogic<xstate336.PromiseActorLogic<void, {
53
53
  languageConsentId: string;
54
54
  checkboxes: ConsentCheckbox[];
55
- }, xstate122.EventObject>> | undefined;
56
- }, xstate122.Values<{
55
+ }, xstate336.EventObject>> | undefined;
56
+ }, xstate336.Values<{
57
57
  fetchConsent: {
58
58
  src: "fetchConsent";
59
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
59
+ logic: xstate336.PromiseActorLogic<FetchCombinedConsentResponse, {
60
60
  consentId: string;
61
- }, xstate122.EventObject>;
61
+ }, xstate336.EventObject>;
62
62
  id: string | undefined;
63
63
  };
64
64
  submitConsent: {
65
65
  src: "submitConsent";
66
- logic: xstate122.PromiseActorLogic<void, {
66
+ logic: xstate336.PromiseActorLogic<void, {
67
67
  languageConsentId: string;
68
68
  checkboxes: ConsentCheckbox[];
69
- }, xstate122.EventObject>;
69
+ }, xstate336.EventObject>;
70
70
  id: string | undefined;
71
71
  };
72
- }>, xstate122.Values<{
72
+ }>, xstate336.Values<{
73
73
  setError: {
74
74
  type: "setError";
75
75
  params: unknown;
@@ -78,6 +78,10 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
78
78
  type: "clearError";
79
79
  params: unknown;
80
80
  };
81
+ resetContext: {
82
+ type: "resetContext";
83
+ params: unknown;
84
+ };
81
85
  setConsentData: {
82
86
  type: "setConsentData";
83
87
  params: unknown;
@@ -86,10 +90,6 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
86
90
  type: "toggleCheckbox";
87
91
  params: unknown;
88
92
  };
89
- resetContext: {
90
- type: "resetContext";
91
- params: unknown;
92
- };
93
93
  trackConsentGiven: {
94
94
  type: "trackConsentGiven";
95
95
  params: unknown;
@@ -97,7 +97,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate122.NonReducibleUnknown, xstate122.EventObject, xstate122.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate336.NonReducibleUnknown, xstate336.EventObject, xstate336.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,70 +106,70 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate336.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
- }, xstate122.EventObject>;
111
+ }, xstate336.EventObject>;
112
112
  id: string | undefined;
113
113
  } extends infer T ? T extends {
114
114
  src: "fetchConsent";
115
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
115
+ logic: xstate336.PromiseActorLogic<FetchCombinedConsentResponse, {
116
116
  consentId: string;
117
- }, xstate122.EventObject>;
117
+ }, xstate336.EventObject>;
118
118
  id: string | undefined;
119
119
  } ? T extends {
120
120
  src: TSrc;
121
- } ? xstate122.ConditionalRequired<[options?: ({
121
+ } ? xstate336.ConditionalRequired<[options?: ({
122
122
  id?: T["id"] | undefined;
123
123
  systemId?: string;
124
- input?: xstate122.InputFrom<T["logic"]> | undefined;
124
+ input?: xstate336.InputFrom<T["logic"]> | undefined;
125
125
  syncSnapshot?: boolean;
126
- } & { [K in xstate122.RequiredActorOptions<T>]: unknown }) | undefined], xstate122.IsNotNever<xstate122.RequiredActorOptions<T>>> : never : never : never) | ({
126
+ } & { [K in xstate336.RequiredActorOptions<T>]: unknown }) | undefined], xstate336.IsNotNever<xstate336.RequiredActorOptions<T>>> : never : never : never) | ({
127
127
  src: "submitConsent";
128
- logic: xstate122.PromiseActorLogic<void, {
128
+ logic: xstate336.PromiseActorLogic<void, {
129
129
  languageConsentId: string;
130
130
  checkboxes: ConsentCheckbox[];
131
- }, xstate122.EventObject>;
131
+ }, xstate336.EventObject>;
132
132
  id: string | undefined;
133
133
  } extends infer T_1 ? T_1 extends {
134
134
  src: "submitConsent";
135
- logic: xstate122.PromiseActorLogic<void, {
135
+ logic: xstate336.PromiseActorLogic<void, {
136
136
  languageConsentId: string;
137
137
  checkboxes: ConsentCheckbox[];
138
- }, xstate122.EventObject>;
138
+ }, xstate336.EventObject>;
139
139
  id: string | undefined;
140
140
  } ? T_1 extends {
141
141
  src: TSrc;
142
- } ? xstate122.ConditionalRequired<[options?: ({
142
+ } ? xstate336.ConditionalRequired<[options?: ({
143
143
  id?: T_1["id"] | undefined;
144
144
  systemId?: string;
145
- input?: xstate122.InputFrom<T_1["logic"]> | undefined;
145
+ input?: xstate336.InputFrom<T_1["logic"]> | undefined;
146
146
  syncSnapshot?: boolean;
147
- } & { [K_1 in xstate122.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate122.IsNotNever<xstate122.RequiredActorOptions<T_1>>> : never : never : never)): xstate122.ActorRefFromLogic<xstate122.GetConcreteByKey<xstate122.Values<{
147
+ } & { [K_1 in xstate336.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate336.IsNotNever<xstate336.RequiredActorOptions<T_1>>> : never : never : never)): xstate336.ActorRefFromLogic<xstate336.GetConcreteByKey<xstate336.Values<{
148
148
  fetchConsent: {
149
149
  src: "fetchConsent";
150
- logic: xstate122.PromiseActorLogic<FetchCombinedConsentResponse, {
150
+ logic: xstate336.PromiseActorLogic<FetchCombinedConsentResponse, {
151
151
  consentId: string;
152
- }, xstate122.EventObject>;
152
+ }, xstate336.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  submitConsent: {
156
156
  src: "submitConsent";
157
- logic: xstate122.PromiseActorLogic<void, {
157
+ logic: xstate336.PromiseActorLogic<void, {
158
158
  languageConsentId: string;
159
159
  checkboxes: ConsentCheckbox[];
160
- }, xstate122.EventObject>;
160
+ }, xstate336.EventObject>;
161
161
  id: string | undefined;
162
162
  };
163
163
  }>, "src", TSrc>["logic"]>;
164
- <TLogic extends xstate122.AnyActorLogic>(src: TLogic, ...[options]: xstate122.ConditionalRequired<[options?: ({
164
+ <TLogic extends xstate336.AnyActorLogic>(src: TLogic, ...[options]: xstate336.ConditionalRequired<[options?: ({
165
165
  id?: never;
166
166
  systemId?: string;
167
- input?: xstate122.InputFrom<TLogic> | undefined;
167
+ input?: xstate336.InputFrom<TLogic> | undefined;
168
168
  syncSnapshot?: boolean;
169
- } & { [K in xstate122.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate122.IsNotNever<xstate122.RequiredLogicInput<TLogic>>>): xstate122.ActorRefFromLogic<TLogic>;
169
+ } & { [K in xstate336.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate336.IsNotNever<xstate336.RequiredLogicInput<TLogic>>>): xstate336.ActorRefFromLogic<TLogic>;
170
170
  };
171
171
  input: ConsentInput;
172
- self: xstate122.ActorRef<xstate122.MachineSnapshot<ConsentContext, {
172
+ self: xstate336.ActorRef<xstate336.MachineSnapshot<ConsentContext, {
173
173
  type: "LOAD";
174
174
  } | {
175
175
  type: "TOGGLE_CHECKBOX";
@@ -180,7 +180,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
180
180
  type: "RETRY";
181
181
  } | {
182
182
  type: "RESET";
183
- }, Record<string, xstate122.AnyActorRef | undefined>, xstate122.StateValue, string, unknown, any, any>, {
183
+ }, Record<string, xstate336.AnyActorRef | undefined>, xstate336.StateValue, string, unknown, any, any>, {
184
184
  type: "LOAD";
185
185
  } | {
186
186
  type: "TOGGLE_CHECKBOX";
@@ -191,7 +191,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
191
191
  type: "RETRY";
192
192
  } | {
193
193
  type: "RESET";
194
- }, xstate122.AnyEventObject>;
194
+ }, xstate336.AnyEventObject>;
195
195
  }) => {
196
196
  config: ConsentConfig;
197
197
  title: string;
@@ -229,7 +229,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
229
229
  } | {
230
230
  type: "RESET";
231
231
  };
232
- self: xstate122.ActorRef<xstate122.MachineSnapshot<ConsentContext, {
232
+ self: xstate336.ActorRef<xstate336.MachineSnapshot<ConsentContext, {
233
233
  type: "LOAD";
234
234
  } | {
235
235
  type: "TOGGLE_CHECKBOX";
@@ -240,7 +240,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
240
240
  type: "RETRY";
241
241
  } | {
242
242
  type: "RESET";
243
- }, Record<string, xstate122.AnyActorRef>, xstate122.StateValue, string, unknown, any, any>, {
243
+ }, Record<string, xstate336.AnyActorRef>, xstate336.StateValue, string, unknown, any, any>, {
244
244
  type: "LOAD";
245
245
  } | {
246
246
  type: "TOGGLE_CHECKBOX";
@@ -251,7 +251,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
251
251
  type: "RETRY";
252
252
  } | {
253
253
  type: "RESET";
254
- }, xstate122.AnyEventObject>;
254
+ }, xstate336.AnyEventObject>;
255
255
  }) => {
256
256
  consentId: string;
257
257
  };
@@ -300,7 +300,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
300
300
  } | {
301
301
  type: "RESET";
302
302
  };
303
- self: xstate122.ActorRef<xstate122.MachineSnapshot<ConsentContext, {
303
+ self: xstate336.ActorRef<xstate336.MachineSnapshot<ConsentContext, {
304
304
  type: "LOAD";
305
305
  } | {
306
306
  type: "TOGGLE_CHECKBOX";
@@ -311,7 +311,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
311
311
  type: "RETRY";
312
312
  } | {
313
313
  type: "RESET";
314
- }, Record<string, xstate122.AnyActorRef>, xstate122.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate336.AnyActorRef>, xstate336.StateValue, string, unknown, any, any>, {
315
315
  type: "LOAD";
316
316
  } | {
317
317
  type: "TOGGLE_CHECKBOX";
@@ -322,7 +322,7 @@ declare const consentMachine: xstate122.StateMachine<ConsentContext, {
322
322
  type: "RETRY";
323
323
  } | {
324
324
  type: "RESET";
325
- }, xstate122.AnyEventObject>;
325
+ }, xstate336.AnyEventObject>;
326
326
  }) => {
327
327
  languageConsentId: string;
328
328
  checkboxes: ConsentCheckbox[];
@@ -62,7 +62,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
62
62
  type: "stopStream";
63
63
  params: xstate0.NonReducibleUnknown;
64
64
  };
65
- }>, never, never, "initCamera" | "error" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
65
+ }>, never, never, "error" | "initCamera" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
66
66
  readonly id: "documentUpload";
67
67
  readonly initial: "idle";
68
68
  readonly context: ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260320-9f7f27a",
3
+ "version": "0.0.0-dev-20260320-c2feb04",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",