mailmeteor 0.0.65 → 0.0.66
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 +61 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +191 -191
- package/dist/index.mjs +61 -61
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +23 -23
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +179 -179
- 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
|
}
|
|
@@ -1322,6 +1322,62 @@ class BillingSubscription2 extends HeyApiClient {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
1324
|
BillingSubscription2.__registry = new HeyApiRegistry4();
|
|
1325
|
+
class BillingAddons extends HeyApiClient {
|
|
1326
|
+
getAddons(options) {
|
|
1327
|
+
return (options?.client ?? this.client).get({
|
|
1328
|
+
responseStyle: 'data',
|
|
1329
|
+
url: '/billing/addons',
|
|
1330
|
+
...options
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
previewUpdate(addon, parameters, options) {
|
|
1334
|
+
const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
|
|
1335
|
+
return (options?.client ?? this.client).post({
|
|
1336
|
+
responseStyle: 'data',
|
|
1337
|
+
url: '/billing/addons/{addon}/preview',
|
|
1338
|
+
...options,
|
|
1339
|
+
...params,
|
|
1340
|
+
headers: {
|
|
1341
|
+
'Content-Type': 'application/json',
|
|
1342
|
+
...options?.headers,
|
|
1343
|
+
...params.headers
|
|
1344
|
+
}
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
getAddonUsages(addon, options) {
|
|
1348
|
+
const params = buildClientParams([addon], [{ in: 'path', key: 'addon' }]);
|
|
1349
|
+
return (options?.client ?? this.client).get({
|
|
1350
|
+
responseStyle: 'data',
|
|
1351
|
+
url: '/billing/addons/{addon}',
|
|
1352
|
+
...options,
|
|
1353
|
+
...params
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
update(addon, parameters, options) {
|
|
1357
|
+
const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
|
|
1358
|
+
return (options?.client ?? this.client).post({
|
|
1359
|
+
responseStyle: 'data',
|
|
1360
|
+
url: '/billing/addons/{addon}',
|
|
1361
|
+
...options,
|
|
1362
|
+
...params,
|
|
1363
|
+
headers: {
|
|
1364
|
+
'Content-Type': 'application/json',
|
|
1365
|
+
...options?.headers,
|
|
1366
|
+
...params.headers
|
|
1367
|
+
}
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
class BillingAddons2 extends HeyApiClient {
|
|
1372
|
+
constructor(args) {
|
|
1373
|
+
super(args);
|
|
1374
|
+
BillingAddons2.__registry.set(this, args?.key);
|
|
1375
|
+
}
|
|
1376
|
+
get billingAddons() {
|
|
1377
|
+
return this._billingAddons ?? (this._billingAddons = new BillingAddons({ client: this.client }));
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
BillingAddons2.__registry = new HeyApiRegistry5();
|
|
1325
1381
|
class ContactLists extends HeyApiClient {
|
|
1326
1382
|
create(parameters, options) {
|
|
1327
1383
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -1388,7 +1444,7 @@ class ContactLists2 extends HeyApiClient {
|
|
|
1388
1444
|
return this._contactLists ?? (this._contactLists = new ContactLists({ client: this.client }));
|
|
1389
1445
|
}
|
|
1390
1446
|
}
|
|
1391
|
-
ContactLists2.__registry = new
|
|
1447
|
+
ContactLists2.__registry = new HeyApiRegistry6();
|
|
1392
1448
|
class Contacts extends HeyApiClient {
|
|
1393
1449
|
delAll(parameters, options) {
|
|
1394
1450
|
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
|
|
@@ -1547,63 +1603,7 @@ class Contacts2 extends HeyApiClient {
|
|
|
1547
1603
|
return this._contacts ?? (this._contacts = new Contacts({ client: this.client }));
|
|
1548
1604
|
}
|
|
1549
1605
|
}
|
|
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();
|
|
1606
|
+
Contacts2.__registry = new HeyApiRegistry7();
|
|
1607
1607
|
class PipelineConversations extends HeyApiClient {
|
|
1608
1608
|
list(parameters, options) {
|
|
1609
1609
|
const params = buildClientParams([parameters], [{ args: [
|