@osdk/cli 0.0.9 → 0.0.11

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/build/js/index.cjs +2 -1
  3. package/build/js/index.cjs.map +1 -1
  4. package/build/js/index.js +1 -1
  5. package/build/js/index.js.map +1 -1
  6. package/build/types/generated/artifacts-sites/ContentSecurityPolicyAdditions.d.ts +3 -1
  7. package/build/types/generated/object-set-watcher/AllPropertiesPropertySet.d.ts +2 -0
  8. package/build/types/generated/object-set-watcher/Arg.d.ts +4 -0
  9. package/build/types/generated/object-set-watcher/AuditedObjectSetSubscribeRequests.d.ts +4 -0
  10. package/build/types/generated/object-set-watcher/AuditedObjectSetSubscribeResponse.d.ts +1 -0
  11. package/build/types/generated/object-set-watcher/AuditedObjectSetSubscribeResponses.d.ts +4 -0
  12. package/build/types/generated/object-set-watcher/BaseVersion.d.ts +1 -0
  13. package/build/types/generated/object-set-watcher/BatchEnableWatcherRequest.d.ts +4 -0
  14. package/build/types/generated/object-set-watcher/Error.d.ts +6 -0
  15. package/build/types/generated/object-set-watcher/ErrorName.d.ts +1 -0
  16. package/build/types/generated/object-set-watcher/FilterValue.d.ts +1 -0
  17. package/build/types/generated/object-set-watcher/Message.d.ts +11 -0
  18. package/build/types/generated/object-set-watcher/ObjectSetChanged.d.ts +5 -0
  19. package/build/types/generated/object-set-watcher/ObjectSetContext.d.ts +4 -0
  20. package/build/types/generated/object-set-watcher/ObjectSetFilterContext.d.ts +5 -0
  21. package/build/types/generated/object-set-watcher/ObjectSetRid.d.ts +1 -0
  22. package/build/types/generated/object-set-watcher/ObjectSetStreamSubscribeRequest.d.ts +8 -0
  23. package/build/types/generated/object-set-watcher/ObjectSetStreamSubscribeRequests.d.ts +6 -0
  24. package/build/types/generated/object-set-watcher/ObjectSetSubscribeRequest.d.ts +7 -0
  25. package/build/types/generated/object-set-watcher/ObjectSetSubscribeRequests.d.ts +6 -0
  26. package/build/types/generated/object-set-watcher/ObjectSetSubscribeResponse.d.ts +16 -0
  27. package/build/types/generated/object-set-watcher/ObjectSetSubscribeResponses.d.ts +6 -0
  28. package/build/types/generated/object-set-watcher/ObjectSetUpdates.d.ts +6 -0
  29. package/build/types/generated/object-set-watcher/ObjectSetWatchService/batchEnableWatcher.d.ts +3 -0
  30. package/build/types/generated/object-set-watcher/ObjectSetWatchService.d.ts +1 -0
  31. package/build/types/generated/object-set-watcher/ObjectTypeRid.d.ts +1 -0
  32. package/build/types/generated/object-set-watcher/PatchOffset.d.ts +1 -0
  33. package/build/types/generated/object-set-watcher/PropertyId.d.ts +1 -0
  34. package/build/types/generated/object-set-watcher/PropertySelection.d.ts +6 -0
  35. package/build/types/generated/object-set-watcher/PropertySet.d.ts +11 -0
  36. package/build/types/generated/object-set-watcher/PropertyTypeRid.d.ts +1 -0
  37. package/build/types/generated/object-set-watcher/PropertyTypeRidPropertySelection.d.ts +4 -0
  38. package/build/types/generated/object-set-watcher/QosError.d.ts +2 -0
  39. package/build/types/generated/object-set-watcher/RefreshObjectSet.d.ts +4 -0
  40. package/build/types/generated/object-set-watcher/RequestId.d.ts +1 -0
  41. package/build/types/generated/object-set-watcher/SelectedPropertiesPropertySet.d.ts +4 -0
  42. package/build/types/generated/object-set-watcher/StreamMessage.d.ts +16 -0
  43. package/build/types/generated/object-set-watcher/SubscriptionError.d.ts +4 -0
  44. package/build/types/generated/object-set-watcher/SubscriptionId.d.ts +1 -0
  45. package/build/types/generated/object-set-watcher/SubscriptionSuccess.d.ts +4 -0
  46. package/build/types/generated/object-set-watcher/UnresolvedFilterParameterId.d.ts +1 -0
  47. package/build/types/generated/object-set-watcher/index.d.ts +41 -0
  48. package/build/types/generated/object-set-watcher/object/DatasourceRid.d.ts +1 -0
  49. package/build/types/generated/object-set-watcher/object/FoundryObject.d.ts +14 -0
  50. package/build/types/generated/object-set-watcher/object/ObjectKey.d.ts +3 -0
  51. package/build/types/generated/object-set-watcher/object/ObjectTypeRid.d.ts +1 -0
  52. package/build/types/generated/object-set-watcher/object/ObjectVersion.d.ts +1 -0
  53. package/build/types/generated/object-set-watcher/object/PropertyRid.d.ts +1 -0
  54. package/build/types/generated/object-set-watcher/object/PropertyValue.d.ts +2 -0
  55. package/build/types/generated/object-set-watcher/object/index.d.ts +7 -0
  56. package/build/types/generated/object-set-watcher/types/Attachment.d.ts +1 -0
  57. package/build/types/generated/object-set-watcher/types/Byte.d.ts +1 -0
  58. package/build/types/generated/object-set-watcher/types/CatalogFileReference.d.ts +7 -0
  59. package/build/types/generated/object-set-watcher/types/Ciphertext.d.ts +1 -0
  60. package/build/types/generated/object-set-watcher/types/DatasetFileReference.d.ts +5 -0
  61. package/build/types/generated/object-set-watcher/types/DatasetRid.d.ts +1 -0
  62. package/build/types/generated/object-set-watcher/types/Date.d.ts +1 -0
  63. package/build/types/generated/object-set-watcher/types/Decimal.d.ts +1 -0
  64. package/build/types/generated/object-set-watcher/types/DecimalType.d.ts +4 -0
  65. package/build/types/generated/object-set-watcher/types/Float.d.ts +1 -0
  66. package/build/types/generated/object-set-watcher/types/Geohash.d.ts +1 -0
  67. package/build/types/generated/object-set-watcher/types/Geoshape.d.ts +1 -0
  68. package/build/types/generated/object-set-watcher/types/GeotimeSeriesId.d.ts +1 -0
  69. package/build/types/generated/object-set-watcher/types/GeotimeSeriesIntegrationRid.d.ts +1 -0
  70. package/build/types/generated/object-set-watcher/types/GeotimeSeriesReference.d.ts +6 -0
  71. package/build/types/generated/object-set-watcher/types/Long.d.ts +1 -0
  72. package/build/types/generated/object-set-watcher/types/Marking.d.ts +1 -0
  73. package/build/types/generated/object-set-watcher/types/MarkingType.d.ts +1 -0
  74. package/build/types/generated/object-set-watcher/types/MediaItemReference.d.ts +6 -0
  75. package/build/types/generated/object-set-watcher/types/MediaItemRid.d.ts +1 -0
  76. package/build/types/generated/object-set-watcher/types/MediaReference.d.ts +6 -0
  77. package/build/types/generated/object-set-watcher/types/MediaSetRid.d.ts +1 -0
  78. package/build/types/generated/object-set-watcher/types/MediaSetViewRid.d.ts +1 -0
  79. package/build/types/generated/object-set-watcher/types/MediaValueReference.d.ts +16 -0
  80. package/build/types/generated/object-set-watcher/types/MediaViewItemReference.d.ts +8 -0
  81. package/build/types/generated/object-set-watcher/types/MimeType.d.ts +1 -0
  82. package/build/types/generated/object-set-watcher/types/Null.d.ts +2 -0
  83. package/build/types/generated/object-set-watcher/types/PrimitiveType.d.ts +1 -0
  84. package/build/types/generated/object-set-watcher/types/Short.d.ts +1 -0
  85. package/build/types/generated/object-set-watcher/types/Timestamp.d.ts +1 -0
  86. package/build/types/generated/object-set-watcher/types/TransactionRid.d.ts +1 -0
  87. package/build/types/generated/object-set-watcher/types/Value.d.ts +105 -0
  88. package/build/types/generated/object-set-watcher/types/ValueType.d.ts +25 -0
  89. package/build/types/generated/object-set-watcher/types/Vector.d.ts +1 -0
  90. package/build/types/generated/object-set-watcher/types/VectorType.d.ts +3 -0
  91. package/build/types/generated/object-set-watcher/types/index.d.ts +35 -0
  92. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @osdk/cli
