@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.
- package/lib/chevre/action/authorize/invoice.d.ts +2 -0
- package/lib/chevre/action/authorize/ticketedObject.d.ts +1 -0
- package/lib/chevre/action/transfer/send/message/email.d.ts +3 -4
- package/lib/chevre/action/transfer/send/order.d.ts +3 -4
- package/lib/chevre/action/transfer/send.d.ts +1 -1
- package/lib/chevre/action.d.ts +5 -0
- package/lib/chevre/actionType.d.ts +1 -1
- package/lib/chevre/actionType.js +0 -1
- package/lib/chevre/index.d.ts +0 -6
- package/lib/chevre/index.js +0 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
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' | '
|
|
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
|
|
26
|
+
recipient?: never;
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* Eメール送信アクション
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
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' | '
|
|
19
|
+
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | 'project' | 'object' | 'error'> {
|
|
21
20
|
agent: IAgent;
|
|
22
|
-
recipient
|
|
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
|
|
11
|
+
recipient?: IParticipant;
|
|
12
12
|
potentialActions?: IPotentialActions;
|
|
13
13
|
purpose?: IPurpose;
|
|
14
14
|
}
|
package/lib/chevre/action.d.ts
CHANGED
package/lib/chevre/actionType.js
CHANGED
|
@@ -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 = {}));
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/chevre/index.js
CHANGED
|
@@ -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");
|