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
package/dist/src/query.d.ts
CHANGED
@@ -48,19 +48,19 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
48
48
|
authorization?: string | undefined;
|
49
49
|
limit: number;
|
50
50
|
cursor: number;
|
51
|
-
code?: string | undefined;
|
52
51
|
orgWorkspaceId?: number | null | undefined;
|
53
52
|
direction?: "asc" | "desc" | undefined;
|
53
|
+
code?: string | undefined;
|
54
54
|
listExpired?: boolean | undefined;
|
55
55
|
};
|
56
56
|
_input_out: {
|
57
57
|
authorization?: string | undefined;
|
58
58
|
limit: number;
|
59
|
-
cursor: number;
|
60
59
|
direction: "asc" | "desc";
|
60
|
+
cursor: number;
|
61
61
|
listExpired: boolean;
|
62
|
-
code?: string | undefined;
|
63
62
|
orgWorkspaceId?: number | null | undefined;
|
63
|
+
code?: string | undefined;
|
64
64
|
};
|
65
65
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
66
66
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -129,8 +129,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
129
129
|
};
|
130
130
|
_input_in: {
|
131
131
|
authorization?: string | undefined;
|
132
|
-
id: number;
|
133
132
|
code: string;
|
133
|
+
id: number;
|
134
134
|
description: string;
|
135
135
|
appliesWhen: "purchase";
|
136
136
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
@@ -143,8 +143,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
143
143
|
};
|
144
144
|
_input_out: {
|
145
145
|
authorization?: string | undefined;
|
146
|
-
id: number;
|
147
146
|
code: string;
|
147
|
+
id: number;
|
148
148
|
description: string;
|
149
149
|
appliesWhen: "purchase";
|
150
150
|
applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
|
@@ -255,8 +255,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
255
255
|
_input_out: {
|
256
256
|
authorization?: string | undefined;
|
257
257
|
description: string;
|
258
|
-
freeAgentId: number;
|
259
258
|
paymentMode: "session" | "intent";
|
259
|
+
freeAgentId: number;
|
260
260
|
code?: string | undefined;
|
261
261
|
leagueId?: number | undefined;
|
262
262
|
cancelPath?: string | undefined;
|
@@ -270,6 +270,22 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
270
270
|
customerId: string;
|
271
271
|
orgPublishableKey: string | undefined;
|
272
272
|
orgStripeAccountId: string;
|
273
|
+
paymentIntent: {
|
274
|
+
intent: import("stripe").Stripe.Response<import("stripe").Stripe.PaymentIntent>;
|
275
|
+
discountAndFee: {
|
276
|
+
discountApplied: number;
|
277
|
+
discountedAmount: number;
|
278
|
+
priceAmount: number;
|
279
|
+
otherTaxLabel: string;
|
280
|
+
otherTaxPercent: number;
|
281
|
+
otherTax: number;
|
282
|
+
bantrTax: number;
|
283
|
+
stripeTax: number;
|
284
|
+
totalTax: number;
|
285
|
+
totalWithTax: number;
|
286
|
+
transferAmount: number;
|
287
|
+
};
|
288
|
+
};
|
273
289
|
} | {
|
274
290
|
redirectUrl: string;
|
275
291
|
}>>;
|
@@ -302,42 +318,42 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
302
318
|
};
|
303
319
|
_output_in: {
|
304
320
|
id: number;
|
305
|
-
memberId: number;
|
306
321
|
deletedAt: Date | null;
|
322
|
+
memberId: number;
|
307
323
|
member: {
|
308
324
|
id: number;
|
309
|
-
email: string;
|
310
325
|
firstName: string | null;
|
326
|
+
email: string;
|
311
327
|
lastName: string | null;
|
312
328
|
};
|
313
329
|
totalPaid: number;
|
314
330
|
payments: {
|
315
331
|
id: number;
|
332
|
+
payerId: number;
|
316
333
|
createdAt: string | Date;
|
317
334
|
price: number;
|
318
|
-
payerId: number;
|
319
335
|
amountApplied: number | null;
|
320
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
336
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
321
337
|
}[];
|
322
338
|
}[];
|
323
339
|
_output_out: {
|
324
340
|
id: number;
|
325
|
-
memberId: number;
|
326
341
|
deletedAt: Date | null;
|
342
|
+
memberId: number;
|
327
343
|
member: {
|
328
344
|
id: number;
|
329
|
-
email: string;
|
330
345
|
firstName: string | null;
|
346
|
+
email: string;
|
331
347
|
lastName: string | null;
|
332
348
|
};
|
333
349
|
totalPaid: number;
|
334
350
|
payments: {
|
335
351
|
id: number;
|
352
|
+
payerId: number;
|
336
353
|
createdAt: string | Date;
|
337
354
|
price: number;
|
338
|
-
payerId: number;
|
339
355
|
amountApplied: number | null;
|
340
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
356
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
341
357
|
}[];
|
342
358
|
}[];
|
343
359
|
}, unknown>>;
|
@@ -358,16 +374,16 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
358
374
|
};
|
359
375
|
_input_in: {
|
360
376
|
authorization?: string | undefined;
|
361
|
-
leagueId: number;
|
362
377
|
price: number;
|
363
|
-
|
378
|
+
leagueId: number;
|
379
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
364
380
|
teamRosterId: number;
|
365
381
|
};
|
366
382
|
_input_out: {
|
367
383
|
authorization?: string | undefined;
|
368
|
-
leagueId: number;
|
369
384
|
price: number;
|
370
|
-
|
385
|
+
leagueId: number;
|
386
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
371
387
|
teamRosterId: number;
|
372
388
|
};
|
373
389
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -392,14 +408,14 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
392
408
|
authorization?: string | undefined;
|
393
409
|
id: number;
|
394
410
|
price: number;
|
395
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
411
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
396
412
|
teamRosterId: number;
|
397
413
|
};
|
398
414
|
_input_out: {
|
399
415
|
authorization?: string | undefined;
|
400
416
|
id: number;
|
401
417
|
price: number;
|
402
|
-
offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
418
|
+
offlineMethod: "STRIPE" | "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
|
403
419
|
teamRosterId: number;
|
404
420
|
};
|
405
421
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
@@ -458,9 +474,9 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
458
474
|
_input_out: {
|
459
475
|
authorization?: string | undefined;
|
460
476
|
leagueId: number;
|
461
|
-
paymentMode: "session" | "intent";
|
462
477
|
teamId: number;
|
463
478
|
paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
|
479
|
+
paymentMode: "session" | "intent";
|
464
480
|
code?: string | undefined;
|
465
481
|
paymentAmount?: number | undefined;
|
466
482
|
};
|
@@ -642,11 +658,11 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
642
658
|
};
|
643
659
|
_input_in: {
|
644
660
|
authorization?: string | undefined;
|
645
|
-
provider: "
|
661
|
+
provider: "google" | "apple";
|
646
662
|
};
|
647
663
|
_input_out: {
|
648
664
|
authorization?: string | undefined;
|
649
|
-
provider: "
|
665
|
+
provider: "google" | "apple";
|
650
666
|
};
|
651
667
|
_output_in: typeof import("@trpc/server").unsetMarker;
|
652
668
|
_output_out: typeof import("@trpc/server").unsetMarker;
|
@@ -738,17 +754,17 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
738
754
|
};
|
739
755
|
_input_in: {
|
740
756
|
authorization?: string | undefined;
|
741
|
-
memberId: number;
|
742
757
|
pickupId: number;
|
758
|
+
memberId: number;
|
743
759
|
code?: string | undefined;
|
744
760
|
paymentMode?: "session" | "intent" | undefined;
|
745
761
|
cancelPath?: string | undefined;
|
746
762
|
};
|
747
763
|
_input_out: {
|
748
764
|
authorization?: string | undefined;
|
765
|
+
pickupId: number;
|
749
766
|
memberId: number;
|
750
767
|
paymentMode: "session" | "intent";
|
751
|
-
pickupId: number;
|
752
768
|
code?: string | undefined;
|
753
769
|
cancelPath?: string | undefined;
|
754
770
|
};
|
@@ -790,6 +806,7 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
790
806
|
totalTax: number;
|
791
807
|
otherTaxLabel: string;
|
792
808
|
otherTax: number;
|
809
|
+
otherTaxPercent: number;
|
793
810
|
code?: string | undefined;
|
794
811
|
description?: string | undefined;
|
795
812
|
};
|
@@ -799,11 +816,389 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
|
|
799
816
|
totalTax: number;
|
800
817
|
otherTaxLabel: string;
|
801
818
|
otherTax: number;
|
819
|
+
otherTaxPercent: number;
|
802
820
|
code?: string | undefined;
|
803
821
|
description?: string | undefined;
|
804
822
|
};
|
805
823
|
}, unknown>>;
|
806
824
|
};
|
807
825
|
};
|
826
|
+
team: {
|
827
|
+
getInvitedMembers: {
|
828
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
829
|
+
_config: import("@trpc/server").RootConfig<{
|
830
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
831
|
+
meta: object;
|
832
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
833
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
834
|
+
}>;
|
835
|
+
_meta: object;
|
836
|
+
_ctx_out: {
|
837
|
+
req: import("http").IncomingMessage;
|
838
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
839
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
840
|
+
};
|
841
|
+
_input_in: {
|
842
|
+
authorization?: string | undefined;
|
843
|
+
teamId: number;
|
844
|
+
};
|
845
|
+
_input_out: {
|
846
|
+
authorization?: string | undefined;
|
847
|
+
teamId: number;
|
848
|
+
};
|
849
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
850
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
851
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
852
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
853
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
854
|
+
})[]>>;
|
855
|
+
};
|
856
|
+
getInvitedByOrganization: {
|
857
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
858
|
+
_config: import("@trpc/server").RootConfig<{
|
859
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
860
|
+
meta: object;
|
861
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
862
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
863
|
+
}>;
|
864
|
+
_meta: object;
|
865
|
+
_ctx_out: {
|
866
|
+
req: import("http").IncomingMessage;
|
867
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
868
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
869
|
+
};
|
870
|
+
_input_in: {
|
871
|
+
authorization?: string | undefined;
|
872
|
+
organizationId: number;
|
873
|
+
teamId: number;
|
874
|
+
};
|
875
|
+
_input_out: {
|
876
|
+
authorization?: string | undefined;
|
877
|
+
organizationId: number;
|
878
|
+
teamId: number;
|
879
|
+
};
|
880
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
881
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
882
|
+
}, (import("../api-type/src/models/team_roster").TeamRoster & {
|
883
|
+
member: Pick<import("../api-type/src/models/member").Member, "id" | "firstName" | "lastName" | "avatar" | "email" | "accountStatus">;
|
884
|
+
invites: Pick<import("../api-type/src/models/invite").Invite, "isActive">[];
|
885
|
+
})[]>>;
|
886
|
+
};
|
887
|
+
createInviteByCaptain: {
|
888
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
889
|
+
_config: import("@trpc/server").RootConfig<{
|
890
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
891
|
+
meta: object;
|
892
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
893
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
894
|
+
}>;
|
895
|
+
_meta: object;
|
896
|
+
_ctx_out: {
|
897
|
+
req: import("http").IncomingMessage;
|
898
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
899
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
900
|
+
};
|
901
|
+
_input_in: {
|
902
|
+
authorization?: string | undefined;
|
903
|
+
teamId: number;
|
904
|
+
invites: {
|
905
|
+
firstName: string;
|
906
|
+
email: string;
|
907
|
+
lastName: string;
|
908
|
+
}[];
|
909
|
+
organizationId?: number | undefined;
|
910
|
+
leagueId?: number | undefined;
|
911
|
+
};
|
912
|
+
_input_out: {
|
913
|
+
authorization?: string | undefined;
|
914
|
+
teamId: number;
|
915
|
+
invites: {
|
916
|
+
firstName: string;
|
917
|
+
email: string;
|
918
|
+
lastName: string;
|
919
|
+
}[];
|
920
|
+
organizationId?: number | undefined;
|
921
|
+
leagueId?: number | undefined;
|
922
|
+
};
|
923
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
924
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
925
|
+
}, void>>;
|
926
|
+
};
|
927
|
+
createInviteByOrganization: {
|
928
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
929
|
+
_config: import("@trpc/server").RootConfig<{
|
930
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
931
|
+
meta: object;
|
932
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
933
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
934
|
+
}>;
|
935
|
+
_meta: object;
|
936
|
+
_ctx_out: {
|
937
|
+
req: import("http").IncomingMessage;
|
938
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
939
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
940
|
+
};
|
941
|
+
_input_in: {
|
942
|
+
authorization?: string | undefined;
|
943
|
+
teamId: number;
|
944
|
+
invites: {
|
945
|
+
firstName: string;
|
946
|
+
email: string;
|
947
|
+
lastName: string;
|
948
|
+
}[];
|
949
|
+
organizationId?: number | undefined;
|
950
|
+
leagueId?: number | undefined;
|
951
|
+
};
|
952
|
+
_input_out: {
|
953
|
+
authorization?: string | undefined;
|
954
|
+
teamId: number;
|
955
|
+
invites: {
|
956
|
+
firstName: string;
|
957
|
+
email: string;
|
958
|
+
lastName: string;
|
959
|
+
}[];
|
960
|
+
organizationId?: number | undefined;
|
961
|
+
leagueId?: number | undefined;
|
962
|
+
};
|
963
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
964
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
965
|
+
}, void>>;
|
966
|
+
};
|
967
|
+
cancelInviteByCaptain: {
|
968
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
969
|
+
_config: import("@trpc/server").RootConfig<{
|
970
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
971
|
+
meta: object;
|
972
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
973
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
974
|
+
}>;
|
975
|
+
_meta: object;
|
976
|
+
_ctx_out: {
|
977
|
+
req: import("http").IncomingMessage;
|
978
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
979
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
980
|
+
};
|
981
|
+
_input_in: {
|
982
|
+
authorization?: string | undefined;
|
983
|
+
teamId: number;
|
984
|
+
inviteId: number;
|
985
|
+
};
|
986
|
+
_input_out: {
|
987
|
+
authorization?: string | undefined;
|
988
|
+
teamId: number;
|
989
|
+
inviteId: number;
|
990
|
+
};
|
991
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
992
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
993
|
+
}, void>>;
|
994
|
+
};
|
995
|
+
cancelInviteByOrganization: {
|
996
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
997
|
+
_config: import("@trpc/server").RootConfig<{
|
998
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
999
|
+
meta: object;
|
1000
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1001
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1002
|
+
}>;
|
1003
|
+
_meta: object;
|
1004
|
+
_ctx_out: {
|
1005
|
+
req: import("http").IncomingMessage;
|
1006
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1007
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1008
|
+
};
|
1009
|
+
_input_in: {
|
1010
|
+
authorization?: string | undefined;
|
1011
|
+
teamId: number;
|
1012
|
+
inviteId: number;
|
1013
|
+
};
|
1014
|
+
_input_out: {
|
1015
|
+
authorization?: string | undefined;
|
1016
|
+
teamId: number;
|
1017
|
+
inviteId: number;
|
1018
|
+
};
|
1019
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1020
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1021
|
+
}, void>>;
|
1022
|
+
};
|
1023
|
+
};
|
1024
|
+
transaction: {
|
1025
|
+
list: {
|
1026
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
1027
|
+
_config: import("@trpc/server").RootConfig<{
|
1028
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1029
|
+
meta: object;
|
1030
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1031
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1032
|
+
}>;
|
1033
|
+
_meta: object;
|
1034
|
+
_ctx_out: {
|
1035
|
+
req: import("http").IncomingMessage;
|
1036
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1037
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1038
|
+
};
|
1039
|
+
_input_in: {
|
1040
|
+
authorization?: string | undefined;
|
1041
|
+
limit: number;
|
1042
|
+
page: number;
|
1043
|
+
direction: "asc" | "desc";
|
1044
|
+
orgWorkspaceId?: number | undefined;
|
1045
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1046
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1047
|
+
search?: string | undefined;
|
1048
|
+
};
|
1049
|
+
_input_out: {
|
1050
|
+
authorization?: string | undefined;
|
1051
|
+
limit: number;
|
1052
|
+
page: number;
|
1053
|
+
direction: "asc" | "desc";
|
1054
|
+
orgWorkspaceId?: number | undefined;
|
1055
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1056
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1057
|
+
search?: string | undefined;
|
1058
|
+
};
|
1059
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1060
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1061
|
+
}, {
|
1062
|
+
items: import("../api-type/src/models/transaction").Transaction[];
|
1063
|
+
curPage: number;
|
1064
|
+
hasPrev: boolean;
|
1065
|
+
hasNext: boolean;
|
1066
|
+
}>>;
|
1067
|
+
};
|
1068
|
+
info: {
|
1069
|
+
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
1070
|
+
_config: import("@trpc/server").RootConfig<{
|
1071
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1072
|
+
meta: object;
|
1073
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1074
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1075
|
+
}>;
|
1076
|
+
_meta: object;
|
1077
|
+
_ctx_out: {
|
1078
|
+
req: import("http").IncomingMessage;
|
1079
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1080
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1081
|
+
};
|
1082
|
+
_input_in: {
|
1083
|
+
authorization?: string | undefined;
|
1084
|
+
transactionId: number;
|
1085
|
+
};
|
1086
|
+
_input_out: {
|
1087
|
+
authorization?: string | undefined;
|
1088
|
+
transactionId: number;
|
1089
|
+
};
|
1090
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1091
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1092
|
+
}, {
|
1093
|
+
stripeTransfers: import("../api-type/src/models/stripe_transfer").StripeTransfer[];
|
1094
|
+
id: number;
|
1095
|
+
payerId: number;
|
1096
|
+
payer?: import("../api-type/src/models/member").Member;
|
1097
|
+
paymentMethod: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_METHOD_ENUM;
|
1098
|
+
discountCodeId: number | null;
|
1099
|
+
discountCode?: import("../api-type/src/modules/discount_code/discount_code.model").DiscountCode;
|
1100
|
+
documentAmount: number;
|
1101
|
+
discountedAmount: number;
|
1102
|
+
organizerFee: number;
|
1103
|
+
bantrFee: number;
|
1104
|
+
stripeFee: number;
|
1105
|
+
chargedAmount: number;
|
1106
|
+
paidAmount: number;
|
1107
|
+
transferAmount: number;
|
1108
|
+
refundedAmount: number;
|
1109
|
+
transferSent: boolean;
|
1110
|
+
currency: import("../api-type/src/constants").VALID_CURRENCY_CODES;
|
1111
|
+
status: import("../api-type/src/modules/transaction/transaction.schema").TRANSACTION_STATUS_ENUM;
|
1112
|
+
expiresAt: Date | null;
|
1113
|
+
lastStatusUpdateAt: Date | null;
|
1114
|
+
leaguePaymentId: number | null;
|
1115
|
+
leaguePayment?: import("../api-type/src/models/league_payment").LeaguePayment;
|
1116
|
+
league?: import("../api-type/src/models/league").League;
|
1117
|
+
pickupPaymentId: number | null;
|
1118
|
+
pickupPayment?: import("../api-type/src/models/pickup_payments").PickupPayment;
|
1119
|
+
pickup?: import("../api-type/src/models/pickup").Pickup;
|
1120
|
+
freeAgentPaymentId: number | null;
|
1121
|
+
freeAgentPayment?: import("../api-type/src/models/free_agent_payment").FreeAgentPayment;
|
1122
|
+
orgFreeAgent?: import("../api-type/src/models/organization_free_agent").OrgFreeAgent;
|
1123
|
+
organizationId: number;
|
1124
|
+
organization?: import("../api-type/src/models/organization").Organization;
|
1125
|
+
orgWorkspaceId: number | null;
|
1126
|
+
orgWorkspace?: import("../api-type/src/models/organization_workspace").OrgWorkspace;
|
1127
|
+
transactionEvents?: import("../api-type/src/models/transaction_event").TransactionEvent[];
|
1128
|
+
stripeTransactions?: import("../api-type/src/models/stripe_transaction").StripeTransaction[];
|
1129
|
+
updatedAt: Date;
|
1130
|
+
createdAt: Date;
|
1131
|
+
deletedAt: Date | null;
|
1132
|
+
QueryBuilderType: import("objection-js-soft-delete").SoftDeleteQueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]> & import("objection").QueryBuilder<import("../api-type/src/models/transaction").Transaction, import("../api-type/src/models/transaction").Transaction[]>;
|
1133
|
+
$modelClass: import("objection").ModelClass<import("../api-type/src/models/transaction").Transaction>;
|
1134
|
+
}>>;
|
1135
|
+
};
|
1136
|
+
refund: {
|
1137
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1138
|
+
_config: import("@trpc/server").RootConfig<{
|
1139
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1140
|
+
meta: object;
|
1141
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1142
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1143
|
+
}>;
|
1144
|
+
_meta: object;
|
1145
|
+
_ctx_out: {
|
1146
|
+
req: import("http").IncomingMessage;
|
1147
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1148
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1149
|
+
};
|
1150
|
+
_input_in: {
|
1151
|
+
authorization?: string | undefined;
|
1152
|
+
amount: number;
|
1153
|
+
transactionId: number;
|
1154
|
+
};
|
1155
|
+
_input_out: {
|
1156
|
+
authorization?: string | undefined;
|
1157
|
+
amount: number;
|
1158
|
+
transactionId: number;
|
1159
|
+
};
|
1160
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1161
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1162
|
+
}, void>>;
|
1163
|
+
};
|
1164
|
+
export: {
|
1165
|
+
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
1166
|
+
_config: import("@trpc/server").RootConfig<{
|
1167
|
+
ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
|
1168
|
+
meta: object;
|
1169
|
+
errorShape: import("@trpc/server").DefaultErrorShape;
|
1170
|
+
transformer: import("@trpc/server").DefaultDataTransformer;
|
1171
|
+
}>;
|
1172
|
+
_meta: object;
|
1173
|
+
_ctx_out: {
|
1174
|
+
req: import("http").IncomingMessage;
|
1175
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
1176
|
+
user: import("../api-type/src/types/auth").TJwtPayload;
|
1177
|
+
};
|
1178
|
+
_input_in: {
|
1179
|
+
authorization?: string | undefined;
|
1180
|
+
limit: number;
|
1181
|
+
page: number;
|
1182
|
+
direction: "asc" | "desc";
|
1183
|
+
orgWorkspaceId?: number | undefined;
|
1184
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1185
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1186
|
+
search?: string | undefined;
|
1187
|
+
};
|
1188
|
+
_input_out: {
|
1189
|
+
authorization?: string | undefined;
|
1190
|
+
limit: number;
|
1191
|
+
page: number;
|
1192
|
+
direction: "asc" | "desc";
|
1193
|
+
orgWorkspaceId?: number | undefined;
|
1194
|
+
status?: "CREATED" | "REJECTED" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "FULLY_REFUNDED" | undefined;
|
1195
|
+
type?: "league" | "pickup" | "free_agent" | undefined;
|
1196
|
+
search?: string | undefined;
|
1197
|
+
};
|
1198
|
+
_output_in: typeof import("@trpc/server").unsetMarker;
|
1199
|
+
_output_out: typeof import("@trpc/server").unsetMarker;
|
1200
|
+
}, string>>;
|
1201
|
+
};
|
1202
|
+
};
|
808
1203
|
};
|
809
1204
|
export {};
|