@chift/chift-nodejs 1.0.30 → 1.0.32
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/dist/src/modules/accounting.d.ts +2 -2
- package/dist/src/modules/api.d.ts +293 -91
- package/dist/src/modules/consumer.d.ts +57 -19
- package/dist/src/modules/consumers.d.ts +285 -90
- package/dist/src/modules/datastores.d.ts +3 -0
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/integrations.d.ts +5 -1
- package/dist/src/modules/internalApi.js +8 -1
- package/dist/src/modules/invoicing.d.ts +1 -1
- package/dist/src/modules/payment.d.ts +1 -1
- package/dist/src/modules/pos.d.ts +1 -1
- package/dist/src/modules/sync.d.ts +228 -72
- package/dist/src/types/public-api/schema.d.ts +1599 -1274
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +1599 -1274
|
@@ -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']['PostConnectionItem
|
|
22
|
+
createConnection: (body?: components['schemas']['PostConnectionItem'] | null) => Promise<{
|
|
23
23
|
url: string;
|
|
24
24
|
}>;
|
|
25
25
|
updateConnection: (connectionId: string, body?: components['schemas']['PatchConnectionItem']) => Promise<{
|
|
@@ -81,7 +81,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
81
81
|
total_refund: number | null;
|
|
82
82
|
total_tip: number | null;
|
|
83
83
|
delivery_fee: number | null;
|
|
84
|
-
mode
|
|
84
|
+
mode: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | "UNKNOWN" | null;
|
|
85
|
+
source: "UNKNOWN" | "WEB" | "MOBILE" | "KIOSK" | "POS" | "REMOTE_POS" | "JUSTEAT" | "FOODORA" | "UBEREATS" | "GLOVO" | "DELIVEROO" | "SMILEIN" | null;
|
|
85
86
|
currency?: string | null | undefined;
|
|
86
87
|
country?: string | null | undefined;
|
|
87
88
|
loyalty?: number | null | undefined;
|
|
@@ -116,7 +117,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
116
117
|
discounts: {
|
|
117
118
|
name?: string | null | undefined;
|
|
118
119
|
total: number;
|
|
119
|
-
type: "
|
|
120
|
+
type: "UNKNOWN" | "OFFERED" | "LOSS";
|
|
120
121
|
}[] | null;
|
|
121
122
|
product_id?: string | null | undefined;
|
|
122
123
|
accounting_category_id?: string | null | undefined;
|
|
@@ -160,7 +161,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
160
161
|
total_refund: number | null;
|
|
161
162
|
total_tip: number | null;
|
|
162
163
|
delivery_fee: number | null;
|
|
163
|
-
mode
|
|
164
|
+
mode: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | "UNKNOWN" | null;
|
|
165
|
+
source: "UNKNOWN" | "WEB" | "MOBILE" | "KIOSK" | "POS" | "REMOTE_POS" | "JUSTEAT" | "FOODORA" | "UBEREATS" | "GLOVO" | "DELIVEROO" | "SMILEIN" | null;
|
|
164
166
|
currency?: string | null | undefined;
|
|
165
167
|
country?: string | null | undefined;
|
|
166
168
|
loyalty?: number | null | undefined;
|
|
@@ -195,7 +197,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
195
197
|
discounts: {
|
|
196
198
|
name?: string | null | undefined;
|
|
197
199
|
total: number;
|
|
198
|
-
type: "
|
|
200
|
+
type: "UNKNOWN" | "OFFERED" | "LOSS";
|
|
199
201
|
}[] | null;
|
|
200
202
|
product_id?: string | null | undefined;
|
|
201
203
|
accounting_category_id?: string | null | undefined;
|
|
@@ -349,7 +351,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
349
351
|
total_refund: number | null;
|
|
350
352
|
total_tip: number | null;
|
|
351
353
|
delivery_fee: number | null;
|
|
352
|
-
mode
|
|
354
|
+
mode: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | "UNKNOWN" | null;
|
|
355
|
+
source: "UNKNOWN" | "WEB" | "MOBILE" | "KIOSK" | "POS" | "REMOTE_POS" | "JUSTEAT" | "FOODORA" | "UBEREATS" | "GLOVO" | "DELIVEROO" | "SMILEIN" | null;
|
|
353
356
|
currency?: string | null | undefined;
|
|
354
357
|
country?: string | null | undefined;
|
|
355
358
|
loyalty?: number | null | undefined;
|
|
@@ -384,7 +387,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
384
387
|
discounts: {
|
|
385
388
|
name?: string | null | undefined;
|
|
386
389
|
total: number;
|
|
387
|
-
type: "
|
|
390
|
+
type: "UNKNOWN" | "OFFERED" | "LOSS";
|
|
388
391
|
}[] | null;
|
|
389
392
|
product_id?: string | null | undefined;
|
|
390
393
|
accounting_category_id?: string | null | undefined;
|
|
@@ -454,7 +457,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
454
457
|
total_refund: number | null;
|
|
455
458
|
total_tip: number | null;
|
|
456
459
|
delivery_fee: number | null;
|
|
457
|
-
mode
|
|
460
|
+
mode: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | "UNKNOWN" | null;
|
|
461
|
+
source: "UNKNOWN" | "WEB" | "MOBILE" | "KIOSK" | "POS" | "REMOTE_POS" | "JUSTEAT" | "FOODORA" | "UBEREATS" | "GLOVO" | "DELIVEROO" | "SMILEIN" | null;
|
|
458
462
|
currency?: string | null | undefined;
|
|
459
463
|
country?: string | null | undefined;
|
|
460
464
|
loyalty?: number | null | undefined;
|
|
@@ -483,7 +487,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
483
487
|
discounts: {
|
|
484
488
|
name?: string | null | undefined;
|
|
485
489
|
total: number;
|
|
486
|
-
type: "
|
|
490
|
+
type: "UNKNOWN" | "OFFERED" | "LOSS";
|
|
487
491
|
}[] | null;
|
|
488
492
|
product_id?: string | null | undefined;
|
|
489
493
|
accounting_category_id?: string | null | undefined;
|
|
@@ -709,7 +713,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
709
713
|
discounts: {
|
|
710
714
|
name?: string | null | undefined;
|
|
711
715
|
total: number;
|
|
712
|
-
type: "
|
|
716
|
+
type: "UNKNOWN" | "OFFERED" | "LOSS";
|
|
713
717
|
}[] | null;
|
|
714
718
|
product_id?: string | null | undefined;
|
|
715
719
|
accounting_category_id?: string | null | undefined;
|
|
@@ -2646,6 +2650,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2646
2650
|
account: string;
|
|
2647
2651
|
amount: number;
|
|
2648
2652
|
description?: string | null | undefined;
|
|
2653
|
+
tax_info?: {
|
|
2654
|
+
tax_code: string;
|
|
2655
|
+
tax_amount: number;
|
|
2656
|
+
vat_account?: string | null | undefined;
|
|
2657
|
+
reversed_vat_account?: string | null | undefined;
|
|
2658
|
+
description?: string | null | undefined;
|
|
2659
|
+
} | null | undefined;
|
|
2649
2660
|
automated_matching_number?: string | null | undefined;
|
|
2650
2661
|
}[];
|
|
2651
2662
|
pdf?: string | null | undefined;
|
|
@@ -2653,6 +2664,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2653
2664
|
folder_id?: string | null | undefined;
|
|
2654
2665
|
financial_counterpart_account?: string | null | undefined;
|
|
2655
2666
|
force_currency_exchange?: boolean | null | undefined;
|
|
2667
|
+
ignore_accounting_id?: boolean | undefined;
|
|
2656
2668
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2657
2669
|
date: string;
|
|
2658
2670
|
journal_id: string;
|
|
@@ -2666,6 +2678,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2666
2678
|
account: string;
|
|
2667
2679
|
amount: number;
|
|
2668
2680
|
description?: string | null | undefined;
|
|
2681
|
+
tax_info?: {
|
|
2682
|
+
tax_code: string;
|
|
2683
|
+
tax_amount: number;
|
|
2684
|
+
vat_account?: string | null | undefined;
|
|
2685
|
+
reversed_vat_account?: string | null | undefined;
|
|
2686
|
+
description?: string | null | undefined;
|
|
2687
|
+
} | null | undefined;
|
|
2669
2688
|
automated_matching_number?: string | null | undefined;
|
|
2670
2689
|
counterpart_account: string;
|
|
2671
2690
|
}[];
|
|
@@ -2906,39 +2925,49 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2906
2925
|
createBankTransactions(bankStatement: {
|
|
2907
2926
|
bank_statement_date: string;
|
|
2908
2927
|
bank_account_id: string;
|
|
2928
|
+
currency: string;
|
|
2909
2929
|
external_bank_statement_id: string;
|
|
2910
2930
|
opening_balance?: number | null | undefined;
|
|
2911
2931
|
pdf?: string | null | undefined;
|
|
2912
2932
|
items: {
|
|
2913
|
-
|
|
2914
|
-
account?: string | null | undefined;
|
|
2933
|
+
general_ledger_account?: string | null | undefined;
|
|
2915
2934
|
description?: string | null | undefined;
|
|
2916
2935
|
external_transaction_id?: string | null | undefined;
|
|
2917
|
-
date: string;
|
|
2918
2936
|
amount: number;
|
|
2919
2937
|
fee_amount: number | null;
|
|
2920
2938
|
tax_amount: number | null;
|
|
2921
|
-
currency: string;
|
|
2922
2939
|
currency_exchange_rate: number | null;
|
|
2940
|
+
counterpart?: {
|
|
2941
|
+
counterpart_type?: "supplier" | "customer" | "employee" | null | undefined;
|
|
2942
|
+
id?: string | null | undefined;
|
|
2943
|
+
name?: string | null | undefined;
|
|
2944
|
+
iban?: string | null | undefined;
|
|
2945
|
+
bank_account?: string | null | undefined;
|
|
2946
|
+
} | null | undefined;
|
|
2923
2947
|
}[];
|
|
2924
2948
|
}, params?: {
|
|
2925
2949
|
folder_id?: string | null | undefined;
|
|
2926
2950
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2927
2951
|
bank_statement_date: string;
|
|
2928
2952
|
bank_account_id: string;
|
|
2953
|
+
currency: string;
|
|
2929
2954
|
id?: string | null | undefined;
|
|
2930
2955
|
external_bank_statement_id?: string | null | undefined;
|
|
2931
2956
|
items: {
|
|
2932
|
-
|
|
2933
|
-
account?: string | null | undefined;
|
|
2957
|
+
general_ledger_account?: string | null | undefined;
|
|
2934
2958
|
description?: string | null | undefined;
|
|
2935
2959
|
external_transaction_id?: string | null | undefined;
|
|
2936
|
-
date: string;
|
|
2937
2960
|
amount: number;
|
|
2938
2961
|
fee_amount: number | null;
|
|
2939
2962
|
tax_amount: number | null;
|
|
2940
|
-
currency: string;
|
|
2941
2963
|
currency_exchange_rate: number | null;
|
|
2964
|
+
counterpart?: {
|
|
2965
|
+
counterpart_type?: "supplier" | "customer" | "employee" | null | undefined;
|
|
2966
|
+
id?: string | null | undefined;
|
|
2967
|
+
name?: string | null | undefined;
|
|
2968
|
+
iban?: string | null | undefined;
|
|
2969
|
+
bank_account?: string | null | undefined;
|
|
2970
|
+
} | null | undefined;
|
|
2942
2971
|
id?: string | null | undefined;
|
|
2943
2972
|
}[];
|
|
2944
2973
|
}>;
|
|
@@ -3496,7 +3525,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3496
3525
|
} | null | undefined;
|
|
3497
3526
|
}>;
|
|
3498
3527
|
getContacts(params?: {
|
|
3499
|
-
contact_type?: "supplier" | "all" | "
|
|
3528
|
+
contact_type?: "supplier" | "all" | "customer" | "prospect" | undefined;
|
|
3500
3529
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3501
3530
|
id: string;
|
|
3502
3531
|
source_ref: {
|
|
@@ -4957,6 +4986,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
4957
4986
|
};
|
|
4958
4987
|
id: string;
|
|
4959
4988
|
created_on: string;
|
|
4989
|
+
modified_on: string;
|
|
4960
4990
|
}[]>;
|
|
4961
4991
|
addDataByDataStoreId: (dataStoreId: string, data: components['schemas']['DataItem'][]) => Promise<{
|
|
4962
4992
|
data: {
|
|
@@ -4964,6 +4994,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
4964
4994
|
};
|
|
4965
4995
|
id: string;
|
|
4966
4996
|
created_on: string;
|
|
4997
|
+
modified_on: string;
|
|
4967
4998
|
}[]>;
|
|
4968
4999
|
getSyncData: (syncId: string) => Promise<{
|
|
4969
5000
|
syncid: string;
|
|
@@ -4989,6 +5020,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
4989
5020
|
sub_mapping_name: string;
|
|
4990
5021
|
sub_mapping_description?: string | null | undefined;
|
|
4991
5022
|
}[] | null | undefined;
|
|
5023
|
+
skip_mappings?: {
|
|
5024
|
+
name: string;
|
|
5025
|
+
skip_reason: "presync" | "challenge";
|
|
5026
|
+
}[] | null | undefined;
|
|
4992
5027
|
link_metadata?: {
|
|
4993
5028
|
[key: string]: unknown;
|
|
4994
5029
|
} | null | undefined;
|
|
@@ -5041,6 +5076,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
5041
5076
|
};
|
|
5042
5077
|
id: string;
|
|
5043
5078
|
created_on: string;
|
|
5079
|
+
modified_on: string;
|
|
5044
5080
|
}[]>;
|
|
5045
5081
|
addDataByDataStoreName: (dataStoreName: string, data: components['schemas']['DataItem'][]) => Promise<{
|
|
5046
5082
|
data: {
|
|
@@ -5048,6 +5084,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
5048
5084
|
};
|
|
5049
5085
|
id: string;
|
|
5050
5086
|
created_on: string;
|
|
5087
|
+
modified_on: string;
|
|
5051
5088
|
}[] | undefined>;
|
|
5052
5089
|
updateDataStoreData: (dataStoreId: string, dataStoreDataId: string, data: components['schemas']['DataItem']) => Promise<{
|
|
5053
5090
|
data: {
|
|
@@ -5055,6 +5092,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
5055
5092
|
};
|
|
5056
5093
|
id: string;
|
|
5057
5094
|
created_on: string;
|
|
5095
|
+
modified_on: string;
|
|
5058
5096
|
}[]>;
|
|
5059
5097
|
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
|
|
5060
5098
|
logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
|