dub 0.59.0 → 0.59.2
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/bin/mcp-server.js +46 -86
- package/bin/mcp-server.js.map +11 -11
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/partnercreatedevent.d.ts +2 -2
- package/dist/commonjs/models/components/partnercreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/partnercreatedevent.js +2 -2
- package/dist/commonjs/models/components/partnercreatedevent.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +8 -33
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +9 -28
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +2 -2
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +2 -2
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +8 -33
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +9 -28
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +8 -33
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +9 -28
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +8 -33
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +9 -28
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/partnercreatedevent.d.ts +2 -2
- package/dist/esm/models/components/partnercreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/partnercreatedevent.js +2 -2
- package/dist/esm/models/components/partnercreatedevent.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +8 -33
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +8 -27
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +2 -2
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +2 -2
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +8 -33
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +8 -27
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +8 -33
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +8 -27
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +8 -33
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +8 -27
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/partnercreatedevent.ts +4 -4
- package/src/models/operations/createcustomer.ts +16 -43
- package/src/models/operations/createpartner.ts +4 -4
- package/src/models/operations/getcustomer.ts +16 -43
- package/src/models/operations/getcustomers.ts +16 -43
- package/src/models/operations/updatecustomer.ts +16 -43
|
@@ -63,20 +63,14 @@ export const CreateCustomerType = {
|
|
|
63
63
|
} as const;
|
|
64
64
|
export type CreateCustomerType = ClosedEnum<typeof CreateCustomerType>;
|
|
65
65
|
|
|
66
|
-
export const CreateCustomerInterval = {
|
|
67
|
-
Month: "month",
|
|
68
|
-
Year: "year",
|
|
69
|
-
} as const;
|
|
70
|
-
export type CreateCustomerInterval = ClosedEnum<typeof CreateCustomerInterval>;
|
|
71
|
-
|
|
72
66
|
export type CreateCustomerDiscount = {
|
|
73
67
|
id: string;
|
|
74
|
-
couponId: string | null;
|
|
75
|
-
couponTestId: string | null;
|
|
76
68
|
amount: number;
|
|
77
69
|
type: CreateCustomerType;
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
maxDuration: number | null;
|
|
71
|
+
couponId: string | null;
|
|
72
|
+
couponTestId: string | null;
|
|
73
|
+
partnersCount?: number | null | undefined;
|
|
80
74
|
};
|
|
81
75
|
|
|
82
76
|
/**
|
|
@@ -329,27 +323,6 @@ export namespace CreateCustomerType$ {
|
|
|
329
323
|
export const outboundSchema = CreateCustomerType$outboundSchema;
|
|
330
324
|
}
|
|
331
325
|
|
|
332
|
-
/** @internal */
|
|
333
|
-
export const CreateCustomerInterval$inboundSchema: z.ZodNativeEnum<
|
|
334
|
-
typeof CreateCustomerInterval
|
|
335
|
-
> = z.nativeEnum(CreateCustomerInterval);
|
|
336
|
-
|
|
337
|
-
/** @internal */
|
|
338
|
-
export const CreateCustomerInterval$outboundSchema: z.ZodNativeEnum<
|
|
339
|
-
typeof CreateCustomerInterval
|
|
340
|
-
> = CreateCustomerInterval$inboundSchema;
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* @internal
|
|
344
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
345
|
-
*/
|
|
346
|
-
export namespace CreateCustomerInterval$ {
|
|
347
|
-
/** @deprecated use `CreateCustomerInterval$inboundSchema` instead. */
|
|
348
|
-
export const inboundSchema = CreateCustomerInterval$inboundSchema;
|
|
349
|
-
/** @deprecated use `CreateCustomerInterval$outboundSchema` instead. */
|
|
350
|
-
export const outboundSchema = CreateCustomerInterval$outboundSchema;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
326
|
/** @internal */
|
|
354
327
|
export const CreateCustomerDiscount$inboundSchema: z.ZodType<
|
|
355
328
|
CreateCustomerDiscount,
|
|
@@ -357,23 +330,23 @@ export const CreateCustomerDiscount$inboundSchema: z.ZodType<
|
|
|
357
330
|
unknown
|
|
358
331
|
> = z.object({
|
|
359
332
|
id: z.string(),
|
|
360
|
-
couponId: z.nullable(z.string()),
|
|
361
|
-
couponTestId: z.nullable(z.string()),
|
|
362
333
|
amount: z.number(),
|
|
363
334
|
type: CreateCustomerType$inboundSchema,
|
|
364
|
-
|
|
365
|
-
|
|
335
|
+
maxDuration: z.nullable(z.number()),
|
|
336
|
+
couponId: z.nullable(z.string()),
|
|
337
|
+
couponTestId: z.nullable(z.string()),
|
|
338
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
366
339
|
});
|
|
367
340
|
|
|
368
341
|
/** @internal */
|
|
369
342
|
export type CreateCustomerDiscount$Outbound = {
|
|
370
343
|
id: string;
|
|
371
|
-
couponId: string | null;
|
|
372
|
-
couponTestId: string | null;
|
|
373
344
|
amount: number;
|
|
374
345
|
type: string;
|
|
375
|
-
|
|
376
|
-
|
|
346
|
+
maxDuration: number | null;
|
|
347
|
+
couponId: string | null;
|
|
348
|
+
couponTestId: string | null;
|
|
349
|
+
partnersCount?: number | null | undefined;
|
|
377
350
|
};
|
|
378
351
|
|
|
379
352
|
/** @internal */
|
|
@@ -383,12 +356,12 @@ export const CreateCustomerDiscount$outboundSchema: z.ZodType<
|
|
|
383
356
|
CreateCustomerDiscount
|
|
384
357
|
> = z.object({
|
|
385
358
|
id: z.string(),
|
|
386
|
-
couponId: z.nullable(z.string()),
|
|
387
|
-
couponTestId: z.nullable(z.string()),
|
|
388
359
|
amount: z.number(),
|
|
389
360
|
type: CreateCustomerType$outboundSchema,
|
|
390
|
-
|
|
391
|
-
|
|
361
|
+
maxDuration: z.nullable(z.number()),
|
|
362
|
+
couponId: z.nullable(z.string()),
|
|
363
|
+
couponTestId: z.nullable(z.string()),
|
|
364
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
392
365
|
});
|
|
393
366
|
|
|
394
367
|
/**
|
|
@@ -484,7 +484,7 @@ export type CreatePartnerResponseBody = {
|
|
|
484
484
|
image: string | null;
|
|
485
485
|
description?: string | null | undefined;
|
|
486
486
|
country: string | null;
|
|
487
|
-
|
|
487
|
+
payoutsEnabledAt: string | null;
|
|
488
488
|
createdAt: string;
|
|
489
489
|
status: Status;
|
|
490
490
|
programId: string;
|
|
@@ -934,7 +934,7 @@ export const CreatePartnerResponseBody$inboundSchema: z.ZodType<
|
|
|
934
934
|
image: z.nullable(z.string()),
|
|
935
935
|
description: z.nullable(z.string()).optional(),
|
|
936
936
|
country: z.nullable(z.string()),
|
|
937
|
-
|
|
937
|
+
payoutsEnabledAt: z.nullable(z.string()),
|
|
938
938
|
createdAt: z.string(),
|
|
939
939
|
status: Status$inboundSchema,
|
|
940
940
|
programId: z.string(),
|
|
@@ -956,7 +956,7 @@ export type CreatePartnerResponseBody$Outbound = {
|
|
|
956
956
|
image: string | null;
|
|
957
957
|
description?: string | null | undefined;
|
|
958
958
|
country: string | null;
|
|
959
|
-
|
|
959
|
+
payoutsEnabledAt: string | null;
|
|
960
960
|
createdAt: string;
|
|
961
961
|
status: string;
|
|
962
962
|
programId: string;
|
|
@@ -982,7 +982,7 @@ export const CreatePartnerResponseBody$outboundSchema: z.ZodType<
|
|
|
982
982
|
image: z.nullable(z.string()),
|
|
983
983
|
description: z.nullable(z.string()).optional(),
|
|
984
984
|
country: z.nullable(z.string()),
|
|
985
|
-
|
|
985
|
+
payoutsEnabledAt: z.nullable(z.string()),
|
|
986
986
|
createdAt: z.string(),
|
|
987
987
|
status: Status$outboundSchema,
|
|
988
988
|
programId: z.string(),
|
|
@@ -55,20 +55,14 @@ export const GetCustomerType = {
|
|
|
55
55
|
} as const;
|
|
56
56
|
export type GetCustomerType = ClosedEnum<typeof GetCustomerType>;
|
|
57
57
|
|
|
58
|
-
export const GetCustomerInterval = {
|
|
59
|
-
Month: "month",
|
|
60
|
-
Year: "year",
|
|
61
|
-
} as const;
|
|
62
|
-
export type GetCustomerInterval = ClosedEnum<typeof GetCustomerInterval>;
|
|
63
|
-
|
|
64
58
|
export type GetCustomerDiscount = {
|
|
65
59
|
id: string;
|
|
66
|
-
couponId: string | null;
|
|
67
|
-
couponTestId: string | null;
|
|
68
60
|
amount: number;
|
|
69
61
|
type: GetCustomerType;
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
maxDuration: number | null;
|
|
63
|
+
couponId: string | null;
|
|
64
|
+
couponTestId: string | null;
|
|
65
|
+
partnersCount?: number | null | undefined;
|
|
72
66
|
};
|
|
73
67
|
|
|
74
68
|
/**
|
|
@@ -313,27 +307,6 @@ export namespace GetCustomerType$ {
|
|
|
313
307
|
export const outboundSchema = GetCustomerType$outboundSchema;
|
|
314
308
|
}
|
|
315
309
|
|
|
316
|
-
/** @internal */
|
|
317
|
-
export const GetCustomerInterval$inboundSchema: z.ZodNativeEnum<
|
|
318
|
-
typeof GetCustomerInterval
|
|
319
|
-
> = z.nativeEnum(GetCustomerInterval);
|
|
320
|
-
|
|
321
|
-
/** @internal */
|
|
322
|
-
export const GetCustomerInterval$outboundSchema: z.ZodNativeEnum<
|
|
323
|
-
typeof GetCustomerInterval
|
|
324
|
-
> = GetCustomerInterval$inboundSchema;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @internal
|
|
328
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
329
|
-
*/
|
|
330
|
-
export namespace GetCustomerInterval$ {
|
|
331
|
-
/** @deprecated use `GetCustomerInterval$inboundSchema` instead. */
|
|
332
|
-
export const inboundSchema = GetCustomerInterval$inboundSchema;
|
|
333
|
-
/** @deprecated use `GetCustomerInterval$outboundSchema` instead. */
|
|
334
|
-
export const outboundSchema = GetCustomerInterval$outboundSchema;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
310
|
/** @internal */
|
|
338
311
|
export const GetCustomerDiscount$inboundSchema: z.ZodType<
|
|
339
312
|
GetCustomerDiscount,
|
|
@@ -341,23 +314,23 @@ export const GetCustomerDiscount$inboundSchema: z.ZodType<
|
|
|
341
314
|
unknown
|
|
342
315
|
> = z.object({
|
|
343
316
|
id: z.string(),
|
|
344
|
-
couponId: z.nullable(z.string()),
|
|
345
|
-
couponTestId: z.nullable(z.string()),
|
|
346
317
|
amount: z.number(),
|
|
347
318
|
type: GetCustomerType$inboundSchema,
|
|
348
|
-
|
|
349
|
-
|
|
319
|
+
maxDuration: z.nullable(z.number()),
|
|
320
|
+
couponId: z.nullable(z.string()),
|
|
321
|
+
couponTestId: z.nullable(z.string()),
|
|
322
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
350
323
|
});
|
|
351
324
|
|
|
352
325
|
/** @internal */
|
|
353
326
|
export type GetCustomerDiscount$Outbound = {
|
|
354
327
|
id: string;
|
|
355
|
-
couponId: string | null;
|
|
356
|
-
couponTestId: string | null;
|
|
357
328
|
amount: number;
|
|
358
329
|
type: string;
|
|
359
|
-
|
|
360
|
-
|
|
330
|
+
maxDuration: number | null;
|
|
331
|
+
couponId: string | null;
|
|
332
|
+
couponTestId: string | null;
|
|
333
|
+
partnersCount?: number | null | undefined;
|
|
361
334
|
};
|
|
362
335
|
|
|
363
336
|
/** @internal */
|
|
@@ -367,12 +340,12 @@ export const GetCustomerDiscount$outboundSchema: z.ZodType<
|
|
|
367
340
|
GetCustomerDiscount
|
|
368
341
|
> = z.object({
|
|
369
342
|
id: z.string(),
|
|
370
|
-
couponId: z.nullable(z.string()),
|
|
371
|
-
couponTestId: z.nullable(z.string()),
|
|
372
343
|
amount: z.number(),
|
|
373
344
|
type: GetCustomerType$outboundSchema,
|
|
374
|
-
|
|
375
|
-
|
|
345
|
+
maxDuration: z.nullable(z.number()),
|
|
346
|
+
couponId: z.nullable(z.string()),
|
|
347
|
+
couponTestId: z.nullable(z.string()),
|
|
348
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
376
349
|
});
|
|
377
350
|
|
|
378
351
|
/**
|
|
@@ -59,20 +59,14 @@ export const Type = {
|
|
|
59
59
|
} as const;
|
|
60
60
|
export type Type = ClosedEnum<typeof Type>;
|
|
61
61
|
|
|
62
|
-
export const GetCustomersInterval = {
|
|
63
|
-
Month: "month",
|
|
64
|
-
Year: "year",
|
|
65
|
-
} as const;
|
|
66
|
-
export type GetCustomersInterval = ClosedEnum<typeof GetCustomersInterval>;
|
|
67
|
-
|
|
68
62
|
export type Discount = {
|
|
69
63
|
id: string;
|
|
70
|
-
couponId: string | null;
|
|
71
|
-
couponTestId: string | null;
|
|
72
64
|
amount: number;
|
|
73
65
|
type: Type;
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
maxDuration: number | null;
|
|
67
|
+
couponId: string | null;
|
|
68
|
+
couponTestId: string | null;
|
|
69
|
+
partnersCount?: number | null | undefined;
|
|
76
70
|
};
|
|
77
71
|
|
|
78
72
|
export type GetCustomersResponseBody = {
|
|
@@ -308,27 +302,6 @@ export namespace Type$ {
|
|
|
308
302
|
export const outboundSchema = Type$outboundSchema;
|
|
309
303
|
}
|
|
310
304
|
|
|
311
|
-
/** @internal */
|
|
312
|
-
export const GetCustomersInterval$inboundSchema: z.ZodNativeEnum<
|
|
313
|
-
typeof GetCustomersInterval
|
|
314
|
-
> = z.nativeEnum(GetCustomersInterval);
|
|
315
|
-
|
|
316
|
-
/** @internal */
|
|
317
|
-
export const GetCustomersInterval$outboundSchema: z.ZodNativeEnum<
|
|
318
|
-
typeof GetCustomersInterval
|
|
319
|
-
> = GetCustomersInterval$inboundSchema;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* @internal
|
|
323
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
324
|
-
*/
|
|
325
|
-
export namespace GetCustomersInterval$ {
|
|
326
|
-
/** @deprecated use `GetCustomersInterval$inboundSchema` instead. */
|
|
327
|
-
export const inboundSchema = GetCustomersInterval$inboundSchema;
|
|
328
|
-
/** @deprecated use `GetCustomersInterval$outboundSchema` instead. */
|
|
329
|
-
export const outboundSchema = GetCustomersInterval$outboundSchema;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
305
|
/** @internal */
|
|
333
306
|
export const Discount$inboundSchema: z.ZodType<
|
|
334
307
|
Discount,
|
|
@@ -336,23 +309,23 @@ export const Discount$inboundSchema: z.ZodType<
|
|
|
336
309
|
unknown
|
|
337
310
|
> = z.object({
|
|
338
311
|
id: z.string(),
|
|
339
|
-
couponId: z.nullable(z.string()),
|
|
340
|
-
couponTestId: z.nullable(z.string()),
|
|
341
312
|
amount: z.number(),
|
|
342
313
|
type: Type$inboundSchema,
|
|
343
|
-
|
|
344
|
-
|
|
314
|
+
maxDuration: z.nullable(z.number()),
|
|
315
|
+
couponId: z.nullable(z.string()),
|
|
316
|
+
couponTestId: z.nullable(z.string()),
|
|
317
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
345
318
|
});
|
|
346
319
|
|
|
347
320
|
/** @internal */
|
|
348
321
|
export type Discount$Outbound = {
|
|
349
322
|
id: string;
|
|
350
|
-
couponId: string | null;
|
|
351
|
-
couponTestId: string | null;
|
|
352
323
|
amount: number;
|
|
353
324
|
type: string;
|
|
354
|
-
|
|
355
|
-
|
|
325
|
+
maxDuration: number | null;
|
|
326
|
+
couponId: string | null;
|
|
327
|
+
couponTestId: string | null;
|
|
328
|
+
partnersCount?: number | null | undefined;
|
|
356
329
|
};
|
|
357
330
|
|
|
358
331
|
/** @internal */
|
|
@@ -362,12 +335,12 @@ export const Discount$outboundSchema: z.ZodType<
|
|
|
362
335
|
Discount
|
|
363
336
|
> = z.object({
|
|
364
337
|
id: z.string(),
|
|
365
|
-
couponId: z.nullable(z.string()),
|
|
366
|
-
couponTestId: z.nullable(z.string()),
|
|
367
338
|
amount: z.number(),
|
|
368
339
|
type: Type$outboundSchema,
|
|
369
|
-
|
|
370
|
-
|
|
340
|
+
maxDuration: z.nullable(z.number()),
|
|
341
|
+
couponId: z.nullable(z.string()),
|
|
342
|
+
couponTestId: z.nullable(z.string()),
|
|
343
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
371
344
|
});
|
|
372
345
|
|
|
373
346
|
/**
|
|
@@ -76,20 +76,14 @@ export const UpdateCustomerType = {
|
|
|
76
76
|
} as const;
|
|
77
77
|
export type UpdateCustomerType = ClosedEnum<typeof UpdateCustomerType>;
|
|
78
78
|
|
|
79
|
-
export const UpdateCustomerInterval = {
|
|
80
|
-
Month: "month",
|
|
81
|
-
Year: "year",
|
|
82
|
-
} as const;
|
|
83
|
-
export type UpdateCustomerInterval = ClosedEnum<typeof UpdateCustomerInterval>;
|
|
84
|
-
|
|
85
79
|
export type UpdateCustomerDiscount = {
|
|
86
80
|
id: string;
|
|
87
|
-
couponId: string | null;
|
|
88
|
-
couponTestId: string | null;
|
|
89
81
|
amount: number;
|
|
90
82
|
type: UpdateCustomerType;
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
maxDuration: number | null;
|
|
84
|
+
couponId: string | null;
|
|
85
|
+
couponTestId: string | null;
|
|
86
|
+
partnersCount?: number | null | undefined;
|
|
93
87
|
};
|
|
94
88
|
|
|
95
89
|
/**
|
|
@@ -411,27 +405,6 @@ export namespace UpdateCustomerType$ {
|
|
|
411
405
|
export const outboundSchema = UpdateCustomerType$outboundSchema;
|
|
412
406
|
}
|
|
413
407
|
|
|
414
|
-
/** @internal */
|
|
415
|
-
export const UpdateCustomerInterval$inboundSchema: z.ZodNativeEnum<
|
|
416
|
-
typeof UpdateCustomerInterval
|
|
417
|
-
> = z.nativeEnum(UpdateCustomerInterval);
|
|
418
|
-
|
|
419
|
-
/** @internal */
|
|
420
|
-
export const UpdateCustomerInterval$outboundSchema: z.ZodNativeEnum<
|
|
421
|
-
typeof UpdateCustomerInterval
|
|
422
|
-
> = UpdateCustomerInterval$inboundSchema;
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* @internal
|
|
426
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
427
|
-
*/
|
|
428
|
-
export namespace UpdateCustomerInterval$ {
|
|
429
|
-
/** @deprecated use `UpdateCustomerInterval$inboundSchema` instead. */
|
|
430
|
-
export const inboundSchema = UpdateCustomerInterval$inboundSchema;
|
|
431
|
-
/** @deprecated use `UpdateCustomerInterval$outboundSchema` instead. */
|
|
432
|
-
export const outboundSchema = UpdateCustomerInterval$outboundSchema;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
408
|
/** @internal */
|
|
436
409
|
export const UpdateCustomerDiscount$inboundSchema: z.ZodType<
|
|
437
410
|
UpdateCustomerDiscount,
|
|
@@ -439,23 +412,23 @@ export const UpdateCustomerDiscount$inboundSchema: z.ZodType<
|
|
|
439
412
|
unknown
|
|
440
413
|
> = z.object({
|
|
441
414
|
id: z.string(),
|
|
442
|
-
couponId: z.nullable(z.string()),
|
|
443
|
-
couponTestId: z.nullable(z.string()),
|
|
444
415
|
amount: z.number(),
|
|
445
416
|
type: UpdateCustomerType$inboundSchema,
|
|
446
|
-
|
|
447
|
-
|
|
417
|
+
maxDuration: z.nullable(z.number()),
|
|
418
|
+
couponId: z.nullable(z.string()),
|
|
419
|
+
couponTestId: z.nullable(z.string()),
|
|
420
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
448
421
|
});
|
|
449
422
|
|
|
450
423
|
/** @internal */
|
|
451
424
|
export type UpdateCustomerDiscount$Outbound = {
|
|
452
425
|
id: string;
|
|
453
|
-
couponId: string | null;
|
|
454
|
-
couponTestId: string | null;
|
|
455
426
|
amount: number;
|
|
456
427
|
type: string;
|
|
457
|
-
|
|
458
|
-
|
|
428
|
+
maxDuration: number | null;
|
|
429
|
+
couponId: string | null;
|
|
430
|
+
couponTestId: string | null;
|
|
431
|
+
partnersCount?: number | null | undefined;
|
|
459
432
|
};
|
|
460
433
|
|
|
461
434
|
/** @internal */
|
|
@@ -465,12 +438,12 @@ export const UpdateCustomerDiscount$outboundSchema: z.ZodType<
|
|
|
465
438
|
UpdateCustomerDiscount
|
|
466
439
|
> = z.object({
|
|
467
440
|
id: z.string(),
|
|
468
|
-
couponId: z.nullable(z.string()),
|
|
469
|
-
couponTestId: z.nullable(z.string()),
|
|
470
441
|
amount: z.number(),
|
|
471
442
|
type: UpdateCustomerType$outboundSchema,
|
|
472
|
-
|
|
473
|
-
|
|
443
|
+
maxDuration: z.nullable(z.number()),
|
|
444
|
+
couponId: z.nullable(z.string()),
|
|
445
|
+
couponTestId: z.nullable(z.string()),
|
|
446
|
+
partnersCount: z.nullable(z.number()).optional(),
|
|
474
447
|
});
|
|
475
448
|
|
|
476
449
|
/**
|