@ipcom/asterisk-ari 0.0.144 → 0.0.145

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/esm/index.js CHANGED
@@ -2077,7 +2077,7 @@ var PlaybackInstance = class {
2077
2077
  return this.playbackData;
2078
2078
  } catch (error) {
2079
2079
  const message = getErrorMessage2(error);
2080
- console.error(`Error retrieving playback data for ${this.id}:`, message);
2080
+ console.warn(`Error retrieving playback data for ${this.id}:`, message);
2081
2081
  throw new Error(`Failed to get playback data: ${message}`);
2082
2082
  }
2083
2083
  }
@@ -2097,7 +2097,7 @@ var PlaybackInstance = class {
2097
2097
  );
2098
2098
  } catch (error) {
2099
2099
  const message = getErrorMessage2(error);
2100
- console.error(`Error controlling playback ${this.id}:`, message);
2100
+ console.warn(`Error controlling playback ${this.id}:`, message);
2101
2101
  throw new Error(`Failed to control playback: ${message}`);
2102
2102
  }
2103
2103
  }
@@ -2114,7 +2114,7 @@ var PlaybackInstance = class {
2114
2114
  await this.baseClient.delete(`/playbacks/${this.id}`);
2115
2115
  } catch (error) {
2116
2116
  const message = getErrorMessage2(error);
2117
- console.error(`Error stopping playback ${this.id}:`, message);
2117
+ console.warn(`Error stopping playback ${this.id}:`, message);
2118
2118
  throw new Error(`Failed to stop playback: ${message}`);
2119
2119
  }
2120
2120
  }
@@ -2170,7 +2170,7 @@ var Playbacks = class {
2170
2170
  return this.playbackInstances.get(id);
2171
2171
  } catch (error) {
2172
2172
  const message = getErrorMessage2(error);
2173
- console.error(`Error creating/retrieving playback instance:`, message);
2173
+ console.warn(`Error creating/retrieving playback instance:`, message);
2174
2174
  throw new Error(`Failed to manage playback instance: ${message}`);
2175
2175
  }
2176
2176
  }
@@ -2214,7 +2214,7 @@ var Playbacks = class {
2214
2214
  * @returns {Promise<Playback>} Promise resolving to playback details
2215
2215
  * @throws {Error} If the playback ID is invalid or the request fails
2216
2216
  */
2217
- async getDetails(playbackId) {
2217
+ async get(playbackId) {
2218
2218
  if (!playbackId) {
2219
2219
  throw new Error("Playback ID is required");
2220
2220
  }
@@ -2222,7 +2222,7 @@ var Playbacks = class {
2222
2222
  return await this.baseClient.get(`/playbacks/${playbackId}`);
2223
2223
  } catch (error) {
2224
2224
  const message = getErrorMessage2(error);
2225
- console.error(`Error getting playback details ${playbackId}:`, message);
2225
+ console.warn(`Error getting playback details ${playbackId}:`, message);
2226
2226
  throw new Error(`Failed to get playback details: ${message}`);
2227
2227
  }
2228
2228
  }
@@ -2241,7 +2241,7 @@ var Playbacks = class {
2241
2241
  await playback.control(operation);
2242
2242
  } catch (error) {
2243
2243
  const message = getErrorMessage2(error);
2244
- console.error(`Error controlling playback ${playbackId}:`, message);
2244
+ console.warn(`Error controlling playback ${playbackId}:`, message);
2245
2245
  throw new Error(`Failed to control playback: ${message}`);
2246
2246
  }
2247
2247
  }
@@ -2259,7 +2259,7 @@ var Playbacks = class {
2259
2259
  await playback.stop();
2260
2260
  } catch (error) {
2261
2261
  const message = getErrorMessage2(error);
2262
- console.error(`Error stopping playback ${playbackId}:`, message);
2262
+ console.warn(`Error stopping playback ${playbackId}:`, message);
2263
2263
  throw new Error(`Failed to stop playback: ${message}`);
2264
2264
  }
2265
2265
  }