Skip to content

Instantly share code, notes, and snippets.

@hajipy
Created April 2, 2018 16:01
Show Gist options
  • Save hajipy/1c78de1f2d1fb828a399f4ec4fd759cf to your computer and use it in GitHub Desktop.
Save hajipy/1c78de1f2d1fb828a399f4ec4fd759cf to your computer and use it in GitHub Desktop.
interface IItemRepository {
createImage(data: any): Promise<any>;
deleteImage(imageId: any): Promise<void>;
createBundle(data: any): Promise<any>;
deleteBundle(bundleId: any): Promise<void>;
addImageToBundle(bundleId: any, index?: number): Promise<any>;
removeImageFromBundle(bundleId: any): Promise<any>;
rearrangeImageInBundle(bundleId: any, imageId: any, index: number): Promise<any>;
addTag(id: any, tag: string): Promise<any>;
removeTag(id: any, tag: string): Promise<any>;
listImages(): Promise<any[]>;
listImagesInBundle(bundleId: any): Promise<any[]>;
listImagesWithTag(tag: string): Promise<any[]>;
listTags(): Promise<string[]>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment