@vendasta/social-posts 5.1.0 → 5.2.0

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 { DeleteHashtagsRequest, ReplaceHashtagsRequest, SearchHashtagRequest, SearchHashtagResponse } from './objects/';
2
+ import { DeleteHashtagsRequestInterface, ReplaceHashtagsRequestInterface, SearchHashtagRequestInterface } from './interfaces/';
3
+ import { HttpClient, HttpResponse } 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 HashTagsApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ replaceHashtags(r: ReplaceHashtagsRequest | ReplaceHashtagsRequestInterface): Observable<HttpResponse<null>>;
14
+ deleteHashtags(r: DeleteHashtagsRequest | DeleteHashtagsRequestInterface): Observable<HttpResponse<null>>;
15
+ searchHashtag(r: SearchHashtagRequest | SearchHashtagRequestInterface): Observable<SearchHashtagResponse>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HashTagsApiService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<HashTagsApiService>;
18
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './enums';
2
2
  export * from './objects';
3
3
  export * from './interfaces';
4
+ export { HashTagsApiService } from './hash-tags.api.service';
4
5
  export { MultilocationPostApiService } from './multilocation-post.api.service';
5
6
  export { PartnerSocialPostsApiService } from './partner-social-posts.api.service';
6
7
  export { PixabayImagesApiService } from './pixabay-images.api.service';
@@ -1,4 +1,5 @@
1
1
  import { FieldMaskInterface } from './field-mask.interface';
2
+ import { HashtagInterface } from './hashtag.interface';
2
3
  import { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface } from './multilocation-post.interface';
3
4
  import { PixabayImageInterface } from './pixabay-image.interface';
4
5
  import { PostTemplateInterface } from './post-templates.interface';
@@ -39,6 +40,11 @@ export interface DateRangeFilterInterface {
39
40
  beginRange?: Date;
40
41
  endRange?: Date;
41
42
  }
