@chevre/factory 4.387.0 → 4.388.0-alpha.1
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 +8 -0
- package/lib/index.js +13 -2
- package/lib/notification/order.d.ts +40 -0
- package/lib/notification/order.js +2 -0
- package/lib/notification/reservation.d.ts +63 -0
- package/lib/notification/reservation.js +2 -0
- package/lib/task/handleNotification.d.ts +14 -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,8 @@ 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 OrderNotification from './notification/order';
|
|
132
|
+
import * as ReservationNotification from './notification/reservation';
|
|
131
133
|
import * as TaskFactory from './task';
|
|
132
134
|
import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
|
|
133
135
|
import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
|
|
@@ -151,6 +153,7 @@ import * as CreateEventTaskFactory from './task/createEvent';
|
|
|
151
153
|
import * as DeletePersonTaskFactory from './task/deletePerson';
|
|
152
154
|
import * as DeleteTransactionTaskFactory from './task/deleteTransaction';
|
|
153
155
|
import * as GivePointAwardTaskFactory from './task/givePointAward';
|
|
156
|
+
import * as HandleNotificationTaskFactory from './task/handleNotification';
|
|
154
157
|
import * as ImportEventCapacitiesFromCOATaskFactory from './task/importEventCapacitiesFromCOA';
|
|
155
158
|
import * as ImportEventsFromCOATaskFactory from './task/importEventsFromCOA';
|
|
156
159
|
import * as ImportOffersFromCOATaskFactory from './task/importOffersFromCOA';
|
|
@@ -345,6 +348,10 @@ export import language = LanguageFactory;
|
|
|
345
348
|
export import merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
346
349
|
export import monetaryAmount = MonetaryAmountFactory;
|
|
347
350
|
export type multilingualString = IMultilingualString;
|
|
351
|
+
export declare namespace notification {
|
|
352
|
+
export import order = OrderNotification;
|
|
353
|
+
export import reservation = ReservationNotification;
|
|
354
|
+
}
|
|
348
355
|
export import offer = OfferFactory;
|
|
349
356
|
export import offerCatalog = OfferCatalogFactory;
|
|
350
357
|
export import offerItemCondition = OfferItemConditionFactory;
|
|
@@ -450,6 +457,7 @@ export declare namespace task {
|
|
|
450
457
|
export import confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
451
458
|
export import deletePerson = DeletePersonTaskFactory;
|
|
452
459
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
460
|
+
export import handleNotification = HandleNotificationTaskFactory;
|
|
453
461
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
454
462
|
export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
455
463
|
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,8 @@ 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 OrderNotification = require("./notification/order");
|
|
121
|
+
var ReservationNotification = require("./notification/reservation");
|
|
120
122
|
var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
|
|
121
123
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
122
124
|
var AggregateOffersTaskFactory = require("./task/aggregateOffers");
|
|
@@ -134,6 +136,7 @@ var CreateAccountingReportTaskFactory = require("./task/createAccountingReport")
|
|
|
134
136
|
var CreateEventTaskFactory = require("./task/createEvent");
|
|
135
137
|
var DeletePersonTaskFactory = require("./task/deletePerson");
|
|
136
138
|
var DeleteTransactionTaskFactory = require("./task/deleteTransaction");
|
|
139
|
+
var HandleNotificationTaskFactory = require("./task/handleNotification");
|
|
137
140
|
var ImportEventCapacitiesFromCOATaskFactory = require("./task/importEventCapacitiesFromCOA");
|
|
138
141
|
var ImportEventsFromCOATaskFactory = require("./task/importEventsFromCOA");
|
|
139
142
|
var ImportOffersFromCOATaskFactory = require("./task/importOffersFromCOA");
|
|
@@ -326,6 +329,13 @@ exports.itemAvailability = itemAvailability_1.ItemAvailability;
|
|
|
326
329
|
exports.language = LanguageFactory;
|
|
327
330
|
exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
|
|
328
331
|
exports.monetaryAmount = MonetaryAmountFactory;
|
|
332
|
+
var notification;
|
|
333
|
+
(function (notification) {
|
|
334
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
335
|
+
notification.order = OrderNotification;
|
|
336
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
337
|
+
notification.reservation = ReservationNotification;
|
|
338
|
+
})(notification = exports.notification || (exports.notification = {}));
|
|
329
339
|
exports.offer = OfferFactory;
|
|
330
340
|
exports.offerCatalog = OfferCatalogFactory;
|
|
331
341
|
exports.offerItemCondition = OfferItemConditionFactory;
|
|
@@ -402,6 +412,7 @@ var task;
|
|
|
402
412
|
task.confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
403
413
|
task.deletePerson = DeletePersonTaskFactory;
|
|
404
414
|
task.deleteTransaction = DeleteTransactionTaskFactory;
|
|
415
|
+
task.handleNotification = HandleNotificationTaskFactory;
|
|
405
416
|
task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
406
417
|
task.importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
|
407
418
|
task.importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IAcceptedOffer, IItemOffered, IOrder } from '../order';
|
|
2
|
+
import { OrderStatus } from '../orderStatus';
|
|
3
|
+
/**
|
|
4
|
+
* 返品通知
|
|
5
|
+
*/
|
|
6
|
+
export type IReturnedOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber' | 'dateReturned'> & {
|
|
7
|
+
id?: string;
|
|
8
|
+
orderStatus: OrderStatus.OrderReturned;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 注文作成通知
|
|
12
|
+
*/
|
|
13
|
+
export type IProcessingOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'seller' | 'price' | 'priceCurrency' | 'confirmationNumber' | 'orderNumber' | 'orderStatus' | 'orderDate' | 'customer' | 'paymentMethods'> & {
|
|
14
|
+
acceptedOffers: [];
|
|
15
|
+
id?: string;
|
|
16
|
+
numAcceptedOffers: number;
|
|
17
|
+
orderStatus: OrderStatus.OrderProcessing;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 配送中通知
|
|
21
|
+
*/
|
|
22
|
+
export type IInTransitOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
|
|
23
|
+
acceptedOffers: IAcceptedOffer<IItemOffered>[];
|
|
24
|
+
id?: string;
|
|
25
|
+
orderStatus: OrderStatus.OrderInTransit;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 配送済通知
|
|
29
|
+
*/
|
|
30
|
+
export type IDeliveredOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
|
|
31
|
+
id?: string;
|
|
32
|
+
orderStatus: OrderStatus.OrderDelivered;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 属性変更時注文通知
|
|
36
|
+
*/
|
|
37
|
+
export type IUpdatedOrder4inform = Pick<IOrder, 'typeOf' | 'orderNumber' | 'name' | 'project'> & {
|
|
38
|
+
updatedAt: Date;
|
|
39
|
+
};
|
|
40
|
+
export type IOrder4inform = IProcessingOrder4inform | IInTransitOrder4inform | IDeliveredOrder4inform | IReturnedOrder4inform | IUpdatedOrder4inform;
|
|
@@ -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,14 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { IOrder4inform } from '../notification/order';
|
|
3
|
+
import { IReservation4inform } from '../notification/reservation';
|
|
4
|
+
import * as TaskFactory from '../task';
|
|
5
|
+
import { TaskName } from '../taskName';
|
|
6
|
+
export type INotification = IOrder4inform | IReservation4inform | IReservation4inform[];
|
|
7
|
+
export interface IData {
|
|
8
|
+
object: INotification;
|
|
9
|
+
}
|
|
10
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
11
|
+
name: TaskName.HandleNotification;
|
|
12
|
+
data: IData;
|
|
13
|
+
}
|
|
14
|
+
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";
|