repzo 1.0.102 → 1.0.103
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/changelog.md +1 -0
- package/lib/types/index.d.ts +315 -12
- package/package.json +1 -1
- package/src/types/index.ts +290 -0
package/changelog.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
- add: asset-part-type, asset-part, asset-part-unit, asset-part-transfer, asset-part-receival, return-asset-part-unit & store-asset-part-unit @maramalshen
|
|
8
8
|
- update adjustInventory @maramalshen
|
|
9
|
+
- update FullInvoice with ubl keys @maramalshen
|
|
9
10
|
|
|
10
11
|
### Changed
|
|
11
12
|
|
package/lib/types/index.d.ts
CHANGED
|
@@ -200,21 +200,21 @@ export interface Build {
|
|
|
200
200
|
list: List[];
|
|
201
201
|
start_date?: number | undefined;
|
|
202
202
|
}
|
|
203
|
-
export type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
203
|
+
export declare type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
204
204
|
export interface Route {
|
|
205
205
|
disabled: boolean;
|
|
206
206
|
list: List[];
|
|
207
207
|
_id: string;
|
|
208
208
|
}
|
|
209
|
-
export type Priority = 0 | 1 | 2 | 3;
|
|
210
|
-
export type WorkorderStatus =
|
|
209
|
+
export declare type Priority = 0 | 1 | 2 | 3;
|
|
210
|
+
export declare type WorkorderStatus =
|
|
211
211
|
| "open"
|
|
212
212
|
| "done"
|
|
213
213
|
| "cancelled"
|
|
214
214
|
| "inprogress"
|
|
215
215
|
| "onhold";
|
|
216
|
-
export type Priority_human = "none" | "low" | "medium" | "high";
|
|
217
|
-
export type Day =
|
|
216
|
+
export declare type Priority_human = "none" | "low" | "medium" | "high";
|
|
217
|
+
export declare type Day =
|
|
218
218
|
| "Sun"
|
|
219
219
|
| "Mon"
|
|
220
220
|
| "Tue"
|
|
@@ -223,7 +223,7 @@ export type Day =
|
|
|
223
223
|
| "Fri"
|
|
224
224
|
| "Sat"
|
|
225
225
|
| string;
|
|
226
|
-
export type FieldType =
|
|
226
|
+
export declare type FieldType =
|
|
227
227
|
| "Text"
|
|
228
228
|
| "String"
|
|
229
229
|
| "Date"
|
|
@@ -269,7 +269,7 @@ export interface CalendarWeeklyGroup {
|
|
|
269
269
|
note?: string;
|
|
270
270
|
_id: string;
|
|
271
271
|
}
|
|
272
|
-
export type Model =
|
|
272
|
+
export declare type Model =
|
|
273
273
|
| "quickConvertToPdf"
|
|
274
274
|
| "warehouses"
|
|
275
275
|
| "transfers"
|
|
@@ -294,7 +294,7 @@ export type Model =
|
|
|
294
294
|
| "activities"
|
|
295
295
|
| "bigReports"
|
|
296
296
|
| "admins";
|
|
297
|
-
export type DocumentTypes =
|
|
297
|
+
export declare type DocumentTypes =
|
|
298
298
|
| "form"
|
|
299
299
|
| "quickConvertToPdf"
|
|
300
300
|
| "clients"
|
|
@@ -338,7 +338,7 @@ export type DocumentTypes =
|
|
|
338
338
|
| "retailExecutionPreset"
|
|
339
339
|
| "paymentMethod"
|
|
340
340
|
| "approvalRequest";
|
|
341
|
-
export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
341
|
+
export declare type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
342
342
|
export interface MediaDoc {
|
|
343
343
|
_id?: string;
|
|
344
344
|
media_id: string;
|
|
@@ -4835,11 +4835,13 @@ export declare namespace Service {
|
|
|
4835
4835
|
comment?: string;
|
|
4836
4836
|
return_comment?: string;
|
|
4837
4837
|
creator: AdminCreator | RepCreator | ClientCreator;
|
|
4838
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4838
4839
|
latest?: boolean;
|
|
4839
4840
|
version?: number;
|
|
4840
4841
|
time?: number;
|
|
4841
4842
|
issue_date: string;
|
|
4842
4843
|
delivery_date?: string;
|
|
4844
|
+
business_day?: string;
|
|
4843
4845
|
currency: string;
|
|
4844
4846
|
serial_number: SerialNumber;
|
|
4845
4847
|
geo_tag?: {
|
|
@@ -4954,6 +4956,105 @@ export declare namespace Service {
|
|
|
4954
4956
|
createdAt: string;
|
|
4955
4957
|
updatedAt: string;
|
|
4956
4958
|
__v: number;
|
|
4959
|
+
transaction_processed: boolean;
|
|
4960
|
+
advanced_serial_number?: string;
|
|
4961
|
+
ubl_qr?: string;
|
|
4962
|
+
ubl_uuid?: string;
|
|
4963
|
+
ubl_id?: string;
|
|
4964
|
+
ubl_reported_time?: number;
|
|
4965
|
+
ubl_reported?: boolean;
|
|
4966
|
+
ubl_clearance_qr?: string;
|
|
4967
|
+
ubl_clearance_time?: number;
|
|
4968
|
+
ubl_clearance?: boolean;
|
|
4969
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
4970
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
4971
|
+
ubl_invoice_counter_number?: number;
|
|
4972
|
+
simulation_ubl_reported_time?: number;
|
|
4973
|
+
simulation_ubl_reported?: boolean;
|
|
4974
|
+
simulation_ubl_clearance_time?: number;
|
|
4975
|
+
simulation_ubl_clearance?: boolean;
|
|
4976
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
4977
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
4978
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
4979
|
+
simulation_ubl_qr?: string;
|
|
4980
|
+
simulation_reporting_status?: boolean;
|
|
4981
|
+
production_reporting_status?: boolean;
|
|
4982
|
+
skip_promos?: boolean;
|
|
4983
|
+
skipped_promotions?: {
|
|
4984
|
+
_id: StringId;
|
|
4985
|
+
name?: string;
|
|
4986
|
+
ref?: string;
|
|
4987
|
+
}[];
|
|
4988
|
+
partially_returned_from?: StringId;
|
|
4989
|
+
partially_returned_to?: StringId;
|
|
4990
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
4991
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
4992
|
+
discount_amount_float?: number;
|
|
4993
|
+
net_total?: number;
|
|
4994
|
+
tax_amount_after_deduction_float?: number;
|
|
4995
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
4996
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
4997
|
+
total_float?: number;
|
|
4998
|
+
total_float_rounded?: number;
|
|
4999
|
+
total_float_rounded_sum?: number;
|
|
5000
|
+
total_before_tax?: number;
|
|
5001
|
+
taxable_amount_float?: number;
|
|
5002
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5003
|
+
taxable_amount_float_rounded?: number;
|
|
5004
|
+
pre_discount_amount_float?: number;
|
|
5005
|
+
pre_net_total?: number;
|
|
5006
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5007
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5008
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5009
|
+
pre_total_float?: number;
|
|
5010
|
+
pre_total_float_rounded?: number;
|
|
5011
|
+
pre_total_float_rounded_sum?: number;
|
|
5012
|
+
pre_total_before_tax?: number;
|
|
5013
|
+
pre_taxable_amount_float?: number;
|
|
5014
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5015
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5016
|
+
return_discount_amount_float?: number;
|
|
5017
|
+
return_net_total?: number;
|
|
5018
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5019
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5020
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5021
|
+
return_total_float?: number;
|
|
5022
|
+
return_total_float_rounded?: number;
|
|
5023
|
+
return_total_float_rounded_sum?: number;
|
|
5024
|
+
return_total_before_tax?: number;
|
|
5025
|
+
return_taxable_amount_float?: number;
|
|
5026
|
+
return_taxable_amount_float_rounded?: number;
|
|
5027
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5028
|
+
totalDeductedTaxFloat?: number;
|
|
5029
|
+
totalDeductionFloat?: number;
|
|
5030
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5031
|
+
totalAfterDeductionFloat?: number;
|
|
5032
|
+
lines_discount?: number;
|
|
5033
|
+
lines_discount_float?: number;
|
|
5034
|
+
total_word?: string;
|
|
5035
|
+
total_local_word?: string;
|
|
5036
|
+
workorder?: StringId;
|
|
5037
|
+
asset?: StringId;
|
|
5038
|
+
asset_unit?: StringId;
|
|
5039
|
+
signature?: StringId;
|
|
5040
|
+
media?: StringId[];
|
|
5041
|
+
total_items_base_unit_qty?: number;
|
|
5042
|
+
total_return_items_base_unit_qty?: number;
|
|
5043
|
+
total_items_qty?: number;
|
|
5044
|
+
total_return_items_qty?: number;
|
|
5045
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5046
|
+
client_geo_location?: {
|
|
5047
|
+
lat: number;
|
|
5048
|
+
lng: number;
|
|
5049
|
+
};
|
|
5050
|
+
network_state?: number;
|
|
5051
|
+
platform?: string;
|
|
5052
|
+
version_name?: string;
|
|
5053
|
+
battery_level?: number;
|
|
5054
|
+
time_zone?: string;
|
|
5055
|
+
identifier?: number;
|
|
5056
|
+
device_id?: string;
|
|
5057
|
+
device_unique_id?: string;
|
|
4957
5058
|
}
|
|
4958
5059
|
interface CreateBody {
|
|
4959
5060
|
items?: Item.Body[];
|
|
@@ -5060,6 +5161,107 @@ export declare namespace Service {
|
|
|
5060
5161
|
payment?: {
|
|
5061
5162
|
amount?: number;
|
|
5062
5163
|
};
|
|
5164
|
+
transaction_processed: boolean;
|
|
5165
|
+
advanced_serial_number?: string;
|
|
5166
|
+
ubl_qr?: string;
|
|
5167
|
+
ubl_uuid?: string;
|
|
5168
|
+
ubl_id?: string;
|
|
5169
|
+
ubl_reported_time?: number;
|
|
5170
|
+
ubl_reported?: boolean;
|
|
5171
|
+
ubl_clearance_qr?: string;
|
|
5172
|
+
ubl_clearance_time?: number;
|
|
5173
|
+
ubl_clearance?: boolean;
|
|
5174
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5175
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5176
|
+
ubl_invoice_counter_number?: number;
|
|
5177
|
+
simulation_ubl_reported_time?: number;
|
|
5178
|
+
simulation_ubl_reported?: boolean;
|
|
5179
|
+
simulation_ubl_clearance_time?: number;
|
|
5180
|
+
simulation_ubl_clearance?: boolean;
|
|
5181
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5182
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5183
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5184
|
+
simulation_ubl_qr?: string;
|
|
5185
|
+
simulation_reporting_status?: boolean;
|
|
5186
|
+
production_reporting_status?: boolean;
|
|
5187
|
+
skip_promos?: boolean;
|
|
5188
|
+
skipped_promotions?: {
|
|
5189
|
+
_id: StringId;
|
|
5190
|
+
name?: string;
|
|
5191
|
+
ref?: string;
|
|
5192
|
+
}[];
|
|
5193
|
+
partially_returned_from?: StringId;
|
|
5194
|
+
partially_returned_to?: StringId;
|
|
5195
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5196
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5197
|
+
discount_amount_float?: number;
|
|
5198
|
+
net_total?: number;
|
|
5199
|
+
tax_amount_after_deduction_float?: number;
|
|
5200
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5201
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5202
|
+
total_float?: number;
|
|
5203
|
+
total_float_rounded?: number;
|
|
5204
|
+
total_float_rounded_sum?: number;
|
|
5205
|
+
total_before_tax?: number;
|
|
5206
|
+
taxable_amount_float?: number;
|
|
5207
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5208
|
+
taxable_amount_float_rounded?: number;
|
|
5209
|
+
pre_discount_amount_float?: number;
|
|
5210
|
+
pre_net_total?: number;
|
|
5211
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5212
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5213
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5214
|
+
pre_total_float?: number;
|
|
5215
|
+
pre_total_float_rounded?: number;
|
|
5216
|
+
pre_total_float_rounded_sum?: number;
|
|
5217
|
+
pre_total_before_tax?: number;
|
|
5218
|
+
pre_taxable_amount_float?: number;
|
|
5219
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5220
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5221
|
+
return_discount_amount_float?: number;
|
|
5222
|
+
return_net_total?: number;
|
|
5223
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5224
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5225
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5226
|
+
return_total_float?: number;
|
|
5227
|
+
return_total_float_rounded?: number;
|
|
5228
|
+
return_total_float_rounded_sum?: number;
|
|
5229
|
+
return_total_before_tax?: number;
|
|
5230
|
+
return_taxable_amount_float?: number;
|
|
5231
|
+
return_taxable_amount_float_rounded?: number;
|
|
5232
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5233
|
+
totalDeductedTaxFloat?: number;
|
|
5234
|
+
totalDeductionFloat?: number;
|
|
5235
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5236
|
+
totalAfterDeductionFloat?: number;
|
|
5237
|
+
lines_discount?: number;
|
|
5238
|
+
lines_discount_float?: number;
|
|
5239
|
+
total_word?: string;
|
|
5240
|
+
total_local_word?: string;
|
|
5241
|
+
workorder?: StringId;
|
|
5242
|
+
asset?: StringId;
|
|
5243
|
+
asset_unit?: StringId;
|
|
5244
|
+
signature?: StringId;
|
|
5245
|
+
media?: StringId[];
|
|
5246
|
+
total_items_base_unit_qty?: number;
|
|
5247
|
+
total_return_items_base_unit_qty?: number;
|
|
5248
|
+
total_items_qty?: number;
|
|
5249
|
+
total_return_items_qty?: number;
|
|
5250
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5251
|
+
client_geo_location?: {
|
|
5252
|
+
lat: number;
|
|
5253
|
+
lng: number;
|
|
5254
|
+
};
|
|
5255
|
+
network_state?: number;
|
|
5256
|
+
platform?: string;
|
|
5257
|
+
version_name?: string;
|
|
5258
|
+
battery_level?: number;
|
|
5259
|
+
time_zone?: string;
|
|
5260
|
+
identifier?: number;
|
|
5261
|
+
device_id?: string;
|
|
5262
|
+
device_unique_id?: string;
|
|
5263
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5264
|
+
business_day?: string;
|
|
5063
5265
|
}
|
|
5064
5266
|
interface UpdateBody {
|
|
5065
5267
|
integration_meta?: {
|
|
@@ -5351,6 +5553,107 @@ export declare namespace Service {
|
|
|
5351
5553
|
client_id?: string | Client.ClientSchema;
|
|
5352
5554
|
custom_status?: string | CustomStatus.CustomStatusSchema;
|
|
5353
5555
|
tax_number?: string | Pick<Client.ClientSchema, "_id" | "tax_number">;
|
|
5556
|
+
transaction_processed: boolean;
|
|
5557
|
+
advanced_serial_number?: string;
|
|
5558
|
+
ubl_qr?: string;
|
|
5559
|
+
ubl_uuid?: string;
|
|
5560
|
+
ubl_id?: string;
|
|
5561
|
+
ubl_reported_time?: number;
|
|
5562
|
+
ubl_reported?: boolean;
|
|
5563
|
+
ubl_clearance_qr?: string;
|
|
5564
|
+
ubl_clearance_time?: number;
|
|
5565
|
+
ubl_clearance?: boolean;
|
|
5566
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5567
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5568
|
+
ubl_invoice_counter_number?: number;
|
|
5569
|
+
simulation_ubl_reported_time?: number;
|
|
5570
|
+
simulation_ubl_reported?: boolean;
|
|
5571
|
+
simulation_ubl_clearance_time?: number;
|
|
5572
|
+
simulation_ubl_clearance?: boolean;
|
|
5573
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5574
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5575
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5576
|
+
simulation_ubl_qr?: string;
|
|
5577
|
+
simulation_reporting_status?: boolean;
|
|
5578
|
+
production_reporting_status?: boolean;
|
|
5579
|
+
skip_promos?: boolean;
|
|
5580
|
+
skipped_promotions?: {
|
|
5581
|
+
_id: StringId;
|
|
5582
|
+
name?: string;
|
|
5583
|
+
ref?: string;
|
|
5584
|
+
}[];
|
|
5585
|
+
partially_returned_from?: StringId;
|
|
5586
|
+
partially_returned_to?: StringId;
|
|
5587
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5588
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5589
|
+
discount_amount_float?: number;
|
|
5590
|
+
net_total?: number;
|
|
5591
|
+
tax_amount_after_deduction_float?: number;
|
|
5592
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5593
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5594
|
+
total_float?: number;
|
|
5595
|
+
total_float_rounded?: number;
|
|
5596
|
+
total_float_rounded_sum?: number;
|
|
5597
|
+
total_before_tax?: number;
|
|
5598
|
+
taxable_amount_float?: number;
|
|
5599
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5600
|
+
taxable_amount_float_rounded?: number;
|
|
5601
|
+
pre_discount_amount_float?: number;
|
|
5602
|
+
pre_net_total?: number;
|
|
5603
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5604
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5605
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5606
|
+
pre_total_float?: number;
|
|
5607
|
+
pre_total_float_rounded?: number;
|
|
5608
|
+
pre_total_float_rounded_sum?: number;
|
|
5609
|
+
pre_total_before_tax?: number;
|
|
5610
|
+
pre_taxable_amount_float?: number;
|
|
5611
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5612
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5613
|
+
return_discount_amount_float?: number;
|
|
5614
|
+
return_net_total?: number;
|
|
5615
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5616
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5617
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5618
|
+
return_total_float?: number;
|
|
5619
|
+
return_total_float_rounded?: number;
|
|
5620
|
+
return_total_float_rounded_sum?: number;
|
|
5621
|
+
return_total_before_tax?: number;
|
|
5622
|
+
return_taxable_amount_float?: number;
|
|
5623
|
+
return_taxable_amount_float_rounded?: number;
|
|
5624
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5625
|
+
totalDeductedTaxFloat?: number;
|
|
5626
|
+
totalDeductionFloat?: number;
|
|
5627
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5628
|
+
totalAfterDeductionFloat?: number;
|
|
5629
|
+
lines_discount?: number;
|
|
5630
|
+
lines_discount_float?: number;
|
|
5631
|
+
total_word?: string;
|
|
5632
|
+
total_local_word?: string;
|
|
5633
|
+
workorder?: StringId;
|
|
5634
|
+
asset?: StringId;
|
|
5635
|
+
asset_unit?: StringId;
|
|
5636
|
+
signature?: PopulatedMediaStorage;
|
|
5637
|
+
media?: PopulatedMediaStorage[];
|
|
5638
|
+
total_items_base_unit_qty?: number;
|
|
5639
|
+
total_return_items_base_unit_qty?: number;
|
|
5640
|
+
total_items_qty?: number;
|
|
5641
|
+
total_return_items_qty?: number;
|
|
5642
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5643
|
+
client_geo_location?: {
|
|
5644
|
+
lat: number;
|
|
5645
|
+
lng: number;
|
|
5646
|
+
};
|
|
5647
|
+
network_state?: number;
|
|
5648
|
+
platform?: string;
|
|
5649
|
+
version_name?: string;
|
|
5650
|
+
battery_level?: number;
|
|
5651
|
+
time_zone?: string;
|
|
5652
|
+
identifier?: number;
|
|
5653
|
+
device_id?: string;
|
|
5654
|
+
device_unique_id?: string;
|
|
5655
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5656
|
+
business_day?: string;
|
|
5354
5657
|
};
|
|
5355
5658
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
5356
5659
|
type PopulatedKeys =
|
|
@@ -10932,8 +11235,8 @@ export declare namespace Service {
|
|
|
10932
11235
|
}
|
|
10933
11236
|
}
|
|
10934
11237
|
}
|
|
10935
|
-
export type StringId = string;
|
|
10936
|
-
export type NameSpaces = string[];
|
|
11238
|
+
export declare type StringId = string;
|
|
11239
|
+
export declare type NameSpaces = string[];
|
|
10937
11240
|
export interface AdminOrRep {
|
|
10938
11241
|
_id: StringId;
|
|
10939
11242
|
name?: string;
|
|
@@ -10948,7 +11251,7 @@ interface ValidityCheck {
|
|
|
10948
11251
|
code: string;
|
|
10949
11252
|
}[];
|
|
10950
11253
|
}
|
|
10951
|
-
type PopulatedMediaStorage = Pick<
|
|
11254
|
+
declare type PopulatedMediaStorage = Pick<
|
|
10952
11255
|
Service.MediaStorage.MediaStorageSchema,
|
|
10953
11256
|
| "_id"
|
|
10954
11257
|
| "createdAt"
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -3254,6 +3254,7 @@ export namespace Service {
|
|
|
3254
3254
|
export type Result = ChannelSchema;
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
|
+
|
|
3257
3258
|
export namespace Speciality {
|
|
3258
3259
|
export interface SpecialitySchema {
|
|
3259
3260
|
_id: string;
|
|
@@ -3316,6 +3317,7 @@ export namespace Service {
|
|
|
3316
3317
|
export type Result = SpecialitySchema;
|
|
3317
3318
|
}
|
|
3318
3319
|
}
|
|
3320
|
+
|
|
3319
3321
|
export namespace ClientContact {
|
|
3320
3322
|
export interface ClientContactSchema {
|
|
3321
3323
|
_id: string;
|
|
@@ -3395,6 +3397,7 @@ export namespace Service {
|
|
|
3395
3397
|
export type Result = ClientContactSchema;
|
|
3396
3398
|
}
|
|
3397
3399
|
}
|
|
3400
|
+
|
|
3398
3401
|
export namespace PaymentTerm {
|
|
3399
3402
|
export interface PaymentTermSchema {
|
|
3400
3403
|
_id: string;
|
|
@@ -4947,11 +4950,13 @@ export namespace Service {
|
|
|
4947
4950
|
comment?: string;
|
|
4948
4951
|
return_comment?: string;
|
|
4949
4952
|
creator: AdminCreator | RepCreator | ClientCreator;
|
|
4953
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4950
4954
|
latest?: boolean;
|
|
4951
4955
|
version?: number;
|
|
4952
4956
|
time?: number;
|
|
4953
4957
|
issue_date: string;
|
|
4954
4958
|
delivery_date?: string;
|
|
4959
|
+
business_day?: string;
|
|
4955
4960
|
currency: string;
|
|
4956
4961
|
serial_number: SerialNumber;
|
|
4957
4962
|
geo_tag?: {
|
|
@@ -5058,6 +5063,98 @@ export namespace Service {
|
|
|
5058
5063
|
createdAt: string;
|
|
5059
5064
|
updatedAt: string;
|
|
5060
5065
|
__v: number;
|
|
5066
|
+
transaction_processed: boolean;
|
|
5067
|
+
advanced_serial_number?: string;
|
|
5068
|
+
ubl_qr?: string;
|
|
5069
|
+
ubl_uuid?: string;
|
|
5070
|
+
ubl_id?: string;
|
|
5071
|
+
ubl_reported_time?: number;
|
|
5072
|
+
ubl_reported?: boolean;
|
|
5073
|
+
ubl_clearance_qr?: string;
|
|
5074
|
+
ubl_clearance_time?: number;
|
|
5075
|
+
ubl_clearance?: boolean;
|
|
5076
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5077
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5078
|
+
ubl_invoice_counter_number?: number;
|
|
5079
|
+
simulation_ubl_reported_time?: number;
|
|
5080
|
+
simulation_ubl_reported?: boolean;
|
|
5081
|
+
simulation_ubl_clearance_time?: number;
|
|
5082
|
+
simulation_ubl_clearance?: boolean;
|
|
5083
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5084
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5085
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5086
|
+
simulation_ubl_qr?: string;
|
|
5087
|
+
simulation_reporting_status?: boolean;
|
|
5088
|
+
production_reporting_status?: boolean;
|
|
5089
|
+
skip_promos?: boolean;
|
|
5090
|
+
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5091
|
+
partially_returned_from?: StringId;
|
|
5092
|
+
partially_returned_to?: StringId;
|
|
5093
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5094
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5095
|
+
discount_amount_float?: number;
|
|
5096
|
+
net_total?: number;
|
|
5097
|
+
tax_amount_after_deduction_float?: number;
|
|
5098
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5099
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5100
|
+
total_float?: number;
|
|
5101
|
+
total_float_rounded?: number;
|
|
5102
|
+
total_float_rounded_sum?: number;
|
|
5103
|
+
total_before_tax?: number;
|
|
5104
|
+
taxable_amount_float?: number;
|
|
5105
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5106
|
+
taxable_amount_float_rounded?: number;
|
|
5107
|
+
pre_discount_amount_float?: number;
|
|
5108
|
+
pre_net_total?: number;
|
|
5109
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5110
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5111
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5112
|
+
pre_total_float?: number;
|
|
5113
|
+
pre_total_float_rounded?: number;
|
|
5114
|
+
pre_total_float_rounded_sum?: number;
|
|
5115
|
+
pre_total_before_tax?: number;
|
|
5116
|
+
pre_taxable_amount_float?: number;
|
|
5117
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5118
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5119
|
+
return_discount_amount_float?: number;
|
|
5120
|
+
return_net_total?: number;
|
|
5121
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5122
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5123
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5124
|
+
return_total_float?: number;
|
|
5125
|
+
return_total_float_rounded?: number;
|
|
5126
|
+
return_total_float_rounded_sum?: number;
|
|
5127
|
+
return_total_before_tax?: number;
|
|
5128
|
+
return_taxable_amount_float?: number;
|
|
5129
|
+
return_taxable_amount_float_rounded?: number;
|
|
5130
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5131
|
+
totalDeductedTaxFloat?: number;
|
|
5132
|
+
totalDeductionFloat?: number;
|
|
5133
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5134
|
+
totalAfterDeductionFloat?: number;
|
|
5135
|
+
lines_discount?: number;
|
|
5136
|
+
lines_discount_float?: number;
|
|
5137
|
+
total_word?: string;
|
|
5138
|
+
total_local_word?: string;
|
|
5139
|
+
workorder?: StringId;
|
|
5140
|
+
asset?: StringId;
|
|
5141
|
+
asset_unit?: StringId;
|
|
5142
|
+
signature?: StringId;
|
|
5143
|
+
media?: StringId[];
|
|
5144
|
+
total_items_base_unit_qty?: number;
|
|
5145
|
+
total_return_items_base_unit_qty?: number;
|
|
5146
|
+
total_items_qty?: number;
|
|
5147
|
+
total_return_items_qty?: number;
|
|
5148
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5149
|
+
client_geo_location?: { lat: number; lng: number };
|
|
5150
|
+
network_state?: number;
|
|
5151
|
+
platform?: string;
|
|
5152
|
+
version_name?: string;
|
|
5153
|
+
battery_level?: number;
|
|
5154
|
+
time_zone?: string;
|
|
5155
|
+
identifier?: number;
|
|
5156
|
+
device_id?: string;
|
|
5157
|
+
device_unique_id?: string;
|
|
5061
5158
|
}
|
|
5062
5159
|
interface CreateBody {
|
|
5063
5160
|
items?: Item.Body[];
|
|
@@ -5154,6 +5251,100 @@ export namespace Service {
|
|
|
5154
5251
|
payment_charge?: number;
|
|
5155
5252
|
total_with_charges?: number;
|
|
5156
5253
|
payment?: { amount?: number };
|
|
5254
|
+
transaction_processed: boolean;
|
|
5255
|
+
advanced_serial_number?: string;
|
|
5256
|
+
ubl_qr?: string;
|
|
5257
|
+
ubl_uuid?: string;
|
|
5258
|
+
ubl_id?: string;
|
|
5259
|
+
ubl_reported_time?: number;
|
|
5260
|
+
ubl_reported?: boolean;
|
|
5261
|
+
ubl_clearance_qr?: string;
|
|
5262
|
+
ubl_clearance_time?: number;
|
|
5263
|
+
ubl_clearance?: boolean;
|
|
5264
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5265
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5266
|
+
ubl_invoice_counter_number?: number;
|
|
5267
|
+
simulation_ubl_reported_time?: number;
|
|
5268
|
+
simulation_ubl_reported?: boolean;
|
|
5269
|
+
simulation_ubl_clearance_time?: number;
|
|
5270
|
+
simulation_ubl_clearance?: boolean;
|
|
5271
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5272
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5273
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5274
|
+
simulation_ubl_qr?: string;
|
|
5275
|
+
simulation_reporting_status?: boolean;
|
|
5276
|
+
production_reporting_status?: boolean;
|
|
5277
|
+
skip_promos?: boolean;
|
|
5278
|
+
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5279
|
+
partially_returned_from?: StringId;
|
|
5280
|
+
partially_returned_to?: StringId;
|
|
5281
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5282
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5283
|
+
discount_amount_float?: number;
|
|
5284
|
+
net_total?: number;
|
|
5285
|
+
tax_amount_after_deduction_float?: number;
|
|
5286
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5287
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5288
|
+
total_float?: number;
|
|
5289
|
+
total_float_rounded?: number;
|
|
5290
|
+
total_float_rounded_sum?: number;
|
|
5291
|
+
total_before_tax?: number;
|
|
5292
|
+
taxable_amount_float?: number;
|
|
5293
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5294
|
+
taxable_amount_float_rounded?: number;
|
|
5295
|
+
pre_discount_amount_float?: number;
|
|
5296
|
+
pre_net_total?: number;
|
|
5297
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5298
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5299
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5300
|
+
pre_total_float?: number;
|
|
5301
|
+
pre_total_float_rounded?: number;
|
|
5302
|
+
pre_total_float_rounded_sum?: number;
|
|
5303
|
+
pre_total_before_tax?: number;
|
|
5304
|
+
pre_taxable_amount_float?: number;
|
|
5305
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5306
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5307
|
+
return_discount_amount_float?: number;
|
|
5308
|
+
return_net_total?: number;
|
|
5309
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5310
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5311
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5312
|
+
return_total_float?: number;
|
|
5313
|
+
return_total_float_rounded?: number;
|
|
5314
|
+
return_total_float_rounded_sum?: number;
|
|
5315
|
+
return_total_before_tax?: number;
|
|
5316
|
+
return_taxable_amount_float?: number;
|
|
5317
|
+
return_taxable_amount_float_rounded?: number;
|
|
5318
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5319
|
+
totalDeductedTaxFloat?: number;
|
|
5320
|
+
totalDeductionFloat?: number;
|
|
5321
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5322
|
+
totalAfterDeductionFloat?: number;
|
|
5323
|
+
lines_discount?: number;
|
|
5324
|
+
lines_discount_float?: number;
|
|
5325
|
+
total_word?: string;
|
|
5326
|
+
total_local_word?: string;
|
|
5327
|
+
workorder?: StringId;
|
|
5328
|
+
asset?: StringId;
|
|
5329
|
+
asset_unit?: StringId;
|
|
5330
|
+
signature?: StringId;
|
|
5331
|
+
media?: StringId[];
|
|
5332
|
+
total_items_base_unit_qty?: number;
|
|
5333
|
+
total_return_items_base_unit_qty?: number;
|
|
5334
|
+
total_items_qty?: number;
|
|
5335
|
+
total_return_items_qty?: number;
|
|
5336
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5337
|
+
client_geo_location?: { lat: number; lng: number };
|
|
5338
|
+
network_state?: number;
|
|
5339
|
+
platform?: string;
|
|
5340
|
+
version_name?: string;
|
|
5341
|
+
battery_level?: number;
|
|
5342
|
+
time_zone?: string;
|
|
5343
|
+
identifier?: number;
|
|
5344
|
+
device_id?: string;
|
|
5345
|
+
device_unique_id?: string;
|
|
5346
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5347
|
+
business_day?: string;
|
|
5157
5348
|
}
|
|
5158
5349
|
interface UpdateBody {
|
|
5159
5350
|
integration_meta?: { [key: string]: any };
|
|
@@ -5410,6 +5601,100 @@ export namespace Service {
|
|
|
5410
5601
|
client_id?: string | Client.ClientSchema;
|
|
5411
5602
|
custom_status?: string | CustomStatus.CustomStatusSchema;
|
|
5412
5603
|
tax_number?: string | Pick<Client.ClientSchema, "_id" | "tax_number">;
|
|
5604
|
+
transaction_processed: boolean;
|
|
5605
|
+
advanced_serial_number?: string;
|
|
5606
|
+
ubl_qr?: string;
|
|
5607
|
+
ubl_uuid?: string;
|
|
5608
|
+
ubl_id?: string;
|
|
5609
|
+
ubl_reported_time?: number;
|
|
5610
|
+
ubl_reported?: boolean;
|
|
5611
|
+
ubl_clearance_qr?: string;
|
|
5612
|
+
ubl_clearance_time?: number;
|
|
5613
|
+
ubl_clearance?: boolean;
|
|
5614
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5615
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5616
|
+
ubl_invoice_counter_number?: number;
|
|
5617
|
+
simulation_ubl_reported_time?: number;
|
|
5618
|
+
simulation_ubl_reported?: boolean;
|
|
5619
|
+
simulation_ubl_clearance_time?: number;
|
|
5620
|
+
simulation_ubl_clearance?: boolean;
|
|
5621
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5622
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5623
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5624
|
+
simulation_ubl_qr?: string;
|
|
5625
|
+
simulation_reporting_status?: boolean;
|
|
5626
|
+
production_reporting_status?: boolean;
|
|
5627
|
+
skip_promos?: boolean;
|
|
5628
|
+
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
5629
|
+
partially_returned_from?: StringId;
|
|
5630
|
+
partially_returned_to?: StringId;
|
|
5631
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5632
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5633
|
+
discount_amount_float?: number;
|
|
5634
|
+
net_total?: number;
|
|
5635
|
+
tax_amount_after_deduction_float?: number;
|
|
5636
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5637
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5638
|
+
total_float?: number;
|
|
5639
|
+
total_float_rounded?: number;
|
|
5640
|
+
total_float_rounded_sum?: number;
|
|
5641
|
+
total_before_tax?: number;
|
|
5642
|
+
taxable_amount_float?: number;
|
|
5643
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5644
|
+
taxable_amount_float_rounded?: number;
|
|
5645
|
+
pre_discount_amount_float?: number;
|
|
5646
|
+
pre_net_total?: number;
|
|
5647
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5648
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5649
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5650
|
+
pre_total_float?: number;
|
|
5651
|
+
pre_total_float_rounded?: number;
|
|
5652
|
+
pre_total_float_rounded_sum?: number;
|
|
5653
|
+
pre_total_before_tax?: number;
|
|
5654
|
+
pre_taxable_amount_float?: number;
|
|
5655
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5656
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5657
|
+
return_discount_amount_float?: number;
|
|
5658
|
+
return_net_total?: number;
|
|
5659
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5660
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5661
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5662
|
+
return_total_float?: number;
|
|
5663
|
+
return_total_float_rounded?: number;
|
|
5664
|
+
return_total_float_rounded_sum?: number;
|
|
5665
|
+
return_total_before_tax?: number;
|
|
5666
|
+
return_taxable_amount_float?: number;
|
|
5667
|
+
return_taxable_amount_float_rounded?: number;
|
|
5668
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5669
|
+
totalDeductedTaxFloat?: number;
|
|
5670
|
+
totalDeductionFloat?: number;
|
|
5671
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5672
|
+
totalAfterDeductionFloat?: number;
|
|
5673
|
+
lines_discount?: number;
|
|
5674
|
+
lines_discount_float?: number;
|
|
5675
|
+
total_word?: string;
|
|
5676
|
+
total_local_word?: string;
|
|
5677
|
+
workorder?: StringId;
|
|
5678
|
+
asset?: StringId;
|
|
5679
|
+
asset_unit?: StringId;
|
|
5680
|
+
signature?: PopulatedMediaStorage;
|
|
5681
|
+
media?: PopulatedMediaStorage[];
|
|
5682
|
+
total_items_base_unit_qty?: number;
|
|
5683
|
+
total_return_items_base_unit_qty?: number;
|
|
5684
|
+
total_items_qty?: number;
|
|
5685
|
+
total_return_items_qty?: number;
|
|
5686
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5687
|
+
client_geo_location?: { lat: number; lng: number };
|
|
5688
|
+
network_state?: number;
|
|
5689
|
+
platform?: string;
|
|
5690
|
+
version_name?: string;
|
|
5691
|
+
battery_level?: number;
|
|
5692
|
+
time_zone?: string;
|
|
5693
|
+
identifier?: number;
|
|
5694
|
+
device_id?: string;
|
|
5695
|
+
device_unique_id?: string;
|
|
5696
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5697
|
+
business_day?: string;
|
|
5413
5698
|
};
|
|
5414
5699
|
|
|
5415
5700
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
@@ -6814,6 +7099,7 @@ export namespace Service {
|
|
|
6814
7099
|
export type Result = ReceivingMaterialSchema;
|
|
6815
7100
|
}
|
|
6816
7101
|
}
|
|
7102
|
+
|
|
6817
7103
|
export namespace Supplier {
|
|
6818
7104
|
export interface SupplierSchema {
|
|
6819
7105
|
_id: string;
|
|
@@ -6877,6 +7163,7 @@ export namespace Service {
|
|
|
6877
7163
|
export type Result = SupplierSchema;
|
|
6878
7164
|
}
|
|
6879
7165
|
}
|
|
7166
|
+
|
|
6880
7167
|
export namespace Cycle {
|
|
6881
7168
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
|
6882
7169
|
export interface Schema {
|
|
@@ -7497,6 +7784,7 @@ export namespace Service {
|
|
|
7497
7784
|
export type Result = Data;
|
|
7498
7785
|
}
|
|
7499
7786
|
}
|
|
7787
|
+
|
|
7500
7788
|
export namespace Inventory {
|
|
7501
7789
|
export interface InventorySchema {
|
|
7502
7790
|
_id: string;
|
|
@@ -7755,6 +8043,7 @@ export namespace Service {
|
|
|
7755
8043
|
export type Result = Schema;
|
|
7756
8044
|
}
|
|
7757
8045
|
}
|
|
8046
|
+
|
|
7758
8047
|
export namespace JoinActionsWeHook {
|
|
7759
8048
|
interface JoinData {
|
|
7760
8049
|
app: string;
|
|
@@ -7772,6 +8061,7 @@ export namespace Service {
|
|
|
7772
8061
|
data: JoinData[];
|
|
7773
8062
|
}
|
|
7774
8063
|
}
|
|
8064
|
+
|
|
7775
8065
|
export namespace App {
|
|
7776
8066
|
export interface Schema {
|
|
7777
8067
|
_id: string;
|