@cinerino/sdk 15.0.0-alpha.0 → 15.0.0-alpha.10

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 (59) hide show
  1. package/lib/abstract/chevre/product.js +0 -17
  2. package/lib/abstract/chevre.d.ts +0 -9
  3. package/lib/abstract/chevre.js +0 -9
  4. package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
  5. package/lib/abstract/chevreAdmin/reservation.d.ts +43 -6
  6. package/lib/abstract/chevreAdmin/reservation.js +1 -1
  7. package/lib/abstract/chevreAdmin.d.ts +0 -18
  8. package/lib/abstract/chevreAdmin.js +0 -18
  9. package/lib/abstract/chevreConsole/customerType.d.ts +3 -1
  10. package/lib/abstract/chevreConsole/iam.d.ts +4 -8
  11. package/lib/abstract/chevreConsole/iam.js +11 -11
  12. package/lib/abstract/chevreConsole.d.ts +0 -45
  13. package/lib/abstract/chevreConsole.js +0 -46
  14. package/lib/abstract/chevrePay/payment/factory.d.ts +0 -3
  15. package/lib/abstract/chevrePay/payment.d.ts +1 -8
  16. package/lib/abstract/chevrePay/payment.js +0 -26
  17. package/lib/abstract/chevreTxn/offer.d.ts +1 -1
  18. package/lib/abstract/cloud/admin/eventSeries.d.ts +2 -3
  19. package/lib/abstract/cloud/admin/offer.d.ts +1 -1
  20. package/lib/abstract/cloud/admin/reservation.js +8 -8
  21. package/lib/abstract/cloud/admin.d.ts +0 -9
  22. package/lib/abstract/cloud/admin.js +0 -9
  23. package/lib/abstract/cloud/search/product.js +0 -3
  24. package/lib/abstract/cloud/search.d.ts +0 -12
  25. package/lib/abstract/cloud/search.js +0 -15
  26. package/lib/abstract/cloud/txn/offer.d.ts +1 -1
  27. package/lib/abstract/index.d.ts +1 -3
  28. package/lib/abstract/index.js +0 -9
  29. package/lib/bundle.js +3 -3
  30. package/lib/bundle.js.map +4 -4
  31. package/lib/index.d.ts +2 -2
  32. package/lib/index.js +1 -2
  33. package/package.json +2 -2
  34. package/lib/abstract/chevre/productOffer.d.ts +0 -33
  35. package/lib/abstract/chevre/productOffer.js +0 -21
  36. package/lib/abstract/chevreAdmin/authorization.d.ts +0 -72
  37. package/lib/abstract/chevreAdmin/authorization.js +0 -23
  38. package/lib/abstract/chevreAdmin/productOffer.d.ts +0 -79
  39. package/lib/abstract/chevreAdmin/productOffer.js +0 -67
  40. package/lib/abstract/chevreConsole/account.d.ts +0 -56
  41. package/lib/abstract/chevreConsole/account.js +0 -51
  42. package/lib/abstract/chevreConsole/advanceBookingRequirement.d.ts +0 -19
  43. package/lib/abstract/chevreConsole/advanceBookingRequirement.js +0 -46
  44. package/lib/abstract/chevreConsole/comment.d.ts +0 -36
  45. package/lib/abstract/chevreConsole/comment.js +0 -39
  46. package/lib/abstract/chevreConsole/permit.d.ts +0 -40
  47. package/lib/abstract/chevreConsole/permit.js +0 -52
  48. package/lib/abstract/chevreConsole/productModel.d.ts +0 -56
  49. package/lib/abstract/chevreConsole/productModel.js +0 -44
  50. package/lib/abstract/cloud/admin/productOffer.d.ts +0 -48
  51. package/lib/abstract/cloud/admin/productOffer.js +0 -55
  52. package/lib/abstract/cloud/search/productOffer.d.ts +0 -11
  53. package/lib/abstract/cloud/search/productOffer.js +0 -25
  54. package/lib/abstract/pecorino/accountTransaction.d.ts +0 -28
  55. package/lib/abstract/pecorino/accountTransaction.js +0 -68
  56. package/lib/abstract/pecorino/permit.d.ts +0 -39
  57. package/lib/abstract/pecorino/permit.js +0 -40
  58. package/lib/abstract/pecorino.d.ts +0 -19
  59. package/lib/abstract/pecorino.js +0 -25
