@chevre/factory 4.393.0-alpha.7 → 4.393.0-alpha.8
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/action/interact/inform.d.ts +4 -2
- package/lib/action.d.ts +2 -0
- package/lib/entryPoint.d.ts +18 -0
- package/lib/entryPoint.js +2 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -2
- package/lib/potentialAction.d.ts +2 -16
- package/lib/product.d.ts +0 -1
- package/lib/service/paymentService.d.ts +1 -1
- package/lib/serviceChannel.d.ts +0 -3
- package/lib/task/triggerWebhook.d.ts +15 -3
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
4
|
import { IOrder } from '../../order';
|
|
5
5
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
6
|
-
export type IRecipient = ActionFactory.IParticipant
|
|
6
|
+
export type IRecipient = ActionFactory.IParticipant & {
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
7
9
|
export type IObject = any;
|
|
8
10
|
export interface IPayTransactionAsPurpose {
|
|
9
11
|
id: string;
|
|
@@ -20,7 +22,7 @@ export interface IResult {
|
|
|
20
22
|
statusCode?: number;
|
|
21
23
|
useFetchAPI?: boolean;
|
|
22
24
|
}
|
|
23
|
-
export interface IAttributes<TObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf'> {
|
|
25
|
+
export interface IAttributes<TObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf' | 'target'> {
|
|
24
26
|
agent: IAgent;
|
|
25
27
|
recipient: IRecipient;
|
|
26
28
|
purpose?: IPurpose;
|
package/lib/action.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ActionType } from './actionType';
|
|
|
3
3
|
import { AssetTransactionType } from './assetTransactionType';
|
|
4
4
|
import { IExtendId } from './autoGenerated';
|
|
5
5
|
import { CreativeWorkType } from './creativeWorkType';
|
|
6
|
+
import { IEntryPoint } from './entryPoint';
|
|
6
7
|
import { OrganizationType } from './organizationType';
|
|
7
8
|
import { IPersonAttributes } from './person';
|
|
8
9
|
import { IProject } from './project';
|
|
@@ -84,6 +85,7 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
84
85
|
targetCollection?: any;
|
|
85
86
|
cancelAction?: any;
|
|
86
87
|
about?: any;
|
|
88
|
+
target?: IEntryPoint;
|
|
87
89
|
}
|
|
88
90
|
/**
|
|
89
91
|
* アクション動的属性
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Application } from './encodingFormat';
|
|
2
|
+
export type IHttpMethod = 'POST';
|
|
3
|
+
export interface IEntryPoint {
|
|
4
|
+
typeOf: 'EntryPoint';
|
|
5
|
+
/**
|
|
6
|
+
* The supported encoding type(s) for an EntryPoint request.
|
|
7
|
+
*/
|
|
8
|
+
encodingType: Application.json;
|
|
9
|
+
/**
|
|
10
|
+
* An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint.
|
|
11
|
+
* Values are capitalized strings as used in HTTP.
|
|
12
|
+
*/
|
|
13
|
+
httpMethod: IHttpMethod;
|
|
14
|
+
/**
|
|
15
|
+
* An url template (RFC6570) that will be used to construct the target of the execution of the action.
|
|
16
|
+
*/
|
|
17
|
+
urlTemplate: string;
|
|
18
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ import * as WebApplicationFactory from './creativeWork/softwareApplication/webAp
|
|
|
64
64
|
import { CreativeWorkType } from './creativeWorkType';
|
|
65
65
|
import * as CustomerFactory from './customer';
|
|
66
66
|
import * as EncodingFormat from './encodingFormat';
|
|
67
|
+
import * as entryPoint from './entryPoint';
|
|
67
68
|
import * as AnyEventFactory from './event/anyEvent';
|
|
68
69
|
import * as ScreeningEventFactory from './event/screeningEvent';
|
|
69
70
|
import * as ScreeningEventSeriesFactory from './event/screeningEventSeries';
|
|
@@ -349,6 +350,7 @@ export declare namespace event {
|
|
|
349
350
|
export import screeningEventSeries = ScreeningEventSeriesFactory;
|
|
350
351
|
}
|
|
351
352
|
export import encodingFormat = EncodingFormat;
|
|
353
|
+
export { entryPoint };
|
|
352
354
|
export import eventStatusType = EventStatusType;
|
|
353
355
|
export import eventType = EventType;
|
|
354
356
|
export import iam = IAMFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = void 0;
|
|
3
|
+
exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -61,6 +61,8 @@ var WebApplicationFactory = require("./creativeWork/softwareApplication/webAppli
|
|
|
61
61
|
var creativeWorkType_1 = require("./creativeWorkType");
|
|
62
62
|
var CustomerFactory = require("./customer");
|
|
63
63
|
var EncodingFormat = require("./encodingFormat");
|
|
64
|
+
var entryPoint = require("./entryPoint");
|
|
65
|
+
exports.entryPoint = entryPoint;
|
|
64
66
|
var AnyEventFactory = require("./event/anyEvent");
|
|
65
67
|
var ScreeningEventFactory = require("./event/screeningEvent");
|
|
66
68
|
var ScreeningEventSeriesFactory = require("./event/screeningEventSeries");
|
package/lib/potentialAction.d.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
|
+
import { IEntryPoint } from './entryPoint';
|
|
2
3
|
import { IProject } from './project';
|
|
3
4
|
import { SortType } from './sortType';
|
|
4
5
|
export type IHttpMethod = 'POST';
|
|
5
|
-
export
|
|
6
|
-
typeOf: 'EntryPoint';
|
|
7
|
-
/**
|
|
8
|
-
* The supported encoding type(s) for an EntryPoint request.
|
|
9
|
-
*/
|
|
10
|
-
encodingType: string;
|
|
11
|
-
/**
|
|
12
|
-
* An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint.
|
|
13
|
-
* Values are capitalized strings as used in HTTP.
|
|
14
|
-
*/
|
|
15
|
-
httpMethod: IHttpMethod;
|
|
16
|
-
/**
|
|
17
|
-
* An url template (RFC6570) that will be used to construct the target of the execution of the action.
|
|
18
|
-
*/
|
|
19
|
-
urlTemplate: string;
|
|
20
|
-
}
|
|
6
|
+
export { IEntryPoint };
|
|
21
7
|
export interface IPotentialInformAction {
|
|
22
8
|
id: string;
|
|
23
9
|
identifier: string;
|
package/lib/product.d.ts
CHANGED
|
@@ -80,7 +80,6 @@ export interface IAvailableChannel {
|
|
|
80
80
|
typeOf: 'ServiceChannel';
|
|
81
81
|
serviceUrl?: string;
|
|
82
82
|
credentials?: ICredentials;
|
|
83
|
-
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
84
83
|
}
|
|
85
84
|
export type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
86
85
|
export type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
|
|
@@ -66,7 +66,7 @@ export interface IProvider extends Pick<ISeller, 'typeOf'> {
|
|
|
66
66
|
*/
|
|
67
67
|
credentials?: IProviderCredentials;
|
|
68
68
|
}
|
|
69
|
-
export type IAvailableChannel = Pick<IProductAvailableChannel, '
|
|
69
|
+
export type IAvailableChannel = Pick<IProductAvailableChannel, 'typeOf'> & {
|
|
70
70
|
serviceUrl: string;
|
|
71
71
|
credentials?: never;
|
|
72
72
|
totalPaymentDue?: {
|
package/lib/serviceChannel.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export interface IServiceChannelCreditCard {
|
|
|
20
20
|
};
|
|
21
21
|
serviceUrl: string;
|
|
22
22
|
typeOf: 'ServiceChannel';
|
|
23
|
-
verified: boolean;
|
|
24
23
|
}
|
|
25
24
|
export interface IServiceChannelMovieTicket {
|
|
26
25
|
credentials: ICredentialsMovieTicket;
|
|
@@ -31,7 +30,6 @@ export interface IServiceChannelMovieTicket {
|
|
|
31
30
|
};
|
|
32
31
|
serviceUrl: string;
|
|
33
32
|
typeOf: 'ServiceChannel';
|
|
34
|
-
verified: boolean;
|
|
35
33
|
}
|
|
36
34
|
export type IServiceChannel = IServiceChannelCreditCard | IServiceChannelMovieTicket;
|
|
37
35
|
export interface ISortOrder {
|
|
@@ -61,5 +59,4 @@ export interface ISearchConditions {
|
|
|
61
59
|
$eq?: string;
|
|
62
60
|
};
|
|
63
61
|
};
|
|
64
|
-
verified?: boolean;
|
|
65
62
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IAttributes as IInformActionAttributes, IObject } from '../action/interact/inform';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { IEntryPoint } from '../entryPoint';
|
|
3
4
|
import * as TaskFactory from '../task';
|
|
4
5
|
import { TaskName } from '../taskName';
|
|
5
6
|
export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'recipient' | 'about'> & {
|
|
@@ -7,17 +8,28 @@ export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'obj
|
|
|
7
8
|
* 通知識別子(2024-10-24~)
|
|
8
9
|
*/
|
|
9
10
|
identifier?: string;
|
|
11
|
+
target: IEntryPoint;
|
|
12
|
+
id?: never;
|
|
13
|
+
typeOf?: never;
|
|
14
|
+
};
|
|
15
|
+
export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'recipient' | 'about'> & {
|
|
16
|
+
/**
|
|
17
|
+
* 通知識別子(2024-10-24~)
|
|
18
|
+
*/
|
|
19
|
+
identifier?: string;
|
|
20
|
+
target?: never;
|
|
10
21
|
/**
|
|
11
22
|
* potentialAction id
|
|
12
23
|
*/
|
|
13
|
-
id
|
|
24
|
+
id: string;
|
|
25
|
+
typeOf: IInformActionAttributes<IObject>['typeOf'];
|
|
14
26
|
};
|
|
15
|
-
export type IData = IPotentialInformAction;
|
|
27
|
+
export type IData = IPotentialInformAction | IPotentialInformActionWithId;
|
|
16
28
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
17
29
|
name: TaskName.TriggerWebhook;
|
|
18
30
|
data: IData;
|
|
19
31
|
}
|
|
20
32
|
/**
|
|
21
|
-
*
|
|
33
|
+
* trigger webhook task
|
|
22
34
|
*/
|
|
23
35
|
export type ITask = IExtendId<IAttributes>;
|