plac-micro-common 1.3.123 → 1.3.125

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.
@@ -3,9 +3,10 @@ export declare enum AppFormType {
3
3
  Simplified = "sio"
4
4
  }
5
5
  export declare enum AppVisibilityScope {
6
+ Branch = "branch",
6
7
  Own = "own",
7
- Team = "team",
8
- Org = "org"
8
+ Org = "org",
9
+ Team = "team"
9
10
  }
10
11
  export declare enum AppSourceType {
11
12
  Banca = "banca",
@@ -8,9 +8,10 @@ var AppFormType;
8
8
  })(AppFormType || (exports.AppFormType = AppFormType = {}));
9
9
  var AppVisibilityScope;
10
10
  (function (AppVisibilityScope) {
11
+ AppVisibilityScope["Branch"] = "branch";
11
12
  AppVisibilityScope["Own"] = "own";
12
- AppVisibilityScope["Team"] = "team";
13
13
  AppVisibilityScope["Org"] = "org";
14
+ AppVisibilityScope["Team"] = "team";
14
15
  })(AppVisibilityScope || (exports.AppVisibilityScope = AppVisibilityScope = {}));
15
16
  var AppSourceType;
16
17
  (function (AppSourceType) {
@@ -19,6 +19,12 @@ export interface CurrentAppClientInfo {
19
19
  app_id?: string;
20
20
  client_id?: string;
21
21
  }
22
+ export interface BranchInfo {
23
+ id: string;
24
+ name?: string;
25
+ code?: string;
26
+ is_primary?: boolean;
27
+ }
22
28
  export interface RequestContextData {
23
29
  auth?: RequestAuthMeta;
24
30
  user?: CurrentUserInfo;
@@ -27,6 +33,7 @@ export interface RequestContextData {
27
33
  client_context?: ClientContext;
28
34
  roles?: string[];
29
35
  permissions?: string[];
36
+ branches?: BranchInfo[];
30
37
  }
31
38
  export type CurrentUserInfo = {
32
39
  id: string;
@@ -23,6 +23,7 @@ export declare enum PermissionAction {
23
23
  Update = "update",
24
24
  Void = "void",
25
25
  ReadOrg = "readOrg",
26
+ ReadBranch = "readBranch",
26
27
  ReadAll = "readAll"
27
28
  }
28
29
  export declare const PermissionResource: {
@@ -29,6 +29,7 @@ var PermissionAction;
29
29
  PermissionAction["Void"] = "void";
30
30
  // special - org & app level
31
31
  PermissionAction["ReadOrg"] = "readOrg";
32
+ PermissionAction["ReadBranch"] = "readBranch";
32
33
  PermissionAction["ReadAll"] = "readAll";
33
34
  })(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
34
35
  exports.PermissionResource = {
@@ -12,7 +12,7 @@ export declare function getChannelTypeDesc(val: ChannelType): "Other" | "Agency"
12
12
  export declare function getStaffTypeDesc(val: StaffType): "Other" | "Employee" | "Contractor" | "Intern";
13
13
  export declare function getStaffStatusDesc(val: StaffStatus): "Active" | "Suspended" | "Resigned" | "Terminated";
14
14
  export declare function getAppFormTypeDesc(val: AppFormType): "Standard Form" | "Simplified Form (SIO)";
15
- export declare function getAppVisibilityScopeDesc(val: AppVisibilityScope): "My Own" | "My Team" | "Organization";
15
+ export declare function getAppVisibilityScopeDesc(val: AppVisibilityScope): AppVisibilityScope.Branch | "My Own" | "My Team" | "Organization";
16
16
  export declare function getApplicationStatusDesc(val: ApplicationStatus): "New" | "Completed" | "Submitted" | "In Review" | "Edit Required" | "More Documents Required" | "Resubmitted" | "Rejected" | "Accepted" | "Transferred" | "Cancelled";
17
17
  export declare function getAppPersonRoleDesc(val: AppPersonRole): "Policy Holder" | "Life Assured";
18
18
  export declare function getAppCoverageTypeDesc(val: AppCoverageType): "Base Plan" | "Rider";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.123",
3
+ "version": "1.3.125",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {