@deliverart/sdk-js-point-of-sale 2.1.13 → 2.1.15
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/dist/index.cjs +210 -15
- package/dist/index.d.cts +964 -1
- package/dist/index.d.ts +964 -1
- package/dist/index.js +193 -16
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -475,6 +475,7 @@ declare const pointOfSalesQuerySchema: z.ZodObject<{
|
|
|
475
475
|
}, z.core.$strip>;
|
|
476
476
|
type PointOfSalesQueryParams = z.infer<typeof pointOfSalesQuerySchema>;
|
|
477
477
|
declare const pointOfSaleUsersQuerySchema: z.ZodObject<{
|
|
478
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
478
479
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
479
480
|
asc: "asc";
|
|
480
481
|
desc: "desc";
|
|
@@ -495,6 +496,968 @@ declare const pointOfSaleUsersQuerySchema: z.ZodObject<{
|
|
|
495
496
|
}, z.core.$strip>;
|
|
496
497
|
type PointOfSaleUsersQueryParams = z.infer<typeof pointOfSaleUsersQuerySchema>;
|
|
497
498
|
|
|
499
|
+
declare const deletePointOfSaleUserInputSchema: z.ZodUndefined;
|
|
500
|
+
declare const deletePointOfSaleUserResponseSchema: z.ZodUndefined;
|
|
501
|
+
declare class DeletePointOfSaleUser extends AbstractApiRequest<typeof deletePointOfSaleUserInputSchema, typeof deletePointOfSaleUserResponseSchema> {
|
|
502
|
+
readonly method = "DELETE";
|
|
503
|
+
readonly contentType = "application/json";
|
|
504
|
+
readonly accept = "application/json";
|
|
505
|
+
readonly inputSchema: z.ZodUndefined;
|
|
506
|
+
readonly outputSchema: z.ZodUndefined;
|
|
507
|
+
readonly querySchema: undefined;
|
|
508
|
+
readonly headersSchema: undefined;
|
|
509
|
+
private readonly pointOfSaleUserId;
|
|
510
|
+
constructor(pointOfSaleUserId: string);
|
|
511
|
+
getPath(): string;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
declare const getPointOfSaleUserDetailsInputSchema: z.ZodUndefined;
|
|
515
|
+
type GetPointOfSaleUserDetailsInput = z.input<typeof getPointOfSaleUserDetailsInputSchema>;
|
|
516
|
+
declare const getPointOfSaleUserDetailsResponseSchema: z.ZodObject<{
|
|
517
|
+
id: z.ZodString;
|
|
518
|
+
user: z.ZodObject<{
|
|
519
|
+
id: z.ZodString;
|
|
520
|
+
firstName: z.ZodString;
|
|
521
|
+
lastName: z.ZodString;
|
|
522
|
+
email: z.ZodEmail;
|
|
523
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
524
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
525
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
526
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
527
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
528
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
529
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
530
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
531
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
532
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
533
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
534
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
535
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
536
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
537
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
538
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
539
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
540
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
541
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
542
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
543
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
544
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
545
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
546
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
547
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
548
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
549
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
550
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
551
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
552
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
553
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
554
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
555
|
+
ROLE_USER: "ROLE_USER";
|
|
556
|
+
}>>;
|
|
557
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
558
|
+
registration: "registration";
|
|
559
|
+
verify_email: "verify_email";
|
|
560
|
+
create_company: "create_company";
|
|
561
|
+
create_point_of_sale: "create_point_of_sale";
|
|
562
|
+
}>>;
|
|
563
|
+
emailVerified: z.ZodBoolean;
|
|
564
|
+
suspended: z.ZodBoolean;
|
|
565
|
+
createdAt: z.ZodString;
|
|
566
|
+
updatedAt: z.ZodString;
|
|
567
|
+
}, z.core.$strip>;
|
|
568
|
+
pointOfSale: z.ZodObject<{
|
|
569
|
+
id: z.ZodString;
|
|
570
|
+
name: z.ZodString;
|
|
571
|
+
address: z.ZodObject<{
|
|
572
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
573
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
574
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
575
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
577
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
578
|
+
}, z.core.$strip>;
|
|
579
|
+
timezone: z.ZodString;
|
|
580
|
+
location: z.ZodObject<{
|
|
581
|
+
latitude: z.ZodNumber;
|
|
582
|
+
longitude: z.ZodNumber;
|
|
583
|
+
}, z.core.$strip>;
|
|
584
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
585
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
586
|
+
}>>;
|
|
587
|
+
openingStatus: z.ZodEnum<{
|
|
588
|
+
OPEN: "OPEN";
|
|
589
|
+
CLOSED: "CLOSED";
|
|
590
|
+
}>;
|
|
591
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
592
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
593
|
+
createdAt: z.ZodString;
|
|
594
|
+
updatedAt: z.ZodString;
|
|
595
|
+
}, z.core.$strip>;
|
|
596
|
+
role: z.ZodEnum<{
|
|
597
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
598
|
+
ROLE_READER: "ROLE_READER";
|
|
599
|
+
}>;
|
|
600
|
+
createdAt: z.ZodString;
|
|
601
|
+
updatedAt: z.ZodString;
|
|
602
|
+
}, z.core.$strip>;
|
|
603
|
+
type GetPointOfSaleUserDetailsResponse = z.infer<typeof getPointOfSaleUserDetailsResponseSchema>;
|
|
604
|
+
declare class GetPointOfSaleUserDetails extends AbstractApiRequest<typeof getPointOfSaleUserDetailsInputSchema, typeof getPointOfSaleUserDetailsResponseSchema> {
|
|
605
|
+
readonly method = "GET";
|
|
606
|
+
readonly contentType = "application/json";
|
|
607
|
+
readonly accept = "application/json";
|
|
608
|
+
readonly inputSchema: z.ZodUndefined;
|
|
609
|
+
readonly outputSchema: z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
user: z.ZodObject<{
|
|
612
|
+
id: z.ZodString;
|
|
613
|
+
firstName: z.ZodString;
|
|
614
|
+
lastName: z.ZodString;
|
|
615
|
+
email: z.ZodEmail;
|
|
616
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
617
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
618
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
619
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
620
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
621
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
622
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
623
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
624
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
625
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
626
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
627
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
628
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
629
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
630
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
631
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
632
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
633
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
634
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
635
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
636
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
637
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
638
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
639
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
640
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
641
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
642
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
643
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
644
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
645
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
646
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
647
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
648
|
+
ROLE_USER: "ROLE_USER";
|
|
649
|
+
}>>;
|
|
650
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
651
|
+
registration: "registration";
|
|
652
|
+
verify_email: "verify_email";
|
|
653
|
+
create_company: "create_company";
|
|
654
|
+
create_point_of_sale: "create_point_of_sale";
|
|
655
|
+
}>>;
|
|
656
|
+
emailVerified: z.ZodBoolean;
|
|
657
|
+
suspended: z.ZodBoolean;
|
|
658
|
+
createdAt: z.ZodString;
|
|
659
|
+
updatedAt: z.ZodString;
|
|
660
|
+
}, z.core.$strip>;
|
|
661
|
+
pointOfSale: z.ZodObject<{
|
|
662
|
+
id: z.ZodString;
|
|
663
|
+
name: z.ZodString;
|
|
664
|
+
address: z.ZodObject<{
|
|
665
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
666
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
667
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
668
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
669
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
670
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
|
+
}, z.core.$strip>;
|
|
672
|
+
timezone: z.ZodString;
|
|
673
|
+
location: z.ZodObject<{
|
|
674
|
+
latitude: z.ZodNumber;
|
|
675
|
+
longitude: z.ZodNumber;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
678
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
679
|
+
}>>;
|
|
680
|
+
openingStatus: z.ZodEnum<{
|
|
681
|
+
OPEN: "OPEN";
|
|
682
|
+
CLOSED: "CLOSED";
|
|
683
|
+
}>;
|
|
684
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
685
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
686
|
+
createdAt: z.ZodString;
|
|
687
|
+
updatedAt: z.ZodString;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
role: z.ZodEnum<{
|
|
690
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
691
|
+
ROLE_READER: "ROLE_READER";
|
|
692
|
+
}>;
|
|
693
|
+
createdAt: z.ZodString;
|
|
694
|
+
updatedAt: z.ZodString;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
readonly querySchema: undefined;
|
|
697
|
+
readonly headersSchema: undefined;
|
|
698
|
+
private readonly pointOfSaleUserId;
|
|
699
|
+
constructor(pointOfSaleUserId: string);
|
|
700
|
+
getPath(): string;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
declare const getPointOfSaleUsersQuerySchema: z.ZodObject<{
|
|
704
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
705
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
706
|
+
asc: "asc";
|
|
707
|
+
desc: "desc";
|
|
708
|
+
}>>;
|
|
709
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
710
|
+
asc: "asc";
|
|
711
|
+
desc: "desc";
|
|
712
|
+
}>>;
|
|
713
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
714
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
715
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
716
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
717
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
718
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
719
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
720
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
721
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
type GetPointOfSaleUsersQueryParams = z.infer<typeof getPointOfSaleUsersQuerySchema>;
|
|
724
|
+
declare const getPointOfSaleUsersInputSchema: z.ZodUndefined;
|
|
725
|
+
type GetPointOfSaleUsersInput = z.input<typeof getPointOfSaleUsersInputSchema>;
|
|
726
|
+
declare const getPointOfSaleUsersResponseSchema: z.ZodObject<{
|
|
727
|
+
data: z.ZodArray<z.ZodObject<{
|
|
728
|
+
id: z.ZodString;
|
|
729
|
+
user: z.ZodObject<{
|
|
730
|
+
id: z.ZodString;
|
|
731
|
+
firstName: z.ZodString;
|
|
732
|
+
lastName: z.ZodString;
|
|
733
|
+
email: z.ZodEmail;
|
|
734
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
735
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
736
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
737
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
738
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
739
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
740
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
741
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
742
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
743
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
744
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
745
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
746
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
747
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
748
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
749
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
750
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
751
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
752
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
753
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
754
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
755
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
756
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
757
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
758
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
759
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
760
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
761
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
762
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
763
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
764
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
765
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
766
|
+
ROLE_USER: "ROLE_USER";
|
|
767
|
+
}>>;
|
|
768
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
769
|
+
registration: "registration";
|
|
770
|
+
verify_email: "verify_email";
|
|
771
|
+
create_company: "create_company";
|
|
772
|
+
create_point_of_sale: "create_point_of_sale";
|
|
773
|
+
}>>;
|
|
774
|
+
emailVerified: z.ZodBoolean;
|
|
775
|
+
suspended: z.ZodBoolean;
|
|
776
|
+
createdAt: z.ZodString;
|
|
777
|
+
updatedAt: z.ZodString;
|
|
778
|
+
}, z.core.$strip>;
|
|
779
|
+
pointOfSale: z.ZodObject<{
|
|
780
|
+
id: z.ZodString;
|
|
781
|
+
name: z.ZodString;
|
|
782
|
+
address: z.ZodObject<{
|
|
783
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
}, z.core.$strip>;
|
|
790
|
+
timezone: z.ZodString;
|
|
791
|
+
location: z.ZodObject<{
|
|
792
|
+
latitude: z.ZodNumber;
|
|
793
|
+
longitude: z.ZodNumber;
|
|
794
|
+
}, z.core.$strip>;
|
|
795
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
796
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
797
|
+
}>>;
|
|
798
|
+
openingStatus: z.ZodEnum<{
|
|
799
|
+
OPEN: "OPEN";
|
|
800
|
+
CLOSED: "CLOSED";
|
|
801
|
+
}>;
|
|
802
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
803
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
804
|
+
createdAt: z.ZodString;
|
|
805
|
+
updatedAt: z.ZodString;
|
|
806
|
+
}, z.core.$strip>;
|
|
807
|
+
role: z.ZodEnum<{
|
|
808
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
809
|
+
ROLE_READER: "ROLE_READER";
|
|
810
|
+
}>;
|
|
811
|
+
createdAt: z.ZodString;
|
|
812
|
+
updatedAt: z.ZodString;
|
|
813
|
+
}, z.core.$strip>>;
|
|
814
|
+
pagination: z.ZodObject<{
|
|
815
|
+
from: z.ZodNumber;
|
|
816
|
+
to: z.ZodNumber;
|
|
817
|
+
itemsPerPage: z.ZodNumber;
|
|
818
|
+
totalItems: z.ZodNumber;
|
|
819
|
+
currentPage: z.ZodNumber;
|
|
820
|
+
lastPage: z.ZodNumber;
|
|
821
|
+
}, z.core.$strip>;
|
|
822
|
+
}, z.core.$strip>;
|
|
823
|
+
type GetPointOfSaleUsersResponse = z.infer<typeof getPointOfSaleUsersResponseSchema>;
|
|
824
|
+
declare class GetPointOfSaleUsers extends AbstractApiRequest<typeof getPointOfSaleUsersInputSchema, typeof getPointOfSaleUsersResponseSchema, GetPointOfSaleUsersQueryParams> {
|
|
825
|
+
readonly method = "GET";
|
|
826
|
+
readonly contentType = "application/json";
|
|
827
|
+
readonly accept = "application/json";
|
|
828
|
+
readonly inputSchema: z.ZodUndefined;
|
|
829
|
+
readonly outputSchema: z.ZodObject<{
|
|
830
|
+
data: z.ZodArray<z.ZodObject<{
|
|
831
|
+
id: z.ZodString;
|
|
832
|
+
user: z.ZodObject<{
|
|
833
|
+
id: z.ZodString;
|
|
834
|
+
firstName: z.ZodString;
|
|
835
|
+
lastName: z.ZodString;
|
|
836
|
+
email: z.ZodEmail;
|
|
837
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
838
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
839
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
840
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
841
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
842
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
843
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
844
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
845
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
846
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
847
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
848
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
849
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
850
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
851
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
852
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
853
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
854
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
855
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
856
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
857
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
858
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
859
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
860
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
861
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
862
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
863
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
864
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
865
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
866
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
867
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
868
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
869
|
+
ROLE_USER: "ROLE_USER";
|
|
870
|
+
}>>;
|
|
871
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
872
|
+
registration: "registration";
|
|
873
|
+
verify_email: "verify_email";
|
|
874
|
+
create_company: "create_company";
|
|
875
|
+
create_point_of_sale: "create_point_of_sale";
|
|
876
|
+
}>>;
|
|
877
|
+
emailVerified: z.ZodBoolean;
|
|
878
|
+
suspended: z.ZodBoolean;
|
|
879
|
+
createdAt: z.ZodString;
|
|
880
|
+
updatedAt: z.ZodString;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
pointOfSale: z.ZodObject<{
|
|
883
|
+
id: z.ZodString;
|
|
884
|
+
name: z.ZodString;
|
|
885
|
+
address: z.ZodObject<{
|
|
886
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
887
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
888
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
891
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
892
|
+
}, z.core.$strip>;
|
|
893
|
+
timezone: z.ZodString;
|
|
894
|
+
location: z.ZodObject<{
|
|
895
|
+
latitude: z.ZodNumber;
|
|
896
|
+
longitude: z.ZodNumber;
|
|
897
|
+
}, z.core.$strip>;
|
|
898
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
899
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
900
|
+
}>>;
|
|
901
|
+
openingStatus: z.ZodEnum<{
|
|
902
|
+
OPEN: "OPEN";
|
|
903
|
+
CLOSED: "CLOSED";
|
|
904
|
+
}>;
|
|
905
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
906
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
907
|
+
createdAt: z.ZodString;
|
|
908
|
+
updatedAt: z.ZodString;
|
|
909
|
+
}, z.core.$strip>;
|
|
910
|
+
role: z.ZodEnum<{
|
|
911
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
912
|
+
ROLE_READER: "ROLE_READER";
|
|
913
|
+
}>;
|
|
914
|
+
createdAt: z.ZodString;
|
|
915
|
+
updatedAt: z.ZodString;
|
|
916
|
+
}, z.core.$strip>>;
|
|
917
|
+
pagination: z.ZodObject<{
|
|
918
|
+
from: z.ZodNumber;
|
|
919
|
+
to: z.ZodNumber;
|
|
920
|
+
itemsPerPage: z.ZodNumber;
|
|
921
|
+
totalItems: z.ZodNumber;
|
|
922
|
+
currentPage: z.ZodNumber;
|
|
923
|
+
lastPage: z.ZodNumber;
|
|
924
|
+
}, z.core.$strip>;
|
|
925
|
+
}, z.core.$strip>;
|
|
926
|
+
readonly querySchema: z.ZodObject<{
|
|
927
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
928
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
929
|
+
asc: "asc";
|
|
930
|
+
desc: "desc";
|
|
931
|
+
}>>;
|
|
932
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
933
|
+
asc: "asc";
|
|
934
|
+
desc: "desc";
|
|
935
|
+
}>>;
|
|
936
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
937
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
938
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
939
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
940
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
941
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
942
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
943
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
944
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
945
|
+
}, z.core.$strip>;
|
|
946
|
+
readonly headersSchema: undefined;
|
|
947
|
+
constructor(options?: {
|
|
948
|
+
query?: GetPointOfSaleUsersQueryParams;
|
|
949
|
+
});
|
|
950
|
+
getPath(): string;
|
|
951
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleUser>;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
declare const getPointOfSaleUsersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
955
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
956
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
957
|
+
asc: "asc";
|
|
958
|
+
desc: "desc";
|
|
959
|
+
}>>;
|
|
960
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
961
|
+
asc: "asc";
|
|
962
|
+
desc: "desc";
|
|
963
|
+
}>>;
|
|
964
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
965
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
966
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
967
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
968
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
969
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
970
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
971
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
972
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
973
|
+
}, z.core.$strip>;
|
|
974
|
+
type GetPointOfSaleUsersFromPointOfSaleQueryParams = z.infer<typeof getPointOfSaleUsersFromPointOfSaleQuerySchema>;
|
|
975
|
+
declare const getPointOfSaleUsersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
976
|
+
type GetPointOfSaleUsersFromPointOfSaleInput = z.input<typeof getPointOfSaleUsersFromPointOfSaleInputSchema>;
|
|
977
|
+
declare const getPointOfSaleUsersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
978
|
+
createdAt: z.ZodString;
|
|
979
|
+
updatedAt: z.ZodString;
|
|
980
|
+
id: z.ZodString;
|
|
981
|
+
role: z.ZodEnum<{
|
|
982
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
983
|
+
ROLE_READER: "ROLE_READER";
|
|
984
|
+
}>;
|
|
985
|
+
user: z.ZodObject<{
|
|
986
|
+
id: z.ZodString;
|
|
987
|
+
firstName: z.ZodString;
|
|
988
|
+
lastName: z.ZodString;
|
|
989
|
+
email: z.ZodEmail;
|
|
990
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
991
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
992
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
993
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
994
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
995
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
996
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
997
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
998
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
999
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1000
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1001
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1002
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1003
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1004
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1005
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1006
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1007
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1008
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1009
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1010
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1011
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1012
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1013
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1014
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1015
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1016
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1017
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1018
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1019
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1020
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1021
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1022
|
+
ROLE_USER: "ROLE_USER";
|
|
1023
|
+
}>>;
|
|
1024
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1025
|
+
registration: "registration";
|
|
1026
|
+
verify_email: "verify_email";
|
|
1027
|
+
create_company: "create_company";
|
|
1028
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1029
|
+
}>>;
|
|
1030
|
+
emailVerified: z.ZodBoolean;
|
|
1031
|
+
suspended: z.ZodBoolean;
|
|
1032
|
+
createdAt: z.ZodString;
|
|
1033
|
+
updatedAt: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
}, z.core.$strip>>;
|
|
1036
|
+
type GetPointOfSaleUsersFromPointOfSaleResponse = z.infer<typeof getPointOfSaleUsersFromPointOfSaleResponseSchema>;
|
|
1037
|
+
declare class GetPointOfSaleUsersFromPointOfSale extends AbstractApiRequest<typeof getPointOfSaleUsersFromPointOfSaleInputSchema, typeof getPointOfSaleUsersFromPointOfSaleResponseSchema, GetPointOfSaleUsersFromPointOfSaleQueryParams> {
|
|
1038
|
+
readonly method = "GET";
|
|
1039
|
+
readonly contentType = "application/json";
|
|
1040
|
+
readonly accept = "application/json";
|
|
1041
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1042
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
1043
|
+
createdAt: z.ZodString;
|
|
1044
|
+
updatedAt: z.ZodString;
|
|
1045
|
+
id: z.ZodString;
|
|
1046
|
+
role: z.ZodEnum<{
|
|
1047
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1048
|
+
ROLE_READER: "ROLE_READER";
|
|
1049
|
+
}>;
|
|
1050
|
+
user: z.ZodObject<{
|
|
1051
|
+
id: z.ZodString;
|
|
1052
|
+
firstName: z.ZodString;
|
|
1053
|
+
lastName: z.ZodString;
|
|
1054
|
+
email: z.ZodEmail;
|
|
1055
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1056
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1057
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1058
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1059
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1060
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1061
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1062
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1063
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1064
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1065
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1066
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1067
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1068
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1069
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1070
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1071
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1072
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1073
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1074
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1075
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1076
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1077
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1078
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1079
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1080
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1081
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1082
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1083
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1084
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1085
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1086
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1087
|
+
ROLE_USER: "ROLE_USER";
|
|
1088
|
+
}>>;
|
|
1089
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1090
|
+
registration: "registration";
|
|
1091
|
+
verify_email: "verify_email";
|
|
1092
|
+
create_company: "create_company";
|
|
1093
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1094
|
+
}>>;
|
|
1095
|
+
emailVerified: z.ZodBoolean;
|
|
1096
|
+
suspended: z.ZodBoolean;
|
|
1097
|
+
createdAt: z.ZodString;
|
|
1098
|
+
updatedAt: z.ZodString;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1100
|
+
}, z.core.$strip>>;
|
|
1101
|
+
readonly querySchema: z.ZodObject<{
|
|
1102
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
1103
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1104
|
+
asc: "asc";
|
|
1105
|
+
desc: "desc";
|
|
1106
|
+
}>>;
|
|
1107
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1108
|
+
asc: "asc";
|
|
1109
|
+
desc: "desc";
|
|
1110
|
+
}>>;
|
|
1111
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1112
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1113
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1114
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1115
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1116
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1117
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1118
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1119
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strip>;
|
|
1121
|
+
readonly headersSchema: undefined;
|
|
1122
|
+
private readonly pointOfSaleId;
|
|
1123
|
+
constructor(pointOfSaleId: string, options?: {
|
|
1124
|
+
query?: GetPointOfSaleUsersFromPointOfSaleQueryParams;
|
|
1125
|
+
});
|
|
1126
|
+
getPath(): string;
|
|
1127
|
+
parseResponse(data: unknown): Array<Omit<PointOfSaleUser, 'pointOfSale'>>;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
declare const getPointOfSaleUsersFromUserQuerySchema: z.ZodObject<{
|
|
1131
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
1132
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1133
|
+
asc: "asc";
|
|
1134
|
+
desc: "desc";
|
|
1135
|
+
}>>;
|
|
1136
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1137
|
+
asc: "asc";
|
|
1138
|
+
desc: "desc";
|
|
1139
|
+
}>>;
|
|
1140
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1141
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1142
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1143
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1144
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1145
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1146
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1147
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1148
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1149
|
+
}, z.core.$strip>;
|
|
1150
|
+
type GetPointOfSaleUsersFromUserQueryParams = z.infer<typeof getPointOfSaleUsersFromUserQuerySchema>;
|
|
1151
|
+
declare const getPointOfSaleUsersFromUserInputSchema: z.ZodUndefined;
|
|
1152
|
+
type GetPointOfSaleUsersFromUserInput = z.input<typeof getPointOfSaleUsersFromUserInputSchema>;
|
|
1153
|
+
declare const getPointOfSaleUsersFromUserResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1154
|
+
createdAt: z.ZodString;
|
|
1155
|
+
updatedAt: z.ZodString;
|
|
1156
|
+
id: z.ZodString;
|
|
1157
|
+
pointOfSale: z.ZodObject<{
|
|
1158
|
+
id: z.ZodString;
|
|
1159
|
+
name: z.ZodString;
|
|
1160
|
+
address: z.ZodObject<{
|
|
1161
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1163
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1164
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1165
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1166
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1167
|
+
}, z.core.$strip>;
|
|
1168
|
+
timezone: z.ZodString;
|
|
1169
|
+
location: z.ZodObject<{
|
|
1170
|
+
latitude: z.ZodNumber;
|
|
1171
|
+
longitude: z.ZodNumber;
|
|
1172
|
+
}, z.core.$strip>;
|
|
1173
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1174
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1175
|
+
}>>;
|
|
1176
|
+
openingStatus: z.ZodEnum<{
|
|
1177
|
+
OPEN: "OPEN";
|
|
1178
|
+
CLOSED: "CLOSED";
|
|
1179
|
+
}>;
|
|
1180
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1181
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1182
|
+
createdAt: z.ZodString;
|
|
1183
|
+
updatedAt: z.ZodString;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1185
|
+
role: z.ZodEnum<{
|
|
1186
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1187
|
+
ROLE_READER: "ROLE_READER";
|
|
1188
|
+
}>;
|
|
1189
|
+
}, z.core.$strip>>;
|
|
1190
|
+
type GetPointOfSaleUsersFromUserResponse = z.infer<typeof getPointOfSaleUsersFromUserResponseSchema>;
|
|
1191
|
+
declare class GetPointOfSaleUsersFromUser extends AbstractApiRequest<typeof getPointOfSaleUsersFromUserInputSchema, typeof getPointOfSaleUsersFromUserResponseSchema, GetPointOfSaleUsersFromUserQueryParams> {
|
|
1192
|
+
readonly method = "GET";
|
|
1193
|
+
readonly contentType = "application/json";
|
|
1194
|
+
readonly accept = "application/json";
|
|
1195
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1196
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
1197
|
+
createdAt: z.ZodString;
|
|
1198
|
+
updatedAt: z.ZodString;
|
|
1199
|
+
id: z.ZodString;
|
|
1200
|
+
pointOfSale: z.ZodObject<{
|
|
1201
|
+
id: z.ZodString;
|
|
1202
|
+
name: z.ZodString;
|
|
1203
|
+
address: z.ZodObject<{
|
|
1204
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1205
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1206
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1209
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1210
|
+
}, z.core.$strip>;
|
|
1211
|
+
timezone: z.ZodString;
|
|
1212
|
+
location: z.ZodObject<{
|
|
1213
|
+
latitude: z.ZodNumber;
|
|
1214
|
+
longitude: z.ZodNumber;
|
|
1215
|
+
}, z.core.$strip>;
|
|
1216
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1217
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1218
|
+
}>>;
|
|
1219
|
+
openingStatus: z.ZodEnum<{
|
|
1220
|
+
OPEN: "OPEN";
|
|
1221
|
+
CLOSED: "CLOSED";
|
|
1222
|
+
}>;
|
|
1223
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1224
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1225
|
+
createdAt: z.ZodString;
|
|
1226
|
+
updatedAt: z.ZodString;
|
|
1227
|
+
}, z.core.$strip>;
|
|
1228
|
+
role: z.ZodEnum<{
|
|
1229
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1230
|
+
ROLE_READER: "ROLE_READER";
|
|
1231
|
+
}>;
|
|
1232
|
+
}, z.core.$strip>>;
|
|
1233
|
+
readonly querySchema: z.ZodObject<{
|
|
1234
|
+
availableForDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
1235
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1236
|
+
asc: "asc";
|
|
1237
|
+
desc: "desc";
|
|
1238
|
+
}>>;
|
|
1239
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1240
|
+
asc: "asc";
|
|
1241
|
+
desc: "desc";
|
|
1242
|
+
}>>;
|
|
1243
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1244
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1245
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1246
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1247
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1248
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1249
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1250
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1251
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1252
|
+
}, z.core.$strip>;
|
|
1253
|
+
readonly headersSchema: undefined;
|
|
1254
|
+
private readonly userId;
|
|
1255
|
+
constructor(userId: string, options?: {
|
|
1256
|
+
query?: GetPointOfSaleUsersFromUserQueryParams;
|
|
1257
|
+
});
|
|
1258
|
+
getPath(): string;
|
|
1259
|
+
parseResponse(data: unknown): Array<Omit<PointOfSaleUser, 'user'>>;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
declare const updatePointOfSaleUserInputSchema: z.ZodObject<{
|
|
1263
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
1264
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1265
|
+
ROLE_READER: "ROLE_READER";
|
|
1266
|
+
}>>;
|
|
1267
|
+
}, z.core.$strip>;
|
|
1268
|
+
type UpdatePointOfSaleUserInput = z.input<typeof updatePointOfSaleUserInputSchema>;
|
|
1269
|
+
declare const updatePointOfSaleUserResponseSchema: z.ZodObject<{
|
|
1270
|
+
id: z.ZodString;
|
|
1271
|
+
user: z.ZodObject<{
|
|
1272
|
+
id: z.ZodString;
|
|
1273
|
+
firstName: z.ZodString;
|
|
1274
|
+
lastName: z.ZodString;
|
|
1275
|
+
email: z.ZodEmail;
|
|
1276
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1277
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1278
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1279
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1280
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1281
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1282
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1283
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1284
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1285
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1286
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1287
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1288
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1289
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1290
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1291
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1292
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1293
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1294
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1295
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1296
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1297
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1298
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1299
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1300
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1301
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1302
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1303
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1304
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1305
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1306
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1307
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1308
|
+
ROLE_USER: "ROLE_USER";
|
|
1309
|
+
}>>;
|
|
1310
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1311
|
+
registration: "registration";
|
|
1312
|
+
verify_email: "verify_email";
|
|
1313
|
+
create_company: "create_company";
|
|
1314
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1315
|
+
}>>;
|
|
1316
|
+
emailVerified: z.ZodBoolean;
|
|
1317
|
+
suspended: z.ZodBoolean;
|
|
1318
|
+
createdAt: z.ZodString;
|
|
1319
|
+
updatedAt: z.ZodString;
|
|
1320
|
+
}, z.core.$strip>;
|
|
1321
|
+
pointOfSale: z.ZodObject<{
|
|
1322
|
+
id: z.ZodString;
|
|
1323
|
+
name: z.ZodString;
|
|
1324
|
+
address: z.ZodObject<{
|
|
1325
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1326
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1327
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1328
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1329
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1330
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1331
|
+
}, z.core.$strip>;
|
|
1332
|
+
timezone: z.ZodString;
|
|
1333
|
+
location: z.ZodObject<{
|
|
1334
|
+
latitude: z.ZodNumber;
|
|
1335
|
+
longitude: z.ZodNumber;
|
|
1336
|
+
}, z.core.$strip>;
|
|
1337
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1338
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1339
|
+
}>>;
|
|
1340
|
+
openingStatus: z.ZodEnum<{
|
|
1341
|
+
OPEN: "OPEN";
|
|
1342
|
+
CLOSED: "CLOSED";
|
|
1343
|
+
}>;
|
|
1344
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1345
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1346
|
+
createdAt: z.ZodString;
|
|
1347
|
+
updatedAt: z.ZodString;
|
|
1348
|
+
}, z.core.$strip>;
|
|
1349
|
+
role: z.ZodEnum<{
|
|
1350
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1351
|
+
ROLE_READER: "ROLE_READER";
|
|
1352
|
+
}>;
|
|
1353
|
+
createdAt: z.ZodString;
|
|
1354
|
+
updatedAt: z.ZodString;
|
|
1355
|
+
}, z.core.$strip>;
|
|
1356
|
+
type UpdatePointOfSaleUserResponse = z.infer<typeof updatePointOfSaleUserResponseSchema>;
|
|
1357
|
+
declare class UpdatePointOfSaleUser extends AbstractApiRequest<typeof updatePointOfSaleUserInputSchema, typeof updatePointOfSaleUserResponseSchema> {
|
|
1358
|
+
readonly method = "PATCH";
|
|
1359
|
+
readonly contentType = "application/merge-patch+json";
|
|
1360
|
+
readonly accept = "application/json";
|
|
1361
|
+
readonly inputSchema: z.ZodObject<{
|
|
1362
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
1363
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1364
|
+
ROLE_READER: "ROLE_READER";
|
|
1365
|
+
}>>;
|
|
1366
|
+
}, z.core.$strip>;
|
|
1367
|
+
readonly outputSchema: z.ZodObject<{
|
|
1368
|
+
id: z.ZodString;
|
|
1369
|
+
user: z.ZodObject<{
|
|
1370
|
+
id: z.ZodString;
|
|
1371
|
+
firstName: z.ZodString;
|
|
1372
|
+
lastName: z.ZodString;
|
|
1373
|
+
email: z.ZodEmail;
|
|
1374
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1375
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1376
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1377
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1378
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1379
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1380
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1381
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1382
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1383
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1384
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1385
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1386
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1387
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1388
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1389
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1390
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1391
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1392
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1393
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1394
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1395
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1396
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1397
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1398
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1399
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1400
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1401
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1402
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1403
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1404
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1405
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1406
|
+
ROLE_USER: "ROLE_USER";
|
|
1407
|
+
}>>;
|
|
1408
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1409
|
+
registration: "registration";
|
|
1410
|
+
verify_email: "verify_email";
|
|
1411
|
+
create_company: "create_company";
|
|
1412
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1413
|
+
}>>;
|
|
1414
|
+
emailVerified: z.ZodBoolean;
|
|
1415
|
+
suspended: z.ZodBoolean;
|
|
1416
|
+
createdAt: z.ZodString;
|
|
1417
|
+
updatedAt: z.ZodString;
|
|
1418
|
+
}, z.core.$strip>;
|
|
1419
|
+
pointOfSale: z.ZodObject<{
|
|
1420
|
+
id: z.ZodString;
|
|
1421
|
+
name: z.ZodString;
|
|
1422
|
+
address: z.ZodObject<{
|
|
1423
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1424
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1425
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1426
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1427
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1428
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1429
|
+
}, z.core.$strip>;
|
|
1430
|
+
timezone: z.ZodString;
|
|
1431
|
+
location: z.ZodObject<{
|
|
1432
|
+
latitude: z.ZodNumber;
|
|
1433
|
+
longitude: z.ZodNumber;
|
|
1434
|
+
}, z.core.$strip>;
|
|
1435
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1436
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1437
|
+
}>>;
|
|
1438
|
+
openingStatus: z.ZodEnum<{
|
|
1439
|
+
OPEN: "OPEN";
|
|
1440
|
+
CLOSED: "CLOSED";
|
|
1441
|
+
}>;
|
|
1442
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1444
|
+
createdAt: z.ZodString;
|
|
1445
|
+
updatedAt: z.ZodString;
|
|
1446
|
+
}, z.core.$strip>;
|
|
1447
|
+
role: z.ZodEnum<{
|
|
1448
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1449
|
+
ROLE_READER: "ROLE_READER";
|
|
1450
|
+
}>;
|
|
1451
|
+
createdAt: z.ZodString;
|
|
1452
|
+
updatedAt: z.ZodString;
|
|
1453
|
+
}, z.core.$strip>;
|
|
1454
|
+
readonly querySchema: undefined;
|
|
1455
|
+
readonly headersSchema: undefined;
|
|
1456
|
+
private readonly pointOfSaleUserId;
|
|
1457
|
+
constructor(pointOfSaleUserId: string, input: UpdatePointOfSaleUserInput);
|
|
1458
|
+
getPath(): string;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
498
1461
|
declare const createPointOfSaleInputSchema: z.ZodObject<{
|
|
499
1462
|
company: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/companies/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/companies/:id">, unknown>>>;
|
|
500
1463
|
address: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -1663,4 +2626,4 @@ type PointOfSaleMenuVersionIri = z.infer<typeof pointOfSaleMenuVersionIriSchema>
|
|
|
1663
2626
|
declare const pointOfSaleMenuVersionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1664
2627
|
type PointOfSaleMenuVersionNullableIri = z.infer<typeof pointOfSaleMenuVersionNullableIriSchema>;
|
|
1665
2628
|
|
|
1666
|
-
export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetCompanyPointOfSales, type GetCompanyPointOfSalesInput, type GetCompanyPointOfSalesQueryParams, type GetCompanyPointOfSalesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsInput, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesInput, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type MenuVersion, type MenuVersionDetails, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleIri, type PointOfSaleMenuVersionIri, type PointOfSaleMenuVersionNullableIri, type PointOfSaleNullableIri, type PointOfSaleOpeningStatus, type PointOfSaleUser, type PointOfSaleUserRole, type PointOfSaleUsersQueryParams, type PointOfSalesQueryParams, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompanyPointOfSalesInputSchema, getCompanyPointOfSalesQuerySchema, getCompanyPointOfSalesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, menuVersionDetailsSchema, menuVersionSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleIriSchema, pointOfSaleMenuVersionIriSchema, pointOfSaleMenuVersionNullableIriSchema, pointOfSaleNullableIriSchema, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, pointOfSaleUserSchema, pointOfSaleUsersQuerySchema, pointOfSalesQuerySchema, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
|
|
2629
|
+
export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, DeletePointOfSaleUser, type DeliveryTimeSetting, GetCompanyPointOfSales, type GetCompanyPointOfSalesInput, type GetCompanyPointOfSalesQueryParams, type GetCompanyPointOfSalesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsInput, type GetPointOfSaleDetailsResponse, GetPointOfSaleUserDetails, type GetPointOfSaleUserDetailsInput, type GetPointOfSaleUserDetailsResponse, GetPointOfSaleUsers, GetPointOfSaleUsersFromPointOfSale, type GetPointOfSaleUsersFromPointOfSaleInput, type GetPointOfSaleUsersFromPointOfSaleQueryParams, type GetPointOfSaleUsersFromPointOfSaleResponse, GetPointOfSaleUsersFromUser, type GetPointOfSaleUsersFromUserInput, type GetPointOfSaleUsersFromUserQueryParams, type GetPointOfSaleUsersFromUserResponse, type GetPointOfSaleUsersInput, type GetPointOfSaleUsersQueryParams, type GetPointOfSaleUsersResponse, GetPointOfSales, type GetPointOfSalesInput, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type MenuVersion, type MenuVersionDetails, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleIri, type PointOfSaleMenuVersionIri, type PointOfSaleMenuVersionNullableIri, type PointOfSaleNullableIri, type PointOfSaleOpeningStatus, type PointOfSaleUser, type PointOfSaleUserRole, type PointOfSaleUsersQueryParams, type PointOfSalesQueryParams, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, UpdatePointOfSaleUser, type UpdatePointOfSaleUserInput, type UpdatePointOfSaleUserResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deletePointOfSaleUserInputSchema, deletePointOfSaleUserResponseSchema, deliveryTimeSettingSchema, getCompanyPointOfSalesInputSchema, getCompanyPointOfSalesQuerySchema, getCompanyPointOfSalesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSaleUserDetailsInputSchema, getPointOfSaleUserDetailsResponseSchema, getPointOfSaleUsersFromPointOfSaleInputSchema, getPointOfSaleUsersFromPointOfSaleQuerySchema, getPointOfSaleUsersFromPointOfSaleResponseSchema, getPointOfSaleUsersFromUserInputSchema, getPointOfSaleUsersFromUserQuerySchema, getPointOfSaleUsersFromUserResponseSchema, getPointOfSaleUsersInputSchema, getPointOfSaleUsersQuerySchema, getPointOfSaleUsersResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, menuVersionDetailsSchema, menuVersionSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleIriSchema, pointOfSaleMenuVersionIriSchema, pointOfSaleMenuVersionNullableIriSchema, pointOfSaleNullableIriSchema, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, pointOfSaleUserSchema, pointOfSaleUsersQuerySchema, pointOfSalesQuerySchema, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, updatePointOfSaleUserInputSchema, updatePointOfSaleUserResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
|