@chevre/factory 11.1.0-alpha.8 → 11.1.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.
@@ -1,12 +1,6 @@
1
1
  import { IProject } from './project';
2
2
  import { IPropertyValue } from './propertyValue';
3
3
  import { SortType } from './sortType';
4
- export interface IDefinedTerm {
5
- typeOf: 'DefinedTerm';
6
- termCode: string;
7
- name?: string;
8
- description?: string;
9
- }
10
4
  /**
11
5
  * 勘定科目
12
6
  * {@link https://pending.schema.org/CategoryCode}
@@ -22,25 +16,14 @@ export interface IAccountTitle {
22
16
  * The name of the item.
23
17
  */
24
18
  name?: string;
25
- /**
26
- * A description of the item.
27
- */
28
- /**
29
- * A CategoryCodeSet that contains this catagory code.
30
- */
31
- inCodeSet?: IAccountTitle;
32
19
  /**
33
20
  * A Category code contained in this code set.
34
21
  */
35
- hasCategoryCode?: IAccountTitle[];
36
- /**
37
- * A DefinedTermSet that contains this term.
38
- */
39
- inDefinedTermSet?: IDefinedTerm;
22
+ hasCategoryCode?: Pick<IAccountTitle, 'additionalProperty' | 'codeValue' | 'hasCategoryCode' | 'name' | 'typeOf'>[];
40
23
  /**
41
- * A Defined Term contained in this term set.
24
+ * 一部プロジェクトの細目のみに存在
25
+ * 廃止予定(2026-10-25~)
42
26
  */
43
- hasDefinedTerm?: IDefinedTerm[];
44
27
  additionalProperty?: IPropertyValue<string>[];
45
28
  }
46
29
  /**
@@ -65,19 +48,30 @@ export interface ISearchConditions {
65
48
  $eq?: string;
66
49
  };
67
50
  name?: string;
51
+ /**
52
+ * 科目
53
+ */
68
54
  inCodeSet?: {
69
55
  codeValue?: string | {
70
56
  $eq?: string;
71
57
  };
72
- name?: string;
58
+ /**
59
+ * 科目分類
60
+ */
73
61
  inCodeSet?: {
74
62
  codeValue?: string | {
75
63
  $eq?: string;
76
64
  };
77
- name?: string;
78
65
  };
79
66
  };
67
+ /**
68
+ * 細目追加特性
69
+ */
80
70
  additionalProperty?: {
81
- $elemMatch?: any;
71
+ $elemMatch?: {
72
+ name: {
73
+ $eq: string;
74
+ };
75
+ };
82
76
  };
83
77
  }
@@ -1,12 +1,23 @@
1
1
  import { IParticipantAsProject } from '../../../../action';
2
- import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
2
+ import { ICreativeWork as IEmailMessage, ISender } from '../../../../creativeWork/message/email';
3
3
  import { ISimpleOrder } from '../../../../order';
4
4
  import { IRecipe, ISendMultipleArgs, ISendMultipleResult } from '../../../../recipe/sendEmailMessage';
5
5
  import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../send';
6
6
  export { IRecipe, ISendMultipleArgs, ISendMultipleResult };
7
7
  export type IAgent = IParticipantAsProject;
8
- export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'sender' | 'text' | 'toRecipient' | 'typeOf'>;
9
- export type IOptimizedObject = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
8
+ /**
9
+ * 生のメッセージ指定
10
+ */
11
+ export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'text' | 'toRecipient' | 'typeOf'> & {
12
+ sender: Pick<ISender, 'name' | 'typeOf' | 'email'> & {};
13
+ };
14
+ /**
15
+ * メッセージリポジトリに対応(2024-04-29~)
16
+ */
17
+ export type IObjectByIdentifier = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
18
+ /**
19
+ * メッセージ識別子
20
+ */
10
21
  identifier: string;
11
22
  text?: never;
12
23
  };
@@ -14,7 +25,7 @@ export type IObject =
14
25
  /**
15
26
  * @deprecated use IOptimizedObject
16
27
  */
17
- IObjectAsEmailMessage | IOptimizedObject;
28
+ IObjectAsEmailMessage | IObjectByIdentifier;
18
29
  export interface IResult {
19
30
  statusCode?: number;
20
31
  statusMessage?: string;
@@ -7,6 +7,14 @@ export interface IParticipant {
7
7
  name: string;
8
8
  email: string;
9
9
  }
10
+ export interface ISender {
11
+ typeOf?: string;
12
+ name: string;
13
+ /**
14
+ * optional(2026-10-20~)
15
+ */
16
+ email?: string;
17
+ }
10
18
  export declare enum AboutIdentifier {
11
19
  OnOrderSent = "OnOrderSent",
12
20
  OnOrderRefunded = "OnOrderRefunded",
@@ -24,7 +32,7 @@ export interface IAbout extends Pick<IThing, 'name'> {
24
32
  export interface ICreativeWork extends Pick<IBaseCreativeWork, 'id' | 'identifier' | 'name' | 'typeOf'> {
25
33
  project?: Pick<IProject, 'id' | 'typeOf'>;
26
34
  typeOf: CreativeWorkType.EmailMessage;
27
- sender: IParticipant;
35
+ sender: ISender;
28
36
  toRecipient: IParticipant[];
29
37
  about: IAbout;
30
38
  text: string;
@@ -1,4 +1,4 @@
1
1
  import { IAccountTitle } from '../accountTitle';
2
- export type IAccountTitleAsNotification = Pick<IAccountTitle, 'additionalProperty' | 'codeValue' | 'hasCategoryCode' | 'name' | 'project' | 'typeOf'> & {
2
+ export type IAccountTitleAsNotification = Pick<IAccountTitle, 'codeValue' | 'hasCategoryCode' | 'name' | 'project' | 'typeOf'> & {
3
3
  id: string;
4
4
  };
@@ -35,8 +35,17 @@ type IEventOfferAsNotification = (Pick<IExtensibleEventOffer, 'itemOffered' | 't
35
35
  * 外部へのイベント通知
36
36
  * redefine(2025-11-01~)
37
37
  */
38
- type IEventAsNotification = Pick<IScreeningEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'superEvent' | 'id' | 'additionalProperty'> & {
38
+ type IEventAsNotification = Pick<IScreeningEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'id' | 'additionalProperty'> & {
39
39
  offers: IEventOfferAsNotification;
40
40
  identifier?: string;
41
+ /**
42
+ * minimize superEvent(2026-10-22~)
43
+ */
44
+ superEvent: Pick<IScreeningEvent['superEvent'], 'id' | 'typeOf'> & {
45
+ /**
46
+ * コンテンツは決して含まれない
47
+ */
48
+ workPerformed?: never;
49
+ };
41
50
  };
42
51
  export { IEvent4inform2agg, IEventAsNotification, IEventOfferAsNotification, IEventSellerMakesOfferAsNotification };
@@ -1,2 +1,8 @@
1
1
  import { IUnitPriceOffer } from '../unitPriceOffer';
2
- export type IOfferAsNotification = Pick<IUnitPriceOffer, 'id' | 'typeOf' | 'name' | 'priceSpecification' | 'additionalProperty' | 'identifier' | 'project'>;
2
+ /**
3
+ * 通知開始
4
+ * 2026-10-21~
5
+ */
6
+ export type IOfferAsNotification = Pick<IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'description' | 'typeOf' | 'additionalProperty' | 'project'> & {
7
+ priceSpecification?: never;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "11.1.0-alpha.8",
3
+ "version": "11.1.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [