@burdenoff/sdk-libs 2026.529.1 → 2026.627.1
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/crewfoundry/index.cjs +183 -0
- package/dist/modules/crewfoundry/index.d.cts +453 -0
- package/dist/modules/crewfoundry/index.d.ts +453 -0
- package/dist/modules/crewfoundry/index.js +183 -0
- package/dist/modules/ggnomad/index.cjs +164 -0
- package/dist/modules/ggnomad/index.d.cts +282 -0
- package/dist/modules/ggnomad/index.d.ts +282 -0
- package/dist/modules/ggnomad/index.js +164 -0
- package/dist/modules/housingvista/index.cjs +174 -0
- package/dist/modules/housingvista/index.d.cts +287 -0
- package/dist/modules/housingvista/index.d.ts +287 -0
- package/dist/modules/housingvista/index.js +174 -0
- package/dist/modules/kadaikodi/index.cjs +241 -0
- package/dist/modules/kadaikodi/index.d.cts +346 -0
- package/dist/modules/kadaikodi/index.d.ts +346 -0
- package/dist/modules/kadaikodi/index.js +241 -0
- package/dist/modules/sandbox/index.cjs +242 -0
- package/dist/modules/sandbox/index.d.cts +403 -0
- package/dist/modules/sandbox/index.d.ts +403 -0
- package/dist/modules/sandbox/index.js +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
var u=`
|
|
2
|
+
fragment ProviderScalars on KadaikodiServiceProvider {
|
|
3
|
+
id name slug description category status
|
|
4
|
+
ownerId offeringType serviceTypes location businessHours analyticsSnapshot
|
|
5
|
+
rating totalRatings averageOrderValue
|
|
6
|
+
workspaceId createdAt updatedAt
|
|
7
|
+
}
|
|
8
|
+
`,d=`
|
|
9
|
+
fragment OfferingFields on KadaikodiOffering {
|
|
10
|
+
id name slug description category kind
|
|
11
|
+
price originalPrice durationMinutes stock serviceType isAvailable
|
|
12
|
+
media metadata tags providerId workspaceId createdAt updatedAt
|
|
13
|
+
}
|
|
14
|
+
`,m=`
|
|
15
|
+
fragment TaskFields on KadaikodiWorkerTask {
|
|
16
|
+
id title description type status priority
|
|
17
|
+
orderId workerRefId location dueAt completedAt workspaceId
|
|
18
|
+
}
|
|
19
|
+
`,K=`
|
|
20
|
+
${m}
|
|
21
|
+
fragment WorkerFields on KadaikodiProviderWorker {
|
|
22
|
+
id name role status workerId providerId metadata workspaceId
|
|
23
|
+
tasks { ...TaskFields }
|
|
24
|
+
}
|
|
25
|
+
`,Y=`
|
|
26
|
+
fragment OrderItemFields on KadaikodiOrderItem {
|
|
27
|
+
id orderId offeringId name quantity unitPrice totalPrice customizations workspaceId
|
|
28
|
+
}
|
|
29
|
+
`,k=`
|
|
30
|
+
fragment ReviewFields on KadaikodiReview {
|
|
31
|
+
id providerId customerId orderId rating review response
|
|
32
|
+
workspaceId createdAt updatedAt
|
|
33
|
+
}
|
|
34
|
+
`,I=`
|
|
35
|
+
fragment OpportunityScalars on KadaikodiInvestmentOpportunity {
|
|
36
|
+
id providerId title description riskLevel status
|
|
37
|
+
targetAmount raisedAmount minimumInvestment expectedReturnsPct lockInMonths
|
|
38
|
+
businessMetrics terms expiresAt workspaceId createdAt updatedAt
|
|
39
|
+
}
|
|
40
|
+
`,j=`
|
|
41
|
+
fragment InvestmentTxnFields on KadaikodiInvestmentTransaction {
|
|
42
|
+
id investmentId amount type notes workspaceId createdAt
|
|
43
|
+
}
|
|
44
|
+
`,f=`
|
|
45
|
+
${j}
|
|
46
|
+
fragment InvestmentScalars on KadaikodiInvestment {
|
|
47
|
+
id investorId opportunityId amount currentValue realizedReturns
|
|
48
|
+
expectedReturnsPct status investedAt maturedAt workspaceId
|
|
49
|
+
transactions { ...InvestmentTxnFields }
|
|
50
|
+
}
|
|
51
|
+
`,s=`
|
|
52
|
+
${u}
|
|
53
|
+
${d}
|
|
54
|
+
${K}
|
|
55
|
+
${I}
|
|
56
|
+
fragment ProviderFull on KadaikodiServiceProvider {
|
|
57
|
+
...ProviderScalars
|
|
58
|
+
offerings { ...OfferingFields }
|
|
59
|
+
workers { ...WorkerFields }
|
|
60
|
+
investmentOpportunities { ...OpportunityScalars }
|
|
61
|
+
}
|
|
62
|
+
`,n=`
|
|
63
|
+
${Y}
|
|
64
|
+
${u}
|
|
65
|
+
fragment OrderFull on KadaikodiOrder {
|
|
66
|
+
id orderNumber customerId providerId assignedWorkerId
|
|
67
|
+
status paymentStatus paymentMethod fulfillmentType
|
|
68
|
+
subtotal tax discount deliveryFee total
|
|
69
|
+
deliveryAddress notes timeline
|
|
70
|
+
items { ...OrderItemFields }
|
|
71
|
+
provider { ...ProviderScalars }
|
|
72
|
+
workspaceId createdAt updatedAt
|
|
73
|
+
}
|
|
74
|
+
`,v=`
|
|
75
|
+
${I}
|
|
76
|
+
${u}
|
|
77
|
+
${f}
|
|
78
|
+
fragment OpportunityFull on KadaikodiInvestmentOpportunity {
|
|
79
|
+
...OpportunityScalars
|
|
80
|
+
provider { ...ProviderScalars }
|
|
81
|
+
investments { ...InvestmentScalars }
|
|
82
|
+
}
|
|
83
|
+
`,O=`
|
|
84
|
+
${f}
|
|
85
|
+
${I}
|
|
86
|
+
fragment InvestmentFull on KadaikodiInvestment {
|
|
87
|
+
...InvestmentScalars
|
|
88
|
+
opportunity { ...OpportunityScalars }
|
|
89
|
+
}
|
|
90
|
+
`,S=`
|
|
91
|
+
${s}
|
|
92
|
+
query GetServiceProvider($id: ID!) {
|
|
93
|
+
getServiceProvider(id: $id) { ...ProviderFull }
|
|
94
|
+
}
|
|
95
|
+
`,R=`
|
|
96
|
+
${s}
|
|
97
|
+
query ListServiceProviders($filter: KadaikodiProviderFilterInput, $limit: Int, $offset: Int) {
|
|
98
|
+
listServiceProviders(filter: $filter, limit: $limit, offset: $offset) { ...ProviderFull }
|
|
99
|
+
}
|
|
100
|
+
`,A=`
|
|
101
|
+
${s}
|
|
102
|
+
mutation KadaikodiCreateServiceProvider($input: KadaikodiCreateServiceProviderInput!) {
|
|
103
|
+
kadaikodiCreateServiceProvider(input: $input) { ...ProviderFull }
|
|
104
|
+
}
|
|
105
|
+
`,P=`
|
|
106
|
+
${s}
|
|
107
|
+
mutation KadaikodiUpdateServiceProvider($id: ID!, $input: KadaikodiUpdateServiceProviderInput!) {
|
|
108
|
+
kadaikodiUpdateServiceProvider(id: $id, input: $input) { ...ProviderFull }
|
|
109
|
+
}
|
|
110
|
+
`,g=`
|
|
111
|
+
${K}
|
|
112
|
+
query ListProviderWorkers($providerId: String!, $limit: Int, $offset: Int) {
|
|
113
|
+
listProviderWorkers(providerId: $providerId, limit: $limit, offset: $offset) {
|
|
114
|
+
...WorkerFields
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
`,E=`
|
|
118
|
+
${m}
|
|
119
|
+
query ListWorkerTasks($workerRefId: String!, $status: String, $limit: Int, $offset: Int) {
|
|
120
|
+
listWorkerTasks(workerRefId: $workerRefId, status: $status, limit: $limit, offset: $offset) {
|
|
121
|
+
...TaskFields
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`,y=`
|
|
125
|
+
${d}
|
|
126
|
+
query GetOffering($id: ID!) { getOffering(id: $id) { ...OfferingFields } }
|
|
127
|
+
`,$=`
|
|
128
|
+
${d}
|
|
129
|
+
query ListOfferings(
|
|
130
|
+
$kind: KadaikodiOfferingKind
|
|
131
|
+
$providerId: String
|
|
132
|
+
$limit: Int
|
|
133
|
+
$offset: Int
|
|
134
|
+
) {
|
|
135
|
+
listOfferings(kind: $kind, providerId: $providerId, limit: $limit, offset: $offset) {
|
|
136
|
+
...OfferingFields
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`,T=`
|
|
140
|
+
${d}
|
|
141
|
+
mutation CreateOffering($input: KadaikodiCreateOfferingInput!) {
|
|
142
|
+
createOffering(input: $input) { ...OfferingFields }
|
|
143
|
+
}
|
|
144
|
+
`,_=`
|
|
145
|
+
${d}
|
|
146
|
+
mutation UpdateOffering($id: ID!, $input: KadaikodiUpdateOfferingInput!) {
|
|
147
|
+
updateOffering(id: $id, input: $input) { ...OfferingFields }
|
|
148
|
+
}
|
|
149
|
+
`,w=`
|
|
150
|
+
${n}
|
|
151
|
+
query GetOrder($id: ID!) { getOrder(id: $id) { ...OrderFull } }
|
|
152
|
+
`,D=`
|
|
153
|
+
${n}
|
|
154
|
+
query ListOrders(
|
|
155
|
+
$customerId: String
|
|
156
|
+
$providerId: String
|
|
157
|
+
$status: KadaikodiOrderStatus
|
|
158
|
+
$limit: Int
|
|
159
|
+
$offset: Int
|
|
160
|
+
) {
|
|
161
|
+
listOrders(
|
|
162
|
+
customerId: $customerId
|
|
163
|
+
providerId: $providerId
|
|
164
|
+
status: $status
|
|
165
|
+
limit: $limit
|
|
166
|
+
offset: $offset
|
|
167
|
+
) { ...OrderFull }
|
|
168
|
+
}
|
|
169
|
+
`,F=`
|
|
170
|
+
${n}
|
|
171
|
+
mutation PlaceOrder($input: KadaikodiPlaceOrderInput!) {
|
|
172
|
+
placeOrder(input: $input) { ...OrderFull }
|
|
173
|
+
}
|
|
174
|
+
`,L=`
|
|
175
|
+
${n}
|
|
176
|
+
mutation UpdateOrderStatus($id: ID!, $status: KadaikodiOrderStatus!) {
|
|
177
|
+
updateOrderStatus(id: $id, status: $status) { ...OrderFull }
|
|
178
|
+
}
|
|
179
|
+
`,C=`
|
|
180
|
+
${k}
|
|
181
|
+
query ListReviews($providerId: String!, $limit: Int, $offset: Int) {
|
|
182
|
+
listReviews(providerId: $providerId, limit: $limit, offset: $offset) { ...ReviewFields }
|
|
183
|
+
}
|
|
184
|
+
`,N=`
|
|
185
|
+
${k}
|
|
186
|
+
mutation CreateReview($input: KadaikodiCreateReviewInput!) {
|
|
187
|
+
createReview(input: $input) { ...ReviewFields }
|
|
188
|
+
}
|
|
189
|
+
`,x=`
|
|
190
|
+
${k}
|
|
191
|
+
mutation RespondToReview($id: ID!, $response: String!) {
|
|
192
|
+
respondToReview(id: $id, response: $response) { ...ReviewFields }
|
|
193
|
+
}
|
|
194
|
+
`,q=`
|
|
195
|
+
${v}
|
|
196
|
+
query GetInvestmentOpportunity($id: ID!) {
|
|
197
|
+
getInvestmentOpportunity(id: $id) { ...OpportunityFull }
|
|
198
|
+
}
|
|
199
|
+
`,V=`
|
|
200
|
+
${v}
|
|
201
|
+
query ListInvestmentOpportunities(
|
|
202
|
+
$riskLevel: KadaikodiRiskLevel
|
|
203
|
+
$status: KadaikodiInvestmentStatus
|
|
204
|
+
$limit: Int
|
|
205
|
+
$offset: Int
|
|
206
|
+
) {
|
|
207
|
+
listInvestmentOpportunities(
|
|
208
|
+
riskLevel: $riskLevel
|
|
209
|
+
status: $status
|
|
210
|
+
limit: $limit
|
|
211
|
+
offset: $offset
|
|
212
|
+
) { ...OpportunityFull }
|
|
213
|
+
}
|
|
214
|
+
`,W=`
|
|
215
|
+
${O}
|
|
216
|
+
query ListInvestments($investorId: String!, $limit: Int, $offset: Int) {
|
|
217
|
+
listInvestments(investorId: $investorId, limit: $limit, offset: $offset) { ...InvestmentFull }
|
|
218
|
+
}
|
|
219
|
+
`,U=`
|
|
220
|
+
${v}
|
|
221
|
+
mutation CreateInvestmentOpportunity($input: KadaikodiCreateInvestmentOpportunityInput!) {
|
|
222
|
+
createInvestmentOpportunity(input: $input) { ...OpportunityFull }
|
|
223
|
+
}
|
|
224
|
+
`,b=`
|
|
225
|
+
${O}
|
|
226
|
+
mutation Invest($input: KadaikodiInvestInput!) {
|
|
227
|
+
invest(input: $input) { ...InvestmentFull }
|
|
228
|
+
}
|
|
229
|
+
`,h=`
|
|
230
|
+
query KadaikodiAdminAnalytics {
|
|
231
|
+
kadaikodiAdminAnalytics {
|
|
232
|
+
categoryDistribution customerGrowth orderTrends revenueByCategory topProviders
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
`,G=`
|
|
236
|
+
query KadaikodiDashboardStats {
|
|
237
|
+
kadaikodiDashboardStats {
|
|
238
|
+
activeCustomers activeProviders avgRating pendingOrders totalOrders totalRevenue
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
`,M="query KadaikodiHealth { kadaikodiHealth }";function H(p){let{workspace:t}=p.gql;return {providers:{async get(i){return (await t.request(S,{id:i})).getServiceProvider},async list(i,e,a){return (await t.request(R,{filter:i,limit:e,offset:a})).listServiceProviders},async create(i){return (await t.request(A,{input:i})).kadaikodiCreateServiceProvider},async update(i,e){return (await t.request(P,{id:i,input:e})).kadaikodiUpdateServiceProvider}},workers:{async list(i,e,a){return (await t.request(g,{providerId:i,limit:e,offset:a})).listProviderWorkers}},tasks:{async list(i,e,a,r){return (await t.request(E,{workerRefId:i,status:e,limit:a,offset:r})).listWorkerTasks}},offerings:{async get(i){return (await t.request(y,{id:i})).getOffering},async list(i,e,a,r){return (await t.request($,{kind:i,providerId:e,limit:a,offset:r})).listOfferings},async create(i){return (await t.request(T,{input:i})).createOffering},async update(i,e){return (await t.request(_,{id:i,input:e})).updateOffering}},orders:{async get(i){return (await t.request(w,{id:i})).getOrder},async list(i,e,a,r,o){return (await t.request(D,{customerId:i,providerId:e,status:a,limit:r,offset:o})).listOrders},async place(i){return (await t.request(F,{input:i})).placeOrder},async updateStatus(i,e){return (await t.request(L,{id:i,status:e})).updateOrderStatus}},reviews:{async list(i,e,a){return (await t.request(C,{providerId:i,limit:e,offset:a})).listReviews},async create(i){return (await t.request(N,{input:i})).createReview},async respond(i,e){return (await t.request(x,{id:i,response:e})).respondToReview}},investments:{async getOpportunity(i){return (await t.request(q,{id:i})).getInvestmentOpportunity},async listOpportunities(i,e,a,r){return (await t.request(V,{riskLevel:i,status:e,limit:a,offset:r})).listInvestmentOpportunities},async listInvestments(i,e,a){return (await t.request(W,{investorId:i,limit:e,offset:a})).listInvestments},async createOpportunity(i){return (await t.request(U,{input:i})).createInvestmentOpportunity},async invest(i){return (await t.request(b,{input:i})).invest}},analytics:{async adminAnalytics(){return (await t.request(h)).kadaikodiAdminAnalytics},async dashboardStats(){return (await t.request(G)).kadaikodiDashboardStats},async health(){return (await t.request(M)).kadaikodiHealth}}}}var B={id:"kadaikodi",version:"1.0.0",displayName:"Kadaikodi",dependsOn:["auth"],attach(p){return H(p)}},ui=B;export{ui as default};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
'use strict';var o=`
|
|
2
|
+
fragment SandboxFields on Sandbox {
|
|
3
|
+
id name description template mode status
|
|
4
|
+
crdName podName namespace runtimeClass
|
|
5
|
+
containers {
|
|
6
|
+
name image
|
|
7
|
+
ports { containerPort name protocol }
|
|
8
|
+
env { name value }
|
|
9
|
+
command args
|
|
10
|
+
resources { requestsCpu requestsMemory limitsCpu limitsMemory }
|
|
11
|
+
}
|
|
12
|
+
containerStatuses { name ready port restartCount }
|
|
13
|
+
resources { cpuRequest cpuLimit memoryRequest memoryLimit }
|
|
14
|
+
storage { mode sizeGi mountPath retainOnDelete }
|
|
15
|
+
network { exposeService internalUrl containerUrls serviceName }
|
|
16
|
+
ttlSeconds expiresAt metadata errorMessage
|
|
17
|
+
workspaceId context createdBy createdAt updatedAt stoppedAt
|
|
18
|
+
}
|
|
19
|
+
`,x=`
|
|
20
|
+
fragment SandboxTemplateConfigFields on SandboxTemplateConfig {
|
|
21
|
+
id name description template isDefault
|
|
22
|
+
containers {
|
|
23
|
+
name image
|
|
24
|
+
ports { containerPort name protocol }
|
|
25
|
+
env { name value }
|
|
26
|
+
command args
|
|
27
|
+
resources { requestsCpu requestsMemory limitsCpu limitsMemory }
|
|
28
|
+
}
|
|
29
|
+
resources { cpuRequest cpuLimit memoryRequest memoryLimit }
|
|
30
|
+
storage { mode sizeGi mountPath retainOnDelete }
|
|
31
|
+
ttlSeconds config metadata allowedImages
|
|
32
|
+
workspaceId context createdBy createdAt updatedAt
|
|
33
|
+
}
|
|
34
|
+
`,p=`
|
|
35
|
+
id defaultTtlSeconds maxTtlSeconds allowedTemplates
|
|
36
|
+
maxConcurrentPerUser maxConcurrentPerWorkspace
|
|
37
|
+
defaultCpuRequest defaultCpuLimit defaultMemoryRequest defaultMemoryLimit
|
|
38
|
+
workspaceId updatedAt
|
|
39
|
+
`,s=`
|
|
40
|
+
fragment SandboxTagAssignmentFields on SandboxTagAssignment {
|
|
41
|
+
id entityId entityType tagId source assignedAt assignedBy
|
|
42
|
+
validFrom validTo metadata tag { id }
|
|
43
|
+
}
|
|
44
|
+
`,S=`
|
|
45
|
+
id workspaceId format status requestedBy rowCount
|
|
46
|
+
downloadUrl errorMessage expiresAt createdAt updatedAt
|
|
47
|
+
`,b=`
|
|
48
|
+
${o}
|
|
49
|
+
query ListSandboxes(
|
|
50
|
+
$filter: SandboxFilterInput
|
|
51
|
+
$pagination: SandboxPaginationInput
|
|
52
|
+
$context: ContextInput!
|
|
53
|
+
) {
|
|
54
|
+
listSandboxes(filter: $filter, pagination: $pagination, context: $context) {
|
|
55
|
+
items { ...SandboxFields }
|
|
56
|
+
total
|
|
57
|
+
hasMore
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`,u=`
|
|
61
|
+
${o}
|
|
62
|
+
query GetSandbox($id: ID!, $context: ContextInput!) {
|
|
63
|
+
getSandbox(id: $id, context: $context) { ...SandboxFields }
|
|
64
|
+
}
|
|
65
|
+
`,c=`
|
|
66
|
+
query GetSandboxLogs(
|
|
67
|
+
$id: ID!
|
|
68
|
+
$containerName: String!
|
|
69
|
+
$tailLines: Int
|
|
70
|
+
$context: ContextInput!
|
|
71
|
+
) {
|
|
72
|
+
getSandboxLogs(
|
|
73
|
+
id: $id
|
|
74
|
+
containerName: $containerName
|
|
75
|
+
tailLines: $tailLines
|
|
76
|
+
context: $context
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
`,l=`
|
|
80
|
+
query GetSandboxStats($context: ContextInput!) {
|
|
81
|
+
getSandboxStats(context: $context) {
|
|
82
|
+
activeSandboxes totalCreated totalDeleted runningNow provisioningNow
|
|
83
|
+
stoppedNow expiredCount failedCount totalCpuUsed totalMemoryUsed
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`,T=`
|
|
87
|
+
query GetSandboxConfig($context: ContextInput!) {
|
|
88
|
+
getSandboxConfig(context: $context) { ${p} }
|
|
89
|
+
}
|
|
90
|
+
`,g=`
|
|
91
|
+
${x}
|
|
92
|
+
query ListSandboxTemplates(
|
|
93
|
+
$template: SandboxTemplate
|
|
94
|
+
$pagination: SandboxPaginationInput
|
|
95
|
+
$context: ContextInput!
|
|
96
|
+
) {
|
|
97
|
+
listSandboxTemplates(template: $template, pagination: $pagination, context: $context) {
|
|
98
|
+
items { ...SandboxTemplateConfigFields }
|
|
99
|
+
total
|
|
100
|
+
hasMore
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`,m=`
|
|
104
|
+
${x}
|
|
105
|
+
query GetSandboxTemplate($id: ID!, $context: ContextInput!) {
|
|
106
|
+
getSandboxTemplate(id: $id, context: $context) { ...SandboxTemplateConfigFields }
|
|
107
|
+
}
|
|
108
|
+
`,A=`
|
|
109
|
+
${o}
|
|
110
|
+
mutation CreateSandbox($input: CreateSandboxInput!) {
|
|
111
|
+
createSandbox(input: $input) { ...SandboxFields }
|
|
112
|
+
}
|
|
113
|
+
`,I=`
|
|
114
|
+
mutation DeleteSandbox($id: ID!, $context: ContextInput!) {
|
|
115
|
+
deleteSandbox(id: $id, context: $context)
|
|
116
|
+
}
|
|
117
|
+
`,E=`
|
|
118
|
+
${o}
|
|
119
|
+
mutation StopSandbox($id: ID!, $context: ContextInput!) {
|
|
120
|
+
stopSandbox(id: $id, context: $context) { ...SandboxFields }
|
|
121
|
+
}
|
|
122
|
+
`,C=`
|
|
123
|
+
${o}
|
|
124
|
+
mutation StartSandbox($id: ID!, $context: ContextInput!) {
|
|
125
|
+
startSandbox(id: $id, context: $context) { ...SandboxFields }
|
|
126
|
+
}
|
|
127
|
+
`,$=`
|
|
128
|
+
${o}
|
|
129
|
+
mutation ExtendSandboxTTL($id: ID!, $additionalSeconds: Int!, $context: ContextInput!) {
|
|
130
|
+
extendSandboxTTL(id: $id, additionalSeconds: $additionalSeconds, context: $context) {
|
|
131
|
+
...SandboxFields
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`,y=`
|
|
135
|
+
${x}
|
|
136
|
+
mutation CreateSandboxTemplate($input: CreateSandboxTemplateInput!) {
|
|
137
|
+
createSandboxTemplate(input: $input) { ...SandboxTemplateConfigFields }
|
|
138
|
+
}
|
|
139
|
+
`,_=`
|
|
140
|
+
${x}
|
|
141
|
+
mutation UpdateSandboxTemplate($input: UpdateSandboxTemplateInput!) {
|
|
142
|
+
updateSandboxTemplate(input: $input) { ...SandboxTemplateConfigFields }
|
|
143
|
+
}
|
|
144
|
+
`,N=`
|
|
145
|
+
mutation DeleteSandboxTemplate($id: ID!, $context: ContextInput!) {
|
|
146
|
+
deleteSandboxTemplate(id: $id, context: $context)
|
|
147
|
+
}
|
|
148
|
+
`,D=`
|
|
149
|
+
mutation UpdateSandboxConfig($input: UpdateSandboxConfigInput!) {
|
|
150
|
+
updateSandboxConfig(input: $input) { ${p} }
|
|
151
|
+
}
|
|
152
|
+
`,B=`
|
|
153
|
+
query AvailableSandboxTags($query: String, $limit: Int) {
|
|
154
|
+
availableSandboxTags(query: $query, limit: $limit) {
|
|
155
|
+
id key label color
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
`,O=`
|
|
159
|
+
${s}
|
|
160
|
+
query GetSandboxTags($input: GetSandboxTagsInput!) {
|
|
161
|
+
getSandboxTags(input: $input) { ...SandboxTagAssignmentFields }
|
|
162
|
+
}
|
|
163
|
+
`,f=`
|
|
164
|
+
mutation CreateSandboxTag($input: CreateSandboxTagInput!) {
|
|
165
|
+
createSandboxTag(input: $input) { id key label color }
|
|
166
|
+
}
|
|
167
|
+
`,P=`
|
|
168
|
+
${s}
|
|
169
|
+
mutation TagSandbox($input: TagSandboxInput!) {
|
|
170
|
+
tagSandbox(input: $input) { ...SandboxTagAssignmentFields }
|
|
171
|
+
}
|
|
172
|
+
`,L=`
|
|
173
|
+
mutation UntagSandbox($input: UntagSandboxInput!) {
|
|
174
|
+
untagSandbox(input: $input)
|
|
175
|
+
}
|
|
176
|
+
`,X=`
|
|
177
|
+
${s}
|
|
178
|
+
mutation ReplaceSandboxTags($input: ReplaceSandboxTagsInput!) {
|
|
179
|
+
replaceSandboxTags(input: $input) { ...SandboxTagAssignmentFields }
|
|
180
|
+
}
|
|
181
|
+
`,q=`
|
|
182
|
+
${o}
|
|
183
|
+
query ListAllSandboxes(
|
|
184
|
+
$context: ContextInput!
|
|
185
|
+
$filter: SandboxFilterInput
|
|
186
|
+
$pagination: SandboxPaginationInput
|
|
187
|
+
) {
|
|
188
|
+
listAllSandboxes(context: $context, filter: $filter, pagination: $pagination) {
|
|
189
|
+
items { ...SandboxFields }
|
|
190
|
+
total
|
|
191
|
+
hasMore
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
`,R=`
|
|
195
|
+
query ListSandboxNodes($context: ContextInput!) {
|
|
196
|
+
listSandboxNodes(context: $context) {
|
|
197
|
+
name status allocatableCpu allocatableMemory sandboxPodCount labels
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
`,G=`
|
|
201
|
+
${o}
|
|
202
|
+
query GetActiveSandboxes($context: ContextInput!) {
|
|
203
|
+
getActiveSandboxes(context: $context) { ...SandboxFields }
|
|
204
|
+
}
|
|
205
|
+
`,w=`
|
|
206
|
+
query GetRecentSandboxActivity($context: ContextInput!, $limit: Int) {
|
|
207
|
+
getRecentSandboxActivity(context: $context, limit: $limit) {
|
|
208
|
+
items { id action actorId status sandboxName sandboxId createdAt }
|
|
209
|
+
total
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`,v=`
|
|
213
|
+
mutation ExportSandboxes($input: ExportSandboxesInput!) {
|
|
214
|
+
exportSandboxes(input: $input) { ${S} }
|
|
215
|
+
}
|
|
216
|
+
`,F=`
|
|
217
|
+
query GetSandboxExportJob($workspaceId: ID!, $jobId: ID!, $context: ContextInput!) {
|
|
218
|
+
getSandboxExportJob(workspaceId: $workspaceId, jobId: $jobId, context: $context) {
|
|
219
|
+
${S}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
`,M=`
|
|
223
|
+
query ListSandboxExportJobs(
|
|
224
|
+
$workspaceId: ID!
|
|
225
|
+
$context: ContextInput!
|
|
226
|
+
$pagination: SandboxPaginationInput
|
|
227
|
+
) {
|
|
228
|
+
listSandboxExportJobs(workspaceId: $workspaceId, context: $context, pagination: $pagination) {
|
|
229
|
+
${S}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
`,U=`
|
|
233
|
+
query GetSandboxArtifactBytes($input: SandboxArtifactBytesInput!) {
|
|
234
|
+
getSandboxArtifactBytes(input: $input) {
|
|
235
|
+
filename mimeType size contentBase64
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
`,J=`
|
|
239
|
+
mutation ProxySandboxRequest($input: ProxySandboxRequestInput!) {
|
|
240
|
+
proxySandboxRequest(input: $input) { status body }
|
|
241
|
+
}
|
|
242
|
+
`;function k(i){let{workspace:a}=i.gql;return {async list(t,e,n){return (await a.request(b,{filter:t,pagination:e,context:n})).listSandboxes},async get(t,e){return (await a.request(u,{id:t,context:e})).getSandbox},async create(t){return (await a.request(A,{input:t})).createSandbox},async delete(t,e){return (await a.request(I,{id:t,context:e})).deleteSandbox},async start(t,e){return (await a.request(C,{id:t,context:e})).startSandbox},async stop(t,e){return (await a.request(E,{id:t,context:e})).stopSandbox},async extendTTL(t,e,n){return (await a.request($,{id:t,additionalSeconds:e,context:n})).extendSandboxTTL},async getLogs(t,e,n,d){return (await a.request(c,{id:t,containerName:e,tailLines:d,context:n})).getSandboxLogs},async getStats(t){return (await a.request(l,{context:t})).getSandboxStats},async getConfig(t){return (await a.request(T,{context:t})).getSandboxConfig},async updateConfig(t){return (await a.request(D,{input:t})).updateSandboxConfig},async listTemplates(t,e,n){return (await a.request(g,{template:e,pagination:n,context:t})).listSandboxTemplates},async getTemplate(t,e){return (await a.request(m,{id:t,context:e})).getSandboxTemplate},async createTemplate(t){return (await a.request(y,{input:t})).createSandboxTemplate},async updateTemplate(t){return (await a.request(_,{input:t})).updateSandboxTemplate},async deleteTemplate(t,e){return (await a.request(N,{id:t,context:e})).deleteSandboxTemplate},async availableTags(t,e){return (await a.request(B,{query:t,limit:e})).availableSandboxTags},async getTags(t){return (await a.request(O,{input:t})).getSandboxTags},async createTag(t){return (await a.request(f,{input:t})).createSandboxTag},async tag(t){return (await a.request(P,{input:t})).tagSandbox},async untag(t){return (await a.request(L,{input:t})).untagSandbox},async replaceTags(t){return (await a.request(X,{input:t})).replaceSandboxTags},async listAll(t,e,n){return (await a.request(q,{context:t,filter:e,pagination:n})).listAllSandboxes},async listNodes(t){return (await a.request(R,{context:t})).listSandboxNodes},async getActive(t){return (await a.request(G,{context:t})).getActiveSandboxes},async getRecentActivity(t,e){return (await a.request(w,{context:t,limit:e})).getRecentSandboxActivity},async exportSandboxes(t){return (await a.request(v,{input:t})).exportSandboxes},async getExportJob(t,e,n){return (await a.request(F,{workspaceId:t,jobId:e,context:n})).getSandboxExportJob},async listExportJobs(t,e,n){return (await a.request(M,{workspaceId:t,context:e,pagination:n})).listSandboxExportJobs},async getArtifactBytes(t){return (await a.request(U,{input:t})).getSandboxArtifactBytes},async proxyRequest(t){return (await a.request(J,{input:t})).proxySandboxRequest}}}var j={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],attach(i){return k(i)}},K=j;module.exports=K;
|