repzo 1.0.131 → 1.0.133

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.131",
3
+ "version": "1.0.133",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -121,6 +121,9 @@ export default class Repzo {
121
121
  ACTIVITY_FEEDBACK: "activity-feedback",
122
122
  ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
123
123
  FEEDBACK_OPTION: "feedback-options",
124
+ WORKORDER_CATEGORY: "workorder-category",
125
+ CONTRACT: "contract",
126
+ CONTRACT_INSTALLMENT: "contract-installment",
124
127
  } as const;
125
128
  public static get END_POINTS() {
126
129
  return Repzo._end_points;
@@ -4346,6 +4349,168 @@ export default class Repzo {
4346
4349
  return res;
4347
4350
  },
4348
4351
  };
4352
+
4353
+ workorderCategory = {
4354
+ _path: Repzo._end_points.WORKORDER_CATEGORY,
4355
+ find: async (
4356
+ params?: Service.WorkorderCategory.Find.Params
4357
+ ): Promise<Service.WorkorderCategory.Find.Result> => {
4358
+ let res: Service.WorkorderCategory.Find.Result = await this._fetch(
4359
+ this.svAPIEndpoint,
4360
+ this.workorderCategory._path,
4361
+ params
4362
+ );
4363
+ return res;
4364
+ },
4365
+ get: async (
4366
+ id: Service.WorkorderCategory.Get.ID,
4367
+ params?: Service.WorkorderCategory.Get.Params
4368
+ ): Promise<Service.WorkorderCategory.Get.Result> => {
4369
+ return await this._fetch(
4370
+ this.svAPIEndpoint,
4371
+ this.workorderCategory._path + `/${id}`,
4372
+ params
4373
+ );
4374
+ },
4375
+ create: async (
4376
+ body: Service.WorkorderCategory.Create.Body
4377
+ ): Promise<Service.WorkorderCategory.Create.Result> => {
4378
+ let res = await this._create(
4379
+ this.svAPIEndpoint,
4380
+ this.workorderCategory._path,
4381
+ body
4382
+ );
4383
+ return res;
4384
+ },
4385
+ update: async (
4386
+ id: Service.WorkorderCategory.Update.ID,
4387
+ body: Service.WorkorderCategory.Update.Body
4388
+ ): Promise<Service.WorkorderCategory.Update.Result> => {
4389
+ let res: Service.WorkorderCategory.Update.Result = await this._update(
4390
+ this.svAPIEndpoint,
4391
+ this.workorderCategory._path + `/${id}`,
4392
+ body
4393
+ );
4394
+ return res;
4395
+ },
4396
+ remove: async (
4397
+ id: Service.WorkorderCategory.Remove.ID
4398
+ ): Promise<Service.WorkorderCategory.Remove.Result> => {
4399
+ let res: Service.WorkorderCategory.Remove.Result = await this._delete(
4400
+ this.svAPIEndpoint,
4401
+ this.workorderCategory._path + `/${id}`
4402
+ );
4403
+ return res;
4404
+ },
4405
+ };
4406
+
4407
+ contract = {
4408
+ _path: Repzo._end_points.CONTRACT,
4409
+ find: async (
4410
+ params?: Service.Contract.Find.Params
4411
+ ): Promise<Service.Contract.Find.Result> => {
4412
+ let res: Service.Contract.Find.Result = await this._fetch(
4413
+ this.svAPIEndpoint,
4414
+ this.contract._path,
4415
+ params
4416
+ );
4417
+ return res;
4418
+ },
4419
+ get: async (
4420
+ id: Service.Contract.Get.ID,
4421
+ params?: Service.Contract.Get.Params
4422
+ ): Promise<Service.Contract.Get.Result> => {
4423
+ return await this._fetch(
4424
+ this.svAPIEndpoint,
4425
+ this.contract._path + `/${id}`,
4426
+ params
4427
+ );
4428
+ },
4429
+ create: async (
4430
+ body: Service.Contract.Create.Body
4431
+ ): Promise<Service.Contract.Create.Result> => {
4432
+ let res = await this._create(
4433
+ this.svAPIEndpoint,
4434
+ this.contract._path,
4435
+ body
4436
+ );
4437
+ return res;
4438
+ },
4439
+ update: async (
4440
+ id: Service.Contract.Update.ID,
4441
+ body: Service.Contract.Update.Body
4442
+ ): Promise<Service.Contract.Update.Result> => {
4443
+ let res: Service.Contract.Update.Result = await this._update(
4444
+ this.svAPIEndpoint,
4445
+ this.contract._path + `/${id}`,
4446
+ body
4447
+ );
4448
+ return res;
4449
+ },
4450
+ remove: async (
4451
+ id: Service.Contract.Remove.ID
4452
+ ): Promise<Service.Contract.Remove.Result> => {
4453
+ let res: Service.Contract.Remove.Result = await this._delete(
4454
+ this.svAPIEndpoint,
4455
+ this.contract._path + `/${id}`
4456
+ );
4457
+ return res;
4458
+ },
4459
+ };
4460
+
4461
+ contractInstallment = {
4462
+ _path: Repzo._end_points.CONTRACT_INSTALLMENT,
4463
+ find: async (
4464
+ params?: Service.ContractInstallment.Find.Params
4465
+ ): Promise<Service.ContractInstallment.Find.Result> => {
4466
+ let res: Service.ContractInstallment.Find.Result = await this._fetch(
4467
+ this.svAPIEndpoint,
4468
+ this.contractInstallment._path,
4469
+ params
4470
+ );
4471
+ return res;
4472
+ },
4473
+ get: async (
4474
+ id: Service.ContractInstallment.Get.ID,
4475
+ params?: Service.ContractInstallment.Get.Params
4476
+ ): Promise<Service.ContractInstallment.Get.Result> => {
4477
+ return await this._fetch(
4478
+ this.svAPIEndpoint,
4479
+ this.contractInstallment._path + `/${id}`,
4480
+ params
4481
+ );
4482
+ },
4483
+ create: async (
4484
+ body: Service.ContractInstallment.Create.Body
4485
+ ): Promise<Service.ContractInstallment.Create.Result> => {
4486
+ let res = await this._create(
4487
+ this.svAPIEndpoint,
4488
+ this.contractInstallment._path,
4489
+ body
4490
+ );
4491
+ return res;
4492
+ },
4493
+ update: async (
4494
+ id: Service.ContractInstallment.Update.ID,
4495
+ body: Service.ContractInstallment.Update.Body
4496
+ ): Promise<Service.ContractInstallment.Update.Result> => {
4497
+ let res: Service.ContractInstallment.Update.Result = await this._update(
4498
+ this.svAPIEndpoint,
4499
+ this.contractInstallment._path + `/${id}`,
4500
+ body
4501
+ );
4502
+ return res;
4503
+ },
4504
+ remove: async (
4505
+ id: Service.ContractInstallment.Remove.ID
4506
+ ): Promise<Service.ContractInstallment.Remove.Result> => {
4507
+ let res: Service.ContractInstallment.Remove.Result = await this._delete(
4508
+ this.svAPIEndpoint,
4509
+ this.contractInstallment._path + `/${id}`
4510
+ );
4511
+ return res;
4512
+ },
4513
+ };
4349
4514
  }
