@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,326 +0,0 @@
1
- import { gql } from "graphql-tag";
2
- export const schema = gql `
3
- """
4
- Subgraph definition
5
- """
6
- type Query {
7
- processorWorkstreams: [ProcessorWorkstream!]!
8
- workstream(filter: WorkstreamFilter!): FullQueryWorkstream
9
- workstreams(filter: WorkstreamsFilter): [FullQueryWorkstream!]!
10
- rfpByWorkstream(filter: WorkstreamFilter!): [WorkstreamRfp!]!
11
- scopeOfWorkByNetworkOrStatus(filter: scopeOfWorkByNetworkOrStatusFilter!): [SOW_ScopeOfWorkState!]!
12
- }
13
-
14
- type ProcessorWorkstream {
15
- network_phid: PHID
16
- network_slug: String
17
- workstream_phid: PHID
18
- workstream_slug: String
19
- workstream_title: String
20
- workstream_status: WorkstreamStatus
21
- sow_phid: PHID
22
- roadmap_oid: PHID
23
- final_milestone_target: DateTime
24
- initial_proposal_status: ProposalStatus
25
- initial_proposal_author: PHID
26
- }
27
-
28
- enum WorkstreamStatus {
29
- RFP_DRAFT
30
- PREWORK_RFC
31
- RFP_CANCELLED
32
- OPEN_FOR_PROPOSALS
33
- PROPOSAL_SUBMITTED
34
- NOT_AWARDED
35
- AWARDED
36
- IN_PROGRESS
37
- FINISHED
38
- }
39
-
40
- enum RFPStatus {
41
- DRAFT
42
- REQUEST_FOR_COMMMENTS
43
- CANCELED
44
- OPEN_FOR_PROPOSALS
45
- AWARDED
46
- NOT_AWARDED
47
- CLOSED
48
- }
49
-
50
- enum ProposalStatus {
51
- DRAFT
52
- SUBMITTED
53
- ACCEPTED
54
- REJECTED
55
- }
56
-
57
- """
58
- Filter to fetch a single workstream
59
- """
60
- input WorkstreamFilter {
61
- workstreamId: PHID
62
- workstreamSlug: String
63
- networkId: PHID
64
- networkSlug: String
65
- networkName: String
66
- workstreamStatus: WorkstreamStatus
67
- workstreamStatuses: [WorkstreamStatus!]
68
-
69
- }
70
-
71
- input WorkstreamsFilter {
72
- networkId: PHID
73
- networkSlug: String
74
- networkName: String
75
- workstreamStatus: WorkstreamStatus
76
- workstreamStatuses: [WorkstreamStatus!]
77
- }
78
-
79
- input scopeOfWorkByNetworkOrStatusFilter {
80
- networkId: PHID
81
- networkSlug: String
82
- networkName: String
83
- workstreamId: PHID
84
- workstreamSlug: String
85
- workstreamStatus: WorkstreamStatus
86
- proposalRole: ProposalRole
87
- }
88
-
89
- enum ProposalRole {
90
- INITIAL,
91
- ALTERNATIVE,
92
- AWARDED
93
- }
94
-
95
- """
96
- Detailed Workstream hydrated from DB + documents
97
- """
98
- type FullQueryWorkstream {
99
- code: String
100
- title: String
101
- status: WorkstreamStatus
102
- client: ClientInfo
103
- rfp: RFP
104
- initialProposal: FullProposal
105
- alternativeProposals: [FullProposal!]!
106
- sow: SOW_ScopeOfWorkState
107
- paymentTerms: PT_PaymentTermsState
108
- paymentRequests: [PHID!]!
109
- }
110
-
111
- type WorkstreamRfp {
112
- code: String
113
- title: String
114
- status: WorkstreamStatus
115
- rfp: RFP
116
- }
117
-
118
- type ClientInfo {
119
- id: PHID!
120
- name: String
121
- icon: URL
122
- }
123
-
124
- type RFP {
125
- id: PHID!
126
- code: String
127
- title: String!
128
- status: RFPStatus
129
- summary: String
130
- submissionDeadline: DateTime
131
- budgetMin: Float
132
- budgetMax: Float
133
- budgetCurrency: String
134
- eligibilityCriteria: String
135
- evaluationCriteria: String
136
- briefing: String
137
- }
138
-
139
- type ProposalAuthor {
140
- id: PHID!
141
- name: String
142
- icon: URL
143
- }
144
-
145
- # Must match type from Workstream subgraph to compose
146
- type Proposal {
147
- id: OID!
148
- sow: PHID!
149
- paymentTerms: PHID!
150
- status: ProposalStatus!
151
- author: ProposalAuthor!
152
- }
153
-
154
- scalar JSON
155
-
156
- type LinkedDocument {
157
- id: PHID!
158
- stateJSON: JSON
159
- }
160
-
161
- # ==========================
162
- # ScopeOfWork (typed schema)
163
- # ==========================
164
- type SOW_ScopeOfWorkState {
165
- title: String!
166
- description: String!
167
- status: SOW_ScopeOfWorkStatus!
168
- deliverables: [SOW_Deliverable!]!
169
- projects: [SOW_Project!]!
170
- roadmaps: [SOW_Roadmap!]!
171
- contributors: [SOW_Agent!]!
172
- }
173
-
174
- enum SOW_ScopeOfWorkStatus {
175
- DRAFT
176
- SUBMITTED
177
- IN_PROGRESS
178
- REJECTED
179
- APPROVED
180
- DELIVERED
181
- CANCELED
182
- }
183
-
184
- type SOW_Agent {
185
- id: PHID!
186
- name: String!
187
- icon: URL
188
- description: String
189
- }
190
-
191
- type SOW_Deliverable {
192
- id: OID!
193
- owner: ID
194
- title: String!
195
- code: String!
196
- description: String!
197
- status: SOW_DeliverableStatus!
198
- workProgress: SOW_Progress
199
- keyResults: [SOW_KeyResult!]!
200
- budgetAnchor: SOW_BudgetAnchorProject
201
- }
202
-
203
- type SOW_BudgetAnchorProject {
204
- project: OID
205
- unit: SOW_Unit
206
- unitCost: Float!
207
- quantity: Float!
208
- margin: Float!
209
- }
210
-
211
- enum SOW_Unit {
212
- StoryPoints
213
- Hours
214
- }
215
-
216
- enum SOW_DeliverableStatus {
217
- WONT_DO
218
- DRAFT
219
- TODO
220
- BLOCKED
221
- IN_PROGRESS
222
- DELIVERED
223
- CANCELED
224
- }
225
-
226
- union SOW_Progress = SOW_StoryPoint | SOW_Percentage | SOW_Binary
227
-
228
- type SOW_Percentage { value: Float! }
229
- type SOW_Binary { done: Boolean }
230
- type SOW_StoryPoint { total: Int!, completed: Int! }
231
-
232
- type SOW_KeyResult { id: OID!, title: String!, link: String! }
233
-
234
- type SOW_Project {
235
- id: OID!
236
- code: String!
237
- title: String!
238
- projectOwner: ID
239
- abstract: String
240
- imageUrl: URL
241
- scope: SOW_DeliverablesSet
242
- budgetType: SOW_BudgetType
243
- currency: SOW_PMCurrency
244
- budget: Float
245
- expenditure: SOW_BudgetExpenditure
246
- }
247
-
248
- enum SOW_PMCurrency { DAI USDS EUR USD }
249
- enum SOW_BudgetType { CONTINGENCY OPEX CAPEX OVERHEAD }
250
-
251
- type SOW_BudgetExpenditure { percentage: Float!, actuals: Float!, cap: Float! }
252
-
253
- type SOW_Roadmap {
254
- id: OID!
255
- slug: String!
256
- title: String!
257
- description: String!
258
- milestones: [SOW_Milestone!]!
259
- }
260
-
261
- type SOW_Milestone {
262
- id: OID!
263
- sequenceCode: String!
264
- title: String!
265
- description: String!
266
- deliveryTarget: String!
267
- scope: SOW_DeliverablesSet
268
- coordinators: [ID!]!
269
- budget: Float
270
- }
271
-
272
- type SOW_DeliverablesSet {
273
- deliverables: [OID!]!
274
- status: SOW_DeliverableSetStatus!
275
- progress: SOW_Progress!
276
- deliverablesCompleted: SOW_DeliverablesCompleted!
277
- }
278
-
279
- type SOW_DeliverablesCompleted { total: Int!, completed: Int! }
280
- enum SOW_DeliverableSetStatus { DRAFT TODO IN_PROGRESS FINISHED CANCELED }
281
-
282
- # ==========================
283
- # Payment Terms (typed)
284
- # ==========================
285
- enum PT_PaymentTermsStatus { DRAFT SUBMITTED ACCEPTED CANCELLED }
286
- enum PT_PaymentCurrency { USD EUR GBP }
287
- enum PT_PaymentModel { MILESTONE COST_AND_MATERIALS RETAINER }
288
- enum PT_MilestonePayoutStatus { PENDING READY_FOR_REVIEW APPROVED PAID REJECTED }
289
- enum PT_BillingFrequency { WEEKLY BIWEEKLY MONTHLY }
290
- enum PT_EvaluationFrequency { WEEKLY MONTHLY PER_MILESTONE }
291
-
292
- type PT_Milestone { id: OID! name: String! amount: Amount! expectedCompletionDate: Date requiresApproval: Boolean! payoutStatus: PT_MilestonePayoutStatus! }
293
- type PT_CostAndMaterials { hourlyRate: Amount variableCap: Amount billingFrequency: PT_BillingFrequency! timesheetRequired: Boolean! }
294
- type PT_Retainer { retainerAmount: Amount! billingFrequency: PT_BillingFrequency! startDate: Date! endDate: Date autoRenew: Boolean! servicesIncluded: String! }
295
- type PT_Escrow { amountHeld: Amount! proofOfFundsDocumentId: String releaseConditions: String! escrowProvider: String }
296
- type PT_EvaluationTerms { evaluationFrequency: PT_EvaluationFrequency! evaluatorTeam: String! criteria: [String!]! impactsPayout: Boolean! impactsReputation: Boolean! commentsVisibleToClient: Boolean! }
297
- type PT_BonusClause { id: OID! condition: String! bonusAmount: Amount! comment: String }
298
- type PT_PenaltyClause { id: OID! condition: String! deductionAmount: Amount! comment: String }
299
-
300
- type PT_PaymentTermsState {
301
- status: PT_PaymentTermsStatus!
302
- proposer: String!
303
- payer: String!
304
- currency: PT_PaymentCurrency!
305
- paymentModel: PT_PaymentModel!
306
- totalAmount: Amount
307
- milestoneSchedule: [PT_Milestone!]!
308
- costAndMaterials: PT_CostAndMaterials
309
- retainerDetails: PT_Retainer
310
- escrowDetails: PT_Escrow
311
- evaluation: PT_EvaluationTerms
312
- bonusClauses: [PT_BonusClause!]!
313
- penaltyClauses: [PT_PenaltyClause!]!
314
- }
315
-
316
- # ==========================
317
- # Full Proposal (typed links)
318
- # ==========================
319
- type FullProposal {
320
- id: OID!
321
- status: ProposalStatus!
322
- author: ProposalAuthor!
323
- sow: SOW_ScopeOfWorkState
324
- paymentTerms: PT_PaymentTermsState
325
- }
326
- `;