@chevre/factory 4.387.0 → 4.388.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.
- package/lib/index.d.ts +6 -0
- package/lib/index.js +10 -2
- package/lib/notification/reservation.d.ts +63 -0
- package/lib/notification/reservation.js +2 -0
- package/lib/task/handleNotification.d.ts +11 -0
- package/lib/task/handleNotification.js +2 -0
- package/lib/taskName.d.ts +1 -0
- package/lib/taskName.js +1 -0
- package/package.json +1 -1
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 ReservationNotification from './notification/reservation';
|
|
131
132
|
import * as TaskFactory from './task';
|
|
132
133
|
import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
|
|
133
134
|
import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
|
|
@@ -151,6 +152,7 @@ import * as CreateEventTaskFactory from './task/createEvent';
|
|
|
151
152
|
import * as DeletePersonTaskFactory from './task/deletePerson';
|
|
152
153
|
import * as DeleteTransactionTaskFactory from './task/deleteTransaction';
|
|
153
154
|
import * as GivePointAwardTaskFactory from './task/givePointAward';
|
|
155
|
+
import * as HandleNotificationTaskFactory from './task/handleNotification';
|
|
154
156
|
import * as ImportEventCapacitiesFromCOATaskFactory from './task/importEventCapacitiesFromCOA';
|
|
155
157
|
import * as ImportEventsFromCOATaskFactory from './task/importEventsFromCOA';
|
|
156
158
|
import * as ImportOffersFromCOATaskFactory from './task/importOffersFromCOA';
|
|
@@ -345,6 +347,9 @@ export import language = LanguageFactory;
|
|
|
345
347
|
export import merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
346
348
|
export import monetaryAmount = MonetaryAmountFactory;
|
|
347
349
|
export type multilingualString = IMultilingualString;
|
|
350
|
+
export declare namespace notification {
|
|
351
|
+
export import reservation = ReservationNotification;
|
|
352
|
+
}
|
|
348
353
|
export import offer = OfferFactory;
|
|
349
354
|
export import offerCatalog = OfferCatalogFactory;
|
|
350
355
|
export import offerItemCondition = OfferItemConditionFactory;
|
|
@@ -450,6 +455,7 @@ export declare namespace task {
|
|
|
450
455
|
export import confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
451
456
|
export import deletePerson = DeletePersonTaskFactory;
|
|
452
457
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
458
|
+
export import handleNotification = HandleNotificationTaskFactory;
|
|
453
459
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
454
460
|
export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
455
461
|
export import importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
|
|
3
|
+
exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = 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.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.aggregateOffer = 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.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -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 ReservationNotification = require("./notification/reservation");
|
|
120
121
|
var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
|
|
121
122
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
122
123
|
var AggregateOffersTaskFactory = require("./task/aggregateOffers");
|
|
@@ -134,6 +135,7 @@ var CreateAccountingReportTaskFactory = require("./task/createAccountingReport")
|
|
|
134
135
|
var CreateEventTaskFactory = require("./task/createEvent");
|
|
135
136
|
var DeletePersonTaskFactory = require("./task/deletePerson");
|
|
136
137
|
var DeleteTransactionTaskFactory = require("./task/deleteTransaction");
|
|
138
|
+
var HandleNotificationTaskFactory = require("./task/handleNotification");
|
|
137
139
|
var ImportEventCapacitiesFromCOATaskFactory = require("./task/importEventCapacitiesFromCOA");
|
|
138
140
|
var ImportEventsFromCOATaskFactory = require("./task/importEventsFromCOA");
|
|
139
141
|
var ImportOffersFromCOATaskFactory = require("./task/importOffersFromCOA");
|
|
@@ -326,6 +328,11 @@ exports.itemAvailability = itemAvailability_1.ItemAvailability;
|
|
|
326
328
|
exports.language = LanguageFactory;
|
|
327
329
|
exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
328
330
|
exports.monetaryAmount = MonetaryAmountFactory;
|
|
331
|
+
var notification;
|
|
332
|
+
(function (notification) {
|
|
333
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
334
|
+
notification.reservation = ReservationNotification;
|
|
335
|
+
})(notification = exports.notification || (exports.notification = {}));
|
|
329
336
|
exports.offer = OfferFactory;
|
|
330
337
|
exports.offerCatalog = OfferCatalogFactory;
|
|
331
338
|
exports.offerItemCondition = OfferItemConditionFactory;
|
|
@@ -402,6 +409,7 @@ var task;
|
|
|
402
409
|
task.confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
403
410
|
task.deletePerson = DeletePersonTaskFactory;
|
|
404
411
|
task.deleteTransaction = DeleteTransactionTaskFactory;
|
|
412
|
+
task.handleNotification = HandleNotificationTaskFactory;
|
|
405
413
|
task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
406
414
|
task.importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
407
415
|
task.importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { OrganizationType } from '../organizationType';
|
|
2
|
+
import { IProvider, IUnderName } from '../reservation';
|
|
3
|
+
import { IIssuedThrough, IReservation, IReservationFor } from '../reservation/event';
|
|
4
|
+
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
|
+
import { ReservationType } from '../reservationType';
|
|
6
|
+
interface IProject {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOf: OrganizationType.Project;
|
|
9
|
+
}
|
|
10
|
+
type IEventReservation = IReservation;
|
|
11
|
+
export type IMaskedUnderName = Pick<IUnderName, 'id' | 'typeOf'>;
|
|
12
|
+
export type ISubReservation4inform = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'attended' | 'bookingTime' | 'checkedIn' | 'id' | 'modifiedTime' | 'numSeats' | 'price' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
13
|
+
/**
|
|
14
|
+
* 確定予約通知
|
|
15
|
+
*/
|
|
16
|
+
export interface IReservationPackage4informConfirmed {
|
|
17
|
+
issuedThrough: IIssuedThrough;
|
|
18
|
+
project: IProject;
|
|
19
|
+
provider: IProvider;
|
|
20
|
+
reservationFor: IReservationFor;
|
|
21
|
+
reservationNumber: string;
|
|
22
|
+
reservationStatus: ReservationStatusType;
|
|
23
|
+
subReservation: ISubReservation4inform[];
|
|
24
|
+
underName?: IMaskedUnderName;
|
|
25
|
+
typeOf: ReservationType.ReservationPackage;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 予約取消通知
|
|
29
|
+
*/
|
|
30
|
+
export interface IReservation4informCanceled {
|
|
31
|
+
typeOf: ReservationType.BusReservation | ReservationType.EventReservation;
|
|
32
|
+
project: IProject;
|
|
33
|
+
id: string;
|
|
34
|
+
reservationStatus: ReservationStatusType.ReservationCancelled;
|
|
35
|
+
modifiedTime?: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 予約発券通知
|
|
39
|
+
* IDあるいは予約番号で発券
|
|
40
|
+
*/
|
|
41
|
+
export interface IReservation4informCheckedIn {
|
|
42
|
+
typeOf: ReservationType.EventReservation;
|
|
43
|
+
project: IProject;
|
|
44
|
+
id?: string;
|
|
45
|
+
reservationNumber?: string;
|
|
46
|
+
checkedIn: boolean;
|
|
47
|
+
modifiedTime?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 予約使用通知
|
|
51
|
+
*/
|
|
52
|
+
export interface IReservation4informUsed {
|
|
53
|
+
typeOf: ReservationType.EventReservation;
|
|
54
|
+
project: IProject;
|
|
55
|
+
id: string;
|
|
56
|
+
attended: boolean;
|
|
57
|
+
modifiedTime?: Date;
|
|
58
|
+
reservedTicket: {
|
|
59
|
+
dateUsed?: Date;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled | IReservation4informCheckedIn | IReservation4informUsed;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { IReservation4inform } from '../notification/reservation';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export type INotification = IReservation4inform;
|
|
6
|
+
export type IData = INotification[] | INotification;
|
|
7
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
8
|
+
name: TaskName.HandleNotification;
|
|
9
|
+
data: IData;
|
|
10
|
+
}
|
|
11
|
+
export type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare enum TaskName {
|
|
|
63
63
|
* ポイント特典付与
|
|
64
64
|
*/
|
|
65
65
|
GivePointAward = "givePointAward",
|
|
66
|
+
HandleNotification = "handleNotification",
|
|
66
67
|
ImportEventCapacitiesFromCOA = "importEventCapacitiesFromCOA",
|
|
67
68
|
ImportEventsFromCOA = "importEventsFromCOA",
|
|
68
69
|
ImportOffersFromCOA = "importOffersFromCOA",
|
package/lib/taskName.js
CHANGED
|
@@ -67,6 +67,7 @@ var TaskName;
|
|
|
67
67
|
* ポイント特典付与
|
|
68
68
|
*/
|
|
69
69
|
TaskName["GivePointAward"] = "givePointAward";
|
|
70
|
+
TaskName["HandleNotification"] = "handleNotification";
|
|
70
71
|
TaskName["ImportEventCapacitiesFromCOA"] = "importEventCapacitiesFromCOA";
|
|
71
72
|
TaskName["ImportEventsFromCOA"] = "importEventsFromCOA";
|
|
72
73
|
TaskName["ImportOffersFromCOA"] = "importOffersFromCOA";
|