@navservice/assinatura 1.33.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.
Files changed (44) hide show
  1. package/build/es/backend/schema/schema_assinatura.d.ts +324 -0
  2. package/build/es/biblioteca/src/componentes/checkout/ButtonGerarUrl.d.ts +7 -0
  3. package/build/es/biblioteca/src/componentes/checkout/CheckoutAssinaturaStripe.d.ts +1 -0
  4. package/build/es/biblioteca/src/componentes/checkout/Stype.d.ts +1 -0
  5. package/build/es/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +5 -0
  6. package/build/es/biblioteca/src/componentes/geral/TopTabs/index.d.ts +10 -0
  7. package/build/es/biblioteca/src/contexto/contexto_assinatura.d.ts +31 -0
  8. package/build/es/biblioteca/src/index.d.ts +2 -0
  9. package/build/es/index.js +19866 -0
  10. package/build/es/index.js.LICENSE.txt +26 -0
  11. package/build/es/shared/configuracoes/_sistema.d.ts +49 -0
  12. package/build/es/shared/configuracoes/_theme.d.ts +91 -0
  13. package/build/es/shared/configuracoes/index.d.ts +142 -0
  14. package/build/es/shared/types/controller/assinatura.d.ts +249 -0
  15. package/build/es/shared/types/controller/cliente.d.ts +112 -0
  16. package/build/es/shared/types/geral/type_response.d.ts +54 -0
  17. package/build/es/shared/types/index.d.ts +38 -0
  18. package/build/lib/backend/schema/schema_assinatura.d.ts +324 -0
  19. package/build/lib/biblioteca/src/componentes/checkout/ButtonGerarUrl.d.ts +7 -0
  20. package/build/lib/biblioteca/src/componentes/checkout/CheckoutAssinaturaStripe.d.ts +1 -0
  21. package/build/lib/biblioteca/src/componentes/checkout/Stype.d.ts +1 -0
  22. package/build/lib/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +5 -0
  23. package/build/lib/biblioteca/src/componentes/geral/TopTabs/index.d.ts +10 -0
  24. package/build/lib/biblioteca/src/config_env/index.d.ts +9 -0
  25. package/build/lib/biblioteca/src/contexto/contexto_assinatura.d.ts +31 -0
  26. package/build/lib/biblioteca/src/index.d.ts +2 -0
  27. package/build/lib/biblioteca/src/utils/_api.d.ts +41 -0
  28. package/build/lib/biblioteca/src/utils/_data.d.ts +11 -0
  29. package/build/lib/biblioteca/src/utils/_form.d.ts +11 -0
  30. package/build/lib/biblioteca/src/utils/_geral.d.ts +9 -0
  31. package/build/lib/biblioteca/src/utils/_hooks.d.ts +5 -0
  32. package/build/lib/biblioteca/src/utils/_local_storage.d.ts +8 -0
  33. package/build/lib/biblioteca/src/utils/_session_storage.d.ts +14 -0
  34. package/build/lib/biblioteca/src/utils/_update_context.d.ts +21 -0
  35. package/build/lib/biblioteca/src/utils/utils.d.ts +108 -0
  36. package/build/lib/index.js +461 -0
  37. package/build/lib/shared/configuracoes/_sistema.d.ts +49 -0
  38. package/build/lib/shared/configuracoes/_theme.d.ts +91 -0
  39. package/build/lib/shared/configuracoes/index.d.ts +142 -0
  40. package/build/lib/shared/types/controller/assinatura.d.ts +229 -0
  41. package/build/lib/shared/types/controller/cliente.d.ts +112 -0
  42. package/build/lib/shared/types/geral/type_response.d.ts +54 -0
  43. package/build/lib/shared/types/index.d.ts +47 -0
  44. package/package.json +31 -0
