@chevre/factory 4.369.0-alpha.0 → 4.369.0-alpha.10

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,4 @@
1
- import type * as surfrock from '@surfrock/sdk';
1
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { OrganizationType } from '../../../organizationType';
4
4
  import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
@@ -6,8 +6,8 @@ import { TransactionType } from '../../../transactionType';
6
6
  import * as CheckActionFactory from '../../check';
7
7
  import * as PayActionFactory from '../../trade/pay';
8
8
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
9
- export type IPurchaseNumberAuthIn = surfrock.service.auth.factory.IPurchaseNumberAuthIn;
10
- export type IPurchaseNumberAuthResult = surfrock.service.auth.factory.IPurchaseNumberAuthResult;
9
+ export type IPurchaseNumberAuthIn = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
10
+ export type IPurchaseNumberAuthResult = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
11
11
  /**
12
12
  * 認証対象のmovieTicket
13
13
  */
@@ -1,10 +1,17 @@
1
1
  import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../action';
2
2
  import { PlaceType } from '../../../placeType';
3
- import { IReservation } from '../../../reservation/event';
3
+ import { ITicket, ITicketType } from '../../../reservation';
4
+ import { IIssuedThrough, IReservation, IReservationFor } from '../../../reservation/event';
4
5
  import { ObjectType } from '../../check/token';
5
6
  import * as UseActionFactory from '../use';
6
7
  export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
7
- export type IReservationAsObject = Pick<IReservation, 'id' | 'issuedThrough' | 'reservationFor' | 'reservationNumber' | 'reservedTicket' | 'typeOf'>;
8
+ export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
9
+ issuedThrough: Pick<IIssuedThrough, 'id' | 'typeOf'>;
10
+ reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
11
+ reservedTicket: Pick<ITicket, 'identifier' | 'ticketedSeat' | 'typeOf'> & {
12
+ ticketType: Pick<ITicketType, 'id' | 'identifier' | 'typeOf'>;
13
+ };
14
+ }
8
15
  export type IObject = IReservationAsObject[];
9
16
  export interface IResult {
10
17
  }
@@ -1,5 +1,5 @@
1
1
  import type * as GMO from '@motionpicture/gmo-service';
2
- import type * as surfrock from '@surfrock/sdk';
2
+ import { factory as surfrockFactory } from '@surfrock/sdk';
3
3
  import * as ActionFactory from '../../action';
4
4
  import { ActionType } from '../../actionType';
5
5
  import { TransactionType } from '../../transactionType';
@@ -17,12 +17,16 @@ export interface ISeatInfoSyncResultAsError {
17
17
  name: string;
18
18
  message: string;
19
19
  }
20
- export type ISeatInfoSyncIn = surfrock.service.seat.factory.ISeatInfoSyncIn;
21
- export type ISeatInfoSyncResult = surfrock.service.seat.factory.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
20
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
21
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
22
+ export type ISeatInfoSyncCancelIn = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
23
+ export type ISeatInfoSyncCancelResult = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | ISeatInfoSyncResultAsError;
22
24
  export interface IResult {
23
25
  alterTranResult?: IAlterTranResult[];
24
26
  seatInfoSyncIn?: ISeatInfoSyncIn;
25
27
  seatInfoSyncResult?: ISeatInfoSyncResult;
28
+ seatInfoSyncCancelIn?: ISeatInfoSyncCancelIn;
29
+ seatInfoSyncCancelResult?: ISeatInfoSyncCancelResult;
26
30
  /**
27
31
  * ペイメントカード決済の場合
28
32
  */
@@ -4,12 +4,16 @@ import { ISimpleOrder } from '../../../../order';
4
4
  import * as SendActionFactory from '../../send';
5
5
  export type IAgent = IParticipantAsProject;
6
6
  export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
7
- /**
8
- * オブジェクト
9
- * 「Eメール通知」を送信する
10
- */
11
- export type IObject = IEmailMessage;
12
- export type IResult = any;
7
+ export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'sender' | 'text' | 'toRecipient' | 'typeOf'>;
8
+ export type IOptimizedObject = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
9
+ identifier: string;
10
+ text?: never;
11
+ };
12
+ export type IObject = IObjectAsEmailMessage | IOptimizedObject;
13
+ export interface IResult {
14
+ statusCode?: number;
15
+ statusMessage?: string;
16
+ }
13
17
  export type IPurpose = ISimpleOrder;
14
18
  export interface IPotentialActions {
15
19
  }
@@ -18,11 +18,13 @@ export type IObject = OrderFactory.ISimpleOrder & {
18
18
  * 注文配送結果としての所有権
19
19
  */
20
20
  export type IResult = IOwnershipInfo<IGood>[];
21
+ export type ISendEmailMessage = Pick<ISendEmailMessageActionAttributes, 'object'>;
21
22
  export interface IPotentialActions {
22
23
  /**
23
24
  * Eメール送信アクション
25
+ * 注文処理後のメッセージ送信として機能しているので注意
24
26
  */
25
- sendEmailMessage?: ISendEmailMessageActionAttributes[];
27
+ sendEmailMessage?: ISendEmailMessage[];
26
28
  }
27
29
  export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
28
30
  agent: IAgent;
@@ -1,5 +1,9 @@
1
+ import { CreativeWorkType } from './creativeWorkType';
2
+ import { IMember, IMemberOfRole } from './iam';
1
3
  import { IOrder } from './order';
4
+ import { OrganizationType } from './organizationType';
2
5
  import { IOwnershipInfo, IPermitAsGood, IPermitIssuedThrough, IReservation } from './ownershipInfo';
6
+ import { PersonType } from './personType';
3
7
  import { IProject } from './project';
4
8
  import { SortType } from './sortType';
5
9
  export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
@@ -10,13 +14,35 @@ export type IPermitAsObjectTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'type
10
14
  export type IPermitOwnershipInfoAsObject = Pick<IOwnershipInfo<IPermitAsObjectTypeOfGood>, 'id' | 'identifier' | 'typeOf' | 'typeOfGood'>;
11
15
  export type IReservationOwnershipInfoAsObject = Pick<IOwnershipInfo<IReservation>, 'id' | 'identifier' | 'typeOf' | 'typeOfGood'>;
12
16
  export type IOwnershipInfoAsObject = IPermitOwnershipInfoAsObject | IReservationOwnershipInfoAsObject;
13
- export type IObject = IOrderAsObject | IOwnershipInfoAsObject;
17
+ /**
18
+ * 承認対象としてのIAMメンバー
19
+ */
20
+ export type IRoleAsObject = Pick<IMember, 'member' | 'typeOf'> & {
21
+ member: Pick<IMemberOfRole, 'hasRole' | 'id' | 'memberOf' | 'typeOf'>;
22
+ };
23
+ export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IRoleAsObject;
24
+ export interface IAudience {
25
+ /**
26
+ * クライアントID
27
+ */
28
+ id: string;
29
+ typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
30
+ }
31
+ export interface IAuthor {
32
+ id: string;
33
+ typeOf: PersonType.Person | CreativeWorkType.WebApplication;
34
+ }
35
+ export interface IIssuedBy {
36
+ id: string;
37
+ typeOf: OrganizationType.Corporation | OrganizationType.Project;
38
+ }
14
39
  /**
15
40
  * 承認
16
41
  */
17
42
  export interface IAuthorization {
18
43
  project: Pick<IProject, 'id' | 'typeOf'>;
19
44
  typeOf: 'Authorization';
45
+ id?: string;
20
46
  /**
21
47
  * 承認コード
22
48
  */
@@ -33,6 +59,9 @@ export interface IAuthorization {
33
59
  * 有効期間
34
60
  */
35
61
  validUntil: Date;
62
+ audience?: IAudience;
63
+ author?: IAuthor;
64
+ issuedBy?: IIssuedBy;
36
65
  }
37
66
  /**
38
67
  * ソート条件
@@ -1,9 +1,5 @@
1
1
  /**
2
- * アプリケーションクライアントユーザーファクトリー
3
- * クライアントサイドでapiを利用するユーザー
4
- */
5
- /**
6
- * クライアントユーザーインターフェース
2
+ * クライアントユーザー
7
3
  */
8
4
  export interface IClientUser {
9
5
  sub: string;
@@ -13,8 +9,10 @@ export interface IClientUser {
13
9
  iss: string;
14
10
  exp: number;
15
11
  iat: number;
16
- version: number;
12
+ version: number | string;
17
13
  jti: string;
18
14
  client_id: string;
19
15
  username?: string;
16
+ aud?: string;
17
+ typ?: string;
20
18
  }
package/lib/clientUser.js CHANGED
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * アプリケーションクライアントユーザーファクトリー
4
- * クライアントサイドでapiを利用するユーザー
5
- */
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,8 @@ export interface ICreativeWork extends Pick<CreativeWorkFactory.ICreativeWork, '
28
28
  toRecipient: IParticipant[];
29
29
  about: IAbout;
30
30
  text: string;
31
+ name?: string;
32
+ identifier?: string;
31
33
  }
32
34
  export interface ICustomizedParticipant {
33
35
  name?: string;
@@ -0,0 +1,9 @@
1
+ import * as CreativeWorkFactory from '../creativeWork';
2
+ import { CreativeWorkType } from '../creativeWorkType';
3
+ /**
4
+ * ソフトウェア
5
+ */
6
+ export interface ISoftwareApplication extends Pick<CreativeWorkFactory.ICreativeWork, 'id' | 'typeOf'> {
7
+ id: string;
8
+ typeOf: CreativeWorkType.SoftwareApplication;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,5 +6,6 @@ export declare enum CreativeWorkType {
6
6
  EmailMessage = "EmailMessage",
7
7
  Movie = "Movie",
8
8
  NoteDigitalDocument = "NoteDigitalDocument",
9
+ SoftwareApplication = "SoftwareApplication",
9
10
  WebApplication = "WebApplication"
10
11
  }
@@ -10,5 +10,6 @@ var CreativeWorkType;
10
10
  CreativeWorkType["EmailMessage"] = "EmailMessage";
11
11
  CreativeWorkType["Movie"] = "Movie";
12
12
  CreativeWorkType["NoteDigitalDocument"] = "NoteDigitalDocument";
13
+ CreativeWorkType["SoftwareApplication"] = "SoftwareApplication";
13
14
  CreativeWorkType["WebApplication"] = "WebApplication";
14
15
  })(CreativeWorkType = exports.CreativeWorkType || (exports.CreativeWorkType = {}));
package/lib/iam.d.ts CHANGED
@@ -32,7 +32,7 @@ export interface IRoleSearchConditions {
32
32
  $eq?: string;
33
33
  };
34
34
  }
35
- export type IMemberType = PersonType | CreativeWorkType.WebApplication;
35
+ export type IMemberType = PersonType | CreativeWorkType.WebApplication | CreativeWorkType.SoftwareApplication;
36
36
  export type IMemberRole = Pick<IRole, 'typeOf' | 'roleName'>;
37
37
  export type IProgramMembershipOfProject = Pick<IProgramMembership, 'typeOf'> & {
38
38
  issuer: string;
package/lib/index.d.ts CHANGED
@@ -54,6 +54,7 @@ import * as CommentFactory from './creativeWork/comment';
54
54
  import * as EmailMessageFactory from './creativeWork/message/email';
55
55
  import * as MovieFactory from './creativeWork/movie';
56
56
  import * as NoteDigitalDocumentFactory from './creativeWork/noteDigitalDocument';
57
+ import * as SoftwareApplicationFactory from './creativeWork/softwareApplication';
57
58
  import * as WebApplicationFactory from './creativeWork/softwareApplication/webApplication';
58
59
  import { CreativeWorkType } from './creativeWorkType';
59
60
  import * as CustomerFactory from './customer';
@@ -305,6 +306,7 @@ export declare namespace creativeWork {
305
306
  export import movie = MovieFactory;
306
307
  export import noteDigitalDocument = NoteDigitalDocumentFactory;
307
308
  namespace softwareApplication {
309
+ export import ISoftwareApplication = SoftwareApplicationFactory.ISoftwareApplication;
308
310
  export import webApplication = WebApplicationFactory;
309
311
  }
310
312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.369.0-alpha.0",
3
+ "version": "4.369.0-alpha.10",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -56,7 +56,7 @@
56
56
  "@aws-sdk/client-cognito-identity-provider": "3.438.0",
57
57
  "@motionpicture/coa-service": "9.4.0",
58
58
  "@motionpicture/gmo-service": "5.3.0",
59
- "@surfrock/sdk": "1.1.0",
59
+ "@surfrock/sdk": "1.3.0-alpha.2",
60
60
  "@waiter/factory": "2.2.0",
61
61
  "setprototypeof": "1.2.0"
62
62
  },