@cinerino/sdk 12.6.0 → 12.7.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.
@@ -117,22 +117,6 @@ async function main() {
117
117
  },
118
118
  itemOffered: {
119
119
  id: EVENT_SERVICE_ID
120
- },
121
- seller: {
122
- makesOffer: [
123
- // {
124
- // typeOf: client.factory.offerType.Offer,
125
- // availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID }, // <-販売アプリケーションIDを指定する
126
- // availabilityStarts: moment(`${today}T00:00:00+09:00`)
127
- // .toDate(),
128
- // availabilityEnds: moment(`${today}T14:00:00Z`)
129
- // .toDate(),
130
- // validFrom: moment(`${today}T00:00:00+09:00`)
131
- // .toDate(),
132
- // validThrough: moment(`${today}T14:00:00Z`)
133
- // .toDate()
134
- // }
135
- ]
136
120
  }
137
121
  }
138
122
  }
@@ -115,19 +115,7 @@ async function main() {
115
115
  ],
116
116
  offers: {
117
117
  eligibleQuantity: { maxValue: 6 },
118
- itemOffered: { id: EVENT_SERVICE_ID },
119
- seller: {
120
- makesOffer: [
121
- {
122
- typeOf: client.factory.offerType.Offer,
123
- availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID },
124
- availabilityStarts: validFrom,
125
- availabilityEnds: validThrough,
126
- validFrom,
127
- validThrough
128
- }
129
- ]
130
- }
118
+ itemOffered: { id: EVENT_SERVICE_ID }
131
119
  }
132
120
  }
133
121
  ],
@@ -9,11 +9,9 @@ export declare type ICreateParamsByIdentifier = Pick<factory.event.screeningEven
9
9
  itemOffered: Pick<factory.event.screeningEvent.IItemOffered, 'id'>;
10
10
  };
11
11
  };
