@cinerino/sdk 12.5.0 → 12.6.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.
|
@@ -18,7 +18,7 @@ async function main() {
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
startTime = process.hrtime();
|
|
21
|
-
|
|
21
|
+
const chevre = await client.loadChevre({
|
|
22
22
|
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
23
23
|
auth: authClient
|
|
24
24
|
});
|
|
@@ -26,23 +26,7 @@ async function main() {
|
|
|
26
26
|
console.log(`laoding chevre took ${diff[0]} seconds and ${diff[1]} nanoseconds.`);
|
|
27
27
|
|
|
28
28
|
startTime = process.hrtime();
|
|
29
|
-
|
|
30
|
-
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
31
|
-
auth: authClient
|
|
32
|
-
});
|
|
33
|
-
diff = process.hrtime(startTime);
|
|
34
|
-
console.log(`laoding chevre took ${diff[0]} seconds and ${diff[1]} nanoseconds.`);
|
|
35
|
-
|
|
36
|
-
startTime = process.hrtime();
|
|
37
|
-
let eventService = await chevre.createEventInstance({
|
|
38
|
-
project: { id: PROJECT_ID },
|
|
39
|
-
seller: { id: '' }
|
|
40
|
-
});
|
|
41
|
-
diff = process.hrtime(startTime);
|
|
42
|
-
console.log(`creating service instance took ${diff[0]} seconds and ${diff[1]} nanoseconds.`);
|
|
43
|
-
|
|
44
|
-
startTime = process.hrtime();
|
|
45
|
-
eventService = await chevre.createEventInstance({
|
|
29
|
+
const eventService = await chevre.createEventInstance({
|
|
46
30
|
project: { id: PROJECT_ID },
|
|
47
31
|
seller: { id: '' }
|
|
48
32
|
});
|
|
@@ -59,16 +43,16 @@ async function main() {
|
|
|
59
43
|
.toDate(),
|
|
60
44
|
sort: {
|
|
61
45
|
startDate: client.factory.sortType.Ascending
|
|
62
|
-
}
|
|
63
|
-
$projection: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
$minimumProjection: true
|
|
46
|
+
}
|
|
47
|
+
// $projection: {
|
|
48
|
+
// checkInCount: 0,
|
|
49
|
+
// maximumAttendeeCapacity: 0,
|
|
50
|
+
// remainingAttendeeCapacity: 0,
|
|
51
|
+
// offers: 0,
|
|
52
|
+
// additionalProperty: 0,
|
|
53
|
+
// superEvent: 0
|
|
54
|
+
// },
|
|
55
|
+
// $minimumProjection: true
|
|
72
56
|
});
|
|
73
57
|
console.log(result);
|
|
74
58
|
console.log(result.length, 'events returned');
|
|
@@ -16,6 +16,18 @@ declare type IFindParamsExceptMovieTicketType = Pick<factory.categoryCode.ISearc
|
|
|
16
16
|
};
|
|
17
17
|
paymentMethod?: never;
|
|
18
18
|
};
|
|
19
|
+
declare type IMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
|
|
20
|
+
inCodeSet: {
|
|
21
|
+
typeOf: 'CategoryCodeSet';
|
|
22
|
+
identifier: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
|
|
23
|
+
};
|
|
24
|
+
paymentMethod: {
|
|
25
|
+
/**
|
|
26
|
+
* 決済カード区分の場合、対応決済方法区分
|
|
27
|
+
*/
|
|
28
|
+
typeOf: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
19
31
|
/**
|
|
20
32
|
* 区分サービス
|
|
21
33
|
*/
|
|
@@ -23,7 +35,7 @@ export declare class CategoryCodeService extends Service {
|
|
|
23
35
|
/**
|
|
24
36
|
* 作成
|
|
25
37
|
*/
|
|
26
|
-
create(params:
|
|
38
|
+
create(params: Omit<ICategoryCodeExceptMovieTicketType, 'id'> & {
|
|
27
39
|
$unset?: never;
|
|
28
40
|
}): Promise<{
|
|
29
41
|
/**
|
|
@@ -43,6 +55,24 @@ export declare class CategoryCodeService extends Service {
|
|
|
43
55
|
findCategoryCodesExceptMovieTicketTypes(params: Omit<factory.categoryCode.ISearchConditions, 'project'> & {
|
|
44
56
|
excludeMovieTicketType?: boolean;
|
|
45
57
|
}): Promise<ICategoryCodeExceptMovieTicketType[]>;
|
|
58
|
+
update(params: ICategoryCodeExceptMovieTicketType & {
|
|
59
|
+
id: string;
|
|
60
|
+
$unset?: never;
|
|
61
|
+
}): Promise<void>;
|
|
62
|
+
deleteCategoryCodeById(params: {
|
|
63
|
+
id: string;
|
|
64
|
+
}): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* 決済カード区分追加
|
|
67
|
+
*/
|
|
68
|
+
createMovieTicketType(params: IMovieTicketType & {
|
|
69
|
+
$unset?: never;
|
|
70
|
+
}): Promise<{
|
|
71
|
+
/**
|
|
72
|
+
* 区分ID
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
}>;
|
|
46
76
|
/**
|
|
47
77
|
* 決済カード区分検索
|
|
48
78
|
* support(2025-10-21~)
|
|
@@ -55,11 +85,17 @@ export declare class CategoryCodeService extends Service {
|
|
|
55
85
|
$eq: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
|
|
56
86
|
};
|
|
57
87
|
};
|
|
58
|
-
}): Promise<
|
|
59
|
-
|
|
88
|
+
}): Promise<IMovieTicketType[]>;
|
|
89
|
+
/**
|
|
90
|
+
* 決済カード区分編集
|
|
91
|
+
*/
|
|
92
|
+
updateMovieTicketType(params: IMovieTicketType & {
|
|
60
93
|
$unset?: never;
|
|
61
94
|
}): Promise<void>;
|
|
62
|
-
|
|
95
|
+
/**
|
|
96
|
+
* 決済カード区分削除
|
|
97
|
+
*/
|
|
98
|
+
deleteMovieTicketTypeById(params: {
|
|
63
99
|
id: string;
|
|
64
100
|
}): Promise<void>;
|
|
65
101
|
}
|
|
@@ -139,6 +139,58 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
|
+
CategoryCodeService.prototype.update = function (params) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
+
return __generator(this, function (_a) {
|
|
145
|
+
switch (_a.label) {
|
|
146
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
147
|
+
uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
|
|
148
|
+
method: 'PUT',
|
|
149
|
+
body: params,
|
|
150
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
151
|
+
})];
|
|
152
|
+
case 1:
|
|
153
|
+
_a.sent();
|
|
154
|
+
return [2 /*return*/];
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
CategoryCodeService.prototype.deleteCategoryCodeById = function (params) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
163
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
164
|
+
uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
|
|
165
|
+
method: 'DELETE',
|
|
166
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
167
|
+
})];
|
|
168
|
+
case 1:
|
|
169
|
+
_a.sent();
|
|
170
|
+
return [2 /*return*/];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* 決済カード区分追加
|
|
177
|
+
*/
|
|
178
|
+
CategoryCodeService.prototype.createMovieTicketType = function (params) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
180
|
+
var _this = this;
|
|
181
|
+
return __generator(this, function (_a) {
|
|
182
|
+
return [2 /*return*/, this.fetch({
|
|
183
|
+
uri: '/movieTicketTypes',
|
|
184
|
+
method: 'POST',
|
|
185
|
+
body: params,
|
|
186
|
+
expectedStatusCodes: [http_status_1.CREATED]
|
|
187
|
+
})
|
|
188
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
189
|
+
return [2 /*return*/, response.json()];
|
|
190
|
+
}); }); })];
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
142
194
|
/**
|
|
143
195
|
* 決済カード区分検索
|
|
144
196
|
* support(2025-10-21~)
|
|
@@ -159,21 +211,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
159
211
|
});
|
|
160
212
|
});
|
|
161
213
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
// method: 'GET',
|
|
167
|
-
// expectedStatusCodes: [OK]
|
|
168
|
-
// })
|
|
169
|
-
// .then(async (response) => response.json());
|
|
170
|
-
// }
|
|
171
|
-
CategoryCodeService.prototype.update = function (params) {
|
|
214
|
+
/**
|
|
215
|
+
* 決済カード区分編集
|
|
216
|
+
*/
|
|
217
|
+
CategoryCodeService.prototype.updateMovieTicketType = function (params) {
|
|
172
218
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
219
|
return __generator(this, function (_a) {
|
|
174
220
|
switch (_a.label) {
|
|
175
221
|
case 0: return [4 /*yield*/, this.fetch({
|
|
176
|
-
uri: "/
|
|
222
|
+
uri: "/movieTicketTypes/" + encodeURIComponent(String(params.id)),
|
|
177
223
|
method: 'PUT',
|
|
178
224
|
body: params,
|
|
179
225
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
@@ -185,12 +231,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
185
231
|
});
|
|
186
232
|
});
|
|
187
233
|
};
|
|
188
|
-
|
|
234
|
+
/**
|
|
235
|
+
* 決済カード区分削除
|
|
236
|
+
*/
|
|
237
|
+
CategoryCodeService.prototype.deleteMovieTicketTypeById = function (params) {
|
|
189
238
|
return __awaiter(this, void 0, void 0, function () {
|
|
190
239
|
return __generator(this, function (_a) {
|
|
191
240
|
switch (_a.label) {
|
|
192
241
|
case 0: return [4 /*yield*/, this.fetch({
|
|
193
|
-
uri: "/
|
|
242
|
+
uri: "/movieTicketTypes/" + encodeURIComponent(String(params.id)),
|
|
194
243
|
method: 'DELETE',
|
|
195
244
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
196
245
|
})];
|
package/lib/bundle.js
CHANGED
|
@@ -9502,6 +9502,58 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
9502
9502
|
});
|
|
9503
9503
|
});
|
|
9504
9504
|
};
|
|
9505
|
+
CategoryCodeService.prototype.update = function (params) {
|
|
9506
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9507
|
+
return __generator(this, function (_a) {
|
|
9508
|
+
switch (_a.label) {
|
|
9509
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
9510
|
+
uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
|
|
9511
|
+
method: 'PUT',
|
|
9512
|
+
body: params,
|
|
9513
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
9514
|
+
})];
|
|
9515
|
+
case 1:
|
|
9516
|
+
_a.sent();
|
|
9517
|
+
return [2 /*return*/];
|
|
9518
|
+
}
|
|
9519
|
+
});
|
|
9520
|
+
});
|
|
9521
|
+
};
|
|
9522
|
+
CategoryCodeService.prototype.deleteCategoryCodeById = function (params) {
|
|
9523
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9524
|
+
return __generator(this, function (_a) {
|
|
9525
|
+
switch (_a.label) {
|
|
9526
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
9527
|
+
uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
|
|
9528
|
+
method: 'DELETE',
|
|
9529
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
9530
|
+
})];
|
|
9531
|
+
case 1:
|
|
9532
|
+
_a.sent();
|
|
9533
|
+
return [2 /*return*/];
|
|
9534
|
+
}
|
|
9535
|
+
});
|
|
9536
|
+
});
|
|
9537
|
+
};
|
|
9538
|
+
/**
|
|
9539
|
+
* 決済カード区分追加
|
|
9540
|
+
*/
|
|
9541
|
+
CategoryCodeService.prototype.createMovieTicketType = function (params) {
|
|
9542
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9543
|
+
var _this = this;
|
|
9544
|
+
return __generator(this, function (_a) {
|
|
9545
|
+
return [2 /*return*/, this.fetch({
|
|
9546
|
+
uri: '/movieTicketTypes',
|
|
9547
|
+
method: 'POST',
|
|
9548
|
+
body: params,
|
|
9549
|
+
expectedStatusCodes: [http_status_1.CREATED]
|
|
9550
|
+
})
|
|
9551
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
9552
|
+
return [2 /*return*/, response.json()];
|
|
9553
|
+
}); }); })];
|
|
9554
|
+
});
|
|
9555
|
+
});
|
|
9556
|
+
};
|
|
9505
9557
|
/**
|
|
9506
9558
|
* 決済カード区分検索
|
|
9507
9559
|
* support(2025-10-21~)
|
|
@@ -9522,21 +9574,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
9522
9574
|
});
|
|
9523
9575
|
});
|
|
9524
9576
|
};
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
// method: 'GET',
|
|
9530
|
-
// expectedStatusCodes: [OK]
|
|
9531
|
-
// })
|
|
9532
|
-
// .then(async (response) => response.json());
|
|
9533
|
-
// }
|
|
9534
|
-
CategoryCodeService.prototype.update = function (params) {
|
|
9577
|
+
/**
|
|
9578
|
+
* 決済カード区分編集
|
|
9579
|
+
*/
|
|
9580
|
+
CategoryCodeService.prototype.updateMovieTicketType = function (params) {
|
|
9535
9581
|
return __awaiter(this, void 0, void 0, function () {
|
|
9536
9582
|
return __generator(this, function (_a) {
|
|
9537
9583
|
switch (_a.label) {
|
|
9538
9584
|
case 0: return [4 /*yield*/, this.fetch({
|
|
9539
|
-
uri: "/
|
|
9585
|
+
uri: "/movieTicketTypes/" + encodeURIComponent(String(params.id)),
|
|
9540
9586
|
method: 'PUT',
|
|
9541
9587
|
body: params,
|
|
9542
9588
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
@@ -9548,12 +9594,15 @@ var CategoryCodeService = /** @class */ (function (_super) {
|
|
|
9548
9594
|
});
|
|
9549
9595
|
});
|
|
9550
9596
|
};
|
|
9551
|
-
|
|
9597
|
+
/**
|
|
9598
|
+
* 決済カード区分削除
|
|
9599
|
+
*/
|
|
9600
|
+
CategoryCodeService.prototype.deleteMovieTicketTypeById = function (params) {
|
|
9552
9601
|
return __awaiter(this, void 0, void 0, function () {
|
|
9553
9602
|
return __generator(this, function (_a) {
|
|
9554
9603
|
switch (_a.label) {
|
|
9555
9604
|
case 0: return [4 /*yield*/, this.fetch({
|
|
9556
|
-
uri: "/
|
|
9605
|
+
uri: "/movieTicketTypes/" + encodeURIComponent(String(params.id)),
|
|
9557
9606
|
method: 'DELETE',
|
|
9558
9607
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
9559
9608
|
})];
|