mailmeteor 0.0.65 → 0.1.0
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 +161 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +431 -198
- package/dist/index.mjs +161 -66
- 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 +66 -26
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +387 -184
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -953,7 +953,7 @@ class HeyApiRegistry5 {
|
|
|
953
953
|
get(key) {
|
|
954
954
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
955
955
|
if (!instance) {
|
|
956
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
956
|
+
throw new Error(`No SDK client found. Create one with "new BillingAddons2()" to fix this error.`);
|
|
957
957
|
}
|
|
958
958
|
return instance;
|
|
959
959
|
}
|
|
@@ -969,7 +969,7 @@ class HeyApiRegistry6 {
|
|
|
969
969
|
get(key) {
|
|
970
970
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
971
971
|
if (!instance) {
|
|
972
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
972
|
+
throw new Error(`No SDK client found. Create one with "new ContactLists2()" to fix this error.`);
|
|
973
973
|
}
|
|
974
974
|
return instance;
|
|
975
975
|
}
|
|
@@ -985,7 +985,7 @@ class HeyApiRegistry7 {
|
|
|
985
985
|
get(key) {
|
|
986
986
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
987
987
|
if (!instance) {
|
|
988
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
988
|
+
throw new Error(`No SDK client found. Create one with "new Contacts2()" to fix this error.`);
|
|
989
989
|
}
|
|
990
990
|
return instance;
|
|
991
991
|
}
|
|
@@ -1058,6 +1058,22 @@ class HeyApiRegistry11 {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
class HeyApiRegistry12 {
|
|
1061
|
+
constructor() {
|
|
1062
|
+
this.defaultKey = 'default';
|
|
1063
|
+
this.instances = new Map();
|
|
1064
|
+
}
|
|
1065
|
+
get(key) {
|
|
1066
|
+
const instance = this.instances.get(key ?? this.defaultKey);
|
|
1067
|
+
if (!instance) {
|
|
1068
|
+
throw new Error(`No SDK client found. Create one with "new Automations2()" to fix this error.`);
|
|
1069
|
+
}
|
|
1070
|
+
return instance;
|
|
1071
|
+
}
|
|
1072
|
+
set(value, key) {
|
|
1073
|
+
this.instances.set(key ?? this.defaultKey, value);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
class HeyApiRegistry13 {
|
|
1061
1077
|
constructor() {
|
|
1062
1078
|
this.defaultKey = 'default';
|
|
1063
1079
|
this.instances = new Map();
|
|
@@ -1322,6 +1338,62 @@ class BillingSubscription2 extends HeyApiClient {
|
|
|
1322
1338
|
}
|
|
1323
1339
|
}
|
|
1324
1340
|
BillingSubscription2.__registry = new HeyApiRegistry4();
|
|
1341
|
+
class BillingAddons extends HeyApiClient {
|
|
1342
|
+
getAddons(options) {
|
|
1343
|
+
return (options?.client ?? this.client).get({
|
|
1344
|
+
responseStyle: 'data',
|
|
1345
|
+
url: '/billing/addons',
|
|
1346
|
+
...options
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
previewUpdate(addon, parameters, options) {
|
|
1350
|
+
const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
|
|
1351
|
+
return (options?.client ?? this.client).post({
|
|
1352
|
+
responseStyle: 'data',
|
|
1353
|
+
url: '/billing/addons/{addon}/preview',
|
|
1354
|
+
...options,
|
|
1355
|
+
...params,
|
|
1356
|
+
headers: {
|
|
1357
|
+
'Content-Type': 'application/json',
|
|
1358
|
+
...options?.headers,
|
|
1359
|
+
...params.headers
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
getAddonUsages(addon, options) {
|
|
1364
|
+
const params = buildClientParams([addon], [{ in: 'path', key: 'addon' }]);
|
|
1365
|
+
return (options?.client ?? this.client).get({
|
|
1366
|
+
responseStyle: 'data',
|
|
1367
|
+
url: '/billing/addons/{addon}',
|
|
1368
|
+
...options,
|
|
1369
|
+
...params
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
update(addon, parameters, options) {
|
|
1373
|
+
const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
|
|
1374
|
+
return (options?.client ?? this.client).post({
|
|
1375
|
+
responseStyle: 'data',
|
|
1376
|
+
url: '/billing/addons/{addon}',
|
|
1377
|
+
...options,
|
|
1378
|
+
...params,
|
|
1379
|
+
headers: {
|
|
1380
|
+
'Content-Type': 'application/json',
|
|
1381
|
+
...options?.headers,
|
|
1382
|
+
...params.headers
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
class BillingAddons2 extends HeyApiClient {
|
|
1388
|
+
constructor(args) {
|
|
1389
|
+
super(args);
|
|
1390
|
+
BillingAddons2.__registry.set(this, args?.key);
|
|
1391
|
+
}
|
|
1392
|
+
get billingAddons() {
|
|
1393
|
+
return this._billingAddons ?? (this._billingAddons = new BillingAddons({ client: this.client }));
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
BillingAddons2.__registry = new HeyApiRegistry5();
|
|
1325
1397
|
class ContactLists extends HeyApiClient {
|
|
1326
1398
|
create(parameters, options) {
|
|
1327
1399
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -1388,7 +1460,7 @@ class ContactLists2 extends HeyApiClient {
|
|
|
1388
1460
|
return this._contactLists ?? (this._contactLists = new ContactLists({ client: this.client }));
|
|
1389
1461
|
}
|
|
1390
1462
|
}
|
|
1391
|
-
ContactLists2.__registry = new
|
|
1463
|
+
ContactLists2.__registry = new HeyApiRegistry6();
|
|
1392
1464
|
class Contacts extends HeyApiClient {
|
|
1393
1465
|
delAll(parameters, options) {
|
|
1394
1466
|
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
|
|
@@ -1547,63 +1619,7 @@ class Contacts2 extends HeyApiClient {
|
|
|
1547
1619
|
return this._contacts ?? (this._contacts = new Contacts({ client: this.client }));
|
|
1548
1620
|
}
|
|
1549
1621
|
}
|
|
1550
|
-
Contacts2.__registry = new
|
|
1551
|
-
class BillingAddons extends HeyApiClient {
|
|
1552
|
-
getAddons(options) {
|
|
1553
|
-
return (options?.client ?? this.client).get({
|
|
1554
|
-
responseStyle: 'data',
|
|
1555
|
-
url: '/billing/addons',
|
|
1556
|
-
...options
|
|
1557
|
-
});
|
|
1558
|
-
}
|
|
1559
|
-
previewUpdate(addon, parameters, options) {
|
|
1560
|
-
const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
|
|
1561
|
-
return (options?.client ?? this.client).post({
|
|
1562
|
-
responseStyle: 'data',
|
|
1563
|
-
url: '/billing/addons/{addon}/preview',
|
|
1564
|
-
...options,
|
|
1565
|
-
...params,
|
|
1566
|
-
headers: {
|
|
1567
|
-
'Content-Type': 'application/json',
|
|
1568
|
-
...options?.headers,
|
|
1569
|
-
...params.headers
|
|
1570
|
-
}
|
|
1571
|
-
});
|
|
1572
|
-
}
|
|
1573
|
-
getAddonUsages(addon, options) {
|
|
1574
|
-
const params = buildClientParams([addon], [{ in: 'path', key: 'addon' }]);
|
|
1575
|
-
return (options?.client ?? this.client).get({
|
|
1576
|
-
responseStyle: 'data',
|
|
1577
|
-
url: '/billing/addons/{addon}',
|
|
1578
|
-
...options,
|
|
1579
|
-
...params
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
update(addon, parameters, options) {
|
|
1583
|
-
const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
|
|
1584
|
-
return (options?.client ?? this.client).post({
|
|
1585
|
-
responseStyle: 'data',
|
|
1586
|
-
url: '/billing/addons/{addon}',
|
|
1587
|
-
...options,
|
|
1588
|
-
...params,
|
|
1589
|
-
headers: {
|
|
1590
|
-
'Content-Type': 'application/json',
|
|
1591
|
-
...options?.headers,
|
|
1592
|
-
...params.headers
|
|
1593
|
-
}
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
class BillingAddons2 extends HeyApiClient {
|
|
1598
|
-
constructor(args) {
|
|
1599
|
-
super(args);
|
|
1600
|
-
BillingAddons2.__registry.set(this, args?.key);
|
|
1601
|
-
}
|
|
1602
|
-
get billingAddons() {
|
|
1603
|
-
return this._billingAddons ?? (this._billingAddons = new BillingAddons({ client: this.client }));
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
BillingAddons2.__registry = new HeyApiRegistry7();
|
|
1622
|
+
Contacts2.__registry = new HeyApiRegistry7();
|
|
1607
1623
|
class PipelineConversations extends HeyApiClient {
|
|
1608
1624
|
list(parameters, options) {
|
|
1609
1625
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -1695,7 +1711,7 @@ class PipelineConversations extends HeyApiClient {
|
|
|
1695
1711
|
});
|
|
1696
1712
|
}
|
|
1697
1713
|
listMessages(pipeline_conversation_id, parameters, options) {
|
|
1698
|
-
const params = buildClientParams([pipeline_conversation_id, parameters], [{ in: 'path', key: 'pipeline_conversation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1714
|
+
const params = buildClientParams([pipeline_conversation_id, parameters], [{ in: 'path', key: 'pipeline_conversation_id' }, { args: [{ in: 'query', key: 'owner' }, { in: 'query', key: 'format' }] }]);
|
|
1699
1715
|
return (options?.client ?? this.client).get({
|
|
1700
1716
|
responseStyle: 'data',
|
|
1701
1717
|
url: '/pipeline_conversations/{pipeline_conversation_id}/messages',
|
|
@@ -1844,13 +1860,26 @@ class Integrations extends HeyApiClient {
|
|
|
1844
1860
|
...params
|
|
1845
1861
|
});
|
|
1846
1862
|
}
|
|
1847
|
-
disconnectAccount(integration_id, account_id, options) {
|
|
1848
|
-
const params = buildClientParams([
|
|
1863
|
+
disconnectAccount(integration_id, account_id, parameters, options) {
|
|
1864
|
+
const params = buildClientParams([
|
|
1865
|
+
integration_id,
|
|
1866
|
+
account_id,
|
|
1867
|
+
parameters
|
|
1868
|
+
], [
|
|
1869
|
+
{ in: 'path', key: 'integration_id' },
|
|
1870
|
+
{ in: 'path', key: 'account_id' },
|
|
1871
|
+
{ args: [{ in: 'body', key: 'reason' }] }
|
|
1872
|
+
]);
|
|
1849
1873
|
return (options?.client ?? this.client).post({
|
|
1850
1874
|
responseStyle: 'data',
|
|
1851
1875
|
url: '/integrations/{integration_id}/accounts/{account_id}/disconnect',
|
|
1852
1876
|
...options,
|
|
1853
|
-
...params
|
|
1877
|
+
...params,
|
|
1878
|
+
headers: {
|
|
1879
|
+
'Content-Type': 'application/json',
|
|
1880
|
+
...options?.headers,
|
|
1881
|
+
...params.headers
|
|
1882
|
+
}
|
|
1854
1883
|
});
|
|
1855
1884
|
}
|
|
1856
1885
|
}
|
|
@@ -1903,6 +1932,72 @@ class Jobs2 extends HeyApiClient {
|
|
|
1903
1932
|
}
|
|
1904
1933
|
}
|
|
1905
1934
|
Jobs2.__registry = new HeyApiRegistry11();
|
|
1935
|
+
class Automations extends HeyApiClient {
|
|
1936
|
+
create(parameters, options) {
|
|
1937
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
1938
|
+
{ in: 'body', key: 'owner' },
|
|
1939
|
+
{ in: 'body', key: 'name' },
|
|
1940
|
+
{ in: 'body', key: 'draft_definition' }
|
|
1941
|
+
] }]);
|
|
1942
|
+
return (options?.client ?? this.client).post({
|
|
1943
|
+
responseStyle: 'data',
|
|
1944
|
+
url: '/automations',
|
|
1945
|
+
...options,
|
|
1946
|
+
...params,
|
|
1947
|
+
headers: {
|
|
1948
|
+
'Content-Type': 'application/json',
|
|
1949
|
+
...options?.headers,
|
|
1950
|
+
...params.headers
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
del(automation_id, parameters, options) {
|
|
1955
|
+
const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1956
|
+
return (options?.client ?? this.client).delete({
|
|
1957
|
+
responseStyle: 'data',
|
|
1958
|
+
url: '/automations/{automation_id}',
|
|
1959
|
+
...options,
|
|
1960
|
+
...params
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
retrieve(automation_id, parameters, options) {
|
|
1964
|
+
const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1965
|
+
return (options?.client ?? this.client).get({
|
|
1966
|
+
responseStyle: 'data',
|
|
1967
|
+
url: '/automations/{automation_id}',
|
|
1968
|
+
...options,
|
|
1969
|
+
...params
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
update(automation_id, parameters, options) {
|
|
1973
|
+
const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [
|
|
1974
|
+
{ in: 'body', key: 'owner' },
|
|
1975
|
+
{ in: 'body', key: 'name' },
|
|
1976
|
+
{ in: 'body', key: 'draft_definition' }
|
|
1977
|
+
] }]);
|
|
1978
|
+
return (options?.client ?? this.client).patch({
|
|
1979
|
+
responseStyle: 'data',
|
|
1980
|
+
url: '/automations/{automation_id}',
|
|
1981
|
+
...options,
|
|
1982
|
+
...params,
|
|
1983
|
+
headers: {
|
|
1984
|
+
'Content-Type': 'application/json',
|
|
1985
|
+
...options?.headers,
|
|
1986
|
+
...params.headers
|
|
1987
|
+
}
|
|
1988
|
+
});
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
class Automations2 extends HeyApiClient {
|
|
1992
|
+
constructor(args) {
|
|
1993
|
+
super(args);
|
|
1994
|
+
Automations2.__registry.set(this, args?.key);
|
|
1995
|
+
}
|
|
1996
|
+
get automations() {
|
|
1997
|
+
return this._automations ?? (this._automations = new Automations({ client: this.client }));
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
Automations2.__registry = new HeyApiRegistry12();
|
|
1906
2001
|
class Default extends HeyApiClient {
|
|
1907
2002
|
constructor(args) {
|
|
1908
2003
|
super(args);
|
|
@@ -1916,7 +2011,7 @@ class Default extends HeyApiClient {
|
|
|
1916
2011
|
});
|
|
1917
2012
|
}
|
|
1918
2013
|
}
|
|
1919
|
-
Default.__registry = new
|
|
2014
|
+
Default.__registry = new HeyApiRegistry13();
|
|
1920
2015
|
|
|
1921
2016
|
function querySerializer(query) {
|
|
1922
2017
|
const parts = [];
|