@cinerino/sdk 10.22.0-alpha.2 → 11.0.0-alpha.1

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 (207) hide show
  1. package/example/playground/public/lib/bundle.js +8153 -6839
  2. package/example/src/chevre/{adminSearchTickets.ts → adminSearchOrderActions.ts} +7 -6
  3. package/example/src/findEventById.ts +2 -1
  4. package/example/src/st/processPlaceOrderByPOS.ts +1 -1
  5. package/example/src/st/v2/searchEventsByTokenGrant.ts +54 -0
  6. package/lib/abstract/chevre/event.d.ts +1 -1
  7. package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.d.ts +0 -3
  8. package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.js +0 -12
  9. package/lib/abstract/chevreAdmin/authorization.d.ts +0 -4
  10. package/lib/abstract/chevreAdmin/authorization.js +0 -19
  11. package/lib/abstract/chevreAdmin/creativeWork.d.ts +1 -16
  12. package/lib/abstract/chevreAdmin/creativeWork.js +0 -89
  13. package/lib/abstract/chevreAdmin/customer.d.ts +1 -20
  14. package/lib/abstract/chevreAdmin/customer.js +0 -58
  15. package/lib/abstract/chevreAdmin/event.d.ts +0 -35
  16. package/lib/abstract/chevreAdmin/event.js +0 -82
  17. package/lib/abstract/chevreAdmin/eventSeries.d.ts +0 -60
  18. package/lib/abstract/chevreAdmin/eventSeries.js +0 -112
  19. package/lib/abstract/chevreAdmin/me.d.ts +0 -8
  20. package/lib/abstract/chevreAdmin/me.js +0 -18
  21. package/lib/abstract/chevreAdmin/member.d.ts +0 -14
  22. package/lib/abstract/chevreAdmin/member.js +0 -66
  23. package/lib/abstract/chevreAdmin/offer.d.ts +0 -12
  24. package/lib/abstract/chevreAdmin/offer.js +0 -39
  25. package/lib/abstract/chevreAdmin/offerCatalog.d.ts +0 -70
  26. package/lib/abstract/chevreAdmin/offerCatalog.js +0 -160
  27. package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +0 -40
  28. package/lib/abstract/chevreAdmin/offerCatalogItem.js +0 -98
  29. package/lib/abstract/chevreAdmin/order.d.ts +1 -79
  30. package/lib/abstract/chevreAdmin/order.js +0 -125
  31. package/lib/abstract/chevreAdmin/product.d.ts +0 -36
  32. package/lib/abstract/chevreAdmin/product.js +0 -129
  33. package/lib/abstract/chevreAdmin/reservation.d.ts +1 -10
  34. package/lib/abstract/chevreAdmin/reservation.js +0 -20
  35. package/lib/abstract/chevreAdmin.d.ts +0 -504
  36. package/lib/abstract/chevreAdmin.js +60 -1177
  37. package/lib/abstract/chevreAuth/identity.d.ts +25 -0
  38. package/lib/abstract/chevreAuth/identity.js +152 -0
  39. package/lib/abstract/chevreAuth.d.ts +9 -0
  40. package/lib/abstract/chevreAuth.js +20 -0
  41. package/lib/abstract/chevreConsole/authorization.d.ts +72 -0
  42. package/lib/abstract/chevreConsole/authorization.js +86 -0
  43. package/lib/abstract/chevreConsole/creativeWork.d.ts +22 -0
  44. package/lib/abstract/chevreConsole/creativeWork.js +156 -0
  45. package/lib/abstract/chevreConsole/customer.d.ts +31 -0
  46. package/lib/abstract/chevreConsole/customer.js +125 -0
  47. package/lib/abstract/chevreConsole/event.d.ts +43 -0
  48. package/lib/abstract/chevreConsole/event.js +149 -0
  49. package/lib/abstract/chevreConsole/eventSeries.d.ts +67 -0
  50. package/lib/abstract/chevreConsole/eventSeries.js +180 -0
  51. package/lib/abstract/chevreConsole/me.d.ts +28 -0
  52. package/lib/abstract/chevreConsole/me.js +124 -0
  53. package/lib/abstract/chevreConsole/member.d.ts +22 -0
  54. package/lib/abstract/chevreConsole/member.js +134 -0
  55. package/lib/abstract/chevreConsole/offer.d.ts +34 -0
  56. package/lib/abstract/chevreConsole/offer.js +125 -0
  57. package/lib/abstract/chevreConsole/offerCatalog.d.ts +77 -0
  58. package/lib/abstract/chevreConsole/offerCatalog.js +227 -0
  59. package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +63 -0
  60. package/lib/abstract/chevreConsole/offerCatalogItem.js +181 -0
  61. package/lib/abstract/chevreConsole/order.d.ts +86 -0
  62. package/lib/abstract/chevreConsole/order.js +192 -0
  63. package/lib/abstract/chevreConsole/product.d.ts +45 -0
  64. package/lib/abstract/chevreConsole/product.js +196 -0
  65. package/lib/abstract/chevreConsole/reservation.d.ts +15 -0
  66. package/lib/abstract/chevreConsole/reservation.js +87 -0
  67. package/lib/abstract/chevreConsole.d.ts +634 -0
  68. package/lib/abstract/chevreConsole.js +1445 -0
  69. package/lib/abstract/cinerino/service/event.d.ts +1 -1
  70. package/lib/abstract/cloud/admin/order.d.ts +1 -1
  71. package/lib/abstract/cloud/admin/reservation.d.ts +1 -1
  72. package/lib/abstract/index.d.ts +3 -1
  73. package/lib/abstract/index.js +24 -1
  74. package/lib/bundle.js +8365 -6877
  75. package/lib/index.d.ts +2 -2
  76. package/lib/index.js +2 -1
  77. package/package.json +2 -2
  78. package/example/src/chevre/adminMovies.ts +0 -45
  79. package/example/src/chevre/adminProjectHasMerchantReturnPolicy.ts +0 -30
  80. package/example/src/chevre/adminSearchIssuers.ts +0 -32
  81. package/example/src/chevre/adminSearchSellers.ts +0 -32
  82. package/example/src/chevre/assetTransaction/processMoneyTransfer.ts +0 -74
  83. package/example/src/chevre/assetTransaction/processRegisterService.ts +0 -70
  84. package/example/src/chevre/assetTransaction/processReserve.ts +0 -193
  85. package/example/src/chevre/findPerson.ts +0 -33
  86. package/example/src/chevre/searchMessages.ts +0 -34
  87. package/example/src/chevre/searchTransactions.ts +0 -36
  88. /package/lib/abstract/{chevreAdmin → chevreConsole}/account.d.ts +0 -0
  89. /package/lib/abstract/{chevreAdmin → chevreConsole}/account.js +0 -0
  90. /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTitle.d.ts +0 -0
  91. /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTitle.js +0 -0
  92. /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTransaction.d.ts +0 -0
  93. /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTransaction.js +0 -0
  94. /package/lib/abstract/{chevreAdmin → chevreConsole}/accountingReport.d.ts +0 -0
  95. /package/lib/abstract/{chevreAdmin → chevreConsole}/accountingReport.js +0 -0
  96. /package/lib/abstract/{chevreAdmin → chevreConsole}/action.d.ts +0 -0
  97. /package/lib/abstract/{chevreAdmin → chevreConsole}/action.js +0 -0
  98. /package/lib/abstract/{chevreAdmin → chevreConsole}/additionalProperty.d.ts +0 -0
  99. /package/lib/abstract/{chevreAdmin → chevreConsole}/additionalProperty.js +0 -0
  100. /package/lib/abstract/{chevreAdmin → chevreConsole}/advanceBookingRequirement.d.ts +0 -0
  101. /package/lib/abstract/{chevreAdmin → chevreConsole}/advanceBookingRequirement.js +0 -0
  102. /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateOffer.d.ts +0 -0
  103. /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateOffer.js +0 -0
  104. /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateReservation.d.ts +0 -0
  105. /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateReservation.js +0 -0
  106. /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregation.d.ts +0 -0
  107. /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregation.js +0 -0
  108. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/moneyTransfer.d.ts +0 -0
  109. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/moneyTransfer.js +0 -0
  110. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/pay.d.ts +0 -0
  111. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/pay.js +0 -0
  112. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/registerService.d.ts +0 -0
  113. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/registerService.js +0 -0
  114. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/reserve.d.ts +0 -0
  115. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/reserve.js +0 -0
  116. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction.d.ts +0 -0
  117. /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction.js +0 -0
  118. /package/lib/abstract/{chevreAdmin → chevreConsole}/categoryCode.d.ts +0 -0
  119. /package/lib/abstract/{chevreAdmin → chevreConsole}/categoryCode.js +0 -0
  120. /package/lib/abstract/{chevreAdmin → chevreConsole}/comment.d.ts +0 -0
  121. /package/lib/abstract/{chevreAdmin → chevreConsole}/comment.js +0 -0
  122. /package/lib/abstract/{chevreAdmin → chevreConsole}/customerType.d.ts +0 -0
  123. /package/lib/abstract/{chevreAdmin → chevreConsole}/customerType.js +0 -0
  124. /package/lib/abstract/{chevreAdmin → chevreConsole}/emailMessage.d.ts +0 -0
  125. /package/lib/abstract/{chevreAdmin → chevreConsole}/emailMessage.js +0 -0
  126. /package/lib/abstract/{chevreAdmin → chevreConsole}/event/factory.d.ts +0 -0
  127. /package/lib/abstract/{chevreAdmin → chevreConsole}/event/factory.js +0 -0
  128. /package/lib/abstract/{chevreAdmin → chevreConsole}/eventOffer.d.ts +0 -0
  129. /package/lib/abstract/{chevreAdmin → chevreConsole}/eventOffer.js +0 -0
  130. /package/lib/abstract/{chevreAdmin → chevreConsole}/hasMerchantReturnPolicy.d.ts +0 -0
  131. /package/lib/abstract/{chevreAdmin → chevreConsole}/hasMerchantReturnPolicy.js +0 -0
  132. /package/lib/abstract/{chevreAdmin → chevreConsole}/iam.d.ts +0 -0
  133. /package/lib/abstract/{chevreAdmin → chevreConsole}/iam.js +0 -0
  134. /package/lib/abstract/{chevreAdmin → chevreConsole}/identity.d.ts +0 -0
  135. /package/lib/abstract/{chevreAdmin → chevreConsole}/identity.js +0 -0
  136. /package/lib/abstract/{chevreAdmin → chevreConsole}/identityProvider.d.ts +0 -0
  137. /package/lib/abstract/{chevreAdmin → chevreConsole}/identityProvider.js +0 -0
  138. /package/lib/abstract/{chevreAdmin → chevreConsole}/issuer.d.ts +0 -0
  139. /package/lib/abstract/{chevreAdmin → chevreConsole}/issuer.js +0 -0
  140. /package/lib/abstract/{chevreAdmin → chevreConsole}/memberProgram.d.ts +0 -0
  141. /package/lib/abstract/{chevreAdmin → chevreConsole}/memberProgram.js +0 -0
  142. /package/lib/abstract/{chevreAdmin → chevreConsole}/merchantReturnPolicy.d.ts +0 -0
  143. /package/lib/abstract/{chevreAdmin → chevreConsole}/merchantReturnPolicy.js +0 -0
  144. /package/lib/abstract/{chevreAdmin → chevreConsole}/message.d.ts +0 -0
  145. /package/lib/abstract/{chevreAdmin → chevreConsole}/message.js +0 -0
  146. /package/lib/abstract/{chevreAdmin → chevreConsole}/offerItemCondition.d.ts +0 -0
  147. /package/lib/abstract/{chevreAdmin → chevreConsole}/offerItemCondition.js +0 -0
  148. /package/lib/abstract/{chevreAdmin → chevreConsole}/order/factory.d.ts +0 -0
  149. /package/lib/abstract/{chevreAdmin → chevreConsole}/order/factory.js +0 -0
  150. /package/lib/abstract/{chevreAdmin → chevreConsole}/ownershipInfo.d.ts +0 -0
  151. /package/lib/abstract/{chevreAdmin → chevreConsole}/ownershipInfo.js +0 -0
  152. /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentService.d.ts +0 -0
  153. /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentService.js +0 -0
  154. /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentServiceChannel.d.ts +0 -0
  155. /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentServiceChannel.js +0 -0
  156. /package/lib/abstract/{chevreAdmin → chevreConsole}/pendingReservation.d.ts +0 -0
  157. /package/lib/abstract/{chevreAdmin → chevreConsole}/pendingReservation.js +0 -0
  158. /package/lib/abstract/{chevreAdmin → chevreConsole}/permission.d.ts +0 -0
  159. /package/lib/abstract/{chevreAdmin → chevreConsole}/permission.js +0 -0
  160. /package/lib/abstract/{chevreAdmin → chevreConsole}/permit.d.ts +0 -0
  161. /package/lib/abstract/{chevreAdmin → chevreConsole}/permit.js +0 -0
  162. /package/lib/abstract/{chevreAdmin → chevreConsole}/person/ownershipInfo.d.ts +0 -0
  163. /package/lib/abstract/{chevreAdmin → chevreConsole}/person/ownershipInfo.js +0 -0
  164. /package/lib/abstract/{chevreAdmin → chevreConsole}/person.d.ts +0 -0
  165. /package/lib/abstract/{chevreAdmin → chevreConsole}/person.js +0 -0
  166. /package/lib/abstract/{chevreAdmin → chevreConsole}/place/hasPOS.d.ts +0 -0
  167. /package/lib/abstract/{chevreAdmin → chevreConsole}/place/hasPOS.js +0 -0
  168. /package/lib/abstract/{chevreAdmin → chevreConsole}/place.d.ts +0 -0
  169. /package/lib/abstract/{chevreAdmin → chevreConsole}/place.js +0 -0
  170. /package/lib/abstract/{chevreAdmin → chevreConsole}/priceSpecification.d.ts +0 -0
  171. /package/lib/abstract/{chevreAdmin → chevreConsole}/priceSpecification.js +0 -0
  172. /package/lib/abstract/{chevreAdmin → chevreConsole}/productModel.d.ts +0 -0
  173. /package/lib/abstract/{chevreAdmin → chevreConsole}/productModel.js +0 -0
  174. /package/lib/abstract/{chevreAdmin → chevreConsole}/project.d.ts +0 -0
  175. /package/lib/abstract/{chevreAdmin → chevreConsole}/project.js +0 -0
  176. /package/lib/abstract/{chevreAdmin → chevreConsole}/projectMakesOffer.d.ts +0 -0
  177. /package/lib/abstract/{chevreAdmin → chevreConsole}/projectMakesOffer.js +0 -0
  178. /package/lib/abstract/{chevreAdmin → chevreConsole}/reservation/factory.d.ts +0 -0
  179. /package/lib/abstract/{chevreAdmin → chevreConsole}/reservation/factory.js +0 -0
  180. /package/lib/abstract/{chevreAdmin → chevreConsole}/seller/factory.d.ts +0 -0
  181. /package/lib/abstract/{chevreAdmin → chevreConsole}/seller/factory.js +0 -0
  182. /package/lib/abstract/{chevreAdmin → chevreConsole}/seller.d.ts +0 -0
  183. /package/lib/abstract/{chevreAdmin → chevreConsole}/seller.js +0 -0
  184. /package/lib/abstract/{chevreAdmin → chevreConsole}/sellerReturnPolicy.d.ts +0 -0
  185. /package/lib/abstract/{chevreAdmin → chevreConsole}/sellerReturnPolicy.js +0 -0
  186. /package/lib/abstract/{chevreAdmin → chevreConsole}/task.d.ts +0 -0
  187. /package/lib/abstract/{chevreAdmin → chevreConsole}/task.js +0 -0
  188. /package/lib/abstract/{chevreAdmin → chevreConsole}/ticket.d.ts +0 -0
  189. /package/lib/abstract/{chevreAdmin → chevreConsole}/ticket.js +0 -0
  190. /package/lib/abstract/{chevreAdmin → chevreConsole}/token.d.ts +0 -0
  191. /package/lib/abstract/{chevreAdmin → chevreConsole}/token.js +0 -0
  192. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/moneyTransfer.d.ts +0 -0
  193. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/moneyTransfer.js +0 -0
  194. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/placeOrder.d.ts +0 -0
  195. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/placeOrder.js +0 -0
  196. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/returnOrder.d.ts +0 -0
  197. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/returnOrder.js +0 -0
  198. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction.d.ts +0 -0
  199. /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction.js +0 -0
  200. /package/lib/abstract/{chevreAdmin → chevreConsole}/transactionNumber.d.ts +0 -0
  201. /package/lib/abstract/{chevreAdmin → chevreConsole}/transactionNumber.js +0 -0
  202. /package/lib/abstract/{chevreAdmin → chevreConsole}/trip.d.ts +0 -0
  203. /package/lib/abstract/{chevreAdmin → chevreConsole}/trip.js +0 -0
  204. /package/lib/abstract/{chevreAdmin → chevreConsole}/userPool.d.ts +0 -0
  205. /package/lib/abstract/{chevreAdmin → chevreConsole}/userPool.js +0 -0
  206. /package/lib/abstract/{chevreAdmin → chevreConsole}/webSite.d.ts +0 -0
  207. /package/lib/abstract/{chevreAdmin → chevreConsole}/webSite.js +0 -0
