@cinerino/sdk 4.0.0-alpha.3 → 4.0.0-alpha.4

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.
Files changed (158) hide show
  1. package/lib/abstract/chevre/assetTransaction/pay.d.ts +0 -29
  2. package/lib/abstract/chevre/assetTransaction/pay.js +0 -136
  3. package/lib/abstract/chevre/categoryCode.d.ts +1 -12
  4. package/lib/abstract/chevre/categoryCode.js +0 -67
  5. package/lib/abstract/chevre/creativeWork.d.ts +1 -9
  6. package/lib/abstract/chevre/creativeWork.js +0 -64
  7. package/lib/abstract/chevre/customer.d.ts +1 -18
  8. package/lib/abstract/chevre/customer.js +0 -58
  9. package/lib/abstract/chevre/emailMessage.d.ts +1 -24
  10. package/lib/abstract/chevre/emailMessage.js +0 -77
  11. package/lib/abstract/chevre/event.d.ts +1 -76
  12. package/lib/abstract/chevre/event.js +0 -155
  13. package/lib/abstract/chevre/me.d.ts +0 -8
  14. package/lib/abstract/chevre/me.js +0 -18
  15. package/lib/abstract/chevre/offer.d.ts +1 -13
  16. package/lib/abstract/chevre/offer.js +0 -67
  17. package/lib/abstract/chevre/order.d.ts +2 -103
  18. package/lib/abstract/chevre/order.js +0 -208
  19. package/lib/abstract/chevre/permit.d.ts +1 -5
  20. package/lib/abstract/chevre/permit.js +0 -28
  21. package/lib/abstract/chevre/person.d.ts +5 -44
  22. package/lib/abstract/chevre/person.js +0 -47
  23. package/lib/abstract/chevre/place/hasPOS.d.ts +0 -24
  24. package/lib/abstract/chevre/place/hasPOS.js +0 -50
  25. package/lib/abstract/chevre/place.d.ts +1 -89
  26. package/lib/abstract/chevre/place.js +0 -293
  27. package/lib/abstract/chevre/product.d.ts +1 -16
  28. package/lib/abstract/chevre/product.js +0 -90
  29. package/lib/abstract/chevre/seller.d.ts +2 -138
  30. package/lib/abstract/chevre/seller.js +0 -308
  31. package/lib/abstract/chevre/transaction/moneyTransfer.d.ts +1 -15
  32. package/lib/abstract/chevre/transaction/moneyTransfer.js +0 -60
  33. package/lib/abstract/chevre/transaction/placeOrder.d.ts +1 -15
  34. package/lib/abstract/chevre/transaction/placeOrder.js +0 -49
  35. package/lib/abstract/chevre/transaction/returnOrder.d.ts +1 -5
  36. package/lib/abstract/chevre/transaction/returnOrder.js +0 -28
  37. package/lib/abstract/chevre/trip.d.ts +1 -24
  38. package/lib/abstract/chevre/trip.js +0 -76
  39. package/lib/abstract/chevre.d.ts +0 -232
  40. package/lib/abstract/chevre.js +4 -700
  41. package/lib/abstract/chevreAdmin/assetTransaction/pay.d.ts +44 -0
  42. package/lib/abstract/chevreAdmin/assetTransaction/pay.js +223 -0
  43. package/lib/abstract/chevreAdmin/categoryCode.d.ts +24 -0
  44. package/lib/abstract/chevreAdmin/categoryCode.js +162 -0
  45. package/lib/abstract/chevreAdmin/creativeWork.d.ts +18 -0
  46. package/lib/abstract/chevreAdmin/creativeWork.js +156 -0
  47. package/lib/abstract/chevreAdmin/customer.d.ts +34 -0
  48. package/lib/abstract/chevreAdmin/customer.js +185 -0
  49. package/lib/abstract/chevreAdmin/emailMessage.d.ts +48 -0
  50. package/lib/abstract/chevreAdmin/emailMessage.js +172 -0
  51. package/lib/abstract/chevreAdmin/event/factory.d.ts +2 -0
  52. package/lib/abstract/chevreAdmin/event/factory.js +2 -0
  53. package/lib/abstract/chevreAdmin/event.d.ts +93 -0
  54. package/lib/abstract/chevreAdmin/event.js +268 -0
  55. package/lib/abstract/chevreAdmin/me.d.ts +28 -0
  56. package/lib/abstract/chevreAdmin/me.js +124 -0
  57. package/lib/abstract/chevreAdmin/offer.d.ts +30 -0
  58. package/lib/abstract/chevreAdmin/offer.js +134 -0
  59. package/lib/abstract/chevreAdmin/order/factory.d.ts +27 -0
  60. package/lib/abstract/chevreAdmin/order/factory.js +2 -0
  61. package/lib/abstract/chevreAdmin/order.d.ts +109 -0
  62. package/lib/abstract/chevreAdmin/order.js +287 -0
  63. package/lib/abstract/chevreAdmin/permit.d.ts +59 -0
  64. package/lib/abstract/chevreAdmin/permit.js +154 -0
  65. package/lib/abstract/chevreAdmin/person/ownershipInfo.d.ts +92 -0
  66. package/lib/abstract/chevreAdmin/person/ownershipInfo.js +249 -0
  67. package/lib/abstract/chevreAdmin/person.d.ts +86 -0
  68. package/lib/abstract/chevreAdmin/person.js +234 -0
  69. package/lib/abstract/chevreAdmin/place/hasPOS.d.ts +50 -0
  70. package/lib/abstract/chevreAdmin/place/hasPOS.js +134 -0
  71. package/lib/abstract/chevreAdmin/place.d.ts +129 -0
  72. package/lib/abstract/chevreAdmin/place.js +501 -0
  73. package/lib/abstract/chevreAdmin/product.d.ts +36 -0
  74. package/lib/abstract/chevreAdmin/product.js +196 -0
  75. package/lib/abstract/chevreAdmin/reservation/factory.d.ts +9 -0
  76. package/lib/abstract/chevreAdmin/reservation/factory.js +2 -0
  77. package/lib/abstract/chevreAdmin/seller/factory.d.ts +15 -0
  78. package/lib/abstract/chevreAdmin/seller/factory.js +2 -0
  79. package/lib/abstract/chevreAdmin/seller.d.ts +192 -0
  80. package/lib/abstract/chevreAdmin/seller.js +478 -0
  81. package/lib/abstract/chevreAdmin/token.d.ts +18 -0
  82. package/lib/abstract/chevreAdmin/token.js +86 -0
  83. package/lib/abstract/chevreAdmin/transaction/moneyTransfer.d.ts +23 -0
  84. package/lib/abstract/chevreAdmin/transaction/moneyTransfer.js +130 -0
  85. package/lib/abstract/chevreAdmin/transaction/placeOrder.d.ts +23 -0
  86. package/lib/abstract/chevreAdmin/transaction/placeOrder.js +130 -0
  87. package/lib/abstract/chevreAdmin/transaction/returnOrder.d.ts +13 -0
  88. package/lib/abstract/chevreAdmin/transaction/returnOrder.js +98 -0
  89. package/lib/abstract/chevreAdmin/transaction.d.ts +7 -0
  90. package/lib/abstract/chevreAdmin/transaction.js +12 -0
  91. package/lib/abstract/chevreAdmin/trip.d.ts +34 -0
  92. package/lib/abstract/chevreAdmin/trip.js +171 -0
  93. package/lib/abstract/chevreAdmin.d.ts +420 -0
  94. package/lib/abstract/chevreAdmin.js +1269 -0
  95. package/lib/abstract/index.d.ts +3 -1
  96. package/lib/abstract/index.js +20 -1
  97. package/lib/bundle.js +7201 -4845
  98. package/lib/index.d.ts +2 -2
  99. package/lib/index.js +2 -1
  100. package/package.json +1 -1
  101. /package/lib/abstract/{chevre → chevreAdmin}/account.d.ts +0 -0
  102. /package/lib/abstract/{chevre → chevreAdmin}/account.js +0 -0
  103. /package/lib/abstract/{chevre → chevreAdmin}/accountTitle.d.ts +0 -0
  104. /package/lib/abstract/{chevre → chevreAdmin}/accountTitle.js +0 -0
  105. /package/lib/abstract/{chevre → chevreAdmin}/accountTransaction.d.ts +0 -0
  106. /package/lib/abstract/{chevre → chevreAdmin}/accountTransaction.js +0 -0
  107. /package/lib/abstract/{chevre → chevreAdmin}/accountingReport.d.ts +0 -0
  108. /package/lib/abstract/{chevre → chevreAdmin}/accountingReport.js +0 -0
  109. /package/lib/abstract/{chevre → chevreAdmin}/action.d.ts +0 -0
  110. /package/lib/abstract/{chevre → chevreAdmin}/action.js +0 -0
  111. /package/lib/abstract/{chevre → chevreAdmin}/additionalProperty.d.ts +0 -0
  112. /package/lib/abstract/{chevre → chevreAdmin}/additionalProperty.js +0 -0
  113. /package/lib/abstract/{chevre → chevreAdmin}/aggregateOffer.d.ts +0 -0
  114. /package/lib/abstract/{chevre → chevreAdmin}/aggregateOffer.js +0 -0
  115. /package/lib/abstract/{chevre → chevreAdmin}/aggregation.d.ts +0 -0
  116. /package/lib/abstract/{chevre → chevreAdmin}/aggregation.js +0 -0
  117. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/cancelReservation.d.ts +0 -0
  118. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/cancelReservation.js +0 -0
  119. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/moneyTransfer.d.ts +0 -0
  120. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/moneyTransfer.js +0 -0
  121. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/refund.d.ts +0 -0
  122. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/refund.js +0 -0
  123. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/registerService.d.ts +0 -0
  124. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/registerService.js +0 -0
  125. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/reserve.d.ts +0 -0
  126. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction/reserve.js +0 -0
  127. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction.d.ts +0 -0
  128. /package/lib/abstract/{chevre → chevreAdmin}/assetTransaction.js +0 -0
  129. /package/lib/abstract/{chevre → chevreAdmin}/authorization.d.ts +0 -0
  130. /package/lib/abstract/{chevre → chevreAdmin}/authorization.js +0 -0
  131. /package/lib/abstract/{chevre → chevreAdmin}/comment.d.ts +0 -0
  132. /package/lib/abstract/{chevre → chevreAdmin}/comment.js +0 -0
  133. /package/lib/abstract/{chevre → chevreAdmin}/iam.d.ts +0 -0
  134. /package/lib/abstract/{chevre → chevreAdmin}/iam.js +0 -0
  135. /package/lib/abstract/{chevre → chevreAdmin}/merchantReturnPolicy.d.ts +0 -0
  136. /package/lib/abstract/{chevre → chevreAdmin}/merchantReturnPolicy.js +0 -0
  137. /package/lib/abstract/{chevre → chevreAdmin}/offerCatalog.d.ts +0 -0
  138. /package/lib/abstract/{chevre → chevreAdmin}/offerCatalog.js +0 -0
  139. /package/lib/abstract/{chevre → chevreAdmin}/offerCatalogItem.d.ts +0 -0
  140. /package/lib/abstract/{chevre → chevreAdmin}/offerCatalogItem.js +0 -0
  141. /package/lib/abstract/{chevre → chevreAdmin}/offerItemCondition.d.ts +0 -0
  142. /package/lib/abstract/{chevre → chevreAdmin}/offerItemCondition.js +0 -0
  143. /package/lib/abstract/{chevre → chevreAdmin}/ownershipInfo.d.ts +0 -0
  144. /package/lib/abstract/{chevre → chevreAdmin}/ownershipInfo.js +0 -0
  145. /package/lib/abstract/{chevre → chevreAdmin}/permission.d.ts +0 -0
  146. /package/lib/abstract/{chevre → chevreAdmin}/permission.js +0 -0
  147. /package/lib/abstract/{chevre → chevreAdmin}/priceSpecification.d.ts +0 -0
  148. /package/lib/abstract/{chevre → chevreAdmin}/priceSpecification.js +0 -0
  149. /package/lib/abstract/{chevre → chevreAdmin}/project.d.ts +0 -0
  150. /package/lib/abstract/{chevre → chevreAdmin}/project.js +0 -0
  151. /package/lib/abstract/{chevre → chevreAdmin}/reservation.d.ts +0 -0
  152. /package/lib/abstract/{chevre → chevreAdmin}/reservation.js +0 -0
  153. /package/lib/abstract/{chevre → chevreAdmin}/task.d.ts +0 -0
  154. /package/lib/abstract/{chevre → chevreAdmin}/task.js +0 -0
  155. /package/lib/abstract/{chevre → chevreAdmin}/transactionNumber.d.ts +0 -0
  156. /package/lib/abstract/{chevre → chevreAdmin}/transactionNumber.js +0 -0
  157. /package/lib/abstract/{chevre → chevreAdmin}/userPool.d.ts +0 -0
  158. /package/lib/abstract/{chevre → chevreAdmin}/userPool.js +0 -0
@@ -12,33 +12,4 @@ export declare class PayAssetTransactionService extends Service {
12
12
  * 決済方法認証
13
13
  */
14
14
  check(params: factory.action.check.paymentMethod.movieTicket.IAttributes): Promise<factory.action.check.paymentMethod.movieTicket.IAction>;
15
- /**
16
- * 決済ロケーション無効化
17
- */
18
- invalidatePaymentUrl(params: factory.task.refund.IData): Promise<void>;
19
- /**
20
- * 決済ロケーション発行
21
- */
22
- publishPaymentUrl(params: factory.assetTransaction.pay.IStartParamsWithoutDetail): Promise<IPublishPaymentUrlResult>;
23
- /**
24
- * 取引開始
25
- */
26
- start(params: factory.assetTransaction.pay.IStartParamsWithoutDetail): Promise<factory.assetTransaction.pay.ITransaction>;
27
- /**
28
- * 取引確定
29
- */
30
- confirm(params: factory.assetTransaction.pay.IConfirmParams): Promise<void>;
31
- /**
32
- * 取引中止
33
- */
34
- cancel(params: {
35
- id?: string;
36
- transactionNumber?: string;
37
- }): Promise<void>;
38
- /**
39
- * 決済代行取引参照
40
- */
41
- searchGMOTrade(params: {
42
- transactionNumber: string;
43
- }): Promise<any>;
44
15
  }
