@cinerino/sdk 16.4.0-alpha.11 → 16.4.0-alpha.13

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.
@@ -8,8 +8,8 @@ export declare class ActionService extends Service {
8
8
  /**
9
9
  * アクション検索
10
10
  */
11
- search<T extends factory.actionType>(params: Omit<factory.action.ISearchConditions, 'typeOf'> & {
12
- typeOf?: factory.actionType;
11
+ findActions<T extends factory.actionType>(params: Omit<factory.action.ISearchConditions, 'typeOf'> & {
12
+ typeOf?: Exclude<factory.actionType, factory.actionType.AddAction | factory.actionType.ReplaceAction | factory.actionType.UpdateAction | factory.actionType.DeleteAction | factory.actionType.InformAction | factory.actionType.UseAction>;
13
13
  }): Promise<ISearchResult<IAction<T>[]>>;
14
14
  findById<T extends factory.actionType>(params: {
15
15
  id: string;
@@ -10,7 +10,7 @@ class ActionService extends service_1.Service {
10
10
  /**
11
11
  * アクション検索
12
12
  */
13
- async search(params) {
13
+ async findActions(params) {
14
14
  return this.fetch({
15
15
  uri: '/actions',
16
16
  method: 'GET',
@@ -0,0 +1,18 @@
1
+ import { factory } from '../factory';
2
+ import { Service } from '../service';
3
+ type IAction = factory.action.interact.inform.IAction;
4
+ type IFindParams = Pick<factory.action.ISearchConditions, 'sort' | 'startFrom' | 'startThrough'> & {
5
+ id?: string;
6
+ /**
7
+ * max: 20
8
+ */
9
+ limit: number;
10
+ page: number;
11
+ };
12
+ /**
13
+ * 通知アクションサービス
14
+ */
15
+ export declare class InformActionService extends Service {
16
+ findInformActions(params: IFindParams): Promise<IAction[]>;
17
+ }
18
+ export {};
@@ -1,18 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OwnershipInfoService = void 0;
3
+ exports.InformActionService = void 0;
4
4
  const http_status_1 = require("http-status");
5
5
  const service_1 = require("../service");
6
6
  /**
7
- * 所有権サービス
7
+ * 通知アクションサービス
8
8
  */
9
- class OwnershipInfoService extends service_1.Service {
10
- /**
11
- * 所有権検索
12
- */
13
- async findOwnershipInfos(params) {
9
+ class InformActionService extends service_1.Service {
10
+ async findInformActions(params) {
14
11
  return this.fetch({
15
- uri: '/ownershipInfos',
12
+ uri: '/informActions',
16
13
  method: 'GET',
17
14
  qs: params,
18
15
  expectedStatusCodes: [http_status_1.status.OK]
@@ -20,4 +17,4 @@ class OwnershipInfoService extends service_1.Service {
20
17
  .then(async (response) => response.json());
21
18
  }
22
19
  }
23
- exports.OwnershipInfoService = OwnershipInfoService;
20
+ exports.InformActionService = InformActionService;
@@ -0,0 +1,17 @@
1
+ import { factory } from '../factory';
2
+ import { Service } from '../service';
3
+ type IAction = factory.action.update.add.IAction | factory.action.update.replace.IAction | factory.action.update.update.IAction | factory.action.update.deleteAction.IAction;
4
+ type IFindParams = Pick<factory.action.update.update.IFindParams, 'sort' | 'startFrom' | 'startThrough' | 'id' | 'limit' | 'object' | 'page' | 'result' | 'typeOf'> & {
5
+ /**
6
+ * max: 20
7
+ */
8
+ limit: number;
9
+ page: number;
10
+ };
11
+ /**
12
+ * 編集アクションサービス
13
+ */
14
+ export declare class UpdateActionService extends Service {
15
+ findUpdateActions(params: IFindParams): Promise<IAction[]>;
16
+ }
17
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateActionService = void 0;
4
+ const http_status_1 = require("http-status");
5
+ const service_1 = require("../service");
6
+ /**
7
+ * 編集アクションサービス
8
+ */
9
+ class UpdateActionService extends service_1.Service {
10
+ async findUpdateActions(params) {
11
+ return this.fetch({
12
+ uri: '/updateActions',
13
+ method: 'GET',
14
+ qs: params,
15
+ expectedStatusCodes: [http_status_1.status.OK]
16
+ })
17
+ .then(async (response) => response.json());
18
+ }
19
+ }
20
+ exports.UpdateActionService = UpdateActionService;
@@ -0,0 +1,17 @@
1
+ import { factory } from '../factory';
2
+ import { Service } from '../service';
3
+ type IAction = factory.action.consume.use.reservation.IAction;
4
+ type IFindParams = Pick<factory.action.consume.use.reservation.IFindParams, 'sort' | 'startFrom' | 'startThrough' | 'actionStatus' | 'id' | 'limit' | 'object' | 'page'> & {
5
+ /**
6
+ * max: 20
7
+ */
8
+ limit: number;
9
+ page: number;
10
+ };
11
+ /**
12
+ * 予約使用アクションサービス
13
+ */
14
+ export declare class UseActionService extends Service {
15
+ findUseActions(params: IFindParams): Promise<IAction[]>;
16
+ }
17
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UseActionService = void 0;
4
+ const http_status_1 = require("http-status");
5
+ const service_1 = require("../service");
6
+ /**
7
+ * 予約使用アクションサービス
8
+ */
9
+ class UseActionService extends service_1.Service {
10
+ async findUseActions(params) {
11
+ return this.fetch({
12
+ uri: '/useActions',
13
+ method: 'GET',
14
+ qs: params,
15
+ expectedStatusCodes: [http_status_1.status.OK]
16
+ })
17
+ .then(async (response) => response.json());
18
+ }
19
+ }
20
+ exports.UseActionService = UseActionService;
@@ -2,6 +2,9 @@ import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './servi
2
2
  import type { AccountingReportService } from './chevreConsole/accountingReport';
3
3
  import type { AccountTitleService } from './chevreConsole/accountTitle';
4
4
  import type { ActionService } from './chevreConsole/action';
5
+ import type { InformActionService } from './chevreConsole/informAction';
6
+ import type { UpdateActionService } from './chevreConsole/updateAction';
7
+ import { UseActionService } from './chevreConsole/useAction';
5
8
  import type { AdditionalPropertyService } from './chevreConsole/additionalProperty';
6
9
  import type { AggregateOfferService } from './chevreConsole/aggregateOffer';
7
10
  import type { AggregateReservationService } from './chevreConsole/aggregateReservation';
@@ -32,7 +35,6 @@ import type { OfferCatalogService } from './chevreConsole/offerCatalog';
32
35
  import type { OfferCatalogItemService } from './chevreConsole/offerCatalogItem';
33
36
  import type { OfferItemConditionService } from './chevreConsole/offerItemCondition';
34
37
  import type { OrderService } from './chevreConsole/order';
35
- import type { OwnershipInfoService } from './chevreConsole/ownershipInfo';
36
38
  import type { PaymentProductService } from './chevreConsole/paymentService';
37
39
  import type { PaymentServiceChannelService } from './chevreConsole/paymentServiceChannel';
38
40
  import type { PendingReservationService } from './chevreConsole/pendingReservation';
@@ -81,6 +83,21 @@ export declare namespace service {
81
83
  namespace Action {
82
84
  let svc: typeof ActionService | undefined;
83
85
  }
86
+ /**
87
+ * 編集アクションサービス
88
+ */
89
+ type UpdateAction = UpdateActionService;
90
+ namespace UpdateAction {
91
+ let svc: typeof UpdateActionService | undefined;
92
+ }
93
+ type InformAction = InformActionService;
94
+ namespace InformAction {
95
+ let svc: typeof InformActionService | undefined;
96
+ }
97
+ type UseAction = UseActionService;
98
+ namespace UseAction {
99
+ let svc: typeof UseActionService | undefined;
100
+ }
84
101
  /**
85
102
  * 追加特性サービス
86
103
  */
@@ -249,13 +266,6 @@ export declare namespace service {
249
266
  namespace Order {
250
267
  let svc: typeof OrderService | undefined;
251
268
  }
252
- /**
253
- * 所有権サービス
254
- */
255
- type OwnershipInfo = OwnershipInfoService;
256
- namespace OwnershipInfo {
257
- let svc: typeof OwnershipInfoService | undefined;
258
- }
259
269
  /**
260
270
  * 決済サービス
261
271
  */
@@ -492,6 +502,9 @@ export declare class ChevreConsole {
492
502
  createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
493
503
  createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
494
504
  createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
505
+ createUpdateActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<UpdateActionService>;
506
+ createInformActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<InformActionService>;
507
+ createUseActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<UseActionService>;
495
508
  createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
496
509
  createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
497
510
  createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
@@ -516,7 +529,6 @@ export declare class ChevreConsole {
516
529
  createMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MessageService>;
517
530
  createMovieTicketTypeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieTicketTypeService>;
518
531
  createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
519
- createOwnershipInfoInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OwnershipInfoService>;
520
532
  createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
521
533
  createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
522
534
  createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
@@ -45,6 +45,15 @@ var service;
45
45
  let Action;
46
46
  (function (Action) {
47
47
  })(Action = service.Action || (service.Action = {}));
48
+ let UpdateAction;
49
+ (function (UpdateAction) {
50
+ })(UpdateAction = service.UpdateAction || (service.UpdateAction = {}));
51
+ let InformAction;
52
+ (function (InformAction) {
53
+ })(InformAction = service.InformAction || (service.InformAction = {}));
54
+ let UseAction;
55
+ (function (UseAction) {
56
+ })(UseAction = service.UseAction || (service.UseAction = {}));
48
57
  let AdditionalProperty;
49
58
  (function (AdditionalProperty) {
50
59
  })(AdditionalProperty = service.AdditionalProperty || (service.AdditionalProperty = {}));
@@ -117,9 +126,6 @@ var service;
117
126
  let Order;
118
127
  (function (Order) {
119
128
  })(Order = service.Order || (service.Order = {}));
120
- let OwnershipInfo;
121
- (function (OwnershipInfo) {
122
- })(OwnershipInfo = service.OwnershipInfo || (service.OwnershipInfo = {}));
123
129
  let PaymentProduct;
124
130
  (function (PaymentProduct) {
125
131
  })(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
@@ -252,6 +258,24 @@ class ChevreConsole {
252
258
  }
253
259
  return new service.Action.svc({ ...this.options, ...params, retryableStatusCodes: [] });
254
260
  }
261
+ async createUpdateActionInstance(params) {
262
+ if (service.UpdateAction.svc === undefined) {
263
+ service.UpdateAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/updateAction.js')))).UpdateActionService;
264
+ }
265
+ return new service.UpdateAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
266
+ }
267
+ async createInformActionInstance(params) {
268
+ if (service.InformAction.svc === undefined) {
269
+ service.InformAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/informAction.js')))).InformActionService;
270
+ }
271
+ return new service.InformAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
272
+ }
273
+ async createUseActionInstance(params) {
274
+ if (service.UseAction.svc === undefined) {
275
+ service.UseAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/useAction.js')))).UseActionService;
276
+ }
277
+ return new service.UseAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
278
+ }
255
279
  async createAdditionalPropertyInstance(params) {
256
280
  if (service.AdditionalProperty.svc === undefined) {
257
281
  service.AdditionalProperty.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/additionalProperty.js')))).AdditionalPropertyService;
@@ -396,12 +420,6 @@ class ChevreConsole {
396
420
  }
397
421
  return new service.Order.svc({ ...this.options, ...params, retryableStatusCodes: [] });
398
422
  }
399
- async createOwnershipInfoInstance(params) {
400
- if (service.OwnershipInfo.svc === undefined) {
401
- service.OwnershipInfo.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/ownershipInfo.js')))).OwnershipInfoService;
402
- }
403
- return new service.OwnershipInfo.svc({ ...this.options, ...params, retryableStatusCodes: [] });
404
- }
405
423
  async createPaymentProductInstance(params) {
406
424
  if (service.PaymentProduct.svc === undefined) {
407
425
  service.PaymentProduct.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/paymentService.js')))).PaymentProductService;