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,11 @@
|
|
|
1
|
+
import { ApiHook } from '..';
|
|
2
|
+
import { EditorInterfaces } from '../../entities/content-type';
|
|
3
|
+
import { PayloadValidationError, InvalidActionError } from '../../interfaces/errors';
|
|
4
|
+
export interface EditorInterfacePayloadValidator {
|
|
5
|
+
hooks: ApiHook[];
|
|
6
|
+
validate(editorInterface: EditorInterfaces): (InvalidActionError | PayloadValidationError)[];
|
|
7
|
+
}
|
|
8
|
+
export declare class EditorInterfaceSchemaValidator implements EditorInterfacePayloadValidator {
|
|
9
|
+
hooks: ApiHook[];
|
|
10
|
+
validate(editorInterface: EditorInterfaces): PayloadValidationError[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiHook } from '../';
|
|
2
|
+
import { Entry } from '../../entities/entry';
|
|
3
|
+
import { PayloadValidationError, InvalidActionError } from '../../interfaces/errors';
|
|
4
|
+
export interface EntryValidator {
|
|
5
|
+
hooks: ApiHook[];
|
|
6
|
+
validate(entry: Entry): (InvalidActionError | PayloadValidationError)[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const errors: {
|
|
2
|
+
contentType: {
|
|
3
|
+
REQUIRED_PROPERTY: (path: any) => string;
|
|
4
|
+
TOO_MANY_FIELDS: (id: any, maxFields: any) => string;
|
|
5
|
+
NON_EXISTENT_DISPLAY_FIELD: (displayField: any, ctId: any) => string;
|
|
6
|
+
DELETE_DISPLAY_FIELD: (displayField: any, ctId: any) => string;
|
|
7
|
+
};
|
|
8
|
+
field: {
|
|
9
|
+
REQUIRED_DEPENDENT_PROPERTY: (prop: any, id: any, dependentProp: any, dependentValue: any) => string;
|
|
10
|
+
REQUIRED_PROPERTY: (prop: any, id: any) => string;
|
|
11
|
+
FORBIDDEN_DEPENDENT_PROPERTY: (prop: any, id: any, dependentProp: any, dependentValue: any) => string;
|
|
12
|
+
FORBIDDEN_PROPERTY: (prop: any, id: any) => string;
|
|
13
|
+
PROPERTY_MUST_BE_ONE_OF: (prop: any, id: any, validOptions: any) => string;
|
|
14
|
+
NO_DELETE_WITHOUT_OMIT: (fieldId: any, ctId: any) => string;
|
|
15
|
+
NO_TYPE_CHANGE: (fieldId: any, ctId: any, parentFieldType: any, fieldType: any) => string;
|
|
16
|
+
ID_MUST_MATCH_SCHEMA: (fieldId: any, newId: any) => string;
|
|
17
|
+
ID_MUST_BE_DIFFERENT: (fieldId: any) => string;
|
|
18
|
+
validations: {
|
|
19
|
+
DUPLICATED_VALIDATION: (duplicatedValue: any) => string;
|
|
20
|
+
INVALID_VALIDATION_PROPERTY: (propName: any) => string;
|
|
21
|
+
INVALID_VALIDATION_PROPERTY_COMBINATION: (keys: any) => string;
|
|
22
|
+
INVALID_VALIDATION_PARAMETER: (propName: any, expectedType: any, actualType: any) => string;
|
|
23
|
+
};
|
|
24
|
+
defaultValue: {
|
|
25
|
+
TYPE_MISMATCH: (fieldId: any, valueType: any, locale: any, fieldType: any) => string;
|
|
26
|
+
DATE_TYPE_MISMATCH: (fieldId: any, valueType: any, value: any, locale: any, fieldType: any) => string;
|
|
27
|
+
INVALID_LOCALE: (fieldId: any, locale: any) => string;
|
|
28
|
+
UNSUPPORTED_FIELD_TYPE: (fieldId: any, key: any, fieldType: any) => string;
|
|
29
|
+
UNSUPPORTED_ARRAY_ITEMS_TYPE: (fieldId: any, key: any, itemsType: any) => string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
editorLayout: {
|
|
33
|
+
TOO_MANY_TABS: () => string;
|
|
34
|
+
TAB_CONTROL_INVALID: (groupId: any) => string;
|
|
35
|
+
FIELD_SET_CONTROL_INVALID: (groupId: any) => string;
|
|
36
|
+
FIELD_GROUP_LEVEL_TOO_DEEP: () => string;
|
|
37
|
+
TOO_FEW_FIELD_GROUPS: () => string;
|
|
38
|
+
TOO_MANY_FIELD_SETS: () => string;
|
|
39
|
+
};
|
|
40
|
+
entry: {
|
|
41
|
+
REQUIRED_PROPERTY: (path: any) => string;
|
|
42
|
+
TAGS_DO_NOT_EXIST: (entryId: any) => string;
|
|
43
|
+
};
|
|
44
|
+
tag: {
|
|
45
|
+
REQUIRED_PROPERTY: (path: any) => string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default errors;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiHook } from '../';
|
|
2
|
+
import { ContentTypePayloadValidator, ContentTypePayloadValidatorOptions } from './content-type';
|
|
3
|
+
import { PayloadValidationError, InvalidActionError } from '../../interfaces/errors';
|
|
4
|
+
export default class FieldDeletionValidator implements ContentTypePayloadValidator {
|
|
5
|
+
hooks: ApiHook[];
|
|
6
|
+
validate({ contentType, publishedContentType }: ContentTypePayloadValidatorOptions): (PayloadValidationError | InvalidActionError)[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiHook } from '..';
|
|
2
|
+
import { EditorInterfacePayloadValidator } from './editor-interface';
|
|
3
|
+
import { EditorInterfaces } from '../../entities/content-type';
|
|
4
|
+
import { PayloadValidationError } from '../../interfaces/errors';
|
|
5
|
+
export default class FieldGroupsCountValidator implements EditorInterfacePayloadValidator {
|
|
6
|
+
hooks: ApiHook[];
|
|
7
|
+
validate(editorInterface: EditorInterfaces): PayloadValidationError[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiHook } from '../../index';
|
|
2
|
+
import { ContentTypePayloadValidator } from '../content-type';
|
|
3
|
+
import { PayloadValidationError } from '../../../interfaces/errors';
|
|
4
|
+
export default class SchemaValidator implements ContentTypePayloadValidator {
|
|
5
|
+
hooks: ApiHook[];
|
|
6
|
+
validate({ contentType, locales }: {
|
|
7
|
+
contentType: any;
|
|
8
|
+
locales: any;
|
|
9
|
+
}): PayloadValidationError[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PayloadValidationError } from '../../../interfaces/errors';
|
|
2
|
+
import { ContentType, EditorInterfaces } from '../../../entities/content-type';
|
|
3
|
+
import { Tag } from '../../../entities/tag';
|
|
4
|
+
declare const validateContentType: (contentType: ContentType) => PayloadValidationError[];
|
|
5
|
+
declare const validateEditorInterface: (editorInterface: EditorInterfaces) => PayloadValidationError[];
|
|
6
|
+
declare const validateTag: (tag: Tag) => PayloadValidationError[];
|
|
7
|
+
declare const validateFields: (contentType: ContentType, locales: string[]) => PayloadValidationError[];
|
|
8
|
+
export { validateContentType, validateEditorInterface, validateFields, validateTag };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiHook } from '../';
|
|
2
|
+
import { Tag } from '../../entities/tag';
|
|
3
|
+
import { PayloadValidationError, InvalidActionError } from '../../interfaces/errors';
|
|
4
|
+
interface TagPayloadValidator {
|
|
5
|
+
hooks: ApiHook[];
|
|
6
|
+
validate(tag: Tag, savedTag?: Tag): (InvalidActionError | PayloadValidationError)[];
|
|
7
|
+
}
|
|
8
|
+
export declare class TagSchemaValidator implements TagPayloadValidator {
|
|
9
|
+
hooks: ApiHook[];
|
|
10
|
+
validate(tag: Tag): PayloadValidationError[];
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiHook } from '../';
|
|
2
|
+
import { EntryValidator } from './entry';
|
|
3
|
+
import { InvalidActionError, PayloadValidationError } from '../../interfaces/errors';
|
|
4
|
+
import { Entry } from '../../entities/entry';
|
|
5
|
+
import { Tag } from '../../entities/tag';
|
|
6
|
+
export default class TagsOnEntryValidator implements EntryValidator {
|
|
7
|
+
hooks: ApiHook[];
|
|
8
|
+
private tags;
|
|
9
|
+
constructor(tags: Map<String, Tag>);
|
|
10
|
+
validate(entry: Entry): PayloadValidationError[] | InvalidActionError[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiHook } from '../';
|
|
2
|
+
import { ContentTypePayloadValidator, ContentTypePayloadValidatorOptions } from './content-type';
|
|
3
|
+
import { InvalidActionError } from '../../interfaces/errors';
|
|
4
|
+
export default class TypeChangeValidator implements ContentTypePayloadValidator {
|
|
5
|
+
hooks: ApiHook[];
|
|
6
|
+
validate({ contentType, publishedContentType }: ContentTypePayloadValidatorOptions): InvalidActionError[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deprecatedMethod(method: any, alternative: any): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const MIN_GROUPS = 2;
|
|
2
|
+
export declare const MAX_TABS = 5;
|
|
3
|
+
export declare const MAX_FIELD_SETS = 15;
|
|
4
|
+
export interface FieldGroupItem {
|
|
5
|
+
groupId: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
items: EditorLayoutItem[];
|
|
8
|
+
}
|
|
9
|
+
export interface FieldItem {
|
|
10
|
+
fieldId: string;
|
|
11
|
+
}
|
|
12
|
+
declare type EditorLayoutItem = FieldItem | FieldGroupItem;
|
|
13
|
+
export declare type EditorLayout = EditorLayoutItem[];
|
|
14
|
+
declare type Path = (string | number)[];
|
|
15
|
+
export declare function isFieldGroupItem(item: EditorLayoutItem): item is FieldGroupItem;
|
|
16
|
+
export declare function isFieldItem(item: EditorLayoutItem): item is FieldItem;
|
|
17
|
+
export declare const findFieldGroup: (editorLayout: FieldGroupItem[], groupId: string) => {
|
|
18
|
+
item: FieldGroupItem;
|
|
19
|
+
path: Path;
|
|
20
|
+
};
|
|
21
|
+
export declare const collectFieldGroupIds: (editorLayout: FieldGroupItem[]) => string[];
|
|
22
|
+
export declare function find<ItemType = EditorLayoutItem>(editorLayout: FieldGroupItem[], predicate: (item: EditorLayoutItem) => boolean): {
|
|
23
|
+
item: ItemType;
|
|
24
|
+
path: Path;
|
|
25
|
+
} | undefined;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isDefined<T>(value: T | undefined | null): value is T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Entry from '../entities/entry';
|
|
2
|
+
/**
|
|
3
|
+
* Calculate if an entry should be published.
|
|
4
|
+
* @constructor
|
|
5
|
+
* @param {boolean | 'preserve'} shouldPublish - expected result.
|
|
6
|
+
* @param {Entry} entry - entry to be published.
|
|
7
|
+
* @description we expect a diff of > 2 between version and publishedVersion because version has been already bumped in this specific use case.
|
|
8
|
+
*/
|
|
9
|
+
export default function shouldPublishLocalChanges(shouldPublish: boolean | 'preserve', entry: Entry): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-migration",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.5",
|
|
4
4
|
"description": "Migration tooling for contentful",
|
|
5
5
|
"author": "Contentful GmbH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"docs"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@hapi/hoek": "^
|
|
53
|
+
"@hapi/hoek": "^10.0.1",
|
|
54
54
|
"axios": "^0.21.0",
|
|
55
55
|
"bluebird": "^3.7.2",
|
|
56
56
|
"callsites": "^3.1.0",
|