@talkplay/shared-types 1.0.77 → 1.0.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/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,8 @@ declare const JobsEnum: {
|
|
|
37
37
|
type JobsEnum = Enum<typeof JobsEnum>;
|
|
38
38
|
|
|
39
39
|
declare const TkplayErrorCodesEnum: {
|
|
40
|
+
CNPJ_INVALID: string;
|
|
41
|
+
CPF_INVALID: string;
|
|
40
42
|
EFI_ERROR: string;
|
|
41
43
|
VALIDATION_ERROR: string;
|
|
42
44
|
MODULE_NAME_IS_TAKEN: string;
|
|
@@ -1449,7 +1451,6 @@ type VerifyEmailAvailabilityResponse = {
|
|
|
1449
1451
|
};
|
|
1450
1452
|
|
|
1451
1453
|
type ListVoiceProfilesParams = PaginationParams & {
|
|
1452
|
-
name?: string;
|
|
1453
1454
|
source?: VoiceProfileSourcesEnum;
|
|
1454
1455
|
provider?: TtsProvidersEnum;
|
|
1455
1456
|
casterId?: string;
|
|
@@ -1474,7 +1475,7 @@ type ListVoiceTracksParams = PaginationParams & {
|
|
|
1474
1475
|
};
|
|
1475
1476
|
type ListVoiceTracksResponse = PaginatedResponseDTO<VoiceTrackEntity>;
|
|
1476
1477
|
|
|
1477
|
-
type ListCastersParams = Omit<ListVoiceProfilesParams, "
|
|
1478
|
+
type ListCastersParams = Omit<ListVoiceProfilesParams, "source" | "provider" | "casterId"> & {
|
|
1478
1479
|
name?: string;
|
|
1479
1480
|
email?: string;
|
|
1480
1481
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ declare const JobsEnum: {
|
|
|
37
37
|
type JobsEnum = Enum<typeof JobsEnum>;
|
|
38
38
|
|
|
39
39
|
declare const TkplayErrorCodesEnum: {
|
|
40
|
+
CNPJ_INVALID: string;
|
|
41
|
+
CPF_INVALID: string;
|
|
40
42
|
EFI_ERROR: string;
|
|
41
43
|
VALIDATION_ERROR: string;
|
|
42
44
|
MODULE_NAME_IS_TAKEN: string;
|
|
@@ -1449,7 +1451,6 @@ type VerifyEmailAvailabilityResponse = {
|
|
|
1449
1451
|
};
|
|
1450
1452
|
|
|
1451
1453
|
type ListVoiceProfilesParams = PaginationParams & {
|
|
1452
|
-
name?: string;
|
|
1453
1454
|
source?: VoiceProfileSourcesEnum;
|
|
1454
1455
|
provider?: TtsProvidersEnum;
|
|
1455
1456
|
casterId?: string;
|
|
@@ -1474,7 +1475,7 @@ type ListVoiceTracksParams = PaginationParams & {
|
|
|
1474
1475
|
};
|
|
1475
1476
|
type ListVoiceTracksResponse = PaginatedResponseDTO<VoiceTrackEntity>;
|
|
1476
1477
|
|
|
1477
|
-
type ListCastersParams = Omit<ListVoiceProfilesParams, "
|
|
1478
|
+
type ListCastersParams = Omit<ListVoiceProfilesParams, "source" | "provider" | "casterId"> & {
|
|
1478
1479
|
name?: string;
|
|
1479
1480
|
email?: string;
|
|
1480
1481
|
};
|
package/dist/index.js
CHANGED
|
@@ -306,6 +306,8 @@ var JobsEnum = {
|
|
|
306
306
|
// src/enums/commom/error-codes.ts
|
|
307
307
|
var TkplayErrorCodesEnum = {
|
|
308
308
|
// Commom
|
|
309
|
+
CNPJ_INVALID: "CNPJ_INVALID",
|
|
310
|
+
CPF_INVALID: "CPF_INVALID",
|
|
309
311
|
EFI_ERROR: "EFI_ERROR",
|
|
310
312
|
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
311
313
|
// Module
|
|
@@ -805,6 +807,8 @@ var MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
|
|
|
805
807
|
// src/constants/tkplay-errors-map.ts
|
|
806
808
|
var TKPLAY_ERRORS_MAP = {
|
|
807
809
|
// Commoon
|
|
810
|
+
CNPJ_INVALID: "CNPJ is invalid",
|
|
811
|
+
CPF_INVALID: "CPF is invalid",
|
|
808
812
|
EFI_ERROR: "Error sending data to Ef\xED Payments",
|
|
809
813
|
VALIDATION_ERROR: "Provided data has validation errors, check error.data for more details",
|
|
810
814
|
// System Errors
|
|
@@ -867,6 +871,8 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
867
871
|
// src/constants/tkplay-errors-ptbr.ts
|
|
868
872
|
var TKPLAY_ERRORS__PTBR = {
|
|
869
873
|
// Commom
|
|
874
|
+
CNPJ_INVALID: "CNPJ \xE9 inv\xE1lido",
|
|
875
|
+
CPF_INVALID: "CPF \xE9 inv\xE1lido",
|
|
870
876
|
EFI_ERROR: "O provedor de pagamentos est\xE1 passando por instabilidades. Tente novamente",
|
|
871
877
|
VALIDATION_ERROR: "Os dados enviados na requisi\xE7\xE3o s\xE3o inv\xE1lidos",
|
|
872
878
|
// System Errors
|
package/dist/index.mjs
CHANGED
|
@@ -211,6 +211,8 @@ var JobsEnum = {
|
|
|
211
211
|
// src/enums/commom/error-codes.ts
|
|
212
212
|
var TkplayErrorCodesEnum = {
|
|
213
213
|
// Commom
|
|
214
|
+
CNPJ_INVALID: "CNPJ_INVALID",
|
|
215
|
+
CPF_INVALID: "CPF_INVALID",
|
|
214
216
|
EFI_ERROR: "EFI_ERROR",
|
|
215
217
|
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
216
218
|
// Module
|
|
@@ -710,6 +712,8 @@ var MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
|
|
|
710
712
|
// src/constants/tkplay-errors-map.ts
|
|
711
713
|
var TKPLAY_ERRORS_MAP = {
|
|
712
714
|
// Commoon
|
|
715
|
+
CNPJ_INVALID: "CNPJ is invalid",
|
|
716
|
+
CPF_INVALID: "CPF is invalid",
|
|
713
717
|
EFI_ERROR: "Error sending data to Ef\xED Payments",
|
|
714
718
|
VALIDATION_ERROR: "Provided data has validation errors, check error.data for more details",
|
|
715
719
|
// System Errors
|
|
@@ -772,6 +776,8 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
772
776
|
// src/constants/tkplay-errors-ptbr.ts
|
|
773
777
|
var TKPLAY_ERRORS__PTBR = {
|
|
774
778
|
// Commom
|
|
779
|
+
CNPJ_INVALID: "CNPJ \xE9 inv\xE1lido",
|
|
780
|
+
CPF_INVALID: "CPF \xE9 inv\xE1lido",
|
|
775
781
|
EFI_ERROR: "O provedor de pagamentos est\xE1 passando por instabilidades. Tente novamente",
|
|
776
782
|
VALIDATION_ERROR: "Os dados enviados na requisi\xE7\xE3o s\xE3o inv\xE1lidos",
|
|
777
783
|
// System Errors
|