erpnext-queue-client 2.4.0 → 2.4.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.
|
@@ -16,7 +16,7 @@ type ExtractAlias<T extends string> = T extends `${infer _Before} as ${infer Ali
|
|
|
16
16
|
type PickWithAliases<TModel extends AnyZodObject, TFields extends readonly string[]> = {
|
|
17
17
|
[K in TFields[number] as ExtractAlias<K>]: ExtractAlias<K> extends keyof z.infer<DocModelListEntryType<TModel>> ? z.infer<DocModelListEntryType<TModel>>[ExtractAlias<K>] : never;
|
|
18
18
|
};
|
|
19
|
-
export type GetListReturnValue<TModel, TFieldOptions extends KeysOfModel<TModel>, TSelectedFields
|
|
19
|
+
export type GetListReturnValue<TModel, TFieldOptions extends KeysOfModel<TModel>, TSelectedFields, TAsDict> = Prettify<TAsDict extends false ? Array<Array<string>> : TModel extends AnyZodObject ? TSelectedFields extends undefined ? Array<{
|
|
20
20
|
name: string;
|
|
21
21
|
}> : TSelectedFields extends readonly ["*"] ? Array<z.infer<DocModelListEntryType<TModel>>> : TSelectedFields extends readonly TFieldOptions[] ? Array<PickWithAliases<TModel, TSelectedFields>> : any : any>;
|
|
22
22
|
export declare const LoadDocumentWrapper: <T extends AnyZodObject>(BaseModel: T) => z.ZodObject<{
|
|
@@ -336,7 +336,7 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
336
336
|
taxes: z.ZodArray<z.ZodAny, "many"> & {
|
|
337
337
|
__optionalForInput: true;
|
|
338
338
|
};
|
|
339
|
-
payment_schedule: z.ZodArray<z.ZodObject<{
|
|
339
|
+
payment_schedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
340
340
|
payment_term: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
341
341
|
description: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
342
342
|
due_date: z.ZodString;
|
|
@@ -378,9 +378,7 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
378
378
|
base_payment_amount?: number | null | undefined;
|
|
379
379
|
discount_type?: any;
|
|
380
380
|
discount_date?: any;
|
|
381
|
-
}>, "many"
|
|
382
|
-
__optionalForInput: true;
|
|
383
|
-
};
|
|
381
|
+
}>, "many">>;
|
|
384
382
|
}, "strip", z.ZodTypeAny, {
|
|
385
383
|
company: string;
|
|
386
384
|
is_internal_supplier: number;
|
|
@@ -461,21 +459,6 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
461
459
|
supplier: string;
|
|
462
460
|
is_subcontracted: number;
|
|
463
461
|
supplied_items: any[];
|
|
464
|
-
payment_schedule: {
|
|
465
|
-
due_date: string;
|
|
466
|
-
payment_amount: number;
|
|
467
|
-
description?: any;
|
|
468
|
-
payment_term?: any;
|
|
469
|
-
mode_of_payment?: any;
|
|
470
|
-
paid_amount?: number | null | undefined;
|
|
471
|
-
invoice_portion?: number | null | undefined;
|
|
472
|
-
discount?: number | null | undefined;
|
|
473
|
-
outstanding?: number | null | undefined;
|
|
474
|
-
discounted_amount?: number | null | undefined;
|
|
475
|
-
base_payment_amount?: number | null | undefined;
|
|
476
|
-
discount_type?: any;
|
|
477
|
-
discount_date?: any;
|
|
478
|
-
}[];
|
|
479
462
|
transaction_date: string;
|
|
480
463
|
status?: string | null | undefined;
|
|
481
464
|
doctype?: string | null | undefined;
|
|
@@ -546,6 +529,21 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
546
529
|
payment_terms_template?: string | null | undefined;
|
|
547
530
|
party_account_currency?: string | null | undefined;
|
|
548
531
|
per_received?: number | null | undefined;
|
|
532
|
+
payment_schedule?: {
|
|
533
|
+
due_date: string;
|
|
534
|
+
payment_amount: number;
|
|
535
|
+
description?: any;
|
|
536
|
+
payment_term?: any;
|
|
537
|
+
mode_of_payment?: any;
|
|
538
|
+
paid_amount?: number | null | undefined;
|
|
539
|
+
invoice_portion?: number | null | undefined;
|
|
540
|
+
discount?: number | null | undefined;
|
|
541
|
+
outstanding?: number | null | undefined;
|
|
542
|
+
discounted_amount?: number | null | undefined;
|
|
543
|
+
base_payment_amount?: number | null | undefined;
|
|
544
|
+
discount_type?: any;
|
|
545
|
+
discount_date?: any;
|
|
546
|
+
}[] | undefined;
|
|
549
547
|
schedule_date?: string | null | undefined;
|
|
550
548
|
supplier_address?: string | null | undefined;
|
|
551
549
|
supplier_warehouse?: any;
|
|
@@ -643,21 +641,6 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
643
641
|
supplier: string;
|
|
644
642
|
is_subcontracted: number;
|
|
645
643
|
supplied_items: any[];
|
|
646
|
-
payment_schedule: {
|
|
647
|
-
due_date: string;
|
|
648
|
-
payment_amount: number;
|
|
649
|
-
description?: any;
|
|
650
|
-
payment_term?: any;
|
|
651
|
-
mode_of_payment?: any;
|
|
652
|
-
paid_amount?: number | null | undefined;
|
|
653
|
-
invoice_portion?: number | null | undefined;
|
|
654
|
-
discount?: number | null | undefined;
|
|
655
|
-
outstanding?: number | null | undefined;
|
|
656
|
-
discounted_amount?: number | null | undefined;
|
|
657
|
-
base_payment_amount?: number | null | undefined;
|
|
658
|
-
discount_type?: any;
|
|
659
|
-
discount_date?: any;
|
|
660
|
-
}[];
|
|
661
644
|
transaction_date: string;
|
|
662
645
|
status?: string | null | undefined;
|
|
663
646
|
doctype?: string | null | undefined;
|
|
@@ -728,6 +711,21 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
728
711
|
payment_terms_template?: string | null | undefined;
|
|
729
712
|
party_account_currency?: string | null | undefined;
|
|
730
713
|
per_received?: number | null | undefined;
|
|
714
|
+
payment_schedule?: {
|
|
715
|
+
due_date: string;
|
|
716
|
+
payment_amount: number;
|
|
717
|
+
description?: any;
|
|
718
|
+
payment_term?: any;
|
|
719
|
+
mode_of_payment?: any;
|
|
720
|
+
paid_amount?: number | null | undefined;
|
|
721
|
+
invoice_portion?: number | null | undefined;
|
|
722
|
+
discount?: number | null | undefined;
|
|
723
|
+
outstanding?: number | null | undefined;
|
|
724
|
+
discounted_amount?: number | null | undefined;
|
|
725
|
+
base_payment_amount?: number | null | undefined;
|
|
726
|
+
discount_type?: any;
|
|
727
|
+
discount_date?: any;
|
|
728
|
+
}[] | undefined;
|
|
731
729
|
schedule_date?: string | null | undefined;
|
|
732
730
|
supplier_address?: string | null | undefined;
|
|
733
731
|
supplier_warehouse?: any;
|
|
@@ -191,6 +191,6 @@ exports.PurchaseOrder = zod_1.z
|
|
|
191
191
|
pricing_rules: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.array(zod_1.z.any())),
|
|
192
192
|
supplied_items: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.array(zod_1.z.any())),
|
|
193
193
|
taxes: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.array(zod_1.z.any())),
|
|
194
|
-
payment_schedule:
|
|
194
|
+
payment_schedule: zod_1.z.array(PaymentSchedule).optional(),
|
|
195
195
|
})
|
|
196
196
|
.describe("PurchaseOrder");
|