@ductape/sdk 0.3.3 → 0.3.5
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/database/adapters/mongodb.adapter.js +1 -4
- package/dist/database/adapters/mongodb.adapter.js.map +1 -1
- package/dist/database/databases.service.d.ts +10 -0
- package/dist/database/databases.service.js +3 -0
- package/dist/database/databases.service.js.map +1 -1
- package/dist/database/migrations/migration-engine.d.ts +12 -0
- package/dist/database/migrations/migration-engine.js +161 -5
- package/dist/database/migrations/migration-engine.js.map +1 -1
- package/dist/features/feature-control-flow.validator.js +4 -0
- package/dist/features/feature-control-flow.validator.js.map +1 -1
- package/dist/features/recorded-native-calls.d.ts +1 -0
- package/dist/features/recorded-native-calls.js +80 -0
- package/dist/features/recorded-native-calls.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/processor/services/processor.service.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vector/index.d.ts +1 -1
- package/dist/vector/index.js.map +1 -1
- package/dist/vector/vector-database.service.d.ts +11 -5
- package/dist/vector/vector-database.service.js +39 -3
- package/dist/vector/vector-database.service.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2023,6 +2023,11 @@ export default class Ductape implements IDuctape {
|
|
|
2023
2023
|
product: string;
|
|
2024
2024
|
tag: string;
|
|
2025
2025
|
}) => Promise<void>;
|
|
2026
|
+
baseline: (migrations: Parameters<DatabaseService["baselineMigration"]>[0], options: Parameters<DatabaseService["baselineMigration"]>[1]) => Promise<{
|
|
2027
|
+
mutationState: string;
|
|
2028
|
+
adopted: string[];
|
|
2029
|
+
verifiedCollections: string[];
|
|
2030
|
+
}>;
|
|
2026
2031
|
/**
|
|
2027
2032
|
* Run a migration
|
|
2028
2033
|
*/
|
|
@@ -2787,6 +2792,7 @@ export default class Ductape implements IDuctape {
|
|
|
2787
2792
|
product: string;
|
|
2788
2793
|
env: string;
|
|
2789
2794
|
vector: string;
|
|
2795
|
+
session?: string;
|
|
2790
2796
|
}) => Promise<import("./vector").IListNamespacesResult>;
|
|
2791
2797
|
/**
|
|
2792
2798
|
* Delete a namespace.
|
package/dist/index.js
CHANGED
|
@@ -2581,6 +2581,10 @@ class Ductape {
|
|
|
2581
2581
|
return service.migration.delete(options);
|
|
2582
2582
|
},
|
|
2583
2583
|
// ==================== MIGRATION OPERATIONS ====================
|
|
2584
|
+
baseline: async (migrations, options) => {
|
|
2585
|
+
const service = await this.createNewDatabaseService();
|
|
2586
|
+
return service.baselineMigration(migrations, options);
|
|
2587
|
+
},
|
|
2584
2588
|
/**
|
|
2585
2589
|
* Run a migration
|
|
2586
2590
|
*/
|
|
@@ -3704,10 +3708,9 @@ class Ductape {
|
|
|
3704
3708
|
* @returns {Promise<IListNamespacesResult>} The namespaces.
|
|
3705
3709
|
*/
|
|
3706
3710
|
listNamespaces: async (options) => {
|
|
3707
|
-
const { product, env, vector } = options;
|
|
3711
|
+
const { product, env, vector, session } = options;
|
|
3708
3712
|
const vectorService = await this.createNewVectorService();
|
|
3709
|
-
|
|
3710
|
-
return service.listNamespaces();
|
|
3713
|
+
return vectorService.listNamespaces({ product, env, tag: vector, session });
|
|
3711
3714
|
},
|
|
3712
3715
|
/**
|
|
3713
3716
|
* Delete a namespace.
|