2
2
 
3
+ ## 0.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 4f73749: Re-add the types to support the ObjectSet APIs
8
+ - Updated dependencies [4f73749]
9
+ - @osdk/generator@0.0.13
10
+ - @osdk/api@0.0.15
11
+
12
+ ## 0.0.10
13
+
14
+ ### Patch Changes
15
+
16
+ - ad425f9: Fix query return type for objects
17
+ - Updated dependencies [ad425f9]
18
+ - @osdk/generator@0.0.12
19
+ - @osdk/api@0.0.14
20
+
3
21
  ## 0.0.9
4
22
 
5
23
  ### Patch Changes
@@ -6,6 +6,7 @@ var V = require('yargs');
6
6
  var helpers = require('yargs/helpers');
7
7
  var p = require('fs');
8
8
 
9
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
10
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
11
 
11
12
  function _interopNamespace(e) {
@@ -29,7 +30,7 @@ function _interopNamespace(e) {
29
30
  var V__default = /*#__PURE__*/_interopDefault(V);
30
31
  var p__namespace = /*#__PURE__*/_interopNamespace(p);
31
32
 
32
- var g={command:"delete",describe:"Delete an uploaded version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteDeleteCommand-XZF4TDGA.cjs')).default(e);}},t=g;var y={command:"deploy",describe:"Deploy an uploaded version",builder:e=>e.options({siteVersion:{type:"string",conflicts:"clearVersion"},undeploy:{alias:"clearVersion",description:"Causes the site to no longer be deployed",type:"boolean",conflicts:"siteVersion"}}).group(["siteVersion","clearVersion"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleSiteDeploy-F77NQQTE.cjs')).default(e);}},a=y;var b={command:"upload",describe:"Upload an application version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteUploadCommand-LF4U2XI6.cjs')).default(e);}},i=b;var v={command:"versions",describe:"List application versions",builder:e=>e,handler:async e=>{await(await import('./siteVersionsCommand-N33FEMLE.cjs')).default(e);}},s=v;var w={command:"site",describe:"Manage your site",builder:e=>e.options({appRid:{type:"string",demandOption:!0,coerce:o=>o},baseUrl:{type:"string",demandOption:!0}}).group(["appRid","baseUrl"],"Common Arguments").command(s).command(i).command(t).command(a).demandCommand(),handler:async e=>{}},d=w;var x={command:"generate",describe:"Generate typescript from ontology",builder:e=>e.options({outDir:{type:"string",description:"Where to place the generated files",demandOption:!0},ontologyPath:{description:"path to the ontology wire json",type:"string",demandOption:!0}}).group(["outDir","ontologyPath"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleGenerate-SY3UD5UA.cjs')).default(e);}},m=x;var h={command:"typescript",describe:"Manage code",builder:e=>e.command(m).demandCommand(),handler:async e=>{}},c=h;async function l(){let{findUp:e}=await import('find-up'),o=await e("package.json");if(!o)return "(unknown version. No package.json found)";let n=JSON.parse(await p__namespace.promises.readFile(o,"utf-8"));return n.version?`v${n.version}`:"(unknown version. No version in package.json found)"}var u=!0;async function f(e){if(u){let n=(await import('consola')).consola;n.info(`Palantir OSDK CLI ${await l()}`),n.level=3+e.verbose,n.level>3&&n.debug(`Verbose logging enabled (${n.level===4?"debug":"trace"})`),console.log(),u=!1;}}async function D(e=process.argv){let o=V__default.default(helpers.hideBin(e)).env("OSDK").version(!1).option("verbose",{alias:"v",type:"boolean",description:"Enable verbose logging",count:!0}).demandCommand().middleware(f,!0).strict().command(d).command(c);try{return o.parseAsync()}catch(n){n instanceof chunkV4QJCMF6_cjs.a&&(await import('consola')).consola.error(n.message);}}
33
+ var g={command:"delete",describe:"Delete an uploaded version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteDeleteCommand-XZF4TDGA.cjs')).default(e);}},t=g;var y={command:"deploy",describe:"Deploy an uploaded version",builder:e=>e.options({siteVersion:{type:"string",conflicts:"clearVersion"},undeploy:{alias:"clearVersion",description:"Causes the site to no longer be deployed",type:"boolean",conflicts:"siteVersion"}}).group(["siteVersion","clearVersion"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleSiteDeploy-F77NQQTE.cjs')).default(e);}},a=y;var b={command:"upload",describe:"Upload an application version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteUploadCommand-LF4U2XI6.cjs')).default(e);}},i=b;var w={command:"versions",describe:"List application versions",builder:e=>e,handler:async e=>{await(await import('./siteVersionsCommand-N33FEMLE.cjs')).default(e);}},s=w;var v={command:"site",describe:"Manage your site",builder:e=>e.options({appRid:{type:"string",demandOption:!0,coerce:n=>n},baseUrl:{type:"string",demandOption:!0}}).group(["appRid","baseUrl"],"Common Arguments").command(s).command(i).command(t).command(a).demandCommand(),handler:async e=>{}},d=v;var x={command:"generate",describe:"Generate typescript from ontology",builder:e=>e.options({outDir:{type:"string",description:"Where to place the generated files",demandOption:!0},ontologyPath:{description:"path to the ontology wire json",type:"string",demandOption:!0}}).group(["outDir","ontologyPath"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleGenerate-SY3UD5UA.cjs')).default(e);}},m=x;var h={command:"typescript",describe:"Manage code",builder:e=>e.command(m).demandCommand(),handler:async e=>{}},c=h;async function l(){let{findUp:e}=await import('find-up'),n=await e("package.json",{cwd:(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('out.js', document.baseURI).href))});if(!n)return "(unknown version. No package.json found)";let o=JSON.parse(await p__namespace.promises.readFile(n,"utf-8"));return o.version?`v${o.version}`:"(unknown version. No version in package.json found)"}var u=!0;async function f(e){if(u){let o=(await import('consola')).consola;o.info(`Palantir OSDK CLI ${await l()}`),o.level=3+e.verbose,o.level>3&&o.debug(`Verbose logging enabled (${o.level===4?"debug":"trace"})`),console.log(),u=!1;}}async function D(e=process.argv){let n=V__default.default(helpers.hideBin(e)).env("OSDK").version(!1).option("verbose",{alias:"v",type:"boolean",description:"Enable verbose logging",count:!0}).demandCommand().middleware(f,!0).strict().command({command:"unstable",aliases:["experimental"],builder:async o=>o.command(d).command(c).demandCommand(),handler:o=>{}});try{return n.parseAsync()}catch(o){o instanceof chunkV4QJCMF6_cjs.a&&(await import('consola')).consola.error(o.message);}}
33
34
 
34
35
  exports.cli = D;
