mailmeteor 0.0.9 → 0.0.10
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 +91 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +586 -396
- package/dist/index.mjs +91 -64
- 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 +44 -36
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +469 -302
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -903,7 +903,7 @@ class HeyApiRegistry2 {
|
|
|
903
903
|
get(key) {
|
|
904
904
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
905
905
|
if (!instance) {
|
|
906
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
906
|
+
throw new Error(`No SDK client found. Create one with "new OrganizationMembers2()" to fix this error.`);
|
|
907
907
|
}
|
|
908
908
|
return instance;
|
|
909
909
|
}
|
|
@@ -935,7 +935,7 @@ class HeyApiRegistry4 {
|
|
|
935
935
|
get(key) {
|
|
936
936
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
937
937
|
if (!instance) {
|
|
938
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
938
|
+
throw new Error(`No SDK client found. Create one with "new BillingSubscription2()" to fix this error.`);
|
|
939
939
|
}
|
|
940
940
|
return instance;
|
|
941
941
|
}
|
|
@@ -951,7 +951,7 @@ class HeyApiRegistry5 {
|
|
|
951
951
|
get(key) {
|
|
952
952
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
953
953
|
if (!instance) {
|
|
954
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
954
|
+
throw new Error(`No SDK client found. Create one with "new ContactLists2()" to fix this error.`);
|
|
955
955
|
}
|
|
956
956
|
return instance;
|
|
957
957
|
}
|
|
@@ -967,7 +967,7 @@ class HeyApiRegistry6 {
|
|
|
967
967
|
get(key) {
|
|
968
968
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
969
969
|
if (!instance) {
|
|
970
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
970
|
+
throw new Error(`No SDK client found. Create one with "new Contacts2()" to fix this error.`);
|
|
971
971
|
}
|
|
972
972
|
return instance;
|
|
973
973
|
}
|
|
@@ -983,7 +983,7 @@ class HeyApiRegistry7 {
|
|
|
983
983
|
get(key) {
|
|
984
984
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
985
985
|
if (!instance) {
|
|
986
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
986
|
+
throw new Error(`No SDK client found. Create one with "new BillingAddons2()" to fix this error.`);
|
|
987
987
|
}
|
|
988
988
|
return instance;
|
|
989
989
|
}
|
|
@@ -1024,6 +1024,15 @@ class HeyApiRegistry9 {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
class Users extends HeyApiClient {
|
|
1027
|
+
retrieve(user_id, parameters, options) {
|
|
1028
|
+
const params = buildClientParams([user_id, parameters], [{ in: 'path', key: 'user_id' }, { args: [{ in: 'query', key: 'expand' }] }]);
|
|
1029
|
+
return (options?.client ?? this.client).get({
|
|
1030
|
+
responseStyle: 'data',
|
|
1031
|
+
url: '/users/{user_id}',
|
|
1032
|
+
...options,
|
|
1033
|
+
...params
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1027
1036
|
getCurrentOrganization(user_id, options) {
|
|
1028
1037
|
const params = buildClientParams([user_id], [{ in: 'path', key: 'user_id' }]);
|
|
1029
1038
|
return (options?.client ?? this.client).get({
|
|
@@ -1081,7 +1090,7 @@ class Users2 extends HeyApiClient {
|
|
|
1081
1090
|
}
|
|
1082
1091
|
}
|
|
1083
1092
|
Users2.__registry = new HeyApiRegistry();
|
|
1084
|
-
class
|
|
1093
|
+
class OrganizationMembers extends HeyApiClient {
|
|
1085
1094
|
list(organization_id, parameters, options) {
|
|
1086
1095
|
const params = buildClientParams([organization_id, parameters], [{ in: 'path', key: 'organization_id' }, { args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'starting_after' }] }]);
|
|
1087
1096
|
return (options?.client ?? this.client).get({
|
|
@@ -1092,7 +1101,7 @@ class OrganizationMember extends HeyApiClient {
|
|
|
1092
1101
|
});
|
|
1093
1102
|
}
|
|
1094
1103
|
create(organization_id, parameters, options) {
|
|
1095
|
-
const params = buildClientParams([organization_id, parameters], [{ in: 'path', key: 'organization_id' }, { args: [{ in: 'body', key: 'email' }, { in: 'body', key: '
|
|
1104
|
+
const params = buildClientParams([organization_id, parameters], [{ in: 'path', key: 'organization_id' }, { args: [{ in: 'body', key: 'email' }, { in: 'body', key: 'roles' }] }]);
|
|
1096
1105
|
return (options?.client ?? this.client).post({
|
|
1097
1106
|
responseStyle: 'data',
|
|
1098
1107
|
url: '/organizations/{organization_id}/members',
|
|
@@ -1122,7 +1131,7 @@ class OrganizationMember extends HeyApiClient {
|
|
|
1122
1131
|
], [
|
|
1123
1132
|
{ in: 'path', key: 'organization_id' },
|
|
1124
1133
|
{ in: 'path', key: 'member_id' },
|
|
1125
|
-
{ args: [{ in: 'body', key: '
|
|
1134
|
+
{ args: [{ in: 'body', key: 'roles' }] }
|
|
1126
1135
|
]);
|
|
1127
1136
|
return (options?.client ?? this.client).patch({
|
|
1128
1137
|
responseStyle: 'data',
|
|
@@ -1137,16 +1146,16 @@ class OrganizationMember extends HeyApiClient {
|
|
|
1137
1146
|
});
|
|
1138
1147
|
}
|
|
1139
1148
|
}
|
|
1140
|
-
class
|
|
1149
|
+
class OrganizationMembers2 extends HeyApiClient {
|
|
1141
1150
|
constructor(args) {
|
|
1142
1151
|
super(args);
|
|
1143
|
-
|
|
1152
|
+
OrganizationMembers2.__registry.set(this, args?.key);
|
|
1144
1153
|
}
|
|
1145
|
-
get
|
|
1146
|
-
return this.
|
|
1154
|
+
get organizationMembers() {
|
|
1155
|
+
return this._organizationMembers ?? (this._organizationMembers = new OrganizationMembers({ client: this.client }));
|
|
1147
1156
|
}
|
|
1148
1157
|
}
|
|
1149
|
-
|
|
1158
|
+
OrganizationMembers2.__registry = new HeyApiRegistry2();
|
|
1150
1159
|
class Organizations extends HeyApiClient {
|
|
1151
1160
|
list(options) {
|
|
1152
1161
|
return (options?.client ?? this.client).get({
|
|
@@ -1212,6 +1221,71 @@ class Organizations2 extends HeyApiClient {
|
|
|
1212
1221
|
}
|
|
1213
1222
|
}
|
|
1214
1223
|
Organizations2.__registry = new HeyApiRegistry3();
|
|
1224
|
+
class BillingSubscription extends HeyApiClient {
|
|
1225
|
+
get(options) {
|
|
1226
|
+
return (options?.client ?? this.client).get({
|
|
1227
|
+
responseStyle: 'data',
|
|
1228
|
+
url: '/billing/subscription',
|
|
1229
|
+
...options
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
update(parameters, options) {
|
|
1233
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'plan' }, { in: 'body', key: 'billing_period' }] }]);
|
|
1234
|
+
return (options?.client ?? this.client).post({
|
|
1235
|
+
responseStyle: 'data',
|
|
1236
|
+
url: '/billing/subscription',
|
|
1237
|
+
...options,
|
|
1238
|
+
...params,
|
|
1239
|
+
headers: {
|
|
1240
|
+
'Content-Type': 'application/json',
|
|
1241
|
+
...options?.headers,
|
|
1242
|
+
...params.headers
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
previewUpdate(parameters, options) {
|
|
1247
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'plan' }, { in: 'body', key: 'billing_period' }] }]);
|
|
1248
|
+
return (options?.client ?? this.client).post({
|
|
1249
|
+
responseStyle: 'data',
|
|
1250
|
+
url: '/billing/subscription/preview',
|
|
1251
|
+
...options,
|
|
1252
|
+
...params,
|
|
1253
|
+
headers: {
|
|
1254
|
+
'Content-Type': 'application/json',
|
|
1255
|
+
...options?.headers,
|
|
1256
|
+
...params.headers
|
|
1257
|
+
}
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
checkout(parameters, options) {
|
|
1261
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
1262
|
+
{ in: 'body', key: 'price_id' },
|
|
1263
|
+
{ in: 'body', key: 'coupon' },
|
|
1264
|
+
{ in: 'body', key: 'currency' }
|
|
1265
|
+
] }]);
|
|
1266
|
+
return (options?.client ?? this.client).post({
|
|
1267
|
+
responseStyle: 'data',
|
|
1268
|
+
url: '/billing/subscription/checkout',
|
|
1269
|
+
...options,
|
|
1270
|
+
...params,
|
|
1271
|
+
headers: {
|
|
1272
|
+
'Content-Type': 'application/json',
|
|
1273
|
+
...options?.headers,
|
|
1274
|
+
...params.headers
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
class BillingSubscription2 extends HeyApiClient {
|
|
1280
|
+
constructor(args) {
|
|
1281
|
+
super(args);
|
|
1282
|
+
BillingSubscription2.__registry.set(this, args?.key);
|
|
1283
|
+
}
|
|
1284
|
+
get billingSubscription() {
|
|
1285
|
+
return this._billingSubscription ?? (this._billingSubscription = new BillingSubscription({ client: this.client }));
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
BillingSubscription2.__registry = new HeyApiRegistry4();
|
|
1215
1289
|
class ContactLists extends HeyApiClient {
|
|
1216
1290
|
create(parameters, options) {
|
|
1217
1291
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -1278,7 +1352,7 @@ class ContactLists2 extends HeyApiClient {
|
|
|
1278
1352
|
return this._contactLists ?? (this._contactLists = new ContactLists({ client: this.client }));
|
|
1279
1353
|
}
|
|
1280
1354
|
}
|
|
1281
|
-
ContactLists2.__registry = new
|
|
1355
|
+
ContactLists2.__registry = new HeyApiRegistry5();
|
|
1282
1356
|
class Contacts extends HeyApiClient {
|
|
1283
1357
|
delAll(parameters, options) {
|
|
1284
1358
|
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
|
|
@@ -1436,7 +1510,7 @@ class Contacts2 extends HeyApiClient {
|
|
|
1436
1510
|
return this._contacts ?? (this._contacts = new Contacts({ client: this.client }));
|
|
1437
1511
|
}
|
|
1438
1512
|
}
|
|
1439
|
-
Contacts2.__registry = new
|
|
1513
|
+
Contacts2.__registry = new HeyApiRegistry6();
|
|
1440
1514
|
class BillingAddons extends HeyApiClient {
|
|
1441
1515
|
getAddons(options) {
|
|
1442
1516
|
return (options?.client ?? this.client).get({
|
|
@@ -1492,54 +1566,7 @@ class BillingAddons2 extends HeyApiClient {
|
|
|
1492
1566
|
return this._billingAddons ?? (this._billingAddons = new BillingAddons({ client: this.client }));
|
|
1493
1567
|
}
|
|
1494
1568
|
}
|
|
1495
|
-
BillingAddons2.__registry = new
|
|
1496
|
-
class BillingSubscription extends HeyApiClient {
|
|
1497
|
-
get(options) {
|
|
1498
|
-
return (options?.client ?? this.client).get({
|
|
1499
|
-
responseStyle: 'data',
|
|
1500
|
-
url: '/billing/subscription',
|
|
1501
|
-
...options
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
update(parameters, options) {
|
|
1505
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'plan' }, { in: 'body', key: 'billing_period' }] }]);
|
|
1506
|
-
return (options?.client ?? this.client).post({
|
|
1507
|
-
responseStyle: 'data',
|
|
1508
|
-
url: '/billing/subscription',
|
|
1509
|
-
...options,
|
|
1510
|
-
...params,
|
|
1511
|
-
headers: {
|
|
1512
|
-
'Content-Type': 'application/json',
|
|
1513
|
-
...options?.headers,
|
|
1514
|
-
...params.headers
|
|
1515
|
-
}
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
previewUpdate(parameters, options) {
|
|
1519
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'plan' }, { in: 'body', key: 'billing_period' }] }]);
|
|
1520
|
-
return (options?.client ?? this.client).post({
|
|
1521
|
-
responseStyle: 'data',
|
|
1522
|
-
url: '/billing/subscription/preview',
|
|
1523
|
-
...options,
|
|
1524
|
-
...params,
|
|
1525
|
-
headers: {
|
|
1526
|
-
'Content-Type': 'application/json',
|
|
1527
|
-
...options?.headers,
|
|
1528
|
-
...params.headers
|
|
1529
|
-
}
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
class BillingSubscription2 extends HeyApiClient {
|
|
1534
|
-
constructor(args) {
|
|
1535
|
-
super(args);
|
|
1536
|
-
BillingSubscription2.__registry.set(this, args?.key);
|
|
1537
|
-
}
|
|
1538
|
-
get billingSubscription() {
|
|
1539
|
-
return this._billingSubscription ?? (this._billingSubscription = new BillingSubscription({ client: this.client }));
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
BillingSubscription2.__registry = new HeyApiRegistry7();
|
|
1569
|
+
BillingAddons2.__registry = new HeyApiRegistry7();
|
|
1543
1570
|
class Billing extends HeyApiClient {
|
|
1544
1571
|
getPrices(parameters, options) {
|
|
1545
1572
|
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'currency' }] }]);
|
|
@@ -1582,7 +1609,7 @@ var types_gen = /*#__PURE__*/Object.freeze({
|
|
|
1582
1609
|
|
|
1583
1610
|
class Mailmeteor {
|
|
1584
1611
|
constructor(key, config) {
|
|
1585
|
-
const baseUrl = config?.baseUrl || "https://mailmeteor
|
|
1612
|
+
const baseUrl = config?.baseUrl || "https://api.mailmeteor.com/v1";
|
|
1586
1613
|
this.client = createClient(createConfig({
|
|
1587
1614
|
baseUrl,
|
|
1588
1615
|
throwOnError: true,
|