@sprucelabs/spruce-profile-utils 0.10.1 → 0.10.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.
@@ -1,7 +1,10 @@
1
1
  import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
2
2
  declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
3
3
  declare type OnChangeHandler = (roleId: string, value: string) => Promise<void> | void;
4
- declare type ProfileRole = SpruceSchemas.Profile.v2021_11_24.ProfileRole;
4
+ declare type ProfileRole = {
5
+ roleId: string;
6
+ requirements: 'optional' | 'required';
7
+ };
5
8
  declare type Roles = ProfileRole[];
6
9
  export declare type RoleSelectCardViewControllerOptions = ViewControllerOptions & {
7
10
  onChange?: OnChangeHandler;
@@ -17,7 +20,7 @@ export default class RoleSelectCardViewController extends AbstractViewController
17
20
  getCardVc(): import("@sprucelabs/heartwood-view-controllers").CardViewController;
18
21
  getActiveRecordCardVc(): ActiveRecordCardViewController;
19
22
  getListVc(): import("@sprucelabs/heartwood-view-controllers").ListViewController;
20
- getRoles(): SpruceSchemas.Profile.v2021_11_24.ProfileRole[];
23
+ getRoles(): ProfileRole[];
21
24
  setRoles(roles: Roles): Promise<void>;
22
25
  getIsLoaded(): boolean;
23
26
  private buildRoleRow;
@@ -1,7 +1,10 @@
1
1
  import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
2
2
  declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
3
3
  declare type OnChangeHandler = (roleId: string, value: string) => Promise<void> | void;
4
- declare type ProfileRole = SpruceSchemas.Profile.v2021_11_24.ProfileRole;
4
+ declare type ProfileRole = {
5
+ roleId: string;
6
+ requirements: 'optional' | 'required';
7
+ };
5
8
  declare type Roles = ProfileRole[];
6
9
  export declare type RoleSelectCardViewControllerOptions = ViewControllerOptions & {
7
10
  onChange?: OnChangeHandler;
@@ -17,7 +20,7 @@ export default class RoleSelectCardViewController extends AbstractViewController
17
20
  getCardVc(): import("@sprucelabs/heartwood-view-controllers").CardViewController;
18
21
  getActiveRecordCardVc(): ActiveRecordCardViewController;
19
22
  getListVc(): import("@sprucelabs/heartwood-view-controllers").ListViewController;
20
- getRoles(): SpruceSchemas.Profile.v2021_11_24.ProfileRole[];
23
+ getRoles(): ProfileRole[];
21
24
  setRoles(roles: Roles): Promise<void>;
22
25
  getIsLoaded(): boolean;
23
26
  private buildRoleRow;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-profile-utils",
3
3
  "description": "Useeful utilities",
4
- "version": "0.10.1",
4
+ "version": "0.10.2",
5
5
  "skill": {
6
6
  "namespace": "profile"
7
7
  },