@burdenoff/sdk-libs 2026.627.3 → 2026.627.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/cosmicintersection/index.cjs +340 -0
- package/dist/modules/cosmicintersection/index.d.cts +450 -0
- package/dist/modules/cosmicintersection/index.d.ts +450 -0
- package/dist/modules/cosmicintersection/index.js +340 -0
- package/dist/modules/ecoimpacthub/index.cjs +350 -0
- package/dist/modules/ecoimpacthub/index.d.cts +478 -0
- package/dist/modules/ecoimpacthub/index.d.ts +478 -0
- package/dist/modules/ecoimpacthub/index.js +350 -0
- package/dist/modules/govcitizenhub/index.cjs +296 -0
- package/dist/modules/govcitizenhub/index.d.cts +349 -0
- package/dist/modules/govcitizenhub/index.d.ts +349 -0
- package/dist/modules/govcitizenhub/index.js +296 -0
- package/dist/modules/intelwatchtower/index.cjs +406 -0
- package/dist/modules/intelwatchtower/index.d.cts +486 -0
- package/dist/modules/intelwatchtower/index.d.ts +486 -0
- package/dist/modules/intelwatchtower/index.js +406 -0
- package/dist/modules/manufacturedops/index.cjs +335 -0
- package/dist/modules/manufacturedops/index.d.cts +466 -0
- package/dist/modules/manufacturedops/index.d.ts +466 -0
- package/dist/modules/manufacturedops/index.js +335 -0
- package/package.json +1 -1
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
var T=`
|
|
2
|
+
fragment SiteScalars on EcoSite {
|
|
3
|
+
id name code description type status
|
|
4
|
+
region country latitude longitude areaHectares
|
|
5
|
+
workspaceId createdAt updatedAt
|
|
6
|
+
}
|
|
7
|
+
`,l=`
|
|
8
|
+
fragment SensorScalars on EcoSensor {
|
|
9
|
+
id name siteId kind status unit
|
|
10
|
+
hardwareId installedAt lastReadingAt
|
|
11
|
+
workspaceId createdAt updatedAt
|
|
12
|
+
}
|
|
13
|
+
`,c=`
|
|
14
|
+
fragment ThresholdFields on EcoAlertThreshold {
|
|
15
|
+
id siteId parameter direction severity unit
|
|
16
|
+
minValue maxValue limitValue isActive
|
|
17
|
+
workspaceId createdAt updatedAt
|
|
18
|
+
}
|
|
19
|
+
`,A=`
|
|
20
|
+
fragment MeasurementFields on EcoMeasurement {
|
|
21
|
+
id siteId sensorId parameter value unit source isBreach notes
|
|
22
|
+
recordedAt workspaceId createdAt updatedAt
|
|
23
|
+
}
|
|
24
|
+
`,b=`
|
|
25
|
+
fragment SpeciesScalars on EcoSpecies {
|
|
26
|
+
id commonName scientificName description
|
|
27
|
+
taxonGroup conservationStatus isPriority
|
|
28
|
+
workspaceId createdAt updatedAt
|
|
29
|
+
}
|
|
30
|
+
`,O=`
|
|
31
|
+
fragment ObservationScalars on EcoObservation {
|
|
32
|
+
id speciesId siteId observerId count method
|
|
33
|
+
latitude longitude notes observedAt
|
|
34
|
+
evidence { id }
|
|
35
|
+
workspaceId createdAt updatedAt
|
|
36
|
+
}
|
|
37
|
+
`,_=`
|
|
38
|
+
fragment RestorationActivityFields on EcoRestorationActivity {
|
|
39
|
+
id projectId type summary details quantity unit
|
|
40
|
+
performedAt workspaceId createdAt updatedAt
|
|
41
|
+
}
|
|
42
|
+
`,d=`
|
|
43
|
+
fragment EmissionFactorFields on EcoEmissionFactor {
|
|
44
|
+
id name scope activityUnit factorKgco2e source validYear isActive
|
|
45
|
+
workspaceId createdAt updatedAt
|
|
46
|
+
}
|
|
47
|
+
`,St=`
|
|
48
|
+
fragment CarbonEntryScalars on EcoCarbonEntry {
|
|
49
|
+
id scope category activityValue activityUnit co2eKg status
|
|
50
|
+
factorId siteId notes periodStart
|
|
51
|
+
workspaceId createdAt updatedAt
|
|
52
|
+
}
|
|
53
|
+
`,S=`
|
|
54
|
+
fragment ReductionTargetFields on EcoReductionTarget {
|
|
55
|
+
id name description metric unit
|
|
56
|
+
baselineValue baselineYear targetValue targetYear status
|
|
57
|
+
workspaceId createdAt updatedAt
|
|
58
|
+
}
|
|
59
|
+
`,h=`
|
|
60
|
+
fragment ReportLineItemFields on EcoReportLineItem {
|
|
61
|
+
id reportId carbonEntryId category label value unit
|
|
62
|
+
workspaceId createdAt updatedAt
|
|
63
|
+
}
|
|
64
|
+
`,s=`
|
|
65
|
+
${T}
|
|
66
|
+
${l}
|
|
67
|
+
${c}
|
|
68
|
+
fragment SiteFull on EcoSite {
|
|
69
|
+
...SiteScalars
|
|
70
|
+
sensors { ...SensorScalars }
|
|
71
|
+
thresholds { ...ThresholdFields }
|
|
72
|
+
}
|
|
73
|
+
`,m=`
|
|
74
|
+
${l}
|
|
75
|
+
${T}
|
|
76
|
+
fragment SensorFull on EcoSensor {
|
|
77
|
+
...SensorScalars
|
|
78
|
+
site { ...SiteScalars }
|
|
79
|
+
}
|
|
80
|
+
`,r=`
|
|
81
|
+
${b}
|
|
82
|
+
${O}
|
|
83
|
+
fragment SpeciesFull on EcoSpecies {
|
|
84
|
+
...SpeciesScalars
|
|
85
|
+
observations { ...ObservationScalars }
|
|
86
|
+
}
|
|
87
|
+
`,y=`
|
|
88
|
+
${O}
|
|
89
|
+
${b}
|
|
90
|
+
fragment ObservationFull on EcoObservation {
|
|
91
|
+
...ObservationScalars
|
|
92
|
+
species { ...SpeciesScalars }
|
|
93
|
+
}
|
|
94
|
+
`,n=`
|
|
95
|
+
${_}
|
|
96
|
+
fragment HabitatProjectFull on EcoHabitatProject {
|
|
97
|
+
id name description status siteId managerId
|
|
98
|
+
budgetAmount currency targetHectares startDate endDate completedAt
|
|
99
|
+
activities { ...RestorationActivityFields }
|
|
100
|
+
workspaceId createdAt updatedAt
|
|
101
|
+
}
|
|
102
|
+
`,C=`
|
|
103
|
+
${St}
|
|
104
|
+
${d}
|
|
105
|
+
fragment CarbonEntryFull on EcoCarbonEntry {
|
|
106
|
+
...CarbonEntryScalars
|
|
107
|
+
factor { ...EmissionFactorFields }
|
|
108
|
+
}
|
|
109
|
+
`,E=`
|
|
110
|
+
${h}
|
|
111
|
+
fragment ReportFull on EcoReport {
|
|
112
|
+
id title summary framework status
|
|
113
|
+
periodStart periodEnd publishedAt
|
|
114
|
+
file { id }
|
|
115
|
+
lineItems { ...ReportLineItemFields }
|
|
116
|
+
workspaceId createdAt updatedAt
|
|
117
|
+
}
|
|
118
|
+
`,$=`
|
|
119
|
+
${s}
|
|
120
|
+
query EcoSite($id: ID!) { ecoSite(id: $id) { ...SiteFull } }
|
|
121
|
+
`,g=`
|
|
122
|
+
${s}
|
|
123
|
+
query EcoListSites($pagination: PaginationInput, $status: EcoSiteStatus, $type: EcoSiteType) {
|
|
124
|
+
ecoListSites(pagination: $pagination, status: $status, type: $type) {
|
|
125
|
+
items { ...SiteFull }
|
|
126
|
+
pageInfo { cursor hasMore }
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
`,P=`
|
|
130
|
+
${s}
|
|
131
|
+
mutation EcoCreateSite($input: EcoCreateSiteInput!) {
|
|
132
|
+
ecoCreateSite(input: $input) { ...SiteFull }
|
|
133
|
+
}
|
|
134
|
+
`,L=`
|
|
135
|
+
${s}
|
|
136
|
+
mutation EcoUpdateSite($id: ID!, $input: EcoUpdateSiteInput!) {
|
|
137
|
+
ecoUpdateSite(id: $id, input: $input) { ...SiteFull }
|
|
138
|
+
}
|
|
139
|
+
`,v=`
|
|
140
|
+
mutation EcoArchiveSite($id: ID!) { ecoArchiveSite(id: $id) }
|
|
141
|
+
`,F=`
|
|
142
|
+
${m}
|
|
143
|
+
query EcoListSensors($kind: EcoSensorKind, $siteId: ID, $status: EcoSensorStatus) {
|
|
144
|
+
ecoListSensors(kind: $kind, siteId: $siteId, status: $status) { ...SensorFull }
|
|
145
|
+
}
|
|
146
|
+
`,H=`
|
|
147
|
+
${m}
|
|
148
|
+
mutation EcoCreateSensor($input: EcoCreateSensorInput!) {
|
|
149
|
+
ecoCreateSensor(input: $input) { ...SensorFull }
|
|
150
|
+
}
|
|
151
|
+
`,x=`
|
|
152
|
+
${m}
|
|
153
|
+
mutation EcoSetSensorStatus($id: ID!, $status: EcoSensorStatus!) {
|
|
154
|
+
ecoSetSensorStatus(id: $id, status: $status) { ...SensorFull }
|
|
155
|
+
}
|
|
156
|
+
`,f=`
|
|
157
|
+
${c}
|
|
158
|
+
query EcoListThresholds($siteId: ID) {
|
|
159
|
+
ecoListThresholds(siteId: $siteId) { ...ThresholdFields }
|
|
160
|
+
}
|
|
161
|
+
`,N=`
|
|
162
|
+
${c}
|
|
163
|
+
mutation EcoCreateThreshold($input: EcoCreateThresholdInput!) {
|
|
164
|
+
ecoCreateThreshold(input: $input) { ...ThresholdFields }
|
|
165
|
+
}
|
|
166
|
+
`,D=`
|
|
167
|
+
${c}
|
|
168
|
+
mutation EcoSetThresholdActive($id: ID!, $isActive: Boolean!) {
|
|
169
|
+
ecoSetThresholdActive(id: $id, isActive: $isActive) { ...ThresholdFields }
|
|
170
|
+
}
|
|
171
|
+
`,q=`
|
|
172
|
+
${A}
|
|
173
|
+
query EcoListMeasurements(
|
|
174
|
+
$breachesOnly: Boolean
|
|
175
|
+
$pagination: PaginationInput
|
|
176
|
+
$parameter: String
|
|
177
|
+
$sensorId: ID
|
|
178
|
+
$siteId: ID
|
|
179
|
+
) {
|
|
180
|
+
ecoListMeasurements(
|
|
181
|
+
breachesOnly: $breachesOnly
|
|
182
|
+
pagination: $pagination
|
|
183
|
+
parameter: $parameter
|
|
184
|
+
sensorId: $sensorId
|
|
185
|
+
siteId: $siteId
|
|
186
|
+
) {
|
|
187
|
+
items { ...MeasurementFields }
|
|
188
|
+
pageInfo { cursor hasMore }
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,w=`
|
|
192
|
+
${A}
|
|
193
|
+
mutation EcoRecordMeasurement($input: EcoRecordMeasurementInput!) {
|
|
194
|
+
ecoRecordMeasurement(input: $input) { ...MeasurementFields }
|
|
195
|
+
}
|
|
196
|
+
`,M=`
|
|
197
|
+
${r}
|
|
198
|
+
query EcoSpecies($id: ID!) { ecoSpecies(id: $id) { ...SpeciesFull } }
|
|
199
|
+
`,j=`
|
|
200
|
+
${r}
|
|
201
|
+
query EcoListSpecies(
|
|
202
|
+
$conservationStatus: EcoConservationStatus
|
|
203
|
+
$pagination: PaginationInput
|
|
204
|
+
$priorityOnly: Boolean
|
|
205
|
+
$taxonGroup: EcoTaxonGroup
|
|
206
|
+
) {
|
|
207
|
+
ecoListSpecies(
|
|
208
|
+
conservationStatus: $conservationStatus
|
|
209
|
+
pagination: $pagination
|
|
210
|
+
priorityOnly: $priorityOnly
|
|
211
|
+
taxonGroup: $taxonGroup
|
|
212
|
+
) {
|
|
213
|
+
items { ...SpeciesFull }
|
|
214
|
+
pageInfo { cursor hasMore }
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
`,U=`
|
|
218
|
+
${r}
|
|
219
|
+
mutation EcoCreateSpecies($input: EcoCreateSpeciesInput!) {
|
|
220
|
+
ecoCreateSpecies(input: $input) { ...SpeciesFull }
|
|
221
|
+
}
|
|
222
|
+
`,B=`
|
|
223
|
+
${r}
|
|
224
|
+
mutation EcoUpdateSpecies($id: ID!, $input: EcoUpdateSpeciesInput!) {
|
|
225
|
+
ecoUpdateSpecies(id: $id, input: $input) { ...SpeciesFull }
|
|
226
|
+
}
|
|
227
|
+
`,V=`
|
|
228
|
+
mutation EcoArchiveSpecies($id: ID!) { ecoArchiveSpecies(id: $id) }
|
|
229
|
+
`,k=`
|
|
230
|
+
${y}
|
|
231
|
+
query EcoListObservations($pagination: PaginationInput, $siteId: ID, $speciesId: ID) {
|
|
232
|
+
ecoListObservations(pagination: $pagination, siteId: $siteId, speciesId: $speciesId) {
|
|
233
|
+
items { ...ObservationFull }
|
|
234
|
+
pageInfo { cursor hasMore }
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`,G=`
|
|
238
|
+
${y}
|
|
239
|
+
mutation EcoRecordObservation($input: EcoRecordObservationInput!) {
|
|
240
|
+
ecoRecordObservation(input: $input) { ...ObservationFull }
|
|
241
|
+
}
|
|
242
|
+
`,K=`
|
|
243
|
+
${n}
|
|
244
|
+
query EcoHabitatProject($id: ID!) {
|
|
245
|
+
ecoHabitatProject(id: $id) { ...HabitatProjectFull }
|
|
246
|
+
}
|
|
247
|
+
`,Y=`
|
|
248
|
+
${n}
|
|
249
|
+
query EcoListHabitatProjects($status: EcoHabitatProjectStatus) {
|
|
250
|
+
ecoListHabitatProjects(status: $status) { ...HabitatProjectFull }
|
|
251
|
+
}
|
|
252
|
+
`,J=`
|
|
253
|
+
${n}
|
|
254
|
+
mutation EcoCreateHabitatProject($input: EcoCreateHabitatProjectInput!) {
|
|
255
|
+
ecoCreateHabitatProject(input: $input) { ...HabitatProjectFull }
|
|
256
|
+
}
|
|
257
|
+
`,z=`
|
|
258
|
+
${n}
|
|
259
|
+
mutation EcoTransitionHabitatProject($id: ID!, $status: EcoHabitatProjectStatus!) {
|
|
260
|
+
ecoTransitionHabitatProject(id: $id, status: $status) { ...HabitatProjectFull }
|
|
261
|
+
}
|
|
262
|
+
`,Q=`
|
|
263
|
+
${_}
|
|
264
|
+
mutation EcoLogRestorationActivity($input: EcoLogRestorationActivityInput!) {
|
|
265
|
+
ecoLogRestorationActivity(input: $input) { ...RestorationActivityFields }
|
|
266
|
+
}
|
|
267
|
+
`,W=`
|
|
268
|
+
${C}
|
|
269
|
+
query EcoListCarbonEntries(
|
|
270
|
+
$pagination: PaginationInput
|
|
271
|
+
$scope: EcoEmissionScope
|
|
272
|
+
$siteId: ID
|
|
273
|
+
$status: EcoCarbonEntryStatus
|
|
274
|
+
) {
|
|
275
|
+
ecoListCarbonEntries(
|
|
276
|
+
pagination: $pagination
|
|
277
|
+
scope: $scope
|
|
278
|
+
siteId: $siteId
|
|
279
|
+
status: $status
|
|
280
|
+
) {
|
|
281
|
+
items { ...CarbonEntryFull }
|
|
282
|
+
pageInfo { cursor hasMore }
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
`,X=`
|
|
286
|
+
${C}
|
|
287
|
+
mutation EcoRecordCarbonEntry($input: EcoRecordCarbonEntryInput!) {
|
|
288
|
+
ecoRecordCarbonEntry(input: $input) { ...CarbonEntryFull }
|
|
289
|
+
}
|
|
290
|
+
`,Z=`
|
|
291
|
+
${C}
|
|
292
|
+
mutation EcoVerifyCarbonEntry($id: ID!) {
|
|
293
|
+
ecoVerifyCarbonEntry(id: $id) { ...CarbonEntryFull }
|
|
294
|
+
}
|
|
295
|
+
`,tt=`
|
|
296
|
+
query EcoCarbonTotalKg($scope: EcoEmissionScope, $siteId: ID) {
|
|
297
|
+
ecoCarbonTotalKg(scope: $scope, siteId: $siteId)
|
|
298
|
+
}
|
|
299
|
+
`,et=`
|
|
300
|
+
${d}
|
|
301
|
+
query EcoListEmissionFactors($activeOnly: Boolean, $scope: EcoEmissionScope) {
|
|
302
|
+
ecoListEmissionFactors(activeOnly: $activeOnly, scope: $scope) { ...EmissionFactorFields }
|
|
303
|
+
}
|
|
304
|
+
`,ot=`
|
|
305
|
+
${d}
|
|
306
|
+
mutation EcoCreateEmissionFactor($input: EcoCreateEmissionFactorInput!) {
|
|
307
|
+
ecoCreateEmissionFactor(input: $input) { ...EmissionFactorFields }
|
|
308
|
+
}
|
|
309
|
+
`,it=`
|
|
310
|
+
${S}
|
|
311
|
+
query EcoListReductionTargets($status: EcoReductionTargetStatus) {
|
|
312
|
+
ecoListReductionTargets(status: $status) { ...ReductionTargetFields }
|
|
313
|
+
}
|
|
314
|
+
`,at=`
|
|
315
|
+
${S}
|
|
316
|
+
mutation EcoCreateReductionTarget($input: EcoCreateReductionTargetInput!) {
|
|
317
|
+
ecoCreateReductionTarget(input: $input) { ...ReductionTargetFields }
|
|
318
|
+
}
|
|
319
|
+
`,ct=`
|
|
320
|
+
${S}
|
|
321
|
+
mutation EcoSetReductionTargetStatus($id: ID!, $status: EcoReductionTargetStatus!) {
|
|
322
|
+
ecoSetReductionTargetStatus(id: $id, status: $status) { ...ReductionTargetFields }
|
|
323
|
+
}
|
|
324
|
+
`,st=`
|
|
325
|
+
${E}
|
|
326
|
+
query EcoReport($id: ID!) { ecoReport(id: $id) { ...ReportFull } }
|
|
327
|
+
`,rt=`
|
|
328
|
+
${E}
|
|
329
|
+
query EcoListReports($pagination: PaginationInput, $status: EcoReportStatus) {
|
|
330
|
+
ecoListReports(pagination: $pagination, status: $status) {
|
|
331
|
+
items { ...ReportFull }
|
|
332
|
+
pageInfo { cursor hasMore }
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
`,nt=`
|
|
336
|
+
${E}
|
|
337
|
+
mutation EcoCreateReport($input: EcoCreateReportInput!) {
|
|
338
|
+
ecoCreateReport(input: $input) { ...ReportFull }
|
|
339
|
+
}
|
|
340
|
+
`,Et=`
|
|
341
|
+
${h}
|
|
342
|
+
mutation EcoAddReportLineItem($input: EcoAddReportLineItemInput!) {
|
|
343
|
+
ecoAddReportLineItem(input: $input) { ...ReportLineItemFields }
|
|
344
|
+
}
|
|
345
|
+
`,pt=`
|
|
346
|
+
${E}
|
|
347
|
+
mutation EcoPublishReport($id: ID!, $fileId: ID) {
|
|
348
|
+
ecoPublishReport(id: $id, fileId: $fileId) { ...ReportFull }
|
|
349
|
+
}
|
|
350
|
+
`,ut="query EcoHealth { ecoHealth }";function dt(p){let{workspace:o}=p.gql;return {sites:{async get(t){return (await o.request($,{id:t})).ecoSite},async list(t,e,i){return (await o.request(g,{pagination:t,status:e,type:i})).ecoListSites},async create(t){return (await o.request(P,{input:t})).ecoCreateSite},async update(t,e){return (await o.request(L,{id:t,input:e})).ecoUpdateSite},async archive(t){return (await o.request(v,{id:t})).ecoArchiveSite}},sensors:{async list(t,e,i){return (await o.request(F,{kind:t,siteId:e,status:i})).ecoListSensors},async create(t){return (await o.request(H,{input:t})).ecoCreateSensor},async setStatus(t,e){return (await o.request(x,{id:t,status:e})).ecoSetSensorStatus}},thresholds:{async list(t){return (await o.request(f,{siteId:t})).ecoListThresholds},async create(t){return (await o.request(N,{input:t})).ecoCreateThreshold},async setActive(t,e){return (await o.request(D,{id:t,isActive:e})).ecoSetThresholdActive}},measurements:{async list(t,e,i,a,u){return (await o.request(q,{siteId:t,sensorId:e,parameter:i,breachesOnly:a,pagination:u})).ecoListMeasurements},async record(t){return (await o.request(w,{input:t})).ecoRecordMeasurement}},species:{async get(t){return (await o.request(M,{id:t})).ecoSpecies},async list(t,e,i,a){return (await o.request(j,{conservationStatus:t,taxonGroup:e,priorityOnly:i,pagination:a})).ecoListSpecies},async create(t){return (await o.request(U,{input:t})).ecoCreateSpecies},async update(t,e){return (await o.request(B,{id:t,input:e})).ecoUpdateSpecies},async archive(t){return (await o.request(V,{id:t})).ecoArchiveSpecies}},observations:{async list(t,e,i){return (await o.request(k,{speciesId:t,siteId:e,pagination:i})).ecoListObservations},async record(t){return (await o.request(G,{input:t})).ecoRecordObservation}},habitatProjects:{async get(t){return (await o.request(K,{id:t})).ecoHabitatProject},async list(t){return (await o.request(Y,{status:t})).ecoListHabitatProjects},async create(t){return (await o.request(J,{input:t})).ecoCreateHabitatProject},async transition(t,e){return (await o.request(z,{id:t,status:e})).ecoTransitionHabitatProject},async logActivity(t){return (await o.request(Q,{input:t})).ecoLogRestorationActivity}},carbon:{async listEntries(t,e,i,a){return (await o.request(W,{scope:t,siteId:e,status:i,pagination:a})).ecoListCarbonEntries},async recordEntry(t){return (await o.request(X,{input:t})).ecoRecordCarbonEntry},async verifyEntry(t){return (await o.request(Z,{id:t})).ecoVerifyCarbonEntry},async totalKg(t,e){return (await o.request(tt,{scope:t,siteId:e})).ecoCarbonTotalKg}},emissionFactors:{async list(t,e){return (await o.request(et,{activeOnly:t,scope:e})).ecoListEmissionFactors},async create(t){return (await o.request(ot,{input:t})).ecoCreateEmissionFactor}},reductionTargets:{async list(t){return (await o.request(it,{status:t})).ecoListReductionTargets},async create(t){return (await o.request(at,{input:t})).ecoCreateReductionTarget},async setStatus(t,e){return (await o.request(ct,{id:t,status:e})).ecoSetReductionTargetStatus}},reports:{async get(t){return (await o.request(st,{id:t})).ecoReport},async list(t,e){return (await o.request(rt,{pagination:t,status:e})).ecoListReports},async create(t){return (await o.request(nt,{input:t})).ecoCreateReport},async addLineItem(t){return (await o.request(Et,{input:t})).ecoAddReportLineItem},async publish(t,e){return (await o.request(pt,{id:t,fileId:e})).ecoPublishReport}},system:{async health(){return (await o.request(ut)).ecoHealth}}}}var mt={id:"ecoimpacthub",version:"1.0.0",displayName:"EcoImpactHub",dependsOn:["auth"],attach(p){return dt(p)}},ft=mt;export{ft as default};
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
'use strict';var I=`
|
|
2
|
+
fragment AgencyScalars on GovAgency {
|
|
3
|
+
id name code description jurisdiction
|
|
4
|
+
contactEmail contactPhone isActive
|
|
5
|
+
tags workspaceId createdAt updatedAt
|
|
6
|
+
}
|
|
7
|
+
`,m=`
|
|
8
|
+
fragment ServiceScalars on GovService {
|
|
9
|
+
id agencyId name slug category status summary eligibility
|
|
10
|
+
feeType feeAmount currency slaDays requiredDocuments formSchema publishedAt
|
|
11
|
+
tags workspaceId createdAt updatedAt
|
|
12
|
+
}
|
|
13
|
+
`,A=`
|
|
14
|
+
fragment DocumentFields on GovDocument {
|
|
15
|
+
id applicationId name requirement status rejectionReason
|
|
16
|
+
file { id }
|
|
17
|
+
workspaceId createdAt updatedAt
|
|
18
|
+
}
|
|
19
|
+
`,l=`
|
|
20
|
+
fragment CaseNoteFields on GovCaseNote {
|
|
21
|
+
id applicationId authorId type body workspaceId createdAt updatedAt
|
|
22
|
+
}
|
|
23
|
+
`,r=`
|
|
24
|
+
fragment PermitFields on GovPermit {
|
|
25
|
+
id title serviceId holderId applicationId status verificationCode
|
|
26
|
+
issuedAt expiresAt revokedAt revokeReason
|
|
27
|
+
file { id }
|
|
28
|
+
workspaceId createdAt updatedAt
|
|
29
|
+
}
|
|
30
|
+
`,tt=`
|
|
31
|
+
fragment ApplicationScalars on GovApplication {
|
|
32
|
+
id reference serviceId citizenId assignedToId status priority formData
|
|
33
|
+
submittedAt decidedAt decisionReason dueDate
|
|
34
|
+
tags workspaceId createdAt updatedAt
|
|
35
|
+
}
|
|
36
|
+
`,s=`
|
|
37
|
+
fragment GrievanceFields on GovGrievance {
|
|
38
|
+
id title description category status priority reporterId assignedToId agencyId
|
|
39
|
+
location latitude longitude photoFileIds resolution resolvedAt
|
|
40
|
+
tags workspaceId createdAt updatedAt
|
|
41
|
+
}
|
|
42
|
+
`,c=`
|
|
43
|
+
fragment PaymentFields on GovPayment {
|
|
44
|
+
id applicationId payerId amount currency status providerRef receiptNumber
|
|
45
|
+
lineItems paidAt refundedAt workspaceId createdAt updatedAt
|
|
46
|
+
}
|
|
47
|
+
`,u=`
|
|
48
|
+
${I}
|
|
49
|
+
${m}
|
|
50
|
+
fragment AgencyFull on GovAgency {
|
|
51
|
+
...AgencyScalars
|
|
52
|
+
services { ...ServiceScalars }
|
|
53
|
+
}
|
|
54
|
+
`,v=`
|
|
55
|
+
${m}
|
|
56
|
+
${I}
|
|
57
|
+
fragment ServiceFull on GovService {
|
|
58
|
+
...ServiceScalars
|
|
59
|
+
agency { ...AgencyScalars }
|
|
60
|
+
}
|
|
61
|
+
`,a=`
|
|
62
|
+
${tt}
|
|
63
|
+
${A}
|
|
64
|
+
${l}
|
|
65
|
+
${r}
|
|
66
|
+
fragment ApplicationFull on GovApplication {
|
|
67
|
+
...ApplicationScalars
|
|
68
|
+
documents { ...DocumentFields }
|
|
69
|
+
notes { ...CaseNoteFields }
|
|
70
|
+
permits { ...PermitFields }
|
|
71
|
+
}
|
|
72
|
+
`,d="pageInfo { cursor hasMore }",y=`
|
|
73
|
+
${u}
|
|
74
|
+
query GovAgency($id: ID!) {
|
|
75
|
+
govAgency(id: $id) { ...AgencyFull }
|
|
76
|
+
}
|
|
77
|
+
`,P=`
|
|
78
|
+
${u}
|
|
79
|
+
query GovListAgencies($isActive: Boolean, $pagination: PaginationInput) {
|
|
80
|
+
govListAgencies(isActive: $isActive, pagination: $pagination) { ...AgencyFull }
|
|
81
|
+
}
|
|
82
|
+
`,S=`
|
|
83
|
+
${u}
|
|
84
|
+
mutation GovCreateAgency($input: GovCreateAgencyInput!) {
|
|
85
|
+
govCreateAgency(input: $input) { ...AgencyFull }
|
|
86
|
+
}
|
|
87
|
+
`,$=`
|
|
88
|
+
${u}
|
|
89
|
+
mutation GovUpdateAgency($id: ID!, $input: GovUpdateAgencyInput!) {
|
|
90
|
+
govUpdateAgency(id: $id, input: $input) { ...AgencyFull }
|
|
91
|
+
}
|
|
92
|
+
`,C=`
|
|
93
|
+
mutation GovArchiveAgency($id: ID!) {
|
|
94
|
+
govArchiveAgency(id: $id)
|
|
95
|
+
}
|
|
96
|
+
`,E=`
|
|
97
|
+
${v}
|
|
98
|
+
query GovService($id: ID!) {
|
|
99
|
+
govService(id: $id) { ...ServiceFull }
|
|
100
|
+
}
|
|
101
|
+
`,T=`
|
|
102
|
+
${v}
|
|
103
|
+
query GovListServices(
|
|
104
|
+
$agencyId: ID
|
|
105
|
+
$category: GovServiceCategory
|
|
106
|
+
$pagination: PaginationInput
|
|
107
|
+
$status: GovServiceStatus
|
|
108
|
+
) {
|
|
109
|
+
govListServices(
|
|
110
|
+
agencyId: $agencyId
|
|
111
|
+
category: $category
|
|
112
|
+
pagination: $pagination
|
|
113
|
+
status: $status
|
|
114
|
+
) {
|
|
115
|
+
items { ...ServiceFull }
|
|
116
|
+
${d}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`,N=`
|
|
120
|
+
${v}
|
|
121
|
+
mutation GovCreateService($input: GovCreateServiceInput!) {
|
|
122
|
+
govCreateService(input: $input) { ...ServiceFull }
|
|
123
|
+
}
|
|
124
|
+
`,R=`
|
|
125
|
+
${v}
|
|
126
|
+
mutation GovUpdateService($id: ID!, $input: GovUpdateServiceInput!) {
|
|
127
|
+
govUpdateService(id: $id, input: $input) { ...ServiceFull }
|
|
128
|
+
}
|
|
129
|
+
`,D=`
|
|
130
|
+
${v}
|
|
131
|
+
mutation GovTransitionService($id: ID!, $status: GovServiceStatus!) {
|
|
132
|
+
govTransitionService(id: $id, status: $status) { ...ServiceFull }
|
|
133
|
+
}
|
|
134
|
+
`,_=`
|
|
135
|
+
${a}
|
|
136
|
+
query GovApplication($id: ID!) {
|
|
137
|
+
govApplication(id: $id) { ...ApplicationFull }
|
|
138
|
+
}
|
|
139
|
+
`,L=`
|
|
140
|
+
${a}
|
|
141
|
+
query GovListApplications(
|
|
142
|
+
$assignedToId: ID
|
|
143
|
+
$citizenId: ID
|
|
144
|
+
$pagination: PaginationInput
|
|
145
|
+
$serviceId: ID
|
|
146
|
+
$status: GovApplicationStatus
|
|
147
|
+
) {
|
|
148
|
+
govListApplications(
|
|
149
|
+
assignedToId: $assignedToId
|
|
150
|
+
citizenId: $citizenId
|
|
151
|
+
pagination: $pagination
|
|
152
|
+
serviceId: $serviceId
|
|
153
|
+
status: $status
|
|
154
|
+
) {
|
|
155
|
+
items { ...ApplicationFull }
|
|
156
|
+
${d}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`,f=`
|
|
160
|
+
${a}
|
|
161
|
+
mutation GovCreateApplication($input: GovCreateApplicationInput!) {
|
|
162
|
+
govCreateApplication(input: $input) { ...ApplicationFull }
|
|
163
|
+
}
|
|
164
|
+
`,F=`
|
|
165
|
+
${a}
|
|
166
|
+
mutation GovUpdateApplication($id: ID!, $input: GovUpdateApplicationInput!) {
|
|
167
|
+
govUpdateApplication(id: $id, input: $input) { ...ApplicationFull }
|
|
168
|
+
}
|
|
169
|
+
`,U=`
|
|
170
|
+
${a}
|
|
171
|
+
mutation GovSubmitApplication($id: ID!) {
|
|
172
|
+
govSubmitApplication(id: $id) { ...ApplicationFull }
|
|
173
|
+
}
|
|
174
|
+
`,x=`
|
|
175
|
+
${a}
|
|
176
|
+
mutation GovTransitionApplication($id: ID!, $status: GovApplicationStatus!, $reason: String) {
|
|
177
|
+
govTransitionApplication(id: $id, status: $status, reason: $reason) { ...ApplicationFull }
|
|
178
|
+
}
|
|
179
|
+
`,q=`
|
|
180
|
+
${A}
|
|
181
|
+
mutation GovAddDocument($input: GovAddDocumentInput!) {
|
|
182
|
+
govAddDocument(input: $input) { ...DocumentFields }
|
|
183
|
+
}
|
|
184
|
+
`,w=`
|
|
185
|
+
${A}
|
|
186
|
+
mutation GovReviewDocument($id: ID!, $status: GovDocumentStatus!, $rejectionReason: String) {
|
|
187
|
+
govReviewDocument(id: $id, status: $status, rejectionReason: $rejectionReason) {
|
|
188
|
+
...DocumentFields
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,M=`
|
|
192
|
+
${l}
|
|
193
|
+
mutation GovAddCaseNote($input: GovAddCaseNoteInput!) {
|
|
194
|
+
govAddCaseNote(input: $input) { ...CaseNoteFields }
|
|
195
|
+
}
|
|
196
|
+
`,V=`
|
|
197
|
+
${s}
|
|
198
|
+
query GovGrievance($id: ID!) {
|
|
199
|
+
govGrievance(id: $id) { ...GrievanceFields }
|
|
200
|
+
}
|
|
201
|
+
`,h=`
|
|
202
|
+
${s}
|
|
203
|
+
query GovListGrievances(
|
|
204
|
+
$agencyId: ID
|
|
205
|
+
$pagination: PaginationInput
|
|
206
|
+
$reporterId: ID
|
|
207
|
+
$status: GovGrievanceStatus
|
|
208
|
+
) {
|
|
209
|
+
govListGrievances(
|
|
210
|
+
agencyId: $agencyId
|
|
211
|
+
pagination: $pagination
|
|
212
|
+
reporterId: $reporterId
|
|
213
|
+
status: $status
|
|
214
|
+
) {
|
|
215
|
+
items { ...GrievanceFields }
|
|
216
|
+
${d}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
`,O=`
|
|
220
|
+
${s}
|
|
221
|
+
mutation GovReportGrievance($input: GovReportGrievanceInput!) {
|
|
222
|
+
govReportGrievance(input: $input) { ...GrievanceFields }
|
|
223
|
+
}
|
|
224
|
+
`,k=`
|
|
225
|
+
${s}
|
|
226
|
+
mutation GovUpdateGrievance($id: ID!, $input: GovUpdateGrievanceInput!) {
|
|
227
|
+
govUpdateGrievance(id: $id, input: $input) { ...GrievanceFields }
|
|
228
|
+
}
|
|
229
|
+
`,b=`
|
|
230
|
+
${s}
|
|
231
|
+
mutation GovTransitionGrievance($id: ID!, $status: GovGrievanceStatus!, $resolution: String) {
|
|
232
|
+
govTransitionGrievance(id: $id, status: $status, resolution: $resolution) {
|
|
233
|
+
...GrievanceFields
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`,Y=`
|
|
237
|
+
${r}
|
|
238
|
+
query GovListPermits($holderId: ID, $serviceId: ID, $status: GovPermitStatus) {
|
|
239
|
+
govListPermits(holderId: $holderId, serviceId: $serviceId, status: $status) {
|
|
240
|
+
...PermitFields
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
`,z=`
|
|
244
|
+
${r}
|
|
245
|
+
mutation GovIssuePermit($input: GovIssuePermitInput!) {
|
|
246
|
+
govIssuePermit(input: $input) { ...PermitFields }
|
|
247
|
+
}
|
|
248
|
+
`,H=`
|
|
249
|
+
${r}
|
|
250
|
+
mutation GovRevokePermit($id: ID!, $reason: String) {
|
|
251
|
+
govRevokePermit(id: $id, reason: $reason) { ...PermitFields }
|
|
252
|
+
}
|
|
253
|
+
`,j=`
|
|
254
|
+
${r}
|
|
255
|
+
query GovVerifyPermit($verificationCode: String!) {
|
|
256
|
+
govVerifyPermit(verificationCode: $verificationCode) { ...PermitFields }
|
|
257
|
+
}
|
|
258
|
+
`,K=`
|
|
259
|
+
${c}
|
|
260
|
+
query GovPayment($id: ID!) {
|
|
261
|
+
govPayment(id: $id) { ...PaymentFields }
|
|
262
|
+
}
|
|
263
|
+
`,B=`
|
|
264
|
+
${c}
|
|
265
|
+
query GovListPayments(
|
|
266
|
+
$applicationId: ID
|
|
267
|
+
$pagination: PaginationInput
|
|
268
|
+
$payerId: ID
|
|
269
|
+
$status: GovPaymentStatus
|
|
270
|
+
) {
|
|
271
|
+
govListPayments(
|
|
272
|
+
applicationId: $applicationId
|
|
273
|
+
pagination: $pagination
|
|
274
|
+
payerId: $payerId
|
|
275
|
+
status: $status
|
|
276
|
+
) {
|
|
277
|
+
items { ...PaymentFields }
|
|
278
|
+
${d}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
`,W=`
|
|
282
|
+
${c}
|
|
283
|
+
mutation GovCreatePayment($input: GovCreatePaymentInput!) {
|
|
284
|
+
govCreatePayment(input: $input) { ...PaymentFields }
|
|
285
|
+
}
|
|
286
|
+
`,J=`
|
|
287
|
+
${c}
|
|
288
|
+
mutation GovMarkPaymentPaid($id: ID!, $providerRef: String) {
|
|
289
|
+
govMarkPaymentPaid(id: $id, providerRef: $providerRef) { ...PaymentFields }
|
|
290
|
+
}
|
|
291
|
+
`,Q=`
|
|
292
|
+
${c}
|
|
293
|
+
mutation GovRefundPayment($id: ID!) {
|
|
294
|
+
govRefundPayment(id: $id) { ...PaymentFields }
|
|
295
|
+
}
|
|
296
|
+
`,X="query GovHealth { govHealth }";function Z(G){let{workspace:i}=G.gql;return {agencies:{async get(t){return (await i.request(y,{id:t})).govAgency},async list(t,e){return (await i.request(P,{isActive:t,pagination:e})).govListAgencies},async create(t){return (await i.request(S,{input:t})).govCreateAgency},async update(t,e){return (await i.request($,{id:t,input:e})).govUpdateAgency},async archive(t){return (await i.request(C,{id:t})).govArchiveAgency}},services:{async get(t){return (await i.request(E,{id:t})).govService},async list(t,e,o,n){return (await i.request(T,{agencyId:t,category:e,pagination:o,status:n})).govListServices},async create(t){return (await i.request(N,{input:t})).govCreateService},async update(t,e){return (await i.request(R,{id:t,input:e})).govUpdateService},async transition(t,e){return (await i.request(D,{id:t,status:e})).govTransitionService}},applications:{async get(t){return (await i.request(_,{id:t})).govApplication},async list(t,e,o,n,p){return (await i.request(L,{assignedToId:t,citizenId:e,pagination:o,serviceId:n,status:p})).govListApplications},async create(t){return (await i.request(f,{input:t})).govCreateApplication},async update(t,e){return (await i.request(F,{id:t,input:e})).govUpdateApplication},async submit(t){return (await i.request(U,{id:t})).govSubmitApplication},async transition(t,e,o){return (await i.request(x,{id:t,status:e,reason:o})).govTransitionApplication}},documents:{async add(t){return (await i.request(q,{input:t})).govAddDocument},async review(t,e,o){return (await i.request(w,{id:t,status:e,rejectionReason:o})).govReviewDocument}},caseNotes:{async add(t){return (await i.request(M,{input:t})).govAddCaseNote}},grievances:{async get(t){return (await i.request(V,{id:t})).govGrievance},async list(t,e,o,n){return (await i.request(h,{agencyId:t,pagination:e,reporterId:o,status:n})).govListGrievances},async report(t){return (await i.request(O,{input:t})).govReportGrievance},async update(t,e){return (await i.request(k,{id:t,input:e})).govUpdateGrievance},async transition(t,e,o){return (await i.request(b,{id:t,status:e,resolution:o})).govTransitionGrievance}},permits:{async list(t,e,o){return (await i.request(Y,{holderId:t,serviceId:e,status:o})).govListPermits},async issue(t){return (await i.request(z,{input:t})).govIssuePermit},async revoke(t,e){return (await i.request(H,{id:t,reason:e})).govRevokePermit},async verify(t){return (await i.request(j,{verificationCode:t})).govVerifyPermit}},payments:{async get(t){return (await i.request(K,{id:t})).govPayment},async list(t,e,o,n){return (await i.request(B,{applicationId:t,pagination:e,payerId:o,status:n})).govListPayments},async create(t){return (await i.request(W,{input:t})).govCreatePayment},async markPaid(t,e){return (await i.request(J,{id:t,providerRef:e})).govMarkPaymentPaid},async refund(t){return (await i.request(Q,{id:t})).govRefundPayment}},system:{async health(){return (await i.request(X)).govHealth}}}}var et={id:"govcitizenhub",version:"1.0.0",displayName:"GovCitizenHub",dependsOn:["auth"],attach(G){return Z(G)}},lt=et;module.exports=lt;
|