@powerhousedao/builder-profile 0.0.14 → 0.0.16

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.
Files changed (46) hide show
  1. package/dist/document-models/builder-profile/actions.d.ts +1 -0
  2. package/dist/document-models/builder-profile/actions.d.ts.map +1 -1
  3. package/dist/document-models/builder-profile/gen/builders/actions.d.ts +6 -2
  4. package/dist/document-models/builder-profile/gen/builders/actions.d.ts.map +1 -1
  5. package/dist/document-models/builder-profile/gen/builders/creators.d.ts +3 -2
  6. package/dist/document-models/builder-profile/gen/builders/creators.d.ts.map +1 -1
  7. package/dist/document-models/builder-profile/gen/builders/creators.js +2 -1
  8. package/dist/document-models/builder-profile/gen/builders/operations.d.ts +2 -1
  9. package/dist/document-models/builder-profile/gen/builders/operations.d.ts.map +1 -1
  10. package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
  11. package/dist/document-models/builder-profile/gen/document-model.js +27 -16
  12. package/dist/document-models/builder-profile/gen/document-schema.d.ts +5 -68
  13. package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -1
  14. package/dist/document-models/builder-profile/gen/document-schema.js +1 -1
  15. package/dist/document-models/builder-profile/gen/ph-factories.d.ts.map +1 -1
  16. package/dist/document-models/builder-profile/gen/ph-factories.js +4 -0
  17. package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
  18. package/dist/document-models/builder-profile/gen/reducer.js +6 -1
  19. package/dist/document-models/builder-profile/gen/schema/types.d.ts +9 -0
  20. package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
  21. package/dist/document-models/builder-profile/gen/schema/zod.d.ts +4 -2
  22. package/dist/document-models/builder-profile/gen/schema/zod.d.ts.map +1 -1
  23. package/dist/document-models/builder-profile/gen/schema/zod.js +14 -0
  24. package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
  25. package/dist/document-models/builder-profile/gen/utils.js +4 -0
  26. package/dist/document-models/builder-profile/src/reducers/builders.d.ts +1 -1
  27. package/dist/document-models/builder-profile/src/reducers/builders.d.ts.map +1 -1
  28. package/dist/document-models/builder-profile/src/reducers/builders.js +8 -0
  29. package/dist/document-models/builder-profile/tests/builders.test.js +11 -1
  30. package/dist/document-models/document-models.d.ts.map +1 -1
  31. package/dist/document-models/document-models.js +3 -1
  32. package/dist/editors/builder-profile/components/LinksSection.d.ts +1 -1
  33. package/dist/editors/builder-profile/components/ProfilePreview.d.ts +1 -1
  34. package/dist/editors/builder-profile/components/ScopesSection.d.ts +1 -1
  35. package/dist/editors/builder-profile/components/SkillsSection.d.ts +1 -1
  36. package/dist/editors/builder-profile/editor.d.ts.map +1 -1
  37. package/dist/editors/builder-profile/editor.js +17 -3
  38. package/dist/powerhouse.manifest.json +1 -1
  39. package/dist/style.css +18 -0
  40. package/package.json +4 -4
  41. package/dist/document-models/builder-profile/src/tests/builders.test.d.ts +0 -6
  42. package/dist/document-models/builder-profile/src/tests/builders.test.d.ts.map +0 -1
  43. package/dist/document-models/builder-profile/src/tests/builders.test.js +0 -19
  44. package/dist/document-models/builder-profile/src/tests/document-model.test.d.ts +0 -10
  45. package/dist/document-models/builder-profile/src/tests/document-model.test.d.ts.map +0 -1
  46. package/dist/document-models/builder-profile/src/tests/document-model.test.js +0 -104
@@ -11,6 +11,7 @@ export declare const actions: {
11
11
  addContributor: (input: import("./index.js").AddContributorInput) => import("./index.js").AddContributorAction;
12
12
  removeContributor: (input: import("./index.js").RemoveContributorInput) => import("./index.js").RemoveContributorAction;
13
13
  setOperator: (input: import("./index.js").SetOperatorInput) => import("./index.js").SetOperatorAction;
14
+ setOpHubMember: (input: import("./index.js").SetOpHubMemberInput) => import("./index.js").SetOpHubMemberAction;
14
15
  setName: (name: string) => import("document-model").SetNameAction;
15
16
  undo: (skip?: number, scope?: string) => import("document-model").UndoAction;
16
17
  redo: (count?: number, scope?: string) => import("document-model").RedoAction;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/builder-profile/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AAEpD,eAAO,MAAM,OAAO;oBAC2qB,8CAAyB;eAA4K,yCAAoB;kBAAgK,4CAAuB;eAAsK,yCAAoB;kBAAgK,4CAAuB;cAAqK,wCAAmB;eAA0J,yCAAoB;iBAA+J,2CAAsB;qBAAyK,+CAA0B;wBAAwL,kDAA6B;kBAA2L,4CAAuB;;eAAi2I,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADr1O,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/builder-profile/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AAEpD,eAAO,MAAM,OAAO;oBACuvB,8CAAyB;eAA4K,yCAAoB;kBAAgK,4CAAuB;eAAsK,yCAAoB;kBAAgK,4CAAuB;cAAqK,wCAAmB;eAA0J,yCAAoB;iBAA+J,2CAAsB;qBAAyK,+CAA0B;wBAAwL,kDAA6B;kBAA2L,4CAAuB;qBAA4K,+CAA0B;;eAA+kI,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADr1O,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Action } from "document-model";
2
- import type { UpdateProfileInput, AddSkillInput, RemoveSkillInput, AddScopeInput, RemoveScopeInput, AddLinkInput, EditLinkInput, RemoveLinkInput, AddContributorInput, RemoveContributorInput, SetOperatorInput } from "../types.js";
2
+ import type { UpdateProfileInput, AddSkillInput, RemoveSkillInput, AddScopeInput, RemoveScopeInput, AddLinkInput, EditLinkInput, RemoveLinkInput, AddContributorInput, RemoveContributorInput, SetOperatorInput, SetOpHubMemberInput } from "../types.js";
3
3
  export type UpdateProfileAction = Action & {
4
4
  type: "UPDATE_PROFILE";
5
5
  input: UpdateProfileInput;
@@ -44,5 +44,9 @@ export type SetOperatorAction = Action & {
44
44
  type: "SET_OPERATOR";
45
45
  input: SetOperatorInput;
46
46
  };
47
- export type BuilderProfileBuildersAction = UpdateProfileAction | AddSkillAction | RemoveSkillAction | AddScopeAction | RemoveScopeAction | AddLinkAction | EditLinkAction | RemoveLinkAction | AddContributorAction | RemoveContributorAction | SetOperatorAction;
47
+ export type SetOpHubMemberAction = Action & {
48
+ type: "SET_OP_HUB_MEMBER";
49
+ input: SetOpHubMemberInput;
50
+ };
51
+ export type BuilderProfileBuildersAction = UpdateProfileAction | AddSkillAction | RemoveSkillAction | AddScopeAction | RemoveScopeAction | AddLinkAction | EditLinkAction | RemoveLinkAction | AddContributorAction | RemoveContributorAction | SetOperatorAction | SetOpHubMemberAction;
48
52
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IACzC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC,mBAAmB,GACnB,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,uBAAuB,GACvB,iBAAiB,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB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AAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC,mBAAmB,GACnB,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,uBAAuB,GACvB,iBAAiB,GACjB,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { UpdateProfileInput, AddSkillInput, RemoveSkillInput, AddScopeInput, RemoveScopeInput, AddLinkInput, EditLinkInput, RemoveLinkInput, AddContributorInput, RemoveContributorInput, SetOperatorInput } from "../types.js";
2
- import type { UpdateProfileAction, AddSkillAction, RemoveSkillAction, AddScopeAction, RemoveScopeAction, AddLinkAction, EditLinkAction, RemoveLinkAction, AddContributorAction, RemoveContributorAction, SetOperatorAction } from "./actions.js";
1
+ import type { UpdateProfileInput, AddSkillInput, RemoveSkillInput, AddScopeInput, RemoveScopeInput, AddLinkInput, EditLinkInput, RemoveLinkInput, AddContributorInput, RemoveContributorInput, SetOperatorInput, SetOpHubMemberInput } from "../types.js";
2
+ import type { UpdateProfileAction, AddSkillAction, RemoveSkillAction, AddScopeAction, RemoveScopeAction, AddLinkAction, EditLinkAction, RemoveLinkAction, AddContributorAction, RemoveContributorAction, SetOperatorAction, SetOpHubMemberAction } from "./actions.js";
3
3
  export declare const updateProfile: (input: UpdateProfileInput) => UpdateProfileAction;
4
4
  export declare const addSkill: (input: AddSkillInput) => AddSkillAction;
5
5
  export declare const removeSkill: (input: RemoveSkillInput) => RemoveSkillAction;
@@ -11,4 +11,5 @@ export declare const removeLink: (input: RemoveLinkInput) => RemoveLinkAction;
11
11
  export declare const addContributor: (input: AddContributorInput) => AddContributorAction;
12
12
  export declare const removeContributor: (input: RemoveContributorInput) => RemoveContributorAction;
13
13
  export declare const setOperator: (input: SetOperatorInput) => SetOperatorAction;
14
+ export declare const setOpHubMember: (input: SetOpHubMemberInput) => SetOpHubMemberAction;
14
15
  //# sourceMappingURL=creators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/creators.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,wBAOpD,CAAC;AAEJ,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,mBAO1C,CAAC;AAEJ,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAOhD,CAAC;AAEJ,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,mBAO1C,CAAC;AAEJ,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAOhD,CAAC;AAEJ,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,kBAOxC,CAAC;AAEJ,eAAO,MAAM,QAAQ,GAAI,OAAO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AAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4BAO5D,CAAC;AAEJ,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAOhD,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { createAction } from "document-model/core";
2
- import { UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, SetOperatorInputSchema, } from "../schema/zod.js";
2
+ import { UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, SetOperatorInputSchema, SetOpHubMemberInputSchema, } from "../schema/zod.js";
3
3
  export const updateProfile = (input) => createAction("UPDATE_PROFILE", { ...input }, undefined, UpdateProfileInputSchema, "global");
4
4
  export const addSkill = (input) => createAction("ADD_SKILL", { ...input }, undefined, AddSkillInputSchema, "global");
5
5
  export const removeSkill = (input) => createAction("REMOVE_SKILL", { ...input }, undefined, RemoveSkillInputSchema, "global");
@@ -11,3 +11,4 @@ export const removeLink = (input) => createAction("REMOVE_LINK", { ...input }, u
11
11
  export const addContributor = (input) => createAction("ADD_CONTRIBUTOR", { ...input }, undefined, AddContributorInputSchema, "global");
12
12
  export const removeContributor = (input) => createAction("REMOVE_CONTRIBUTOR", { ...input }, undefined, RemoveContributorInputSchema, "global");
13
13
  export const setOperator = (input) => createAction("SET_OPERATOR", { ...input }, undefined, SetOperatorInputSchema, "global");
14
+ export const setOpHubMember = (input) => createAction("SET_OP_HUB_MEMBER", { ...input }, undefined, SetOpHubMemberInputSchema, "global");
@@ -1,5 +1,5 @@
1
1
  import { type SignalDispatch } from "document-model";
2
- import type { UpdateProfileAction, AddSkillAction, RemoveSkillAction, AddScopeAction, RemoveScopeAction, AddLinkAction, EditLinkAction, RemoveLinkAction, AddContributorAction, RemoveContributorAction, SetOperatorAction } from "./actions.js";
2
+ import type { UpdateProfileAction, AddSkillAction, RemoveSkillAction, AddScopeAction, RemoveScopeAction, AddLinkAction, EditLinkAction, RemoveLinkAction, AddContributorAction, RemoveContributorAction, SetOperatorAction, SetOpHubMemberAction } from "./actions.js";
3
3
  import type { BuilderProfileState } from "../types.js";
4
4
  export interface BuilderProfileBuildersOperations {
5
5
  updateProfileOperation: (state: BuilderProfileState, action: UpdateProfileAction, dispatch?: SignalDispatch) => void;
@@ -13,5 +13,6 @@ export interface BuilderProfileBuildersOperations {
13
13
  addContributorOperation: (state: BuilderProfileState, action: AddContributorAction, dispatch?: SignalDispatch) => void;
14
14
  removeContributorOperation: (state: BuilderProfileState, action: RemoveContributorAction, dispatch?: SignalDispatch) => void;
15
15
  setOperatorOperation: (state: BuilderProfileState, action: SetOperatorAction, dispatch?: SignalDispatch) => void;
16
+ setOpHubMemberOperation: (state: BuilderProfileState, action: SetOpHubMemberAction, dispatch?: SignalDispatch) => void;
16
17
  }
17
18
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,gCA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V,oBAAoB,EAAE,CACpB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,gCAAgC;IAC/C,sBAAsB,EAAE,CACtB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,iBAAiB,EAAE,CACjB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,cAAc,EACtB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,oBAAoB,EAAE,CACpB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,iBAAiB,EAAE,CACjB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,cAAc,EACtB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,oBAAoB,EAAE,CACpB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,gBAAgB,EAAE,CAChB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,aAAa,EACrB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,iBAAiB,EAAE,CACjB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,cAAc,EACtB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,0BAA0B,EAAE,CAC1B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,uBAAuB,EAC/B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,oBAAoB,EAAE,CACpB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,wBAuK3B,CAAC"}
1
+ {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,wBAmL3B,CAAC"}
@@ -6,21 +6,21 @@ export const documentModel = {
6
6
  description: "A builder profile document.",
7
7
  extension: "",
8
8
  id: "powerhouse/builder-profile",
9
- name: "Builder Profile",
9
+ name: "BuilderProfile",
10
10
  specifications: [
11
11
  {
12
12
  changeLog: [],
13
13
  modules: [
14
14
  {
15
15
  description: "",
16
- id: "9ef097c0-92df-473a-95c6-ae9b6f69e7f7",
16
+ id: "681bff7b-9b42-485a-8a08-9a3e808fe4e8",
17
17
  name: "builders",
18
18
  operations: [
19
19
  {
20
20
  description: "",
21
21
  errors: [],
22
22
  examples: [],
23
- id: "a729a16c-d961-4df6-91f1-fc114fd4ca35",
23
+ id: "e9e1b348-aecc-4765-ae9f-21aca2d159c5",
24
24
  name: "UPDATE_PROFILE",
25
25
  reducer: "",
26
26
  schema: "input UpdateProfileInput {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n about: String\n status: BuilderStatusInput\n}\n\n\n",
@@ -31,7 +31,7 @@ export const documentModel = {
31
31
  description: "",
32
32
  errors: [],
33
33
  examples: [],
34
- id: "47773491-f8af-4b05-8b39-1bbbd3367566",
34
+ id: "0ba36e88-eb6a-4fc9-9954-8b3c9c3f08da",
35
35
  name: "ADD_SKILL",
36
36
  reducer: "",
37
37
  schema: "input AddSkillInput {\n skill: BuilderSkillInput\n}\n\n",
@@ -42,7 +42,7 @@ export const documentModel = {
42
42
  description: "",
43
43
  errors: [],
44
44
  examples: [],
45
- id: "b04c49f3-b8e8-4e5e-bee1-e74d4fc611e0",
45
+ id: "08e82f23-de6a-428c-bb3b-ad6e8f4b09b7",
46
46
  name: "REMOVE_SKILL",
47
47
  reducer: "",
48
48
  schema: "input RemoveSkillInput {\n skill: BuilderSkillInput\n}\n\n",
@@ -53,7 +53,7 @@ export const documentModel = {
53
53
  description: "",
54
54
  errors: [],
55
55
  examples: [],
56
- id: "172aee1c-aa73-4d99-bc9c-7d9239624d4c",
56
+ id: "82edbf4f-58b1-4dbc-8c12-654cedb0f7eb",
57
57
  name: "ADD_SCOPE",
58
58
  reducer: "",
59
59
  schema: "input AddScopeInput {\n scope: BuilderScopeInput\n}\n\n",
@@ -64,7 +64,7 @@ export const documentModel = {
64
64
  description: "",
65
65
  errors: [],
66
66
  examples: [],
67
- id: "ff1c8e28-1725-4753-bdf0-f64eca52516a",
67
+ id: "09648729-e6d6-42d0-a829-197676eeabaf",
68
68
  name: "REMOVE_SCOPE",
69
69
  reducer: "",
70
70
  schema: "input RemoveScopeInput {\n scope: BuilderScopeInput\n}",
@@ -75,7 +75,7 @@ export const documentModel = {
75
75
  description: "",
76
76
  errors: [],
77
77
  examples: [],
78
- id: "c1553e89-df14-4e58-87ae-9f130e60a847",
78
+ id: "1cf80c7d-0c3c-4309-8aec-ca7e6f55ec77",
79
79
  name: "ADD_LINK",
80
80
  reducer: "",
81
81
  schema: "input AddLinkInput {\n id: OID!\n url: URL!\n label: String\n}",
@@ -86,7 +86,7 @@ export const documentModel = {
86
86
  description: "",
87
87
  errors: [],
88
88
  examples: [],
89
- id: "610c7549-9631-4921-b840-8344cec388b2",
89
+ id: "a7d0efc0-9c04-4c26-b756-596fa976a21c",
90
90
  name: "EDIT_LINK",
91
91
  reducer: "",
92
92
  schema: "input EditLinkInput {\n id: OID!\n url: URL!\n label: String\n}",
@@ -97,7 +97,7 @@ export const documentModel = {
97
97
  description: "",
98
98
  errors: [],
99
99
  examples: [],
100
- id: "0b199ad1-47a2-4987-8093-b0267a970d89",
100
+ id: "bd84497f-9055-4585-89cd-613e8cacbc80",
101
101
  name: "REMOVE_LINK",
102
102
  reducer: "",
103
103
  schema: "input RemoveLinkInput {\n id: OID! \n}",
@@ -105,10 +105,10 @@ export const documentModel = {
105
105
  template: "",
106
106
  },
107
107
  {
108
- description: "Only if team type is INDIVIDUAL",
108
+ description: "",
109
109
  errors: [],
110
110
  examples: [],
111
- id: "1a35597e-63e8-43f7-8276-0b486c43d3b9",
111
+ id: "4d1dd9e9-9693-4fad-bd3f-422d3508be6a",
112
112
  name: "ADD_CONTRIBUTOR",
113
113
  reducer: "",
114
114
  schema: "input AddContributorInput {\n contributorPHID: PHID!\n}",
@@ -119,7 +119,7 @@ export const documentModel = {
119
119
  description: "",
120
120
  errors: [],
121
121
  examples: [],
122
- id: "107f2274-a2fe-433c-ae59-25d12702e9fa",
122
+ id: "66edd68d-a693-4033-be98-4d9d42eb7d88",
123
123
  name: "REMOVE_CONTRIBUTOR",
124
124
  reducer: "",
125
125
  schema: "input RemoveContributorInput {\n contributorPHID: PHID!\n}",
@@ -130,21 +130,32 @@ export const documentModel = {
130
130
  description: "",
131
131
  errors: [],
132
132
  examples: [],
133
- id: "0d82e651-c052-4756-b34a-b209416d17ea",
133
+ id: "eb2442c3-1c36-4d4b-a991-a3f5664ffc6d",
134
134
  name: "SET_OPERATOR",
135
135
  reducer: "",
136
136
  schema: "input SetOperatorInput {\n isOperator: Boolean!\n}",
137
137
  scope: "global",
138
138
  template: "",
139
139
  },
140
+ {
141
+ description: "",
142
+ errors: [],
143
+ examples: [],
144
+ id: "508d850d-a7ee-4e05-986b-be0db2dc22df",
145
+ name: "SET_OP_HUB_MEMBER",
146
+ reducer: "",
147
+ schema: "input SetOpHubMemberInput {\n name: String\n phid: PHID\n}",
148
+ scope: "global",
149
+ template: "",
150
+ },
140
151
  ],
141
152
  },
142
153
  ],
143
154
  state: {
144
155
  global: {
145
156
  examples: [],
146
- initialValue: '{\n "id": null,\n "code": null,\n "slug": null,\n "name": null,\n "icon": null,\n "description": null,\n "about": null,\n "lastModified": null,\n "isOperator": false,\n "contributors": [],\n "status": null,\n "skills": [],\n "scopes": [],\n "links": []\n}',
147
- schema: "type BuilderProfileState {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n about: String\n lastModified: DateTime\n isOperator: Boolean!\n contributors: [PHID!]!\n status: BuilderStatus\n skills: [BuilderSkill!]!\n scopes: [BuilderScope!]!\n links: [BuilderLink!]!\n}\n\n\nenum BuilderStatus {\n ACTIVE\n INACTIVE\n ON_HOLD\n COMPLETED\n ARCHIVED\n}\n\nenum BuilderSkill {\n FRONTEND_DEVELOPMENT\n BACKEND_DEVELOPMENT\n FULL_STACK_DEVELOPMENT\n DEVOPS_ENGINEERING\n SMART_CONTRACT_DEVELOPMENT\n UI_UX_DESIGN\n TECHNICAL_WRITING\n QA_TESTING\n DATA_ENGINEERING\n SECURITY_ENGINEERING\n}\n\nenum BuilderScope {\n ACC\n STA\n SUP\n STABILITY_SCOPE\n SUPPORT_SCOPE\n PROTOCOL_SCOPE\n GOVERNANCE_SCOPE\n}\n\ntype BuilderLink {\n id: OID!\n url: URL!\n label: String\n}\n\nenum BuilderStatusInput {\n ACTIVE\n INACTIVE\n ON_HOLD\n COMPLETED\n ARCHIVED\n}\n\nenum BuilderSkillInput {\n FRONTEND_DEVELOPMENT\n BACKEND_DEVELOPMENT\n FULL_STACK_DEVELOPMENT\n DEVOPS_ENGINEERING\n SMART_CONTRACT_DEVELOPMENT\n UI_UX_DESIGN\n TECHNICAL_WRITING\n QA_TESTING\n DATA_ENGINEERING\n SECURITY_ENGINEERING\n}\n\nenum BuilderScopeInput {\n ACC\n STA\n SUP\n STABILITY_SCOPE\n SUPPORT_SCOPE\n PROTOCOL_SCOPE\n GOVERNANCE_SCOPE\n}",
157
+ initialValue: '{\n "id": null,\n "code": null,\n "slug": null,\n "name": null,\n "icon": null,\n "description": null,\n "about": null,\n "lastModified": null,\n "isOperator": false,\n "operationalHubMember": {\n "name": null,\n "phid": null\n },\n "contributors": [],\n "status": null,\n "skills": [],\n "scopes": [],\n "links": []\n}',
158
+ schema: "type BuilderProfileState {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n about: String\n lastModified: DateTime\n isOperator: Boolean!\n operationalHubMember: OpHubMember!\n contributors: [PHID!]!\n status: BuilderStatus\n skills: [BuilderSkill!]!\n scopes: [BuilderScope!]!\n links: [BuilderLink!]!\n}\n\n\nenum BuilderStatus {\n ACTIVE\n INACTIVE\n ON_HOLD\n COMPLETED\n ARCHIVED\n}\n\nenum BuilderSkill {\n FRONTEND_DEVELOPMENT\n BACKEND_DEVELOPMENT\n FULL_STACK_DEVELOPMENT\n DEVOPS_ENGINEERING\n SMART_CONTRACT_DEVELOPMENT\n UI_UX_DESIGN\n TECHNICAL_WRITING\n QA_TESTING\n DATA_ENGINEERING\n SECURITY_ENGINEERING\n}\n\nenum BuilderScope {\n ACC\n STA\n SUP\n STABILITY_SCOPE\n SUPPORT_SCOPE\n PROTOCOL_SCOPE\n GOVERNANCE_SCOPE\n}\n\ntype BuilderLink {\n id: OID!\n url: URL!\n label: String\n}\n\nenum BuilderStatusInput {\n ACTIVE\n INACTIVE\n ON_HOLD\n COMPLETED\n ARCHIVED\n}\n\nenum BuilderSkillInput {\n FRONTEND_DEVELOPMENT\n BACKEND_DEVELOPMENT\n FULL_STACK_DEVELOPMENT\n DEVOPS_ENGINEERING\n SMART_CONTRACT_DEVELOPMENT\n UI_UX_DESIGN\n TECHNICAL_WRITING\n QA_TESTING\n DATA_ENGINEERING\n SECURITY_ENGINEERING\n}\n\nenum BuilderScopeInput {\n ACC\n STA\n SUP\n STABILITY_SCOPE\n SUPPORT_SCOPE\n PROTOCOL_SCOPE\n GOVERNANCE_SCOPE\n}\n\ntype OpHubMember {\n name: String\n phid: PHID\n}",
148
159
  },
149
160
  local: {
150
161
  examples: [],
@@ -1,76 +1,13 @@
1
1
  import { z } from "zod";
2
2
  import type { BuilderProfileDocument, BuilderProfilePHState } from "./types.js";
3
3
  /** Schema for validating the header object of a BuilderProfile document */
4
- export declare const BuilderProfileDocumentHeaderSchema: z.ZodObject<{
5
- id: z.ZodString;
6
- name: z.ZodString;
7
- createdAtUtcIso: z.ZodString;
8
- lastModifiedAtUtcIso: z.ZodString;
9
- documentType: z.ZodLiteral<"powerhouse/builder-profile">;
10
- }, z.core.$strip>;
4
+ export declare const BuilderProfileDocumentHeaderSchema: z.ZodType<BuilderProfileDocument["header"]>;
11
5
  /** Schema for validating the state object of a BuilderProfile document */
12
- export declare const BuilderProfilePHStateSchema: z.ZodObject<{
13
- global: z.ZodObject<Required<{
14
- about: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
15
- code: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
16
- contributors: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
17
- description: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
18
- icon: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
19
- id: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
20
- isOperator: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
21
- lastModified: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
22
- links: z.ZodType<import("./types.js").BuilderLink[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderLink[], unknown>>;
23
- name: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
24
- scopes: z.ZodType<import("./types.js").BuilderScope[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderScope[], unknown>>;
25
- skills: z.ZodType<import("./types.js").BuilderSkill[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderSkill[], unknown>>;
26
- slug: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
27
- status: z.ZodType<import("./types.js").Maybe<import("./types.js").BuilderStatus>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<import("./types.js").BuilderStatus>, unknown>>;
28
- }>, z.core.$strip>;
29
- }, z.core.$strip>;
6
+ export declare const BuilderProfilePHStateSchema: z.ZodType<BuilderProfilePHState>;
30
7
  export declare const BuilderProfileDocumentSchema: z.ZodObject<{
31
- header: z.ZodObject<{
32
- id: z.ZodString;
33
- name: z.ZodString;
34
- createdAtUtcIso: z.ZodString;
35
- lastModifiedAtUtcIso: z.ZodString;
36
- documentType: z.ZodLiteral<"powerhouse/builder-profile">;
37
- }, z.core.$strip>;
38
- state: z.ZodObject<{
39
- global: z.ZodObject<Required<{
40
- about: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
41
- code: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
42
- contributors: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
43
- description: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
44
- icon: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
45
- id: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
46
- isOperator: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
47
- lastModified: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
48
- links: z.ZodType<import("./types.js").BuilderLink[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderLink[], unknown>>;
49
- name: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
50
- scopes: z.ZodType<import("./types.js").BuilderScope[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderScope[], unknown>>;
51
- skills: z.ZodType<import("./types.js").BuilderSkill[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderSkill[], unknown>>;
52
- slug: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
53
- status: z.ZodType<import("./types.js").Maybe<import("./types.js").BuilderStatus>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<import("./types.js").BuilderStatus>, unknown>>;
54
- }>, z.core.$strip>;
55
- }, z.core.$strip>;
56
- initialState: z.ZodObject<{
57
- global: z.ZodObject<Required<{
58
- about: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
59
- code: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
60
- contributors: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
61
- description: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
62
- icon: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
63
- id: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
64
- isOperator: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
65
- lastModified: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
66
- links: z.ZodType<import("./types.js").BuilderLink[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderLink[], unknown>>;
67
- name: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
68
- scopes: z.ZodType<import("./types.js").BuilderScope[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderScope[], unknown>>;
69
- skills: z.ZodType<import("./types.js").BuilderSkill[], unknown, z.core.$ZodTypeInternals<import("./types.js").BuilderSkill[], unknown>>;
70
- slug: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
71
- status: z.ZodType<import("./types.js").Maybe<import("./types.js").BuilderStatus>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<import("./types.js").BuilderStatus>, unknown>>;
72
- }>, z.core.$strip>;
73
- }, z.core.$strip>;
8
+ header: z.ZodType<import("document-model").PHDocumentHeader, unknown, z.core.$ZodTypeInternals<import("document-model").PHDocumentHeader, unknown>>;
9
+ state: z.ZodType<BuilderProfilePHState, unknown, z.core.$ZodTypeInternals<BuilderProfilePHState, unknown>>;
10
+ initialState: z.ZodType<BuilderProfilePHState, unknown, z.core.$ZodTypeInternals<BuilderProfilePHState, unknown>>;
74
11
  }, z.core.$strip>;
75
12
  /** Simple helper function to check if a state object is a BuilderProfile document state object */
76
13
  export declare function isBuilderProfileState(state: unknown): state is BuilderProfilePHState;
@@ -1 +1 @@
1
- {"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;;;;;;iBAG3C,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,kGAAkG;AAClG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAEhC;AAED,8GAA8G;AAC9G,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,KAAK,IAAI,qBAAqB,CAExC;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,OAAO,GAChB,QAAQ,IAAI,sBAAsB,CAEpC;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,QAAQ,IAAI,sBAAsB,CAE5C"}
1
+ {"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAG7B,CAAC;AAE/D,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAExB,CAAC;AAElD,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,kGAAkG;AAClG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAEhC;AAED,8GAA8G;AAC9G,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,KAAK,IAAI,qBAAqB,CAExC;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,OAAO,GAChB,QAAQ,IAAI,sBAAsB,CAEpC;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,QAAQ,IAAI,sBAAsB,CAE5C"}
@@ -8,7 +8,7 @@ export const BuilderProfileDocumentHeaderSchema = BaseDocumentHeaderSchema.exten
8
8
  });
9
9
  /** Schema for validating the state object of a BuilderProfile document */
10
10
  export const BuilderProfilePHStateSchema = BaseDocumentStateSchema.extend({
11
- global: BuilderProfileStateSchema(),
11
+ global: BuilderProfileStateSchema()
12
12
  });
13
13
  export const BuilderProfileDocumentSchema = z.object({
14
14
  header: BuilderProfileDocumentHeaderSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"ph-factories.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/ph-factories.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAGpB,wBAAgB,kBAAkB,IAAI,yBAAyB,CAiB9D;AAED,wBAAgB,iBAAiB,IAAI,wBAAwB,CAE5D;AAED,wBAAgB,cAAc,IAAI,qBAAqB,CAMtD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,GACzC,yBAAyB,CAK3B;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GACxC,wBAAwB,CAK1B;AAED,wBAAgB,WAAW,CACzB,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,EAChC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,EAChD,UAAU,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAC7C,qBAAqB,CAMvB;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC;CAC3C,CAAC,GACD,sBAAsB,CAYxB"}
1
+ {"version":3,"file":"ph-factories.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/ph-factories.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAGpB,wBAAgB,kBAAkB,IAAI,yBAAyB,CAqB9D;AAED,wBAAgB,iBAAiB,IAAI,wBAAwB,CAE5D;AAED,wBAAgB,cAAc,IAAI,qBAAqB,CAMtD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,GACzC,yBAAyB,CAK3B;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GACxC,wBAAwB,CAK1B;AAED,wBAAgB,WAAW,CACzB,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,EAChC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,EAChD,UAAU,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAC7C,qBAAqB,CAMvB;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC;CAC3C,CAAC,GACD,sBAAsB,CAYxB"}
@@ -11,6 +11,10 @@ export function defaultGlobalState() {
11
11
  about: null,
12
12
  lastModified: null,
13
13
  isOperator: false,
14
+ operationalHubMember: {
15
+ name: null,
16
+ phid: null,
17
+ },
14
18
  contributors: [],
15
19
  status: null,
16
20
  skills: [],
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAC;AAoK5G,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAC;AAiL5G,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { isDocumentAction, createReducer } from "document-model/core";
2
2
  import { builderProfileBuildersOperations } from "../src/reducers/builders.js";
3
- import { UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, SetOperatorInputSchema, } from "./schema/zod.js";
3
+ import { UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, SetOperatorInputSchema, SetOpHubMemberInputSchema, } from "./schema/zod.js";
4
4
  const stateReducer = (state, action, dispatch) => {
5
5
  if (isDocumentAction(action)) {
6
6
  return state;
@@ -61,6 +61,11 @@ const stateReducer = (state, action, dispatch) => {
61
61
  builderProfileBuildersOperations.setOperatorOperation(state[action.scope], action, dispatch);
62
62
  break;
63
63
  }
64
+ case "SET_OP_HUB_MEMBER": {
65
+ SetOpHubMemberInputSchema().parse(action.input);
66
+ builderProfileBuildersOperations.setOpHubMemberOperation(state[action.scope], action, dispatch);
67
+ break;
68
+ }
64
69
  default:
65
70
  return state;
66
71
  }
@@ -176,6 +176,7 @@ export type BuilderProfileState = {
176
176
  lastModified: Maybe<Scalars["DateTime"]["output"]>;
177
177
  links: Array<BuilderLink>;
178
178
  name: Maybe<Scalars["String"]["output"]>;
179
+ operationalHubMember: OpHubMember;
179
180
  scopes: Array<BuilderScope>;
180
181
  skills: Array<BuilderSkill>;
181
182
  slug: Maybe<Scalars["String"]["output"]>;
@@ -192,6 +193,10 @@ export type EditLinkInput = {
192
193
  label?: InputMaybe<Scalars["String"]["input"]>;
193
194
  url: Scalars["URL"]["input"];
194
195
  };
196
+ export type OpHubMember = {
197
+ name: Maybe<Scalars["String"]["output"]>;
198
+ phid: Maybe<Scalars["PHID"]["output"]>;
199
+ };
195
200
  export type RemoveContributorInput = {
196
201
  contributorPHID: Scalars["PHID"]["input"];
197
202
  };
@@ -204,6 +209,10 @@ export type RemoveScopeInput = {
204
209
  export type RemoveSkillInput = {
205
210
  skill?: InputMaybe<BuilderSkillInput>;
206
211
  };
212
+ export type SetOpHubMemberInput = {
213
+ name?: InputMaybe<Scalars["String"]["input"]>;
214
+ phid?: InputMaybe<Scalars["PHID"]["input"]>;
215
+ };
207
216
  export type SetOperatorInput = {
208
217
  isOperator: Scalars["Boolean"]["input"];
209
218
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/schema/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAC5C,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KACvD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,MAA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EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,EAAE,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import * as z from "zod";
2
- import type { AddContributorInput, AddLinkInput, AddScopeInput, AddSkillInput, BuilderLink, BuilderProfileState, EditLinkInput, RemoveContributorInput, RemoveLinkInput, RemoveScopeInput, RemoveSkillInput, SetOperatorInput, UpdateProfileInput } from "./types.js";
2
+ import type { AddContributorInput, AddLinkInput, AddScopeInput, AddSkillInput, BuilderLink, BuilderProfileState, EditLinkInput, OpHubMember, RemoveContributorInput, RemoveLinkInput, RemoveScopeInput, RemoveSkillInput, SetOpHubMemberInput, SetOperatorInput, UpdateProfileInput } from "./types.js";
3
3
  type Properties<T> = Required<{
4
4
  [K in keyof T]: z.ZodType<T[K]>;
5
5
  }>;
6
6
  type definedNonNullAny = {};
7
7
  export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
8
- export declare const definedNonNullAnySchema: z.ZodAny;
8
+ export declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
9
9
  export declare const BuilderScopeSchema: z.ZodEnum<{
10
10
  ACC: "ACC";
11
11
  GOVERNANCE_SCOPE: "GOVERNANCE_SCOPE";
@@ -69,10 +69,12 @@ export declare function AddSkillInputSchema(): z.ZodObject<Properties<AddSkillIn
69
69
  export declare function BuilderLinkSchema(): z.ZodObject<Properties<BuilderLink>>;
70
70
  export declare function BuilderProfileStateSchema(): z.ZodObject<Properties<BuilderProfileState>>;
71
71
  export declare function EditLinkInputSchema(): z.ZodObject<Properties<EditLinkInput>>;
72
+ export declare function OpHubMemberSchema(): z.ZodObject<Properties<OpHubMember>>;
72
73
  export declare function RemoveContributorInputSchema(): z.ZodObject<Properties<RemoveContributorInput>>;
73
74
  export declare function RemoveLinkInputSchema(): z.ZodObject<Properties<RemoveLinkInput>>;
74
75
  export declare function RemoveScopeInputSchema(): z.ZodObject<Properties<RemoveScopeInput>>;
75
76
  export declare function RemoveSkillInputSchema(): z.ZodObject<Properties<RemoveSkillInput>>;
77
+ export declare function SetOpHubMemberInputSchema(): z.ZodObject<Properties<SetOpHubMemberInput>>;
76
78
  export declare function SetOperatorInputSchema(): z.ZodObject<Properties<SetOperatorInput>>;
77
79
  export declare function UpdateProfileInputSchema(): z.ZodObject<Properties<UpdateProfileInput>>;
78
80
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,mBAAmB,EAOnB,aAAa,EACb,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,YAA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CAAC,CAM5E;AAED,wBAAgB,4BAA4B,IAAI,CAAC,CAAC,SAAS,CACzD,UAAU,CAAC,sBAAsB,CAAC,CACnC,CAIA;AAED,wBAAgB,qBAAqB,IAAI,CAAC,CAAC,SAAS,CAClD,UAAU,CAAC,eAAe,CAAC,CAC5B,CAIA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,wBAAwB,IAAI,CAAC,CAAC,SAAS,CACrD,UAAU,CAAC,kBAAkB,CAAC,CAC/B,CAWA"}
1
+ {"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,mBAAmB,EAOnB,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB,KAAK,UAAU,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC,CAAC;AAEH,KAAK,iBAAiB,GAAG,EAAE,CAAC;AAE5B,eAAO,MAAM,mBAAmB,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,iBACnB,CAAC;AAEhC,eAAO,MAAM,uBAAuB,gG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C,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,yBAAyB,IAAI,CAAC,CAAC,SAAS,CACtD,UAAU,CAAC,mBAAmB,CAAC,CAChC,CAKA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAIA;AAED,wBAAgB,wBAAwB,IAAI,CAAC,CAAC,SAAS,CACrD,UAAU,CAAC,kBAAkB,CAAC,CAC/B,CAWA"}
@@ -102,6 +102,7 @@ export function BuilderProfileStateSchema() {
102
102
  lastModified: z.string().datetime().nullish(),
103
103
  links: z.array(z.lazy(() => BuilderLinkSchema())),
104
104
  name: z.string().nullish(),
105
+ operationalHubMember: z.lazy(() => OpHubMemberSchema()),
105
106
  scopes: z.array(BuilderScopeSchema),
106
107
  skills: z.array(BuilderSkillSchema),
107
108
  slug: z.string().nullish(),
@@ -115,6 +116,13 @@ export function EditLinkInputSchema() {
115
116
  url: z.string().url(),
116
117
  });
117
118
  }
119
+ export function OpHubMemberSchema() {
120
+ return z.object({
121
+ __typename: z.literal("OpHubMember").optional(),
122
+ name: z.string().nullish(),
123
+ phid: z.string().nullish(),
124
+ });
125
+ }
118
126
  export function RemoveContributorInputSchema() {
119
127
  return z.object({
120
128
  contributorPHID: z.string(),
@@ -135,6 +143,12 @@ export function RemoveSkillInputSchema() {
135
143
  skill: BuilderSkillInputSchema.nullish(),
136
144
  });
137
145
  }
146
+ export function SetOpHubMemberInputSchema() {
147
+ return z.object({
148
+ name: z.string().nullish(),
149
+ phid: z.string().nullish(),
150
+ });
151
+ }
138
152
  export function SetOperatorInputSchema() {
139
153
  return z.object({
140
154
  isOperator: z.boolean(),
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAQzD,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAUxD,eAAO,MAAM,kBAAkB,EAAE,yBAehC,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,wBAA6B,CAAC;AAE9D,eAAO,MAAM,KAAK,EAAE,kBAAkB,CAAC,qBAAqB,CAqC3D,CAAC;AAEF,eAAO,MAAM,cAAc,gEAAuB,CAAC;AACnD,eAAO,MAAM,WAAW,6DAAoB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,2CAAyB,CAAC;AACvD,eAAO,MAAM,aAAa,+DAAsB,CAAC;AACjD,eAAO,MAAM,aAAa,+DAAsB,CAAC;AACjD,eAAO,MAAM,mBAAmB,qEAA4B,CAAC;AAC7D,eAAO,MAAM,gBAAgB,kEAAyB,CAAC;AACvD,eAAO,MAAM,sBAAsB,wEAA+B,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAQzD,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAUxD,eAAO,MAAM,kBAAkB,EAAE,yBAmBhC,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,wBAA6B,CAAC;AAE9D,eAAO,MAAM,KAAK,EAAE,kBAAkB,CAAC,qBAAqB,CAqC3D,CAAC;AAEF,eAAO,MAAM,cAAc,gEAAuB,CAAC;AACnD,eAAO,MAAM,WAAW,6DAAoB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,2CAAyB,CAAC;AACvD,eAAO,MAAM,aAAa,+DAAsB,CAAC;AACjD,eAAO,MAAM,aAAa,+DAAsB,CAAC;AACjD,eAAO,MAAM,mBAAmB,qEAA4B,CAAC;AAC7D,eAAO,MAAM,gBAAgB,kEAAyB,CAAC;AACvD,eAAO,MAAM,sBAAsB,wEAA+B,CAAC"}
@@ -12,6 +12,10 @@ export const initialGlobalState = {
12
12
  about: null,
13
13
  lastModified: null,
14
14
  isOperator: false,
15
+ operationalHubMember: {
16
+ name: null,
17
+ phid: null,
18
+ },
15
19
  contributors: [],
16
20
  status: null,
17
21
  skills: [],
@@ -1,3 +1,3 @@
1
- import type { BuilderProfileBuildersOperations } from "@powerhousedao/builder-profile/document-models/builder-profile";
1
+ import type { BuilderProfileBuildersOperations } from "../../gen/builders/operations.ts";
2
2
  export declare const builderProfileBuildersOperations: BuilderProfileBuildersOperations;
3
3
  //# sourceMappingURL=builders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/src/reducers/builders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gEAAgE,CAAC;AAEvH,eAAO,MAAM,gCAAgC,EAAE,gCAkH5C,CAAC"}
1
+ {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/src/reducers/builders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAEzF,eAAO,MAAM,gCAAgC,EAAE,gCA0H5C,CAAC"}
@@ -112,4 +112,12 @@ export const builderProfileBuildersOperations = {
112
112
  setOperatorOperation(state, action) {
113
113
  state.isOperator = action.input.isOperator;
114
114
  },
115
+ setOpHubMemberOperation(state, action) {
116
+ if (action.input.name)
117
+ state.operationalHubMember.name = action.input.name;
118
+ if (action.input.phid)
119
+ state.operationalHubMember.phid = action.input.phid;
120
+ // Convert UTC timestamp (ms) to ISO string for storage
121
+ state.lastModified = new Date(action.timestampUtcMs).toISOString();
122
+ },
115
123
  };
@@ -1,6 +1,6 @@
1
1
  import { generateMock } from "@powerhousedao/codegen";
2
2
  import { describe, expect, it } from "vitest";
3
- import { reducer, utils, isBuilderProfileDocument, updateProfile, addSkill, removeSkill, addScope, removeScope, addLink, editLink, removeLink, addContributor, removeContributor, setOperator, UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, SetOperatorInputSchema, } from "@powerhousedao/builder-profile/document-models/builder-profile";
3
+ import { reducer, utils, isBuilderProfileDocument, updateProfile, addSkill, removeSkill, addScope, removeScope, addLink, editLink, removeLink, addContributor, removeContributor, setOperator, setOpHubMember, UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, SetOperatorInputSchema, SetOpHubMemberInputSchema, } from "@powerhousedao/builder-profile/document-models/builder-profile";
4
4
  describe("BuildersOperations", () => {
5
5
  it("should handle updateProfile operation", () => {
6
6
  const document = utils.createDocument();
@@ -112,4 +112,14 @@ describe("BuildersOperations", () => {
112
112
  expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
113
113
  expect(updatedDocument.operations.global[0].index).toEqual(0);
114
114
  });
115
+ it("should handle setOpHubMember operation", () => {
116
+ const document = utils.createDocument();
117
+ const input = generateMock(SetOpHubMemberInputSchema());
118
+ const updatedDocument = reducer(document, setOpHubMember(input));
119
+ expect(isBuilderProfileDocument(updatedDocument)).toBe(true);
120
+ expect(updatedDocument.operations.global).toHaveLength(1);
121
+ expect(updatedDocument.operations.global[0].action.type).toBe("SET_OP_HUB_MEMBER");
122
+ expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
123
+ expect(updatedDocument.operations.global[0].index).toEqual(0);
124
+ });
115
125
  });
@@ -1 +1 @@
1
- {"version":3,"file":"document-models.d.ts","sourceRoot":"","sources":["../../document-models/document-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,eAAO,MAAM,cAAc,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAAqB,CAAC"}
1
+ {"version":3,"file":"document-models.d.ts","sourceRoot":"","sources":["../../document-models/document-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,eAAO,MAAM,cAAc,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAEpD,CAAC"}
@@ -1,2 +1,4 @@
1
1
  import { BuilderProfile } from "./builder-profile/module.js";
2
- export const documentModels = [BuilderProfile];
2
+ export const documentModels = [
3
+ BuilderProfile,
4
+ ];
@@ -1,4 +1,4 @@
1
- import type { BuilderLink } from "../../../document-models/builder-profile/gen/types.js";
1
+ import type { BuilderLink } from "../../../document-models/builder-profile/gen/types.ts";
2
2
  interface LinksSectionProps {
3
3
  links: BuilderLink[];
4
4
  onAddLink: (link: {
@@ -1,4 +1,4 @@
1
- import type { BuilderProfileState } from "../../../document-models/builder-profile/gen/types.js";
1
+ import type { BuilderProfileState } from "../../../document-models/builder-profile/gen/types.ts";
2
2
  interface ProfilePreviewProps {
3
3
  state: BuilderProfileState;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BuilderScope } from "../../../document-models/builder-profile/gen/types.js";
1
+ import type { BuilderScope } from "../../../document-models/builder-profile/gen/types.ts";
2
2
  interface ScopesSectionProps {
3
3
  scopes: BuilderScope[];
4
4
  onAddScope: (scope: BuilderScope) => void;
@@ -1,4 +1,4 @@
1
- import type { BuilderSkill } from "../../../document-models/builder-profile/gen/types.js";
1
+ import type { BuilderSkill } from "../../../document-models/builder-profile/gen/types.ts";
2
2
  interface SkillsSectionProps {
3
3
  skills: BuilderSkill[];
4
4
  onAddSkill: (skill: BuilderSkill) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/builder-profile/editor.tsx"],"names":[],"mappings":"AAyCA,MAAM,CAAC,OAAO,UAAU,MAAM,4CA0yB7B"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/builder-profile/editor.tsx"],"names":[],"mappings":"AA0CA,MAAM,CAAC,OAAO,UAAU,MAAM,4CA82B7B"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { TextInput, Textarea } from "@powerhousedao/document-engineering";
3
- import { Settings, FileText, Copy, Info } from "lucide-react";
3
+ import { Settings, FileText, Copy, Info, X, Building2 } from "lucide-react";
4
4
  import { toast, ToastContainer, DocumentToolbar, } from "@powerhousedao/design-system/connect";
5
5
  import { actions } from "../../document-models/builder-profile/index.js";
6
6
  import { useCallback, useEffect, useRef, useState } from "react";
@@ -161,6 +161,12 @@ export default function Editor() {
161
161
  setShowRoleDialog(true);
162
162
  }
163
163
  }, [dispatch, state?.isOperator]);
164
+ // Operational Hub Member handler
165
+ const handleSetOpHubMember = useCallback((input) => {
166
+ if (!dispatch)
167
+ return;
168
+ dispatch(actions.setOpHubMember(input));
169
+ }, [dispatch]);
164
170
  // Confirm role change after dialog
165
171
  const confirmRoleChange = useCallback(() => {
166
172
  if (!dispatch || pendingRoleChange === null)
@@ -397,7 +403,15 @@ export default function Editor() {
397
403
  }
398
404
  }, placeholder: "Short identifier" }), _jsx("p", { className: "field-hint", children: "Unique code for quick reference" })] }), _jsxs("div", { className: "md:col-span-2", children: [_jsx("label", { className: "field-label", children: "Profile Slug" }), _jsx(TextInput, { className: "w-full", value: state?.slug || "", onChange: (e) => {
399
405
  handleFieldChange("slug", e.target.value);
400
- }, placeholder: "your-profile-slug" }), _jsx("p", { className: "field-hint", children: "Auto-generated from name. Lowercase, hyphens only." })] }), _jsx("div", { className: "md:col-span-2", children: _jsx(ImageUrlInput, { label: "Profile Image", value: state?.icon || "", onChange: (value) => handleFieldChange("icon", value), placeholder: "https://example.com/avatar.jpg" }) })] })] }), _jsxs("div", { className: "section-card p-6", children: [_jsxs("h3", { className: "text-lg font-semibold text-slate-900 mb-6 flex items-center gap-2", children: [_jsx("span", { className: "w-8 h-8 rounded-lg bg-amber-50 flex items-center justify-center", children: _jsx(Settings, { size: 18, className: "text-amber-600" }) }), "Status & Type"] }), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: _jsxs("div", { children: [_jsx("label", { className: "field-label", children: "Current Status" }), _jsxs("select", { className: "status-select w-full px-4 py-2.5 border border-slate-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 bg-white", value: state?.status || "", onChange: (e) => {
406
+ }, placeholder: "your-profile-slug" }), _jsx("p", { className: "field-hint", children: "Auto-generated from name. Lowercase, hyphens only." })] }), _jsx("div", { className: "md:col-span-2", children: _jsx(ImageUrlInput, { label: "Profile Image", value: state?.icon || "", onChange: (value) => handleFieldChange("icon", value), placeholder: "https://example.com/avatar.jpg" }) }), _jsxs("div", { className: "md:col-span-2 border-t border-slate-100 pt-6 mt-2", children: [_jsxs("div", { className: "flex items-center gap-2 mb-4", children: [_jsx("span", { className: "w-8 h-8 rounded-lg bg-violet-50 flex items-center justify-center", children: _jsx(Building2, { size: 18, className: "text-violet-600" }) }), _jsx("label", { className: "field-label mb-0", children: "Operational Hub Member" })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsxs("div", { children: [_jsx("label", { className: "text-xs font-medium text-slate-500 mb-1.5 block", children: "Name" }), _jsx(TextInput, { className: "w-full", defaultValue: state?.operationalHubMember?.name || "", onBlur: (e) => {
407
+ if (e.target.value !== state?.operationalHubMember?.name) {
408
+ handleSetOpHubMember({ name: e.target.value || null });
409
+ }
410
+ }, placeholder: "Enter hub name" })] }), _jsxs("div", { children: [_jsx("label", { className: "text-xs font-medium text-slate-500 mb-1.5 block", children: "PHID" }), _jsx(TextInput, { className: "w-full", defaultValue: state?.operationalHubMember?.phid || "", onBlur: (e) => {
411
+ if (e.target.value !== state?.operationalHubMember?.phid) {
412
+ handleSetOpHubMember({ phid: e.target.value || null });
413
+ }
414
+ }, placeholder: "Enter hub PHID" })] })] }), _jsx("p", { className: "field-hint mt-2", children: "Link this profile to an operational hub member" })] })] })] }), _jsxs("div", { className: "section-card p-6", children: [_jsxs("h3", { className: "text-lg font-semibold text-slate-900 mb-6 flex items-center gap-2", children: [_jsx("span", { className: "w-8 h-8 rounded-lg bg-amber-50 flex items-center justify-center", children: _jsx(Settings, { size: 18, className: "text-amber-600" }) }), "Status & Type"] }), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: _jsxs("div", { children: [_jsx("label", { className: "field-label", children: "Current Status" }), _jsxs("select", { className: "status-select w-full px-4 py-2.5 border border-slate-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 bg-white", value: state?.status || "", onChange: (e) => {
401
415
  if (e.target.value) {
402
416
  handleStatusChange(e.target.value);
403
417
  }
@@ -417,5 +431,5 @@ export default function Editor() {
417
431
  }
418
432
  handleFieldChange("description", e.target.value);
419
433
  }
420
- }, placeholder: `A brief summary of your ${roleLabel.toLowerCase()} profile`, rows: 3, maxLength: DESCRIPTION_MAX_LENGTH + 50 }), descriptionValue.length > DESCRIPTION_MAX_LENGTH && (_jsxs("p", { className: "text-xs text-red-500 mt-1", children: ["Description exceeds ", DESCRIPTION_MAX_LENGTH, " character limit. Please shorten it to save."] })), _jsx("p", { className: "field-hint", children: "A short, plain-text description shown in previews and listings" })] }), _jsxs("div", { children: [_jsx(MarkdownEditor, { label: "About", height: 350, value: state?.about || "", onChange: () => { }, onBlur: (value) => handleFieldChange("about", value) }), _jsx("p", { className: "field-hint", children: "A detailed description with markdown formatting to showcase your capabilities" })] })] })] }), _jsx(SkillsSection, { skills: state?.skills || [], onAddSkill: handleAddSkill, onRemoveSkill: handleRemoveSkill }), _jsx(ScopesSection, { scopes: state?.scopes || [], onAddScope: handleAddScope, onRemoveScope: handleRemoveScope }), _jsx(LinksSection, { links: state?.links || [], onAddLink: handleAddLink, onEditLink: handleEditLink, onRemoveLink: handleRemoveLink }), _jsx(ContributorsSection, { contributors: state.contributors, onAddContributor: handleAddContributor, onRemoveContributor: handleRemoveContributor }), _jsx(ToastContainer, { position: "bottom-right" }), showRoleDialog && (_jsx("div", { className: "role-dialog-overlay", children: _jsxs("div", { className: "role-dialog", children: [_jsx("div", { className: "role-dialog-header", children: _jsxs("h3", { className: "text-xl font-semibold text-slate-900", children: ["Switch to ", pendingRoleChange ? "Operator" : "Builder", "?"] }) }), _jsxs("div", { className: "role-dialog-content", children: [_jsx("p", { className: "text-slate-600 mb-4", children: "Before switching, make sure you understand the difference between these roles:" }), _jsxs("div", { className: "role-comparison", children: [_jsxs("div", { className: `role-card ${!pendingRoleChange ? "highlight" : ""}`, children: [_jsxs("div", { className: "role-card-header", children: [_jsx("span", { className: "role-icon-large", children: "\uD83D\uDD28" }), _jsx("h4", { className: "text-lg font-semibold text-slate-900", children: "Builder" })] }), _jsx("p", { className: "text-sm text-slate-600 mb-3", children: "Connect gives you the tools to run your builder operations effectively. Manage your team members, edit your profile, find work to complete and purchase supporting services." }), _jsxs("ul", { className: "role-features", children: [_jsx("li", { children: "\u2713 Sign up to services" }), _jsx("li", { children: "\u2713 Purchase services from Operators" }), _jsx("li", { children: "\u2713 Manage service subscriptions" })] })] }), _jsxs("div", { className: `role-card ${pendingRoleChange ? "highlight" : ""}`, children: [_jsxs("div", { className: "role-card-header", children: [_jsx("span", { className: "role-icon-large", children: "\u26A1" }), _jsx("h4", { className: "text-lg font-semibold text-slate-900", children: "Operator" })] }), _jsx("p", { className: "text-sm text-slate-600 mb-3", children: "Everything that a builder team can do PLUS, you have services to sell to other builders and operators." }), _jsxs("ul", { className: "role-features", children: [_jsx("li", { children: "\u2713 Create and offer services" }), _jsx("li", { children: "\u2713 Sign up to other services" }), _jsx("li", { children: "\u2713 Both sell and buy services" })] })] })] })] }), _jsxs("div", { className: "role-dialog-actions", children: [_jsx("button", { type: "button", onClick: cancelRoleChange, className: "dialog-button dialog-button-cancel", children: "Cancel" }), _jsxs("button", { type: "button", onClick: confirmRoleChange, className: "dialog-button dialog-button-confirm", children: ["Continue as ", pendingRoleChange ? "Operator" : "Builder"] })] })] }) }))] })] }));
434
+ }, placeholder: `A brief summary of your ${roleLabel.toLowerCase()} profile`, rows: 3, maxLength: DESCRIPTION_MAX_LENGTH + 50 }), descriptionValue.length > DESCRIPTION_MAX_LENGTH && (_jsxs("p", { className: "text-xs text-red-500 mt-1", children: ["Description exceeds ", DESCRIPTION_MAX_LENGTH, " character limit. Please shorten it to save."] })), _jsx("p", { className: "field-hint", children: "A short, plain-text description shown in previews and listings" })] }), _jsxs("div", { children: [_jsx(MarkdownEditor, { label: "About", height: 350, value: state?.about || "", onChange: () => { }, onBlur: (value) => handleFieldChange("about", value) }), _jsx("p", { className: "field-hint", children: "A detailed description with markdown formatting to showcase your capabilities" })] })] })] }), _jsx(SkillsSection, { skills: state?.skills || [], onAddSkill: handleAddSkill, onRemoveSkill: handleRemoveSkill }), _jsx(ScopesSection, { scopes: state?.scopes || [], onAddScope: handleAddScope, onRemoveScope: handleRemoveScope }), _jsx(LinksSection, { links: state?.links || [], onAddLink: handleAddLink, onEditLink: handleEditLink, onRemoveLink: handleRemoveLink }), _jsx(ContributorsSection, { contributors: state.contributors, onAddContributor: handleAddContributor, onRemoveContributor: handleRemoveContributor }), _jsx(ToastContainer, { position: "bottom-right" }), showRoleDialog && (_jsx("div", { className: "role-dialog-overlay", children: _jsxs("div", { className: "role-dialog", children: [_jsxs("div", { className: "role-dialog-header relative", children: [_jsxs("h3", { className: "text-xl font-semibold text-slate-900 pr-8", children: ["Switch to ", pendingRoleChange ? "Operator" : "Builder", "?"] }), _jsx("button", { type: "button", onClick: cancelRoleChange, className: "absolute top-0 right-0 p-2 rounded-lg text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors", "aria-label": "Close dialog", children: _jsx(X, { size: 20 }) })] }), _jsxs("div", { className: "role-dialog-content", children: [_jsx("p", { className: "text-slate-600 mb-4", children: "Before switching, make sure you understand the difference between these roles:" }), _jsxs("div", { className: "role-comparison", children: [_jsxs("div", { className: `role-card ${!pendingRoleChange ? "highlight" : ""}`, children: [_jsxs("div", { className: "role-card-header", children: [_jsx("span", { className: "role-icon-large", children: "\uD83D\uDD28" }), _jsx("h4", { className: "text-lg font-semibold text-slate-900", children: "Builder" })] }), _jsx("p", { className: "text-sm text-slate-600 mb-3", children: "Connect gives you the tools to run your builder operations effectively. Manage your team members, edit your profile, find work to complete and purchase supporting services." }), _jsxs("ul", { className: "role-features", children: [_jsx("li", { children: "\u2713 Sign up to services" }), _jsx("li", { children: "\u2713 Purchase services from Operators" }), _jsx("li", { children: "\u2713 Manage service subscriptions" })] })] }), _jsxs("div", { className: `role-card ${pendingRoleChange ? "highlight" : ""}`, children: [_jsxs("div", { className: "role-card-header", children: [_jsx("span", { className: "role-icon-large", children: "\u26A1" }), _jsx("h4", { className: "text-lg font-semibold text-slate-900", children: "Operator" })] }), _jsxs("ul", { className: "role-features", children: [_jsx("li", { children: "\u2713 Everything that a builder team can do PLUS, you have services to sell to other builders and operators." }), _jsx("li", { children: "\u2713 Create and offer services" }), _jsx("li", { children: "\u2713 Sign up to other services" }), _jsx("li", { children: "\u2713 Both sell and buy services" })] })] })] })] }), _jsxs("div", { className: "role-dialog-actions", children: [_jsx("button", { type: "button", onClick: cancelRoleChange, className: "dialog-button dialog-button-cancel", children: "Cancel" }), _jsxs("button", { type: "button", onClick: confirmRoleChange, className: "dialog-button dialog-button-confirm", children: ["Continue as ", pendingRoleChange ? "Operator" : "Builder"] })] })] }) }))] })] }));
421
435
  }
@@ -9,7 +9,7 @@
9
9
  "documentModels": [
10
10
  {
11
11
  "id": "powerhouse/builder-profile",
12
- "name": "Builder Profile"
12
+ "name": "BuilderProfile"
13
13
  }
14
14
  ],
15
15
  "editors": [],
package/dist/style.css CHANGED
@@ -285,12 +285,18 @@
285
285
  .-top-3 {
286
286
  top: calc(var(--spacing) * -3);
287
287
  }
288
+ .top-0 {
289
+ top: calc(var(--spacing) * 0);
290
+ }
288
291
  .top-1\/2 {
289
292
  top: calc(1/2 * 100%);
290
293
  }
291
294
  .-right-3 {
292
295
  right: calc(var(--spacing) * -3);
293
296
  }
297
+ .right-0 {
298
+ right: calc(var(--spacing) * 0);
299
+ }
294
300
  .right-3 {
295
301
  right: calc(var(--spacing) * 3);
296
302
  }
@@ -318,6 +324,9 @@
318
324
  .mb-0 {
319
325
  margin-bottom: calc(var(--spacing) * 0);
320
326
  }
327
+ .mb-1\.5 {
328
+ margin-bottom: calc(var(--spacing) * 1.5);
329
+ }
321
330
  .mb-2 {
322
331
  margin-bottom: calc(var(--spacing) * 2);
323
332
  }
@@ -472,6 +481,9 @@
472
481
  .gap-3 {
473
482
  gap: calc(var(--spacing) * 3);
474
483
  }
484
+ .gap-4 {
485
+ gap: calc(var(--spacing) * 4);
486
+ }
475
487
  .gap-6 {
476
488
  gap: calc(var(--spacing) * 6);
477
489
  }
@@ -794,6 +806,12 @@
794
806
  .pt-4 {
795
807
  padding-top: calc(var(--spacing) * 4);
796
808
  }
809
+ .pt-6 {
810
+ padding-top: calc(var(--spacing) * 6);
811
+ }
812
+ .pr-8 {
813
+ padding-right: calc(var(--spacing) * 8);
814
+ }
797
815
  .pr-10 {
798
816
  padding-right: calc(var(--spacing) * 10);
799
817
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/builder-profile",
3
3
  "description": "Builder profile document model",
4
- "version": "0.0.14",
4
+ "version": "0.0.16",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
7
7
  "files": [
@@ -69,7 +69,7 @@
69
69
  "@powerhousedao/common": "5.3.0-staging.12",
70
70
  "@powerhousedao/design-system": "5.3.0-staging.12",
71
71
  "@powerhousedao/document-engineering": "^1.40.0",
72
- "@powerhousedao/vetra": "5.3.0-staging.12",
72
+ "@powerhousedao/vetra": "5.3.0-staging.13",
73
73
  "@uiw/react-md-editor": "^4.0.11",
74
74
  "document-model": "5.3.0-staging.12",
75
75
  "error": "^10.4.0",
@@ -77,7 +77,7 @@
77
77
  "graphql-tag": "^2.12.6",
78
78
  "lucide-react": "^0.556.0",
79
79
  "rehype-slug": "^6.0.0",
80
- "zod": "4.1.13"
80
+ "zod": "^4.3.5"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@electric-sql/pglite": "^0.2.12",
@@ -120,5 +120,5 @@
120
120
  "react-dom": "^19.2.0"
121
121
  },
122
122
  "readme": "ERROR: No README data found!",
123
- "_id": "@powerhousedao/builder-profile@0.0.12"
123
+ "_id": "@powerhousedao/builder-profile@0.0.15"
124
124
  }
@@ -1,6 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- export {};
6
- //# sourceMappingURL=builders.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builders.test.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/src/tests/builders.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,19 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- import { describe, it, expect } from "vitest";
6
- import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isBuilderProfileDocument, updateProfile, UpdateProfileInputSchema, } from "@powerhousedao/builder-profile/document-models/builder-profile";
8
- describe("Builders Operations", () => {
9
- it("should handle updateProfile operation", () => {
10
- const document = utils.createDocument();
11
- const input = generateMock(UpdateProfileInputSchema());
12
- const updatedDocument = reducer(document, updateProfile(input));
13
- expect(isBuilderProfileDocument(updatedDocument)).toBe(true);
14
- expect(updatedDocument.operations.global).toHaveLength(1);
15
- expect(updatedDocument.operations.global[0].action.type).toBe("UPDATE_PROFILE");
16
- expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
17
- expect(updatedDocument.operations.global[0].index).toEqual(0);
18
- });
19
- });
@@ -1,10 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- /**
6
- * This is a scaffold file meant for customization:
7
- * - change it by adding new tests or modifying the existing ones
8
- */
9
- export {};
10
- //# sourceMappingURL=document-model.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-model.test.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/src/tests/document-model.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;GAGG"}
@@ -1,104 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- /**
6
- * This is a scaffold file meant for customization:
7
- * - change it by adding new tests or modifying the existing ones
8
- */
9
- import { describe, it, expect } from "vitest";
10
- import { utils, initialGlobalState, initialLocalState, builderProfileDocumentType, isBuilderProfileDocument, assertIsBuilderProfileDocument, isBuilderProfileState, assertIsBuilderProfileState, } from "@powerhousedao/builder-profile/document-models/builder-profile";
11
- import { ZodError } from "zod";
12
- describe("BuilderProfile Document Model", () => {
13
- it("should create a new BuilderProfile document", () => {
14
- const document = utils.createDocument();
15
- expect(document).toBeDefined();
16
- expect(document.header.documentType).toBe(builderProfileDocumentType);
17
- });
18
- it("should create a new BuilderProfile document with a valid initial state", () => {
19
- const document = utils.createDocument();
20
- expect(document.state.global).toStrictEqual(initialGlobalState);
21
- expect(document.state.local).toStrictEqual(initialLocalState);
22
- expect(isBuilderProfileDocument(document)).toBe(true);
23
- expect(isBuilderProfileState(document.state)).toBe(true);
24
- });
25
- it("should reject a document that is not a BuilderProfile document", () => {
26
- const wrongDocumentType = utils.createDocument();
27
- wrongDocumentType.header.documentType = "the-wrong-thing-1234";
28
- try {
29
- expect(assertIsBuilderProfileDocument(wrongDocumentType)).toThrow();
30
- expect(isBuilderProfileDocument(wrongDocumentType)).toBe(false);
31
- }
32
- catch (error) {
33
- expect(error).toBeInstanceOf(ZodError);
34
- }
35
- });
36
- const wrongState = utils.createDocument();
37
- // @ts-expect-error - we are testing the error case
38
- wrongState.state.global = {
39
- ...{ notWhat: "you want" },
40
- };
41
- try {
42
- expect(isBuilderProfileState(wrongState.state)).toBe(false);
43
- expect(assertIsBuilderProfileState(wrongState.state)).toThrow();
44
- expect(isBuilderProfileDocument(wrongState)).toBe(false);
45
- expect(assertIsBuilderProfileDocument(wrongState)).toThrow();
46
- }
47
- catch (error) {
48
- expect(error).toBeInstanceOf(ZodError);
49
- }
50
- const wrongInitialState = utils.createDocument();
51
- // @ts-expect-error - we are testing the error case
52
- wrongInitialState.initialState.global = {
53
- ...{ notWhat: "you want" },
54
- };
55
- try {
56
- expect(isBuilderProfileState(wrongInitialState.state)).toBe(false);
57
- expect(assertIsBuilderProfileState(wrongInitialState.state)).toThrow();
58
- expect(isBuilderProfileDocument(wrongInitialState)).toBe(false);
59
- expect(assertIsBuilderProfileDocument(wrongInitialState)).toThrow();
60
- }
61
- catch (error) {
62
- expect(error).toBeInstanceOf(ZodError);
63
- }
64
- const missingIdInHeader = utils.createDocument();
65
- // @ts-expect-error - we are testing the error case
66
- delete missingIdInHeader.header.id;
67
- try {
68
- expect(isBuilderProfileDocument(missingIdInHeader)).toBe(false);
69
- expect(assertIsBuilderProfileDocument(missingIdInHeader)).toThrow();
70
- }
71
- catch (error) {
72
- expect(error).toBeInstanceOf(ZodError);
73
- }
74
- const missingNameInHeader = utils.createDocument();
75
- // @ts-expect-error - we are testing the error case
76
- delete missingNameInHeader.header.name;
77
- try {
78
- expect(isBuilderProfileDocument(missingNameInHeader)).toBe(false);
79
- expect(assertIsBuilderProfileDocument(missingNameInHeader)).toThrow();
80
- }
81
- catch (error) {
82
- expect(error).toBeInstanceOf(ZodError);
83
- }
84
- const missingCreatedAtUtcIsoInHeader = utils.createDocument();
85
- // @ts-expect-error - we are testing the error case
86
- delete missingCreatedAtUtcIsoInHeader.header.createdAtUtcIso;
87
- try {
88
- expect(isBuilderProfileDocument(missingCreatedAtUtcIsoInHeader)).toBe(false);
89
- expect(assertIsBuilderProfileDocument(missingCreatedAtUtcIsoInHeader)).toThrow();
90
- }
91
- catch (error) {
92
- expect(error).toBeInstanceOf(ZodError);
93
- }
94
- const missingLastModifiedAtUtcIsoInHeader = utils.createDocument();
95
- // @ts-expect-error - we are testing the error case
96
- delete missingLastModifiedAtUtcIsoInHeader.header.lastModifiedAtUtcIso;
97
- try {
98
- expect(isBuilderProfileDocument(missingLastModifiedAtUtcIsoInHeader)).toBe(false);
99
- expect(assertIsBuilderProfileDocument(missingLastModifiedAtUtcIsoInHeader)).toThrow();
100
- }
101
- catch (error) {
102
- expect(error).toBeInstanceOf(ZodError);
103
- }
104
- });