@cinerino/sdk 12.0.0-alpha.0 → 12.0.0-alpha.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// tslint:disable:no-console
|
|
2
|
-
import {
|
|
2
|
+
import { loadCloudSearch } from '../../../../lib/';
|
|
3
3
|
import { auth } from '../../auth/clientCredentials';
|
|
4
4
|
|
|
5
5
|
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
@@ -8,7 +8,7 @@ async function main() {
|
|
|
8
8
|
const creativeWorkService = await (await loadCloudSearch({
|
|
9
9
|
endpoint: <string>process.env.API_ENDPOINT,
|
|
10
10
|
auth: await auth(),
|
|
11
|
-
defaultPath: '/secondary',
|
|
11
|
+
// defaultPath: '/secondary',
|
|
12
12
|
disableAutoRetry: true
|
|
13
13
|
})).createCreativeWorkInstance({
|
|
14
14
|
project: { id: PROJECT_ID },
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
export declare type IMovieAsFindResult = Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'identifier' | 'name' | 'project' | 'thumbnailUrl' | 'typeOf'
|
|
3
|
+
export declare type IMovieAsFindResult = Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'identifier' | 'name' | 'project' | 'thumbnailUrl' | 'typeOf'> & {
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
4
6
|
export declare type IFindParams = Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'limit' | 'name' | 'offers' | 'page' | 'sort'>;
|
|
5
7
|
/**
|
|
6
8
|
* コンテンツサービス
|
|
@@ -7,5 +7,5 @@ export declare class CreativeWorkService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* コンテンツ検索
|
|
9
9
|
*/
|
|
10
|
-
findMovies(params: Pick<IFindParams, 'identifier' | 'limit' | 'page' | 'sort'>): Promise<Omit<IMovieAsFindResult, '
|
|
10
|
+
findMovies(params: Pick<IFindParams, 'identifier' | 'limit' | 'page' | 'sort'>): Promise<Omit<IMovieAsFindResult, 'project'>[]>;
|
|
11
11
|
}
|