refactor(schemas): group network schemas by direction
Move request and response schemas into matching subdirectories, extract the shared chat lock type, and update barrels and imports without changing wire formats.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/**
|
||||
* @file Payment schema barrel.
|
||||
* @file Automatically generated by barrelsby.
|
||||
*/
|
||||
|
||||
export * from "./create_payment_order_request";
|
||||
export * from "./create_payment_order_response";
|
||||
export * from "./payment_order_status_response";
|
||||
export * from "./payment_plan";
|
||||
export * from "./payment_plans_response";
|
||||
export * from "./tip_payment_plan";
|
||||
export * from "./tip_payment_plans_response";
|
||||
export * from "./request/create_payment_order_request";
|
||||
export * from "./response/create_payment_order_response";
|
||||
export * from "./response/payment_order_status_response";
|
||||
export * from "./response/payment_plans_response";
|
||||
export * from "./response/tip_payment_plans_response";
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @file Automatically generated by barrelsby.
|
||||
*/
|
||||
|
||||
export * from "./create_payment_order_request";
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import { z } from "zod";
|
||||
|
||||
import { stringOrNull } from "../nullable-defaults";
|
||||
import { stringOrNull } from "../../nullable-defaults";
|
||||
|
||||
const paymentUrlKeys = [
|
||||
"cashierUrl",
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @file Automatically generated by barrelsby.
|
||||
*/
|
||||
|
||||
export * from "./create_payment_order_response";
|
||||
export * from "./payment_order_status_response";
|
||||
export * from "./payment_plans_response";
|
||||
export * from "./tip_payment_plans_response";
|
||||
+2
-2
@@ -9,8 +9,8 @@ import {
|
||||
numberOrZero,
|
||||
schemaOrNull,
|
||||
stringOrEmpty,
|
||||
} from "../nullable-defaults";
|
||||
import { PaymentPlanSchema } from "./payment_plan";
|
||||
} from "../../nullable-defaults";
|
||||
import { PaymentPlanSchema } from "../payment_plan";
|
||||
|
||||
export const FirstRechargeOfferSchema = z.object({
|
||||
enabled: booleanOrFalse,
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { arrayOrEmpty } from "../nullable-defaults";
|
||||
import { TipPaymentPlanSchema } from "./tip_payment_plan";
|
||||
import { arrayOrEmpty } from "../../nullable-defaults";
|
||||
import { TipPaymentPlanSchema } from "../tip_payment_plan";
|
||||
|
||||
export const TipPaymentPlansResponseSchema = z.object({
|
||||
plans: arrayOrEmpty(TipPaymentPlanSchema),
|
||||
Reference in New Issue
Block a user