mailmeteor 0.0.29 → 0.0.31

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.cjs CHANGED
@@ -1001,7 +1001,7 @@ class HeyApiRegistry8 {
1001
1001
  get(key) {
1002
1002
  const instance = this.instances.get(key ?? this.defaultKey);
1003
1003
  if (!instance) {
1004
- throw new Error(`No SDK client found. Create one with "new Billing2()" to fix this error.`);
1004
+ throw new Error(`No SDK client found. Create one with "new PipelineConversations2()" to fix this error.`);
1005
1005
  }
1006
1006
  return instance;
1007
1007
  }
@@ -1017,7 +1017,7 @@ class HeyApiRegistry9 {
1017
1017
  get(key) {
1018
1018
  const instance = this.instances.get(key ?? this.defaultKey);
1019
1019
  if (!instance) {
1020
- throw new Error(`No SDK client found. Create one with "new Integrations2()" to fix this error.`);
1020
+ throw new Error(`No SDK client found. Create one with "new Billing2()" to fix this error.`);
1021
1021
  }
1022
1022
  return instance;
1023
1023
  }
@@ -1026,6 +1026,22 @@ class HeyApiRegistry9 {
1026
1026
  }
1027
1027
  }
1028
1028
  class HeyApiRegistry10 {
1029
+ constructor() {
1030
+ this.defaultKey = 'default';
1031
+ this.instances = new Map();
1032
+ }
1033
+ get(key) {
1034
+ const instance = this.instances.get(key ?? this.defaultKey);
1035
+ if (!instance) {
1036
+ throw new Error(`No SDK client found. Create one with "new Integrations2()" to fix this error.`);
1037
+ }
1038
+ return instance;
1039
+ }
1040
+ set(value, key) {
1041
+ this.instances.set(key ?? this.defaultKey, value);
1042
+ }
1043
+ }
1044
+ class HeyApiRegistry11 {
1029
1045
  constructor() {
1030
1046
  this.defaultKey = 'default';
1031
1047
  this.instances = new Map();
@@ -1571,6 +1587,56 @@ class BillingAddons2 extends HeyApiClient {
1571
1587
  }
1572
1588
  }
1573
1589
  BillingAddons2.__registry = new HeyApiRegistry7();
1590
+ class PipelineConversations extends HeyApiClient {
1591
+ list(parameters, options) {
1592
+ const params = buildClientParams([parameters], [{ args: [
1593
+ { in: 'query', key: 'owner' },
1594
+ { in: 'query', key: 'status' },
1595
+ { in: 'query', key: 'limit' },
1596
+ { in: 'query', key: 'starting_after' },
1597
+ { in: 'query', key: 'ending_before' }
1598
+ ] }]);
1599
+ return (options?.client ?? this.client).get({
1600
+ responseStyle: 'data',
1601
+ url: '/pipeline_conversations',
1602
+ ...options,
1603
+ ...params
1604
+ });
1605
+ }
1606
+ count(parameters, options) {
1607
+ const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'owner' }, { in: 'query', key: 'status' }] }]);
1608
+ return (options?.client ?? this.client).get({
1609
+ responseStyle: 'data',
1610
+ url: '/pipeline_conversations/count',
1611
+ ...options,
1612
+ ...params
1613
+ });
1614
+ }
1615
+ setStatus(pipeline_conversation_id, parameters, options) {
1616
+ const params = buildClientParams([pipeline_conversation_id, parameters], [{ in: 'path', key: 'pipeline_conversation_id' }, { args: [{ in: 'body', key: 'owner' }, { in: 'body', key: 'status' }] }]);
1617
+ return (options?.client ?? this.client).post({
1618
+ responseStyle: 'data',
1619
+ url: '/pipeline_conversations/{pipeline_conversation_id}/status',
1620
+ ...options,
1621
+ ...params,
1622
+ headers: {
1623
+ 'Content-Type': 'application/json',
1624
+ ...options?.headers,
1625
+ ...params.headers
1626
+ }
1627
+ });
1628
+ }
1629
+ }
1630
+ class PipelineConversations2 extends HeyApiClient {
1631
+ constructor(args) {
1632
+ super(args);
1633
+ PipelineConversations2.__registry.set(this, args?.key);
1634
+ }
1635
+ get pipelineConversations() {
1636
+ return this._pipelineConversations ?? (this._pipelineConversations = new PipelineConversations({ client: this.client }));
1637
+ }
1638
+ }
1639
+ PipelineConversations2.__registry = new HeyApiRegistry8();
1574
1640
  class Products extends HeyApiClient {
1575
1641
  list(options) {
1576
1642
  return (options?.client ?? this.client).get({
@@ -1626,7 +1692,7 @@ class Billing2 extends HeyApiClient {
1626
1692
  return this._billing ?? (this._billing = new Billing({ client: this.client }));
1627
1693
  }
1628
1694
  }
1629
- Billing2.__registry = new HeyApiRegistry8();
1695
+ Billing2.__registry = new HeyApiRegistry9();
1630
1696
  class Integrations extends HeyApiClient {
1631
1697
  retrieve(integration_id, options) {
1632
1698
  const params = buildClientParams([integration_id], [{ in: 'path', key: 'integration_id' }]);
@@ -1637,11 +1703,11 @@ class Integrations extends HeyApiClient {
1637
1703
  ...params
1638
1704
  });
1639
1705
  }
1640
- deleteAccount(integration_id, account, options) {
1641
- const params = buildClientParams([integration_id, account], [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'account' }]);
1706
+ deleteAccount(integration_id, account_id, options) {
1707
+ const params = buildClientParams([integration_id, account_id], [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'account_id' }]);
1642
1708
  return (options?.client ?? this.client).delete({
1643
1709
  responseStyle: 'data',
1644
- url: '/integrations/{integration_id}/accounts/{account}',
1710
+ url: '/integrations/{integration_id}/accounts/{account_id}',
1645
1711
  ...options,
1646
1712
  ...params
1647
1713
  });
@@ -1656,7 +1722,7 @@ class Integrations2 extends HeyApiClient {
1656
1722
  return this._integrations ?? (this._integrations = new Integrations({ client: this.client }));
1657
1723
  }
1658
1724
  }
1659
- Integrations2.__registry = new HeyApiRegistry9();
1725
+ Integrations2.__registry = new HeyApiRegistry10();
1660
1726
  class Default extends HeyApiClient {
1661
1727
  constructor(args) {
1662
1728
  super(args);
@@ -1670,7 +1736,7 @@ class Default extends HeyApiClient {
1670
1736
  });
1671
1737
  }
1672
1738
  }
1673
- Default.__registry = new HeyApiRegistry10();
1739
+ Default.__registry = new HeyApiRegistry11();
1674
1740
 
1675
1741
  var types_gen = /*#__PURE__*/Object.freeze({
1676
1742
  __proto__: null
@@ -1712,6 +1778,7 @@ class Mailmeteor {
1712
1778
  this.users = new Users({ client: this.client });
1713
1779
  this.contacts = new Contacts({ client: this.client });
1714
1780
  this.integrations = new Integrations({ client: this.client });
1781
+ this.pipelineConversations = new PipelineConversations({ client: this.client });
1715
1782
  }
1716
1783
  setApiKey(key) {
1717
1784
  const currentConfig = this.client.getConfig();