@chift/chift-nodejs 1.0.5 → 1.0.6
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/.eslintcache +1 -1
- package/CHANGELOG.md +4 -0
- package/dist/src/modules/api.d.ts +855 -420
- package/dist/src/modules/consumer.d.ts +56 -28
- package/dist/src/modules/consumers.d.ts +285 -140
- package/dist/src/modules/internalApi.js +10 -5
- package/dist/src/modules/pos.d.ts +4 -0
- package/dist/src/modules/pos.js +14 -0
- package/dist/src/modules/sync.d.ts +229 -113
- package/dist/src/modules/syncs.d.ts +570 -280
- package/dist/test/modules/pos.test.js +13 -0
- package/jest.config.ts +1 -1
- package/package.json +1 -1
- package/src/modules/pos.ts +26 -0
- package/src/modules/sync.ts +1 -1
- package/src/modules/syncs.ts +2 -2
- package/src/types/public-api/schema.d.ts +426 -80
- package/test/modules/consumer.test.ts +1 -1
- package/test/modules/pos.test.ts +15 -0
|
@@ -2,7 +2,7 @@ import { components } from '../types/public-api/schema';
|
|
|
2
2
|
import { InternalAPI } from './internalApi';
|
|
3
3
|
import { ContextType } from '../types/sync';
|
|
4
4
|
import { Consumer } from './consumer';
|
|
5
|
-
declare const Sync: (internalApi: InternalAPI, body: components['schemas']['
|
|
5
|
+
declare const Sync: (internalApi: InternalAPI, body: components['schemas']['ReadSyncItem']) => {
|
|
6
6
|
createFlow: (context: ContextType, process?: ((consumer: typeof Consumer, context: any) => any) | undefined) => Promise<{
|
|
7
7
|
execute: ({ testData, context }: any) => Promise<void>;
|
|
8
8
|
getExecution: (executionId: string) => Promise<{
|
|
@@ -53,6 +53,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
53
53
|
getSyncUrl: (body: {
|
|
54
54
|
syncid: string;
|
|
55
55
|
integrationids?: string[] | undefined;
|
|
56
|
+
link_metadata?: Record<string, never> | undefined;
|
|
56
57
|
}) => Promise<{
|
|
57
58
|
url: string;
|
|
58
59
|
}>;
|
|
@@ -104,6 +105,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
104
105
|
name?: string | undefined;
|
|
105
106
|
total: number;
|
|
106
107
|
}[] | undefined;
|
|
108
|
+
product_id?: string | undefined;
|
|
107
109
|
}[];
|
|
108
110
|
payments: {
|
|
109
111
|
id?: string | undefined;
|
|
@@ -170,6 +172,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
170
172
|
name?: string | undefined;
|
|
171
173
|
total: number;
|
|
172
174
|
}[] | undefined;
|
|
175
|
+
product_id?: string | undefined;
|
|
173
176
|
}[];
|
|
174
177
|
payments: {
|
|
175
178
|
id?: string | undefined;
|
|
@@ -251,6 +254,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
251
254
|
name: string;
|
|
252
255
|
extra?: string | undefined;
|
|
253
256
|
}[]>;
|
|
257
|
+
getProductCategories(params: {}): import("../types/api").RequestData<{
|
|
258
|
+
id: string;
|
|
259
|
+
name: string;
|
|
260
|
+
description?: string | undefined;
|
|
261
|
+
id_parent?: string | undefined;
|
|
262
|
+
}[]>;
|
|
263
|
+
getProducts(params: {}): import("../types/api").RequestData<{
|
|
264
|
+
id: string;
|
|
265
|
+
categories?: string[] | undefined;
|
|
266
|
+
name: string;
|
|
267
|
+
description?: string | undefined;
|
|
268
|
+
prices: {
|
|
269
|
+
unit_price: number;
|
|
270
|
+
tax_rate: number;
|
|
271
|
+
}[];
|
|
272
|
+
}[]>;
|
|
254
273
|
getSales(params: {
|
|
255
274
|
date_from: string;
|
|
256
275
|
date_to: string;
|
|
@@ -309,6 +328,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
309
328
|
name?: string | undefined;
|
|
310
329
|
total: number;
|
|
311
330
|
}[] | undefined;
|
|
331
|
+
product_id?: string | undefined;
|
|
312
332
|
}[];
|
|
313
333
|
payments: {
|
|
314
334
|
id?: string | undefined;
|
|
@@ -1144,21 +1164,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1144
1164
|
name: string;
|
|
1145
1165
|
currency: string;
|
|
1146
1166
|
}): import("../types/api").RequestData<{
|
|
1147
|
-
|
|
1167
|
+
id: string;
|
|
1168
|
+
active: boolean;
|
|
1148
1169
|
code?: string | undefined;
|
|
1149
|
-
name
|
|
1170
|
+
name: string;
|
|
1150
1171
|
currency?: string | undefined;
|
|
1151
|
-
id?: string | undefined;
|
|
1152
1172
|
balance?: number | undefined;
|
|
1153
1173
|
credit?: number | undefined;
|
|
1154
1174
|
debit?: number | undefined;
|
|
1155
1175
|
}>;
|
|
1156
1176
|
getAnalyticAccounts(): import("../types/api").RequestData<{
|
|
1157
|
-
|
|
1177
|
+
id: string;
|
|
1178
|
+
active: boolean;
|
|
1158
1179
|
code?: string | undefined;
|
|
1159
|
-
name
|
|
1180
|
+
name: string;
|
|
1160
1181
|
currency?: string | undefined;
|
|
1161
|
-
id?: string | undefined;
|
|
1162
1182
|
balance?: number | undefined;
|
|
1163
1183
|
credit?: number | undefined;
|
|
1164
1184
|
debit?: number | undefined;
|
|
@@ -1169,22 +1189,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1169
1189
|
name: string;
|
|
1170
1190
|
currency: string;
|
|
1171
1191
|
}): import("../types/api").RequestData<{
|
|
1172
|
-
|
|
1192
|
+
id: string;
|
|
1193
|
+
active: boolean;
|
|
1173
1194
|
code?: string | undefined;
|
|
1174
|
-
name
|
|
1195
|
+
name: string;
|
|
1175
1196
|
currency?: string | undefined;
|
|
1176
|
-
id?: string | undefined;
|
|
1177
1197
|
balance?: number | undefined;
|
|
1178
1198
|
credit?: number | undefined;
|
|
1179
1199
|
debit?: number | undefined;
|
|
1180
1200
|
analytic_plan: string;
|
|
1181
1201
|
}>;
|
|
1182
1202
|
getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
|
|
1183
|
-
|
|
1203
|
+
id: string;
|
|
1204
|
+
active: boolean;
|
|
1184
1205
|
code?: string | undefined;
|
|
1185
|
-
name
|
|
1206
|
+
name: string;
|
|
1186
1207
|
currency?: string | undefined;
|
|
1187
|
-
id?: string | undefined;
|
|
1188
1208
|
balance?: number | undefined;
|
|
1189
1209
|
credit?: number | undefined;
|
|
1190
1210
|
debit?: number | undefined;
|
|
@@ -1195,21 +1215,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1195
1215
|
name?: string | undefined;
|
|
1196
1216
|
currency?: string | undefined;
|
|
1197
1217
|
}): import("../types/api").RequestData<{
|
|
1198
|
-
|
|
1218
|
+
id: string;
|
|
1219
|
+
active: boolean;
|
|
1199
1220
|
code?: string | undefined;
|
|
1200
|
-
name
|
|
1221
|
+
name: string;
|
|
1201
1222
|
currency?: string | undefined;
|
|
1202
|
-
id?: string | undefined;
|
|
1203
1223
|
balance?: number | undefined;
|
|
1204
1224
|
credit?: number | undefined;
|
|
1205
1225
|
debit?: number | undefined;
|
|
1206
1226
|
}>;
|
|
1207
1227
|
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
|
|
1208
|
-
|
|
1228
|
+
id: string;
|
|
1229
|
+
active: boolean;
|
|
1209
1230
|
code?: string | undefined;
|
|
1210
|
-
name
|
|
1231
|
+
name: string;
|
|
1211
1232
|
currency?: string | undefined;
|
|
1212
|
-
id?: string | undefined;
|
|
1213
1233
|
balance?: number | undefined;
|
|
1214
1234
|
credit?: number | undefined;
|
|
1215
1235
|
debit?: number | undefined;
|
|
@@ -1221,22 +1241,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1221
1241
|
name?: string | undefined;
|
|
1222
1242
|
currency?: string | undefined;
|
|
1223
1243
|
}): import("../types/api").RequestData<{
|
|
1224
|
-
|
|
1244
|
+
id: string;
|
|
1245
|
+
active: boolean;
|
|
1225
1246
|
code?: string | undefined;
|
|
1226
|
-
name
|
|
1247
|
+
name: string;
|
|
1227
1248
|
currency?: string | undefined;
|
|
1228
|
-
id?: string | undefined;
|
|
1229
1249
|
balance?: number | undefined;
|
|
1230
1250
|
credit?: number | undefined;
|
|
1231
1251
|
debit?: number | undefined;
|
|
1232
1252
|
analytic_plan: string;
|
|
1233
1253
|
}>;
|
|
1234
1254
|
getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
|
|
1235
|
-
|
|
1255
|
+
id: string;
|
|
1256
|
+
active: boolean;
|
|
1236
1257
|
code?: string | undefined;
|
|
1237
|
-
name
|
|
1258
|
+
name: string;
|
|
1238
1259
|
currency?: string | undefined;
|
|
1239
|
-
id?: string | undefined;
|
|
1240
1260
|
balance?: number | undefined;
|
|
1241
1261
|
credit?: number | undefined;
|
|
1242
1262
|
debit?: number | undefined;
|
|
@@ -1773,6 +1793,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1773
1793
|
category?: string | undefined;
|
|
1774
1794
|
currency?: string | undefined;
|
|
1775
1795
|
description?: string | undefined;
|
|
1796
|
+
available_quantity?: number | undefined;
|
|
1797
|
+
cost?: number | undefined;
|
|
1776
1798
|
}[]>;
|
|
1777
1799
|
getProductById(productId: string): import("../types/api").RequestData<{
|
|
1778
1800
|
id: string;
|
|
@@ -1788,6 +1810,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1788
1810
|
category?: string | undefined;
|
|
1789
1811
|
currency?: string | undefined;
|
|
1790
1812
|
description?: string | undefined;
|
|
1813
|
+
available_quantity?: number | undefined;
|
|
1814
|
+
cost?: number | undefined;
|
|
1791
1815
|
}>;
|
|
1792
1816
|
createProduct(product: {
|
|
1793
1817
|
name: string;
|
|
@@ -1812,6 +1836,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1812
1836
|
category?: string | undefined;
|
|
1813
1837
|
currency?: string | undefined;
|
|
1814
1838
|
description?: string | undefined;
|
|
1839
|
+
available_quantity?: number | undefined;
|
|
1840
|
+
cost?: number | undefined;
|
|
1815
1841
|
}>;
|
|
1816
1842
|
getTaxes(): import("../types/api").RequestData<{
|
|
1817
1843
|
id: string;
|
|
@@ -1920,7 +1946,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1920
1946
|
birthdate?: string | undefined;
|
|
1921
1947
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
1922
1948
|
addresses?: {
|
|
1923
|
-
address_type: "main" | "delivery" | "invoice";
|
|
1949
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
1924
1950
|
name?: string | undefined;
|
|
1925
1951
|
number?: string | undefined;
|
|
1926
1952
|
box?: string | undefined;
|
|
@@ -1960,7 +1986,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1960
1986
|
birthdate?: string | undefined;
|
|
1961
1987
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
1962
1988
|
addresses?: {
|
|
1963
|
-
address_type: "main" | "delivery" | "invoice";
|
|
1989
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
1964
1990
|
name?: string | undefined;
|
|
1965
1991
|
number?: string | undefined;
|
|
1966
1992
|
box?: string | undefined;
|
|
@@ -1995,7 +2021,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1995
2021
|
birthdate?: string | undefined;
|
|
1996
2022
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
1997
2023
|
addresses?: {
|
|
1998
|
-
address_type: "main" | "delivery" | "invoice";
|
|
2024
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
1999
2025
|
name?: string | undefined;
|
|
2000
2026
|
number?: string | undefined;
|
|
2001
2027
|
box?: string | undefined;
|
|
@@ -2034,7 +2060,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2034
2060
|
birthdate?: string | undefined;
|
|
2035
2061
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
2036
2062
|
addresses?: {
|
|
2037
|
-
address_type: "main" | "delivery" | "invoice";
|
|
2063
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
2038
2064
|
name?: string | undefined;
|
|
2039
2065
|
number?: string | undefined;
|
|
2040
2066
|
box?: string | undefined;
|
|
@@ -2688,11 +2714,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2688
2714
|
link_mappings?: {
|
|
2689
2715
|
name: string;
|
|
2690
2716
|
description: string;
|
|
2717
|
+
logic?: Record<string, never> | undefined;
|
|
2691
2718
|
values: {
|
|
2692
2719
|
source_id: string;
|
|
2693
2720
|
target_id: string;
|
|
2694
2721
|
}[];
|
|
2695
2722
|
}[] | undefined;
|
|
2723
|
+
link_metadata?: Record<string, never> | undefined;
|
|
2696
2724
|
enabled_flows?: {
|
|
2697
2725
|
name: string;
|
|
2698
2726
|
description?: string | undefined;
|
|
@@ -2717,6 +2745,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2717
2745
|
}[] | undefined;
|
|
2718
2746
|
} | undefined;
|
|
2719
2747
|
values: Record<string, never>;
|
|
2748
|
+
enabled_on: string;
|
|
2720
2749
|
}[] | undefined;
|
|
2721
2750
|
}>;
|
|
2722
2751
|
getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
|
|
@@ -2793,6 +2822,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2793
2822
|
getSyncUrl: (body: {
|
|
2794
2823
|
syncid: string;
|
|
2795
2824
|
integrationids?: string[] | undefined;
|
|
2825
|
+
link_metadata?: Record<string, never> | undefined;
|
|
2796
2826
|
}) => Promise<{
|
|
2797
2827
|
url: string;
|
|
2798
2828
|
}>;
|
|
@@ -2844,6 +2874,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2844
2874
|
name?: string | undefined;
|
|
2845
2875
|
total: number;
|
|
2846
2876
|
}[] | undefined;
|
|
2877
|
+
product_id?: string | undefined;
|
|
2847
2878
|
}[];
|
|
2848
2879
|
payments: {
|
|
2849
2880
|
id?: string | undefined;
|
|
@@ -2910,6 +2941,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2910
2941
|
name?: string | undefined;
|
|
2911
2942
|
total: number;
|
|
2912
2943
|
}[] | undefined;
|
|
2944
|
+
product_id?: string | undefined;
|
|
2913
2945
|
}[];
|
|
2914
2946
|
payments: {
|
|
2915
2947
|
id?: string | undefined;
|
|
@@ -2991,6 +3023,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2991
3023
|
name: string;
|
|
2992
3024
|
extra?: string | undefined;
|
|
2993
3025
|
}[]>;
|
|
3026
|
+
getProductCategories(params: {}): import("../types/api").RequestData<{
|
|
3027
|
+
id: string;
|
|
3028
|
+
name: string;
|
|
3029
|
+
description?: string | undefined;
|
|
3030
|
+
id_parent?: string | undefined;
|
|
3031
|
+
}[]>;
|
|
3032
|
+
getProducts(params: {}): import("../types/api").RequestData<{
|
|
3033
|
+
id: string;
|
|
3034
|
+
categories?: string[] | undefined;
|
|
3035
|
+
name: string;
|
|
3036
|
+
description?: string | undefined;
|
|
3037
|
+
prices: {
|
|
3038
|
+
unit_price: number;
|
|
3039
|
+
tax_rate: number;
|
|
3040
|
+
}[];
|
|
3041
|
+
}[]>;
|
|
2994
3042
|
getSales(params: {
|
|
2995
3043
|
date_from: string;
|
|
2996
3044
|
date_to: string;
|
|
@@ -3049,6 +3097,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3049
3097
|
name?: string | undefined;
|
|
3050
3098
|
total: number;
|
|
3051
3099
|
}[] | undefined;
|
|
3100
|
+
product_id?: string | undefined;
|
|
3052
3101
|
}[];
|
|
3053
3102
|
payments: {
|
|
3054
3103
|
id?: string | undefined;
|
|
@@ -3884,21 +3933,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3884
3933
|
name: string;
|
|
3885
3934
|
currency: string;
|
|
3886
3935
|
}): import("../types/api").RequestData<{
|
|
3887
|
-
|
|
3936
|
+
id: string;
|
|
3937
|
+
active: boolean;
|
|
3888
3938
|
code?: string | undefined;
|
|
3889
|
-
name
|
|
3939
|
+
name: string;
|
|
3890
3940
|
currency?: string | undefined;
|
|
3891
|
-
id?: string | undefined;
|
|
3892
3941
|
balance?: number | undefined;
|
|
3893
3942
|
credit?: number | undefined;
|
|
3894
3943
|
debit?: number | undefined;
|
|
3895
3944
|
}>;
|
|
3896
3945
|
getAnalyticAccounts(): import("../types/api").RequestData<{
|
|
3897
|
-
|
|
3946
|
+
id: string;
|
|
3947
|
+
active: boolean;
|
|
3898
3948
|
code?: string | undefined;
|
|
3899
|
-
name
|
|
3949
|
+
name: string;
|
|
3900
3950
|
currency?: string | undefined;
|
|
3901
|
-
id?: string | undefined;
|
|
3902
3951
|
balance?: number | undefined;
|
|
3903
3952
|
credit?: number | undefined;
|
|
3904
3953
|
debit?: number | undefined;
|
|
@@ -3909,22 +3958,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3909
3958
|
name: string;
|
|
3910
3959
|
currency: string;
|
|
3911
3960
|
}): import("../types/api").RequestData<{
|
|
3912
|
-
|
|
3961
|
+
id: string;
|
|
3962
|
+
active: boolean;
|
|
3913
3963
|
code?: string | undefined;
|
|
3914
|
-
name
|
|
3964
|
+
name: string;
|
|
3915
3965
|
currency?: string | undefined;
|
|
3916
|
-
id?: string | undefined;
|
|
3917
3966
|
balance?: number | undefined;
|
|
3918
3967
|
credit?: number | undefined;
|
|
3919
3968
|
debit?: number | undefined;
|
|
3920
3969
|
analytic_plan: string;
|
|
3921
3970
|
}>;
|
|
3922
3971
|
getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
|
|
3923
|
-
|
|
3972
|
+
id: string;
|
|
3973
|
+
active: boolean;
|
|
3924
3974
|
code?: string | undefined;
|
|
3925
|
-
name
|
|
3975
|
+
name: string;
|
|
3926
3976
|
currency?: string | undefined;
|
|
3927
|
-
id?: string | undefined;
|
|
3928
3977
|
balance?: number | undefined;
|
|
3929
3978
|
credit?: number | undefined;
|
|
3930
3979
|
debit?: number | undefined;
|
|
@@ -3935,21 +3984,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3935
3984
|
name?: string | undefined;
|
|
3936
3985
|
currency?: string | undefined;
|
|
3937
3986
|
}): import("../types/api").RequestData<{
|
|
3938
|
-
|
|
3987
|
+
id: string;
|
|
3988
|
+
active: boolean;
|
|
3939
3989
|
code?: string | undefined;
|
|
3940
|
-
name
|
|
3990
|
+
name: string;
|
|
3941
3991
|
currency?: string | undefined;
|
|
3942
|
-
id?: string | undefined;
|
|
3943
3992
|
balance?: number | undefined;
|
|
3944
3993
|
credit?: number | undefined;
|
|
3945
3994
|
debit?: number | undefined;
|
|
3946
3995
|
}>;
|
|
3947
3996
|
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
|
|
3948
|
-
|
|
3997
|
+
id: string;
|
|
3998
|
+
active: boolean;
|
|
3949
3999
|
code?: string | undefined;
|
|
3950
|
-
name
|
|
4000
|
+
name: string;
|
|
3951
4001
|
currency?: string | undefined;
|
|
3952
|
-
id?: string | undefined;
|
|
3953
4002
|
balance?: number | undefined;
|
|
3954
4003
|
credit?: number | undefined;
|
|
3955
4004
|
debit?: number | undefined;
|
|
@@ -3961,22 +4010,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3961
4010
|
name?: string | undefined;
|
|
3962
4011
|
currency?: string | undefined;
|
|
3963
4012
|
}): import("../types/api").RequestData<{
|
|
3964
|
-
|
|
4013
|
+
id: string;
|
|
4014
|
+
active: boolean;
|
|
3965
4015
|
code?: string | undefined;
|
|
3966
|
-
name
|
|
4016
|
+
name: string;
|
|
3967
4017
|
currency?: string | undefined;
|
|
3968
|
-
id?: string | undefined;
|
|
3969
4018
|
balance?: number | undefined;
|
|
3970
4019
|
credit?: number | undefined;
|
|
3971
4020
|
debit?: number | undefined;
|
|
3972
4021
|
analytic_plan: string;
|
|
3973
4022
|
}>;
|
|
3974
4023
|
getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
|
|
3975
|
-
|
|
4024
|
+
id: string;
|
|
4025
|
+
active: boolean;
|
|
3976
4026
|
code?: string | undefined;
|
|
3977
|
-
name
|
|
4027
|
+
name: string;
|
|
3978
4028
|
currency?: string | undefined;
|
|
3979
|
-
id?: string | undefined;
|
|
3980
4029
|
balance?: number | undefined;
|
|
3981
4030
|
credit?: number | undefined;
|
|
3982
4031
|
debit?: number | undefined;
|
|
@@ -4513,6 +4562,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4513
4562
|
category?: string | undefined;
|
|
4514
4563
|
currency?: string | undefined;
|
|
4515
4564
|
description?: string | undefined;
|
|
4565
|
+
available_quantity?: number | undefined;
|
|
4566
|
+
cost?: number | undefined;
|
|
4516
4567
|
}[]>;
|
|
4517
4568
|
getProductById(productId: string): import("../types/api").RequestData<{
|
|
4518
4569
|
id: string;
|
|
@@ -4528,6 +4579,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4528
4579
|
category?: string | undefined;
|
|
4529
4580
|
currency?: string | undefined;
|
|
4530
4581
|
description?: string | undefined;
|
|
4582
|
+
available_quantity?: number | undefined;
|
|
4583
|
+
cost?: number | undefined;
|
|
4531
4584
|
}>;
|
|
4532
4585
|
createProduct(product: {
|
|
4533
4586
|
name: string;
|
|
@@ -4552,6 +4605,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4552
4605
|
category?: string | undefined;
|
|
4553
4606
|
currency?: string | undefined;
|
|
4554
4607
|
description?: string | undefined;
|
|
4608
|
+
available_quantity?: number | undefined;
|
|
4609
|
+
cost?: number | undefined;
|
|
4555
4610
|
}>;
|
|
4556
4611
|
getTaxes(): import("../types/api").RequestData<{
|
|
4557
4612
|
id: string;
|
|
@@ -4660,7 +4715,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4660
4715
|
birthdate?: string | undefined;
|
|
4661
4716
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
4662
4717
|
addresses?: {
|
|
4663
|
-
address_type: "main" | "delivery" | "invoice";
|
|
4718
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
4664
4719
|
name?: string | undefined;
|
|
4665
4720
|
number?: string | undefined;
|
|
4666
4721
|
box?: string | undefined;
|
|
@@ -4700,7 +4755,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4700
4755
|
birthdate?: string | undefined;
|
|
4701
4756
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
4702
4757
|
addresses?: {
|
|
4703
|
-
address_type: "main" | "delivery" | "invoice";
|
|
4758
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
4704
4759
|
name?: string | undefined;
|
|
4705
4760
|
number?: string | undefined;
|
|
4706
4761
|
box?: string | undefined;
|
|
@@ -4735,7 +4790,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4735
4790
|
birthdate?: string | undefined;
|
|
4736
4791
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
4737
4792
|
addresses?: {
|
|
4738
|
-
address_type: "main" | "delivery" | "invoice";
|
|
4793
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
4739
4794
|
name?: string | undefined;
|
|
4740
4795
|
number?: string | undefined;
|
|
4741
4796
|
box?: string | undefined;
|
|
@@ -4774,7 +4829,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4774
4829
|
birthdate?: string | undefined;
|
|
4775
4830
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
4776
4831
|
addresses?: {
|
|
4777
|
-
address_type: "main" | "delivery" | "invoice";
|
|
4832
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
4778
4833
|
name?: string | undefined;
|
|
4779
4834
|
number?: string | undefined;
|
|
4780
4835
|
box?: string | undefined;
|
|
@@ -5428,11 +5483,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5428
5483
|
link_mappings?: {
|
|
5429
5484
|
name: string;
|
|
5430
5485
|
description: string;
|
|
5486
|
+
logic?: Record<string, never> | undefined;
|
|
5431
5487
|
values: {
|
|
5432
5488
|
source_id: string;
|
|
5433
5489
|
target_id: string;
|
|
5434
5490
|
}[];
|
|
5435
5491
|
}[] | undefined;
|
|
5492
|
+
link_metadata?: Record<string, never> | undefined;
|
|
5436
5493
|
enabled_flows?: {
|
|
5437
5494
|
name: string;
|
|
5438
5495
|
description?: string | undefined;
|
|
@@ -5457,6 +5514,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5457
5514
|
}[] | undefined;
|
|
5458
5515
|
} | undefined;
|
|
5459
5516
|
values: Record<string, never>;
|
|
5517
|
+
enabled_on: string;
|
|
5460
5518
|
}[] | undefined;
|
|
5461
5519
|
}>;
|
|
5462
5520
|
getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
|
|
@@ -5533,6 +5591,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5533
5591
|
getSyncUrl: (body: {
|
|
5534
5592
|
syncid: string;
|
|
5535
5593
|
integrationids?: string[] | undefined;
|
|
5594
|
+
link_metadata?: Record<string, never> | undefined;
|
|
5536
5595
|
}) => Promise<{
|
|
5537
5596
|
url: string;
|
|
5538
5597
|
}>;
|
|
@@ -5584,6 +5643,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5584
5643
|
name?: string | undefined;
|
|
5585
5644
|
total: number;
|
|
5586
5645
|
}[] | undefined;
|
|
5646
|
+
product_id?: string | undefined;
|
|
5587
5647
|
}[];
|
|
5588
5648
|
payments: {
|
|
5589
5649
|
id?: string | undefined;
|
|
@@ -5650,6 +5710,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5650
5710
|
name?: string | undefined;
|
|
5651
5711
|
total: number;
|
|
5652
5712
|
}[] | undefined;
|
|
5713
|
+
product_id?: string | undefined;
|
|
5653
5714
|
}[];
|
|
5654
5715
|
payments: {
|
|
5655
5716
|
id?: string | undefined;
|
|
@@ -5731,6 +5792,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5731
5792
|
name: string;
|
|
5732
5793
|
extra?: string | undefined;
|
|
5733
5794
|
}[]>;
|
|
5795
|
+
getProductCategories(params: {}): import("../types/api").RequestData<{
|
|
5796
|
+
id: string;
|
|
5797
|
+
name: string;
|
|
5798
|
+
description?: string | undefined;
|
|
5799
|
+
id_parent?: string | undefined;
|
|
5800
|
+
}[]>;
|
|
5801
|
+
getProducts(params: {}): import("../types/api").RequestData<{
|
|
5802
|
+
id: string;
|
|
5803
|
+
categories?: string[] | undefined;
|
|
5804
|
+
name: string;
|
|
5805
|
+
description?: string | undefined;
|
|
5806
|
+
prices: {
|
|
5807
|
+
unit_price: number;
|
|
5808
|
+
tax_rate: number;
|
|
5809
|
+
}[];
|
|
5810
|
+
}[]>;
|
|
5734
5811
|
getSales(params: {
|
|
5735
5812
|
date_from: string;
|
|
5736
5813
|
date_to: string;
|
|
@@ -5789,6 +5866,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5789
5866
|
name?: string | undefined;
|
|
5790
5867
|
total: number;
|
|
5791
5868
|
}[] | undefined;
|
|
5869
|
+
product_id?: string | undefined;
|
|
5792
5870
|
}[];
|
|
5793
5871
|
payments: {
|
|
5794
5872
|
id?: string | undefined;
|
|
@@ -6624,21 +6702,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6624
6702
|
name: string;
|
|
6625
6703
|
currency: string;
|
|
6626
6704
|
}): import("../types/api").RequestData<{
|
|
6627
|
-
|
|
6705
|
+
id: string;
|
|
6706
|
+
active: boolean;
|
|
6628
6707
|
code?: string | undefined;
|
|
6629
|
-
name
|
|
6708
|
+
name: string;
|
|
6630
6709
|
currency?: string | undefined;
|
|
6631
|
-
id?: string | undefined;
|
|
6632
6710
|
balance?: number | undefined;
|
|
6633
6711
|
credit?: number | undefined;
|
|
6634
6712
|
debit?: number | undefined;
|
|
6635
6713
|
}>;
|
|
6636
6714
|
getAnalyticAccounts(): import("../types/api").RequestData<{
|
|
6637
|
-
|
|
6715
|
+
id: string;
|
|
6716
|
+
active: boolean;
|
|
6638
6717
|
code?: string | undefined;
|
|
6639
|
-
name
|
|
6718
|
+
name: string;
|
|
6640
6719
|
currency?: string | undefined;
|
|
6641
|
-
id?: string | undefined;
|
|
6642
6720
|
balance?: number | undefined;
|
|
6643
6721
|
credit?: number | undefined;
|
|
6644
6722
|
debit?: number | undefined;
|
|
@@ -6649,22 +6727,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6649
6727
|
name: string;
|
|
6650
6728
|
currency: string;
|
|
6651
6729
|
}): import("../types/api").RequestData<{
|
|
6652
|
-
|
|
6730
|
+
id: string;
|
|
6731
|
+
active: boolean;
|
|
6653
6732
|
code?: string | undefined;
|
|
6654
|
-
name
|
|
6733
|
+
name: string;
|
|
6655
6734
|
currency?: string | undefined;
|
|
6656
|
-
id?: string | undefined;
|
|
6657
6735
|
balance?: number | undefined;
|
|
6658
6736
|
credit?: number | undefined;
|
|
6659
6737
|
debit?: number | undefined;
|
|
6660
6738
|
analytic_plan: string;
|
|
6661
6739
|
}>;
|
|
6662
6740
|
getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
|
|
6663
|
-
|
|
6741
|
+
id: string;
|
|
6742
|
+
active: boolean;
|
|
6664
6743
|
code?: string | undefined;
|
|
6665
|
-
name
|
|
6744
|
+
name: string;
|
|
6666
6745
|
currency?: string | undefined;
|
|
6667
|
-
id?: string | undefined;
|
|
6668
6746
|
balance?: number | undefined;
|
|
6669
6747
|
credit?: number | undefined;
|
|
6670
6748
|
debit?: number | undefined;
|
|
@@ -6675,21 +6753,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6675
6753
|
name?: string | undefined;
|
|
6676
6754
|
currency?: string | undefined;
|
|
6677
6755
|
}): import("../types/api").RequestData<{
|
|
6678
|
-
|
|
6756
|
+
id: string;
|
|
6757
|
+
active: boolean;
|
|
6679
6758
|
code?: string | undefined;
|
|
6680
|
-
name
|
|
6759
|
+
name: string;
|
|
6681
6760
|
currency?: string | undefined;
|
|
6682
|
-
id?: string | undefined;
|
|
6683
6761
|
balance?: number | undefined;
|
|
6684
6762
|
credit?: number | undefined;
|
|
6685
6763
|
debit?: number | undefined;
|
|
6686
6764
|
}>;
|
|
6687
6765
|
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
|
|
6688
|
-
|
|
6766
|
+
id: string;
|
|
6767
|
+
active: boolean;
|
|
6689
6768
|
code?: string | undefined;
|
|
6690
|
-
name
|
|
6769
|
+
name: string;
|
|
6691
6770
|
currency?: string | undefined;
|
|
6692
|
-
id?: string | undefined;
|
|
6693
6771
|
balance?: number | undefined;
|
|
6694
6772
|
credit?: number | undefined;
|
|
6695
6773
|
debit?: number | undefined;
|
|
@@ -6701,22 +6779,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6701
6779
|
name?: string | undefined;
|
|
6702
6780
|
currency?: string | undefined;
|
|
6703
6781
|
}): import("../types/api").RequestData<{
|
|
6704
|
-
|
|
6782
|
+
id: string;
|
|
6783
|
+
active: boolean;
|
|
6705
6784
|
code?: string | undefined;
|
|
6706
|
-
name
|
|
6785
|
+
name: string;
|
|
6707
6786
|
currency?: string | undefined;
|
|
6708
|
-
id?: string | undefined;
|
|
6709
6787
|
balance?: number | undefined;
|
|
6710
6788
|
credit?: number | undefined;
|
|
6711
6789
|
debit?: number | undefined;
|
|
6712
6790
|
analytic_plan: string;
|
|
6713
6791
|
}>;
|
|
6714
6792
|
getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
|
|
6715
|
-
|
|
6793
|
+
id: string;
|
|
6794
|
+
active: boolean;
|
|
6716
6795
|
code?: string | undefined;
|
|
6717
|
-
name
|
|
6796
|
+
name: string;
|
|
6718
6797
|
currency?: string | undefined;
|
|
6719
|
-
id?: string | undefined;
|
|
6720
6798
|
balance?: number | undefined;
|
|
6721
6799
|
credit?: number | undefined;
|
|
6722
6800
|
debit?: number | undefined;
|
|
@@ -7253,6 +7331,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7253
7331
|
category?: string | undefined;
|
|
7254
7332
|
currency?: string | undefined;
|
|
7255
7333
|
description?: string | undefined;
|
|
7334
|
+
available_quantity?: number | undefined;
|
|
7335
|
+
cost?: number | undefined;
|
|
7256
7336
|
}[]>;
|
|
7257
7337
|
getProductById(productId: string): import("../types/api").RequestData<{
|
|
7258
7338
|
id: string;
|
|
@@ -7268,6 +7348,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7268
7348
|
category?: string | undefined;
|
|
7269
7349
|
currency?: string | undefined;
|
|
7270
7350
|
description?: string | undefined;
|
|
7351
|
+
available_quantity?: number | undefined;
|
|
7352
|
+
cost?: number | undefined;
|
|
7271
7353
|
}>;
|
|
7272
7354
|
createProduct(product: {
|
|
7273
7355
|
name: string;
|
|
@@ -7292,6 +7374,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7292
7374
|
category?: string | undefined;
|
|
7293
7375
|
currency?: string | undefined;
|
|
7294
7376
|
description?: string | undefined;
|
|
7377
|
+
available_quantity?: number | undefined;
|
|
7378
|
+
cost?: number | undefined;
|
|
7295
7379
|
}>;
|
|
7296
7380
|
getTaxes(): import("../types/api").RequestData<{
|
|
7297
7381
|
id: string;
|
|
@@ -7400,7 +7484,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7400
7484
|
birthdate?: string | undefined;
|
|
7401
7485
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
7402
7486
|
addresses?: {
|
|
7403
|
-
address_type: "main" | "delivery" | "invoice";
|
|
7487
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
7404
7488
|
name?: string | undefined;
|
|
7405
7489
|
number?: string | undefined;
|
|
7406
7490
|
box?: string | undefined;
|
|
@@ -7440,7 +7524,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7440
7524
|
birthdate?: string | undefined;
|
|
7441
7525
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
7442
7526
|
addresses?: {
|
|
7443
|
-
address_type: "main" | "delivery" | "invoice";
|
|
7527
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
7444
7528
|
name?: string | undefined;
|
|
7445
7529
|
number?: string | undefined;
|
|
7446
7530
|
box?: string | undefined;
|
|
@@ -7475,7 +7559,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7475
7559
|
birthdate?: string | undefined;
|
|
7476
7560
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
7477
7561
|
addresses?: {
|
|
7478
|
-
address_type: "main" | "delivery" | "invoice";
|
|
7562
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
7479
7563
|
name?: string | undefined;
|
|
7480
7564
|
number?: string | undefined;
|
|
7481
7565
|
box?: string | undefined;
|
|
@@ -7514,7 +7598,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7514
7598
|
birthdate?: string | undefined;
|
|
7515
7599
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
7516
7600
|
addresses?: {
|
|
7517
|
-
address_type: "main" | "delivery" | "invoice";
|
|
7601
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
7518
7602
|
name?: string | undefined;
|
|
7519
7603
|
number?: string | undefined;
|
|
7520
7604
|
box?: string | undefined;
|
|
@@ -8168,11 +8252,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8168
8252
|
link_mappings?: {
|
|
8169
8253
|
name: string;
|
|
8170
8254
|
description: string;
|
|
8255
|
+
logic?: Record<string, never> | undefined;
|
|
8171
8256
|
values: {
|
|
8172
8257
|
source_id: string;
|
|
8173
8258
|
target_id: string;
|
|
8174
8259
|
}[];
|
|
8175
8260
|
}[] | undefined;
|
|
8261
|
+
link_metadata?: Record<string, never> | undefined;
|
|
8176
8262
|
enabled_flows?: {
|
|
8177
8263
|
name: string;
|
|
8178
8264
|
description?: string | undefined;
|
|
@@ -8197,6 +8283,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8197
8283
|
}[] | undefined;
|
|
8198
8284
|
} | undefined;
|
|
8199
8285
|
values: Record<string, never>;
|
|
8286
|
+
enabled_on: string;
|
|
8200
8287
|
}[] | undefined;
|
|
8201
8288
|
}>;
|
|
8202
8289
|
getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
|
|
@@ -8273,6 +8360,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8273
8360
|
getSyncUrl: (body: {
|
|
8274
8361
|
syncid: string;
|
|
8275
8362
|
integrationids?: string[] | undefined;
|
|
8363
|
+
link_metadata?: Record<string, never> | undefined;
|
|
8276
8364
|
}) => Promise<{
|
|
8277
8365
|
url: string;
|
|
8278
8366
|
}>;
|
|
@@ -8324,6 +8412,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8324
8412
|
name?: string | undefined;
|
|
8325
8413
|
total: number;
|
|
8326
8414
|
}[] | undefined;
|
|
8415
|
+
product_id?: string | undefined;
|
|
8327
8416
|
}[];
|
|
8328
8417
|
payments: {
|
|
8329
8418
|
id?: string | undefined;
|
|
@@ -8390,6 +8479,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8390
8479
|
name?: string | undefined;
|
|
8391
8480
|
total: number;
|
|
8392
8481
|
}[] | undefined;
|
|
8482
|
+
product_id?: string | undefined;
|
|
8393
8483
|
}[];
|
|
8394
8484
|
payments: {
|
|
8395
8485
|
id?: string | undefined;
|
|
@@ -8471,6 +8561,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8471
8561
|
name: string;
|
|
8472
8562
|
extra?: string | undefined;
|
|
8473
8563
|
}[]>;
|
|
8564
|
+
getProductCategories(params: {}): import("../types/api").RequestData<{
|
|
8565
|
+
id: string;
|
|
8566
|
+
name: string;
|
|
8567
|
+
description?: string | undefined;
|
|
8568
|
+
id_parent?: string | undefined;
|
|
8569
|
+
}[]>;
|
|
8570
|
+
getProducts(params: {}): import("../types/api").RequestData<{
|
|
8571
|
+
id: string;
|
|
8572
|
+
categories?: string[] | undefined;
|
|
8573
|
+
name: string;
|
|
8574
|
+
description?: string | undefined;
|
|
8575
|
+
prices: {
|
|
8576
|
+
unit_price: number;
|
|
8577
|
+
tax_rate: number;
|
|
8578
|
+
}[];
|
|
8579
|
+
}[]>;
|
|
8474
8580
|
getSales(params: {
|
|
8475
8581
|
date_from: string;
|
|
8476
8582
|
date_to: string;
|
|
@@ -8529,6 +8635,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8529
8635
|
name?: string | undefined;
|
|
8530
8636
|
total: number;
|
|
8531
8637
|
}[] | undefined;
|
|
8638
|
+
product_id?: string | undefined;
|
|
8532
8639
|
}[];
|
|
8533
8640
|
payments: {
|
|
8534
8641
|
id?: string | undefined;
|
|
@@ -9364,21 +9471,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9364
9471
|
name: string;
|
|
9365
9472
|
currency: string;
|
|
9366
9473
|
}): import("../types/api").RequestData<{
|
|
9367
|
-
|
|
9474
|
+
id: string;
|
|
9475
|
+
active: boolean;
|
|
9368
9476
|
code?: string | undefined;
|
|
9369
|
-
name
|
|
9477
|
+
name: string;
|
|
9370
9478
|
currency?: string | undefined;
|
|
9371
|
-
id?: string | undefined;
|
|
9372
9479
|
balance?: number | undefined;
|
|
9373
9480
|
credit?: number | undefined;
|
|
9374
9481
|
debit?: number | undefined;
|
|
9375
9482
|
}>;
|
|
9376
9483
|
getAnalyticAccounts(): import("../types/api").RequestData<{
|
|
9377
|
-
|
|
9484
|
+
id: string;
|
|
9485
|
+
active: boolean;
|
|
9378
9486
|
code?: string | undefined;
|
|
9379
|
-
name
|
|
9487
|
+
name: string;
|
|
9380
9488
|
currency?: string | undefined;
|
|
9381
|
-
id?: string | undefined;
|
|
9382
9489
|
balance?: number | undefined;
|
|
9383
9490
|
credit?: number | undefined;
|
|
9384
9491
|
debit?: number | undefined;
|
|
@@ -9389,22 +9496,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9389
9496
|
name: string;
|
|
9390
9497
|
currency: string;
|
|
9391
9498
|
}): import("../types/api").RequestData<{
|
|
9392
|
-
|
|
9499
|
+
id: string;
|
|
9500
|
+
active: boolean;
|
|
9393
9501
|
code?: string | undefined;
|
|
9394
|
-
name
|
|
9502
|
+
name: string;
|
|
9395
9503
|
currency?: string | undefined;
|
|
9396
|
-
id?: string | undefined;
|
|
9397
9504
|
balance?: number | undefined;
|
|
9398
9505
|
credit?: number | undefined;
|
|
9399
9506
|
debit?: number | undefined;
|
|
9400
9507
|
analytic_plan: string;
|
|
9401
9508
|
}>;
|
|
9402
9509
|
getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
|
|
9403
|
-
|
|
9510
|
+
id: string;
|
|
9511
|
+
active: boolean;
|
|
9404
9512
|
code?: string | undefined;
|
|
9405
|
-
name
|
|
9513
|
+
name: string;
|
|
9406
9514
|
currency?: string | undefined;
|
|
9407
|
-
id?: string | undefined;
|
|
9408
9515
|
balance?: number | undefined;
|
|
9409
9516
|
credit?: number | undefined;
|
|
9410
9517
|
debit?: number | undefined;
|
|
@@ -9415,21 +9522,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9415
9522
|
name?: string | undefined;
|
|
9416
9523
|
currency?: string | undefined;
|
|
9417
9524
|
}): import("../types/api").RequestData<{
|
|
9418
|
-
|
|
9525
|
+
id: string;
|
|
9526
|
+
active: boolean;
|
|
9419
9527
|
code?: string | undefined;
|
|
9420
|
-
name
|
|
9528
|
+
name: string;
|
|
9421
9529
|
currency?: string | undefined;
|
|
9422
|
-
id?: string | undefined;
|
|
9423
9530
|
balance?: number | undefined;
|
|
9424
9531
|
credit?: number | undefined;
|
|
9425
9532
|
debit?: number | undefined;
|
|
9426
9533
|
}>;
|
|
9427
9534
|
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
|
|
9428
|
-
|
|
9535
|
+
id: string;
|
|
9536
|
+
active: boolean;
|
|
9429
9537
|
code?: string | undefined;
|
|
9430
|
-
name
|
|
9538
|
+
name: string;
|
|
9431
9539
|
currency?: string | undefined;
|
|
9432
|
-
id?: string | undefined;
|
|
9433
9540
|
balance?: number | undefined;
|
|
9434
9541
|
credit?: number | undefined;
|
|
9435
9542
|
debit?: number | undefined;
|
|
@@ -9441,22 +9548,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9441
9548
|
name?: string | undefined;
|
|
9442
9549
|
currency?: string | undefined;
|
|
9443
9550
|
}): import("../types/api").RequestData<{
|
|
9444
|
-
|
|
9551
|
+
id: string;
|
|
9552
|
+
active: boolean;
|
|
9445
9553
|
code?: string | undefined;
|
|
9446
|
-
name
|
|
9554
|
+
name: string;
|
|
9447
9555
|
currency?: string | undefined;
|
|
9448
|
-
id?: string | undefined;
|
|
9449
9556
|
balance?: number | undefined;
|
|
9450
9557
|
credit?: number | undefined;
|
|
9451
9558
|
debit?: number | undefined;
|
|
9452
9559
|
analytic_plan: string;
|
|
9453
9560
|
}>;
|
|
9454
9561
|
getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
|
|
9455
|
-
|
|
9562
|
+
id: string;
|
|
9563
|
+
active: boolean;
|
|
9456
9564
|
code?: string | undefined;
|
|
9457
|
-
name
|
|
9565
|
+
name: string;
|
|
9458
9566
|
currency?: string | undefined;
|
|
9459
|
-
id?: string | undefined;
|
|
9460
9567
|
balance?: number | undefined;
|
|
9461
9568
|
credit?: number | undefined;
|
|
9462
9569
|
debit?: number | undefined;
|
|
@@ -9993,6 +10100,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9993
10100
|
category?: string | undefined;
|
|
9994
10101
|
currency?: string | undefined;
|
|
9995
10102
|
description?: string | undefined;
|
|
10103
|
+
available_quantity?: number | undefined;
|
|
10104
|
+
cost?: number | undefined;
|
|
9996
10105
|
}[]>;
|
|
9997
10106
|
getProductById(productId: string): import("../types/api").RequestData<{
|
|
9998
10107
|
id: string;
|
|
@@ -10008,6 +10117,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10008
10117
|
category?: string | undefined;
|
|
10009
10118
|
currency?: string | undefined;
|
|
10010
10119
|
description?: string | undefined;
|
|
10120
|
+
available_quantity?: number | undefined;
|
|
10121
|
+
cost?: number | undefined;
|
|
10011
10122
|
}>;
|
|
10012
10123
|
createProduct(product: {
|
|
10013
10124
|
name: string;
|
|
@@ -10032,6 +10143,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10032
10143
|
category?: string | undefined;
|
|
10033
10144
|
currency?: string | undefined;
|
|
10034
10145
|
description?: string | undefined;
|
|
10146
|
+
available_quantity?: number | undefined;
|
|
10147
|
+
cost?: number | undefined;
|
|
10035
10148
|
}>;
|
|
10036
10149
|
getTaxes(): import("../types/api").RequestData<{
|
|
10037
10150
|
id: string;
|
|
@@ -10140,7 +10253,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10140
10253
|
birthdate?: string | undefined;
|
|
10141
10254
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
10142
10255
|
addresses?: {
|
|
10143
|
-
address_type: "main" | "delivery" | "invoice";
|
|
10256
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
10144
10257
|
name?: string | undefined;
|
|
10145
10258
|
number?: string | undefined;
|
|
10146
10259
|
box?: string | undefined;
|
|
@@ -10180,7 +10293,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10180
10293
|
birthdate?: string | undefined;
|
|
10181
10294
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
10182
10295
|
addresses?: {
|
|
10183
|
-
address_type: "main" | "delivery" | "invoice";
|
|
10296
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
10184
10297
|
name?: string | undefined;
|
|
10185
10298
|
number?: string | undefined;
|
|
10186
10299
|
box?: string | undefined;
|
|
@@ -10215,7 +10328,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10215
10328
|
birthdate?: string | undefined;
|
|
10216
10329
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
10217
10330
|
addresses?: {
|
|
10218
|
-
address_type: "main" | "delivery" | "invoice";
|
|
10331
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
10219
10332
|
name?: string | undefined;
|
|
10220
10333
|
number?: string | undefined;
|
|
10221
10334
|
box?: string | undefined;
|
|
@@ -10254,7 +10367,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10254
10367
|
birthdate?: string | undefined;
|
|
10255
10368
|
gender?: "H" | "F" | "N/A" | undefined;
|
|
10256
10369
|
addresses?: {
|
|
10257
|
-
address_type: "main" | "delivery" | "invoice";
|
|
10370
|
+
address_type: "main" | "delivery" | "invoice" | "other";
|
|
10258
10371
|
name?: string | undefined;
|
|
10259
10372
|
number?: string | undefined;
|
|
10260
10373
|
box?: string | undefined;
|
|
@@ -10908,11 +11021,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10908
11021
|
link_mappings?: {
|
|
10909
11022
|
name: string;
|
|
10910
11023
|
description: string;
|
|
11024
|
+
logic?: Record<string, never> | undefined;
|
|
10911
11025
|
values: {
|
|
10912
11026
|
source_id: string;
|
|
10913
11027
|
target_id: string;
|
|
10914
11028
|
}[];
|
|
10915
11029
|
}[] | undefined;
|
|
11030
|
+
link_metadata?: Record<string, never> | undefined;
|
|
10916
11031
|
enabled_flows?: {
|
|
10917
11032
|
name: string;
|
|
10918
11033
|
description?: string | undefined;
|
|
@@ -10937,6 +11052,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10937
11052
|
}[] | undefined;
|
|
10938
11053
|
} | undefined;
|
|
10939
11054
|
values: Record<string, never>;
|
|
11055
|
+
enabled_on: string;
|
|
10940
11056
|
}[] | undefined;
|
|
10941
11057
|
}>;
|
|
10942
11058
|
getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
|