@chevre/factory 4.399.0-alpha.8 → 5.0.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.
Files changed (41) hide show
  1. package/lib/action/check/paymentMethod/movieTicket.d.ts +2 -2
  2. package/lib/action/check/thing.d.ts +27 -0
  3. package/lib/action/consume/use/reservation.d.ts +2 -3
  4. package/lib/action/create.d.ts +19 -0
  5. package/lib/action/create.js +2 -0
  6. package/lib/action/update/add/object.d.ts +28 -0
  7. package/lib/action/update/add/object.js +2 -0
  8. package/lib/action/update/add.d.ts +18 -14
  9. package/lib/action/update/add.js +15 -0
  10. package/lib/action/update/replace.d.ts +39 -1
  11. package/lib/action/update/update/object.d.ts +47 -0
  12. package/lib/action/update/update/object.js +2 -0
  13. package/lib/action/update/update/result.d.ts +32 -0
  14. package/lib/action/update/update/result.js +2 -0
  15. package/lib/action/update/update/targetCollection.d.ts +32 -0
  16. package/lib/action/update/update/targetCollection.js +2 -0
  17. package/lib/action/update/update.d.ts +11 -18
  18. package/lib/action/update/update.js +17 -0
  19. package/lib/assetTransaction/reserve.d.ts +16 -2
  20. package/lib/event/anyEvent.d.ts +6 -223
  21. package/lib/event/screeningEvent.d.ts +24 -3
  22. package/lib/eventType.d.ts +0 -1
  23. package/lib/eventType.js +1 -1
  24. package/lib/index.d.ts +12 -10
  25. package/lib/index.js +12 -8
  26. package/lib/notification/event.d.ts +1 -2
  27. package/lib/offer/eventOffer.d.ts +18 -74
  28. package/lib/offer/productOffer.d.ts +152 -0
  29. package/lib/offer/productOffer.js +2 -0
  30. package/lib/project.d.ts +0 -4
  31. package/lib/report/accountingReport.d.ts +17 -0
  32. package/lib/reservation/pendingReservationPackage.d.ts +1 -1
  33. package/lib/task/aggregateScreeningEvent.d.ts +1 -1
  34. package/lib/task/checkResource.d.ts +2 -13
  35. package/lib/task/createAccountingReport.d.ts +2 -8
  36. package/lib/task/createEvent.d.ts +7 -28
  37. package/package.json +1 -1
  38. package/lib/action/check/token.d.ts +0 -23
  39. package/lib/action/check/token.js +0 -7
  40. package/lib/action/check.d.ts +0 -10
  41. /package/lib/action/{check.js → check/thing.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import * as ActionFactory from '../../../action';
2
+ import { ActionType } from '../../../actionType';
2
3
  import { OrganizationType } from '../../../organizationType';
3
4
  import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
4
5
  import { IMkknInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IPurchaseNumberInfo, IRecipe, IYkknInfo } from '../../../recipe/checkMovieTicket';
5
6
  import { TransactionType } from '../../../transactionType';
6
- import * as CheckActionFactory from '../../check';
7
7
  import * as PayActionFactory from '../../trade/pay';
8
8
  export { IMkknInfo, IYkknInfo, IPurchaseNumberInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe };
9
9
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
@@ -37,7 +37,7 @@ export interface IPurpose {
37
37
  typeOf: TransactionType.PlaceOrder;
38
38
  id: string;
39
39
  }
40
- export interface IAttributes extends Pick<CheckActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
40
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
41
41
  agent: IAgent;
42
42
  object: IObject;
43
43
  purpose?: IPurpose;
@@ -0,0 +1,27 @@
1
+ import * as ActionFactory from '../../action';
2
+ import { ActionType } from '../../actionType';
3
+ import { EventType } from '../../eventType';
4
+ import { OrderType } from '../../order';
5
+ export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject;
6
+ export interface IObjectAsEvent {
7
+ id: string;
8
+ typeOf: EventType.ScreeningEvent;
9
+ }
10
+ export interface IObjectAsOrder {
11
+ orderNumber: string;
12
+ typeOf: OrderType.Order;
13
+ }
14
+ export type IObject = IObjectAsEvent | IObjectAsOrder;
15
+ export interface IResult {
16
+ }
17
+ export type IError = any;
18
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'result' | 'sameAs' | 'typeOf'> {
19
+ purpose?: never;
20
+ agent: IAgent;
21
+ object: IObject;
22
+ sameAs: ActionFactory.ISameAs;
23
+ }
24
+ /**
25
+ * 汎用リソース検証アクション
26
+ */
27
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,9 +1,8 @@
1
1
  import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../action';
2
2
  import { IOrder } from '../../../order';
3
3
  import { PlaceType } from '../../../placeType';
4
- import { ITicket, ITicketType } from '../../../reservation';
4
+ import { ITicket, ITicketType, TicketType } from '../../../reservation';
5
5
  import { IIssuedThrough, IReservation, IReservationFor } from '../../../reservation/event';
6
- import { ObjectType } from '../../check/token';
7
6
  import * as UseActionFactory from '../use';
8
7
  export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
9
8
  export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
@@ -33,7 +32,7 @@ export interface ITicketAsInstrument {
33
32
  * 承認コード
34
33
  */
35
34
  ticketToken?: string;
36
- typeOf: ObjectType.Ticket;
35
+ typeOf: TicketType;
37
36
  }
38
37
  export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
39
38
  export interface IAttributes extends Pick<UseActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
@@ -0,0 +1,19 @@
1
+ import * as ActionFactory from '../action';
2
+ import { ActionType } from '../actionType';
3
+ import { ISimpleOrder } from '../order';
4
+ import { IOrderAsMainEntity, IReportDocument } from '../report/accountingReport';
5
+ export type IObjectAsAccountingReport = Pick<IReportDocument, 'typeOf'> & {
6
+ mainEntity: Pick<IOrderAsMainEntity, 'orderNumber'>;
7
+ };
8
+ export type IObject = IObjectAsAccountingReport;
9
+ export interface IResult {
10
+ }
11
+ export type IPurposeAsOrder = ISimpleOrder;
12
+ export type IPurpose = IPurposeAsOrder;
13
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CreateAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> {
14
+ purpose?: IPurpose;
15
+ }
16
+ /**
17
+ * 作成アクション
18
+ */
19
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import { CreativeWorkType } from '../../../creativeWorkType';
2
+ import { IAttributes as IEventSeriesAttributes } from '../../../event/screeningEventSeries';
3
+ import { EventType } from '../../../eventType';
4
+ import { OfferType } from '../../../offerType';
5
+ import { ProductType } from '../../../product';
6
+ export interface IObjectAsNote {
7
+ identifier: string;
8
+ typeOf: CreativeWorkType.NoteDigitalDocument;
9
+ }
10
+ export interface IObjectAsProduct {
11
+ productID: string;
12
+ typeOf: ProductType;
13
+ }
14
+ export interface IObjectAsSingleResource {
15
+ typeOf: OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
16
+ }
17
+ export type IObjectAsEventSeriesAttributes = IEventSeriesAttributes;
18
+ export interface IObjectAsEventBySchedule {
19
+ /**
20
+ * スケジュールを作成し始める日(Asia/Tokyoでこの日から作成される)
21
+ */
22
+ startDate?: Date;
23
+ eventSchedule: {
24
+ id: string;
25
+ };
26
+ typeOf: EventType.ScreeningEvent;
27
+ }
28
+ export type IObject = IObjectAsSingleResource | IObjectAsNote[] | IObjectAsProduct[] | IObjectAsEventSeriesAttributes[] | IObjectAsEventBySchedule;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,32 +2,36 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
4
4
  import { CreativeWorkType } from '../../creativeWorkType';
5
+ import { EventType } from '../../eventType';
6
+ import { OfferType } from '../../offerType';
5
7
  import { ProductType } from '../../product';
8
+ import { IObject } from './add/object';
6
9
  import { IInstrumentAsApplication } from './instrumentAsApplication';
10
+ export * from './add/object';
7
11
  export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
8
- export interface IObjectAsNote {
9
- identifier: string;
10
- typeOf: CreativeWorkType.NoteDigitalDocument;
11
- }
12
- export interface IObjectAsProduct {
13
- productID: string;
14
- typeOf: ProductType;
15
- }
16
- export type IObject = IObjectAsNote[] | IObjectAsProduct[];
17
12
  export interface IAddedObject {
18
13
  id: string;
19
- typeOf: CreativeWorkType.NoteDigitalDocument | ProductType;
14
+ typeOf: CreativeWorkType.NoteDigitalDocument | ProductType | OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
20
15
  }
21
16
  export type IResult = IAddedObject[];
22
- export type IInstrument = IInstrumentAsApplication;
17
+ export interface IInstrumentWithAddEventSeriesOption {
18
+ typeOf: CreativeWorkType.WebApplication;
19
+ id: string;
20
+ createScreeningEventSeriesIfNotExistByWorkPerformed: true;
21
+ /**
22
+ * 全施設に施設コンテンツを作成するかどうか
23
+ */
24
+ createScreeningEventSeriesOnAllLocation?: boolean;
25
+ }
26
+ export type IInstrument = IInstrumentAsApplication | IInstrumentWithAddEventSeriesOption;
23
27
  export interface ITargetCollectionAsNote {
24
28
  typeOf: CreativeWorkType.NoteDigitalDocument;
25
29
  about: Pick<INoteAbout, 'typeOf'>;
26
30
  }
27
- export interface ITargetCollectionAsProduct {
28
- typeOf: ProductType;
31
+ export interface ITargetCollectionAsResource {
32
+ typeOf: ProductType | OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
29
33
  }
30
- export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsProduct;
34
+ export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsResource;
31
35
  export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.AddAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
32
36
  potentialActions?: never;
33
37
  purpose?: never;
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./add/object"), exports);
@@ -2,8 +2,45 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { Identifier as WebAPIIdentifier, IService as IWebAPI } from '../../service/webAPI';
4
4
  import { IInstrumentAsApplication } from './instrumentAsApplication';
5
+ import { EventType } from '../../eventType';
6
+ import { OrganizationType } from '../../organizationType';
7
+ import { PlaceType } from '../../placeType';
5
8
  export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
6
- export type IObject = any;
9
+ interface IImportFromCOAParams {
10
+ project: {
11
+ id: string;
12
+ typeOf: OrganizationType.Project;
13
+ };
14
+ /**
15
+ * 施設コード
16
+ */
17
+ locationBranchCode: string;
18
+ importFrom: Date;
19
+ importThrough: Date;
20
+ /**
21
+ * 施設を保管するかどうか
22
+ */
23
+ saveMovieTheater: boolean;
24
+ /**
25
+ * 施設コンテンツを保管するかどうか
26
+ */
27
+ saveScreeningEventSeries: boolean;
28
+ saveScreeningEventSeriesPeriodInMonth: number;
29
+ }
30
+ export interface IObjectAsEventByCOA extends IImportFromCOAParams {
31
+ startDate: string;
32
+ superEvent: {
33
+ location: {
34
+ branchCode: string;
35
+ };
36
+ };
37
+ typeOf: EventType.ScreeningEvent;
38
+ }
39
+ export interface IObjectAsMovieTheaterByCOA extends IImportFromCOAParams {
40
+ branchCode: string;
41
+ typeOf: PlaceType.MovieTheater;
42
+ }
43
+ export type IObject = IObjectAsEventByCOA | IObjectAsMovieTheaterByCOA;
7
44
  export type IResult = any;
8
45
  export type IReplacer = any;
9
46
  export interface IInstrumentAsCOAAPI {
@@ -26,3 +63,4 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.R
26
63
  * 置換アクション
27
64
  */
28
65
  export type IAction = ActionFactory.IAction<IAttributes>;
66
+ export {};
@@ -0,0 +1,47 @@
1
+ import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
2
+ import { CreativeWorkType } from '../../../creativeWorkType';
3
+ import { IEvent as IEventSeries } from '../../../event/screeningEventSeries';
4
+ import { EventType } from '../../../eventType';
5
+ import { IOfferCatalog } from '../../../offerCatalog';
6
+ import { IOrder } from '../../../order';
7
+ import { IProduct } from '../../../product';
8
+ import { ReservationType } from '../../../reservationType';
9
+ import { ISeller } from '../../../seller';
10
+ import { TripType } from '../../../tripType';
11
+ import { IUnitPriceOffer } from '../../../unitPriceOffer';
12
+ export interface IObjectAsNote {
13
+ identifier: string;
14
+ typeOf: CreativeWorkType.NoteDigitalDocument;
15
+ }
16
+ export interface IObjectAsReservation {
17
+ id: string;
18
+ reservationNumber: string;
19
+ typeOf: ReservationType.EventReservation;
20
+ additionalTicketText?: string;
21
+ }
22
+ export interface IObjectAsEvent4ttts {
23
+ id: string;
24
+ identifier: string;
25
+ typeOf: EventType.ScreeningEvent;
26
+ }
27
+ export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'identifier' | 'typeOf'>;
28
+ export type IObjectAsOffer = Pick<IUnitPriceOffer, 'identifier' | 'typeOf'>;
29
+ export type IObjectAsProduct = Pick<IProduct, 'productID' | 'typeOf'>;
30
+ export type IObjectAsMovie = Pick<IMovie, 'identifier' | 'typeOf'>;
31
+ export type IObjectAsEventSeriesByVersion = Pick<IEventSeries, 'typeOf'> & {
32
+ workPerformed: {
33
+ identifier: string;
34
+ version: string;
35
+ };
36
+ location: {
37
+ branchCode: string;
38
+ };
39
+ };
40
+ export type IObjectAsOrder = Pick<IOrder, 'orderNumber' | 'typeOf'> & {
41
+ id: string;
42
+ };
43
+ export interface IObjectAsResourceById {
44
+ id: string;
45
+ typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
46
+ }
47
+ export type IObject = IObjectAsOfferCatalog[] | IObjectAsOffer[] | IObjectAsProduct[] | IObjectAsMovie[] | IObjectAsEventSeriesByVersion[] | IObjectAsNote[] | IObjectAsResourceById[] | IObjectAsReservation | IObjectAsEvent4ttts | IObjectAsOrder;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
2
+ import { CreativeWorkType } from '../../../creativeWorkType';
3
+ import { IEvent as IEventSeries } from '../../../event/screeningEventSeries';
4
+ import { EventType } from '../../../eventType';
5
+ import { IOfferCatalog } from '../../../offerCatalog';
6
+ import { IOrder } from '../../../order';
7
+ import { IProduct } from '../../../product';
8
+ import { ReservationType } from '../../../reservationType';
9
+ import { IUnitPriceOffer } from '../../../unitPriceOffer';
10
+ /**
11
+ * 汎用的なリソース編集結果
12
+ */
13
+ export interface IUpdatedResource {
14
+ id: string;
15
+ typeOf: CreativeWorkType.NoteDigitalDocument | EventType.ScreeningEvent | IOfferCatalog['typeOf'] | IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | IMovie['typeOf'] | IEventSeries['typeOf'];
16
+ }
17
+ /**
18
+ * 単一予約編集結果
19
+ */
20
+ export interface IUpdatedReservation {
21
+ id: string;
22
+ typeOf: ReservationType.EventReservation;
23
+ additionalTicketText?: string;
24
+ }
25
+ /**
26
+ * 単一注文編集結果
27
+ */
28
+ export interface IUpdatedOrder extends Pick<IOrder, 'name' | 'orderNumber' | 'typeOf'> {
29
+ }
30
+ export interface IResultAsNoContent {
31
+ }
32
+ export type IResult = IUpdatedResource[] | IUpdatedReservation | IUpdatedOrder | IResultAsNoContent;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
2
+ import { IAbout as INoteAbout } from '../../../creativeWork/noteDigitalDocument';
3
+ import { CreativeWorkType } from '../../../creativeWorkType';
4
+ import { IEvent as IEventSeries } from '../../../event/screeningEventSeries';
5
+ import { EventType } from '../../../eventType';
6
+ import { IOfferCatalog } from '../../../offerCatalog';
7
+ import { OrderType } from '../../../order';
8
+ import { IProduct } from '../../../product';
9
+ import { ReservationType } from '../../../reservationType';
10
+ import { ISeller } from '../../../seller';
11
+ import { TripType } from '../../../tripType';
12
+ import { IUnitPriceOffer } from '../../../unitPriceOffer';
13
+ export interface ITargetCollectionAsNote {
14
+ typeOf: CreativeWorkType.NoteDigitalDocument;
15
+ about: Pick<INoteAbout, 'typeOf'>;
16
+ }
17
+ export interface ITargetCollectionAsReservation {
18
+ typeOf: ReservationType.EventReservation;
19
+ id: string;
20
+ }
21
+ export interface ITargetCollectionAsResource {
22
+ typeOf: EventType.ScreeningEvent | IOfferCatalog['typeOf'] | IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | IMovie['typeOf'] | IEventSeries['typeOf'] | OrderType.Order;
23
+ }
24
+ export interface ITargetCollectionAsEventById {
25
+ id: string;
26
+ typeOf: EventType;
27
+ }
28
+ export interface ITargetCollectionAsResourceById {
29
+ id: string;
30
+ typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
31
+ }
32
+ export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsResource | ITargetCollectionAsResourceById | ITargetCollectionAsEventById[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,28 +1,21 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
4
- import { CreativeWorkType } from '../../creativeWorkType';
5
3
  import { IInstrumentAsApplication } from './instrumentAsApplication';
6
- export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
7
- export interface IObjectAsNote {
8
- identifier: string;
9
- typeOf: CreativeWorkType.NoteDigitalDocument;
4
+ import { IObject } from './update/object';
5
+ import { IResult } from './update/result';
6
+ import { ITargetCollection } from './update/targetCollection';
7
+ export * from './update/object';
8
+ export * from './update/result';
9
+ export * from './update/targetCollection';
10
+ export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication | ActionFactory.IParticipantAsProject;
11
+ export interface IInstrumentAsTask {
12
+ typeOf: 'Task';
10
13
  }
11
- export type IObject = IObjectAsNote[];
12
- export interface IUpdatedObject {
13
- id: string;
14
- typeOf: CreativeWorkType.NoteDigitalDocument;
15
- }
16
- export type IResult = IUpdatedObject[];
17
- export type IInstrument = IInstrumentAsApplication;
18
- export interface ITargetCollectionAsNote {
19
- typeOf: CreativeWorkType.NoteDigitalDocument;
20
- about: Pick<INoteAbout, 'typeOf'>;
21
- }
22
- export type ITargetCollection = ITargetCollectionAsNote;
14
+ export type IInstrument = IInstrumentAsApplication | IInstrumentAsTask;
23
15
  export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
24
16
  potentialActions?: never;
25
17
  purpose?: never;
18
+ agent: IAgent;
26
19
  instrument: IInstrument;
27
20
  targetCollection: ITargetCollection;
28
21
  }
@@ -1,2 +1,19 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./update/object"), exports);
18
+ __exportStar(require("./update/result"), exports);
19
+ __exportStar(require("./update/targetCollection"), exports);
@@ -260,7 +260,21 @@ export interface IResult {
260
260
  * エラー
261
261
  */
262
262
  export type IError = any;
263
- export type ITokenizedMemberProgramTier = string;
263
+ /**
264
+ * トークン化されたメンバープログラムティア
265
+ */
266
+ export interface ITokenizedMemberProgramTier {
267
+ /**
268
+ * ティアトークン
269
+ */
270
+ token: string;
271
+ isTierOf: {
272
+ /**
273
+ * メンバープログラムコード
274
+ */
275
+ identifier: string;
276
+ };
277
+ }
264
278
  export interface IObjectWithoutDetail {
265
279
  acceptedOffer?: IAcceptedTicketOfferWithoutDetail[];
266
280
  broker?: ReservationFactory.IBroker;
@@ -268,7 +282,7 @@ export interface IObjectWithoutDetail {
268
282
  id: string;
269
283
  offers?: {
270
284
  /**
271
- * メンバーシップトークン
285
+ * メンバープログラムティアトークン
272
286
  * メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
273
287
  */
274
288
  validForMemberTier?: ITokenizedMemberProgramTier;