Skip to content

Commit

Permalink
BOOL-1431
Browse files Browse the repository at this point in the history
  • Loading branch information
Mainstay-Noah-Huppert committed Jul 27, 2022
1 parent 94b2a4d commit 283399c
Show file tree
Hide file tree
Showing 208 changed files with 3,286 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dist/agenda/cancel.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Agenda } from ".";
import { Document, Filter } from "mongodb";
/**
* Cancels any jobs matching the passed MongoDB query, and removes them from the database.
* @name Agenda#cancel
* @function
* @param query MongoDB query to use when cancelling
* @caller client code, Agenda.purge(), Job.remove()
*/
export declare const cancel: (this: Agenda, query: Filter<Document>) => Promise<number | undefined>;
//# sourceMappingURL=cancel.d.ts.map
1 change: 1 addition & 0 deletions dist/agenda/cancel.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions dist/agenda/cancel.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/agenda/cancel.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions dist/agenda/close.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Agenda } from ".";
/** Close the db and it's underlying connections
* Only works if agenda was instantiated without preconfigured mongoDb instance.
* If the mongoDb instance was supplied during instantiation or via agenda.mongo, this function will do nothing and return agenda anyway.
* @name Agenda#close
* @function
* @param [option] {{ force: boolean }} Force close, emitting no events
*
*
* @caller client code
*
* @link https://mongodb.github.io/node-mongodb-native/2.0/api/Db.html#close
*/
export declare const close: (this: Agenda, option?: {
force: boolean;
} | undefined) => Promise<Agenda>;
//# sourceMappingURL=close.d.ts.map
1 change: 1 addition & 0 deletions dist/agenda/close.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions dist/agenda/close.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/agenda/close.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/agenda/create.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Job } from "../job";
import { Agenda } from ".";
/**
* Given a name and some data, create a new job
* @name Agenda#create
* @function
* @param name name of job
* @param data data to set for job
*/
export declare const create: (this: Agenda, name: string, data: any) => Job;
//# sourceMappingURL=create.d.ts.map
1 change: 1 addition & 0 deletions dist/agenda/create.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions dist/agenda/create.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/agenda/create.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions dist/agenda/database.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { AnyError, Collection, MongoClientOptions } from "mongodb";
import { Agenda } from ".";
/**
* Connect to the spec'd MongoDB server and database.
*
* NOTE:
* If `url` includes auth details then `options` must specify: { 'uri_decode_auth': true }. This does Auth on
* the specified database, not the Admin database. If you are using Auth on the Admin DB and not on the Agenda DB,
* then you need to authenticate against the Admin DB and then pass the MongoDB instance into the constructor
* or use Agenda.mongo(). If your app already has a MongoDB connection then use that. ie. specify config.mongo in
* the constructor or use Agenda.mongo().
* @name Agenda#database
* @function
* @param url MongoDB server URI
* @param [collection] name of collection to use. Defaults to `agendaJobs`
* @param [options] options for connecting
* @param [cb] callback of MongoDB connection
*/
export declare const database: (this: Agenda, url: string, collection?: string | undefined, options?: MongoClientOptions, cb?: ((error: AnyError | undefined, collection: Collection<any> | null) => void) | undefined) => Agenda | void;
//# sourceMappingURL=database.d.ts.map
1 change: 1 addition & 0 deletions dist/agenda/database.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions dist/agenda/database.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/agenda/database.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/agenda/db-init.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { AnyError, Collection } from "mongodb";
import { Agenda } from ".";
/**
* Setup and initialize the collection used to manage Jobs.
* @name Agenda#dbInit
* @function
* @param collection name or undefined for default 'agendaJobs'
* @param [cb] called when the db is initialized
*/
export declare const dbInit: (this: Agenda, collection?: string, cb?: ((error: AnyError | undefined, collection: Collection<any> | null) => void) | undefined) => void;
//# sourceMappingURL=db-init.d.ts.map
1 change: 1 addition & 0 deletions dist/agenda/db-init.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions dist/agenda/db-init.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/agenda/db-init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions dist/agenda/default-concurrency.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Agenda } from ".";
/**
* Set the default concurrency for each job
* @name Agenda#defaultConcurrency
* @function
* @param concurrency default concurrency
*/
export declare const defaultConcurrency: (this: Agenda, concurrency: number) => Agenda;
//# sourceMappingURL=default-concurrency.d.ts.map
1 change: 1 addition & 0 deletions dist/agenda/default-concurrency.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions dist/agenda/default-concurrency.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/agenda/default-concurrency.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 283399c

Please sign in to comment.