@cinerino/sdk 16.4.0-alpha.12 → 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 {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InformActionService = void 0;
4
+ const http_status_1 = require("http-status");
5
+ const service_1 = require("../service");
6
+ /**
7
+ * 通知アクションサービス
8
+ */
9
+ class InformActionService extends service_1.Service {
10
+ async findInformActions(params) {
11
+ return this.fetch({
12
+ uri: '/informActions',
13
+ method: 'GET',
14
+ qs: params,
15
+ expectedStatusCodes: [http_status_1.status.OK]
16
+ })
17
+ .then(async (response) => response.json());
18
+ }
19
+ }
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';
@@ -80,6 +83,21 @@ export declare namespace service {
80
83
  namespace Action {
81
84
  let svc: typeof ActionService | undefined;
82
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
+ }
83
101
  /**
84
102
  * 追加特性サービス
85
103
  */
@@ -484,6 +502,9 @@ export declare class ChevreConsole {
484
502
  createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
485
503
  createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
486
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>;
487
508
  createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
488
509
  createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
489
510
  createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
@@ -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 = {}));
@@ -249,6 +258,24 @@ class ChevreConsole {
249
258
  }
250
259
  return new service.Action.svc({ ...this.options, ...params, retryableStatusCodes: [] });
251
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
+ }
252
279
  async createAdditionalPropertyInstance(params) {
253
280
  if (service.AdditionalProperty.svc === undefined) {
254
281
  service.AdditionalProperty.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/additionalProperty.js')))).AdditionalPropertyService;