@tridion-sites/models 2.0.0 → 2.1.0

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 CHANGED
@@ -1,49 +1,70 @@
1
1
  # @tridion-sites/models
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - dc46fe7: Update ECL regular expression
8
+ - 9ca3137: Add schemaPurposeMapping
9
+ - 6a7856d: Expose uri prefix
10
+ - dce5ac7: Add `VersionedItem.isHistoricalVersion`, add `RepositoryLocalObject.hasLockType()` and fix some typos
11
+ - 3c68243: Add SearchBlueprintStatus model
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [553decf]
16
+ - @tridion-sites/open-api-client@4.1.0
17
+
18
+ ## 2.0.1
19
+
20
+ ### Patch Changes
21
+
22
+ - Fix bug in mapToModel()
23
+
3
24
  ## 2.0.0
4
25
 
5
26
  ### Major Changes
6
27
 
7
- - 051b91a: [Breaking!] Models: map `Link`s inside content and metadata
28
+ - 051b91a: [Breaking!] Models: map `Link`s inside content and metadata
8
29
 
9
30
  ### Minor Changes
10
31
 
11
- - c7a65bc: Update model mapper to fallback to regular component when it can not be distinguished by `ComponentType`
12
- - 7cf79a9: OpenAPI v3 update
13
- - d56f8fa: Add `isLocalizable` field
14
- - 6ff5e58: Add generic `ListInfo` type to `IdentifiableObject`
15
- - c3ba102: Add `primaryItem` to `ItemBlueprintHierarchy`
16
- - e514a9a: Add new OpenAPI v3 error type `ValidationApiError`
32
+ - c7a65bc: Update model mapper to fallback to regular component when it can not be distinguished by `ComponentType`
33
+ - 7cf79a9: OpenAPI v3 update
34
+ - d56f8fa: Add `isLocalizable` field
35
+ - 6ff5e58: Add generic `ListInfo` type to `IdentifiableObject`
36
+ - c3ba102: Add `primaryItem` to `ItemBlueprintHierarchy`
37
+ - e514a9a: Add new OpenAPI v3 error type `ValidationApiError`
17
38
 
18
39
  ### Patch Changes
19
40
 
20
- - f1bb40c: Update API comments
21
- - 1b0165e: Update axios to avoid vulnerability
22
- - 2532518: Fix default value for `ItemFieldDefinition.isLocalizable` model
23
- - b4d732a: Update `@tridion/graphene` dependency
24
- - f1bb40c: Update 3rd party dependencies
41
+ - f1bb40c: Update API comments
42
+ - 1b0165e: Update axios to avoid vulnerability
43
+ - 2532518: Fix default value for `ItemFieldDefinition.isLocalizable` model
44
+ - b4d732a: Update `@tridion/graphene` dependency
45
+ - f1bb40c: Update 3rd party dependencies
25
46
 
26
47
  ## 1.1.1
27
48
 
28
49
  ### Patch Changes
29
50
 
30
- - c78d191530: Resolved issue with TranslationJobItem mapping
51
+ - c78d191530: Resolved issue with TranslationJobItem mapping
31
52
 
32
53
  ## 1.1.0
33
54
 
34
55
  ### Minor Changes
35
56
 
36
- - 14288f4588: add publishing queue related models
57
+ - 14288f4588: add publishing queue related models
37
58
 
38
59
  ### Patch Changes
39
60
 
40
- - d0875fe171: update dependencies
41
- - 7ff24d55b8: Add LockType and its mapping function
42
- - 334d76210f: Dependency update @tridion/graphene@1.35
43
- - Updated dependencies [d398729dce]
44
- - Updated dependencies [b37272386a]
45
- - Updated dependencies [d0875fe171]
46
- - Updated dependencies [151fa1d3b2]
47
- - Updated dependencies [c75025f64f]
48
- - Updated dependencies [1b257d330c]
49
- - @tridion-sites/open-api-client@3.0.0
61
+ - d0875fe171: update dependencies
62
+ - 7ff24d55b8: Add LockType and its mapping function
63
+ - 334d76210f: Dependency update @tridion/graphene@1.35
64
+ - Updated dependencies [d398729dce]
65
+ - Updated dependencies [b37272386a]
66
+ - Updated dependencies [d0875fe171]
67
+ - Updated dependencies [151fa1d3b2]
68
+ - Updated dependencies [c75025f64f]
69
+ - Updated dependencies [1b257d330c]
70
+ - @tridion-sites/open-api-client@3.0.0
package/dist/index.d.ts CHANGED
@@ -112,6 +112,8 @@ import type { ResolveInstructionBase as ResolveInstructionBase_2 } from '@tridio
112
112
  import { RetrieveReason as RetrieveReason_2 } from '@tridion-sites/open-api-client';
113
113
  import { RLOItemType } from '@tridion-sites/open-api-client';
114
114
  import type { Schema as Schema_2 } from '@tridion-sites/open-api-client';
115
+ import { SchemaPurpose as SchemaPurpose_2 } from '@tridion-sites/open-api-client';
116
+ import { SearchBlueprintStatus as SearchBlueprintStatus_2 } from '@tridion-sites/open-api-client';
115
117
  import type { SearchFolder as SearchFolder_2 } from '@tridion-sites/open-api-client';
116
118
  import type { SecurityDescriptor as SecurityDescriptor_2 } from '@tridion-sites/open-api-client';
117
119
  import type { SingleLineTextFieldDefinition as SingleLineTextFieldDefinition_2 } from '@tridion-sites/open-api-client';
@@ -438,7 +440,7 @@ export declare class ActivityInstance extends Activity {
438
440
  private _approvalStatus;
439
441
  private _processDefinition;
440
442
  private _workflowType;
441
- constructor({ backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType, ...acticityArgs }: ActivityInstanceConstructorArgs);
443
+ constructor({ backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType, ...activityArgs }: ActivityInstanceConstructorArgs);
442
444
  /**
443
445
  * Constraints of this activity.
444
446
  */
@@ -1504,8 +1506,10 @@ export declare class EclUri {
1504
1506
  private readonly _itemVersion?;
1505
1507
  private readonly _asString;
1506
1508
  private static _eclUriCache;
1509
+ private static _eclUriPrefix;
1507
1510
  private static _eclUriRegExp;
1508
1511
  private constructor();
1512
+ static get uriPrefix(): string;
1509
1513
  private static create;
1510
1514
  static parse: (input: string) => EclUri | undefined;
1511
1515
  get publicationId(): number;
@@ -2524,6 +2528,7 @@ export declare class LockInfo {
2524
2528
  * A user who locked the item.
2525
2529
  */
2526
2530
  get lockUser(): Link | undefined;
2531
+ hasLockType(lockType: LockType): boolean;
2527
2532
  getInternalModel: () => LockInfo_2;
2528
2533
  }
2529
2534
 
@@ -2570,6 +2575,12 @@ export declare const mapRetrieveReasonToBackend: (backendModel: RetrieveReason)
2570
2575
 
2571
2576
  export declare const mapRloItemTypeToBackend: (rloItemType: RloItemType) => RLOItemType;
2572
2577
 
2578
+ export declare const mapSchemaPurposeBackend: (backendModel: SchemaPurpose) => SchemaPurpose_2;
2579
+
2580
+ export declare const mapSearchBlueprintStatus: (backendModel: SearchBlueprintStatus_2) => SearchBlueprintStatus;
2581
+
2582
+ export declare const mapSearchBlueprintStatusToBackend: (model: SearchBlueprintStatus) => SearchBlueprintStatus_2;
2583
+
2573
2584
  export declare const mapStringSearchModeToBackend: (backendModel: StringSearchMode) => StringSearchMode_2;
2574
2585
 
2575
2586
  export declare const mapStructureResolveOptionToBackend: (model: StructureResolveOption) => StructureResolveOption_2;
@@ -3849,6 +3860,8 @@ export declare interface SchemaConstructorArgs extends VersionedItemConstructorA
3849
3860
  */
3850
3861
  export declare type SchemaPurpose = 'component' | 'multimedia' | 'embedded' | 'metadata' | 'protocol' | 'virtualFolderType' | 'templateParameters' | 'bundle' | 'region' | 'unknownByClient';
3851
3862
 
3863
+ export declare type SearchBlueprintStatus = 'unspecified' | 'local' | 'localized' | 'shared' | 'unknownByClient';
3864
+
3852
3865
  /**
3853
3866
  * Represents a Search Folder.
3854
3867
  */
@@ -4304,9 +4317,11 @@ export declare class TcmUri {
4304
4317
  private readonly _itemVersion?;
4305
4318
  private readonly _asString;
4306
4319
  private static _tcmUriCache;
4320
+ private static _tcmUriPrefix;
4307
4321
  private static _tcmUriRegExp;
4308
4322
  private static _editableVersion;
4309
4323
  private constructor();
4324
+ static get uriPrefix(): string;
4310
4325
  static create: (publicationId: number, itemId: number, itemType: TcmUriItemType, itemVersion?: number) => TcmUri;
4311
4326
  static null: TcmUri;
4312
4327
  static system: TcmUri;
@@ -5603,6 +5618,7 @@ export declare abstract class VersionedItem extends RepositoryLocalObject {
5603
5618
  get dynamicVersionInfo(): DynamicVersionInfo | undefined;
5604
5619
  get versionInfo(): FullVersionInfo | undefined;
5605
5620
  get isCurrentVersion(): boolean;
5621
+ get isHistoricVersion(): boolean;
5606
5622
  getInternalModel: () => VersionedItem_2;
5607
5623
  }
5608
5624
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { LinkTargetStatus, BatchOperationState, Permissions, Rights, StringSearchMode, ErrorType, LoadInfoState, WhereUsedCommentToken, PublishPriority, LockType, RLOItemType, ComponentType, SchemaPurpose, DeployerAction, PublishAction, PublishTransactionState, StructureResolveOption, SynchronizeFlags, ResolveOptions, RetrieveReason, TranslationStatus, ErrorSeverity, TranslationJobDisplayState, TranslationJobPriority, TranslationJobState, TranslationJobType, ActivityConstraints, ActivityType, ActivityState, ProcessFinishReason, ListDetails, DependencyDirection } from '@tridion-sites/open-api-client';
1
+ import { LinkTargetStatus, BatchOperationState, Permissions, Rights, StringSearchMode, ErrorType, LoadInfoState, WhereUsedCommentToken, PublishPriority, LockType, RLOItemType, ComponentType, SchemaPurpose, DeployerAction, PublishAction, PublishTransactionState, StructureResolveOption, SynchronizeFlags, ResolveOptions, RetrieveReason, TranslationStatus, ErrorSeverity, TranslationJobDisplayState, TranslationJobPriority, TranslationJobState, TranslationJobType, ActivityConstraints, ActivityType, ActivityState, ProcessFinishReason, SearchBlueprintStatus, ListDetails, DependencyDirection } from '@tridion-sites/open-api-client';
2
2
  import { produce } from 'immer';
3
3
 
4
4
  /**
@@ -455,6 +455,9 @@ class TcmUri {
455
455
  }
456
456
  this._asString = `tcm:${parts.join('-')}`;
457
457
  }
458
+ static get uriPrefix() {
459
+ return this._tcmUriPrefix;
460
+ }
458
461
  get publicationId() {
459
462
  return this._publicationId;
460
463
  }
@@ -500,6 +503,12 @@ Object.defineProperty(TcmUri, "_tcmUriCache", {
500
503
  writable: true,
501
504
  value: new Map()
502
505
  });
506
+ Object.defineProperty(TcmUri, "_tcmUriPrefix", {
507
+ enumerable: true,
508
+ configurable: true,
509
+ writable: true,
510
+ value: 'tcm'
511
+ });
503
512
  Object.defineProperty(TcmUri, "_tcmUriRegExp", {
504
513
  enumerable: true,
505
514
  configurable: true,
@@ -714,6 +723,9 @@ class EclUri {
714
723
  }
715
724
  this._asString = `ecl:${parts.join('-')}`;
716
725
  }
726
+ static get uriPrefix() {
727
+ return this._eclUriPrefix;
728
+ }
717
729
  get publicationId() {
718
730
  return this._publicationId;
719
731
  }
@@ -749,11 +761,17 @@ Object.defineProperty(EclUri, "_eclUriCache", {
749
761
  writable: true,
750
762
  value: new Map()
751
763
  });
764
+ Object.defineProperty(EclUri, "_eclUriPrefix", {
765
+ enumerable: true,
766
+ configurable: true,
767
+ writable: true,
768
+ value: 'ecl'
769
+ });
752
770
  Object.defineProperty(EclUri, "_eclUriRegExp", {
753
771
  enumerable: true,
754
772
  configurable: true,
755
773
  writable: true,
756
- value: new RegExp(/^ecl:(\d+)-([^\s-]+)-([^\s-]+)-([^\s-]*)-([^\s\(\)-]+)(-v(\d+))?$/)
774
+ value: new RegExp(/^ecl:(\d+)-([^-]+)-([^-]+)-([^-]+)-(\w+)(-v(\d+))?$/)
757
775
  });
758
776
  Object.defineProperty(EclUri, "create", {
759
777
  enumerable: true,
@@ -2665,8 +2683,8 @@ const contentMapping = (mappingRegistry, contentObject) => {
2665
2683
  if ('$type' in value) {
2666
2684
  mappedContent[key] = mappingRegistry.map(value);
2667
2685
  }
2668
- else {
2669
- // Otherwise it is just another level of properties and we should go deeper
2686
+ if (mappedContent[key] === undefined) {
2687
+ // Otherwise it is just another level of properties and we should go deeper (Or such type is not in our mapping registry, e.g. EmbeddedFieldDefinition)
2670
2688
  mappedContent[key] = contentMapping(mappingRegistry, value);
2671
2689
  }
2672
2690
  }
@@ -3615,6 +3633,9 @@ class LockInfo {
3615
3633
  get lockUser() {
3616
3634
  return this._lockUser;
3617
3635
  }
3636
+ hasLockType(lockType) {
3637
+ return this._lockType.includes(lockType);
3638
+ }
3618
3639
  }
3619
3640
 
3620
3641
  /**
@@ -3892,6 +3913,9 @@ class VersionedItem extends RepositoryLocalObject {
3892
3913
  this._fullVersionInfo.version === this._fullVersionInfo.lastVersion &&
3893
3914
  this._fullVersionInfo.revision === 0);
3894
3915
  }
3916
+ get isHistoricVersion() {
3917
+ return !!this._fullVersionInfo && this._fullVersionInfo.version !== this._fullVersionInfo.lastVersion;
3918
+ }
3895
3919
  }
3896
3920
 
3897
3921
  /**
@@ -7310,6 +7334,30 @@ const mapSchemaPurpose = (backendModel) => {
7310
7334
  return 'unknownByClient';
7311
7335
  }
7312
7336
  };
7337
+ const mapSchemaPurposeBackend = (backendModel) => {
7338
+ switch (backendModel) {
7339
+ case 'bundle':
7340
+ return SchemaPurpose.BUNDLE;
7341
+ case 'component':
7342
+ return SchemaPurpose.COMPONENT;
7343
+ case 'embedded':
7344
+ return SchemaPurpose.EMBEDDED;
7345
+ case 'metadata':
7346
+ return SchemaPurpose.METADATA;
7347
+ case 'multimedia':
7348
+ return SchemaPurpose.MULTIMEDIA;
7349
+ case 'protocol':
7350
+ return SchemaPurpose.PROTOCOL;
7351
+ case 'region':
7352
+ return SchemaPurpose.REGION;
7353
+ case 'templateParameters':
7354
+ return SchemaPurpose.TEMPLATE_PARAMETERS;
7355
+ case 'virtualFolderType':
7356
+ return SchemaPurpose.VIRTUAL_FOLDER_TYPE;
7357
+ case 'unknownByClient':
7358
+ return SchemaPurpose.UNKNOWN_BY_CLIENT;
7359
+ }
7360
+ };
7313
7361
 
7314
7362
  const mapSchemaConstructorArgs = (mappingRegistry, backendModel) => {
7315
7363
  const versionedItemConstructorArgs = mapVersionedItemConstructorArgs(mappingRegistry, backendModel);
@@ -13578,8 +13626,8 @@ class ActivityHistory extends Activity {
13578
13626
  */
13579
13627
  class ActivityInstance extends Activity {
13580
13628
  constructor(_a) {
13581
- var { backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType } = _a, acticityArgs = __rest(_a, ["backendModel", "activityConstraints", "activityDefinition", "activityState", "approvalStatus", "processDefinition", "workflowType"]);
13582
- super(Object.assign({ backendModel }, acticityArgs));
13629
+ var { backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType } = _a, activityArgs = __rest(_a, ["backendModel", "activityConstraints", "activityDefinition", "activityState", "approvalStatus", "processDefinition", "workflowType"]);
13630
+ super(Object.assign({ backendModel }, activityArgs));
13583
13631
  Object.defineProperty(this, "_activityConstraints", {
13584
13632
  enumerable: true,
13585
13633
  configurable: true,
@@ -15122,6 +15170,35 @@ const constructItemGraph = (backendModel) => {
15122
15170
  return graph;
15123
15171
  };
15124
15172
 
15173
+ const mapSearchBlueprintStatus = (backendModel) => {
15174
+ switch (backendModel) {
15175
+ case SearchBlueprintStatus.LOCAL:
15176
+ return 'local';
15177
+ case SearchBlueprintStatus.SHARED:
15178
+ return 'shared';
15179
+ case SearchBlueprintStatus.LOCALIZED:
15180
+ return 'localized';
15181
+ case SearchBlueprintStatus.UNSPECIFIED:
15182
+ return 'unspecified';
15183
+ case SearchBlueprintStatus.UNKNOWN_BY_CLIENT:
15184
+ return 'unknownByClient';
15185
+ }
15186
+ };
15187
+ const mapSearchBlueprintStatusToBackend = (model) => {
15188
+ switch (model) {
15189
+ case 'local':
15190
+ return SearchBlueprintStatus.LOCAL;
15191
+ case 'shared':
15192
+ return SearchBlueprintStatus.SHARED;
15193
+ case 'localized':
15194
+ return SearchBlueprintStatus.LOCALIZED;
15195
+ case 'unspecified':
15196
+ return SearchBlueprintStatus.UNSPECIFIED;
15197
+ case 'unknownByClient':
15198
+ return SearchBlueprintStatus.UNKNOWN_BY_CLIENT;
15199
+ }
15200
+ };
15201
+
15125
15202
  const mapListDetailsLevelToBackend = (backendValue) => {
15126
15203
  switch (backendValue) {
15127
15204
  case 'contentless':
@@ -15474,7 +15551,7 @@ const getItemLinkType = (itemLink) => {
15474
15551
  const getItemType = (item) => {
15475
15552
  if (isExactInstanceOf(item, Keyword))
15476
15553
  return item.isAbstract ? 'abstractKeyword' : 'keyword';
15477
- if (isExactInstanceOf(item, ProcessDefinition))
15554
+ if (isExactInstanceOf(item, TridionProcessDefinition))
15478
15555
  return 'processDefinition';
15479
15556
  if (isExactInstanceOf(item, TargetGroup))
15480
15557
  return 'targetGroup';
@@ -15535,4 +15612,4 @@ const getItemType = (item) => {
15535
15612
  return undefined;
15536
15613
  };
15537
15614
 
15538
- export { AccessControlEntry, AccessControlList, AccessToken, Activity, ActivityDefinition, ActivityHistory, ActivityInstance, ApiError, ApprovalStatus, BasicVersionInfo, Batch, BatchOperation, BinaryContent, BlueprintGraph, BlueprintGraphNode, BlueprintInfo, Bundle, BusinessProcessType, BusinessProcessTypes, ClaimMapping, ClassificationDetail, ClassificationInfo, Component, ComponentBase, ComponentLinkFieldDefinition, ComponentPresentation, ComponentTemplate, DateFieldDefinition, DateListDefinition, DependencyGraphNode, DynamicVersionInfo, EclUri, EmbeddedRegion, EmbeddedSchemaFieldDefinition, ExternalContainer, ExternalKeyword, ExternalKeywordCategory, ExternalLinkFieldDefinition, ExternalMultimediaComponent, ExternalVersionInfo, FinishActivityResult, Folder, FormattingFeatures, FullVersionInfo, GroupMembership, HateoasLink, IdentifiableObject, ItemBlueprintHierarchy, ItemBlueprintRloNodeData, ItemFieldDefinition, ItemPublishableFieldDefinition, Keyword, KeywordCategory, KeywordFieldDefinition, LimitedVersionInfo, Link, LinkWithIsEditable, ListDefinition, LoadInfo, LocationInfo, LockInfo, MultiLineTextFieldDefinition, MultimediaComponent, MultimediaLinkFieldDefinition, MultimediaType, NumberFieldDefinition, NumberListDefinition, OrganizationalItem, Page, PageTemplate, Process, ProcessDefinition, ProcessHistory, ProcessInstance, ProcessedItem, Publication, PublicationBlueprintHierarchy, PublishContext, PublishInfo, PublishInstruction, PublishInstructionBase, PublishLocationInfo, PublishTransaction, PublishTransactionListInfo, PublishTransactionsCreationResult, PublishUrlInfo, PublishingTarget, Region, Repository, RepositoryLocalObject, ResolveInstruction, ResolveInstructionBase, ResolvedItem, Schema, SearchFolder, SecurityDescriptor, SingleLineTextFieldDefinition, SingleLineTextListDefinition, StructureGroup, SynchronizationAction, SynchronizationResult, SystemPrivilege, SystemWideObject, TargetGroup, TargetGroupCondition, TargetLanguage, TargetType, Taxonomies, TcmUri, Template, TemplateBuildingBlock, TextFieldDefinition, TmsLanguage, TmsWorkflow, TmsWorkflowStep, TranslationDetails, TranslationErrorDetails, TranslationExceptionDetails, TranslationInfo, TranslationJob, TranslationJobInfo, TranslationJobItem, TranslationTargetPublication, TranslationWorkflowStatus, TridionActivityDefinition, TridionProcessDefinition, Trustee, UnpublishInstruction, User, UserFavoriteLink, UserGroup, UserLocaleInfo, UserPreferences, UserProfile, UserRuntimeInfo, ValidationApiError, ValidationError, ValidationResult, ValidationWarning, VersionedItem, VirtualFolder, VirtualUri, WhereUsedListInfo, WorkItem, WorkflowInfo, WorkflowObject, XhtmlFieldDefinition, applicableActions, configureLocale, createBackendBusinessProcessTypes, createBackendHateoasLink, createBackendLink, createBackendTaxonomies, determineBatchStatus, getItemContainerId, getItemLinkType, getItemType, isRloNode, itemLinkType, itemLinkTypes, itemType, itemTypes, listLinks, mapActivityStateToBackend, mapBatchOperationState, mapDependencyDirectionToBackend, mapErrorTypeToBackend, mapListDetailsLevelToBackend, mapLoadInfoStateToBackend, mapLockTypeToBackend, mapPublishPriorityToBackend, mapPublishTransactionStateToBackend, mapRetrieveReasonToBackend, mapRloItemTypeToBackend, mapStringSearchModeToBackend, mapStructureResolveOptionToBackend, mapSynchronizeFlagsToBackend, mapToModel, mapToModels, mapTranslationErrorSeverityToBackend, mapTranslationJobPriorityToBackend, mapTranslationJobStateToBackend, mapTranslationJobTypeToBackend, mapTranslationStatusToBackend, parseItemUri, tryMapToModel, tryParseItemUri };
15615
+ export { AccessControlEntry, AccessControlList, AccessToken, Activity, ActivityDefinition, ActivityHistory, ActivityInstance, ApiError, ApprovalStatus, BasicVersionInfo, Batch, BatchOperation, BinaryContent, BlueprintGraph, BlueprintGraphNode, BlueprintInfo, Bundle, BusinessProcessType, BusinessProcessTypes, ClaimMapping, ClassificationDetail, ClassificationInfo, Component, ComponentBase, ComponentLinkFieldDefinition, ComponentPresentation, ComponentTemplate, DateFieldDefinition, DateListDefinition, DependencyGraphNode, DynamicVersionInfo, EclUri, EmbeddedRegion, EmbeddedSchemaFieldDefinition, ExternalContainer, ExternalKeyword, ExternalKeywordCategory, ExternalLinkFieldDefinition, ExternalMultimediaComponent, ExternalVersionInfo, FinishActivityResult, Folder, FormattingFeatures, FullVersionInfo, GroupMembership, HateoasLink, IdentifiableObject, ItemBlueprintHierarchy, ItemBlueprintRloNodeData, ItemFieldDefinition, ItemPublishableFieldDefinition, Keyword, KeywordCategory, KeywordFieldDefinition, LimitedVersionInfo, Link, LinkWithIsEditable, ListDefinition, LoadInfo, LocationInfo, LockInfo, MultiLineTextFieldDefinition, MultimediaComponent, MultimediaLinkFieldDefinition, MultimediaType, NumberFieldDefinition, NumberListDefinition, OrganizationalItem, Page, PageTemplate, Process, ProcessDefinition, ProcessHistory, ProcessInstance, ProcessedItem, Publication, PublicationBlueprintHierarchy, PublishContext, PublishInfo, PublishInstruction, PublishInstructionBase, PublishLocationInfo, PublishTransaction, PublishTransactionListInfo, PublishTransactionsCreationResult, PublishUrlInfo, PublishingTarget, Region, Repository, RepositoryLocalObject, ResolveInstruction, ResolveInstructionBase, ResolvedItem, Schema, SearchFolder, SecurityDescriptor, SingleLineTextFieldDefinition, SingleLineTextListDefinition, StructureGroup, SynchronizationAction, SynchronizationResult, SystemPrivilege, SystemWideObject, TargetGroup, TargetGroupCondition, TargetLanguage, TargetType, Taxonomies, TcmUri, Template, TemplateBuildingBlock, TextFieldDefinition, TmsLanguage, TmsWorkflow, TmsWorkflowStep, TranslationDetails, TranslationErrorDetails, TranslationExceptionDetails, TranslationInfo, TranslationJob, TranslationJobInfo, TranslationJobItem, TranslationTargetPublication, TranslationWorkflowStatus, TridionActivityDefinition, TridionProcessDefinition, Trustee, UnpublishInstruction, User, UserFavoriteLink, UserGroup, UserLocaleInfo, UserPreferences, UserProfile, UserRuntimeInfo, ValidationApiError, ValidationError, ValidationResult, ValidationWarning, VersionedItem, VirtualFolder, VirtualUri, WhereUsedListInfo, WorkItem, WorkflowInfo, WorkflowObject, XhtmlFieldDefinition, applicableActions, configureLocale, createBackendBusinessProcessTypes, createBackendHateoasLink, createBackendLink, createBackendTaxonomies, determineBatchStatus, getItemContainerId, getItemLinkType, getItemType, isRloNode, itemLinkType, itemLinkTypes, itemType, itemTypes, listLinks, mapActivityStateToBackend, mapBatchOperationState, mapDependencyDirectionToBackend, mapErrorTypeToBackend, mapListDetailsLevelToBackend, mapLoadInfoStateToBackend, mapLockTypeToBackend, mapPublishPriorityToBackend, mapPublishTransactionStateToBackend, mapRetrieveReasonToBackend, mapRloItemTypeToBackend, mapSchemaPurposeBackend, mapSearchBlueprintStatus, mapSearchBlueprintStatusToBackend, mapStringSearchModeToBackend, mapStructureResolveOptionToBackend, mapSynchronizeFlagsToBackend, mapToModel, mapToModels, mapTranslationErrorSeverityToBackend, mapTranslationJobPriorityToBackend, mapTranslationJobStateToBackend, mapTranslationJobTypeToBackend, mapTranslationStatusToBackend, parseItemUri, tryMapToModel, tryParseItemUri };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-sites/models",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Tridion Sites models",
5
5
  "author": "RWS",
6
6
  "homepage": "https://www.rws.com",
@@ -24,19 +24,19 @@
24
24
  "test:ci": "jest --verbose --reporters='default' --reporters='jest-junit'"
25
25
  },
26
26
  "dependencies": {
27
- "@tridion-sites/open-api-client": "4.0.0",
27
+ "@tridion-sites/open-api-client": "4.1.0",
28
28
  "immer": "10.1.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@babel/core": "7.25.8",
32
- "@babel/preset-env": "7.25.8",
33
- "@babel/preset-typescript": "7.25.7",
31
+ "@babel/core": "7.26.9",
32
+ "@babel/preset-env": "7.26.9",
33
+ "@babel/preset-typescript": "7.26.0",
34
34
  "@rollup/plugin-commonjs": "25.0.8",
35
35
  "@rollup/plugin-json": "6.1.0",
36
36
  "@rollup/plugin-node-resolve": "15.3.0",
37
37
  "@rollup/plugin-typescript": "11.1.6",
38
38
  "@tridion-sites/utils": "0.0.0",
39
- "@tridion/graphene": "3.1.3",
39
+ "@tridion/graphene": "3.4.0",
40
40
  "@types/jest": "29.5.13",
41
41
  "babel-jest": "29.7.0",
42
42
  "jest": "29.7.0",
@@ -45,6 +45,7 @@
45
45
  "rollup": "3.29.5",
46
46
  "rollup-plugin-delete": "2.1.0",
47
47
  "rollup-plugin-node-externals": "6.1.2",
48
+ "ts-jest": "29.2.5",
48
49
  "typescript": "5.5.2",
49
50
  "typescript-transform-paths": "3.5.1"
50
51
  },