@@ -20,23 +20,6 @@ class ProductService extends service_1.Service {
20
20
  })
21
21
  .then(async (response) => response.json());
22
22
  }
23
- // discontinue(2025-08-20~)
24
- // public async searchPaymentServices(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
25
- // // 必須化(2023-12-18~)
26
- // typeOf: {
27
- // $eq: factory.service.paymentService.PaymentServiceType.CreditCard;
28
- // };
29
- // }
30
- // // & IProjectionSearchConditions // discontinue(2024-10-21~)
31
- // ): Promise<IPaymentServiceWithoutCredentials[]> {
32
- // return this.fetch({
33
- // uri: '/products',
34
- // method: 'GET',
35
- // qs: params,
36
- // expectedStatusCodes: [status.OK]
37
- // })
38
- // .then(async (response) => response.json());
39
- // }
40
23
  /**
41
24
  * オファー検索
42
25
  */
@@ -10,7 +10,6 @@ import type { PaymentProductService } from './chevre/paymentService';
10
10
  import type { PlaceService } from './chevre/place';
11
11
  import type { HasPOSService } from './chevre/place/hasPOS';
12
12
  import type { ProductService } from './chevre/product';
13
- import type { ProductOfferService } from './chevre/productOffer';
14
13
  import type { SeatOfferService } from './chevre/seatOffer';
15
14
  import type { SellerService } from './chevre/seller';
