Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@odda-studio/cms-models

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odda-studio/cms-models - npm Package Compare versions

Comparing version
1.0.45
to
1.0.46
+8
-1
model.d.ts
import { ColumnType } from './column-type';
import { FormKind, FormMethod, IApplication } from './models';
import { FormKind, FormMethod, IApplication, ICondition, IDefaultConfiguration, SortingType } from "./models";
export interface EntitySchemaCheckOptions {

@@ -372,2 +372,8 @@ /**

filterable?: boolean;
filter?: string;
firstSorting?: SortingType;
filterCondition?: ICondition & {
value?: any;
};
filterOptions?: ICondition[];
filteringKeys?: string[];

@@ -590,2 +596,3 @@ path?: string;

export interface EntitiesConfiguration {
defaults?: IDefaultConfiguration;
meta: any;

@@ -592,0 +599,0 @@ application: IApplication;

import { RelationType } from './model';
import { ColumnType } from './meta';
export declare class Actions {

@@ -90,2 +91,19 @@ delete: boolean;

}
export declare enum Comparator {
equal = 0,
notEqual = 1,
contains = 2,
notContains = 3,
greaterThan = 4,
lessThan = 5
}
export interface ICondition {
label: string;
icon: string;
comparator: Comparator;
}
export declare enum SortingType {
asc = 0,
desc = 1
}
export interface ITableField {

@@ -98,2 +116,3 @@ label18n?: string;

filteringKeys?: string[];
filter?: string;
relation?: IEntity;

@@ -107,2 +126,7 @@ relationType?: RelationType;

freeze?: boolean;
firstSorting?: SortingType;
filterCondition?: ICondition & {
value?: any;
};
filterOptions?: ICondition[];
}

@@ -115,1 +139,11 @@ export interface IFieldsGroupEntity {

}
type IDefaultItem = string | {
meta: any;
name: string;
};
export interface IDefaultConfiguration {
columns?: Record<keyof ColumnType, IDefaultItem>;
filters?: Record<keyof ColumnType, IDefaultItem>;
inputs?: Record<keyof ColumnType, IDefaultItem>;
}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormKind = exports.FormMethod = exports.Actions = void 0;
exports.SortingType = exports.Comparator = exports.FormKind = exports.FormMethod = exports.Actions = void 0;
class Actions {

@@ -21,1 +21,15 @@ }

})(FormKind = exports.FormKind || (exports.FormKind = {}));
var Comparator;
(function (Comparator) {
Comparator[Comparator["equal"] = 0] = "equal";
Comparator[Comparator["notEqual"] = 1] = "notEqual";
Comparator[Comparator["contains"] = 2] = "contains";
Comparator[Comparator["notContains"] = 3] = "notContains";
Comparator[Comparator["greaterThan"] = 4] = "greaterThan";
Comparator[Comparator["lessThan"] = 5] = "lessThan";
})(Comparator = exports.Comparator || (exports.Comparator = {}));
var SortingType;
(function (SortingType) {
SortingType[SortingType["asc"] = 0] = "asc";
SortingType[SortingType["desc"] = 1] = "desc";
})(SortingType = exports.SortingType || (exports.SortingType = {}));
+1
-1
{
"name": "@odda-studio/cms-models",
"version": "1.0.45",
"version": "1.0.46",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,4 +0,5 @@

import { IApplication } from './models';
import { IApplication, IDefaultConfiguration } from './models';
import { EntitySchemaColumnOptions, EntitySchemaConfiguration } from './model';
export interface EntitiesConfiguration {
defaults?: IDefaultConfiguration;
application?: IApplication;

@@ -5,0 +6,0 @@ defaultColumns?: {