contentful-migration 4.9.5 → 4.9.6
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 +2 -2
- package/package.json +1 -1
- package/built/bin/cli.d.ts +0 -9
- package/built/bin/lib/config.d.ts +0 -13
- package/built/bin/lib/contentful-client/index.d.ts +0 -2
- package/built/bin/lib/contentful-client/proxy.d.ts +0 -19
- package/built/bin/lib/render-migration.d.ts +0 -5
- package/built/bin/lib/steps-errors.d.ts +0 -3
- package/built/bin/lib/write-errors-to-log.d.ts +0 -2
- package/built/bin/usage-params.d.ts +0 -2
- package/built/index.d.ts +0 -1
- package/built/lib/action/action.d.ts +0 -18
- package/built/lib/action/content-type-annotate.d.ts +0 -11
- package/built/lib/action/content-type-create.d.ts +0 -8
- package/built/lib/action/content-type-delete.d.ts +0 -8
- package/built/lib/action/content-type-publish.d.ts +0 -8
- package/built/lib/action/content-type-save.d.ts +0 -8
- package/built/lib/action/content-type-unpublish.d.ts +0 -8
- package/built/lib/action/content-type-update.d.ts +0 -11
- package/built/lib/action/editor-layout/editor-layout-change-field-group-control.d.ts +0 -13
- package/built/lib/action/editor-layout/editor-layout-create-field-group.d.ts +0 -12
- package/built/lib/action/editor-layout/editor-layout-create.d.ts +0 -8
- package/built/lib/action/editor-layout/editor-layout-delete-field-group.d.ts +0 -21
- package/built/lib/action/editor-layout/editor-layout-delete.d.ts +0 -10
- package/built/lib/action/editor-layout/editor-layout-move-field.d.ts +0 -13
- package/built/lib/action/editor-layout/editor-layout-update-field-group.d.ts +0 -22
- package/built/lib/action/editorinterface-copy.d.ts +0 -14
- package/built/lib/action/editorinterface-reset.d.ts +0 -12
- package/built/lib/action/editorinterface-save.d.ts +0 -8
- package/built/lib/action/editorinterface-update.d.ts +0 -16
- package/built/lib/action/entry-derive.d.ts +0 -15
- package/built/lib/action/entry-field-purge.d.ts +0 -9
- package/built/lib/action/entry-field-rename.d.ts +0 -11
- package/built/lib/action/entry-set-tags.d.ts +0 -10
- package/built/lib/action/entry-transform-to-type.d.ts +0 -16
- package/built/lib/action/entry-transform.d.ts +0 -11
- package/built/lib/action/entryeditor-configure.d.ts +0 -17
- package/built/lib/action/entryeditor-reset-to-default.d.ts +0 -10
- package/built/lib/action/entryeditor.d.ts +0 -8
- package/built/lib/action/entryeditors-configure.d.ts +0 -21
- package/built/lib/action/field-action.d.ts +0 -10
- package/built/lib/action/field-annotate.d.ts +0 -12
- package/built/lib/action/field-create.d.ts +0 -7
- package/built/lib/action/field-move.d.ts +0 -9
- package/built/lib/action/field-rename.d.ts +0 -15
- package/built/lib/action/field-update.d.ts +0 -10
- package/built/lib/action/sidebar-reset-to-default.d.ts +0 -10
- package/built/lib/action/sidebarwidget-add.d.ts +0 -16
- package/built/lib/action/sidebarwidget-remove.d.ts +0 -13
- package/built/lib/action/sidebarwidget-update.d.ts +0 -15
- package/built/lib/action/sidebarwidget.d.ts +0 -13
- package/built/lib/action/tag-create.d.ts +0 -12
- package/built/lib/action/tag-delete.d.ts +0 -8
- package/built/lib/action/tag-save.d.ts +0 -10
- package/built/lib/action/tag-update.d.ts +0 -11
- package/built/lib/entities/content-type.d.ts +0 -90
- package/built/lib/entities/entry.d.ts +0 -28
- package/built/lib/entities/link.d.ts +0 -15
- package/built/lib/entities/tag.d.ts +0 -18
- package/built/lib/errors/chunks-validation.d.ts +0 -5
- package/built/lib/errors/editorinterfaces-fetching.d.ts +0 -4
- package/built/lib/errors/index.d.ts +0 -6
- package/built/lib/errors/payload-validation.d.ts +0 -5
- package/built/lib/errors/space-access.d.ts +0 -4
- package/built/lib/errors/steps-validation.d.ts +0 -5
- package/built/lib/fetcher.d.ts +0 -19
- package/built/lib/intent/base-intent.d.ts +0 -64
- package/built/lib/intent/composed-intent.d.ts +0 -62
- package/built/lib/intent/content-type-annotate.d.ts +0 -11
- package/built/lib/intent/content-type-create.d.ts +0 -10
- package/built/lib/intent/content-type-delete.d.ts +0 -13
- package/built/lib/intent/content-type-update.d.ts +0 -10
- package/built/lib/intent/editor-layout/editor-layout-change-field-group-control.d.ts +0 -15
- package/built/lib/intent/editor-layout/editor-layout-change-field-group-id.d.ts +0 -17
- package/built/lib/intent/editor-layout/editor-layout-create-field-group.d.ts +0 -15
- package/built/lib/intent/editor-layout/editor-layout-create.d.ts +0 -15
- package/built/lib/intent/editor-layout/editor-layout-delete-field-group.d.ts +0 -15
- package/built/lib/intent/editor-layout/editor-layout-delete.d.ts +0 -14
- package/built/lib/intent/editor-layout/editor-layout-invalid-method.d.ts +0 -12
- package/built/lib/intent/editor-layout/editor-layout-move-field.d.ts +0 -18
- package/built/lib/intent/editor-layout/editor-layout-update-field-group.d.ts +0 -15
- package/built/lib/intent/editorinterface-copy.d.ts +0 -14
- package/built/lib/intent/editorinterface-reset.d.ts +0 -14
- package/built/lib/intent/editorinterface-update.d.ts +0 -15
- package/built/lib/intent/entry-derive.d.ts +0 -14
- package/built/lib/intent/entry-set-tags.d.ts +0 -13
- package/built/lib/intent/entry-transform-to-type.d.ts +0 -15
- package/built/lib/intent/entry-transform.d.ts +0 -13
- package/built/lib/intent/entryeditor-configure.d.ts +0 -14
- package/built/lib/intent/entryeditor-reset-to-default.d.ts +0 -14
- package/built/lib/intent/entryeditors-configure.d.ts +0 -14
- package/built/lib/intent/field-annotate.d.ts +0 -10
- package/built/lib/intent/field-create.d.ts +0 -10
- package/built/lib/intent/field-delete.d.ts +0 -13
- package/built/lib/intent/field-move.d.ts +0 -13
- package/built/lib/intent/field-rename.d.ts +0 -20
- package/built/lib/intent/field-update.d.ts +0 -10
- package/built/lib/intent/index.d.ts +0 -38
- package/built/lib/intent/sidebar-reset-to-default.d.ts +0 -14
- package/built/lib/intent/sidebarwidget-add.d.ts +0 -15
- package/built/lib/intent/sidebarwidget-remove.d.ts +0 -15
- package/built/lib/intent/sidebarwidget-update.d.ts +0 -15
- package/built/lib/intent/tag-create.d.ts +0 -16
- package/built/lib/intent/tag-delete.d.ts +0 -15
- package/built/lib/intent/tag-update.d.ts +0 -14
- package/built/lib/intent-list/index.d.ts +0 -17
- package/built/lib/intent-validator/content-transform.d.ts +0 -17
- package/built/lib/intent-validator/content-type-update.d.ts +0 -13
- package/built/lib/intent-validator/entry-derive.d.ts +0 -20
- package/built/lib/intent-validator/entry-set-tags.d.ts +0 -15
- package/built/lib/intent-validator/entry-transform-to-type.d.ts +0 -19
- package/built/lib/intent-validator/field-movement.d.ts +0 -21
- package/built/lib/intent-validator/field-update.d.ts +0 -23
- package/built/lib/intent-validator/schema-validator.d.ts +0 -19
- package/built/lib/intent-validator/tag-update.d.ts +0 -11
- package/built/lib/interfaces/annotation.d.ts +0 -41
- package/built/lib/interfaces/api-entry.d.ts +0 -19
- package/built/lib/interfaces/api-fetcher.d.ts +0 -10
- package/built/lib/interfaces/api-tag-link.d.ts +0 -7
- package/built/lib/interfaces/api-tag.d.ts +0 -9
- package/built/lib/interfaces/content-transform.d.ts +0 -6
- package/built/lib/interfaces/content-type.d.ts +0 -95
- package/built/lib/interfaces/entry-derive.d.ts +0 -9
- package/built/lib/interfaces/entry-set-tags.d.ts +0 -6
- package/built/lib/interfaces/entry-transform-to-type.d.ts +0 -10
- package/built/lib/interfaces/errors.d.ts +0 -35
- package/built/lib/interfaces/intent-validator.d.ts +0 -6
- package/built/lib/interfaces/intent.d.ts +0 -60
- package/built/lib/interfaces/plan-message.d.ts +0 -10
- package/built/lib/interfaces/raw-step.d.ts +0 -89
- package/built/lib/interfaces/request.d.ts +0 -12
- package/built/lib/migration-chunks/validation/content-type.d.ts +0 -4
- package/built/lib/migration-chunks/validation/duplicate-props.d.ts +0 -3
- package/built/lib/migration-chunks/validation/editor-layout.d.ts +0 -5
- package/built/lib/migration-chunks/validation/errors.d.ts +0 -23
- package/built/lib/migration-chunks/validation/field.d.ts +0 -8
- package/built/lib/migration-chunks/validation/index.d.ts +0 -19
- package/built/lib/migration-chunks/validation/tag.d.ts +0 -4
- package/built/lib/migration-parser.d.ts +0 -16
- package/built/lib/migration-steps/action-creators.d.ts +0 -53
- package/built/lib/migration-steps/dispatch-proxy.d.ts +0 -6
- package/built/lib/migration-steps/first-external-caller.d.ts +0 -3
- package/built/lib/migration-steps/index.d.ts +0 -3
- package/built/lib/offline-api/index.d.ts +0 -80
- package/built/lib/offline-api/validator/annotations.d.ts +0 -9
- package/built/lib/offline-api/validator/content-type.d.ts +0 -13
- package/built/lib/offline-api/validator/display-field.d.ts +0 -9
- package/built/lib/offline-api/validator/editor-interface.d.ts +0 -11
- package/built/lib/offline-api/validator/entry.d.ts +0 -7
- package/built/lib/offline-api/validator/errors.d.ts +0 -48
- package/built/lib/offline-api/validator/field-deletion.d.ts +0 -7
- package/built/lib/offline-api/validator/field-groups-count.d.ts +0 -8
- package/built/lib/offline-api/validator/schema/content-type-schema.d.ts +0 -5
- package/built/lib/offline-api/validator/schema/editor-layout-schema.d.ts +0 -2
- package/built/lib/offline-api/validator/schema/field-validations-schema.d.ts +0 -3
- package/built/lib/offline-api/validator/schema/fields-schema.d.ts +0 -2
- package/built/lib/offline-api/validator/schema/index.d.ts +0 -10
- package/built/lib/offline-api/validator/schema/schema-validation.d.ts +0 -8
- package/built/lib/offline-api/validator/schema/tag-schema.d.ts +0 -4
- package/built/lib/offline-api/validator/tag.d.ts +0 -12
- package/built/lib/offline-api/validator/tags-on-entry.d.ts +0 -11
- package/built/lib/offline-api/validator/type-change.d.ts +0 -7
- package/built/lib/utils/deprecated.d.ts +0 -1
- package/built/lib/utils/editor-layout.d.ts +0 -26
- package/built/lib/utils/is-defined.d.ts +0 -1
- package/built/lib/utils/should-publish-local-changes.d.ts +0 -9
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { ResetEditorInterfaceAction } from '../action/editorinterface-reset';
|
|
4
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
5
|
-
export default class EditorInterfaceResetIntent extends Intent {
|
|
6
|
-
isEditorInterfaceIntent(): boolean;
|
|
7
|
-
isGroupable(): boolean;
|
|
8
|
-
groupsWith(other: Intent): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldSave(): boolean;
|
|
11
|
-
shouldPublish(): boolean;
|
|
12
|
-
toActions(): (SaveEditorInterfaceAction | ResetEditorInterfaceAction)[];
|
|
13
|
-
toPlanMessage(): PlanMessage;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { UpdateEditorInterfaceAction } from '../action/editorinterface-update';
|
|
4
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
5
|
-
export default class EditorInterfaceUpdateIntent extends Intent {
|
|
6
|
-
isEditorInterfaceUpdate(): boolean;
|
|
7
|
-
isEditorInterfaceIntent(): boolean;
|
|
8
|
-
isGroupable(): boolean;
|
|
9
|
-
groupsWith(other: Intent): boolean;
|
|
10
|
-
endsGroup(): boolean;
|
|
11
|
-
shouldSave(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
toActions(): (SaveEditorInterfaceAction | UpdateEditorInterfaceAction)[];
|
|
14
|
-
toPlanMessage(): PlanMessage;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { EntryDeriveAction } from '../action/entry-derive';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class EntryDeriveIntent extends Intent {
|
|
5
|
-
getRelatedContentTypeIds(): string[];
|
|
6
|
-
isEntryDerive(): boolean;
|
|
7
|
-
endsGroup(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
requiresAllTags(): boolean;
|
|
10
|
-
toActions(): EntryDeriveAction[];
|
|
11
|
-
toPlanMessage(): PlanMessage;
|
|
12
|
-
shouldSave(): boolean;
|
|
13
|
-
shouldPublish(): boolean;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { EntrySetTagsAction } from '../action/entry-set-tags';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class EntrySetTagsIntent extends Intent {
|
|
5
|
-
isEntrySetTags(): boolean;
|
|
6
|
-
endsGroup(): boolean;
|
|
7
|
-
groupsWith(): boolean;
|
|
8
|
-
requiresAllTags(): boolean;
|
|
9
|
-
toActions(): EntrySetTagsAction[];
|
|
10
|
-
toPlanMessage(): PlanMessage;
|
|
11
|
-
shouldSave(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { EntryTransformToTypeAction } from '../action/entry-transform-to-type';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class EntryTransformToTypeIntent extends Intent {
|
|
5
|
-
getRelatedContentTypeIds(): string[];
|
|
6
|
-
isEntryTransformToType(): boolean;
|
|
7
|
-
endsGroup(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
requiresAllTags(): boolean;
|
|
10
|
-
toActions(): EntryTransformToTypeAction[];
|
|
11
|
-
toPlanMessage(): PlanMessage;
|
|
12
|
-
shouldSave(): boolean;
|
|
13
|
-
shouldPublish(): boolean;
|
|
14
|
-
requiresAllEntries(): boolean;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { EntryTransformAction } from '../action/entry-transform';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class EntryTransformIntent extends Intent {
|
|
5
|
-
isContentTransform(): boolean;
|
|
6
|
-
endsGroup(): boolean;
|
|
7
|
-
groupsWith(): boolean;
|
|
8
|
-
requiresAllTags(): boolean;
|
|
9
|
-
toActions(): EntryTransformAction[];
|
|
10
|
-
toPlanMessage(): PlanMessage;
|
|
11
|
-
shouldSave(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { EntryEditorConfigureAction } from '../action/entryeditor-configure';
|
|
5
|
-
export default class EntryEditorConfigureIntent extends Intent {
|
|
6
|
-
isEditorInterfaceIntent(): boolean;
|
|
7
|
-
isGroupable(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldSave(): boolean;
|
|
11
|
-
shouldPublish(): boolean;
|
|
12
|
-
toActions(): (EntryEditorConfigureAction | SaveEditorInterfaceAction)[];
|
|
13
|
-
toPlanMessage(): PlanMessage;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { EntryEditorResetToDefaultAction } from '../action/entryeditor-reset-to-default';
|
|
5
|
-
export default class EntryEditorResetToDefaultIntent extends Intent {
|
|
6
|
-
isEditorInterfaceIntent(): boolean;
|
|
7
|
-
isGroupable(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldSave(): boolean;
|
|
11
|
-
shouldPublish(): boolean;
|
|
12
|
-
toActions(): (SaveEditorInterfaceAction | EntryEditorResetToDefaultAction)[];
|
|
13
|
-
toPlanMessage(): PlanMessage;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { EntryEditorsConfigureAction } from '../action/entryeditors-configure';
|
|
5
|
-
export default class EntryEditorsConfigureIntent extends Intent {
|
|
6
|
-
isEditorInterfaceIntent(): boolean;
|
|
7
|
-
isGroupable(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldSave(): boolean;
|
|
11
|
-
shouldPublish(): boolean;
|
|
12
|
-
toActions(): (EntryEditorsConfigureAction | SaveEditorInterfaceAction)[];
|
|
13
|
-
toPlanMessage(): PlanMessage;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { FieldAnnotateAction } from '../action/field-annotate';
|
|
4
|
-
export default class FieldAnnotateIntent extends Intent {
|
|
5
|
-
groupsWith(other: Intent): boolean;
|
|
6
|
-
endsGroup(): boolean;
|
|
7
|
-
shouldSave(): boolean;
|
|
8
|
-
toActions(): FieldAnnotateAction[];
|
|
9
|
-
toPlanMessage(): PlanMessage;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { FieldCreateAction } from '../action/field-create';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class FieldCreateIntent extends Intent {
|
|
5
|
-
isFieldCreate(): boolean;
|
|
6
|
-
groupsWith(other: Intent): boolean;
|
|
7
|
-
endsGroup(): boolean;
|
|
8
|
-
toActions(): FieldCreateAction[];
|
|
9
|
-
toPlanMessage(): PlanMessage;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { FieldUpdateAction } from '../action/field-update';
|
|
3
|
-
import { ContentTypeSaveAction } from '../action/content-type-save';
|
|
4
|
-
import { ContentTypePublishAction } from '../action/content-type-publish';
|
|
5
|
-
import { EntryFieldPurgeAction } from '../action/entry-field-purge';
|
|
6
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
7
|
-
export default class FieldDeleteIntent extends Intent {
|
|
8
|
-
isFieldDelete(): boolean;
|
|
9
|
-
groupsWith(): boolean;
|
|
10
|
-
endsGroup(): boolean;
|
|
11
|
-
toActions(): (FieldUpdateAction | ContentTypeSaveAction | ContentTypePublishAction | EntryFieldPurgeAction)[];
|
|
12
|
-
toPlanMessage(): PlanMessage;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { FieldMoveAction } from '../action/field-move';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class FieldMoveIntent extends Intent {
|
|
5
|
-
isFieldMove(): boolean;
|
|
6
|
-
groupsWith(other: Intent): boolean;
|
|
7
|
-
endsGroup(): boolean;
|
|
8
|
-
getPivotId(): string;
|
|
9
|
-
getFieldMovementKey(): string;
|
|
10
|
-
getDirection(): string;
|
|
11
|
-
toActions(): FieldMoveAction[];
|
|
12
|
-
toPlanMessage(): PlanMessage;
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { FieldRenameAction } from '../action/field-rename';
|
|
3
|
-
import { EntryFieldRenameAction } from '../action/entry-field-rename';
|
|
4
|
-
import { CopyEditorInterfaceAction } from '../action/editorinterface-copy';
|
|
5
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
6
|
-
import { ResetEditorInterfaceAction } from '../action/editorinterface-reset';
|
|
7
|
-
import { ContentTypeSaveAction } from '../action/content-type-save';
|
|
8
|
-
import { ContentTypePublishAction } from '../action/content-type-publish';
|
|
9
|
-
import { FieldUpdateAction } from '../action/field-update';
|
|
10
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
11
|
-
export default class FieldRenameIntent extends Intent {
|
|
12
|
-
isFieldRename(): boolean;
|
|
13
|
-
groupsWith(): boolean;
|
|
14
|
-
endsGroup(): boolean;
|
|
15
|
-
getNewId(): string;
|
|
16
|
-
shouldSave(): boolean;
|
|
17
|
-
shouldPublish(): boolean;
|
|
18
|
-
toActions(): (FieldUpdateAction | FieldRenameAction | EntryFieldRenameAction | CopyEditorInterfaceAction | SaveEditorInterfaceAction | ResetEditorInterfaceAction | ContentTypeSaveAction | ContentTypePublishAction)[];
|
|
19
|
-
toPlanMessage(): PlanMessage;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { FieldUpdateAction } from '../action/field-update';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class FieldUpdateIntent extends Intent {
|
|
5
|
-
isFieldUpdate(): boolean;
|
|
6
|
-
groupsWith(other: Intent): boolean;
|
|
7
|
-
endsGroup(): boolean;
|
|
8
|
-
toActions(): FieldUpdateAction[];
|
|
9
|
-
toPlanMessage(): PlanMessage;
|
|
10
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import FieldUpdateIntent from './field-update';
|
|
3
|
-
import ContentTypeUpdateIntent from './content-type-update';
|
|
4
|
-
import ContentTypeAnnotateIntent from './content-type-annotate';
|
|
5
|
-
import EntryTransformIntent from './entry-transform';
|
|
6
|
-
import FieldRenameIntent from './field-rename';
|
|
7
|
-
import FieldMoveIntent from './field-move';
|
|
8
|
-
import FieldDeleteIntent from './field-delete';
|
|
9
|
-
import FieldCreateIntent from './field-create';
|
|
10
|
-
import ContentTypeCreateIntent from './content-type-create';
|
|
11
|
-
import ContentTypeDeleteIntent from './content-type-delete';
|
|
12
|
-
import EntryDeriveIntent from './entry-derive';
|
|
13
|
-
import EntryTransformToTypeIntent from './entry-transform-to-type';
|
|
14
|
-
import EditorInterfaceUpdateIntent from './editorinterface-update';
|
|
15
|
-
import EditorInterfaceCopyIntent from './editorinterface-copy';
|
|
16
|
-
import EditorInterfaceResetIntent from './editorinterface-reset';
|
|
17
|
-
import SidebarWidgetAddIntent from './sidebarwidget-add';
|
|
18
|
-
import SidebarWidgetRemoveIntent from './sidebarwidget-remove';
|
|
19
|
-
import SidebarWidgetUpdateIntent from './sidebarwidget-update';
|
|
20
|
-
import SidebarResetToDefaultIntent from './sidebar-reset-to-default';
|
|
21
|
-
import EntryEditorResetToDefaultIntent from './entryeditor-reset-to-default';
|
|
22
|
-
import EntryEditorConfigureIntent from './entryeditor-configure';
|
|
23
|
-
import EntryEditorsConfigureIntent from './entryeditors-configure';
|
|
24
|
-
import EditorLayoutCreateIntent from './editor-layout/editor-layout-create';
|
|
25
|
-
import EditorLayoutInvalidMethodIntent from './editor-layout/editor-layout-invalid-method';
|
|
26
|
-
import EditorLayoutCreateFieldGroupIntent from './editor-layout/editor-layout-create-field-group';
|
|
27
|
-
import EditorLayoutDeleteFieldGroupIntent from './editor-layout/editor-layout-delete-field-group';
|
|
28
|
-
import EditorLayoutUpdateFieldGroupIntent from './editor-layout/editor-layout-update-field-group';
|
|
29
|
-
import EditorLayoutChangeFieldGroupControlIntent from './editor-layout/editor-layout-change-field-group-control';
|
|
30
|
-
import EditorLayoutMoveFieldIntent from './editor-layout/editor-layout-move-field';
|
|
31
|
-
import TagCreateIntent from './tag-create';
|
|
32
|
-
import TagUpdateIntent from './tag-update';
|
|
33
|
-
import TagDeleteIntent from './tag-delete';
|
|
34
|
-
import EntrySetTagsIntent from './entry-set-tags';
|
|
35
|
-
import EditorLayoutChangeFieldGroupIdIntent from './editor-layout/editor-layout-change-field-group-id';
|
|
36
|
-
import EditorLayoutDeleteIntent from './editor-layout/editor-layout-delete';
|
|
37
|
-
import FieldAnnotateIntent from './field-annotate';
|
|
38
|
-
export { Intent as default, Intent, FieldUpdateIntent as FieldUpdate, EntryTransformIntent as EntryTransform, FieldRenameIntent as FieldRename, FieldMoveIntent as FieldMove, FieldDeleteIntent as FieldDelete, FieldCreateIntent as FieldCreate, FieldAnnotateIntent as FieldAnnotate, ContentTypeCreateIntent as ContentTypeCreate, ContentTypeDeleteIntent as ContentTypeDelete, ContentTypeUpdateIntent as ContentTypeUpdate, ContentTypeAnnotateIntent as ContentTypeAnnotate, EntryDeriveIntent as EntryDerive, EntryTransformToTypeIntent as EntryTransformToType, EditorInterfaceUpdateIntent as EditorInterfaceUpdate, EditorInterfaceCopyIntent as EditorInterfaceCopy, EditorInterfaceResetIntent as EditorInterfaceReset, SidebarWidgetAddIntent as SidebarWidgetAdd, SidebarWidgetRemoveIntent as SidebarWidgetRemove, SidebarWidgetUpdateIntent as SidebarWidgetUpdate, SidebarResetToDefaultIntent as SidebarResetToDefault, EntryEditorResetToDefaultIntent as EntryEditorResetToDefault, EntryEditorConfigureIntent as EntryEditorConfigure, EntryEditorsConfigureIntent as EntryEditorsConfigure, EditorLayoutCreateIntent as EditorLayoutCreate, EditorLayoutCreateFieldGroupIntent as EditorLayoutCreateFieldGroup, EditorLayoutDeleteFieldGroupIntent as EditorLayoutDeleteFieldGroup, EditorLayoutInvalidMethodIntent as EditorLayoutInvalidMethod, EditorLayoutUpdateFieldGroupIntent as EditorLayoutUpdateFieldGroup, EditorLayoutChangeFieldGroupControlIntent as EditorLayoutChangeFieldGroupControl, TagCreateIntent as TagCreate, TagUpdateIntent as TagUpdate, TagDeleteIntent as TagDelete, EntrySetTagsIntent as EntrySetTags, EditorLayoutMoveFieldIntent as EditorLayoutMoveField, EditorLayoutChangeFieldGroupIdIntent as EditorLayoutChangeFieldGroupId, EditorLayoutDeleteIntent as EditorLayoutDelete };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { SidebarResetToDefaultAction } from '../action/sidebar-reset-to-default';
|
|
5
|
-
export default class SidebarResetToDefaultIntent extends Intent {
|
|
6
|
-
isEditorInterfaceIntent(): boolean;
|
|
7
|
-
isGroupable(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldSave(): boolean;
|
|
11
|
-
shouldPublish(): boolean;
|
|
12
|
-
toActions(): (SaveEditorInterfaceAction | SidebarResetToDefaultAction)[];
|
|
13
|
-
toPlanMessage(): PlanMessage;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { SidebarWidgetAddAction } from '../action/sidebarwidget-add';
|
|
5
|
-
export default class SidebarWidgetAddIntent extends Intent {
|
|
6
|
-
isSidebarUpdate(): boolean;
|
|
7
|
-
isEditorInterfaceIntent(): boolean;
|
|
8
|
-
isGroupable(): boolean;
|
|
9
|
-
groupsWith(other: Intent): boolean;
|
|
10
|
-
endsGroup(): boolean;
|
|
11
|
-
shouldSave(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
toActions(): (SaveEditorInterfaceAction | SidebarWidgetAddAction)[];
|
|
14
|
-
toPlanMessage(): PlanMessage;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { SidebarWidgetRemoveAction } from '../action/sidebarwidget-remove';
|
|
5
|
-
export default class SidebarWidgetRemoveIntent extends Intent {
|
|
6
|
-
isSidebarUpdate(): boolean;
|
|
7
|
-
isEditorInterfaceIntent(): boolean;
|
|
8
|
-
isGroupable(): boolean;
|
|
9
|
-
groupsWith(other: Intent): boolean;
|
|
10
|
-
endsGroup(): boolean;
|
|
11
|
-
shouldSave(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
toActions(): (SaveEditorInterfaceAction | SidebarWidgetRemoveAction)[];
|
|
14
|
-
toPlanMessage(): PlanMessage;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
-
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
4
|
-
import { SidebarWidgetUpdateAction } from '../action/sidebarwidget-update';
|
|
5
|
-
export default class SidebarWidgetUpdateIntent extends Intent {
|
|
6
|
-
isSidebarUpdate(): boolean;
|
|
7
|
-
isEditorInterfaceIntent(): boolean;
|
|
8
|
-
isGroupable(): boolean;
|
|
9
|
-
groupsWith(other: Intent): boolean;
|
|
10
|
-
endsGroup(): boolean;
|
|
11
|
-
shouldSave(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
toActions(): (SaveEditorInterfaceAction | SidebarWidgetUpdateAction)[];
|
|
14
|
-
toPlanMessage(): PlanMessage;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TagVisibility } from '../interfaces/api-tag';
|
|
2
|
-
import Intent from './base-intent';
|
|
3
|
-
import { TagCreateAction } from '../action/tag-create';
|
|
4
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
5
|
-
export default class TagCreateIntent extends Intent {
|
|
6
|
-
isTagIntent(): boolean;
|
|
7
|
-
getTagId(): string;
|
|
8
|
-
getTagVisibility(): TagVisibility;
|
|
9
|
-
isTagCreate(): boolean;
|
|
10
|
-
groupsWith(): boolean;
|
|
11
|
-
endsGroup(): boolean;
|
|
12
|
-
shouldPublish(): boolean;
|
|
13
|
-
requiresAllTags(): boolean;
|
|
14
|
-
toActions(): TagCreateAction[];
|
|
15
|
-
toPlanMessage(): PlanMessage;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { TagDeleteAction } from '../action/tag-delete';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class TagDeleteIntent extends Intent {
|
|
5
|
-
isTagIntent(): boolean;
|
|
6
|
-
getTagId(): string;
|
|
7
|
-
isTagDelete(): boolean;
|
|
8
|
-
groupsWith(): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldSave(): boolean;
|
|
11
|
-
shouldPublish(): boolean;
|
|
12
|
-
requiresAllTags(): boolean;
|
|
13
|
-
toActions(): TagDeleteAction[];
|
|
14
|
-
toPlanMessage(): PlanMessage;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Intent from './base-intent';
|
|
2
|
-
import { TagUpdateAction } from '../action/tag-update';
|
|
3
|
-
import { PlanMessage } from '../interfaces/plan-message';
|
|
4
|
-
export default class TagUpdateIntent extends Intent {
|
|
5
|
-
isTagIntent(): boolean;
|
|
6
|
-
getTagId(): string;
|
|
7
|
-
isTagUpdate(): boolean;
|
|
8
|
-
groupsWith(other: Intent): boolean;
|
|
9
|
-
endsGroup(): boolean;
|
|
10
|
-
shouldPublish(): boolean;
|
|
11
|
-
requiresAllTags(): boolean;
|
|
12
|
-
toActions(): TagUpdateAction[];
|
|
13
|
-
toPlanMessage(): PlanMessage;
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Intent as IntentInterface } from '../interfaces/intent';
|
|
2
|
-
import IntentValidator from '../interfaces/intent-validator';
|
|
3
|
-
import RawStep from '../interfaces/raw-step';
|
|
4
|
-
import { OfflineAPI } from '../offline-api/index';
|
|
5
|
-
import ValidationError from '../interfaces/errors';
|
|
6
|
-
declare class IntentList {
|
|
7
|
-
private intents;
|
|
8
|
-
private validators;
|
|
9
|
-
constructor(intents: IntentInterface[]);
|
|
10
|
-
addValidator(validator: IntentValidator): void;
|
|
11
|
-
validate(): ValidationError[];
|
|
12
|
-
toRaw(): RawStep[];
|
|
13
|
-
getIntents(): IntentInterface[];
|
|
14
|
-
compressed(): IntentList;
|
|
15
|
-
applyTo(api: OfflineAPI): Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
export default IntentList;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Intent from '../intent/base-intent';
|
|
2
|
-
import SchemaValidator from './schema-validator';
|
|
3
|
-
import * as Joi from 'joi';
|
|
4
|
-
declare class ContentTransformIntentValidator extends SchemaValidator {
|
|
5
|
-
protected article: string;
|
|
6
|
-
protected displayName: string;
|
|
7
|
-
appliesTo(step: Intent): boolean;
|
|
8
|
-
get propertyNameToValidate(): string;
|
|
9
|
-
get schema(): {
|
|
10
|
-
contentType: Joi.StringSchema;
|
|
11
|
-
from: Joi.ArraySchema;
|
|
12
|
-
to: Joi.ArraySchema;
|
|
13
|
-
transformEntryForLocale: Joi.FunctionSchema;
|
|
14
|
-
shouldPublish: Joi.AlternativesSchema;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default ContentTransformIntentValidator;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import SchemaValidator from './schema-validator';
|
|
2
|
-
import * as Joi from 'joi';
|
|
3
|
-
declare class ContentTypeUpdateStepValidator extends SchemaValidator {
|
|
4
|
-
protected article: string;
|
|
5
|
-
protected displayName: string;
|
|
6
|
-
appliesTo(step: any): any;
|
|
7
|
-
get schema(): {
|
|
8
|
-
name: Joi.StringSchema;
|
|
9
|
-
description: Joi.StringSchema;
|
|
10
|
-
displayField: Joi.StringSchema;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export default ContentTypeUpdateStepValidator;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Intent from '../intent/base-intent';
|
|
2
|
-
import SchemaValidator from './schema-validator';
|
|
3
|
-
import * as Joi from 'joi';
|
|
4
|
-
declare class EntryDeriveIntentValidator extends SchemaValidator {
|
|
5
|
-
protected article: string;
|
|
6
|
-
protected displayName: string;
|
|
7
|
-
appliesTo(step: Intent): boolean;
|
|
8
|
-
get propertyNameToValidate(): string;
|
|
9
|
-
get schema(): {
|
|
10
|
-
contentType: Joi.StringSchema;
|
|
11
|
-
derivedContentType: Joi.StringSchema;
|
|
12
|
-
from: Joi.ArraySchema;
|
|
13
|
-
toReferenceField: Joi.StringSchema;
|
|
14
|
-
derivedFields: Joi.ArraySchema;
|
|
15
|
-
identityKey: Joi.FunctionSchema;
|
|
16
|
-
shouldPublish: Joi.AlternativesSchema;
|
|
17
|
-
deriveEntryForLocale: Joi.FunctionSchema;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export default EntryDeriveIntentValidator;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Intent from '../intent/base-intent';
|
|
2
|
-
import SchemaValidator from './schema-validator';
|
|
3
|
-
import * as Joi from 'joi';
|
|
4
|
-
declare class EntrySetTagsIntentValidator extends SchemaValidator {
|
|
5
|
-
protected article: string;
|
|
6
|
-
protected displayName: string;
|
|
7
|
-
appliesTo(step: Intent): boolean;
|
|
8
|
-
get propertyNameToValidate(): string;
|
|
9
|
-
get schema(): {
|
|
10
|
-
contentType: Joi.StringSchema;
|
|
11
|
-
from: Joi.ArraySchema;
|
|
12
|
-
setTagsForEntry: Joi.FunctionSchema;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export default EntrySetTagsIntentValidator;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Intent from '../intent/base-intent';
|
|
2
|
-
import SchemaValidator from './schema-validator';
|
|
3
|
-
import * as Joi from 'joi';
|
|
4
|
-
declare class EntryTransformToTypeIntentValidator extends SchemaValidator {
|
|
5
|
-
protected article: string;
|
|
6
|
-
protected displayName: string;
|
|
7
|
-
appliesTo(step: Intent): boolean;
|
|
8
|
-
get propertyNameToValidate(): string;
|
|
9
|
-
get schema(): {
|
|
10
|
-
sourceContentType: Joi.StringSchema;
|
|
11
|
-
targetContentType: Joi.StringSchema;
|
|
12
|
-
from: Joi.ArraySchema;
|
|
13
|
-
to: Joi.ArraySchema;
|
|
14
|
-
identityKey: Joi.FunctionSchema;
|
|
15
|
-
shouldPublish: Joi.BooleanSchema;
|
|
16
|
-
deriveEntryForLocale: Joi.FunctionSchema;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export default EntryTransformToTypeIntentValidator;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import FieldMoveIntent from '../intent/field-move';
|
|
2
|
-
import * as Joi from 'joi';
|
|
3
|
-
import IntentValidator from '../interfaces/intent-validator';
|
|
4
|
-
import ValidationError from '../interfaces/errors';
|
|
5
|
-
declare class FieldMovementStepValidator implements IntentValidator {
|
|
6
|
-
appliesTo(step: any): any;
|
|
7
|
-
get validationErrors(): {
|
|
8
|
-
INVALID_MOVEMENT_TYPE: (typeName: any) => string;
|
|
9
|
-
INVALID_MOVEMENT_WITH_SELF: (fieldId: any) => string;
|
|
10
|
-
INVALID_MOVEMENT_NAME: (movement: any) => string;
|
|
11
|
-
INVALID_MOVEMENT_NAME_WITH_SUGGESTION: (movement: any, suggestion: any) => string;
|
|
12
|
-
};
|
|
13
|
-
get schema(): {
|
|
14
|
-
toTheTop: Joi.AnySchema<any>;
|
|
15
|
-
toTheBottom: Joi.AnySchema<any>;
|
|
16
|
-
afterField: Joi.StringSchema;
|
|
17
|
-
beforeField: Joi.StringSchema;
|
|
18
|
-
};
|
|
19
|
-
validate(intent: FieldMoveIntent): ValidationError[];
|
|
20
|
-
}
|
|
21
|
-
export default FieldMovementStepValidator;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import SchemaValidator from './schema-validator';
|
|
2
|
-
import * as Joi from 'joi';
|
|
3
|
-
declare class FieldUpdateStepValidator extends SchemaValidator {
|
|
4
|
-
protected article: string;
|
|
5
|
-
protected displayName: string;
|
|
6
|
-
appliesTo(step: any): any;
|
|
7
|
-
get schema(): {
|
|
8
|
-
id: Joi.StringSchema;
|
|
9
|
-
newId: Joi.StringSchema;
|
|
10
|
-
name: Joi.StringSchema;
|
|
11
|
-
type: Joi.StringSchema;
|
|
12
|
-
localized: Joi.BooleanSchema;
|
|
13
|
-
required: Joi.BooleanSchema;
|
|
14
|
-
validations: Joi.ArraySchema;
|
|
15
|
-
defaultValue: Joi.ObjectSchema<any>;
|
|
16
|
-
disabled: Joi.BooleanSchema;
|
|
17
|
-
omitted: Joi.BooleanSchema;
|
|
18
|
-
deleted: Joi.BooleanSchema;
|
|
19
|
-
linkType: Joi.StringSchema;
|
|
20
|
-
items: Joi.ObjectSchema<any>;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export default FieldUpdateStepValidator;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import IntentValidator from '../interfaces/intent-validator';
|
|
2
|
-
import ValidationError from '../interfaces/errors';
|
|
3
|
-
import Intent from '../interfaces/intent';
|
|
4
|
-
import Joi from 'joi';
|
|
5
|
-
declare abstract class SchemaValidator implements IntentValidator {
|
|
6
|
-
protected abstract displayName: string;
|
|
7
|
-
protected abstract article: string;
|
|
8
|
-
get validationErrors(): {
|
|
9
|
-
INVALID_PROPERTY_NAME: (propName: any, article: any, typeName: any) => string;
|
|
10
|
-
INVALID_PROPERTY_NAME_WITH_SUGGESTION: (propName: any, article: any, typeName: any, suggestion: any) => string;
|
|
11
|
-
INVALID_PROPERTY_TYPE: (propName: any, typeName: any, actualType: any, expectedType: any) => string;
|
|
12
|
-
INVALID_VALUE_IN_ALTERNATIVES: (propName: any, typeName: any, value: any, expectedTypes: any) => string;
|
|
13
|
-
};
|
|
14
|
-
abstract appliesTo(intent: Intent): boolean;
|
|
15
|
-
get propertyNameToValidate(): string;
|
|
16
|
-
get schema(): Record<string, Joi.Schema>;
|
|
17
|
-
validate(intent: Intent): ValidationError[];
|
|
18
|
-
}
|
|
19
|
-
export default SchemaValidator;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import SchemaValidator from './schema-validator';
|
|
2
|
-
import * as Joi from 'joi';
|
|
3
|
-
declare class TagUpdateStepValidator extends SchemaValidator {
|
|
4
|
-
protected article: string;
|
|
5
|
-
protected displayName: string;
|
|
6
|
-
appliesTo(step: any): any;
|
|
7
|
-
get schema(): {
|
|
8
|
-
name: Joi.StringSchema;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export default TagUpdateStepValidator;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { PayloadValidationError } from './errors';
|
|
2
|
-
declare type AnnotationTarget = {
|
|
3
|
-
type: string;
|
|
4
|
-
accept?: Record<string, any>[];
|
|
5
|
-
};
|
|
6
|
-
declare type AssignmentTarget = {
|
|
7
|
-
type: string;
|
|
8
|
-
data: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
export declare type AnnotationAssignment = {
|
|
11
|
-
annotationId: string;
|
|
12
|
-
target: AssignmentTarget;
|
|
13
|
-
};
|
|
14
|
-
export declare type AnnotationData = {
|
|
15
|
-
id: string;
|
|
16
|
-
targets: AnnotationTarget[];
|
|
17
|
-
};
|
|
18
|
-
export declare class Annotation {
|
|
19
|
-
private annotationData;
|
|
20
|
-
constructor(annotationData: AnnotationData);
|
|
21
|
-
static isValidId(id: string): id is AnnotationId;
|
|
22
|
-
/**
|
|
23
|
-
* Verifies if given assignment complies with the annotation definition
|
|
24
|
-
*/
|
|
25
|
-
validateAssignment(assignment: AnnotationAssignment): PayloadValidationError | undefined;
|
|
26
|
-
}
|
|
27
|
-
export declare const availableAnnotations: {
|
|
28
|
-
'Contentful:AggregateRoot': Annotation;
|
|
29
|
-
'Contentful:ManagedByEnvironmentTemplate': Annotation;
|
|
30
|
-
'Contentful:AggregateComponent': Annotation;
|
|
31
|
-
};
|
|
32
|
-
export declare type AnnotationId = keyof typeof availableAnnotations;
|
|
33
|
-
export declare function validateAnnotationAssignment(assignment: AnnotationAssignment): PayloadValidationError | undefined;
|
|
34
|
-
export declare type AnnotationLink = {
|
|
35
|
-
sys: {
|
|
36
|
-
type: 'Link';
|
|
37
|
-
linkType: 'Annotation';
|
|
38
|
-
id: AnnotationId;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import APITagLink from './api-tag-link';
|
|
2
|
-
export default interface APIEntry {
|
|
3
|
-
sys: {
|
|
4
|
-
id: string;
|
|
5
|
-
version: number;
|
|
6
|
-
publishedVersion?: number;
|
|
7
|
-
contentType: {
|
|
8
|
-
sys: {
|
|
9
|
-
type: string;
|
|
10
|
-
linkType: string;
|
|
11
|
-
id: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
fields: object;
|
|
16
|
-
metadata?: {
|
|
17
|
-
tags: APITagLink[];
|
|
18
|
-
};
|
|
19
|
-
}
|