@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.
- package/example/playground/public/index.html +15 -14
- package/example/playground/public/lib/bundle.js +459 -578
- package/example/src/auth/auth.ts +1 -1
- package/example/src/auth/authAsAdmin.ts +1 -1
- package/example/src/auth/authChild.ts +1 -1
- package/example/src/auth/clientCredentials.ts +9 -7
- package/example/src/cancelReservations.ts +1 -1
- package/example/src/chevre/assetTransaction/processCancelReservation.ts +14 -14
- package/example/src/chevre/assetTransaction/processMoneyTransfer.ts +14 -14
- package/example/src/chevre/assetTransaction/processPayMGTicket.ts +19 -19
- package/example/src/chevre/assetTransaction/processPayMovieTicket.ts +19 -20
- package/example/src/chevre/assetTransaction/processPublishPaymentUrl.ts +19 -19
- package/example/src/chevre/assetTransaction/processRefundCreditCard.ts +19 -20
- package/example/src/chevre/assetTransaction/processRegisterService.ts +14 -14
- package/example/src/chevre/assetTransaction/processReserve.ts +20 -20
- package/example/src/chevre/auth.ts +1 -1
- package/example/src/chevre/authorizeOrder.ts +1 -1
- package/example/src/chevre/authorizePermit.ts +1 -1
- package/example/src/chevre/createEvents.ts +2 -2
- package/example/src/chevre/findOrderByConfirmationNumber.ts +2 -2
- package/example/src/chevre/findPerson.ts +2 -2
- package/example/src/chevre/person/authorizeMyOwnershipInfo.ts +1 -1
- package/example/src/chevre/publishServiceOutputIdentifier.ts +2 -2
- package/example/src/chevre/searchAcceptedOffersByConfirmationNumber.ts +2 -2
- package/example/src/chevre/searchEventOffers.ts +1 -1
- package/example/src/chevre/searchProjects.ts +1 -1
- package/example/src/chevre/searchReservations.ts +2 -2
- package/example/src/chevre/searchSellerPaymentAccepted.ts +2 -2
- package/example/src/chevre/searchTransactions.ts +2 -2
- package/example/src/chevre/transaction/processPlaceOrder.ts +2 -2
- package/example/src/createCommentOnOrder.ts +1 -1
- package/example/src/createEvents.ts +1 -1
- package/example/src/pecorino/findPermit.ts +33 -0
- package/example/src/st/person/getProfile.ts +1 -1
- package/example/src/st/person/searchCreditCards.ts +1 -1
- package/example/src/st/person/searchMemberships.ts +1 -1
- package/example/src/st/person/searchMyOrders.ts +1 -1
- package/example/src/st/person/searchPaymentCards.ts +1 -1
- package/example/src/st/person/searchReservations.ts +1 -1
- package/example/src/st/processPlaceOrderByPOS.ts +14 -14
- package/example/src/st/searchEventSeats.ts +14 -14
- package/example/src/st/searchEventSeries.ts +14 -14
- package/example/src/st/searchMovies.ts +14 -14
- package/example/src/transaction/checkPaymentCard.ts +14 -14
- package/example/src/transaction/processMoneyTransfer.ts +4 -4
- package/example/src/transaction/processMoneyTransferFromOrder.ts +4 -4
- package/example/src/transaction/processOrderMoneyTransferByCash.ts +4 -4
- package/example/src/transaction/processOrderMoneyTransferByCreditCard.ts +32 -32
- package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMembership.ts +41 -27
- package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMyMembership.ts +6 -6
- package/example/src/transaction/processPlaceOrderByCash.ts +7 -7
- package/example/src/transaction/processPlaceOrderByMovieTicket.ts +8 -8
- package/example/src/transaction/processPlaceOrderByNewMembershipCoupon4COA.ts +3 -3
- package/example/src/transaction/processPlaceOrderByPaymentCard.ts +4 -4
- package/example/src/transaction/processReturnOrder.ts +2 -2
- package/example/src/transaction/test/lockTransactionTest.ts +4 -4
- package/lib/abstract/chevre.d.ts +0 -47
- package/lib/abstract/chevre.js +1 -133
- package/lib/abstract/chevreTxn.d.ts +52 -0
- package/lib/abstract/chevreTxn.js +173 -0
- package/lib/abstract/default.d.ts +2 -2
- package/lib/abstract/default.js +2 -2
- package/lib/abstract/index.d.ts +4 -20
- package/lib/abstract/index.js +33 -55
- package/lib/abstract/service/offer.d.ts +1 -1
- package/lib/abstract/service/payment.d.ts +1 -1
- package/lib/abstract/service/transaction/placeOrder.d.ts +1 -1
- package/lib/abstract/service/transaction/placeOrder4sskts.d.ts +1 -1
- package/lib/auth/oAuth2client.d.ts +3 -3
- package/lib/auth/oAuth2client.js +2 -2
- package/lib/bundle.js +5445 -5502
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -1
- package/package.json +2 -2
- package/example/src/authorizeOrder.ts +0 -108
- package/example/src/chevre/createOrder.ts +0 -69
- package/example/src/chevre/transaction/processReturnOrder.ts +0 -114
- package/example/src/chevre/updateOrder.ts +0 -32
- package/example/src/findOrderByConfirmationNumber.ts +0 -37
- package/example/src/getMembershipOwnershipCode.ts +0 -57
- package/example/src/pecorino/findPermitByIdentifier.ts +0 -31
- package/example/src/pecorino/transaction/processDeposit.ts +0 -88
- package/example/src/pecorino/transaction/processTransfer.ts +0 -94
- package/example/src/pecorino/transaction/processWithdraw.ts +0 -90
- package/example/src/person/manageProfile.ts +0 -47
- package/example/src/person/manageProfileAsAdmin.ts +0 -39
- package/example/src/person/manageReservationToken.ts +0 -72
- package/example/src/person/searchMyPaymentCards.ts +0 -62
- package/example/src/person/searchMyReservations.ts +0 -42
- package/example/src/person/searchOrders.ts +0 -51
- package/example/src/searchEvents.ts +0 -58
- package/example/src/searchOffers.ts +0 -38
- package/example/src/searchOrderAcceptedOffers.ts +0 -39
- package/example/src/searchOrders.ts +0 -110
- package/example/src/searchPaymentServices.ts +0 -45
- package/example/src/searchPaymentServicesOnMovieTicketIF.ts +0 -47
- package/example/src/searchProducts.ts +0 -41
- package/example/src/searchProjects.ts +0 -41
- package/example/src/searchSellers.ts +0 -30
- package/example/src/transaction/processPublishPaymentUrl.ts +0 -167
- package/example/src/transaction/searchEventOffers.ts +0 -65
- package/example/src/updateOrder.ts +0 -32
- /package/lib/abstract/{chevre → chevreTxn}/offer.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/offer.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/payment/factory.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/payment/factory.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/payment.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/payment.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/moneyTransfer.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/moneyTransfer.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder/factory.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder/factory.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/placeOrder.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/returnOrder.d.ts +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction/returnOrder.js +0 -0
- /package/lib/abstract/{chevre → chevreTxn}/transaction.d.ts +0 -0
- /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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 }
|