@cinerino/sdk 15.0.0-alpha.7 → 15.0.0-alpha.8
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
|
|
2
2
|
import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
|
|
3
|
-
import type { AuthorizationService } from './chevreAdmin/authorization';
|
|
4
3
|
import type { CustomerService } from './chevreAdmin/customer';
|
|
5
4
|
import type { EventService } from './chevreAdmin/event';
|
|
6
5
|
import type { EventOfferService } from './chevreAdmin/eventOffer';
|
|
@@ -24,13 +23,6 @@ import type { SeatSectionService } from './chevreAdmin/seatSection';
|
|
|
24
23
|
import type { SellerService } from './chevreAdmin/seller';
|
|
25
24
|
export declare namespace service {
|
|
26
25
|
type IUnset = IUnsetOnService;
|
|
27
|
-
/**
|
|
28
|
-
* 承認サービス
|
|
29
|
-
*/
|
|
30
|
-
type Authorization = AuthorizationService;
|
|
31
|
-
namespace Authorization {
|
|
32
|
-
let svc: typeof AuthorizationService | undefined;
|
|
33
|
-
}
|
|
34
26
|
/**
|
|
35
27
|
* 顧客サービス
|
|
36
28
|
*/
|
|
@@ -194,7 +186,6 @@ export declare namespace service {
|
|
|
194
186
|
export declare class ChevreAdmin {
|
|
195
187
|
options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
|
|
196
188
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
|
|
197
|
-
createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
|
|
198
189
|
createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
|
|
199
190
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
200
191
|
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
@@ -36,9 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.ChevreAdmin = exports.service = void 0;
|
|
37
37
|
var service;
|
|
38
38
|
(function (service) {
|
|
39
|
-
let Authorization;
|
|
40
|
-
(function (Authorization) {
|
|
41
|
-
})(Authorization = service.Authorization || (service.Authorization = {}));
|
|
42
39
|
let Customer;
|
|
43
40
|
(function (Customer) {
|
|
44
41
|
})(Customer = service.Customer || (service.Customer = {}));
|
|
@@ -117,12 +114,6 @@ class ChevreAdmin {
|
|
|
117
114
|
constructor(options) {
|
|
118
115
|
this.options = options;
|
|
119
116
|
}
|
|
120
|
-
async createAuthorizationInstance(params) {
|
|
121
|
-
if (service.Authorization.svc === undefined) {
|
|
122
|
-
service.Authorization.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/authorization.js')))).AuthorizationService;
|
|
123
|
-
}
|
|
124
|
-
return new service.Authorization.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
125
|
-
}
|
|
126
117
|
async createCustomerInstance(params) {
|
|
127
118
|
if (service.Customer.svc === undefined) {
|
|
128
119
|
service.Customer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/customer.js')))).CustomerService;
|