@chevre/factory 4.229.0 → 4.232.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.
- package/lib/chevre.d.ts +2 -1
- package/lib/factory/action/authorize/offer/moneyTransfer.d.ts +1 -2
- package/lib/factory/action.d.ts +13 -8
- package/lib/factory/creativeWork/softwareApplication/webApplication.d.ts +10 -4
- package/lib/factory/organizationType.d.ts +9 -1
- package/lib/factory/organizationType.js +11 -1
- package/lib/factory/person.d.ts +3 -6
- package/lib/factory/programMembership.d.ts +0 -3
- package/lib/factory/seller.d.ts +2 -0
- package/lib/factory/transaction/moneyTransfer.d.ts +19 -2
- package/lib/factory/transaction/placeOrder.d.ts +1 -3
- package/lib/factory/transaction/returnOrder.d.ts +8 -8
- package/lib/factory/transaction.d.ts +17 -11
- package/package.json +1 -1
package/lib/chevre.d.ts
CHANGED
|
@@ -441,7 +441,8 @@ export declare namespace assetTransaction {
|
|
|
441
441
|
export import reserve = ReserveAssetTransactionFactory;
|
|
442
442
|
}
|
|
443
443
|
export declare namespace transaction {
|
|
444
|
-
export import
|
|
444
|
+
export import IAgentAsPerson = TransactionFactory.IAgentAsPerson;
|
|
445
|
+
export import IAgentAsWebApplication = TransactionFactory.IAgentAsWebApplication;
|
|
445
446
|
export import IAgent = TransactionFactory.IAgent;
|
|
446
447
|
export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
|
|
447
448
|
export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
@@ -4,7 +4,6 @@ import * as MoneyTransferTransactionFactory from '../../../assetTransaction/mone
|
|
|
4
4
|
import { IOffer } from '../../../offer';
|
|
5
5
|
import * as OrderFactory from '../../../order';
|
|
6
6
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
7
|
-
import { ISeller } from '../../../seller';
|
|
8
7
|
import { TransactionType } from '../../../transactionType';
|
|
9
8
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
10
9
|
export declare type IAgent = ActionFactory.IParticipant;
|
|
@@ -21,7 +20,7 @@ export interface IResult {
|
|
|
21
20
|
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
22
21
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
23
22
|
itemOffered: IItemOffered;
|
|
24
|
-
seller:
|
|
23
|
+
seller: ActionFactory.IParticipantAsSeller;
|
|
25
24
|
}
|
|
26
25
|
export declare type IObject = IAcceptedOffer;
|
|
27
26
|
export interface ITransactionPurpose {
|
package/lib/factory/action.d.ts
CHANGED
|
@@ -2,13 +2,10 @@ import { ActionStatusType } from './actionStatusType';
|
|
|
2
2
|
import { ActionType } from './actionType';
|
|
3
3
|
import { IExtendId } from './autoGenerated';
|
|
4
4
|
import { CreativeWorkType } from './creativeWorkType';
|
|
5
|
-
import { ICustomer } from './customer';
|
|
6
|
-
import { IMultilingualString } from './multilingualString';
|
|
7
5
|
import { OrganizationType } from './organizationType';
|
|
8
6
|
import { IPersonAttributes } from './person';
|
|
9
7
|
import { IProject } from './project';
|
|
10
8
|
import { IPropertyValue } from './propertyValue';
|
|
11
|
-
import { ISeller } from './seller';
|
|
12
9
|
import { SortType } from './sortType';
|
|
13
10
|
export interface IParticipantAsWebApplication {
|
|
14
11
|
typeOf: CreativeWorkType.WebApplication;
|
|
@@ -16,20 +13,28 @@ export interface IParticipantAsWebApplication {
|
|
|
16
13
|
name?: string;
|
|
17
14
|
url?: string;
|
|
18
15
|
}
|
|
19
|
-
export declare type IParticipantAsPerson = IPersonAttributes & {
|
|
16
|
+
export declare type IParticipantAsPerson = Omit<IPersonAttributes, 'identifier' | 'memberOf'> & {
|
|
20
17
|
name?: string;
|
|
21
18
|
url?: string;
|
|
22
19
|
};
|
|
23
|
-
export
|
|
20
|
+
export interface IParticipantAsSeller {
|
|
21
|
+
typeOf: OrganizationType.Corporation;
|
|
22
|
+
id: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
url?: string;
|
|
25
|
+
}
|
|
24
26
|
export interface IParticipantAsProject {
|
|
25
27
|
typeOf: OrganizationType.Project;
|
|
26
28
|
id: string;
|
|
27
29
|
name?: string;
|
|
28
30
|
url?: string;
|
|
29
31
|
}
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
export interface IParticipantAsCustomer {
|
|
33
|
+
typeOf: OrganizationType.Organization;
|
|
34
|
+
id: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
url?: string;
|
|
37
|
+
}
|
|
33
38
|
/**
|
|
34
39
|
* アクションへの関係者
|
|
35
40
|
*/
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as CreativeWorkFactory from '../../creativeWork';
|
|
2
2
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export interface ICreativeWork extends CreativeWorkFactory.ICreativeWork {
|
|
3
|
+
import { IIdentifier } from '../../thing';
|
|
4
|
+
export interface IWebApplicationAttributes {
|
|
7
5
|
typeOf: CreativeWorkType.WebApplication;
|
|
6
|
+
/**
|
|
7
|
+
* アプリケーションクライアントID
|
|
8
|
+
*/
|
|
8
9
|
id: string;
|
|
10
|
+
identifier?: IIdentifier;
|
|
9
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* ウェブアプリケーション
|
|
14
|
+
*/
|
|
15
|
+
export declare type ICreativeWork = CreativeWorkFactory.ICreativeWork & IWebApplicationAttributes;
|
|
@@ -6,8 +6,18 @@ exports.OrganizationType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var OrganizationType;
|
|
8
8
|
(function (OrganizationType) {
|
|
9
|
+
/**
|
|
10
|
+
* 販売組織
|
|
11
|
+
*/
|
|
9
12
|
OrganizationType["Corporation"] = "Corporation";
|
|
10
|
-
|
|
13
|
+
// 不要なので廃止(2022-05-30~)
|
|
14
|
+
// MovieTheater = 'MovieTheater',
|
|
15
|
+
/**
|
|
16
|
+
* 顧客組織
|
|
17
|
+
*/
|
|
11
18
|
OrganizationType["Organization"] = "Organization";
|
|
19
|
+
/**
|
|
20
|
+
* プロジェクト
|
|
21
|
+
*/
|
|
12
22
|
OrganizationType["Project"] = "Project";
|
|
13
23
|
})(OrganizationType = exports.OrganizationType || (exports.OrganizationType = {}));
|
package/lib/factory/person.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IProgramMembership } from './programMembership';
|
|
|
3
3
|
import { IPropertyValue } from './propertyValue';
|
|
4
4
|
import * as ThingFactory from './thing';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* 追加特性
|
|
7
7
|
*/
|
|
8
8
|
export declare type IAdditionalProperty = IPropertyValue<string>[];
|
|
9
9
|
export import IIdentifier = ThingFactory.IIdentifier;
|
|
@@ -12,10 +12,6 @@ export declare type IMemberOf = IProgramMembership;
|
|
|
12
12
|
* プロフィール
|
|
13
13
|
*/
|
|
14
14
|
export interface IProfile extends ThingFactory.IThing {
|
|
15
|
-
/**
|
|
16
|
-
* 追加属性
|
|
17
|
-
* プロジェクト固有の属性等
|
|
18
|
-
*/
|
|
19
15
|
additionalProperty?: IAdditionalProperty;
|
|
20
16
|
/**
|
|
21
17
|
* Physical address of the item.
|
|
@@ -46,9 +42,10 @@ export interface IProfile extends ThingFactory.IThing {
|
|
|
46
42
|
}
|
|
47
43
|
export interface IPersonAttributes {
|
|
48
44
|
/**
|
|
49
|
-
* Person ID
|
|
45
|
+
* Person ID(User sub)
|
|
50
46
|
*/
|
|
51
47
|
id: string;
|
|
48
|
+
identifier?: IIdentifier;
|
|
52
49
|
/**
|
|
53
50
|
* An Organization (or ProgramMembership) to which this Person or Organization belongs.
|
|
54
51
|
*/
|
|
@@ -9,9 +9,6 @@ export declare enum ProgramMembershipType {
|
|
|
9
9
|
*/
|
|
10
10
|
export interface IProgramMembership extends IThing {
|
|
11
11
|
typeOf: ProgramMembershipType;
|
|
12
|
-
/**
|
|
13
|
-
* The service through with the permit was granted.
|
|
14
|
-
*/
|
|
15
12
|
/**
|
|
16
13
|
* A unique identifier for the membership.
|
|
17
14
|
*/
|
package/lib/factory/seller.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IMultilingualString } from './multilingualString';
|
|
1
2
|
import { IOrganization } from './organization';
|
|
2
3
|
import { OrganizationType } from './organizationType';
|
|
3
4
|
import { IProject } from './project';
|
|
@@ -21,6 +22,7 @@ export interface ISeller extends IOrganization {
|
|
|
21
22
|
* The geographic area where a service or offered item is provided.
|
|
22
23
|
*/
|
|
23
24
|
branchCode?: string;
|
|
25
|
+
name: IMultilingualString;
|
|
24
26
|
/**
|
|
25
27
|
* A pointer to products or services offered by the organization or person.
|
|
26
28
|
*/
|
|
@@ -5,12 +5,29 @@ import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/money
|
|
|
5
5
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
6
6
|
import { IExtendId } from '../autoGenerated';
|
|
7
7
|
import { IMonetaryAmount } from '../monetaryAmount';
|
|
8
|
-
import {
|
|
8
|
+
import { OrganizationType } from '../organizationType';
|
|
9
|
+
import { PersonType } from '../personType';
|
|
9
10
|
import { IProject } from '../project';
|
|
10
11
|
import * as TransactionFactory from '../transaction';
|
|
11
12
|
import { TransactionType } from '../transactionType';
|
|
12
13
|
export declare type IAgent = TransactionFactory.IAgent;
|
|
13
|
-
export
|
|
14
|
+
export interface IRecipientAsPerson {
|
|
15
|
+
typeOf: PersonType.Person;
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* 受取人名称
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IRecipientAsSeller {
|
|
23
|
+
typeOf: OrganizationType.Corporation;
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* 受取人名称
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare type IRecipient = IRecipientAsPerson | IRecipientAsSeller;
|
|
14
31
|
export import ISeller = TransactionFactory.ISeller;
|
|
15
32
|
export import IPaymentCard = MoneyTransferAssetTransactionFactory.IPaymentCard;
|
|
16
33
|
export import ITokenizedPaymentCard = MoneyTransferAssetTransactionFactory.ITokenizedPaymentCard;
|
|
@@ -23,14 +23,14 @@ export declare enum Reason {
|
|
|
23
23
|
Seller = "Seller"
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* 返品可能な注文
|
|
27
27
|
*/
|
|
28
28
|
export interface IReturnableOrder {
|
|
29
29
|
confirmationNumber: string;
|
|
30
30
|
orderNumber: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* 注文返品開始パラメータ
|
|
34
34
|
*/
|
|
35
35
|
export interface IStartParamsWithoutDetail {
|
|
36
36
|
project: IProject;
|
|
@@ -45,7 +45,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* 取引開始パラメータ
|
|
49
49
|
*/
|
|
50
50
|
export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.ReturnOrder, IAgent, undefined, IObject> {
|
|
51
51
|
/**
|
|
@@ -125,7 +125,7 @@ export interface IConfirmParams {
|
|
|
125
125
|
potentialActions?: IPotentialActionsParams;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* 取引対象物
|
|
129
129
|
*/
|
|
130
130
|
export interface IObject {
|
|
131
131
|
order: IReturnableOrder[];
|
|
@@ -138,12 +138,12 @@ export interface IPotentialActions {
|
|
|
138
138
|
*/
|
|
139
139
|
returnOrder: IReturnOrderActionAttributes[];
|
|
140
140
|
}
|
|
141
|
-
export declare type ITransaction = IExtendId<IAttributes>;
|
|
142
|
-
/**
|
|
143
|
-
* 返品取引インターフェース
|
|
144
|
-
*/
|
|
145
141
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
146
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* 返品取引
|
|
145
|
+
*/
|
|
146
|
+
export declare type ITransaction = IExtendId<IAttributes>;
|
|
147
147
|
export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.ReturnOrder> {
|
|
148
148
|
object?: {
|
|
149
149
|
order?: {
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import * as waiter from '@waiter/factory';
|
|
2
2
|
import { IExtendId } from './autoGenerated';
|
|
3
3
|
import * as EmailFactory from './creativeWork/message/email';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import { IWebApplicationAttributes } from './creativeWork/softwareApplication/webApplication';
|
|
5
|
+
import { IMultilingualString } from './multilingualString';
|
|
6
|
+
import { OrganizationType } from './organizationType';
|
|
7
|
+
import { IIdentifier, IPersonAttributes } from './person';
|
|
6
8
|
import { PersonType } from './personType';
|
|
7
9
|
import { IProject } from './project';
|
|
8
|
-
import * as SellerFactory from './seller';
|
|
9
10
|
import { SortType } from './sortType';
|
|
10
11
|
import { TransactionStatusType } from './transactionStatusType';
|
|
11
12
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
12
13
|
import { TransactionType } from './transactionType';
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
14
|
+
export interface IAgentAsWebApplication extends IWebApplicationAttributes {
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IAgentAsPerson extends IPersonAttributes {
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type IAgent = IAgentAsWebApplication | IAgentAsPerson;
|
|
18
21
|
/**
|
|
19
22
|
* 販売者
|
|
20
|
-
* 最適化(2022-05-20~)
|
|
21
23
|
*/
|
|
22
|
-
export
|
|
24
|
+
export interface ISeller {
|
|
25
|
+
typeOf: OrganizationType.Corporation;
|
|
26
|
+
id: string;
|
|
27
|
+
name: IMultilingualString;
|
|
28
|
+
}
|
|
23
29
|
/**
|
|
24
30
|
* Eメール送信パラメータ
|
|
25
31
|
*/
|
|
@@ -157,7 +163,7 @@ export interface ISearchConditions<T extends TransactionType> {
|
|
|
157
163
|
agent?: {
|
|
158
164
|
typeOf?: PersonType;
|
|
159
165
|
ids?: string[];
|
|
160
|
-
identifiers?:
|
|
166
|
+
identifiers?: IIdentifier;
|
|
161
167
|
givenName?: string;
|
|
162
168
|
familyName?: string;
|
|
163
169
|
telephone?: string;
|