@chevre/factory 10.5.0-alpha.6 → 10.5.0-alpha.8
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/chevre/action/update/delete.d.ts +1 -9
- package/lib/chevre/index.d.ts +8 -6
- package/lib/chevre/index.js +2 -0
- package/lib/chevre/task/confirmReturnOrder.d.ts +14 -0
- package/lib/chevre/task/confirmReturnOrder.js +2 -0
- package/lib/chevre/task/deleteTransaction.d.ts +3 -3
- package/lib/chevre/taskName.d.ts +1 -0
- package/lib/chevre/taskName.js +1 -0
- package/lib/chevre/transaction/returnOrder.d.ts +2 -14
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ import { IPlace as IRoom } from '../../place/screeningRoom';
|
|
|
8
8
|
import { IProduct } from '../../product';
|
|
9
9
|
import { ISeller } from '../../seller';
|
|
10
10
|
import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
11
|
-
import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
|
|
12
11
|
/**
|
|
13
12
|
* 削除者は現時点でプロジェクトのみ
|
|
14
13
|
*/
|
|
@@ -37,14 +36,7 @@ export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'id' | 'typeOf'> & {
|
|
|
37
36
|
endDate?: never;
|
|
38
37
|
project?: never;
|
|
39
38
|
};
|
|
40
|
-
export type
|
|
41
|
-
object: Pick<IReturnOrderObject, 'order'>;
|
|
42
|
-
specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
|
|
43
|
-
startDate?: never;
|
|
44
|
-
endDate?: never;
|
|
45
|
-
project?: never;
|
|
46
|
-
};
|
|
47
|
-
export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPlaceOrder | IObjectAsReturnOrder;
|
|
39
|
+
export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPlaceOrder;
|
|
48
40
|
/**
|
|
49
41
|
* deleteクエリのレスポンスなど削除結果を定義するべきであるが、ひとまず汎用的に
|
|
50
42
|
*/
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ import * as CheckMovieTicketTaskFactory from './task/checkMovieTicket';
|
|
|
147
147
|
import * as CheckResourceTaskFactory from './task/checkResource';
|
|
148
148
|
import * as ConfirmPayTransactionTaskFactory from './task/confirmPayTransaction';
|
|
149
149
|
import * as ConfirmReserveTransactionTaskFactory from './task/confirmReserveTransaction';
|
|
150
|
+
import * as ConfirmReturnOrderTaskFactory from './task/confirmReturnOrder';
|
|
150
151
|
import * as CreateAccountingReportTaskFactory from './task/createAccountingReport';
|
|
151
152
|
import * as DeleteTransactionTaskFactory from './task/deleteTransaction';
|
|
152
153
|
import * as HandleNotificationTaskFactory from './task/handleNotification';
|
|
@@ -438,6 +439,7 @@ export declare namespace task {
|
|
|
438
439
|
export import checkResource = CheckResourceTaskFactory;
|
|
439
440
|
export import createAccountingReport = CreateAccountingReportTaskFactory;
|
|
440
441
|
export import confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
442
|
+
export import confirmReturnOrder = ConfirmReturnOrderTaskFactory;
|
|
441
443
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
442
444
|
export import handleNotification = HandleNotificationTaskFactory;
|
|
443
445
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
@@ -490,12 +492,12 @@ export declare namespace transaction {
|
|
|
490
492
|
export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
491
493
|
export import ISortOrder = TransactionFactory.ISortOrder;
|
|
492
494
|
export import ITasksExportAction = TransactionFactory.ITasksExportAction;
|
|
493
|
-
type ISearchConditions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ISearchConditions :
|
|
494
|
-
type IStartParams<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IStartParams :
|
|
495
|
-
type IResult<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IResult :
|
|
496
|
-
type IPotentialActions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IPotentialActions :
|
|
497
|
-
type IAttributes<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IAttributes :
|
|
498
|
-
type ITransaction<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ITransaction :
|
|
495
|
+
type ISearchConditions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ISearchConditions : never;
|
|
496
|
+
type IStartParams<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IStartParams : never;
|
|
497
|
+
type IResult<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IResult : never;
|
|
498
|
+
type IPotentialActions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IPotentialActions : never;
|
|
499
|
+
type IAttributes<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IAttributes : never;
|
|
500
|
+
type ITransaction<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ITransaction : never;
|
|
499
501
|
export import placeOrder = PlaceOrderTransactionFactory;
|
|
500
502
|
export import returnOrder = ReturnOrderTransactionFactory;
|
|
501
503
|
}
|
package/lib/chevre/index.js
CHANGED
|
@@ -144,6 +144,7 @@ const CancelReservationTaskFactory = require("./task/cancelReservation");
|
|
|
144
144
|
const CheckMovieTicketTaskFactory = require("./task/checkMovieTicket");
|
|
145
145
|
const CheckResourceTaskFactory = require("./task/checkResource");
|
|
146
146
|
const ConfirmReserveTransactionTaskFactory = require("./task/confirmReserveTransaction");
|
|
147
|
+
const ConfirmReturnOrderTaskFactory = require("./task/confirmReturnOrder");
|
|
147
148
|
const CreateAccountingReportTaskFactory = require("./task/createAccountingReport");
|
|
148
149
|
const DeleteTransactionTaskFactory = require("./task/deleteTransaction");
|
|
149
150
|
const HandleNotificationTaskFactory = require("./task/handleNotification");
|
|
@@ -419,6 +420,7 @@ var task;
|
|
|
419
420
|
task.checkResource = CheckResourceTaskFactory;
|
|
420
421
|
task.createAccountingReport = CreateAccountingReportTaskFactory;
|
|
421
422
|
task.confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
423
|
+
task.confirmReturnOrder = ConfirmReturnOrderTaskFactory;
|
|
422
424
|
task.deleteTransaction = DeleteTransactionTaskFactory;
|
|
423
425
|
task.handleNotification = HandleNotificationTaskFactory;
|
|
424
426
|
task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { ITaskAttributes } from '../task';
|
|
3
|
+
import { TaskName } from '../taskName';
|
|
4
|
+
import type { ITransaction as IReturnOrder } from '../transaction/returnOrder';
|
|
5
|
+
export type IData = Pick<IReturnOrder, 'object' | 'potentialActions' | 'typeOf' | 'agent' | 'startDate' | 'id'>;
|
|
6
|
+
export interface IAttributes extends ITaskAttributes {
|
|
7
|
+
name: TaskName.ConfirmReturnOrder;
|
|
8
|
+
data: IData;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 返品取引確定タスク
|
|
12
|
+
* 返品取引から移行(2026-09-06~)
|
|
13
|
+
*/
|
|
14
|
+
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IObjectAsPlaceOrder
|
|
1
|
+
import { IObjectAsPlaceOrder } from '../action/update/delete';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { ITaskAttributes } from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export { IObjectAsPlaceOrder,
|
|
6
|
-
export type IObject = IObjectAsPlaceOrder
|
|
5
|
+
export { IObjectAsPlaceOrder, };
|
|
6
|
+
export type IObject = IObjectAsPlaceOrder;
|
|
7
7
|
export interface IData {
|
|
8
8
|
object: IObject;
|
|
9
9
|
}
|
package/lib/chevre/taskName.d.ts
CHANGED
package/lib/chevre/taskName.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { IAttributes as IReturnOrderActionAttributes, IReturnPolicy } from '../action/transfer/return/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { IProject } from '../project';
|
|
4
|
-
import { IAgent, ISeller,
|
|
4
|
+
import { IAgent, ISeller, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
|
|
5
5
|
import { TransactionType } from '../transactionType';
|
|
6
6
|
export { IAgent, ISeller };
|
|
7
|
-
export
|
|
8
|
-
}
|
|
7
|
+
export type IResult = never;
|
|
9
8
|
export type IError = any;
|
|
10
9
|
/**
|
|
11
10
|
* 返品理由
|
|
@@ -139,14 +138,3 @@ export interface IAttributes extends IBaseAttributes<Omit<IStartParams, 'expires
|
|
|
139
138
|
* 返品取引
|
|
140
139
|
*/
|
|
141
140
|
export type ITransaction = IExtendId<IAttributes>;
|
|
142
|
-
export interface ISearchConditions extends IBaseSearchConditions<TransactionType.ReturnOrder> {
|
|
143
|
-
object?: {
|
|
144
|
-
order?: {
|
|
145
|
-
/**
|
|
146
|
-
* 返品対象注文番号
|
|
147
|
-
*/
|
|
148
|
-
orderNumbers?: string[];
|
|
149
|
-
};
|
|
150
|
-
result?: {};
|
|
151
|
-
};
|
|
152
|
-
}
|