@@ -50,17 +50,6 @@ 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
54
  exports.PayAssetTransactionService = void 0;
66
55
  var http_status_1 = require("http-status");
@@ -93,131 +82,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
93
82
  });
94
83
  });
95
84
  };
96
- /**
97
- * 決済ロケーション無効化
98
- */
99
- PayAssetTransactionService.prototype.invalidatePaymentUrl = function (params
100
- // params: factory.assetTransaction.refund.IStartParamsWithoutDetail
101
- ) {
102
- return __awaiter(this, void 0, void 0, function () {
103
- return __generator(this, function (_a) {
104
- switch (_a.label) {
105
- case 0: return [4 /*yield*/, this.fetch({
106
- uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/invalidatePaymentUrl",
107
- method: 'PUT',
108
- body: params,
109
- expectedStatusCodes: [http_status_1.NO_CONTENT]
110
- })];
111
- case 1:
112
- _a.sent();
113
- return [2 /*return*/];
114
- }
115
- });
116
- });
117
- };
118
- /**
119
- * 決済ロケーション発行
120
- */
121
- PayAssetTransactionService.prototype.publishPaymentUrl = function (params) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- var _this = this;
124
- return __generator(this, function (_a) {
125
- return [2 /*return*/, this.fetch({
126
- uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/publishPaymentUrl",
127
- method: 'POST',
128
- body: params,
129
- expectedStatusCodes: [http_status_1.OK]
130
- })
131
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
132
- return [2 /*return*/, response.json()];
133
- }); }); })];
134
- });
135
- });
136
- };
137
- /**
138
- * 取引開始
139
- */
140
- PayAssetTransactionService.prototype.start = function (params) {
141
- return __awaiter(this, void 0, void 0, function () {
142
- var _this = this;
143
- return __generator(this, function (_a) {
144
- return [2 /*return*/, this.fetch({
145
- uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/start",
146
- method: 'POST',
147
- body: params,
148
- expectedStatusCodes: [http_status_1.OK]
149
- })
150
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
151
- return [2 /*return*/, response.json()];
152
- }); }); })];
153
- });
154
- });
155
- };
156
- /**
157
- * 取引確定
158
- */
159
- PayAssetTransactionService.prototype.confirm = function (params) {
160
- return __awaiter(this, void 0, void 0, function () {
161
- var transactionNumber, id, body;
162
- return __generator(this, function (_a) {
163
- switch (_a.label) {
164
- case 0:
165
- transactionNumber = params.transactionNumber, id = params.id, body = __rest(params, ["transactionNumber", "id"]);
166
- return [4 /*yield*/, this.fetch({
167
- uri: (typeof transactionNumber === 'string')
168
- ? "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + transactionNumber + "/confirm?transactionNumber=1"
169
- : "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + encodeURIComponent(String(id)) + "/confirm",
170
- method: 'PUT',
171
- expectedStatusCodes: [http_status_1.NO_CONTENT],
172
- body: body
173
- })];
174
- case 1:
175
- _a.sent();
176
- return [2 /*return*/];
177
- }
178
- });
179
- });
180
- };
181
- /**
182
- * 取引中止
183
- */
184
- PayAssetTransactionService.prototype.cancel = function (params) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- return __generator(this, function (_a) {
187
- switch (_a.label) {
188
- case 0: return [4 /*yield*/, this.fetch({
189
- uri: (typeof params.transactionNumber === 'string')
190
- ? "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + params.transactionNumber + "/cancel?transactionNumber=1"
191
- : "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + encodeURIComponent(String(params.id)) + "/cancel",
192
- method: 'PUT',
193
- expectedStatusCodes: [http_status_1.NO_CONTENT]
194
- // body: params
195
- })];
196
- case 1:
197
- _a.sent();
198
- return [2 /*return*/];
199
- }
200
- });
201
- });
202
- };
203
- /**
204
- * 決済代行取引参照
205
- */
206
- PayAssetTransactionService.prototype.searchGMOTrade = function (params) {
207
- return __awaiter(this, void 0, void 0, function () {
208
- var _this = this;
209
- return __generator(this, function (_a) {
210
- return [2 /*return*/, this.fetch({
211
- uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + params.transactionNumber + "/searchTradeResult",
212
- method: 'GET',
213
- expectedStatusCodes: [http_status_1.OK]
214
- })
215
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
216
- return [2 /*return*/, response.json()];
217
- }); }); })];
218
- });
219
- });
220
- };
221
85
  return PayAssetTransactionService;
