-
-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): 0.1.23
- Loading branch information
Showing
23 changed files
with
265 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { generateRef } = require('../../utils/hash') | ||
|
||
const eventDocument = () => { | ||
return generateRef('_event_document_') | ||
} | ||
|
||
const REGEX_EVENT_DOCUMENT = /^_event_document__[\w\d]{8}-(?:[\w\d]{4}-){3}[\w\d]{12}$/ | ||
|
||
module.exports = { eventDocument, REGEX_EVENT_DOCUMENT } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { generateRef } = require('../../utils/hash') | ||
|
||
const eventLocation = () => { | ||
return generateRef('_event_location_') | ||
} | ||
|
||
const REGEX_EVENT_LOCATION = /^_event_location__[\w\d]{8}-(?:[\w\d]{4}-){3}[\w\d]{12}$/ | ||
|
||
module.exports = { eventLocation, REGEX_EVENT_LOCATION } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { generateRef } = require('../../utils/hash') | ||
|
||
const eventMedia = () => { | ||
return generateRef('_event_media_') | ||
} | ||
|
||
const REGEX_EVENT_MEDIA = /^_event_media__[\w\d]{8}-(?:[\w\d]{4}-){3}[\w\d]{12}$/ | ||
|
||
module.exports = { eventMedia, REGEX_EVENT_MEDIA } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { generateRef } = require('../../utils/hash') | ||
|
||
const eventVoiceNote = () => { | ||
return generateRef('_event_voice_note_') | ||
} | ||
|
||
const REGEX_EVENT_VOICE_NOTE = /^_event_voice_note__[\w\d]{8}-(?:[\w\d]{4}-){3}[\w\d]{12}$/ | ||
|
||
module.exports = { eventVoiceNote, REGEX_EVENT_VOICE_NOTE } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { generateRef } = require('../../utils/hash') | ||
|
||
const eventWelcome = () => { | ||
return generateRef('_event_welcome_') | ||
} | ||
|
||
module.exports = { eventWelcome } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const { eventDocument, REGEX_EVENT_DOCUMENT } = require('./eventDocument') | ||
const { eventLocation, REGEX_EVENT_LOCATION } = require('./eventLocation') | ||
const { eventMedia, REGEX_EVENT_MEDIA } = require('./eventMedia') | ||
const { eventVoiceNote, REGEX_EVENT_VOICE_NOTE } = require('./eventVoiceNote') | ||
const { eventWelcome } = require('./eventWelcome') | ||
|
||
const LIST_ALL = { | ||
WELCOME: eventWelcome(), | ||
MEDIA: eventMedia(), | ||
LOCATION: eventLocation(), | ||
DOCUMENT: eventDocument(), | ||
VOICE_NOTE: eventVoiceNote(), | ||
} | ||
|
||
const LIST_REGEX = { | ||
REGEX_EVENT_DOCUMENT, | ||
REGEX_EVENT_LOCATION, | ||
REGEX_EVENT_MEDIA, | ||
REGEX_EVENT_VOICE_NOTE, | ||
} | ||
|
||
module.exports = { LIST_ALL, LIST_REGEX } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const crypto = require('crypto') | ||
|
||
/** | ||
* Generamos un UUID unico con posibilidad de tener un prefijo | ||
* @param {*} prefix | ||
* @returns | ||
*/ | ||
const generateRefprovider = (prefix = false) => { | ||
const id = crypto.randomUUID() | ||
return prefix ? `${prefix}_${id}` : id | ||
} | ||
|
||
module.exports = { generateRefprovider } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.