@navservice/assinatura 1.55.0 → 1.56.0
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.
|
@@ -48,14 +48,14 @@ export declare const schema_assinatura: import("drizzle-orm/sqlite-core").SQLite
|
|
|
48
48
|
tableName: "assinatura";
|
|
49
49
|
dataType: "string";
|
|
50
50
|
columnType: "SQLiteText";
|
|
51
|
-
data: "service-usuario" | "service-pages" | "service-assinatura" | "service-bucket";
|
|
51
|
+
data: "service-usuario" | "service-pages" | "service-assinatura" | "service-bucket" | "service-galio" | "service-oraculo";
|
|
52
52
|
driverParam: string;
|
|
53
53
|
notNull: true;
|
|
54
54
|
hasDefault: false;
|
|
55
55
|
isPrimaryKey: false;
|
|
56
56
|
isAutoincrement: false;
|
|
57
57
|
hasRuntimeDefault: false;
|
|
58
|
-
enumValues: ["service-usuario", "service-pages", "service-assinatura", "service-bucket"];
|
|
58
|
+
enumValues: ["service-usuario", "service-pages", "service-assinatura", "service-bucket", "service-galio", "service-oraculo"];
|
|
59
59
|
baseColumn: never;
|
|
60
60
|
identity: undefined;
|
|
61
61
|
generated: undefined;
|
package/build/es/index.js
CHANGED
|
@@ -15889,7 +15889,9 @@ const lib_axios = axios;
|
|
|
15889
15889
|
"service-usuario",
|
|
15890
15890
|
"service-pages",
|
|
15891
15891
|
"service-assinatura",
|
|
15892
|
-
"service-bucket"
|
|
15892
|
+
"service-bucket",
|
|
15893
|
+
"service-galio",
|
|
15894
|
+
"service-oraculo"
|
|
15893
15895
|
];
|
|
15894
15896
|
TypeControllerUsuario.AssinaturaStatusEnum = [
|
|
15895
15897
|
"active",
|
|
@@ -15914,6 +15916,12 @@ const lib_axios = axios;
|
|
|
15914
15916
|
"service-pages": [
|
|
15915
15917
|
"padrao"
|
|
15916
15918
|
],
|
|
15919
|
+
"service-galio": [
|
|
15920
|
+
"padrao"
|
|
15921
|
+
],
|
|
15922
|
+
"service-oraculo": [
|
|
15923
|
+
"padrao"
|
|
15924
|
+
],
|
|
15917
15925
|
"service-bucket": [
|
|
15918
15926
|
"padrao"
|
|
15919
15927
|
]
|
|
@@ -15958,7 +15966,9 @@ var _usuario_TypeControllerUsuario;
|
|
|
15958
15966
|
v4.literal("INVALID_TOKEN"),
|
|
15959
15967
|
v4.literal("NOT_FOUND"),
|
|
15960
15968
|
v4.literal("SUCCESS_FILE"),
|
|
15961
|
-
v4.literal("DATABASE_ERROR")
|
|
15969
|
+
v4.literal("DATABASE_ERROR"),
|
|
15970
|
+
v4.literal("BUSINESS_RULE_VIOLATION"),
|
|
15971
|
+
v4.literal("PLAN_FORBIDDEN")
|
|
15962
15972
|
]);
|
|
15963
15973
|
v4.object({
|
|
15964
15974
|
status: StatusSchema,
|
|
@@ -16571,6 +16581,39 @@ class _hooks {
|
|
|
16571
16581
|
localStorage.setItem("theme", "light");
|
|
16572
16582
|
}
|
|
16573
16583
|
}
|
|
16584
|
+
use_set_show_component() {
|
|
16585
|
+
function aplicarVisibilidadeElemento(el) {
|
|
16586
|
+
const valor = el.getAttribute("set-show-component");
|
|
16587
|
+
if ("ocultar" === valor) el.style.display = "none";
|
|
16588
|
+
else if ("exibir" === valor) el.style.display = "";
|
|
16589
|
+
}
|
|
16590
|
+
function aplicarVisibilidade(node = document) {
|
|
16591
|
+
const elementos = node.querySelectorAll("[set-show-component]");
|
|
16592
|
+
elementos.forEach(aplicarVisibilidadeElemento);
|
|
16593
|
+
}
|
|
16594
|
+
document.addEventListener("DOMContentLoaded", ()=>{
|
|
16595
|
+
aplicarVisibilidade();
|
|
16596
|
+
const observer = new MutationObserver((mutations)=>{
|
|
16597
|
+
mutations.forEach((mutation)=>{
|
|
16598
|
+
mutation.addedNodes.forEach((node)=>{
|
|
16599
|
+
if (node instanceof HTMLElement) {
|
|
16600
|
+
if (node.hasAttribute("set-show-component")) aplicarVisibilidadeElemento(node);
|
|
16601
|
+
aplicarVisibilidade(node);
|
|
16602
|
+
}
|
|
16603
|
+
});
|
|
16604
|
+
if ("attributes" === mutation.type && mutation.target instanceof HTMLElement && "set-show-component" === mutation.attributeName) aplicarVisibilidadeElemento(mutation.target);
|
|
16605
|
+
});
|
|
16606
|
+
});
|
|
16607
|
+
observer.observe(document.body, {
|
|
16608
|
+
childList: true,
|
|
16609
|
+
subtree: true,
|
|
16610
|
+
attributes: true,
|
|
16611
|
+
attributeFilter: [
|
|
16612
|
+
"set-show-component"
|
|
16613
|
+
]
|
|
16614
|
+
});
|
|
16615
|
+
});
|
|
16616
|
+
}
|
|
16574
16617
|
}
|
|
16575
16618
|
const utils_hooks = new _hooks;
|
|
16576
16619
|
const _environment = class {
|
|
@@ -12,6 +12,8 @@ declare namespace TypeControllerAssinatura {
|
|
|
12
12
|
"service-pages": "service-pages";
|
|
13
13
|
"service-assinatura": "service-assinatura";
|
|
14
14
|
"service-bucket": "service-bucket";
|
|
15
|
+
"service-galio": "service-galio";
|
|
16
|
+
"service-oraculo": "service-oraculo";
|
|
15
17
|
}>;
|
|
16
18
|
data_criacao: z4.ZodNumber;
|
|
17
19
|
data_atualizacao: z4.ZodOptional<z4.ZodNullable<z4.ZodNumber>>;
|
|
@@ -57,6 +59,8 @@ declare namespace TypeControllerAssinatura {
|
|
|
57
59
|
"service-pages": "service-pages";
|
|
58
60
|
"service-assinatura": "service-assinatura";
|
|
59
61
|
"service-bucket": "service-bucket";
|
|
62
|
+
"service-galio": "service-galio";
|
|
63
|
+
"service-oraculo": "service-oraculo";
|
|
60
64
|
}>;
|
|
61
65
|
plano_name: z4.ZodEnum<{
|
|
62
66
|
FREE: "FREE";
|
|
@@ -146,6 +150,8 @@ declare namespace TypeControllerAssinatura {
|
|
|
146
150
|
"service-pages": "service-pages";
|
|
147
151
|
"service-assinatura": "service-assinatura";
|
|
148
152
|
"service-bucket": "service-bucket";
|
|
153
|
+
"service-galio": "service-galio";
|
|
154
|
+
"service-oraculo": "service-oraculo";
|
|
149
155
|
}>;
|
|
150
156
|
}, z4.core.$strip>;
|
|
151
157
|
}, z4.core.$strip>;
|
|
@@ -11,6 +11,8 @@ declare namespace TypeControllerCreditos {
|
|
|
11
11
|
"service-pages": "service-pages";
|
|
12
12
|
"service-assinatura": "service-assinatura";
|
|
13
13
|
"service-bucket": "service-bucket";
|
|
14
|
+
"service-galio": "service-galio";
|
|
15
|
+
"service-oraculo": "service-oraculo";
|
|
14
16
|
}>;
|
|
15
17
|
tipo: z4.ZodEnum<{
|
|
16
18
|
entrada: "entrada";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navservice/assinatura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.56.0",
|
|
4
4
|
"description": "Service de autenticação de usuários unificado",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/lib/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"build": "rslib build"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@navservice/usuario": "^1.
|
|
23
|
+
"@navservice/usuario": "^1.53.0",
|
|
24
24
|
"react": "^19.0.0",
|
|
25
25
|
"react-dom": "^19.0.0",
|
|
26
26
|
"react-router-dom": "^7.0.0"
|