@vendasta/social-posts 4.0.0 → 5.0.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.
Files changed (128) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +25 -0
  2. package/esm2020/lib/_internal/enums/index.mjs +9 -0
  3. package/esm2020/lib/_internal/enums/multilocation-post.enum.mjs +12 -0
  4. package/esm2020/lib/_internal/enums/social-posts.enum.mjs +39 -0
  5. package/esm2020/lib/_internal/index.mjs +16 -0
  6. package/esm2020/lib/_internal/interfaces/api.interface.mjs +2 -0
  7. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  8. package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
  9. package/esm2020/lib/_internal/interfaces/multilocation-post.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/pixabay-image.interface.mjs +8 -0
  11. package/esm2020/lib/_internal/interfaces/post-templates.interface.mjs +8 -0
  12. package/esm2020/lib/_internal/interfaces/social-post-stats.interface.mjs +8 -0
  13. package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +8 -0
  14. package/esm2020/lib/_internal/interfaces/tenor-gif.interface.mjs +8 -0
  15. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +64 -0
  16. package/esm2020/lib/_internal/objects/api.mjs +1246 -0
  17. package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
  18. package/esm2020/lib/_internal/objects/index.mjs +15 -0
  19. package/esm2020/lib/_internal/objects/multilocation-post.mjs +115 -0
  20. package/esm2020/lib/_internal/objects/pixabay-image.mjs +138 -0
  21. package/esm2020/lib/_internal/objects/post-templates.mjs +75 -0
  22. package/esm2020/lib/_internal/objects/social-post-stats.mjs +127 -0
  23. package/esm2020/lib/_internal/objects/social-posts.mjs +272 -0
  24. package/esm2020/lib/_internal/objects/tenor-gif.mjs +106 -0
  25. package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +46 -0
  26. package/esm2020/lib/_internal/pixabay-images.api.service.mjs +41 -0
  27. package/esm2020/lib/_internal/post-templates.api.service.mjs +59 -0
  28. package/esm2020/lib/_internal/social-posts.api.service.mjs +70 -0
  29. package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +46 -0
  30. package/esm2020/lib/index.mjs +5 -0
  31. package/esm2020/lib/multilocation-posts.service.mjs +76 -0
  32. package/esm2020/lib/post-templates.service.mjs +72 -0
  33. package/esm2020/lib/social-posts.service.mjs +43 -0
  34. package/esm2020/public_api.mjs +5 -0
  35. package/esm2020/vendasta-social-posts.mjs +5 -0
  36. package/fesm2015/vendasta-social-posts.mjs +2617 -0
  37. package/fesm2015/vendasta-social-posts.mjs.map +1 -0
  38. package/fesm2020/vendasta-social-posts.mjs +2617 -0
  39. package/fesm2020/vendasta-social-posts.mjs.map +1 -0
  40. package/lib/_generated/host.service.d.ts +5 -9
  41. package/lib/_internal/index.d.ts +2 -0
  42. package/lib/_internal/interfaces/api.interface.d.ts +31 -0
  43. package/lib/_internal/interfaces/index.d.ts +3 -1
  44. package/lib/_internal/interfaces/pixabay-image.interface.d.ts +26 -0
  45. package/lib/_internal/interfaces/tenor-gif.interface.d.ts +20 -0
  46. package/lib/_internal/multilocation-post.api.service.d.ts +4 -0
  47. package/lib/_internal/objects/api.d.ts +49 -0
  48. package/lib/_internal/objects/index.d.ts +3 -1
  49. package/lib/_internal/objects/pixabay-image.d.ts +31 -0
  50. package/lib/_internal/objects/tenor-gif.d.ts +31 -0
  51. package/lib/_internal/partner-social-posts.api.service.d.ts +4 -0
  52. package/lib/_internal/pixabay-images.api.service.d.ts +16 -0
  53. package/lib/_internal/post-templates.api.service.d.ts +4 -0
  54. package/lib/_internal/social-posts.api.service.d.ts +4 -0
  55. package/lib/_internal/tenor-gifs.api.service.d.ts +17 -0
  56. package/lib/multilocation-posts.service.d.ts +3 -0
  57. package/lib/post-templates.service.d.ts +3 -0
  58. package/lib/social-posts.service.d.ts +3 -0
  59. package/package.json +24 -16
  60. package/src/README.md +1 -0
  61. package/vendasta-social-posts.d.ts +1 -4
  62. package/bundles/vendasta-social-posts.umd.js +0 -3709
  63. package/bundles/vendasta-social-posts.umd.js.map +0 -1
  64. package/bundles/vendasta-social-posts.umd.min.js +0 -2
  65. package/bundles/vendasta-social-posts.umd.min.js.map +0 -1
  66. package/esm2015/lib/_generated/host.service.js +0 -104
  67. package/esm2015/lib/_internal/enums/index.js +0 -13
  68. package/esm2015/lib/_internal/enums/multilocation-post.enum.js +0 -19
  69. package/esm2015/lib/_internal/enums/social-posts.enum.js +0 -67
  70. package/esm2015/lib/_internal/index.js +0 -18
  71. package/esm2015/lib/_internal/interfaces/api.interface.js +0 -447
  72. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -19
  73. package/esm2015/lib/_internal/interfaces/index.js +0 -5
  74. package/esm2015/lib/_internal/interfaces/multilocation-post.interface.js +0 -59
  75. package/esm2015/lib/_internal/interfaces/post-templates.interface.js +0 -45
  76. package/esm2015/lib/_internal/interfaces/social-post-stats.interface.js +0 -57
  77. package/esm2015/lib/_internal/interfaces/social-posts.interface.js +0 -127
  78. package/esm2015/lib/_internal/multilocation-post.api.service.js +0 -136
  79. package/esm2015/lib/_internal/objects/api.js +0 -1805
  80. package/esm2015/lib/_internal/objects/field-mask.js +0 -53
  81. package/esm2015/lib/_internal/objects/index.js +0 -17
  82. package/esm2015/lib/_internal/objects/multilocation-post.js +0 -197
  83. package/esm2015/lib/_internal/objects/post-templates.js +0 -127
  84. package/esm2015/lib/_internal/objects/social-post-stats.js +0 -207
  85. package/esm2015/lib/_internal/objects/social-posts.js +0 -446
  86. package/esm2015/lib/_internal/partner-social-posts.api.service.js +0 -90
  87. package/esm2015/lib/_internal/post-templates.api.service.js +0 -122
  88. package/esm2015/lib/_internal/social-posts.api.service.js +0 -155
  89. package/esm2015/lib/index.js +0 -9
  90. package/esm2015/lib/multilocation-posts.service.js +0 -145
  91. package/esm2015/lib/post-templates.service.js +0 -138
  92. package/esm2015/lib/social-posts.service.js +0 -85
  93. package/esm2015/public_api.js +0 -9
  94. package/esm2015/vendasta-social-posts.js +0 -13
  95. package/esm5/lib/_generated/host.service.js +0 -115
  96. package/esm5/lib/_internal/enums/index.js +0 -13
  97. package/esm5/lib/_internal/enums/multilocation-post.enum.js +0 -19
  98. package/esm5/lib/_internal/enums/social-posts.enum.js +0 -67
  99. package/esm5/lib/_internal/index.js +0 -18
  100. package/esm5/lib/_internal/interfaces/api.interface.js +0 -447
  101. package/esm5/lib/_internal/interfaces/field-mask.interface.js +0 -19
  102. package/esm5/lib/_internal/interfaces/index.js +0 -5
  103. package/esm5/lib/_internal/interfaces/multilocation-post.interface.js +0 -59
  104. package/esm5/lib/_internal/interfaces/post-templates.interface.js +0 -45
  105. package/esm5/lib/_internal/interfaces/social-post-stats.interface.js +0 -57
  106. package/esm5/lib/_internal/interfaces/social-posts.interface.js +0 -127
  107. package/esm5/lib/_internal/multilocation-post.api.service.js +0 -163
  108. package/esm5/lib/_internal/objects/api.js +0 -2015
  109. package/esm5/lib/_internal/objects/field-mask.js +0 -59
  110. package/esm5/lib/_internal/objects/index.js +0 -17
  111. package/esm5/lib/_internal/objects/multilocation-post.js +0 -215
  112. package/esm5/lib/_internal/objects/post-templates.js +0 -133
  113. package/esm5/lib/_internal/objects/social-post-stats.js +0 -225
  114. package/esm5/lib/_internal/objects/social-posts.js +0 -482
  115. package/esm5/lib/_internal/partner-social-posts.api.service.js +0 -100
  116. package/esm5/lib/_internal/post-templates.api.service.js +0 -145
  117. package/esm5/lib/_internal/social-posts.api.service.js +0 -186
  118. package/esm5/lib/index.js +0 -9
  119. package/esm5/lib/multilocation-posts.service.js +0 -191
  120. package/esm5/lib/post-templates.service.js +0 -182
  121. package/esm5/lib/social-posts.service.js +0 -106
  122. package/esm5/public_api.js +0 -9
  123. package/esm5/vendasta-social-posts.js +0 -13
  124. package/fesm2015/vendasta-social-posts.js +0 -3220
  125. package/fesm2015/vendasta-social-posts.js.map +0 -1
  126. package/fesm5/vendasta-social-posts.js +0 -3668
  127. package/fesm5/vendasta-social-posts.js.map +0 -1
  128. package/vendasta-social-posts.metadata.json +0 -1
