@connectedxm/admin 1.4.21 → 1.4.24

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
@@ -460,8 +460,8 @@ interface BaseAnnouncement {
460
460
  interface EventAnnouncementFilters {
461
461
  type: "event";
462
462
  ticketId?: string;
463
- questionId?: number;
464
- choiceId?: number;
463
+ questionId?: string;
464
+ choiceId?: string;
465
465
  eventRoomTypeId?: string;
466
466
  addOnId?: string;
467
467
  }
@@ -1536,17 +1536,17 @@ interface TaxIntegration {
1536
1536
  updatedAt: string;
1537
1537
  }
1538
1538
  interface BaseRegistrationQuestionChoice {
1539
- id: number;
1539
+ id: string;
1540
1540
  value: string;
1541
1541
  text: string | null;
1542
1542
  description: string | null;
1543
1543
  supply: number | null;
1544
1544
  sortOrder: number;
1545
1545
  subQuestions?: RegistrationQuestion[] | {
1546
- questionId: number;
1546
+ questionId: string;
1547
1547
  }[];
1548
1548
  question: {
1549
- id: number;
1549
+ id: string;
1550
1550
  name: string;
1551
1551
  };
1552
1552
  _count: {
@@ -1554,20 +1554,20 @@ interface BaseRegistrationQuestionChoice {
1554
1554
  };
1555
1555
  }
1556
1556
  interface Question {
1557
- id: number;
1557
+ id: string;
1558
1558
  value: string;
1559
1559
  }
1560
1560
  interface RegistrationQuestionChoice extends BaseRegistrationQuestionChoice {
1561
- questionId: number;
1561
+ questionId: string;
1562
1562
  question: BaseRegistrationQuestion;
1563
1563
  subQuestions: BaseRegistrationQuestionChoiceSubQuestion[];
1564
1564
  createdAt: string;
1565
1565
  updatedAt: string;
1566
1566
  }
1567
1567
  interface BaseRegistrationQuestionChoiceSubQuestion {
1568
- choiceId: number;
1568
+ choiceId: string;
1569
1569
  choice: BaseRegistrationQuestionChoice;
1570
- questionId: number;
1570
+ questionId: string;
1571
1571
  question: BaseRegistrationQuestion;
1572
1572
  }
1573
1573
  interface RegistrationQuestionChoiceSubQuestion extends BaseRegistrationQuestionChoiceSubQuestion {
@@ -1576,7 +1576,7 @@ interface RegistrationQuestionChoiceSubQuestion extends BaseRegistrationQuestion
1576
1576
  updatedAt: string;
1577
1577
  }
1578
1578
  interface RegistrationQuestionChoiceTranslation {
1579
- id: number;
1579
+ id: string;
1580
1580
  locale: string;
1581
1581
  value: string;
1582
1582
  text: string | null;
@@ -1585,7 +1585,7 @@ interface RegistrationQuestionChoiceTranslation {
1585
1585
  updatedAt: string;
1586
1586
  }
1587
1587
  interface BaseRegistrationQuestionResponseChange {
1588
- id: number;
1588
+ id: string;
1589
1589
  newValue: string;
1590
1590
  oldValue: string;
1591
1591
  eventId: string;
@@ -1599,9 +1599,9 @@ interface RegistrationQuestionResponseChange extends BaseRegistrationQuestionRes
1599
1599
  user: BaseUser;
1600
1600
  }
1601
1601
  interface BaseRegistrationQuestionResponse {
1602
- id: number;
1602
+ id: string;
1603
1603
  value: string;
1604
- questionId: number;
1604
+ questionId: string;
1605
1605
  question: BaseRegistrationQuestion;
1606
1606
  }
1607
1607
  interface RegistrationQuestionResponse extends BaseRegistrationQuestionResponse {
@@ -1610,7 +1610,7 @@ interface RegistrationQuestionResponse extends BaseRegistrationQuestionResponse
1610
1610
  updatedAt: string;
1611
1611
  }
1612
1612
  interface BaseRegistrationQuestionSearchValue {
1613
- id: number;
1613
+ id: string;
1614
1614
  value: string;
1615
1615
  top: boolean;
1616
1616
  }
@@ -1618,7 +1618,7 @@ interface RegistrationQuestionSearchValue extends BaseRegistrationQuestionSearch
1618
1618
  createdAt: string;
1619
1619
  }
1620
1620
  interface BaseRegistrationQuestion {
1621
- id: number;
1621
+ id: string;
1622
1622
  eventId: string;
1623
1623
  type: RegistrationQuestionType;
1624
1624
  name: string;
@@ -1647,7 +1647,7 @@ interface RegistrationQuestion extends BaseRegistrationQuestion {
1647
1647
  };
1648
1648
  }
1649
1649
  interface RegistrationQuestionTranslation {
1650
- id: number;
1650
+ id: string;
1651
1651
  locale: string;
1652
1652
  label: string | null;
1653
1653
  placeholder: string | null;
@@ -1656,9 +1656,9 @@ interface RegistrationQuestionTranslation {
1656
1656
  updatedAt: string;
1657
1657
  }
1658
1658
  interface BaseRegistrationSectionQuestion {
1659
- sectionId: number;
1659
+ sectionId: string;
1660
1660
  section: BaseRegistrationSection;
1661
- questionId: number;
1661
+ questionId: string;
1662
1662
  question: BaseRegistrationQuestion;
1663
1663
  sortOrder: number;
1664
1664
  }
@@ -1667,7 +1667,7 @@ interface RegistrationSectionQuestion extends BaseRegistrationSectionQuestion {
1667
1667
  updatedAt: string;
1668
1668
  }
1669
1669
  interface BaseRegistrationSection {
1670
- id: number;
1670
+ id: string;
1671
1671
  eventId: string;
1672
1672
  name: string;
1673
1673
  description: string | null;
@@ -1686,7 +1686,7 @@ interface RegistrationSection extends BaseRegistrationSection {
1686
1686
  updatedAt: string;
1687
1687
  }
1688
1688
  interface RegistrationSectionTranslation {
1689
- id: number;
1689
+ id: string;
1690
1690
  locale: string;
1691
1691
  name: string;
1692
1692
  description: string | null;
@@ -3763,6 +3763,7 @@ interface ReportCreateInputs {
3763
3763
  parentId: string | number;
3764
3764
  eventId?: string | null;
3765
3765
  placeId?: string | null;
3766
+ groupId?: string | null;
3766
3767
  description?: string | null;
3767
3768
  filters?: string | null;
3768
3769
  columns?: string | null;
@@ -16502,7 +16503,7 @@ interface ReorderEventQuestionChoiceSubQuestionsParams extends MutationParams {
16502
16503
  eventId: string;
16503
16504
  questionId: string;
16504
16505
  choiceId: string;
16505
- questionIds: number[];
16506
+ questionIds: string[];
16506
16507
  }
16507
16508
  /**
16508
16509
  * @category Methods
@@ -16522,7 +16523,7 @@ declare const useReorderEventQuestionChoiceSubQuestions: (options?: Omit<Connect
16522
16523
  interface ReorderEventQuestionChoicesParams extends MutationParams {
16523
16524
  eventId: string;
16524
16525
  questionId: string;
16525
- choicesIds: number[];
16526
+ choicesIds: string[];
16526
16527
  }
16527
16528
  /**
16528
16529
  * @category Methods
@@ -17092,7 +17093,7 @@ declare const useRemoveEventSectionTier: (options?: Omit<ConnectedXMMutationOpti
17092
17093
  interface ReorderEventSectionQuestionsParams extends MutationParams {
17093
17094
  eventId: string;
17094
17095
  sectionId: string;
17095
- questionIds: number[];
17096
+ questionIds: string[];
17096
17097
  }
17097
17098
  /**
17098
17099
  * @category Methods
package/dist/index.d.ts CHANGED
@@ -460,8 +460,8 @@ interface BaseAnnouncement {
460
460
  interface EventAnnouncementFilters {
461
461
  type: "event";
462
462
  ticketId?: string;
463
- questionId?: number;
464
- choiceId?: number;
463
+ questionId?: string;
464
+ choiceId?: string;
465
465
  eventRoomTypeId?: string;
466
466
  addOnId?: string;
467
467
  }
@@ -1536,17 +1536,17 @@ interface TaxIntegration {
1536
1536
  updatedAt: string;
1537
1537
  }
1538
1538
  interface BaseRegistrationQuestionChoice {
1539
- id: number;
1539
+ id: string;
1540
1540
  value: string;
1541
1541
  text: string | null;
1542
1542
  description: string | null;
1543
1543
  supply: number | null;
1544
1544
  sortOrder: number;
1545
1545
  subQuestions?: RegistrationQuestion[] | {
1546
- questionId: number;
1546
+ questionId: string;
1547
1547
  }[];
1548
1548
  question: {
1549
- id: number;
1549
+ id: string;
1550
1550
  name: string;
1551
1551
  };
1552
1552
  _count: {
@@ -1554,20 +1554,20 @@ interface BaseRegistrationQuestionChoice {
1554
1554
  };
1555
1555
  }
1556
1556
  interface Question {
1557
- id: number;
1557
+ id: string;
1558
1558
  value: string;
1559
1559
  }
1560
1560
  interface RegistrationQuestionChoice extends BaseRegistrationQuestionChoice {
1561
- questionId: number;
1561
+ questionId: string;
1562
1562
  question: BaseRegistrationQuestion;
1563
1563
  subQuestions: BaseRegistrationQuestionChoiceSubQuestion[];
1564
1564
  createdAt: string;
1565
1565
  updatedAt: string;
1566
1566
  }
1567
1567
  interface BaseRegistrationQuestionChoiceSubQuestion {
1568
- choiceId: number;
1568
+ choiceId: string;
1569
1569
  choice: BaseRegistrationQuestionChoice;
1570
- questionId: number;
1570
+ questionId: string;
1571
1571
  question: BaseRegistrationQuestion;
1572
1572
  }
1573
1573
  interface RegistrationQuestionChoiceSubQuestion extends BaseRegistrationQuestionChoiceSubQuestion {
@@ -1576,7 +1576,7 @@ interface RegistrationQuestionChoiceSubQuestion extends BaseRegistrationQuestion
1576
1576
  updatedAt: string;
1577
1577
  }
1578
1578
  interface RegistrationQuestionChoiceTranslation {
1579
- id: number;
1579
+ id: string;
1580
1580
  locale: string;
1581
1581
  value: string;
1582
1582
  text: string | null;
@@ -1585,7 +1585,7 @@ interface RegistrationQuestionChoiceTranslation {
1585
1585
  updatedAt: string;
1586
1586
  }
1587
1587
  interface BaseRegistrationQuestionResponseChange {
1588
- id: number;
1588
+ id: string;
1589
1589
  newValue: string;
1590
1590
  oldValue: string;
1591
1591
  eventId: string;
@@ -1599,9 +1599,9 @@ interface RegistrationQuestionResponseChange extends BaseRegistrationQuestionRes
1599
1599
  user: BaseUser;
1600
1600
  }
1601
1601
  interface BaseRegistrationQuestionResponse {
1602
- id: number;
1602
+ id: string;
1603
1603
  value: string;
1604
- questionId: number;
1604
+ questionId: string;
1605
1605
  question: BaseRegistrationQuestion;
1606
1606
  }
1607
1607
  interface RegistrationQuestionResponse extends BaseRegistrationQuestionResponse {
@@ -1610,7 +1610,7 @@ interface RegistrationQuestionResponse extends BaseRegistrationQuestionResponse
1610
1610
  updatedAt: string;
1611
1611
  }
1612
1612
  interface BaseRegistrationQuestionSearchValue {
1613
- id: number;
1613
+ id: string;
1614
1614
  value: string;
1615
1615
  top: boolean;
1616
1616
  }
@@ -1618,7 +1618,7 @@ interface RegistrationQuestionSearchValue extends BaseRegistrationQuestionSearch
1618
1618
  createdAt: string;
1619
1619
  }
1620
1620
  interface BaseRegistrationQuestion {
1621
- id: number;
1621
+ id: string;
1622
1622
  eventId: string;
1623
1623
  type: RegistrationQuestionType;
1624
1624
  name: string;
@@ -1647,7 +1647,7 @@ interface RegistrationQuestion extends BaseRegistrationQuestion {
1647
1647
  };
1648
1648
  }
1649
1649
  interface RegistrationQuestionTranslation {
1650
- id: number;
1650
+ id: string;
1651
1651
  locale: string;
1652
1652
  label: string | null;
1653
1653
  placeholder: string | null;
@@ -1656,9 +1656,9 @@ interface RegistrationQuestionTranslation {
1656
1656
  updatedAt: string;
1657
1657
  }
1658
1658
  interface BaseRegistrationSectionQuestion {
1659
- sectionId: number;
1659
+ sectionId: string;
1660
1660
  section: BaseRegistrationSection;
1661
- questionId: number;
1661
+ questionId: string;
1662
1662
  question: BaseRegistrationQuestion;
1663
1663
  sortOrder: number;
1664
1664
  }
@@ -1667,7 +1667,7 @@ interface RegistrationSectionQuestion extends BaseRegistrationSectionQuestion {
1667
1667
  updatedAt: string;
1668
1668
  }
1669
1669
  interface BaseRegistrationSection {
1670
- id: number;
1670
+ id: string;
1671
1671
  eventId: string;
1672
1672
  name: string;
1673
1673
  description: string | null;
@@ -1686,7 +1686,7 @@ interface RegistrationSection extends BaseRegistrationSection {
1686
1686
  updatedAt: string;
1687
1687
  }
1688
1688
  interface RegistrationSectionTranslation {
1689
- id: number;
1689
+ id: string;
1690
1690
  locale: string;
1691
1691
  name: string;
1692
1692
  description: string | null;
@@ -3763,6 +3763,7 @@ interface ReportCreateInputs {
3763
3763
  parentId: string | number;
3764
3764
  eventId?: string | null;
3765
3765
  placeId?: string | null;
3766
+ groupId?: string | null;
3766
3767
  description?: string | null;
3767
3768
  filters?: string | null;
3768
3769
  columns?: string | null;
@@ -16502,7 +16503,7 @@ interface ReorderEventQuestionChoiceSubQuestionsParams extends MutationParams {
16502
16503
  eventId: string;
16503
16504
  questionId: string;
16504
16505
  choiceId: string;
16505
- questionIds: number[];
16506
+ questionIds: string[];
16506
16507
  }
16507
16508
  /**
16508
16509
  * @category Methods
@@ -16522,7 +16523,7 @@ declare const useReorderEventQuestionChoiceSubQuestions: (options?: Omit<Connect
16522
16523
  interface ReorderEventQuestionChoicesParams extends MutationParams {
16523
16524
  eventId: string;
16524
16525
  questionId: string;
16525
- choicesIds: number[];
16526
+ choicesIds: string[];
16526
16527
  }
16527
16528
  /**
16528
16529
  * @category Methods
@@ -17092,7 +17093,7 @@ declare const useRemoveEventSectionTier: (options?: Omit<ConnectedXMMutationOpti
17092
17093
  interface ReorderEventSectionQuestionsParams extends MutationParams {
17093
17094
  eventId: string;
17094
17095
  sectionId: string;
17095
- questionIds: number[];
17096
+ questionIds: string[];
17096
17097
  }
17097
17098
  /**
17098
17099
  * @category Methods
package/dist/index.js CHANGED
@@ -14263,7 +14263,7 @@ var useGetReports = (type, filters, params = {}, options = {}) => {
14263
14263
  params,
14264
14264
  {
14265
14265
  ...options,
14266
- enabled: (type === "organization" || type === "event" && !!filters?.eventId || type === "booking" && !!filters?.placeId) && (options.enabled ?? true)
14266
+ enabled: (type === "organization" || type === "event" && !!filters?.eventId || type === "booking" && !!filters?.placeId || type === "group" && !!filters?.groupId) && (options.enabled ?? true)
14267
14267
  },
14268
14268
  "reports"
14269
14269
  );
package/dist/index.mjs CHANGED
@@ -11996,7 +11996,7 @@ var useGetReports = (type, filters, params = {}, options = {}) => {
11996
11996
  params,
11997
11997
  {
11998
11998
  ...options,
11999
- enabled: (type === "organization" || type === "event" && !!filters?.eventId || type === "booking" && !!filters?.placeId) && (options.enabled ?? true)
11999
+ enabled: (type === "organization" || type === "event" && !!filters?.eventId || type === "booking" && !!filters?.placeId || type === "group" && !!filters?.groupId) && (options.enabled ?? true)
12000
12000
  },
12001
12001
  "reports"
12002
12002
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "1.4.21",
3
+ "version": "1.4.24",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {