@connectedxm/client 0.5.27 → 0.5.28

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
@@ -585,29 +585,33 @@ declare const isTypeNotification: (notification: BaseNotification | Notification
585
585
  interface BaseCoupon {
586
586
  id: string;
587
587
  code: string;
588
- discountAmount: number;
589
- discountPercent: number;
588
+ eventId: string;
589
+ ticketId: string | null;
590
590
  ticket: BaseTicket | null;
591
+ prePaid: boolean;
592
+ active: boolean;
593
+ startDate: string | null;
594
+ endDate: string | null;
595
+ discountAmount: number | null;
596
+ discountPercent: number | null;
597
+ quantityMin: number | null;
598
+ quantityMax: number | null;
599
+ amountMin: number | null;
600
+ amountMax: number | null;
601
+ useLimit: number | null;
602
+ emailDomains: string | null;
603
+ createdAt: string;
604
+ updatedAt: string;
591
605
  }
592
606
  declare enum CouponType {
593
607
  order = "order",
594
608
  ticket = "ticket"
595
609
  }
596
610
  interface Coupon extends BaseCoupon {
597
- description: string | null;
611
+ description: string;
598
612
  }
599
613
  declare const isTypeCoupon: (coupon: BaseCoupon | Coupon) => coupon is Coupon;
600
614
  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
615
  _count: {
612
616
  registrations: number;
613
617
  };
package/dist/index.d.ts CHANGED
@@ -585,29 +585,33 @@ declare const isTypeNotification: (notification: BaseNotification | Notification
585
585
  interface BaseCoupon {
586
586
  id: string;
587
587
  code: string;
588
- discountAmount: number;
589
- discountPercent: number;
588
+ eventId: string;
589
+ ticketId: string | null;
590
590
  ticket: BaseTicket | null;
591
+ prePaid: boolean;
592
+ active: boolean;
593
+ startDate: string | null;
594
+ endDate: string | null;
595
+ discountAmount: number | null;
596
+ discountPercent: number | null;
597
+ quantityMin: number | null;
598
+ quantityMax: number | null;
599
+ amountMin: number | null;
600
+ amountMax: number | null;
601
+ useLimit: number | null;
602
+ emailDomains: string | null;
603
+ createdAt: string;
604
+ updatedAt: string;
591
605
  }
592
606
  declare enum CouponType {
593
607
  order = "order",
594
608
  ticket = "ticket"
595
609
  }
596
610
  interface Coupon extends BaseCoupon {
597
- description: string | null;
611
+ description: string;
598
612
  }
599
613
  declare const isTypeCoupon: (coupon: BaseCoupon | Coupon) => coupon is Coupon;
600
614
  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
615
  _count: {
612
616
  registrations: number;
613
617
  };
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.28",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {