@nxtedition/types 23.0.42 → 23.0.44

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.
@@ -8,3 +8,4 @@ export type Records = {
8
8
  } & {
9
9
  [Property in keyof DesignDomainRecords as `${string}${Property}${string}`]: DesignDomainRecords[Property];
10
10
  } & ExactRecords;
11
+ export { RecordNameToType } from './utils.ts';
@@ -1,7 +1,11 @@
1
+ import type { EmptyObject, SingleKeyObject } from 'type-fest';
1
2
  import type { DomainRecords, DomainRows, ExactRecords } from './index.ts';
2
- export type RecordNameToType<T extends string> = T extends keyof ExactRecords ? ExactRecords[T] : T extends `:${string}` ? DomainRows : T extends `${string}:${infer Domain}?${string}` ? `:${Domain}?` extends keyof DomainRecords ? DomainRecords[`:${Domain}?`] : unknown : T extends `${string}:${infer Pattern}` ? `:${Pattern}` extends keyof DomainRecords ? DomainRecords[`:${Pattern}`] : unknown : unknown;
3
+ export type RecordNameToType<T extends string> = T extends keyof ExactRecords ? GettablePossibleEmpty<ExactRecords[T]> : T extends `:${string}` ? GettablePossibleEmpty<DomainRows> : T extends `${string}:${infer Domain}?${string}` ? `:${Domain}?` extends keyof DomainRecords ? GettablePossibleEmpty<DomainRecords[`:${Domain}?`]> : unknown : T extends `${string}:${infer Pattern}` ? `:${Pattern}` extends keyof DomainRecords ? GettablePossibleEmpty<DomainRecords[`:${Pattern}`]> : unknown : unknown;
3
4
  declare const providedRecordSymbol: unique symbol;
4
5
  export type ProvidedRecord<T> = T & {
5
6
  [providedRecordSymbol]: never;
6
7
  };
8
+ export type GettablePossibleEmpty<Data> = keyof Data extends never ? EmptyObject : Partial<Data> extends Data ? Data : SingleKeyObject<Data> extends never ? Data | EmptyObject : {
9
+ [K in keyof Data]+?: Data[K];
10
+ };
7
11
  export {};
@@ -5,3 +5,5 @@ expectType(getType(":user"));
5
5
  expectType(getType("id:user.receivedNotifications?"));
6
6
  expectType(getType("id:user.receivedNotifications?limit=2"));
7
7
  expectType(getType("{}:search?"));
8
+ expectType(getType("id:general.title"));
9
+ expectType(getType("id:file.replicate"));
@@ -12205,7 +12205,7 @@ function _assertGuardDomainRecord(domain, input) {
12205
12205
  }; })()(input);
12206
12206
  }
12207
12207
  case ":script?": {
12208
- return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12208
+ return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12209
12209
  const value = input[key];
12210
12210
  if (undefined === value)
12211
12211
  return true;
@@ -12275,7 +12275,7 @@ function _assertGuardDomainRecord(domain, input) {
12275
12275
  path: _path + ".direction",
12276
12276
  expected: "(\"ltr\" | \"rtl\" | null)",
12277
12277
  value: input.direction
12278
- }, _errorFactory)) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12278
+ }, _errorFactory)) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12279
12279
  method: "typia.assertGuard",
12280
12280
  path: _path + ".format",
12281
12281
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
@@ -12424,7 +12424,7 @@ function _assertGuardDomainRecord(domain, input) {
12424
12424
  }; })()(input);
12425
12425
  }
12426
12426
  case ":script.revision?": {
12427
- return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12427
+ return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12428
12428
  const value = input[key];
12429
12429
  if (undefined === value)
12430
12430
  return true;
@@ -12509,7 +12509,7 @@ function _assertGuardDomainRecord(domain, input) {
12509
12509
  path: _path + ".direction",
12510
12510
  expected: "(\"ltr\" | \"rtl\" | null)",
12511
12511
  value: input.direction
12512
- }, _errorFactory)) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12512
+ }, _errorFactory)) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12513
12513
  method: "typia.assertGuard",
12514
12514
  path: _path + ".format",
12515
12515
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
@@ -12313,7 +12313,7 @@ function _assertDomainRecord(domain, input) {
12313
12313
  }; })()(input);
12314
12314
  }
12315
12315
  case ":script?": {
12316
- return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12316
+ return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12317
12317
  const value = input[key];
12318
12318
  if (undefined === value)
12319
12319
  return true;
@@ -12383,7 +12383,7 @@ function _assertDomainRecord(domain, input) {
12383
12383
  path: _path + ".direction",
12384
12384
  expected: "(\"ltr\" | \"rtl\" | null)",
12385
12385
  value: input.direction
12386
- }, _errorFactory)) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12386
+ }, _errorFactory)) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12387
12387
  method: "typia.assert",
12388
12388
  path: _path + ".format",
12389
12389
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
@@ -12535,7 +12535,7 @@ function _assertDomainRecord(domain, input) {
12535
12535
  }; })()(input);
12536
12536
  }
12537
12537
  case ":script.revision?": {
12538
- return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12538
+ return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
12539
12539
  const value = input[key];
12540
12540
  if (undefined === value)
12541
12541
  return true;
@@ -12620,7 +12620,7 @@ function _assertDomainRecord(domain, input) {
12620
12620
  path: _path + ".direction",
12621
12621
  expected: "(\"ltr\" | \"rtl\" | null)",
12622
12622
  value: input.direction
12623
- }, _errorFactory)) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12623
+ }, _errorFactory)) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || __typia_transform__assertGuard._assertGuard(_exceptionable, {
12624
12624
  method: "typia.assert",
12625
12625
  path: _path + ".format",
12626
12626
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
@@ -820,7 +820,7 @@ function _isDomainRecord(domain, input) {
820
820
  return (() => { const _io0 = input => "string" === typeof input.value; return input => "object" === typeof input && null !== input && _io0(input); })()(input);
821
821
  }
822
822
  case ":script?": {
823
- return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
823
+ return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
824
824
  const value = input[key];
825
825
  if (undefined === value)
826
826
  return true;
@@ -834,7 +834,7 @@ function _isDomainRecord(domain, input) {
834
834
  return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && "string" === typeof input.value; return input => "object" === typeof input && null !== input && _io0(input); })()(input);
835
835
  }
836
836
  case ":script.revision?": {
837
- return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
837
+ return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
838
838
  const value = input[key];
839
839
  if (undefined === value)
840
840
  return true;
@@ -10086,16 +10086,16 @@ function _schemasDomainRecord(domain) {
10086
10086
  "const": "center"
10087
10087
  },
10088
10088
  {
10089
- "const": "left"
10089
+ "const": "start"
10090
10090
  },
10091
10091
  {
10092
- "const": "start"
10092
+ "const": "end"
10093
10093
  },
10094
10094
  {
10095
- "const": "right"
10095
+ "const": "left"
10096
10096
  },
10097
10097
  {
10098
- "const": "end"
10098
+ "const": "right"
10099
10099
  },
10100
10100
  {
10101
10101
  "const": "justify"
@@ -10322,16 +10322,16 @@ function _schemasDomainRecord(domain) {
10322
10322
  "const": "center"
10323
10323
  },
10324
10324
  {
10325
- "const": "left"
10325
+ "const": "start"
10326
10326
  },
10327
10327
  {
10328
- "const": "start"
10328
+ "const": "end"
10329
10329
  },
10330
10330
  {
10331
- "const": "right"
10331
+ "const": "left"
10332
10332
  },
10333
10333
  {
10334
- "const": "end"
10334
+ "const": "right"
10335
10335
  },
10336
10336
  {
10337
10337
  "const": "justify"
@@ -1634,7 +1634,7 @@ function _stringifyDomainRecord(domain, input) {
1634
1634
  }
1635
1635
  case ":script?": {
1636
1636
  return (() => { const _so0 = input => `{"value":${_so1(input.value)}}`; const _so1 = input => `{"root":${_so2(input.root)}}`; const _so2 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}${undefined === input.textFormat ? "" : `"textFormat":${undefined !== input.textFormat ? input.textFormat : undefined},`}${undefined === input.textStyle ? "" : `"textStyle":${undefined !== input.textStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version},"children":${`[${input.children.map(elem => _so4(elem)).join(",")}]`},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${"\"" + input.format + "\""},"indent":${input.indent}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1637
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
1637
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
1638
1638
  const value = input[key];
1639
1639
  if (undefined === value)
1640
1640
  return true;
@@ -1649,7 +1649,7 @@ function _stringifyDomainRecord(domain, input) {
1649
1649
  }
1650
1650
  case ":script.revision?": {
1651
1651
  return (() => { const _so0 = input => `{"$parent":${__typia_transform__jsonStringifyString._jsonStringifyString(input.$parent)},"scriptId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.scriptId)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"value":${_so1(input.value)}}`; const _so1 = input => `{"root":${_so2(input.root)}}`; const _so2 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}${undefined === input.textFormat ? "" : `"textFormat":${undefined !== input.textFormat ? input.textFormat : undefined},`}${undefined === input.textStyle ? "" : `"textStyle":${undefined !== input.textStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version},"children":${`[${input.children.map(elem => _so4(elem)).join(",")}]`},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${"\"" + input.format + "\""},"indent":${input.indent}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1652
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
1652
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${input.version}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
1653
1653
  const value = input[key];
1654
1654
  if (undefined === value)
1655
1655
  return true;
@@ -1,3 +1,4 @@
1
+ import type { EmptyObject } from 'type-fest';
1
2
  import type { ExactRecords, DomainRecords } from '../index.ts';
2
3
  export type ParsedRecordName = ExactRecordName | DomainRecord | DomainRowsRecord;
3
4
  export interface ExactRecordName {
@@ -12,4 +13,5 @@ export interface DomainRecord {
12
13
  export interface DomainRowsRecord {
13
14
  type: "domain-rows";
14
15
  }
16
+ export declare function isEmptyRecord<NonEmpty extends object>(data: NonEmpty | EmptyObject): data is EmptyObject;
15
17
  export declare function parseRecordName(name: string): ParsedRecordName;
@@ -1,4 +1,7 @@
1
1
  const _exactRecordNames = new Set(["asset.assignees", "asset.clone", "asset.deadlines", "asset.duration", "asset.embedding", "asset.icon", "asset.locations", "asset.media", "asset.tags", "asset.title", "asset.types", "storage.locations?", "storage.zones?", "nxt.status?", "media.subtitles", "media.subtitles?", "media.transcribe?", "media.fonts?", "media.consolidate", "asset-daemon", "asset-daemon:user-notify.state", "deepstream-replicator.stats?"]);
2
+ export function isEmptyRecord(data) {
3
+ return Object.keys(data).length === 0;
4
+ }
2
5
  export function parseRecordName(name) {
3
6
  if (_exactRecordNames.has(stripParams(name))) {
4
7
  return {
@@ -18289,7 +18289,7 @@ function _validateEqualsDomainRecord(domain, input) {
18289
18289
  if (undefined === value)
18290
18290
  return true;
18291
18291
  return false;
18292
- })); const _io2 = (input, _exceptionable = true) => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$, true && _exceptionable)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every((elem, _index1) => "object" === typeof elem && null !== elem && _io4(elem, true && _exceptionable))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle) && (6 === Object.keys(input).length || Object.keys(input).every(key => {
18292
+ })); const _io2 = (input, _exceptionable = true) => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$, true && _exceptionable)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every((elem, _index1) => "object" === typeof elem && null !== elem && _io4(elem, true && _exceptionable))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle) && (6 === Object.keys(input).length || Object.keys(input).every(key => {
18293
18293
  if (["type", "$", "version", "children", "direction", "format", "indent", "textFormat", "textStyle"].some(prop => key === prop))
18294
18294
  return true;
18295
18295
  const value = input[key];
@@ -18392,7 +18392,7 @@ function _validateEqualsDomainRecord(domain, input) {
18392
18392
  path: _path + ".direction",
18393
18393
  expected: "(\"ltr\" | \"rtl\" | null)",
18394
18394
  value: input.direction
18395
- }), "" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || _report(_exceptionable, {
18395
+ }), "" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || _report(_exceptionable, {
18396
18396
  path: _path + ".format",
18397
18397
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
18398
18398
  value: input.format
@@ -18674,7 +18674,7 @@ function _validateEqualsDomainRecord(domain, input) {
18674
18674
  if (undefined === value)
18675
18675
  return true;
18676
18676
  return false;
18677
- })); const _io2 = (input, _exceptionable = true) => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$, true && _exceptionable)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every((elem, _index1) => "object" === typeof elem && null !== elem && _io4(elem, true && _exceptionable))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle) && (6 === Object.keys(input).length || Object.keys(input).every(key => {
18677
+ })); const _io2 = (input, _exceptionable = true) => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$, true && _exceptionable)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every((elem, _index1) => "object" === typeof elem && null !== elem && _io4(elem, true && _exceptionable))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle) && (6 === Object.keys(input).length || Object.keys(input).every(key => {
18678
18678
  if (["type", "$", "version", "children", "direction", "format", "indent", "textFormat", "textStyle"].some(prop => key === prop))
18679
18679
  return true;
18680
18680
  const value = input[key];
@@ -18789,7 +18789,7 @@ function _validateEqualsDomainRecord(domain, input) {
18789
18789
  path: _path + ".direction",
18790
18790
  expected: "(\"ltr\" | \"rtl\" | null)",
18791
18791
  value: input.direction
18792
- }), "" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || _report(_exceptionable, {
18792
+ }), "" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || _report(_exceptionable, {
18793
18793
  path: _path + ".format",
18794
18794
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
18795
18795
  value: input.format
@@ -11638,7 +11638,7 @@ function _validateDomainRecord(domain, input) {
11638
11638
  }; })()(input);
11639
11639
  }
11640
11640
  case ":script?": {
11641
- return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
11641
+ return (() => { const _io0 = input => "object" === typeof input.value && null !== input.value && _io1(input.value); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
11642
11642
  const value = input[key];
11643
11643
  if (undefined === value)
11644
11644
  return true;
@@ -11695,7 +11695,7 @@ function _validateDomainRecord(domain, input) {
11695
11695
  path: _path + ".direction",
11696
11696
  expected: "(\"ltr\" | \"rtl\" | null)",
11697
11697
  value: input.direction
11698
- }), "" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || _report(_exceptionable, {
11698
+ }), "" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || _report(_exceptionable, {
11699
11699
  path: _path + ".format",
11700
11700
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
11701
11701
  value: input.format
@@ -11862,7 +11862,7 @@ function _validateDomainRecord(domain, input) {
11862
11862
  }; })()(input);
11863
11863
  }
11864
11864
  case ":script.revision?": {
11865
- return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
11865
+ return (() => { const _io0 = input => "string" === typeof input.$parent && "string" === typeof input.scriptId && "string" === typeof input.userId && ("object" === typeof input.value && null !== input.value && _io1(input.value)); const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && "number" === typeof input.version && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
11866
11866
  const value = input[key];
11867
11867
  if (undefined === value)
11868
11868
  return true;
@@ -11931,7 +11931,7 @@ function _validateDomainRecord(domain, input) {
11931
11931
  path: _path + ".direction",
11932
11932
  expected: "(\"ltr\" | \"rtl\" | null)",
11933
11933
  value: input.direction
11934
- }), "" === input.format || "center" === input.format || "left" === input.format || "start" === input.format || "right" === input.format || "end" === input.format || "justify" === input.format || _report(_exceptionable, {
11934
+ }), "" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "left" === input.format || "right" === input.format || "justify" === input.format || _report(_exceptionable, {
11935
11935
  path: _path + ".format",
11936
11936
  expected: "(\"\" | \"center\" | \"end\" | \"justify\" | \"left\" | \"right\" | \"start\")",
11937
11937
  value: input.format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/types",
3
- "version": "23.0.42",
3
+ "version": "23.0.44",
4
4
  "description": "TypeScript types to be shared between nxtedition packages.",
5
5
  "license": "MIT",
6
6
  "type": "module",