@cinerino/sdk 5.11.0-alpha.2 → 5.11.0-alpha.3
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.
|
@@ -11,6 +11,9 @@ export declare class NoteService extends Service {
|
|
|
11
11
|
upsertByIdentifier(params: Pick<INoteDigitalDocument, 'about' | 'identifier' | 'text'>[]): Promise<void>;
|
|
12
12
|
search(params: Omit<factory.creativeWork.noteDigitalDocument.ISearchConditions, 'project'> & {
|
|
13
13
|
$projection?: IProjection;
|
|
14
|
-
}): Promise<INoteDigitalDocument
|
|
14
|
+
}): Promise<(INoteDigitalDocument & {
|
|
15
|
+
id: string;
|
|
16
|
+
})[]>;
|
|
17
|
+
updateById(id: string, body: Pick<INoteDigitalDocument, 'text'>): Promise<void>;
|
|
15
18
|
}
|
|
16
19
|
export {};
|
|
@@ -95,6 +95,26 @@ var NoteService = /** @class */ (function (_super) {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
+
NoteService.prototype.updateById = function (id, body) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var text;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
text = body.text;
|
|
105
|
+
return [4 /*yield*/, this.fetch({
|
|
106
|
+
uri: "/notes/" + String(id),
|
|
107
|
+
method: 'PUT',
|
|
108
|
+
body: { text: text },
|
|
109
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
110
|
+
})];
|
|
111
|
+
case 1:
|
|
112
|
+
_a.sent();
|
|
113
|
+
return [2 /*return*/];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
98
118
|
return NoteService;
|
|
99
119
|
}(service_1.Service));
|
|
100
120
|
exports.NoteService = NoteService;
|
package/lib/bundle.js
CHANGED
|
@@ -8883,6 +8883,26 @@ var NoteService = /** @class */ (function (_super) {
|
|
|
8883
8883
|
});
|
|
8884
8884
|
});
|
|
8885
8885
|
};
|
|
8886
|
+
NoteService.prototype.updateById = function (id, body) {
|
|
8887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8888
|
+
var text;
|
|
8889
|
+
return __generator(this, function (_a) {
|
|
8890
|
+
switch (_a.label) {
|
|
8891
|
+
case 0:
|
|
8892
|
+
text = body.text;
|
|
8893
|
+
return [4 /*yield*/, this.fetch({
|
|
8894
|
+
uri: "/notes/" + String(id),
|
|
8895
|
+
method: 'PUT',
|
|
8896
|
+
body: { text: text },
|
|
8897
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8898
|
+
})];
|
|
8899
|
+
case 1:
|
|
8900
|
+
_a.sent();
|
|
8901
|
+
return [2 /*return*/];
|
|
8902
|
+
}
|
|
8903
|
+
});
|
|
8904
|
+
});
|
|
8905
|
+
};
|
|
8886
8906
|
return NoteService;
|
|
8887
8907
|
}(service_1.Service));
|
|
8888
8908
|
exports.NoteService = NoteService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "5.11.0-alpha.
|
|
3
|
+
"version": "5.11.0-alpha.3",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"watchify": "^3.11.1"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@chevre/factory": "4.354.0-alpha.
|
|
95
|
+
"@chevre/factory": "4.354.0-alpha.1",
|
|
96
96
|
"debug": "^3.2.6",
|
|
97
97
|
"http-status": "^1.4.2",
|
|
98
98
|
"idtoken-verifier": "^2.0.3",
|