@tenonhq/sincronia-core 0.0.13 → 0.0.15

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/FileUtils.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
package/dist/Logger.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
package/dist/Watcher.js CHANGED
@@ -12,7 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  })(function (require, exports) {
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.stopWatching = exports.startWatching = void 0;
15
+ exports.startWatching = startWatching;
16
+ exports.stopWatching = stopWatching;
16
17
  const chokidar_1 = __importDefault(require("chokidar"));
17
18
  const logMessages_1 = require("./logMessages");
18
19
  const lodash_1 = require("lodash");
@@ -40,7 +41,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
40
41
  watcher = chokidar_1.default.watch(directory);
41
42
  watcher.on("change", fileChanged);
42
43
  }
43
- exports.startWatching = startWatching;
44
44
  async function fileChanged(path) {
45
45
  pushQueue.push(path);
46
46
  processQueue();
@@ -50,5 +50,4 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
50
50
  watcher.close();
51
51
  }
52
52
  }
53
- exports.stopWatching = stopWatching;
54
53
  });
@@ -0,0 +1,146 @@
1
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
+ if (k2 === undefined) k2 = k;
3
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
+ desc = { enumerable: true, get: function() { return m[k]; } };
6
+ }
7
+ Object.defineProperty(o, k2, desc);
8
+ }) : (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ o[k2] = m[k];
11
+ }));
12
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
13
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
14
+ }) : function(o, v) {
15
+ o["default"] = v;
16
+ });
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
34
+ (function (factory) {
35
+ if (typeof module === "object" && typeof module.exports === "object") {
36
+ var v = factory(require, exports);
37
+ if (v !== undefined) module.exports = v;
38
+ }
39
+ else if (typeof define === "function" && define.amd) {
40
+ define(["require", "exports", "./Logger", "./config", "./appUtils", "./snClient", "./commands", "path", "fs"], factory);
41
+ }
42
+ })(function (require, exports) {
43
+ "use strict";
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.initScopesCommand = initScopesCommand;
46
+ const Logger_1 = require("./Logger");
47
+ const ConfigManager = __importStar(require("./config"));
48
+ const AppUtils = __importStar(require("./appUtils"));
49
+ const snClient_1 = require("./snClient");
50
+ const commands_1 = require("./commands");
51
+ const path = __importStar(require("path"));
52
+ const fs = __importStar(require("fs"));
53
+ const fsp = fs.promises;
54
+ async function processScope(scopeName, scopeConfig) {
55
+ try {
56
+ Logger_1.logger.info(`Processing scope: ${scopeName}`);
57
+ // Get the client
58
+ const client = (0, snClient_1.defaultClient)();
59
+ // Set the scope
60
+ Logger_1.logger.info(`Setting scope to ${scopeName}`);
61
+ await AppUtils.swapScope(scopeName);
62
+ // Sync and get manifest for this scope
63
+ await AppUtils.syncManifest();
64
+ // Get the updated manifest from ConfigManager
65
+ const manifest = ConfigManager.getManifest();
66
+ // Create the scope-specific manifest structure
67
+ const scopeManifest = {
68
+ tables: (manifest && manifest.tables) || {},
69
+ scope: scopeName
70
+ };
71
+ Logger_1.logger.success(`✅ Successfully processed scope: ${scopeName}`);
72
+ return {
73
+ scope: scopeName,
74
+ success: true,
75
+ manifest: scopeManifest
76
+ };
77
+ }
78
+ catch (error) {
79
+ const errorMessage = error instanceof Error ? error.message : String(error);
80
+ Logger_1.logger.error(`❌ Failed to process scope ${scopeName}: ${errorMessage}`);
81
+ return {
82
+ scope: scopeName,
83
+ success: false,
84
+ error: error instanceof Error ? error : new Error(String(error))
85
+ };
86
+ }
87
+ }
88
+ async function initScopesCommand(args) {
89
+ (0, commands_1.setLogLevel)(args);
90
+ try {
91
+ // Load config
92
+ const config = ConfigManager.getConfig();
93
+ if (!config.scopes) {
94
+ Logger_1.logger.error("No scopes defined in sinc.config.js");
95
+ throw new Error("No scopes defined in configuration");
96
+ }
97
+ const scopes = Object.keys(config.scopes);
98
+ Logger_1.logger.info(`Found ${scopes.length} scopes to process: ${scopes.join(", ")}`);
99
+ // Process all scopes in parallel
100
+ Logger_1.logger.info("Starting parallel processing of all scopes...");
101
+ const scopePromises = scopes.map(scopeName => processScope(scopeName, config.scopes[scopeName]));
102
+ const results = await Promise.allSettled(scopePromises);
103
+ // Collect successful manifests
104
+ const manifests = {};
105
+ let successCount = 0;
106
+ let failCount = 0;
107
+ results.forEach((result, index) => {
108
+ var _a;
109
+ const scopeName = scopes[index];
110
+ if (result.status === "fulfilled" && result.value.success) {
111
+ manifests[scopeName] = result.value.manifest;
112
+ successCount++;
113
+ }
114
+ else {
115
+ failCount++;
116
+ const error = result.status === "rejected" ? result.reason : (_a = result.value) === null || _a === void 0 ? void 0 : _a.error;
117
+ Logger_1.logger.error(`Failed to process ${scopeName}: ${(error === null || error === void 0 ? void 0 : error.message) || "Unknown error"}`);
118
+ }
119
+ });
120
+ // Write the combined manifest file
121
+ const manifestPath = path.join(ConfigManager.getRootDir(), "sinc.manifest.json");
122
+ await fsp.writeFile(manifestPath, JSON.stringify(manifests, null, 2));
123
+ Logger_1.logger.info("=".repeat(50));
124
+ Logger_1.logger.success(`✅ Scope initialization complete!`);
125
+ Logger_1.logger.info(`Successfully processed: ${successCount} scopes`);
126
+ if (failCount > 0) {
127
+ Logger_1.logger.warn(`Failed to process: ${failCount} scopes`);
128
+ }
129
+ Logger_1.logger.info(`Manifest written to: ${manifestPath}`);
130
+ // Create source directories for each scope if they don't exist
131
+ for (const [scopeName, scopeConfig] of Object.entries(config.scopes)) {
132
+ if (typeof scopeConfig === "object" && scopeConfig.sourceDirectory) {
133
+ const srcDir = path.resolve(ConfigManager.getRootDir(), scopeConfig.sourceDirectory);
134
+ if (!fs.existsSync(srcDir)) {
135
+ await fsp.mkdir(srcDir, { recursive: true });
136
+ Logger_1.logger.info(`Created source directory for ${scopeName}: ${srcDir}`);
137
+ }
138
+ }
139
+ }
140
+ }
141
+ catch (e) {
142
+ Logger_1.logger.error("Error initializing scopes: " + e);
143
+ throw e;
144
+ }
145
+ }
146
+ });
package/dist/appUtils.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
package/dist/bootstrap.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
@@ -36,7 +46,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
46
  "use strict";
