@chevre/factory 4.392.0-alpha.0 → 4.392.0-alpha.10

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.
@@ -157,7 +157,15 @@ export interface IObjectWithoutDetail4COA {
157
157
  /**
158
158
  * 受入COA興行オファー
159
159
  */
160
- export type IAcceptedOffer4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
160
+ export type IAcceptedOffer4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'additionalProperty'> & {
161
+ /**
162
+ * 単価オファーid
163
+ */
164
+ id: string;
165
+ /**
166
+ * 単価オファーコード
167
+ */
168
+ identifier: string;
161
169
  itemOffered: IAcceptedTicketOfferItemOffered;
162
170
  ticketInfo: ICOATicketInfoWithDetails;
163
171
  /**
@@ -165,10 +173,19 @@ export type IAcceptedOffer4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'id' |
165
173
  */
166
174
  price: number;
167
175
  priceSpecification: OrderFactory.ITicketPriceSpecification;
176
+ seatNumber?: never;
177
+ seatSection?: never;
168
178
  };
169
- export type IAcceptedOfferBeforeAuthorize4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'itemOffered' | 'additionalProperty'> & Pick<IOffer, 'name' | 'additionalProperty'> & {
170
- itemOffered: IAcceptedTicketOfferItemOffered;
179
+ /**
180
+ * 承認前の受入オファー(COA仮予約済)
181
+ */
182
+ export type IAcceptedOfferBeforeAuthorize4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'additionalProperty'> & Pick<IOffer, 'name' | 'additionalProperty'> & {
183
+ itemOffered: Pick<IAcceptedTicketOfferItemOffered, 'serviceOutput'>;
171
184
  ticketInfo: Omit<ICOATicketInfoWithDetails, 'salePrice' | 'usePoint'>;
185
+ /**
186
+ * 適用surfrock指定
187
+ * interfacesのmemberClients設定に含まれるクライアントでの注文取引であれば、強制的に指定される
188
+ */
172
189
  priceSpecification: IPriceSpecification4COA;
173
190
  };
174
191
  export { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult };
@@ -9,7 +9,6 @@ import * as OrderFactory from '../../../order';
9
9
  import { PriceCurrency } from '../../../priceCurrency';
10
10
  import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
11
11
  import { ITicketOffer } from '../../../product';
12
- import * as WebAPIFactory from '../../../service/webAPI';
13
12
  import { TransactionType } from '../../../transactionType';
14
13
  import * as AuthorizeActionFactory from '../../authorize';
15
14
  export type IAgent = ActionFactory.IParticipantAsSeller;
@@ -17,22 +16,24 @@ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFact
17
16
  export declare enum ObjectType {
18
17
  SeatReservation = "SeatReservation"
19
18
  }
20
- export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? {
19
+ export interface IInstrumentAsCOAReserveTransaction {
21
20
  typeOf: AssetTransactionType.COAReserveTransaction;
22
- identifier: T;
21
+ identifier?: never;
23
22
  /**
24
23
  * 仮予約番号
25
24
  * ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
26
25
  */
27
26
  transactionNumber: string;
28
- } : T extends WebAPIFactory.Identifier.Chevre ? {
27
+ }
28
+ export interface IInstrumentAsReserveTransaction {
29
29
  typeOf: AssetTransactionType.Reserve;
30
- identifier: T;
30
+ identifier?: never;
31
31
  /**
32
32
  * 予約取引番号
33
33
  */
34
34
  transactionNumber: string;
35
- } : never;
35
+ }
36
+ export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
36
37
  export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
37
38
  typeOf: OfferType.Offer;
38
39
  id: string;
@@ -104,15 +105,15 @@ export interface IPurpose {
104
105
  id: string;
105
106
  }
106
107
  export type IError = any;
107
- export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
108
+ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
108
109
  typeOf: ActionType.AuthorizeAction;
109
110
  agent: IAgent;
110
111
  recipient: IRecipient;
111
112
  object: IObject;
112
113
  purpose: IPurpose;
113
- instrument: IInstrumentAsAssetTransaction<T>;
114
+ instrument: IInstrumentAsAssetTransaction;
114
115
  }
115
116
  /**
116
117
  * 興行オファー承認アクション
117
118
  */
118
- export type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
119
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -3,7 +3,6 @@ import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
3
3
  import { AssetTransactionType } from '../../../assetTransactionType';
4
4
  import { ISimpleOrder } from '../../../order';
5
5
  import { IRecipe, IUpdReserveArgs } from '../../../recipe/confirmCOAReserve';
6
- import * as WebAPIFactory from '../../../service/webAPI';
7
6
  import * as ConfirmActionFactory from '../confirm';
8
7
  export { IRecipe as IConfirmCOAReserveRecipe };
9
8
  export type IAgent = IParticipantAsProject;
@@ -21,15 +20,15 @@ export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'tra
21
20
  transactionNumber: string;
22
21
  typeOf: AssetTransactionType.Reserve;
23
22
  };
