@cinerino/sdk 18.3.0-alpha.2 → 18.3.0-alpha.4
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.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/abstract/chevreConsole/event.d.ts +0 -10
- package/lib/abstract/chevreConsole/event.js +22 -17
- package/lib/abstract/chevreConsole/memberProgram.d.ts +4 -40
- package/lib/abstract/chevreConsole/memberProgram.js +5 -15
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/emailMessage.d.ts +0 -24
- package/lib/abstract/chevre/emailMessage.js +0 -27
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
|
|
2
2
|
import type { CategoryCodeService } from './chevre/categoryCode';
|
|
3
3
|
import type { CreativeWorkService } from './chevre/creativeWork';
|
|
4
|
-
import type { EmailMessageService } from './chevre/emailMessage';
|
|
5
4
|
import type { EventService } from './chevre/event';
|
|
6
5
|
import type { EventOfferService } from './chevre/eventOffer';
|
|
7
6
|
import type { EventSeriesService } from './chevre/eventSeries';
|
|
@@ -25,13 +24,6 @@ export declare namespace service {
|
|
|
25
24
|
namespace CreativeWork {
|
|
26
25
|
let svc: typeof CreativeWorkService | undefined;
|
|
27
26
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Eメールメッセージサービス
|
|
30
|
-
*/
|
|
31
|
-
type EmailMessage = EmailMessageService;
|
|
32
|
-
namespace EmailMessage {
|
|
33
|
-
let svc: typeof EmailMessageService | undefined;
|
|
34
|
-
}
|
|
35
27
|
/**
|
|
36
28
|
* イベントサービス
|
|
37
29
|
*/
|
|
@@ -90,7 +82,6 @@ export declare class Chevre {
|
|
|
90
82
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
|
|
91
83
|
createCategoryCodeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CategoryCodeService>;
|
|
92
84
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
93
|
-
createEmailMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EmailMessageService>;
|
|
94
85
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
95
86
|
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
96
87
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -42,9 +42,6 @@ var service;
|
|
|
42
42
|
let CreativeWork;
|
|
43
43
|
(function (CreativeWork) {
|
|
44
44
|
})(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
|
|
45
|
-
let EmailMessage;
|
|
46
|
-
(function (EmailMessage) {
|
|
47
|
-
})(EmailMessage = service.EmailMessage || (service.EmailMessage = {}));
|
|
48
45
|
let Event;
|
|
49
46
|
(function (Event) {
|
|
50
47
|
})(Event = service.Event || (service.Event = {}));
|
|
@@ -87,12 +84,6 @@ class Chevre {
|
|
|
87
84
|
}
|
|
88
85
|
return new service.CreativeWork.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
89
86
|
}
|
|
90
|
-
async createEmailMessageInstance(params) {
|
|
91
|
-
if (service.EmailMessage.svc === undefined) {
|
|
92
|
-
service.EmailMessage.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/emailMessage.js')))).EmailMessageService;
|
|
93
|
-
}
|
|
94
|
-
return new service.EmailMessage.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
95
|
-
}
|
|
96
87
|
async createEventInstance(params) {
|
|
97
88
|
if (service.Event.svc === undefined) {
|
|
98
89
|
service.Event.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/event.js')))).EventService;
|
|
@@ -29,16 +29,6 @@ export declare class EventService extends Service {
|
|
|
29
29
|
findEventById(params: {
|
|
30
30
|
id: string;
|
|
31
31
|
}): Promise<factory.event.screeningEvent.IEvent>;
|
|
32
|
-
/**
|
|
33
|
-
* 興行イベント編集
|
|
34
|
-
*/
|
|
35
|
-
updateEventById(params: {
|
|
36
|
-
id: string;
|
|
37
|
-
attributes: factory.event.screeningEvent.IUpdateByIdParams;
|
|
38
|
-
options: {
|
|
39
|
-
disableOverwriteMakesOffer: boolean;
|
|
40
|
-
};
|
|
41
|
-
}): Promise<void>;
|
|
42
32
|
/**
|
|
43
33
|
* イベントのアプリケーションオファー編集
|
|
44
34
|
*/
|
|
@@ -48,26 +48,31 @@ class EventService extends service_1.Service {
|
|
|
48
48
|
uri: `/events/${encodeURIComponent(String(id))}`,
|
|
49
49
|
method: 'GET',
|
|
50
50
|
expectedStatusCodes: [http_status_1.status.OK],
|
|
51
|
-
// qs: { typeOf }
|
|
52
51
|
})
|
|
53
52
|
.then(async (response) => response.json());
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
// migrate to chvevreAdmin.updateEventsByIdentifier(2026-10-12~)
|
|
55
|
+
// /**
|
|
56
|
+
// * 興行イベント編集
|
|
57
|
+
// */
|
|
58
|
+
// public async updateEventById(params: {
|
|
59
|
+
// id: string;
|
|
60
|
+
// attributes: factory.event.screeningEvent.IUpdateByIdParams;
|
|
61
|
+
// options: {
|
|
62
|
+
// disableOverwriteMakesOffer: boolean;
|
|
63
|
+
// };
|
|
64
|
+
// }): Promise<void> {
|
|
65
|
+
// await this.fetch({
|
|
66
|
+
// uri: `/events/${encodeURIComponent(String(params.id))}`,
|
|
67
|
+
// method: 'PUT',
|
|
68
|
+
// body: params.attributes,
|
|
69
|
+
// qs: {
|
|
70
|
+
// typeOf: factory.eventType.ScreeningEvent,
|
|
71
|
+
// disableOverwriteMakesOffer: params.options?.disableOverwriteMakesOffer === true // support disableOverwriteMakesOffer(2025-10-26~)
|
|
72
|
+
// },
|
|
73
|
+
// expectedStatusCodes: [status.NO_CONTENT]
|
|
74
|
+
// });
|
|
75
|
+
// }
|
|
71
76
|
/**
|
|
72
77
|
* イベントのアプリケーションオファー編集
|
|
73
78
|
*/
|
|
@@ -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))}`,
|