37
47
  var __syncRequire = typeof module === "object" && typeof module.exports === "object";
38
48
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.init = void 0;
49
+ exports.init = init;
40
50
  const dotenv_1 = __importDefault(require("dotenv"));
41
51
  const ConfigManager = __importStar(require("./config"));
42
52
  async function init() {
@@ -52,5 +62,4 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
52
62
  });
53
63
  (await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./commander"))) : new Promise((resolve_1, reject_1) => { require(["./commander"], resolve_1, reject_1); }).then(__importStar))).initCommands();
54
64
  }
55
- exports.init = init;
56
65
  });
package/dist/commander.js CHANGED
@@ -7,49 +7,50 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
7
7
  if (v !== undefined) module.exports = v;
8
8
  }
9
9
  else if (typeof define === "function" && define.amd) {
10
- define(["require", "exports", "./commands", "yargs"], factory);
10
+ define(["require", "exports", "./commands", "./allScopesCommands", "yargs"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.initCommands = void 0;
15
+ exports.initCommands = initCommands;
16
16
  const commands_1 = require("./commands");
17
+ const allScopesCommands_1 = require("./allScopesCommands");
17
18
  const yargs_1 = __importDefault(require("yargs"));
18
19
  async function initCommands() {
19
20
  const sharedOptions = {
20
21
  logLevel: {
21
- default: "info"
22
- }
22
+ default: "info",
23
+ },
23
24
  };
24
25
  yargs_1.default
25
26
  .command(["dev", "d"], "Start Development Mode", sharedOptions, commands_1.devCommand)
26
27
  .command(["refresh", "r"], "Refresh Manifest and download new files since last refresh", sharedOptions, commands_1.refreshCommand)
27
- .command(["push [target]"], "[DESTRUCTIVE] Push all files from current local files to ServiceNow instance.", cmdArgs => {
28
+ .command(["push [target]"], "[DESTRUCTIVE] Push all files from current local files to ServiceNow instance.", (cmdArgs) => {
28
29
  cmdArgs.options({
29
30
  ...sharedOptions,
30
31
  diff: {
31
32
  alias: "d",
32
33
  type: "string",
33
34
  default: "",
34
- describe: "Specify branch to do git diff against"
35
+ describe: "Specify branch to do git diff against",
35
36
  },
36
37
  scopeSwap: {
37
38
  alias: "ss",
38
39
  type: "boolean",
39
40
  default: false,
40
- describe: "Will auto-swap to the correct scope for the files being pushed"
41
+ describe: "Will auto-swap to the correct scope for the files being pushed",
41
42
  },
42
43
  updateSet: {
43
44
  alias: "us",
44
45
  type: "string",
45
46
  default: "",
46
- describe: "Will create a new update set with the provided anme to store all changes into"
47
+ describe: "Will create a new update set with the provided anme to store all changes into",
47
48
  },
48
49
  ci: {
49
50
  type: "boolean",
50
51
  default: false,
51
- describe: "Will skip confirmation prompts during the push process"
52
- }
52
+ describe: "Will skip confirmation prompts during the push process",
53
+ },
53
54
  });
54
55
  return cmdArgs;
55
56
  }, (args) => {
@@ -59,15 +60,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
59
60
  (0, commands_1.downloadCommand)(args);
60
61
  })
61
62
  .command("init", "Provisions an initial project for you", sharedOptions, commands_1.initCommand)
62
- .command("build", "Build application files locally", cmdArgs => {
63
+ .command("initScopes", "Provisions an initial project for the scopes defined in the config", sharedOptions, allScopesCommands_1.initScopesCommand)
64
+ .command("build", "Build application files locally", (cmdArgs) => {
63
65
  cmdArgs.options({
64
66
  ...sharedOptions,
65
67
  diff: {
66
68
  alias: "d",
67
69
  type: "string",
68
70
  default: "",
69
- describe: "Specify branch to do git diff against"
70
- }
71
+ describe: "Specify branch to do git diff against",
72
+ },
71
73
  });
72
74
  return cmdArgs;
73
75
  }, (args) => {
@@ -77,5 +79,4 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
77
79
  .command("status", "Get information about the connected instance", sharedOptions, commands_1.statusCommand)
78
80
  .help().argv;
79
81
  }
80
- exports.initCommands = initCommands;
81
82
  });
package/dist/commands.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
@@ -35,7 +45,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
35
45
  })(function (require, exports) {
36
46
  "use strict";
37
47
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.statusCommand = exports.deployCommand = exports.buildCommand = exports.initCommand = exports.downloadCommand = exports.pushCommand = exports.refreshCommand = exports.devCommand = void 0;
48
+ exports.setLogLevel = setLogLevel;
49
+ exports.devCommand = devCommand;
50
+ exports.refreshCommand = refreshCommand;
51
+ exports.pushCommand = pushCommand;
52
+ exports.downloadCommand = downloadCommand;
53
+ exports.initCommand = initCommand;
54
+ exports.buildCommand = buildCommand;
55
+ exports.deployCommand = deployCommand;
56
+ exports.statusCommand = statusCommand;
39
57
  const ConfigManager = __importStar(require("./config"));
40
58
  const Watcher_1 = require("./Watcher");
41
59
  const AppUtils = __importStar(require("./appUtils"));
@@ -46,7 +64,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
46
64
  const inquirer_1 = __importDefault(require("inquirer"));
47
65
  const gitUtils_1 = require("./gitUtils");
48
66
  const FileUtils_1 = require("./FileUtils");
49
- // dc13
50
67
  async function scopeCheck(successFunc, swapScopes = false) {
51
68
  try {
52
69
  const scopeCheck = await AppUtils.checkScope(swapScopes);
@@ -81,9 +98,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
81
98
  Logger_1.logger.info(`Checking for new manifest files every ${interval} seconds`);
82
99
  setInterval(refresher, interval * 1000);
83
100
  }
84
- }, true);
101
+ });
85
102
  }
