contentful-migration 4.9.3 → 4.9.5
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 +6 -1
- package/built/bin/cli.d.ts +9 -0
- package/built/bin/lib/config.d.ts +13 -0
- package/built/bin/lib/contentful-client/index.d.ts +2 -0
- package/built/bin/lib/contentful-client/proxy.d.ts +19 -0
- package/built/bin/lib/render-migration.d.ts +5 -0
- package/built/bin/lib/steps-errors.d.ts +3 -0
- package/built/bin/lib/write-errors-to-log.d.ts +2 -0
- package/built/bin/usage-params.d.ts +2 -0
- package/built/index.d.ts +1 -0
- package/built/lib/action/action.d.ts +18 -0
- package/built/lib/action/content-type-annotate.d.ts +11 -0
- package/built/lib/action/content-type-create.d.ts +8 -0
- package/built/lib/action/content-type-delete.d.ts +8 -0
- package/built/lib/action/content-type-publish.d.ts +8 -0
- package/built/lib/action/content-type-save.d.ts +8 -0
- package/built/lib/action/content-type-unpublish.d.ts +8 -0
- package/built/lib/action/content-type-update.d.ts +11 -0
- package/built/lib/action/editor-layout/editor-layout-change-field-group-control.d.ts +13 -0
- package/built/lib/action/editor-layout/editor-layout-create-field-group.d.ts +12 -0
- package/built/lib/action/editor-layout/editor-layout-create.d.ts +8 -0
- package/built/lib/action/editor-layout/editor-layout-delete-field-group.d.ts +21 -0
- package/built/lib/action/editor-layout/editor-layout-delete.d.ts +10 -0
- package/built/lib/action/editor-layout/editor-layout-move-field.d.ts +13 -0
- package/built/lib/action/editor-layout/editor-layout-update-field-group.d.ts +22 -0
- package/built/lib/action/editorinterface-copy.d.ts +14 -0
- package/built/lib/action/editorinterface-reset.d.ts +12 -0
- package/built/lib/action/editorinterface-save.d.ts +8 -0
- package/built/lib/action/editorinterface-update.d.ts +16 -0
- package/built/lib/action/entry-derive.d.ts +15 -0
- package/built/lib/action/entry-field-purge.d.ts +9 -0
- package/built/lib/action/entry-field-rename.d.ts +11 -0
- package/built/lib/action/entry-set-tags.d.ts +10 -0
- package/built/lib/action/entry-transform-to-type.d.ts +16 -0
- package/built/lib/action/entry-transform.d.ts +11 -0
- package/built/lib/action/entryeditor-configure.d.ts +17 -0
- package/built/lib/action/entryeditor-reset-to-default.d.ts +10 -0
- package/built/lib/action/entryeditor.d.ts +8 -0
- package/built/lib/action/entryeditors-configure.d.ts +21 -0
- package/built/lib/action/field-action.d.ts +10 -0
- package/built/lib/action/field-annotate.d.ts +12 -0
- package/built/lib/action/field-create.d.ts +7 -0
- package/built/lib/action/field-move.d.ts +9 -0
- package/built/lib/action/field-rename.d.ts +15 -0
- package/built/lib/action/field-update.d.ts +10 -0
- package/built/lib/action/sidebar-reset-to-default.d.ts +10 -0
- package/built/lib/action/sidebarwidget-add.d.ts +16 -0
- package/built/lib/action/sidebarwidget-remove.d.ts +13 -0
- package/built/lib/action/sidebarwidget-update.d.ts +15 -0
- package/built/lib/action/sidebarwidget.d.ts +13 -0
- package/built/lib/action/tag-create.d.ts +12 -0
- package/built/lib/action/tag-delete.d.ts +8 -0
- package/built/lib/action/tag-save.d.ts +10 -0
- package/built/lib/action/tag-update.d.ts +11 -0
- package/built/lib/entities/content-type.d.ts +90 -0
- package/built/lib/entities/entry.d.ts +28 -0
- package/built/lib/entities/link.d.ts +15 -0
- package/built/lib/entities/tag.d.ts +18 -0
- package/built/lib/errors/chunks-validation.d.ts +5 -0
- package/built/lib/errors/editorinterfaces-fetching.d.ts +4 -0
- package/built/lib/errors/index.d.ts +6 -0
- package/built/lib/errors/payload-validation.d.ts +5 -0
- package/built/lib/errors/space-access.d.ts +4 -0
- package/built/lib/errors/steps-validation.d.ts +5 -0
- package/built/lib/fetcher.d.ts +19 -0
- package/built/lib/intent/base-intent.d.ts +64 -0
- package/built/lib/intent/base-intent.js +4 -3
- package/built/lib/intent/base-intent.js.map +1 -1
- package/built/lib/intent/composed-intent.d.ts +62 -0
- package/built/lib/intent/content-type-annotate.d.ts +11 -0
- package/built/lib/intent/content-type-annotate.js +4 -0
- package/built/lib/intent/content-type-annotate.js.map +1 -1
- package/built/lib/intent/content-type-create.d.ts +10 -0
- package/built/lib/intent/content-type-delete.d.ts +13 -0
- package/built/lib/intent/content-type-update.d.ts +10 -0
- package/built/lib/intent/content-type-update.js +1 -0
- package/built/lib/intent/content-type-update.js.map +1 -1
- package/built/lib/intent/editor-layout/editor-layout-change-field-group-control.d.ts +15 -0
- package/built/lib/intent/editor-layout/editor-layout-change-field-group-id.d.ts +17 -0
- package/built/lib/intent/editor-layout/editor-layout-create-field-group.d.ts +15 -0
- package/built/lib/intent/editor-layout/editor-layout-create.d.ts +15 -0
- package/built/lib/intent/editor-layout/editor-layout-delete-field-group.d.ts +15 -0
- package/built/lib/intent/editor-layout/editor-layout-delete.d.ts +14 -0
- package/built/lib/intent/editor-layout/editor-layout-invalid-method.d.ts +12 -0
- package/built/lib/intent/editor-layout/editor-layout-move-field.d.ts +18 -0
- package/built/lib/intent/editor-layout/editor-layout-update-field-group.d.ts +15 -0
- package/built/lib/intent/editorinterface-copy.d.ts +14 -0
- package/built/lib/intent/editorinterface-reset.d.ts +14 -0
- package/built/lib/intent/editorinterface-update.d.ts +15 -0
- package/built/lib/intent/entry-derive.d.ts +14 -0
- package/built/lib/intent/entry-set-tags.d.ts +13 -0
- package/built/lib/intent/entry-transform-to-type.d.ts +15 -0
- package/built/lib/intent/entry-transform.d.ts +13 -0
- package/built/lib/intent/entryeditor-configure.d.ts +14 -0
- package/built/lib/intent/entryeditor-reset-to-default.d.ts +14 -0
- package/built/lib/intent/entryeditors-configure.d.ts +14 -0
- package/built/lib/intent/field-annotate.d.ts +10 -0
- package/built/lib/intent/field-create.d.ts +10 -0
- package/built/lib/intent/field-create.js +1 -0
- package/built/lib/intent/field-create.js.map +1 -1
- package/built/lib/intent/field-delete.d.ts +13 -0
- package/built/lib/intent/field-move.d.ts +13 -0
- package/built/lib/intent/field-move.js +1 -0
- package/built/lib/intent/field-move.js.map +1 -1
- package/built/lib/intent/field-rename.d.ts +20 -0
- package/built/lib/intent/field-update.d.ts +10 -0
- package/built/lib/intent/field-update.js +1 -0
- package/built/lib/intent/field-update.js.map +1 -1
- package/built/lib/intent/index.d.ts +38 -0
- package/built/lib/intent/sidebar-reset-to-default.d.ts +14 -0
- package/built/lib/intent/sidebarwidget-add.d.ts +15 -0
- package/built/lib/intent/sidebarwidget-remove.d.ts +15 -0
- package/built/lib/intent/sidebarwidget-update.d.ts +15 -0
- package/built/lib/intent/tag-create.d.ts +16 -0
- package/built/lib/intent/tag-delete.d.ts +15 -0
- package/built/lib/intent/tag-update.d.ts +14 -0
- package/built/lib/intent-list/index.d.ts +17 -0
- package/built/lib/intent-validator/content-transform.d.ts +17 -0
- package/built/lib/intent-validator/content-type-update.d.ts +13 -0
- package/built/lib/intent-validator/entry-derive.d.ts +20 -0
- package/built/lib/intent-validator/entry-set-tags.d.ts +15 -0
- package/built/lib/intent-validator/entry-transform-to-type.d.ts +19 -0
- package/built/lib/intent-validator/field-movement.d.ts +21 -0
- package/built/lib/intent-validator/field-update.d.ts +23 -0
- package/built/lib/intent-validator/schema-validator.d.ts +19 -0
- package/built/lib/intent-validator/tag-update.d.ts +11 -0
- package/built/lib/interfaces/annotation.d.ts +41 -0
- package/built/lib/interfaces/api-entry.d.ts +19 -0
- package/built/lib/interfaces/api-fetcher.d.ts +10 -0
- package/built/lib/interfaces/api-tag-link.d.ts +7 -0
- package/built/lib/interfaces/api-tag.d.ts +9 -0
- package/built/lib/interfaces/content-transform.d.ts +6 -0
- package/built/lib/interfaces/content-type.d.ts +95 -0
- package/built/lib/interfaces/entry-derive.d.ts +9 -0
- package/built/lib/interfaces/entry-set-tags.d.ts +6 -0
- package/built/lib/interfaces/entry-transform-to-type.d.ts +10 -0
- package/built/lib/interfaces/errors.d.ts +35 -0
- package/built/lib/interfaces/intent-validator.d.ts +6 -0
- package/built/lib/interfaces/intent.d.ts +60 -0
- package/built/lib/interfaces/plan-message.d.ts +10 -0
- package/built/lib/interfaces/raw-step.d.ts +89 -0
- package/built/lib/interfaces/request.d.ts +12 -0
- package/built/lib/migration-chunks/validation/content-type.d.ts +4 -0
- package/built/lib/migration-chunks/validation/duplicate-props.d.ts +3 -0
- package/built/lib/migration-chunks/validation/editor-layout.d.ts +5 -0
- package/built/lib/migration-chunks/validation/errors.d.ts +23 -0
- package/built/lib/migration-chunks/validation/field.d.ts +8 -0
- package/built/lib/migration-chunks/validation/index.d.ts +19 -0
- package/built/lib/migration-chunks/validation/tag.d.ts +4 -0
- package/built/lib/migration-parser.d.ts +16 -0
- package/built/lib/migration-steps/action-creators.d.ts +53 -0
- package/built/lib/migration-steps/action-creators.js +72 -72
- package/built/lib/migration-steps/action-creators.js.map +1 -1
- package/built/lib/migration-steps/dispatch-proxy.d.ts +6 -0
- package/built/lib/migration-steps/first-external-caller.d.ts +3 -0
- package/built/lib/migration-steps/index.d.ts +3 -0
- package/built/lib/offline-api/index.d.ts +80 -0
- package/built/lib/offline-api/validator/annotations.d.ts +9 -0
- package/built/lib/offline-api/validator/content-type.d.ts +13 -0
- package/built/lib/offline-api/validator/display-field.d.ts +9 -0
- package/built/lib/offline-api/validator/editor-interface.d.ts +11 -0
- package/built/lib/offline-api/validator/entry.d.ts +7 -0
- package/built/lib/offline-api/validator/errors.d.ts +48 -0
- package/built/lib/offline-api/validator/field-deletion.d.ts +7 -0
- package/built/lib/offline-api/validator/field-groups-count.d.ts +8 -0
- package/built/lib/offline-api/validator/schema/content-type-schema.d.ts +5 -0
- package/built/lib/offline-api/validator/schema/editor-layout-schema.d.ts +2 -0
- package/built/lib/offline-api/validator/schema/field-validations-schema.d.ts +3 -0
- package/built/lib/offline-api/validator/schema/fields-schema.d.ts +2 -0
- package/built/lib/offline-api/validator/schema/index.d.ts +10 -0
- package/built/lib/offline-api/validator/schema/schema-validation.d.ts +8 -0
- package/built/lib/offline-api/validator/schema/tag-schema.d.ts +4 -0
- package/built/lib/offline-api/validator/tag.d.ts +12 -0
- package/built/lib/offline-api/validator/tags-on-entry.d.ts +11 -0
- package/built/lib/offline-api/validator/type-change.d.ts +7 -0
- package/built/lib/utils/deprecated.d.ts +1 -0
- package/built/lib/utils/editor-layout.d.ts +26 -0
- package/built/lib/utils/is-defined.d.ts +1 -0
- package/built/lib/utils/should-publish-local-changes.d.ts +9 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Intent from '../base-intent';
|
|
2
|
+
import { PlanMessage } from '../../interfaces/plan-message';
|
|
3
|
+
export default class EditorLayoutInvalidMethodIntent extends Intent {
|
|
4
|
+
isEditorLayoutUpdate(): boolean;
|
|
5
|
+
isEditorLayoutInvalidMethod(): boolean;
|
|
6
|
+
groupsWith(): boolean;
|
|
7
|
+
endsGroup(): boolean;
|
|
8
|
+
shouldSave(): boolean;
|
|
9
|
+
shouldPublish(): boolean;
|
|
10
|
+
toActions(): any[];
|
|
11
|
+
toPlanMessage(): PlanMessage;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Intent from '../base-intent';
|
|
2
|
+
import { PlanMessage } from '../../interfaces/plan-message';
|
|
3
|
+
import { EditorLayoutMoveFieldGroupAction } from '../../action/editor-layout/editor-layout-move-field';
|
|
4
|
+
import { EditorLayoutFieldMovementDirection } from '../../entities/content-type';
|
|
5
|
+
export default class EditorLayoutMoveFieldIntent extends Intent {
|
|
6
|
+
isEditorInterfaceIntent(): boolean;
|
|
7
|
+
isEditorLayoutUpdate(): boolean;
|
|
8
|
+
requiresContentType(): boolean;
|
|
9
|
+
isGroupable(): boolean;
|
|
10
|
+
groupsWith(other: Intent): boolean;
|
|
11
|
+
endsGroup(): boolean;
|
|
12
|
+
shouldSave(): boolean;
|
|
13
|
+
shouldPublish(): boolean;
|
|
14
|
+
getPivotId(): string;
|
|
15
|
+
getDirection(): EditorLayoutFieldMovementDirection;
|
|
16
|
+
toActions(): EditorLayoutMoveFieldGroupAction[];
|
|
17
|
+
toPlanMessage(): PlanMessage;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Intent from '../base-intent';
|
|
2
|
+
import { PlanMessage } from '../../interfaces/plan-message';
|
|
3
|
+
import { EditorLayoutUpdateFieldGroupAction } from '../../action/editor-layout/editor-layout-update-field-group';
|
|
4
|
+
export default class EditorLayoutUpdateFieldGroupIntent extends Intent {
|
|
5
|
+
isEditorInterfaceIntent(): boolean;
|
|
6
|
+
isEditorLayoutUpdate(): boolean;
|
|
7
|
+
isFieldGroupUpdate(): boolean;
|
|
8
|
+
isGroupable(): boolean;
|
|
9
|
+
groupsWith(other: Intent): boolean;
|
|
10
|
+
endsGroup(): boolean;
|
|
11
|
+
shouldSave(): boolean;
|
|
12
|
+
shouldPublish(): boolean;
|
|
13
|
+
toActions(): EditorLayoutUpdateFieldGroupAction[];
|
|
14
|
+
toPlanMessage(): PlanMessage;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Intent from './base-intent';
|
|
2
|
+
import { PlanMessage } from '../interfaces/plan-message';
|
|
3
|
+
import { CopyEditorInterfaceAction } from '../action/editorinterface-copy';
|
|
4
|
+
import { SaveEditorInterfaceAction } from '../action/editorinterface-save';
|
|
5
|
+
export default class EditorInterfaceCopyIntent extends Intent {
|
|
6
|
+
isEditorInterfaceIntent(): boolean;
|
|
7
|
+
isGroupable(): boolean;
|
|
8
|
+
groupsWith(other: Intent): boolean;
|
|
9
|
+
endsGroup(): boolean;
|
|
10
|
+
shouldSave(): boolean;
|
|
11
|
+
shouldPublish(): boolean;
|
|
12
|
+
toActions(): (CopyEditorInterfaceAction | SaveEditorInterfaceAction)[];
|
|
13
|
+
toPlanMessage(): PlanMessage;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -14,6 +14,7 @@ class FieldCreateIntent extends base_intent_1.default {
|
|
|
14
14
|
const sameContentType = other.getContentTypeId() === this.getContentTypeId();
|
|
15
15
|
return ((other.isContentTypeUpdate() ||
|
|
16
16
|
other.isContentTypeCreate() ||
|
|
17
|
+
other.isContentTypeAnnotate() ||
|
|
17
18
|
other.isFieldCreate() ||
|
|
18
19
|
other.isFieldUpdate() ||
|
|
19
20
|
other.isFieldMove()) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-create.js","sourceRoot":"","sources":["../../../src/lib/intent/field-create.ts"],"names":[],"mappings":";;;;;AAAA,gEAAkC;AAClC,yDAA0D;AAE1D,kDAAyB;AAEzB,MAAqB,iBAAkB,SAAQ,qBAAM;IACnD,aAAa;QACX,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,KAAa;QACtB,MAAM,eAAe,GAAG,KAAK,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,gBAAgB,EAAE,CAAA;QAC5E,OAAO,CACL,CAAC,KAAK,CAAC,mBAAmB,EAAE;YAC1B,KAAK,CAAC,mBAAmB,EAAE;YAC3B,KAAK,CAAC,aAAa,EAAE;YACrB,KAAK,CAAC,aAAa,EAAE;YACrB,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,eAAe,CAChB,CAAA;IACH,CAAC;IAED,SAAS;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IAED,SAAS;QACP,OAAO,CAAC,IAAI,gCAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;IAC/E,CAAC;IAED,aAAa;QACX,OAAO;YACL,OAAO,EAAE,IAAA,eAAK,EAAA,oCAAoC,IAAI,CAAC,gBAAgB,EAAE,GAAG;YAC5E,QAAQ,EAAE;gBACR;oBACE,OAAO,EAAE,IAAA,eAAK,EAAA,wBAAwB,IAAI,CAAC,UAAU,EAAE,GAAG;oBAC1D,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,OAAO,EAAE,EAAE;SACZ,CAAA;IACH,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"field-create.js","sourceRoot":"","sources":["../../../src/lib/intent/field-create.ts"],"names":[],"mappings":";;;;;AAAA,gEAAkC;AAClC,yDAA0D;AAE1D,kDAAyB;AAEzB,MAAqB,iBAAkB,SAAQ,qBAAM;IACnD,aAAa;QACX,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,KAAa;QACtB,MAAM,eAAe,GAAG,KAAK,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,gBAAgB,EAAE,CAAA;QAC5E,OAAO,CACL,CAAC,KAAK,CAAC,mBAAmB,EAAE;YAC1B,KAAK,CAAC,mBAAmB,EAAE;YAC3B,KAAK,CAAC,qBAAqB,EAAE;YAC7B,KAAK,CAAC,aAAa,EAAE;YACrB,KAAK,CAAC,aAAa,EAAE;YACrB,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,eAAe,CAChB,CAAA;IACH,CAAC;IAED,SAAS;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IAED,SAAS;QACP,OAAO,CAAC,IAAI,gCAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;IAC/E,CAAC;IAED,aAAa;QACX,OAAO;YACL,OAAO,EAAE,IAAA,eAAK,EAAA,oCAAoC,IAAI,CAAC,gBAAgB,EAAE,GAAG;YAC5E,QAAQ,EAAE;gBACR;oBACE,OAAO,EAAE,IAAA,eAAK,EAAA,wBAAwB,IAAI,CAAC,UAAU,EAAE,GAAG;oBAC1D,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,OAAO,EAAE,EAAE;SACZ,CAAA;IACH,CAAC;CACF;AAtCD,oCAsCC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -14,6 +14,7 @@ class FieldMoveIntent extends base_intent_1.default {
|
|
|
14
14
|
const sameContentType = other.getContentTypeId() === this.getContentTypeId();
|
|
15
15
|
return ((other.isContentTypeUpdate() ||
|
|
16
16
|
other.isContentTypeCreate() ||
|
|
17
|
+
other.isContentTypeAnnotate() ||
|
|
17
18
|
other.isFieldCreate() ||
|
|
18
19
|
other.isFieldUpdate() ||
|
|
19
20
|
other.isFieldMove()) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-move.js","sourceRoot":"","sources":["../../../src/lib/intent/field-move.ts"],"names":[],"mappings":";;;;;AAAA,gEAAkC;AAClC,qDAAsD;AAEtD,kDAAyB;AAEzB,MAAqB,eAAgB,SAAQ,qBAAM;IACjD,WAAW;QACT,OAAO,IAAI,CAAA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|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -15,6 +15,7 @@ class FieldUpdateIntent extends base_intent_1.default {
|
|
|
15
15
|
const sameContentType = other.getContentTypeId() === this.getContentTypeId();
|
|
16
16
|
return ((other.isContentTypeUpdate() ||
|
|
17
17
|
other.isContentTypeCreate() ||
|
|
18
|
+
other.isContentTypeAnnotate() ||
|
|
18
19
|
other.isFieldCreate() ||
|
|
19
20
|
other.isFieldUpdate() ||
|
|
20
21
|
other.isFieldMove()) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-update.js","sourceRoot":"","sources":["../../../src/lib/intent/field-update.ts"],"names":[],"mappings":";;;;;AAAA,gEAAkC;AAClC,yDAA0D;AAE1D,kDAAyB;AACzB,mCAAgC;AAEhC,MAAqB,iBAAkB,SAAQ,qBAAM;IACnD,aAAa;QACX,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,KAAa;QACtB,MAAM,eAAe,GAAG,KAAK,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,gBAAgB,EAAE,CAAA;QAC5E,OAAO,CACL,CAAC,KAAK,CAAC,mBAAmB,EAAE;YAC1B,KAAK,CAAC,mBAAmB,EAAE;YAC3B,KAAK,CAAC,aAAa,EAAE;YACrB,KAAK,CAAC,aAAa,EAAE;YACrB,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,eAAe,CAChB,CAAA;IACH,CAAC;IAED,SAAS;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IAED,SAAS;QACP,OAAO;YACL,IAAI,gCAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;SACzF,CAAA;IACH,CAAC;IAED,aAAa;QACX,MAAM,OAAO,GAAG,IAAA,gBAAO,EAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC/D,OAAO,IAAA,eAAK,EAAA,WAAW,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAA;QACzD,CAAC,CAAC,CAAA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;YAC/D,OAAO,IAAA,eAAK,EAAA,WAAW,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAA;QACzD,CAAC,CAAC,CAAA;QAEF,OAAO;YACL,OAAO,EAAE,IAAA,eAAK,EAAA,oCAAoC,IAAI,CAAC,gBAAgB,EAAE,GAAG;YAC5E,QAAQ,EAAE;gBACR;oBACE,OAAO,EAAE,IAAA,eAAK,EAAA,wBAAwB,IAAI,CAAC,UAAU,EAAE,GAAG;oBAC1D,OAAO;iBACR;aACF;YACD,OAAO,EAAE,EAAE;SACZ,CAAA;IACH,CAAC;CACF;AA5CD,oCA4CC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|