@chift/chift-nodejs 1.0.27 → 1.0.29

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.
@@ -19,7 +19,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
19
19
  status: "up" | "down";
20
20
  } | null | undefined;
21
21
  }[]>;
22
- createConnection: (body?: components['schemas']['backbone_api__app__routers__connections__PostConnectionItem'] | null) => Promise<{
22
+ createConnection: (body?: components['schemas']['PostConnectionItem-Input'] | null) => Promise<{
23
23
  url: string;
24
24
  }>;
25
25
  updateConnection: (connectionId: string, body?: components['schemas']['PatchConnectionItem']) => Promise<{
@@ -45,6 +45,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
45
45
  name: string;
46
46
  redirect_url: string | null | undefined;
47
47
  email: string | null | undefined;
48
+ internal_reference: string | null | undefined;
48
49
  pos: import("../types/api").ApiFor<{
49
50
  getLocations(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
50
51
  id: string;
@@ -80,6 +81,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
80
81
  total_refund: number | null;
81
82
  total_tip: number | null;
82
83
  delivery_fee: number | null;
84
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
83
85
  currency?: string | null | undefined;
84
86
  country?: string | null | undefined;
85
87
  loyalty?: number | null | undefined;
@@ -158,6 +160,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
158
160
  total_refund: number | null;
159
161
  total_tip: number | null;
160
162
  delivery_fee: number | null;
163
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
161
164
  currency?: string | null | undefined;
162
165
  country?: string | null | undefined;
163
166
  loyalty?: number | null | undefined;
@@ -346,6 +349,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
346
349
  total_refund: number | null;
347
350
  total_tip: number | null;
348
351
  delivery_fee: number | null;
352
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
349
353
  currency?: string | null | undefined;
350
354
  country?: string | null | undefined;
351
355
  loyalty?: number | null | undefined;
@@ -450,6 +454,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
450
454
  total_refund: number | null;
451
455
  total_tip: number | null;
452
456
  delivery_fee: number | null;
457
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
453
458
  currency?: string | null | undefined;
454
459
  country?: string | null | undefined;
455
460
  loyalty?: number | null | undefined;
@@ -902,6 +907,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
902
907
  postal_code?: string | null | undefined;
903
908
  country?: string | null | undefined;
904
909
  }[] | null;
910
+ third_party_account?: string | null | undefined;
905
911
  }[]>;
906
912
  createClient(client: {
907
913
  external_reference?: string | null | undefined;
@@ -975,6 +981,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
975
981
  postal_code?: string | null | undefined;
976
982
  country?: string | null | undefined;
977
983
  }[] | null;
984
+ third_party_account?: string | null | undefined;
978
985
  }>;
979
986
  getClient(clientId: string, params?: {
980
987
  folder_id?: string | null | undefined;
@@ -1014,6 +1021,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1014
1021
  postal_code?: string | null | undefined;
1015
1022
  country?: string | null | undefined;
1016
1023
  }[] | null;
1024
+ third_party_account?: string | null | undefined;
1017
1025
  }>;
1018
1026
  updateClient(clientId: string, client: {
1019
1027
  external_reference?: string | null | undefined;
@@ -1085,6 +1093,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1085
1093
  postal_code?: string | null | undefined;
1086
1094
  country?: string | null | undefined;
1087
1095
  }[] | null;
1096
+ third_party_account?: string | null | undefined;
1088
1097
  }>;
1089
1098
  getSuppliers(params?: {
1090
1099
  search?: string | null | undefined;
@@ -1126,6 +1135,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1126
1135
  postal_code?: string | null | undefined;
1127
1136
  country?: string | null | undefined;
1128
1137
  }[] | null;
1138
+ third_party_account?: string | null | undefined;
1129
1139
  }[]>;
1130
1140
  createSupplier(supplier: {
1131
1141
  external_reference?: string | null | undefined;
@@ -1199,6 +1209,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1199
1209
  postal_code?: string | null | undefined;
1200
1210
  country?: string | null | undefined;
1201
1211
  }[] | null;
1212
+ third_party_account?: string | null | undefined;
1202
1213
  }>;
1203
1214
  getSupplier(supplierId: string, params?: {
1204
1215
  folder_id?: string | null | undefined;
@@ -1238,6 +1249,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1238
1249
  postal_code?: string | null | undefined;
1239
1250
  country?: string | null | undefined;
1240
1251
  }[] | null;
1252
+ third_party_account?: string | null | undefined;
1241
1253
  }>;
1242
1254
  updateSupplier(supplierId: string, supplier: {
1243
1255
  external_reference?: string | null | undefined;
@@ -1309,6 +1321,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1309
1321
  postal_code?: string | null | undefined;
1310
1322
  country?: string | null | undefined;
1311
1323
  }[] | null;
1324
+ third_party_account?: string | null | undefined;
1312
1325
  }>;
1313
1326
  createInvoice(invoice: {
1314
1327
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -1376,6 +1389,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1376
1389
  force_financial_period?: string | null | undefined;
1377
1390
  regroup_lines?: "true" | "false" | null | undefined;
1378
1391
  ignore_accounting_id?: boolean | undefined;
1392
+ force_currency_exchange?: boolean | null | undefined;
1379
1393
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1380
1394
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1381
1395
  invoice_number?: string | null | undefined;
@@ -1449,6 +1463,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1449
1463
  postal_code?: string | null | undefined;
1450
1464
  country?: string | null | undefined;
1451
1465
  }[] | null;
1466
+ third_party_account?: string | null | undefined;
1452
1467
  } | null | undefined;
1453
1468
  due_dates: {
1454
1469
  due_date: string;
@@ -1556,6 +1571,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1556
1571
  force_financial_period?: string | null | undefined;
1557
1572
  regroup_lines?: "true" | "false" | null | undefined;
1558
1573
  ignore_accounting_id?: boolean | undefined;
1574
+ force_currency_exchange?: boolean | null | undefined;
1559
1575
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1560
1576
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1561
1577
  invoice_number?: string | null | undefined;
@@ -1629,6 +1645,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1629
1645
  postal_code?: string | null | undefined;
1630
1646
  country?: string | null | undefined;
1631
1647
  }[] | null;
1648
+ third_party_account?: string | null | undefined;
1632
1649
  } | null | undefined;
1633
1650
  due_dates: {
1634
1651
  due_date: string;
@@ -1753,6 +1770,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1753
1770
  postal_code?: string | null | undefined;
1754
1771
  country?: string | null | undefined;
1755
1772
  }[] | null;
1773
+ third_party_account?: string | null | undefined;
1756
1774
  } | null | undefined;
1757
1775
  due_dates: {
1758
1776
  due_date: string;
@@ -1866,6 +1884,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1866
1884
  postal_code?: string | null | undefined;
1867
1885
  country?: string | null | undefined;
1868
1886
  }[] | null;
1887
+ third_party_account?: string | null | undefined;
1869
1888
  } | null | undefined;
1870
1889
  due_dates: {
1871
1890
  due_date: string;
@@ -1979,6 +1998,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1979
1998
  postal_code?: string | null | undefined;
1980
1999
  country?: string | null | undefined;
1981
2000
  }[] | null;
2001
+ third_party_account?: string | null | undefined;
1982
2002
  } | null | undefined;
1983
2003
  due_dates: {
1984
2004
  due_date: string;
@@ -2103,6 +2123,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2103
2123
  postal_code?: string | null | undefined;
2104
2124
  country?: string | null | undefined;
2105
2125
  }[] | null;
2126
+ third_party_account?: string | null | undefined;
2106
2127
  } | null | undefined;
2107
2128
  due_dates: {
2108
2129
  due_date: string;
@@ -2631,6 +2652,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2631
2652
  }, params?: {
2632
2653
  folder_id?: string | null | undefined;
2633
2654
  financial_counterpart_account?: string | null | undefined;
2655
+ force_currency_exchange?: boolean | null | undefined;
2634
2656
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2635
2657
  date: string;
2636
2658
  journal_id: string;
@@ -26,6 +26,7 @@ const Consumer = (internalApi, body) => {
26
26
  const name = data.name;
27
27
  const redirect_url = data.redirect_url;
28
28
  const email = data.email;
29
+ const internal_reference = data.internal_reference;
29
30
  const pos = (0, openapi_1.createApiFor)(pos_1.posFactory, _internalApi, data.name, consumerId);
30
31
  const pms = (0, openapi_1.createApiFor)(pms_1.pmsFactory, _internalApi, data.name, consumerId);
31
32
  const payment = (0, openapi_1.createApiFor)(payment_1.paymentFactory, _internalApi, data.name, consumerId);
@@ -135,6 +136,7 @@ const Consumer = (internalApi, body) => {
135
136
  name,
136
137
  redirect_url,
137
138
  email,
139
+ internal_reference,
138
140
  pos,
139
141
  pms,
140
142
  payment,