86
- exports.devCommand = devCommand;
87
103
  async function refreshCommand(args, log = true) {
88
104
  setLogLevel(args);
89
105
  scopeCheck(async () => {
@@ -99,7 +115,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
99
115
  }
100
116
  });
101
117
  }
102
- exports.refreshCommand = refreshCommand;
103
118
  async function pushCommand(args) {
104
119
  setLogLevel(args);
105
120
  scopeCheck(async () => {
@@ -156,7 +171,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
156
171
  }
157
172
  }, args.scopeSwap);
158
173
  }
159
- exports.pushCommand = pushCommand;
160
174
  async function downloadCommand(args) {
161
175
  setLogLevel(args);
162
176
  try {
@@ -183,7 +197,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
183
197
  throw e;
184
198
  }
185
199
  }
186
- exports.downloadCommand = downloadCommand;
187
200
  async function initCommand(args) {
188
201
  setLogLevel(args);
189
202
  try {
@@ -193,7 +206,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
193
206
  throw e;
194
207
  }
195
208
  }
196
- exports.initCommand = initCommand;
197
209
  async function buildCommand(args) {
198
210
  setLogLevel(args);
199
211
  try {
@@ -207,7 +219,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
207
219
  process.exit(1);
208
220
  }
209
221
  }
210
- exports.buildCommand = buildCommand;
211
222
  async function getDeployPaths() {
212
223
  let changedPaths = [];
213
224
  try {
@@ -260,7 +271,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
260
271
  }
261
272
  });
