@ombori/grid-signals
Advanced tools
Comparing version 2.135.3 to 2.136.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.136.0](https://github.com/ombori/gridapp/compare/v2.135.3...v2.136.0) (2021-12-10) | ||
### Features | ||
* getContact support ([1e79f37](https://github.com/ombori/gridapp/commit/1e79f375650d81bf38e2d96090304c42a31aff0f)) | ||
## [2.135.3](https://github.com/ombori/gridapp/compare/v2.135.2...v2.135.3) (2021-12-10) | ||
@@ -8,0 +19,0 @@ |
export { sendEvent } from './send-events'; | ||
export * from './states'; | ||
export * from './contacts'; |
@@ -16,1 +16,2 @@ "use strict"; | ||
__exportStar(require("./states"), exports); | ||
__exportStar(require("./contacts"), exports); |
@@ -169,2 +169,3 @@ import { TrackEvent, InitProps, Instance, IdentityTypeEnum } from './types'; | ||
}>; | ||
getContactId: () => Promise<string>; | ||
} |
@@ -436,2 +436,9 @@ "use strict"; | ||
}; | ||
this.getContactId = () => { | ||
return api_1.getContact({ | ||
tenantId: this.instance.tenantId, | ||
sessionId: this.instance.sessionId, | ||
dataResidency: this.instance.dataResidency, | ||
}); | ||
}; | ||
if (initParams) { | ||
@@ -438,0 +445,0 @@ this.init(initParams); |
@@ -225,1 +225,6 @@ export declare enum DataResidencyEnum { | ||
}; | ||
export declare type GetContactParams = { | ||
tenantId: string; | ||
sessionId: string; | ||
dataResidency: DataResidencyEnum; | ||
}; |
{ | ||
"name": "@ombori/grid-signals", | ||
"version": "2.135.3", | ||
"version": "2.136.0", | ||
"main": "dist/index.js", | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
}, | ||
"gitHead": "ea37989d64a84efc9ddab462b1a5f584f4257059" | ||
"gitHead": "908055cf76da13eee02e5fc25d93c8fe43e4d33f" | ||
} |
export { sendEvent } from './send-events'; | ||
export * from './states'; | ||
export * from './contacts'; |
import axios from 'axios'; | ||
import getBaseUrl from './get-base-url'; | ||
import { | ||
Session, | ||
Event, | ||
Client, | ||
RequestData, | ||
DataRequestTypeEnum, | ||
EventTypeEnum, | ||
} from '../types'; | ||
import { Session, Event, Client, RequestData, DataRequestTypeEnum } from '../types'; | ||
import shortenKeys from './shorten-look-ups'; | ||
@@ -12,0 +5,0 @@ |
@@ -37,2 +37,3 @@ import { v4 as uuid } from 'uuid'; | ||
subscribeSessionEvent as subscribeSessionEventApi, | ||
getContact as getContactApi, | ||
} from './api/api'; | ||
@@ -618,2 +619,10 @@ import delayPromise from './utils/delay'; | ||
}; | ||
public getContactId = () => { | ||
return getContactApi({ | ||
tenantId: this.instance.tenantId, | ||
sessionId: this.instance.sessionId, | ||
dataResidency: this.instance.dataResidency as DataResidencyEnum, | ||
}); | ||
}; | ||
} |
@@ -265,1 +265,7 @@ export enum DataResidencyEnum { | ||
}; | ||
export type GetContactParams = { | ||
tenantId: string; | ||
sessionId: string; | ||
dataResidency: DataResidencyEnum; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
117057
57
2956
0