@cinerino/sdk 10.19.0 → 10.20.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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
export declare type IAvailablePriceSpecificationType = factory.priceSpecificationType.CategoryCodeChargeSpecification | factory.priceSpecificationType.MovieTicketTypeChargeSpecification;
|
|
4
4
|
export import IPriceSpecification = factory.priceSpecification.IPriceSpecification;
|
|
5
5
|
/**
|
|
6
6
|
* 価格仕様サービス
|
|
7
7
|
*/
|
|
8
8
|
export declare class PriceSpecificationService extends Service {
|
|
9
|
-
create<T extends IAvailablePriceSpecificationType>(params: IPriceSpecification<T>): Promise<{
|
|
9
|
+
create<T extends IAvailablePriceSpecificationType>(params: Omit<IPriceSpecification<T>, 'id'>): Promise<{
|
|
10
10
|
id: string;
|
|
11
11
|
}>;
|
|
12
12
|
/**
|
|
@@ -15,10 +15,9 @@ export declare class PriceSpecificationService extends Service {
|
|
|
15
15
|
search<T extends IAvailablePriceSpecificationType>(params: factory.priceSpecification.ISearchConditions<T>): Promise<{
|
|
16
16
|
data: IPriceSpecification<T>[];
|
|
17
17
|
}>;
|
|
18
|
-
|
|
18
|
+
update<T extends IAvailablePriceSpecificationType>(params: IPriceSpecification<T> & {
|
|
19
19
|
id: string;
|
|
20
|
-
}): Promise<
|
|
21
|
-
update<T extends IAvailablePriceSpecificationType>(params: IPriceSpecification<T> & IUnset): Promise<void>;
|
|
20
|
+
}): Promise<void>;
|
|
22
21
|
/**
|
|
23
22
|
* 価格仕様削除
|
|
24
23
|
*/
|
|
@@ -106,22 +106,9 @@ var PriceSpecificationService = /** @class */ (function (_super) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
PriceSpecificationService.prototype.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
return [2 /*return*/, this.fetch({
|
|
114
|
-
uri: "/priceSpecifications/" + encodeURIComponent(String(params.id)),
|
|
115
|
-
method: 'GET',
|
|
116
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
117
|
-
})
|
|
118
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
119
|
-
return [2 /*return*/, response.json()];
|
|
120
|
-
}); }); })];
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
PriceSpecificationService.prototype.update = function (params) {
|
|
109
|
+
PriceSpecificationService.prototype.update = function (params
|
|
110
|
+
// & IUnset
|
|
111
|
+
) {
|
|
125
112
|
return __awaiter(this, void 0, void 0, function () {
|
|
126
113
|
return __generator(this, function (_a) {
|
|
127
114
|
switch (_a.label) {
|
package/lib/bundle.js
CHANGED
|
@@ -10442,22 +10442,9 @@ var PriceSpecificationService = /** @class */ (function (_super) {
|
|
|
10442
10442
|
});
|
|
10443
10443
|
});
|
|
10444
10444
|
};
|
|
10445
|
-
PriceSpecificationService.prototype.
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
return __generator(this, function (_a) {
|
|
10449
|
-
return [2 /*return*/, this.fetch({
|
|
10450
|
-
uri: "/priceSpecifications/" + encodeURIComponent(String(params.id)),
|
|
10451
|
-
method: 'GET',
|
|
10452
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
10453
|
-
})
|
|
10454
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
10455
|
-
return [2 /*return*/, response.json()];
|
|
10456
|
-
}); }); })];
|
|
10457
|
-
});
|
|
10458
|
-
});
|
|
10459
|
-
};
|
|
10460
|
-
PriceSpecificationService.prototype.update = function (params) {
|
|
10445
|
+
PriceSpecificationService.prototype.update = function (params
|
|
10446
|
+
// & IUnset
|
|
10447
|
+
) {
|
|
10461
10448
|
return __awaiter(this, void 0, void 0, function () {
|
|
10462
10449
|
return __generator(this, function (_a) {
|
|
10463
10450
|
switch (_a.label) {
|