262
273
  }
263
- exports.deployCommand = deployCommand;
264
274
  async function statusCommand() {
265
275
  try {
266
276
  const client = (0, snClient_1.defaultClient)();
@@ -273,5 +283,4 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
273
283
  throw e;
274
284
  }
275
285
  }
276
- exports.statusCommand = statusCommand;
277
286
  });
package/dist/config.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
@@ -36,7 +46,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
46
  "use strict";
37
47
  var __syncRequire = typeof module === "object" && typeof module.exports === "object";
38
48
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.updateManifest = exports.getDefaultConfigFile = exports.getRefresh = exports.getDiffFile = exports.getDiffPath = exports.getEnvPath = exports.getBuildPath = exports.getSourcePath = exports.getManifestPath = exports.getManifest = exports.getRootDir = exports.checkConfigPath = exports.getConfigPath = exports.getConfig = exports.loadConfigs = void 0;
49
+ exports.loadConfigs = void 0;
50
+ exports.getConfig = getConfig;
51
+ exports.getConfigPath = getConfigPath;
52
+ exports.checkConfigPath = checkConfigPath;
53
+ exports.getRootDir = getRootDir;
54
+ exports.getManifest = getManifest;
55
+ exports.getManifestPath = getManifestPath;
56
+ exports.getSourcePath = getSourcePath;
57
+ exports.getBuildPath = getBuildPath;
58
+ exports.getEnvPath = getEnvPath;
59
+ exports.getDiffPath = getDiffPath;
60
+ exports.getDiffFile = getDiffFile;
61
+ exports.getRefresh = getRefresh;
62
+ exports.getDefaultConfigFile = getDefaultConfigFile;
63
+ exports.updateManifest = updateManifest;
40
64
  const path_1 = __importDefault(require("path"));
41
65
  const fs_1 = require("fs");
42
66
  const Logger_1 = require("./Logger");
@@ -49,6 +73,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
49
73
  excludes: defaultOptions_1.excludes,
50
74
  tableOptions: {},
51
75
  refreshInterval: 30,
76
+ scopes: {},
52
77
  };
53
78
  let root_dir;
54
79
  let config;
@@ -92,74 +117,62 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
92
117
  return config;
93
118
  throw new Error("Error getting config");
94
119
  }
95
- exports.getConfig = getConfig;
96
120
  function getConfigPath() {
97
121
  if (config_path)
98
122
  return config_path;
99
123
  throw new Error("Error getting config path");
100
124
  }
101
- exports.getConfigPath = getConfigPath;
102
125
  function checkConfigPath() {
103
126
  if (config_path)
104
127
  return config_path;
105
128
  return false;
106
129
  }
107
- exports.checkConfigPath = checkConfigPath;
108
130
  function getRootDir() {
109
131
  if (root_dir)
110
132
  return root_dir;
111
133
  throw new Error("Error getting root directory");
112
134
  }
113
- exports.getRootDir = getRootDir;
114
135
  function getManifest(setup = false) {
115
136
  if (manifest)
116
137
  return manifest;
117
138
  if (!setup)
118
139
  throw new Error("Error getting manifest");
119
140
  }
120
- exports.getManifest = getManifest;
121
141
  function getManifestPath() {
122
142
  if (manifest_path)
123
143
  return manifest_path;
124
144
  throw new Error("Error getting manifest path");
125
145
  }
126
- exports.getManifestPath = getManifestPath;
127
146
  function getSourcePath() {
128
147
  if (source_path)
129
148
  return source_path;
130
149
  throw new Error("Error getting source path");
131
150
  }
132
- exports.getSourcePath = getSourcePath;
133
151
  function getBuildPath() {
134
152
  if (build_path)
135
153
  return build_path;
136
154
  throw new Error("Error getting build path");
137
155
  }
138
- exports.getBuildPath = getBuildPath;
139
156
  function getEnvPath() {
140
157
  if (env_path)
141
158
  return env_path;
142
159
  throw new Error("Error getting env path");
143
160
  }
144
- exports.getEnvPath = getEnvPath;
145
161
  function getDiffPath() {
146
162
  if (diff_path)
147
163
  return diff_path;
148
164
  throw new Error("Error getting diff path");
149
165
  }
150
- exports.getDiffPath = getDiffPath;
151
166
  function getDiffFile() {
152
167
  if (diff_file)
153
168
  return diff_file;
154
169
  throw new Error("Error getting diff file");
155
170
  }
156
- exports.getDiffFile = getDiffFile;
157
171
  function getRefresh() {
158
172
  if (refresh_interval)
159
173
  return refresh_interval;
160
174
  throw new Error("Error getting refresh interval");
161
175
  }
162
- exports.getRefresh = getRefresh;
163
176
  function getDefaultConfigFile() {
164
177
  return `
165
178
  module.exports = {
@@ -173,7 +186,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
173
186
  };
174
187
  `.trim();
175
188
  }
176
- exports.getDefaultConfigFile = getDefaultConfigFile;
177
189
  async function loadConfig(skipConfigPath = false) {
178
190
  if (skipConfigPath) {
179
191
  Logger_1.logger.warn("Couldn't find config file. Loading default...");
@@ -184,10 +196,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
184
196
  if (configPath) {
185
197
  let projectConfig = (await (__syncRequire ? Promise.resolve(`${configPath}`).then(s => __importStar(require(s))) : new Promise((resolve_1, reject_1) => { require([configPath], resolve_1, reject_1); }).then(__importStar))).default;
186
198
  //merge in includes/excludes
187
- let { includes: pIncludes = {}, excludes: pExcludes = {}, tableOptions: pTableOptions = {}, } = projectConfig;
199
+ let { includes: pIncludes = {}, excludes: pExcludes = {}, tableOptions: pTableOptions = {}, scopes: pScopes = {}, } = projectConfig;
188
200
  projectConfig.includes = Object.assign(defaultOptions_1.includes, pIncludes);
189
201
  projectConfig.excludes = Object.assign(defaultOptions_1.excludes, pExcludes);
190
202
  projectConfig.tableOptions = Object.assign(defaultOptions_1.tableOptions, pTableOptions);
203
+ projectConfig.scopes = Object.assign(defaultOptions_1.scopes, pScopes);
191
204
  return projectConfig;
192
205
  }
193
206
  else {
@@ -218,7 +231,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218
231
  function updateManifest(man) {
219
232
  manifest = man;
220
233
  }
221
- exports.updateManifest = updateManifest;
222
234
  async function loadConfigPath(pth) {
223
235
  if (!pth) {
224
236
  pth = process.cwd();
@@ -9,7 +9,7 @@
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.tableOptions = exports.excludes = exports.includes = void 0;
12
+ exports.scopes = exports.tableOptions = exports.excludes = exports.includes = void 0;
13
13
  let excludes = {
14
14
  sys_scope_privilege: true,
15
15
  sys_dictionary: true,
@@ -36,17 +36,19 @@
36
36
  content_block_detail: true,
37
37
  sp_portal: true,
38
38
  sc_cat_item_producer: true,
39
- sys_impex_map: true
39
+ sys_impex_map: true,
40
40
  };
41
41
  exports.excludes = excludes;
42
42
  let includes = {
43
43
  content_css: {
44
44
  style: {
45
- type: "css"
46
- }
47
- }
45
+ type: "css",
46
+ },
47
+ },
48
48
  };
49
49
  exports.includes = includes;
50
50
  let tableOptions = {};
51
51
  exports.tableOptions = tableOptions;
52
+ let scopes = {};
53
+ exports.scopes = scopes;
52
54
  });
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
@@ -35,7 +45,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
35
45
  })(function (require, exports) {
36
46
  "use strict";
37
47
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.aggregateErrorMessages = exports.allSettled = exports.chunkArr = exports.wait = exports.getParsedFilesPayload = exports.parseFileNameParams = void 0;
48
+ exports.aggregateErrorMessages = exports.allSettled = void 0;
49
+ exports.parseFileNameParams = parseFileNameParams;
50
+ exports.getParsedFilesPayload = getParsedFilesPayload;
51
+ exports.wait = wait;
52
+ exports.chunkArr = chunkArr;
39
53
  const path_1 = __importDefault(require("path"));
40
54
  const ConfigManager = __importStar(require("./config"));
41
55
  async function _getConfigFromPath(params) {
@@ -95,7 +109,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
95
109
  ext,
96
110
  });
97
111
  }
98
- exports.parseFileNameParams = parseFileNameParams;
99
112
  async function getParsedFilesPayload(arr) {
100
113
  let results = [];
101
114
  for (let file of arr) {
@@ -106,13 +119,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
106
119
  }
107
120
  return results;
108
121
  }
109
- exports.getParsedFilesPayload = getParsedFilesPayload;
110
122
  function wait(ms) {
111
123
  return new Promise((resolve, reject) => {
112
124
  setTimeout(resolve, ms);
113
125
  });
114
126
  }
115
- exports.wait = wait;
116
127
  function chunkArr(arr, chunkSize) {
117
128
  const numChunks = Math.ceil(arr.length / chunkSize);
118
129
  const chunks = [];
@@ -123,7 +134,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
123
134
  }
124
135
  return chunks;
125
136
  }
126
- exports.chunkArr = chunkArr;
127
137
  const allSettled = (promises) => {
128
138
  return Promise.all(promises.map((prom) => prom
129
139
  .then((value) => ({
package/dist/gitUtils.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
package/dist/index.js CHANGED
File without changes
@@ -12,7 +12,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  })(function (require, exports) {
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.logBuildResults = exports.logPushResults = exports.logDeploy = exports.logFilePush = exports.devModeLog = exports.scopeCheckMessage = exports.log = void 0;
15
+ exports.logBuildResults = exports.logPushResults = exports.log = void 0;
16
+ exports.scopeCheckMessage = scopeCheckMessage;
17
+ exports.devModeLog = devModeLog;
18
+ exports.logFilePush = logFilePush;
19
+ exports.logDeploy = logDeploy;
16
20
  const Logger_1 = require("./Logger");
17
21
  const chalk_1 = __importDefault(require("chalk"));
18
22
  exports.log = console.log;
@@ -21,11 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
21
25
  let mScope = chalk_1.default.blue(scopeCheck.manifestScope);
22
26
  Logger_1.logger.error(`Your user's scope is set to ${sScope} but this project is configured for the ${mScope} scope. Please switch scopes in ServiceNow to continue.`);
23
27
  }
24
- exports.scopeCheckMessage = scopeCheckMessage;
25
28
  function devModeLog() {
26
29
  Logger_1.logger.info(`Dev mode started! Watching for changes...[${chalk_1.default.red("Press CTRL-C to Stop")}]\n`);
27
30
  }
28
- exports.devModeLog = devModeLog;
29
31
  function parseError(err) {
30
32
  return `${err.name}:
31
33
  ${err.message}
@@ -50,10 +52,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
50
52
  }
51
53
  spacer();
52
54
  }
53
- exports.logFilePush = logFilePush;
54
55
  function multiLog(files, success, resultSet, successMessage, errorMessage, err) {
55
56
  if (success) {
56
- let fileNum = chalk_1.default.bold.blue(resultSet.filter(result => result).length + "");
57
+ let fileNum = chalk_1.default.bold.blue(resultSet.filter((result) => result).length + "");
57
58
  let message = chalk_1.default.green(`${fileNum} files ${successMessage}`);
58
59
  Logger_1.logger.info(message);
59
60
  }
@@ -68,12 +69,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
68
69
  function logDeploy(files, success, resultSet, err) {
69
70
  multiLog(files, success, resultSet, "successfully deployed", "Failed to deploy files", err);
70
71
  }
71
- exports.logDeploy = logDeploy;
72
72
  function spacer() {
73
73
  Logger_1.logger.info("");
74
74
  }
75
75
  const logOperationResults = (results, operation) => {
76
- const unsuccessful = results.filter(r => !r.success);
76
+ const unsuccessful = results.filter((r) => !r.success);
77
77
  const logr = Logger_1.logger.getInternalLogger();
78
78
  const label = (content) => chalk_1.default.bold.blue(content);
79
79
  const success = (content) => chalk_1.default.bold.green(content);
package/dist/snClient.js CHANGED
@@ -12,7 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  })(function (require, exports) {
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.unwrapTableAPIFirstItem = exports.unwrapSNResponse = exports.defaultClient = exports.snClient = exports.processPushResponse = exports.retryOnErr = void 0;
15
+ exports.unwrapSNResponse = exports.defaultClient = exports.snClient = exports.processPushResponse = exports.retryOnErr = void 0;
16
+ exports.unwrapTableAPIFirstItem = unwrapTableAPIFirstItem;
16
17
  const axios_1 = __importDefault(require("axios"));
17
18
  const axios_rate_limit_1 = __importDefault(require("axios-rate-limit"));
18
19
  const genericUtils_1 = require("./genericUtils");
@@ -164,7 +165,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
164
165
  };
165
166
  const getManifest = (scope, config, withFiles = false) => {
166
167
  const endpoint = `api/x_nuvo_sinc/sinc/getManifest/${scope}`;
167
- const { includes = {}, excludes = {}, tableOptions = {} } = config;
168
+ const { includes = {}, excludes = {}, tableOptions = {}, scopes = {}, } = config;
168
169
  return client.post(endpoint, {
169
170
  includes,
170
171
  excludes,
@@ -232,5 +233,4 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
232
233
  throw e;
233
234
  }
234
235
  }
235
- exports.unwrapTableAPIFirstItem = unwrapTableAPIFirstItem;
236
236
  });
package/dist/wizard.js CHANGED
@@ -14,13 +14,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  }) : function(o, v) {
15
15
  o["default"] = v;
16
16
  });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
17
+ var __importStar = (this && this.__importStar) || (function () {
18
+ var ownKeys = function(o) {
19
+ ownKeys = Object.getOwnPropertyNames || function (o) {
20
+ var ar = [];
21
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
22
+ return ar;
23
+ };
24
+ return ownKeys(o);
25
+ };
26
+ return function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ })();
24
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
36
  };
@@ -35,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
35
45
  })(function (require, exports) {
36
46
  "use strict";
37
47
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.startWizard = void 0;
48
+ exports.startWizard = startWizard;
39
49
  const inquirer_1 = __importDefault(require("inquirer"));
40
50
  const ConfigManager = __importStar(require("./config"));
41
51
  const AppUtils = __importStar(require("./appUtils"));
@@ -48,7 +58,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
48
58
  let loginAnswers = await getLoginInfo();
49
59
  try {
50
60
  let { username, password, instance } = loginAnswers;
51
- const client = (0, snClient_1.snClient)(`https://${instance}/`, username, password);
61
+ let instanceUrl = instance.startsWith("http")
62
+ ? instance
63
+ : `https://${instance}`;
64
+ if (!instanceUrl.endsWith("/")) {
65
+ instanceUrl += `${instanceUrl}/`;
66
+ }
67
+ const client = (0, snClient_1.snClient)(instanceUrl, username, password);
52
68
  const apps = await (0, snClient_1.unwrapSNResponse)(client.getAppList());
53
69
  await setupDotEnv(loginAnswers);
54
70
  let hasConfig = await checkConfig();
@@ -73,7 +89,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
73
89
  return;
74
90
  }
75
91
  }
76
- exports.startWizard = startWizard;
77
92
  async function getLoginInfo() {
78
93
  return await inquirer_1.default.prompt([
79
94
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenonhq/sincronia-core",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Next-gen file syncer",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "node": ">=16.0.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@sincronia/types": "^0.4.2-alpha.3",
21
+ "@tenonhq/sincronia-types": "^0.0.2",
22
22
  "@types/dotenv": "^6.1.1",
23
23
  "@types/inquirer": "^9.0.4",
24
24
  "@types/jest": "^29.5.5",