@powerhousedao/builder-profile 0.0.3 → 0.0.5

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 (94) hide show
  1. package/dist/document-models/builder-profile/actions.d.ts +9 -0
  2. package/dist/document-models/builder-profile/actions.d.ts.map +1 -1
  3. package/dist/document-models/builder-profile/actions.js +2 -2
  4. package/dist/document-models/builder-profile/gen/actions.d.ts +3 -3
  5. package/dist/document-models/builder-profile/gen/actions.d.ts.map +1 -1
  6. package/dist/document-models/builder-profile/gen/actions.js +1 -1
  7. package/dist/document-models/builder-profile/gen/builders/actions.d.ts +44 -0
  8. package/dist/document-models/builder-profile/gen/builders/actions.d.ts.map +1 -0
  9. package/dist/document-models/builder-profile/gen/builders/creators.d.ts +13 -0
  10. package/dist/document-models/builder-profile/gen/builders/creators.d.ts.map +1 -0
  11. package/dist/document-models/builder-profile/gen/builders/creators.js +12 -0
  12. package/dist/document-models/builder-profile/gen/builders/error.d.ts.map +1 -0
  13. package/dist/document-models/builder-profile/gen/builders/operations.d.ts +16 -0
  14. package/dist/document-models/builder-profile/gen/builders/operations.d.ts.map +1 -0
  15. package/dist/document-models/builder-profile/gen/creators.d.ts +2 -2
  16. package/dist/document-models/builder-profile/gen/creators.d.ts.map +1 -1
  17. package/dist/document-models/builder-profile/gen/creators.js +2 -2
  18. package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
  19. package/dist/document-models/builder-profile/gen/document-model.js +121 -22
  20. package/dist/document-models/builder-profile/gen/document-schema.d.ts +168 -16
  21. package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -1
  22. package/dist/document-models/builder-profile/gen/index.d.ts +1 -1
  23. package/dist/document-models/builder-profile/gen/index.d.ts.map +1 -1
  24. package/dist/document-models/builder-profile/gen/index.js +1 -1
  25. package/dist/document-models/builder-profile/gen/ph-factories.d.ts.map +1 -1
  26. package/dist/document-models/builder-profile/gen/ph-factories.js +8 -0
  27. package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
  28. package/dist/document-models/builder-profile/gen/reducer.js +39 -3
  29. package/dist/document-models/builder-profile/gen/schema/types.d.ts +55 -0
  30. package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
  31. package/dist/document-models/builder-profile/gen/schema/zod.d.ts +19 -1
  32. package/dist/document-models/builder-profile/gen/schema/zod.d.ts.map +1 -1
  33. package/dist/document-models/builder-profile/gen/schema/zod.js +126 -0
  34. package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
  35. package/dist/document-models/builder-profile/gen/utils.js +9 -1
  36. package/dist/document-models/builder-profile/src/reducers/builders.d.ts +3 -0
  37. package/dist/document-models/builder-profile/src/reducers/builders.d.ts.map +1 -0
  38. package/dist/document-models/builder-profile/src/reducers/builders.js +108 -0
  39. package/dist/document-models/builder-profile/src/tests/{builder.test.d.ts → builders.test.d.ts} +1 -1
  40. package/dist/document-models/builder-profile/src/tests/builders.test.d.ts.map +1 -0
  41. package/dist/document-models/builder-profile/src/tests/{builder.test.js → builders.test.js} +1 -1
  42. package/dist/document-models/document-models.d.ts.map +1 -1
  43. package/dist/document-models/document-models.js +3 -1
  44. package/dist/document-models/index.d.ts +0 -4
  45. package/dist/document-models/index.d.ts.map +1 -1
  46. package/dist/document-models/index.js +0 -4
  47. package/dist/editors/builder-profile/components/ContributorsSection.d.ts +8 -0
  48. package/dist/editors/builder-profile/components/ContributorsSection.d.ts.map +1 -0
  49. package/dist/editors/builder-profile/components/ContributorsSection.js +177 -0
  50. package/dist/editors/builder-profile/components/ImageUrlInput.d.ts +9 -0
  51. package/dist/editors/builder-profile/components/ImageUrlInput.d.ts.map +1 -0
  52. package/dist/editors/builder-profile/components/ImageUrlInput.js +57 -0
  53. package/dist/editors/builder-profile/components/LinksSection.d.ts +18 -0
  54. package/dist/editors/builder-profile/components/LinksSection.d.ts.map +1 -0
  55. package/dist/editors/builder-profile/components/LinksSection.js +74 -0
  56. package/dist/editors/builder-profile/components/ProfilePreview.d.ts +7 -0
  57. package/dist/editors/builder-profile/components/ProfilePreview.d.ts.map +1 -0
  58. package/dist/editors/builder-profile/components/ProfilePreview.js +55 -0
  59. package/dist/editors/builder-profile/components/ScopesSection.d.ts +9 -0
  60. package/dist/editors/builder-profile/components/ScopesSection.d.ts.map +1 -0
  61. package/dist/editors/builder-profile/components/ScopesSection.js +58 -0
  62. package/dist/editors/builder-profile/components/SkillsSection.d.ts +9 -0
  63. package/dist/editors/builder-profile/components/SkillsSection.d.ts.map +1 -0
  64. package/dist/editors/builder-profile/components/SkillsSection.js +66 -0
  65. package/dist/editors/builder-profile/editor.d.ts.map +1 -1
  66. package/dist/editors/builder-profile/editor.js +213 -101
  67. package/dist/editors/builder-profile/module.js +1 -1
  68. package/dist/editors/index.d.ts +0 -4
  69. package/dist/editors/index.d.ts.map +1 -1
  70. package/dist/editors/index.js +0 -4
  71. package/dist/index.js +2 -2
  72. package/dist/powerhouse.manifest.json +9 -4
  73. package/dist/style.css +745 -29
  74. package/dist/subgraphs/builder-profile/resolvers.d.ts.map +1 -1
  75. package/dist/subgraphs/builder-profile/resolvers.js +108 -0
  76. package/dist/subgraphs/builder-profile/schema.d.ts.map +1 -1
  77. package/dist/subgraphs/builder-profile/schema.js +118 -1
  78. package/package.json +24 -20
  79. package/dist/document-models/builder-profile/gen/builder/actions.d.ts +0 -8
  80. package/dist/document-models/builder-profile/gen/builder/actions.d.ts.map +0 -1
  81. package/dist/document-models/builder-profile/gen/builder/creators.d.ts +0 -4
  82. package/dist/document-models/builder-profile/gen/builder/creators.d.ts.map +0 -1
  83. package/dist/document-models/builder-profile/gen/builder/creators.js +0 -3
  84. package/dist/document-models/builder-profile/gen/builder/error.d.ts.map +0 -1
  85. package/dist/document-models/builder-profile/gen/builder/operations.d.ts +0 -7
  86. package/dist/document-models/builder-profile/gen/builder/operations.d.ts.map +0 -1
  87. package/dist/document-models/builder-profile/src/reducers/builder.d.ts +0 -3
  88. package/dist/document-models/builder-profile/src/reducers/builder.d.ts.map +0 -1
  89. package/dist/document-models/builder-profile/src/reducers/builder.js +0 -9
  90. package/dist/document-models/builder-profile/src/tests/builder.test.d.ts.map +0 -1
  91. /package/dist/document-models/builder-profile/gen/{builder → builders}/actions.js +0 -0
  92. /package/dist/document-models/builder-profile/gen/{builder → builders}/error.d.ts +0 -0
  93. /package/dist/document-models/builder-profile/gen/{builder → builders}/error.js +0 -0
  94. /package/dist/document-models/builder-profile/gen/{builder → builders}/operations.js +0 -0
