@powerhousedao/network-admin 0.0.38 → 0.0.39

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 (61) hide show
  1. package/dist/document-models/network-profile/gen/reducer.d.ts +1 -1
  2. package/dist/document-models/network-profile/gen/reducer.d.ts.map +1 -1
  3. package/dist/document-models/request-for-proposals/gen/ph-factories.js +1 -1
  4. package/dist/document-models/request-for-proposals/gen/utils.js +1 -1
  5. package/dist/document-models/workstream/hooks.d.ts +1 -1
  6. package/dist/document-models/workstream/hooks.d.ts.map +1 -1
  7. package/dist/document-models/workstream/module.d.ts +1 -1
  8. package/dist/document-models/workstream/module.d.ts.map +1 -1
  9. package/dist/powerhouse.manifest.json +9 -1
  10. package/dist/subgraphs/index.d.ts +0 -5
  11. package/dist/subgraphs/index.d.ts.map +1 -1
  12. package/dist/subgraphs/index.js +0 -5
  13. package/package.json +15 -15
  14. package/dist/scripts/sow-mirror/mirror_sow_state.d.ts +0 -3
  15. package/dist/scripts/sow-mirror/mirror_sow_state.d.ts.map +0 -1
  16. package/dist/scripts/sow-mirror/mirror_sow_state.js +0 -441
  17. package/dist/subgraphs/networks/index.d.ts +0 -11
  18. package/dist/subgraphs/networks/index.d.ts.map +0 -1
  19. package/dist/subgraphs/networks/index.js +0 -11
  20. package/dist/subgraphs/networks/resolvers.d.ts +0 -3
  21. package/dist/subgraphs/networks/resolvers.d.ts.map +0 -1
  22. package/dist/subgraphs/networks/resolvers.js +0 -42
  23. package/dist/subgraphs/networks/schema.d.ts +0 -3
  24. package/dist/subgraphs/networks/schema.d.ts.map +0 -1
  25. package/dist/subgraphs/networks/schema.js +0 -39
  26. package/dist/subgraphs/payment-terms/index.d.ts +0 -11
  27. package/dist/subgraphs/payment-terms/index.d.ts.map +0 -1
  28. package/dist/subgraphs/payment-terms/index.js +0 -11
  29. package/dist/subgraphs/payment-terms/resolvers.d.ts +0 -3
  30. package/dist/subgraphs/payment-terms/resolvers.d.ts.map +0 -1
  31. package/dist/subgraphs/payment-terms/resolvers.js +0 -264
  32. package/dist/subgraphs/payment-terms/schema.d.ts +0 -3
  33. package/dist/subgraphs/payment-terms/schema.d.ts.map +0 -1
  34. package/dist/subgraphs/payment-terms/schema.js +0 -199
  35. package/dist/subgraphs/request-for-proposals/index.d.ts +0 -11
  36. package/dist/subgraphs/request-for-proposals/index.d.ts.map +0 -1
  37. package/dist/subgraphs/request-for-proposals/index.js +0 -11
  38. package/dist/subgraphs/request-for-proposals/resolvers.d.ts +0 -3
  39. package/dist/subgraphs/request-for-proposals/resolvers.d.ts.map +0 -1
  40. package/dist/subgraphs/request-for-proposals/resolvers.js +0 -144
  41. package/dist/subgraphs/request-for-proposals/schema.d.ts +0 -3
  42. package/dist/subgraphs/request-for-proposals/schema.d.ts.map +0 -1
  43. package/dist/subgraphs/request-for-proposals/schema.js +0 -141
  44. package/dist/subgraphs/workstream/index.d.ts +0 -11
  45. package/dist/subgraphs/workstream/index.d.ts.map +0 -1
  46. package/dist/subgraphs/workstream/index.js +0 -11
  47. package/dist/subgraphs/workstream/resolvers.d.ts +0 -3
  48. package/dist/subgraphs/workstream/resolvers.d.ts.map +0 -1
  49. package/dist/subgraphs/workstream/resolvers.js +0 -180
  50. package/dist/subgraphs/workstream/schema.d.ts +0 -3
  51. package/dist/subgraphs/workstream/schema.d.ts.map +0 -1
  52. package/dist/subgraphs/workstream/schema.js +0 -146
  53. package/dist/subgraphs/workstreams/index.d.ts +0 -11
  54. package/dist/subgraphs/workstreams/index.d.ts.map +0 -1
  55. package/dist/subgraphs/workstreams/index.js +0 -11
  56. package/dist/subgraphs/workstreams/resolvers.d.ts +0 -3
  57. package/dist/subgraphs/workstreams/resolvers.d.ts.map +0 -1
  58. package/dist/subgraphs/workstreams/resolvers.js +0 -380
  59. package/dist/subgraphs/workstreams/schema.d.ts +0 -3
  60. package/dist/subgraphs/workstreams/schema.d.ts.map +0 -1
  61. package/dist/subgraphs/workstreams/schema.js +0 -326
@@ -1,144 +0,0 @@
1
- import { addFile } from "document-drive";
2
- import { setName } from "document-model";
3
- import { actions, requestForProposalsDocumentType, } from "../../document-models/request-for-proposals/index.js";
4
- export const getResolvers = (subgraph) => {
5
- const reactor = subgraph.reactor;
6
- return {
7
- Query: {
8
- RequestForProposals: async () => {
9
- return {
10
- getDocument: async (args) => {
11
- const { docId, driveId } = args;
12
- if (!docId) {
13
- throw new Error("Document id is required");
14
- }
15
- if (driveId) {
16
- const docIds = await reactor.getDocuments(driveId);
17
- if (!docIds.includes(docId)) {
18
- throw new Error(`Document with id ${docId} is not part of ${driveId}`);
19
- }
20
- }
21
- const doc = await reactor.getDocument(docId);
22
- return {
23
- driveId: driveId,
24
- ...doc,
25
- ...doc.header,
26
- created: doc.header.createdAtUtcIso,
27
- lastModified: doc.header.lastModifiedAtUtcIso,
28
- state: doc.state.global,
29
- stateJSON: doc.state.global,
30
- revision: doc.header?.revision?.global ?? 0,
31
- };
32
- },
33
- getDocuments: async (args) => {
34
- const { driveId } = args;
35
- const docsIds = await reactor.getDocuments(driveId);
36
- const docs = await Promise.all(docsIds.map(async (docId) => {
37
- const doc = await reactor.getDocument(docId);
38
- return {
39
- driveId: driveId,
40
- ...doc,
41
- ...doc.header,
42
- created: doc.header.createdAtUtcIso,
43
- lastModified: doc.header.lastModifiedAtUtcIso,
44
- state: doc.state.global,
45
- stateJSON: doc.state.global,
46
- revision: doc.header?.revision?.global ?? 0,
47
- };
48
- }));
49
- return docs.filter((doc) => doc.header.documentType === requestForProposalsDocumentType);
50
- },
51
- };
52
- },
53
- },
54
- Mutation: {
55
- RequestForProposals_createDocument: async (_, args) => {
56
- const { driveId, name } = args;
57
- const document = await reactor.addDocument(requestForProposalsDocumentType);
58
- if (driveId) {
59
- await reactor.addAction(driveId, addFile({
60
- name,
61
- id: document.header.id,
62
- documentType: requestForProposalsDocumentType,
63
- }));
64
- }
65
- if (name) {
66
- await reactor.addAction(document.header.id, setName(name));
67
- }
68
- return document.header.id;
69
- },
70
- RequestForProposals_editRfp: async (_, args) => {
71
- const { docId, input } = args;
72
- const doc = await reactor.getDocument(docId);
73
- if (!doc) {
74
- throw new Error("Document not found");
75
- }
76
- const result = await reactor.addAction(docId, actions.editRfp(input));
77
- if (result.status !== "SUCCESS") {
78
- throw new Error(result.error?.message ?? "Failed to editRfp");
79
- }
80
- return true;
81
- },
82
- RequestForProposals_addContextDocument: async (_, args) => {
83
- const { docId, input } = args;
84
- const doc = await reactor.getDocument(docId);
85
- if (!doc) {
86
- throw new Error("Document not found");
87
- }
88
- const result = await reactor.addAction(docId, actions.addContextDocument(input));
89
- if (result.status !== "SUCCESS") {
90
- throw new Error(result.error?.message ?? "Failed to addContextDocument");
91
- }
92
- return true;
93
- },
94
- RequestForProposals_removeContextDocument: async (_, args) => {
95
- const { docId, input } = args;
96
- const doc = await reactor.getDocument(docId);
97
- if (!doc) {
98
- throw new Error("Document not found");
99
- }
100
- const result = await reactor.addAction(docId, actions.removeContextDocument(input));
101
- if (result.status !== "SUCCESS") {
102
- throw new Error(result.error?.message ?? "Failed to removeContextDocument");
103
- }
104
- return true;
105
- },
106
- RequestForProposals_addProposal: async (_, args) => {
107
- const { docId, input } = args;
108
- const doc = await reactor.getDocument(docId);
109
- if (!doc) {
110
- throw new Error("Document not found");
111
- }
112
- const result = await reactor.addAction(docId, actions.addProposal(input));
113
- if (result.status !== "SUCCESS") {
114
- throw new Error(result.error?.message ?? "Failed to addProposal");
115
- }
116
- return true;
117
- },
118
- RequestForProposals_changeProposalStatus: async (_, args) => {
119
- const { docId, input } = args;
120
- const doc = await reactor.getDocument(docId);
121
- if (!doc) {
122
- throw new Error("Document not found");
123
- }
124
- const result = await reactor.addAction(docId, actions.changeProposalStatus(input));
125
- if (result.status !== "SUCCESS") {
126
- throw new Error(result.error?.message ?? "Failed to changeProposalStatus");
127
- }
128
- return true;
129
- },
130
- RequestForProposals_removeProposal: async (_, args) => {
131
- const { docId, input } = args;
132
- const doc = await reactor.getDocument(docId);
133
- if (!doc) {
134
- throw new Error("Document not found");
135
- }
136
- const result = await reactor.addAction(docId, actions.removeProposal(input));
137
- if (result.status !== "SUCCESS") {
138
- throw new Error(result.error?.message ?? "Failed to removeProposal");
139
- }
140
- return true;
141
- },
142
- },
143
- };
144
- };
@@ -1,3 +0,0 @@
1
- import type { DocumentNode } from "graphql";
2
- export declare const schema: DocumentNode;
3
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/request-for-proposals/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YA2IpB,CAAC"}
@@ -1,141 +0,0 @@
1
- import { gql } from "graphql-tag";
2
- export const schema = gql `
3
- """
4
- Queries: RequestForProposals Document
5
- """
6
- type RequestForProposalsQueries {
7
- getDocument(docId: PHID!, driveId: PHID): RequestForProposals
8
- getDocuments(driveId: String!): [RequestForProposals!]
9
- }
10
-
11
- type Query {
12
- RequestForProposals: RequestForProposalsQueries
13
- }
14
-
15
- """
16
- Mutations: RequestForProposals
17
- """
18
- type Mutation {
19
- RequestForProposals_createDocument(name: String!, driveId: String): String
20
-
21
- RequestForProposals_editRfp(
22
- driveId: String
23
- docId: PHID
24
- input: RequestForProposals_EditRfpInput
25
- ): Int
26
- RequestForProposals_addContextDocument(
27
- driveId: String
28
- docId: PHID
29
- input: RequestForProposals_AddContextDocumentInput
30
- ): Int
31
- RequestForProposals_removeContextDocument(
32
- driveId: String
33
- docId: PHID
34
- input: RequestForProposals_RemoveContextDocumentInput
35
- ): Int
36
- RequestForProposals_addProposal(
37
- driveId: String
38
- docId: PHID
39
- input: RequestForProposals_AddProposalInput
40
- ): Int
41
- RequestForProposals_changeProposalStatus(
42
- driveId: String
43
- docId: PHID
44
- input: RequestForProposals_ChangeProposalStatusInput
45
- ): Int
46
- RequestForProposals_removeProposal(
47
- driveId: String
48
- docId: PHID
49
- input: RequestForProposals_RemoveProposalInput
50
- ): Int
51
- }
52
-
53
- """
54
- Module: RfpState
55
- """
56
- input RequestForProposals_EditRfpInput {
57
- title: String
58
- code: String
59
- summary: String
60
- briefing: String
61
- eligibilityCriteria: String
62
- evaluationCriteria: String
63
- budgetRange: RequestForProposals_BudgetRangeInput
64
- status: RequestForProposals_RFPStatusInput
65
- deadline: DateTime
66
- tags: [String!]
67
- }
68
-
69
- input RequestForProposals_BudgetRangeInput {
70
- min: Float
71
- max: Float
72
- currency: String
73
- }
74
-
75
- enum RequestForProposals_RFPStatusInput {
76
- DRAFT
77
- REQUEST_FOR_COMMMENTS
78
- CANCELED
79
- OPEN_FOR_PROPOSALS
80
- AWARDED
81
- NOT_AWARDED
82
- CLOSED
83
- }
84
-
85
- """
86
- Module: ContexDocument
87
- """
88
- input RequestForProposals_AddContextDocumentInput {
89
- rfpId: OID!
90
- name: String!
91
- url: URL!
92
- }
93
- input RequestForProposals_RemoveContextDocumentInput {
94
- rfpId: OID!
95
- name: String!
96
- }
97
-
98
- """
99
- Module: Proposals
100
- """
101
- input RequestForProposals_AddProposalInput {
102
- rfpId: OID!
103
- id: OID!
104
- title: String!
105
- summary: String!
106
- proposalStatus: RequestForProposals_RfpProposalStatusInput!
107
- submittedby: OID
108
- budgetEstimate: String!
109
- paymentTerms: RequestForProposals_RfpPaymentTermInput!
110
- }
111
-
112
- enum RequestForProposals_RfpPaymentTermInput {
113
- MILESTONE_BASED_FIXED_PRICE
114
- MILESTONE_BASED_ADVANCE_PAYMENT
115
- RETAINER_BASED
116
- VARIABLE_COST
117
- ESCROW
118
- }
119
-
120
- enum RequestForProposals_RfpProposalStatusInput {
121
- SUBMITTED # or received from an RFP issuer POV
122
- OPENED
123
- UNDER_REVIEW
124
- NEEDS_REVISION
125
- REVISED
126
- APPROVED
127
- CONDITIONALLY_APPROVED #
128
- REJECTED
129
- WITHDRAWN
130
- }
131
-
132
- input RequestForProposals_ChangeProposalStatusInput {
133
- proposalId: OID!
134
- status: RequestForProposals_RfpProposalStatusInput!
135
- }
136
-
137
- input RequestForProposals_RemoveProposalInput {
138
- rfpId: OID!
139
- id: OID!
140
- }
141
- `;
@@ -1,11 +0,0 @@
1
- import { BaseSubgraph } from "@powerhousedao/reactor-api";
2
- import type { DocumentNode } from "graphql";
3
- export declare class WorkstreamSubgraph extends BaseSubgraph {
4
- name: string;
5
- typeDefs: DocumentNode;
6
- resolvers: Record<string, unknown>;
7
- additionalContextFields: {};
8
- onSetup(): Promise<void>;
9
- onDisconnect(): Promise<void>;
10
- }
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/workstream/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,qBAAa,kBAAmB,SAAQ,YAAY;IAClD,IAAI,SAAgB;IACpB,QAAQ,EAAE,YAAY,CAAU;IAChC,SAAS,0BAAsB;IAC/B,uBAAuB,KAAM;IACvB,OAAO;IACP,YAAY;CACnB"}
@@ -1,11 +0,0 @@
1
- import { BaseSubgraph } from "@powerhousedao/reactor-api";
2
- import { schema } from "./schema.js";
3
- import { getResolvers } from "./resolvers.js";
4
- export class WorkstreamSubgraph extends BaseSubgraph {
5
- name = "workstream";
6
- typeDefs = schema;
7
- resolvers = getResolvers(this);
8
- additionalContextFields = {};
9
- async onSetup() { }
10
- async onDisconnect() { }
11
- }
@@ -1,3 +0,0 @@
1
- import type { BaseSubgraph } from "@powerhousedao/reactor-api";
2
- export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string, unknown>;
3
- //# sourceMappingURL=resolvers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/workstream/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CA6SxB,CAAC"}
@@ -1,180 +0,0 @@
1
- import { addFile } from "document-drive";
2
- import { setName } from "document-model";
3
- import { actions, workstreamDocumentType, } from "../../document-models/workstream/index.js";
4
- export const getResolvers = (subgraph) => {
5
- const reactor = subgraph.reactor;
6
- return {
7
- Query: {
8
- Workstream: async () => {
9
- return {
10
- getDocument: async (args) => {
11
- const { docId, driveId } = args;
12
- if (!docId) {
13
- throw new Error("Document id is required");
14
- }
15
- if (driveId) {
16
- const docIds = await reactor.getDocuments(driveId);
17
- if (!docIds.includes(docId)) {
18
- throw new Error(`Document with id ${docId} is not part of ${driveId}`);
19
- }
20
- }
21
- const doc = await reactor.getDocument(docId);
22
- return {
23
- driveId: driveId,
24
- ...doc,
25
- ...doc.header,
26
- created: doc.header.createdAtUtcIso,
27
- lastModified: doc.header.lastModifiedAtUtcIso,
28
- state: doc.state.global,
29
- stateJSON: doc.state.global,
30
- revision: doc.header?.revision?.global ?? 0,
31
- };
32
- },
33
- getDocuments: async (args) => {
34
- const { driveId } = args;
35
- const docsIds = await reactor.getDocuments(driveId);
36
- const docs = await Promise.all(docsIds.map(async (docId) => {
37
- const doc = await reactor.getDocument(docId);
38
- return {
39
- driveId: driveId,
40
- ...doc,
41
- ...doc.header,
42
- created: doc.header.createdAtUtcIso,
43
- lastModified: doc.header.lastModifiedAtUtcIso,
44
- state: doc.state.global,
45
- stateJSON: doc.state.global,
46
- revision: doc.header?.revision?.global ?? 0,
47
- };
48
- }));
49
- return docs.filter((doc) => doc.header.documentType === workstreamDocumentType);
50
- },
51
- };
52
- },
53
- },
54
- Mutation: {
55
- Workstream_createDocument: async (_, args) => {
56
- const { driveId, name } = args;
57
- const document = await reactor.addDocument(workstreamDocumentType);
58
- if (driveId) {
59
- await reactor.addAction(driveId, addFile({
60
- name,
61
- id: document.header.id,
62
- documentType: workstreamDocumentType,
63
- }));
64
- }
65
- if (name) {
66
- await reactor.addAction(document.header.id, setName(name));
67
- }
68
- return document.header.id;
69
- },
70
- Workstream_editWorkstream: async (_, args) => {
71
- const { docId, input } = args;
72
- const doc = await reactor.getDocument(docId);
73
- if (!doc) {
74
- throw new Error("Document not found");
75
- }
76
- const result = await reactor.addAction(docId, actions.editWorkstream(input));
77
- if (result.status !== "SUCCESS") {
78
- throw new Error(result.error?.message ?? "Failed to editWorkstream");
79
- }
80
- return true;
81
- },
82
- Workstream_editClientInfo: async (_, args) => {
83
- const { docId, input } = args;
84
- const doc = await reactor.getDocument(docId);
85
- if (!doc) {
86
- throw new Error("Document not found");
87
- }
88
- const result = await reactor.addAction(docId, actions.editClientInfo(input));
89
- if (result.status !== "SUCCESS") {
90
- throw new Error(result.error?.message ?? "Failed to editClientInfo");
91
- }
92
- return true;
93
- },
94
- Workstream_setRequestForProposal: async (_, args) => {
95
- const { docId, input } = args;
96
- const doc = await reactor.getDocument(docId);
97
- if (!doc) {
98
- throw new Error("Document not found");
99
- }
100
- const result = await reactor.addAction(docId, actions.setRequestForProposal(input));
101
- if (result.status !== "SUCCESS") {
102
- throw new Error(result.error?.message ?? "Failed to setRequestForProposal");
103
- }
104
- return true;
105
- },
106
- Workstream_addPaymentRequest: async (_, args) => {
107
- const { docId, input } = args;
108
- const doc = await reactor.getDocument(docId);
109
- if (!doc) {
110
- throw new Error("Document not found");
111
- }
112
- const result = await reactor.addAction(docId, actions.addPaymentRequest(input));
113
- if (result.status !== "SUCCESS") {
114
- throw new Error(result.error?.message ?? "Failed to addPaymentRequest");
115
- }
116
- return true;
117
- },
118
- Workstream_removePaymentRequest: async (_, args) => {
119
- const { docId, input } = args;
120
- const doc = await reactor.getDocument(docId);
121
- if (!doc) {
122
- throw new Error("Document not found");
123
- }
124
- const result = await reactor.addAction(docId, actions.removePaymentRequest(input));
125
- if (result.status !== "SUCCESS") {
126
- throw new Error(result.error?.message ?? "Failed to removePaymentRequest");
127
- }
128
- return true;
129
- },
130
- Workstream_editInitialProposal: async (_, args) => {
131
- const { docId, input } = args;
132
- const doc = await reactor.getDocument(docId);
133
- if (!doc) {
134
- throw new Error("Document not found");
135
- }
136
- const result = await reactor.addAction(docId, actions.editInitialProposal(input));
137
- if (result.status !== "SUCCESS") {
138
- throw new Error(result.error?.message ?? "Failed to editInitialProposal");
139
- }
140
- return true;
141
- },
142
- Workstream_addAlternativeProposal: async (_, args) => {
143
- const { docId, input } = args;
144
- const doc = await reactor.getDocument(docId);
145
- if (!doc) {
146
- throw new Error("Document not found");
147
- }
148
- const result = await reactor.addAction(docId, actions.addAlternativeProposal(input));
149
- if (result.status !== "SUCCESS") {
150
- throw new Error(result.error?.message ?? "Failed to addAlternativeProposal");
151
- }
152
- return true;
153
- },
154
- Workstream_editAlternativeProposal: async (_, args) => {
155
- const { docId, input } = args;
156
- const doc = await reactor.getDocument(docId);
157
- if (!doc) {
158
- throw new Error("Document not found");
159
- }
160
- const result = await reactor.addAction(docId, actions.editAlternativeProposal(input));
161
- if (result.status !== "SUCCESS") {
162
- throw new Error(result.error?.message ?? "Failed to editAlternativeProposal");
163
- }
164
- return true;
165
- },
166
- Workstream_removeAlternativeProposal: async (_, args) => {
167
- const { docId, input } = args;
168
- const doc = await reactor.getDocument(docId);
169
- if (!doc) {
170
- throw new Error("Document not found");
171
- }
172
- const result = await reactor.addAction(docId, actions.removeAlternativeProposal(input));
173
- if (result.status !== "SUCCESS") {
174
- throw new Error(result.error?.message ?? "Failed to removeAlternativeProposal");
175
- }
176
- return true;
177
- },
178
- },
179
- };
180
- };
@@ -1,3 +0,0 @@
1
- import type { DocumentNode } from "graphql";
2
- export declare const schema: DocumentNode;
3
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/workstream/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YAgJpB,CAAC"}
@@ -1,146 +0,0 @@
1
- import { gql } from "graphql-tag";
2
- export const schema = gql `
3
- """
4
- Queries: Workstream Document
5
- """
6
- type WorkstreamQueries {
7
- getDocument(docId: PHID!, driveId: PHID): Workstream
8
- getDocuments(driveId: String!): [Workstream!]
9
- }
10
-
11
- type Query {
12
- Workstream: WorkstreamQueries
13
- }
14
-
15
- """
16
- Mutations: Workstream
17
- """
18
- type Mutation {
19
- Workstream_createDocument(name: String!, driveId: String): String
20
-
21
- Workstream_editWorkstream(
22
- driveId: String
23
- docId: PHID
24
- input: Workstream_EditWorkstreamInput
25
- ): Int
26
- Workstream_editClientInfo(
27
- driveId: String
28
- docId: PHID
29
- input: Workstream_EditClientInfoInput
30
- ): Int
31
- Workstream_setRequestForProposal(
32
- driveId: String
33
- docId: PHID
34
- input: Workstream_SetRequestForProposalInput
35
- ): Int
36
- Workstream_addPaymentRequest(
37
- driveId: String
38
- docId: PHID
39
- input: Workstream_AddPaymentRequestInput
40
- ): Int
41
- Workstream_removePaymentRequest(
42
- driveId: String
43
- docId: PHID
44
- input: Workstream_RemovePaymentRequestInput
45
- ): Int
46
- Workstream_editInitialProposal(
47
- driveId: String
48
- docId: PHID
49
- input: Workstream_EditInitialProposalInput
50
- ): Int
51
- Workstream_addAlternativeProposal(
52
- driveId: String
53
- docId: PHID
54
- input: Workstream_AddAlternativeProposalInput
55
- ): Int
56
- Workstream_editAlternativeProposal(
57
- driveId: String
58
- docId: PHID
59
- input: Workstream_EditAlternativeProposalInput
60
- ): Int
61
- Workstream_removeAlternativeProposal(
62
- driveId: String
63
- docId: PHID
64
- input: Workstream_RemoveAlternativeProposalInput
65
- ): Int
66
- }
67
-
68
- """
69
- Module: Workstream
70
- """
71
- input Workstream_EditWorkstreamInput {
72
- code: String
73
- title: String
74
- status: Workstream_WorkstreamStatusInput
75
- sowId: PHID
76
- paymentTerms: PHID
77
- }
78
-
79
- enum Workstream_WorkstreamStatusInput {
80
- RFP_DRAFT
81
- PREWORK_RFC # Workstream_RFP status change to RFC
82
- RFP_CANCELLED
83
- OPEN_FOR_PROPOSALS
84
- PROPOSAL_SUBMITTED
85
- NOT_AWARDED
86
- AWARDED
87
- IN_PROGRESS
88
- FINISHED
89
- }
90
- input Workstream_EditClientInfoInput {
91
- clientId: PHID!
92
- name: String
93
- icon: String
94
- }
95
- input Workstream_SetRequestForProposalInput {
96
- rfpId: PHID!
97
- title: String!
98
- }
99
- input Workstream_AddPaymentRequestInput {
100
- id: PHID!
101
- }
102
- input Workstream_RemovePaymentRequestInput {
103
- id: PHID!
104
- }
105
-
106
- """
107
- Module: Proposals
108
- """
109
- input Workstream_EditInitialProposalInput {
110
- id: ID!
111
- sowId: PHID
112
- paymentTermsId: PHID
113
- status: Workstream_ProposalStatusInput
114
- proposalAuthor: Workstream_ProposalAuthorInput
115
- }
116
-
117
- enum Workstream_ProposalStatusInput {
118
- DRAFT
119
- SUBMITTED
120
- ACCEPTED
121
- REJECTED
122
- }
123
-
124
- input Workstream_ProposalAuthorInput {
125
- id: PHID!
126
- name: String
127
- icon: URL
128
- }
129
- input Workstream_AddAlternativeProposalInput {
130
- id: ID!
131
- sowId: PHID
132
- paymentTermsId: PHID
133
- status: Workstream_ProposalStatusInput
134
- proposalAuthor: Workstream_ProposalAuthorInput
135
- }
136
- input Workstream_EditAlternativeProposalInput {
137
- id: ID!
138
- sowId: PHID
139
- paymentTermsId: PHID
140
- status: Workstream_ProposalStatusInput
141
- proposalAuthor: Workstream_ProposalAuthorInput
142
- }
143
- input Workstream_RemoveAlternativeProposalInput {
144
- id: ID!
145
- }
146
- `;
@@ -1,11 +0,0 @@
1
- import { BaseSubgraph } from "@powerhousedao/reactor-api";
2
- import type { DocumentNode } from "graphql";
3
- export declare class WorkstreamsSubgraph extends BaseSubgraph {
4
- name: string;
5
- typeDefs: DocumentNode;
6
- resolvers: Record<string, unknown>;
7
- additionalContextFields: {};
8
- onSetup(): Promise<void>;
9
- onDisconnect(): Promise<void>;
10
- }
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/workstreams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,IAAI,SAAiB;IACrB,QAAQ,EAAE,YAAY,CAAU;IAChC,SAAS,0BAAsB;IAC/B,uBAAuB,KAAM;IACvB,OAAO;IACP,YAAY;CACnB"}