@cinerino/sdk 16.1.0 → 16.3.0-alpha.0
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/place.d.ts +13 -4
- package/lib/abstract/chevre/place.js +2 -6
- package/lib/abstract/chevreConsole/identity.d.ts +31 -3
- package/lib/abstract/chevreConsole/identity.js +5 -3
- package/lib/abstract/cloud/search/place.d.ts +8 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { Service } from '../service';
|
|
|
3
3
|
export type IScreeningRoom = Omit<factory.place.screeningRoom.IPlace, 'containsPlace' | 'parentOrganization'>;
|
|
4
4
|
export type IScreeningRoomSection = Omit<factory.place.screeningRoomSection.IPlace, 'containsPlace' | 'parentOrganization'>;
|
|
5
5
|
export type ISeat = Omit<factory.place.seat.IPlace, 'parentOrganization'>;
|
|
6
|
-
export type IMovieTheater = Pick<factory.place.movieTheater.IPlace, 'typeOf' | 'additionalProperty' | 'branchCode' | 'hasEntranceGate' | 'id' | 'kanaName' | 'name' | 'offers' | 'parentOrganization' | 'telephone' | 'project'>;
|
|
7
6
|
interface IFindMovieTheaterParams {
|
|
8
7
|
limit: number;
|
|
9
8
|
page: number;
|
|
@@ -19,9 +18,19 @@ export declare class PlaceService extends Service {
|
|
|
19
18
|
* 施設検索
|
|
20
19
|
* @deprecated use findMovieTheaters
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
searchMovieTheatersLegacy(params: Pick<factory.place.movieTheater.ISearchConditions, 'sort'> & {
|
|
22
|
+
id?: {
|
|
23
|
+
$eq?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 名称
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
limit: number;
|
|
30
|
+
page: number;
|
|
31
|
+
}): Promise<Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url'> & {
|
|
32
|
+
offers?: Pick<factory.place.movieTheater.IOffer, 'availabilityStartsGraceTime'>;
|
|
33
|
+
}[]>;
|
|
25
34
|
/**
|
|
26
35
|
* 施設検索
|
|
27
36
|
* 2026-01-03~
|
|
@@ -12,18 +12,14 @@ class PlaceService extends service_1.Service {
|
|
|
12
12
|
* 施設検索
|
|
13
13
|
* @deprecated use findMovieTheaters
|
|
14
14
|
*/
|
|
15
|
-
async
|
|
15
|
+
async searchMovieTheatersLegacy(params) {
|
|
16
16
|
return this.fetch({
|
|
17
17
|
uri: `/places/${factory_1.factory.placeType.MovieTheater}`,
|
|
18
18
|
method: 'GET',
|
|
19
19
|
qs: params,
|
|
20
20
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
21
21
|
})
|
|
22
|
-
.then(async (response) =>
|
|
23
|
-
return {
|
|
24
|
-
data: await response.json()
|
|
25
|
-
};
|
|
26
|
-
});
|
|
22
|
+
.then(async (response) => response.json());
|
|
27
23
|
}
|
|
28
24
|
/**
|
|
29
25
|
* 施設検索
|
|
@@ -1,20 +1,48 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
type
|
|
3
|
+
type IIdentityAsFindResult = Pick<factory.creativeWork.certification.softwareApplication.ICertification, 'about' | 'dateCreated' | 'dateModified' | 'issuedBy' | 'typeOf'> & {
|
|
4
|
+
/**
|
|
5
|
+
* DB側のアイデンティティID
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
} | Pick<factory.creativeWork.certification.webApplication.ICertification, 'about' | 'dateCreated' | 'dateModified' | 'issuedBy' | 'typeOf'> & {
|
|
9
|
+
/**
|
|
10
|
+
* DB側のアイデンティティID
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* ひとまずクライアント認証アイデンティティのみ想定
|
|
16
|
+
*/
|
|
4
17
|
interface ISavingIdentity {
|
|
5
18
|
clientId: string;
|
|
6
19
|
clientSecret: string;
|
|
7
20
|
iss: string[];
|
|
8
21
|
}
|
|
22
|
+
type IFindParams = Pick<factory.creativeWork.certification.webApplication.ISearchConditions, 'about' | 'issuedBy' | 'sort'> & {
|
|
23
|
+
limit: number;
|
|
24
|
+
page: number;
|
|
25
|
+
id?: {
|
|
26
|
+
$eq?: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
9
29
|
/**
|
|
10
30
|
* アイデンティティサービス
|
|
11
31
|
*/
|
|
12
32
|
export declare class IdentityService extends Service {
|
|
13
|
-
|
|
33
|
+
addIdentity(params: ISavingIdentity, options: {
|
|
34
|
+
/**
|
|
35
|
+
* アプリケーションタイプに対応
|
|
36
|
+
*/
|
|
37
|
+
aboutTypeOf: factory.creativeWorkType.SoftwareApplication | factory.creativeWorkType.WebApplication;
|
|
38
|
+
}): Promise<{
|
|
14
39
|
id: string;
|
|
15
40
|
}>;
|
|
16
|
-
|
|
41
|
+
findIdentities(params: IFindParams): Promise<IIdentityAsFindResult[]>;
|
|
17
42
|
updateIdentityById(params: ISavingIdentity & {
|
|
43
|
+
/**
|
|
44
|
+
* DB側のアイデンティティID
|
|
45
|
+
*/
|
|
18
46
|
id: string;
|
|
19
47
|
}): Promise<void>;
|
|
20
48
|
deleteIdentityById(params: {
|
|
@@ -7,21 +7,23 @@ const service_1 = require("../service");
|
|
|
7
7
|
* アイデンティティサービス
|
|
8
8
|
*/
|
|
9
9
|
class IdentityService extends service_1.Service {
|
|
10
|
-
async
|
|
10
|
+
async addIdentity(params, options) {
|
|
11
11
|
return this.fetch({
|
|
12
12
|
uri: '/identities',
|
|
13
13
|
method: 'POST',
|
|
14
14
|
body: params,
|
|
15
|
+
qs: options,
|
|
15
16
|
expectedStatusCodes: [http_status_1.status.CREATED]
|
|
16
17
|
})
|
|
17
18
|
.then(async (response) => response.json());
|
|
18
19
|
}
|
|
19
|
-
async
|
|
20
|
+
async findIdentities(params) {
|
|
20
21
|
return this.fetch({
|
|
21
22
|
uri: '/identities',
|
|
22
23
|
method: 'GET',
|
|
23
24
|
qs: params,
|
|
24
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
25
|
+
expectedStatusCodes: [http_status_1.status.OK],
|
|
26
|
+
stringifyOptions: { arrayFormat: 'repeat' }
|
|
25
27
|
})
|
|
26
28
|
.then(async (response) => response.json());
|
|
27
29
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { factory } from '../../factory';
|
|
2
2
|
import { Service } from '../../service';
|
|
3
|
-
type IFindMovieTheatersParams = Pick<factory.place.movieTheater.ISearchConditions, '
|
|
3
|
+
type IFindMovieTheatersParams = Pick<factory.place.movieTheater.ISearchConditions, 'sort'> & {
|
|
4
|
+
id?: {
|
|
5
|
+
$eq?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* 名称
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
4
11
|
limit: number;
|
|
5
12
|
page: number;
|
|
6
13
|
};
|