@chevre/factory 4.259.0-alpha.6 → 4.259.0-alpha.7

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.
@@ -32,8 +32,8 @@ export interface IResult {
32
32
  price: number;
33
33
  priceCurrency: PriceCurrency;
34
34
  acceptedOffers: IResultAcceptedOffer;
35
- requestBody?: any;
36
- responseBody: any;
35
+ requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
36
+ responseBody: RegisterServiceTransactionFactory.ITransaction;
37
37
  }
38
38
  export interface IPurpose {
39
39
  typeOf: TransactionType.PlaceOrder;
@@ -17,7 +17,7 @@ export declare enum ObjectType {
17
17
  SeatReservation = "SeatReservation"
18
18
  }
19
19
  export declare type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
20
- export declare type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : any;
20
+ export declare type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? ReserveTransactionFactory.IStartParamsWithoutDetail : never;
21
21
  export declare type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? ReserveTransactionFactory.ITransaction : ReserveTransactionFactory.ITransaction;
22
22
  export declare type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
23
23
  /**
@@ -41,7 +41,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
41
41
  /**
42
42
  * 外部サービスへのリクエスト
43
43
  */
44
- requestBody?: IRequestBody<T>;
44
+ requestBody: IRequestBody<T>;
45
45
  /**
46
46
  * 外部サービスからのレスポンス
47
47
  */
@@ -72,9 +72,9 @@ export interface IObjectWithoutDetail4COA {
72
72
  id: string;
73
73
  };
74
74
  }
