repzo 1.0.106 → 1.0.108
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/lib/index.d.ts +1283 -642
- package/lib/index.js +2701 -1684
- package/lib/types/index.d.ts +11266 -10258
- package/package.json +1 -1
- package/src/types/index.ts +60 -20
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -2509,12 +2509,14 @@ export namespace Service {
|
|
|
2509
2509
|
rep_can_create_transfer_load?: boolean;
|
|
2510
2510
|
rep_can_create_transfer_unload?: boolean;
|
|
2511
2511
|
rep_can_create_return_invoice?: boolean;
|
|
2512
|
+
rep_can_create_partial_return_invoice?: boolean;
|
|
2512
2513
|
rep_can_sell_zero_product_price?: boolean;
|
|
2513
2514
|
rep_can_create_sales_order_out_of_visit?: boolean;
|
|
2514
2515
|
rep_can_create_cash_invoice?: boolean;
|
|
2515
2516
|
rep_can_sell_above_product_price?: boolean;
|
|
2516
2517
|
rep_can_sell_below_product_price?: boolean;
|
|
2517
2518
|
rep_can_create_return_out_of_visit?: boolean;
|
|
2519
|
+
rep_can_create_partial_return_out_of_visit?: boolean;
|
|
2518
2520
|
rep_can_skip_return_reason?: boolean;
|
|
2519
2521
|
rep_can_create_invoice_out_of_visit?: boolean;
|
|
2520
2522
|
rep_can_create_free_payments?: boolean;
|
|
@@ -4631,8 +4633,14 @@ export namespace Service {
|
|
|
4631
4633
|
to_total_time?: number;
|
|
4632
4634
|
closed_by_system?: boolean;
|
|
4633
4635
|
from_updatedAt?: number;
|
|
4636
|
+
from__id?: string;
|
|
4637
|
+
to__id?: string;
|
|
4634
4638
|
[key: string]: any; // integration_meta.
|
|
4635
4639
|
populatedKeys?: PopulatedKeys[];
|
|
4640
|
+
sortBy?: {
|
|
4641
|
+
field: "_id";
|
|
4642
|
+
type: "asc" | "desc";
|
|
4643
|
+
}[];
|
|
4636
4644
|
};
|
|
4637
4645
|
export interface Result extends DefaultPaginationResult {
|
|
4638
4646
|
data: VisitSchemaWithPopulatedKeys[];
|
|
@@ -4670,24 +4678,24 @@ export namespace Service {
|
|
|
4670
4678
|
disabled: boolean;
|
|
4671
4679
|
integration_meta?: { [key: string]: any };
|
|
4672
4680
|
status: WorkorderStatus;
|
|
4673
|
-
assets?:
|
|
4674
|
-
asset_units?:
|
|
4681
|
+
assets?: StringId[];
|
|
4682
|
+
asset_units?: StringId[];
|
|
4675
4683
|
asset_part_units?: StringId[];
|
|
4676
|
-
workorder_categories:
|
|
4684
|
+
workorder_categories: StringId[];
|
|
4677
4685
|
due_date?: number;
|
|
4678
4686
|
start_date?: number;
|
|
4679
|
-
client_location:
|
|
4687
|
+
client_location: StringId;
|
|
4680
4688
|
priority?: Priority;
|
|
4681
4689
|
priority_human?: Priority_human;
|
|
4682
|
-
client:
|
|
4690
|
+
client: StringId;
|
|
4683
4691
|
client_name: string;
|
|
4684
4692
|
workorder_request?: string;
|
|
4685
4693
|
createdAt?: Date;
|
|
4686
4694
|
updatedAt?: Date;
|
|
4687
4695
|
company_namespace: string[];
|
|
4688
4696
|
serial_number?: SerialNumber;
|
|
4689
|
-
assigned_to?:
|
|
4690
|
-
forms?:
|
|
4697
|
+
assigned_to?: StringId[];
|
|
4698
|
+
forms?: StringId[];
|
|
4691
4699
|
time: number;
|
|
4692
4700
|
is_overdue: boolean;
|
|
4693
4701
|
opened_at: number;
|
|
@@ -4736,6 +4744,28 @@ export namespace Service {
|
|
|
4736
4744
|
forms_populated?: FormPopulated[];
|
|
4737
4745
|
media_populated?: MediaPopulated;
|
|
4738
4746
|
cover_photo_populated?: MediaPopulated;
|
|
4747
|
+
is_dunning_allowed?: boolean;
|
|
4748
|
+
score_required_for_dunning?: boolean;
|
|
4749
|
+
min_score_required_for_dunning?: number;
|
|
4750
|
+
score?: number;
|
|
4751
|
+
is_completed?: boolean;
|
|
4752
|
+
forms_v2?: {
|
|
4753
|
+
form_id: StringId;
|
|
4754
|
+
form_activity_id?: StringId;
|
|
4755
|
+
completion_required_for_dunning?: boolean;
|
|
4756
|
+
score_required_for_dunning?: boolean;
|
|
4757
|
+
min_score_required_for_dunning?: number;
|
|
4758
|
+
score?: number;
|
|
4759
|
+
is_completed?: boolean;
|
|
4760
|
+
}[];
|
|
4761
|
+
teams?: StringId[];
|
|
4762
|
+
media?: StringId[];
|
|
4763
|
+
cover_photo?: StringId;
|
|
4764
|
+
custom_status?: StringId;
|
|
4765
|
+
contract?: StringId;
|
|
4766
|
+
parent_repeating_workorder?: StringId;
|
|
4767
|
+
parent_repeating_day?: string;
|
|
4768
|
+
filter_asset_units_by_location?: boolean;
|
|
4739
4769
|
}
|
|
4740
4770
|
export interface CreateBody {
|
|
4741
4771
|
company_namespace: string[];
|
|
@@ -4746,23 +4776,23 @@ export namespace Service {
|
|
|
4746
4776
|
disabled?: boolean;
|
|
4747
4777
|
integration_meta?: { [key: string]: any };
|
|
4748
4778
|
status: WorkorderStatus;
|
|
4749
|
-
assets?:
|
|
4750
|
-
asset_units?:
|
|
4779
|
+
assets?: StringId[];
|
|
4780
|
+
asset_units?: StringId[];
|
|
4751
4781
|
asset_part_units?: StringId[];
|
|
4752
|
-
workorder_categories:
|
|
4782
|
+
workorder_categories: StringId[];
|
|
4753
4783
|
due_date?: number;
|
|
4754
4784
|
start_date?: number;
|
|
4755
|
-
client_location:
|
|
4785
|
+
client_location: StringId;
|
|
4756
4786
|
priority?: Priority;
|
|
4757
4787
|
priority_human?: Priority_human;
|
|
4758
|
-
client:
|
|
4788
|
+
client: StringId;
|
|
4759
4789
|
client_name?: string;
|
|
4760
4790
|
serial_number?: SerialNumber;
|
|
4761
|
-
workorder_request?:
|
|
4762
|
-
assigned_to?:
|
|
4763
|
-
forms?:
|
|
4791
|
+
workorder_request?: StringId;
|
|
4792
|
+
assigned_to?: StringId[];
|
|
4793
|
+
forms?: StringId[];
|
|
4764
4794
|
calendars: Calendar[];
|
|
4765
|
-
parent_repeating_workorder?:
|
|
4795
|
+
parent_repeating_workorder?: StringId;
|
|
4766
4796
|
due_date_day?: string;
|
|
4767
4797
|
last_done_at: number;
|
|
4768
4798
|
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -4771,6 +4801,11 @@ export namespace Service {
|
|
|
4771
4801
|
opened_at: number;
|
|
4772
4802
|
time: number;
|
|
4773
4803
|
opened_by: AdminCreator | RepCreator | ClientCreator;
|
|
4804
|
+
teams?: StringId[];
|
|
4805
|
+
media?: StringId[];
|
|
4806
|
+
cover_photo?: StringId;
|
|
4807
|
+
custom_status?: StringId;
|
|
4808
|
+
contract?: StringId;
|
|
4774
4809
|
}
|
|
4775
4810
|
export interface UpdateBody {
|
|
4776
4811
|
company_namespace: string[];
|
|
@@ -4817,6 +4852,11 @@ export namespace Service {
|
|
|
4817
4852
|
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
4818
4853
|
resolve_time: number;
|
|
4819
4854
|
sync_id?: string;
|
|
4855
|
+
teams?: StringId[];
|
|
4856
|
+
media?: StringId[];
|
|
4857
|
+
cover_photo?: StringId;
|
|
4858
|
+
custom_status?: StringId;
|
|
4859
|
+
contract?: StringId;
|
|
4820
4860
|
}
|
|
4821
4861
|
type SortingKeys =
|
|
4822
4862
|
| "due_date"
|
|
@@ -5090,9 +5130,9 @@ export namespace Service {
|
|
|
5090
5130
|
skip_promos?: boolean;
|
|
5091
5131
|
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5092
5132
|
partially_returned_from?: StringId;
|
|
5093
|
-
partially_returned_to?: StringId;
|
|
5133
|
+
partially_returned_to?: StringId[];
|
|
5094
5134
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5095
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
5135
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5096
5136
|
discount_amount_float?: number;
|
|
5097
5137
|
net_total?: number;
|
|
5098
5138
|
tax_amount_after_deduction_float?: number;
|
|
@@ -5278,9 +5318,9 @@ export namespace Service {
|
|
|
5278
5318
|
skip_promos?: boolean;
|
|
5279
5319
|
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5280
5320
|
partially_returned_from?: StringId;
|
|
5281
|
-
partially_returned_to?: StringId;
|
|
5321
|
+
partially_returned_to?: StringId[];
|
|
5282
5322
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5283
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
5323
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5284
5324
|
discount_amount_float?: number;
|
|
5285
5325
|
net_total?: number;
|
|
5286
5326
|
tax_amount_after_deduction_float?: number;
|