@cinerino/sdk 6.0.0 → 6.1.0-alpha.0

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.
@@ -14,13 +14,15 @@ async function main() {
14
14
 
15
15
  const reservationService = await (await client.loadChevreAdmin({
16
16
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
17
- auth: authClient,
17
+ auth: authClient
18
18
  })).createReservationInstance({
19
19
  project,
20
20
  seller: { id: '' }
21
21
  });
22
22
 
23
23
  const { data } = await reservationService.search({
24
+ limit: 10,
25
+ page: 1,
24
26
  typeOf: client.factory.reservationType.EventReservation,
25
27
  $projection: { underName: 0 }
26
28
  });
@@ -71,7 +71,17 @@ export declare class OrderService extends Service {
71
71
  */
72
72
  search(params: Omit<factory.order.ISearchConditions, 'project' | 'provider'> & {
73
73
  $projection?: IProjection;
74
- } & ISearchOrdersOptions): Promise<ISearchResult<IOrderAsSearchResult[] | IOrderAsSearchWithUnwindAcceptedOffersResult[]>>;
74
+ } & ISearchOrdersOptions & {
75
+ /**
76
+ * min: 1
77
+ * max: 20
78
+ */
79
+ limit: number;
80
+ /**
81
+ * min: 1
82
+ */
83
+ page: number;
84
+ }): Promise<ISearchResult<IOrderAsSearchResult[] | IOrderAsSearchWithUnwindAcceptedOffersResult[]>>;
75
85
  /**
76
86
  * 注文取得
77
87
  */
@@ -18,7 +18,17 @@ export declare class ReservationService extends Service {
18
18
  /**
19
19
  * 予約検索
20
20
  */
21
- search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'> & IProjectionSearchConditions<T>): Promise<ISearchResult<factory.reservation.IReservation<T>[]>>;
21
+ search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'> & IProjectionSearchConditions<T> & {
22
+ /**
23
+ * min: 1
24
+ * max: 20
25
+ */
26
+ limit: number;
27
+ /**
28
+ * min: 1
29
+ */
30
+ page: number;
31
+ }): Promise<ISearchResult<factory.reservation.IReservation<T>[]>>;
22
32
  /**
23
33
  * 予約部分更新
24
34
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "6.0.0",
3
+ "version": "6.1.0-alpha.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {