@chevre/factory 5.2.0-alpha.1 → 5.2.0-alpha.3

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.
@@ -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 { IEvent4inform, IEventAsNotification } from '../../notification/event';
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 | IEvent4inform | IEventAsNotification<EventType>;
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;
@@ -24,10 +24,6 @@ export declare enum CategorySetIdentifier {
24
24
  * メンバーシップ区分
25
25
  */
26
26
  MembershipType = "MembershipType",
27
- /**
28
- * 決済カード区分
29
- */
30
- MovieTicketType = "MovieTicketType",
31
27
  /**
32
28
  * オファーカテゴリータイプ
33
29
  */
@@ -71,12 +67,7 @@ export interface ICategoryCode extends Pick<IThing, 'color' | 'image' | 'name'>
71
67
  codeValue: string;
72
68
  inCodeSet: ICategoryCodeSet;
73
69
  name: IMultilingualString;
74
- paymentMethod?: {
75
- /**
76
- * 決済カード区分の場合、対応決済方法区分
77
- */
78
- typeOf?: string;
79
- };
70
+ paymentMethod?: never;
80
71
  }
81
72
  /**
82
73
  * 検索条件
@@ -109,15 +100,7 @@ export interface ISearchConditions {
109
100
  $in?: string[];
110
101
  };
111
102
  };
112
- paymentMethod?: {
113
- /**
114
- * 決済カード区分の場合、対応決済方法区分
115
- */
116
- typeOf?: {
117
- $eq?: string;
118
- $in?: string[];
119
- };
120
- };
103
+ paymentMethod?: never;
121
104
  additionalProperty?: {
122
105
  $elemMatch?: {
123
106
  name?: {
@@ -23,10 +23,6 @@ var CategorySetIdentifier;
23
23
  * メンバーシップ区分
24
24
  */
25
25
  CategorySetIdentifier["MembershipType"] = "MembershipType";
26
- /**
27
- * 決済カード区分
28
- */
29
- CategorySetIdentifier["MovieTicketType"] = "MovieTicketType";
30
26
  /**
31
27
  * オファーカテゴリータイプ
32
28
  */
package/lib/index.d.ts CHANGED
@@ -83,6 +83,7 @@ import { ItemAvailability } from './itemAvailability';
83
83
  import * as LanguageFactory from './language';
84
84
  import * as MerchantReturnPolicyFactory from './merchantReturnPolicy';
85
85
  import * as MonetaryAmountFactory from './monetaryAmount';
86
+ import * as MovieTicketTypeFactory from './movieTicketType';
86
87
  import { IMultilingualString } from './multilingualString';
87
88
  import * as OfferFactory from './offer';
88
89
  import * as AggregateOfferFactory from './offer/aggregateOffer';
@@ -150,6 +151,7 @@ import * as AccountTitleNotification from './notification/accountTitle';
150
151
  import * as CategoryCodeNotification from './notification/categoryCode';
151
152
  import * as CreativeWorkNotification from './notification/creativeWork';
152
153
  import * as EventNotification from './notification/event';
154
+ import * as EventSeriesNotification from './notification/eventSeries';
153
155
  import * as OfferNotification from './notification/offer';
154
156
  import * as OfferCatalogNotification from './notification/offerCatalog';
155
157
  import * as OrderNotification from './notification/order';
@@ -399,9 +401,11 @@ export import itemAvailability = ItemAvailability;
399
401
  export import language = LanguageFactory;
400
402
  export import merchantReturnPolicy = MerchantReturnPolicyFactory;
401
403
  export import monetaryAmount = MonetaryAmountFactory;
404
+ export import movieTicketType = MovieTicketTypeFactory;
402
405
  export type multilingualString = IMultilingualString;
403
406
  export declare namespace notification {
404
407
  export import event = EventNotification;
408
+ export import eventSeries = EventSeriesNotification;
405
409
  export import order = OrderNotification;
406
410
  export import reservation = ReservationNotification;
407
411
  export import payAction = PayActionNotification;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = void 0;
3
+ exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -84,6 +84,7 @@ var itemAvailability_1 = require("./itemAvailability");
84
84
  var LanguageFactory = require("./language");
85
85
  var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
86
86
  var MonetaryAmountFactory = require("./monetaryAmount");
87
+ var MovieTicketTypeFactory = require("./movieTicketType");
87
88
  var OfferFactory = require("./offer");
88
89
  var AggregateOfferFactory = require("./offer/aggregateOffer");
89
90
  var ProductOfferFactory = require("./offer/productOffer");
@@ -145,6 +146,7 @@ var AccountTitleNotification = require("./notification/accountTitle");
145
146
  var CategoryCodeNotification = require("./notification/categoryCode");
146
147
  var CreativeWorkNotification = require("./notification/creativeWork");
147
148
  var EventNotification = require("./notification/event");
149
+ var EventSeriesNotification = require("./notification/eventSeries");
148
150
  var OfferNotification = require("./notification/offer");
149
151
  var OfferCatalogNotification = require("./notification/offerCatalog");
150
152
  var OrderNotification = require("./notification/order");
@@ -414,11 +416,14 @@ exports.itemAvailability = itemAvailability_1.ItemAvailability;
414
416
  exports.language = LanguageFactory;
415
417
  exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
416
418
  exports.monetaryAmount = MonetaryAmountFactory;
419
+ exports.movieTicketType = MovieTicketTypeFactory;
417
420
  var notification;
418
421
  (function (notification) {
419
422
  // tslint:disable-next-line:no-shadowed-variable
420
423
  notification.event = EventNotification;
421
424
  // tslint:disable-next-line:no-shadowed-variable
425
+ notification.eventSeries = EventSeriesNotification;
426
+ // tslint:disable-next-line:no-shadowed-variable
422
427
  notification.order = OrderNotification;
423
428
  // tslint:disable-next-line:no-shadowed-variable
424
429
  notification.reservation = ReservationNotification;
@@ -0,0 +1,65 @@
1
+ import { ICategoryCode } from './categoryCode';
2
+ import { SortType } from './sortType';
3
+ export declare enum CategorySetIdentifier {
4
+ /**
5
+ * 決済カード区分
6
+ */
7
+ MovieTicketType = "MovieTicketType"
8
+ }
9
+ export interface ICategoryCodeSet {
10
+ typeOf: 'CategoryCodeSet';
11
+ identifier: CategorySetIdentifier.MovieTicketType;
12
+ }
13
+ /**
14
+ * 決済カード区分
15
+ */
16
+ export interface IMovieTicketType extends Pick<ICategoryCode, 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> {
17
+ inCodeSet: ICategoryCodeSet;
18
+ paymentMethod: {
19
+ /**
20
+ * 決済カード区分の場合、対応決済方法区分
21
+ */
22
+ typeOf: string;
23
+ };
24
+ }
25
+ /**
26
+ * 検索条件
27
+ */
28
+ export interface ISearchConditions {
29
+ limit?: number;
30
+ page?: number;
31
+ sort?: {
32
+ codeValue?: SortType;
33
+ };
34
+ project?: {
35
+ id?: {
36
+ $eq?: string;
37
+ };
38
+ };
39
+ id?: {
40
+ $eq?: string;
41
+ $in?: string[];
42
+ };
43
+ name?: {
44
+ $regex?: string;
45
+ };
46
+ codeValue?: {
47
+ $eq?: string;
48
+ $in?: string[];
49
+ };
50
+ inCodeSet?: {
51
+ identifier?: {
52
+ $eq?: string;
53
+ $in?: string[];
54
+ };
55
+ };
56
+ paymentMethod?: {
57
+ /**
58
+ * 決済カード区分の場合、対応決済方法区分
59
+ */
60
+ typeOf?: {
61
+ $eq?: string;
62
+ $in?: string[];
63
+ };
64
+ };
65
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CategorySetIdentifier = void 0;
4
+ var CategorySetIdentifier;
5
+ (function (CategorySetIdentifier) {
6
+ /**
7
+ * 決済カード区分
8
+ */
9
+ CategorySetIdentifier["MovieTicketType"] = "MovieTicketType";
10
+ })(CategorySetIdentifier = exports.CategorySetIdentifier || (exports.CategorySetIdentifier = {}));
@@ -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
- export interface IUpdatedEvent4inform {
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
- export type IEvent4inform = IUpdatedEvent4inform;
19
- export type IEventAsNotification<T extends EventType> = T extends EventType.ScreeningEvent ? Pick<IScreeningEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'superEvent' | 'id' | 'additionalProperty'> & {
20
- offers: (Pick<IOffer, 'itemOffered' | 'typeOf'> & {
21
- seller: Pick<ISeller, 'id' | 'typeOf'> & {
22
- makesOffer: (Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
23
- availableAtOrFrom?: IAvailableAtOrFrom[];
24
- })[];
25
- };
26
- }) | Pick<IOffer4COA, 'itemOffered' | 'typeOf'>;
27
- } : 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'> : never;
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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,11 @@
1
1
  import { IExtendId } from '../autoGenerated';
2
- import { IEvent4inform } from '../notification/event';
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 = IEvent4inform | IOrder4inform | IReservation4inform | ITask4inform;
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 { IEvent4inform, IEventAsNotification } from '../notification/event';
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 | IEvent4inform | IEventAsNotification<EventType>;
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~)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "5.2.0-alpha.1",
3
+ "version": "5.2.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",