@@ -1,6 +1,15 @@
1
1
  /** Actions for the BuilderProfile document model */
2
2
  export declare const actions: {
3
3
  updateProfile: (input: import("./index.js").UpdateProfileInput) => import("./index.js").UpdateProfileAction;
4
+ addSkill: (input: import("./index.js").AddSkillInput) => import("./index.js").AddSkillAction;
5
+ removeSkill: (input: import("./index.js").RemoveSkillInput) => import("./index.js").RemoveSkillAction;
6
+ addScope: (input: import("./index.js").AddScopeInput) => import("./index.js").AddScopeAction;
7
+ removeScope: (input: import("./index.js").RemoveScopeInput) => import("./index.js").RemoveScopeAction;
8
+ addLink: (input: import("./index.js").AddLinkInput) => import("./index.js").AddLinkAction;
9
+ editLink: (input: import("./index.js").EditLinkInput) => import("./index.js").EditLinkAction;
10
+ removeLink: (input: import("./index.js").RemoveLinkInput) => import("./index.js").RemoveLinkAction;
11
+ addContributor: (input: import("./index.js").AddContributorInput) => import("./index.js").AddContributorAction;
12
+ removeContributor: (input: import("./index.js").RemoveContributorInput) => import("./index.js").RemoveContributorAction;
4
13
  setName: (name: string) => import("document-model").SetNameAction;
5
14
  undo: (skip?: number, scope?: string) => import("document-model").UndoAction;
6
15
  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;AACpD,eAAO,MAAM,OAAO;oBACsB,8CAAyB;;eAAs2N,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADz1O,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/builder-profile/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AACpD,eAAO,MAAM,OAAO;oBACymB,8CAAyB;eAA4K,yCAAoB;kBAAgK,4CAAuB;eAAsK,yCAAoB;kBAAgK,4CAAuB;cAAqK,wCAAmB;eAA0J,yCAAoB;iBAA+J,2CAAsB;qBAAyK,+CAA0B;wBAAwL,kDAA6B;;eAAsnJ,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADt1O,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { baseActions } from "document-model";
2
- import { builderActions } from "./gen/creators.js";
2
+ import { buildersActions } from "./gen/creators.js";
3
3
  /** Actions for the BuilderProfile document model */
4
- export const actions = { ...baseActions, ...builderActions };
4
+ export const actions = { ...baseActions, ...buildersActions };
@@ -1,4 +1,4 @@
1
- import type { BuilderProfileBuilderAction } from "./builder/actions.js";
2
- export * from "./builder/actions.js";
3
- export type BuilderProfileAction = BuilderProfileBuilderAction;
1
+ import type { BuilderProfileBuildersAction } from "./builders/actions.js";
2
+ export * from "./builders/actions.js";
3
+ export type BuilderProfileAction = BuilderProfileBuildersAction;
4
4
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAExE,cAAc,sBAAsB,CAAC;AAErC,MAAM,MAAM,oBAAoB,GAAG,2BAA2B,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E,cAAc,uBAAuB,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- export * from "./builder/actions.js";
1
+ export * from "./builders/actions.js";
@@ -0,0 +1,44 @@
1
+ import { type Action } from "document-model";
2
+ import type { UpdateProfileInput, AddSkillInput, RemoveSkillInput, AddScopeInput, RemoveScopeInput, AddLinkInput, EditLinkInput, RemoveLinkInput, AddContributorInput, RemoveContributorInput } from "../types.js";
3
+ export type UpdateProfileAction = Action & {
4
+ type: "UPDATE_PROFILE";
5
+ input: UpdateProfileInput;
6
+ };
7
+ export type AddSkillAction = Action & {
8
+ type: "ADD_SKILL";
9
+ input: AddSkillInput;
10
+ };
11
+ export type RemoveSkillAction = Action & {
12
+ type: "REMOVE_SKILL";
13
+ input: RemoveSkillInput;
14
+ };
15
+ export type AddScopeAction = Action & {
16
+ type: "ADD_SCOPE";
17
+ input: AddScopeInput;
18
+ };
19
+ export type RemoveScopeAction = Action & {
20
+ type: "REMOVE_SCOPE";
21
+ input: RemoveScopeInput;
22
+ };
23
+ export type AddLinkAction = Action & {
24
+ type: "ADD_LINK";
25
+ input: AddLinkInput;
26
+ };
27
+ export type EditLinkAction = Action & {
28
+ type: "EDIT_LINK";
29
+ input: EditLinkInput;
30
+ };
31
+ export type RemoveLinkAction = Action & {
32
+ type: "REMOVE_LINK";
33
+ input: RemoveLinkInput;
34
+ };
35
+ export type AddContributorAction = Action & {
36
+ type: "ADD_CONTRIBUTOR";
37
+ input: AddContributorInput;
38
+ };
39
+ export type RemoveContributorAction = Action & {
40
+ type: "REMOVE_CONTRIBUTOR";
41
+ input: RemoveContributorInput;
42
+ };
43
+ export type BuilderProfileBuildersAction = UpdateProfileAction | AddSkillAction | RemoveSkillAction | AddScopeAction | RemoveScopeAction | AddLinkAction | EditLinkAction | RemoveLinkAction | AddContributorAction | RemoveContributorAction;
44
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,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,EACvB,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;AAEF,MAAM,MAAM,4BAA4B,GACpC,mBAAmB,GACnB,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,uBAAuB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { UpdateProfileInput, AddSkillInput, RemoveSkillInput, AddScopeInput, RemoveScopeInput, AddLinkInput, EditLinkInput, RemoveLinkInput, AddContributorInput, RemoveContributorInput } from "../types.js";
2
+ import type { UpdateProfileAction, AddSkillAction, RemoveSkillAction, AddScopeAction, RemoveScopeAction, AddLinkAction, EditLinkAction, RemoveLinkAction, AddContributorAction, RemoveContributorAction } from "./actions.js";
3
+ export declare const updateProfile: (input: UpdateProfileInput) => UpdateProfileAction;
4
+ export declare const addSkill: (input: AddSkillInput) => AddSkillAction;
5
+ export declare const removeSkill: (input: RemoveSkillInput) => RemoveSkillAction;
6
+ export declare const addScope: (input: AddScopeInput) => AddScopeAction;
7
+ export declare const removeScope: (input: RemoveScopeInput) => RemoveScopeAction;
8
+ export declare const addLink: (input: AddLinkInput) => AddLinkAction;
9
+ export declare const editLink: (input: EditLinkInput) => EditLinkAction;
10
+ export declare const removeLink: (input: RemoveLinkInput) => RemoveLinkAction;
11
+ export declare const addContributor: (input: AddContributorInput) => AddContributorAction;
12
+ export declare const removeContributor: (input: RemoveContributorInput) => RemoveContributorAction;
13
+ //# sourceMappingURL=creators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/creators.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACvB,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,EACxB,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,aAAa,mBAO1C,CAAC;AAEJ,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qBAO9C,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4BAO5D,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { createAction } from "document-model/core";
2
+ import { UpdateProfileInputSchema, AddSkillInputSchema, RemoveSkillInputSchema, AddScopeInputSchema, RemoveScopeInputSchema, AddLinkInputSchema, EditLinkInputSchema, RemoveLinkInputSchema, AddContributorInputSchema, RemoveContributorInputSchema, } from "../schema/zod.js";
3
+ export const updateProfile = (input) => createAction("UPDATE_PROFILE", { ...input }, undefined, UpdateProfileInputSchema, "global");
4
+ export const addSkill = (input) => createAction("ADD_SKILL", { ...input }, undefined, AddSkillInputSchema, "global");
5
+ export const removeSkill = (input) => createAction("REMOVE_SKILL", { ...input }, undefined, RemoveSkillInputSchema, "global");
6
+ export const addScope = (input) => createAction("ADD_SCOPE", { ...input }, undefined, AddScopeInputSchema, "global");
7
+ export const removeScope = (input) => createAction("REMOVE_SCOPE", { ...input }, undefined, RemoveScopeInputSchema, "global");
8
+ export const addLink = (input) => createAction("ADD_LINK", { ...input }, undefined, AddLinkInputSchema, "global");
9
+ export const editLink = (input) => createAction("EDIT_LINK", { ...input }, undefined, EditLinkInputSchema, "global");
10
+ export const removeLink = (input) => createAction("REMOVE_LINK", { ...input }, undefined, RemoveLinkInputSchema, "global");
11
+ export const addContributor = (input) => createAction("ADD_CONTRIBUTOR", { ...input }, undefined, AddContributorInputSchema, "global");
12
+ export const removeContributor = (input) => createAction("REMOVE_CONTRIBUTOR", { ...input }, undefined, RemoveContributorInputSchema, "global");
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-profile/gen/builders/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type SignalDispatch } from "document-model";
2
+ import { type UpdateProfileAction, type AddSkillAction, type RemoveSkillAction, type AddScopeAction, type RemoveScopeAction, type AddLinkAction, type EditLinkAction, type RemoveLinkAction, type AddContributorAction, type RemoveContributorAction } from "./actions.js";
3
+ import { type BuilderProfileState } from "../types.js";
4
+ export interface BuilderProfileBuildersOperations {
5
+ updateProfileOperation: (state: BuilderProfileState, action: UpdateProfileAction, dispatch?: SignalDispatch) => void;
6
+ addSkillOperation: (state: BuilderProfileState, action: AddSkillAction, dispatch?: SignalDispatch) => void;
7
+ removeSkillOperation: (state: BuilderProfileState, action: RemoveSkillAction, dispatch?: SignalDispatch) => void;
8
+ addScopeOperation: (state: BuilderProfileState, action: AddScopeAction, dispatch?: SignalDispatch) => void;
9
+ removeScopeOperation: (state: BuilderProfileState, action: RemoveScopeAction, dispatch?: SignalDispatch) => void;
10
+ addLinkOperation: (state: BuilderProfileState, action: AddLinkAction, dispatch?: SignalDispatch) => void;
11
+ editLinkOperation: (state: BuilderProfileState, action: EditLinkAction, dispatch?: SignalDispatch) => void;
12
+ removeLinkOperation: (state: BuilderProfileState, action: RemoveLinkAction, dispatch?: SignalDispatch) => void;
13
+ addContributorOperation: (state: BuilderProfileState, action: AddContributorAction, dispatch?: SignalDispatch) => void;
14
+ removeContributorOperation: (state: BuilderProfileState, action: RemoveContributorAction, dispatch?: SignalDispatch) => void;
15
+ }
16
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +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,EACL,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,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;CACX"}
@@ -1,3 +1,3 @@
1
- export * from "./builder/creators.js";
2
- export * as builderActions from "./builder/creators.js";
1
+ export * from "./builders/creators.js";
2
+ export * as buildersActions from "./builders/creators.js";
3
3
  //# sourceMappingURL=creators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/creators.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/creators.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./builder/creators.js";
