@chevre/factory 10.3.0-alpha.8 → 10.3.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,6 +18,8 @@ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'ag
18
18
  object: IObject;
19
19
  agent: IAgent;
20
20
  sameAs: ISameAs;
21
+ purpose?: never;
22
+ recipient?: never;
21
23
  }
22
24
  /**
23
25
  * 請求承認アクション
@@ -10,6 +10,7 @@ export interface IInstrument {
10
10
  }
11
11
  export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'recipient' | 'result' | 'typeOf'> {
12
12
  instrument?: IInstrument;
13
+ purpose?: never;
13
14
  }
14
15
  /**
15
16
  * チケットオブジェクト承認アクション
@@ -1,11 +1,10 @@
1
- import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../../action';
1
+ import { IParticipantAsProject } from '../../../../action';
2
2
  import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
3
3
  import { ISimpleOrder } from '../../../../order';
4
4
  import { IRecipe, ISendMultipleArgs, ISendMultipleResult } from '../../../../recipe/sendEmailMessage';
5
5
  import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../send';
6
6
  export { IRecipe, ISendMultipleArgs, ISendMultipleResult };
7
7
  export type IAgent = IParticipantAsProject;
8
- export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
9
8
  export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'sender' | 'text' | 'toRecipient' | 'typeOf'>;
10
9
  export type IOptimizedObject = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
11
10
  identifier: string;
@@ -21,10 +20,10 @@ export interface IResult {
21
20
  statusMessage?: string;
22
21
  }
23
22
  export type IPurpose = ISimpleOrder;
24
- export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'error' | 'agent'> {
23
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'purpose' | 'project' | 'object' | 'error'> {
25
24
  agent: IAgent;
26
25
  purpose: IPurpose;
27
- recipient: IRecipient;
26
+ recipient?: never;
28
27
  }
29
28
  /**
30
29
  * Eメール送信アクション
@@ -1,9 +1,8 @@
1
- import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
1
+ import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
2
2
  import { ISimpleOrder } from '../../../order';
3
3
  import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
4
4
  import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../send';
5
5
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
6
- export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
7
6
  export type IObject = ISimpleOrder & {
8
7
  /**
9
8
  * 配送対象オファー(2024-01-11~)
@@ -17,9 +16,9 @@ export type IObject = ISimpleOrder & {
17
16
  * 注文配送結果としての所有権
18
17
  */
19
18
  export type IResult = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier'>[];
20
- export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
19
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | 'project' | 'object' | 'error'> {
21
20
  agent: IAgent;
22
- recipient: IRecipient;
21
+ recipient?: never;
23
22
  }
24
23
  /**
25
24
  * 注文配送アクション
@@ -8,7 +8,7 @@ export type IPotentialActions = any;
8
8
  export type IPurpose = any;
9
9
  export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.SendAction, TObject, TResult> {
10
10
  agent: IAgent;
11
- recipient: IParticipant;
11
+ recipient?: IParticipant;
12
12
  potentialActions?: IPotentialActions;
13
13
  purpose?: IPurpose;
14
14
  }
@@ -96,6 +96,11 @@ export interface IDynamicAttributes {
96
96
  actionStatus: ActionStatusType;
97
97
  startDate: Date;
98
98
  endDate?: Date;
99
+ /**
100
+ * ドキュメント期限切れ日時
101
+ * support(2026-08-16~)
102
+ */
103
+ expires?: Date;
99
104
  }
