@chevre/factory 4.399.0-alpha.21 → 4.399.0-alpha.23

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.
@@ -11,6 +11,15 @@ interface IAcceptedPaymentMethod {
11
11
  */
12
12
  identifier: string;
13
13
  }
14
+ interface IOfferedByAsSeller {
15
+ id: string;
16
+ typeOf: OrganizationType.Corporation;
17
+ }
18
+ interface IOfferedByAsProject {
19
+ id: string;
20
+ typeOf: OrganizationType.Project;
21
+ }
22
+ type IOfferedBy = IOfferedByAsSeller | IOfferedByAsProject;
14
23
  interface IProductOfferCommonAttributes {
15
24
  project: {
16
25
  id: string;
@@ -30,11 +39,16 @@ interface IProductOfferCommonAttributes {
30
39
  */
31
40
  identifier: string;
32
41
  };
42
+ offeredBy: IOfferedBy;
33
43
  availability: ItemAvailability.InStock | ItemAvailability.OutOfStock;
34
44
  validFrom: Date;
35
45
  validThrough: Date;
36
46
  }
37
47
  interface IProductOfferAcceptedPaymentMethod extends IProductOfferCommonAttributes {
48
+ /**
49
+ * オファー提供プロジェクト
50
+ */
51
+ offeredBy: IOfferedByAsProject;
38
52
  acceptedPaymentMethod: IAcceptedPaymentMethod;
39
53
  validForMemberTier?: never;
40
54
  }
@@ -42,6 +56,10 @@ interface IProductOfferAcceptedPaymentMethod extends IProductOfferCommonAttribut
42
56
  * メンバープログラムティアで有効なプロダクトオファー
43
57
  */
44
58
  interface IProductOfferValidForMemberTier extends IProductOfferCommonAttributes {
59
+ /**
60
+ * オファー提供販売者
61
+ */
62
+ offeredBy: IOfferedByAsSeller;
45
63
  acceptedPaymentMethod?: never;
46
64
  /**
47
65
  * 有効なメンバープログラムティア
@@ -75,8 +93,20 @@ interface ISearchConditions {
75
93
  $in?: string[];
76
94
  };
77
95
  itemOffered?: {
96
+ /**
97
+ * オファーコレクションコード
98
+ */
78
99
  identifier?: {
79
100
  $eq?: string;
101
+ $in?: string[];
102
+ };
103
+ };
104
+ offeredBy?: {
105
+ /**
106
+ * オファー提供者ID(販売者あるいはプロジェクト)
107
+ */
108
+ id?: {
109
+ $eq?: string;
80
110
  };
81
111
  };
82
112
  validForMemberTier?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.399.0-alpha.21",
3
+ "version": "4.399.0-alpha.23",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",