mailmeteor 0.0.7 → 0.0.9
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 +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +102 -120
- package/dist/index.mjs +11 -11
- 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 +41 -42
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +45 -47
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -921,7 +921,7 @@ class HeyApiRegistry3 {
|
|
|
921
921
|
get(key) {
|
|
922
922
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
923
923
|
if (!instance) {
|
|
924
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
924
|
+
throw new Error(`No SDK client found. Create one with "new Organizations2()" to fix this error.`);
|
|
925
925
|
}
|
|
926
926
|
return instance;
|
|
927
927
|
}
|
|
@@ -1026,11 +1026,11 @@ class HeyApiRegistry9 {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
class Users extends HeyApiClient {
|
|
1029
|
-
getCurrentOrganization(
|
|
1030
|
-
const params = buildClientParams([
|
|
1029
|
+
getCurrentOrganization(user_id, options) {
|
|
1030
|
+
const params = buildClientParams([user_id], [{ in: 'path', key: 'user_id' }]);
|
|
1031
1031
|
return (options?.client ?? this.client).get({
|
|
1032
1032
|
responseStyle: 'data',
|
|
1033
|
-
url: '/users/{
|
|
1033
|
+
url: '/users/{user_id}/current_organization',
|
|
1034
1034
|
...options,
|
|
1035
1035
|
...params
|
|
1036
1036
|
});
|
|
@@ -1149,7 +1149,7 @@ class OrganizationMembers extends HeyApiClient {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
OrganizationMembers.__registry = new HeyApiRegistry2();
|
|
1152
|
-
class
|
|
1152
|
+
class Organizations extends HeyApiClient {
|
|
1153
1153
|
list(options) {
|
|
1154
1154
|
return (options?.client ?? this.client).get({
|
|
1155
1155
|
responseStyle: 'data',
|
|
@@ -1204,16 +1204,16 @@ class Organization extends HeyApiClient {
|
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
|
-
class
|
|
1207
|
+
class Organizations2 extends HeyApiClient {
|
|
1208
1208
|
constructor(args) {
|
|
1209
1209
|
super(args);
|
|
1210
|
-
|
|
1210
|
+
Organizations2.__registry.set(this, args?.key);
|
|
1211
1211
|
}
|
|
1212
|
-
get
|
|
1213
|
-
return this.
|
|
1212
|
+
get organizations() {
|
|
1213
|
+
return this._organizations ?? (this._organizations = new Organizations({ client: this.client }));
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
|
-
|
|
1216
|
+
Organizations2.__registry = new HeyApiRegistry3();
|
|
1217
1217
|
class ContactLists extends HeyApiClient {
|
|
1218
1218
|
create(parameters, options) {
|
|
1219
1219
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -1283,7 +1283,7 @@ class ContactLists2 extends HeyApiClient {
|
|
|
1283
1283
|
ContactLists2.__registry = new HeyApiRegistry4();
|
|
1284
1284
|
class Contacts extends HeyApiClient {
|
|
1285
1285
|
delAll(parameters, options) {
|
|
1286
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: '
|
|
1286
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
|
|
1287
1287
|
return (options?.client ?? this.client).delete({
|
|
1288
1288
|
responseStyle: 'data',
|
|
1289
1289
|
url: '/contacts',
|