@chevre/factory 4.399.0-alpha.6 → 4.399.0-alpha.8

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.
@@ -1,15 +1,98 @@
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
+ import { IPerson } from '../../person';
6
+ import { IInstrumentAsApplication } from './instrumentAsApplication';
7
+ import { IEvent as IEventSeries } from '../../event/screeningEventSeries';
8
+ import { IAggregateOffer } from '../../offer/aggregateOffer';
9
+ import { IOfferCatalog } from '../../offerCatalog';
10
+ import { IGood, IOwnershipInfo } from '../../ownershipInfo';
11
+ import { IPlace as IMovieTheater } from '../../place/movieTheater';
12
+ import { IPlace as IRoom } from '../../place/screeningRoom';
13
+ import { IProduct } from '../../product';
14
+ import { ISeller } from '../../seller';
15
+ import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../../transaction/moneyTransfer';
16
+ import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
17
+ import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
18
+ import { TransactionType } from '../../transactionType';
3
19
  export type IAgent = ActionFactory.IParticipant;
4
20
  export type IRecipient = ActionFactory.IParticipant;
5
- export type IObject = any;
6
- export type IResult = any;
7
- export interface IPotentialActions {
21
+ export type IObjectAsPerson = Pick<IPerson, 'id' | 'typeOf'> & {
22
+ /**
23
+ * 新ユーザープールへ移行するかどうか
24
+ */
25
+ migrate?: boolean;
26
+ /**
27
+ * 移行会員通知先
28
+ */
29
+ migratePersonRecipientUrl?: string;
30
+ /**
31
+ * ユーザープールから物理削除するかどうか
32
+ */
33
+ physically?: boolean;
34
+ };
35
+ export type IObjectAsOwnershipInfo = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier' | 'typeOf'> & {
36
+ id: string;
37
+ };
38
+ export type IObjectAsProduct = Pick<IProduct, 'id' | 'typeOf'>;
39
+ export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'id' | 'typeOf'>;
40
+ export type IObjectAsAggregateOffer = Pick<IAggregateOffer, 'id' | 'typeOf'>;
41
+ export type IObjectAsSeller = Pick<ISeller, 'id' | 'typeOf'>;
42
+ export type IObjectAsMovieTheater = Pick<IMovieTheater, 'id' | 'typeOf'>;
43
+ export type IObjectAsRoom = Pick<IRoom, 'branchCode' | 'typeOf'> & {
44
+ containedInPlace: {
45
+ id: string;
46
+ };
47
+ };
48
+ export type IObjectAsEventSeries = Pick<IEventSeries, 'id' | 'typeOf'>;
49
+ /**
50
+ * 取引オブジェクト特定方法
51
+ */
52
+ export declare enum ObjectAsTransactionSpecifyingMethod {
53
+ Id = "Id",
54
+ AgentId = "AgentId"
55
+ }
56
+ export type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
57
+ object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
58
+ specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
59
+ };
60
+ export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
61
+ object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
62
+ specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
63
+ };
64
+ export type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
65
+ object: Pick<IReturnOrderObject, 'order'>;
66
+ specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
67
+ };
68
+ export interface IObjectAsTransactionByAgentId {
69
+ specifyingMethod: ObjectAsTransactionSpecifyingMethod.AgentId;
70
+ project: {
71
+ id: string;
72
+ };
73
+ typeOf: TransactionType;
74
+ agent: {
75
+ id: string;
76
+ };
77
+ }
78
+ export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
79
+ export interface IResultAsPerson {
80
+ existingPeople?: any;
81
+ }
82
+ export type IResult = IResultAsPerson | any;
83
+ export type IInstrument = IInstrumentAsApplication;
84
+ export interface ITargetCollectionAsNote {
85
+ typeOf: CreativeWorkType.NoteDigitalDocument;
86
+ about: Pick<INoteAbout, 'typeOf'>;
8
87
  }
9
- export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.DeleteAction, TObject, TResult> {
10
- potentialActions?: IPotentialActions;
88
+ export type ITargetCollection = ITargetCollectionAsNote;
89
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.DeleteAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
90
+ potentialActions?: never;
91
+ purpose?: never;
92
+ instrument?: IInstrument;
93
+ targetCollection?: ITargetCollection;
11
94
  }
12
95
  /**
13
- * 削除アクションインターフェース
96
+ * 削除アクション
14
97
  */
15
- export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
98
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectAsTransactionSpecifyingMethod = void 0;
4
+ /**
5
+ * 取引オブジェクト特定方法
6
+ */
7
+ var ObjectAsTransactionSpecifyingMethod;
8
+ (function (ObjectAsTransactionSpecifyingMethod) {
9
+ ObjectAsTransactionSpecifyingMethod["Id"] = "Id";
10
+ ObjectAsTransactionSpecifyingMethod["AgentId"] = "AgentId";
11
+ })(ObjectAsTransactionSpecifyingMethod = exports.ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = {}));
package/lib/index.d.ts CHANGED
@@ -44,7 +44,6 @@ import * as SendEmailMessageActionFactory from './action/transfer/send/message/e
44
44
  import * as SendOrderActionFactory from './action/transfer/send/order';
45
45
  import * as AddActionFactory from './action/update/add';
46
46
  import * as DeleteActionFactory from './action/update/delete';
