@chevre/factory 4.392.0-alpha.4 → 4.392.0-alpha.6

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/iam.d.ts CHANGED
@@ -6,10 +6,61 @@ import { SortType } from './sortType';
6
6
  export declare enum RoleType {
7
7
  OrganizationRole = "OrganizationRole"
8
8
  }
9
+ export declare enum RoleName {
10
+ /**
11
+ * 注文取引クライアント
12
+ */
13
+ Customer = "customer",
14
+ POS = "pos",
15
+ /**
16
+ * publicリソース検索クライアント
17
+ */
18
+ EventsViewer = "events.viewer",
19
+ /**
20
+ * 任意のサーバーアプリケーション
21
+ */
22
+ Server = "server",
23
+ /**
24
+ * プロジェクトオーナー
25
+ */
26
+ Owner = "owner",
27
+ User = "user",
28
+ /**
29
+ * 販売者管理
30
+ */
31
+ SellerAdmin = "sellerAdmin",
32
+ /**
33
+ * チケット管理
34
+ */
35
+ TicketClerk = "ticketClerk",
36
+ /**
37
+ * 在庫管理
38
+ */
39
+ InventoryManager = "inventoryManager",
40
+ Accountant = "accountant",
41
+ /**
42
+ * チケット収集
43
+ */
44
+ TicketCollector = "ticketCollector",
45
+ /**
46
+ * メンバー管理
47
+ */
48
+ IAMRoleAdmin = "iam.roleAdmin",
49
+ /**
50
+ * 決済サービス編集者
51
+ */
52
+ PaymentServiceEditor = "paymentServiceEditor",
53
+ /**
54
+ * 販売者オーナー
55
+ */
56
+ SellersOwner = "sellers.owner",
57
+ SellersInventoryManager = "sellers.inventoryManager",
58
+ SellersIAMRoleAdmin = "sellers.iam.roleAdmin"
59
+ }
9
60
  export interface IRole {
10
61
  typeOf: RoleType;
11
62
  permissions: string[];
12
- roleName: string;
63
+ roleName: RoleName;
13
64
  memberOf: {
14
65
  typeOf: OrganizationType.Project;
15
66
  id: string;
@@ -92,13 +143,14 @@ export interface ISearchConditions {
92
143
  project?: {
93
144
  id?: {
94
145
  $eq?: string;
95
- $regex?: string;
146
+ $in?: string[];
96
147
  };
97
148
  };
98
149
  member?: {
99
150
  hasRole?: {
100
151
  roleName?: {
101
152
  $eq?: string;
153
+ $in?: string[];
102
154
  };
103
155
  };
104
156
  id?: {
package/lib/iam.js CHANGED
@@ -1,7 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoleType = void 0;
3
+ exports.RoleName = exports.RoleType = void 0;
4
4
  var RoleType;
5
5
  (function (RoleType) {
6
6
  RoleType["OrganizationRole"] = "OrganizationRole";
7
7
  })(RoleType = exports.RoleType || (exports.RoleType = {}));
8
+ var RoleName;
9
+ (function (RoleName) {
10
+ /**
11
+ * 注文取引クライアント
12
+ */
13
+ RoleName["Customer"] = "customer";
14
+ RoleName["POS"] = "pos";
15
+ /**
16
+ * publicリソース検索クライアント
17
+ */
18
+ RoleName["EventsViewer"] = "events.viewer";
19
+ /**
20
+ * 任意のサーバーアプリケーション
21
+ */
22
+ RoleName["Server"] = "server";
23
+ /**
24
+ * プロジェクトオーナー
25
+ */
26
+ RoleName["Owner"] = "owner";
27
+ RoleName["User"] = "user";
28
+ /**
29
+ * 販売者管理
30
+ */
31
+ RoleName["SellerAdmin"] = "sellerAdmin";
32
+ /**
33
+ * チケット管理
34
+ */
35
+ RoleName["TicketClerk"] = "ticketClerk";
36
+ /**
37
+ * 在庫管理
38
+ */
39
+ RoleName["InventoryManager"] = "inventoryManager";
40
+ RoleName["Accountant"] = "accountant";
41
+ // PeopleAdmin = 'people.admin', // discontinue(2024-12-17~)
42
+ /**
43
+ * チケット収集
44
+ */
45
+ RoleName["TicketCollector"] = "ticketCollector";
46
+ /**
47
+ * メンバー管理
48
+ */
49
+ RoleName["IAMRoleAdmin"] = "iam.roleAdmin";
50
+ /**
51
+ * 決済サービス編集者
52
+ */
53
+ RoleName["PaymentServiceEditor"] = "paymentServiceEditor";
54
+ /**
55
+ * 販売者オーナー
56
+ */
57
+ RoleName["SellersOwner"] = "sellers.owner";
58
+ RoleName["SellersInventoryManager"] = "sellers.inventoryManager";
59
+ RoleName["SellersIAMRoleAdmin"] = "sellers.iam.roleAdmin";
60
+ })(RoleName = exports.RoleName || (exports.RoleName = {}));
@@ -1,7 +1,16 @@
1
- import { ICategoryCode } from '../categoryCode';
1
+ import { CategorySetIdentifier, ICategoryCode, ICategoryCodeSet } from '../categoryCode';
2
2
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
- export type IAppliesToCategoryCode = Pick<ICategoryCode, 'typeOf' | 'codeValue' | 'inCodeSet'>;
4
+ /**
5
+ * 区分加算料金でありうる区分分類
6
+ * 2025-01-06定義
7
+ */
8
+ export type IAppliesToCategoryCodeSet = Pick<ICategoryCodeSet, 'identifier' | 'typeOf'> & {
9
+ identifier: CategorySetIdentifier.SoundFormatType | CategorySetIdentifier.SeatingType | CategorySetIdentifier.VideoFormatType;
10
+ };
11
+ export type IAppliesToCategoryCode = Pick<ICategoryCode, 'typeOf' | 'codeValue' | 'inCodeSet'> & {
12
+ inCodeSet: IAppliesToCategoryCodeSet;
13
+ };
5
14
  /**
6
15
  * 区分加算料金
7
16
  */
package/lib/product.d.ts CHANGED
@@ -1,18 +1,16 @@
1
- import { ICategoryCode } from './categoryCode';
1
+ import { CategorySetIdentifier, ICategoryCode, ICategoryCodeSet } from './categoryCode';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { IName as IOfferName, IOffer as IBaseOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
5
  import { IAmount as IPermitAmount, IPermit } from './permit';
6
- import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
6
+ import { IAppliesToCategoryCode, IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
7
7
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
8
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
9
9
  import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
10
10
  import { IInformParams, IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
12
- import { IQuantitativeValue } from './quantitativeValue';
13
12
  import { SortType } from './sortType';
14
13
  import { IThing } from './thing';
15
- import { UnitCode } from './unitCode';
16
14
  import * as UnitPriceOfferFactory from './unitPriceOffer';
17
15
  /**
18
16
  * プロダクトタイプ
@@ -262,11 +260,37 @@ export interface IServiceOutputSearchConditions {
262
260
  $eq?: string;
263
261
  };
264
262
  }
265
- export type ICategoryCodeChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'id' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
263
+ export type IPriceComponentAppliesToCategoryCode = Pick<IAppliesToCategoryCode, 'typeOf' | 'codeValue' | 'inCodeSet'> & {
264
+ inCodeSet: Pick<ICategoryCodeSet, 'typeOf' | 'identifier'> & {
265
+ identifier: CategorySetIdentifier.SoundFormatType | CategorySetIdentifier.VideoFormatType;
266
+ };
267
+ };
268
+ export type ICategoryCodeChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'id' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> & {
269
+ appliesToCategoryCode: IPriceComponentAppliesToCategoryCode[];
270
+ };
266
271
  export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'id' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
267
272
  export type ITicketUnitPriceComponent = Pick<IUnitPriceSpecification, 'accounting' | 'appliesToAddOn' | 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
268
- export type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent;
269
- export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
273
+ export type IPotentialAppliesToSeatingType = Pick<IAppliesToCategoryCode, 'typeOf'> & {
274
+ inCodeSet: Pick<ICategoryCodeSet, 'typeOf'> & {
275
+ identifier: CategorySetIdentifier.SeatingType;
276
+ };
277
+ };
278
+ /**
279
+ * 潜在的な区分加算料金
280
+ */
281
+ export type IPotentialCategoryCodeChargePriceComponent = Pick<ICategoryCodeChargePriceComponent, 'accounting' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> & {
282
+ appliesToCategoryCode: IPotentialAppliesToSeatingType[];
283
+ id?: never;
284
+ name?: never;
285
+ /**
286
+ * 潜在的なので価格不明
287
+ */
288
+ price?: never;
289
+ };
290
+ /**
291
+ * プロダクトオファーの価格仕様要素
292
+ */
293
+ export type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent | IPotentialCategoryCodeChargePriceComponent;
270
294
  /**
271
295
  * プロダクトオファーの価格仕様
272
296
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.392.0-alpha.4",
3
+ "version": "4.392.0-alpha.6",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",