@cinerino/sdk 16.4.0-alpha.2 → 16.4.0-alpha.20
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.d.ts +1 -3
- package/lib/abstract/chevre/event.js +3 -3
- 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/chevreConsole/checkAction.js +20 -0
- package/lib/abstract/chevreConsole/informAction.d.ts +18 -0
- package/lib/abstract/chevreConsole/informAction.js +20 -0
- package/lib/abstract/chevreConsole/scheduledTask.d.ts +13 -0
- package/lib/abstract/chevreConsole/scheduledTask.js +20 -0
- 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 +36 -9
- package/lib/abstract/chevreConsole.js +45 -9
- package/lib/abstract/chevreTxc/offer.d.ts +0 -2
- package/lib/abstract/chevreTxc/offer.js +2 -4
- package/lib/abstract/cinerino/service/event.d.ts +0 -2
- package/lib/abstract/cinerino/service/event.js +3 -7
- package/lib/abstract/cloud/txc/transaction/forceAsync.d.ts +0 -2
- package/lib/abstract/cloud/txc/transaction/forceAsync.js +2 -2
- package/lib/abstract/cloud/txc/transaction/placeOrder.d.ts +0 -4
- package/lib/abstract/cloud/txc/transaction/placeOrder.js +4 -4
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevreConsole/ownershipInfo.d.ts +0 -35
- package/lib/abstract/chevreConsole/ownershipInfo.js +0 -27
|
@@ -65,9 +65,7 @@ export declare class EventService extends Service {
|
|
|
65
65
|
*/
|
|
66
66
|
findSeatOffersDeprecated(params: {
|
|
67
67
|
id: string;
|
|
68
|
-
} & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'
|
|
69
|
-
useDefaultSection: boolean;
|
|
70
|
-
}): Promise<ISeatAsEventOffer[]>;
|
|
68
|
+
} & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'>): Promise<ISeatAsEventOffer[]>;
|
|
71
69
|
/**
|
|
72
70
|
* オファーで利用可能な適用決済カード条件を検索する
|
|
73
71
|
*/
|
|
@@ -67,15 +67,15 @@ class EventService extends service_1.Service {
|
|
|
67
67
|
* イベントに対する座席検索
|
|
68
68
|
* @deprecated use find seatOffers
|
|
69
69
|
*/
|
|
70
|
-
async findSeatOffersDeprecated(params
|
|
70
|
+
async findSeatOffersDeprecated(params) {
|
|
71
71
|
const { id, ...query } = params;
|
|
72
|
-
const { useDefaultSection } = options;
|
|
72
|
+
// const { useDefaultSection } = options;
|
|
73
73
|
return this.fetch({
|
|
74
74
|
uri: `/events/${encodeURIComponent(String(id))}/seats`,
|
|
75
75
|
method: 'GET',
|
|
76
76
|
qs: {
|
|
77
77
|
...query,
|
|
78
|
-
useDefaultSection
|
|
78
|
+
// useDefaultSection
|
|
79
79
|
},
|
|
80
80
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
81
81
|
})
|
|
@@ -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 {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckActionService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 認証アクションサービス
|
|
8
|
+
*/
|
|
9
|
+
class CheckActionService extends service_1.Service {
|
|
10
|
+
async findCheckActions(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/checkActions',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { IOptions, Service } from '../service';
|
|
3
|
+
type IFindParams = Pick<factory.task.ISearchConditions, 'id' | 'name' | 'runsFrom' | 'runsThrough' | 'status' | 'limit' | 'page' | 'sort'>;
|
|
4
|
+
type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
|
|
5
|
+
/**
|
|
6
|
+
* 予定タスクサービス
|
|
7
|
+
*/
|
|
8
|
+
export declare class ScheduledTaskService extends Service<IOptions> {
|
|
9
|
+
findScheduledTasks(params: IFindParams & {
|
|
10
|
+
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
11
|
+
}): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduledTaskService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 予定タスクサービス
|
|
8
|
+
*/
|
|
9
|
+
class ScheduledTaskService extends service_1.Service {
|
|
10
|
+
async findScheduledTasks(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/scheduledTasks',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ScheduledTaskService = ScheduledTaskService;
|
|
@@ -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';
|
|
@@ -49,6 +52,7 @@ import type { SellerService } from './chevreConsole/seller';
|
|
|
49
52
|
import type { SellerMakesOfferService } from './chevreConsole/sellerMakesOffer';
|
|
50
53
|
import type { SellerReturnPolicyService } from './chevreConsole/sellerReturnPolicy';
|
|
51
54
|
import type { AsyncActionService } from './chevreConsole/asyncAction';
|
|
55
|
+
import type { ScheduledTaskService } from './chevreConsole/scheduledTask';
|
|
52
56
|
import type { TaskService } from './chevreConsole/task';
|
|
53
57
|
import type { TicketService } from './chevreConsole/ticket';
|
|
54
58
|
import type { TokenService } from './chevreConsole/token';
|
|
@@ -80,6 +84,25 @@ export declare namespace service {
|
|
|
80
84
|
namespace Action {
|
|
81
85
|
let svc: typeof ActionService | undefined;
|
|
82
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
|
+
}
|
|
83
106
|
/**
|
|
84
107
|
* 追加特性サービス
|
|
85
108
|
*/
|
|
@@ -248,13 +271,6 @@ export declare namespace service {
|
|
|
248
271
|
namespace Order {
|
|
249
272
|
let svc: typeof OrderService | undefined;
|
|
250
273
|
}
|
|
251
|
-
/**
|
|
252
|
-
* 所有権サービス
|
|
253
|
-
*/
|
|
254
|
-
type OwnershipInfo = OwnershipInfoService;
|
|
255
|
-
namespace OwnershipInfo {
|
|
256
|
-
let svc: typeof OwnershipInfoService | undefined;
|
|
257
|
-
}
|
|
258
274
|
/**
|
|
259
275
|
* 決済サービス
|
|
260
276
|
*/
|
|
@@ -397,6 +413,13 @@ export declare namespace service {
|
|
|
397
413
|
namespace AsyncAction {
|
|
398
414
|
let svc: typeof AsyncActionService | undefined;
|
|
399
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* 予定タスクサービス
|
|
418
|
+
*/
|
|
419
|
+
type ScheduledTask = ScheduledTaskService;
|
|
420
|
+
namespace ScheduledTask {
|
|
421
|
+
let svc: typeof ScheduledTaskService | undefined;
|
|
422
|
+
}
|
|
400
423
|
/**
|
|
401
424
|
* タスクサービス
|
|
402
425
|
*/
|
|
@@ -484,6 +507,10 @@ export declare class ChevreConsole {
|
|
|
484
507
|
createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
|
|
485
508
|
createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
|
|
486
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>;
|
|
487
514
|
createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
|
|
488
515
|
createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
|
|
489
516
|
createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
|
|
@@ -508,7 +535,6 @@ export declare class ChevreConsole {
|
|
|
508
535
|
createMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MessageService>;
|
|
509
536
|
createMovieTicketTypeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieTicketTypeService>;
|
|
510
537
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
511
|
-
createOwnershipInfoInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OwnershipInfoService>;
|
|
512
538
|
createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
|
|
513
539
|
createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
|
|
514
540
|
createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
|
|
@@ -529,6 +555,7 @@ export declare class ChevreConsole {
|
|
|
529
555
|
createSellerMakesOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SellerMakesOfferService>;
|
|
530
556
|
createSellerReturnPolicyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SellerReturnPolicyService>;
|
|
531
557
|
createAsyncActionInstance(params: Pick<IOptions, 'project'>): Promise<AsyncActionService>;
|
|
558
|
+
createScheduledTaskInstance(params: Pick<IOptions, 'project'>): Promise<ScheduledTaskService>;
|
|
532
559
|
createTaskInstance(params: Pick<IOptions, 'project'>): Promise<TaskService>;
|
|
533
560
|
createTicketInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TicketService>;
|
|
534
561
|
createAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AssetTransactionService>;
|
|
@@ -45,6 +45,18 @@ var service;
|
|
|
45
45
|
let Action;
|
|
46
46
|
(function (Action) {
|
|
47
47
|
})(Action = service.Action || (service.Action = {}));
|
|
48
|
+
let UpdateAction;
|
|
49
|
+
(function (UpdateAction) {
|
|
50
|
+
})(UpdateAction = service.UpdateAction || (service.UpdateAction = {}));
|
|
51
|
+
let InformAction;
|
|
52
|
+
(function (InformAction) {
|
|
53
|
+
})(InformAction = service.InformAction || (service.InformAction = {}));
|
|
54
|
+
let UseAction;
|
|
55
|
+
(function (UseAction) {
|
|
56
|
+
})(UseAction = service.UseAction || (service.UseAction = {}));
|
|
57
|
+
let CheckAction;
|
|
58
|
+
(function (CheckAction) {
|
|
59
|
+
})(CheckAction = service.CheckAction || (service.CheckAction = {}));
|
|
48
60
|
let AdditionalProperty;
|
|
49
61
|
(function (AdditionalProperty) {
|
|
50
62
|
})(AdditionalProperty = service.AdditionalProperty || (service.AdditionalProperty = {}));
|
|
@@ -117,9 +129,6 @@ var service;
|
|
|
117
129
|
let Order;
|
|
118
130
|
(function (Order) {
|
|
119
131
|
})(Order = service.Order || (service.Order = {}));
|
|
120
|
-
let OwnershipInfo;
|
|
121
|
-
(function (OwnershipInfo) {
|
|
122
|
-
})(OwnershipInfo = service.OwnershipInfo || (service.OwnershipInfo = {}));
|
|
123
132
|
let PaymentProduct;
|
|
124
133
|
(function (PaymentProduct) {
|
|
125
134
|
})(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
|
|
@@ -183,6 +192,9 @@ var service;
|
|
|
183
192
|
let AsyncAction;
|
|
184
193
|
(function (AsyncAction) {
|
|
185
194
|
})(AsyncAction = service.AsyncAction || (service.AsyncAction = {}));
|
|
195
|
+
let ScheduledTask;
|
|
196
|
+
(function (ScheduledTask) {
|
|
197
|
+
})(ScheduledTask = service.ScheduledTask || (service.ScheduledTask = {}));
|
|
186
198
|
let Task;
|
|
187
199
|
(function (Task) {
|
|
188
200
|
})(Task = service.Task || (service.Task = {}));
|
|
@@ -249,6 +261,30 @@ class ChevreConsole {
|
|
|
249
261
|
}
|
|
250
262
|
return new service.Action.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
251
263
|
}
|
|
264
|
+
async createUpdateActionInstance(params) {
|
|
265
|
+
if (service.UpdateAction.svc === undefined) {
|
|
266
|
+
service.UpdateAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/updateAction.js')))).UpdateActionService;
|
|
267
|
+
}
|
|
268
|
+
return new service.UpdateAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
269
|
+
}
|
|
270
|
+
async createInformActionInstance(params) {
|
|
271
|
+
if (service.InformAction.svc === undefined) {
|
|
272
|
+
service.InformAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/informAction.js')))).InformActionService;
|
|
273
|
+
}
|
|
274
|
+
return new service.InformAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
275
|
+
}
|
|
276
|
+
async createUseActionInstance(params) {
|
|
277
|
+
if (service.UseAction.svc === undefined) {
|
|
278
|
+
service.UseAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/useAction.js')))).UseActionService;
|
|
279
|
+
}
|
|
280
|
+
return new service.UseAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
281
|
+
}
|
|
282
|
+
async createCheckActionInstance(params) {
|
|
283
|
+
if (service.CheckAction.svc === undefined) {
|
|
284
|
+
service.CheckAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/checkAction.js')))).CheckActionService;
|
|
285
|
+
}
|
|
286
|
+
return new service.CheckAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
287
|
+
}
|
|
252
288
|
async createAdditionalPropertyInstance(params) {
|
|
253
289
|
if (service.AdditionalProperty.svc === undefined) {
|
|
254
290
|
service.AdditionalProperty.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/additionalProperty.js')))).AdditionalPropertyService;
|
|
@@ -393,12 +429,6 @@ class ChevreConsole {
|
|
|
393
429
|
}
|
|
394
430
|
return new service.Order.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
395
431
|
}
|
|
396
|
-
async createOwnershipInfoInstance(params) {
|
|
397
|
-
if (service.OwnershipInfo.svc === undefined) {
|
|
398
|
-
service.OwnershipInfo.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/ownershipInfo.js')))).OwnershipInfoService;
|
|
399
|
-
}
|
|
400
|
-
return new service.OwnershipInfo.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
401
|
-
}
|
|
402
432
|
async createPaymentProductInstance(params) {
|
|
403
433
|
if (service.PaymentProduct.svc === undefined) {
|
|
404
434
|
service.PaymentProduct.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/paymentService.js')))).PaymentProductService;
|
|
@@ -519,6 +549,12 @@ class ChevreConsole {
|
|
|
519
549
|
}
|
|
520
550
|
return new service.AsyncAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
521
551
|
}
|
|
552
|
+
async createScheduledTaskInstance(params) {
|
|
553
|
+
if (service.ScheduledTask.svc === undefined) {
|
|
554
|
+
service.ScheduledTask.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/scheduledTask.js')))).ScheduledTaskService;
|
|
555
|
+
}
|
|
556
|
+
return new service.ScheduledTask.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
557
|
+
}
|
|
522
558
|
async createTaskInstance(params) {
|
|
523
559
|
if (service.Task.svc === undefined) {
|
|
524
560
|
service.Task.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/task.js')))).TaskService;
|
|
@@ -8,9 +8,8 @@ const service_1 = require("../service");
|
|
|
8
8
|
* COAオファーサービス
|
|
9
9
|
*/
|
|
10
10
|
class OfferService extends service_1.Service {
|
|
11
|
-
async acceptOffer(params
|
|
11
|
+
async acceptOffer(params) {
|
|
12
12
|
const { object, purpose, potentialActions } = params;
|
|
13
|
-
const useAsyncAction = options?.useAsyncAction;
|
|
14
13
|
return this.fetch({
|
|
15
14
|
uri: `/offers/${factory_1.factory.product.ProductType.EventService}ByCOA/accept`,
|
|
16
15
|
method: 'POST',
|
|
@@ -21,8 +20,7 @@ class OfferService extends service_1.Service {
|
|
|
21
20
|
...(typeof potentialActions?.id === 'string') ? { potentialActions } : undefined
|
|
22
21
|
},
|
|
23
22
|
qs: {
|
|
24
|
-
purpose: { id: purpose.id }
|
|
25
|
-
...((typeof useAsyncAction === 'string') && { useAsyncAction })
|
|
23
|
+
purpose: { id: purpose.id }
|
|
26
24
|
}
|
|
27
25
|
})
|
|
28
26
|
.then(async (response) => response.json());
|
|
@@ -183,8 +183,6 @@ export declare class EventService extends Service {
|
|
|
183
183
|
};
|
|
184
184
|
limit: number;
|
|
185
185
|
page: number;
|
|
186
|
-
}, options?: {
|
|
187
|
-
useDefaultSection?: boolean;
|
|
188
186
|
}): Promise<ISearchResult<Omit<ISeatAsEventOffer, 'containedInPlace'>[]> & {
|
|
189
187
|
/**
|
|
190
188
|
* デフォルトセクションコード
|