@cinerino/sdk 18.1.0 → 18.3.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.
@@ -20,5 +20,5 @@ export declare class EmailMessageService extends Service {
20
20
  /**
21
21
  * 検索
22
22
  */
23
- search(params: ISearchConditions): Promise<ISearchResult<IEmailMessage[]>>;
23
+ searchDeprecated(params: ISearchConditions): Promise<ISearchResult<IEmailMessage[]>>;
24
24
  }
@@ -10,7 +10,7 @@ class EmailMessageService extends service_1.Service {
10
10
  /**
11
11
  * 検索
12
12
  */
13
- async search(params) {
13
+ async searchDeprecated(params) {
14
14
  return this.fetch({
15
15
  uri: '/emailMessages',
16
16
  method: 'GET',
@@ -0,0 +1,13 @@
1
+ import { factory } from '../factory';
2
+ import { Service } from '../service';
3
+ type IEmailMessage = Pick<factory.creativeWork.message.email.ICreativeWork, 'about' | 'id' | 'identifier' | 'name' | 'sender' | 'text'>;
4
+ /**
5
+ * Eメールメッセージサービス
6
+ */
7
+ export declare class EmailMessageService extends Service {
8
+ /**
9
+ * Eメールメッセージ検索
10
+ */
11
+ findEmailMessages(): Promise<IEmailMessage[]>;
12
+ }
13
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmailMessageService = void 0;
4
+ const http_status_1 = require("http-status");
5
+ const service_1 = require("../service");
6
+ /**
7
+ * Eメールメッセージサービス
8
+ */
9
+ class EmailMessageService extends service_1.Service {
10
+ /**
11
+ * Eメールメッセージ検索
12
+ */
13
+ async findEmailMessages() {
14
+ return this.fetch({
15
+ uri: '/emailMessages',
16
+ method: 'GET',
17
+ // qs: params,
18
+ expectedStatusCodes: [http_status_1.status.OK]
19
+ })
20
+ .then(async (response) => response.json());
21
+ }
22
+ }
23
+ exports.EmailMessageService = EmailMessageService;
@@ -1,6 +1,7 @@
1
1
  import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
2
2
  import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
3
3
  import type { CustomerService } from './chevreAdmin/customer';
4
+ import type { EmailMessageService } from './chevreAdmin/emailMessage';
4
5
  import type { EventService } from './chevreAdmin/event';
5
6
  import type { EventOfferService } from './chevreAdmin/eventOffer';
6
7
  import type { EventSeriesService } from './chevreAdmin/eventSeries';
@@ -30,6 +31,13 @@ export declare namespace service {
30
31
  namespace Customer {
31
32
  let svc: typeof CustomerService | undefined;
32
33
  }
34
+ /**
35
+ * Eメールメッセージサービス
36
+ */
37
+ type EmailMessage = EmailMessageService;
38
+ namespace EmailMessage {
39
+ let svc: typeof EmailMessageService | undefined;
40
+ }
33
41
  /**
34
42
  * イベントサービス
35
43
  */
@@ -187,6 +195,7 @@ export declare class ChevreAdmin {
187
195
  options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
188
196
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
189
197
  createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
198
+ createEmailMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EmailMessageService>;
190
199
  createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
191
200
  createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
192
201
  createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
@@ -39,6 +39,9 @@ var service;
39
39
  let Customer;
40
40
  (function (Customer) {
41
41
  })(Customer = service.Customer || (service.Customer = {}));
42
+ let EmailMessage;
43
+ (function (EmailMessage) {
44
+ })(EmailMessage = service.EmailMessage || (service.EmailMessage = {}));
42
45
  let Event;
43
46
  (function (Event) {
44
47
  })(Event = service.Event || (service.Event = {}));
@@ -120,6 +123,12 @@ class ChevreAdmin {
120
123
  }
121
124
  return new service.Customer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
122
125
  }
126
+ async createEmailMessageInstance(params) {
127
+ if (service.EmailMessage.svc === undefined) {
128
+ service.EmailMessage.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/emailMessage.js')))).EmailMessageService;
129
+ }
130
+ return new service.EmailMessage.svc({ ...this.options, ...params, retryableStatusCodes: [] });
131
+ }
123
132
  async createEventInstance(params) {
124
133
  if (service.Event.svc === undefined) {
125
134
  service.Event.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/event.js')))).EventService;
@@ -31,7 +31,25 @@ export declare class EventService extends Service {
31
31
  /**
32
32
  * イベント(公開属性)検索
33
33
  */
34
- findEvents(params: Pick<IFindParams, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'offers' | 'startFrom' | 'startThrough' | 'superEvent' | '$projection' | 'sellerMakesOfferAvailableAtIn' | 'typeOf'>): Promise<IEventAsFindResult[]>;
34
+ findEvents(params: Pick<IFindParams, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'offers' | 'startFrom' | 'startThrough' | '$projection' | 'sellerMakesOfferAvailableAtIn' | 'typeOf'> & {
35
+ superEvent?: {
36
+ /**
37
+ * 施設コンテンツID
38
+ * 最大1つ指定可能
39
+ */
40
+ ids?: string[];
41
+ /**
42
+ * 施設コード
43
+ * 最大1つ指定可能
44
+ */
45
+ locationBranchCodes?: string[];
46
+ /**
47
+ * コンテンツコード
48
+ * 最大1つ指定可能
49
+ */
50
+ workPerformedIdentifiers?: string[];
51
+ };
52
+ }): Promise<IEventAsFindResult[]>;
35
53
  /**
36
54
  * イベントの予約集計検索
37
55
  * @deprecated ttts専用
@@ -3,7 +3,6 @@ import type { CreativeWorkService } from './search/creativeWork';
3
3
  import type { EventService } from './search/event';
4
4
  import type { EventOfferService } from './search/eventOffer';
5
5
  import type { EventSeriesService } from './search/eventSeries';
6
- import type { PaymentProductService } from './search/paymentService';
7
6
  import type { PlaceService } from './search/place';
8
7
  import type { ProductService } from './search/product';
9
8
  import type { SeatOfferService } from './search/seatOffer';
@@ -39,13 +38,6 @@ export declare namespace service {
39
38
  namespace EventOffer {
40
39
  let svc: typeof EventOfferService | undefined;
41
40
  }
42
- /**
43
- * 決済商品サービス
44
- */
45
- type PaymentProduct = PaymentProductService;
46
- namespace PaymentProduct {
47
- let svc: typeof PaymentProductService | undefined;
48
- }
49
41
  /**
50
42
  * 施設サービス
51
43
  */
@@ -78,10 +70,6 @@ export declare class CloudSearch {
78
70
  * コンテンツサービスインスタンス生成
79
71
  */
80
72
  createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
81
- /**
82
- * 決済商品サービスインスタンス生成
83
- */
84
- createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
85
73
  /**
86
74
  * プロダクトサービスインスタンス生成
87
75
  */
@@ -52,9 +52,6 @@ var service;
52
52
  let EventOffer;
53
53
  (function (EventOffer) {
54
54
  })(EventOffer = service.EventOffer || (service.EventOffer = {}));
55
- let PaymentProduct;
56
- (function (PaymentProduct) {
57
- })(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
58
55
  let Place;
59
56
  (function (Place) {
60
57
  })(Place = service.Place || (service.Place = {}));
@@ -86,18 +83,6 @@ class CloudSearch {
86
83
  retryableStatusCodes: defaultRetryableStatusCodes
87
84
  });
88
85
  }
89
- /**
90
- * 決済商品サービスインスタンス生成
91
- */
92
- async createPaymentProductInstance(params) {
93
- if (service.PaymentProduct.svc === undefined) {
94
- service.PaymentProduct.svc = (await Promise.resolve().then(() => __importStar(require('./search/paymentService.js')))).PaymentProductService;
95
- }
96
- return new service.PaymentProduct.svc({
97
- ...this.options, ...params,
98
- retryableStatusCodes: defaultRetryableStatusCodes
99
- });
100
- }
101
86
  /**
102
87
  * プロダクトサービスインスタンス生成
103
88
  */