@cinerino/sdk 18.2.0 → 18.3.0-alpha.1

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',
@@ -1,9 +1,25 @@
1
1
  import { factory } from '../../factory';
2
2
  type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent;
3
3
  type IProjection = Partial<Record<IKeyOfProjection, 0>>;
4
- export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'startFrom' | 'startThrough' | 'superEvent'> & {
4
+ export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'startFrom' | 'startThrough'> & {
5
+ superEvent?: {
6
+ /**
7
+ * 施設コンテンツID
8
+ * 最大1つ指定可能
9
+ */
10
+ ids?: string[];
11
+ /**
12
+ * 施設コード
13
+ * 最大1つ指定可能
14
+ */
15
+ locationBranchCodes?: string[];
16
+ /**
17
+ * コンテンツコード
18
+ * 最大1つ指定可能
19
+ */
20
+ workPerformedIdentifiers?: string[];
21
+ };
5
22
  typeOf: factory.eventType.ScreeningEvent;
6
- $projection?: IProjection;
7
23
  /**
8
24
  * offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
9
25
  */
@@ -26,6 +42,7 @@ export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, '
26
42
  */
27
43
  validThrough?: Date;
28
44
  };
45
+ $projection?: IProjection;
29
46
  };
30
47
  /**
31
48
  * イベントのサブカタログ検索結果
@@ -5,7 +5,6 @@ import type { EmailMessageService } from './chevre/emailMessage';
5
5
  import type { EventService } from './chevre/event';
6
6
  import type { EventOfferService } from './chevre/eventOffer';
7
7
  import type { EventSeriesService } from './chevre/eventSeries';
8
- import type { PaymentProductService } from './chevre/paymentService';
9
8
  import type { PlaceService } from './chevre/place';
10
9
  import type { ProductService } from './chevre/product';
11
10
  import type { SeatOfferService } from './chevre/seatOffer';
@@ -54,13 +53,6 @@ export declare namespace service {
54
53
  namespace EventSeries {
55
54
  let svc: typeof EventSeriesService | undefined;
56
55
  }
57
- /**
58
- * 決済商品サービス
59
- */
60
- type PaymentProduct = PaymentProductService;
61
- namespace PaymentProduct {
62
- let svc: typeof PaymentProductService | undefined;
63
- }
64
56
  /**
65
57
  * 施設サービス
66
58
  */
@@ -102,7 +94,6 @@ export declare class Chevre {
102
94
  createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
103
95
  createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
104
96
  createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
105
- createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
106
97
  createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
107
98
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
108
99
  createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
@@ -54,9 +54,6 @@ var service;
54
54
  let EventSeries;
55
55
  (function (EventSeries) {
56
56
  })(EventSeries = service.EventSeries || (service.EventSeries = {}));
57
- let PaymentProduct;
58
- (function (PaymentProduct) {
59
- })(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
60
57
  let Place;
61
58
  (function (Place) {
62
59
  })(Place = service.Place || (service.Place = {}));
@@ -114,12 +111,6 @@ class Chevre {
114
111
  }
115
112
  return new service.EventSeries.svc({ ...this.options, ...params, retryableStatusCodes: [] });
116
113
  }
117
- async createPaymentProductInstance(params) {
118
- if (service.PaymentProduct.svc === undefined) {
119
- service.PaymentProduct.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/paymentService.js')))).PaymentProductService;
120
- }
121
- return new service.PaymentProduct.svc({ ...this.options, ...params, retryableStatusCodes: [] });
122
- }
123
114
  async createPlaceInstance(params) {
124
115
  if (service.Place.svc === undefined) {
125
116
  service.Place.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/place.js')))).PlaceService;
@@ -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,25 +31,7 @@ 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' | '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[]>;
34
+ findEvents(params: Pick<IFindParams, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'offers' | 'startFrom' | 'startThrough' | 'superEvent' | 'sellerMakesOfferAvailableAtIn' | 'typeOf' | '$projection'>): Promise<IEventAsFindResult[]>;
53
35
  /**
54
36
  * イベントの予約集計検索
55
37
  * @deprecated ttts専用