@cinerino/sdk 18.1.0-alpha.1 → 18.1.0-alpha.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/lib/abstract/chevre/categoryCode.d.ts +1 -5
- package/lib/abstract/chevre/creativeWork.d.ts +8 -2
- package/lib/abstract/chevre/creativeWork.js +13 -2
- package/lib/abstract/chevre/eventSeries.d.ts +37 -2
- package/lib/abstract/chevre/eventSeries.js +12 -2
- package/lib/abstract/chevre/seller/factory.d.ts +1 -1
- package/lib/abstract/chevre/seller/factory.js +0 -6
- package/lib/abstract/chevre/seller.d.ts +4 -6
- package/lib/abstract/chevre/seller.js +1 -1
- package/lib/abstract/cinerino/service/categoryCode.d.ts +13 -2
- package/lib/abstract/cinerino/service/seller.d.ts +5 -2
- package/lib/abstract/cloud/search/creativeWork.d.ts +2 -2
- package/lib/abstract/cloud/search/eventSeries.d.ts +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
3
|
export type IFindParams = Pick<factory.categoryCode.ISearchConditions, 'limit' | 'page'> & {
|
|
4
|
-
|
|
5
|
-
identifier?: {
|
|
6
|
-
$eq?: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
4
|
+
inCodeSetIdentifier?: string;
|
|
9
5
|
};
|
|
10
6
|
export type ICategoryCodeAsFindResult = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'image' | 'name' | 'typeOf'>;
|
|
11
7
|
/**
|
|
@@ -3,15 +3,21 @@ 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
|
|
6
|
+
export type IFindParamsLegacy = Pick<factory.creativeWork.movie.ISearchConditions, 'limit' | 'page'> & {
|
|
7
7
|
identifier?: string | {
|
|
8
8
|
$eq?: string;
|
|
9
9
|
$in?: string[];
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export interface IFindParamsNew {
|
|
13
|
+
limit: number;
|
|
14
|
+
page: number;
|
|
15
|
+
identifier?: string;
|
|
16
|
+
identifiers?: string[];
|
|
17
|
+
}
|
|
12
18
|
/**
|
|
13
19
|
* コンテンツサービス
|
|
14
20
|
*/
|
|
15
21
|
export declare class CreativeWorkService extends Service {
|
|
16
|
-
findMovies(params:
|
|
22
|
+
findMovies(params: IFindParamsNew): Promise<IMovieAsFindResult[]>;
|
|
17
23
|
}
|
|
@@ -3,16 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreativeWorkService = void 0;
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
5
|
const service_1 = require("../service");
|
|
6
|
+
;
|
|
6
7
|
/**
|
|
7
8
|
* コンテンツサービス
|
|
8
9
|
*/
|
|
9
10
|
class CreativeWorkService extends service_1.Service {
|
|
11
|
+
// public async findMovies(params: IFindParams): Promise<IMovieAsFindResult[]> {
|
|
12
|
+
// return this.fetch({
|
|
13
|
+
// uri: '/creativeWorks/movie',
|
|
14
|
+
// method: 'GET',
|
|
15
|
+
// qs: params,
|
|
16
|
+
// expectedStatusCodes: [status.OK]
|
|
17
|
+
// })
|
|
18
|
+
// .then(async (response) => response.json());
|
|
19
|
+
// }
|
|
10
20
|
async findMovies(params) {
|
|
11
21
|
return this.fetch({
|
|
12
|
-
uri: '/
|
|
22
|
+
uri: '/movies',
|
|
13
23
|
method: 'GET',
|
|
14
24
|
qs: params,
|
|
15
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
25
|
+
expectedStatusCodes: [http_status_1.status.OK],
|
|
26
|
+
stringifyOptions: { arrayFormat: 'repeat' }
|
|
16
27
|
})
|
|
17
28
|
.then(async (response) => response.json());
|
|
18
29
|
}
|
|
@@ -2,7 +2,7 @@ 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
|
|
5
|
+
export type IFindParamsLegacy = Pick<factory.eventSeries.ISearchConditions, 'endFrom' | 'endThrough' | 'id' | 'limit' | 'name' | 'page' | 'sort' | 'startFrom' | 'startThrough'> & {
|
|
6
6
|
location?: {
|
|
7
7
|
branchCode?: {
|
|
8
8
|
$eq?: string;
|
|
@@ -17,11 +17,46 @@ export type IFindParams = Pick<factory.eventSeries.ISearchConditions, 'endFrom'
|
|
|
17
17
|
typeOf: factory.eventType.ScreeningEventSeries;
|
|
18
18
|
$projection?: IProjection;
|
|
19
19
|
};
|
|
20
|
+
export interface IFindParamsNew {
|
|
21
|
+
limit: number;
|
|
22
|
+
page: number;
|
|
23
|
+
id?: string;
|
|
24
|
+
ids?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* 開始日時 from
|
|
27
|
+
* ISO 8601 date format
|
|
28
|
+
*/
|
|
29
|
+
startFrom?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* 開始日時 through
|
|
32
|
+
* ISO 8601 date format
|
|
33
|
+
*/
|
|
34
|
+
startThrough?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* 終了日時 from
|
|
37
|
+
* ISO 8601 date format
|
|
38
|
+
*/
|
|
39
|
+
endFrom?: Date;
|
|
40
|
+
/**
|
|
41
|
+
* 終了日時 through
|
|
42
|
+
* ISO 8601 date format
|
|
43
|
+
*/
|
|
44
|
+
endThrough?: Date;
|
|
45
|
+
name?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 施設コード
|
|
48
|
+
*/
|
|
49
|
+
locationBranchCode?: string;
|
|
50
|
+
/**
|
|
51
|
+
* コンテンツコード
|
|
52
|
+
*/
|
|
53
|
+
movieIdentifiers?: string[];
|
|
54
|
+
}
|
|
20
55
|
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'>;
|
|
21
56
|
/**
|
|
22
57
|
* 施設コンテンツサービス
|
|
23
58
|
*/
|
|
24
59
|
export declare class EventSeriesService extends Service {
|
|
25
|
-
findEventSeries(params:
|
|
60
|
+
findEventSeries(params: IFindParamsNew): Promise<IEventSeriesAsFindResult[]>;
|
|
26
61
|
}
|
|
27
62
|
export {};
|
|
@@ -7,12 +7,22 @@ const service_1 = require("../service");
|
|
|
7
7
|
* 施設コンテンツサービス
|
|
8
8
|
*/
|
|
9
9
|
class EventSeriesService extends service_1.Service {
|
|
10
|
+
// public async findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]> {
|
|
11
|
+
// return this.fetch({
|
|
12
|
+
// uri: '/eventSeries',
|
|
13
|
+
// method: 'GET',
|
|
14
|
+
// qs: params,
|
|
15
|
+
// expectedStatusCodes: [status.OK]
|
|
16
|
+
// })
|
|
17
|
+
// .then(async (response) => response.json());
|
|
18
|
+
// }
|
|
10
19
|
async findEventSeries(params) {
|
|
11
20
|
return this.fetch({
|
|
12
|
-
uri: '/
|
|
21
|
+
uri: '/superEvents',
|
|
13
22
|
method: 'GET',
|
|
14
23
|
qs: params,
|
|
15
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
24
|
+
expectedStatusCodes: [http_status_1.status.OK],
|
|
25
|
+
stringifyOptions: { arrayFormat: 'repeat' }
|
|
16
26
|
})
|
|
17
27
|
.then(async (response) => response.json());
|
|
18
28
|
}
|
|
@@ -8,5 +8,5 @@ export type IPaymentServiceByProvider = Pick<factory.service.paymentService.ISer
|
|
|
8
8
|
/**
|
|
9
9
|
* 販売者の提供決済サービス検索条件
|
|
10
10
|
*/
|
|
11
|
-
export type ISearchPaymentServiceConditions = Pick<factory.service.paymentService.ISearchConditions, 'limit' | 'page'
|
|
11
|
+
export type ISearchPaymentServiceConditions = Pick<factory.service.paymentService.ISearchConditions, 'limit' | 'page'>;
|
|
12
12
|
export type IPaymentAccepted = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'additionalProperty' | 'color' | 'image' | 'name'>;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// export type IMakesProductOffer = Pick<
|
|
4
|
-
// factory.product.IOffer,
|
|
5
|
-
// 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'
|
|
6
|
-
// > & {
|
|
7
|
-
// itemOffered: Pick<factory.product.IProduct, 'id' | 'name' | 'typeOf'>;
|
|
8
|
-
// };
|
|
@@ -14,15 +14,13 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
14
14
|
/**
|
|
15
15
|
* 販売者検索
|
|
16
16
|
*/
|
|
17
|
-
findSellers(params: Pick<factory.seller.ISearchConditions, 'limit' | 'page'
|
|
18
|
-
branchCode?:
|
|
19
|
-
$eq?: string;
|
|
20
|
-
};
|
|
17
|
+
findSellers(params: Pick<factory.seller.ISearchConditions, 'limit' | 'page'> & {
|
|
18
|
+
branchCode?: string;
|
|
21
19
|
}): Promise<Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>[]>;
|
|
22
20
|
/**
|
|
23
21
|
* 提供決済サービス検索(public)
|
|
24
22
|
*/
|
|
25
|
-
|
|
23
|
+
findPaymentServicesByProvider(params: {
|
|
26
24
|
provider: {
|
|
27
25
|
/**
|
|
28
26
|
* 販売者ID
|
|
@@ -32,7 +30,7 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
32
30
|
/**
|
|
33
31
|
* 検索条件
|
|
34
32
|
*/
|
|
35
|
-
qs: ISearchPaymentServiceConditions
|
|
33
|
+
qs: Pick<ISearchPaymentServiceConditions, 'limit' | 'page'>;
|
|
36
34
|
}): Promise<IPaymentServiceByProvider[]>;
|
|
37
35
|
/**
|
|
38
36
|
* 対応決済方法区分検索
|
|
@@ -33,7 +33,7 @@ class SellerService extends service_1.Service {
|
|
|
33
33
|
/**
|
|
34
34
|
* 提供決済サービス検索(public)
|
|
35
35
|
*/
|
|
36
|
-
async
|
|
36
|
+
async findPaymentServicesByProvider(params) {
|
|
37
37
|
const { provider, qs } = params;
|
|
38
38
|
return this.fetch({
|
|
39
39
|
uri: `/sellers/${provider.id}/paymentServices`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, Service } from '../../service';
|
|
2
|
-
import type { ICategoryCodeAsFindResult
|
|
2
|
+
import type { ICategoryCodeAsFindResult } from '../../chevre/categoryCode';
|
|
3
3
|
/**
|
|
4
4
|
* 区分サービス
|
|
5
5
|
*/
|
|
@@ -8,7 +8,18 @@ export declare class CategoryCodeService extends Service {
|
|
|
8
8
|
/**
|
|
9
9
|
* 区分検索(決済カード区分を除く)
|
|
10
10
|
*/
|
|
11
|
-
search(params:
|
|
11
|
+
search(params: {
|
|
12
|
+
limit?: number;
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* 区分分類
|
|
16
|
+
*/
|
|
17
|
+
inCodeSet?: {
|
|
18
|
+
identifier?: {
|
|
19
|
+
$eq?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}): Promise<{
|
|
12
23
|
data: ICategoryCodeAsFindResult[];
|
|
13
24
|
}>;
|
|
14
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPaymentAccepted, IPaymentServiceByProvider
|
|
1
|
+
import { IPaymentAccepted, IPaymentServiceByProvider } from '../../chevre/seller/factory';
|
|
2
2
|
import { factory } from '../../factory';
|
|
3
3
|
import { IFetchOptions, IOptions, ISearchResult, Service } from '../../service';
|
|
4
4
|
/**
|
|
@@ -35,7 +35,10 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
35
35
|
/**
|
|
36
36
|
* 検索条件
|
|
37
37
|
*/
|
|
38
|
-
qs:
|
|
38
|
+
qs: {
|
|
39
|
+
limit?: number;
|
|
40
|
+
page?: number;
|
|
41
|
+
};
|
|
39
42
|
}): Promise<ISearchResult<IPaymentServiceByProvider[]>>;
|
|
40
43
|
/**
|
|
41
44
|
* 対応決済方法区分検索
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFindParamsLegacy, IMovieAsFindResult } from '../../chevre/creativeWork';
|
|
2
2
|
import { Service } from '../../service';
|
|
3
3
|
/**
|
|
4
4
|
* コンテンツサービス
|
|
@@ -7,5 +7,5 @@ export declare class CreativeWorkService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* コンテンツ検索
|
|
9
9
|
*/
|
|
10
|
-
findMovies(params: Pick<
|
|
10
|
+
findMovies(params: Pick<IFindParamsLegacy, 'identifier' | 'limit' | 'page'>): Promise<Omit<IMovieAsFindResult, 'project'>[]>;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Service } from '../../service';
|
|
2
|
-
import {
|
|
2
|
+
import { IFindParamsLegacy, IEventSeriesAsFindResult } from '../../chevre/eventSeries';
|
|
3
3
|
/**
|
|
4
4
|
* 施設コンテンツサービス
|
|
5
5
|
*/
|
|
@@ -7,5 +7,5 @@ export declare class EventSeriesService extends Service {
|
|
|
7
7
|
/**
|
|
8
8
|
* 施設コンテンツ検索
|
|
9
9
|
*/
|
|
10
|
-
findEventSeries(params:
|
|
10
|
+
findEventSeries(params: IFindParamsLegacy): Promise<IEventSeriesAsFindResult[]>;
|
|
11
11
|
}
|