@chevre/factory 4.393.0-alpha.1 → 4.393.0-alpha.11

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.
@@ -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;
@@ -11,7 +11,7 @@ import { IPropertyValue } from '../../propertyValue';
11
11
  import { IAlterTranResult, IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
12
12
  import { IRecipe as IPayMovieTicketRecipe, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/payMovieTicket';
13
13
  import { PaymentServiceType } from '../../service/paymentService';
14
- import { IAttributes as IInformActionAttributes } from '../interact/inform';
14
+ import { IPayTransactionAsPurpose, IRefundTransactionAsPurpose } from '../interact/inform';
15
15
  export { IAlterTranResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IPayCreditCardRecipe, IPayMovieTicketRecipe };
16
16
  export import IAgent = ActionFactory.IParticipantAsProject;
17
17
  export import IRecipient = ActionFactory.IParticipantAsSeller;
@@ -92,7 +92,14 @@ export interface IPaymentService {
92
92
  serviceOutput?: IPaymentServiceOutput;
93
93
  }
94
94
  export type IObject = [IPaymentService];
95
- export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
95
+ export interface IInformPayment {
96
+ purpose: IPayTransactionAsPurpose | IRefundTransactionAsPurpose;
97
+ recipient: Pick<ActionFactory.IParticipantAsSeller, 'id' | 'name' | 'typeOf'> | Pick<ActionFactory.IParticipantAsPerson, 'id' | 'name' | 'typeOf'>;
98
+ /**
99
+ * potentialAction id
100
+ */
101
+ id: string;
102
+ }
96
103
  export interface IPotentialActions {
97
104
  add2report: boolean;
98
105
  informPayment?: IInformPayment[];
@@ -3,7 +3,7 @@ import { ActionType } from '../../actionType';
3
3
  import { IAlterTranResult, IRecipe as IRefundCreditCardRecipe } from '../../recipe/refundCreditCard';
4
4
  import { IRecipe as IRefundMovieTicketRecipe, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/refundMovieTicket';
5
5
  import { TransactionType } from '../../transactionType';
6
- import { IAttributes as IInformActionAttributes } from '../interact/inform';
6
+ import { IRefundTransactionAsPurpose } from '../interact/inform';
7
7
  import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
8
8
  export { IAlterTranResult, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
9
9
  export type IAgent = ActionFactory.IParticipantAsSeller;
@@ -29,9 +29,15 @@ export interface IResult {
29
29
  transactionNumber: string;
30
30
  };
31
31
  }
32
- export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
32
+ export interface IInformPayment {
33
+ purpose: IRefundTransactionAsPurpose;
34
+ recipient: Pick<ActionFactory.IParticipantAsSeller, 'id' | 'name' | 'typeOf'> | Pick<ActionFactory.IParticipantAsPerson, 'id' | 'name' | 'typeOf'>;
35
+ /**
36
+ * potentialAction id
37
+ */
38
+ id: string;
39
+ }
33
40
  export interface IPotentialActions {
34
- add2report: boolean;
35
41
  informPayment?: IInformPayment[];
36
42
  }
37
43
  export interface IPurposeAsPlaceOrder {
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
  * アクション動的属性
@@ -5,9 +5,8 @@ import { IExtendId } from '../autoGenerated';
5
5
  import { IMonetaryAmount } from '../monetaryAmount';
6
6
  import { ITotalPaymentDue } from '../order';
7
7
  import { ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
8
- import { IOnPaymentStatusChanged } from '../product';
9
8
  import { IPropertyValue } from '../propertyValue';
10
- import { PaymentServiceType } from '../service/paymentService';
9
+ import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
11
10
  export import IAgent = AssetTransactionFactory.IAgent;
12
11
  export type IRecipient = IPayRecipient;
13
12
  /**
@@ -88,7 +87,6 @@ export interface IObject {
88
87
  */
89
88
  id: string;
90
89
  paymentMethod: IPaymentMethod;
91
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
92
90
  pendingTransaction?: IPendingTransaction;
93
91
  accountsReceivablesByServiceType?: never;
94
92
  /**
@@ -108,6 +106,7 @@ export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
108
106
  export interface IObjectWithoutDetail extends Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'> {
109
107
  paymentMethod: IPaymentMethodWithoutDetail;
110
108
  }
109
+ export type IPotentialAction = IPotentialInformAction;
111
110
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
112
111
  location?: ILocation;
113
112
  recipient: IRecipient;
@@ -116,6 +115,7 @@ export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<Ass
116
115
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
117
116
  location?: ILocation;
118
117
  recipient: IRecipient;
118
+ potentialAction?: IPotentialAction[];
119
119
  }
120
120
  export interface IOptimizedPayAction4order {
121
121
  object: {
@@ -159,6 +159,7 @@ export interface IConfirmParams {
159
159
  export type IResult = any;
160
160
  export type IError = any;
161
161
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
162
+ potentialAction?: IPotentialAction[];
162
163
  }
163
164
  export type ITransaction = IExtendId<IAttributes>;
164
165
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
@@ -3,8 +3,7 @@ import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
- import { IOnPaymentStatusChanged } from '../product';
7
- import { PaymentServiceType } from '../service/paymentService';
6
+ import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
8
7
  export import IAgent = AssetTransactionFactory.IAgent;
9
8
  export type IRecipient = IRefundRecipient;
10
9
  /**
@@ -18,13 +17,14 @@ export interface IObject {
18
17
  * 発行決済サービスID
19
18
  */
20
19
  id: string;
21
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
22
20
  paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
23
21
  refundFee?: number;
24
22
  }
25
23
  export type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod' | 'refundFee'>;
24
+ export type IPotentialAction = IPotentialInformAction;
26
25
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
27
26
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
27
+ potentialAction?: IPotentialAction[];
28
28
  }
29
29
  export type IRefundPurpose = IPurposeAsReturnAction;
30
30
  export interface IPotentialActionsParams {
@@ -55,6 +55,7 @@ export type ITransaction = IExtendId<IAttributes>;
55
55
  * 返金取引
56
56
  */
57
57
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
58
+ potentialAction?: IPotentialAction[];
58
59
  }
59
60
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
60
61
  object?: {
@@ -0,0 +1,4 @@
1
+ export declare enum CertificationStatusEnumeration {
2
+ CertificationActive = "CertificationActive",
3
+ CertificationInactive = "CertificationInactive"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CertificationStatusEnumeration = void 0;
4
+ var CertificationStatusEnumeration;
5
+ (function (CertificationStatusEnumeration) {
6
+ CertificationStatusEnumeration["CertificationActive"] = "CertificationActive";
7
+ CertificationStatusEnumeration["CertificationInactive"] = "CertificationInactive";
8
+ })(CertificationStatusEnumeration = exports.CertificationStatusEnumeration || (exports.CertificationStatusEnumeration = {}));
@@ -1,8 +1,8 @@
1
- import * as CreativeWorkFactory from '../creativeWork';
2
- import { CreativeWorkType } from '../creativeWorkType';
3
- import { OrganizationType } from '../organizationType';
4
- import { IProject } from '../project';
5
- import { SortType } from '../sortType';
1
+ import * as CreativeWorkFactory from '../../creativeWork';
2
+ import { CreativeWorkType } from '../../creativeWorkType';
3
+ import { OrganizationType } from '../../organizationType';
4
+ import { IProject } from '../../project';
5
+ import { SortType } from '../../sortType';
6
6
  export interface ISubjectAsWebApplication {
7
7
  id: string;
8
8
  typeOf: CreativeWorkType.WebApplication;
@@ -0,0 +1,46 @@
1
+ import { CertificationStatusEnumeration } from '../../certificationStatusEnumeration';
2
+ import * as CreativeWorkFactory from '../../creativeWork';
3
+ import { CreativeWorkType } from '../../creativeWorkType';
4
+ import { IProject } from '../../project';
5
+ import { SortType } from '../../sortType';
6
+ export interface ISubjectAsWebSite {
7
+ identifier: string;
8
+ typeOf: CreativeWorkType.WebSite;
9
+ }
10
+ export type IAbout = ISubjectAsWebSite;
11
+ export interface ICertification extends Pick<CreativeWorkFactory.ICreativeWork, 'id' | 'typeOf'> {
12
+ project: Pick<IProject, 'id' | 'typeOf'>;
13
+ /**
14
+ * subject
15
+ */
16
+ about: IAbout;
17
+ auditDate?: Date;
18
+ certificationIdentification: string;
19
+ certificationStatus: CertificationStatusEnumeration;
20
+ datePublished: Date;
21
+ dateModified?: Date;
22
+ typeOf: CreativeWorkType.Certification;
23
+ }
24
+ export interface ISortOrder {
25
+ 'about.identifier'?: SortType;
26
+ }
27
+ export interface ISearchConditions {
28
+ limit?: number;
29
+ page?: number;
30
+ sort?: ISortOrder;
31
+ project?: {
32
+ id?: {
33
+ $eq?: string;
34
+ };
35
+ };
36
+ id?: {
37
+ $eq?: string;
38
+ $in?: string[];
39
+ };
40
+ about?: {
41
+ identifier?: {
42
+ $eq?: string;
43
+ $regex?: string;
44
+ };
45
+ };
46
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,5 +8,6 @@ export declare enum CreativeWorkType {
8
8
  Movie = "Movie",
9
9
  NoteDigitalDocument = "NoteDigitalDocument",
10
10
  SoftwareApplication = "SoftwareApplication",
11
- WebApplication = "WebApplication"
11
+ WebApplication = "WebApplication",
12
+ WebSite = "WebSite"
12
13
  }
@@ -13,4 +13,5 @@ var CreativeWorkType;
13
13
  CreativeWorkType["NoteDigitalDocument"] = "NoteDigitalDocument";
14
14
  CreativeWorkType["SoftwareApplication"] = "SoftwareApplication";
15
15
  CreativeWorkType["WebApplication"] = "WebApplication";
16
+ CreativeWorkType["WebSite"] = "WebSite";
16
17
  })(CreativeWorkType = exports.CreativeWorkType || (exports.CreativeWorkType = {}));
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { OrganizationType } from './organizationType';
2
+ import { IProject } from './project';
3
+ import { SortType } from './sortType';
4
+ export interface IIdentityProvider {
5
+ id: string;
6
+ identifier: string;
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
+ typeOf: OrganizationType.Organization;
9
+ }
10
+ export interface ISearchConditions {
11
+ limit?: number;
12
+ page?: number;
13
+ sort?: {
14
+ identifier?: SortType;
15
+ };
16
+ project?: {
17
+ id?: {
18
+ $eq?: string;
19
+ };
20
+ };
21
+ id?: {
22
+ $eq?: string;
23
+ $in?: string[];
24
+ };
25
+ identifier?: {
26
+ $eq?: string;
27
+ $regex?: string;
28
+ };
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.d.ts CHANGED
@@ -52,9 +52,11 @@ import * as AdditionalPropertyFactory from './additionalProperty';
52
52
  import * as AggregationFactory from './aggregation';
53
53
  import * as AuthorizationFactory from './authorization';
54
54
  import * as CategoryCodeFactory from './categoryCode';
55
+ import { CertificationStatusEnumeration } from './certificationStatusEnumeration';
55
56
  import * as ClientUserFactory from './clientUser';
56
57
  import * as CreativeWorkFactory from './creativeWork';
57
- import * as CertificationFactory from './creativeWork/certification';
58
+ import * as webApplicationCertification from './creativeWork/certification/webApplication';
59
+ import * as webSiteCertification from './creativeWork/certification/webSite';
58
60
  import * as CommentFactory from './creativeWork/comment';
59
61
  import * as EmailMessageFactory from './creativeWork/message/email';
60
62
  import * as MovieFactory from './creativeWork/movie';
@@ -64,12 +66,14 @@ import * as WebApplicationFactory from './creativeWork/softwareApplication/webAp
64
66
  import { CreativeWorkType } from './creativeWorkType';
65
67
  import * as CustomerFactory from './customer';
66
68
  import * as EncodingFormat from './encodingFormat';
69
+ import * as entryPoint from './entryPoint';
67
70
  import * as AnyEventFactory from './event/anyEvent';
68
71
  import * as ScreeningEventFactory from './event/screeningEvent';
69
72
  import * as ScreeningEventSeriesFactory from './event/screeningEventSeries';
70
73
  import { EventStatusType } from './eventStatusType';
71
74
  import { EventType } from './eventType';
72
75
  import * as IAMFactory from './iam';
76
+ import * as IdentityProviderFactory from './identityProvider';
73
77
  import * as InvoiceFactory from './invoice';
74
78
  import { ItemAvailability } from './itemAvailability';
75
79
  import * as LanguageFactory from './language';
@@ -99,6 +103,7 @@ import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
99
103
  import * as ScreeningRoomSectionPlaceFactory from './place/screeningRoomSection';
100
104
  import * as SeatPlaceFactory from './place/seat';
101
105
  import { PlaceType } from './placeType';
106
+ import * as potentialAction from './potentialAction';
102
107
  import { PriceCurrency } from './priceCurrency';
103
108
  import * as PriceSpecificationFactory from './priceSpecification';
104
109
  import * as CategoryCodeChargeSpecificationFactory from './priceSpecification/categoryCodeChargeSpecification';
@@ -126,6 +131,7 @@ import * as SellerFactory from './seller';
126
131
  import * as SellerReturnPolicyFactory from './sellerReturnPolicy';
127
132
  import * as PaymentServiceFactory from './service/paymentService';
128
133
  import * as WebAPIServiceFactory from './service/webAPI';
134
+ import * as ServiceChannelFactory from './serviceChannel';
129
135
  import { SortType } from './sortType';
130
136
  import * as ThingFactory from './thing';
131
137
  import * as BusTripFactory from './trip/busTrip';
@@ -318,10 +324,14 @@ export import aggregation = AggregationFactory;
318
324
  export import aggregateOffer = AggregateOfferFactory;
319
325
  export import authorization = AuthorizationFactory;
320
326
  export import categoryCode = CategoryCodeFactory;
327
+ export { CertificationStatusEnumeration };
321
328
  export import clientUser = ClientUserFactory;
322
329
  export declare namespace creativeWork {
323
330
  export import ICreativeWork = CreativeWorkFactory.ICreativeWork;
324
- export import certification = CertificationFactory;
331
+ namespace certification {
332
+ export import webApplication = webApplicationCertification;
333
+ export import webSite = webSiteCertification;
334
+ }
325
335
  export import comment = CommentFactory;
326
336
  namespace message {
327
337
  export import email = EmailMessageFactory;
@@ -346,9 +356,11 @@ export declare namespace event {
346
356
  export import screeningEventSeries = ScreeningEventSeriesFactory;
347
357
  }
348
358
  export import encodingFormat = EncodingFormat;
359
+ export { entryPoint };
349
360
  export import eventStatusType = EventStatusType;
350
361
  export import eventType = EventType;
351
362
  export import iam = IAMFactory;
363
+ export import identityProvider = IdentityProviderFactory;
352
364
  export import invoice = InvoiceFactory;
353
365
  export import itemAvailability = ItemAvailability;
354
366
  export import language = LanguageFactory;
@@ -391,6 +403,7 @@ export declare namespace place {
391
403
  export import seat = SeatPlaceFactory;
392
404
  }
393
405
  export import placeType = PlaceType;
406
+ export { potentialAction };
394
407
  export declare namespace priceSpecification {
395
408
  export import IAccounting = PriceSpecificationFactory.IAccounting;
396
409
  export import IEligibleQuantity = PriceSpecificationFactory.IEligibleQuantity;
@@ -491,6 +504,7 @@ export declare namespace service {
491
504
  export import paymentService = PaymentServiceFactory;
492
505
  export import webAPI = WebAPIServiceFactory;
493
506
  }
507
+ export import serviceChannel = ServiceChannelFactory;
494
508
  export import sortType = SortType;
495
509
  export import taskName = TaskName;
496
510
  export import taskStatus = TaskStatus;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = 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.iam = exports.eventType = exports.eventStatusType = 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.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 = void 0;
3
+ 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.CertificationStatusEnumeration = 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 = exports.potentialAction = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -51,8 +51,11 @@ var AdditionalPropertyFactory = require("./additionalProperty");
51
51
  var AggregationFactory = require("./aggregation");
52
52
  var AuthorizationFactory = require("./authorization");
53
53
  var CategoryCodeFactory = require("./categoryCode");
54
+ var certificationStatusEnumeration_1 = require("./certificationStatusEnumeration");
55
+ Object.defineProperty(exports, "CertificationStatusEnumeration", { enumerable: true, get: function () { return certificationStatusEnumeration_1.CertificationStatusEnumeration; } });
54
56
  var ClientUserFactory = require("./clientUser");
55
- var CertificationFactory = require("./creativeWork/certification");
57
+ var webApplicationCertification = require("./creativeWork/certification/webApplication");
58
+ var webSiteCertification = require("./creativeWork/certification/webSite");
56
59
  var CommentFactory = require("./creativeWork/comment");
57
60
  var EmailMessageFactory = require("./creativeWork/message/email");
58
61
  var MovieFactory = require("./creativeWork/movie");
@@ -61,12 +64,15 @@ var WebApplicationFactory = require("./creativeWork/softwareApplication/webAppli
61
64
  var creativeWorkType_1 = require("./creativeWorkType");
62
65
  var CustomerFactory = require("./customer");
63
66
  var EncodingFormat = require("./encodingFormat");
67
+ var entryPoint = require("./entryPoint");
68
+ exports.entryPoint = entryPoint;
64
69
  var AnyEventFactory = require("./event/anyEvent");
65
70
  var ScreeningEventFactory = require("./event/screeningEvent");
66
71
  var ScreeningEventSeriesFactory = require("./event/screeningEventSeries");
67
72
  var eventStatusType_1 = require("./eventStatusType");
68
73
  var eventType_1 = require("./eventType");
69
74
  var IAMFactory = require("./iam");
75
+ var IdentityProviderFactory = require("./identityProvider");
70
76
  var InvoiceFactory = require("./invoice");
71
77
  var itemAvailability_1 = require("./itemAvailability");
72
78
  var LanguageFactory = require("./language");
@@ -94,6 +100,8 @@ var ScreeningRoomPlaceFactory = require("./place/screeningRoom");
94
100
  var ScreeningRoomSectionPlaceFactory = require("./place/screeningRoomSection");
95
101
  var SeatPlaceFactory = require("./place/seat");
96
102
  var placeType_1 = require("./placeType");
103
+ var potentialAction = require("./potentialAction");
104
+ exports.potentialAction = potentialAction;
97
105
  var priceCurrency_1 = require("./priceCurrency");
98
106
  var UnitPriceSpecificationFactory = require("./priceSpecification/unitPriceSpecification");
99
107
  var priceSpecificationType_1 = require("./priceSpecificationType");
@@ -115,6 +123,7 @@ var SellerFactory = require("./seller");
115
123
  var SellerReturnPolicyFactory = require("./sellerReturnPolicy");
116
124
  var PaymentServiceFactory = require("./service/paymentService");
117
125
  var WebAPIServiceFactory = require("./service/webAPI");
126
+ var ServiceChannelFactory = require("./serviceChannel");
118
127
  var sortType_1 = require("./sortType");
119
128
  var ThingFactory = require("./thing");
120
129
  var BusTripFactory = require("./trip/busTrip");
@@ -305,7 +314,11 @@ exports.categoryCode = CategoryCodeFactory;
305
314
  exports.clientUser = ClientUserFactory;
306
315
  var creativeWork;
307
316
  (function (creativeWork) {
308
- creativeWork.certification = CertificationFactory;
317
+ var certification;
318
+ (function (certification) {
319
+ certification.webApplication = webApplicationCertification;
320
+ certification.webSite = webSiteCertification;
321
+ })(certification = creativeWork.certification || (creativeWork.certification = {}));
309
322
  creativeWork.comment = CommentFactory;
310
323
  var message;
311
324
  (function (message) {
@@ -331,6 +344,7 @@ exports.encodingFormat = EncodingFormat;
331
344
  exports.eventStatusType = eventStatusType_1.EventStatusType;
332
345
  exports.eventType = eventType_1.EventType;
333
346
  exports.iam = IAMFactory;
347
+ exports.identityProvider = IdentityProviderFactory;
334
348
  exports.invoice = InvoiceFactory;
335
349
  exports.itemAvailability = itemAvailability_1.ItemAvailability;
336
350
  exports.language = LanguageFactory;
@@ -448,6 +462,7 @@ var service;
448
462
  service.paymentService = PaymentServiceFactory;
449
463
  service.webAPI = WebAPIServiceFactory;
450
464
  })(service = exports.service || (exports.service = {}));
465
+ exports.serviceChannel = ServiceChannelFactory;
451
466
  exports.sortType = sortType_1.SortType;
452
467
  exports.taskName = taskName_1.TaskName;
453
468
  exports.taskStatus = taskStatus_1.TaskStatus;
@@ -0,0 +1,39 @@
1
+ import { ActionType } from './actionType';
2
+ import { IEntryPoint } from './entryPoint';
3
+ import { IProject } from './project';
4
+ import { SortType } from './sortType';
5
+ export type IHttpMethod = 'POST';
6
+ export { IEntryPoint };
7
+ export interface IPotentialInformAction {
8
+ id: string;
9
+ identifier: string;
10
+ project: Pick<IProject, 'id' | 'typeOf'>;
11
+ target: IEntryPoint;
12
+ typeOf: ActionType.InformAction;
13
+ }
14
+ export type IPotentialAction = IPotentialInformAction;
15
+ export interface ISortOrder {
16
+ identifier?: SortType;
17
+ }
18
+ export interface ISearchConditions {
19
+ limit?: number;
20
+ page?: number;
21
+ sort?: ISortOrder;
22
+ project?: {
23
+ id?: {
24
+ $eq?: string;
25
+ $in?: string[];
26
+ };
27
+ };
28
+ id?: {
29
+ $eq?: string;
30
+ };
31
+ target?: {
32
+ urlTemplate?: {
33
+ $eq?: string;
34
+ };
35
+ };
36
+ typeOf?: {
37
+ $eq?: string;
38
+ };
39
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/product.d.ts CHANGED
@@ -7,7 +7,7 @@ import { IAppliesToCategoryCode, IPriceSpecification as ICategoryCodeChargeSpeci
7
7
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
8
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
9
9
  import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
10
- import { IInformParams, IProject } from './project';
10
+ import { IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
12
12
  import { SortType } from './sortType';
13
13
  import { IThing } from './thing';
@@ -66,14 +66,20 @@ export interface ICredentials {
66
66
  clientId?: string;
67
67
  clientSecret?: string;
68
68
  }
69
+ export interface IInformPayment {
70
+ recipient?: {
71
+ id?: never;
72
+ name?: never;
73
+ url?: string;
74
+ };
75
+ }
69
76
  export interface IOnPaymentStatusChanged {
70
- informPayment?: IInformParams[];
77
+ informPayment?: IInformPayment[];
71
78
  }
72
79
  export interface IAvailableChannel {
73
80
  typeOf: 'ServiceChannel';
74
81
  serviceUrl?: string;
75
82
  credentials?: ICredentials;
76
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
77
83
  }
78
84
  export type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
79
85
  export type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
@@ -117,6 +123,7 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
117
123
  */
118
124
  serviceType?: IServiceType;
119
125
  additionalProperty?: IPropertyValue<string>[];
126
+ potentialAction?: never;
120
127
  }
121
128
  export interface IHasOfferCatalogOnCreate {
122
129
  /**
@@ -1,6 +1,7 @@
1
1
  import { IInvoice } from '../invoice';
2
2
  import { IMultilingualString } from '../multilingualString';
3
3
  import { IPermit } from '../permit';
4
+ import { IPotentialInformAction as IPotentialInformActionTemplate } from '../potentialAction';
4
5
  import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
5
6
  import { IProject } from '../project';
6
7
  import { IPropertyValue } from '../propertyValue';
@@ -65,19 +66,9 @@ export interface IProvider extends Pick<ISeller, 'typeOf'> {
65
66
  */
66
67
  credentials?: IProviderCredentials;
67
68
  }
68
- /**
69
- * 外部サービス認証情報
70
- */
71
- export interface ICredentials {
72
- siteId?: string;
73
- sitePass?: string;
74
- authorizeServerDomain?: string;
75
- clientId?: string;
76
- clientSecret?: string;
77
- useSeatInfoSyncCancel?: boolean;
78
- }
79
- export type IAvailableChannel = Pick<IProductAvailableChannel, 'onPaymentStatusChanged' | 'serviceUrl' | 'typeOf'> & {
80
- credentials?: ICredentials;
69
+ export type IAvailableChannel = Pick<IProductAvailableChannel, 'typeOf'> & {
70
+ serviceUrl: string;
71
+ credentials?: never;
81
72
  totalPaymentDue?: {
82
73
  maxValue?: number;
83
74
  };
@@ -116,6 +107,8 @@ export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
116
107
  };
117
108
  };
118
109
  export type IServiceOutput = (IInvoiceAsServiceOutput | IPermitAsServiceOutput)[];
110
+ export type IPotentialInformAction = Pick<IPotentialInformActionTemplate, 'id' | 'typeOf'>;
111
+ export type IPotentialAction = IPotentialInformAction;
119
112
  /**
120
113
  * 決済サービス
121
114
  * {@link https://schema.org/Service}
@@ -143,6 +136,7 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
143
136
  */
144
137
  serviceType: IServiceType;
145
138
  additionalProperty?: IPropertyValue<string>[];
139
+ potentialAction?: IPotentialAction[];
146
140
  }
147
141
  export interface ISortOrder {
148
142
  productID?: SortType;
@@ -156,6 +150,11 @@ export interface ISearchConditions {
156
150
  $eq?: string;
157
151
  };
158
152
  };
153
+ availableChannel?: {
154
+ serviceUrl?: {
155
+ $eq?: string;
156
+ };
157
+ };
159
158
  id?: {
160
159
  $eq?: string;
161
160
  $in?: string[];
@@ -0,0 +1,62 @@
1
+ import { IProject } from './project';
2
+ import { PaymentServiceType } from './service/paymentService';
3
+ import { SortType } from './sortType';
4
+ export interface ICredentialsCreditCard {
5
+ siteId: string;
6
+ sitePass: string;
7
+ }
8
+ export interface ICredentialsMovieTicket {
9
+ authorizeServerDomain: string;
10
+ clientId: string;
11
+ clientSecret: string;
12
+ useSeatInfoSyncCancel?: boolean;
13
+ }
14
+ export interface IServiceChannelCreditCard {
15
+ credentials: ICredentialsCreditCard;
16
+ id?: string;
17
+ project: Pick<IProject, 'id' | 'typeOf'>;
18
+ providesService: {
19
+ typeOf: PaymentServiceType.CreditCard;
20
+ };
21
+ serviceUrl: string;
22
+ typeOf: 'ServiceChannel';
23
+ }
24
+ export interface IServiceChannelMovieTicket {
25
+ credentials: ICredentialsMovieTicket;
26
+ id?: string;
27
+ project: Pick<IProject, 'id' | 'typeOf'>;
28
+ providesService: {
29
+ typeOf: PaymentServiceType.MovieTicket;
30
+ };
31
+ serviceUrl: string;
32
+ typeOf: 'ServiceChannel';
33
+ }
34
+ export type IServiceChannel = IServiceChannelCreditCard | IServiceChannelMovieTicket;
35
+ export interface ISortOrder {
36
+ serviceUrl?: SortType;
37
+ }
38
+ export interface ISearchConditions {
39
+ limit?: number;
40
+ page?: number;
41
+ sort?: ISortOrder;
42
+ project?: {
43
+ id?: {
44
+ $eq?: string;
45
+ };
46
+ };
47
+ id?: {
48
+ $eq?: string;
49
+ };
50
+ serviceUrl?: {
51
+ $eq?: string;
52
+ $regex?: string;
53
+ };
54
+ providesService?: {
55
+ typeOf?: {
56
+ /**
57
+ * PaymentServiceType
58
+ */
59
+ $eq?: string;
60
+ };
61
+ };
62
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +1,38 @@
1
- import { IAttributes as IInformActionAttributes, IObject } from '../action/interact/inform';
1
+ import { IAttributes as IInformActionAttributes, IObject, IRecipient as IInformRecipient } 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
- export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'recipient' | 'about'> & {
6
+ export type IRecipient = Pick<IInformRecipient, 'id' | 'name' | 'typeOf' | 'url'>;
7
+ export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
6
8
  /**
7
9
  * 通知識別子(2024-10-24~)
8
10
  */
9
11
  identifier?: string;
12
+ recipient: IRecipient;
13
+ target: IEntryPoint;
14
+ id?: never;
15
+ typeOf?: never;
10
16
  };
11
- export type IData = IPotentialInformAction;
17
+ export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
18
+ /**
19
+ * 通知識別子(2024-10-24~)
20
+ */
21
+ identifier?: string;
22
+ recipient: Pick<IRecipient, 'id' | 'name' | 'typeOf'>;
23
+ target?: never;
24
+ /**
25
+ * potentialAction id
26
+ */
27
+ id: string;
28
+ typeOf: IInformActionAttributes<IObject>['typeOf'];
29
+ };
30
+ export type IData = IPotentialInformAction | IPotentialInformActionWithId;
12
31
  export interface IAttributes extends TaskFactory.IAttributes {
13
32
  name: TaskName.TriggerWebhook;
14
33
  data: IData;
15
34
  }
16
35
  /**
17
- * 通知タスク
36
+ * trigger webhook task
18
37
  */
19
38
  export type ITask = IExtendId<IAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.393.0-alpha.1",
3
+ "version": "4.393.0-alpha.11",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",