@composable-os/pack-memberships 0.1.0-beta.10 → 0.1.0-beta.13
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/blocks/memberships-mine/mine.d.ts +6 -4
- package/dist/blocks/memberships-mine/mine.js +85 -23
- package/dist/blocks/memberships-native-mine/mine-screen.d.ts +6 -2
- package/dist/blocks/memberships-native-mine/mine-screen.js +30 -6
- package/dist/blocks/memberships-passes/passes.d.ts +6 -1
- package/dist/blocks/memberships-passes/passes.js +75 -8
- package/dist/blocks/memberships-plans/plans.d.ts +6 -1
- package/dist/blocks/memberships-plans/plans.js +71 -6
- package/dist/blocks/memberships-staff-holdings/holdings.d.ts +10 -1
- package/dist/blocks/memberships-staff-holdings/holdings.js +31 -3
- package/dist/client/index.d.ts +593 -27
- package/dist/client/index.js +245 -9
- package/dist/dashboards.d.ts +5 -0
- package/dist/dashboards.js +165 -0
- package/dist/index.d.ts +290 -23
- package/dist/index.js +228 -27
- package/dist/tools.d.ts +4 -5
- package/dist/tools.js +38 -24
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
4
4
|
readonly contractVersion: 1;
|
|
5
5
|
readonly label: "Memberships";
|
|
6
6
|
readonly description: string;
|
|
7
|
-
readonly requires: readonly ["programs"];
|
|
7
|
+
readonly requires: readonly ["programs", "bookings"];
|
|
8
8
|
readonly permissions: {
|
|
9
9
|
readonly read: ["person", "programs.classtype"];
|
|
10
|
-
readonly operations: ["public.list", "
|
|
10
|
+
readonly operations: ["public.list", "allowance.list", "order.start", "me.family"];
|
|
11
11
|
readonly modules: ["ops"];
|
|
12
12
|
};
|
|
13
13
|
readonly objects: {
|
|
@@ -28,6 +28,22 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
28
28
|
readonly step: 1;
|
|
29
29
|
readonly description: "Empty or 0: charged from the start. A person gets one trial on any plan.";
|
|
30
30
|
};
|
|
31
|
+
readonly pauseMinDays: {
|
|
32
|
+
readonly type: "number";
|
|
33
|
+
readonly label: "Shortest pause (days)";
|
|
34
|
+
readonly min: 1;
|
|
35
|
+
readonly max: 366;
|
|
36
|
+
readonly step: 1;
|
|
37
|
+
readonly description: "Staff pause a membership for at least this long. Empty: 1 day.";
|
|
38
|
+
};
|
|
39
|
+
readonly pauseMaxDays: {
|
|
40
|
+
readonly type: "number";
|
|
41
|
+
readonly label: "Longest pause (days)";
|
|
42
|
+
readonly min: 1;
|
|
43
|
+
readonly max: 366;
|
|
44
|
+
readonly step: 1;
|
|
45
|
+
readonly description: "And at most this long. Empty: a year.";
|
|
46
|
+
};
|
|
31
47
|
readonly status: {
|
|
32
48
|
readonly type: "select";
|
|
33
49
|
readonly label: "Status";
|
|
@@ -37,6 +53,24 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
37
53
|
label: string;
|
|
38
54
|
}[];
|
|
39
55
|
};
|
|
56
|
+
readonly covers: {
|
|
57
|
+
readonly readOnly?: boolean | undefined;
|
|
58
|
+
readonly type: "multiSelect";
|
|
59
|
+
readonly label: "Pays for";
|
|
60
|
+
readonly options: {
|
|
61
|
+
value: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}[];
|
|
64
|
+
readonly description: "Classes, one-to-one sessions (Bookings' appointments), or both. Empty: classes only.";
|
|
65
|
+
};
|
|
66
|
+
readonly services: {
|
|
67
|
+
readonly readOnly?: boolean | undefined;
|
|
68
|
+
readonly type: "relation";
|
|
69
|
+
readonly label: "Services";
|
|
70
|
+
readonly to: "bookings.service";
|
|
71
|
+
readonly many: true;
|
|
72
|
+
readonly description: "The one-to-one sessions it pays for, when it pays for sessions. Empty: every one.";
|
|
73
|
+
};
|
|
40
74
|
readonly classTypes: {
|
|
41
75
|
readonly readOnly?: boolean | undefined;
|
|
42
76
|
readonly type: "relation";
|
|
@@ -105,13 +139,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
105
139
|
readonly label: "Per";
|
|
106
140
|
readonly required: true;
|
|
107
141
|
readonly default: "week";
|
|
108
|
-
readonly options:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
readonly value: "month";
|
|
113
|
-
readonly label: "A month";
|
|
114
|
-
}];
|
|
142
|
+
readonly options: {
|
|
143
|
+
value: string;
|
|
144
|
+
label: string;
|
|
145
|
+
}[];
|
|
115
146
|
};
|
|
116
147
|
};
|
|
117
148
|
readonly public: {
|
|
@@ -124,11 +155,25 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
124
155
|
readonly sellable: {
|
|
125
156
|
readonly price: "price";
|
|
126
157
|
readonly tax: {
|
|
127
|
-
|
|
158
|
+
code: string;
|
|
159
|
+
};
|
|
160
|
+
readonly finance: {
|
|
161
|
+
readonly category: {
|
|
162
|
+
readonly key: "memberships";
|
|
163
|
+
readonly label: "Memberships";
|
|
164
|
+
};
|
|
165
|
+
readonly earned: "over_period";
|
|
128
166
|
};
|
|
129
167
|
readonly recurring: {
|
|
130
168
|
readonly interval: "month";
|
|
131
169
|
readonly trialDays: "trialDays";
|
|
170
|
+
readonly pause: {
|
|
171
|
+
readonly minDays: "pauseMinDays";
|
|
172
|
+
readonly maxDays: "pauseMaxDays";
|
|
173
|
+
};
|
|
174
|
+
readonly coolingOff: {
|
|
175
|
+
readonly setting: "coolingOffDays";
|
|
176
|
+
};
|
|
132
177
|
readonly grants: {
|
|
133
178
|
readonly object: "membership";
|
|
134
179
|
readonly set: {
|
|
@@ -139,6 +184,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
139
184
|
readonly title: "item.title";
|
|
140
185
|
readonly uses: "item.uses";
|
|
141
186
|
readonly per: "item.per";
|
|
187
|
+
readonly covers: "item.covers";
|
|
188
|
+
readonly services: "item.services";
|
|
142
189
|
readonly classTypes: "item.classTypes";
|
|
143
190
|
readonly weekdays: "item.weekdays";
|
|
144
191
|
readonly fromMinute: "item.fromMinute";
|
|
@@ -157,6 +204,12 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
157
204
|
};
|
|
158
205
|
};
|
|
159
206
|
};
|
|
207
|
+
readonly agreements: {
|
|
208
|
+
readonly inlineStep: true;
|
|
209
|
+
readonly point: string;
|
|
210
|
+
readonly label: string;
|
|
211
|
+
readonly suggests: ("terms" | "waiver" | "health" | "guardian")[];
|
|
212
|
+
};
|
|
160
213
|
};
|
|
161
214
|
readonly membership: {
|
|
162
215
|
readonly label: "Membership";
|
|
@@ -202,6 +255,24 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
202
255
|
readonly label: "Ended";
|
|
203
256
|
}];
|
|
204
257
|
};
|
|
258
|
+
readonly covers: {
|
|
259
|
+
readonly readOnly?: boolean | undefined;
|
|
260
|
+
readonly type: "multiSelect";
|
|
261
|
+
readonly label: "Pays for";
|
|
262
|
+
readonly options: {
|
|
263
|
+
value: string;
|
|
264
|
+
label: string;
|
|
265
|
+
}[];
|
|
266
|
+
readonly description: "Classes, one-to-one sessions (Bookings' appointments), or both. Empty: classes only.";
|
|
267
|
+
};
|
|
268
|
+
readonly services: {
|
|
269
|
+
readonly readOnly?: boolean | undefined;
|
|
270
|
+
readonly type: "relation";
|
|
271
|
+
readonly label: "Services";
|
|
272
|
+
readonly to: "bookings.service";
|
|
273
|
+
readonly many: true;
|
|
274
|
+
readonly description: "The one-to-one sessions it pays for, when it pays for sessions. Empty: every one.";
|
|
275
|
+
};
|
|
205
276
|
readonly classTypes: {
|
|
206
277
|
readonly readOnly?: boolean | undefined;
|
|
207
278
|
readonly type: "relation";
|
|
@@ -276,13 +347,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
276
347
|
readonly type: "select";
|
|
277
348
|
readonly label: "Per";
|
|
278
349
|
readonly readOnly: true;
|
|
279
|
-
readonly options:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
readonly value: "month";
|
|
284
|
-
readonly label: "A month";
|
|
285
|
-
}];
|
|
350
|
+
readonly options: {
|
|
351
|
+
value: string;
|
|
352
|
+
label: string;
|
|
353
|
+
}[];
|
|
286
354
|
};
|
|
287
355
|
};
|
|
288
356
|
readonly states: {
|
|
@@ -301,7 +369,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
301
369
|
};
|
|
302
370
|
readonly customer: {
|
|
303
371
|
readonly field: "person";
|
|
304
|
-
readonly
|
|
372
|
+
readonly guardians: {};
|
|
373
|
+
readonly read: readonly ["person", "title", "plan", "uses", "per", "classTypes", "weekdays", "fromMinute", "untilMinute", "from", "until", "status"];
|
|
305
374
|
readonly write: readonly [];
|
|
306
375
|
};
|
|
307
376
|
readonly allowance: {
|
|
@@ -318,22 +387,31 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
318
387
|
readonly spendsOn: {
|
|
319
388
|
object: string;
|
|
320
389
|
when: ({
|
|
390
|
+
value: string;
|
|
391
|
+
in: string;
|
|
392
|
+
field?: undefined;
|
|
393
|
+
atLeast?: undefined;
|
|
394
|
+
below?: undefined;
|
|
395
|
+
} | {
|
|
321
396
|
field: string;
|
|
322
397
|
in: string;
|
|
398
|
+
value?: undefined;
|
|
323
399
|
atLeast?: undefined;
|
|
324
400
|
below?: undefined;
|
|
325
401
|
} | {
|
|
326
402
|
field: string;
|
|
327
403
|
atLeast: string;
|
|
404
|
+
value?: undefined;
|
|
328
405
|
in?: undefined;
|
|
329
406
|
below?: undefined;
|
|
330
407
|
} | {
|
|
331
408
|
field: string;
|
|
332
409
|
below: string;
|
|
410
|
+
value?: undefined;
|
|
333
411
|
in?: undefined;
|
|
334
412
|
atLeast?: undefined;
|
|
335
413
|
})[];
|
|
336
|
-
};
|
|
414
|
+
}[];
|
|
337
415
|
};
|
|
338
416
|
};
|
|
339
417
|
readonly timelineLinks: readonly ["person"];
|
|
@@ -362,6 +440,24 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
362
440
|
label: string;
|
|
363
441
|
}[];
|
|
364
442
|
};
|
|
443
|
+
readonly covers: {
|
|
444
|
+
readonly readOnly?: boolean | undefined;
|
|
445
|
+
readonly type: "multiSelect";
|
|
446
|
+
readonly label: "Pays for";
|
|
447
|
+
readonly options: {
|
|
448
|
+
value: string;
|
|
449
|
+
label: string;
|
|
450
|
+
}[];
|
|
451
|
+
readonly description: "Classes, one-to-one sessions (Bookings' appointments), or both. Empty: classes only.";
|
|
452
|
+
};
|
|
453
|
+
readonly services: {
|
|
454
|
+
readonly readOnly?: boolean | undefined;
|
|
455
|
+
readonly type: "relation";
|
|
456
|
+
readonly label: "Services";
|
|
457
|
+
readonly to: "bookings.service";
|
|
458
|
+
readonly many: true;
|
|
459
|
+
readonly description: "The one-to-one sessions it pays for, when it pays for sessions. Empty: every one.";
|
|
460
|
+
};
|
|
365
461
|
readonly classTypes: {
|
|
366
462
|
readonly readOnly?: boolean | undefined;
|
|
367
463
|
readonly type: "relation";
|
|
@@ -443,7 +539,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
443
539
|
readonly sellable: {
|
|
444
540
|
readonly price: "price";
|
|
445
541
|
readonly tax: {
|
|
446
|
-
|
|
542
|
+
code: string;
|
|
447
543
|
};
|
|
448
544
|
readonly grants: {
|
|
449
545
|
readonly object: "pass";
|
|
@@ -453,6 +549,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
453
549
|
readonly title: "line.title";
|
|
454
550
|
readonly order: "order";
|
|
455
551
|
readonly uses: "item.uses";
|
|
552
|
+
readonly covers: "item.covers";
|
|
553
|
+
readonly services: "item.services";
|
|
456
554
|
readonly classTypes: "item.classTypes";
|
|
457
555
|
readonly weekdays: "item.weekdays";
|
|
458
556
|
readonly fromMinute: "item.fromMinute";
|
|
@@ -466,6 +564,19 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
466
564
|
};
|
|
467
565
|
};
|
|
468
566
|
readonly onePerPerson: "onePerPerson";
|
|
567
|
+
readonly finance: {
|
|
568
|
+
readonly category: {
|
|
569
|
+
readonly key: "passes";
|
|
570
|
+
readonly label: "Class passes";
|
|
571
|
+
};
|
|
572
|
+
readonly earned: "per_use";
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
readonly agreements: {
|
|
576
|
+
readonly inlineStep: true;
|
|
577
|
+
readonly point: string;
|
|
578
|
+
readonly label: string;
|
|
579
|
+
readonly suggests: ("terms" | "waiver" | "health" | "guardian")[];
|
|
469
580
|
};
|
|
470
581
|
};
|
|
471
582
|
readonly pass: {
|
|
@@ -517,6 +628,24 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
517
628
|
readonly label: "Void";
|
|
518
629
|
}];
|
|
519
630
|
};
|
|
631
|
+
readonly covers: {
|
|
632
|
+
readonly readOnly?: boolean | undefined;
|
|
633
|
+
readonly type: "multiSelect";
|
|
634
|
+
readonly label: "Pays for";
|
|
635
|
+
readonly options: {
|
|
636
|
+
value: string;
|
|
637
|
+
label: string;
|
|
638
|
+
}[];
|
|
639
|
+
readonly description: "Classes, one-to-one sessions (Bookings' appointments), or both. Empty: classes only.";
|
|
640
|
+
};
|
|
641
|
+
readonly services: {
|
|
642
|
+
readonly readOnly?: boolean | undefined;
|
|
643
|
+
readonly type: "relation";
|
|
644
|
+
readonly label: "Services";
|
|
645
|
+
readonly to: "bookings.service";
|
|
646
|
+
readonly many: true;
|
|
647
|
+
readonly description: "The one-to-one sessions it pays for, when it pays for sessions. Empty: every one.";
|
|
648
|
+
};
|
|
520
649
|
readonly classTypes: {
|
|
521
650
|
readonly readOnly?: boolean | undefined;
|
|
522
651
|
readonly type: "relation";
|
|
@@ -592,9 +721,18 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
592
721
|
readonly final: true;
|
|
593
722
|
}];
|
|
594
723
|
};
|
|
724
|
+
readonly agreements: {
|
|
725
|
+
readonly enter: readonly ["active"];
|
|
726
|
+
readonly person: "person";
|
|
727
|
+
readonly inlineStep: true;
|
|
728
|
+
readonly point: string;
|
|
729
|
+
readonly label: string;
|
|
730
|
+
readonly suggests: ("terms" | "waiver" | "health" | "guardian")[];
|
|
731
|
+
};
|
|
595
732
|
readonly customer: {
|
|
596
733
|
readonly field: "person";
|
|
597
|
-
readonly
|
|
734
|
+
readonly guardians: {};
|
|
735
|
+
readonly read: readonly ["person", "title", "passtype", "uses", "classTypes", "weekdays", "fromMinute", "untilMinute", "from", "until", "source", "status"];
|
|
598
736
|
readonly write: readonly [];
|
|
599
737
|
};
|
|
600
738
|
readonly allowance: {
|
|
@@ -608,22 +746,31 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
608
746
|
readonly spendsOn: {
|
|
609
747
|
object: string;
|
|
610
748
|
when: ({
|
|
749
|
+
value: string;
|
|
750
|
+
in: string;
|
|
751
|
+
field?: undefined;
|
|
752
|
+
atLeast?: undefined;
|
|
753
|
+
below?: undefined;
|
|
754
|
+
} | {
|
|
611
755
|
field: string;
|
|
612
756
|
in: string;
|
|
757
|
+
value?: undefined;
|
|
613
758
|
atLeast?: undefined;
|
|
614
759
|
below?: undefined;
|
|
615
760
|
} | {
|
|
616
761
|
field: string;
|
|
617
762
|
atLeast: string;
|
|
763
|
+
value?: undefined;
|
|
618
764
|
in?: undefined;
|
|
619
765
|
below?: undefined;
|
|
620
766
|
} | {
|
|
621
767
|
field: string;
|
|
622
768
|
below: string;
|
|
769
|
+
value?: undefined;
|
|
623
770
|
in?: undefined;
|
|
624
771
|
atLeast?: undefined;
|
|
625
772
|
})[];
|
|
626
|
-
};
|
|
773
|
+
}[];
|
|
627
774
|
};
|
|
628
775
|
};
|
|
629
776
|
readonly timelineLinks: readonly ["person"];
|
|
@@ -673,6 +820,20 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
673
820
|
};
|
|
674
821
|
readonly columns: ["person", "title", "payer", "until"];
|
|
675
822
|
};
|
|
823
|
+
readonly paused: {
|
|
824
|
+
readonly label: "Paused";
|
|
825
|
+
readonly object: "memberships.membership";
|
|
826
|
+
readonly filter: {
|
|
827
|
+
readonly field: "status";
|
|
828
|
+
readonly op: "eq";
|
|
829
|
+
readonly value: "paused";
|
|
830
|
+
};
|
|
831
|
+
readonly sort: {
|
|
832
|
+
readonly field: "from";
|
|
833
|
+
readonly direction: "desc";
|
|
834
|
+
};
|
|
835
|
+
readonly columns: ["person", "title", "payer", "from"];
|
|
836
|
+
};
|
|
676
837
|
readonly endingThisMonth: {
|
|
677
838
|
readonly label: "Ending this month";
|
|
678
839
|
readonly object: "memberships.membership";
|
|
@@ -697,6 +858,34 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
697
858
|
};
|
|
698
859
|
readonly columns: ["person", "title", "status", "until"];
|
|
699
860
|
};
|
|
861
|
+
readonly passesExpiringThisWeek: {
|
|
862
|
+
readonly label: "Passes expiring this week";
|
|
863
|
+
readonly object: "memberships.pass";
|
|
864
|
+
readonly filter: {
|
|
865
|
+
readonly and: [{
|
|
866
|
+
readonly field: "status";
|
|
867
|
+
readonly op: "eq";
|
|
868
|
+
readonly value: "active";
|
|
869
|
+
}, {
|
|
870
|
+
readonly field: "until";
|
|
871
|
+
readonly op: "gte";
|
|
872
|
+
readonly value: {
|
|
873
|
+
readonly $relative: "now";
|
|
874
|
+
};
|
|
875
|
+
}, {
|
|
876
|
+
readonly field: "until";
|
|
877
|
+
readonly op: "lt";
|
|
878
|
+
readonly value: {
|
|
879
|
+
readonly $relative: "startOfNextWeek";
|
|
880
|
+
};
|
|
881
|
+
}];
|
|
882
|
+
};
|
|
883
|
+
readonly sort: {
|
|
884
|
+
readonly field: "until";
|
|
885
|
+
readonly direction: "asc";
|
|
886
|
+
};
|
|
887
|
+
readonly columns: ["person", "title", "uses", "until"];
|
|
888
|
+
};
|
|
700
889
|
readonly passesExpiringThisMonth: {
|
|
701
890
|
readonly label: "Passes expiring this month";
|
|
702
891
|
readonly object: "memberships.pass";
|
|
@@ -759,6 +948,51 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
759
948
|
};
|
|
760
949
|
};
|
|
761
950
|
readonly grantable: readonly ["memberships:passes"];
|
|
951
|
+
readonly journeySignals: {
|
|
952
|
+
readonly started: {
|
|
953
|
+
readonly label: "Membership started";
|
|
954
|
+
readonly description: "A membership begins, on trial or paid.";
|
|
955
|
+
readonly object: "membership";
|
|
956
|
+
};
|
|
957
|
+
readonly joined: {
|
|
958
|
+
readonly label: "Joined after a trial";
|
|
959
|
+
readonly description: "A trial becomes a paid membership.";
|
|
960
|
+
readonly object: "membership";
|
|
961
|
+
readonly enters: readonly ["active"];
|
|
962
|
+
readonly from: readonly ["trialing"];
|
|
963
|
+
readonly created: false;
|
|
964
|
+
};
|
|
965
|
+
readonly ended: {
|
|
966
|
+
readonly label: "Membership ended";
|
|
967
|
+
readonly description: "A membership ends.";
|
|
968
|
+
readonly object: "membership";
|
|
969
|
+
readonly enters: readonly ["ended"];
|
|
970
|
+
};
|
|
971
|
+
readonly trialEnded: {
|
|
972
|
+
readonly label: "Trial ended without joining";
|
|
973
|
+
readonly description: "A trial stops without becoming a paid membership.";
|
|
974
|
+
readonly object: "membership";
|
|
975
|
+
readonly enters: readonly ["past_due", "unpaid", "paused", "ended"];
|
|
976
|
+
readonly from: readonly ["trialing"];
|
|
977
|
+
readonly created: false;
|
|
978
|
+
};
|
|
979
|
+
readonly passStarted: {
|
|
980
|
+
readonly label: "Pass started";
|
|
981
|
+
readonly description: "A member gets a pass: bought, or given by staff.";
|
|
982
|
+
readonly object: "pass";
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
readonly settings: {
|
|
986
|
+
readonly coolingOffDays: {
|
|
987
|
+
readonly type: "number";
|
|
988
|
+
readonly label: "Cooling-off period (days)";
|
|
989
|
+
readonly description: string;
|
|
990
|
+
readonly default: 0;
|
|
991
|
+
readonly min: 0;
|
|
992
|
+
readonly max: 30;
|
|
993
|
+
readonly personApproves: true;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
762
996
|
readonly tools: {
|
|
763
997
|
readonly plans: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
764
998
|
plans: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -800,6 +1034,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
800
1034
|
readonly buy: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
801
1035
|
passTypeId: import("zod").ZodString;
|
|
802
1036
|
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1037
|
+
agreements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
803
1038
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
804
1039
|
id: import("zod").ZodString;
|
|
805
1040
|
state: import("zod").ZodString;
|
|
@@ -807,7 +1042,9 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
807
1042
|
total: import("zod").ZodNumber;
|
|
808
1043
|
token: import("zod").ZodNullable<import("zod").ZodString>;
|
|
809
1044
|
}, import("zod/v4/core").$strip>>;
|
|
810
|
-
readonly mine: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
1045
|
+
readonly mine: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
1046
|
+
personId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1047
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
811
1048
|
holdings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
812
1049
|
classTypes: import("zod").ZodArray<import("zod").ZodString>;
|
|
813
1050
|
weekdays: import("zod").ZodArray<import("zod").ZodString>;
|
|
@@ -890,5 +1127,35 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
890
1127
|
source: import("zod").ZodString;
|
|
891
1128
|
}, import("zod/v4/core").$strip>>;
|
|
892
1129
|
};
|
|
1130
|
+
readonly dashboards: {
|
|
1131
|
+
memberships: import("@composable-os/sdk").DashboardDeclaration;
|
|
1132
|
+
};
|
|
1133
|
+
readonly screens: {
|
|
1134
|
+
readonly holdings: {
|
|
1135
|
+
readonly label: "Memberships";
|
|
1136
|
+
readonly block: "memberships-staff-holdings";
|
|
1137
|
+
readonly export: "PersonMemberships";
|
|
1138
|
+
readonly opens: readonly ["holdings", "givePass"];
|
|
1139
|
+
readonly record: {
|
|
1140
|
+
readonly object: "person";
|
|
1141
|
+
readonly as: "personId";
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
readonly portal: {
|
|
1146
|
+
readonly memberships: {
|
|
1147
|
+
readonly label: "Memberships and passes";
|
|
1148
|
+
readonly web: {
|
|
1149
|
+
readonly block: "memberships-mine";
|
|
1150
|
+
readonly export: "MyMemberships";
|
|
1151
|
+
};
|
|
1152
|
+
readonly native: {
|
|
1153
|
+
readonly block: "memberships-native-mine";
|
|
1154
|
+
readonly export: "MyMembershipsScreen";
|
|
1155
|
+
};
|
|
1156
|
+
readonly order: 20;
|
|
1157
|
+
readonly has: readonly ["memberships.membership", "memberships.pass"];
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
893
1160
|
}>;
|
|
894
1161
|
export default _default;
|