New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tager/admin-import

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tager/admin-import - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

dist/views/ImportList/components/CellHistory/CellHistory.helpers.d.ts

6

dist/typings/model.d.ts
import { FileType } from '@tager/admin-services';
interface HistoryType {
import { FieldConfigUnion, FieldShortType, OutgoingValueUnion } from '@tager/admin-dynamic-field';
export interface HistoryType {
readonly datetime: string;

@@ -17,2 +18,3 @@ readonly status: string;

readonly name: string;
readonly fields: Array<FieldConfigUnion>;
}

@@ -26,3 +28,3 @@ export interface ModuleInfoType {

file: string;
params: Array<FieldShortType<OutgoingValueUnion>>;
}
export {};
import { OptionType, SingleFileInputValueType } from '@tager/admin-ui';
import { ImportCreatePayload } from '../../typings/model';
import { FieldUnion } from '@tager/admin-dynamic-field';
import { ImportCreatePayload, StrategyType } from '../../typings/model';
export declare type FormValues = {

@@ -7,2 +8,3 @@ strategy: OptionType | null;

};
export declare function convertImportFormValuesToCreationPayload(values: FormValues): ImportCreatePayload;
export declare function convertImportFormValuesToCreationPayload(values: FormValues, templateValues: Array<FieldUnion>): ImportCreatePayload;
export declare function convertStrategiesToStrategyOptionList(strategies: Array<StrategyType>): Array<OptionType>;
import { ColumnDefinition } from '@tager/admin-ui';
import { ImportType } from '../../typings/model';
import { getImportFormUrl } from '../../utils/paths';
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
import { CellHistory } from './components/CellHistory';
declare const _default: import("vue").ComponentOptions<CellHistory, import("@vue/composition-api").ShallowUnwrapRef<{
columnDefs: ColumnDefinition<ImportType>[];

@@ -15,4 +16,2 @@ getImportFormUrl: typeof getImportFormUrl;

pageNumber: import("@vue/composition-api").Ref<number>;
t: import("i18next").TFunction;
dateTimeFormat: (value: number | string | Date) => string;
}> & {

@@ -22,3 +21,3 @@ [key: string]: unknown;

[x: string]: any;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
}> & import("vue").VueConstructor<CellHistory> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
[x: string]: any;

@@ -36,4 +35,2 @@ }, import("@vue/composition-api").ShallowUnwrapRef<{

pageNumber: import("@vue/composition-api").Ref<number>;
t: import("i18next").TFunction;
dateTimeFormat: (value: number | string | Date) => string;
}>, {

@@ -40,0 +37,0 @@ [x: string]: any;

{
"name": "@tager/admin-import",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",

@@ -28,5 +28,6 @@ "main": "dist/index.umd.js",

"@rollup/plugin-node-resolve": "^8.1.0",
"@tager/admin-layout": "^0.5.1",
"@tager/admin-services": "^0.2.23",
"@tager/admin-ui": "^0.8.58",
"@tager/admin-dynamic-field": "^0.1.18",
"@tager/admin-layout": "^0.5.3",
"@tager/admin-services": "^0.2.24",
"@tager/admin-ui": "^0.8.81",
"@types/lodash.kebabcase": "^4.1.6",

@@ -33,0 +34,0 @@ "@types/node": "12.x",

import { FileType } from '@tager/admin-services';
import {
FieldConfigUnion,
FieldShortType,
OutgoingValueUnion,
} from '@tager/admin-dynamic-field';
interface HistoryType {
export interface HistoryType {
readonly datetime: string;

@@ -20,2 +25,3 @@ readonly status: string;

readonly name: string;
readonly fields: Array<FieldConfigUnion>;
}

@@ -31,2 +37,3 @@

file: string;
params: Array<FieldShortType<OutgoingValueUnion>>;
}
import { OptionType, SingleFileInputValueType } from '@tager/admin-ui';
import { FieldUnion, universalFieldUtils } from '@tager/admin-dynamic-field';
import { ImportCreatePayload } from '../../typings/model';
import { ImportCreatePayload, StrategyType } from '../../typings/model';

@@ -11,3 +12,4 @@ export type FormValues = {

export function convertImportFormValuesToCreationPayload(
values: FormValues
values: FormValues,
templateValues: Array<FieldUnion>
): ImportCreatePayload {

@@ -17,3 +19,16 @@ return {

file: values.file?.file.id ?? '',
params: templateValues.map((field) => ({
name: field.config.name,
value: universalFieldUtils.getOutgoingValue(field),
})),
};
}
export function convertStrategiesToStrategyOptionList(
strategies: Array<StrategyType>
): Array<OptionType> {
return strategies.map((strategy) => ({
value: strategy.id,
label: strategy.name,
}));
}

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

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

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

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

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