@chevre/factory 4.399.0-alpha.5 → 4.399.0-alpha.7
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/lib/action/update/add.d.ts +3 -4
- package/lib/action/update/delete.d.ts +35 -5
- package/lib/action/update/instrumentAsApplication.d.ts +5 -0
- package/lib/action/update/replace.d.ts +10 -4
- package/lib/action/update/update.d.ts +3 -4
- package/lib/index.d.ts +1 -6
- package/lib/index.js +2 -5
- package/lib/task/deletePerson.d.ts +1 -1
- package/package.json +1 -1
- package/lib/action/update/delete/member.d.ts +0 -25
- /package/lib/action/update/{delete/member.js → instrumentAsApplication.js} +0 -0
|
@@ -3,6 +3,7 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
|
|
4
4
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
5
5
|
import { ProductType } from '../../product';
|
|
6
|
+
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
6
7
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
7
8
|
export interface IObjectAsNote {
|
|
8
9
|
identifier: string;
|
|
@@ -18,10 +19,7 @@ export interface IAddedObject {
|
|
|
18
19
|
typeOf: CreativeWorkType.NoteDigitalDocument | ProductType;
|
|
19
20
|
}
|
|
20
21
|
export type IResult = IAddedObject[];
|
|
21
|
-
export
|
|
22
|
-
typeOf: CreativeWorkType.WebApplication | CreativeWorkType.SoftwareApplication;
|
|
23
|
-
id: string;
|
|
24
|
-
}
|
|
22
|
+
export type IInstrument = IInstrumentAsApplication;
|
|
25
23
|
export interface ITargetCollectionAsNote {
|
|
26
24
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
27
25
|
about: Pick<INoteAbout, 'typeOf'>;
|
|
@@ -32,6 +30,7 @@ export interface ITargetCollectionAsProduct {
|
|
|
32
30
|
export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsProduct;
|
|
33
31
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.AddAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
34
32
|
potentialActions?: never;
|
|
33
|
+
purpose?: never;
|
|
35
34
|
instrument: IInstrument;
|
|
36
35
|
targetCollection: ITargetCollection;
|
|
37
36
|
}
|
|
@@ -1,15 +1,45 @@
|
|
|
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';
|
|
3
7
|
export type IAgent = ActionFactory.IParticipant;
|
|
4
8
|
export type IRecipient = ActionFactory.IParticipant;
|
|
5
|
-
export type
|
|
6
|
-
|
|
9
|
+
export type IObjectAsPerson = Pick<IPerson, 'id' | 'typeOf'> & {
|
|
10
|
+
/**
|
|
11
|
+
* 新ユーザープールへ移行するかどうか
|
|
12
|
+
*/
|
|
13
|
+
migrate?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 移行会員通知先
|
|
16
|
+
*/
|
|
17
|
+
migratePersonRecipientUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* ユーザープールから物理削除するかどうか
|
|
20
|
+
*/
|
|
21
|
+
physically?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type IObject = IObjectAsPerson | any;
|
|
24
|
+
export interface IResultAsPerson {
|
|
25
|
+
existingPeople?: any;
|
|
26
|
+
}
|
|
27
|
+
export type IResult = IResultAsPerson | any;
|
|
28
|
+
export type IInstrument = IInstrumentAsApplication;
|
|
29
|
+
export interface ITargetCollectionAsNote {
|
|
30
|
+
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
31
|
+
about: Pick<INoteAbout, 'typeOf'>;
|
|
32
|
+
}
|
|
33
|
+
export type ITargetCollection = ITargetCollectionAsNote;
|
|
7
34
|
export interface IPotentialActions {
|
|
8
35
|
}
|
|
9
|
-
export interface IAttributes
|
|
36
|
+
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.DeleteAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
10
37
|
potentialActions?: IPotentialActions;
|
|
38
|
+
purpose?: never;
|
|
39
|
+
instrument?: IInstrument;
|
|
40
|
+
targetCollection?: ITargetCollection;
|
|
11
41
|
}
|
|
12
42
|
/**
|
|
13
|
-
*
|
|
43
|
+
* 削除アクション
|
|
14
44
|
*/
|
|
15
|
-
export type IAction
|
|
45
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import {
|
|
3
|
+
import { Identifier as WebAPIIdentifier, IService as IWebAPI } from '../../service/webAPI';
|
|
4
|
+
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
4
5
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
5
6
|
export type IObject = any;
|
|
6
7
|
export type IResult = any;
|
|
7
8
|
export type IReplacer = any;
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export interface IInstrumentAsCOAAPI {
|
|
10
|
+
theaterCode: string;
|
|
11
|
+
begin?: string;
|
|
12
|
+
end?: string;
|
|
13
|
+
typeOf: IWebAPI<WebAPIIdentifier>['typeOf'];
|
|
14
|
+
identifier: WebAPIIdentifier.COA;
|
|
11
15
|
}
|
|
16
|
+
export type IInstrument = IInstrumentAsApplication | IInstrumentAsCOAAPI;
|
|
12
17
|
export type ITargetCollection = any;
|
|
13
18
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.ReplaceAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
14
19
|
potentialActions?: never;
|
|
20
|
+
purpose?: never;
|
|
15
21
|
replacer?: IReplacer;
|
|
16
22
|
instrument?: IInstrument;
|
|
17
23
|
targetCollection: ITargetCollection;
|
|
@@ -2,6 +2,7 @@ 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 { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
5
6
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
6
7
|
export interface IObjectAsNote {
|
|
7
8
|
identifier: string;
|
|
@@ -13,10 +14,7 @@ export interface IUpdatedObject {
|
|
|
13
14
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
14
15
|
}
|
|
15
16
|
export type IResult = IUpdatedObject[];
|
|
16
|
-
export
|
|
17
|
-
typeOf: CreativeWorkType.WebApplication | CreativeWorkType.SoftwareApplication;
|
|
18
|
-
id: string;
|
|
19
|
-
}
|
|
17
|
+
export type IInstrument = IInstrumentAsApplication;
|
|
20
18
|
export interface ITargetCollectionAsNote {
|
|
21
19
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
22
20
|
about: Pick<INoteAbout, 'typeOf'>;
|
|
@@ -24,6 +22,7 @@ export interface ITargetCollectionAsNote {
|
|
|
24
22
|
export type ITargetCollection = ITargetCollectionAsNote;
|
|
25
23
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
26
24
|
potentialActions?: never;
|
|
25
|
+
purpose?: never;
|
|
27
26
|
instrument: IInstrument;
|
|
28
27
|
targetCollection: ITargetCollection;
|
|
29
28
|
}
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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';
|
package/package.json
CHANGED
|
@@ -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>;
|
|
File without changes
|