@picked/client 0.0.1-dev.1773365725739 → 0.0.1-dev.1773371977114

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.
@@ -1,4 +1,4 @@
1
- import { g as h } from "../../../id-BW-g3y32.js";
1
+ import { g as p } from "../../../id-BW-g3y32.js";
2
2
  import { t as m } from "../../../to-kebab-case-BPnCZjhB.js";
3
3
  const r = {
4
4
  serialize(i) {
@@ -9,42 +9,42 @@ const r = {
9
9
  }
10
10
  }, x = (i) => ({
11
11
  name: "create-experience",
12
- setup: (o) => {
13
- i.experiences.forEach((t) => {
14
- const s = t.serialize(), l = r.deserialize(s);
15
- l.component = t.component, o.registerExperience(l), l.fields.forEach((f) => {
16
- o.registerField(f);
12
+ setup: (d) => {
13
+ i.experiences.forEach((n) => {
14
+ const o = n.serialize(), s = r.deserialize(o);
15
+ s.component = n.component, d.registerExperience(s), s.fields.forEach((u) => {
16
+ d.registerField(u);
17
17
  });
18
18
  });
19
19
  }
20
- }), N = (i, o) => ({
21
- id: h("node"),
22
- experience: o,
20
+ }), N = (i, d) => ({
21
+ id: p("node"),
22
+ experience: d,
23
23
  type: "action",
24
24
  action: i.action,
25
- addNext(s) {
26
- if (!s.node) throw new Error("Cannot connect to node");
27
- const l = c(
28
- { sourceNode: this, destinationNode: s.node, sourceNodeHandle: null },
29
- o
25
+ addNext(o) {
26
+ if (!o.node) throw new Error("Cannot connect to node");
27
+ const s = h(
28
+ { sourceNode: this, destinationNode: o.node, sourceNodeHandle: null },
29
+ d
30
30
  );
31
- o.edges.push(l);
31
+ d.edges.push(s);
32
32
  },
33
- onSuccess(s) {
34
- if (!s.node) throw new Error("Cannot connect to node");
35
- const l = c(
36
- { sourceNode: this, destinationNode: s.node, sourceNodeHandle: "true" },
37
- o
33
+ onSuccess(o) {
34
+ if (!o.node) throw new Error("Cannot connect to node");
35
+ const s = h(
36
+ { sourceNode: this, destinationNode: o.node, sourceNodeHandle: "true" },
37
+ d
38
38
  );
39
- o.edges.push(l);
39
+ d.edges.push(s);
40
40
  },
41
- onFail(s) {
42
- if (!s.node) throw new Error("Cannot connect to node");
43
- const l = c(
44
- { sourceNode: this, destinationNode: s.node, sourceNodeHandle: "false" },
45
- o
41
+ onFail(o) {
42
+ if (!o.node) throw new Error("Cannot connect to node");
43
+ const s = h(
44
+ { sourceNode: this, destinationNode: o.node, sourceNodeHandle: "false" },
45
+ d
46
46
  );
47
- o.edges.push(l);
47
+ d.edges.push(s);
48
48
  },
49
49
  serialize() {
50
50
  return r.serialize({
@@ -53,53 +53,56 @@ const r = {
53
53
  action: this.action
54
54
  });
55
55
  }
56
- }), V = (i) => ({
57
- id: i.id ?? h("step"),
58
- key: i.key ?? m(i.name),
59
- name: i.name,
60
- fields: i.fields ?? [],
61
- addField(o) {
62
- const t = "serialize" in o ? o : y(o);
63
- return this.fields.includes(t) || this.fields.push(t), t;
64
- }
65
- }), z = (i, o) => {
66
- const t = {
67
- id: i.id ?? h("step"),
68
- key: i.key ?? m(i.name),
69
- name: i.name,
70
- experience: o,
56
+ }), V = (i) => {
57
+ const d = i.name ?? i.label ?? "";
58
+ return {
59
+ id: i.id ?? p("step"),
60
+ key: i.key ?? m(d),
61
+ name: d,
62
+ fields: i.fields ?? [],
63
+ addField(n) {
64
+ const o = "serialize" in n ? n : y(n);
65
+ return this.fields.includes(o) || this.fields.push(o), o;
66
+ }
67
+ };
68
+ }, z = (i, d) => {
69
+ const n = "label" in i ? i.label : void 0, o = i.name ?? n ?? "", s = {
70
+ id: i.id ?? p("step"),
71
+ key: i.key ?? m(o),
72
+ name: o,
73
+ experience: d,
71
74
  fields: i.fields ?? [],
72
75
  node: null,
73
- nextStep(s) {
74
- return this.experience.addStep(s, this);
76
+ nextStep(u) {
77
+ return this.experience.addStep(u, this);
75
78
  },
76
- nextConditional(s) {
77
- return this.experience.addConditional(s, this);
79
+ nextConditional(u) {
80
+ return this.experience.addConditional(u, this);
78
81
  },
79
- addNextExperience(s) {
80
- return this.experience.addExperience(s, this);
82
+ addNextExperience(u) {
83
+ return this.experience.addExperience(u, this);
81
84
  },
82
- addField(s) {
83
- return this.experience.addField(s, this);
85
+ addField(u) {
86
+ return this.experience.addField(u, this);
84
87
  },
85
88
  serialize() {
86
89
  return r.serialize({
87
90
  id: this.id,
88
91
  key: m(this.name),
89
92
  name: this.name,
90
- fieldIds: this.fields.map((s) => s.id)
93
+ fieldIds: this.fields.map((u) => u.id)
91
94
  });
92
95
  }
93
96
  };
94
- return p({ step: t, type: "step" }, o), t;
95
- }, p = (i, o) => {
96
- const t = {
97
- id: h("node"),
98
- experience: o
97
+ return f({ step: s, type: "step" }, d), s;
98
+ }, f = (i, d) => {
99
+ const n = {
100
+ id: p("node"),
101
+ experience: d
99
102
  };
100
103
  if (i.type === "step") {
101
- const l = {
102
- ...t,
104
+ const s = {
105
+ ...n,
103
106
  type: "step",
104
107
  connectedStep: i.step,
105
108
  serialize() {
@@ -111,11 +114,11 @@ const r = {
111
114
  });
112
115
  }
113
116
  };
114
- return l.connectedStep.node = l, l;
117
+ return s.connectedStep.node = s, s;
115
118
  }
116
119
  if (i.type === "conditional") {
117
- const l = {
118
- ...t,
120
+ const s = {
121
+ ...n,
119
122
  type: "conditional",
120
123
  connectedConditional: i.conditional,
121
124
  serialize() {
@@ -126,10 +129,10 @@ const r = {
126
129
  });
127
130
  }
128
131
  };
129
- return l.connectedConditional.node = l, l;
132
+ return s.connectedConditional.node = s, s;
130
133
  }
131
134
  return i.type === "experience" ? {
132
- ...t,
135
+ ...n,
133
136
  type: "experience",
134
137
  connectedExperience: i.experience,
135
138
  serialize() {
@@ -140,7 +143,7 @@ const r = {
140
143
  });
141
144
  }
142
145
  } : {
143
- ...t,
146
+ ...n,
144
147
  type: "origin",
145
148
  serialize() {
146
149
  return r.serialize({
@@ -149,12 +152,12 @@ const r = {
149
152
  });
150
153
  }
151
154
  };
152
- }, c = (i, o) => ({
153
- id: h("edge"),
155
+ }, h = (i, d) => ({
156
+ id: p("edge"),
154
157
  sourceNode: i.sourceNode,
155
158
  sourceNodeHandle: i.sourceNodeHandle,
156
159
  destinationNode: i.destinationNode,
157
- experience: o,
160
+ experience: d,
158
161
  serialize() {
159
162
  return r.serialize({
160
163
  id: this.id,
@@ -163,30 +166,30 @@ const r = {
163
166
  destinationNodeId: this.destinationNode.id
164
167
  });
165
168
  }
166
- }), g = (i, o) => {
167
- const t = {
168
- id: h("conditional"),
169
+ }), g = (i, d) => {
170
+ const n = {
171
+ id: p("conditional"),
169
172
  label: i.label,
170
173
  condition: i.condition,
171
174
  node: null,
172
- experience: o,
173
- addTrue(s) {
174
- if (!this.node || !s.node)
175
+ experience: d,
176
+ addTrue(o) {
177
+ if (!this.node || !o.node)
175
178
  throw new Error("todo no node");
176
- const l = c(
177
- { sourceNode: this.node, destinationNode: s.node, sourceNodeHandle: "true" },
179
+ const s = h(
180
+ { sourceNode: this.node, destinationNode: o.node, sourceNodeHandle: "true" },
178
181
  this.experience
179
182
  );
180
- this.experience.edges.push(l);
183
+ this.experience.edges.push(s);
181
184
  },
182
- addFalse(s) {
183
- if (!this.node || !s.node)
185
+ addFalse(o) {
186
+ if (!this.node || !o.node)
184
187
  throw new Error("todo no node");
185
- const l = c(
186
- { sourceNode: this.node, destinationNode: s.node, sourceNodeHandle: "false" },
188
+ const s = h(
189
+ { sourceNode: this.node, destinationNode: o.node, sourceNodeHandle: "false" },
187
190
  this.experience
188
191
  );
189
- this.experience.edges.push(l);
192
+ this.experience.edges.push(s);
190
193
  },
191
194
  serialize() {
192
195
  return r.serialize({
@@ -196,9 +199,9 @@ const r = {
196
199
  });
197
200
  }
198
201
  };
199
- return p({ conditional: t, type: "conditional" }, o), t;
202
+ return f({ conditional: n, type: "conditional" }, d), n;
200
203
  }, y = (i) => ({
201
- id: i.id ?? h("field"),
204
+ id: i.id ?? p("field"),
202
205
  key: i.key ?? m(i.name),
203
206
  name: i.name,
204
207
  type: i.type,
@@ -211,14 +214,14 @@ const r = {
211
214
  validation: i.validation ?? {},
212
215
  condition: i.condition,
213
216
  required: i.required,
214
- options: i.options?.map((t) => ({
215
- id: "id" in t ? t.id : h("option"),
216
- ...t
217
+ options: i.options?.map((n) => ({
218
+ id: "id" in n ? n.id : p("option"),
219
+ ...n
217
220
  })) ?? null,
218
221
  policies: i.policies,
219
222
  // eslint-disable-next-line sonarjs/cognitive-complexity -- this function handles all field types and subtypes; splitting it would increase indirection without improving clarity. Addressed in PR #1372
220
223
  serialize() {
221
- const t = {
224
+ const n = {
222
225
  id: this.id,
223
226
  key: this.key,
224
227
  name: this.name,
@@ -230,35 +233,35 @@ const r = {
230
233
  validation: this.validation,
231
234
  condition: this.condition,
232
235
  policies: this.policies
233
- }, s = typeof this.defaultValue == "string" ? this.defaultValue : void 0, l = typeof this.defaultValue == "number" ? this.defaultValue : void 0, f = typeof this.defaultValue == "boolean" ? this.defaultValue : void 0;
236
+ }, o = typeof this.defaultValue == "string" ? this.defaultValue : void 0, s = typeof this.defaultValue == "number" ? this.defaultValue : void 0, u = typeof this.defaultValue == "boolean" ? this.defaultValue : void 0;
234
237
  switch (this.type) {
235
238
  case "text":
236
239
  if (this.multiple) {
237
240
  let e;
238
241
  if (Array.isArray(this.defaultValue)) {
239
242
  e = [];
240
- for (const n of this.defaultValue)
241
- typeof n == "string" && e.push(n);
243
+ for (const t of this.defaultValue)
244
+ typeof t == "string" && e.push(t);
242
245
  e.length === 0 && (e = void 0);
243
246
  }
244
247
  return r.serialize({
245
- ...t,
248
+ ...n,
246
249
  type: "text",
247
250
  multiple: !0,
248
251
  defaultValue: e,
249
- options: this.options ? this.options.map((n) => ({
250
- id: n.id,
251
- label: n.label,
252
- value: `${n.value}`,
253
- condition: n.condition
252
+ options: this.options ? this.options.map((t) => ({
253
+ id: t.id,
254
+ label: t.label,
255
+ value: `${t.value}`,
256
+ condition: t.condition
254
257
  })) : null
255
258
  });
256
259
  }
257
260
  return r.serialize({
258
- ...t,
261
+ ...n,
259
262
  type: "text",
260
263
  multiple: !1,
261
- defaultValue: s,
264
+ defaultValue: o,
262
265
  options: this.options ? this.options.map((e) => ({
263
266
  id: e.id,
264
267
  label: e.label,
@@ -271,28 +274,28 @@ const r = {
271
274
  let e;
272
275
  if (Array.isArray(this.defaultValue)) {
273
276
  e = [];
274
- for (const n of this.defaultValue)
275
- typeof n == "number" && e.push(n);
277
+ for (const t of this.defaultValue)
278
+ typeof t == "number" && e.push(t);
276
279
  e.length === 0 && (e = void 0);
277
280
  }
278
281
  return r.serialize({
279
- ...t,
282
+ ...n,
280
283
  type: "number",
281
284
  multiple: !0,
282
285
  defaultValue: e,
283
- options: this.options ? this.options.map((n) => ({
284
- id: n.id,
285
- label: n.label,
286
- value: Number(n.value),
287
- condition: n.condition
286
+ options: this.options ? this.options.map((t) => ({
287
+ id: t.id,
288
+ label: t.label,
289
+ value: Number(t.value),
290
+ condition: t.condition
288
291
  })) : null
289
292
  });
290
293
  }
291
294
  return r.serialize({
292
- ...t,
295
+ ...n,
293
296
  type: "number",
294
297
  multiple: !1,
295
- defaultValue: l,
298
+ defaultValue: s,
296
299
  options: this.options ? this.options.map((e) => ({
297
300
  id: e.id,
298
301
  label: e.label,
@@ -305,28 +308,28 @@ const r = {
305
308
  let e;
306
309
  if (Array.isArray(this.defaultValue)) {
307
310
  e = [];
308
- for (const n of this.defaultValue)
309
- typeof n == "boolean" && e.push(n);
311
+ for (const t of this.defaultValue)
312
+ typeof t == "boolean" && e.push(t);
310
313
  e.length === 0 && (e = void 0);
311
314
  }
312
315
  return r.serialize({
313
- ...t,
316
+ ...n,
314
317
  type: "boolean",
315
318
  multiple: !0,
316
319
  defaultValue: e,
317
- options: this.options ? this.options.map((n) => ({
318
- id: n.id,
319
- label: n.label,
320
- value: !!n.value,
321
- condition: n.condition
320
+ options: this.options ? this.options.map((t) => ({
321
+ id: t.id,
322
+ label: t.label,
323
+ value: !!t.value,
324
+ condition: t.condition
322
325
  })) : null
323
326
  });
324
327
  }
325
328
  return r.serialize({
326
- ...t,
329
+ ...n,
327
330
  type: "boolean",
328
331
  multiple: !1,
329
- defaultValue: f,
332
+ defaultValue: u,
330
333
  options: this.options ? this.options.map((e) => ({
331
334
  id: e.id,
332
335
  label: e.label,
@@ -336,7 +339,7 @@ const r = {
336
339
  });
337
340
  case "object":
338
341
  return this.multiple ? r.serialize({
339
- ...t,
342
+ ...n,
340
343
  type: "object",
341
344
  multiple: !0,
342
345
  defaultValue: this.defaultValue,
@@ -348,7 +351,7 @@ const r = {
348
351
  condition: e.condition
349
352
  })) : null
350
353
  }) : r.serialize({
351
- ...t,
354
+ ...n,
352
355
  type: "object",
353
356
  multiple: !1,
354
357
  defaultValue: this.defaultValue,
@@ -365,7 +368,7 @@ const r = {
365
368
  }
366
369
  }
367
370
  }), E = (i) => {
368
- const o = [], t = [], s = [], l = [], f = [];
371
+ const d = [], n = [], o = [], s = [], u = [];
369
372
  return {
370
373
  id: i.id,
371
374
  component: i.component,
@@ -373,79 +376,75 @@ const r = {
373
376
  initializeOpen: i.initializeOpen,
374
377
  condition: i.condition,
375
378
  targets: i.targets,
376
- steps: o,
377
- nodes: t,
378
- edges: s,
379
- fields: f,
380
- conditionals: l,
381
- addStep(e, n) {
382
- let a = n?.node;
383
- this.nodes.length === 0 && (a = p({ type: "origin" }, this), this.nodes.push(a));
384
- let d = "serialize" in e ? e : z(e, this);
385
- if (d = {
386
- ...d,
387
- id: d.id ?? h("step"),
388
- key: d.key ?? m(d.name)
389
- }, a) {
390
- if (!d.node)
379
+ steps: d,
380
+ nodes: n,
381
+ edges: o,
382
+ fields: u,
383
+ conditionals: s,
384
+ addStep(e, t) {
385
+ let l = t?.node;
386
+ this.nodes.length === 0 && (l = f({ type: "origin" }, this), this.nodes.push(l));
387
+ const a = "serialize" in e ? e : z(e, this);
388
+ if (l) {
389
+ if (!a.node)
391
390
  throw new Error("todo no node");
392
- const u = c(
393
- { sourceNode: a, destinationNode: d.node, sourceNodeHandle: null },
391
+ const c = h(
392
+ { sourceNode: l, destinationNode: a.node, sourceNodeHandle: null },
394
393
  this
395
394
  );
396
- this.edges.push(u);
395
+ this.edges.push(c);
397
396
  }
398
- return d.fields.length > 0 && d.fields.forEach((u) => {
399
- this.fields.includes(u) || this.fields.push(u);
400
- }), this.steps.includes(d) || (this.steps.push(d), d.node && this.nodes.push(d.node)), d;
397
+ return a.fields.length > 0 && a.fields.forEach((c) => {
398
+ this.fields.includes(c) || this.fields.push(c);
399
+ }), this.steps.includes(a) || (this.steps.push(a), a.node && this.nodes.push(a.node)), a;
401
400
  },
402
- addAction(e, n) {
403
- let a = n?.node;
404
- this.nodes.length === 0 && (a = p({ type: "origin" }, this), this.nodes.push(a));
405
- const d = "serialize" in e ? e : N(e, this);
406
- if (a) {
407
- const u = c(
408
- { sourceNode: a, destinationNode: d, sourceNodeHandle: null },
401
+ addAction(e, t) {
402
+ let l = t?.node;
403
+ this.nodes.length === 0 && (l = f({ type: "origin" }, this), this.nodes.push(l));
404
+ const a = "serialize" in e ? e : N(e, this);
405
+ if (l) {
406
+ const c = h(
407
+ { sourceNode: l, destinationNode: a, sourceNodeHandle: null },
409
408
  this
410
409
  );
411
- this.edges.push(u);
410
+ this.edges.push(c);
412
411
  }
413
- return this.nodes.push(d), d;
412
+ return this.nodes.push(a), a;
414
413
  },
415
- addConditional(e, n) {
416
- let a = n?.node;
417
- this.nodes.length === 0 && (a = p({ type: "origin" }, this), this.nodes.push(a));
418
- const d = "serialize" in e ? e : g(e, this);
419
- if (a) {
420
- if (!d.node)
414
+ addConditional(e, t) {
415
+ let l = t?.node;
416
+ this.nodes.length === 0 && (l = f({ type: "origin" }, this), this.nodes.push(l));
417
+ const a = "serialize" in e ? e : g(e, this);
418
+ if (l) {
419
+ if (!a.node)
421
420
  throw new Error("todo no node");
422
- const u = c(
423
- { sourceNode: a, destinationNode: d.node, sourceNodeHandle: null },
421
+ const c = h(
422
+ { sourceNode: l, destinationNode: a.node, sourceNodeHandle: null },
424
423
  this
425
424
  );
426
- this.edges.push(u);
425
+ this.edges.push(c);
427
426
  }
428
- return this.conditionals.includes(d) || (this.conditionals.push(d), d.node && this.nodes.push(d.node)), d;
427
+ return this.conditionals.includes(a) || (this.conditionals.push(a), a.node && this.nodes.push(a.node)), a;
429
428
  },
430
- addExperience(e, n) {
431
- let a = n?.node;
432
- this.nodes.length === 0 && (a = p({ type: "origin" }, this), this.nodes.push(a));
433
- const d = p(
429
+ addExperience(e, t) {
430
+ let l = t?.node;
431
+ this.nodes.length === 0 && (l = f({ type: "origin" }, this), this.nodes.push(l));
432
+ const a = f(
434
433
  { type: "experience", experience: e },
435
434
  this
436
435
  );
437
- if (this.nodes.push(d), a) {
438
- const u = c(
439
- { sourceNode: a, destinationNode: d, sourceNodeHandle: null },
436
+ if (this.nodes.push(a), l) {
437
+ const c = h(
438
+ { sourceNode: l, destinationNode: a, sourceNodeHandle: null },
440
439
  this
441
440
  );
442
- this.edges.push(u);
441
+ this.edges.push(c);
443
442
  }
444
443
  return e;
445
444
  },
446
- addField(e, n) {
447
- const a = "serialize" in e ? e : y(e);
448
- return n && n.fields.push(a), this.fields.includes(a) || this.fields.push(a), a;
445
+ addField(e, t) {
446
+ const l = "serialize" in e ? e : y(e);
447
+ return t && t.fields.push(l), this.fields.includes(l) || this.fields.push(l), l;
449
448
  },
450
449
  serialize() {
451
450
  return r.serialize({
@@ -468,11 +467,11 @@ const r = {
468
467
  };
469
468
  export {
470
469
  g as createConditional,
471
- c as createEdge,
470
+ h as createEdge,
472
471
  E as createExperience,
473
472
  x as createExperiencePlugin,
474
473
  y as createField,
475
- p as createNode,
474
+ f as createNode,
476
475
  V as createStep,
477
476
  r as serialization
478
477
  };
@@ -1,5 +1,5 @@
1
- import { a as l } from "../../../api-B3JRgxph.js";
2
- import { c as S } from "../../../api-B3JRgxph.js";
1
+ import { a as l } from "../../../api-CLwLE-DW.js";
2
+ import { c as S } from "../../../api-CLwLE-DW.js";
3
3
  import { l as a } from "../../../logger-C9a75KZn.js";
4
4
  function d(e) {
5
5
  let r = 2166136261;
@@ -13,11 +13,23 @@ export type FieldValue = PrimitiveFieldValue | PrimitiveFieldValue[] | JsonValue
13
13
  export interface FieldBase<TOptionValue = PrimitiveFieldValue> {
14
14
  /** Database row id assigned by the API. Not set on locally-defined fields. */
15
15
  id: string;
16
- /** Stable kebab-case identifier. Auto-derived from `name` via `toKebabCase` if not provided. */
16
+ /**
17
+ * Stable kebab-case identifier. Auto-derived from `name` via `toKebabCase` if not provided.
18
+ *
19
+ * @example "first-name".
20
+ */
17
21
  key: string;
18
- /** Human-readable name, e.g. "What Is Your First Name". */
22
+ /**
23
+ * Human-readable name,
24
+ *
25
+ * @example "First Name".
26
+ */
19
27
  name: string;
20
- /** End-user facing label shown in the UI, e.g. "First name". */
28
+ /**
29
+ * Label used the render it to UI
30
+ *
31
+ * @example "What Is Your First Name"
32
+ */
21
33
  label: string;
22
34
  type: 'text' | 'number' | 'object' | 'boolean';
23
35
  multiple: boolean;
@@ -89,6 +101,9 @@ declare const createFieldIndexFactory: () => {
89
101
  listStore: Store<Field[]>;
90
102
  getByName: (name: FieldBase["name"]) => Store<Field | null>;
91
103
  };
104
+ /**
105
+ *
106
+ */
92
107
  export declare function createFieldIndex(): ReturnType<typeof createFieldIndexFactory>;
93
108
  export declare const setupField: (field: Field, fields: FieldsStore) => void;
94
109
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/entities/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAI7D,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AAElE;;;GAGG;AACH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IA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;CAchE,CAAA;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAE7E;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,EAAE,QAAQ,WAAW,KAAG,IAE9D,CAAA"}
@@ -30,9 +30,13 @@ declare const createResponseIndexFactory: ({ client }: {
30
30
  getAllStore: Store<{
31
31
  [fieldId: string]: FieldValue;
32
32
  }>;
33
+ getByFieldKey: {
34
+ (fieldKey: Field["key"]): Store<FieldValue>;
35
+ <T extends JsonValue>(fieldKey: Field["key"]): Store<T | null>;
36
+ };
33
37
  getByFieldId: {
34
- (fieldId: string): Store<FieldValue>;
35
- <T extends JsonValue>(fieldId: string): Store<T | null>;
38
+ (fieldKey: Field["key"]): Store<FieldValue>;
39
+ <T extends JsonValue>(fieldKey: Field["key"]): Store<T | null>;
36
40
  };
37
41
  getByFieldName: (fieldName: Field["name"]) => Store<FieldValue>;
38
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../src/entities/response/response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAE5F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAuB,MAAM,gBAAgB,CAAA;AA+CvF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAInE,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAA;AAGjC,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC5B;AAED,QAAA,MAAM,0BAA0B,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;kBA+BnD,MAAM,YAAY,QAAQ,GAAG,IAAI;kBACjC,MAAM,CAA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