Skip to content

Commit

Permalink
fix(api-headless-cms): rename adstractions folder to abstractions (#4050
Browse files Browse the repository at this point in the history
)
  • Loading branch information
leopuleo authored Mar 19, 2024
1 parent 9d19474 commit e690926
Show file tree
Hide file tree
Showing 55 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
IDeleteEntry,
IDeleteEntryOperation,
IGetLatestRevisionByEntryId
} from "../../adstractions";
} from "../../abstractions";
import { CmsDeleteEntryOptions, CmsEntry, CmsModel } from "~/types";
import { TransformEntryDelete } from "./TransformEntryDelete";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IDeleteEntryOperation } from "../../adstractions";
import { IDeleteEntryOperation } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsDeleteParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import WebinyError from "@webiny/error";
import { IDeleteEntryOperation } from "../../adstractions";
import { IDeleteEntryOperation } from "../../abstractions";
import { CmsEntryStorageOperationsDeleteParams, CmsModel } from "~/types";
import { DeleteEntryUseCasesTopics } from "./index";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IDeleteEntry } from "~/crud/contentEntry/adstractions";
import { IDeleteEntry } from "~/crud/contentEntry/abstractions";
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { CmsDeleteEntryOptions, CmsModel } from "~/types";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
IDeleteEntry,
IGetLatestRevisionByEntryId,
IMoveEntryToBinOperation
} from "~/crud/contentEntry/adstractions";
} from "~/crud/contentEntry/abstractions";
import { TransformEntryMoveToBin } from "./TransformEntryMoveToBin";
import { CmsModel } from "~/types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IMoveEntryToBinOperation } from "~/crud/contentEntry/adstractions";
import { IMoveEntryToBinOperation } from "~/crud/contentEntry/abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsMoveToBinParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import WebinyError from "@webiny/error";
import { IMoveEntryToBinOperation } from "../../adstractions";
import { IMoveEntryToBinOperation } from "../../abstractions";
import { CmsEntryStorageOperationsMoveToBinParams, CmsModel } from "~/types";
import { DeleteEntryUseCasesTopics } from "./index";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "~/types";
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { SecurityIdentity } from "@webiny/api-security/types";
import { IGetLatestRevisionByEntryId } from "~/crud/contentEntry/adstractions";
import { IGetLatestRevisionByEntryId } from "~/crud/contentEntry/abstractions";

export interface DeleteEntryUseCasesTopics {
onEntryBeforeDelete: Topic<OnEntryBeforeDeleteTopicParams>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetEntriesByIds } from "../../adstractions";
import { IGetEntriesByIds } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetByIdsParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetEntriesByIds } from "../../adstractions";
import { IGetEntriesByIds } from "../../abstractions";
import { CmsEntryStorageOperationsGetByIdsParams, CmsModel } from "~/types";

