@credal/sdk 0.0.11 → 0.0.12
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/api/resources/copilots/client/Client.js +8 -8
- package/api/resources/documentCatalog/client/Client.js +2 -2
- package/api/resources/documentCollections/client/Client.d.ts +56 -0
- package/api/resources/documentCollections/client/Client.js +160 -4
- package/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +31 -0
- package/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +5 -0
- package/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +31 -0
- package/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +5 -0
- package/api/resources/documentCollections/client/requests/index.d.ts +2 -0
- package/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +10 -0
- package/api/resources/documentCollections/types/MongoCollectionSyncConfig.js +5 -0
- package/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +8 -0
- package/api/resources/documentCollections/types/MongoCollectionSyncResponse.js +5 -0
- package/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +9 -0
- package/api/resources/documentCollections/types/MongoSourceFieldsConfig.js +5 -0
- package/api/resources/documentCollections/types/index.d.ts +3 -0
- package/api/resources/documentCollections/types/index.js +3 -0
- package/api/resources/permissionsService/client/Client.js +3 -3
- package/api/resources/search/client/Client.js +1 -1
- package/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/copilots/client/Client.js +8 -8
- package/dist/api/resources/documentCatalog/client/Client.js +2 -2
- package/dist/api/resources/documentCollections/client/Client.d.ts +56 -0
- package/dist/api/resources/documentCollections/client/Client.js +160 -4
- package/dist/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +31 -0
- package/dist/api/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +5 -0
- package/dist/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +31 -0
- package/dist/api/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +5 -0
- package/dist/api/resources/documentCollections/client/requests/index.d.ts +2 -0
- package/dist/api/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +10 -0
- package/dist/api/resources/documentCollections/types/MongoCollectionSyncConfig.js +5 -0
- package/dist/api/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +8 -0
- package/dist/api/resources/documentCollections/types/MongoCollectionSyncResponse.js +5 -0
- package/dist/api/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +9 -0
- package/dist/api/resources/documentCollections/types/MongoSourceFieldsConfig.js +5 -0
- package/dist/api/resources/documentCollections/types/index.d.ts +3 -0
- package/dist/api/resources/documentCollections/types/index.js +3 -0
- package/dist/api/resources/permissionsService/client/Client.js +3 -3
- package/dist/api/resources/search/client/Client.js +1 -1
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/serialization/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +15 -0
- package/dist/serialization/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +36 -0
- package/dist/serialization/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +15 -0
- package/dist/serialization/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +36 -0
- package/dist/serialization/resources/documentCollections/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/documentCollections/client/requests/index.js +5 -1
- package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +16 -0
- package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncConfig.js +37 -0
- package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +14 -0
- package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.js +35 -0
- package/dist/serialization/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +15 -0
- package/dist/serialization/resources/documentCollections/types/MongoSourceFieldsConfig.js +36 -0
- package/dist/serialization/resources/documentCollections/types/index.d.ts +3 -0
- package/dist/serialization/resources/documentCollections/types/index.js +3 -0
- package/package.json +1 -1
- package/reference.md +202 -0
- package/serialization/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.d.ts +15 -0
- package/serialization/resources/documentCollections/client/requests/CreateMongoCollectionSyncRequest.js +36 -0
- package/serialization/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.d.ts +15 -0
- package/serialization/resources/documentCollections/client/requests/UpdateMongoCollectionSyncRequest.js +36 -0
- package/serialization/resources/documentCollections/client/requests/index.d.ts +2 -0
- package/serialization/resources/documentCollections/client/requests/index.js +5 -1
- package/serialization/resources/documentCollections/types/MongoCollectionSyncConfig.d.ts +16 -0
- package/serialization/resources/documentCollections/types/MongoCollectionSyncConfig.js +37 -0
- package/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts +14 -0
- package/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.js +35 -0
- package/serialization/resources/documentCollections/types/MongoSourceFieldsConfig.d.ts +15 -0
- package/serialization/resources/documentCollections/types/MongoSourceFieldsConfig.js +36 -0
- package/serialization/resources/documentCollections/types/index.d.ts +3 -0
- package/serialization/resources/documentCollections/types/index.js +3 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MongoCollectionSyncConfig = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const MongoSourceFieldsConfig_1 = require("./MongoSourceFieldsConfig");
|
|
32
|
+
exports.MongoCollectionSyncConfig = core.serialization.object({
|
|
33
|
+
syncName: core.serialization.string(),
|
|
34
|
+
collectionName: core.serialization.string(),
|
|
35
|
+
filterExpression: core.serialization.unknown(),
|
|
36
|
+
sourceFields: MongoSourceFieldsConfig_1.MongoSourceFieldsConfig,
|
|
37
|
+
});
|
package/dist/serialization/resources/documentCollections/types/MongoCollectionSyncResponse.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const MongoCollectionSyncResponse: core.serialization.ObjectSchema<serializers.MongoCollectionSyncResponse.Raw, Credal.MongoCollectionSyncResponse>;
|
|
8
|
+
export declare namespace MongoCollectionSyncResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
mongoCredentialId: string;
|
|
11
|
+
resourceId: string;
|
|
12
|
+
syncLaunched: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MongoCollectionSyncResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.MongoCollectionSyncResponse = core.serialization.object({
|
|
32
|
+
mongoCredentialId: core.serialization.string(),
|
|
33
|
+
resourceId: core.serialization.string(),
|
|
34
|
+
syncLaunched: core.serialization.boolean(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const MongoSourceFieldsConfig: core.serialization.ObjectSchema<serializers.MongoSourceFieldsConfig.Raw, Credal.MongoSourceFieldsConfig>;
|
|
8
|
+
export declare namespace MongoSourceFieldsConfig {
|
|
9
|
+
interface Raw {
|
|
10
|
+
body: string;
|
|
11
|
+
sourceName: string;
|
|
12
|
+
sourceSystemUpdated?: string | null;
|
|
13
|
+
sourceUrl?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MongoSourceFieldsConfig = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.MongoSourceFieldsConfig = core.serialization.object({
|
|
32
|
+
body: core.serialization.string(),
|
|
33
|
+
sourceName: core.serialization.string(),
|
|
34
|
+
sourceSystemUpdated: core.serialization.string().optional(),
|
|
35
|
+
sourceUrl: core.serialization.string().optional(),
|
|
36
|
+
});
|
|
@@ -16,3 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateCollectionResponse"), exports);
|
|
18
18
|
__exportStar(require("./DeleteCollectionResponse"), exports);
|
|
19
|
+
__exportStar(require("./MongoSourceFieldsConfig"), exports);
|
|
20
|
+
__exportStar(require("./MongoCollectionSyncConfig"), exports);
|
|
21
|
+
__exportStar(require("./MongoCollectionSyncResponse"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1201,6 +1201,208 @@ await credal.documentCollections.deleteCollection({
|
|
|
1201
1201
|
</dl>
|
|
1202
1202
|
</details>
|
|
1203
1203
|
|
|
1204
|
+
<details><summary> <code>credal.documentCollections.<a href="./src/api/resources/documentCollections/client/Client.ts">createMongoCollectionSync</a>({ ...params }) -> Credal.MongoCollectionSyncResponse</code> </summary>
|
|
1205
|
+
|
|
1206
|
+
<dl>
|
|
1207
|
+
|
|
1208
|
+
<dd>
|
|
1209
|
+
|
|
1210
|
+
#### 📝 Description
|
|
1211
|
+
|
|
1212
|
+
<dl>
|
|
1213
|
+
|
|
1214
|
+
<dd>
|
|
1215
|
+
|
|
1216
|
+
<dl>
|
|
1217
|
+
|
|
1218
|
+
<dd>
|
|
1219
|
+
|
|
1220
|
+
Credal lets you easily sync your MongoDB data for use in Collections and Copilots. Create a new sync from a MongoDB collection to a Credal collection.
|
|
1221
|
+
|
|
1222
|
+
</dd>
|
|
1223
|
+
|
|
1224
|
+
</dl>
|
|
1225
|
+
|
|
1226
|
+
</dd>
|
|
1227
|
+
|
|
1228
|
+
</dl>
|
|
1229
|
+
|
|
1230
|
+
#### 🔌 Usage
|
|
1231
|
+
|
|
1232
|
+
<dl>
|
|
1233
|
+
|
|
1234
|
+
<dd>
|
|
1235
|
+
|
|
1236
|
+
<dl>
|
|
1237
|
+
|
|
1238
|
+
<dd>
|
|
1239
|
+
|
|
1240
|
+
```ts
|
|
1241
|
+
await credal.documentCollections.createMongoCollectionSync({
|
|
1242
|
+
mongoUri: "mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
|
|
1243
|
+
collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
|
|
1244
|
+
config: {
|
|
1245
|
+
syncName: "My sales transcripts",
|
|
1246
|
+
collectionName: "myCollection",
|
|
1247
|
+
filterExpression: {
|
|
1248
|
+
status: {
|
|
1249
|
+
$ne: "disabled",
|
|
1250
|
+
},
|
|
1251
|
+
},
|
|
1252
|
+
sourceFields: {
|
|
1253
|
+
body: "body",
|
|
1254
|
+
sourceName: "meetingName",
|
|
1255
|
+
sourceSystemUpdated: "transcriptDatetime",
|
|
1256
|
+
sourceUrl: "link",
|
|
1257
|
+
},
|
|
1258
|
+
},
|
|
1259
|
+
});
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1262
|
+
</dd>
|
|
1263
|
+
|
|
1264
|
+
</dl>
|
|
1265
|
+
|
|
1266
|
+
</dd>
|
|
1267
|
+
|
|
1268
|
+
</dl>
|
|
1269
|
+
|
|
1270
|
+
#### ⚙️ Parameters
|
|
1271
|
+
|
|
1272
|
+
<dl>
|
|
1273
|
+
|
|
1274
|
+
<dd>
|
|
1275
|
+
|
|
1276
|
+
<dl>
|
|
1277
|
+
|
|
1278
|
+
<dd>
|
|
1279
|
+
|
|
1280
|
+
**request: `Credal.CreateMongoCollectionSyncRequest`**
|
|
1281
|
+
|
|
1282
|
+
</dd>
|
|
1283
|
+
|
|
1284
|
+
</dl>
|
|
1285
|
+
|
|
1286
|
+
<dl>
|
|
1287
|
+
|
|
1288
|
+
<dd>
|
|
1289
|
+
|
|
1290
|
+
**requestOptions: `DocumentCollections.RequestOptions`**
|
|
1291
|
+
|
|
1292
|
+
</dd>
|
|
1293
|
+
|
|
1294
|
+
</dl>
|
|
1295
|
+
|
|
1296
|
+
</dd>
|
|
1297
|
+
|
|
1298
|
+
</dl>
|
|
1299
|
+
|
|
1300
|
+
</dd>
|
|
1301
|
+
|
|
1302
|
+
</dl>
|
|
1303
|
+
</details>
|
|
1304
|
+
|
|
1305
|
+
<details><summary> <code>credal.documentCollections.<a href="./src/api/resources/documentCollections/client/Client.ts">updateMongoCollectionSync</a>({ ...params }) -> Credal.MongoCollectionSyncResponse</code> </summary>
|
|
1306
|
+
|
|
1307
|
+
<dl>
|
|
1308
|
+
|
|
1309
|
+
<dd>
|
|
1310
|
+
|
|
1311
|
+
#### 📝 Description
|
|
1312
|
+
|
|
1313
|
+
<dl>
|
|
1314
|
+
|
|
1315
|
+
<dd>
|
|
1316
|
+
|
|
1317
|
+
<dl>
|
|
1318
|
+
|
|
1319
|
+
<dd>
|
|
1320
|
+
|
|
1321
|
+
Credal lets you easily sync your MongoDB data for use in Collections and Copilots. Update an existing sync from a MongoDB collection to a Credal collection via the `mongoCredentialId`, to disambiguate between multiple potential syncs to a given collection.
|
|
1322
|
+
|
|
1323
|
+
</dd>
|
|
1324
|
+
|
|
1325
|
+
</dl>
|
|
1326
|
+
|
|
1327
|
+
</dd>
|
|
1328
|
+
|
|
1329
|
+
</dl>
|
|
1330
|
+
|
|
1331
|
+
#### 🔌 Usage
|
|
1332
|
+
|
|
1333
|
+
<dl>
|
|
1334
|
+
|
|
1335
|
+
<dd>
|
|
1336
|
+
|
|
1337
|
+
<dl>
|
|
1338
|
+
|
|
1339
|
+
<dd>
|
|
1340
|
+
|
|
1341
|
+
```ts
|
|
1342
|
+
await credal.documentCollections.updateMongoCollectionSync({
|
|
1343
|
+
mongoUri: "mongodb+srv://cluster0.hzwklqn.mongodb.net/Cluster0?retryWrites=true&w=majority",
|
|
1344
|
+
mongoCredentialId: "5988ed76-6ee1-11ef-97dd-1fca54b7c4bc",
|
|
1345
|
+
config: {
|
|
1346
|
+
syncName: "My recent summarized sales transcripts",
|
|
1347
|
+
collectionName: "myCollection",
|
|
1348
|
+
filterExpression: {
|
|
1349
|
+
transcriptDatetime: {
|
|
1350
|
+
$gt: "2023-01-01T00:00:00.000Z",
|
|
1351
|
+
},
|
|
1352
|
+
},
|
|
1353
|
+
sourceFields: {
|
|
1354
|
+
body: "transcriptSummary",
|
|
1355
|
+
sourceName: "meetingName",
|
|
1356
|
+
sourceSystemUpdated: "transcriptDatetime",
|
|
1357
|
+
sourceUrl: "link",
|
|
1358
|
+
},
|
|
1359
|
+
},
|
|
1360
|
+
});
|
|
1361
|
+
```
|
|
1362
|
+
|
|
1363
|
+
</dd>
|
|
1364
|
+
|
|
1365
|
+
</dl>
|
|
1366
|
+
|
|
1367
|
+
</dd>
|
|
1368
|
+
|
|
1369
|
+
</dl>
|
|
1370
|
+
|
|
1371
|
+
#### ⚙️ Parameters
|
|
1372
|
+
|
|
1373
|
+
<dl>
|
|
1374
|
+
|
|
1375
|
+
<dd>
|
|
1376
|
+
|
|
1377
|
+
<dl>
|
|
1378
|
+
|
|
1379
|
+
<dd>
|
|
1380
|
+
|
|
1381
|
+
**request: `Credal.UpdateMongoCollectionSyncRequest`**
|
|
1382
|
+
|
|
1383
|
+
</dd>
|
|
1384
|
+
|
|
1385
|
+
</dl>
|
|
1386
|
+
|
|
1387
|
+
<dl>
|
|
1388
|
+
|
|
1389
|
+
<dd>
|
|
1390
|
+
|
|
1391
|
+
**requestOptions: `DocumentCollections.RequestOptions`**
|
|
1392
|
+
|
|
1393
|
+
</dd>
|
|
1394
|
+
|
|
1395
|
+
</dl>
|
|
1396
|
+
|
|
1397
|
+
</dd>
|
|
1398
|
+
|
|
1399
|
+
</dl>
|
|
1400
|
+
|
|
1401
|
+
</dd>
|
|
1402
|
+
|
|
1403
|
+
</dl>
|
|
1404
|
+
</details>
|
|
1405
|
+
|
|
1204
1406
|
## PermissionsService
|
|
1205
1407
|
|
|
1206
1408
|
<details><summary> <code>credal.permissionsService.<a href="./src/api/resources/permissionsService/client/Client.ts">checkResourceAuthorizationForUser</a>({ ...params }) -> Credal.CheckResourceAuthorizationResponse</code> </summary>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Credal from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { MongoCollectionSyncConfig } from "../../types/MongoCollectionSyncConfig";
|
|
8
|
+
export declare const CreateMongoCollectionSyncRequest: core.serialization.Schema<serializers.CreateMongoCollectionSyncRequest.Raw, Credal.CreateMongoCollectionSyncRequest>;
|
|
9
|
+
export declare namespace CreateMongoCollectionSyncRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
collectionId: string;
|
|
12
|
+
mongoURI: string;
|
|
13
|
+
config: MongoCollectionSyncConfig.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CreateMongoCollectionSyncRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const MongoCollectionSyncConfig_1 = require("../../types/MongoCollectionSyncConfig");
|
|
32
|
+
exports.CreateMongoCollectionSyncRequest = core.serialization.object({
|
|
33
|
+
collectionId: core.serialization.string(),
|
|
34
|
+
mongoUri: core.serialization.property("mongoURI", core.serialization.string()),
|
|
35
|
+
config: MongoCollectionSyncConfig_1.MongoCollectionSyncConfig,
|
|
36
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Credal from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { MongoCollectionSyncConfig } from "../../types/MongoCollectionSyncConfig";
|
|
8
|
+
export declare const UpdateMongoCollectionSyncRequest: core.serialization.Schema<serializers.UpdateMongoCollectionSyncRequest.Raw, Credal.UpdateMongoCollectionSyncRequest>;
|
|
9
|
+
export declare namespace UpdateMongoCollectionSyncRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
mongoCredentialId: string;
|
|
12
|
+
mongoURI: string;
|
|
13
|
+
config: MongoCollectionSyncConfig.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UpdateMongoCollectionSyncRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const MongoCollectionSyncConfig_1 = require("../../types/MongoCollectionSyncConfig");
|
|
32
|
+
exports.UpdateMongoCollectionSyncRequest = core.serialization.object({
|
|
33
|
+
mongoCredentialId: core.serialization.string(),
|
|
34
|
+
mongoUri: core.serialization.property("mongoURI", core.serialization.string()),
|
|
35
|
+
config: MongoCollectionSyncConfig_1.MongoCollectionSyncConfig,
|
|
36
|
+
});
|
|
@@ -2,3 +2,5 @@ export { AddDocumentsToCollectionRequest } from "./AddDocumentsToCollectionReque
|
|
|
2
2
|
export { RemoveDocumentsFromCollectionRequest } from "./RemoveDocumentsFromCollectionRequest";
|
|
3
3
|
export { CreateCollectionRequest } from "./CreateCollectionRequest";
|
|
4
4
|
export { DeleteCollectionRequest } from "./DeleteCollectionRequest";
|
|
5
|
+
export { CreateMongoCollectionSyncRequest } from "./CreateMongoCollectionSyncRequest";
|
|
6
|
+
export { UpdateMongoCollectionSyncRequest } from "./UpdateMongoCollectionSyncRequest";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteCollectionRequest = exports.CreateCollectionRequest = exports.RemoveDocumentsFromCollectionRequest = exports.AddDocumentsToCollectionRequest = void 0;
|
|
3
|
+
exports.UpdateMongoCollectionSyncRequest = exports.CreateMongoCollectionSyncRequest = exports.DeleteCollectionRequest = exports.CreateCollectionRequest = exports.RemoveDocumentsFromCollectionRequest = exports.AddDocumentsToCollectionRequest = void 0;
|
|
4
4
|
var AddDocumentsToCollectionRequest_1 = require("./AddDocumentsToCollectionRequest");
|
|
5
5
|
Object.defineProperty(exports, "AddDocumentsToCollectionRequest", { enumerable: true, get: function () { return AddDocumentsToCollectionRequest_1.AddDocumentsToCollectionRequest; } });
|
|
6
6
|
var RemoveDocumentsFromCollectionRequest_1 = require("./RemoveDocumentsFromCollectionRequest");
|
|
@@ -9,3 +9,7 @@ var CreateCollectionRequest_1 = require("./CreateCollectionRequest");
|
|
|
9
9
|
Object.defineProperty(exports, "CreateCollectionRequest", { enumerable: true, get: function () { return CreateCollectionRequest_1.CreateCollectionRequest; } });
|
|
10
10
|
var DeleteCollectionRequest_1 = require("./DeleteCollectionRequest");
|
|
11
11
|
Object.defineProperty(exports, "DeleteCollectionRequest", { enumerable: true, get: function () { return DeleteCollectionRequest_1.DeleteCollectionRequest; } });
|
|
12
|
+
var CreateMongoCollectionSyncRequest_1 = require("./CreateMongoCollectionSyncRequest");
|
|
13
|
+
Object.defineProperty(exports, "CreateMongoCollectionSyncRequest", { enumerable: true, get: function () { return CreateMongoCollectionSyncRequest_1.CreateMongoCollectionSyncRequest; } });
|
|
14
|
+
var UpdateMongoCollectionSyncRequest_1 = require("./UpdateMongoCollectionSyncRequest");
|
|
15
|
+
Object.defineProperty(exports, "UpdateMongoCollectionSyncRequest", { enumerable: true, get: function () { return UpdateMongoCollectionSyncRequest_1.UpdateMongoCollectionSyncRequest; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { MongoSourceFieldsConfig } from "./MongoSourceFieldsConfig";
|
|
8
|
+
export declare const MongoCollectionSyncConfig: core.serialization.ObjectSchema<serializers.MongoCollectionSyncConfig.Raw, Credal.MongoCollectionSyncConfig>;
|
|
9
|
+
export declare namespace MongoCollectionSyncConfig {
|
|
10
|
+
interface Raw {
|
|
11
|
+
syncName: string;
|
|
12
|
+
collectionName: string;
|
|
13
|
+
filterExpression?: unknown;
|
|
14
|
+
sourceFields: MongoSourceFieldsConfig.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MongoCollectionSyncConfig = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const MongoSourceFieldsConfig_1 = require("./MongoSourceFieldsConfig");
|
|
32
|
+
exports.MongoCollectionSyncConfig = core.serialization.object({
|
|
33
|
+
syncName: core.serialization.string(),
|
|
34
|
+
collectionName: core.serialization.string(),
|
|
35
|
+
filterExpression: core.serialization.unknown(),
|
|
36
|
+
sourceFields: MongoSourceFieldsConfig_1.MongoSourceFieldsConfig,
|
|
37
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const MongoCollectionSyncResponse: core.serialization.ObjectSchema<serializers.MongoCollectionSyncResponse.Raw, Credal.MongoCollectionSyncResponse>;
|
|
8
|
+
export declare namespace MongoCollectionSyncResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
mongoCredentialId: string;
|
|
11
|
+
resourceId: string;
|
|
12
|
+
syncLaunched: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MongoCollectionSyncResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.MongoCollectionSyncResponse = core.serialization.object({
|
|
32
|
+
mongoCredentialId: core.serialization.string(),
|
|
33
|
+
resourceId: core.serialization.string(),
|
|
34
|
+
syncLaunched: core.serialization.boolean(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const MongoSourceFieldsConfig: core.serialization.ObjectSchema<serializers.MongoSourceFieldsConfig.Raw, Credal.MongoSourceFieldsConfig>;
|
|
8
|
+
export declare namespace MongoSourceFieldsConfig {
|
|
9
|
+
interface Raw {
|
|
10
|
+
body: string;
|
|
11
|
+
sourceName: string;
|
|
12
|
+
sourceSystemUpdated?: string | null;
|
|
13
|
+
sourceUrl?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MongoSourceFieldsConfig = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.MongoSourceFieldsConfig = core.serialization.object({
|
|
32
|
+
body: core.serialization.string(),
|
|
33
|
+
sourceName: core.serialization.string(),
|
|
34
|
+
sourceSystemUpdated: core.serialization.string().optional(),
|
|
35
|
+
sourceUrl: core.serialization.string().optional(),
|
|
36
|
+
});
|