@cinerino/sdk 12.7.0-alpha.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
  };
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.7.0-alpha.0",
3
+ "version": "12.7.0-alpha.1",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -93,7 +93,7 @@
93
93
  "watchify": "^3.11.1"
94
94
  },
95
95
  "dependencies": {
96
- "@chevre/factory": "5.2.0-alpha.3",
96
+ "@chevre/factory": "5.2.0-alpha.4",
97
97
  "debug": "3.2.7",
98
98
  "http-status": "1.7.4",
99
99
  "idtoken-verifier": "2.0.3",