@navservice/assinatura 1.33.0 → 1.35.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.
- package/build/es/index.js +51 -47
- package/build/es/shared/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/build/lib/backend/schema/schema_assinatura.d.ts +0 -324
- package/build/lib/biblioteca/src/componentes/checkout/ButtonGerarUrl.d.ts +0 -7
- package/build/lib/biblioteca/src/componentes/checkout/CheckoutAssinaturaStripe.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/checkout/Stype.d.ts +0 -1
- package/build/lib/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +0 -5
- package/build/lib/biblioteca/src/componentes/geral/TopTabs/index.d.ts +0 -10
- package/build/lib/biblioteca/src/config_env/index.d.ts +0 -9
- package/build/lib/biblioteca/src/contexto/contexto_assinatura.d.ts +0 -31
- package/build/lib/biblioteca/src/index.d.ts +0 -2
- package/build/lib/biblioteca/src/utils/_api.d.ts +0 -41
- package/build/lib/biblioteca/src/utils/_data.d.ts +0 -11
- package/build/lib/biblioteca/src/utils/_form.d.ts +0 -11
- package/build/lib/biblioteca/src/utils/_geral.d.ts +0 -9
- package/build/lib/biblioteca/src/utils/_hooks.d.ts +0 -5
- package/build/lib/biblioteca/src/utils/_local_storage.d.ts +0 -8
- package/build/lib/biblioteca/src/utils/_session_storage.d.ts +0 -14
- package/build/lib/biblioteca/src/utils/_update_context.d.ts +0 -21
- package/build/lib/biblioteca/src/utils/utils.d.ts +0 -108
- package/build/lib/index.js +0 -461
- package/build/lib/shared/configuracoes/_sistema.d.ts +0 -49
- package/build/lib/shared/configuracoes/_theme.d.ts +0 -91
- package/build/lib/shared/configuracoes/index.d.ts +0 -142
- package/build/lib/shared/types/controller/assinatura.d.ts +0 -229
- package/build/lib/shared/types/controller/cliente.d.ts +0 -112
- package/build/lib/shared/types/geral/type_response.d.ts +0 -54
- package/build/lib/shared/types/index.d.ts +0 -47
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
|
|
2
|
-
export declare const AssinaturaStatusEnum: readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"];
|
|
3
|
-
export declare const schema_assinatura: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
4
|
-
name: "assinatura";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
8
|
-
name: "_id";
|
|
9
|
-
tableName: "assinatura";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
columnType: "SQLiteText";
|
|
12
|
-
data: string;
|
|
13
|
-
driverParam: string;
|
|
14
|
-
notNull: true;
|
|
15
|
-
hasDefault: true;
|
|
16
|
-
isPrimaryKey: true;
|
|
17
|
-
isAutoincrement: false;
|
|
18
|
-
hasRuntimeDefault: true;
|
|
19
|
-
enumValues: [string, ...string[]];
|
|
20
|
-
baseColumn: never;
|
|
21
|
-
identity: undefined;
|
|
22
|
-
generated: undefined;
|
|
23
|
-
}, {}, {
|
|
24
|
-
length: number | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
usuario_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
27
|
-
name: "usuario_id";
|
|
28
|
-
tableName: "assinatura";
|
|
29
|
-
dataType: "string";
|
|
30
|
-
columnType: "SQLiteText";
|
|
31
|
-
data: string;
|
|
32
|
-
driverParam: string;
|
|
33
|
-
notNull: true;
|
|
34
|
-
hasDefault: false;
|
|
35
|
-
isPrimaryKey: false;
|
|
36
|
-
isAutoincrement: false;
|
|
37
|
-
hasRuntimeDefault: false;
|
|
38
|
-
enumValues: [string, ...string[]];
|
|
39
|
-
baseColumn: never;
|
|
40
|
-
identity: undefined;
|
|
41
|
-
generated: undefined;
|
|
42
|
-
}, {}, {
|
|
43
|
-
length: number | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
usuario_tipo: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
46
|
-
name: "usuario_tipo";
|
|
47
|
-
tableName: "assinatura";
|
|
48
|
-
dataType: "string";
|
|
49
|
-
columnType: "SQLiteText";
|
|
50
|
-
data: "padrao";
|
|
51
|
-
driverParam: string;
|
|
52
|
-
notNull: true;
|
|
53
|
-
hasDefault: false;
|
|
54
|
-
isPrimaryKey: false;
|
|
55
|
-
isAutoincrement: false;
|
|
56
|
-
hasRuntimeDefault: false;
|
|
57
|
-
enumValues: ["padrao"];
|
|
58
|
-
baseColumn: never;
|
|
59
|
-
identity: undefined;
|
|
60
|
-
generated: undefined;
|
|
61
|
-
}, {}, {
|
|
62
|
-
length: number | undefined;
|
|
63
|
-
}>;
|
|
64
|
-
app: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
65
|
-
name: "app";
|
|
66
|
-
tableName: "assinatura";
|
|
67
|
-
dataType: "string";
|
|
68
|
-
columnType: "SQLiteText";
|
|
69
|
-
data: "service-usuario" | "service-financeiro" | "service-pages-ai";
|
|
70
|
-
driverParam: string;
|
|
71
|
-
notNull: true;
|
|
72
|
-
hasDefault: false;
|
|
73
|
-
isPrimaryKey: false;
|
|
74
|
-
isAutoincrement: false;
|
|
75
|
-
hasRuntimeDefault: false;
|
|
76
|
-
enumValues: ["service-usuario", "service-financeiro", "service-pages-ai"];
|
|
77
|
-
baseColumn: never;
|
|
78
|
-
identity: undefined;
|
|
79
|
-
generated: undefined;
|
|
80
|
-
}, {}, {
|
|
81
|
-
length: number | undefined;
|
|
82
|
-
}>;
|
|
83
|
-
data_criacao: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
84
|
-
name: "data_criacao";
|
|
85
|
-
tableName: "assinatura";
|
|
86
|
-
dataType: "number";
|
|
87
|
-
columnType: "SQLiteInteger";
|
|
88
|
-
data: number;
|
|
89
|
-
driverParam: number;
|
|
90
|
-
notNull: true;
|
|
91
|
-
hasDefault: false;
|
|
92
|
-
isPrimaryKey: false;
|
|
93
|
-
isAutoincrement: false;
|
|
94
|
-
hasRuntimeDefault: false;
|
|
95
|
-
enumValues: undefined;
|
|
96
|
-
baseColumn: never;
|
|
97
|
-
identity: undefined;
|
|
98
|
-
generated: undefined;
|
|
99
|
-
}, {}, {}>;
|
|
100
|
-
data_atualizacao: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
101
|
-
name: "data_atualizacao";
|
|
102
|
-
tableName: "assinatura";
|
|
103
|
-
dataType: "number";
|
|
104
|
-
columnType: "SQLiteInteger";
|
|
105
|
-
data: number;
|
|
106
|
-
driverParam: number;
|
|
107
|
-
notNull: false;
|
|
108
|
-
hasDefault: false;
|
|
109
|
-
isPrimaryKey: false;
|
|
110
|
-
isAutoincrement: false;
|
|
111
|
-
hasRuntimeDefault: false;
|
|
112
|
-
enumValues: undefined;
|
|
113
|
-
baseColumn: never;
|
|
114
|
-
identity: undefined;
|
|
115
|
-
generated: undefined;
|
|
116
|
-
}, {}, {}>;
|
|
117
|
-
periodo_inicio: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
118
|
-
name: "periodo_inicio";
|
|
119
|
-
tableName: "assinatura";
|
|
120
|
-
dataType: "number";
|
|
121
|
-
columnType: "SQLiteInteger";
|
|
122
|
-
data: number;
|
|
123
|
-
driverParam: number;
|
|
124
|
-
notNull: false;
|
|
125
|
-
hasDefault: false;
|
|
126
|
-
isPrimaryKey: false;
|
|
127
|
-
isAutoincrement: false;
|
|
128
|
-
hasRuntimeDefault: false;
|
|
129
|
-
enumValues: undefined;
|
|
130
|
-
baseColumn: never;
|
|
131
|
-
identity: undefined;
|
|
132
|
-
generated: undefined;
|
|
133
|
-
}, {}, {}>;
|
|
134
|
-
periodo_fim: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
135
|
-
name: "periodo_fim";
|
|
136
|
-
tableName: "assinatura";
|
|
137
|
-
dataType: "number";
|
|
138
|
-
columnType: "SQLiteInteger";
|
|
139
|
-
data: number;
|
|
140
|
-
driverParam: number;
|
|
141
|
-
notNull: false;
|
|
142
|
-
hasDefault: false;
|
|
143
|
-
isPrimaryKey: false;
|
|
144
|
-
isAutoincrement: false;
|
|
145
|
-
hasRuntimeDefault: false;
|
|
146
|
-
enumValues: undefined;
|
|
147
|
-
baseColumn: never;
|
|
148
|
-
identity: undefined;
|
|
149
|
-
generated: undefined;
|
|
150
|
-
}, {}, {}>;
|
|
151
|
-
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
152
|
-
name: "status";
|
|
153
|
-
tableName: "assinatura";
|
|
154
|
-
dataType: "string";
|
|
155
|
-
columnType: "SQLiteText";
|
|
156
|
-
data: "canceled" | "incomplete" | "paused" | "active" | "incomplete_expired" | "past_due" | "trialing" | "unpaid";
|
|
157
|
-
driverParam: string;
|
|
158
|
-
notNull: true;
|
|
159
|
-
hasDefault: true;
|
|
160
|
-
isPrimaryKey: false;
|
|
161
|
-
isAutoincrement: false;
|
|
162
|
-
hasRuntimeDefault: false;
|
|
163
|
-
enumValues: ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"];
|
|
164
|
-
baseColumn: never;
|
|
165
|
-
identity: undefined;
|
|
166
|
-
generated: undefined;
|
|
167
|
-
}, {}, {
|
|
168
|
-
length: number | undefined;
|
|
169
|
-
}>;
|
|
170
|
-
valor: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
171
|
-
name: "valor";
|
|
172
|
-
tableName: "assinatura";
|
|
173
|
-
dataType: "number";
|
|
174
|
-
columnType: "SQLiteInteger";
|
|
175
|
-
data: number;
|
|
176
|
-
driverParam: number;
|
|
177
|
-
notNull: true;
|
|
178
|
-
hasDefault: false;
|
|
179
|
-
isPrimaryKey: false;
|
|
180
|
-
isAutoincrement: false;
|
|
181
|
-
hasRuntimeDefault: false;
|
|
182
|
-
enumValues: undefined;
|
|
183
|
-
baseColumn: never;
|
|
184
|
-
identity: undefined;
|
|
185
|
-
generated: undefined;
|
|
186
|
-
}, {}, {}>;
|
|
187
|
-
moeda: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
188
|
-
name: "moeda";
|
|
189
|
-
tableName: "assinatura";
|
|
190
|
-
dataType: "string";
|
|
191
|
-
columnType: "SQLiteText";
|
|
192
|
-
data: string;
|
|
193
|
-
driverParam: string;
|
|
194
|
-
notNull: true;
|
|
195
|
-
hasDefault: true;
|
|
196
|
-
isPrimaryKey: false;
|
|
197
|
-
isAutoincrement: false;
|
|
198
|
-
hasRuntimeDefault: false;
|
|
199
|
-
enumValues: [string, ...string[]];
|
|
200
|
-
baseColumn: never;
|
|
201
|
-
identity: undefined;
|
|
202
|
-
generated: undefined;
|
|
203
|
-
}, {}, {
|
|
204
|
-
length: number | undefined;
|
|
205
|
-
}>;
|
|
206
|
-
plano_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
207
|
-
name: "plano_id";
|
|
208
|
-
tableName: "assinatura";
|
|
209
|
-
dataType: "string";
|
|
210
|
-
columnType: "SQLiteText";
|
|
211
|
-
data: string;
|
|
212
|
-
driverParam: string;
|
|
213
|
-
notNull: false;
|
|
214
|
-
hasDefault: false;
|
|
215
|
-
isPrimaryKey: false;
|
|
216
|
-
isAutoincrement: false;
|
|
217
|
-
hasRuntimeDefault: false;
|
|
218
|
-
enumValues: [string, ...string[]];
|
|
219
|
-
baseColumn: never;
|
|
220
|
-
identity: undefined;
|
|
221
|
-
generated: undefined;
|
|
222
|
-
}, {}, {
|
|
223
|
-
length: number | undefined;
|
|
224
|
-
}>;
|
|
225
|
-
gateway_subscription_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
226
|
-
name: "gateway_subscription_id";
|
|
227
|
-
tableName: "assinatura";
|
|
228
|
-
dataType: "string";
|
|
229
|
-
columnType: "SQLiteText";
|
|
230
|
-
data: string;
|
|
231
|
-
driverParam: string;
|
|
232
|
-
notNull: false;
|
|
233
|
-
hasDefault: false;
|
|
234
|
-
isPrimaryKey: false;
|
|
235
|
-
isAutoincrement: false;
|
|
236
|
-
hasRuntimeDefault: false;
|
|
237
|
-
enumValues: [string, ...string[]];
|
|
238
|
-
baseColumn: never;
|
|
239
|
-
identity: undefined;
|
|
240
|
-
generated: undefined;
|
|
241
|
-
}, {}, {
|
|
242
|
-
length: number | undefined;
|
|
243
|
-
}>;
|
|
244
|
-
gateway_customer_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
245
|
-
name: "gateway_customer_id";
|
|
246
|
-
tableName: "assinatura";
|
|
247
|
-
dataType: "string";
|
|
248
|
-
columnType: "SQLiteText";
|
|
249
|
-
data: string;
|
|
250
|
-
driverParam: string;
|
|
251
|
-
notNull: false;
|
|
252
|
-
hasDefault: false;
|
|
253
|
-
isPrimaryKey: false;
|
|
254
|
-
isAutoincrement: false;
|
|
255
|
-
hasRuntimeDefault: false;
|
|
256
|
-
enumValues: [string, ...string[]];
|
|
257
|
-
baseColumn: never;
|
|
258
|
-
identity: undefined;
|
|
259
|
-
generated: undefined;
|
|
260
|
-
}, {}, {
|
|
261
|
-
length: number | undefined;
|
|
262
|
-
}>;
|
|
263
|
-
ativo: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
264
|
-
name: "ativo";
|
|
265
|
-
tableName: "assinatura";
|
|
266
|
-
dataType: "number";
|
|
267
|
-
columnType: "SQLiteInteger";
|
|
268
|
-
data: 0 | 1;
|
|
269
|
-
driverParam: number;
|
|
270
|
-
notNull: true;
|
|
271
|
-
hasDefault: true;
|
|
272
|
-
isPrimaryKey: false;
|
|
273
|
-
isAutoincrement: false;
|
|
274
|
-
hasRuntimeDefault: false;
|
|
275
|
-
enumValues: undefined;
|
|
276
|
-
baseColumn: never;
|
|
277
|
-
identity: undefined;
|
|
278
|
-
generated: undefined;
|
|
279
|
-
}, {}, {
|
|
280
|
-
$type: 0 | 1;
|
|
281
|
-
}>;
|
|
282
|
-
price_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
283
|
-
name: "price_id";
|
|
284
|
-
tableName: "assinatura";
|
|
285
|
-
dataType: "string";
|
|
286
|
-
columnType: "SQLiteText";
|
|
287
|
-
data: string;
|
|
288
|
-
driverParam: string;
|
|
289
|
-
notNull: false;
|
|
290
|
-
hasDefault: false;
|
|
291
|
-
isPrimaryKey: false;
|
|
292
|
-
isAutoincrement: false;
|
|
293
|
-
hasRuntimeDefault: false;
|
|
294
|
-
enumValues: [string, ...string[]];
|
|
295
|
-
baseColumn: never;
|
|
296
|
-
identity: undefined;
|
|
297
|
-
generated: undefined;
|
|
298
|
-
}, {}, {
|
|
299
|
-
length: number | undefined;
|
|
300
|
-
}>;
|
|
301
|
-
stripe_latest_invoice_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
302
|
-
name: "stripe_latest_invoice_id";
|
|
303
|
-
tableName: "assinatura";
|
|
304
|
-
dataType: "string";
|
|
305
|
-
columnType: "SQLiteText";
|
|
306
|
-
data: string;
|
|
307
|
-
driverParam: string;
|
|
308
|
-
notNull: false;
|
|
309
|
-
hasDefault: false;
|
|
310
|
-
isPrimaryKey: false;
|
|
311
|
-
isAutoincrement: false;
|
|
312
|
-
hasRuntimeDefault: false;
|
|
313
|
-
enumValues: [string, ...string[]];
|
|
314
|
-
baseColumn: never;
|
|
315
|
-
identity: undefined;
|
|
316
|
-
generated: undefined;
|
|
317
|
-
}, {}, {
|
|
318
|
-
length: number | undefined;
|
|
319
|
-
}>;
|
|
320
|
-
};
|
|
321
|
-
dialect: "sqlite";
|
|
322
|
-
}>;
|
|
323
|
-
export type AssinaturaSelect = InferSelectModel<typeof schema_assinatura>;
|
|
324
|
-
export type AssinaturaInsert = InferInsertModel<typeof schema_assinatura>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import t from "../../../../shared/types";
|
|
2
|
-
interface ButtonGerarUrlProps {
|
|
3
|
-
input: t.Controller.Assinatura.CriarCheckoutSession.Input;
|
|
4
|
-
label?: string;
|
|
5
|
-
}
|
|
6
|
-
export default function ButtonGerarUrl({ input, label }: ButtonGerarUrlProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function CheckoutAssinaturaStripe(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function CheckoutStripe(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
type TabItem = {
|
|
3
|
-
title: string;
|
|
4
|
-
content: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
type TopTabNavigationProps = {
|
|
7
|
-
tabs: TabItem[];
|
|
8
|
-
};
|
|
9
|
-
declare const TopTabNavigation: React.FC<TopTabNavigationProps>;
|
|
10
|
-
export default TopTabNavigation;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface TypesConfigEnv {
|
|
2
|
-
SET_PUBLIC_BASE_URL_BACKEND_FINANCEIRO: string;
|
|
3
|
-
}
|
|
4
|
-
declare class config_env_financeiro {
|
|
5
|
-
private static SET_PUBLIC_BASE_URL_BACKEND_FINANCEIRO;
|
|
6
|
-
static init(config: TypesConfigEnv): void;
|
|
7
|
-
static get PUBLIC_BASE_URL_BACKEND_FINANCEIRO(): string;
|
|
8
|
-
}
|
|
9
|
-
export default config_env_financeiro;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import t from "../../../shared/types";
|
|
2
|
-
interface AssinaturaState {
|
|
3
|
-
assinaturas: ReturnType<typeof t.Controller.Assinatura.AssinaturaBaseSchema.parse>[];
|
|
4
|
-
assinaturaSelecionada: t.Controller.Assinatura.BuscarPeloId.Output | null;
|
|
5
|
-
paginacao: t.Controller.Assinatura.BuscarPeloFiltro.Output["data"]["paginacao"];
|
|
6
|
-
produto: {
|
|
7
|
-
data: t.Controller.Assinatura.BuscarProdutoStripe.Output['data'];
|
|
8
|
-
loading: boolean;
|
|
9
|
-
periodo_selecionado: string | null;
|
|
10
|
-
produto_id: string | null;
|
|
11
|
-
periodos: string[];
|
|
12
|
-
};
|
|
13
|
-
checkout: t.Controller.Assinatura.CriarCheckoutSession.Output | null;
|
|
14
|
-
loading: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare class contexto_assinatura {
|
|
17
|
-
api: {
|
|
18
|
-
criar: (props: t.Controller.Assinatura.Criar.Input) => Promise<t.Controller.Assinatura.Criar.Output | null>;
|
|
19
|
-
buscar_pelo_id: (props: t.Controller.Assinatura.BuscarPeloId.Input) => Promise<t.Controller.Assinatura.BuscarPeloId.Output | null>;
|
|
20
|
-
buscar_pelo_filtro: (props: t.Controller.Assinatura.BuscarPeloFiltro.Input, setLoading?: boolean) => Promise<t.Controller.Assinatura.BuscarPeloFiltro.Output | null>;
|
|
21
|
-
atualizar_pelo_id: (props: t.Controller.Assinatura.AtualizarPeloId.Input) => Promise<t.Controller.Assinatura.AtualizarPeloId.Output | null>;
|
|
22
|
-
deletar_pelo_id: (props: t.Controller.Assinatura.DeletarPeloId.Input) => Promise<t.Controller.Assinatura.DeletarPeloId.Output | null>;
|
|
23
|
-
buscar_produto_stripe: () => Promise<void>;
|
|
24
|
-
criar_checkout_session: (props: t.Controller.Assinatura.CriarCheckoutSession.Input) => Promise<t.Controller.Assinatura.CriarCheckoutSession.Output | null>;
|
|
25
|
-
};
|
|
26
|
-
get get_jsx(): AssinaturaState;
|
|
27
|
-
get get_state(): AssinaturaState;
|
|
28
|
-
set_state: (updater: (state: AssinaturaState) => void) => void;
|
|
29
|
-
}
|
|
30
|
-
declare const _default: contexto_assinatura;
|
|
31
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from "axios";
|
|
2
|
-
declare const _api: {
|
|
3
|
-
new (): {};
|
|
4
|
-
servidor_service_financeiro: {
|
|
5
|
-
new (): {};
|
|
6
|
-
get "__#private@#axios"(): import("axios").AxiosInstance;
|
|
7
|
-
post({ url, data, setToken }: {
|
|
8
|
-
url: string;
|
|
9
|
-
data: any;
|
|
10
|
-
setToken?: boolean;
|
|
11
|
-
}): Promise<AxiosResponse<any, any, {}>>;
|
|
12
|
-
get({ url, params, setToken }: {
|
|
13
|
-
url: string;
|
|
14
|
-
params?: any;
|
|
15
|
-
setToken?: boolean;
|
|
16
|
-
}): Promise<AxiosResponse<any, any, {}>>;
|
|
17
|
-
patch({ url, data, setToken }: {
|
|
18
|
-
url: string;
|
|
19
|
-
data: any;
|
|
20
|
-
setToken?: boolean;
|
|
21
|
-
}): Promise<AxiosResponse<any, any, {}>>;
|
|
22
|
-
delete({ url }: {
|
|
23
|
-
url: string;
|
|
24
|
-
setToken?: boolean;
|
|
25
|
-
}): Promise<AxiosResponse<any, any, {}>>;
|
|
26
|
-
};
|
|
27
|
-
headers({ setToken }: {
|
|
28
|
-
setToken?: boolean;
|
|
29
|
-
}): {
|
|
30
|
-
headers: {
|
|
31
|
-
Authorization: string;
|
|
32
|
-
"Content-type": string;
|
|
33
|
-
};
|
|
34
|
-
} | {
|
|
35
|
-
headers: {
|
|
36
|
-
"Content-type": string;
|
|
37
|
-
Authorization?: undefined;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export default _api;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _data: {
|
|
2
|
-
new (): {};
|
|
3
|
-
YYYY_MM_DD_00_00_00(newData: string): string;
|
|
4
|
-
DD_MM_YYYY_00_00_00(newData: string): string;
|
|
5
|
-
DD_MM_YYYY_00_00(newData: string): string;
|
|
6
|
-
DD_MM_YYYY(newData: string): string;
|
|
7
|
-
YYYY_MM_DD(newData: string): string;
|
|
8
|
-
DIFERENCA_SEGUNDOS(data: string): number;
|
|
9
|
-
DIFERENCA_DIAS(data: string): number;
|
|
10
|
-
};
|
|
11
|
-
export default _data;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare class _form {
|
|
2
|
-
static regex_cpf_cnpj(value: string): string;
|
|
3
|
-
static formatar_cpf(value: string): string;
|
|
4
|
-
static formatar_cnpj(value: string): string;
|
|
5
|
-
static formatar_cep(value: string): string;
|
|
6
|
-
static formatar_telefone_fixo(value: string): string;
|
|
7
|
-
static formatar_celular(value: string): string;
|
|
8
|
-
static formatar_nome(name: string): string;
|
|
9
|
-
static formatar_reais_br(value: string): string;
|
|
10
|
-
}
|
|
11
|
-
export default _form;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _local_storage: {
|
|
2
|
-
new (): {};
|
|
3
|
-
adicionar_item_local_storage(chave: string, novoItem: any): void;
|
|
4
|
-
set_local_storage_sem_incremento(chave: string, novoItem: any): void;
|
|
5
|
-
get_item_local_storage(chave: string): any;
|
|
6
|
-
remover_item_local_storage(chave: string): void;
|
|
7
|
-
};
|
|
8
|
-
export default _local_storage;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _session_storage: {
|
|
2
|
-
new (): {};
|
|
3
|
-
adicionar_item_session_storage({ chave, novoItem }: {
|
|
4
|
-
chave: string;
|
|
5
|
-
novoItem: any;
|
|
6
|
-
}): void;
|
|
7
|
-
set_session_storage_sem_incremento({ chave, novoItem }: {
|
|
8
|
-
chave: string;
|
|
9
|
-
novoItem: any;
|
|
10
|
-
}): void;
|
|
11
|
-
get_item_session_storage(chave: string): any;
|
|
12
|
-
remover_item_session_storage(chave: string): void;
|
|
13
|
-
};
|
|
14
|
-
export default _session_storage;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type ParamsPadrao = {
|
|
2
|
-
oldArray: any[];
|
|
3
|
-
newItem: any;
|
|
4
|
-
key?: string | "_id" | "id";
|
|
5
|
-
};
|
|
6
|
-
type RemoveArrayItems = {
|
|
7
|
-
oldArray: any[];
|
|
8
|
-
itemsToRemove: any[];
|
|
9
|
-
key?: string | "_id" | "id";
|
|
10
|
-
};
|
|
11
|
-
declare const _update_context: {
|
|
12
|
-
new (): {};
|
|
13
|
-
set_new_item_end: ({ oldArray, newItem, key }: ParamsPadrao) => any;
|
|
14
|
-
update_array_itens: ({ oldArray, newItem, key }: ParamsPadrao) => any;
|
|
15
|
-
remove_array_items: ({ oldArray, itemsToRemove, key }: RemoveArrayItems) => any[];
|
|
16
|
-
compare_arrays({ arrayAntigo, arrayNovo }: {
|
|
17
|
-
arrayAntigo: any;
|
|
18
|
-
arrayNovo: any;
|
|
19
|
-
}): any[];
|
|
20
|
-
};
|
|
21
|
-
export default _update_context;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import _form from "./_form";
|
|
2
|
-
declare const utils: {
|
|
3
|
-
new (): {};
|
|
4
|
-
api: {
|
|
5
|
-
new (): {};
|
|
6
|
-
servidor_service_financeiro: {
|
|
7
|
-
new (): {};
|
|
8
|
-
get "__#private@#axios"(): import("axios").AxiosInstance;
|
|
9
|
-
post({ url, data, setToken }: {
|
|
10
|
-
url: string;
|
|
11
|
-
data: any;
|
|
12
|
-
setToken?: boolean;
|
|
13
|
-
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
|
-
get({ url, params, setToken }: {
|
|
15
|
-
url: string;
|
|
16
|
-
params?: any;
|
|
17
|
-
setToken?: boolean;
|
|
18
|
-
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
19
|
-
patch({ url, data, setToken }: {
|
|
20
|
-
url: string;
|
|
21
|
-
data: any;
|
|
22
|
-
setToken?: boolean;
|
|
23
|
-
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
24
|
-
delete({ url }: {
|
|
25
|
-
url: string;
|
|
26
|
-
setToken?: boolean;
|
|
27
|
-
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
28
|
-
};
|
|
29
|
-
headers({ setToken }: {
|
|
30
|
-
setToken?: boolean;
|
|
31
|
-
}): {
|
|
32
|
-
headers: {
|
|
33
|
-
Authorization: string;
|
|
34
|
-
"Content-type": string;
|
|
35
|
-
};
|
|
36
|
-
} | {
|
|
37
|
-
headers: {
|
|
38
|
-
"Content-type": string;
|
|
39
|
-
Authorization?: undefined;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
data: {
|
|
44
|
-
new (): {};
|
|
45
|
-
YYYY_MM_DD_00_00_00(newData: string): string;
|
|
46
|
-
DD_MM_YYYY_00_00_00(newData: string): string;
|
|
47
|
-
DD_MM_YYYY_00_00(newData: string): string;
|
|
48
|
-
DD_MM_YYYY(newData: string): string;
|
|
49
|
-
YYYY_MM_DD(newData: string): string;
|
|
50
|
-
DIFERENCA_SEGUNDOS(data: string): number;
|
|
51
|
-
DIFERENCA_DIAS(data: string): number;
|
|
52
|
-
};
|
|
53
|
-
form: typeof _form;
|
|
54
|
-
geral: {
|
|
55
|
-
new (): {};
|
|
56
|
-
slice_file_name(filename: string, maxLength?: number): string;
|
|
57
|
-
extrair_id(array_enviado: Array<{
|
|
58
|
-
_id?: string;
|
|
59
|
-
}>): string[];
|
|
60
|
-
gerar_id: (length?: number) => string;
|
|
61
|
-
};
|
|
62
|
-
local_storage: {
|
|
63
|
-
new (): {};
|
|
64
|
-
adicionar_item_local_storage(chave: string, novoItem: any): void;
|
|
65
|
-
set_local_storage_sem_incremento(chave: string, novoItem: any): void;
|
|
66
|
-
get_item_local_storage(chave: string): any;
|
|
67
|
-
remover_item_local_storage(chave: string): void;
|
|
68
|
-
};
|
|
69
|
-
update_context: {
|
|
70
|
-
new (): {};
|
|
71
|
-
set_new_item_end: ({ oldArray, newItem, key }: {
|
|
72
|
-
oldArray: any[];
|
|
73
|
-
newItem: any;
|
|
74
|
-
key?: string | "_id" | "id";
|
|
75
|
-
}) => any;
|
|
76
|
-
update_array_itens: ({ oldArray, newItem, key }: {
|
|
77
|
-
oldArray: any[];
|
|
78
|
-
newItem: any;
|
|
79
|
-
key?: string | "_id" | "id";
|
|
80
|
-
}) => any;
|
|
81
|
-
remove_array_items: ({ oldArray, itemsToRemove, key }: {
|
|
82
|
-
oldArray: any[];
|
|
83
|
-
itemsToRemove: any[];
|
|
84
|
-
key?: string | "_id" | "id";
|
|
85
|
-
}) => any[];
|
|
86
|
-
compare_arrays({ arrayAntigo, arrayNovo }: {
|
|
87
|
-
arrayAntigo: any;
|
|
88
|
-
arrayNovo: any;
|
|
89
|
-
}): any[];
|
|
90
|
-
};
|
|
91
|
-
session_sorage: {
|
|
92
|
-
new (): {};
|
|
93
|
-
adicionar_item_session_storage({ chave, novoItem }: {
|
|
94
|
-
chave: string;
|
|
95
|
-
novoItem: any;
|
|
96
|
-
}): void;
|
|
97
|
-
set_session_storage_sem_incremento({ chave, novoItem }: {
|
|
98
|
-
chave: string;
|
|
99
|
-
novoItem: any;
|
|
100
|
-
}): void;
|
|
101
|
-
get_item_session_storage(chave: string): any;
|
|
102
|
-
remover_item_session_storage(chave: string): void;
|
|
103
|
-
};
|
|
104
|
-
hooks: {
|
|
105
|
-
use_is_mobile(): boolean;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
export default utils;
|