24
- export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
23
+ export type IObject = IObject4COA | IObject4Chevre;
25
24
  export type IPurpose = ISimpleOrder;
26
25
  export interface IResult {
27
26
  }
28
- export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
27
+ export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
29
28
  agent: IAgent;
30
29
  purpose: IPurpose;
31
30
  }
32
31
  /**
33
32
  * 予約取引確定アクション
34
33
  */
35
- export type IAction<T extends WebAPIFactory.Identifier> = ConfirmActionFactory.IAction<IAttributes<T>>;
34
+ export type IAction = ConfirmActionFactory.IAction<IAttributes>;
@@ -2,7 +2,6 @@ import * as ActionFactory from '../../../action';
2
2
  import { AssetTransactionType } from '../../../assetTransactionType';
3
3
  import { ISimpleOrder } from '../../../order';
4
4
  import { IRecipe, IStateReserveArgs } from '../../../recipe/returnCOAReserve';
5
- import { Identifier as WebAPIIdentifier, IService } from '../../../service/webAPI';
6
5
  import * as ReturnActionFactory from '../return';
7
6
  export { IRecipe as IReturnCOAReserveRecipe };
8
7
  export type IAgent = ActionFactory.IParticipantAsProject;
@@ -14,18 +13,17 @@ export interface IObject4Chevre {
14
13
  typeOf: AssetTransactionType.Reserve;
15
14
  transactionNumber: string;
16
15
  }
17
- export type IObject<T extends WebAPIIdentifier> = T extends WebAPIIdentifier.COA ? IObject4COA : IObject4Chevre;
16
+ export type IObject = IObject4COA | IObject4Chevre;
18
17
  export type IPurpose = ISimpleOrder;
19
18
  export interface IResult {
20
19
  }
21
- export type IInstrument<T extends WebAPIIdentifier> = Pick<IService<T>, 'identifier' | 'typeOf'>;
22
- export interface IAttributes<T extends WebAPIIdentifier> extends Pick<ReturnActionFactory.IAttributes<IObject<T>, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
20
+ export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'error' | 'agent'> {
23
21
  agent: IAgent;
24
- instrument: IInstrument<T>;
22
+ instrument?: never;
25
23
  purpose: IPurpose;
26
24
  recipient: IRecipient;
27
25
  }
28
26
  /**
29
27
  * 予約取引返却アクション
30
28
  */
31
- export type IAction<T extends WebAPIIdentifier> = ReturnActionFactory.IAction<IAttributes<T>>;
29
+ export type IAction = ReturnActionFactory.IAction<IAttributes>;
package/lib/iam.d.ts CHANGED
@@ -1,15 +1,65 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
2
  import { OrganizationType } from './organizationType';
3
3
  import { PersonType } from './personType';
4
- import { IProgramMembership } from './programMembership';
5
4
  import { SortType } from './sortType';
6
5
  export declare enum RoleType {
7
6
  OrganizationRole = "OrganizationRole"
8
7
  }
