diff --git a/dist/functions/index.d.ts b/dist/functions/index.d.ts index af43f90..793df08 100644 --- a/dist/functions/index.d.ts +++ b/dist/functions/index.d.ts @@ -1,9 +1,9 @@ -import CountItems from "./countItems"; -import CreateItem from "./createItem"; -import DeleteItem from "./deleteItem"; -import DeleteItems from "./deleteItems"; -import GetItem from "./getItem"; -import GetItems from "./getItems"; -import ReplaceItem from "./replaceItem"; -import UpdateItem from "./updateItem"; +import CountItems from "./CountItems"; +import CreateItem from "./CreateItem"; +import DeleteItem from "./DeleteItem"; +import DeleteItems from "./DeleteItems"; +import GetItem from "./GetItem"; +import GetItems from "./GetItems"; +import ReplaceItem from "./ReplaceItem"; +import UpdateItem from "./UpdateItem"; export { CountItems, CreateItem, GetItems, GetItem, DeleteItem, DeleteItems, ReplaceItem, UpdateItem }; diff --git a/dist/functions/updateItem/test.d.ts b/dist/functions/updateItem/test.d.ts index 097ecfb..5f97cc4 100644 --- a/dist/functions/updateItem/test.d.ts +++ b/dist/functions/updateItem/test.d.ts @@ -1,4 +1,4 @@ -import Options from "../../interfaces/options"; +import Options from "../../interfaces/Options"; import { TestItem } from "../utils/testItem"; declare const _default: ({ facade }: Options) => void; export default _default; diff --git a/dist/functions/updateItem/test.js b/dist/functions/updateItem/test.js index 665e02c..fdc078f 100644 --- a/dist/functions/updateItem/test.js +++ b/dist/functions/updateItem/test.js @@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; var _this = this; Object.defineProperty(exports, "__esModule", { value: true }); -var itemNotFoundError_1 = __importDefault(require("../../errors/itemNotFoundError")); +var ItemNotFoundError_1 = __importDefault(require("../../errors/ItemNotFoundError")); var testItem_1 = __importStar(require("../utils/testItem")); var testUsingFilter_1 = __importStar(require("../utils/testUsingFilter")); exports.default = (function (_a) { @@ -115,7 +115,7 @@ exports.default = (function (_a) { return [3 /*break*/, 3]; case 2: e_1 = _a.sent(); - expect(e_1).toBeInstanceOf(itemNotFoundError_1.default); + expect(e_1).toBeInstanceOf(ItemNotFoundError_1.default); return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } @@ -155,7 +155,7 @@ exports.default = (function (_a) { return [3 /*break*/, 4]; case 3: e_2 = _a.sent(); - expect(e_2).toBeInstanceOf(itemNotFoundError_1.default); + expect(e_2).toBeInstanceOf(ItemNotFoundError_1.default); return [3 /*break*/, 4]; case 4: return [2 /*return*/]; } @@ -180,7 +180,7 @@ exports.default = (function (_a) { return [3 /*break*/, 6]; case 5: e_3 = _a.sent(); - expect(e_3).toBeInstanceOf(itemNotFoundError_1.default); + expect(e_3).toBeInstanceOf(ItemNotFoundError_1.default); return [3 /*break*/, 6]; case 6: return [2 /*return*/]; } @@ -202,7 +202,7 @@ exports.default = (function (_a) { return [3 /*break*/, 4]; case 3: e_4 = _a.sent(); - expect(e_4).toBeInstanceOf(itemNotFoundError_1.default); + expect(e_4).toBeInstanceOf(ItemNotFoundError_1.default); return [3 /*break*/, 4]; case 4: return [2 /*return*/]; } diff --git a/dist/functions/utils/testItem.d.ts b/dist/functions/utils/testItem.d.ts index a8c9232..4eeeb13 100644 --- a/dist/functions/utils/testItem.d.ts +++ b/dist/functions/utils/testItem.d.ts @@ -1,4 +1,4 @@ -import Item from '../../interfaces/item'; +import Item from '../../interfaces/Item'; export interface TestItem extends Item { readonly booleanProperty: boolean; readonly stringProperty: string; diff --git a/dist/functions/utils/testUsingFilter.d.ts b/dist/functions/utils/testUsingFilter.d.ts index 6c1652c..8ad35cc 100644 --- a/dist/functions/utils/testUsingFilter.d.ts +++ b/dist/functions/utils/testUsingFilter.d.ts @@ -1,5 +1,5 @@ -import Facade from "../../facade"; -import Filter from "../../interfaces/filter"; +import Facade from "../../Facade"; +import Filter from "../../interfaces/Filter"; import { TestItem } from "./testItem"; declare type FilterAssertion = (filter?: Filter) => Promise; interface Options { diff --git a/dist/interfaces/cursor.js b/dist/interfaces/cursor.js index ee4868b..e35c71f 100644 --- a/dist/interfaces/cursor.js +++ b/dist/interfaces/cursor.js @@ -1,4 +1,4 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.start = undefined; -//# sourceMappingURL=cursor.js.map \ No newline at end of file +//# sourceMappingURL=Cursor.js.map \ No newline at end of file diff --git a/dist/interfaces/cursor.js.map b/dist/interfaces/cursor.js.map index 0cd0059..20d4448 100644 --- a/dist/interfaces/cursor.js.map +++ b/dist/interfaces/cursor.js.map @@ -1 +1 @@ -{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/interfaces/cursor.ts"],"names":[],"mappings":";;AAAa,QAAA,KAAK,GAAG,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"Cursor.js","sourceRoot":"","sources":["../../src/interfaces/Cursor.ts"],"names":[],"mappings":";;AAAa,QAAA,KAAK,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/interfaces/cursorResult.d.ts b/dist/interfaces/cursorResult.d.ts index 6899a76..dc56c32 100644 --- a/dist/interfaces/cursorResult.d.ts +++ b/dist/interfaces/cursorResult.d.ts @@ -1,4 +1,4 @@ -import Cursor from "./cursor"; +import Cursor from "./Cursor"; export default interface CursorResult { readonly before: Cursor; readonly after: Cursor; diff --git a/dist/interfaces/filter.d.ts b/dist/interfaces/filter.d.ts index 45aea02..051fe59 100644 --- a/dist/interfaces/filter.d.ts +++ b/dist/interfaces/filter.d.ts @@ -1,4 +1,4 @@ -import Item from './item'; +import Item from './Item'; export interface ComparisonFilter { readonly $eq?: Value; readonly $gt?: Value; diff --git a/dist/interfaces/item.js b/dist/interfaces/item.js index f64ab23..8cc99af 100644 --- a/dist/interfaces/item.js +++ b/dist/interfaces/item.js @@ -1,3 +1,3 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=item.js.map \ No newline at end of file +//# sourceMappingURL=Item.js.map \ No newline at end of file diff --git a/dist/interfaces/item.js.map b/dist/interfaces/item.js.map index 16eeca5..f893c18 100644 --- a/dist/interfaces/item.js.map +++ b/dist/interfaces/item.js.map @@ -1 +1 @@ -{"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/interfaces/item.ts"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../src/interfaces/Item.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/interfaces/options.d.ts b/dist/interfaces/options.d.ts index e3e8978..d45af6c 100644 --- a/dist/interfaces/options.d.ts +++ b/dist/interfaces/options.d.ts @@ -1,5 +1,5 @@ -import Facade from '../facade'; -import Item from './item'; +import Facade from '../Facade'; +import Item from './Item'; export default interface Options { readonly facade: Facade; } diff --git a/dist/interfaces/pagination.d.ts b/dist/interfaces/pagination.d.ts index a6dfceb..8775946 100644 --- a/dist/interfaces/pagination.d.ts +++ b/dist/interfaces/pagination.d.ts @@ -1,4 +1,4 @@ -import Cursor from "./cursor"; +import Cursor from "./Cursor"; export default interface Pagination { readonly before?: Cursor; readonly after?: Cursor; diff --git a/dist/interfaces/sort.d.ts b/dist/interfaces/sort.d.ts index 258e9d5..232f4c1 100644 --- a/dist/interfaces/sort.d.ts +++ b/dist/interfaces/sort.d.ts @@ -1,5 +1,5 @@ -import Item from './item'; -import SortOrder from './sortOrder'; +import Item from './Item'; +import SortOrder from './SortOrder'; declare type Sort = { readonly [P in keyof I]?: SortOrder; }; diff --git a/dist/interfaces/sortOrder.js b/dist/interfaces/sortOrder.js index 759c1e5..b8fbe25 100644 --- a/dist/interfaces/sortOrder.js +++ b/dist/interfaces/sortOrder.js @@ -2,4 +2,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.asc = 'asc'; exports.desc = 'desc'; -//# sourceMappingURL=sortOrder.js.map \ No newline at end of file +//# sourceMappingURL=SortOrder.js.map \ No newline at end of file diff --git a/dist/interfaces/sortOrder.js.map b/dist/interfaces/sortOrder.js.map index 4113ec4..9b12b73 100644 --- a/dist/interfaces/sortOrder.js.map +++ b/dist/interfaces/sortOrder.js.map @@ -1 +1 @@ -{"version":3,"file":"sortOrder.js","sourceRoot":"","sources":["../../src/interfaces/sortOrder.ts"],"names":[],"mappings":";;AAAa,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,IAAI,GAAG,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"SortOrder.js","sourceRoot":"","sources":["../../src/interfaces/SortOrder.ts"],"names":[],"mappings":";;AAAa,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,IAAI,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/dist/utils/createCursorFromItem/index.d.ts b/dist/utils/createCursorFromItem/index.d.ts index 2447c7d..6f01c90 100644 --- a/dist/utils/createCursorFromItem/index.d.ts +++ b/dist/utils/createCursorFromItem/index.d.ts @@ -1,4 +1,4 @@ -import Item from "../../interfaces/item"; -import Sort from "../../interfaces/sort"; +import Item from "../../interfaces/Item"; +import Sort from "../../interfaces/Sort"; declare const _default: (item: I, sort: Sort) => string | undefined; export default _default; diff --git a/dist/utils/createCursorFromItem/index.spec.js b/dist/utils/createCursorFromItem/index.spec.js index a497626..2d42b82 100644 --- a/dist/utils/createCursorFromItem/index.spec.js +++ b/dist/utils/createCursorFromItem/index.spec.js @@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); var testItem_1 = __importDefault(require("../../functions/utils/testItem")); -var sortOrder_1 = require("../../interfaces/sortOrder"); +var SortOrder_1 = require("../../interfaces/SortOrder"); var index_1 = __importDefault(require("./index")); describe("@createCursorFromEntity", function () { it("should return the correct cursor", function () { - var result = index_1.default(testItem_1.default, { id: sortOrder_1.asc }); + var result = index_1.default(testItem_1.default, { id: SortOrder_1.asc }); expect(result).toBe("eyJpZCI6IjZkYTlkY2U2LWJlNDAtNGZhYy1iZDljLTZhMmYzNDhhMWM4NyJ9"); }); }); diff --git a/src/functions/UpdateItem/test.ts b/src/functions/UpdateItem/test.ts index 434e209..20b6045 100644 --- a/src/functions/UpdateItem/test.ts +++ b/src/functions/UpdateItem/test.ts @@ -1,5 +1,5 @@ -import ItemNotFoundError from "../../errors/itemNotFoundError"; -import Options from "../../interfaces/options"; +import ItemNotFoundError from "../../errors/ItemNotFoundError"; +import Options from "../../interfaces/Options"; import testItem, { testId, TestItem } from "../utils/testItem"; import testUsingFilter, { firstItem, diff --git a/src/utils/createCursorFromItem/index.spec.ts b/src/utils/createCursorFromItem/index.spec.ts index 9ba01ae..f4bf3c5 100644 --- a/src/utils/createCursorFromItem/index.spec.ts +++ b/src/utils/createCursorFromItem/index.spec.ts @@ -1,5 +1,5 @@ import testItem, { TestItem } from "../../functions/utils/testItem"; -import { asc } from "../../interfaces/sortOrder"; +import { asc } from "../../interfaces/SortOrder"; import createCursorFromEntity from "./index"; describe("@createCursorFromEntity", () => { diff --git a/src/utils/createCursorFromItem/index.ts b/src/utils/createCursorFromItem/index.ts index 4ffa850..811e108 100644 --- a/src/utils/createCursorFromItem/index.ts +++ b/src/utils/createCursorFromItem/index.ts @@ -1,7 +1,7 @@ import btoa from "btoa"; -import Cursor from "../../interfaces/cursor"; -import Item from "../../interfaces/item"; -import Sort from "../../interfaces/sort"; +import Cursor from "../../interfaces/Cursor"; +import Item from "../../interfaces/Item"; +import Sort from "../../interfaces/Sort"; export default (item: I, sort: Sort): Cursor => { const sortKeys = Object.keys(sort);