35
36
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","delete_default","deploy_default","upload_default","versions_default","site","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","e","ExitProcessError"],"mappings":"sEAgBA,OAAOA,MAAW,QAClB,OAAS,WAAAC,MAAe,gBCDjB,IAAMC,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,OAAO,cAAe,CAChC,KAAM,SACN,aAAc,EAChB,CAAC,EAAE,OAAO,MAAO,CACf,KAAM,QACR,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,kCAAyB,GACxC,QAAQA,CAAI,CAC5B,CACF,EACOC,EAAQH,EChBR,IAAMA,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,QAAQ,CAClB,YAAe,CACb,KAAM,SACN,UAAW,cAGb,EAEA,SAAU,CACR,MAAO,eACP,YAAa,2CACb,KAAM,UACN,UAAW,aAGb,CACF,CAAC,EAAE,MAAM,CAAC,cAAe,cAAc,EAAG,qCAAqC,EAejF,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,iCAAwB,GACvC,QAAQA,CAAI,CAC5B,CACF,EACOE,EAAQJ,ECxCR,IAAMA,EAAU,CACrB,QAAS,SACT,SAAU,gCACV,QAASC,GACAA,EAAK,OAAO,cAAe,CAChC,KAAM,SACN,aAAc,EAChB,CAAC,EAAE,OAAO,MAAO,CACf,KAAM,QACR,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,kCAAyB,GACxC,QAAQA,CAAI,CAC5B,CACF,EACOG,EAAQL,EChBR,IAAMA,EAAU,CACrB,QAAS,WACT,SAAU,4BACV,QAASC,GACAA,EAET,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,oCAA2B,GAC1C,QAAQA,CAAI,CAC5B,CACF,EACOI,EAAQN,ECPf,IAAMO,EAAO,CACX,QAAS,OACT,SAAU,mBACV,QAASN,GACAA,EAAK,QAAQ,CAClB,OAAQ,C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AQ,MAAQ,EAAIjB,EAAK,QACrBiB,EAAQ,MAAQ,GAClBA,EAAQ,MAAM,4BAA4BA,EAAQ,QAAU,EAAI,QAAU,OAAO,GAAG,EAItF,QAAQ,IAAI,EACZF,EAAY,EACd,CACF,CTXA,eAAsBG,EAAIlB,EAAO,QAAQ,KAAM,CAC7C,IAAMmB,EAAOvB,EAAMC,EAAQG,CAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,EAAK,EAAE,OAAO,UAAW,CAC7E,MAAO,IACP,KAAM,UACN,YAAa,yBACb,MAAO,EACT,CAAC,EAAE,cAAc,EAAE,WAAWgB,EAAsB,EAAI,EAAE,OAAO,EAAE,QAAQT,CAAI,EAAE,QAAQE,CAAU,EACnG,GAAI,CACF,OAAOU,EAAK,WAAW,CACzB,OAASC,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command(site).command(typescript);\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"generate\",\n describe: \"Generate typescript from ontology\",\n builder: argv => {\n return argv.options({\n \"outDir\": {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"path to the ontology wire json\",\n type: \"string\",\n demandOption: true\n }\n }).group([\"outDir\", \"ontologyPath\"], \"Version To Deploy (requires one of)\");\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\");\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
1
+ {"version":3,"sources":["../../src/cli.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","delete_default","deploy_default","upload_default","versions_default","site","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","_args","e","ExitProcessError"],"mappings":"sEAgBA,OAAOA,MAAW,QAClB,OAAS,WAAAC,MAAe,gBCDjB,IAAMC,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,OAAO,cAAe,CAChC,KAAM,SACN,aAAc,EAChB,CAAC,EAAE,OAAO,MAAO,CACf,KAAM,QACR,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,kCAAyB,GACxC,QAAQA,CAAI,CAC5B,CACF,EACOC,EAAQH,EChBR,IAAMA,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,QAAQ,CAClB,YAAe,CACb,KAAM,SACN,UAAW,cAGb,EAEA,SAAU,CACR,MAAO,eACP,YAAa,2C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I,EAAE,QAAQE,CAAU,EAAE,cAAc,EAE9D,QAASW,GAAS,CAAC,CACrB,CAAC,EACD,GAAI,CACF,OAAOD,EAAK,WAAW,CACzB,OAASE,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"generate\",\n describe: \"Generate typescript from ontology\",\n builder: argv => {\n return argv.options({\n \"outDir\": {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"path to the ontology wire json\",\n type: \"string\",\n demandOption: true\n }\n }).group([\"outDir\", \"ontologyPath\"], \"Version To Deploy (requires one of)\");\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\", {\n cwd: import.meta.url\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
package/build/js/index.js CHANGED
@@ -4,7 +4,7 @@ import V from 'yargs';
4
4
  import { hideBin } from 'yargs/helpers';
5
5
  import * as p from 'fs';
6
6
 
7
- var g={command:"delete",describe:"Delete an uploaded version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteDeleteCommand-PN2LUAZA.js')).default(e);}},t=g;var y={command:"deploy",describe:"Deploy an uploaded version",builder:e=>e.options({siteVersion:{type:"string",conflicts:"clearVersion"},undeploy:{alias:"clearVersion",description:"Causes the site to no longer be deployed",type:"boolean",conflicts:"siteVersion"}}).group(["siteVersion","clearVersion"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleSiteDeploy-YNRVWKWR.js')).default(e);}},a=y;var b={command:"upload",describe:"Upload an application version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteUploadCommand-MCV3ZQAW.js')).default(e);}},i=b;var v={command:"versions",describe:"List application versions",builder:e=>e,handler:async e=>{await(await import('./siteVersionsCommand-ZAZVGVKV.js')).default(e);}},s=v;var w={command:"site",describe:"Manage your site",builder:e=>e.options({appRid:{type:"string",demandOption:!0,coerce:o=>o},baseUrl:{type:"string",demandOption:!0}}).group(["appRid","baseUrl"],"Common Arguments").command(s).command(i).command(t).command(a).demandCommand(),handler:async e=>{}},d=w;var x={command:"generate",describe:"Generate typescript from ontology",builder:e=>e.options({outDir:{type:"string",description:"Where to place the generated files",demandOption:!0},ontologyPath:{description:"path to the ontology wire json",type:"string",demandOption:!0}}).group(["outDir","ontologyPath"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleGenerate-BUJOID4C.js')).default(e);}},m=x;var h={command:"typescript",describe:"Manage code",builder:e=>e.command(m).demandCommand(),handler:async e=>{}},c=h;async function l(){let{findUp:e}=await import('find-up'),o=await e("package.json");if(!o)return "(unknown version. No package.json found)";let n=JSON.parse(await p.promises.readFile(o,"utf-8"));return n.version?`v${n.version}`:"(unknown version. No version in package.json found)"}var u=!0;async function f(e){if(u){let n=(await import('consola')).consola;n.info(`Palantir OSDK CLI ${await l()}`),n.level=3+e.verbose,n.level>3&&n.debug(`Verbose logging enabled (${n.level===4?"debug":"trace"})`),console.log(),u=!1;}}async function D(e=process.argv){let o=V(hideBin(e)).env("OSDK").version(!1).option("verbose",{alias:"v",type:"boolean",description:"Enable verbose logging",count:!0}).demandCommand().middleware(f,!0).strict().command(d).command(c);try{return o.parseAsync()}catch(n){n instanceof a$1&&(await import('consola')).consola.error(n.message);}}
7
+ var g={command:"delete",describe:"Delete an uploaded version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteDeleteCommand-PN2LUAZA.js')).default(e);}},t=g;var y={command:"deploy",describe:"Deploy an uploaded version",builder:e=>e.options({siteVersion:{type:"string",conflicts:"clearVersion"},undeploy:{alias:"clearVersion",description:"Causes the site to no longer be deployed",type:"boolean",conflicts:"siteVersion"}}).group(["siteVersion","clearVersion"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleSiteDeploy-YNRVWKWR.js')).default(e);}},a=y;var b={command:"upload",describe:"Upload an application version",builder:e=>e.option("siteVersion",{type:"string",demandOption:!0}).option("dir",{type:"string"}),handler:async e=>{await(await import('./siteUploadCommand-MCV3ZQAW.js')).default(e);}},i=b;var w={command:"versions",describe:"List application versions",builder:e=>e,handler:async e=>{await(await import('./siteVersionsCommand-ZAZVGVKV.js')).default(e);}},s=w;var v={command:"site",describe:"Manage your site",builder:e=>e.options({appRid:{type:"string",demandOption:!0,coerce:n=>n},baseUrl:{type:"string",demandOption:!0}}).group(["appRid","baseUrl"],"Common Arguments").command(s).command(i).command(t).command(a).demandCommand(),handler:async e=>{}},d=v;var x={command:"generate",describe:"Generate typescript from ontology",builder:e=>e.options({outDir:{type:"string",description:"Where to place the generated files",demandOption:!0},ontologyPath:{description:"path to the ontology wire json",type:"string",demandOption:!0}}).group(["outDir","ontologyPath"],"Version To Deploy (requires one of)"),handler:async e=>{await(await import('./handleGenerate-BUJOID4C.js')).default(e);}},m=x;var h={command:"typescript",describe:"Manage code",builder:e=>e.command(m).demandCommand(),handler:async e=>{}},c=h;async function l(){let{findUp:e}=await import('find-up'),n=await e("package.json",{cwd:import.meta.url});if(!n)return "(unknown version. No package.json found)";let o=JSON.parse(await p.promises.readFile(n,"utf-8"));return o.version?`v${o.version}`:"(unknown version. No version in package.json found)"}var u=!0;async function f(e){if(u){let o=(await import('consola')).consola;o.info(`Palantir OSDK CLI ${await l()}`),o.level=3+e.verbose,o.level>3&&o.debug(`Verbose logging enabled (${o.level===4?"debug":"trace"})`),console.log(),u=!1;}}async function D(e=process.argv){let n=V(hideBin(e)).env("OSDK").version(!1).option("verbose",{alias:"v",type:"boolean",description:"Enable verbose logging",count:!0}).demandCommand().middleware(f,!0).strict().command({command:"unstable",aliases:["experimental"],builder:async o=>o.command(d).command(c).demandCommand(),handler:o=>{}});try{return n.parseAsync()}catch(o){o instanceof a$1&&(await import('consola')).consola.error(o.message);}}
8
8
 
9
9
  export { D as cli };
10
10
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","delete_default","deploy_default","upload_default","versions_default","site","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","e","ExitProcessError"],"mappings":"oEAgBA,OAA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AI,QAAU,OAAO,GAAG,EAItF,QAAQ,IAAI,EACZF,EAAY,EACd,CACF,CTXA,eAAsBG,EAAIlB,EAAO,QAAQ,KAAM,CAC7C,IAAMmB,EAAOvB,EAAMC,EAAQG,CAAI,CAAC,EAAE,IAAI,MAAM,EAAE,QAAQ,EAAK,EAAE,OAAO,UAAW,CAC7E,MAAO,IACP,KAAM,UACN,YAAa,yBACb,MAAO,EACT,CAAC,EAAE,cAAc,EAAE,WAAWgB,EAAsB,EAAI,EAAE,OAAO,EAAE,QAAQT,CAAI,EAAE,QAAQE,CAAU,EACnG,GAAI,CACF,OAAOU,EAAK,WAAW,CACzB,OAASC,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command(site).command(typescript);\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"generate\",\n describe: \"Generate typescript from ontology\",\n builder: argv => {\n return argv.options({\n \"outDir\": {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"path to the ontology wire json\",\n type: \"string\",\n demandOption: true\n }\n }).group([\"outDir\", \"ontologyPath\"], \"Version To Deploy (requires one of)\");\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\");\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
1
+ {"version":3,"sources":["../../src/cli.ts","../../src/commands/site/delete/index.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/upload/index.ts","../../src/commands/site/versions/index.ts","../../src/commands/site/index.ts","../../src/commands/typescript/generate/generate.ts","../../src/commands/typescript/index.ts","../../src/readCliVersionFromPackageJson.ts","../../src/yargs/logVersionMiddleware.ts"],"names":["yargs","hideBin","command","argv","args","delete_default","deploy_default","upload_default","versions_default","site","a","site_default","generate_default","typescript_default","fs","readCliVersionFromPackageJson","findUp","result","packageJson","firstTime","logVersionMiddleware","consola","cli","base","_args","e","ExitProcessError"],"mappings":"oEAgBA,OAAOA,MAAW,QAClB,OAAS,WAAAC,MAAe,gBCDjB,IAAMC,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,OAAO,cAAe,CAChC,KAAM,SACN,aAAc,EAChB,CAAC,EAAE,OAAO,MAAO,CACf,KAAM,QACR,CAAC,EAEH,QAAS,MAAMC,GAAQ,CAErB,MADgB,KAAM,QAAO,iCAAyB,GACxC,QAAQA,CAAI,CAC5B,CACF,EACOC,EAAQH,EChBR,IAAMA,EAAU,CACrB,QAAS,SACT,SAAU,6BACV,QAASC,GACAA,EAAK,QAAQ,CAClB,YAAe,CACb,KAAM,SACN,UAAW,cAGb,EAEA,SAAU,CACR,MAAO,eACP,YAAa,2CACb,KAAM,UACN,UAAW,aAGb,CACF,CAAC,EAAE,MAAM,CAAC,cAAe,cAAc,EAAG,qCAAqC,EAejF,QAAS,M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AAK,WAAW,CACzB,OAASE,EAAG,CACNA,aAAaC,IACC,KAAM,QAAO,SAAS,GAC9B,QAAQ,MAAMD,EAAE,OAAO,CAEnC,CACF","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport site from \"./commands/site/index.js\";\nimport typescript from \"./commands/typescript/index.js\";\nimport { ExitProcessError } from \"./ExitProcessError.js\";\nimport { logVersionMiddleware } from \"./yargs/logVersionMiddleware.js\";\nexport async function cli(args = process.argv) {\n const base = yargs(hideBin(args)).env(\"OSDK\").version(false).option(\"verbose\", {\n alias: \"v\",\n type: \"boolean\",\n description: \"Enable verbose logging\",\n count: true\n }).demandCommand().middleware(logVersionMiddleware, true).strict().command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n builder: async argv => {\n return argv.command(site).command(typescript).demandCommand();\n },\n handler: _args => {}\n });\n try {\n return base.parseAsync();\n } catch (e) {\n if (e instanceof ExitProcessError) {\n const Consola = await import(\"consola\");\n Consola.consola.error(e.message);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"delete\",\n describe: \"Delete an uploaded version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"deploy\",\n describe: \"Deploy an uploaded version\",\n builder: argv => {\n return argv.options({\n \"siteVersion\": {\n type: \"string\",\n conflicts: \"clearVersion\"\n // group: \"Deploy Version\",\n // implies: { \"clearVersion\": \"false\" },\n },\n\n undeploy: {\n alias: \"clearVersion\",\n description: \"Causes the site to no longer be deployed\",\n type: \"boolean\",\n conflicts: \"siteVersion\"\n // group: \"Deploy Version\",\n // implies: { \"siteVersion\": \"\" },\n }\n }).group([\"siteVersion\", \"clearVersion\"], \"Version To Deploy (requires one of)\");\n\n // .check((args) => {\n // if (\n // (args.siteVersion && args.clearVersion)\n // || (!args.siteVersion && args.clearVersion == undefined)\n // ) {\n // // consola.error(\"Only one of --siteVersion or --clearVersion may be provided\");\n // throw new Error(\n // \"Only one of --siteVersion or --clearVersion may be provided\",\n // );\n // }\n // });\n },\n\n handler: async args => {\n const command = await import(\"./handleSiteDeploy.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"upload\",\n describe: \"Upload an application version\",\n builder: argv => {\n return argv.option(\"siteVersion\", {\n type: \"string\",\n demandOption: true\n }).option(\"dir\", {\n type: \"string\"\n });\n },\n handler: async args => {\n const command = await import(\"./siteUploadCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"versions\",\n describe: \"List application versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./siteVersionsCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport siteDelete from \"./delete/index.js\";\nimport siteDeploy from \"./deploy/index.js\";\nimport upload from \"./upload/index.js\";\nimport versions from \"./versions/index.js\";\nconst site = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: argv => {\n return argv.options({\n appRid: {\n type: \"string\",\n demandOption: true,\n coerce: a => a\n },\n baseUrl: {\n type: \"string\",\n demandOption: true\n }\n }).group([\"appRid\", \"baseUrl\"], \"Common Arguments\").command(versions).command(upload).command(siteDelete).command(siteDeploy).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"generate\",\n describe: \"Generate typescript from ontology\",\n builder: argv => {\n return argv.options({\n \"outDir\": {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"path to the ontology wire json\",\n type: \"string\",\n demandOption: true\n }\n }).group([\"outDir\", \"ontologyPath\"], \"Version To Deploy (requires one of)\");\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport generate from \"./generate/generate.js\";\nconst site = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generate).demandCommand();\n },\n handler: async args => {}\n};\nexport default site;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"node:fs\";\nexport async function readCliVersionFromPackageJson() {\n const {\n findUp\n } = await import(\"find-up\");\n const result = await findUp(\"package.json\", {\n cwd: import.meta.url\n });\n if (!result) {\n return \"(unknown version. No package.json found)\";\n }\n const packageJson = JSON.parse(await fs.promises.readFile(result, \"utf-8\"));\n if (packageJson.version) {\n return `v${packageJson.version}`;\n } else {\n return \"(unknown version. No version in package.json found)\";\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { readCliVersionFromPackageJson } from \"../readCliVersionFromPackageJson.js\";\nlet firstTime = true;\nexport async function logVersionMiddleware(args) {\n if (firstTime) {\n const Consola = await import(\"consola\");\n // This will be called before any command is executed\n const consola = Consola.consola;\n consola.info(`Palantir OSDK CLI ${await readCliVersionFromPackageJson()}`);\n consola.level = 3 + args.verbose; // so 1 -v is debug logs and -vv is trace\n if (consola.level > 3) {\n consola.debug(`Verbose logging enabled (${consola.level === 4 ? \"debug\" : \"trace\"})`);\n }\n\n // eslint-disable-next-line no-console\n console.log(); // Not consola. Just want a blank line\n firstTime = false;\n }\n}"]}
@@ -1,3 +1,5 @@
1
+ import type { ContentSecurityPolicyDirectiveName } from "./ContentSecurityPolicyDirectiveName.js";
2
+ import type { ContentSecurityPolicyDirectiveValue } from "./ContentSecurityPolicyDirectiveValue.js";
1
3
  export interface ContentSecurityPolicyAdditions {
2
- policy: any;
4
+ policy: Map<ContentSecurityPolicyDirectiveName, Array<ContentSecurityPolicyDirectiveValue>>;
3
5
  }
