@uniformdev/cli 20.27.1 → 20.29.2-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -20,11 +20,11 @@ import {
20
20
 
21
21
  // src/index.ts
22
22
  import * as dotenv from "dotenv";
23
- import yargs34 from "yargs";
23
+ import yargs35 from "yargs";
24
24
  import { hideBin } from "yargs/helpers";
25
25
 
26
26
  // src/commands/canvas/index.ts
27
- import yargs17 from "yargs";
27
+ import yargs18 from "yargs";
28
28
 
29
29
  // src/commands/canvas/commands/asset.ts
30
30
  import yargs from "yargs";
@@ -33,20 +33,20 @@ import yargs from "yargs";
33
33
  async function createArraySyncEngineDataSource({
34
34
  name,
35
35
  objects,
36
- selectIdentifier: selectIdentifier16,
37
- selectDisplayName: selectDisplayName16 = selectIdentifier16,
36
+ selectIdentifier: selectIdentifier17,
37
+ selectDisplayName: selectDisplayName17 = selectIdentifier17,
38
38
  onSyncComplete,
39
39
  onBeforeDeleteObject
40
40
  }) {
41
41
  const objectIndex = objects.reduce(
42
42
  (result, current) => {
43
- const rawIdentifiers = selectIdentifier16(current);
43
+ const rawIdentifiers = selectIdentifier17(current);
44
44
  const identifiers = Array.isArray(rawIdentifiers) ? rawIdentifiers : [rawIdentifiers];
45
45
  const existingResult = identifiers.find((id) => result[id]);
46
46
  if (existingResult) {
47
47
  throw new Error(`Identifier(s) ${identifiers} was not unique.`);
48
48
  }
49
- const displayName = selectDisplayName16(current);
49
+ const displayName = selectDisplayName17(current);
50
50
  result[identifiers[0]] = {
51
51
  id: identifiers,
52
52
  object: current,
@@ -76,7 +76,7 @@ async function createArraySyncEngineDataSource({
76
76
  delete objectIndex[providerId];
77
77
  },
78
78
  writeObject: async (objectToWrite) => {
79
- const id = selectIdentifier16(objectToWrite.object);
79
+ const id = selectIdentifier17(objectToWrite.object);
80
80
  if (Array.isArray(id)) {
81
81
  objectIndex[id[0]] = objectToWrite;
82
82
  } else {
@@ -156,8 +156,8 @@ export default uniformConfig({
156
156
  async function createFileSyncEngineDataSource({
157
157
  directory,
158
158
  format = "yaml",
159
- selectIdentifier: selectIdentifier16,
160
- selectDisplayName: selectDisplayName16 = selectIdentifier16,
159
+ selectIdentifier: selectIdentifier17,
160
+ selectDisplayName: selectDisplayName17 = selectIdentifier17,
161
161
  selectFilename: selectFilename3,
162
162
  selectSchemaUrl: selectSchemaUrl2,
163
163
  onBeforeDeleteObject,
@@ -186,9 +186,9 @@ async function createFileSyncEngineDataSource({
186
186
  const fullFilename = join(directory, filename);
187
187
  try {
188
188
  const contents = readFileToObject(fullFilename);
189
- const displayName = selectDisplayName16(contents);
189
+ const displayName = selectDisplayName17(contents);
190
190
  const object = {
191
- id: selectIdentifier16(contents),
191
+ id: selectIdentifier17(contents),
192
192
  displayName: Array.isArray(displayName) ? displayName[0] : displayName,
193
193
  providerId: fullFilename,
194
194
  object: omit(contents, ["$schema"])
@@ -584,12 +584,12 @@ function getFileClient(options) {
584
584
  var AssetGetModule = {
585
585
  command: "get <id>",
586
586
  describe: "Get an asset",
587
- builder: (yargs35) => withConfiguration(
587
+ builder: (yargs36) => withConfiguration(
588
588
  withDebugOptions(
589
589
  withFormatOptions(
590
590
  withApiOptions(
591
591
  withProjectOptions(
592
- yargs35.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
592
+ yargs36.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
593
593
  )
594
594
  )
595
595
  )
@@ -610,7 +610,7 @@ var AssetGetModule = {
610
610
  var AssetListModule = {
611
611
  command: "list",
612
612
  describe: "List assets",
613
- builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
613
+ builder: (yargs36) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs36))))),
614
614
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
615
615
  const fetch2 = nodeFetchProxy(proxy, verbose);
616
616
  const client = getAssetClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -1163,8 +1163,8 @@ function prepCompositionForDisk(composition) {
1163
1163
  delete prepped.state;
1164
1164
  return prepped;
1165
1165
  }
1166
- function withStateOptions(yargs35, defaultState = "preview") {
1167
- return yargs35.option("state", {
1166
+ function withStateOptions(yargs36, defaultState = "preview") {
1167
+ return yargs36.option("state", {
1168
1168
  type: "string",
1169
1169
  describe: `State to fetch.`,
1170
1170
  choices: ["preview", "published"],
@@ -1246,12 +1246,12 @@ function writeCanvasPackage(filename, packageContents) {
1246
1246
  var AssetPullModule = {
1247
1247
  command: "pull <directory>",
1248
1248
  describe: "Pulls all assets to local files in a directory",
1249
- builder: (yargs35) => withConfiguration(
1249
+ builder: (yargs36) => withConfiguration(
1250
1250
  withApiOptions(
1251
1251
  withDebugOptions(
1252
1252
  withProjectOptions(
1253
1253
  withDiffOptions(
1254
- yargs35.positional("directory", {
1254
+ yargs36.positional("directory", {
1255
1255
  describe: "Directory to save the assets to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
1256
1256
  type: "string"
1257
1257
  }).option("format", {
@@ -1363,12 +1363,12 @@ var AssetPullModule = {
1363
1363
  var AssetPushModule = {
1364
1364
  command: "push <directory>",
1365
1365
  describe: "Pushes all assets from files in a directory to Uniform",
1366
- builder: (yargs35) => withConfiguration(
1366
+ builder: (yargs36) => withConfiguration(
1367
1367
  withApiOptions(
1368
1368
  withDebugOptions(
1369
1369
  withProjectOptions(
1370
1370
  withDiffOptions(
1371
- yargs35.positional("directory", {
1371
+ yargs36.positional("directory", {
1372
1372
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
1373
1373
  type: "string"
1374
1374
  }).option("mode", {
@@ -1492,10 +1492,10 @@ var AssetRemoveModule = {
1492
1492
  command: "remove <id>",
1493
1493
  aliases: ["delete", "rm"],
1494
1494
  describe: "Delete an asset",
1495
- builder: (yargs35) => withConfiguration(
1495
+ builder: (yargs36) => withConfiguration(
1496
1496
  withDebugOptions(
1497
1497
  withApiOptions(
1498
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1498
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1499
1499
  )
1500
1500
  )
1501
1501
  ),
@@ -1516,11 +1516,11 @@ var AssetUpdateModule = {
1516
1516
  command: "update <filename>",
1517
1517
  aliases: ["put"],
1518
1518
  describe: "Insert or update an asset",
1519
- builder: (yargs35) => withConfiguration(
1519
+ builder: (yargs36) => withConfiguration(
1520
1520
  withDebugOptions(
1521
1521
  withApiOptions(
1522
1522
  withProjectOptions(
1523
- yargs35.positional("filename", { demandOption: true, describe: "Asset file to put" })
1523
+ yargs36.positional("filename", { demandOption: true, describe: "Asset file to put" })
1524
1524
  )
1525
1525
  )
1526
1526
  )
@@ -1546,7 +1546,7 @@ var AssetUpdateModule = {
1546
1546
  var AssetModule = {
1547
1547
  command: "asset <command>",
1548
1548
  describe: "Commands for Assets",
1549
- builder: (yargs35) => yargs35.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1549
+ builder: (yargs36) => yargs36.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1550
1550
  handler: () => {
1551
1551
  yargs.help();
1552
1552
  }
@@ -1567,12 +1567,12 @@ function getCategoryClient(options) {
1567
1567
  var CategoryGetModule = {
1568
1568
  command: "get <id>",
1569
1569
  describe: "Fetch a category",
1570
- builder: (yargs35) => withConfiguration(
1570
+ builder: (yargs36) => withConfiguration(
1571
1571
  withFormatOptions(
1572
1572
  withDebugOptions(
1573
1573
  withApiOptions(
1574
1574
  withProjectOptions(
1575
- yargs35.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1575
+ yargs36.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1576
1576
  )
1577
1577
  )
1578
1578
  )
@@ -1597,8 +1597,8 @@ var CategoryListModule = {
1597
1597
  command: "list",
1598
1598
  describe: "List categories",
1599
1599
  aliases: ["ls"],
1600
- builder: (yargs35) => withConfiguration(
1601
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs35.options({})))))
1600
+ builder: (yargs36) => withConfiguration(
1601
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs36.options({})))))
1602
1602
  ),
1603
1603
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
1604
1604
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -1642,12 +1642,12 @@ function createCategoriesEngineDataSource({
1642
1642
  var CategoryPullModule = {
1643
1643
  command: "pull <directory>",
1644
1644
  describe: "Pulls all categories to local files in a directory",
1645
- builder: (yargs35) => withConfiguration(
1645
+ builder: (yargs36) => withConfiguration(
1646
1646
  withApiOptions(
1647
1647
  withProjectOptions(
1648
1648
  withDiffOptions(
1649
1649
  withDebugOptions(
1650
- yargs35.positional("directory", {
1650
+ yargs36.positional("directory", {
1651
1651
  describe: "Directory to save the categories to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
1652
1652
  type: "string"
1653
1653
  }).option("format", {
@@ -1722,12 +1722,12 @@ var CategoryPullModule = {
1722
1722
  var CategoryPushModule = {
1723
1723
  command: "push <directory>",
1724
1724
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
1725
- builder: (yargs35) => withConfiguration(
1725
+ builder: (yargs36) => withConfiguration(
1726
1726
  withApiOptions(
1727
1727
  withDebugOptions(
1728
1728
  withProjectOptions(
1729
1729
  withDiffOptions(
1730
- yargs35.positional("directory", {
1730
+ yargs36.positional("directory", {
1731
1731
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
1732
1732
  type: "string"
1733
1733
  }).option("mode", {
@@ -1791,11 +1791,11 @@ var CategoryRemoveModule = {
1791
1791
  command: "remove <id>",
1792
1792
  aliases: ["delete", "rm"],
1793
1793
  describe: "Delete a category",
1794
- builder: (yargs35) => withConfiguration(
1794
+ builder: (yargs36) => withConfiguration(
1795
1795
  withApiOptions(
1796
1796
  withDebugOptions(
1797
1797
  withProjectOptions(
1798
- yargs35.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1798
+ yargs36.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1799
1799
  )
1800
1800
  )
1801
1801
  )
@@ -1816,11 +1816,11 @@ var CategoryUpdateModule = {
1816
1816
  command: "update <filename>",
1817
1817
  aliases: ["put"],
1818
1818
  describe: "Insert or update a category",
1819
- builder: (yargs35) => withConfiguration(
1819
+ builder: (yargs36) => withConfiguration(
1820
1820
  withApiOptions(
1821
1821
  withDebugOptions(
1822
1822
  withProjectOptions(
1823
- yargs35.positional("filename", { demandOption: true, describe: "Category file to put" })
1823
+ yargs36.positional("filename", { demandOption: true, describe: "Category file to put" })
1824
1824
  )
1825
1825
  )
1826
1826
  )
@@ -1842,7 +1842,7 @@ var CategoryModule = {
1842
1842
  command: "category <command>",
1843
1843
  aliases: ["cat"],
1844
1844
  describe: "Commands for Canvas categories",
1845
- builder: (yargs35) => yargs35.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1845
+ builder: (yargs36) => yargs36.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1846
1846
  handler: () => {
1847
1847
  yargs2.help();
1848
1848
  }
@@ -1864,12 +1864,12 @@ function getCanvasClient(options) {
1864
1864
  var ComponentGetModule = {
1865
1865
  command: "get <id>",
1866
1866
  describe: "Fetch a component definition",
1867
- builder: (yargs35) => withConfiguration(
1867
+ builder: (yargs36) => withConfiguration(
1868
1868
  withFormatOptions(
1869
1869
  withDebugOptions(
1870
1870
  withApiOptions(
1871
1871
  withProjectOptions(
1872
- yargs35.positional("id", {
1872
+ yargs36.positional("id", {
1873
1873
  demandOption: true,
1874
1874
  describe: "Component definition public ID to fetch"
1875
1875
  })
@@ -1903,12 +1903,12 @@ var ComponentListModule = {
1903
1903
  command: "list",
1904
1904
  describe: "List component definitions",
1905
1905
  aliases: ["ls"],
1906
- builder: (yargs35) => withConfiguration(
1906
+ builder: (yargs36) => withConfiguration(
1907
1907
  withFormatOptions(
1908
1908
  withDebugOptions(
1909
1909
  withApiOptions(
1910
1910
  withProjectOptions(
1911
- yargs35.options({
1911
+ yargs36.options({
1912
1912
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1913
1913
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
1914
1914
  })
@@ -1972,12 +1972,12 @@ function createComponentDefinitionEngineDataSource({
1972
1972
  var ComponentPullModule = {
1973
1973
  command: "pull <directory>",
1974
1974
  describe: "Pulls all component definitions to local files in a directory",
1975
- builder: (yargs35) => withConfiguration(
1975
+ builder: (yargs36) => withConfiguration(
1976
1976
  withApiOptions(
1977
1977
  withDebugOptions(
1978
1978
  withProjectOptions(
1979
1979
  withDiffOptions(
1980
- yargs35.positional("directory", {
1980
+ yargs36.positional("directory", {
1981
1981
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
1982
1982
  type: "string"
1983
1983
  }).option("format", {
@@ -2053,12 +2053,12 @@ var ComponentPullModule = {
2053
2053
  var ComponentPushModule = {
2054
2054
  command: "push <directory>",
2055
2055
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
2056
- builder: (yargs35) => withConfiguration(
2056
+ builder: (yargs36) => withConfiguration(
2057
2057
  withApiOptions(
2058
2058
  withDebugOptions(
2059
2059
  withProjectOptions(
2060
2060
  withDiffOptions(
2061
- yargs35.positional("directory", {
2061
+ yargs36.positional("directory", {
2062
2062
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
2063
2063
  type: "string"
2064
2064
  }).option("mode", {
@@ -2123,11 +2123,11 @@ var ComponentRemoveModule = {
2123
2123
  command: "remove <id>",
2124
2124
  aliases: ["delete", "rm"],
2125
2125
  describe: "Delete a component definition",
2126
- builder: (yargs35) => withConfiguration(
2126
+ builder: (yargs36) => withConfiguration(
2127
2127
  withDebugOptions(
2128
2128
  withApiOptions(
2129
2129
  withProjectOptions(
2130
- yargs35.positional("id", {
2130
+ yargs36.positional("id", {
2131
2131
  demandOption: true,
2132
2132
  describe: "Component definition public ID to delete"
2133
2133
  })
@@ -2151,11 +2151,11 @@ var ComponentUpdateModule = {
2151
2151
  command: "update <filename>",
2152
2152
  aliases: ["put"],
2153
2153
  describe: "Insert or update a component definition",
2154
- builder: (yargs35) => withConfiguration(
2154
+ builder: (yargs36) => withConfiguration(
2155
2155
  withApiOptions(
2156
2156
  withDebugOptions(
2157
2157
  withProjectOptions(
2158
- yargs35.positional("filename", { demandOption: true, describe: "Component definition file to put" })
2158
+ yargs36.positional("filename", { demandOption: true, describe: "Component definition file to put" })
2159
2159
  )
2160
2160
  )
2161
2161
  )
@@ -2177,7 +2177,7 @@ var ComponentModule = {
2177
2177
  command: "component <command>",
2178
2178
  aliases: ["def"],
2179
2179
  describe: "Commands for Canvas component definitions",
2180
- builder: (yargs35) => yargs35.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
2180
+ builder: (yargs36) => yargs36.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
2181
2181
  handler: () => {
2182
2182
  yargs3.help();
2183
2183
  }
@@ -2190,13 +2190,13 @@ import yargs4 from "yargs";
2190
2190
  var CompositionGetModule = {
2191
2191
  command: "get <id>",
2192
2192
  describe: "Fetch a composition",
2193
- builder: (yargs35) => withFormatOptions(
2193
+ builder: (yargs36) => withFormatOptions(
2194
2194
  withConfiguration(
2195
2195
  withApiOptions(
2196
2196
  withProjectOptions(
2197
2197
  withStateOptions(
2198
2198
  withDebugOptions(
2199
- yargs35.positional("id", {
2199
+ yargs36.positional("id", {
2200
2200
  demandOption: true,
2201
2201
  describe: "Composition/pattern public ID to fetch"
2202
2202
  }).option({
@@ -2286,13 +2286,13 @@ var CompositionListModule = {
2286
2286
  command: "list",
2287
2287
  describe: "List compositions",
2288
2288
  aliases: ["ls"],
2289
- builder: (yargs35) => withFormatOptions(
2289
+ builder: (yargs36) => withFormatOptions(
2290
2290
  withConfiguration(
2291
2291
  withApiOptions(
2292
2292
  withProjectOptions(
2293
2293
  withDebugOptions(
2294
2294
  withStateOptions(
2295
- yargs35.options({
2295
+ yargs36.options({
2296
2296
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2297
2297
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2298
2298
  search: { describe: "Search query", type: "string", default: "" },
@@ -2373,13 +2373,13 @@ var CompositionListModule = {
2373
2373
  var ComponentPatternListModule = {
2374
2374
  ...CompositionListModule,
2375
2375
  describe: "List component patterns",
2376
- builder: (yargs35) => withFormatOptions(
2376
+ builder: (yargs36) => withFormatOptions(
2377
2377
  withConfiguration(
2378
2378
  withApiOptions(
2379
2379
  withDebugOptions(
2380
2380
  withProjectOptions(
2381
2381
  withStateOptions(
2382
- yargs35.options({
2382
+ yargs36.options({
2383
2383
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2384
2384
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2385
2385
  resolvePatterns: {
@@ -2502,12 +2502,12 @@ function createComponentInstanceEngineDataSource({
2502
2502
  var CompositionPublishModule = {
2503
2503
  command: "publish [ids]",
2504
2504
  describe: "Publishes composition(s)",
2505
- builder: (yargs35) => withConfiguration(
2505
+ builder: (yargs36) => withConfiguration(
2506
2506
  withApiOptions(
2507
2507
  withProjectOptions(
2508
2508
  withDebugOptions(
2509
2509
  withDiffOptions(
2510
- yargs35.positional("ids", {
2510
+ yargs36.positional("ids", {
2511
2511
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2512
2512
  type: "string"
2513
2513
  }).option("all", {
@@ -2600,12 +2600,12 @@ var CompositionPublishModule = {
2600
2600
  var ComponentPatternPublishModule = {
2601
2601
  ...CompositionPublishModule,
2602
2602
  describe: "Publishes component pattern(s)",
2603
- builder: (yargs35) => withConfiguration(
2603
+ builder: (yargs36) => withConfiguration(
2604
2604
  withApiOptions(
2605
2605
  withDebugOptions(
2606
2606
  withProjectOptions(
2607
2607
  withDiffOptions(
2608
- yargs35.positional("ids", {
2608
+ yargs36.positional("ids", {
2609
2609
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2610
2610
  type: "string"
2611
2611
  }).option("all", {
@@ -2645,13 +2645,13 @@ function componentInstancePullModuleFactory(type) {
2645
2645
  return {
2646
2646
  command: "pull <directory>",
2647
2647
  describe: "Pulls all compositions to local files in a directory",
2648
- builder: (yargs35) => withConfiguration(
2648
+ builder: (yargs36) => withConfiguration(
2649
2649
  withApiOptions(
2650
2650
  withProjectOptions(
2651
2651
  withStateOptions(
2652
2652
  withDebugOptions(
2653
2653
  withDiffOptions(
2654
- yargs35.positional("directory", {
2654
+ yargs36.positional("directory", {
2655
2655
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
2656
2656
  type: "string"
2657
2657
  }).option("format", {
@@ -2766,13 +2766,13 @@ function componentInstancePullModuleFactory(type) {
2766
2766
  var ComponentPatternPullModule = {
2767
2767
  ...componentInstancePullModuleFactory("componentPatterns"),
2768
2768
  describe: "Pulls all component patterns to local files in a directory",
2769
- builder: (yargs35) => withConfiguration(
2769
+ builder: (yargs36) => withConfiguration(
2770
2770
  withApiOptions(
2771
2771
  withProjectOptions(
2772
2772
  withDebugOptions(
2773
2773
  withStateOptions(
2774
2774
  withDiffOptions(
2775
- yargs35.positional("directory", {
2775
+ yargs36.positional("directory", {
2776
2776
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
2777
2777
  type: "string"
2778
2778
  }).option("format", {
@@ -2846,13 +2846,13 @@ function componentInstancePushModuleFactory(type) {
2846
2846
  return {
2847
2847
  command: "push <directory>",
2848
2848
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
2849
- builder: (yargs35) => withConfiguration(
2849
+ builder: (yargs36) => withConfiguration(
2850
2850
  withApiOptions(
2851
2851
  withProjectOptions(
2852
2852
  withStateOptions(
2853
2853
  withDebugOptions(
2854
2854
  withDiffOptions(
2855
- yargs35.positional("directory", {
2855
+ yargs36.positional("directory", {
2856
2856
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2857
2857
  type: "string"
2858
2858
  }).option("mode", {
@@ -2966,13 +2966,13 @@ function componentInstancePushModuleFactory(type) {
2966
2966
  var ComponentPatternPushModule = {
2967
2967
  ...componentInstancePushModuleFactory("componentPatterns"),
2968
2968
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
2969
- builder: (yargs35) => withConfiguration(
2969
+ builder: (yargs36) => withConfiguration(
2970
2970
  withApiOptions(
2971
2971
  withProjectOptions(
2972
2972
  withStateOptions(
2973
2973
  withDiffOptions(
2974
2974
  withDebugOptions(
2975
- yargs35.positional("directory", {
2975
+ yargs36.positional("directory", {
2976
2976
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
2977
2977
  type: "string"
2978
2978
  }).option("mode", {
@@ -3006,11 +3006,11 @@ var CompositionRemoveModule = {
3006
3006
  command: "remove <id>",
3007
3007
  aliases: ["delete", "rm"],
3008
3008
  describe: "Delete a composition",
3009
- builder: (yargs35) => withConfiguration(
3009
+ builder: (yargs36) => withConfiguration(
3010
3010
  withApiOptions(
3011
3011
  withDebugOptions(
3012
3012
  withProjectOptions(
3013
- yargs35.positional("id", {
3013
+ yargs36.positional("id", {
3014
3014
  demandOption: true,
3015
3015
  describe: "Composition/pattern public ID to delete"
3016
3016
  })
@@ -3044,11 +3044,11 @@ import { diffJson as diffJson2 } from "diff";
3044
3044
  var CompositionUnpublishModule = {
3045
3045
  command: "unpublish [ids]",
3046
3046
  describe: "Unpublish a composition(s)",
3047
- builder: (yargs35) => withConfiguration(
3047
+ builder: (yargs36) => withConfiguration(
3048
3048
  withApiOptions(
3049
3049
  withDebugOptions(
3050
3050
  withProjectOptions(
3051
- yargs35.positional("ids", {
3051
+ yargs36.positional("ids", {
3052
3052
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3053
3053
  type: "string"
3054
3054
  }).option("all", {
@@ -3145,11 +3145,11 @@ var CompositionUnpublishModule = {
3145
3145
  var ComponentPatternUnpublishModule = {
3146
3146
  command: "unpublish [ids]",
3147
3147
  describe: "Unpublish a component pattern(s)",
3148
- builder: (yargs35) => withConfiguration(
3148
+ builder: (yargs36) => withConfiguration(
3149
3149
  withApiOptions(
3150
3150
  withDebugOptions(
3151
3151
  withProjectOptions(
3152
- yargs35.positional("ids", {
3152
+ yargs36.positional("ids", {
3153
3153
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3154
3154
  type: "string"
3155
3155
  }).option("all", {
@@ -3183,12 +3183,12 @@ var CompositionUpdateModule = {
3183
3183
  command: "update <filename>",
3184
3184
  aliases: ["put"],
3185
3185
  describe: "Insert or update a composition",
3186
- builder: (yargs35) => withConfiguration(
3186
+ builder: (yargs36) => withConfiguration(
3187
3187
  withApiOptions(
3188
3188
  withProjectOptions(
3189
3189
  withDebugOptions(
3190
3190
  withStateOptions(
3191
- yargs35.positional("filename", {
3191
+ yargs36.positional("filename", {
3192
3192
  demandOption: true,
3193
3193
  describe: "Composition/pattern file to put"
3194
3194
  })
@@ -3226,7 +3226,7 @@ var ComponentPatternUpdateModule = {
3226
3226
  var ComponentPatternModule = {
3227
3227
  command: "component-pattern <command>",
3228
3228
  describe: "Commands for Canvas component patterns",
3229
- builder: (yargs35) => yargs35.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
3229
+ builder: (yargs36) => yargs36.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
3230
3230
  handler: () => {
3231
3231
  yargs4.help();
3232
3232
  }
@@ -3238,7 +3238,7 @@ var CompositionModule = {
3238
3238
  command: "composition <command>",
3239
3239
  describe: "Commands for Canvas compositions",
3240
3240
  aliases: ["comp"],
3241
- builder: (yargs35) => yargs35.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
3241
+ builder: (yargs36) => yargs36.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
3242
3242
  handler: () => {
3243
3243
  yargs5.help();
3244
3244
  }
@@ -3257,13 +3257,13 @@ var CompositionPatternGetModule = {
3257
3257
  var CompositionPatternListModule = {
3258
3258
  ...CompositionListModule,
3259
3259
  describe: "List composition patterns",
3260
- builder: (yargs35) => withFormatOptions(
3260
+ builder: (yargs36) => withFormatOptions(
3261
3261
  withConfiguration(
3262
3262
  withApiOptions(
3263
3263
  withDebugOptions(
3264
3264
  withProjectOptions(
3265
3265
  withStateOptions(
3266
- yargs35.options({
3266
+ yargs36.options({
3267
3267
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
3268
3268
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
3269
3269
  resolvePatterns: {
@@ -3307,12 +3307,12 @@ var CompositionPatternListModule = {
3307
3307
  var CompositionPatternPublishModule = {
3308
3308
  ...CompositionPublishModule,
3309
3309
  describe: "Publishes composition pattern(s)",
3310
- builder: (yargs35) => withConfiguration(
3310
+ builder: (yargs36) => withConfiguration(
3311
3311
  withApiOptions(
3312
3312
  withDebugOptions(
3313
3313
  withProjectOptions(
3314
3314
  withDiffOptions(
3315
- yargs35.positional("ids", {
3315
+ yargs36.positional("ids", {
3316
3316
  describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3317
3317
  type: "string"
3318
3318
  }).option("all", {
@@ -3351,13 +3351,13 @@ var CompositionPatternPublishModule = {
3351
3351
  var CompositionPatternPullModule = {
3352
3352
  ...componentInstancePullModuleFactory("compositionPatterns"),
3353
3353
  describe: "Pulls all composition patterns to local files in a directory",
3354
- builder: (yargs35) => withConfiguration(
3354
+ builder: (yargs36) => withConfiguration(
3355
3355
  withApiOptions(
3356
3356
  withDebugOptions(
3357
3357
  withProjectOptions(
3358
3358
  withStateOptions(
3359
3359
  withDiffOptions(
3360
- yargs35.positional("directory", {
3360
+ yargs36.positional("directory", {
3361
3361
  describe: "Directory to save the composition patterns to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3362
3362
  type: "string"
3363
3363
  }).option("format", {
@@ -3395,13 +3395,13 @@ var CompositionPatternPullModule = {
3395
3395
  var CompositionPatternPushModule = {
3396
3396
  ...componentInstancePushModuleFactory("compositionPatterns"),
3397
3397
  describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
3398
- builder: (yargs35) => withConfiguration(
3398
+ builder: (yargs36) => withConfiguration(
3399
3399
  withApiOptions(
3400
3400
  withDebugOptions(
3401
3401
  withProjectOptions(
3402
3402
  withStateOptions(
3403
3403
  withDiffOptions(
3404
- yargs35.positional("directory", {
3404
+ yargs36.positional("directory", {
3405
3405
  describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
3406
3406
  type: "string"
3407
3407
  }).option("mode", {
@@ -3440,11 +3440,11 @@ var CompositionPatternRemoveModule = {
3440
3440
  var CompositionPatternUnpublishModule = {
3441
3441
  command: "unpublish [ids]",
3442
3442
  describe: "Unpublish a composition pattern(s)",
3443
- builder: (yargs35) => withConfiguration(
3443
+ builder: (yargs36) => withConfiguration(
3444
3444
  withApiOptions(
3445
3445
  withDebugOptions(
3446
3446
  withProjectOptions(
3447
- yargs35.positional("ids", {
3447
+ yargs36.positional("ids", {
3448
3448
  describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3449
3449
  type: "string"
3450
3450
  }).option("all", {
@@ -3480,7 +3480,7 @@ var CompositionPatternUpdateModule = {
3480
3480
  var CompositionPatternModule = {
3481
3481
  command: "composition-pattern <command>",
3482
3482
  describe: "Commands for Canvas composition patterns",
3483
- builder: (yargs35) => yargs35.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
3483
+ builder: (yargs36) => yargs36.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
3484
3484
  handler: () => {
3485
3485
  yargs6.help();
3486
3486
  }
@@ -3501,12 +3501,12 @@ function getContentClient(options) {
3501
3501
  var ContentTypeGetModule = {
3502
3502
  command: "get <id>",
3503
3503
  describe: "Get a content type",
3504
- builder: (yargs35) => withConfiguration(
3504
+ builder: (yargs36) => withConfiguration(
3505
3505
  withDebugOptions(
3506
3506
  withFormatOptions(
3507
3507
  withApiOptions(
3508
3508
  withProjectOptions(
3509
- yargs35.positional("id", {
3509
+ yargs36.positional("id", {
3510
3510
  demandOption: true,
3511
3511
  describe: "Content type public ID to fetch"
3512
3512
  })
@@ -3531,7 +3531,7 @@ var ContentTypeGetModule = {
3531
3531
  var ContentTypeListModule = {
3532
3532
  command: "list",
3533
3533
  describe: "List content types",
3534
- builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
3534
+ builder: (yargs36) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs36))))),
3535
3535
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
3536
3536
  const fetch2 = nodeFetchProxy(proxy, verbose);
3537
3537
  const client = getContentClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -3572,12 +3572,12 @@ function createContentTypeEngineDataSource({
3572
3572
  var ContentTypePullModule = {
3573
3573
  command: "pull <directory>",
3574
3574
  describe: "Pulls all content types to local files in a directory",
3575
- builder: (yargs35) => withConfiguration(
3575
+ builder: (yargs36) => withConfiguration(
3576
3576
  withApiOptions(
3577
3577
  withDebugOptions(
3578
3578
  withProjectOptions(
3579
3579
  withDiffOptions(
3580
- yargs35.positional("directory", {
3580
+ yargs36.positional("directory", {
3581
3581
  describe: "Directory to save the content types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3582
3582
  type: "string"
3583
3583
  }).option("format", {
@@ -3657,12 +3657,12 @@ var ContentTypePullModule = {
3657
3657
  var ContentTypePushModule = {
3658
3658
  command: "push <directory>",
3659
3659
  describe: "Pushes all content types from files in a directory to Uniform",
3660
- builder: (yargs35) => withConfiguration(
3660
+ builder: (yargs36) => withConfiguration(
3661
3661
  withApiOptions(
3662
3662
  withDebugOptions(
3663
3663
  withProjectOptions(
3664
3664
  withDiffOptions(
3665
- yargs35.positional("directory", {
3665
+ yargs36.positional("directory", {
3666
3666
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
3667
3667
  type: "string"
3668
3668
  }).option("what-if", {
@@ -3736,11 +3736,11 @@ var ContentTypeRemoveModule = {
3736
3736
  command: "remove <id>",
3737
3737
  aliases: ["delete", "rm"],
3738
3738
  describe: "Delete a content type",
3739
- builder: (yargs35) => withConfiguration(
3739
+ builder: (yargs36) => withConfiguration(
3740
3740
  withDebugOptions(
3741
3741
  withApiOptions(
3742
3742
  withProjectOptions(
3743
- yargs35.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
3743
+ yargs36.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
3744
3744
  )
3745
3745
  )
3746
3746
  )
@@ -3761,11 +3761,11 @@ var ContentTypeUpdateModule = {
3761
3761
  command: "update <filename>",
3762
3762
  aliases: ["put"],
3763
3763
  describe: "Insert or update a content type",
3764
- builder: (yargs35) => withConfiguration(
3764
+ builder: (yargs36) => withConfiguration(
3765
3765
  withDebugOptions(
3766
3766
  withApiOptions(
3767
3767
  withProjectOptions(
3768
- yargs35.positional("filename", { demandOption: true, describe: "Content type file to put" })
3768
+ yargs36.positional("filename", { demandOption: true, describe: "Content type file to put" })
3769
3769
  )
3770
3770
  )
3771
3771
  )
@@ -3787,7 +3787,7 @@ var ContentTypeModule = {
3787
3787
  command: "contenttype <command>",
3788
3788
  aliases: ["ct"],
3789
3789
  describe: "Commands for Content Types",
3790
- builder: (yargs35) => yargs35.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
3790
+ builder: (yargs36) => yargs36.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
3791
3791
  handler: () => {
3792
3792
  yargs7.help();
3793
3793
  }
@@ -3806,11 +3806,11 @@ function getDataSourceClient(options) {
3806
3806
  var DataSourceGetModule = {
3807
3807
  command: "get <id>",
3808
3808
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
3809
- builder: (yargs35) => withConfiguration(
3809
+ builder: (yargs36) => withConfiguration(
3810
3810
  withApiOptions(
3811
3811
  withDebugOptions(
3812
3812
  withProjectOptions(
3813
- yargs35.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
3813
+ yargs36.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
3814
3814
  )
3815
3815
  )
3816
3816
  )
@@ -3828,11 +3828,11 @@ var DataSourceRemoveModule = {
3828
3828
  command: "remove <id>",
3829
3829
  aliases: ["delete", "rm"],
3830
3830
  describe: "Delete a data source",
3831
- builder: (yargs35) => withConfiguration(
3831
+ builder: (yargs36) => withConfiguration(
3832
3832
  withDebugOptions(
3833
3833
  withApiOptions(
3834
3834
  withProjectOptions(
3835
- yargs35.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
3835
+ yargs36.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
3836
3836
  )
3837
3837
  )
3838
3838
  )
@@ -3853,11 +3853,11 @@ var DataSourceUpdateModule = {
3853
3853
  command: "update <dataSource>",
3854
3854
  aliases: ["put"],
3855
3855
  describe: "Insert or update a data source",
3856
- builder: (yargs35) => withConfiguration(
3856
+ builder: (yargs36) => withConfiguration(
3857
3857
  withApiOptions(
3858
3858
  withDebugOptions(
3859
3859
  withProjectOptions(
3860
- yargs35.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
3860
+ yargs36.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
3861
3861
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
3862
3862
  type: "string",
3863
3863
  demandOption: true
@@ -3892,7 +3892,7 @@ var DataSourceModule = {
3892
3892
  command: "datasource <command>",
3893
3893
  aliases: ["ds"],
3894
3894
  describe: "Commands for Data Source definitions",
3895
- builder: (yargs35) => yargs35.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
3895
+ builder: (yargs36) => yargs36.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
3896
3896
  handler: () => {
3897
3897
  yargs8.help();
3898
3898
  }
@@ -3914,12 +3914,12 @@ var DataTypeGetModule = {
3914
3914
  command: "get <id>",
3915
3915
  describe: "Get a data type",
3916
3916
  aliases: ["ls"],
3917
- builder: (yargs35) => withConfiguration(
3917
+ builder: (yargs36) => withConfiguration(
3918
3918
  withFormatOptions(
3919
3919
  withDebugOptions(
3920
3920
  withApiOptions(
3921
3921
  withProjectOptions(
3922
- yargs35.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
3922
+ yargs36.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
3923
3923
  )
3924
3924
  )
3925
3925
  )
@@ -3942,7 +3942,7 @@ var DataTypeListModule = {
3942
3942
  command: "list",
3943
3943
  describe: "List data types",
3944
3944
  aliases: ["ls"],
3945
- builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
3945
+ builder: (yargs36) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs36))))),
3946
3946
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
3947
3947
  const fetch2 = nodeFetchProxy(proxy, verbose);
3948
3948
  const client = getDataTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -3985,12 +3985,12 @@ function createDataTypeEngineDataSource({
3985
3985
  var DataTypePullModule = {
3986
3986
  command: "pull <directory>",
3987
3987
  describe: "Pulls all data types to local files in a directory",
3988
- builder: (yargs35) => withConfiguration(
3988
+ builder: (yargs36) => withConfiguration(
3989
3989
  withApiOptions(
3990
3990
  withDebugOptions(
3991
3991
  withProjectOptions(
3992
3992
  withDiffOptions(
3993
- yargs35.positional("directory", {
3993
+ yargs36.positional("directory", {
3994
3994
  describe: "Directory to save the data types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3995
3995
  type: "string"
3996
3996
  }).option("format", {
@@ -4070,12 +4070,12 @@ var DataTypePullModule = {
4070
4070
  var DataTypePushModule = {
4071
4071
  command: "push <directory>",
4072
4072
  describe: "Pushes all data types from files in a directory to Uniform",
4073
- builder: (yargs35) => withConfiguration(
4073
+ builder: (yargs36) => withConfiguration(
4074
4074
  withApiOptions(
4075
4075
  withDebugOptions(
4076
4076
  withProjectOptions(
4077
4077
  withDiffOptions(
4078
- yargs35.positional("directory", {
4078
+ yargs36.positional("directory", {
4079
4079
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
4080
4080
  type: "string"
4081
4081
  }).option("mode", {
@@ -4144,11 +4144,11 @@ var DataTypeRemoveModule = {
4144
4144
  command: "remove <id>",
4145
4145
  aliases: ["delete", "rm"],
4146
4146
  describe: "Delete a data type",
4147
- builder: (yargs35) => withConfiguration(
4147
+ builder: (yargs36) => withConfiguration(
4148
4148
  withDebugOptions(
4149
4149
  withApiOptions(
4150
4150
  withProjectOptions(
4151
- yargs35.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
4151
+ yargs36.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
4152
4152
  )
4153
4153
  )
4154
4154
  )
@@ -4169,11 +4169,11 @@ var DataTypeUpdateModule = {
4169
4169
  command: "update <filename>",
4170
4170
  aliases: ["put"],
4171
4171
  describe: "Insert or update a data type",
4172
- builder: (yargs35) => withConfiguration(
4172
+ builder: (yargs36) => withConfiguration(
4173
4173
  withDebugOptions(
4174
4174
  withApiOptions(
4175
4175
  withProjectOptions(
4176
- yargs35.positional("filename", { demandOption: true, describe: "Data type file to put" })
4176
+ yargs36.positional("filename", { demandOption: true, describe: "Data type file to put" })
4177
4177
  )
4178
4178
  )
4179
4179
  )
@@ -4195,7 +4195,7 @@ var DataTypeModule = {
4195
4195
  command: "datatype <command>",
4196
4196
  aliases: ["dt"],
4197
4197
  describe: "Commands for Data Type definitions",
4198
- builder: (yargs35) => yargs35.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
4198
+ builder: (yargs36) => yargs36.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
4199
4199
  handler: () => {
4200
4200
  yargs9.help();
4201
4201
  }
@@ -4208,13 +4208,13 @@ import yargs10 from "yargs";
4208
4208
  var EntryGetModule = {
4209
4209
  command: "get <id>",
4210
4210
  describe: "Get an entry",
4211
- builder: (yargs35) => withConfiguration(
4211
+ builder: (yargs36) => withConfiguration(
4212
4212
  withDebugOptions(
4213
4213
  withFormatOptions(
4214
4214
  withApiOptions(
4215
4215
  withProjectOptions(
4216
4216
  withStateOptions(
4217
- yargs35.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
4217
+ yargs36.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
4218
4218
  resolveData: {
4219
4219
  type: "boolean",
4220
4220
  default: false,
@@ -4286,13 +4286,13 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
4286
4286
  var EntryListModule = {
4287
4287
  command: "list",
4288
4288
  describe: "List entries",
4289
- builder: (yargs35) => withConfiguration(
4289
+ builder: (yargs36) => withConfiguration(
4290
4290
  withDebugOptions(
4291
4291
  withFormatOptions(
4292
4292
  withApiOptions(
4293
4293
  withProjectOptions(
4294
4294
  withStateOptions(
4295
- yargs35.options({
4295
+ yargs36.options({
4296
4296
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4297
4297
  limit: {
4298
4298
  describe: "Number of rows to fetch",
@@ -4427,12 +4427,12 @@ function createEntryEngineDataSource({
4427
4427
  var EntryPublishModule = {
4428
4428
  command: "publish [ids]",
4429
4429
  describe: "Publishes entry(ies)",
4430
- builder: (yargs35) => withConfiguration(
4430
+ builder: (yargs36) => withConfiguration(
4431
4431
  withDiffOptions(
4432
4432
  withApiOptions(
4433
4433
  withProjectOptions(
4434
4434
  withDiffOptions(
4435
- yargs35.positional("ids", {
4435
+ yargs36.positional("ids", {
4436
4436
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4437
4437
  type: "string"
4438
4438
  }).option("all", {
@@ -4507,13 +4507,13 @@ var EntryPublishModule = {
4507
4507
  var EntryPullModule = {
4508
4508
  command: "pull <directory>",
4509
4509
  describe: "Pulls all entries to local files in a directory",
4510
- builder: (yargs35) => withConfiguration(
4510
+ builder: (yargs36) => withConfiguration(
4511
4511
  withDebugOptions(
4512
4512
  withApiOptions(
4513
4513
  withProjectOptions(
4514
4514
  withStateOptions(
4515
4515
  withDiffOptions(
4516
- yargs35.positional("directory", {
4516
+ yargs36.positional("directory", {
4517
4517
  describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4518
4518
  type: "string"
4519
4519
  }).option("format", {
@@ -4613,13 +4613,13 @@ var EntryPullModule = {
4613
4613
  var EntryPushModule = {
4614
4614
  command: "push <directory>",
4615
4615
  describe: "Pushes all entries from files in a directory to Uniform",
4616
- builder: (yargs35) => withConfiguration(
4616
+ builder: (yargs36) => withConfiguration(
4617
4617
  withDebugOptions(
4618
4618
  withApiOptions(
4619
4619
  withProjectOptions(
4620
4620
  withStateOptions(
4621
4621
  withDiffOptions(
4622
- yargs35.positional("directory", {
4622
+ yargs36.positional("directory", {
4623
4623
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
4624
4624
  type: "string"
4625
4625
  }).option("mode", {
@@ -4718,11 +4718,11 @@ var EntryRemoveModule = {
4718
4718
  command: "remove <id>",
4719
4719
  aliases: ["delete", "rm"],
4720
4720
  describe: "Delete an entry",
4721
- builder: (yargs35) => withConfiguration(
4721
+ builder: (yargs36) => withConfiguration(
4722
4722
  withDebugOptions(
4723
4723
  withApiOptions(
4724
4724
  withProjectOptions(
4725
- yargs35.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
4725
+ yargs36.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
4726
4726
  )
4727
4727
  )
4728
4728
  )
@@ -4744,11 +4744,11 @@ import { diffJson as diffJson3 } from "diff";
4744
4744
  var EntryUnpublishModule = {
4745
4745
  command: "unpublish [ids]",
4746
4746
  describe: "Unpublish an entry(ies)",
4747
- builder: (yargs35) => withConfiguration(
4747
+ builder: (yargs36) => withConfiguration(
4748
4748
  withDebugOptions(
4749
4749
  withApiOptions(
4750
4750
  withProjectOptions(
4751
- yargs35.positional("ids", {
4751
+ yargs36.positional("ids", {
4752
4752
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4753
4753
  type: "string"
4754
4754
  }).option("all", {
@@ -4818,12 +4818,12 @@ var EntryUpdateModule = {
4818
4818
  command: "update <filename>",
4819
4819
  aliases: ["put"],
4820
4820
  describe: "Insert or update an entry",
4821
- builder: (yargs35) => withConfiguration(
4821
+ builder: (yargs36) => withConfiguration(
4822
4822
  withDebugOptions(
4823
4823
  withApiOptions(
4824
4824
  withProjectOptions(
4825
4825
  withStateOptions(
4826
- yargs35.positional("filename", { demandOption: true, describe: "Entry file to put" })
4826
+ yargs36.positional("filename", { demandOption: true, describe: "Entry file to put" })
4827
4827
  )
4828
4828
  )
4829
4829
  )
@@ -4855,7 +4855,7 @@ var EntryUpdateModule = {
4855
4855
  var EntryModule = {
4856
4856
  command: "entry <command>",
4857
4857
  describe: "Commands for Entries",
4858
- builder: (yargs35) => yargs35.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
4858
+ builder: (yargs36) => yargs36.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
4859
4859
  handler: () => {
4860
4860
  yargs10.help();
4861
4861
  }
@@ -4868,13 +4868,13 @@ import yargs11 from "yargs";
4868
4868
  var EntryPatternGetModule = {
4869
4869
  command: "get <id>",
4870
4870
  describe: "Get an entry pattern",
4871
- builder: (yargs35) => withConfiguration(
4871
+ builder: (yargs36) => withConfiguration(
4872
4872
  withDebugOptions(
4873
4873
  withFormatOptions(
4874
4874
  withApiOptions(
4875
4875
  withProjectOptions(
4876
4876
  withStateOptions(
4877
- yargs35.positional("id", {
4877
+ yargs36.positional("id", {
4878
4878
  demandOption: true,
4879
4879
  describe: "Entry pattern public ID to fetch"
4880
4880
  }).option({
@@ -4927,13 +4927,13 @@ var EntryPatternGetModule = {
4927
4927
  var EntryPatternListModule = {
4928
4928
  command: "list",
4929
4929
  describe: "List entry patterns",
4930
- builder: (yargs35) => withConfiguration(
4930
+ builder: (yargs36) => withConfiguration(
4931
4931
  withDebugOptions(
4932
4932
  withFormatOptions(
4933
4933
  withApiOptions(
4934
4934
  withProjectOptions(
4935
4935
  withStateOptions(
4936
- yargs35.option({
4936
+ yargs36.option({
4937
4937
  withComponentIDs: {
4938
4938
  type: "boolean",
4939
4939
  default: false,
@@ -4979,12 +4979,12 @@ var EntryPatternListModule = {
4979
4979
  var EntryPatternPublishModule = {
4980
4980
  command: "publish [ids]",
4981
4981
  describe: "Publishes entry pattern(s)",
4982
- builder: (yargs35) => withConfiguration(
4982
+ builder: (yargs36) => withConfiguration(
4983
4983
  withDebugOptions(
4984
4984
  withApiOptions(
4985
4985
  withProjectOptions(
4986
4986
  withDiffOptions(
4987
- yargs35.positional("ids", {
4987
+ yargs36.positional("ids", {
4988
4988
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4989
4989
  type: "string"
4990
4990
  }).option("all", {
@@ -5059,13 +5059,13 @@ var EntryPatternPublishModule = {
5059
5059
  var EntryPatternPullModule = {
5060
5060
  command: "pull <directory>",
5061
5061
  describe: "Pulls all entry patterns to local files in a directory",
5062
- builder: (yargs35) => withConfiguration(
5062
+ builder: (yargs36) => withConfiguration(
5063
5063
  withApiOptions(
5064
5064
  withDebugOptions(
5065
5065
  withProjectOptions(
5066
5066
  withStateOptions(
5067
5067
  withDiffOptions(
5068
- yargs35.positional("directory", {
5068
+ yargs36.positional("directory", {
5069
5069
  describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5070
5070
  type: "string"
5071
5071
  }).option("format", {
@@ -5165,13 +5165,13 @@ var EntryPatternPullModule = {
5165
5165
  var EntryPatternPushModule = {
5166
5166
  command: "push <directory>",
5167
5167
  describe: "Pushes all entry patterns from files in a directory to Uniform",
5168
- builder: (yargs35) => withConfiguration(
5168
+ builder: (yargs36) => withConfiguration(
5169
5169
  withDebugOptions(
5170
5170
  withApiOptions(
5171
5171
  withProjectOptions(
5172
5172
  withStateOptions(
5173
5173
  withDiffOptions(
5174
- yargs35.positional("directory", {
5174
+ yargs36.positional("directory", {
5175
5175
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
5176
5176
  type: "string"
5177
5177
  }).option("what-if", {
@@ -5275,11 +5275,11 @@ var EntryPatternRemoveModule = {
5275
5275
  command: "remove <id>",
5276
5276
  aliases: ["delete", "rm"],
5277
5277
  describe: "Delete an entry pattern",
5278
- builder: (yargs35) => withConfiguration(
5278
+ builder: (yargs36) => withConfiguration(
5279
5279
  withDebugOptions(
5280
5280
  withApiOptions(
5281
5281
  withProjectOptions(
5282
- yargs35.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
5282
+ yargs36.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
5283
5283
  )
5284
5284
  )
5285
5285
  )
@@ -5301,11 +5301,11 @@ import { diffJson as diffJson4 } from "diff";
5301
5301
  var EntryPatternUnpublishModule = {
5302
5302
  command: "unpublish [ids]",
5303
5303
  describe: "Unpublish an entry patterns",
5304
- builder: (yargs35) => withConfiguration(
5304
+ builder: (yargs36) => withConfiguration(
5305
5305
  withDebugOptions(
5306
5306
  withApiOptions(
5307
5307
  withProjectOptions(
5308
- yargs35.positional("ids", {
5308
+ yargs36.positional("ids", {
5309
5309
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5310
5310
  type: "string"
5311
5311
  }).option("all", {
@@ -5375,12 +5375,12 @@ var EntryPatternUpdateModule = {
5375
5375
  command: "update <filename>",
5376
5376
  aliases: ["put"],
5377
5377
  describe: "Insert or update an entry pattern",
5378
- builder: (yargs35) => withConfiguration(
5378
+ builder: (yargs36) => withConfiguration(
5379
5379
  withDebugOptions(
5380
5380
  withApiOptions(
5381
5381
  withProjectOptions(
5382
5382
  withStateOptions(
5383
- yargs35.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
5383
+ yargs36.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
5384
5384
  )
5385
5385
  )
5386
5386
  )
@@ -5416,7 +5416,7 @@ var EntryPatternUpdateModule = {
5416
5416
  var EntryPatternModule = {
5417
5417
  command: "entry-pattern <command>",
5418
5418
  describe: "Commands for Entry patterns",
5419
- builder: (yargs35) => yargs35.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
5419
+ builder: (yargs36) => yargs36.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
5420
5420
  handler: () => {
5421
5421
  yargs11.help();
5422
5422
  }
@@ -5465,12 +5465,12 @@ function getLocaleClient(options) {
5465
5465
  var LocalePullModule = {
5466
5466
  command: "pull <directory>",
5467
5467
  describe: "Pulls all locales to local files in a directory",
5468
- builder: (yargs35) => withConfiguration(
5468
+ builder: (yargs36) => withConfiguration(
5469
5469
  withDebugOptions(
5470
5470
  withApiOptions(
5471
5471
  withProjectOptions(
5472
5472
  withDiffOptions(
5473
- yargs35.positional("directory", {
5473
+ yargs36.positional("directory", {
5474
5474
  describe: "Directory to save the locales to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5475
5475
  type: "string"
5476
5476
  }).option("format", {
@@ -5550,12 +5550,12 @@ var LocalePullModule = {
5550
5550
  var LocalePushModule = {
5551
5551
  command: "push <directory>",
5552
5552
  describe: "Pushes all locales from files in a directory to Uniform",
5553
- builder: (yargs35) => withConfiguration(
5553
+ builder: (yargs36) => withConfiguration(
5554
5554
  withDebugOptions(
5555
5555
  withApiOptions(
5556
5556
  withProjectOptions(
5557
5557
  withDiffOptions(
5558
- yargs35.positional("directory", {
5558
+ yargs36.positional("directory", {
5559
5559
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
5560
5560
  type: "string"
5561
5561
  }).option("mode", {
@@ -5623,7 +5623,7 @@ var LocalePushModule = {
5623
5623
  var LocaleModule = {
5624
5624
  command: "locale <command>",
5625
5625
  describe: "Commands for locale definitions",
5626
- builder: (yargs35) => yargs35.command(LocalePullModule).command(LocalePushModule),
5626
+ builder: (yargs36) => yargs36.command(LocalePullModule).command(LocalePushModule),
5627
5627
  handler: () => {
5628
5628
  yargs12.help();
5629
5629
  }
@@ -5644,12 +5644,12 @@ function getPreviewClient(options) {
5644
5644
  var PreviewUrlGetModule = {
5645
5645
  command: "get <id>",
5646
5646
  describe: "Fetch a preview URL",
5647
- builder: (yargs35) => withConfiguration(
5647
+ builder: (yargs36) => withConfiguration(
5648
5648
  withFormatOptions(
5649
5649
  withDebugOptions(
5650
5650
  withApiOptions(
5651
5651
  withProjectOptions(
5652
- yargs35.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
5652
+ yargs36.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
5653
5653
  )
5654
5654
  )
5655
5655
  )
@@ -5673,8 +5673,8 @@ var PreviewUrlListModule = {
5673
5673
  command: "list",
5674
5674
  describe: "List preview URLs",
5675
5675
  aliases: ["ls"],
5676
- builder: (yargs35) => withConfiguration(
5677
- withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs35.options({})))))
5676
+ builder: (yargs36) => withConfiguration(
5677
+ withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs36.options({})))))
5678
5678
  ),
5679
5679
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
5680
5680
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -5716,12 +5716,12 @@ function createPreviewUrlEngineDataSource({
5716
5716
  var PreviewUrlPullModule = {
5717
5717
  command: "pull <directory>",
5718
5718
  describe: "Pulls all preview urls to local files in a directory",
5719
- builder: (yargs35) => withConfiguration(
5719
+ builder: (yargs36) => withConfiguration(
5720
5720
  withApiOptions(
5721
5721
  withProjectOptions(
5722
5722
  withDebugOptions(
5723
5723
  withDiffOptions(
5724
- yargs35.positional("directory", {
5724
+ yargs36.positional("directory", {
5725
5725
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5726
5726
  type: "string"
5727
5727
  }).option("format", {
@@ -5796,12 +5796,12 @@ var PreviewUrlPullModule = {
5796
5796
  var PreviewUrlPushModule = {
5797
5797
  command: "push <directory>",
5798
5798
  describe: "Pushes all preview urls from files in a directory to Uniform Canvas",
5799
- builder: (yargs35) => withConfiguration(
5799
+ builder: (yargs36) => withConfiguration(
5800
5800
  withApiOptions(
5801
5801
  withProjectOptions(
5802
5802
  withDiffOptions(
5803
5803
  withDebugOptions(
5804
- yargs35.positional("directory", {
5804
+ yargs36.positional("directory", {
5805
5805
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
5806
5806
  type: "string"
5807
5807
  }).option("mode", {
@@ -5865,11 +5865,11 @@ var PreviewUrlRemoveModule = {
5865
5865
  command: "remove <id>",
5866
5866
  aliases: ["delete", "rm"],
5867
5867
  describe: "Delete a preview URL",
5868
- builder: (yargs35) => withConfiguration(
5868
+ builder: (yargs36) => withConfiguration(
5869
5869
  withApiOptions(
5870
5870
  withDebugOptions(
5871
5871
  withProjectOptions(
5872
- yargs35.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
5872
+ yargs36.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
5873
5873
  )
5874
5874
  )
5875
5875
  )
@@ -5890,11 +5890,11 @@ var PreviewUrlUpdateModule = {
5890
5890
  command: "update <filename>",
5891
5891
  aliases: ["put"],
5892
5892
  describe: "Insert or update a preview URL",
5893
- builder: (yargs35) => withConfiguration(
5893
+ builder: (yargs36) => withConfiguration(
5894
5894
  withDebugOptions(
5895
5895
  withApiOptions(
5896
5896
  withProjectOptions(
5897
- yargs35.positional("filename", { demandOption: true, describe: "Category file to put" })
5897
+ yargs36.positional("filename", { demandOption: true, describe: "Category file to put" })
5898
5898
  )
5899
5899
  )
5900
5900
  )
@@ -5916,7 +5916,7 @@ var PreviewUrlModule = {
5916
5916
  command: "preview-url <command>",
5917
5917
  aliases: ["pu"],
5918
5918
  describe: "Commands for Canvas preview urls",
5919
- builder: (yargs35) => yargs35.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
5919
+ builder: (yargs36) => yargs36.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
5920
5920
  handler: () => {
5921
5921
  yargs13.help();
5922
5922
  }
@@ -5929,12 +5929,12 @@ import yargs14 from "yargs";
5929
5929
  var PreviewViewportGetModule = {
5930
5930
  command: "get <id>",
5931
5931
  describe: "Fetch a preview viewport",
5932
- builder: (yargs35) => withConfiguration(
5932
+ builder: (yargs36) => withConfiguration(
5933
5933
  withFormatOptions(
5934
5934
  withDebugOptions(
5935
5935
  withApiOptions(
5936
5936
  withProjectOptions(
5937
- yargs35.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
5937
+ yargs36.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
5938
5938
  )
5939
5939
  )
5940
5940
  )
@@ -5958,8 +5958,8 @@ var PreviewViewportListModule = {
5958
5958
  command: "list",
5959
5959
  describe: "List preview viewports",
5960
5960
  aliases: ["ls"],
5961
- builder: (yargs35) => withConfiguration(
5962
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs35.options({})))))
5961
+ builder: (yargs36) => withConfiguration(
5962
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs36.options({})))))
5963
5963
  ),
5964
5964
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
5965
5965
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -6005,12 +6005,12 @@ function createPreviewViewportEngineDataSource({
6005
6005
  var PreviewViewportPullModule = {
6006
6006
  command: "pull <directory>",
6007
6007
  describe: "Pulls all preview viewports to local files in a directory",
6008
- builder: (yargs35) => withConfiguration(
6008
+ builder: (yargs36) => withConfiguration(
6009
6009
  withApiOptions(
6010
6010
  withProjectOptions(
6011
6011
  withDebugOptions(
6012
6012
  withDiffOptions(
6013
- yargs35.positional("directory", {
6013
+ yargs36.positional("directory", {
6014
6014
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6015
6015
  type: "string"
6016
6016
  }).option("format", {
@@ -6085,12 +6085,12 @@ var PreviewViewportPullModule = {
6085
6085
  var PreviewViewportPushModule = {
6086
6086
  command: "push <directory>",
6087
6087
  describe: "Pushes all preview viewports from files in a directory to Uniform Canvas",
6088
- builder: (yargs35) => withConfiguration(
6088
+ builder: (yargs36) => withConfiguration(
6089
6089
  withApiOptions(
6090
6090
  withProjectOptions(
6091
6091
  withDiffOptions(
6092
6092
  withDebugOptions(
6093
- yargs35.positional("directory", {
6093
+ yargs36.positional("directory", {
6094
6094
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
6095
6095
  type: "string"
6096
6096
  }).option("mode", {
@@ -6154,11 +6154,11 @@ var PreviewViewportRemoveModule = {
6154
6154
  command: "remove <id>",
6155
6155
  aliases: ["delete", "rm"],
6156
6156
  describe: "Delete a preview viewport",
6157
- builder: (yargs35) => withConfiguration(
6157
+ builder: (yargs36) => withConfiguration(
6158
6158
  withApiOptions(
6159
6159
  withDebugOptions(
6160
6160
  withProjectOptions(
6161
- yargs35.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
6161
+ yargs36.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
6162
6162
  )
6163
6163
  )
6164
6164
  )
@@ -6179,11 +6179,11 @@ var PreviewViewportUpdateModule = {
6179
6179
  command: "update <filename>",
6180
6180
  aliases: ["put"],
6181
6181
  describe: "Insert or update a preview viewport",
6182
- builder: (yargs35) => withConfiguration(
6182
+ builder: (yargs36) => withConfiguration(
6183
6183
  withDebugOptions(
6184
6184
  withApiOptions(
6185
6185
  withProjectOptions(
6186
- yargs35.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
6186
+ yargs36.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
6187
6187
  )
6188
6188
  )
6189
6189
  )
@@ -6205,7 +6205,7 @@ var PreviewViewportModule = {
6205
6205
  command: "preview-viewport <command>",
6206
6206
  aliases: ["pv"],
6207
6207
  describe: "Commands for Canvas preview viewports",
6208
- builder: (yargs35) => yargs35.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
6208
+ builder: (yargs36) => yargs36.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
6209
6209
  handler: () => {
6210
6210
  yargs14.help();
6211
6211
  }
@@ -6224,12 +6224,12 @@ var getPromptClient = (options) => new PromptClient({ ...options, bypassCache: t
6224
6224
  var PromptGetModule = {
6225
6225
  command: "get <id>",
6226
6226
  describe: "Get a prompt",
6227
- builder: (yargs35) => withConfiguration(
6227
+ builder: (yargs36) => withConfiguration(
6228
6228
  withDebugOptions(
6229
6229
  withFormatOptions(
6230
6230
  withApiOptions(
6231
6231
  withProjectOptions(
6232
- yargs35.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
6232
+ yargs36.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
6233
6233
  )
6234
6234
  )
6235
6235
  )
@@ -6250,7 +6250,7 @@ var PromptGetModule = {
6250
6250
  var PromptListModule = {
6251
6251
  command: "list",
6252
6252
  describe: "List prompts",
6253
- builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
6253
+ builder: (yargs36) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs36))))),
6254
6254
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6255
6255
  const fetch2 = nodeFetchProxy(proxy, verbose);
6256
6256
  const client = getPromptClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6291,13 +6291,13 @@ function createPromptEngineDataSource({
6291
6291
  var PromptPullModule = {
6292
6292
  command: "pull <directory>",
6293
6293
  describe: "Pulls all prompts to local files in a directory",
6294
- builder: (yargs35) => withConfiguration(
6294
+ builder: (yargs36) => withConfiguration(
6295
6295
  withDebugOptions(
6296
6296
  withApiOptions(
6297
6297
  withProjectOptions(
6298
6298
  withStateOptions(
6299
6299
  withDiffOptions(
6300
- yargs35.positional("directory", {
6300
+ yargs36.positional("directory", {
6301
6301
  describe: "Directory to save the prompts to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6302
6302
  type: "string"
6303
6303
  }).option("format", {
@@ -6378,12 +6378,12 @@ var PromptPullModule = {
6378
6378
  var PromptPushModule = {
6379
6379
  command: "push <directory>",
6380
6380
  describe: "Pushes all prompts from files in a directory to Uniform",
6381
- builder: (yargs35) => withConfiguration(
6381
+ builder: (yargs36) => withConfiguration(
6382
6382
  withApiOptions(
6383
6383
  withProjectOptions(
6384
6384
  withStateOptions(
6385
6385
  withDiffOptions(
6386
- yargs35.positional("directory", {
6386
+ yargs36.positional("directory", {
6387
6387
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
6388
6388
  type: "string"
6389
6389
  }).option("mode", {
@@ -6452,10 +6452,10 @@ var PromptRemoveModule = {
6452
6452
  command: "remove <id>",
6453
6453
  aliases: ["delete", "rm"],
6454
6454
  describe: "Delete a prompt",
6455
- builder: (yargs35) => withConfiguration(
6455
+ builder: (yargs36) => withConfiguration(
6456
6456
  withDebugOptions(
6457
6457
  withApiOptions(
6458
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
6458
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
6459
6459
  )
6460
6460
  )
6461
6461
  ),
@@ -6475,11 +6475,11 @@ var PromptUpdateModule = {
6475
6475
  command: "update <filename>",
6476
6476
  aliases: ["put"],
6477
6477
  describe: "Insert or update a prompt",
6478
- builder: (yargs35) => withConfiguration(
6478
+ builder: (yargs36) => withConfiguration(
6479
6479
  withDebugOptions(
6480
6480
  withApiOptions(
6481
6481
  withProjectOptions(
6482
- yargs35.positional("filename", { demandOption: true, describe: "Prompt file to put" })
6482
+ yargs36.positional("filename", { demandOption: true, describe: "Prompt file to put" })
6483
6483
  )
6484
6484
  )
6485
6485
  )
@@ -6501,19 +6501,371 @@ var PromptModule = {
6501
6501
  command: "prompt <command>",
6502
6502
  aliases: ["dt"],
6503
6503
  describe: "Commands for AI Prompt definitions",
6504
- builder: (yargs35) => yargs35.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
6504
+ builder: (yargs36) => yargs36.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
6505
6505
  handler: () => {
6506
6506
  yargs15.help();
6507
6507
  }
6508
6508
  };
6509
6509
 
6510
- // src/commands/canvas/commands/workflow.ts
6510
+ // src/commands/canvas/commands/webhooks.ts
6511
6511
  import yargs16 from "yargs";
6512
6512
 
6513
+ // src/webhooksClient.ts
6514
+ import { ApiClient } from "@uniformdev/context/api";
6515
+ import PQueue3 from "p-queue";
6516
+ import { Svix } from "svix";
6517
+ import { z } from "zod";
6518
+ var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
6519
+ var WebhooksClient = class extends ApiClient {
6520
+ constructor(options) {
6521
+ super(options);
6522
+ }
6523
+ async getToken() {
6524
+ const { projectId } = this.options;
6525
+ const { dashboard_url: dashboardUrl } = await this.apiClient(
6526
+ this.createUrl(WEBHOOKS_DASHBOARD_BASE_PATH, {
6527
+ projectId
6528
+ })
6529
+ );
6530
+ if (!dashboardUrl) {
6531
+ throw new Error("Webhooks are not activated for this project");
6532
+ }
6533
+ const key = dashboardUrl.split("key=")[1];
6534
+ if (!key) {
6535
+ throw new Error("Failed to get webhooks token");
6536
+ }
6537
+ const keySchema = z.object({
6538
+ appId: z.string(),
6539
+ oneTimeToken: z.string(),
6540
+ region: z.enum(["us", "eu"])
6541
+ });
6542
+ const { appId, oneTimeToken, region } = keySchema.parse(JSON.parse(atob(key)));
6543
+ const tokenSchema = z.object({
6544
+ token: z.string()
6545
+ });
6546
+ const tokenResponse = await fetch(`https://api.${region}.svix.com/api/v1/auth/one-time-token`, {
6547
+ method: "POST",
6548
+ body: JSON.stringify({
6549
+ oneTimeToken
6550
+ }),
6551
+ headers: {
6552
+ "content-type": "application/json"
6553
+ }
6554
+ });
6555
+ const tokenData = await tokenResponse.json();
6556
+ const { token: svixToken } = tokenSchema.parse(tokenData);
6557
+ return {
6558
+ appId,
6559
+ token: svixToken
6560
+ };
6561
+ }
6562
+ async get() {
6563
+ const webhooksAPIQueue = new PQueue3({ concurrency: 10 });
6564
+ const { appId, token } = await this.getToken();
6565
+ const svix = new Svix(token);
6566
+ const getEndpoints = async ({
6567
+ iterator,
6568
+ endpoints: endpoints2 = []
6569
+ } = {
6570
+ endpoints: []
6571
+ }) => {
6572
+ const {
6573
+ data,
6574
+ done,
6575
+ iterator: nextIterator
6576
+ } = await webhooksAPIQueue.add(
6577
+ async () => svix.endpoint.list(appId, {
6578
+ limit: 100,
6579
+ iterator
6580
+ }),
6581
+ {
6582
+ throwOnTimeout: true
6583
+ }
6584
+ );
6585
+ if (!done && nextIterator) {
6586
+ return getEndpoints({
6587
+ iterator: nextIterator,
6588
+ endpoints: [...endpoints2, ...data]
6589
+ });
6590
+ }
6591
+ return [...endpoints2, ...data];
6592
+ };
6593
+ const endpoints = await getEndpoints();
6594
+ return Promise.all(
6595
+ endpoints.map(async (endpoint) => {
6596
+ const headers = await webhooksAPIQueue.add(async () => svix.endpoint.getHeaders(appId, endpoint.id), {
6597
+ throwOnTimeout: true
6598
+ }).catch(() => null);
6599
+ const transformation = await webhooksAPIQueue.add(async () => svix.endpoint.transformationGet(appId, endpoint.id), {
6600
+ throwOnTimeout: true
6601
+ }).catch(() => null);
6602
+ return {
6603
+ endpoint,
6604
+ headers,
6605
+ transformation
6606
+ };
6607
+ })
6608
+ );
6609
+ }
6610
+ async put(webhook) {
6611
+ const { appId, token } = await this.getToken();
6612
+ const svix = new Svix(token);
6613
+ let existingEndpoint = null;
6614
+ try {
6615
+ existingEndpoint = await svix.endpoint.get(appId, webhook.endpoint.id);
6616
+ } catch {
6617
+ }
6618
+ if (existingEndpoint) {
6619
+ existingEndpoint = await svix.endpoint.patch(appId, webhook.endpoint.id, {
6620
+ ...webhook.endpoint,
6621
+ uid: existingEndpoint.uid
6622
+ });
6623
+ } else {
6624
+ existingEndpoint = await svix.endpoint.create(appId, {
6625
+ ...webhook.endpoint,
6626
+ uid: webhook.endpoint.id
6627
+ });
6628
+ }
6629
+ if (webhook.headers) {
6630
+ await svix.endpoint.updateHeaders(appId, existingEndpoint.id, webhook.headers);
6631
+ }
6632
+ if (webhook.transformation) {
6633
+ await svix.endpoint.transformationPartialUpdate(appId, existingEndpoint.id, webhook.transformation);
6634
+ }
6635
+ return existingEndpoint;
6636
+ }
6637
+ async delete(endpointId) {
6638
+ const { appId, token } = await this.getToken();
6639
+ const svix = new Svix(token);
6640
+ await svix.endpoint.delete(appId, endpointId);
6641
+ }
6642
+ };
6643
+
6644
+ // src/commands/canvas/commands/webhook/_util.ts
6645
+ var selectIdentifier7 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
6646
+ var selectDisplayName7 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
6647
+ var getWebhooksClient = (options) => new WebhooksClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6648
+ var compareWebhooks = (source, target) => {
6649
+ const { endpoint: sourceEndpoint, ...sourceWithoutEndpoint } = source.object;
6650
+ const { endpoint: targetEndpoint, ...targetWithoutEndpoint } = target.object;
6651
+ const {
6652
+ id: sourceId,
6653
+ uid: sourceUid,
6654
+ version: sourceVersion,
6655
+ createdAt: sourceCreatedAt,
6656
+ updatedAt: sourceUpdatedAt,
6657
+ ...sourceToCompare
6658
+ } = sourceEndpoint;
6659
+ const {
6660
+ id: targetId,
6661
+ uid: targetUid,
6662
+ version: targetVersion,
6663
+ createdAt: targetCreatedAt,
6664
+ updatedAt: targetUpdatedAt,
6665
+ ...targetToCompare
6666
+ } = targetEndpoint;
6667
+ return serializedDequal(
6668
+ { ...sourceWithoutEndpoint, endpoint: sourceToCompare },
6669
+ { ...targetWithoutEndpoint, endpoint: targetToCompare }
6670
+ );
6671
+ };
6672
+
6673
+ // src/commands/canvas/webhookEngineDataSource.ts
6674
+ function createWebhookEngineDataSource({
6675
+ client
6676
+ }) {
6677
+ async function* getObjects() {
6678
+ const webhooks = await client.get();
6679
+ for await (const webhook of webhooks) {
6680
+ const result = {
6681
+ id: selectIdentifier7(webhook),
6682
+ displayName: selectDisplayName7(webhook),
6683
+ providerId: webhook.endpoint.id,
6684
+ object: webhook
6685
+ };
6686
+ yield result;
6687
+ }
6688
+ }
6689
+ return {
6690
+ name: "Uniform API",
6691
+ objects: getObjects(),
6692
+ deleteObject: async (providerId) => {
6693
+ await client.delete(providerId);
6694
+ },
6695
+ writeObject: async (object) => {
6696
+ await client.put(object.object);
6697
+ }
6698
+ };
6699
+ }
6700
+
6701
+ // src/commands/canvas/commands/webhook/pull.ts
6702
+ var WebhookPullModule = {
6703
+ command: "pull <directory>",
6704
+ describe: "Pulls all webhooks to local files in a directory",
6705
+ builder: (yargs36) => withConfiguration(
6706
+ withApiOptions(
6707
+ withDebugOptions(
6708
+ withProjectOptions(
6709
+ withDiffOptions(
6710
+ yargs36.positional("directory", {
6711
+ describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6712
+ type: "string"
6713
+ }).option("format", {
6714
+ alias: ["f"],
6715
+ describe: "Output format",
6716
+ default: "yaml",
6717
+ choices: ["yaml", "json"],
6718
+ type: "string"
6719
+ }).option("mode", {
6720
+ alias: ["m"],
6721
+ describe: 'What kind of changes can be made. "create" = create new files, update nothing. "createOrUpdate" = create new files, update existing, delete nothing. "mirror" = create, update, and delete to mirror state',
6722
+ choices: ["create", "createOrUpdate", "mirror"],
6723
+ default: "mirror",
6724
+ type: "string"
6725
+ })
6726
+ )
6727
+ )
6728
+ )
6729
+ )
6730
+ ),
6731
+ handler: async ({
6732
+ apiHost,
6733
+ apiKey,
6734
+ proxy,
6735
+ directory,
6736
+ format,
6737
+ mode,
6738
+ whatIf,
6739
+ project: projectId,
6740
+ diff: diffMode,
6741
+ allowEmptySource,
6742
+ verbose
6743
+ }) => {
6744
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6745
+ const client = getWebhooksClient({ apiKey, apiHost, fetch: fetch2, projectId });
6746
+ const source = createWebhookEngineDataSource({ client });
6747
+ let target;
6748
+ const isPackage = isPathAPackageFile(directory);
6749
+ if (isPackage) {
6750
+ const packageContents = readCanvasPackage(directory, false, verbose);
6751
+ target = await createArraySyncEngineDataSource({
6752
+ name: `Package file ${directory}`,
6753
+ objects: packageContents.webhooks ?? [],
6754
+ selectIdentifier: selectIdentifier7,
6755
+ selectDisplayName: selectDisplayName7,
6756
+ onSyncComplete: async (_, synced) => {
6757
+ packageContents.webhooks = synced;
6758
+ writeCanvasPackage(directory, packageContents);
6759
+ }
6760
+ });
6761
+ } else {
6762
+ target = await createFileSyncEngineDataSource({
6763
+ directory,
6764
+ selectIdentifier: selectIdentifier7,
6765
+ selectDisplayName: selectDisplayName7,
6766
+ format,
6767
+ verbose
6768
+ });
6769
+ }
6770
+ await syncEngine({
6771
+ source,
6772
+ target,
6773
+ mode,
6774
+ whatIf,
6775
+ allowEmptySource: allowEmptySource ?? true,
6776
+ log: createSyncEngineConsoleLogger({ diffMode }),
6777
+ compareContents: compareWebhooks
6778
+ });
6779
+ }
6780
+ };
6781
+
6782
+ // src/commands/canvas/commands/webhook/push.ts
6783
+ var WebhookPushModule = {
6784
+ command: "push <directory>",
6785
+ describe: "Pushes all webhooks from files in a directory to Uniform Canvas",
6786
+ builder: (yargs36) => withConfiguration(
6787
+ withDebugOptions(
6788
+ withApiOptions(
6789
+ withProjectOptions(
6790
+ withDiffOptions(
6791
+ yargs36.positional("directory", {
6792
+ describe: "Directory to read from. If a filename is used, a package will be read instead.",
6793
+ type: "string"
6794
+ }).option("mode", {
6795
+ alias: ["m"],
6796
+ describe: 'What kind of changes can be made. "create" = create new, update nothing. "createOrUpdate" = create new, update existing, delete nothing. "mirror" = create, update, and delete',
6797
+ choices: ["create", "createOrUpdate", "mirror"],
6798
+ default: "mirror",
6799
+ type: "string"
6800
+ })
6801
+ )
6802
+ )
6803
+ )
6804
+ )
6805
+ ),
6806
+ handler: async ({
6807
+ apiHost,
6808
+ apiKey,
6809
+ proxy,
6810
+ directory,
6811
+ mode,
6812
+ whatIf,
6813
+ project: projectId,
6814
+ diff: diffMode,
6815
+ allowEmptySource,
6816
+ verbose
6817
+ }) => {
6818
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6819
+ const client = getWebhooksClient({ apiKey, apiHost, fetch: fetch2, projectId });
6820
+ let source;
6821
+ const isPackage = isPathAPackageFile(directory);
6822
+ if (isPackage) {
6823
+ const packageContents = readCanvasPackage(directory, true, verbose);
6824
+ source = await createArraySyncEngineDataSource({
6825
+ name: `Package file ${directory}`,
6826
+ objects: packageContents.webhooks ?? [],
6827
+ selectIdentifier: selectIdentifier7,
6828
+ selectDisplayName: selectDisplayName7
6829
+ });
6830
+ } else {
6831
+ source = await createFileSyncEngineDataSource({
6832
+ directory,
6833
+ selectIdentifier: selectIdentifier7,
6834
+ selectDisplayName: selectDisplayName7,
6835
+ verbose
6836
+ });
6837
+ }
6838
+ const target = createWebhookEngineDataSource({ client });
6839
+ await syncEngine({
6840
+ source,
6841
+ target,
6842
+ mode,
6843
+ whatIf,
6844
+ allowEmptySource,
6845
+ log: createSyncEngineConsoleLogger({ diffMode }),
6846
+ compareContents: compareWebhooks
6847
+ });
6848
+ }
6849
+ };
6850
+
6851
+ // src/commands/canvas/commands/webhooks.ts
6852
+ var WebhookModule = {
6853
+ command: "webhook <command>",
6854
+ aliases: ["wh"],
6855
+ describe: "Commands for Canvas webhooks",
6856
+ builder: (yargs36) => yargs36.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
6857
+ handler: () => {
6858
+ yargs16.help();
6859
+ }
6860
+ };
6861
+
6862
+ // src/commands/canvas/commands/workflow.ts
6863
+ import yargs17 from "yargs";
6864
+
6513
6865
  // src/commands/canvas/commands/workflow/_util.ts
6514
6866
  import { WorkflowClient } from "@uniformdev/canvas";
6515
- var selectIdentifier7 = (workflow) => workflow.id;
6516
- var selectDisplayName7 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
6867
+ var selectIdentifier8 = (workflow) => workflow.id;
6868
+ var selectDisplayName8 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
6517
6869
  var getWorkflowClient = (options) => new WorkflowClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6518
6870
 
6519
6871
  // src/commands/canvas/workflowEngineDataSource.ts
@@ -6527,8 +6879,8 @@ function createWorkflowEngineDataSource({
6527
6879
  for await (const workflow of workflows) {
6528
6880
  const { modified, modifiedBy, created, createdBy, ...workflowWithoutStatistics } = workflow;
6529
6881
  const result = {
6530
- id: selectIdentifier7(workflow),
6531
- displayName: selectDisplayName7(workflow),
6882
+ id: selectIdentifier8(workflow),
6883
+ displayName: selectDisplayName8(workflow),
6532
6884
  providerId: workflow.id,
6533
6885
  object: workflowWithoutStatistics
6534
6886
  };
@@ -6551,12 +6903,12 @@ function createWorkflowEngineDataSource({
6551
6903
  var WorkflowPullModule = {
6552
6904
  command: "pull <directory>",
6553
6905
  describe: "Pulls all workflows to local files in a directory",
6554
- builder: (yargs35) => withConfiguration(
6906
+ builder: (yargs36) => withConfiguration(
6555
6907
  withApiOptions(
6556
6908
  withDebugOptions(
6557
6909
  withProjectOptions(
6558
6910
  withDiffOptions(
6559
- yargs35.positional("directory", {
6911
+ yargs36.positional("directory", {
6560
6912
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6561
6913
  type: "string"
6562
6914
  }).option("format", {
@@ -6600,8 +6952,8 @@ var WorkflowPullModule = {
6600
6952
  target = await createArraySyncEngineDataSource({
6601
6953
  name: `Package file ${directory}`,
6602
6954
  objects: packageContents.workflows ?? [],
6603
- selectIdentifier: selectIdentifier7,
6604
- selectDisplayName: selectDisplayName7,
6955
+ selectIdentifier: selectIdentifier8,
6956
+ selectDisplayName: selectDisplayName8,
6605
6957
  onSyncComplete: async (_, synced) => {
6606
6958
  packageContents.workflows = synced;
6607
6959
  writeCanvasPackage(directory, packageContents);
@@ -6610,8 +6962,8 @@ var WorkflowPullModule = {
6610
6962
  } else {
6611
6963
  target = await createFileSyncEngineDataSource({
6612
6964
  directory,
6613
- selectIdentifier: selectIdentifier7,
6614
- selectDisplayName: selectDisplayName7,
6965
+ selectIdentifier: selectIdentifier8,
6966
+ selectDisplayName: selectDisplayName8,
6615
6967
  format,
6616
6968
  verbose
6617
6969
  });
@@ -6631,12 +6983,12 @@ var WorkflowPullModule = {
6631
6983
  var WorkflowPushModule = {
6632
6984
  command: "push <directory>",
6633
6985
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
6634
- builder: (yargs35) => withConfiguration(
6986
+ builder: (yargs36) => withConfiguration(
6635
6987
  withDebugOptions(
6636
6988
  withApiOptions(
6637
6989
  withProjectOptions(
6638
6990
  withDiffOptions(
6639
- yargs35.positional("directory", {
6991
+ yargs36.positional("directory", {
6640
6992
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
6641
6993
  type: "string"
6642
6994
  }).option("mode", {
@@ -6672,14 +7024,14 @@ var WorkflowPushModule = {
6672
7024
  source = await createArraySyncEngineDataSource({
6673
7025
  name: `Package file ${directory}`,
6674
7026
  objects: packageContents.workflows ?? [],
6675
- selectIdentifier: selectIdentifier7,
6676
- selectDisplayName: selectDisplayName7
7027
+ selectIdentifier: selectIdentifier8,
7028
+ selectDisplayName: selectDisplayName8
6677
7029
  });
6678
7030
  } else {
6679
7031
  source = await createFileSyncEngineDataSource({
6680
7032
  directory,
6681
- selectIdentifier: selectIdentifier7,
6682
- selectDisplayName: selectDisplayName7,
7033
+ selectIdentifier: selectIdentifier8,
7034
+ selectDisplayName: selectDisplayName8,
6683
7035
  verbose
6684
7036
  });
6685
7037
  }
@@ -6700,9 +7052,9 @@ var WorkflowModule = {
6700
7052
  command: "workflow <command>",
6701
7053
  aliases: ["wf"],
6702
7054
  describe: "Commands for Canvas workflows",
6703
- builder: (yargs35) => yargs35.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
7055
+ builder: (yargs36) => yargs36.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
6704
7056
  handler: () => {
6705
- yargs16.help();
7057
+ yargs17.help();
6706
7058
  }
6707
7059
  };
6708
7060
 
@@ -6711,33 +7063,33 @@ var CanvasCommand = {
6711
7063
  command: "canvas <command>",
6712
7064
  aliases: ["cv", "pm", "presentation"],
6713
7065
  describe: "Uniform Canvas commands",
6714
- builder: (yargs35) => yargs35.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LocaleModule).command(WorkflowModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
7066
+ builder: (yargs36) => yargs36.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LocaleModule).command(WorkflowModule).command(WebhookModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
6715
7067
  handler: () => {
6716
- yargs17.showHelp();
7068
+ yargs18.showHelp();
6717
7069
  }
6718
7070
  };
6719
7071
 
6720
7072
  // src/commands/context/index.ts
6721
- import yargs24 from "yargs";
7073
+ import yargs25 from "yargs";
6722
7074
 
6723
7075
  // src/commands/context/commands/aggregate.ts
6724
- import yargs18 from "yargs";
7076
+ import yargs19 from "yargs";
6725
7077
 
6726
7078
  // src/commands/context/commands/aggregate/_util.ts
6727
7079
  import { AggregateClient } from "@uniformdev/context/api";
6728
- var selectIdentifier8 = (source) => source.id;
6729
- var selectDisplayName8 = (source) => `${source.name} (pid: ${source.id})`;
7080
+ var selectIdentifier9 = (source) => source.id;
7081
+ var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
6730
7082
  var getAggregateClient = (options) => new AggregateClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6731
7083
 
6732
7084
  // src/commands/context/commands/aggregate/get.ts
6733
7085
  var AggregateGetModule = {
6734
7086
  command: "get <id>",
6735
7087
  describe: "Fetch an aggregate",
6736
- builder: (yargs35) => withConfiguration(
7088
+ builder: (yargs36) => withConfiguration(
6737
7089
  withFormatOptions(
6738
7090
  withApiOptions(
6739
7091
  withProjectOptions(
6740
- yargs35.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
7092
+ yargs36.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
6741
7093
  )
6742
7094
  )
6743
7095
  )
@@ -6760,7 +7112,7 @@ var AggregateListModule = {
6760
7112
  command: "list",
6761
7113
  describe: "List aggregates",
6762
7114
  aliases: ["ls"],
6763
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
7115
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
6764
7116
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6765
7117
  const fetch2 = nodeFetchProxy(proxy);
6766
7118
  const client = getAggregateClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6778,8 +7130,8 @@ function createAggregateEngineDataSource({
6778
7130
  const aggregates = (await client.get({ type })).aggregates;
6779
7131
  for await (const def of aggregates) {
6780
7132
  const result = {
6781
- id: selectIdentifier8(def),
6782
- displayName: selectDisplayName8(def),
7133
+ id: selectIdentifier9(def),
7134
+ displayName: selectDisplayName9(def),
6783
7135
  providerId: def.id,
6784
7136
  object: def
6785
7137
  };
@@ -6823,12 +7175,12 @@ function writeContextPackage(filename, packageContents) {
6823
7175
  var AggregatePullModule = {
6824
7176
  command: "pull <directory>",
6825
7177
  describe: "Pulls all aggregates to local files in a directory",
6826
- builder: (yargs35) => withConfiguration(
7178
+ builder: (yargs36) => withConfiguration(
6827
7179
  withApiOptions(
6828
7180
  withDebugOptions(
6829
7181
  withProjectOptions(
6830
7182
  withDiffOptions(
6831
- yargs35.positional("directory", {
7183
+ yargs36.positional("directory", {
6832
7184
  describe: "Directory to save the aggregates to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6833
7185
  type: "string"
6834
7186
  }).option("format", {
@@ -6872,8 +7224,8 @@ var AggregatePullModule = {
6872
7224
  target = await createArraySyncEngineDataSource({
6873
7225
  name: `Package file ${directory}`,
6874
7226
  objects: packageContents.aggregates ?? [],
6875
- selectIdentifier: selectIdentifier8,
6876
- selectDisplayName: selectDisplayName8,
7227
+ selectIdentifier: selectIdentifier9,
7228
+ selectDisplayName: selectDisplayName9,
6877
7229
  onSyncComplete: async (_, synced) => {
6878
7230
  packageContents.aggregates = synced;
6879
7231
  writeContextPackage(directory, packageContents);
@@ -6882,8 +7234,8 @@ var AggregatePullModule = {
6882
7234
  } else {
6883
7235
  target = await createFileSyncEngineDataSource({
6884
7236
  directory,
6885
- selectIdentifier: selectIdentifier8,
6886
- selectDisplayName: selectDisplayName8,
7237
+ selectIdentifier: selectIdentifier9,
7238
+ selectDisplayName: selectDisplayName9,
6887
7239
  format,
6888
7240
  verbose
6889
7241
  });
@@ -6903,12 +7255,12 @@ var AggregatePullModule = {
6903
7255
  var AggregatePushModule = {
6904
7256
  command: "push <directory>",
6905
7257
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
6906
- builder: (yargs35) => withConfiguration(
7258
+ builder: (yargs36) => withConfiguration(
6907
7259
  withApiOptions(
6908
7260
  withProjectOptions(
6909
7261
  withDiffOptions(
6910
7262
  withDebugOptions(
6911
- yargs35.positional("directory", {
7263
+ yargs36.positional("directory", {
6912
7264
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
6913
7265
  type: "string"
6914
7266
  }).option("mode", {
@@ -6944,14 +7296,14 @@ var AggregatePushModule = {
6944
7296
  source = await createArraySyncEngineDataSource({
6945
7297
  name: `Package file ${directory}`,
6946
7298
  objects: packageContents.aggregates ?? [],
6947
- selectIdentifier: selectIdentifier8,
6948
- selectDisplayName: selectDisplayName8
7299
+ selectIdentifier: selectIdentifier9,
7300
+ selectDisplayName: selectDisplayName9
6949
7301
  });
6950
7302
  } else {
6951
7303
  source = await createFileSyncEngineDataSource({
6952
7304
  directory,
6953
- selectIdentifier: selectIdentifier8,
6954
- selectDisplayName: selectDisplayName8,
7305
+ selectIdentifier: selectIdentifier9,
7306
+ selectDisplayName: selectDisplayName9,
6955
7307
  verbose
6956
7308
  });
6957
7309
  }
@@ -6973,10 +7325,10 @@ var AggregateRemoveModule = {
6973
7325
  command: "remove <id>",
6974
7326
  aliases: ["delete", "rm"],
6975
7327
  describe: "Delete an aggregate",
6976
- builder: (yargs35) => withConfiguration(
7328
+ builder: (yargs36) => withConfiguration(
6977
7329
  withApiOptions(
6978
7330
  withProjectOptions(
6979
- yargs35.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
7331
+ yargs36.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
6980
7332
  )
6981
7333
  )
6982
7334
  ),
@@ -6992,10 +7344,10 @@ var AggregateUpdateModule = {
6992
7344
  command: "update <filename>",
6993
7345
  aliases: ["put"],
6994
7346
  describe: "Insert or update an aggregate",
6995
- builder: (yargs35) => withConfiguration(
7347
+ builder: (yargs36) => withConfiguration(
6996
7348
  withApiOptions(
6997
7349
  withProjectOptions(
6998
- yargs35.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
7350
+ yargs36.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
6999
7351
  )
7000
7352
  )
7001
7353
  ),
@@ -7012,19 +7364,19 @@ var AggregateModule = {
7012
7364
  command: "aggregate <command>",
7013
7365
  aliases: ["agg", "intent", "audience"],
7014
7366
  describe: "Commands for Context aggregates (intents, audiences)",
7015
- builder: (yargs35) => yargs35.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
7367
+ builder: (yargs36) => yargs36.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
7016
7368
  handler: () => {
7017
- yargs18.help();
7369
+ yargs19.help();
7018
7370
  }
7019
7371
  };
7020
7372
 
7021
7373
  // src/commands/context/commands/enrichment.ts
7022
- import yargs19 from "yargs";
7374
+ import yargs20 from "yargs";
7023
7375
 
7024
7376
  // src/commands/context/commands/enrichment/_util.ts
7025
7377
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
7026
- var selectIdentifier9 = (source) => source.id;
7027
- var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
7378
+ var selectIdentifier10 = (source) => source.id;
7379
+ var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
7028
7380
  function getEnrichmentClient(options) {
7029
7381
  return new UncachedEnrichmentClient({ ...options, limitPolicy: cliLimitPolicy });
7030
7382
  }
@@ -7033,11 +7385,11 @@ function getEnrichmentClient(options) {
7033
7385
  var EnrichmentGetModule = {
7034
7386
  command: "get <id>",
7035
7387
  describe: "Fetch an enrichment category and its values",
7036
- builder: (yargs35) => withFormatOptions(
7388
+ builder: (yargs36) => withFormatOptions(
7037
7389
  withConfiguration(
7038
7390
  withApiOptions(
7039
7391
  withProjectOptions(
7040
- yargs35.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
7392
+ yargs36.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
7041
7393
  )
7042
7394
  )
7043
7395
  )
@@ -7060,7 +7412,7 @@ var EnrichmentListModule = {
7060
7412
  command: "list",
7061
7413
  describe: "List enrichments",
7062
7414
  aliases: ["ls"],
7063
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
7415
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
7064
7416
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
7065
7417
  const fetch2 = nodeFetchProxy(proxy);
7066
7418
  const client = getEnrichmentClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -7077,8 +7429,8 @@ function createEnrichmentEngineDataSource({
7077
7429
  const enrichments = (await client.get()).enrichments;
7078
7430
  for await (const def of enrichments) {
7079
7431
  const result = {
7080
- id: selectIdentifier9(def),
7081
- displayName: selectDisplayName9(def),
7432
+ id: selectIdentifier10(def),
7433
+ displayName: selectDisplayName10(def),
7082
7434
  providerId: def.id,
7083
7435
  object: def
7084
7436
  };
@@ -7155,12 +7507,12 @@ var createEnrichmentValueEngineDataSource = ({
7155
7507
  var EnrichmentPullModule = {
7156
7508
  command: "pull <directory>",
7157
7509
  describe: "Pulls all enrichments to local files in a directory",
7158
- builder: (yargs35) => withConfiguration(
7510
+ builder: (yargs36) => withConfiguration(
7159
7511
  withDebugOptions(
7160
7512
  withApiOptions(
7161
7513
  withProjectOptions(
7162
7514
  withDiffOptions(
7163
- yargs35.positional("directory", {
7515
+ yargs36.positional("directory", {
7164
7516
  describe: "Directory to save the enrichments to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
7165
7517
  type: "string"
7166
7518
  }).option("format", {
@@ -7204,8 +7556,8 @@ var EnrichmentPullModule = {
7204
7556
  target = await createArraySyncEngineDataSource({
7205
7557
  name: `Package file ${directory}`,
7206
7558
  objects: packageContents.enrichments ?? [],
7207
- selectIdentifier: selectIdentifier9,
7208
- selectDisplayName: selectDisplayName9,
7559
+ selectIdentifier: selectIdentifier10,
7560
+ selectDisplayName: selectDisplayName10,
7209
7561
  onSyncComplete: async (_, synced) => {
7210
7562
  packageContents.enrichments = synced;
7211
7563
  writeContextPackage(directory, packageContents);
@@ -7214,8 +7566,8 @@ var EnrichmentPullModule = {
7214
7566
  } else {
7215
7567
  target = await createFileSyncEngineDataSource({
7216
7568
  directory,
7217
- selectIdentifier: selectIdentifier9,
7218
- selectDisplayName: selectDisplayName9,
7569
+ selectIdentifier: selectIdentifier10,
7570
+ selectDisplayName: selectDisplayName10,
7219
7571
  format,
7220
7572
  verbose
7221
7573
  });
@@ -7235,11 +7587,11 @@ var EnrichmentPullModule = {
7235
7587
  var EnrichmentPushModule = {
7236
7588
  command: "push <directory>",
7237
7589
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
7238
- builder: (yargs35) => withConfiguration(
7590
+ builder: (yargs36) => withConfiguration(
7239
7591
  withApiOptions(
7240
7592
  withProjectOptions(
7241
7593
  withDiffOptions(
7242
- yargs35.positional("directory", {
7594
+ yargs36.positional("directory", {
7243
7595
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
7244
7596
  type: "string"
7245
7597
  }).option("mode", {
@@ -7274,14 +7626,14 @@ var EnrichmentPushModule = {
7274
7626
  source = await createArraySyncEngineDataSource({
7275
7627
  name: `Package file ${directory}`,
7276
7628
  objects: packageContents.enrichments ?? [],
7277
- selectIdentifier: selectIdentifier9,
7278
- selectDisplayName: selectDisplayName9
7629
+ selectIdentifier: selectIdentifier10,
7630
+ selectDisplayName: selectDisplayName10
7279
7631
  });
7280
7632
  } else {
7281
7633
  source = await createFileSyncEngineDataSource({
7282
7634
  directory,
7283
- selectIdentifier: selectIdentifier9,
7284
- selectDisplayName: selectDisplayName9,
7635
+ selectIdentifier: selectIdentifier10,
7636
+ selectDisplayName: selectDisplayName10,
7285
7637
  verbose
7286
7638
  });
7287
7639
  }
@@ -7302,10 +7654,10 @@ var EnrichmentRemoveModule = {
7302
7654
  command: "remove <id>",
7303
7655
  aliases: ["delete", "rm"],
7304
7656
  describe: "Delete an enrichment category and its values",
7305
- builder: (yargs35) => withConfiguration(
7657
+ builder: (yargs36) => withConfiguration(
7306
7658
  withApiOptions(
7307
7659
  withProjectOptions(
7308
- yargs35.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
7660
+ yargs36.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
7309
7661
  )
7310
7662
  )
7311
7663
  ),
@@ -7321,14 +7673,14 @@ var EnrichmentModule = {
7321
7673
  command: "enrichment <command>",
7322
7674
  aliases: ["enr"],
7323
7675
  describe: "Commands for Context enrichments",
7324
- builder: (yargs35) => yargs35.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
7676
+ builder: (yargs36) => yargs36.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
7325
7677
  handler: () => {
7326
- yargs19.help();
7678
+ yargs20.help();
7327
7679
  }
7328
7680
  };
7329
7681
 
7330
7682
  // src/commands/context/commands/manifest.ts
7331
- import yargs20 from "yargs";
7683
+ import yargs21 from "yargs";
7332
7684
 
7333
7685
  // src/commands/context/commands/manifest/get.ts
7334
7686
  import { ApiClientError as ApiClientError2, UncachedManifestClient } from "@uniformdev/context/api";
@@ -7339,10 +7691,10 @@ var ManifestGetModule = {
7339
7691
  command: "get [output]",
7340
7692
  aliases: ["dl", "download"],
7341
7693
  describe: "Download the Uniform Context manifest for a project",
7342
- builder: (yargs35) => withConfiguration(
7694
+ builder: (yargs36) => withConfiguration(
7343
7695
  withApiOptions(
7344
7696
  withProjectOptions(
7345
- yargs35.option("preview", {
7697
+ yargs36.option("preview", {
7346
7698
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
7347
7699
  default: false,
7348
7700
  type: "boolean",
@@ -7404,7 +7756,7 @@ import { exit as exit2 } from "process";
7404
7756
  var ManifestPublishModule = {
7405
7757
  command: "publish",
7406
7758
  describe: "Publish the Uniform Context manifest for a project",
7407
- builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(yargs35))),
7759
+ builder: (yargs36) => withConfiguration(withApiOptions(withProjectOptions(yargs36))),
7408
7760
  handler: async ({ apiKey, apiHost, proxy, project }) => {
7409
7761
  const fetch2 = nodeFetchProxy(proxy);
7410
7762
  try {
@@ -7437,25 +7789,25 @@ var ManifestModule = {
7437
7789
  command: "manifest <command>",
7438
7790
  describe: "Commands for context manifests",
7439
7791
  aliases: ["man"],
7440
- builder: (yargs35) => yargs35.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
7792
+ builder: (yargs36) => yargs36.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
7441
7793
  handler: () => {
7442
- yargs20.help();
7794
+ yargs21.help();
7443
7795
  }
7444
7796
  };
7445
7797
 
7446
7798
  // src/commands/context/commands/quirk.ts
7447
- import yargs21 from "yargs";
7799
+ import yargs22 from "yargs";
7448
7800
 
7449
7801
  // src/commands/context/commands/quirk/get.ts
7450
7802
  import { UncachedQuirkClient } from "@uniformdev/context/api";
7451
7803
  var QuirkGetModule = {
7452
7804
  command: "get <id>",
7453
7805
  describe: "Fetch a quirk",
7454
- builder: (yargs35) => withConfiguration(
7806
+ builder: (yargs36) => withConfiguration(
7455
7807
  withFormatOptions(
7456
7808
  withApiOptions(
7457
7809
  withProjectOptions(
7458
- yargs35.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
7810
+ yargs36.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
7459
7811
  )
7460
7812
  )
7461
7813
  )
@@ -7479,11 +7831,11 @@ var QuirkListModule = {
7479
7831
  command: "list",
7480
7832
  describe: "List quirks",
7481
7833
  aliases: ["ls"],
7482
- builder: (yargs35) => withConfiguration(
7834
+ builder: (yargs36) => withConfiguration(
7483
7835
  withFormatOptions(
7484
7836
  withApiOptions(
7485
7837
  withProjectOptions(
7486
- yargs35.option("withIntegrations", {
7838
+ yargs36.option("withIntegrations", {
7487
7839
  alias: ["i"],
7488
7840
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
7489
7841
  type: "boolean"
@@ -7504,8 +7856,8 @@ var QuirkListModule = {
7504
7856
  import { UncachedQuirkClient as UncachedQuirkClient3 } from "@uniformdev/context/api";
7505
7857
 
7506
7858
  // src/commands/context/commands/quirk/_util.ts
7507
- var selectIdentifier10 = (source) => source.id;
7508
- var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
7859
+ var selectIdentifier11 = (source) => source.id;
7860
+ var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
7509
7861
 
7510
7862
  // src/commands/context/quirkEngineDataSource.ts
7511
7863
  function createQuirkEngineDataSource({
@@ -7515,8 +7867,8 @@ function createQuirkEngineDataSource({
7515
7867
  const quirks = (await client.get({ withIntegrations: false })).quirks;
7516
7868
  for await (const def of quirks) {
7517
7869
  const result = {
7518
- id: selectIdentifier10(def),
7519
- displayName: selectDisplayName10(def),
7870
+ id: selectIdentifier11(def),
7871
+ displayName: selectDisplayName11(def),
7520
7872
  providerId: def.id,
7521
7873
  object: def
7522
7874
  };
@@ -7541,12 +7893,12 @@ function createQuirkEngineDataSource({
7541
7893
  var QuirkPullModule = {
7542
7894
  command: "pull <directory>",
7543
7895
  describe: "Pulls all quirks to local files in a directory",
7544
- builder: (yargs35) => withConfiguration(
7896
+ builder: (yargs36) => withConfiguration(
7545
7897
  withDebugOptions(
7546
7898
  withApiOptions(
7547
7899
  withProjectOptions(
7548
7900
  withDiffOptions(
7549
- yargs35.positional("directory", {
7901
+ yargs36.positional("directory", {
7550
7902
  describe: "Directory to save the quirks to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
7551
7903
  type: "string"
7552
7904
  }).option("format", {
@@ -7590,8 +7942,8 @@ var QuirkPullModule = {
7590
7942
  target = await createArraySyncEngineDataSource({
7591
7943
  name: `Package file ${directory}`,
7592
7944
  objects: packageContents.quirks ?? [],
7593
- selectIdentifier: selectIdentifier10,
7594
- selectDisplayName: selectDisplayName10,
7945
+ selectIdentifier: selectIdentifier11,
7946
+ selectDisplayName: selectDisplayName11,
7595
7947
  onSyncComplete: async (_, synced) => {
7596
7948
  packageContents.quirks = synced;
7597
7949
  writeContextPackage(directory, packageContents);
@@ -7600,8 +7952,8 @@ var QuirkPullModule = {
7600
7952
  } else {
7601
7953
  target = await createFileSyncEngineDataSource({
7602
7954
  directory,
7603
- selectIdentifier: selectIdentifier10,
7604
- selectDisplayName: selectDisplayName10,
7955
+ selectIdentifier: selectIdentifier11,
7956
+ selectDisplayName: selectDisplayName11,
7605
7957
  format,
7606
7958
  verbose
7607
7959
  });
@@ -7622,12 +7974,12 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
7622
7974
  var QuirkPushModule = {
7623
7975
  command: "push <directory>",
7624
7976
  describe: "Pushes all quirks from files in a directory or package to Uniform",
7625
- builder: (yargs35) => withConfiguration(
7977
+ builder: (yargs36) => withConfiguration(
7626
7978
  withDebugOptions(
7627
7979
  withApiOptions(
7628
7980
  withProjectOptions(
7629
7981
  withDiffOptions(
7630
- yargs35.positional("directory", {
7982
+ yargs36.positional("directory", {
7631
7983
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
7632
7984
  type: "string"
7633
7985
  }).option("mode", {
@@ -7663,14 +8015,14 @@ var QuirkPushModule = {
7663
8015
  source = await createArraySyncEngineDataSource({
7664
8016
  name: `Package file ${directory}`,
7665
8017
  objects: packageContents.quirks ?? [],
7666
- selectIdentifier: selectIdentifier10,
7667
- selectDisplayName: selectDisplayName10
8018
+ selectIdentifier: selectIdentifier11,
8019
+ selectDisplayName: selectDisplayName11
7668
8020
  });
7669
8021
  } else {
7670
8022
  source = await createFileSyncEngineDataSource({
7671
8023
  directory,
7672
- selectIdentifier: selectIdentifier10,
7673
- selectDisplayName: selectDisplayName10,
8024
+ selectIdentifier: selectIdentifier11,
8025
+ selectDisplayName: selectDisplayName11,
7674
8026
  verbose
7675
8027
  });
7676
8028
  }
@@ -7692,10 +8044,10 @@ var QuirkRemoveModule = {
7692
8044
  command: "remove <id>",
7693
8045
  aliases: ["delete", "rm"],
7694
8046
  describe: "Delete a quirk",
7695
- builder: (yargs35) => withConfiguration(
8047
+ builder: (yargs36) => withConfiguration(
7696
8048
  withApiOptions(
7697
8049
  withProjectOptions(
7698
- yargs35.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
8050
+ yargs36.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
7699
8051
  )
7700
8052
  )
7701
8053
  ),
@@ -7712,10 +8064,10 @@ var QuirkUpdateModule = {
7712
8064
  command: "update <filename>",
7713
8065
  aliases: ["put"],
7714
8066
  describe: "Insert or update a quirk",
7715
- builder: (yargs35) => withConfiguration(
8067
+ builder: (yargs36) => withConfiguration(
7716
8068
  withApiOptions(
7717
8069
  withProjectOptions(
7718
- yargs35.positional("filename", { demandOption: true, describe: "Quirk file to put" })
8070
+ yargs36.positional("filename", { demandOption: true, describe: "Quirk file to put" })
7719
8071
  )
7720
8072
  )
7721
8073
  ),
@@ -7732,25 +8084,25 @@ var QuirkModule = {
7732
8084
  command: "quirk <command>",
7733
8085
  aliases: ["qk"],
7734
8086
  describe: "Commands for Context quirks",
7735
- builder: (yargs35) => yargs35.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
8087
+ builder: (yargs36) => yargs36.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
7736
8088
  handler: () => {
7737
- yargs21.help();
8089
+ yargs22.help();
7738
8090
  }
7739
8091
  };
7740
8092
 
7741
8093
  // src/commands/context/commands/signal.ts
7742
- import yargs22 from "yargs";
8094
+ import yargs23 from "yargs";
7743
8095
 
7744
8096
  // src/commands/context/commands/signal/get.ts
7745
8097
  import { UncachedSignalClient } from "@uniformdev/context/api";
7746
8098
  var SignalGetModule = {
7747
8099
  command: "get <id>",
7748
8100
  describe: "Fetch a signal",
7749
- builder: (yargs35) => withConfiguration(
8101
+ builder: (yargs36) => withConfiguration(
7750
8102
  withFormatOptions(
7751
8103
  withApiOptions(
7752
8104
  withProjectOptions(
7753
- yargs35.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
8105
+ yargs36.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
7754
8106
  )
7755
8107
  )
7756
8108
  )
@@ -7774,7 +8126,7 @@ var SignalListModule = {
7774
8126
  command: "list",
7775
8127
  describe: "List signals",
7776
8128
  aliases: ["ls"],
7777
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
8129
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
7778
8130
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
7779
8131
  const fetch2 = nodeFetchProxy(proxy);
7780
8132
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -7787,8 +8139,8 @@ var SignalListModule = {
7787
8139
  import { UncachedSignalClient as UncachedSignalClient3 } from "@uniformdev/context/api";
7788
8140
 
7789
8141
  // src/commands/context/commands/signal/_util.ts
7790
- var selectIdentifier11 = (source) => source.id;
7791
- var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
8142
+ var selectIdentifier12 = (source) => source.id;
8143
+ var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
7792
8144
 
7793
8145
  // src/commands/context/signalEngineDataSource.ts
7794
8146
  function createSignalEngineDataSource({
@@ -7798,8 +8150,8 @@ function createSignalEngineDataSource({
7798
8150
  const signals = (await client.get()).signals;
7799
8151
  for await (const def of signals) {
7800
8152
  const result = {
7801
- id: selectIdentifier11(def),
7802
- displayName: selectDisplayName11(def),
8153
+ id: selectIdentifier12(def),
8154
+ displayName: selectDisplayName12(def),
7803
8155
  providerId: def.id,
7804
8156
  object: def
7805
8157
  };
@@ -7824,12 +8176,12 @@ function createSignalEngineDataSource({
7824
8176
  var SignalPullModule = {
7825
8177
  command: "pull <directory>",
7826
8178
  describe: "Pulls all signals to local files in a directory",
7827
- builder: (yargs35) => withConfiguration(
8179
+ builder: (yargs36) => withConfiguration(
7828
8180
  withDebugOptions(
7829
8181
  withApiOptions(
7830
8182
  withProjectOptions(
7831
8183
  withDiffOptions(
7832
- yargs35.positional("directory", {
8184
+ yargs36.positional("directory", {
7833
8185
  describe: "Directory to save the signals to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
7834
8186
  type: "string"
7835
8187
  }).option("format", {
@@ -7873,8 +8225,8 @@ var SignalPullModule = {
7873
8225
  target = await createArraySyncEngineDataSource({
7874
8226
  name: `Package file ${directory}`,
7875
8227
  objects: packageContents.signals ?? [],
7876
- selectIdentifier: selectIdentifier11,
7877
- selectDisplayName: selectDisplayName11,
8228
+ selectIdentifier: selectIdentifier12,
8229
+ selectDisplayName: selectDisplayName12,
7878
8230
  onSyncComplete: async (_, synced) => {
7879
8231
  packageContents.signals = synced;
7880
8232
  writeContextPackage(directory, packageContents);
@@ -7883,8 +8235,8 @@ var SignalPullModule = {
7883
8235
  } else {
7884
8236
  target = await createFileSyncEngineDataSource({
7885
8237
  directory,
7886
- selectIdentifier: selectIdentifier11,
7887
- selectDisplayName: selectDisplayName11,
8238
+ selectIdentifier: selectIdentifier12,
8239
+ selectDisplayName: selectDisplayName12,
7888
8240
  format,
7889
8241
  verbose
7890
8242
  });
@@ -7905,12 +8257,12 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
7905
8257
  var SignalPushModule = {
7906
8258
  command: "push <directory>",
7907
8259
  describe: "Pushes all signals from files in a directory or package to Uniform",
7908
- builder: (yargs35) => withConfiguration(
8260
+ builder: (yargs36) => withConfiguration(
7909
8261
  withDebugOptions(
7910
8262
  withApiOptions(
7911
8263
  withProjectOptions(
7912
8264
  withDiffOptions(
7913
- yargs35.positional("directory", {
8265
+ yargs36.positional("directory", {
7914
8266
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
7915
8267
  type: "string"
7916
8268
  }).option("mode", {
@@ -7946,14 +8298,14 @@ var SignalPushModule = {
7946
8298
  source = await createArraySyncEngineDataSource({
7947
8299
  name: `Package file ${directory}`,
7948
8300
  objects: packageContents.signals ?? [],
7949
- selectIdentifier: selectIdentifier11,
7950
- selectDisplayName: selectDisplayName11
8301
+ selectIdentifier: selectIdentifier12,
8302
+ selectDisplayName: selectDisplayName12
7951
8303
  });
7952
8304
  } else {
7953
8305
  source = await createFileSyncEngineDataSource({
7954
8306
  directory,
7955
- selectIdentifier: selectIdentifier11,
7956
- selectDisplayName: selectDisplayName11,
8307
+ selectIdentifier: selectIdentifier12,
8308
+ selectDisplayName: selectDisplayName12,
7957
8309
  verbose
7958
8310
  });
7959
8311
  }
@@ -7975,10 +8327,10 @@ var SignalRemoveModule = {
7975
8327
  command: "remove <id>",
7976
8328
  aliases: ["delete", "rm"],
7977
8329
  describe: "Delete a signal",
7978
- builder: (yargs35) => withConfiguration(
8330
+ builder: (yargs36) => withConfiguration(
7979
8331
  withApiOptions(
7980
8332
  withProjectOptions(
7981
- yargs35.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
8333
+ yargs36.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
7982
8334
  )
7983
8335
  )
7984
8336
  ),
@@ -7995,10 +8347,10 @@ var SignalUpdateModule = {
7995
8347
  command: "update <filename>",
7996
8348
  aliases: ["put"],
7997
8349
  describe: "Insert or update a signal",
7998
- builder: (yargs35) => withConfiguration(
8350
+ builder: (yargs36) => withConfiguration(
7999
8351
  withApiOptions(
8000
8352
  withProjectOptions(
8001
- yargs35.positional("filename", { demandOption: true, describe: "Signal file to put" })
8353
+ yargs36.positional("filename", { demandOption: true, describe: "Signal file to put" })
8002
8354
  )
8003
8355
  )
8004
8356
  ),
@@ -8015,25 +8367,25 @@ var SignalModule = {
8015
8367
  command: "signal <command>",
8016
8368
  aliases: ["sig"],
8017
8369
  describe: "Commands for Context signals",
8018
- builder: (yargs35) => yargs35.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
8370
+ builder: (yargs36) => yargs36.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
8019
8371
  handler: () => {
8020
- yargs22.help();
8372
+ yargs23.help();
8021
8373
  }
8022
8374
  };
8023
8375
 
8024
8376
  // src/commands/context/commands/test.ts
8025
- import yargs23 from "yargs";
8377
+ import yargs24 from "yargs";
8026
8378
 
8027
8379
  // src/commands/context/commands/test/get.ts
8028
8380
  import { UncachedTestClient } from "@uniformdev/context/api";
8029
8381
  var TestGetModule = {
8030
8382
  command: "get <id>",
8031
8383
  describe: "Fetch a test",
8032
- builder: (yargs35) => withConfiguration(
8384
+ builder: (yargs36) => withConfiguration(
8033
8385
  withFormatOptions(
8034
8386
  withApiOptions(
8035
8387
  withProjectOptions(
8036
- yargs35.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
8388
+ yargs36.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
8037
8389
  )
8038
8390
  )
8039
8391
  )
@@ -8057,7 +8409,7 @@ var TestListModule = {
8057
8409
  command: "list",
8058
8410
  describe: "List tests",
8059
8411
  aliases: ["ls"],
8060
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
8412
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
8061
8413
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8062
8414
  const fetch2 = nodeFetchProxy(proxy);
8063
8415
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -8070,8 +8422,8 @@ var TestListModule = {
8070
8422
  import { UncachedTestClient as UncachedTestClient3 } from "@uniformdev/context/api";
8071
8423
 
8072
8424
  // src/commands/context/commands/test/_util.ts
8073
- var selectIdentifier12 = (source) => source.id;
8074
- var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
8425
+ var selectIdentifier13 = (source) => source.id;
8426
+ var selectDisplayName13 = (source) => `${source.name} (pid: ${source.id})`;
8075
8427
 
8076
8428
  // src/commands/context/testEngineDataSource.ts
8077
8429
  function createTestEngineDataSource({
@@ -8081,8 +8433,8 @@ function createTestEngineDataSource({
8081
8433
  const tests = (await client.get()).tests;
8082
8434
  for await (const def of tests) {
8083
8435
  const result = {
8084
- id: selectIdentifier12(def),
8085
- displayName: selectDisplayName12(def),
8436
+ id: selectIdentifier13(def),
8437
+ displayName: selectDisplayName13(def),
8086
8438
  providerId: def.id,
8087
8439
  object: def
8088
8440
  };
@@ -8107,12 +8459,12 @@ function createTestEngineDataSource({
8107
8459
  var TestPullModule = {
8108
8460
  command: "pull <directory>",
8109
8461
  describe: "Pulls all tests to local files in a directory",
8110
- builder: (yargs35) => withConfiguration(
8462
+ builder: (yargs36) => withConfiguration(
8111
8463
  withDebugOptions(
8112
8464
  withApiOptions(
8113
8465
  withProjectOptions(
8114
8466
  withDiffOptions(
8115
- yargs35.positional("directory", {
8467
+ yargs36.positional("directory", {
8116
8468
  describe: "Directory to save the tests to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8117
8469
  type: "string"
8118
8470
  }).option("format", {
@@ -8156,8 +8508,8 @@ var TestPullModule = {
8156
8508
  target = await createArraySyncEngineDataSource({
8157
8509
  name: `Package file ${directory}`,
8158
8510
  objects: packageContents.tests ?? [],
8159
- selectIdentifier: selectIdentifier12,
8160
- selectDisplayName: selectDisplayName12,
8511
+ selectIdentifier: selectIdentifier13,
8512
+ selectDisplayName: selectDisplayName13,
8161
8513
  onSyncComplete: async (_, synced) => {
8162
8514
  packageContents.tests = synced;
8163
8515
  writeContextPackage(directory, packageContents);
@@ -8166,8 +8518,8 @@ var TestPullModule = {
8166
8518
  } else {
8167
8519
  target = await createFileSyncEngineDataSource({
8168
8520
  directory,
8169
- selectIdentifier: selectIdentifier12,
8170
- selectDisplayName: selectDisplayName12,
8521
+ selectIdentifier: selectIdentifier13,
8522
+ selectDisplayName: selectDisplayName13,
8171
8523
  format,
8172
8524
  verbose
8173
8525
  });
@@ -8188,12 +8540,12 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
8188
8540
  var TestPushModule = {
8189
8541
  command: "push <directory>",
8190
8542
  describe: "Pushes all tests from files in a directory or package to Uniform",
8191
- builder: (yargs35) => withConfiguration(
8543
+ builder: (yargs36) => withConfiguration(
8192
8544
  withDebugOptions(
8193
8545
  withApiOptions(
8194
8546
  withProjectOptions(
8195
8547
  withDiffOptions(
8196
- yargs35.positional("directory", {
8548
+ yargs36.positional("directory", {
8197
8549
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
8198
8550
  type: "string"
8199
8551
  }).option("mode", {
@@ -8229,14 +8581,14 @@ var TestPushModule = {
8229
8581
  source = await createArraySyncEngineDataSource({
8230
8582
  name: `Package file ${directory}`,
8231
8583
  objects: packageContents.tests ?? [],
8232
- selectIdentifier: selectIdentifier12,
8233
- selectDisplayName: selectDisplayName12
8584
+ selectIdentifier: selectIdentifier13,
8585
+ selectDisplayName: selectDisplayName13
8234
8586
  });
8235
8587
  } else {
8236
8588
  source = await createFileSyncEngineDataSource({
8237
8589
  directory,
8238
- selectIdentifier: selectIdentifier12,
8239
- selectDisplayName: selectDisplayName12,
8590
+ selectIdentifier: selectIdentifier13,
8591
+ selectDisplayName: selectDisplayName13,
8240
8592
  verbose
8241
8593
  });
8242
8594
  }
@@ -8258,10 +8610,10 @@ var TestRemoveModule = {
8258
8610
  command: "remove <id>",
8259
8611
  aliases: ["delete", "rm"],
8260
8612
  describe: "Delete a test",
8261
- builder: (yargs35) => withConfiguration(
8613
+ builder: (yargs36) => withConfiguration(
8262
8614
  withApiOptions(
8263
8615
  withProjectOptions(
8264
- yargs35.positional("id", { demandOption: true, describe: "Test public ID to delete" })
8616
+ yargs36.positional("id", { demandOption: true, describe: "Test public ID to delete" })
8265
8617
  )
8266
8618
  )
8267
8619
  ),
@@ -8278,9 +8630,9 @@ var TestUpdateModule = {
8278
8630
  command: "update <filename>",
8279
8631
  aliases: ["put"],
8280
8632
  describe: "Insert or update a test",
8281
- builder: (yargs35) => withConfiguration(
8633
+ builder: (yargs36) => withConfiguration(
8282
8634
  withApiOptions(
8283
- withProjectOptions(yargs35.positional("filename", { demandOption: true, describe: "Test file to put" }))
8635
+ withProjectOptions(yargs36.positional("filename", { demandOption: true, describe: "Test file to put" }))
8284
8636
  )
8285
8637
  ),
8286
8638
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -8295,9 +8647,9 @@ var TestUpdateModule = {
8295
8647
  var TestModule = {
8296
8648
  command: "test <command>",
8297
8649
  describe: "Commands for Context A/B tests",
8298
- builder: (yargs35) => yargs35.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
8650
+ builder: (yargs36) => yargs36.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
8299
8651
  handler: () => {
8300
- yargs23.help();
8652
+ yargs24.help();
8301
8653
  }
8302
8654
  };
8303
8655
 
@@ -8306,29 +8658,29 @@ var ContextCommand = {
8306
8658
  command: "context <command>",
8307
8659
  aliases: ["ctx"],
8308
8660
  describe: "Uniform Context commands",
8309
- builder: (yargs35) => yargs35.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
8661
+ builder: (yargs36) => yargs36.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
8310
8662
  handler: () => {
8311
- yargs24.showHelp();
8663
+ yargs25.showHelp();
8312
8664
  }
8313
8665
  };
8314
8666
 
8315
8667
  // src/commands/integration/index.ts
8316
- import yargs27 from "yargs";
8668
+ import yargs28 from "yargs";
8317
8669
 
8318
8670
  // src/commands/integration/commands/definition.ts
8319
- import yargs26 from "yargs";
8671
+ import yargs27 from "yargs";
8320
8672
 
8321
8673
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
8322
- import yargs25 from "yargs";
8674
+ import yargs26 from "yargs";
8323
8675
 
8324
8676
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
8325
8677
  import { readFileSync } from "fs";
8326
8678
 
8327
8679
  // src/commands/integration/commands/definition/edgehancer/EdgehancerClient.ts
8328
8680
  import { createLimitPolicy as createLimitPolicy2 } from "@uniformdev/canvas";
8329
- import { ApiClient } from "@uniformdev/context/api";
8681
+ import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
8330
8682
  var ENDPOINT = "/api/v1/integration-edgehancers";
8331
- var EdgehancerClient = class extends ApiClient {
8683
+ var EdgehancerClient = class extends ApiClient2 {
8332
8684
  constructor(options) {
8333
8685
  if (!options.limitPolicy) {
8334
8686
  options.limitPolicy = createLimitPolicy2({});
@@ -8357,8 +8709,8 @@ var EdgehancerClient = class extends ApiClient {
8357
8709
  };
8358
8710
 
8359
8711
  // src/commands/integration/commands/definition/edgehancer/util.ts
8360
- function withEdgehancerIdOptions(yargs35) {
8361
- return yargs35.option("connectorType", {
8712
+ function withEdgehancerIdOptions(yargs36) {
8713
+ return yargs36.option("connectorType", {
8362
8714
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
8363
8715
  demandOption: true,
8364
8716
  type: "string"
@@ -8378,11 +8730,11 @@ function withEdgehancerIdOptions(yargs35) {
8378
8730
  var IntegrationEdgehancerDeployModule = {
8379
8731
  command: "deploy <filename>",
8380
8732
  describe: "Deploys a custom edgehancer hook to run when a data resource of a specific archetype is fetched. The API key used must have team admin permissions.",
8381
- builder: (yargs35) => withConfiguration(
8733
+ builder: (yargs36) => withConfiguration(
8382
8734
  withApiOptions(
8383
8735
  withTeamOptions(
8384
8736
  withEdgehancerIdOptions(
8385
- yargs35.positional("filename", {
8737
+ yargs36.positional("filename", {
8386
8738
  demandOption: true,
8387
8739
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
8388
8740
  }).option("compatibilityDate", {
@@ -8415,7 +8767,7 @@ var IntegrationEdgehancerDeployModule = {
8415
8767
  var IntegrationEdgehancerRemoveModule = {
8416
8768
  command: "remove",
8417
8769
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
8418
- builder: (yargs35) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs35)))),
8770
+ builder: (yargs36) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs36)))),
8419
8771
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
8420
8772
  const fetch2 = nodeFetchProxy(proxy);
8421
8773
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -8427,17 +8779,17 @@ var IntegrationEdgehancerRemoveModule = {
8427
8779
  var IntegrationEdgehancerModule = {
8428
8780
  command: "edgehancer <command>",
8429
8781
  describe: "Commands for managing custom integration edgehancers at the team level.",
8430
- builder: (yargs35) => yargs35.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
8782
+ builder: (yargs36) => yargs36.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
8431
8783
  handler: () => {
8432
- yargs25.help();
8784
+ yargs26.help();
8433
8785
  }
8434
8786
  };
8435
8787
 
8436
8788
  // src/commands/integration/commands/definition/DefinitionClient.ts
8437
8789
  import { createLimitPolicy as createLimitPolicy3 } from "@uniformdev/canvas";
8438
- import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
8790
+ import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
8439
8791
  var ENDPOINT2 = "/api/v1/integration-definitions";
8440
- var DefinitionClient = class extends ApiClient2 {
8792
+ var DefinitionClient = class extends ApiClient3 {
8441
8793
  constructor(options) {
8442
8794
  if (!options.limitPolicy) {
8443
8795
  options.limitPolicy = createLimitPolicy3({});
@@ -8469,10 +8821,10 @@ var DefinitionClient = class extends ApiClient2 {
8469
8821
  var IntegrationDefinitionRegisterModule = {
8470
8822
  command: "register <filename>",
8471
8823
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
8472
- builder: (yargs35) => withConfiguration(
8824
+ builder: (yargs36) => withConfiguration(
8473
8825
  withApiOptions(
8474
8826
  withTeamOptions(
8475
- yargs35.positional("filename", {
8827
+ yargs36.positional("filename", {
8476
8828
  demandOption: true,
8477
8829
  describe: "Integration definition manifest to register"
8478
8830
  })
@@ -8491,10 +8843,10 @@ var IntegrationDefinitionRegisterModule = {
8491
8843
  var IntegrationDefinitionRemoveModule = {
8492
8844
  command: "remove <type>",
8493
8845
  describe: "Deletes a custom integration definition from a team. This will uninstall it on any active projects. Existing usages of the integration may break. The API key used must have team admin permissions.",
8494
- builder: (yargs35) => withConfiguration(
8846
+ builder: (yargs36) => withConfiguration(
8495
8847
  withApiOptions(
8496
8848
  withTeamOptions(
8497
- yargs35.positional("type", {
8849
+ yargs36.positional("type", {
8498
8850
  demandOption: true,
8499
8851
  describe: "Integration type (from its manifest) to remove."
8500
8852
  })
@@ -8512,17 +8864,17 @@ var IntegrationDefinitionRemoveModule = {
8512
8864
  var IntegrationDefinitionModule = {
8513
8865
  command: "definition <command>",
8514
8866
  describe: "Commands for managing custom integration definitions at the team level.",
8515
- builder: (yargs35) => yargs35.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
8867
+ builder: (yargs36) => yargs36.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
8516
8868
  handler: () => {
8517
- yargs26.help();
8869
+ yargs27.help();
8518
8870
  }
8519
8871
  };
8520
8872
 
8521
8873
  // src/commands/integration/commands/InstallClient.ts
8522
8874
  import { createLimitPolicy as createLimitPolicy4 } from "@uniformdev/canvas";
8523
- import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
8875
+ import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
8524
8876
  var ENDPOINT3 = "/api/v1/integration-installations";
8525
- var InstallClient = class extends ApiClient3 {
8877
+ var InstallClient = class extends ApiClient4 {
8526
8878
  constructor(options) {
8527
8879
  if (!options.limitPolicy) {
8528
8880
  options.limitPolicy = createLimitPolicy4({});
@@ -8554,10 +8906,10 @@ var InstallClient = class extends ApiClient3 {
8554
8906
  var IntegrationInstallModule = {
8555
8907
  command: "install <type>",
8556
8908
  describe: "Installs an integration to a project. The integration may be built-in or custom. Custom integrations must be registered to the parent team first.",
8557
- builder: (yargs35) => withConfiguration(
8909
+ builder: (yargs36) => withConfiguration(
8558
8910
  withApiOptions(
8559
8911
  withProjectOptions(
8560
- yargs35.positional("type", {
8912
+ yargs36.positional("type", {
8561
8913
  demandOption: true,
8562
8914
  describe: "Integration type to install (as defined in its manifest)"
8563
8915
  }).option("configuration", {
@@ -8579,10 +8931,10 @@ var IntegrationInstallModule = {
8579
8931
  var IntegrationUninstallModule = {
8580
8932
  command: "uninstall <type>",
8581
8933
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
8582
- builder: (yargs35) => withConfiguration(
8934
+ builder: (yargs36) => withConfiguration(
8583
8935
  withApiOptions(
8584
8936
  withProjectOptions(
8585
- yargs35.positional("type", {
8937
+ yargs36.positional("type", {
8586
8938
  demandOption: true,
8587
8939
  describe: "Integration type to uninstall (as defined in its manifest)"
8588
8940
  })
@@ -8600,9 +8952,9 @@ var IntegrationUninstallModule = {
8600
8952
  var IntegrationCommand = {
8601
8953
  command: "integration <command>",
8602
8954
  describe: "Integration management commands",
8603
- builder: (yargs35) => yargs35.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
8955
+ builder: (yargs36) => yargs36.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
8604
8956
  handler: () => {
8605
- yargs27.showHelp();
8957
+ yargs28.showHelp();
8606
8958
  }
8607
8959
  };
8608
8960
 
@@ -8630,7 +8982,7 @@ import { PostHog } from "posthog-node";
8630
8982
  // package.json
8631
8983
  var package_default = {
8632
8984
  name: "@uniformdev/cli",
8633
- version: "20.27.1",
8985
+ version: "20.29.1",
8634
8986
  description: "Uniform command line interface tool",
8635
8987
  license: "SEE LICENSE IN LICENSE.txt",
8636
8988
  main: "./cli.js",
@@ -8689,6 +9041,7 @@ var package_default = {
8689
9041
  "registry-auth-token": "^5.0.0",
8690
9042
  "registry-url": "^6.0.0",
8691
9043
  slugify: "1.6.6",
9044
+ svix: "^1.71.0",
8692
9045
  undici: "^6.20.1",
8693
9046
  yargs: "^17.6.2",
8694
9047
  zod: "3.23.8"
@@ -8807,7 +9160,7 @@ async function getBearerToken(baseUrl) {
8807
9160
  }
8808
9161
 
8809
9162
  // src/client.ts
8810
- import { z } from "zod";
9163
+ import { z as z2 } from "zod";
8811
9164
 
8812
9165
  // src/auth/api-key.ts
8813
9166
  var READ_PERMISSIONS = ["PROJECT", "UPM_PUB", "OPT_PUB", "OPT_READ", "UPM_READ"];
@@ -8862,12 +9215,12 @@ var makeReadApiKey = (teamId, projectId) => makeApiKey(teamId, projectId, "Creat
8862
9215
  var makeWriteApiKey = (teamId, projectId) => makeApiKey(teamId, projectId, "Created by Uniform New (write)", WRITE_PERMISSIONS);
8863
9216
 
8864
9217
  // src/client.ts
8865
- var createTeamOrProjectSchema = z.object({ id: z.string().min(1) });
8866
- var createApiKeySchema = z.object({ apiKey: z.string().min(1) });
8867
- var getLimitsSchema = z.object({
8868
- limits: z.object({
8869
- projects: z.array(
8870
- z.object({ id: z.string().min(1), name: z.string().min(1), used: z.number(), limit: z.number() })
9218
+ var createTeamOrProjectSchema = z2.object({ id: z2.string().min(1) });
9219
+ var createApiKeySchema = z2.object({ apiKey: z2.string().min(1) });
9220
+ var getLimitsSchema = z2.object({
9221
+ limits: z2.object({
9222
+ projects: z2.array(
9223
+ z2.object({ id: z2.string().min(1), name: z2.string().min(1), used: z2.number(), limit: z2.number() })
8871
9224
  )
8872
9225
  })
8873
9226
  });
@@ -8977,7 +9330,7 @@ var createClient = (baseUrl, authToken) => {
8977
9330
  method: "PUT",
8978
9331
  body: JSON.stringify({ teamId, data: manifest })
8979
9332
  },
8980
- z.object({ type: z.string() })
9333
+ z2.object({ type: z2.string() })
8981
9334
  );
8982
9335
  return type;
8983
9336
  } catch (err) {
@@ -9229,7 +9582,7 @@ async function chooseTeam(user, prompt, telemetry) {
9229
9582
 
9230
9583
  // src/auth/user-info.ts
9231
9584
  import { gql, request } from "graphql-request";
9232
- import { z as z2 } from "zod";
9585
+ import { z as z3 } from "zod";
9233
9586
  var query = gql`
9234
9587
  query GetUserInfo($subject: String!) {
9235
9588
  info: identities_by_pk(subject: $subject) {
@@ -9248,19 +9601,19 @@ var query = gql`
9248
9601
  }
9249
9602
  }
9250
9603
  `;
9251
- var schema = z2.object({
9252
- info: z2.object({
9253
- name: z2.string().min(1),
9254
- email_address: z2.string().min(1).nullable(),
9255
- teams: z2.array(
9256
- z2.object({
9257
- team: z2.object({
9258
- name: z2.string().min(1),
9259
- id: z2.string().min(1),
9260
- sites: z2.array(
9261
- z2.object({
9262
- name: z2.string().min(1),
9263
- id: z2.string().min(1)
9604
+ var schema = z3.object({
9605
+ info: z3.object({
9606
+ name: z3.string().min(1),
9607
+ email_address: z3.string().min(1).nullable(),
9608
+ teams: z3.array(
9609
+ z3.object({
9610
+ team: z3.object({
9611
+ name: z3.string().min(1),
9612
+ id: z3.string().min(1),
9613
+ sites: z3.array(
9614
+ z3.object({
9615
+ name: z3.string().min(1),
9616
+ id: z3.string().min(1)
9264
9617
  })
9265
9618
  )
9266
9619
  })
@@ -9662,15 +10015,15 @@ var NewMeshCmd = {
9662
10015
  };
9663
10016
 
9664
10017
  // src/commands/project-map/index.ts
9665
- import yargs30 from "yargs";
10018
+ import yargs31 from "yargs";
9666
10019
 
9667
10020
  // src/commands/project-map/commands/projectMapDefinition.ts
9668
- import yargs28 from "yargs";
10021
+ import yargs29 from "yargs";
9669
10022
 
9670
10023
  // src/commands/project-map/commands/ProjectMapDefinition/_util.ts
9671
10024
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
9672
- var selectIdentifier13 = (source) => source.id;
9673
- var selectDisplayName13 = (source) => `${source.name} (pid: ${source.id})`;
10025
+ var selectIdentifier14 = (source) => source.id;
10026
+ var selectDisplayName14 = (source) => `${source.name} (pid: ${source.id})`;
9674
10027
  function getProjectMapClient(options) {
9675
10028
  return new UncachedProjectMapClient({ ...options, limitPolicy: cliLimitPolicy });
9676
10029
  }
@@ -9679,11 +10032,11 @@ function getProjectMapClient(options) {
9679
10032
  var ProjectMapDefinitionGetModule = {
9680
10033
  command: "get <id>",
9681
10034
  describe: "Fetch a project map",
9682
- builder: (yargs35) => withFormatOptions(
10035
+ builder: (yargs36) => withFormatOptions(
9683
10036
  withConfiguration(
9684
10037
  withApiOptions(
9685
10038
  withProjectOptions(
9686
- yargs35.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
10039
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
9687
10040
  )
9688
10041
  )
9689
10042
  )
@@ -9706,7 +10059,7 @@ var ProjectMapDefinitionListModule = {
9706
10059
  command: "list",
9707
10060
  describe: "List of project maps",
9708
10061
  aliases: ["ls"],
9709
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
10062
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
9710
10063
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9711
10064
  const fetch2 = nodeFetchProxy(proxy);
9712
10065
  const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9734,9 +10087,9 @@ function createProjectMapDefinitionEngineDataSource({
9734
10087
  const projectMaps = (await client.getProjectMapDefinitions()).projectMaps;
9735
10088
  for await (const def of projectMaps) {
9736
10089
  const result = {
9737
- id: selectIdentifier13(def),
9738
- displayName: selectDisplayName13(def),
9739
- providerId: selectIdentifier13(def),
10090
+ id: selectIdentifier14(def),
10091
+ displayName: selectDisplayName14(def),
10092
+ providerId: selectIdentifier14(def),
9740
10093
  object: def
9741
10094
  };
9742
10095
  yield result;
@@ -9760,12 +10113,12 @@ function createProjectMapDefinitionEngineDataSource({
9760
10113
  var ProjectMapDefinitionPullModule = {
9761
10114
  command: "pull <directory>",
9762
10115
  describe: "Pulls all project maps to local files in a directory",
9763
- builder: (yargs35) => withConfiguration(
10116
+ builder: (yargs36) => withConfiguration(
9764
10117
  withDebugOptions(
9765
10118
  withApiOptions(
9766
10119
  withProjectOptions(
9767
10120
  withDiffOptions(
9768
- yargs35.positional("directory", {
10121
+ yargs36.positional("directory", {
9769
10122
  describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9770
10123
  type: "string"
9771
10124
  }).option("format", {
@@ -9809,8 +10162,8 @@ var ProjectMapDefinitionPullModule = {
9809
10162
  target = await createArraySyncEngineDataSource({
9810
10163
  name: `Package file ${directory}`,
9811
10164
  objects: packageContents.projectMaps ?? [],
9812
- selectIdentifier: selectIdentifier13,
9813
- selectDisplayName: selectDisplayName13,
10165
+ selectIdentifier: selectIdentifier14,
10166
+ selectDisplayName: selectDisplayName14,
9814
10167
  onSyncComplete: async (_, synced) => {
9815
10168
  packageContents.projectMaps = synced;
9816
10169
  writeContextPackage2(directory, packageContents);
@@ -9819,8 +10172,8 @@ var ProjectMapDefinitionPullModule = {
9819
10172
  } else {
9820
10173
  target = await createFileSyncEngineDataSource({
9821
10174
  directory,
9822
- selectIdentifier: selectIdentifier13,
9823
- selectDisplayName: selectDisplayName13,
10175
+ selectIdentifier: selectIdentifier14,
10176
+ selectDisplayName: selectDisplayName14,
9824
10177
  format,
9825
10178
  verbose
9826
10179
  });
@@ -9840,12 +10193,12 @@ var ProjectMapDefinitionPullModule = {
9840
10193
  var ProjectMapDefinitionPushModule = {
9841
10194
  command: "push <directory>",
9842
10195
  describe: "Pushes all project maps from files in a directory or package to Uniform",
9843
- builder: (yargs35) => withConfiguration(
10196
+ builder: (yargs36) => withConfiguration(
9844
10197
  withDebugOptions(
9845
10198
  withApiOptions(
9846
10199
  withProjectOptions(
9847
10200
  withDiffOptions(
9848
- yargs35.positional("directory", {
10201
+ yargs36.positional("directory", {
9849
10202
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
9850
10203
  type: "string"
9851
10204
  }).option("mode", {
@@ -9881,14 +10234,14 @@ var ProjectMapDefinitionPushModule = {
9881
10234
  source = await createArraySyncEngineDataSource({
9882
10235
  name: `Package file ${directory}`,
9883
10236
  objects: packageContents.projectMaps ?? [],
9884
- selectIdentifier: selectIdentifier13,
9885
- selectDisplayName: selectDisplayName13
10237
+ selectIdentifier: selectIdentifier14,
10238
+ selectDisplayName: selectDisplayName14
9886
10239
  });
9887
10240
  } else {
9888
10241
  source = await createFileSyncEngineDataSource({
9889
10242
  directory,
9890
- selectIdentifier: selectIdentifier13,
9891
- selectDisplayName: selectDisplayName13,
10243
+ selectIdentifier: selectIdentifier14,
10244
+ selectDisplayName: selectDisplayName14,
9892
10245
  verbose
9893
10246
  });
9894
10247
  }
@@ -9909,9 +10262,9 @@ var ProjectMapDefinitionRemoveModule = {
9909
10262
  command: "remove <id>",
9910
10263
  aliases: ["delete", "rm"],
9911
10264
  describe: "Delete a project map",
9912
- builder: (yargs35) => withConfiguration(
10265
+ builder: (yargs36) => withConfiguration(
9913
10266
  withApiOptions(
9914
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: " UUID to delete" }))
10267
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: " UUID to delete" }))
9915
10268
  )
9916
10269
  ),
9917
10270
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -9926,10 +10279,10 @@ var ProjectMapDefinitionUpdateModule = {
9926
10279
  command: "update <filename>",
9927
10280
  aliases: ["put"],
9928
10281
  describe: "Insert or update a project map",
9929
- builder: (yargs35) => withConfiguration(
10282
+ builder: (yargs36) => withConfiguration(
9930
10283
  withApiOptions(
9931
10284
  withProjectOptions(
9932
- yargs35.positional("filename", { demandOption: true, describe: "Project map file to put" })
10285
+ yargs36.positional("filename", { demandOption: true, describe: "Project map file to put" })
9933
10286
  )
9934
10287
  )
9935
10288
  ),
@@ -9945,24 +10298,24 @@ var ProjectMapDefinitionUpdateModule = {
9945
10298
  var ProjectMapDefinitionModule = {
9946
10299
  command: "definition <command>",
9947
10300
  describe: "Commands for ProjectMap Definitions",
9948
- builder: (yargs35) => yargs35.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
10301
+ builder: (yargs36) => yargs36.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
9949
10302
  handler: () => {
9950
- yargs28.help();
10303
+ yargs29.help();
9951
10304
  }
9952
10305
  };
9953
10306
 
9954
10307
  // src/commands/project-map/commands/projectMapNode.ts
9955
- import yargs29 from "yargs";
10308
+ import yargs30 from "yargs";
9956
10309
 
9957
10310
  // src/commands/project-map/commands/ProjectMapNode/get.ts
9958
10311
  var ProjectMapNodeGetModule = {
9959
10312
  command: "get <id> <projectMapId>",
9960
10313
  describe: "Fetch a project map node",
9961
- builder: (yargs35) => withConfiguration(
10314
+ builder: (yargs36) => withConfiguration(
9962
10315
  withFormatOptions(
9963
10316
  withApiOptions(
9964
10317
  withProjectOptions(
9965
- yargs35.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
10318
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
9966
10319
  )
9967
10320
  )
9968
10321
  )
@@ -9986,12 +10339,12 @@ var ProjectMapNodeListModule = {
9986
10339
  command: "list <projectMapId>",
9987
10340
  describe: "List project map nodes",
9988
10341
  aliases: ["ls"],
9989
- builder: (yargs35) => withConfiguration(
10342
+ builder: (yargs36) => withConfiguration(
9990
10343
  withFormatOptions(
9991
10344
  withApiOptions(
9992
10345
  withProjectOptions(
9993
10346
  withStateOptions(
9994
- yargs35.positional("projectMapId", {
10347
+ yargs36.positional("projectMapId", {
9995
10348
  demandOption: true,
9996
10349
  describe: "ProjectMap UUID to fetch from"
9997
10350
  })
@@ -10009,12 +10362,12 @@ var ProjectMapNodeListModule = {
10009
10362
  };
10010
10363
 
10011
10364
  // src/commands/project-map/commands/ProjectMapNode/_util.ts
10012
- var selectIdentifier14 = (source, projectId) => [
10365
+ var selectIdentifier15 = (source, projectId) => [
10013
10366
  projectId + source.projectMapId + source.id,
10014
10367
  projectId + source.projectMapId + source.path
10015
10368
  ];
10016
10369
  var selectFilename = (source) => cleanFileName(`${source.pathSegment}_${source.id}`);
10017
- var selectDisplayName14 = (source) => `${source.name} (pid: ${source.id})`;
10370
+ var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
10018
10371
 
10019
10372
  // src/commands/project-map/ProjectMapNodeEngineDataSource.ts
10020
10373
  function createProjectMapNodeEngineDataSource({
@@ -10028,9 +10381,9 @@ function createProjectMapNodeEngineDataSource({
10028
10381
  for await (const node of nodes ?? []) {
10029
10382
  if (node) {
10030
10383
  const result = {
10031
- id: selectIdentifier14({ ...node, projectMapId: projectMap.id }, projectId),
10032
- displayName: selectDisplayName14(node),
10033
- providerId: selectIdentifier14({ ...node, projectMapId: projectMap.id }, projectId)[0],
10384
+ id: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId),
10385
+ displayName: selectDisplayName15(node),
10386
+ providerId: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId)[0],
10034
10387
  object: { ...node, projectMapId: projectMap.id }
10035
10388
  };
10036
10389
  yield result;
@@ -10069,12 +10422,12 @@ function createProjectMapNodeEngineDataSource({
10069
10422
  var ProjectMapNodePullModule = {
10070
10423
  command: "pull <directory>",
10071
10424
  describe: "Pulls all project maps nodes to local files in a directory",
10072
- builder: (yargs35) => withConfiguration(
10425
+ builder: (yargs36) => withConfiguration(
10073
10426
  withDebugOptions(
10074
10427
  withApiOptions(
10075
10428
  withProjectOptions(
10076
10429
  withDiffOptions(
10077
- yargs35.positional("directory", {
10430
+ yargs36.positional("directory", {
10078
10431
  describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
10079
10432
  type: "string"
10080
10433
  }).option("format", {
@@ -10114,7 +10467,7 @@ var ProjectMapNodePullModule = {
10114
10467
  let target;
10115
10468
  const isPackage = isPathAPackageFile(directory);
10116
10469
  const expandedSelectIdentifier = (object) => {
10117
- return selectIdentifier14(object, projectId);
10470
+ return selectIdentifier15(object, projectId);
10118
10471
  };
10119
10472
  if (isPackage) {
10120
10473
  const packageContents = readContextPackage2(directory, false, verbose);
@@ -10122,7 +10475,7 @@ var ProjectMapNodePullModule = {
10122
10475
  name: `Package file ${directory}`,
10123
10476
  objects: packageContents.projectMapNodes ?? [],
10124
10477
  selectIdentifier: expandedSelectIdentifier,
10125
- selectDisplayName: selectDisplayName14,
10478
+ selectDisplayName: selectDisplayName15,
10126
10479
  onSyncComplete: async (_, synced) => {
10127
10480
  packageContents.projectMapNodes = synced;
10128
10481
  writeContextPackage2(directory, packageContents);
@@ -10132,7 +10485,7 @@ var ProjectMapNodePullModule = {
10132
10485
  target = await createFileSyncEngineDataSource({
10133
10486
  directory,
10134
10487
  selectIdentifier: expandedSelectIdentifier,
10135
- selectDisplayName: selectDisplayName14,
10488
+ selectDisplayName: selectDisplayName15,
10136
10489
  format,
10137
10490
  selectFilename,
10138
10491
  verbose
@@ -10156,12 +10509,12 @@ import {
10156
10509
  var ProjectMapNodePushModule = {
10157
10510
  command: "push <directory>",
10158
10511
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
10159
- builder: (yargs35) => withConfiguration(
10512
+ builder: (yargs36) => withConfiguration(
10160
10513
  withDebugOptions(
10161
10514
  withApiOptions(
10162
10515
  withProjectOptions(
10163
10516
  withDiffOptions(
10164
- yargs35.positional("directory", {
10517
+ yargs36.positional("directory", {
10165
10518
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
10166
10519
  type: "string"
10167
10520
  }).option("mode", {
@@ -10198,7 +10551,7 @@ var ProjectMapNodePushModule = {
10198
10551
  let source;
10199
10552
  const isPackage = isPathAPackageFile(directory);
10200
10553
  const expandedSelectIdentifier = (object) => {
10201
- return selectIdentifier14(object, projectId);
10554
+ return selectIdentifier15(object, projectId);
10202
10555
  };
10203
10556
  if (isPackage) {
10204
10557
  const packageContents = readContextPackage2(directory, true, verbose);
@@ -10208,13 +10561,13 @@ var ProjectMapNodePushModule = {
10208
10561
  return a.path.length - b.path.length;
10209
10562
  }) ?? [],
10210
10563
  selectIdentifier: expandedSelectIdentifier,
10211
- selectDisplayName: selectDisplayName14
10564
+ selectDisplayName: selectDisplayName15
10212
10565
  });
10213
10566
  } else {
10214
10567
  source = await createFileSyncEngineDataSource({
10215
10568
  directory,
10216
10569
  selectIdentifier: expandedSelectIdentifier,
10217
- selectDisplayName: selectDisplayName14,
10570
+ selectDisplayName: selectDisplayName15,
10218
10571
  selectFilename,
10219
10572
  verbose
10220
10573
  });
@@ -10246,7 +10599,7 @@ var ProjectMapNodePushModule = {
10246
10599
  name: `Nodes re-push from ${directory}`,
10247
10600
  objects: Array.from(nodesFailedDueToMissingParent),
10248
10601
  selectIdentifier: expandedSelectIdentifier,
10249
- selectDisplayName: selectDisplayName14
10602
+ selectDisplayName: selectDisplayName15
10250
10603
  });
10251
10604
  await attemptSync();
10252
10605
  } else {
@@ -10263,10 +10616,10 @@ var ProjectMapNodeRemoveModule = {
10263
10616
  command: "remove <id> <projectMapId>",
10264
10617
  aliases: ["delete", "rm"],
10265
10618
  describe: "Delete a project map node",
10266
- builder: (yargs35) => withConfiguration(
10619
+ builder: (yargs36) => withConfiguration(
10267
10620
  withApiOptions(
10268
10621
  withProjectOptions(
10269
- yargs35.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
10622
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
10270
10623
  )
10271
10624
  )
10272
10625
  ),
@@ -10282,10 +10635,10 @@ var ProjectMapNodeUpdateModule = {
10282
10635
  command: "update <filename> <projectMapId>",
10283
10636
  aliases: ["put"],
10284
10637
  describe: "Insert or update a project map node",
10285
- builder: (yargs35) => withConfiguration(
10638
+ builder: (yargs36) => withConfiguration(
10286
10639
  withApiOptions(
10287
10640
  withProjectOptions(
10288
- yargs35.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
10641
+ yargs36.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
10289
10642
  )
10290
10643
  )
10291
10644
  ),
@@ -10301,9 +10654,9 @@ var ProjectMapNodeUpdateModule = {
10301
10654
  var ProjectMapNodeModule = {
10302
10655
  command: "node <command>",
10303
10656
  describe: "Commands for ProjectMap Nodes",
10304
- builder: (yargs35) => yargs35.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
10657
+ builder: (yargs36) => yargs36.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
10305
10658
  handler: () => {
10306
- yargs29.help();
10659
+ yargs30.help();
10307
10660
  }
10308
10661
  };
10309
10662
 
@@ -10312,26 +10665,26 @@ var ProjectMapCommand = {
10312
10665
  command: "project-map <command>",
10313
10666
  aliases: ["prm"],
10314
10667
  describe: "Uniform ProjectMap commands",
10315
- builder: (yargs35) => yargs35.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
10668
+ builder: (yargs36) => yargs36.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
10316
10669
  handler: () => {
10317
- yargs30.showHelp();
10670
+ yargs31.showHelp();
10318
10671
  }
10319
10672
  };
10320
10673
 
10321
10674
  // src/commands/redirect/index.ts
10322
- import yargs32 from "yargs";
10675
+ import yargs33 from "yargs";
10323
10676
 
10324
10677
  // src/commands/redirect/commands/redirect.ts
10325
- import yargs31 from "yargs";
10678
+ import yargs32 from "yargs";
10326
10679
 
10327
10680
  // src/commands/redirect/commands/RedirectDefinition/_util.ts
10328
10681
  import { UncachedRedirectClient } from "@uniformdev/redirect";
10329
- var selectIdentifier15 = (source) => source.id;
10682
+ var selectIdentifier16 = (source) => source.id;
10330
10683
  var selectFilename2 = (source) => {
10331
10684
  const index = source.sourceUrl.lastIndexOf("/");
10332
10685
  return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
10333
10686
  };
10334
- var selectDisplayName15 = (source) => {
10687
+ var selectDisplayName16 = (source) => {
10335
10688
  let pathName = source.sourceUrl;
10336
10689
  if (pathName.length > 30) {
10337
10690
  const slashIndex = source.sourceUrl.indexOf("/", source.sourceUrl.length - 30);
@@ -10347,11 +10700,11 @@ function getRedirectClient(options) {
10347
10700
  var RedirectDefinitionGetModule = {
10348
10701
  command: "get <id>",
10349
10702
  describe: "Fetch a redirect",
10350
- builder: (yargs35) => withConfiguration(
10703
+ builder: (yargs36) => withConfiguration(
10351
10704
  withFormatOptions(
10352
10705
  withApiOptions(
10353
10706
  withProjectOptions(
10354
- yargs35.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
10707
+ yargs36.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
10355
10708
  )
10356
10709
  )
10357
10710
  )
@@ -10374,7 +10727,7 @@ var RedirectDefinitionListModule = {
10374
10727
  command: "list",
10375
10728
  describe: "List of redirects",
10376
10729
  aliases: ["ls"],
10377
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
10730
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
10378
10731
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10379
10732
  const fetch2 = nodeFetchProxy(proxy);
10380
10733
  const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -10402,9 +10755,9 @@ function createRedirectDefinitionEngineDataSource({
10402
10755
  const redirects = client.getAllRedirects();
10403
10756
  for await (const redirect of redirects) {
10404
10757
  const result = {
10405
- id: selectIdentifier15(redirect.redirect),
10406
- displayName: selectDisplayName15(redirect.redirect),
10407
- providerId: selectIdentifier15(redirect.redirect),
10758
+ id: selectIdentifier16(redirect.redirect),
10759
+ displayName: selectDisplayName16(redirect.redirect),
10760
+ providerId: selectIdentifier16(redirect.redirect),
10408
10761
  object: redirect.redirect
10409
10762
  };
10410
10763
  yield result;
@@ -10426,12 +10779,12 @@ function createRedirectDefinitionEngineDataSource({
10426
10779
  var RedirectDefinitionPullModule = {
10427
10780
  command: "pull <directory>",
10428
10781
  describe: "Pulls all redirects to local files in a directory",
10429
- builder: (yargs35) => withConfiguration(
10782
+ builder: (yargs36) => withConfiguration(
10430
10783
  withDebugOptions(
10431
10784
  withApiOptions(
10432
10785
  withProjectOptions(
10433
10786
  withDiffOptions(
10434
- yargs35.positional("directory", {
10787
+ yargs36.positional("directory", {
10435
10788
  describe: "Directory to save redirects to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
10436
10789
  type: "string"
10437
10790
  }).option("format", {
@@ -10475,8 +10828,8 @@ var RedirectDefinitionPullModule = {
10475
10828
  target = await createArraySyncEngineDataSource({
10476
10829
  name: `Package file ${directory}`,
10477
10830
  objects: packageContents.redirects ?? [],
10478
- selectIdentifier: selectIdentifier15,
10479
- selectDisplayName: selectDisplayName15,
10831
+ selectIdentifier: selectIdentifier16,
10832
+ selectDisplayName: selectDisplayName16,
10480
10833
  onSyncComplete: async (_, synced) => {
10481
10834
  packageContents.redirects = synced;
10482
10835
  writeContextPackage3(directory, packageContents);
@@ -10486,8 +10839,8 @@ var RedirectDefinitionPullModule = {
10486
10839
  target = await createFileSyncEngineDataSource({
10487
10840
  directory,
10488
10841
  selectFilename: selectFilename2,
10489
- selectIdentifier: selectIdentifier15,
10490
- selectDisplayName: selectDisplayName15,
10842
+ selectIdentifier: selectIdentifier16,
10843
+ selectDisplayName: selectDisplayName16,
10491
10844
  format,
10492
10845
  verbose
10493
10846
  });
@@ -10507,12 +10860,12 @@ var RedirectDefinitionPullModule = {
10507
10860
  var RedirectDefinitionPushModule = {
10508
10861
  command: "push <directory>",
10509
10862
  describe: "Pushes all redirects from files in a directory or package to Uniform",
10510
- builder: (yargs35) => withConfiguration(
10863
+ builder: (yargs36) => withConfiguration(
10511
10864
  withDebugOptions(
10512
10865
  withApiOptions(
10513
10866
  withProjectOptions(
10514
10867
  withDiffOptions(
10515
- yargs35.positional("directory", {
10868
+ yargs36.positional("directory", {
10516
10869
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
10517
10870
  type: "string"
10518
10871
  }).option("mode", {
@@ -10548,14 +10901,14 @@ var RedirectDefinitionPushModule = {
10548
10901
  source = await createArraySyncEngineDataSource({
10549
10902
  name: `Package file ${directory}`,
10550
10903
  objects: packageContents.redirects ?? [],
10551
- selectIdentifier: selectIdentifier15,
10552
- selectDisplayName: selectDisplayName15
10904
+ selectIdentifier: selectIdentifier16,
10905
+ selectDisplayName: selectDisplayName16
10553
10906
  });
10554
10907
  } else {
10555
10908
  source = await createFileSyncEngineDataSource({
10556
10909
  directory,
10557
- selectIdentifier: selectIdentifier15,
10558
- selectDisplayName: selectDisplayName15,
10910
+ selectIdentifier: selectIdentifier16,
10911
+ selectDisplayName: selectDisplayName16,
10559
10912
  verbose
10560
10913
  });
10561
10914
  }
@@ -10576,9 +10929,9 @@ var RedirectDefinitionRemoveModule = {
10576
10929
  command: "remove <id>",
10577
10930
  aliases: ["delete", "rm"],
10578
10931
  describe: "Delete a redirect",
10579
- builder: (yargs35) => withConfiguration(
10932
+ builder: (yargs36) => withConfiguration(
10580
10933
  withApiOptions(
10581
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: " UUID to delete" }))
10934
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: " UUID to delete" }))
10582
10935
  )
10583
10936
  ),
10584
10937
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -10593,10 +10946,10 @@ var RedirectDefinitionUpdateModule = {
10593
10946
  command: "update <filename>",
10594
10947
  aliases: ["put"],
10595
10948
  describe: "Insert or update a redirect",
10596
- builder: (yargs35) => withConfiguration(
10949
+ builder: (yargs36) => withConfiguration(
10597
10950
  withApiOptions(
10598
10951
  withProjectOptions(
10599
- yargs35.positional("filename", { demandOption: true, describe: "Redirect file to put" })
10952
+ yargs36.positional("filename", { demandOption: true, describe: "Redirect file to put" })
10600
10953
  )
10601
10954
  )
10602
10955
  ),
@@ -10612,9 +10965,9 @@ var RedirectDefinitionUpdateModule = {
10612
10965
  var RedirectDefinitionModule = {
10613
10966
  command: "definition <command>",
10614
10967
  describe: "Commands for Redirect Definitions",
10615
- builder: (yargs35) => yargs35.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
10968
+ builder: (yargs36) => yargs36.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
10616
10969
  handler: () => {
10617
- yargs31.help();
10970
+ yargs32.help();
10618
10971
  }
10619
10972
  };
10620
10973
 
@@ -10623,14 +10976,14 @@ var RedirectCommand = {
10623
10976
  command: "redirect <command>",
10624
10977
  aliases: ["red"],
10625
10978
  describe: "Uniform Redirect commands",
10626
- builder: (yargs35) => yargs35.command(RedirectDefinitionModule).demandCommand(),
10979
+ builder: (yargs36) => yargs36.command(RedirectDefinitionModule).demandCommand(),
10627
10980
  handler: () => {
10628
- yargs32.showHelp();
10981
+ yargs33.showHelp();
10629
10982
  }
10630
10983
  };
10631
10984
 
10632
10985
  // src/commands/sync/index.ts
10633
- import yargs33 from "yargs";
10986
+ import yargs34 from "yargs";
10634
10987
 
10635
10988
  // src/commands/sync/commands/util.ts
10636
10989
  import ora2 from "ora";
@@ -10746,7 +11099,7 @@ function numPad(num, spaces = 6) {
10746
11099
  var SyncPullModule = {
10747
11100
  command: "pull",
10748
11101
  describe: "Pulls whole project to local files in a directory",
10749
- builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs35))))),
11102
+ builder: (yargs36) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs36))))),
10750
11103
  handler: async ({ serialization, ...otherParams }) => {
10751
11104
  const config2 = serialization;
10752
11105
  const enabledEntities = Object.entries({
@@ -10772,7 +11125,8 @@ var SyncPullModule = {
10772
11125
  entryPattern: EntryPatternPullModule,
10773
11126
  contentType: ContentTypePullModule,
10774
11127
  previewUrl: PreviewUrlPullModule,
10775
- previewViewport: PreviewViewportPullModule
11128
+ previewViewport: PreviewViewportPullModule,
11129
+ webhook: WebhookPullModule
10776
11130
  }).filter(([entityType]) => {
10777
11131
  return Boolean(config2.entitiesConfig?.[entityType]) && config2.entitiesConfig?.[entityType]?.disabled !== true && config2.entitiesConfig?.[entityType]?.pull?.disabled !== true;
10778
11132
  });
@@ -10843,7 +11197,7 @@ var getFormat = (entityType, config2) => {
10843
11197
  var SyncPushModule = {
10844
11198
  command: "push",
10845
11199
  describe: "Pushes whole project data from files in a directory or package to Uniform",
10846
- builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs35))))),
11200
+ builder: (yargs36) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs36))))),
10847
11201
  handler: async ({ serialization, ...otherParams }) => {
10848
11202
  const config2 = serialization;
10849
11203
  const enabledEntities = Object.entries({
@@ -10869,7 +11223,8 @@ var SyncPushModule = {
10869
11223
  entry: EntryPushModule,
10870
11224
  entryPattern: EntryPatternPushModule,
10871
11225
  previewUrl: PreviewUrlPushModule,
10872
- previewViewport: PreviewViewportPushModule
11226
+ previewViewport: PreviewViewportPushModule,
11227
+ webhook: WebhookPushModule
10873
11228
  }).filter(([entityType]) => {
10874
11229
  return Boolean(config2.entitiesConfig?.[entityType]) && config2.entitiesConfig?.[entityType]?.disabled !== true && config2.entitiesConfig?.[entityType]?.push?.disabled !== true;
10875
11230
  });
@@ -11051,9 +11406,9 @@ var getFormat2 = (entityType, config2) => {
11051
11406
  var SyncCommand = {
11052
11407
  command: "sync <command>",
11053
11408
  describe: "Uniform Sync commands",
11054
- builder: (yargs35) => yargs35.command(SyncPullModule).command(SyncPushModule).demandCommand(),
11409
+ builder: (yargs36) => yargs36.command(SyncPullModule).command(SyncPushModule).demandCommand(),
11055
11410
  handler: () => {
11056
- yargs33.showHelp();
11411
+ yargs34.showHelp();
11057
11412
  }
11058
11413
  };
11059
11414
 
@@ -11305,7 +11660,7 @@ First found was: v${firstVersion}`;
11305
11660
 
11306
11661
  // src/index.ts
11307
11662
  dotenv.config();
11308
- var yarggery = yargs34(hideBin(process.argv));
11663
+ var yarggery = yargs35(hideBin(process.argv));
11309
11664
  var useDefaultConfig = !process.argv.includes("--config");
11310
11665
  var defaultConfig2 = useDefaultConfig ? loadConfig(null) : {};
11311
11666
  yarggery.option("verbose", {