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

idea-toolbox

Package Overview
Dependencies
Maintainers
2
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-toolbox - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

.eslintrc.js

2

dist/address.model.d.ts

@@ -45,3 +45,3 @@ import { Resource } from './resource.model';

load(x: any): void;
validate(): Array<string>;
validate(): string[];
getFullAddress(): string;

@@ -48,0 +48,0 @@ }

@@ -72,3 +72,3 @@ import { Resource } from './resource.model';

*/
linkedTo?: Array<AppointmentLinkedObject>;
linkedTo?: AppointmentLinkedObject[];
/**

@@ -78,3 +78,3 @@ * The attendees supposed to partecipate to the event.

*/
attendees: Array<AppointmentAttendee>;
attendees: AppointmentAttendee[];
/**

@@ -88,3 +88,3 @@ * The appointment notifications and the specs for their execution.

*/
notifications: Array<AppointmentNotification>;
notifications: AppointmentNotification[];
/**

@@ -122,3 +122,3 @@ * Date and hour in which the reminder is slotted (`YYYYMMDDHH`). Avoid timezones: UTC!!

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
/**

@@ -168,3 +168,3 @@ * Helper to remove duplicates notifications for the same appointment.

load(x: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -184,3 +184,3 @@ /**

load(x: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -187,0 +187,0 @@ /**

@@ -20,3 +20,3 @@ import { Resource } from './resource.model';

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -17,3 +17,3 @@ import { Cacheable } from './cacheable.model';

tick(): void;
validate(options?: any): Array<string>;
validate(options?: any): string[];
}

@@ -52,3 +52,3 @@ import { Resource } from './resource.model';

*/
usersCanManageAppointments?: Array<string>;
usersCanManageAppointments?: string[];
/**

@@ -60,3 +60,3 @@ * In case of shared calendar, the id of the user who created it.

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
/**

@@ -63,0 +63,0 @@ * Check whether the chosen user can edit the appointments of this calendar.

@@ -42,3 +42,3 @@ import { Resource } from './resource.model';

load(x: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -16,3 +16,3 @@ import { Resource } from './resource.model';

load(x: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -9,3 +9,3 @@ import { Resource } from './resource.model';

*/
sectionsLegend: Array<string>;
sectionsLegend: string[];
/**

@@ -21,3 +21,3 @@ * Object containg attributes of type CustomSectionMeta; e.g.

load(x: any, languages: Languages): void;
validate(languages: Languages): Array<string>;
validate(languages: Languages): string[];
/**

@@ -36,3 +36,3 @@ * Set the default values of the specified sections.

*/
validateSections(sections: any): Array<string>;
validateSections(sections: any): string[];
}

@@ -39,0 +39,0 @@ /**

@@ -33,3 +33,3 @@ import { Resource } from './resource.model';

*/
enum?: Array<string>;
enum?: string[];
/**

@@ -64,3 +64,3 @@ * The translations of the enum keys; available only with type ENUM.

safeLoad(newData: any, safeData: any, languages?: Languages): void;
validate(languages?: Languages): Array<string>;
validate(languages?: Languages): string[];
/**

@@ -90,3 +90,3 @@ * Set a default value for the field, based on its type.

*/
getEnumAsSuggestion(language?: string, languages?: Languages): Array<Suggestion>;
getEnumAsSuggestion(language?: string, languages?: Languages): Suggestion[];
}

@@ -21,3 +21,3 @@ import { Resource } from './resource.model';

*/
fieldsLegend: Array<string>;
fieldsLegend: string[];
/**

@@ -47,5 +47,5 @@ * Object containg attributes of type CustomFieldMeta; e.g.

*/
displayTemplate?: Array<Array<string>>;
displayTemplate?: string[][];
load(x: any, languages: Languages): void;
validate(languages: Languages): Array<string>;
validate(languages: Languages): string[];
/**

@@ -64,3 +64,3 @@ * Set the default values of the specified fields.

*/
validateFields(fields: any): Array<string>;
validateFields(fields: any): string[];
}

@@ -67,0 +67,0 @@ /**

@@ -51,3 +51,3 @@ import { Resource } from './resource.model';

*/
resources: Array<DeltaResources | string>;
resources: (DeltaResources | string)[];
/**

@@ -57,3 +57,3 @@ * The list of delta records for each resource.

records: {
[resource: string]: Array<DeltaRecord>;
[resource: string]: DeltaRecord[];
};

@@ -64,3 +64,3 @@ load(x: any): void;

*/
setRecordsOfResource(records: Array<DeltaRecord>, resource: DeltaResources | string): void;
setRecordsOfResource(records: DeltaRecord[], resource: DeltaResources | string): void;
}

@@ -74,3 +74,3 @@ /**

*/
resources: Array<DeltaResources | string>;
resources: (DeltaResources | string)[];
/**

@@ -116,3 +116,3 @@ * The lastEvaluatedKeys for getting the next page of the pagination, for each resources.

*/
resources: Array<DeltaResources | string>;
resources: (DeltaResources | string)[];
/**

@@ -119,0 +119,0 @@ * The count of elements for each resource.

@@ -14,12 +14,12 @@ import { Resource } from './resource.model';

*/
to: Array<string>;
to: string[];
/**
* Default addresses to who to send the email in CC.
*/
cc: Array<string>;
cc: string[];
/**
* Default addresses to who to send the email in BCC.
*/
bcc: Array<string>;
bcc: string[];
load(x: any): void;
}

@@ -18,3 +18,3 @@ import { Languages } from './languages.model';

load(x?: any, languages?: Languages): void;
validate(languages: Languages): Array<string>;
validate(languages: Languages): string[];
/**

@@ -21,0 +21,0 @@ * Translate the label in the desired language; in case there's no translation, get the default one.

@@ -13,3 +13,3 @@ import { Resource } from './resource.model';

*/
available: Array<ServiceLanguages | string>;
available: (ServiceLanguages | string)[];
load(x: any): void;

@@ -16,0 +16,0 @@ validate(languagesOfSpecificService: any): string[];

@@ -36,3 +36,3 @@ import { Resource } from './resource.model';

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -57,3 +57,3 @@ /**

load(x: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -42,3 +42,3 @@ import { Label } from './label.model';

*/
columns?: Array<PDFTemplateSimpleField | PDFTemplateComplexField | string>;
columns?: (PDFTemplateSimpleField | PDFTemplateComplexField | string)[];
/**

@@ -57,9 +57,9 @@ * The title of a HEADER section or INNER_SECTION (or REPATED_INNER_SECTION).

*/
innerTemplate?: Array<PDFTemplateSection>;
innerTemplate?: PDFTemplateSection[];
load(x: any, languages?: Languages): void;
validate(languages: Languages, variables?: Array<LabelVariable | StringVariable>): Array<string>;
validate(languages: Languages, variables?: (LabelVariable | StringVariable)[]): string[];
/**
* Check whether the section is among one of the types selected.
*/
isEither(...types: Array<PDFTemplateSectionTypes>): boolean;
isEither(...types: PDFTemplateSectionTypes[]): boolean;
/**

@@ -139,7 +139,7 @@ * Whether the column identified by the index is empty or not.

*/
variables: Array<LabelVariable>;
variables: LabelVariable[];
/**
* The blueprints of inner sections.
*/
innerBlueprints?: Array<PDFTemplateSectionBlueprint>;
innerBlueprints?: PDFTemplateSectionBlueprint[];
}

@@ -146,0 +146,0 @@ /**

@@ -69,3 +69,3 @@ import { Resource } from './resource.model';

*/
platforms: Array<ProjectPlatforms>;
platforms: ProjectPlatforms[];
/**

@@ -93,3 +93,3 @@ * The title of the plan, in various languages.

safeLoad(newData: any, safeData: any, languages?: Languages): void;
validate(languages?: Languages): Array<string>;
validate(languages?: Languages): string[];
}

@@ -20,3 +20,3 @@ import { Resource } from './resource.model';

load(x: any): void;
validate(complete?: boolean): Array<string>;
validate(complete?: boolean): string[];
}

@@ -33,3 +33,3 @@ import { Resource } from './resource.model';

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -16,3 +16,3 @@ import { Resource } from './resource.model';

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -44,3 +44,3 @@ import { Resource } from './resource.model';

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -55,3 +55,3 @@ import { Resource } from './resource.model';

safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
}

@@ -58,0 +58,0 @@ /**

@@ -69,3 +69,3 @@ /**

*/
validate(options?: any): Array<string>;
validate(options?: any): string[];
/**

@@ -90,3 +90,3 @@ * Shortcut to Utils.isEmpty to check the emptiness of a field.

*/
cleanArray(origin: Array<any>, castFunction: (x: any) => any, defaultVal?: any): Array<any>;
cleanArray(origin: any[], castFunction: (x: any) => any, defaultVal?: any): any[];
}

