@cinerino/sdk 16.4.0-alpha.20 → 16.4.0-alpha.21
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.
- package/lib/abstract/chevre.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +1 -1
- package/lib/abstract/chevre/note.d.ts +0 -32
- package/lib/abstract/chevre/note.js +0 -24
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { factory } from '../factory';
|
|
2
|
-
import { Service } from '../service';
|
|
3
|
-
type INoteDigitalDocument = factory.creativeWork.noteDigitalDocument.INoteDigitalDocument;
|
|
4
|
-
export interface IFindParams {
|
|
5
|
-
limit: number;
|
|
6
|
-
page: number;
|
|
7
|
-
/**
|
|
8
|
-
* 主題リソースタイプ
|
|
9
|
-
*/
|
|
10
|
-
aboutTypeOf: factory.product.ProductType.EventService;
|
|
11
|
-
/**
|
|
12
|
-
* 主題リソースIDリスト
|
|
13
|
-
* max: 10
|
|
14
|
-
*/
|
|
15
|
-
aboutIds?: string[];
|
|
16
|
-
/**
|
|
17
|
-
* メモ識別子リスト
|
|
18
|
-
* max: 10
|
|
19
|
-
*/
|
|
20
|
-
identifiers?: string[];
|
|
21
|
-
}
|
|
22
|
-
export type INoteAsFindResult = Pick<INoteDigitalDocument, 'about' | 'id' | 'identifier' | 'text'>;
|
|
23
|
-
/**
|
|
24
|
-
* メモサービス
|
|
25
|
-
*/
|
|
26
|
-
export declare class NoteService extends Service {
|
|
27
|
-
/**
|
|
28
|
-
* 公開メモを検索する
|
|
29
|
-
*/
|
|
30
|
-
findPublicNotes(params: IFindParams): Promise<INoteAsFindResult[]>;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoteService = void 0;
|
|
4
|
-
const http_status_1 = require("http-status");
|
|
5
|
-
const service_1 = require("../service");
|
|
6
|
-
const BASE_URI = '/creativeWorks/noteDigitalDocument';
|
|
7
|
-
/**
|
|
8
|
-
* メモサービス
|
|
9
|
-
*/
|
|
10
|
-
class NoteService extends service_1.Service {
|
|
11
|
-
/**
|
|
12
|
-
* 公開メモを検索する
|
|
13
|
-
*/
|
|
14
|
-
async findPublicNotes(params) {
|
|
15
|
-
return this.fetch({
|
|
16
|
-
uri: BASE_URI,
|
|
17
|
-
method: 'GET',
|
|
18
|
-
qs: params,
|
|
19
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
20
|
-
})
|
|
21
|
-
.then(async (response) => response.json());
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.NoteService = NoteService;
|