@powerhousedao/network-admin 0.0.43 → 0.0.44

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 (56) hide show
  1. package/dist/document-models/network-profile/src/reducers/network-profile-management.js +1 -1
  2. package/dist/document-models/network-profile/src/tests/document-model.test.js +1 -1
  3. package/dist/document-models/network-profile/src/tests/network-profile-management.test.js +1 -1
  4. package/dist/document-models/payment-terms/src/tests/clauses.test.js +1 -1
  5. package/dist/document-models/payment-terms/src/tests/document-model.test.js +1 -1
  6. package/dist/document-models/payment-terms/src/tests/milestones.test.js +1 -1
  7. package/dist/document-models/payment-terms/src/tests/terms.test.js +1 -1
  8. package/dist/document-models/request-for-proposals/gen/ph-factories.js +2 -2
  9. package/dist/document-models/request-for-proposals/gen/utils.js +2 -2
  10. package/dist/document-models/request-for-proposals/src/tests/contex-document.test.js +1 -1
  11. package/dist/document-models/request-for-proposals/src/tests/document-model.test.js +1 -1
  12. package/dist/document-models/request-for-proposals/src/tests/proposals.test.js +1 -1
  13. package/dist/document-models/request-for-proposals/src/tests/rfp-state.test.js +1 -1
  14. package/dist/document-models/workstream/gen/schema/zod.js +1 -1
  15. package/dist/document-models/workstream/src/tests/document-model.test.js +1 -1
  16. package/dist/document-models/workstream/src/tests/proposals.test.js +1 -1
  17. package/dist/document-models/workstream/src/tests/workstream.test.js +3 -1
  18. package/dist/editors/network-admin/components/DriveExplorer.js +1 -1
  19. package/dist/powerhouse.manifest.json +1 -9
  20. package/dist/processors/factory.d.ts +1 -1
  21. package/dist/processors/factory.d.ts.map +1 -1
  22. package/dist/processors/factory.js +1 -1
  23. package/dist/processors/index.d.ts +1 -5
  24. package/dist/processors/index.d.ts.map +1 -1
  25. package/dist/processors/index.js +1 -5
  26. package/dist/processors/workstreams/index.d.ts +2 -2
  27. package/dist/processors/workstreams/index.d.ts.map +1 -1
  28. package/dist/processors/workstreams/index.js +1 -17
  29. package/dist/style.css +4 -1343
  30. package/dist/subgraphs/index.d.ts +0 -1
  31. package/dist/subgraphs/index.d.ts.map +1 -1
  32. package/dist/subgraphs/index.js +0 -1
  33. package/dist/subgraphs/network-profile/resolvers.js +1 -1
  34. package/dist/subgraphs/networks/resolvers.d.ts +2 -2
  35. package/dist/subgraphs/networks/resolvers.d.ts.map +1 -1
  36. package/dist/subgraphs/payment-terms/index.d.ts.map +1 -1
  37. package/dist/subgraphs/payment-terms/resolvers.d.ts +2 -2
  38. package/dist/subgraphs/payment-terms/resolvers.d.ts.map +1 -1
  39. package/dist/subgraphs/payment-terms/resolvers.js +6 -19
  40. package/dist/subgraphs/payment-terms/schema.d.ts.map +1 -1
  41. package/dist/subgraphs/payment-terms/schema.js +11 -136
  42. package/dist/subgraphs/request-for-proposals/resolvers.d.ts +2 -2
  43. package/dist/subgraphs/request-for-proposals/resolvers.d.ts.map +1 -1
  44. package/dist/subgraphs/request-for-proposals/resolvers.js +4 -5
  45. package/dist/subgraphs/request-for-proposals/schema.d.ts.map +1 -1
  46. package/dist/subgraphs/request-for-proposals/schema.js +10 -101
  47. package/dist/subgraphs/workstream/resolvers.d.ts +2 -2
  48. package/dist/subgraphs/workstream/resolvers.d.ts.map +1 -1
  49. package/dist/subgraphs/workstream/resolvers.js +4 -5
  50. package/dist/subgraphs/workstream/schema.d.ts.map +1 -1
  51. package/dist/subgraphs/workstream/schema.js +12 -72
  52. package/dist/vite.config.js +3 -1
  53. package/package.json +50 -60
  54. package/dist/scripts/sow-mirror/mirror_sow_state.d.ts +0 -3
  55. package/dist/scripts/sow-mirror/mirror_sow_state.d.ts.map +0 -1
  56. package/dist/scripts/sow-mirror/mirror_sow_state.js +0 -440
@@ -9,7 +9,7 @@ export const networkProfileNetworkProfileManagementOperations = {
9
9
  state.logoBig = action.input.logoBig || "";
10
10
  },
11
11
  setWebsiteOperation(state, action) {
12
- state.website = action.input.website || null;
12
+ state.website = action.input.website || "";
13
13
  },
14
14
  setDescriptionOperation(state, action) {
15
15
  state.description = action.input.description || "";
@@ -7,7 +7,7 @@
7
7
  * - change it by adding new tests or modifying the existing ones
8
8
  */
9
9
  import { describe, it, expect } from "vitest";
10
- import { utils, initialGlobalState, initialLocalState, networkProfileDocumentType, isNetworkProfileDocument, assertIsNetworkProfileDocument, isNetworkProfileState, assertIsNetworkProfileState, } from "../../gen/index.js";
10
+ import { utils, initialGlobalState, initialLocalState, networkProfileDocumentType, isNetworkProfileDocument, assertIsNetworkProfileDocument, isNetworkProfileState, assertIsNetworkProfileState, } from "@powerhousedao/network-admin/document-models/network-profile";
11
11
  import { ZodError } from "zod";
12
12
  describe("NetworkProfile Document Model", () => {
13
13
  it("should create a new NetworkProfile document", () => {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isNetworkProfileDocument, setIcon, SetIconInputSchema, setLogo, SetLogoInputSchema, setLogoBig, SetLogoBigInputSchema, setWebsite, SetWebsiteInputSchema, setDescription, SetDescriptionInputSchema, setCategory, SetCategoryInputSchema, setX, SetXInputSchema, setGithub, SetGithubInputSchema, setDiscord, SetDiscordInputSchema, setYoutube, SetYoutubeInputSchema, setProfileName, SetProfileNameInputSchema, } from "../../gen/index.js";
7
+ import { reducer, utils, isNetworkProfileDocument, setIcon, SetIconInputSchema, setLogo, SetLogoInputSchema, setLogoBig, SetLogoBigInputSchema, setWebsite, SetWebsiteInputSchema, setDescription, SetDescriptionInputSchema, setCategory, SetCategoryInputSchema, setX, SetXInputSchema, setGithub, SetGithubInputSchema, setDiscord, SetDiscordInputSchema, setYoutube, SetYoutubeInputSchema, setProfileName, SetProfileNameInputSchema, } from "@powerhousedao/network-admin/document-models/network-profile";
8
8
  describe("NetworkProfileManagement Operations", () => {
9
9
  it("should handle setIcon operation", () => {
10
10
  const document = utils.createDocument();
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isPaymentTermsDocument, addBonusClause, AddBonusClauseInputSchema, updateBonusClause, UpdateBonusClauseInputSchema, deleteBonusClause, DeleteBonusClauseInputSchema, addPenaltyClause, AddPenaltyClauseInputSchema, updatePenaltyClause, UpdatePenaltyClauseInputSchema, deletePenaltyClause, DeletePenaltyClauseInputSchema, } from "../../gen/index.js";
7
+ import { reducer, utils, isPaymentTermsDocument, addBonusClause, AddBonusClauseInputSchema, updateBonusClause, UpdateBonusClauseInputSchema, deleteBonusClause, DeleteBonusClauseInputSchema, addPenaltyClause, AddPenaltyClauseInputSchema, updatePenaltyClause, UpdatePenaltyClauseInputSchema, deletePenaltyClause, DeletePenaltyClauseInputSchema, } from "@powerhousedao/network-admin/document-models/payment-terms";
8
8
  describe("Clauses Operations", () => {
9
9
  it("should handle addBonusClause operation", () => {
10
10
  const document = utils.createDocument();
@@ -7,7 +7,7 @@
7
7
  * - change it by adding new tests or modifying the existing ones
8
8
  */
9
9
  import { describe, it, expect } from "vitest";
10
- import { utils, initialGlobalState, initialLocalState, paymentTermsDocumentType, isPaymentTermsDocument, assertIsPaymentTermsDocument, isPaymentTermsState, assertIsPaymentTermsState, } from "../../gen/index.js";
10
+ import { utils, initialGlobalState, initialLocalState, paymentTermsDocumentType, isPaymentTermsDocument, assertIsPaymentTermsDocument, isPaymentTermsState, assertIsPaymentTermsState, } from "@powerhousedao/network-admin/document-models/payment-terms";
11
11
  import { ZodError } from "zod";
12
12
  describe("PaymentTerms Document Model", () => {
13
13
  it("should create a new PaymentTerms document", () => {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isPaymentTermsDocument, addMilestone, AddMilestoneInputSchema, updateMilestone, UpdateMilestoneInputSchema, updateMilestoneStatus, UpdateMilestoneStatusInputSchema, deleteMilestone, DeleteMilestoneInputSchema, reorderMilestones, ReorderMilestonesInputSchema, } from "../../gen/index.js";
7
+ import { reducer, utils, isPaymentTermsDocument, addMilestone, AddMilestoneInputSchema, updateMilestone, UpdateMilestoneInputSchema, updateMilestoneStatus, UpdateMilestoneStatusInputSchema, deleteMilestone, DeleteMilestoneInputSchema, reorderMilestones, ReorderMilestonesInputSchema, } from "@powerhousedao/network-admin/document-models/payment-terms";
8
8
  describe("Milestones Operations", () => {
9
9
  it("should handle addMilestone operation", () => {
10
10
  const document = utils.createDocument();
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isPaymentTermsDocument, setBasicTerms, SetBasicTermsInputSchema, updateStatus, UpdateStatusInputSchema, setTimeAndMaterials, SetTimeAndMaterialsInputSchema, setEscrowDetails, SetEscrowDetailsInputSchema, setEvaluationTerms, SetEvaluationTermsInputSchema, } from "../../gen/index.js";
7
+ import { reducer, utils, isPaymentTermsDocument, setBasicTerms, SetBasicTermsInputSchema, updateStatus, UpdateStatusInputSchema, setTimeAndMaterials, SetTimeAndMaterialsInputSchema, setEscrowDetails, SetEscrowDetailsInputSchema, setEvaluationTerms, SetEvaluationTermsInputSchema, } from "@powerhousedao/network-admin/document-models/payment-terms";
8
8
  describe("Terms Operations", () => {
9
9
  it("should handle setBasicTerms operation", () => {
10
10
  const document = utils.createDocument();
@@ -3,10 +3,10 @@ import { createDocument } from "./utils.js";
3
3
  export function defaultGlobalState() {
4
4
  return {
5
5
  issuer: "placeholder-id",
6
- code: "",
7
6
  title: "",
8
- summary: "",
9
7
  briefing: "",
8
+ code: "",
9
+ summary: "",
10
10
  rfpCommenter: [],
11
11
  eligibilityCriteria: "",
12
12
  evaluationCriteria: "",
@@ -4,10 +4,10 @@ import { requestForProposalsDocumentType } from "./document-type.js";
4
4
  import { isRequestForProposalsDocument, assertIsRequestForProposalsDocument, isRequestForProposalsState, assertIsRequestForProposalsState, } from "./document-schema.js";
5
5
  export const initialGlobalState = {
6
6
  issuer: "placeholder-id",
7
- code: "",
8
7
  title: "",
9
- summary: "",
10
8
  briefing: "",
9
+ code: "",
10
+ summary: "",
11
11
  rfpCommenter: [],
12
12
  eligibilityCriteria: "",
13
13
  evaluationCriteria: "",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isRequestForProposalsDocument, addContextDocument, AddContextDocumentInputSchema, removeContextDocument, RemoveContextDocumentInputSchema, } from "../../index.js";
7
+ import { reducer, utils, isRequestForProposalsDocument, addContextDocument, AddContextDocumentInputSchema, removeContextDocument, RemoveContextDocumentInputSchema, } from "@powerhousedao/network-admin/document-models/request-for-proposals";
8
8
  describe("ContexDocument Operations", () => {
9
9
  it("should handle addContextDocument operation", () => {
10
10
  const document = utils.createDocument();
@@ -7,7 +7,7 @@
7
7
  * - change it by adding new tests or modifying the existing ones
8
8
  */
9
9
  import { describe, it, expect } from "vitest";
10
- import { utils, initialGlobalState, initialLocalState, requestForProposalsDocumentType, isRequestForProposalsDocument, assertIsRequestForProposalsDocument, isRequestForProposalsState, assertIsRequestForProposalsState, } from "../../index.js";
10
+ import { utils, initialGlobalState, initialLocalState, requestForProposalsDocumentType, isRequestForProposalsDocument, assertIsRequestForProposalsDocument, isRequestForProposalsState, assertIsRequestForProposalsState, } from "@powerhousedao/network-admin/document-models/request-for-proposals";
11
11
  import { ZodError } from "zod";
12
12
  describe("RequestForProposals Document Model", () => {
13
13
  it("should create a new RequestForProposals document", () => {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isRequestForProposalsDocument, addProposal, AddProposalInputSchema, changeProposalStatus, ChangeProposalStatusInputSchema, removeProposal, RemoveProposalInputSchema, } from "../../index.js";
7
+ import { reducer, utils, isRequestForProposalsDocument, addProposal, AddProposalInputSchema, changeProposalStatus, ChangeProposalStatusInputSchema, removeProposal, RemoveProposalInputSchema, } from "@powerhousedao/network-admin/document-models/request-for-proposals";
8
8
  describe("Proposals Operations", () => {
9
9
  it("should handle addProposal operation", () => {
10
10
  const document = utils.createDocument();
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isRequestForProposalsDocument, editRfp, EditRfpInputSchema, } from "../../index.js";
7
+ import { reducer, utils, isRequestForProposalsDocument, editRfp, EditRfpInputSchema, } from "@powerhousedao/network-admin/document-models/request-for-proposals";
8
8
  describe("RfpState Operations", () => {
9
9
  it("should handle editRfp operation", () => {
10
10
  const document = utils.createDocument();
@@ -71,7 +71,7 @@ export function EditAlternativeProposalInputSchema() {
71
71
  export function EditClientInfoInputSchema() {
72
72
  return z.object({
73
73
  clientId: z.string(),
74
- icon: z.string().nullish(),
74
+ icon: z.string().url().nullish(),
75
75
  name: z.string().nullish(),
76
76
  });
77
77
  }
@@ -7,7 +7,7 @@
7
7
  * - change it by adding new tests or modifying the existing ones
8
8
  */
9
9
  import { describe, it, expect } from "vitest";
10
- import { utils, initialGlobalState, initialLocalState, workstreamDocumentType, isWorkstreamDocument, assertIsWorkstreamDocument, isWorkstreamState, assertIsWorkstreamState, } from "../../index.js";
10
+ import { utils, initialGlobalState, initialLocalState, workstreamDocumentType, isWorkstreamDocument, assertIsWorkstreamDocument, isWorkstreamState, assertIsWorkstreamState, } from "@powerhousedao/network-admin/document-models/workstream";
11
11
  import { ZodError } from "zod";
12
12
  describe("Workstream Document Model", () => {
13
13
  it("should create a new Workstream document", () => {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isWorkstreamDocument, editInitialProposal, EditInitialProposalInputSchema, addAlternativeProposal, AddAlternativeProposalInputSchema, editAlternativeProposal, EditAlternativeProposalInputSchema, removeAlternativeProposal, RemoveAlternativeProposalInputSchema, } from "../../index.js";
7
+ import { reducer, utils, isWorkstreamDocument, editInitialProposal, EditInitialProposalInputSchema, addAlternativeProposal, AddAlternativeProposalInputSchema, editAlternativeProposal, EditAlternativeProposalInputSchema, removeAlternativeProposal, RemoveAlternativeProposalInputSchema, } from "@powerhousedao/network-admin/document-models/workstream";
8
8
  describe("Proposals Operations", () => {
9
9
  it("should handle editInitialProposal operation", () => {
10
10
  const document = utils.createDocument();
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { describe, it, expect } from "vitest";
6
6
  import { generateMock } from "@powerhousedao/codegen";
7
- import { reducer, utils, isWorkstreamDocument, editWorkstream, EditWorkstreamInputSchema, editClientInfo, EditClientInfoInputSchema, setRequestForProposal, SetRequestForProposalInputSchema, addPaymentRequest, AddPaymentRequestInputSchema, removePaymentRequest, RemovePaymentRequestInputSchema, } from "../../index.js";
7
+ import { reducer, utils, isWorkstreamDocument, editWorkstream, EditWorkstreamInputSchema, editClientInfo, EditClientInfoInputSchema, setRequestForProposal, SetRequestForProposalInputSchema, addPaymentRequest, AddPaymentRequestInputSchema, removePaymentRequest, RemovePaymentRequestInputSchema, assertIsWorkstreamDocument, } from "@powerhousedao/network-admin/document-models/workstream";
8
8
  describe("Workstream Operations", () => {
9
9
  it("should handle editWorkstream operation", () => {
10
10
  const document = utils.createDocument();
@@ -20,6 +20,8 @@ describe("Workstream Operations", () => {
20
20
  const document = utils.createDocument();
21
21
  const input = generateMock(EditClientInfoInputSchema());
22
22
  const updatedDocument = reducer(document, editClientInfo(input));
23
+ console.log("input.icon", input.icon);
24
+ assertIsWorkstreamDocument(updatedDocument);
23
25
  expect(isWorkstreamDocument(updatedDocument)).toBe(true);
24
26
  expect(updatedDocument.operations.global).toHaveLength(1);
25
27
  expect(updatedDocument.operations.global[0].action.type).toBe("EDIT_CLIENT_INFO");
@@ -252,7 +252,7 @@ export function DriveExplorer({ children }) {
252
252
  const networkProfileDoc = networkAdminDocuments?.find((doc) => doc.header.documentType === "powerhouse/network-profile");
253
253
  switch (nodeType) {
254
254
  case "workstreams":
255
- return (_jsx("div", { className: "w-full h-full p-6 overflow-auto", children: _jsxs("div", { className: "max-w-7xl mx-auto", children: [_jsxs("div", { className: "space-y-6 flex flex-col items-center justify-center mb-10", children: [_jsx("h1", { className: "text-2xl font-bold", children: "Welcome to the Network Admin" }), isNetworkProfileCreated && (_jsxs("div", { className: "bg-white rounded-lg shadow-md border border-gray-300 p-4 max-w-lg mx-auto text-sm", children: [_jsxs("div", { className: "flex items-start justify-between gap-4", children: [networkProfileDoc?.state.global.logo ? (_jsx("img", { src: networkProfileDoc?.state.global.logo, alt: "Network Profile Logo", className: "mb-4 max-w-32 max-h-32 sm:max-w-48 sm:max-h-48 md:max-w-64 md:max-h-64 w-auto h-auto object-contain flex-shrink-0" })) : (_jsx("div", {})), _jsx("div", { className: "flex flex-wrap gap-2 justify-end flex-shrink-0", children: networkProfileDoc?.state.global.category.map((category) => (_jsx("span", { className: `inline-flex items-center justify-center rounded-md w-fit whitespace-nowrap shrink-0 border-2 px-2 py-0 text-sm font-extrabold ${category.toLowerCase() === "oss"
255
+ return (_jsx("div", { className: "w-full h-full p-6 overflow-auto", children: _jsxs("div", { className: "max-w-7xl mx-auto", children: [_jsxs("div", { className: "space-y-6 flex flex-col items-center justify-center mb-10", children: [_jsx("h1", { className: "text-2xl font-bold", children: "Welcome to the Network Admin" }), isNetworkProfileCreated && networkProfileDoc?.state.global.logo && (_jsxs("div", { className: "bg-white rounded-lg shadow-md border border-gray-300 p-4 max-w-lg mx-auto text-sm", children: [_jsxs("div", { className: "flex items-start justify-between gap-4", children: [networkProfileDoc?.state.global.logo ? (_jsx("img", { src: networkProfileDoc?.state.global.logo, alt: "Network Profile Logo", className: "mb-4 max-w-64 max-h-12 w-auto h-auto object-contain flex-shrink-0" })) : (_jsx("div", {})), _jsx("div", { className: "flex flex-wrap gap-2 justify-end flex-shrink-0", children: networkProfileDoc?.state.global.category.map((category) => (_jsx("span", { className: `inline-flex items-center justify-center rounded-md w-fit whitespace-nowrap shrink-0 border-2 px-2 py-0 text-sm font-extrabold ${category.toLowerCase() === "oss"
256
256
  ? "bg-purple-600/30 text-purple-600 border-purple-600/70"
257
257
  : category.toLowerCase() === "defi"
258
258
  ? "bg-blue-600/30 text-blue-600 border-blue-600/70"
@@ -9,14 +9,6 @@
9
9
  "documentModels": [],
10
10
  "editors": [],
11
11
  "apps": [],
12
- "subgraphs": [
13
- {
14
- "id": "powerhouse/network-profile-subgraph",
15
- "name": "Network Profile Subgraph",
16
- "documentTypes": [
17
- "powerhouse/network-profile"
18
- ]
19
- }
20
- ],
12
+ "subgraphs": [],
21
13
  "importScripts": []
22
14
  }
@@ -2,7 +2,7 @@
2
2
  * This file aggregates all processor factories
3
3
  * Auto-generated by codegen - DO NOT EDIT MANUALLY
4
4
  */
5
- import { type ProcessorRecord, type IProcessorHostModule } from "document-drive";
5
+ import { type ProcessorRecord, type IProcessorHostModule } from "document-drive/processors/types";
6
6
  import { type PHDocumentHeader } from "document-model";
7
7
  export declare const processorFactory: (module: IProcessorHostModule) => (driveHeader: PHDocumentHeader) => Promise<ProcessorRecord[]>;
8
8
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../processors/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAE1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKvD,eAAO,MAAM,gBAAgB,GAAI,QAAQ,oBAAoB,MAQ7C,aAAa,gBAAgB,KAAG,OAAO,CAAC,eAAe,EAAE,CAWxE,CAAC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../processors/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAE1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKvD,eAAO,MAAM,gBAAgB,GAAI,QAAQ,oBAAoB,MAQ7C,aAAa,gBAAgB,KAAG,OAAO,CAAC,eAAe,EAAE,CAWxE,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * This file aggregates all processor factories
3
3
  * Auto-generated by codegen - DO NOT EDIT MANUALLY
4
4
  */
5
- import {} from "document-drive";
5
+ import {} from "document-drive/processors/types";
6
6
  import {} from "document-model";
7
7
  // Import processor factories here as they are generated
8
8
  import { workstreamsProcessorFactory } from "./workstreams/factory.js";
@@ -1,9 +1,5 @@
1
- /**
2
- * Processor exports
3
- * This file is auto-generated and updated by codegen
4
- */
5
- export { processorFactory } from "./factory.js";
6
1
  export {};
7
2
  export * as WorkstreamsProcessor from "./workstreams/index.js";
3
+ export { processorFactory } from "./factory.js";
8
4
  export { workstreamsProcessorFactory } from "./workstreams/factory.js";
9
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../processors/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,CAAC;AACV,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../processors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AACV,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,8 +1,4 @@
1
- /**
2
- * Processor exports
3
- * This file is auto-generated and updated by codegen
4
- */
5
- export { processorFactory } from "./factory.js";
6
1
  export {};
7
2
  export * as WorkstreamsProcessor from "./workstreams/index.js";
3
+ export { processorFactory } from "./factory.js";
8
4
  export { workstreamsProcessorFactory } from "./workstreams/factory.js";
@@ -1,6 +1,6 @@
1
1
  import { RelationalDbProcessor } from "document-drive";
2
- import { type InternalTransmitterUpdate, type InternalOperationUpdate } from "document-drive";
3
- import { type DB } from "./schema.js";
2
+ import type { InternalTransmitterUpdate, InternalOperationUpdate } from "document-drive";
3
+ import type { DB } from "./schema.js";
4
4
  export declare class WorkstreamsProcessor extends RelationalDbProcessor<DB> {
5
5
  static getNamespace(driveId: string): string;
6
6
  initAndUpgrade(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../processors/workstreams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9F,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,qBAAa,oBAAqB,SAAQ,qBAAqB,CAAC,EAAE,CAAC;WACjD,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAKtC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,SAAS,CACtB,OAAO,EAAE,yBAAyB,EAAE,GACnC,OAAO,CAAC,IAAI,CAAC;IAwCV,YAAY;IAelB,aAAa,GAAU,QAAQ,yBAAyB,mBA8BvD;IAED,iCAAiC,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBA2C/G;IAED,yBAAyB,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBAwCvG;IAED,gBAAgB,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBAyC9F;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../processors/workstreams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,uBAAuB,EAAG,MAAM,gBAAgB,CAAC;AAG1F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,qBAAa,oBAAqB,SAAQ,qBAAqB,CAAC,EAAE,CAAC;WACjD,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAKtC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,SAAS,CACtB,OAAO,EAAE,yBAAyB,EAAE,GACnC,OAAO,CAAC,IAAI,CAAC;IAyBV,YAAY;IAelB,aAAa,GAAU,QAAQ,yBAAyB,mBA8BvD;IAED,iCAAiC,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBA2C/G;IAED,yBAAyB,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBAwCvG;IAED,gBAAgB,GAAU,QAAQ,yBAAyB,EAAE,WAAW,uBAAuB,mBAyC9F;CACF"}
@@ -1,8 +1,5 @@
1
1
  import { RelationalDbProcessor } from "document-drive";
2
- import {} from "document-drive";
3
2
  import { up } from "./migrations.js";
4
- import {} from "./schema.js";
5
- import {} from "../../document-models/workstream/index.js";
6
3
  export class WorkstreamsProcessor extends RelationalDbProcessor {
7
4
  static getNamespace(driveId) {
8
5
  // Default namespace: `${this.name}_${driveId.replaceAll("-", "_")}`
@@ -29,19 +26,6 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
29
26
  this.updateNetworkInWorkstream(strand, operation);
30
27
  this.updateInitialProposalInWorkstream(strand, operation);
31
28
  }
32
- // await this.relationalDb
33
- // .insertInto("workstreams")
34
- // .values({
35
- // workstream_phid: strand.documentId,
36
- // workstream_slug: strand.documentId.split("-")[1],
37
- // workstream_title: strand.documentId.split("-")[2],
38
- // workstream_status: "RFP_DRAFT",
39
- // sow_phid: strand.documentId.split("-")[3],
40
- // roadmap_oid: strand.documentId.split("-")[4],
41
- // final_milestone_target: new Date(),
42
- // })
43
- // .onConflict((oc) => oc.column("workstream_phid").doNothing())
44
- // .execute();
45
29
  }
46
30
  }
47
31
  }
@@ -77,7 +61,7 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
77
61
  // network_phid: strand.state.client.id,
78
62
  // network_slug: strand.state.client.name.toLowerCase().split(' ').join("-"),
79
63
  workstream_phid: strand.documentId,
80
- workstream_slug: strand.state.title && strand.state.title.toLowerCase().split(' ').join("-"),
64
+ workstream_slug: strand.state.title ? strand.state.title.toLowerCase().split(' ').join("-") : "",
81
65
  workstream_title: strand.state.title,
82
66
  workstream_status: strand.state.status,
83
67
  // sow_phid: strand.state.sow,