@@ -1,6 +1,6 @@
1
1
  // tslint:disable:no-console
2
2
  // tslint:disable-next-line:no-implicit-dependencies
3
- import { loadChevreAdmin } from '../../../lib/index';
3
+ import { loadChevreConsole } from '../../../lib/index';
4
4
  import * as auth from '../auth/authAsAdmin';
5
5
 
6
6
  const project = { id: String(process.env.PROJECT_ID) };
@@ -11,18 +11,19 @@ async function main() {
11
11
  const loginTicket = authClient.verifyIdToken({});
12
12
  console.log('username is', loginTicket.getUsername());
13
13
 
14
- const ticketService = await (await loadChevreAdmin({
14
+ const orderService = await (await loadChevreConsole({
15
15
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
16
16
  auth: authClient
17
- })).createTicketInstance({
17
+ })).createOrderInstance({
18
18
  project,
19
- seller: { id: '' }
19
+ seller: { id: 'xxx' }
20
20
  });
21
21
 
22
- const result = await ticketService.search({
22
+ const result = await orderService.searchActionsByOrderNumber({
23
+ orderNumber: 'CIN5-8920020-2153078',
24
+ sort: { startDate: 1 }
23
25
  });
24
26
  console.log(result);
25
- console.log(result.length, 'tickets found');
26
27
  }
27
28
 
28
29
  main()
@@ -24,7 +24,8 @@ async function main() {
24
24
  id: 'bm2bfj55o',
25
25
  typeOf: client.factory.eventType.ScreeningEvent
26
26
  });
27
- console.dir(event, { depth: null });
27
+ console.log('found', event.id);
28
+ // console.dir(event, { depth: null });
28
29
  // tslint:disable-next-line:non-literal-fs-path
29
30
  // fs.writeFileSync(`${__dirname}/event2.json`, JSON.stringify(event, null, ' '));
30
31
  }
@@ -252,5 +252,5 @@ main()
252
252
  })
