@cinerino/sdk 16.4.0-alpha.7 → 17.0.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/event/factory.d.ts +12 -0
- package/lib/abstract/chevre/event.d.ts +2 -13
- package/lib/abstract/chevre.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/abstract/chevreAdmin/order.d.ts +8 -5
- package/lib/abstract/chevreAdmin/order.js +10 -4
- package/lib/abstract/chevreConsole/action.d.ts +10 -9
- package/lib/abstract/chevreConsole/action.js +5 -15
- package/lib/abstract/chevreConsole/assetTransaction.d.ts +3 -3
- package/lib/abstract/chevreConsole/assetTransaction.js +3 -7
- package/lib/abstract/chevreConsole/checkAction.d.ts +24 -0
- package/lib/abstract/{chevre/note.js → chevreConsole/checkAction.js} +6 -10
- package/lib/abstract/chevreConsole/informAction.d.ts +18 -0
- package/lib/abstract/chevreConsole/informAction.js +20 -0
- package/lib/abstract/chevreConsole/order/factory.d.ts +10 -1
- package/lib/abstract/chevreConsole/task.d.ts +7 -3
- package/lib/abstract/chevreConsole/task.js +1 -1
- package/lib/abstract/chevreConsole/transaction/placeOrder.d.ts +3 -1
- package/lib/abstract/chevreConsole/updateAction.d.ts +17 -0
- package/lib/abstract/chevreConsole/updateAction.js +20 -0
- package/lib/abstract/chevreConsole/useAction.d.ts +17 -0
- package/lib/abstract/chevreConsole/useAction.js +20 -0
- package/lib/abstract/chevreConsole.d.ts +27 -9
- package/lib/abstract/chevreConsole.js +36 -9
- package/lib/abstract/cinerino/service/event.d.ts +2 -11
- package/lib/abstract/cloud/admin/order.d.ts +2 -3
- package/lib/abstract/cloud/admin/order.js +2 -2
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/note.d.ts +0 -32
- package/lib/abstract/chevreConsole/ownershipInfo.d.ts +0 -35
- package/lib/abstract/chevreConsole/ownershipInfo.js +0 -27
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { factory } from '../../factory';
|
|
2
|
+
type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent;
|
|
3
|
+
type IProjection = Partial<Record<IKeyOfProjection, 0>>;
|
|
4
|
+
export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'offers' | 'startFrom' | 'startThrough' | 'superEvent'> & {
|
|
5
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
6
|
+
$projection?: IProjection;
|
|
7
|
+
$minimumProjection?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
|
|
10
|
+
*/
|
|
11
|
+
sellerMakesOfferAvailableAtIn?: string[];
|
|
12
|
+
};
|
|
2
13
|
/**
|
|
3
14
|
* イベントのサブカタログ検索結果
|
|
4
15
|
*/
|
|
@@ -30,3 +41,4 @@ export type ISeatAsEventOffer = Pick<factory.place.seat.IPlaceWithOffer, 'branch
|
|
|
30
41
|
branchCode?: string;
|
|
31
42
|
};
|
|
32
43
|
};
|
|
44
|
+
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { ISearchWithReservationForIdResult } from '../chevreConsole/aggregateReservation';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer } from './event/factory';
|
|
3
|
+
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, IFindParams } from './event/factory';
|
|
4
4
|
import { Service } from '../service';
|
|
5
|
-
type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent;
|
|
6
|
-
type IProjection = Partial<Record<IKeyOfProjection, 0>>;
|
|
7
5
|
/**
|
|
8
6
|
* イベントサービス
|
|
9
7
|
*/
|
|
@@ -11,15 +9,7 @@ export declare class EventService extends Service {
|
|
|
11
9
|
/**
|
|
12
10
|
* イベント検索
|
|
13
11
|
*/
|
|
14
|
-
projectFields(params:
|
|
15
|
-
typeOf: factory.eventType.ScreeningEvent;
|
|
16
|
-
$projection?: IProjection;
|
|
17
|
-
$minimumProjection?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
|
|
20
|
-
*/
|
|
21
|
-
sellerMakesOfferAvailableAtIn?: string[];
|
|
22
|
-
}): Promise<factory.event.screeningEvent.IEvent[]>;
|
|
12
|
+
projectFields(params: IFindParams): Promise<factory.event.screeningEvent.IEvent[]>;
|
|
23
13
|
/**
|
|
24
14
|
* イベント集計検索
|
|
25
15
|
*/
|
|
@@ -137,4 +127,3 @@ export declare class EventService extends Service {
|
|
|
137
127
|
id: string;
|
|
138
128
|
}[]>;
|
|
139
129
|
}
|
|
140
|
-
export {};
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type { EmailMessageService } from './chevre/emailMessage';
|
|
|
5
5
|
import type { EventService } from './chevre/event';
|
|
6
6
|
import type { EventOfferService } from './chevre/eventOffer';
|
|
7
7
|
import type { EventSeriesService } from './chevre/eventSeries';
|
|
8
|
-
import type { NoteService } from './chevre/note';
|
|
9
8
|
import type { PaymentProductService } from './chevre/paymentService';
|
|
10
9
|
import type { PlaceService } from './chevre/place';
|
|
11
10
|
import type { HasPOSService } from './chevre/place/hasPOS';
|
|
@@ -56,13 +55,6 @@ export declare namespace service {
|
|
|
56
55
|
namespace EventSeries {
|
|
57
56
|
let svc: typeof EventSeriesService | undefined;
|
|
58
57
|
}
|
|
59
|
-
/**
|
|
60
|
-
* メモサービス
|
|
61
|
-
*/
|
|
62
|
-
type Note = NoteService;
|
|
63
|
-
namespace Note {
|
|
64
|
-
let svc: typeof NoteService | undefined;
|
|
65
|
-
}
|
|
66
58
|
/**
|
|
67
59
|
* 決済商品サービス
|
|
68
60
|
*/
|
|
@@ -120,7 +112,6 @@ export declare class Chevre {
|
|
|
120
112
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
121
113
|
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
122
114
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
|
123
|
-
createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
|
|
124
115
|
createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
|
|
125
116
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
126
117
|
createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -54,9 +54,6 @@ var service;
|
|
|
54
54
|
let EventSeries;
|
|
55
55
|
(function (EventSeries) {
|
|
56
56
|
})(EventSeries = service.EventSeries || (service.EventSeries = {}));
|
|
57
|
-
let Note;
|
|
58
|
-
(function (Note) {
|
|
59
|
-
})(Note = service.Note || (service.Note = {}));
|
|
60
57
|
let PaymentProduct;
|
|
61
58
|
(function (PaymentProduct) {
|
|
62
59
|
})(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
|
|
@@ -123,12 +120,6 @@ class Chevre {
|
|
|
123
120
|
}
|
|
124
121
|
return new service.EventSeries.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
125
122
|
}
|
|
126
|
-
async createNoteInstance(params) {
|
|
127
|
-
if (service.Note.svc === undefined) {
|
|
128
|
-
service.Note.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/note.js')))).NoteService;
|
|
129
|
-
}
|
|
130
|
-
return new service.Note.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
131
|
-
}
|
|
132
123
|
async createPaymentProductInstance(params) {
|
|
133
124
|
if (service.PaymentProduct.svc === undefined) {
|
|
134
125
|
service.PaymentProduct.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/paymentService.js')))).PaymentProductService;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IOrderAsSearchResult, IOrderAsFindAcceptedOffersResult, IReturner, IFindParams, IFindAcceptedOffersParams, IUpdateChangeableAttributesParams } from '../chevreConsole/order/factory';
|
|
2
|
-
import { factory } from '../factory';
|
|
1
|
+
import { IOrderAsSearchResult, IOrderAsFindAcceptedOffersResult, IAcceptedOfferMinimized, IReturner, IFindParams, IFindAcceptedOffersParams, IUpdateChangeableAttributesParams } from '../chevreConsole/order/factory';
|
|
3
2
|
import { Service } from '../service';
|
|
4
3
|
/**
|
|
5
4
|
* 注文サービス
|
|
@@ -16,7 +15,9 @@ export declare class OrderService extends Service {
|
|
|
16
15
|
/**
|
|
17
16
|
* 注文オファーを検索する
|
|
18
17
|
*/
|
|
19
|
-
findOrderAcceptedOffers(params: IFindAcceptedOffersParams
|
|
18
|
+
findOrderAcceptedOffers(params: IFindAcceptedOffersParams, options: {
|
|
19
|
+
minimizeReservationFor: boolean;
|
|
20
|
+
}): Promise<IOrderAsFindAcceptedOffersResult[]>;
|
|
20
21
|
/**
|
|
21
22
|
* 返品者検索
|
|
22
23
|
*/
|
|
@@ -29,7 +30,7 @@ export declare class OrderService extends Service {
|
|
|
29
30
|
/**
|
|
30
31
|
* 注文オファー検索
|
|
31
32
|
*/
|
|
32
|
-
|
|
33
|
+
findAcceptedOffersByOrderNumber(params: {
|
|
33
34
|
/**
|
|
34
35
|
* 注文番号
|
|
35
36
|
*/
|
|
@@ -37,5 +38,7 @@ export declare class OrderService extends Service {
|
|
|
37
38
|
}, conditions: {
|
|
38
39
|
limit?: number;
|
|
39
40
|
page?: number;
|
|
40
|
-
}
|
|
41
|
+
}, options: {
|
|
42
|
+
minimizeReservationFor: boolean;
|
|
43
|
+
}): Promise<IAcceptedOfferMinimized[]>;
|
|
41
44
|
}
|
|
@@ -34,13 +34,15 @@ class OrderService extends service_1.Service {
|
|
|
34
34
|
/**
|
|
35
35
|
* 注文オファーを検索する
|
|
36
36
|
*/
|
|
37
|
-
async findOrderAcceptedOffers(params) {
|
|
37
|
+
async findOrderAcceptedOffers(params, options) {
|
|
38
|
+
const { minimizeReservationFor } = options;
|
|
38
39
|
return this.fetch({
|
|
39
40
|
uri: '/orders',
|
|
40
41
|
method: 'GET',
|
|
41
42
|
qs: {
|
|
42
43
|
...params,
|
|
43
|
-
$unwindAcceptedOffers: '1'
|
|
44
|
+
$unwindAcceptedOffers: '1',
|
|
45
|
+
minimizeReservationFor // 2026-09-02~
|
|
44
46
|
},
|
|
45
47
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
46
48
|
})
|
|
@@ -60,12 +62,16 @@ class OrderService extends service_1.Service {
|
|
|
60
62
|
/**
|
|
61
63
|
* 注文オファー検索
|
|
62
64
|
*/
|
|
63
|
-
async
|
|
65
|
+
async findAcceptedOffersByOrderNumber(params, conditions, options) {
|
|
66
|
+
const { minimizeReservationFor } = options;
|
|
64
67
|
return this.fetch({
|
|
65
68
|
uri: `/orders/${params.orderNumber}/acceptedOffers`,
|
|
66
69
|
method: 'GET',
|
|
67
70
|
expectedStatusCodes: [http_status_1.status.OK],
|
|
68
|
-
qs:
|
|
71
|
+
qs: {
|
|
72
|
+
...conditions,
|
|
73
|
+
minimizeReservationFor
|
|
74
|
+
}
|
|
69
75
|
})
|
|
70
76
|
.then(async (response) => response.json());
|
|
71
77
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
export type IAction<T extends factory.actionType> = factory.action.IAction<factory.action.IAttributes<T, any, any>>;
|
|
4
|
+
type IFindParams = Pick<factory.action.ISearchConditions, 'about' | 'actionStatus' | 'actionStatusTypes' | 'agent' | 'id' | 'instrument' | 'limit' | 'location' | 'object' | 'page' | 'purpose' | 'result' | 'sameAs' | 'sort' | 'startFrom' | 'startThrough'> & {
|
|
5
|
+
typeOf?: Exclude<factory.actionType, factory.actionType.AddAction | factory.actionType.ReplaceAction | factory.actionType.UpdateAction | factory.actionType.DeleteAction | factory.actionType.InformAction | factory.actionType.UseAction>;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* アクションサービス
|
|
6
9
|
*/
|
|
@@ -8,16 +11,14 @@ export declare class ActionService extends Service {
|
|
|
8
11
|
/**
|
|
9
12
|
* アクション検索
|
|
10
13
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
typeOf: T;
|
|
17
|
-
}): Promise<IAction<T>>;
|
|
18
|
-
searchRecipes(params: {
|
|
14
|
+
adminFindAnyActions<T extends factory.actionType>(params: IFindParams): Promise<IAction<T>[]>;
|
|
15
|
+
/**
|
|
16
|
+
* アクションのレシピ参照
|
|
17
|
+
*/
|
|
18
|
+
findRecipesByActionId(params: {
|
|
19
19
|
recipeFor: {
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
22
|
}): Promise<Pick<factory.recipe.IRecipe, 'recipeCategory' | 'step'>[]>;
|
|
23
23
|
}
|
|
24
|
+
export {};
|
|
@@ -10,29 +10,19 @@ class ActionService extends service_1.Service {
|
|
|
10
10
|
/**
|
|
11
11
|
* アクション検索
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async adminFindAnyActions(params) {
|
|
14
14
|
return this.fetch({
|
|
15
15
|
uri: '/actions',
|
|
16
16
|
method: 'GET',
|
|
17
17
|
qs: params,
|
|
18
18
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
|
-
})
|
|
20
|
-
.then(async (response) => {
|
|
21
|
-
return {
|
|
22
|
-
data: await response.json()
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async findById(params) {
|
|
27
|
-
return this.fetch({
|
|
28
|
-
uri: `/actions/${encodeURIComponent(String(params.id))}`,
|
|
29
|
-
method: 'GET',
|
|
30
|
-
expectedStatusCodes: [http_status_1.status.OK],
|
|
31
|
-
qs: { typeOf: params.typeOf }
|
|
32
19
|
})
|
|
33
20
|
.then(async (response) => response.json());
|
|
34
21
|
}
|
|
35
|
-
|
|
22
|
+
/**
|
|
23
|
+
* アクションのレシピ参照
|
|
24
|
+
*/
|
|
25
|
+
async findRecipesByActionId(params) {
|
|
36
26
|
return this.fetch({
|
|
37
27
|
uri: `/actions/${encodeURIComponent(String(params.recipeFor.id))}/recipe`,
|
|
38
28
|
method: 'GET',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
/**
|
|
4
4
|
* 資産取引サービス
|
|
5
5
|
*/
|
|
6
6
|
export declare class AssetTransactionService extends Service {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 資産取引検索
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
findAssetTransactions<T extends factory.assetTransactionType>(params: factory.assetTransaction.ISearchConditions<T>): Promise<factory.assetTransaction.ITransaction<T>[]>;
|
|
11
11
|
}
|
|
@@ -8,20 +8,16 @@ const service_1 = require("../service");
|
|
|
8
8
|
*/
|
|
9
9
|
class AssetTransactionService extends service_1.Service {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 資産取引検索
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async findAssetTransactions(params) {
|
|
14
14
|
return this.fetch({
|
|
15
15
|
uri: '/assetTransactions',
|
|
16
16
|
method: 'GET',
|
|
17
17
|
qs: params,
|
|
18
18
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
19
|
})
|
|
20
|
-
.then(async (response) =>
|
|
21
|
-
return {
|
|
22
|
-
data: await response.json()
|
|
23
|
-
};
|
|
24
|
-
});
|
|
20
|
+
.then(async (response) => response.json());
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
exports.AssetTransactionService = AssetTransactionService;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
type IAction = factory.action.check.paymentMethod.movieTicket.IAction;
|
|
4
|
+
type IFindParams = Pick<factory.action.ISearchConditions, 'sort' | 'startFrom' | 'startThrough'> & {
|
|
5
|
+
/**
|
|
6
|
+
* max: 20
|
|
7
|
+
*/
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
id?: string;
|
|
11
|
+
sameAs?: {
|
|
12
|
+
id?: string;
|
|
13
|
+
};
|
|
14
|
+
purpose?: {
|
|
15
|
+
id?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 認証アクションサービス
|
|
20
|
+
*/
|
|
21
|
+
export declare class CheckActionService extends Service {
|
|
22
|
+
findCheckActions(params: IFindParams): Promise<IAction[]>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CheckActionService = void 0;
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
5
|
const service_1 = require("../service");
|
|
6
|
-
const BASE_URI = '/creativeWorks/noteDigitalDocument';
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
7
|
+
* 認証アクションサービス
|
|
9
8
|
*/
|
|
10
|
-
class
|
|
11
|
-
|
|
12
|
-
* 公開メモを検索する
|
|
13
|
-
*/
|
|
14
|
-
async findPublicNotes(params) {
|
|
9
|
+
class CheckActionService extends service_1.Service {
|
|
10
|
+
async findCheckActions(params) {
|
|
15
11
|
return this.fetch({
|
|
16
|
-
uri:
|
|
12
|
+
uri: '/checkActions',
|
|
17
13
|
method: 'GET',
|
|
18
14
|
qs: params,
|
|
19
15
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
@@ -21,4 +17,4 @@ class NoteService extends service_1.Service {
|
|
|
21
17
|
.then(async (response) => response.json());
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
|
-
exports.
|
|
20
|
+
exports.CheckActionService = CheckActionService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
type IAction = factory.action.interact.inform.IAction;
|
|
4
|
+
type IFindParams = Pick<factory.action.ISearchConditions, 'sort' | 'startFrom' | 'startThrough'> & {
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* max: 20
|
|
8
|
+
*/
|
|
9
|
+
limit: number;
|
|
10
|
+
page: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 通知アクションサービス
|
|
14
|
+
*/
|
|
15
|
+
export declare class InformActionService extends Service {
|
|
16
|
+
findInformActions(params: IFindParams): Promise<IAction[]>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InformActionService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 通知アクションサービス
|
|
8
|
+
*/
|
|
9
|
+
class InformActionService extends service_1.Service {
|
|
10
|
+
async findInformActions(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/informActions',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InformActionService = InformActionService;
|
|
@@ -4,11 +4,20 @@ type IKeyOfProjection = keyof factory.order.IOrder | '_id';
|
|
|
4
4
|
* 注文検索時projection
|
|
5
5
|
*/
|
|
6
6
|
export type IProjection = Partial<Record<IKeyOfProjection, 1>>;
|
|
7
|
+
export type IItemOfferedMinimized = Pick<factory.order.IAcceptedOffer['itemOffered'], 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
|
|
8
|
+
/**
|
|
9
|
+
* 注文オファー参照結果に含まれるイベント情報は基本的にidのみ
|
|
10
|
+
*/
|
|
11
|
+
reservationFor: Pick<factory.order.IEventAsReservationFor, 'id' | 'typeOf'>;
|
|
12
|
+
};
|
|
13
|
+
export type IAcceptedOfferMinimized = Pick<factory.order.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
|
|
14
|
+
itemOffered: IItemOfferedMinimized;
|
|
15
|
+
};
|
|
7
16
|
/**
|
|
8
17
|
* オファー展開の検索結果としての注文
|
|
9
18
|
*/
|
|
10
19
|
export type IOrderAsFindAcceptedOffersResult = Pick<factory.order.IOrder, 'orderNumber' | 'orderDate' | 'orderStatus' | 'price' | 'priceCurrency'> & {
|
|
11
|
-
acceptedOffers?: [
|
|
20
|
+
acceptedOffers?: [IAcceptedOfferMinimized];
|
|
12
21
|
};
|
|
13
22
|
/**
|
|
14
23
|
* オファー展開しない検索結果としての注文
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { IOptions, Service } from '../service';
|
|
3
3
|
type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
|
|
4
|
+
type IFindParams = Pick<factory.task.ISearchConditions, 'dateAborted' | 'id' | 'identifier' | 'limit' | 'name' | 'page' | 'runsFrom' | 'runsThrough' | 'sort' | 'status'> & {
|
|
5
|
+
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
6
|
+
data?: never;
|
|
7
|
+
lastTriedFrom?: never;
|
|
8
|
+
lastTriedThrough?: never;
|
|
9
|
+
};
|
|
4
10
|
/**
|
|
5
11
|
* タスクサービス
|
|
6
12
|
*/
|
|
@@ -15,8 +21,6 @@ export declare class TaskService extends Service<IOptions> {
|
|
|
15
21
|
/**
|
|
16
22
|
* タスク検索
|
|
17
23
|
*/
|
|
18
|
-
|
|
19
|
-
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
20
|
-
}): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
24
|
+
findTasks(params: IFindParams): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
21
25
|
}
|
|
22
26
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { factory } from '../../factory';
|
|
2
2
|
import { ISearchResult, Service } from '../../service';
|
|
3
|
+
type IAction4transaction = factory.action.accept.coaOffer.IAction | factory.action.accept.pay.IAction | factory.action.authorize.offer.eventService.IAction | factory.action.authorize.paymentMethod.any.IAction;
|
|
3
4
|
/**
|
|
4
5
|
* 注文取引サービス
|
|
5
6
|
*/
|
|
@@ -18,5 +19,6 @@ export declare class PlaceOrderTransactionService extends Service {
|
|
|
18
19
|
*/
|
|
19
20
|
id: string;
|
|
20
21
|
sort: factory.action.ISortOrder;
|
|
21
|
-
}): Promise<
|
|
22
|
+
}): Promise<IAction4transaction[]>;
|
|
22
23
|
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
type IAction = factory.action.update.add.IAction | factory.action.update.replace.IAction | factory.action.update.update.IAction | factory.action.update.deleteAction.IAction;
|
|
4
|
+
type IFindParams = Pick<factory.action.update.update.IFindParams, 'sort' | 'startFrom' | 'startThrough' | 'id' | 'limit' | 'object' | 'page' | 'result' | 'typeOf'> & {
|
|
5
|
+
/**
|
|
6
|
+
* max: 20
|
|
7
|
+
*/
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 編集アクションサービス
|
|
13
|
+
*/
|
|
14
|
+
export declare class UpdateActionService extends Service {
|
|
15
|
+
findUpdateActions(params: IFindParams): Promise<IAction[]>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateActionService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 編集アクションサービス
|
|
8
|
+
*/
|
|
9
|
+
class UpdateActionService extends service_1.Service {
|
|
10
|
+
async findUpdateActions(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/updateActions',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.UpdateActionService = UpdateActionService;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
type IAction = factory.action.consume.use.reservation.IAction;
|
|
4
|
+
type IFindParams = Pick<factory.action.consume.use.reservation.IFindParams, 'sort' | 'startFrom' | 'startThrough' | 'actionStatus' | 'id' | 'limit' | 'object' | 'page'> & {
|
|
5
|
+
/**
|
|
6
|
+
* max: 20
|
|
7
|
+
*/
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 予約使用アクションサービス
|
|
13
|
+
*/
|
|
14
|
+
export declare class UseActionService extends Service {
|
|
15
|
+
findUseActions(params: IFindParams): Promise<IAction[]>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseActionService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 予約使用アクションサービス
|
|
8
|
+
*/
|
|
9
|
+
class UseActionService extends service_1.Service {
|
|
10
|
+
async findUseActions(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/useActions',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.UseActionService = UseActionService;
|
|
@@ -2,6 +2,10 @@ import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './servi
|
|
|
2
2
|
import type { AccountingReportService } from './chevreConsole/accountingReport';
|
|
3
3
|
import type { AccountTitleService } from './chevreConsole/accountTitle';
|
|
4
4
|
import type { ActionService } from './chevreConsole/action';
|
|
5
|
+
import type { InformActionService } from './chevreConsole/informAction';
|
|
6
|
+
import type { UpdateActionService } from './chevreConsole/updateAction';
|
|
7
|
+
import type { UseActionService } from './chevreConsole/useAction';
|
|
8
|
+
import type { CheckActionService } from './chevreConsole/checkAction';
|
|
5
9
|
import type { AdditionalPropertyService } from './chevreConsole/additionalProperty';
|
|
6
10
|
import type { AggregateOfferService } from './chevreConsole/aggregateOffer';
|
|
7
11
|
import type { AggregateReservationService } from './chevreConsole/aggregateReservation';
|
|
@@ -32,7 +36,6 @@ import type { OfferCatalogService } from './chevreConsole/offerCatalog';
|
|
|
32
36
|
import type { OfferCatalogItemService } from './chevreConsole/offerCatalogItem';
|
|
33
37
|
import type { OfferItemConditionService } from './chevreConsole/offerItemCondition';
|
|
34
38
|
import type { OrderService } from './chevreConsole/order';
|
|
35
|
-
import type { OwnershipInfoService } from './chevreConsole/ownershipInfo';
|
|
36
39
|
import type { PaymentProductService } from './chevreConsole/paymentService';
|
|
37
40
|
import type { PaymentServiceChannelService } from './chevreConsole/paymentServiceChannel';
|
|
38
41
|
import type { PendingReservationService } from './chevreConsole/pendingReservation';
|
|
@@ -81,6 +84,25 @@ export declare namespace service {
|
|
|
81
84
|
namespace Action {
|
|
82
85
|
let svc: typeof ActionService | undefined;
|
|
83
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* 編集アクションサービス
|
|
89
|
+
*/
|
|
90
|
+
type UpdateAction = UpdateActionService;
|
|
91
|
+
namespace UpdateAction {
|
|
92
|
+
let svc: typeof UpdateActionService | undefined;
|
|
93
|
+
}
|
|
94
|
+
type InformAction = InformActionService;
|
|
95
|
+
namespace InformAction {
|
|
96
|
+
let svc: typeof InformActionService | undefined;
|
|
97
|
+
}
|
|
98
|
+
type UseAction = UseActionService;
|
|
99
|
+
namespace UseAction {
|
|
100
|
+
let svc: typeof UseActionService | undefined;
|
|
101
|
+
}
|
|
102
|
+
type CheckAction = CheckActionService;
|
|
103
|
+
namespace CheckAction {
|
|
104
|
+
let svc: typeof CheckActionService | undefined;
|
|
105
|
+
}
|
|
84
106
|
/**
|
|
85
107
|
* 追加特性サービス
|
|
86
108
|
*/
|
|
@@ -249,13 +271,6 @@ export declare namespace service {
|
|
|
249
271
|
namespace Order {
|
|
250
272
|
let svc: typeof OrderService | undefined;
|
|
251
273
|
}
|
|
252
|
-
/**
|
|
253
|
-
* 所有権サービス
|
|
254
|
-
*/
|
|
255
|
-
type OwnershipInfo = OwnershipInfoService;
|
|
256
|
-
namespace OwnershipInfo {
|
|
257
|
-
let svc: typeof OwnershipInfoService | undefined;
|
|
258
|
-
}
|
|
259
274
|
/**
|
|
260
275
|
* 決済サービス
|
|
261
276
|
*/
|
|
@@ -492,6 +507,10 @@ export declare class ChevreConsole {
|
|
|
492
507
|
createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
|
|
493
508
|
createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
|
|
494
509
|
createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
|
|
510
|
+
createUpdateActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<UpdateActionService>;
|
|
511
|
+
createInformActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<InformActionService>;
|
|
512
|
+
createUseActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<UseActionService>;
|
|
513
|
+
createCheckActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CheckActionService>;
|
|
495
514
|
createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
|
|
496
515
|
createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
|
|
497
516
|
createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
|
|
@@ -516,7 +535,6 @@ export declare class ChevreConsole {
|
|
|
516
535
|
createMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MessageService>;
|
|
517
536
|
createMovieTicketTypeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieTicketTypeService>;
|
|
518
537
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
519
|
-
createOwnershipInfoInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OwnershipInfoService>;
|
|
520
538
|
createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
|
|
521
539
|
createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
|
|
522
540
|
createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
|