8
+ export declare enum RoleName {
9
+ /**
10
+ * 注文取引クライアント
11
+ */
12
+ Customer = "customer",
13
+ POS = "pos",
14
+ /**
15
+ * publicリソース検索クライアント
16
+ */
17
+ EventsViewer = "events.viewer",
18
+ /**
19
+ * 任意のサーバーアプリケーション
20
+ */
21
+ Server = "server",
22
+ /**
23
+ * プロジェクトオーナー
24
+ */
25
+ Owner = "owner",
26
+ User = "user",
27
+ /**
28
+ * 販売者管理
29
+ */
30
+ SellerAdmin = "sellerAdmin",
31
+ /**
32
+ * チケット管理
33
+ */
34
+ TicketClerk = "ticketClerk",
35
+ /**
36
+ * 在庫管理
37
+ */
38
+ InventoryManager = "inventoryManager",
39
+ Accountant = "accountant",
40
+ /**
41
+ * チケット収集
42
+ */
43
+ TicketCollector = "ticketCollector",
44
+ /**
45
+ * メンバー管理
46
+ */
47
+ IAMRoleAdmin = "iam.roleAdmin",
48
+ /**
49
+ * 決済サービス編集者
50
+ */
51
+ PaymentServiceEditor = "paymentServiceEditor",
52
+ /**
53
+ * 販売者オーナー
54
+ */
55
+ SellersOwner = "sellers.owner",
56
+ SellersInventoryManager = "sellers.inventoryManager",
57
+ SellersIAMRoleAdmin = "sellers.iam.roleAdmin"
58
+ }
9
59
  export interface IRole {
10
60
  typeOf: RoleType;
11
61
  permissions: string[];
12
- roleName: string;
62
+ roleName: RoleName;
13
63
  memberOf: {
14
64
  typeOf: OrganizationType.Project;
15
65
  id: string;
@@ -34,10 +84,6 @@ export interface IRoleSearchConditions {
34
84
  }
35
85
  export type IMemberType = PersonType | CreativeWorkType.WebApplication | CreativeWorkType.SoftwareApplication;
36
86
  export type IMemberRole = Pick<IRole, 'typeOf' | 'roleName'>;
37
- export type IProgramMembershipOfProject = Pick<IProgramMembership, 'typeOf'> & {
38
- issuer: string;
39
- secret: string;
40
- };
41
87
  export interface IMemberOfAsProject {
42
88
  typeOf: OrganizationType.Project;
43
89
  id: string;
@@ -47,9 +93,6 @@ export interface IMemberOfAsSeller {
47
93
  id: string;
48
94
  }
49
95
  export type IMemberOf = IMemberOfAsProject | IMemberOfAsSeller;
50
- export interface IMemberOfWebApplication {
51
- memberOf?: IProgramMembershipOfProject;
52
- }
53
96
  export interface IMemberOfRole {
54
97
  typeOf: IMemberType;
55
98
  /**
@@ -64,10 +107,6 @@ export interface IMemberOfRole {
64
107
  * プロジェクトメンバー or 販売者メンバー
65
108
  */
66
109
  memberOf: IMemberOf;
67
- /**
68
- * 所属会員
69
- */
70
- member?: IMemberOfWebApplication[];
71
110
  }
72
111
  export interface IMember {
73
112
  typeOf: RoleType;
@@ -92,13 +131,14 @@ export interface ISearchConditions {
92
131
  project?: {
93
132
  id?: {
94
133
  $eq?: string;
95
- $regex?: string;
134
+ $in?: string[];
96
135
  };
97
136
  };
98
137
  member?: {
99
138
  hasRole?: {
100
139
  roleName?: {
101
140
  $eq?: string;
141
+ $in?: string[];
102
142
  };
103
143
  };
104
144
  id?: {
package/lib/iam.js CHANGED
@@ -1,7 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoleType = void 0;
3
+ exports.RoleName = exports.RoleType = void 0;
4
4
  var RoleType;
5
5
  (function (RoleType) {
6
6
  RoleType["OrganizationRole"] = "OrganizationRole";
7
7
  })(RoleType = exports.RoleType || (exports.RoleType = {}));
8
+ var RoleName;
9
+ (function (RoleName) {
10
+ /**
11
+ * 注文取引クライアント
12
+ */
13
+ RoleName["Customer"] = "customer";
14
+ RoleName["POS"] = "pos";
15
+ /**
16
+ * publicリソース検索クライアント
17
+ */
18
+ RoleName["EventsViewer"] = "events.viewer";
19
+ /**
20
+ * 任意のサーバーアプリケーション
21
+ */
22
+ RoleName["Server"] = "server";
23
+ /**
24
+ * プロジェクトオーナー
25
+ */
26
+ RoleName["Owner"] = "owner";
27
+ RoleName["User"] = "user";
28
+ /**
29
+ * 販売者管理
30
+ */
31
+ RoleName["SellerAdmin"] = "sellerAdmin";
32
+ /**
33
+ * チケット管理
34
+ */
35
+ RoleName["TicketClerk"] = "ticketClerk";
36
+ /**
37
+ * 在庫管理
38
+ */
39
+ RoleName["InventoryManager"] = "inventoryManager";
40
+ RoleName["Accountant"] = "accountant";
41
+ // PeopleAdmin = 'people.admin', // discontinue(2024-12-17~)
42
+ /**
43
+ * チケット収集
44
+ */
45
+ RoleName["TicketCollector"] = "ticketCollector";
46
+ /**
47
+ * メンバー管理
48
+ */
49
+ RoleName["IAMRoleAdmin"] = "iam.roleAdmin";
50
+ /**
51
+ * 決済サービス編集者
52
+ */
53
+ RoleName["PaymentServiceEditor"] = "paymentServiceEditor";
54
+ /**
55
+ * 販売者オーナー
56
+ */
57
+ RoleName["SellersOwner"] = "sellers.owner";
58
+ RoleName["SellersInventoryManager"] = "sellers.inventoryManager";
59
+ RoleName["SellersIAMRoleAdmin"] = "sellers.iam.roleAdmin";
60
+ })(RoleName = exports.RoleName || (exports.RoleName = {}));
package/lib/index.d.ts CHANGED
@@ -122,6 +122,7 @@ import { ReservationStatusType } from './reservationStatusType';
122
122
  import { ReservationType } from './reservationType';
123
123
  import * as ScheduleFactory from './schedule';
124
124
  import * as SellerFactory from './seller';
125
+ import * as SellerReturnPolicyFactory from './sellerReturnPolicy';
125
126
  import * as PaymentServiceFactory from './service/paymentService';
126
127
  import * as WebAPIServiceFactory from './service/webAPI';
127
128
  import { SortType } from './sortType';
@@ -442,6 +443,7 @@ export import reservationStatusType = ReservationStatusType;
442
443
  export import reservationType = ReservationType;
443
444
  export import schedule = ScheduleFactory;
444
445
  export import seller = SellerFactory;
446
+ export import sellerReturnPolicy = SellerReturnPolicyFactory;
445
447
  export declare namespace task {
446
448
  type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
447
449
  type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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.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;
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;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -111,6 +111,7 @@ var reservationStatusType_1 = require("./reservationStatusType");
111
111
  var reservationType_1 = require("./reservationType");
112
112
  var ScheduleFactory = require("./schedule");
113
113
  var SellerFactory = require("./seller");
114
+ var SellerReturnPolicyFactory = require("./sellerReturnPolicy");
114
115
  var PaymentServiceFactory = require("./service/paymentService");
115
116
  var WebAPIServiceFactory = require("./service/webAPI");
116
117
  var sortType_1 = require("./sortType");
@@ -402,6 +403,7 @@ exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
402
403
  exports.reservationType = reservationType_1.ReservationType;
403
404
  exports.schedule = ScheduleFactory;
404
405
  exports.seller = SellerFactory;
406
+ exports.sellerReturnPolicy = SellerReturnPolicyFactory;
405
407
  var task;
406
408
  (function (task) {
407
409
  task.acceptCOAOffer = AcceptCOAOfferTaskFactory;
package/lib/offer.d.ts CHANGED
@@ -99,10 +99,11 @@ export interface IAcceptedPaymentMethod {
99
99
  * to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
100
100
  * {@link https://schema.org/Offer}
101
101
  */
102
- export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternateName' | 'color' | 'identifier'> {
102
+ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternateName' | 'color'> {
103
103
  project: Pick<IProject, 'id' | 'typeOf'>;
104
104
  typeOf: OfferType;
105
105
  id?: string;
106
+ identifier?: string;
106
107
  /**
107
108
  * The payment method(s) accepted by seller for this offer.
108
109
  * 対応決済方法区分
package/lib/order.d.ts CHANGED
@@ -225,7 +225,11 @@ export interface IEventServiceAsOrderedItem {
225
225
  reservationFor: IReservationFor4EventServiceOrderedItem;
226
226
  };
227
227
  serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
228
- id: string;
228
+ /**
229
+ * 興行id
230
+ * 興行管理をしていない場合id未定義
231
+ */
232
+ id?: string;
229
233
  }
230
234
  export type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
231
235
  export interface ITransportationAsOrderedItem {
@@ -1,7 +1,16 @@
1
- import { ICategoryCode } from '../categoryCode';
1
+ import { CategorySetIdentifier, ICategoryCode, ICategoryCodeSet } from '../categoryCode';
2
2
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
- export type IAppliesToCategoryCode = Pick<ICategoryCode, 'typeOf' | 'codeValue' | 'inCodeSet'>;
4
+ /**
5
+ * 区分加算料金でありうる区分分類
6
+ * 2025-01-06定義
7
+ */
8
+ export type IAppliesToCategoryCodeSet = Pick<ICategoryCodeSet, 'identifier' | 'typeOf'> & {
9
+ identifier: CategorySetIdentifier.SoundFormatType | CategorySetIdentifier.SeatingType | CategorySetIdentifier.VideoFormatType;
10
+ };
11
+ export type IAppliesToCategoryCode = Pick<ICategoryCode, 'typeOf' | 'codeValue' | 'inCodeSet'> & {
12
+ inCodeSet: IAppliesToCategoryCodeSet;
13
+ };
5
14
  /**
6
15
  * 区分加算料金
7
16
  */
package/lib/product.d.ts CHANGED
@@ -1,18 +1,16 @@
1
- import { ICategoryCode } from './categoryCode';
1
+ import { CategorySetIdentifier, ICategoryCode, ICategoryCodeSet } from './categoryCode';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { IName as IOfferName, IOffer as IBaseOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
5
  import { IAmount as IPermitAmount, IPermit } from './permit';
6
- import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
6
+ import { IAppliesToCategoryCode, IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
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
10
  import { IInformParams, IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
12
- import { IQuantitativeValue } from './quantitativeValue';
13
12
  import { SortType } from './sortType';
14
13
  import { IThing } from './thing';
15
- import { UnitCode } from './unitCode';
16
14
  import * as UnitPriceOfferFactory from './unitPriceOffer';
17
15
  /**
18
16
  * プロダクトタイプ
@@ -262,11 +260,37 @@ export interface IServiceOutputSearchConditions {
262
260
  $eq?: string;
263
261
  };
264
262
  }
265
- export type ICategoryCodeChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'id' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
263
+ export type IPriceComponentAppliesToCategoryCode = Pick<IAppliesToCategoryCode, 'typeOf' | 'codeValue' | 'inCodeSet'> & {
264
+ inCodeSet: Pick<ICategoryCodeSet, 'typeOf' | 'identifier'> & {
265
+ identifier: CategorySetIdentifier.SoundFormatType | CategorySetIdentifier.VideoFormatType;
266
+ };
267
+ };
268
+ export type ICategoryCodeChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'id' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> & {
269
+ appliesToCategoryCode: IPriceComponentAppliesToCategoryCode[];
270
+ };
266
271
  export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'id' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
267
272
  export type ITicketUnitPriceComponent = Pick<IUnitPriceSpecification, 'accounting' | 'appliesToAddOn' | 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
268
- export type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent;
269
- export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
273
+ export type IPotentialAppliesToSeatingType = Pick<IAppliesToCategoryCode, 'typeOf'> & {
274
+ inCodeSet: Pick<ICategoryCodeSet, 'typeOf'> & {
275
+ identifier: CategorySetIdentifier.SeatingType;
276
+ };
277
+ };
278
+ /**
279
+ * 潜在的な区分加算料金
280
+ */
281
+ export type IPotentialCategoryCodeChargePriceComponent = Pick<ICategoryCodeChargePriceComponent, 'accounting' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> & {
282
+ appliesToCategoryCode: IPotentialAppliesToSeatingType[];
283
+ id?: never;
284
+ name?: never;
285
+ /**
286
+ * 潜在的なので価格不明
287
+ */
288
+ price?: never;
289
+ };
290
+ /**
291
+ * プロダクトオファーの価格仕様要素
292
+ */
293
+ export type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent | IPotentialCategoryCodeChargePriceComponent;
270
294
  /**
271
295
  * プロダクトオファーの価格仕様
272
296
  */
package/lib/project.d.ts CHANGED
@@ -64,12 +64,41 @@ export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 't
64
64
  */
65
65
  identifier?: string;
66
66
  };
67
+ export interface IMemberProgram {
68
+ hostingOrganization: {
69
+ /**
70
+ * トークン発行者
71
+ */
72
+ identifier: string;
73
+ };
74
+ }
75
+ export interface IMemberProgramTierWithSecret {
76
+ isTierOf: IMemberProgram;
77
+ /**
78
+ * トークン検証シークレット
79
+ * @deprecated use IMemberProgramTier
80
+ */
81
+ secret: string;
82
+ }
83
+ export interface IMemberProgramTier {
84
+ isTierOf: {
85
+ /**
86
+ * メンバープログラムコード
87
+ */
88
+ identifier: string;
89
+ };
90
+ secret?: never;
91
+ }
67
92
  export interface IMakesOffer extends Pick<IOffer, 'typeOf'> {
68
93
  availableAtOrFrom: IAvailableAtOrFrom;
69
94
  /**
70
95
  * 対象カスタマータイプ
71
96
  */
72
97
  eligibleCustomerType?: IBusinessEntityType[];
98
+ /**
99
+ * add (2025-01-13)
100
+ */
101
+ validForMemberTier?: IMemberProgramTier | IMemberProgramTierWithSecret;
73
102
  }
74
103
  /**
75
104
  * プロジェクト
@@ -49,15 +49,26 @@ export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIss
49
49
  export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
50
50
  typeOf: ProductType.EventService;
51
51
  serviceType?: IServiceTypeOfIssuedThrough;
52
+ /**
53
+ * 興行id
54
+ */
52
55
  id: string;
53
56
  }
57
+ export interface IIssuedThrough4COA extends ReservationFactory.IIssuedThrough {
58
+ typeOf: ProductType.EventService;
59
+ serviceType?: never;
60
+ /**
61
+ * 興行管理をしていないためid未定義
62
+ */
63
+ id?: never;
64
+ }
54
65
  /**
55
66
  * イベント予約
56
67
  */
57
68
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
58
69
  bookingTime: Date;
59
70
  id: string;
60
- issuedThrough: IIssuedThrough;
71
+ issuedThrough: IIssuedThrough | IIssuedThrough4COA;
61
72
  reservationFor: IReservationFor;
62
73
  reservationNumber: string;
63
74
  reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
@@ -201,7 +201,11 @@ export interface IServiceChannel {
201
201
  export interface IIssuedThrough {
202
202
  typeOf: ProductType.Transportation | ProductType.EventService;
203
203
  serviceType?: IServiceTypeOfIssuedThrough;
204
- id: string;
204
+ /**
205
+ * プロダクトid
206
+ * プロダクト管理をしている場合のみ
207
+ */
208
+ id?: string;
205
209
  availableChannel: IServiceChannel;
206
210
  }
207
211
  export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
package/lib/seller.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { IBusinessEntityType } from './businessEntityType';
2
- import { IMerchantReturnPolicy, IRestockingFee } from './merchantReturnPolicy';
3
2
  import { IMultilingualString } from './multilingualString';
4
3
  import { IAvailableAtOrFrom, IOffer } from './offer';
5
4
  import { IOrganization } from './organization';
@@ -7,10 +6,10 @@ import { OrganizationType } from './organizationType';
7
6
  import { IProject } from './project';
8
7
  import { IPropertyValue } from './propertyValue';
9
8
  import { IQuantitativeValue } from './quantitativeValue';
9
+ import { ISellerReturnPolicy } from './sellerReturnPolicy';
10
10
  import { SortType } from './sortType';
11
11
  import { UnitCode } from './unitCode';
12
- export type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url' | 'applicablePaymentMethod'> & {
13
- restockingFee: IRestockingFee;
12
+ export type ISellerMerchantReturnPolicy = Pick<ISellerReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url' | 'applicablePaymentMethod' | 'identifier'> & {
14
13
  /**
15
14
  * ポリシー識別子(プロジェクト自動生成)
16
15
  */
@@ -0,0 +1,41 @@
1
+ import { IMerchantReturnPolicy, IRestockingFee } from './merchantReturnPolicy';
2
+ import { IMultilingualString } from './multilingualString';
3
+ import { IProject } from './project';
4
+ import { SortType } from './sortType';
5
+ export type ISellerReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url' | 'applicablePaymentMethod'> & {
6
+ restockingFee: IRestockingFee;
7
+ } & {
8
+ id?: string;
9
+ identifier: string;
10
+ name: IMultilingualString;
11
+ project: Pick<IProject, 'id' | 'typeOf'>;
12
+ };
13
+ export interface ISearchConditions {
14
+ limit?: number;
15
+ page?: number;
16
+ sort?: {
17
+ identifier?: SortType;
18
+ };
19
+ project?: {
20
+ id?: {
21
+ $eq?: string;
22
+ };
23
+ };
24
+ id?: {
25
+ $eq?: string;
26
+ $in?: string[];
27
+ };
28
+ identifier?: {
29
+ $eq?: string;
30
+ $in?: string[];
31
+ $regex?: string;
32
+ };
33
+ name?: {
34
+ $regex?: string;
35
+ };
36
+ restockingFee?: {
37
+ value?: {
38
+ $eq?: number;
39
+ };
40
+ };
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,10 @@ export interface IAvailableChannel {
28
28
  * 会員オファーを利用可能な注文取引クライアント
29
29
  */
30
30
  memberClients?: string[];
31
+ /**
32
+ * 会員クーポンとして利用可能な決済方法区分
33
+ */
34
+ paymentMethodType4membershipCoupon: string;
31
35
  }
32
36
  /**
33
37
  * 外部サービス設定を含むWebAPI
@@ -1,14 +1,13 @@
1
1
  import { IAttributes as IConfirmReservationActionAttributes, IObject4Chevre, IObject4COA } from '../action/interact/confirm/reservation';
2
2
  import { IExtendId } from '../autoGenerated';
3
- import * as WebAPIFactory from '../service/webAPI';
4
3
  import * as TaskFactory from '../task';
5
4
  import { TaskName } from '../taskName';
6
5
  export type IObject4COAOptimized = Pick<IObject4COA, 'transactionNumber' | 'typeOf'> & {
7
6
  optimized: boolean;
8
7
  };
9
- export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COAOptimized : IObject4Chevre;
10
- export type IData = Pick<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'agent' | 'project' | 'purpose' | 'typeOf'> & {
11
- object: IObject<WebAPIFactory.Identifier>;
8
+ export type IObject = IObject4COAOptimized | IObject4Chevre;
9
+ export type IData = Pick<IConfirmReservationActionAttributes, 'agent' | 'project' | 'purpose' | 'typeOf'> & {
10
+ object: IObject;
12
11
  };
13
12
  export interface IAttributes extends TaskFactory.IAttributes {
14
13
  name: TaskName.ConfirmReserveTransaction;
@@ -1,9 +1,8 @@
1
1
  import { IAttributes as IReturnActionAttributes } from '../action/transfer/return/reserveTransaction';
2
2
  import { IExtendId } from '../autoGenerated';
3
- import * as WebAPIFactory from '../service/webAPI';
4
3
  import * as TaskFactory from '../task';
5
4
  import { TaskName } from '../taskName';
6
- export type IData = Pick<IReturnActionAttributes<WebAPIFactory.Identifier>, 'agent' | 'instrument' | 'object' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
5
+ export type IData = Pick<IReturnActionAttributes, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
7
6
  export interface IAttributes extends TaskFactory.IAttributes {
8
7
  name: TaskName.ReturnReserveTransaction;
9
8
  data: IData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.392.0-alpha.0",
3
+ "version": "4.392.0-alpha.10",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",