Skip to content

Commit

Permalink
Merge branch 'release/4.359.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Mar 1, 2024
2 parents b452ae5 + 2264e10 commit c460a77
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -18,6 +18,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Security

## v4.359.0 - 2024-03-01

### Changed

- 所有権のIOwnerを最適化

## v4.358.0 - 2024-02-28

### Changed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@chevre/factory",
"version": "4.358.0",
"version": "4.359.0",
"description": "Chevre Factory Library for Javascript",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
22 changes: 4 additions & 18 deletions src/ownershipInfo.ts
Expand Up @@ -4,7 +4,6 @@ import * as PermitFactory from './permit';
import { PersonType } from './personType';
import * as ProductFactory from './product';
import { IProject } from './project';
import { IPropertyValue } from './propertyValue';
import { IReservation as IBusReservation } from './reservation/busReservation';
import { IReservation as IEventReservation } from './reservation/event';
import { ReservationType } from './reservationType';
Expand Down Expand Up @@ -58,8 +57,6 @@ export type IPermitIssuedThrough = Pick<PermitFactory.IIssuedThrough, 'id' | 'ty
export type IPermitAsGood = Pick<
PermitFactory.IPermit,
'identifier' | 'typeOf' | 'name' | 'validFor'
// | 'issuedThrough'
// | 'project' // 不要なので廃止(2023-02-01~)
> & {
issuedThrough?: IPermitIssuedThrough;
};
Expand All @@ -71,35 +68,24 @@ export type IGood = IReservation | IPermitAsGood;
* 所有対象物(対象物詳細有)
*/
export type IGoodWithDetail = IReservationWithDetail | PermitFactory.IPermit;
/**
* 所有者
*/
export interface IOwnerAsOrganization {
// 個人情報排除するように
typeOf: OrganizationType.Organization;
id: string;
// 不要なので廃止(2022-07-26~)
// project: { id: string; typeOf: OrganizationType.Project };
identifier?: IPropertyValue<string>[];
}
export interface IOwnerAsPerson {
// 個人情報排除するように
typeOf: PersonType;
id: string;
identifier?: IPropertyValue<string>[];
// 不要なので廃止(2022-07-26~)
// memberOf?: IMemberOf;
}
export interface IOwnerAsWebApplication {
// 個人情報排除するように
typeOf: CreativeWorkType.WebApplication;
id: string;
identifier?: IPropertyValue<string>[];
}
/**
* 所有者
* 個人情報排除するように
*/
export type IOwner = IOwnerAsOrganization | IOwnerAsPerson | IOwnerAsWebApplication;
export interface IAcquiredFrom {
// 最適化(2022-11-15~)
// project: { id: string; typeOf: OrganizationType.Project };
id: string;
typeOf: OrganizationType.Corporation;
name: string;
Expand Down

0 comments on commit c460a77

Please sign in to comment.