@ductape/sdk 0.3.4 → 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/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
- const service = await vectorService.connect({ product, env, vector });
3710
- return service.listNamespaces();
3713
+ return vectorService.listNamespaces({ product, env, tag: vector, session });
3711
3714
  },
3712
3715
  /**
3713
3716
  * Delete a namespace.