@vendasta/social-posts 5.20.4 → 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.
- package/esm2020/lib/_internal/curated-content.api.service.mjs +41 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/chat-bot.interface.mjs +1 -7
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +132 -1
- package/esm2020/lib/_internal/objects/chat-bot.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-social-posts.mjs +171 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +171 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/curated-content.api.service.d.ts +16 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +26 -0
- package/lib/_internal/interfaces/chat-bot.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api-v2.d.ts +38 -0
- package/lib/_internal/objects/chat-bot.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4184,6 +4184,47 @@ class CreateImageResponse {
|
|
|
4184
4184
|
return toReturn;
|
|
4185
4185
|
}
|
|
4186
4186
|
}
|
|
4187
|
+
class CuratedContentPost {
|
|
4188
|
+
static fromProto(proto) {
|
|
4189
|
+
let m = new CuratedContentPost();
|
|
4190
|
+
m = Object.assign(m, proto);
|
|
4191
|
+
if (proto.media) {
|
|
4192
|
+
m.media = proto.media.map(UploadedMedia.fromProto);
|
|
4193
|
+
}
|
|
4194
|
+
return m;
|
|
4195
|
+
}
|
|
4196
|
+
constructor(kwargs) {
|
|
4197
|
+
if (!kwargs) {
|
|
4198
|
+
return;
|
|
4199
|
+
}
|
|
4200
|
+
Object.assign(this, kwargs);
|
|
4201
|
+
}
|
|
4202
|
+
toApiJson() {
|
|
4203
|
+
const toReturn = {};
|
|
4204
|
+
if (typeof this.id !== 'undefined') {
|
|
4205
|
+
toReturn['id'] = this.id;
|
|
4206
|
+
}
|
|
4207
|
+
if (typeof this.text !== 'undefined') {
|
|
4208
|
+
toReturn['text'] = this.text;
|
|
4209
|
+
}
|
|
4210
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
4211
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
4212
|
+
}
|
|
4213
|
+
if (typeof this.errors !== 'undefined') {
|
|
4214
|
+
toReturn['errors'] = this.errors;
|
|
4215
|
+
}
|
|
4216
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4217
|
+
toReturn['businessId'] = this.businessId;
|
|
4218
|
+
}
|
|
4219
|
+
if (typeof this.createdAt !== 'undefined') {
|
|
4220
|
+
toReturn['createdAt'] = this.createdAt;
|
|
4221
|
+
}
|
|
4222
|
+
if (typeof this.postedAt !== 'undefined') {
|
|
4223
|
+
toReturn['postedAt'] = this.postedAt;
|
|
4224
|
+
}
|
|
4225
|
+
return toReturn;
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4187
4228
|
class DeletePostRequest {
|
|
4188
4229
|
static fromProto(proto) {
|
|
4189
4230
|
let m = new DeletePostRequest();
|
|
@@ -4217,6 +4258,9 @@ class GeneratePostsRequest {
|
|
|
4217
4258
|
if (proto.postLength) {
|
|
4218
4259
|
m.postLength = parseInt(proto.postLength, 10);
|
|
4219
4260
|
}
|
|
4261
|
+
if (proto.metadata) {
|
|
4262
|
+
m.metadata = MetadataV2.fromProto(proto.metadata);
|
|
4263
|
+
}
|
|
4220
4264
|
return m;
|
|
4221
4265
|
}
|
|
4222
4266
|
constructor(kwargs) {
|
|
@@ -4242,6 +4286,9 @@ class GeneratePostsRequest {
|
|
|
4242
4286
|
if (typeof this.postLength !== 'undefined') {
|
|
4243
4287
|
toReturn['postLength'] = this.postLength;
|
|
4244
4288
|
}
|
|
4289
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
4290
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
4291
|
+
}
|
|
4245
4292
|
return toReturn;
|
|
4246
4293
|
}
|
|
4247
4294
|
}
|
|
@@ -4383,6 +4430,67 @@ class ImageUrl {
|
|
|
4383
4430
|
return toReturn;
|
|
4384
4431
|
}
|
|
4385
4432
|
}
|
|
4433
|
+
class ListCuratedContentRequest {
|
|
4434
|
+
static fromProto(proto) {
|
|
4435
|
+
let m = new ListCuratedContentRequest();
|
|
4436
|
+
m = Object.assign(m, proto);
|
|
4437
|
+
return m;
|
|
4438
|
+
}
|
|
4439
|
+
constructor(kwargs) {
|
|
4440
|
+
if (!kwargs) {
|
|
4441
|
+
return;
|
|
4442
|
+
}
|
|
4443
|
+
Object.assign(this, kwargs);
|
|
4444
|
+
}
|
|
4445
|
+
toApiJson() {
|
|
4446
|
+
const toReturn = {};
|
|
4447
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4448
|
+
toReturn['businessId'] = this.businessId;
|
|
4449
|
+
}
|
|
4450
|
+
if (typeof this.feedId !== 'undefined') {
|
|
4451
|
+
toReturn['feedId'] = this.feedId;
|
|
4452
|
+
}
|
|
4453
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
4454
|
+
toReturn['pageSize'] = this.pageSize;
|
|
4455
|
+
}
|
|
4456
|
+
if (typeof this.cursor !== 'undefined') {
|
|
4457
|
+
toReturn['cursor'] = this.cursor;
|
|
4458
|
+
}
|
|
4459
|
+
return toReturn;
|
|
4460
|
+
}
|
|
4461
|
+
}
|
|
4462
|
+
class ListCuratedContentResponse {
|
|
4463
|
+
static fromProto(proto) {
|
|
4464
|
+
let m = new ListCuratedContentResponse();
|
|
4465
|
+
m = Object.assign(m, proto);
|
|
4466
|
+
if (proto.posts) {
|
|
4467
|
+
m.posts = proto.posts.map(CuratedContentPost.fromProto);
|
|
4468
|
+
}
|
|
4469
|
+
return m;
|
|
4470
|
+
}
|
|
4471
|
+
constructor(kwargs) {
|
|
4472
|
+
if (!kwargs) {
|
|
4473
|
+
return;
|
|
4474
|
+
}
|
|
4475
|
+
Object.assign(this, kwargs);
|
|
4476
|
+
}
|
|
4477
|
+
toApiJson() {
|
|
4478
|
+
const toReturn = {};
|
|
4479
|
+
if (typeof this.posts !== 'undefined' && this.posts !== null) {
|
|
4480
|
+
toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
|
|
4481
|
+
}
|
|
4482
|
+
if (typeof this.externalId !== 'undefined') {
|
|
4483
|
+
toReturn['externalId'] = this.externalId;
|
|
4484
|
+
}
|
|
4485
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
4486
|
+
toReturn['hasMore'] = this.hasMore;
|
|
4487
|
+
}
|
|
4488
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
4489
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
4490
|
+
}
|
|
4491
|
+
return toReturn;
|
|
4492
|
+
}
|
|
4493
|
+
}
|
|
4386
4494
|
class ListUnsplashImagesRequest {
|
|
4387
4495
|
static fromProto(proto) {
|
|
4388
4496
|
let m = new ListUnsplashImagesRequest();
|
|
@@ -4836,6 +4944,29 @@ class UploadToStorageResponse {
|
|
|
4836
4944
|
return toReturn;
|
|
4837
4945
|
}
|
|
4838
4946
|
}
|
|
4947
|
+
class UploadedMedia {
|
|
4948
|
+
static fromProto(proto) {
|
|
4949
|
+
let m = new UploadedMedia();
|
|
4950
|
+
m = Object.assign(m, proto);
|
|
4951
|
+
return m;
|
|
4952
|
+
}
|
|
4953
|
+
constructor(kwargs) {
|
|
4954
|
+
if (!kwargs) {
|
|
4955
|
+
return;
|
|
4956
|
+
}
|
|
4957
|
+
Object.assign(this, kwargs);
|
|
4958
|
+
}
|
|
4959
|
+
toApiJson() {
|
|
4960
|
+
const toReturn = {};
|
|
4961
|
+
if (typeof this.type !== 'undefined') {
|
|
4962
|
+
toReturn['type'] = this.type;
|
|
4963
|
+
}
|
|
4964
|
+
if (typeof this.url !== 'undefined') {
|
|
4965
|
+
toReturn['url'] = this.url;
|
|
4966
|
+
}
|
|
4967
|
+
return toReturn;
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4839
4970
|
|
|
4840
4971
|
function enumStringToValue(enumRef, value) {
|
|
4841
4972
|
if (typeof value === 'number') {
|
|
@@ -4945,6 +5076,9 @@ class StartChatRequest {
|
|
|
4945
5076
|
static fromProto(proto) {
|
|
4946
5077
|
let m = new StartChatRequest();
|
|
4947
5078
|
m = Object.assign(m, proto);
|
|
5079
|
+
if (proto.metadata) {
|
|
5080
|
+
m.metadata = MetadataV2.fromProto(proto.metadata);
|
|
5081
|
+
}
|
|
4948
5082
|
return m;
|
|
4949
5083
|
}
|
|
4950
5084
|
constructor(kwargs) {
|
|
@@ -4955,6 +5089,9 @@ class StartChatRequest {
|
|
|
4955
5089
|
}
|
|
4956
5090
|
toApiJson() {
|
|
4957
5091
|
const toReturn = {};
|
|
5092
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
5093
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
5094
|
+
}
|
|
4958
5095
|
return toReturn;
|
|
4959
5096
|
}
|
|
4960
5097
|
}
|
|
@@ -5289,6 +5426,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5289
5426
|
args: [{ providedIn: 'root' }]
|
|
5290
5427
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
5291
5428
|
|
|
5429
|
+
// *********************************
|
|
5430
|
+
// Code generated by sdkgen
|
|
5431
|
+
// DO NOT EDIT!.
|
|
5432
|
+
//
|
|
5433
|
+
// API Service.
|
|
5434
|
+
// *********************************
|
|
5435
|
+
class CuratedContentApiService {
|
|
5436
|
+
constructor(http, hostService) {
|
|
5437
|
+
this.http = http;
|
|
5438
|
+
this.hostService = hostService;
|
|
5439
|
+
this._host = this.hostService.hostWithScheme;
|
|
5440
|
+
}
|
|
5441
|
+
apiOptions() {
|
|
5442
|
+
return {
|
|
5443
|
+
headers: new HttpHeaders({
|
|
5444
|
+
'Content-Type': 'application/json'
|
|
5445
|
+
}),
|
|
5446
|
+
withCredentials: true
|
|
5447
|
+
};
|
|
5448
|
+
}
|
|
5449
|
+
list(r) {
|
|
5450
|
+
const request = (r.toApiJson) ? r : new ListCuratedContentRequest(r);
|
|
5451
|
+
return this.http.post(this._host + "/socialposts.v2.CuratedContent/List", request.toApiJson(), this.apiOptions())
|
|
5452
|
+
.pipe(map(resp => ListCuratedContentResponse.fromProto(resp)));
|
|
5453
|
+
}
|
|
5454
|
+
}
|
|
5455
|
+
CuratedContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5456
|
+
CuratedContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, providedIn: 'root' });
|
|
5457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, decorators: [{
|
|
5458
|
+
type: Injectable,
|
|
5459
|
+
args: [{ providedIn: 'root' }]
|
|
5460
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
5461
|
+
|
|
5292
5462
|
// *********************************
|
|
5293
5463
|
// Code generated by sdkgen
|
|
5294
5464
|
// DO NOT EDIT!.
|
|
@@ -6075,5 +6245,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6075
6245
|
* Generated bundle index. Do not edit.
|
|
6076
6246
|
*/
|
|
6077
6247
|
|
|
6078
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, ChatBotService, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
6248
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, ChatBotService, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
6079
6249
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|