bantr-api-client 1.3.1 → 1.5.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.
@@ -49,6 +49,7 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
49
49
  limit: number;
50
50
  cursor: number;
51
51
  code?: string | undefined;
52
+ orgWorkspaceId?: number | null | undefined;
52
53
  direction?: "asc" | "desc" | undefined;
53
54
  listExpired?: boolean | undefined;
54
55
  };
@@ -59,6 +60,7 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
59
60
  direction: "asc" | "desc";
60
61
  listExpired: boolean;
61
62
  code?: string | undefined;
63
+ orgWorkspaceId?: number | null | undefined;
62
64
  };
63
65
  _output_in: typeof import("@trpc/server").unsetMarker;
64
66
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -83,25 +85,27 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
83
85
  };
84
86
  _input_in: {
85
87
  authorization?: string | undefined;
86
- description: string;
87
88
  code: string;
89
+ description: string;
88
90
  appliesWhen: "purchase";
89
91
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
90
92
  amountType: "flat-rate" | "percentage";
91
93
  amountValue: number;
92
94
  validFrom: Date | null;
93
95
  validUntil: Date | null;
96
+ orgWorkspaceId?: number | null | undefined;
94
97
  };
95
98
  _input_out: {
96
99
  authorization?: string | undefined;
97
- description: string;
98
100
  code: string;
101
+ description: string;
99
102
  appliesWhen: "purchase";
100
103
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
101
104
  amountType: "flat-rate" | "percentage";
102
105
  amountValue: number;
103
106
  validFrom: Date | null;
104
107
  validUntil: Date | null;
108
+ orgWorkspaceId?: number | null | undefined;
105
109
  };
106
110
  _output_in: typeof import("@trpc/server").unsetMarker;
107
111
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -126,26 +130,30 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
126
130
  _input_in: {
127
131
  authorization?: string | undefined;
128
132
  id: number;
129
- description: string;
130
133
  code: string;
134
+ description: string;
131
135
  appliesWhen: "purchase";
132
136
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
133
137
  amountType: "flat-rate" | "percentage";
134
138
  amountValue: number;
135
139
  validFrom: Date | null;
136
140
  validUntil: Date | null;
141
+ usageLimit: number | null;
142
+ orgWorkspaceId?: number | null | undefined;
137
143
  };
138
144
  _input_out: {
139
145
  authorization?: string | undefined;
140
146
  id: number;
141
- description: string;
142
147
  code: string;
148
+ description: string;
143
149
  appliesWhen: "purchase";
144
150
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
145
151
  amountType: "flat-rate" | "percentage";
146
152
  amountValue: number;
147
153
  validFrom: Date | null;
148
154
  validUntil: Date | null;
155
+ usageLimit: number | null;
156
+ orgWorkspaceId?: number | null | undefined;
149
157
  };
150
158
  _output_in: typeof import("@trpc/server").unsetMarker;
151
159
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -189,29 +197,29 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
189
197
  _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
190
198
  _input_in: {
191
199
  id: number;
192
- code: string;
193
200
  appliesWhen: "purchase";
194
201
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
195
202
  productValue: number;
203
+ code?: string | undefined;
196
204
  };
197
205
  _input_out: {
198
206
  id: number;
199
- code: string;
200
207
  appliesWhen: "purchase";
201
208
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
202
209
  productValue: number;
210
+ code?: string | undefined;
203
211
  };
204
212
  _output_in: {
205
- description: string;
206
213
  code: string;
214
+ description: string;
207
215
  amountType: "flat-rate" | "percentage";
208
216
  amountValue: number;
209
217
  reducedValue: number;
210
218
  newValue: number;
211
219
  };
212
220
  _output_out: {
213
- description: string;
214
221
  code: string;
222
+ description: string;
215
223
  amountType: "flat-rate" | "percentage";
216
224
  amountValue: number;
217
225
  reducedValue: number;
@@ -239,19 +247,19 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
239
247
  authorization?: string | undefined;
240
248
  description: string;
241
249
  freeAgentId: number;
242
- leagueId?: number | undefined;
243
- cancelPath?: string | undefined;
244
250
  code?: string | undefined;
251
+ leagueId?: number | undefined;
245
252
  paymentMode?: "session" | "intent" | undefined;
253
+ cancelPath?: string | undefined;
246
254
  };
247
255
  _input_out: {
248
256
  authorization?: string | undefined;
249
257
  description: string;
250
- paymentMode: "session" | "intent";
251
258
  freeAgentId: number;
259
+ paymentMode: "session" | "intent";
260
+ code?: string | undefined;
252
261
  leagueId?: number | undefined;
253
262
  cancelPath?: string | undefined;
254
- code?: string | undefined;
255
263
  };
256
264
  _output_in: typeof import("@trpc/server").unsetMarker;
257
265
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -294,40 +302,40 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
294
302
  };
295
303
  _output_in: {
296
304
  id: number;
297
- deletedAt: Date | null;
298
305
  memberId: number;
306
+ deletedAt: Date | null;
299
307
  member: {
300
- email: string;
301
308
  id: number;
309
+ email: string;
302
310
  firstName: string | null;
303
311
  lastName: string | null;
304
312
  };
305
313
  totalPaid: number;
306
314
  payments: {
307
- payerId: number;
308
315
  id: number;
309
- price: number;
310
316
  createdAt: string | Date;
317
+ price: number;
318
+ payerId: number;
311
319
  amountApplied: number | null;
312
320
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
313
321
  }[];
314
322
  }[];
315
323
  _output_out: {
316
324
  id: number;
317
- deletedAt: Date | null;
318
325
  memberId: number;
326
+ deletedAt: Date | null;
319
327
  member: {
320
- email: string;
321
328
  id: number;
329
+ email: string;
322
330
  firstName: string | null;
323
331
  lastName: string | null;
324
332
  };
325
333
  totalPaid: number;
326
334
  payments: {
327
- payerId: number;
328
335
  id: number;
329
- price: number;
330
336
  createdAt: string | Date;
337
+ price: number;
338
+ payerId: number;
331
339
  amountApplied: number | null;
332
340
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
333
341
  }[];
@@ -350,15 +358,15 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
350
358
  };
351
359
  _input_in: {
352
360
  authorization?: string | undefined;
353
- price: number;
354
361
  leagueId: number;
362
+ price: number;
355
363
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
356
364
  teamRosterId: number;
357
365
  };
358
366
  _input_out: {
359
367
  authorization?: string | undefined;
360
- price: number;
361
368
  leagueId: number;
369
+ price: number;
362
370
  offlineMethod: "CASH" | "CHECK" | "VENMO" | "ZELLE" | "ONLINE" | "BANK" | "Other" | null;
363
371
  teamRosterId: number;
364
372
  };
@@ -445,14 +453,16 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
445
453
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
446
454
  code?: string | undefined;
447
455
  paymentMode?: "session" | "intent" | undefined;
456
+ paymentAmount?: number | undefined;
448
457
  };
449
458
  _input_out: {
450
459
  authorization?: string | undefined;
451
460
  leagueId: number;
461
+ paymentMode: "session" | "intent";
452
462
  teamId: number;
453
463
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
454
- paymentMode: "session" | "intent";
455
464
  code?: string | undefined;
465
+ paymentAmount?: number | undefined;
456
466
  };
457
467
  _output_in: typeof import("@trpc/server").unsetMarker;
458
468
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -643,6 +653,74 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
643
653
  }, import("../api-type/src/types/auth").MemberAuthResponse>>;
644
654
  };
645
655
  };
