@vendasta/social-posts 5.19.1 → 5.19.2

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.
@@ -41,6 +41,7 @@ export interface GeneratePostsRequestInterface {
41
41
  }
42
42
  export interface GeneratePostsResponseInterface {
43
43
  posts?: GeneratePostsResponsePostInterface[];
44
+ keyword?: string;
44
45
  }
45
46
  export interface GetCommonAiInstructionsRequestInterface {
46
47
  businessId?: string;
@@ -69,6 +70,7 @@ export interface ListUnsplashImagesRequestInterface {
69
70
  contentFilter?: string;
70
71
  color?: string;
71
72
  orientation?: string;
73
+ random?: boolean;
72
74
  }
73
75
  export interface ListUnsplashImagesResponseInterface {
74
76
  total?: number;
@@ -128,3 +130,10 @@ export interface UpdateSocialPostResponseInterface {
128
130
  postId?: string;
129
131
  metadata?: MetadataV2Interface[];
130
132
  }
133
+ export interface UploadToStorageRequestInterface {
134
+ url?: string;
135
+ mediaType?: e.MediaType;
136
+ }
137
+ export interface UploadToStorageResponseInterface {
138
+ url?: string;
139
+ }
@@ -9,4 +9,4 @@ export { CreateMultilocationPostRequestInterface, CreateMultilocationPostRespons
9
9
  export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
10
10
  export { MediaInterface, } from './linkedin-v2.interface';
11
11
  export { AncestryInterface, CollectionInterface, ImageInterface, LinksInterface, PhotoInterface, SocialInterface, SourceInterface, SubAncestryInterface, TagsInterface, UrlsInterface, UserInterface, UserLinkInterface, } from './unsplash-image.interface';
12
- export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
12
+ export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, UploadToStorageRequestInterface, UploadToStorageResponseInterface, } from './api-v2.interface';
@@ -64,6 +64,7 @@ export declare class GeneratePostsRequest implements i.GeneratePostsRequestInter
64
64
  }
65
65
  export declare class GeneratePostsResponse implements i.GeneratePostsResponseInterface {
66
66
  posts: GeneratePostsResponsePost[];
67
+ keyword: string;
67
68
  static fromProto(proto: any): GeneratePostsResponse;
68
69
  constructor(kwargs?: i.GeneratePostsResponseInterface);
69
70
  toApiJson(): object;
@@ -110,6 +111,7 @@ export declare class ListUnsplashImagesRequest implements i.ListUnsplashImagesRe
110
111
  contentFilter: string;
111
112
  color: string;
112
113
  orientation: string;
114
+ random: boolean;
113
115
  static fromProto(proto: any): ListUnsplashImagesRequest;
114
116
  constructor(kwargs?: i.ListUnsplashImagesRequestInterface);
115
117
  toApiJson(): object;
@@ -208,3 +210,16 @@ export declare class UpdateSocialPostResponse implements i.UpdateSocialPostRespo
208
210
  constructor(kwargs?: i.UpdateSocialPostResponseInterface);
209
211
  toApiJson(): object;
210
212
  }
213
+ export declare class UploadToStorageRequest implements i.UploadToStorageRequestInterface {
214
+ url: string;
215
+ mediaType: e.MediaType;
216
+ static fromProto(proto: any): UploadToStorageRequest;
217
+ constructor(kwargs?: i.UploadToStorageRequestInterface);
218
+ toApiJson(): object;
219
+ }
220
+ export declare class UploadToStorageResponse implements i.UploadToStorageResponseInterface {
221
+ url: string;
222
+ static fromProto(proto: any): UploadToStorageResponse;
223
+ constructor(kwargs?: i.UploadToStorageResponseInterface);
224
+ toApiJson(): object;
225
+ }
@@ -9,4 +9,4 @@ export { CreateMultilocationPostRequest, CreateMultilocationPostResponse, Create
9
9
  export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, YoutubeCustomizationV2, } from './social-post-v2';
10
10
  export { Media, } from './linkedin-v2';
11
11
  export { Ancestry, Collection, Image, Links, Photo, Social, Source, SubAncestry, Tags, Urls, User, UserLink, } from './unsplash-image';
12
- export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, DeletePostRequest, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, GeneratePostsResponsePost, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
12
+ export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, DeletePostRequest, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, GeneratePostsResponsePost, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, } from './api-v2';
@@ -1,5 +1,5 @@
1
- import { ListUnsplashImagesRequest, ListUnsplashImagesResponse } from './objects/';
2
- import { ListUnsplashImagesRequestInterface } from './interfaces/';
1
+ import { ListUnsplashImagesRequest, ListUnsplashImagesResponse, UploadToStorageRequest, UploadToStorageResponse } from './objects/';
2
+ import { ListUnsplashImagesRequestInterface, UploadToStorageRequestInterface } from './interfaces/';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
@@ -11,6 +11,7 @@ export declare class UnsplashApiService {
11
11
  constructor(http: HttpClient, hostService: HostService);
12
12
  private apiOptions;
13
13
  listUnsplashImages(r: ListUnsplashImagesRequest | ListUnsplashImagesRequestInterface): Observable<ListUnsplashImagesResponse>;
14
+ uploadToStorage(r: UploadToStorageRequest | UploadToStorageRequestInterface): Observable<UploadToStorageResponse>;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<UnsplashApiService, never>;
15
16
  static ɵprov: i0.ɵɵInjectableDeclaration<UnsplashApiService>;
16
17
  }
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class UnsplashImageService {
6
6
  private unsplashApiService;
7
7
  constructor(unsplashApiService: UnsplashApiService);
8
- listUnsplashImages(query: string, page: number, perPage: number, orderBy?: string, orientation?: string): Observable<ListUnsplashImagesResponse>;
8
+ listUnsplashImages(query: string, page?: number, perPage?: number, orderBy?: string, orientation?: string): Observable<ListUnsplashImagesResponse>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<UnsplashImageService, never>;
10
10
  static ɵprov: i0.ɵɵInjectableDeclaration<UnsplashImageService>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.19.1",
3
+ "version": "5.19.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"