Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smallstack/common

Package Overview
Dependencies
Maintainers
3
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smallstack/common - npm Package Compare versions

Comparing version 0.7.0 to 0.7.3

dist/bundle/dts/configuration/collections/ConfigurationCollection.d.ts

4

dist/bundle/dts/data/BaseCollection.d.ts
import { Collection, DataBridge } from "../index";
import { TokenService } from "../interfaces/TokenService";
import { APISyncOptions } from "./APISyncOptions";
import { CollectionsService } from "./CollectionsService";

@@ -7,4 +9,2 @@ import { MongoDBAllowDenyOptions, MongoDBCollection } from "./MongoDBCollection";

import { Typesystem } from "./Typesystem";
import { APISyncOptions } from "./APISyncOptions";
import { TokenService } from "../interfaces/TokenService";
export declare abstract class BaseCollection<ModelClass extends SmallstackModel> implements Collection<ModelClass> {

@@ -11,0 +11,0 @@ protected collectionsService: CollectionsService;

import { PublisherMethodParameters } from "./CollectionsService";
import { PublisherMethodResult } from "./CollectionsService";
import { TypeServiceQuery } from "./Type";
export declare class CollectionAccessService {
static instance(): CollectionAccessService;
private publisherMethods;
export declare type PublisherMethod = (parameters: PublisherMethodParameters) => Promise<PublisherMethodResult>;
export interface CollectionAccessService {
checkAccess(serviceQuery: TypeServiceQuery, context: {
userId: string;
}, parameters: any): PublisherMethodResult[];
addPublisherMethod(name: string, method: (parameters: PublisherMethodParameters) => PublisherMethodResult): void;
executePublisherMethod(publisherMethodName: string, params: PublisherMethodParameters): any;
getAccessMethod(key: string): (parameters: PublisherMethodParameters) => PublisherMethodResult;
}, parameters: any): Promise<PublisherMethodResult[]>;
addPublisherMethod(name: string, method: PublisherMethod): void;
executePublisherMethod(publisherMethodName: string, params: PublisherMethodParameters): Promise<PublisherMethodResult>;
getAccessMethod(key: string): PublisherMethod;
publisherMethodAvailable(key: string): boolean;
}

@@ -0,1 +1,2 @@

import { APISyncOptions } from "./APISyncOptions";
import { Collection } from "./Collection";

@@ -5,3 +6,2 @@ import { MongoDBCursor } from "./MongoDBCursor";

import { SmallstackModel } from "./SmallstackModel";
import { APISyncOptions } from "./APISyncOptions";
export interface QueryObject<ModelClass extends SmallstackModel> {

@@ -8,0 +8,0 @@ create(selector: any, subscriptionName: string, queryOptions: QueryOptions, parameters: any, sorting: any, collection: Collection<ModelClass>): QueryObject<ModelClass>;

@@ -0,3 +1,3 @@

import { API } from "@smallstack/api-common";
import { SmallstackModelStatic } from "./SmallstackModel";
import { API } from "@smallstack/api-common";
export interface TypeSecuredMethod {

@@ -9,2 +9,3 @@ name: string;

api?: API;
type: "http" | "ddp";
}

@@ -11,0 +12,0 @@ export interface TypeServiceQuery {

import { QueryOptions } from "./data/QueryOptions";
export interface DataBridge {
httpCall(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD", url: string, options: any): Promise<any>;
httpCall(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD", url: string, options?: any): Promise<any>;
ddpCall(methodName: string, parameters: any): Promise<any>;

@@ -12,3 +12,3 @@ ddpSubscribe(publicationName: string, parameters: any, options: QueryOptions, callbackFns: {

isServer(): boolean;
getCurrentUserId(): Promise<string>;
getCurrentUserId(): string;
logout(): Promise<void>;

@@ -15,0 +15,0 @@ getMediaUrl(mediaId: string, mediaFormatName?: string): string;

@@ -9,4 +9,3 @@ export * from "./InitLevelService";

export * from "./DataBridge";
export * from "./ConfigurationService";
export * from "./InMemoryConfigurationService";
export * from "./configuration/services/InMemoryConfigurationService";
export * from "./notifications/NotifierButton";

@@ -22,2 +21,3 @@ export * from "./notifications/Notifier";

export * from "./interfaces/WorkflowContext";
export * from "./interfaces/TokenService";
export * from "./data/MongoDBCollection";

@@ -40,5 +40,5 @@ export * from "./data/MongoDBCursor";

export * from "./data/TypesystemUtils";
export * from "./interfaces/TokenService";
export * from "./data/APISyncOptions";
export * from "./navigation/types/typesystem";
import "./init";
export * from "./data/TypesystemInitOptions";
export * from "./typesystem";
import "./initDefaults";

@@ -12,4 +12,5 @@ export declare type LoggerLevel = "info" | "debug" | "error" | "warn";

static addDebugModule(debugModuleName: string): void;
private static loggerMaxLength;
private static debugModules;
static getDebugModules(): string[];
static getLoggerMaxLength(): number;
static setLoggerMaxLength(maxLength: number): void;
}

@@ -27,3 +27,3 @@ import { DataBridge } from "../../../../index";

protected dataBridge: DataBridge;
id: string;
_id: string;
i18nKey: string;

@@ -56,4 +56,4 @@ icon: string;

};
static fromDocument<T>(doc: INavigationEntry): T;
toDocument(identifierKey?: string): INavigationEntry;
static fromDocument(doc: INavigationEntry): NavigationEntry;
toDocument(): INavigationEntry;
clone(): NavigationEntry;

@@ -60,0 +60,0 @@ saveSnapshot(): void;

@@ -14,3 +14,3 @@ import { DataBridge } from "../../../../index";

protected dataBridge: DataBridge;
id: string;
_id: string;
i18nKey: string;

@@ -24,4 +24,4 @@ identifier: string;

private _snapshot;
static fromDocument<T>(doc: INavigationTree): T;
toDocument(identifierKey?: string): INavigationTree;
static fromDocument(doc: INavigationTree): NavigationTree;
toDocument(): INavigationTree;
clone(): NavigationTree;

@@ -28,0 +28,0 @@ saveSnapshot(): void;

/**
* THIS FILE IS AUTO-GENERATED AND WILL BE REPLACED DURING CODE GENERATION
* Generated by @smallstack/typesystem-generator v0.3.7
*/
import { DataBridge } from "../../../../index";
import { DataBridge, TokenService } from "../../../../index";
import { CollectionsService, Collection, QueryOptions, QueryObject, SmallstackModel } from "../../../../index";

@@ -11,2 +11,3 @@ import { NavigationService } from "../../services/NavigationService";

protected dataBridge: DataBridge;
protected tokenService: TokenService;
getCollection(): Collection<ModelClass>;

@@ -13,0 +14,0 @@ getNavigationForType(parameters?: {

/**
* THIS FILE IS AUTO-GENERATED AND WILL BE REPLACED DURING CODE GENERATION
* Generated by @smallstack/typesystem-generator v0.3.7
*/
import { DataBridge } from "../../../../index";
import { DataBridge, TokenService } from "../../../../index";
import { CollectionsService, Collection, QueryOptions, QueryObject, SmallstackModel } from "../../../../index";

@@ -11,2 +11,3 @@ import { NavigationTreeService } from "../../services/NavigationTreeService";

protected dataBridge: DataBridge;
protected tokenService: TokenService;
getCollection(): Collection<ModelClass>;

@@ -13,0 +14,0 @@ getNavigationTree(parameters?: {

{
"name": "@smallstack/common",
"version": "0.7.0",
"version": "0.7.3",
"description": "common functionality for smallstack projects",

@@ -22,3 +22,3 @@ "main": "dist/bundle/index.umd.js",

"type": "git",
"url": "https://gitlab.com/smallstack/data"
"url": "https://gitlab.com/smallstack/products/smallstack-common"
},

@@ -47,3 +47,3 @@ "author": "smallstack GmbH",

"dependencies": {
"@smallstack/api-common": "^0.2.2",
"@smallstack/api-common": "^0.2.3",
"pluralize": "^7.0.0",

@@ -50,0 +50,0 @@ "rxjs": "^5.5.6",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc