repzo 1.0.102 → 1.0.104
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/index.d.ts +25 -27
- package/lib/index.js +2 -1
- package/lib/types/index.d.ts +398 -10
- package/package.json +1 -1
- package/src/types/index.ts +302 -12
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/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
Params,
|
|
3
|
-
Data,
|
|
4
2
|
Service,
|
|
5
3
|
Options,
|
|
6
4
|
Headers,
|
|
@@ -993,9 +991,9 @@ export default class Repzo {
|
|
|
993
991
|
status: Service.ActionLogs.Status;
|
|
994
992
|
error?: any;
|
|
995
993
|
start_time: number;
|
|
996
|
-
end_time?: number
|
|
997
|
-
total_time?: number
|
|
998
|
-
company_namespace?: NameSpaces
|
|
994
|
+
end_time?: number;
|
|
995
|
+
total_time?: number;
|
|
996
|
+
company_namespace?: NameSpaces;
|
|
999
997
|
body?: any;
|
|
1000
998
|
meta?: any;
|
|
1001
999
|
message: string;
|
|
@@ -1003,12 +1001,12 @@ export default class Repzo {
|
|
|
1003
1001
|
sync_id: string;
|
|
1004
1002
|
isOld: boolean;
|
|
1005
1003
|
superThis: Repzo;
|
|
1006
|
-
load(sync_id: string): Promise
|
|
1007
|
-
setStatus(status: Service.ActionLogs.Status, error?: any): any;
|
|
1008
|
-
setBody(body: any): any;
|
|
1009
|
-
setMeta(meta: any): any;
|
|
1010
|
-
commit(): Promise
|
|
1011
|
-
addDetail(detail: string, meta?: any): any;
|
|
1004
|
+
load(sync_id: string): Promise</*elided*/ any>;
|
|
1005
|
+
setStatus(status: Service.ActionLogs.Status, error?: any): /*elided*/ any;
|
|
1006
|
+
setBody(body: any): /*elided*/ any;
|
|
1007
|
+
setMeta(meta: any): /*elided*/ any;
|
|
1008
|
+
commit(): Promise</*elided*/ any>;
|
|
1009
|
+
addDetail(detail: string, meta?: any): /*elided*/ any;
|
|
1012
1010
|
};
|
|
1013
1011
|
};
|
|
1014
1012
|
static CommandLog: {
|
|
@@ -1026,8 +1024,8 @@ export default class Repzo {
|
|
|
1026
1024
|
status: Service.CommandLog.Status;
|
|
1027
1025
|
error?: any;
|
|
1028
1026
|
start_time: number;
|
|
1029
|
-
end_time?: number
|
|
1030
|
-
total_time?: number
|
|
1027
|
+
end_time?: number;
|
|
1028
|
+
total_time?: number;
|
|
1031
1029
|
company_namespace: NameSpaces;
|
|
1032
1030
|
body?: any;
|
|
1033
1031
|
sync_details: {
|
|
@@ -1047,24 +1045,24 @@ export default class Repzo {
|
|
|
1047
1045
|
details: Service.CommandLog.Detail[];
|
|
1048
1046
|
sync_id: string;
|
|
1049
1047
|
isOld: boolean;
|
|
1050
|
-
priority?: number
|
|
1048
|
+
priority?: number;
|
|
1051
1049
|
isPrioritized: boolean;
|
|
1052
1050
|
retries: number;
|
|
1053
|
-
queuedAt?: Date
|
|
1054
|
-
failedAt?: Date
|
|
1055
|
-
succeededAt?: Date
|
|
1056
|
-
skippedAt?: Date
|
|
1057
|
-
receivedAt?: Date
|
|
1058
|
-
processedAt?: Date
|
|
1051
|
+
queuedAt?: Date;
|
|
1052
|
+
failedAt?: Date;
|
|
1053
|
+
succeededAt?: Date;
|
|
1054
|
+
skippedAt?: Date;
|
|
1055
|
+
receivedAt?: Date;
|
|
1056
|
+
processedAt?: Date;
|
|
1059
1057
|
onGoing: boolean;
|
|
1060
|
-
trigger?: string
|
|
1058
|
+
trigger?: string;
|
|
1061
1059
|
superThis: Repzo;
|
|
1062
|
-
load(sync_id?: string, retries?: number): Promise
|
|
1063
|
-
setStatus(status: Service.CommandLog.Status, error?: any): any;
|
|
1064
|
-
setBody(body: any): any;
|
|
1065
|
-
setMeta(meta: any): any;
|
|
1066
|
-
commit(): Promise
|
|
1067
|
-
addDetail(detail: string, meta?: any): any;
|
|
1060
|
+
load(sync_id?: string, retries?: number): Promise</*elided*/ any>;
|
|
1061
|
+
setStatus(status: Service.CommandLog.Status, error?: any): /*elided*/ any;
|
|
1062
|
+
setBody(body: any): /*elided*/ any;
|
|
1063
|
+
setMeta(meta: any): /*elided*/ any;
|
|
1064
|
+
commit(): Promise</*elided*/ any>;
|
|
1065
|
+
addDetail(detail: string, meta?: any): /*elided*/ any;
|
|
1068
1066
|
};
|
|
1069
1067
|
};
|
|
1070
1068
|
patchAction: {
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
2
|
import { v4 as uuid } from "uuid";
|
|
3
|
-
|
|
3
|
+
class Repzo {
|
|
4
4
|
constructor(apiKey, options) {
|
|
5
5
|
this._end_points = {
|
|
6
6
|
CLIENT: "client",
|
|
@@ -2703,3 +2703,4 @@ Repzo.CommandLog = class {
|
|
|
2703
2703
|
return this;
|
|
2704
2704
|
}
|
|
2705
2705
|
};
|
|
2706
|
+
export default Repzo;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4702,6 +4702,91 @@ export declare namespace Service {
|
|
|
4702
4702
|
media_populated?: MediaPopulated;
|
|
4703
4703
|
cover_photo_populated?: MediaPopulated;
|
|
4704
4704
|
}
|
|
4705
|
+
export interface CreateBody {
|
|
4706
|
+
company_namespace: string[];
|
|
4707
|
+
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
4708
|
+
name: string;
|
|
4709
|
+
local_name?: string;
|
|
4710
|
+
description?: string;
|
|
4711
|
+
disabled?: boolean;
|
|
4712
|
+
integration_meta?: {
|
|
4713
|
+
[key: string]: any;
|
|
4714
|
+
};
|
|
4715
|
+
status: WorkorderStatus;
|
|
4716
|
+
assets?: string[];
|
|
4717
|
+
asset_units?: string[];
|
|
4718
|
+
asset_part_units?: StringId[];
|
|
4719
|
+
workorder_categories: string[];
|
|
4720
|
+
due_date?: number;
|
|
4721
|
+
start_date?: number;
|
|
4722
|
+
client_location: string;
|
|
4723
|
+
priority?: Priority;
|
|
4724
|
+
priority_human?: Priority_human;
|
|
4725
|
+
client: string;
|
|
4726
|
+
client_name?: string;
|
|
4727
|
+
serial_number?: SerialNumber;
|
|
4728
|
+
workorder_request?: string;
|
|
4729
|
+
assigned_to?: string[];
|
|
4730
|
+
forms?: string[];
|
|
4731
|
+
calendars: Calendar[];
|
|
4732
|
+
parent_repeating_workorder?: string;
|
|
4733
|
+
due_date_day?: string;
|
|
4734
|
+
last_done_at: number;
|
|
4735
|
+
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
4736
|
+
resolve_time: number;
|
|
4737
|
+
sync_id: string;
|
|
4738
|
+
opened_at: number;
|
|
4739
|
+
time: number;
|
|
4740
|
+
opened_by: AdminCreator | RepCreator | ClientCreator;
|
|
4741
|
+
}
|
|
4742
|
+
export interface UpdateBody {
|
|
4743
|
+
company_namespace: string[];
|
|
4744
|
+
_id?: string;
|
|
4745
|
+
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
4746
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
4747
|
+
name?: string;
|
|
4748
|
+
local_name?: string;
|
|
4749
|
+
description?: string;
|
|
4750
|
+
disabled?: boolean;
|
|
4751
|
+
integration_meta?: {
|
|
4752
|
+
[key: string]: any;
|
|
4753
|
+
};
|
|
4754
|
+
status: WorkorderStatus;
|
|
4755
|
+
assets?: string[];
|
|
4756
|
+
asset_units?: string[];
|
|
4757
|
+
asset_part_units?: StringId[];
|
|
4758
|
+
workorder_categories: string[];
|
|
4759
|
+
due_date?: number;
|
|
4760
|
+
start_date?: number;
|
|
4761
|
+
client_location: string;
|
|
4762
|
+
priority?: Priority;
|
|
4763
|
+
priority_human?: Priority_human;
|
|
4764
|
+
client: string;
|
|
4765
|
+
client_name?: string;
|
|
4766
|
+
workorder_request?: string;
|
|
4767
|
+
createdAt?: Date;
|
|
4768
|
+
updatedAt?: Date;
|
|
4769
|
+
serial_number?: SerialNumber;
|
|
4770
|
+
assigned_to?: string[];
|
|
4771
|
+
forms?: string[];
|
|
4772
|
+
time: number;
|
|
4773
|
+
is_overdue: boolean;
|
|
4774
|
+
opened_at: number;
|
|
4775
|
+
done_at: number;
|
|
4776
|
+
cancelled_at: number;
|
|
4777
|
+
inprogress_at: number;
|
|
4778
|
+
done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4779
|
+
cancelled_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4780
|
+
opened_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4781
|
+
inprogress_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4782
|
+
calendars: Calendar[];
|
|
4783
|
+
parent_repeating_workorder?: string;
|
|
4784
|
+
due_date_day?: string;
|
|
4785
|
+
last_done_at: number;
|
|
4786
|
+
last_done_by: AdminCreator | RepCreator | ClientCreator;
|
|
4787
|
+
resolve_time: number;
|
|
4788
|
+
sync_id?: string;
|
|
4789
|
+
}
|
|
4705
4790
|
type SortingKeys =
|
|
4706
4791
|
| "due_date"
|
|
4707
4792
|
| "priority"
|
|
@@ -4783,7 +4868,7 @@ export declare namespace Service {
|
|
|
4783
4868
|
content?: string;
|
|
4784
4869
|
sync_id: string;
|
|
4785
4870
|
}
|
|
4786
|
-
interface CreateBody {
|
|
4871
|
+
export interface CreateBody {
|
|
4787
4872
|
document_id?: string[];
|
|
4788
4873
|
document_type: PrintTypes;
|
|
4789
4874
|
sync_id: string;
|
|
@@ -4835,11 +4920,13 @@ export declare namespace Service {
|
|
|
4835
4920
|
comment?: string;
|
|
4836
4921
|
return_comment?: string;
|
|
4837
4922
|
creator: AdminCreator | RepCreator | ClientCreator;
|
|
4923
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4838
4924
|
latest?: boolean;
|
|
4839
4925
|
version?: number;
|
|
4840
4926
|
time?: number;
|
|
4841
4927
|
issue_date: string;
|
|
4842
4928
|
delivery_date?: string;
|
|
4929
|
+
business_day?: string;
|
|
4843
4930
|
currency: string;
|
|
4844
4931
|
serial_number: SerialNumber;
|
|
4845
4932
|
geo_tag?: {
|
|
@@ -4954,8 +5041,107 @@ export declare namespace Service {
|
|
|
4954
5041
|
createdAt: string;
|
|
4955
5042
|
updatedAt: string;
|
|
4956
5043
|
__v: number;
|
|
5044
|
+
transaction_processed: boolean;
|
|
5045
|
+
advanced_serial_number?: string;
|
|
5046
|
+
ubl_qr?: string;
|
|
5047
|
+
ubl_uuid?: string;
|
|
5048
|
+
ubl_id?: string;
|
|
5049
|
+
ubl_reported_time?: number;
|
|
5050
|
+
ubl_reported?: boolean;
|
|
5051
|
+
ubl_clearance_qr?: string;
|
|
5052
|
+
ubl_clearance_time?: number;
|
|
5053
|
+
ubl_clearance?: boolean;
|
|
5054
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5055
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5056
|
+
ubl_invoice_counter_number?: number;
|
|
5057
|
+
simulation_ubl_reported_time?: number;
|
|
5058
|
+
simulation_ubl_reported?: boolean;
|
|
5059
|
+
simulation_ubl_clearance_time?: number;
|
|
5060
|
+
simulation_ubl_clearance?: boolean;
|
|
5061
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5062
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5063
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5064
|
+
simulation_ubl_qr?: string;
|
|
5065
|
+
simulation_reporting_status?: boolean;
|
|
5066
|
+
production_reporting_status?: boolean;
|
|
5067
|
+
skip_promos?: boolean;
|
|
5068
|
+
skipped_promotions?: {
|
|
5069
|
+
_id: StringId;
|
|
5070
|
+
name?: string;
|
|
5071
|
+
ref?: string;
|
|
5072
|
+
}[];
|
|
5073
|
+
partially_returned_from?: StringId;
|
|
5074
|
+
partially_returned_to?: StringId;
|
|
5075
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5076
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5077
|
+
discount_amount_float?: number;
|
|
5078
|
+
net_total?: number;
|
|
5079
|
+
tax_amount_after_deduction_float?: number;
|
|
5080
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5081
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5082
|
+
total_float?: number;
|
|
5083
|
+
total_float_rounded?: number;
|
|
5084
|
+
total_float_rounded_sum?: number;
|
|
5085
|
+
total_before_tax?: number;
|
|
5086
|
+
taxable_amount_float?: number;
|
|
5087
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5088
|
+
taxable_amount_float_rounded?: number;
|
|
5089
|
+
pre_discount_amount_float?: number;
|
|
5090
|
+
pre_net_total?: number;
|
|
5091
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5092
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5093
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5094
|
+
pre_total_float?: number;
|
|
5095
|
+
pre_total_float_rounded?: number;
|
|
5096
|
+
pre_total_float_rounded_sum?: number;
|
|
5097
|
+
pre_total_before_tax?: number;
|
|
5098
|
+
pre_taxable_amount_float?: number;
|
|
5099
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5100
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5101
|
+
return_discount_amount_float?: number;
|
|
5102
|
+
return_net_total?: number;
|
|
5103
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5104
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5105
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5106
|
+
return_total_float?: number;
|
|
5107
|
+
return_total_float_rounded?: number;
|
|
5108
|
+
return_total_float_rounded_sum?: number;
|
|
5109
|
+
return_total_before_tax?: number;
|
|
5110
|
+
return_taxable_amount_float?: number;
|
|
5111
|
+
return_taxable_amount_float_rounded?: number;
|
|
5112
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5113
|
+
totalDeductedTaxFloat?: number;
|
|
5114
|
+
totalDeductionFloat?: number;
|
|
5115
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5116
|
+
totalAfterDeductionFloat?: number;
|
|
5117
|
+
lines_discount?: number;
|
|
5118
|
+
lines_discount_float?: number;
|
|
5119
|
+
total_word?: string;
|
|
5120
|
+
total_local_word?: string;
|
|
5121
|
+
workorder?: StringId;
|
|
5122
|
+
asset?: StringId;
|
|
5123
|
+
asset_unit?: StringId;
|
|
5124
|
+
signature?: StringId;
|
|
5125
|
+
media?: StringId[];
|
|
5126
|
+
total_items_base_unit_qty?: number;
|
|
5127
|
+
total_return_items_base_unit_qty?: number;
|
|
5128
|
+
total_items_qty?: number;
|
|
5129
|
+
total_return_items_qty?: number;
|
|
5130
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5131
|
+
client_geo_location?: {
|
|
5132
|
+
lat: number;
|
|
5133
|
+
lng: number;
|
|
5134
|
+
};
|
|
5135
|
+
network_state?: number;
|
|
5136
|
+
platform?: string;
|
|
5137
|
+
version_name?: string;
|
|
5138
|
+
battery_level?: number;
|
|
5139
|
+
time_zone?: string;
|
|
5140
|
+
identifier?: number;
|
|
5141
|
+
device_id?: string;
|
|
5142
|
+
device_unique_id?: string;
|
|
4957
5143
|
}
|
|
4958
|
-
interface CreateBody {
|
|
5144
|
+
export interface CreateBody {
|
|
4959
5145
|
items?: Item.Body[];
|
|
4960
5146
|
return_items?: Item.Body[];
|
|
4961
5147
|
integration_meta?: {
|
|
@@ -5060,8 +5246,109 @@ export declare namespace Service {
|
|
|
5060
5246
|
payment?: {
|
|
5061
5247
|
amount?: number;
|
|
5062
5248
|
};
|
|
5249
|
+
transaction_processed: boolean;
|
|
5250
|
+
advanced_serial_number?: string;
|
|
5251
|
+
ubl_qr?: string;
|
|
5252
|
+
ubl_uuid?: string;
|
|
5253
|
+
ubl_id?: string;
|
|
5254
|
+
ubl_reported_time?: number;
|
|
5255
|
+
ubl_reported?: boolean;
|
|
5256
|
+
ubl_clearance_qr?: string;
|
|
5257
|
+
ubl_clearance_time?: number;
|
|
5258
|
+
ubl_clearance?: boolean;
|
|
5259
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5260
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5261
|
+
ubl_invoice_counter_number?: number;
|
|
5262
|
+
simulation_ubl_reported_time?: number;
|
|
5263
|
+
simulation_ubl_reported?: boolean;
|
|
5264
|
+
simulation_ubl_clearance_time?: number;
|
|
5265
|
+
simulation_ubl_clearance?: boolean;
|
|
5266
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5267
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5268
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5269
|
+
simulation_ubl_qr?: string;
|
|
5270
|
+
simulation_reporting_status?: boolean;
|
|
5271
|
+
production_reporting_status?: boolean;
|
|
5272
|
+
skip_promos?: boolean;
|
|
5273
|
+
skipped_promotions?: {
|
|
5274
|
+
_id: StringId;
|
|
5275
|
+
name?: string;
|
|
5276
|
+
ref?: string;
|
|
5277
|
+
}[];
|
|
5278
|
+
partially_returned_from?: StringId;
|
|
5279
|
+
partially_returned_to?: StringId;
|
|
5280
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5281
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5282
|
+
discount_amount_float?: number;
|
|
5283
|
+
net_total?: number;
|
|
5284
|
+
tax_amount_after_deduction_float?: number;
|
|
5285
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5286
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5287
|
+
total_float?: number;
|
|
5288
|
+
total_float_rounded?: number;
|
|
5289
|
+
total_float_rounded_sum?: number;
|
|
5290
|
+
total_before_tax?: number;
|
|
5291
|
+
taxable_amount_float?: number;
|
|
5292
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5293
|
+
taxable_amount_float_rounded?: number;
|
|
5294
|
+
pre_discount_amount_float?: number;
|
|
5295
|
+
pre_net_total?: number;
|
|
5296
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5297
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5298
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5299
|
+
pre_total_float?: number;
|
|
5300
|
+
pre_total_float_rounded?: number;
|
|
5301
|
+
pre_total_float_rounded_sum?: number;
|
|
5302
|
+
pre_total_before_tax?: number;
|
|
5303
|
+
pre_taxable_amount_float?: number;
|
|
5304
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5305
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5306
|
+
return_discount_amount_float?: number;
|
|
5307
|
+
return_net_total?: number;
|
|
5308
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5309
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5310
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5311
|
+
return_total_float?: number;
|
|
5312
|
+
return_total_float_rounded?: number;
|
|
5313
|
+
return_total_float_rounded_sum?: number;
|
|
5314
|
+
return_total_before_tax?: number;
|
|
5315
|
+
return_taxable_amount_float?: number;
|
|
5316
|
+
return_taxable_amount_float_rounded?: number;
|
|
5317
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5318
|
+
totalDeductedTaxFloat?: number;
|
|
5319
|
+
totalDeductionFloat?: number;
|
|
5320
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5321
|
+
totalAfterDeductionFloat?: number;
|
|
5322
|
+
lines_discount?: number;
|
|
5323
|
+
lines_discount_float?: number;
|
|
5324
|
+
total_word?: string;
|
|
5325
|
+
total_local_word?: string;
|
|
5326
|
+
workorder?: StringId;
|
|
5327
|
+
asset?: StringId;
|
|
5328
|
+
asset_unit?: StringId;
|
|
5329
|
+
signature?: StringId;
|
|
5330
|
+
media?: StringId[];
|
|
5331
|
+
total_items_base_unit_qty?: number;
|
|
5332
|
+
total_return_items_base_unit_qty?: number;
|
|
5333
|
+
total_items_qty?: number;
|
|
5334
|
+
total_return_items_qty?: number;
|
|
5335
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5336
|
+
client_geo_location?: {
|
|
5337
|
+
lat: number;
|
|
5338
|
+
lng: number;
|
|
5339
|
+
};
|
|
5340
|
+
network_state?: number;
|
|
5341
|
+
platform?: string;
|
|
5342
|
+
version_name?: string;
|
|
5343
|
+
battery_level?: number;
|
|
5344
|
+
time_zone?: string;
|
|
5345
|
+
identifier?: number;
|
|
5346
|
+
device_id?: string;
|
|
5347
|
+
device_unique_id?: string;
|
|
5348
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5349
|
+
business_day?: string;
|
|
5063
5350
|
}
|
|
5064
|
-
interface UpdateBody {
|
|
5351
|
+
export interface UpdateBody {
|
|
5065
5352
|
integration_meta?: {
|
|
5066
5353
|
[key: string]: any;
|
|
5067
5354
|
};
|
|
@@ -5351,6 +5638,107 @@ export declare namespace Service {
|
|
|
5351
5638
|
client_id?: string | Client.ClientSchema;
|
|
5352
5639
|
custom_status?: string | CustomStatus.CustomStatusSchema;
|
|
5353
5640
|
tax_number?: string | Pick<Client.ClientSchema, "_id" | "tax_number">;
|
|
5641
|
+
transaction_processed: boolean;
|
|
5642
|
+
advanced_serial_number?: string;
|
|
5643
|
+
ubl_qr?: string;
|
|
5644
|
+
ubl_uuid?: string;
|
|
5645
|
+
ubl_id?: string;
|
|
5646
|
+
ubl_reported_time?: number;
|
|
5647
|
+
ubl_reported?: boolean;
|
|
5648
|
+
ubl_clearance_qr?: string;
|
|
5649
|
+
ubl_clearance_time?: number;
|
|
5650
|
+
ubl_clearance?: boolean;
|
|
5651
|
+
ubl_invoice_type?: "simplified" | "standard";
|
|
5652
|
+
ubl_reporting_type?: "report" | "clearance";
|
|
5653
|
+
ubl_invoice_counter_number?: number;
|
|
5654
|
+
simulation_ubl_reported_time?: number;
|
|
5655
|
+
simulation_ubl_reported?: boolean;
|
|
5656
|
+
simulation_ubl_clearance_time?: number;
|
|
5657
|
+
simulation_ubl_clearance?: boolean;
|
|
5658
|
+
simulation_ubl_invoice_type?: "simplified" | "standard";
|
|
5659
|
+
simulation_ubl_reporting_type?: "report" | "clearance";
|
|
5660
|
+
simulation_ubl_invoice_counter_number?: number;
|
|
5661
|
+
simulation_ubl_qr?: string;
|
|
5662
|
+
simulation_reporting_status?: boolean;
|
|
5663
|
+
production_reporting_status?: boolean;
|
|
5664
|
+
skip_promos?: boolean;
|
|
5665
|
+
skipped_promotions?: {
|
|
5666
|
+
_id: StringId;
|
|
5667
|
+
name?: string;
|
|
5668
|
+
ref?: string;
|
|
5669
|
+
}[];
|
|
5670
|
+
partially_returned_from?: StringId;
|
|
5671
|
+
partially_returned_to?: StringId;
|
|
5672
|
+
partially_returned_from_serial_number?: SerialNumber;
|
|
5673
|
+
partially_returned_to_serial_number?: SerialNumber;
|
|
5674
|
+
discount_amount_float?: number;
|
|
5675
|
+
net_total?: number;
|
|
5676
|
+
tax_amount_after_deduction_float?: number;
|
|
5677
|
+
tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5678
|
+
tax_amount_after_deduction_float_rounded?: number;
|
|
5679
|
+
total_float?: number;
|
|
5680
|
+
total_float_rounded?: number;
|
|
5681
|
+
total_float_rounded_sum?: number;
|
|
5682
|
+
total_before_tax?: number;
|
|
5683
|
+
taxable_amount_float?: number;
|
|
5684
|
+
taxable_amount_float_rounded_sum?: number;
|
|
5685
|
+
taxable_amount_float_rounded?: number;
|
|
5686
|
+
pre_discount_amount_float?: number;
|
|
5687
|
+
pre_net_total?: number;
|
|
5688
|
+
pre_tax_amount_after_deduction_float?: number;
|
|
5689
|
+
pre_tax_amount_after_deduction_float_rounded?: number;
|
|
5690
|
+
pre_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5691
|
+
pre_total_float?: number;
|
|
5692
|
+
pre_total_float_rounded?: number;
|
|
5693
|
+
pre_total_float_rounded_sum?: number;
|
|
5694
|
+
pre_total_before_tax?: number;
|
|
5695
|
+
pre_taxable_amount_float?: number;
|
|
5696
|
+
pre_taxable_amount_float_rounded?: number;
|
|
5697
|
+
pre_taxable_amount_float_rounded_sum?: number;
|
|
5698
|
+
return_discount_amount_float?: number;
|
|
5699
|
+
return_net_total?: number;
|
|
5700
|
+
return_tax_amount_after_deduction_float?: number;
|
|
5701
|
+
return_tax_amount_after_deduction_float_rounded?: number;
|
|
5702
|
+
return_tax_amount_after_deduction_float_rounded_sum?: number;
|
|
5703
|
+
return_total_float?: number;
|
|
5704
|
+
return_total_float_rounded?: number;
|
|
5705
|
+
return_total_float_rounded_sum?: number;
|
|
5706
|
+
return_total_before_tax?: number;
|
|
5707
|
+
return_taxable_amount_float?: number;
|
|
5708
|
+
return_taxable_amount_float_rounded?: number;
|
|
5709
|
+
return_taxable_amount_float_rounded_sum?: number;
|
|
5710
|
+
totalDeductedTaxFloat?: number;
|
|
5711
|
+
totalDeductionFloat?: number;
|
|
5712
|
+
totalDeductionBeforeTaxFloat?: number;
|
|
5713
|
+
totalAfterDeductionFloat?: number;
|
|
5714
|
+
lines_discount?: number;
|
|
5715
|
+
lines_discount_float?: number;
|
|
5716
|
+
total_word?: string;
|
|
5717
|
+
total_local_word?: string;
|
|
5718
|
+
workorder?: StringId;
|
|
5719
|
+
asset?: StringId;
|
|
5720
|
+
asset_unit?: StringId;
|
|
5721
|
+
signature?: PopulatedMediaStorage;
|
|
5722
|
+
media?: PopulatedMediaStorage[];
|
|
5723
|
+
total_items_base_unit_qty?: number;
|
|
5724
|
+
total_return_items_base_unit_qty?: number;
|
|
5725
|
+
total_items_qty?: number;
|
|
5726
|
+
total_return_items_qty?: number;
|
|
5727
|
+
invoice_payment_type?: "cash" | "credit";
|
|
5728
|
+
client_geo_location?: {
|
|
5729
|
+
lat: number;
|
|
5730
|
+
lng: number;
|
|
5731
|
+
};
|
|
5732
|
+
network_state?: number;
|
|
5733
|
+
platform?: string;
|
|
5734
|
+
version_name?: string;
|
|
5735
|
+
battery_level?: number;
|
|
5736
|
+
time_zone?: string;
|
|
5737
|
+
identifier?: number;
|
|
5738
|
+
device_id?: string;
|
|
5739
|
+
device_unique_id?: string;
|
|
5740
|
+
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5741
|
+
business_day?: string;
|
|
5354
5742
|
};
|
|
5355
5743
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
5356
5744
|
type PopulatedKeys =
|
|
@@ -5529,7 +5917,7 @@ export declare namespace Service {
|
|
|
5529
5917
|
updatedAt: string;
|
|
5530
5918
|
__v: number;
|
|
5531
5919
|
}
|
|
5532
|
-
interface CreateBody {
|
|
5920
|
+
export interface CreateBody {
|
|
5533
5921
|
items: Item.Schema[];
|
|
5534
5922
|
return_items?: Item.Schema[];
|
|
5535
5923
|
integration_meta?: {
|
|
@@ -5632,7 +6020,7 @@ export declare namespace Service {
|
|
|
5632
6020
|
payment_charge?: number;
|
|
5633
6021
|
total_with_charges?: number;
|
|
5634
6022
|
}
|
|
5635
|
-
interface UpdateBody {
|
|
6023
|
+
export interface UpdateBody {
|
|
5636
6024
|
_id?: string;
|
|
5637
6025
|
items?: Item.Schema[];
|
|
5638
6026
|
return_items?: Item.Schema[];
|
|
@@ -6031,7 +6419,7 @@ export declare namespace Service {
|
|
|
6031
6419
|
updatedAt: string;
|
|
6032
6420
|
__v: number;
|
|
6033
6421
|
}
|
|
6034
|
-
interface CreateBody {
|
|
6422
|
+
export interface CreateBody {
|
|
6035
6423
|
amount: number;
|
|
6036
6424
|
client_id: string;
|
|
6037
6425
|
client_name: string;
|
|
@@ -6062,7 +6450,7 @@ export declare namespace Service {
|
|
|
6062
6450
|
visit_id?: string;
|
|
6063
6451
|
teams?: string[];
|
|
6064
6452
|
}
|
|
6065
|
-
interface UpdateBody {
|
|
6453
|
+
export interface UpdateBody {
|
|
6066
6454
|
integration_meta?: {
|
|
6067
6455
|
[key: string]: any;
|
|
6068
6456
|
};
|
|
@@ -6176,7 +6564,7 @@ export declare namespace Service {
|
|
|
6176
6564
|
updatedAt: string;
|
|
6177
6565
|
__v: number;
|
|
6178
6566
|
}
|
|
6179
|
-
interface CreateBody {
|
|
6567
|
+
export interface CreateBody {
|
|
6180
6568
|
amount: number;
|
|
6181
6569
|
client_id: string;
|
|
6182
6570
|
client_name: string;
|
|
@@ -6207,7 +6595,7 @@ export declare namespace Service {
|
|
|
6207
6595
|
visit_id?: string;
|
|
6208
6596
|
teams?: string[];
|
|
6209
6597
|
}
|
|
6210
|
-
interface UpdateBody {
|
|
6598
|
+
export interface UpdateBody {
|
|
6211
6599
|
integration_meta?: {
|
|
6212
6600
|
[key: string]: any;
|
|
6213
6601
|
};
|
|
@@ -6963,7 +7351,7 @@ export declare namespace Service {
|
|
|
6963
7351
|
updatedAt: string;
|
|
6964
7352
|
__v: number;
|
|
6965
7353
|
}
|
|
6966
|
-
interface CreateBody {
|
|
7354
|
+
export interface CreateBody {
|
|
6967
7355
|
serial_number?: SerialNumber;
|
|
6968
7356
|
time: number;
|
|
6969
7357
|
type?: TransferType;
|
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;
|
|
@@ -4733,7 +4736,7 @@ export namespace Service {
|
|
|
4733
4736
|
media_populated?: MediaPopulated;
|
|
4734
4737
|
cover_photo_populated?: MediaPopulated;
|
|
4735
4738
|
}
|
|
4736
|
-
interface CreateBody {
|
|
4739
|
+
export interface CreateBody {
|
|
4737
4740
|
company_namespace: string[];
|
|
4738
4741
|
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
4739
4742
|
name: string;
|
|
@@ -4768,7 +4771,7 @@ export namespace Service {
|
|
|
4768
4771
|
time: number;
|
|
4769
4772
|
opened_by: AdminCreator | RepCreator | ClientCreator;
|
|
4770
4773
|
}
|
|
4771
|
-
interface UpdateBody {
|
|
4774
|
+
export interface UpdateBody {
|
|
4772
4775
|
company_namespace: string[];
|
|
4773
4776
|
_id?: string;
|
|
4774
4777
|
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -4895,7 +4898,7 @@ export namespace Service {
|
|
|
4895
4898
|
content?: string;
|
|
4896
4899
|
sync_id: string;
|
|
4897
4900
|
}
|
|
4898
|
-
interface CreateBody {
|
|
4901
|
+
export interface CreateBody {
|
|
4899
4902
|
document_id?: string[];
|
|
4900
4903
|
document_type: PrintTypes;
|
|
4901
4904
|
sync_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,8 +5063,100 @@ 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
|
-
interface CreateBody {
|
|
5159
|
+
export interface CreateBody {
|
|
5063
5160
|
items?: Item.Body[];
|
|
5064
5161
|
return_items?: Item.Body[];
|
|
5065
5162
|
integration_meta?: { [key: string]: any };
|
|
@@ -5154,8 +5251,102 @@ 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
|
-
interface UpdateBody {
|
|
5349
|
+
export interface UpdateBody {
|
|
5159
5350
|
integration_meta?: { [key: string]: any };
|
|
5160
5351
|
issue_date?: string;
|
|
5161
5352
|
}
|
|
@@ -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";
|
|
@@ -5584,7 +5869,7 @@ export namespace Service {
|
|
|
5584
5869
|
updatedAt: string;
|
|
5585
5870
|
__v: number;
|
|
5586
5871
|
}
|
|
5587
|
-
interface CreateBody {
|
|
5872
|
+
export interface CreateBody {
|
|
5588
5873
|
items: Item.Schema[];
|
|
5589
5874
|
return_items?: Item.Schema[];
|
|
5590
5875
|
integration_meta?: { [key: string]: any };
|
|
@@ -5679,7 +5964,7 @@ export namespace Service {
|
|
|
5679
5964
|
payment_charge?: number;
|
|
5680
5965
|
total_with_charges?: number;
|
|
5681
5966
|
}
|
|
5682
|
-
interface UpdateBody {
|
|
5967
|
+
export interface UpdateBody {
|
|
5683
5968
|
_id?: string;
|
|
5684
5969
|
items?: Item.Schema[];
|
|
5685
5970
|
return_items?: Item.Schema[];
|
|
@@ -6048,7 +6333,7 @@ export namespace Service {
|
|
|
6048
6333
|
updatedAt: string;
|
|
6049
6334
|
__v: number;
|
|
6050
6335
|
}
|
|
6051
|
-
interface CreateBody {
|
|
6336
|
+
export interface CreateBody {
|
|
6052
6337
|
amount: number;
|
|
6053
6338
|
client_id: string;
|
|
6054
6339
|
client_name: string;
|
|
@@ -6077,7 +6362,7 @@ export namespace Service {
|
|
|
6077
6362
|
visit_id?: string;
|
|
6078
6363
|
teams?: string[];
|
|
6079
6364
|
}
|
|
6080
|
-
interface UpdateBody {
|
|
6365
|
+
export interface UpdateBody {
|
|
6081
6366
|
integration_meta?: { [key: string]: any };
|
|
6082
6367
|
}
|
|
6083
6368
|
|
|
@@ -6189,7 +6474,7 @@ export namespace Service {
|
|
|
6189
6474
|
updatedAt: string;
|
|
6190
6475
|
__v: number;
|
|
6191
6476
|
}
|
|
6192
|
-
interface CreateBody {
|
|
6477
|
+
export interface CreateBody {
|
|
6193
6478
|
amount: number;
|
|
6194
6479
|
client_id: string;
|
|
6195
6480
|
client_name: string;
|
|
@@ -6218,7 +6503,7 @@ export namespace Service {
|
|
|
6218
6503
|
visit_id?: string;
|
|
6219
6504
|
teams?: string[];
|
|
6220
6505
|
}
|
|
6221
|
-
interface UpdateBody {
|
|
6506
|
+
export interface UpdateBody {
|
|
6222
6507
|
integration_meta?: { [key: string]: any };
|
|
6223
6508
|
}
|
|
6224
6509
|
|
|
@@ -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 {
|
|
@@ -6959,7 +7246,7 @@ export namespace Service {
|
|
|
6959
7246
|
updatedAt: string;
|
|
6960
7247
|
__v: number;
|
|
6961
7248
|
}
|
|
6962
|
-
interface CreateBody {
|
|
7249
|
+
export interface CreateBody {
|
|
6963
7250
|
serial_number?: SerialNumber;
|
|
6964
7251
|
time: number;
|
|
6965
7252
|
type?: TransferType;
|
|
@@ -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;
|