2
- export * as builderActions from "./builder/creators.js";
1
+ export * from "./builders/creators.js";
2
+ export * as buildersActions from "./builders/creators.js";
@@ -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,wBAkD3B,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,wBA4J3B,CAAC"}
@@ -1,48 +1,147 @@
1
1
  export const documentModel = {
2
- id: "powerhouse/builder-profile",
3
- name: "Builder Profile",
4
- extension: ".phdm",
5
- description: "A builder profile document",
6
2
  author: {
7
3
  name: "Powerhouse",
8
- website: "https://powerhouse.inc/",
4
+ website: "https://powerhouse.inc",
9
5
  },
6
+ description: "A builder profile document",
7
+ extension: "",
8
+ id: "powerhouse/builder-profile",
9
+ name: "Builder Profile",
10
10
  specifications: [
11
11
  {
12
- version: 1,
13
12
  changeLog: [],
14
- state: {
15
- global: {
16
- schema: "type BuilderProfileState {\n id: PHID\n slug: String\n name: String\n icon: URL\n description: String\n}",
17
- initialValue: '"{\\n \\"id\\": null,\\n \\"slug\\": null,\\n \\"name\\": null,\\n \\"icon\\": null,\\n \\"description\\": null\\n}"',
18
- examples: [],
19
- },
20
- local: {
21
- schema: "",
22
- initialValue: '""',
23
- examples: [],
24
- },
25
- },
26
13
  modules: [
27
14
  {
28
- id: "09f6c21b-cd1a-4218-8f2f-448c947c79bd",
29
- name: "builder",
30
15
  description: "",
16
+ id: "9ef097c0-92df-473a-95c6-ae9b6f69e7f7",
17
+ name: "builders",
31
18
  operations: [
32
19
  {
33
- id: "ee51a588-dd04-4819-beeb-a0cbdd598c81",
20
+ description: "",
21
+ errors: [],
22
+ examples: [],
23
+ id: "a729a16c-d961-4df6-91f1-fc114fd4ca35",
34
24
  name: "UPDATE_PROFILE",
25
+ reducer: "",
26
+ schema: "input UpdateProfileInput {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n status: BuilderStatusInput\n type: teamTypeInput\n}\n\nenum teamTypeInput {\n INDIVIDUAL\n TEAM\n}\n\nenum BuilderStatusInput {\n ACTIVE\n INACTIVE\n ON_HOLD\n COMPLETED\n ARCHIVED\n}\n",
27
+ scope: "global",
28
+ template: "",
29
+ },
30
+ {
35
31
  description: "",
36
- schema: "input UpdateProfileInput {\n id: PHID\n slug: String\n name: String\n icon: URL\n description: String\n}",
32
+ errors: [],
33
+ examples: [],
34
+ id: "47773491-f8af-4b05-8b39-1bbbd3367566",
35
+ name: "ADD_SKILL",
36
+ reducer: "",
37
+ schema: "input AddSkillInput {\n skill: BuilderSkillInput\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}",
38
+ scope: "global",
37
39
  template: "",
40
+ },
41
+ {
42
+ description: "",
43
+ errors: [],
44
+ examples: [],
45
+ id: "b04c49f3-b8e8-4e5e-bee1-e74d4fc611e0",
46
+ name: "REMOVE_SKILL",
38
47
  reducer: "",
48
+ schema: "input RemoveSkillInput {\n skill: BuilderSkillInput\n}\n\n",
49
+ scope: "global",
50
+ template: "",
51
+ },
52
+ {
53
+ description: "",
54
+ errors: [],
55
+ examples: [],
56
+ id: "172aee1c-aa73-4d99-bc9c-7d9239624d4c",
57
+ name: "ADD_SCOPE",
58
+ reducer: "",
59
+ schema: "input AddScopeInput {\n scope: BuilderScopeInput\n}\n\nenum BuilderScopeInput {\n ACC\n STA\n SUP\n STABILITY_SCOPE\n SUPPORT_SCOPE\n PROTOCOL_SCOPE\n GOVERNANCE_SCOPE\n}",
60
+ scope: "global",
61
+ template: "",
62
+ },
63
+ {
64
+ description: "",
39
65
  errors: [],
40
66
  examples: [],
67
+ id: "ff1c8e28-1725-4753-bdf0-f64eca52516a",
68
+ name: "REMOVE_SCOPE",
69
+ reducer: "",
70
+ schema: "input RemoveScopeInput {\n scope: BuilderScopeInput\n}",
41
71
  scope: "global",
72
+ template: "",
73
+ },
74
+ {
75
+ description: "",
76
+ errors: [],
77
+ examples: [],
78
+ id: "c1553e89-df14-4e58-87ae-9f130e60a847",
79
+ name: "ADD_LINK",
80
+ reducer: "",
81
+ schema: "input AddLinkInput {\n id: OID!\n url: URL!\n label: String\n}",
82
+ scope: "global",
83
+ template: "",
84
+ },
85
+ {
86
+ description: "",
87
+ errors: [],
88
+ examples: [],
89
+ id: "610c7549-9631-4921-b840-8344cec388b2",
90
+ name: "EDIT_LINK",
91
+ reducer: "",
92
+ schema: "input EditLinkInput {\n id: OID!\n url: URL!\n label: String\n}",
93
+ scope: "global",
94
+ template: "",
95
+ },
96
+ {
97
+ description: "",
98
+ errors: [],
99
+ examples: [],
100
+ id: "0b199ad1-47a2-4987-8093-b0267a970d89",
101
+ name: "REMOVE_LINK",
102
+ reducer: "",
103
+ schema: "input RemoveLinkInput {\n id: OID! \n}",
104
+ scope: "global",
105
+ template: "",
106
+ },
107
+ {
108
+ description: "Only if team type is INDIVIDUAL",
109
+ errors: [],
110
+ examples: [],
111
+ id: "1a35597e-63e8-43f7-8276-0b486c43d3b9",
112
+ name: "ADD_CONTRIBUTOR",
113
+ reducer: "",
114
+ schema: "input AddContributorInput {\n contributorPHID: PHID!\n}",
115
+ scope: "global",
116
+ template: "",
117
+ },
118
+ {
119
+ description: "",
120
+ errors: [],
121
+ examples: [],
122
+ id: "107f2274-a2fe-433c-ae59-25d12702e9fa",
123
+ name: "REMOVE_CONTRIBUTOR",
124
+ reducer: "",
125
+ schema: "input RemoveContributorInput {\n contributorPHID: PHID!\n}",
126
+ scope: "global",
127
+ template: "",
42
128
  },
43
129
  ],
44
130
  },
45
131
  ],
132
+ state: {
133
+ global: {
134
+ examples: [],
135
+ initialValue: '"{\\n \\"id\\": null,\\n \\"code\\": null,\\n \\"slug\\": null,\\n \\"name\\": null,\\n \\"icon\\": null,\\n \\"description\\": null,\\n \\"lastModified\\": null,\\n \\"type\\": \\"INDIVIDUAL\\",\\n \\"contributors\\": [],\\n \\"status\\": null,\\n \\"skils\\": [],\\n \\"scopes\\": [],\\n \\"links\\": []\\n}"',
136
+ schema: "type BuilderProfileState {\n id: PHID\n code: String\n slug: String\n name: String\n icon: URL\n description: String\n lastModified: DateTime\n type: teamType!\n contributors: [PHID!]!\n status: BuilderStatus\n skils: [BuilderSkill!]!\n scopes: [BuilderScope!]!\n links: [BuilderLink!]!\n}\n\nenum teamType {\n INDIVIDUAL\n TEAM\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",
137
+ },
138
+ local: {
139
+ examples: [],
140
+ initialValue: '""',
141
+ schema: "",
142
+ },
143
+ },
144
+ version: 1,
46
145
  },
47
146
  ],
48
147
  };