@artsy/cohesion
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -0,1 +1,13 @@ | ||
# v0.2.6 (Wed Apr 22 2020) | ||
#### 🐛 Bug Fix | ||
- Separate input arg interfaces, userId casing [#23](https://github.com/artsy/cohesion/pull/23) ([@eessex](https://github.com/eessex)) | ||
#### Authors: 1 | ||
- Eve Essex ([@eessex](https://github.com/eessex)) | ||
--- | ||
# v0.2.5 (Wed Apr 22 2020) | ||
@@ -2,0 +14,0 @@ |
@@ -0,3 +1,13 @@ | ||
import { AuthContextModule, AuthIntent, AuthService } from "../../Schema"; | ||
import { CreatedAccount } from "../../Schema/Event"; | ||
import { AccountArgs } from "./Typings"; | ||
export interface CreatedAccountArgs { | ||
authRedirect: string; | ||
contextModule: AuthContextModule; | ||
copy?: string; | ||
intent: AuthIntent; | ||
onboarding?: boolean; | ||
service: AuthService; | ||
triggerSeconds?: number; | ||
userId: string; | ||
} | ||
/** | ||
@@ -16,6 +26,6 @@ * Action fired when a user creates an account | ||
* triggerSeconds: 3, | ||
* user_id: "5bd8b675776bd6002c86526c" | ||
* userId: "5bd8b675776bd6002c86526c" | ||
* }) | ||
* ``` | ||
*/ | ||
export declare const createdAccount: ({ authRedirect, contextModule, copy, intent, onboarding, service, triggerSeconds, user_id, }: AccountArgs) => CreatedAccount; | ||
export declare const createdAccount: ({ authRedirect, contextModule, copy, intent, onboarding, service, triggerSeconds, userId, }: CreatedAccountArgs) => CreatedAccount; |
@@ -23,3 +23,3 @@ "use strict"; | ||
* triggerSeconds: 3, | ||
* user_id: "5bd8b675776bd6002c86526c" | ||
* userId: "5bd8b675776bd6002c86526c" | ||
* }) | ||
@@ -36,3 +36,3 @@ * ``` | ||
triggerSeconds, | ||
user_id | ||
userId | ||
}) => { | ||
@@ -49,3 +49,3 @@ return { | ||
type: _Schema.AuthModalType.signup, | ||
user_id | ||
user_id: userId | ||
}; | ||
@@ -52,0 +52,0 @@ }; |
@@ -0,3 +1,12 @@ | ||
import { AuthContextModule, AuthIntent, AuthService } from "../../Schema"; | ||
import { SuccessfullyLoggedIn } from "../../Schema/Event"; | ||
import { AccountArgs } from "./Typings"; | ||
export interface SuccessfullyLoggedInArgs { | ||
authRedirect: string; | ||
contextModule: AuthContextModule; | ||
copy?: string; | ||
intent: AuthIntent; | ||
service: AuthService; | ||
triggerSeconds?: number; | ||
userId: string; | ||
} | ||
/** | ||
@@ -15,6 +24,6 @@ * Action fired when a user logs into an existing account | ||
* triggerSeconds: 3, | ||
* user_id: "5bd8b675776bd6002c86526c" | ||
* userId: "5bd8b675776bd6002c86526c" | ||
* }) | ||
* ``` | ||
*/ | ||
export declare const successfullyLoggedIn: ({ authRedirect, contextModule, copy, intent, service, triggerSeconds, user_id, }: AccountArgs) => SuccessfullyLoggedIn; | ||
export declare const successfullyLoggedIn: ({ authRedirect, contextModule, copy, intent, service, triggerSeconds, userId, }: SuccessfullyLoggedInArgs) => SuccessfullyLoggedIn; |
@@ -22,3 +22,3 @@ "use strict"; | ||
* triggerSeconds: 3, | ||
* user_id: "5bd8b675776bd6002c86526c" | ||
* userId: "5bd8b675776bd6002c86526c" | ||
* }) | ||
@@ -34,3 +34,3 @@ * ``` | ||
triggerSeconds, | ||
user_id | ||
userId | ||
}) => { | ||
@@ -46,3 +46,3 @@ return { | ||
type: _Schema.AuthModalType.login, | ||
user_id | ||
user_id: userId | ||
}; | ||
@@ -49,0 +49,0 @@ }; |
{ | ||
"name": "@artsy/cohesion", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Analytics schema and library helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
32807
700
28