@xoxno/types 1.0.157 → 1.0.159

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.
@@ -1,8 +1,10 @@
1
+ import { ReferralConditionType } from '../../../enums/event-referral-config.doc';
1
2
  import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
2
3
  import { ShortVoucherDoc } from '../short/short-voucher.doc';
4
+ import { EventReferralEnum } from '../../../enums/event-referral.enum';
3
5
  export declare class RewardDetails {
4
- rewardType: 'voucher' | 'invitation' | 'other';
5
- conditionType: 'ticketsSoldCount' | 'revenueCount';
6
+ rewardType: EventReferralEnum;
7
+ conditionType: ReferralConditionType;
6
8
  condition: number;
7
9
  currency?: string;
8
10
  voucherInfo?: ShortVoucherDoc;
@@ -16,6 +16,7 @@ const uuid_1 = require("uuid");
16
16
  const event_referral_config_doc_1 = require("../../../enums/event-referral-config.doc");
17
17
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
18
18
  const short_voucher_doc_1 = require("../short/short-voucher.doc");
19
+ const event_referral_enum_1 = require("../../../enums/event-referral.enum");
19
20
  class RewardDetails {
20
21
  constructor(props) {
21
22
  Object.assign(this, props);
@@ -25,7 +26,8 @@ exports.RewardDetails = RewardDetails;
25
26
  __decorate([
26
27
  (0, swagger_1.ApiProperty)({
27
28
  description: 'Specifies the type of reward given to the referral owner.',
28
- enum: ['voucher', 'invitation', 'other'],
29
+ enum: event_referral_enum_1.EventReferralEnum,
30
+ enumName: 'EventReferralEnum',
29
31
  }),
30
32
  __metadata("design:type", String)
31
33
  ], RewardDetails.prototype, "rewardType", void 0);
@@ -2,5 +2,6 @@ export declare enum EventInvitationStatus {
2
2
  PENDING = "pending",
3
3
  ACCEPTED = "accepted",
4
4
  DECLINED = "declined",
5
- CANCELED = "canceled"
5
+ CANCELED = "canceled",
6
+ CHECKED_IN = "checkedIn"
6
7
  }
@@ -7,4 +7,5 @@ var EventInvitationStatus;
7
7
  EventInvitationStatus["ACCEPTED"] = "accepted";
8
8
  EventInvitationStatus["DECLINED"] = "declined";
9
9
  EventInvitationStatus["CANCELED"] = "canceled";
10
+ EventInvitationStatus["CHECKED_IN"] = "checkedIn";
10
11
  })(EventInvitationStatus || (exports.EventInvitationStatus = EventInvitationStatus = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum EventReferralEnum {
2
+ VOUCHER = "voucher",
3
+ INVITATION = "invitation",
4
+ OTHER = "other"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventReferralEnum = void 0;
4
+ var EventReferralEnum;
5
+ (function (EventReferralEnum) {
6
+ EventReferralEnum["VOUCHER"] = "voucher";
7
+ EventReferralEnum["INVITATION"] = "invitation";
8
+ EventReferralEnum["OTHER"] = "other";
9
+ })(EventReferralEnum || (exports.EventReferralEnum = EventReferralEnum = {}));
@@ -14,6 +14,7 @@ export * from "./event-guest-status.enum";
14
14
  export * from "./event-invitation-status.enum";
15
15
  export * from "./event-question-answer-type.enum";
16
16
  export * from "./event-referral-config.doc";
17
+ export * from "./event-referral.enum";
17
18
  export * from "./event-scan-status.enum";
18
19
  export * from "./event-source.enum";
19
20
  export * from "./event-user-role.doc";
@@ -30,6 +30,7 @@ __exportStar(require("./event-guest-status.enum"), exports);
30
30
  __exportStar(require("./event-invitation-status.enum"), exports);
31
31
  __exportStar(require("./event-question-answer-type.enum"), exports);
32
32
  __exportStar(require("./event-referral-config.doc"), exports);
33
+ __exportStar(require("./event-referral.enum"), exports);
33
34
  __exportStar(require("./event-scan-status.enum"), exports);
34
35
  __exportStar(require("./event-source.enum"), exports);
35
36
  __exportStar(require("./event-user-role.doc"), exports);
package/dist/index.js CHANGED
@@ -187,6 +187,7 @@ __exportStar(require("./enums/event-guest-status.enum"), exports);
187
187
  __exportStar(require("./enums/event-invitation-status.enum"), exports);
188
188
  __exportStar(require("./enums/event-question-answer-type.enum"), exports);
189
189
  __exportStar(require("./enums/event-referral-config.doc"), exports);
190
+ __exportStar(require("./enums/event-referral.enum"), exports);
190
191
  __exportStar(require("./enums/event-scan-status.enum"), exports);
191
192
  __exportStar(require("./enums/event-source.enum"), exports);
192
193
  __exportStar(require("./enums/event-user-role.doc"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.157",
3
+ "version": "1.0.159",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {