@chevre/factory 9.2.0 → 9.4.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.
@@ -18,7 +18,6 @@ import { IProductAsNotification } from '../../notification/product';
18
18
  import { IRefundAction4inform } from '../../notification/refundAction';
19
19
  import { IReservation4inform } from '../../notification/reservation';
20
20
  import { ITask4inform } from '../../notification/task';
21
- import { IPlaceOrderAsNotification } from '../../notification/transaction';
22
21
  export type IAgent = IParticipantAsProject;
23
22
  export type IRecipientAsWebApplicationDeprecated = Pick<IRecipientAsAnonymousWebApplication, 'id' | 'name' | 'typeOf'> & {
24
23
  url?: string;
@@ -37,7 +36,7 @@ export type IRecipient = Pick<IParticipantAsWebApplication, 'name' | 'typeOf'> &
37
36
  /**
38
37
  * 取引、タスク以外の通知対象リソース
39
38
  */
40
- export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
39
+ export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
41
40
  export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform | ITask4inform;
42
41
  export interface IPayTransactionAsPurpose {
43
42
  id: string;
@@ -14,7 +14,6 @@ import { IProduct } from '../../product';
14
14
  import { ISeller } from '../../seller';
15
15
  import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
16
16
  import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
17
- import { TransactionType } from '../../transactionType';
18
17
  export type IAgent = IParticipant;
19
18
  export type IRecipient = IParticipant;
20
19
  export type IObjectAsPerson = Pick<IPerson, 'id' | 'typeOf'> & {
@@ -41,28 +40,23 @@ export type IObjectAsEventSeries = Pick<IEventSeries, 'id' | 'typeOf'>;
41
40
  * 取引オブジェクト特定方法
42
41
  */
43
42
  export declare enum ObjectAsTransactionSpecifyingMethod {
44
- Id = "Id",
45
- AgentId = "AgentId"
43
+ Id = "Id"
46
44
  }
47
- export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
45
+ export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'id' | 'typeOf'> & {
48
46
  object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
49
47
  specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
48
+ startDate?: never;
49
+ endDate?: never;
50
+ project?: never;
50
51
  };
51
- export type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
52
+ export type IObjectAsReturnOrder = Pick<IReturnOrder, 'id' | 'typeOf'> & {
52
53
  object: Pick<IReturnOrderObject, 'order'>;
53
54
  specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
55
+ startDate?: never;
56
+ endDate?: never;
57
+ project?: never;
54
58
  };
55
- export interface IObjectAsTransactionByAgentId {
56
- specifyingMethod: ObjectAsTransactionSpecifyingMethod.AgentId;
57
- project: {
58
- id: string;
59
- };
60
- typeOf: TransactionType;
61
- agent: {
62
- id: string;
63
- };
64
- }
65
- export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
59
+ export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsPlaceOrder | IObjectAsReturnOrder;
66
60
  export interface IResultAsPerson {
67
61
  existingPeople?: any;
68
62
  }
@@ -7,5 +7,5 @@ exports.ObjectAsTransactionSpecifyingMethod = void 0;
7
7
  var ObjectAsTransactionSpecifyingMethod;
8
8
  (function (ObjectAsTransactionSpecifyingMethod) {
9
9
  ObjectAsTransactionSpecifyingMethod["Id"] = "Id";
10
- ObjectAsTransactionSpecifyingMethod["AgentId"] = "AgentId";
10
+ // AgentId = 'AgentId' // discontinue(2026-07-01~)
11
11
  })(ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = ObjectAsTransactionSpecifyingMethod = {}));
@@ -137,7 +137,6 @@ import * as ProductNotification from './notification/product';
137
137
  import * as RefundActionNotification from './notification/refundAction';
138
138
  import * as ReservationNotification from './notification/reservation';
139
139
  import * as TaskNotification from './notification/task';
140
- import * as TransactionNotification from './notification/transaction';
141
140
  import * as TaskFactory from './task';
142
141
  import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
143
142
  import * as AggregateOffersTaskFactory from './task/aggregateOffers';
@@ -355,7 +354,6 @@ export declare namespace notification {
355
354
  export import place = PlaceNotification;
356
355
  export import product = ProductNotification;
357
356
  export import task = TaskNotification;
358
- export import transaction = TransactionNotification;
359
357
  }
360
358
  export import offerCatalog = OfferCatalogFactory;
361
359
  export import offerItemCondition = OfferItemConditionFactory;
@@ -137,7 +137,6 @@ const ProductNotification = require("./notification/product");
137
137
  const RefundActionNotification = require("./notification/refundAction");
138
138
  const ReservationNotification = require("./notification/reservation");
139
139
  const TaskNotification = require("./notification/task");
140
- const TransactionNotification = require("./notification/transaction");
141
140
  const AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
142
141
  const AggregateOffersTaskFactory = require("./task/aggregateOffers");
143
142
  const AggregateOnSystemTaskFactory = require("./task/aggregateOnSystem");
@@ -349,7 +348,6 @@ var notification;
349
348
  notification.place = PlaceNotification;
350
349
  notification.product = ProductNotification;
351
350
  notification.task = TaskNotification;
352
- notification.transaction = TransactionNotification;
353
351
  })(notification || (exports.notification = notification = {}));
354
352
  exports.offerCatalog = OfferCatalogFactory;
355
353
  exports.offerItemCondition = OfferItemConditionFactory;
@@ -1,9 +1,9 @@
1
- import { IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId } from '../action/update/delete';
1
+ import { IObjectAsPlaceOrder, IObjectAsReturnOrder } from '../action/update/delete';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { ITaskAttributes } from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export { IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId };
6
- export type IObject = IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
5
+ export { IObjectAsPlaceOrder, IObjectAsReturnOrder, };
6
+ export type IObject = IObjectAsPlaceOrder | IObjectAsReturnOrder;
7
7
  export interface IData {
8
8
  object: IObject;
9
9
  }
@@ -16,7 +16,6 @@ import { IProductAsNotification } from '../notification/product';
16
16
  import { IRefundAction4inform } from '../notification/refundAction';
17
17
  import { IReservation4inform } from '../notification/reservation';
18
18
  import { ITask4inform } from '../notification/task';
19
- import { IPlaceOrderAsNotification } from '../notification/transaction';
20
19
  import { ITaskAttributes } from '../task';
21
20
  import { TaskName } from '../taskName';
22
21
  export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 'typeOf'> & {
@@ -25,7 +24,7 @@ export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 't
25
24
  /**
26
25
  * define strictly(2025-02-20~)
27
26
  */
28
- export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
27
+ export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
29
28
  export type IInformAnyResourceAction = Pick<IInformActionAttributes<IAnyResourceAsObject>, 'object' | 'about'> & {
30
29
  /**
31
30
  * 通知識別子(2024-10-24~)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [
@@ -1,2 +0,0 @@
1
- import { ITransaction } from '../transaction/placeOrder';
2
- export type IPlaceOrderAsNotification = Pick<ITransaction, 'endDate' | 'id' | 'project' | 'seller' | 'startDate' | 'status' | 'typeOf'>;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // id: string;
4
- // typeOf: transaction.typeOf,
5
- // project: transaction.project,
6
- // seller: transaction.seller,
7
- // startDate: transaction.startDate,
8
- // status: transaction.status,
9
- // ...(transaction.endDate !== undefined) ? { endDate: transaction.endDate } : undefined
10
- // }