idea-toolbox
Advanced tools
Comparing version 6.7.3 to 7.0.0
@@ -7,2 +7,42 @@ "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) { | ||
@@ -95,2 +135,10 @@ super.load(x); | ||
class AddressGeolocation extends resource_model_1.Resource { | ||
/** | ||
* Latitude. | ||
*/ | ||
lat; | ||
/** | ||
* Longitude. | ||
*/ | ||
lng; | ||
load(x) { | ||
@@ -97,0 +145,0 @@ super.load(x); |
@@ -57,2 +57,2 @@ "use strict"; | ||
AmazonTranslateLanguages["Vietnamese"] = "vi"; | ||
})(AmazonTranslateLanguages = exports.AmazonTranslateLanguages || (exports.AmazonTranslateLanguages = {})); | ||
})(AmazonTranslateLanguages || (exports.AmazonTranslateLanguages = AmazonTranslateLanguages = {})); |
@@ -6,2 +6,10 @@ "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) { | ||
@@ -8,0 +16,0 @@ super.load(x); |
@@ -14,2 +14,50 @@ "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) { | ||
@@ -16,0 +64,0 @@ super.load(x); |
@@ -18,2 +18,99 @@ "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) { | ||
@@ -150,2 +247,17 @@ 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) { | ||
@@ -172,2 +284,10 @@ 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) { | ||
@@ -195,3 +315,3 @@ super.load(x); | ||
AppointmentLinkedObjectTypes[AppointmentLinkedObjectTypes["ARTHUR_ACTIVITY"] = 200] = "ARTHUR_ACTIVITY"; | ||
})(AppointmentLinkedObjectTypes = exports.AppointmentLinkedObjectTypes || (exports.AppointmentLinkedObjectTypes = {})); | ||
})(AppointmentLinkedObjectTypes || (exports.AppointmentLinkedObjectTypes = AppointmentLinkedObjectTypes = {})); | ||
/** | ||
@@ -201,2 +321,18 @@ * The info about the attendee to an appointment. | ||
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) { | ||
@@ -220,3 +356,3 @@ super.load(x); | ||
AppointmentAttendance[AppointmentAttendance["ACCEPTED"] = 2] = "ACCEPTED"; | ||
})(AppointmentAttendance = exports.AppointmentAttendance || (exports.AppointmentAttendance = {})); | ||
})(AppointmentAttendance || (exports.AppointmentAttendance = AppointmentAttendance = {})); | ||
/** | ||
@@ -226,2 +362,10 @@ * The info about the appointment notification. | ||
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) { | ||
@@ -241,3 +385,3 @@ super.load(x); | ||
AppointmentNotificationMethods["EMAIL"] = "EMAIL"; | ||
})(AppointmentNotificationMethods = exports.AppointmentNotificationMethods || (exports.AppointmentNotificationMethods = {})); | ||
})(AppointmentNotificationMethods || (exports.AppointmentNotificationMethods = AppointmentNotificationMethods = {})); | ||
/** | ||
@@ -252,2 +396,2 @@ * Possible notification units of time. | ||
AppointmentNotificationUnitsOfTime["WEEKS"] = "WEEKS"; | ||
})(AppointmentNotificationUnitsOfTime = exports.AppointmentNotificationUnitsOfTime || (exports.AppointmentNotificationUnitsOfTime = {})); | ||
})(AppointmentNotificationUnitsOfTime || (exports.AppointmentNotificationUnitsOfTime = AppointmentNotificationUnitsOfTime = {})); |
@@ -9,2 +9,22 @@ "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) { | ||
@@ -11,0 +31,0 @@ super.load(x); |
@@ -9,2 +9,14 @@ "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) { | ||
@@ -11,0 +23,0 @@ super.load(x); |
@@ -9,13 +9,42 @@ "use strict"; | ||
class Auth0User extends resource_model_1.Resource { | ||
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'); | ||
} | ||
/** | ||
* 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; | ||
load(x) { | ||
@@ -44,3 +73,11 @@ 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; |
@@ -9,2 +9,2 @@ "use strict"; | ||
BooleanChoices[BooleanChoices["ALL"] = 2] = "ALL"; | ||
})(BooleanChoices = exports.BooleanChoices || (exports.BooleanChoices = {})); | ||
})(BooleanChoices || (exports.BooleanChoices = BooleanChoices = {})); |
@@ -10,2 +10,6 @@ "use strict"; | ||
class CacheableResource extends resource_model_1.Resource { | ||
/** | ||
* "Modified at" information on the resource. | ||
*/ | ||
mAt; | ||
constructor(x, options) { | ||
@@ -12,0 +16,0 @@ super(x, options); |
@@ -17,2 +17,44 @@ "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) { | ||
@@ -90,2 +132,35 @@ 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) { | ||
@@ -113,3 +188,3 @@ super.load(x); | ||
ExternalCalendarPermissions[ExternalCalendarPermissions["OWNER"] = 3] = "OWNER"; | ||
})(ExternalCalendarPermissions = exports.ExternalCalendarPermissions || (exports.ExternalCalendarPermissions = {})); | ||
})(ExternalCalendarPermissions || (exports.ExternalCalendarPermissions = ExternalCalendarPermissions = {})); | ||
/** | ||
@@ -121,2 +196,10 @@ * Additional info on a external calendar, detached from the main object for security reasons. | ||
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) { | ||
@@ -141,2 +224,2 @@ super.load(x); | ||
ExternalCalendarSources["MICROSOFT"] = "MICROSOFT"; | ||
})(ExternalCalendarSources = exports.ExternalCalendarSources || (exports.ExternalCalendarSources = {})); | ||
})(ExternalCalendarSources || (exports.ExternalCalendarSources = ExternalCalendarSources = {})); |
@@ -6,2 +6,38 @@ "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) { | ||
@@ -8,0 +44,0 @@ if (x) |
@@ -6,2 +6,42 @@ "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) { | ||
@@ -8,0 +48,0 @@ super.load(x); |
@@ -9,2 +9,26 @@ "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 = {}) { | ||
@@ -11,0 +35,0 @@ this.userId = x.userId || x.sub; |
@@ -15,2 +15,30 @@ "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) { | ||
@@ -17,0 +45,0 @@ super.load(x); |
@@ -6,2 +6,14 @@ "use strict"; | ||
class Contacts extends resource_model_1.Resource { | ||
/** | ||
* Contact person's phone. | ||
*/ | ||
phone; | ||
/** | ||
* Contact person's email. | ||
*/ | ||
email; | ||
/** | ||
* Fullname/nickname. | ||
*/ | ||
name; | ||
load(x) { | ||
@@ -8,0 +20,0 @@ super.load(x); |
@@ -255,2 +255,2 @@ "use strict"; | ||
Countries["Zimbabwe"] = "ZW"; | ||
})(Countries = exports.Countries || (exports.Countries = {})); | ||
})(Countries || (exports.Countries = Countries = {})); |
@@ -7,2 +7,16 @@ "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) { | ||
@@ -9,0 +23,0 @@ super.load(x, languages); |
@@ -12,2 +12,51 @@ "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) { | ||
@@ -14,0 +63,0 @@ super.load(x, languages); |
@@ -14,2 +14,2 @@ "use strict"; | ||
CustomFieldTypes["TEXT"] = "TEXT"; | ||
})(CustomFieldTypes = exports.CustomFieldTypes || (exports.CustomFieldTypes = {})); | ||
})(CustomFieldTypes || (exports.CustomFieldTypes = CustomFieldTypes = {})); |
@@ -11,2 +11,40 @@ "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) { | ||
@@ -13,0 +51,0 @@ super.load(x); |
@@ -16,2 +16,22 @@ "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) { | ||
@@ -33,2 +53,18 @@ 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) { | ||
@@ -58,2 +94,10 @@ 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) { | ||
@@ -96,3 +140,3 @@ super.load(x); | ||
DeltaResources["RESOURCE"] = "RESOURCE"; | ||
})(DeltaResources = exports.DeltaResources || (exports.DeltaResources = {})); | ||
})(DeltaResources || (exports.DeltaResources = DeltaResources = {})); | ||
/** | ||
@@ -102,2 +146,14 @@ * A structure to have an overview of the number of elements for each resource. | ||
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) { | ||
@@ -104,0 +160,0 @@ super.load(x); |
@@ -11,2 +11,18 @@ "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) { | ||
@@ -13,0 +29,0 @@ super.load(x); |
@@ -6,2 +6,22 @@ "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) { | ||
@@ -8,0 +28,0 @@ super.load(x); |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
export declare type epochDate = number; | ||
export type epochDate = number; | ||
/** | ||
@@ -13,3 +13,3 @@ * Alias to avoid explaining the type for each variable. | ||
*/ | ||
export declare type epochDateTime = number; | ||
export type epochDateTime = number; | ||
/** | ||
@@ -20,3 +20,3 @@ * Alias to avoid explaining the type for each variable. | ||
*/ | ||
export declare type epochISOString = string; | ||
export type epochISOString = string; | ||
/** | ||
@@ -27,2 +27,2 @@ * Alias to avoid explaining the type for each variable. | ||
*/ | ||
export declare type epochISODateString = string; | ||
export type epochISODateString = string; |
@@ -10,2 +10,38 @@ "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) { | ||
@@ -12,0 +48,0 @@ super.load(x); |
@@ -11,2 +11,18 @@ "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) { | ||
@@ -13,0 +29,0 @@ super.load(x); |
@@ -9,2 +9,6 @@ "use strict"; | ||
class ExcelRow extends resource_model_1.Resource { | ||
/** | ||
* The row number in the Excel file of origin. | ||
*/ | ||
__rowNum__; | ||
load(x) { | ||
@@ -11,0 +15,0 @@ super.load(x); |
@@ -12,2 +12,19 @@ "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) { | ||
@@ -14,0 +31,0 @@ super.load(x); |
@@ -463,2 +463,2 @@ "use strict"; | ||
Ionicons["WOMAN"] = "woman"; | ||
})(Ionicons = exports.Ionicons || (exports.Ionicons = {})); | ||
})(Ionicons || (exports.Ionicons = Ionicons = {})); |
@@ -191,2 +191,2 @@ "use strict"; | ||
LanguagesISO639["Zulu"] = "zu"; | ||
})(LanguagesISO639 = exports.LanguagesISO639 || (exports.LanguagesISO639 = {})); | ||
})(LanguagesISO639 || (exports.LanguagesISO639 = LanguagesISO639 = {})); |
@@ -10,2 +10,10 @@ "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) { | ||
@@ -32,2 +40,2 @@ super.load(x); | ||
ServiceLanguages["English"] = "en"; | ||
})(ServiceLanguages = exports.ServiceLanguages || (exports.ServiceLanguages = {})); | ||
})(ServiceLanguages || (exports.ServiceLanguages = ServiceLanguages = {})); |
@@ -9,2 +9,10 @@ "use strict"; | ||
class LimitCounter extends resource_model_1.Resource { | ||
/** | ||
* The counter. | ||
*/ | ||
counter; | ||
/** | ||
* The limit against which the counter moves. | ||
*/ | ||
limit; | ||
load(x) { | ||
@@ -11,0 +19,0 @@ super.load(x); |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare type markdown = string; | ||
export type markdown = string; |
@@ -16,2 +16,23 @@ "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) { | ||
@@ -46,2 +67,15 @@ 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) { | ||
@@ -48,0 +82,0 @@ super.load(x); |
@@ -9,2 +9,36 @@ "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) { | ||
@@ -32,2 +66,10 @@ 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) { | ||
@@ -34,0 +76,0 @@ super.load(x); |
@@ -17,2 +17,36 @@ "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) { | ||
@@ -162,3 +196,3 @@ super.load(x); | ||
PDFTemplateSectionTypes[PDFTemplateSectionTypes["REPEATED_INNER_SECTION"] = 5] = "REPEATED_INNER_SECTION"; | ||
})(PDFTemplateSectionTypes = exports.PDFTemplateSectionTypes || (exports.PDFTemplateSectionTypes = {})); | ||
})(PDFTemplateSectionTypes || (exports.PDFTemplateSectionTypes = PDFTemplateSectionTypes = {})); | ||
/** | ||
@@ -168,2 +202,11 @@ * A simple field, with a direct reference to a variable, depending on the current section's context. | ||
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) { | ||
@@ -186,2 +229,7 @@ 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) { | ||
@@ -188,0 +236,0 @@ super.load(x); |
@@ -18,3 +18,3 @@ "use strict"; | ||
ProjectPlanDurations[ProjectPlanDurations["LIFETIME"] = 9999] = "LIFETIME"; | ||
})(ProjectPlanDurations = exports.ProjectPlanDurations || (exports.ProjectPlanDurations = {})); | ||
})(ProjectPlanDurations || (exports.ProjectPlanDurations = ProjectPlanDurations = {})); | ||
var ProjectPlatforms; | ||
@@ -27,3 +27,3 @@ (function (ProjectPlatforms) { | ||
ProjectPlatforms["WINDOWS"] = "windows"; | ||
})(ProjectPlatforms = exports.ProjectPlatforms || (exports.ProjectPlatforms = {})); | ||
})(ProjectPlatforms || (exports.ProjectPlatforms = ProjectPlatforms = {})); | ||
var ProjectPlanTargets; | ||
@@ -33,3 +33,3 @@ (function (ProjectPlanTargets) { | ||
ProjectPlanTargets["TEAMS"] = "teams"; | ||
})(ProjectPlanTargets = exports.ProjectPlanTargets || (exports.ProjectPlanTargets = {})); | ||
})(ProjectPlanTargets || (exports.ProjectPlanTargets = ProjectPlanTargets = {})); | ||
/** | ||
@@ -42,2 +42,58 @@ * Table: `idea_projects_plans`. | ||
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) { | ||
@@ -44,0 +100,0 @@ super.load(x); |
@@ -16,2 +16,49 @@ "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) { | ||
@@ -18,0 +65,0 @@ super.load(x); |
@@ -10,2 +10,14 @@ "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) { | ||
@@ -12,0 +24,0 @@ super.load(x); |
@@ -9,2 +9,2 @@ "use strict"; | ||
PushNotificationsPlatforms["FCM"] = "FCM"; | ||
})(PushNotificationsPlatforms = exports.PushNotificationsPlatforms || (exports.PushNotificationsPlatforms = {})); | ||
})(PushNotificationsPlatforms || (exports.PushNotificationsPlatforms = PushNotificationsPlatforms = {})); |
@@ -9,2 +9,26 @@ "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) { | ||
@@ -11,0 +35,0 @@ super.load(x); |
@@ -9,2 +9,10 @@ "use strict"; | ||
class RCConfiguredFolder extends resource_model_1.Resource { | ||
/** | ||
* The id of the folder. | ||
*/ | ||
folderId; | ||
/** | ||
* The name of the folder. | ||
*/ | ||
name; | ||
load(x) { | ||
@@ -11,0 +19,0 @@ super.load(x); |
@@ -15,2 +15,31 @@ "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) { | ||
@@ -17,0 +46,0 @@ super.load(x); |
@@ -16,2 +16,42 @@ "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) { | ||
@@ -62,2 +102,2 @@ super.load(x); | ||
RCResourceFormats["PDF"] = "pdf"; | ||
})(RCResourceFormats = exports.RCResourceFormats || (exports.RCResourceFormats = {})); | ||
})(RCResourceFormats || (exports.RCResourceFormats = RCResourceFormats = {})); |
@@ -13,2 +13,2 @@ "use strict"; | ||
Sentiment["MIXED"] = "MIXED"; | ||
})(Sentiment = exports.Sentiment || (exports.Sentiment = {})); | ||
})(Sentiment || (exports.Sentiment = Sentiment = {})); |
@@ -9,2 +9,14 @@ "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) { | ||
@@ -11,0 +23,0 @@ super.load(x); |
@@ -9,2 +9,10 @@ "use strict"; | ||
class SignedURL extends resource_model_1.Resource { | ||
/** | ||
* The signed URL. | ||
*/ | ||
url; | ||
/** | ||
* An optional identificator for various purposes. | ||
*/ | ||
id; | ||
load(x) { | ||
@@ -11,0 +19,0 @@ super.load(x); |
@@ -9,2 +9,22 @@ "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) { | ||
@@ -11,0 +31,0 @@ super.load(x); |
@@ -9,2 +9,18 @@ "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) { | ||
@@ -11,0 +27,0 @@ super.load(x); |
@@ -10,2 +10,10 @@ "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) { | ||
@@ -12,0 +20,0 @@ super.load(x); |
@@ -9,2 +9,24 @@ "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) { | ||
@@ -11,0 +33,0 @@ super.load(x); |
@@ -34,3 +34,3 @@ import { markdown } from './markdown'; | ||
export declare const isEmpty: (field: any, fieldType?: isEmptyFieldTypes) => boolean; | ||
export declare type isEmptyFieldTypes = 'string' | 'number' | 'boolean' | 'object' | 'date' | 'email' | 'phone' | 'url' | 'domain'; | ||
export type isEmptyFieldTypes = 'string' | 'number' | 'boolean' | 'object' | 'date' | 'email' | 'phone' | 'url' | 'domain'; | ||
/** | ||
@@ -37,0 +37,0 @@ * Convert a markdown string to HTML. |
{ | ||
"name": "idea-toolbox", | ||
"version": "6.7.3", | ||
"version": "7.0.0", | ||
"description": "IDEA's utility functions", | ||
@@ -34,14 +34,12 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@tsconfig/node16": "^1.0.3", | ||
"@types/aws-lambda": "^8.10.101", | ||
"@tsconfig/node18": "^18.2.0", | ||
"@types/marked": "^4.0.3", | ||
"@types/node": "^18.6.3", | ||
"@types/node": "^18.17.4", | ||
"@types/validator": "^13.7.4", | ||
"@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"@typescript-eslint/parser": "^5.32.0", | ||
"aws-sdk": "^2.1187.0", | ||
"eslint": "^8.21.0", | ||
"typedoc": "^0.23.10", | ||
"typescript": "^4.7.4" | ||
"@typescript-eslint/eslint-plugin": "^5.47.0", | ||
"@typescript-eslint/parser": "^5.47.0", | ||
"eslint": "^8.46.0", | ||
"typedoc": "^0.24.8", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
272568
9
8456