@chevre/factory 10.3.0-alpha.6 → 10.3.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.
@@ -4,6 +4,8 @@ import { PlaceType } from '../../../placeType';
4
4
  import { TicketType } from '../../../reservation';
5
5
  import { IReservation, IReservationForMinimized } from '../../../reservation/event';
6
6
  import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../use';
7
+ import { ActionStatusType } from './../../../actionStatusType';
8
+ import { SortType } from '../../../sortType';
7
9
  export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
8
10
  /**
9
11
  * 予約使用アクションオブジェクト
@@ -22,8 +24,10 @@ export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reserva
22
24
  reservedTicket?: never;
23
25
  }
24
26
  export type IObject = IReservationAsObject[];
25
- export interface IResult {
26
- }
27
+ /**
28
+ * 現時点でresultは存在しない(2026-08-14)
29
+ */
30
+ export type IResult = never;
27
31
  export interface ILocation {
28
32
  typeOf: PlaceType.Place;
29
33
  /**
@@ -38,19 +42,36 @@ export interface ITicketAsInstrument {
38
42
  */
39
43
  ticketToken?: string;
40
44
  typeOf: TicketType;
41
- /**
42
- * JWT
43
- * discontinue(2024-10-03~)
44
- */
45
- token?: never;
46
45
  }
47
46
  export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
48
- export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
47
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'object' | 'project' | 'typeOf' | 'error'> {
49
48
  agent: IAgent;
50
49
  instrument: IInstrument[];
51
50
  location?: ILocation;
52
51
  }
53
52
  /**
54
- * use reservation action
53
+ * 予約使用アクション
55
54
  */
56
55
  export type IAction = IBaseAction<IAttributes>;
56
+ export interface IFindParams {
57
+ limit?: number;
58
+ page?: number;
59
+ sort?: {
60
+ startDate?: SortType;
61
+ };
62
+ startFrom?: Date;
63
+ startThrough?: Date;
64
+ project?: {
65
+ id?: {
66
+ $eq?: string;
67
+ };
68
+ };
69
+ actionStatus?: ActionStatusType;
70
+ id?: string;
71
+ object?: {
72
+ /**
73
+ * 予約ID
74
+ */
75
+ id?: string;
76
+ };
77
+ }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
@@ -48,7 +48,7 @@ export interface IResult {
48
48
  statusCode?: number;
49
49
  useFetchAPI?: boolean;
50
50
  }
51
- export interface IAttributes extends Pick<IBaseAttributes<ActionType.InformAction, IObject, IResult>, 'object' | 'project' | 'result' | 'typeOf'> {
51
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.InformAction, IObject, IResult>, 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
52
52
  agent: IAgent;
53
53
  recipient: IRecipient;
54
54
  target: IEntryPoint;
@@ -4,6 +4,7 @@ import { IInstrumentAsApplication } from './instrumentAsApplication';
4
4
  import { IObject } from './update/object';
5
5
  import { IResult } from './update/result';
6
6
  import { ITargetCollection } from './update/targetCollection';
7
+ import { SortType } from '../../sortType';
7
8
  export * from './update/object';
8
9
  export * from './update/result';
9
10
  export * from './update/targetCollection';
@@ -21,3 +22,25 @@ export interface IAttributes extends Pick<IBaseAttributes<ActionType.UpdateActio
21
22
  * 編集アクション
22
23
  */
23
24
  export type IAction = IBaseAction<IAttributes>;
25
+ export interface IFindParams {
26
+ limit?: number;
27
+ page?: number;
28
+ sort?: {
29
+ startDate?: SortType;
30
+ };
31
+ startFrom?: Date;
32
+ startThrough?: Date;
33
+ project?: {
34
+ id?: {
35
+ $eq?: string;
36
+ };
37
+ };
38
+ id?: string;
39
+ typeOf?: ActionType.AddAction | ActionType.UpdateAction | ActionType.ReplaceAction | ActionType.DeleteAction;
40
+ object?: {
41
+ id?: string;
42
+ };
43
+ result?: {
44
+ id?: string;
45
+ };
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.3.0-alpha.6",
3
+ "version": "10.3.0-alpha.7",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [