@chevre/factory 4.369.0-alpha.6 → 4.369.0-alpha.7

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,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,6 +1,7 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
2
  import { IMemberRole } from './iam';
3
3
  import { IOrder } from './order';
4
+ import { OrganizationType } from './organizationType';
4
5
  import { IOwnershipInfo, IPermitAsGood, IPermitIssuedThrough, IReservation } from './ownershipInfo';
5
6
  import { PersonType } from './personType';
6
7
  import { IProject } from './project';
@@ -20,18 +21,23 @@ export interface IAudience {
20
21
  * クライアントID
21
22
  */
22
23
  id: string;
23
- typeOf: string;
24
+ typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
24
25
  }
25
26
  export interface IAuthor {
26
27
  id: string;
27
28
  typeOf: PersonType.Person | CreativeWorkType.WebApplication;
28
29
  }
30
+ export interface IIssuedBy {
31
+ id: string;
32
+ typeOf: OrganizationType.Corporation | OrganizationType.Project;
33
+ }
29
34
  /**
30
35
  * 承認
31
36
  */
32
37
  export interface IAuthorization {
33
38
  project: Pick<IProject, 'id' | 'typeOf'>;
34
39
  typeOf: 'Authorization';
40
+ id?: string;
35
41
  /**
36
42
  * 承認コード
37
43
  */
@@ -50,6 +56,7 @@ export interface IAuthorization {
50
56
  validUntil: Date;
51
57
  audience?: IAudience;
52
58
  author?: IAuthor;
59
+ issuedBy?: IIssuedBy;
53
60
  }
54
61
  /**
55
62
  * ソート条件
@@ -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.6",
3
+ "version": "4.369.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",