Cleaning up and removing old legacy code and files

This commit is contained in:
Scott Idem
2026-03-24 10:28:54 -04:00
parent 6e22639e6e
commit 0bc71391fc
19 changed files with 146 additions and 1326 deletions

View File

@@ -10,16 +10,14 @@ import { patch_object } from '$lib/ae_api/api_patch_object'; // Exported at the
import { post_object } from '$lib/ae_api/api_post_object'; // Exported at the end of this file
import { get_ae_obj_id_crud } from '$lib/ae_api/api_get__crud_obj_id';
import { get_ae_obj_li_for_obj_id_crud } from '$lib/ae_api/api_get__crud_obj_li_v1';
import { get_ae_obj_li_for_obj_id_crud_v2 } from '$lib/ae_api/api_get__crud_obj_li_v2';
import { get_ae_lookup_li_v3 } from '$lib/ae_api/api_get__lookup_v3';
import { get_ae_lookup_li_v3 } from '$lib/ae_api/api_get__lookup';
import {
get_ae_obj_v3,
get_nested_ae_obj_v3,
get_ae_obj_li_v3,
get_nested_obj_li_v3
} from '$lib/ae_api/api_get__crud_obj_li_v3';
import { search_ae_obj_v3 } from '$lib/ae_api/api_post__crud_search_v3';
} from '$lib/ae_api/api_get__crud_obj_li';
import { search_ae_obj_v3 } from '$lib/ae_api/api_post__crud_search';
import {
create_ae_obj_v3,
create_nested_obj_v3,
@@ -29,12 +27,12 @@ import {
delete_nested_ae_obj_v3
} from '$lib/ae_api/api_post__crud_obj_v3';
import { get_data_store_v3 } from '$lib/ae_api/api_get__data_store_v3';
import { get_data_store_v3 } from '$lib/ae_api/api_get__data_store';
/**
* Get a list of lookup objects (V3 with V2 Fallback)
* Get a list of lookup objects (V3)
* Standardized lookup data like countries, timezones, and subdivisions.
* Updated 2026-02-20
* Updated 2026-03-24
*/
export const get_ae_obj_li_for_lu = async function get_ae_obj_li_for_lu({
api_cfg,
@@ -72,7 +70,7 @@ export const get_ae_obj_li_for_lu = async function get_ae_obj_li_for_lu({
// which leaks account-scoped lookup overrides to all callers.
const merged_headers = { ...headers };
// Use V3 system for primary lookup types
// More lists will be added in the future. For now, just country, subdivision, and time_zone.
if (['country', 'country_subdivision', 'time_zone'].includes(for_lu_type)) {
return await get_ae_lookup_li_v3({
api_cfg,
@@ -87,22 +85,6 @@ export const get_ae_obj_li_for_lu = async function get_ae_obj_li_for_lu({
log_lvl
});
}
// Delegate to V2 helper for any other legacy lookup types
return await get_ae_obj_li_for_obj_id_crud_v2({
api_cfg,
obj_type: 'lu',
for_obj_type: for_lu_type,
enabled,
hidden,
order_by_li,
limit,
offset,
headers: merged_headers,
params_json,
params,
log_lvl
});
};
// Updated 2023-07-24
@@ -674,8 +656,6 @@ const obj = {
get_ae_obj_id_crud: get_ae_obj_id_crud,
get_ae_obj_v3: get_ae_obj_v3,
get_nested_ae_obj_v3: get_nested_ae_obj_v3,
get_ae_obj_li_for_obj_id_crud: get_ae_obj_li_for_obj_id_crud,
get_ae_obj_li_for_obj_id_crud_v2: get_ae_obj_li_for_obj_id_crud_v2,
get_ae_obj_li_v3: get_ae_obj_li_v3,
get_nested_obj_li_v3: get_nested_obj_li_v3,
search_ae_obj_v3: search_ae_obj_v3,