@chift/chift-nodejs 1.0.9 → 1.0.11

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.
@@ -13,6 +13,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
13
13
  api: string;
14
14
  data?: Record<string, never> | undefined;
15
15
  status: "active" | "inactive";
16
+ agent?: {
17
+ status: "up" | "down";
18
+ } | undefined;
16
19
  }[]>;
17
20
  createConnection: (body?: components['schemas']['PostConnectionItem']) => Promise<{
18
21
  url: string;
@@ -23,6 +26,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
23
26
  deleteConnection: (connectionId: string) => Promise<{
24
27
  content: never;
25
28
  }>;
29
+ enableFlow: (syncId: string, flowId: string, body: components['schemas']['EnableFlowConsumer']) => Promise<SimpleResponseModel>;
26
30
  getSyncUrl: (body: components['schemas']['CreateConsumerSyncItem']) => Promise<{
27
31
  url: string;
28
32
  }>;
@@ -69,12 +73,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
69
73
  total: number;
70
74
  tax_amount: number;
71
75
  tax_rate?: number | undefined;
72
- description: string;
76
+ description?: string | undefined;
73
77
  discounts?: {
74
78
  name?: string | undefined;
75
79
  total: number;
76
80
  }[] | undefined;
77
81
  product_id?: string | undefined;
82
+ accounting_category_id?: string | undefined;
78
83
  }[];
79
84
  payments: {
80
85
  id?: string | undefined;
@@ -116,6 +121,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
116
121
  country?: string | undefined;
117
122
  }[] | undefined;
118
123
  loyalty?: number | undefined;
124
+ birthdate?: string | undefined;
119
125
  }[]>;
120
126
  getOrder(orderId: string): import("../types/api").RequestData<{
121
127
  id: string;
@@ -136,12 +142,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
136
142
  total: number;
137
143
  tax_amount: number;
138
144
  tax_rate?: number | undefined;
139
- description: string;
145
+ description?: string | undefined;
140
146
  discounts?: {
141
147
  name?: string | undefined;
142
148
  total: number;
143
149
  }[] | undefined;
144
150
  product_id?: string | undefined;
151
+ accounting_category_id?: string | undefined;
145
152
  }[];
146
153
  payments: {
147
154
  id?: string | undefined;
@@ -183,6 +190,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
183
190
  country?: string | undefined;
184
191
  }[] | undefined;
185
192
  loyalty?: number | undefined;
193
+ birthdate?: string | undefined;
186
194
  }>;
187
195
  createCustomer(customer: {
188
196
  first_name: string;
@@ -217,6 +225,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
217
225
  country?: string | undefined;
218
226
  }[] | undefined;
219
227
  loyalty?: number | undefined;
228
+ birthdate?: string | undefined;
220
229
  }>;
221
230
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
222
231
  id: string;
@@ -225,9 +234,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
225
234
  }[]>;
226
235
  getProductCategories(params: {}): import("../types/api").RequestData<{
227
236
  id: string;
237
+ source_ref: {
238
+ id?: string | undefined;
239
+ model?: string | undefined;
240
+ };
228
241
  name: string;
229
- description?: string | undefined;
230
- id_parent?: string | undefined;
242
+ parent_id?: string | undefined;
231
243
  }[]>;
232
244
  getProducts(params: {}): import("../types/api").RequestData<{
233
245
  id: string;
@@ -238,6 +250,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
238
250
  unit_price: number;
239
251
  tax_rate: number;
240
252
  }[];
253
+ accounting_category_ids?: string[] | undefined;
241
254
  }[]>;
242
255
  getSales(params: {
243
256
  date_from: string;
@@ -292,12 +305,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
292
305
  total: number;
293
306
  tax_amount: number;
294
307
  tax_rate?: number | undefined;
295
- description: string;
308
+ description?: string | undefined;
296
309
  discounts?: {
297
310
  name?: string | undefined;
298
311
  total: number;
299
312
  }[] | undefined;
300
313
  product_id?: string | undefined;
314
+ accounting_category_id?: string | undefined;
301
315
  }[];
302
316
  payments: {
303
317
  id?: string | undefined;
@@ -320,14 +334,30 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
320
334
  total: number;
321
335
  }[] | undefined;
322
336
  }>;
337
+ getAccountingCategories(params: {}): import("../types/api").RequestData<{
338
+ id: string;
339
+ name: string;
340
+ id_parent?: string | undefined;
341
+ code?: string | undefined;
342
+ ledger_account_code?: string | undefined;
343
+ posting_account_code?: string | undefined;
344
+ }[]>;
323
345
  }>;
324
346
  accounting: import("../types/api").ApiFor<{
325
- getAnalyticPlans(): import("../types/api").RequestData<{
347
+ getAnalyticPlans(params: {
348
+ folder_id?: string | undefined;
349
+ page?: number | undefined;
350
+ size?: number | undefined;
351
+ } | undefined): import("../types/api").RequestData<{
326
352
  id: string;
327
353
  name: string;
328
354
  active?: boolean | undefined;
329
355
  }[]>;
330
- getClients(): import("../types/api").RequestData<{
356
+ getClients(params: {
357
+ folder_id?: string | undefined;
358
+ page?: number | undefined;
359
+ size?: number | undefined;
360
+ } | undefined): import("../types/api").RequestData<{
331
361
  external_reference?: string | undefined;
332
362
  first_name?: string | undefined;
333
363
  last_name?: string | undefined;
@@ -398,6 +428,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
398
428
  account_number?: string | undefined;
399
429
  }, params: {
400
430
  force_merge?: string | undefined;
431
+ folder_id?: string | undefined;
401
432
  } | undefined): import("../types/api").RequestData<{
402
433
  external_reference?: string | undefined;
403
434
  first_name?: string | undefined;
@@ -434,7 +465,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
434
465
  company_number?: string | undefined;
435
466
  id?: string | undefined;
436
467
  }>;
437
- getClient(clientId: string): import("../types/api").RequestData<{
468
+ getClient(clientId: string, params: {
469
+ folder_id?: string | undefined;
470
+ } | undefined): import("../types/api").RequestData<{
438
471
  external_reference?: string | undefined;
439
472
  first_name?: string | undefined;
440
473
  last_name?: string | undefined;
@@ -502,7 +535,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
502
535
  postal_code?: string | undefined;
503
536
  country?: string | undefined;
504
537
  }[] | undefined;
505
- }): import("../types/api").RequestData<{
538
+ }, params: {
539
+ folder_id?: string | undefined;
540
+ } | undefined): import("../types/api").RequestData<{
506
541
  external_reference?: string | undefined;
507
542
  first_name?: string | undefined;
508
543
  last_name?: string | undefined;
@@ -538,7 +573,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
538
573
  company_number?: string | undefined;
539
574
  id?: string | undefined;
540
575
  }>;
541
- getSuppliers(): import("../types/api").RequestData<{
576
+ getSuppliers(params: {
577
+ folder_id?: string | undefined;
578
+ page?: number | undefined;
579
+ size?: number | undefined;
580
+ } | undefined): import("../types/api").RequestData<{
542
581
  external_reference?: string | undefined;
543
582
  first_name?: string | undefined;
544
583
  last_name?: string | undefined;
@@ -609,6 +648,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
609
648
  account_number?: string | undefined;
610
649
  }, params: {
611
650
  force_merge?: string | undefined;
651
+ folder_id?: string | undefined;
612
652
  } | undefined): import("../types/api").RequestData<{
613
653
  external_reference?: string | undefined;
614
654
  first_name?: string | undefined;
@@ -645,7 +685,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
645
685
  company_number?: string | undefined;
646
686
  id?: string | undefined;
647
687
  }>;