export class GetEntriesByIdsNotDeleted implements IGetEntriesByIds {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { filterAsync } from "~/utils/filterAsync";
import { IGetEntriesByIds } from "../../adstractions";
import { IGetEntriesByIds } from "../../abstractions";
import { CmsEntryStorageOperationsGetByIdsParams, CmsModel } from "~/types";

export class GetEntriesByIdsSecure implements IGetEntriesByIds {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetLatestEntriesByIds } from "../../adstractions";
import { IGetLatestEntriesByIds } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetLatestByIdsParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetLatestEntriesByIds } from "../../adstractions";
import { IGetLatestEntriesByIds } from "../../abstractions";
import { CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from "~/types";

export class GetLatestEntriesByIdsNotDeleted implements IGetLatestEntriesByIds {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { filterAsync } from "~/utils/filterAsync";
import { IGetLatestEntriesByIds } from "../../adstractions";
import { IGetLatestEntriesByIds } from "../../abstractions";
import { CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from "~/types";

export class GetLatestEntriesByIdsSecure implements IGetLatestEntriesByIds {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetLatestRevisionByEntryId } from "../../adstractions";
import { IGetLatestRevisionByEntryId } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetLatestRevisionParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetLatestRevisionByEntryId } from "../../adstractions";
import { IGetLatestRevisionByEntryId } from "../../abstractions";
import { CmsEntryStorageOperationsGetLatestRevisionParams, CmsModel } from "~/types";

export class GetLatestRevisionByEntryIdNotDeleted implements IGetLatestRevisionByEntryId {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetPreviousRevisionByEntryId } from "../../adstractions";
import { IGetPreviousRevisionByEntryId } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetPreviousRevisionParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetPreviousRevisionByEntryId } from "../../adstractions";
import { IGetPreviousRevisionByEntryId } from "../../abstractions";
import { CmsEntryStorageOperationsGetPreviousRevisionParams, CmsModel } from "~/types";

export class GetPreviousRevisionByEntryIdNotDeleted implements IGetPreviousRevisionByEntryId {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetPublishedEntriesByIds } from "../../adstractions";
import { IGetPublishedEntriesByIds } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetPublishedByIdsParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetPublishedEntriesByIds } from "../../adstractions";
import { IGetPublishedEntriesByIds } from "../../abstractions";
import { CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from "~/types";

export class GetPublishedEntriesByIdsNotDeleted implements IGetPublishedEntriesByIds {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { filterAsync } from "~/utils/filterAsync";
import { IGetPublishedEntriesByIds } from "../../adstractions";
import { IGetPublishedEntriesByIds } from "../../abstractions";
import { CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from "~/types";

export class GetPublishedEntriesByIdsSecure implements IGetPublishedEntriesByIds {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetPublishedRevisionByEntryId } from "../../adstractions";
import { IGetPublishedRevisionByEntryId } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetPublishedRevisionParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetPublishedRevisionByEntryId } from "../../adstractions";
import { IGetPublishedRevisionByEntryId } from "../../abstractions";
import { CmsEntryStorageOperationsGetPublishedRevisionParams, CmsModel } from "~/types";

export class GetPublishedRevisionByEntryIdNotDeleted implements IGetPublishedRevisionByEntryId {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetRevisionById } from "../../adstractions";
import { IGetRevisionById } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetRevisionParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetRevisionById } from "../../adstractions";
import { IGetRevisionById } from "../../abstractions";
import { CmsEntryStorageOperationsGetRevisionParams, CmsModel } from "~/types";

export class GetRevisionByIdNotDeleted implements IGetRevisionById {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetRevisionsByEntryId } from "../../adstractions";
import { IGetRevisionsByEntryId } from "../../abstractions";
import {
CmsEntryStorageOperations,
CmsEntryStorageOperationsGetRevisionParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetRevisionsByEntryId } from "../../adstractions";
import { IGetRevisionsByEntryId } from "../../abstractions";
import { CmsEntryStorageOperationsGetRevisionParams, CmsModel } from "~/types";

export class GetRevisionsByEntryIdNotDeleted implements IGetRevisionsByEntryId {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IGetEntry, IListEntriesOperation } from "~/crud/contentEntry/adstractions";
import { IGetEntry, IListEntriesOperation } from "~/crud/contentEntry/abstractions";
import { CmsEntryGetParams, CmsModel } from "~/types";
import { NotFoundError } from "@webiny/handler-graphql";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { IGetEntry } from "../../adstractions";
import { IGetEntry } from "../../abstractions";
import { CmsEntryGetParams, CmsModel } from "~/types";
import { SecurityIdentity } from "@webiny/api-security/types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation, IListEntries } from "~/crud/contentEntry/adstractions";
import { IListEntriesOperation, IListEntries } from "~/crud/contentEntry/abstractions";
import { CmsEntry, CmsEntryListParams, CmsEntryMeta, CmsEntryValues, CmsModel } from "~/types";
import WebinyError from "@webiny/error";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperations, CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperation implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperationDeleted implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperationLatest implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperationNotDeleted implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperationPublished implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperationsListParams, CmsModel } from "~/types";
import { ListEntriesUseCasesTopics } from "./index";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsContext, CmsEntryStorageOperationsListParams, CmsModel } from "~/types";
import { getSearchableFields } from "~/crud/contentEntry/searchableFields";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryListSort, CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperationWithSort implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import WebinyError from "@webiny/error";
import { IListEntriesOperation } from "../../adstractions";
import { IListEntriesOperation } from "../../abstractions";
import { CmsEntryStorageOperationsListParams, CmsModel } from "~/types";

export class ListEntriesOperationWithStatusCheck implements IListEntriesOperation {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccessControl } from "~/crud/AccessControl/AccessControl";
import { IListEntries } from "../../adstractions";
import { IListEntries } from "../../abstractions";
import { CmsEntry, CmsEntryListParams, CmsEntryMeta, CmsEntryValues, CmsModel } from "~/types";
import { SecurityIdentity } from "@webiny/api-security/types";

Expand Down

0 comments on commit e690926

Please sign in to comment.