@storm-software/untyped 0.17.24 → 0.17.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.17.23-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.17.25-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/untyped.cjs CHANGED
@@ -68100,6 +68100,15 @@ var errorConfigSchema = z.object({
68100
68100
  "A URL to a page that looks up the workspace's error messages given a specific error code"
68101
68101
  )
68102
68102
  }).describe("The workspace's error config used during the error process");
68103
+ var organizationConfigSchema = z.object({
68104
+ name: z.string().trim().describe("The name of the organization"),
68105
+ description: z.string().trim().optional().describe("A description of the organization"),
68106
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
68107
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
68108
+ url: z.string().trim().url().optional().describe(
68109
+ "A URL to a page that provides more information about the organization"
68110
+ )
68111
+ }).describe("The workspace's organization details");
68103
68112
  var stormWorkspaceConfigSchema = z.object({
68104
68113
  $schema: z.string().trim().default(
68105
68114
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -68111,7 +68120,9 @@ var stormWorkspaceConfigSchema = z.object({
68111
68120
  "The name of the service/package/scope using this configuration"
68112
68121
  ),
68113
68122
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
68114
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
68123
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
68124
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
68125
+ ),
68115
68126
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
68116
68127
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
68117
68128
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -69620,7 +69631,13 @@ var getConfigEnv = () => {
69620
69631
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
69621
69632
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
69622
69633
  },
69623
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
69634
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
69635
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
69636
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
69637
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
69638
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
69639
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
69640
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
69624
69641
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
69625
69642
  license: process.env[`${prefix}LICENSE`] || void 0,
69626
69643
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -69828,7 +69845,33 @@ var setConfigEnv = (config) => {
69828
69845
  }
69829
69846
  }
69830
69847
  if (config.organization) {
69831
- process.env[`${prefix}ORGANIZATION`] = config.organization;
69848
+ if (typeof config.organization === "string") {
69849
+ process.env[`${prefix}ORG`] = config.organization;
69850
+ process.env[`${prefix}ORG_NAME`] = config.organization;
69851
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
69852
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
69853
+ } else {
69854
+ process.env[`${prefix}ORG`] = config.organization.name;
69855
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
69856
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
69857
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
69858
+ if (config.organization.url) {
69859
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
69860
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
69861
+ }
69862
+ if (config.organization.description) {
69863
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
69864
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
69865
+ }
69866
+ if (config.organization.logo) {
69867
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
69868
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
69869
+ }
69870
+ if (config.organization.icon) {
69871
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
69872
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
69873
+ }
69874
+ }
69832
69875
  }
69833
69876
  if (config.packageManager) {
69834
69877
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
package/bin/untyped.js CHANGED
@@ -68310,6 +68310,15 @@ var errorConfigSchema = z.object({
68310
68310
  "A URL to a page that looks up the workspace's error messages given a specific error code"
68311
68311
  )
68312
68312
  }).describe("The workspace's error config used during the error process");
68313
+ var organizationConfigSchema = z.object({
68314
+ name: z.string().trim().describe("The name of the organization"),
68315
+ description: z.string().trim().optional().describe("A description of the organization"),
68316
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
68317
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
68318
+ url: z.string().trim().url().optional().describe(
68319
+ "A URL to a page that provides more information about the organization"
68320
+ )
68321
+ }).describe("The workspace's organization details");
68313
68322
  var stormWorkspaceConfigSchema = z.object({
68314
68323
  $schema: z.string().trim().default(
68315
68324
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -68321,7 +68330,9 @@ var stormWorkspaceConfigSchema = z.object({
68321
68330
  "The name of the service/package/scope using this configuration"
68322
68331
  ),
68323
68332
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
68324
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
68333
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
68334
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
68335
+ ),
68325
68336
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
68326
68337
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
68327
68338
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -69827,7 +69838,13 @@ var getConfigEnv = () => {
69827
69838
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
69828
69839
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
69829
69840
  },
69830
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
69841
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
69842
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
69843
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
69844
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
69845
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
69846
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
69847
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
69831
69848
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
69832
69849
  license: process.env[`${prefix}LICENSE`] || void 0,
69833
69850
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -70035,7 +70052,33 @@ var setConfigEnv = (config) => {
70035
70052
  }
70036
70053
  }
70037
70054
  if (config.organization) {
70038
- process.env[`${prefix}ORGANIZATION`] = config.organization;
70055
+ if (typeof config.organization === "string") {
70056
+ process.env[`${prefix}ORG`] = config.organization;
70057
+ process.env[`${prefix}ORG_NAME`] = config.organization;
70058
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
70059
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
70060
+ } else {
70061
+ process.env[`${prefix}ORG`] = config.organization.name;
70062
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
70063
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
70064
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
70065
+ if (config.organization.url) {
70066
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
70067
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
70068
+ }
70069
+ if (config.organization.description) {
70070
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
70071
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
70072
+ }
70073
+ if (config.organization.logo) {
70074
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
70075
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
70076
+ }
70077
+ if (config.organization.icon) {
70078
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
70079
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
70080
+ }
70081
+ }
70039
70082
  }
70040
70083
  if (config.packageManager) {
70041
70084
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-SMM6T74L.js";
4
+ } from "./chunk-MICZJ4JB.js";
5
5
  import {
6
6
  getOutputFile,
7
7
  init_esm_shims
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk3TOTRSKScjs = require('./chunk-3TOTRSKS.cjs');
4
+ var _chunkT64QT4K7cjs = require('./chunk-T64QT4K7.cjs');
5
5
 
6
6
 
7
7
 
@@ -27,10 +27,10 @@ ${_untyped.generateTypes.call(void 0, schema, {
27
27
  function generateDeclarationFile(schema, file, config) {
28
28
  try {
29
29
  const declarations = _chunkI7IR7VJQcjs.getOutputFile.call(void 0, file, "d.ts");
30
- _chunk3TOTRSKScjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
30
+ _chunkT64QT4K7cjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
31
31
  return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
32
32
  } catch (error) {
33
- _chunk3TOTRSKScjs.writeError.call(void 0,
33
+ _chunkT64QT4K7cjs.writeError.call(void 0,
34
34
  `Error writing declaration file for ${file.name}
35
35
 
36
36
  Error:
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-SMM6T74L.js";
4
+ } from "./chunk-MICZJ4JB.js";
5
5
  import {
6
6
  getOutputFile,
7
7
  init_esm_shims
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkNMHD4QQ7cjs = require('./chunk-NMHD4QQ7.cjs');
3
+ var _chunkBQZ6CBMWcjs = require('./chunk-BQZ6CBMW.cjs');
4
4
 
5
5
 
6
- var _chunkELOMUEGVcjs = require('./chunk-ELOMUEGV.cjs');
6
+ var _chunkOEFP2ZPNcjs = require('./chunk-OEFP2ZPN.cjs');
7
7
 
8
8
 
9
- var _chunkLXTGG4MPcjs = require('./chunk-LXTGG4MP.cjs');
9
+ var _chunkX7F4YCCWcjs = require('./chunk-X7F4YCCW.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunk3TOTRSKScjs = require('./chunk-3TOTRSKS.cjs');
14
+ var _chunkT64QT4K7cjs = require('./chunk-T64QT4K7.cjs');
15
15
 
16
16
 
17
17
 
@@ -22,7 +22,7 @@ _chunkI7IR7VJQcjs.init_cjs_shims.call(void 0, );
22
22
  var _glob = require('glob');
23
23
  var _loader = require('untyped/loader');
24
24
  var getGenerateAction = (config) => async (options) => {
25
- _chunk3TOTRSKScjs.writeTrace.call(void 0,
25
+ _chunkT64QT4K7cjs.writeTrace.call(void 0,
26
26
  `Running Storm Untyped with options: ${JSON.stringify(options)}`,
27
27
  config
28
28
  );
@@ -41,7 +41,7 @@ var getGenerateAction = (config) => async (options) => {
41
41
  });
42
42
  await Promise.all(
43
43
  files.map(async (file) => {
44
- _chunk3TOTRSKScjs.writeTrace.call(void 0,
44
+ _chunkT64QT4K7cjs.writeTrace.call(void 0,
45
45
  `Generating files for schema file: ${_chunkI7IR7VJQcjs.joinPaths.call(void 0, file.parentPath, file.name)}`,
46
46
  config
47
47
  );
@@ -49,7 +49,7 @@ var getGenerateAction = (config) => async (options) => {
49
49
  try {
50
50
  schema = await _loader.loadSchema.call(void 0, _chunkI7IR7VJQcjs.joinPaths.call(void 0, file.parentPath, file.name), {
51
51
  jiti: {
52
- debug: _chunk3TOTRSKScjs.isVerbose.call(void 0, config.logLevel),
52
+ debug: _chunkT64QT4K7cjs.isVerbose.call(void 0, config.logLevel),
53
53
  fsCache: config.skipCache ? false : _chunkI7IR7VJQcjs.joinPaths.call(void 0,
54
54
  config.directories.cache || _chunkI7IR7VJQcjs.joinPaths.call(void 0,
55
55
  config.workspaceRoot,
@@ -61,7 +61,7 @@ var getGenerateAction = (config) => async (options) => {
61
61
  }
62
62
  });
63
63
  } catch (error) {
64
- _chunk3TOTRSKScjs.writeError.call(void 0,
64
+ _chunkT64QT4K7cjs.writeError.call(void 0,
65
65
  `Error while parsing schema file: ${_chunkI7IR7VJQcjs.joinPaths.call(void 0, file.parentPath, file.name)}
66
66
 
67
67
  Error:
@@ -76,9 +76,9 @@ ${JSON.stringify(schema)}
76
76
  throw error;
77
77
  }
78
78
  const promises = [];
79
- promises.push(_chunkNMHD4QQ7cjs.generateDeclarationFile.call(void 0, schema, file, config));
80
- promises.push(_chunkLXTGG4MPcjs.generateMarkdownFile.call(void 0, schema, file, config));
81
- promises.push(_chunkELOMUEGVcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
79
+ promises.push(_chunkBQZ6CBMWcjs.generateDeclarationFile.call(void 0, schema, file, config));
80
+ promises.push(_chunkX7F4YCCWcjs.generateMarkdownFile.call(void 0, schema, file, config));
81
+ promises.push(_chunkOEFP2ZPNcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
82
82
  return Promise.all(promises);
83
83
  })
84
84
  );
@@ -5863,6 +5863,15 @@ var errorConfigSchema = z.object({
5863
5863
  "A URL to a page that looks up the workspace's error messages given a specific error code"
5864
5864
  )
5865
5865
  }).describe("The workspace's error config used during the error process");
5866
+ var organizationConfigSchema = z.object({
5867
+ name: z.string().trim().describe("The name of the organization"),
5868
+ description: z.string().trim().optional().describe("A description of the organization"),
5869
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
5870
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
5871
+ url: z.string().trim().url().optional().describe(
5872
+ "A URL to a page that provides more information about the organization"
5873
+ )
5874
+ }).describe("The workspace's organization details");
5866
5875
  var stormWorkspaceConfigSchema = z.object({
5867
5876
  $schema: z.string().trim().default(
5868
5877
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -5874,7 +5883,9 @@ var stormWorkspaceConfigSchema = z.object({
5874
5883
  "The name of the service/package/scope using this configuration"
5875
5884
  ),
5876
5885
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
5877
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
5886
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
5887
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
5888
+ ),
5878
5889
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
5879
5890
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
5880
5891
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-SMM6T74L.js";
4
+ } from "./chunk-MICZJ4JB.js";
5
5
  import {
6
6
  getOutputFile,
7
7
  init_esm_shims
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk3TOTRSKScjs = require('./chunk-3TOTRSKS.cjs');
4
+ var _chunkT64QT4K7cjs = require('./chunk-T64QT4K7.cjs');
5
5
 
6
6
 
7
7
 
@@ -13,10 +13,10 @@ var _promises = require('fs/promises');
13
13
  function generateJsonSchemaFile(schema, file, config) {
14
14
  try {
15
15
  const jsonSchema = _chunkI7IR7VJQcjs.getOutputFile.call(void 0, file, "json");
16
- _chunk3TOTRSKScjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
16
+ _chunkT64QT4K7cjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
17
17
  return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
18
18
  } catch (error) {
19
- _chunk3TOTRSKScjs.writeError.call(void 0,
19
+ _chunkT64QT4K7cjs.writeError.call(void 0,
20
20
  `Error writing JSON schema file for ${file.name}
21
21
 
22
22
  Error:
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  generateDeclarationFile
3
- } from "./chunk-6NLJJ5TZ.js";
3
+ } from "./chunk-62EBUNCK.js";
4
4
  import {
5
5
  generateJsonSchemaFile
6
- } from "./chunk-5MN4HZ3U.js";
6
+ } from "./chunk-EKXZZB6C.js";
7
7
  import {
8
8
  generateMarkdownFile
9
- } from "./chunk-PZOX24PA.js";
9
+ } from "./chunk-MJVXHV44.js";
10
10
  import {
11
11
  isVerbose,
12
12
  writeError,
13
13
  writeTrace
14
- } from "./chunk-SMM6T74L.js";
14
+ } from "./chunk-MICZJ4JB.js";
15
15
  import {
16
16
  init_esm_shims,
17
17
  joinPaths
@@ -5855,6 +5855,15 @@ var errorConfigSchema = z.object({
5855
5855
  "A URL to a page that looks up the workspace's error messages given a specific error code"
5856
5856
  )
5857
5857
  }).describe("The workspace's error config used during the error process");
5858
+ var organizationConfigSchema = z.object({
5859
+ name: z.string().trim().describe("The name of the organization"),
5860
+ description: z.string().trim().optional().describe("A description of the organization"),
5861
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
5862
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
5863
+ url: z.string().trim().url().optional().describe(
5864
+ "A URL to a page that provides more information about the organization"
5865
+ )
5866
+ }).describe("The workspace's organization details");
5858
5867
  var stormWorkspaceConfigSchema = z.object({
5859
5868
  $schema: z.string().trim().default(
5860
5869
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -5866,7 +5875,9 @@ var stormWorkspaceConfigSchema = z.object({
5866
5875
  "The name of the service/package/scope using this configuration"
5867
5876
  ),
5868
5877
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
5869
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
5878
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
5879
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
5880
+ ),
5870
5881
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
5871
5882
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
5872
5883
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk3TOTRSKScjs = require('./chunk-3TOTRSKS.cjs');
4
+ var _chunkT64QT4K7cjs = require('./chunk-T64QT4K7.cjs');
5
5
 
6
6
 
7
7
 
@@ -47,10 +47,10 @@ function generateMarkdownLevel(schema, title, level) {
47
47
  function generateMarkdownFile(schema, file, config) {
48
48
  try {
49
49
  const declarations = _chunkI7IR7VJQcjs.getOutputFile.call(void 0, file, "md");
50
- _chunk3TOTRSKScjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
50
+ _chunkT64QT4K7cjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
51
51
  return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
52
52
  } catch (error) {
53
- _chunk3TOTRSKScjs.writeError.call(void 0,
53
+ _chunkT64QT4K7cjs.writeError.call(void 0,
54
54
  `Error writing markdown file for ${file.name}
55
55
 
56
56
  Error:
package/dist/generate.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLRJS3SLIcjs = require('./chunk-LRJS3SLI.cjs');
4
- require('./chunk-NMHD4QQ7.cjs');
5
- require('./chunk-ELOMUEGV.cjs');
6
- require('./chunk-LXTGG4MP.cjs');
7
- require('./chunk-3TOTRSKS.cjs');
3
+ var _chunkIJE6FK46cjs = require('./chunk-IJE6FK46.cjs');
4
+ require('./chunk-BQZ6CBMW.cjs');
5
+ require('./chunk-OEFP2ZPN.cjs');
6
+ require('./chunk-X7F4YCCW.cjs');
7
+ require('./chunk-T64QT4K7.cjs');
8
8
  require('./chunk-I7IR7VJQ.cjs');
9
9
 
10
10
 
11
- exports.getGenerateAction = _chunkLRJS3SLIcjs.getGenerateAction;
11
+ exports.getGenerateAction = _chunkIJE6FK46cjs.getGenerateAction;
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-hD8tQ5TZ.cjs';
1
+ import { S as StormWorkspaceConfig } from './types-YRG_k482.cjs';
2
2
  import 'zod';
3
3
 
4
4
  declare const getGenerateAction: (config: StormWorkspaceConfig) => (options: {
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-hD8tQ5TZ.js';
1
+ import { S as StormWorkspaceConfig } from './types-YRG_k482.js';
2
2
  import 'zod';
3
3
 
4
4
  declare const getGenerateAction: (config: StormWorkspaceConfig) => (options: {
package/dist/generate.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-DDVOX3FY.js";
4
- import "./chunk-6NLJJ5TZ.js";
5
- import "./chunk-5MN4HZ3U.js";
6
- import "./chunk-PZOX24PA.js";
7
- import "./chunk-SMM6T74L.js";
3
+ } from "./chunk-OMAJTHXS.js";
4
+ import "./chunk-62EBUNCK.js";
5
+ import "./chunk-EKXZZB6C.js";
6
+ import "./chunk-MJVXHV44.js";
7
+ import "./chunk-MICZJ4JB.js";
8
8
  import "./chunk-AUD2VUAW.js";
9
9
  export {
10
10
  getGenerateAction
package/dist/index.cjs CHANGED
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLRJS3SLIcjs = require('./chunk-LRJS3SLI.cjs');
3
+ var _chunkIJE6FK46cjs = require('./chunk-IJE6FK46.cjs');
4
4
  require('./chunk-DK2CVNUK.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkNMHD4QQ7cjs = require('./chunk-NMHD4QQ7.cjs');
8
+ var _chunkBQZ6CBMWcjs = require('./chunk-BQZ6CBMW.cjs');
9
9
 
10
10
 
11
- var _chunkELOMUEGVcjs = require('./chunk-ELOMUEGV.cjs');
11
+ var _chunkOEFP2ZPNcjs = require('./chunk-OEFP2ZPN.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkLXTGG4MPcjs = require('./chunk-LXTGG4MP.cjs');
16
- require('./chunk-3TOTRSKS.cjs');
15
+ var _chunkX7F4YCCWcjs = require('./chunk-X7F4YCCW.cjs');
16
+ require('./chunk-T64QT4K7.cjs');
17
17
 
18
18
 
19
19
 
@@ -29,4 +29,4 @@ _chunkI7IR7VJQcjs.init_cjs_shims.call(void 0, );
29
29
 
30
30
 
31
31
 
32
- exports.generateDeclaration = _chunkNMHD4QQ7cjs.generateDeclaration; exports.generateDeclarationFile = _chunkNMHD4QQ7cjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkELOMUEGVcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkLXTGG4MPcjs.generateMarkdown; exports.generateMarkdownFile = _chunkLXTGG4MPcjs.generateMarkdownFile; exports.getGenerateAction = _chunkLRJS3SLIcjs.getGenerateAction; exports.getOutputFile = _chunkI7IR7VJQcjs.getOutputFile;
32
+ exports.generateDeclaration = _chunkBQZ6CBMWcjs.generateDeclaration; exports.generateDeclarationFile = _chunkBQZ6CBMWcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkOEFP2ZPNcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkX7F4YCCWcjs.generateMarkdown; exports.generateMarkdownFile = _chunkX7F4YCCWcjs.generateMarkdownFile; exports.getGenerateAction = _chunkIJE6FK46cjs.getGenerateAction; exports.getOutputFile = _chunkI7IR7VJQcjs.getOutputFile;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.c
3
3
  export { generateJsonSchemaFile } from './generators/json-schema.cjs';
4
4
  export { generateMarkdown, generateMarkdownFile } from './generators/markdown.cjs';
5
5
  export { getOutputFile } from './utilities.cjs';
6
- import './types-hD8tQ5TZ.cjs';
6
+ import './types-YRG_k482.cjs';
7
7
  import 'zod';
8
8
  import 'glob';
9
9
  import 'untyped';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.j
3
3
  export { generateJsonSchemaFile } from './generators/json-schema.js';
4
4
  export { generateMarkdown, generateMarkdownFile } from './generators/markdown.js';
5
5
  export { getOutputFile } from './utilities.js';
6
- import './types-hD8tQ5TZ.js';
6
+ import './types-YRG_k482.js';
7
7
  import 'zod';
8
8
  import 'glob';
9
9
  import 'untyped';
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-DDVOX3FY.js";
3
+ } from "./chunk-OMAJTHXS.js";
4
4
  import "./chunk-RYUTIRYU.js";
5
5
  import {
6
6
  generateDeclaration,
7
7
  generateDeclarationFile
8
- } from "./chunk-6NLJJ5TZ.js";
8
+ } from "./chunk-62EBUNCK.js";
9
9
  import {
10
10
  generateJsonSchemaFile
11
- } from "./chunk-5MN4HZ3U.js";
11
+ } from "./chunk-EKXZZB6C.js";
12
12
  import {
13
13
  generateMarkdown,
14
14
  generateMarkdownFile
15
- } from "./chunk-PZOX24PA.js";
16
- import "./chunk-SMM6T74L.js";
15
+ } from "./chunk-MJVXHV44.js";
16
+ import "./chunk-MICZJ4JB.js";
17
17
  import {
18
18
  getOutputFile,
19
19
  init_esm_shims
@@ -8,7 +8,25 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
8
8
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
9
  name: z.ZodOptional<z.ZodString>;
10
10
  namespace: z.ZodOptional<z.ZodString>;
11
- organization: z.ZodDefault<z.ZodString>;
11
+ organization: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
12
+ name: z.ZodString;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ logo: z.ZodOptional<z.ZodString>;
15
+ icon: z.ZodOptional<z.ZodString>;
16
+ url: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ name: string;
19
+ description?: string | undefined;
20
+ logo?: string | undefined;
21
+ icon?: string | undefined;
22
+ url?: string | undefined;
23
+ }, {
24
+ name: string;
25
+ description?: string | undefined;
26
+ logo?: string | undefined;
27
+ icon?: string | undefined;
28
+ url?: string | undefined;
29
+ }>, z.ZodString]>>;
12
30
  repository: z.ZodOptional<z.ZodString>;
13
31
  license: z.ZodDefault<z.ZodString>;
14
32
  homepage: z.ZodOptional<z.ZodString>;
@@ -72,8 +90,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
72
90
  codesFile: string;
73
91
  url?: string | undefined;
74
92
  }, {
75
- codesFile?: string | undefined;
76
93
  url?: string | undefined;
94
+ codesFile?: string | undefined;
77
95
  }>;
78
96
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
79
97
  workspaceRoot: z.ZodString;
@@ -843,7 +861,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
843
861
  }>]>>]>]>;
844
862
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
845
863
  }, "strip", z.ZodTypeAny, {
846
- organization: string;
847
864
  license: string;
848
865
  branch: string;
849
866
  owner: string;
@@ -1044,6 +1061,13 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1044
1061
  extends?: string | string[] | undefined;
1045
1062
  name?: string | undefined;
1046
1063
  namespace?: string | undefined;
1064
+ organization?: string | {
1065
+ name: string;
1066
+ description?: string | undefined;
1067
+ logo?: string | undefined;
1068
+ icon?: string | undefined;
1069
+ url?: string | undefined;
1070
+ } | undefined;
1047
1071
  repository?: string | undefined;
1048
1072
  homepage?: string | undefined;
1049
1073
  docs?: string | undefined;
@@ -1072,8 +1096,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1072
1096
  github?: string | undefined;
1073
1097
  };
1074
1098
  error: {
1075
- codesFile?: string | undefined;
1076
1099
  url?: string | undefined;
1100
+ codesFile?: string | undefined;
1077
1101
  };
1078
1102
  workspaceRoot: string;
1079
1103
  directories: {
@@ -1235,7 +1259,13 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1235
1259
  extends?: string | string[] | undefined;
1236
1260
  name?: string | undefined;
1237
1261
  namespace?: string | undefined;
1238
- organization?: string | undefined;
1262
+ organization?: string | {
1263
+ name: string;
1264
+ description?: string | undefined;
1265
+ logo?: string | undefined;
1266
+ icon?: string | undefined;
1267
+ url?: string | undefined;
1268
+ } | undefined;
1239
1269
  repository?: string | undefined;
1240
1270
  license?: string | undefined;
1241
1271
  homepage?: string | undefined;
@@ -8,7 +8,25 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
8
8
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
9
  name: z.ZodOptional<z.ZodString>;
10
10
  namespace: z.ZodOptional<z.ZodString>;
11
- organization: z.ZodDefault<z.ZodString>;
11
+ organization: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
12
+ name: z.ZodString;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ logo: z.ZodOptional<z.ZodString>;
15
+ icon: z.ZodOptional<z.ZodString>;
16
+ url: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ name: string;
19
+ description?: string | undefined;
20
+ logo?: string | undefined;
21
+ icon?: string | undefined;
22
+ url?: string | undefined;
23
+ }, {
24
+ name: string;
25
+ description?: string | undefined;
26
+ logo?: string | undefined;
27
+ icon?: string | undefined;
28
+ url?: string | undefined;
29
+ }>, z.ZodString]>>;
12
30
  repository: z.ZodOptional<z.ZodString>;
13
31
  license: z.ZodDefault<z.ZodString>;
14
32
  homepage: z.ZodOptional<z.ZodString>;
@@ -72,8 +90,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
72
90
  codesFile: string;
73
91
  url?: string | undefined;
74
92
  }, {
75
- codesFile?: string | undefined;
76
93
  url?: string | undefined;
94
+ codesFile?: string | undefined;
77
95
  }>;
78
96
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
79
97
  workspaceRoot: z.ZodString;
@@ -843,7 +861,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
843
861
  }>]>>]>]>;
844
862
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
845
863
  }, "strip", z.ZodTypeAny, {
846
- organization: string;
847
864
  license: string;
848
865
  branch: string;
849
866
  owner: string;
@@ -1044,6 +1061,13 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1044
1061
  extends?: string | string[] | undefined;
1045
1062
  name?: string | undefined;
1046
1063
  namespace?: string | undefined;
1064
+ organization?: string | {
1065
+ name: string;
1066
+ description?: string | undefined;
1067
+ logo?: string | undefined;
1068
+ icon?: string | undefined;
1069
+ url?: string | undefined;
1070
+ } | undefined;
1047
1071
  repository?: string | undefined;
1048
1072
  homepage?: string | undefined;
1049
1073
  docs?: string | undefined;
@@ -1072,8 +1096,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1072
1096
  github?: string | undefined;
1073
1097
  };
1074
1098
  error: {
1075
- codesFile?: string | undefined;
1076
1099
  url?: string | undefined;
1100
+ codesFile?: string | undefined;
1077
1101
  };
1078
1102
  workspaceRoot: string;
1079
1103
  directories: {
@@ -1235,7 +1259,13 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1235
1259
  extends?: string | string[] | undefined;
1236
1260
  name?: string | undefined;
1237
1261
  namespace?: string | undefined;
1238
- organization?: string | undefined;
1262
+ organization?: string | {
1263
+ name: string;
1264
+ description?: string | undefined;
1265
+ logo?: string | undefined;
1266
+ icon?: string | undefined;
1267
+ url?: string | undefined;
1268
+ } | undefined;
1239
1269
  repository?: string | undefined;
1240
1270
  license?: string | undefined;
1241
1271
  homepage?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/untyped",
3
- "version": "0.17.24",
3
+ "version": "0.17.26",
4
4
  "type": "module",
5
5
  "description": "A package containing `untyped` utilities for building Storm Software libraries and applications",
6
6
  "repository": {