648
- getSupplier(supplierId: string): import("../types/api").RequestData<{
688
+ getSupplier(supplierId: string, params: {
689
+ folder_id?: string | undefined;
690
+ } | undefined): import("../types/api").RequestData<{
649
691
  external_reference?: string | undefined;
650
692
  first_name?: string | undefined;
651
693
  last_name?: string | undefined;
@@ -713,7 +755,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
713
755
  postal_code?: string | undefined;
714
756
  country?: string | undefined;
715
757
  }[] | undefined;
716
- }): import("../types/api").RequestData<{
758
+ }, params: {
759
+ folder_id?: string | undefined;
760
+ } | undefined): import("../types/api").RequestData<{
717
761
  external_reference?: string | undefined;
718
762
  first_name?: string | undefined;
719
763
  last_name?: string | undefined;
@@ -752,8 +796,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
752
796
  createInvoice(invoice: {
753
797
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
754
798
  invoice_number?: string | undefined;
755
- invoice_date: string;
756
- due_date: string;
757
799
  currency: string;
758
800
  untaxed_amount: number;
759
801
  tax_amount: number;
@@ -761,6 +803,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
761
803
  reference?: string | undefined;
762
804
  payment_communication?: string | undefined;
763
805
  customer_memo?: string | undefined;
806
+ invoice_date: string;
807
+ due_date: string;
764
808
  partner_id: string;
765
809
  journal_id?: string | undefined;
766
810
  status?: "draft" | "posted" | undefined;
@@ -772,6 +816,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
772
816
  invoice_correction_credit_account_number?: string | undefined;
773
817
  invoice_correction_debit_account_number?: string | undefined;
774
818
  } | undefined;
819
+ nl_payment_terms_split?: {
820
+ g_account: {
821
+ amount: number;
822
+ iban: string;
823
+ };
824
+ n_account: {
825
+ amount: number;
826
+ iban: string;
827
+ };
828
+ } | undefined;
775
829
  lines: {
776
830
  line_number?: number | undefined;
777
831
  description: string;
@@ -789,11 +843,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
789
843
  }, params: {
790
844
  force_financial_period?: string | undefined;
791
845
  regroup_lines?: "true" | "false" | undefined;
846
+ folder_id?: string | undefined;
792
847
  } | undefined): import("../types/api").RequestData<{
793
848
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
794
849
  invoice_number?: string | undefined;
795
- invoice_date: string;
796
- due_date: string;
797
850
  currency: string;
798
851
  untaxed_amount: number;
799
852
  tax_amount: number;
@@ -802,6 +855,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
802
855
  payment_communication?: string | undefined;
803
856
  customer_memo?: string | undefined;
804
857
  id?: string | undefined;
858
+ invoice_date: string;
859
+ due_date: string;
805
860
  partner_id: string;
806
861
  journal_id: string;
807
862
  payments?: {
@@ -818,7 +873,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
818
873
  communication?: string | undefined;
819
874
  matching_number?: string | undefined;
820
875
  }[] | undefined;
821
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
876
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
822
877
  lines: {
823
878
  line_number?: number | undefined;
824
879
  description: string;
@@ -837,8 +892,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
837
892
  createInvoiceWithMultiplePlans(invoice: {
838
893
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
839
894
  invoice_number?: string | undefined;
840
- invoice_date: string;
841
- due_date: string;
842
895
  currency: string;
843
896
  untaxed_amount: number;
844
897
  tax_amount: number;
@@ -846,6 +899,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
846
899
  reference?: string | undefined;
847
900
  payment_communication?: string | undefined;
848
901
  customer_memo?: string | undefined;
902
+ invoice_date: string;
903
+ due_date: string;
849
904
  partner_id: string;
850
905
  journal_id?: string | undefined;
851
906
  status?: "draft" | "posted" | undefined;
@@ -857,6 +912,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
857
912
  invoice_correction_credit_account_number?: string | undefined;
858
913
  invoice_correction_debit_account_number?: string | undefined;
859
914
  } | undefined;
915
+ nl_payment_terms_split?: {
916
+ g_account: {
917
+ amount: number;
918
+ iban: string;
919
+ };
920
+ n_account: {
921
+ amount: number;
922
+ iban: string;
923
+ };
924
+ } | undefined;
860
925
  lines: {
861
926
  line_number?: number | undefined;
862
927
  description: string;
@@ -880,11 +945,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
880
945
  }, params: {
881
946
  force_financial_period?: string | undefined;
882
947
  regroup_lines?: "true" | "false" | undefined;
948
+ folder_id?: string | undefined;
883
949
  } | undefined): import("../types/api").RequestData<{
884
950
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
885
951
  invoice_number?: string | undefined;
886
- invoice_date: string;
887
- due_date: string;
888
952
  currency: string;
889
953
  untaxed_amount: number;
890
954
  tax_amount: number;
@@ -893,6 +957,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
893
957
  payment_communication?: string | undefined;
894
958
  customer_memo?: string | undefined;
895
959
  id?: string | undefined;
960
+ invoice_date: string;
961
+ due_date: string;
896
962
  partner_id: string;
897
963
  journal_id: string;
898
964
  payments?: {
@@ -909,7 +975,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
909
975
  communication?: string | undefined;
910
976
  matching_number?: string | undefined;
911
977
  }[] | undefined;
912
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
978
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
913
979
  lines: {
914
980
  line_number?: number | undefined;
915
981
  description: string;
@@ -934,8 +1000,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
934
1000
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
935
1001
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
936
1002
  invoice_number?: string | undefined;
937
- invoice_date: string;
938
- due_date: string;
939
1003
  currency: string;
940
1004
  untaxed_amount: number;
941
1005
  tax_amount: number;
@@ -944,6 +1008,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
944
1008
  payment_communication?: string | undefined;
945
1009
  customer_memo?: string | undefined;
946
1010
  id?: string | undefined;
1011
+ invoice_date: string;
1012
+ due_date: string;
947
1013
  partner_id: string;
948
1014
  journal_id: string;
949
1015
  payments?: {
@@ -960,7 +1026,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
960
1026
  communication?: string | undefined;
961
1027
  matching_number?: string | undefined;
962
1028
  }[] | undefined;
963
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1029
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
964
1030
  lines: {
965
1031
  line_number?: number | undefined;
966
1032
  description: string;
@@ -978,11 +1044,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
978
1044
  }[]>;
979
1045
  getInvoice(invoiceId: string, params: {
980
1046
  include_payments?: "true" | "false" | undefined;
1047
+ folder_id?: string | undefined;
981
1048
  } | undefined): import("../types/api").RequestData<{
982
1049
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
983
1050
  invoice_number?: string | undefined;
984
- invoice_date: string;
985
- due_date: string;
986
1051
  currency: string;
987
1052
  untaxed_amount: number;
988
1053
  tax_amount: number;
@@ -991,6 +1056,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
991
1056
  payment_communication?: string | undefined;
992
1057
  customer_memo?: string | undefined;
993
1058
  id?: string | undefined;
1059
+ invoice_date: string;
1060
+ due_date: string;
994
1061
  partner_id: string;
995
1062
  journal_id: string;
996
1063
  payments?: {
@@ -1007,7 +1074,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1007
1074
  communication?: string | undefined;
1008
1075
  matching_number?: string | undefined;
1009
1076
  }[] | undefined;
1010
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1077
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1011
1078
  lines: {
1012
1079
  line_number?: number | undefined;
1013
1080
  description: string;
@@ -1025,11 +1092,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1025
1092
  }>;
1026
1093
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
1027
1094
  include_payments?: "true" | "false" | undefined;
1095
+ folder_id?: string | undefined;
1028
1096
  } | undefined): import("../types/api").RequestData<{
1029
1097
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1030
1098
  invoice_number?: string | undefined;
1031
- invoice_date: string;
1032
- due_date: string;
1033
1099
  currency: string;
1034
1100
  untaxed_amount: number;
1035
1101
  tax_amount: number;
@@ -1038,6 +1104,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1038
1104
  payment_communication?: string | undefined;
1039
1105
  customer_memo?: string | undefined;
1040
1106
  id?: string | undefined;
1107
+ invoice_date: string;
1108
+ due_date: string;
1041
1109
  partner_id: string;
1042
1110
  journal_id: string;
1043
1111
  payments?: {
@@ -1054,7 +1122,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1054
1122
  communication?: string | undefined;
1055
1123
  matching_number?: string | undefined;
1056
1124
  }[] | undefined;
1057
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1125
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1058
1126
  lines: {
1059
1127
  line_number?: number | undefined;
1060
1128
  description: string;
@@ -1079,8 +1147,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1079
1147
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1080
1148
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1081
1149
  invoice_number?: string | undefined;
1082
- invoice_date: string;
1083
- due_date: string;
1084
1150
  currency: string;
1085
1151
  untaxed_amount: number;
1086
1152
  tax_amount: number;
@@ -1089,6 +1155,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1089
1155
  payment_communication?: string | undefined;
1090
1156
  customer_memo?: string | undefined;
1091
1157
  id?: string | undefined;
1158
+ invoice_date: string;
1159
+ due_date: string;
1092
1160
  partner_id: string;
1093
1161
  journal_id: string;
1094
1162
  payments?: {
@@ -1105,7 +1173,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1105
1173
  communication?: string | undefined;
1106
1174
  matching_number?: string | undefined;
1107
1175
  }[] | undefined;
1108
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1176
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1109
1177
  lines: {
1110
1178
  line_number?: number | undefined;
1111
1179
  description: string;
@@ -1132,7 +1200,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1132
1200
  code: string;
1133
1201
  name: string;
1134
1202
  currency: string;
1135
- }): import("../types/api").RequestData<{
1203
+ }, params: {
1204
+ folder_id?: string | undefined;
1205
+ } | undefined): import("../types/api").RequestData<{
1136
1206
  id: string;
1137
1207
  active: boolean;
1138
1208
  code?: string | undefined;
@@ -1142,7 +1212,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1142
1212
  credit?: number | undefined;
1143
1213
  debit?: number | undefined;
1144
1214
  }>;
1145
- getAnalyticAccounts(): import("../types/api").RequestData<{
1215
+ getAnalyticAccounts(params: {
1216
+ folder_id?: string | undefined;
1217
+ page?: number | undefined;
1218
+ size?: number | undefined;
1219
+ } | undefined): import("../types/api").RequestData<{
1146
1220
  id: string;
1147
1221
  active: boolean;
1148
1222
  code?: string | undefined;
@@ -1157,7 +1231,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1157
1231
  code: string;
1158
1232
  name: string;
1159
1233
  currency: string;
1160
- }): import("../types/api").RequestData<{
1234
+ }, params: {
1235
+ folder_id?: string | undefined;
1236
+ } | undefined): import("../types/api").RequestData<{
1161
1237
  id: string;
1162
1238
  active: boolean;
1163
1239
  code?: string | undefined;
@@ -1168,7 +1244,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1168
1244
  debit?: number | undefined;
1169
1245
  analytic_plan: string;
1170
1246
  }>;
1171
- getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
1247
+ getAnalyticAccount(analytic_account_id: string, params: {
1248
+ folder_id?: string | undefined;
1249
+ } | undefined): import("../types/api").RequestData<{
1172
1250
  id: string;
1173
1251
  active: boolean;
1174
1252
  code?: string | undefined;
@@ -1183,7 +1261,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1183
1261
  code?: string | undefined;
1184
1262
  name?: string | undefined;
1185
1263
  currency?: string | undefined;
1186
- }): import("../types/api").RequestData<{
1264
+ }, params: {
1265
+ folder_id?: string | undefined;
1266
+ } | undefined): import("../types/api").RequestData<{
1187
1267
  id: string;
1188
1268
  active: boolean;
1189
1269
  code?: string | undefined;
@@ -1193,7 +1273,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1193
1273
  credit?: number | undefined;
1194
1274
  debit?: number | undefined;
1195
1275
  }>;
1196
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
1276
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1277
+ folder_id?: string | undefined;
1278
+ } | undefined): import("../types/api").RequestData<{
1197
1279
  id: string;
1198
1280
  active: boolean;
1199
1281
  code?: string | undefined;
@@ -1209,7 +1291,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1209
1291
  code?: string | undefined;
1210
1292
  name?: string | undefined;
1211
1293
  currency?: string | undefined;
1212
- }): import("../types/api").RequestData<{
1294
+ }, params: {
1295
+ folder_id?: string | undefined;
1296
+ } | undefined): import("../types/api").RequestData<{
1213
1297
  id: string;
1214
1298
  active: boolean;
1215
1299
  code?: string | undefined;
@@ -1220,7 +1304,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1220
1304
  debit?: number | undefined;
1221
1305
  analytic_plan: string;
1222
1306
  }>;
