@veridia/node-sdk 1.0.14 → 1.0.16

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.
@@ -32,8 +32,9 @@ export declare class VeridiaClient {
32
32
  * @param eventId - Unique ID for idempotency.
33
33
  * @param eventTime - ISO timestamp string.
34
34
  * @param properties - Arbitrary event properties.
35
+ * @param tenantId - Tenant ID is used in internal systems and should not be used by clients.
35
36
  */
36
- track(identifierType: IdentifierPayload['type'], identifierId: IdentifierPayload['id'], eventType: TrackPayload['eventType'], eventId: TrackPayload['eventId'], eventTime: TrackPayload['eventTime'], properties: TrackPayload['properties']): void;
37
+ track(identifierType: IdentifierPayload['type'], identifierId: IdentifierPayload['id'], eventType: TrackPayload['eventType'], eventId: TrackPayload['eventId'], eventTime: TrackPayload['eventTime'], properties: TrackPayload['properties'], tenantId?: string): void;
37
38
  /**
38
39
  * Retrieves the current segments for the given user.
39
40
  *
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VeridiaClient = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const signature_v4_1 = require("@aws-sdk/signature-v4");
5
+ const signature_v4_1 = require("@smithy/signature-v4");
6
6
  const http_js_1 = require("./http.js");
7
7
  const version_js_1 = require("./version.js");
8
8
  class VeridiaClient {
@@ -48,9 +48,11 @@ class VeridiaClient {
48
48
  * @param eventId - Unique ID for idempotency.
49
49
  * @param eventTime - ISO timestamp string.
50
50
  * @param properties - Arbitrary event properties.
51
+ * @param tenantId - Tenant ID is used in internal systems and should not be used by clients.
51
52
  */
52
- track(identifierType, identifierId, eventType, eventId, eventTime, properties) {
53
+ track(identifierType, identifierId, eventType, eventId, eventTime, properties, tenantId) {
53
54
  this.trackBuffer.push({
55
+ tenantId,
54
56
  identifier: { type: identifierType, id: identifierId },
55
57
  eventId,
56
58
  eventType,
@@ -55,6 +55,7 @@ export type IdentifyPayload = {
55
55
  attributes: any;
56
56
  };
57
57
  export type TrackPayload = {
58
+ tenantId?: string;
58
59
  identifier: IdentifierPayload;
59
60
  eventId: string;
60
61
  eventType: string;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.14";
1
+ export declare const SDK_VERSION = "1.0.16";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.0.14';
4
+ exports.SDK_VERSION = '1.0.16';
5
5
  //# sourceMappingURL=version.js.map
@@ -32,8 +32,9 @@ export declare class VeridiaClient {
32
32
  * @param eventId - Unique ID for idempotency.
33
33
  * @param eventTime - ISO timestamp string.
34
34
  * @param properties - Arbitrary event properties.
35
+ * @param tenantId - Tenant ID is used in internal systems and should not be used by clients.
35
36
  */
36
- track(identifierType: IdentifierPayload['type'], identifierId: IdentifierPayload['id'], eventType: TrackPayload['eventType'], eventId: TrackPayload['eventId'], eventTime: TrackPayload['eventTime'], properties: TrackPayload['properties']): void;
37
+ track(identifierType: IdentifierPayload['type'], identifierId: IdentifierPayload['id'], eventType: TrackPayload['eventType'], eventId: TrackPayload['eventId'], eventTime: TrackPayload['eventTime'], properties: TrackPayload['properties'], tenantId?: string): void;
37
38
  /**
38
39
  * Retrieves the current segments for the given user.
39
40
  *
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VeridiaClient = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const signature_v4_1 = require("@aws-sdk/signature-v4");
5
+ const signature_v4_1 = require("@smithy/signature-v4");
6
6
  const http_js_1 = require("./http.js");
7
7
  const version_js_1 = require("./version.js");
8
8
  class VeridiaClient {
@@ -48,9 +48,11 @@ class VeridiaClient {
48
48
  * @param eventId - Unique ID for idempotency.
49
49
  * @param eventTime - ISO timestamp string.
50
50
  * @param properties - Arbitrary event properties.
51
+ * @param tenantId - Tenant ID is used in internal systems and should not be used by clients.
51
52
  */
52
- track(identifierType, identifierId, eventType, eventId, eventTime, properties) {
53
+ track(identifierType, identifierId, eventType, eventId, eventTime, properties, tenantId) {
53
54
  this.trackBuffer.push({
55
+ tenantId,
54
56
  identifier: { type: identifierType, id: identifierId },
55
57
  eventId,
56
58
  eventType,
@@ -55,6 +55,7 @@ export type IdentifyPayload = {
55
55
  attributes: any;
56
56
  };
57
57
  export type TrackPayload = {
58
+ tenantId?: string;
58
59
  identifier: IdentifierPayload;
59
60
  eventId: string;
60
61
  eventType: string;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.14";
1
+ export declare const SDK_VERSION = "1.0.16";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.0.14';
4
+ exports.SDK_VERSION = '1.0.16';
5
5
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veridia/node-sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -23,9 +23,9 @@
23
23
  "prepare": "husky install"
24
24
  },
25
25
  "dependencies": {
26
- "node-fetch": "^3.3.2",
27
- "@aws-sdk/signature-v4": "^3.374.0",
28
- "@aws-crypto/sha256-js": "^5.2.0"
26
+ "@aws-crypto/sha256-js": "^5.2.0",
27
+ "@smithy/signature-v4": "^5.3.5",
28
+ "node-fetch": "^3.3.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^24.9.2",