@cinerino/sdk 10.19.0 → 10.20.0-alpha.1
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) {
|
|
@@ -26165,11 +26152,64 @@ var EventType;
|
|
|
26165
26152
|
},{}],238:[function(require,module,exports){
|
|
26166
26153
|
"use strict";
|
|
26167
26154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26168
|
-
exports.RoleType = void 0;
|
|
26155
|
+
exports.RoleName = exports.RoleType = void 0;
|
|
26169
26156
|
var RoleType;
|
|
26170
26157
|
(function (RoleType) {
|
|
26171
26158
|
RoleType["OrganizationRole"] = "OrganizationRole";
|
|
26172
26159
|
})(RoleType = exports.RoleType || (exports.RoleType = {}));
|
|
26160
|
+
var RoleName;
|
|
26161
|
+
(function (RoleName) {
|
|
26162
|
+
/**
|
|
26163
|
+
* 注文取引クライアント
|
|
26164
|
+
*/
|
|
26165
|
+
RoleName["Customer"] = "customer";
|
|
26166
|
+
RoleName["POS"] = "pos";
|
|
26167
|
+
/**
|
|
26168
|
+
* publicリソース検索クライアント
|
|
26169
|
+
*/
|
|
26170
|
+
RoleName["EventsViewer"] = "events.viewer";
|
|
26171
|
+
/**
|
|
26172
|
+
* 任意のサーバーアプリケーション
|
|
26173
|
+
*/
|
|
26174
|
+
RoleName["Server"] = "server";
|
|
26175
|
+
/**
|
|
26176
|
+
* プロジェクトオーナー
|
|
26177
|
+
*/
|
|
26178
|
+
RoleName["Owner"] = "owner";
|
|
26179
|
+
RoleName["User"] = "user";
|
|
26180
|
+
/**
|
|
26181
|
+
* 販売者管理
|
|
26182
|
+
*/
|
|
26183
|
+
RoleName["SellerAdmin"] = "sellerAdmin";
|
|
26184
|
+
/**
|
|
26185
|
+
* チケット管理
|
|
26186
|
+
*/
|
|
26187
|
+
RoleName["TicketClerk"] = "ticketClerk";
|
|
26188
|
+
/**
|
|
26189
|
+
* 在庫管理
|
|
26190
|
+
*/
|
|
26191
|
+
RoleName["InventoryManager"] = "inventoryManager";
|
|
26192
|
+
RoleName["Accountant"] = "accountant";
|
|
26193
|
+
// PeopleAdmin = 'people.admin', // discontinue(2024-12-17~)
|
|
26194
|
+
/**
|
|
26195
|
+
* チケット収集
|
|
26196
|
+
*/
|
|
26197
|
+
RoleName["TicketCollector"] = "ticketCollector";
|
|
26198
|
+
/**
|
|
26199
|
+
* メンバー管理
|
|
26200
|
+
*/
|
|
26201
|
+
RoleName["IAMRoleAdmin"] = "iam.roleAdmin";
|
|
26202
|
+
/**
|
|
26203
|
+
* 決済サービス編集者
|
|
26204
|
+
*/
|
|
26205
|
+
RoleName["PaymentServiceEditor"] = "paymentServiceEditor";
|
|
26206
|
+
/**
|
|
26207
|
+
* 販売者オーナー
|
|
26208
|
+
*/
|
|
26209
|
+
RoleName["SellersOwner"] = "sellers.owner";
|
|
26210
|
+
RoleName["SellersInventoryManager"] = "sellers.inventoryManager";
|
|
26211
|
+
RoleName["SellersIAMRoleAdmin"] = "sellers.iam.roleAdmin";
|
|
26212
|
+
})(RoleName = exports.RoleName || (exports.RoleName = {}));
|
|
26173
26213
|
|
|
26174
26214
|
},{}],239:[function(require,module,exports){
|
|
26175
26215
|
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.20.0-alpha.1",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"watchify": "^3.11.1"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@chevre/factory": "4.392.0-alpha.
|
|
95
|
+
"@chevre/factory": "4.392.0-alpha.7",
|
|
96
96
|
"debug": "3.2.7",
|
|
97
97
|
"http-status": "1.7.4",
|
|
98
98
|
"idtoken-verifier": "2.0.3",
|