12
- export declare type IUpdateParamsByIdentifier = Pick<factory.event.screeningEvent.IUpdateParams, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'maximumPhysicalAttendeeCapacity' | 'offers' | 'startDate'> & {
12
+ export declare type IUpdateParamsByIdentifier = Pick<factory.event.screeningEvent.IUpdateByIdParams, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'maximumPhysicalAttendeeCapacity' | 'startDate'> & {
13
13
  identifier: string;
14
- offers: Pick<factory.event.screeningEvent.IOffers4create, 'eligibleQuantity' | 'seller' | 'unacceptedPaymentMethod'> & {
15
- itemOffered: Pick<factory.event.screeningEvent.IItemOffered, 'id'>;
16
- };
14
+ offers: Pick<factory.event.screeningEvent.IOffer4update, 'eligibleQuantity' | 'unacceptedPaymentMethod' | 'itemOffered' | 'seller'>;
17
15
  location?: never;
18
16
  superEvent?: never;
19
17
  };
@@ -1,12 +1,6 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- declare type CategorySetIdentifierExceptMovieTicketType = Exclude<factory.categoryCode.CategorySetIdentifier, factory.categoryCode.CategorySetIdentifier.MovieTicketType>;
4
- declare type ICategoryCodeExceptMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
5
- inCodeSet: {
6
- typeOf: 'CategoryCodeSet';
7
- identifier: CategorySetIdentifierExceptMovieTicketType;
8
- };
9
- };
3
+ declare type CategorySetIdentifierExceptMovieTicketType = factory.categoryCode.CategorySetIdentifier;
10
4
  declare type IFindParamsExceptMovieTicketType = Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'limit' | 'name' | 'page' | 'sort'> & {
11
5
  inCodeSet?: {
12
6
  identifier?: {
@@ -23,7 +17,7 @@ export declare class CategoryCodeService extends Service {
23
17
  /**
24
18
  * 作成
25
19
  */
26
- createCategoryCode(params: Omit<ICategoryCodeExceptMovieTicketType, 'id'> & {
20
+ createCategoryCode(params: Omit<factory.categoryCode.ICategoryCode, 'id'> & {
27
21
  $unset?: never;
28
22
  }): Promise<{
29
23
  /**
@@ -34,8 +28,8 @@ export declare class CategoryCodeService extends Service {
34
28
  /**
35
29
  * 決済カード区分を除外して区分を検索する
36
30
  */
37
- findCategoryCodes(params: IFindParamsExceptMovieTicketType): Promise<ICategoryCodeExceptMovieTicketType[]>;
38
- updateCategoryCode(params: ICategoryCodeExceptMovieTicketType & {
31
+ findCategoryCodes(params: IFindParamsExceptMovieTicketType): Promise<factory.categoryCode.ICategoryCode[]>;
32
+ updateCategoryCode(params: factory.categoryCode.ICategoryCode & {
39
33
  id: string;
40
34
  $unset?: never;
41
35
  }): Promise<void>;
@@ -5,13 +5,6 @@ declare type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent | '_id
5
5
  declare type IProjection = {
6
6
  [key in IKeyOfProjection]?: 0;
7
7
  };
8
- declare type IUnset = {
9
- [key in keyof factory.event.screeningEvent.IEvent]?: 1;
10
- };
11
- declare type IUpdateEventByIdAttributes = Pick<factory.event.screeningEvent.IUpdateParams, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'maximumPhysicalAttendeeCapacity' | 'offers' | 'startDate'> & {
12
- offers: Pick<factory.event.screeningEvent.IOffers4create, 'eligibleQuantity' | 'identifier' | 'itemOffered' | 'seller' | 'unacceptedPaymentMethod'> & {};
13
- $unset?: IUnset;
14
- };
15
8
  /**
16
9
  * イベントサービス
17
10
  */
@@ -43,7 +36,7 @@ export declare class EventService extends Service {
43
36
  */
44
37
  updateEventById(params: {
45
38
  id: string;
46
- attributes: IUpdateEventByIdAttributes;
39
+ attributes: factory.event.screeningEvent.IUpdateByIdParams;
47
40
  options: {
48
41
  disableOverwriteMakesOffer: boolean;
49
42
  };
@@ -1,17 +1,5 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- declare type IMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
4
- inCodeSet: {
5
- typeOf: 'CategoryCodeSet';
6
- identifier: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
7
- };
8
- paymentMethod: {
9
- /**
10
- * 決済カード区分の場合、対応決済方法区分
11
- */
12
- typeOf: string;
13
- };
14
- };
15
3
  /**
16
4
  * 決済カード区分サービス
17
5
  */
@@ -19,7 +7,8 @@ export declare class MovieTicketTypeService extends Service {
19
7
  /**
20
8
  * 決済カード区分追加
21
9
  */
22
- createMovieTicketType(params: IMovieTicketType & {
10
+ createMovieTicketType(params: Omit<factory.movieTicketType.IMovieTicketType, 'id'> & {
11
+ id?: never;
23
12
  $unset?: never;
24
13
  }): Promise<{
25
14
  /**
@@ -31,19 +20,20 @@ export declare class MovieTicketTypeService extends Service {
31
20
  * 決済カード区分検索
32
21
  * support(2025-10-21~)
33
22
  */
34
- findMovieTicketTypes(params: Pick<factory.categoryCode.ISearchConditions, 'additionalProperty' | 'codeValue' | 'id' | 'name' | 'paymentMethod' | 'sort'> & {
23
+ findMovieTicketTypes(params: Pick<factory.movieTicketType.ISearchConditions, 'codeValue' | 'id' | 'name' | 'paymentMethod' | 'sort'> & {
35
24
  limit: number;
36
25
  page: number;
37
26
  inCodeSet: {
38
27
  identifier: {
39
- $eq: factory.categoryCode.CategorySetIdentifier.MovieTicketType;
28
+ $eq: factory.movieTicketType.CategorySetIdentifier.MovieTicketType;
40
29
  };
41
30
  };
42
- }): Promise<IMovieTicketType[]>;
31
+ }): Promise<factory.movieTicketType.IMovieTicketType[]>;
43
32
  /**
44
33
  * 決済カード区分編集
45
34
  */
46
- updateMovieTicketType(params: IMovieTicketType & {
35
+ updateMovieTicketType(params: factory.movieTicketType.IMovieTicketType & {
36
+ id: string;
47
37
  $unset?: never;
48
38
  }): Promise<void>;
49
39
  /**
@@ -53,4 +43,3 @@ export declare class MovieTicketTypeService extends Service {
53
43
  id: string;
54
44
  }): Promise<void>;
55
45
  }
56
- export {};