@cinerino/sdk 12.5.0-alpha.15 → 12.5.0-alpha.17
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,5 +1,21 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
+
declare type CategorySetIdentifierExceptMovieTicketType = Exclude<factory.categoryCode.CategorySetIdentifier, factory.categoryCode.CategorySetIdentifier.MovieTicketType>;
|
|
4
|
+
declare type ICategoryCodeExceptMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
|
|
5
|
+
inCodeSet: {
|
|
6
|
+
typeOf: 'CategoryCodeSet';
|
|
7
|
+
identifier: CategorySetIdentifierExceptMovieTicketType;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare type IFindParamsExceptMovieTicketType = Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'limit' | 'name' | 'page' | 'sort'> & {
|
|
11
|
+
inCodeSet?: {
|
|
12
|
+
identifier?: {
|
|
13
|
+
$eq?: CategorySetIdentifierExceptMovieTicketType;
|
|
14
|
+
$in?: CategorySetIdentifierExceptMovieTicketType[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
paymentMethod?: never;
|
|
18
|
+
};
|
|
3
19
|
/**
|
|
4
20
|
* 区分サービス
|
|
5
21
|
*/
|
|
@@ -18,12 +34,28 @@ export declare class CategoryCodeService extends Service {
|
|
|
18
34
|
/**
|
|
19
35
|
* 検索
|
|
20
36
|
*/
|
|
21
|
-
search(params:
|
|
37
|
+
search(params: IFindParamsExceptMovieTicketType): Promise<{
|
|
22
38
|
data: factory.categoryCode.ICategoryCode[];
|
|
23
39
|
}>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 決済カード区分を除外して区分を検索する
|
|
42
|
+
*/
|
|
43
|
+
findCategoryCodesExceptMovieTicketTypes(params: Omit<factory.categoryCode.ISearchConditions, 'project'> & {
|
|
44
|
+
excludeMovieTicketType?: boolean;
|
|
45
|
+
}): Promise<ICategoryCodeExceptMovieTicketType[]>;
|
|
46
|
+
/**
|
|
47
|
+
* 決済カード区分検索
|
|
48
|
+
* support(2025-10-21~)
|
|
49
|
+
*/
|
|
50
|
+
findMovieTicketTypes(params: Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'name' | 'paymentMethod' | 'sort'> & {
|
|
51
|
+
limit: number;
|
|
52
|
+
page: number;
|
|
53
|
+
inCodeSet: {
|
|
54
|
+
identifier: {
|
|
55
|
+
$eq: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}): Promise<factory.categoryCode.ICategoryCode[]>;
|
|
27
59
|
update(params: factory.categoryCode.ICategoryCode & {
|
|
28
60
|
$unset?: never;
|
|
29
61
|
}): Promise<void>;
|
|
@@ -31,3 +63,4 @@ export declare class CategoryCodeService extends Service {
|
|
|
31
63
|
id: string;
|
|
32
64
|
}): Promise<void>;
|
|
33
65
|
}
|
|
66
|
+
export {};
|
|
@@ -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) {
|
|
@@ -109,13 +120,37 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
109
120
|
});
|
|
110
121
|
});
|
|
111
122
|
};
|
|
112
|
-
|
|
123
|
+
/**
|
|
124
|
+
* 決済カード区分を除外して区分を検索する
|
|
125
|
+
*/
|
|
126
|
+
CategoryCodeService.prototype.findCategoryCodesExceptMovieTicketTypes = function (params) {
|
|
113
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
114
128
|
var _this = this;
|
|
115
129
|
return __generator(this, function (_a) {
|
|
116
130
|
return [2 /*return*/, this.fetch({
|
|
117
|
-
uri:
|
|
131
|
+
uri: '/categoryCodes',
|
|
118
132
|
method: 'GET',
|
|
133
|
+
qs: __assign(__assign({}, params), { excludeMovieTicketType: true }),
|
|
134
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
135
|
+
})
|
|
136
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
137
|
+
return [2 /*return*/, response.json()];
|
|
138
|
+
}); }); })];
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* 決済カード区分検索
|
|
144
|
+
* support(2025-10-21~)
|
|
145
|
+
*/
|
|
146
|
+
CategoryCodeService.prototype.findMovieTicketTypes = function (params) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
+
var _this = this;
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
return [2 /*return*/, this.fetch({
|
|
151
|
+
uri: '/movieTicketTypes',
|
|
152
|
+
method: 'GET',
|
|
153
|
+
qs: params,
|
|
119
154
|
expectedStatusCodes: [http_status_1.OK]
|
|
120
155
|
})
|
|
121
156
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -124,6 +159,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
124
159
|
});
|
|
125
160
|
});
|
|
126
161
|
};
|
|
162
|
+
// discontinue(2025-10-21~)
|
|
163
|
+
// public async findById(params: { id: string }): Promise<factory.categoryCode.ICategoryCode> {
|
|
164
|
+
// return this.fetch({
|
|
165
|
+
// uri: `/categoryCodes/${encodeURIComponent(String(params.id))}`,
|
|
166
|
+
// method: 'GET',
|
|
167
|
+
// expectedStatusCodes: [OK]
|
|
168
|
+
// })
|
|
169
|
+
// .then(async (response) => response.json());
|
|
170
|
+
// }
|
|
127
171
|
CategoryCodeService.prototype.update = function (params) {
|
|
128
172
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
173
|
return __generator(this, function (_a) {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
declare type ICategory = Pick<factory.categoryCode.ICategoryCode, 'codeValue'
|
|
3
|
+
declare type ICategory = Pick<factory.categoryCode.ICategoryCode, 'codeValue'> & {
|
|
4
|
+
inCodeSet: {
|
|
5
|
+
typeOf: 'CategoryCodeSet';
|
|
6
|
+
identifier: factory.categoryCode.CategorySetIdentifier.SeatingType;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
interface IProductModel {
|
|
5
10
|
id?: string;
|
|
6
11
|
project: {
|
package/lib/bundle.js
CHANGED
|
@@ -9377,6 +9377,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
9377
9377
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9378
9378
|
};
|
|
9379
9379
|
})();
|
|
9380
|
+
var __assign = (this && this.__assign) || function () {
|
|
9381
|
+
__assign = Object.assign || function(t) {
|
|
9382
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9383
|
+
s = arguments[i];
|
|
9384
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9385
|
+
t[p] = s[p];
|
|
9386
|
+
}
|
|
9387
|
+
return t;
|
|
9388
|
+
};
|
|
9389
|
+
return __assign.apply(this, arguments);
|
|
9390
|
+
};
|
|
9380
9391
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9381
9392
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9382
9393
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9472,13 +9483,37 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
9472
9483
|
});
|
|
9473
9484
|
});
|
|
9474
9485
|
};
|
|
9475
|
-
|
|
9486
|
+
/**
|
|
9487
|
+
* 決済カード区分を除外して区分を検索する
|
|
9488
|
+
*/
|
|
9489
|
+
CategoryCodeService.prototype.findCategoryCodesExceptMovieTicketTypes = function (params) {
|
|
9490
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9491
|
+
var _this = this;
|
|
9492
|
+
return __generator(this, function (_a) {
|
|
9493
|
+
return [2 /*return*/, this.fetch({
|
|
9494
|
+
uri: '/categoryCodes',
|
|
9495
|
+
method: 'GET',
|
|
9496
|
+
qs: __assign(__assign({}, params), { excludeMovieTicketType: true }),
|
|
9497
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
9498
|
+
})
|
|
9499
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
9500
|
+
return [2 /*return*/, response.json()];
|
|
9501
|
+
}); }); })];
|
|
9502
|
+
});
|
|
9503
|
+
});
|
|
9504
|
+
};
|
|
9505
|
+
/**
|
|
9506
|
+
* 決済カード区分検索
|
|
9507
|
+
* support(2025-10-21~)
|
|
9508
|
+
*/
|
|
9509
|
+
CategoryCodeService.prototype.findMovieTicketTypes = function (params) {
|
|
9476
9510
|
return __awaiter(this, void 0, void 0, function () {
|
|
9477
9511
|
var _this = this;
|
|
9478
9512
|
return __generator(this, function (_a) {
|
|
9479
9513
|
return [2 /*return*/, this.fetch({
|
|
9480
|
-
uri:
|
|
9514
|
+
uri: '/movieTicketTypes',
|
|
9481
9515
|
method: 'GET',
|
|
9516
|
+
qs: params,
|
|
9482
9517
|
expectedStatusCodes: [http_status_1.OK]
|
|
9483
9518
|
})
|
|
9484
9519
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -9487,6 +9522,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
9487
9522
|
});
|
|
9488
9523
|
});
|
|
9489
9524
|
};
|
|
9525
|
+
// discontinue(2025-10-21~)
|
|
9526
|
+
// public async findById(params: { id: string }): Promise<factory.categoryCode.ICategoryCode> {
|
|
9527
|
+
// return this.fetch({
|
|
9528
|
+
// uri: `/categoryCodes/${encodeURIComponent(String(params.id))}`,
|
|
9529
|
+
// method: 'GET',
|
|
9530
|
+
// expectedStatusCodes: [OK]
|
|
9531
|
+
// })
|
|
9532
|
+
// .then(async (response) => response.json());
|
|
9533
|
+
// }
|
|
9490
9534
|
CategoryCodeService.prototype.update = function (params) {
|
|
9491
9535
|
return __awaiter(this, void 0, void 0, function () {
|
|
9492
9536
|
return __generator(this, function (_a) {
|