mailmeteor 0.0.28 → 0.0.30
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 +67 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +177 -23
- package/dist/index.mjs +67 -5
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/index.d.ts +2 -2
- package/dist/types/generated-sdk/index.d.ts.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +35 -6
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +139 -20
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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,42 @@ 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
|
+
}
|
|
1616
|
+
class PipelineConversations2 extends HeyApiClient {
|
|
1617
|
+
constructor(args) {
|
|
1618
|
+
super(args);
|
|
1619
|
+
PipelineConversations2.__registry.set(this, args?.key);
|
|
1620
|
+
}
|
|
1621
|
+
get pipelineConversations() {
|
|
1622
|
+
return this._pipelineConversations ?? (this._pipelineConversations = new PipelineConversations({ client: this.client }));
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
PipelineConversations2.__registry = new HeyApiRegistry8();
|
|
1574
1626
|
class Products extends HeyApiClient {
|
|
1575
1627
|
list(options) {
|
|
1576
1628
|
return (options?.client ?? this.client).get({
|
|
@@ -1626,7 +1678,7 @@ class Billing2 extends HeyApiClient {
|
|
|
1626
1678
|
return this._billing ?? (this._billing = new Billing({ client: this.client }));
|
|
1627
1679
|
}
|
|
1628
1680
|
}
|
|
1629
|
-
Billing2.__registry = new
|
|
1681
|
+
Billing2.__registry = new HeyApiRegistry9();
|
|
1630
1682
|
class Integrations extends HeyApiClient {
|
|
1631
1683
|
retrieve(integration_id, options) {
|
|
1632
1684
|
const params = buildClientParams([integration_id], [{ in: 'path', key: 'integration_id' }]);
|
|
@@ -1637,6 +1689,15 @@ class Integrations extends HeyApiClient {
|
|
|
1637
1689
|
...params
|
|
1638
1690
|
});
|
|
1639
1691
|
}
|
|
1692
|
+
deleteAccount(integration_id, account_id, options) {
|
|
1693
|
+
const params = buildClientParams([integration_id, account_id], [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'account_id' }]);
|
|
1694
|
+
return (options?.client ?? this.client).delete({
|
|
1695
|
+
responseStyle: 'data',
|
|
1696
|
+
url: '/integrations/{integration_id}/accounts/{account_id}',
|
|
1697
|
+
...options,
|
|
1698
|
+
...params
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1640
1701
|
}
|
|
1641
1702
|
class Integrations2 extends HeyApiClient {
|
|
1642
1703
|
constructor(args) {
|
|
@@ -1647,7 +1708,7 @@ class Integrations2 extends HeyApiClient {
|
|
|
1647
1708
|
return this._integrations ?? (this._integrations = new Integrations({ client: this.client }));
|
|
1648
1709
|
}
|
|
1649
1710
|
}
|
|
1650
|
-
Integrations2.__registry = new
|
|
1711
|
+
Integrations2.__registry = new HeyApiRegistry10();
|
|
1651
1712
|
class Default extends HeyApiClient {
|
|
1652
1713
|
constructor(args) {
|
|
1653
1714
|
super(args);
|
|
@@ -1661,7 +1722,7 @@ class Default extends HeyApiClient {
|
|
|
1661
1722
|
});
|
|
1662
1723
|
}
|
|
1663
1724
|
}
|
|
1664
|
-
Default.__registry = new
|
|
1725
|
+
Default.__registry = new HeyApiRegistry11();
|
|
1665
1726
|
|
|
1666
1727
|
var types_gen = /*#__PURE__*/Object.freeze({
|
|
1667
1728
|
__proto__: null
|
|
@@ -1703,6 +1764,7 @@ class Mailmeteor {
|
|
|
1703
1764
|
this.users = new Users({ client: this.client });
|
|
1704
1765
|
this.contacts = new Contacts({ client: this.client });
|
|
1705
1766
|
this.integrations = new Integrations({ client: this.client });
|
|
1767
|
+
this.pipelineConversations = new PipelineConversations({ client: this.client });
|
|
1706
1768
|
}
|
|
1707
1769
|
setApiKey(key) {
|
|
1708
1770
|
const currentConfig = this.client.getConfig();
|