Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

3map-models

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

3map
Published15 May 2019
Direct dependencies5
Transitive dependenciesNot calculated

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.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^24.0.13development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^24.8.0development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^24.0.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
^5.16.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.4.5development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-ne8o0GfuMynmkCImlxwcZZD4zJ3fHeEdtWGHRPj/t7aMs8mVCXbxyDmb6DLAcTqsaj303nKR863xBmoVAVEG1w==",
  "shasum": "dddd49ee125540411e142cb5a9e50c4c8d0d03b3",
  "tarball": "https://registry.npmjs.org/3map-models/-/3map-models-1.0.0.tgz",
  "fileCount": 11,
  "unpackedSize": 2611,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2+hHCRA9TVsSAnZWagAASVIQAI6aFLEQGQOAsj6y0mzX\nsJIazB1L5UcjSERdecFT5NXJ+A6ONQqccbXZejYWt7wPuXT+hn7Ftm/6laX2\nAvdxw+vSVdQ32YgoQEFhw+2u1yFytHeHqT08BA9lyvzwUKYJhT0okmtLa/ND\nAn473zU6SV1T9rhT4qN4tIIh91gSo9maqEDHHGZo0DDIrJx3Q7QllL7GiRzh\nS/CJbjA10ejl7JrLj2h+Q3ojHSxUB2cip52nnbqOBXEDEHdkZKbyHjwnKrcF\nCZP3L3rR0/M61u1wLjfyXmEJw5YE6JTKhO5i3TZgSmk2QV7tWOBg1oA/86cx\nHJQ3TMtHkUzKfmo9Ydc4QmFw2J4kgLhX+N5ylqjK+Xlra4PTShZ2BwID74In\nBKATWLAohSeegBNCNSnCPdTZKME7yoSY0u6GVNnvFO5Zo7sqhJLbesJOCDCJ\nwxffGaVBsFMfOe6IEtM4GcjqBrVzfSaUGQFI5HryZrGkYtZZOO5C7Qm9Xchs\nbPIrw2mG6wLg5G1ta3xjKuKhMkxt/K6hdkeijh4VCscM+pia8iLt2C1Rz5In\nhXvZ74tf12x+y/BSdQ7u/hhJZxL9v6DQHQdPVzUZ9AmliVi24kjlzHrHQL9E\nDwBta5UPYuCiy4FttOA2FfQKsCO9pZv4c68O1ObtGdlAr0dHHuewnlNfOdEn\noijS\r\n=w8r/\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIAmcmhHO+yYe1d1tjMS/9XF/ELB73oUw4V94u5hXrLDCAiAWANWUGPm4cTBhxn1bjuRnaLhbFeRCSwgDhRcOThwDJQ=="
    }
  ]
}

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_version:23d68d265fed2adbbc5e23d5071d4c59cd2ad04f8e87feeeb3e7a9883b50b918

Other collected versions

2.0.1216 May2.0.119 May2.0.1022 Apr2.0.917 Apr2.0.828 Mar2.0.727 MarView all collected versions →