diff --git a/app/lib/app.js b/app/lib/app.js deleted file mode 100644 index 481752a5..00000000 --- a/app/lib/app.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.renameCollection = exports.listCollections = exports.deleteCollection = exports.createCollection = exports.pull = exports.push = exports.multiply = exports.increment = exports.getAndUpdate = exports.getAndReplace = exports.getAndRemove = exports.findOne = exports.replace = exports.native = exports.flushCache = exports.idConverter = exports.update = exports.truncate = exports.save = exports.replaceReferences = exports.removeReference = exports.remove = exports.isReferenced = exports.insertReference = exports.insert = exports.get = exports.bulkUpdate = exports.bulkSave = exports.bulkRemove = exports.bulkInsert = exports.queryReferenced = exports.WeivDataQuery = exports.WeivDataFilter = exports.WeivDataAggregate = void 0; -var data_aggregate_1 = require("./Aggregate/data_aggregate"); -Object.defineProperty(exports, "WeivDataAggregate", { enumerable: true, get: function () { return data_aggregate_1.WeivDataAggregate; } }); -var data_filter_1 = require("./Filter/data_filter"); -Object.defineProperty(exports, "WeivDataFilter", { enumerable: true, get: function () { return data_filter_1.WeivDataFilter; } }); -var data_query_1 = require("./Query/data_query"); -Object.defineProperty(exports, "WeivDataQuery", { enumerable: true, get: function () { return data_query_1.WeivDataQuery; } }); -var queryReferenced_1 = require("./Functions/QueryReferenced/queryReferenced"); -Object.defineProperty(exports, "queryReferenced", { enumerable: true, get: function () { return queryReferenced_1.queryReferenced; } }); -var bulkInsert_1 = require("./Functions/bulkInsert"); -Object.defineProperty(exports, "bulkInsert", { enumerable: true, get: function () { return bulkInsert_1.bulkInsert; } }); -var bulkRemove_1 = require("./Functions/bulkRemove"); -Object.defineProperty(exports, "bulkRemove", { enumerable: true, get: function () { return bulkRemove_1.bulkRemove; } }); -var bulkSave_1 = require("./Functions/bulkSave"); -Object.defineProperty(exports, "bulkSave", { enumerable: true, get: function () { return bulkSave_1.bulkSave; } }); -var bulkUpdate_1 = require("./Functions/bulkUpdate"); -Object.defineProperty(exports, "bulkUpdate", { enumerable: true, get: function () { return bulkUpdate_1.bulkUpdate; } }); -var get_1 = require("./Functions/get"); -Object.defineProperty(exports, "get", { enumerable: true, get: function () { return get_1.get; } }); -var insert_1 = require("./Functions/insert"); -Object.defineProperty(exports, "insert", { enumerable: true, get: function () { return insert_1.insert; } }); -var insertReference_1 = require("./Functions/insertReference"); -Object.defineProperty(exports, "insertReference", { enumerable: true, get: function () { return insertReference_1.insertReference; } }); -var isReferenced_1 = require("./Functions/isReferenced"); -Object.defineProperty(exports, "isReferenced", { enumerable: true, get: function () { return isReferenced_1.isReferenced; } }); -var remove_1 = require("./Functions/remove"); -Object.defineProperty(exports, "remove", { enumerable: true, get: function () { return remove_1.remove; } }); -var removeReference_1 = require("./Functions/removeReference"); -Object.defineProperty(exports, "removeReference", { enumerable: true, get: function () { return removeReference_1.removeReference; } }); -var replaceReferences_1 = require("./Functions/replaceReferences"); -Object.defineProperty(exports, "replaceReferences", { enumerable: true, get: function () { return replaceReferences_1.replaceReferences; } }); -var save_1 = require("./Functions/save"); -Object.defineProperty(exports, "save", { enumerable: true, get: function () { return save_1.save; } }); -var truncate_1 = require("./Functions/truncate"); -Object.defineProperty(exports, "truncate", { enumerable: true, get: function () { return truncate_1.truncate; } }); -var update_1 = require("./Functions/update"); -Object.defineProperty(exports, "update", { enumerable: true, get: function () { return update_1.update; } }); -var idConverter_1 = require("./Functions/idConverter"); -Object.defineProperty(exports, "idConverter", { enumerable: true, get: function () { return idConverter_1.idConverter; } }); -var flushCache_1 = require("./Functions/flushCache"); -Object.defineProperty(exports, "flushCache", { enumerable: true, get: function () { return flushCache_1.flushCache; } }); -var native_1 = require("./Functions/native"); -Object.defineProperty(exports, "native", { enumerable: true, get: function () { return native_1.native; } }); -var replace_1 = require("./Functions/replace"); -Object.defineProperty(exports, "replace", { enumerable: true, get: function () { return replace_1.replace; } }); -var findOne_1 = require("./Functions/Helpers/findOne"); -Object.defineProperty(exports, "findOne", { enumerable: true, get: function () { return findOne_1.findOne; } }); -var getAndRemove_1 = require("./Functions/Helpers/getAndRemove"); -Object.defineProperty(exports, "getAndRemove", { enumerable: true, get: function () { return getAndRemove_1.getAndRemove; } }); -var getAndReplace_1 = require("./Functions/Helpers/getAndReplace"); -Object.defineProperty(exports, "getAndReplace", { enumerable: true, get: function () { return getAndReplace_1.getAndReplace; } }); -var getAndUpdate_1 = require("./Functions/Helpers/getAndUpdate"); -Object.defineProperty(exports, "getAndUpdate", { enumerable: true, get: function () { return getAndUpdate_1.getAndUpdate; } }); -var increment_1 = require("./Functions/increment"); -Object.defineProperty(exports, "increment", { enumerable: true, get: function () { return increment_1.increment; } }); -var multiply_1 = require("./Functions/multiply"); -Object.defineProperty(exports, "multiply", { enumerable: true, get: function () { return multiply_1.multiply; } }); -var push_1 = require("./Functions/push"); -Object.defineProperty(exports, "push", { enumerable: true, get: function () { return push_1.push; } }); -var pull_1 = require("./Functions/pull"); -Object.defineProperty(exports, "pull", { enumerable: true, get: function () { return pull_1.pull; } }); -var createCollection_1 = require("./Collections/createCollection"); -Object.defineProperty(exports, "createCollection", { enumerable: true, get: function () { return createCollection_1.createCollection; } }); -var deleteCollection_1 = require("./Collections/deleteCollection"); -Object.defineProperty(exports, "deleteCollection", { enumerable: true, get: function () { return deleteCollection_1.deleteCollection; } }); -var listCollections_1 = require("./Collections/listCollections"); -Object.defineProperty(exports, "listCollections", { enumerable: true, get: function () { return listCollections_1.listCollections; } }); -var renameCollection_1 = require("./Collections/renameCollection"); -Object.defineProperty(exports, "renameCollection", { enumerable: true, get: function () { return renameCollection_1.renameCollection; } }); diff --git a/app/package-lock.json b/app/package-lock.json index 19a81a0c..852c8fe6 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "@exweiv/weiv-data", - "version": "3.1.0.beta-1", + "version": "3.1.0-beta4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@exweiv/weiv-data", - "version": "3.1.0.beta-1", + "version": "3.1.0-beta4", "license": "Apache-2.0", "dependencies": { "crypto-js": "^4.2.0", diff --git a/app/package.json b/app/package.json index e58a42c2..0c356084 100644 --- a/app/package.json +++ b/app/package.json @@ -1,12 +1,13 @@ { "name": "@exweiv/weiv-data", - "version": "3.1.0.beta-1", + "version": "3.1.0-beta4", "description": "Custom API Library for Wix sites to connect MongoDB. Designed to easily switch from wix-data APIs.", "main": "./lib/index.js", "files": [ "lib", "src", - "tsconfig.json" + "tsconfig.json", + "weivdata.d.ts" ], "types": "weivdata.d.ts", "scripts": { diff --git a/app/weivdata.d.ts b/app/weivdata.d.ts index 3f7f51d3..9445bc32 100644 --- a/app/weivdata.d.ts +++ b/app/weivdata.d.ts @@ -985,7 +985,7 @@ declare module '@exweiv/weiv-data' { * @param options An object containing options to use when processing this operation. * @returns Fulfilled - Found item. Rejected - The error caused the rejection. */ - function findOne(collectionId: CollectionID, propertyName: string, value: any, options?: WeivDataOptions): Promise; + function findOne(collectionId: CollectionID, propertyName: string, value: any, options?: WeivDataOptionsCache): Promise; /** * @description @@ -1004,7 +1004,7 @@ declare module '@exweiv/weiv-data' { * @param options An object containing options to use when processing this operation. * @returns Fulfilled - The retrieved item or null if not found. Rejected - The error that caused the rejection. */ - function get(collectionId: CollectionID, itemId: ItemID, options?: WeivDataOptions): Promise; + function get(collectionId: CollectionID, itemId: ItemID, options?: WeivDataOptionsCache): Promise; /** * @description @@ -1108,7 +1108,7 @@ declare module '@exweiv/weiv-data' { propertyName: string, referringItem: ItemID | Item, referencedItem: Item | Item[] | ItemID | ItemID[], - options?: WeivDataOptions): Promise; + options?: WeivDataOptionsCache): Promise; /** * @description diff --git a/docs/functions/Hooks.afterCount.html b/docs/functions/Hooks.afterCount.html index 79203663..5a88f1a4 100644 --- a/docs/functions/Hooks.afterCount.html +++ b/docs/functions/Hooks.afterCount.html @@ -3,10 +3,10 @@
  • context: HookContext

    Contextual information about the hook.

  • Returns Promise<number> | number

    The count to return to count() instead of the original count. Returning a rejected promise will not block the operation, but will return a rejected promise to the caller as well as trigger the onFailure() hook.

    Description

    A hook that is triggered after a count() operation.

    -