@asksuite/askflow-app-sdk 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IContext, IEvent, IManifest, IOrganizationActions, IResponseDynamicData, IResponseEvent, IResponseOAuthLink, IWorkflowActions } from "./types";
2
2
  export { AskflowUtils } from "./askflow-utils";
3
3
  export type { IContext, IEvent, IManifest, IOutputData, IResponseEvent, II18nData, IArgument, ISource, IQueryItem, IDependsOn, ISelectItem, IResponseDynamicData, IAuth, IAuthValidationResult, IResponseOAuthLink, } from "./types";
4
- export { ArgumentTypeEnum, IGroupFieldsValue, EventTypeEnum, EventTriggerEnum, IWorkflowActions } from "./types";
4
+ export { ArgumentTypeEnum, IGroupFieldsValue, EventTypeEnum, EventTriggerEnum, IWorkflowActions, IOrganizationActions } from "./types";
5
5
  export { DefaultFieldEnum } from "./default-fields";
6
6
  export declare abstract class AppFlow {
7
7
  protected readonly context: IContext;
package/dist/types.d.ts CHANGED
@@ -133,10 +133,28 @@ export declare type IOrganization = {
133
133
  };
134
134
  idsExternalPartner?: string[];
135
135
  };
136
+ export declare enum IUserRoleEnum {
137
+ upar_flow_global = "upar_flow_global",
138
+ partner_global = "partner_global",
139
+ user = "user",
140
+ administrator_organization = "administrator_organization"
141
+ }
142
+ export declare enum UserTypeEnum {
143
+ user = "user",
144
+ integration = "integration"
145
+ }
146
+ export declare type IUser = {
147
+ idUser?: bigint;
148
+ name: string;
149
+ email?: string | null;
150
+ type: UserTypeEnum;
151
+ userRoles: IUserRoleEnum[] | any;
152
+ };
136
153
  export declare type IContext = {
137
154
  connection: {
138
155
  connectionParams: Map<string, any>;
139
156
  organization?: IOrganization;
157
+ user?: IUser;
140
158
  };
141
159
  workflowStep?: any;
142
160
  arguments: Map<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asksuite/askflow-app-sdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.m.js",
6
6
  "unpkg": "dist/index.umd.js",