@burdenoff/sdk-libs 2026.627.3 → 2026.627.5
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/dist/modules/mybodyshield/index.cjs +259 -0
- package/dist/modules/mybodyshield/index.d.cts +455 -0
- package/dist/modules/mybodyshield/index.d.ts +455 -0
- package/dist/modules/mybodyshield/index.js +259 -0
- package/dist/modules/semanticfed/index.cjs +283 -0
- package/dist/modules/semanticfed/index.d.cts +404 -0
- package/dist/modules/semanticfed/index.d.ts +404 -0
- package/dist/modules/semanticfed/index.js +283 -0
- package/dist/modules/technospam/index.cjs +344 -0
- package/dist/modules/technospam/index.d.cts +436 -0
- package/dist/modules/technospam/index.d.ts +436 -0
- package/dist/modules/technospam/index.js +344 -0
- package/dist/modules/theculturepost/index.cjs +267 -0
- package/dist/modules/theculturepost/index.d.cts +344 -0
- package/dist/modules/theculturepost/index.d.ts +344 -0
- package/dist/modules/theculturepost/index.js +267 -0
- package/dist/modules/theglobalfuel/index.cjs +265 -0
- package/dist/modules/theglobalfuel/index.d.cts +395 -0
- package/dist/modules/theglobalfuel/index.d.ts +395 -0
- package/dist/modules/theglobalfuel/index.js +265 -0
- package/package.json +1 -1
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
var O=`
|
|
2
|
+
fragment AssetScalars on ManAsset {
|
|
3
|
+
id assetTag name status manufacturer model serialNumber
|
|
4
|
+
pmIntervalHours runningHours installedAt lastServicedAt workCenterId
|
|
5
|
+
tags workspaceId createdAt updatedAt
|
|
6
|
+
}
|
|
7
|
+
`,N=`
|
|
8
|
+
fragment MaintenanceScalars on ManMaintenanceWorkOrder {
|
|
9
|
+
id woNumber title assetId status type description technicianId
|
|
10
|
+
scheduledFor startedAt completedAt laborMinutes downtimeMinutes
|
|
11
|
+
workspaceId createdAt updatedAt
|
|
12
|
+
}
|
|
13
|
+
`,S=`
|
|
14
|
+
fragment WorkCenterScalars on ManWorkCenter {
|
|
15
|
+
id code name type description capacityHours idealRunRate isActive
|
|
16
|
+
tags workspaceId createdAt updatedAt
|
|
17
|
+
}
|
|
18
|
+
`,p=`
|
|
19
|
+
fragment OperationScalars on ManProductionOperation {
|
|
20
|
+
id name productionOrderId sequence status workCenterId operatorId
|
|
21
|
+
setupMinutes runMinutes goodCount scrapCount startedAt completedAt
|
|
22
|
+
workspaceId createdAt updatedAt
|
|
23
|
+
}
|
|
24
|
+
`,dn=`
|
|
25
|
+
fragment OrderScalars on ManProductionOrder {
|
|
26
|
+
id orderNumber productName productSku status priority quantity quantityDone uom
|
|
27
|
+
erpReference notes dueDate plannedStart plannedEnd actualStart actualEnd
|
|
28
|
+
tags workspaceId createdAt updatedAt
|
|
29
|
+
}
|
|
30
|
+
`,P=`
|
|
31
|
+
fragment MaterialLotScalars on ManMaterialLot {
|
|
32
|
+
id lotNumber materialName materialSku status quantity uom supplier
|
|
33
|
+
productionOrderId parentLotId receivedAt expiresAt
|
|
34
|
+
tags workspaceId createdAt updatedAt
|
|
35
|
+
}
|
|
36
|
+
`,M=`
|
|
37
|
+
fragment InspectionPlanFields on ManInspectionPlan {
|
|
38
|
+
id code name stage description productSku characteristics isActive
|
|
39
|
+
workspaceId createdAt updatedAt
|
|
40
|
+
}
|
|
41
|
+
`,E=`
|
|
42
|
+
fragment InspectionScalars on ManQualityInspection {
|
|
43
|
+
id stage result sampleSize defectCount inspectionPlanId productionOrderId
|
|
44
|
+
materialLotId workCenterId inspectorId measurements notes inspectedAt
|
|
45
|
+
workspaceId createdAt updatedAt
|
|
46
|
+
}
|
|
47
|
+
`,R=`
|
|
48
|
+
fragment NonConformanceScalars on ManNonConformance {
|
|
49
|
+
id ncrNumber title severity status disposition description rootCause
|
|
50
|
+
correctiveAction quantityAffected inspectionId ownerId dueDate resolvedAt
|
|
51
|
+
tags workspaceId createdAt updatedAt
|
|
52
|
+
}
|
|
53
|
+
`,$=`
|
|
54
|
+
fragment DowntimeFields on ManDowntimeEvent {
|
|
55
|
+
id reason durationMinutes startedAt endedAt description
|
|
56
|
+
assetId workCenterId productionOrderId workspaceId createdAt updatedAt
|
|
57
|
+
}
|
|
58
|
+
`,c=`
|
|
59
|
+
${O}
|
|
60
|
+
${N}
|
|
61
|
+
fragment AssetFull on ManAsset {
|
|
62
|
+
...AssetScalars
|
|
63
|
+
workOrders { ...MaintenanceScalars }
|
|
64
|
+
}
|
|
65
|
+
`,m=`
|
|
66
|
+
${N}
|
|
67
|
+
${O}
|
|
68
|
+
fragment MaintenanceFull on ManMaintenanceWorkOrder {
|
|
69
|
+
...MaintenanceScalars
|
|
70
|
+
asset { ...AssetScalars }
|
|
71
|
+
}
|
|
72
|
+
`,d=`
|
|
73
|
+
${S}
|
|
74
|
+
${p}
|
|
75
|
+
fragment WorkCenterFull on ManWorkCenter {
|
|
76
|
+
...WorkCenterScalars
|
|
77
|
+
operations { ...OperationScalars }
|
|
78
|
+
}
|
|
79
|
+
`,T=`
|
|
80
|
+
${p}
|
|
81
|
+
${S}
|
|
82
|
+
fragment OperationFull on ManProductionOperation {
|
|
83
|
+
...OperationScalars
|
|
84
|
+
workCenter { ...WorkCenterScalars }
|
|
85
|
+
}
|
|
86
|
+
`,i=`
|
|
87
|
+
${dn}
|
|
88
|
+
${P}
|
|
89
|
+
${p}
|
|
90
|
+
fragment OrderFull on ManProductionOrder {
|
|
91
|
+
...OrderScalars
|
|
92
|
+
materialLots { ...MaterialLotScalars }
|
|
93
|
+
operations { ...OperationScalars }
|
|
94
|
+
}
|
|
95
|
+
`,I=`
|
|
96
|
+
${P}
|
|
97
|
+
fragment MaterialLotFull on ManMaterialLot {
|
|
98
|
+
...MaterialLotScalars
|
|
99
|
+
parentLot { ...MaterialLotScalars }
|
|
100
|
+
childLots { ...MaterialLotScalars }
|
|
101
|
+
}
|
|
102
|
+
`,C=`
|
|
103
|
+
${E}
|
|
104
|
+
${M}
|
|
105
|
+
${R}
|
|
106
|
+
fragment InspectionFull on ManQualityInspection {
|
|
107
|
+
...InspectionScalars
|
|
108
|
+
inspectionPlan { ...InspectionPlanFields }
|
|
109
|
+
nonConformances { ...NonConformanceScalars }
|
|
110
|
+
}
|
|
111
|
+
`,s=`
|
|
112
|
+
${R}
|
|
113
|
+
${E}
|
|
114
|
+
fragment NonConformanceFull on ManNonConformance {
|
|
115
|
+
...NonConformanceScalars
|
|
116
|
+
inspection { ...InspectionScalars }
|
|
117
|
+
}
|
|
118
|
+
`,o="pageInfo { cursor hasMore }",L=`
|
|
119
|
+
${c}
|
|
120
|
+
query ManAsset($id: ID!) {
|
|
121
|
+
manAsset(id: $id) { ...AssetFull }
|
|
122
|
+
}
|
|
123
|
+
`,_=`
|
|
124
|
+
${c}
|
|
125
|
+
query ManListAssets($pagination: PaginationInput, $status: ManAssetStatus, $workCenterId: ID) {
|
|
126
|
+
manListAssets(pagination: $pagination, status: $status, workCenterId: $workCenterId) {
|
|
127
|
+
items { ...AssetFull }
|
|
128
|
+
${o}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`,f=`
|
|
132
|
+
${c}
|
|
133
|
+
mutation ManCreateAsset($input: ManCreateAssetInput!) {
|
|
134
|
+
manCreateAsset(input: $input) { ...AssetFull }
|
|
135
|
+
}
|
|
136
|
+
`,k=`
|
|
137
|
+
${c}
|
|
138
|
+
mutation ManUpdateAsset($id: ID!, $input: ManUpdateAssetInput!) {
|
|
139
|
+
manUpdateAsset(id: $id, input: $input) { ...AssetFull }
|
|
140
|
+
}
|
|
141
|
+
`,g=`
|
|
142
|
+
${i}
|
|
143
|
+
query ManProductionOrder($id: ID!) {
|
|
144
|
+
manProductionOrder(id: $id) { ...OrderFull }
|
|
145
|
+
}
|
|
146
|
+
`,y=`
|
|
147
|
+
${i}
|
|
148
|
+
query ManListProductionOrders(
|
|
149
|
+
$pagination: PaginationInput
|
|
150
|
+
$productSku: String
|
|
151
|
+
$status: ManProductionOrderStatus
|
|
152
|
+
) {
|
|
153
|
+
manListProductionOrders(pagination: $pagination, productSku: $productSku, status: $status) {
|
|
154
|
+
items { ...OrderFull }
|
|
155
|
+
${o}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
`,D=`
|
|
159
|
+
${i}
|
|
160
|
+
mutation ManCreateProductionOrder($input: ManCreateProductionOrderInput!) {
|
|
161
|
+
manCreateProductionOrder(input: $input) { ...OrderFull }
|
|
162
|
+
}
|
|
163
|
+
`,W=`
|
|
164
|
+
${i}
|
|
165
|
+
mutation ManUpdateProductionOrder($id: ID!, $input: ManUpdateProductionOrderInput!) {
|
|
166
|
+
manUpdateProductionOrder(id: $id, input: $input) { ...OrderFull }
|
|
167
|
+
}
|
|
168
|
+
`,w=`
|
|
169
|
+
${i}
|
|
170
|
+
mutation ManTransitionProductionOrder($id: ID!, $status: ManProductionOrderStatus!) {
|
|
171
|
+
manTransitionProductionOrder(id: $id, status: $status) { ...OrderFull }
|
|
172
|
+
}
|
|
173
|
+
`,F=`
|
|
174
|
+
${T}
|
|
175
|
+
mutation ManAddOperation($input: ManCreateOperationInput!) {
|
|
176
|
+
manAddOperation(input: $input) { ...OperationFull }
|
|
177
|
+
}
|
|
178
|
+
`,U=`
|
|
179
|
+
${T}
|
|
180
|
+
mutation ManRecordOperation($id: ID!, $input: ManRecordOperationInput!) {
|
|
181
|
+
manRecordOperation(id: $id, input: $input) { ...OperationFull }
|
|
182
|
+
}
|
|
183
|
+
`,q=`
|
|
184
|
+
${d}
|
|
185
|
+
query ManWorkCenter($id: ID!) {
|
|
186
|
+
manWorkCenter(id: $id) { ...WorkCenterFull }
|
|
187
|
+
}
|
|
188
|
+
`,x=`
|
|
189
|
+
${d}
|
|
190
|
+
query ManListWorkCenters($isActive: Boolean) {
|
|
191
|
+
manListWorkCenters(isActive: $isActive) { ...WorkCenterFull }
|
|
192
|
+
}
|
|
193
|
+
`,v=`
|
|
194
|
+
${d}
|
|
195
|
+
mutation ManCreateWorkCenter($input: ManCreateWorkCenterInput!) {
|
|
196
|
+
manCreateWorkCenter(input: $input) { ...WorkCenterFull }
|
|
197
|
+
}
|
|
198
|
+
`,h=`
|
|
199
|
+
${d}
|
|
200
|
+
mutation ManUpdateWorkCenter($id: ID!, $input: ManUpdateWorkCenterInput!) {
|
|
201
|
+
manUpdateWorkCenter(id: $id, input: $input) { ...WorkCenterFull }
|
|
202
|
+
}
|
|
203
|
+
`,K=`
|
|
204
|
+
mutation ManArchiveWorkCenter($id: ID!) {
|
|
205
|
+
manArchiveWorkCenter(id: $id)
|
|
206
|
+
}
|
|
207
|
+
`,H=`
|
|
208
|
+
${m}
|
|
209
|
+
query ManListMaintenanceWorkOrders(
|
|
210
|
+
$assetId: ID
|
|
211
|
+
$pagination: PaginationInput
|
|
212
|
+
$status: ManMaintenanceStatus
|
|
213
|
+
) {
|
|
214
|
+
manListMaintenanceWorkOrders(assetId: $assetId, pagination: $pagination, status: $status) {
|
|
215
|
+
items { ...MaintenanceFull }
|
|
216
|
+
${o}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
`,Q=`
|
|
220
|
+
${m}
|
|
221
|
+
mutation ManCreateMaintenanceWorkOrder($input: ManCreateMaintenanceWorkOrderInput!) {
|
|
222
|
+
manCreateMaintenanceWorkOrder(input: $input) { ...MaintenanceFull }
|
|
223
|
+
}
|
|
224
|
+
`,G=`
|
|
225
|
+
${m}
|
|
226
|
+
mutation ManTransitionMaintenanceWorkOrder($id: ID!, $status: ManMaintenanceStatus!) {
|
|
227
|
+
manTransitionMaintenanceWorkOrder(id: $id, status: $status) { ...MaintenanceFull }
|
|
228
|
+
}
|
|
229
|
+
`,b=`
|
|
230
|
+
${I}
|
|
231
|
+
query ManListMaterialLots(
|
|
232
|
+
$pagination: PaginationInput
|
|
233
|
+
$productionOrderId: ID
|
|
234
|
+
$status: ManMaterialLotStatus
|
|
235
|
+
) {
|
|
236
|
+
manListMaterialLots(
|
|
237
|
+
pagination: $pagination
|
|
238
|
+
productionOrderId: $productionOrderId
|
|
239
|
+
status: $status
|
|
240
|
+
) {
|
|
241
|
+
items { ...MaterialLotFull }
|
|
242
|
+
${o}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
`,j=`
|
|
246
|
+
${I}
|
|
247
|
+
mutation ManCreateMaterialLot($input: ManCreateMaterialLotInput!) {
|
|
248
|
+
manCreateMaterialLot(input: $input) { ...MaterialLotFull }
|
|
249
|
+
}
|
|
250
|
+
`,V=`
|
|
251
|
+
${I}
|
|
252
|
+
mutation ManSetMaterialLotStatus($id: ID!, $status: ManMaterialLotStatus!) {
|
|
253
|
+
manSetMaterialLotStatus(id: $id, status: $status) { ...MaterialLotFull }
|
|
254
|
+
}
|
|
255
|
+
`,B=`
|
|
256
|
+
${M}
|
|
257
|
+
query ManListInspectionPlans($isActive: Boolean, $stage: ManInspectionStage) {
|
|
258
|
+
manListInspectionPlans(isActive: $isActive, stage: $stage) { ...InspectionPlanFields }
|
|
259
|
+
}
|
|
260
|
+
`,z=`
|
|
261
|
+
${M}
|
|
262
|
+
mutation ManCreateInspectionPlan($input: ManCreateInspectionPlanInput!) {
|
|
263
|
+
manCreateInspectionPlan(input: $input) { ...InspectionPlanFields }
|
|
264
|
+
}
|
|
265
|
+
`,J=`
|
|
266
|
+
${C}
|
|
267
|
+
query ManInspection($id: ID!) {
|
|
268
|
+
manInspection(id: $id) { ...InspectionFull }
|
|
269
|
+
}
|
|
270
|
+
`,X=`
|
|
271
|
+
${C}
|
|
272
|
+
query ManListInspections(
|
|
273
|
+
$pagination: PaginationInput
|
|
274
|
+
$productionOrderId: ID
|
|
275
|
+
$result: ManInspectionResult
|
|
276
|
+
) {
|
|
277
|
+
manListInspections(
|
|
278
|
+
pagination: $pagination
|
|
279
|
+
productionOrderId: $productionOrderId
|
|
280
|
+
result: $result
|
|
281
|
+
) {
|
|
282
|
+
items { ...InspectionFull }
|
|
283
|
+
${o}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
`,Y=`
|
|
287
|
+
${C}
|
|
288
|
+
mutation ManRecordInspection($input: ManRecordInspectionInput!) {
|
|
289
|
+
manRecordInspection(input: $input) { ...InspectionFull }
|
|
290
|
+
}
|
|
291
|
+
`,Z=`
|
|
292
|
+
${s}
|
|
293
|
+
query ManNonConformance($id: ID!) {
|
|
294
|
+
manNonConformance(id: $id) { ...NonConformanceFull }
|
|
295
|
+
}
|
|
296
|
+
`,nn=`
|
|
297
|
+
${s}
|
|
298
|
+
query ManListNonConformances(
|
|
299
|
+
$pagination: PaginationInput
|
|
300
|
+
$severity: ManSeverity
|
|
301
|
+
$status: ManNonConformanceStatus
|
|
302
|
+
) {
|
|
303
|
+
manListNonConformances(pagination: $pagination, severity: $severity, status: $status) {
|
|
304
|
+
items { ...NonConformanceFull }
|
|
305
|
+
${o}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
`,tn=`
|
|
309
|
+
${s}
|
|
310
|
+
mutation ManRaiseNonConformance($input: ManRaiseNonConformanceInput!) {
|
|
311
|
+
manRaiseNonConformance(input: $input) { ...NonConformanceFull }
|
|
312
|
+
}
|
|
313
|
+
`,an=`
|
|
314
|
+
${s}
|
|
315
|
+
mutation ManUpdateNonConformance($id: ID!, $input: ManUpdateNonConformanceInput!) {
|
|
316
|
+
manUpdateNonConformance(id: $id, input: $input) { ...NonConformanceFull }
|
|
317
|
+
}
|
|
318
|
+
`,en=`
|
|
319
|
+
${s}
|
|
320
|
+
mutation ManTransitionNonConformance($id: ID!, $status: ManNonConformanceStatus!) {
|
|
321
|
+
manTransitionNonConformance(id: $id, status: $status) { ...NonConformanceFull }
|
|
322
|
+
}
|
|
323
|
+
`,rn=`
|
|
324
|
+
${$}
|
|
325
|
+
query ManListDowntimeEvents($assetId: ID, $reason: ManDowntimeReason, $workCenterId: ID) {
|
|
326
|
+
manListDowntimeEvents(assetId: $assetId, reason: $reason, workCenterId: $workCenterId) {
|
|
327
|
+
...DowntimeFields
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
`,on=`
|
|
331
|
+
${$}
|
|
332
|
+
mutation ManRecordDowntime($input: ManRecordDowntimeInput!) {
|
|
333
|
+
manRecordDowntime(input: $input) { ...DowntimeFields }
|
|
334
|
+
}
|
|
335
|
+
`,sn="query ManHealth { manHealth }";function cn(u){let{workspace:a}=u.gql;return {assets:{async get(n){return (await a.request(L,{id:n})).manAsset},async list(n,t,e){return (await a.request(_,{pagination:n,status:t,workCenterId:e})).manListAssets},async create(n){return (await a.request(f,{input:n})).manCreateAsset},async update(n,t){return (await a.request(k,{id:n,input:t})).manUpdateAsset}},workCenters:{async get(n){return (await a.request(q,{id:n})).manWorkCenter},async list(n){return (await a.request(x,{isActive:n})).manListWorkCenters},async create(n){return (await a.request(v,{input:n})).manCreateWorkCenter},async update(n,t){return (await a.request(h,{id:n,input:t})).manUpdateWorkCenter},async archive(n){return (await a.request(K,{id:n})).manArchiveWorkCenter}},productionOrders:{async get(n){return (await a.request(g,{id:n})).manProductionOrder},async list(n,t,e){return (await a.request(y,{pagination:n,status:t,productSku:e})).manListProductionOrders},async create(n){return (await a.request(D,{input:n})).manCreateProductionOrder},async update(n,t){return (await a.request(W,{id:n,input:t})).manUpdateProductionOrder},async transition(n,t){return (await a.request(w,{id:n,status:t})).manTransitionProductionOrder}},operations:{async add(n){return (await a.request(F,{input:n})).manAddOperation},async record(n,t){return (await a.request(U,{id:n,input:t})).manRecordOperation}},maintenance:{async list(n,t,e){return (await a.request(H,{assetId:n,pagination:t,status:e})).manListMaintenanceWorkOrders},async create(n){return (await a.request(Q,{input:n})).manCreateMaintenanceWorkOrder},async transition(n,t){return (await a.request(G,{id:n,status:t})).manTransitionMaintenanceWorkOrder}},materialLots:{async list(n,t,e){return (await a.request(b,{pagination:n,productionOrderId:t,status:e})).manListMaterialLots},async create(n){return (await a.request(j,{input:n})).manCreateMaterialLot},async setStatus(n,t){return (await a.request(V,{id:n,status:t})).manSetMaterialLotStatus}},inspectionPlans:{async list(n,t){return (await a.request(B,{isActive:n,stage:t})).manListInspectionPlans},async create(n){return (await a.request(z,{input:n})).manCreateInspectionPlan}},inspections:{async get(n){return (await a.request(J,{id:n})).manInspection},async list(n,t,e){return (await a.request(X,{pagination:n,productionOrderId:t,result:e})).manListInspections},async record(n){return (await a.request(Y,{input:n})).manRecordInspection}},nonConformances:{async get(n){return (await a.request(Z,{id:n})).manNonConformance},async list(n,t,e){return (await a.request(nn,{pagination:n,severity:t,status:e})).manListNonConformances},async raise(n){return (await a.request(tn,{input:n})).manRaiseNonConformance},async update(n,t){return (await a.request(an,{id:n,input:t})).manUpdateNonConformance},async transition(n,t){return (await a.request(en,{id:n,status:t})).manTransitionNonConformance}},downtime:{async list(n,t,e){return (await a.request(rn,{assetId:n,reason:t,workCenterId:e})).manListDowntimeEvents},async record(n){return (await a.request(on,{input:n})).manRecordDowntime}},system:{async health(){return (await a.request(sn)).manHealth}}}}var un={id:"manufacturedops",version:"1.0.0",displayName:"ManufacturedOps",dependsOn:["auth"],attach(u){return cn(u)}},fn=un;export{fn as default};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
'use strict';var m=`
|
|
2
|
+
fragment FileRef on File { id }
|
|
3
|
+
`,i=`
|
|
4
|
+
fragment PageInfoFields on MybPageInfo { cursor hasMore }
|
|
5
|
+
`,l=`
|
|
6
|
+
${m}
|
|
7
|
+
fragment ExerciseFields on MybExercise {
|
|
8
|
+
id workoutId name muscleGroup sets reps targetWeight restSeconds orderIndex
|
|
9
|
+
instructions demo { ...FileRef }
|
|
10
|
+
workspaceId createdAt updatedAt
|
|
11
|
+
}
|
|
12
|
+
`,d=`
|
|
13
|
+
${l}
|
|
14
|
+
fragment WorkoutFields on MybWorkout {
|
|
15
|
+
id programId name description type weekNumber dayOfWeek durationMin orderIndex
|
|
16
|
+
exercises { ...ExerciseFields }
|
|
17
|
+
workspaceId createdAt updatedAt
|
|
18
|
+
}
|
|
19
|
+
`,r=`
|
|
20
|
+
${d}
|
|
21
|
+
fragment ProgramFields on MybProgram {
|
|
22
|
+
id memberId coachId name description goalType level phase status
|
|
23
|
+
weeks daysPerWeek tags startDate endDate
|
|
24
|
+
workouts { ...WorkoutFields }
|
|
25
|
+
workspaceId createdAt updatedAt
|
|
26
|
+
}
|
|
27
|
+
`,g=`
|
|
28
|
+
fragment SessionSetFields on MybSessionSet {
|
|
29
|
+
id sessionId exerciseName setNumber reps weight durationSec distanceM
|
|
30
|
+
isPersonalRecord workspaceId createdAt updatedAt
|
|
31
|
+
}
|
|
32
|
+
`,M=`
|
|
33
|
+
${g}
|
|
34
|
+
fragment SessionFields on MybWorkoutSession {
|
|
35
|
+
id memberId programId workoutId status scheduledFor startedAt completedAt
|
|
36
|
+
caloriesBurned perceivedExertion notes
|
|
37
|
+
sets { ...SessionSetFields }
|
|
38
|
+
workspaceId createdAt updatedAt
|
|
39
|
+
}
|
|
40
|
+
`,n=`
|
|
41
|
+
fragment GoalFields on MybGoal {
|
|
42
|
+
id memberId title type status baselineValue currentValue targetValue unit
|
|
43
|
+
description targetDate achievedAt workspaceId createdAt updatedAt
|
|
44
|
+
}
|
|
45
|
+
`,u=`
|
|
46
|
+
fragment MealFields on MybMealLog {
|
|
47
|
+
id memberId planId name mealType servings calories proteinG carbsG fatG
|
|
48
|
+
isFavorite loggedAt workspaceId createdAt updatedAt
|
|
49
|
+
}
|
|
50
|
+
`,s=`
|
|
51
|
+
${u}
|
|
52
|
+
fragment NutritionPlanFields on MybNutritionPlan {
|
|
53
|
+
id memberId coachId name goalType calorieTarget proteinTarget carbsTarget fatTarget
|
|
54
|
+
isActive notes startDate endDate
|
|
55
|
+
meals { ...MealFields }
|
|
56
|
+
workspaceId createdAt updatedAt
|
|
57
|
+
}
|
|
58
|
+
`,I=`
|
|
59
|
+
${m}
|
|
60
|
+
fragment BodyMetricFields on MybBodyMetric {
|
|
61
|
+
id memberId type value unit measuredAt notes photo { ...FileRef }
|
|
62
|
+
workspaceId createdAt updatedAt
|
|
63
|
+
}
|
|
64
|
+
`,P=`
|
|
65
|
+
fragment RecoveryFields on MybRecoveryLog {
|
|
66
|
+
id memberId metric score sleepHours notes loggedAt
|
|
67
|
+
workspaceId createdAt updatedAt
|
|
68
|
+
}
|
|
69
|
+
`,c=`
|
|
70
|
+
fragment CoachingFields on MybCoachingRelationship {
|
|
71
|
+
id coachId memberId status specialty shareWorkouts shareNutrition shareMetrics
|
|
72
|
+
notes startedAt endedAt workspaceId createdAt updatedAt
|
|
73
|
+
}
|
|
74
|
+
`,ot=`
|
|
75
|
+
fragment DailyMacrosFields on MybDailyMacros {
|
|
76
|
+
date calories proteinG carbsG fatG calorieTarget proteinTarget carbsTarget fatTarget
|
|
77
|
+
}
|
|
78
|
+
`,A=`
|
|
79
|
+
${r}
|
|
80
|
+
query MybGetProgram($id: ID!) { mybProgram(id: $id) { ...ProgramFields } }
|
|
81
|
+
`,S=`
|
|
82
|
+
${r}
|
|
83
|
+
${i}
|
|
84
|
+
query MybListPrograms($memberId: ID, $status: MybProgramStatus, $pagination: PaginationInput) {
|
|
85
|
+
mybListPrograms(memberId: $memberId, status: $status, pagination: $pagination) {
|
|
86
|
+
items { ...ProgramFields }
|
|
87
|
+
pageInfo { ...PageInfoFields }
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
`,_=`
|
|
91
|
+
${r}
|
|
92
|
+
mutation MybCreateProgram($input: MybCreateProgramInput!) {
|
|
93
|
+
mybCreateProgram(input: $input) { ...ProgramFields }
|
|
94
|
+
}
|
|
95
|
+
`,C=`
|
|
96
|
+
${r}
|
|
97
|
+
mutation MybUpdateProgram($id: ID!, $input: MybUpdateProgramInput!) {
|
|
98
|
+
mybUpdateProgram(id: $id, input: $input) { ...ProgramFields }
|
|
99
|
+
}
|
|
100
|
+
`,$=`
|
|
101
|
+
${r}
|
|
102
|
+
mutation MybTransitionProgram($id: ID!, $status: MybProgramStatus!) {
|
|
103
|
+
mybTransitionProgram(id: $id, status: $status) { ...ProgramFields }
|
|
104
|
+
}
|
|
105
|
+
`,L=`
|
|
106
|
+
mutation MybArchiveProgram($id: ID!) { mybArchiveProgram(id: $id) }
|
|
107
|
+
`,R=`
|
|
108
|
+
${d}
|
|
109
|
+
query MybProgramWorkouts($programId: ID!) {
|
|
110
|
+
mybProgramWorkouts(programId: $programId) { ...WorkoutFields }
|
|
111
|
+
}
|
|
112
|
+
`,E=`
|
|
113
|
+
${d}
|
|
114
|
+
mutation MybAddWorkout($input: MybCreateWorkoutInput!) {
|
|
115
|
+
mybAddWorkout(input: $input) { ...WorkoutFields }
|
|
116
|
+
}
|
|
117
|
+
`,T=`
|
|
118
|
+
${l}
|
|
119
|
+
mutation MybAddExercise($input: MybCreateExerciseInput!) {
|
|
120
|
+
mybAddExercise(input: $input) { ...ExerciseFields }
|
|
121
|
+
}
|
|
122
|
+
`,G=`
|
|
123
|
+
${M}
|
|
124
|
+
query MybGetSession($id: ID!) { mybSession(id: $id) { ...SessionFields } }
|
|
125
|
+
`,N=`
|
|
126
|
+
${M}
|
|
127
|
+
${i}
|
|
128
|
+
query MybListSessions($programId: ID, $status: MybSessionStatus, $pagination: PaginationInput) {
|
|
129
|
+
mybListSessions(programId: $programId, status: $status, pagination: $pagination) {
|
|
130
|
+
items { ...SessionFields }
|
|
131
|
+
pageInfo { ...PageInfoFields }
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`,h=`
|
|
135
|
+
${M}
|
|
136
|
+
mutation MybStartSession($input: MybStartSessionInput!) {
|
|
137
|
+
mybStartSession(input: $input) { ...SessionFields }
|
|
138
|
+
}
|
|
139
|
+
`,B=`
|
|
140
|
+
${M}
|
|
141
|
+
mutation MybCompleteSession($id: ID!, $input: MybCompleteSessionInput!) {
|
|
142
|
+
mybCompleteSession(id: $id, input: $input) { ...SessionFields }
|
|
143
|
+
}
|
|
144
|
+
`,O=`
|
|
145
|
+
${g}
|
|
146
|
+
mutation MybLogSet($input: MybLogSetInput!) {
|
|
147
|
+
mybLogSet(input: $input) { ...SessionSetFields }
|
|
148
|
+
}
|
|
149
|
+
`,Y=`
|
|
150
|
+
${n}
|
|
151
|
+
query MybGetGoal($id: ID!) { mybGoal(id: $id) { ...GoalFields } }
|
|
152
|
+
`,D=`
|
|
153
|
+
${n}
|
|
154
|
+
${i}
|
|
155
|
+
query MybListGoals($memberId: ID, $status: MybGoalStatus, $pagination: PaginationInput) {
|
|
156
|
+
mybListGoals(memberId: $memberId, status: $status, pagination: $pagination) {
|
|
157
|
+
items { ...GoalFields }
|
|
158
|
+
pageInfo { ...PageInfoFields }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
`,F=`
|
|
162
|
+
${n}
|
|
163
|
+
mutation MybCreateGoal($input: MybCreateGoalInput!) {
|
|
164
|
+
mybCreateGoal(input: $input) { ...GoalFields }
|
|
165
|
+
}
|
|
166
|
+
`,x=`
|
|
167
|
+
${n}
|
|
168
|
+
mutation MybUpdateGoal($id: ID!, $input: MybUpdateGoalInput!) {
|
|
169
|
+
mybUpdateGoal(id: $id, input: $input) { ...GoalFields }
|
|
170
|
+
}
|
|
171
|
+
`,k=`
|
|
172
|
+
${n}
|
|
173
|
+
mutation MybAchieveGoal($id: ID!) { mybAchieveGoal(id: $id) { ...GoalFields } }
|
|
174
|
+
`,v=`
|
|
175
|
+
${s}
|
|
176
|
+
query MybGetNutritionPlan($id: ID!) {
|
|
177
|
+
mybNutritionPlan(id: $id) { ...NutritionPlanFields }
|
|
178
|
+
}
|
|
179
|
+
`,w=`
|
|
180
|
+
${s}
|
|
181
|
+
query MybActiveNutritionPlan($memberId: ID) {
|
|
182
|
+
mybActiveNutritionPlan(memberId: $memberId) { ...NutritionPlanFields }
|
|
183
|
+
}
|
|
184
|
+
`,f=`
|
|
185
|
+
${s}
|
|
186
|
+
mutation MybCreateNutritionPlan($input: MybCreateNutritionPlanInput!) {
|
|
187
|
+
mybCreateNutritionPlan(input: $input) { ...NutritionPlanFields }
|
|
188
|
+
}
|
|
189
|
+
`,q=`
|
|
190
|
+
${s}
|
|
191
|
+
mutation MybUpdateNutritionPlan($id: ID!, $input: MybUpdateNutritionPlanInput!) {
|
|
192
|
+
mybUpdateNutritionPlan(id: $id, input: $input) { ...NutritionPlanFields }
|
|
193
|
+
}
|
|
194
|
+
`,W=`
|
|
195
|
+
${s}
|
|
196
|
+
mutation MybActivateNutritionPlan($id: ID!) {
|
|
197
|
+
mybActivateNutritionPlan(id: $id) { ...NutritionPlanFields }
|
|
198
|
+
}
|
|
199
|
+
`,U=`
|
|
200
|
+
${u}
|
|
201
|
+
${i}
|
|
202
|
+
query MybListMeals($mealType: MybMealType, $planId: ID, $pagination: PaginationInput) {
|
|
203
|
+
mybListMeals(mealType: $mealType, planId: $planId, pagination: $pagination) {
|
|
204
|
+
items { ...MealFields }
|
|
205
|
+
pageInfo { ...PageInfoFields }
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
`,H=`
|
|
209
|
+
${u}
|
|
210
|
+
mutation MybLogMeal($input: MybLogMealInput!) {
|
|
211
|
+
mybLogMeal(input: $input) { ...MealFields }
|
|
212
|
+
}
|
|
213
|
+
`,V=`
|
|
214
|
+
mutation MybDeleteMeal($id: ID!) { mybDeleteMeal(id: $id) }
|
|
215
|
+
`,K=`
|
|
216
|
+
${ot}
|
|
217
|
+
query MybDailyMacros($date: DateTime, $memberId: ID) {
|
|
218
|
+
mybDailyMacros(date: $date, memberId: $memberId) { ...DailyMacrosFields }
|
|
219
|
+
}
|
|
220
|
+
`,j=`
|
|
221
|
+
${I}
|
|
222
|
+
${i}
|
|
223
|
+
query MybListBodyMetrics($memberId: ID, $type: MybBodyMetricType, $pagination: PaginationInput) {
|
|
224
|
+
mybListBodyMetrics(memberId: $memberId, type: $type, pagination: $pagination) {
|
|
225
|
+
items { ...BodyMetricFields }
|
|
226
|
+
pageInfo { ...PageInfoFields }
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
`,X=`
|
|
230
|
+
${I}
|
|
231
|
+
mutation MybRecordBodyMetric($input: MybRecordMetricInput!) {
|
|
232
|
+
mybRecordBodyMetric(input: $input) { ...BodyMetricFields }
|
|
233
|
+
}
|
|
234
|
+
`,z=`
|
|
235
|
+
${P}
|
|
236
|
+
query MybListRecoveryLogs($memberId: ID, $metric: MybRecoveryMetric) {
|
|
237
|
+
mybListRecoveryLogs(memberId: $memberId, metric: $metric) { ...RecoveryFields }
|
|
238
|
+
}
|
|
239
|
+
`,J=`
|
|
240
|
+
${P}
|
|
241
|
+
mutation MybLogRecovery($input: MybLogRecoveryInput!) {
|
|
242
|
+
mybLogRecovery(input: $input) { ...RecoveryFields }
|
|
243
|
+
}
|
|
244
|
+
`,Q=`
|
|
245
|
+
${c}
|
|
246
|
+
query MybListCoaching($memberId: ID, $status: MybCoachingStatus) {
|
|
247
|
+
mybListCoaching(memberId: $memberId, status: $status) { ...CoachingFields }
|
|
248
|
+
}
|
|
249
|
+
`,Z=`
|
|
250
|
+
${c}
|
|
251
|
+
mutation MybCreateCoaching($input: MybCreateCoachingInput!) {
|
|
252
|
+
mybCreateCoaching(input: $input) { ...CoachingFields }
|
|
253
|
+
}
|
|
254
|
+
`,tt=`
|
|
255
|
+
${c}
|
|
256
|
+
mutation MybTransitionCoaching($id: ID!, $status: MybCoachingStatus!) {
|
|
257
|
+
mybTransitionCoaching(id: $id, status: $status) { ...CoachingFields }
|
|
258
|
+
}
|
|
259
|
+
`,et="query MybHealth { mybHealth }";function at(b){let{workspace:a}=b.gql;return {programs:{async get(t){return (await a.request(A,{id:t})).mybProgram},async list(t,e,o){return (await a.request(S,{memberId:t,status:e,pagination:o})).mybListPrograms},async create(t){return (await a.request(_,{input:t})).mybCreateProgram},async update(t,e){return (await a.request(C,{id:t,input:e})).mybUpdateProgram},async transition(t,e){return (await a.request($,{id:t,status:e})).mybTransitionProgram},async archive(t){return (await a.request(L,{id:t})).mybArchiveProgram}},workouts:{async listByProgram(t){return (await a.request(R,{programId:t})).mybProgramWorkouts},async add(t){return (await a.request(E,{input:t})).mybAddWorkout},async addExercise(t){return (await a.request(T,{input:t})).mybAddExercise}},sessions:{async get(t){return (await a.request(G,{id:t})).mybSession},async list(t,e,o){return (await a.request(N,{programId:t,status:e,pagination:o})).mybListSessions},async start(t){return (await a.request(h,{input:t})).mybStartSession},async complete(t,e){return (await a.request(B,{id:t,input:e})).mybCompleteSession},async logSet(t){return (await a.request(O,{input:t})).mybLogSet}},goals:{async get(t){return (await a.request(Y,{id:t})).mybGoal},async list(t,e,o){return (await a.request(D,{memberId:t,status:e,pagination:o})).mybListGoals},async create(t){return (await a.request(F,{input:t})).mybCreateGoal},async update(t,e){return (await a.request(x,{id:t,input:e})).mybUpdateGoal},async achieve(t){return (await a.request(k,{id:t})).mybAchieveGoal}},nutrition:{async getPlan(t){return (await a.request(v,{id:t})).mybNutritionPlan},async activePlan(t){return (await a.request(w,{memberId:t})).mybActiveNutritionPlan},async createPlan(t){return (await a.request(f,{input:t})).mybCreateNutritionPlan},async updatePlan(t,e){return (await a.request(q,{id:t,input:e})).mybUpdateNutritionPlan},async activatePlan(t){return (await a.request(W,{id:t})).mybActivateNutritionPlan},async listMeals(t,e,o){return (await a.request(U,{mealType:t,planId:e,pagination:o})).mybListMeals},async logMeal(t){return (await a.request(H,{input:t})).mybLogMeal},async deleteMeal(t){return (await a.request(V,{id:t})).mybDeleteMeal},async dailyMacros(t,e){return (await a.request(K,{date:t,memberId:e})).mybDailyMacros}},metrics:{async list(t,e,o){return (await a.request(j,{memberId:t,type:e,pagination:o})).mybListBodyMetrics},async record(t){return (await a.request(X,{input:t})).mybRecordBodyMetric}},recovery:{async list(t,e){return (await a.request(z,{memberId:t,metric:e})).mybListRecoveryLogs},async log(t){return (await a.request(J,{input:t})).mybLogRecovery}},coaching:{async list(t,e){return (await a.request(Q,{memberId:t,status:e})).mybListCoaching},async create(t){return (await a.request(Z,{input:t})).mybCreateCoaching},async transition(t,e){return (await a.request(tt,{id:t,status:e})).mybTransitionCoaching}},health:{async check(){return (await a.request(et)).mybHealth}}}}var it={id:"mybodyshield",version:"1.0.0",displayName:"MyBodyShield",dependsOn:["auth"],attach(b){return at(b)}},At=it;module.exports=At;
|