@@ -0,0 +1,2 @@
1
+ export interface AllPropertiesPropertySet {
2
+ }
@@ -0,0 +1,4 @@
1
+ export interface Arg {
2
+ name: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { ObjectSetRid } from "./ObjectSetRid.js";
2
+ export interface AuditedObjectSetSubscribeRequests {
3
+ requests: Array<ObjectSetRid>;
4
+ }
@@ -0,0 +1 @@
1
+ export type AuditedObjectSetSubscribeResponse = "SUCCESS" | "ERROR" | "QOS";
@@ -0,0 +1,4 @@
1
+ import type { AuditedObjectSetSubscribeResponse } from "./AuditedObjectSetSubscribeResponse.js";
2
+ export interface AuditedObjectSetSubscribeResponses {
3
+ responses: Array<AuditedObjectSetSubscribeResponse>;
4
+ }
@@ -0,0 +1 @@
1
+ export type BaseVersion = string;
@@ -0,0 +1,4 @@
1
+ import type { ObjectTypeRid } from "./ObjectTypeRid.js";
2
+ export interface BatchEnableWatcherRequest {
3
+ requests: Array<ObjectTypeRid>;
4
+ }
@@ -0,0 +1,6 @@
1
+ import type { Arg } from "./Arg.js";
2
+ import type { ErrorName } from "./ErrorName.js";
3
+ export interface Error {
4
+ error: ErrorName;
5
+ args: Array<Arg>;
6
+ }
@@ -0,0 +1 @@
1
+ export type ErrorName = string;
@@ -0,0 +1 @@
1
+ export type FilterValue = any;
@@ -0,0 +1,11 @@
1
+ import type { ObjectSetChanged } from "./ObjectSetChanged.js";
2
+ import type { ObjectSetSubscribeResponses } from "./ObjectSetSubscribeResponses.js";
3
+ export interface Message_subscribeResponses {
4
+ type: "subscribeResponses";
5
+ subscribeResponses: ObjectSetSubscribeResponses;
6
+ }
7
+ export interface Message_objectSetChanged {
8
+ type: "objectSetChanged";
9
+ objectSetChanged: ObjectSetChanged;
10
+ }
11
+ export type Message = Message_subscribeResponses | Message_objectSetChanged;
@@ -0,0 +1,5 @@
1
+ import type { SubscriptionId } from "./SubscriptionId.js";
2
+ export interface ObjectSetChanged {
3
+ id: SubscriptionId;
4
+ confidenceValue: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { ObjectSetFilterContext } from "./ObjectSetFilterContext.js";
2
+ export interface ObjectSetContext {
3
+ objectSetFilterContext: ObjectSetFilterContext | undefined;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { FilterValue } from "./FilterValue.js";
2
+ import type { UnresolvedFilterParameterId } from "./UnresolvedFilterParameterId.js";
3
+ export interface ObjectSetFilterContext {
4
+ parameterOverrides: Map<UnresolvedFilterParameterId, FilterValue>;
5
+ }
@@ -0,0 +1 @@
1
+ export type ObjectSetRid = string;
@@ -0,0 +1,8 @@
1
+ import type { ObjectSetContext } from "./ObjectSetContext.js";
2
+ import type { ObjectSetRid } from "./ObjectSetRid.js";
3
+ import type { PropertySet } from "./PropertySet.js";
4
+ export interface ObjectSetStreamSubscribeRequest {
5
+ objectSet: ObjectSetRid;
6
+ objectSetContext: ObjectSetContext;
7
+ propertySet: PropertySet | undefined;
8
+ }
@@ -0,0 +1,6 @@
1
+ import type { ObjectSetStreamSubscribeRequest } from "./ObjectSetStreamSubscribeRequest.js";
2
+ import type { RequestId } from "./RequestId.js";
3
+ export interface ObjectSetStreamSubscribeRequests {
4
+ requests: Array<ObjectSetStreamSubscribeRequest>;
5
+ id: RequestId;
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { ObjectSetContext } from "./ObjectSetContext.js";
2
+ import type { ObjectSetRid } from "./ObjectSetRid.js";
3
+ export interface ObjectSetSubscribeRequest {
4
+ objectSet: ObjectSetRid;
5
+ objectSetContext: ObjectSetContext;
6
+ watchAllLinks: boolean | undefined;
7
+ }
@@ -0,0 +1,6 @@
1
+ import type { ObjectSetSubscribeRequest } from "./ObjectSetSubscribeRequest.js";
2
+ import type { RequestId } from "./RequestId.js";
3
+ export interface ObjectSetSubscribeRequests {
4
+ requests: Array<ObjectSetSubscribeRequest>;
5
+ id: RequestId;
6
+ }
@@ -0,0 +1,16 @@
1
+ import type { QosError } from "./QosError.js";
2
+ import type { SubscriptionError } from "./SubscriptionError.js";
3
+ import type { SubscriptionSuccess } from "./SubscriptionSuccess.js";
4
+ export interface ObjectSetSubscribeResponse_success {
5
+ type: "success";
6
+ success: SubscriptionSuccess;
7
+ }
8
+ export interface ObjectSetSubscribeResponse_error {
9
+ type: "error";
10
+ error: SubscriptionError;
11
+ }
12
+ export interface ObjectSetSubscribeResponse_qos {
13
+ type: "qos";
14
+ qos: QosError;
15
+ }
16
+ export type ObjectSetSubscribeResponse = ObjectSetSubscribeResponse_success | ObjectSetSubscribeResponse_error | ObjectSetSubscribeResponse_qos;
@@ -0,0 +1,6 @@
1
+ import type { ObjectSetSubscribeResponse } from "./ObjectSetSubscribeResponse.js";
2
+ import type { RequestId } from "./RequestId.js";
3
+ export interface ObjectSetSubscribeResponses {
4
+ responses: Array<ObjectSetSubscribeResponse>;
5
+ id: RequestId;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { FoundryObject } from "./object/FoundryObject.js";
2
+ import type { SubscriptionId } from "./SubscriptionId.js";
3
+ export interface ObjectSetUpdates {
4
+ id: SubscriptionId;
5
+ objects: Array<FoundryObject>;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { type ConjureContext } from "conjure-lite";
2
+ import type { BatchEnableWatcherRequest } from "../BatchEnableWatcherRequest.js";
3
+ export declare function batchEnableWatcher(ctx: ConjureContext, request: BatchEnableWatcherRequest): Promise<void>;
@@ -0,0 +1 @@
1
+ export { batchEnableWatcher } from "./ObjectSetWatchService/batchEnableWatcher.js";
@@ -0,0 +1 @@
1
+ export type ObjectTypeRid = string;
@@ -0,0 +1 @@
1
+ export type PatchOffset = number;
@@ -0,0 +1 @@
1
+ export type PropertyId = string;
@@ -0,0 +1,6 @@
1
+ import type { PropertyTypeRidPropertySelection } from "./PropertyTypeRidPropertySelection.js";
2
+ export interface PropertySelection_propertyTypeRid {
3
+ type: "propertyTypeRid";
4
+ propertyTypeRid: PropertyTypeRidPropertySelection;
5
+ }
6
+ export type PropertySelection = PropertySelection_propertyTypeRid;
@@ -0,0 +1,11 @@
1
+ import type { AllPropertiesPropertySet } from "./AllPropertiesPropertySet.js";
2
+ import type { SelectedPropertiesPropertySet } from "./SelectedPropertiesPropertySet.js";
3
+ export interface PropertySet_selected {
4
+ type: "selected";
5
+ selected: SelectedPropertiesPropertySet;
6
+ }
7
+ export interface PropertySet_allProperties {
8
+ type: "allProperties";
9
+ allProperties: AllPropertiesPropertySet;
10
+ }
11
+ export type PropertySet = PropertySet_selected | PropertySet_allProperties;
@@ -0,0 +1 @@
1
+ export type PropertyTypeRid = string;
@@ -0,0 +1,4 @@
1
+ import type { PropertyTypeRid } from "./PropertyTypeRid.js";
2
+ export interface PropertyTypeRidPropertySelection {
3
+ propertyTypeRids: Array<PropertyTypeRid>;
4
+ }
@@ -0,0 +1,2 @@
1
+ export interface QosError {
2
+ }
@@ -0,0 +1,4 @@
1
+ import type { SubscriptionId } from "./SubscriptionId.js";
2
+ export interface RefreshObjectSet {
3
+ id: SubscriptionId;
4
+ }
@@ -0,0 +1 @@
1
+ export type RequestId = string;
@@ -0,0 +1,4 @@
1
+ import type { PropertySelection } from "./PropertySelection.js";
2
+ export interface SelectedPropertiesPropertySet {
3
+ propertySelection: PropertySelection;
4
+ }
@@ -0,0 +1,16 @@
1
+ import type { ObjectSetSubscribeResponses } from "./ObjectSetSubscribeResponses.js";
2
+ import type { ObjectSetUpdates } from "./ObjectSetUpdates.js";
3
+ import type { RefreshObjectSet } from "./RefreshObjectSet.js";
4
+ export interface StreamMessage_subscribeResponses {
5
+ type: "subscribeResponses";
6
+ subscribeResponses: ObjectSetSubscribeResponses;
7
+ }
8
+ export interface StreamMessage_objectSetChanged {
9
+ type: "objectSetChanged";
10
+ objectSetChanged: ObjectSetUpdates;
11
+ }
12
+ export interface StreamMessage_refreshObjectSet {
13
+ type: "refreshObjectSet";
14
+ refreshObjectSet: RefreshObjectSet;
15
+ }
16
+ export type StreamMessage = StreamMessage_subscribeResponses | StreamMessage_objectSetChanged | StreamMessage_refreshObjectSet;
@@ -0,0 +1,4 @@
1
+ import type { Error } from "./Error.js";
2
+ export interface SubscriptionError {
3
+ errors: Array<Error>;
4
+ }
@@ -0,0 +1 @@
1
+ export type SubscriptionId = string;
@@ -0,0 +1,4 @@
1
+ import type { SubscriptionId } from "./SubscriptionId.js";
2
+ export interface SubscriptionSuccess {
3
+ id: SubscriptionId;
4
+ }
@@ -0,0 +1 @@
1
+ export type UnresolvedFilterParameterId = string;
@@ -0,0 +1,41 @@
1
+ export * as ObjectSetWatchService from "./ObjectSetWatchService.js";
2
+ export type { AllPropertiesPropertySet } from "./AllPropertiesPropertySet.js";
3
+ export type { Arg } from "./Arg.js";
4
+ export type { AuditedObjectSetSubscribeRequests } from "./AuditedObjectSetSubscribeRequests.js";
5
+ export type { AuditedObjectSetSubscribeResponse } from "./AuditedObjectSetSubscribeResponse.js";
6
+ export type { AuditedObjectSetSubscribeResponses } from "./AuditedObjectSetSubscribeResponses.js";
7
+ export type { BaseVersion } from "./BaseVersion.js";
8
+ export type { BatchEnableWatcherRequest } from "./BatchEnableWatcherRequest.js";
9
+ export type { Error } from "./Error.js";
10
+ export type { ErrorName } from "./ErrorName.js";
11
+ export type { FilterValue } from "./FilterValue.js";
12
+ export type { Message } from "./Message.js";
13
+ export type { ObjectSetChanged } from "./ObjectSetChanged.js";
14
+ export type { ObjectSetContext } from "./ObjectSetContext.js";
15
+ export type { ObjectSetFilterContext } from "./ObjectSetFilterContext.js";
16
+ export type { ObjectSetRid } from "./ObjectSetRid.js";
17
+ export type { ObjectSetStreamSubscribeRequest } from "./ObjectSetStreamSubscribeRequest.js";
18
+ export type { ObjectSetStreamSubscribeRequests } from "./ObjectSetStreamSubscribeRequests.js";
19
+ export type { ObjectSetSubscribeRequest } from "./ObjectSetSubscribeRequest.js";
20
+ export type { ObjectSetSubscribeRequests } from "./ObjectSetSubscribeRequests.js";
21
+ export type { ObjectSetSubscribeResponse } from "./ObjectSetSubscribeResponse.js";
22
+ export type { ObjectSetSubscribeResponses } from "./ObjectSetSubscribeResponses.js";
23
+ export type { ObjectSetUpdates } from "./ObjectSetUpdates.js";
24
+ export type { ObjectTypeRid } from "./ObjectTypeRid.js";
25
+ export type { PatchOffset } from "./PatchOffset.js";
26
+ export type { PropertyId } from "./PropertyId.js";
27
+ export type { PropertySelection } from "./PropertySelection.js";
28
+ export type { PropertySet } from "./PropertySet.js";
29
+ export type { PropertyTypeRid } from "./PropertyTypeRid.js";
30
+ export type { PropertyTypeRidPropertySelection } from "./PropertyTypeRidPropertySelection.js";
31
+ export type { QosError } from "./QosError.js";
32
+ export type { RefreshObjectSet } from "./RefreshObjectSet.js";
33
+ export type { RequestId } from "./RequestId.js";
34
+ export type { SelectedPropertiesPropertySet } from "./SelectedPropertiesPropertySet.js";
35
+ export type { StreamMessage } from "./StreamMessage.js";
36
+ export type { SubscriptionError } from "./SubscriptionError.js";
37
+ export type { SubscriptionId } from "./SubscriptionId.js";
38
+ export type { SubscriptionSuccess } from "./SubscriptionSuccess.js";
39
+ export type { UnresolvedFilterParameterId } from "./UnresolvedFilterParameterId.js";
40
+ export * as object from "./object/index.js";
41
+ export * as types from "./types/index.js";
@@ -0,0 +1 @@
1
+ export type DatasourceRid = string;
@@ -0,0 +1,14 @@
1
+ import type { DatasourceRid } from "./DatasourceRid.js";
2
+ import type { ObjectKey } from "./ObjectKey.js";
3
+ import type { ObjectTypeRid } from "./ObjectTypeRid.js";
4
+ import type { ObjectVersion } from "./ObjectVersion.js";
5
+ import type { PropertyRid } from "./PropertyRid.js";
6
+ import type { PropertyValue } from "./PropertyValue.js";
7
+ export interface FoundryObject {
8
+ type: ObjectTypeRid;
9
+ key: ObjectKey;
10
+ datasources: Array<DatasourceRid>;
11
+ properties: Map<PropertyRid, PropertyValue>;
12
+ alive: boolean;
13
+ version: ObjectVersion;
14
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropertyRid } from "./PropertyRid.js";
2
+ import type { PropertyValue } from "./PropertyValue.js";
3
+ export type ObjectKey = Map<PropertyRid, PropertyValue>;
@@ -0,0 +1 @@
1
+ export type ObjectTypeRid = string;
@@ -0,0 +1 @@
1
+ export type ObjectVersion = Blob;
@@ -0,0 +1 @@
1
+ export type PropertyRid = string;
@@ -0,0 +1,2 @@
1
+ import type { Value } from "../types/Value.js";
2
+ export type PropertyValue = Value;
@@ -0,0 +1,7 @@
1
+ export type { DatasourceRid } from "./DatasourceRid.js";
2
+ export type { FoundryObject } from "./FoundryObject.js";
3
+ export type { ObjectKey } from "./ObjectKey.js";
4
+ export type { ObjectTypeRid } from "./ObjectTypeRid.js";
5
+ export type { ObjectVersion } from "./ObjectVersion.js";
6
+ export type { PropertyRid } from "./PropertyRid.js";
7
+ export type { PropertyValue } from "./PropertyValue.js";
@@ -0,0 +1 @@
1
+ export type Attachment = string;
@@ -0,0 +1 @@
1
+ export type Byte = string;
@@ -0,0 +1,7 @@
1
+ import type { DatasetRid } from "./DatasetRid.js";
2
+ import type { TransactionRid } from "./TransactionRid.js";
3
+ export interface CatalogFileReference {
4
+ datasetRid: DatasetRid;
5
+ endTransactionRid: TransactionRid;
6
+ logicalFilePath: string;
7
+ }
@@ -0,0 +1 @@
1
+ export type Ciphertext = string;
@@ -0,0 +1,5 @@
1
+ import type { CatalogFileReference } from "./CatalogFileReference.js";
2
+ export interface DatasetFileReference {
3
+ fileReference: CatalogFileReference;
4
+ thumbnailReference: CatalogFileReference | undefined;
5
+ }
@@ -0,0 +1 @@
1
+ export type DatasetRid = string;
@@ -0,0 +1 @@
1
+ export type Date = any;
@@ -0,0 +1 @@
1
+ export type Decimal = string;
@@ -0,0 +1,4 @@
1
+ export interface DecimalType {
2
+ precision: string;
3
+ scale: string;
4
+ }
@@ -0,0 +1 @@
1
+ export type Float = string;
@@ -0,0 +1 @@
1
+ export type Geohash = string;
@@ -0,0 +1 @@
1
+ export type Geoshape = any;
@@ -0,0 +1 @@
1
+ export type GeotimeSeriesId = string;
@@ -0,0 +1 @@
1
+ export type GeotimeSeriesIntegrationRid = string;
@@ -0,0 +1,6 @@
1
+ import type { GeotimeSeriesId } from "./GeotimeSeriesId.js";
2
+ import type { GeotimeSeriesIntegrationRid } from "./GeotimeSeriesIntegrationRid.js";
3
+ export interface GeotimeSeriesReference {
4
+ seriesId: GeotimeSeriesId;
5
+ geotimeSeriesIntegrationRid: GeotimeSeriesIntegrationRid;
6
+ }
@@ -0,0 +1 @@
1
+ export type Long = string;
@@ -0,0 +1 @@
1
+ export type Marking = string;
@@ -0,0 +1 @@
1
+ export type MarkingType = "MANDATORY" | "CBAC";
@@ -0,0 +1,6 @@
1
+ import type { MediaItemRid } from "./MediaItemRid.js";
2
+ import type { MediaSetRid } from "./MediaSetRid.js";
3
+ export interface MediaItemReference {
4
+ mediaSetRid: MediaSetRid;
5
+ mediaItemRid: MediaItemRid;
6
+ }
@@ -0,0 +1 @@
1
+ export type MediaItemRid = string;
@@ -0,0 +1,6 @@
1
+ import type { MediaValueReference } from "./MediaValueReference.js";
2
+ import type { MimeType } from "./MimeType.js";
3
+ export interface MediaReference {
4
+ mimeType: MimeType;
5
+ reference: MediaValueReference;
6
+ }
@@ -0,0 +1 @@
1
+ export type MediaSetRid = string;
@@ -0,0 +1 @@
1
+ export type MediaSetViewRid = string;
@@ -0,0 +1,16 @@
1
+ import type { DatasetFileReference } from "./DatasetFileReference.js";
2
+ import type { MediaItemReference } from "./MediaItemReference.js";
3
+ import type { MediaViewItemReference } from "./MediaViewItemReference.js";
4
+ export interface MediaValueReference_mediaSetItem {
5
+ type: "mediaSetItem";
6
+ mediaSetItem: MediaItemReference;
7
+ }
8
+ export interface MediaValueReference_mediaSetViewItem {
9
+ type: "mediaSetViewItem";
10
+ mediaSetViewItem: MediaViewItemReference;
11
+ }
12
+ export interface MediaValueReference_immutableDatasetFile {
13
+ type: "immutableDatasetFile";
14
+ immutableDatasetFile: DatasetFileReference;
15
+ }
16
+ export type MediaValueReference = MediaValueReference_mediaSetItem | MediaValueReference_mediaSetViewItem | MediaValueReference_immutableDatasetFile;
@@ -0,0 +1,8 @@
1
+ import type { MediaItemRid } from "./MediaItemRid.js";
2
+ import type { MediaSetRid } from "./MediaSetRid.js";
3
+ import type { MediaSetViewRid } from "./MediaSetViewRid.js";
4
+ export interface MediaViewItemReference {
5
+ mediaSetRid: MediaSetRid;
6
+ mediaSetViewRid: MediaSetViewRid;
7
+ mediaItemRid: MediaItemRid;
8
+ }
@@ -0,0 +1 @@
1
+ export type MimeType = string;
@@ -0,0 +1,2 @@
1
+ export interface Null {
2
+ }
@@ -0,0 +1 @@
1
+ export type PrimitiveType = "ATTACHMENT" | "BINARY" | "BOOLEAN" | "BYTE" | "DATE" | "DOUBLE" | "FLOAT" | "GEOHASH" | "GEOSHAPE" | "GEOTIME_SERIES_REFERENCE" | "INTEGER" | "LONG" | "SHORT" | "STRING" | "TIMESTAMP" | "CIPHERTEXT" | "MEDIA_REFERENCE";
@@ -0,0 +1 @@
1
+ export type Short = string;
@@ -0,0 +1 @@
1
+ export type Timestamp = any;
@@ -0,0 +1 @@
1
+ export type TransactionRid = string;
@@ -0,0 +1,105 @@
1
+ import type { Attachment } from "./Attachment.js";
2
+ import type { Byte } from "./Byte.js";
3
+ import type { Ciphertext } from "./Ciphertext.js";
4
+ import type { Date } from "./Date.js";
5
+ import type { Decimal } from "./Decimal.js";
6
+ import type { Float } from "./Float.js";
7
+ import type { Geohash } from "./Geohash.js";
8
+ import type { Geoshape } from "./Geoshape.js";
9
+ import type { GeotimeSeriesReference } from "./GeotimeSeriesReference.js";
10
+ import type { Long } from "./Long.js";
11
+ import type { Marking } from "./Marking.js";
12
+ import type { MediaReference } from "./MediaReference.js";
13
+ import type { Null } from "./Null.js";
14
+ import type { Short } from "./Short.js";
15
+ import type { Timestamp } from "./Timestamp.js";
16
+ import type { Vector } from "./Vector.js";
17
+ export interface Value_array {
18
+ type: "array";
19
+ array: Array<Value>;
20
+ }
21
+ export interface Value_attachment {
22
+ type: "attachment";
23
+ attachment: Attachment;
24
+ }
25
+ export interface Value_null {
26
+ type: "null";
27
+ null: Null;
28
+ }
29
+ export interface Value_binary {
30
+ type: "binary";
31
+ binary: Blob;
32
+ }
33
+ export interface Value_boolean {
34
+ type: "boolean";
35
+ boolean: boolean;
36
+ }
37
+ export interface Value_byte {
38
+ type: "byte";
39
+ byte: Byte;
40
+ }
41
+ export interface Value_ciphertext {
42
+ type: "ciphertext";
43
+ ciphertext: Ciphertext;
44
+ }
45
+ export interface Value_date {
46
+ type: "date";
47
+ date: Date;
48
+ }
49
+ export interface Value_decimal {
50
+ type: "decimal";
51
+ decimal: Decimal;
52
+ }
53
+ export interface Value_double {
54
+ type: "double";
55
+ double: string;
56
+ }
57
+ export interface Value_float {
58
+ type: "float";
59
+ float: Float;
60
+ }
61
+ export interface Value_geohash {
62
+ type: "geohash";
63
+ geohash: Geohash;
64
+ }
65
+ export interface Value_geoshape {
66
+ type: "geoshape";
67
+ geoshape: Geoshape;
68
+ }
69
+ export interface Value_geotimeSeriesReference {
70
+ type: "geotimeSeriesReference";
71
+ geotimeSeriesReference: GeotimeSeriesReference;
72
+ }
73
+ export interface Value_integer {
74
+ type: "integer";
75
+ integer: string;
76
+ }
77
+ export interface Value_long {
78
+ type: "long";
79
+ long: Long;
80
+ }
81
+ export interface Value_marking {
82
+ type: "marking";
83
+ marking: Marking;
84
+ }
85
+ export interface Value_mediaReference {
86
+ type: "mediaReference";
87
+ mediaReference: MediaReference;
88
+ }
89
+ export interface Value_short {
90
+ type: "short";
91
+ short: Short;
92
+ }
93
+ export interface Value_string {
94
+ type: "string";
95
+ string: string;
96
+ }
97
+ export interface Value_timestamp {
98
+ type: "timestamp";
99
+ timestamp: Timestamp;
100
+ }
101
+ export interface Value_vector {
102
+ type: "vector";
103
+ vector: Vector;
104
+ }
105
+ export type Value = Value_array | Value_attachment | Value_null | Value_binary | Value_boolean | Value_byte | Value_ciphertext | Value_date | Value_decimal | Value_double | Value_float | Value_geohash | Value_geoshape | Value_geotimeSeriesReference | Value_integer | Value_long | Value_marking | Value_mediaReference | Value_short | Value_string | Value_timestamp | Value_vector;
@@ -0,0 +1,25 @@
1
+ import type { DecimalType } from "./DecimalType.js";
2
+ import type { MarkingType } from "./MarkingType.js";
3
+ import type { PrimitiveType } from "./PrimitiveType.js";
4
+ import type { VectorType } from "./VectorType.js";
5
+ export interface ValueType_array {
6
+ type: "array";
7
+ array: ValueType;
8
+ }
9
+ export interface ValueType_primitive {
10
+ type: "primitive";
11
+ primitive: PrimitiveType;
12
+ }
13
+ export interface ValueType_decimal {
14
+ type: "decimal";
15
+ decimal: DecimalType;
16
+ }
17
+ export interface ValueType_marking {
18
+ type: "marking";
19
+ marking: MarkingType;
20
+ }
21
+ export interface ValueType_vector {
22
+ type: "vector";
23
+ vector: VectorType;
24
+ }
25
+ export type ValueType = ValueType_array | ValueType_primitive | ValueType_decimal | ValueType_marking | ValueType_vector;
@@ -0,0 +1 @@
1
+ export type Vector = Array<string>;
@@ -0,0 +1,3 @@
1
+ export interface VectorType {
2
+ dimension: string;
3
+ }
@@ -0,0 +1,35 @@
1
+ export type { Attachment } from "./Attachment.js";
2
+ export type { Byte } from "./Byte.js";
3
+ export type { CatalogFileReference } from "./CatalogFileReference.js";
4
+ export type { Ciphertext } from "./Ciphertext.js";
5
+ export type { DatasetFileReference } from "./DatasetFileReference.js";
6
+ export type { DatasetRid } from "./DatasetRid.js";
7
+ export type { Date } from "./Date.js";
8
+ export type { Decimal } from "./Decimal.js";
9
+ export type { DecimalType } from "./DecimalType.js";
10
+ export type { Float } from "./Float.js";
11
+ export type { Geohash } from "./Geohash.js";
12
+ export type { Geoshape } from "./Geoshape.js";
13
+ export type { GeotimeSeriesId } from "./GeotimeSeriesId.js";
14
+ export type { GeotimeSeriesIntegrationRid } from "./GeotimeSeriesIntegrationRid.js";
15
+ export type { GeotimeSeriesReference } from "./GeotimeSeriesReference.js";
16
+ export type { Long } from "./Long.js";
17
+ export type { Marking } from "./Marking.js";
18
+ export type { MarkingType } from "./MarkingType.js";
19
+ export type { MediaItemReference } from "./MediaItemReference.js";
20
+ export type { MediaItemRid } from "./MediaItemRid.js";
21
+ export type { MediaReference } from "./MediaReference.js";
22
+ export type { MediaSetRid } from "./MediaSetRid.js";
23
+ export type { MediaSetViewRid } from "./MediaSetViewRid.js";
24
+ export type { MediaValueReference } from "./MediaValueReference.js";
25
+ export type { MediaViewItemReference } from "./MediaViewItemReference.js";
26
+ export type { MimeType } from "./MimeType.js";
27
+ export type { Null } from "./Null.js";
28
+ export type { PrimitiveType } from "./PrimitiveType.js";
29
+ export type { Short } from "./Short.js";
30
+ export type { Timestamp } from "./Timestamp.js";
31
+ export type { TransactionRid } from "./TransactionRid.js";
32
+ export type { Value } from "./Value.js";
33
+ export type { ValueType } from "./ValueType.js";
34
+ export type { Vector } from "./Vector.js";
35
+ export type { VectorType } from "./VectorType.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/cli",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "archiver": "^6.0.1",
21
- "conjure-lite": "0.0.5",
21
+ "conjure-lite": "0.1.1",
22
22
  "consola": "^3.2.3",
23
23
  "find-up": "^6.3.0",
24
24
  "yargs": "^17.7.2",
25
- "@osdk/api": "0.0.13",
26
- "@osdk/generator": "0.0.11"
25
+ "@osdk/api": "0.0.15",
26
+ "@osdk/generator": "0.0.13"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/archiver": "^6.0.0",