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 7.0.0 to 7.0.1

48

dist/src/address.model.js

@@ -7,42 +7,2 @@ "use strict";

class Address extends resource_model_1.Resource {
/**
* Main address or company name.
*/
address;
/**
* Apartment, suite, unit, building, floor, etc.
*/
address2;
/**
* Postal code/zip code.
*/
postcode;
/**
* Town/city.
*/
city;
/**
* Province, district, area.
*/
province;
/**
* Country.
*/
country;
/**
* The geolocation, expressed in latitute and longitude.
*/
geolocation;
/**
* Contact person / receiver.
*/
contact;
/**
* Contact person's phone.
*/
phone;
/**
* Contact person's email.
*/
email;
load(x) {

@@ -135,10 +95,2 @@ super.load(x);

class AddressGeolocation extends resource_model_1.Resource {
/**
* Latitude.
*/
lat;
/**
* Longitude.
*/
lng;
load(x) {

@@ -145,0 +97,0 @@ super.load(x);

@@ -6,10 +6,2 @@ "use strict";

class Announcement extends resource_model_1.Resource {
/**
* The content of the announcement.
*/
content;
/**
* Whether it's a maintenance announcement; if so, the use of the service is temporarily blocked.
*/
maintenance;
load(x) {

@@ -16,0 +8,0 @@ super.load(x);

@@ -14,50 +14,2 @@ "use strict";

class APIRequestLog extends resource_model_1.Resource {
/**
* The id to identify the log stream; usually, it's the concatenation of the project key with the teamId.
*/
logId;
/**
* Timestamp in which the log was captured.
*/
timestamp;
/**
* Id of the user linked to the log.
*/
userId;
/**
* The concatenation of the timestamp with the userId, to support scenarios of concurrency.
*/
sort;
/**
* TTL of the record (in seconds); it's usually a month after the insertion.
*/
expiresAt;
/**
* The resource involved in the log; e.g. `/orders` or `/orders/{orderId}/items`.
*/
resource;
/**
* The determinated path for the resource; e.g. `/orders` or `/orders/12345/items`.
*/
path;
/**
* The identifier of a specific element of the resource (`proxy`).
*/
resourceId;
/**
* Enum: HTTP method (POST, GET, etc.).
*/
method;
/**
* If true, the request ended successfully.
*/
succeeded;
/**
* Action detail; valid (mostly) for PATCH requests.
*/
action;
/**
* For complex logs, it contains extra information.
*/
description;
load(x) {

@@ -64,0 +16,0 @@ super.load(x);

@@ -18,99 +18,2 @@ "use strict";

class Appointment extends resource_model_1.Resource {
/**
* The id of the appointment.
* In case of external calendar, it's the external id; otherwise (local calendars), it's a IUID.
*/
appointmentId;
/**
* The id of the calendar owning the appointment.
* For external calendars, it's the direct id of the external calendar (and not the id of `idea_calendars`),
* to avoid repetitions of appointments for each copy of the external calendar linked to an IDEA calendar.
*/
calendarId;
/**
* A unique id for the appointment, shared across different calendars and calendaring systems (standard RFC5545);
* i.e. each appointment in different calendars may have different `appointmentId`, but it always have same `iCalUID`.
* Note: in many calendaring systems recurring events share the same `iCalUID`.
*/
iCalUID;
/**
* Master appointment id (optional): the id of the master appointment, in case this is an occurence.
*/
masterAppointmentId;
/**
* The title of the appointment.
*/
title;
/**
* The location of the appointment.
*/
location;
/**
* The description of the appointment.
*/
description;
/**
* The starting time of the appointment.
*/
startTime;
/**
* The ending time of the appointment.
*/
endTime;
/**
* If true, it's an all-day event.
*/
allDay;
/**
* The timezone for the appointent start and end.
*/
timezone;
/**
* In case the calendar is linked to external services, the link to access the external resource.
*/
linkToOrigin;
/**
* A list of objects linked to the appointment.
*/
linkedTo;
/**
* The attendees supposed to partecipate to the event.
* It's an empty array in case the appointment is "private", i.e. the creator is the only attendee.
*/
attendees;
/**
* The appointment notifications and the specs for their execution.
* These may come from external calendars: in that case no internal notifications will fire.
* Note on notifications from external services.
* - Microsoft: up to 1 notification, max 1 week before;
* - Google: up to 5 notifications; max 4 weeks before;
* - Multiple notifications at the same time are not allowed.
*/
notifications;
/**
* Date and hour in which the reminder is slotted (`YYYYMMDDHH`). Avoid timezones: UTC!!
* Used to quickly identify the reminders to manage in a particular time frame.
* In case of appointments on external calendars these will not be valued.
*/
internalNotificationFiresOn;
/**
* Fine grain time of alert, expressed in minutes.
* In case of appointments on external calendars these will not be valued.
*/
internalNotificationFiresAt;
/**
* Project from which the notification comes; useful to get the notification preferences.
* In case of appointments on external calendars these will not be valued.
*/
internalNotificationProject;
/**
* Team of the user that need to be notified; useful to get the notification preferences.
* In case of appointments on external calendars these will not be valued.
*/
internalNotificationTeamId;
/**
* User that need to be notified; useful to get the notification preferences.
* In case of appointments on external calendars these will not be valued.
*/
internalNotificationUserId;
load(x) {

@@ -247,17 +150,2 @@ super.load(x);

class AppointmentKeys extends resource_model_1.Resource {
/**
* The id of the appointment.
* In case of external calendar, it's the external id; otherwise (local calendars), it's a IUID.
*/
appointmentId;
/**
* The id of the calendar owning the appointment.
* For external calendars, it's the direct id of the external calendar (and not the id of `idea_calendars`),
* to avoid repetitions of appointments for each copy of the external calendar linked to an IDEA calendar.
*/
calendarId;
/**
* The id of the team, in case it's a shared calendar.
*/
teamId;
load(x) {

@@ -284,10 +172,2 @@ super.load(x);

class AppointmentLinkedObject extends resource_model_1.Resource {
/**
* The type of the referenced object.
*/
type;
/**
* The id of the referenced object.
*/
id;
load(x) {

@@ -320,18 +200,2 @@ super.load(x);

class AppointmentAttendee extends resource_model_1.Resource {
/**
* The email to identify the attendee.
*/
email;
/**
* Whether the user identified by the email is the organizer of the event.
*/
organizer;
/**
* Whether this attendee record refers to the current user.
*/
self;
/**
* The attendance status.
*/
attendance;
load(x) {

@@ -360,10 +224,2 @@ super.load(x);

class AppointmentNotification extends resource_model_1.Resource {
/**
* The method of the notification.
*/
method;
/**
* The number of minutes before the event start time that the reminder occurs.
*/
minutes;
load(x) {

@@ -370,0 +226,0 @@ super.load(x);

@@ -9,22 +9,2 @@ "use strict";

class AppStatus extends resource_model_1.Resource {
/**
* The version that generated the status.
*/
version;
/**
* Whether the app is in maintenance mode.
*/
inMaintenance;
/**
* Whether the app must be updated.
*/
mustUpdate;
/**
* The status-related content to display (markdown).
*/
content;
/**
* The latest version of the app.
*/
latestVersion;
load(x) {

@@ -31,0 +11,0 @@ super.load(x);

@@ -9,14 +9,2 @@ "use strict";

class Attachment extends resource_model_1.Resource {
/**
* The id of the attachment.
*/
attachmentId;
/**
* The name of the resource. This can be changed when attaching to the resource.
*/
name;
/**
* The format of the resource. (e.g. 'jpg', 'pdf').
*/
format;
load(x) {

@@ -23,0 +11,0 @@ super.load(x);

59

dist/src/auth0User.model.js

@@ -9,42 +9,13 @@ "use strict";

class Auth0User extends resource_model_1.Resource {
/**
* The ID of the user (sub).
*/
userId;
/**
* The email address of the user.
*/
email;
/**
* Whether the email address of the user is verified.
*/
emailVerified;
/**
* The fullname of the user.
*/
name;
/**
* The nickname of the user.
*/
nickname;
/**
* The URI or URL to the user's picture.
*/
picture;
/**
* The timestamp of last update of the user.
*/
updatedAt;
/**
* The list of groups the user is part of.
*/
groups;
/**
* The user's custom attributes.
*/
attributes;
/**
* The user's custom preferences.
*/
preferences;
constructor() {
super(...arguments);
/**
* Whether the user is part of the administrators group.
*/
this.isAdmin = () => this.groups.includes('admins');
/**
* Whether the user is part of the robots group.
*/
this.isRobot = () => this.groups.includes('robots');
}
load(x) {

@@ -73,11 +44,3 @@ this.userId = this.clean(x.userId || x.sub, String);

}
/**
* Whether the user is part of the administrators group.
*/
isAdmin = () => this.groups.includes('admins');
/**
* Whether the user is part of the robots group.
*/
isRobot = () => this.groups.includes('robots');
}
exports.Auth0User = Auth0User;

@@ -10,6 +10,2 @@ "use strict";

class CacheableResource extends resource_model_1.Resource {
/**
* "Modified at" information on the resource.
*/
mAt;
constructor(x, options) {

@@ -16,0 +12,0 @@ super(x, options);

@@ -17,44 +17,2 @@ "use strict";

class Calendar extends resource_model_1.Resource {
/**
* The id (IUID) of the calendar.
*/
calendarId;
/**
* The id of the teamId owning the calendar, in case of team calendar (this cannot be changed).
*/
teamId;
/**
* The id of the user owning the calendar, in case of private calendar (this cannot be changed).
* If `teamId` is set, this attribute is ignored.
*/
userId;
/**
* The name of the calendar. Max 100 characters.
*/
name;
/**
* The description of the calendar. Max 300 characters.
*/
description;
/**
* An identifying color for the calendar; e.g. `#0010AA`.
*/
color;
/**
* A default timezone for the calendar.
*/
timezone;
/**
* Extra info about the calendar, if linked to an external service.
*/
external;
/**
* In case of shared calendar, the IDs of the users that can manage the calendar's appointments.
* If `null`, everyone can manage the calendar's appointments; if empty (`[]`), no one can (read-only).
*/
usersCanManageAppointments;
/**
* In case of shared calendar, the id of the user who created it.
*/
createdByUserId;
load(x) {

@@ -132,35 +90,2 @@ super.load(x);

class ExternalCalendarInfo extends resource_model_1.Resource {
/**
* The external service from which the calendar comes.
*/
service;
/**
* Id of the external calendar.
*/
calendarId;
/**
* Name of the calendar in the external service.
*/
name;
/**
* The time of last synchronisation of the external calendar.
*/
lastSyncAt;
/**
* An optional syncBookmark if the external service supports incremental synchronisation.
*/
syncBookmark;
/**
* An optional pageBookmark if the external service supports incremental synchronisation.
* In case of synchronisation with multiple pages (Google); Microsoft manages this directly through the syncBookmark.
*/
pageBookmark;
/**
* The access level to the calendar for the user who linked the external service.
*/
userAccess;
/**
* Email address with which the user has registered to the service.
*/
email;
load(x) {

@@ -195,10 +120,2 @@ super.load(x);

class ExternalCalendarToken extends resource_model_1.Resource {
/**
* The id external service calendar.
*/
calendarId;
/**
* The token to perform API requests to the external service.
*/
token;
load(x) {

@@ -205,0 +122,0 @@ super.load(x);

@@ -6,38 +6,2 @@ "use strict";

class Check extends resource_model_1.Resource {
/**
* The unique identifier for the check element.
*/
value;
/**
* Displayed name (description) of the check element.
*/
name;
/**
* Whether the check is true or false.
*/
checked;
/**
* Elements not included in the current search because of other filters.
*/
hidden;
/**
* URL to an avatar to display for the element.
*/
avatar;
/**
* The color shape to display (instead of an avatar) for the element.
*/
color;
/**
* A description with additional information on the check.
*/
description;
/**
* An optional first category.
*/
category1;
/**
* An optional second category.
*/
category2;
load(x) {

@@ -44,0 +8,0 @@ if (x)

@@ -6,42 +6,2 @@ "use strict";

class ClientInfo extends resource_model_1.Resource {
/**
* Current timestamp from the client.
*/
timestamp;
/**
* Info about the client's platform.
*/
platform;
/**
* The client's screen width.
*/
screenWidth;
/**
* The client's screen height.
*/
screenHeight;
/**
* Whether the client is in landscape mode; otherwise, portrait.
*/
isLandscape;
/**
* The current url on the client.
*/
url;
/**
* The page referrer of the client.
*/
referrer;
/**
* Whether the client was online at the time of the error.
*/
isOnline;
/**
* The client's language.
*/
language;
/**
* The client's user agent.
*/
userAgent;
load(x) {

@@ -48,0 +8,0 @@ super.load(x);

@@ -9,26 +9,2 @@ "use strict";

class CognitoUser {
/**
* The id of the user.
*/
userId;
/**
* The email address of the user.
*/
email;
/**
* The fullname of the user.
*/
name;
/**
* The URI to the user's picture.
*/
picture;
/**
* The list of groups containing the user.
*/
groups;
/**
* The user's (custom) attributes.
*/
attributes;
constructor(x = {}) {

@@ -35,0 +11,0 @@ this.userId = x.userId || x.sub;

@@ -15,30 +15,2 @@ "use strict";

class ContactRequest extends resource_model_1.Resource {
/**
* Business email to get in contact with the requester (PK).
*/
email;
/**
* Timestamp of the request (SK).
*/
timestamp;
/**
* Full name of the requester.
*/
name;
/**
* If any, specific campaign id.
*/
campaign;
/**
* If set, the requester specified if he/she would like to be contacted for a demo.
*/
wantsDemo;
/**
* The details of the client at the time of the error.
*/
client;
/**
* Any notes to attach to the request.
*/
notes;
load(x) {

@@ -45,0 +17,0 @@ super.load(x);

@@ -6,14 +6,2 @@ "use strict";

class Contacts extends resource_model_1.Resource {
/**
* Contact person's phone.
*/
phone;
/**
* Contact person's email.
*/
email;
/**
* Fullname/nickname.
*/
name;
load(x) {

@@ -20,0 +8,0 @@ super.load(x);

@@ -7,16 +7,2 @@ "use strict";

class CustomBlockMeta extends resource_model_1.Resource {
/**
* Ordered list of the sections (names) to expect in the block.
* Example: `['flowers', 'burgers', ...]`.
*/
sectionsLegend;
/**
* Object containg attributes of type CustomSectionMeta; e.g.
* ´´´
* fields.flowers: CustomSectionMeta;
* fields.burgers: CustomSectionMeta;
* ...
* ```
*/
sections;
load(x, languages) {

@@ -23,0 +9,0 @@ super.load(x, languages);

@@ -12,51 +12,2 @@ "use strict";

class CustomFieldMeta extends resource_model_1.Resource {
/**
* The id of the team owning the field. Optional.
*/
teamId;
/**
* Id of the field.
*/
fieldId;
/**
* Name of the field.
*/
name;
/**
* Explanation of the field.
*/
description;
/**
* The type of the custom field.
*/
type;
/**
* The list of the possible values (strings); available only with type ENUM.
*/
enum;
/**
* The translations of the enum keys; available only with type ENUM.
* Not obligatory: the fallback is always the enum key.
*/
enumLabels;
/**
* Field default value.
*/
default;
/**
* If true, an obligatory check will be performed; ignored with type BOOLEAN.
*/
obligatory;
/**
* Min value the field can assume; available only with type NUMBER.
*/
min;
/**
* Max value the field can assume; available only with type NUMBER.
*/
max;
/**
* The icon to show to identify the field.
*/
icon;
load(x, languages) {

@@ -63,0 +14,0 @@ super.load(x, languages);

@@ -11,40 +11,2 @@ "use strict";

class CustomSectionMeta extends resource_model_1.Resource {
/**
* The name of the section. Support to multilanguage. Optional.
*/
name;
/**
* The description of the section. Support to multilanguage. Optional.
*/
description;
/**
* Ordered list of the fields (names) to expect in the section.
* Example: `['name', 'surname', ...]`.
*/
fieldsLegend;
/**
* Object containg attributes of type CustomFieldMeta; e.g.
* ```
* fields.name: CustomFieldMeta;
* fields.surname: CustomFieldMeta;
* ...
* ```
*/
fields;
/**
* Matrix that sets the way the section is shown in the template; when null, a section won't be shown in the template.
* Optional.
*
* Example, with f1, f2, etc. as fields names,
* ```
* [ ['f1'], ['f2','f3','f7'], ['f5','f8'] ]
* ```
* becomes:
* ```
* [ f1 ]
* [ f2 | f3 | f7 ]
* [ f5 | f8 ]
* ```
*/
displayTemplate;
load(x, languages) {

@@ -51,0 +13,0 @@ super.load(x);

@@ -16,22 +16,2 @@ "use strict";

class DeltaRecord extends resource_model_1.Resource {
/**
* The concatenation of teamId and resource.
*/
teamResource;
/**
* The id of the record; it could be a concatenation of the element ids.
*/
id;
/**
* The timestamp when the record was lastly updated.
*/
timestamp;
/**
* If set, the record shows the element was deleted.
*/
deleted;
/**
* The current state of the element, if not deleted.
*/
element;
load(x) {

@@ -53,18 +33,2 @@ super.load(x);

class Delta extends resource_model_1.Resource {
/**
* Starting time to confront what's changed since then.
*/
since;
/**
* If set, there are more resesources to acquire, so it contains the link to request another page.
*/
next;
/**
* The list of resources involved in this delta.
*/
resources;
/**
* The list of delta records for each resource.
*/
records;
load(x) {

@@ -94,10 +58,2 @@ super.load(x);

class DeltaNext extends resource_model_1.Resource {
/**
* The resources of which there is still data to acquire.
*/
resources;
/**
* The lastEvaluatedKeys for getting the next page of the pagination, for each resources.
*/
keys;
load(x) {

@@ -145,14 +101,2 @@ super.load(x);

class DeltaCount extends resource_model_1.Resource {
/**
* Starting time to confront what's changed since then.
*/
since;
/**
* The list of resources involved in this delta.
*/
resources;
/**
* The count of elements for each resource.
*/
count;
load(x) {

@@ -159,0 +103,0 @@ super.load(x);

@@ -11,18 +11,2 @@ "use strict";

class EmailChangeRequest extends resource_model_1.Resource {
/**
* The code that the user has to send to confirm the new email address.
*/
confirmationCode;
/**
* The old email, to change.
*/
oldEmail;
/**
* The new email address that the user wants to set.
*/
newEmail;
/**
* Expiration time, in seconds.
*/
expiresAt;
load(x) {

@@ -29,0 +13,0 @@ super.load(x);

@@ -6,22 +6,2 @@ "use strict";

class EmailData extends resource_model_1.Resource {
/**
* The default email subject.
*/
subject;
/**
* The default email content.
*/
content;
/**
* Default addresses to who to send the email in TO.
*/
to;
/**
* Default addresses to who to send the email in CC.
*/
cc;
/**
* Default addresses to who to send the email in BCC.
*/
bcc;
load(x) {

@@ -28,0 +8,0 @@ super.load(x);

@@ -10,38 +10,2 @@ "use strict";

class ErrorReport extends resource_model_1.Resource {
/**
* Project/product key.
*/
project;
/**
* The version of the project/product.
*/
version;
/**
* The stage currently set (dev/prod/etc.).
*/
stage;
/**
* The timestamp of creation (backend).
*/
createdAt;
/**
* Timestamp of when the report should expire, expressed in seconds.
*/
expiresAt;
/**
* The type of the error.
*/
type;
/**
* The error message.
*/
error;
/**
* The error stack (stringified).
*/
stack;
/**
* The details of the client at the time of the error.
*/
client;
load(x) {

@@ -48,0 +12,0 @@ super.load(x);

@@ -11,18 +11,2 @@ "use strict";

class ErrorWhitelisted extends resource_model_1.Resource {
/**
* Project/product key.
*/
project;
/**
* The error message.
*/
error;
/**
* Timestamp when the error was whitelisted.
*/
createdAt;
/**
* Some notes or an explanation why the error is whitelisted.
*/
notes;
load(x) {

@@ -29,0 +13,0 @@ super.load(x);

@@ -9,6 +9,2 @@ "use strict";

class ExcelRow extends resource_model_1.Resource {
/**
* The row number in the Excel file of origin.
*/
__rowNum__;
load(x) {

@@ -15,0 +11,0 @@ super.load(x);

@@ -12,19 +12,2 @@ "use strict";

class Invitation extends resource_model_1.Resource {
/**
* Unique, random invitation code (partition key).
*/
invitationCode;
/**
* Team id.
*/
teamId;
/**
* The email address of the invited user.
* Note: we use it instead of the userId to invite also not-users of the platform.
*/
email;
/**
* Expiration time, in seconds.
*/
expiresAt;
load(x) {

@@ -31,0 +14,0 @@ super.load(x);

@@ -10,10 +10,2 @@ "use strict";

class Languages extends resource_model_1.Resource {
/**
* The default language for a context.
*/
default;
/**
* The available languages available in a context.
*/
available;
load(x) {

@@ -20,0 +12,0 @@ super.load(x);

@@ -9,10 +9,2 @@ "use strict";

class LimitCounter extends resource_model_1.Resource {
/**
* The counter.
*/
counter;
/**
* The limit against which the counter moves.
*/
limit;
load(x) {

@@ -19,0 +11,0 @@ super.load(x);

@@ -16,23 +16,2 @@ "use strict";

class Membership extends resource_model_1.Resource {
/**
* The id of the team.
*/
teamId;
/**
* The id of the user (Cognito sub).
*/
userId;
/**
* The name of the user in the team.
* In generic scenarios, it's usually the user's email address.
*/
name;
/**
* If set, a short representation of the name, through initials.
*/
initials;
/**
* Whether the user has still to accept the invitation to join the team.
*/
pendingInvitation;
load(x) {

@@ -67,15 +46,2 @@ super.load(x);

class MembershipSummary extends resource_model_1.Resource {
/**
* The id of the member of the team.
*/
userId;
/**
* The name of the member of the team.
* In generic scenarios, it's usually the user's email address.
*/
name;
/**
* If set, a short representation of the name, through initials.
*/
initials;
load(x) {

@@ -82,0 +48,0 @@ super.load(x);

@@ -9,36 +9,2 @@ "use strict";

class Notification extends resource_model_1.Resource {
/**
* The project from which we fire the notification.
*/
project;
/**
* A brief description of the notification.
*/
subject;
/**
* The content of the notification.
*/
content;
/**
* The id of the team owner of the notification. Useful for branded notifications.
*/
teamId;
/**
* The id of the user receiver.
* Either userId or email must be set.
*/
userId;
/**
* In case the user doesn't exist (!userId), the email address to which send an email notification.
* Either email or userId must be set.
*/
email;
/**
* If set, an email notification is preferred to any other channel.
*/
forceEmail;
/**
* The event that triggered the notification; useful to gather specific notification preferences.
*/
event;
load(x) {

@@ -66,10 +32,2 @@ super.load(x);

class EventNotificationPreference extends resource_model_1.Resource {
/**
* Whether to receive an email.
*/
email;
/**
* Whether to receive a push notification.
*/
push;
load(x) {

@@ -76,0 +34,0 @@ super.load(x);

@@ -17,36 +17,2 @@ "use strict";

class PDFTemplateSection extends resource_model_1.Resource {
/**
* The type of section.
*/
type;
/**
* A description to help identify the section in the template.
*/
description;
/**
* Whether to show a border around the section.
*/
border;
/**
* The content of the 12 columns of a ROW section.
* Each element of the array may contain:
* - A `PDFTemplateSimpleField` or `PDFTemplateSimpleField`;
* - `-`, to indicate that the field in the previous column span over the represented column;
* - null, to indicate a blank column.
*/
columns;
/**
* The title of a HEADER section or INNER_SECTION (or REPATED_INNER_SECTION).
* It's a Label (markdown) supporting variables substitution (e.g. `Here's **@myVar**`).
* Note: the var substitution is made on runtime data, based on the section's context.
*/
title;
/**
* The context to consider for the data of a INNER_SECTION or REPEATED_INNER_SECTION (inception).
*/
context;
/**
* The inner template for a INNER_SECTION or REPEATED_INNER_SECTION (inception).
*/
innerTemplate;
load(x, languages) {

@@ -201,11 +167,2 @@ super.load(x);

class PDFTemplateSimpleField extends resource_model_1.Resource {
/**
* The field's label.
*/
label;
/**
* The direct reference to a variable to substitute (e.g. `@myVar`).
* Note: the variable substitution is made on runtime data, based on the section's context.
*/
code;
load(x, languages) {

@@ -228,7 +185,2 @@ super.load(x);

class PDFTemplateComplexField extends resource_model_1.Resource {
/**
* A Label (markdown support) that may contain variables to subsitute (e.g. `Here's **@myVar**`).
* Note: the variable substitution is made on runtime data, based on the section's context.
*/
content;
load(x, languages) {

@@ -235,0 +187,0 @@ super.load(x);

@@ -39,58 +39,2 @@ "use strict";

class ProjectPlan extends resource_model_1.Resource {
/**
* Project / product key.
*/
project;
/**
* The id of the project plan.
*/
planId;
/**
* The id of the plan in the stores (aka Product ID).
*/
storePlanId;
/**
* The price, based on the currency set.
*/
price;
/**
* The currency ISO code: EUR, USD, etc.
*/
currency;
/**
* The currency symbol: €, $, etc.
*/
currencySymbol;
/**
* The string version of the price, with the currency symbol concatenated.
*/
priceStr;
/**
* The plan duration.
*/
duration;
/**
* The platforms in which the plan is enabled (and therefore visible).
*/
platforms;
/**
* The title of the plan, in various languages.
*/
title;
/**
* The description of the plan, in various languages.
*/
description;
/**
* Order with which to sort the plan when shown.
*/
order;
/**
* If true, the plan is an anomaly and it needs to be threaded in special ways.
*/
special;
/**
* The plan targets: USERS, TEAMS.
*/
target;
load(x, languages) {

@@ -97,0 +41,0 @@ super.load(x);

@@ -16,49 +16,2 @@ "use strict";

class ProjectSubscription extends resource_model_1.Resource {
/**
* Project / product key.
*/
project;
/**
* The id of the subscription (the target of the subscription to a plan).
* Each project has its own meaning of it (e.g. teamId, userId, etc.).
* Note: it should be a unique id in the entire project; add prefixes accordingly.
*/
subscriptionId;
/**
* The id of the project plan.
*/
planId;
/**
* The timestamp until this subscription is active.
*/
validUntil;
/**
* If false, the subscription won't renew after its set expiration.
*/
autoRenewing;
/**
* The platform from which the subscription has been completed.
* It will be possible to manage the subscription only from the platform in which it was firstly created.
*/
platform;
/**
* The id of the plan in the store.
*/
storePlanId;
/**
* The store reference id for the subscription.
* It's an ID coming from the stores, used to double check that a purchase is actually linked to the subscriptionId.
* Stripe: `id`.
* iOS: `original_transaction_id`.
* Android: the first part of the `orderId`.
*/
storeReferenceId;
/**
* The original receipt of the subscription, to later on check with the store if a subscription is still active.
*/
storeReceipt;
/**
* The user who manages the subscription.
*/
managedByUser;
load(x) {

@@ -65,0 +18,0 @@ super.load(x);

@@ -10,14 +10,2 @@ "use strict";

class PushNotificationsDevice extends resource_model_1.Resource {
/**
* The device identification token (also known as device ID or registration ID).
*/
token;
/**
* The device's platform.
*/
platform;
/**
* The device's endpoint.
*/
endpoint;
load(x) {

@@ -24,0 +12,0 @@ super.load(x);

@@ -9,26 +9,2 @@ "use strict";

class RCAttachedResource extends resource_model_1.Resource {
/**
* The id of the resource.
*/
resourceId;
/**
* The folder of the resource.
*/
folderId;
/**
* The name of the resource. This can be changed when attaching to the entity.
*/
name;
/**
* The original name of the file.
*/
originalName;
/**
* The format of the resource. (e.g. 'jpg', 'pdf').
*/
format;
/**
* Timestamp of the latest version of the resource at the time it was attached to the entity.
*/
version;
load(x) {

@@ -35,0 +11,0 @@ super.load(x);

@@ -9,10 +9,2 @@ "use strict";

class RCConfiguredFolder extends resource_model_1.Resource {
/**
* The id of the folder.
*/
folderId;
/**
* The name of the folder.
*/
name;
load(x) {

@@ -19,0 +11,0 @@ super.load(x);

@@ -15,31 +15,2 @@ "use strict";

class RCFolder extends resource_model_1.Resource {
/**
* The id of the resource center (as collection of folders managed by a team).
* Usually the concatenation of project and team id (`project_teamId`), but open to custom scenarios.
*/
resourceCenterId;
/**
* The id of the folder.
*/
folderId;
/**
* The name of the folder.
*/
name;
/**
* Timestamp of when the folder has been created.
*/
createdAt;
/**
* The user who created the folder.
*/
createdBy;
/**
* Timestamp of last update.
*/
updatedAt;
/**
* The user who lastly updated the folder.
*/
updatedBy;
load(x) {

@@ -46,0 +17,0 @@ super.load(x);

@@ -16,42 +16,2 @@ "use strict";

class RCResource extends resource_model_1.Resource {
/**
* Concatenation of resourceCenter and folder id (`resourceCenterId_folderId`).
*/
resourceCenterFolderId;
/**
* The id of the resource.
*/
resourceId;
/**
* The folder of the resource.
*/
folderId;
/**
* The name of the resource. This can be changed when attaching to the entity.
*/
name;
/**
* The format of the resource (e.g. 'jpg', 'pdf').
*/
format;
/**
* Timestamp of when the resource has been uploaded the last time.
*/
version;
/**
* Timestamp of when the resource has been created.
*/
createdAt;
/**
* The user who created the resource.
*/
createdBy;
/**
* Timestamp of last update.
*/
updatedAt;
/**
* The user who lastly updated the resource.
*/
updatedBy;
load(x) {

@@ -58,0 +18,0 @@ super.load(x);

@@ -9,14 +9,2 @@ "use strict";

class Signature extends resource_model_1.Resource {
/**
* The contact who signed.
*/
signatory;
/**
* The timestamp of the signature.
*/
timestamp;
/**
* The PNG representation of the signature.
*/
pngURL;
load(x) {

@@ -23,0 +11,0 @@ super.load(x);

@@ -9,10 +9,2 @@ "use strict";

class SignedURL extends resource_model_1.Resource {
/**
* The signed URL.
*/
url;
/**
* An optional identificator for various purposes.
*/
id;
load(x) {

@@ -19,0 +11,0 @@ super.load(x);

@@ -9,22 +9,2 @@ "use strict";

class Suggestion extends resource_model_1.Resource {
/**
* The value; it could be of any type.
*/
value;
/**
* The name to show for the suggestion.
*/
name;
/**
* A description with additional information on the suggestion.
*/
description;
/**
* An optional first category.
*/
category1;
/**
* An optional second category.
*/
category2;
load(x) {

@@ -31,0 +11,0 @@ super.load(x);

@@ -9,18 +9,2 @@ "use strict";

class Team extends resource_model_1.Resource {
/**
* The id of the team
*/
teamId;
/**
* The team name.
*/
name;
/**
* Timestamp of creation.
*/
createdAt;
/**
* The list of projects (codes) in which the team is currently active.
*/
activeInProjects;
load(x) {

@@ -27,0 +11,0 @@ super.load(x);

@@ -10,10 +10,2 @@ "use strict";

class TimeInterval extends resource_model_1.Resource {
/**
* The moment in the day (UTC), when the interval starts; in ms.
*/
from;
/**
* The moment in the day (UTC), when the interval ends; in ms.
*/
to;
load(x) {

@@ -20,0 +12,0 @@ super.load(x);

@@ -9,24 +9,2 @@ "use strict";

class User extends resource_model_1.Resource {
/**
* Cognito sub.
*/
userId;
/**
* === username (from Cognito, **not in DynamoDB**).
*/
email;
/**
* The currently selected team in each project.
*/
currentTeamInProjects;
/**
* Timestamp of creation.
*/
createdAt;
// @todo kept for retrocompatibility before `IDEA Ionic Extra v5.15.x` #22 (only Mario is missing)
// --> when all the projects are advanced to that version, you can remove this attribute
/**
* @deprecated
*/
currentTeam;
load(x) {

@@ -33,0 +11,0 @@ super.load(x);

2

package.json
{
"name": "idea-toolbox",
"version": "7.0.0",
"version": "7.0.1",
"description": "IDEA's utility functions",

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

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