repzo 1.0.120 → 1.0.121

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.
@@ -5494,6 +5494,7 @@ export namespace Service {
5494
5494
  qr_code_tlv?: string;
5495
5495
  processable?: boolean;
5496
5496
  client_id: string;
5497
+ client_balance?: number;
5497
5498
  client_name: string;
5498
5499
  comment?: string;
5499
5500
  return_comment?: string;
@@ -6033,6 +6034,7 @@ export namespace Service {
6033
6034
  qr_code_tlv?: string;
6034
6035
  processable?: boolean;
6035
6036
  client_name: string;
6037
+ client_balance?: number;
6036
6038
  comment?: string;
6037
6039
  return_comment?: string;
6038
6040
  creator: AdminCreator | RepCreator | ClientCreator;
@@ -12471,6 +12473,486 @@ export namespace Service {
12471
12473
  export type Result = Settings.Data;
12472
12474
  }
12473
12475
  }
12476
+
12477
+ export namespace ClientLocation {
12478
+ export interface Data {
12479
+ _id: StringId;
12480
+ creator: AdminOrRep;
12481
+ editor?: AdminOrRep;
12482
+ name: string;
12483
+ local_name?: string;
12484
+ client: StringId;
12485
+ description?: string;
12486
+ address?: string;
12487
+ contacts?: StringId[];
12488
+ disabled: boolean;
12489
+ customFields?: {};
12490
+ media?: StringId[];
12491
+ cover_photo?: StringId;
12492
+ integration_meta?: { [key: string]: any };
12493
+ company_namespace: string[];
12494
+ geoPoint?: GeoPoint;
12495
+ createdAt: string;
12496
+ updatedAt: string;
12497
+ }
12498
+
12499
+ export interface CreateBody {
12500
+ creator?: AdminOrRep;
12501
+ name: string;
12502
+ local_name?: string;
12503
+ client: StringId;
12504
+ description?: string;
12505
+ address?: string;
12506
+ contacts?: StringId[];
12507
+ disabled: boolean;
12508
+ customFields?: {};
12509
+ media?: StringId[];
12510
+ cover_photo?: StringId;
12511
+ integration_meta?: { [key: string]: any };
12512
+ geoPoint?: GeoPoint;
12513
+ }
12514
+ export interface UpdateBody {
12515
+ editor?: AdminOrRep;
12516
+ name?: string;
12517
+ local_name?: string;
12518
+ client?: StringId;
12519
+ description?: string;
12520
+ address?: string;
12521
+ contacts?: StringId[];
12522
+ customFields?: {};
12523
+ media?: StringId[];
12524
+ cover_photo?: StringId;
12525
+ integration_meta?: { [key: string]: any };
12526
+ geoPoint?: GeoPoint;
12527
+ }
12528
+
12529
+ export interface PopulatedDoc {
12530
+ _id: StringId;
12531
+ creator: AdminOrRep;
12532
+ editor?: AdminOrRep;
12533
+ local_name?: string;
12534
+ name: string;
12535
+ client:
12536
+ | StringId
12537
+ | (Pick<Client.ClientSchema, "name" | "client_code" | "contacts"> & {
12538
+ contacts:
12539
+ | StringId[]
12540
+ | Pick<ClientContact.ClientContactSchema, "name">[];
12541
+ });
12542
+ description?: string;
12543
+ address?: string;
12544
+ contacts?: StringId[] | ClientContact.ClientContactSchema[];
12545
+ disabled: boolean;
12546
+ customFields?: {};
12547
+ media?: StringId[] | PopulatedMediaStorage[];
12548
+ cover_photo?: StringId | PopulatedMediaStorage;
12549
+ integration_meta?: { [key: string]: any };
12550
+ company_namespace: string[];
12551
+ geoPoint?: GeoPoint;
12552
+ createdAt: string;
12553
+ updatedAt: string;
12554
+ }
12555
+
12556
+ type PopulatedKeys =
12557
+ | "client"
12558
+ | "contacts"
12559
+ | "media"
12560
+ | "cover_photo"
12561
+ | "customFields";
12562
+
12563
+ export namespace Find {
12564
+ export type Params = DefaultPaginationQueryParams & {
12565
+ name?: string | string[];
12566
+ client?: StringId | StringId[];
12567
+ _id?: StringId | StringId[];
12568
+ from_updatedAt?: number;
12569
+ to_updatedAt?: number;
12570
+ from_createdAt?: number;
12571
+ to_createdAt?: number;
12572
+ search?: string;
12573
+ sortBy?: {
12574
+ field: "name" | "client";
12575
+ type: "asc" | "desc";
12576
+ }[];
12577
+ populatedKeys?: PopulatedKeys[];
12578
+ };
12579
+ export interface Result extends DefaultPaginationResult {
12580
+ data: Data[] & PopulatedDoc[];
12581
+ }
12582
+ }
12583
+ export namespace Get {
12584
+ export type ID = string;
12585
+ export type Params = {
12586
+ populatedKeys?: PopulatedKeys[];
12587
+ };
12588
+ export type Result = Data & PopulatedDoc;
12589
+ }
12590
+ export namespace Update {
12591
+ export type ID = StringId;
12592
+ export type Body = UpdateBody;
12593
+ export type Result = Data;
12594
+ }
12595
+ export namespace Create {
12596
+ export type Body = CreateBody;
12597
+ export type Result = Data;
12598
+ }
12599
+ export namespace Remove {
12600
+ export type ID = string;
12601
+ export type Params = {};
12602
+ export type Result = Data;
12603
+ }
12604
+ }
12605
+
12606
+ export namespace AssetType {
12607
+ export interface Data {
12608
+ _id: StringId;
12609
+ creator: AdminOrRep;
12610
+ editor?: AdminOrRep;
12611
+ name: string;
12612
+ color: string;
12613
+ local_name?: string;
12614
+ disabled: boolean;
12615
+ integration_meta?: { [key: string]: any };
12616
+ company_namespace: string[];
12617
+ createdAt: string;
12618
+ updatedAt: string;
12619
+ }
12620
+
12621
+ export interface CreateBody {
12622
+ creator?: AdminOrRep;
12623
+ name: string;
12624
+ local_name?: string;
12625
+ color: string;
12626
+ disabled?: boolean;
12627
+ integration_meta?: { [key: string]: any };
12628
+ }
12629
+ export interface UpdateBody {
12630
+ editor?: AdminOrRep;
12631
+ name?: string;
12632
+ local_name?: string;
12633
+ color?: string;
12634
+ disabled?: boolean;
12635
+ integration_meta?: { [key: string]: any };
12636
+ }
12637
+
12638
+ export namespace Find {
12639
+ export type Params = DefaultPaginationQueryParams & {
12640
+ _id?: StringId | StringId[];
12641
+ search?: string;
12642
+ name?: string | string[];
12643
+ from_updatedAt?: number;
12644
+ to_updatedAt?: number;
12645
+ sortBy?: { field: "color" | "name"; type: "asc" | "desc" }[];
12646
+ };
12647
+ export interface Result extends DefaultPaginationResult {
12648
+ data: Data[];
12649
+ }
12650
+ }
12651
+ export namespace Get {
12652
+ export type ID = string;
12653
+ export type Result = Data;
12654
+ }
12655
+ export namespace Update {
12656
+ export type ID = StringId;
12657
+ export type Body = UpdateBody;
12658
+ export type Result = Data;
12659
+ }
12660
+ export namespace Create {
12661
+ export type Body = CreateBody;
12662
+ export type Result = Data;
12663
+ }
12664
+ export namespace Remove {
12665
+ export type ID = string;
12666
+ export type Params = {};
12667
+ export type Result = Data;
12668
+ }
12669
+ }
12670
+
12671
+ export namespace Asset {
12672
+ export interface Data {
12673
+ _id: StringId;
12674
+ creator: AdminCreator;
12675
+ editor?: AdminCreator;
12676
+ name: string;
12677
+ local_name?: string;
12678
+ description?: string;
12679
+ barcode?: string;
12680
+ model?: string;
12681
+ manufacturer?: string;
12682
+ year?: string;
12683
+ asset_types: StringId[];
12684
+ location: StringId;
12685
+ customFields?: { [key: string]: string | number | boolean };
12686
+ disabled: boolean;
12687
+ integration_meta?: { [key: string]: any };
12688
+ media?: StringId[];
12689
+ cover_photo?: StringId;
12690
+ company_namespace: string[];
12691
+ createdAt: string;
12692
+ updatedAt: string;
12693
+ }
12694
+
12695
+ export interface CreateBody {
12696
+ creator?: AdminCreator;
12697
+ name: string;
12698
+ local_name?: string;
12699
+ description?: string;
12700
+ barcode?: string;
12701
+ model?: string;
12702
+ manufacturer?: string;
12703
+ year?: string;
12704
+ asset_types: StringId[];
12705
+ location: StringId;
12706
+ customFields?: {};
12707
+ disabled?: boolean;
12708
+ media?: StringId[];
12709
+ cover_photo?: StringId;
12710
+ integration_meta?: { [key: string]: any };
12711
+ }
12712
+ export interface UpdateBody {
12713
+ editor?: AdminCreator;
12714
+ name?: string;
12715
+ local_name?: string;
12716
+ description?: string;
12717
+ barcode?: string;
12718
+ model?: string;
12719
+ manufacturer?: string;
12720
+ year?: string;
12721
+ asset_types?: StringId[];
12722
+ location?: StringId;
12723
+ customFields?: {};
12724
+ disabled?: boolean;
12725
+ media?: StringId[];
12726
+ cover_photo?: StringId;
12727
+ integration_meta?: { [key: string]: any };
12728
+ }
12729
+
12730
+ export interface PopulatedDoc {
12731
+ _id: StringId;
12732
+ creator: AdminCreator;
12733
+ editor?: AdminCreator;
12734
+ name: string;
12735
+ local_name?: string;
12736
+ description?: string;
12737
+ barcode?: string;
12738
+ model?: string;
12739
+ manufacturer?: string;
12740
+ year?: string;
12741
+ asset_types: StringId[] | AssetType.Data[];
12742
+ location:
12743
+ | StringId
12744
+ | ClientLocation.Data
12745
+ | (ClientLocation.Data & {
12746
+ client?: Pick<
12747
+ Client.ClientSchema,
12748
+ "name" | "_id" | "client_code" | "local_name"
12749
+ >;
12750
+ });
12751
+ media?: StringId[] | PopulatedMediaStorage[];
12752
+ cover_photo?: StringId | PopulatedMediaStorage;
12753
+ customFields?: { [key: string]: string | number | boolean };
12754
+ disabled: boolean;
12755
+ integration_meta?: { [key: string]: any };
12756
+ company_namespace: string[];
12757
+ createdAt: string;
12758
+ updatedAt: string;
12759
+ }
12760
+
12761
+ type PopulatedKeys =
12762
+ | "asset_types"
12763
+ | "location"
12764
+ | "media"
12765
+ | "cover_photo"
12766
+ | "locationClient"
12767
+ | "customFields";
12768
+
12769
+ export namespace Find {
12770
+ export type Params = DefaultPaginationQueryParams & {
12771
+ name?: string | string[];
12772
+ _id?: StringId | StringId[];
12773
+ from_updatedAt?: number;
12774
+ to_updatedAt?: number;
12775
+ asset_types?: StringId | StringId[];
12776
+ location?: StringId | StringId[];
12777
+ from_createdAt?: number;
12778
+ to_createdAt?: number;
12779
+ search?: string;
12780
+ sortBy?: {
12781
+ field: "barcode" | "name" | "model";
12782
+ type: "asc" | "desc";
12783
+ }[];
12784
+ populatedKeys?: PopulatedKeys[];
12785
+ };
12786
+ export interface Result extends DefaultPaginationResult {
12787
+ data: Data[] & PopulatedDoc[];
12788
+ }
12789
+ }
12790
+ export namespace Get {
12791
+ export type ID = string;
12792
+ export type Params = {
12793
+ populatedKeys?: PopulatedKeys[];
12794
+ };
12795
+ export type Result = Data & PopulatedDoc;
12796
+ }
12797
+ export namespace Update {
12798
+ export type ID = StringId;
12799
+ export type Body = UpdateBody;
12800
+ export type Result = Data;
12801
+ }
12802
+ export namespace Create {
12803
+ export type Body = CreateBody;
12804
+ export type Result = Data;
12805
+ }
12806
+ export namespace Remove {
12807
+ export type ID = string;
12808
+ export type Params = {};
12809
+ export type Result = Data;
12810
+ }
12811
+ }
12812
+
12813
+ export namespace AssetUnit {
12814
+ export interface Data {
12815
+ _id: StringId;
12816
+ creator: AdminOrRep;
12817
+ editor?: AdminOrRep;
12818
+ name: string;
12819
+ asset: StringId;
12820
+ location?: StringId;
12821
+ local_name?: string;
12822
+ description?: string;
12823
+ serial_nu?: string;
12824
+ customFields?: {};
12825
+ disabled: boolean;
12826
+ integration_meta?: { [key: string]: any };
12827
+ media?: StringId[];
12828
+ cover_photo?: StringId;
12829
+ comany_namespace: string[];
12830
+ createdAt: string;
12831
+ updatedAt: string;
12832
+ }
12833
+
12834
+ export interface CreateBody {
12835
+ creator?: AdminOrRep;
12836
+ name: string;
12837
+ asset: StringId;
12838
+ location?: StringId;
12839
+ local_name?: string;
12840
+ description?: string;
12841
+ serial_nu?: string;
12842
+ customFields?: {};
12843
+ integration_meta?: { [key: string]: any };
12844
+ media?: StringId[];
12845
+ cover_photo?: StringId;
12846
+ }
12847
+ export interface UpdateBody {
12848
+ editor?: AdminOrRep;
12849
+ name?: string;
12850
+ asset?: StringId;
12851
+ location?: StringId;
12852
+ local_name?: string;
12853
+ description?: string;
12854
+ serial_nu?: string;
12855
+ customFields?: {};
12856
+ integration_meta?: { [key: string]: any };
12857
+ media?: StringId[] | string[];
12858
+ cover_photo?: StringId;
12859
+ }
12860
+
12861
+ type assetPopulated =
12862
+ | StringId
12863
+ | Asset.Data
12864
+ | (Asset.Data & { location?: ClientLocation.Data })
12865
+ | (Asset.Data & {
12866
+ location?:
12867
+ | ClientLocation.Data
12868
+ | (ClientLocation.Data & {
12869
+ client: Pick<
12870
+ Client.ClientSchema,
12871
+ "name" | "client_code" | "_id"
12872
+ >;
12873
+ });
12874
+ });
12875
+
12876
+ type locationPopulated =
12877
+ | StringId
12878
+ | ClientLocation.Data
12879
+ | (ClientLocation.Data & {
12880
+ client: Pick<Client.ClientSchema, "name" | "_id" | "client_code">;
12881
+ });
12882
+
12883
+ export interface PopulatedDoc {
12884
+ _id: StringId;
12885
+ creator: AdminOrRep;
12886
+ editor?: AdminOrRep;
12887
+ name: string;
12888
+ asset: assetPopulated;
12889
+ location?: locationPopulated;
12890
+ local_name?: string;
12891
+ description?: string;
12892
+ serial_nu?: string;
12893
+ customFields?: {};
12894
+ disabled: boolean;
12895
+ integration_meta?: { [key: string]: any };
12896
+ media?: StringId[] | PopulatedMediaStorage[];
12897
+ cover_photo?: StringId | PopulatedMediaStorage;
12898
+ comany_namespace: string[];
12899
+ createdAt: string;
12900
+ updatedAt: string;
12901
+ }
12902
+
12903
+ type PopulatedKeys =
12904
+ | "asset"
12905
+ | "location"
12906
+ | "locationClient"
12907
+ | "assetLocation"
12908
+ | "assetLocationClient"
12909
+ | "media"
12910
+ | "cover_photo"
12911
+ | "customFields";
12912
+
12913
+ export namespace Find {
12914
+ export type Params = DefaultPaginationQueryParams & {
12915
+ name?: string | string[];
12916
+ _id?: StringId | StringId[];
12917
+ from_updatedAt?: number;
12918
+ to_updatedAt?: number;
12919
+ asset?: StringId | StringId[];
12920
+ location?: StringId | StringId[];
12921
+ from_createdAt?: number;
12922
+ to_createdAt?: number;
12923
+ search?: string;
12924
+ sortBy?: {
12925
+ field: "asset" | "name";
12926
+ type: "asc" | "desc";
12927
+ }[];
12928
+ populatedKeys?: PopulatedKeys[];
12929
+ };
12930
+ export interface Result extends DefaultPaginationResult {
12931
+ data: Data[] & PopulatedDoc[];
12932
+ }
12933
+ }
12934
+ export namespace Get {
12935
+ export type ID = string;
12936
+ export type Params = {
12937
+ populatedKeys?: PopulatedKeys[];
12938
+ };
12939
+ export type Result = Data & PopulatedDoc;
12940
+ }
12941
+ export namespace Update {
12942
+ export type ID = StringId;
12943
+ export type Body = UpdateBody;
12944
+ export type Result = Data;
12945
+ }
12946
+ export namespace Create {
12947
+ export type Body = CreateBody;
12948
+ export type Result = Data;
12949
+ }
12950
+ export namespace Remove {
12951
+ export type ID = string;
12952
+ export type Params = {};
12953
+ export type Result = Data;
12954
+ }
12955
+ }
12474
12956
  }
12475
12957
 
12476
12958
  export type StringId = string;