Catalog npm
PACKAGE EXPLORERView in registry

3map-models

npm

It's the node package that defines all models for 3Map application.

3map
Versions collected67
Direct dependencies7From release 2.0.12
Last observed20 Oct, 19:48 UTC

README

Current package documentation

3Map-models

It's the node package that defines all models for 3Map application.

It manages the serialization of DTOs (Data Transfer Objects) and contains common functions. It is meant to be used both on the server and on the client.

Example call for typedRecordDecoder


const projectList = [...]

const formSpecificIdList = [
  "dd94707b-902c-43b3-b5a8-98064a843180",
  "0b8cdbe9-e801-4fac-bdca-0550b3ec0dee",
  "cf478952-8809-4835-a2c0-3da45c0ea98b",
  "7e4f1526-6339-437d-89b9-af43ddf9a927",
  "dd606f8d-527e-4709-924b-2d57d4784337",
  "6ed151b6-f782-4c8a-a8fd-b147cab904d5",
];

const fieldTypes = {
  "Weather station": "TEXT_REQUIRED",
  "Weather condition": "LIST",
  "Date of measurement": "DATE_REQUIRED",
  "Rain (mm/day)": "NUMBER",
  "Temperature MAX (°C)": "NUMBER",
  "Temperature MIN (°C)": "NUMBER",
  "Traditional observations/local knowledge": "TEXT",
  "Weather impacts": "TEXT",
  "Actions to take": "TEXT",
  "Actions taken": "TEXT",
  "Additional comments": "TEXT",
} as const;

const fieldTypeAlias = {
  "Date of measurement": ["Date of measure"],
  "Traditional observations/local knowledge": [
    "Traditional observations / Predictions",
  ],
  "Actions to take": ["Action to take"],
  "Actions taken": ["Action taken"],
  "Additional comments": ["Remarks"],
};

const typedDecoder = typedRecordDecoder(
  projectList,
  formSpecificIdList,
  fieldTypes,
  fieldTypeAlias
);

3Map API endpoints

routemethodauthreqDtoresDto
https://3map-server.trimweb.it/pingGETResEmptySuccessful
https://3map-server.trimweb.it/auth/signUpPOSTReqSignUpResEmptySuccessful
https://3map-server.trimweb.it/auth/adminLoginPOSTReqAdminTokenResAdminToken
https://3map-server.trimweb.it/auth/verifyUser/:tokenGET
https://3map-server.trimweb.it/auth/requestLinkChangePswPOSTReqLinkChangePsw
https://3map-server.trimweb.it/auth/changePsw/:tokenPOSTReqAdminToken
https://3map-server.trimweb.it/auth/projectLogin/:projectNameGETadminResProjectToken
https://3map-server.trimweb.it/admin/addProjectPOSTadminProjectResEmptySuccessful
https://3map-server.trimweb.it/admin/collabsGETadminResCollabs
https://3map-server.trimweb.it/admin/getUsernameList/:strGETadminResUsernameList
https://3map-server.trimweb.it/admin/getProject/:projectNameGETadminProject
https://3map-server.trimweb.it/admin/deleteProject/:projectNameDELETEadminResEmptySuccessful
https://3map-server.trimweb.it/project/getProjectGETprojectProject
https://3map-server.trimweb.it/project/validateTokenGETprojectResValidateToken
https://3map-server.trimweb.it/project/getRecordListGETprojectResRecordList
https://3map-server.trimweb.it/project/queryRecordListPOSTprojectReqQueryRecordListResRecordList
https://3map-server.trimweb.it/project/queryAvailableDatesPOSTprojectReqQueryRecordListResQueryAvailableDates
https://3map-server.trimweb.it/project/deleteRecord/:recordIdDELETEprojectResEmptySuccessful
https://3map-server.trimweb.it/project/deleteRecordListDELETEprojectReqDeleteRecordIdListResEmptySuccessful
https://3map-server.trimweb.it/project/uploadRecordListPOSTprojectReqUploadRecordListResEmptySuccessful
https://3map-server.trimweb.it/static/uploadFilesAdmin/:projectNamePOSTadminFILEResEmptySuccessful
https://3map-server.trimweb.it/static/uploadFilesProjectPOSTprojectFILEResEmptySuccessful
https://3map-server.trimweb.it/static/uploadSingleFileAdmin/:projectNamePOSTadminFILEResEmptySuccessful
https://3map-server.trimweb.it/static/uploadSingleFileProjectPOSTprojectFILEResEmptySuccessful
https://3map-server.trimweb.it/static/:projectName/admin/:fileNameGETFILE
https://3map-server.trimweb.it/static/:projectName/project/:fileNameGETFILE

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 67

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.2619 Mar 20217
1.0.255 Jan 20217
1.0.243 Dec 20207
1.0.231 Dec 20207
1.0.221 Dec 20207
1.0.2115 Oct 20207
1.0.2012 Oct 20207
1.0.198 Oct 20207
1.0.187 Oct 20207
1.0.176 Oct 20207
1.0.166 Oct 20207
1.0.1515 Jan 20209
1.0.1428 Jun 20199
1.0.1328 Jun 20199
1.0.1210 Jun 20199
1.0.111 Jun 20199
1.0.1030 May 20199
1.0.929 May 20197
1.0.829 May 20197
1.0.729 May 20197

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

NOT_FOUND
TriM-translate-into-meaning/3Map-models

Shared repository data · GitLab

License detected in repository
Not collected

Repository

NOT_FOUND
TriM-translate-into-meaning/3mapsystem/3Map-models

Shared repository data · GitLab

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e5ee39b07e0920512c83c24d5ca3eaeebb5a8d1de03efa297820191776cda628