1223
- getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
1307
+ getAnalyticAccountsWithMultiplePlans(params: {
1308
+ folder_id?: string | undefined;
1309
+ page?: number | undefined;
1310
+ size?: number | undefined;
1311
+ } | undefined): import("../types/api").RequestData<{
1224
1312
  id: string;
1225
1313
  active: boolean;
1226
1314
  code?: string | undefined;
@@ -1231,16 +1319,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1231
1319
  debit?: number | undefined;
1232
1320
  analytic_plan: string;
1233
1321
  }[]>;
1234
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
1235
- account_id: string;
1236
- description: string;
1237
- amount: number;
1238
- date: string;
1239
- id?: string | undefined;
1240
- }[]>;
1241
1322
  getJournalEntries(params: {
1242
1323
  date_from: string;
1243
1324
  date_to: string;
1325
+ folder_id?: string | undefined;
1244
1326
  unposted_allowed: "true" | "false";
1245
1327
  journal_id: string;
1246
1328
  partner_id?: string | undefined;
@@ -1272,6 +1354,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1272
1354
  getJournalEntriesWithMultiplePlans(params: {
1273
1355
  date_from: string;
1274
1356
  date_to: string;
1357
+ folder_id?: string | undefined;
1275
1358
  unposted_allowed: "true" | "false";
1276
1359
  journal_id: string;
1277
1360
  partner_id?: string | undefined;
@@ -1305,7 +1388,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1305
1388
  }[] | undefined;
1306
1389
  }[] | undefined;
1307
1390
  }[]>;
1308
- getPaymentsByInvoiceId(invoice_id: string): import("../types/api").RequestData<{
1391
+ getPaymentsByInvoiceId(invoice_id: string, params: {
1392
+ folder_id?: string | undefined;
1393
+ page?: number | undefined;
1394
+ size?: number | undefined;
1395
+ } | undefined): import("../types/api").RequestData<{
1309
1396
  id: string;
1310
1397
  name: string;
1311
1398
  currency: string;
@@ -1319,116 +1406,149 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1319
1406
  communication?: string | undefined;
1320
1407
  matching_number?: string | undefined;
1321
1408
  }[]>;
1322
- getJournals(): import("../types/api").RequestData<{
1409
+ getJournals(params: {
1410
+ folder_id?: string | undefined;
1411
+ page?: number | undefined;
1412
+ size?: number | undefined;
1413
+ } | undefined): import("../types/api").RequestData<{
1323
1414
  id: string;
1324
- code: string;
1415
+ code?: string | undefined;
1325
1416
  name: string;
1326
1417
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1327
1418
  }[]>;
1328
- getVatCodes(): import("../types/api").RequestData<{
1419
+ getVatCodes(params: {
1420
+ folder_id?: string | undefined;
1421
+ page?: number | undefined;
1422
+ size?: number | undefined;
1423
+ } | undefined): import("../types/api").RequestData<{
1329
1424
  id: string;
1330
1425
  code?: string | undefined;
1331
1426
  label: string;
1332
1427
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1333
1428
  rate: number;
1334
1429
  type: "unknown" | "sale" | "purchase" | "both";
1430
+ deductible_account?: string | undefined;
1431
+ payable_account?: string | undefined;
1335
1432
  }[]>;
1336
1433
  getMiscOperations(params: {}): import("../types/api").RequestData<{
1337
1434
  operation_number?: string | undefined;
1338
- operation_date: string;
1339
1435
  currency: string;
1340
1436
  currency_exchange_rate?: number | undefined;
1341
1437
  lines: {
1342
1438
  line_number?: number | undefined;
1343
1439
  description?: string | undefined;
1344
1440
  amount: number;
1345
- type: "general_account" | "customer_account" | "supplier_account";
1441
+ type: "customer_account" | "supplier_account" | "general_account";
1346
1442
  account_number: string;
1347
1443
  partner_id?: string | undefined;
1348
1444
  analytic_account?: string | undefined;
1349
1445
  }[];
1446
+ operation_date?: string | undefined;
1350
1447
  journal_id: string;
1351
- status: "draft" | "posted" | "cancelled" | "matched";
1448
+ status: "cancelled" | "draft" | "posted" | "matched";
1352
1449
  id: string;
1353
1450
  }[]>;
1354
1451
  createMiscOperation(operation: {
1355
1452
  operation_number?: string | undefined;
1356
- operation_date: string;
1357
1453
  currency: string;
1358
1454
  currency_exchange_rate?: number | undefined;
1359
1455
  lines: {
1360
1456
  line_number?: number | undefined;
1361
1457
  description?: string | undefined;
1362
1458
  amount: number;
1363
- type: "general_account" | "customer_account" | "supplier_account";
1459
+ type: "customer_account" | "supplier_account" | "general_account";
1364
1460
  account_number: string;
1365
1461
  partner_id?: string | undefined;
1366
1462
  analytic_account?: string | undefined;
1367
1463
  }[];
1464
+ operation_date: string;
1368
1465
  journal_id?: string | undefined;
1369
1466
  status?: "draft" | "posted" | undefined;
1370
- }): import("../types/api").RequestData<{
1467
+ }, params: {
1468
+ folder_id?: string | undefined;
1469
+ } | undefined): import("../types/api").RequestData<{
1371
1470
  operation_number?: string | undefined;
1372
- operation_date: string;
1373
1471
  currency: string;
1374
1472
  currency_exchange_rate?: number | undefined;
1375
1473
  lines: {
1376
1474
  line_number?: number | undefined;
1377
1475
  description?: string | undefined;
1378
1476
  amount: number;
1379
- type: "general_account" | "customer_account" | "supplier_account";
1477
+ type: "customer_account" | "supplier_account" | "general_account";
1380
1478
  account_number: string;
1381
1479
  partner_id?: string | undefined;
1382
1480
  analytic_account?: string | undefined;
1383
1481
  }[];
1482
+ operation_date?: string | undefined;
1384
1483
  journal_id: string;
1385
- status: "draft" | "posted" | "cancelled" | "matched";
1484
+ status: "cancelled" | "draft" | "posted" | "matched";
1386
1485
  id: string;
1387
1486
  }>;
1388
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
1487
+ getMiscOperation(operation_id: string, params: {
1488
+ folder_id?: string | undefined;
1489
+ } | undefined): import("../types/api").RequestData<{
1389
1490
  operation_number?: string | undefined;
1390
- operation_date: string;
1391
1491
  currency: string;
1392
1492
  currency_exchange_rate?: number | undefined;
1393
1493
  lines: {
1394
1494
  line_number?: number | undefined;
1395
1495
  description?: string | undefined;
1396
1496
  amount: number;
1397
- type: "general_account" | "customer_account" | "supplier_account";
1497
+ type: "customer_account" | "supplier_account" | "general_account";
1398
1498
  account_number: string;
1399
1499
  partner_id?: string | undefined;
1400
1500
  analytic_account?: string | undefined;
1401
1501
  }[];
1502
+ operation_date?: string | undefined;
1402
1503
  journal_id: string;
1403
- status: "draft" | "posted" | "cancelled" | "matched";
1504
+ status: "cancelled" | "draft" | "posted" | "matched";
1404
1505
  id: string;
1405
1506
  }>;
1406
1507
  attachPDF(invoice_id: string, attachment: {
1407
1508
  base64_string: string;
1408
1509
  }, params: {
1409
1510
  overwrite_existing?: "true" | "false" | undefined;
1511
+ folder_id?: string | undefined;
1410
1512
  } | undefined): import("../types/api").RequestData<{
1411
1513
  content: {
1412
- 'application/json': unknown;
1514
+ "application/json": unknown;
1413
1515
  };
1414
1516
  }>;
1517
+ getAttachments(params: {
1518
+ type: "invoice" | "entry";
1519
+ document_id: string;
1520
+ folder_id?: string | undefined;
1521
+ page?: number | undefined;
1522
+ size?: number | undefined;
1523
+ }): import("../types/api").RequestData<{
1524
+ base64_string: string;
1525
+ }[]>;
1415
1526
  getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1416
1527
  number: string;
1417
1528
  name: string;
1418
1529
  active?: boolean | undefined;
1419
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
1530
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
1420
1531
  }[]>;
1421
1532
  getBalanceOfAccounts(filter: {
1422
1533
  accounts: string[];
1423
- start: string;
1534
+ start?: string | undefined;
1424
1535
  end: string;
1425
- }): import("../types/api").RequestData<{
1536
+ }, params: {
1537
+ folder_id?: string | undefined;
1538
+ page?: number | undefined;
1539
+ size?: number | undefined;
1540
+ } | undefined): import("../types/api").RequestData<{
1426
1541
  account_number: string;
1542
+ account_name?: string | undefined;
1427
1543
  debit: number;
1428
1544
  credit: number;
1429
1545
  balance: number;
1430
1546
  }[]>;
1431
- getEmployees(): import("../types/api").RequestData<{
1547
+ getEmployees(params: {
1548
+ folder_id?: string | undefined;
1549
+ page?: number | undefined;
1550
+ size?: number | undefined;
1551
+ } | undefined): import("../types/api").RequestData<{
1432
1552
  id: string;
1433
1553
  name: string;
1434
1554
  first_name?: string | undefined;
@@ -1442,8 +1562,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1442
1562
  account_number?: string | undefined;
1443
1563
  }[]>;
1444
1564
  getOutstandings(params: {
1565
+ folder_id?: string | undefined;
1445
1566
  unposted_allowed: "true" | "false";
1446
- type: "client" | "supplier";
1567
+ type: "supplier" | "client";
1447
1568
  }): import("../types/api").RequestData<{
1448
1569
  id: string;
1449
1570
  number?: string | undefined;
@@ -1458,6 +1579,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1458
1579
  partner_id: string;
1459
1580
  account_number: string;
1460
1581
  reference?: string | undefined;
1582
+ payment_communication?: string | undefined;
1461
1583
  posted: boolean;
1462
1584
  }[]>;
1463
1585
  createFinancialEntryOld(financial_entry: {
@@ -1468,7 +1590,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1468
1590
  reference?: string | undefined;
1469
1591
  number?: string | undefined;
1470
1592
  items: {
1471
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1593
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1472
1594
  account_number: string;
1473
1595
  partner_id?: string | undefined;
1474
1596
  amount: number;
@@ -1477,6 +1599,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1477
1599
  pdf?: string | undefined;
1478
1600
  }, params: {
1479
1601
  financial_counterpart_account?: string | undefined;
1602
+ folder_id?: string | undefined;
1480
1603
  } | undefined): import("../types/api").RequestData<{
1481
1604
  date: string;
1482
1605
  journal_id: string;
@@ -1486,7 +1609,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1486
1609
  id: string;
1487
1610
  number: string;
1488
1611
  items: {
1489
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1612
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1490
1613
  account_number: string;
1491
1614
  partner_id?: string | undefined;
1492
1615
  amount: number;
@@ -1502,7 +1625,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1502
1625
  reference?: string | undefined;
1503
1626
  number?: string | undefined;
1504
1627
  items: {
1505
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1628
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1506
1629
  account: string;
1507
1630
  amount: number;
1508
1631
  description?: string | undefined;
@@ -1510,6 +1633,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1510
1633
  pdf?: string | undefined;
1511
1634
  }, params: {
1512
1635
  financial_counterpart_account?: string | undefined;
1636
+ folder_id?: string | undefined;
1513
1637
  } | undefined): import("../types/api").RequestData<{
1514
1638
  date: string;
1515
1639
  journal_id: string;
@@ -1519,14 +1643,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1519
1643
  id: string;
1520
1644
  number: string;
1521
1645
  items: {
1522
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1646
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1523
1647
  account: string;
1524
1648
  amount: number;
1525
1649
  description?: string | undefined;
1526
1650
  counterpart_account: string;
1527
1651
  }[];
1528
1652
  }[]>;
1529
- createJournalEntry(journal_entry: {
1653
+ createJournalEntryOld(journal_entry: {
1530
1654
  reference?: string | undefined;
1531
1655
  due_date?: string | undefined;
1532
1656
  journal_id: string;
@@ -1547,8 +1671,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1547
1671
  percentage: number;
1548
1672
  }[];
1549
1673
  }[] | undefined;
1550
- pdf?: string | undefined;
1551
1674
  }[];
1675
+ pdf?: string | undefined;
1552
1676
  }): import("../types/api").RequestData<{
1553
1677
  reference?: string | undefined;
1554
1678
  due_date?: string | undefined;
@@ -1579,13 +1703,87 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1579
1703
  }[] | undefined;
1580
1704
  }[] | undefined;
1581
1705
  }>;
1706
+ createJournalEntry(journal_entry: {
1707
+ reference?: string | undefined;
1708
+ due_date?: string | undefined;
1709
+ journal_id: string;
1710
+ number: string;
1711
+ currency: string;
1712
+ currency_exchange_rate?: number | undefined;
1713
+ date: string;
1714
+ items: {
1715
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1716
+ account: string;
1717
+ force_general_account?: string | undefined;
1718
+ prioritise_thirdparty_account?: boolean | undefined;
1719
+ description?: string | undefined;
1720
+ debit: number;
1721
+ credit: number;
1722
+ analytic_distribution?: {
1723
+ analytic_plan: string;
1724
+ analytic_accounts: {
1725
+ analytic_account: string;
1726
+ percentage: number;
1727
+ }[];
1728
+ }[] | undefined;
1729
+ tax_code?: string | undefined;
1730
+ }[];
1731
+ pdf?: string | undefined;
1732
+ posted?: boolean | undefined;
1733
+ }, params: {
1734
+ folder_id?: string | undefined;
1735
+ } | undefined): import("../types/api").RequestData<{
1736
+ reference?: string | undefined;
1737
+ due_date?: string | undefined;
1738
+ journal_id: string;
1739
+ name?: string | undefined;
1740
+ journal_name: string;
1741
+ date?: string | undefined;
1742
+ posted?: boolean | undefined;
1743
+ id: string;
1744
+ items?: {
1745
+ account_number: string;
1746
+ partner_id?: string | undefined;
1747
+ description?: string | undefined;
1748
+ debit: number;
1749
+ credit: number;
1750
+ currency: string;
1751
+ currency_exchange_rate?: number | undefined;
1752
+ id: string;
1753
+ partner_name?: string | undefined;
1754
+ account_name: string;
1755
+ matching_numbers?: string[] | undefined;
1756
+ analytic_distribution?: {
1757
+ analytic_plan: string;
1758
+ analytic_accounts: {
1759
+ analytic_account: string;
1760
+ percentage: number;
1761
+ }[];
1762
+ }[] | undefined;
1763
+ }[] | undefined;
1764
+ }>;
1765
+ matchEntries(body: {
1766
+ entries: string[];
1767
+ partner_id: string;
1768
+ }, params: {
1769
+ folder_id?: string | undefined;
1770
+ } | undefined): import("../types/api").RequestData<{
1771
+ matching_number: string;
1772
+ balance: number;
1773
+ }>;
1774
+ getFolders(): import("../types/api").RequestData<{
1775
+ id: string;
1776
+ name: string;
1777
+ selected?: boolean | undefined;
1778
+ }[]>;
1582
1779
  }>;
1583
1780
  invoicing: import("../types/api").ApiFor<{
1584
1781
  getInvoices(params: {
1585
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1782
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1586
1783
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1587
1784
  date_from?: string | undefined;
1588
1785
  date_to?: string | undefined;
1786
+ updated_after?: string | undefined;
1589
1787
  page?: number | undefined;
1590
1788
  size?: number | undefined;
1591
1789
  } | undefined): import("../types/api").RequestData<{
@@ -1596,7 +1794,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1596
1794
  };
1597
1795
  currency: string;
1598
1796
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1599
- status: "draft" | "posted" | "cancelled" | "paid";
1797
+ status: "cancelled" | "draft" | "posted" | "paid";
1600
1798
  invoice_date: string;
1601
1799
  tax_amount: number;
1602
1800
  untaxed_amount: number;
@@ -1628,6 +1826,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1628
1826
  model?: string | undefined;
1629
1827
  name?: string | undefined;
1630
1828
  } | undefined;
1829
+ outstanding_amount?: number | undefined;
1830
+ last_updated_on?: string | undefined;
1631
1831
  }[]>;
1632
1832
  getInvoiceById(invoiceId: string, params: {
1633
1833
  include_pdf?: "true" | "false" | undefined;
@@ -1639,7 +1839,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1639
1839
  };
1640
1840
  currency: string;
1641
1841
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1642
- status: "draft" | "posted" | "cancelled" | "paid";
1842
+ status: "cancelled" | "draft" | "posted" | "paid";
1643
1843
  invoice_date: string;
1644
1844
  tax_amount: number;
1645
1845
  untaxed_amount: number;
@@ -1671,11 +1871,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1671
1871
  model?: string | undefined;
1672
1872
  name?: string | undefined;
1673
1873
  } | undefined;
