placementt-core 1.400.1235 → 1.400.1237

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.
@@ -2268,6 +2268,188 @@ export declare const allCallables: {
2268
2268
  invoiceNumber?: string | undefined;
2269
2269
  }>;
2270
2270
  };
2271
+ "billing-sendInvoiceDraft": {
2272
+ request: z.ZodObject<{
2273
+ oId: z.ZodString;
2274
+ draft: z.ZodObject<{
2275
+ lines: z.ZodArray<z.ZodObject<{
2276
+ key: z.ZodOptional<z.ZodEnum<["base", "wexY10", "wexY12", "events", "destinations", "hubBase", "hubSchools", "adjustment"]>>;
2277
+ description: z.ZodString;
2278
+ quantity: z.ZodNumber;
2279
+ unitAmount: z.ZodNumber;
2280
+ discount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2281
+ type: z.ZodEnum<["percent", "amount"]>;
2282
+ value: z.ZodNumber;
2283
+ }, "strip", z.ZodTypeAny, {
2284
+ type: "percent" | "amount";
2285
+ value: number;
2286
+ }, {
2287
+ type: "percent" | "amount";
2288
+ value: number;
2289
+ }>>>, {
2290
+ type: "percent" | "amount";
2291
+ value: number;
2292
+ } | undefined, {
2293
+ type: "percent" | "amount";
2294
+ value: number;
2295
+ } | null | undefined>;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ description: string;
2298
+ quantity: number;
2299
+ unitAmount: number;
2300
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
2301
+ discount?: {
2302
+ type: "percent" | "amount";
2303
+ value: number;
2304
+ } | undefined;
2305
+ }, {
2306
+ description: string;
2307
+ quantity: number;
2308
+ unitAmount: number;
2309
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
2310
+ discount?: {
2311
+ type: "percent" | "amount";
2312
+ value: number;
2313
+ } | null | undefined;
2314
+ }>, "many">;
2315
+ discount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2316
+ type: z.ZodEnum<["percent", "amount"]>;
2317
+ value: z.ZodNumber;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ type: "percent" | "amount";
2320
+ value: number;
2321
+ }, {
2322
+ type: "percent" | "amount";
2323
+ value: number;
2324
+ }>>>, {
2325
+ type: "percent" | "amount";
2326
+ value: number;
2327
+ } | undefined, {
2328
+ type: "percent" | "amount";
2329
+ value: number;
2330
+ } | null | undefined>;
2331
+ reference: z.ZodOptional<z.ZodString>;
2332
+ date: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
2333
+ dueDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
2334
+ }, "strip", z.ZodTypeAny, {
2335
+ lines: {
2336
+ description: string;
2337
+ quantity: number;
2338
+ unitAmount: number;
2339
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
2340
+ discount?: {
2341
+ type: "percent" | "amount";
2342
+ value: number;
2343
+ } | undefined;
2344
+ }[];
2345
+ date?: string | undefined;
2346
+ discount?: {
2347
+ type: "percent" | "amount";
2348
+ value: number;
2349
+ } | undefined;
2350
+ dueDate?: string | undefined;
2351
+ reference?: string | undefined;
2352
+ }, {
2353
+ lines: {
2354
+ description: string;
2355
+ quantity: number;
2356
+ unitAmount: number;
2357
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
2358
+ discount?: {
2359
+ type: "percent" | "amount";
2360
+ value: number;
2361
+ } | null | undefined;
2362
+ }[];
2363
+ date?: string | null | undefined;
2364
+ discount?: {
2365
+ type: "percent" | "amount";
2366
+ value: number;
2367
+ } | null | undefined;
2368
+ dueDate?: string | null | undefined;
2369
+ reference?: string | undefined;
2370
+ }>;
2371
+ invoiceId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ oId: string;
2374
+ draft: {
2375
+ lines: {
2376
+ description: string;
2377
+ quantity: number;
2378
+ unitAmount: number;
2379
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
2380
+ discount?: {
2381
+ type: "percent" | "amount";
2382
+ value: number;
2383
+ } | undefined;
2384
+ }[];
2385
+ date?: string | undefined;
2386
+ discount?: {
2387
+ type: "percent" | "amount";
2388
+ value: number;
2389
+ } | undefined;
2390
+ dueDate?: string | undefined;
2391
+ reference?: string | undefined;
2392
+ };
2393
+ invoiceId?: string | undefined;
2394
+ }, {
2395
+ oId: string;
2396
+ draft: {
2397
+ lines: {
2398
+ description: string;
2399
+ quantity: number;
2400
+ unitAmount: number;
2401
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
2402
+ discount?: {
2403
+ type: "percent" | "amount";
2404
+ value: number;
2405
+ } | null | undefined;
2406
+ }[];
2407
+ date?: string | null | undefined;
2408
+ discount?: {
2409
+ type: "percent" | "amount";
2410
+ value: number;
2411
+ } | null | undefined;
2412
+ dueDate?: string | null | undefined;
2413
+ reference?: string | undefined;
2414
+ };
2415
+ invoiceId?: string | null | undefined;
2416
+ }>;
2417
+ response: z.ZodObject<{
2418
+ invoiceId: z.ZodString;
2419
+ url: z.ZodString;
2420
+ total: z.ZodNumber;
2421
+ sentTo: z.ZodString;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ total: number;
2424
+ url: string;
2425
+ invoiceId: string;
2426
+ sentTo: string;
2427
+ }, {
2428
+ total: number;
2429
+ url: string;
2430
+ invoiceId: string;
2431
+ sentTo: string;
2432
+ }>;
2433
+ };
2434
+ "billing-approveAndSendInvoice": {
2435
+ request: z.ZodObject<{
2436
+ invoiceId: z.ZodString;
2437
+ }, "strip", z.ZodTypeAny, {
2438
+ invoiceId: string;
2439
+ }, {
2440
+ invoiceId: string;
2441
+ }>;
2442
+ response: z.ZodObject<{
2443
+ invoiceNumber: z.ZodOptional<z.ZodString>;
2444
+ sentTo: z.ZodString;
2445
+ }, "strip", z.ZodTypeAny, {
2446
+ sentTo: string;
2447
+ invoiceNumber?: string | undefined;
2448
+ }, {
2449
+ sentTo: string;
2450
+ invoiceNumber?: string | undefined;
2451
+ }>;
2452
+ };
2271
2453
  "billing-syncXeroInvoices": {
2272
2454
  request: z.ZodObject<{
2273
2455
  oId: z.ZodOptional<z.ZodString>;
@@ -3391,6 +3573,140 @@ export declare const allCallables: {
3391
3573
  details?: any;
3392
3574
  }>;
3393
3575
  };
3576
+ "events-getParentSignUp": {
3577
+ request: z.ZodObject<{
3578
+ eventId: z.ZodString;
3579
+ eventParentId: z.ZodOptional<z.ZodString>;
3580
+ }, "strip", z.ZodTypeAny, {
3581
+ eventId: string;
3582
+ eventParentId?: string | undefined;
3583
+ }, {
3584
+ eventId: string;
3585
+ eventParentId?: string | undefined;
3586
+ }>;
3587
+ response: z.ZodObject<{
3588
+ code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
3589
+ details: z.ZodOptional<z.ZodAny>;
3590
+ }, "strip", z.ZodTypeAny, {
3591
+ code: "notFound" | "found" | "notAccepting";
3592
+ details?: any;
3593
+ }, {
3594
+ code: "notFound" | "found" | "notAccepting";
3595
+ details?: any;
3596
+ }>;
3597
+ };
3598
+ "events-updateParentSignUp": {
3599
+ request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
3600
+ action: z.ZodLiteral<"signUp">;
3601
+ eventId: z.ZodString;
3602
+ forename: z.ZodString;
3603
+ surname: z.ZodString;
3604
+ email: z.ZodString;
3605
+ schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
3606
+ adults: z.ZodNumber;
3607
+ children: z.ZodNumber;
3608
+ }, "strip", z.ZodTypeAny, {
3609
+ action: "signUp";
3610
+ children: number;
3611
+ email: string;
3612
+ forename: string;
3613
+ surname: string;
3614
+ eventId: string;
3615
+ adults: number;
3616
+ schoolName?: string | undefined;
3617
+ }, {
3618
+ action: "signUp";
3619
+ children: number;
3620
+ email: string;
3621
+ forename: string;
3622
+ surname: string;
3623
+ eventId: string;
3624
+ adults: number;
3625
+ schoolName?: string | null | undefined;
3626
+ }>, z.ZodObject<{
3627
+ action: z.ZodLiteral<"update">;
3628
+ eventParentId: z.ZodString;
3629
+ adults: z.ZodNumber;
3630
+ children: z.ZodNumber;
3631
+ schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
3632
+ }, "strip", z.ZodTypeAny, {
3633
+ action: "update";
3634
+ children: number;
3635
+ eventParentId: string;
3636
+ adults: number;
3637
+ schoolName?: string | undefined;
3638
+ }, {
3639
+ action: "update";
3640
+ children: number;
3641
+ eventParentId: string;
3642
+ adults: number;
3643
+ schoolName?: string | null | undefined;
3644
+ }>, z.ZodObject<{
3645
+ action: z.ZodLiteral<"cancel">;
3646
+ eventParentId: z.ZodString;
3647
+ }, "strip", z.ZodTypeAny, {
3648
+ action: "cancel";
3649
+ eventParentId: string;
3650
+ }, {
3651
+ action: "cancel";
3652
+ eventParentId: string;
3653
+ }>, z.ZodObject<{
3654
+ action: z.ZodLiteral<"submitForm">;
3655
+ eventParentId: z.ZodString;
3656
+ formId: z.ZodString;
3657
+ formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3658
+ }, "strip", z.ZodTypeAny, {
3659
+ formData: Record<string, unknown>;
3660
+ action: "submitForm";
3661
+ eventParentId: string;
3662
+ formId: string;
3663
+ }, {
3664
+ formData: Record<string, unknown>;
3665
+ action: "submitForm";
3666
+ eventParentId: string;
3667
+ formId: string;
3668
+ }>, z.ZodObject<{
3669
+ action: z.ZodLiteral<"viewFile">;
3670
+ eventParentId: z.ZodString;
3671
+ fileId: z.ZodString;
3672
+ }, "strip", z.ZodTypeAny, {
3673
+ action: "viewFile";
3674
+ eventParentId: string;
3675
+ fileId: string;
3676
+ }, {
3677
+ action: "viewFile";
3678
+ eventParentId: string;
3679
+ fileId: string;
3680
+ }>, z.ZodObject<{
3681
+ action: z.ZodLiteral<"upload">;
3682
+ eventParentId: z.ZodString;
3683
+ index: z.ZodNumber;
3684
+ fileName: z.ZodString;
3685
+ }, "strip", z.ZodTypeAny, {
3686
+ index: number;
3687
+ action: "upload";
3688
+ fileName: string;
3689
+ eventParentId: string;
3690
+ }, {
3691
+ index: number;
3692
+ action: "upload";
3693
+ fileName: string;
3694
+ eventParentId: string;
3695
+ }>]>;
3696
+ response: z.ZodObject<{
3697
+ code: z.ZodEnum<["updated", "emailed", "full"]>;
3698
+ eventParentId: z.ZodOptional<z.ZodString>;
3699
+ url: z.ZodOptional<z.ZodString>;
3700
+ }, "strip", z.ZodTypeAny, {
3701
+ code: "full" | "updated" | "emailed";
3702
+ url?: string | undefined;
3703
+ eventParentId?: string | undefined;
3704
+ }, {
3705
+ code: "full" | "updated" | "emailed";
3706
+ url?: string | undefined;
3707
+ eventParentId?: string | undefined;
3708
+ }>;
3709
+ };
3394
3710
  "events-updateNonUserSchoolInvite": {
3395
3711
  request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
3396
3712
  action: z.ZodLiteral<"details">;
@@ -3521,10 +3837,10 @@ export declare const allCallables: {
3521
3837
  code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
3522
3838
  externalEventAttendeeId: z.ZodOptional<z.ZodString>;
3523
3839
  }, "strip", z.ZodTypeAny, {
3524
- code: "notFound" | "joined" | "notAccepting";
3840
+ code: "notFound" | "notAccepting" | "joined";
3525
3841
  externalEventAttendeeId?: string | undefined;
3526
3842
  }, {
3527
- code: "notFound" | "joined" | "notAccepting";
3843
+ code: "notFound" | "notAccepting" | "joined";
3528
3844
  externalEventAttendeeId?: string | undefined;
3529
3845
  }>>;
3530
3846
  };