43
+ export interface DeleteHashtagsRequestInterface {
44
+ keyword?: string[];
45
+ businessId?: string;
46
+ partnerId?: string;
47
+ }
42
48
  export interface DeleteMultilocationPostRequestInterface {
43
49
  brandId?: string;
44
50
  multilocationId?: string;
@@ -190,6 +196,11 @@ export interface RemoveFromMultilocationPostRequestInterface {
190
196
  multilocationId?: string;
191
197
  locations?: LocationInterface[];
192
198
  }
199
+ export interface ReplaceHashtagsRequestInterface {
200
+ keyword?: string[];
201
+ businessId?: string;
202
+ partnerId?: string;
203
+ }
193
204
  export interface SchedulePostRequestInterface {
194
205
  socialPost?: SocialPostDataInterface;
195
206
  socialServiceIds?: string[];
@@ -207,6 +218,15 @@ export interface ScheduleToAllPagesRequestInterface {
207
218
  export interface ScheduleToAllPagesResponseInterface {
208
219
  statuses?: SchedulePostStatusInterface[];
209
220
  }
221
+ export interface SearchHashtagRequestInterface {
222
+ searchTerm?: string;
223
+ limit?: number;
224
+ businessId?: string;
225
+ partnerId?: string;
226
+ }
227
+ export interface SearchHashtagResponseInterface {
228
+ hashtags?: HashtagInterface[];
229
+ }
210
230
  export interface UpdatePostTemplateRequestInterface {
211
231
  accountGroupId?: string;
212
232
  templateId?: string;
@@ -0,0 +1,6 @@
1
+ export interface HashtagInterface {
2
+ keyword?: string;
3
+ usedCount?: number;
4
+ businessId?: string;
5
+ partnerId?: string;
6
+ }
@@ -5,4 +5,5 @@ export { PostTemplateInterface, } from './post-templates.interface';
5
5
  export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, } from './multilocation-post.interface';
6
6
  export { FieldMaskInterface, } from './field-mask.interface';
7
7
  export { TenorGifMediaEntryInterface, TenorGifInterface, TenorMediaObjectInterface, } from './tenor-gif.interface';
8
- export { CreateMultilocationPostRequestInterface, CreateMultilocationPostResponseInterface, CreatePostTemplateRequestInterface, CreatePostTemplateResponseInterface, DateRangeFilterInterface, DeleteMultilocationPostRequestInterface, DeletePostTemplateRequestInterface, DeleteSocialPostRequestInterface, EditMultilocationPostRequestInterface, EditMultilocationPostResponseInterface, PartnerListScheduledSocialPostsRequestFiltersInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostStatsResponseInterface, GetMultiSocialPostsRequestInterface, GetMultiSocialPostsResponseInterface, GetMultilocationPostRequestInterface, GetMultilocationPostResponseInterface, GetPostTemplateRequestInterface, GetPostTemplateResponseInterface, GetScheduledPostCountRequestInterface, GetScheduledPostCountResponseInterface, GetTenorAnonymousIdRequestInterface, GetTenorAnonymousIdResponseInterface, ListMultilocationPostsForBrandRequestInterface, ListMultilocationPostsForBrandResponseInterface, ListPixabayImagesRequestInterface, ListPixabayImagesResponseInterface, ListPostTemplatesRequestInterface, ListPostTemplatesResponseInterface, ListSocialPostsRequestInterface, ListSocialPostsResponseInterface, ListTenorGifsRequestInterface, ListTenorGifsResponseInterface, PartnerListScheduledPostsResponseInterface, PartnerListScheduledSocialPostsRequestInterface, RemoveFromMultilocationPostRequestInterface, SchedulePostRequestInterface, SchedulePostResponseInterface, ScheduleToAllPagesRequestInterface, ScheduleToAllPagesResponseInterface, UpdatePostTemplateRequestInterface, } from './api.interface';
8
+ export { HashtagInterface, } from './hashtag.interface';
9
+ export { CreateMultilocationPostRequestInterface, CreateMultilocationPostResponseInterface, CreatePostTemplateRequestInterface, CreatePostTemplateResponseInterface, DateRangeFilterInterface, DeleteHashtagsRequestInterface, DeleteMultilocationPostRequestInterface, DeletePostTemplateRequestInterface, DeleteSocialPostRequestInterface, EditMultilocationPostRequestInterface, EditMultilocationPostResponseInterface, PartnerListScheduledSocialPostsRequestFiltersInterface, GetMultiSocialPostStatsRequestInterface, GetMultiSocialPostStatsResponseInterface, GetMultiSocialPostsRequestInterface, GetMultiSocialPostsResponseInterface, GetMultilocationPostRequestInterface, GetMultilocationPostResponseInterface, GetPostTemplateRequestInterface, GetPostTemplateResponseInterface, GetScheduledPostCountRequestInterface, GetScheduledPostCountResponseInterface, GetTenorAnonymousIdRequestInterface, GetTenorAnonymousIdResponseInterface, ListMultilocationPostsForBrandRequestInterface, ListMultilocationPostsForBrandResponseInterface, ListPixabayImagesRequestInterface, ListPixabayImagesResponseInterface, ListPostTemplatesRequestInterface, ListPostTemplatesResponseInterface, ListSocialPostsRequestInterface, ListSocialPostsResponseInterface, ListTenorGifsRequestInterface, ListTenorGifsResponseInterface, PartnerListScheduledPostsResponseInterface, PartnerListScheduledSocialPostsRequestInterface, RemoveFromMultilocationPostRequestInterface, ReplaceHashtagsRequestInterface, SchedulePostRequestInterface, SchedulePostResponseInterface, ScheduleToAllPagesRequestInterface, ScheduleToAllPagesResponseInterface, SearchHashtagRequestInterface, SearchHashtagResponseInterface, UpdatePostTemplateRequestInterface, } from './api.interface';
@@ -1,5 +1,6 @@
1
1
  import * as i from '../interfaces';
2
2
  import { FieldMask } from './field-mask';
3
+ import { Hashtag } from './hashtag';
3
4
  import { Location, MultilocationPost, MultilocationPostError } from './multilocation-post';
4
5
  import { PixabayImage } from './pixabay-image';
5
6
  import { PostTemplate } from './post-templates';
@@ -56,6 +57,14 @@ export declare class DateRangeFilter implements i.DateRangeFilterInterface {
56
57
  constructor(kwargs?: i.DateRangeFilterInterface);
57
58
  toApiJson(): object;
58
59
  }
60
+ export declare class DeleteHashtagsRequest implements i.DeleteHashtagsRequestInterface {
61
+ keyword: string[];
62
+ businessId: string;
63
+ partnerId: string;
64
+ static fromProto(proto: any): DeleteHashtagsRequest;
65
+ constructor(kwargs?: i.DeleteHashtagsRequestInterface);
66
+ toApiJson(): object;
67
+ }
59
68
  export declare class DeleteMultilocationPostRequest implements i.DeleteMultilocationPostRequestInterface {
60
69
  brandId: string;
61
70
  multilocationId: string;
@@ -300,6 +309,14 @@ export declare class RemoveFromMultilocationPostRequest implements i.RemoveFromM
300
309
  constructor(kwargs?: i.RemoveFromMultilocationPostRequestInterface);
301
310
  toApiJson(): object;
302
311
  }
312
+ export declare class ReplaceHashtagsRequest implements i.ReplaceHashtagsRequestInterface {
313
+ keyword: string[];
314
+ businessId: string;
315
+ partnerId: string;
316
+ static fromProto(proto: any): ReplaceHashtagsRequest;
317
+ constructor(kwargs?: i.ReplaceHashtagsRequestInterface);
318
+ toApiJson(): object;
319
+ }
303
320
  export declare class SchedulePostRequest implements i.SchedulePostRequestInterface {
304
321
  socialPost: SocialPostData;
305
322
  socialServiceIds: string[];
@@ -329,6 +346,21 @@ export declare class ScheduleToAllPagesResponse implements i.ScheduleToAllPagesR
329
346
  constructor(kwargs?: i.ScheduleToAllPagesResponseInterface);
330
347
  toApiJson(): object;
331
348
  }
349
+ export declare class SearchHashtagRequest implements i.SearchHashtagRequestInterface {
350
+ searchTerm: string;
351
+ limit: number;
352
+ businessId: string;
353
+ partnerId: string;
354
+ static fromProto(proto: any): SearchHashtagRequest;
355
+ constructor(kwargs?: i.SearchHashtagRequestInterface);
356
+ toApiJson(): object;
357
+ }
358
+ export declare class SearchHashtagResponse implements i.SearchHashtagResponseInterface {
359
+ hashtags: Hashtag[];
360
+ static fromProto(proto: any): SearchHashtagResponse;
361
+ constructor(kwargs?: i.SearchHashtagResponseInterface);
362
+ toApiJson(): object;
363
+ }
332
364
  export declare class UpdatePostTemplateRequest implements i.UpdatePostTemplateRequestInterface {
333
365
  accountGroupId: string;
334
366
  templateId: string;
@@ -0,0 +1,11 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class Hashtag implements i.HashtagInterface {
4
+ keyword: string;
5
+ usedCount: number;
6
+ businessId: string;
7
+ partnerId: string;
8
+ static fromProto(proto: any): Hashtag;
9
+ constructor(kwargs?: i.HashtagInterface);
10
+ toApiJson(): object;
11
+ }
@@ -5,4 +5,5 @@ export { PostTemplate, } from './post-templates';
5
5
  export { Location, MultilocationPost, MultilocationPostError, } from './multilocation-post';
6
6
  export { FieldMask, } from './field-mask';
7
7
  export { TenorGifMediaEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
8
- export { CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteMultilocationPostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, PartnerListScheduledSocialPostsRequestFilters, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, RemoveFromMultilocationPostRequest, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, UpdatePostTemplateRequest, } from './api';
8
+ export { Hashtag, } from './hashtag';
9
+ export { CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, PartnerListScheduledSocialPostsRequestFilters, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, RemoveFromMultilocationPostRequest, ReplaceHashtagsRequest, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, UpdatePostTemplateRequest, } from './api';
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { SearchHashtagResponse } from './_internal/objects/api';
3
+ import { HashTagsApiService } from './_internal/hash-tags.api.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HashTagsService {
6
+ private hashTagsApiService;
7
+ constructor(hashTagsApiService: HashTagsApiService);
8
+ replaceHashtags(keyword: string[], businessId: string, partnerId: string): Observable<import("@angular/common/http").HttpResponse<null>>;
9
+ deleteHashtags(keyword: string[], businessId: string, partnerId: string): Observable<import("@angular/common/http").HttpResponse<null>>;
10
+ searchHashtag(searchTerm: string, businessId: string, limit: number, partnerId: string): Observable<SearchHashtagResponse>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<HashTagsService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<HashTagsService>;
13
+ }
package/lib/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export { PostTemplatesService } from './post-templates.service';
3
3
  export { MultilocationPostsService } from './multilocation-posts.service';
4
4
  export { TenorGifsService } from './tenor-gifs.service';
5
5
  export { PixabayImageService } from './pixabay-image.service';
6
+ export { HashTagsService } from './hashtag.service';
6
7
  export { FieldMask, Location, MultilocationPost, PostingStatus, RemoveReason, MultilocationPostApiService, GetMultilocationPostRequest, DeleteMultilocationPostRequest, ListMultilocationPostsForBrandRequest } from './_internal';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"