1874
+ outstanding_amount?: number | undefined;
1875
+ last_updated_on?: string | undefined;
1674
1876
  }>;
1675
1877
  createInvoice(invoice: {
1676
1878
  currency: string;
1677
1879
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1678
- status: "draft" | "posted" | "cancelled" | "paid";
1880
+ status: "cancelled" | "draft" | "posted" | "paid";
1679
1881
  invoice_date: string;
1680
1882
  tax_amount: number;
1681
1883
  untaxed_amount: number;
@@ -1707,6 +1909,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1707
1909
  model?: string | undefined;
1708
1910
  name?: string | undefined;
1709
1911
  } | undefined;
1912
+ outstanding_amount?: number | undefined;
1710
1913
  }): import("../types/api").RequestData<{
1711
1914
  id: string;
1712
1915
  source_ref: {
@@ -1715,7 +1918,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1715
1918
  };
1716
1919
  currency: string;
1717
1920
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1718
- status: "draft" | "posted" | "cancelled" | "paid";
1921
+ status: "cancelled" | "draft" | "posted" | "paid";
1719
1922
  invoice_date: string;
1720
1923
  tax_amount: number;
1721
1924
  untaxed_amount: number;
@@ -1747,6 +1950,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1747
1950
  model?: string | undefined;
1748
1951
  name?: string | undefined;
1749
1952
  } | undefined;
1953
+ outstanding_amount?: number | undefined;
1954
+ last_updated_on?: string | undefined;
1750
1955
  }>;
1751
1956
  getProducts(): import("../types/api").RequestData<{
1752
1957
  id: string;
@@ -1885,7 +2090,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1885
2090
  } | undefined;
1886
2091
  }>;
1887
2092
  getContacts(params?: {
1888
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
2093
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
1889
2094
  page?: number | undefined;
1890
2095
  size?: number | undefined;
1891
2096
  } | undefined): import("../types/api").RequestData<{
@@ -1915,7 +2120,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1915
2120
  birthdate?: string | undefined;
1916
2121
  gender?: "H" | "F" | "N/A" | undefined;
1917
2122
  addresses?: {
1918
- address_type: "main" | "delivery" | "invoice" | "other";
2123
+ address_type: "other" | "main" | "delivery" | "invoice";
1919
2124
  name?: string | undefined;
1920
2125
  number?: string | undefined;
1921
2126
  box?: string | undefined;
@@ -1955,7 +2160,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1955
2160
  birthdate?: string | undefined;
1956
2161
  gender?: "H" | "F" | "N/A" | undefined;
1957
2162
  addresses?: {
1958
- address_type: "main" | "delivery" | "invoice" | "other";
2163
+ address_type: "other" | "main" | "delivery" | "invoice";
1959
2164
  name?: string | undefined;
1960
2165
  number?: string | undefined;
1961
2166
  box?: string | undefined;
@@ -1990,7 +2195,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1990
2195
  birthdate?: string | undefined;
1991
2196
  gender?: "H" | "F" | "N/A" | undefined;
1992
2197
  addresses?: {
1993
- address_type: "main" | "delivery" | "invoice" | "other";
2198
+ address_type: "other" | "main" | "delivery" | "invoice";
1994
2199
  name?: string | undefined;
1995
2200
  number?: string | undefined;
1996
2201
  box?: string | undefined;
@@ -2029,7 +2234,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2029
2234
  birthdate?: string | undefined;
2030
2235
  gender?: "H" | "F" | "N/A" | undefined;
2031
2236
  addresses?: {
2032
- address_type: "main" | "delivery" | "invoice" | "other";
2237
+ address_type: "other" | "main" | "delivery" | "invoice";
2033
2238
  name?: string | undefined;
2034
2239
  number?: string | undefined;
2035
2240
  box?: string | undefined;
@@ -2059,6 +2264,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2059
2264
  currency?: string | undefined;
2060
2265
  addresses?: {
2061
2266
  address_type: "main" | "delivery" | "invoice";
2267
+ company_name?: string | undefined;
2062
2268
  first_name?: string | undefined;
2063
2269
  last_name?: string | undefined;
2064
2270
  street?: string | undefined;
@@ -2152,6 +2358,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2152
2358
  currency?: string | undefined;
2153
2359
  addresses?: {
2154
2360
  address_type: "main" | "delivery" | "invoice";
2361
+ company_name?: string | undefined;
2155
2362
  first_name?: string | undefined;
2156
2363
  last_name?: string | undefined;
2157
2364
  street?: string | undefined;
@@ -2304,15 +2511,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2304
2511
  };
2305
2512
  order_number?: string | undefined;
2306
2513
  customer?: {
2307
- email: string;
2308
2514
  first_name?: string | undefined;
2309
2515
  last_name?: string | undefined;
2310
2516
  phone?: string | undefined;
2311
2517
  internal_notes?: string | undefined;
2518
+ email?: string | undefined;
2312
2519
  id: string;
2313
2520
  } | undefined;
2314
2521
  billing_address?: {
2315
2522
  address_type: "main" | "delivery" | "invoice";
2523
+ company_name?: string | undefined;
2316
2524
  first_name?: string | undefined;
2317
2525
  last_name?: string | undefined;
2318
2526
  street?: string | undefined;
@@ -2326,6 +2534,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2326
2534
  } | undefined;
2327
2535
  shipping_address?: {
2328
2536
  address_type: "main" | "delivery" | "invoice";
2537
+ company_name?: string | undefined;
2329
2538
  first_name?: string | undefined;
2330
2539
  last_name?: string | undefined;
2331
2540
  street?: string | undefined;
@@ -2341,7 +2550,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2341
2550
  last_updated_on?: string | undefined;
2342
2551
  confirmed_on?: string | undefined;
2343
2552
  cancelled_on?: string | undefined;
2344
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2553
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2345
2554
  discount_amount: number;
2346
2555
  untaxed_amount_without_fees: number;
2347
2556
  tax_amount_without_fees: number;
@@ -2351,6 +2560,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2351
2560
  total: number;
2352
2561
  refunded_amount?: number | undefined;
2353
2562
  detailed_refunds?: {
2563
+ id: string;
2564
+ source_ref: {
2565
+ id?: string | undefined;
2566
+ model?: string | undefined;
2567
+ };
2354
2568
  created_on?: string | undefined;
2355
2569
  total: number;
2356
2570
  reason?: string | undefined;
@@ -2367,6 +2581,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2367
2581
  total: number;
2368
2582
  }[] | undefined;
2369
2583
  other?: number | undefined;
2584
+ shipping_refunds?: {
2585
+ id: string;
2586
+ source_ref: {
2587
+ id?: string | undefined;
2588
+ model?: string | undefined;
2589
+ };
2590
+ untaxed_amount: number;
2591
+ tax_amount: number;
2592
+ total: number;
2593
+ }[] | undefined;
2370
2594
  }[] | undefined;
2371
2595
  currency: string;
2372
2596
  note?: string | undefined;
@@ -2376,6 +2600,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2376
2600
  id?: string | undefined;
2377
2601
  model?: string | undefined;
2378
2602
  };
2603
+ created_on?: string | undefined;
2379
2604
  variant?: {
2380
2605
  id: string;
2381
2606
  sku?: string | undefined;
@@ -2384,6 +2609,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2384
2609
  quantity: number;
2385
2610
  unit_price: number;
2386
2611
  description: string;
2612
+ tax_id?: string | undefined;
2387
2613
  tax_rate: number;
2388
2614
  untaxed_amount: number;
2389
2615
  tax_amount: number;
@@ -2393,22 +2619,47 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2393
2619
  description: string;
2394
2620
  amount: number;
2395
2621
  }[] | undefined;
2622
+ gift_card?: boolean | undefined;
2396
2623
  }[];
2397
2624
  other_fees?: {
2625
+ id: string;
2626
+ source_ref: {
2627
+ id?: string | undefined;
2628
+ model?: string | undefined;
2629
+ };
2630
+ created_on?: string | undefined;
2398
2631
  type: "other" | "shipping";
2399
2632
  tax_rate: number;
2633
+ tax_id?: string | undefined;
2634
+ discounts?: {
2635
+ name: string;
2636
+ description: string;
2637
+ amount: number;
2638
+ }[] | undefined;
2400
2639
  untaxed_amount: number;
2401
2640
  tax_amount: number;
2402
2641
  total: number;
2403
2642
  }[] | undefined;
2643
+ payment_method_id?: string | undefined;
2644
+ transactions?: {
2645
+ id: string;
2646
+ payment_method_id?: string | undefined;
2647
+ payment_method_name?: string | undefined;
2648
+ amount: number;
2649
+ status: "failed" | "pending" | "success";
2650
+ }[] | undefined;
2651
+ payment_methods?: {
2652
+ id: string;
2653
+ name?: string | undefined;
2654
+ }[] | undefined;
2404
2655
  }[]>;
2405
2656
  createOrder(order: {
2406
2657
  customer: {
2407
- email: string;
2408
2658
  first_name?: string | undefined;
2409
2659
  last_name?: string | undefined;
2410
2660
  phone?: string | undefined;
2411
2661
  internal_notes?: string | undefined;
2662
+ email: string;
2412
2663
  };
2413
2664
  billing_address: {
2414
2665
  first_name: string;
@@ -2451,15 +2702,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2451
2702
  };
2452
2703
  order_number?: string | undefined;
2453
2704
  customer?: {
2454
- email: string;
2455
2705
  first_name?: string | undefined;
2456
2706
  last_name?: string | undefined;
2457
2707
  phone?: string | undefined;
2458
2708
  internal_notes?: string | undefined;
2709
+ email?: string | undefined;
2459
2710
  id: string;
2460
2711
  } | undefined;
2461
2712
  billing_address?: {
2462
2713
  address_type: "main" | "delivery" | "invoice";
2714
+ company_name?: string | undefined;
2463
2715
  first_name?: string | undefined;
2464
2716
  last_name?: string | undefined;
2465
2717
  street?: string | undefined;
@@ -2473,6 +2725,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2473
2725
  } | undefined;
2474
2726
  shipping_address?: {
2475
2727
  address_type: "main" | "delivery" | "invoice";
2728
+ company_name?: string | undefined;
2476
2729
  first_name?: string | undefined;
2477
2730
  last_name?: string | undefined;
2478
2731
  street?: string | undefined;
@@ -2488,7 +2741,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2488
2741
  last_updated_on?: string | undefined;
2489
2742
  confirmed_on?: string | undefined;
2490
2743
  cancelled_on?: string | undefined;
2491
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2744
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2492
2745
  discount_amount: number;
2493
2746
  untaxed_amount_without_fees: number;
2494
2747
  tax_amount_without_fees: number;
@@ -2498,6 +2751,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2498
2751
  total: number;
2499
2752
  refunded_amount?: number | undefined;
2500
2753
  detailed_refunds?: {
2754
+ id: string;
2755
+ source_ref: {
2756
+ id?: string | undefined;
2757
+ model?: string | undefined;
2758
+ };
2501
2759
  created_on?: string | undefined;
2502
2760
  total: number;
2503
2761
  reason?: string | undefined;
@@ -2514,6 +2772,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2514
2772
  total: number;
2515
2773
  }[] | undefined;
2516
2774
  other?: number | undefined;
2775
+ shipping_refunds?: {
2776
+ id: string;
2777
+ source_ref: {
2778
+ id?: string | undefined;
2779
+ model?: string | undefined;
2780
+ };
2781
+ untaxed_amount: number;
2782
+ tax_amount: number;
2783
+ total: number;
2784
+ }[] | undefined;
2517
2785
  }[] | undefined;
2518
2786
  currency: string;
2519
2787
  note?: string | undefined;
@@ -2523,6 +2791,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2523
2791
  id?: string | undefined;
2524
2792
  model?: string | undefined;
2525
2793
  };
2794
+ created_on?: string | undefined;
2526
2795
  variant?: {
2527
2796
  id: string;
2528
2797
  sku?: string | undefined;
@@ -2531,6 +2800,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2531
2800
  quantity: number;
2532
2801
  unit_price: number;
2533
2802
  description: string;
2803
+ tax_id?: string | undefined;
2534
2804
  tax_rate: number;
2535
2805
  untaxed_amount: number;
2536
2806
  tax_amount: number;
@@ -2540,14 +2810,39 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2540
2810
  description: string;
2541
2811
  amount: number;
2542
2812
  }[] | undefined;
2813
+ gift_card?: boolean | undefined;
2543
2814
  }[];
2544
2815
  other_fees?: {
2816
+ id: string;
2817
+ source_ref: {
2818
+ id?: string | undefined;
2819
+ model?: string | undefined;
2820
+ };
2821
+ created_on?: string | undefined;
2545
2822
  type: "other" | "shipping";
2546
2823
  tax_rate: number;
2824
+ tax_id?: string | undefined;
2825
+ discounts?: {
2826
+ name: string;
2827
+ description: string;
2828
+ amount: number;
2829
+ }[] | undefined;
2547
2830
  untaxed_amount: number;
2548
2831
  tax_amount: number;
2549
2832
  total: number;
2550
2833
  }[] | undefined;
2834
+ payment_method_id?: string | undefined;
2835
+ transactions?: {
2836
+ id: string;
2837
+ payment_method_id?: string | undefined;
2838
+ payment_method_name?: string | undefined;
2839
+ amount: number;
2840
+ status: "failed" | "pending" | "success";
2841
+ }[] | undefined;
2842
+ payment_methods?: {
2843
+ id: string;
2844
+ name?: string | undefined;
2845
+ }[] | undefined;
2551
2846
  }>;
2552
2847
  getOrder(orderId: string): import("../types/api").RequestData<{
2553
2848
  id: string;
@@ -2557,15 +2852,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2557
2852
  };
2558
2853
  order_number?: string | undefined;
2559
2854
  customer?: {
2560
- email: string;
2561
2855
  first_name?: string | undefined;
2562
2856
  last_name?: string | undefined;
2563
2857
  phone?: string | undefined;
2564
2858
  internal_notes?: string | undefined;
2859
+ email?: string | undefined;
2565
2860
  id: string;
2566
2861
  } | undefined;
2567
2862
  billing_address?: {
2568
2863
  address_type: "main" | "delivery" | "invoice";
2864
+ company_name?: string | undefined;
2569
2865
  first_name?: string | undefined;
2570
2866
  last_name?: string | undefined;
2571
2867
  street?: string | undefined;
@@ -2579,6 +2875,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2579
2875
  } | undefined;
2580
2876
  shipping_address?: {
2581
2877
  address_type: "main" | "delivery" | "invoice";
2878
+ company_name?: string | undefined;
2582
2879
  first_name?: string | undefined;
2583
2880
  last_name?: string | undefined;
2584
2881
  street?: string | undefined;
@@ -2594,7 +2891,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2594
2891
  last_updated_on?: string | undefined;
2595
2892
  confirmed_on?: string | undefined;
2596
2893
  cancelled_on?: string | undefined;
2597
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2894
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2598
2895
  discount_amount: number;
2599
2896
  untaxed_amount_without_fees: number;
2600
2897
  tax_amount_without_fees: number;
@@ -2604,6 +2901,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2604
2901
  total: number;
2605
2902
  refunded_amount?: number | undefined;
2606
2903
  detailed_refunds?: {
2904
+ id: string;
2905
+ source_ref: {
2906
+ id?: string | undefined;
2907
+ model?: string | undefined;
2908
+ };
2607
2909
  created_on?: string | undefined;
2608
2910
  total: number;
2609
2911
  reason?: string | undefined;
@@ -2620,6 +2922,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2620
2922
  total: number;
2621
2923
  }[] | undefined;
2622
2924
  other?: number | undefined;
2925
+ shipping_refunds?: {
2926
+ id: string;
2927
+ source_ref: {
2928
+ id?: string | undefined;
2929
+ model?: string | undefined;
2930
+ };
2931
+ untaxed_amount: number;
2932
+ tax_amount: number;
2933
+ total: number;
2934
+ }[] | undefined;
2623
2935
  }[] | undefined;
2624
2936
  currency: string;
2625
2937
  note?: string | undefined;
@@ -2629,6 +2941,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2629
2941
  id?: string | undefined;
2630
2942
  model?: string | undefined;
2631
2943
  };
2944
+ created_on?: string | undefined;
2632
2945
  variant?: {
2633
2946
  id: string;
2634
2947
  sku?: string | undefined;
@@ -2637,6 +2950,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2637
2950
  quantity: number;
2638
2951
  unit_price: number;
2639
2952
  description: string;
2953
+ tax_id?: string | undefined;
2640
2954
  tax_rate: number;
2641
2955
  untaxed_amount: number;
2642
2956
  tax_amount: number;
@@ -2646,15 +2960,72 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2646
2960
  description: string;
2647
2961
  amount: number;
2648
2962
  }[] | undefined;
2963
+ gift_card?: boolean | undefined;
2649
2964
  }[];
