File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ import {
66 PluginContext ,
77} from "kuzzle" ;
88
9+ export enum ProviderType {
10+ EMAIL = "email" ,
11+ SMS = "sms" ,
12+ }
13+
914export interface BaseAccount < T > {
1015 provider : T ;
1116
@@ -19,6 +24,7 @@ export abstract class BaseProvider<T> {
1924 protected context : PluginContext ;
2025
2126 protected name : string ;
27+ protected type : ProviderType ;
2228
2329 protected accounts = new Map < string , T > ( ) ;
2430
@@ -35,8 +41,9 @@ export abstract class BaseProvider<T> {
3541 return this . context . accessors . cluster ;
3642 }
3743
38- constructor ( name : string , jsonSchema : JSONObject ) {
44+ constructor ( name : string , type : ProviderType , jsonSchema : JSONObject ) {
3945 this . name = name ;
46+ this . type = type ;
4047 this . jsonSchema = jsonSchema ;
4148
4249 this . EVENT_ACCOUNT_ADD = `${ this . name } :account:add` ;
You can’t perform that action at this time.
0 commit comments