@roarkanalytics/sdk 0.5.0 → 0.7.0
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/CHANGELOG.md +16 -0
 - package/README.md +8 -8
 - package/package.json +1 -1
 - package/src/version.ts +1 -1
 - package/version.d.ts +1 -1
 - package/version.js +1 -1
 - package/version.mjs +1 -1
 
    
        package/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,21 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Changelog
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 0.7.0 (2025-02-05)
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Full Changelog: [v0.6.0...v0.7.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.6.0...v0.7.0)
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            ### Features
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            * **api:** api update ([#55](https://github.com/roarkhq/sdk-roark-analytics-node/issues/55)) ([e8baa22](https://github.com/roarkhq/sdk-roark-analytics-node/commit/e8baa22ed4416437ca96e9481c2598c1300eea79))
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            ## 0.6.0 (2025-02-05)
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            Full Changelog: [v0.5.0...v0.6.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.5.0...v0.6.0)
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            ### Features
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            * **api:** api update ([#52](https://github.com/roarkhq/sdk-roark-analytics-node/issues/52)) ([b23f201](https://github.com/roarkhq/sdk-roark-analytics-node/commit/b23f2015558036443e61f2b8fe8a397155b08ace))
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
       3 
19 
     | 
    
         
             
            ## 0.5.0 (2025-02-05)
         
     | 
| 
       4 
20 
     | 
    
         | 
| 
       5 
21 
     | 
    
         
             
            Full Changelog: [v0.4.0...v0.5.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.4.0...v0.5.0)
         
     | 
    
        package/README.md
    CHANGED
    
    | 
         @@ -30,7 +30,7 @@ async function main() { 
     | 
|
| 
       30 
30 
     | 
    
         
             
              const callAnalysis = await client.callAnalysis.create({
         
     | 
| 
       31 
31 
     | 
    
         
             
                direction: 'INBOUND',
         
     | 
| 
       32 
32 
     | 
    
         
             
                sourceRecordingUrl: 'https://example.com/recording.mp3',
         
     | 
| 
       33 
     | 
    
         
            -
                startedAt: '2025-02- 
     | 
| 
      
 33 
     | 
    
         
            +
                startedAt: '2025-02-05T13:28:13.124Z',
         
     | 
| 
       34 
34 
     | 
    
         
             
              });
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
36 
     | 
    
         
             
              console.log(callAnalysis.data);
         
     | 
| 
         @@ -55,7 +55,7 @@ async function main() { 
     | 
|
| 
       55 
55 
     | 
    
         
             
              const params: Roark.CallAnalysisCreateParams = {
         
     | 
| 
       56 
56 
     | 
    
         
             
                direction: 'INBOUND',
         
     | 
| 
       57 
57 
     | 
    
         
             
                sourceRecordingUrl: 'https://example.com/recording.mp3',
         
     | 
| 
       58 
     | 
    
         
            -
                startedAt: '2025-02- 
     | 
| 
      
 58 
     | 
    
         
            +
                startedAt: '2025-02-05T13:28:13.124Z',
         
     | 
| 
       59 
59 
     | 
    
         
             
              };
         
     | 
| 
       60 
60 
     | 
    
         
             
              const callAnalysis: Roark.CallAnalysisCreateResponse = await client.callAnalysis.create(params);
         
     | 
| 
       61 
61 
     | 
    
         
             
            }
         
     | 
| 
         @@ -78,7 +78,7 @@ async function main() { 
     | 
|
| 
       78 
78 
     | 
    
         
             
                .create({
         
     | 
| 
       79 
79 
     | 
    
         
             
                  direction: 'INBOUND',
         
     | 
| 
       80 
80 
     | 
    
         
             
                  sourceRecordingUrl: 'https://example.com/recording.mp3',
         
     | 
| 
       81 
     | 
    
         
            -
                  startedAt: '2025-02- 
     | 
| 
      
 81 
     | 
    
         
            +
                  startedAt: '2025-02-05T13:28:13.124Z',
         
     | 
| 
       82 
82 
     | 
    
         
             
                })
         
     | 
| 
       83 
83 
     | 
    
         
             
                .catch(async (err) => {
         
     | 
| 
       84 
84 
     | 
    
         
             
                  if (err instanceof Roark.APIError) {
         
     | 
| 
         @@ -123,7 +123,7 @@ const client = new Roark({ 
     | 
|
| 
       123 
123 
     | 
    
         
             
            });
         
     | 
| 
       124 
124 
     | 
    
         | 
| 
       125 
125 
     | 
    
         
             
            // Or, configure per-request:
         
     | 
| 
       126 
     | 
    
         
            -
            await client.callAnalysis.create({ direction: 'INBOUND', sourceRecordingUrl: 'https://example.com/recording.mp3', startedAt: '2025-02- 
     | 
| 
      
 126 
     | 
    
         
            +
            await client.callAnalysis.create({ direction: 'INBOUND', sourceRecordingUrl: 'https://example.com/recording.mp3', startedAt: '2025-02-05T13:28:13.124Z' }, {
         
     | 
| 
       127 
127 
     | 
    
         
             
              maxRetries: 5,
         
     | 
| 
       128 
128 
     | 
    
         
             
            });
         
     | 
| 
       129 
129 
     | 
    
         
             
            ```
         
     | 
| 
         @@ -140,7 +140,7 @@ const client = new Roark({ 
     | 
|
| 
       140 
140 
     | 
    
         
             
            });
         
     | 
| 
       141 
141 
     | 
    
         | 
| 
       142 
142 
     | 
    
         
             
            // Override per-request:
         
     | 
| 
       143 
     | 
    
         
            -
            await client.callAnalysis.create({ direction: 'INBOUND', sourceRecordingUrl: 'https://example.com/recording.mp3', startedAt: '2025-02- 
     | 
| 
      
 143 
     | 
    
         
            +
            await client.callAnalysis.create({ direction: 'INBOUND', sourceRecordingUrl: 'https://example.com/recording.mp3', startedAt: '2025-02-05T13:28:13.124Z' }, {
         
     | 
| 
       144 
144 
     | 
    
         
             
              timeout: 5 * 1000,
         
     | 
| 
       145 
145 
     | 
    
         
             
            });
         
     | 
| 
       146 
146 
     | 
    
         
             
            ```
         
     | 
| 
         @@ -165,7 +165,7 @@ const response = await client.callAnalysis 
     | 
|
| 
       165 
165 
     | 
    
         
             
              .create({
         
     | 
| 
       166 
166 
     | 
    
         
             
                direction: 'INBOUND',
         
     | 
| 
       167 
167 
     | 
    
         
             
                sourceRecordingUrl: 'https://example.com/recording.mp3',
         
     | 
| 
       168 
     | 
    
         
            -
                startedAt: '2025-02- 
     | 
| 
      
 168 
     | 
    
         
            +
                startedAt: '2025-02-05T13:28:13.124Z',
         
     | 
| 
       169 
169 
     | 
    
         
             
              })
         
     | 
| 
       170 
170 
     | 
    
         
             
              .asResponse();
         
     | 
| 
       171 
171 
     | 
    
         
             
            console.log(response.headers.get('X-My-Header'));
         
     | 
| 
         @@ -175,7 +175,7 @@ const { data: callAnalysis, response: raw } = await client.callAnalysis 
     | 
|
| 
       175 
175 
     | 
    
         
             
              .create({
         
     | 
| 
       176 
176 
     | 
    
         
             
                direction: 'INBOUND',
         
     | 
| 
       177 
177 
     | 
    
         
             
                sourceRecordingUrl: 'https://example.com/recording.mp3',
         
     | 
| 
       178 
     | 
    
         
            -
                startedAt: '2025-02- 
     | 
| 
      
 178 
     | 
    
         
            +
                startedAt: '2025-02-05T13:28:13.124Z',
         
     | 
| 
       179 
179 
     | 
    
         
             
              })
         
     | 
| 
       180 
180 
     | 
    
         
             
              .withResponse();
         
     | 
| 
       181 
181 
     | 
    
         
             
            console.log(raw.headers.get('X-My-Header'));
         
     | 
| 
         @@ -287,7 +287,7 @@ await client.callAnalysis.create( 
     | 
|
| 
       287 
287 
     | 
    
         
             
              {
         
     | 
| 
       288 
288 
     | 
    
         
             
                direction: 'INBOUND',
         
     | 
| 
       289 
289 
     | 
    
         
             
                sourceRecordingUrl: 'https://example.com/recording.mp3',
         
     | 
| 
       290 
     | 
    
         
            -
                startedAt: '2025-02- 
     | 
| 
      
 290 
     | 
    
         
            +
                startedAt: '2025-02-05T13:28:13.124Z',
         
     | 
| 
       291 
291 
     | 
    
         
             
              },
         
     | 
| 
       292 
292 
     | 
    
         
             
              {
         
     | 
| 
       293 
293 
     | 
    
         
             
                httpAgent: new http.Agent({ keepAlive: false }),
         
     | 
    
        package/package.json
    CHANGED
    
    
    
        package/src/version.ts
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export const VERSION = '0. 
     | 
| 
      
 1 
     | 
    
         
            +
            export const VERSION = '0.7.0'; // x-release-please-version
         
     | 
    
        package/version.d.ts
    CHANGED
    
    | 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export declare const VERSION = "0. 
     | 
| 
      
 1 
     | 
    
         
            +
            export declare const VERSION = "0.7.0";
         
     | 
| 
       2 
2 
     | 
    
         
             
            //# sourceMappingURL=version.d.ts.map
         
     | 
    
        package/version.js
    CHANGED
    
    
    
        package/version.mjs
    CHANGED
    
    | 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export const VERSION = '0. 
     | 
| 
      
 1 
     | 
    
         
            +
            export const VERSION = '0.7.0'; // x-release-please-version
         
     | 
| 
       2 
2 
     | 
    
         
             
            //# sourceMappingURL=version.mjs.map
         
     |