@talkplay/shared-types 1.0.60 → 1.0.62

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
@@ -836,6 +836,14 @@ type VoiceProfileEntity = BaseEntity & {
836
836
  source: VoiceProfileSourcesEnum;
837
837
  provider: TtsProvidersEnum;
838
838
  externalProviderId: string;
839
+ voiceGender: VoiceGenderEnum;
840
+ segments: ProgramSegmentEnum[];
841
+ communicationTones: CommunicationToneEnum[];
842
+ emotionStyles: EmotionStyleEnum[];
843
+ formalityLevels: FormalityLevelEnum[];
844
+ humorStyle: HumorStyleEnum[];
845
+ languageStyles: LanguageStyleEnum[];
846
+ voiceEnergy: VoiceEnergyEnum[];
839
847
  casterId?: string;
840
848
  caster?: CasterEntity;
841
849
  radios?: RadioEntity[];
@@ -894,14 +902,6 @@ type CasterEntity = BaseEntity & {
894
902
  bio: string;
895
903
  email: string;
896
904
  password: string;
897
- voiceGender: VoiceGenderEnum;
898
- segments: ProgramSegmentEnum[];
899
- communicationTones: CommunicationToneEnum[];
900
- emotionStyles: EmotionStyleEnum[];
901
- formalityLevels: FormalityLevelEnum[];
902
- humorStyle: HumorStyleEnum[];
903
- languageStyles: LanguageStyleEnum[];
904
- voiceEnergy: VoiceEnergyEnum[];
905
905
  avatarImgId: string;
906
906
  avatarImg?: S3FileEntity;
907
907
  voiceProfileId: string;
@@ -1233,18 +1233,18 @@ type ListLegalTermsResponse = PaginatedResponseDTO<LegalTermEntity>;
1233
1233
  type ListProgramsParams = PaginationParams & {
1234
1234
  radioId?: string;
1235
1235
  name?: string;
1236
- castersIds?: string[];
1236
+ voicesIds?: string[];
1237
1237
  };
1238
1238
 
1239
- type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
1240
- castersIds: string[];
1239
+ type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "voices"> & {
1240
+ voicesIds: string[];
1241
1241
  }> & {
1242
1242
  draftId?: string;
1243
1243
  };
1244
1244
 
1245
1245
  type PaymentProgram = {
1246
1246
  name: string;
1247
- duration: number;
1247
+ durationInMinutes: number;
1248
1248
  blocksAmount: number;
1249
1249
  };
1250
1250
  type PaymentPayload = {
package/dist/index.d.ts CHANGED
@@ -836,6 +836,14 @@ type VoiceProfileEntity = BaseEntity & {
836
836
  source: VoiceProfileSourcesEnum;
837
837
  provider: TtsProvidersEnum;
838
838
  externalProviderId: string;
839
+ voiceGender: VoiceGenderEnum;
840
+ segments: ProgramSegmentEnum[];
841
+ communicationTones: CommunicationToneEnum[];
842
+ emotionStyles: EmotionStyleEnum[];
843
+ formalityLevels: FormalityLevelEnum[];
844
+ humorStyle: HumorStyleEnum[];
845
+ languageStyles: LanguageStyleEnum[];
846
+ voiceEnergy: VoiceEnergyEnum[];
839
847
  casterId?: string;
840
848
  caster?: CasterEntity;
841
849
  radios?: RadioEntity[];
@@ -894,14 +902,6 @@ type CasterEntity = BaseEntity & {
894
902
  bio: string;
895
903
  email: string;
896
904
  password: string;
897
- voiceGender: VoiceGenderEnum;
898
- segments: ProgramSegmentEnum[];
899
- communicationTones: CommunicationToneEnum[];
900
- emotionStyles: EmotionStyleEnum[];
901
- formalityLevels: FormalityLevelEnum[];
902
- humorStyle: HumorStyleEnum[];
903
- languageStyles: LanguageStyleEnum[];
904
- voiceEnergy: VoiceEnergyEnum[];
905
905
  avatarImgId: string;
906
906
  avatarImg?: S3FileEntity;
907
907
  voiceProfileId: string;
@@ -1233,18 +1233,18 @@ type ListLegalTermsResponse = PaginatedResponseDTO<LegalTermEntity>;
1233
1233
  type ListProgramsParams = PaginationParams & {
1234
1234
  radioId?: string;
1235
1235
  name?: string;
1236
- castersIds?: string[];
1236
+ voicesIds?: string[];
1237
1237
  };
1238
1238
 
1239
- type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
1240
- castersIds: string[];
1239
+ type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "voices"> & {
1240
+ voicesIds: string[];
1241
1241
  }> & {
1242
1242
  draftId?: string;
1243
1243
  };
1244
1244
 
1245
1245
  type PaymentProgram = {
1246
1246
  name: string;
1247
- duration: number;
1247
+ durationInMinutes: number;
1248
1248
  blocksAmount: number;
1249
1249
  };
1250
1250
  type PaymentPayload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",