evo360-types 1.3.780 → 1.3.784
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/dist/apps/evo-chat/thread-message/zod-schemas.d.ts +36 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.js +3 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.ts +3 -0
- package/dist/apps/evo-chat/waba-template/zod-schemas.d.ts +70 -0
- package/dist/apps/evo-chat/waba-template/zod-schemas.js +6 -2
- package/dist/apps/evo-chat/waba-template/zod-schemas.ts +6 -1
- package/dist/apps/evo-finops/zod-schemas.d.ts +329 -2
- package/dist/apps/evo-finops/zod-schemas.js +66 -2
- package/dist/apps/evo-finops/zod-schemas.ts +74 -0
- package/dist/apps/evo-hub-ia/v1/zod-schemas.d.ts +4 -4
- package/dist/types/evo-chat/thread-message/index.d.ts +8 -0
- package/dist/types/evo-chat/thread-message/index.ts +8 -0
- package/dist/types/evo-finops/common/contract.d.ts +21 -1
- package/dist/types/evo-finops/common/contract.js +7 -0
- package/dist/types/evo-finops/common/contract.ts +23 -1
- package/dist/types/evo-finops/common/price-table.d.ts +89 -0
- package/dist/types/evo-finops/common/price-table.js +88 -0
- package/dist/types/evo-finops/common/price-table.ts +183 -0
- package/dist/types/evo-finops/index.d.ts +1 -0
- package/dist/types/evo-finops/index.js +1 -0
- package/dist/types/evo-finops/index.ts +1 -0
- package/dist/types/evo-reports/index.d.ts +9 -0
- package/dist/types/evo-reports/index.ts +9 -0
- package/dist/types/shared/template-profile.d.ts +23 -1
- package/dist/types/shared/template-profile.js +11 -0
- package/dist/types/shared/template-profile.ts +26 -1
- package/package.json +1 -1
|
@@ -92,14 +92,23 @@ export declare const zMessageCreatedBySchema: z.ZodObject<{
|
|
|
92
92
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
93
93
|
user_id: z.ZodOptional<z.ZodString>;
|
|
94
94
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
95
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
96
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
97
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
95
98
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
96
99
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
97
100
|
user_id: z.ZodOptional<z.ZodString>;
|
|
98
101
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
102
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
103
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
104
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
99
105
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
100
106
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
101
107
|
user_id: z.ZodOptional<z.ZodString>;
|
|
102
108
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
109
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
110
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
111
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
103
112
|
}, z.ZodTypeAny, "passthrough">>;
|
|
104
113
|
export declare const zMessagePricingSchema: z.ZodObject<{
|
|
105
114
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
@@ -494,14 +503,23 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
494
503
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
495
504
|
user_id: z.ZodOptional<z.ZodString>;
|
|
496
505
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
506
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
507
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
508
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
497
509
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
498
510
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
499
511
|
user_id: z.ZodOptional<z.ZodString>;
|
|
500
512
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
513
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
514
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
515
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
501
516
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
502
517
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
503
518
|
user_id: z.ZodOptional<z.ZodString>;
|
|
504
519
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
520
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
521
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
522
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
505
523
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
506
524
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
507
525
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
@@ -827,14 +845,23 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
827
845
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
828
846
|
user_id: z.ZodOptional<z.ZodString>;
|
|
829
847
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
848
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
849
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
850
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
830
851
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
831
852
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
832
853
|
user_id: z.ZodOptional<z.ZodString>;
|
|
833
854
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
855
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
856
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
857
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
834
858
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
835
859
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
836
860
|
user_id: z.ZodOptional<z.ZodString>;
|
|
837
861
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
862
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
863
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
864
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
838
865
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
839
866
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
840
867
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
@@ -1160,14 +1187,23 @@ export declare const zThreadMessageSchema: z.ZodObject<{
|
|
|
1160
1187
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
1161
1188
|
user_id: z.ZodOptional<z.ZodString>;
|
|
1162
1189
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
1192
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
1163
1193
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1164
1194
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
1165
1195
|
user_id: z.ZodOptional<z.ZodString>;
|
|
1166
1196
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
1199
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
1167
1200
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1168
1201
|
type: z.ZodEnum<["human", "automation", "system"]>;
|
|
1169
1202
|
user_id: z.ZodOptional<z.ZodString>;
|
|
1170
1203
|
workflow_id: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
1206
|
+
source: z.ZodOptional<z.ZodEnum<["coexistence_app"]>>;
|
|
1171
1207
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1172
1208
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
1173
1209
|
category: z.ZodOptional<z.ZodEnum<["service", "utility", "authentication", "marketing"]>>;
|
|
@@ -30,6 +30,9 @@ exports.zMessageCreatedBySchema = zod_1.z.object({
|
|
|
30
30
|
type: zod_1.z.enum(['human', 'automation', 'system']),
|
|
31
31
|
user_id: zod_1.z.string().optional(),
|
|
32
32
|
workflow_id: zod_1.z.string().optional(),
|
|
33
|
+
display_name: zod_1.z.string().optional(),
|
|
34
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
35
|
+
source: zod_1.z.enum(['coexistence_app']).optional(),
|
|
33
36
|
}).passthrough();
|
|
34
37
|
exports.zMessagePricingSchema = zod_1.z.object({
|
|
35
38
|
category: zod_1.z.enum(['service', 'utility', 'authentication', 'marketing']).optional(),
|
|
@@ -30,6 +30,9 @@ export const zMessageCreatedBySchema = z.object({
|
|
|
30
30
|
type: z.enum(['human', 'automation', 'system']),
|
|
31
31
|
user_id: z.string().optional(),
|
|
32
32
|
workflow_id: z.string().optional(),
|
|
33
|
+
display_name: z.string().optional(),
|
|
34
|
+
/** feat-328 — eco do WhatsApp Business App na coexistência. */
|
|
35
|
+
source: z.enum(['coexistence_app']).optional(),
|
|
33
36
|
}).passthrough();
|
|
34
37
|
|
|
35
38
|
export const zMessagePricingSchema = z.object({
|
|
@@ -1565,6 +1565,70 @@ export declare const zWabaTemplateCreateRequestSchema: z.ZodObject<{
|
|
|
1565
1565
|
* feat-327 — doc de `channels/{ch}/template_profiles/{name}__{language}`
|
|
1566
1566
|
* (leitura). A edição valida só os campos: `zTemplateProfileFieldsSchema`.
|
|
1567
1567
|
*/
|
|
1568
|
+
/** Corpo do PUT de perfil do HSM: os quatro campos + `enabled` (F1.1, D8). */
|
|
1569
|
+
export declare const zWabaTemplateProfileFieldsSchema: z.ZodObject<{
|
|
1570
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1571
|
+
mcp_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1572
|
+
mcp_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1573
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
1574
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1576
|
+
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1577
|
+
} & {
|
|
1578
|
+
name: z.ZodString;
|
|
1579
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
1580
|
+
}, "strip", z.ZodTypeAny, {
|
|
1581
|
+
name: string;
|
|
1582
|
+
hidden: boolean;
|
|
1583
|
+
base?: boolean | undefined;
|
|
1584
|
+
color?: string | undefined;
|
|
1585
|
+
category?: string | null | undefined;
|
|
1586
|
+
}, {
|
|
1587
|
+
name: string;
|
|
1588
|
+
base?: boolean | undefined;
|
|
1589
|
+
color?: string | undefined;
|
|
1590
|
+
category?: string | null | undefined;
|
|
1591
|
+
hidden?: boolean | undefined;
|
|
1592
|
+
}>, "many">, {
|
|
1593
|
+
name: string;
|
|
1594
|
+
hidden: boolean;
|
|
1595
|
+
base?: boolean | undefined;
|
|
1596
|
+
color?: string | undefined;
|
|
1597
|
+
category?: string | null | undefined;
|
|
1598
|
+
}[], {
|
|
1599
|
+
name: string;
|
|
1600
|
+
base?: boolean | undefined;
|
|
1601
|
+
color?: string | undefined;
|
|
1602
|
+
category?: string | null | undefined;
|
|
1603
|
+
hidden?: boolean | undefined;
|
|
1604
|
+
}[]>>>;
|
|
1605
|
+
} & {
|
|
1606
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1607
|
+
}, "strip", z.ZodTypeAny, {
|
|
1608
|
+
mcp_description?: string | null | undefined;
|
|
1609
|
+
mcp_enabled?: boolean | undefined;
|
|
1610
|
+
enabled?: boolean | undefined;
|
|
1611
|
+
description?: string | null | undefined;
|
|
1612
|
+
tags?: {
|
|
1613
|
+
name: string;
|
|
1614
|
+
hidden: boolean;
|
|
1615
|
+
base?: boolean | undefined;
|
|
1616
|
+
color?: string | undefined;
|
|
1617
|
+
category?: string | null | undefined;
|
|
1618
|
+
}[] | null | undefined;
|
|
1619
|
+
}, {
|
|
1620
|
+
mcp_description?: string | null | undefined;
|
|
1621
|
+
mcp_enabled?: boolean | undefined;
|
|
1622
|
+
enabled?: boolean | undefined;
|
|
1623
|
+
description?: string | null | undefined;
|
|
1624
|
+
tags?: {
|
|
1625
|
+
name: string;
|
|
1626
|
+
base?: boolean | undefined;
|
|
1627
|
+
color?: string | undefined;
|
|
1628
|
+
category?: string | null | undefined;
|
|
1629
|
+
hidden?: boolean | undefined;
|
|
1630
|
+
}[] | null | undefined;
|
|
1631
|
+
}>;
|
|
1568
1632
|
export declare const zWabaTemplateProfileSchema: z.ZodObject<{
|
|
1569
1633
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1570
1634
|
mcp_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1601,6 +1665,8 @@ export declare const zWabaTemplateProfileSchema: z.ZodObject<{
|
|
|
1601
1665
|
category?: string | null | undefined;
|
|
1602
1666
|
hidden?: boolean | undefined;
|
|
1603
1667
|
}[]>>>;
|
|
1668
|
+
} & {
|
|
1669
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1604
1670
|
} & {
|
|
1605
1671
|
id: z.ZodString;
|
|
1606
1672
|
name: z.ZodString;
|
|
@@ -1653,6 +1719,8 @@ export declare const zWabaTemplateProfileSchema: z.ZodObject<{
|
|
|
1653
1719
|
category?: string | null | undefined;
|
|
1654
1720
|
hidden?: boolean | undefined;
|
|
1655
1721
|
}[]>>>;
|
|
1722
|
+
} & {
|
|
1723
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1656
1724
|
} & {
|
|
1657
1725
|
id: z.ZodString;
|
|
1658
1726
|
name: z.ZodString;
|
|
@@ -1705,6 +1773,8 @@ export declare const zWabaTemplateProfileSchema: z.ZodObject<{
|
|
|
1705
1773
|
category?: string | null | undefined;
|
|
1706
1774
|
hidden?: boolean | undefined;
|
|
1707
1775
|
}[]>>>;
|
|
1776
|
+
} & {
|
|
1777
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1708
1778
|
} & {
|
|
1709
1779
|
id: z.ZodString;
|
|
1710
1780
|
name: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zWabaTemplateProfileSchema = exports.zWabaTemplateCreateRequestSchema = exports.zWabaTemplateSchema = exports.zWabaTemplateDraftSourceSchema = exports.zWabaTemplateComponentSchema = exports.zWabaTemplateButtonSchema = void 0;
|
|
3
|
+
exports.zWabaTemplateProfileSchema = exports.zWabaTemplateProfileFieldsSchema = exports.zWabaTemplateCreateRequestSchema = exports.zWabaTemplateSchema = exports.zWabaTemplateDraftSourceSchema = exports.zWabaTemplateComponentSchema = exports.zWabaTemplateButtonSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
6
|
exports.zWabaTemplateButtonSchema = zod_1.z.object({
|
|
@@ -59,7 +59,11 @@ exports.zWabaTemplateCreateRequestSchema = zod_1.z.object({
|
|
|
59
59
|
* feat-327 — doc de `channels/{ch}/template_profiles/{name}__{language}`
|
|
60
60
|
* (leitura). A edição valida só os campos: `zTemplateProfileFieldsSchema`.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
/** Corpo do PUT de perfil do HSM: os quatro campos + `enabled` (F1.1, D8). */
|
|
63
|
+
exports.zWabaTemplateProfileFieldsSchema = zod_schemas_1.zTemplateProfileFieldsSchema.extend({
|
|
64
|
+
enabled: zod_1.z.boolean().optional(),
|
|
65
|
+
});
|
|
66
|
+
exports.zWabaTemplateProfileSchema = exports.zWabaTemplateProfileFieldsSchema
|
|
63
67
|
.extend({
|
|
64
68
|
id: zod_1.z.string(),
|
|
65
69
|
name: zod_1.z.string(),
|
|
@@ -62,7 +62,12 @@ export const zWabaTemplateCreateRequestSchema = z.object({
|
|
|
62
62
|
* feat-327 — doc de `channels/{ch}/template_profiles/{name}__{language}`
|
|
63
63
|
* (leitura). A edição valida só os campos: `zTemplateProfileFieldsSchema`.
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
/** Corpo do PUT de perfil do HSM: os quatro campos + `enabled` (F1.1, D8). */
|
|
66
|
+
export const zWabaTemplateProfileFieldsSchema = zTemplateProfileFieldsSchema.extend({
|
|
67
|
+
enabled: z.boolean().optional(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export const zWabaTemplateProfileSchema = zWabaTemplateProfileFieldsSchema
|
|
66
71
|
.extend({
|
|
67
72
|
id: z.string(),
|
|
68
73
|
name: z.string(),
|
|
@@ -16015,9 +16015,9 @@ export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
|
|
|
16015
16015
|
}, "strip", z.ZodTypeAny, {
|
|
16016
16016
|
value?: number | null | undefined;
|
|
16017
16017
|
customer_id?: string | null | undefined;
|
|
16018
|
+
cycle?: string | null | undefined;
|
|
16018
16019
|
subscription_id?: string | null | undefined;
|
|
16019
16020
|
subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
|
|
16020
|
-
cycle?: string | null | undefined;
|
|
16021
16021
|
next_due_date?: string | null | undefined;
|
|
16022
16022
|
card_last4?: string | null | undefined;
|
|
16023
16023
|
card_brand?: string | null | undefined;
|
|
@@ -16026,9 +16026,9 @@ export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
|
|
|
16026
16026
|
}, {
|
|
16027
16027
|
value?: number | null | undefined;
|
|
16028
16028
|
customer_id?: string | null | undefined;
|
|
16029
|
+
cycle?: string | null | undefined;
|
|
16029
16030
|
subscription_id?: string | null | undefined;
|
|
16030
16031
|
subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
|
|
16031
|
-
cycle?: string | null | undefined;
|
|
16032
16032
|
next_due_date?: string | null | undefined;
|
|
16033
16033
|
card_last4?: string | null | undefined;
|
|
16034
16034
|
card_brand?: string | null | undefined;
|
|
@@ -16349,6 +16349,8 @@ export declare const zNexFinopsContractAllowancesWriteSchema: z.ZodObject<{
|
|
|
16349
16349
|
alert_thresholds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
16350
16350
|
/** feat-264 D4 — ausente/null = TRUE (reembolsa). */
|
|
16351
16351
|
nfse_fee_reimbursement: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
16352
|
+
/** feat-328 — tabela de preço do contrato. Ausente/null = tabela padrão. */
|
|
16353
|
+
price_table_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16352
16354
|
}, "strip", z.ZodTypeAny, {
|
|
16353
16355
|
allowances?: Record<string, {
|
|
16354
16356
|
included: number;
|
|
@@ -16357,6 +16359,7 @@ export declare const zNexFinopsContractAllowancesWriteSchema: z.ZodObject<{
|
|
|
16357
16359
|
alerts_enabled?: boolean | null | undefined;
|
|
16358
16360
|
alert_thresholds?: number[] | null | undefined;
|
|
16359
16361
|
nfse_fee_reimbursement?: boolean | null | undefined;
|
|
16362
|
+
price_table_id?: string | null | undefined;
|
|
16360
16363
|
}, {
|
|
16361
16364
|
allowances?: Record<string, {
|
|
16362
16365
|
included: number;
|
|
@@ -16365,6 +16368,330 @@ export declare const zNexFinopsContractAllowancesWriteSchema: z.ZodObject<{
|
|
|
16365
16368
|
alerts_enabled?: boolean | null | undefined;
|
|
16366
16369
|
alert_thresholds?: number[] | null | undefined;
|
|
16367
16370
|
nfse_fee_reimbursement?: boolean | null | undefined;
|
|
16371
|
+
price_table_id?: string | null | undefined;
|
|
16372
|
+
}>;
|
|
16373
|
+
export declare const zNexFinopsPriceCapTierSchema: z.ZodObject<{
|
|
16374
|
+
up_to: z.ZodNumber;
|
|
16375
|
+
total: z.ZodNumber;
|
|
16376
|
+
}, "strip", z.ZodTypeAny, {
|
|
16377
|
+
total: number;
|
|
16378
|
+
up_to: number;
|
|
16379
|
+
}, {
|
|
16380
|
+
total: number;
|
|
16381
|
+
up_to: number;
|
|
16382
|
+
}>;
|
|
16383
|
+
export declare const zNexFinopsPriceCapSchema: z.ZodObject<{
|
|
16384
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16385
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16386
|
+
up_to: z.ZodNumber;
|
|
16387
|
+
total: z.ZodNumber;
|
|
16388
|
+
}, "strip", z.ZodTypeAny, {
|
|
16389
|
+
total: number;
|
|
16390
|
+
up_to: number;
|
|
16391
|
+
}, {
|
|
16392
|
+
total: number;
|
|
16393
|
+
up_to: number;
|
|
16394
|
+
}>, "many">, {
|
|
16395
|
+
total: number;
|
|
16396
|
+
up_to: number;
|
|
16397
|
+
}[], {
|
|
16398
|
+
total: number;
|
|
16399
|
+
up_to: number;
|
|
16400
|
+
}[]>;
|
|
16401
|
+
}, "strip", z.ZodTypeAny, {
|
|
16402
|
+
mode: "tiered_total";
|
|
16403
|
+
tiers: {
|
|
16404
|
+
total: number;
|
|
16405
|
+
up_to: number;
|
|
16406
|
+
}[];
|
|
16407
|
+
}, {
|
|
16408
|
+
mode: "tiered_total";
|
|
16409
|
+
tiers: {
|
|
16410
|
+
total: number;
|
|
16411
|
+
up_to: number;
|
|
16412
|
+
}[];
|
|
16413
|
+
}>;
|
|
16414
|
+
export declare const zNexFinopsPriceLineSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
16415
|
+
kind: z.ZodLiteral<"usage">;
|
|
16416
|
+
unit_price: z.ZodNumber;
|
|
16417
|
+
service_category: z.ZodString;
|
|
16418
|
+
cap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16419
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16420
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16421
|
+
up_to: z.ZodNumber;
|
|
16422
|
+
total: z.ZodNumber;
|
|
16423
|
+
}, "strip", z.ZodTypeAny, {
|
|
16424
|
+
total: number;
|
|
16425
|
+
up_to: number;
|
|
16426
|
+
}, {
|
|
16427
|
+
total: number;
|
|
16428
|
+
up_to: number;
|
|
16429
|
+
}>, "many">, {
|
|
16430
|
+
total: number;
|
|
16431
|
+
up_to: number;
|
|
16432
|
+
}[], {
|
|
16433
|
+
total: number;
|
|
16434
|
+
up_to: number;
|
|
16435
|
+
}[]>;
|
|
16436
|
+
}, "strip", z.ZodTypeAny, {
|
|
16437
|
+
mode: "tiered_total";
|
|
16438
|
+
tiers: {
|
|
16439
|
+
total: number;
|
|
16440
|
+
up_to: number;
|
|
16441
|
+
}[];
|
|
16442
|
+
}, {
|
|
16443
|
+
mode: "tiered_total";
|
|
16444
|
+
tiers: {
|
|
16445
|
+
total: number;
|
|
16446
|
+
up_to: number;
|
|
16447
|
+
}[];
|
|
16448
|
+
}>>>;
|
|
16449
|
+
}, "strip", z.ZodTypeAny, {
|
|
16450
|
+
kind: "usage";
|
|
16451
|
+
unit_price: number;
|
|
16452
|
+
service_category: string;
|
|
16453
|
+
cap?: {
|
|
16454
|
+
mode: "tiered_total";
|
|
16455
|
+
tiers: {
|
|
16456
|
+
total: number;
|
|
16457
|
+
up_to: number;
|
|
16458
|
+
}[];
|
|
16459
|
+
} | null | undefined;
|
|
16460
|
+
}, {
|
|
16461
|
+
kind: "usage";
|
|
16462
|
+
unit_price: number;
|
|
16463
|
+
service_category: string;
|
|
16464
|
+
cap?: {
|
|
16465
|
+
mode: "tiered_total";
|
|
16466
|
+
tiers: {
|
|
16467
|
+
total: number;
|
|
16468
|
+
up_to: number;
|
|
16469
|
+
}[];
|
|
16470
|
+
} | null | undefined;
|
|
16471
|
+
}>, z.ZodObject<{
|
|
16472
|
+
kind: z.ZodLiteral<"recurring">;
|
|
16473
|
+
amount: z.ZodNumber;
|
|
16474
|
+
service_category: z.ZodString;
|
|
16475
|
+
}, "strip", z.ZodTypeAny, {
|
|
16476
|
+
kind: "recurring";
|
|
16477
|
+
amount: number;
|
|
16478
|
+
service_category: string;
|
|
16479
|
+
}, {
|
|
16480
|
+
kind: "recurring";
|
|
16481
|
+
amount: number;
|
|
16482
|
+
service_category: string;
|
|
16483
|
+
}>, z.ZodObject<{
|
|
16484
|
+
kind: z.ZodLiteral<"disabled">;
|
|
16485
|
+
}, "strip", z.ZodTypeAny, {
|
|
16486
|
+
kind: "disabled";
|
|
16487
|
+
}, {
|
|
16488
|
+
kind: "disabled";
|
|
16489
|
+
}>]>;
|
|
16490
|
+
/** Chave = métrica (usage) ou módulo (recurring); mesmo limite das chaves de `allowances`. */
|
|
16491
|
+
export declare const zNexFinopsPriceLinesSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
16492
|
+
kind: z.ZodLiteral<"usage">;
|
|
16493
|
+
unit_price: z.ZodNumber;
|
|
16494
|
+
service_category: z.ZodString;
|
|
16495
|
+
cap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16496
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16497
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16498
|
+
up_to: z.ZodNumber;
|
|
16499
|
+
total: z.ZodNumber;
|
|
16500
|
+
}, "strip", z.ZodTypeAny, {
|
|
16501
|
+
total: number;
|
|
16502
|
+
up_to: number;
|
|
16503
|
+
}, {
|
|
16504
|
+
total: number;
|
|
16505
|
+
up_to: number;
|
|
16506
|
+
}>, "many">, {
|
|
16507
|
+
total: number;
|
|
16508
|
+
up_to: number;
|
|
16509
|
+
}[], {
|
|
16510
|
+
total: number;
|
|
16511
|
+
up_to: number;
|
|
16512
|
+
}[]>;
|
|
16513
|
+
}, "strip", z.ZodTypeAny, {
|
|
16514
|
+
mode: "tiered_total";
|
|
16515
|
+
tiers: {
|
|
16516
|
+
total: number;
|
|
16517
|
+
up_to: number;
|
|
16518
|
+
}[];
|
|
16519
|
+
}, {
|
|
16520
|
+
mode: "tiered_total";
|
|
16521
|
+
tiers: {
|
|
16522
|
+
total: number;
|
|
16523
|
+
up_to: number;
|
|
16524
|
+
}[];
|
|
16525
|
+
}>>>;
|
|
16526
|
+
}, "strip", z.ZodTypeAny, {
|
|
16527
|
+
kind: "usage";
|
|
16528
|
+
unit_price: number;
|
|
16529
|
+
service_category: string;
|
|
16530
|
+
cap?: {
|
|
16531
|
+
mode: "tiered_total";
|
|
16532
|
+
tiers: {
|
|
16533
|
+
total: number;
|
|
16534
|
+
up_to: number;
|
|
16535
|
+
}[];
|
|
16536
|
+
} | null | undefined;
|
|
16537
|
+
}, {
|
|
16538
|
+
kind: "usage";
|
|
16539
|
+
unit_price: number;
|
|
16540
|
+
service_category: string;
|
|
16541
|
+
cap?: {
|
|
16542
|
+
mode: "tiered_total";
|
|
16543
|
+
tiers: {
|
|
16544
|
+
total: number;
|
|
16545
|
+
up_to: number;
|
|
16546
|
+
}[];
|
|
16547
|
+
} | null | undefined;
|
|
16548
|
+
}>, z.ZodObject<{
|
|
16549
|
+
kind: z.ZodLiteral<"recurring">;
|
|
16550
|
+
amount: z.ZodNumber;
|
|
16551
|
+
service_category: z.ZodString;
|
|
16552
|
+
}, "strip", z.ZodTypeAny, {
|
|
16553
|
+
kind: "recurring";
|
|
16554
|
+
amount: number;
|
|
16555
|
+
service_category: string;
|
|
16556
|
+
}, {
|
|
16557
|
+
kind: "recurring";
|
|
16558
|
+
amount: number;
|
|
16559
|
+
service_category: string;
|
|
16560
|
+
}>, z.ZodObject<{
|
|
16561
|
+
kind: z.ZodLiteral<"disabled">;
|
|
16562
|
+
}, "strip", z.ZodTypeAny, {
|
|
16563
|
+
kind: "disabled";
|
|
16564
|
+
}, {
|
|
16565
|
+
kind: "disabled";
|
|
16566
|
+
}>]>>;
|
|
16567
|
+
/** Create/update de tabela de preço. `lines` substitui o mapa inteiro (como `allowances`). */
|
|
16568
|
+
export declare const zNexFinopsPriceTableWriteSchema: z.ZodObject<{
|
|
16569
|
+
name: z.ZodString;
|
|
16570
|
+
is_default: z.ZodBoolean;
|
|
16571
|
+
inherits_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16572
|
+
lines: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
16573
|
+
kind: z.ZodLiteral<"usage">;
|
|
16574
|
+
unit_price: z.ZodNumber;
|
|
16575
|
+
service_category: z.ZodString;
|
|
16576
|
+
cap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16577
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16578
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16579
|
+
up_to: z.ZodNumber;
|
|
16580
|
+
total: z.ZodNumber;
|
|
16581
|
+
}, "strip", z.ZodTypeAny, {
|
|
16582
|
+
total: number;
|
|
16583
|
+
up_to: number;
|
|
16584
|
+
}, {
|
|
16585
|
+
total: number;
|
|
16586
|
+
up_to: number;
|
|
16587
|
+
}>, "many">, {
|
|
16588
|
+
total: number;
|
|
16589
|
+
up_to: number;
|
|
16590
|
+
}[], {
|
|
16591
|
+
total: number;
|
|
16592
|
+
up_to: number;
|
|
16593
|
+
}[]>;
|
|
16594
|
+
}, "strip", z.ZodTypeAny, {
|
|
16595
|
+
mode: "tiered_total";
|
|
16596
|
+
tiers: {
|
|
16597
|
+
total: number;
|
|
16598
|
+
up_to: number;
|
|
16599
|
+
}[];
|
|
16600
|
+
}, {
|
|
16601
|
+
mode: "tiered_total";
|
|
16602
|
+
tiers: {
|
|
16603
|
+
total: number;
|
|
16604
|
+
up_to: number;
|
|
16605
|
+
}[];
|
|
16606
|
+
}>>>;
|
|
16607
|
+
}, "strip", z.ZodTypeAny, {
|
|
16608
|
+
kind: "usage";
|
|
16609
|
+
unit_price: number;
|
|
16610
|
+
service_category: string;
|
|
16611
|
+
cap?: {
|
|
16612
|
+
mode: "tiered_total";
|
|
16613
|
+
tiers: {
|
|
16614
|
+
total: number;
|
|
16615
|
+
up_to: number;
|
|
16616
|
+
}[];
|
|
16617
|
+
} | null | undefined;
|
|
16618
|
+
}, {
|
|
16619
|
+
kind: "usage";
|
|
16620
|
+
unit_price: number;
|
|
16621
|
+
service_category: string;
|
|
16622
|
+
cap?: {
|
|
16623
|
+
mode: "tiered_total";
|
|
16624
|
+
tiers: {
|
|
16625
|
+
total: number;
|
|
16626
|
+
up_to: number;
|
|
16627
|
+
}[];
|
|
16628
|
+
} | null | undefined;
|
|
16629
|
+
}>, z.ZodObject<{
|
|
16630
|
+
kind: z.ZodLiteral<"recurring">;
|
|
16631
|
+
amount: z.ZodNumber;
|
|
16632
|
+
service_category: z.ZodString;
|
|
16633
|
+
}, "strip", z.ZodTypeAny, {
|
|
16634
|
+
kind: "recurring";
|
|
16635
|
+
amount: number;
|
|
16636
|
+
service_category: string;
|
|
16637
|
+
}, {
|
|
16638
|
+
kind: "recurring";
|
|
16639
|
+
amount: number;
|
|
16640
|
+
service_category: string;
|
|
16641
|
+
}>, z.ZodObject<{
|
|
16642
|
+
kind: z.ZodLiteral<"disabled">;
|
|
16643
|
+
}, "strip", z.ZodTypeAny, {
|
|
16644
|
+
kind: "disabled";
|
|
16645
|
+
}, {
|
|
16646
|
+
kind: "disabled";
|
|
16647
|
+
}>]>>;
|
|
16648
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16649
|
+
}, "strip", z.ZodTypeAny, {
|
|
16650
|
+
name: string;
|
|
16651
|
+
is_default: boolean;
|
|
16652
|
+
lines: Record<string, {
|
|
16653
|
+
kind: "usage";
|
|
16654
|
+
unit_price: number;
|
|
16655
|
+
service_category: string;
|
|
16656
|
+
cap?: {
|
|
16657
|
+
mode: "tiered_total";
|
|
16658
|
+
tiers: {
|
|
16659
|
+
total: number;
|
|
16660
|
+
up_to: number;
|
|
16661
|
+
}[];
|
|
16662
|
+
} | null | undefined;
|
|
16663
|
+
} | {
|
|
16664
|
+
kind: "recurring";
|
|
16665
|
+
amount: number;
|
|
16666
|
+
service_category: string;
|
|
16667
|
+
} | {
|
|
16668
|
+
kind: "disabled";
|
|
16669
|
+
}>;
|
|
16670
|
+
notes?: string | null | undefined;
|
|
16671
|
+
inherits_from?: string | null | undefined;
|
|
16672
|
+
}, {
|
|
16673
|
+
name: string;
|
|
16674
|
+
is_default: boolean;
|
|
16675
|
+
lines: Record<string, {
|
|
16676
|
+
kind: "usage";
|
|
16677
|
+
unit_price: number;
|
|
16678
|
+
service_category: string;
|
|
16679
|
+
cap?: {
|
|
16680
|
+
mode: "tiered_total";
|
|
16681
|
+
tiers: {
|
|
16682
|
+
total: number;
|
|
16683
|
+
up_to: number;
|
|
16684
|
+
}[];
|
|
16685
|
+
} | null | undefined;
|
|
16686
|
+
} | {
|
|
16687
|
+
kind: "recurring";
|
|
16688
|
+
amount: number;
|
|
16689
|
+
service_category: string;
|
|
16690
|
+
} | {
|
|
16691
|
+
kind: "disabled";
|
|
16692
|
+
}>;
|
|
16693
|
+
notes?: string | null | undefined;
|
|
16694
|
+
inherits_from?: string | null | undefined;
|
|
16368
16695
|
}>;
|
|
16369
16696
|
export declare const zNexFinopsPaymentMethodKindSchema: z.ZodEnum<["asaas_subscription", "asaas_card_token"]>;
|
|
16370
16697
|
export declare const zNexFinopsPaymentMethodStatusSchema: z.ZodEnum<["active", "failing", "inactive", "revoked"]>;
|