@talkplay/shared-types 1.0.21 → 1.0.22

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 CHANGED
@@ -189,6 +189,14 @@ declare const LegalTermTypesTranslationsEnum: {
189
189
  };
190
190
  type LegalTermTypesTranslationsEnum = Enum<typeof LegalTermTypesTranslationsEnum>;
191
191
 
192
+ declare const LeadStatusEnum: {
193
+ readonly PENDING: "PENDING";
194
+ readonly IN_PROSPECTION: "IN_PROSPECTION";
195
+ readonly CONVERTED: "CONVERTED";
196
+ readonly FAILED: "FAILED";
197
+ };
198
+ type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
199
+
192
200
  declare const AudioBitratesEnum: {
193
201
  readonly "32k": "32k";
194
202
  readonly "48k": "48k";
@@ -528,14 +536,6 @@ type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
528
536
  user?: RadioUserEntity;
529
537
  };
530
538
 
531
- declare const LeadStatusEnum: {
532
- readonly PENDING: "PENDING";
533
- readonly IN_PROSPECTION: "IN_PROSPECTION";
534
- readonly CONVERTED: "CONVERTED";
535
- readonly FAILED: "FAILED";
536
- };
537
- type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
538
-
539
539
  type LeadEntity = BaseEntity & Pick<RadioEntity, "cnpj" | "fantasyName" | "comercialEmail" | "financialEmail" | "wppNumber"> & {
540
540
  status: LeadStatusEnum;
541
541
  };
@@ -783,6 +783,22 @@ type VerifyEmailAvailabilityResponse = {
783
783
  isAvailable: boolean;
784
784
  };
785
785
 
786
+ type CreateLeadPayload = Omit<LeadEntity, "status" | keyof BaseEntity>;
787
+
788
+ type ListLeadsParams = PaginationParams & {
789
+ cnpj?: string;
790
+ fantasyName?: string;
791
+ comercialEmail?: string;
792
+ financialEmail?: string;
793
+ wppNumber?: string;
794
+ status: LeadStatusEnum;
795
+ };
796
+ type ListLeadsResponse = PaginatedResponseDTO<LeadEntity>;
797
+
798
+ type UpdateLeadPayload = {
799
+ status: LeadStatusEnum;
800
+ };
801
+
786
802
  type EpisodeCreatedEvt = {};
787
803
 
788
804
  type EpisodeErrorEvt = {};
@@ -797,4 +813,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
797
813
 
798
814
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
799
815
 
800
- export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LeadEntity, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement };
816
+ export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLeadPayload, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LeadEntity, LeadStatusEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateLeadPayload, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement };
package/dist/index.d.ts CHANGED
@@ -189,6 +189,14 @@ declare const LegalTermTypesTranslationsEnum: {
189
189
  };
190
190
  type LegalTermTypesTranslationsEnum = Enum<typeof LegalTermTypesTranslationsEnum>;
191
191
 
192
+ declare const LeadStatusEnum: {
193
+ readonly PENDING: "PENDING";
194
+ readonly IN_PROSPECTION: "IN_PROSPECTION";
195
+ readonly CONVERTED: "CONVERTED";
196
+ readonly FAILED: "FAILED";
197
+ };
198
+ type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
199
+
192
200
  declare const AudioBitratesEnum: {
193
201
  readonly "32k": "32k";
194
202
  readonly "48k": "48k";
@@ -528,14 +536,6 @@ type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
528
536
  user?: RadioUserEntity;
529
537
  };
530
538
 
531
- declare const LeadStatusEnum: {
532
- readonly PENDING: "PENDING";
533
- readonly IN_PROSPECTION: "IN_PROSPECTION";
534
- readonly CONVERTED: "CONVERTED";
535
- readonly FAILED: "FAILED";
536
- };
537
- type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
538
-
539
539
  type LeadEntity = BaseEntity & Pick<RadioEntity, "cnpj" | "fantasyName" | "comercialEmail" | "financialEmail" | "wppNumber"> & {
540
540
  status: LeadStatusEnum;
541
541
  };
