@roarkanalytics/sdk 0.1.0-alpha.4 → 0.1.0-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -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,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.5 (2025-02-04)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([#15](https://github.com/roarkhq/sdk-roark-analytics-node/issues/15)) ([d638e9e](https://github.com/roarkhq/sdk-roark-analytics-node/commit/d638e9e55f3ad430f0e3d41130fc7b5e1cda1a35))
|
10
|
+
|
3
11
|
## 0.1.0-alpha.4 (2025-02-04)
|
4
12
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
|
package/README.md
CHANGED
@@ -27,7 +27,7 @@ const client = new Roark({
|
|
27
27
|
});
|
28
28
|
|
29
29
|
async function main() {
|
30
|
-
const call = await client.calls.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
30
|
+
const call = await client.calls.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' });
|
31
31
|
|
32
32
|
console.log(call.data);
|
33
33
|
}
|
@@ -48,7 +48,7 @@ const client = new Roark({
|
|
48
48
|
});
|
49
49
|
|
50
50
|
async function main() {
|
51
|
-
const params: Roark.CallCreateParams = { direction: 'INBOUND', startedAt: '2025-02-04T07:
|
51
|
+
const params: Roark.CallCreateParams = { direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' };
|
52
52
|
const call: Roark.CallCreateResponse = await client.calls.create(params);
|
53
53
|
}
|
54
54
|
|
@@ -67,7 +67,7 @@ a subclass of `APIError` will be thrown:
|
|
67
67
|
```ts
|
68
68
|
async function main() {
|
69
69
|
const call = await client.calls
|
70
|
-
.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
70
|
+
.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' })
|
71
71
|
.catch(async (err) => {
|
72
72
|
if (err instanceof Roark.APIError) {
|
73
73
|
console.log(err.status); // 400
|
@@ -111,7 +111,7 @@ const client = new Roark({
|
|
111
111
|
});
|
112
112
|
|
113
113
|
// Or, configure per-request:
|
114
|
-
await client.calls.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
114
|
+
await client.calls.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' }, {
|
115
115
|
maxRetries: 5,
|
116
116
|
});
|
117
117
|
```
|
@@ -128,7 +128,7 @@ const client = new Roark({
|
|
128
128
|
});
|
129
129
|
|
130
130
|
// Override per-request:
|
131
|
-
await client.calls.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
131
|
+
await client.calls.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' }, {
|
132
132
|
timeout: 5 * 1000,
|
133
133
|
});
|
134
134
|
```
|
@@ -150,13 +150,13 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
|
|
150
150
|
const client = new Roark();
|
151
151
|
|
152
152
|
const response = await client.calls
|
153
|
-
.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
153
|
+
.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' })
|
154
154
|
.asResponse();
|
155
155
|
console.log(response.headers.get('X-My-Header'));
|
156
156
|
console.log(response.statusText); // access the underlying Response object
|
157
157
|
|
158
158
|
const { data: call, response: raw } = await client.calls
|
159
|
-
.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
159
|
+
.create({ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' })
|
160
160
|
.withResponse();
|
161
161
|
console.log(raw.headers.get('X-My-Header'));
|
162
162
|
console.log(call.data);
|
@@ -264,7 +264,7 @@ const client = new Roark({
|
|
264
264
|
|
265
265
|
// Override per-request:
|
266
266
|
await client.calls.create(
|
267
|
-
{ direction: 'INBOUND', startedAt: '2025-02-04T07:
|
267
|
+
{ direction: 'INBOUND', startedAt: '2025-02-04T07:35:21.260Z' },
|
268
268
|
{
|
269
269
|
httpAgent: new http.Agent({ keepAlive: false }),
|
270
270
|
},
|
package/package.json
CHANGED
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
1
|
+
export const VERSION = '0.1.0-alpha.5'; // x-release-please-version
|
package/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
1
|
+
export declare const VERSION = "0.1.0-alpha.5";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.VERSION = void 0;
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
4
|
+
exports.VERSION = '0.1.0-alpha.5'; // x-release-please-version
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
1
|
+
export const VERSION = '0.1.0-alpha.5'; // x-release-please-version
|
2
2
|
//# sourceMappingURL=version.mjs.map
|