@cinerino/sdk 12.3.0-alpha.3 → 12.3.0-alpha.5
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/example/playground/public/lib/bundle.js +59 -24
- package/example/src/chevre/admin/adminCreateEventIfNotExistByIdentifier.ts +150 -0
- package/example/src/chevre/console/adminEvents.ts +0 -1
- package/example/src/cloud/admin/adminUpsertManyEventsByAdditionalProperty.ts +5 -6
- package/example/src/searchEvents.ts +6 -4
- package/lib/abstract/chevreAdmin/event.d.ts +41 -0
- package/lib/abstract/chevreAdmin/event.js +54 -0
- package/lib/abstract/cloud/admin/event.d.ts +2 -0
- package/lib/abstract/cloud/admin/event.js +29 -25
- package/lib/bundle.js +85 -54
- package/package.json +2 -2
|
@@ -1121,22 +1121,21 @@ var EventService = /** @class */ (function (_super) {
|
|
|
1121
1121
|
* 存在すれば、一部属性を更新する(eventStatus,superEvent,offers.seller.makesOffer)
|
|
1122
1122
|
*/
|
|
1123
1123
|
EventService.prototype.upsertManyByAdditionalProperty = function (params, options) {
|
|
1124
|
-
var _a, _b, _c, _d;
|
|
1125
1124
|
return __awaiter(this, void 0, void 0, function () {
|
|
1126
1125
|
var superEventId, locationBranchCode;
|
|
1127
|
-
return __generator(this, function (
|
|
1128
|
-
switch (
|
|
1126
|
+
return __generator(this, function (_a) {
|
|
1127
|
+
switch (_a.label) {
|
|
1129
1128
|
case 0:
|
|
1130
1129
|
if (!Array.isArray(params) || params.length === 0) {
|
|
1131
1130
|
throw new factory.errors.ArgumentNull('body');
|
|
1132
1131
|
}
|
|
1133
|
-
superEventId =
|
|
1134
|
-
locationBranchCode =
|
|
1132
|
+
superEventId = options.superEventId;
|
|
1133
|
+
locationBranchCode = options.locationBranchCode;
|
|
1135
1134
|
if (typeof superEventId !== 'string' || superEventId === '') {
|
|
1136
|
-
throw new factory.errors.ArgumentNull('
|
|
1135
|
+
throw new factory.errors.ArgumentNull('superEventId');
|
|
1137
1136
|
}
|
|
1138
1137
|
if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
|
|
1139
|
-
throw new factory.errors.ArgumentNull('
|
|
1138
|
+
throw new factory.errors.ArgumentNull('locationBranchCode');
|
|
1140
1139
|
}
|
|
1141
1140
|
return [4 /*yield*/, this.fetch({
|
|
1142
1141
|
uri: '/events',
|
|
@@ -1152,7 +1151,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
1152
1151
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
1153
1152
|
})];
|
|
1154
1153
|
case 1:
|
|
1155
|
-
|
|
1154
|
+
_a.sent();
|
|
1156
1155
|
return [2 /*return*/];
|
|
1157
1156
|
}
|
|
1158
1157
|
});
|
|
@@ -8072,11 +8071,11 @@ var EventService = /** @class */ (function (_super) {
|
|
|
8072
8071
|
// add options(2025-08-26~)
|
|
8073
8072
|
options) {
|
|
8074
8073
|
return __awaiter(this, void 0, void 0, function () {
|
|
8075
|
-
var superEventId, locationBranchCode;
|
|
8074
|
+
var superEventId, locationBranchCode, hasTicketedSeat;
|
|
8076
8075
|
return __generator(this, function (_a) {
|
|
8077
8076
|
switch (_a.label) {
|
|
8078
8077
|
case 0:
|
|
8079
|
-
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode;
|
|
8078
|
+
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat;
|
|
8080
8079
|
return [4 /*yield*/, this.fetch({
|
|
8081
8080
|
uri: '/events',
|
|
8082
8081
|
method: 'POST',
|
|
@@ -8085,7 +8084,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
8085
8084
|
expectsNoContent: '1',
|
|
8086
8085
|
typeOf: factory.eventType.ScreeningEvent,
|
|
8087
8086
|
superEventId: superEventId,
|
|
8088
|
-
locationBranchCode: locationBranchCode
|
|
8087
|
+
locationBranchCode: locationBranchCode,
|
|
8088
|
+
hasTicketedSeat: hasTicketedSeat
|
|
8089
8089
|
},
|
|
8090
8090
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8091
8091
|
})];
|
|
@@ -20730,11 +20730,41 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
20730
20730
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
20731
20731
|
}
|
|
20732
20732
|
};
|
|
20733
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
20734
|
+
var t = {};
|
|
20735
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20736
|
+
t[p] = s[p];
|
|
20737
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
20738
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
20739
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20740
|
+
t[p[i]] = s[p[i]];
|
|
20741
|
+
}
|
|
20742
|
+
return t;
|
|
20743
|
+
};
|
|
20733
20744
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20734
20745
|
exports.EventService = void 0;
|
|
20735
20746
|
var factory = require("../../factory");
|
|
20736
20747
|
var index_1 = require("../../index");
|
|
20737
20748
|
var service_1 = require("../../service");
|
|
20749
|
+
function createUpsertParams(params) {
|
|
20750
|
+
var _a, _b, _c, _d;
|
|
20751
|
+
if (!Array.isArray(params.attributes) || params.attributes.length === 0) {
|
|
20752
|
+
throw new factory.errors.ArgumentNull('body');
|
|
20753
|
+
}
|
|
20754
|
+
var superEventId = (_b = (_a = params.attributes[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
|
|
20755
|
+
var locationBranchCode = (_d = (_c = params.attributes[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
|
|
20756
|
+
if (typeof superEventId !== 'string' || superEventId === '') {
|
|
20757
|
+
throw new factory.errors.ArgumentNull('superEvent.id');
|
|
20758
|
+
}
|
|
20759
|
+
if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
|
|
20760
|
+
throw new factory.errors.ArgumentNull('location.branchCode');
|
|
20761
|
+
}
|
|
20762
|
+
var upsertParams = params.attributes.map(function (_a) {
|
|
20763
|
+
var location = _a.location, superEvent = _a.superEvent, identifier = _a.identifier, typeOf = _a.typeOf, project = _a.project, createFields = __rest(_a, ["location", "superEvent", "identifier", "typeOf", "project"]);
|
|
20764
|
+
return createFields;
|
|
20765
|
+
});
|
|
20766
|
+
return { upsertParams: upsertParams, superEventId: superEventId, locationBranchCode: locationBranchCode };
|
|
20767
|
+
}
|
|
20738
20768
|
/**
|
|
20739
20769
|
* イベントサービス
|
|
20740
20770
|
*/
|
|
@@ -20750,39 +20780,44 @@ var EventService = /** @class */ (function (_super) {
|
|
|
20750
20780
|
*/
|
|
20751
20781
|
EventService.prototype.upsertManyByAdditionalProperty = function (params) {
|
|
20752
20782
|
return __awaiter(this, void 0, void 0, function () {
|
|
20753
|
-
var _a, auth, endpoint, project, seller, chevreAdmin, eventService;
|
|
20754
|
-
return __generator(this, function (
|
|
20755
|
-
switch (
|
|
20783
|
+
var _a, upsertParams, superEventId, locationBranchCode, _b, auth, endpoint, project, seller, chevreAdmin, eventService;
|
|
20784
|
+
return __generator(this, function (_c) {
|
|
20785
|
+
switch (_c.label) {
|
|
20756
20786
|
case 0:
|
|
20757
|
-
_a =
|
|
20787
|
+
_a = createUpsertParams(params), upsertParams = _a.upsertParams, superEventId = _a.superEventId, locationBranchCode = _a.locationBranchCode;
|
|
20788
|
+
_b = this.options, auth = _b.auth, endpoint = _b.endpoint, project = _b.project, seller = _b.seller;
|
|
20758
20789
|
return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint })];
|
|
20759
20790
|
case 1:
|
|
20760
|
-
chevreAdmin =
|
|
20791
|
+
chevreAdmin = _c.sent();
|
|
20761
20792
|
return [4 /*yield*/, chevreAdmin.createEventInstance({
|
|
20762
20793
|
project: project,
|
|
20763
20794
|
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
|
|
20764
20795
|
})];
|
|
20765
20796
|
case 2:
|
|
20766
|
-
eventService =
|
|
20767
|
-
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(
|
|
20797
|
+
eventService = _c.sent();
|
|
20798
|
+
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(upsertParams, {
|
|
20768
20799
|
filter: { name: params.filter.name },
|
|
20769
|
-
update: false
|
|
20800
|
+
update: false,
|
|
20801
|
+
superEventId: superEventId,
|
|
20802
|
+
locationBranchCode: locationBranchCode
|
|
20770
20803
|
})];
|
|
20771
20804
|
case 3:
|
|
20772
|
-
|
|
20805
|
+
_c.sent();
|
|
20773
20806
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
20774
20807
|
setTimeout(function () { resolve(); },
|
|
20775
20808
|
// tslint:disable-next-line:no-magic-numbers
|
|
20776
20809
|
1000);
|
|
20777
20810
|
})];
|
|
20778
20811
|
case 4:
|
|
20779
|
-
|
|
20780
|
-
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(
|
|
20812
|
+
_c.sent();
|
|
20813
|
+
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(upsertParams, {
|
|
20781
20814
|
filter: { name: params.filter.name },
|
|
20782
|
-
update: true
|
|
20815
|
+
update: true,
|
|
20816
|
+
superEventId: superEventId,
|
|
20817
|
+
locationBranchCode: locationBranchCode
|
|
20783
20818
|
})];
|
|
20784
20819
|
case 5:
|
|
20785
|
-
|
|
20820
|
+
_c.sent();
|
|
20786
20821
|
return [2 /*return*/];
|
|
20787
20822
|
}
|
|
20788
20823
|
});
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// tslint:disable:no-console
|
|
2
|
+
// tslint:disable-next-line:no-implicit-dependencies
|
|
3
|
+
import * as moment from 'moment-timezone';
|
|
4
|
+
import * as client from '../../../../lib/index';
|
|
5
|
+
import * as auth from '../../auth/authAsAdmin';
|
|
6
|
+
|
|
7
|
+
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
8
|
+
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
9
|
+
const EVENT_SERVICE_ID = '681aa7c1b53b6dbbe5efbec7';
|
|
10
|
+
const AVAILABLE_AT_OR_FROM_ID = '51qbjcfr72h62m06vtv5kkhgje';
|
|
11
|
+
const ADDITIONAL_PROPERTY_NAME = 'sampleCreateId';
|
|
12
|
+
|
|
13
|
+
// tslint:disable-next-line:max-func-body-length
|
|
14
|
+
async function main() {
|
|
15
|
+
const authClient = await auth.login();
|
|
16
|
+
await authClient.refreshAccessToken();
|
|
17
|
+
const loginTicket = authClient.verifyIdToken({});
|
|
18
|
+
console.log('username is', loginTicket.getUsername());
|
|
19
|
+
|
|
20
|
+
const eventService = await (await client.loadChevreAdmin({
|
|
21
|
+
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
22
|
+
auth: authClient
|
|
23
|
+
})).createEventInstance({
|
|
24
|
+
project: { id: PROJECT_ID },
|
|
25
|
+
seller: { id: SELLER_ID }
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const today = moment()
|
|
29
|
+
.tz('Asia/Tokyo')
|
|
30
|
+
.format('YYYY-MM-DD');
|
|
31
|
+
const identifier = `fromSamples${moment()
|
|
32
|
+
.format('YYYYMMDDTHHmm')}`;
|
|
33
|
+
await eventService.createIfNotExistByIdentifier(
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
identifier,
|
|
37
|
+
doorTime: moment(`${today}T13:00:00Z`)
|
|
38
|
+
.toDate(),
|
|
39
|
+
startDate: moment(`${today}T13:00:00Z`)
|
|
40
|
+
.toDate(),
|
|
41
|
+
endDate: moment(`${today}T14:00:00Z`)
|
|
42
|
+
.toDate(),
|
|
43
|
+
eventStatus: client.factory.eventStatusType.EventScheduled,
|
|
44
|
+
additionalProperty: [
|
|
45
|
+
{ name: ADDITIONAL_PROPERTY_NAME, value: identifier }
|
|
46
|
+
],
|
|
47
|
+
maximumPhysicalAttendeeCapacity: 3,
|
|
48
|
+
offers: {
|
|
49
|
+
unacceptedPaymentMethod: [],
|
|
50
|
+
eligibleQuantity: {
|
|
51
|
+
maxValue: 6
|
|
52
|
+
},
|
|
53
|
+
itemOffered: {
|
|
54
|
+
id: EVENT_SERVICE_ID
|
|
55
|
+
},
|
|
56
|
+
seller: {
|
|
57
|
+
makesOffer: [
|
|
58
|
+
{
|
|
59
|
+
typeOf: client.factory.offerType.Offer,
|
|
60
|
+
availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID }, // <-販売アプリケーションIDを指定する
|
|
61
|
+
availabilityStarts: moment(`${today}T00:00:00+09:00`)
|
|
62
|
+
.toDate(),
|
|
63
|
+
availabilityEnds: moment(`${today}T14:00:00Z`)
|
|
64
|
+
.toDate(),
|
|
65
|
+
validFrom: moment(`${today}T00:00:00+09:00`)
|
|
66
|
+
.toDate(),
|
|
67
|
+
validThrough: moment(`${today}T14:00:00Z`)
|
|
68
|
+
.toDate()
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
// makesOfferDefaultを指定するとmakesOfferよりも優先される
|
|
72
|
+
// makesOfferDefault: {
|
|
73
|
+
// typeOf: client.factory.offerType.Offer,
|
|
74
|
+
// availabilityStarts: moment('2024-05-11T00:00:00.000Z')
|
|
75
|
+
// .toDate(),
|
|
76
|
+
// availabilityEnds: moment('2024-05-12T00:00:00.000Z')
|
|
77
|
+
// .toDate(),
|
|
78
|
+
// validFrom: moment('2024-05-11T00:00:00.000Z')
|
|
79
|
+
// .toDate(),
|
|
80
|
+
// validThrough: moment('2024-05-12T00:00:00.000Z')
|
|
81
|
+
// .toDate()
|
|
82
|
+
// }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
{
|
|
88
|
+
locationBranchCode: '10',
|
|
89
|
+
superEventId: '7k9ayl8hc',
|
|
90
|
+
hasTicketedSeat: true,
|
|
91
|
+
typeOf: client.factory.eventType.ScreeningEvent
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
console.log('created.');
|
|
95
|
+
|
|
96
|
+
await eventService.updateEventsByIdentifier(
|
|
97
|
+
[
|
|
98
|
+
{
|
|
99
|
+
identifier,
|
|
100
|
+
doorTime: moment(`${today}T13:00:00Z`)
|
|
101
|
+
.toDate(),
|
|
102
|
+
startDate: moment(`${today}T13:00:00Z`)
|
|
103
|
+
.toDate(),
|
|
104
|
+
endDate: moment(`${today}T14:00:00Z`)
|
|
105
|
+
.toDate(),
|
|
106
|
+
eventStatus: client.factory.eventStatusType.EventScheduled,
|
|
107
|
+
additionalProperty: [
|
|
108
|
+
{ name: ADDITIONAL_PROPERTY_NAME, value: identifier }
|
|
109
|
+
],
|
|
110
|
+
maximumPhysicalAttendeeCapacity: 3,
|
|
111
|
+
offers: {
|
|
112
|
+
unacceptedPaymentMethod: [],
|
|
113
|
+
eligibleQuantity: {
|
|
114
|
+
maxValue: 6
|
|
115
|
+
},
|
|
116
|
+
itemOffered: {
|
|
117
|
+
id: EVENT_SERVICE_ID
|
|
118
|
+
},
|
|
119
|
+
seller: {
|
|
120
|
+
makesOffer: [
|
|
121
|
+
{
|
|
122
|
+
typeOf: client.factory.offerType.Offer,
|
|
123
|
+
availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID }, // <-販売アプリケーションIDを指定する
|
|
124
|
+
availabilityStarts: moment(`${today}T00:00:00+09:00`)
|
|
125
|
+
.toDate(),
|
|
126
|
+
availabilityEnds: moment(`${today}T14:00:00Z`)
|
|
127
|
+
.toDate(),
|
|
128
|
+
validFrom: moment(`${today}T00:00:00+09:00`)
|
|
129
|
+
.toDate(),
|
|
130
|
+
validThrough: moment(`${today}T14:00:00Z`)
|
|
131
|
+
.toDate()
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
{
|
|
139
|
+
typeOf: client.factory.eventType.ScreeningEvent
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
console.log('updated.');
|
|
143
|
+
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
main()
|
|
147
|
+
.then(() => {
|
|
148
|
+
console.log('success!');
|
|
149
|
+
})
|
|
150
|
+
.catch(console.error);
|
|
@@ -31,11 +31,6 @@ async function main() {
|
|
|
31
31
|
filter: { name: ADDITIONAL_PROPERTY_NAME },
|
|
32
32
|
attributes: [
|
|
33
33
|
{
|
|
34
|
-
typeOf: client.factory.eventType.ScreeningEvent,
|
|
35
|
-
// project: {
|
|
36
|
-
// typeOf: client.factory.organizationType.Project,
|
|
37
|
-
// id: PROJECT_ID
|
|
38
|
-
// },
|
|
39
34
|
doorTime: moment(`${today}T13:00:00Z`)
|
|
40
35
|
.toDate(),
|
|
41
36
|
startDate: moment(`${today}T13:00:00Z`)
|
|
@@ -63,7 +58,11 @@ async function main() {
|
|
|
63
58
|
maxValue: 6
|
|
64
59
|
},
|
|
65
60
|
itemOffered: {
|
|
66
|
-
id: EVENT_SERVICE_ID
|
|
61
|
+
id: EVENT_SERVICE_ID,
|
|
62
|
+
serviceOutput: {
|
|
63
|
+
typeOf: client.factory.reservationType.EventReservation,
|
|
64
|
+
reservedTicket: { typeOf: 'Ticket', ticketedSeat: { typeOf: client.factory.placeType.Seat } }
|
|
65
|
+
}
|
|
67
66
|
},
|
|
68
67
|
seller: {
|
|
69
68
|
makesOffer: [
|
|
@@ -6,6 +6,7 @@ import { auth } from './auth/clientCredentials';
|
|
|
6
6
|
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
7
7
|
|
|
8
8
|
async function main() {
|
|
9
|
+
const now = new Date();
|
|
9
10
|
const eventService = new (await client.loadService()).Event({
|
|
10
11
|
endpoint: <string>process.env.API_ENDPOINT,
|
|
11
12
|
auth: await auth(),
|
|
@@ -17,17 +18,18 @@ async function main() {
|
|
|
17
18
|
page: 1,
|
|
18
19
|
limit: 1,
|
|
19
20
|
typeOf: client.factory.eventType.ScreeningEvent,
|
|
20
|
-
startFrom:
|
|
21
|
-
startThrough: moment()
|
|
21
|
+
startFrom: now,
|
|
22
|
+
startThrough: moment(now)
|
|
22
23
|
.add(1, 'days')
|
|
23
24
|
.toDate(),
|
|
24
25
|
sort: {
|
|
25
26
|
startDate: client.factory.sortType.Ascending
|
|
26
27
|
},
|
|
27
|
-
sellerMakesOfferAvailableAtIn: ['xx', 'xxx']
|
|
28
|
+
sellerMakesOfferAvailableAtIn: ['xx', 'xxx'],
|
|
29
|
+
identifiers: ['x', 'x']
|
|
28
30
|
});
|
|
29
31
|
// tslint:disable-next-line:no-null-keyword
|
|
30
|
-
|
|
32
|
+
console.dir(data.at(0), { depth: null });
|
|
31
33
|
// tslint:disable-next-line:no-null-keyword
|
|
32
34
|
// console.dir(data.at(0)?.offers?.seller.makesOffer, { depth: null });
|
|
33
35
|
console.log(data.length, 'events');
|
|
@@ -3,10 +3,51 @@ import { Service } from '../service';
|
|
|
3
3
|
declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send.message.email.IAttributes, 'purpose' | 'recipient'> & {
|
|
4
4
|
object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
|
|
5
5
|
};
|
|
6
|
+
declare type ICreateParamsByIdentifier = Pick<factory.event.ICreateParams<factory.eventType.ScreeningEvent>, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'maximumPhysicalAttendeeCapacity' | 'offers' | 'startDate'> & {
|
|
7
|
+
identifier: string;
|
|
8
|
+
offers: Pick<factory.event.screeningEvent.IOffers4create, 'eligibleQuantity' | 'seller' | 'unacceptedPaymentMethod'> & {
|
|
9
|
+
itemOffered: Pick<factory.event.screeningEvent.IItemOffered, 'id'>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
declare type IUpdateParamsByIdentifier = Pick<factory.event.IUpdateParams<factory.eventType.ScreeningEvent>, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'maximumPhysicalAttendeeCapacity' | 'offers' | 'startDate'> & {
|
|
13
|
+
identifier: string;
|
|
14
|
+
offers: Pick<factory.event.screeningEvent.IOffers4create, 'eligibleQuantity' | 'seller' | 'unacceptedPaymentMethod'> & {
|
|
15
|
+
itemOffered: Pick<factory.event.screeningEvent.IItemOffered, 'id'>;
|
|
16
|
+
};
|
|
17
|
+
location?: never;
|
|
18
|
+
superEvent?: never;
|
|
19
|
+
};
|
|
6
20
|
/**
|
|
7
21
|
* イベントサービス
|
|
8
22
|
*/
|
|
9
23
|
export declare class EventService extends Service {
|
|
24
|
+
/**
|
|
25
|
+
* イベント冪等複数作成
|
|
26
|
+
* イベントコードをキーにして、存在しなければ作成する
|
|
27
|
+
*/
|
|
28
|
+
createIfNotExistByIdentifier(params: ICreateParamsByIdentifier[], options: {
|
|
29
|
+
/**
|
|
30
|
+
* 施設コンテンツID
|
|
31
|
+
*/
|
|
32
|
+
superEventId: string;
|
|
33
|
+
/**
|
|
34
|
+
* ルームコード
|
|
35
|
+
*/
|
|
36
|
+
locationBranchCode: string;
|
|
37
|
+
/**
|
|
38
|
+
* 座席有無
|
|
39
|
+
*/
|
|
40
|
+
hasTicketedSeat: boolean;
|
|
41
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
42
|
+
}): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* 識別子によるイベント複数更新
|
|
45
|
+
* 識別子のイベントが存在しなければNotFound
|
|
46
|
+
* 座席有無は変更できない
|
|
47
|
+
*/
|
|
48
|
+
updateEventsByIdentifier(params: IUpdateParamsByIdentifier[], options: {
|
|
49
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
50
|
+
}): Promise<void>;
|
|
10
51
|
/**
|
|
11
52
|
* イベント冪等複数作成
|
|
12
53
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -63,6 +63,60 @@ var EventService = /** @class */ (function (_super) {
|
|
|
63
63
|
function EventService() {
|
|
64
64
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* イベント冪等複数作成
|
|
68
|
+
* イベントコードをキーにして、存在しなければ作成する
|
|
69
|
+
*/
|
|
70
|
+
EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
72
|
+
var superEventId, locationBranchCode, hasTicketedSeat, typeOf;
|
|
73
|
+
return __generator(this, function (_a) {
|
|
74
|
+
switch (_a.label) {
|
|
75
|
+
case 0:
|
|
76
|
+
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf;
|
|
77
|
+
return [4 /*yield*/, this.fetch({
|
|
78
|
+
uri: '/events',
|
|
79
|
+
method: 'POST',
|
|
80
|
+
body: params,
|
|
81
|
+
qs: { superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf },
|
|
82
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
83
|
+
})];
|
|
84
|
+
case 1:
|
|
85
|
+
_a.sent();
|
|
86
|
+
return [2 /*return*/];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 識別子によるイベント複数更新
|
|
93
|
+
* 識別子のイベントが存在しなければNotFound
|
|
94
|
+
* 座席有無は変更できない
|
|
95
|
+
*/
|
|
96
|
+
EventService.prototype.updateEventsByIdentifier = function (params, options) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
98
|
+
var typeOf;
|
|
99
|
+
return __generator(this, function (_a) {
|
|
100
|
+
switch (_a.label) {
|
|
101
|
+
case 0:
|
|
102
|
+
typeOf = options.typeOf;
|
|
103
|
+
return [4 /*yield*/, this.fetch({
|
|
104
|
+
uri: '/events',
|
|
105
|
+
method: 'PUT',
|
|
106
|
+
body: params,
|
|
107
|
+
qs: {
|
|
108
|
+
typeOf: typeOf,
|
|
109
|
+
updateBy: 'identifier'
|
|
110
|
+
},
|
|
111
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
112
|
+
})];
|
|
113
|
+
case 1:
|
|
114
|
+
_a.sent();
|
|
115
|
+
return [2 /*return*/];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
};
|
|
66
120
|
/**
|
|
67
121
|
* イベント冪等複数作成
|
|
68
122
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -4,6 +4,8 @@ declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send
|
|
|
4
4
|
object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
|
|
5
5
|
};
|
|
6
6
|
declare type ICreateScreeningEventParams = Omit<factory.event.ICreateParams<factory.eventType.ScreeningEvent>, 'location' | 'superEvent'> & {
|
|
7
|
+
typeOf?: never;
|
|
8
|
+
project?: never;
|
|
7
9
|
/**
|
|
8
10
|
* ルームコードを指定
|
|
9
11
|
*/
|
|
@@ -66,6 +66,25 @@ exports.EventService = void 0;
|
|
|
66
66
|
var factory = require("../../factory");
|
|
67
67
|
var index_1 = require("../../index");
|
|
68
68
|
var service_1 = require("../../service");
|
|
69
|
+
function createUpsertParams(params) {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
if (!Array.isArray(params.attributes) || params.attributes.length === 0) {
|
|
72
|
+
throw new factory.errors.ArgumentNull('body');
|
|
73
|
+
}
|
|
74
|
+
var superEventId = (_b = (_a = params.attributes[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
|
|
75
|
+
var locationBranchCode = (_d = (_c = params.attributes[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
|
|
76
|
+
if (typeof superEventId !== 'string' || superEventId === '') {
|
|
77
|
+
throw new factory.errors.ArgumentNull('superEvent.id');
|
|
78
|
+
}
|
|
79
|
+
if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
|
|
80
|
+
throw new factory.errors.ArgumentNull('location.branchCode');
|
|
81
|
+
}
|
|
82
|
+
var upsertParams = params.attributes.map(function (_a) {
|
|
83
|
+
var location = _a.location, superEvent = _a.superEvent, identifier = _a.identifier, typeOf = _a.typeOf, project = _a.project, createFields = __rest(_a, ["location", "superEvent", "identifier", "typeOf", "project"]);
|
|
84
|
+
return createFields;
|
|
85
|
+
});
|
|
86
|
+
return { upsertParams: upsertParams, superEventId: superEventId, locationBranchCode: locationBranchCode };
|
|
87
|
+
}
|
|
69
88
|
/**
|
|
70
89
|
* イベントサービス
|
|
71
90
|
*/
|
|
@@ -80,37 +99,22 @@ var EventService = /** @class */ (function (_super) {
|
|
|
80
99
|
* 存在すれば、一部属性を更新する(eventStatus,superEvent,offers.seller.makesOffer)
|
|
81
100
|
*/
|
|
82
101
|
EventService.prototype.upsertManyByAdditionalProperty = function (params) {
|
|
83
|
-
var _a, _b, _c, _d;
|
|
84
102
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
|
-
var superEventId, locationBranchCode,
|
|
86
|
-
return __generator(this, function (
|
|
87
|
-
switch (
|
|
103
|
+
var _a, upsertParams, superEventId, locationBranchCode, _b, auth, endpoint, project, seller, chevreAdmin, eventService;
|
|
104
|
+
return __generator(this, function (_c) {
|
|
105
|
+
switch (_c.label) {
|
|
88
106
|
case 0:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
superEventId = (_b = (_a = params.attributes[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
|
|
93
|
-
locationBranchCode = (_d = (_c = params.attributes[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
|
|
94
|
-
if (typeof superEventId !== 'string' || superEventId === '') {
|
|
95
|
-
throw new factory.errors.ArgumentNull('superEvent.id');
|
|
96
|
-
}
|
|
97
|
-
if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
|
|
98
|
-
throw new factory.errors.ArgumentNull('location.branchCode');
|
|
99
|
-
}
|
|
100
|
-
upsertParams = params.attributes.map(function (_a) {
|
|
101
|
-
var location = _a.location, superEvent = _a.superEvent, identifier = _a.identifier, createFields = __rest(_a, ["location", "superEvent", "identifier"]);
|
|
102
|
-
return createFields;
|
|
103
|
-
});
|
|
104
|
-
_e = this.options, auth = _e.auth, endpoint = _e.endpoint, project = _e.project, seller = _e.seller;
|
|
107
|
+
_a = createUpsertParams(params), upsertParams = _a.upsertParams, superEventId = _a.superEventId, locationBranchCode = _a.locationBranchCode;
|
|
108
|
+
_b = this.options, auth = _b.auth, endpoint = _b.endpoint, project = _b.project, seller = _b.seller;
|
|
105
109
|
return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint })];
|
|
106
110
|
case 1:
|
|
107
|
-
chevreAdmin =
|
|
111
|
+
chevreAdmin = _c.sent();
|
|
108
112
|
return [4 /*yield*/, chevreAdmin.createEventInstance({
|
|
109
113
|
project: project,
|
|
110
114
|
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
|
|
111
115
|
})];
|
|
112
116
|
case 2:
|
|
113
|
-
eventService =
|
|
117
|
+
eventService = _c.sent();
|
|
114
118
|
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(upsertParams, {
|
|
115
119
|
filter: { name: params.filter.name },
|
|
116
120
|
update: false,
|
|
@@ -118,14 +122,14 @@ var EventService = /** @class */ (function (_super) {
|
|
|
118
122
|
locationBranchCode: locationBranchCode
|
|
119
123
|
})];
|
|
120
124
|
case 3:
|
|
121
|
-
|
|
125
|
+
_c.sent();
|
|
122
126
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
123
127
|
setTimeout(function () { resolve(); },
|
|
124
128
|
// tslint:disable-next-line:no-magic-numbers
|
|
125
129
|
1000);
|
|
126
130
|
})];
|
|
127
131
|
case 4:
|
|
128
|
-
|
|
132
|
+
_c.sent();
|
|
129
133
|
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(upsertParams, {
|
|
130
134
|
filter: { name: params.filter.name },
|
|
131
135
|
update: true,
|
|
@@ -133,7 +137,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
133
137
|
locationBranchCode: locationBranchCode
|
|
134
138
|
})];
|
|
135
139
|
case 5:
|
|
136
|
-
|
|
140
|
+
_c.sent();
|
|
137
141
|
return [2 /*return*/];
|
|
138
142
|
}
|
|
139
143
|
});
|
package/lib/bundle.js
CHANGED
|
@@ -2569,6 +2569,60 @@ var EventService = /** @class */ (function (_super) {
|
|
|
2569
2569
|
function EventService() {
|
|
2570
2570
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2571
2571
|
}
|
|
2572
|
+
/**
|
|
2573
|
+
* イベント冪等複数作成
|
|
2574
|
+
* イベントコードをキーにして、存在しなければ作成する
|
|
2575
|
+
*/
|
|
2576
|
+
EventService.prototype.createIfNotExistByIdentifier = function (params, options) {
|
|
2577
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2578
|
+
var superEventId, locationBranchCode, hasTicketedSeat, typeOf;
|
|
2579
|
+
return __generator(this, function (_a) {
|
|
2580
|
+
switch (_a.label) {
|
|
2581
|
+
case 0:
|
|
2582
|
+
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat, typeOf = options.typeOf;
|
|
2583
|
+
return [4 /*yield*/, this.fetch({
|
|
2584
|
+
uri: '/events',
|
|
2585
|
+
method: 'POST',
|
|
2586
|
+
body: params,
|
|
2587
|
+
qs: { superEventId: superEventId, locationBranchCode: locationBranchCode, hasTicketedSeat: hasTicketedSeat, typeOf: typeOf },
|
|
2588
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
2589
|
+
})];
|
|
2590
|
+
case 1:
|
|
2591
|
+
_a.sent();
|
|
2592
|
+
return [2 /*return*/];
|
|
2593
|
+
}
|
|
2594
|
+
});
|
|
2595
|
+
});
|
|
2596
|
+
};
|
|
2597
|
+
/**
|
|
2598
|
+
* 識別子によるイベント複数更新
|
|
2599
|
+
* 識別子のイベントが存在しなければNotFound
|
|
2600
|
+
* 座席有無は変更できない
|
|
2601
|
+
*/
|
|
2602
|
+
EventService.prototype.updateEventsByIdentifier = function (params, options) {
|
|
2603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2604
|
+
var typeOf;
|
|
2605
|
+
return __generator(this, function (_a) {
|
|
2606
|
+
switch (_a.label) {
|
|
2607
|
+
case 0:
|
|
2608
|
+
typeOf = options.typeOf;
|
|
2609
|
+
return [4 /*yield*/, this.fetch({
|
|
2610
|
+
uri: '/events',
|
|
2611
|
+
method: 'PUT',
|
|
2612
|
+
body: params,
|
|
2613
|
+
qs: {
|
|
2614
|
+
typeOf: typeOf,
|
|
2615
|
+
updateBy: 'identifier'
|
|
2616
|
+
},
|
|
2617
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
2618
|
+
})];
|
|
2619
|
+
case 1:
|
|
2620
|
+
_a.sent();
|
|
2621
|
+
return [2 /*return*/];
|
|
2622
|
+
}
|
|
2623
|
+
});
|
|
2624
|
+
});
|
|
2625
|
+
};
|
|
2572
2626
|
/**
|
|
2573
2627
|
* イベント冪等複数作成
|
|
2574
2628
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -20746,6 +20800,25 @@ exports.EventService = void 0;
|
|
|
20746
20800
|
var factory = require("../../factory");
|
|
20747
20801
|
var index_1 = require("../../index");
|
|
20748
20802
|
var service_1 = require("../../service");
|
|
20803
|
+
function createUpsertParams(params) {
|
|
20804
|
+
var _a, _b, _c, _d;
|
|
20805
|
+
if (!Array.isArray(params.attributes) || params.attributes.length === 0) {
|
|
20806
|
+
throw new factory.errors.ArgumentNull('body');
|
|
20807
|
+
}
|
|
20808
|
+
var superEventId = (_b = (_a = params.attributes[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
|
|
20809
|
+
var locationBranchCode = (_d = (_c = params.attributes[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
|
|
20810
|
+
if (typeof superEventId !== 'string' || superEventId === '') {
|
|
20811
|
+
throw new factory.errors.ArgumentNull('superEvent.id');
|
|
20812
|
+
}
|
|
20813
|
+
if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
|
|
20814
|
+
throw new factory.errors.ArgumentNull('location.branchCode');
|
|
20815
|
+
}
|
|
20816
|
+
var upsertParams = params.attributes.map(function (_a) {
|
|
20817
|
+
var location = _a.location, superEvent = _a.superEvent, identifier = _a.identifier, typeOf = _a.typeOf, project = _a.project, createFields = __rest(_a, ["location", "superEvent", "identifier", "typeOf", "project"]);
|
|
20818
|
+
return createFields;
|
|
20819
|
+
});
|
|
20820
|
+
return { upsertParams: upsertParams, superEventId: superEventId, locationBranchCode: locationBranchCode };
|
|
20821
|
+
}
|
|
20749
20822
|
/**
|
|
20750
20823
|
* イベントサービス
|
|
20751
20824
|
*/
|
|
@@ -20760,37 +20833,22 @@ var EventService = /** @class */ (function (_super) {
|
|
|
20760
20833
|
* 存在すれば、一部属性を更新する(eventStatus,superEvent,offers.seller.makesOffer)
|
|
20761
20834
|
*/
|
|
20762
20835
|
EventService.prototype.upsertManyByAdditionalProperty = function (params) {
|
|
20763
|
-
var _a, _b, _c, _d;
|
|
20764
20836
|
return __awaiter(this, void 0, void 0, function () {
|
|
20765
|
-
var superEventId, locationBranchCode,
|
|
20766
|
-
return __generator(this, function (
|
|
20767
|
-
switch (
|
|
20837
|
+
var _a, upsertParams, superEventId, locationBranchCode, _b, auth, endpoint, project, seller, chevreAdmin, eventService;
|
|
20838
|
+
return __generator(this, function (_c) {
|
|
20839
|
+
switch (_c.label) {
|
|
20768
20840
|
case 0:
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
}
|
|
20772
|
-
superEventId = (_b = (_a = params.attributes[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
|
|
20773
|
-
locationBranchCode = (_d = (_c = params.attributes[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
|
|
20774
|
-
if (typeof superEventId !== 'string' || superEventId === '') {
|
|
20775
|
-
throw new factory.errors.ArgumentNull('superEvent.id');
|
|
20776
|
-
}
|
|
20777
|
-
if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
|
|
20778
|
-
throw new factory.errors.ArgumentNull('location.branchCode');
|
|
20779
|
-
}
|
|
20780
|
-
upsertParams = params.attributes.map(function (_a) {
|
|
20781
|
-
var location = _a.location, superEvent = _a.superEvent, identifier = _a.identifier, createFields = __rest(_a, ["location", "superEvent", "identifier"]);
|
|
20782
|
-
return createFields;
|
|
20783
|
-
});
|
|
20784
|
-
_e = this.options, auth = _e.auth, endpoint = _e.endpoint, project = _e.project, seller = _e.seller;
|
|
20841
|
+
_a = createUpsertParams(params), upsertParams = _a.upsertParams, superEventId = _a.superEventId, locationBranchCode = _a.locationBranchCode;
|
|
20842
|
+
_b = this.options, auth = _b.auth, endpoint = _b.endpoint, project = _b.project, seller = _b.seller;
|
|
20785
20843
|
return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint })];
|
|
20786
20844
|
case 1:
|
|
20787
|
-
chevreAdmin =
|
|
20845
|
+
chevreAdmin = _c.sent();
|
|
20788
20846
|
return [4 /*yield*/, chevreAdmin.createEventInstance({
|
|
20789
20847
|
project: project,
|
|
20790
20848
|
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
|
|
20791
20849
|
})];
|
|
20792
20850
|
case 2:
|
|
20793
|
-
eventService =
|
|
20851
|
+
eventService = _c.sent();
|
|
20794
20852
|
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(upsertParams, {
|
|
20795
20853
|
filter: { name: params.filter.name },
|
|
20796
20854
|
update: false,
|
|
@@ -20798,14 +20856,14 @@ var EventService = /** @class */ (function (_super) {
|
|
|
20798
20856
|
locationBranchCode: locationBranchCode
|
|
20799
20857
|
})];
|
|
20800
20858
|
case 3:
|
|
20801
|
-
|
|
20859
|
+
_c.sent();
|
|
20802
20860
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
20803
20861
|
setTimeout(function () { resolve(); },
|
|
20804
20862
|
// tslint:disable-next-line:no-magic-numbers
|
|
20805
20863
|
1000);
|
|
20806
20864
|
})];
|
|
20807
20865
|
case 4:
|
|
20808
|
-
|
|
20866
|
+
_c.sent();
|
|
20809
20867
|
return [4 /*yield*/, eventService.upsertManyByAdditionalProperty(upsertParams, {
|
|
20810
20868
|
filter: { name: params.filter.name },
|
|
20811
20869
|
update: true,
|
|
@@ -20813,7 +20871,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
20813
20871
|
locationBranchCode: locationBranchCode
|
|
20814
20872
|
})];
|
|
20815
20873
|
case 5:
|
|
20816
|
-
|
|
20874
|
+
_c.sent();
|
|
20817
20875
|
return [2 /*return*/];
|
|
20818
20876
|
}
|
|
20819
20877
|
});
|
|
@@ -30726,35 +30784,8 @@ var RoleName;
|
|
|
30726
30784
|
})(RoleName = exports.RoleName || (exports.RoleName = {}));
|
|
30727
30785
|
|
|
30728
30786
|
},{}],335:[function(require,module,exports){
|
|
30729
|
-
|
|
30730
|
-
|
|
30731
|
-
// export interface ISchedule4ttts extends Pick<IEventWithSchedule, 'id' | 'offers' | 'project' | 'superEvent'> {
|
|
30732
|
-
// eventSchedule?: never;
|
|
30733
|
-
// duration: number;
|
|
30734
|
-
// noPerformanceTimes: string[];
|
|
30735
|
-
// /**
|
|
30736
|
-
// * 作成対象時間: 9,10,11など
|
|
30737
|
-
// */
|
|
30738
|
-
// hours: string[];
|
|
30739
|
-
// /**
|
|
30740
|
-
// * ['00', '15', '30', '45']
|
|
30741
|
-
// */
|
|
30742
|
-
// minutes: string[];
|
|
30743
|
-
// /**
|
|
30744
|
-
// * ['1', '2', '3', '4']
|
|
30745
|
-
// */
|
|
30746
|
-
// tours: string[];
|
|
30747
|
-
// /**
|
|
30748
|
-
// * 作成開始が今日から何日後か
|
|
30749
|
-
// */
|
|
30750
|
-
// // start: number;
|
|
30751
|
-
// /**
|
|
30752
|
-
// * 何日分作成するか
|
|
30753
|
-
// */
|
|
30754
|
-
// days: number;
|
|
30755
|
-
// }
|
|
30756
|
-
|
|
30757
|
-
},{}],336:[function(require,module,exports){
|
|
30787
|
+
arguments[4][34][0].apply(exports,arguments)
|
|
30788
|
+
},{"dup":34}],336:[function(require,module,exports){
|
|
30758
30789
|
arguments[4][34][0].apply(exports,arguments)
|
|
30759
30790
|
},{"dup":34}],337:[function(require,module,exports){
|
|
30760
30791
|
arguments[4][34][0].apply(exports,arguments)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "12.3.0-alpha.
|
|
3
|
+
"version": "12.3.0-alpha.5",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"watchify": "^3.11.1"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@chevre/factory": "4.398.0-alpha.
|
|
96
|
+
"@chevre/factory": "4.398.0-alpha.6",
|
|
97
97
|
"debug": "3.2.7",
|
|
98
98
|
"http-status": "1.7.4",
|
|
99
99
|
"idtoken-verifier": "2.0.3",
|