@vendasta/social-posts 5.19.2 → 5.19.4
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/unsplash-image.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +7 -1
- package/esm2020/lib/_internal/objects/unsplash-image.mjs +4 -1
- package/esm2020/lib/unsplash-image.service.mjs +10 -4
- package/fesm2015/vendasta-social-posts.mjs +17 -2
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +17 -2
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/api-v2.interface.d.ts +2 -0
- package/lib/_internal/interfaces/unsplash-image.interface.d.ts +1 -0
- package/lib/_internal/objects/api-v2.d.ts +2 -0
- package/lib/_internal/objects/unsplash-image.d.ts +1 -0
- package/lib/unsplash-image.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -71,6 +71,7 @@ export interface ListUnsplashImagesRequestInterface {
|
|
|
71
71
|
color?: string;
|
|
72
72
|
orientation?: string;
|
|
73
73
|
random?: boolean;
|
|
74
|
+
includeLocalUrl?: boolean;
|
|
74
75
|
}
|
|
75
76
|
export interface ListUnsplashImagesResponseInterface {
|
|
76
77
|
total?: number;
|
|
@@ -133,6 +134,7 @@ export interface UpdateSocialPostResponseInterface {
|
|
|
133
134
|
export interface UploadToStorageRequestInterface {
|
|
134
135
|
url?: string;
|
|
135
136
|
mediaType?: e.MediaType;
|
|
137
|
+
agid?: string;
|
|
136
138
|
}
|
|
137
139
|
export interface UploadToStorageResponseInterface {
|
|
138
140
|
url?: string;
|
|
@@ -112,6 +112,7 @@ export declare class ListUnsplashImagesRequest implements i.ListUnsplashImagesRe
|
|
|
112
112
|
color: string;
|
|
113
113
|
orientation: string;
|
|
114
114
|
random: boolean;
|
|
115
|
+
includeLocalUrl: boolean;
|
|
115
116
|
static fromProto(proto: any): ListUnsplashImagesRequest;
|
|
116
117
|
constructor(kwargs?: i.ListUnsplashImagesRequestInterface);
|
|
117
118
|
toApiJson(): object;
|
|
@@ -213,6 +214,7 @@ export declare class UpdateSocialPostResponse implements i.UpdateSocialPostRespo
|
|
|
213
214
|
export declare class UploadToStorageRequest implements i.UploadToStorageRequestInterface {
|
|
214
215
|
url: string;
|
|
215
216
|
mediaType: e.MediaType;
|
|
217
|
+
agid: string;
|
|
216
218
|
static fromProto(proto: any): UploadToStorageRequest;
|
|
217
219
|
constructor(kwargs?: i.UploadToStorageRequestInterface);
|
|
218
220
|
toApiJson(): object;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { UnsplashApiService } from './_internal/unsplash.api.service';
|
|
3
|
-
import { ListUnsplashImagesResponse } from './_internal/objects/api-v2';
|
|
3
|
+
import { ListUnsplashImagesResponse, UploadToStorageResponse } from './_internal/objects/api-v2';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class UnsplashImageService {
|
|
6
6
|
private unsplashApiService;
|
|
7
7
|
constructor(unsplashApiService: UnsplashApiService);
|
|
8
|
-
listUnsplashImages(query: string, page?: number, perPage?: number, orderBy?: string, orientation?: string): Observable<ListUnsplashImagesResponse>;
|
|
8
|
+
listUnsplashImages(query: string, page?: number, perPage?: number, orderBy?: string, orientation?: string, includeLocalUrl?: boolean): Observable<ListUnsplashImagesResponse>;
|
|
9
|
+
uploadToStorage(url: string, agid: string): Observable<UploadToStorageResponse>;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnsplashImageService, never>;
|
|
10
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<UnsplashImageService>;
|
|
11
12
|
}
|