Payload da exchange 'plurall::adaptative.indexer.assessment':
Assessement [{ "student_id": "1234 "event_id": "999" "event_name": " "abilities": [{ "ability_code": "MT_5E2.2", "content_code": "ACGTEFIMA5_OBEFIMA78_CN1EFIMA219_CN2EFIMA143",
Payload da exchange 'plurall::adaptative.indexer.assessment':
Assessement [{ "student_id": "1234 "event_id": "999" "event_name": " "abilities": [{ "ability_code": "MT_5E2.2", "content_code": "ACGTEFIMA5_OBEFIMA78_CN1EFIMA219_CN2EFIMA143",
| // Regex para validação de string no formato CNPJ | |
| export const regexCNPJ = /^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/ | |
| // Método de validação | |
| // Referência: https://pt.wikipedia.org/wiki/Cadastro_Nacional_da_Pessoa_Jur%C3%ADdica | |
| export function validCNPJ(value: string | number | number[] = '') { | |
| if (!value) return false | |
| // Aceita receber o valor como string, número ou array com todos os dígitos | |
| const isString = typeof value === 'string' |
| /** | |
| Code copyright Dustin Diaz and Ross Harmes, Pro JavaScript Design Patterns. | |
| **/ | |
| // Constructor. | |
| var Interface = function (name, methods) { | |
| if (arguments.length != 2) { | |
| throw new Error("Interface constructor called with " + arguments.length + "arguments, but expected exactly 2."); | |
| } | |
| this.name = name; |