@chevre/factory 4.395.0 → 4.396.0-alpha.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.
|
@@ -17,6 +17,7 @@ import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../../notifi
|
|
|
17
17
|
import { IProductAsNotification } from '../../notification/product';
|
|
18
18
|
import { IRefundAction4inform } from '../../notification/refundAction';
|
|
19
19
|
import { IReservation4inform } from '../../notification/reservation';
|
|
20
|
+
import { ITask4inform } from '../../notification/task';
|
|
20
21
|
import { IPlaceOrderAsNotification } from '../../notification/transaction';
|
|
21
22
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
22
23
|
export type IRecipientAsWebApplicationDeprecated = Pick<ActionFactory.IRecipientAsAnonymousWebApplication, 'id' | 'name' | 'typeOf'> & {
|
|
@@ -34,7 +35,7 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsWebApplication, 'name'
|
|
|
34
35
|
url?: never;
|
|
35
36
|
};
|
|
36
37
|
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform | IEventAsNotification<EventType>;
|
|
37
|
-
export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform;
|
|
38
|
+
export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform | ITask4inform;
|
|
38
39
|
export interface IPayTransactionAsPurpose {
|
|
39
40
|
id: string;
|
|
40
41
|
typeOf: AssetTransactionType.Pay;
|
package/lib/index.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ import * as PlaceNotification from './notification/place';
|
|
|
158
158
|
import * as ProductNotification from './notification/product';
|
|
159
159
|
import * as RefundActionNotification from './notification/refundAction';
|
|
160
160
|
import * as ReservationNotification from './notification/reservation';
|
|
161
|
+
import * as TaskNotification from './notification/task';
|
|
161
162
|
import * as TransactionNotification from './notification/transaction';
|
|
162
163
|
import * as TaskFactory from './task';
|
|
163
164
|
import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
|
|
@@ -412,6 +413,7 @@ export declare namespace notification {
|
|
|
412
413
|
export import person = PersonNotification;
|
|
413
414
|
export import place = PlaceNotification;
|
|
414
415
|
export import product = ProductNotification;
|
|
416
|
+
export import task = TaskNotification;
|
|
415
417
|
export import transaction = TransactionNotification;
|
|
416
418
|
}
|
|
417
419
|
export import offer = OfferFactory;
|
package/lib/index.js
CHANGED
|
@@ -149,6 +149,7 @@ var PlaceNotification = require("./notification/place");
|
|
|
149
149
|
var ProductNotification = require("./notification/product");
|
|
150
150
|
var RefundActionNotification = require("./notification/refundAction");
|
|
151
151
|
var ReservationNotification = require("./notification/reservation");
|
|
152
|
+
var TaskNotification = require("./notification/task");
|
|
152
153
|
var TransactionNotification = require("./notification/transaction");
|
|
153
154
|
var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
|
|
154
155
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
@@ -406,6 +407,8 @@ var notification;
|
|
|
406
407
|
// tslint:disable-next-line:no-shadowed-variable
|
|
407
408
|
notification.product = ProductNotification;
|
|
408
409
|
// tslint:disable-next-line:no-shadowed-variable
|
|
410
|
+
notification.task = TaskNotification;
|
|
411
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
409
412
|
notification.transaction = TransactionNotification;
|
|
410
413
|
})(notification = exports.notification || (exports.notification = {}));
|
|
411
414
|
exports.offer = OfferFactory;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITask } from '../task';
|
|
2
|
+
import { TaskStatus } from '../taskStatus';
|
|
3
|
+
/**
|
|
4
|
+
* 実行試行回数超過で中止されるタスク
|
|
5
|
+
*/
|
|
6
|
+
export type IAbortingTask = Pick<ITask, 'data' | 'id' | 'project' | 'runsAt'> & {
|
|
7
|
+
status: TaskStatus.Aborted;
|
|
8
|
+
};
|
|
9
|
+
export type ITask4inform = IAbortingTask;
|
|
@@ -15,6 +15,7 @@ import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../notificat
|
|
|
15
15
|
import { IProductAsNotification } from '../notification/product';
|
|
16
16
|
import { IRefundAction4inform } from '../notification/refundAction';
|
|
17
17
|
import { IReservation4inform } from '../notification/reservation';
|
|
18
|
+
import { ITask4inform } from '../notification/task';
|
|
18
19
|
import { IPlaceOrderAsNotification } from '../notification/transaction';
|
|
19
20
|
import * as TaskFactory from '../task';
|
|
20
21
|
import { TaskName } from '../taskName';
|
|
@@ -68,6 +69,20 @@ export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IRe
|
|
|
68
69
|
typeOf?: never;
|
|
69
70
|
purpose?: never;
|
|
70
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* support task(2025-08-03~)
|
|
74
|
+
*/
|
|
75
|
+
export type IPotentialInformTaskAction = Pick<IInformActionAttributes<ITask4inform>, 'object'> & {
|
|
76
|
+
/**
|
|
77
|
+
* 通知識別子
|
|
78
|
+
*/
|
|
79
|
+
identifier: string;
|
|
80
|
+
recipient: IDeprecatedRecipient;
|
|
81
|
+
target: IEntryPoint;
|
|
82
|
+
id?: never;
|
|
83
|
+
typeOf?: never;
|
|
84
|
+
purpose?: never;
|
|
85
|
+
};
|
|
71
86
|
export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IPayAction4inform | IRefundAction4inform>, 'object' | 'purpose' | 'about'> & {
|
|
72
87
|
identifier?: never;
|
|
73
88
|
recipient?: never;
|
|
@@ -78,7 +93,7 @@ export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IPayActi
|
|
|
78
93
|
id: string;
|
|
79
94
|
typeOf: IInformActionAttributes<IPayAction4inform | IRefundAction4inform>['typeOf'];
|
|
80
95
|
};
|
|
81
|
-
export type IData = IInformAnyResourceAction | IPotentialInformOrderAction | IPotentialInformReservationAction | IPotentialInformActionWithId;
|
|
96
|
+
export type IData = IInformAnyResourceAction | IPotentialInformOrderAction | IPotentialInformReservationAction | IPotentialInformActionWithId | IPotentialInformTaskAction;
|
|
82
97
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
83
98
|
name: TaskName.TriggerWebhook;
|
|
84
99
|
data: IData;
|