@cinerino/sdk 5.0.0-alpha.7 → 5.0.0-alpha.8
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/lib/abstract/default.d.ts +1 -1
- package/lib/abstract/default.js +1 -1
- package/lib/abstract/service/categoryCode.d.ts +1 -1
- package/lib/abstract/service/creativeWork.d.ts +2 -2
- package/lib/abstract/service/creativeWork.js +1 -1
- package/lib/abstract/service/seller.d.ts +18 -2
- package/lib/abstract/service/seller.js +1 -0
- package/lib/bundle.js +4 -173
- package/package.json +1 -1
package/lib/abstract/default.js
CHANGED
|
@@ -8,6 +8,6 @@ export declare class CategoryCodeService extends Service {
|
|
|
8
8
|
* 検索
|
|
9
9
|
*/
|
|
10
10
|
search(params: Omit<factory.categoryCode.ISearchConditions, 'project'>): Promise<{
|
|
11
|
-
data: factory.categoryCode.ICategoryCode[];
|
|
11
|
+
data: Omit<factory.categoryCode.ICategoryCode, 'id' | 'inCodeSet' | 'project'>[];
|
|
12
12
|
}>;
|
|
13
13
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { ISearchResult, Service } from '../service';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* コンテンツサービス
|
|
5
5
|
*/
|
|
6
6
|
export declare class CreativeWorkService extends Service {
|
|
7
7
|
/**
|
|
8
8
|
* コンテンツ検索
|
|
9
9
|
*/
|
|
10
|
-
searchMovies(params: Omit<factory.creativeWork.movie.ISearchConditions, 'project'>): Promise<ISearchResult<factory.creativeWork.movie.ICreativeWork[]>>;
|
|
10
|
+
searchMovies(params: Omit<factory.creativeWork.movie.ISearchConditions, 'project'>): Promise<ISearchResult<Omit<factory.creativeWork.movie.ICreativeWork, 'offers' | 'project'>[]>>;
|
|
11
11
|
}
|
|
@@ -55,7 +55,7 @@ exports.CreativeWorkService = void 0;
|
|
|
55
55
|
var http_status_1 = require("http-status");
|
|
56
56
|
var service_1 = require("../service");
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* コンテンツサービス
|
|
59
59
|
*/
|
|
60
60
|
var CreativeWorkService = /** @class */ (function (_super) {
|
|
61
61
|
__extends(CreativeWorkService, _super);
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IPaymentAccepted, IPaymentServiceByProvider, ISearchPaymentServiceConditions } from '../chevre/seller/factory';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
3
|
import { IOptions, ISearchResult, Service } from '../service';
|
|
4
|
+
declare type IKeyOfProjection = keyof Omit<factory.seller.ISeller, 'makesOffer' | 'paymentAccepted'>;
|
|
5
|
+
declare type IProjection = {
|
|
6
|
+
[key in IKeyOfProjection]?: 0;
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* 販売者サービス
|
|
6
10
|
*/
|
|
@@ -10,11 +14,22 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
10
14
|
*/
|
|
11
15
|
findById(params: {
|
|
12
16
|
id: string;
|
|
13
|
-
|
|
17
|
+
qs?: {
|
|
18
|
+
/**
|
|
19
|
+
* 取得属性指定
|
|
20
|
+
*/
|
|
21
|
+
$projection?: IProjection;
|
|
22
|
+
};
|
|
23
|
+
}): Promise<Omit<factory.seller.ISeller, 'makesOffer' | 'paymentAccepted' | 'project'>>;
|
|
14
24
|
/**
|
|
15
25
|
* 販売者検索
|
|
16
26
|
*/
|
|
17
|
-
search(params: Omit<factory.seller.ISearchConditions, 'project' | 'id'>
|
|
27
|
+
search(params: Omit<factory.seller.ISearchConditions, 'project' | 'id'> & {
|
|
28
|
+
/**
|
|
29
|
+
* 取得属性指定
|
|
30
|
+
*/
|
|
31
|
+
$projection?: IProjection;
|
|
32
|
+
}): Promise<ISearchResult<Omit<factory.seller.ISeller, 'hasMerchantReturnPolicy' | 'makesOffer' | 'paymentAccepted' | 'project'>[]>>;
|
|
18
33
|
/**
|
|
19
34
|
* 提供決済サービス検索(public)
|
|
20
35
|
*/
|
|
@@ -45,3 +60,4 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
45
60
|
};
|
|
46
61
|
}): Promise<ISearchResult<IPaymentAccepted[]>>;
|
|
47
62
|
}
|
|
63
|
+
export {};
|
|
@@ -72,6 +72,7 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
72
72
|
return [2 /*return*/, this.fetch({
|
|
73
73
|
uri: "/sellers/" + params.id,
|
|
74
74
|
method: 'GET',
|
|
75
|
+
qs: params.qs,
|
|
75
76
|
expectedStatusCodes: [http_status_1.OK]
|
|
76
77
|
})
|
|
77
78
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
package/lib/bundle.js
CHANGED
|
@@ -13409,7 +13409,7 @@ var service;
|
|
|
13409
13409
|
}(categoryCode_1.CategoryCodeService));
|
|
13410
13410
|
service.CategoryCode = CategoryCode;
|
|
13411
13411
|
/**
|
|
13412
|
-
*
|
|
13412
|
+
* コンテンツサービス
|
|
13413
13413
|
*/
|
|
13414
13414
|
var CreativeWork = /** @class */ (function (_super) {
|
|
13415
13415
|
__extends(CreativeWork, _super);
|
|
@@ -14393,7 +14393,7 @@ exports.CreativeWorkService = void 0;
|
|
|
14393
14393
|
var http_status_1 = require("http-status");
|
|
14394
14394
|
var service_1 = require("../service");
|
|
14395
14395
|
/**
|
|
14396
|
-
*
|
|
14396
|
+
* コンテンツサービス
|
|
14397
14397
|
*/
|
|
14398
14398
|
var CreativeWorkService = /** @class */ (function (_super) {
|
|
14399
14399
|
__extends(CreativeWorkService, _super);
|
|
@@ -17013,177 +17013,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17013
17013
|
__exportStar(require("../../chevre/reservation/factory"), exports);
|
|
17014
17014
|
|
|
17015
17015
|
},{"../../chevre/reservation/factory":18}],107:[function(require,module,exports){
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
var extendStatics = function (d, b) {
|
|
17019
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17020
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17021
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17022
|
-
return extendStatics(d, b);
|
|
17023
|
-
};
|
|
17024
|
-
return function (d, b) {
|
|
17025
|
-
if (typeof b !== "function" && b !== null)
|
|
17026
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17027
|
-
extendStatics(d, b);
|
|
17028
|
-
function __() { this.constructor = d; }
|
|
17029
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17030
|
-
};
|
|
17031
|
-
})();
|
|
17032
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17033
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17034
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17035
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17036
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17037
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17038
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17039
|
-
});
|
|
17040
|
-
};
|
|
17041
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
17042
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17043
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17044
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17045
|
-
function step(op) {
|
|
17046
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17047
|
-
while (_) try {
|
|
17048
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17049
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17050
|
-
switch (op[0]) {
|
|
17051
|
-
case 0: case 1: t = op; break;
|
|
17052
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17053
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17054
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17055
|
-
default:
|
|
17056
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17057
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17058
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17059
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17060
|
-
if (t[2]) _.ops.pop();
|
|
17061
|
-
_.trys.pop(); continue;
|
|
17062
|
-
}
|
|
17063
|
-
op = body.call(thisArg, _);
|
|
17064
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17065
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17066
|
-
}
|
|
17067
|
-
};
|
|
17068
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17069
|
-
exports.SellerService = void 0;
|
|
17070
|
-
var http_status_1 = require("http-status");
|
|
17071
|
-
var service_1 = require("../service");
|
|
17072
|
-
/**
|
|
17073
|
-
* 販売者サービス
|
|
17074
|
-
*/
|
|
17075
|
-
var SellerService = /** @class */ (function (_super) {
|
|
17076
|
-
__extends(SellerService, _super);
|
|
17077
|
-
function SellerService() {
|
|
17078
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17079
|
-
}
|
|
17080
|
-
/**
|
|
17081
|
-
* 販売者取得
|
|
17082
|
-
*/
|
|
17083
|
-
SellerService.prototype.findById = function (params) {
|
|
17084
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17085
|
-
var _this = this;
|
|
17086
|
-
return __generator(this, function (_a) {
|
|
17087
|
-
return [2 /*return*/, this.fetch({
|
|
17088
|
-
uri: "/sellers/" + params.id,
|
|
17089
|
-
method: 'GET',
|
|
17090
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
17091
|
-
})
|
|
17092
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
17093
|
-
return [2 /*return*/, response.json()];
|
|
17094
|
-
}); }); })];
|
|
17095
|
-
});
|
|
17096
|
-
});
|
|
17097
|
-
};
|
|
17098
|
-
/**
|
|
17099
|
-
* 販売者検索
|
|
17100
|
-
*/
|
|
17101
|
-
SellerService.prototype.search = function (params) {
|
|
17102
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17103
|
-
var _this = this;
|
|
17104
|
-
return __generator(this, function (_a) {
|
|
17105
|
-
return [2 /*return*/, this.fetch({
|
|
17106
|
-
uri: '/sellers',
|
|
17107
|
-
method: 'GET',
|
|
17108
|
-
qs: params,
|
|
17109
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
17110
|
-
})
|
|
17111
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
17112
|
-
var _a;
|
|
17113
|
-
return __generator(this, function (_b) {
|
|
17114
|
-
switch (_b.label) {
|
|
17115
|
-
case 0:
|
|
17116
|
-
_a = {};
|
|
17117
|
-
return [4 /*yield*/, response.json()];
|
|
17118
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
17119
|
-
_a)];
|
|
17120
|
-
}
|
|
17121
|
-
});
|
|
17122
|
-
}); })];
|
|
17123
|
-
});
|
|
17124
|
-
});
|
|
17125
|
-
};
|
|
17126
|
-
/**
|
|
17127
|
-
* 提供決済サービス検索(public)
|
|
17128
|
-
*/
|
|
17129
|
-
SellerService.prototype.searchPaymentServices = function (params) {
|
|
17130
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17131
|
-
var _this = this;
|
|
17132
|
-
return __generator(this, function (_a) {
|
|
17133
|
-
return [2 /*return*/, this.fetch({
|
|
17134
|
-
uri: "/sellers/" + params.id + "/paymentServices",
|
|
17135
|
-
method: 'GET',
|
|
17136
|
-
qs: params.qs,
|
|
17137
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
17138
|
-
})
|
|
17139
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
17140
|
-
var _a;
|
|
17141
|
-
return __generator(this, function (_b) {
|
|
17142
|
-
switch (_b.label) {
|
|
17143
|
-
case 0:
|
|
17144
|
-
_a = {};
|
|
17145
|
-
return [4 /*yield*/, response.json()];
|
|
17146
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
17147
|
-
_a)];
|
|
17148
|
-
}
|
|
17149
|
-
});
|
|
17150
|
-
}); })];
|
|
17151
|
-
});
|
|
17152
|
-
});
|
|
17153
|
-
};
|
|
17154
|
-
/**
|
|
17155
|
-
* 対応決済方法区分検索
|
|
17156
|
-
*/
|
|
17157
|
-
SellerService.prototype.searchPaymentAccepted = function (params) {
|
|
17158
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17159
|
-
var _this = this;
|
|
17160
|
-
return __generator(this, function (_a) {
|
|
17161
|
-
return [2 /*return*/, this.fetch({
|
|
17162
|
-
uri: "/sellers/" + params.id + "/paymentAccepted",
|
|
17163
|
-
method: 'GET',
|
|
17164
|
-
qs: params.qs,
|
|
17165
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
17166
|
-
})
|
|
17167
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
17168
|
-
var _a;
|
|
17169
|
-
return __generator(this, function (_b) {
|
|
17170
|
-
switch (_b.label) {
|
|
17171
|
-
case 0:
|
|
17172
|
-
_a = {};
|
|
17173
|
-
return [4 /*yield*/, response.json()];
|
|
17174
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
17175
|
-
_a)];
|
|
17176
|
-
}
|
|
17177
|
-
});
|
|
17178
|
-
}); })];
|
|
17179
|
-
});
|
|
17180
|
-
});
|
|
17181
|
-
};
|
|
17182
|
-
return SellerService;
|
|
17183
|
-
}(service_1.Service));
|
|
17184
|
-
exports.SellerService = SellerService;
|
|
17185
|
-
|
|
17186
|
-
},{"../service":87,"http-status":314}],108:[function(require,module,exports){
|
|
17016
|
+
arguments[4][19][0].apply(exports,arguments)
|
|
17017
|
+
},{"../service":87,"dup":19,"http-status":314}],108:[function(require,module,exports){
|
|
17187
17018
|
arguments[4][20][0].apply(exports,arguments)
|
|
17188
17019
|
},{"../service":87,"dup":20,"http-status":314}],109:[function(require,module,exports){
|
|
17189
17020
|
arguments[4][77][0].apply(exports,arguments)
|