@cinerino/sdk 3.167.0-alpha.7 → 3.167.0-alpha.9
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.
|
@@ -5465,6 +5465,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5465
5465
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5466
5466
|
};
|
|
5467
5467
|
})();
|
|
5468
|
+
var __assign = (this && this.__assign) || function () {
|
|
5469
|
+
__assign = Object.assign || function(t) {
|
|
5470
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5471
|
+
s = arguments[i];
|
|
5472
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
5473
|
+
t[p] = s[p];
|
|
5474
|
+
}
|
|
5475
|
+
return t;
|
|
5476
|
+
};
|
|
5477
|
+
return __assign.apply(this, arguments);
|
|
5478
|
+
};
|
|
5468
5479
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5469
5480
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5470
5481
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -5515,6 +5526,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
5515
5526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5516
5527
|
exports.OfferCatalogService = void 0;
|
|
5517
5528
|
var http_status_1 = require("http-status");
|
|
5529
|
+
var factory = require("../factory");
|
|
5518
5530
|
var service_1 = require("../service");
|
|
5519
5531
|
/**
|
|
5520
5532
|
* オファーカタログサービス
|
|
@@ -5544,17 +5556,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
5544
5556
|
});
|
|
5545
5557
|
};
|
|
5546
5558
|
/**
|
|
5547
|
-
*
|
|
5548
|
-
*
|
|
5559
|
+
* サブカタログ検索
|
|
5560
|
+
* 強制的にitemListElement.typeOf: { $eq: 'Offer' }
|
|
5549
5561
|
*/
|
|
5550
|
-
OfferCatalogService.prototype.
|
|
5562
|
+
OfferCatalogService.prototype.searchSubCatalogs = function (params) {
|
|
5551
5563
|
return __awaiter(this, void 0, void 0, function () {
|
|
5564
|
+
var qs;
|
|
5552
5565
|
var _this = this;
|
|
5553
5566
|
return __generator(this, function (_a) {
|
|
5567
|
+
qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
|
|
5554
5568
|
return [2 /*return*/, this.fetch({
|
|
5555
5569
|
uri: '/offerCatalogs',
|
|
5556
5570
|
method: 'GET',
|
|
5557
|
-
qs:
|
|
5571
|
+
qs: qs,
|
|
5572
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
5573
|
+
})
|
|
5574
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
5575
|
+
var _a;
|
|
5576
|
+
return __generator(this, function (_b) {
|
|
5577
|
+
switch (_b.label) {
|
|
5578
|
+
case 0:
|
|
5579
|
+
_a = {};
|
|
5580
|
+
return [4 /*yield*/, response.json()];
|
|
5581
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
5582
|
+
_a)];
|
|
5583
|
+
}
|
|
5584
|
+
});
|
|
5585
|
+
}); })];
|
|
5586
|
+
});
|
|
5587
|
+
});
|
|
5588
|
+
};
|
|
5589
|
+
/**
|
|
5590
|
+
* カタログ(親)検索
|
|
5591
|
+
* 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
|
|
5592
|
+
*/
|
|
5593
|
+
OfferCatalogService.prototype.searchCatalogs = function (params) {
|
|
5594
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5595
|
+
var qs;
|
|
5596
|
+
var _this = this;
|
|
5597
|
+
return __generator(this, function (_a) {
|
|
5598
|
+
qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
|
|
5599
|
+
return [2 /*return*/, this.fetch({
|
|
5600
|
+
uri: '/catalogs',
|
|
5601
|
+
method: 'GET',
|
|
5602
|
+
qs: qs,
|
|
5558
5603
|
expectedStatusCodes: [http_status_1.OK]
|
|
5559
5604
|
})
|
|
5560
5605
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -5662,7 +5707,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
5662
5707
|
}(service_1.Service));
|
|
5663
5708
|
exports.OfferCatalogService = OfferCatalogService;
|
|
5664
5709
|
|
|
5665
|
-
},{"../service":65,"http-status":294}],34:[function(require,module,exports){
|
|
5710
|
+
},{"../factory":60,"../service":65,"http-status":294}],34:[function(require,module,exports){
|
|
5666
5711
|
"use strict";
|
|
5667
5712
|
var __extends = (this && this.__extends) || (function () {
|
|
5668
5713
|
var extendStatics = function (d, b) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { ISearchResult, Service } from '../service';
|
|
3
|
-
export declare type IOfferCatalogAsSearchResult =
|
|
3
|
+
export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
|
|
4
4
|
numberOfItems?: number;
|
|
5
|
+
itemListElementTypeOf: factory.offerType.Offer | 'OfferCatalog';
|
|
5
6
|
};
|
|
6
7
|
export declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification'> & {
|
|
7
8
|
sortIndex?: number;
|
|
@@ -16,10 +17,15 @@ export declare class OfferCatalogService extends Service {
|
|
|
16
17
|
*/
|
|
17
18
|
create(params: factory.offerCatalog.IOfferCatalog): Promise<ICreateResult>;
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
20
|
+
* サブカタログ検索
|
|
21
|
+
* 強制的にitemListElement.typeOf: { $eq: 'Offer' }
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
searchSubCatalogs(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
|
|
24
|
+
/**
|
|
25
|
+
* カタログ(親)検索
|
|
26
|
+
* 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
|
|
27
|
+
*/
|
|
28
|
+
searchCatalogs(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
|
|
23
29
|
/**
|
|
24
30
|
* オファーカタログ更新
|
|
25
31
|
*/
|
|
@@ -14,6 +14,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
17
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -64,6 +75,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
64
75
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
76
|
exports.OfferCatalogService = void 0;
|
|
66
77
|
var http_status_1 = require("http-status");
|
|
78
|
+
var factory = require("../factory");
|
|
67
79
|
var service_1 = require("../service");
|
|
68
80
|
/**
|
|
69
81
|
* オファーカタログサービス
|
|
@@ -93,17 +105,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
93
105
|
});
|
|
94
106
|
};
|
|
95
107
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
108
|
+
* サブカタログ検索
|
|
109
|
+
* 強制的にitemListElement.typeOf: { $eq: 'Offer' }
|
|
98
110
|
*/
|
|
99
|
-
OfferCatalogService.prototype.
|
|
111
|
+
OfferCatalogService.prototype.searchSubCatalogs = function (params) {
|
|
100
112
|
return __awaiter(this, void 0, void 0, function () {
|
|
113
|
+
var qs;
|
|
101
114
|
var _this = this;
|
|
102
115
|
return __generator(this, function (_a) {
|
|
116
|
+
qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
|
|
103
117
|
return [2 /*return*/, this.fetch({
|
|
104
118
|
uri: '/offerCatalogs',
|
|
105
119
|
method: 'GET',
|
|
106
|
-
qs:
|
|
120
|
+
qs: qs,
|
|
121
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
122
|
+
})
|
|
123
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
124
|
+
var _a;
|
|
125
|
+
return __generator(this, function (_b) {
|
|
126
|
+
switch (_b.label) {
|
|
127
|
+
case 0:
|
|
128
|
+
_a = {};
|
|
129
|
+
return [4 /*yield*/, response.json()];
|
|
130
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
131
|
+
_a)];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}); })];
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* カタログ(親)検索
|
|
140
|
+
* 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
|
|
141
|
+
*/
|
|
142
|
+
OfferCatalogService.prototype.searchCatalogs = function (params) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
+
var qs;
|
|
145
|
+
var _this = this;
|
|
146
|
+
return __generator(this, function (_a) {
|
|
147
|
+
qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
|
|
148
|
+
return [2 /*return*/, this.fetch({
|
|
149
|
+
uri: '/catalogs',
|
|
150
|
+
method: 'GET',
|
|
151
|
+
qs: qs,
|
|
107
152
|
expectedStatusCodes: [http_status_1.OK]
|
|
108
153
|
})
|
|
109
154
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
package/lib/bundle.js
CHANGED
|
@@ -5465,6 +5465,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5465
5465
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5466
5466
|
};
|
|
5467
5467
|
})();
|
|
5468
|
+
var __assign = (this && this.__assign) || function () {
|
|
5469
|
+
__assign = Object.assign || function(t) {
|
|
5470
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5471
|
+
s = arguments[i];
|
|
5472
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
5473
|
+
t[p] = s[p];
|
|
5474
|
+
}
|
|
5475
|
+
return t;
|
|
5476
|
+
};
|
|
5477
|
+
return __assign.apply(this, arguments);
|
|
5478
|
+
};
|
|
5468
5479
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5469
5480
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5470
5481
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -5515,6 +5526,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
5515
5526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5516
5527
|
exports.OfferCatalogService = void 0;
|
|
5517
5528
|
var http_status_1 = require("http-status");
|
|
5529
|
+
var factory = require("../factory");
|
|
5518
5530
|
var service_1 = require("../service");
|
|
5519
5531
|
/**
|
|
5520
5532
|
* オファーカタログサービス
|
|
@@ -5544,17 +5556,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
5544
5556
|
});
|
|
5545
5557
|
};
|
|
5546
5558
|
/**
|
|
5547
|
-
*
|
|
5548
|
-
*
|
|
5559
|
+
* サブカタログ検索
|
|
5560
|
+
* 強制的にitemListElement.typeOf: { $eq: 'Offer' }
|
|
5549
5561
|
*/
|
|
5550
|
-
OfferCatalogService.prototype.
|
|
5562
|
+
OfferCatalogService.prototype.searchSubCatalogs = function (params) {
|
|
5551
5563
|
return __awaiter(this, void 0, void 0, function () {
|
|
5564
|
+
var qs;
|
|
5552
5565
|
var _this = this;
|
|
5553
5566
|
return __generator(this, function (_a) {
|
|
5567
|
+
qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
|
|
5554
5568
|
return [2 /*return*/, this.fetch({
|
|
5555
5569
|
uri: '/offerCatalogs',
|
|
5556
5570
|
method: 'GET',
|
|
5557
|
-
qs:
|
|
5571
|
+
qs: qs,
|
|
5572
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
5573
|
+
})
|
|
5574
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
5575
|
+
var _a;
|
|
5576
|
+
return __generator(this, function (_b) {
|
|
5577
|
+
switch (_b.label) {
|
|
5578
|
+
case 0:
|
|
5579
|
+
_a = {};
|
|
5580
|
+
return [4 /*yield*/, response.json()];
|
|
5581
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
5582
|
+
_a)];
|
|
5583
|
+
}
|
|
5584
|
+
});
|
|
5585
|
+
}); })];
|
|
5586
|
+
});
|
|
5587
|
+
});
|
|
5588
|
+
};
|
|
5589
|
+
/**
|
|
5590
|
+
* カタログ(親)検索
|
|
5591
|
+
* 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
|
|
5592
|
+
*/
|
|
5593
|
+
OfferCatalogService.prototype.searchCatalogs = function (params) {
|
|
5594
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5595
|
+
var qs;
|
|
5596
|
+
var _this = this;
|
|
5597
|
+
return __generator(this, function (_a) {
|
|
5598
|
+
qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
|
|
5599
|
+
return [2 /*return*/, this.fetch({
|
|
5600
|
+
uri: '/catalogs',
|
|
5601
|
+
method: 'GET',
|
|
5602
|
+
qs: qs,
|
|
5558
5603
|
expectedStatusCodes: [http_status_1.OK]
|
|
5559
5604
|
})
|
|
5560
5605
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -5662,7 +5707,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
5662
5707
|
}(service_1.Service));
|
|
5663
5708
|
exports.OfferCatalogService = OfferCatalogService;
|
|
5664
5709
|
|
|
5665
|
-
},{"../service":65,"http-status":294}],34:[function(require,module,exports){
|
|
5710
|
+
},{"../factory":60,"../service":65,"http-status":294}],34:[function(require,module,exports){
|
|
5666
5711
|
"use strict";
|
|
5667
5712
|
var __extends = (this && this.__extends) || (function () {
|
|
5668
5713
|
var extendStatics = function (d, b) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.167.0-alpha.
|
|
3
|
+
"version": "3.167.0-alpha.9",
|
|
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.329.0-alpha.
|
|
100
|
+
"@chevre/factory": "4.329.0-alpha.15",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|