@8base/utils
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -21,5 +21,5 @@ import { ParametricSelector } from 'reselect'; | ||
export declare const getFieldTypeById: ParametricSelector<TableSchema, string, any>; | ||
export declare const getTableApplication: import("reselect").OutputSelector<TableSchema, import("../types").Application, (res: TableSchema) => import("../types").Application>; | ||
export declare const getTableAppName: import("reselect").OutputSelector<TableSchema, unknown, (res: import("../types").Application) => unknown>; | ||
export declare const getTableAppDisplayName: import("reselect").OutputSelector<TableSchema, unknown, (res: import("../types").Application) => unknown>; | ||
export declare const getTableApplication: import("reselect").OutputSelector<TableSchema, unknown, (res: TableSchema) => unknown>; | ||
export declare const getTableAppName: import("reselect").OutputSelector<TableSchema, unknown, (res: unknown) => unknown>; | ||
export declare const getTableAppDisplayName: import("reselect").OutputSelector<TableSchema, unknown, (res: unknown) => unknown>; | ||
export declare const isSystemTable: import("reselect").OutputSelector<TableSchema, boolean, (res: TableSchema) => boolean>; | ||
@@ -85,4 +85,4 @@ export declare const isIntegrationTable: import("reselect").OutputSelector<TableSchema, boolean, (res: TableSchema) => boolean>; | ||
}>; | ||
export declare const isUserTable: import("reselect").OutputSelector<TableSchema, false, (res1: boolean, res2: import("../types").Application, res3: "LOCAL" | "VIEW" | "REMOTE") => false>; | ||
export declare const isUserTable: import("reselect").OutputSelector<TableSchema, boolean, (res1: boolean, res2: unknown, res3: "LOCAL" | "VIEW" | "REMOTE") => boolean>; | ||
export declare const isViewTable: import("reselect").OutputSelector<TableSchema, boolean, (res: "LOCAL" | "VIEW" | "REMOTE") => boolean>; | ||
//# sourceMappingURL=tableSelectors.d.ts.map |
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.getFieldTypeById = reselect_1.createSelector(getFieldByIdOrEmpty, R.propOr('', 'fieldType')); | ||
exports.getTableApplication = reselect_1.createSelector(exports.getTable, R.prop('application')); | ||
exports.getTableApplication = reselect_1.createSelector(exports.getTable, R.propOr(null, 'application')); | ||
exports.getTableAppName = reselect_1.createSelector(exports.getTableApplication, R.propOr(null, 'name')); | ||
@@ -26,0 +26,0 @@ exports.getTableAppDisplayName = reselect_1.createSelector(exports.getTableApplication, R.propOr(null, 'displayName')); |
@@ -6,3 +6,3 @@ import { ParametricSelector } from 'reselect'; | ||
export declare const getTableByName: (schema: TableSchema[], tableName: string, appName?: string | null) => TableSchema; | ||
export declare const getTableApplication: ParametricSelector<TableSchema[], string, Application | void>; | ||
export declare const getTableApplication: ParametricSelector<TableSchema[], string, Application | void | null>; | ||
export declare const getTableFields: ParametricSelector<TableSchema[], string, FieldSchema[]>; | ||
@@ -9,0 +9,0 @@ export declare const getTableApplicationName: ParametricSelector<TableSchema[], string, string>; |
@@ -63,3 +63,3 @@ import { FIELD_TYPE, SWITCH_FORMATS, TEXT_FORMATS, NUMBER_FORMATS, FILE_FORMATS, DATE_FORMATS, MUTATION_TYPE, SMART_FORMATS, APP_STATUS, FIELD_KINDS, TABLE_ORIGIN_TYPES } from './constants'; | ||
name: string; | ||
application: Application; | ||
application?: Application | null; | ||
displayName: string; | ||
@@ -66,0 +66,0 @@ isSystem?: boolean; |
{ | ||
"name": "@8base/utils", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"repository": "https://github.com/8base/sdk", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/8base/sdk/tree/master/packages/utils#readme", |
@@ -62,3 +62,3 @@ import * as R from 'ramda'; | ||
getTable, | ||
R.prop('application'), | ||
R.propOr(null, 'application'), | ||
); | ||
@@ -65,0 +65,0 @@ |
@@ -32,3 +32,3 @@ import * as R from 'ramda'; | ||
export const getTableApplication: ParametricSelector<TableSchema[], string, Application | void> = createSelector( | ||
export const getTableApplication: ParametricSelector<TableSchema[], string, Application | void | null> = createSelector( | ||
getTableById, | ||
@@ -35,0 +35,0 @@ table => table && table.application, |
@@ -87,3 +87,3 @@ import { | ||
name: string; | ||
application: Application; | ||
application?: Application | null; | ||
displayName: string; | ||
@@ -90,0 +90,0 @@ isSystem?: boolean; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
279458