@cinerino/sdk 12.5.0-alpha.0 → 12.5.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.
- package/example/src/chevre/admin/adminCreateNotesIfNotExistByIdentifier.ts +1 -1
- package/example/src/chevre/admin/findProducts.ts +48 -0
- package/example/src/chevre/default/findPublicNotes.ts +39 -0
- package/example/src/chevre/default/searchEvents.ts +1 -1
- package/example/src/cloud/admin/adminProductOffersByIdentifier.ts +4 -3
- package/example/src/cloud/transaction/processPlaceOrder4ttts.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderByCreditCard3DS.ts +10 -6
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByCreditCard.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByMovieTicket.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderUsingMemberProgramTier.ts +1 -1
- package/lib/abstract/chevre/event.d.ts +11 -11
- package/lib/abstract/chevre/event.js +0 -1
- package/lib/abstract/chevre/eventSeries.d.ts +3 -3
- package/lib/abstract/chevre/note.d.ts +32 -0
- package/lib/abstract/chevre/note.js +87 -0
- package/lib/abstract/chevre/seller/factory.d.ts +0 -3
- package/lib/abstract/chevre/seller/factory.js +6 -0
- package/lib/abstract/chevre.d.ts +9 -0
- package/lib/abstract/chevre.js +20 -0
- package/lib/abstract/chevreAdmin/event.d.ts +5 -5
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
- package/lib/abstract/chevreAdmin/note.d.ts +4 -4
- package/lib/abstract/chevreAdmin/note.js +0 -17
- package/lib/abstract/chevreAdmin/product.d.ts +54 -2
- package/lib/abstract/chevreAdmin/product.js +25 -1
- package/lib/abstract/chevreAsset/order/factory.d.ts +4 -0
- package/lib/abstract/chevreConsole/aggregateReservation.d.ts +2 -2
- package/lib/abstract/chevreConsole/event/factory.d.ts +2 -2
- package/lib/abstract/chevreConsole/event.d.ts +14 -29
- package/lib/abstract/chevreConsole/event.js +0 -53
- package/lib/abstract/chevreConsole/eventSeries.d.ts +6 -6
- package/lib/abstract/chevreConsole/product.d.ts +23 -11
- package/lib/abstract/chevreConsole/product.js +13 -19
- package/lib/abstract/chevreConsole/seller/factory.d.ts +0 -3
- package/lib/abstract/chevreConsole/seller/factory.js +6 -0
- package/lib/abstract/chevreConsole/seller.d.ts +1 -39
- package/lib/abstract/chevreConsole/seller.js +64 -79
- package/lib/abstract/cinerino/service/event.d.ts +21 -24
- package/lib/abstract/cinerino/service/event.js +2 -2
- package/lib/abstract/cloud/admin/event.d.ts +2 -2
- package/lib/bundle.js +1010 -796
- package/package.json +2 -2
|
@@ -315,85 +315,70 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
383
|
-
return __generator(this, function (_b) {
|
|
384
|
-
switch (_b.label) {
|
|
385
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
386
|
-
uri: "/sellers/" + ((_a = params.seller) === null || _a === void 0 ? void 0 : _a.id) + "/makesProductOffer/" + params.itemOffered.id,
|
|
387
|
-
method: 'DELETE',
|
|
388
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
389
|
-
})];
|
|
390
|
-
case 1:
|
|
391
|
-
_b.sent();
|
|
392
|
-
return [2 /*return*/];
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
};
|
|
318
|
+
// public async searchMakesProductOffer(params: {
|
|
319
|
+
// seller: {
|
|
320
|
+
// /**
|
|
321
|
+
// * 販売者ID
|
|
322
|
+
// */
|
|
323
|
+
// id: string;
|
|
324
|
+
// };
|
|
325
|
+
// /**
|
|
326
|
+
// * 検索条件
|
|
327
|
+
// */
|
|
328
|
+
// qs: {
|
|
329
|
+
// limit?: number;
|
|
330
|
+
// page?: number;
|
|
331
|
+
// itemOffered?: { id?: { $eq?: string } };
|
|
332
|
+
// };
|
|
333
|
+
// }): Promise<ISearchResult<IMakesProductOffer[]>> {
|
|
334
|
+
// return this.fetch({
|
|
335
|
+
// uri: `/sellers/${params.seller?.id}/makesProductOffer`,
|
|
336
|
+
// method: 'GET',
|
|
337
|
+
// qs: params.qs,
|
|
338
|
+
// expectedStatusCodes: [OK]
|
|
339
|
+
// })
|
|
340
|
+
// .then(async (response) => {
|
|
341
|
+
// return {
|
|
342
|
+
// data: await response.json()
|
|
343
|
+
// };
|
|
344
|
+
// });
|
|
345
|
+
// }
|
|
346
|
+
// public async createMakesProductOffer(params: Pick<
|
|
347
|
+
// factory.product.IOffer,
|
|
348
|
+
// 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'
|
|
349
|
+
// > & {
|
|
350
|
+
// itemOffered: { id: string };
|
|
351
|
+
// }): Promise<void> {
|
|
352
|
+
// await this.fetch({
|
|
353
|
+
// uri: `/sellers/${String(params.seller?.id)}/makesProductOffer`,
|
|
354
|
+
// method: 'POST',
|
|
355
|
+
// body: params,
|
|
356
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
357
|
+
// });
|
|
358
|
+
// }
|
|
359
|
+
// public async updateMakesProductOffer(params: Pick<
|
|
360
|
+
// factory.product.IOffer,
|
|
361
|
+
// 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'
|
|
362
|
+
// > & {
|
|
363
|
+
// itemOffered: { id: string };
|
|
364
|
+
// }): Promise<void> {
|
|
365
|
+
// await this.fetch({
|
|
366
|
+
// uri: `/sellers/${String(params.seller?.id)}/makesProductOffer/${params.itemOffered.id}`,
|
|
367
|
+
// method: 'PUT',
|
|
368
|
+
// body: params,
|
|
369
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
370
|
+
// });
|
|
371
|
+
// }
|
|
372
|
+
// public async deleteMakesProductOffer(params: {
|
|
373
|
+
// itemOffered: { id: string };
|
|
374
|
+
// seller: { id: string };
|
|
375
|
+
// }): Promise<void> {
|
|
376
|
+
// await this.fetch({
|
|
377
|
+
// uri: `/sellers/${params.seller?.id}/makesProductOffer/${params.itemOffered.id}`,
|
|
378
|
+
// method: 'DELETE',
|
|
379
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
380
|
+
// });
|
|
381
|
+
// }
|
|
397
382
|
/**
|
|
398
383
|
* IAMメンバー作成
|
|
399
384
|
*/
|
|
@@ -2,12 +2,12 @@ import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResul
|
|
|
2
2
|
import type { ISearchWithReservationForIdResult } from '../../chevreConsole/aggregateReservation';
|
|
3
3
|
import * as factory from '../../factory';
|
|
4
4
|
import { IAdditionalOptions, IOptions, ISearchResult, Service } from '../../service';
|
|
5
|
-
declare type IKeyOfProjection
|
|
6
|
-
declare type IProjection
|
|
7
|
-
[key in IKeyOfProjection
|
|
5
|
+
declare type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent;
|
|
6
|
+
declare type IProjection = {
|
|
7
|
+
[key in IKeyOfProjection]?: 0;
|
|
8
8
|
};
|
|
9
9
|
declare type ISellerMakesOffer = Omit<factory.event.screeningEvent.ISellerMakesOffer, 'availableAtOrFrom'> & {
|
|
10
|
-
availableAtOrFrom?: factory.event.
|
|
10
|
+
availableAtOrFrom?: factory.event.screeningEvent.IOfferAvailableAtOrFrom | factory.event.screeningEvent.IOfferAvailableAtOrFrom[];
|
|
11
11
|
};
|
|
12
12
|
declare type ISeller = Omit<factory.event.screeningEvent.ISeller, 'makesOffer'> & {
|
|
13
13
|
makesOffer: ISellerMakesOffer[];
|
|
@@ -15,21 +15,16 @@ declare type ISeller = Omit<factory.event.screeningEvent.ISeller, 'makesOffer'>
|
|
|
15
15
|
declare type ISeller4COA = Omit<factory.event.screeningEvent.ISeller4COA, 'makesOffer'> & {
|
|
16
16
|
makesOffer: ISellerMakesOffer[];
|
|
17
17
|
};
|
|
18
|
-
declare type IEventOffer = Omit<factory.event.event.IOffer, 'seller'> & {
|
|
19
|
-
seller: ISeller;
|
|
20
|
-
};
|
|
21
18
|
declare type IScreeningEventOffer = Omit<factory.event.screeningEvent.IOffer, 'seller'> & {
|
|
22
19
|
seller: ISeller;
|
|
23
20
|
};
|
|
24
21
|
declare type IScreeningEventOffer4COA = Omit<factory.event.screeningEvent.IOffer4COA, 'seller'> & {
|
|
25
22
|
seller: ISeller4COA;
|
|
26
23
|
};
|
|
27
|
-
export declare type IEvent
|
|
28
|
-
offers?: IEventOffer;
|
|
29
|
-
} : T extends factory.eventType.ScreeningEvent ? Omit<factory.event.IEvent<T>, 'offers'> & {
|
|
24
|
+
export declare type IEvent = Omit<factory.event.screeningEvent.IEvent, 'offers'> & {
|
|
30
25
|
offers?: IScreeningEventOffer | IScreeningEventOffer4COA;
|
|
31
|
-
}
|
|
32
|
-
export declare type IMinimizedEvent
|
|
26
|
+
};
|
|
27
|
+
export declare type IMinimizedEvent = Pick<factory.event.screeningEvent.IEvent, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'id' | 'location' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'startDate' | 'superEvent'>;
|
|
33
28
|
/**
|
|
34
29
|
* COA券種オファーインターフェース
|
|
35
30
|
*/
|
|
@@ -123,32 +118,34 @@ export declare class EventService extends Service {
|
|
|
123
118
|
/**
|
|
124
119
|
* イベント検索
|
|
125
120
|
*/
|
|
126
|
-
search
|
|
127
|
-
typeOf:
|
|
128
|
-
$projection?: IProjection
|
|
121
|
+
search(params: Omit<factory.event.screeningEvent.ISearchConditions, 'project' | 'organizer' | 'typeOfIn'> & {
|
|
122
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
123
|
+
$projection?: IProjection;
|
|
129
124
|
/**
|
|
130
125
|
* offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
|
|
131
126
|
*/
|
|
132
127
|
sellerMakesOfferAvailableAtIn?: string[];
|
|
133
|
-
}): Promise<ISearchResult<IEvent
|
|
128
|
+
}): Promise<ISearchResult<IEvent[]>>;
|
|
134
129
|
/**
|
|
135
130
|
* 施設コンテンツ検索
|
|
136
131
|
*/
|
|
137
|
-
searchEventSeries(params: Omit<factory.
|
|
132
|
+
searchEventSeries(params: Omit<factory.eventSeries.ISearchConditions, 'project' | 'organizer' | 'typeOfIn'> & {
|
|
138
133
|
typeOf: factory.eventType.ScreeningEventSeries;
|
|
139
|
-
$projection?:
|
|
140
|
-
|
|
134
|
+
$projection?: {
|
|
135
|
+
[key in keyof factory.eventSeries.IEvent]?: 0;
|
|
136
|
+
};
|
|
137
|
+
}): Promise<factory.eventSeries.IEvent[]>;
|
|
141
138
|
/**
|
|
142
139
|
* イベント検索(最小限の属性)
|
|
143
140
|
*/
|
|
144
|
-
projectMinimumFields
|
|
145
|
-
typeOf:
|
|
141
|
+
projectMinimumFields(params: Omit<factory.event.screeningEvent.ISearchConditions, 'project' | 'organizer' | 'typeOfIn'> & {
|
|
142
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
146
143
|
$projection?: never;
|
|
147
|
-
}): Promise<IMinimizedEvent
|
|
144
|
+
}): Promise<IMinimizedEvent[]>;
|
|
148
145
|
/**
|
|
149
146
|
* イベント集計検索
|
|
150
147
|
*/
|
|
151
|
-
searchAggregations(params: Pick<factory.event.ISearchConditions
|
|
148
|
+
searchAggregations(params: Pick<factory.event.screeningEvent.ISearchConditions, 'page' | 'limit' | 'sort' | 'typeOf' | 'id' | 'startFrom' | 'startThrough'> & {
|
|
152
149
|
$projection?: {
|
|
153
150
|
aggregateEntranceGate?: 1;
|
|
154
151
|
aggregateOffer?: 1;
|
|
@@ -192,7 +189,7 @@ export declare class EventService extends Service {
|
|
|
192
189
|
* 興行イベント
|
|
193
190
|
*/
|
|
194
191
|
typeOf: factory.eventType.ScreeningEvent;
|
|
195
|
-
}): Promise<IEvent
|
|
192
|
+
}): Promise<IEvent>;
|
|
196
193
|
/**
|
|
197
194
|
* イベントに対する座席検索
|
|
198
195
|
*/
|
|
@@ -93,8 +93,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return __generator(this, function (_a) {
|
|
95
95
|
// separate ScreeningEventSeries(2024-10-21~)
|
|
96
|
-
if ((params === null || params === void 0 ? void 0 : params.typeOf)
|
|
97
|
-
throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.
|
|
96
|
+
if ((params === null || params === void 0 ? void 0 : params.typeOf) !== factory.eventType.ScreeningEvent) {
|
|
97
|
+
throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.ScreeningEvent);
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
return [2 /*return*/, this.fetch({
|
|
@@ -4,7 +4,7 @@ import { ICreateParamsByIdentifier, IUpdateParamsByIdentifier } from '../../chev
|
|
|
4
4
|
declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send.message.email.IAttributes, 'purpose' | 'recipient'> & {
|
|
5
5
|
object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
|
|
6
6
|
};
|
|
7
|
-
declare type ICreateScreeningEventParams = Omit<factory.event.ICreateParams
|
|
7
|
+
declare type ICreateScreeningEventParams = Omit<factory.event.screeningEvent.ICreateParams, 'location' | 'superEvent'> & {
|
|
8
8
|
typeOf?: never;
|
|
9
9
|
project?: never;
|
|
10
10
|
/**
|
|
@@ -85,6 +85,6 @@ export declare class EventService extends Service {
|
|
|
85
85
|
/**
|
|
86
86
|
* 最大長:20
|
|
87
87
|
*/
|
|
88
|
-
params: factory.
|
|
88
|
+
params: factory.eventSeries.ICreateParams[]): Promise<void>;
|
|
89
89
|
}
|
|
90
90
|
export {};
|