656
+ organization: {
657
+ fetchStripeFee: {
658
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
659
+ _config: import("@trpc/server").RootConfig<{
660
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
661
+ meta: object;
662
+ errorShape: import("@trpc/server").DefaultErrorShape;
663
+ transformer: import("@trpc/server").DefaultDataTransformer;
664
+ }>;
665
+ _meta: object;
666
+ _ctx_out: {
667
+ req: import("http").IncomingMessage;
668
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
669
+ user: import("../api-type/src/types/auth").TJwtPayload;
670
+ };
671
+ _input_in: {
672
+ authorization?: string | undefined;
673
+ workspaceId?: number | undefined;
674
+ };
675
+ _input_out: {
676
+ authorization?: string | undefined;
677
+ workspaceId?: number | undefined;
678
+ };
679
+ _output_in: {
680
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
681
+ extraTechnologyFeePercent: number;
682
+ extraTechnologyFeeLabel: string | null;
683
+ };
684
+ _output_out: {
685
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
686
+ extraTechnologyFeePercent: number;
687
+ extraTechnologyFeeLabel: string | null;
688
+ };
689
+ }, unknown>>;
690
+ };
691
+ updateStripeFee: {
692
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
693
+ _config: import("@trpc/server").RootConfig<{
694
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
695
+ meta: object;
696
+ errorShape: import("@trpc/server").DefaultErrorShape;
697
+ transformer: import("@trpc/server").DefaultDataTransformer;
698
+ }>;
699
+ _meta: object;
700
+ _ctx_out: {
701
+ req: import("http").IncomingMessage;
702
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
703
+ user: import("../api-type/src/types/auth").TJwtPayload;
704
+ };
705
+ _input_in: {
706
+ authorization?: string | undefined;
707
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
708
+ extraTechnologyFeePercent: number;
709
+ extraTechnologyFeeLabel: string | null;
710
+ workspaceId?: number | undefined;
711
+ };
712
+ _input_out: {
713
+ authorization?: string | undefined;
714
+ technologyFeeMode: import("../api-type/src/constants").TECHNOLOGY_FEE_MODES;
715
+ extraTechnologyFeePercent: number;
716
+ extraTechnologyFeeLabel: string | null;
717
+ workspaceId?: number | undefined;
718
+ };
719
+ _output_in: typeof import("@trpc/server").unsetMarker;
720
+ _output_out: typeof import("@trpc/server").unsetMarker;
721
+ }, void>>;
722
+ };
723
+ };
646
724
  pickupPayments: {
647
725
  registrationCheckout: {
648
726
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
@@ -660,19 +738,19 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
660
738
  };
661
739
  _input_in: {
662
740
  authorization?: string | undefined;
663
- pickupId: number;
664
741
  memberId: number;
665
- cancelPath?: string | undefined;
742
+ pickupId: number;
666
743
  code?: string | undefined;
667
744
  paymentMode?: "session" | "intent" | undefined;
745
+ cancelPath?: string | undefined;
668
746
  };
669
747
  _input_out: {
670
748
  authorization?: string | undefined;
671
- pickupId: number;
672
749
  memberId: number;
673
750
  paymentMode: "session" | "intent";
674
- cancelPath?: string | undefined;
751
+ pickupId: number;
675
752
  code?: string | undefined;
753
+ cancelPath?: string | undefined;
676
754
  };
677
755
  _output_in: typeof import("@trpc/server").unsetMarker;
678
756
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -681,5 +759,51 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
681
759
  }>>;
682
760
  };
683
761
  };
762
+ product: {
763
+ info: {
764
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
765
+ _config: import("@trpc/server").RootConfig<{
766
+ ctx: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
767
+ meta: object;
768
+ errorShape: import("@trpc/server").DefaultErrorShape;
769
+ transformer: import("@trpc/server").DefaultDataTransformer;
770
+ }>;
771
+ _meta: object;
772
+ _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
773
+ _input_in: {
774
+ id: number;
775
+ appliesWhen: "purchase";
776
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
777
+ productValue: number;
778
+ code?: string | undefined;
779
+ };
780
+ _input_out: {
781
+ id: number;
782
+ appliesWhen: "purchase";
783
+ applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
784
+ productValue: number;
785
+ code?: string | undefined;
786
+ };
787
+ _output_in: {
788
+ discountApplied: number;
789
+ totalWithTax: number;
790
+ totalTax: number;
791
+ otherTaxLabel: string;
792
+ otherTax: number;
793
+ code?: string | undefined;
794
+ description?: string | undefined;
795
+ };
796
+ _output_out: {
797
+ discountApplied: number;
798
+ totalWithTax: number;
799
+ totalTax: number;
800
+ otherTaxLabel: string;
801
+ otherTax: number;
802
+ code?: string | undefined;
803
+ description?: string | undefined;
804
+ };
805
+ }, unknown>>;
806
+ };
807
+ };
684
808
  };
685
809
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bantr-api-client",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "description": "SDK for Bantr API integration using tRPC and react-query",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",