@@ -20,3 +20,3 @@ import { Resource } from './resource.model';

load(x: any): void;
validate(): Array<string>;
validate(): string[];
/**

@@ -23,0 +23,0 @@ * Check whether the signature object has the same content of another one.

@@ -22,10 +22,10 @@ import { Resource } from './resource.model';

*/
admins: Array<string>;
admins: string[];
/**
* The list of projects (codes) in which the team is currently active.
*/
activeInProjects: Array<string>;
activeInProjects: string[];
load(x: any): void;
safeLoad(newData: any, safeData: any): void;
validate(): Array<string>;
validate(): string[];
/**

@@ -32,0 +32,0 @@ * Whether the chosen user is an admin of the team.

@@ -16,3 +16,3 @@ import { Resource } from './resource.model';

load(x: any): void;
validate(): Array<string>;
validate(): string[];
/**

@@ -19,0 +19,0 @@ * Get the duration of the interval (ms).

@@ -37,3 +37,3 @@ /**

*/
export declare function joinArraysOnKeys(mainTable: Array<any>, lookupTable: Array<any>, mainKey: string, lookupKey: string, selectFunction: (attrMainTable: string, attrLookupTable: string) => Array<any>): Array<any>;
export declare function joinArraysOnKeys(mainTable: any[], lookupTable: any[], mainKey: string, lookupKey: string, selectFunction: (attrMainTable: string, attrLookupTable: string) => any[]): any[];
/**

@@ -58,7 +58,7 @@ * Check if a field (/variable) is empty, based on its type.

*/
export declare function loopStringEnumKeys(theEnum: any): Array<string>;
export declare function loopStringEnumKeys(theEnum: any): string[];
/**
* Get an array to iterate containing the values of a string enum.
*/
export declare function loopStringEnumValues(theEnum: any): Array<string>;
export declare function loopStringEnumValues(theEnum: any): string[];
/**

@@ -71,7 +71,7 @@ * Get an array to iterate containing the keys of a numeric enum.

*/
export declare function loopNumericEnumKeys(theEnum: any): Array<number>;
export declare function loopNumericEnumKeys(theEnum: any): number[];
/**
* Get an array to iterate containing the values of a numeric enum.
*/
export declare function loopNumericEnumValues(theEnum: any): Array<string>;
export declare function loopNumericEnumValues(theEnum: any): string[];
/**

@@ -78,0 +78,0 @@ * Convert a markdown string to HTML.

{
"name": "idea-toolbox",
"version": "6.2.0",
"version": "6.2.1",
"description": "IDEA's utility functions",

@@ -36,10 +36,15 @@ "engines": {

"@types/validator": "^13.1.2",
"prettier": "^2.0.2",
"tslint": "~5.15.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.3.0",
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"eslint": "^7.6.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.9",
"eslint-plugin-prefer-arrow": "^1.2.2",
"ts-loader": "^8.0.14",
"typedoc": "^0.17.8",
"typescript": "^3.9.7",
"typescript-tslint-plugin": "^0.3.1"
"webpack": "^5.11.1",
"webpack-cli": "^4.3.1",
"webpack-node-externals": "^2.5.2"
}
}

@@ -7,20 +7,12 @@ # IDEA's toolbox

`npm install idea-toolbox`
`npm i idea-toolbox`
## Usage
## Usage example
Javascript
```
const IdeaX = require('idea-toolbox');
import { Appointment } from 'idea-toolbox';
```
Typescript
```
import IdeaX = require('idea-toolbox');
```
## Documentation
Documentation generated with TypeDoc: [link](https://uatisdeproblem.github.io/IDEA-toolbox).

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

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