@chevre/factory 10.3.0-alpha.9 → 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';
@@ -205,9 +204,6 @@ export declare namespace action {
205
204
  export import IParticipantAsSeller = ActionFactory.IParticipantAsSeller;
206
205
  export import IParticipantAsProject = ActionFactory.IParticipantAsProject;
207
206
  export import IParticipantAsCustomer = ActionFactory.IParticipantAsCustomer;
208
- export import IParticipant = ActionFactory.IParticipant;
209
- export import IPurpose = ActionFactory.IPurpose;
210
- export import IRecipient = ActionFactory.IRecipient;
211
207
  export import ISortOrder = ActionFactory.ISortOrder;
212
208
  export import ISearchConditions = ActionFactory.ISearchConditions;
213
209
  export import ISameAs = ActionFactory.ISameAs;
@@ -216,8 +212,6 @@ export declare namespace action {
216
212
  export import pay = AcceptPayActionFactory;
217
213
  }
218
214
  namespace authorize {
219
- export import IAction = AuthorizeActionFactory.IAction;
220
- export import IAttributes = AuthorizeActionFactory.IAttributes;
221
215
  namespace paymentMethod {
222
216
  export import any = AuthorizeAnyPaymentActionFactory;
223
217
  }
@@ -69,7 +69,6 @@ const MovieTicketTypeFactory = require("./movieTicketType");
69
69
  exports.offer = require("./offer");
70
70
  exports.aggregateOffer = require("./offer/aggregateOffer");
71
71
  exports.eventOffer = require("./offer/eventOffer");
72
- // export * as productOffer from './offer/productOffer'; // discontinue(2026-04-20~)
73
72
  const OfferCatalogFactory = require("./offerCatalog");
74
73
  const OfferItemConditionFactory = require("./offerItemCondition");
75
74
  const offerType_1 = require("./offerType");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.3.0-alpha.9",
3
+ "version": "10.3.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [