bantr-api-client 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-type/src/trpcRouter/discount_code.router.d.ts +5 -5
- package/api-type/src/trpcRouter/free_agent_payments.router.d.ts +17 -1
- package/api-type/src/trpcRouter/league_payments.router.d.ts +15 -15
- package/api-type/src/trpcRouter/oauth.router.d.ts +2 -2
- package/api-type/src/trpcRouter/pickup_payments.router.d.ts +2 -2
- package/api-type/src/trpcRouter/product.router.d.ts +2 -0
- package/api-type/src/trpcRouter/router.d.ts +1177 -407
- package/api-type/src/trpcRouter/team.d.ts +191 -0
- package/api-type/src/trpcRouter/transaction.router.d.ts +176 -0
- package/dist/src/index.d.ts +1947 -782
- package/dist/src/provider.d.ts +1163 -393
- package/dist/src/query.d.ts +420 -25
- package/package.json +1 -1
@@ -51,19 +51,19 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
51
51
|
authorization?: string | undefined;
|
52
52
|
limit: number;
|
53
53
|
cursor: number;
|
54
|
-
code?: string | undefined;
|
55
54
|
orgWorkspaceId?: number | null | undefined;
|
56
55
|
direction?: "asc" | "desc" | undefined;
|
56
|
+
code?: string | undefined;
|
57
57
|
listExpired?: boolean | undefined;
|
58
58
|
};
|
59
59
|
_input_out: {
|
60
60
|
authorization?: string | undefined;
|
61
61
|
limit: number;
|
62
|
-
cursor: number;
|
63
62
|
direction: "asc" | "desc";
|
63
|
+
cursor: number;
|
64
64
|
listExpired: boolean;
|
65
|
-
code?: string | undefined;
|
66
65
|
orgWorkspaceId?: number | null | undefined;
|
66
|
+
code?: string | undefined;
|
67
67
|
};
|
68
68
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
69
69
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -128,8 +128,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
128
128
|
};
|
129
129
|
_input_in: {
|
130
130
|
authorization?: string | undefined;
|
131
|
-
id: number;
|
132
131
|
code: string;
|
132
|
+
id: number;
|
133
133
|
description: string;
|
134
134
|
appliesWhen: "purchase";
|
135
135
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
@@ -142,8 +142,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
142
142
|
};
|
143
143
|
_input_out: {
|
144
144
|
authorization?: string | undefined;
|
145
|
-
id: number;
|
146
145
|
code: string;
|
146
|
+
id: number;
|
147
147
|
description: string;
|
148
148
|
appliesWhen: "purchase";
|
149
149
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
@@ -253,8 +253,8 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
253
253
|
_input_out: {
|
254
254
|
authorization?: string | undefined;
|
255
255
|
description: string;
|
256
|
-
freeAgentId: number;
|
257
256
|
paymentMode: "session" | "intent";
|
257
|
+
freeAgentId: number;
|
258
258
|
code?: string | undefined;
|
259
259
|
leagueId?: number | undefined;
|
260
260
|
cancelPath?: string | undefined;
|
@@ -268,6 +268,22 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
268
268
|
customerId: string;
|
269
269
|
orgPublishableKey: string | undefined;
|
270
270
|
orgStripeAccountId: string;
|
271
|
+
paymentIntent: {
|
272
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
273
|
+
discountAndFee: {
|
274
|
+
discountApplied: number;
|
275
|
+
discountedAmount: number;
|
276
|
+
priceAmount: number;
|
277
|
+
otherTaxLabel: string;
|
278
|
+
otherTaxPercent: number;
|
279
|
+
otherTax: number;
|
280
|
+
bantrTax: number;
|
281
|
+
stripeTax: number;
|
282
|
+
totalTax: number;
|
283
|
+
totalWithTax: number;
|
284
|
+
transferAmount: number;
|
285
|
+
};
|
286
|
+
};
|
271
287
|
} | {
|
272
288
|
redirectUrl: string;
|
273
289
|
}>;
|
@@ -303,42 +319,42 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
303
319
|
};
|
304
320
|
_output_in: {
|
305
321
|
id: number;
|
306
|
-
memberId: number;
|
307
322
|
deletedAt: Date | null;
|
323
|
+
memberId: number;
|
308
324
|
member: {
|
309
325
|
id: number;
|
310
|
-
email: string;
|
311
326
|
firstName: string | null;
|
327
|
+
email: string;
|
312
328
|
lastName: string | null;
|
313
329
|
};
|
314
330
|
totalPaid: number;
|
315
331
|
payments: {
|
316
332
|
id: number;
|
333
|
+
payerId: number;
|
317
334
|
createdAt: string | Date;
|
318
335
|
price: number;
|
319
|
-
payerId: number;
|
320
336
|
amountApplied: number | null;
|
321
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
337
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
322
338
|
}[];
|
323
339
|
}[];
|
324
340
|
_output_out: {
|
325
341
|
id: number;
|
326
|
-
memberId: number;
|
327
342
|
deletedAt: Date | null;
|
343
|
+
memberId: number;
|
328
344
|
member: {
|
329
345
|
id: number;
|
330
|
-
email: string;
|
331
346
|
firstName: string | null;
|
347
|
+
email: string;
|
332
348
|
lastName: string | null;
|
333
349
|
};
|
334
350
|
totalPaid: number;
|
335
351
|
payments: {
|
336
352
|
id: number;
|
353
|
+
payerId: number;
|
337
354
|
createdAt: string | Date;
|
338
355
|
price: number;
|
339
|
-
payerId: number;
|
340
356
|
amountApplied: number | null;
|
341
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
357
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
342
358
|
}[];
|
343
359
|
}[];
|
344
360
|
}, unknown>;
|
@@ -357,16 +373,16 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
357
373
|
};
|
358
374
|
_input_in: {
|
359
375
|
authorization?: string | undefined;
|
360
|
-
leagueId: number;
|
361
376
|
price: number;
|
362
|
-
|
377
|
+
leagueId: number;
|
378
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
363
379
|
teamRosterId: number;
|
364
380
|
};
|
365
381
|
_input_out: {
|
366
382
|
authorization?: string | undefined;
|
367
|
-
leagueId: number;
|
368
383
|
price: number;
|
369
|
-
|
384
|
+
leagueId: number;
|
385
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
370
386
|
teamRosterId: number;
|
371
387
|
};
|
372
388
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -389,14 +405,14 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
389
405
|
authorization?: string | undefined;
|
390
406
|
id: number;
|
391
407
|
price: number;
|
392
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
408
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
393
409
|
teamRosterId: number;
|
394
410
|
};
|
395
411
|
_input_out: {
|
396
412
|
authorization?: string | undefined;
|
397
413
|
id: number;
|
398
414
|
price: number;
|
399
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
415
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
400
416
|
teamRosterId: number;
|
401
417
|
};
|
402
418
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -451,9 +467,9 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
451
467
|
_input_out: {
|
452
468
|
authorization?: string | undefined;
|
453
469
|
leagueId: number;
|
454
|
-
paymentMode: "session" | "intent";
|
455
470
|
teamId: number;
|
456
471
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
472
|
+
paymentMode: "session" | "intent";
|
457
473
|
code?: string | undefined;
|
458
474
|
paymentAmount?: number | undefined;
|
459
475
|
};
|
@@ -626,11 +642,11 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
626
642
|
};
|
627
643
|
_input_in: {
|
628
644
|
authorization?: string | undefined;
|
629
|
-
provider: "
|
645
|
+
provider: "google" | "apple";
|
630
646
|
};
|
631
647
|
_input_out: {
|
632
648
|
authorization?: string | undefined;
|
633
|
-
provider: "
|
649
|
+
provider: "google" | "apple";
|
634
650
|
};
|
635
651
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
636
652
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -726,17 +742,17 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
726
742
|
};
|
727
743
|
_input_in: {
|
728
744
|
authorization?: string | undefined;
|
729
|
-
memberId: number;
|
730
745
|
pickupId: number;
|
746
|
+
memberId: number;
|
731
747
|
code?: string | undefined;
|
732
748
|
paymentMode?: "session" | "intent" | undefined;
|
733
749
|
cancelPath?: string | undefined;
|
734
750
|
};
|
735
751
|
_input_out: {
|
736
752
|
authorization?: string | undefined;
|
753
|
+
pickupId: number;
|
737
754
|
memberId: number;
|
738
755
|
paymentMode: "session" | "intent";
|
739
|
-
pickupId: number;
|
740
756
|
code?: string | undefined;
|
741
757
|
cancelPath?: string | undefined;
|
742
758
|
};
|
@@ -781,6 +797,7 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
781
797
|
totalTax: number;
|
782
798
|
otherTaxLabel: string;
|
783
799
|
otherTax: number;
|
800
|
+
otherTaxPercent: number;
|
784
801
|
code?: string | undefined;
|
785
802
|
description?: string | undefined;
|
786
803
|
};
|
@@ -790,25 +807,19 @@ export declare const appRouter: import("@trpc/server").CreateRouterInner<import(
|
|
790
807
|
totalTax: number;
|
791
808
|
otherTaxLabel: string;
|
792
809
|
otherTax: number;
|
810
|
+
otherTaxPercent: number;
|
793
811
|
code?: string | undefined;
|
794
812
|
description?: string | undefined;
|
795
813
|
};
|
796
814
|
}, unknown>;
|
797
815
|
}>;
|
798
|
-
|
799
|
-
export declare const createTrpcCaller: import("@trpc/server").RouterCaller<import("@trpc/server/dist/core/router").RouterDef<import("@trpc/server").RootConfig<{
|
800
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
801
|
-
meta: object;
|
802
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
803
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
804
|
-
}>, {
|
805
|
-
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
816
|
+
team: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
806
817
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
807
818
|
meta: object;
|
808
819
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
809
820
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
810
821
|
}>, {
|
811
|
-
|
822
|
+
getInvitedMembers: import("@trpc/server").BuildProcedure<"query", {
|
812
823
|
_config: import("@trpc/server").RootConfig<{
|
813
824
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
814
825
|
meta: object;
|
@@ -823,16 +834,19 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
823
834
|
};
|
824
835
|
_input_in: {
|
825
836
|
authorization?: string | undefined;
|
826
|
-
|
837
|
+
teamId: number;
|
827
838
|
};
|
828
839
|
_input_out: {
|
829
840
|
authorization?: string | undefined;
|
830
|
-
|
841
|
+
teamId: number;
|
831
842
|
};
|
832
843
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
833
844
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
834
|
-
}, import("../
|
835
|
-
|
845
|
+
}, (import("../models/team_roster").TeamRoster & {
|
846
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
847
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
848
|
+
})[]>;
|
849
|
+
getInvitedByOrganization: import("@trpc/server").BuildProcedure<"query", {
|
836
850
|
_config: import("@trpc/server").RootConfig<{
|
837
851
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
838
852
|
meta: object;
|
@@ -847,29 +861,21 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
847
861
|
};
|
848
862
|
_input_in: {
|
849
863
|
authorization?: string | undefined;
|
850
|
-
|
851
|
-
|
852
|
-
code?: string | undefined;
|
853
|
-
orgWorkspaceId?: number | null | undefined;
|
854
|
-
direction?: "asc" | "desc" | undefined;
|
855
|
-
listExpired?: boolean | undefined;
|
864
|
+
organizationId: number;
|
865
|
+
teamId: number;
|
856
866
|
};
|
857
867
|
_input_out: {
|
858
868
|
authorization?: string | undefined;
|
859
|
-
|
860
|
-
|
861
|
-
direction: "asc" | "desc";
|
862
|
-
listExpired: boolean;
|
863
|
-
code?: string | undefined;
|
864
|
-
orgWorkspaceId?: number | null | undefined;
|
869
|
+
organizationId: number;
|
870
|
+
teamId: number;
|
865
871
|
};
|
866
872
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
867
873
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
868
|
-
}, {
|
869
|
-
|
870
|
-
|
871
|
-
}>;
|
872
|
-
|
874
|
+
}, (import("../models/team_roster").TeamRoster & {
|
875
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
876
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
877
|
+
})[]>;
|
878
|
+
createInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
873
879
|
_config: import("@trpc/server").RootConfig<{
|
874
880
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
875
881
|
meta: object;
|
@@ -884,34 +890,30 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
884
890
|
};
|
885
891
|
_input_in: {
|
886
892
|
authorization?: string | undefined;
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
orgWorkspaceId?: number | null | undefined;
|
893
|
+
teamId: number;
|
894
|
+
invites: {
|
895
|
+
firstName: string;
|
896
|
+
email: string;
|
897
|
+
lastName: string;
|
898
|
+
}[];
|
899
|
+
organizationId?: number | undefined;
|
900
|
+
leagueId?: number | undefined;
|
896
901
|
};
|
897
902
|
_input_out: {
|
898
903
|
authorization?: string | undefined;
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
orgWorkspaceId?: number | null | undefined;
|
904
|
+
teamId: number;
|
905
|
+
invites: {
|
906
|
+
firstName: string;
|
907
|
+
email: string;
|
908
|
+
lastName: string;
|
909
|
+
}[];
|
910
|
+
organizationId?: number | undefined;
|
911
|
+
leagueId?: number | undefined;
|
908
912
|
};
|
909
913
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
910
914
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
911
|
-
},
|
912
|
-
|
913
|
-
}>;
|
914
|
-
update: import("@trpc/server").BuildProcedure<"mutation", {
|
915
|
+
}, void>;
|
916
|
+
createInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
915
917
|
_config: import("@trpc/server").RootConfig<{
|
916
918
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
917
919
|
meta: object;
|
@@ -926,36 +928,30 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
926
928
|
};
|
927
929
|
_input_in: {
|
928
930
|
authorization?: string | undefined;
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
validUntil: Date | null;
|
938
|
-
usageLimit: number | null;
|
939
|
-
orgWorkspaceId?: number | null | undefined;
|
931
|
+
teamId: number;
|
932
|
+
invites: {
|
933
|
+
firstName: string;
|
934
|
+
email: string;
|
935
|
+
lastName: string;
|
936
|
+
}[];
|
937
|
+
organizationId?: number | undefined;
|
938
|
+
leagueId?: number | undefined;
|
940
939
|
};
|
941
940
|
_input_out: {
|
942
941
|
authorization?: string | undefined;
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
validUntil: Date | null;
|
952
|
-
usageLimit: number | null;
|
953
|
-
orgWorkspaceId?: number | null | undefined;
|
942
|
+
teamId: number;
|
943
|
+
invites: {
|
944
|
+
firstName: string;
|
945
|
+
email: string;
|
946
|
+
lastName: string;
|
947
|
+
}[];
|
948
|
+
organizationId?: number | undefined;
|
949
|
+
leagueId?: number | undefined;
|
954
950
|
};
|
955
951
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
956
952
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
957
953
|
}, void>;
|
958
|
-
|
954
|
+
cancelInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
959
955
|
_config: import("@trpc/server").RootConfig<{
|
960
956
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
961
957
|
meta: object;
|
@@ -970,16 +966,18 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
970
966
|
};
|
971
967
|
_input_in: {
|
972
968
|
authorization?: string | undefined;
|
973
|
-
|
969
|
+
teamId: number;
|
970
|
+
inviteId: number;
|
974
971
|
};
|
975
972
|
_input_out: {
|
976
973
|
authorization?: string | undefined;
|
977
|
-
|
974
|
+
teamId: number;
|
975
|
+
inviteId: number;
|
978
976
|
};
|
979
977
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
980
978
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
981
979
|
}, void>;
|
982
|
-
|
980
|
+
cancelInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
983
981
|
_config: import("@trpc/server").RootConfig<{
|
984
982
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
985
983
|
meta: object;
|
@@ -987,46 +985,32 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
987
985
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
988
986
|
}>;
|
989
987
|
_meta: object;
|
990
|
-
_ctx_out:
|
988
|
+
_ctx_out: {
|
989
|
+
req: import("http").IncomingMessage;
|
990
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
991
|
+
user: import("../types/auth").TJwtPayload;
|
992
|
+
};
|
991
993
|
_input_in: {
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
productValue: number;
|
996
|
-
code?: string | undefined;
|
994
|
+
authorization?: string | undefined;
|
995
|
+
teamId: number;
|
996
|
+
inviteId: number;
|
997
997
|
};
|
998
998
|
_input_out: {
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
productValue: number;
|
1003
|
-
code?: string | undefined;
|
1004
|
-
};
|
1005
|
-
_output_in: {
|
1006
|
-
code: string;
|
1007
|
-
description: string;
|
1008
|
-
amountType: "flat-rate" | "percentage";
|
1009
|
-
amountValue: number;
|
1010
|
-
reducedValue: number;
|
1011
|
-
newValue: number;
|
1012
|
-
};
|
1013
|
-
_output_out: {
|
1014
|
-
code: string;
|
1015
|
-
description: string;
|
1016
|
-
amountType: "flat-rate" | "percentage";
|
1017
|
-
amountValue: number;
|
1018
|
-
reducedValue: number;
|
1019
|
-
newValue: number;
|
999
|
+
authorization?: string | undefined;
|
1000
|
+
teamId: number;
|
1001
|
+
inviteId: number;
|
1020
1002
|
};
|
1021
|
-
|
1003
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1004
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1005
|
+
}, void>;
|
1022
1006
|
}>;
|
1023
|
-
|
1007
|
+
transaction: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1024
1008
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1025
1009
|
meta: object;
|
1026
1010
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1027
1011
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1028
1012
|
}>, {
|
1029
|
-
|
1013
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1030
1014
|
_config: import("@trpc/server").RootConfig<{
|
1031
1015
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1032
1016
|
meta: object;
|
@@ -1041,42 +1025,33 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1041
1025
|
};
|
1042
1026
|
_input_in: {
|
1043
1027
|
authorization?: string | undefined;
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1028
|
+
limit: number;
|
1029
|
+
page: number;
|
1030
|
+
direction: "asc" | "desc";
|
1031
|
+
orgWorkspaceId?: number | undefined;
|
1032
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1033
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1034
|
+
search?: string | undefined;
|
1050
1035
|
};
|
1051
1036
|
_input_out: {
|
1052
1037
|
authorization?: string | undefined;
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1038
|
+
limit: number;
|
1039
|
+
page: number;
|
1040
|
+
direction: "asc" | "desc";
|
1041
|
+
orgWorkspaceId?: number | undefined;
|
1042
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1043
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1044
|
+
search?: string | undefined;
|
1059
1045
|
};
|
1060
1046
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1061
1047
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1062
1048
|
}, {
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
orgPublishableKey: string | undefined;
|
1068
|
-
orgStripeAccountId: string;
|
1069
|
-
} | {
|
1070
|
-
redirectUrl: string;
|
1049
|
+
items: import("../models/transaction").Transaction[];
|
1050
|
+
curPage: number;
|
1051
|
+
hasPrev: boolean;
|
1052
|
+
hasNext: boolean;
|
1071
1053
|
}>;
|
1072
|
-
|
1073
|
-
leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1074
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1075
|
-
meta: object;
|
1076
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1077
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1078
|
-
}>, {
|
1079
|
-
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
1054
|
+
info: import("@trpc/server").BuildProcedure<"query", {
|
1080
1055
|
_config: import("@trpc/server").RootConfig<{
|
1081
1056
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1082
1057
|
meta: object;
|
@@ -1091,56 +1066,58 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1091
1066
|
};
|
1092
1067
|
_input_in: {
|
1093
1068
|
authorization?: string | undefined;
|
1094
|
-
|
1095
|
-
teamId: number;
|
1069
|
+
transactionId: number;
|
1096
1070
|
};
|
1097
1071
|
_input_out: {
|
1098
1072
|
authorization?: string | undefined;
|
1099
|
-
|
1100
|
-
teamId: number;
|
1073
|
+
transactionId: number;
|
1101
1074
|
};
|
1102
|
-
_output_in:
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1075
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1076
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1077
|
+
}, {
|
1078
|
+
stripeTransfers: import("../models/stripe_transfer").StripeTransfer[];
|
1079
|
+
id: number;
|
1080
|
+
payerId: number;
|
1081
|
+
payer?: import("../models/member").Member;
|
1082
|
+
paymentMethod: import("../modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
1083
|
+
discountCodeId: number | null;
|
1084
|
+
discountCode?: import("../modules/discount_code/discount_code.model").DiscountCode;
|
1085
|
+
documentAmount: number;
|
1086
|
+
discountedAmount: number;
|
1087
|
+
organizerFee: number;
|
1088
|
+
bantrFee: number;
|
1089
|
+
stripeFee: number;
|
1090
|
+
chargedAmount: number;
|
1091
|
+
paidAmount: number;
|
1092
|
+
transferAmount: number;
|
1093
|
+
refundedAmount: number;
|
1094
|
+
transferSent: boolean;
|
1095
|
+
currency: import("../constants").VALID_CURRENCY_CODES;
|
1096
|
+
status: import("../modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
1097
|
+
expiresAt: Date | null;
|
1098
|
+
lastStatusUpdateAt: Date | null;
|
1099
|
+
leaguePaymentId: number | null;
|
1100
|
+
leaguePayment?: import("../models/league_payment").LeaguePayment;
|
1101
|
+
league?: import("../models/league").League;
|
1102
|
+
pickupPaymentId: number | null;
|
1103
|
+
pickupPayment?: import("../models/pickup_payments").PickupPayment;
|
1104
|
+
pickup?: import("../models/pickup").Pickup;
|
1105
|
+
freeAgentPaymentId: number | null;
|
1106
|
+
freeAgentPayment?: import("../models/free_agent_payment").FreeAgentPayment;
|
1107
|
+
orgFreeAgent?: import("../models/organization_free_agent").OrgFreeAgent;
|
1108
|
+
organizationId: number;
|
1109
|
+
organization?: import("../models/organization").Organization;
|
1110
|
+
orgWorkspaceId: number | null;
|
1111
|
+
orgWorkspace?: import("../models/organization_workspace").OrgWorkspace;
|
1112
|
+
transactionEvents?: import("../models/transaction_event").TransactionEvent[];
|
1113
|
+
stripeTransactions?: import("../models/stripe_transaction").StripeTransaction[];
|
1114
|
+
updatedAt: Date;
|
1115
|
+
createdAt: Date;
|
1116
|
+
deletedAt: Date | null;
|
1117
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]>;
|
1118
|
+
$modelClass: import("objection").ModelClass<import("../models/transaction").Transaction>;
|
1119
|
+
}>;
|
1120
|
+
refund: import("@trpc/server").BuildProcedure<"mutation", {
|
1144
1121
|
_config: import("@trpc/server").RootConfig<{
|
1145
1122
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1146
1123
|
meta: object;
|
@@ -1155,22 +1132,18 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1155
1132
|
};
|
1156
1133
|
_input_in: {
|
1157
1134
|
authorization?: string | undefined;
|
1158
|
-
|
1159
|
-
|
1160
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1161
|
-
teamRosterId: number;
|
1135
|
+
amount: number;
|
1136
|
+
transactionId: number;
|
1162
1137
|
};
|
1163
1138
|
_input_out: {
|
1164
1139
|
authorization?: string | undefined;
|
1165
|
-
|
1166
|
-
|
1167
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1168
|
-
teamRosterId: number;
|
1140
|
+
amount: number;
|
1141
|
+
transactionId: number;
|
1169
1142
|
};
|
1170
1143
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1171
1144
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1172
|
-
},
|
1173
|
-
|
1145
|
+
}, void>;
|
1146
|
+
export: import("@trpc/server").BuildProcedure<"mutation", {
|
1174
1147
|
_config: import("@trpc/server").RootConfig<{
|
1175
1148
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1176
1149
|
meta: object;
|
@@ -1185,22 +1158,42 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1185
1158
|
};
|
1186
1159
|
_input_in: {
|
1187
1160
|
authorization?: string | undefined;
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1161
|
+
limit: number;
|
1162
|
+
page: number;
|
1163
|
+
direction: "asc" | "desc";
|
1164
|
+
orgWorkspaceId?: number | undefined;
|
1165
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1166
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1167
|
+
search?: string | undefined;
|
1192
1168
|
};
|
1193
1169
|
_input_out: {
|
1194
1170
|
authorization?: string | undefined;
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1171
|
+
limit: number;
|
1172
|
+
page: number;
|
1173
|
+
direction: "asc" | "desc";
|
1174
|
+
orgWorkspaceId?: number | undefined;
|
1175
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1176
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1177
|
+
search?: string | undefined;
|
1199
1178
|
};
|
1200
1179
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1201
1180
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1202
|
-
},
|
1203
|
-
|
1181
|
+
}, string>;
|
1182
|
+
}>;
|
1183
|
+
}>;
|
1184
|
+
export declare const createTrpcCaller: import("@trpc/server").RouterCaller<import("@trpc/server/dist/core/router").RouterDef<import("@trpc/server").RootConfig<{
|
1185
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1186
|
+
meta: object;
|
1187
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1188
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1189
|
+
}>, {
|
1190
|
+
discountCode: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1191
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1192
|
+
meta: object;
|
1193
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1194
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1195
|
+
}>, {
|
1196
|
+
get: import("@trpc/server").BuildProcedure<"mutation", {
|
1204
1197
|
_config: import("@trpc/server").RootConfig<{
|
1205
1198
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1206
1199
|
meta: object;
|
@@ -1223,8 +1216,8 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1223
1216
|
};
|
1224
1217
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1225
1218
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1226
|
-
},
|
1227
|
-
|
1219
|
+
}, import("../modules/discount_code/discount_code.model").DiscountCode>;
|
1220
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1228
1221
|
_config: import("@trpc/server").RootConfig<{
|
1229
1222
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1230
1223
|
meta: object;
|
@@ -1239,63 +1232,804 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1239
1232
|
};
|
1240
1233
|
_input_in: {
|
1241
1234
|
authorization?: string | undefined;
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1235
|
+
limit: number;
|
1236
|
+
cursor: number;
|
1237
|
+
orgWorkspaceId?: number | null | undefined;
|
1238
|
+
direction?: "asc" | "desc" | undefined;
|
1245
1239
|
code?: string | undefined;
|
1246
|
-
|
1247
|
-
paymentAmount?: number | undefined;
|
1240
|
+
listExpired?: boolean | undefined;
|
1248
1241
|
};
|
1249
1242
|
_input_out: {
|
1250
1243
|
authorization?: string | undefined;
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1244
|
+
limit: number;
|
1245
|
+
direction: "asc" | "desc";
|
1246
|
+
cursor: number;
|
1247
|
+
listExpired: boolean;
|
1248
|
+
orgWorkspaceId?: number | null | undefined;
|
1255
1249
|
code?: string | undefined;
|
1256
|
-
paymentAmount?: number | undefined;
|
1257
1250
|
};
|
1258
1251
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1259
1252
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1260
1253
|
}, {
|
1261
|
-
|
1254
|
+
items: import("objection").Page<import("../modules/discount_code/discount_code.model").DiscountCode>;
|
1255
|
+
nextCursor: number | undefined;
|
1256
|
+
}>;
|
1257
|
+
create: import("@trpc/server").BuildProcedure<"mutation", {
|
1258
|
+
_config: import("@trpc/server").RootConfig<{
|
1259
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1260
|
+
meta: object;
|
1261
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1262
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1263
|
+
}>;
|
1264
|
+
_meta: object;
|
1265
|
+
_ctx_out: {
|
1266
|
+
req: import("http").IncomingMessage;
|
1267
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1268
|
+
user: import("../types/auth").TJwtPayload;
|
1269
|
+
};
|
1270
|
+
_input_in: {
|
1271
|
+
authorization?: string | undefined;
|
1272
|
+
code: string;
|
1273
|
+
description: string;
|
1274
|
+
appliesWhen: "purchase";
|
1275
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1276
|
+
amountType: "flat-rate" | "percentage";
|
1277
|
+
amountValue: number;
|
1278
|
+
validFrom: Date | null;
|
1279
|
+
validUntil: Date | null;
|
1280
|
+
orgWorkspaceId?: number | null | undefined;
|
1281
|
+
};
|
1282
|
+
_input_out: {
|
1283
|
+
authorization?: string | undefined;
|
1284
|
+
code: string;
|
1285
|
+
description: string;
|
1286
|
+
appliesWhen: "purchase";
|
1287
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1288
|
+
amountType: "flat-rate" | "percentage";
|
1289
|
+
amountValue: number;
|
1290
|
+
validFrom: Date | null;
|
1291
|
+
validUntil: Date | null;
|
1292
|
+
orgWorkspaceId?: number | null | undefined;
|
1293
|
+
};
|
1294
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1295
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1296
|
+
}, {
|
1297
|
+
id: number;
|
1262
1298
|
}>;
|
1299
|
+
update: import("@trpc/server").BuildProcedure<"mutation", {
|
1300
|
+
_config: import("@trpc/server").RootConfig<{
|
1301
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1302
|
+
meta: object;
|
1303
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1304
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1305
|
+
}>;
|
1306
|
+
_meta: object;
|
1307
|
+
_ctx_out: {
|
1308
|
+
req: import("http").IncomingMessage;
|
1309
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1310
|
+
user: import("../types/auth").TJwtPayload;
|
1311
|
+
};
|
1312
|
+
_input_in: {
|
1313
|
+
authorization?: string | undefined;
|
1314
|
+
code: string;
|
1315
|
+
id: number;
|
1316
|
+
description: string;
|
1317
|
+
appliesWhen: "purchase";
|
1318
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1319
|
+
amountType: "flat-rate" | "percentage";
|
1320
|
+
amountValue: number;
|
1321
|
+
validFrom: Date | null;
|
1322
|
+
validUntil: Date | null;
|
1323
|
+
usageLimit: number | null;
|
1324
|
+
orgWorkspaceId?: number | null | undefined;
|
1325
|
+
};
|
1326
|
+
_input_out: {
|
1327
|
+
authorization?: string | undefined;
|
1328
|
+
code: string;
|
1329
|
+
id: number;
|
1330
|
+
description: string;
|
1331
|
+
appliesWhen: "purchase";
|
1332
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1333
|
+
amountType: "flat-rate" | "percentage";
|
1334
|
+
amountValue: number;
|
1335
|
+
validFrom: Date | null;
|
1336
|
+
validUntil: Date | null;
|
1337
|
+
usageLimit: number | null;
|
1338
|
+
orgWorkspaceId?: number | null | undefined;
|
1339
|
+
};
|
1340
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1341
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1342
|
+
}, void>;
|
1343
|
+
delete: import("@trpc/server").BuildProcedure<"mutation", {
|
1344
|
+
_config: import("@trpc/server").RootConfig<{
|
1345
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1346
|
+
meta: object;
|
1347
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1348
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1349
|
+
}>;
|
1350
|
+
_meta: object;
|
1351
|
+
_ctx_out: {
|
1352
|
+
req: import("http").IncomingMessage;
|
1353
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1354
|
+
user: import("../types/auth").TJwtPayload;
|
1355
|
+
};
|
1356
|
+
_input_in: {
|
1357
|
+
authorization?: string | undefined;
|
1358
|
+
id: number;
|
1359
|
+
};
|
1360
|
+
_input_out: {
|
1361
|
+
authorization?: string | undefined;
|
1362
|
+
id: number;
|
1363
|
+
};
|
1364
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1365
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1366
|
+
}, void>;
|
1367
|
+
check: import("@trpc/server").BuildProcedure<"mutation", {
|
1368
|
+
_config: import("@trpc/server").RootConfig<{
|
1369
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1370
|
+
meta: object;
|
1371
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1372
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1373
|
+
}>;
|
1374
|
+
_meta: object;
|
1375
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1376
|
+
_input_in: {
|
1377
|
+
id: number;
|
1378
|
+
appliesWhen: "purchase";
|
1379
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1380
|
+
productValue: number;
|
1381
|
+
code?: string | undefined;
|
1382
|
+
};
|
1383
|
+
_input_out: {
|
1384
|
+
id: number;
|
1385
|
+
appliesWhen: "purchase";
|
1386
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1387
|
+
productValue: number;
|
1388
|
+
code?: string | undefined;
|
1389
|
+
};
|
1390
|
+
_output_in: {
|
1391
|
+
code: string;
|
1392
|
+
description: string;
|
1393
|
+
amountType: "flat-rate" | "percentage";
|
1394
|
+
amountValue: number;
|
1395
|
+
reducedValue: number;
|
1396
|
+
newValue: number;
|
1397
|
+
};
|
1398
|
+
_output_out: {
|
1399
|
+
code: string;
|
1400
|
+
description: string;
|
1401
|
+
amountType: "flat-rate" | "percentage";
|
1402
|
+
amountValue: number;
|
1403
|
+
reducedValue: number;
|
1404
|
+
newValue: number;
|
1405
|
+
};
|
1406
|
+
}, unknown>;
|
1263
1407
|
}>;
|
1264
|
-
|
1408
|
+
freeAgentPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1265
1409
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1266
1410
|
meta: object;
|
1267
1411
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1268
1412
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1269
1413
|
}>, {
|
1270
|
-
|
1414
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1271
1415
|
_config: import("@trpc/server").RootConfig<{
|
1272
1416
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1273
1417
|
meta: object;
|
1274
1418
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1275
1419
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1276
1420
|
}>;
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1421
|
+
_meta: object;
|
1422
|
+
_ctx_out: {
|
1423
|
+
req: import("http").IncomingMessage;
|
1424
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1425
|
+
user: import("../types/auth").TJwtPayload;
|
1426
|
+
};
|
1427
|
+
_input_in: {
|
1428
|
+
authorization?: string | undefined;
|
1429
|
+
description: string;
|
1430
|
+
freeAgentId: number;
|
1431
|
+
code?: string | undefined;
|
1432
|
+
leagueId?: number | undefined;
|
1433
|
+
paymentMode?: "session" | "intent" | undefined;
|
1434
|
+
cancelPath?: string | undefined;
|
1435
|
+
};
|
1436
|
+
_input_out: {
|
1437
|
+
authorization?: string | undefined;
|
1438
|
+
description: string;
|
1439
|
+
paymentMode: "session" | "intent";
|
1440
|
+
freeAgentId: number;
|
1441
|
+
code?: string | undefined;
|
1442
|
+
leagueId?: number | undefined;
|
1443
|
+
cancelPath?: string | undefined;
|
1444
|
+
};
|
1280
1445
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1281
1446
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1447
|
+
}, {
|
1448
|
+
ephemeralKey: string | undefined;
|
1449
|
+
paymentIntentClientSecret: string;
|
1450
|
+
paymentIntentId: string;
|
1451
|
+
customerId: string;
|
1452
|
+
orgPublishableKey: string | undefined;
|
1453
|
+
orgStripeAccountId: string;
|
1454
|
+
paymentIntent: {
|
1455
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
1456
|
+
discountAndFee: {
|
1457
|
+
discountApplied: number;
|
1458
|
+
discountedAmount: number;
|
1459
|
+
priceAmount: number;
|
1460
|
+
otherTaxLabel: string;
|
1461
|
+
otherTaxPercent: number;
|
1462
|
+
otherTax: number;
|
1463
|
+
bantrTax: number;
|
1464
|
+
stripeTax: number;
|
1465
|
+
totalTax: number;
|
1466
|
+
totalWithTax: number;
|
1467
|
+
transferAmount: number;
|
1468
|
+
};
|
1469
|
+
};
|
1470
|
+
} | {
|
1471
|
+
redirectUrl: string;
|
1472
|
+
}>;
|
1473
|
+
}>;
|
1474
|
+
leaguePayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1475
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1476
|
+
meta: object;
|
1477
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1478
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1479
|
+
}>, {
|
1480
|
+
trackUsersAndPayments: import("@trpc/server").BuildProcedure<"query", {
|
1481
|
+
_config: import("@trpc/server").RootConfig<{
|
1482
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1483
|
+
meta: object;
|
1484
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1485
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1486
|
+
}>;
|
1487
|
+
_meta: object;
|
1488
|
+
_ctx_out: {
|
1489
|
+
req: import("http").IncomingMessage;
|
1490
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1491
|
+
user: import("../types/auth").TJwtPayload;
|
1492
|
+
};
|
1493
|
+
_input_in: {
|
1494
|
+
authorization?: string | undefined;
|
1495
|
+
leagueId: number;
|
1496
|
+
teamId: number;
|
1497
|
+
};
|
1498
|
+
_input_out: {
|
1499
|
+
authorization?: string | undefined;
|
1500
|
+
leagueId: number;
|
1501
|
+
teamId: number;
|
1502
|
+
};
|
1503
|
+
_output_in: {
|
1504
|
+
id: number;
|
1505
|
+
deletedAt: Date | null;
|
1506
|
+
memberId: number;
|
1507
|
+
member: {
|
1508
|
+
id: number;
|
1509
|
+
firstName: string | null;
|
1510
|
+
email: string;
|
1511
|
+
lastName: string | null;
|
1512
|
+
};
|
1513
|
+
totalPaid: number;
|
1514
|
+
payments: {
|
1515
|
+
id: number;
|
1516
|
+
payerId: number;
|
1517
|
+
createdAt: string | Date;
|
1518
|
+
price: number;
|
1519
|
+
amountApplied: number | null;
|
1520
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1521
|
+
}[];
|
1522
|
+
}[];
|
1523
|
+
_output_out: {
|
1524
|
+
id: number;
|
1525
|
+
deletedAt: Date | null;
|
1526
|
+
memberId: number;
|
1527
|
+
member: {
|
1528
|
+
id: number;
|
1529
|
+
firstName: string | null;
|
1530
|
+
email: string;
|
1531
|
+
lastName: string | null;
|
1532
|
+
};
|
1533
|
+
totalPaid: number;
|
1534
|
+
payments: {
|
1535
|
+
id: number;
|
1536
|
+
payerId: number;
|
1537
|
+
createdAt: string | Date;
|
1538
|
+
price: number;
|
1539
|
+
amountApplied: number | null;
|
1540
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1541
|
+
}[];
|
1542
|
+
}[];
|
1543
|
+
}, unknown>;
|
1544
|
+
insertOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1545
|
+
_config: import("@trpc/server").RootConfig<{
|
1546
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1547
|
+
meta: object;
|
1548
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1549
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1550
|
+
}>;
|
1551
|
+
_meta: object;
|
1552
|
+
_ctx_out: {
|
1553
|
+
req: import("http").IncomingMessage;
|
1554
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1555
|
+
user: import("../types/auth").TJwtPayload;
|
1556
|
+
};
|
1557
|
+
_input_in: {
|
1558
|
+
authorization?: string | undefined;
|
1559
|
+
price: number;
|
1560
|
+
leagueId: number;
|
1561
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1562
|
+
teamRosterId: number;
|
1563
|
+
};
|
1564
|
+
_input_out: {
|
1565
|
+
authorization?: string | undefined;
|
1566
|
+
price: number;
|
1567
|
+
leagueId: number;
|
1568
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1569
|
+
teamRosterId: number;
|
1570
|
+
};
|
1571
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1572
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1573
|
+
}, null>;
|
1574
|
+
updateOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1575
|
+
_config: import("@trpc/server").RootConfig<{
|
1576
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1577
|
+
meta: object;
|
1578
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1579
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1580
|
+
}>;
|
1581
|
+
_meta: object;
|
1582
|
+
_ctx_out: {
|
1583
|
+
req: import("http").IncomingMessage;
|
1584
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1585
|
+
user: import("../types/auth").TJwtPayload;
|
1586
|
+
};
|
1587
|
+
_input_in: {
|
1588
|
+
authorization?: string | undefined;
|
1589
|
+
id: number;
|
1590
|
+
price: number;
|
1591
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1592
|
+
teamRosterId: number;
|
1593
|
+
};
|
1594
|
+
_input_out: {
|
1595
|
+
authorization?: string | undefined;
|
1596
|
+
id: number;
|
1597
|
+
price: number;
|
1598
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
1599
|
+
teamRosterId: number;
|
1600
|
+
};
|
1601
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1602
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1603
|
+
}, null>;
|
1604
|
+
deleteOfflinePayment: import("@trpc/server").BuildProcedure<"mutation", {
|
1605
|
+
_config: import("@trpc/server").RootConfig<{
|
1606
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1607
|
+
meta: object;
|
1608
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1609
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1610
|
+
}>;
|
1611
|
+
_meta: object;
|
1612
|
+
_ctx_out: {
|
1613
|
+
req: import("http").IncomingMessage;
|
1614
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1615
|
+
user: import("../types/auth").TJwtPayload;
|
1616
|
+
};
|
1617
|
+
_input_in: {
|
1618
|
+
authorization?: string | undefined;
|
1619
|
+
id: number;
|
1620
|
+
};
|
1621
|
+
_input_out: {
|
1622
|
+
authorization?: string | undefined;
|
1623
|
+
id: number;
|
1624
|
+
};
|
1625
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1626
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1627
|
+
}, null>;
|
1628
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1629
|
+
_config: import("@trpc/server").RootConfig<{
|
1630
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1631
|
+
meta: object;
|
1632
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1633
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1634
|
+
}>;
|
1635
|
+
_meta: object;
|
1636
|
+
_ctx_out: {
|
1637
|
+
req: import("http").IncomingMessage;
|
1638
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1639
|
+
user: import("../types/auth").TJwtPayload;
|
1640
|
+
};
|
1641
|
+
_input_in: {
|
1642
|
+
authorization?: string | undefined;
|
1643
|
+
leagueId: number;
|
1644
|
+
teamId: number;
|
1645
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1646
|
+
code?: string | undefined;
|
1647
|
+
paymentMode?: "session" | "intent" | undefined;
|
1648
|
+
paymentAmount?: number | undefined;
|
1649
|
+
};
|
1650
|
+
_input_out: {
|
1651
|
+
authorization?: string | undefined;
|
1652
|
+
leagueId: number;
|
1653
|
+
teamId: number;
|
1654
|
+
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
1655
|
+
paymentMode: "session" | "intent";
|
1656
|
+
code?: string | undefined;
|
1657
|
+
paymentAmount?: number | undefined;
|
1658
|
+
};
|
1659
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1660
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1661
|
+
}, {
|
1662
|
+
eventName: string;
|
1663
|
+
}>;
|
1664
|
+
}>;
|
1665
|
+
oauth: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1666
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1667
|
+
meta: object;
|
1668
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1669
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1670
|
+
}>, {
|
1671
|
+
googleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1672
|
+
_config: import("@trpc/server").RootConfig<{
|
1673
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1674
|
+
meta: object;
|
1675
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1676
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1677
|
+
}>;
|
1678
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1679
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1680
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1681
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1682
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1683
|
+
_meta: object;
|
1684
|
+
}, string>;
|
1685
|
+
googleCallback: import("@trpc/server").BuildProcedure<"query", {
|
1686
|
+
_config: import("@trpc/server").RootConfig<{
|
1687
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1688
|
+
meta: object;
|
1689
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1690
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1691
|
+
}>;
|
1692
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1693
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1694
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1695
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1696
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1697
|
+
_meta: object;
|
1698
|
+
}, void>;
|
1699
|
+
googleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1700
|
+
_config: import("@trpc/server").RootConfig<{
|
1701
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1702
|
+
meta: object;
|
1703
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1704
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1705
|
+
}>;
|
1706
|
+
_meta: object;
|
1707
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1708
|
+
_input_in: {
|
1709
|
+
code: string;
|
1710
|
+
idToken?: string | undefined;
|
1711
|
+
};
|
1712
|
+
_input_out: {
|
1713
|
+
code: string;
|
1714
|
+
idToken?: string | undefined;
|
1715
|
+
};
|
1716
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1717
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1718
|
+
}, {
|
1719
|
+
accessToken: string;
|
1720
|
+
refreshToken: string;
|
1721
|
+
accountStatus: string;
|
1722
|
+
redirectTeamId?: number | null;
|
1723
|
+
authSchemas: import("../types/member").TAuthSchemas;
|
1724
|
+
memberId: number;
|
1725
|
+
bio: string | null;
|
1726
|
+
city?: string;
|
1727
|
+
street?: string;
|
1728
|
+
state?: string;
|
1729
|
+
avatar: string | null;
|
1730
|
+
teams: import("../models/team").Team[];
|
1731
|
+
favoriteTeam: number | undefined | null;
|
1732
|
+
zip: string | undefined;
|
1733
|
+
phoneNumber: string | null;
|
1734
|
+
gender?: string;
|
1735
|
+
birthday: string | null;
|
1736
|
+
location: string | null;
|
1737
|
+
email: string;
|
1738
|
+
firstName: string | null;
|
1739
|
+
lastName: string | null;
|
1740
|
+
}>;
|
1741
|
+
appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
1742
|
+
_config: import("@trpc/server").RootConfig<{
|
1743
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1744
|
+
meta: object;
|
1745
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1746
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1747
|
+
}>;
|
1748
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1749
|
+
_input_in: typeof import("@trpc/server").unsetMarker;
|
1750
|
+
_input_out: typeof import("@trpc/server").unsetMarker;
|
1751
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1752
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1753
|
+
_meta: object;
|
1754
|
+
}, string>;
|
1755
|
+
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1756
|
+
_config: import("@trpc/server").RootConfig<{
|
1757
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1758
|
+
meta: object;
|
1759
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1760
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1761
|
+
}>;
|
1762
|
+
_meta: object;
|
1763
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1764
|
+
_input_in: {
|
1765
|
+
code: string;
|
1766
|
+
};
|
1767
|
+
_input_out: {
|
1768
|
+
code: string;
|
1769
|
+
};
|
1770
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1771
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1772
|
+
}, void>;
|
1773
|
+
appleMobileCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
1774
|
+
_config: import("@trpc/server").RootConfig<{
|
1775
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1776
|
+
meta: object;
|
1777
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1778
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1779
|
+
}>;
|
1780
|
+
_meta: object;
|
1781
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1782
|
+
_input_in: {
|
1783
|
+
idToken: string;
|
1784
|
+
};
|
1785
|
+
_input_out: {
|
1786
|
+
idToken: string;
|
1787
|
+
};
|
1788
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1789
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1790
|
+
}, {
|
1791
|
+
accessToken: string;
|
1792
|
+
refreshToken: string;
|
1793
|
+
accountStatus: string;
|
1794
|
+
redirectTeamId?: number | null;
|
1795
|
+
authSchemas: import("../types/member").TAuthSchemas;
|
1796
|
+
memberId: number;
|
1797
|
+
bio: string | null;
|
1798
|
+
city?: string;
|
1799
|
+
street?: string;
|
1800
|
+
state?: string;
|
1801
|
+
avatar: string | null;
|
1802
|
+
teams: import("../models/team").Team[];
|
1803
|
+
favoriteTeam: number | undefined | null;
|
1804
|
+
zip: string | undefined;
|
1805
|
+
phoneNumber: string | null;
|
1806
|
+
gender?: string;
|
1807
|
+
birthday: string | null;
|
1808
|
+
location: string | null;
|
1809
|
+
email: string;
|
1810
|
+
firstName: string | null;
|
1811
|
+
lastName: string | null;
|
1812
|
+
}>;
|
1813
|
+
revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
|
1814
|
+
_config: import("@trpc/server").RootConfig<{
|
1815
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1816
|
+
meta: object;
|
1817
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1818
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1819
|
+
}>;
|
1820
|
+
_meta: object;
|
1821
|
+
_ctx_out: {
|
1822
|
+
req: import("http").IncomingMessage;
|
1823
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1824
|
+
user: import("../types/auth").TJwtPayload;
|
1825
|
+
};
|
1826
|
+
_input_in: {
|
1827
|
+
authorization?: string | undefined;
|
1828
|
+
provider: "google" | "apple";
|
1829
|
+
};
|
1830
|
+
_input_out: {
|
1831
|
+
authorization?: string | undefined;
|
1832
|
+
provider: "google" | "apple";
|
1833
|
+
};
|
1834
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1835
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1836
|
+
}, import("../types/auth").MemberAuthResponse>;
|
1837
|
+
}>;
|
1838
|
+
organization: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1839
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1840
|
+
meta: object;
|
1841
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1842
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1843
|
+
}>, {
|
1844
|
+
fetchStripeFee: import("@trpc/server").BuildProcedure<"query", {
|
1845
|
+
_config: import("@trpc/server").RootConfig<{
|
1846
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1847
|
+
meta: object;
|
1848
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1849
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1850
|
+
}>;
|
1851
|
+
_meta: object;
|
1852
|
+
_ctx_out: {
|
1853
|
+
req: import("http").IncomingMessage;
|
1854
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1855
|
+
user: import("../types/auth").TJwtPayload;
|
1856
|
+
};
|
1857
|
+
_input_in: {
|
1858
|
+
authorization?: string | undefined;
|
1859
|
+
workspaceId?: number | undefined;
|
1860
|
+
};
|
1861
|
+
_input_out: {
|
1862
|
+
authorization?: string | undefined;
|
1863
|
+
workspaceId?: number | undefined;
|
1864
|
+
};
|
1865
|
+
_output_in: {
|
1866
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1867
|
+
extraTechnologyFeePercent: number;
|
1868
|
+
extraTechnologyFeeLabel: string | null;
|
1869
|
+
};
|
1870
|
+
_output_out: {
|
1871
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1872
|
+
extraTechnologyFeePercent: number;
|
1873
|
+
extraTechnologyFeeLabel: string | null;
|
1874
|
+
};
|
1875
|
+
}, unknown>;
|
1876
|
+
updateStripeFee: import("@trpc/server").BuildProcedure<"mutation", {
|
1877
|
+
_config: import("@trpc/server").RootConfig<{
|
1878
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1879
|
+
meta: object;
|
1880
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1881
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1882
|
+
}>;
|
1883
|
+
_meta: object;
|
1884
|
+
_ctx_out: {
|
1885
|
+
req: import("http").IncomingMessage;
|
1886
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1887
|
+
user: import("../types/auth").TJwtPayload;
|
1888
|
+
};
|
1889
|
+
_input_in: {
|
1890
|
+
authorization?: string | undefined;
|
1891
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1892
|
+
extraTechnologyFeePercent: number;
|
1893
|
+
extraTechnologyFeeLabel: string | null;
|
1894
|
+
workspaceId?: number | undefined;
|
1895
|
+
};
|
1896
|
+
_input_out: {
|
1897
|
+
authorization?: string | undefined;
|
1898
|
+
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1899
|
+
extraTechnologyFeePercent: number;
|
1900
|
+
extraTechnologyFeeLabel: string | null;
|
1901
|
+
workspaceId?: number | undefined;
|
1902
|
+
};
|
1903
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1904
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1905
|
+
}, void>;
|
1906
|
+
}>;
|
1907
|
+
pickupPayments: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1908
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1909
|
+
meta: object;
|
1910
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1911
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1912
|
+
}>, {
|
1913
|
+
registrationCheckout: import("@trpc/server").BuildProcedure<"mutation", {
|
1914
|
+
_config: import("@trpc/server").RootConfig<{
|
1915
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1916
|
+
meta: object;
|
1917
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1918
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1919
|
+
}>;
|
1920
|
+
_meta: object;
|
1921
|
+
_ctx_out: {
|
1922
|
+
req: import("http").IncomingMessage;
|
1923
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1924
|
+
user: import("../types/auth").TJwtPayload;
|
1925
|
+
};
|
1926
|
+
_input_in: {
|
1927
|
+
authorization?: string | undefined;
|
1928
|
+
pickupId: number;
|
1929
|
+
memberId: number;
|
1930
|
+
code?: string | undefined;
|
1931
|
+
paymentMode?: "session" | "intent" | undefined;
|
1932
|
+
cancelPath?: string | undefined;
|
1933
|
+
};
|
1934
|
+
_input_out: {
|
1935
|
+
authorization?: string | undefined;
|
1936
|
+
pickupId: number;
|
1937
|
+
memberId: number;
|
1938
|
+
paymentMode: "session" | "intent";
|
1939
|
+
code?: string | undefined;
|
1940
|
+
cancelPath?: string | undefined;
|
1941
|
+
};
|
1942
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1943
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1944
|
+
}, {
|
1945
|
+
eventName: string;
|
1946
|
+
}>;
|
1947
|
+
}>;
|
1948
|
+
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1949
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1950
|
+
meta: object;
|
1951
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1952
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1953
|
+
}>, {
|
1954
|
+
info: import("@trpc/server").BuildProcedure<"mutation", {
|
1955
|
+
_config: import("@trpc/server").RootConfig<{
|
1956
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1957
|
+
meta: object;
|
1958
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1959
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1960
|
+
}>;
|
1961
|
+
_meta: object;
|
1962
|
+
_ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1963
|
+
_input_in: {
|
1964
|
+
id: number;
|
1965
|
+
appliesWhen: "purchase";
|
1966
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1967
|
+
productValue: number;
|
1968
|
+
code?: string | undefined;
|
1969
|
+
};
|
1970
|
+
_input_out: {
|
1971
|
+
id: number;
|
1972
|
+
appliesWhen: "purchase";
|
1973
|
+
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
1974
|
+
productValue: number;
|
1975
|
+
code?: string | undefined;
|
1976
|
+
};
|
1977
|
+
_output_in: {
|
1978
|
+
discountApplied: number;
|
1979
|
+
totalWithTax: number;
|
1980
|
+
totalTax: number;
|
1981
|
+
otherTaxLabel: string;
|
1982
|
+
otherTax: number;
|
1983
|
+
otherTaxPercent: number;
|
1984
|
+
code?: string | undefined;
|
1985
|
+
description?: string | undefined;
|
1986
|
+
};
|
1987
|
+
_output_out: {
|
1988
|
+
discountApplied: number;
|
1989
|
+
totalWithTax: number;
|
1990
|
+
totalTax: number;
|
1991
|
+
otherTaxLabel: string;
|
1992
|
+
otherTax: number;
|
1993
|
+
otherTaxPercent: number;
|
1994
|
+
code?: string | undefined;
|
1995
|
+
description?: string | undefined;
|
1996
|
+
};
|
1997
|
+
}, unknown>;
|
1998
|
+
}>;
|
1999
|
+
team: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
2000
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
2001
|
+
meta: object;
|
2002
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
2003
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
2004
|
+
}>, {
|
2005
|
+
getInvitedMembers: import("@trpc/server").BuildProcedure<"query", {
|
1285
2006
|
_config: import("@trpc/server").RootConfig<{
|
1286
2007
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1287
2008
|
meta: object;
|
1288
2009
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1289
2010
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1290
2011
|
}>;
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
2012
|
+
_meta: object;
|
2013
|
+
_ctx_out: {
|
2014
|
+
req: import("http").IncomingMessage;
|
2015
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2016
|
+
user: import("../types/auth").TJwtPayload;
|
2017
|
+
};
|
2018
|
+
_input_in: {
|
2019
|
+
authorization?: string | undefined;
|
2020
|
+
teamId: number;
|
2021
|
+
};
|
2022
|
+
_input_out: {
|
2023
|
+
authorization?: string | undefined;
|
2024
|
+
teamId: number;
|
2025
|
+
};
|
1294
2026
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1295
2027
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
2028
|
+
}, (import("../models/team_roster").TeamRoster & {
|
2029
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
2030
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
2031
|
+
})[]>;
|
2032
|
+
getInvitedByOrganization: import("@trpc/server").BuildProcedure<"query", {
|
1299
2033
|
_config: import("@trpc/server").RootConfig<{
|
1300
2034
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1301
2035
|
meta: object;
|
@@ -1303,55 +2037,66 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1303
2037
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1304
2038
|
}>;
|
1305
2039
|
_meta: object;
|
1306
|
-
_ctx_out:
|
2040
|
+
_ctx_out: {
|
2041
|
+
req: import("http").IncomingMessage;
|
2042
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2043
|
+
user: import("../types/auth").TJwtPayload;
|
2044
|
+
};
|
1307
2045
|
_input_in: {
|
1308
|
-
|
1309
|
-
|
2046
|
+
authorization?: string | undefined;
|
2047
|
+
organizationId: number;
|
2048
|
+
teamId: number;
|
1310
2049
|
};
|
1311
2050
|
_input_out: {
|
1312
|
-
|
1313
|
-
|
2051
|
+
authorization?: string | undefined;
|
2052
|
+
organizationId: number;
|
2053
|
+
teamId: number;
|
1314
2054
|
};
|
1315
2055
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1316
2056
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1317
|
-
}, {
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
authSchemas: import("../types/member").TAuthSchemas;
|
1323
|
-
memberId: number;
|
1324
|
-
bio: string | null;
|
1325
|
-
city?: string;
|
1326
|
-
street?: string;
|
1327
|
-
state?: string;
|
1328
|
-
avatar: string | null;
|
1329
|
-
teams: import("../models/team").Team[];
|
1330
|
-
favoriteTeam: number | undefined | null;
|
1331
|
-
zip: string | undefined;
|
1332
|
-
phoneNumber: string | null;
|
1333
|
-
gender?: string;
|
1334
|
-
birthday: string | null;
|
1335
|
-
location: string | null;
|
1336
|
-
email: string;
|
1337
|
-
firstName: string | null;
|
1338
|
-
lastName: string | null;
|
1339
|
-
}>;
|
1340
|
-
appleAuth: import("@trpc/server").BuildProcedure<"mutation", {
|
2057
|
+
}, (import("../models/team_roster").TeamRoster & {
|
2058
|
+
member: Pick<import("../models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
2059
|
+
invites: Pick<import("../models/invite").Invite, "isActive">[];
|
2060
|
+
})[]>;
|
2061
|
+
createInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
1341
2062
|
_config: import("@trpc/server").RootConfig<{
|
1342
2063
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1343
2064
|
meta: object;
|
1344
2065
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1345
2066
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1346
2067
|
}>;
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
2068
|
+
_meta: object;
|
2069
|
+
_ctx_out: {
|
2070
|
+
req: import("http").IncomingMessage;
|
2071
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2072
|
+
user: import("../types/auth").TJwtPayload;
|
2073
|
+
};
|
2074
|
+
_input_in: {
|
2075
|
+
authorization?: string | undefined;
|
2076
|
+
teamId: number;
|
2077
|
+
invites: {
|
2078
|
+
firstName: string;
|
2079
|
+
email: string;
|
2080
|
+
lastName: string;
|
2081
|
+
}[];
|
2082
|
+
organizationId?: number | undefined;
|
2083
|
+
leagueId?: number | undefined;
|
2084
|
+
};
|
2085
|
+
_input_out: {
|
2086
|
+
authorization?: string | undefined;
|
2087
|
+
teamId: number;
|
2088
|
+
invites: {
|
2089
|
+
firstName: string;
|
2090
|
+
email: string;
|
2091
|
+
lastName: string;
|
2092
|
+
}[];
|
2093
|
+
organizationId?: number | undefined;
|
2094
|
+
leagueId?: number | undefined;
|
2095
|
+
};
|
1350
2096
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1351
2097
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1352
|
-
|
1353
|
-
|
1354
|
-
appleCallback: import("@trpc/server").BuildProcedure<"mutation", {
|
2098
|
+
}, void>;
|
2099
|
+
createInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
1355
2100
|
_config: import("@trpc/server").RootConfig<{
|
1356
2101
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1357
2102
|
meta: object;
|
@@ -1359,17 +2104,37 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1359
2104
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1360
2105
|
}>;
|
1361
2106
|
_meta: object;
|
1362
|
-
_ctx_out:
|
2107
|
+
_ctx_out: {
|
2108
|
+
req: import("http").IncomingMessage;
|
2109
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2110
|
+
user: import("../types/auth").TJwtPayload;
|
2111
|
+
};
|
1363
2112
|
_input_in: {
|
1364
|
-
|
2113
|
+
authorization?: string | undefined;
|
2114
|
+
teamId: number;
|
2115
|
+
invites: {
|
2116
|
+
firstName: string;
|
2117
|
+
email: string;
|
2118
|
+
lastName: string;
|
2119
|
+
}[];
|
2120
|
+
organizationId?: number | undefined;
|
2121
|
+
leagueId?: number | undefined;
|
1365
2122
|
};
|
1366
2123
|
_input_out: {
|
1367
|
-
|
2124
|
+
authorization?: string | undefined;
|
2125
|
+
teamId: number;
|
2126
|
+
invites: {
|
2127
|
+
firstName: string;
|
2128
|
+
email: string;
|
2129
|
+
lastName: string;
|
2130
|
+
}[];
|
2131
|
+
organizationId?: number | undefined;
|
2132
|
+
leagueId?: number | undefined;
|
1368
2133
|
};
|
1369
2134
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1370
2135
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1371
2136
|
}, void>;
|
1372
|
-
|
2137
|
+
cancelInviteByCaptain: import("@trpc/server").BuildProcedure<"mutation", {
|
1373
2138
|
_config: import("@trpc/server").RootConfig<{
|
1374
2139
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1375
2140
|
meta: object;
|
@@ -1377,39 +2142,25 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1377
2142
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1378
2143
|
}>;
|
1379
2144
|
_meta: object;
|
1380
|
-
_ctx_out:
|
2145
|
+
_ctx_out: {
|
2146
|
+
req: import("http").IncomingMessage;
|
2147
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2148
|
+
user: import("../types/auth").TJwtPayload;
|
2149
|
+
};
|
1381
2150
|
_input_in: {
|
1382
|
-
|
2151
|
+
authorization?: string | undefined;
|
2152
|
+
teamId: number;
|
2153
|
+
inviteId: number;
|
1383
2154
|
};
|
1384
2155
|
_input_out: {
|
1385
|
-
|
2156
|
+
authorization?: string | undefined;
|
2157
|
+
teamId: number;
|
2158
|
+
inviteId: number;
|
1386
2159
|
};
|
1387
2160
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1388
2161
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1389
|
-
},
|
1390
|
-
|
1391
|
-
refreshToken: string;
|
1392
|
-
accountStatus: string;
|
1393
|
-
redirectTeamId?: number | null;
|
1394
|
-
authSchemas: import("../types/member").TAuthSchemas;
|
1395
|
-
memberId: number;
|
1396
|
-
bio: string | null;
|
1397
|
-
city?: string;
|
1398
|
-
street?: string;
|
1399
|
-
state?: string;
|
1400
|
-
avatar: string | null;
|
1401
|
-
teams: import("../models/team").Team[];
|
1402
|
-
favoriteTeam: number | undefined | null;
|
1403
|
-
zip: string | undefined;
|
1404
|
-
phoneNumber: string | null;
|
1405
|
-
gender?: string;
|
1406
|
-
birthday: string | null;
|
1407
|
-
location: string | null;
|
1408
|
-
email: string;
|
1409
|
-
firstName: string | null;
|
1410
|
-
lastName: string | null;
|
1411
|
-
}>;
|
1412
|
-
revokeAccessToken: import("@trpc/server").BuildProcedure<"mutation", {
|
2162
|
+
}, void>;
|
2163
|
+
cancelInviteByOrganization: import("@trpc/server").BuildProcedure<"mutation", {
|
1413
2164
|
_config: import("@trpc/server").RootConfig<{
|
1414
2165
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1415
2166
|
meta: object;
|
@@ -1424,23 +2175,25 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1424
2175
|
};
|
1425
2176
|
_input_in: {
|
1426
2177
|
authorization?: string | undefined;
|
1427
|
-
|
2178
|
+
teamId: number;
|
2179
|
+
inviteId: number;
|
1428
2180
|
};
|
1429
2181
|
_input_out: {
|
1430
2182
|
authorization?: string | undefined;
|
1431
|
-
|
2183
|
+
teamId: number;
|
2184
|
+
inviteId: number;
|
1432
2185
|
};
|
1433
2186
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1434
2187
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1435
|
-
},
|
2188
|
+
}, void>;
|
1436
2189
|
}>;
|
1437
|
-
|
2190
|
+
transaction: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1438
2191
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1439
2192
|
meta: object;
|
1440
2193
|
errorShape: import("@trpc/server").DefaultErrorShape;
|
1441
2194
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1442
2195
|
}>, {
|
1443
|
-
|
2196
|
+
list: import("@trpc/server").BuildProcedure<"query", {
|
1444
2197
|
_config: import("@trpc/server").RootConfig<{
|
1445
2198
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1446
2199
|
meta: object;
|
@@ -1455,24 +2208,33 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1455
2208
|
};
|
1456
2209
|
_input_in: {
|
1457
2210
|
authorization?: string | undefined;
|
1458
|
-
|
2211
|
+
limit: number;
|
2212
|
+
page: number;
|
2213
|
+
direction: "asc" | "desc";
|
2214
|
+
orgWorkspaceId?: number | undefined;
|
2215
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2216
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2217
|
+
search?: string | undefined;
|
1459
2218
|
};
|
1460
2219
|
_input_out: {
|
1461
2220
|
authorization?: string | undefined;
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
_output_out: {
|
1470
|
-
technologyFeeMode: import("../constants").TECHNOLOGY_FEE_MODES;
|
1471
|
-
extraTechnologyFeePercent: number;
|
1472
|
-
extraTechnologyFeeLabel: string | null;
|
2221
|
+
limit: number;
|
2222
|
+
page: number;
|
2223
|
+
direction: "asc" | "desc";
|
2224
|
+
orgWorkspaceId?: number | undefined;
|
2225
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2226
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2227
|
+
search?: string | undefined;
|
1473
2228
|
};
|
1474
|
-
|
1475
|
-
|
2229
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2230
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2231
|
+
}, {
|
2232
|
+
items: import("../models/transaction").Transaction[];
|
2233
|
+
curPage: number;
|
2234
|
+
hasPrev: boolean;
|
2235
|
+
hasNext: boolean;
|
2236
|
+
}>;
|
2237
|
+
info: import("@trpc/server").BuildProcedure<"query", {
|
1476
2238
|
_config: import("@trpc/server").RootConfig<{
|
1477
2239
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1478
2240
|
meta: object;
|
@@ -1487,29 +2249,58 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1487
2249
|
};
|
1488
2250
|
_input_in: {
|
1489
2251
|
authorization?: string | undefined;
|
1490
|
-
|
1491
|
-
extraTechnologyFeePercent: number;
|
1492
|
-
extraTechnologyFeeLabel: string | null;
|
1493
|
-
workspaceId?: number | undefined;
|
2252
|
+
transactionId: number;
|
1494
2253
|
};
|
1495
2254
|
_input_out: {
|
1496
2255
|
authorization?: string | undefined;
|
1497
|
-
|
1498
|
-
extraTechnologyFeePercent: number;
|
1499
|
-
extraTechnologyFeeLabel: string | null;
|
1500
|
-
workspaceId?: number | undefined;
|
2256
|
+
transactionId: number;
|
1501
2257
|
};
|
1502
2258
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1503
2259
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1504
|
-
},
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
2260
|
+
}, {
|
2261
|
+
stripeTransfers: import("../models/stripe_transfer").StripeTransfer[];
|
2262
|
+
id: number;
|
2263
|
+
payerId: number;
|
2264
|
+
payer?: import("../models/member").Member;
|
2265
|
+
paymentMethod: import("../modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
2266
|
+
discountCodeId: number | null;
|
2267
|
+
discountCode?: import("../modules/discount_code/discount_code.model").DiscountCode;
|
2268
|
+
documentAmount: number;
|
2269
|
+
discountedAmount: number;
|
2270
|
+
organizerFee: number;
|
2271
|
+
bantrFee: number;
|
2272
|
+
stripeFee: number;
|
2273
|
+
chargedAmount: number;
|
2274
|
+
paidAmount: number;
|
2275
|
+
transferAmount: number;
|
2276
|
+
refundedAmount: number;
|
2277
|
+
transferSent: boolean;
|
2278
|
+
currency: import("../constants").VALID_CURRENCY_CODES;
|
2279
|
+
status: import("../modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
2280
|
+
expiresAt: Date | null;
|
2281
|
+
lastStatusUpdateAt: Date | null;
|
2282
|
+
leaguePaymentId: number | null;
|
2283
|
+
leaguePayment?: import("../models/league_payment").LeaguePayment;
|
2284
|
+
league?: import("../models/league").League;
|
2285
|
+
pickupPaymentId: number | null;
|
2286
|
+
pickupPayment?: import("../models/pickup_payments").PickupPayment;
|
2287
|
+
pickup?: import("../models/pickup").Pickup;
|
2288
|
+
freeAgentPaymentId: number | null;
|
2289
|
+
freeAgentPayment?: import("../models/free_agent_payment").FreeAgentPayment;
|
2290
|
+
orgFreeAgent?: import("../models/organization_free_agent").OrgFreeAgent;
|
2291
|
+
organizationId: number;
|
2292
|
+
organization?: import("../models/organization").Organization;
|
2293
|
+
orgWorkspaceId: number | null;
|
2294
|
+
orgWorkspace?: import("../models/organization_workspace").OrgWorkspace;
|
2295
|
+
transactionEvents?: import("../models/transaction_event").TransactionEvent[];
|
2296
|
+
stripeTransactions?: import("../models/stripe_transaction").StripeTransaction[];
|
2297
|
+
updatedAt: Date;
|
2298
|
+
createdAt: Date;
|
2299
|
+
deletedAt: Date | null;
|
2300
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../models/transaction").Transaction, import("../models/transaction").Transaction[]>;
|
2301
|
+
$modelClass: import("objection").ModelClass<import("../models/transaction").Transaction>;
|
2302
|
+
}>;
|
2303
|
+
refund: import("@trpc/server").BuildProcedure<"mutation", {
|
1513
2304
|
_config: import("@trpc/server").RootConfig<{
|
1514
2305
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1515
2306
|
meta: object;
|
@@ -1524,33 +2315,18 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1524
2315
|
};
|
1525
2316
|
_input_in: {
|
1526
2317
|
authorization?: string | undefined;
|
1527
|
-
|
1528
|
-
|
1529
|
-
code?: string | undefined;
|
1530
|
-
paymentMode?: "session" | "intent" | undefined;
|
1531
|
-
cancelPath?: string | undefined;
|
2318
|
+
amount: number;
|
2319
|
+
transactionId: number;
|
1532
2320
|
};
|
1533
2321
|
_input_out: {
|
1534
2322
|
authorization?: string | undefined;
|
1535
|
-
|
1536
|
-
|
1537
|
-
pickupId: number;
|
1538
|
-
code?: string | undefined;
|
1539
|
-
cancelPath?: string | undefined;
|
2323
|
+
amount: number;
|
2324
|
+
transactionId: number;
|
1540
2325
|
};
|
1541
2326
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
1542
2327
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
1543
|
-
},
|
1544
|
-
|
1545
|
-
}>;
|
1546
|
-
}>;
|
1547
|
-
product: import("@trpc/server").CreateRouterInner<import("@trpc/server").RootConfig<{
|
1548
|
-
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1549
|
-
meta: object;
|
1550
|
-
errorShape: import("@trpc/server").DefaultErrorShape;
|
1551
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
1552
|
-
}>, {
|
1553
|
-
info: import("@trpc/server").BuildProcedure<"mutation", {
|
2328
|
+
}, void>;
|
2329
|
+
export: import("@trpc/server").BuildProcedure<"mutation", {
|
1554
2330
|
_config: import("@trpc/server").RootConfig<{
|
1555
2331
|
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1556
2332
|
meta: object;
|
@@ -1558,40 +2334,34 @@ export declare const createTrpcCaller: import("@trpc/server").RouterCaller<impor
|
|
1558
2334
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
1559
2335
|
}>;
|
1560
2336
|
_meta: object;
|
1561
|
-
_ctx_out:
|
2337
|
+
_ctx_out: {
|
2338
|
+
req: import("http").IncomingMessage;
|
2339
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
2340
|
+
user: import("../types/auth").TJwtPayload;
|
2341
|
+
};
|
1562
2342
|
_input_in: {
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
2343
|
+
authorization?: string | undefined;
|
2344
|
+
limit: number;
|
2345
|
+
page: number;
|
2346
|
+
direction: "asc" | "desc";
|
2347
|
+
orgWorkspaceId?: number | undefined;
|
2348
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2349
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2350
|
+
search?: string | undefined;
|
1568
2351
|
};
|
1569
2352
|
_input_out: {
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
totalWithTax: number;
|
1579
|
-
totalTax: number;
|
1580
|
-
otherTaxLabel: string;
|
1581
|
-
otherTax: number;
|
1582
|
-
code?: string | undefined;
|
1583
|
-
description?: string | undefined;
|
1584
|
-
};
|
1585
|
-
_output_out: {
|
1586
|
-
discountApplied: number;
|
1587
|
-
totalWithTax: number;
|
1588
|
-
totalTax: number;
|
1589
|
-
otherTaxLabel: string;
|
1590
|
-
otherTax: number;
|
1591
|
-
code?: string | undefined;
|
1592
|
-
description?: string | undefined;
|
2353
|
+
authorization?: string | undefined;
|
2354
|
+
limit: number;
|
2355
|
+
page: number;
|
2356
|
+
direction: "asc" | "desc";
|
2357
|
+
orgWorkspaceId?: number | undefined;
|
2358
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
2359
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
2360
|
+
search?: string | undefined;
|
1593
2361
|
};
|
1594
|
-
|
2362
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
2363
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
2364
|
+
}, string>;
|
1595
2365
|
}>;
|
1596
2366
|
}, {
|
1597
2367
|
queries: {};
|