100
105
  /**
101
106
  * アクション
@@ -18,6 +18,6 @@ export declare enum ActionType {
18
18
  DeleteAction = "DeleteAction",
19
19
  ReplaceAction = "ReplaceAction",
20
20
  UpdateAction = "UpdateAction",
21
- InformAction = "InformAction",
21
+ InformAction = "InformAction",// actions.informで管理
22
22
  UseAction = "UseAction"
23
23
  }
@@ -24,7 +24,6 @@ var ActionType;
24
24
  ActionType["DeleteAction"] = "DeleteAction";
25
25
  ActionType["ReplaceAction"] = "ReplaceAction";
26
26
  ActionType["UpdateAction"] = "UpdateAction";
27
- // 以下actions.??で管理
28
27
  ActionType["InformAction"] = "InformAction";
29
28
  ActionType["UseAction"] = "UseAction";
30
29
  })(ActionType || (exports.ActionType = ActionType = {}));
@@ -3,7 +3,6 @@ export * as cognito from './cognito';
3
3
  import * as ActionFactory from './action';
4
4
  import * as AcceptCOAOfferActionFactory from './action/accept/coaOffer';
5
5
  import * as AcceptPayActionFactory from './action/accept/pay';
6
- import * as AuthorizeActionFactory from './action/authorize';
7
6
  import * as AuthorizeInvoiceActionFactory from './action/authorize/invoice';
8
7
  import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
9
8
  import * as AuthorizeAnyPaymentActionFactory from './action/authorize/paymentMethod/any';
@@ -11,7 +10,6 @@ import * as AuthorizeTicketedObjectActionFactory from './action/authorize/ticket
11
10
  import * as CancelCOAReserveActionFactory from './action/cancel/coaReserve';
12
11
  import * as CancelReservationActionFactory from './action/cancel/reservation';
13
12
  import * as CheckMovieTicketActionFactory from './action/check/paymentMethod/movieTicket';
14
- import * as CheckThingActionFactory from './action/check/thing';
15
13
  import * as UseReservationActionFactory from './action/consume/use/reservation';
16
14
  import * as CreateActionFactory from './action/create';
17
15
  import * as ConfirmPayActionFactory from './action/interact/confirm/pay';
@@ -206,9 +204,6 @@ export declare namespace action {
206
204
  export import IParticipantAsSeller = ActionFactory.IParticipantAsSeller;
207
205
  export import IParticipantAsProject = ActionFactory.IParticipantAsProject;
208
206
  export import IParticipantAsCustomer = ActionFactory.IParticipantAsCustomer;
209
- export import IParticipant = ActionFactory.IParticipant;
210
- export import IPurpose = ActionFactory.IPurpose;
211
- export import IRecipient = ActionFactory.IRecipient;
212
207
  export import ISortOrder = ActionFactory.ISortOrder;
213
208
  export import ISearchConditions = ActionFactory.ISearchConditions;
214
209
  export import ISameAs = ActionFactory.ISameAs;
@@ -217,8 +212,6 @@ export declare namespace action {
217
212
  export import pay = AcceptPayActionFactory;
218
213
  }
219
214
  namespace authorize {
220
- export import IAction = AuthorizeActionFactory.IAction;
221
- export import IAttributes = AuthorizeActionFactory.IAttributes;
222
215
  namespace paymentMethod {
223
216
  export import any = AuthorizeAnyPaymentActionFactory;
224
217
  }
@@ -236,7 +229,6 @@ export declare namespace action {
236
229
  namespace paymentMethod {
237
230
  export import movieTicket = CheckMovieTicketActionFactory;
238
231
  }
239
- export import thing = CheckThingActionFactory;
240
232
  }
241
233
  export import create = CreateActionFactory;
242
234
  namespace interact {
@@ -13,7 +13,6 @@ const AuthorizeTicketedObjectActionFactory = require("./action/authorize/tickete
13
13
  const CancelCOAReserveActionFactory = require("./action/cancel/coaReserve");
14
14
  const CancelReservationActionFactory = require("./action/cancel/reservation");
15
15
  const CheckMovieTicketActionFactory = require("./action/check/paymentMethod/movieTicket");
16
- const CheckThingActionFactory = require("./action/check/thing");
17
16
  const UseReservationActionFactory = require("./action/consume/use/reservation");
18
17
  const CreateActionFactory = require("./action/create");
19
18
  const ConfirmPayActionFactory = require("./action/interact/confirm/pay");
@@ -70,7 +69,6 @@ const MovieTicketTypeFactory = require("./movieTicketType");
70
69
  exports.offer = require("./offer");
71
70
  exports.aggregateOffer = require("./offer/aggregateOffer");
72
71
  exports.eventOffer = require("./offer/eventOffer");
73
- // export * as productOffer from './offer/productOffer'; // discontinue(2026-04-20~)
74
72
  const OfferCatalogFactory = require("./offerCatalog");
75
73
  const OfferItemConditionFactory = require("./offerItemCondition");
76
74
  const offerType_1 = require("./offerType");
@@ -216,8 +214,6 @@ var action;
216
214
  (function (paymentMethod) {
217
215
  paymentMethod.movieTicket = CheckMovieTicketActionFactory;
218
216
  })(paymentMethod = check.paymentMethod || (check.paymentMethod = {}));
219
- check.thing = CheckThingActionFactory;
220
- // export import token = CheckTokenActionFactory; // discontinue(2025-09-22~)
221
217
  })(check = action.check || (action.check = {}));
222
218
  action.create = CreateActionFactory;
223
219
  let interact;
@@ -1,8 +1,15 @@
1
- import { IAttributes as ICheckActionAttributes } from '../action/check/thing';
2
1
  import { IExtendId } from '../autoGenerated';
3
2
  import { ITaskAttributes } from '../task';
4
3
  import { TaskName } from '../taskName';
5
- export type IData = Pick<ICheckActionAttributes, 'object' | 'typeOf'>;
4
+ import { OrderType } from '../order';
5
+ export interface IObjectAsOrder {
6
+ orderNumber: string;
7
+ typeOf: OrderType.Order;
8
+ }
9
+ export type IObject = IObjectAsOrder;
10
+ export interface IData {
11
+ object: IObject;
12
+ }
6
13
  export interface IAttributes extends ITaskAttributes {
7
14
  name: TaskName.CheckResource;
8
15
  data: IData;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.3.0-alpha.8",
3
+ "version": "10.3.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [
@@ -1,27 +0,0 @@
1
- import { IParticipantAsWebApplication, IParticipantAsPerson, IParticipantAsProject, ISameAs, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
2
- import { ActionType } from '../../actionType';
3
- import { EventType } from '../../eventType';
4
- import { OrderType } from '../../order';
5
- export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsProject;
6
- export interface IObjectAsEvent {
7
- id: string;
8
- typeOf: EventType.ScreeningEvent;
9
- }
10
- export interface IObjectAsOrder {
11
- orderNumber: string;
12
- typeOf: OrderType.Order;
13
- }
14
- export type IObject = IObjectAsEvent | IObjectAsOrder;
15
- export interface IResult {
16
- }
17
- export type IError = any;
18
- export interface IAttributes extends Pick<IBaseAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'result' | 'sameAs' | 'typeOf'> {
19
- purpose?: never;
20
- agent: IAgent;
21
- object: IObject;
22
- sameAs: ISameAs;
23
- }
24
- /**
25
- * 汎用リソース検証アクション
26
- */
27
- export type IAction = IBaseAction<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });