@chevre/factory 4.388.0-alpha.8 → 4.388.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.
@@ -5,7 +5,7 @@ import { IExtendId } from '../autoGenerated';
5
5
  import { IMonetaryAmount } from '../monetaryAmount';
6
6
  import { ITotalPaymentDue } from '../order';
7
7
  import { ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
8
- import { IOnPaymentStatusChanged } from '../project';
8
+ import { IOnPaymentStatusChanged } from '../product';
9
9
  import { IPropertyValue } from '../propertyValue';
10
10
  import { PaymentServiceType } from '../service/paymentService';
11
11
  export import IAgent = AssetTransactionFactory.IAgent;
@@ -3,7 +3,7 @@ import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
- import { IOnPaymentStatusChanged } from '../project';
6
+ import { IOnPaymentStatusChanged } from '../product';
7
7
  import { PaymentServiceType } from '../service/paymentService';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export type IRecipient = IRefundRecipient;
package/lib/index.d.ts CHANGED
@@ -128,6 +128,7 @@ import * as BusTripFactory from './trip/busTrip';
128
128
  import { TripType } from './tripType';
129
129
  import { UnitCode } from './unitCode';
130
130
  import * as UnitPriceOfferFactory from './unitPriceOffer';
131
+ import * as EventNotification from './notification/event';
131
132
  import * as OrderNotification from './notification/order';
132
133
  import * as ReservationNotification from './notification/reservation';
133
134
  import * as TaskFactory from './task';
@@ -349,6 +350,7 @@ export import merchantReturnPolicy = MerchantReturnPolicyFactory;
349
350
  export import monetaryAmount = MonetaryAmountFactory;
350
351
  export type multilingualString = IMultilingualString;
351
352
  export declare namespace notification {
353
+ export import event = EventNotification;
352
354
  export import order = OrderNotification;
353
355
  export import reservation = ReservationNotification;
354
356
  }
package/lib/index.js CHANGED
@@ -117,6 +117,7 @@ var BusTripFactory = require("./trip/busTrip");
117
117
  var tripType_1 = require("./tripType");
118
118
  var unitCode_1 = require("./unitCode");
119
119
  var UnitPriceOfferFactory = require("./unitPriceOffer");
120
+ var EventNotification = require("./notification/event");
120
121
  var OrderNotification = require("./notification/order");
121
122
  var ReservationNotification = require("./notification/reservation");
122
123
  var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
@@ -331,6 +332,8 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
331
332
  exports.monetaryAmount = MonetaryAmountFactory;
332
333
  var notification;
333
334
  (function (notification) {
335
+ // tslint:disable-next-line:no-shadowed-variable
336
+ notification.event = EventNotification;
334
337
  // tslint:disable-next-line:no-shadowed-variable
335
338
  notification.order = OrderNotification;
336
339
  // tslint:disable-next-line:no-shadowed-variable
@@ -0,0 +1,15 @@
1
+ import { EventType } from '../eventType';
2
+ import { OrganizationType } from '../organizationType';
3
+ export interface IUpdatedEvent4inform {
4
+ /**
5
+ * 同時複数作成に対応
6
+ */
7
+ id: string[];
8
+ isNew: boolean;
9
+ project: {
10
+ id: string;
11
+ typeOf: OrganizationType.Project;
12
+ };
13
+ typeOf: EventType.ScreeningEvent;
14
+ }
15
+ export type IEvent4inform = IUpdatedEvent4inform;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -36,5 +36,6 @@ export type IDeliveredOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderN
36
36
  */
37
37
  export type IUpdatedOrder4inform = Pick<IOrder, 'typeOf' | 'orderNumber' | 'name' | 'project'> & {
38
38
  updatedAt: Date;
39
+ orderStatus?: never;
39
40
  };
40
41
  export type IOrder4inform = IProcessingOrder4inform | IInTransitOrder4inform | IDeliveredOrder4inform | IReturnedOrder4inform | IUpdatedOrder4inform;
@@ -1,21 +1,15 @@
1
- import { IProvider, IUnderName } from '../reservation';
1
+ import { IProvider, ITicket, IUnderName } from '../reservation';
2
2
  import { IIssuedThrough, IReservation as IEventReservation, IReservationFor } from '../reservation/event';
3
3
  import { ReservationStatusType } from '../reservationStatusType';
4
4
  import { ReservationType } from '../reservationType';
5
5
  type IProject = IEventReservation['project'];
6
6
  export type IMaskedUnderName = Pick<IUnderName, 'id' | 'typeOf'>;
7
- export type ISubReservation4inform = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'modifiedTime' | 'price' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'> & {
8
- /**
9
- * 廃止済
10
- * ReservationPackageへ移行(2024-10-27~)
11
- */
12
- bookingTime?: Date;
13
- };
7
+ export type ISubReservation4inform = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'modifiedTime' | 'price' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
14
8
  /**
15
9
  * 確定予約通知
16
10
  */
17
11
  export interface IReservationPackage4informConfirmed {
18
- bookingTime?: Date;
12
+ bookingTime: Date;
19
13
  issuedThrough: IIssuedThrough;
20
14
  project: IProject;
21
15
  provider: IProvider;
@@ -47,6 +41,10 @@ export interface IReservation4informCheckedIn {
47
41
  reservationNumber?: string;
48
42
  checkedIn: boolean;
49
43
  modifiedTime?: Date;
44
+ /**
45
+ * 発券通知がarrayの場合、ひとつめのみreservedTicket.ticketTokenが含まれる(2024-10-30~)
46
+ */
47
+ reservedTicket?: Pick<ITicket, 'ticketToken'>;
50
48
  reservationStatus?: never;
51
49
  attended?: never;
52
50
  }
@@ -89,5 +87,5 @@ export interface IReservationPackage4informPendingCanceled {
89
87
  reservationStatus: ReservationStatusType.ReservationCancelled;
90
88
  typeOf: ReservationType.ReservationPackage;
91
89
  }
92
- export type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled | IReservation4informCheckedIn | IReservation4informUsed | IReservationPackage4informPending | IReservationPackage4informPendingCanceled;
90
+ export type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled[] | IReservation4informCheckedIn[] | IReservation4informUsed | IReservationPackage4informPending | IReservationPackage4informPendingCanceled;
93
91
  export {};
package/lib/product.d.ts CHANGED
@@ -7,7 +7,7 @@ import { IPriceSpecification as ICategoryCodeChargeSpecification } from './price
7
7
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
8
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
9
9
  import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
10
- import { IOnPaymentStatusChanged, IProject } from './project';
10
+ import { IInformParams, IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
12
12
  import { IQuantitativeValue } from './quantitativeValue';
13
13
  import { SortType } from './sortType';
@@ -61,14 +61,15 @@ export type IServiceOutput = Pick<IPermit, 'typeOf'> & {
61
61
  };
62
62
  /**
63
63
  * 外部サービス認証情報
64
+ * typeOf: PaymentCardの場合のみ
64
65
  */
65
66
  export interface ICredentials {
66
- siteId?: string;
67
- sitePass?: string;
68
67
  authorizeServerDomain?: string;
69
68
  clientId?: string;
70
69
  clientSecret?: string;
71
- useSeatInfoSyncCancel?: boolean;
70
+ }
71
+ export interface IOnPaymentStatusChanged {
72
+ informPayment?: IInformParams[];
72
73
  }
73
74
  export interface IAvailableChannel {
74
75
  typeOf: 'ServiceChannel';
package/lib/project.d.ts CHANGED
@@ -17,25 +17,6 @@ export interface IInformParams {
17
17
  url?: string;
18
18
  };
19
19
  }
20
- export interface IOnPaymentStatusChanged {
21
- informPayment?: IInformParams[];
22
- }
23
- /**
24
- * 予約使用時イベント
25
- */
26
- export interface IOnReservationUsed {
27
- informAction?: IInformParams[];
28
- }
29
- /**
30
- * ウェブフック設定
31
- */
32
- export interface IWebhookSettings {
33
- /**
34
- * リクエストタイムアウト
35
- * {@link https://github.com/request/request#timeouts}
36
- */
37
- timeout?: number;
38
- }
39
20
  export interface ISendEmailMessageSettings {
40
21
  sender?: {
41
22
  email?: string;
@@ -84,11 +65,10 @@ export interface IMakesOffer extends Pick<IOffer, 'typeOf'> {
84
65
  /**
85
66
  * プロジェクト
86
67
  */
87
- export interface IProject extends Pick<IOrganization, 'id' | 'logo' | 'name' | 'typeOf'> {
68
+ export interface IProject extends Pick<IOrganization, 'id' | 'logo' | 'typeOf'> {
88
69
  typeOf: OrganizationType.Project;
89
70
  id: string;
90
71
  alternateName?: string;
91
- description?: string;
92
72
  hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
93
73
  name?: string;
94
74
  settings?: ISettings;
@@ -65,7 +65,19 @@ export interface IProvider extends Pick<ISeller, 'typeOf'> {
65
65
  */
66
66
  credentials?: IProviderCredentials;
67
67
  }
68
- export type IAvailableChannel = IProductAvailableChannel & {
68
+ /**
69
+ * 外部サービス認証情報
70
+ */
71
+ export interface ICredentials {
72
+ siteId?: string;
73
+ sitePass?: string;
74
+ authorizeServerDomain?: string;
75
+ clientId?: string;
76
+ clientSecret?: string;
77
+ useSeatInfoSyncCancel?: boolean;
78
+ }
79
+ export type IAvailableChannel = Pick<IProductAvailableChannel, 'onPaymentStatusChanged' | 'serviceUrl' | 'typeOf'> & {
80
+ credentials?: ICredentials;
69
81
  totalPaymentDue?: {
70
82
  maxValue?: number;
71
83
  };
@@ -1,9 +1,10 @@
1
1
  import { IExtendId } from '../autoGenerated';
2
+ import { IEvent4inform } from '../notification/event';
2
3
  import { IOrder4inform } from '../notification/order';
3
4
  import { IReservation4inform } from '../notification/reservation';
4
5
  import * as TaskFactory from '../task';
5
6
  import { TaskName } from '../taskName';
6
- export type INotification = IOrder4inform | IReservation4inform | IReservation4inform[];
7
+ export type INotification = IEvent4inform | IOrder4inform | IReservation4inform;
7
8
  export interface IData {
8
9
  /**
9
10
  * 通知識別子
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.388.0-alpha.8",
3
+ "version": "4.388.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",