75
- export declare type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : any;
76
- export declare type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : any;
77
- export declare type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : any;
75
+ export declare type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : never;
76
+ export declare type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
77
+ export declare type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
78
78
  export interface IPendingTransaction {
79
79
  typeOf: AssetTransactionType.Reserve;
80
80
  transactionNumber: string;
@@ -4,7 +4,8 @@ import { IReservation } from '../../../reservation/event';
4
4
  import * as UseActionFactory from '../use';
5
5
  export declare type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
6
6
  export declare type IObject = IReservation[];
7
- export declare type IResult = any;
7
+ export interface IResult {
8
+ }
8
9
  export interface ILocation {
9
10
  typeOf: PlaceType.Place;
10
11
  /**
@@ -6,8 +6,7 @@ export declare type IPurpose = ISimpleOrder;
6
6
  export interface IPayAssetTransaction {
7
7
  typeOf: AssetTransactionType.Pay;
8
8
  /**
9
- * 決済方法
10
- * 廃止(2022-05-17~)
9
+ * 決済取引番号
11
10
  */
12
11
  transactionNumber: string;
13
12
  }
@@ -96,7 +96,7 @@ export interface IPaymentService {
96
96
  serviceOutput?: IPaymentServiceOutput;
97
97
  }
98
98
  export declare type IObject = IPaymentService[];
99
- export declare type IInformPayment = IInformActionAttributes<any, any>;
99
+ export declare type IInformPayment = IInformActionAttributes<{}, undefined>;
100
100
  export interface IPotentialActions {
101
101
  informPayment?: IInformPayment[];
102
102
  }
@@ -9,7 +9,7 @@ export declare type IPaymentService = IPaymentServiceOnPay & {
9
9
  };
10
10
  export declare type IObject = IPaymentService[];
11
11
  export declare type IResult = any;
12
- export declare type IInformPayment = IInformActionAttributes<any, any>;
12
+ export declare type IInformPayment = IInformActionAttributes<{}, undefined>;
13
13
  export interface IPotentialActions {
14
14
  informPayment?: IInformPayment[];
15
15
  }
@@ -1,5 +1,6 @@
1
1
  import { IProject } from './project';
2
2
  import { IPropertyValue } from './propertyValue';
3
+ import { SortType } from './sortType';
3
4
  import { IThing } from './thing';
4
5
  export declare enum CategorySetIdentifier {
5
6
  /**
@@ -77,7 +78,9 @@ export interface ICategoryCode extends IThing {
77
78
  export interface ISearchConditions {
78
79
  limit?: number;
79
80
  page?: number;
80
- sort?: any;
81
+ sort?: {
82
+ codeValue?: SortType;
83
+ };
81
84
  project?: {
82
85
  id?: {
83
86
  $eq?: string;
@@ -32,7 +32,7 @@ export interface ISoundFormat {
32
32
  */
33
33
  export declare type IWorkPerformed = Pick<IMovie, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration' | 'contentRating'>;
34
34
  export interface IOrganizer {
35
- typeOf: OrganizationType;
35
+ typeOf: OrganizationType.Corporation;
36
36
  identifier: string;
37
37
  name: IMultilingualString;
38
38
  }
@@ -66,7 +66,27 @@ export interface ICOAInfo {
66
66
  */
67
67
  dateMvtkBegin: string;
68
68
  }
69
- export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventType.ScreeningEventSeries> {
69
+ export interface ILocation {
70
+ project: IProject;
71
+ typeOf: PlaceType.MovieTheater;
72
+ /**
73
+ * 施設ID
74
+ */
75
+ id: string;
76
+ /**
77
+ * コード
78
+ */
79
+ branchCode: string;
80
+ /**
81
+ * 名称
82
+ */
83
+ name?: IMultilingualString;
84
+ /**
85
+ * カナ名称
86
+ */
87
+ kanaName?: string;
88
+ }
89
+ export interface IAttributes extends Omit<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'alternateName' | 'doorTime' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'> {
70
90
  /**
71
91
  * 字幕利用可能言語
72
92
  */
@@ -88,47 +108,25 @@ export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventTy
88
108
  */
89
109
  workPerformed: IWorkPerformed;
90
110
  /**
91
- * 上映場所
111
+ * 施設
92
112
  */
93
- location: {
94
- project: IProject;
95
- typeOf: PlaceType.MovieTheater;
96
- /**
97
- * 場所ID
98
- */
99
- id: string;
100
- /**
101
- * 施設コード
102
- */
103
- branchCode: string;
104
- /**
105
- * 場所名称
106
- */
107
- name?: IMultilingualString;
108
- /**
109
- * 場所名称(カナ)
110
- */
111
- kanaName?: string;
112
- alternateName?: IMultilingualString;
113
- description?: IMultilingualString;
114
- address?: IMultilingualString;
115
- };
113
+ location: ILocation;
116
114
  organizer?: IOrganizer;
117
115
  /**
118
- * 名称(カナ)
116
+ * カナ名称
119
117
  */
120
118
  kanaName: string;
121
119
  /**
122
- * イベント名称
120
+ * 名称
123
121
  */
124
122
  name: IMultilingualString;
125
123
  /**
126
- * 公演終了予定日
124
+ * 終了日時
127
125
  * ISO 8601 date format
128
126
  */
129
127
  endDate?: Date;
130
128
  /**
131
- * 公演開始予定日
129
+ * 開始日時
132
130
  * ISO 8601 date format
133
131
  */
134
132
  startDate?: Date;
@@ -142,7 +140,6 @@ export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventTy
142
140
  */
143
141
  coaInfo?: ICOAInfo;
144
142
  }
145
- export declare type IAttributes = Omit<IEventSeriesAttributes, 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'>;
146
143
  /**
147
144
  * 施設コンテンツ
148
145
  */
@@ -170,7 +167,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
170
167
  };
171
168
  workPerformed?: {
172
169
  /**
173
- * イベントで上演されるコンテンツコードリスト
170
+ * コンテンツコード
174
171
  */
175
172
  identifiers?: string[];
176
173
  };
@@ -21,7 +21,7 @@ export interface IAttributes<T extends EventType> {
21
21
  /**
22
22
  * イベント識別子
23
23
  */
24
- identifier?: any;
24
+ identifier?: string;
25
25
  /**
26
26
  * イベント名称
27
27
  */
@@ -95,9 +95,6 @@ export declare type IEvent<T extends IAttributes<EventType>> = T & {
95
95
  * ソート条件インターフェース
96
96
  */
97
97
  export interface ISortOrder {
98
- name?: string;
99
- doorTime?: SortType;
100
- endDate?: SortType;
101
98
  startDate?: SortType;
102
99
  }
103
100
  export interface ISearchConditions<T extends EventType> {
@@ -1,6 +1,7 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
2
  import { OrganizationType } from './organizationType';
3
3
  import { PersonType } from './personType';
4
+ import { SortType } from './sortType';
4
5
  export declare enum RoleType {
5
6
  OrganizationRole = "OrganizationRole"
6
7
  }
@@ -19,7 +20,9 @@ export interface IRole {
19
20
  export interface IRoleSearchConditions {
20
21
  limit?: number;
21
22
  page?: number;
22
- sort?: any;
23
+ sort?: {
24
+ roleName?: SortType;
25
+ };
23
26
  roleName?: {
24
27
  $eq?: string;
25
28
  $in?: string[];
@@ -49,7 +52,9 @@ export interface IMember {
49
52
  export interface ISearchConditions {
50
53
  limit?: number;
51
54
  page?: number;
52
- sort?: any;
55
+ sort?: {
56
+ 'member.id'?: SortType;
57
+ };
53
58
  id?: {
54
59
  $eq?: string;
55
60
  };
@@ -7,7 +7,7 @@ import { PaymentServiceType } from './service/paymentService';
7
7
  export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
8
8
  export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
9
9
  export interface IReferenceOrder extends OrderFactory.IOrder {
10
- acceptedOffers: OrderFactory.IAcceptedOffer<any>[];
10
+ acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
11
11
  }
12
12
  export interface IMovieTicketAsPaymentServiceOutput {
13
13
  /**
@@ -27,7 +27,6 @@ export interface ICategory {
27
27
  project: Pick<IProject, 'id' | 'typeOf'>;
28
28
  id?: string;
29
29
  codeValue?: string;
30
- name?: any;
31
30
  }
32
31
  /**
33
32
  * アドオンインターフェース
@@ -71,6 +70,9 @@ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy,
71
70
  identifier: string;
72
71
  })[];
73
72
  export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
73
+ export interface IAvailableAtOrFrom {
74
+ id: string;
75
+ }
74
76
  /**
75
77
  * offer interface
76
78
  * An offer to transfer some rights to an item or to provide a service
@@ -106,7 +108,7 @@ export interface IOffer extends IThing {
106
108
  /**
107
109
  * The place(s) from which the offer can be obtained (e.g. store locations).
108
110
  */
109
- availableAtOrFrom?: any;
111
+ availableAtOrFrom?: IAvailableAtOrFrom[];
110
112
  /**
111
113
  * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
112
114
  */
@@ -149,7 +151,6 @@ export interface IOffer extends IThing {
149
151
  * The item being offered.
150
152
  */
151
153
  itemOffered?: any;
152
- offeredBy?: any;
153
154
  /**
154
155
  * オファー供給サービス
155
156
  */
@@ -86,7 +86,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
86
86
  /**
87
87
  * 識別子
88
88
  */
89
- identifier?: any;
89
+ identifier?: string;
90
90
  /**
91
91
  * owned by whom
92
92
  * Array対応(2022-07-25~)
@@ -34,7 +34,6 @@ export interface IPermit extends IThing {
34
34
  /**
35
35
  * The target audience for this permit.
36
36
  */
37
- permitAudience?: any;
38
37
  /**
39
38
  * The duration of validity of a permit or similar thing.
40
39
  */
@@ -46,7 +45,6 @@ export interface IPermit extends IThing {
46
45
  /**
47
46
  * The geographic area where a permit or similar thing is valid.
48
47
  */
49
- validIn?: any;
50
48
  /**
51
49
  * The date when the item is no longer valid.
52
50
  */
@@ -4,6 +4,7 @@ import * as PlaceFactory from '../place';
4
4
  import { PlaceType } from '../placeType';
5
5
  import { IQuantitativeValue } from '../quantitativeValue';
6
6
  import { ISeller } from '../seller';
7
+ import { SortType } from '../sortType';
7
8
  import { UnitCode } from '../unitCode';
8
9
  import { IPlace as IScreeningRoom } from './screeningRoom';
9
10
  /**
@@ -75,7 +76,7 @@ export interface IPlaceWithoutScreeningRoom extends PlaceFactory.IPlace {
75
76
  */
76
77
  name: IMultilingualString;
77
78
  /**
78
- * 名称(カナ)
79
+ * カナ名称
79
80
  */
80
81
  kanaName: string;
81
82
  /**
@@ -103,7 +104,9 @@ export declare type IPlace = IPlaceWithoutScreeningRoom & {
103
104
  /**
104
105
  * ソート条件インターフェース
105
106
  */
106
- export declare type ISortOrder = any;
107
+ export interface ISortOrder {
108
+ branchCode?: SortType;
109
+ }
107
110
  export interface ISearchConditions {
108
111
  limit?: number;
109
112
  page?: number;
@@ -16,7 +16,6 @@ export interface IPlace extends IThing {
16
16
  containsPlace?: IPlace[];
17
17
  maximumAttendeeCapacity?: number;
18
18
  name?: IMultilingualString;
19
- openingHoursSpecification?: any;
20
19
  openSeatingAllowed?: boolean;
21
20
  smokingAllowed?: boolean;
22
21
  telephone?: string;
@@ -77,7 +77,15 @@ export interface ISearchConditions<T extends PriceSpecificationType> {
77
77
  ids?: string[];
78
78
  typeOf?: T;
79
79
  appliesToCategoryCode?: {
80
- $elemMatch?: any;
80
+ $elemMatch?: {
81
+ codeValue?: {
82
+ $eq?: string;
83
+ $in?: string[];
84
+ };
85
+ 'inCodeSet.identifier'?: {
86
+ $eq?: string;
87
+ };
88
+ };
81
89
  codeValue?: {
82
90
  $eq?: string;
83
91
  $in?: string[];
@@ -45,7 +45,7 @@ export interface ISortOrder {
45
45
  export interface ISearchConditions {
46
46
  limit?: number;
47
47
  page?: number;
48
- sort?: any;
48
+ sort?: ISortOrder;
49
49
  project?: {
50
50
  id?: {
51
51
  $eq?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.259.0-alpha.6",
3
+ "version": "4.259.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",