@cinerino/sdk 18.3.0-alpha.1 → 18.3.0-alpha.10

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.
Files changed (35) hide show
  1. package/lib/abstract/chevre/event/factory.d.ts +31 -1
  2. package/lib/abstract/chevre/event.d.ts +2 -2
  3. package/lib/abstract/chevre/event.js +4 -3
  4. package/lib/abstract/chevre.d.ts +0 -9
  5. package/lib/abstract/chevre.js +0 -9
  6. package/lib/abstract/chevreAdmin/emailMessage.d.ts +1 -1
  7. package/lib/abstract/chevreAdmin/order.d.ts +2 -0
  8. package/lib/abstract/chevreAdmin/order.js +6 -4
  9. package/lib/abstract/chevreAsset/order/factory.d.ts +2 -1
  10. package/lib/abstract/chevreAsset/order.d.ts +1 -0
  11. package/lib/abstract/chevreAsset/order.js +3 -2
  12. package/lib/abstract/chevreConsole/accountTitle.d.ts +53 -16
  13. package/lib/abstract/chevreConsole/accountTitle.js +35 -51
  14. package/lib/abstract/chevreConsole/event.d.ts +0 -11
  15. package/lib/abstract/chevreConsole/event.js +23 -48
  16. package/lib/abstract/chevreConsole/eventSeries.d.ts +1 -1
  17. package/lib/abstract/chevreConsole/eventSeries.js +3 -20
  18. package/lib/abstract/chevreConsole/memberProgram.d.ts +4 -40
  19. package/lib/abstract/chevreConsole/memberProgram.js +5 -15
  20. package/lib/abstract/chevreConsole/message.d.ts +1 -8
  21. package/lib/abstract/chevreConsole/message.js +1 -1
  22. package/lib/abstract/chevreConsole/order/factory.d.ts +2 -1
  23. package/lib/abstract/chevreConsole/product.d.ts +0 -6
  24. package/lib/abstract/chevreConsole/product.js +0 -28
  25. package/lib/abstract/chevreConsole/project.d.ts +11 -2
  26. package/lib/abstract/chevreConsole/project.js +2 -3
  27. package/lib/abstract/cinerino/service/emailMessage.d.ts +1 -1
  28. package/lib/abstract/cloud/admin/order.js +4 -2
  29. package/lib/abstract/cloud/asset/order.js +2 -1
  30. package/lib/abstract/cloud/search/event.d.ts +2 -2
  31. package/lib/bundle.js +3 -3
  32. package/lib/bundle.js.map +4 -4
  33. package/package.json +2 -2
  34. package/lib/abstract/chevre/emailMessage.d.ts +0 -24
  35. package/lib/abstract/chevre/emailMessage.js +0 -27
@@ -1,7 +1,7 @@
1
1
  import { factory } from '../../factory';
2
2
  type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent;
3
3
  type IProjection = Partial<Record<IKeyOfProjection, 0>>;
4
- export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'startFrom' | 'startThrough'> & {
4
+ export type IFindParamsLegacy = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'startFrom' | 'startThrough'> & {
5
5
  superEvent?: {
6
6
  /**
7
7
  * 施設コンテンツID
@@ -44,6 +44,36 @@ export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, '
44
44
  };
45
45
  $projection?: IProjection;
46
46
  };
47
+ export interface IFindSubEventsParams {
48
+ limit?: number;
49
+ page?: number;
50
+ id?: string;
51
+ ids?: string[];
52
+ identifiers?: string[];
53
+ eventStatuses?: factory.eventStatusType[];
54
+ startFrom?: Date;
55
+ startThrough?: Date;
56
+ eventSeriesId?: string;
57
+ movieTheaterCode?: string;
58
+ movieIdentifier?: string;
59
+ /**
60
+ * offerAvailableAtIdが指定された場合のみ、offerに関する検索条件が有効
61
+ */
62
+ offerAvailableAtId?: string;
63
+ offerAvailabilityEndsGte?: Date;
64
+ offerAvailabilityEndsLte?: Date;
65
+ offerAvailabilityStartsGte?: Date;
66
+ offerAvailabilityStartsLte?: Date;
67
+ offerValidFromGte?: Date;
68
+ offerValidFromLte?: Date;
69
+ offerValidThroughGte?: Date;
70
+ offerValidThroughLte?: Date;
71
+ /**
72
+ * offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
73
+ */
74
+ includeMakesOfferAvailableAtIds?: string[];
75
+ excludeFields?: (keyof factory.event.screeningEvent.IEvent)[];
76
+ }
47
77
  /**
48
78
  * イベントのサブカタログ検索結果
49
79
  */
@@ -1,6 +1,6 @@
1
1
  import type { ISearchWithReservationForIdResult } from '../chevreConsole/aggregateReservation';
2
2
  import { factory } from '../factory';
3
- import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, IFindParams } from './event/factory';
3
+ import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, IFindSubEventsParams } from './event/factory';
4
4
  import { Service } from '../service';
5
5
  /**
6
6
  * イベントサービス
@@ -9,7 +9,7 @@ export declare class EventService extends Service {
9
9
  /**
10
10
  * イベント検索
11
11
  */
12
- projectFields(params: IFindParams): Promise<factory.event.screeningEvent.IEvent[]>;
12
+ findSubEvents(params: IFindSubEventsParams): Promise<factory.event.screeningEvent.IEvent[]>;
13
13
  /**
14
14
  * イベント集計検索
15
15
  */
@@ -10,12 +10,13 @@ class EventService extends service_1.Service {
10
10
  /**
11
11
  * イベント検索
12
12
  */
13
- async projectFields(params) {
13
+ async findSubEvents(params) {
14
14
  return this.fetch({
15
- uri: '/events',
15
+ uri: '/subEvents',
16
16
  method: 'GET',
17
17
  qs: params,
18
- expectedStatusCodes: [http_status_1.status.OK]
18
+ expectedStatusCodes: [http_status_1.status.OK],
19
+ stringifyOptions: { arrayFormat: 'repeat' }
19
20
  })
20
21
  .then(async (response) => response.json());
21
22
  }
@@ -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>;
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
- type IEmailMessage = Pick<factory.creativeWork.message.email.ICreativeWork, 'about' | 'id' | 'identifier' | 'name' | 'sender' | 'text'>;
3
+ type IEmailMessage = Pick<factory.creativeWork.message.email.ICreativeWork, 'about' | 'id' | 'name' | 'sender'>;
4
4
  /**
5
5
  * Eメールメッセージサービス
6
6
  */
@@ -18,6 +18,7 @@ export declare class OrderService extends Service {
18
18
  findOrderAcceptedOffers(params: IFindAcceptedOffersParams, options: {
19
19
  minimizeReservationFor: boolean;
20
20
  onlyReservedTicket: boolean;
21
+ minimizeReservedTicket: boolean;
21
22
  }): Promise<IOrderAsFindAcceptedOffersResult[]>;
22
23
  /**
23
24
  * 返品者検索
@@ -42,5 +43,6 @@ export declare class OrderService extends Service {
42
43
  }, options: {
43
44
  minimizeReservationFor: boolean;
44
45
  onlyReservedTicket: boolean;
46
+ minimizeReservedTicket: boolean;
45
47
  }): Promise<IAcceptedOfferMinimized[]>;
46
48
  }
@@ -35,7 +35,7 @@ class OrderService extends service_1.Service {
35
35
  * 注文オファーを検索する
36
36
  */
37
37
  async findOrderAcceptedOffers(params, options) {
38
- const { minimizeReservationFor, onlyReservedTicket } = options;
38
+ const { minimizeReservationFor, onlyReservedTicket, minimizeReservedTicket } = options;
39
39
  return this.fetch({
40
40
  uri: '/orders',
41
41
  method: 'GET',
@@ -43,7 +43,8 @@ class OrderService extends service_1.Service {
43
43
  ...params,
44
44
  $unwindAcceptedOffers: '1',
45
45
  minimizeReservationFor, // 2026-09-02~
46
- onlyReservedTicket // 2026-10-08~
46
+ onlyReservedTicket, // 2026-10-08~
47
+ minimizeReservedTicket, // 2026-10-23~
47
48
  },
48
49
  expectedStatusCodes: [http_status_1.status.OK]
49
50
  })
@@ -64,7 +65,7 @@ class OrderService extends service_1.Service {
64
65
  * 注文オファー検索
65
66
  */
66
67
  async findAcceptedOffersByOrderNumber(params, conditions, options) {
67
- const { minimizeReservationFor, onlyReservedTicket } = options;
68
+ const { minimizeReservationFor, onlyReservedTicket, minimizeReservedTicket } = options;
68
69
  return this.fetch({
69
70
  uri: `/orders/${params.orderNumber}/acceptedOffers`,
70
71
  method: 'GET',
@@ -72,7 +73,8 @@ class OrderService extends service_1.Service {
72
73
  qs: {
73
74
  ...conditions,
74
75
  minimizeReservationFor,
75
- onlyReservedTicket // 2026-10-08~
76
+ onlyReservedTicket, // 2026-10-08~
77
+ minimizeReservedTicket, // 2026-10-23~
76
78
  }
77
79
  })
78
80
  .then(async (response) => response.json());
@@ -21,11 +21,12 @@ export type IOrderAsFindByConfirmationNumberResult = Pick<factory.order.IOrder,
21
21
  telephone?: string;
22
22
  };
23
23
  };
24
- export type IItemOfferedMinimized = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered'], 'id' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
24
+ export type IItemOfferedMinimized = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered'], 'id' | 'reservationNumber' | 'typeOf'> & {
25
25
  /**
26
26
  * 注文オファー参照結果に含まれるイベント情報は基本的にidのみ
27
27
  */
28
28
  reservationFor: Pick<factory.acceptedOffer.IEventAsReservationFor, 'id' | 'typeOf'>;
29
+ reservedTicket: Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered']['reservedTicket'], 'coaReserveAmount' | 'coaTicketInfo' | 'identifier' | 'ticketToken' | 'ticketedSeat' | 'typeOf'>;
29
30
  };
30
31
  /**
31
32
  * 注文番号+確認番号による注文オファー検索結果としての注文オファー
@@ -92,6 +92,7 @@ export declare class OrderService extends Service {
92
92
  }, options: {
93
93
  minimizeReservationFor: boolean;
94
94
  onlyReservedTicket: boolean;
95
+ minimizeReservedTicket: boolean;
95
96
  }): Promise<IAcceptedOfferAsFindResult[]>;
96
97
  /**
97
98
  * 注文コードを発行する
@@ -93,14 +93,15 @@ class OrderService extends service_1.Service {
93
93
  */
94
94
  async findAcceptedOffersByConfirmationNumber(params, options) {
95
95
  const { orderNumber, limit, page, confirmationNumber } = params;
96
- const { minimizeReservationFor, onlyReservedTicket } = options;
96
+ const { minimizeReservationFor, onlyReservedTicket, minimizeReservedTicket } = options;
97
97
  return this.fetch({
98
98
  uri: `/orders/${orderNumber}/acceptedOffersByConfirmationNumber`,
99
99
  method: 'POST',
100
100
  body: { limit, page, confirmationNumber },
101
101
  qs: {
102
102
  minimizeReservationFor,
103
- onlyReservedTicket // 2026-10-08~
103
+ onlyReservedTicket, // 2026-10-08~
104
+ minimizeReservedTicket, // 2026-10-23~
104
105
  },
105
106
  expectedStatusCodes: [http_status_1.status.OK]
106
107
  })
@@ -1,5 +1,33 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
+ type IAccountTitleCategory = Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'project' | 'typeOf'> & {
4
+ additionalProperty?: never;
5
+ };
6
+ type IAccountTitleSetAsFindResult = Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name'> & {
7
+ inCodeSet: {
8
+ codeValue: string;
9
+ name?: string;
10
+ };
11
+ additionalProperty?: never;
12
+ };
13
+ type IAccountTitleAsFindResult = Pick<factory.accountTitle.IAccountTitle, 'additionalProperty' | 'codeValue' | 'name'> & {
14
+ inCodeSet: {
15
+ codeValue: string;
16
+ name?: string;
17
+ inCodeSet: {
18
+ codeValue: string;
19
+ name?: string;
20
+ };
21
+ };
22
+ };
23
+ type ISavingAccountTitle = Pick<IAccountTitleAsFindResult, 'additionalProperty' | 'codeValue' | 'name'> & {
24
+ inCodeSet: {
25
+ codeValue: string;
26
+ inCodeSet: {
27
+ codeValue: string;
28
+ };
29
+ };
30
+ };
3
31
  /**
4
32
  * 勘定科目サービス
5
33
  */
@@ -7,17 +35,15 @@ export declare class AccountTitleService extends Service {
7
35
  /**
8
36
  * 科目分類作成
9
37
  */
10
- createAccounTitleCategory(params: factory.accountTitle.IAccountTitle): Promise<factory.accountTitle.IAccountTitle>;
38
+ addAccounTitleCategory(params: Pick<IAccountTitleCategory, 'codeValue' | 'name'>): Promise<void>;
11
39
  /**
12
40
  * 科目分類検索
13
41
  */
14
- searchAccountTitleCategories(params: factory.accountTitle.ISearchConditions): Promise<{
15
- data: factory.accountTitle.IAccountTitle[];
16
- }>;
42
+ findAccountTitleCategories(params: Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page'>): Promise<IAccountTitleCategory[]>;
17
43
  /**
18
44
  * 科目分類更新
19
45
  */
20
- updateAccounTitleCategory(params: factory.accountTitle.IAccountTitle): Promise<void>;
46
+ updateAccounTitleCategory(params: Pick<IAccountTitleCategory, 'codeValue' | 'name'>): Promise<void>;
21
47
  /**
22
48
  * 科目分類削除
23
49
  * 不可逆的な物理削除です
@@ -28,17 +54,29 @@ export declare class AccountTitleService extends Service {
28
54
  /**
29
55
  * 科目追加
30
56
  */
31
- createAccounTitleSet(params: factory.accountTitle.IAccountTitle): Promise<factory.accountTitle.IAccountTitle>;
57
+ addAccounTitleSet(params: Pick<IAccountTitleSetAsFindResult, 'codeValue' | 'name'> & {
58
+ inCodeSet: {
59
+ codeValue: string;
60
+ };
61
+ }): Promise<void>;
32
62
  /**
33
63
  * 科目検索
34
64
  */
35
- searchAccountTitleSets(params: factory.accountTitle.ISearchConditions): Promise<{
36
- data: factory.accountTitle.IAccountTitle[];
37
- }>;
65
+ findAccountTitleSets(params: Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page'> & {
66
+ inCodeSet?: {
67
+ codeValue?: string | {
68
+ $eq?: string;
69
+ };
70
+ };
71
+ }): Promise<Pick<IAccountTitleSetAsFindResult, 'codeValue' | 'inCodeSet' | 'name'>[]>;
38
72
  /**
39
73
  * 科目更新
40
74
  */
41
- updateAccounTitleSet(params: factory.accountTitle.IAccountTitle): Promise<void>;
75
+ updateAccounTitleSet(params: Pick<IAccountTitleSetAsFindResult, 'codeValue' | 'name'> & {
76
+ inCodeSet: {
77
+ codeValue: string;
78
+ };
79
+ }): Promise<void>;
42
80
  /**
43
81
  * 科目削除
44
82
  * 不可逆的な物理削除です
@@ -52,22 +90,20 @@ export declare class AccountTitleService extends Service {
52
90
  /**
53
91
  * 細目追加
54
92
  */
55
- create(params: factory.accountTitle.IAccountTitle): Promise<factory.accountTitle.IAccountTitle>;
93
+ addAccountTitle(params: ISavingAccountTitle): Promise<void>;
56
94
  /**
57
95
  * 細目更新
58
96
  */
59
- update(params: factory.accountTitle.IAccountTitle): Promise<void>;
97
+ updateAccountTitle(params: ISavingAccountTitle): Promise<void>;
60
98
  /**
61
99
  * 細目検索
62
100
  */
63
- search(params: Omit<factory.accountTitle.ISearchConditions, 'project'>): Promise<{
64
- data: factory.accountTitle.IAccountTitle[];
65
- }>;
101
+ findAccountTitles(params: Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project' | 'additionalProperty' | 'inCodeSet'>): Promise<IAccountTitleAsFindResult[]>;
66
102
  /**
67
103
  * 細目削除
68
104
  * 不可逆的な物理削除です
69
105
  */
70
- deleteByCodeValue(params: {
106
+ deleteAccountTitleByCodeValue(params: {
71
107
  codeValue: string;
72
108
  inCodeSet: {
73
109
  codeValue: string;
@@ -77,3 +113,4 @@ export declare class AccountTitleService extends Service {
77
113
  };
78
114
  }): Promise<void>;
79
115
  }
116
+ export {};
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AccountTitleService = void 0;
4
4
  const http_status_1 = require("http-status");
5
- const factory_1 = require("../factory");
6
5
  const service_1 = require("../service");
6
+ const BASE_URI_CATEGORY = '/accountTitles/accountTitleCategory';
7
+ const BASE_URI_SET = '/accountTitles/accountTitleSet';
8
+ const BASE_URI = '/accountTitles';
7
9
  /**
8
10
  * 勘定科目サービス
9
11
  */
@@ -11,37 +13,32 @@ class AccountTitleService extends service_1.Service {
11
13
  /**
12
14
  * 科目分類作成
13
15
  */
14
- async createAccounTitleCategory(params) {
15
- return this.fetch({
16
- uri: '/accountTitles/accountTitleCategory',
16
+ async addAccounTitleCategory(params) {
17
+ await this.fetch({
18
+ uri: BASE_URI_CATEGORY,
17
19
  method: 'POST',
18
20
  body: params,
19
- expectedStatusCodes: [http_status_1.status.CREATED]
20
- })
21
- .then(async (response) => response.json());
21
+ expectedStatusCodes: [http_status_1.status.CREATED, http_status_1.status.NO_CONTENT]
22
+ });
22
23
  }
23
24
  /**
24
25
  * 科目分類検索
25
26
  */
26
- async searchAccountTitleCategories(params) {
27
+ async findAccountTitleCategories(params) {
27
28
  return this.fetch({
28
- uri: '/accountTitles/accountTitleCategory',
29
+ uri: BASE_URI_CATEGORY,
29
30
  method: 'GET',
30
31
  qs: params,
31
32
  expectedStatusCodes: [http_status_1.status.OK]
32
33
  })
33
- .then(async (response) => {
34
- return {
35
- data: await response.json()
36
- };
37
- });
34
+ .then(async (response) => response.json());
38
35
  }
39
36
  /**
40
37
  * 科目分類更新
41
38
  */
42
39
  async updateAccounTitleCategory(params) {
43
40
  await this.fetch({
44
- uri: `/accountTitles/accountTitleCategory/${encodeURIComponent(String(params.codeValue))}`,
41
+ uri: `${BASE_URI_CATEGORY}/${encodeURIComponent(String(params.codeValue))}`,
45
42
  method: 'PUT',
46
43
  body: params,
47
44
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -53,7 +50,7 @@ class AccountTitleService extends service_1.Service {
53
50
  */
54
51
  async deleteAccounTitleCategory(params) {
55
52
  await this.fetch({
56
- uri: `/accountTitles/accountTitleCategory/${encodeURIComponent(String(params.codeValue))}`,
53
+ uri: `${BASE_URI_CATEGORY}/${encodeURIComponent(String(params.codeValue))}`,
57
54
  method: 'DELETE',
58
55
  body: params,
59
56
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -62,40 +59,32 @@ class AccountTitleService extends service_1.Service {
62
59
  /**
63
60
  * 科目追加
64
61
  */
65
- async createAccounTitleSet(params) {
66
- if (params.inCodeSet === undefined) {
67
- throw new factory_1.factory.errors.ArgumentNull('inCodeSet');
68
- }
69
- return this.fetch({
70
- uri: '/accountTitles/accountTitleSet',
62
+ async addAccounTitleSet(params) {
63
+ await this.fetch({
64
+ uri: BASE_URI_SET,
71
65
  method: 'POST',
72
66
  body: params,
73
- expectedStatusCodes: [http_status_1.status.CREATED]
74
- })
75
- .then(async (response) => response.json());
67
+ expectedStatusCodes: [http_status_1.status.CREATED, http_status_1.status.NO_CONTENT]
68
+ });
76
69
  }
77
70
  /**
78
71
  * 科目検索
79
72
  */
80
- async searchAccountTitleSets(params) {
73
+ async findAccountTitleSets(params) {
81
74
  return this.fetch({
82
- uri: '/accountTitles/accountTitleSet',
75
+ uri: BASE_URI_SET,
83
76
  method: 'GET',
84
77
  qs: params,
85
78
  expectedStatusCodes: [http_status_1.status.OK]
86
79
  })
87
- .then(async (response) => {
88
- return {
89
- data: await response.json()
90
- };
91
- });
80
+ .then(async (response) => response.json());
92
81
  }
93
82
  /**
94
83
  * 科目更新
95
84
  */
96
85
  async updateAccounTitleSet(params) {
97
86
  await this.fetch({
98
- uri: `/accountTitles/accountTitleSet/${encodeURIComponent(String(params.codeValue))}`,
87
+ uri: `${BASE_URI_SET}/${encodeURIComponent(String(params.codeValue))}`,
99
88
  method: 'PUT',
100
89
  body: params,
101
90
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -107,7 +96,7 @@ class AccountTitleService extends service_1.Service {
107
96
  */
108
97
  async deleteAccounTitleSet(params) {
109
98
  await this.fetch({
110
- uri: `/accountTitles/accountTitleSet/${encodeURIComponent(String(params.codeValue))}`,
99
+ uri: `${BASE_URI_SET}/${encodeURIComponent(String(params.codeValue))}`,
111
100
  method: 'DELETE',
112
101
  body: params,
113
102
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -116,21 +105,20 @@ class AccountTitleService extends service_1.Service {
116
105
  /**
117
106
  * 細目追加
118
107
  */
119
- async create(params) {
120
- return this.fetch({
121
- uri: '/accountTitles',
108
+ async addAccountTitle(params) {
109
+ await this.fetch({
110
+ uri: BASE_URI,
122
111
  method: 'POST',
123
112
  body: params,
124
- expectedStatusCodes: [http_status_1.status.CREATED]
125
- })
126
- .then(async (response) => response.json());
113
+ expectedStatusCodes: [http_status_1.status.CREATED, http_status_1.status.NO_CONTENT]
114
+ });
127
115
  }
128
116
  /**
129
117
  * 細目更新
130
118
  */
131
- async update(params) {
119
+ async updateAccountTitle(params) {
132
120
  await this.fetch({
133
- uri: `/accountTitles/${encodeURIComponent(String(params.codeValue))}`,
121
+ uri: `${BASE_URI}/${encodeURIComponent(String(params.codeValue))}`,
134
122
  method: 'PUT',
135
123
  body: params,
136
124
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -139,26 +127,22 @@ class AccountTitleService extends service_1.Service {
139
127
  /**
140
128
  * 細目検索
141
129
  */
142
- async search(params) {
130
+ async findAccountTitles(params) {
143
131
  return this.fetch({
144
- uri: '/accountTitles',
132
+ uri: BASE_URI,
145
133
  method: 'GET',
146
134
  qs: params,
147
135
  expectedStatusCodes: [http_status_1.status.OK]
148
136
  })
149
- .then(async (response) => {
150
- return {
151
- data: await response.json()
152
- };
153
- });
137
+ .then(async (response) => response.json());
154
138
  }
155
139
  /**
156
140
  * 細目削除
157
141
  * 不可逆的な物理削除です
158
142
  */
159
- async deleteByCodeValue(params) {
143
+ async deleteAccountTitleByCodeValue(params) {
160
144
  await this.fetch({
161
- uri: `/accountTitles/${encodeURIComponent(String(params.codeValue))}`,
145
+ uri: `${BASE_URI}/${encodeURIComponent(String(params.codeValue))}`,
162
146
  method: 'DELETE',
163
147
  body: params,
164
148
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -28,18 +28,7 @@ export declare class EventService extends Service {
28
28
  */
29
29
  findEventById(params: {
30
30
  id: string;
31
- typeOf: factory.eventType.ScreeningEvent;
32
31
  }): Promise<factory.event.screeningEvent.IEvent>;
33
- /**
34
- * 興行イベント編集
35
- */
36
- updateEventById(params: {
37
- id: string;
38
- attributes: factory.event.screeningEvent.IUpdateByIdParams;
39
- options: {
40
- disableOverwriteMakesOffer: boolean;
41
- };
42
- }): Promise<void>;
43
32
  /**
44
33
  * イベントのアプリケーションオファー編集
45
34
  */