222
86
  }(service_1.Service));
223
87
  exports.PayAssetTransactionService = PayAssetTransactionService;
@@ -1,24 +1,13 @@
1
1
  import * as factory from '../factory';
2
- import { IUnset, Service } from '../service';
2
+ import { Service } from '../service';
3
3
  /**
4
4
  * 区分サービス
5
5
  */
6
6
  export declare class CategoryCodeService extends Service {
7
- /**
8
- * 作成
9
- */
10
- create(params: factory.categoryCode.ICategoryCode): Promise<factory.categoryCode.ICategoryCode>;
11
7
  /**
12
8
  * 検索
13
9
  */
14
10
  search(params: Omit<factory.categoryCode.ISearchConditions, 'project'>): Promise<{
15
11
  data: factory.categoryCode.ICategoryCode[];
16
12
  }>;
17
- findById(params: {
18
- id: string;
19
- }): Promise<factory.categoryCode.ICategoryCode>;
20
- update(params: factory.categoryCode.ICategoryCode & IUnset): Promise<void>;
21
- deleteById(params: {
22
- id: string;
23
- }): Promise<void>;
24
13
  }
@@ -62,25 +62,6 @@ var CategoryCodeService = /** @class */ (function (_super) {
62
62
  function CategoryCodeService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- /**
66
- * 作成
67
- */
68
- CategoryCodeService.prototype.create = function (params) {
69
- return __awaiter(this, void 0, void 0, function () {
70
- var _this = this;
71
- return __generator(this, function (_a) {
72
- return [2 /*return*/, this.fetch({
73
- uri: '/categoryCodes',
74
- method: 'POST',
75
- body: params,
76
- expectedStatusCodes: [http_status_1.CREATED]
77
- })
78
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
79
- return [2 /*return*/, response.json()];
80
- }); }); })];
81
- });
82
- });
83
- };
84
65
  /**
85
66
  * 検索
86
67
  */