253
253
  .catch((err) => {
254
254
  console.error(err);
255
- console.error(err.errors[0].errors);
255
+ console.error(err.errors?.[0]?.errors);
256
256
  });
@@ -0,0 +1,54 @@
1
+ // tslint:disable:no-console no-implicit-dependencies no-magic-numbers
2
+ import * as httpStatus from 'http-status';
3
+ import * as moment from 'moment';
4
+
5
+ import * as client from '../../../../lib/index';
6
+
7
+ // tslint:disable-next-line:max-func-body-length
8
+ async function main() {
9
+ const auth = await client.auth.ClientCredentials.createInstance({
10
+ domain: <string>process.env.ST_AUTHORIZE_SERVER_DOMAIN,
11
+ clientId: <string>process.env.ST_CLIENT_ID,
12
+ clientSecret: <string>process.env.ST_CLIENT_SECRET,
13
+ scopes: [],
14
+ state: 'teststate'
15
+ });
16
+ auth.setCredentials({
17
+ access_token: 'xxx'
18
+ });
19
+
20
+ const sellerService = new (await client.loadService()).Seller({
21
+ endpoint: <string>process.env.ST_API_V2_ENDPOINT,
22
+ auth: auth,
23
+ project: { id: '' }
24
+ });
25
+
26
+ console.log('イベントを検索しています...');
27
+ const searchResult = await sellerService.fetch({
28
+ uri: '/event/screeningEvent/search',
29
+ method: 'GET',
30
+ qs: {
31
+ limit: 10,
32
+ ids: 'bm2bfj55o',
33
+ startFrom: new Date(),
34
+ startThrough: moment()
35
+ .add(1, 'days')
36
+ .toDate(),
37
+ sellerId: '59d20831e53ebc2b4e774466'
38
+ // clientId: 'xx'
39
+ },
40
+ expectedStatusCodes: [httpStatus.OK]
41
+ })
42
+ .then(async (response) => response.json());
43
+ // tslint:disable-next-line:no-null-keyword
44
+ console.dir(searchResult, { depth: null });
45
+ console.log(searchResult.length);
46
+ }
47
+
48
+ main()
49
+ .then(() => {
50
+ console.log('main processed.');
51
+ })
52
+ .catch((err) => {
53
+ console.error(err);
54
+ });
@@ -1,4 +1,4 @@
1
- import type { ISearchWithReservationForIdResult } from '../chevreAdmin/aggregateReservation';
1
+ import type { ISearchWithReservationForIdResult } from '../chevreConsole/aggregateReservation';
2
2
  import * as factory from '../factory';