16
15
  export declare namespace service {
@@ -94,13 +93,6 @@ export declare namespace service {
94
93
  namespace Product {
95
94
  let svc: typeof ProductService | undefined;
96
95
  }
97
- /**
98
- * プロダクトオファーサービス
99
- */
100
- type ProductOffer = ProductOfferService;
101
- namespace ProductOffer {
102
- let svc: typeof ProductOfferService | undefined;
103
- }
104
96
  /**
105
97
  * 座席オファーサービス
106
98
  */
@@ -133,7 +125,6 @@ export declare class Chevre {
133
125
  createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
134
126
  createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
135
127
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
136
- createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
137
128
  createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
138
129
  createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
139
130
  }
@@ -72,9 +72,6 @@ var service;
72
72
  let Product;
73
73
  (function (Product) {
74
74
  })(Product = service.Product || (service.Product = {}));
75
- let ProductOffer;
76
- (function (ProductOffer) {
77
- })(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
78
75
  let SeatOffer;
79
76
  (function (SeatOffer) {
80
77
  })(SeatOffer = service.SeatOffer || (service.SeatOffer = {}));
@@ -156,12 +153,6 @@ class Chevre {
156
153
  }
157
154
  return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
158
155
  }
159
- async createProductOfferInstance(params) {
160
- if (service.ProductOffer.svc === undefined) {
161
- service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/productOffer.js')))).ProductOfferService;
162
- }
163
- return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
164
- }
165
156
  async createSeatOfferInstance(params) {
166
157
  if (service.SeatOffer.svc === undefined) {
167
158
  service.SeatOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/seatOffer.js')))).SeatOfferService;
@@ -56,7 +56,7 @@ export declare class EventSeriesService extends Service {
56
56
  * 施設ID
57
57
  */
58
58
  locationId: string;
59
- offerType: factory.offerType.AggregateOffer | factory.offerType.Offer;
59
+ offerType: factory.offerType.Offer;
60
60
  upsert?: boolean;
61
61
  /**
62
62
  * 関連リソースへの同期有無(2026-01-28~)
@@ -4,11 +4,47 @@ import { Service } from '../service';
4
4
  export interface IUseActionResult {
5
5
  id: string;
6
6
  }
7
- type IKeyOfProjection = keyof factory.reservation.eventReservation.IReservation;
8
- type IProjection = Partial<Record<IKeyOfProjection, 1>>;
9
- interface IProjectionSearchConditions {
10
- $projection?: IProjection;
11
- }
7
+ /**
8
+ * 予約検索条件
9
+ */
10
+ type IFindParams = Pick<factory.reservation.eventReservation.ISearchConditions, 'typeOf' | 'bookingFrom' | 'bookingThrough' | 'ids' | 'reservationNumbers' | 'reservationStatuses' | 'attended' | 'checkedIn'> & {
11
+ additionalTicketText?: string;
12
+ broker?: {
13
+ id?: string;
14
+ };
15
+ underName?: {
16
+ email?: {
17
+ $regex?: string;
18
+ };
19
+ telephone?: string;
20
+ givenName?: {
21
+ $regex?: string;
22
+ };
23
+ familyName?: {
24
+ $regex?: string;
25
+ };
26
+ };
27
+ reservationFor?: Pick<factory.reservation.eventReservation.IReservationForSearchConditions, 'startFrom' | 'startThrough' | 'ids'> & {
28
+ location?: {
29
+ branchCodes?: string[];
30
+ };
31
+ superEvent?: {
32
+ id?: string;
33
+ location?: {
34
+ ids?: string[];
35
+ branchCodes?: string[];
36
+ };
37
+ workPerformed?: {
38
+ identifiers?: string[];
39
+ };
40
+ };
41
+ };
42
+ reservedTicket?: {
43
+ ticketedSeat?: {
44
+ seatNumbers?: string[];
45
+ };
46
+ };
47
+ };
12
48
  /**
13
49
  * 予約サービス
14
50
  */
@@ -16,7 +52,8 @@ export declare class ReservationService extends Service {
16
52
  /**
17
53
  * 予約検索
18
54
  */
19
- find(params: Omit<factory.reservation.eventReservation.ISearchConditions, 'project' | 'provider'> & IProjectionSearchConditions & {
55
+ findReservations(params: IFindParams & {
56
+ $projection?: never;
20
57
  /**
21
58
  * min: 1
22
59
  * max: 20
@@ -10,7 +10,7 @@ class ReservationService extends service_1.Service {
10
10
  /**
11
11
  * 予約検索
12
12
  */
13
- async find(params) {
13
+ async findReservations(params) {
14
14
  return this.fetch({
15
15
  uri: '/reservations',
16
16
  method: 'GET',
@@ -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';
@@ -17,7 +16,6 @@ import type { OfferCatalogItemService } from './chevreAdmin/offerCatalogItem';
17
16
  import type { OrderService } from './chevreAdmin/order';
18
17
  import type { PaymentMethodService } from './chevreAdmin/paymentMethod';
19
18
  import type { ProductService } from './chevreAdmin/product';
20
- import type { ProductOfferService } from './chevreAdmin/productOffer';
21
19
  import type { ReservationService } from './chevreAdmin/reservation';
22
20
  import type { RoomService } from './chevreAdmin/room';
23
21
  import type { SeatService } from './chevreAdmin/seat';
@@ -25,13 +23,6 @@ import type { SeatSectionService } from './chevreAdmin/seatSection';
25
23
  import type { SellerService } from './chevreAdmin/seller';
26
24
  export declare namespace service {
27
25
  type IUnset = IUnsetOnService;
28
- /**
29
- * 承認サービス
30
- */
31
- type Authorization = AuthorizationService;
32
- namespace Authorization {
33
- let svc: typeof AuthorizationService | undefined;
34
- }
35
26
  /**
36
27
  * 顧客サービス
37
28
  */
@@ -123,13 +114,6 @@ export declare namespace service {
123
114
  namespace Product {
124
115
  let svc: typeof ProductService | undefined;
125
116
  }
126
- /**
127
- * プロダクトオファーサービス
128
- */
129
- type ProductOffer = ProductOfferService;
130
- namespace ProductOffer {
131
- let svc: typeof ProductOfferService | undefined;
132
- }
133
117
  /**
134
118
  * 予約サービス
135
119
  */
@@ -202,7 +186,6 @@ export declare namespace service {
202
186
  export declare class ChevreAdmin {
203
187
  options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
204
188
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
205
- createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
206
189
  createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
207
190
  createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
208
191
  createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
@@ -219,7 +202,6 @@ export declare class ChevreAdmin {
219
202
  createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
220
203
  createPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentMethodService>;
221
204
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
222
- createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
223
205
  createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
224
206
  /**
225
207
  * 販売者指定必須
@@ -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 = {}));
@@ -78,9 +75,6 @@ var service;
78
75
  let Product;
79
76
  (function (Product) {
80
77
  })(Product = service.Product || (service.Product = {}));
81
- let ProductOffer;
82
- (function (ProductOffer) {
83
- })(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
84
78
  let Reservation;
85
79
  (function (Reservation) {
86
80
  })(Reservation = service.Reservation || (service.Reservation = {}));
@@ -120,12 +114,6 @@ class ChevreAdmin {
120
114
  constructor(options) {
121
115
  this.options = options;
122
116
  }
123
- async createAuthorizationInstance(params) {
124
- if (service.Authorization.svc === undefined) {
125
- service.Authorization.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/authorization.js')))).AuthorizationService;
126
- }
127
- return new service.Authorization.svc({ ...this.options, ...params, retryableStatusCodes: [] });
128
- }
129
117
  async createCustomerInstance(params) {
130
118
  if (service.Customer.svc === undefined) {
131
119
  service.Customer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/customer.js')))).CustomerService;
@@ -207,12 +195,6 @@ class ChevreAdmin {
207
195
  }
208
196
  return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
209
197
  }
210
- async createProductOfferInstance(params) {
211
- if (service.ProductOffer.svc === undefined) {
212
- service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/productOffer.js')))).ProductOfferService;
213
- }
214
- return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
215
- }
216
198
  async createReservationInstance(params) {
217
199
  if (service.Reservation.svc === undefined) {
218
200
  service.Reservation.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/reservation.js')))).ReservationService;
@@ -1,5 +1,6 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
+ type ICustomerType = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'id' | 'name' | 'typeOf'>;
3
4
  /**
4
5
  * カスタマータイプサービス
5
6
  */
@@ -7,5 +8,6 @@ export declare class CustomerTypeService extends Service {
7
8
  /**
8
9
  * 検索
9
10
  */
10
- search(params: Pick<factory.categoryCode.ISearchConditions, 'codeValue' | 'limit' | 'page' | 'sort'>): Promise<factory.categoryCode.ICategoryCode[]>;
11
+ search(params: Pick<factory.categoryCode.ISearchConditions, 'codeValue' | 'limit' | 'page' | 'sort'>): Promise<ICustomerType[]>;
11
12
  }
13
+ export {};
@@ -45,14 +45,6 @@ export declare class IAMService extends Service {
45
45
  * IAMプロジェクトメンバー検索
46
46
  */
47
47
  searchProjectMembers(params: factory.iam.ISearchConditions): Promise<ISearchResult<factory.iam.IMember[]>>;
48
- /**
49
- * IAMメンバー取得
50
- */
51
- findMemberById(params: {
52
- member: {
53
- id: string;
54
- };
55
- }): Promise<factory.iam.IMember>;
56
48
  /**
57
49
  * IAMメンバー更新
58
50
  */
@@ -114,4 +106,8 @@ export declare class IAMService extends Service {
114
106
  }): Promise<ISearchResult<{
115
107
  member: Pick<factory.iam.IMemberOfRole, 'hasRole' | 'id' | 'name' | 'memberOf'>;
116
108
  }[]>>;
109
+ /**
110
+ * プロジェクトメンバーとしてのme(リクエストユーザー自身)を参照する
111
+ */
112
+ findMeAsProjectMember(): Promise<factory.iam.IMember>;
117
113
  }
@@ -96,17 +96,6 @@ class IAMService extends service_1.Service {
96
96
  };
97
97
  });
98
98
  }
99
- /**
100
- * IAMメンバー取得
101
- */
102
- async findMemberById(params) {
103
- return this.fetch({
104
- uri: `/iam/members/${params.member.id}`,
105
- method: 'GET',
106
- expectedStatusCodes: [http_status_1.status.OK]
107
- })
108
- .then(async (response) => response.json());
109
- }
110
99
  /**
111
100
  * IAMメンバー更新
112
101
  */
@@ -167,5 +156,16 @@ class IAMService extends service_1.Service {
167
156
  };
168
157
  });
169
158
  }
159
+ /**
160
+ * プロジェクトメンバーとしてのme(リクエストユーザー自身)を参照する
161
+ */
162
+ async findMeAsProjectMember() {
163
+ return this.fetch({
164
+ uri: '/iam/members/me',
165
+ method: 'GET',
166
+ expectedStatusCodes: [http_status_1.status.OK]
167
+ })
168
+ .then(async (response) => response.json());
169
+ }
170
170
  }
171
171
  exports.IAMService = IAMService;
@@ -1,10 +1,8 @@
1
1
  import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
2
- import type { AccountService } from './chevreConsole/account';
3
2
  import type { AccountingReportService } from './chevreConsole/accountingReport';
4
3
  import type { AccountTitleService } from './chevreConsole/accountTitle';
5
4
  import type { ActionService } from './chevreConsole/action';
6
5
  import type { AdditionalPropertyService } from './chevreConsole/additionalProperty';
7
- import type { AdvanceBookingRequirementService } from './chevreConsole/advanceBookingRequirement';
8
6
  import type { AggregateOfferService } from './chevreConsole/aggregateOffer';
9
7
  import type { AggregateReservationService } from './chevreConsole/aggregateReservation';
10
8
  import type { AggregationService } from './chevreConsole/aggregation';
@@ -13,7 +11,6 @@ import type { PayAssetTransactionService } from './chevreConsole/assetTransactio
13
11
  import type { ReserveAssetTransactionService } from './chevreConsole/assetTransaction/reserve';
14
12
  import type { AuthorizationService } from './chevreConsole/authorization';
15
13
  import type { CategoryCodeService } from './chevreConsole/categoryCode';
16
- import type { CommentService } from './chevreConsole/comment';
17
14
  import type { CreativeWorkService } from './chevreConsole/creativeWork';
18
15
  import type { CustomerService } from './chevreConsole/customer';
19
16
  import type { CustomerTypeService } from './chevreConsole/customerType';
@@ -41,13 +38,11 @@ import type { PaymentProductService } from './chevreConsole/paymentService';
41
38
  import type { PaymentServiceChannelService } from './chevreConsole/paymentServiceChannel';
42
39
  import type { PendingReservationService } from './chevreConsole/pendingReservation';
43
40
  import type { PermissionService } from './chevreConsole/permission';
44
- import type { PermitService } from './chevreConsole/permit';
45
41
  import type { PersonService } from './chevreConsole/person';
46
42
  import type { PlaceService } from './chevreConsole/place';
47
43
  import type { HasPOSService } from './chevreConsole/place/hasPOS';
48
44
  import type { PriceSpecificationService } from './chevreConsole/priceSpecification';
49
45
  import type { ProductService } from './chevreConsole/product';
50
- import type { ProductModelService } from './chevreConsole/productModel';
51
46
  import type { ProjectService } from './chevreConsole/project';
52
47
  import type { ProjectMakesOfferService } from './chevreConsole/projectMakesOffer';
53
48
  import type { ReservationService } from './chevreConsole/reservation';
@@ -64,13 +59,6 @@ import type { UserPoolService } from './chevreConsole/userPool';
64
59
  import type { WebSiteService } from './chevreConsole/webSite';
65
60
  export declare namespace service {
66
61
  type IUnset = IUnsetOnService;
67
- /**
68
- * 口座サービス
69
- */
70
- type Account = AccountService;
71
- namespace Account {
72
- let svc: typeof AccountService | undefined;
73
- }
74
62
  /**
75
63
  * 経理レポートサービス
76
64
  */
@@ -99,13 +87,6 @@ export declare namespace service {
99
87
  namespace AdditionalProperty {
100
88
  let svc: typeof AdditionalPropertyService | undefined;
101
89
  }
102
- /**
103
- * 事前予約要件サービス
104
- */
105
- type AdvanceBookingRequirement = AdvanceBookingRequirementService;
106
- namespace AdvanceBookingRequirement {
107
- let svc: typeof AdvanceBookingRequirementService | undefined;
108
- }
109
90
  /**
110
91
  * 集計オファーサービス
111
92
  */
@@ -141,13 +122,6 @@ export declare namespace service {
141
122
  namespace CategoryCode {
142
123
  let svc: typeof CategoryCodeService | undefined;
143
124
  }
144
- /**
145
- * コメントサービス
146
- */
147
- type Comment = CommentService;
148
- namespace Comment {
149
- let svc: typeof CommentService | undefined;
150
- }
151
125
  /**
152
126
  * コンテンツサービス
153
127
  */
@@ -309,13 +283,6 @@ export declare namespace service {
309
283
  namespace Permission {
310
284
  let svc: typeof PermissionService | undefined;
311
285
  }
312
- /**
313
- * 許可証サービス
314
- */
315
- type Permit = PermitService;
316
- namespace Permit {
317
- let svc: typeof PermitService | undefined;
318
- }
319
286
  /**
320
287
  * 会員サービス
321
288
  */
@@ -353,13 +320,6 @@ export declare namespace service {
353
320
  namespace Product {
354
321
  let svc: typeof ProductService | undefined;
355
322
  }
356
- /**
357
- * プロダクトモデルサービス
358
- */
359
- type ProductModel = ProductModelService;
360
- namespace ProductModel {
361
- let svc: typeof ProductModelService | undefined;
362
- }
363
323
  /**
364
324
  * プロジェクトサービス
365
325
  */
@@ -521,17 +481,14 @@ export declare namespace service {
521
481
  export declare class ChevreConsole {
522
482
  options: Pick<IOptions, 'auth' | 'endpoint'>;
523
483
  constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
524
- createAccountInstance(params: Pick<IOptions, 'project'>): Promise<AccountService>;
525
484
  createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
526
485
  createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
527
486
  createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
528
487
  createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
529
- createAdvanceBookingRequirementInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdvanceBookingRequirementService>;
530
488
  createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
531
489
  createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
532
490
  createAggregationInstance(): Promise<AggregationService>;
533
491
  createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
534
- createCommentInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CommentService>;
535
492
  createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
536
493
  createCategoryCodeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CategoryCodeService>;
537
494
  createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
@@ -556,13 +513,11 @@ export declare class ChevreConsole {
556
513
  createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
557
514
  createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
558
515
  createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
559
- createPermitInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
560
516
  createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
561
517
  createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
562
518
  createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
563
519
  createPriceSpecificationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PriceSpecificationService>;
564
520
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
565
- createProductModelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductModelService>;
566
521
  createProjectInstance(): Promise<ProjectService>;
567
522
  createProjectMakesOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProjectMakesOfferService>;
568
523
  createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
@@ -36,9 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.ChevreConsole = exports.service = void 0;
37
37
  var service;
38
38
  (function (service) {
39
- let Account;
40
- (function (Account) {
41
- })(Account = service.Account || (service.Account = {}));
42
39
  let AccountingReport;
43
40
  (function (AccountingReport) {
44
41
  })(AccountingReport = service.AccountingReport || (service.AccountingReport = {}));
@@ -51,9 +48,6 @@ var service;
51
48
  let AdditionalProperty;
52
49
  (function (AdditionalProperty) {
53
50
  })(AdditionalProperty = service.AdditionalProperty || (service.AdditionalProperty = {}));
54
- let AdvanceBookingRequirement;
55
- (function (AdvanceBookingRequirement) {
56
- })(AdvanceBookingRequirement = service.AdvanceBookingRequirement || (service.AdvanceBookingRequirement = {}));
57
51
  let AggregateOffer;
58
52
  (function (AggregateOffer) {
59
53
  })(AggregateOffer = service.AggregateOffer || (service.AggregateOffer = {}));
@@ -69,9 +63,6 @@ var service;
69
63
  let CategoryCode;
70
64
  (function (CategoryCode) {
71
65
  })(CategoryCode = service.CategoryCode || (service.CategoryCode = {}));
72
- let Comment;
73
- (function (Comment) {
74
- })(Comment = service.Comment || (service.Comment = {}));
75
66
  let CreativeWork;
76
67
  (function (CreativeWork) {
77
68
  })(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
@@ -141,9 +132,6 @@ var service;
141
132
  let Permission;
142
133
  (function (Permission) {
143
134
  })(Permission = service.Permission || (service.Permission = {}));
144
- let Permit;
145
- (function (Permit) {
146
- })(Permit = service.Permit || (service.Permit = {}));
147
135
  let Person;
148
136
  (function (Person) {
149
137
  })(Person = service.Person || (service.Person = {}));
@@ -162,9 +150,6 @@ var service;
162
150
  let Product;
163
151
  (function (Product) {
164
152
  })(Product = service.Product || (service.Product = {}));
165
- let ProductModel;
166
- (function (ProductModel) {
167
- })(ProductModel = service.ProductModel || (service.ProductModel = {}));
168
153
  let Project;
169
154
  (function (Project) {
170
155
  })(Project = service.Project || (service.Project = {}));
@@ -246,12 +231,6 @@ class ChevreConsole {
246
231
  constructor(options) {
247
232
  this.options = options;
248
233
  }
249
- async createAccountInstance(params) {
250
- if (service.Account.svc === undefined) {
251
- service.Account.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/account.js')))).AccountService;
252
- }
253
- return new service.Account.svc({ ...this.options, ...params, retryableStatusCodes: [] });
254
- }
255
234
  async createAccountingReportInstance(params) {
256
235
  if (service.AccountingReport.svc === undefined) {
257
236
  service.AccountingReport.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/accountingReport.js')))).AccountingReportService;
@@ -276,13 +255,6 @@ class ChevreConsole {
276
255
  }
277
256
  return new service.AdditionalProperty.svc({ ...this.options, ...params, retryableStatusCodes: [] });
278
257
  }
279
- async createAdvanceBookingRequirementInstance(params) {
280
- if (service.AdvanceBookingRequirement.svc === undefined) {
281
- service.AdvanceBookingRequirement.svc =
282
- (await Promise.resolve().then(() => __importStar(require('./chevreConsole/advanceBookingRequirement.js')))).AdvanceBookingRequirementService;
283
- }
284
- return new service.AdvanceBookingRequirement.svc({ ...this.options, ...params, retryableStatusCodes: [] });
285
- }
286
258
  async createAggregateOfferInstance(params) {
287
259
  if (service.AggregateOffer.svc === undefined) {
288
260
  service.AggregateOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/aggregateOffer.js')))).AggregateOfferService;
@@ -307,12 +279,6 @@ class ChevreConsole {
307
279
  }
308
280
  return new service.Authorization.svc({ ...this.options, ...params, retryableStatusCodes: [] });
309
281
  }
310
- async createCommentInstance(params) {
311
- if (service.Comment.svc === undefined) {
312
- service.Comment.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/comment.js')))).CommentService;
313
- }
314
- return new service.Comment.svc({ ...this.options, ...params, retryableStatusCodes: [] });
315
- }
316
282
  async createCreativeWorkInstance(params) {
317
283
  if (service.CreativeWork.svc === undefined) {
318
284
  service.CreativeWork.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/creativeWork.js')))).CreativeWorkService;
@@ -457,12 +423,6 @@ class ChevreConsole {
457
423
  }
458
424
  return new service.Permission.svc({ ...this.options, ...params, retryableStatusCodes: [] });
459
425
  }
460
- async createPermitInstance(params) {
461
- if (service.Permit.svc === undefined) {
462
- service.Permit.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/permit.js')))).PermitService;
463
- }
464
- return new service.Permit.svc({ ...this.options, ...params, retryableStatusCodes: [] });
465
- }
466
426
  async createPersonInstance(params) {
467
427
  if (service.Person.svc === undefined) {
468
428
  service.Person.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/person.js')))).PersonService;
@@ -493,12 +453,6 @@ class ChevreConsole {
493
453
  }
494
454
  return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
495
455
  }
496
- async createProductModelInstance(params) {
497
- if (service.ProductModel.svc === undefined) {
498
- service.ProductModel.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/productModel.js')))).ProductModelService;
499
- }
500
- return new service.ProductModel.svc({ ...this.options, ...params, retryableStatusCodes: [] });
501
- }
502
456
  async createProjectInstance() {
503
457
  if (service.Project.svc === undefined) {
504
458
  service.Project.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/project.js')))).ProjectService;
@@ -40,9 +40,6 @@ export type IAuthorizeCreditCardObject = Pick<factory.action.authorize.paymentMe
40
40
  eventIdsAsOrderedItem: string[];
41
41
  };
42
42
  export type IAuthorizeMovieTicketObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeMovieTicketObject, 'issuedThrough' | 'paymentMethod' | 'movieTickets' | 'name' | 'additionalProperty' | 'ticketToken'>;
43
- export type IAuthorizePaymentCardObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizePaymentCardObject, 'amount' | 'issuedThrough' | 'paymentMethod' | 'fromLocation' | 'name' | 'additionalProperty'> & {
44
- description?: string;
45
- };
46
43
  export type IPublishPaymentUrlObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'paymentMethod' | 'method' | 'ticketToken'> & {
47
44
  /**
48
45
  * 関連注文に含まれるイベントIDリスト
@@ -1,6 +1,6 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
- import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizePaymentCardObject, IAuthorizeResult, ICheckMovieTicketResult, IFindAcceptActionResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPurpose, ITicket } from './payment/factory';
3
+ import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizeResult, ICheckMovieTicketResult, IFindAcceptActionResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPurpose, ITicket } from './payment/factory';
4
4
  /**
5
5
  * 決済サービス
6
6
  */
@@ -66,13 +66,6 @@ export declare class PaymentService extends Service {
66
66
  */
67
67
  checkedActionId: string;
68
68
  }): Promise<IAuthorizeResult>;
69
- /**
70
- * ペイメントカード決済承認
71
- */
72
- authorizePaymentCard(params: {
73
- object: IAuthorizePaymentCardObject;
74
- purpose: IPurpose;
75
- }): Promise<IAuthorizeResult>;
76
69
  /**
77
70
  * 決済ロケーション発行(非同期)
78
71
  */
@@ -144,32 +144,6 @@ class PaymentService extends service_1.Service {
144
144
  })
145
145
  .then(async (response) => response.json());
146
146
  }
147
- /**
148
- * ペイメントカード決済承認
149
- */
150
- async authorizePaymentCard(params) {
151
- const { object, purpose } = params;
152
- const { amount, issuedThrough, paymentMethod, name, additionalProperty, fromLocation, description } = object;
153
- return this.fetch({
154
- uri: `/payment/${factory_1.factory.product.ProductType.PaymentCard}/authorize`,
155
- method: 'POST',
156
- expectedStatusCodes: [http_status_1.status.CREATED],
157
- body: {
158
- object: {
159
- amount, issuedThrough, paymentMethod,
160
- ...(typeof fromLocation === 'string') ? { fromLocation } : undefined,
161
- ...(typeof name === 'string') ? { name } : undefined,
162
- ...(typeof description === 'string') ? { description } : undefined,
163
- ...(Array.isArray(additionalProperty)) ? { additionalProperty } : undefined
164
- },
165
- purpose
166
- },
167
- qs: {
168
- purpose: { id: purpose.id } // 追加(2024-04-01~)
169
- }
170
- })
171
- .then(async (response) => response.json());
172
- }
173
147
  /**
174
148
  * 決済ロケーション発行(非同期)
175
149
  */