完成后端类型与平台配置目录分组
This commit is contained in:
+2
-2
@@ -41,8 +41,8 @@ export function resolveKuaishouEticketAdminContext(payload: JsonObject = {}, opt
|
||||
};
|
||||
}
|
||||
|
||||
import { getCloudtentaclesSourceByKey } from "../../platforms/cloudtentacles/source-config-service.js";
|
||||
import { getCloudtentaclesSessionStateByKey } from "../../platforms/cloudtentacles/session-state-service.js";
|
||||
import { getCloudtentaclesSourceByKey } from "../../../platforms/cloudtentacles/source-config-service.js";
|
||||
import { getCloudtentaclesSessionStateByKey } from "../../../platforms/cloudtentacles/session-state-service.js";
|
||||
|
||||
export function resolveCloudtentaclesAdminContext(payload: JsonObject = {}, options: JsonObject = {}) {
|
||||
const sourceKey = String(
|
||||
+10
-10
@@ -5,7 +5,7 @@ import {
|
||||
saveCloudtentaclesSourceByKey,
|
||||
saveCloudtentaclesSourcesList,
|
||||
deleteCloudtentaclesSourceByKey,
|
||||
} from "../../platforms/cloudtentacles/source-config-service.js";
|
||||
} from "../../../platforms/cloudtentacles/source-config-service.js";
|
||||
import {
|
||||
clearCloudtentaclesSessionStateByKey,
|
||||
deleteCloudtentaclesSessionStateByKey,
|
||||
@@ -14,20 +14,20 @@ import {
|
||||
saveCloudtentaclesSessionStateByKey,
|
||||
getAllCloudtentaclesSessionStates,
|
||||
pruneCloudtentaclesSessionStates,
|
||||
} from "../../platforms/cloudtentacles/session-state-service.js";
|
||||
} from "../../../platforms/cloudtentacles/session-state-service.js";
|
||||
import {
|
||||
loginCloudtentaclesSession,
|
||||
sendCloudtentaclesSmsCode,
|
||||
validateCloudtentaclesSession,
|
||||
} from "../../platforms/cloudtentacles/session-service.js";
|
||||
} from "../../../platforms/cloudtentacles/session-service.js";
|
||||
import {
|
||||
buyCloudtentaclesSku,
|
||||
getCloudtentaclesAsset,
|
||||
getCloudtentaclesCategories,
|
||||
listCloudtentaclesSku,
|
||||
useCloudtentaclesSku,
|
||||
} from "../../platforms/cloudtentacles/catalog-service.js";
|
||||
import { getCloudtentaclesKnapsack } from "../../platforms/cloudtentacles/knapsack-service.js";
|
||||
} from "../../../platforms/cloudtentacles/catalog-service.js";
|
||||
import { getCloudtentaclesKnapsack } from "../../../platforms/cloudtentacles/knapsack-service.js";
|
||||
import {
|
||||
appointCloudtentaclesVirtualNumber,
|
||||
backCloudtentaclesVirtualNumber,
|
||||
@@ -36,8 +36,8 @@ import {
|
||||
getCloudtentaclesBindUrl,
|
||||
listCloudtentaclesVirtualNumbers,
|
||||
verifyCloudtentaclesLoginCode,
|
||||
} from "../../platforms/cloudtentacles/virtual-number-service.js";
|
||||
import { runCloudtentaclesFullDebugFlow } from "../../platforms/cloudtentacles/debug-flow-service.js";
|
||||
} from "../../../platforms/cloudtentacles/virtual-number-service.js";
|
||||
import { runCloudtentaclesFullDebugFlow } from "../../../platforms/cloudtentacles/debug-flow-service.js";
|
||||
import {
|
||||
hasCloudtentaclesCredentialContextChanged,
|
||||
pickFirstNonEmpty,
|
||||
@@ -48,8 +48,8 @@ import {
|
||||
buildAdminCloudtentaclesValidateResult,
|
||||
resolveAdminCloudtentaclesCredentialPayload,
|
||||
resolveAdminCloudtentaclesSessionPayload,
|
||||
} from "./cloudtentacles.js";
|
||||
import { normalizeAdminCloudtentaclesSourceConfigPayload } from "./cloudtentacles-writes.js";
|
||||
} from "./payloads.js";
|
||||
import { normalizeAdminCloudtentaclesSourceConfigPayload } from "./writes.js";
|
||||
import {
|
||||
mapAdminCloudtentaclesSession,
|
||||
mapAdminCloudtentaclesSourceConfig,
|
||||
@@ -66,7 +66,7 @@ import type {
|
||||
AdminCloudtentaclesTestLoginInput,
|
||||
AdminCloudtentaclesValidateSessionInput,
|
||||
AdminCloudtentaclesVirtualNumberInput,
|
||||
} from "../../../types/admin-write-inputs.js";
|
||||
} from "../../../../types/admin/write-inputs.js";
|
||||
|
||||
type JsonObject = Record<string, any>;
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
maskPhone as maskPhoneValue,
|
||||
maskSecret as maskSecretValue,
|
||||
} from "../../../utils/masking.js";
|
||||
} from "../../../../utils/masking.js";
|
||||
|
||||
type JsonObject = Record<string, any>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { query } from '../../../db/client.js'
|
||||
import { query } from '../../../../db/client.js'
|
||||
import { mapAdminObservedProductItem } from './domain.js'
|
||||
|
||||
type JsonObject = Record<string, any>
|
||||
+1
-1
@@ -8,7 +8,7 @@ import {
|
||||
buildAdminCloudtentaclesValidateResult,
|
||||
resolveAdminCloudtentaclesCredentialPayload,
|
||||
resolveAdminCloudtentaclesSessionPayload,
|
||||
} from './cloudtentacles.js'
|
||||
} from './payloads.js'
|
||||
|
||||
test('resolveAdminCloudtentaclesCredentialPayload merges payload and saved source defaults', () => {
|
||||
assert.deepEqual(
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { getCloudtentaclesSourceByKey } from "../../platforms/cloudtentacles/source-config-service.js";
|
||||
import { getCloudtentaclesSessionStateByKey } from "../../platforms/cloudtentacles/session-state-service.js";
|
||||
import { getCloudtentaclesSourceByKey } from "../../../platforms/cloudtentacles/source-config-service.js";
|
||||
import { getCloudtentaclesSessionStateByKey } from "../../../platforms/cloudtentacles/session-state-service.js";
|
||||
import {
|
||||
pickFirstNonEmpty,
|
||||
resolveCloudtentaclesAdminContext,
|
||||
+1
-1
@@ -4,7 +4,7 @@ import {
|
||||
saveKuaishouCloudFulfillmentConfig,
|
||||
} from '../../order/kuaishou-cloud-fulfillment-config-service.js'
|
||||
import { syncConfiguredFulfillmentBindings } from '../../bootstrap/fulfillment-bootstrap-service.js'
|
||||
import { mapAdminKuaishouCloudFulfillmentSource } from './mappers.js'
|
||||
import { mapAdminKuaishouCloudFulfillmentSource } from './cloudtentacles/mappers.js'
|
||||
|
||||
type JsonObject = Record<string, any>
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
saveKuaishouEticketSourceConfig,
|
||||
} from '../../platforms/kuaishou-eticket/source-config-service.js'
|
||||
import { queryKuaishouEticketStableInfo } from '../../platforms/kuaishou-eticket/info-service.js'
|
||||
import { resolveKuaishouEticketAdminContext } from './context.js'
|
||||
import { mapAdminKuaishouEticketSourceConfig } from './mappers.js'
|
||||
import { resolveKuaishouEticketAdminContext } from './cloudtentacles/context.js'
|
||||
import { mapAdminKuaishouEticketSourceConfig } from './cloudtentacles/mappers.js'
|
||||
|
||||
type JsonObject = Record<string, any>
|
||||
|
||||
|
||||
@@ -16,13 +16,13 @@ import {
|
||||
reloadScheduledJobs,
|
||||
runScheduledJobNow,
|
||||
} from '../../scheduler/scheduler-service.js'
|
||||
import { maskPhone, maskSecret } from './mappers.js'
|
||||
import { maskPhone, maskSecret } from './cloudtentacles/mappers.js'
|
||||
|
||||
import type {
|
||||
AdminNotificationConfigInput,
|
||||
AdminNotificationTestInput,
|
||||
AdminScheduledJobsConfigInput,
|
||||
} from '../../../types/admin-write-inputs.js'
|
||||
} from '../../../types/admin/write-inputs.js'
|
||||
|
||||
type JsonObject = Record<string, any>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user