4350
4515
 
4351
4516
  function normalizeParams(params: Params): { [key: string]: any } {
@@ -5442,6 +5442,8 @@ export namespace Service {
5442
5442
  assignedToMe?: boolean;
5443
5443
  search?: string;
5444
5444
  populatedKeys?: PopulatedKeys | PopulatedKeys[];
5445
+ from__id?: StringId | StringId[];
5446
+ to__id?: StringId | StringId[];
5445
5447
  sortBy?: { field: SortingKeys; type: "asc" | "desc" }[];
5446
5448
  [key: string]: any; // integration_meta.
5447
5449
  };
@@ -5620,6 +5622,8 @@ export namespace Service {
5620
5622
  "creator._id"?: StringId | StringId[];
5621
5623
  search?: string;
5622
5624
  populatedKeys?: PopulatedKeys | PopulatedKeys[];
5625
+ from__id?: StringId | StringId[];
5626
+ to__id?: StringId | StringId[];
5623
5627
  sortBy?: { field: SortingKeys; type: "asc" | "desc" }[];
5624
5628
  [key: string]: any; // integration_meta.
5625
5629
  };
@@ -9552,6 +9556,9 @@ export namespace Service {
9552
9556
  disabled?: boolean;
9553
9557
  from_updatedAt?: number;
9554
9558
  to_updatedAt?: number;
9559
+ from__id?: StringId | StringId[];
9560
+ to__id?: StringId | StringId[];
9561
+ sortBy?: { field: "_id"; type: "asc" | "desc" }[];
9555
9562
  [key: string]: any; // integration_meta.
9556
9563
  };
9557
9564
  export interface Result extends DefaultPaginationResult {
@@ -9704,6 +9711,8 @@ export namespace Service {
9704
9711
  | "updatedAt";
9705
9712
  type: "asc" | "desc";
9706
9713
  }[];
9714
+ from__id?: StringId | StringId[];
9715
+ to__id?: StringId | StringId[];
9707
9716
  [key: string]: any; // integration_meta.
9708
9717
  };
9709
9718
  export interface Result extends DefaultPaginationResult {
@@ -9952,6 +9961,8 @@ export namespace Service {
9952
9961
  "creator._id"?: StringId[] | StringId;
9953
9962
  creator_type?: string | string[];
9954
9963
  "creator.type"?: string | string[];
9964
+ from__id?: StringId | StringId[];
9965
+ to__id?: StringId | StringId[];
9955
9966
  [key: string]: any; // integration_meta.
9956
9967
  };
9957
9968
  export interface Result extends DefaultPaginationResult {
@@ -13234,9 +13245,11 @@ export namespace Service {
13234
13245
  _id?: StringId | StringId[];
13235
13246
  search?: string;
13236
13247
  name?: string | string[];
13248
+ from__id?: StringId | StringId[];
13249
+ to__id?: StringId | StringId[];
13237
13250
  from_updatedAt?: number;
13238
13251
  to_updatedAt?: number;
13239
- sortBy?: { field: "color" | "name"; type: "asc" | "desc" }[];
13252
+ sortBy?: { field: "color" | "name" | "_id"; type: "asc" | "desc" }[];
13240
13253
  };
13241
13254
  export interface Result extends DefaultPaginationResult {
13242
13255
  data: Data[];
@@ -13371,8 +13384,10 @@ export namespace Service {
13371
13384
  from_createdAt?: number;
13372
13385
  to_createdAt?: number;
13373
13386
  search?: string;
13387
+ from__id?: StringId | StringId[];
13388
+ to__id?: StringId | StringId[];
13374
13389
  sortBy?: {
13375
- field: "barcode" | "name" | "model";
13390
+ field: "barcode" | "name" | "model" | "_id";
13376
13391
  type: "asc" | "desc";
13377
13392
  }[];
13378
13393
  populatedKeys?: PopulatedKeys[];
@@ -13420,7 +13435,7 @@ export namespace Service {
13420
13435
  integration_meta?: { [key: string]: any };
13421
13436
  media?: StringId[];
13422
13437
  cover_photo?: StringId;
13423
- comany_namespace: string[];
13438
+ company_namespace: string[];
13424
13439
  createdAt: string;
13425
13440
  updatedAt: string;
13426
13441
  }
@@ -13489,7 +13504,7 @@ export namespace Service {
13489
13504
  integration_meta?: { [key: string]: any };
13490
13505
  media?: StringId[] | PopulatedMediaStorage[];
13491
13506
  cover_photo?: StringId | PopulatedMediaStorage;
13492
- comany_namespace: string[];
13507
+ company_namespace: string[];
13493
13508
  createdAt: string;
13494
13509
  updatedAt: string;
13495
13510
  }
@@ -13515,10 +13530,9 @@ export namespace Service {
13515
13530
  from_createdAt?: number;
13516
13531
  to_createdAt?: number;
13517
13532
  search?: string;
13518
- sortBy?: {
13519
- field: "asset" | "name";
13520
- type: "asc" | "desc";
13521
- }[];
13533
+ sortBy?: { field: "asset" | "name" | "_id"; type: "asc" | "desc" }[];
13534
+ from__id?: StringId | StringId[];
13535
+ to__id?: StringId | StringId[];
13522
13536
  populatedKeys?: PopulatedKeys[];
13523
13537
  };
13524
13538
  export interface Result extends DefaultPaginationResult {
@@ -13547,6 +13561,374 @@ export namespace Service {
13547
13561
  export type Result = Data;
13548
13562
  }
13549
13563
  }
13564
+
13565
+ export namespace WorkorderCategory {
13566
+ export interface Data {
13567
+ _id: StringId;
13568
+ creator: AdminOrRep;
13569
+ editor?: AdminOrRep;
13570
+ name: string;
13571
+ local_name?: string;
13572
+ description?: string;
13573
+ disabled: boolean;
13574
+ integration_meta?: { [key: string]: any };
13575
+ company_namespace: string[];
13576
+ createdAt: string;
13577
+ updatedAt: string;
13578
+ }
13579
+
13580
+ export interface CreateBody {
13581
+ creator?: AdminOrRep;
13582
+ name: string;
13583
+ local_name?: string;
13584
+ description?: string;
13585
+ disabled?: boolean;
13586
+ integration_meta?: { [key: string]: any };
13587
+ company_namespace?: string[];
13588
+ }
13589
+ export interface UpdateBody {
13590
+ _id?: StringId;
13591
+ creator?: AdminOrRep;
13592
+ editor?: AdminOrRep;
13593
+ name?: string;
13594
+ local_name?: string;
13595
+ description?: string;
13596
+ disabled?: boolean;
13597
+ integration_meta?: { [key: string]: any };
13598
+ company_namespace?: string[];
13599
+ }
13600
+
13601
+ export namespace Find {
13602
+ export type Params = DefaultPaginationQueryParams & {
13603
+ name?: string | string[];
13604
+ _id?: StringId | StringId[];
13605
+ from_updatedAt?: number;
13606
+ to_updatedAt?: number;
13607
+ from_createdAt?: number;
13608
+ to_createdAt?: number;
13609
+ from__id?: StringId | StringId[];
13610
+ to__id?: StringId | StringId[];
13611
+ search?: string;
13612
+ sortBy?: { field: "_id" | "name"; type: "asc" | "desc" }[];
13613
+ };
13614
+ export interface Result extends DefaultPaginationResult {
13615
+ data: Data[];
13616
+ }
13617
+ }
13618
+ export namespace Get {
13619
+ export type ID = string;
13620
+ export type Params = {};
13621
+ export type Result = Data;
13622
+ }
13623
+ export namespace Update {
13624
+ export type ID = StringId;
13625
+ export type Body = UpdateBody;
13626
+ export type Result = Data;
13627
+ }
13628
+ export namespace Create {
13629
+ export type Body = CreateBody;
13630
+ export type Result = Data;
13631
+ }
13632
+ export namespace Remove {
13633
+ export type ID = string;
13634
+ export type Params = {};
13635
+ export type Result = Data;
13636
+ }
13637
+ }
13638
+
13639
+ export namespace Contract {
13640
+ export type ContractStatus = "open" | "closed" | "canceled";
13641
+ export interface Data {
13642
+ _id: StringId;
13643
+ creator: AdminOrRep;
13644
+ editor?: AdminOrRep;
13645
+ sync_id: string;
13646
+ title?: string;
13647
+ serial_number: SerialNumber;
13648
+ external_serial_number?: string;
13649
+ start_time: number;
13650
+ end_time: number;
13651
+ amount?: number;
13652
+ client: StringId;
13653
+ status?: ContractStatus;
13654
+ disabled: boolean;
13655
+ locations?: {
13656
+ _id: StringId;
13657
+ assets?: StringId[];
13658
+ asset_units?: StringId[];
13659
+ }[];
13660
+ media?: StringId[];
13661
+ renewed_from?: StringId;
13662
+ company_namespace: string[];
13663
+ createdAt: string;
13664
+ updatedAt: string;
13665
+ }
13666
+ export interface CreateBody {
13667
+ sync_id: string;
13668
+ creator?: AdminOrRep;
13669
+ title?: string;
13670
+ serial_number?: SerialNumber;
13671
+ external_serial_number?: string;
13672
+ start_time: number;
13673
+ end_time: number;
13674
+ amount?: number;
13675
+ client: StringId;
13676
+ status?: ContractStatus;
13677
+ disabled?: boolean;
13678
+ locations?: {
13679
+ _id: StringId;
13680
+ assets?: StringId[];
13681
+ asset_units?: StringId[];
13682
+ }[];
13683
+ media?: StringId[];
13684
+ renewed_from?: StringId;
13685
+ company_namespace?: string[];
13686
+ }
13687
+ export interface UpdateBody {
13688
+ _id?: StringId;
13689
+ creator?: AdminOrRep;
13690
+ editor?: AdminOrRep;
13691
+ sync_id?: string;
13692
+ title?: string;
13693
+ serial_number?: SerialNumber;
13694
+ external_serial_number?: string;
13695
+ start_time?: number;
13696
+ end_time?: number;
13697
+ amount?: number;
13698
+ client?: StringId;
13699
+ status?: ContractStatus;
13700
+ disabled?: boolean;
13701
+ locations?: {
13702
+ _id: StringId;
13703
+ assets?: StringId[];
13704
+ asset_units?: StringId[];
13705
+ }[];
13706
+ media?: StringId[];
13707
+ renewed_from?: StringId;
13708
+ company_namespace?: string[];
13709
+ createdAt?: string;
13710
+ updatedAt?: string;
13711
+ }
13712
+ export interface PopulatedDoc {
13713
+ _id: StringId;
13714
+ creator: AdminOrRep;
13715
+ editor?: AdminOrRep;
13716
+ sync_id: string;
13717
+ title?: string;
13718
+ serial_number: SerialNumber;
13719
+ external_serial_number?: string;
13720
+ start_time: number;
13721
+ end_time: number;
13722
+ amount?: number;
13723
+ client: StringId;
13724
+ client_populated?: Pick<
13725
+ Client.ClientSchema,
13726
+ "name" | "client_code" | "_id" | "local_name"
13727
+ >;
13728
+ status?: ContractStatus;
13729
+ disabled: boolean;
13730
+ locations?: {
13731
+ _id:
13732
+ | StringId
13733
+ | Pick<ClientLocation.Data, "name" | "_id" | "cover_photo">;
13734
+ assets?:
13735
+ | StringId[]
13736
+ | Pick<Asset.Data, "name" | "_id" | "cover_photo">[];
13737
+ asset_units?:
13738
+ | StringId[]
13739
+ | Pick<AssetUnit.Data, "name" | "_id" | "cover_photo">[];
13740
+ }[];
13741
+ media?: StringId[];
13742
+ media_populated?: PopulatedMediaStorage[];
13743
+ renewed_from?: StringId;
13744
+ renewed_from_populated?: Data;
13745
+ company_namespace: string[];
13746
+ createdAt: string;
13747
+ updatedAt: string;
13748
+ }
13749
+
13750
+ type PopulatedKeys =
13751
+ | "locations.asset_units"
13752
+ | "locations.assets"
13753
+ | "locations._id"
13754
+ | "client"
13755
+ | "media"
13756
+ | "renewed_from";
13757
+
13758
+ export namespace Find {
13759
+ export type Params = DefaultPaginationQueryParams & {
13760
+ _id?: StringId | StringId[];
13761
+ from_updatedAt?: number;
13762
+ to_updatedAt?: number;
13763
+ from_createdAt?: number;
13764
+ to_createdAt?: number;
13765
+ from__id?: StringId | StringId[];
13766
+ to__id?: StringId | StringId[];
13767
+ search?: string; // "serial_number.formatted"
13768
+ sortBy?: { field: "_id"; type: "asc" | "desc" }[];
13769
+ status?: ContractStatus | ContractStatus[];
13770
+ client?: StringId | StringId[];
13771
+ from_start_time?: number;
13772
+ to_start_time?: number;
13773
+ from_end_time?: number;
13774
+ to_end_time?: number;
13775
+ from_amount?: number;
13776
+ to_amount?: number;
13777
+ renewed_from?: StringId | StringId[];
13778
+ populatedKeys?: PopulatedKeys[];
13779
+ expired?: boolean;
13780
+ near_expiry?: boolean;
13781
+ };
13782
+ export interface Result extends DefaultPaginationResult {
13783
+ data: Data[] & PopulatedDoc[];
13784
+ }
13785
+ }
13786
+ export namespace Get {
13787
+ export type ID = string;
13788
+ export type Params = { populatedKeys?: PopulatedKeys[] };
13789
+ export type Result = Data & PopulatedDoc;
13790
+ }
13791
+ export namespace Update {
13792
+ export type ID = StringId;
13793
+ export type Body = UpdateBody;
13794
+ export type Result = Data;
13795
+ }
13796
+ export namespace Create {
13797
+ export type Body = CreateBody;
13798
+ export type Result = Data;
13799
+ }
13800
+ export namespace Remove {
13801
+ export type ID = string;
13802
+ export type Params = {};
13803
+ export type Result = Data;
13804
+ }
13805
+ }
13806
+
13807
+ export namespace ContractInstallment {
13808
+ export type ContractInstallmentStatus = "paid" | "unpaid";
13809
+ export interface Data {
13810
+ _id: StringId;
13811
+ creator: AdminOrRep;
13812
+ editor?: AdminOrRep;
13813
+ sync_id: string;
13814
+ media?: StringId[];
13815
+ serial_number: SerialNumber;
13816
+ external_serial_number?: string;
13817
+ due_time: number;
13818
+ pay_time?: number;
13819
+ amount?: number;
13820
+ contract: StringId;
13821
+ status: ContractInstallmentStatus;
13822
+ disabled: boolean;
13823
+ is_renewed?: boolean;
13824
+ bulk_uuid?: string;
13825
+ company_namespace: string[];
13826
+ createdAt: string;
13827
+ updatedAt: string;
13828
+ }
13829
+ export interface CreateBody {
13830
+ sync_id: string;
13831
+ creator?: AdminOrRep;
13832
+ serial_number?: SerialNumber;
13833
+ external_serial_number?: string;
13834
+ due_time: number;
13835
+ pay_time?: number;
13836
+ amount?: number;
13837
+ contract: StringId;
13838
+ status?: ContractInstallmentStatus;
13839
+ disabled?: boolean;
13840
+ is_renewed?: boolean;
13841
+ bulk_uuid?: string;
13842
+ media?: StringId[];
13843
+ company_namespace?: string[];
13844
+ }
13845
+ export interface UpdateBody {
13846
+ _id?: StringId;
13847
+ creator?: AdminOrRep;
13848
+ editor?: AdminOrRep;
13849
+ sync_id?: string;
13850
+ media?: StringId[];
13851
+ serial_number?: SerialNumber;
13852
+ external_serial_number?: string;
13853
+ due_time?: number;
13854
+ pay_time?: number;
13855
+ amount?: number;
13856
+ contract?: StringId;
13857
+ status?: ContractInstallmentStatus;
13858
+ disabled?: boolean;
13859
+ is_renewed?: boolean;
13860
+ bulk_uuid?: string;
13861
+ company_namespace?: string[];
13862
+ createdAt?: string;
13863
+ updatedAt?: string;
13864
+ }
13865
+ export interface PopulatedDoc {
13866
+ _id: StringId;
13867
+ creator: AdminOrRep;
13868
+ editor?: AdminOrRep;
13869
+ sync_id: string;
13870
+ media?: StringId[];
13871
+ serial_number: SerialNumber;
13872
+ external_serial_number?: string;
13873
+ due_time: number;
13874
+ pay_time?: number;
13875
+ amount?: number;
13876
+ contract: StringId;
13877
+ status: ContractInstallmentStatus;
13878
+ disabled: boolean;
13879
+ is_renewed?: boolean;
13880
+ bulk_uuid?: string;
13881
+ company_namespace: string[];
13882
+ createdAt: string;
13883
+ updatedAt: string;
13884
+ media_populated?: PopulatedMediaStorage[];
13885
+ contract_populated?: Pick<Contract.Data, "serial_number" | "_id">;
13886
+ }
13887
+
13888
+ type PopulatedKeys = "contract" | "media";
13889
+
13890
+ export namespace Find {
13891
+ export type Params = DefaultPaginationQueryParams & {
13892
+ _id?: StringId | StringId[];
13893
+ from_updatedAt?: number;
13894
+ to_updatedAt?: number;
13895
+ from_createdAt?: number;
13896
+ to_createdAt?: number;
13897
+ from__id?: StringId | StringId[];
13898
+ to__id?: StringId | StringId[];
13899
+ search?: string; // "serial_number.formatted"
13900
+ sortBy?: { field: "_id"; type: "asc" | "desc" }[];
13901
+ status?: ContractInstallmentStatus | ContractInstallmentStatus[];
13902
+ contract?: StringId | StringId[];
13903
+ from_due_time?: number;
13904
+ to_due_time?: number;
13905
+ due_time?: number;
13906
+ populatedKeys?: PopulatedKeys[];
13907
+ };
13908
+ export interface Result extends DefaultPaginationResult {
13909
+ data: Data[] & PopulatedDoc[];
13910
+ }
13911
+ }
13912
+ export namespace Get {
13913
+ export type ID = string;
13914
+ export type Params = { populatedKeys?: PopulatedKeys[] };
13915
+ export type Result = Data & PopulatedDoc;
13916
+ }
13917
+ export namespace Update {
13918
+ export type ID = StringId;
13919
+ export type Body = UpdateBody;
13920
+ export type Result = Data;
13921
+ }
13922
+ export namespace Create {
13923
+ export type Body = CreateBody;
13924
+ export type Result = Data;
13925
+ }
13926
+ export namespace Remove {
13927
+ export type ID = string;
13928
+ export type Params = {};
13929
+ export type Result = Data;
13930
+ }
13931
+ }
13550
13932
  }
13551
13933
 
13552
13934
  export type StringId = string;