@connectedxm/client 0.5.27 → 0.5.29

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/dist/index.d.mts CHANGED
@@ -480,6 +480,7 @@ interface BaseTicketPriceSchedule {
480
480
  id: string;
481
481
  ticketId: string;
482
482
  price: number;
483
+ name: string | null;
483
484
  startDate: string;
484
485
  endDate: string;
485
486
  createdAt: string;
@@ -585,29 +586,33 @@ declare const isTypeNotification: (notification: BaseNotification | Notification
585
586
  interface BaseCoupon {
586
587
  id: string;
587
588
  code: string;
588
- discountAmount: number;
589
- discountPercent: number;
589
+ eventId: string;
590
+ ticketId: string | null;
590
591
  ticket: BaseTicket | null;
592
+ prePaid: boolean;
593
+ active: boolean;
594
+ startDate: string | null;
595
+ endDate: string | null;
596
+ discountAmount: number | null;
597
+ discountPercent: number | null;
598
+ quantityMin: number | null;
599
+ quantityMax: number | null;
600
+ amountMin: number | null;
601
+ amountMax: number | null;
602
+ useLimit: number | null;
603
+ emailDomains: string | null;
604
+ createdAt: string;
605
+ updatedAt: string;
591
606
  }
592
607
  declare enum CouponType {
593
608
  order = "order",
594
609
  ticket = "ticket"
595
610
  }
596
611
  interface Coupon extends BaseCoupon {
597
- description: string | null;
612
+ description: string;
598
613
  }
599
614
  declare const isTypeCoupon: (coupon: BaseCoupon | Coupon) => coupon is Coupon;
600
615
  interface ManagedCoupon extends Coupon {
601
- active: boolean;
602
- startDate: string | null;
603
- endDate: string | null;
604
- quantityMin: number;
605
- quantityMax: number | null;
606
- amountMin: number;
607
- amountMax: number | null;
608
- useLimit: number | null;
609
- emailDomains: string | null;
610
- createdAt: string;
611
616
  _count: {
612
617
  registrations: number;
613
618
  };
package/dist/index.d.ts CHANGED
@@ -480,6 +480,7 @@ interface BaseTicketPriceSchedule {
480
480
  id: string;
481
481
  ticketId: string;
482
482
  price: number;
483
+ name: string | null;
483
484
  startDate: string;
484
485
  endDate: string;
485
486
  createdAt: string;
@@ -585,29 +586,33 @@ declare const isTypeNotification: (notification: BaseNotification | Notification
585
586
  interface BaseCoupon {
586
587
  id: string;
587
588
  code: string;
588
- discountAmount: number;
589
- discountPercent: number;
589
+ eventId: string;
590
+ ticketId: string | null;
590
591
  ticket: BaseTicket | null;
592
+ prePaid: boolean;
593
+ active: boolean;
594
+ startDate: string | null;
595
+ endDate: string | null;
596
+ discountAmount: number | null;
597
+ discountPercent: number | null;
598
+ quantityMin: number | null;
599
+ quantityMax: number | null;
600
+ amountMin: number | null;
601
+ amountMax: number | null;
602
+ useLimit: number | null;
603
+ emailDomains: string | null;
604
+ createdAt: string;
605
+ updatedAt: string;
591
606
  }
592
607
  declare enum CouponType {
593
608
  order = "order",
594
609
  ticket = "ticket"
595
610
  }
596
611
  interface Coupon extends BaseCoupon {
597
- description: string | null;
612
+ description: string;
598
613
  }
599
614
  declare const isTypeCoupon: (coupon: BaseCoupon | Coupon) => coupon is Coupon;
600
615
  interface ManagedCoupon extends Coupon {
601
- active: boolean;
602
- startDate: string | null;
603
- endDate: string | null;
604
- quantityMin: number;
605
- quantityMax: number | null;
606
- amountMin: number;
607
- amountMax: number | null;
608
- useLimit: number | null;
609
- emailDomains: string | null;
610
- createdAt: string;
611
616
  _count: {
612
617
  registrations: number;
613
618
  };
package/dist/index.js CHANGED
@@ -1011,7 +1011,7 @@ var isTypeCoupon = (coupon) => {
1011
1011
  return coupon.description !== void 0;
1012
1012
  };
1013
1013
  var isManagedCoupon = (coupon) => {
1014
- return coupon.active !== void 0;
1014
+ return coupon._count !== void 0;
1015
1015
  };
1016
1016
  var isTypeInstance = (instance) => {
1017
1017
  return instance.coupon !== void 0;
package/dist/index.mjs CHANGED
@@ -247,7 +247,7 @@ var isTypeCoupon = (coupon) => {
247
247
  return coupon.description !== void 0;
248
248
  };
249
249
  var isManagedCoupon = (coupon) => {
250
- return coupon.active !== void 0;
250
+ return coupon._count !== void 0;
251
251
  };
252
252
  var isTypeInstance = (instance) => {
253
253
  return instance.coupon !== void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.5.27",
3
+ "version": "0.5.29",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {