@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.
@@ -2097,7 +2097,7 @@ var PlaybackInstance = class {
2097
2097
  return this.playbackData;
2098
2098
  } catch (error) {
2099
2099
  const message = getErrorMessage2(error);
2100
- console.error(`Error retrieving playback data for ${this.id}:`, message);
2100
+ console.warn(`Error retrieving playback data for ${this.id}:`, message);
2101
2101
  throw new Error(`Failed to get playback data: ${message}`);
2102
2102
  }
2103
2103
  }
@@ -2117,7 +2117,7 @@ var PlaybackInstance = class {
2117
2117
  );
2118
2118
  } catch (error) {
2119
2119
  const message = getErrorMessage2(error);
2120
- console.error(`Error controlling playback ${this.id}:`, message);
2120
+ console.warn(`Error controlling playback ${this.id}:`, message);
2121
2121
  throw new Error(`Failed to control playback: ${message}`);
2122
2122
  }
2123
2123
  }
@@ -2134,7 +2134,7 @@ var PlaybackInstance = class {
2134
2134
  await this.baseClient.delete(`/playbacks/${this.id}`);
2135
2135
  } catch (error) {
2136
2136
  const message = getErrorMessage2(error);
2137
- console.error(`Error stopping playback ${this.id}:`, message);
2137
+ console.warn(`Error stopping playback ${this.id}:`, message);
2138
2138
  throw new Error(`Failed to stop playback: ${message}`);
2139
2139
  }
2140
2140
  }
@@ -2190,7 +2190,7 @@ var Playbacks = class {
2190
2190
  return this.playbackInstances.get(id);
2191
2191
  } catch (error) {
2192
2192
  const message = getErrorMessage2(error);
2193
- console.error(`Error creating/retrieving playback instance:`, message);
2193
+ console.warn(`Error creating/retrieving playback instance:`, message);
2194
2194
  throw new Error(`Failed to manage playback instance: ${message}`);
2195
2195
  }
2196
2196
  }
@@ -2234,7 +2234,7 @@ var Playbacks = class {
2234
2234
  * @returns {Promise<Playback>} Promise resolving to playback details
2235
2235
  * @throws {Error} If the playback ID is invalid or the request fails
2236
2236
  */
2237
- async getDetails(playbackId) {
2237
+ async get(playbackId) {
2238
2238
  if (!playbackId) {
2239
2239
  throw new Error("Playback ID is required");
2240
2240
  }
@@ -2242,7 +2242,7 @@ var Playbacks = class {
2242
2242
  return await this.baseClient.get(`/playbacks/${playbackId}`);
2243
2243
  } catch (error) {
2244
2244
  const message = getErrorMessage2(error);
2245
- console.error(`Error getting playback details ${playbackId}:`, message);
2245
+ console.warn(`Error getting playback details ${playbackId}:`, message);
2246
2246
  throw new Error(`Failed to get playback details: ${message}`);
2247
2247
  }
2248
2248
  }
@@ -2261,7 +2261,7 @@ var Playbacks = class {
2261
2261
  await playback.control(operation);
2262
2262
  } catch (error) {
2263
2263
  const message = getErrorMessage2(error);
2264
- console.error(`Error controlling playback ${playbackId}:`, message);
2264
+ console.warn(`Error controlling playback ${playbackId}:`, message);
2265
2265
  throw new Error(`Failed to control playback: ${message}`);
2266
2266
  }
2267
2267
  }
@@ -2279,7 +2279,7 @@ var Playbacks = class {
2279
2279
  await playback.stop();
2280
2280
  } catch (error) {
2281
2281
  const message = getErrorMessage2(error);
2282
- console.error(`Error stopping playback ${playbackId}:`, message);
2282
+ console.warn(`Error stopping playback ${playbackId}:`, message);
2283
2283
  throw new Error(`Failed to stop playback: ${message}`);
2284
2284
  }
2285
2285
  }