@getsoren/shared-module 2.57.0 → 2.58.0
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/events/types.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export interface EventDefinition {
|
|
|
56
56
|
photos?: "first" | "focus" | "none";
|
|
57
57
|
/** Closed on submit for the users allowed to close events. */
|
|
58
58
|
closesOnSubmit?: boolean;
|
|
59
|
+
/** A dated proof: the other side only reads it, and never corrects what may be held against it. */
|
|
60
|
+
isProof?: boolean;
|
|
59
61
|
questions?: Partial<Record<EventQuestionStep, EventQuestionKey>>;
|
|
60
62
|
/** Shown on the hovered and picked day of a one-day event. */
|
|
61
63
|
dayHint?: EventDayHintKey;
|
|
@@ -13,7 +13,7 @@ interface StoredEvent {
|
|
|
13
13
|
* An event declared with this engine, read with the definition it was declared with: a tenant whose funnel changes
|
|
14
14
|
* keeps reading its older events right. The reader edits it with its own definition when that one asks the same
|
|
15
15
|
* answers, a client edits a supplier's with the supplier's questions, and the event is only shown otherwise (another
|
|
16
|
-
* team's, a client's read by a supplier). Undefined for a Treege event.
|
|
16
|
+
* team's, a client's read by a supplier, a proof read by the other side). Undefined for a Treege event.
|
|
17
17
|
*/
|
|
18
18
|
declare const readEvent: ({ workflow, workflowValues }: StoredEvent, readerFunnel: EventFunnel) => DeclaredEvent | undefined;
|
|
19
19
|
export default readEvent;
|
package/dist/events.js
CHANGED
|
@@ -77,6 +77,7 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
|
|
|
77
77
|
[o]: {
|
|
78
78
|
closesOnSubmit: !0,
|
|
79
79
|
id: o,
|
|
80
|
+
isProof: !0,
|
|
80
81
|
photos: "focus",
|
|
81
82
|
reason: o
|
|
82
83
|
},
|
|
@@ -348,7 +349,9 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
|
|
|
348
349
|
reasons: ["booking_end", "booking_extension"]
|
|
349
350
|
},
|
|
350
351
|
{
|
|
352
|
+
closesOnSubmit: !0,
|
|
351
353
|
id: o,
|
|
354
|
+
isProof: !0,
|
|
352
355
|
photos: "first",
|
|
353
356
|
questions: {
|
|
354
357
|
details: "photos",
|
|
@@ -1936,7 +1939,7 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
|
|
|
1936
1939
|
side: e.side
|
|
1937
1940
|
} : {
|
|
1938
1941
|
answers: o,
|
|
1939
|
-
editFunnel: r && q(n.side, e.side) ? {
|
|
1942
|
+
editFunnel: r && !a.isProof && q(n.side, e.side) ? {
|
|
1940
1943
|
...r,
|
|
1941
1944
|
pricing: n.pricing
|
|
1942
1945
|
} : void 0,
|