@cinerino/sdk 3.153.0 → 3.154.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.
- package/example/playground/public/lib/bundle.js +258 -363
- package/example/src/chevre/assetTransaction/processReserve.ts +1 -1
- package/example/src/searchOrders.ts +1 -3
- package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMembership.ts +1 -1
- package/example/src/transaction/processPlaceOrderByCash.ts +1 -1
- package/example/src/transaction/processPlaceOrderByMovieTicket.ts +1 -1
- package/example/src/transaction/processPlaceOrderByPaymentCard.ts +1 -1
- package/lib/abstract/chevre/event.d.ts +3 -0
- package/lib/abstract/chevre/event.js +17 -0
- package/lib/abstract/index.d.ts +0 -3
- package/lib/abstract/index.js +2 -9
- package/lib/abstract/service/project.d.ts +0 -4
- package/lib/abstract/service/project.js +0 -18
- package/lib/abstract/service.d.ts +0 -1
- package/lib/bundle.js +259 -364
- package/package.json +3 -3
- package/lib/abstract/service/iam.d.ts +0 -11
- package/lib/abstract/service/iam.js +0 -95
|
@@ -34,7 +34,7 @@ async function main() {
|
|
|
34
34
|
.add(1, 'month')
|
|
35
35
|
.toDate()
|
|
36
36
|
});
|
|
37
|
-
console.log(events.
|
|
37
|
+
console.log(events.data.length, 'events found');
|
|
38
38
|
const selectedEvent = events.data[0];
|
|
39
39
|
// const selectedEvent = { id: '7iri100jqrrpxy1' };
|
|
40
40
|
|
|
@@ -21,7 +21,7 @@ async function main() {
|
|
|
21
21
|
|
|
22
22
|
const now = new Date();
|
|
23
23
|
|
|
24
|
-
const {
|
|
24
|
+
const { data } = await orderService.search({
|
|
25
25
|
limit: 10,
|
|
26
26
|
page: 1,
|
|
27
27
|
orderDate: {
|
|
@@ -74,7 +74,6 @@ async function main() {
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
console.log(data);
|
|
77
|
-
console.log(totalCount, 'orders found');
|
|
78
77
|
console.log(data.length, 'orders returned');
|
|
79
78
|
|
|
80
79
|
// let i = 0;
|
|
@@ -93,7 +92,6 @@ async function main() {
|
|
|
93
92
|
// }
|
|
94
93
|
// });
|
|
95
94
|
// console.log(data);
|
|
96
|
-
// console.log(totalCount, 'orders found', i);
|
|
97
95
|
// console.log(data.length, 'orders returned', i);
|
|
98
96
|
// } catch (error) {
|
|
99
97
|
// console.error(error, i);
|
|
@@ -67,7 +67,7 @@ async function main() {
|
|
|
67
67
|
.toDate()
|
|
68
68
|
// superEvent: { locationBranchCodes: [seller.location.branchCode] }
|
|
69
69
|
});
|
|
70
|
-
console.log(searchScreeningEventsResult.
|
|
70
|
+
console.log(searchScreeningEventsResult.data.length, 'events found');
|
|
71
71
|
|
|
72
72
|
const availableEvents = searchScreeningEventsResult.data;
|
|
73
73
|
// const availableEvents = screeningEvents.filter(
|
|
@@ -89,7 +89,7 @@ async function main() {
|
|
|
89
89
|
.toDate()
|
|
90
90
|
// superEvent: { locationBranchCodes: ['118'] }
|
|
91
91
|
});
|
|
92
|
-
console.log(searchScreeningEventsResult.
|
|
92
|
+
console.log(searchScreeningEventsResult.data.length, 'events found');
|
|
93
93
|
|
|
94
94
|
const availableEvents = searchScreeningEventsResult.data;
|
|
95
95
|
// const availableEvents = screeningEvents.filter(
|
|
@@ -82,7 +82,7 @@ async function main() {
|
|
|
82
82
|
workPerformedIdentifiers: ['1622100']
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
console.log(searchScreeningEventsResult.
|
|
85
|
+
console.log(searchScreeningEventsResult.data.length, 'events found');
|
|
86
86
|
|
|
87
87
|
const availableEvents = searchScreeningEventsResult.data;
|
|
88
88
|
// const availableEvents = screeningEvents.filter(
|
|
@@ -67,7 +67,7 @@ async function main() {
|
|
|
67
67
|
.toDate(),
|
|
68
68
|
superEvent: { locationBranchCodes: ['118'] }
|
|
69
69
|
});
|
|
70
|
-
console.log(searchScreeningEventsResult.
|
|
70
|
+
console.log(searchScreeningEventsResult.data.length, 'events found');
|
|
71
71
|
|
|
72
72
|
const availableEvents = searchScreeningEventsResult.data;
|
|
73
73
|
// const availableEvents = screeningEvents.filter(
|
|
@@ -25,6 +25,9 @@ export declare class EventService extends Service {
|
|
|
25
25
|
name: string;
|
|
26
26
|
};
|
|
27
27
|
}): Promise<void>;
|
|
28
|
+
createScreeningEventSeriesIfNotExistByWorkPerformed(params: {
|
|
29
|
+
attributes: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[];
|
|
30
|
+
}): Promise<void>;
|
|
28
31
|
/**
|
|
29
32
|
* イベント検索
|
|
30
33
|
*/
|
|
@@ -123,6 +123,23 @@ var EventService = /** @class */ (function (_super) {
|
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
|
+
EventService.prototype.createScreeningEventSeriesIfNotExistByWorkPerformed = function (params) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
switch (_a.label) {
|
|
130
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
131
|
+
uri: '/events/createScreeningEventSeriesIfNotExistByWorkPerformed',
|
|
132
|
+
method: 'POST',
|
|
133
|
+
body: params.attributes,
|
|
134
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
135
|
+
})];
|
|
136
|
+
case 1:
|
|
137
|
+
_a.sent();
|
|
138
|
+
return [2 /*return*/];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
};
|
|
126
143
|
/**
|
|
127
144
|
* イベント検索
|
|
128
145
|
*/
|
package/lib/abstract/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { CustomerService } from './service/customer';
|
|
|
17
17
|
import { DeliveryService } from './service/delivery';
|
|
18
18
|
import { EmailMessageService } from './service/emailMessage';
|
|
19
19
|
import { EventService } from './service/event';
|
|
20
|
-
import { IAMService } from './service/iam';
|
|
21
20
|
import { OfferService } from './service/offer';
|
|
22
21
|
import { OrderService } from './service/order';
|
|
23
22
|
import { PaymentService } from './service/payment';
|
|
@@ -106,8 +105,6 @@ export declare namespace service {
|
|
|
106
105
|
/**
|
|
107
106
|
* IAMサービス
|
|
108
107
|
*/
|
|
109
|
-
class IAM extends IAMService {
|
|
110
|
-
}
|
|
111
108
|
/**
|
|
112
109
|
* オファーサービス
|
|
113
110
|
*/
|
package/lib/abstract/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var customer_1 = require("./service/customer");
|
|
|
36
36
|
var delivery_1 = require("./service/delivery");
|
|
37
37
|
var emailMessage_1 = require("./service/emailMessage");
|
|
38
38
|
var event_1 = require("./service/event");
|
|
39
|
-
|
|
39
|
+
// import { IAMService } from './service/iam';
|
|
40
40
|
var offer_1 = require("./service/offer");
|
|
41
41
|
var order_1 = require("./service/order");
|
|
42
42
|
var payment_1 = require("./service/payment");
|
|
@@ -191,14 +191,7 @@ var service;
|
|
|
191
191
|
/**
|
|
192
192
|
* IAMサービス
|
|
193
193
|
*/
|
|
194
|
-
|
|
195
|
-
__extends(IAM, _super);
|
|
196
|
-
function IAM() {
|
|
197
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
198
|
-
}
|
|
199
|
-
return IAM;
|
|
200
|
-
}(iam_1.IAMService));
|
|
201
|
-
service.IAM = IAM;
|
|
194
|
+
// export class IAM extends IAMService { }
|
|
202
195
|
/**
|
|
203
196
|
* オファーサービス
|
|
204
197
|
*/
|
|
@@ -140,24 +140,6 @@ var ProjectService = /** @class */ (function (_super) {
|
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
/**
|
|
144
|
-
* DB統計取得
|
|
145
|
-
*/
|
|
146
|
-
ProjectService.prototype.getDBStats = function (_) {
|
|
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: '/stats/dbStats',
|
|
152
|
-
method: 'GET',
|
|
153
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
154
|
-
})
|
|
155
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
156
|
-
return [2 /*return*/, response.json()];
|
|
157
|
-
}); }); })];
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
143
|
return ProjectService;
|
|
162
144
|
}(service_1.Service));
|
|
163
145
|
exports.ProjectService = ProjectService;
|