@ironforge/sdk
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -7,2 +7,3 @@ import { AccountsAggregateConfig } from './aggregate'; | ||
import { AccountsMemcmpConfig } from './memcmp'; | ||
import { MongoDbSDK } from './mongodb'; | ||
export { AccountsAggregateConfig } from './aggregate'; | ||
@@ -14,2 +15,3 @@ export { AccountsFilterByTypeConfig } from './filter-by-type'; | ||
export { AccountsMemcmpConfig } from './memcmp'; | ||
export * from './mongodb'; | ||
/** | ||
@@ -32,2 +34,6 @@ * The Accounts SDK provides a set of functions for querying the Ironforge | ||
/** | ||
* Provides access to the MongoDB SDK methods. | ||
*/ | ||
get mongodb(): MongoDbSDK; | ||
/** | ||
* Applies an aggregate function to the accounts of a program. | ||
@@ -34,0 +40,0 @@ * |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -10,2 +24,4 @@ exports.AccountsSdk = void 0; | ||
const memcmp_1 = require("./memcmp"); | ||
const mongodb_1 = require("./mongodb"); | ||
__exportStar(require("./mongodb"), exports); | ||
/** | ||
@@ -31,2 +47,8 @@ * The Accounts SDK provides a set of functions for querying the Ironforge | ||
/** | ||
* Provides access to the MongoDB SDK methods. | ||
*/ | ||
get mongodb() { | ||
return new mongodb_1.MongoDbSDK(this.apiKey, this.host); | ||
} | ||
/** | ||
* Applies an aggregate function to the accounts of a program. | ||
@@ -33,0 +55,0 @@ * |
@@ -66,1 +66,13 @@ /** | ||
}; | ||
export type MongoDbFindBody = { | ||
query?: object; | ||
projection?: object; | ||
options?: { | ||
limit?: number; | ||
skip?: number; | ||
sort?: Sort; | ||
}; | ||
}; | ||
export type MongoDbAggregateBody = { | ||
pipeline: Record<string, any>[]; | ||
}; |
{ | ||
"name": "@ironforge/sdk", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "IronForge SDK.", | ||
@@ -5,0 +5,0 @@ "main": "dist/sdk.js", |
Sorry, the diff of this file is not supported yet
42428
44
839
8