@chevre/factory 4.288.0 → 4.289.0-alpha.1

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.
@@ -0,0 +1,49 @@
1
+ import * as CreativeWorkFactory from '../creativeWork';
2
+ import { CreativeWorkType } from '../creativeWorkType';
3
+ import { IPerson } from '../person';
4
+ import { IProject } from '../project';
5
+ import { SortType } from '../sortType';
6
+ export interface IAbout {
7
+ id: string;
8
+ typeOf: string;
9
+ }
10
+ export declare type IAuthor = Pick<IPerson, 'id' | 'name' | 'typeOf'>;
11
+ /**
12
+ * コメント
13
+ * {@link https://schema.org/Comment}
14
+ */
15
+ export interface IComment extends Pick<CreativeWorkFactory.ICreativeWork, 'additionalProperty' | 'id' | 'typeOf'> {
16
+ about: IAbout;
17
+ author: IPerson;
18
+ commentCount?: number;
19
+ dateCreated: Date;
20
+ dateModified?: Date;
21
+ project: Pick<IProject, 'id' | 'typeOf'>;
22
+ text: string;
23
+ typeOf: CreativeWorkType.Comment;
24
+ }
25
+ /**
26
+ * ソート条件
27
+ */
28
+ export interface ISortOrder {
29
+ dateCreated?: SortType;
30
+ }
31
+ /**
32
+ * 検索条件
33
+ */
34
+ export interface ISearchConditions {
35
+ limit?: number;
36
+ page?: number;
37
+ sort?: ISortOrder;
38
+ project?: {
39
+ id?: {
40
+ $eq?: string;
41
+ };
42
+ };
43
+ about?: {
44
+ id?: {
45
+ $eq?: string;
46
+ $in?: string[];
47
+ };
48
+ };
49
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@
2
2
  * 著作物タイプ
3
3
  */
4
4
  export declare enum CreativeWorkType {
5
+ Comment = "Comment",
5
6
  EmailMessage = "EmailMessage",
6
7
  Movie = "Movie",
7
8
  WebApplication = "WebApplication"
@@ -6,6 +6,7 @@ exports.CreativeWorkType = void 0;
6
6
  */
7
7
  var CreativeWorkType;
8
8
  (function (CreativeWorkType) {
9
+ CreativeWorkType["Comment"] = "Comment";
9
10
  CreativeWorkType["EmailMessage"] = "EmailMessage";
10
11
  CreativeWorkType["Movie"] = "Movie";
11
12
  CreativeWorkType["WebApplication"] = "WebApplication";
package/lib/iam.d.ts CHANGED
@@ -36,6 +36,7 @@ export declare type IMemberHasRole = Pick<IRole, 'typeOf' | 'memberOf' | 'roleNa
36
36
  export interface IMemberOfRole {
37
37
  typeOf: IMemberType;
38
38
  id: string;
39
+ image?: string;
39
40
  name?: string;
40
41
  username?: string;
41
42
  hasRole: IMemberHasRole;
package/lib/index.d.ts CHANGED
@@ -49,6 +49,7 @@ import * as AuthorizationFactory from './authorization';
49
49
  import * as CategoryCodeFactory from './categoryCode';
50
50
  import * as ClientUserFactory from './clientUser';
51
51
  import * as CreativeWorkFactory from './creativeWork';
52
+ import * as CommentFactory from './creativeWork/comment';
52
53
  import * as EmailMessageFactory from './creativeWork/message/email';
53
54
  import * as MovieCreativeWorkFactory from './creativeWork/movie';
54
55
  import * as WebApplicationFactory from './creativeWork/softwareApplication/webApplication';
@@ -289,6 +290,7 @@ export import categoryCode = CategoryCodeFactory;
289
290
  export import clientUser = ClientUserFactory;
290
291
  export declare namespace creativeWork {
291
292
  export import ICreativeWork = CreativeWorkFactory.ICreativeWork;
293
+ export import comment = CommentFactory;
292
294
  namespace message {
293
295
  export import email = EmailMessageFactory;
294
296
  }
package/lib/index.js CHANGED
@@ -47,6 +47,7 @@ var AdditionalPropertyFactory = require("./additionalProperty");
47
47
  var AuthorizationFactory = require("./authorization");
48
48
  var CategoryCodeFactory = require("./categoryCode");
49
49
  var ClientUserFactory = require("./clientUser");
50
+ var CommentFactory = require("./creativeWork/comment");
50
51
  var EmailMessageFactory = require("./creativeWork/message/email");
51
52
  var MovieCreativeWorkFactory = require("./creativeWork/movie");
52
53
  var WebApplicationFactory = require("./creativeWork/softwareApplication/webApplication");
@@ -269,6 +270,7 @@ exports.categoryCode = CategoryCodeFactory;
269
270
  exports.clientUser = ClientUserFactory;
270
271
  var creativeWork;
271
272
  (function (creativeWork) {
273
+ creativeWork.comment = CommentFactory;
272
274
  var message;
273
275
  (function (message) {
274
276
  message.email = EmailMessageFactory;
package/lib/order.d.ts CHANGED
@@ -270,6 +270,7 @@ export interface IOrderedItem {
270
270
  * {@link https://schema.org/Order}
271
271
  */
272
272
  export interface IOrder extends ISimpleOrder {
273
+ id?: string;
273
274
  project: IProject;
274
275
  /**
275
276
  * Offer
package/lib/person.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare type IMemberOf = IProgramMembership;
11
11
  /**
12
12
  * プロフィール
13
13
  */
14
- export interface IProfile extends ThingFactory.IThing {
14
+ export interface IProfile extends Pick<ThingFactory.IThing, 'image' | 'url'> {
15
15
  additionalProperty?: IAdditionalProperty;
16
16
  /**
17
17
  * Physical address of the item.
@@ -34,6 +34,7 @@ export interface IProfile extends ThingFactory.IThing {
34
34
  * Gender of the person.
35
35
  */
36
36
  gender?: string;
37
+ identifier?: IIdentifier;
37
38
  name?: string;
38
39
  /**
39
40
  * The telephone number.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.288.0",
3
+ "version": "4.289.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",