@ombori/grid-signals
Advanced tools
Comparing version 2.159.1 to 2.162.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.162.0](https://github.com/ombori/gridapp/compare/v2.161.3...v2.162.0) (2022-01-25) | ||
### Features | ||
* rename username and password on grid-signals ([ea89774](https://github.com/ombori/gridapp/commit/ea89774c50d984ed6ee526a9224fffe99abc4d7a)) | ||
## [2.159.1](https://github.com/ombori/gridapp/compare/v2.159.0...v2.159.1) (2022-01-17) | ||
@@ -8,0 +19,0 @@ |
@@ -30,4 +30,4 @@ "use strict"; | ||
}), { | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}).catch((err) => Promise.reject(`Failed to fetch space state. ${err.message}`)); | ||
@@ -41,4 +41,4 @@ }; | ||
}), { | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}).catch((err) => Promise.reject(`Failed to fetch space state rows. ${err.message}`)); | ||
@@ -68,4 +68,4 @@ }; | ||
const { url, accessToken } = yield fetch_data_1.default(`${get_base_url_1.default(params.dataResidency)}/subscribe-space-state?spaceId=${params.spaceId}`, undefined, { | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}).catch((err) => Promise.reject(`Failed to subscribe to space state. ${err.message}`)); | ||
@@ -82,4 +82,4 @@ return signal_r_1.default({ | ||
const { url, accessToken } = yield fetch_data_1.default(`${get_base_url_1.default(params.dataResidency)}/subscribe-space-event?spaceId=${params.spaceId}`, undefined, { | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}).catch((err) => Promise.reject(`Failed to subscribe to space events. ${err.message}`)); | ||
@@ -86,0 +86,0 @@ return signal_r_1.default({ |
@@ -160,4 +160,5 @@ import { TrackEvent, InitProps, Instance, IdentityTypeEnum } from './types'; | ||
*/ | ||
sendFeedback: ({ feedback }: { | ||
sendFeedback: ({ feedback, rating, }: { | ||
feedback: string; | ||
rating?: 1 | 2 | 5 | 4 | 3 | undefined; | ||
}) => Promise<any>; | ||
@@ -164,0 +165,0 @@ sendQrScan: () => Promise<any>; |
@@ -49,4 +49,4 @@ "use strict"; | ||
clientId: null, | ||
username: '', | ||
password: '', | ||
accessId: '', | ||
accessToken: '', | ||
// Client Specific | ||
@@ -433,3 +433,3 @@ clientUserAgent: is_browser_1.default ? navigator === null || navigator === void 0 ? void 0 : navigator.userAgent : null, | ||
*/ | ||
this.sendFeedback = ({ feedback }) => { | ||
this.sendFeedback = ({ feedback, rating, }) => { | ||
return this.trackEvent({ | ||
@@ -472,4 +472,4 @@ eventType: types_1.EventTypeEnum.FEEDBACK, | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
}); | ||
@@ -482,4 +482,4 @@ }; | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
}); | ||
@@ -505,4 +505,4 @@ }; | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
callback, | ||
@@ -515,4 +515,4 @@ }); | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
callback, | ||
@@ -519,0 +519,0 @@ }); |
@@ -100,7 +100,7 @@ export declare enum DataResidencyEnum { | ||
} | ||
export interface InitProps extends Omit<Instance, 'sessionId' | 'sessionCreated' | 'clientCreated' | 'clientId' | 'deviceId' | 'clientUserAgent' | 'username' | 'password' | 'lastActivity'> { | ||
export interface InitProps extends Omit<Instance, 'sessionId' | 'sessionCreated' | 'clientCreated' | 'clientId' | 'deviceId' | 'clientUserAgent' | 'accessId' | 'accessToken' | 'lastActivity'> { | ||
sessionId?: string; | ||
deviceId?: string; | ||
username?: string; | ||
password?: string; | ||
accessId?: string; | ||
accessToken?: string; | ||
useValidCachedSessionOnInit?: boolean; | ||
@@ -110,4 +110,4 @@ createNewSessionAfterLastActivityMins?: number; | ||
export interface Instance extends Session, Client { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
lastActivity: string; | ||
@@ -129,4 +129,4 @@ } | ||
export declare type GetSpaceStateParams = { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
tenantId: string; | ||
@@ -137,4 +137,4 @@ spaceId: string; | ||
export declare type GetSpaceStateRowsParams = { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
tenantId: string; | ||
@@ -191,4 +191,4 @@ sessionId: string; | ||
export declare type SubscribeSpaceStateParams = { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
spaceId: string; | ||
@@ -195,0 +195,0 @@ dataResidency: string; |
{ | ||
"name": "@ombori/grid-signals", | ||
"version": "2.159.1", | ||
"version": "2.162.0", | ||
"main": "dist/index.js", | ||
@@ -35,3 +35,3 @@ "scripts": { | ||
}, | ||
"gitHead": "55af3c981b94d31faeafc28ee549c298a89d109f" | ||
"gitHead": "3c3e820a943317ae470aaaec0e1d90d7aab3d746" | ||
} |
@@ -43,4 +43,4 @@ import 'isomorphic-fetch'; | ||
{ | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}, | ||
@@ -59,4 +59,4 @@ ).catch((err: Error) => Promise.reject(`Failed to fetch space state. ${err.message}`)); | ||
{ | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}, | ||
@@ -109,4 +109,4 @@ ).catch((err: Error) => | ||
{ | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}, | ||
@@ -131,4 +131,4 @@ ).catch((err: Error) => | ||
{ | ||
username: params.username, | ||
password: params.password, | ||
username: params.accessId, | ||
password: params.accessToken, | ||
}, | ||
@@ -135,0 +135,0 @@ ).catch((err: Error) => |
@@ -67,4 +67,4 @@ import { v4 as uuid } from 'uuid'; | ||
clientId: null, | ||
username: '', | ||
password: '', | ||
accessId: '', | ||
accessToken: '', | ||
@@ -621,3 +621,9 @@ // Client Specific | ||
*/ | ||
public sendFeedback = ({ feedback }: { feedback: string }) => { | ||
public sendFeedback = ({ | ||
feedback, | ||
rating, | ||
}: { | ||
feedback: string; | ||
rating?: 1 | 2 | 3 | 4 | 5; | ||
}) => { | ||
return this.trackEvent({ | ||
@@ -672,4 +678,4 @@ eventType: EventTypeEnum.FEEDBACK, | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
}); | ||
@@ -683,4 +689,4 @@ }; | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
}); | ||
@@ -709,4 +715,4 @@ }; | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
callback, | ||
@@ -720,4 +726,4 @@ }); | ||
dataResidency: this.instance.dataResidency, | ||
username: this.instance.username, | ||
password: this.instance.password, | ||
accessId: this.instance.accessId, | ||
accessToken: this.instance.accessToken, | ||
callback, | ||
@@ -724,0 +730,0 @@ }); |
@@ -119,4 +119,4 @@ export enum DataResidencyEnum { | ||
| 'clientUserAgent' | ||
| 'username' | ||
| 'password' | ||
| 'accessId' | ||
| 'accessToken' | ||
| 'lastActivity' | ||
@@ -126,4 +126,4 @@ > { | ||
deviceId?: string; | ||
username?: string; | ||
password?: string; | ||
accessId?: string; | ||
accessToken?: string; | ||
useValidCachedSessionOnInit?: boolean; | ||
@@ -134,4 +134,4 @@ createNewSessionAfterLastActivityMins?: number; | ||
export interface Instance extends Session, Client { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
lastActivity: string; | ||
@@ -161,4 +161,4 @@ } | ||
export type GetSpaceStateParams = { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
tenantId: string; | ||
@@ -170,4 +170,4 @@ spaceId: string; | ||
export type GetSpaceStateRowsParams = { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
tenantId: string; | ||
@@ -229,4 +229,4 @@ sessionId: string; | ||
export type SubscribeSpaceStateParams = { | ||
username: string; | ||
password: string; | ||
accessId: string; | ||
accessToken: string; | ||
spaceId: string; | ||
@@ -233,0 +233,0 @@ dataResidency: string; |
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
141326
3517