3
3
  import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from './event/factory';
4
4
  import { Service } from '../service';
@@ -9,9 +9,6 @@ declare type IStartParams = Pick<factory.assetTransaction.cancelReservation.ISta
9
9
  * 予約取消取引サービス
10
10
  */
11
11
  export declare class CancelReservationAssetTransactionService extends Service {
12
- /**
13
- * 取引を開始する
14
- */
15
12
  /**
16
13
  * 取引開始&確定
17
14
  */
@@ -62,18 +62,6 @@ var CancelReservationAssetTransactionService = /** @class */ (function (_super)
62
62
  function CancelReservationAssetTransactionService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- /**
66
- * 取引を開始する
67
- */
68
- // public async start(params: IStartParams): Promise<{ id: string }> {
69
- // return this.fetch({
70
- // uri: '/assetTransactions/cancelReservation/start',
71
- // method: 'POST',
72
- // body: params,
73
- // expectedStatusCodes: [OK]
74
- // })
75
- // .then(async (response) => response.json());
76
- // }
77
65
  /**
78
66
  * 取引開始&確定
79
67
  */
@@ -68,9 +68,5 @@ export declare class AuthorizationService extends Service {
68
68
  * 承認発行
69
69
  */
70
70
  create(params: ICreateParams[]): Promise<(ICreatedAuthorization & Pick<factory.authorization.IAuthorization, 'code'>)[]>;
71
- /**
72
- * 承認検索
73
- */
74
- search(params: Omit<factory.authorization.ISearchConditions, 'project'>): Promise<factory.authorization.IAuthorization[]>;
75
71
  }
76
72
  export {};
@@ -81,25 +81,6 @@ var AuthorizationService = /** @class */ (function (_super) {
81
81
  });
82
82
  });
