bantr-api-client 1.4.0 → 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,8 +130,8 @@ 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";
@@ -135,12 +139,13 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
135
139
  validFrom: Date | null;
136
140
  validUntil: Date | null;
137
141
  usageLimit: number | null;
142
+ orgWorkspaceId?: number | null | undefined;
138
143
  };
139
144
  _input_out: {
140
145
  authorization?: string | undefined;
141
146
  id: number;
142
- description: string;
143
147
  code: string;
148
+ description: string;
144
149
  appliesWhen: "purchase";
145
150
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
146
151
  amountType: "flat-rate" | "percentage";
@@ -148,6 +153,7 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
148
153
  validFrom: Date | null;
149
154
  validUntil: Date | null;
150
155
  usageLimit: number | null;
156
+ orgWorkspaceId?: number | null | undefined;
151
157
  };
152
158
  _output_in: typeof import("@trpc/server").unsetMarker;
153
159
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -191,29 +197,29 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
191
197
  _ctx_out: import("trpc-koa-adapter").CreateTrpcKoaContextOptions;
192
198
  _input_in: {
193
199
  id: number;
194
- code: string;
195
200
  appliesWhen: "purchase";
196
201
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
197
202
  productValue: number;
203
+ code?: string | undefined;
198
204
  };
199
205
  _input_out: {
200
206
  id: number;
201
- code: string;
202
207
  appliesWhen: "purchase";
203
208
  applicableOn: "league-registration" | "pickup-registration" | "free-agent-registration" | null;
204
209
  productValue: number;
210
+ code?: string | undefined;
205
211
  };
206
212
  _output_in: {
207
- description: string;
208
213
  code: string;
214
+ description: string;
209
215
  amountType: "flat-rate" | "percentage";
210
216
  amountValue: number;
211
217
  reducedValue: number;
212
218
  newValue: number;
213
219
  };
214
220
  _output_out: {
215
- description: string;
216
221
  code: string;
222
+ description: string;
217
223
  amountType: "flat-rate" | "percentage";
218
224
  amountValue: number;
219
225
  reducedValue: number;
@@ -241,19 +247,19 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
241
247
  authorization?: string | undefined;
242
248
  description: string;
243
249
  freeAgentId: number;
244
- leagueId?: number | undefined;
245
- cancelPath?: string | undefined;
246
250
  code?: string | undefined;
251
+ leagueId?: number | undefined;
247
252
  paymentMode?: "session" | "intent" | undefined;
253
+ cancelPath?: string | undefined;
248
254
  };
249
255
  _input_out: {
250
256
  authorization?: string | undefined;
251
257
  description: string;
252
- paymentMode: "session" | "intent";
253
258
  freeAgentId: number;
259
+ paymentMode: "session" | "intent";
260
+ code?: string | undefined;
254
261
  leagueId?: number | undefined;
255
262
  cancelPath?: string | undefined;
256
- code?: string | undefined;
257
263
  };
258
264
  _output_in: typeof import("@trpc/server").unsetMarker;
259
265
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -286,17 +292,17 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
286
292
  };
287
293
  _input_in: {
288
294
  authorization?: string | undefined;
289
- teamId: number;
290
295
  leagueId: number;
296
+ teamId: number;
291
297
  };
292
298
  _input_out: {
293
299
  authorization?: string | undefined;
294
- teamId: number;
295
300
  leagueId: number;
301
+ teamId: number;
296
302
  };
297
303
  _output_in: {
298
- memberId: number;
299
304
  id: number;
305
+ memberId: number;
300
306
  deletedAt: Date | null;
301
307
  member: {
302
308
  id: number;
@@ -315,8 +321,8 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
315
321
  }[];
316
322
  }[];
317
323
  _output_out: {
318
- memberId: number;
319
324
  id: number;
325
+ memberId: number;
320
326
  deletedAt: Date | null;
321
327
  member: {
322
328
  id: number;
@@ -442,21 +448,21 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
442
448
  };
443
449
  _input_in: {
444
450
  authorization?: string | undefined;
445
- teamId: number;
446
451
  leagueId: number;
452
+ teamId: number;
447
453
  paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
448
- paymentAmount?: number | undefined;
449
454
  code?: string | undefined;
450
455
  paymentMode?: "session" | "intent" | undefined;
456
+ paymentAmount?: number | undefined;
451
457
  };
452
458
  _input_out: {
453
459
  authorization?: string | undefined;
454
- teamId: number;
455
460
  leagueId: number;
456
- paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
457
461
  paymentMode: "session" | "intent";
458
- paymentAmount?: number | undefined;
462
+ teamId: number;
463
+ paymentType: "total_price" | "deposit_price" | "balance_price" | "custom_price" | "off_platform";
459
464
  code?: string | undefined;
465
+ paymentAmount?: number | undefined;
460
466
  };
461
467
  _output_in: typeof import("@trpc/server").unsetMarker;
462
468
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -636,17 +642,85 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
636
642
  };
637
643
  _input_in: {
638
644
  authorization?: string | undefined;
639
- provider: "google" | "apple";
645
+ provider: "apple" | "google";
640
646
  };
641
647
  _input_out: {
642
648
  authorization?: string | undefined;
643
- provider: "google" | "apple";
649
+ provider: "apple" | "google";
644
650
  };
645
651
  _output_in: typeof import("@trpc/server").unsetMarker;
646
652
  _output_out: typeof import("@trpc/server").unsetMarker;
647
653
  }, import("../api-type/src/types/auth").MemberAuthResponse>>;
648
654
  };
649
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
+ };
650
724
  pickupPayments: {
651
725
  registrationCheckout: {
652
726
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
@@ -666,17 +740,17 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
666
740
  authorization?: string | undefined;
667
741
  memberId: number;
668
742
  pickupId: number;
669
- cancelPath?: string | undefined;
670
743
  code?: string | undefined;
671
744
  paymentMode?: "session" | "intent" | undefined;
745
+ cancelPath?: string | undefined;
672
746
  };
673
747
  _input_out: {
674
748
  authorization?: string | undefined;
675
749
  memberId: number;
676
- pickupId: number;
677
750
  paymentMode: "session" | "intent";
678
- cancelPath?: string | undefined;
751
+ pickupId: number;
679
752
  code?: string | undefined;
753
+ cancelPath?: string | undefined;
680
754
  };
681
755
  _output_in: typeof import("@trpc/server").unsetMarker;
682
756
  _output_out: typeof import("@trpc/server").unsetMarker;
@@ -685,5 +759,51 @@ export declare const createTRPCClientQuery: (options?: InstanceOptions) => {
685
759
  }>>;
686
760
  };
687
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
+ };
688
808
  };
689
809
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bantr-api-client",
3
- "version": "1.4.0",
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",