@_henriquewilson/gabirubi-domain 1.3.78 → 1.3.79
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/model/integrada/order.d.mts +199 -6
- package/dist/model/integrada/order.d.ts +199 -6
- package/dist/model/integrada/order.js +30 -1
- package/dist/model/integrada/order.js.map +1 -1
- package/dist/model/integrada/order.mjs +27 -2
- package/dist/model/integrada/order.mjs.map +1 -1
- package/dist/model/integrada/product.d.mts +12 -12
- package/dist/model/integrada/product.d.ts +12 -12
- package/dist/model/intercom/conversation.d.mts +325 -325
- package/dist/model/intercom/conversation.d.ts +325 -325
- package/dist/model/intercom/hook.d.mts +3209 -3209
- package/dist/model/intercom/hook.d.ts +3209 -3209
- package/dist/model/iugu/iugu-charge.d.mts +2 -2
- package/dist/model/iugu/iugu-charge.d.ts +2 -2
- package/dist/model/iugu/iugu-client.d.mts +8 -8
- package/dist/model/iugu/iugu-client.d.ts +8 -8
- package/dist/model/iugu/iugu-pix.d.mts +80 -80
- package/dist/model/iugu/iugu-pix.d.ts +80 -80
- package/dist/model/store/shipping.js +26 -1
- package/dist/model/store/shipping.js.map +1 -1
- package/dist/model/store/shipping.mjs +26 -1
- package/dist/model/store/shipping.mjs.map +1 -1
- package/dist/test/store.test.js +26 -1
- package/dist/test/store.test.js.map +1 -1
- package/dist/test/store.test.mjs +26 -1
- package/dist/test/store.test.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -506,6 +506,79 @@ declare const CustomShippingInfoSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
506
506
|
name?: string | undefined;
|
|
507
507
|
insurance?: number | undefined;
|
|
508
508
|
}>;
|
|
509
|
+
declare const CupomSchema: z.ZodObject<{
|
|
510
|
+
aplicar_no_total: z.ZodBoolean;
|
|
511
|
+
ativo: z.ZodBoolean;
|
|
512
|
+
categorias: z.ZodArray<z.ZodString, "many">;
|
|
513
|
+
clientes: z.ZodArray<z.ZodString, "many">;
|
|
514
|
+
codigo: z.ZodString;
|
|
515
|
+
condicao_cliente: z.ZodString;
|
|
516
|
+
condicao_produto: z.ZodString;
|
|
517
|
+
cumulativo: z.ZodBoolean;
|
|
518
|
+
data_criacao: z.ZodString;
|
|
519
|
+
data_modificacao: z.ZodString;
|
|
520
|
+
descricao: z.ZodString;
|
|
521
|
+
grupos: z.ZodArray<z.ZodString, "many">;
|
|
522
|
+
id: z.ZodNumber;
|
|
523
|
+
id_externo: z.ZodAny;
|
|
524
|
+
produtos: z.ZodArray<z.ZodString, "many">;
|
|
525
|
+
quantidade: z.ZodNumber;
|
|
526
|
+
quantidade_por_cliente: z.ZodNumber;
|
|
527
|
+
quantidade_usada: z.ZodNumber;
|
|
528
|
+
resource_uri: z.ZodString;
|
|
529
|
+
tipo: z.ZodString;
|
|
530
|
+
validade: z.ZodString;
|
|
531
|
+
valor: z.ZodString;
|
|
532
|
+
valor_minimo: z.ZodString;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
id: number;
|
|
535
|
+
codigo: string;
|
|
536
|
+
tipo: string;
|
|
537
|
+
descricao: string;
|
|
538
|
+
valor: string;
|
|
539
|
+
resource_uri: string;
|
|
540
|
+
ativo: boolean;
|
|
541
|
+
data_criacao: string;
|
|
542
|
+
data_modificacao: string;
|
|
543
|
+
quantidade: number;
|
|
544
|
+
aplicar_no_total: boolean;
|
|
545
|
+
categorias: string[];
|
|
546
|
+
clientes: string[];
|
|
547
|
+
condicao_cliente: string;
|
|
548
|
+
condicao_produto: string;
|
|
549
|
+
cumulativo: boolean;
|
|
550
|
+
grupos: string[];
|
|
551
|
+
produtos: string[];
|
|
552
|
+
quantidade_por_cliente: number;
|
|
553
|
+
quantidade_usada: number;
|
|
554
|
+
validade: string;
|
|
555
|
+
valor_minimo: string;
|
|
556
|
+
id_externo?: any;
|
|
557
|
+
}, {
|
|
558
|
+
id: number;
|
|
559
|
+
codigo: string;
|
|
560
|
+
tipo: string;
|
|
561
|
+
descricao: string;
|
|
562
|
+
valor: string;
|
|
563
|
+
resource_uri: string;
|
|
564
|
+
ativo: boolean;
|
|
565
|
+
data_criacao: string;
|
|
566
|
+
data_modificacao: string;
|
|
567
|
+
quantidade: number;
|
|
568
|
+
aplicar_no_total: boolean;
|
|
569
|
+
categorias: string[];
|
|
570
|
+
clientes: string[];
|
|
571
|
+
condicao_cliente: string;
|
|
572
|
+
condicao_produto: string;
|
|
573
|
+
cumulativo: boolean;
|
|
574
|
+
grupos: string[];
|
|
575
|
+
produtos: string[];
|
|
576
|
+
quantidade_por_cliente: number;
|
|
577
|
+
quantidade_usada: number;
|
|
578
|
+
validade: string;
|
|
579
|
+
valor_minimo: string;
|
|
580
|
+
id_externo?: any;
|
|
581
|
+
}>;
|
|
509
582
|
declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
510
583
|
id: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, unknown>;
|
|
511
584
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>>>;
|
|
@@ -550,7 +623,79 @@ declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
550
623
|
razao_social?: any;
|
|
551
624
|
}>;
|
|
552
625
|
cliente_obs: z.ZodAny;
|
|
553
|
-
cupom_desconto: z.
|
|
626
|
+
cupom_desconto: z.ZodOptional<z.ZodObject<{
|
|
627
|
+
aplicar_no_total: z.ZodBoolean;
|
|
628
|
+
ativo: z.ZodBoolean;
|
|
629
|
+
categorias: z.ZodArray<z.ZodString, "many">;
|
|
630
|
+
clientes: z.ZodArray<z.ZodString, "many">;
|
|
631
|
+
codigo: z.ZodString;
|
|
632
|
+
condicao_cliente: z.ZodString;
|
|
633
|
+
condicao_produto: z.ZodString;
|
|
634
|
+
cumulativo: z.ZodBoolean;
|
|
635
|
+
data_criacao: z.ZodString;
|
|
636
|
+
data_modificacao: z.ZodString;
|
|
637
|
+
descricao: z.ZodString;
|
|
638
|
+
grupos: z.ZodArray<z.ZodString, "many">;
|
|
639
|
+
id: z.ZodNumber;
|
|
640
|
+
id_externo: z.ZodAny;
|
|
641
|
+
produtos: z.ZodArray<z.ZodString, "many">;
|
|
642
|
+
quantidade: z.ZodNumber;
|
|
643
|
+
quantidade_por_cliente: z.ZodNumber;
|
|
644
|
+
quantidade_usada: z.ZodNumber;
|
|
645
|
+
resource_uri: z.ZodString;
|
|
646
|
+
tipo: z.ZodString;
|
|
647
|
+
validade: z.ZodString;
|
|
648
|
+
valor: z.ZodString;
|
|
649
|
+
valor_minimo: z.ZodString;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
id: number;
|
|
652
|
+
codigo: string;
|
|
653
|
+
tipo: string;
|
|
654
|
+
descricao: string;
|
|
655
|
+
valor: string;
|
|
656
|
+
resource_uri: string;
|
|
657
|
+
ativo: boolean;
|
|
658
|
+
data_criacao: string;
|
|
659
|
+
data_modificacao: string;
|
|
660
|
+
quantidade: number;
|
|
661
|
+
aplicar_no_total: boolean;
|
|
662
|
+
categorias: string[];
|
|
663
|
+
clientes: string[];
|
|
664
|
+
condicao_cliente: string;
|
|
665
|
+
condicao_produto: string;
|
|
666
|
+
cumulativo: boolean;
|
|
667
|
+
grupos: string[];
|
|
668
|
+
produtos: string[];
|
|
669
|
+
quantidade_por_cliente: number;
|
|
670
|
+
quantidade_usada: number;
|
|
671
|
+
validade: string;
|
|
672
|
+
valor_minimo: string;
|
|
673
|
+
id_externo?: any;
|
|
674
|
+
}, {
|
|
675
|
+
id: number;
|
|
676
|
+
codigo: string;
|
|
677
|
+
tipo: string;
|
|
678
|
+
descricao: string;
|
|
679
|
+
valor: string;
|
|
680
|
+
resource_uri: string;
|
|
681
|
+
ativo: boolean;
|
|
682
|
+
data_criacao: string;
|
|
683
|
+
data_modificacao: string;
|
|
684
|
+
quantidade: number;
|
|
685
|
+
aplicar_no_total: boolean;
|
|
686
|
+
categorias: string[];
|
|
687
|
+
clientes: string[];
|
|
688
|
+
condicao_cliente: string;
|
|
689
|
+
condicao_produto: string;
|
|
690
|
+
cumulativo: boolean;
|
|
691
|
+
grupos: string[];
|
|
692
|
+
produtos: string[];
|
|
693
|
+
quantidade_por_cliente: number;
|
|
694
|
+
quantidade_usada: number;
|
|
695
|
+
validade: string;
|
|
696
|
+
valor_minimo: string;
|
|
697
|
+
id_externo?: any;
|
|
698
|
+
}>>;
|
|
554
699
|
data_criacao: z.ZodString;
|
|
555
700
|
data_expiracao: z.ZodString;
|
|
556
701
|
data_modificacao: z.ZodString;
|
|
@@ -2895,10 +3040,34 @@ declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2895
3040
|
name?: string | undefined;
|
|
2896
3041
|
insurance?: number | undefined;
|
|
2897
3042
|
} | undefined;
|
|
3043
|
+
id_externo?: any;
|
|
2898
3044
|
cliente_obs?: any;
|
|
2899
|
-
cupom_desconto?:
|
|
3045
|
+
cupom_desconto?: {
|
|
3046
|
+
id: number;
|
|
3047
|
+
codigo: string;
|
|
3048
|
+
tipo: string;
|
|
3049
|
+
descricao: string;
|
|
3050
|
+
valor: string;
|
|
3051
|
+
resource_uri: string;
|
|
3052
|
+
ativo: boolean;
|
|
3053
|
+
data_criacao: string;
|
|
3054
|
+
data_modificacao: string;
|
|
3055
|
+
quantidade: number;
|
|
3056
|
+
aplicar_no_total: boolean;
|
|
3057
|
+
categorias: string[];
|
|
3058
|
+
clientes: string[];
|
|
3059
|
+
condicao_cliente: string;
|
|
3060
|
+
condicao_produto: string;
|
|
3061
|
+
cumulativo: boolean;
|
|
3062
|
+
grupos: string[];
|
|
3063
|
+
produtos: string[];
|
|
3064
|
+
quantidade_por_cliente: number;
|
|
3065
|
+
quantidade_usada: number;
|
|
3066
|
+
validade: string;
|
|
3067
|
+
valor_minimo: string;
|
|
3068
|
+
id_externo?: any;
|
|
3069
|
+
} | undefined;
|
|
2900
3070
|
id_anymarket?: any;
|
|
2901
|
-
id_externo?: any;
|
|
2902
3071
|
integration_data?: any;
|
|
2903
3072
|
updateAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
2904
3073
|
utm_campaign?: any;
|
|
@@ -3345,10 +3514,34 @@ declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3345
3514
|
name?: string | undefined;
|
|
3346
3515
|
insurance?: number | undefined;
|
|
3347
3516
|
} | undefined;
|
|
3517
|
+
id_externo?: any;
|
|
3348
3518
|
cliente_obs?: any;
|
|
3349
|
-
cupom_desconto?:
|
|
3519
|
+
cupom_desconto?: {
|
|
3520
|
+
id: number;
|
|
3521
|
+
codigo: string;
|
|
3522
|
+
tipo: string;
|
|
3523
|
+
descricao: string;
|
|
3524
|
+
valor: string;
|
|
3525
|
+
resource_uri: string;
|
|
3526
|
+
ativo: boolean;
|
|
3527
|
+
data_criacao: string;
|
|
3528
|
+
data_modificacao: string;
|
|
3529
|
+
quantidade: number;
|
|
3530
|
+
aplicar_no_total: boolean;
|
|
3531
|
+
categorias: string[];
|
|
3532
|
+
clientes: string[];
|
|
3533
|
+
condicao_cliente: string;
|
|
3534
|
+
condicao_produto: string;
|
|
3535
|
+
cumulativo: boolean;
|
|
3536
|
+
grupos: string[];
|
|
3537
|
+
produtos: string[];
|
|
3538
|
+
quantidade_por_cliente: number;
|
|
3539
|
+
quantidade_usada: number;
|
|
3540
|
+
validade: string;
|
|
3541
|
+
valor_minimo: string;
|
|
3542
|
+
id_externo?: any;
|
|
3543
|
+
} | undefined;
|
|
3350
3544
|
id_anymarket?: any;
|
|
3351
|
-
id_externo?: any;
|
|
3352
3545
|
integration_data?: any;
|
|
3353
3546
|
updateAt?: unknown;
|
|
3354
3547
|
utm_campaign?: any;
|
|
@@ -3656,4 +3849,4 @@ type OrderStatus = z.infer<typeof SituacaoSchema>;
|
|
|
3656
3849
|
type AddressShipping = z.infer<typeof EnderecoEntregaSchema>;
|
|
3657
3850
|
type CustomerOrder = z.infer<typeof CustomerOrderSchema>;
|
|
3658
3851
|
|
|
3659
|
-
export { type AddressShipping, ConfiguracoesSchema, type CustomShippingInfo, CustomShippingInfoSchema, type CustomerOrder, CustomerOrderSchema, EnderecoEntregaSchema, EnvioSchema, FormaEnvioSchema, type Item, ItemSchema, type Order, OrderSchema, type OrderStatus, ParcelamentoSchema, SituacaoSchema, VariacaoSchema, formaPagamentoSchema, pagamentoSchema, situcaoCodigo };
|
|
3852
|
+
export { type AddressShipping, ConfiguracoesSchema, CupomSchema, type CustomShippingInfo, CustomShippingInfoSchema, type CustomerOrder, CustomerOrderSchema, EnderecoEntregaSchema, EnvioSchema, FormaEnvioSchema, type Item, ItemSchema, type Order, OrderSchema, type OrderStatus, ParcelamentoSchema, SituacaoSchema, VariacaoSchema, formaPagamentoSchema, pagamentoSchema, situcaoCodigo };
|
|
@@ -506,6 +506,79 @@ declare const CustomShippingInfoSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
506
506
|
name?: string | undefined;
|
|
507
507
|
insurance?: number | undefined;
|
|
508
508
|
}>;
|
|
509
|
+
declare const CupomSchema: z.ZodObject<{
|
|
510
|
+
aplicar_no_total: z.ZodBoolean;
|
|
511
|
+
ativo: z.ZodBoolean;
|
|
512
|
+
categorias: z.ZodArray<z.ZodString, "many">;
|
|
513
|
+
clientes: z.ZodArray<z.ZodString, "many">;
|
|
514
|
+
codigo: z.ZodString;
|
|
515
|
+
condicao_cliente: z.ZodString;
|
|
516
|
+
condicao_produto: z.ZodString;
|
|
517
|
+
cumulativo: z.ZodBoolean;
|
|
518
|
+
data_criacao: z.ZodString;
|
|
519
|
+
data_modificacao: z.ZodString;
|
|
520
|
+
descricao: z.ZodString;
|
|
521
|
+
grupos: z.ZodArray<z.ZodString, "many">;
|
|
522
|
+
id: z.ZodNumber;
|
|
523
|
+
id_externo: z.ZodAny;
|
|
524
|
+
produtos: z.ZodArray<z.ZodString, "many">;
|
|
525
|
+
quantidade: z.ZodNumber;
|
|
526
|
+
quantidade_por_cliente: z.ZodNumber;
|
|
527
|
+
quantidade_usada: z.ZodNumber;
|
|
528
|
+
resource_uri: z.ZodString;
|
|
529
|
+
tipo: z.ZodString;
|
|
530
|
+
validade: z.ZodString;
|
|
531
|
+
valor: z.ZodString;
|
|
532
|
+
valor_minimo: z.ZodString;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
id: number;
|
|
535
|
+
codigo: string;
|
|
536
|
+
tipo: string;
|
|
537
|
+
descricao: string;
|
|
538
|
+
valor: string;
|
|
539
|
+
resource_uri: string;
|
|
540
|
+
ativo: boolean;
|
|
541
|
+
data_criacao: string;
|
|
542
|
+
data_modificacao: string;
|
|
543
|
+
quantidade: number;
|
|
544
|
+
aplicar_no_total: boolean;
|
|
545
|
+
categorias: string[];
|
|
546
|
+
clientes: string[];
|
|
547
|
+
condicao_cliente: string;
|
|
548
|
+
condicao_produto: string;
|
|
549
|
+
cumulativo: boolean;
|
|
550
|
+
grupos: string[];
|
|
551
|
+
produtos: string[];
|
|
552
|
+
quantidade_por_cliente: number;
|
|
553
|
+
quantidade_usada: number;
|
|
554
|
+
validade: string;
|
|
555
|
+
valor_minimo: string;
|
|
556
|
+
id_externo?: any;
|
|
557
|
+
}, {
|
|
558
|
+
id: number;
|
|
559
|
+
codigo: string;
|
|
560
|
+
tipo: string;
|
|
561
|
+
descricao: string;
|
|
562
|
+
valor: string;
|
|
563
|
+
resource_uri: string;
|
|
564
|
+
ativo: boolean;
|
|
565
|
+
data_criacao: string;
|
|
566
|
+
data_modificacao: string;
|
|
567
|
+
quantidade: number;
|
|
568
|
+
aplicar_no_total: boolean;
|
|
569
|
+
categorias: string[];
|
|
570
|
+
clientes: string[];
|
|
571
|
+
condicao_cliente: string;
|
|
572
|
+
condicao_produto: string;
|
|
573
|
+
cumulativo: boolean;
|
|
574
|
+
grupos: string[];
|
|
575
|
+
produtos: string[];
|
|
576
|
+
quantidade_por_cliente: number;
|
|
577
|
+
quantidade_usada: number;
|
|
578
|
+
validade: string;
|
|
579
|
+
valor_minimo: string;
|
|
580
|
+
id_externo?: any;
|
|
581
|
+
}>;
|
|
509
582
|
declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
510
583
|
id: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, unknown>;
|
|
511
584
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>>>;
|
|
@@ -550,7 +623,79 @@ declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
550
623
|
razao_social?: any;
|
|
551
624
|
}>;
|
|
552
625
|
cliente_obs: z.ZodAny;
|
|
553
|
-
cupom_desconto: z.
|
|
626
|
+
cupom_desconto: z.ZodOptional<z.ZodObject<{
|
|
627
|
+
aplicar_no_total: z.ZodBoolean;
|
|
628
|
+
ativo: z.ZodBoolean;
|
|
629
|
+
categorias: z.ZodArray<z.ZodString, "many">;
|
|
630
|
+
clientes: z.ZodArray<z.ZodString, "many">;
|
|
631
|
+
codigo: z.ZodString;
|
|
632
|
+
condicao_cliente: z.ZodString;
|
|
633
|
+
condicao_produto: z.ZodString;
|
|
634
|
+
cumulativo: z.ZodBoolean;
|
|
635
|
+
data_criacao: z.ZodString;
|
|
636
|
+
data_modificacao: z.ZodString;
|
|
637
|
+
descricao: z.ZodString;
|
|
638
|
+
grupos: z.ZodArray<z.ZodString, "many">;
|
|
639
|
+
id: z.ZodNumber;
|
|
640
|
+
id_externo: z.ZodAny;
|
|
641
|
+
produtos: z.ZodArray<z.ZodString, "many">;
|
|
642
|
+
quantidade: z.ZodNumber;
|
|
643
|
+
quantidade_por_cliente: z.ZodNumber;
|
|
644
|
+
quantidade_usada: z.ZodNumber;
|
|
645
|
+
resource_uri: z.ZodString;
|
|
646
|
+
tipo: z.ZodString;
|
|
647
|
+
validade: z.ZodString;
|
|
648
|
+
valor: z.ZodString;
|
|
649
|
+
valor_minimo: z.ZodString;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
id: number;
|
|
652
|
+
codigo: string;
|
|
653
|
+
tipo: string;
|
|
654
|
+
descricao: string;
|
|
655
|
+
valor: string;
|
|
656
|
+
resource_uri: string;
|
|
657
|
+
ativo: boolean;
|
|
658
|
+
data_criacao: string;
|
|
659
|
+
data_modificacao: string;
|
|
660
|
+
quantidade: number;
|
|
661
|
+
aplicar_no_total: boolean;
|
|
662
|
+
categorias: string[];
|
|
663
|
+
clientes: string[];
|
|
664
|
+
condicao_cliente: string;
|
|
665
|
+
condicao_produto: string;
|
|
666
|
+
cumulativo: boolean;
|
|
667
|
+
grupos: string[];
|
|
668
|
+
produtos: string[];
|
|
669
|
+
quantidade_por_cliente: number;
|
|
670
|
+
quantidade_usada: number;
|
|
671
|
+
validade: string;
|
|
672
|
+
valor_minimo: string;
|
|
673
|
+
id_externo?: any;
|
|
674
|
+
}, {
|
|
675
|
+
id: number;
|
|
676
|
+
codigo: string;
|
|
677
|
+
tipo: string;
|
|
678
|
+
descricao: string;
|
|
679
|
+
valor: string;
|
|
680
|
+
resource_uri: string;
|
|
681
|
+
ativo: boolean;
|
|
682
|
+
data_criacao: string;
|
|
683
|
+
data_modificacao: string;
|
|
684
|
+
quantidade: number;
|
|
685
|
+
aplicar_no_total: boolean;
|
|
686
|
+
categorias: string[];
|
|
687
|
+
clientes: string[];
|
|
688
|
+
condicao_cliente: string;
|
|
689
|
+
condicao_produto: string;
|
|
690
|
+
cumulativo: boolean;
|
|
691
|
+
grupos: string[];
|
|
692
|
+
produtos: string[];
|
|
693
|
+
quantidade_por_cliente: number;
|
|
694
|
+
quantidade_usada: number;
|
|
695
|
+
validade: string;
|
|
696
|
+
valor_minimo: string;
|
|
697
|
+
id_externo?: any;
|
|
698
|
+
}>>;
|
|
554
699
|
data_criacao: z.ZodString;
|
|
555
700
|
data_expiracao: z.ZodString;
|
|
556
701
|
data_modificacao: z.ZodString;
|
|
@@ -2895,10 +3040,34 @@ declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2895
3040
|
name?: string | undefined;
|
|
2896
3041
|
insurance?: number | undefined;
|
|
2897
3042
|
} | undefined;
|
|
3043
|
+
id_externo?: any;
|
|
2898
3044
|
cliente_obs?: any;
|
|
2899
|
-
cupom_desconto?:
|
|
3045
|
+
cupom_desconto?: {
|
|
3046
|
+
id: number;
|
|
3047
|
+
codigo: string;
|
|
3048
|
+
tipo: string;
|
|
3049
|
+
descricao: string;
|
|
3050
|
+
valor: string;
|
|
3051
|
+
resource_uri: string;
|
|
3052
|
+
ativo: boolean;
|
|
3053
|
+
data_criacao: string;
|
|
3054
|
+
data_modificacao: string;
|
|
3055
|
+
quantidade: number;
|
|
3056
|
+
aplicar_no_total: boolean;
|
|
3057
|
+
categorias: string[];
|
|
3058
|
+
clientes: string[];
|
|
3059
|
+
condicao_cliente: string;
|
|
3060
|
+
condicao_produto: string;
|
|
3061
|
+
cumulativo: boolean;
|
|
3062
|
+
grupos: string[];
|
|
3063
|
+
produtos: string[];
|
|
3064
|
+
quantidade_por_cliente: number;
|
|
3065
|
+
quantidade_usada: number;
|
|
3066
|
+
validade: string;
|
|
3067
|
+
valor_minimo: string;
|
|
3068
|
+
id_externo?: any;
|
|
3069
|
+
} | undefined;
|
|
2900
3070
|
id_anymarket?: any;
|
|
2901
|
-
id_externo?: any;
|
|
2902
3071
|
integration_data?: any;
|
|
2903
3072
|
updateAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
2904
3073
|
utm_campaign?: any;
|
|
@@ -3345,10 +3514,34 @@ declare const OrderSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3345
3514
|
name?: string | undefined;
|
|
3346
3515
|
insurance?: number | undefined;
|
|
3347
3516
|
} | undefined;
|
|
3517
|
+
id_externo?: any;
|
|
3348
3518
|
cliente_obs?: any;
|
|
3349
|
-
cupom_desconto?:
|
|
3519
|
+
cupom_desconto?: {
|
|
3520
|
+
id: number;
|
|
3521
|
+
codigo: string;
|
|
3522
|
+
tipo: string;
|
|
3523
|
+
descricao: string;
|
|
3524
|
+
valor: string;
|
|
3525
|
+
resource_uri: string;
|
|
3526
|
+
ativo: boolean;
|
|
3527
|
+
data_criacao: string;
|
|
3528
|
+
data_modificacao: string;
|
|
3529
|
+
quantidade: number;
|
|
3530
|
+
aplicar_no_total: boolean;
|
|
3531
|
+
categorias: string[];
|
|
3532
|
+
clientes: string[];
|
|
3533
|
+
condicao_cliente: string;
|
|
3534
|
+
condicao_produto: string;
|
|
3535
|
+
cumulativo: boolean;
|
|
3536
|
+
grupos: string[];
|
|
3537
|
+
produtos: string[];
|
|
3538
|
+
quantidade_por_cliente: number;
|
|
3539
|
+
quantidade_usada: number;
|
|
3540
|
+
validade: string;
|
|
3541
|
+
valor_minimo: string;
|
|
3542
|
+
id_externo?: any;
|
|
3543
|
+
} | undefined;
|
|
3350
3544
|
id_anymarket?: any;
|
|
3351
|
-
id_externo?: any;
|
|
3352
3545
|
integration_data?: any;
|
|
3353
3546
|
updateAt?: unknown;
|
|
3354
3547
|
utm_campaign?: any;
|
|
@@ -3656,4 +3849,4 @@ type OrderStatus = z.infer<typeof SituacaoSchema>;
|
|
|
3656
3849
|
type AddressShipping = z.infer<typeof EnderecoEntregaSchema>;
|
|
3657
3850
|
type CustomerOrder = z.infer<typeof CustomerOrderSchema>;
|
|
3658
3851
|
|
|
3659
|
-
export { type AddressShipping, ConfiguracoesSchema, type CustomShippingInfo, CustomShippingInfoSchema, type CustomerOrder, CustomerOrderSchema, EnderecoEntregaSchema, EnvioSchema, FormaEnvioSchema, type Item, ItemSchema, type Order, OrderSchema, type OrderStatus, ParcelamentoSchema, SituacaoSchema, VariacaoSchema, formaPagamentoSchema, pagamentoSchema, situcaoCodigo };
|
|
3852
|
+
export { type AddressShipping, ConfiguracoesSchema, CupomSchema, type CustomShippingInfo, CustomShippingInfoSchema, type CustomerOrder, CustomerOrderSchema, EnderecoEntregaSchema, EnvioSchema, FormaEnvioSchema, type Item, ItemSchema, type Order, OrderSchema, type OrderStatus, ParcelamentoSchema, SituacaoSchema, VariacaoSchema, formaPagamentoSchema, pagamentoSchema, situcaoCodigo };
|
|
@@ -63,6 +63,9 @@ __export(order_exports, {
|
|
|
63
63
|
ConfiguracoesSchema: function() {
|
|
64
64
|
return ConfiguracoesSchema;
|
|
65
65
|
},
|
|
66
|
+
CupomSchema: function() {
|
|
67
|
+
return CupomSchema;
|
|
68
|
+
},
|
|
66
69
|
CustomShippingInfoSchema: function() {
|
|
67
70
|
return CustomShippingInfoSchema;
|
|
68
71
|
},
|
|
@@ -595,10 +598,35 @@ var CustomShippingInfoSchema = ModelSchema.extend({
|
|
|
595
598
|
name: import_zod10.z.string().optional(),
|
|
596
599
|
insurance: import_zod10.z.number().optional()
|
|
597
600
|
});
|
|
601
|
+
var CupomSchema = import_zod10.z.object({
|
|
602
|
+
aplicar_no_total: import_zod10.z.boolean(),
|
|
603
|
+
ativo: import_zod10.z.boolean(),
|
|
604
|
+
categorias: import_zod10.z.array(import_zod10.z.string()),
|
|
605
|
+
clientes: import_zod10.z.array(import_zod10.z.string()),
|
|
606
|
+
codigo: import_zod10.z.string(),
|
|
607
|
+
condicao_cliente: import_zod10.z.string(),
|
|
608
|
+
condicao_produto: import_zod10.z.string(),
|
|
609
|
+
cumulativo: import_zod10.z.boolean(),
|
|
610
|
+
data_criacao: import_zod10.z.string(),
|
|
611
|
+
data_modificacao: import_zod10.z.string(),
|
|
612
|
+
descricao: import_zod10.z.string(),
|
|
613
|
+
grupos: import_zod10.z.array(import_zod10.z.string()),
|
|
614
|
+
id: import_zod10.z.number(),
|
|
615
|
+
id_externo: import_zod10.z.any(),
|
|
616
|
+
produtos: import_zod10.z.array(import_zod10.z.string()),
|
|
617
|
+
quantidade: import_zod10.z.number(),
|
|
618
|
+
quantidade_por_cliente: import_zod10.z.number(),
|
|
619
|
+
quantidade_usada: import_zod10.z.number(),
|
|
620
|
+
resource_uri: import_zod10.z.string(),
|
|
621
|
+
tipo: import_zod10.z.string(),
|
|
622
|
+
validade: import_zod10.z.string(),
|
|
623
|
+
valor: import_zod10.z.string(),
|
|
624
|
+
valor_minimo: import_zod10.z.string()
|
|
625
|
+
});
|
|
598
626
|
var OrderSchema = ModelSchema.extend({
|
|
599
627
|
cliente: CustomerOrderSchema,
|
|
600
628
|
cliente_obs: import_zod10.z.any(),
|
|
601
|
-
cupom_desconto:
|
|
629
|
+
cupom_desconto: CupomSchema.optional(),
|
|
602
630
|
data_criacao: import_zod10.z.string(),
|
|
603
631
|
data_expiracao: import_zod10.z.string(),
|
|
604
632
|
data_modificacao: import_zod10.z.string(),
|
|
@@ -630,6 +658,7 @@ var OrderSchema = ModelSchema.extend({
|
|
|
630
658
|
// Annotate the CommonJS export names for ESM import in node:
|
|
631
659
|
0 && (module.exports = {
|
|
632
660
|
ConfiguracoesSchema: ConfiguracoesSchema,
|
|
661
|
+
CupomSchema: CupomSchema,
|
|
633
662
|
CustomShippingInfoSchema: CustomShippingInfoSchema,
|
|
634
663
|
CustomerOrderSchema: CustomerOrderSchema,
|
|
635
664
|
EnderecoEntregaSchema: EnderecoEntregaSchema,
|