mdz-enum 1.2.55 → 1.2.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -1 +1 @@
1
- #Enumerados Moderniza
1
+ #Enumerados Moderniza
@@ -0,0 +1,12 @@
1
+ export declare const SituacaoOrganizacao: {
2
+ Ativo: string;
3
+ Bloqueado: string;
4
+ Cancelado: string;
5
+ description(val: string): "Cancelado" | "enum not found" | "Ativo" | "Bloqueado";
6
+ };
7
+ export declare const TipoOrganizacao: {
8
+ Cliente: string;
9
+ Parceiro: string;
10
+ Entidade: string;
11
+ description(val: string): "enum not found" | "Cliente" | "Entidade" | "Parceiro";
12
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TipoOrganizacao = exports.SituacaoOrganizacao = void 0;
4
+ exports.SituacaoOrganizacao = {
5
+ Ativo: '1',
6
+ Bloqueado: '2',
7
+ Cancelado: '3',
8
+ description(val) {
9
+ switch (val) {
10
+ case this.Ativo:
11
+ return 'Ativo';
12
+ case this.Bloqueado:
13
+ return 'Bloqueado';
14
+ case this.Cancelado:
15
+ return 'Cancelado';
16
+ default:
17
+ return 'enum not found';
18
+ }
19
+ },
20
+ };
21
+ exports.TipoOrganizacao = {
22
+ Cliente: '1',
23
+ Parceiro: '2',
24
+ Entidade: '3',
25
+ description(val) {
26
+ switch (val) {
27
+ case this.Cliente:
28
+ return 'Cliente';
29
+ case this.Entidade:
30
+ return 'Entidade';
31
+ case this.Parceiro:
32
+ return 'Parceiro';
33
+ default:
34
+ return 'enum not found';
35
+ }
36
+ },
37
+ };
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "name": "mdz-enum",
3
- "version": "1.2.55",
4
- "description": "Enumerados Moderniza",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "publicar": "tsc && git add . && git commit -m \"commit automatico\" && git push origin main && npm publish"
9
- },
10
- "files": [
11
- "dist",
12
- "package.json",
13
- "README.md"
14
- ],
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/moderniza-modershop/mdz-enum"
18
- },
19
- "keywords": [],
20
- "author": "willian.moderniza",
21
- "license": "ISC",
22
- "bugs": {
23
- "url": "https://github.com/moderniza-dev/mdz-enum/issues"
24
- },
25
- "homepage": "https://github.com/moderniza-dev/mdz-enum#readme",
26
- "devDependencies": {
27
- "@types/node": "^16.9.1",
28
- "ts-node": "^10.2.1",
29
- "typescript": "^4.4.3"
30
- },
31
- "dependencies": {}
32
- }
33
-
1
+ {
2
+ "name": "mdz-enum",
3
+ "version": "1.2.56",
4
+ "description": "Enumerados Moderniza",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "publicar": "tsc && git add . && git commit -m \"commit automatico\" && git push origin main && npm publish"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "package.json",
13
+ "README.md"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/moderniza-modershop/mdz-enum"
18
+ },
19
+ "keywords": [],
20
+ "author": "willian.moderniza",
21
+ "license": "ISC",
22
+ "bugs": {
23
+ "url": "https://github.com/moderniza-dev/mdz-enum/issues"
24
+ },
25
+ "homepage": "https://github.com/moderniza-dev/mdz-enum#readme",
26
+ "devDependencies": {
27
+ "@types/node": "^16.9.1",
28
+ "ts-node": "^10.2.1",
29
+ "typescript": "^4.4.3"
30
+ },
31
+ "dependencies": {}
32
+ }
33
+