@microsoft/cmr-cli 0.33.0 → 0.34.0
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 +37 -14
- package/THIRD-PARTY-NOTICES.txt +287 -30
- package/dist/Add-4RULNL6A.js +11 -0
- package/dist/AddConfig-D2DCR3JH.js +12 -0
- package/dist/AddConnector-5ZR5AF6H.js +19 -0
- package/dist/AddDeployment-7U4I5IC4.js +11 -0
- package/dist/AddDeploymentBinding-BZVRRZ7H.js +18 -0
- package/dist/AddRayfin-45ASHNIX.js +87 -0
- package/dist/Alter-36TSNZ4M.js +11 -0
- package/dist/{AuthStatus-XA6RGYYZ.js → AuthStatus-W5ZHOAVD.js} +2 -2
- package/dist/AuthSwitch-7HRPTGEG.js +13 -0
- package/dist/Bin.js +1 -1
- package/dist/BuildMaafApp-TLQXOVQC.js +11 -0
- package/dist/Clear-X55BZKYF.js +11 -0
- package/dist/Cli-EEO7V3MZ.js +47 -0
- package/dist/CloneMaafApp-4EHW3HE2.js +12 -0
- package/dist/CreateMaafApp-VNXWCAP4.js +23 -0
- package/dist/CreateMaafProject-WVBNZPVL.js +11 -0
- package/dist/DeleteMaafApp-UGUKARMO.js +11 -0
- package/dist/DeployMaafApp-GJO567TK.js +8 -0
- package/dist/DeployMaafProject-4TSW2SFJ.js +11 -0
- package/dist/DeploymentApprovals-SZKNJT76.js +11 -0
- package/dist/Dev-ZD3L6WYY.js +15 -0
- package/dist/{EnvironmentVariableAuthenticationProvider-EBRBQ5I2.js → EnvironmentVariableAuthenticationProvider-EURTERVX.js} +2 -2
- package/dist/FeatureSettings-GG7JGFIY.js +11 -0
- package/dist/{GenerateCode-Z2OY3SZR.js → GenerateCode-PNYC45SK.js} +2 -2
- package/dist/GetMaafBuildStatus-UTPVWF5L.js +11 -0
- package/dist/GetMaafProjectDeployStatus-PLK52YC4.js +12 -0
- package/dist/{GetSettings-64N4P6L7.js → GetSettings-RLRDJEC7.js} +2 -2
- package/dist/InfoMaafApp-CTB6IPRU.js +13 -0
- package/dist/InfoMaafProject-TULH566X.js +11 -0
- package/dist/Init-TYWP2E6U.js +11 -0
- package/dist/ListConnectorActions-UQS6D4UN.js +11 -0
- package/dist/ListConnectors-OCDO64AT.js +11 -0
- package/dist/ListDeployments-PDLJ3IEI.js +11 -0
- package/dist/ListMaafApps-UAWTTCGB.js +11 -0
- package/dist/ListMaafProjects-T3Q2GEDX.js +11 -0
- package/dist/{ListSchema-IR7FTBRR.js → ListSchema-G673LK5Q.js} +2 -2
- package/dist/{ListSettings-3M7UOOLI.js → ListSettings-EXCK5ZS6.js} +2 -2
- package/dist/{Login-G7TNQISG.js → Login-XZATPT4L.js} +2 -2
- package/dist/{Logout-AOOISVWK.js → Logout-2XM4IMZF.js} +2 -2
- package/dist/{MockFetch-GKQMNDW3.js → MockFetch-LW3KYEGC.js} +2 -2
- package/dist/NodeMsalAuthenticationProvider-ALMFNUEV.js +17 -0
- package/dist/Pack-RH4D4C7W.js +8 -0
- package/dist/PackProject-5DUWSBFA.js +14 -0
- package/dist/PlayMaafApp-5BXGXE6O.js +8 -0
- package/dist/ProjectApprovals-K3JF6D72.js +13 -0
- package/dist/ProjectRoleAssignments-7IUDEVBN.js +11 -0
- package/dist/RefreshDataSource-CMHDF2GP.js +11 -0
- package/dist/RefreshGitAuth-4TRO5IOQ.js +11 -0
- package/dist/Remove-KZD3SDDC.js +11 -0
- package/dist/{RemoveDataSource-T2AG7ZWC.js → RemoveDataSource-C7UXOUNH.js} +3 -3
- package/dist/RemoveDeployment-ZQJWQPD6.js +11 -0
- package/dist/ServicePrincipalAuthenticationProvider-3NPJTLF5.js +11 -0
- package/dist/SetSetting-3XO6HPG7.js +11 -0
- package/dist/{SetSetting-KOWAPJWX.js → SetSetting-ZW7F43GC.js} +2 -2
- package/dist/ShareLinkCreate-JXPW5H7A.js +11 -0
- package/dist/ShareLinkList-ICYPRIQV.js +11 -0
- package/dist/ShareLinkRevoke-JVMQZF7K.js +11 -0
- package/dist/ShareList-YGSTFMVE.js +11 -0
- package/dist/ShareMaafApp-ZCY72WHK.js +11 -0
- package/dist/{TelemetrySettings-FVJUK5MR.js → TelemetrySettings-P6WYWGW4.js} +2 -2
- package/dist/UnshareMaafApp-N4UR6Q4A.js +11 -0
- package/dist/{chunk-JWSX7DVU.js → chunk-2SRFM7D6.js} +2 -2
- package/dist/chunk-3YCPXSCO.js +11 -0
- package/dist/chunk-45EZLDPE.js +147 -0
- package/dist/{chunk-EFTF4FA7.js → chunk-4PI5THLA.js} +2 -2
- package/dist/{chunk-4C6DWU2Y.js → chunk-6KOL66SF.js} +2 -2
- package/dist/{chunk-2VJIWD7V.js → chunk-74RNALDY.js} +2 -2
- package/dist/{chunk-4JTUAUHI.js → chunk-7AEULMP2.js} +2 -2
- package/dist/{chunk-MWN7R4VR.js → chunk-7LAMG4KK.js} +2 -2
- package/dist/chunk-A5INC5TY.js +11 -0
- package/dist/chunk-AICYZHWK.js +11 -0
- package/dist/chunk-B4NTYKGH.js +12 -0
- package/dist/chunk-BAQPANON.js +11 -0
- package/dist/{chunk-BREK3DVB.js → chunk-BMOTNINY.js} +6 -6
- package/dist/{chunk-OUKOEUZA.js → chunk-C7UWPNC3.js} +1 -1
- package/dist/{chunk-2UMD5IAQ.js → chunk-CLY3OASM.js} +2 -2
- package/dist/chunk-DLUQVMUE.js +11 -0
- package/dist/{chunk-JDRULLI3.js → chunk-ENDUKF4E.js} +2 -2
- package/dist/{chunk-DOCWK326.js → chunk-FESGOCAP.js} +7 -7
- package/dist/{chunk-IM7SC23O.js → chunk-GO22IDEN.js} +6 -6
- package/dist/{chunk-WV7KDGLS.js → chunk-HHW4SKVU.js} +2 -2
- package/dist/{chunk-CONEIY4I.js → chunk-HZGDQAKA.js} +2 -2
- package/dist/{chunk-O4G2KO7E.js → chunk-IMVZRBSQ.js} +2 -2
- package/dist/chunk-K77VBHFP.js +12 -0
- package/dist/{chunk-CER3QPDN.js → chunk-KD4NQIYX.js} +3 -3
- package/dist/{chunk-4WQT5P2M.js → chunk-KN66FSQK.js} +2 -2
- package/dist/{chunk-4UHMKZLH.js → chunk-KPKJZKWW.js} +2 -2
- package/dist/chunk-NMZFJESU.js +12 -0
- package/dist/{chunk-ZREDMBLO.js → chunk-NNYOT7IR.js} +2 -2
- package/dist/{chunk-JMF444BA.js → chunk-OH3TCDCC.js} +2 -2
- package/dist/{chunk-A57M2UGH.js → chunk-OHQNTYJG.js} +2 -2
- package/dist/{chunk-4AO24KKT.js → chunk-PYPCPMCR.js} +5 -5
- package/dist/{chunk-OTXBVG3E.js → chunk-R2IECDVU.js} +3 -3
- package/dist/{chunk-FGB6GFXI.js → chunk-RA74M3YD.js} +2 -2
- package/dist/{chunk-E2O4YZX2.js → chunk-RSHOMYG6.js} +228 -227
- package/dist/chunk-UHNOINTO.js +11 -0
- package/dist/{chunk-ELHOJBVT.js → chunk-XC7Y6E2C.js} +11 -11
- package/dist/chunk-XJXWNOJR.js +11 -0
- package/dist/chunk-Y2D37EFX.js +13 -0
- package/dist/{chunk-C7V6WEZM.js → chunk-YEWRCEPT.js} +2 -2
- package/dist/chunk-Z4UX3JOS.js +12 -0
- package/dist/chunk-ZBQT5XZJ.js +32 -0
- package/dist/chunk-ZGBTKTTU.js +11 -0
- package/dist/{chunk-5BE4TLDK.js → chunk-ZLK2CMMJ.js} +23 -23
- package/dist/chunk-ZWJ5T5VI.js +11 -0
- package/dist/node-PLZPXPD7.js +29 -0
- package/dist/typescript-6OTSQQEW.js +458 -0
- package/package.json +5 -4
- package/dist/Add-75RSJNM4.js +0 -11
- package/dist/AddConfig-4SAYYOBQ.js +0 -12
- package/dist/AddConnector-P4R4NJ5P.js +0 -16
- package/dist/AddDeployment-TBA3AAGD.js +0 -11
- package/dist/AddDeploymentBinding-6FZ7Y5JM.js +0 -18
- package/dist/AddRayfin-35GBGCWF.js +0 -38
- package/dist/Alter-U7WDVOMU.js +0 -11
- package/dist/AuthSwitch-2FXB7WFU.js +0 -13
- package/dist/BuildMaafApp-3EGRD23G.js +0 -11
- package/dist/Clear-MZGQZ2XK.js +0 -11
- package/dist/Cli-6A2HUP7R.js +0 -47
- package/dist/CloneMaafApp-YAEYSP23.js +0 -12
- package/dist/CreateMaafApp-2XYROOHB.js +0 -23
- package/dist/CreateMaafProject-Q7KIVAR2.js +0 -11
- package/dist/DeleteMaafApp-G3SL3GGP.js +0 -11
- package/dist/DeployMaafApp-DBJONCUH.js +0 -8
- package/dist/DeployMaafProject-SOMMKVJO.js +0 -11
- package/dist/DeploymentApprovals-Y67LSQQG.js +0 -11
- package/dist/Dev-TXJLPT7K.js +0 -15
- package/dist/FeatureSettings-LYV6QUZB.js +0 -11
- package/dist/GetMaafBuildStatus-ZR5GCREL.js +0 -11
- package/dist/GetMaafProjectDeployStatus-OJ56DPZ6.js +0 -12
- package/dist/InfoMaafApp-FJM7UI5H.js +0 -13
- package/dist/InfoMaafProject-EU6OQ7DX.js +0 -11
- package/dist/Init-MTONJT7V.js +0 -11
- package/dist/ListConnectorActions-PJTNNWLH.js +0 -11
- package/dist/ListConnectors-JYNVPB3O.js +0 -11
- package/dist/ListDeployments-UV6J6WA5.js +0 -11
- package/dist/ListMaafApps-QPEX7JA4.js +0 -11
- package/dist/ListMaafProjects-RDR2S3HD.js +0 -11
- package/dist/NodeMsalAuthenticationProvider-6ABSS6QK.js +0 -17
- package/dist/Pack-QJZCMVEM.js +0 -8
- package/dist/PackProject-Y3Q3KOTC.js +0 -14
- package/dist/PlayMaafApp-MH66OLOV.js +0 -8
- package/dist/ProjectApprovals-NTFYLH3W.js +0 -13
- package/dist/ProjectRoleAssignments-7IDK6SGJ.js +0 -11
- package/dist/RefreshDataSource-CISFHQNA.js +0 -11
- package/dist/RefreshGitAuth-NUQ7JNJA.js +0 -11
- package/dist/Remove-IYDTKDJE.js +0 -11
- package/dist/RemoveDeployment-K3GDRCXJ.js +0 -11
- package/dist/ServicePrincipalAuthenticationProvider-CEHIAANL.js +0 -11
- package/dist/SetSetting-PD76MA6O.js +0 -11
- package/dist/ShareLinkCreate-VCWVBQ4B.js +0 -11
- package/dist/ShareLinkList-5VG5CG34.js +0 -11
- package/dist/ShareLinkRevoke-KYUNMTG5.js +0 -11
- package/dist/ShareList-M25UE6LD.js +0 -11
- package/dist/ShareMaafApp-QMEJEXPZ.js +0 -11
- package/dist/UnshareMaafApp-RIUUYHIL.js +0 -11
- package/dist/chunk-36YYCVFC.js +0 -12
- package/dist/chunk-3UIUI5Q2.js +0 -11
- package/dist/chunk-B6REHI77.js +0 -11
- package/dist/chunk-GVLAG66W.js +0 -13
- package/dist/chunk-HWEMI6JI.js +0 -12
- package/dist/chunk-OB6WEE2V.js +0 -11
- package/dist/chunk-OBATM5M4.js +0 -11
- package/dist/chunk-PBXK6LJO.js +0 -11
- package/dist/chunk-VAKAW5BD.js +0 -12
- package/dist/chunk-WV7D7PTW.js +0 -12
- package/dist/chunk-YMRQPXY7.js +0 -32
- package/dist/chunk-YYXAAA2U.js +0 -11
- package/dist/rayfin-pack-HOUOLOHQ.js +0 -164
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __pathDirname(__filename);
|
|
7
|
+
import{f as Te}from"./chunk-FESGOCAP.js";import{a as Oe}from"./chunk-ZGBTKTTU.js";import{a as Ae,b as $e,d as De,e as Ie,g as Ne}from"./chunk-2SRFM7D6.js";import"./chunk-7LAMG4KK.js";import"./chunk-4PI5THLA.js";import"./chunk-BMOTNINY.js";import{a as _,c as ve,d as $,e as Se,g as Ce}from"./chunk-ZLK2CMMJ.js";import"./chunk-A5INC5TY.js";import{A as re,L as se,Ob as h,Pb as F,S as ce,T as de,U as le,_ as fe,hb as pe,l as oe,va as ge,x as ie,xa as ue,y as a}from"./chunk-RSHOMYG6.js";import{c as w,d as R,e as P}from"./chunk-WS6TGUH7.js";import"./chunk-GO22IDEN.js";import"./chunk-UHNOINTO.js";import"./chunk-YEWRCEPT.js";import"./chunk-DLUQVMUE.js";import"./chunk-C7UWPNC3.js";import{a as ae}from"./chunk-AICYZHWK.js";import{A as te,B as ne,F as me,H as he,I as we,N as be,P as ye,y as E,z as q}from"./chunk-PYPCPMCR.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";import*as Re from"node:path";var Ee=200,qe=/^[A-Za-z0-9_$-]+$/;async function mt(e){let t=ae.app.override.dataSource;if(e.setDescription(t.description),e.addExamples(t.examples),e.consumePositionalArg(P.Name),e.addOptions([{flags:{key:P.Target.name},description:t.options.target},{flags:{key:w.ConnectionId.name,alias:w.ConnectionId.alias},env:w.ConnectionId.envVar,description:t.options.connectionId},{flags:{key:w.Dataset.name,alias:w.Dataset.alias},env:w.Dataset.envVar,description:t.options.dataset},{flags:{key:R.Table.name,alias:R.Table.alias},env:R.Table.envVar,description:t.options.table,parseArg:Se,optionalInNonInteractive:!0}]),await e.runVerb(),!d(e.getPositionalArg(0)))throw new a(`Data source name is required. Run '${"ms"} app override data-source <name> --target <target>'.`);let n=await e.getOption(P.Target.name,!0);if(!d(n)){if(!F().interactive||e.isJsonMode())throw new a("--target is required. Specify --target prod or --target test.");let r;try{let o=await Oe(e,!1);e.updateEnvironmentId(o.environmentId),r=await pe({projectId:o.projectId,logger:h()})}catch(o){throw o instanceof a||o instanceof re?o:(h().trackErrorEvent("App.OverrideDataSource.TargetDiscoveryFailed",{error:o instanceof Error?o.message:String(o)}),new ie("Unable to discover deployment targets. Check your connection and project access, then retry or specify --target prod or --target test."))}let c=De.filter(o=>o===$e||r.some(u=>u.stageName===o&&u.state!=="Deleting"));n=await ve({message:"Select a deployment target:",options:c.map(o=>({value:o,label:o}))})}await _e(e,n)}async function _e(e,t){let n=Ie(t,"--target"),r=Ae(),c=Ne(r,n),o=Re.basename(c),u=F(),D=e.isJsonMode(),V=u.interactive&&!D,j=ue(r.config).all.filter(i=>i.kind==="table"&&!i.sqlStoredProcedure),s=Je({argumentProvider:e,target:n,eligibleDataSources:j,isJsonMode:D}),g=j.find(i=>i.name===s);if(!g)throw D||Pe(j),new a(`Data source '${s}' not found in the base app config. Run '${"ms"} app add data-source' to add it first.`);if(!await u.cliFs.exists(c))throw new a(`Target '${n}' has no config file ('${o}'). Run '${"ms"} app add config --target ${n}' first, then re-run this command.`);let J=await Ue(c,o),I=E(r.config),U=E(J);He(I,U,o);let H=Object.entries(I.connectionReferences??{}).find(([,i])=>i.dataSources?.includes(s));if(!H)throw new a(`Data source '${s}' is not associated with a connection reference in the base app config.`);let[W,je]=H,N=d(je.sharedConnectionId),xe=te(I,U).connectionReferences?.[W],Be=await e.getOption("connectionId",!0),l=await e.getOption("dataset",!0),G=Ze(await e.getOption("table",!0));if(G.length>1)throw new a("--table can be specified only once with --target because one logical data source is being rebound.");let f=G[0];if(l&&$(l,"Dataset"),f!==void 0&&($(f,"Table name"),!f.trim()))throw new a("Table names cannot be empty.");let Y=g.dataverseTable===void 0,A=C(Be);if(!V){if(A===void 0)throw new a("--connection-id is required. Provide an existing connection ID.");if(Y&&!d(l))throw new a("--dataset is required for this data source. Provide a dataset name or site URL.")}let z,X=async()=>(z??=await ce(g.connectorId,h()),z);if(A===void 0){let i=await X(),ee=(await le(g.connectorId,h())??[]).filter(v=>!N||Fe(v,i));if(ee.length===0)throw new a(`No compatible existing connections were found for '${s}'. Create a connection first, then re-run with --connection-id <id>.`);if(A=C(await Ce({message:"Select an existing connection:",options:ee.map(v=>({value:v.name,label:v.properties.displayName||v.name,hint:v.name})),manualPromptMessage:"Enter existing connection ID:"})),A===void 0)throw new a("--connection-id is required. Provide an existing connection ID.")}let p=Ge(A);Ye(p,"connectionId");let x;try{x=await de(p,g.connectorId,h())}catch(i){throw i instanceof oe&&i.status===404?new a(`Connection '${p}' was not found for connector '${g.connectorId}'.`):i}if(!x)throw new a(`Connection '${p}' was not found for connector '${g.connectorId}'.`);if(N&&!Fe(x,await X()))throw new a(Ve(s,p));if(V){if(Y&&!d(l)){if(l=await _({message:"Dataset name or site URL for this target:"}),!d(l))throw new a("--dataset is required for this data source. Provide a dataset name or site URL.");$(l,"Dataset")}f??=await Qe("Table for this target (required when changing the dataset; otherwise leave blank to keep the current value for this target):"),f!==void 0&&$(f,"Table name")}Ke({target:n,datasetFlag:l,tableFlag:f,persistsSharedConnection:N});let B=We(xe,s),M=C(l),Z=C(f);if(M!==void 0&&M!==B.dataset&&Z===void 0)throw new a(`Changing the dataset for '${s}' requires --table because table identifiers are dataset-specific.`);let b=M??B.dataset,m=Z??B.tableName;if(!b||!m?.trim()){let i=[b?void 0:"--dataset",m?.trim()?void 0:"--table"].filter(y=>y!==void 0).join(" and ");throw new a(`The effective binding for '${s}' is missing ${i}. Provide the missing value and re-run the command.`)}for(let[i,y]of[["--dataset",l??b],["--table",f??m],["--dataset",b],["--table",m]])if(/[\p{Cc}\p{Cs}]/u.test(y))throw new a(`${i} must not contain control characters or malformed Unicode.`);let Me=await Te({apiId:g.connectorId,connectionId:p,impact:"The target binding was saved, but later calls",defer:!0}),K=se(),O=await ge({vfs:u.cliFs,authProvider:e.getAuthenticationProvider(),httpClient:e.getHttpClient(),region:K.region,environmentName:K.environmentName,actionsParams:{apiId:g.connectorId,connectionId:p,dataset:b,tableName:m,dataSourceName:s},localFilePaths:u.fileConfig,logger:h()});if(O.drift.length>0)throw new a(`Table '${m}' for target '${n}' does not match the base schema for '${s}'.
|
|
8
|
+
${O.drift.map(i=>` - ${i}`).join(`
|
|
9
|
+
`)}`);let ke=O.baseSchemaMissing?`Schema parity could not be evaluated for '${s}' because its base schema file is missing.`:void 0,k=ze(J),Le=k.connectionReferences??={},T=Le[W]??={};if(N?T.sharedConnectionId=p:delete T.sharedConnectionId,d(l)||d(f)){Xe(T,s);let i=T.dataSets??={},y=i[b]??={dataSources:{}};y.dataSources[s]={tableName:O.tableName??m}}let Q=q(I,E(k));if(!Q.valid)throw new a(`The updated target config '${o}' is invalid:
|
|
10
|
+
${Q.errors.join(`
|
|
11
|
+
`)}`);await u.cliFs.writeFile(c,`${JSON.stringify(k,null,2)}
|
|
12
|
+
`);let L=[ke,Me].filter(i=>i!==void 0);if(D){we({target:n,dataSource:s,path:c,...L.length===0?{}:{warnings:L}});return}he(`Data source '${s}' bound for target '${n}' in '${o}'.`);for(let i of L)ye(i);be(`Hint: Run '${"ms"} app dev' to test locally, or '${"ms"} app deploy' to deploy.`)}function Fe(e,t){let n=t.properties.connectionParameterSets?.values,r=C(e.properties.connectionParametersSet?.name),c=n?.find(o=>o.name.toLowerCase()===r?.toLowerCase())?.name??r??(n?.length===1?n[0].name:void 0);return fe(t,c)}function Ve(e,t){return`${t?`Connection '${t}' is not compatible`:"No existing connection is compatible"} with data source '${e}'. Connections for this binding must support connection sharing.`}function Je(e){let t=C(e.argumentProvider.getPositionalArg(0));if(d(t))return t;throw e.isJsonMode||Pe(e.eligibleDataSources),new a(`Data source name is required. Re-run with '${"ms"} app override data-source <name> --target ${e.target}'.`)}function Pe(e){me({title:"Available tabular data sources",columns:[{header:"Data Source"},{header:"Connector",maxWidth:30}],rows:e.map(t=>[t.name,t.connectorDisplayName]),emptyMessage:"No tabular data sources found in the base app config.",totalLabel:"data source(s) found"})}async function Ue(e,t){let n;try{n=ne(await F().cliFs.readFile(e,"utf-8"))}catch(r){throw r instanceof Error&&r.message==="file is not valid JSON"?new a(`Target config '${t}' is not valid JSON.`):r}if(!et(n))throw new a(`Target config '${t}' must contain a JSON object.`);if("$schema"in n&&n.$schema!==void 0&&typeof n.$schema!="string")throw new a(`Target config '${t}' has a non-string $schema value.`);return n}function He(e,t,n){let r=q(e,t);if(!r.valid)throw new a(`Target config '${n}' is invalid:
|
|
13
|
+
${r.errors.join(`
|
|
14
|
+
`)}`)}function We(e,t){for(let[n,r]of Object.entries(e?.dataSets??{})){let c=r.dataSources[t];if(c)return{dataset:n,tableName:c.tableName}}return{}}function Ge(e){return e.split("/").filter(Boolean).at(-1)??e}function Ye(e,t){if(e.length===0||e.length>Ee||!qe.test(e))throw new a(`${t} must be 1-${Ee} characters using only letters, numbers, underscores, hyphens, or dollar signs.`)}function ze(e){let{$schema:t,...n}=e;return{...t===void 0?{}:{$schema:t},...structuredClone(n)}}function Xe(e,t){for(let[n,r]of Object.entries(e.dataSets??{}))delete r.dataSources[t],Object.keys(r.dataSources).length===0&&delete e.dataSets?.[n]}function Ze(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function Ke(e){let{target:t,datasetFlag:n,tableFlag:r,persistsSharedConnection:c}=e;if(c||[n,r].some(d))return;let o=c?"--connection-id, --dataset, or --table":"--dataset or --table";throw new a(`Nothing to bind for target '${t}'. Provide at least one of ${o}.`)}async function Qe(e){let t=await _({message:e});return d(t)?t:void 0}function C(e){return d(e)?e.trim():void 0}function d(e){return typeof e=="string"&&e.trim().length>0}function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export{mt as overrideDataSourceAsync,_e as runAddDeploymentBindingFlowAsync};
|
|
15
|
+
/*!
|
|
16
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
17
|
+
*/
|
|
18
|
+
//# sourceMappingURL=AddDeploymentBinding-BZVRRZ7H.js.map
|