@cinerino/sdk 18.3.0-alpha.3 → 18.3.0-alpha.5
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.
|
@@ -8,9 +8,9 @@ import { Service } from '../service';
|
|
|
8
8
|
export declare class EventService extends Service {
|
|
9
9
|
/**
|
|
10
10
|
* イベント検索
|
|
11
|
-
* @deprecated use findSubEvents
|
|
11
|
+
* @deprecated use findSubEvents(2026-10-14~)
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
projectFieldsDeprecated(params: IFindParamsLegacy): Promise<factory.event.screeningEvent.IEvent[]>;
|
|
14
14
|
/**
|
|
15
15
|
* イベント検索
|
|
16
16
|
*/
|
|
@@ -9,9 +9,9 @@ const service_1 = require("../service");
|
|
|
9
9
|
class EventService extends service_1.Service {
|
|
10
10
|
/**
|
|
11
11
|
* イベント検索
|
|
12
|
-
* @deprecated use findSubEvents
|
|
12
|
+
* @deprecated use findSubEvents(2026-10-14~)
|
|
13
13
|
*/
|
|
14
|
-
async
|
|
14
|
+
async projectFieldsDeprecated(params) {
|
|
15
15
|
return this.fetch({
|
|
16
16
|
uri: '/events',
|
|
17
17
|
method: 'GET',
|
|
@@ -28,7 +28,8 @@ class EventService extends service_1.Service {
|
|
|
28
28
|
uri: '/subEvents',
|
|
29
29
|
method: 'GET',
|
|
30
30
|
qs: params,
|
|
31
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
31
|
+
expectedStatusCodes: [http_status_1.status.OK],
|
|
32
|
+
stringifyOptions: { arrayFormat: 'repeat' }
|
|
32
33
|
})
|
|
33
34
|
.then(async (response) => response.json());
|
|
34
35
|
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
|
-
interface IMemberProgramTier {
|
|
3
|
-
/**
|
|
4
|
-
* ティアコード
|
|
5
|
-
* プロジェクト内でユニーク必須
|
|
6
|
-
*/
|
|
7
|
-
identifier: string;
|
|
8
|
-
typeOf: 'MemberProgramTier';
|
|
9
|
-
}
|
|
10
2
|
interface IMemberProgram {
|
|
11
3
|
typeOf: 'MemberProgram';
|
|
12
4
|
identifier: string;
|
|
13
5
|
hostingOrganization: {
|
|
14
6
|
identifier: string;
|
|
15
7
|
};
|
|
16
|
-
hasTiers?: IMemberProgramTier[];
|
|
17
8
|
}
|
|
18
9
|
interface ISearchConditions {
|
|
19
10
|
limit?: number;
|
|
@@ -27,51 +18,24 @@ interface ISearchConditions {
|
|
|
27
18
|
$eq?: string;
|
|
28
19
|
};
|
|
29
20
|
}
|
|
30
|
-
interface ISearchTierConditions {
|
|
31
|
-
limit?: number;
|
|
32
|
-
page?: number;
|
|
33
|
-
isTierOf?: {
|
|
34
|
-
hostingOrganization?: {
|
|
35
|
-
id?: {
|
|
36
|
-
$eq?: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
identifier?: {
|
|
40
|
-
$eq?: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
identifier?: {
|
|
44
|
-
$eq?: string;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
type IMemberProgramTierAsSearchResult = IMemberProgramTier & {
|
|
48
|
-
isTierOf: {
|
|
49
|
-
identifier: string;
|
|
50
|
-
hostingOrganization: {
|
|
51
|
-
identifier: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
21
|
/**
|
|
56
22
|
* メンバープログラムサービス
|
|
57
23
|
*/
|
|
58
24
|
export declare class MemberProgramService extends Service {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
create(params: {
|
|
25
|
+
findMemberPrograms(params: ISearchConditions): Promise<IMemberProgram[]>;
|
|
26
|
+
addMemberProgram(params: {
|
|
62
27
|
identifier: string;
|
|
63
28
|
hostingOrganization: {
|
|
64
29
|
id: string;
|
|
65
30
|
};
|
|
66
31
|
}): Promise<void>;
|
|
67
|
-
|
|
32
|
+
updateMemberProgramByIdentifier(params: {
|
|
68
33
|
identifier: string;
|
|
69
34
|
hostingOrganization: {
|
|
70
35
|
id: string;
|
|
71
36
|
};
|
|
72
|
-
hasTiers?: Pick<IMemberProgramTier, 'identifier'>[];
|
|
73
37
|
}): Promise<void>;
|
|
74
|
-
|
|
38
|
+
deleteMemberProgramByIdentifier(params: {
|
|
75
39
|
identifier: string;
|
|
76
40
|
hostingOrganization: {
|
|
77
41
|
id: string;
|
|
@@ -7,7 +7,7 @@ const service_1 = require("../service");
|
|
|
7
7
|
* メンバープログラムサービス
|
|
8
8
|
*/
|
|
9
9
|
class MemberProgramService extends service_1.Service {
|
|
10
|
-
async
|
|
10
|
+
async findMemberPrograms(params) {
|
|
11
11
|
return this.fetch({
|
|
12
12
|
uri: '/memberPrograms',
|
|
13
13
|
method: 'GET',
|
|
@@ -16,16 +16,7 @@ class MemberProgramService extends service_1.Service {
|
|
|
16
16
|
})
|
|
17
17
|
.then(async (response) => response.json());
|
|
18
18
|
}
|
|
19
|
-
async
|
|
20
|
-
return this.fetch({
|
|
21
|
-
uri: '/memberProgramTiers',
|
|
22
|
-
method: 'GET',
|
|
23
|
-
qs: params,
|
|
24
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
25
|
-
})
|
|
26
|
-
.then(async (response) => response.json());
|
|
27
|
-
}
|
|
28
|
-
async create(params) {
|
|
19
|
+
async addMemberProgram(params) {
|
|
29
20
|
await this.fetch({
|
|
30
21
|
uri: '/memberPrograms',
|
|
31
22
|
method: 'POST',
|
|
@@ -33,19 +24,18 @@ class MemberProgramService extends service_1.Service {
|
|
|
33
24
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
34
25
|
});
|
|
35
26
|
}
|
|
36
|
-
async
|
|
37
|
-
const { hostingOrganization
|
|
27
|
+
async updateMemberProgramByIdentifier(params) {
|
|
28
|
+
const { hostingOrganization } = params;
|
|
38
29
|
await this.fetch({
|
|
39
30
|
uri: `/memberPrograms/${encodeURIComponent(String(params.identifier))}`,
|
|
40
31
|
method: 'PUT',
|
|
41
32
|
body: {
|
|
42
33
|
hostingOrganization,
|
|
43
|
-
...(Array.isArray(hasTiers)) ? { hasTiers } : undefined
|
|
44
34
|
},
|
|
45
35
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
46
36
|
});
|
|
47
37
|
}
|
|
48
|
-
async
|
|
38
|
+
async deleteMemberProgramByIdentifier(params) {
|
|
49
39
|
const { hostingOrganization } = params;
|
|
50
40
|
await this.fetch({
|
|
51
41
|
uri: `/memberPrograms/${encodeURIComponent(String(params.identifier))}`,
|