@@ -0,0 +1,54 @@
1
+ import { Context } from "hono";
2
+ import z4 from "zod/v4";
3
+ declare namespace TypeControllerResponse {
4
+ const BaseResponseSchema: z4.ZodObject<{
5
+ status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
6
+ code: z4.ZodUnion<readonly [z4.ZodLiteral<"SUCCESS">, z4.ZodLiteral<"ACTION_REQUIRED">, z4.ZodLiteral<"CREATED">, z4.ZodLiteral<"WARNING">, z4.ZodLiteral<"AUTHORIZATION_ERROR">, z4.ZodLiteral<"SCHEMA_VALIDATION">, z4.ZodLiteral<"SERVER_ERROR">, z4.ZodLiteral<"UNAUTHORIZED">, z4.ZodLiteral<"INVALID_TOKEN">, z4.ZodLiteral<"NOT_FOUND">, z4.ZodLiteral<"SUCCESS_FILE">, z4.ZodLiteral<"DATABASE_ERROR">]>;
7
+ type: z4.ZodDefault<z4.ZodUnion<readonly [z4.ZodLiteral<"success">, z4.ZodLiteral<"warning">, z4.ZodLiteral<"error">]>>;
8
+ message: z4.ZodString;
9
+ results: z4.ZodOptional<z4.ZodUnknown>;
10
+ error: z4.ZodOptional<z4.ZodUnknown>;
11
+ }, z4.core.$strip>;
12
+ type BaseResponse<T = unknown> = z4.infer<typeof BaseResponseSchema> & {
13
+ results?: T;
14
+ };
15
+ export namespace C {
16
+ export const InputSchema: z4.ZodObject<{
17
+ status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
18
+ code: z4.ZodUnion<readonly [z4.ZodLiteral<"SUCCESS">, z4.ZodLiteral<"ACTION_REQUIRED">, z4.ZodLiteral<"CREATED">, z4.ZodLiteral<"WARNING">, z4.ZodLiteral<"AUTHORIZATION_ERROR">, z4.ZodLiteral<"SCHEMA_VALIDATION">, z4.ZodLiteral<"SERVER_ERROR">, z4.ZodLiteral<"UNAUTHORIZED">, z4.ZodLiteral<"INVALID_TOKEN">, z4.ZodLiteral<"NOT_FOUND">, z4.ZodLiteral<"SUCCESS_FILE">, z4.ZodLiteral<"DATABASE_ERROR">]>;
19
+ type: z4.ZodDefault<z4.ZodOptional<z4.ZodDefault<z4.ZodUnion<readonly [z4.ZodLiteral<"success">, z4.ZodLiteral<"warning">, z4.ZodLiteral<"error">]>>>>;
20
+ message: z4.ZodOptional<z4.ZodString>;
21
+ results: z4.ZodAny;
22
+ c: z4.ZodCustom<Context<any, any, {}>, Context<any, any, {}>>;
23
+ }, z4.core.$strip>;
24
+ export type Input<T = unknown> = z4.infer<typeof InputSchema> & {
25
+ results?: T;
26
+ };
27
+ export type Output<T = unknown> = BaseResponse<T>;
28
+ const FileResponseParamsSchema: z4.ZodObject<{
29
+ status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
30
+ message: z4.ZodOptional<z4.ZodString>;
31
+ file_buffer: z4.ZodUnion<readonly [z4.ZodCustom<Blob, Blob>, z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>;
32
+ content_type: z4.ZodString;
33
+ filename: z4.ZodOptional<z4.ZodString>;
34
+ c: z4.ZodOptional<z4.ZodCustom<Context<any, any, {}>, Context<any, any, {}>>>;
35
+ }, z4.core.$strip>;
36
+ export type FileResponseParams = z4.infer<typeof FileResponseParamsSchema>;
37
+ export {};
38
+ }
39
+ export namespace Error {
40
+ const InputSchema: z4.ZodObject<{
41
+ message: z4.ZodOptional<z4.ZodString>;
42
+ results: z4.ZodOptional<z4.ZodUnion<readonly [z4.ZodArray<z4.ZodUnknown>, z4.ZodUnknown]>>;
43
+ type: z4.ZodDefault<z4.ZodOptional<z4.ZodDefault<z4.ZodUnion<readonly [z4.ZodLiteral<"success">, z4.ZodLiteral<"warning">, z4.ZodLiteral<"error">]>>>>;
44
+ code: z4.ZodUnion<readonly [z4.ZodLiteral<"SUCCESS">, z4.ZodLiteral<"ACTION_REQUIRED">, z4.ZodLiteral<"CREATED">, z4.ZodLiteral<"WARNING">, z4.ZodLiteral<"AUTHORIZATION_ERROR">, z4.ZodLiteral<"SCHEMA_VALIDATION">, z4.ZodLiteral<"SERVER_ERROR">, z4.ZodLiteral<"UNAUTHORIZED">, z4.ZodLiteral<"INVALID_TOKEN">, z4.ZodLiteral<"NOT_FOUND">, z4.ZodLiteral<"SUCCESS_FILE">, z4.ZodLiteral<"DATABASE_ERROR">]>;
45
+ status: z4.ZodDefault<z4.ZodOptional<z4.ZodNumber>>;
46
+ }, z4.core.$strip>;
47
+ type Input<T = unknown> = z4.infer<typeof InputSchema> & {
48
+ results?: T;
49
+ };
50
+ type Output<T = unknown> = BaseResponse<T>;
51
+ }
52
+ export {};
53
+ }
54
+ export default TypeControllerResponse;
@@ -0,0 +1,38 @@
1
+ import { Context as HonoContext } from "hono";
2
+ import type { D1Database, Fetcher } from "@cloudflare/workers-types";
3
+ import { TypesCore } from "@navservice/core";
4
+ import TypeControllerAssinatura from "./controller/assinatura";
5
+ import TypeControllerCliente from "./controller/cliente";
6
+ import TypeResponse from "./geral/type_response";
7
+ declare namespace t {
8
+ namespace Controller {
9
+ export import Assinatura = TypeControllerAssinatura;
10
+ export import Cliente = TypeControllerCliente;
11
+ }
12
+ namespace Integrations {
13
+ }
14
+ namespace Geral {
15
+ export import Response = TypeResponse;
16
+ interface Env {
17
+ JSON_WEB_TOKEN_AUTH_USER?: string;
18
+ STRIPE_PRICES_ID_SERVICE_FINANCEIRO?: string;
19
+ STRIPE_PRICES_ID_SERVICE_USUARIO?: string;
20
+ STRIPE_PRICES_ID_SERVICE_PAGES_AI?: string;
21
+ STRIPE_SECRET_KEY?: string;
22
+ PUBLIC_BASE_URL_BACKEND_FINANCEIRO?: string;
23
+ PUBLIC_BASE_URL_FRTONEND_PRINCIPAL?: string;
24
+ RESEND_API_KEY?: string;
25
+ CORS_ORIGIN?: string;
26
+ DB_SERVICE_ASSINATURA?: D1Database;
27
+ ASSETS?: Fetcher;
28
+ }
29
+ }
30
+ type Env = {
31
+ Bindings: Geral.Env;
32
+ Variables: {
33
+ usuario_auth: TypesCore.Controller.Usuario.TokenPayload;
34
+ };
35
+ };
36
+ type Context = HonoContext<Env>;
37
+ }
38
+ export default t;
@@ -0,0 +1,324 @@
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>;
@@ -0,0 +1,7 @@
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 {};
@@ -0,0 +1 @@
1
+ export declare function CheckoutAssinaturaStripe(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function CheckoutStripe(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ interface PaginaEmDesenvolvimento {
2
+ title: string;
3
+ }
4
+ export default function PaginaEmDesenvolvimento({ title }: PaginaEmDesenvolvimento): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,31 @@
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;
@@ -0,0 +1,2 @@
1
+ export { CheckoutStripe } from "./componentes/checkout/Stype";
2
+ export { CheckoutStripe as default } from "./componentes/checkout/Stype";
@@ -0,0 +1,41 @@
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;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,9 @@
1
+ declare const geral: {
2
+ new (): {};
3
+ slice_file_name(filename: string, maxLength?: number): string;
4
+ extrair_id(array_enviado: Array<{
5
+ _id?: string;
6
+ }>): string[];
7
+ gerar_id: (length?: number) => string;
8
+ };
9
+ export default geral;
@@ -0,0 +1,5 @@
1
+ declare class _hooks {
2
+ use_is_mobile(): boolean;
3
+ }
4
+ declare const _default: _hooks;
5
+ export default _default;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,14 @@
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;
@@ -0,0 +1,21 @@
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;