@cinerino/sdk 18.0.0-alpha.10 → 18.0.0-alpha.11
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/lib/abstract/chevre/categoryCode.d.ts +3 -6
- package/lib/abstract/chevre/categoryCode.js +2 -6
- package/lib/abstract/chevre/creativeWork.d.ts +7 -4
- package/lib/abstract/chevre/creativeWork.js +2 -6
- package/lib/abstract/cinerino/service/categoryCode.d.ts +4 -4
- package/lib/abstract/cinerino/service/categoryCode.js +1 -1
- package/lib/abstract/cloud/search/creativeWork.d.ts +1 -1
- package/lib/abstract/cloud/search/creativeWork.js +0 -3
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
type IFindParams = Pick<factory.categoryCode.ISearchConditions, '
|
|
3
|
+
export type IFindParams = Pick<factory.categoryCode.ISearchConditions, 'limit' | 'page'> & {
|
|
4
4
|
inCodeSet?: {
|
|
5
5
|
identifier?: {
|
|
6
6
|
$eq?: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
type ICategoryCodeAsFindResult = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'image' | 'name' | 'typeOf'>;
|
|
10
|
+
export type ICategoryCodeAsFindResult = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'image' | 'name' | 'typeOf'>;
|
|
11
11
|
/**
|
|
12
12
|
* 区分サービス
|
|
13
13
|
*/
|
|
@@ -15,8 +15,5 @@ export declare class CategoryCodeService extends Service {
|
|
|
15
15
|
/**
|
|
16
16
|
* 区分検索(決済カード区分を除く)
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
data: ICategoryCodeAsFindResult[];
|
|
20
|
-
}>;
|
|
18
|
+
findCategoryCodes(params: IFindParams): Promise<ICategoryCodeAsFindResult[]>;
|
|
21
19
|
}
|
|
22
|
-
export {};
|
|
@@ -10,18 +10,14 @@ class CategoryCodeService extends service_1.Service {
|
|
|
10
10
|
/**
|
|
11
11
|
* 区分検索(決済カード区分を除く)
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async findCategoryCodes(params) {
|
|
14
14
|
return this.fetch({
|
|
15
15
|
uri: '/categoryCodes',
|
|
16
16
|
method: 'GET',
|
|
17
17
|
qs: params,
|
|
18
18
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
19
|
})
|
|
20
|
-
.then(async (response) =>
|
|
21
|
-
return {
|
|
22
|
-
data: await response.json()
|
|
23
|
-
};
|
|
24
|
-
});
|
|
20
|
+
.then(async (response) => response.json());
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
exports.CategoryCodeService = CategoryCodeService;
|
|
@@ -3,12 +3,15 @@ import { Service } from '../service';
|
|
|
3
3
|
export type IMovieAsFindResult = Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'identifier' | 'name' | 'project' | 'thumbnailUrl' | 'typeOf'> & {
|
|
4
4
|
id: string;
|
|
5
5
|
};
|
|
6
|
-
export type IFindParams = Pick<factory.creativeWork.movie.ISearchConditions, '
|
|
6
|
+
export type IFindParams = Pick<factory.creativeWork.movie.ISearchConditions, 'limit' | 'page'> & {
|
|
7
|
+
identifier?: string | {
|
|
8
|
+
$eq?: string;
|
|
9
|
+
$in?: string[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
7
12
|
/**
|
|
8
13
|
* コンテンツサービス
|
|
9
14
|
*/
|
|
10
15
|
export declare class CreativeWorkService extends Service {
|
|
11
|
-
|
|
12
|
-
data: IMovieAsFindResult[];
|
|
13
|
-
}>;
|
|
16
|
+
findMovies(params: IFindParams): Promise<IMovieAsFindResult[]>;
|
|
14
17
|
}
|
|
@@ -7,18 +7,14 @@ const service_1 = require("../service");
|
|
|
7
7
|
* コンテンツサービス
|
|
8
8
|
*/
|
|
9
9
|
class CreativeWorkService extends service_1.Service {
|
|
10
|
-
async
|
|
10
|
+
async findMovies(params) {
|
|
11
11
|
return this.fetch({
|
|
12
12
|
uri: '/creativeWorks/movie',
|
|
13
13
|
method: 'GET',
|
|
14
14
|
qs: params,
|
|
15
15
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
16
|
})
|
|
17
|
-
.then(async (response) =>
|
|
18
|
-
return {
|
|
19
|
-
data: await response.json()
|
|
20
|
-
};
|
|
21
|
-
});
|
|
17
|
+
.then(async (response) => response.json());
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
20
|
exports.CreativeWorkService = CreativeWorkService;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { factory } from '../../factory';
|
|
2
1
|
import { IAdditionalOptions, IOptions, Service } from '../../service';
|
|
2
|
+
import type { ICategoryCodeAsFindResult, IFindParams } from '../../chevre/categoryCode';
|
|
3
3
|
/**
|
|
4
4
|
* 区分サービス
|
|
5
5
|
*/
|
|
6
6
|
export declare class CategoryCodeService extends Service {
|
|
7
7
|
constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>);
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* 区分検索(決済カード区分を除く)
|
|
10
10
|
*/
|
|
11
|
-
search(params:
|
|
12
|
-
data:
|
|
11
|
+
search(params: IFindParams): Promise<{
|
|
12
|
+
data: ICategoryCodeAsFindResult[];
|
|
13
13
|
}>;
|
|
14
14
|
}
|
|
@@ -11,7 +11,7 @@ class CategoryCodeService extends service_1.Service {
|
|
|
11
11
|
super({ ...options, retryableStatusCodes: [http_status_1.status.BAD_GATEWAY, http_status_1.status.FORBIDDEN, http_status_1.status.UNAUTHORIZED] });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 区分検索(決済カード区分を除く)
|
|
15
15
|
*/
|
|
16
16
|
async search(params) {
|
|
17
17
|
return this.fetch({
|
|
@@ -7,5 +7,5 @@ export declare class CreativeWorkService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* コンテンツ検索
|
|
9
9
|
*/
|
|
10
|
-
findMovies(params: Pick<IFindParams, 'identifier' | 'limit' | 'page'
|
|
10
|
+
findMovies(params: Pick<IFindParams, 'identifier' | 'limit' | 'page'>): Promise<Omit<IMovieAsFindResult, 'project'>[]>;
|
|
11
11
|
}
|
|
@@ -7,9 +7,6 @@ const service_1 = require("../../service");
|
|
|
7
7
|
* コンテンツサービス
|
|
8
8
|
*/
|
|
9
9
|
class CreativeWorkService extends service_1.Service {
|
|
10
|
-
// constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
|
|
11
|
-
// super({ ...options, retryableStatusCodes: [BAD_GATEWAY, FORBIDDEN, UNAUTHORIZED] });
|
|
12
|
-
// }
|
|
13
10
|
/**
|
|
14
11
|
* コンテンツ検索
|
|
15
12
|
*/
|