@dragonmastery/dragoncore-shared 0.0.27 → 0.0.28
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/index.d.mts +86 -30
- package/dist/index.mjs +26 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
//#region src/validation/app_settings/default_referral_team_zod.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Schema for the default team for unknown referral tags.
|
|
7
|
+
* Used by admin UI and API server for get/update.
|
|
8
|
+
*/
|
|
9
|
+
declare const DefaultReferralTeamFormSchema: z.ZodObject<{
|
|
10
|
+
default_team_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
default_team_id: string | null;
|
|
13
|
+
}, {
|
|
14
|
+
default_team_id: string | null;
|
|
15
|
+
}>;
|
|
16
|
+
type DefaultReferralTeamFormDto = z.infer<typeof DefaultReferralTeamFormSchema>;
|
|
17
|
+
//#endregion
|
|
3
18
|
//#region src/validation/attachment/attachment_filters_zod.d.ts
|
|
4
19
|
declare const AttachmentFiltersSchema: z.ZodObject<{
|
|
5
20
|
record_id: z.ZodString;
|
|
@@ -2081,11 +2096,11 @@ declare const loginSchema: z.ZodObject<{
|
|
|
2081
2096
|
email: z.ZodString;
|
|
2082
2097
|
password: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2083
2098
|
}, "strip", z.ZodTypeAny, {
|
|
2084
|
-
email: string;
|
|
2085
2099
|
password: string;
|
|
2086
|
-
}, {
|
|
2087
2100
|
email: string;
|
|
2101
|
+
}, {
|
|
2088
2102
|
password: string;
|
|
2103
|
+
email: string;
|
|
2089
2104
|
}>;
|
|
2090
2105
|
type LoginInputDto = z.infer<typeof loginSchema>;
|
|
2091
2106
|
//#endregion
|
|
@@ -2122,9 +2137,9 @@ declare const NoteReadSchema: z.ZodObject<{
|
|
|
2122
2137
|
archived_by?: string | null | undefined;
|
|
2123
2138
|
deleted_at?: string | null | undefined;
|
|
2124
2139
|
deleted_by?: string | null | undefined;
|
|
2125
|
-
tag?: string | null | undefined;
|
|
2126
2140
|
title?: string | null | undefined;
|
|
2127
2141
|
body?: string | null | undefined;
|
|
2142
|
+
tag?: string | null | undefined;
|
|
2128
2143
|
original_id?: number | null | undefined;
|
|
2129
2144
|
created_by_display_name?: string | null | undefined;
|
|
2130
2145
|
updated_by_display_name?: string | null | undefined;
|
|
@@ -2141,9 +2156,9 @@ declare const NoteReadSchema: z.ZodObject<{
|
|
|
2141
2156
|
archived_by?: string | null | undefined;
|
|
2142
2157
|
deleted_at?: string | null | undefined;
|
|
2143
2158
|
deleted_by?: string | null | undefined;
|
|
2144
|
-
tag?: string | null | undefined;
|
|
2145
2159
|
title?: string | null | undefined;
|
|
2146
2160
|
body?: string | null | undefined;
|
|
2161
|
+
tag?: string | null | undefined;
|
|
2147
2162
|
original_id?: number | null | undefined;
|
|
2148
2163
|
created_by_display_name?: string | null | undefined;
|
|
2149
2164
|
updated_by_display_name?: string | null | undefined;
|
|
@@ -2163,18 +2178,18 @@ declare const NoteCreateSchema: z.ZodObject<{
|
|
|
2163
2178
|
record_id: string;
|
|
2164
2179
|
record_type: "app_setting" | "attachment_folder" | "attachment" | "user" | "user_session" | "user_profile" | "refresh_token" | "refresh_token_family" | "user_subscription" | "password_reset" | "record_version" | "support_ticket" | "support_ticket_activity" | "credit_transaction" | "team_member" | "client_contact" | "client_location" | "client_profile" | "business_profile" | "tracker" | "tracker_activity" | "team" | "quote" | "note" | "followup" | "saved_filter" | "user_pinned_preset" | "record_subscriber" | "support_staff" | "user_consent";
|
|
2165
2180
|
is_internal: boolean;
|
|
2166
|
-
tag?: string | null | undefined;
|
|
2167
2181
|
title?: string | null | undefined;
|
|
2168
2182
|
body?: string | null | undefined;
|
|
2183
|
+
tag?: string | null | undefined;
|
|
2169
2184
|
original_id?: number | null | undefined;
|
|
2170
2185
|
}, {
|
|
2171
2186
|
record_id: string;
|
|
2172
2187
|
record_type: "app_setting" | "attachment_folder" | "attachment" | "user" | "user_session" | "user_profile" | "refresh_token" | "refresh_token_family" | "user_subscription" | "password_reset" | "record_version" | "support_ticket" | "support_ticket_activity" | "credit_transaction" | "team_member" | "client_contact" | "client_location" | "client_profile" | "business_profile" | "tracker" | "tracker_activity" | "team" | "quote" | "note" | "followup" | "saved_filter" | "user_pinned_preset" | "record_subscriber" | "support_staff" | "user_consent";
|
|
2173
|
-
tag?: string | null | undefined;
|
|
2174
2188
|
title?: string | null | undefined;
|
|
2175
2189
|
body?: string | null | undefined;
|
|
2176
|
-
|
|
2190
|
+
tag?: string | null | undefined;
|
|
2177
2191
|
is_internal?: boolean | undefined;
|
|
2192
|
+
original_id?: number | null | undefined;
|
|
2178
2193
|
}>;
|
|
2179
2194
|
type NoteCreateDto = z.infer<typeof NoteCreateSchema>;
|
|
2180
2195
|
//#endregion
|
|
@@ -2192,20 +2207,20 @@ declare const NoteUpdateSchema: z.ZodObject<{
|
|
|
2192
2207
|
id: string;
|
|
2193
2208
|
record_id?: string | undefined;
|
|
2194
2209
|
record_type?: "app_setting" | "attachment_folder" | "attachment" | "user" | "user_session" | "user_profile" | "refresh_token" | "refresh_token_family" | "user_subscription" | "password_reset" | "record_version" | "support_ticket" | "support_ticket_activity" | "credit_transaction" | "team_member" | "client_contact" | "client_location" | "client_profile" | "business_profile" | "tracker" | "tracker_activity" | "team" | "quote" | "note" | "followup" | "saved_filter" | "user_pinned_preset" | "record_subscriber" | "support_staff" | "user_consent" | undefined;
|
|
2195
|
-
tag?: string | null | undefined;
|
|
2196
2210
|
title?: string | null | undefined;
|
|
2197
2211
|
body?: string | null | undefined;
|
|
2198
|
-
|
|
2212
|
+
tag?: string | null | undefined;
|
|
2199
2213
|
is_internal?: boolean | undefined;
|
|
2214
|
+
original_id?: number | null | undefined;
|
|
2200
2215
|
}, {
|
|
2201
2216
|
id: string;
|
|
2202
2217
|
record_id?: string | undefined;
|
|
2203
2218
|
record_type?: "app_setting" | "attachment_folder" | "attachment" | "user" | "user_session" | "user_profile" | "refresh_token" | "refresh_token_family" | "user_subscription" | "password_reset" | "record_version" | "support_ticket" | "support_ticket_activity" | "credit_transaction" | "team_member" | "client_contact" | "client_location" | "client_profile" | "business_profile" | "tracker" | "tracker_activity" | "team" | "quote" | "note" | "followup" | "saved_filter" | "user_pinned_preset" | "record_subscriber" | "support_staff" | "user_consent" | undefined;
|
|
2204
|
-
tag?: string | null | undefined;
|
|
2205
2219
|
title?: string | null | undefined;
|
|
2206
2220
|
body?: string | null | undefined;
|
|
2207
|
-
|
|
2221
|
+
tag?: string | null | undefined;
|
|
2208
2222
|
is_internal?: boolean | undefined;
|
|
2223
|
+
original_id?: number | null | undefined;
|
|
2209
2224
|
}>;
|
|
2210
2225
|
type NoteUpdateDto = z.infer<typeof NoteUpdateSchema>;
|
|
2211
2226
|
//#endregion
|
|
@@ -2620,19 +2635,19 @@ declare const NoteFiltersSchema: z.ZodObject<{
|
|
|
2620
2635
|
values?: any[] | undefined;
|
|
2621
2636
|
caseSensitive?: boolean | undefined;
|
|
2622
2637
|
} | undefined;
|
|
2623
|
-
|
|
2638
|
+
title?: {
|
|
2624
2639
|
operator: "eq" | "ne" | "contains" | "sw" | "ew" | "in" | "notIn";
|
|
2625
2640
|
value?: string | undefined;
|
|
2626
2641
|
values?: string[] | undefined;
|
|
2627
2642
|
caseSensitive?: boolean | undefined;
|
|
2628
2643
|
} | undefined;
|
|
2629
|
-
|
|
2644
|
+
body?: {
|
|
2630
2645
|
operator: "eq" | "ne" | "contains" | "sw" | "ew" | "in" | "notIn";
|
|
2631
2646
|
value?: string | undefined;
|
|
2632
2647
|
values?: string[] | undefined;
|
|
2633
2648
|
caseSensitive?: boolean | undefined;
|
|
2634
2649
|
} | undefined;
|
|
2635
|
-
|
|
2650
|
+
tag?: {
|
|
2636
2651
|
operator: "eq" | "ne" | "contains" | "sw" | "ew" | "in" | "notIn";
|
|
2637
2652
|
value?: string | undefined;
|
|
2638
2653
|
values?: string[] | undefined;
|
|
@@ -2698,19 +2713,19 @@ declare const NoteFiltersSchema: z.ZodObject<{
|
|
|
2698
2713
|
values?: any[] | undefined;
|
|
2699
2714
|
caseSensitive?: boolean | undefined;
|
|
2700
2715
|
} | undefined;
|
|
2701
|
-
|
|
2716
|
+
title?: {
|
|
2702
2717
|
operator: "eq" | "ne" | "contains" | "sw" | "ew" | "in" | "notIn";
|
|
2703
2718
|
value?: string | undefined;
|
|
2704
2719
|
values?: string[] | undefined;
|
|
2705
2720
|
caseSensitive?: boolean | undefined;
|
|
2706
2721
|
} | undefined;
|
|
2707
|
-
|
|
2722
|
+
body?: {
|
|
2708
2723
|
operator: "eq" | "ne" | "contains" | "sw" | "ew" | "in" | "notIn";
|
|
2709
2724
|
value?: string | undefined;
|
|
2710
2725
|
values?: string[] | undefined;
|
|
2711
2726
|
caseSensitive?: boolean | undefined;
|
|
2712
2727
|
} | undefined;
|
|
2713
|
-
|
|
2728
|
+
tag?: {
|
|
2714
2729
|
operator: "eq" | "ne" | "contains" | "sw" | "ew" | "in" | "notIn";
|
|
2715
2730
|
value?: string | undefined;
|
|
2716
2731
|
values?: string[] | undefined;
|
|
@@ -4649,10 +4664,10 @@ declare const CustomerSupportTicketReadSchema: z.ZodObject<{
|
|
|
4649
4664
|
created_by_display_name?: string | null | undefined;
|
|
4650
4665
|
display_id?: string | null | undefined;
|
|
4651
4666
|
credit_value?: string | null | undefined;
|
|
4667
|
+
display_id_prefix?: string | null | undefined;
|
|
4652
4668
|
start_at?: string | null | undefined;
|
|
4653
4669
|
target_at?: string | null | undefined;
|
|
4654
4670
|
completed_at?: string | null | undefined;
|
|
4655
|
-
display_id_prefix?: string | null | undefined;
|
|
4656
4671
|
locked_approval_at?: string | null | undefined;
|
|
4657
4672
|
my_subscription?: {
|
|
4658
4673
|
created_at: string;
|
|
@@ -4681,10 +4696,10 @@ declare const CustomerSupportTicketReadSchema: z.ZodObject<{
|
|
|
4681
4696
|
created_by_display_name?: string | null | undefined;
|
|
4682
4697
|
display_id?: string | null | undefined;
|
|
4683
4698
|
credit_value?: string | null | undefined;
|
|
4699
|
+
display_id_prefix?: string | null | undefined;
|
|
4684
4700
|
start_at?: string | null | undefined;
|
|
4685
4701
|
target_at?: string | null | undefined;
|
|
4686
4702
|
completed_at?: string | null | undefined;
|
|
4687
|
-
display_id_prefix?: string | null | undefined;
|
|
4688
4703
|
locked_approval_at?: string | null | undefined;
|
|
4689
4704
|
my_subscription?: {
|
|
4690
4705
|
created_at: string;
|
|
@@ -4771,10 +4786,10 @@ declare const CustomerSupportTicketPageSchema: z.ZodObject<{
|
|
|
4771
4786
|
created_by_display_name?: string | null | undefined;
|
|
4772
4787
|
display_id?: string | null | undefined;
|
|
4773
4788
|
credit_value?: string | null | undefined;
|
|
4789
|
+
display_id_prefix?: string | null | undefined;
|
|
4774
4790
|
start_at?: string | null | undefined;
|
|
4775
4791
|
target_at?: string | null | undefined;
|
|
4776
4792
|
completed_at?: string | null | undefined;
|
|
4777
|
-
display_id_prefix?: string | null | undefined;
|
|
4778
4793
|
locked_approval_at?: string | null | undefined;
|
|
4779
4794
|
my_subscription?: {
|
|
4780
4795
|
created_at: string;
|
|
@@ -4803,10 +4818,10 @@ declare const CustomerSupportTicketPageSchema: z.ZodObject<{
|
|
|
4803
4818
|
created_by_display_name?: string | null | undefined;
|
|
4804
4819
|
display_id?: string | null | undefined;
|
|
4805
4820
|
credit_value?: string | null | undefined;
|
|
4821
|
+
display_id_prefix?: string | null | undefined;
|
|
4806
4822
|
start_at?: string | null | undefined;
|
|
4807
4823
|
target_at?: string | null | undefined;
|
|
4808
4824
|
completed_at?: string | null | undefined;
|
|
4809
|
-
display_id_prefix?: string | null | undefined;
|
|
4810
4825
|
locked_approval_at?: string | null | undefined;
|
|
4811
4826
|
my_subscription?: {
|
|
4812
4827
|
created_at: string;
|
|
@@ -4859,10 +4874,10 @@ declare const CustomerSupportTicketPageSchema: z.ZodObject<{
|
|
|
4859
4874
|
created_by_display_name?: string | null | undefined;
|
|
4860
4875
|
display_id?: string | null | undefined;
|
|
4861
4876
|
credit_value?: string | null | undefined;
|
|
4877
|
+
display_id_prefix?: string | null | undefined;
|
|
4862
4878
|
start_at?: string | null | undefined;
|
|
4863
4879
|
target_at?: string | null | undefined;
|
|
4864
4880
|
completed_at?: string | null | undefined;
|
|
4865
|
-
display_id_prefix?: string | null | undefined;
|
|
4866
4881
|
locked_approval_at?: string | null | undefined;
|
|
4867
4882
|
my_subscription?: {
|
|
4868
4883
|
created_at: string;
|
|
@@ -4901,10 +4916,10 @@ declare const CustomerSupportTicketPageSchema: z.ZodObject<{
|
|
|
4901
4916
|
created_by_display_name?: string | null | undefined;
|
|
4902
4917
|
display_id?: string | null | undefined;
|
|
4903
4918
|
credit_value?: string | null | undefined;
|
|
4919
|
+
display_id_prefix?: string | null | undefined;
|
|
4904
4920
|
start_at?: string | null | undefined;
|
|
4905
4921
|
target_at?: string | null | undefined;
|
|
4906
4922
|
completed_at?: string | null | undefined;
|
|
4907
|
-
display_id_prefix?: string | null | undefined;
|
|
4908
4923
|
locked_approval_at?: string | null | undefined;
|
|
4909
4924
|
my_subscription?: {
|
|
4910
4925
|
created_at: string;
|
|
@@ -5956,10 +5971,10 @@ declare const StaffSupportTicketReadSchema: z.ZodObject<{
|
|
|
5956
5971
|
display_id?: string | null | undefined;
|
|
5957
5972
|
credit_value?: string | null | undefined;
|
|
5958
5973
|
delivered_value?: string | null | undefined;
|
|
5974
|
+
display_id_prefix?: string | null | undefined;
|
|
5959
5975
|
start_at?: string | null | undefined;
|
|
5960
5976
|
target_at?: string | null | undefined;
|
|
5961
5977
|
completed_at?: string | null | undefined;
|
|
5962
|
-
display_id_prefix?: string | null | undefined;
|
|
5963
5978
|
locked_approval_at?: string | null | undefined;
|
|
5964
5979
|
assigned_to?: string | null | undefined;
|
|
5965
5980
|
assigned_to_display_name?: string | null | undefined;
|
|
@@ -5985,10 +6000,10 @@ declare const StaffSupportTicketReadSchema: z.ZodObject<{
|
|
|
5985
6000
|
display_id?: string | null | undefined;
|
|
5986
6001
|
credit_value?: string | null | undefined;
|
|
5987
6002
|
delivered_value?: string | null | undefined;
|
|
6003
|
+
display_id_prefix?: string | null | undefined;
|
|
5988
6004
|
start_at?: string | null | undefined;
|
|
5989
6005
|
target_at?: string | null | undefined;
|
|
5990
6006
|
completed_at?: string | null | undefined;
|
|
5991
|
-
display_id_prefix?: string | null | undefined;
|
|
5992
6007
|
locked_approval_at?: string | null | undefined;
|
|
5993
6008
|
assigned_to?: string | null | undefined;
|
|
5994
6009
|
assigned_to_display_name?: string | null | undefined;
|
|
@@ -6049,10 +6064,10 @@ declare const StaffSupportTicketPageSchema: z.ZodObject<{
|
|
|
6049
6064
|
display_id?: string | null | undefined;
|
|
6050
6065
|
credit_value?: string | null | undefined;
|
|
6051
6066
|
delivered_value?: string | null | undefined;
|
|
6067
|
+
display_id_prefix?: string | null | undefined;
|
|
6052
6068
|
start_at?: string | null | undefined;
|
|
6053
6069
|
target_at?: string | null | undefined;
|
|
6054
6070
|
completed_at?: string | null | undefined;
|
|
6055
|
-
display_id_prefix?: string | null | undefined;
|
|
6056
6071
|
locked_approval_at?: string | null | undefined;
|
|
6057
6072
|
assigned_to?: string | null | undefined;
|
|
6058
6073
|
assigned_to_display_name?: string | null | undefined;
|
|
@@ -6078,10 +6093,10 @@ declare const StaffSupportTicketPageSchema: z.ZodObject<{
|
|
|
6078
6093
|
display_id?: string | null | undefined;
|
|
6079
6094
|
credit_value?: string | null | undefined;
|
|
6080
6095
|
delivered_value?: string | null | undefined;
|
|
6096
|
+
display_id_prefix?: string | null | undefined;
|
|
6081
6097
|
start_at?: string | null | undefined;
|
|
6082
6098
|
target_at?: string | null | undefined;
|
|
6083
6099
|
completed_at?: string | null | undefined;
|
|
6084
|
-
display_id_prefix?: string | null | undefined;
|
|
6085
6100
|
locked_approval_at?: string | null | undefined;
|
|
6086
6101
|
assigned_to?: string | null | undefined;
|
|
6087
6102
|
assigned_to_display_name?: string | null | undefined;
|
|
@@ -6131,10 +6146,10 @@ declare const StaffSupportTicketPageSchema: z.ZodObject<{
|
|
|
6131
6146
|
display_id?: string | null | undefined;
|
|
6132
6147
|
credit_value?: string | null | undefined;
|
|
6133
6148
|
delivered_value?: string | null | undefined;
|
|
6149
|
+
display_id_prefix?: string | null | undefined;
|
|
6134
6150
|
start_at?: string | null | undefined;
|
|
6135
6151
|
target_at?: string | null | undefined;
|
|
6136
6152
|
completed_at?: string | null | undefined;
|
|
6137
|
-
display_id_prefix?: string | null | undefined;
|
|
6138
6153
|
locked_approval_at?: string | null | undefined;
|
|
6139
6154
|
assigned_to?: string | null | undefined;
|
|
6140
6155
|
assigned_to_display_name?: string | null | undefined;
|
|
@@ -6170,10 +6185,10 @@ declare const StaffSupportTicketPageSchema: z.ZodObject<{
|
|
|
6170
6185
|
display_id?: string | null | undefined;
|
|
6171
6186
|
credit_value?: string | null | undefined;
|
|
6172
6187
|
delivered_value?: string | null | undefined;
|
|
6188
|
+
display_id_prefix?: string | null | undefined;
|
|
6173
6189
|
start_at?: string | null | undefined;
|
|
6174
6190
|
target_at?: string | null | undefined;
|
|
6175
6191
|
completed_at?: string | null | undefined;
|
|
6176
|
-
display_id_prefix?: string | null | undefined;
|
|
6177
6192
|
locked_approval_at?: string | null | undefined;
|
|
6178
6193
|
assigned_to?: string | null | undefined;
|
|
6179
6194
|
assigned_to_display_name?: string | null | undefined;
|
|
@@ -8463,6 +8478,7 @@ declare const TeamPageSchema: z.ZodObject<{
|
|
|
8463
8478
|
id: z.ZodString;
|
|
8464
8479
|
original_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8465
8480
|
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8481
|
+
referral_tag: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8466
8482
|
created_at: z.ZodString;
|
|
8467
8483
|
updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8468
8484
|
created_by: z.ZodString;
|
|
@@ -8500,6 +8516,7 @@ declare const TeamPageSchema: z.ZodObject<{
|
|
|
8500
8516
|
logo?: string | null | undefined;
|
|
8501
8517
|
email_sent_from?: string | null | undefined;
|
|
8502
8518
|
email_reply_to?: string | null | undefined;
|
|
8519
|
+
referral_tag?: string | null | undefined;
|
|
8503
8520
|
}, {
|
|
8504
8521
|
created_at: string;
|
|
8505
8522
|
created_by: string;
|
|
@@ -8529,6 +8546,7 @@ declare const TeamPageSchema: z.ZodObject<{
|
|
|
8529
8546
|
logo?: string | null | undefined;
|
|
8530
8547
|
email_sent_from?: string | null | undefined;
|
|
8531
8548
|
email_reply_to?: string | null | undefined;
|
|
8549
|
+
referral_tag?: string | null | undefined;
|
|
8532
8550
|
}>, "many">;
|
|
8533
8551
|
pageInfo: z.ZodObject<{
|
|
8534
8552
|
hasNextPage: z.ZodBoolean;
|
|
@@ -8582,6 +8600,7 @@ declare const TeamPageSchema: z.ZodObject<{
|
|
|
8582
8600
|
logo?: string | null | undefined;
|
|
8583
8601
|
email_sent_from?: string | null | undefined;
|
|
8584
8602
|
email_reply_to?: string | null | undefined;
|
|
8603
|
+
referral_tag?: string | null | undefined;
|
|
8585
8604
|
}[];
|
|
8586
8605
|
pageInfo: {
|
|
8587
8606
|
hasNextPage: boolean;
|
|
@@ -8621,6 +8640,7 @@ declare const TeamPageSchema: z.ZodObject<{
|
|
|
8621
8640
|
logo?: string | null | undefined;
|
|
8622
8641
|
email_sent_from?: string | null | undefined;
|
|
8623
8642
|
email_reply_to?: string | null | undefined;
|
|
8643
|
+
referral_tag?: string | null | undefined;
|
|
8624
8644
|
}[];
|
|
8625
8645
|
pageInfo: {
|
|
8626
8646
|
hasNextPage: boolean;
|
|
@@ -8656,6 +8676,7 @@ declare const TeamReadSchema: z.ZodObject<{
|
|
|
8656
8676
|
id: z.ZodString;
|
|
8657
8677
|
original_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8658
8678
|
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8679
|
+
referral_tag: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8659
8680
|
created_at: z.ZodString;
|
|
8660
8681
|
updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8661
8682
|
created_by: z.ZodString;
|
|
@@ -8693,6 +8714,7 @@ declare const TeamReadSchema: z.ZodObject<{
|
|
|
8693
8714
|
logo?: string | null | undefined;
|
|
8694
8715
|
email_sent_from?: string | null | undefined;
|
|
8695
8716
|
email_reply_to?: string | null | undefined;
|
|
8717
|
+
referral_tag?: string | null | undefined;
|
|
8696
8718
|
}, {
|
|
8697
8719
|
created_at: string;
|
|
8698
8720
|
created_by: string;
|
|
@@ -8722,9 +8744,27 @@ declare const TeamReadSchema: z.ZodObject<{
|
|
|
8722
8744
|
logo?: string | null | undefined;
|
|
8723
8745
|
email_sent_from?: string | null | undefined;
|
|
8724
8746
|
email_reply_to?: string | null | undefined;
|
|
8747
|
+
referral_tag?: string | null | undefined;
|
|
8725
8748
|
}>;
|
|
8726
8749
|
type TeamReadDto = z.infer<typeof TeamReadSchema>;
|
|
8727
8750
|
//#endregion
|
|
8751
|
+
//#region src/validation/team/team_set_referral_tag_zod.d.ts
|
|
8752
|
+
/**
|
|
8753
|
+
* Schema for super admin to set or clear referral tag on a team.
|
|
8754
|
+
* Pass null, empty string, or omit to clear the tag.
|
|
8755
|
+
*/
|
|
8756
|
+
declare const SetReferralTagSchema: z.ZodObject<{
|
|
8757
|
+
team_id: z.ZodString;
|
|
8758
|
+
referral_tag: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">, z.ZodNull]>>>, string | null, string | null | undefined>;
|
|
8759
|
+
}, "strip", z.ZodTypeAny, {
|
|
8760
|
+
referral_tag: string | null;
|
|
8761
|
+
team_id: string;
|
|
8762
|
+
}, {
|
|
8763
|
+
team_id: string;
|
|
8764
|
+
referral_tag?: string | null | undefined;
|
|
8765
|
+
}>;
|
|
8766
|
+
type SetReferralTagDto = z.infer<typeof SetReferralTagSchema>;
|
|
8767
|
+
//#endregion
|
|
8728
8768
|
//#region src/validation/team/team_user_teams_zod.d.ts
|
|
8729
8769
|
/**
|
|
8730
8770
|
* Schema for a team option in user teams list
|
|
@@ -8752,6 +8792,7 @@ declare const TeamOptionSchema: z.ZodObject<{
|
|
|
8752
8792
|
id: z.ZodString;
|
|
8753
8793
|
original_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8754
8794
|
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8795
|
+
referral_tag: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8755
8796
|
created_at: z.ZodString;
|
|
8756
8797
|
updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8757
8798
|
created_by: z.ZodString;
|
|
@@ -8789,6 +8830,7 @@ declare const TeamOptionSchema: z.ZodObject<{
|
|
|
8789
8830
|
logo?: string | null | undefined;
|
|
8790
8831
|
email_sent_from?: string | null | undefined;
|
|
8791
8832
|
email_reply_to?: string | null | undefined;
|
|
8833
|
+
referral_tag?: string | null | undefined;
|
|
8792
8834
|
}, {
|
|
8793
8835
|
created_at: string;
|
|
8794
8836
|
created_by: string;
|
|
@@ -8818,6 +8860,7 @@ declare const TeamOptionSchema: z.ZodObject<{
|
|
|
8818
8860
|
logo?: string | null | undefined;
|
|
8819
8861
|
email_sent_from?: string | null | undefined;
|
|
8820
8862
|
email_reply_to?: string | null | undefined;
|
|
8863
|
+
referral_tag?: string | null | undefined;
|
|
8821
8864
|
}>;
|
|
8822
8865
|
type TeamOptionDto = z.infer<typeof TeamOptionSchema>;
|
|
8823
8866
|
/**
|
|
@@ -8846,6 +8889,7 @@ declare const UserTeamsSchema: z.ZodObject<{
|
|
|
8846
8889
|
id: z.ZodString;
|
|
8847
8890
|
original_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8848
8891
|
path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8892
|
+
referral_tag: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8849
8893
|
created_at: z.ZodString;
|
|
8850
8894
|
updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8851
8895
|
created_by: z.ZodString;
|
|
@@ -8883,6 +8927,7 @@ declare const UserTeamsSchema: z.ZodObject<{
|
|
|
8883
8927
|
logo?: string | null | undefined;
|
|
8884
8928
|
email_sent_from?: string | null | undefined;
|
|
8885
8929
|
email_reply_to?: string | null | undefined;
|
|
8930
|
+
referral_tag?: string | null | undefined;
|
|
8886
8931
|
}, {
|
|
8887
8932
|
created_at: string;
|
|
8888
8933
|
created_by: string;
|
|
@@ -8912,6 +8957,7 @@ declare const UserTeamsSchema: z.ZodObject<{
|
|
|
8912
8957
|
logo?: string | null | undefined;
|
|
8913
8958
|
email_sent_from?: string | null | undefined;
|
|
8914
8959
|
email_reply_to?: string | null | undefined;
|
|
8960
|
+
referral_tag?: string | null | undefined;
|
|
8915
8961
|
}>, "many">;
|
|
8916
8962
|
}, "strip", z.ZodTypeAny, {
|
|
8917
8963
|
items: {
|
|
@@ -8943,6 +8989,7 @@ declare const UserTeamsSchema: z.ZodObject<{
|
|
|
8943
8989
|
logo?: string | null | undefined;
|
|
8944
8990
|
email_sent_from?: string | null | undefined;
|
|
8945
8991
|
email_reply_to?: string | null | undefined;
|
|
8992
|
+
referral_tag?: string | null | undefined;
|
|
8946
8993
|
}[];
|
|
8947
8994
|
}, {
|
|
8948
8995
|
items: {
|
|
@@ -8974,6 +9021,7 @@ declare const UserTeamsSchema: z.ZodObject<{
|
|
|
8974
9021
|
logo?: string | null | undefined;
|
|
8975
9022
|
email_sent_from?: string | null | undefined;
|
|
8976
9023
|
email_reply_to?: string | null | undefined;
|
|
9024
|
+
referral_tag?: string | null | undefined;
|
|
8977
9025
|
}[];
|
|
8978
9026
|
}>;
|
|
8979
9027
|
type UserTeamsDto = z.infer<typeof UserTeamsSchema>;
|
|
@@ -10408,6 +10456,10 @@ interface AppSettingsApi {
|
|
|
10408
10456
|
getSignupRequirements(): Promise<SignupRequirementsDto>;
|
|
10409
10457
|
/** Update signup consent requirements (admin only). */
|
|
10410
10458
|
updateSignupRequirements(config: SignupRequirementsDto): Promise<void>;
|
|
10459
|
+
/** Get default team ID for unknown referral tags (super admin only). */
|
|
10460
|
+
getDefaultTeamIdForUnknownReferrals(): Promise<DefaultReferralTeamFormDto>;
|
|
10461
|
+
/** Update default team ID for unknown referral tags (super admin only). */
|
|
10462
|
+
updateDefaultTeamIdForUnknownReferrals(input: DefaultReferralTeamFormDto): Promise<void>;
|
|
10411
10463
|
}
|
|
10412
10464
|
//#endregion
|
|
10413
10465
|
//#region src/api/attachment-api.d.ts
|
|
@@ -10820,6 +10872,10 @@ interface TeamApi {
|
|
|
10820
10872
|
* Get teams for the current authenticated user
|
|
10821
10873
|
*/
|
|
10822
10874
|
getUserTeams(): Promise<UserTeamsDto>;
|
|
10875
|
+
/**
|
|
10876
|
+
* Set or clear referral tag on a team (super admin only)
|
|
10877
|
+
*/
|
|
10878
|
+
setReferralTag(input: SetReferralTagDto): Promise<TeamReadDto>;
|
|
10823
10879
|
}
|
|
10824
10880
|
//#endregion
|
|
10825
10881
|
//#region src/api/team-member-api.d.ts
|
|
@@ -11131,5 +11187,5 @@ declare const formatCurrency: (value: number) => string;
|
|
|
11131
11187
|
*/
|
|
11132
11188
|
declare const formatDollar: (amount: string | null | undefined) => string;
|
|
11133
11189
|
//#endregion
|
|
11134
|
-
export { AddCreditsDto, AddCreditsSchema, AnyFilterOperator, AppSettingsApi, ApproveSupportTicketDto, ApproveSupportTicketSchema, ArchiveSupportTicketDto, ArchiveSupportTicketSchema, AttachmentApi, AttachmentCreateDto, AttachmentCreateSchema, type AttachmentFiltersDto as AttachmentFilters, AttachmentFiltersDto, AttachmentFiltersSchema, AttachmentFiltersSchema as attachmentFilters_zod, AttachmentFolderCreateDto, AttachmentFolderCreateSchema, AttachmentFolderReadDto, AttachmentFolderReadSchema, AttachmentFolderUpdateDto, AttachmentFolderUpdateSchema, type AttachmentPageDto, AttachmentPageSchema, AttachmentPageSchema as attachmentPage_zod, AttachmentReadDto, type AttachmentReadDto as ReadAttachmentDto, AttachmentReadSchema, AttachmentReadSchema as attachment_zod, AttachmentUpdateDto, AttachmentUpdateSchema, BaseFilter, BaseFilterSchema, BooleanFilter, BooleanFilterSchema, CancelInternalTaskDto, CancelInternalTaskSchema, ChangePasswordInputDto, CompleteSupportTicketDto, CompleteSupportTicketSchema, CreateUserDto, CreateUserDtoOutput, CreditBalanceDto, CreditBalanceSchema, CreditTransactionFiltersDto, CreditTransactionFiltersSchema, CreditTransactionPageDto, CreditTransactionPageSchema, CreditTransactionReadDto, CreditTransactionReadSchema, CreditTransactionType, CreditTransactionTypeEnum, CustomerApi, CustomerSupportTicketCreateDto, CustomerSupportTicketCreateSchema, CustomerSupportTicketFiltersDto, CustomerSupportTicketFiltersSchema, CustomerSupportTicketPageDto, CustomerSupportTicketPageSchema, CustomerSupportTicketReadDto, CustomerSupportTicketReadSchema, CustomerSupportTicketUpdateDto, CustomerSupportTicketUpdateSchema, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_ERROR_MESSAGE, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_REGEX, DECIMAL_AMOUNT_ERROR_MESSAGE, DECIMAL_AMOUNT_REGEX, DEFAULT_USER_TYPE, DataType, DataTypeSchema, DateFilter, DateFilterSchema, DateOperator, DateOperatorSchema, DeleteSupportTicketDto, DeleteSupportTicketSchema, DragoncoreApi, EmailVerificationApi, EqualityArrayOperator, EqualityArrayOperatorSchema, EqualityOperator, EqualityOperatorSchema, FieldDefinitionMetadata, FieldRegistryMetadata, FilterConfig, FilterConfigSchema, ForgotPasswordDto, LoginInputDto, type LoginResponse, MAX_PRESETS_PER_CONTEXT, MfaApi, NoteApi, NoteCreateDto, NoteCreateSchema, NoteFiltersDto, NoteFiltersSchema, NoteFiltersSortDirectionEnum, NoteReadDto, NoteReadSchema, NoteUpdateDto, NoteUpdateSchema, NumberFilter, NumberFilterSchema, NumberOperator, NumberOperatorSchema, OPERATORS, PageInfoDto, PageInfoSchema, PagedResult, PaginationFiltersDto, PaginationFiltersSchema, PasswordResetApi, ReactivateInternalTaskDto, ReactivateInternalTaskSchema, RecordConsentsInputDto, RecordConst, RecordSubscriberCreateDto, RecordSubscriberCreateSchema, RecordSubscriberReadDto, RecordSubscriberReadSchema, RecordSubscriberUpdateDto, RecordSubscriberUpdateSchema, RecordType, RecordTypeValues, RecordVersionApi, RecordVersionFiltersBreadcrumbDto, RecordVersionFiltersDto, RecordVersionPageBreadcrumbDto, RecordVersionPageDto, RecordVersionPageInfoDto, RecordVersionReadDto, RejectSupportTicketDto, RejectSupportTicketSchema, ResendVerificationEmailResult, ResetMonthlyBalanceDto, ResetMonthlyBalanceSchema, ResetPasswordDto, ResetPasswordInputDto, RevertSupportTicketDto, RevertSupportTicketSchema, SUPPORT_TICKET_APPROVAL_FILTER_OPTIONS, SUPPORT_TICKET_DEV_LIFECYCLE_FILTER_OPTIONS, SUPPORT_TICKET_NUMBER_TO_PRIORITY, SUPPORT_TICKET_PRIORITY_FILTER_OPTIONS, SUPPORT_TICKET_PRIORITY_NUMBER_TO_LABEL, SUPPORT_TICKET_PRIORITY_TO_NUMBER, SUPPORT_TICKET_STATUS_FILTER_OPTIONS, SUPPORT_TICKET_TYPE_FILTER_OPTIONS, SavedFilterApi, SavedFilterCreateDto, SavedFilterCreateSchema, SavedFilterReadDto, SavedFilterReadSchema, SavedFilterUpdateDto, SavedFilterUpdateSchema, SelectOption, SetMonthlyAllocationDto, SetMonthlyAllocationSchema, SignupCompleteInputDto, SignupConsentConfigDto, SignupConsentConfigSchema, SignupConsentItemFormDto, SignupConsentItemFormSchema, SignupInitiateInputDto, SignupInitiateResponseDto, SignupInputDto, SignupRequirementsDto, SignupRequirementsFormDto, SignupRequirementsFormSchema, SignupRequirementsSchema, SortDirectionSchema, StaffSupportTicketCreateDto, StaffSupportTicketCreateSchema, StaffSupportTicketFiltersDto, StaffSupportTicketFiltersSchema, StaffSupportTicketInputDto, StaffSupportTicketInputSchema, StaffSupportTicketPageDto, StaffSupportTicketPageSchema, StaffSupportTicketReadDto, StaffSupportTicketReadSchema, StaffSupportTicketUpdateDto, StaffSupportTicketUpdateSchema, StringFilter, StringFilterSchema, StringOperator, StringOperatorSchema, SupportStaffApi, SupportStaffMember, SupportTicketApi, SupportTicketApproval, SupportTicketApprovalEnum, SupportTicketApprovalFilterSchema, SupportTicketApprovalSchema, SupportTicketDevLifecycle, SupportTicketDevLifecycleEnum, SupportTicketDevLifecycleFilterSchema, SupportTicketDevLifecycleSchema, SupportTicketDevLifecycleUpdate, SupportTicketDevLifecycleUpdateEnum, SupportTicketDevLifecycleUpdateSchema, SupportTicketEnrichmentData, SupportTicketEventType, SupportTicketEventTypeEnum, SupportTicketEventTypeValues, SupportTicketPriority, SupportTicketPriorityEnum, SupportTicketPriorityFilterSchema, SupportTicketPriorityNumber, SupportTicketPriorityNumberEnum, SupportTicketPriorityNumberSchema, SupportTicketPriorityNumberType, SupportTicketPrioritySchema, SupportTicketRecordDataSchema, SupportTicketStatus, SupportTicketStatusEnum, SupportTicketStatusFilterSchema, SupportTicketStatusSchema, SupportTicketSubscriberCreateDto, SupportTicketSubscriberCreateSchema, SupportTicketType, SupportTicketTypeEnum, SupportTicketTypeFilterSchema, SupportTicketTypeSchema, TeamApi, TeamCreateDto, TeamCreateSchema, TeamFiltersDto, TeamFiltersSchema, TeamInputBaseSchema, TeamMemberApi, TeamMemberCreateDto, TeamMemberCreateSchema, TeamMemberFiltersDto, TeamMemberFiltersSchema, TeamMemberOptionDto, TeamMemberOptionSchema, TeamMemberReadDto, TeamMemberReadSchema, TeamMemberRole, TeamMemberRoleEnum, TeamMemberRoleFilterSchema, TeamMemberRoleSchema, TeamMemberUpdateDto, TeamMemberUpdateSchema, TeamOptionDto, TeamOptionSchema, TeamPageDto, TeamPageSchema, TeamReadDto, TeamReadSchema, TeamStatus, TeamStatusSchema, TeamUpdateDto, TeamUpdateSchema, USER_TYPES, UserApi, UserProfileApi, UserProfileBaseSchema, UserProfileReadDto, UserProfileReadSchema, UserProfileUpdateDto, UserProfileUpdateSchema, UserReadDto, UserReadSchema, UserSessionApi, UserSessionReadDto, UserTeamMembersDto, UserTeamMembersSchema, UserTeamsDto, UserTeamsSchema, UserTypeEnum, UserTypeValues, UserUpdateDto, UserUpdateSchema, VerifyEmailResult, addMoney, applyPercentage, changePasswordSchema, createEnumFilter, createEnumLabelMap, createPaginatedSchema, createSelectOptionsFromLabelMap, createUserSchema, createUserSchemaOutput, divideMoney, enumToDisplayLabel, forgot_password_zod, formatCurrency, formatDollar, isCommonPassword, loginResponseSchema, loginSchema, multiplyMoney, pageInfoSchema, passwordSchema, recordConsentsSchema, recordVersionFiltersBreadcrumbSchema, recordVersionFiltersInputBreadcrumbSchema, recordVersionFiltersInputSchema, recordVersionFiltersSchema, recordVersionPageBreadcrumbSchema, recordVersionPageSchema, recordVersionSchema, recordVersionTrackerActivityInputSchema, resetPasswordInputSchema, resetPasswordSchema, roundMoney, sanitizeFileName, signupCompleteSchema, signupInitiateConsentRequiredSchema, signupInitiateCreatedSchema, signupInitiateResponseSchema, signupInitiateSchema, signupSchema, subtractMoney, supportTicketNumberToPriority, supportTicketPriorityToNumber, userSessionSchema };
|
|
11190
|
+
export { AddCreditsDto, AddCreditsSchema, AnyFilterOperator, AppSettingsApi, ApproveSupportTicketDto, ApproveSupportTicketSchema, ArchiveSupportTicketDto, ArchiveSupportTicketSchema, AttachmentApi, AttachmentCreateDto, AttachmentCreateSchema, type AttachmentFiltersDto as AttachmentFilters, AttachmentFiltersDto, AttachmentFiltersSchema, AttachmentFiltersSchema as attachmentFilters_zod, AttachmentFolderCreateDto, AttachmentFolderCreateSchema, AttachmentFolderReadDto, AttachmentFolderReadSchema, AttachmentFolderUpdateDto, AttachmentFolderUpdateSchema, type AttachmentPageDto, AttachmentPageSchema, AttachmentPageSchema as attachmentPage_zod, AttachmentReadDto, type AttachmentReadDto as ReadAttachmentDto, AttachmentReadSchema, AttachmentReadSchema as attachment_zod, AttachmentUpdateDto, AttachmentUpdateSchema, BaseFilter, BaseFilterSchema, BooleanFilter, BooleanFilterSchema, CancelInternalTaskDto, CancelInternalTaskSchema, ChangePasswordInputDto, CompleteSupportTicketDto, CompleteSupportTicketSchema, CreateUserDto, CreateUserDtoOutput, CreditBalanceDto, CreditBalanceSchema, CreditTransactionFiltersDto, CreditTransactionFiltersSchema, CreditTransactionPageDto, CreditTransactionPageSchema, CreditTransactionReadDto, CreditTransactionReadSchema, CreditTransactionType, CreditTransactionTypeEnum, CustomerApi, CustomerSupportTicketCreateDto, CustomerSupportTicketCreateSchema, CustomerSupportTicketFiltersDto, CustomerSupportTicketFiltersSchema, CustomerSupportTicketPageDto, CustomerSupportTicketPageSchema, CustomerSupportTicketReadDto, CustomerSupportTicketReadSchema, CustomerSupportTicketUpdateDto, CustomerSupportTicketUpdateSchema, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_ERROR_MESSAGE, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_REGEX, DECIMAL_AMOUNT_ERROR_MESSAGE, DECIMAL_AMOUNT_REGEX, DEFAULT_USER_TYPE, DataType, DataTypeSchema, DateFilter, DateFilterSchema, DateOperator, DateOperatorSchema, DefaultReferralTeamFormDto, DefaultReferralTeamFormSchema, DeleteSupportTicketDto, DeleteSupportTicketSchema, DragoncoreApi, EmailVerificationApi, EqualityArrayOperator, EqualityArrayOperatorSchema, EqualityOperator, EqualityOperatorSchema, FieldDefinitionMetadata, FieldRegistryMetadata, FilterConfig, FilterConfigSchema, ForgotPasswordDto, LoginInputDto, type LoginResponse, MAX_PRESETS_PER_CONTEXT, MfaApi, NoteApi, NoteCreateDto, NoteCreateSchema, NoteFiltersDto, NoteFiltersSchema, NoteFiltersSortDirectionEnum, NoteReadDto, NoteReadSchema, NoteUpdateDto, NoteUpdateSchema, NumberFilter, NumberFilterSchema, NumberOperator, NumberOperatorSchema, OPERATORS, PageInfoDto, PageInfoSchema, PagedResult, PaginationFiltersDto, PaginationFiltersSchema, PasswordResetApi, ReactivateInternalTaskDto, ReactivateInternalTaskSchema, RecordConsentsInputDto, RecordConst, RecordSubscriberCreateDto, RecordSubscriberCreateSchema, RecordSubscriberReadDto, RecordSubscriberReadSchema, RecordSubscriberUpdateDto, RecordSubscriberUpdateSchema, RecordType, RecordTypeValues, RecordVersionApi, RecordVersionFiltersBreadcrumbDto, RecordVersionFiltersDto, RecordVersionPageBreadcrumbDto, RecordVersionPageDto, RecordVersionPageInfoDto, RecordVersionReadDto, RejectSupportTicketDto, RejectSupportTicketSchema, ResendVerificationEmailResult, ResetMonthlyBalanceDto, ResetMonthlyBalanceSchema, ResetPasswordDto, ResetPasswordInputDto, RevertSupportTicketDto, RevertSupportTicketSchema, SUPPORT_TICKET_APPROVAL_FILTER_OPTIONS, SUPPORT_TICKET_DEV_LIFECYCLE_FILTER_OPTIONS, SUPPORT_TICKET_NUMBER_TO_PRIORITY, SUPPORT_TICKET_PRIORITY_FILTER_OPTIONS, SUPPORT_TICKET_PRIORITY_NUMBER_TO_LABEL, SUPPORT_TICKET_PRIORITY_TO_NUMBER, SUPPORT_TICKET_STATUS_FILTER_OPTIONS, SUPPORT_TICKET_TYPE_FILTER_OPTIONS, SavedFilterApi, SavedFilterCreateDto, SavedFilterCreateSchema, SavedFilterReadDto, SavedFilterReadSchema, SavedFilterUpdateDto, SavedFilterUpdateSchema, SelectOption, SetMonthlyAllocationDto, SetMonthlyAllocationSchema, SetReferralTagDto, SetReferralTagSchema, SignupCompleteInputDto, SignupConsentConfigDto, SignupConsentConfigSchema, SignupConsentItemFormDto, SignupConsentItemFormSchema, SignupInitiateInputDto, SignupInitiateResponseDto, SignupInputDto, SignupRequirementsDto, SignupRequirementsFormDto, SignupRequirementsFormSchema, SignupRequirementsSchema, SortDirectionSchema, StaffSupportTicketCreateDto, StaffSupportTicketCreateSchema, StaffSupportTicketFiltersDto, StaffSupportTicketFiltersSchema, StaffSupportTicketInputDto, StaffSupportTicketInputSchema, StaffSupportTicketPageDto, StaffSupportTicketPageSchema, StaffSupportTicketReadDto, StaffSupportTicketReadSchema, StaffSupportTicketUpdateDto, StaffSupportTicketUpdateSchema, StringFilter, StringFilterSchema, StringOperator, StringOperatorSchema, SupportStaffApi, SupportStaffMember, SupportTicketApi, SupportTicketApproval, SupportTicketApprovalEnum, SupportTicketApprovalFilterSchema, SupportTicketApprovalSchema, SupportTicketDevLifecycle, SupportTicketDevLifecycleEnum, SupportTicketDevLifecycleFilterSchema, SupportTicketDevLifecycleSchema, SupportTicketDevLifecycleUpdate, SupportTicketDevLifecycleUpdateEnum, SupportTicketDevLifecycleUpdateSchema, SupportTicketEnrichmentData, SupportTicketEventType, SupportTicketEventTypeEnum, SupportTicketEventTypeValues, SupportTicketPriority, SupportTicketPriorityEnum, SupportTicketPriorityFilterSchema, SupportTicketPriorityNumber, SupportTicketPriorityNumberEnum, SupportTicketPriorityNumberSchema, SupportTicketPriorityNumberType, SupportTicketPrioritySchema, SupportTicketRecordDataSchema, SupportTicketStatus, SupportTicketStatusEnum, SupportTicketStatusFilterSchema, SupportTicketStatusSchema, SupportTicketSubscriberCreateDto, SupportTicketSubscriberCreateSchema, SupportTicketType, SupportTicketTypeEnum, SupportTicketTypeFilterSchema, SupportTicketTypeSchema, TeamApi, TeamCreateDto, TeamCreateSchema, TeamFiltersDto, TeamFiltersSchema, TeamInputBaseSchema, TeamMemberApi, TeamMemberCreateDto, TeamMemberCreateSchema, TeamMemberFiltersDto, TeamMemberFiltersSchema, TeamMemberOptionDto, TeamMemberOptionSchema, TeamMemberReadDto, TeamMemberReadSchema, TeamMemberRole, TeamMemberRoleEnum, TeamMemberRoleFilterSchema, TeamMemberRoleSchema, TeamMemberUpdateDto, TeamMemberUpdateSchema, TeamOptionDto, TeamOptionSchema, TeamPageDto, TeamPageSchema, TeamReadDto, TeamReadSchema, TeamStatus, TeamStatusSchema, TeamUpdateDto, TeamUpdateSchema, USER_TYPES, UserApi, UserProfileApi, UserProfileBaseSchema, UserProfileReadDto, UserProfileReadSchema, UserProfileUpdateDto, UserProfileUpdateSchema, UserReadDto, UserReadSchema, UserSessionApi, UserSessionReadDto, UserTeamMembersDto, UserTeamMembersSchema, UserTeamsDto, UserTeamsSchema, UserTypeEnum, UserTypeValues, UserUpdateDto, UserUpdateSchema, VerifyEmailResult, addMoney, applyPercentage, changePasswordSchema, createEnumFilter, createEnumLabelMap, createPaginatedSchema, createSelectOptionsFromLabelMap, createUserSchema, createUserSchemaOutput, divideMoney, enumToDisplayLabel, forgot_password_zod, formatCurrency, formatDollar, isCommonPassword, loginResponseSchema, loginSchema, multiplyMoney, pageInfoSchema, passwordSchema, recordConsentsSchema, recordVersionFiltersBreadcrumbSchema, recordVersionFiltersInputBreadcrumbSchema, recordVersionFiltersInputSchema, recordVersionFiltersSchema, recordVersionPageBreadcrumbSchema, recordVersionPageSchema, recordVersionSchema, recordVersionTrackerActivityInputSchema, resetPasswordInputSchema, resetPasswordSchema, roundMoney, sanitizeFileName, signupCompleteSchema, signupInitiateConsentRequiredSchema, signupInitiateCreatedSchema, signupInitiateResponseSchema, signupInitiateSchema, signupSchema, subtractMoney, supportTicketNumberToPriority, supportTicketPriorityToNumber, userSessionSchema };
|
|
11135
11191
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
//#region src/validation/app_settings/default_referral_team_zod.ts
|
|
4
|
+
/**
|
|
5
|
+
* Schema for the default team for unknown referral tags.
|
|
6
|
+
* Used by admin UI and API server for get/update.
|
|
7
|
+
*/
|
|
8
|
+
const DefaultReferralTeamFormSchema = z.object({ default_team_id: z.string().nullable() });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
3
11
|
//#region src/validation/attachment/attachment_filters_zod.ts
|
|
4
12
|
const AttachmentFiltersSchema = z.object({
|
|
5
13
|
record_id: z.string(),
|
|
@@ -1595,6 +1603,7 @@ const TeamReadSchema = TeamCreateSchema.extend({
|
|
|
1595
1603
|
id: z.string(),
|
|
1596
1604
|
original_id: z.string().optional().nullable(),
|
|
1597
1605
|
path: z.string().optional().nullable(),
|
|
1606
|
+
referral_tag: z.string().optional().nullable(),
|
|
1598
1607
|
created_at: z.string(),
|
|
1599
1608
|
updated_at: z.string().optional().nullable(),
|
|
1600
1609
|
created_by: z.string(),
|
|
@@ -1609,6 +1618,22 @@ const TeamReadSchema = TeamCreateSchema.extend({
|
|
|
1609
1618
|
//#region src/validation/team/team_page_zod.ts
|
|
1610
1619
|
const TeamPageSchema = createPaginatedSchema(TeamReadSchema);
|
|
1611
1620
|
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region src/validation/team/team_set_referral_tag_zod.ts
|
|
1623
|
+
const referralTagValueSchema = z.string().min(3, "Referral tag must be between 3 and 64 characters").max(64).regex(/^[a-zA-Z0-9_-]+$/, "Referral tag must be alphanumeric, underscore, or hyphen only");
|
|
1624
|
+
/**
|
|
1625
|
+
* Schema for super admin to set or clear referral tag on a team.
|
|
1626
|
+
* Pass null, empty string, or omit to clear the tag.
|
|
1627
|
+
*/
|
|
1628
|
+
const SetReferralTagSchema = z.object({
|
|
1629
|
+
team_id: z.string(),
|
|
1630
|
+
referral_tag: z.union([
|
|
1631
|
+
referralTagValueSchema,
|
|
1632
|
+
z.literal(""),
|
|
1633
|
+
z.null()
|
|
1634
|
+
]).optional().nullable().transform((v) => v === "" || v == null ? null : v)
|
|
1635
|
+
});
|
|
1636
|
+
|
|
1612
1637
|
//#endregion
|
|
1613
1638
|
//#region src/validation/team/team_user_teams_zod.ts
|
|
1614
1639
|
/**
|
|
@@ -2048,5 +2073,5 @@ const formatDollar = (amount) => {
|
|
|
2048
2073
|
};
|
|
2049
2074
|
|
|
2050
2075
|
//#endregion
|
|
2051
|
-
export { AddCreditsSchema, ApproveSupportTicketSchema, ArchiveSupportTicketSchema, AttachmentCreateSchema, AttachmentFiltersSchema, AttachmentFiltersSchema as attachmentFilters_zod, AttachmentFolderCreateSchema, AttachmentFolderReadSchema, AttachmentFolderUpdateSchema, AttachmentPageSchema, AttachmentPageSchema as attachmentPage_zod, AttachmentReadSchema, AttachmentReadSchema as attachment_zod, AttachmentUpdateSchema, BaseFilterSchema, BooleanFilterSchema, CancelInternalTaskSchema, CompleteSupportTicketSchema, CreditBalanceSchema, CreditTransactionFiltersSchema, CreditTransactionPageSchema, CreditTransactionReadSchema, CreditTransactionTypeEnum, CustomerSupportTicketCreateSchema, CustomerSupportTicketFiltersSchema, CustomerSupportTicketPageSchema, CustomerSupportTicketReadSchema, CustomerSupportTicketUpdateSchema, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_ERROR_MESSAGE, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_REGEX, DECIMAL_AMOUNT_ERROR_MESSAGE, DECIMAL_AMOUNT_REGEX, DEFAULT_USER_TYPE, DataTypeSchema, DateFilterSchema, DateOperatorSchema, DeleteSupportTicketSchema, EqualityArrayOperatorSchema, EqualityOperatorSchema, FilterConfigSchema, MAX_PRESETS_PER_CONTEXT, NoteCreateSchema, NoteFiltersSchema, NoteFiltersSortDirectionEnum, NoteReadSchema, NoteUpdateSchema, NumberFilterSchema, NumberOperatorSchema, OPERATORS, PageInfoSchema, PaginationFiltersSchema, ReactivateInternalTaskSchema, RecordConst, RecordSubscriberCreateSchema, RecordSubscriberReadSchema, RecordSubscriberUpdateSchema, RecordTypeValues, RejectSupportTicketSchema, ResetMonthlyBalanceSchema, RevertSupportTicketSchema, SUPPORT_TICKET_APPROVAL_FILTER_OPTIONS, SUPPORT_TICKET_DEV_LIFECYCLE_FILTER_OPTIONS, SUPPORT_TICKET_NUMBER_TO_PRIORITY, SUPPORT_TICKET_PRIORITY_FILTER_OPTIONS, SUPPORT_TICKET_PRIORITY_NUMBER_TO_LABEL, SUPPORT_TICKET_PRIORITY_TO_NUMBER, SUPPORT_TICKET_STATUS_FILTER_OPTIONS, SUPPORT_TICKET_TYPE_FILTER_OPTIONS, SavedFilterCreateSchema, SavedFilterReadSchema, SavedFilterUpdateSchema, SetMonthlyAllocationSchema, SignupConsentConfigSchema, SignupConsentItemFormSchema, SignupRequirementsFormSchema, SignupRequirementsSchema, SortDirectionSchema, StaffSupportTicketCreateSchema, StaffSupportTicketFiltersSchema, StaffSupportTicketInputSchema, StaffSupportTicketPageSchema, StaffSupportTicketReadSchema, StaffSupportTicketUpdateSchema, StringFilterSchema, StringOperatorSchema, SupportTicketApprovalEnum, SupportTicketApprovalFilterSchema, SupportTicketApprovalSchema, SupportTicketDevLifecycleEnum, SupportTicketDevLifecycleFilterSchema, SupportTicketDevLifecycleSchema, SupportTicketDevLifecycleUpdateEnum, SupportTicketDevLifecycleUpdateSchema, SupportTicketEventTypeEnum, SupportTicketEventTypeValues, SupportTicketPriorityEnum, SupportTicketPriorityFilterSchema, SupportTicketPriorityNumberEnum, SupportTicketPriorityNumberSchema, SupportTicketPrioritySchema, SupportTicketRecordDataSchema, SupportTicketStatusEnum, SupportTicketStatusFilterSchema, SupportTicketStatusSchema, SupportTicketSubscriberCreateSchema, SupportTicketTypeEnum, SupportTicketTypeFilterSchema, SupportTicketTypeSchema, TeamCreateSchema, TeamFiltersSchema, TeamInputBaseSchema, TeamMemberCreateSchema, TeamMemberFiltersSchema, TeamMemberOptionSchema, TeamMemberReadSchema, TeamMemberRoleEnum, TeamMemberRoleFilterSchema, TeamMemberRoleSchema, TeamMemberUpdateSchema, TeamOptionSchema, TeamPageSchema, TeamReadSchema, TeamStatusSchema, TeamUpdateSchema, USER_TYPES, UserProfileBaseSchema, UserProfileReadSchema, UserProfileUpdateSchema, UserReadSchema, UserTeamMembersSchema, UserTeamsSchema, UserTypeEnum, UserUpdateSchema, addMoney, applyPercentage, changePasswordSchema, createEnumFilter, createEnumLabelMap, createPaginatedSchema, createSelectOptionsFromLabelMap, createUserSchema, createUserSchemaOutput, divideMoney, enumToDisplayLabel, forgot_password_zod, formatCurrency, formatDollar, isCommonPassword, loginResponseSchema, loginSchema, multiplyMoney, pageInfoSchema, passwordSchema, recordConsentsSchema, recordVersionFiltersBreadcrumbSchema, recordVersionFiltersInputBreadcrumbSchema, recordVersionFiltersInputSchema, recordVersionFiltersSchema, recordVersionPageBreadcrumbSchema, recordVersionPageSchema, recordVersionSchema, recordVersionTrackerActivityInputSchema, resetPasswordInputSchema, resetPasswordSchema, roundMoney, sanitizeFileName, signupCompleteSchema, signupInitiateConsentRequiredSchema, signupInitiateCreatedSchema, signupInitiateResponseSchema, signupInitiateSchema, signupSchema, subtractMoney, supportTicketNumberToPriority, supportTicketPriorityToNumber, userSessionSchema };
|
|
2076
|
+
export { AddCreditsSchema, ApproveSupportTicketSchema, ArchiveSupportTicketSchema, AttachmentCreateSchema, AttachmentFiltersSchema, AttachmentFiltersSchema as attachmentFilters_zod, AttachmentFolderCreateSchema, AttachmentFolderReadSchema, AttachmentFolderUpdateSchema, AttachmentPageSchema, AttachmentPageSchema as attachmentPage_zod, AttachmentReadSchema, AttachmentReadSchema as attachment_zod, AttachmentUpdateSchema, BaseFilterSchema, BooleanFilterSchema, CancelInternalTaskSchema, CompleteSupportTicketSchema, CreditBalanceSchema, CreditTransactionFiltersSchema, CreditTransactionPageSchema, CreditTransactionReadSchema, CreditTransactionTypeEnum, CustomerSupportTicketCreateSchema, CustomerSupportTicketFiltersSchema, CustomerSupportTicketPageSchema, CustomerSupportTicketReadSchema, CustomerSupportTicketUpdateSchema, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_ERROR_MESSAGE, DECIMAL_AMOUNT_2_DECIMALS_OR_EMPTY_REGEX, DECIMAL_AMOUNT_ERROR_MESSAGE, DECIMAL_AMOUNT_REGEX, DEFAULT_USER_TYPE, DataTypeSchema, DateFilterSchema, DateOperatorSchema, DefaultReferralTeamFormSchema, DeleteSupportTicketSchema, EqualityArrayOperatorSchema, EqualityOperatorSchema, FilterConfigSchema, MAX_PRESETS_PER_CONTEXT, NoteCreateSchema, NoteFiltersSchema, NoteFiltersSortDirectionEnum, NoteReadSchema, NoteUpdateSchema, NumberFilterSchema, NumberOperatorSchema, OPERATORS, PageInfoSchema, PaginationFiltersSchema, ReactivateInternalTaskSchema, RecordConst, RecordSubscriberCreateSchema, RecordSubscriberReadSchema, RecordSubscriberUpdateSchema, RecordTypeValues, RejectSupportTicketSchema, ResetMonthlyBalanceSchema, RevertSupportTicketSchema, SUPPORT_TICKET_APPROVAL_FILTER_OPTIONS, SUPPORT_TICKET_DEV_LIFECYCLE_FILTER_OPTIONS, SUPPORT_TICKET_NUMBER_TO_PRIORITY, SUPPORT_TICKET_PRIORITY_FILTER_OPTIONS, SUPPORT_TICKET_PRIORITY_NUMBER_TO_LABEL, SUPPORT_TICKET_PRIORITY_TO_NUMBER, SUPPORT_TICKET_STATUS_FILTER_OPTIONS, SUPPORT_TICKET_TYPE_FILTER_OPTIONS, SavedFilterCreateSchema, SavedFilterReadSchema, SavedFilterUpdateSchema, SetMonthlyAllocationSchema, SetReferralTagSchema, SignupConsentConfigSchema, SignupConsentItemFormSchema, SignupRequirementsFormSchema, SignupRequirementsSchema, SortDirectionSchema, StaffSupportTicketCreateSchema, StaffSupportTicketFiltersSchema, StaffSupportTicketInputSchema, StaffSupportTicketPageSchema, StaffSupportTicketReadSchema, StaffSupportTicketUpdateSchema, StringFilterSchema, StringOperatorSchema, SupportTicketApprovalEnum, SupportTicketApprovalFilterSchema, SupportTicketApprovalSchema, SupportTicketDevLifecycleEnum, SupportTicketDevLifecycleFilterSchema, SupportTicketDevLifecycleSchema, SupportTicketDevLifecycleUpdateEnum, SupportTicketDevLifecycleUpdateSchema, SupportTicketEventTypeEnum, SupportTicketEventTypeValues, SupportTicketPriorityEnum, SupportTicketPriorityFilterSchema, SupportTicketPriorityNumberEnum, SupportTicketPriorityNumberSchema, SupportTicketPrioritySchema, SupportTicketRecordDataSchema, SupportTicketStatusEnum, SupportTicketStatusFilterSchema, SupportTicketStatusSchema, SupportTicketSubscriberCreateSchema, SupportTicketTypeEnum, SupportTicketTypeFilterSchema, SupportTicketTypeSchema, TeamCreateSchema, TeamFiltersSchema, TeamInputBaseSchema, TeamMemberCreateSchema, TeamMemberFiltersSchema, TeamMemberOptionSchema, TeamMemberReadSchema, TeamMemberRoleEnum, TeamMemberRoleFilterSchema, TeamMemberRoleSchema, TeamMemberUpdateSchema, TeamOptionSchema, TeamPageSchema, TeamReadSchema, TeamStatusSchema, TeamUpdateSchema, USER_TYPES, UserProfileBaseSchema, UserProfileReadSchema, UserProfileUpdateSchema, UserReadSchema, UserTeamMembersSchema, UserTeamsSchema, UserTypeEnum, UserUpdateSchema, addMoney, applyPercentage, changePasswordSchema, createEnumFilter, createEnumLabelMap, createPaginatedSchema, createSelectOptionsFromLabelMap, createUserSchema, createUserSchemaOutput, divideMoney, enumToDisplayLabel, forgot_password_zod, formatCurrency, formatDollar, isCommonPassword, loginResponseSchema, loginSchema, multiplyMoney, pageInfoSchema, passwordSchema, recordConsentsSchema, recordVersionFiltersBreadcrumbSchema, recordVersionFiltersInputBreadcrumbSchema, recordVersionFiltersInputSchema, recordVersionFiltersSchema, recordVersionPageBreadcrumbSchema, recordVersionPageSchema, recordVersionSchema, recordVersionTrackerActivityInputSchema, resetPasswordInputSchema, resetPasswordSchema, roundMoney, sanitizeFileName, signupCompleteSchema, signupInitiateConsentRequiredSchema, signupInitiateCreatedSchema, signupInitiateResponseSchema, signupInitiateSchema, signupSchema, subtractMoney, supportTicketNumberToPriority, supportTicketPriorityToNumber, userSessionSchema };
|
|
2052
2077
|
//# sourceMappingURL=index.mjs.map
|