@powerhousedao/vetra-builder-package 5.0.2 → 5.2.0-staging.10
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-team/actions.d.ts +28 -0
- package/dist/document-models/builder-team/actions.d.ts.map +1 -0
- package/dist/document-models/builder-team/actions.js +10 -0
- package/dist/document-models/builder-team/builder-team.json +234 -0
- package/dist/document-models/builder-team/gen/actions.d.ts +8 -8
- package/dist/document-models/builder-team/gen/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/actions.js +4 -4
- package/dist/document-models/builder-team/gen/creators.d.ts +8 -4
- package/dist/document-models/builder-team/gen/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/creators.js +8 -4
- package/dist/document-models/builder-team/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/document-model.js +220 -220
- package/dist/document-models/builder-team/gen/document-schema.d.ts +50 -0
- package/dist/document-models/builder-team/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/builder-team/gen/document-schema.js +33 -0
- package/dist/document-models/builder-team/gen/document-type.d.ts +2 -0
- package/dist/document-models/builder-team/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/builder-team/gen/document-type.js +1 -0
- package/dist/document-models/builder-team/gen/index.d.ts +14 -5
- package/dist/document-models/builder-team/gen/index.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/index.js +14 -5
- package/dist/document-models/builder-team/gen/member/actions.d.ts +5 -5
- package/dist/document-models/builder-team/gen/member/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/actions.js +1 -1
- package/dist/document-models/builder-team/gen/member/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/member/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/creators.js +5 -6
- package/dist/document-models/builder-team/gen/member/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/member/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/operations.js +1 -3
- package/dist/document-models/builder-team/gen/packages/actions.d.ts +6 -6
- package/dist/document-models/builder-team/gen/packages/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/actions.js +1 -1
- package/dist/document-models/builder-team/gen/packages/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/packages/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/creators.js +6 -7
- package/dist/document-models/builder-team/gen/packages/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/packages/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/operations.js +1 -3
- package/dist/document-models/builder-team/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/ph-factories.js +16 -14
- package/dist/document-models/builder-team/gen/profile/actions.d.ts +7 -7
- package/dist/document-models/builder-team/gen/profile/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/actions.js +1 -1
- package/dist/document-models/builder-team/gen/profile/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/profile/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/creators.js +7 -8
- package/dist/document-models/builder-team/gen/profile/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/profile/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/operations.js +1 -3
- package/dist/document-models/builder-team/gen/reducer.d.ts +1 -3
- package/dist/document-models/builder-team/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/reducer.js +86 -70
- package/dist/document-models/builder-team/gen/schema/index.d.ts +1 -1
- package/dist/document-models/builder-team/gen/schema/index.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/schema/index.js +1 -1
- package/dist/document-models/builder-team/gen/schema/types.d.ts +13 -1
- package/dist/document-models/builder-team/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/schema/zod.d.ts +3 -3
- package/dist/document-models/builder-team/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/schema/zod.js +22 -22
- package/dist/document-models/builder-team/gen/spaces/actions.d.ts +6 -6
- package/dist/document-models/builder-team/gen/spaces/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/actions.js +1 -1
- package/dist/document-models/builder-team/gen/spaces/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/spaces/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/creators.js +6 -7
- package/dist/document-models/builder-team/gen/spaces/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/spaces/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/operations.js +1 -3
- package/dist/document-models/builder-team/gen/types.d.ts +4 -5
- package/dist/document-models/builder-team/gen/types.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/types.js +1 -2
- package/dist/document-models/builder-team/gen/utils.d.ts +7 -4
- package/dist/document-models/builder-team/gen/utils.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/utils.js +41 -20
- package/dist/document-models/builder-team/hooks.d.ts +11 -0
- package/dist/document-models/builder-team/hooks.d.ts.map +1 -0
- package/dist/document-models/builder-team/hooks.js +26 -0
- package/dist/document-models/builder-team/index.d.ts +5 -45
- package/dist/document-models/builder-team/index.d.ts.map +1 -1
- package/dist/document-models/builder-team/index.js +5 -22
- package/dist/document-models/builder-team/module.d.ts +5 -0
- package/dist/document-models/builder-team/module.d.ts.map +1 -0
- package/dist/document-models/builder-team/module.js +10 -0
- package/dist/document-models/builder-team/src/index.d.ts +2 -0
- package/dist/document-models/builder-team/src/index.d.ts.map +1 -0
- package/dist/document-models/builder-team/src/index.js +1 -0
- package/dist/document-models/builder-team/src/reducers/member.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/member.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/member.js +8 -5
- package/dist/document-models/builder-team/src/reducers/packages.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/packages.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/packages.js +8 -8
- package/dist/document-models/builder-team/src/reducers/profile.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/profile.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/profile.js +6 -6
- package/dist/document-models/builder-team/src/reducers/spaces.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/spaces.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/spaces.js +7 -7
- package/dist/document-models/builder-team/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/builder-team/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/document-model.test.js +92 -6
- package/dist/document-models/builder-team/src/tests/member.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/member.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/member.test.js +15 -20
- package/dist/document-models/builder-team/src/tests/packages.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/packages.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/packages.test.js +25 -20
- package/dist/document-models/builder-team/src/tests/profile.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/profile.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/profile.test.js +23 -24
- package/dist/document-models/builder-team/src/tests/spaces.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/spaces.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/spaces.test.js +25 -20
- package/dist/document-models/builder-team/utils.d.ts +14 -0
- package/dist/document-models/builder-team/utils.d.ts.map +1 -0
- package/dist/document-models/builder-team/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 -2
- package/dist/editors/builder-team-editor/components/EditName.d.ts +3 -0
- package/dist/editors/builder-team-editor/components/EditName.d.ts.map +1 -0
- package/dist/editors/builder-team-editor/components/EditName.js +31 -0
- package/dist/editors/builder-team-editor/components/PackagesTable.d.ts.map +1 -1
- package/dist/editors/builder-team-editor/components/PackagesTable.js +0 -1
- package/dist/editors/builder-team-editor/editor.d.ts +1 -1
- package/dist/editors/builder-team-editor/editor.d.ts.map +1 -1
- package/dist/editors/builder-team-editor/editor.js +2 -4
- package/dist/editors/builder-team-editor/hooks/usePackageHandlers.d.ts +1 -2
- package/dist/editors/builder-team-editor/hooks/usePackageHandlers.d.ts.map +1 -1
- package/dist/editors/builder-team-editor/hooks/usePackageHandlers.js +1 -1
- package/dist/editors/builder-team-editor/module.d.ts +4 -0
- package/dist/editors/builder-team-editor/module.d.ts.map +1 -0
- package/dist/editors/builder-team-editor/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 +4 -0
- package/dist/editors/index.d.ts +1 -2
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/processors/vetra-builder-relational-db-processor/builder-team-handlers.d.ts +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/builder-team-handlers.d.ts.map +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/builder-team-handlers.js +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/migrations.d.ts.map +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/migrations.js +0 -3
- package/dist/scripts/add-builder-team-model.d.ts +2 -0
- package/dist/scripts/add-builder-team-model.d.ts.map +1 -0
- package/dist/scripts/add-builder-team-model.js +122 -0
- package/dist/scripts/create-remote-drives.d.ts +17 -0
- package/dist/scripts/create-remote-drives.d.ts.map +1 -0
- package/dist/scripts/create-remote-drives.js +946 -0
- package/dist/scripts/introspect-schema.d.ts +8 -0
- package/dist/scripts/introspect-schema.d.ts.map +1 -0
- package/dist/scripts/introspect-schema.js +216 -0
- package/dist/scripts/upload-to-drive.js +0 -2
- package/dist/style.css +8 -1
- package/dist/subgraphs/vetra-builders/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/vetra-builders/resolvers.js +0 -1
- package/package.json +71 -54
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AddMemberInput, UpdateMemberInfoInput, RemoveMemberInput } from
|
|
1
|
+
import type { Action } from "document-model";
|
|
2
|
+
import type { AddMemberInput, UpdateMemberInfoInput, RemoveMemberInput } from "../types.js";
|
|
3
3
|
export type AddMemberAction = Action & {
|
|
4
|
-
type:
|
|
4
|
+
type: "ADD_MEMBER";
|
|
5
5
|
input: AddMemberInput;
|
|
6
6
|
};
|
|
7
7
|
export type UpdateMemberInfoAction = Action & {
|
|
8
|
-
type:
|
|
8
|
+
type: "UPDATE_MEMBER_INFO";
|
|
9
9
|
input: UpdateMemberInfoInput;
|
|
10
10
|
};
|
|
11
11
|
export type RemoveMemberAction = Action & {
|
|
12
|
-
type:
|
|
12
|
+
type: "REMOVE_MEMBER";
|
|
13
13
|
input: RemoveMemberInput;
|
|
14
14
|
};
|
|
15
15
|
export type BuilderTeamMemberAction = AddMemberAction | UpdateMemberInfoAction | RemoveMemberAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IACrC,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IACxC,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B,eAAe,GACf,sBAAsB,GACtB,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AddMemberInput, UpdateMemberInfoInput, RemoveMemberInput } from "../types.js";
|
|
2
|
+
import type { AddMemberAction, UpdateMemberInfoAction, RemoveMemberAction } from "./actions.js";
|
|
3
3
|
export declare const addMember: (input: AddMemberInput) => AddMemberAction;
|
|
4
4
|
export declare const updateMemberInfo: (input: UpdateMemberInfoInput) => UpdateMemberInfoAction;
|
|
5
5
|
export declare const removeMember: (input: RemoveMemberInput) => RemoveMemberAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/creators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/creators.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,oBAO5C,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,2BAO1D,CAAC;AAEJ,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,uBAOlD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createAction } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const removeMember = (input) => createAction('REMOVE_MEMBER', { ...input }, undefined, z.RemoveMemberInputSchema, 'global');
|
|
1
|
+
import { createAction } from "document-model/core";
|
|
2
|
+
import { AddMemberInputSchema, UpdateMemberInfoInputSchema, RemoveMemberInputSchema, } from "../schema/zod.js";
|
|
3
|
+
export const addMember = (input) => createAction("ADD_MEMBER", { ...input }, undefined, AddMemberInputSchema, "global");
|
|
4
|
+
export const updateMemberInfo = (input) => createAction("UPDATE_MEMBER_INFO", { ...input }, undefined, UpdateMemberInfoInputSchema, "global");
|
|
5
|
+
export const removeMember = (input) => createAction("REMOVE_MEMBER", { ...input }, undefined, RemoveMemberInputSchema, "global");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type SignalDispatch } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { type SignalDispatch } from "document-model";
|
|
2
|
+
import type { AddMemberAction, UpdateMemberInfoAction, RemoveMemberAction } from "./actions.js";
|
|
3
|
+
import type { BuilderTeamState } from "../types.js";
|
|
4
4
|
export interface BuilderTeamMemberOperations {
|
|
5
5
|
addMemberOperation: (state: BuilderTeamState, action: AddMemberAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
updateMemberInfoOperation: (state: BuilderTeamState, action: UpdateMemberInfoAction, dispatch?: SignalDispatch) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/member/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,EAAE,CAClB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,yBAAyB,EAAE,CACzB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { AddPackageInput, UpdatePackageInfoInput, RemovePackageInput, ReorderPackagesInput } from
|
|
1
|
+
import type { Action } from "document-model";
|
|
2
|
+
import type { AddPackageInput, UpdatePackageInfoInput, RemovePackageInput, ReorderPackagesInput } from "../types.js";
|
|
3
3
|
export type AddPackageAction = Action & {
|
|
4
|
-
type:
|
|
4
|
+
type: "ADD_PACKAGE";
|
|
5
5
|
input: AddPackageInput;
|
|
6
6
|
};
|
|
7
7
|
export type UpdatePackageInfoAction = Action & {
|
|
8
|
-
type:
|
|
8
|
+
type: "UPDATE_PACKAGE_INFO";
|
|
9
9
|
input: UpdatePackageInfoInput;
|
|
10
10
|
};
|
|
11
11
|
export type RemovePackageAction = Action & {
|
|
12
|
-
type:
|
|
12
|
+
type: "REMOVE_PACKAGE";
|
|
13
13
|
input: RemovePackageInput;
|
|
14
14
|
};
|
|
15
15
|
export type ReorderPackagesAction = Action & {
|
|
16
|
-
type:
|
|
16
|
+
type: "REORDER_PACKAGES";
|
|
17
17
|
input: ReorderPackagesInput;
|
|
18
18
|
};
|
|
19
19
|
export type BuilderTeamPackagesAction = AddPackageAction | UpdatePackageInfoAction | RemovePackageAction | ReorderPackagesAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IACzC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,gBAAgB,GAChB,uBAAuB,GACvB,mBAAmB,GACnB,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AddPackageInput, UpdatePackageInfoInput, RemovePackageInput, ReorderPackagesInput } from "../types.js";
|
|
2
|
+
import type { AddPackageAction, UpdatePackageInfoAction, RemovePackageAction, ReorderPackagesAction } from "./actions.js";
|
|
3
3
|
export declare const addPackage: (input: AddPackageInput) => AddPackageAction;
|
|
4
4
|
export declare const updatePackageInfo: (input: UpdatePackageInfoInput) => UpdatePackageInfoAction;
|
|
5
5
|
export declare const removePackage: (input: RemovePackageInput) => RemovePackageAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/creators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/creators.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qBAO9C,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4BAO5D,CAAC;AAEJ,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,wBAOpD,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,0BAOxD,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { createAction } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const reorderPackages = (input) => createAction('REORDER_PACKAGES', { ...input }, undefined, z.ReorderPackagesInputSchema, 'global');
|
|
1
|
+
import { createAction } from "document-model/core";
|
|
2
|
+
import { AddPackageInputSchema, UpdatePackageInfoInputSchema, RemovePackageInputSchema, ReorderPackagesInputSchema, } from "../schema/zod.js";
|
|
3
|
+
export const addPackage = (input) => createAction("ADD_PACKAGE", { ...input }, undefined, AddPackageInputSchema, "global");
|
|
4
|
+
export const updatePackageInfo = (input) => createAction("UPDATE_PACKAGE_INFO", { ...input }, undefined, UpdatePackageInfoInputSchema, "global");
|
|
5
|
+
export const removePackage = (input) => createAction("REMOVE_PACKAGE", { ...input }, undefined, RemovePackageInputSchema, "global");
|
|
6
|
+
export const reorderPackages = (input) => createAction("REORDER_PACKAGES", { ...input }, undefined, ReorderPackagesInputSchema, "global");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type SignalDispatch } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { type SignalDispatch } from "document-model";
|
|
2
|
+
import type { AddPackageAction, UpdatePackageInfoAction, RemovePackageAction, ReorderPackagesAction } from "./actions.js";
|
|
3
|
+
import type { BuilderTeamState } from "../types.js";
|
|
4
4
|
export interface BuilderTeamPackagesOperations {
|
|
5
5
|
addPackageOperation: (state: BuilderTeamState, action: AddPackageAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
updatePackageInfoOperation: (state: BuilderTeamState, action: UpdatePackageInfoAction, dispatch?: SignalDispatch) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/packages/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,6BAA6B;IAC5C,mBAAmB,EAAE,CACnB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,0BAA0B,EAAE,CAC1B,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,uBAAuB,EAC/B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,sBAAsB,EAAE,CACtB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,wBAAwB,EAAE,CACxB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ph-factories.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-team/gen/ph-factories.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ph-factories.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-team/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,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAGpB,wBAAgB,kBAAkB,IAAI,sBAAsB,CAgB3D;AAED,wBAAgB,iBAAiB,IAAI,qBAAqB,CAEzD;AAED,wBAAgB,cAAc,IAAI,kBAAkB,CAMnD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,GACtC,sBAAsB,CAKxB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACrC,qBAAqB,CAKvB;AAED,wBAAgB,WAAW,CACzB,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,EAChC,WAAW,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAC7C,UAAU,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAC1C,kBAAkB,CAMpB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,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,sBAAsB,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACxC,CAAC,GACD,mBAAmB,CAYrB"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { createBaseState, defaultBaseState
|
|
1
|
+
import { createBaseState, defaultBaseState } from "document-model/core";
|
|
2
2
|
import { createDocument } from "./utils.js";
|
|
3
3
|
export function defaultGlobalState() {
|
|
4
4
|
return {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
5
|
+
profile: {
|
|
6
|
+
logo: null,
|
|
7
|
+
name: "",
|
|
8
|
+
slug: "",
|
|
9
|
+
description: null,
|
|
10
|
+
socials: {
|
|
11
|
+
xProfile: null,
|
|
12
|
+
github: null,
|
|
13
|
+
website: null,
|
|
14
|
+
},
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
members: [],
|
|
17
|
+
spaces: [],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
export function defaultLocalState() {
|
|
@@ -52,6 +52,8 @@ export function createState(baseState, globalState, localState) {
|
|
|
52
52
|
* document-specific state to be set.
|
|
53
53
|
*/
|
|
54
54
|
export function createBuilderTeamDocument(state) {
|
|
55
|
-
const document = createDocument(state
|
|
55
|
+
const document = createDocument(state
|
|
56
|
+
? createState(createBaseState(state.auth, state.document), state.global, state.local)
|
|
57
|
+
: undefined);
|
|
56
58
|
return document;
|
|
57
59
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { SetLogoInput, SetTeamNameInput, SetSlugInput, SetDescriptionInput, SetSocialsInput } from
|
|
1
|
+
import type { Action } from "document-model";
|
|
2
|
+
import type { SetLogoInput, SetTeamNameInput, SetSlugInput, SetDescriptionInput, SetSocialsInput } from "../types.js";
|
|
3
3
|
export type SetLogoAction = Action & {
|
|
4
|
-
type:
|
|
4
|
+
type: "SET_LOGO";
|
|
5
5
|
input: SetLogoInput;
|
|
6
6
|
};
|
|
7
7
|
export type SetTeamNameAction = Action & {
|
|
8
|
-
type:
|
|
8
|
+
type: "SET_TEAM_NAME";
|
|
9
9
|
input: SetTeamNameInput;
|
|
10
10
|
};
|
|
11
11
|
export type SetSlugAction = Action & {
|
|
12
|
-
type:
|
|
12
|
+
type: "SET_SLUG";
|
|
13
13
|
input: SetSlugInput;
|
|
14
14
|
};
|
|
15
15
|
export type SetDescriptionAction = Action & {
|
|
16
|
-
type:
|
|
16
|
+
type: "SET_DESCRIPTION";
|
|
17
17
|
input: SetDescriptionInput;
|
|
18
18
|
};
|
|
19
19
|
export type SetSocialsAction = Action & {
|
|
20
|
-
type:
|
|
20
|
+
type: "SET_SOCIALS";
|
|
21
21
|
input: SetSocialsInput;
|
|
22
22
|
};
|
|
23
23
|
export type BuilderTeamProfileAction = SetLogoAction | SetTeamNameAction | SetSlugAction | SetDescriptionAction | SetSocialsAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACvC,IAAI,EAAE,eAAe,CAAC;IACtB,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,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAChC,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,oBAAoB,GACpB,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { SetLogoInput, SetTeamNameInput, SetSlugInput, SetDescriptionInput, SetSocialsInput } from "../types.js";
|
|
2
|
+
import type { SetLogoAction, SetTeamNameAction, SetSlugAction, SetDescriptionAction, SetSocialsAction } from "./actions.js";
|
|
3
3
|
export declare const setLogo: (input: SetLogoInput) => SetLogoAction;
|
|
4
4
|
export declare const setTeamName: (input: SetTeamNameInput) => SetTeamNameAction;
|
|
5
5
|
export declare const setSlug: (input: SetSlugInput) => SetSlugAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/creators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/creators.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,kBAOxC,CAAC;AAEJ,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAOhD,CAAC;AAEJ,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,kBAOxC,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC;AAEJ,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qBAO9C,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { createAction } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const setSocials = (input) => createAction('SET_SOCIALS', { ...input }, undefined, z.SetSocialsInputSchema, 'global');
|
|
1
|
+
import { createAction } from "document-model/core";
|
|
2
|
+
import { SetLogoInputSchema, SetTeamNameInputSchema, SetSlugInputSchema, SetDescriptionInputSchema, SetSocialsInputSchema, } from "../schema/zod.js";
|
|
3
|
+
export const setLogo = (input) => createAction("SET_LOGO", { ...input }, undefined, SetLogoInputSchema, "global");
|
|
4
|
+
export const setTeamName = (input) => createAction("SET_TEAM_NAME", { ...input }, undefined, SetTeamNameInputSchema, "global");
|
|
5
|
+
export const setSlug = (input) => createAction("SET_SLUG", { ...input }, undefined, SetSlugInputSchema, "global");
|
|
6
|
+
export const setDescription = (input) => createAction("SET_DESCRIPTION", { ...input }, undefined, SetDescriptionInputSchema, "global");
|
|
7
|
+
export const setSocials = (input) => createAction("SET_SOCIALS", { ...input }, undefined, SetSocialsInputSchema, "global");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type SignalDispatch } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { type SignalDispatch } from "document-model";
|
|
2
|
+
import type { SetLogoAction, SetTeamNameAction, SetSlugAction, SetDescriptionAction, SetSocialsAction } from "./actions.js";
|
|
3
|
+
import type { BuilderTeamState } from "../types.js";
|
|
4
4
|
export interface BuilderTeamProfileOperations {
|
|
5
5
|
setLogoOperation: (state: BuilderTeamState, action: SetLogoAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
setTeamNameOperation: (state: BuilderTeamState, action: SetTeamNameAction, dispatch?: SignalDispatch) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/profile/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,CAChB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,aAAa,EACrB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,oBAAoB,EAAE,CACpB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,gBAAgB,EAAE,CAChB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,aAAa,EACrB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { BuilderTeamPHState } from './types.js';
|
|
3
|
-
export declare const stateReducer: StateReducer<BuilderTeamPHState>;
|
|
1
|
+
import type { BuilderTeamPHState } from "@powerhousedao/vetra-builder-package/document-models/builder-team";
|
|
4
2
|
export declare const reducer: import("document-model").Reducer<BuilderTeamPHState>;
|
|
5
3
|
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-team/gen/reducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/builder-team/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mEAAmE,CAAC;AAwO5G,eAAO,MAAM,OAAO,sDAAkD,CAAC"}
|
|
@@ -1,78 +1,94 @@
|
|
|
1
1
|
import { isDocumentAction, createReducer } from "document-model/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import { builderTeamProfileOperations } from "../src/reducers/profile.js";
|
|
3
|
+
import { builderTeamMemberOperations } from "../src/reducers/member.js";
|
|
4
|
+
import { builderTeamSpacesOperations } from "../src/reducers/spaces.js";
|
|
5
|
+
import { builderTeamPackagesOperations } from "../src/reducers/packages.js";
|
|
6
|
+
import { SetLogoInputSchema, SetTeamNameInputSchema, SetSlugInputSchema, SetDescriptionInputSchema, SetSocialsInputSchema, AddMemberInputSchema, UpdateMemberInfoInputSchema, RemoveMemberInputSchema, AddSpaceInputSchema, UpdateSpaceInfoInputSchema, RemoveSpaceInputSchema, ReorderSpacesInputSchema, AddPackageInputSchema, UpdatePackageInfoInputSchema, RemovePackageInputSchema, ReorderPackagesInputSchema, } from "./schema/zod.js";
|
|
7
|
+
const stateReducer = (state, action, dispatch) => {
|
|
8
8
|
if (isDocumentAction(action)) {
|
|
9
9
|
return state;
|
|
10
10
|
}
|
|
11
11
|
switch (action.type) {
|
|
12
|
-
case "SET_LOGO":
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
break;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
case "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
break;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
case "
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
break;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
case "
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
break;
|
|
12
|
+
case "SET_LOGO": {
|
|
13
|
+
SetLogoInputSchema().parse(action.input);
|
|
14
|
+
builderTeamProfileOperations.setLogoOperation(state[action.scope], action, dispatch);
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
case "SET_TEAM_NAME": {
|
|
18
|
+
SetTeamNameInputSchema().parse(action.input);
|
|
19
|
+
builderTeamProfileOperations.setTeamNameOperation(state[action.scope], action, dispatch);
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
case "SET_SLUG": {
|
|
23
|
+
SetSlugInputSchema().parse(action.input);
|
|
24
|
+
builderTeamProfileOperations.setSlugOperation(state[action.scope], action, dispatch);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
case "SET_DESCRIPTION": {
|
|
28
|
+
SetDescriptionInputSchema().parse(action.input);
|
|
29
|
+
builderTeamProfileOperations.setDescriptionOperation(state[action.scope], action, dispatch);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
case "SET_SOCIALS": {
|
|
33
|
+
SetSocialsInputSchema().parse(action.input);
|
|
34
|
+
builderTeamProfileOperations.setSocialsOperation(state[action.scope], action, dispatch);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
case "ADD_MEMBER": {
|
|
38
|
+
AddMemberInputSchema().parse(action.input);
|
|
39
|
+
builderTeamMemberOperations.addMemberOperation(state[action.scope], action, dispatch);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
case "UPDATE_MEMBER_INFO": {
|
|
43
|
+
UpdateMemberInfoInputSchema().parse(action.input);
|
|
44
|
+
builderTeamMemberOperations.updateMemberInfoOperation(state[action.scope], action, dispatch);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
case "REMOVE_MEMBER": {
|
|
48
|
+
RemoveMemberInputSchema().parse(action.input);
|
|
49
|
+
builderTeamMemberOperations.removeMemberOperation(state[action.scope], action, dispatch);
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
case "ADD_SPACE": {
|
|
53
|
+
AddSpaceInputSchema().parse(action.input);
|
|
54
|
+
builderTeamSpacesOperations.addSpaceOperation(state[action.scope], action, dispatch);
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
case "UPDATE_SPACE_INFO": {
|
|
58
|
+
UpdateSpaceInfoInputSchema().parse(action.input);
|
|
59
|
+
builderTeamSpacesOperations.updateSpaceInfoOperation(state[action.scope], action, dispatch);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case "REMOVE_SPACE": {
|
|
63
|
+
RemoveSpaceInputSchema().parse(action.input);
|
|
64
|
+
builderTeamSpacesOperations.removeSpaceOperation(state[action.scope], action, dispatch);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
case "REORDER_SPACES": {
|
|
68
|
+
ReorderSpacesInputSchema().parse(action.input);
|
|
69
|
+
builderTeamSpacesOperations.reorderSpacesOperation(state[action.scope], action, dispatch);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
case "ADD_PACKAGE": {
|
|
73
|
+
AddPackageInputSchema().parse(action.input);
|
|
74
|
+
builderTeamPackagesOperations.addPackageOperation(state[action.scope], action, dispatch);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case "UPDATE_PACKAGE_INFO": {
|
|
78
|
+
UpdatePackageInfoInputSchema().parse(action.input);
|
|
79
|
+
builderTeamPackagesOperations.updatePackageInfoOperation(state[action.scope], action, dispatch);
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
case "REMOVE_PACKAGE": {
|
|
83
|
+
RemovePackageInputSchema().parse(action.input);
|
|
84
|
+
builderTeamPackagesOperations.removePackageOperation(state[action.scope], action, dispatch);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
case "REORDER_PACKAGES": {
|
|
88
|
+
ReorderPackagesInputSchema().parse(action.input);
|
|
89
|
+
builderTeamPackagesOperations.reorderPackagesOperation(state[action.scope], action, dispatch);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
76
92
|
default:
|
|
77
93
|
return state;
|
|
78
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../document-models/builder-team/gen/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
|
-
export *
|
|
2
|
+
export * from "./zod.js";
|