83
83
  };
84
- /**
85
- * 承認検索
86
- */
87
- AuthorizationService.prototype.search = 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: '/authorizations',
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
84
  return AuthorizationService;
104
85
  }(service_1.Service));
105
86
  exports.AuthorizationService = AuthorizationService;
@@ -1,26 +1,11 @@
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.ICreateParams): Promise<{
8
- id: string;
9
- }>;
10
7
  /**
11
8
  * コンテンツ冪等置換
12
9
  */
13
10
  upsertMoviesByIdentifier(params: factory.creativeWork.movie.ICreateParams[]): Promise<void>;
14
- searchMovies(params: Omit<factory.creativeWork.movie.ISearchConditions, 'project'>): Promise<{
15
- data: factory.creativeWork.movie.ICreativeWork[];
16
- }>;
17
- findMovieById(params: {
18
- id: string;
19
- }): Promise<factory.creativeWork.movie.ICreativeWork>;
20
- updateMovie(params: factory.creativeWork.movie.ICreateParams & {
21
- id: string;
22
- } & IUnset): Promise<void>;
23
- deleteMovie(params: {
24
- id: string;
25
- }): Promise<void>;
26
11
  }
@@ -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
  /**
82
66
  * コンテンツ冪等置換
83
67
  */
@@ -98,79 +82,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
98
82
  });
