@fugood/bricks-cli 2.26.0-beta.32 → 2.26.0-beta.34
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/README.md +20 -1
- package/lib/1708.js +2 -2
- package/lib/1809.js +1 -0
- package/lib/2486.js +1 -1
- package/lib/638.js +1 -0
- package/lib/6818.js +1 -1
- package/lib/7294.js +1 -1
- package/lib/7494.js +2 -2
- package/lib/7511.js +3 -3
- package/lib/8687.js +49 -0
- package/lib/907.js +69 -43
- package/lib/9387.js +2 -2
- package/lib/9439.js +38 -38
- package/lib/index.js +33 -32
- package/lib/lib.js +52 -26
- package/package.json +6 -6
package/lib/907.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export const __webpack_modules__={85382(e,i,t){t.r(i),t.d(i,{BricksClient:()=>S,BricksPublicClient:()=>k,createClient:()=>D,createFetchForUrl:()=>_.
|
|
1
|
+
export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export const __webpack_modules__={85382(e,i,t){t.r(i),t.d(i,{BricksClient:()=>S,BricksPublicClient:()=>k,createClient:()=>D,createFetchForUrl:()=>_.createFetchForUrl,createPublicClient:()=>A});var n,a,r,o,s=t(99436),d=t(5018),l=t(44668),u=t(54506),c=t(78549),p=t(94370),$=t(90424),m=t(43741),g=t(89293),_=t(75149),v=u.ApolloClient,f=u.InMemoryCache,I=u.HttpLink,h=c.o,y={query:"query",mutation:"mutate"},k=l(function e(i){d(this,e),this.baseUrl=i,this.endpoint="/api/graphql-nonauth";var t=new I({uri:`${i}${this.endpoint}`,fetch:(0,_.createFetchForUrl)(i)});this.apolloClient=new v({link:t,cache:new f,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})},[{key:"checkWorkspaceOTP",value:(n=s(function*(e){var i=(0,p.default)`
|
|
2
2
|
query checkWorkspaceOTP($passcode: String!) {
|
|
3
3
|
checkWorkspaceOTP(passcode: $passcode)
|
|
4
4
|
}
|
|
@@ -10,9 +10,9 @@ export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export cons
|
|
|
10
10
|
workspaceName
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
`,t=yield this.apolloClient.mutate({mutation:i,variables:{passcode:e}}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n.exchangeWorkspaceOTP}),function(e){return a.apply(this,arguments)})}]),A=e=>new k(e),
|
|
13
|
+
`,t=yield this.apolloClient.mutate({mutation:i,variables:{passcode:e}}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n.exchangeWorkspaceOTP}),function(e){return a.apply(this,arguments)})}]),A=e=>new k(e),C="Note: OAuth workspace access is awaiting the next production server release. Until then, use workspace auth (passcode or token; CLI: `bricks auth login-workspace`).",b=(e,i)=>{if(i?.kind!=="oauth")return e;var t=e?.message||String(e);if(!(403===(e?.statusCode||e?.networkError?.statusCode||e?.cause?.statusCode)||/\b403\b|invalid algorithm/i.test(t))||t.includes(C))return e;var n=Error(`${t}
|
|
14
14
|
|
|
15
|
-
${
|
|
15
|
+
${C}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseUrl=i,this.auth=(e=>{if(!e)return null;if("string"==typeof e){var i;return{kind:"token",token:e,getHeaders:(i=s(function*(){return{authorization:`Bearer ${e}`}}),function(){return i.apply(this,arguments)})}}return e})(t),this.token=this.auth?.token,this.endpoint="/api/graphql-workspace";var r=new I({uri:`${i}${this.endpoint}`,fetch:(0,_.createFetchForUrl)(i)}),o=h((n=s(function*(e,{headers:i}){return{headers:{...i,...a.auth?yield a.auth.getHeaders():{}}}}),function(e,i){return n.apply(this,arguments)}));this.apolloClient=new v({link:o.concat(r),cache:new f,defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"no-cache"},query:{errorPolicy:"all",fetchPolicy:"no-cache"}}}),this.queries=m,this.mutations=g,this.generateMethods()},[{key:"generateMethods",value:function(){var e=this,i=i=>([t,n])=>{if(!this[t]){var a,r=(a=s(function*(a,r,o=!1){try{var s=e.apolloClient[y[i]].bind(e.apolloClient),d=yield s({[i]:o?(0,$.YR)(n,{FragmentDefinition(e){if("BlueprintRun"===e.typeCondition.name.value)return{...e,selectionSet:{...e.selectionSet,selections:e.selectionSet.selections.filter(e=>!["instance_id","sessions"].includes(e.name?.value))}}},VariableDefinition:e=>"instanceId"===e.variable.name.value?null:void 0,Argument:e=>"instanceId"===e.name.value?null:void 0}):n,variables:o?Object.fromEntries(Object.entries(a).filter(([e])=>"instanceId"!==e)):a,...r}),l=d.data,u=d.errors;if(u)throw Error(u.map(({message:e})=>e).join("\n"));return l[t]}catch(e){var c=e.cause?.result?.errors||e.networkError?.result?.errors;if(c)throw Error(c.map(({message:e})=>e).join("\n"));throw e}}),function(e,i){return a.apply(this,arguments)});this[t]=s(function*(i={},n={}){try{return yield r(i,n)}catch(o){let a;if(/blueprint/i.test(t)&&(a=o.message,/Unknown argument "instanceId".*acquireBlueprintRun|Cannot query field "(?:instance_id|sessions)" on type "BlueprintRun"/.test(a)))return r(i,n,!0);if(e.auth?.kind==="oauth"&&e.auth.refresh&&/401|unauthoriz|jwt expired|token.*expired|invalid.*token/i.test(o?.message||"")){yield e.auth.refresh();try{return yield r(i,n)}catch(i){throw b(i,e.auth)}}throw b(o,e.auth)}})}};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}},{key:"query",value:(r=s(function*(e,i={}){var t=yield this.apolloClient.query({query:e,variables:i,fetchPolicy:"no-cache"}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n}),function(e){return r.apply(this,arguments)})},{key:"mutate",value:(o=s(function*(e,i={}){var t=yield this.apolloClient.mutate({mutation:e,variables:i}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n}),function(e){return o.apply(this,arguments)})}]),D=(e,i)=>new S(e,i)},75149(e,i,t){t.r(i),t.d(i,{createFetchForUrl:()=>r});var n=t(79657),a=t(64007);function r(e){var i=process.env.HTTPS_PROXY||process.env.https_proxy;if(!i||!e.startsWith("https://"))return n.Ay;var t=new a(i);return(e,i={})=>(0,n.Ay)(e,{...i,agent:t})}},48596(e,i,t){t.d(i,{$7:()=>u,$V:()=>c,C$:()=>_,F3:()=>r,J6:()=>p,NJ:()=>s,VZ:()=>o,Yi:()=>a,_A:()=>g,lI:()=>l,mJ:()=>d,zL:()=>m});var n=t(94370),a=(0,n.default)`
|
|
16
16
|
fragment cliWorkspaceArguments on Workspace {
|
|
17
17
|
_id
|
|
18
18
|
name
|
|
@@ -26,7 +26,6 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
26
26
|
enable_media_workspace
|
|
27
27
|
workspace_id
|
|
28
28
|
system_media_box_id
|
|
29
|
-
system_media_box_passcode
|
|
30
29
|
}
|
|
31
30
|
billing {
|
|
32
31
|
plan {
|
|
@@ -288,7 +287,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
288
287
|
description
|
|
289
288
|
current_version
|
|
290
289
|
}
|
|
291
|
-
|
|
290
|
+
`,$=(0,n.default)`
|
|
292
291
|
fragment cliBlueprintEdgeArguments on BlueprintEdge {
|
|
293
292
|
id
|
|
294
293
|
from
|
|
@@ -297,7 +296,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
297
296
|
label
|
|
298
297
|
derived
|
|
299
298
|
}
|
|
300
|
-
|
|
299
|
+
`,m=(0,n.default)`
|
|
301
300
|
fragment cliBlueprintRunArguments on BlueprintRun {
|
|
302
301
|
instance_id
|
|
303
302
|
sessions {
|
|
@@ -348,8 +347,8 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
348
347
|
create_datetime
|
|
349
348
|
last_modify_datetime
|
|
350
349
|
}
|
|
351
|
-
${m}
|
|
352
350
|
${$}
|
|
351
|
+
${m}
|
|
353
352
|
`,_=(0,n.default)`
|
|
354
353
|
fragment cliBlueprintShortArguments on Blueprint {
|
|
355
354
|
_id
|
|
@@ -366,8 +365,8 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
366
365
|
}
|
|
367
366
|
last_modify_datetime
|
|
368
367
|
}
|
|
369
|
-
${
|
|
370
|
-
`},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>
|
|
368
|
+
${m}
|
|
369
|
+
`},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>W,bindApplication:()=>f,bindButtressServer:()=>x,controlDevice:()=>o,copyMediaFiles:()=>B,createApplication:()=>p,createApplicationWithShareVersion:()=>$,createBlueprint:()=>R,createDevice:()=>r,createMediaFileUploadRequest:()=>S,createModule:()=>h,createVirtualDevice:()=>s,deleteMediaBoxFiles:()=>w,deleteMediaFiles:()=>L,dispatchDeviceGroupAction:()=>c,heartbeatBlueprintRun:()=>N,issueButtressAccessToken:()=>M,issueDevtoolsAccessToken:()=>T,releaseApplication:()=>b,releaseBlueprintRun:()=>O,releaseModule:()=>q,removeApplication:()=>_,removeBlueprint:()=>G,removeDevice:()=>u,removeModule:()=>k,revertBlueprint:()=>V,setMediaFileAsBoxPreview:()=>P,shortEditApplication:()=>v,shortEditModule:()=>A,triggerApplicationCanvasControl:()=>I,unbindButtressServer:()=>F,updateApplication:()=>m,updateBlueprint:()=>E,updateDevice:()=>l,updateMediaFiles:()=>D,updateModule:()=>y,updateVirtualDevice:()=>d,updateWorkspace:()=>C,useApplicationReleaseVersion:()=>g});var n=t(94370),a=t(48596),r=(0,n.default)`
|
|
371
370
|
mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
|
|
372
371
|
createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
|
|
373
372
|
...cliDeviceArguments
|
|
@@ -456,7 +455,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
456
455
|
}
|
|
457
456
|
}
|
|
458
457
|
${a.$7}
|
|
459
|
-
|
|
458
|
+
`,$=(0,n.default)`
|
|
460
459
|
mutation CLI_createApplicationWithShareVersion(
|
|
461
460
|
$name: String
|
|
462
461
|
$description: String
|
|
@@ -473,7 +472,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
474
|
${a.$7}
|
|
476
|
-
|
|
475
|
+
`,m=(0,n.default)`
|
|
477
476
|
mutation CLI_updateApplication(
|
|
478
477
|
$id: ID!
|
|
479
478
|
$config: String
|
|
@@ -552,7 +551,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
552
551
|
}
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
|
-
`,
|
|
554
|
+
`,I=(0,n.default)`
|
|
556
555
|
mutation CLI_triggerApplicationCanvasControl(
|
|
557
556
|
$id: ID!
|
|
558
557
|
$testId: String!
|
|
@@ -570,7 +569,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
570
569
|
_id
|
|
571
570
|
}
|
|
572
571
|
}
|
|
573
|
-
`,
|
|
572
|
+
`,h=(0,n.default)`
|
|
574
573
|
mutation CLI_createModule(
|
|
575
574
|
$name: String
|
|
576
575
|
$description: String
|
|
@@ -595,7 +594,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
595
594
|
}
|
|
596
595
|
}
|
|
597
596
|
${a.$V}
|
|
598
|
-
`,
|
|
597
|
+
`,y=(0,n.default)`
|
|
599
598
|
mutation CLI_updateModule(
|
|
600
599
|
$id: ID!
|
|
601
600
|
$config: String
|
|
@@ -632,7 +631,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
632
631
|
name
|
|
633
632
|
}
|
|
634
633
|
}
|
|
635
|
-
`,
|
|
634
|
+
`,C=(0,n.default)`
|
|
636
635
|
mutation CLI_updateWorkspace(
|
|
637
636
|
$name: String
|
|
638
637
|
$description: String
|
|
@@ -656,7 +655,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
656
655
|
}
|
|
657
656
|
}
|
|
658
657
|
}
|
|
659
|
-
`,
|
|
658
|
+
`,b=(0,n.default)`
|
|
660
659
|
mutation CLI_releaseApplication(
|
|
661
660
|
$id: ID!
|
|
662
661
|
$config: String
|
|
@@ -707,6 +706,31 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
707
706
|
}
|
|
708
707
|
}
|
|
709
708
|
`,D=(0,n.default)`
|
|
709
|
+
mutation CLI_updateMediaFiles(
|
|
710
|
+
$fileIds: [ID!]!
|
|
711
|
+
$name: String
|
|
712
|
+
$description: String
|
|
713
|
+
$userTags: [String]
|
|
714
|
+
) {
|
|
715
|
+
updateMediaFiles(fileIds: $fileIds, name: $name, description: $description, userTags: $userTags)
|
|
716
|
+
}
|
|
717
|
+
`,B=(0,n.default)`
|
|
718
|
+
mutation CLI_copyMediaFiles($fromBoxId: ID!, $toBoxId: ID!, $fileIds: [ID!]!) {
|
|
719
|
+
copyMediaFiles(fromBoxId: $fromBoxId, toBoxId: $toBoxId, fileIds: $fileIds)
|
|
720
|
+
}
|
|
721
|
+
`,L=(0,n.default)`
|
|
722
|
+
mutation CLI_deleteMediaFiles($boxId: ID!, $fileIds: [ID!]!) {
|
|
723
|
+
deleteMediaFiles(boxId: $boxId, fileIds: $fileIds)
|
|
724
|
+
}
|
|
725
|
+
`,w=(0,n.default)`
|
|
726
|
+
mutation CLI_deleteMediaBoxFiles($boxId: ID!, $includeTypes: [String]) {
|
|
727
|
+
deleteMediaBoxFiles(boxId: $boxId, includeTypes: $includeTypes)
|
|
728
|
+
}
|
|
729
|
+
`,P=(0,n.default)`
|
|
730
|
+
mutation CLI_setMediaFileAsBoxPreview($id: ID!) {
|
|
731
|
+
setMediaFileAsBoxPreview(id: $id)
|
|
732
|
+
}
|
|
733
|
+
`,q=(0,n.default)`
|
|
710
734
|
mutation CLI_releaseModule(
|
|
711
735
|
$id: ID!
|
|
712
736
|
$config: String
|
|
@@ -726,7 +750,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
726
750
|
name
|
|
727
751
|
}
|
|
728
752
|
}
|
|
729
|
-
`,
|
|
753
|
+
`,x=(0,n.default)`
|
|
730
754
|
mutation CLI_bindButtressServer(
|
|
731
755
|
$serverId: String!
|
|
732
756
|
$name: String
|
|
@@ -742,11 +766,11 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
742
766
|
}
|
|
743
767
|
}
|
|
744
768
|
}
|
|
745
|
-
`,
|
|
769
|
+
`,F=(0,n.default)`
|
|
746
770
|
mutation CLI_unbindButtressServer($serverId: String!) {
|
|
747
771
|
unbindButtressServer(serverId: $serverId)
|
|
748
772
|
}
|
|
749
|
-
`,
|
|
773
|
+
`,M=(0,n.default)`
|
|
750
774
|
mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
|
|
751
775
|
issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
|
|
752
776
|
token
|
|
@@ -755,7 +779,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
755
779
|
jti
|
|
756
780
|
}
|
|
757
781
|
}
|
|
758
|
-
`,
|
|
782
|
+
`,T=(0,n.default)`
|
|
759
783
|
mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
|
|
760
784
|
issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
|
|
761
785
|
token
|
|
@@ -764,32 +788,32 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
764
788
|
jti
|
|
765
789
|
}
|
|
766
790
|
}
|
|
767
|
-
`,
|
|
791
|
+
`,R=(0,n.default)`
|
|
768
792
|
mutation CLI_createBlueprint($name: String!, $description: String) {
|
|
769
793
|
createBlueprint(name: $name, description: $description) {
|
|
770
794
|
...cliBlueprintArguments
|
|
771
795
|
}
|
|
772
796
|
}
|
|
773
797
|
${a._A}
|
|
774
|
-
`,
|
|
798
|
+
`,E=(0,n.default)`
|
|
775
799
|
mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
|
|
776
800
|
updateBlueprint(id: $id, revision: $revision, patch: $patch) {
|
|
777
801
|
...cliBlueprintArguments
|
|
778
802
|
}
|
|
779
803
|
}
|
|
780
804
|
${a._A}
|
|
781
|
-
`,
|
|
805
|
+
`,V=(0,n.default)`
|
|
782
806
|
mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
|
|
783
807
|
revertBlueprint(id: $id, toRevision: $toRevision) {
|
|
784
808
|
...cliBlueprintArguments
|
|
785
809
|
}
|
|
786
810
|
}
|
|
787
811
|
${a._A}
|
|
788
|
-
`,
|
|
812
|
+
`,G=(0,n.default)`
|
|
789
813
|
mutation CLI_removeBlueprint($id: ID!) {
|
|
790
814
|
removeBlueprint(id: $id)
|
|
791
815
|
}
|
|
792
|
-
`,
|
|
816
|
+
`,W=(0,n.default)`
|
|
793
817
|
mutation CLI_acquireBlueprintRun(
|
|
794
818
|
$id: ID!
|
|
795
819
|
$host: String!
|
|
@@ -804,7 +828,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
804
828
|
}
|
|
805
829
|
}
|
|
806
830
|
${a.zL}
|
|
807
|
-
`,
|
|
831
|
+
`,N=(0,n.default)`
|
|
808
832
|
mutation CLI_heartbeatBlueprintRun($id: ID!, $sessionId: String!) {
|
|
809
833
|
heartbeatBlueprintRun(id: $id, sessionId: $sessionId) {
|
|
810
834
|
ok
|
|
@@ -814,11 +838,11 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
814
838
|
}
|
|
815
839
|
}
|
|
816
840
|
${a.zL}
|
|
817
|
-
`,
|
|
841
|
+
`,O=(0,n.default)`
|
|
818
842
|
mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
|
|
819
843
|
releaseBlueprintRun(id: $id, sessionId: $sessionId)
|
|
820
844
|
}
|
|
821
|
-
`},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()
|
|
845
|
+
`},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>$,applicationProject:()=>D,applicationReleaseVersions:()=>m,applications:()=>g,blueprint:()=>w,blueprintEvents:()=>M,blueprintProjection:()=>x,blueprintRevisions:()=>F,blueprints:()=>P,blueprintsByInstance:()=>q,buttressServers:()=>L,checkBindDevicePasscode:()=>h,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>S,devices:()=>s,devicesApplicationStatus:()=>T,devicesByGroup:()=>c,devicesPanel:()=>d,mediaBox:()=>C,mediaBoxes:()=>A,mediaFile:()=>b,mediaFiles:()=>y,mediaWorkspace:()=>k,module:()=>v,moduleProject:()=>B,modules:()=>f,publicApplicationShareInfo:()=>_,publicModules:()=>I,workspace:()=>r});var n=t(94370),a=t(48596),r=(0,n.default)`
|
|
822
846
|
query CLI_workspace {
|
|
823
847
|
workspace {
|
|
824
848
|
...cliWorkspaceArguments
|
|
@@ -888,7 +912,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
888
912
|
}
|
|
889
913
|
}
|
|
890
914
|
${a.lI}
|
|
891
|
-
|
|
915
|
+
`,$=(0,n.default)`
|
|
892
916
|
query CLI_applicationDeviceSettings($id: ID!) {
|
|
893
917
|
applicationDeviceSettings: application(id: $id) {
|
|
894
918
|
_id
|
|
@@ -913,7 +937,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
913
937
|
}
|
|
914
938
|
}
|
|
915
939
|
}
|
|
916
|
-
|
|
940
|
+
`,m=(0,n.default)`
|
|
917
941
|
query CLI_applicationReleaseVersions($id: ID!) {
|
|
918
942
|
applicationReleaseVersions(id: $id) {
|
|
919
943
|
_id
|
|
@@ -968,18 +992,18 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
968
992
|
}
|
|
969
993
|
}
|
|
970
994
|
${a.J6}
|
|
971
|
-
`,
|
|
995
|
+
`,I=(0,n.default)`
|
|
972
996
|
query CLI_publicModules($keyword: String!, $limit: Int) {
|
|
973
997
|
publicModules(keyword: $keyword, paginate: { limit: $limit }) {
|
|
974
998
|
...cliModuleShortArguments
|
|
975
999
|
}
|
|
976
1000
|
}
|
|
977
1001
|
${a.J6}
|
|
978
|
-
`,
|
|
1002
|
+
`,h=(0,n.default)`
|
|
979
1003
|
query CLI_checkBindDevicePasscode($passcode: String!) {
|
|
980
1004
|
checkBindDevicePasscode(passcode: $passcode)
|
|
981
1005
|
}
|
|
982
|
-
`,
|
|
1006
|
+
`,y=(0,n.default)`
|
|
983
1007
|
query CLI_mediaFiles(
|
|
984
1008
|
$boxId: ID!
|
|
985
1009
|
$includeTypes: [String]
|
|
@@ -1036,7 +1060,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1036
1060
|
}
|
|
1037
1061
|
}
|
|
1038
1062
|
`,A=(0,n.default)`
|
|
1039
|
-
query CLI_mediaBoxes {
|
|
1063
|
+
query CLI_mediaBoxes($includeCodes: Boolean = false) {
|
|
1040
1064
|
mediaBoxes {
|
|
1041
1065
|
id
|
|
1042
1066
|
name
|
|
@@ -1046,18 +1070,19 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1046
1070
|
size
|
|
1047
1071
|
createdAt
|
|
1048
1072
|
updatedAt
|
|
1073
|
+
# Passcode codes are credentials: fetched only for --show-codes
|
|
1049
1074
|
passcodes {
|
|
1050
1075
|
id
|
|
1051
1076
|
name
|
|
1052
|
-
code
|
|
1077
|
+
code @include(if: $includeCodes)
|
|
1053
1078
|
enableExpired
|
|
1054
1079
|
expiredAt
|
|
1055
1080
|
permissions
|
|
1056
1081
|
}
|
|
1057
1082
|
}
|
|
1058
1083
|
}
|
|
1059
|
-
`,
|
|
1060
|
-
query CLI_mediaBox($id: ID
|
|
1084
|
+
`,C=(0,n.default)`
|
|
1085
|
+
query CLI_mediaBox($id: ID!, $includeCodes: Boolean = false) {
|
|
1061
1086
|
mediaBox(id: $id) {
|
|
1062
1087
|
id
|
|
1063
1088
|
name
|
|
@@ -1067,17 +1092,18 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1067
1092
|
size
|
|
1068
1093
|
createdAt
|
|
1069
1094
|
updatedAt
|
|
1095
|
+
# Passcode codes are credentials: fetched only for --show-codes
|
|
1070
1096
|
passcodes {
|
|
1071
1097
|
id
|
|
1072
1098
|
name
|
|
1073
|
-
code
|
|
1099
|
+
code @include(if: $includeCodes)
|
|
1074
1100
|
enableExpired
|
|
1075
1101
|
expiredAt
|
|
1076
1102
|
permissions
|
|
1077
1103
|
}
|
|
1078
1104
|
}
|
|
1079
1105
|
}
|
|
1080
|
-
`,
|
|
1106
|
+
`,b=(0,n.default)`
|
|
1081
1107
|
query CLI_mediaFile($id: ID!) {
|
|
1082
1108
|
mediaFile(id: $id) {
|
|
1083
1109
|
id
|
|
@@ -1193,11 +1219,11 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1193
1219
|
}
|
|
1194
1220
|
}
|
|
1195
1221
|
${a.C$}
|
|
1196
|
-
`,
|
|
1222
|
+
`,x=(0,n.default)`
|
|
1197
1223
|
query CLI_blueprintProjection($id: ID!, $format: Int) {
|
|
1198
1224
|
blueprintProjection(id: $id, format: $format)
|
|
1199
1225
|
}
|
|
1200
|
-
`,
|
|
1226
|
+
`,F=(0,n.default)`
|
|
1201
1227
|
query CLI_blueprintRevisions($id: ID!, $limit: Int) {
|
|
1202
1228
|
blueprintRevisions(id: $id, limit: $limit) {
|
|
1203
1229
|
_id
|
|
@@ -1207,7 +1233,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1207
1233
|
created_at
|
|
1208
1234
|
}
|
|
1209
1235
|
}
|
|
1210
|
-
`,
|
|
1236
|
+
`,M=(0,n.default)`
|
|
1211
1237
|
query CLI_blueprintEvents($id: ID!, $limit: Int) {
|
|
1212
1238
|
blueprintEvents(id: $id, limit: $limit) {
|
|
1213
1239
|
_id
|
|
@@ -1223,7 +1249,7 @@ ${b}`);return n.cause=e,n},S=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1223
1249
|
created_at
|
|
1224
1250
|
}
|
|
1225
1251
|
}
|
|
1226
|
-
`,
|
|
1252
|
+
`,T=(0,n.default)`
|
|
1227
1253
|
query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
|
|
1228
1254
|
devicesApplicationStatus(filter: $filter, paginate: $paginate) {
|
|
1229
1255
|
device_id
|
package/lib/9387.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const __rspack_esm_id=9387;export const __rspack_esm_ids=[9387];export const __webpack_modules__={75149(r,t,e){e.d(t,{
|
|
1
|
+
export const __rspack_esm_id=9387;export const __rspack_esm_ids=[9387];export const __webpack_modules__={75149(r,t,e){e.r(t),e.d(t,{createFetchForUrl:()=>p});var a=e(79657),o=e(64007);function p(r){var t=process.env.HTTPS_PROXY||process.env.https_proxy;if(!t||!r.startsWith("https://"))return a.Ay;var e=new o(t);return(r,t={})=>(0,a.Ay)(r,{...t,agent:e})}},30182(r,t,e){e.r(t),e.d(t,{BANK_PROPERTY_META_VALUES:()=>p.YC,createBankClient:()=>f,resolveBankEndpoint:()=>n,validateBankPropertyMeta:()=>p.jR});var a=e(99436),o=e(75149),p=e(31596),i={"https://display.bricks.tools":"https://bank.bricks.tools","https://display-beta.bricks.tools":"https://bank-beta.bricks.tools"},n=r=>{if(process.env.BRICKS_BANK_ENDPOINT)return process.env.BRICKS_BANK_ENDPOINT;var t=i[r];if(t)return t;try{var e=new URL(r).hostname;if("localhost"===e||"127.0.0.1"===e)return"http://localhost:8080"}catch{}throw Error(`Cannot derive the Data Bank endpoint from ${r}; set BRICKS_BANK_ENDPOINT to override`)},s=`
|
|
2
2
|
propertyId
|
|
3
3
|
meta
|
|
4
4
|
definition
|
|
@@ -9,7 +9,7 @@ export const __rspack_esm_id=9387;export const __rspack_esm_ids=[9387];export co
|
|
|
9
9
|
lastUpdateKey
|
|
10
10
|
createAt
|
|
11
11
|
updateAt
|
|
12
|
-
`,l={InSubspace:"IN_SUBSPACE",Global:"GLOBAL"},d={IN_SUBSPACE:"InSubspace",GLOBAL:"Global"},y=r=>void 0===r?void 0:JSON.stringify(r),u=r=>r&&d[r.meta]?{...r,meta:d[r.meta]}:r,c=(r,t)=>{var e=r[t];if(null!==e&&!Array.isArray(e))throw Error(`Invalid Data Bank API response: expected ${t} to be an array or null`);return(e||[]).map(u)},f=({endpoint:r,spacename:t,spacekey:e})=>{var i,n=`${r}/api/graphql`,d=(0,o.
|
|
12
|
+
`,l={InSubspace:"IN_SUBSPACE",Global:"GLOBAL"},d={IN_SUBSPACE:"InSubspace",GLOBAL:"Global"},y=r=>void 0===r?void 0:JSON.stringify(r),u=r=>r&&d[r.meta]?{...r,meta:d[r.meta]}:r,c=(r,t)=>{var e=r[t];if(null!==e&&!Array.isArray(e))throw Error(`Invalid Data Bank API response: expected ${t} to be an array or null`);return(e||[]).map(u)},f=({endpoint:r,spacename:t,spacekey:e})=>{var i,n=`${r}/api/graphql`,d=(0,o.createFetchForUrl)(r),u=(i=a(function*(r,a){var o,p=yield d(n,{method:"POST",headers:{"content-type":"application/json",SPACENAME:t,SPACEKEY:e},body:JSON.stringify({query:r,variables:a})}),i=yield p.text();try{o=JSON.parse(i)}catch{if(p.ok)throw Error(`Invalid Data Bank API response (${p.status}): expected JSON`)}if(o?.errors?.length)throw Error(o.errors.map(({message:r})=>r).join("\n"));if(!p.ok){var s=Error(`Data Bank API error (${p.status}): ${i.trim()}`);throw 403===p.status&&(s.isBankAuthError=!0),s}if(!o?.data||"object"!=typeof o.data||Array.isArray(o.data))throw Error("Invalid Data Bank API response: expected a data object");return o.data}),function(r,t){return i.apply(this,arguments)});return{listProperties(){return a(function*({keyword:r,meta:t,ids:e}={}){return(0,p.jR)(t),c((yield u(`#graphql
|
|
13
13
|
query(
|
|
14
14
|
$filterUpdateHashes: [PropertyFilterUpdateHash!]
|
|
15
15
|
$filterMeta: String
|