@qurvo/sdk-node 0.0.10 → 0.0.12
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.d.ts +97 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +93 -0
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,130 @@
|
|
|
1
1
|
import type { SdkConfig } from '@qurvo/sdk-core';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the Node.js SDK.
|
|
4
|
+
*
|
|
5
|
+
* Extends the base {@link SdkConfig} with a server-specific `endpoint` override.
|
|
6
|
+
*/
|
|
2
7
|
export interface NodeSdkConfig extends SdkConfig {
|
|
8
|
+
/**
|
|
9
|
+
* Qurvo Ingest API URL.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue `"http://localhost:3001"`
|
|
12
|
+
*/
|
|
3
13
|
endpoint?: string;
|
|
4
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Server-side Qurvo analytics client for Node.js.
|
|
17
|
+
*
|
|
18
|
+
* Events are batched in an internal queue and flushed automatically
|
|
19
|
+
* at the configured interval or when the batch reaches `flushSize`.
|
|
20
|
+
* All payloads are gzip-compressed before being sent to the Ingest API.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { Qurvo } from '@qurvo/sdk-node';
|
|
25
|
+
*
|
|
26
|
+
* const qurvo = new Qurvo({
|
|
27
|
+
* apiKey: 'qk_your_api_key',
|
|
28
|
+
* endpoint: 'https://ingest.yourapp.com',
|
|
29
|
+
* });
|
|
30
|
+
*
|
|
31
|
+
* qurvo.track({ distinct_id: 'user-1', event: 'signup' });
|
|
32
|
+
* await qurvo.shutdown();
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
5
35
|
export declare class Qurvo {
|
|
6
36
|
private queue;
|
|
7
37
|
private config;
|
|
38
|
+
/**
|
|
39
|
+
* Create a new Qurvo client and start the background flush timer.
|
|
40
|
+
*
|
|
41
|
+
* @param config - SDK configuration. `apiKey` is required; all other fields
|
|
42
|
+
* have sensible defaults (see {@link NodeSdkConfig}).
|
|
43
|
+
*/
|
|
8
44
|
constructor(config: NodeSdkConfig);
|
|
45
|
+
/**
|
|
46
|
+
* Track a custom event.
|
|
47
|
+
*
|
|
48
|
+
* @param params - Event data.
|
|
49
|
+
* @param params.distinct_id - Unique identifier of the user who triggered the event.
|
|
50
|
+
* @param params.event - Event name (e.g. `"purchase"`, `"file_uploaded"`).
|
|
51
|
+
* @param params.properties - Arbitrary key-value pairs attached to the event.
|
|
52
|
+
*/
|
|
9
53
|
track(params: {
|
|
10
54
|
distinct_id: string;
|
|
11
55
|
event: string;
|
|
12
56
|
properties?: Record<string, unknown>;
|
|
13
57
|
}): void;
|
|
58
|
+
/**
|
|
59
|
+
* Identify a user and set their properties.
|
|
60
|
+
*
|
|
61
|
+
* Sends a `$identify` event. Use this to associate a known identity with
|
|
62
|
+
* an anonymous session or to update the user's profile properties.
|
|
63
|
+
*
|
|
64
|
+
* @param params - Identification data.
|
|
65
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
66
|
+
* @param params.anonymous_id - Optional anonymous identifier to merge with `distinct_id`.
|
|
67
|
+
* @param params.user_properties - Key-value pairs to set on the user profile.
|
|
68
|
+
*/
|
|
14
69
|
identify(params: {
|
|
15
70
|
distinct_id: string;
|
|
71
|
+
anonymous_id?: string;
|
|
16
72
|
user_properties: Record<string, unknown>;
|
|
17
73
|
}): void;
|
|
74
|
+
/**
|
|
75
|
+
* Set user properties, overwriting any existing values.
|
|
76
|
+
*
|
|
77
|
+
* Sends a `$set` event. Properties provided here will replace the
|
|
78
|
+
* current values on the user profile.
|
|
79
|
+
*
|
|
80
|
+
* @param params - Property data.
|
|
81
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
82
|
+
* @param params.properties - Key-value pairs to set (overwrites existing values).
|
|
83
|
+
*/
|
|
18
84
|
set(params: {
|
|
19
85
|
distinct_id: string;
|
|
20
86
|
properties: Record<string, unknown>;
|
|
21
87
|
}): void;
|
|
88
|
+
/**
|
|
89
|
+
* Set user properties only if they have not been set before.
|
|
90
|
+
*
|
|
91
|
+
* Sends a `$set_once` event. Already-existing properties are left unchanged;
|
|
92
|
+
* only missing keys are written.
|
|
93
|
+
*
|
|
94
|
+
* @param params - Property data.
|
|
95
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
96
|
+
* @param params.properties - Key-value pairs to set if not already present.
|
|
97
|
+
*/
|
|
22
98
|
setOnce(params: {
|
|
23
99
|
distinct_id: string;
|
|
24
100
|
properties: Record<string, unknown>;
|
|
25
101
|
}): void;
|
|
102
|
+
/**
|
|
103
|
+
* Track a screen view.
|
|
104
|
+
*
|
|
105
|
+
* Sends a `$screen` event with the given screen name. Useful for mobile
|
|
106
|
+
* apps or server-rendered pages where automatic page-view tracking is not
|
|
107
|
+
* available.
|
|
108
|
+
*
|
|
109
|
+
* @param params - Screen view data.
|
|
110
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
111
|
+
* @param params.screen_name - Name of the screen or page viewed.
|
|
112
|
+
* @param params.properties - Additional key-value pairs attached to the event.
|
|
113
|
+
*/
|
|
26
114
|
screen(params: {
|
|
27
115
|
distinct_id: string;
|
|
28
116
|
screen_name: string;
|
|
29
117
|
properties?: Record<string, unknown>;
|
|
30
118
|
}): void;
|
|
119
|
+
/**
|
|
120
|
+
* Flush all remaining events and stop the background queue.
|
|
121
|
+
*
|
|
122
|
+
* Call this before your process exits (e.g. on `SIGTERM`) to ensure
|
|
123
|
+
* no events are lost.
|
|
124
|
+
*
|
|
125
|
+
* @param timeoutMs - Maximum time in milliseconds to wait for the flush
|
|
126
|
+
* to complete. When omitted the SDK waits indefinitely.
|
|
127
|
+
*/
|
|
31
128
|
shutdown(timeoutMs?: number): Promise<void>;
|
|
32
129
|
}
|
|
33
130
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,iBAAiB,CAAC;AAK/D;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,KAAK;IAChB,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,MAAM,CAAgB;IAE9B;;;;;OAKG;gBACS,MAAM,EAAE,aAAa;IAiBjC;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;IAe1F;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;IAgBzG;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;IAexE;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;IAe5E;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;IAejG;;;;;;;;OAQG;IACG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM;CAGlC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Qurvo = void 0;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
4
5
|
const node_zlib_1 = require("node:zlib");
|
|
5
6
|
const sdk_core_1 = require("@qurvo/sdk-core");
|
|
6
7
|
const version_1 = require("./version");
|
|
7
8
|
const SDK_NAME = '@qurvo/sdk-node';
|
|
9
|
+
/**
|
|
10
|
+
* Server-side Qurvo analytics client for Node.js.
|
|
11
|
+
*
|
|
12
|
+
* Events are batched in an internal queue and flushed automatically
|
|
13
|
+
* at the configured interval or when the batch reaches `flushSize`.
|
|
14
|
+
* All payloads are gzip-compressed before being sent to the Ingest API.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { Qurvo } from '@qurvo/sdk-node';
|
|
19
|
+
*
|
|
20
|
+
* const qurvo = new Qurvo({
|
|
21
|
+
* apiKey: 'qk_your_api_key',
|
|
22
|
+
* endpoint: 'https://ingest.yourapp.com',
|
|
23
|
+
* });
|
|
24
|
+
*
|
|
25
|
+
* qurvo.track({ distinct_id: 'user-1', event: 'signup' });
|
|
26
|
+
* await qurvo.shutdown();
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
8
29
|
class Qurvo {
|
|
9
30
|
queue;
|
|
10
31
|
config;
|
|
32
|
+
/**
|
|
33
|
+
* Create a new Qurvo client and start the background flush timer.
|
|
34
|
+
*
|
|
35
|
+
* @param config - SDK configuration. `apiKey` is required; all other fields
|
|
36
|
+
* have sensible defaults (see {@link NodeSdkConfig}).
|
|
37
|
+
*/
|
|
11
38
|
constructor(config) {
|
|
12
39
|
this.config = config;
|
|
13
40
|
const endpoint = config.endpoint || 'http://localhost:3001';
|
|
@@ -15,6 +42,14 @@ class Qurvo {
|
|
|
15
42
|
this.queue = new sdk_core_1.EventQueue(transport, `${endpoint}/v1/batch`, config.apiKey, config.flushInterval || 5000, config.flushSize || 20, config.maxQueueSize || 1000, 30_000, config.logger);
|
|
16
43
|
this.queue.start();
|
|
17
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Track a custom event.
|
|
47
|
+
*
|
|
48
|
+
* @param params - Event data.
|
|
49
|
+
* @param params.distinct_id - Unique identifier of the user who triggered the event.
|
|
50
|
+
* @param params.event - Event name (e.g. `"purchase"`, `"file_uploaded"`).
|
|
51
|
+
* @param params.properties - Arbitrary key-value pairs attached to the event.
|
|
52
|
+
*/
|
|
18
53
|
track(params) {
|
|
19
54
|
const payload = {
|
|
20
55
|
event: params.event,
|
|
@@ -25,22 +60,46 @@ class Qurvo {
|
|
|
25
60
|
sdk_version: version_1.SDK_VERSION,
|
|
26
61
|
},
|
|
27
62
|
timestamp: new Date().toISOString(),
|
|
63
|
+
event_id: (0, node_crypto_1.randomUUID)(),
|
|
28
64
|
};
|
|
29
65
|
this.queue.enqueue(payload);
|
|
30
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Identify a user and set their properties.
|
|
69
|
+
*
|
|
70
|
+
* Sends a `$identify` event. Use this to associate a known identity with
|
|
71
|
+
* an anonymous session or to update the user's profile properties.
|
|
72
|
+
*
|
|
73
|
+
* @param params - Identification data.
|
|
74
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
75
|
+
* @param params.anonymous_id - Optional anonymous identifier to merge with `distinct_id`.
|
|
76
|
+
* @param params.user_properties - Key-value pairs to set on the user profile.
|
|
77
|
+
*/
|
|
31
78
|
identify(params) {
|
|
32
79
|
const payload = {
|
|
33
80
|
event: '$identify',
|
|
34
81
|
distinct_id: String(params.distinct_id),
|
|
82
|
+
anonymous_id: params.anonymous_id,
|
|
35
83
|
user_properties: params.user_properties,
|
|
36
84
|
context: {
|
|
37
85
|
sdk_name: SDK_NAME,
|
|
38
86
|
sdk_version: version_1.SDK_VERSION,
|
|
39
87
|
},
|
|
40
88
|
timestamp: new Date().toISOString(),
|
|
89
|
+
event_id: (0, node_crypto_1.randomUUID)(),
|
|
41
90
|
};
|
|
42
91
|
this.queue.enqueue(payload);
|
|
43
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Set user properties, overwriting any existing values.
|
|
95
|
+
*
|
|
96
|
+
* Sends a `$set` event. Properties provided here will replace the
|
|
97
|
+
* current values on the user profile.
|
|
98
|
+
*
|
|
99
|
+
* @param params - Property data.
|
|
100
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
101
|
+
* @param params.properties - Key-value pairs to set (overwrites existing values).
|
|
102
|
+
*/
|
|
44
103
|
set(params) {
|
|
45
104
|
const payload = {
|
|
46
105
|
event: '$set',
|
|
@@ -51,9 +110,20 @@ class Qurvo {
|
|
|
51
110
|
sdk_version: version_1.SDK_VERSION,
|
|
52
111
|
},
|
|
53
112
|
timestamp: new Date().toISOString(),
|
|
113
|
+
event_id: (0, node_crypto_1.randomUUID)(),
|
|
54
114
|
};
|
|
55
115
|
this.queue.enqueue(payload);
|
|
56
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Set user properties only if they have not been set before.
|
|
119
|
+
*
|
|
120
|
+
* Sends a `$set_once` event. Already-existing properties are left unchanged;
|
|
121
|
+
* only missing keys are written.
|
|
122
|
+
*
|
|
123
|
+
* @param params - Property data.
|
|
124
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
125
|
+
* @param params.properties - Key-value pairs to set if not already present.
|
|
126
|
+
*/
|
|
57
127
|
setOnce(params) {
|
|
58
128
|
const payload = {
|
|
59
129
|
event: '$set_once',
|
|
@@ -64,9 +134,22 @@ class Qurvo {
|
|
|
64
134
|
sdk_version: version_1.SDK_VERSION,
|
|
65
135
|
},
|
|
66
136
|
timestamp: new Date().toISOString(),
|
|
137
|
+
event_id: (0, node_crypto_1.randomUUID)(),
|
|
67
138
|
};
|
|
68
139
|
this.queue.enqueue(payload);
|
|
69
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Track a screen view.
|
|
143
|
+
*
|
|
144
|
+
* Sends a `$screen` event with the given screen name. Useful for mobile
|
|
145
|
+
* apps or server-rendered pages where automatic page-view tracking is not
|
|
146
|
+
* available.
|
|
147
|
+
*
|
|
148
|
+
* @param params - Screen view data.
|
|
149
|
+
* @param params.distinct_id - Unique identifier of the user.
|
|
150
|
+
* @param params.screen_name - Name of the screen or page viewed.
|
|
151
|
+
* @param params.properties - Additional key-value pairs attached to the event.
|
|
152
|
+
*/
|
|
70
153
|
screen(params) {
|
|
71
154
|
const payload = {
|
|
72
155
|
event: '$screen',
|
|
@@ -77,9 +160,19 @@ class Qurvo {
|
|
|
77
160
|
sdk_version: version_1.SDK_VERSION,
|
|
78
161
|
},
|
|
79
162
|
timestamp: new Date().toISOString(),
|
|
163
|
+
event_id: (0, node_crypto_1.randomUUID)(),
|
|
80
164
|
};
|
|
81
165
|
this.queue.enqueue(payload);
|
|
82
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Flush all remaining events and stop the background queue.
|
|
169
|
+
*
|
|
170
|
+
* Call this before your process exits (e.g. on `SIGTERM`) to ensure
|
|
171
|
+
* no events are lost.
|
|
172
|
+
*
|
|
173
|
+
* @param timeoutMs - Maximum time in milliseconds to wait for the flush
|
|
174
|
+
* to complete. When omitted the SDK waits indefinitely.
|
|
175
|
+
*/
|
|
83
176
|
async shutdown(timeoutMs) {
|
|
84
177
|
await this.queue.shutdown(timeoutMs);
|
|
85
178
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings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W,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;YACvC,eAAe,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE;YACjD,OAAO,EAAE;gBACP,QAAQ,EAAE,QAAQ;gBAClB,WAAW,EAAE,qBAAW;aACzB;YACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,QAAQ,EAAE,IAAA,wBAAU,GAAE;SACvB,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAA0F;QAC/F,MAAM,OAAO,GAAiB;YAC5B,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;YACvC,UAAU,EAAE,EAAE,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE;YACtE,OAAO,EAAE;gBACP,QAAQ,EAAE,QAAQ;gBAClB,WAAW,EAAE,qBAAW;aACzB;YACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,QAAQ,EAAE,IAAA,wBAAU,GAAE;SACvB,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,QAAQ,CAAC,SAAkB;QAC/B,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;CACF;AAtKD,sBAsKC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.12";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qurvo/sdk-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Server-side SDK for Qurvo analytics — event tracking, user identification",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@qurvo/sdk-core": "0.0.
|
|
15
|
+
"@qurvo/sdk-core": "0.0.11"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/node": "^22.0.0",
|