@chevre/factory 11.0.0-alpha.0 → 11.0.0-alpha.2

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.
@@ -191,7 +191,17 @@ export type ICreateParams = Pick<IAttributes, 'name' | 'duration' | 'endDate' |
191
191
  /**
192
192
  * 検索条件
193
193
  */
194
- export interface ISearchConditions extends Pick<IBaseSearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'organizer' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> {
194
+ export interface ISearchConditions extends Pick<IBaseSearchConditions, 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'organizer' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> {
195
+ additionalProperty?: {
196
+ $elemMatch?: {
197
+ name?: {
198
+ /**
199
+ * 一致する名称の追加特性がひとつでも存在する
200
+ */
201
+ $eq?: string;
202
+ };
203
+ };
204
+ };
195
205
  typeOf?: EventType.ScreeningEventSeries;
196
206
  name?: string;
197
207
  location?: {
@@ -365,7 +365,16 @@ export interface IOfferSearchConditions {
365
365
  * イベント検索条件
366
366
  */
367
367
  export interface ISearchConditions extends IBaseSearchConditions {
368
- typeOf?: EventType.ScreeningEvent;
368
+ additionalProperty?: {
369
+ $elemMatch?: {
370
+ name?: {
371
+ /**
372
+ * 一致する名称の追加特性がひとつでも存在する
373
+ */
374
+ $eq?: string;
375
+ };
376
+ };
377
+ };
369
378
  /**
370
379
  * イベントステータス
371
380
  */
@@ -91,16 +91,4 @@ export interface ISearchConditions {
91
91
  * ISO 8601 date format
92
92
  */
93
93
  endThrough?: Date;
94
- additionalProperty?: {
95
- $elemMatch?: {
96
- name?: {
97
- /**
98
- * 一致する名称の追加特性がひとつでも存在する
99
- */
100
- $eq?: string;
101
- };
102
- };
103
- };
104
- typeOfIn?: never;
105
- name?: never;
106
94
  }
@@ -490,7 +490,6 @@ export declare namespace transaction {
490
490
  export import IAgent = TransactionFactory.IAgent;
491
491
  export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
492
492
  export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
493
- export import ISortOrder = TransactionFactory.ISortOrder;
494
493
  export import ITasksExportAction = TransactionFactory.ITasksExportAction;
495
494
  export import placeOrder = PlaceOrderTransactionFactory;
496
495
  export import returnOrder = ReturnOrderTransactionFactory;
@@ -1,7 +1,11 @@
1
1
  import { IExtendId } from '../autoGenerated';
2
2
  import { IClientUser } from '../clientUser';
3
3
  import { CreativeWorkType } from '../creativeWorkType';
4
- import { IAgent as IBaseAgent, ISeller as IBaseSeller, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
4
+ import { IIdentifier } from '../person';
5
+ import { PersonType } from '../personType';
6
+ import { SortType } from '../sortType';
7
+ import { IAgent as IBaseAgent, ISeller as IBaseSeller, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
8
+ import { TransactionStatusType } from '../transactionStatusType';
5
9
  import { TransactionType } from '../transactionType';
6
10
  export interface IMemberOfPayload {
7
11
  iss: string;
@@ -111,7 +115,46 @@ export interface IAttributes extends IBaseAttributes<Omit<IStartParams, 'expires
111
115
  * 注文取引
112
116
  */
113
117
  export type ITransaction = IExtendId<IAttributes>;
114
- export interface ISearchConditions extends IBaseSearchConditions<TransactionType.PlaceOrder> {
118
+ /**
119
+ * ソート条件
120
+ */
121
+ export interface ISortOrder {
122
+ startDate?: SortType;
123
+ }
124
+ export interface ISearchConditions {
125
+ limit?: number;
126
+ page?: number;
127
+ sort?: ISortOrder;
128
+ project?: {
129
+ id?: {
130
+ $eq?: string;
131
+ };
132
+ };
133
+ /**
134
+ * IDリスト
135
+ */
136
+ ids?: string[];
137
+ /**
138
+ * ステータスリスト
139
+ * @deprecated use tasksExportAction
140
+ */
141
+ statuses?: TransactionStatusType[];
142
+ status?: {
143
+ $in?: TransactionStatusType[];
144
+ };
145
+ /**
146
+ * 開始日時(から)
147
+ */
148
+ startFrom?: Date;
149
+ /**
150
+ * 開始日時(まで)
151
+ */
152
+ startThrough?: Date;
153
+ agent?: {
154
+ typeOf?: PersonType.Person | CreativeWorkType.WebApplication;
155
+ ids?: string[];
156
+ identifiers?: IIdentifier;
157
+ };
115
158
  seller?: {
116
159
  ids?: string[];
117
160
  };
@@ -5,9 +5,7 @@ import { ICustomization as IEmailICustomization } from './creativeWork/message/e
5
5
  import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
6
6
  import { IMultilingualString } from './multilingualString';
7
7
  import { OrganizationType } from './organizationType';
8
- import { IIdentifier, IPersonAttributes } from './person';
9
- import { PersonType } from './personType';
10
- import { SortType } from './sortType';
8
+ import { IPersonAttributes } from './person';
11
9
  import { TransactionStatusType } from './transactionStatusType';
12
10
  import { TransactionType } from './transactionType';
13
11
  export interface IAgentAsWebApplication extends Pick<IWebApplication, 'id' | 'identifier' | 'typeOf'> {
@@ -113,62 +111,3 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
113
111
  potentialActions?: TPotentialActions;
114
112
  };
115
113
  export type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
116
- /**
117
- * ソート条件
118
- */
119
- export interface ISortOrder {
120
- startDate?: SortType;
121
- }
122
- export interface ISearchConditions<T extends TransactionType> {
123
- limit?: number;
124
- page?: number;
125
- sort?: ISortOrder;
126
- project?: {
127
- id?: {
128
- $eq?: string;
129
- };
130
- };
131
- /**
132
- * 取引タイプ
133
- */
134
- typeOf: T;
135
- /**
136
- * IDリスト
137
- */
138
- ids?: string[];
139
- /**
140
- * ステータスリスト
141
- * @deprecated use tasksExportAction
142
- */
143
- statuses?: TransactionStatusType[];
144
- status?: {
145
- $in?: TransactionStatusType[];
146
- };
147
- /**
148
- * 開始日時(から)
149
- */
150
- startFrom?: Date;
151
- /**
152
- * 開始日時(まで)
153
- */
154
- startThrough?: Date;
155
- /**
156
- * 終了日時(から)
157
- */
158
- endFrom?: Date;
159
- /**
160
- * 終了日時(まで)
161
- */
162
- endThrough?: Date;
163
- agent?: {
164
- typeOf?: PersonType.Person | IWebApplication['typeOf'];
165
- ids?: string[];
166
- identifiers?: IIdentifier;
167
- };
168
- tasksExportAction?: {
169
- actionStatus?: {
170
- $eq?: ActionStatusType;
171
- $in?: ActionStatusType[];
172
- };
173
- };
174
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "11.0.0-alpha.0",
3
+ "version": "11.0.0-alpha.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [