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.mjs CHANGED
@@ -919,7 +919,7 @@ class HeyApiRegistry3 {
919
919
  get(key) {
920
920
  const instance = this.instances.get(key ?? this.defaultKey);
921
921
  if (!instance) {
922
- throw new Error(`No SDK client found. Create one with "new Organizations()" to fix this error.`);
922
+ throw new Error(`No SDK client found. Create one with "new Organizations2()" to fix this error.`);
923
923
  }
924
924
  return instance;
925
925
  }
@@ -1024,11 +1024,11 @@ class HeyApiRegistry9 {
1024
1024
  }
1025
1025
  }
1026
1026
  class Users extends HeyApiClient {
1027
- getCurrentOrganization(userId, options) {
1028
- const params = buildClientParams([userId], [{ in: 'path', key: 'userId' }]);
1027
+ getCurrentOrganization(user_id, options) {
1028
+ const params = buildClientParams([user_id], [{ in: 'path', key: 'user_id' }]);
1029
1029
  return (options?.client ?? this.client).get({
1030
1030
  responseStyle: 'data',
1031
- url: '/users/{userId}/current_organization',
1031
+ url: '/users/{user_id}/current_organization',
1032
1032
  ...options,
1033
1033
  ...params
1034
1034
  });
@@ -1147,7 +1147,7 @@ class OrganizationMembers extends HeyApiClient {
1147
1147
  }
1148
1148
  }
1149
1149
  OrganizationMembers.__registry = new HeyApiRegistry2();
1150
- class Organization extends HeyApiClient {
1150
+ class Organizations extends HeyApiClient {
1151
1151
  list(options) {
1152
1152
  return (options?.client ?? this.client).get({
1153
1153
  responseStyle: 'data',
@@ -1202,16 +1202,16 @@ class Organization extends HeyApiClient {
1202
1202
  });
1203
1203
  }
1204
1204
  }
1205
- class Organizations extends HeyApiClient {
1205
+ class Organizations2 extends HeyApiClient {
1206
1206
  constructor(args) {
1207
1207
  super(args);
1208
- Organizations.__registry.set(this, args?.key);
1208
+ Organizations2.__registry.set(this, args?.key);
1209
1209
  }
1210
- get organization() {
1211
- return this._organization ?? (this._organization = new Organization({ client: this.client }));
1210
+ get organizations() {
1211
+ return this._organizations ?? (this._organizations = new Organizations({ client: this.client }));
1212
1212
  }
1213
1213
  }
1214
- Organizations.__registry = new HeyApiRegistry3();
1214
+ Organizations2.__registry = new HeyApiRegistry3();
1215
1215
  class ContactLists extends HeyApiClient {
1216
1216
  create(parameters, options) {
1217
1217
  const params = buildClientParams([parameters], [{ args: [
@@ -1281,7 +1281,7 @@ class ContactLists2 extends HeyApiClient {
1281
1281
  ContactLists2.__registry = new HeyApiRegistry4();
1282
1282
  class Contacts extends HeyApiClient {
1283
1283
  delAll(parameters, options) {
1284
- const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'owner' }, { in: 'body', key: 'contact_list' }] }]);
1284
+ const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
1285
1285
  return (options?.client ?? this.client).delete({
1286
1286
  responseStyle: 'data',
1287
1287
  url: '/contacts',