@nxtedition/types 23.0.47 → 23.0.48
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/nxtpression.d.ts
CHANGED
|
@@ -446,14 +446,6 @@ declare interface DesignViewRow<Id = string, Key = string, Value = void> {
|
|
|
446
446
|
|
|
447
447
|
declare type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & MonitorDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PrompterDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & SubtitleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
|
|
448
448
|
|
|
449
|
-
declare interface DomainRows {
|
|
450
|
-
rows: string[];
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
declare type DomainRowsRecords = {
|
|
454
|
-
[Domain in DbDomainKeys as Domain]: GettablePossibleEmpty<DomainRows>;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
449
|
declare type Dynamic = false | string[];
|
|
458
450
|
|
|
459
451
|
declare interface EditDomainRecords {
|
|
@@ -1837,7 +1829,8 @@ number,
|
|
|
1837
1829
|
number
|
|
1838
1830
|
];
|
|
1839
1831
|
|
|
1840
|
-
declare
|
|
1832
|
+
declare interface Records extends KeyedDomainRecords, KeyedProvidedDomainRecords, DbExactRecords, DbProvidedRecord {
|
|
1833
|
+
}
|
|
1841
1834
|
|
|
1842
1835
|
declare type RecordState = RecordStateNumber | RecordStateString;
|
|
1843
1836
|
|
package/dist/records/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EmptyObject, SingleKeyObject } from 'type-fest';
|
|
2
|
-
import type { DomainRecords,
|
|
2
|
+
import type { DomainRecords, ExactRecords } from './index.ts';
|
|
3
3
|
type ProvidedDomainKeys = keyof DomainRecords & `${string}?`;
|
|
4
4
|
type DbDomainKeys = Exclude<keyof DomainRecords, ProvidedDomainKeys>;
|
|
5
5
|
type ProvidedExactKeys = keyof ExactRecords & `${string}?`;
|
|
@@ -10,16 +10,14 @@ type KeyedDomainRecords = {
|
|
|
10
10
|
type KeyedProvidedDomainRecords = {
|
|
11
11
|
[Domain in ProvidedDomainKeys as `${string}${Domain}${string}`]: GettablePossibleEmpty<DomainRecords[Domain]>;
|
|
12
12
|
};
|
|
13
|
-
type DomainRowsRecords = {
|
|
14
|
-
[Domain in DbDomainKeys as Domain]: GettablePossibleEmpty<DomainRows>;
|
|
15
|
-
};
|
|
16
13
|
type DbExactRecords = {
|
|
17
14
|
[Name in DbExactKeys]: GettablePossibleEmpty<ExactRecords[Name]>;
|
|
18
15
|
};
|
|
19
16
|
type DbProvidedRecord = {
|
|
20
17
|
[Name in ProvidedExactKeys as `${Name}${string}`]: GettablePossibleEmpty<ExactRecords[Name]>;
|
|
21
18
|
};
|
|
22
|
-
export
|
|
19
|
+
export interface Records extends KeyedDomainRecords, KeyedProvidedDomainRecords, DbExactRecords, DbProvidedRecord {
|
|
20
|
+
}
|
|
23
21
|
export type RecordNameToType<T extends string> = T extends keyof Records ? Records[T] : unknown;
|
|
24
22
|
declare const providedRecordSymbol: unique symbol;
|
|
25
23
|
export type ProvidedRecord<T> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expectType } from 'tsd';
|
|
2
2
|
const getType = (_) => null;
|
|
3
3
|
expectType(getType("asset.tags"));
|
|
4
|
-
expectType(getType(
|
|
4
|
+
// expectType<Partial<DomainRows>>(getType(':user'))
|
|
5
5
|
expectType(getType("id:user.receivedNotifications?"));
|
|
6
6
|
expectType(getType("id:user.receivedNotifications?limit=2"));
|
|
7
7
|
expectType(getType("{}:search?"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/types",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.48",
|
|
4
4
|
"description": "TypeScript types to be shared between nxtedition packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"./records/validate/stringify": "./dist/records/validate/stringify.js",
|
|
21
21
|
"./records/validate/stringify.d.ts": "./dist/records/validate/stringify.d.ts",
|
|
22
22
|
"./records/validate/validate": "./dist/records/validate/validate.js",
|
|
23
|
-
"./records/validate/validate.d.ts": "./dist/records/validate/validate.d.ts"
|
|
24
|
-
"./schema.json": "./dist/schema.json"
|
|
23
|
+
"./records/validate/validate.d.ts": "./dist/records/validate/validate.d.ts"
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
27
26
|
"dist"
|