@cinerino/sdk 18.0.0-alpha.10 → 18.0.0-alpha.12
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/chevre/eventSeries.d.ts +17 -4
- package/lib/abstract/chevre/eventSeries.js +1 -1
- 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/abstract/cloud/search/eventSeries.d.ts +1 -9
- package/lib/abstract/cloud/search/eventSeries.js +0 -3
- package/lib/bundle.js +2 -2
- 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;
|
|
@@ -2,13 +2,26 @@ import { factory } from '../factory';
|
|
|
2
2
|
import { Service } from '../service';
|
|
3
3
|
type IKeyOfProjection = keyof factory.eventSeries.IEvent;
|
|
4
4
|
type IProjection = Partial<Record<IKeyOfProjection, 0>>;
|
|
5
|
+
export type IFindParams = Pick<factory.eventSeries.ISearchConditions, 'endFrom' | 'endThrough' | 'id' | 'limit' | 'name' | 'page' | 'sort' | 'startFrom' | 'startThrough'> & {
|
|
6
|
+
location?: {
|
|
7
|
+
branchCode?: {
|
|
8
|
+
$eq?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
workPerformed?: {
|
|
12
|
+
/**
|
|
13
|
+
* コンテンツコード
|
|
14
|
+
*/
|
|
15
|
+
identifiers?: string[];
|
|
16
|
+
};
|
|
17
|
+
typeOf: factory.eventType.ScreeningEventSeries;
|
|
18
|
+
$projection?: IProjection;
|
|
19
|
+
};
|
|
20
|
+
export type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'coaInfo' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'eventStatus' | 'headline' | 'identifier' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'project' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'workPerformed' | 'subEvent' | 'id'>;
|
|
5
21
|
/**
|
|
6
22
|
* 施設コンテンツサービス
|
|
7
23
|
*/
|
|
8
24
|
export declare class EventSeriesService extends Service {
|
|
9
|
-
|
|
10
|
-
typeOf: factory.eventType.ScreeningEventSeries;
|
|
11
|
-
$projection?: IProjection;
|
|
12
|
-
}): Promise<factory.eventSeries.IEvent[]>;
|
|
25
|
+
findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
|
|
13
26
|
}
|
|
14
27
|
export {};
|
|
@@ -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
|
*/
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { factory } from '../../factory';
|
|
2
1
|
import { Service } from '../../service';
|
|
3
|
-
|
|
4
|
-
type IFindParams = Pick<factory.eventSeries.ISearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'location' | 'name' | 'page' | 'sort' | 'startFrom' | 'startThrough' | 'videoFormat' | 'workPerformed'> & {
|
|
5
|
-
typeOf: factory.eventType.ScreeningEventSeries;
|
|
6
|
-
$projection?: {
|
|
7
|
-
[key in keyof factory.eventSeries.IEvent]?: 0;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
2
|
+
import { IFindParams, IEventSeriesAsFindResult } from '../../chevre/eventSeries';
|
|
10
3
|
/**
|
|
11
4
|
* 施設コンテンツサービス
|
|
12
5
|
*/
|
|
@@ -16,4 +9,3 @@ export declare class EventSeriesService extends Service {
|
|
|
16
9
|
*/
|
|
17
10
|
findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
|
|
18
11
|
}
|
|
19
|
-
export {};
|
|
@@ -8,9 +8,6 @@ const BASE_URI = '/eventSeries';
|
|
|
8
8
|
* 施設コンテンツサービス
|
|
9
9
|
*/
|
|
10
10
|
class EventSeriesService extends service_1.Service {
|
|
11
|
-
// constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
|
|
12
|
-
// super({ ...options, retryableStatusCodes: [status.BAD_GATEWAY, status.FORBIDDEN, status.UNAUTHORIZED] });
|
|
13
|
-
// }
|
|
14
11
|
/**
|
|
15
12
|
* 施設コンテンツ検索
|
|
16
13
|
*/
|