2650
2965
  other_fees?: {
2966
+ id: string;
2967
+ source_ref: {
2968
+ id?: string | undefined;
2969
+ model?: string | undefined;
2970
+ };
2971
+ created_on?: string | undefined;
2651
2972
  type: "other" | "shipping";
2652
2973
  tax_rate: number;
2974
+ tax_id?: string | undefined;
2975
+ discounts?: {
2976
+ name: string;
2977
+ description: string;
2978
+ amount: number;
2979
+ }[] | undefined;
2653
2980
  untaxed_amount: number;
2654
2981
  tax_amount: number;
2655
2982
  total: number;
2656
2983
  }[] | undefined;
2984
+ payment_method_id?: string | undefined;
2985
+ transactions?: {
2986
+ id: string;
2987
+ payment_method_id?: string | undefined;
2988
+ payment_method_name?: string | undefined;
2989
+ amount: number;
2990
+ status: "failed" | "pending" | "success";
2991
+ }[] | undefined;
2992
+ payment_methods?: {
2993
+ id: string;
2994
+ name?: string | undefined;
2995
+ }[] | undefined;
2657
2996
  }>;
2997
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
2998
+ id: string;
2999
+ source_ref: {
3000
+ id?: string | undefined;
3001
+ model?: string | undefined;
3002
+ };
3003
+ name: string;
3004
+ active: boolean;
3005
+ }[]>;
3006
+ getProductCategories(params: {}): import("../types/api").RequestData<{
3007
+ id: string;
3008
+ source_ref: {
3009
+ id?: string | undefined;
3010
+ model?: string | undefined;
3011
+ };
3012
+ name: string;
3013
+ parent_id?: string | undefined;
3014
+ }[]>;
3015
+ getTaxes(params: {}): import("../types/api").RequestData<{
3016
+ id: string;
3017
+ source_ref: {
3018
+ id?: string | undefined;
3019
+ model?: string | undefined;
3020
+ };
3021
+ label: string;
3022
+ rate: number;
3023
+ country?: string | undefined;
3024
+ }[]>;
3025
+ getCountries(params: {}): import("../types/api").RequestData<{
3026
+ code: string;
3027
+ name: string;
3028
+ }[]>;
2658
3029
  }>;
