@powerhousedao/builder-profile 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/builder-profile/actions.d.ts +22 -0
- package/dist/document-models/builder-profile/actions.d.ts.map +1 -0
- package/dist/document-models/builder-profile/actions.js +4 -0
- package/dist/document-models/builder-profile/gen/actions.d.ts +3 -3
- package/dist/document-models/builder-profile/gen/actions.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/actions.js +1 -1
- package/dist/document-models/builder-profile/gen/builders/actions.d.ts +44 -0
- package/dist/document-models/builder-profile/gen/builders/actions.d.ts.map +1 -0
- package/dist/document-models/builder-profile/gen/builders/actions.js +1 -0
- package/dist/document-models/builder-profile/gen/builders/creators.d.ts +13 -0
- package/dist/document-models/builder-profile/gen/builders/creators.d.ts.map +1 -0
- package/dist/document-models/builder-profile/gen/builders/creators.js +12 -0
- package/dist/document-models/builder-profile/gen/builders/error.d.ts.map +1 -0
- package/dist/document-models/builder-profile/gen/builders/operations.d.ts +16 -0
- package/dist/document-models/builder-profile/gen/builders/operations.d.ts.map +1 -0
- package/dist/document-models/builder-profile/gen/builders/operations.js +3 -0
- package/dist/document-models/builder-profile/gen/creators.d.ts +2 -1
- package/dist/document-models/builder-profile/gen/creators.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/creators.js +2 -1
- package/dist/document-models/builder-profile/gen/document-model.d.ts +2 -2
- package/dist/document-models/builder-profile/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/document-model.js +107 -8
- package/dist/document-models/builder-profile/gen/document-schema.d.ts +370 -0
- package/dist/document-models/builder-profile/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/builder-profile/gen/document-schema.js +33 -0
- package/dist/document-models/builder-profile/gen/document-type.d.ts +2 -0
- package/dist/document-models/builder-profile/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/builder-profile/gen/document-type.js +1 -0
- package/dist/document-models/builder-profile/gen/index.d.ts +7 -3
- package/dist/document-models/builder-profile/gen/index.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/index.js +7 -2
- package/dist/document-models/builder-profile/gen/ph-factories.d.ts +6 -10
- package/dist/document-models/builder-profile/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/ph-factories.js +9 -4
- package/dist/document-models/builder-profile/gen/reducer.d.ts +1 -3
- package/dist/document-models/builder-profile/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/reducer.js +42 -9
- package/dist/document-models/builder-profile/gen/schema/index.d.ts +1 -1
- package/dist/document-models/builder-profile/gen/schema/index.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/index.js +1 -1
- package/dist/document-models/builder-profile/gen/schema/types.d.ts +55 -0
- package/dist/document-models/builder-profile/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.d.ts +19 -1
- package/dist/document-models/builder-profile/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/schema/zod.js +126 -0
- package/dist/document-models/builder-profile/gen/types.d.ts +9 -7
- package/dist/document-models/builder-profile/gen/types.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/types.js +1 -1
- package/dist/document-models/builder-profile/gen/utils.d.ts +13 -20
- package/dist/document-models/builder-profile/gen/utils.d.ts.map +1 -1
- package/dist/document-models/builder-profile/gen/utils.js +54 -37
- package/dist/document-models/builder-profile/hooks.d.ts +11 -0
- package/dist/document-models/builder-profile/hooks.d.ts.map +1 -0
- package/dist/document-models/builder-profile/hooks.js +26 -0
- package/dist/document-models/builder-profile/index.d.ts +5 -20
- package/dist/document-models/builder-profile/index.d.ts.map +1 -1
- package/dist/document-models/builder-profile/index.js +5 -17
- package/dist/document-models/builder-profile/module.d.ts +5 -0
- package/dist/document-models/builder-profile/module.d.ts.map +1 -0
- package/dist/document-models/builder-profile/module.js +10 -0
- package/dist/document-models/builder-profile/src/index.d.ts +2 -0
- package/dist/document-models/builder-profile/src/index.d.ts.map +1 -0
- package/dist/document-models/builder-profile/src/index.js +1 -0
- package/dist/document-models/builder-profile/src/reducers/builders.d.ts +3 -0
- package/dist/document-models/builder-profile/src/reducers/builders.d.ts.map +1 -0
- package/dist/document-models/builder-profile/src/reducers/builders.js +108 -0
- package/dist/document-models/builder-profile/src/tests/builders.test.d.ts +6 -0
- package/dist/document-models/builder-profile/src/tests/builders.test.d.ts.map +1 -0
- package/dist/document-models/builder-profile/src/tests/builders.test.js +19 -0
- package/dist/document-models/builder-profile/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/builder-profile/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/builder-profile/src/tests/document-model.test.js +91 -5
- package/dist/document-models/builder-profile/utils.d.ts +14 -0
- package/dist/document-models/builder-profile/utils.d.ts.map +1 -0
- package/dist/document-models/builder-profile/utils.js +7 -0
- package/dist/document-models/document-models.d.ts +3 -0
- package/dist/document-models/document-models.d.ts.map +1 -0
- package/dist/document-models/document-models.js +4 -0
- package/dist/document-models/index.d.ts +1 -2
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +1 -1
- package/dist/editors/builder-profile/components/ContributorsSection.d.ts +8 -0
- package/dist/editors/builder-profile/components/ContributorsSection.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/ContributorsSection.js +177 -0
- package/dist/editors/builder-profile/components/ImageUrlInput.d.ts +9 -0
- package/dist/editors/builder-profile/components/ImageUrlInput.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/ImageUrlInput.js +57 -0
- package/dist/editors/builder-profile/components/LinksSection.d.ts +18 -0
- package/dist/editors/builder-profile/components/LinksSection.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/LinksSection.js +74 -0
- package/dist/editors/builder-profile/components/ProfilePreview.d.ts +7 -0
- package/dist/editors/builder-profile/components/ProfilePreview.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/ProfilePreview.js +55 -0
- package/dist/editors/builder-profile/components/ScopesSection.d.ts +9 -0
- package/dist/editors/builder-profile/components/ScopesSection.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/ScopesSection.js +58 -0
- package/dist/editors/builder-profile/components/SkillsSection.d.ts +9 -0
- package/dist/editors/builder-profile/components/SkillsSection.d.ts.map +1 -0
- package/dist/editors/builder-profile/components/SkillsSection.js +66 -0
- package/dist/editors/builder-profile/editor.d.ts +0 -2
- package/dist/editors/builder-profile/editor.d.ts.map +1 -1
- package/dist/editors/builder-profile/editor.js +216 -97
- package/dist/editors/builder-profile/module.d.ts +4 -0
- package/dist/editors/builder-profile/module.d.ts.map +1 -0
- package/dist/editors/builder-profile/module.js +10 -0
- package/dist/editors/editors.d.ts +3 -0
- package/dist/editors/editors.d.ts.map +1 -0
- package/dist/editors/editors.js +2 -0
- package/dist/editors/index.d.ts +1 -2
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/powerhouse.manifest.json +5 -13
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/style.css +642 -4847
- package/dist/subgraphs/builder-profile/index.d.ts +2 -2
- package/dist/subgraphs/builder-profile/index.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/index.js +2 -2
- package/dist/subgraphs/builder-profile/resolvers.d.ts +2 -2
- package/dist/subgraphs/builder-profile/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/resolvers.js +112 -4
- package/dist/subgraphs/builder-profile/schema.d.ts.map +1 -1
- package/dist/subgraphs/builder-profile/schema.js +119 -13
- package/dist/subgraphs/index.d.ts +0 -1
- package/dist/subgraphs/index.d.ts.map +1 -1
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/vite.config.js +13 -0
- package/package.json +56 -42
- package/dist/document-models/builder-profile/gen/builder/actions.d.ts +0 -8
- package/dist/document-models/builder-profile/gen/builder/actions.d.ts.map +0 -1
- package/dist/document-models/builder-profile/gen/builder/actions.js +0 -1
- package/dist/document-models/builder-profile/gen/builder/creators.d.ts +0 -4
- package/dist/document-models/builder-profile/gen/builder/creators.d.ts.map +0 -1
- package/dist/document-models/builder-profile/gen/builder/creators.js +0 -3
- package/dist/document-models/builder-profile/gen/builder/error.d.ts.map +0 -1
- package/dist/document-models/builder-profile/gen/builder/object.d.ts +0 -7
- package/dist/document-models/builder-profile/gen/builder/object.d.ts.map +0 -1
- package/dist/document-models/builder-profile/gen/builder/object.js +0 -7
- package/dist/document-models/builder-profile/gen/builder/operations.d.ts +0 -7
- package/dist/document-models/builder-profile/gen/builder/operations.d.ts.map +0 -1
- package/dist/document-models/builder-profile/gen/builder/operations.js +0 -1
- package/dist/document-models/builder-profile/gen/object.d.ts +0 -15
- package/dist/document-models/builder-profile/gen/object.d.ts.map +0 -1
- package/dist/document-models/builder-profile/gen/object.js +0 -25
- package/dist/document-models/builder-profile/src/reducers/builder.d.ts +0 -3
- package/dist/document-models/builder-profile/src/reducers/builder.d.ts.map +0 -1
- package/dist/document-models/builder-profile/src/reducers/builder.js +0 -9
- package/dist/document-models/builder-profile/src/tests/builder.test.d.ts +0 -2
- package/dist/document-models/builder-profile/src/tests/builder.test.d.ts.map +0 -1
- package/dist/document-models/builder-profile/src/tests/builder.test.js +0 -116
- package/dist/editors/builder-profile/index.d.ts +0 -3
- package/dist/editors/builder-profile/index.d.ts.map +0 -1
- package/dist/editors/builder-profile/index.js +0 -11
- package/dist/editors/hooks/useBuilderProfileDocument.d.ts +0 -4
- package/dist/editors/hooks/useBuilderProfileDocument.d.ts.map +0 -1
- package/dist/editors/hooks/useBuilderProfileDocument.js +0 -8
- /package/dist/document-models/builder-profile/gen/{builder → builders}/error.d.ts +0 -0
- /package/dist/document-models/builder-profile/gen/{builder → builders}/error.js +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Actions for the BuilderProfile document model */
|
|
2
|
+
export declare const actions: {
|
|
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;
|
|
13
|
+
setName: (name: string) => import("document-model").SetNameAction;
|
|
14
|
+
undo: (skip?: number, scope?: string) => import("document-model").UndoAction;
|
|
15
|
+
redo: (count?: number, scope?: string) => import("document-model").RedoAction;
|
|
16
|
+
prune: (start?: number, end?: number, scope?: string) => import("document-model").SchemaPruneAction;
|
|
17
|
+
loadState: <TState extends import("document-model").PHBaseState = import("document-model").PHBaseState>(state: TState & {
|
|
18
|
+
name: string;
|
|
19
|
+
}, operations: number) => import("document-model").LoadStateAction;
|
|
20
|
+
noop: (scope?: string) => import("document-model").NOOPAction;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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
|
-
import type {
|
|
2
|
-
export * from "./
|
|
3
|
-
export type BuilderProfileAction =
|
|
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,
|
|
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 "./
|
|
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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,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 @@
|
|
|
1
|
+
import {} from "document-model";
|
|
@@ -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,WA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AAC;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-profile/gen/creators.ts"],"names":[],"mappings":"AAAA,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 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./builders/creators.js";
|
|
2
|
+
export * as buildersActions from "./builders/creators.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const documentModel:
|
|
1
|
+
import type { DocumentModelGlobalState } from "document-model";
|
|
2
|
+
export declare const documentModel: DocumentModelGlobalState;
|
|
3
3
|
//# sourceMappingURL=document-model.d.ts.map
|
|
@@ -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,
|
|
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,10 +1,10 @@
|
|
|
1
1
|
export const documentModel = {
|
|
2
2
|
author: {
|
|
3
3
|
name: "Powerhouse",
|
|
4
|
-
website: "https://powerhouse.inc
|
|
4
|
+
website: "https://powerhouse.inc",
|
|
5
5
|
},
|
|
6
6
|
description: "A builder profile document",
|
|
7
|
-
extension: "
|
|
7
|
+
extension: "",
|
|
8
8
|
id: "powerhouse/builder-profile",
|
|
9
9
|
name: "Builder Profile",
|
|
10
10
|
specifications: [
|
|
@@ -13,17 +13,116 @@ export const documentModel = {
|
|
|
13
13
|
modules: [
|
|
14
14
|
{
|
|
15
15
|
description: "",
|
|
16
|
-
id: "
|
|
17
|
-
name: "
|
|
16
|
+
id: "9ef097c0-92df-473a-95c6-ae9b6f69e7f7",
|
|
17
|
+
name: "builders",
|
|
18
18
|
operations: [
|
|
19
19
|
{
|
|
20
20
|
description: "",
|
|
21
21
|
errors: [],
|
|
22
22
|
examples: [],
|
|
23
|
-
id: "
|
|
23
|
+
id: "a729a16c-d961-4df6-91f1-fc114fd4ca35",
|
|
24
24
|
name: "UPDATE_PROFILE",
|
|
25
25
|
reducer: "",
|
|
26
|
-
schema: "input UpdateProfileInput {\n id: PHID\n slug: String\n name: String\n icon: URL\n description: String\n}",
|
|
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
|
+
{
|
|
31
|
+
description: "",
|
|
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",
|
|
39
|
+
template: "",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
description: "",
|
|
43
|
+
errors: [],
|
|
44
|
+
examples: [],
|
|
45
|
+
id: "b04c49f3-b8e8-4e5e-bee1-e74d4fc611e0",
|
|
46
|
+
name: "REMOVE_SKILL",
|
|
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: "",
|
|
65
|
+
errors: [],
|
|
66
|
+
examples: [],
|
|
67
|
+
id: "ff1c8e28-1725-4753-bdf0-f64eca52516a",
|
|
68
|
+
name: "REMOVE_SCOPE",
|
|
69
|
+
reducer: "",
|
|
70
|
+
schema: "input RemoveScopeInput {\n scope: BuilderScopeInput\n}",
|
|
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}",
|
|
27
126
|
scope: "global",
|
|
28
127
|
template: "",
|
|
29
128
|
},
|
|
@@ -33,8 +132,8 @@ export const documentModel = {
|
|
|
33
132
|
state: {
|
|
34
133
|
global: {
|
|
35
134
|
examples: [],
|
|
36
|
-
initialValue: '"{\\n \\"id\\": null,\\n \\"slug\\": null,\\n \\"name\\": null,\\n \\"icon\\": null,\\n \\"description\\": null\\n}"',
|
|
37
|
-
schema: "type BuilderProfileState {\n id: PHID\n slug: String\n name: String\n icon: URL\n description: String\n}",
|
|
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 \\"skilss\\": [],\\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 skilss: [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",
|
|
38
137
|
},
|
|
39
138
|
local: {
|
|
40
139
|
examples: [],
|