@chevre/factory 5.2.0-alpha.0 → 5.2.0-alpha.2
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 +3 -3
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/issuer.d.ts +1 -0
- package/lib/notification/event.d.ts +23 -12
- package/lib/notification/eventSeries.d.ts +8 -0
- package/lib/notification/eventSeries.js +2 -0
- package/lib/task/handleNotification.d.ts +2 -2
- package/lib/task/triggerWebhook.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
|
-
import { EventType } from '../../eventType';
|
|
5
4
|
import { IOrder } from '../../order';
|
|
6
5
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
7
6
|
import { IAccountTitleAsNotification } from '../../notification/accountTitle';
|
|
8
7
|
import { ICategoryCodeAsNotification } from '../../notification/categoryCode';
|
|
9
8
|
import { IMovieAsNotification, INoteDigitalDocumentAsNotification } from '../../notification/creativeWork';
|
|
10
|
-
import {
|
|
9
|
+
import { IEvent4inform2agg, IEventAsNotification } from '../../notification/event';
|
|
10
|
+
import { IEventSeriesAsNotification } from '../../notification/eventSeries';
|
|
11
11
|
import { IOfferAsNotification } from '../../notification/offer';
|
|
12
12
|
import { IOfferCatalogAsNotification } from '../../notification/offerCatalog';
|
|
13
13
|
import { IOrder4inform } from '../../notification/order';
|
|
@@ -34,7 +34,7 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsWebApplication, 'name'
|
|
|
34
34
|
id?: never;
|
|
35
35
|
url?: never;
|
|
36
36
|
};
|
|
37
|
-
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification |
|
|
37
|
+
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
38
38
|
export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform | ITask4inform;
|
|
39
39
|
export interface IPayTransactionAsPurpose {
|
|
40
40
|
id: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -150,6 +150,7 @@ import * as AccountTitleNotification from './notification/accountTitle';
|
|
|
150
150
|
import * as CategoryCodeNotification from './notification/categoryCode';
|
|
151
151
|
import * as CreativeWorkNotification from './notification/creativeWork';
|
|
152
152
|
import * as EventNotification from './notification/event';
|
|
153
|
+
import * as EventSeriesNotification from './notification/eventSeries';
|
|
153
154
|
import * as OfferNotification from './notification/offer';
|
|
154
155
|
import * as OfferCatalogNotification from './notification/offerCatalog';
|
|
155
156
|
import * as OrderNotification from './notification/order';
|
|
@@ -402,6 +403,7 @@ export import monetaryAmount = MonetaryAmountFactory;
|
|
|
402
403
|
export type multilingualString = IMultilingualString;
|
|
403
404
|
export declare namespace notification {
|
|
404
405
|
export import event = EventNotification;
|
|
406
|
+
export import eventSeries = EventSeriesNotification;
|
|
405
407
|
export import order = OrderNotification;
|
|
406
408
|
export import reservation = ReservationNotification;
|
|
407
409
|
export import payAction = PayActionNotification;
|
package/lib/index.js
CHANGED
|
@@ -145,6 +145,7 @@ var AccountTitleNotification = require("./notification/accountTitle");
|
|
|
145
145
|
var CategoryCodeNotification = require("./notification/categoryCode");
|
|
146
146
|
var CreativeWorkNotification = require("./notification/creativeWork");
|
|
147
147
|
var EventNotification = require("./notification/event");
|
|
148
|
+
var EventSeriesNotification = require("./notification/eventSeries");
|
|
148
149
|
var OfferNotification = require("./notification/offer");
|
|
149
150
|
var OfferCatalogNotification = require("./notification/offerCatalog");
|
|
150
151
|
var OrderNotification = require("./notification/order");
|
|
@@ -419,6 +420,8 @@ var notification;
|
|
|
419
420
|
// tslint:disable-next-line:no-shadowed-variable
|
|
420
421
|
notification.event = EventNotification;
|
|
421
422
|
// tslint:disable-next-line:no-shadowed-variable
|
|
423
|
+
notification.eventSeries = EventSeriesNotification;
|
|
424
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
422
425
|
notification.order = OrderNotification;
|
|
423
426
|
// tslint:disable-next-line:no-shadowed-variable
|
|
424
427
|
notification.reservation = ReservationNotification;
|
package/lib/issuer.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IEvent as IScreeningEvent, IOffer, IOffer4COA, ISeller, ISellerMakesOffer } from '../event/screeningEvent';
|
|
2
|
-
import { IEvent as IEventSeries } from '../event/screeningEventSeries';
|
|
3
2
|
import { EventType } from '../eventType';
|
|
4
3
|
import { IAvailableAtOrFrom } from '../offer';
|
|
5
4
|
import { OrganizationType } from '../organizationType';
|
|
6
|
-
|
|
5
|
+
interface IUpdatedEvent4inform {
|
|
7
6
|
/**
|
|
8
7
|
* 同時複数作成に対応
|
|
9
8
|
*/
|
|
@@ -15,13 +14,25 @@ export interface IUpdatedEvent4inform {
|
|
|
15
14
|
};
|
|
16
15
|
typeOf: EventType.ScreeningEvent;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
/**
|
|
18
|
+
* agg(分析サービス)へのイベント通知
|
|
19
|
+
*/
|
|
20
|
+
type IEvent4inform2agg = IUpdatedEvent4inform;
|
|
21
|
+
type IEventSellerMakesOfferAsNotification = (Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
|
|
22
|
+
availableAtOrFrom: IAvailableAtOrFrom[];
|
|
23
|
+
identifier?: string;
|
|
24
|
+
});
|
|
25
|
+
type IEventOfferAsNotification = (Pick<IOffer, 'itemOffered' | 'typeOf'> & {
|
|
26
|
+
seller: Pick<ISeller, 'id' | 'typeOf'> & {
|
|
27
|
+
makesOffer: IEventSellerMakesOfferAsNotification[];
|
|
28
|
+
};
|
|
29
|
+
}) | Pick<IOffer4COA, 'itemOffered' | 'typeOf'>;
|
|
30
|
+
/**
|
|
31
|
+
* 外部へのイベント通知
|
|
32
|
+
* redefine(2025-11-01~)
|
|
33
|
+
*/
|
|
34
|
+
type IEventAsNotification = Pick<IScreeningEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'superEvent' | 'id' | 'additionalProperty'> & {
|
|
35
|
+
offers: IEventOfferAsNotification;
|
|
36
|
+
identifier?: string;
|
|
37
|
+
};
|
|
38
|
+
export { IEvent4inform2agg, IEventAsNotification, IEventOfferAsNotification, IEventSellerMakesOfferAsNotification };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IEvent as IEventSeries } from '../event/screeningEventSeries';
|
|
2
|
+
/**
|
|
3
|
+
* 外部への施設コンテンツ通知
|
|
4
|
+
* redefine(2025-11-01~)
|
|
5
|
+
*/
|
|
6
|
+
export type IEventSeriesAsNotification = Pick<IEventSeries, 'project' | 'organizer' | 'typeOf' | 'name' | 'endDate' | 'location' | 'startDate' | 'id' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'kanaName' | 'alternativeHeadline' | 'description' | 'duration' | 'eventStatus' | 'headline'> & {
|
|
7
|
+
offers?: never;
|
|
8
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IExtendId } from '../autoGenerated';
|
|
2
|
-
import {
|
|
2
|
+
import { IEvent4inform2agg } from '../notification/event';
|
|
3
3
|
import { IOrder4inform } from '../notification/order';
|
|
4
4
|
import { IReservation4inform } from '../notification/reservation';
|
|
5
5
|
import { ITask4inform } from '../notification/task';
|
|
6
6
|
import * as TaskFactory from '../task';
|
|
7
7
|
import { TaskName } from '../taskName';
|
|
8
|
-
export type INotification =
|
|
8
|
+
export type INotification = IEvent4inform2agg | IOrder4inform | IReservation4inform | ITask4inform;
|
|
9
9
|
export interface IData {
|
|
10
10
|
/**
|
|
11
11
|
* 通知識別子
|
|
@@ -1,11 +1,11 @@
|
|
|
1
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
4
|
import { IAccountTitleAsNotification } from '../notification/accountTitle';
|
|
6
5
|
import { ICategoryCodeAsNotification } from '../notification/categoryCode';
|
|
7
6
|
import { IMovieAsNotification, INoteDigitalDocumentAsNotification } from '../notification/creativeWork';
|
|
8
|
-
import {
|
|
7
|
+
import { IEvent4inform2agg, IEventAsNotification } from '../notification/event';
|
|
8
|
+
import { IEventSeriesAsNotification } from '../notification/eventSeries';
|
|
9
9
|
import { IOfferAsNotification } from '../notification/offer';
|
|
10
10
|
import { IOfferCatalogAsNotification } from '../notification/offerCatalog';
|
|
11
11
|
import { IOrder4inform } from '../notification/order';
|
|
@@ -25,7 +25,7 @@ export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 't
|
|
|
25
25
|
/**
|
|
26
26
|
* define strictly(2025-02-20~)
|
|
27
27
|
*/
|
|
28
|
-
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification |
|
|
28
|
+
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
29
29
|
export type IInformAnyResourceAction = Pick<IInformActionAttributes<IAnyResourceAsObject>, 'object' | 'about'> & {
|
|
30
30
|
/**
|
|
31
31
|
* 通知識別子(2024-10-24~)
|