@chevre/factory 4.393.0-alpha.24 → 4.393.0-alpha.25
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/action/interact/inform.d.ts +19 -3
- package/lib/action/trade/refund.d.ts +3 -5
- package/lib/assetTransaction/refund.d.ts +6 -4
- package/lib/index.d.ts +18 -0
- package/lib/index.js +27 -0
- package/lib/notification/accountTitle.d.ts +4 -0
- package/lib/notification/accountTitle.js +2 -0
- package/lib/notification/categoryCode.d.ts +2 -0
- package/lib/notification/categoryCode.js +2 -0
- package/lib/notification/creativeWork.d.ts +4 -0
- package/lib/notification/creativeWork.js +2 -0
- package/lib/notification/event.d.ts +13 -0
- package/lib/notification/offer.d.ts +2 -0
- package/lib/notification/offer.js +2 -0
- package/lib/notification/offerCatalog.d.ts +4 -0
- package/lib/notification/offerCatalog.js +2 -0
- package/lib/notification/person.d.ts +7 -0
- package/lib/notification/person.js +2 -0
- package/lib/notification/place.d.ts +9 -0
- package/lib/notification/place.js +2 -0
- package/lib/notification/product.d.ts +2 -0
- package/lib/notification/product.js +2 -0
- package/lib/notification/transaction.d.ts +2 -0
- package/lib/notification/transaction.js +10 -0
- package/lib/task/handleNotification.d.ts +5 -0
- package/lib/task/refund.d.ts +4 -2
- package/lib/task/triggerWebhook.d.ts +22 -10
- package/package.json +1 -1
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
|
+
import { EventType } from '../../eventType';
|
|
4
5
|
import { IOrder } from '../../order';
|
|
5
6
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
7
|
+
import { IAccountTitleAsNotification } from '../../notification/accountTitle';
|
|
8
|
+
import { ICategoryCodeAsNotification } from '../../notification/categoryCode';
|
|
9
|
+
import { IMovieAsNotification, INoteDigitalDocumentAsNotification } from '../../notification/creativeWork';
|
|
10
|
+
import { IEvent4inform, IEventAsNotification } from '../../notification/event';
|
|
11
|
+
import { IOfferAsNotification } from '../../notification/offer';
|
|
12
|
+
import { IOfferCatalogAsNotification } from '../../notification/offerCatalog';
|
|
13
|
+
import { IOrder4inform } from '../../notification/order';
|
|
14
|
+
import { IPayAction4inform } from '../../notification/payAction';
|
|
15
|
+
import { IPersonAsNotification } from '../../notification/person';
|
|
16
|
+
import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../../notification/place';
|
|
17
|
+
import { IProductAsNotification } from '../../notification/product';
|
|
18
|
+
import { IRefundAction4inform } from '../../notification/refundAction';
|
|
19
|
+
import { IReservation4inform } from '../../notification/reservation';
|
|
20
|
+
import { IPlaceOrderAsNotification } from '../../notification/transaction';
|
|
6
21
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
7
22
|
export type IRecipientAsWebApplicationDeprecated = Pick<ActionFactory.IRecipientAsAnonymousWebApplication, 'id' | 'name' | 'typeOf'> & {
|
|
8
23
|
url?: string;
|
|
@@ -18,7 +33,8 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsWebApplication, 'name'
|
|
|
18
33
|
id?: never;
|
|
19
34
|
url?: never;
|
|
20
35
|
};
|
|
21
|
-
export type
|
|
36
|
+
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;
|
|
22
38
|
export interface IPayTransactionAsPurpose {
|
|
23
39
|
id: string;
|
|
24
40
|
typeOf: AssetTransactionType.Pay;
|
|
@@ -35,13 +51,13 @@ export interface IResult {
|
|
|
35
51
|
statusCode?: number;
|
|
36
52
|
useFetchAPI?: boolean;
|
|
37
53
|
}
|
|
38
|
-
export interface IAttributes<TObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf' | 'target'> {
|
|
54
|
+
export interface IAttributes<TObject extends IObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf' | 'target'> {
|
|
39
55
|
agent: IAgent;
|
|
40
56
|
recipient: IRecipient | IRecipientDeprecated;
|
|
41
57
|
purpose?: IPurpose;
|
|
42
58
|
about?: IAbout;
|
|
43
59
|
}
|
|
44
60
|
/**
|
|
45
|
-
*
|
|
61
|
+
* inform action
|
|
46
62
|
*/
|
|
47
63
|
export type IAction<TAttributes extends IAttributes<IObject>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -6,7 +6,7 @@ import { IRecipe as IRefundMovieTicketRecipe, ISeatInfoSyncCancelIn, ISeatInfoSy
|
|
|
6
6
|
import { TransactionType } from '../../transactionType';
|
|
7
7
|
import { IRefundTransactionAsPurpose } from '../interact/inform';
|
|
8
8
|
import { IAction as IReturnInvoiceAction } from '../transfer/return/invoice';
|
|
9
|
-
import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay,
|
|
9
|
+
import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsReturnAction } from './pay';
|
|
10
10
|
export { IAlterTranResult, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
|
|
11
11
|
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
12
12
|
export type IRecipient = ActionFactory.IParticipant;
|
|
@@ -47,10 +47,8 @@ export interface IPurposeAsPlaceOrder {
|
|
|
47
47
|
typeOf: TransactionType.PlaceOrder;
|
|
48
48
|
id: string;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
51
|
-
IPurposeAsReturnAction |
|
|
52
|
-
IPurposeAsPlaceOrder | // 注文取引における発行済決済URL無効化の場合
|
|
53
|
-
IPurposeAsAssetTransaction;
|
|
50
|
+
export { IOrderAsPayPurpose, IPurposeAsReturnAction };
|
|
51
|
+
export type IPurpose = IOrderAsPayPurpose | IPurposeAsReturnAction | IPurposeAsPlaceOrder;
|
|
54
52
|
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
55
53
|
export type IReturnActionAsInstrument = Pick<IReturnInvoiceAction, 'id' | 'typeOf'>;
|
|
56
54
|
export type IInstrument = IOrderAsInstrument | IReturnActionAsInstrument;
|
|
@@ -37,8 +37,8 @@ export interface IStartParams extends AssetTransactionFactory.IStartParams<Asset
|
|
|
37
37
|
}
|
|
38
38
|
export type IRefundPurpose = IPurposeAsReturnAction;
|
|
39
39
|
export interface IPotentialActionsParams {
|
|
40
|
-
refund
|
|
41
|
-
purpose
|
|
40
|
+
refund: {
|
|
41
|
+
purpose: IRefundPurpose;
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -48,11 +48,13 @@ export interface IConfirmParams {
|
|
|
48
48
|
id?: string;
|
|
49
49
|
transactionNumber?: string;
|
|
50
50
|
endDate?: Date;
|
|
51
|
-
potentialActions
|
|
51
|
+
potentialActions: IPotentialActionsParams;
|
|
52
52
|
}
|
|
53
53
|
export type IResult = any;
|
|
54
54
|
export type IError = any;
|
|
55
|
-
export type IPotentialRefundActionAttributes = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | '
|
|
55
|
+
export type IPotentialRefundActionAttributes = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'recipient' | 'typeOf'> & {
|
|
56
|
+
purpose: IRefundPurpose;
|
|
57
|
+
};
|
|
56
58
|
export interface IPotentialActions {
|
|
57
59
|
/**
|
|
58
60
|
* 返金アクション
|
package/lib/index.d.ts
CHANGED
|
@@ -138,11 +138,20 @@ import * as BusTripFactory from './trip/busTrip';
|
|
|
138
138
|
import { TripType } from './tripType';
|
|
139
139
|
import { UnitCode } from './unitCode';
|
|
140
140
|
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
141
|
+
import * as AccountTitleNotification from './notification/accountTitle';
|
|
142
|
+
import * as CategoryCodeNotification from './notification/categoryCode';
|
|
143
|
+
import * as CreativeWorkNotification from './notification/creativeWork';
|
|
141
144
|
import * as EventNotification from './notification/event';
|
|
145
|
+
import * as OfferNotification from './notification/offer';
|
|
146
|
+
import * as OfferCatalogNotification from './notification/offerCatalog';
|
|
142
147
|
import * as OrderNotification from './notification/order';
|
|
143
148
|
import * as PayActionNotification from './notification/payAction';
|
|
149
|
+
import * as PersonNotification from './notification/person';
|
|
150
|
+
import * as PlaceNotification from './notification/place';
|
|
151
|
+
import * as ProductNotification from './notification/product';
|
|
144
152
|
import * as RefundActionNotification from './notification/refundAction';
|
|
145
153
|
import * as ReservationNotification from './notification/reservation';
|
|
154
|
+
import * as TransactionNotification from './notification/transaction';
|
|
146
155
|
import * as TaskFactory from './task';
|
|
147
156
|
import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
|
|
148
157
|
import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
|
|
@@ -376,6 +385,15 @@ export declare namespace notification {
|
|
|
376
385
|
export import reservation = ReservationNotification;
|
|
377
386
|
export import payAction = PayActionNotification;
|
|
378
387
|
export import refundAction = RefundActionNotification;
|
|
388
|
+
export import accountTitle = AccountTitleNotification;
|
|
389
|
+
export import categoryCode = CategoryCodeNotification;
|
|
390
|
+
export import creativeWork = CreativeWorkNotification;
|
|
391
|
+
export import offer = OfferNotification;
|
|
392
|
+
export import offerCatalog = OfferCatalogNotification;
|
|
393
|
+
export import person = PersonNotification;
|
|
394
|
+
export import place = PlaceNotification;
|
|
395
|
+
export import product = ProductNotification;
|
|
396
|
+
export import transaction = TransactionNotification;
|
|
379
397
|
}
|
|
380
398
|
export import offer = OfferFactory;
|
|
381
399
|
export import offerCatalog = OfferCatalogFactory;
|
package/lib/index.js
CHANGED
|
@@ -130,11 +130,20 @@ var BusTripFactory = require("./trip/busTrip");
|
|
|
130
130
|
var tripType_1 = require("./tripType");
|
|
131
131
|
var unitCode_1 = require("./unitCode");
|
|
132
132
|
var UnitPriceOfferFactory = require("./unitPriceOffer");
|
|
133
|
+
var AccountTitleNotification = require("./notification/accountTitle");
|
|
134
|
+
var CategoryCodeNotification = require("./notification/categoryCode");
|
|
135
|
+
var CreativeWorkNotification = require("./notification/creativeWork");
|
|
133
136
|
var EventNotification = require("./notification/event");
|
|
137
|
+
var OfferNotification = require("./notification/offer");
|
|
138
|
+
var OfferCatalogNotification = require("./notification/offerCatalog");
|
|
134
139
|
var OrderNotification = require("./notification/order");
|
|
135
140
|
var PayActionNotification = require("./notification/payAction");
|
|
141
|
+
var PersonNotification = require("./notification/person");
|
|
142
|
+
var PlaceNotification = require("./notification/place");
|
|
143
|
+
var ProductNotification = require("./notification/product");
|
|
136
144
|
var RefundActionNotification = require("./notification/refundAction");
|
|
137
145
|
var ReservationNotification = require("./notification/reservation");
|
|
146
|
+
var TransactionNotification = require("./notification/transaction");
|
|
138
147
|
var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
|
|
139
148
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
140
149
|
var AggregateOffersTaskFactory = require("./task/aggregateOffers");
|
|
@@ -362,6 +371,24 @@ var notification;
|
|
|
362
371
|
notification.reservation = ReservationNotification;
|
|
363
372
|
notification.payAction = PayActionNotification;
|
|
364
373
|
notification.refundAction = RefundActionNotification;
|
|
374
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
375
|
+
notification.accountTitle = AccountTitleNotification;
|
|
376
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
377
|
+
notification.categoryCode = CategoryCodeNotification;
|
|
378
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
379
|
+
notification.creativeWork = CreativeWorkNotification;
|
|
380
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
381
|
+
notification.offer = OfferNotification;
|
|
382
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
383
|
+
notification.offerCatalog = OfferCatalogNotification;
|
|
384
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
385
|
+
notification.person = PersonNotification;
|
|
386
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
387
|
+
notification.place = PlaceNotification;
|
|
388
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
389
|
+
notification.product = ProductNotification;
|
|
390
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
391
|
+
notification.transaction = TransactionNotification;
|
|
365
392
|
})(notification = exports.notification || (exports.notification = {}));
|
|
366
393
|
exports.offer = OfferFactory;
|
|
367
394
|
exports.offerCatalog = OfferCatalogFactory;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ICreativeWork as IMovie } from '../creativeWork/movie';
|
|
2
|
+
import { INoteDigitalDocument } from '../creativeWork/noteDigitalDocument';
|
|
3
|
+
export type IMovieAsNotification = Pick<IMovie, 'additionalProperty' | 'datePublished' | 'duration' | 'identifier' | 'name' | 'project' | 'typeOf' | 'distributor' | 'contentRating' | 'headline' | 'thumbnailUrl' | 'id'>;
|
|
4
|
+
export type INoteDigitalDocumentAsNotification = Pick<INoteDigitalDocument, 'id' | 'about' | 'identifier' | 'project' | 'text' | 'typeOf' | 'version'>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { IEvent } from '../event/anyEvent';
|
|
2
|
+
import { IEvent as IScreeningEvent, IOffer, IOffer4COA, ISeller, ISellerMakesOffer } from '../event/screeningEvent';
|
|
3
|
+
import { IEvent as IEventSeries } from '../event/screeningEventSeries';
|
|
1
4
|
import { EventType } from '../eventType';
|
|
5
|
+
import { IAvailableAtOrFrom } from '../offer';
|
|
2
6
|
import { OrganizationType } from '../organizationType';
|
|
3
7
|
export interface IUpdatedEvent4inform {
|
|
4
8
|
/**
|
|
@@ -13,3 +17,12 @@ export interface IUpdatedEvent4inform {
|
|
|
13
17
|
typeOf: EventType.ScreeningEvent;
|
|
14
18
|
}
|
|
15
19
|
export type IEvent4inform = IUpdatedEvent4inform;
|
|
20
|
+
export type IEventAsNotification<T extends EventType> = T extends EventType.ScreeningEvent ? Pick<IScreeningEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'superEvent' | 'id' | 'additionalProperty'> & {
|
|
21
|
+
offers: (Pick<IOffer, 'itemOffered' | 'typeOf'> & {
|
|
22
|
+
seller: Pick<ISeller, 'id' | 'typeOf'> & {
|
|
23
|
+
makesOffer: (Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
|
|
24
|
+
availableAtOrFrom?: IAvailableAtOrFrom[];
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
27
|
+
}) | Pick<IOffer4COA, 'itemOffered' | 'typeOf'>;
|
|
28
|
+
} : T extends EventType.ScreeningEventSeries ? Pick<IEventSeries, 'project' | 'organizer' | 'typeOf' | 'name' | 'endDate' | 'location' | 'startDate' | 'id' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'kanaName' | 'alternativeHeadline' | 'description' | 'duration' | 'eventStatus' | 'headline'> : T extends EventType.Event ? Pick<IEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'id' | 'additionalProperty'> : never;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPlace as IMovieTheater, IPOS } from '../place/movieTheater';
|
|
2
|
+
import { IPlace as IScreeningRoom } from '../place/screeningRoom';
|
|
3
|
+
export type IHasPOSAsNotification = Pick<IMovieTheater, 'id' | 'typeOf'> & {
|
|
4
|
+
hasPOS: IPOS[];
|
|
5
|
+
};
|
|
6
|
+
export type IContainsPlace = Pick<IScreeningRoom, 'branchCode' | 'name' | 'typeOf' | 'additionalProperty' | 'address'>;
|
|
7
|
+
export type IMovieTheaterAsNotification = Pick<IMovieTheater, 'id' | 'additionalProperty' | 'branchCode' | 'hasEntranceGate' | 'kanaName' | 'name' | 'parentOrganization' | 'project' | 'telephone' | 'url' | 'typeOf'> & {
|
|
8
|
+
containsPlace: IContainsPlace[];
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// id: string;
|
|
4
|
+
// typeOf: transaction.typeOf,
|
|
5
|
+
// project: transaction.project,
|
|
6
|
+
// seller: transaction.seller,
|
|
7
|
+
// startDate: transaction.startDate,
|
|
8
|
+
// status: transaction.status,
|
|
9
|
+
// ...(transaction.endDate !== undefined) ? { endDate: transaction.endDate } : undefined
|
|
10
|
+
// }
|
|
@@ -11,6 +11,11 @@ export interface IData {
|
|
|
11
11
|
*/
|
|
12
12
|
identifier?: string;
|
|
13
13
|
object: INotification;
|
|
14
|
+
/**
|
|
15
|
+
* informAction ID
|
|
16
|
+
* required(2025-02-20~)
|
|
17
|
+
*/
|
|
18
|
+
id?: string;
|
|
14
19
|
}
|
|
15
20
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
16
21
|
name: TaskName.HandleNotification;
|
package/lib/task/refund.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IAttributes as IRefundActionAttributes } from '../action/trade/refund';
|
|
1
|
+
import { IAttributes as IRefundActionAttributes, IPurposeAsReturnAction } from '../action/trade/refund';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | '
|
|
5
|
+
export type IData = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'recipient' | 'typeOf' | 'instrument'> & {
|
|
6
|
+
purpose: IPurposeAsReturnAction;
|
|
7
|
+
};
|
|
6
8
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
9
|
name: TaskName.Refund;
|
|
8
10
|
data: IData;
|
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import { IAttributes as IInformActionAttributes,
|
|
1
|
+
import { IAttributes as IInformActionAttributes, IOrderAsAbout, IPlaceOrderAsAbout, IRecipient, IRecipientDeprecated } from '../action/interact/inform';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { IEntryPoint } from '../entryPoint';
|
|
4
|
+
import { EventType } from '../eventType';
|
|
5
|
+
import { IAccountTitleAsNotification } from '../notification/accountTitle';
|
|
6
|
+
import { ICategoryCodeAsNotification } from '../notification/categoryCode';
|
|
7
|
+
import { IMovieAsNotification, INoteDigitalDocumentAsNotification } from '../notification/creativeWork';
|
|
8
|
+
import { IEvent4inform, IEventAsNotification } from '../notification/event';
|
|
9
|
+
import { IOfferAsNotification } from '../notification/offer';
|
|
10
|
+
import { IOfferCatalogAsNotification } from '../notification/offerCatalog';
|
|
4
11
|
import { IOrder4inform } from '../notification/order';
|
|
5
12
|
import { IPayAction4inform } from '../notification/payAction';
|
|
13
|
+
import { IPersonAsNotification } from '../notification/person';
|
|
14
|
+
import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../notification/place';
|
|
15
|
+
import { IProductAsNotification } from '../notification/product';
|
|
6
16
|
import { IRefundAction4inform } from '../notification/refundAction';
|
|
7
17
|
import { IReservation4inform } from '../notification/reservation';
|
|
18
|
+
import { IPlaceOrderAsNotification } from '../notification/transaction';
|
|
8
19
|
import * as TaskFactory from '../task';
|
|
9
20
|
import { TaskName } from '../taskName';
|
|
10
21
|
export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 'typeOf'> & {
|
|
11
22
|
url?: never;
|
|
12
23
|
};
|
|
13
|
-
|
|
24
|
+
/**
|
|
25
|
+
* define strictly(2025-02-20~)
|
|
26
|
+
*/
|
|
27
|
+
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform | IEventAsNotification<EventType>;
|
|
28
|
+
export type IInformAnyResourceAction = Pick<IInformActionAttributes<IAnyResourceAsObject>, 'object' | 'about'> & {
|
|
14
29
|
/**
|
|
15
30
|
* 通知識別子(2024-10-24~)
|
|
16
31
|
*/
|
|
@@ -21,7 +36,7 @@ export type IPotentialInformAnyResourceAction = Pick<IInformActionAttributes<IOb
|
|
|
21
36
|
typeOf?: never;
|
|
22
37
|
purpose?: never;
|
|
23
38
|
};
|
|
24
|
-
export type IPotentialInformOrderAction = Pick<IInformActionAttributes<
|
|
39
|
+
export type IPotentialInformOrderAction = Pick<IInformActionAttributes<IOrder4inform>, 'object' | 'about'> & {
|
|
25
40
|
/**
|
|
26
41
|
* about required(2025-02-19~)
|
|
27
42
|
*/
|
|
@@ -30,14 +45,13 @@ export type IPotentialInformOrderAction = Pick<IInformActionAttributes<IObject>,
|
|
|
30
45
|
* 通知識別子(2024-10-24~)
|
|
31
46
|
*/
|
|
32
47
|
identifier?: string;
|
|
33
|
-
object: IOrder4inform;
|
|
34
48
|
recipient: IDeprecatedRecipient;
|
|
35
49
|
target: IEntryPoint;
|
|
36
50
|
id?: never;
|
|
37
51
|
typeOf?: never;
|
|
38
52
|
purpose?: never;
|
|
39
53
|
};
|
|
40
|
-
export type IPotentialInformReservationAction = Pick<IInformActionAttributes<
|
|
54
|
+
export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IReservation4inform>, 'object' | 'about'> & {
|
|
41
55
|
/**
|
|
42
56
|
* about required(2025-02-19~)
|
|
43
57
|
*/
|
|
@@ -46,7 +60,6 @@ export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IOb
|
|
|
46
60
|
* 通知識別子(2024-10-24~)
|
|
47
61
|
*/
|
|
48
62
|
identifier?: string;
|
|
49
|
-
object: IReservation4inform;
|
|
50
63
|
recipient: Pick<IRecipient, 'name' | 'typeOf'> & {
|
|
51
64
|
id?: string;
|
|
52
65
|
};
|
|
@@ -55,18 +68,17 @@ export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IOb
|
|
|
55
68
|
typeOf?: never;
|
|
56
69
|
purpose?: never;
|
|
57
70
|
};
|
|
58
|
-
export type IPotentialInformActionWithId = Pick<IInformActionAttributes<
|
|
71
|
+
export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IPayAction4inform | IRefundAction4inform>, 'object' | 'purpose' | 'about'> & {
|
|
59
72
|
identifier?: never;
|
|
60
|
-
object: IPayAction4inform | IRefundAction4inform;
|
|
61
73
|
recipient?: never;
|
|
62
74
|
target?: never;
|
|
63
75
|
/**
|
|
64
76
|
* potentialAction id
|
|
65
77
|
*/
|
|
66
78
|
id: string;
|
|
67
|
-
typeOf: IInformActionAttributes<
|
|
79
|
+
typeOf: IInformActionAttributes<IPayAction4inform | IRefundAction4inform>['typeOf'];
|
|
68
80
|
};
|
|
69
|
-
export type IData =
|
|
81
|
+
export type IData = IInformAnyResourceAction | IPotentialInformOrderAction | IPotentialInformReservationAction | IPotentialInformActionWithId;
|
|
70
82
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
71
83
|
name: TaskName.TriggerWebhook;
|
|
72
84
|
data: IData;
|