@@ -0,0 +1,26 @@
1
+ export interface PixabayImageInterface {
2
+ id?: number;
3
+ pageUrl?: string;
4
+ type?: string;
5
+ tags?: string;
6
+ previewUrl?: string;
7
+ previewWidth?: number;
8
+ previewHeight?: number;
9
+ webformatUrl?: string;
10
+ webformatWidth?: number;
11
+ webformatHeight?: number;
12
+ largeImageUrl?: string;
13
+ fullHdUrl?: string;
14
+ imageUrl?: string;
15
+ imageWidth?: number;
16
+ imageHeight?: number;
17
+ imageSize?: number;
18
+ views?: number;
19
+ downloads?: number;
20
+ favorites?: number;
21
+ likes?: number;
22
+ comments?: number;
23
+ userId?: number;
24
+ user?: string;
25
+ userImageUrl?: string;
26
+ }
@@ -0,0 +1,20 @@
1
+ export interface TenorGifMediaEntryInterface {
2
+ key?: string;
3
+ value?: TenorMediaObjectInterface;
4
+ }
5
+ export interface TenorGifInterface {
6
+ media?: {
7
+ [key: string]: TenorMediaObjectInterface;
8
+ };
9
+ tags?: string[];
10
+ hasAudio?: boolean;
11
+ title?: string;
12
+ id?: string;
13
+ created?: number;
14
+ }
15
+ export interface TenorMediaObjectInterface {
16
+ preview?: string;
17
+ url?: string;
18
+ dimensions?: number[];
19
+ size?: number;
20
+ }
@@ -3,9 +3,11 @@ import { CreateMultilocationPostRequestInterface, DeleteMultilocationPostRequest
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class MultilocationPostApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  createMultilocationPost(r: CreateMultilocationPostRequest | CreateMultilocationPostRequestInterface): Observable<CreateMultilocationPostResponse>;
@@ -14,4 +16,6 @@ export declare class MultilocationPostApiService {
14
16
  listMultilocationPostsForBrand(r: ListMultilocationPostsForBrandRequest | ListMultilocationPostsForBrandRequestInterface): Observable<ListMultilocationPostsForBrandResponse>;
15
17
  deleteMultilocationPost(r: DeleteMultilocationPostRequest | DeleteMultilocationPostRequestInterface): Observable<HttpResponse<null>>;
16
18
  getMultilocationPost(r: GetMultilocationPostRequest | GetMultilocationPostRequestInterface): Observable<GetMultilocationPostResponse>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultilocationPostApiService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<MultilocationPostApiService>;
17
21
  }
@@ -1,9 +1,11 @@
1
1
  import * as i from '../interfaces';
2
2
  import { FieldMask } from './field-mask';
3
3
  import { Location, MultilocationPost, MultilocationPostError } from './multilocation-post';
4
+ import { PixabayImage } from './pixabay-image';
4
5
  import { PostTemplate } from './post-templates';
5
6
  import { SocialPost, SocialPostData, SchedulePostStatus } from './social-posts';
6
7
  import { SocialPostStats } from './social-post-stats';
8
+ import { TenorGif } from './tenor-gif';
7
9
  import * as e from '../enums';
8
10
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
9
11
  export declare class CreateMultilocationPostRequest implements i.CreateMultilocationPostRequestInterface {
@@ -170,6 +172,17 @@ export declare class GetScheduledPostCountResponse implements i.GetScheduledPost
170
172
  constructor(kwargs?: i.GetScheduledPostCountResponseInterface);
171
173
  toApiJson(): object;
172
174
  }
175
+ export declare class GetTenorAnonymousIdRequest implements i.GetTenorAnonymousIdRequestInterface {
176
+ static fromProto(proto: any): GetTenorAnonymousIdRequest;
177
+ constructor(kwargs?: i.GetTenorAnonymousIdRequestInterface);
178
+ toApiJson(): object;
179
+ }
180
+ export declare class GetTenorAnonymousIdResponse implements i.GetTenorAnonymousIdResponseInterface {
181
+ anonymousId: string;
182
+ static fromProto(proto: any): GetTenorAnonymousIdResponse;
183
+ constructor(kwargs?: i.GetTenorAnonymousIdResponseInterface);
184
+ toApiJson(): object;
185
+ }
173
186
  export declare class ListMultilocationPostsForBrandRequest implements i.ListMultilocationPostsForBrandRequestInterface {
174
187
  brandId: string;
175
188
  startDate: Date;
@@ -189,6 +202,22 @@ export declare class ListMultilocationPostsForBrandResponse implements i.ListMul
189
202
  constructor(kwargs?: i.ListMultilocationPostsForBrandResponseInterface);
190
203
  toApiJson(): object;
191
204
  }
205
+ export declare class ListPixabayImagesRequest implements i.ListPixabayImagesRequestInterface {
206
+ query: string;
207
+ cursor: string;
208
+ pageSize: number;
209
+ static fromProto(proto: any): ListPixabayImagesRequest;
210
+ constructor(kwargs?: i.ListPixabayImagesRequestInterface);
211
+ toApiJson(): object;
212
+ }
213
+ export declare class ListPixabayImagesResponse implements i.ListPixabayImagesResponseInterface {
214
+ total: number;
215
+ totalHits: number;
216
+ hits: PixabayImage[];
217
+ static fromProto(proto: any): ListPixabayImagesResponse;
218
+ constructor(kwargs?: i.ListPixabayImagesResponseInterface);
219
+ toApiJson(): object;
220
+ }
192
221
  export declare class ListPostTemplatesRequest implements i.ListPostTemplatesRequestInterface {
193
222
  accountGroupId: string;
194
223
  cursor: string;
@@ -226,6 +255,26 @@ export declare class ListSocialPostsResponse implements i.ListSocialPostsRespons
226
255
  constructor(kwargs?: i.ListSocialPostsResponseInterface);
227
256
  toApiJson(): object;
228
257
  }
258
+ export declare class ListTenorGifsRequest implements i.ListTenorGifsRequestInterface {
259
+ query: string;
260
+ cursor: string;
261
+ pageSize: number;
262
+ locale: string;
263
+ anonymousId: string;
264
+ mediaFilter: string;
265
+ aspectRatioRange: string;
266
+ contentFilter: string;
267
+ static fromProto(proto: any): ListTenorGifsRequest;
268
+ constructor(kwargs?: i.ListTenorGifsRequestInterface);
269
+ toApiJson(): object;
270
+ }
271
+ export declare class ListTenorGifsResponse implements i.ListTenorGifsResponseInterface {
272
+ next: string;
273
+ results: TenorGif[];
274
+ static fromProto(proto: any): ListTenorGifsResponse;
275
+ constructor(kwargs?: i.ListTenorGifsResponseInterface);
276
+ toApiJson(): object;
277
+ }
229
278
  export declare class PartnerListScheduledPostsResponse implements i.PartnerListScheduledPostsResponseInterface {
230
279
  socialPosts: SocialPost[];
231
280
  nextCursor: string;
@@ -1,6 +1,8 @@
1
1
  export { CallToAction, Error, Event, SchedulePostStatus, SocialPost, SocialPostData, } from './social-posts';
2
+ export { PixabayImage, } from './pixabay-image';
2
3
  export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
3
4
  export { PostTemplate, } from './post-templates';
4
5
  export { Location, MultilocationPost, MultilocationPostError, } from './multilocation-post';
5
6
  export { FieldMask, } from './field-mask';
6
- export { CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteMultilocationPostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, PartnerListScheduledSocialPostsRequestFilters, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, RemoveFromMultilocationPostRequest, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, UpdatePostTemplateRequest, } from './api';
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';
@@ -0,0 +1,31 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class PixabayImage implements i.PixabayImageInterface {
4
+ id: number;
5
+ pageUrl: string;
6
+ type: string;
7
+ tags: string;
8
+ previewUrl: string;
9
+ previewWidth: number;
10
+ previewHeight: number;
11
+ webformatUrl: string;
12
+ webformatWidth: number;
13
+ webformatHeight: number;
14
+ largeImageUrl: string;
15
+ fullHdUrl: string;
16
+ imageUrl: string;
17
+ imageWidth: number;
18
+ imageHeight: number;
19
+ imageSize: number;
20
+ views: number;
21
+ downloads: number;
22
+ favorites: number;
23
+ likes: number;
24
+ comments: number;
25
+ userId: number;
26
+ user: string;
27
+ userImageUrl: string;
28
+ static fromProto(proto: any): PixabayImage;
29
+ constructor(kwargs?: i.PixabayImageInterface);
30
+ toApiJson(): object;
31
+ }
@@ -0,0 +1,31 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class TenorGifMediaEntry implements i.TenorGifMediaEntryInterface {
4
+ key: string;
5
+ value: TenorMediaObject;
6
+ static fromProto(proto: any): TenorGifMediaEntry;
7
+ constructor(kwargs?: i.TenorGifMediaEntryInterface);
8
+ toApiJson(): object;
9
+ }
10
+ export declare class TenorGif implements i.TenorGifInterface {
11
+ media: {
12
+ [key: string]: TenorMediaObject;
13
+ };
14
+ tags: string[];
15
+ hasAudio: boolean;
16
+ title: string;
17
+ id: string;
18
+ created: number;
19
+ static fromProto(proto: any): TenorGif;
20
+ constructor(kwargs?: i.TenorGifInterface);
21
+ toApiJson(): object;
22
+ }
23
+ export declare class TenorMediaObject implements i.TenorMediaObjectInterface {
24
+ preview: string;
25
+ url: string;
26
+ dimensions: number[];
27
+ size: number;
28
+ static fromProto(proto: any): TenorMediaObject;
29
+ constructor(kwargs?: i.TenorMediaObjectInterface);
30
+ toApiJson(): object;
31
+ }
@@ -3,11 +3,15 @@ import { PartnerListScheduledSocialPostsRequestInterface } from './interfaces/';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class PartnerSocialPostsApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  listScheduled(r: PartnerListScheduledSocialPostsRequest | PartnerListScheduledSocialPostsRequestInterface): Observable<PartnerListScheduledPostsResponse>;
12
14
  listScheduledByCreated(r: PartnerListScheduledSocialPostsRequest | PartnerListScheduledSocialPostsRequestInterface): Observable<PartnerListScheduledPostsResponse>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<PartnerSocialPostsApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<PartnerSocialPostsApiService>;
13
17
  }
@@ -0,0 +1,16 @@
1
+ import { ListPixabayImagesRequest, ListPixabayImagesResponse } from './objects/';
2
+ import { ListPixabayImagesRequestInterface } 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 PixabayImagesApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ listPixabayImages(r: ListPixabayImagesRequest | ListPixabayImagesRequestInterface): Observable<ListPixabayImagesResponse>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<PixabayImagesApiService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<PixabayImagesApiService>;
16
+ }
@@ -3,9 +3,11 @@ import { CreatePostTemplateRequestInterface, DeletePostTemplateRequestInterface,
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class PostTemplatesApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  updatePostTemplate(r: UpdatePostTemplateRequest | UpdatePostTemplateRequestInterface): Observable<HttpResponse<null>>;
@@ -13,4 +15,6 @@ export declare class PostTemplatesApiService {
13
15
  getPostTemplate(r: GetPostTemplateRequest | GetPostTemplateRequestInterface): Observable<GetPostTemplateResponse>;
14
16
  listPostTemplates(r: ListPostTemplatesRequest | ListPostTemplatesRequestInterface): Observable<ListPostTemplatesResponse>;
15
17
  deletePostTemplate(r: DeletePostTemplateRequest | DeletePostTemplateRequestInterface): Observable<HttpResponse<null>>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTemplatesApiService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<PostTemplatesApiService>;
16
20
  }
@@ -3,9 +3,11 @@ import { DeleteSocialPostRequestInterface, GetMultiSocialPostStatsRequestInterfa
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class SocialPostsApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  list(r: ListSocialPostsRequest | ListSocialPostsRequestInterface): Observable<ListSocialPostsResponse>;
@@ -15,4 +17,6 @@ export declare class SocialPostsApiService {
15
17
  getMultiSocialPosts(r: GetMultiSocialPostsRequest | GetMultiSocialPostsRequestInterface): Observable<GetMultiSocialPostsResponse>;
16
18
  getMultiSocialPostStats(r: GetMultiSocialPostStatsRequest | GetMultiSocialPostStatsRequestInterface): Observable<GetMultiSocialPostStatsResponse>;
17
19
  getScheduledPostCount(r: GetScheduledPostCountRequest | GetScheduledPostCountRequestInterface): Observable<GetScheduledPostCountResponse>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsApiService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsApiService>;
18
22
  }
@@ -0,0 +1,17 @@
1
+ import { GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListTenorGifsRequest, ListTenorGifsResponse } from './objects/';
2
+ import { GetTenorAnonymousIdRequestInterface, ListTenorGifsRequestInterface } 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 TenorGifsApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ getTenorAnonymousId(r: GetTenorAnonymousIdRequest | GetTenorAnonymousIdRequestInterface): Observable<GetTenorAnonymousIdResponse>;
14
+ listTenorGifs(r: ListTenorGifsRequest | ListTenorGifsRequestInterface): Observable<ListTenorGifsResponse>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TenorGifsApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<TenorGifsApiService>;
17
+ }
@@ -5,6 +5,7 @@ import { MultilocationPostApiService } from './_internal/multilocation-post.api.
5
5
  import { FieldMask } from './_internal/objects/field-mask';
6
6
  import { Location } from './_internal/objects/multilocation-post';
7
7
  import { RemoveReason } from './_internal/enums/multilocation-post.enum';
8
+ import * as i0 from "@angular/core";
8
9
  export declare class MultilocationPostsService {
9
10
  private multilocationApiService;
10
11
  constructor(multilocationApiService: MultilocationPostApiService);
@@ -14,4 +15,6 @@ export declare class MultilocationPostsService {
14
15
  listMultilocationPostsForBrand(brandId: string, startDate: Date, endDate: Date, cursor: string, pageSize: number): Observable<ListMultilocationPostsForBrandResponse>;
15
16
  deleteMultilocationPost(brandId: string, multilocationId: string): Observable<HttpResponse<null>>;
16
17
  getMultilocationPost(brandId: string, multilocationId: string): Observable<GetMultilocationPostResponse>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultilocationPostsService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<MultilocationPostsService>;
17
20
  }
@@ -2,6 +2,7 @@ import { HttpResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { CreatePostTemplateResponse, GetPostTemplateResponse, ListPostTemplatesResponse } from './_internal/objects/api';
4
4
  import { PostTemplatesApiService } from './_internal/post-templates.api.service';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class PostTemplatesService {
6
7
  private socialPostsApiService;
7
8
  constructor(socialPostsApiService: PostTemplatesApiService);
@@ -10,4 +11,6 @@ export declare class PostTemplatesService {
10
11
  getPostTemplate(accountGroupId: string, templateId: string): Observable<GetPostTemplateResponse>;
11
12
  listPostTemplates(accountGroupId: string, cursor: string, pageSize: number): Observable<ListPostTemplatesResponse>;
12
13
  deletePostTemplate(accountGroupId: string, templateId: string): Observable<HttpResponse<null>>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<PostTemplatesService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<PostTemplatesService>;
13
16
  }
@@ -1,10 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ListSocialPostsResponse, GetMultiSocialPostsResponse, GetScheduledPostCountResponse } from './_internal/objects/api';
3
3
  import { SocialPostsApiService } from './_internal/social-posts.api.service';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class SocialPostsService {
5
6
  private socialPostsApiService;
6
7
  constructor(socialPostsApiService: SocialPostsApiService);
7
8
  list(start: Date, end: Date, socialServiceIds: string[], businessId: string, partnerId: string, cursor: string, tags: string[], pageSize: number): Observable<ListSocialPostsResponse>;
8
9
  getMultiSocialPosts(businessId: string, internalPostIds: string[]): Observable<GetMultiSocialPostsResponse>;
9
10
  getScheduledPostCount(partnerId: string, businessId: string, socialServiceIds: string[]): Observable<GetScheduledPostCountResponse>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SocialPostsService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<SocialPostsService>;
10
13
  }
package/package.json CHANGED
@@ -1,27 +1,35 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "peerDependencies": {
5
- "@angular/core": "^8.2.14 || ^9.1.12",
6
- "@angular/common": "^8.2.14 || ^9.1.12",
7
- "@vendasta/core": "^45.4.0",
8
- "typescript": "^3.5.3",
9
- "rxjs": "^6.3.3"
5
+ "@angular/common": "^13.0.0",
6
+ "@angular/core": "^13.0.0"
10
7
  },
11
8
  "author": "Vendasta R&D",
12
9
  "description": "SDK to interact with the social-posts service",
13
10
  "typings": "vendasta-social-posts.d.ts",
14
11
  "license": "ISC",
15
- "main": "bundles/vendasta-social-posts.umd.js",
16
- "module": "fesm5/vendasta-social-posts.js",
17
- "es2015": "fesm2015/vendasta-social-posts.js",
18
- "esm5": "esm5/vendasta-social-posts.js",
19
- "esm2015": "esm2015/vendasta-social-posts.js",
20
- "fesm5": "fesm5/vendasta-social-posts.js",
21
- "fesm2015": "fesm2015/vendasta-social-posts.js",
22
- "metadata": "vendasta-social-posts.metadata.json",
12
+ "main": "index.js",
13
+ "module": "fesm2015/vendasta-social-posts.mjs",
14
+ "es2020": "fesm2020/vendasta-social-posts.mjs",
15
+ "esm2020": "esm2020/vendasta-social-posts.mjs",
16
+ "fesm2020": "fesm2020/vendasta-social-posts.mjs",
17
+ "fesm2015": "fesm2015/vendasta-social-posts.mjs",
18
+ "exports": {
19
+ "./package.json": {
20
+ "default": "./package.json"
21
+ },
22
+ ".": {
23
+ "types": "./vendasta-social-posts.d.ts",
24
+ "esm2020": "./esm2020/vendasta-social-posts.mjs",
25
+ "es2020": "./fesm2020/vendasta-social-posts.mjs",
26
+ "es2015": "./fesm2015/vendasta-social-posts.mjs",
27
+ "node": "./fesm2015/vendasta-social-posts.mjs",
28
+ "default": "./fesm2020/vendasta-social-posts.mjs"
29
+ }
30
+ },
23
31
  "sideEffects": false,
24
32
  "dependencies": {
25
- "tslib": "^1.9.0"
33
+ "tslib": "^2.3.0"
26
34
  }
27
- }
35
+ }
package/src/README.md ADDED
@@ -0,0 +1 @@
1
+ # social-posts SDK
@@ -1,8 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@vendasta/social-posts" />
4
5
  export * from './public_api';
5
- export { HostService as ɵb } from './lib/_generated/host.service';
6
- export { MultilocationPostApiService as ɵd } from './lib/_internal/multilocation-post.api.service';
7
- export { PostTemplatesApiService as ɵc } from './lib/_internal/post-templates.api.service';
8
- export { SocialPostsApiService as ɵa } from './lib/_internal/social-posts.api.service';