@vendasta/social-posts 5.19.1 → 5.19.3
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/interfaces/api-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +56 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/unsplash.api.service.mjs +7 -2
- package/esm2020/lib/unsplash-image.service.mjs +9 -3
- package/fesm2015/vendasta-social-posts.mjs +68 -2
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +68 -2
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/api-v2.interface.d.ts +10 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api-v2.d.ts +16 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/unsplash.api.service.d.ts +3 -2
- package/lib/unsplash-image.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -4131,6 +4131,9 @@ class GeneratePostsResponse {
|
|
|
4131
4131
|
if (typeof this.posts !== 'undefined' && this.posts !== null) {
|
|
4132
4132
|
toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
|
|
4133
4133
|
}
|
|
4134
|
+
if (typeof this.keyword !== 'undefined') {
|
|
4135
|
+
toReturn['keyword'] = this.keyword;
|
|
4136
|
+
}
|
|
4134
4137
|
return toReturn;
|
|
4135
4138
|
}
|
|
4136
4139
|
}
|
|
@@ -4290,6 +4293,9 @@ class ListUnsplashImagesRequest {
|
|
|
4290
4293
|
if (typeof this.orientation !== 'undefined') {
|
|
4291
4294
|
toReturn['orientation'] = this.orientation;
|
|
4292
4295
|
}
|
|
4296
|
+
if (typeof this.random !== 'undefined') {
|
|
4297
|
+
toReturn['random'] = this.random;
|
|
4298
|
+
}
|
|
4293
4299
|
return toReturn;
|
|
4294
4300
|
}
|
|
4295
4301
|
}
|
|
@@ -4644,6 +4650,55 @@ class UpdateSocialPostResponse {
|
|
|
4644
4650
|
return toReturn;
|
|
4645
4651
|
}
|
|
4646
4652
|
}
|
|
4653
|
+
class UploadToStorageRequest {
|
|
4654
|
+
static fromProto(proto) {
|
|
4655
|
+
let m = new UploadToStorageRequest();
|
|
4656
|
+
m = Object.assign(m, proto);
|
|
4657
|
+
if (proto.mediaType) {
|
|
4658
|
+
m.mediaType = enumStringToValue(MediaType, proto.mediaType);
|
|
4659
|
+
}
|
|
4660
|
+
return m;
|
|
4661
|
+
}
|
|
4662
|
+
constructor(kwargs) {
|
|
4663
|
+
if (!kwargs) {
|
|
4664
|
+
return;
|
|
4665
|
+
}
|
|
4666
|
+
Object.assign(this, kwargs);
|
|
4667
|
+
}
|
|
4668
|
+
toApiJson() {
|
|
4669
|
+
const toReturn = {};
|
|
4670
|
+
if (typeof this.url !== 'undefined') {
|
|
4671
|
+
toReturn['url'] = this.url;
|
|
4672
|
+
}
|
|
4673
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
4674
|
+
toReturn['mediaType'] = this.mediaType;
|
|
4675
|
+
}
|
|
4676
|
+
if (typeof this.agid !== 'undefined') {
|
|
4677
|
+
toReturn['agid'] = this.agid;
|
|
4678
|
+
}
|
|
4679
|
+
return toReturn;
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
class UploadToStorageResponse {
|
|
4683
|
+
static fromProto(proto) {
|
|
4684
|
+
let m = new UploadToStorageResponse();
|
|
4685
|
+
m = Object.assign(m, proto);
|
|
4686
|
+
return m;
|
|
4687
|
+
}
|
|
4688
|
+
constructor(kwargs) {
|
|
4689
|
+
if (!kwargs) {
|
|
4690
|
+
return;
|
|
4691
|
+
}
|
|
4692
|
+
Object.assign(this, kwargs);
|
|
4693
|
+
}
|
|
4694
|
+
toApiJson() {
|
|
4695
|
+
const toReturn = {};
|
|
4696
|
+
if (typeof this.url !== 'undefined') {
|
|
4697
|
+
toReturn['url'] = this.url;
|
|
4698
|
+
}
|
|
4699
|
+
return toReturn;
|
|
4700
|
+
}
|
|
4701
|
+
}
|
|
4647
4702
|
|
|
4648
4703
|
// *********************************
|
|
4649
4704
|
// Code generated by sdkgen
|
|
@@ -5273,6 +5328,11 @@ class UnsplashApiService {
|
|
|
5273
5328
|
return this.http.post(this._host + "/socialposts.v2.Unsplash/ListUnsplashImages", request.toApiJson(), this.apiOptions())
|
|
5274
5329
|
.pipe(map(resp => ListUnsplashImagesResponse.fromProto(resp)));
|
|
5275
5330
|
}
|
|
5331
|
+
uploadToStorage(r) {
|
|
5332
|
+
const request = (r.toApiJson) ? r : new UploadToStorageRequest(r);
|
|
5333
|
+
return this.http.post(this._host + "/socialposts.v2.Unsplash/UploadToStorage", request.toApiJson(), this.apiOptions())
|
|
5334
|
+
.pipe(map(resp => UploadToStorageResponse.fromProto(resp)));
|
|
5335
|
+
}
|
|
5276
5336
|
}
|
|
5277
5337
|
UnsplashApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5278
5338
|
UnsplashApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, providedIn: 'root' });
|
|
@@ -5638,12 +5698,18 @@ class UnsplashImageService {
|
|
|
5638
5698
|
constructor(unsplashApiService) {
|
|
5639
5699
|
this.unsplashApiService = unsplashApiService;
|
|
5640
5700
|
}
|
|
5641
|
-
listUnsplashImages(query, page, perPage, orderBy = "relevent", orientation = "squarish") {
|
|
5701
|
+
listUnsplashImages(query, page = 1, perPage = 20, orderBy = "relevent", orientation = "squarish") {
|
|
5642
5702
|
const request = new ListUnsplashImagesRequest({
|
|
5643
5703
|
query: query, page: page, perPage: perPage, orderBy: orderBy, orientation: orientation,
|
|
5644
5704
|
});
|
|
5645
5705
|
return this.unsplashApiService.listUnsplashImages(request);
|
|
5646
5706
|
}
|
|
5707
|
+
uploadToStorage(url, agid) {
|
|
5708
|
+
const request = new UploadToStorageRequest({
|
|
5709
|
+
url: url, agid: agid
|
|
5710
|
+
});
|
|
5711
|
+
return this.unsplashApiService.uploadToStorage(request);
|
|
5712
|
+
}
|
|
5647
5713
|
}
|
|
5648
5714
|
UnsplashImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashImageService, deps: [{ token: UnsplashApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5649
5715
|
UnsplashImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashImageService, providedIn: 'root' });
|
|
@@ -5656,5 +5722,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5656
5722
|
* Generated bundle index. Do not edit.
|
|
5657
5723
|
*/
|
|
5658
5724
|
|
|
5659
|
-
export { AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, 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, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UnsplashImageService, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
5725
|
+
export { AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, 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, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UnsplashImageService, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
5660
5726
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|