@chevre/factory 5.4.0-alpha.2 → 5.4.0-alpha.4
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 +4 -0
- package/lib/index.js +6 -2
- package/lib/offer/acceptedPaymentMethod.d.ts +110 -0
- package/lib/offer/acceptedPaymentMethod.js +2 -0
- package/lib/offer/eventOffer.d.ts +1 -1
- package/lib/task/syncResourcesFromCOA.d.ts +31 -0
- package/lib/task/syncResourcesFromCOA.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
|
@@ -86,6 +86,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
|
|
|
86
86
|
import * as MovieTicketTypeFactory from './movieTicketType';
|
|
87
87
|
import { IMultilingualString } from './multilingualString';
|
|
88
88
|
import * as OfferFactory from './offer';
|
|
89
|
+
import * as AcceptedPaymentMethodOfferFactory from './offer/acceptedPaymentMethod';
|
|
89
90
|
import * as AggregateOfferFactory from './offer/aggregateOffer';
|
|
90
91
|
import * as EventOfferFactory from './offer/eventOffer';
|
|
91
92
|
import * as ProductOfferFactory from './offer/productOffer';
|
|
@@ -211,6 +212,7 @@ import * as ReturnPointAwardTaskFactory from './task/returnPointAward';
|
|
|
211
212
|
import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransaction';
|
|
212
213
|
import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
|
|
213
214
|
import * as SendOrderTaskFactory from './task/sendOrder';
|
|
215
|
+
import * as SyncResourcesFromCOATaskFactory from './task/syncResourcesFromCOA';
|
|
214
216
|
import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
|
|
215
217
|
import * as UseReservationTaskFactory from './task/useReservation';
|
|
216
218
|
import * as VoidMoneyTransferTransactionTaskFactory from './task/voidMoneyTransferTransaction';
|
|
@@ -238,6 +240,7 @@ import { ErrorCode } from './errorCode';
|
|
|
238
240
|
import * as errors from './errors';
|
|
239
241
|
export import errors = errors;
|
|
240
242
|
export import errorCode = ErrorCode;
|
|
243
|
+
export import acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
241
244
|
export import account = AccountFactory;
|
|
242
245
|
export import actionStatusType = ActionStatusType;
|
|
243
246
|
export import actionType = ActionType;
|
|
@@ -549,6 +552,7 @@ export declare namespace task {
|
|
|
549
552
|
export import registerService = RegisterServiceTaskFactory;
|
|
550
553
|
export import reserve = ReserveTaskFactory;
|
|
551
554
|
export import sendEmailMessage = SendEmailMessageTaskFactory;
|
|
555
|
+
export import syncResourcesFromCOA = SyncResourcesFromCOATaskFactory;
|
|
552
556
|
export import triggerWebhook = TriggerWebhookTaskFactory;
|
|
553
557
|
export import useReservation = UseReservationTaskFactory;
|
|
554
558
|
export import voidPayment = VoidPaymentTaskFactory;
|
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.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 = exports.personType = void 0;
|
|
3
|
+
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.eventOffer = 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.acceptedPaymentMethodOffer = 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 = exports.personType = exports.person = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -86,6 +86,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
|
86
86
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
87
87
|
var MovieTicketTypeFactory = require("./movieTicketType");
|
|
88
88
|
var OfferFactory = require("./offer");
|
|
89
|
+
var AcceptedPaymentMethodOfferFactory = require("./offer/acceptedPaymentMethod");
|
|
89
90
|
var AggregateOfferFactory = require("./offer/aggregateOffer");
|
|
90
91
|
var EventOfferFactory = require("./offer/eventOffer");
|
|
91
92
|
var ProductOfferFactory = require("./offer/productOffer");
|
|
@@ -191,6 +192,7 @@ var RefundTaskFactory = require("./task/refund");
|
|
|
191
192
|
var RegisterServiceTaskFactory = require("./task/registerService");
|
|
192
193
|
var ReserveTaskFactory = require("./task/reserve");
|
|
193
194
|
var SendEmailMessageTaskFactory = require("./task/sendEmailMessage");
|
|
195
|
+
var SyncResourcesFromCOATaskFactory = require("./task/syncResourcesFromCOA");
|
|
194
196
|
var TriggerWebhookTaskFactory = require("./task/triggerWebhook");
|
|
195
197
|
var UseReservationTaskFactory = require("./task/useReservation");
|
|
196
198
|
var VoidPaymentTaskFactory = require("./task/voidPayment");
|
|
@@ -212,6 +214,7 @@ var errorCode_1 = require("./errorCode");
|
|
|
212
214
|
var errors = require("./errors");
|
|
213
215
|
exports.errors = errors;
|
|
214
216
|
exports.errorCode = errorCode_1.ErrorCode;
|
|
217
|
+
exports.acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
215
218
|
exports.account = AccountFactory;
|
|
216
219
|
exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
217
220
|
exports.actionType = actionType_1.ActionType;
|
|
@@ -548,6 +551,7 @@ var task;
|
|
|
548
551
|
task.registerService = RegisterServiceTaskFactory;
|
|
549
552
|
task.reserve = ReserveTaskFactory;
|
|
550
553
|
task.sendEmailMessage = SendEmailMessageTaskFactory;
|
|
554
|
+
task.syncResourcesFromCOA = SyncResourcesFromCOATaskFactory;
|
|
551
555
|
task.triggerWebhook = TriggerWebhookTaskFactory;
|
|
552
556
|
task.useReservation = UseReservationTaskFactory;
|
|
553
557
|
task.voidPayment = VoidPaymentTaskFactory;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { EventType } from '../eventType';
|
|
2
|
+
import { IOffer } from '../offer';
|
|
3
|
+
import { OfferType } from '../offerType';
|
|
4
|
+
import { OrganizationType } from '../organizationType';
|
|
5
|
+
import { PaymentServiceType } from '../service/paymentService';
|
|
6
|
+
import { SortType } from '../sortType';
|
|
7
|
+
interface ISeller {
|
|
8
|
+
id: string;
|
|
9
|
+
typeOf: OrganizationType.Corporation;
|
|
10
|
+
}
|
|
11
|
+
interface IAcceptedPaymentMethod {
|
|
12
|
+
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
13
|
+
/**
|
|
14
|
+
* 決済サービスID
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 対応決済方法オファー
|
|
20
|
+
*/
|
|
21
|
+
interface IAcceptedPaymentMethodOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
|
|
22
|
+
project: {
|
|
23
|
+
id: string;
|
|
24
|
+
typeOf: OrganizationType.Project;
|
|
25
|
+
};
|
|
26
|
+
seller: ISeller;
|
|
27
|
+
typeOf: OfferType.Offer;
|
|
28
|
+
/**
|
|
29
|
+
* いつから承認可能か
|
|
30
|
+
*/
|
|
31
|
+
validFrom: Date;
|
|
32
|
+
/**
|
|
33
|
+
* いつまで承認可能か
|
|
34
|
+
*/
|
|
35
|
+
validThrough: Date;
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* オファーコード
|
|
39
|
+
* 提供リソースID内でユニーク必須
|
|
40
|
+
*/
|
|
41
|
+
identifier: string;
|
|
42
|
+
/**
|
|
43
|
+
* オファーの提供リソース
|
|
44
|
+
*/
|
|
45
|
+
itemOffered: {
|
|
46
|
+
/**
|
|
47
|
+
* リソースID
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
typeOf: EventType.ScreeningEventSeries;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 対応決済方法
|
|
54
|
+
*/
|
|
55
|
+
acceptedPaymentMethod: IAcceptedPaymentMethod;
|
|
56
|
+
}
|
|
57
|
+
interface ISearchConditions {
|
|
58
|
+
limit?: number;
|
|
59
|
+
page?: number;
|
|
60
|
+
sort?: {
|
|
61
|
+
validFrom?: SortType;
|
|
62
|
+
};
|
|
63
|
+
project?: {
|
|
64
|
+
id?: {
|
|
65
|
+
$eq?: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
id?: {
|
|
69
|
+
$eq?: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* オファーコード
|
|
73
|
+
*/
|
|
74
|
+
identifier?: {
|
|
75
|
+
$eq?: string;
|
|
76
|
+
$in?: string[];
|
|
77
|
+
};
|
|
78
|
+
itemOffered?: {
|
|
79
|
+
/**
|
|
80
|
+
* 提供リソースID
|
|
81
|
+
*/
|
|
82
|
+
id?: {
|
|
83
|
+
$eq?: string;
|
|
84
|
+
$in?: string[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
acceptedPaymentMethod?: {
|
|
88
|
+
/**
|
|
89
|
+
* 決済サービスID
|
|
90
|
+
*/
|
|
91
|
+
id?: {
|
|
92
|
+
$eq?: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
seller?: {
|
|
96
|
+
/**
|
|
97
|
+
* 提供販売者ID
|
|
98
|
+
*/
|
|
99
|
+
id?: {
|
|
100
|
+
$eq?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
validFrom?: {
|
|
104
|
+
$lte?: Date;
|
|
105
|
+
};
|
|
106
|
+
validThrough?: {
|
|
107
|
+
$gte?: Date;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export { IAcceptedPaymentMethodOffer, ISearchConditions };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { EventType } from '../eventType';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export interface ISyncEventSeriesAction {
|
|
6
|
+
object: {
|
|
7
|
+
locationBranchCode: string;
|
|
8
|
+
titleCode: string;
|
|
9
|
+
titleBranchNum: string;
|
|
10
|
+
typeOf: EventType.ScreeningEventSeries;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface ISyncEventsAction {
|
|
14
|
+
object: {
|
|
15
|
+
locationBranchCode: string;
|
|
16
|
+
roomCode: string;
|
|
17
|
+
titleCode: string;
|
|
18
|
+
titleBranchNum: string;
|
|
19
|
+
startDate: Date;
|
|
20
|
+
typeOf: EventType.ScreeningEvent;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export type IData = ISyncEventSeriesAction | ISyncEventsAction;
|
|
24
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
25
|
+
name: TaskName.SyncResourcesFromCOA;
|
|
26
|
+
data: IData;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* リソース同期タスク
|
|
30
|
+
*/
|
|
31
|
+
export type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
package/lib/taskName.js
CHANGED