@cinerino/sdk 18.3.0-alpha.1 → 18.3.0-alpha.11
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/event/factory.d.ts +31 -1
- package/lib/abstract/chevre/event.d.ts +2 -2
- package/lib/abstract/chevre/event.js +4 -3
- package/lib/abstract/chevre/offer/factory.d.ts +17 -0
- package/lib/abstract/chevre/offer/factory.js +2 -0
- package/lib/abstract/chevre/offer.d.ts +11 -0
- package/lib/abstract/chevre/offer.js +23 -0
- package/lib/abstract/chevre.d.ts +9 -9
- package/lib/abstract/chevre.js +9 -9
- package/lib/abstract/chevreAdmin/emailMessage.d.ts +1 -1
- package/lib/abstract/chevreAdmin/order.d.ts +2 -0
- package/lib/abstract/chevreAdmin/order.js +6 -4
- package/lib/abstract/chevreAsset/order/factory.d.ts +2 -1
- package/lib/abstract/chevreAsset/order.d.ts +1 -0
- package/lib/abstract/chevreAsset/order.js +3 -2
- package/lib/abstract/chevreConsole/accountTitle.d.ts +53 -16
- package/lib/abstract/chevreConsole/accountTitle.js +35 -51
- package/lib/abstract/chevreConsole/event.d.ts +0 -11
- package/lib/abstract/chevreConsole/event.js +23 -48
- package/lib/abstract/chevreConsole/eventSeries.d.ts +1 -1
- package/lib/abstract/chevreConsole/eventSeries.js +3 -20
- package/lib/abstract/chevreConsole/memberProgram.d.ts +4 -40
- package/lib/abstract/chevreConsole/memberProgram.js +5 -15
- package/lib/abstract/chevreConsole/message.d.ts +1 -8
- package/lib/abstract/chevreConsole/message.js +1 -1
- package/lib/abstract/chevreConsole/order/factory.d.ts +2 -1
- package/lib/abstract/chevreConsole/product.d.ts +0 -6
- package/lib/abstract/chevreConsole/product.js +0 -28
- package/lib/abstract/chevreConsole/project.d.ts +11 -2
- package/lib/abstract/chevreConsole/project.js +2 -3
- package/lib/abstract/cinerino/service/emailMessage.d.ts +1 -1
- package/lib/abstract/cloud/admin/order.js +4 -2
- package/lib/abstract/cloud/asset/order.js +2 -1
- package/lib/abstract/cloud/search/event.d.ts +2 -2
- 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
|
@@ -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
|
|
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,
|
|
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
|
-
|
|
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
|
|
13
|
+
async findSubEvents(params) {
|
|
14
14
|
return this.fetch({
|
|
15
|
-
uri: '/
|
|
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
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { factory } from '../../factory';
|
|
2
|
+
export interface IFindParams {
|
|
3
|
+
/**
|
|
4
|
+
* max: 20
|
|
5
|
+
* min: 1
|
|
6
|
+
*/
|
|
7
|
+
limit: number;
|
|
8
|
+
/**
|
|
9
|
+
* min: 1
|
|
10
|
+
*/
|
|
11
|
+
page: number;
|
|
12
|
+
/**
|
|
13
|
+
* IDリストを最大10件まで指定可能
|
|
14
|
+
*/
|
|
15
|
+
ids?: string[];
|
|
16
|
+
}
|
|
17
|
+
export type IUnitPriceOfferAsFindResult = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'description' | 'name' | 'color' | 'additionalProperty'>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { IFindParams, IUnitPriceOfferAsFindResult } from './offer/factory';
|
|
3
|
+
/**
|
|
4
|
+
* 単価オファーサービス
|
|
5
|
+
*/
|
|
6
|
+
export declare class OfferService extends Service {
|
|
7
|
+
/**
|
|
8
|
+
* 単価オファー検索
|
|
9
|
+
*/
|
|
10
|
+
findUnitPriceOffers(params: IFindParams): Promise<IUnitPriceOfferAsFindResult[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 単価オファーサービス
|
|
8
|
+
*/
|
|
9
|
+
class OfferService extends service_1.Service {
|
|
10
|
+
/**
|
|
11
|
+
* 単価オファー検索
|
|
12
|
+
*/
|
|
13
|
+
async findUnitPriceOffers(params) {
|
|
14
|
+
return this.fetch({
|
|
15
|
+
uri: '/offers',
|
|
16
|
+
method: 'GET',
|
|
17
|
+
qs: params,
|
|
18
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
|
+
})
|
|
20
|
+
.then(async (response) => response.json());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.OfferService = OfferService;
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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';
|
|
7
|
+
import type { OfferService } from './chevre/offer';
|
|
8
8
|
import type { PlaceService } from './chevre/place';
|
|
9
9
|
import type { ProductService } from './chevre/product';
|
|
10
10
|
import type { SeatOfferService } from './chevre/seatOffer';
|
|
@@ -25,13 +25,6 @@ export declare namespace service {
|
|
|
25
25
|
namespace CreativeWork {
|
|
26
26
|
let svc: typeof CreativeWorkService | undefined;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Eメールメッセージサービス
|
|
30
|
-
*/
|
|
31
|
-
type EmailMessage = EmailMessageService;
|
|
32
|
-
namespace EmailMessage {
|
|
33
|
-
let svc: typeof EmailMessageService | undefined;
|
|
34
|
-
}
|
|
35
28
|
/**
|
|
36
29
|
* イベントサービス
|
|
37
30
|
*/
|
|
@@ -53,6 +46,13 @@ export declare namespace service {
|
|
|
53
46
|
namespace EventSeries {
|
|
54
47
|
let svc: typeof EventSeriesService | undefined;
|
|
55
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* 単価オファーサービス
|
|
51
|
+
*/
|
|
52
|
+
type Offer = OfferService;
|
|
53
|
+
namespace Offer {
|
|
54
|
+
let svc: typeof OfferService | undefined;
|
|
55
|
+
}
|
|
56
56
|
/**
|
|
57
57
|
* 施設サービス
|
|
58
58
|
*/
|
|
@@ -90,10 +90,10 @@ export declare class Chevre {
|
|
|
90
90
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
|
|
91
91
|
createCategoryCodeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CategoryCodeService>;
|
|
92
92
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
93
|
-
createEmailMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EmailMessageService>;
|
|
94
93
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
95
94
|
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
96
95
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
|
96
|
+
createOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferService>;
|
|
97
97
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
98
98
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
99
99
|
createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
|
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 = {}));
|
|
@@ -54,6 +51,9 @@ var service;
|
|
|
54
51
|
let EventSeries;
|
|
55
52
|
(function (EventSeries) {
|
|
56
53
|
})(EventSeries = service.EventSeries || (service.EventSeries = {}));
|
|
54
|
+
let Offer;
|
|
55
|
+
(function (Offer) {
|
|
56
|
+
})(Offer = service.Offer || (service.Offer = {}));
|
|
57
57
|
let Place;
|
|
58
58
|
(function (Place) {
|
|
59
59
|
})(Place = service.Place || (service.Place = {}));
|
|
@@ -87,12 +87,6 @@ class Chevre {
|
|
|
87
87
|
}
|
|
88
88
|
return new service.CreativeWork.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
89
89
|
}
|
|
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
90
|
async createEventInstance(params) {
|
|
97
91
|
if (service.Event.svc === undefined) {
|
|
98
92
|
service.Event.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/event.js')))).EventService;
|
|
@@ -111,6 +105,12 @@ class Chevre {
|
|
|
111
105
|
}
|
|
112
106
|
return new service.EventSeries.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
113
107
|
}
|
|
108
|
+
async createOfferInstance(params) {
|
|
109
|
+
if (service.Offer.svc === undefined) {
|
|
110
|
+
service.Offer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/offer.js')))).OfferService;
|
|
111
|
+
}
|
|
112
|
+
return new service.Offer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
113
|
+
}
|
|
114
114
|
async createPlaceInstance(params) {
|
|
115
115
|
if (service.Place.svc === undefined) {
|
|
116
116
|
service.Place.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/place.js')))).PlaceService;
|
|
@@ -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' | '
|
|
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' | '
|
|
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
|
* 注文番号+確認番号による注文オファー検索結果としての注文オファー
|
|
@@ -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
|
-
|
|
38
|
+
addAccounTitleCategory(params: Pick<IAccountTitleCategory, 'codeValue' | 'name'>): Promise<void>;
|
|
11
39
|
/**
|
|
12
40
|
* 科目分類検索
|
|
13
41
|
*/
|
|
14
|
-
|
|
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:
|
|
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
|
-
|
|
57
|
+
addAccounTitleSet(params: Pick<IAccountTitleSetAsFindResult, 'codeValue' | 'name'> & {
|
|
58
|
+
inCodeSet: {
|
|
59
|
+
codeValue: string;
|
|
60
|
+
};
|
|
61
|
+
}): Promise<void>;
|
|
32
62
|
/**
|
|
33
63
|
* 科目検索
|
|
34
64
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
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:
|
|
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
|
-
|
|
93
|
+
addAccountTitle(params: ISavingAccountTitle): Promise<void>;
|
|
56
94
|
/**
|
|
57
95
|
* 細目更新
|
|
58
96
|
*/
|
|
59
|
-
|
|
97
|
+
updateAccountTitle(params: ISavingAccountTitle): Promise<void>;
|
|
60
98
|
/**
|
|
61
99
|
* 細目検索
|
|
62
100
|
*/
|
|
63
|
-
|
|
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
|
-
|
|
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
|
|
15
|
-
|
|
16
|
-
uri:
|
|
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
|
|
27
|
+
async findAccountTitleCategories(params) {
|
|
27
28
|
return this.fetch({
|
|
28
|
-
uri:
|
|
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:
|
|
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:
|
|
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
|
|
66
|
-
|
|
67
|
-
|
|
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
|
|
73
|
+
async findAccountTitleSets(params) {
|
|
81
74
|
return this.fetch({
|
|
82
|
-
uri:
|
|
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:
|
|
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:
|
|
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
|
|
120
|
-
|
|
121
|
-
uri:
|
|
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
|
|
119
|
+
async updateAccountTitle(params) {
|
|
132
120
|
await this.fetch({
|
|
133
|
-
uri:
|
|
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
|
|
130
|
+
async findAccountTitles(params) {
|
|
143
131
|
return this.fetch({
|
|
144
|
-
uri:
|
|
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
|
|
143
|
+
async deleteAccountTitleByCodeValue(params) {
|
|
160
144
|
await this.fetch({
|
|
161
|
-
uri:
|
|
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]
|