@cinerino/sdk 4.0.0-alpha.5 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/example/playground/public/index.html +15 -14
  2. package/example/playground/public/lib/bundle.js +459 -578
  3. package/example/src/auth/auth.ts +1 -1
  4. package/example/src/auth/authAsAdmin.ts +1 -1
  5. package/example/src/auth/authChild.ts +1 -1
  6. package/example/src/auth/clientCredentials.ts +9 -7
  7. package/example/src/cancelReservations.ts +1 -1
  8. package/example/src/chevre/assetTransaction/processCancelReservation.ts +14 -14
  9. package/example/src/chevre/assetTransaction/processMoneyTransfer.ts +14 -14
  10. package/example/src/chevre/assetTransaction/processPayMGTicket.ts +19 -19
  11. package/example/src/chevre/assetTransaction/processPayMovieTicket.ts +19 -20
  12. package/example/src/chevre/assetTransaction/processPublishPaymentUrl.ts +19 -19
  13. package/example/src/chevre/assetTransaction/processRefundCreditCard.ts +19 -20
  14. package/example/src/chevre/assetTransaction/processRegisterService.ts +14 -14
  15. package/example/src/chevre/assetTransaction/processReserve.ts +20 -20
  16. package/example/src/chevre/auth.ts +1 -1
  17. package/example/src/chevre/authorizeOrder.ts +1 -1
  18. package/example/src/chevre/authorizePermit.ts +1 -1
  19. package/example/src/chevre/createEvents.ts +2 -2
  20. package/example/src/chevre/findOrderByConfirmationNumber.ts +2 -2
  21. package/example/src/chevre/findPerson.ts +2 -2
  22. package/example/src/chevre/person/authorizeMyOwnershipInfo.ts +1 -1
  23. package/example/src/chevre/publishServiceOutputIdentifier.ts +2 -2
  24. package/example/src/chevre/searchAcceptedOffersByConfirmationNumber.ts +2 -2
  25. package/example/src/chevre/searchEventOffers.ts +1 -1
  26. package/example/src/chevre/searchProjects.ts +1 -1
  27. package/example/src/chevre/searchReservations.ts +2 -2
  28. package/example/src/chevre/searchSellerPaymentAccepted.ts +2 -2
  29. package/example/src/chevre/searchTransactions.ts +2 -2
  30. package/example/src/chevre/transaction/processPlaceOrder.ts +2 -2
  31. package/example/src/createCommentOnOrder.ts +1 -1
  32. package/example/src/createEvents.ts +1 -1
  33. package/example/src/pecorino/findPermit.ts +33 -0
  34. package/example/src/st/person/getProfile.ts +1 -1
  35. package/example/src/st/person/searchCreditCards.ts +1 -1
  36. package/example/src/st/person/searchMemberships.ts +1 -1
  37. package/example/src/st/person/searchMyOrders.ts +1 -1
  38. package/example/src/st/person/searchPaymentCards.ts +1 -1
  39. package/example/src/st/person/searchReservations.ts +1 -1
  40. package/example/src/st/processPlaceOrderByPOS.ts +14 -14
  41. package/example/src/st/searchEventSeats.ts +14 -14
  42. package/example/src/st/searchEventSeries.ts +14 -14
  43. package/example/src/st/searchMovies.ts +14 -14
  44. package/example/src/transaction/checkPaymentCard.ts +14 -14
  45. package/example/src/transaction/processMoneyTransfer.ts +4 -4
  46. package/example/src/transaction/processMoneyTransferFromOrder.ts +4 -4
  47. package/example/src/transaction/processOrderMoneyTransferByCash.ts +4 -4
  48. package/example/src/transaction/processOrderMoneyTransferByCreditCard.ts +32 -32
  49. package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMembership.ts +41 -27
  50. package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMyMembership.ts +6 -6
  51. package/example/src/transaction/processPlaceOrderByCash.ts +7 -7
  52. package/example/src/transaction/processPlaceOrderByMovieTicket.ts +8 -8
  53. package/example/src/transaction/processPlaceOrderByNewMembershipCoupon4COA.ts +3 -3
  54. package/example/src/transaction/processPlaceOrderByPaymentCard.ts +4 -4
  55. package/example/src/transaction/processReturnOrder.ts +2 -2
  56. package/example/src/transaction/test/lockTransactionTest.ts +4 -4
  57. package/lib/abstract/chevre.d.ts +0 -47
  58. package/lib/abstract/chevre.js +1 -133
  59. package/lib/abstract/chevreTxn.d.ts +52 -0
  60. package/lib/abstract/chevreTxn.js +173 -0
  61. package/lib/abstract/default.d.ts +2 -2
  62. package/lib/abstract/default.js +2 -2
  63. package/lib/abstract/index.d.ts +4 -20
  64. package/lib/abstract/index.js +33 -55
  65. package/lib/abstract/service/offer.d.ts +1 -1
  66. package/lib/abstract/service/payment.d.ts +1 -1
  67. package/lib/abstract/service/transaction/placeOrder.d.ts +1 -1
  68. package/lib/abstract/service/transaction/placeOrder4sskts.d.ts +1 -1
  69. package/lib/auth/oAuth2client.d.ts +3 -3
  70. package/lib/auth/oAuth2client.js +2 -2
  71. package/lib/bundle.js +5445 -5502
  72. package/lib/index.d.ts +2 -2
  73. package/lib/index.js +2 -1
  74. package/package.json +2 -2
  75. package/example/src/authorizeOrder.ts +0 -108
  76. package/example/src/chevre/createOrder.ts +0 -69
  77. package/example/src/chevre/transaction/processReturnOrder.ts +0 -114
  78. package/example/src/chevre/updateOrder.ts +0 -32
  79. package/example/src/findOrderByConfirmationNumber.ts +0 -37
  80. package/example/src/getMembershipOwnershipCode.ts +0 -57
  81. package/example/src/pecorino/findPermitByIdentifier.ts +0 -31
  82. package/example/src/pecorino/transaction/processDeposit.ts +0 -88
  83. package/example/src/pecorino/transaction/processTransfer.ts +0 -94
  84. package/example/src/pecorino/transaction/processWithdraw.ts +0 -90
  85. package/example/src/person/manageProfile.ts +0 -47
  86. package/example/src/person/manageProfileAsAdmin.ts +0 -39
  87. package/example/src/person/manageReservationToken.ts +0 -72
  88. package/example/src/person/searchMyPaymentCards.ts +0 -62
  89. package/example/src/person/searchMyReservations.ts +0 -42
  90. package/example/src/person/searchOrders.ts +0 -51
  91. package/example/src/searchEvents.ts +0 -58
  92. package/example/src/searchOffers.ts +0 -38
  93. package/example/src/searchOrderAcceptedOffers.ts +0 -39
  94. package/example/src/searchOrders.ts +0 -110
  95. package/example/src/searchPaymentServices.ts +0 -45
  96. package/example/src/searchPaymentServicesOnMovieTicketIF.ts +0 -47
  97. package/example/src/searchProducts.ts +0 -41
  98. package/example/src/searchProjects.ts +0 -41
  99. package/example/src/searchSellers.ts +0 -30
  100. package/example/src/transaction/processPublishPaymentUrl.ts +0 -167
  101. package/example/src/transaction/searchEventOffers.ts +0 -65
  102. package/example/src/updateOrder.ts +0 -32
  103. /package/lib/abstract/{chevre → chevreTxn}/offer.d.ts +0 -0
  104. /package/lib/abstract/{chevre → chevreTxn}/offer.js +0 -0
  105. /package/lib/abstract/{chevre → chevreTxn}/payment/factory.d.ts +0 -0
  106. /package/lib/abstract/{chevre → chevreTxn}/payment/factory.js +0 -0
  107. /package/lib/abstract/{chevre → chevreTxn}/payment.d.ts +0 -0
  108. /package/lib/abstract/{chevre → chevreTxn}/payment.js +0 -0
  109. /package/lib/abstract/{chevre → chevreTxn}/transaction/moneyTransfer.d.ts +0 -0
  110. /package/lib/abstract/{chevre → chevreTxn}/transaction/moneyTransfer.js +0 -0
  111. /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder/factory.d.ts +0 -0
  112. /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder/factory.js +0 -0
  113. /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder.d.ts +0 -0
  114. /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder.js +0 -0
  115. /package/lib/abstract/{chevre → chevreTxn}/transaction/returnOrder.d.ts +0 -0
  116. /package/lib/abstract/{chevre → chevreTxn}/transaction/returnOrder.js +0 -0
  117. /package/lib/abstract/{chevre → chevreTxn}/transaction.d.ts +0 -0
  118. /package/lib/abstract/{chevre → chevreTxn}/transaction.js +0 -0
@@ -263,11 +263,12 @@
263
263
  preRequest();
264
264
 
265
265
  // search events
266
- var placeService = new cinerino.service.Place({
266
+ var placeService = new (await cinerino.loadService()).Place({
267
267
  endpoint: settings.API_ENDPOINT,
268
268
  auth: auth,
269
269
  project: { id: settings.PROJECT_ID }
270
270
  });
271
+ console.log('placeService:', placeService);
271
272
  await placeService.searchMovieTheaters({})
272
273
  .then(function (result) {
273
274
  console.log('result.data:', result.data);
@@ -287,7 +288,7 @@
287
288
  preRequest();
288
289
 
289
290
  // search events
290
- var creativeWorkService = new cinerino.service.CreativeWork({
291
+ var creativeWorkService = new (await cinerino.loadService()).CreativeWork({
291
292
  endpoint: settings.API_ENDPOINT,
292
293
  auth: auth,
293
294
  project: { id: settings.PROJECT_ID }
@@ -311,7 +312,7 @@
311
312
  preRequest();
312
313
 
313
314
  // search events
314
- var events = new cinerino.service.Event({
315
+ var events = new (await cinerino.loadService()).Event({
315
316
  endpoint: settings.API_ENDPOINT,
316
317
  auth: auth,
317
318
  project: { id: settings.PROJECT_ID }
@@ -337,7 +338,7 @@
337
338
  preRequest();
338
339
 
339
340
  // search events
340
- var events = new cinerino.service.Event({
341
+ var events = new (await cinerino.loadService()).Event({
341
342
  endpoint: settings.API_ENDPOINT,
342
343
  auth: auth,
343
344
  project: { id: settings.PROJECT_ID }
@@ -363,13 +364,13 @@
363
364
  preRequest();
364
365
 
365
366
  // search events
366
- var productService = new cinerino.service.Product({
367
+ var productService = new (await cinerino.loadService()).Product({
367
368
  endpoint: settings.API_ENDPOINT,
368
369
  auth: auth,
369
370
  project: { id: settings.PROJECT_ID }
370
371
  });
371
372
  await productService.search({
372
- typeOf: { $eq: cinerino.factory.chevre.product.ProductType.MembershipService }
373
+ typeOf: { $eq: cinerino.factory.product.ProductType.MembershipService }
373
374
  })
374
375
  .then(function (result) {
375
376
  console.log('result.data:', result.data);
@@ -389,13 +390,13 @@
389
390
  preRequest();
390
391
 
391
392
  // search events
392
- var productService = new cinerino.service.Product({
393
+ var productService = new (await cinerino.loadService()).Product({
393
394
  endpoint: settings.API_ENDPOINT,
394
395
  auth: auth,
395
396
  project: { id: settings.PROJECT_ID }
396
397
  });
397
398
  await productService.search({
398
- typeOf: { $eq: cinerino.factory.chevre.product.ProductType.PaymentCard }
399
+ typeOf: { $eq: cinerino.factory.product.ProductType.PaymentCard }
399
400
  })
400
401
  .then(function (result) {
401
402
  console.log('result.data:', result.data);
@@ -414,7 +415,7 @@
414
415
  let logMessage = '';
415
416
  preRequest();
416
417
 
417
- var people = new cinerino.service.Person({
418
+ var people = new (await cinerino.loadService()).Person({
418
419
  endpoint: settings.API_ENDPOINT,
419
420
  auth: auth,
420
421
  project: { id: settings.PROJECT_ID }
@@ -437,7 +438,7 @@
437
438
  let logMessage = '';
438
439
  preRequest();
439
440
 
440
- var personService = new cinerino.service.Person({
441
+ var personService = new (await cinerino.loadService()).Person({
441
442
  endpoint: settings.API_ENDPOINT,
442
443
  auth: auth,
443
444
  project: { id: settings.PROJECT_ID }
@@ -470,7 +471,7 @@
470
471
  let logMessage = '';
471
472
  preRequest();
472
473
 
473
- var ownershipInfoService = new cinerino.service.person.OwnershipInfo({
474
+ var ownershipInfoService = new (await cinerino.loadService()).person.OwnershipInfo({
474
475
  endpoint: settings.API_ENDPOINT,
475
476
  auth: auth,
476
477
  project: { id: settings.PROJECT_ID }
@@ -494,7 +495,7 @@
494
495
  let logMessage = '';
495
496
  preRequest();
496
497
 
497
- var ownershipInfoService = new cinerino.service.person.OwnershipInfo({
498
+ var ownershipInfoService = new (await cinerino.loadService()).person.OwnershipInfo({
498
499
  endpoint: settings.API_ENDPOINT,
499
500
  auth: auth,
500
501
  project: { id: settings.PROJECT_ID }
@@ -518,7 +519,7 @@
518
519
  let logMessage = '';
519
520
  preRequest();
520
521
 
521
- var ownershipInfoService = new cinerino.service.person.OwnershipInfo({
522
+ var ownershipInfoService = new (await cinerino.loadService()).person.OwnershipInfo({
522
523
  endpoint: settings.API_ENDPOINT,
523
524
  auth: auth,
524
525
  project: { id: settings.PROJECT_ID }
@@ -542,7 +543,7 @@
542
543
  let logMessage = '';
543
544
  preRequest();
544
545
 
545
- var people = new cinerino.service.Person({
546
+ var people = new (await cinerino.loadService()).Person({
546
547
  endpoint: settings.API_ENDPOINT,
547
548
  auth: auth,
548
549
  project: { id: settings.PROJECT_ID }