repzo 1.0.107 → 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/types/index.d.ts +66 -32
- package/package.json +1 -1
- package/src/types/index.ts +54 -20
package/lib/types/index.d.ts
CHANGED
|
@@ -201,21 +201,21 @@ export interface Build {
|
|
|
201
201
|
list: List[];
|
|
202
202
|
start_date?: number | undefined;
|
|
203
203
|
}
|
|
204
|
-
export type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
204
|
+
export declare type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
205
205
|
export interface Route {
|
|
206
206
|
disabled: boolean;
|
|
207
207
|
list: List[];
|
|
208
208
|
_id: string;
|
|
209
209
|
}
|
|
210
|
-
export type Priority = 0 | 1 | 2 | 3;
|
|
211
|
-
export type WorkorderStatus =
|
|
210
|
+
export declare type Priority = 0 | 1 | 2 | 3;
|
|
211
|
+
export declare type WorkorderStatus =
|
|
212
212
|
| "open"
|
|
213
213
|
| "done"
|
|
214
214
|
| "cancelled"
|
|
215
215
|
| "inprogress"
|
|
216
216
|
| "onhold";
|
|
217
|
-
export type Priority_human = "none" | "low" | "medium" | "high";
|
|
218
|
-
export type Day =
|
|
217
|
+
export declare type Priority_human = "none" | "low" | "medium" | "high";
|
|
218
|
+
export declare type Day =
|
|
219
219
|
| "Sun"
|
|
220
220
|
| "Mon"
|
|
221
221
|
| "Tue"
|
|
@@ -224,7 +224,7 @@ export type Day =
|
|
|
224
224
|
| "Fri"
|
|
225
225
|
| "Sat"
|
|
226
226
|
| string;
|
|
227
|
-
export type FieldType =
|
|
227
|
+
export declare type FieldType =
|
|
228
228
|
| "Text"
|
|
229
229
|
| "String"
|
|
230
230
|
| "Date"
|
|
@@ -270,7 +270,7 @@ export interface CalendarWeeklyGroup {
|
|
|
270
270
|
note?: string;
|
|
271
271
|
_id: string;
|
|
272
272
|
}
|
|
273
|
-
export type Model =
|
|
273
|
+
export declare type Model =
|
|
274
274
|
| "quickConvertToPdf"
|
|
275
275
|
| "warehouses"
|
|
276
276
|
| "transfers"
|
|
@@ -295,7 +295,7 @@ export type Model =
|
|
|
295
295
|
| "activities"
|
|
296
296
|
| "bigReports"
|
|
297
297
|
| "admins";
|
|
298
|
-
export type DocumentTypes =
|
|
298
|
+
export declare type DocumentTypes =
|
|
299
299
|
| "form"
|
|
300
300
|
| "quickConvertToPdf"
|
|
301
301
|
| "clients"
|
|
@@ -339,7 +339,7 @@ export type DocumentTypes =
|
|
|
339
339
|
| "retailExecutionPreset"
|
|
340
340
|
| "paymentMethod"
|
|
341
341
|
| "approvalRequest";
|
|
342
|
-
export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
342
|
+
export declare type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
343
343
|
export interface MediaDoc {
|
|
344
344
|
_id?: string;
|
|
345
345
|
media_id: string;
|
|
@@ -2467,12 +2467,14 @@ export declare namespace Service {
|
|
|
2467
2467
|
rep_can_create_transfer_load?: boolean;
|
|
2468
2468
|
rep_can_create_transfer_unload?: boolean;
|
|
2469
2469
|
rep_can_create_return_invoice?: boolean;
|
|
2470
|
+
rep_can_create_partial_return_invoice?: boolean;
|
|
2470
2471
|
rep_can_sell_zero_product_price?: boolean;
|
|
2471
2472
|
rep_can_create_sales_order_out_of_visit?: boolean;
|
|
2472
2473
|
rep_can_create_cash_invoice?: boolean;
|
|
2473
2474
|
rep_can_sell_above_product_price?: boolean;
|
|
2474
2475
|
rep_can_sell_below_product_price?: boolean;
|
|
2475
2476
|
rep_can_create_return_out_of_visit?: boolean;
|
|
2477
|
+
rep_can_create_partial_return_out_of_visit?: boolean;
|
|
2476
2478
|
rep_can_skip_return_reason?: boolean;
|
|
2477
2479
|
rep_can_create_invoice_out_of_visit?: boolean;
|
|
2478
2480
|
rep_can_create_free_payments?: boolean;
|
|
@@ -4642,24 +4644,24 @@ export declare namespace Service {
|
|
|
4642
4644
|
[key: string]: any;
|
|
4643
4645
|
};
|
|
4644
4646
|
status: WorkorderStatus;
|
|
4645
|
-
assets?:
|
|
4646
|
-
asset_units?:
|
|
4647
|
+
assets?: StringId[];
|
|
4648
|
+
asset_units?: StringId[];
|
|
4647
4649
|
asset_part_units?: StringId[];
|
|
4648
|
-
workorder_categories:
|
|
4650
|
+
workorder_categories: StringId[];
|
|
4649
4651
|
due_date?: number;
|
|
4650
4652
|
start_date?: number;
|
|
4651
|
-
client_location:
|
|
4653
|
+
client_location: StringId;
|
|
4652
4654
|
priority?: Priority;
|
|
4653
4655
|
priority_human?: Priority_human;
|
|
4654
|
-
client:
|
|
4656
|
+
client: StringId;
|
|
4655
4657
|
client_name: string;
|
|
4656
4658
|
workorder_request?: string;
|
|
4657
4659
|
createdAt?: Date;
|
|
4658
4660
|
updatedAt?: Date;
|
|
4659
4661
|
company_namespace: string[];
|
|
4660
4662
|
serial_number?: SerialNumber;
|
|
4661
|
-
assigned_to?:
|
|
4662
|
-
forms?:
|
|
4663
|
+
assigned_to?: StringId[];
|
|
4664
|
+
forms?: StringId[];
|
|
4663
4665
|
time: number;
|
|
4664
4666
|
is_overdue: boolean;
|
|
4665
4667
|
opened_at: number;
|
|
@@ -4708,6 +4710,28 @@ export declare namespace Service {
|
|
|
4708
4710
|
forms_populated?: FormPopulated[];
|
|
4709
4711
|
media_populated?: MediaPopulated;
|
|
4710
4712
|
cover_photo_populated?: MediaPopulated;
|
|
4713
|
+
is_dunning_allowed?: boolean;
|
|
4714
|
+
score_required_for_dunning?: boolean;
|
|
4715
|
+
min_score_required_for_dunning?: number;
|
|
4716
|
+
score?: number;
|
|
4717
|
+
is_completed?: boolean;
|
|
4718
|
+
forms_v2?: {
|
|
4719
|
+
form_id: StringId;
|
|
4720
|
+
form_activity_id?: StringId;
|
|
4721
|
+
completion_required_for_dunning?: boolean;
|
|
4722
|
+
score_required_for_dunning?: boolean;
|
|
4723
|
+
min_score_required_for_dunning?: number;
|
|
4724
|
+
score?: number;
|
|
4725
|
+
is_completed?: boolean;
|
|
4726
|
+
}[];
|
|
4727
|
+
teams?: StringId[];
|
|
4728
|
+
media?: StringId[];
|
|
4729
|
+
cover_photo?: StringId;
|
|
4730
|
+
custom_status?: StringId;
|
|
4731
|
+
contract?: StringId;
|
|
4732
|
+
parent_repeating_workorder?: StringId;
|
|
4733
|
+
parent_repeating_day?: string;
|
|
4734
|
+
filter_asset_units_by_location?: boolean;
|
|
4711
4735
|
}
|
|
4712
4736
|
export interface CreateBody {
|
|
4713
4737
|
company_namespace: string[];
|
|
@@ -4720,23 +4744,23 @@ export declare namespace Service {
|
|
|
4720
4744
|
[key: string]: any;
|
|
4721
4745
|
};
|
|
4722
4746
|
status: WorkorderStatus;
|
|
4723
|
-
assets?:
|
|
4724
|
-
asset_units?:
|
|
4747
|
+
assets?: StringId[];
|
|
4748
|
+
asset_units?: StringId[];
|
|
4725
4749
|
asset_part_units?: StringId[];
|
|
4726
|
-
workorder_categories:
|
|
4750
|
+
workorder_categories: StringId[];
|
|
4727
4751
|
due_date?: number;
|
|
4728
4752
|
start_date?: number;
|
|
4729
|
-
client_location:
|
|
4753
|
+
client_location: StringId;
|
|
4730
4754
|
priority?: Priority;
|
|
4731
4755
|
priority_human?: Priority_human;
|
|
4732
|
-
client:
|
|
4756
|
+
client: StringId;
|
|
4733
4757
|
client_name?: string;
|
|
4734
4758
|
serial_number?: SerialNumber;
|
|
4735
|
-
workorder_request?:
|
|
4736
|
-
assigned_to?:
|
|
4737
|
-
forms?:
|
|
4759
|
+
workorder_request?: StringId;
|
|
4760
|
+
assigned_to?: StringId[];
|
|
4761
|
+
forms?: StringId[];
|
|
4738
4762
|
calendars: Calendar[];
|
|
4739
|
-
parent_repeating_workorder?:
|
|
4763
|
+
parent_repeating_workorder?: StringId;
|
|
4740
4764
|
due_date_day?: string;
|
|
4741
4765
|
last_done_at: number;
|
|
4742
4766
|
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -4745,6 +4769,11 @@ export declare namespace Service {
|
|
|
4745
4769
|
opened_at: number;
|
|
4746
4770
|
time: number;
|
|
4747
4771
|
opened_by: AdminCreator | RepCreator | ClientCreator;
|
|
4772
|
+
teams?: StringId[];
|
|
4773
|
+
media?: StringId[];
|
|
4774
|
+
cover_photo?: StringId;
|
|
4775
|
+
custom_status?: StringId;
|
|
4776
|
+
contract?: StringId;
|
|
4748
4777
|
}
|
|
4749
4778
|
export interface UpdateBody {
|
|
4750
4779
|
company_namespace: string[];
|
|
@@ -4793,6 +4822,11 @@ export declare namespace Service {
|
|
|
4793
4822
|
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
4794
4823
|
resolve_time: number;
|
|
4795
4824
|
sync_id?: string;
|
|
4825
|
+
teams?: StringId[];
|
|
4826
|
+
media?: StringId[];
|
|
4827
|
+
cover_photo?: StringId;
|
|
4828
|
+
custom_status?: StringId;
|
|
4829
|
+
contract?: StringId;
|
|
4796
4830
|
}
|
|
4797
4831
|
type SortingKeys =
|
|
4798
4832
|
| "due_date"
|
|
@@ -5078,9 +5112,9 @@ export declare namespace Service {
|
|
|
5078
5112
|
ref?: string;
|
|
5079
5113
|
}[];
|
|
5080
5114
|
partially_returned_from?: StringId;
|
|
5081
|
-
partially_returned_to?: StringId;
|
|
5115
|
+
partially_returned_to?: StringId[];
|
|
5082
5116
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5083
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
5117
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5084
5118
|
discount_amount_float?: number;
|
|
5085
5119
|
net_total?: number;
|
|
5086
5120
|
tax_amount_after_deduction_float?: number;
|
|
@@ -5283,9 +5317,9 @@ export declare namespace Service {
|
|
|
5283
5317
|
ref?: string;
|
|
5284
5318
|
}[];
|
|
5285
5319
|
partially_returned_from?: StringId;
|
|
5286
|
-
partially_returned_to?: StringId;
|
|
5320
|
+
partially_returned_to?: StringId[];
|
|
5287
5321
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5288
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
5322
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5289
5323
|
discount_amount_float?: number;
|
|
5290
5324
|
net_total?: number;
|
|
5291
5325
|
tax_amount_after_deduction_float?: number;
|
|
@@ -11327,8 +11361,8 @@ export declare namespace Service {
|
|
|
11327
11361
|
}
|
|
11328
11362
|
}
|
|
11329
11363
|
}
|
|
11330
|
-
export type StringId = string;
|
|
11331
|
-
export type NameSpaces = string[];
|
|
11364
|
+
export declare type StringId = string;
|
|
11365
|
+
export declare type NameSpaces = string[];
|
|
11332
11366
|
export interface AdminOrRep {
|
|
11333
11367
|
_id: StringId;
|
|
11334
11368
|
name?: string;
|
|
@@ -11343,7 +11377,7 @@ interface ValidityCheck {
|
|
|
11343
11377
|
code: string;
|
|
11344
11378
|
}[];
|
|
11345
11379
|
}
|
|
11346
|
-
type PopulatedMediaStorage = Pick<
|
|
11380
|
+
declare type PopulatedMediaStorage = Pick<
|
|
11347
11381
|
Service.MediaStorage.MediaStorageSchema,
|
|
11348
11382
|
| "_id"
|
|
11349
11383
|
| "createdAt"
|
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;
|
|
@@ -4676,24 +4678,24 @@ export namespace Service {
|
|
|
4676
4678
|
disabled: boolean;
|
|
4677
4679
|
integration_meta?: { [key: string]: any };
|
|
4678
4680
|
status: WorkorderStatus;
|
|
4679
|
-
assets?:
|
|
4680
|
-
asset_units?:
|
|
4681
|
+
assets?: StringId[];
|
|
4682
|
+
asset_units?: StringId[];
|
|
4681
4683
|
asset_part_units?: StringId[];
|
|
4682
|
-
workorder_categories:
|
|
4684
|
+
workorder_categories: StringId[];
|
|
4683
4685
|
due_date?: number;
|
|
4684
4686
|
start_date?: number;
|
|
4685
|
-
client_location:
|
|
4687
|
+
client_location: StringId;
|
|
4686
4688
|
priority?: Priority;
|
|
4687
4689
|
priority_human?: Priority_human;
|
|
4688
|
-
client:
|
|
4690
|
+
client: StringId;
|
|
4689
4691
|
client_name: string;
|
|
4690
4692
|
workorder_request?: string;
|
|
4691
4693
|
createdAt?: Date;
|
|
4692
4694
|
updatedAt?: Date;
|
|
4693
4695
|
company_namespace: string[];
|
|
4694
4696
|
serial_number?: SerialNumber;
|
|
4695
|
-
assigned_to?:
|
|
4696
|
-
forms?:
|
|
4697
|
+
assigned_to?: StringId[];
|
|
4698
|
+
forms?: StringId[];
|
|
4697
4699
|
time: number;
|
|
4698
4700
|
is_overdue: boolean;
|
|
4699
4701
|
opened_at: number;
|
|
@@ -4742,6 +4744,28 @@ export namespace Service {
|
|
|
4742
4744
|
forms_populated?: FormPopulated[];
|
|
4743
4745
|
media_populated?: MediaPopulated;
|
|
4744
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;
|
|
4745
4769
|
}
|
|
4746
4770
|
export interface CreateBody {
|
|
4747
4771
|
company_namespace: string[];
|
|
@@ -4752,23 +4776,23 @@ export namespace Service {
|
|
|
4752
4776
|
disabled?: boolean;
|
|
4753
4777
|
integration_meta?: { [key: string]: any };
|
|
4754
4778
|
status: WorkorderStatus;
|
|
4755
|
-
assets?:
|
|
4756
|
-
asset_units?:
|
|
4779
|
+
assets?: StringId[];
|
|
4780
|
+
asset_units?: StringId[];
|
|
4757
4781
|
asset_part_units?: StringId[];
|
|
4758
|
-
workorder_categories:
|
|
4782
|
+
workorder_categories: StringId[];
|
|
4759
4783
|
due_date?: number;
|
|
4760
4784
|
start_date?: number;
|
|
4761
|
-
client_location:
|
|
4785
|
+
client_location: StringId;
|
|
4762
4786
|
priority?: Priority;
|
|
4763
4787
|
priority_human?: Priority_human;
|
|
4764
|
-
client:
|
|
4788
|
+
client: StringId;
|
|
4765
4789
|
client_name?: string;
|
|
4766
4790
|
serial_number?: SerialNumber;
|
|
4767
|
-
workorder_request?:
|
|
4768
|
-
assigned_to?:
|
|
4769
|
-
forms?:
|
|
4791
|
+
workorder_request?: StringId;
|
|
4792
|
+
assigned_to?: StringId[];
|
|
4793
|
+
forms?: StringId[];
|
|
4770
4794
|
calendars: Calendar[];
|
|
4771
|
-
parent_repeating_workorder?:
|
|
4795
|
+
parent_repeating_workorder?: StringId;
|
|
4772
4796
|
due_date_day?: string;
|
|
4773
4797
|
last_done_at: number;
|
|
4774
4798
|
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -4777,6 +4801,11 @@ export namespace Service {
|
|
|
4777
4801
|
opened_at: number;
|
|
4778
4802
|
time: number;
|
|
4779
4803
|
opened_by: AdminCreator | RepCreator | ClientCreator;
|
|
4804
|
+
teams?: StringId[];
|
|
4805
|
+
media?: StringId[];
|
|
4806
|
+
cover_photo?: StringId;
|
|
4807
|
+
custom_status?: StringId;
|
|
4808
|
+
contract?: StringId;
|
|
4780
4809
|
}
|
|
4781
4810
|
export interface UpdateBody {
|
|
4782
4811
|
company_namespace: string[];
|
|
@@ -4823,6 +4852,11 @@ export namespace Service {
|
|
|
4823
4852
|
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
4824
4853
|
resolve_time: number;
|
|
4825
4854
|
sync_id?: string;
|
|
4855
|
+
teams?: StringId[];
|
|
4856
|
+
media?: StringId[];
|
|
4857
|
+
cover_photo?: StringId;
|
|
4858
|
+
custom_status?: StringId;
|
|
4859
|
+
contract?: StringId;
|
|
4826
4860
|
}
|
|
4827
4861
|
type SortingKeys =
|
|
4828
4862
|
| "due_date"
|
|
@@ -5096,9 +5130,9 @@ export namespace Service {
|
|
|
5096
5130
|
skip_promos?: boolean;
|
|
5097
5131
|
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5098
5132
|
partially_returned_from?: StringId;
|
|
5099
|
-
partially_returned_to?: StringId;
|
|
5133
|
+
partially_returned_to?: StringId[];
|
|
5100
5134
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5101
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
5135
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5102
5136
|
discount_amount_float?: number;
|
|
5103
5137
|
net_total?: number;
|
|
5104
5138
|
tax_amount_after_deduction_float?: number;
|
|
@@ -5284,9 +5318,9 @@ export namespace Service {
|
|
|
5284
5318
|
skip_promos?: boolean;
|
|
5285
5319
|
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5286
5320
|
partially_returned_from?: StringId;
|
|
5287
|
-
partially_returned_to?: StringId;
|
|
5321
|
+
partially_returned_to?: StringId[];
|
|
5288
5322
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5289
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
5323
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5290
5324
|
discount_amount_float?: number;
|
|
5291
5325
|
net_total?: number;
|
|
5292
5326
|
tax_amount_after_deduction_float?: number;
|