99
83
  });
100
84
  };
101
- CreativeWorkService.prototype.searchMovies = function (params) {
102
- return __awaiter(this, void 0, void 0, function () {
103
- var _this = this;
104
- return __generator(this, function (_a) {
105
- return [2 /*return*/, this.fetch({
106
- uri: '/creativeWorks/movie',
107
- method: 'GET',
108
- qs: params,
109
- expectedStatusCodes: [http_status_1.OK]
110
- })
111
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
112
- var _a;
113
- return __generator(this, function (_b) {
114
- switch (_b.label) {
115
- case 0:
116
- _a = {};
117
- return [4 /*yield*/, response.json()];
118
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
119
- _a)];
120
- }
121
- });
122
- }); })];
123
- });
124
- });
125
- };
126
- CreativeWorkService.prototype.findMovieById = function (params) {
127
- return __awaiter(this, void 0, void 0, function () {
128
- var _this = this;
129
- return __generator(this, function (_a) {
130
- return [2 /*return*/, this.fetch({
131
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
132
- method: 'GET',
133
- expectedStatusCodes: [http_status_1.OK]
134
- })
135
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
136
- return [2 /*return*/, response.json()];
137
- }); }); })];
138
- });
139
- });
140
- };
141
- CreativeWorkService.prototype.updateMovie = function (params) {
142
- return __awaiter(this, void 0, void 0, function () {
143
- return __generator(this, function (_a) {
144
- switch (_a.label) {
145
- case 0: return [4 /*yield*/, this.fetch({
146
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
147
- method: 'PUT',
148
- body: params,
149
- expectedStatusCodes: [http_status_1.NO_CONTENT]
150
- })];
151
- case 1:
152
- _a.sent();
153
- return [2 /*return*/];
154
- }
155
- });
156
- });
157
- };
158
- CreativeWorkService.prototype.deleteMovie = function (params) {
159
- return __awaiter(this, void 0, void 0, function () {
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
162
- case 0: return [4 /*yield*/, this.fetch({
163
- uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
164
- method: 'DELETE',
165
- expectedStatusCodes: [http_status_1.NO_CONTENT]
166
- })];
167
- case 1:
168
- _a.sent();
169
- return [2 /*return*/];
170
- }
171
- });
172
- });
173
- };
174
85
  return CreativeWorkService;
175
86
  }(service_1.Service));
176
87
  exports.CreativeWorkService = CreativeWorkService;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IUnset, Service } from '../service';
2
+ import { Service } from '../service';
3
3
  export interface IProjection {
4
4
  $projection?: {
5
5
  [key: string]: 1;
@@ -9,27 +9,8 @@ export interface IProjection {
9
9
  * 顧客サービス
10
10
  */
11
11
  export declare class CustomerService extends Service {
12
- /**
13
- * 顧客作成
14
- */
15
- create(params: factory.customer.ICustomer): Promise<{
16
- id: string;
17
- }>;
18
12
  /**
19
13
  * 顧客検索
20
14
  */
21
15
  search(params: Omit<factory.customer.ISearchConditions, 'project'> & IProjection): Promise<factory.customer.ICustomer[]>;
22
- /**
23
- * 顧客編集
24
- */
25
- update(params: {
26
- id: string;
27
- attributes: factory.customer.ICustomer & IUnset;
28
- }): Promise<void>;
29
- /**
30
- * 顧客削除
31
- */
32
- deleteById(params: {
33
- id: string;
34
- }): Promise<void>;
35
16
  }
@@ -62,25 +62,6 @@ var CustomerService = /** @class */ (function (_super) {
62
62
  function CustomerService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- /**
66
- * 顧客作成
67
- */
68
- CustomerService.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: '/customers',
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
  */
@@ -100,45 +81,6 @@ var CustomerService = /** @class */ (function (_super) {
100
81
  });
101
82
  });
102
83
  };
103
- /**
104
- * 顧客編集
105
- */
106
- CustomerService.prototype.update = function (params) {
107
- return __awaiter(this, void 0, void 0, function () {
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
110
- case 0: return [4 /*yield*/, this.fetch({
111
- uri: "/customers/" + params.id,
112
- method: 'PUT',
113
- body: params.attributes,
114
- expectedStatusCodes: [http_status_1.NO_CONTENT]
115
- })];
116
- case 1:
117
- _a.sent();
118
- return [2 /*return*/];
119
- }
120
- });
121
- });
122
- };
123
- /**
124
- * 顧客削除
125
- */
126
- CustomerService.prototype.deleteById = 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: "/customers/" + params.id,
132
- method: 'DELETE',
133
- expectedStatusCodes: [http_status_1.NO_CONTENT]
134
- })];
135
- case 1:
136
- _a.sent();
137
- return [2 /*return*/];
138
- }
139
- });
140
- });
141
- };
142
84
  return CustomerService;
143
85
  }(service_1.Service));
144
86
  exports.CustomerService = CustomerService;
@@ -1,24 +1,12 @@
1
1
  import * as factory from '../factory';
2
- import { IAdminSearchedEvent } from './event/factory';
3
2
  import { Service } from '../service';
4
3
  declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send.message.email.IAttributes, 'purpose' | 'recipient'> & {
5
4
  object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
6
5
  };
7
- declare type IKeyOfProjection<T extends factory.eventType> = keyof factory.event.IEvent<T> | '_id';
8
- declare type IProjection<T extends factory.eventType> = {
9
- [key in IKeyOfProjection<T>]?: 0;
10
- };
11
- declare type IUnset<T extends factory.eventType> = {
12
- [key in keyof factory.event.IEvent<T>]?: 1;
13
- };
14
6
  /**
15
7
  * イベントサービス
16
8
  */
17
9
  export declare class EventService extends Service {
18
- /**
19
- * イベント作成(NO_CONTENT)
20
- */
21
- createWithNoResponse<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: factory.event.ICreateParams<T>[]): Promise<void>;
22
10
  /**
23
11
  * イベント冪等複数作成
24
12
  * 特定の追加特性をキーにして、存在しなければ作成する
@@ -33,29 +21,6 @@ export declare class EventService extends Service {
33
21
  };
34
22
  update: boolean;
35
23
  }): Promise<void>;
36
- /**
37
- * イベント検索
38
- */
39
- projectFields<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: Omit<factory.event.ISearchConditions<T>, 'project' | 'organizer'> & {
40
- typeOf: T;
41
- $projection?: IProjection<T>;
42
- }): Promise<IAdminSearchedEvent<T>[]>;
43
- /**
44
- * イベント取得
45
- */
46
- findEventById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
47
- id: string;
48
- typeOf: T;
49
- }): Promise<factory.event.IEvent<T>>;
50
- /**
51
- * イベント更新
52
- */
53
- updateById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
54
- id: string;
55
- attributes: factory.event.IUpdateParams<T> & {
56
- $unset?: IUnset<T>;
57
- };
58
- }): Promise<void>;
59
24
  /**
60
25
  * イベント部分更新
61
26
  */
@@ -62,27 +62,6 @@ var EventService = /** @class */ (function (_super) {
62
62
  function EventService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- /**
66
- * イベント作成(NO_CONTENT)
67
- */
68
- EventService.prototype.createWithNoResponse = function (params) {
69
- return __awaiter(this, void 0, void 0, function () {
70
- return __generator(this, function (_a) {
71
- switch (_a.label) {
72
- case 0: return [4 /*yield*/, this.fetch({
73
- uri: '/events',
74
- method: 'POST',
75
- body: params,
76
- qs: { expectsNoContent: '1' },
77
- expectedStatusCodes: [http_status_1.NO_CONTENT]
78
- })];
79
- case 1:
80
- _a.sent();
81
- return [2 /*return*/];
82
- }
83
- });
84
- });
85
- };
86
65
  /**
87
66
  * イベント冪等複数作成
88
67
  * 特定の追加特性をキーにして、存在しなければ作成する
@@ -109,67 +88,6 @@ var EventService = /** @class */ (function (_super) {
109
88
  });
110
89
  });
111
90
  };
112
- /**
113
- * イベント検索
114
- */
115
- EventService.prototype.projectFields = function (params) {
116
- return __awaiter(this, void 0, void 0, function () {
117
- var _this = this;
118
- return __generator(this, function (_a) {
119
- return [2 /*return*/, this.fetch({
120
- uri: '/events',
121
- method: 'GET',
122
- qs: params,
123
- expectedStatusCodes: [http_status_1.OK]
124
- })
125
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
126
- return [2 /*return*/, response.json()];
127
- }); }); })];
128
- });
129
- });
130
- };
131
- /**
132
- * イベント取得
133
- */
134
- EventService.prototype.findEventById = function (params) {
135
- return __awaiter(this, void 0, void 0, function () {
136
- var id, typeOf;
137
- var _this = this;
138
- return __generator(this, function (_a) {
139
- id = params.id, typeOf = params.typeOf;
140
- return [2 /*return*/, this.fetch({
141
- uri: "/events/" + encodeURIComponent(String(id)),
142
- method: 'GET',
143
- expectedStatusCodes: [http_status_1.OK],
144
- qs: { typeOf: typeOf }
145
- })
146
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
147
- return [2 /*return*/, response.json()];
148
- }); }); })];
149
- });
150
- });
151
- };
152
- /**
153
- * イベント更新
154
- */
155
- EventService.prototype.updateById = function (params) {
156
- return __awaiter(this, void 0, void 0, function () {
157
- return __generator(this, function (_a) {
158
- switch (_a.label) {
159
- case 0: return [4 /*yield*/, this.fetch({
160
- uri: "/events/" + encodeURIComponent(String(params.id)),
161
- method: 'PUT',
162
- body: params.attributes,
163
- // qs: params.qs,
164
- expectedStatusCodes: [http_status_1.NO_CONTENT]
165
- })];
166
- case 1:
167
- _a.sent();
168
- return [2 /*return*/];
169
- }
170
- });
171
- });
172
- };
173
91
  /**
174
92
  * イベント部分更新
175
93
  */
@@ -1,72 +1,12 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- declare type IKeyOfProjection = keyof factory.event.IEvent<factory.eventType.ScreeningEventSeries>;
4
- declare type IProjection = {
5
- [key in IKeyOfProjection]?: 0;
6
- };
7
3
  /**
8
4
  * 施設コンテンツサービス
9
5
  */
10
6
  export declare class EventSeriesService extends Service {
11
- /**
12
- * 施設コンテンツ検索
13
- */
14
- projectFields(params: Omit<factory.event.ISearchConditions<factory.eventType.ScreeningEventSeries>, 'project' | 'organizer'> & {
15
- typeOf: factory.eventType.ScreeningEventSeries;
16
- $projection?: IProjection;
17
- }): Promise<factory.event.IEvent<factory.eventType.ScreeningEventSeries>[]>;
18
- createIfNotExistByWorkPerformed(params: {
19
- attributes: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[];
20
- qs: {
21
- /**
22
- * 全施設に作成するかどうか
23
- */
24
- createScreeningEventSeriesOnAllLocation?: boolean;
25
- };
26
- }): Promise<void>;
27
- /**
28
- * 施設コンテンツ作成
29
- */
30
- create(params: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[]): Promise<{
31
- id: string;
32
- }>;
33
7
  /**
34
8
  * 施設コンテンツ冪等置換(施設+コンテンツ+バージョンに対してユニーク)
35
9
  * 存在しなければ作成し、存在すれば置換
36
10
  */
37
11
  upsertByVersion(params: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[]): Promise<void>;
38
- aggregateMaxVersion(params: {
39
- workPerformed: {
40
- identifier: {
41
- $eq: string;
42
- };
43
- };
44
- location: {
45
- branchCode: {
46
- $in: string[];
47
- };
48
- };
49
- }): Promise<{
50
- maxVersion: string;
51
- }>;
52
- /**
53
- * 施設コンテンツ更新
54
- */
55
- updateById(params: {
56
- id: string;
57
- attributes: factory.event.IUpdateParams<factory.eventType.ScreeningEventSeries> & {};
58
- qs: {
59
- /**
60
- * 関連リソースへの同期有無(2023-07-28~)
61
- */
62
- useSync?: boolean;
63
- };
64
- }): Promise<void>;
65
- /**
66
- * 施設コンテンツ削除
67
- */
68
- deleteById(params: {
69
- id: string;
70
- }): Promise<void>;
71
12
  }
72
- export {};