@chevre/factory 4.230.0 → 4.231.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 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 IAgentProfile = TransactionFactory.IAgentProfile;
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;
@@ -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;
@@ -2,8 +2,16 @@
2
2
  * 組織タイプ
3
3
  */
4
4
  export declare enum OrganizationType {
5
+ /**
6
+ * 販売組織
7
+ */
5
8
  Corporation = "Corporation",
6
- MovieTheater = "MovieTheater",
9
+ /**
10
+ * 顧客組織
11
+ */
7
12
  Organization = "Organization",
13
+ /**
14
+ * プロジェクト
15
+ */
8
16
  Project = "Project"
9
17
  }
@@ -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
- OrganizationType["MovieTheater"] = "MovieTheater";
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 = {}));
@@ -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 (Amazon Cognito User Identifier)
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
  */
@@ -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 { IPerson } from '../person';
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 declare type IRecipient = IPerson | TransactionFactory.ISeller;
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;
@@ -1,21 +1,23 @@
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 { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
4
+ import { IWebApplicationAttributes } from './creativeWork/softwareApplication/webApplication';
5
5
  import { IMultilingualString } from './multilingualString';
6
6
  import { OrganizationType } from './organizationType';
7
- import * as PersonFactory from './person';
7
+ import { IIdentifier, IPersonAttributes } from './person';
8
8
  import { PersonType } from './personType';
9
9
  import { IProject } from './project';
10
10
  import { SortType } from './sortType';
11
11
  import { TransactionStatusType } from './transactionStatusType';
12
12
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
13
13
  import { TransactionType } from './transactionType';
14
- export declare type IOmittedProfileAttributes = 'email' | 'telephone' | 'familyName' | 'givenName' | 'age' | 'address' | 'gender' | 'additionalProperty' | 'url';
15
- export declare type IAgentProfile = Omit<PersonFactory.IProfile, IOmittedProfileAttributes>;
16
- export declare type IWebApplicationAgent = IWebApplication & IAgentProfile;
17
- export declare type IPersonAgent = PersonFactory.IPerson;
18
- export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
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;
19
21
  /**
20
22
  * 販売者
21
23
  */
@@ -161,7 +163,7 @@ export interface ISearchConditions<T extends TransactionType> {
161
163
  agent?: {
162
164
  typeOf?: PersonType;
163
165
  ids?: string[];
164
- identifiers?: PersonFactory.IIdentifier;
166
+ identifiers?: IIdentifier;
165
167
  givenName?: string;
166
168
  familyName?: string;
167
169
  telephone?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.230.0",
3
+ "version": "4.231.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",