@composable-os/pack-memberships 0.0.0-stage → 0.1.0-beta.11

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.
@@ -0,0 +1,963 @@
1
+ declare const _default: import("@composable-os/sdk").Extension<{
2
+ readonly id: "memberships";
3
+ readonly version: "0.1.0";
4
+ readonly contractVersion: 1;
5
+ readonly label: "Memberships";
6
+ readonly description: string;
7
+ readonly requires: readonly ["programs"];
8
+ readonly permissions: {
9
+ readonly read: ["person", "programs.classtype"];
10
+ readonly operations: ["public.list", "public.get", "my.list", "my.get", "record.create", "record.update", "record.get", "record.list", "allowance.get", "allowance.list", "order.start", "me.family"];
11
+ readonly modules: ["ops"];
12
+ };
13
+ readonly objects: {
14
+ readonly plan: {
15
+ readonly label: "Membership plan";
16
+ readonly plural: "Membership plans";
17
+ readonly icon: "repeat";
18
+ readonly titleField: "title";
19
+ readonly description: string;
20
+ readonly navigation: "main";
21
+ readonly navigationOrder: 30;
22
+ readonly fields: {
23
+ readonly trialDays: {
24
+ readonly type: "number";
25
+ readonly label: "Free trial (days)";
26
+ readonly min: 0;
27
+ readonly max: 90;
28
+ readonly step: 1;
29
+ readonly description: "Empty or 0: charged from the start. A person gets one trial on any plan.";
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
+ };
47
+ readonly status: {
48
+ readonly type: "select";
49
+ readonly label: "Status";
50
+ readonly default: "draft";
51
+ readonly options: {
52
+ value: string;
53
+ label: string;
54
+ }[];
55
+ };
56
+ readonly classTypes: {
57
+ readonly readOnly?: boolean | undefined;
58
+ readonly type: "relation";
59
+ readonly label: "Class types";
60
+ readonly to: "programs.classtype";
61
+ readonly many: true;
62
+ readonly description: "Empty: every class type.";
63
+ };
64
+ readonly weekdays: {
65
+ readonly readOnly?: boolean | undefined;
66
+ readonly type: "multiSelect";
67
+ readonly label: "Days";
68
+ readonly options: {
69
+ value: string;
70
+ label: string;
71
+ }[];
72
+ readonly description: "Empty: every day.";
73
+ };
74
+ readonly fromMinute: {
75
+ readonly readOnly?: boolean | undefined;
76
+ readonly type: "number";
77
+ readonly label: "Classes from (minutes after midnight)";
78
+ readonly min: 0;
79
+ readonly max: 1440;
80
+ readonly step: 1;
81
+ readonly description: "A class must start at or after this time of day: 540 is 09:00. Empty: any.";
82
+ };
83
+ readonly untilMinute: {
84
+ readonly readOnly?: boolean | undefined;
85
+ readonly type: "number";
86
+ readonly label: "Classes before (minutes after midnight)";
87
+ readonly min: 0;
88
+ readonly max: 1440;
89
+ readonly step: 1;
90
+ readonly description: "A class must start before this time of day: 960 is 16:00. Empty: any.";
91
+ };
92
+ readonly title: {
93
+ readonly type: "text";
94
+ readonly label: "Title";
95
+ readonly required: true;
96
+ };
97
+ readonly summary: {
98
+ readonly type: "text";
99
+ readonly label: "What it gives, in a line";
100
+ readonly description: "Shown with the plan: \"3 classes a week, off-peak\".";
101
+ };
102
+ readonly description: {
103
+ readonly type: "text";
104
+ readonly label: "Description";
105
+ };
106
+ readonly price: {
107
+ readonly type: "currency";
108
+ readonly label: "Price per month";
109
+ readonly required: true;
110
+ };
111
+ readonly uses: {
112
+ readonly type: "number";
113
+ readonly label: "Classes per period";
114
+ readonly min: 1;
115
+ readonly max: 1000;
116
+ readonly step: 1;
117
+ readonly description: "Empty: unlimited.";
118
+ };
119
+ readonly per: {
120
+ readonly type: "select";
121
+ readonly label: "Per";
122
+ readonly required: true;
123
+ readonly default: "week";
124
+ readonly options: readonly [{
125
+ readonly value: "week";
126
+ readonly label: "A week";
127
+ }, {
128
+ readonly value: "month";
129
+ readonly label: "A month";
130
+ }];
131
+ };
132
+ };
133
+ readonly public: {
134
+ readonly read: readonly ["title", "summary", "description", "price", "uses", "per", "classTypes", "weekdays", "fromMinute", "untilMinute", "trialDays"];
135
+ readonly when: {
136
+ readonly field: "status";
137
+ readonly in: readonly ["on_sale"];
138
+ };
139
+ };
140
+ readonly sellable: {
141
+ readonly price: "price";
142
+ readonly tax: {
143
+ readonly code: "txcd_50021001";
144
+ };
145
+ readonly recurring: {
146
+ readonly interval: "month";
147
+ readonly trialDays: "trialDays";
148
+ readonly pause: {
149
+ readonly minDays: "pauseMinDays";
150
+ readonly maxDays: "pauseMaxDays";
151
+ };
152
+ readonly grants: {
153
+ readonly object: "membership";
154
+ readonly set: {
155
+ readonly person: "subscription.holder";
156
+ readonly payer: "subscription.payer";
157
+ readonly plan: "item";
158
+ readonly subscription: "subscription";
159
+ readonly title: "item.title";
160
+ readonly uses: "item.uses";
161
+ readonly per: "item.per";
162
+ readonly classTypes: "item.classTypes";
163
+ readonly weekdays: "item.weekdays";
164
+ readonly fromMinute: "item.fromMinute";
165
+ readonly untilMinute: "item.untilMinute";
166
+ };
167
+ readonly from: "from";
168
+ readonly until: "until";
169
+ readonly states: {
170
+ readonly trialing: "trialing";
171
+ readonly active: "active";
172
+ readonly past_due: "past_due";
173
+ readonly unpaid: "unpaid";
174
+ readonly paused: "paused";
175
+ readonly ended: "ended";
176
+ };
177
+ };
178
+ };
179
+ };
180
+ };
181
+ readonly membership: {
182
+ readonly label: "Membership";
183
+ readonly plural: "Memberships";
184
+ readonly icon: "id-card";
185
+ readonly titleField: "title";
186
+ readonly description: string;
187
+ readonly navigation: "main";
188
+ readonly navigationOrder: 31;
189
+ readonly fields: {
190
+ readonly from: {
191
+ readonly type: "datetime";
192
+ readonly label: "From";
193
+ readonly readOnly: true;
194
+ };
195
+ readonly until: {
196
+ readonly type: "datetime";
197
+ readonly label: "Until";
198
+ readonly readOnly: true;
199
+ readonly description: "When it stops: set when it is ending, has ended, or a payment is failing.";
200
+ };
201
+ readonly status: {
202
+ readonly type: "select";
203
+ readonly label: "Status";
204
+ readonly track: "timeline";
205
+ readonly options: readonly [{
206
+ readonly value: "trialing";
207
+ readonly label: "On trial";
208
+ }, {
209
+ readonly value: "active";
210
+ readonly label: "Active";
211
+ }, {
212
+ readonly value: "past_due";
213
+ readonly label: "Past due";
214
+ }, {
215
+ readonly value: "unpaid";
216
+ readonly label: "Unpaid";
217
+ }, {
218
+ readonly value: "paused";
219
+ readonly label: "Paused";
220
+ }, {
221
+ readonly value: "ended";
222
+ readonly label: "Ended";
223
+ }];
224
+ };
225
+ readonly classTypes: {
226
+ readonly readOnly?: boolean | undefined;
227
+ readonly type: "relation";
228
+ readonly label: "Class types";
229
+ readonly to: "programs.classtype";
230
+ readonly many: true;
231
+ readonly description: "Empty: every class type.";
232
+ };
233
+ readonly weekdays: {
234
+ readonly readOnly?: boolean | undefined;
235
+ readonly type: "multiSelect";
236
+ readonly label: "Days";
237
+ readonly options: {
238
+ value: string;
239
+ label: string;
240
+ }[];
241
+ readonly description: "Empty: every day.";
242
+ };
243
+ readonly fromMinute: {
244
+ readonly readOnly?: boolean | undefined;
245
+ readonly type: "number";
246
+ readonly label: "Classes from (minutes after midnight)";
247
+ readonly min: 0;
248
+ readonly max: 1440;
249
+ readonly step: 1;
250
+ readonly description: "A class must start at or after this time of day: 540 is 09:00. Empty: any.";
251
+ };
252
+ readonly untilMinute: {
253
+ readonly readOnly?: boolean | undefined;
254
+ readonly type: "number";
255
+ readonly label: "Classes before (minutes after midnight)";
256
+ readonly min: 0;
257
+ readonly max: 1440;
258
+ readonly step: 1;
259
+ readonly description: "A class must start before this time of day: 960 is 16:00. Empty: any.";
260
+ };
261
+ readonly title: {
262
+ readonly type: "text";
263
+ readonly label: "Plan";
264
+ readonly readOnly: true;
265
+ };
266
+ readonly person: {
267
+ readonly type: "relation";
268
+ readonly label: "Member";
269
+ readonly to: "person";
270
+ readonly readOnly: true;
271
+ };
272
+ readonly payer: {
273
+ readonly type: "relation";
274
+ readonly label: "Paid by";
275
+ readonly to: "person";
276
+ readonly readOnly: true;
277
+ readonly description: "Who pays: the member, or someone paying for them (a parent).";
278
+ };
279
+ readonly plan: {
280
+ readonly type: "relation";
281
+ readonly label: "Plan";
282
+ readonly to: "memberships.plan";
283
+ readonly readOnly: true;
284
+ };
285
+ readonly subscription: {
286
+ readonly type: "text";
287
+ readonly label: "Subscription";
288
+ readonly readOnly: true;
289
+ };
290
+ readonly uses: {
291
+ readonly type: "number";
292
+ readonly label: "Classes per period";
293
+ readonly readOnly: true;
294
+ };
295
+ readonly per: {
296
+ readonly type: "select";
297
+ readonly label: "Per";
298
+ readonly readOnly: true;
299
+ readonly options: readonly [{
300
+ readonly value: "week";
301
+ readonly label: "A week";
302
+ }, {
303
+ readonly value: "month";
304
+ readonly label: "A month";
305
+ }];
306
+ };
307
+ };
308
+ readonly states: {
309
+ readonly field: "status";
310
+ readonly initial: "active";
311
+ readonly moves: ({
312
+ from: ("active" | "trialing" | "past_due" | "unpaid" | "paused")[];
313
+ to: "active" | "trialing" | "past_due" | "unpaid" | "paused";
314
+ by: "host"[];
315
+ } | {
316
+ from: ("active" | "trialing" | "past_due" | "unpaid" | "paused")[];
317
+ to: string;
318
+ by: "host"[];
319
+ final: boolean;
320
+ })[];
321
+ };
322
+ readonly customer: {
323
+ readonly field: "person";
324
+ readonly guardians: {};
325
+ readonly read: readonly ["person", "title", "plan", "uses", "per", "classTypes", "weekdays", "fromMinute", "untilMinute", "from", "until", "status"];
326
+ readonly write: readonly [];
327
+ };
328
+ readonly allowance: {
329
+ readonly holds: {
330
+ readonly person: "person";
331
+ readonly uses: "uses";
332
+ readonly per: {
333
+ readonly field: "per";
334
+ };
335
+ readonly from: "from";
336
+ readonly until: "until";
337
+ readonly live: readonly ["trialing", "active", "past_due"];
338
+ readonly emptyIsUnlimited: true;
339
+ readonly spendsOn: {
340
+ object: string;
341
+ when: ({
342
+ field: string;
343
+ in: string;
344
+ atLeast?: undefined;
345
+ below?: undefined;
346
+ } | {
347
+ field: string;
348
+ atLeast: string;
349
+ in?: undefined;
350
+ below?: undefined;
351
+ } | {
352
+ field: string;
353
+ below: string;
354
+ in?: undefined;
355
+ atLeast?: undefined;
356
+ })[];
357
+ };
358
+ };
359
+ };
360
+ readonly timelineLinks: readonly ["person"];
361
+ readonly indexes: readonly [readonly ["person"], readonly ["plan"], readonly ["subscription"], readonly ["status"]];
362
+ };
363
+ readonly passtype: {
364
+ readonly label: "Pass type";
365
+ readonly plural: "Pass types";
366
+ readonly icon: "ticket";
367
+ readonly titleField: "title";
368
+ readonly description: string;
369
+ readonly navigation: "main";
370
+ readonly navigationOrder: 32;
371
+ readonly fields: {
372
+ readonly onePerPerson: {
373
+ readonly type: "boolean";
374
+ readonly label: "Intro offer: one per person";
375
+ readonly description: "A person buys one of these once, across every pass type marked so, signed in.";
376
+ };
377
+ readonly status: {
378
+ readonly type: "select";
379
+ readonly label: "Status";
380
+ readonly default: "draft";
381
+ readonly options: {
382
+ value: string;
383
+ label: string;
384
+ }[];
385
+ };
386
+ readonly classTypes: {
387
+ readonly readOnly?: boolean | undefined;
388
+ readonly type: "relation";
389
+ readonly label: "Class types";
390
+ readonly to: "programs.classtype";
391
+ readonly many: true;
392
+ readonly description: "Empty: every class type.";
393
+ };
394
+ readonly weekdays: {
395
+ readonly readOnly?: boolean | undefined;
396
+ readonly type: "multiSelect";
397
+ readonly label: "Days";
398
+ readonly options: {
399
+ value: string;
400
+ label: string;
401
+ }[];
402
+ readonly description: "Empty: every day.";
403
+ };
404
+ readonly fromMinute: {
405
+ readonly readOnly?: boolean | undefined;
406
+ readonly type: "number";
407
+ readonly label: "Classes from (minutes after midnight)";
408
+ readonly min: 0;
409
+ readonly max: 1440;
410
+ readonly step: 1;
411
+ readonly description: "A class must start at or after this time of day: 540 is 09:00. Empty: any.";
412
+ };
413
+ readonly untilMinute: {
414
+ readonly readOnly?: boolean | undefined;
415
+ readonly type: "number";
416
+ readonly label: "Classes before (minutes after midnight)";
417
+ readonly min: 0;
418
+ readonly max: 1440;
419
+ readonly step: 1;
420
+ readonly description: "A class must start before this time of day: 960 is 16:00. Empty: any.";
421
+ };
422
+ readonly title: {
423
+ readonly type: "text";
424
+ readonly label: "Title";
425
+ readonly required: true;
426
+ };
427
+ readonly summary: {
428
+ readonly type: "text";
429
+ readonly label: "What it gives, in a line";
430
+ };
431
+ readonly description: {
432
+ readonly type: "text";
433
+ readonly label: "Description";
434
+ };
435
+ readonly price: {
436
+ readonly type: "currency";
437
+ readonly label: "Price";
438
+ readonly required: true;
439
+ };
440
+ readonly uses: {
441
+ readonly type: "number";
442
+ readonly label: "Classes";
443
+ readonly required: true;
444
+ readonly min: 1;
445
+ readonly max: 1000;
446
+ readonly step: 1;
447
+ };
448
+ readonly validDays: {
449
+ readonly type: "number";
450
+ readonly label: "Valid for (days)";
451
+ readonly min: 1;
452
+ readonly max: 3650;
453
+ readonly step: 1;
454
+ readonly description: "From the day it is bought. Empty: it does not expire.";
455
+ };
456
+ };
457
+ readonly public: {
458
+ readonly read: readonly ["title", "summary", "description", "price", "uses", "validDays", "classTypes", "weekdays", "fromMinute", "untilMinute", "onePerPerson"];
459
+ readonly when: {
460
+ readonly field: "status";
461
+ readonly in: readonly ["on_sale"];
462
+ };
463
+ };
464
+ readonly sellable: {
465
+ readonly price: "price";
466
+ readonly tax: {
467
+ readonly code: "txcd_50021001";
468
+ };
469
+ readonly grants: {
470
+ readonly object: "pass";
471
+ readonly set: {
472
+ readonly person: "order.person";
473
+ readonly passtype: "item";
474
+ readonly title: "line.title";
475
+ readonly order: "order";
476
+ readonly uses: "item.uses";
477
+ readonly classTypes: "item.classTypes";
478
+ readonly weekdays: "item.weekdays";
479
+ readonly fromMinute: "item.fromMinute";
480
+ readonly untilMinute: "item.untilMinute";
481
+ };
482
+ readonly void: "void";
483
+ readonly valid: {
484
+ readonly from: "from";
485
+ readonly until: "until";
486
+ readonly days: "item.validDays";
487
+ };
488
+ };
489
+ readonly onePerPerson: "onePerPerson";
490
+ };
491
+ };
492
+ readonly pass: {
493
+ readonly label: "Pass";
494
+ readonly plural: "Passes";
495
+ readonly icon: "ticket-check";
496
+ readonly titleField: "title";
497
+ readonly description: string;
498
+ readonly navigation: "main";
499
+ readonly navigationOrder: 33;
500
+ readonly fields: {
501
+ readonly from: {
502
+ readonly type: "datetime";
503
+ readonly label: "From";
504
+ readonly readOnly: true;
505
+ };
506
+ readonly until: {
507
+ readonly type: "datetime";
508
+ readonly label: "Expires";
509
+ readonly readOnly: true;
510
+ };
511
+ readonly source: {
512
+ readonly type: "select";
513
+ readonly label: "Where it came from";
514
+ readonly readOnly: true;
515
+ readonly default: "purchase";
516
+ readonly options: readonly [{
517
+ readonly value: "purchase";
518
+ readonly label: "Bought";
519
+ }, {
520
+ readonly value: "staff";
521
+ readonly label: "Given by staff";
522
+ }];
523
+ };
524
+ readonly reason: {
525
+ readonly type: "text";
526
+ readonly label: "Why it was given or voided";
527
+ readonly readOnly: true;
528
+ };
529
+ readonly status: {
530
+ readonly type: "select";
531
+ readonly label: "Status";
532
+ readonly track: "timeline";
533
+ readonly options: readonly [{
534
+ readonly value: "active";
535
+ readonly label: "Active";
536
+ }, {
537
+ readonly value: "void";
538
+ readonly label: "Void";
539
+ }];
540
+ };
541
+ readonly classTypes: {
542
+ readonly readOnly?: boolean | undefined;
543
+ readonly type: "relation";
544
+ readonly label: "Class types";
545
+ readonly to: "programs.classtype";
546
+ readonly many: true;
547
+ readonly description: "Empty: every class type.";
548
+ };
549
+ readonly weekdays: {
550
+ readonly readOnly?: boolean | undefined;
551
+ readonly type: "multiSelect";
552
+ readonly label: "Days";
553
+ readonly options: {
554
+ value: string;
555
+ label: string;
556
+ }[];
557
+ readonly description: "Empty: every day.";
558
+ };
559
+ readonly fromMinute: {
560
+ readonly readOnly?: boolean | undefined;
561
+ readonly type: "number";
562
+ readonly label: "Classes from (minutes after midnight)";
563
+ readonly min: 0;
564
+ readonly max: 1440;
565
+ readonly step: 1;
566
+ readonly description: "A class must start at or after this time of day: 540 is 09:00. Empty: any.";
567
+ };
568
+ readonly untilMinute: {
569
+ readonly readOnly?: boolean | undefined;
570
+ readonly type: "number";
571
+ readonly label: "Classes before (minutes after midnight)";
572
+ readonly min: 0;
573
+ readonly max: 1440;
574
+ readonly step: 1;
575
+ readonly description: "A class must start before this time of day: 960 is 16:00. Empty: any.";
576
+ };
577
+ readonly title: {
578
+ readonly type: "text";
579
+ readonly label: "Pass";
580
+ readonly readOnly: true;
581
+ };
582
+ readonly person: {
583
+ readonly type: "relation";
584
+ readonly label: "Member";
585
+ readonly to: "person";
586
+ readonly readOnly: true;
587
+ };
588
+ readonly passtype: {
589
+ readonly type: "relation";
590
+ readonly label: "Pass type";
591
+ readonly to: "memberships.passtype";
592
+ readonly readOnly: true;
593
+ };
594
+ readonly order: {
595
+ readonly type: "text";
596
+ readonly label: "Order";
597
+ readonly readOnly: true;
598
+ };
599
+ readonly uses: {
600
+ readonly type: "number";
601
+ readonly label: "Classes";
602
+ readonly readOnly: true;
603
+ };
604
+ };
605
+ readonly states: {
606
+ readonly field: "status";
607
+ readonly initial: "active";
608
+ readonly moves: readonly [{
609
+ readonly from: "active";
610
+ readonly to: "void";
611
+ readonly by: readonly ["host"];
612
+ readonly tools: readonly ["voidPass"];
613
+ readonly final: true;
614
+ }];
615
+ };
616
+ readonly customer: {
617
+ readonly field: "person";
618
+ readonly guardians: {};
619
+ readonly read: readonly ["person", "title", "passtype", "uses", "classTypes", "weekdays", "fromMinute", "untilMinute", "from", "until", "source", "status"];
620
+ readonly write: readonly [];
621
+ };
622
+ readonly allowance: {
623
+ readonly holds: {
624
+ readonly person: "person";
625
+ readonly uses: "uses";
626
+ readonly per: "total";
627
+ readonly from: "from";
628
+ readonly until: "until";
629
+ readonly live: readonly ["active"];
630
+ readonly spendsOn: {
631
+ object: string;
632
+ when: ({
633
+ field: string;
634
+ in: string;
635
+ atLeast?: undefined;
636
+ below?: undefined;
637
+ } | {
638
+ field: string;
639
+ atLeast: string;
640
+ in?: undefined;
641
+ below?: undefined;
642
+ } | {
643
+ field: string;
644
+ below: string;
645
+ in?: undefined;
646
+ atLeast?: undefined;
647
+ })[];
648
+ };
649
+ };
650
+ };
651
+ readonly timelineLinks: readonly ["person"];
652
+ readonly indexes: readonly [readonly ["person"], readonly ["passtype"], readonly ["order"], readonly ["status"]];
653
+ };
654
+ };
655
+ readonly views: {
656
+ readonly activeMembers: {
657
+ readonly label: "Active members";
658
+ readonly object: "memberships.membership";
659
+ readonly filter: {
660
+ readonly field: "status";
661
+ readonly op: "eq";
662
+ readonly value: "active";
663
+ };
664
+ readonly sort: {
665
+ readonly field: "from";
666
+ readonly direction: "desc";
667
+ };
668
+ readonly columns: ["person", "title", "uses", "per", "from", "until"];
669
+ };
670
+ readonly onTrial: {
671
+ readonly label: "On trial";
672
+ readonly object: "memberships.membership";
673
+ readonly filter: {
674
+ readonly field: "status";
675
+ readonly op: "eq";
676
+ readonly value: "trialing";
677
+ };
678
+ readonly sort: {
679
+ readonly field: "from";
680
+ readonly direction: "desc";
681
+ };
682
+ readonly columns: ["person", "title", "from", "until"];
683
+ };
684
+ readonly pastDue: {
685
+ readonly label: "Past due";
686
+ readonly object: "memberships.membership";
687
+ readonly filter: {
688
+ readonly field: "status";
689
+ readonly op: "eq";
690
+ readonly value: "past_due";
691
+ };
692
+ readonly sort: {
693
+ readonly field: "until";
694
+ readonly direction: "asc";
695
+ };
696
+ readonly columns: ["person", "title", "payer", "until"];
697
+ };
698
+ readonly paused: {
699
+ readonly label: "Paused";
700
+ readonly object: "memberships.membership";
701
+ readonly filter: {
702
+ readonly field: "status";
703
+ readonly op: "eq";
704
+ readonly value: "paused";
705
+ };
706
+ readonly sort: {
707
+ readonly field: "from";
708
+ readonly direction: "desc";
709
+ };
710
+ readonly columns: ["person", "title", "payer", "from"];
711
+ };
712
+ readonly endingThisMonth: {
713
+ readonly label: "Ending this month";
714
+ readonly object: "memberships.membership";
715
+ readonly filter: {
716
+ readonly and: [{
717
+ readonly field: "until";
718
+ readonly op: "gte";
719
+ readonly value: {
720
+ readonly $relative: "now";
721
+ };
722
+ }, {
723
+ readonly field: "until";
724
+ readonly op: "lt";
725
+ readonly value: {
726
+ readonly $relative: "startOfNextMonth";
727
+ };
728
+ }];
729
+ };
730
+ readonly sort: {
731
+ readonly field: "until";
732
+ readonly direction: "asc";
733
+ };
734
+ readonly columns: ["person", "title", "status", "until"];
735
+ };
736
+ readonly passesExpiringThisWeek: {
737
+ readonly label: "Passes expiring this week";
738
+ readonly object: "memberships.pass";
739
+ readonly filter: {
740
+ readonly and: [{
741
+ readonly field: "status";
742
+ readonly op: "eq";
743
+ readonly value: "active";
744
+ }, {
745
+ readonly field: "until";
746
+ readonly op: "gte";
747
+ readonly value: {
748
+ readonly $relative: "now";
749
+ };
750
+ }, {
751
+ readonly field: "until";
752
+ readonly op: "lt";
753
+ readonly value: {
754
+ readonly $relative: "startOfNextWeek";
755
+ };
756
+ }];
757
+ };
758
+ readonly sort: {
759
+ readonly field: "until";
760
+ readonly direction: "asc";
761
+ };
762
+ readonly columns: ["person", "title", "uses", "until"];
763
+ };
764
+ readonly passesExpiringThisMonth: {
765
+ readonly label: "Passes expiring this month";
766
+ readonly object: "memberships.pass";
767
+ readonly filter: {
768
+ readonly and: [{
769
+ readonly field: "status";
770
+ readonly op: "eq";
771
+ readonly value: "active";
772
+ }, {
773
+ readonly field: "until";
774
+ readonly op: "gte";
775
+ readonly value: {
776
+ readonly $relative: "now";
777
+ };
778
+ }, {
779
+ readonly field: "until";
780
+ readonly op: "lt";
781
+ readonly value: {
782
+ readonly $relative: "startOfNextMonth";
783
+ };
784
+ }];
785
+ };
786
+ readonly sort: {
787
+ readonly field: "until";
788
+ readonly direction: "asc";
789
+ };
790
+ readonly columns: ["person", "title", "uses", "until"];
791
+ };
792
+ };
793
+ readonly recordTabs: {
794
+ readonly personMemberships: {
795
+ readonly label: "Memberships";
796
+ readonly on: "person";
797
+ readonly view: {
798
+ readonly type: "table";
799
+ readonly object: "memberships.membership";
800
+ readonly relation: "person";
801
+ readonly columns: ["title", "status", "uses", "per", "from", "until"];
802
+ readonly sort: {
803
+ readonly field: "from";
804
+ readonly direction: "desc";
805
+ };
806
+ };
807
+ readonly order: 37;
808
+ };
809
+ readonly personPasses: {
810
+ readonly label: "Passes";
811
+ readonly on: "person";
812
+ readonly view: {
813
+ readonly type: "table";
814
+ readonly object: "memberships.pass";
815
+ readonly relation: "person";
816
+ readonly columns: ["title", "status", "uses", "source", "from", "until"];
817
+ readonly sort: {
818
+ readonly field: "from";
819
+ readonly direction: "desc";
820
+ };
821
+ };
822
+ readonly order: 38;
823
+ };
824
+ };
825
+ readonly grantable: readonly ["memberships:passes"];
826
+ readonly tools: {
827
+ readonly plans: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
828
+ plans: import("zod").ZodArray<import("zod").ZodObject<{
829
+ classTypes: import("zod").ZodArray<import("zod").ZodString>;
830
+ weekdays: import("zod").ZodArray<import("zod").ZodString>;
831
+ fromMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
832
+ untilMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
833
+ id: import("zod").ZodString;
834
+ title: import("zod").ZodNullable<import("zod").ZodString>;
835
+ summary: import("zod").ZodNullable<import("zod").ZodString>;
836
+ description: import("zod").ZodNullable<import("zod").ZodString>;
837
+ price: import("zod").ZodNullable<import("zod").ZodNumber>;
838
+ uses: import("zod").ZodNullable<import("zod").ZodNumber>;
839
+ per: import("zod").ZodNullable<import("zod").ZodEnum<{
840
+ week: "week";
841
+ month: "month";
842
+ }>>;
843
+ trialDays: import("zod").ZodNullable<import("zod").ZodNumber>;
844
+ }, import("zod/v4/core").$strip>>;
845
+ currency: import("zod").ZodNullable<import("zod").ZodString>;
846
+ }, import("zod/v4/core").$strip>>;
847
+ readonly passTypes: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
848
+ passTypes: import("zod").ZodArray<import("zod").ZodObject<{
849
+ classTypes: import("zod").ZodArray<import("zod").ZodString>;
850
+ weekdays: import("zod").ZodArray<import("zod").ZodString>;
851
+ fromMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
852
+ untilMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
853
+ id: import("zod").ZodString;
854
+ title: import("zod").ZodNullable<import("zod").ZodString>;
855
+ summary: import("zod").ZodNullable<import("zod").ZodString>;
856
+ description: import("zod").ZodNullable<import("zod").ZodString>;
857
+ price: import("zod").ZodNullable<import("zod").ZodNumber>;
858
+ uses: import("zod").ZodNullable<import("zod").ZodNumber>;
859
+ validDays: import("zod").ZodNullable<import("zod").ZodNumber>;
860
+ onePerPerson: import("zod").ZodBoolean;
861
+ }, import("zod/v4/core").$strip>>;
862
+ currency: import("zod").ZodNullable<import("zod").ZodString>;
863
+ }, import("zod/v4/core").$strip>>;
864
+ readonly buy: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
865
+ passTypeId: import("zod").ZodString;
866
+ email: import("zod").ZodOptional<import("zod").ZodString>;
867
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
868
+ id: import("zod").ZodString;
869
+ state: import("zod").ZodString;
870
+ currency: import("zod").ZodString;
871
+ total: import("zod").ZodNumber;
872
+ token: import("zod").ZodNullable<import("zod").ZodString>;
873
+ }, import("zod/v4/core").$strip>>;
874
+ readonly mine: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
875
+ personId: import("zod").ZodOptional<import("zod").ZodString>;
876
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
877
+ holdings: import("zod").ZodArray<import("zod").ZodObject<{
878
+ classTypes: import("zod").ZodArray<import("zod").ZodString>;
879
+ weekdays: import("zod").ZodArray<import("zod").ZodString>;
880
+ fromMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
881
+ untilMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
882
+ id: import("zod").ZodString;
883
+ kind: import("zod").ZodEnum<{
884
+ membership: "membership";
885
+ pass: "pass";
886
+ }>;
887
+ title: import("zod").ZodNullable<import("zod").ZodString>;
888
+ status: import("zod").ZodString;
889
+ uses: import("zod").ZodNullable<import("zod").ZodNumber>;
890
+ per: import("zod").ZodEnum<{
891
+ week: "week";
892
+ month: "month";
893
+ total: "total";
894
+ }>;
895
+ from: import("zod").ZodNullable<import("zod").ZodString>;
896
+ until: import("zod").ZodNullable<import("zod").ZodString>;
897
+ live: import("zod").ZodBoolean;
898
+ period: import("zod").ZodNullable<import("zod").ZodObject<{
899
+ key: import("zod").ZodString;
900
+ startsAt: import("zod").ZodString;
901
+ endsAt: import("zod").ZodString;
902
+ used: import("zod").ZodNumber;
903
+ left: import("zod").ZodNullable<import("zod").ZodNumber>;
904
+ }, import("zod/v4/core").$strip>>;
905
+ }, import("zod/v4/core").$strip>>;
906
+ }, import("zod/v4/core").$strip>>;
907
+ readonly holdings: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
908
+ personId: import("zod").ZodString;
909
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
910
+ holdings: import("zod").ZodArray<import("zod").ZodObject<{
911
+ classTypes: import("zod").ZodArray<import("zod").ZodString>;
912
+ weekdays: import("zod").ZodArray<import("zod").ZodString>;
913
+ fromMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
914
+ untilMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
915
+ id: import("zod").ZodString;
916
+ kind: import("zod").ZodEnum<{
917
+ membership: "membership";
918
+ pass: "pass";
919
+ }>;
920
+ title: import("zod").ZodNullable<import("zod").ZodString>;
921
+ status: import("zod").ZodString;
922
+ uses: import("zod").ZodNullable<import("zod").ZodNumber>;
923
+ per: import("zod").ZodEnum<{
924
+ week: "week";
925
+ month: "month";
926
+ total: "total";
927
+ }>;
928
+ from: import("zod").ZodNullable<import("zod").ZodString>;
929
+ until: import("zod").ZodNullable<import("zod").ZodString>;
930
+ live: import("zod").ZodBoolean;
931
+ period: import("zod").ZodNullable<import("zod").ZodObject<{
932
+ key: import("zod").ZodString;
933
+ startsAt: import("zod").ZodString;
934
+ endsAt: import("zod").ZodString;
935
+ used: import("zod").ZodNumber;
936
+ left: import("zod").ZodNullable<import("zod").ZodNumber>;
937
+ }, import("zod/v4/core").$strip>>;
938
+ }, import("zod/v4/core").$strip>>;
939
+ }, import("zod/v4/core").$strip>>;
940
+ readonly givePass: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
941
+ personId: import("zod").ZodString;
942
+ passTypeId: import("zod").ZodString;
943
+ reason: import("zod").ZodString;
944
+ uses: import("zod").ZodOptional<import("zod").ZodNumber>;
945
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
946
+ passId: import("zod").ZodString;
947
+ status: import("zod").ZodString;
948
+ source: import("zod").ZodString;
949
+ }, import("zod/v4/core").$strip>>;
950
+ readonly voidPass: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
951
+ passId: import("zod").ZodString;
952
+ reason: import("zod").ZodString;
953
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
954
+ passId: import("zod").ZodString;
955
+ status: import("zod").ZodString;
956
+ source: import("zod").ZodString;
957
+ }, import("zod/v4/core").$strip>>;
958
+ };
959
+ readonly dashboards: {
960
+ memberships: import("@composable-os/sdk").DashboardDeclaration;
961
+ };
962
+ }>;
963
+ export default _default;