@cinerino/sdk 12.3.0-alpha.1 → 12.3.0-alpha.10
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/admin/adminCreateEventIfNotExistByIdentifierBySoftware.ts +103 -0
- package/example/src/chevre/admin/adminCreateNotesIfNotExistByIdentifier.ts +71 -0
- package/example/src/chevre/admin/adminProductOffersByIdentifier.ts +83 -0
- package/example/src/chevre/console/adminEvents.ts +3 -4
- package/example/src/cloud/admin/adminCreateEventIfNotExistByIdentifierBySoftware.ts +102 -0
- package/example/src/cloud/admin/adminUpsertManyEventsByAdditionalProperty.ts +19 -21
- package/example/src/cloud/findOrderByConfirmationNumber.ts +2 -2
- package/example/src/cloud/search/findProducts.ts +2 -1
- package/example/src/cloud/transaction/processPlaceOrderUsingMemberProgramTier.ts +10 -2
- 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/chevreAdmin/note.d.ts +50 -10
- package/lib/abstract/chevreAdmin/note.js +42 -19
- package/lib/abstract/chevreAdmin/noteAboutOrder.d.ts +21 -0
- package/lib/abstract/chevreAdmin/noteAboutOrder.js +120 -0
- package/lib/abstract/chevreAdmin/productOffer.d.ts +69 -0
- package/lib/abstract/{chevreConsole/eventOffer.js → chevreAdmin/productOffer.js} +46 -63
- package/lib/abstract/chevreAdmin.d.ts +20 -2
- package/lib/abstract/chevreAdmin.js +40 -0
- package/lib/abstract/chevreConsole/event.js +4 -3
- package/lib/abstract/chevreConsole.d.ts +0 -9
- package/lib/abstract/chevreConsole.js +0 -20
- package/lib/abstract/cloud/admin/event.d.ts +45 -11
- package/lib/abstract/cloud/admin/event.js +100 -12
- package/lib/abstract/cloud/admin/{note.d.ts → noteAboutOrder.d.ts} +17 -3
- package/lib/abstract/cloud/admin/{note.js → noteAboutOrder.js} +18 -13
- package/lib/abstract/cloud/admin.d.ts +8 -8
- package/lib/abstract/cloud/admin.js +8 -8
- package/lib/bundle.js +1276 -949
- package/package.json +3 -2
- package/lib/abstract/chevreConsole/eventOffer.d.ts +0 -32
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.NoteAboutOrderService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
/**
|
|
58
|
+
* 注文メモサービス
|
|
59
|
+
*/
|
|
60
|
+
var NoteAboutOrderService = /** @class */ (function (_super) {
|
|
61
|
+
__extends(NoteAboutOrderService, _super);
|
|
62
|
+
function NoteAboutOrderService() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
NoteAboutOrderService.prototype.upsertByIdentifier = function (params) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
+
return __generator(this, function (_a) {
|
|
68
|
+
switch (_a.label) {
|
|
69
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
70
|
+
uri: '/notes',
|
|
71
|
+
method: 'PUT',
|
|
72
|
+
body: params,
|
|
73
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
74
|
+
})];
|
|
75
|
+
case 1:
|
|
76
|
+
_a.sent();
|
|
77
|
+
return [2 /*return*/];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
NoteAboutOrderService.prototype.search = function (params) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var _this = this;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
return [2 /*return*/, this.fetch({
|
|
87
|
+
uri: '/notes',
|
|
88
|
+
method: 'GET',
|
|
89
|
+
qs: params,
|
|
90
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
91
|
+
})
|
|
92
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
93
|
+
return [2 /*return*/, response.json()];
|
|
94
|
+
}); }); })];
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
NoteAboutOrderService.prototype.updateById = function (id, body) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var text;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
text = body.text;
|
|
105
|
+
return [4 /*yield*/, this.fetch({
|
|
106
|
+
uri: "/notes/" + String(id),
|
|
107
|
+
method: 'PUT',
|
|
108
|
+
body: { text: text },
|
|
109
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
110
|
+
})];
|
|
111
|
+
case 1:
|
|
112
|
+
_a.sent();
|
|
113
|
+
return [2 /*return*/];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return NoteAboutOrderService;
|
|
119
|
+
}(service_1.Service));
|
|
120
|
+
exports.NoteAboutOrderService = NoteAboutOrderService;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
interface IProductOffer {
|
|
4
|
+
typeOf: factory.offerType.Offer;
|
|
5
|
+
/**
|
|
6
|
+
* プロダクトオファーコード
|
|
7
|
+
*/
|
|
8
|
+
identifier: string;
|
|
9
|
+
itemOffered: {
|
|
10
|
+
typeOf: factory.offerType.AggregateOffer;
|
|
11
|
+
/**
|
|
12
|
+
* プロダクトオファーコレクションコード
|
|
13
|
+
*/
|
|
14
|
+
identifier: string;
|
|
15
|
+
};
|
|
16
|
+
availability: factory.itemAvailability.InStock | factory.itemAvailability.OutOfStock;
|
|
17
|
+
validFrom: Date;
|
|
18
|
+
validThrough: Date;
|
|
19
|
+
acceptedPaymentMethod?: {
|
|
20
|
+
typeOf: 'PaymentMethod';
|
|
21
|
+
identifier: string;
|
|
22
|
+
};
|
|
23
|
+
validForMemberTier?: Pick<factory.issuer.IMemberProgramTier, 'identifier' | 'typeOf'>;
|
|
24
|
+
}
|
|
25
|
+
interface ICreateValidForMemberTierParams {
|
|
26
|
+
identifier: string;
|
|
27
|
+
validForMemberTier: {
|
|
28
|
+
identifier: string;
|
|
29
|
+
};
|
|
30
|
+
validFrom: Date;
|
|
31
|
+
validThrough: Date;
|
|
32
|
+
}
|
|
33
|
+
export interface IFindParams {
|
|
34
|
+
limit: number;
|
|
35
|
+
page: number;
|
|
36
|
+
itemOfferedIdentifier?: string;
|
|
37
|
+
itemOfferedIdentifiers?: string[];
|
|
38
|
+
identifiers?: string[];
|
|
39
|
+
id?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* プロダクトオファーサービス
|
|
43
|
+
*/
|
|
44
|
+
export declare class ProductOfferService extends Service {
|
|
45
|
+
/**
|
|
46
|
+
* メンバープログラムティア適用オファーを追加する
|
|
47
|
+
*/
|
|
48
|
+
createValidForMemberTierByIdentifier(params: ICreateValidForMemberTierParams[], options: {
|
|
49
|
+
itemOfferedIdentifier: string;
|
|
50
|
+
}): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* メンバープログラムティア適用オファーを編集する
|
|
53
|
+
*/
|
|
54
|
+
updateValidForMemberTierByIdentifier(params: ICreateValidForMemberTierParams[], options: {
|
|
55
|
+
itemOfferedIdentifier: string;
|
|
56
|
+
}): Promise<void>;
|
|
57
|
+
findProductOffers(params: IFindParams): Promise<(IProductOffer & {
|
|
58
|
+
id: string;
|
|
59
|
+
})[]>;
|
|
60
|
+
/**
|
|
61
|
+
* 有効なメンバーティアトークンを発行する(開発使用目的)
|
|
62
|
+
*/
|
|
63
|
+
publishMemberTierToken(params: {
|
|
64
|
+
id: string;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
token: string;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -50,72 +50,34 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
-
var t = {};
|
|
55
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
-
t[p] = s[p];
|
|
57
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
-
t[p[i]] = s[p[i]];
|
|
61
|
-
}
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
-
exports.
|
|
54
|
+
exports.ProductOfferService = void 0;
|
|
66
55
|
var http_status_1 = require("http-status");
|
|
67
56
|
var service_1 = require("../service");
|
|
57
|
+
var BASE_URI = '/productOffers';
|
|
68
58
|
/**
|
|
69
|
-
*
|
|
59
|
+
* プロダクトオファーサービス
|
|
70
60
|
*/
|
|
71
|
-
var
|
|
72
|
-
__extends(
|
|
73
|
-
function
|
|
61
|
+
var ProductOfferService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(ProductOfferService, _super);
|
|
63
|
+
function ProductOfferService() {
|
|
74
64
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
65
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return [2 /*return*/, this.fetch({
|
|
81
|
-
uri: '/eventOffers',
|
|
82
|
-
method: 'POST',
|
|
83
|
-
body: params,
|
|
84
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
85
|
-
})
|
|
86
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
87
|
-
return [2 /*return*/, response.json()];
|
|
88
|
-
}); }); })];
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
EventOfferService.prototype.projectFields = function (params) {
|
|
93
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
-
var _this = this;
|
|
95
|
-
return __generator(this, function (_a) {
|
|
96
|
-
return [2 /*return*/, this.fetch({
|
|
97
|
-
uri: '/eventOffers',
|
|
98
|
-
method: 'GET',
|
|
99
|
-
qs: params,
|
|
100
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
101
|
-
})
|
|
102
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
103
|
-
return [2 /*return*/, response.json()];
|
|
104
|
-
}); }); })];
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
EventOfferService.prototype.updateById = function (params) {
|
|
66
|
+
/**
|
|
67
|
+
* メンバープログラムティア適用オファーを追加する
|
|
68
|
+
*/
|
|
69
|
+
ProductOfferService.prototype.createValidForMemberTierByIdentifier = function (params, options) {
|
|
109
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
-
var
|
|
71
|
+
var itemOfferedIdentifier;
|
|
111
72
|
return __generator(this, function (_a) {
|
|
112
73
|
switch (_a.label) {
|
|
113
74
|
case 0:
|
|
114
|
-
|
|
75
|
+
itemOfferedIdentifier = options.itemOfferedIdentifier;
|
|
115
76
|
return [4 /*yield*/, this.fetch({
|
|
116
|
-
uri:
|
|
117
|
-
method: '
|
|
118
|
-
body:
|
|
77
|
+
uri: BASE_URI,
|
|
78
|
+
method: 'POST',
|
|
79
|
+
body: params,
|
|
80
|
+
qs: { itemOfferedIdentifier: itemOfferedIdentifier },
|
|
119
81
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
120
82
|
})];
|
|
121
83
|
case 1:
|
|
@@ -125,16 +87,21 @@ var EventOfferService = /** @class */ (function (_super) {
|
|
|
125
87
|
});
|
|
126
88
|
});
|
|
127
89
|
};
|
|
128
|
-
|
|
90
|
+
/**
|
|
91
|
+
* メンバープログラムティア適用オファーを編集する
|
|
92
|
+
*/
|
|
93
|
+
ProductOfferService.prototype.updateValidForMemberTierByIdentifier = function (params, options) {
|
|
129
94
|
return __awaiter(this, void 0, void 0, function () {
|
|
130
|
-
var
|
|
95
|
+
var itemOfferedIdentifier;
|
|
131
96
|
return __generator(this, function (_a) {
|
|
132
97
|
switch (_a.label) {
|
|
133
98
|
case 0:
|
|
134
|
-
|
|
99
|
+
itemOfferedIdentifier = options.itemOfferedIdentifier;
|
|
135
100
|
return [4 /*yield*/, this.fetch({
|
|
136
|
-
uri:
|
|
137
|
-
method: '
|
|
101
|
+
uri: BASE_URI,
|
|
102
|
+
method: 'PUT',
|
|
103
|
+
body: params,
|
|
104
|
+
qs: { itemOfferedIdentifier: itemOfferedIdentifier },
|
|
138
105
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
139
106
|
})];
|
|
140
107
|
case 1:
|
|
@@ -144,17 +111,33 @@ var EventOfferService = /** @class */ (function (_super) {
|
|
|
144
111
|
});
|
|
145
112
|
});
|
|
146
113
|
};
|
|
114
|
+
ProductOfferService.prototype.findProductOffers = function (params) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var _this = this;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
return [2 /*return*/, this.fetch({
|
|
119
|
+
uri: BASE_URI,
|
|
120
|
+
method: 'GET',
|
|
121
|
+
qs: params,
|
|
122
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
123
|
+
})
|
|
124
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
125
|
+
return [2 /*return*/, response.json()];
|
|
126
|
+
}); }); })];
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
147
130
|
/**
|
|
148
131
|
* 有効なメンバーティアトークンを発行する(開発使用目的)
|
|
149
132
|
*/
|
|
150
|
-
|
|
133
|
+
ProductOfferService.prototype.publishMemberTierToken = function (params) {
|
|
151
134
|
return __awaiter(this, void 0, void 0, function () {
|
|
152
135
|
var id;
|
|
153
136
|
var _this = this;
|
|
154
137
|
return __generator(this, function (_a) {
|
|
155
138
|
id = params.id;
|
|
156
139
|
return [2 /*return*/, this.fetch({
|
|
157
|
-
uri: "/
|
|
140
|
+
uri: BASE_URI + "/" + encodeURIComponent(String(id)) + "/tokens",
|
|
158
141
|
method: 'POST',
|
|
159
142
|
expectedStatusCodes: [http_status_1.CREATED]
|
|
160
143
|
})
|
|
@@ -164,6 +147,6 @@ var EventOfferService = /** @class */ (function (_super) {
|
|
|
164
147
|
});
|
|
165
148
|
});
|
|
166
149
|
};
|
|
167
|
-
return
|
|
150
|
+
return ProductOfferService;
|
|
168
151
|
}(service_1.Service));
|
|
169
|
-
exports.
|
|
152
|
+
exports.ProductOfferService = ProductOfferService;
|
|
@@ -8,11 +8,13 @@ import type { EventSeriesService } from './chevreAdmin/eventSeries';
|
|
|
8
8
|
import type { MeService } from './chevreAdmin/me';
|
|
9
9
|
import type { MemberService } from './chevreAdmin/member';
|
|
10
10
|
import type { NoteService } from './chevreAdmin/note';
|
|
11
|
+
import type { NoteAboutOrderService } from './chevreAdmin/noteAboutOrder';
|
|
11
12
|
import type { OfferService } from './chevreAdmin/offer';
|
|
12
13
|
import type { OfferCatalogService } from './chevreAdmin/offerCatalog';
|
|
13
14
|
import type { OfferCatalogItemService } from './chevreAdmin/offerCatalogItem';
|
|
14
15
|
import type { OrderService } from './chevreAdmin/order';
|
|
15
16
|
import type { ProductService } from './chevreAdmin/product';
|
|
17
|
+
import type { ProductOfferService } from './chevreAdmin/productOffer';
|
|
16
18
|
import type { ReservationService } from './chevreAdmin/reservation';
|
|
17
19
|
import type { SellerService } from './chevreAdmin/seller';
|
|
18
20
|
export declare namespace service {
|
|
@@ -73,6 +75,13 @@ export declare namespace service {
|
|
|
73
75
|
namespace Note {
|
|
74
76
|
let svc: typeof NoteService | undefined;
|
|
75
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* 注文メモサービス
|
|
80
|
+
*/
|
|
81
|
+
type NoteAboutOrder = NoteAboutOrderService;
|
|
82
|
+
namespace NoteAboutOrder {
|
|
83
|
+
let svc: typeof NoteAboutOrderService | undefined;
|
|
84
|
+
}
|
|
76
85
|
/**
|
|
77
86
|
* 注文サービス
|
|
78
87
|
*/
|
|
@@ -87,6 +96,13 @@ export declare namespace service {
|
|
|
87
96
|
namespace Product {
|
|
88
97
|
let svc: typeof ProductService | undefined;
|
|
89
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* プロダクトオファーサービス
|
|
101
|
+
*/
|
|
102
|
+
type ProductOffer = ProductOfferService;
|
|
103
|
+
namespace ProductOffer {
|
|
104
|
+
let svc: typeof ProductOfferService | undefined;
|
|
105
|
+
}
|
|
90
106
|
/**
|
|
91
107
|
* 予約サービス
|
|
92
108
|
*/
|
|
@@ -136,8 +152,8 @@ export declare namespace service {
|
|
|
136
152
|
* 管理サービス
|
|
137
153
|
*/
|
|
138
154
|
export declare class ChevreAdmin {
|
|
139
|
-
options: Pick<IOptions, 'auth' | 'endpoint'>;
|
|
140
|
-
constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
|
|
155
|
+
options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
|
|
156
|
+
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
|
|
141
157
|
createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
|
|
142
158
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
143
159
|
createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
|
|
@@ -146,8 +162,10 @@ export declare class ChevreAdmin {
|
|
|
146
162
|
createMeInstance(): Promise<MeService>;
|
|
147
163
|
createMemberInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MemberService>;
|
|
148
164
|
createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
|
|
165
|
+
createNoteAboutOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteAboutOrderService>;
|
|
149
166
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
150
167
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
168
|
+
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
151
169
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
152
170
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
153
171
|
createOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferService>;
|
|
@@ -74,12 +74,18 @@ var service;
|
|
|
74
74
|
var Note;
|
|
75
75
|
(function (Note) {
|
|
76
76
|
})(Note = service.Note || (service.Note = {}));
|
|
77
|
+
var NoteAboutOrder;
|
|
78
|
+
(function (NoteAboutOrder) {
|
|
79
|
+
})(NoteAboutOrder = service.NoteAboutOrder || (service.NoteAboutOrder = {}));
|
|
77
80
|
var Order;
|
|
78
81
|
(function (Order) {
|
|
79
82
|
})(Order = service.Order || (service.Order = {}));
|
|
80
83
|
var Product;
|
|
81
84
|
(function (Product) {
|
|
82
85
|
})(Product = service.Product || (service.Product = {}));
|
|
86
|
+
var ProductOffer;
|
|
87
|
+
(function (ProductOffer) {
|
|
88
|
+
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
83
89
|
var Reservation;
|
|
84
90
|
(function (Reservation) {
|
|
85
91
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
@@ -245,6 +251,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
245
251
|
});
|
|
246
252
|
});
|
|
247
253
|
};
|
|
254
|
+
ChevreAdmin.prototype.createNoteAboutOrderInstance = function (params) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
256
|
+
var _a;
|
|
257
|
+
return __generator(this, function (_b) {
|
|
258
|
+
switch (_b.label) {
|
|
259
|
+
case 0:
|
|
260
|
+
if (!(service.NoteAboutOrder.svc === undefined)) return [3 /*break*/, 2];
|
|
261
|
+
_a = service.NoteAboutOrder;
|
|
262
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/noteAboutOrder'); })];
|
|
263
|
+
case 1:
|
|
264
|
+
_a.svc = (_b.sent()).NoteAboutOrderService;
|
|
265
|
+
_b.label = 2;
|
|
266
|
+
case 2: return [2 /*return*/, new service.NoteAboutOrder.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
};
|
|
248
271
|
ChevreAdmin.prototype.createOrderInstance = function (params) {
|
|
249
272
|
return __awaiter(this, void 0, void 0, function () {
|
|
250
273
|
var _a;
|
|
@@ -279,6 +302,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
279
302
|
});
|
|
280
303
|
});
|
|
281
304
|
};
|
|
305
|
+
ChevreAdmin.prototype.createProductOfferInstance = function (params) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
+
var _a;
|
|
308
|
+
return __generator(this, function (_b) {
|
|
309
|
+
switch (_b.label) {
|
|
310
|
+
case 0:
|
|
311
|
+
if (!(service.ProductOffer.svc === undefined)) return [3 /*break*/, 2];
|
|
312
|
+
_a = service.ProductOffer;
|
|
313
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/productOffer'); })];
|
|
314
|
+
case 1:
|
|
315
|
+
_a.svc = (_b.sent()).ProductOfferService;
|
|
316
|
+
_b.label = 2;
|
|
317
|
+
case 2: return [2 /*return*/, new service.ProductOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
};
|
|
282
322
|
ChevreAdmin.prototype.createReservationInstance = function (params) {
|
|
283
323
|
return __awaiter(this, void 0, void 0, function () {
|
|
284
324
|
var _a;
|
|
@@ -70,11 +70,11 @@ var EventService = /** @class */ (function (_super) {
|
|
|
70
70
|
// add options(2025-08-26~)
|
|
71
71
|
options) {
|
|
72
72
|
return __awaiter(this, void 0, void 0, function () {
|
|
73
|
-
var superEventId, locationBranchCode;
|
|
73
|
+
var superEventId, locationBranchCode, hasTicketedSeat;
|
|
74
74
|
return __generator(this, function (_a) {
|
|
75
75
|
switch (_a.label) {
|
|
76
76
|
case 0:
|
|
77
|
-
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode;
|
|
77
|
+
superEventId = options.superEventId, locationBranchCode = options.locationBranchCode, hasTicketedSeat = options.hasTicketedSeat;
|
|
78
78
|
return [4 /*yield*/, this.fetch({
|
|
79
79
|
uri: '/events',
|
|
80
80
|
method: 'POST',
|
|
@@ -83,7 +83,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
83
83
|
expectsNoContent: '1',
|
|
84
84
|
typeOf: factory.eventType.ScreeningEvent,
|
|
85
85
|
superEventId: superEventId,
|
|
86
|
-
locationBranchCode: locationBranchCode
|
|
86
|
+
locationBranchCode: locationBranchCode,
|
|
87
|
+
hasTicketedSeat: hasTicketedSeat
|
|
87
88
|
},
|
|
88
89
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
89
90
|
})];
|
|
@@ -22,7 +22,6 @@ import type { CustomerService } from './chevreConsole/customer';
|
|
|
22
22
|
import type { CustomerTypeService } from './chevreConsole/customerType';
|
|
23
23
|
import type { EmailMessageService } from './chevreConsole/emailMessage';
|
|
24
24
|
import type { EventService } from './chevreConsole/event';
|
|
25
|
-
import type { EventOfferService } from './chevreConsole/eventOffer';
|
|
26
25
|
import type { EventSeriesService } from './chevreConsole/eventSeries';
|
|
27
26
|
import type { HasMerchantReturnPolicyService } from './chevreConsole/hasMerchantReturnPolicy';
|
|
28
27
|
import type { IAMService } from './chevreConsole/iam';
|
|
@@ -196,13 +195,6 @@ export declare namespace service {
|
|
|
196
195
|
namespace Event {
|
|
197
196
|
let svc: typeof EventService | undefined;
|
|
198
197
|
}
|
|
199
|
-
/**
|
|
200
|
-
* イベントオファーサービス
|
|
201
|
-
*/
|
|
202
|
-
type EventOffer = EventOfferService;
|
|
203
|
-
namespace EventOffer {
|
|
204
|
-
let svc: typeof EventOfferService | undefined;
|
|
205
|
-
}
|
|
206
198
|
/**
|
|
207
199
|
* 施設コンテンツサービス
|
|
208
200
|
*/
|
|
@@ -589,7 +581,6 @@ export declare class ChevreConsole {
|
|
|
589
581
|
createCustomerTypeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerTypeService>;
|
|
590
582
|
createEmailMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EmailMessageService>;
|
|
591
583
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
592
|
-
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
593
584
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
|
594
585
|
createHasMerchantReturnPolicyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasMerchantReturnPolicyService>;
|
|
595
586
|
createIAMInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<IAMService>;
|
|
@@ -104,9 +104,6 @@ var service;
|
|
|
104
104
|
var Event;
|
|
105
105
|
(function (Event) {
|
|
106
106
|
})(Event = service.Event || (service.Event = {}));
|
|
107
|
-
var EventOffer;
|
|
108
|
-
(function (EventOffer) {
|
|
109
|
-
})(EventOffer = service.EventOffer || (service.EventOffer = {}));
|
|
110
107
|
var EventSeries;
|
|
111
108
|
(function (EventSeries) {
|
|
112
109
|
})(EventSeries = service.EventSeries || (service.EventSeries = {}));
|
|
@@ -588,23 +585,6 @@ var ChevreConsole = /** @class */ (function () {
|
|
|
588
585
|
});
|
|
589
586
|
});
|
|
590
587
|
};
|
|
591
|
-
ChevreConsole.prototype.createEventOfferInstance = function (params) {
|
|
592
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
593
|
-
var _a;
|
|
594
|
-
return __generator(this, function (_b) {
|
|
595
|
-
switch (_b.label) {
|
|
596
|
-
case 0:
|
|
597
|
-
if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
|
|
598
|
-
_a = service.EventOffer;
|
|
599
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreConsole/eventOffer'); })];
|
|
600
|
-
case 1:
|
|
601
|
-
_a.svc = (_b.sent()).EventOfferService;
|
|
602
|
-
_b.label = 2;
|
|
603
|
-
case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
});
|
|
607
|
-
};
|
|
608
588
|
ChevreConsole.prototype.createEventSeriesInstance = function (params) {
|
|
609
589
|
return __awaiter(this, void 0, void 0, function () {
|
|
610
590
|
var _a;
|
|
@@ -1,12 +1,56 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
2
|
import { Service } from '../../service';
|
|
3
|
+
import { ICreateParamsByIdentifier, IUpdateParamsByIdentifier } from '../../chevreAdmin/event';
|
|
3
4
|
declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send.message.email.IAttributes, 'purpose' | 'recipient'> & {
|
|
4
5
|
object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
|
|
5
6
|
};
|
|
7
|
+
declare type ICreateScreeningEventParams = Omit<factory.event.ICreateParams<factory.eventType.ScreeningEvent>, 'location' | 'superEvent'> & {
|
|
8
|
+
typeOf?: never;
|
|
9
|
+
project?: never;
|
|
10
|
+
/**
|
|
11
|
+
* ルームコードを指定
|
|
12
|
+
*/
|
|
13
|
+
location: {
|
|
14
|
+
branchCode: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 施設コンテンツIDを指定
|
|
18
|
+
*/
|
|
19
|
+
superEvent: {
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
6
23
|
/**
|
|
7
24
|
* イベントサービス
|
|
8
25
|
*/
|
|
9
26
|
export declare class EventService extends Service {
|
|
27
|
+
/**
|
|
28
|
+
* イベント冪等複数作成
|
|
29
|
+
* イベントコードをキーにして、存在しなければ作成する
|
|
30
|
+
*/
|
|
31
|
+
createIfNotExistByIdentifier(params: ICreateParamsByIdentifier[], options: {
|
|
32
|
+
/**
|
|
33
|
+
* 施設コンテンツID
|
|
34
|
+
*/
|
|
35
|
+
superEventId: string;
|
|
36
|
+
/**
|
|
37
|
+
* ルームコード
|
|
38
|
+
*/
|
|
39
|
+
locationBranchCode: string;
|
|
40
|
+
/**
|
|
41
|
+
* 座席有無
|
|
42
|
+
*/
|
|
43
|
+
hasTicketedSeat: boolean;
|
|
44
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
45
|
+
}): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* 識別子によるイベント複数更新
|
|
48
|
+
* 識別子のイベントが存在しなければNotFound
|
|
49
|
+
* 座席有無は変更できない
|
|
50
|
+
*/
|
|
51
|
+
updateEventsByIdentifier(params: IUpdateParamsByIdentifier[], options: {
|
|
52
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
53
|
+
}): Promise<void>;
|
|
10
54
|
/**
|
|
11
55
|
* イベント冪等複数作成
|
|
12
56
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -16,23 +60,13 @@ export declare class EventService extends Service {
|
|
|
16
60
|
/**
|
|
17
61
|
* 最大長:10
|
|
18
62
|
*/
|
|
19
|
-
attributes:
|
|
63
|
+
attributes: ICreateScreeningEventParams[];
|
|
20
64
|
filter: {
|
|
21
65
|
/**
|
|
22
66
|
* キーにする追加特性name
|
|
23
67
|
*/
|
|
24
68
|
name: string;
|
|
25
69
|
};
|
|
26
|
-
options: {
|
|
27
|
-
/**
|
|
28
|
-
* 施設コンテンツID
|
|
29
|
-
*/
|
|
30
|
-
superEventId: string;
|
|
31
|
-
/**
|
|
32
|
-
* ルームコード
|
|
33
|
-
*/
|
|
34
|
-
locationBranchCode: string;
|
|
35
|
-
};
|
|
36
70
|
}): Promise<void>;
|
|
37
71
|
/**
|
|
38
72
|
* イベントステータス更新
|