47
- import * as DeleteMemberActionFactory from './action/update/delete/member';
48
47
  import * as ReplaceActionFactory from './action/update/replace';
49
48
  import * as UpdateActionFactory from './action/update/update';
50
49
  import { ActionStatusType } from './actionStatusType';
@@ -328,11 +327,7 @@ export declare namespace action {
328
327
  }
329
328
  namespace update {
330
329
  export import add = AddActionFactory;
331
- namespace deleteAction {
332
- export import IAction = DeleteActionFactory.IAction;
333
- export import IAttributes = DeleteActionFactory.IAttributes;
334
- export import member = DeleteMemberActionFactory;
335
- }
330
+ export import deleteAction = DeleteActionFactory;
336
331
  export import replace = ReplaceActionFactory;
337
332
  export import update = UpdateActionFactory;
338
333
  }
package/lib/index.js CHANGED
@@ -43,7 +43,7 @@ var ReturnReserveTransactionActionFactory = require("./action/transfer/return/re
43
43
  var SendEmailMessageActionFactory = require("./action/transfer/send/message/email");
44
44
  var SendOrderActionFactory = require("./action/transfer/send/order");
45
45
  var AddActionFactory = require("./action/update/add");
46
- var DeleteMemberActionFactory = require("./action/update/delete/member");
46
+ var DeleteActionFactory = require("./action/update/delete");
47
47
  var ReplaceActionFactory = require("./action/update/replace");
48
48
  var UpdateActionFactory = require("./action/update/update");
49
49
  var actionStatusType_1 = require("./actionStatusType");
@@ -311,10 +311,7 @@ var action;
311
311
  var update;
312
312
  (function (update) {
313
313
  update.add = AddActionFactory;
314
- var deleteAction;
315
- (function (deleteAction) {
316
- deleteAction.member = DeleteMemberActionFactory;
317
- })(deleteAction = update.deleteAction || (update.deleteAction = {}));
314
+ update.deleteAction = DeleteActionFactory;
318
315
  update.replace = ReplaceActionFactory;
319
316
  // tslint:disable-next-line:no-shadowed-variable
320
317
  update.update = UpdateActionFactory;
@@ -1,4 +1,4 @@
1
- import { IAttributes as IDeleteMemberActionAttributes } from '../action/update/delete/member';
1
+ import { IAttributes as IDeleteMemberActionAttributes } from '../action/update/delete';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
@@ -1,40 +1,9 @@
1
+ import { IObjectAsMoneyTransfer, IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId } from '../action/update/delete';
1
2
  import { IExtendId } from '../autoGenerated';
2
3
  import * as TaskFactory from '../task';
3
4
  import { TaskName } from '../taskName';
4
- import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
5
- import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../transaction/placeOrder';
6
- import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../transaction/returnOrder';
7
- import { TransactionType } from '../transactionType';
8
- /**
9
- * オブジェクト特定方法
10
- */
11
- export declare enum SpecifyingMethod {
12
- Id = "Id",
13
- AgentId = "AgentId"
14
- }
15
- export type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
16
- object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
17
- specifyingMethod?: SpecifyingMethod.Id;
18
- };
19
- export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
20
- object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
21
- specifyingMethod?: SpecifyingMethod.Id;
22
- };
23
- export type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
24
- object: Pick<IReturnOrderObject, 'order'>;
25
- specifyingMethod?: SpecifyingMethod.Id;
26
- };
27
- export interface IObjectByAgentId {
28
- specifyingMethod: SpecifyingMethod.AgentId;
29
- project: {
30
- id: string;
31
- };
32
- typeOf: TransactionType;
33
- agent: {
34
- id: string;
35
- };
36
- }
37
- export type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectByAgentId;
5
+ export { IObjectAsMoneyTransfer, IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId };
6
+ export type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
38
7
  export interface IData {
39
8
  object: IObject;
40
9
  }
@@ -1,11 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpecifyingMethod = void 0;
4
- /**
5
- * オブジェクト特定方法
6
- */
7
- var SpecifyingMethod;
8
- (function (SpecifyingMethod) {
9
- SpecifyingMethod["Id"] = "Id";
10
- SpecifyingMethod["AgentId"] = "AgentId";
11
- })(SpecifyingMethod = exports.SpecifyingMethod || (exports.SpecifyingMethod = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.399.0-alpha.6",
3
+ "version": "4.399.0-alpha.8",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,25 +0,0 @@
1
- import { IPerson } from '../../../person';
2
- import * as DeleteActionFactory from '../delete';
3
- export type IObject = Pick<IPerson, 'id' | 'typeOf'> & {
4
- /**
5
- * 新ユーザープールへ移行するかどうか
6
- */
7
- migrate?: boolean;
8
- /**
9
- * 移行会員通知先
10
- */
11
- migratePersonRecipientUrl?: string;
12
- /**
13
- * ユーザープールから物理削除するかどうか
14
- */
15
- physically?: boolean;
16
- };
17
- export interface IResult {
18
- existingPeople?: any;
19
- }
20
- export interface IAttributes extends Omit<DeleteActionFactory.IAttributes<IObject, IResult>, 'potentialActions'> {
21
- }
22
- /**
23
- * 会員削除アクション
24
- */
25
- export type IAction = DeleteActionFactory.IAction<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });