@vendasta/social-posts 5.20.3 → 5.20.5

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.
@@ -0,0 +1,16 @@
1
+ import { ListCuratedContentRequest, ListCuratedContentResponse } from './objects/';
2
+ import { ListCuratedContentRequestInterface } from './interfaces/';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { HostService } from '../_generated/host.service';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class CuratedContentApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ list(r: ListCuratedContentRequest | ListCuratedContentRequestInterface): Observable<ListCuratedContentResponse>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuratedContentApiService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuratedContentApiService>;
16
+ }
@@ -4,6 +4,7 @@ export * from './interfaces';
4
4
  export { ChatBotApiService } from './chat-bot.api.service';
5
5
  export { CommonAiInstructionsApiService } from './common-ai-instructions.api.service';
6
6
  export { ContentGenerationApiService } from './content-generation.api.service';
7
+ export { CuratedContentApiService } from './curated-content.api.service';
7
8
  export { HashTagsApiService } from './hash-tags.api.service';
8
9
  export { LinkedinApiService } from './linkedin.api.service';
9
10
  export { MultilocationPostApiService } from './multilocation-post.api.service';
@@ -4,6 +4,7 @@ import { PhotoInterface } from './unsplash-image.interface';
4
4
  import * as e from '../enums';
5
5
  export interface AiInstructionsInterface {
6
6
  commonAiInstructions?: string;
7
+ dataUsageStatus?: boolean;
7
8
  }
8
9
  export interface CreateCommonAiInstructionsRequestInterface {
9
10
  businessId?: string;
@@ -28,6 +29,15 @@ export interface CreateImageResponseInterface {
28
29
  createdId?: number;
29
30
  generatedImages?: ImageCreatedInterface[];
30
31
  }
32
+ export interface CuratedContentPostInterface {
33
+ id?: string;
34
+ text?: string;
35
+ media?: UploadedMediaInterface[];
36
+ errors?: string;
37
+ businessId?: string;
38
+ createdAt?: string;
39
+ postedAt?: string;
40
+ }
31
41
  export interface DeletePostRequestInterface {
32
42
  accessToken?: string;
33
43
  postId?: string;
@@ -38,6 +48,7 @@ export interface GeneratePostsRequestInterface {
38
48
  commonInstructions?: string;
39
49
  tone?: string;
40
50
  postLength?: number;
51
+ metadata?: MetadataV2Interface;
41
52
  }
42
53
  export interface GeneratePostsResponseInterface {
43
54
  posts?: GeneratePostsResponsePostInterface[];
@@ -61,6 +72,18 @@ export interface ImageCreatedInterface {
61
72
  export interface ImageUrlInterface {
62
73
  url?: string;
63
74
  }
75
+ export interface ListCuratedContentRequestInterface {
76
+ businessId?: string;
77
+ feedId?: string;
78
+ pageSize?: number;
79
+ cursor?: string;
80
+ }
81
+ export interface ListCuratedContentResponseInterface {
82
+ posts?: CuratedContentPostInterface[];
83
+ externalId?: string;
84
+ hasMore?: boolean;
85
+ nextCursor?: string;
86
+ }
64
87
  export interface ListUnsplashImagesRequestInterface {
65
88
  query?: string;
66
89
  page?: number;
@@ -139,3 +162,7 @@ export interface UploadToStorageRequestInterface {
139
162
  export interface UploadToStorageResponseInterface {
140
163
  url?: string;
141
164
  }
165
+ export interface UploadedMediaInterface {
166
+ type?: string;
167
+ url?: string;
168
+ }
@@ -1,3 +1,4 @@
1
+ import { MetadataV2Interface } from './social-post-v2.interface';
1
2
  import * as e from '../enums';
2
3
  export interface ActionInterface {
3
4
  actionType?: e.ActionType;
@@ -16,6 +17,7 @@ export interface SendMessageResponseInterface {
16
17
  threadId?: string;
17
18
  }
18
19
  export interface StartChatRequestInterface {
20
+ metadata?: MetadataV2Interface;
19
21
  }
20
22
  export interface StartChatResponseInterface {
21
23
  assistantId?: string;
@@ -10,5 +10,5 @@ export { AccessInterface, } from './annotations.interface';
10
10
  export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, TikTokCustomizationV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
11
11
  export { MediaInterface, } from './linkedin-v2.interface';
12
12
  export { AncestryInterface, CollectionInterface, ImageInterface, LinksInterface, PhotoInterface, SocialInterface, SourceInterface, SubAncestryInterface, TagsInterface, UrlsInterface, UserInterface, UserLinkInterface, } from './unsplash-image.interface';
13
- 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';
13
+ export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, CuratedContentPostInterface, DeletePostRequestInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, ListCuratedContentRequestInterface, ListCuratedContentResponseInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, UploadToStorageRequestInterface, UploadToStorageResponseInterface, UploadedMediaInterface, } from './api-v2.interface';
14
14
  export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
@@ -6,6 +6,7 @@ import * as e from '../enums';
6
6
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
7
7
  export declare class AiInstructions implements i.AiInstructionsInterface {
8
8
  commonAiInstructions: string;
9
+ dataUsageStatus: boolean;
9
10
  static fromProto(proto: any): AiInstructions;
10
11
  constructor(kwargs?: i.AiInstructionsInterface);
11
12
  toApiJson(): object;
@@ -45,6 +46,18 @@ export declare class CreateImageResponse implements i.CreateImageResponseInterfa
45
46
  constructor(kwargs?: i.CreateImageResponseInterface);
46
47
  toApiJson(): object;
47
48
  }
49
+ export declare class CuratedContentPost implements i.CuratedContentPostInterface {
50
+ id: string;
51
+ text: string;
52
+ media: UploadedMedia[];
53
+ errors: string;
54
+ businessId: string;
55
+ createdAt: string;
56
+ postedAt: string;
57
+ static fromProto(proto: any): CuratedContentPost;
58
+ constructor(kwargs?: i.CuratedContentPostInterface);
59
+ toApiJson(): object;
60
+ }
48
61
  export declare class DeletePostRequest implements i.DeletePostRequestInterface {
49
62
  accessToken: string;
50
63
  postId: string;
@@ -58,6 +71,7 @@ export declare class GeneratePostsRequest implements i.GeneratePostsRequestInter
58
71
  commonInstructions: string;
59
72
  tone: string;
60
73
  postLength: number;
74
+ metadata: MetadataV2;
61
75
  static fromProto(proto: any): GeneratePostsRequest;
62
76
  constructor(kwargs?: i.GeneratePostsRequestInterface);
63
77
  toApiJson(): object;
@@ -102,6 +116,24 @@ export declare class ImageUrl implements i.ImageUrlInterface {
102
116
  constructor(kwargs?: i.ImageUrlInterface);
103
117
  toApiJson(): object;
104
118
  }
119
+ export declare class ListCuratedContentRequest implements i.ListCuratedContentRequestInterface {
120
+ businessId: string;
121
+ feedId: string;
122
+ pageSize: number;
123
+ cursor: string;
124
+ static fromProto(proto: any): ListCuratedContentRequest;
125
+ constructor(kwargs?: i.ListCuratedContentRequestInterface);
126
+ toApiJson(): object;
127
+ }
128
+ export declare class ListCuratedContentResponse implements i.ListCuratedContentResponseInterface {
129
+ posts: CuratedContentPost[];
130
+ externalId: string;
131
+ hasMore: boolean;
132
+ nextCursor: string;
133
+ static fromProto(proto: any): ListCuratedContentResponse;
134
+ constructor(kwargs?: i.ListCuratedContentResponseInterface);
135
+ toApiJson(): object;
136
+ }
105
137
  export declare class ListUnsplashImagesRequest implements i.ListUnsplashImagesRequestInterface {
106
138
  query: string;
107
139
  page: number;
@@ -225,3 +257,10 @@ export declare class UploadToStorageResponse implements i.UploadToStorageRespons
225
257
  constructor(kwargs?: i.UploadToStorageResponseInterface);
226
258
  toApiJson(): object;
227
259
  }
260
+ export declare class UploadedMedia implements i.UploadedMediaInterface {
261
+ type: string;
262
+ url: string;
263
+ static fromProto(proto: any): UploadedMedia;
264
+ constructor(kwargs?: i.UploadedMediaInterface);
265
+ toApiJson(): object;
266
+ }
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { MetadataV2 } from './social-post-v2';
2
3
  import * as e from '../enums';
3
4
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
5
  export declare class Action implements i.ActionInterface {
@@ -30,6 +31,7 @@ export declare class SendMessageResponse implements i.SendMessageResponseInterfa
30
31
  toApiJson(): object;
31
32
  }
32
33
  export declare class StartChatRequest implements i.StartChatRequestInterface {
34
+ metadata: MetadataV2;
33
35
  static fromProto(proto: any): StartChatRequest;
34
36
  constructor(kwargs?: i.StartChatRequestInterface);
35
37
  toApiJson(): object;
@@ -10,5 +10,5 @@ export { Access, } from './annotations';
10
10
  export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, TikTokCustomizationV2, YoutubeCustomizationV2, } from './social-post-v2';
11
11
  export { Media, } from './linkedin-v2';
12
12
  export { Ancestry, Collection, Image, Links, Photo, Social, Source, SubAncestry, Tags, Urls, User, UserLink, } from './unsplash-image';
13
- 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';
13
+ export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CuratedContentPost, DeletePostRequest, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, ListCuratedContentRequest, ListCuratedContentResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, GeneratePostsResponsePost, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, } from './api-v2';
14
14
  export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
@@ -6,8 +6,8 @@ export declare class AiInstructionService {
6
6
  private instructionsService;
7
7
  constructor(instructionsService: CommonAiInstructionsApiService);
8
8
  getAiInstructions(businessId: string, partnerId: string): Observable<GetCommonAiInstructionsResponse>;
9
- createAiInstructions(businessId: string, partnerId: string, instructions: string): Observable<CreateCommonAiInstructionsResponse>;
10
- updateAiInstructions(businessId: string, partnerId: string, instructions: string): Observable<UpdateCommonAiInstructionsResponse>;
9
+ createAiInstructions(businessId: string, partnerId: string, instructions: string, dataUsageStatus: boolean): Observable<CreateCommonAiInstructionsResponse>;
10
+ updateAiInstructions(businessId: string, partnerId: string, instructions: string, dataUsageStatus: boolean): Observable<UpdateCommonAiInstructionsResponse>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<AiInstructionService, never>;
12
12
  static ɵprov: i0.ɵɵInjectableDeclaration<AiInstructionService>;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.20.3",
3
+ "version": "5.20.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"