@vendasta/social-posts 5.17.0 → 5.17.1

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,18 @@
1
+ import { CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse } from './objects/';
2
+ import { CreateCommonAiInstructionsRequestInterface, GetCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsRequestInterface } 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 CommonAiInstructionsApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ createCommonAiInstructions(r: CreateCommonAiInstructionsRequest | CreateCommonAiInstructionsRequestInterface): Observable<CreateCommonAiInstructionsResponse>;
14
+ updateCommonAiInstructions(r: UpdateCommonAiInstructionsRequest | UpdateCommonAiInstructionsRequestInterface): Observable<UpdateCommonAiInstructionsResponse>;
15
+ getCommonAiInstructions(r: GetCommonAiInstructionsRequest | GetCommonAiInstructionsRequestInterface): Observable<GetCommonAiInstructionsResponse>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonAiInstructionsApiService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommonAiInstructionsApiService>;
18
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './enums';
2
2
  export * from './objects';
3
3
  export * from './interfaces';
4
+ export { CommonAiInstructionsApiService } from './common-ai-instructions.api.service';
4
5
  export { HashTagsApiService } from './hash-tags.api.service';
5
6
  export { LinkedinApiService } from './linkedin.api.service';
6
7
  export { MultilocationPostApiService } from './multilocation-post.api.service';
@@ -1,6 +1,17 @@
1
1
  import { MediaInterface } from './linkedin-v2.interface';
2
2
  import { MetadataV2Interface, SocialPostV2Interface } from './social-post-v2.interface';
3
3
  import * as e from '../enums';
4
+ export interface AiInstructionsInterface {
5
+ commonAiInstructions?: string;
6
+ }
7
+ export interface CreateCommonAiInstructionsRequestInterface {
8
+ businessId?: string;
9
+ partnerId?: string;
10
+ aiInstructions?: AiInstructionsInterface;
11
+ }
12
+ export interface CreateCommonAiInstructionsResponseInterface {
13
+ aiInstructions?: AiInstructionsInterface;
14
+ }
4
15
  export interface CreateImageRequestInterface {
5
16
  businessId?: string;
6
17
  prompt?: string;
@@ -20,6 +31,13 @@ export interface DeletePostRequestInterface {
20
31
  accessToken?: string;
21
32
  postId?: string;
22
33
  }
34
+ export interface GetCommonAiInstructionsRequestInterface {
35
+ businessId?: string;
36
+ partnerId?: string;
37
+ }
38
+ export interface GetCommonAiInstructionsResponseInterface {
39
+ aiInstructions?: AiInstructionsInterface;
40
+ }
23
41
  export interface ImageBlobInterface {
24
42
  blob?: string;
25
43
  }
@@ -56,6 +74,14 @@ export interface SocialPostRequestInterface {
56
74
  export interface SocialPostResponseInterface {
57
75
  socialPosts?: SocialPostOutputInterface[];
58
76
  }
77
+ export interface UpdateCommonAiInstructionsRequestInterface {
78
+ businessId?: string;
79
+ partnerId?: string;
80
+ aiInstructions?: AiInstructionsInterface;
81
+ }
82
+ export interface UpdateCommonAiInstructionsResponseInterface {
83
+ aiInstructions?: AiInstructionsInterface;
84
+ }
59
85
  export interface UpdateSocialPostRequestInterface {
60
86
  socialPost?: SocialPostV2Interface;
61
87
  isError?: boolean;
@@ -8,4 +8,4 @@ export { TenorGifMediaMapEntryInterface, TenorGifInterface, TenorMediaObjectInte
8
8
  export { CreateMultilocationPostRequestInterface, CreateMultilocationPostResponseInterface, CreatePostTemplateRequestInterface, CreatePostTemplateResponseInterface, DateRangeFilterInterface, DeleteHashtagsRequestInterface, DeleteMultilocationPostRequestInterface, DeletePostTemplateRequestInterface, DeleteSocialPostRequestInterface, EditMultilocationPostRequestInterface, EditMultilocationPostResponseInterface, PartnerListScheduledSocialPostsRequestFiltersInterface, GenerateCSVForPerformanceStatsRequestInterface, GenerateCSVForPerformanceStatsResponseInterface, GetGeneratedCSVForPerformanceStatsRequestInterface, GetGeneratedCSVForPerformanceStatsResponseInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostStatsResponseInterface, GetMultiSocialPostsRequestInterface, GetMultiSocialPostsResponseInterface, GetMultilocationPostRequestInterface, GetMultilocationPostResponseInterface, GetPostTemplateRequestInterface, GetPostTemplateResponseInterface, GetScheduledPostCountRequestInterface, GetScheduledPostCountResponseInterface, GetTenorAnonymousIdRequestInterface, GetTenorAnonymousIdResponseInterface, ListMultilocationPostsForBrandRequestInterface, ListMultilocationPostsForBrandResponseInterface, ListPixabayImagesRequestInterface, ListPixabayImagesResponseInterface, ListPostTemplatesRequestInterface, ListPostTemplatesResponseInterface, ListSocialPostsRequestInterface, ListSocialPostsResponseInterface, ListTenorGifsRequestInterface, ListTenorGifsResponseInterface, PartnerListScheduledPostsResponseInterface, PartnerListScheduledSocialPostsRequestInterface, PostDataInterface, RemoveFromMultilocationPostRequestInterface, ReplaceHashtagsRequestInterface, SchedulePostRequestInterface, SchedulePostResponseInterface, ScheduleToAllPagesRequestInterface, ScheduleToAllPagesResponseInterface, SearchHashtagRequestInterface, SearchHashtagResponseInterface, SuggestMessageRequestInterface, SuggestMessageResponseInterface, UpdatePostTemplateRequestInterface, } from './api.interface';
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
- export { CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
11
+ export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, DeletePostRequestInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, RepostSocialPostRequestInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, } from './api-v2.interface';
@@ -3,6 +3,26 @@ import { Media } from './linkedin-v2';
3
3
  import { MetadataV2, SocialPostV2 } from './social-post-v2';
4
4
  import * as e from '../enums';
5
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
6
+ export declare class AiInstructions implements i.AiInstructionsInterface {
7
+ commonAiInstructions: string;
8
+ static fromProto(proto: any): AiInstructions;
9
+ constructor(kwargs?: i.AiInstructionsInterface);
10
+ toApiJson(): object;
11
+ }
12
+ export declare class CreateCommonAiInstructionsRequest implements i.CreateCommonAiInstructionsRequestInterface {
13
+ businessId: string;
14
+ partnerId: string;
15
+ aiInstructions: AiInstructions;
16
+ static fromProto(proto: any): CreateCommonAiInstructionsRequest;
17
+ constructor(kwargs?: i.CreateCommonAiInstructionsRequestInterface);
18
+ toApiJson(): object;
19
+ }
20
+ export declare class CreateCommonAiInstructionsResponse implements i.CreateCommonAiInstructionsResponseInterface {
21
+ aiInstructions: AiInstructions;
22
+ static fromProto(proto: any): CreateCommonAiInstructionsResponse;
23
+ constructor(kwargs?: i.CreateCommonAiInstructionsResponseInterface);
24
+ toApiJson(): object;
25
+ }
6
26
  export declare class CreateImageRequest implements i.CreateImageRequestInterface {
7
27
  businessId: string;
8
28
  prompt: string;
@@ -31,6 +51,19 @@ export declare class DeletePostRequest implements i.DeletePostRequestInterface {
31
51
  constructor(kwargs?: i.DeletePostRequestInterface);
32
52
  toApiJson(): object;
33
53
  }
54
+ export declare class GetCommonAiInstructionsRequest implements i.GetCommonAiInstructionsRequestInterface {
55
+ businessId: string;
56
+ partnerId: string;
57
+ static fromProto(proto: any): GetCommonAiInstructionsRequest;
58
+ constructor(kwargs?: i.GetCommonAiInstructionsRequestInterface);
59
+ toApiJson(): object;
60
+ }
61
+ export declare class GetCommonAiInstructionsResponse implements i.GetCommonAiInstructionsResponseInterface {
62
+ aiInstructions: AiInstructions;
63
+ static fromProto(proto: any): GetCommonAiInstructionsResponse;
64
+ constructor(kwargs?: i.GetCommonAiInstructionsResponseInterface);
65
+ toApiJson(): object;
66
+ }
34
67
  export declare class ImageBlob implements i.ImageBlobInterface {
35
68
  blob: string;
36
69
  static fromProto(proto: any): ImageBlob;
@@ -94,6 +127,20 @@ export declare class SocialPostResponse implements i.SocialPostResponseInterface
94
127
  constructor(kwargs?: i.SocialPostResponseInterface);
95
128
  toApiJson(): object;
96
129
  }
130
+ export declare class UpdateCommonAiInstructionsRequest implements i.UpdateCommonAiInstructionsRequestInterface {
131
+ businessId: string;
132
+ partnerId: string;
133
+ aiInstructions: AiInstructions;
134
+ static fromProto(proto: any): UpdateCommonAiInstructionsRequest;
135
+ constructor(kwargs?: i.UpdateCommonAiInstructionsRequestInterface);
136
+ toApiJson(): object;
137
+ }
138
+ export declare class UpdateCommonAiInstructionsResponse implements i.UpdateCommonAiInstructionsResponseInterface {
139
+ aiInstructions: AiInstructions;
140
+ static fromProto(proto: any): UpdateCommonAiInstructionsResponse;
141
+ constructor(kwargs?: i.UpdateCommonAiInstructionsResponseInterface);
142
+ toApiJson(): object;
143
+ }
97
144
  export declare class UpdateSocialPostRequest implements i.UpdateSocialPostRequestInterface {
98
145
  socialPost: SocialPostV2;
99
146
  isError: boolean;
@@ -8,4 +8,4 @@ export { TenorGifMediaMapEntry, TenorGif, TenorMediaObject, } from './tenor-gif'
8
8
  export { CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, PartnerListScheduledSocialPostsRequestFilters, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PostData, RemoveFromMultilocationPostRequest, ReplaceHashtagsRequest, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SuggestMessageRequest, SuggestMessageResponse, UpdatePostTemplateRequest, } from './api';
9
9
  export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, YoutubeCustomizationV2, } from './social-post-v2';
10
10
  export { Media, } from './linkedin-v2';
11
- export { CreateImageRequest, CreateImageResponse, DeletePostRequest, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
11
+ export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, DeletePostRequest, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, MediaUploadRequest, MediaUploadResponse, RepostSocialPostRequest, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, } from './api-v2';
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { GetCommonAiInstructionsResponse, CreateCommonAiInstructionsResponse, UpdateCommonAiInstructionsResponse } from './_internal/objects';
3
+ import { CommonAiInstructionsApiService } from './_internal/common-ai-instructions.api.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AiInstructionService {
6
+ private instructionsService;
7
+ constructor(instructionsService: CommonAiInstructionsApiService);
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>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiInstructionService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<AiInstructionService>;
13
+ }
package/lib/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { TenorGifsService } from './tenor-gifs.service';
5
5
  export { PixabayImageService } from './pixabay-image.service';
6
6
  export { HashTagsService } from './hashtag.service';
7
7
  export { PostPerformanceService } from './post-performance.service';
8
+ export { AiInstructionService } from './ai-instructions.service';
8
9
  export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest, PostPerformanceApiService, MessageLength, TemplateType, MediaEntry, MetaData, PostCustomization, } from './_internal';
9
10
  export * from './_internal/interfaces';
10
11
  export * from './_internal/enums';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.17.0",
3
+ "version": "5.17.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"