@chevre/factory 4.289.0-alpha.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
|
+
}
|
package/lib/creativeWorkType.js
CHANGED
|
@@ -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/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;
|