rudder-sdk-js 1.2.2 → 1.2.8

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.
Files changed (3) hide show
  1. package/index.d.ts +10 -3
  2. package/index.js +1871 -12
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -7,9 +7,10 @@ declare module "rudder-sdk-js" {
7
7
  */
8
8
  interface integrationOptions {
9
9
  // Defaults to true
10
+ // If set to false, specific integration should be set to true to send the event
10
11
  All?: boolean;
11
- // Destination name: Enable/Disable
12
- [index: string]: boolean | undefined;
12
+ // Destination name: true/false/integration specific information
13
+ [index: string]: boolean | undefined | apiObject;
13
14
  }
14
15
 
15
16
  /**
@@ -64,6 +65,7 @@ declare module "rudder-sdk-js" {
64
65
  | number
65
66
  | boolean
66
67
  | apiObject
68
+ | (string | number | boolean | apiObject)[]
67
69
  | integrationOptions
68
70
  | undefined;
69
71
  }
@@ -73,7 +75,12 @@ declare module "rudder-sdk-js" {
73
75
  * Use for parameters like properties, traits etc.
74
76
  */
75
77
  interface apiObject {
76
- [index: string]: string | number | boolean | apiObject;
78
+ [index: string]:
79
+ | string
80
+ | number
81
+ | boolean
82
+ | apiObject
83
+ | (string | number | boolean | apiObject)[];
77
84
  }
78
85
 
79
86
  /**