@@ -3817,6 +4133,140 @@ export declare const callableGroups: {
3817
4133
  details?: any;
3818
4134
  }>;
3819
4135
  };
4136
+ "events-getParentSignUp": {
4137
+ request: z.ZodObject<{
4138
+ eventId: z.ZodString;
4139
+ eventParentId: z.ZodOptional<z.ZodString>;
4140
+ }, "strip", z.ZodTypeAny, {
4141
+ eventId: string;
4142
+ eventParentId?: string | undefined;
4143
+ }, {
4144
+ eventId: string;
4145
+ eventParentId?: string | undefined;
4146
+ }>;
4147
+ response: z.ZodObject<{
4148
+ code: z.ZodEnum<["found", "notFound", "notAccepting"]>;
4149
+ details: z.ZodOptional<z.ZodAny>;
4150
+ }, "strip", z.ZodTypeAny, {
4151
+ code: "notFound" | "found" | "notAccepting";
4152
+ details?: any;
4153
+ }, {
4154
+ code: "notFound" | "found" | "notAccepting";
4155
+ details?: any;
4156
+ }>;
4157
+ };
4158
+ "events-updateParentSignUp": {
4159
+ request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
4160
+ action: z.ZodLiteral<"signUp">;
4161
+ eventId: z.ZodString;
4162
+ forename: z.ZodString;
4163
+ surname: z.ZodString;
4164
+ email: z.ZodString;
4165
+ schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
4166
+ adults: z.ZodNumber;
4167
+ children: z.ZodNumber;
4168
+ }, "strip", z.ZodTypeAny, {
4169
+ action: "signUp";
4170
+ children: number;
4171
+ email: string;
4172
+ forename: string;
4173
+ surname: string;
4174
+ eventId: string;
4175
+ adults: number;
4176
+ schoolName?: string | undefined;
4177
+ }, {
4178
+ action: "signUp";
4179
+ children: number;
4180
+ email: string;
4181
+ forename: string;
4182
+ surname: string;
4183
+ eventId: string;
4184
+ adults: number;
4185
+ schoolName?: string | null | undefined;
4186
+ }>, z.ZodObject<{
4187
+ action: z.ZodLiteral<"update">;
4188
+ eventParentId: z.ZodString;
4189
+ adults: z.ZodNumber;
4190
+ children: z.ZodNumber;
4191
+ schoolName: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
4192
+ }, "strip", z.ZodTypeAny, {
4193
+ action: "update";
4194
+ children: number;
4195
+ eventParentId: string;
4196
+ adults: number;
4197
+ schoolName?: string | undefined;
4198
+ }, {
4199
+ action: "update";
4200
+ children: number;
4201
+ eventParentId: string;
4202
+ adults: number;
4203
+ schoolName?: string | null | undefined;
4204
+ }>, z.ZodObject<{
4205
+ action: z.ZodLiteral<"cancel">;
4206
+ eventParentId: z.ZodString;
4207
+ }, "strip", z.ZodTypeAny, {
4208
+ action: "cancel";
4209
+ eventParentId: string;
4210
+ }, {
4211
+ action: "cancel";
4212
+ eventParentId: string;
4213
+ }>, z.ZodObject<{
4214
+ action: z.ZodLiteral<"submitForm">;
4215
+ eventParentId: z.ZodString;
4216
+ formId: z.ZodString;
4217
+ formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4218
+ }, "strip", z.ZodTypeAny, {
4219
+ formData: Record<string, unknown>;
4220
+ action: "submitForm";
4221
+ eventParentId: string;
4222
+ formId: string;
4223
+ }, {
4224
+ formData: Record<string, unknown>;
4225
+ action: "submitForm";
4226
+ eventParentId: string;
4227
+ formId: string;
4228
+ }>, z.ZodObject<{
4229
+ action: z.ZodLiteral<"viewFile">;
4230
+ eventParentId: z.ZodString;
4231
+ fileId: z.ZodString;
4232
+ }, "strip", z.ZodTypeAny, {
4233
+ action: "viewFile";
4234
+ eventParentId: string;
4235
+ fileId: string;
4236
+ }, {
4237
+ action: "viewFile";
4238
+ eventParentId: string;
4239
+ fileId: string;
4240
+ }>, z.ZodObject<{
4241
+ action: z.ZodLiteral<"upload">;
4242
+ eventParentId: z.ZodString;
4243
+ index: z.ZodNumber;
4244
+ fileName: z.ZodString;
4245
+ }, "strip", z.ZodTypeAny, {
4246
+ index: number;
4247
+ action: "upload";
4248
+ fileName: string;
4249
+ eventParentId: string;
4250
+ }, {
4251
+ index: number;
4252
+ action: "upload";
4253
+ fileName: string;
4254
+ eventParentId: string;
4255
+ }>]>;
4256
+ response: z.ZodObject<{
4257
+ code: z.ZodEnum<["updated", "emailed", "full"]>;
4258
+ eventParentId: z.ZodOptional<z.ZodString>;
4259
+ url: z.ZodOptional<z.ZodString>;
4260
+ }, "strip", z.ZodTypeAny, {
4261
+ code: "full" | "updated" | "emailed";
4262
+ url?: string | undefined;
4263
+ eventParentId?: string | undefined;
4264
+ }, {
4265
+ code: "full" | "updated" | "emailed";
4266
+ url?: string | undefined;
4267
+ eventParentId?: string | undefined;
4268
+ }>;
4269
+ };
3820
4270
  "events-updateNonUserSchoolInvite": {
3821
4271
  request: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
3822
4272
  action: z.ZodLiteral<"details">;
@@ -3947,10 +4397,10 @@ export declare const callableGroups: {
3947
4397
  code: z.ZodEnum<["joined", "notFound", "notAccepting"]>;
3948
4398
  externalEventAttendeeId: z.ZodOptional<z.ZodString>;
3949
4399
  }, "strip", z.ZodTypeAny, {
3950
- code: "notFound" | "joined" | "notAccepting";
4400
+ code: "notFound" | "notAccepting" | "joined";
3951
4401
  externalEventAttendeeId?: string | undefined;
3952
4402
  }, {
3953
- code: "notFound" | "joined" | "notAccepting";
4403
+ code: "notFound" | "notAccepting" | "joined";
3954
4404
  externalEventAttendeeId?: string | undefined;
3955
4405
  }>>;
3956
4406
  };
