Skip to content

Commit 223634c

Browse files
committed
fix types
1 parent 7e108cb commit 223634c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

projects/fusio-sdk/src/lib/config/config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {InjectionToken} from "@angular/core";
2-
import {UserAccount} from "fusio-sdk/dist/src/generated/consumer/UserAccount";
3-
import {Plan} from "fusio-sdk/dist/src/generated/consumer/Plan";
4-
import {Message} from "fusio-sdk/dist/src/generated/consumer/Message";
2+
import {ConsumerUserAccount} from "fusio-sdk/dist/src/ConsumerUserAccount";
3+
import {ConsumerPlan} from "fusio-sdk/dist/src/ConsumerPlan";
4+
import {CommonMessage} from "fusio-sdk/dist/src/CommonMessage";
55
import {GroupItem, Items} from "../service/navigation.service";
66

77
export interface Config {
@@ -27,7 +27,7 @@ export interface EventListener {
2727
/**
2828
* Invoked on login
2929
*/
30-
login?: (user: UserAccount) => void,
30+
login?: (user: ConsumerUserAccount) => void,
3131

3232
/**
3333
* Invoked on logout
@@ -57,17 +57,17 @@ export interface EventListener {
5757
/**
5858
* Invoked in case a user starts a checkout of a plan
5959
*/
60-
checkout?: (plan: Plan) => void,
60+
checkout?: (plan: ConsumerPlan) => void,
6161

6262
/**
6363
* Invoked in case a user has purchased a plan
6464
*/
65-
purchase?: (plan: Plan) => void,
65+
purchase?: (plan: ConsumerPlan) => void,
6666

6767
/**
6868
* Invoked in case an error occurred
6969
*/
70-
error?: (error: Message) => void,
70+
error?: (error: CommonMessage) => void,
7171

7272
/**
7373
* Invoked in case a model list was called

0 commit comments

Comments
 (0)