@cinerino/sdk 3.160.0 → 3.161.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.
- package/example/src/chevre/assetTransaction/processReserve.ts +2 -2
- package/lib/abstract/chevre/order.d.ts +1 -1
- package/lib/abstract/chevre/reservation.d.ts +3 -6
- package/lib/abstract/chevre/reservation.js +0 -14
- package/lib/abstract/service/order.d.ts +1 -1
- package/lib/abstract/service/reservation.d.ts +1 -1
- package/lib/bundle.js +1 -15
- package/package.json +2 -2
|
@@ -122,7 +122,7 @@ async function main() {
|
|
|
122
122
|
console.log('予約を開始しました', transaction.object.subReservation?.map((r) => r.id)
|
|
123
123
|
.join(','));
|
|
124
124
|
console.log(transaction.object.subReservation?.map((r) => {
|
|
125
|
-
return `${r.id} ${r.reservationNumber} ${r.
|
|
125
|
+
return `${r.id} ${r.reservationNumber} ${r.underName?.name}`;
|
|
126
126
|
})
|
|
127
127
|
.join('\n'));
|
|
128
128
|
|
|
@@ -175,7 +175,7 @@ async function main() {
|
|
|
175
175
|
console.log('予約を開始しました', transaction.object.subReservation?.map((r) => r.id)
|
|
176
176
|
.join(','));
|
|
177
177
|
console.log(transaction.object.subReservation?.map((r) => {
|
|
178
|
-
return `${r.id} ${r.reservationNumber} ${r.
|
|
178
|
+
return `${r.id} ${r.reservationNumber} ${r.underName?.name}`;
|
|
179
179
|
})
|
|
180
180
|
.join('\n'));
|
|
181
181
|
|
|
@@ -101,7 +101,7 @@ export declare class OrderService extends Service<IOptions & IAdditionalOptions>
|
|
|
101
101
|
/**
|
|
102
102
|
* 注文を検索する
|
|
103
103
|
*/
|
|
104
|
-
search(params: Omit<factory.order.ISearchConditions, 'project'> & IProjectionSearchConditions & ISearchOrdersOptions): Promise<ISearchResult<factory.order.IOrder[]>>;
|
|
104
|
+
search(params: Omit<factory.order.ISearchConditions, 'project' | 'provider'> & IProjectionSearchConditions & ISearchOrdersOptions): Promise<ISearchResult<factory.order.IOrder[]>>;
|
|
105
105
|
/**
|
|
106
106
|
* 注文取得
|
|
107
107
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import { IProjectionSearchConditions, ISearchResult, Service } from '../service';
|
|
2
|
+
import { IAdditionalOptions, IOptions, IProjectionSearchConditions, ISearchResult, Service } from '../service';
|
|
3
3
|
import { IUseAction } from './reservation/factory';
|
|
4
4
|
export interface IUseActionResult {
|
|
5
5
|
id: string;
|
|
@@ -7,14 +7,11 @@ export interface IUseActionResult {
|
|
|
7
7
|
/**
|
|
8
8
|
* 予約サービス
|
|
9
9
|
*/
|
|
10
|
-
export declare class ReservationService extends Service {
|
|
10
|
+
export declare class ReservationService extends Service<IOptions & IAdditionalOptions> {
|
|
11
11
|
/**
|
|
12
12
|
* 予約検索
|
|
13
13
|
*/
|
|
14
|
-
search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<factory.reservation.IReservation<T>[]>>;
|
|
15
|
-
/**
|
|
16
|
-
* 予約取得
|
|
17
|
-
*/
|
|
14
|
+
search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'> & IProjectionSearchConditions): Promise<ISearchResult<factory.reservation.IReservation<T>[]>>;
|
|
18
15
|
/**
|
|
19
16
|
* 予約部分更新
|
|
20
17
|
*/
|
|
@@ -90,20 +90,6 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
-
/**
|
|
94
|
-
* 予約取得
|
|
95
|
-
*/
|
|
96
|
-
// public async findById<T extends factory.reservationType>(params: {
|
|
97
|
-
// id: string;
|
|
98
|
-
// }): Promise<factory.reservation.IReservation<T>> {
|
|
99
|
-
// return this.fetch({
|
|
100
|
-
// uri: `/reservations/${encodeURIComponent(String(params.id))}`,
|
|
101
|
-
// method: 'GET',
|
|
102
|
-
// // qs: params,
|
|
103
|
-
// expectedStatusCodes: [OK]
|
|
104
|
-
// })
|
|
105
|
-
// .then(async (response) => response.json());
|
|
106
|
-
// }
|
|
107
93
|
/**
|
|
108
94
|
* 予約部分更新
|
|
109
95
|
*/
|
|
@@ -121,7 +121,7 @@ export declare class OrderService extends Service {
|
|
|
121
121
|
/**
|
|
122
122
|
* 注文を検索する
|
|
123
123
|
*/
|
|
124
|
-
search(params: Omit<factory.order.ISearchConditions, 'project'> & ISearchOrdersOptions): Promise<ISearchResult<Omit<factory.order.IOrder, 'acceptedOffers' | 'discounts' | 'identifier' | 'isGift' | 'returner' | 'url'>[]>>;
|
|
124
|
+
search(params: Omit<factory.order.ISearchConditions, 'project' | 'provider'> & ISearchOrdersOptions): Promise<ISearchResult<Omit<factory.order.IOrder, 'acceptedOffers' | 'discounts' | 'identifier' | 'isGift' | 'returner' | 'url'>[]>>;
|
|
125
125
|
/**
|
|
126
126
|
* 返品者検索
|
|
127
127
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class ReservationService extends Service {
|
|
|
8
8
|
/**
|
|
9
9
|
* 予約検索
|
|
10
10
|
*/
|
|
11
|
-
search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project'>): Promise<{
|
|
11
|
+
search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'>): Promise<{
|
|
12
12
|
data: factory.reservation.IReservation<T>[];
|
|
13
13
|
}>;
|
|
14
14
|
/**
|
package/lib/bundle.js
CHANGED
|
@@ -8326,20 +8326,6 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
8326
8326
|
});
|
|
8327
8327
|
});
|
|
8328
8328
|
};
|
|
8329
|
-
/**
|
|
8330
|
-
* 予約取得
|
|
8331
|
-
*/
|
|
8332
|
-
// public async findById<T extends factory.reservationType>(params: {
|
|
8333
|
-
// id: string;
|
|
8334
|
-
// }): Promise<factory.reservation.IReservation<T>> {
|
|
8335
|
-
// return this.fetch({
|
|
8336
|
-
// uri: `/reservations/${encodeURIComponent(String(params.id))}`,
|
|
8337
|
-
// method: 'GET',
|
|
8338
|
-
// // qs: params,
|
|
8339
|
-
// expectedStatusCodes: [OK]
|
|
8340
|
-
// })
|
|
8341
|
-
// .then(async (response) => response.json());
|
|
8342
|
-
// }
|
|
8343
8329
|
/**
|
|
8344
8330
|
* 予約部分更新
|
|
8345
8331
|
*/
|
|
@@ -17958,7 +17944,7 @@ var ReservationStatusType;
|
|
|
17958
17944
|
/**
|
|
17959
17945
|
* The status of a reservation on hold pending an update like credit card number or flight changes.
|
|
17960
17946
|
*/
|
|
17961
|
-
|
|
17947
|
+
// ReservationHold = 'ReservationHold',
|
|
17962
17948
|
/**
|
|
17963
17949
|
* The status of a reservation when a request has been sent, but not confirmed.
|
|
17964
17950
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.161.0-alpha.0",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"watchify": "^3.11.1"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@chevre/factory": "4.
|
|
100
|
+
"@chevre/factory": "4.316.0-alpha.1",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|