@chevre/factory 4.197.0-alpha.1 → 4.198.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 interface IObject extends OrderFactory.IOrder {
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.IOrder;
12
+ export declare type IObject = OrderFactory.ISimpleOrder;
13
13
  /**
14
14
  * 注文配送結果としての所有権
15
15
  */
@@ -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 { AlreadyInUseError as AlreadyInUse, ArgumentError as Argument, ArgumentNullError as ArgumentNull, ForbiddenError as Forbidden, GatewayTimeoutError as GatewayTimeout, NotFoundError as NotFound, NotImplementedError as NotImplemented, RateLimitExceededError as RateLimitExceeded, ServiceUnavailableError as ServiceUnavailable, ChevreError as Chevre, UnauthorizedError as Unauthorized };
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 };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Unauthorized = exports.Chevre = exports.ServiceUnavailable = exports.RateLimitExceeded = exports.NotImplemented = exports.NotFound = exports.GatewayTimeout = exports.Forbidden = exports.ArgumentNull = exports.Argument = exports.AlreadyInUse = void 0;
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
  */
@@ -205,7 +205,7 @@ export interface IEventServiceAsOrderedItem {
205
205
  project: IProject;
206
206
  typeOf: ProductType.EventService;
207
207
  serviceOutput: {
208
- typeOf: ReservationType.EventReservation;
208
+ typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
209
209
  reservationFor: IReservationFor4OrderedItem;
210
210
  };
211
211
  serviceType?: IServiceType;
@@ -227,7 +227,7 @@ export interface IOrder extends ISimpleOrder {
227
227
  * Offer
228
228
  * The offers included in the order.Also accepts an array of objects.
229
229
  */
230
- acceptedOffers: IAcceptedOffer<IItemOffered>[];
230
+ acceptedOffers?: IAcceptedOffer<IItemOffered>[];
231
231
  /**
232
232
  * An entity that arranges for an exchange between a buyer and a seller.
233
233
  * In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
@@ -1,8 +1,16 @@
1
- import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
1
+ import { IPotentialActions as IOrderActionPotentialActions } from '../action/trade/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
+ import { IProject } from '../project';
3
4
  import * as TaskFactory from '../task';
4
5
  import { TaskName } from '../taskName';
5
- export declare type IData = IOrderActionAttributes;
6
+ export interface IData {
7
+ project: IProject;
8
+ object: {
9
+ confirmationNumber: string;
10
+ orderNumber: string;
11
+ };
12
+ potentialActions?: IOrderActionPotentialActions;
13
+ }
6
14
  export interface IAttributes extends TaskFactory.IAttributes {
7
15
  name: TaskName.PlaceOrder;
8
16
  data: IData;
@@ -1,8 +1,13 @@
1
- import { IAttributes as ISendOrderActionAttributes } from '../action/transfer/send/order';
1
+ import * as SendOrderActionFactory from '../action/transfer/send/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
+ import { IProject } from '../project';
3
4
  import * as TaskFactory from '../task';
4
5
  import { TaskName } from '../taskName';
5
- export declare type IData = ISendOrderActionAttributes;
6
+ export interface IData {
7
+ project: IProject;
8
+ object: SendOrderActionFactory.IObject;
9
+ potentialActions?: SendOrderActionFactory.IPotentialActions;
10
+ }
6
11
  export interface IAttributes extends TaskFactory.IAttributes {
7
12
  name: TaskName.SendOrder;
8
13
  data: IData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.197.0-alpha.1",
3
+ "version": "4.198.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",