@@ -109,54 +90,6 @@ var CategoryCodeService = /** @class */ (function (_super) {
109
90
  });
110
91
  });
111
92
  };
112
- CategoryCodeService.prototype.findById = function (params) {
113
- return __awaiter(this, void 0, void 0, function () {
114
- var _this = this;
115
- return __generator(this, function (_a) {
116
- return [2 /*return*/, this.fetch({
117
- uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
118
- method: 'GET',
119
- expectedStatusCodes: [http_status_1.OK]
120
- })
121
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
122
- return [2 /*return*/, response.json()];
123
- }); }); })];
124
- });
125
- });
126
- };
127
- CategoryCodeService.prototype.update = function (params) {
128
- return __awaiter(this, void 0, void 0, function () {
129
- return __generator(this, function (_a) {
130
- switch (_a.label) {
131
- case 0: return [4 /*yield*/, this.fetch({
132
- uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
133
- method: 'PUT',
134
- body: params,
135
- expectedStatusCodes: [http_status_1.NO_CONTENT]
136
- })];
137
- case 1:
138
- _a.sent();
139
- return [2 /*return*/];
140
- }
141
- });
142
- });
143
- };
144
- CategoryCodeService.prototype.deleteById = function (params) {
145
- return __awaiter(this, void 0, void 0, function () {
146
- return __generator(this, function (_a) {
147
- switch (_a.label) {
148
- case 0: return [4 /*yield*/, this.fetch({
149
- uri: "/categoryCodes/" + encodeURIComponent(String(params.id)),
150
- method: 'DELETE',
151
- expectedStatusCodes: [http_status_1.NO_CONTENT]
152
- })];
153
- case 1:
154
- _a.sent();
155
- return [2 /*return*/];
156
- }
157
- });
158
- });
159
- };
160
93
  return CategoryCodeService;
161
94
  }(service_1.Service));
162
95
  exports.CategoryCodeService = CategoryCodeService;
@@ -1,18 +1,10 @@
1
1
  import * as factory from '../factory';
2
- import { IUnset, Service } from '../service';
2
+ import { Service } from '../service';
3
3
  /**
4
4
  * コンテンツサービス
5
5
  */
6
6
  export declare class CreativeWorkService extends Service {
7
- createMovie(params: factory.creativeWork.movie.ICreativeWork): Promise<factory.creativeWork.movie.ICreativeWork>;
8
7
  searchMovies(params: Omit<factory.creativeWork.movie.ISearchConditions, 'project'>): Promise<{
9
8
  data: factory.creativeWork.movie.ICreativeWork[];
10
9
  }>;
11
- findMovieById(params: {
12
- id: string;
13
- }): Promise<factory.creativeWork.movie.ICreativeWork>;
14
- updateMovie(params: factory.creativeWork.movie.ICreativeWork & IUnset): Promise<void>;
15
- deleteMovie(params: {
16
- id: string;
17
- }): Promise<void>;
18
10
  }
@@ -62,22 +62,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
62
62
  function CreativeWorkService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- CreativeWorkService.prototype.createMovie = function (params) {
66
- return __awaiter(this, void 0, void 0, function () {
67
- var _this = this;
68
- return __generator(this, function (_a) {
69
- return [2 /*return*/, this.fetch({
70
- uri: '/creativeWorks/movie',
71
- method: 'POST',
72
- body: params,
73
- expectedStatusCodes: [http_status_1.CREATED]
74
- })
75
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
76
- return [2 /*return*/, response.json()];
77
- }); }); })];
78
- });
79
- });
80
- };
81
65
  CreativeWorkService.prototype.searchMovies = function (params) {
82
66
  return __awaiter(this, void 0, void 0, function () {
83
67
  var _this = this;
@@ -103,54 +87,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
103
87
  });
104
88
  });
105
89
  };
106
- CreativeWorkService.prototype.findMovieById = function (params) {
107
- return __awaiter(this, void 0, void 0, function () {
108
- var _this = this;
109
- return __generator(this, function (_a) {
110
- return [2 /*return*/, this.fetch({
111
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
112
- method: 'GET',
113
- expectedStatusCodes: [http_status_1.OK]
114
- })
115
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
116
- return [2 /*return*/, response.json()];
117
- }); }); })];
118
- });
119
- });
120
- };
121
- CreativeWorkService.prototype.updateMovie = function (params) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- return __generator(this, function (_a) {
124
- switch (_a.label) {
125
- case 0: return [4 /*yield*/, this.fetch({
126
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
127
- method: 'PUT',
128
- body: params,
129
- expectedStatusCodes: [http_status_1.NO_CONTENT]
130
- })];
131
- case 1:
132
- _a.sent();
133
- return [2 /*return*/];
134
- }
135
- });
136
- });
137
- };
138
- CreativeWorkService.prototype.deleteMovie = function (params) {
139
- return __awaiter(this, void 0, void 0, function () {
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
142
- case 0: return [4 /*yield*/, this.fetch({
143
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
144
- method: 'DELETE',
145
- expectedStatusCodes: [http_status_1.NO_CONTENT]
146
- })];
147
- case 1:
148
- _a.sent();
149
- return [2 /*return*/];
150
- }
151
- });
152
- });
153
- };
154
90
  return CreativeWorkService;
155
91
  }(service_1.Service));
156
92
  exports.CreativeWorkService = CreativeWorkService;
@@ -1,13 +1,9 @@
1
1
  import * as factory from '../factory';
2
- import { IProjectionSearchConditions, ISearchResult, IUnset, Service } from '../service';
2
+ import { IProjectionSearchConditions, ISearchResult, Service } from '../service';
3
3
  /**
4
4
  * 顧客サービス
5
5
  */
6
6
  export declare class CustomerService extends Service {
7
- /**
8
- * 顧客作成
9
- */
10
- create(params: factory.customer.ICustomer): Promise<factory.customer.ICustomer>;
11
7
  /**
12
8
  * 顧客取得
13
9
  */
@@ -18,17 +14,4 @@ export declare class CustomerService extends Service {
18
14
  * 顧客検索
19
15
  */
20
16
  search(params: Omit<factory.customer.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<factory.customer.ICustomer[]>>;
21
- /**
22
- * 顧客編集
23
- */
24
- update(params: {
25
- id: string;
26
- attributes: factory.customer.ICustomer & IUnset;
27
- }): Promise<void>;
28
- /**
29
- * 顧客削除
30
- */
31
- deleteById(params: {
32
- id: string;
33
- }): Promise<void>;
34
17
  }
@@ -73,25 +73,6 @@ var CustomerService = /** @class */ (function (_super) {
73
73
  function CustomerService() {
74
74
  return _super !== null && _super.apply(this, arguments) || this;
75
75
  }
76
- /**
77
- * 顧客作成
78
- */
79
- CustomerService.prototype.create = function (params) {
80
- return __awaiter(this, void 0, void 0, function () {
81
- var _this = this;
82
- return __generator(this, function (_a) {
83
- return [2 /*return*/, this.fetch({
84
- uri: '/customers',
85
- method: 'POST',
86
- body: params,
87
- expectedStatusCodes: [http_status_1.CREATED]
88
- })
89
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
90
- return [2 /*return*/, response.json()];
91
- }); }); })];
92
- });
93
- });
94
- };
95
76
  /**
96
77
  * 顧客取得
97
78
  */
@@ -141,45 +122,6 @@ var CustomerService = /** @class */ (function (_super) {
141
122
  });
142
123
  });
143
124
  };
144
- /**
145
- * 顧客編集
146
- */
147
- CustomerService.prototype.update = function (params) {
148
- return __awaiter(this, void 0, void 0, function () {
149
- return __generator(this, function (_a) {
150
- switch (_a.label) {
151
- case 0: return [4 /*yield*/, this.fetch({
152
- uri: "/customers/" + params.id,
153
- method: 'PUT',
154
- body: params.attributes,
155
- expectedStatusCodes: [http_status_1.NO_CONTENT]
156
- })];
157
- case 1:
158
- _a.sent();
159
- return [2 /*return*/];
160
- }
161
- });
162
- });
163
- };
164
- /**
165
- * 顧客削除
166
- */
167
- CustomerService.prototype.deleteById = function (params) {
168
- return __awaiter(this, void 0, void 0, function () {
169
- return __generator(this, function (_a) {
170
- switch (_a.label) {
171
- case 0: return [4 /*yield*/, this.fetch({
172
- uri: "/customers/" + params.id,
173
- method: 'DELETE',
174
- expectedStatusCodes: [http_status_1.NO_CONTENT]
175
- })];
176
- case 1:
177
- _a.sent();
178
- return [2 /*return*/];
179
- }
180
- });
181
- });
182
- };
183
125
  return CustomerService;
184
126
  }(service_1.Service));
185
127
  exports.CustomerService = CustomerService;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { ISearchResult, IUnset, Service } from '../service';
2
+ import { ISearchResult, Service } from '../service';
3
3
  export declare type IEmailMessage = Omit<factory.creativeWork.message.email.ICreativeWork, 'toRecipient'>;
4
4
  export interface ISearchConditions {
5
5
  limit?: number;
@@ -18,31 +18,8 @@ export interface ISearchConditions {
18
18
  * Eメールメッセージサービス
19
19
  */
20
20
  export declare class EmailMessageService extends Service {
21
- /**
22
- * 作成
23
- */
24
- create(params: IEmailMessage): Promise<IEmailMessage>;
25
- /**
26
- * 取得
27
- */
28
- findById(params: {
29
- id: string;
30
- }): Promise<IEmailMessage>;
31
21
  /**
32
22
  * 検索
33
23
  */
34
24
  search(params: ISearchConditions): Promise<ISearchResult<IEmailMessage[]>>;
35
- /**
36
- * 編集
37
- */
38
- update(params: {
39
- id: string;
40
- attributes: IEmailMessage & IUnset;
41
- }): Promise<void>;
42
- /**
43
- * 削除
44
- */
45
- deleteById(params: {
46
- id: string;
47
- }): Promise<void>;
48
25
  }
@@ -62,44 +62,6 @@ var EmailMessageService = /** @class */ (function (_super) {
62
62
  function EmailMessageService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- /**
66
- * 作成
67
- */
68
- EmailMessageService.prototype.create = function (params) {
69
- return __awaiter(this, void 0, void 0, function () {
70
- var _this = this;
71
- return __generator(this, function (_a) {
72
- return [2 /*return*/, this.fetch({
73
- uri: '/emailMessages',
74
- method: 'POST',
75
- body: params,
76
- expectedStatusCodes: [http_status_1.CREATED]
77
- })
78
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
79
- return [2 /*return*/, response.json()];
80
- }); }); })];
81
- });
82
- });
83
- };
84
- /**
85
- * 取得
86
- */
87
- EmailMessageService.prototype.findById = function (params) {
88
- return __awaiter(this, void 0, void 0, function () {
89
- var _this = this;
90
- return __generator(this, function (_a) {
91
- return [2 /*return*/, this.fetch({
92
- uri: "/emailMessages/" + params.id,
93
- method: 'GET',
94
- // qs: params,
95
- expectedStatusCodes: [http_status_1.OK]
96
- })
97
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
98
- return [2 /*return*/, response.json()];
99
- }); }); })];
100
- });
101
- });
102
- };
103
65
  /**
104
66
  * 検索
105
67
  */
@@ -128,45 +90,6 @@ var EmailMessageService = /** @class */ (function (_super) {
128
90
  });
129
91
  });
130
92
  };
131
- /**
132
- * 編集
133
- */
134
- EmailMessageService.prototype.update = function (params) {
135
- return __awaiter(this, void 0, void 0, function () {
136
- return __generator(this, function (_a) {
137
- switch (_a.label) {
138
- case 0: return [4 /*yield*/, this.fetch({
139
- uri: "/emailMessages/" + params.id,
140
- method: 'PUT',
141
- body: params.attributes,
142
- expectedStatusCodes: [http_status_1.NO_CONTENT]
143
- })];
144
- case 1:
145
- _a.sent();
146
- return [2 /*return*/];
147
- }
148
- });
149
- });
150
- };
151
- /**
152
- * 削除
153
- */
154
- EmailMessageService.prototype.deleteById = function (params) {
155
- return __awaiter(this, void 0, void 0, function () {
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
158
- case 0: return [4 /*yield*/, this.fetch({
159
- uri: "/emailMessages/" + params.id,
160
- method: 'DELETE',
161
- expectedStatusCodes: [http_status_1.NO_CONTENT]
162
- })];
163
- case 1:
164
- _a.sent();
165
- return [2 /*return*/];
166
- }
167
- });
168
- });
169
- };
170
93
  return EmailMessageService;
171
94
  }(service_1.Service));
172
95
  exports.EmailMessageService = EmailMessageService;