repzo 1.0.120 → 1.0.122

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.
@@ -115,6 +115,8 @@ interface ClientLocationPopulated {
115
115
  }
116
116
  interface FormPopulated {
117
117
  name: string;
118
+ _id: StringId;
119
+ local_name?: string;
118
120
  }
119
121
  interface VisitMeta {
120
122
  geo_fence_setting_visit_start: boolean;
@@ -5426,6 +5428,222 @@ export namespace Service {
5426
5428
  }
5427
5429
  }
5428
5430
 
5431
+ export namespace WorkorderPortal {
5432
+ interface Accepted_system_fields {
5433
+ field: "clients" | "clientLocation" | "asset" | "assetUnit";
5434
+ is_required: true;
5435
+ is_name_visible: Boolean;
5436
+ }
5437
+ type Default_Priority_human = "none" | "low" | "medium" | "high";
5438
+ type Default_Priority = 0 | 1 | 2 | 3;
5439
+ export interface Data {
5440
+ creator: AdminOrRep;
5441
+ name: string;
5442
+ description?: string;
5443
+ default_priority_human?: Default_Priority_human;
5444
+ default_priority?: Default_Priority;
5445
+ default_workorder_categories?: StringId[];
5446
+ teams?: string[];
5447
+ company_namespace: string[];
5448
+ allow_media_upload: "optional" | "required" | "hidden";
5449
+ allow_signature: "optional" | "required" | "hidden";
5450
+ header?: string;
5451
+ footer?: string;
5452
+ accepted_custom_fields?: string[];
5453
+ accepted_system_fields: Accepted_system_fields[];
5454
+ header_logo?: string;
5455
+ footer_logo?: string;
5456
+ createdAt?: Date;
5457
+ updatedAt?: Date;
5458
+ editor?: AdminOrRep;
5459
+ _id: StringId;
5460
+ disabled: boolean;
5461
+ website?: string;
5462
+ cover_photo?: StringId;
5463
+ activate_formV2_portal: boolean;
5464
+ activate_sales_order_portal: boolean;
5465
+ activate_workorder_request_portal: boolean;
5466
+ formV2?: StringId[];
5467
+ product_groups?: StringId[];
5468
+ geoPoint?: GeoPoint;
5469
+ location_name?: string;
5470
+ social_media_platforms?: {
5471
+ platform: StringId;
5472
+ handle?: string;
5473
+ url?: string;
5474
+ account_type: string;
5475
+ }[];
5476
+ }
5477
+ export interface CreateBody {
5478
+ creator?: AdminOrRep;
5479
+ name: string;
5480
+ description?: string;
5481
+ default_priority_human?: Default_Priority_human;
5482
+ default_priority?: Default_Priority;
5483
+ default_workorder_categories?: StringId[];
5484
+ customFields?: { [key: string]: any };
5485
+ teams?: StringId[];
5486
+ allow_media_upload?: "optional" | "required" | "hidden";
5487
+ allow_signature?: "optional" | "required" | "hidden";
5488
+ header?: string;
5489
+ footer?: string;
5490
+ accepted_custom_fields?: StringId[];
5491
+ accepted_system_fields?: Accepted_system_fields[];
5492
+ header_logo?: string;
5493
+ footer_logo?: string;
5494
+ website?: string;
5495
+ cover_photo?: StringId;
5496
+ activate_formV2_portal: boolean;
5497
+ activate_sales_order_portal: boolean;
5498
+ activate_workorder_request_portal: boolean;
5499
+ formV2?: StringId[];
5500
+ product_groups?: StringId[];
5501
+ geoPoint?: GeoPoint;
5502
+ location_name?: string;
5503
+ social_media_platforms?: {
5504
+ platform: StringId;
5505
+ handle?: string;
5506
+ url?: string;
5507
+ account_type: string;
5508
+ }[];
5509
+ }
5510
+ export interface UpdateBody {
5511
+ name?: string;
5512
+ description?: string;
5513
+ default_priority_human?: Default_Priority_human;
5514
+ default_priority?: Default_Priority;
5515
+ default_workorder_categories?: StringId[];
5516
+ teams?: StringId[];
5517
+ allow_media_upload?: "optional" | "required" | "hidden";
5518
+ allow_signature?: "optional" | "required" | "hidden";
5519
+ header?: string;
5520
+ footer?: string;
5521
+ accepted_custom_fields?: StringId[];
5522
+ accepted_system_fields?: Accepted_system_fields[];
5523
+ header_logo?: string;
5524
+ footer_logo?: string;
5525
+ editor?: AdminOrRep;
5526
+ website?: string;
5527
+ cover_photo?: StringId;
5528
+ activate_formV2_portal?: boolean;
5529
+ activate_sales_order_portal?: boolean;
5530
+ activate_workorder_request_portal?: boolean;
5531
+ formV2?: StringId[];
5532
+ product_groups?: StringId[];
5533
+ geoPoint?: GeoPoint;
5534
+ location_name?: string;
5535
+ social_media_platforms?: {
5536
+ platform: StringId;
5537
+ handle: string;
5538
+ url: string;
5539
+ account_type: string;
5540
+ }[];
5541
+ }
5542
+ export interface PopulatedDoc {
5543
+ creator: AdminOrRep;
5544
+ name: string;
5545
+ description?: string;
5546
+ default_priority_human?: Default_Priority_human;
5547
+ default_priority?: Default_Priority;
5548
+ default_workorder_categories?: StringId[];
5549
+ default_workorder_categories_populated?: WorkorderCategoryPopulated[];
5550
+ teams?: string[];
5551
+ company_namespace: string[];
5552
+ allow_media_upload: "optional" | "required" | "hidden";
5553
+ allow_signature: "optional" | "required" | "hidden";
5554
+ header?: string;
5555
+ footer?: string;
5556
+ accepted_custom_fields?: string[];
5557
+ accepted_custom_fields_populated?: {
5558
+ [key: string]: string | number | boolean;
5559
+ }[];
5560
+ accepted_system_fields: Accepted_system_fields[];
5561
+ header_logo?: string;
5562
+ header_logo_populated?: PopulatedMediaStorage[];
5563
+ footer_logo?: string;
5564
+ footer_logo_populated?: PopulatedMediaStorage[];
5565
+ createdAt?: Date;
5566
+ updatedAt?: Date;
5567
+ editor?: AdminOrRep;
5568
+ _id: StringId;
5569
+ disabled: boolean;
5570
+ website?: string;
5571
+ cover_photo?: StringId;
5572
+ activate_formV2_portal: boolean;
5573
+ activate_sales_order_portal: boolean;
5574
+ activate_workorder_request_portal: boolean;
5575
+ formV2?: StringId[];
5576
+ formV2_populated?: FormPopulated[];
5577
+ product_groups?: Pick<
5578
+ ProductGroup.ProductGroupSchema,
5579
+ "_id" | "name" | "local_name"
5580
+ >[];
5581
+ geoPoint?: GeoPoint;
5582
+ location_name?: string;
5583
+ social_media_platforms?: {
5584
+ platform: StringId;
5585
+ handle?: string;
5586
+ url?: string;
5587
+ account_type: string;
5588
+ }[];
5589
+ }
5590
+
5591
+ type SortingKeys = "default_priority" | "updatedAt" | "createdAt";
5592
+ type PopulatedKeys =
5593
+ | "default_workorder_categories"
5594
+ | "header_logo"
5595
+ | "footer_logo"
5596
+ | "accepted_custom_fields"
5597
+ | "formV2"
5598
+ | "product_groups";
5599
+
5600
+ export namespace Find {
5601
+ export type Params = DefaultPaginationQueryParams & {
5602
+ _id?: StringId | StringId[];
5603
+ name?: string | string[];
5604
+ default_priority?: Default_Priority | Default_Priority[];
5605
+ default_priority_human?:
5606
+ | Default_Priority_human
5607
+ | Default_Priority_human[];
5608
+ default_workorder_categories?: StringId | StringId[];
5609
+ formV2?: StringId | StringId[];
5610
+ product_groups?: StringId | StringId[];
5611
+ activate_formV2_portal?: boolean;
5612
+ activate_sales_order_portal?: boolean;
5613
+ activate_workorder_request_portal?: boolean;
5614
+ from_updatedAt?: number;
5615
+ to_updatedAt?: number;
5616
+ disabled?: boolean;
5617
+ search?: string;
5618
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
5619
+ sortBy?: { field: SortingKeys; type: "asc" | "desc" }[];
5620
+ };
5621
+ export interface Result extends DefaultPaginationResult {
5622
+ data: Data[] | PopulatedDoc[];
5623
+ }
5624
+ }
5625
+ export namespace Get {
5626
+ export type ID = string;
5627
+ export interface Params {
5628
+ populatedKeys?: PopulatedKeys[];
5629
+ }
5630
+ export type Result = Data | PopulatedDoc;
5631
+ }
5632
+ export namespace Create {
5633
+ export type Body = CreateBody;
5634
+ export type Result = Data;
5635
+ }
5636
+ export namespace Update {
5637
+ export type ID = string;
5638
+ export type Body = UpdateBody;
5639
+ export type Result = Data;
5640
+ }
5641
+ export namespace Remove {
5642
+ export type ID = string;
5643
+ export type Result = Data;
5644
+ }
5645
+ }
5646
+
5429
5647
  export namespace QuickConvertToPdf {
5430
5648
  export interface QuickConvertToPdfSchema {
5431
5649
  _id?: string;
@@ -5494,6 +5712,7 @@ export namespace Service {
5494
5712
  qr_code_tlv?: string;
5495
5713
  processable?: boolean;
5496
5714
  client_id: string;
5715
+ client_balance?: number;
5497
5716
  client_name: string;
5498
5717
  comment?: string;
5499
5718
  return_comment?: string;
@@ -6033,6 +6252,7 @@ export namespace Service {
6033
6252
  qr_code_tlv?: string;
6034
6253
  processable?: boolean;
6035
6254
  client_name: string;
6255
+ client_balance?: number;
6036
6256
  comment?: string;
6037
6257
  return_comment?: string;
6038
6258
  creator: AdminCreator | RepCreator | ClientCreator;
@@ -12471,6 +12691,486 @@ export namespace Service {
12471
12691
  export type Result = Settings.Data;
12472
12692
  }
12473
12693
  }
12694
+
12695
+ export namespace ClientLocation {
12696
+ export interface Data {
12697
+ _id: StringId;
12698
+ creator: AdminOrRep;
12699
+ editor?: AdminOrRep;
12700
+ name: string;
12701
+ local_name?: string;
12702
+ client: StringId;
12703
+ description?: string;
12704
+ address?: string;
12705
+ contacts?: StringId[];
12706
+ disabled: boolean;
12707
+ customFields?: {};
12708
+ media?: StringId[];
12709
+ cover_photo?: StringId;
12710
+ integration_meta?: { [key: string]: any };
12711
+ company_namespace: string[];
12712
+ geoPoint?: GeoPoint;
12713
+ createdAt: string;
12714
+ updatedAt: string;
12715
+ }
12716
+
12717
+ export interface CreateBody {
12718
+ creator?: AdminOrRep;
12719
+ name: string;
12720
+ local_name?: string;
12721
+ client: StringId;
12722
+ description?: string;
12723
+ address?: string;
12724
+ contacts?: StringId[];
12725
+ disabled: boolean;
12726
+ customFields?: {};
12727
+ media?: StringId[];
12728
+ cover_photo?: StringId;
12729
+ integration_meta?: { [key: string]: any };
12730
+ geoPoint?: GeoPoint;
12731
+ }
12732
+ export interface UpdateBody {
12733
+ editor?: AdminOrRep;
12734
+ name?: string;
12735
+ local_name?: string;
12736
+ client?: StringId;
12737
+ description?: string;
12738
+ address?: string;
12739
+ contacts?: StringId[];
12740
+ customFields?: {};
12741
+ media?: StringId[];
12742
+ cover_photo?: StringId;
12743
+ integration_meta?: { [key: string]: any };
12744
+ geoPoint?: GeoPoint;
12745
+ }
12746
+
12747
+ export interface PopulatedDoc {
12748
+ _id: StringId;
12749
+ creator: AdminOrRep;
12750
+ editor?: AdminOrRep;
12751
+ local_name?: string;
12752
+ name: string;
12753
+ client:
12754
+ | StringId
12755
+ | (Pick<Client.ClientSchema, "name" | "client_code" | "contacts"> & {
12756
+ contacts:
12757
+ | StringId[]
12758
+ | Pick<ClientContact.ClientContactSchema, "name">[];
12759
+ });
12760
+ description?: string;
12761
+ address?: string;
12762
+ contacts?: StringId[] | ClientContact.ClientContactSchema[];
12763
+ disabled: boolean;
12764
+ customFields?: {};
12765
+ media?: StringId[] | PopulatedMediaStorage[];
12766
+ cover_photo?: StringId | PopulatedMediaStorage;
12767
+ integration_meta?: { [key: string]: any };
12768
+ company_namespace: string[];
12769
+ geoPoint?: GeoPoint;
12770
+ createdAt: string;
12771
+ updatedAt: string;
12772
+ }
12773
+
12774
+ type PopulatedKeys =
12775
+ | "client"
12776
+ | "contacts"
12777
+ | "media"
12778
+ | "cover_photo"
12779
+ | "customFields";
12780
+
12781
+ export namespace Find {
12782
+ export type Params = DefaultPaginationQueryParams & {
12783
+ name?: string | string[];
12784
+ client?: StringId | StringId[];
12785
+ _id?: StringId | StringId[];
12786
+ from_updatedAt?: number;
12787
+ to_updatedAt?: number;
12788
+ from_createdAt?: number;
12789
+ to_createdAt?: number;
12790
+ search?: string;
12791
+ sortBy?: {
12792
+ field: "name" | "client";
12793
+ type: "asc" | "desc";
12794
+ }[];
12795
+ populatedKeys?: PopulatedKeys[];
12796
+ };
12797
+ export interface Result extends DefaultPaginationResult {
12798
+ data: Data[] & PopulatedDoc[];
12799
+ }
12800
+ }
12801
+ export namespace Get {
12802
+ export type ID = string;
12803
+ export type Params = {
12804
+ populatedKeys?: PopulatedKeys[];
12805
+ };
12806
+ export type Result = Data & PopulatedDoc;
12807
+ }
12808
+ export namespace Update {
12809
+ export type ID = StringId;
12810
+ export type Body = UpdateBody;
12811
+ export type Result = Data;
12812
+ }
12813
+ export namespace Create {
12814
+ export type Body = CreateBody;
12815
+ export type Result = Data;
12816
+ }
12817
+ export namespace Remove {
12818
+ export type ID = string;
12819
+ export type Params = {};
12820
+ export type Result = Data;
12821
+ }
12822
+ }
12823
+
12824
+ export namespace AssetType {
12825
+ export interface Data {
12826
+ _id: StringId;
12827
+ creator: AdminOrRep;
12828
+ editor?: AdminOrRep;
12829
+ name: string;
12830
+ color: string;
12831
+ local_name?: string;
12832
+ disabled: boolean;
12833
+ integration_meta?: { [key: string]: any };
12834
+ company_namespace: string[];
12835
+ createdAt: string;
12836
+ updatedAt: string;
12837
+ }
12838
+
12839
+ export interface CreateBody {
12840
+ creator?: AdminOrRep;
12841
+ name: string;
12842
+ local_name?: string;
12843
+ color: string;
12844
+ disabled?: boolean;
12845
+ integration_meta?: { [key: string]: any };
12846
+ }
12847
+ export interface UpdateBody {
12848
+ editor?: AdminOrRep;
12849
+ name?: string;
12850
+ local_name?: string;
12851
+ color?: string;
12852
+ disabled?: boolean;
12853
+ integration_meta?: { [key: string]: any };
12854
+ }
12855
+
12856
+ export namespace Find {
12857
+ export type Params = DefaultPaginationQueryParams & {
12858
+ _id?: StringId | StringId[];
12859
+ search?: string;
12860
+ name?: string | string[];
12861
+ from_updatedAt?: number;
12862
+ to_updatedAt?: number;
12863
+ sortBy?: { field: "color" | "name"; type: "asc" | "desc" }[];
12864
+ };
12865
+ export interface Result extends DefaultPaginationResult {
12866
+ data: Data[];
12867
+ }
12868
+ }
12869
+ export namespace Get {
12870
+ export type ID = string;
12871
+ export type Result = Data;
12872
+ }
12873
+ export namespace Update {
12874
+ export type ID = StringId;
12875
+ export type Body = UpdateBody;
12876
+ export type Result = Data;
12877
+ }
12878
+ export namespace Create {
12879
+ export type Body = CreateBody;
12880
+ export type Result = Data;
12881
+ }
12882
+ export namespace Remove {
12883
+ export type ID = string;
12884
+ export type Params = {};
12885
+ export type Result = Data;
12886
+ }
12887
+ }
12888
+
12889
+ export namespace Asset {
12890
+ export interface Data {
12891
+ _id: StringId;
12892
+ creator: AdminCreator;
12893
+ editor?: AdminCreator;
12894
+ name: string;
12895
+ local_name?: string;
12896
+ description?: string;
12897
+ barcode?: string;
12898
+ model?: string;
12899
+ manufacturer?: string;
12900
+ year?: string;
12901
+ asset_types: StringId[];
12902
+ location: StringId;
12903
+ customFields?: { [key: string]: string | number | boolean };
12904
+ disabled: boolean;
12905
+ integration_meta?: { [key: string]: any };
12906
+ media?: StringId[];
12907
+ cover_photo?: StringId;
12908
+ company_namespace: string[];
12909
+ createdAt: string;
12910
+ updatedAt: string;
12911
+ }
12912
+
12913
+ export interface CreateBody {
12914
+ creator?: AdminCreator;
12915
+ name: string;
12916
+ local_name?: string;
12917
+ description?: string;
12918
+ barcode?: string;
12919
+ model?: string;
12920
+ manufacturer?: string;
12921
+ year?: string;
12922
+ asset_types: StringId[];
12923
+ location: StringId;
12924
+ customFields?: {};
12925
+ disabled?: boolean;
12926
+ media?: StringId[];
12927
+ cover_photo?: StringId;
12928
+ integration_meta?: { [key: string]: any };
12929
+ }
12930
+ export interface UpdateBody {
12931
+ editor?: AdminCreator;
12932
+ name?: string;
12933
+ local_name?: string;
12934
+ description?: string;
12935
+ barcode?: string;
12936
+ model?: string;
12937
+ manufacturer?: string;
12938
+ year?: string;
12939
+ asset_types?: StringId[];
12940
+ location?: StringId;
12941
+ customFields?: {};
12942
+ disabled?: boolean;
12943
+ media?: StringId[];
12944
+ cover_photo?: StringId;
12945
+ integration_meta?: { [key: string]: any };
12946
+ }
12947
+
12948
+ export interface PopulatedDoc {
12949
+ _id: StringId;
12950
+ creator: AdminCreator;
12951
+ editor?: AdminCreator;
12952
+ name: string;
12953
+ local_name?: string;
12954
+ description?: string;
12955
+ barcode?: string;
12956
+ model?: string;
12957
+ manufacturer?: string;
12958
+ year?: string;
12959
+ asset_types: StringId[] | AssetType.Data[];
12960
+ location:
12961
+ | StringId
12962
+ | ClientLocation.Data
12963
+ | (ClientLocation.Data & {
12964
+ client?: Pick<
12965
+ Client.ClientSchema,
12966
+ "name" | "_id" | "client_code" | "local_name"
12967
+ >;
12968
+ });
12969
+ media?: StringId[] | PopulatedMediaStorage[];
12970
+ cover_photo?: StringId | PopulatedMediaStorage;
12971
+ customFields?: { [key: string]: string | number | boolean };
12972
+ disabled: boolean;
12973
+ integration_meta?: { [key: string]: any };
12974
+ company_namespace: string[];
12975
+ createdAt: string;
12976
+ updatedAt: string;
12977
+ }
12978
+
12979
+ type PopulatedKeys =
12980
+ | "asset_types"
12981
+ | "location"
12982
+ | "media"
12983
+ | "cover_photo"
12984
+ | "locationClient"
12985
+ | "customFields";
12986
+
12987
+ export namespace Find {
12988
+ export type Params = DefaultPaginationQueryParams & {
12989
+ name?: string | string[];
12990
+ _id?: StringId | StringId[];
12991
+ from_updatedAt?: number;
12992
+ to_updatedAt?: number;
12993
+ asset_types?: StringId | StringId[];
12994
+ location?: StringId | StringId[];
12995
+ from_createdAt?: number;
12996
+ to_createdAt?: number;
12997
+ search?: string;
12998
+ sortBy?: {
12999
+ field: "barcode" | "name" | "model";
13000
+ type: "asc" | "desc";
13001
+ }[];
13002
+ populatedKeys?: PopulatedKeys[];
13003
+ };
13004
+ export interface Result extends DefaultPaginationResult {
13005
+ data: Data[] & PopulatedDoc[];
13006
+ }
13007
+ }
13008
+ export namespace Get {
13009
+ export type ID = string;
13010
+ export type Params = {
13011
+ populatedKeys?: PopulatedKeys[];
13012
+ };
13013
+ export type Result = Data & PopulatedDoc;
13014
+ }
13015
+ export namespace Update {
13016
+ export type ID = StringId;
13017
+ export type Body = UpdateBody;
13018
+ export type Result = Data;
13019
+ }
13020
+ export namespace Create {
13021
+ export type Body = CreateBody;
13022
+ export type Result = Data;
13023
+ }
13024
+ export namespace Remove {
13025
+ export type ID = string;
13026
+ export type Params = {};
13027
+ export type Result = Data;
13028
+ }
13029
+ }
13030
+
13031
+ export namespace AssetUnit {
13032
+ export interface Data {
13033
+ _id: StringId;
13034
+ creator: AdminOrRep;
13035
+ editor?: AdminOrRep;
13036
+ name: string;
13037
+ asset: StringId;
13038
+ location?: StringId;
13039
+ local_name?: string;
13040
+ description?: string;
13041
+ serial_nu?: string;
13042
+ customFields?: {};
13043
+ disabled: boolean;
13044
+ integration_meta?: { [key: string]: any };
13045
+ media?: StringId[];
13046
+ cover_photo?: StringId;
13047
+ comany_namespace: string[];
13048
+ createdAt: string;
13049
+ updatedAt: string;
13050
+ }
13051
+
13052
+ export interface CreateBody {
13053
+ creator?: AdminOrRep;
13054
+ name: string;
13055
+ asset: StringId;
13056
+ location?: StringId;
13057
+ local_name?: string;
13058
+ description?: string;
13059
+ serial_nu?: string;
13060
+ customFields?: {};
13061
+ integration_meta?: { [key: string]: any };
13062
+ media?: StringId[];
13063
+ cover_photo?: StringId;
13064
+ }
13065
+ export interface UpdateBody {
13066
+ editor?: AdminOrRep;
13067
+ name?: string;
13068
+ asset?: StringId;
13069
+ location?: StringId;
13070
+ local_name?: string;
13071
+ description?: string;
13072
+ serial_nu?: string;
13073
+ customFields?: {};
13074
+ integration_meta?: { [key: string]: any };
13075
+ media?: StringId[] | string[];
13076
+ cover_photo?: StringId;
13077
+ }
13078
+
13079
+ type assetPopulated =
13080
+ | StringId
13081
+ | Asset.Data
13082
+ | (Asset.Data & { location?: ClientLocation.Data })
13083
+ | (Asset.Data & {
13084
+ location?:
13085
+ | ClientLocation.Data
13086
+ | (ClientLocation.Data & {
13087
+ client: Pick<
13088
+ Client.ClientSchema,
13089
+ "name" | "client_code" | "_id"
13090
+ >;
13091
+ });
13092
+ });
13093
+
13094
+ type locationPopulated =
13095
+ | StringId
13096
+ | ClientLocation.Data
13097
+ | (ClientLocation.Data & {
13098
+ client: Pick<Client.ClientSchema, "name" | "_id" | "client_code">;
13099
+ });
13100
+
13101
+ export interface PopulatedDoc {
13102
+ _id: StringId;
13103
+ creator: AdminOrRep;
13104
+ editor?: AdminOrRep;
13105
+ name: string;
13106
+ asset: assetPopulated;
13107
+ location?: locationPopulated;
13108
+ local_name?: string;
13109
+ description?: string;
13110
+ serial_nu?: string;
13111
+ customFields?: {};
13112
+ disabled: boolean;
13113
+ integration_meta?: { [key: string]: any };
13114
+ media?: StringId[] | PopulatedMediaStorage[];
13115
+ cover_photo?: StringId | PopulatedMediaStorage;
13116
+ comany_namespace: string[];
13117
+ createdAt: string;
13118
+ updatedAt: string;
13119
+ }
13120
+
13121
+ type PopulatedKeys =
13122
+ | "asset"
13123
+ | "location"
13124
+ | "locationClient"
13125
+ | "assetLocation"
13126
+ | "assetLocationClient"
13127
+ | "media"
13128
+ | "cover_photo"
13129
+ | "customFields";
13130
+
13131
+ export namespace Find {
13132
+ export type Params = DefaultPaginationQueryParams & {
13133
+ name?: string | string[];
13134
+ _id?: StringId | StringId[];
13135
+ from_updatedAt?: number;
13136
+ to_updatedAt?: number;
13137
+ asset?: StringId | StringId[];
13138
+ location?: StringId | StringId[];
13139
+ from_createdAt?: number;
13140
+ to_createdAt?: number;
13141
+ search?: string;
13142
+ sortBy?: {
13143
+ field: "asset" | "name";
13144
+ type: "asc" | "desc";
13145
+ }[];
13146
+ populatedKeys?: PopulatedKeys[];
13147
+ };
13148
+ export interface Result extends DefaultPaginationResult {
13149
+ data: Data[] & PopulatedDoc[];
13150
+ }
13151
+ }
13152
+ export namespace Get {
13153
+ export type ID = string;
13154
+ export type Params = {
13155
+ populatedKeys?: PopulatedKeys[];
13156
+ };
13157
+ export type Result = Data & PopulatedDoc;
13158
+ }
13159
+ export namespace Update {
13160
+ export type ID = StringId;
13161
+ export type Body = UpdateBody;
13162
+ export type Result = Data;
13163
+ }
13164
+ export namespace Create {
13165
+ export type Body = CreateBody;
13166
+ export type Result = Data;
13167
+ }
13168
+ export namespace Remove {
13169
+ export type ID = string;
13170
+ export type Params = {};
13171
+ export type Result = Data;
13172
+ }
13173
+ }
12474
13174
  }
12475
13175
 
12476
13176
  export type StringId = string;