@chevre/factory 8.2.0-alpha.7 → 8.2.0-alpha.9

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,4 +1,3 @@
1
- import type { passport } from '@waiter/factory';
2
1
  import { IAttributes as ISendEmailMessageActionAttributes } from '../action/transfer/send/message/email';
3
2
  import { IExtendId } from '../autoGenerated';
4
3
  import { IClientUser } from '../clientUser';
@@ -19,7 +18,7 @@ export type IAgent = IBaseAgent & {
19
18
  * 外部メンバーシップトークン
20
19
  */
21
20
  memberOfToken?: string;
22
- memberOfPayload?: IMemberOfPayload;
21
+ memberOfPayload?: never;
23
22
  };
24
23
  export type ICustomerInObject = Pick<IOrderCustomer, 'id' | 'identifier' | 'typeOf'>;
25
24
  export interface IPaymentMethodByPaymentUrl {
@@ -30,10 +29,8 @@ export interface IPaymentMethodByPaymentUrl {
30
29
  paymentMethodId: string;
31
30
  }
32
31
  export interface IObject {
33
- clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
34
32
  broker?: Pick<IBroker, 'id' | 'typeOf'>;
35
33
  customer?: ICustomerInObject;
36
- identifier?: IOrderIdentifier;
37
34
  /**
38
35
  * 確認番号
39
36
  */
@@ -42,19 +39,16 @@ export interface IObject {
42
39
  * 注文番号
43
40
  */
44
41
  orderNumber?: string;
45
- /**
46
- * 注文名称
47
- */
48
- name?: string;
49
42
  /**
50
43
  * 決済URLでの決済情報
51
44
  */
52
45
  paymentMethods?: IPaymentMethodByPaymentUrl;
53
- /**
54
- * WAITER許可証
55
- */
56
- passport?: passport.IPassport;
46
+ name?: never;
47
+ identifier?: never;
48
+ clientUser?: never;
49
+ passport?: never;
57
50
  }
51
+ export type IClientUserBeforeStart = Pick<IClientUser, 'aud' | 'client_id' | 'exp' | 'iat' | 'iss' | 'jti' | 'sub' | 'token_use' | 'username'>;
58
52
  export interface IStartParamsWithoutDetail {
59
53
  project: Pick<IProject, 'id' | 'typeOf'>;
60
54
  agent: IAgent;
@@ -62,13 +56,10 @@ export interface IStartParamsWithoutDetail {
62
56
  id: string;
63
57
  };
64
58
  object: {
65
- clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
59
+ clientUser?: IClientUserBeforeStart;
66
60
  customer?: ICustomerInObject;
67
61
  passport?: IPassportBeforeStart;
68
- /**
69
- * 注文名称
70
- */
71
- name?: string;
62
+ name?: never;
72
63
  };
73
64
  }
74
65
  export type ISeller = IBaseSeller & Pick<IOrderSeller, 'additionalProperty'>;
@@ -143,7 +134,7 @@ export interface IConfirmParams {
143
134
  */
144
135
  result?: IResultParams;
145
136
  }
146
- export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'>;
137
+ export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'> & {};
147
138
  export interface IAuthorizeActionAsResult {
148
139
  id: string;
149
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.2.0-alpha.7",
3
+ "version": "8.2.0-alpha.9",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [