@tridion-sites/models 0.1.0 → 0.1.2
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/CHANGELOG.md +17 -0
- package/dist/index.d.ts +22 -10
- package/dist/index.js +12206 -12701
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @tridion-sites/models
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b803ef7b33: Fake models now have special creation functions
|
|
8
|
+
- 9b78d6d626: upgrade dependencies
|
|
9
|
+
- 31bdf04adf: fixed VersionedItem isNew behavior
|
|
10
|
+
|
|
11
|
+
## 0.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 226cc4cce1: Additional info for Taxonomies model is added
|
|
16
|
+
- 1845a12377: use the latest typescript version
|
|
17
|
+
- Updated dependencies [1845a12377]
|
|
18
|
+
- @tridion-sites/open-api-client@1.0.5
|
|
19
|
+
|
|
3
20
|
## 0.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -970,12 +970,11 @@ export declare interface BusinessProcessTypeConstructorArgs extends Organization
|
|
|
970
970
|
* An item used to organize the business process types in a Repository.
|
|
971
971
|
*/
|
|
972
972
|
export declare class BusinessProcessTypes extends OrganizationalItem {
|
|
973
|
-
constructor(
|
|
973
|
+
constructor({ backendModel, ...organizationalItemArgs }: BusinessProcessTypesConstructorArgs);
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
export declare
|
|
977
|
-
|
|
978
|
-
export declare const changeOrgItemToTaxonomies: (item: RepositoryLocalObject_2) => RepositoryLocalObject_2;
|
|
976
|
+
export declare interface BusinessProcessTypesConstructorArgs extends OrganizationalItemConstructorArgs {
|
|
977
|
+
}
|
|
979
978
|
|
|
980
979
|
/**
|
|
981
980
|
* Abstract base class representing the data of a mapping between a Claim and a TCM Group.
|
|
@@ -1279,8 +1278,14 @@ export declare type ComponentType = 'normal' | 'multimedia' | 'widget' | 'unknow
|
|
|
1279
1278
|
|
|
1280
1279
|
export declare const configureLocale: (locale: ModelsLocale) => void;
|
|
1281
1280
|
|
|
1281
|
+
export declare const createBackendBusinessProcessTypes: (publicationId: TcmUri) => OrganizationalItem_2;
|
|
1282
|
+
|
|
1283
|
+
export declare const createBackendHateoasLink: (href: string, rel: string, type?: string) => HateoasLink_2;
|
|
1284
|
+
|
|
1282
1285
|
export declare const createBackendLink: (id: string, title?: string) => Link_2;
|
|
1283
1286
|
|
|
1287
|
+
export declare const createBackendTaxonomies: (publicationId: TcmUri) => OrganizationalItem_2;
|
|
1288
|
+
|
|
1284
1289
|
/**
|
|
1285
1290
|
* Represents a date field definition (in a Schema).
|
|
1286
1291
|
*/
|
|
@@ -1847,6 +1852,10 @@ export declare abstract class IdentifiableObject {
|
|
|
1847
1852
|
* Whether the object is editable.
|
|
1848
1853
|
*/
|
|
1849
1854
|
get isEditable(): boolean;
|
|
1855
|
+
/**
|
|
1856
|
+
* Is this a new object? (created from the default data, not saved yet)
|
|
1857
|
+
*/
|
|
1858
|
+
get isNew(): boolean;
|
|
1850
1859
|
/**
|
|
1851
1860
|
* Version information of the object.
|
|
1852
1861
|
*/
|
|
@@ -2439,7 +2448,7 @@ export declare const mapStringSearchModeToBackend: (backendModel: StringSearchMo
|
|
|
2439
2448
|
|
|
2440
2449
|
export declare const mapStructureResolveOptionToBackend: (model: StructureResolveOption) => StructureResolveOption_2;
|
|
2441
2450
|
|
|
2442
|
-
export declare const mapToModel: <T>(backendItem: any) => T;
|
|
2451
|
+
export declare const mapToModel: <T>(backendItem: Record<string, any>) => T;
|
|
2443
2452
|
|
|
2444
2453
|
export declare const mapToModels: <T>(backendItems: ReadonlyArray<any>) => readonly T[];
|
|
2445
2454
|
|
|
@@ -3809,7 +3818,11 @@ export declare interface TargetTypeConstructorArgs extends PublishingTargetConst
|
|
|
3809
3818
|
* An item used to organize the categories and keywords in a Repository.
|
|
3810
3819
|
*/
|
|
3811
3820
|
export declare class Taxonomies extends OrganizationalItem {
|
|
3812
|
-
constructor(
|
|
3821
|
+
constructor({ backendModel, ...organizationalItemArgs }: TaxonomiesConstructorArgs);
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
export declare interface TaxonomiesConstructorArgs extends OrganizationalItemConstructorArgs {
|
|
3825
|
+
backendModel: OrganizationalItem_2;
|
|
3813
3826
|
}
|
|
3814
3827
|
|
|
3815
3828
|
/**
|
|
@@ -3837,6 +3850,7 @@ export declare class TcmUri {
|
|
|
3837
3850
|
get itemType(): TcmUriItemType;
|
|
3838
3851
|
get version(): number | undefined;
|
|
3839
3852
|
get hasVersion(): boolean;
|
|
3853
|
+
get isNewUri(): boolean;
|
|
3840
3854
|
get isNullUri(): boolean;
|
|
3841
3855
|
get isSystemUri(): boolean;
|
|
3842
3856
|
get isEditableVersion(): boolean;
|
|
@@ -5080,9 +5094,8 @@ export declare abstract class VersionedItem extends RepositoryLocalObject {
|
|
|
5080
5094
|
private _dynamicVersionInfo;
|
|
5081
5095
|
private _fullVersionInfo;
|
|
5082
5096
|
private _isDynamic;
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
get isNew(): boolean;
|
|
5097
|
+
constructor({ backendModel, dynamicVersionInfo, fullVersionInfo, isDynamic, ...rloArgs }: VersionedItemConstructorArgs);
|
|
5098
|
+
get isNotCheckedInYet(): boolean;
|
|
5086
5099
|
get isDynamic(): boolean;
|
|
5087
5100
|
get dynamicVersionInfo(): DynamicVersionInfo | undefined;
|
|
5088
5101
|
get versionInfo(): FullVersionInfo | undefined;
|
|
@@ -5095,7 +5108,6 @@ export declare interface VersionedItemConstructorArgs extends RepositoryLocalObj
|
|
|
5095
5108
|
dynamicVersionInfo: DynamicVersionInfo | undefined;
|
|
5096
5109
|
fullVersionInfo: FullVersionInfo | undefined;
|
|
5097
5110
|
isDynamic: boolean;
|
|
5098
|
-
isNew: boolean;
|
|
5099
5111
|
}
|
|
5100
5112
|
|
|
5101
5113
|
/**
|