Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public reelsTray(reason: 'pull_to_refresh' | 'cold_start' = 'cold_start'): ReelsTrayFeed {
return plainToClassFromExist(new ReelsTrayFeed(this.client), { reason });
}
constructor(data?: any) {
plainToClassFromExist(this, data);
}
}
constructor(data?: any) {
plainToClassFromExist(this, data);
}
}
public mediaInlineChildComments(mediaId: string, commentId: string, minId?: string): MediaInlineChildCommentsFeed {
return plainToClassFromExist(new MediaInlineChildCommentsFeed(this.client), {
mediaId,
commentId,
nextMinId: minId,
});
}
private async plainToClass(dto: TDto, obj: any): Promise {
if (!obj) {
return undefined;
}
const result = plainToClassFromExist(dto, obj);
const errors = await validate(result, {
whitelist: true,
});
if (errors.length > 0) {
throw new BadRequestException(errors);
}
const repository = getRepository(this.entity);
await Promise.all(
repository.metadata.columns.map(async (column: ColumnMetadata) => {
const propType = GetPropertyType(repository.metadata.columns, column.propertyName);
if (
public storyQuizParticipants(
mediaId: string,
stickerId: string | number,
): MediaStickerResponsesFeed<
StoryQuizParticipantsFeedResponseRootObject,
StoryQuizParticipantsFeedResponseParticipantsItem
> {
return plainToClassFromExist(new MediaStickerResponsesFeed(this.client), {
mediaId,
stickerId,
name: 'story_quiz_participants',
rootName: 'participant_info',
itemName: 'participants',
});
}
constructor(data?: any) {
plainToClassFromExist(this, data);
}
}
constructor(data?: any) {
plainToClassFromExist(this, data);
}
}
export function DtoFromObject(plain: object, dto: TDto): TDto {
if (!plain) {
return undefined;
}
const result = plainToClassFromExist(dto, plain);
return result;
}
public reelsMedia(options: { userIds: Array; source?: IgAppModule }): ReelsMediaFeed {
return plainToClassFromExist(new ReelsMediaFeed(this.client), options);
}