minikai 1.1.0 → 1.3.0
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/records/client/Client.d.ts +6 -2
- package/dist/cjs/api/resources/records/client/Client.js +8 -3
- package/dist/cjs/api/resources/records/client/requests/GetRecordsRequest.d.ts +1 -0
- package/dist/cjs/api/types/RecordRelationDto.d.ts +3 -1
- package/dist/cjs/api/types/RecordRelationshipType.d.ts +5 -0
- package/dist/cjs/api/types/RecordRelationshipType.js +8 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/records/client/Client.d.mts +6 -2
- package/dist/esm/api/resources/records/client/Client.mjs +8 -3
- package/dist/esm/api/resources/records/client/requests/GetRecordsRequest.d.mts +1 -0
- package/dist/esm/api/types/RecordRelationDto.d.mts +3 -1
- package/dist/esm/api/types/RecordRelationshipType.d.mts +5 -0
- package/dist/esm/api/types/RecordRelationshipType.mjs +5 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +6 -2
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "minikai",
|
|
46
|
-
"X-Fern-SDK-Version": "1.
|
|
47
|
-
"User-Agent": "minikai/1.
|
|
46
|
+
"X-Fern-SDK-Version": "1.3.0",
|
|
47
|
+
"User-Agent": "minikai/1.3.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -378,7 +378,9 @@ export declare class RecordsClient {
|
|
|
378
378
|
* @throws {@link Minikai.NotFoundError}
|
|
379
379
|
*
|
|
380
380
|
* @example
|
|
381
|
-
* await client.records.addRelations("recordId", [{
|
|
381
|
+
* await client.records.addRelations("recordId", [{
|
|
382
|
+
* relationship: "duplicate-of"
|
|
383
|
+
* }])
|
|
382
384
|
*/
|
|
383
385
|
addRelations(recordId: string, request: Minikai.RecordRelationDto[], requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
384
386
|
private __addRelations;
|
|
@@ -393,7 +395,9 @@ export declare class RecordsClient {
|
|
|
393
395
|
* @throws {@link Minikai.NotFoundError}
|
|
394
396
|
*
|
|
395
397
|
* @example
|
|
396
|
-
* await client.records.updateRelations("recordId", [{
|
|
398
|
+
* await client.records.updateRelations("recordId", [{
|
|
399
|
+
* relationship: "duplicate-of"
|
|
400
|
+
* }])
|
|
397
401
|
*/
|
|
398
402
|
updateRelations(recordId: string, request: Minikai.RecordRelationDto[], requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
399
403
|
private __updateRelations;
|
|
@@ -72,7 +72,7 @@ class RecordsClient {
|
|
|
72
72
|
__getRecords(request, requestOptions) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
75
|
-
const { miniId, recordIds, externalUris, recordId, beforeCursor, afterCursor, limitBefore, limitAfter, labels, states, startDate, endDate, createdBy, updatedBy, sortDescending, } = request;
|
|
75
|
+
const { miniId, recordIds, externalUris, recordId, beforeCursor, afterCursor, limitBefore, limitAfter, labels, states, startDate, endDate, createdBy, updatedBy, sortDescending, includeTotalCount, } = request;
|
|
76
76
|
const _queryParams = {
|
|
77
77
|
miniId,
|
|
78
78
|
recordIds,
|
|
@@ -89,6 +89,7 @@ class RecordsClient {
|
|
|
89
89
|
createdBy,
|
|
90
90
|
updatedBy,
|
|
91
91
|
sortDescending,
|
|
92
|
+
includeTotalCount,
|
|
92
93
|
};
|
|
93
94
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
94
95
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -1380,7 +1381,9 @@ class RecordsClient {
|
|
|
1380
1381
|
* @throws {@link Minikai.NotFoundError}
|
|
1381
1382
|
*
|
|
1382
1383
|
* @example
|
|
1383
|
-
* await client.records.addRelations("recordId", [{
|
|
1384
|
+
* await client.records.addRelations("recordId", [{
|
|
1385
|
+
* relationship: "duplicate-of"
|
|
1386
|
+
* }])
|
|
1384
1387
|
*/
|
|
1385
1388
|
addRelations(recordId, request, requestOptions) {
|
|
1386
1389
|
return core.HttpResponsePromise.fromPromise(this.__addRelations(recordId, request, requestOptions));
|
|
@@ -1435,7 +1438,9 @@ class RecordsClient {
|
|
|
1435
1438
|
* @throws {@link Minikai.NotFoundError}
|
|
1436
1439
|
*
|
|
1437
1440
|
* @example
|
|
1438
|
-
* await client.records.updateRelations("recordId", [{
|
|
1441
|
+
* await client.records.updateRelations("recordId", [{
|
|
1442
|
+
* relationship: "duplicate-of"
|
|
1443
|
+
* }])
|
|
1439
1444
|
*/
|
|
1440
1445
|
updateRelations(recordId, request, requestOptions) {
|
|
1441
1446
|
return core.HttpResponsePromise.fromPromise(this.__updateRelations(recordId, request, requestOptions));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type * as Minikai from "../index.js";
|
|
1
2
|
export interface RecordRelationDto {
|
|
2
3
|
id?: string | undefined;
|
|
3
|
-
|
|
4
|
+
targetRecordId?: (string | null) | undefined;
|
|
5
|
+
relationship: Minikai.RecordRelationshipType;
|
|
4
6
|
since?: (string | null) | undefined;
|
|
5
7
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RecordRelationshipType = void 0;
|
|
5
|
+
exports.RecordRelationshipType = {
|
|
6
|
+
DuplicateOf: "duplicate-of",
|
|
7
|
+
RelatesTo: "relates-to",
|
|
8
|
+
};
|
|
@@ -26,6 +26,7 @@ export * from "./RecordAttachmentDto.js";
|
|
|
26
26
|
export * from "./RecordAuthorizationDto.js";
|
|
27
27
|
export * from "./RecordDto.js";
|
|
28
28
|
export * from "./RecordRelationDto.js";
|
|
29
|
+
export * from "./RecordRelationshipType.js";
|
|
29
30
|
export * from "./RecordState.js";
|
|
30
31
|
export * from "./RecordVersionDto.js";
|
|
31
32
|
export * from "./SearchHitOfMiniDto.js";
|
|
@@ -42,6 +42,7 @@ __exportStar(require("./RecordAttachmentDto.js"), exports);
|
|
|
42
42
|
__exportStar(require("./RecordAuthorizationDto.js"), exports);
|
|
43
43
|
__exportStar(require("./RecordDto.js"), exports);
|
|
44
44
|
__exportStar(require("./RecordRelationDto.js"), exports);
|
|
45
|
+
__exportStar(require("./RecordRelationshipType.js"), exports);
|
|
45
46
|
__exportStar(require("./RecordState.js"), exports);
|
|
46
47
|
__exportStar(require("./RecordVersionDto.js"), exports);
|
|
47
48
|
__exportStar(require("./SearchHitOfMiniDto.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.3.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "minikai",
|
|
9
|
-
"X-Fern-SDK-Version": "1.
|
|
10
|
-
"User-Agent": "minikai/1.
|
|
9
|
+
"X-Fern-SDK-Version": "1.3.0",
|
|
10
|
+
"User-Agent": "minikai/1.3.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -378,7 +378,9 @@ export declare class RecordsClient {
|
|
|
378
378
|
* @throws {@link Minikai.NotFoundError}
|
|
379
379
|
*
|
|
380
380
|
* @example
|
|
381
|
-
* await client.records.addRelations("recordId", [{
|
|
381
|
+
* await client.records.addRelations("recordId", [{
|
|
382
|
+
* relationship: "duplicate-of"
|
|
383
|
+
* }])
|
|
382
384
|
*/
|
|
383
385
|
addRelations(recordId: string, request: Minikai.RecordRelationDto[], requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
384
386
|
private __addRelations;
|
|
@@ -393,7 +395,9 @@ export declare class RecordsClient {
|
|
|
393
395
|
* @throws {@link Minikai.NotFoundError}
|
|
394
396
|
*
|
|
395
397
|
* @example
|
|
396
|
-
* await client.records.updateRelations("recordId", [{
|
|
398
|
+
* await client.records.updateRelations("recordId", [{
|
|
399
|
+
* relationship: "duplicate-of"
|
|
400
|
+
* }])
|
|
397
401
|
*/
|
|
398
402
|
updateRelations(recordId: string, request: Minikai.RecordRelationDto[], requestOptions?: RecordsClient.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
399
403
|
private __updateRelations;
|
|
@@ -36,7 +36,7 @@ export class RecordsClient {
|
|
|
36
36
|
__getRecords(request, requestOptions) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
39
|
-
const { miniId, recordIds, externalUris, recordId, beforeCursor, afterCursor, limitBefore, limitAfter, labels, states, startDate, endDate, createdBy, updatedBy, sortDescending, } = request;
|
|
39
|
+
const { miniId, recordIds, externalUris, recordId, beforeCursor, afterCursor, limitBefore, limitAfter, labels, states, startDate, endDate, createdBy, updatedBy, sortDescending, includeTotalCount, } = request;
|
|
40
40
|
const _queryParams = {
|
|
41
41
|
miniId,
|
|
42
42
|
recordIds,
|
|
@@ -53,6 +53,7 @@ export class RecordsClient {
|
|
|
53
53
|
createdBy,
|
|
54
54
|
updatedBy,
|
|
55
55
|
sortDescending,
|
|
56
|
+
includeTotalCount,
|
|
56
57
|
};
|
|
57
58
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
58
59
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -1344,7 +1345,9 @@ export class RecordsClient {
|
|
|
1344
1345
|
* @throws {@link Minikai.NotFoundError}
|
|
1345
1346
|
*
|
|
1346
1347
|
* @example
|
|
1347
|
-
* await client.records.addRelations("recordId", [{
|
|
1348
|
+
* await client.records.addRelations("recordId", [{
|
|
1349
|
+
* relationship: "duplicate-of"
|
|
1350
|
+
* }])
|
|
1348
1351
|
*/
|
|
1349
1352
|
addRelations(recordId, request, requestOptions) {
|
|
1350
1353
|
return core.HttpResponsePromise.fromPromise(this.__addRelations(recordId, request, requestOptions));
|
|
@@ -1399,7 +1402,9 @@ export class RecordsClient {
|
|
|
1399
1402
|
* @throws {@link Minikai.NotFoundError}
|
|
1400
1403
|
*
|
|
1401
1404
|
* @example
|
|
1402
|
-
* await client.records.updateRelations("recordId", [{
|
|
1405
|
+
* await client.records.updateRelations("recordId", [{
|
|
1406
|
+
* relationship: "duplicate-of"
|
|
1407
|
+
* }])
|
|
1403
1408
|
*/
|
|
1404
1409
|
updateRelations(recordId, request, requestOptions) {
|
|
1405
1410
|
return core.HttpResponsePromise.fromPromise(this.__updateRelations(recordId, request, requestOptions));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type * as Minikai from "../index.mjs";
|
|
1
2
|
export interface RecordRelationDto {
|
|
2
3
|
id?: string | undefined;
|
|
3
|
-
|
|
4
|
+
targetRecordId?: (string | null) | undefined;
|
|
5
|
+
relationship: Minikai.RecordRelationshipType;
|
|
4
6
|
since?: (string | null) | undefined;
|
|
5
7
|
}
|
|
@@ -26,6 +26,7 @@ export * from "./RecordAttachmentDto.mjs";
|
|
|
26
26
|
export * from "./RecordAuthorizationDto.mjs";
|
|
27
27
|
export * from "./RecordDto.mjs";
|
|
28
28
|
export * from "./RecordRelationDto.mjs";
|
|
29
|
+
export * from "./RecordRelationshipType.mjs";
|
|
29
30
|
export * from "./RecordState.mjs";
|
|
30
31
|
export * from "./RecordVersionDto.mjs";
|
|
31
32
|
export * from "./SearchHitOfMiniDto.mjs";
|
|
@@ -26,6 +26,7 @@ export * from "./RecordAttachmentDto.mjs";
|
|
|
26
26
|
export * from "./RecordAuthorizationDto.mjs";
|
|
27
27
|
export * from "./RecordDto.mjs";
|
|
28
28
|
export * from "./RecordRelationDto.mjs";
|
|
29
|
+
export * from "./RecordRelationshipType.mjs";
|
|
29
30
|
export * from "./RecordState.mjs";
|
|
30
31
|
export * from "./RecordVersionDto.mjs";
|
|
31
32
|
export * from "./SearchHitOfMiniDto.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.3.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.3.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2761,7 +2761,9 @@ Link a Record to other Records.
|
|
|
2761
2761
|
<dd>
|
|
2762
2762
|
|
|
2763
2763
|
```typescript
|
|
2764
|
-
await client.records.addRelations("recordId", [{
|
|
2764
|
+
await client.records.addRelations("recordId", [{
|
|
2765
|
+
relationship: "duplicate-of"
|
|
2766
|
+
}]);
|
|
2765
2767
|
|
|
2766
2768
|
```
|
|
2767
2769
|
</dd>
|
|
@@ -2832,7 +2834,9 @@ Replace a Record's relations.
|
|
|
2832
2834
|
<dd>
|
|
2833
2835
|
|
|
2834
2836
|
```typescript
|
|
2835
|
-
await client.records.updateRelations("recordId", [{
|
|
2837
|
+
await client.records.updateRelations("recordId", [{
|
|
2838
|
+
relationship: "duplicate-of"
|
|
2839
|
+
}]);
|
|
2836
2840
|
|
|
2837
2841
|
```
|
|
2838
2842
|
</dd>
|