mailmeteor 0.0.7 → 0.0.8

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 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 Organizations()" to fix this error.`);
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(userId, options) {
1030
- const params = buildClientParams([userId], [{ in: 'path', key: 'userId' }]);
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/{userId}/current_organization',
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 Organization extends HeyApiClient {
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 Organizations extends HeyApiClient {
1207
+ class Organizations2 extends HeyApiClient {
1208
1208
  constructor(args) {
1209
1209
  super(args);
1210
- Organizations.__registry.set(this, args?.key);
1210
+ Organizations2.__registry.set(this, args?.key);
1211
1211
  }
1212
- get organization() {
1213
- return this._organization ?? (this._organization = new Organization({ client: this.client }));
1212
+ get organizations() {
1213
+ return this._organizations ?? (this._organizations = new Organizations({ client: this.client }));
1214
1214
  }
1215
1215
  }
1216
- Organizations.__registry = new HeyApiRegistry3();
1216
+ Organizations2.__registry = new HeyApiRegistry3();
1217
1217
  class ContactLists extends HeyApiClient {
1218
1218
  create(parameters, options) {
1219
1219
  const params = buildClientParams([parameters], [{ args: [