@chevre/factory 4.197.0-alpha.0 → 4.197.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.
|
@@ -7,9 +7,7 @@ import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give
|
|
|
7
7
|
import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
|
|
8
8
|
export declare type IAgent = ActionFactory.IParticipant;
|
|
9
9
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
10
|
-
export
|
|
11
|
-
acceptedOffers: OrderFactory.IAcceptedOffer<any>[];
|
|
12
|
-
}
|
|
10
|
+
export declare type IObject = OrderFactory.ISimpleOrder;
|
|
13
11
|
export declare type IResult = any;
|
|
14
12
|
export interface IPotentialActions {
|
|
15
13
|
/**
|
|
@@ -9,7 +9,7 @@ import * as SendActionFactory from '../send';
|
|
|
9
9
|
import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
|
|
10
10
|
export declare type IAgent = ActionFactory.IParticipant;
|
|
11
11
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
12
|
-
export declare type IObject = OrderFactory.
|
|
12
|
+
export declare type IObject = OrderFactory.ISimpleOrder;
|
|
13
13
|
/**
|
|
14
14
|
* 注文配送結果としての所有権
|
|
15
15
|
*/
|
package/lib/factory/errors.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* errors
|
|
3
3
|
*/
|
|
4
|
-
import { AlreadyInUseError } from './error/alreadyInUse';
|
|
5
|
-
import { ArgumentError } from './error/argument';
|
|
6
|
-
import { ArgumentNullError } from './error/argumentNull';
|
|
7
|
-
import { ChevreError } from './error/chevre';
|
|
8
|
-
import { ForbiddenError } from './error/forbidden';
|
|
9
|
-
import { GatewayTimeoutError } from './error/gatewayTimeout';
|
|
10
|
-
import { NotFoundError } from './error/notFound';
|
|
11
|
-
import { NotImplementedError } from './error/notImplemented';
|
|
12
|
-
import { RateLimitExceededError } from './error/rateLimitExceeded';
|
|
13
|
-
import { ServiceUnavailableError } from './error/serviceUnavailable';
|
|
14
|
-
import { UnauthorizedError } from './error/unauthorized';
|
|
15
|
-
export {
|
|
4
|
+
import { AlreadyInUseError as AlreadyInUse } from './error/alreadyInUse';
|
|
5
|
+
import { ArgumentError as Argument } from './error/argument';
|
|
6
|
+
import { ArgumentNullError as ArgumentNull } from './error/argumentNull';
|
|
7
|
+
import { ChevreError as Chevre } from './error/chevre';
|
|
8
|
+
import { ForbiddenError as Forbidden } from './error/forbidden';
|
|
9
|
+
import { GatewayTimeoutError as GatewayTimeout } from './error/gatewayTimeout';
|
|
10
|
+
import { NotFoundError as NotFound } from './error/notFound';
|
|
11
|
+
import { NotImplementedError as NotImplemented } from './error/notImplemented';
|
|
12
|
+
import { RateLimitExceededError as RateLimitExceeded } from './error/rateLimitExceeded';
|
|
13
|
+
import { ServiceUnavailableError as ServiceUnavailable } from './error/serviceUnavailable';
|
|
14
|
+
import { UnauthorizedError as Unauthorized } from './error/unauthorized';
|
|
15
|
+
export { AlreadyInUse, Argument, ArgumentNull, Chevre, Forbidden, GatewayTimeout, NotFound, NotImplemented, RateLimitExceeded, ServiceUnavailable, Unauthorized };
|
package/lib/factory/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Unauthorized = exports.
|
|
3
|
+
exports.Unauthorized = exports.ServiceUnavailable = exports.RateLimitExceeded = exports.NotImplemented = exports.NotFound = exports.GatewayTimeout = exports.Forbidden = exports.Chevre = exports.ArgumentNull = exports.Argument = exports.AlreadyInUse = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* errors
|
|
6
6
|
*/
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -6,19 +6,23 @@ import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplica
|
|
|
6
6
|
import { ICustomer as ICustomerOrganization } from './customer';
|
|
7
7
|
import { EventType } from './eventType';
|
|
8
8
|
import * as MonetaryAmountFactory from './monetaryAmount';
|
|
9
|
+
import { IMultilingualString } from './multilingualString';
|
|
9
10
|
import { IOffer } from './offer';
|
|
10
11
|
import { OrderStatus } from './orderStatus';
|
|
11
12
|
import { OrganizationType } from './organizationType';
|
|
12
13
|
import * as PermitFactory from './permit';
|
|
13
14
|
import { IPerson, IProfile } from './person';
|
|
14
15
|
import { PersonType } from './personType';
|
|
16
|
+
import { PlaceType } from './placeType';
|
|
15
17
|
import { PriceCurrency } from './priceCurrency';
|
|
16
18
|
import { IProduct, ProductType } from './product';
|
|
17
19
|
import { IPropertyValue } from './propertyValue';
|
|
18
|
-
import { IProgramMembershipUsedSearchConditions
|
|
20
|
+
import { IProgramMembershipUsedSearchConditions } from './reservation';
|
|
19
21
|
import * as EventReservationFactory from './reservation/event';
|
|
22
|
+
import { ReservationType } from './reservationType';
|
|
20
23
|
import { ISeller as ISellerOrganization } from './seller';
|
|
21
24
|
import { PaymentServiceType } from './service/paymentService';
|
|
25
|
+
import { IServiceType } from './serviceType';
|
|
22
26
|
import { SortType } from './sortType';
|
|
23
27
|
import { IThing } from './thing';
|
|
24
28
|
export interface IProject {
|
|
@@ -183,13 +187,36 @@ export interface ISimpleOrder extends IThing {
|
|
|
183
187
|
*/
|
|
184
188
|
orderDate: Date;
|
|
185
189
|
}
|
|
190
|
+
export interface IReservationFor4OrderedItem {
|
|
191
|
+
location?: {
|
|
192
|
+
branchCode: string;
|
|
193
|
+
name?: IMultilingualString;
|
|
194
|
+
project: IProject;
|
|
195
|
+
typeOf: PlaceType.ScreeningRoom;
|
|
196
|
+
};
|
|
197
|
+
project: IProject;
|
|
198
|
+
typeOf: EventType.ScreeningEvent;
|
|
199
|
+
id: string;
|
|
200
|
+
name?: IMultilingualString;
|
|
201
|
+
startDate?: Date;
|
|
202
|
+
endDate?: Date;
|
|
203
|
+
}
|
|
204
|
+
export interface IEventServiceAsOrderedItem {
|
|
205
|
+
project: IProject;
|
|
206
|
+
typeOf: ProductType.EventService;
|
|
207
|
+
serviceOutput: {
|
|
208
|
+
typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
|
|
209
|
+
reservationFor: IReservationFor4OrderedItem;
|
|
210
|
+
};
|
|
211
|
+
serviceType?: IServiceType;
|
|
212
|
+
}
|
|
186
213
|
/**
|
|
187
214
|
* 注文アイテム
|
|
188
215
|
* {@link https://schema.org/OrderItem}
|
|
189
216
|
*/
|
|
190
217
|
export interface IOrderedItem {
|
|
191
218
|
typeOf: 'OrderItem';
|
|
192
|
-
orderedItem: IProduct |
|
|
219
|
+
orderedItem: IProduct | IEventServiceAsOrderedItem;
|
|
193
220
|
}
|
|
194
221
|
/**
|
|
195
222
|
* 注文インターフェース
|
|
@@ -200,7 +227,7 @@ export interface IOrder extends ISimpleOrder {
|
|
|
200
227
|
* Offer
|
|
201
228
|
* The offers included in the order.Also accepts an array of objects.
|
|
202
229
|
*/
|
|
203
|
-
acceptedOffers
|
|
230
|
+
acceptedOffers?: IAcceptedOffer<IItemOffered>[];
|
|
204
231
|
/**
|
|
205
232
|
* An entity that arranges for an exchange between a buyer and a seller.
|
|
206
233
|
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|