2659
3030
  custom: import("../types/api").ApiFor<{
2660
3031
  get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
@@ -2680,12 +3051,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2680
3051
  link_createdon: string;
2681
3052
  link_mappings?: {
2682
3053
  name: string;
2683
- description: string;
2684
- logic?: Record<string, never> | undefined;
3054
+ description?: string | undefined;
3055
+ display_order?: number | undefined;
3056
+ challenge_question?: string | undefined;
2685
3057
  values: {
2686
3058
  source_id: string;
2687
3059
  target_id: string;
2688
3060
  }[];
3061
+ sub_mapping_name: string;
3062
+ sub_mapping_description?: string | undefined;
2689
3063
  }[] | undefined;
2690
3064
  link_metadata?: Record<string, never> | undefined;
2691
3065
  enabled_flows?: {
@@ -2712,7 +3086,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2712
3086
  }[] | undefined;
2713
3087
  } | undefined;
2714
3088
  values: Record<string, never>;
2715
- enabled_on: string;
3089
+ enabled_on?: string | undefined;
3090
+ trigger: {
3091
+ id: string;
3092
+ type: "timer" | "event";
3093
+ cronschedule?: string | undefined;
3094
+ };
2716
3095
  }[] | undefined;
2717
3096
  }>;
2718
3097
  getDataByDataStoreName: (dataStoreName: string, params?: object) => Promise<{
@@ -2730,6 +3109,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2730
3109
  id: string;
2731
3110
  created_on: string;
2732
3111
  }[]>;
3112
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
2733
3113
  logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
2734
3114
  };
2735
3115
  export { Consumer };