@@ -783,6 +783,22 @@ type VerifyEmailAvailabilityResponse = {
783
783
  isAvailable: boolean;
784
784
  };
785
785
 
786
+ type CreateLeadPayload = Omit<LeadEntity, "status" | keyof BaseEntity>;
787
+
788
+ type ListLeadsParams = PaginationParams & {
789
+ cnpj?: string;
790
+ fantasyName?: string;
791
+ comercialEmail?: string;
792
+ financialEmail?: string;
793
+ wppNumber?: string;
794
+ status: LeadStatusEnum;
795
+ };
796
+ type ListLeadsResponse = PaginatedResponseDTO<LeadEntity>;
797
+
798
+ type UpdateLeadPayload = {
799
+ status: LeadStatusEnum;
800
+ };
801
+
786
802
  type EpisodeCreatedEvt = {};
787
803
 
788
804
  type EpisodeErrorEvt = {};
@@ -797,4 +813,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
797
813
 
798
814
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
799
815
 
800
- export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LeadEntity, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement };
816
+ export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLeadPayload, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LeadEntity, LeadStatusEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateLeadPayload, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement };
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  EpGenerationTypesEnum: () => EpGenerationTypesEnum,
33
33
  FFmpegAudioCurveEnum: () => FFmpegAudioCurveEnum,
34
34
  JobsEnum: () => JobsEnum,
35
+ LeadStatusEnum: () => LeadStatusEnum,
35
36
  LegalTermTypesEnum: () => LegalTermTypesEnum,
36
37
  LegalTermTypesTranslationsEnum: () => LegalTermTypesTranslationsEnum,
37
38
  NewsCategoriesEnum: () => NewsCategoriesEnum,
@@ -264,6 +265,14 @@ var LegalTermTypesTranslationsEnum = {
264
265
  CANCELLATION_POLICY: "Pol\xEDtica de Cancelamento e Reembolso"
265
266
  };
266
267
 
268
+ // src/enums/leads/lead-status.enum.ts
269
+ var LeadStatusEnum = {
270
+ PENDING: "PENDING",
271
+ IN_PROSPECTION: "IN_PROSPECTION",
272
+ CONVERTED: "CONVERTED",
273
+ FAILED: "FAILED"
274
+ };
275
+
267
276
  // src/enums/media/audio-bitrates.enum.ts
268
277
  var AudioBitratesEnum = {
269
278
  "32k": "32k",
@@ -438,6 +447,7 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
438
447
  EpGenerationTypesEnum,
439
448
  FFmpegAudioCurveEnum,
440
449
  JobsEnum,
450
+ LeadStatusEnum,
441
451
  LegalTermTypesEnum,
442
452
  LegalTermTypesTranslationsEnum,
443
453
  NewsCategoriesEnum,
package/dist/index.mjs CHANGED
@@ -212,6 +212,14 @@ var LegalTermTypesTranslationsEnum = {
212
212
  CANCELLATION_POLICY: "Pol\xEDtica de Cancelamento e Reembolso"
213
213
  };
214
214
 
215
+ // src/enums/leads/lead-status.enum.ts
216
+ var LeadStatusEnum = {
217
+ PENDING: "PENDING",
218
+ IN_PROSPECTION: "IN_PROSPECTION",
219
+ CONVERTED: "CONVERTED",
220
+ FAILED: "FAILED"
221
+ };
222
+
215
223
  // src/enums/media/audio-bitrates.enum.ts
216
224
  var AudioBitratesEnum = {
217
225
  "32k": "32k",
@@ -385,6 +393,7 @@ export {
385
393
  EpGenerationTypesEnum,
386
394
  FFmpegAudioCurveEnum,
387
395
  JobsEnum,
396
+ LeadStatusEnum,
388
397
  LegalTermTypesEnum,
389
398
  LegalTermTypesTranslationsEnum,
390
399
  NewsCategoriesEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",