@voyantjs/customer-portal-react 0.28.3 → 0.29.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.
@@ -5,7 +5,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
5
5
  data: {
6
6
  bookingId: string;
7
7
  bookingNumber: string;
8
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
8
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
9
9
  sellCurrency: string;
10
10
  sellAmountCents: number | null;
11
11
  startDate: string | null;
@@ -26,7 +26,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
26
26
  title: string;
27
27
  description: string | null;
28
28
  itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
29
- status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
29
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
30
30
  serviceDate: string | null;
31
31
  startsAt: string | null;
32
32
  endsAt: string | null;
@@ -85,7 +85,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
85
85
  invoiceId: string;
86
86
  invoiceNumber: string;
87
87
  invoiceType: "invoice" | "proforma" | "credit_note";
88
- status: "pending" | "failed" | "completed" | "refunded";
88
+ status: "pending" | "completed" | "failed" | "refunded";
89
89
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
90
90
  amountCents: number;
91
91
  currency: string;
@@ -99,7 +99,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
99
99
  bookingItemId: string | null;
100
100
  travelerId: string | null;
101
101
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
102
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
102
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
103
103
  status: "pending" | "failed" | "issued" | "reissued" | "revoked";
104
104
  artifactUrl: string | null;
105
105
  }[];
@@ -5,7 +5,7 @@ export declare function useCustomerPortalBookings(options?: UseCustomerPortalBoo
5
5
  data: {
6
6
  bookingId: string;
7
7
  bookingNumber: string;
8
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
8
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
9
9
  sellCurrency: string;
10
10
  sellAmountCents: number | null;
11
11
  productTitle: string | null;
@@ -378,7 +378,7 @@ export declare function listCustomerPortalBookings(client: FetchWithValidationOp
378
378
  data: {
379
379
  bookingId: string;
380
380
  bookingNumber: string;
381
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
381
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
382
382
  sellCurrency: string;
383
383
  sellAmountCents: number | null;
384
384
  productTitle: string | null;
@@ -396,7 +396,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
396
396
  data: {
397
397
  bookingId: string;
398
398
  bookingNumber: string;
399
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
399
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
400
400
  sellCurrency: string;
401
401
  sellAmountCents: number | null;
402
402
  startDate: string | null;
@@ -417,7 +417,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
417
417
  title: string;
418
418
  description: string | null;
419
419
  itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
420
- status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
420
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
421
421
  serviceDate: string | null;
422
422
  startsAt: string | null;
423
423
  endsAt: string | null;
@@ -476,7 +476,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
476
476
  invoiceId: string;
477
477
  invoiceNumber: string;
478
478
  invoiceType: "invoice" | "proforma" | "credit_note";
479
- status: "pending" | "failed" | "completed" | "refunded";
479
+ status: "pending" | "completed" | "failed" | "refunded";
480
480
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
481
481
  amountCents: number;
482
482
  currency: string;
@@ -490,7 +490,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
490
490
  bookingItemId: string | null;
491
491
  travelerId: string | null;
492
492
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
493
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
493
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
494
494
  status: "pending" | "failed" | "issued" | "reissued" | "revoked";
495
495
  artifactUrl: string | null;
496
496
  }[];
@@ -460,7 +460,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
460
460
  data: {
461
461
  bookingId: string;
462
462
  bookingNumber: string;
463
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
463
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
464
464
  sellCurrency: string;
465
465
  sellAmountCents: number | null;
466
466
  productTitle: string | null;
@@ -477,7 +477,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
477
477
  data: {
478
478
  bookingId: string;
479
479
  bookingNumber: string;
480
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
480
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
481
481
  sellCurrency: string;
482
482
  sellAmountCents: number | null;
483
483
  productTitle: string | null;
@@ -495,7 +495,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
495
495
  data: {
496
496
  bookingId: string;
497
497
  bookingNumber: string;
498
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
498
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
499
499
  sellCurrency: string;
500
500
  sellAmountCents: number | null;
501
501
  productTitle: string | null;
@@ -515,7 +515,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
515
515
  data: {
516
516
  bookingId: string;
517
517
  bookingNumber: string;
518
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
518
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
519
519
  sellCurrency: string;
520
520
  sellAmountCents: number | null;
521
521
  productTitle: string | null;
@@ -536,7 +536,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
536
536
  data: {
537
537
  bookingId: string;
538
538
  bookingNumber: string;
539
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
539
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
540
540
  sellCurrency: string;
541
541
  sellAmountCents: number | null;
542
542
  startDate: string | null;
@@ -557,7 +557,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
557
557
  title: string;
558
558
  description: string | null;
559
559
  itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
560
- status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
560
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
561
561
  serviceDate: string | null;
562
562
  startsAt: string | null;
563
563
  endsAt: string | null;
@@ -616,7 +616,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
616
616
  invoiceId: string;
617
617
  invoiceNumber: string;
618
618
  invoiceType: "invoice" | "proforma" | "credit_note";
619
- status: "pending" | "failed" | "completed" | "refunded";
619
+ status: "pending" | "completed" | "failed" | "refunded";
620
620
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
621
621
  amountCents: number;
622
622
  currency: string;
@@ -630,7 +630,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
630
630
  bookingItemId: string | null;
631
631
  travelerId: string | null;
632
632
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
633
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
633
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
634
634
  status: "pending" | "failed" | "issued" | "reissued" | "revoked";
635
635
  artifactUrl: string | null;
636
636
  }[];
@@ -639,7 +639,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
639
639
  data: {
640
640
  bookingId: string;
641
641
  bookingNumber: string;
642
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
642
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
643
643
  sellCurrency: string;
644
644
  sellAmountCents: number | null;
645
645
  startDate: string | null;
@@ -660,7 +660,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
660
660
  title: string;
661
661
  description: string | null;
662
662
  itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
663
- status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
663
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
664
664
  serviceDate: string | null;
665
665
  startsAt: string | null;
666
666
  endsAt: string | null;
@@ -719,7 +719,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
719
719
  invoiceId: string;
720
720
  invoiceNumber: string;
721
721
  invoiceType: "invoice" | "proforma" | "credit_note";
722
- status: "pending" | "failed" | "completed" | "refunded";
722
+ status: "pending" | "completed" | "failed" | "refunded";
723
723
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
724
724
  amountCents: number;
725
725
  currency: string;
@@ -733,7 +733,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
733
733
  bookingItemId: string | null;
734
734
  travelerId: string | null;
735
735
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
736
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
736
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
737
737
  status: "pending" | "failed" | "issued" | "reissued" | "revoked";
738
738
  artifactUrl: string | null;
739
739
  }[];
@@ -743,7 +743,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
743
743
  data: {
744
744
  bookingId: string;
745
745
  bookingNumber: string;
746
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
746
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
747
747
  sellCurrency: string;
748
748
  sellAmountCents: number | null;
749
749
  startDate: string | null;
@@ -764,7 +764,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
764
764
  title: string;
765
765
  description: string | null;
766
766
  itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
767
- status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
767
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
768
768
  serviceDate: string | null;
769
769
  startsAt: string | null;
770
770
  endsAt: string | null;
@@ -823,7 +823,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
823
823
  invoiceId: string;
824
824
  invoiceNumber: string;
825
825
  invoiceType: "invoice" | "proforma" | "credit_note";
826
- status: "pending" | "failed" | "completed" | "refunded";
826
+ status: "pending" | "completed" | "failed" | "refunded";
827
827
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
828
828
  amountCents: number;
829
829
  currency: string;
@@ -837,7 +837,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
837
837
  bookingItemId: string | null;
838
838
  travelerId: string | null;
839
839
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
840
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
840
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
841
841
  status: "pending" | "failed" | "issued" | "reissued" | "revoked";
842
842
  artifactUrl: string | null;
843
843
  }[];
@@ -849,7 +849,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
849
849
  data: {
850
850
  bookingId: string;
851
851
  bookingNumber: string;
852
- status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
852
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
853
853
  sellCurrency: string;
854
854
  sellAmountCents: number | null;
855
855
  startDate: string | null;
@@ -870,7 +870,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
870
870
  title: string;
871
871
  description: string | null;
872
872
  itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
873
- status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
873
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
874
874
  serviceDate: string | null;
875
875
  startsAt: string | null;
876
876
  endsAt: string | null;
@@ -929,7 +929,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
929
929
  invoiceId: string;
930
930
  invoiceNumber: string;
931
931
  invoiceType: "invoice" | "proforma" | "credit_note";
932
- status: "pending" | "failed" | "completed" | "refunded";
932
+ status: "pending" | "completed" | "failed" | "refunded";
933
933
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
934
934
  amountCents: number;
935
935
  currency: string;
@@ -943,7 +943,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
943
943
  bookingItemId: string | null;
944
944
  travelerId: string | null;
945
945
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
946
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
946
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
947
947
  status: "pending" | "failed" | "issued" | "reissued" | "revoked";
948
948
  artifactUrl: string | null;
949
949
  }[];
package/dist/schemas.d.ts CHANGED
@@ -383,14 +383,14 @@ export declare const customerPortalBookingsResponseSchema: z.ZodObject<{
383
383
  bookingId: z.ZodString;
384
384
  bookingNumber: z.ZodString;
385
385
  status: z.ZodEnum<{
386
+ completed: "completed";
387
+ cancelled: "cancelled";
386
388
  draft: "draft";
387
389
  on_hold: "on_hold";
388
390
  awaiting_payment: "awaiting_payment";
389
391
  confirmed: "confirmed";
390
392
  in_progress: "in_progress";
391
- completed: "completed";
392
393
  expired: "expired";
393
- cancelled: "cancelled";
394
394
  }>;
395
395
  sellCurrency: z.ZodString;
396
396
  sellAmountCents: z.ZodNullable<z.ZodNumber>;
@@ -415,14 +415,14 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
415
415
  bookingId: z.ZodString;
416
416
  bookingNumber: z.ZodString;
417
417
  status: z.ZodEnum<{
418
+ completed: "completed";
419
+ cancelled: "cancelled";
418
420
  draft: "draft";
419
421
  on_hold: "on_hold";
420
422
  awaiting_payment: "awaiting_payment";
421
423
  confirmed: "confirmed";
422
424
  in_progress: "in_progress";
423
- completed: "completed";
424
425
  expired: "expired";
425
- cancelled: "cancelled";
426
426
  }>;
427
427
  sellCurrency: z.ZodString;
428
428
  sellAmountCents: z.ZodNullable<z.ZodNumber>;
@@ -460,11 +460,11 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
460
460
  transport: "transport";
461
461
  }>;
462
462
  status: z.ZodEnum<{
463
+ cancelled: "cancelled";
463
464
  draft: "draft";
464
465
  on_hold: "on_hold";
465
466
  confirmed: "confirmed";
466
467
  expired: "expired";
467
- cancelled: "cancelled";
468
468
  fulfilled: "fulfilled";
469
469
  }>;
470
470
  serviceDate: z.ZodNullable<z.ZodString>;
@@ -572,8 +572,8 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
572
572
  }>;
573
573
  status: z.ZodEnum<{
574
574
  pending: "pending";
575
- failed: "failed";
576
575
  completed: "completed";
576
+ failed: "failed";
577
577
  refunded: "refunded";
578
578
  }>;
579
579
  paymentMethod: z.ZodEnum<{
@@ -608,10 +608,10 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
608
608
  mobile: "mobile";
609
609
  }>;
610
610
  deliveryChannel: z.ZodEnum<{
611
+ api: "api";
611
612
  email: "email";
612
613
  other: "other";
613
614
  download: "download";
614
- api: "api";
615
615
  wallet: "wallet";
616
616
  }>;
617
617
  status: z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/customer-portal-react",
3
- "version": "0.28.3",
3
+ "version": "0.29.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,7 +46,7 @@
46
46
  "react": "^19.0.0",
47
47
  "react-dom": "^19.0.0",
48
48
  "zod": "^4.0.0",
49
- "@voyantjs/customer-portal": "0.28.3"
49
+ "@voyantjs/customer-portal": "0.29.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tanstack/react-query": "^5.96.2",
@@ -57,12 +57,12 @@
57
57
  "typescript": "^6.0.2",
58
58
  "vitest": "^4.1.2",
59
59
  "zod": "^4.3.6",
60
- "@voyantjs/customer-portal": "0.28.3",
61
- "@voyantjs/react": "0.28.3",
60
+ "@voyantjs/customer-portal": "0.29.0",
61
+ "@voyantjs/react": "0.29.0",
62
62
  "@voyantjs/voyant-typescript-config": "0.1.0"
63
63
  },
64
64
  "dependencies": {
65
- "@voyantjs/react": "0.28.3"
65
+ "@voyantjs/react": "0.29.0"
66
66
  },
67
67
  "files": [
68
68
  "dist"