@@ -5099,6 +5549,188 @@ export declare const callableGroups: {
5099
5549
  invoiceNumber?: string | undefined;
5100
5550
  }>;
5101
5551
  };
5552
+ "billing-sendInvoiceDraft": {
5553
+ request: z.ZodObject<{
5554
+ oId: z.ZodString;
5555
+ draft: z.ZodObject<{
5556
+ lines: z.ZodArray<z.ZodObject<{
5557
+ key: z.ZodOptional<z.ZodEnum<["base", "wexY10", "wexY12", "events", "destinations", "hubBase", "hubSchools", "adjustment"]>>;
5558
+ description: z.ZodString;
5559
+ quantity: z.ZodNumber;
5560
+ unitAmount: z.ZodNumber;
5561
+ discount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
5562
+ type: z.ZodEnum<["percent", "amount"]>;
5563
+ value: z.ZodNumber;
5564
+ }, "strip", z.ZodTypeAny, {
5565
+ type: "percent" | "amount";
5566
+ value: number;
5567
+ }, {
5568
+ type: "percent" | "amount";
5569
+ value: number;
5570
+ }>>>, {
5571
+ type: "percent" | "amount";
5572
+ value: number;
5573
+ } | undefined, {
5574
+ type: "percent" | "amount";
5575
+ value: number;
5576
+ } | null | undefined>;
5577
+ }, "strip", z.ZodTypeAny, {
5578
+ description: string;
5579
+ quantity: number;
5580
+ unitAmount: number;
5581
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
5582
+ discount?: {
5583
+ type: "percent" | "amount";
5584
+ value: number;
5585
+ } | undefined;
5586
+ }, {
5587
+ description: string;
5588
+ quantity: number;
5589
+ unitAmount: number;
5590
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
5591
+ discount?: {
5592
+ type: "percent" | "amount";
5593
+ value: number;
5594
+ } | null | undefined;
5595
+ }>, "many">;
5596
+ discount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
5597
+ type: z.ZodEnum<["percent", "amount"]>;
5598
+ value: z.ZodNumber;
5599
+ }, "strip", z.ZodTypeAny, {
5600
+ type: "percent" | "amount";
5601
+ value: number;
5602
+ }, {
5603
+ type: "percent" | "amount";
5604
+ value: number;
5605
+ }>>>, {
5606
+ type: "percent" | "amount";
5607
+ value: number;
5608
+ } | undefined, {
5609
+ type: "percent" | "amount";
5610
+ value: number;
5611
+ } | null | undefined>;
5612
+ reference: z.ZodOptional<z.ZodString>;
5613
+ date: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
5614
+ dueDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
5615
+ }, "strip", z.ZodTypeAny, {
5616
+ lines: {
5617
+ description: string;
5618
+ quantity: number;
5619
+ unitAmount: number;
5620
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
5621
+ discount?: {
5622
+ type: "percent" | "amount";
5623
+ value: number;
5624
+ } | undefined;
5625
+ }[];
5626
+ date?: string | undefined;
5627
+ discount?: {
5628
+ type: "percent" | "amount";
5629
+ value: number;
5630
+ } | undefined;
5631
+ dueDate?: string | undefined;
5632
+ reference?: string | undefined;
5633
+ }, {
5634
+ lines: {
5635
+ description: string;
5636
+ quantity: number;
5637
+ unitAmount: number;
5638
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
5639
+ discount?: {
5640
+ type: "percent" | "amount";
5641
+ value: number;
5642
+ } | null | undefined;
5643
+ }[];
5644
+ date?: string | null | undefined;
5645
+ discount?: {
5646
+ type: "percent" | "amount";
5647
+ value: number;
5648
+ } | null | undefined;
5649
+ dueDate?: string | null | undefined;
5650
+ reference?: string | undefined;
5651
+ }>;
5652
+ invoiceId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
5653
+ }, "strip", z.ZodTypeAny, {
5654
+ oId: string;
5655
+ draft: {
5656
+ lines: {
5657
+ description: string;
5658
+ quantity: number;
5659
+ unitAmount: number;
5660
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
5661
+ discount?: {
5662
+ type: "percent" | "amount";
5663
+ value: number;
5664
+ } | undefined;
5665
+ }[];
5666
+ date?: string | undefined;
5667
+ discount?: {
5668
+ type: "percent" | "amount";
5669
+ value: number;
5670
+ } | undefined;
5671
+ dueDate?: string | undefined;
5672
+ reference?: string | undefined;
5673
+ };
5674
+ invoiceId?: string | undefined;
5675
+ }, {
5676
+ oId: string;
5677
+ draft: {
5678
+ lines: {
5679
+ description: string;
5680
+ quantity: number;
5681
+ unitAmount: number;
5682
+ key?: "base" | "events" | "destinations" | "wexY10" | "wexY12" | "hubBase" | "hubSchools" | "adjustment" | undefined;
5683
+ discount?: {
5684
+ type: "percent" | "amount";
5685
+ value: number;
5686
+ } | null | undefined;
5687
+ }[];
5688
+ date?: string | null | undefined;
5689
+ discount?: {
5690
+ type: "percent" | "amount";
5691
+ value: number;
5692
+ } | null | undefined;
5693
+ dueDate?: string | null | undefined;
5694
+ reference?: string | undefined;
5695
+ };
5696
+ invoiceId?: string | null | undefined;
5697
+ }>;
5698
+ response: z.ZodObject<{
5699
+ invoiceId: z.ZodString;
5700
+ url: z.ZodString;
5701
+ total: z.ZodNumber;
5702
+ sentTo: z.ZodString;
5703
+ }, "strip", z.ZodTypeAny, {
5704
+ total: number;
5705
+ url: string;
5706
+ invoiceId: string;
5707
+ sentTo: string;
5708
+ }, {
5709
+ total: number;
5710
+ url: string;
5711
+ invoiceId: string;
5712
+ sentTo: string;
5713
+ }>;
5714
+ };
5715
+ "billing-approveAndSendInvoice": {
5716
+ request: z.ZodObject<{
5717
+ invoiceId: z.ZodString;
5718
+ }, "strip", z.ZodTypeAny, {
5719
+ invoiceId: string;
5720
+ }, {
5721
+ invoiceId: string;
5722
+ }>;
5723
+ response: z.ZodObject<{
5724
+ invoiceNumber: z.ZodOptional<z.ZodString>;
5725
+ sentTo: z.ZodString;
5726
+ }, "strip", z.ZodTypeAny, {
5727
+ sentTo: string;
5728
+ invoiceNumber?: string | undefined;
5729
+ }, {
5730
+ sentTo: string;
5731
+ invoiceNumber?: string | undefined;
5732
+ }>;
5733
+ };
5102
5734
  "billing-syncXeroInvoices": {
5103
5735
  request: z.ZodObject<{
5104
5736
  oId: z.ZodOptional<z.ZodString>;