@chift/chift-nodejs 1.0.4 → 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 -0
- package/CHANGELOG.md +8 -0
- package/coverage/clover.xml +1645 -0
- package/coverage/coverage-final.json +19 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/helpers/index.html +131 -0
- package/coverage/lcov-report/src/helpers/openapi.ts.html +151 -0
- package/coverage/lcov-report/src/helpers/settings.ts.html +94 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +88 -0
- package/coverage/lcov-report/src/modules/accounting.ts.html +1156 -0
- package/coverage/lcov-report/src/modules/api.ts.html +190 -0
- package/coverage/lcov-report/src/modules/consumer.ts.html +616 -0
- package/coverage/lcov-report/src/modules/consumers.ts.html +331 -0
- package/coverage/lcov-report/src/modules/custom.ts.html +193 -0
- package/coverage/lcov-report/src/modules/datastores.ts.html +142 -0
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +331 -0
- package/coverage/lcov-report/src/modules/flow.ts.html +589 -0
- package/coverage/lcov-report/src/modules/index.html +326 -0
- package/coverage/lcov-report/src/modules/integrations.ts.html +151 -0
- package/coverage/lcov-report/src/modules/internalApi.ts.html +586 -0
- package/coverage/lcov-report/src/modules/invoicing.ts.html +391 -0
- package/coverage/lcov-report/src/modules/pos.ts.html +421 -0
- package/coverage/lcov-report/src/modules/sync.ts.html +316 -0
- package/coverage/lcov-report/src/modules/syncs.ts.html +169 -0
- package/coverage/lcov-report/src/modules/webhooks.ts.html +343 -0
- package/coverage/lcov.info +1976 -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 +13 -4
- 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/flow.test.d.ts +1 -0
- package/dist/test/modules/flow.test.js +69 -0
- package/dist/test/modules/pos.test.js +13 -0
- package/jest.config.ts +1 -1
- package/package.json +1 -1
- package/src/modules/internalApi.ts +19 -10
- 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
|
@@ -117,6 +117,11 @@ export interface paths {
|
|
|
117
117
|
* @description Returns the syncs
|
|
118
118
|
*/
|
|
119
119
|
get: operations['syncs_get_syncs'];
|
|
120
|
+
/**
|
|
121
|
+
* Create sync
|
|
122
|
+
* @description Returns the created sync
|
|
123
|
+
*/
|
|
124
|
+
post: operations['syncs_post_sync'];
|
|
120
125
|
};
|
|
121
126
|
'/syncs/{syncid}': {
|
|
122
127
|
/**
|
|
@@ -529,6 +534,20 @@ export interface paths {
|
|
|
529
534
|
*/
|
|
530
535
|
get: operations['pos_get_customer'];
|
|
531
536
|
};
|
|
537
|
+
'/consumers/{consumer_id}/pos/product-categories': {
|
|
538
|
+
/**
|
|
539
|
+
* Get product categories
|
|
540
|
+
* @description Returns a list of product categories
|
|
541
|
+
*/
|
|
542
|
+
get: operations['pos_get_product_categories'];
|
|
543
|
+
};
|
|
544
|
+
'/consumers/{consumer_id}/pos/products': {
|
|
545
|
+
/**
|
|
546
|
+
* Get products
|
|
547
|
+
* @description Returns a list of products
|
|
548
|
+
*/
|
|
549
|
+
get: operations['pos_get_products'];
|
|
550
|
+
};
|
|
532
551
|
'/consumers/{consumer_id}/pos/closures/{date}': {
|
|
533
552
|
/**
|
|
534
553
|
* Get closure info for a specific day
|
|
@@ -815,7 +834,7 @@ export interface components {
|
|
|
815
834
|
};
|
|
816
835
|
/** AddressItemInInvoicing */
|
|
817
836
|
AddressItemInInvoicing: {
|
|
818
|
-
address_type: components['schemas']['
|
|
837
|
+
address_type: components['schemas']['AddressTypeInvoicing'];
|
|
819
838
|
/** Name */
|
|
820
839
|
name?: string;
|
|
821
840
|
/** Number */
|
|
@@ -842,7 +861,7 @@ export interface components {
|
|
|
842
861
|
};
|
|
843
862
|
/** AddressItemOutInvoicing */
|
|
844
863
|
AddressItemOutInvoicing: {
|
|
845
|
-
address_type: components['schemas']['
|
|
864
|
+
address_type: components['schemas']['AddressTypeInvoicing'];
|
|
846
865
|
/** Name */
|
|
847
866
|
name?: string;
|
|
848
867
|
/** Number */
|
|
@@ -873,6 +892,12 @@ export interface components {
|
|
|
873
892
|
* @enum {string}
|
|
874
893
|
*/
|
|
875
894
|
AddressType: 'main' | 'delivery' | 'invoice';
|
|
895
|
+
/**
|
|
896
|
+
* AddressTypeInvoicing
|
|
897
|
+
* @description An enumeration.
|
|
898
|
+
* @enum {string}
|
|
899
|
+
*/
|
|
900
|
+
AddressTypeInvoicing: 'main' | 'delivery' | 'invoice' | 'other';
|
|
876
901
|
/** AnalyticAccountItemIn */
|
|
877
902
|
AnalyticAccountItemIn: {
|
|
878
903
|
/**
|
|
@@ -892,22 +917,19 @@ export interface components {
|
|
|
892
917
|
};
|
|
893
918
|
/** AnalyticAccountItemOut */
|
|
894
919
|
AnalyticAccountItemOut: {
|
|
895
|
-
/**
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
active?: boolean;
|
|
920
|
+
/** Id */
|
|
921
|
+
id: string;
|
|
922
|
+
/** Active */
|
|
923
|
+
active: boolean;
|
|
900
924
|
/** Code */
|
|
901
925
|
code?: string;
|
|
902
926
|
/** Name */
|
|
903
|
-
name
|
|
927
|
+
name: string;
|
|
904
928
|
/**
|
|
905
929
|
* Currency
|
|
906
930
|
* @description Indicates the currency of the analytic account (e.g. EUR).
|
|
907
931
|
*/
|
|
908
932
|
currency?: string;
|
|
909
|
-
/** Id */
|
|
910
|
-
id?: string;
|
|
911
933
|
/**
|
|
912
934
|
* Balance
|
|
913
935
|
* @default 0
|
|
@@ -926,22 +948,19 @@ export interface components {
|
|
|
926
948
|
};
|
|
927
949
|
/** AnalyticAccountItemOutMultiAnalyticPlans */
|
|
928
950
|
AnalyticAccountItemOutMultiAnalyticPlans: {
|
|
929
|
-
/**
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
active?: boolean;
|
|
951
|
+
/** Id */
|
|
952
|
+
id: string;
|
|
953
|
+
/** Active */
|
|
954
|
+
active: boolean;
|
|
934
955
|
/** Code */
|
|
935
956
|
code?: string;
|
|
936
957
|
/** Name */
|
|
937
|
-
name
|
|
958
|
+
name: string;
|
|
938
959
|
/**
|
|
939
960
|
* Currency
|
|
940
961
|
* @description Indicates the currency of the analytic account (e.g. EUR).
|
|
941
962
|
*/
|
|
942
963
|
currency?: string;
|
|
943
|
-
/** Id */
|
|
944
|
-
id?: string;
|
|
945
964
|
/**
|
|
946
965
|
* Balance
|
|
947
966
|
* @default 0
|
|
@@ -1531,25 +1550,6 @@ export interface components {
|
|
|
1531
1550
|
/** Values */
|
|
1532
1551
|
values: string[];
|
|
1533
1552
|
};
|
|
1534
|
-
/** ConnectionItem */
|
|
1535
|
-
ConnectionItem: {
|
|
1536
|
-
/**
|
|
1537
|
-
* Connectionid
|
|
1538
|
-
* Format: uuid
|
|
1539
|
-
*/
|
|
1540
|
-
connectionid: string;
|
|
1541
|
-
/** Name */
|
|
1542
|
-
name: string;
|
|
1543
|
-
/** Integration */
|
|
1544
|
-
integration: string;
|
|
1545
|
-
/** Integrationid */
|
|
1546
|
-
integrationid: number;
|
|
1547
|
-
/** Api */
|
|
1548
|
-
api: string;
|
|
1549
|
-
/** Data */
|
|
1550
|
-
data?: Record<string, never>;
|
|
1551
|
-
status: components['schemas']['app__routers__connections__Status'];
|
|
1552
|
-
};
|
|
1553
1553
|
/** ConsumerItem */
|
|
1554
1554
|
ConsumerItem: {
|
|
1555
1555
|
/**
|
|
@@ -1813,6 +1813,62 @@ export interface components {
|
|
|
1813
1813
|
* @default []
|
|
1814
1814
|
*/
|
|
1815
1815
|
integrationids?: string[];
|
|
1816
|
+
/** Link Metadata */
|
|
1817
|
+
link_metadata?: Record<string, never>;
|
|
1818
|
+
};
|
|
1819
|
+
/** CreateFlowItem */
|
|
1820
|
+
CreateFlowItem: {
|
|
1821
|
+
/** Name */
|
|
1822
|
+
name: string;
|
|
1823
|
+
/** Description */
|
|
1824
|
+
description?: string;
|
|
1825
|
+
execution: components['schemas']['FlowExecution'];
|
|
1826
|
+
/**
|
|
1827
|
+
* Config
|
|
1828
|
+
* @default {
|
|
1829
|
+
* "datastores": []
|
|
1830
|
+
* }
|
|
1831
|
+
*/
|
|
1832
|
+
config?: components['schemas']['FlowConfig'];
|
|
1833
|
+
trigger: components['schemas']['FlowTrigger'];
|
|
1834
|
+
};
|
|
1835
|
+
/** CreateSyncItem */
|
|
1836
|
+
CreateSyncItem: {
|
|
1837
|
+
/** Name */
|
|
1838
|
+
name: string;
|
|
1839
|
+
/** Connections */
|
|
1840
|
+
connections: components['schemas']['app__routers__syncs__ConnectionItem'][];
|
|
1841
|
+
/**
|
|
1842
|
+
* Mappings
|
|
1843
|
+
* @default []
|
|
1844
|
+
*/
|
|
1845
|
+
mappings?: components['schemas']['CreateSyncMappingItem'][];
|
|
1846
|
+
/**
|
|
1847
|
+
* Flows
|
|
1848
|
+
* @default []
|
|
1849
|
+
*/
|
|
1850
|
+
flows?: components['schemas']['CreateFlowItem'][];
|
|
1851
|
+
};
|
|
1852
|
+
/** CreateSyncMappingItem */
|
|
1853
|
+
CreateSyncMappingItem: {
|
|
1854
|
+
/** Name */
|
|
1855
|
+
name: string;
|
|
1856
|
+
/** Description */
|
|
1857
|
+
description: string;
|
|
1858
|
+
/** Logic */
|
|
1859
|
+
logic?: Record<string, never>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Display Order
|
|
1862
|
+
* @default 0
|
|
1863
|
+
*/
|
|
1864
|
+
display_order?: number;
|
|
1865
|
+
source_field: components['schemas']['FieldItem'];
|
|
1866
|
+
target_field: components['schemas']['FieldItem'];
|
|
1867
|
+
/**
|
|
1868
|
+
* Display Delete
|
|
1869
|
+
* @default false
|
|
1870
|
+
*/
|
|
1871
|
+
display_delete?: boolean;
|
|
1816
1872
|
};
|
|
1817
1873
|
/** DataItem */
|
|
1818
1874
|
DataItem: {
|
|
@@ -1933,6 +1989,36 @@ export interface components {
|
|
|
1933
1989
|
* @enum {string}
|
|
1934
1990
|
*/
|
|
1935
1991
|
FeesType: 'shipping' | 'other';
|
|
1992
|
+
/** FieldItem */
|
|
1993
|
+
FieldItem: {
|
|
1994
|
+
/** Name */
|
|
1995
|
+
name: string;
|
|
1996
|
+
type: components['schemas']['FieldItemType'];
|
|
1997
|
+
/** Display Condition */
|
|
1998
|
+
display_condition?: Record<string, never>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Values
|
|
2001
|
+
* @default []
|
|
2002
|
+
*/
|
|
2003
|
+
values?: components['schemas']['FieldItemValue'][];
|
|
2004
|
+
/** Api Route */
|
|
2005
|
+
api_route?: string;
|
|
2006
|
+
/** Connection Type */
|
|
2007
|
+
connection_type?: number;
|
|
2008
|
+
};
|
|
2009
|
+
/**
|
|
2010
|
+
* FieldItemType
|
|
2011
|
+
* @description An enumeration.
|
|
2012
|
+
* @enum {string}
|
|
2013
|
+
*/
|
|
2014
|
+
FieldItemType: 'fixed' | 'api';
|
|
2015
|
+
/** FieldItemValue */
|
|
2016
|
+
FieldItemValue: {
|
|
2017
|
+
/** Id */
|
|
2018
|
+
id: string;
|
|
2019
|
+
/** Label */
|
|
2020
|
+
label: string;
|
|
2021
|
+
};
|
|
1936
2022
|
/** FieldRef */
|
|
1937
2023
|
FieldRef: {
|
|
1938
2024
|
/**
|
|
@@ -3073,6 +3159,11 @@ export interface components {
|
|
|
3073
3159
|
* @default []
|
|
3074
3160
|
*/
|
|
3075
3161
|
discounts?: components['schemas']['app__routers__pos__DiscountItem'][];
|
|
3162
|
+
/**
|
|
3163
|
+
* Product Id
|
|
3164
|
+
* @description Reference to the product related to this item
|
|
3165
|
+
*/
|
|
3166
|
+
product_id?: string;
|
|
3076
3167
|
};
|
|
3077
3168
|
/** Journal */
|
|
3078
3169
|
Journal: {
|
|
@@ -3302,13 +3393,6 @@ export interface components {
|
|
|
3302
3393
|
/** Data */
|
|
3303
3394
|
data: string;
|
|
3304
3395
|
};
|
|
3305
|
-
/** MappingItem */
|
|
3306
|
-
MappingItem: {
|
|
3307
|
-
/** Source Id */
|
|
3308
|
-
source_id: string;
|
|
3309
|
-
/** Target Id */
|
|
3310
|
-
target_id: string;
|
|
3311
|
-
};
|
|
3312
3396
|
/** MatchingIn */
|
|
3313
3397
|
MatchingIn: {
|
|
3314
3398
|
/** Entries */
|
|
@@ -3924,6 +4008,19 @@ export interface components {
|
|
|
3924
4008
|
timezone?: string;
|
|
3925
4009
|
address?: components['schemas']['AddressItem'];
|
|
3926
4010
|
};
|
|
4011
|
+
/** POSProductItem */
|
|
4012
|
+
POSProductItem: {
|
|
4013
|
+
/** Id */
|
|
4014
|
+
id: string;
|
|
4015
|
+
/** Categories */
|
|
4016
|
+
categories?: string[];
|
|
4017
|
+
/** Name */
|
|
4018
|
+
name: string;
|
|
4019
|
+
/** Description */
|
|
4020
|
+
description?: string;
|
|
4021
|
+
/** Prices */
|
|
4022
|
+
prices: components['schemas']['app__routers__pos__ProductPriceItem'][];
|
|
4023
|
+
};
|
|
3927
4024
|
/** Page[AccountBalance] */
|
|
3928
4025
|
Page_AccountBalance_: {
|
|
3929
4026
|
/** Items */
|
|
@@ -4243,6 +4340,17 @@ export interface components {
|
|
|
4243
4340
|
/** Size */
|
|
4244
4341
|
size: number;
|
|
4245
4342
|
};
|
|
4343
|
+
/** Page[POSProductItem] */
|
|
4344
|
+
Page_POSProductItem_: {
|
|
4345
|
+
/** Items */
|
|
4346
|
+
items: components['schemas']['POSProductItem'][];
|
|
4347
|
+
/** Total */
|
|
4348
|
+
total: number;
|
|
4349
|
+
/** Page */
|
|
4350
|
+
page: number;
|
|
4351
|
+
/** Size */
|
|
4352
|
+
size: number;
|
|
4353
|
+
};
|
|
4246
4354
|
/** Page[PaymentItem] */
|
|
4247
4355
|
Page_PaymentItem_: {
|
|
4248
4356
|
/** Items */
|
|
@@ -4276,6 +4384,17 @@ export interface components {
|
|
|
4276
4384
|
/** Size */
|
|
4277
4385
|
size: number;
|
|
4278
4386
|
};
|
|
4387
|
+
/** Page[ProductCategoryItem] */
|
|
4388
|
+
Page_ProductCategoryItem_: {
|
|
4389
|
+
/** Items */
|
|
4390
|
+
items: components['schemas']['ProductCategoryItem'][];
|
|
4391
|
+
/** Total */
|
|
4392
|
+
total: number;
|
|
4393
|
+
/** Page */
|
|
4394
|
+
page: number;
|
|
4395
|
+
/** Size */
|
|
4396
|
+
size: number;
|
|
4397
|
+
};
|
|
4279
4398
|
/** Page[ProductItemOut] */
|
|
4280
4399
|
Page_ProductItemOut_: {
|
|
4281
4400
|
/** Items */
|
|
@@ -4466,6 +4585,20 @@ export interface components {
|
|
|
4466
4585
|
/** Data */
|
|
4467
4586
|
data?: Record<string, never>;
|
|
4468
4587
|
};
|
|
4588
|
+
/** ProductCategoryItem */
|
|
4589
|
+
ProductCategoryItem: {
|
|
4590
|
+
/** Id */
|
|
4591
|
+
id: string;
|
|
4592
|
+
/** Name */
|
|
4593
|
+
name: string;
|
|
4594
|
+
/** Description */
|
|
4595
|
+
description?: string;
|
|
4596
|
+
/**
|
|
4597
|
+
* Id Parent
|
|
4598
|
+
* @description Indicates if the category belongs to a parent category
|
|
4599
|
+
*/
|
|
4600
|
+
id_parent?: string;
|
|
4601
|
+
};
|
|
4469
4602
|
/** ProductItemOut */
|
|
4470
4603
|
ProductItemOut: {
|
|
4471
4604
|
/**
|
|
@@ -4518,16 +4651,18 @@ export interface components {
|
|
|
4518
4651
|
* @description Description
|
|
4519
4652
|
*/
|
|
4520
4653
|
description?: string;
|
|
4521
|
-
};
|
|
4522
|
-
/** ProductPriceItem */
|
|
4523
|
-
ProductPriceItem: {
|
|
4524
|
-
/** Currency */
|
|
4525
|
-
currency: string;
|
|
4526
4654
|
/**
|
|
4527
|
-
*
|
|
4655
|
+
* Available Quantity
|
|
4656
|
+
* @description Available quanity of the product in stock. Will only be used for products that have an inventory (services will always be 0)
|
|
4528
4657
|
* @default 0
|
|
4529
4658
|
*/
|
|
4530
|
-
|
|
4659
|
+
available_quantity?: number;
|
|
4660
|
+
/**
|
|
4661
|
+
* Cost
|
|
4662
|
+
* @description Cost of the product
|
|
4663
|
+
* @default 0
|
|
4664
|
+
*/
|
|
4665
|
+
cost?: number;
|
|
4531
4666
|
};
|
|
4532
4667
|
/**
|
|
4533
4668
|
* ProductStatus
|
|
@@ -4581,7 +4716,7 @@ export interface components {
|
|
|
4581
4716
|
* Prices
|
|
4582
4717
|
* @default []
|
|
4583
4718
|
*/
|
|
4584
|
-
prices?: components['schemas']['
|
|
4719
|
+
prices?: components['schemas']['app__routers__commerce__ProductPriceItem'][];
|
|
4585
4720
|
/** Unit Of Measure */
|
|
4586
4721
|
unit_of_measure?: string;
|
|
4587
4722
|
/**
|
|
@@ -4616,6 +4751,12 @@ export interface components {
|
|
|
4616
4751
|
config?: components['schemas']['FlowConfig'];
|
|
4617
4752
|
/** Values */
|
|
4618
4753
|
values: Record<string, never>;
|
|
4754
|
+
/**
|
|
4755
|
+
* Enabled On
|
|
4756
|
+
* Format: date-time
|
|
4757
|
+
* @description Date on which the flow was enabled for this consumer
|
|
4758
|
+
*/
|
|
4759
|
+
enabled_on: string;
|
|
4619
4760
|
};
|
|
4620
4761
|
/** ReadFlowItem */
|
|
4621
4762
|
ReadFlowItem: {
|
|
@@ -4635,6 +4776,45 @@ export interface components {
|
|
|
4635
4776
|
config?: components['schemas']['FlowConfig'];
|
|
4636
4777
|
trigger?: components['schemas']['FlowTrigger'];
|
|
4637
4778
|
};
|
|
4779
|
+
/** ReadMappingItem */
|
|
4780
|
+
ReadMappingItem: {
|
|
4781
|
+
/** Source Id */
|
|
4782
|
+
source_id: string;
|
|
4783
|
+
/** Target Id */
|
|
4784
|
+
target_id: string;
|
|
4785
|
+
};
|
|
4786
|
+
/** ReadSyncItem */
|
|
4787
|
+
ReadSyncItem: {
|
|
4788
|
+
/** Name */
|
|
4789
|
+
name: string;
|
|
4790
|
+
/** Connections */
|
|
4791
|
+
connections: components['schemas']['app__routers__syncs__ConnectionItem'][];
|
|
4792
|
+
/**
|
|
4793
|
+
* Mappings
|
|
4794
|
+
* @default []
|
|
4795
|
+
*/
|
|
4796
|
+
mappings?: components['schemas']['CreateSyncMappingItem'][];
|
|
4797
|
+
/**
|
|
4798
|
+
* Syncid
|
|
4799
|
+
* Format: uuid
|
|
4800
|
+
*/
|
|
4801
|
+
syncid: string;
|
|
4802
|
+
/** Consumers */
|
|
4803
|
+
consumers: string[];
|
|
4804
|
+
/** Flows */
|
|
4805
|
+
flows: components['schemas']['ReadFlowItem'][];
|
|
4806
|
+
};
|
|
4807
|
+
/** ReadSyncMappingItem */
|
|
4808
|
+
ReadSyncMappingItem: {
|
|
4809
|
+
/** Name */
|
|
4810
|
+
name: string;
|
|
4811
|
+
/** Description */
|
|
4812
|
+
description: string;
|
|
4813
|
+
/** Logic */
|
|
4814
|
+
logic?: Record<string, never>;
|
|
4815
|
+
/** Values */
|
|
4816
|
+
values: components['schemas']['ReadMappingItem'][];
|
|
4817
|
+
};
|
|
4638
4818
|
/** Ref */
|
|
4639
4819
|
Ref: {
|
|
4640
4820
|
/**
|
|
@@ -4955,7 +5135,12 @@ export interface components {
|
|
|
4955
5135
|
* Link Mappings
|
|
4956
5136
|
* @description Values of the mappings requested for the sync for the specific consumer
|
|
4957
5137
|
*/
|
|
4958
|
-
link_mappings?: components['schemas']['
|
|
5138
|
+
link_mappings?: components['schemas']['ReadSyncMappingItem'][];
|
|
5139
|
+
/**
|
|
5140
|
+
* Link Metadata
|
|
5141
|
+
* @description Metadata passed during creation
|
|
5142
|
+
*/
|
|
5143
|
+
link_metadata?: Record<string, never>;
|
|
4959
5144
|
/**
|
|
4960
5145
|
* Enabled Flows
|
|
4961
5146
|
* @description List of flows that the consumer has enabled
|
|
@@ -4968,29 +5153,6 @@ export interface components {
|
|
|
4968
5153
|
* @enum {unknown}
|
|
4969
5154
|
*/
|
|
4970
5155
|
SyncConsumerStatus: 'active' | 'inactive';
|
|
4971
|
-
/** SyncItem */
|
|
4972
|
-
SyncItem: {
|
|
4973
|
-
/**
|
|
4974
|
-
* Syncid
|
|
4975
|
-
* Format: uuid
|
|
4976
|
-
*/
|
|
4977
|
-
syncid: string;
|
|
4978
|
-
/** Name */
|
|
4979
|
-
name: string;
|
|
4980
|
-
/** Consumers */
|
|
4981
|
-
consumers: string[];
|
|
4982
|
-
/** Flows */
|
|
4983
|
-
flows: components['schemas']['ReadFlowItem'][];
|
|
4984
|
-
};
|
|
4985
|
-
/** SyncMappingItem */
|
|
4986
|
-
SyncMappingItem: {
|
|
4987
|
-
/** Name */
|
|
4988
|
-
name: string;
|
|
4989
|
-
/** Description */
|
|
4990
|
-
description: string;
|
|
4991
|
-
/** Values */
|
|
4992
|
-
values: components['schemas']['MappingItem'][];
|
|
4993
|
-
};
|
|
4994
5156
|
/** Token */
|
|
4995
5157
|
Token: {
|
|
4996
5158
|
/** Access Token */
|
|
@@ -5175,7 +5337,7 @@ export interface components {
|
|
|
5175
5337
|
* Prices
|
|
5176
5338
|
* @default []
|
|
5177
5339
|
*/
|
|
5178
|
-
prices?: components['schemas']['
|
|
5340
|
+
prices?: components['schemas']['app__routers__commerce__ProductPriceItem'][];
|
|
5179
5341
|
/** Unit Of Measure */
|
|
5180
5342
|
unit_of_measure?: string;
|
|
5181
5343
|
/**
|
|
@@ -5464,6 +5626,35 @@ export interface components {
|
|
|
5464
5626
|
*/
|
|
5465
5627
|
common_images?: components['schemas']['ImageItem'][];
|
|
5466
5628
|
};
|
|
5629
|
+
/** ProductPriceItem */
|
|
5630
|
+
app__routers__commerce__ProductPriceItem: {
|
|
5631
|
+
/** Currency */
|
|
5632
|
+
currency: string;
|
|
5633
|
+
/**
|
|
5634
|
+
* Price
|
|
5635
|
+
* @default 0
|
|
5636
|
+
*/
|
|
5637
|
+
price?: number;
|
|
5638
|
+
};
|
|
5639
|
+
/** ConnectionItem */
|
|
5640
|
+
app__routers__connections__ConnectionItem: {
|
|
5641
|
+
/**
|
|
5642
|
+
* Connectionid
|
|
5643
|
+
* Format: uuid
|
|
5644
|
+
*/
|
|
5645
|
+
connectionid: string;
|
|
5646
|
+
/** Name */
|
|
5647
|
+
name: string;
|
|
5648
|
+
/** Integration */
|
|
5649
|
+
integration: string;
|
|
5650
|
+
/** Integrationid */
|
|
5651
|
+
integrationid: number;
|
|
5652
|
+
/** Api */
|
|
5653
|
+
api: string;
|
|
5654
|
+
/** Data */
|
|
5655
|
+
data?: Record<string, never>;
|
|
5656
|
+
status: components['schemas']['app__routers__connections__Status'];
|
|
5657
|
+
};
|
|
5467
5658
|
/** CredentialItem */
|
|
5468
5659
|
app__routers__connections__CredentialItem: {
|
|
5469
5660
|
/** Key */
|
|
@@ -5529,6 +5720,30 @@ export interface components {
|
|
|
5529
5720
|
| 'Failed'
|
|
5530
5721
|
| 'Unknown'
|
|
5531
5722
|
| 'Authorised';
|
|
5723
|
+
/** ProductPriceItem */
|
|
5724
|
+
app__routers__pos__ProductPriceItem: {
|
|
5725
|
+
/** Unit Price */
|
|
5726
|
+
unit_price: number;
|
|
5727
|
+
/** Tax Rate */
|
|
5728
|
+
tax_rate: number;
|
|
5729
|
+
};
|
|
5730
|
+
/** ConnectionItem */
|
|
5731
|
+
app__routers__syncs__ConnectionItem: {
|
|
5732
|
+
/** One Api */
|
|
5733
|
+
one_api?: number;
|
|
5734
|
+
/** Connection Type */
|
|
5735
|
+
connection_type?: number;
|
|
5736
|
+
/**
|
|
5737
|
+
* Display Order
|
|
5738
|
+
* @default 0
|
|
5739
|
+
*/
|
|
5740
|
+
display_order?: number;
|
|
5741
|
+
/**
|
|
5742
|
+
* Display Hidden
|
|
5743
|
+
* @default false
|
|
5744
|
+
*/
|
|
5745
|
+
display_hidden?: boolean;
|
|
5746
|
+
};
|
|
5532
5747
|
/**
|
|
5533
5748
|
* Status
|
|
5534
5749
|
* @description An enumeration.
|
|
@@ -5713,6 +5928,11 @@ export interface operations {
|
|
|
5713
5928
|
* @description Returns the list of consumers linked to your account.
|
|
5714
5929
|
*/
|
|
5715
5930
|
consumers_get_consumers: {
|
|
5931
|
+
parameters: {
|
|
5932
|
+
query?: {
|
|
5933
|
+
search?: string;
|
|
5934
|
+
};
|
|
5935
|
+
};
|
|
5716
5936
|
responses: {
|
|
5717
5937
|
/** @description Successful Response */
|
|
5718
5938
|
200: {
|
|
@@ -5720,6 +5940,12 @@ export interface operations {
|
|
|
5720
5940
|
'application/json': components['schemas']['ConsumerItem'][];
|
|
5721
5941
|
};
|
|
5722
5942
|
};
|
|
5943
|
+
/** @description Validation Error */
|
|
5944
|
+
422: {
|
|
5945
|
+
content: {
|
|
5946
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
5947
|
+
};
|
|
5948
|
+
};
|
|
5723
5949
|
};
|
|
5724
5950
|
};
|
|
5725
5951
|
/**
|
|
@@ -5863,7 +6089,7 @@ export interface operations {
|
|
|
5863
6089
|
/** @description Successful Response */
|
|
5864
6090
|
200: {
|
|
5865
6091
|
content: {
|
|
5866
|
-
'application/json': components['schemas']['
|
|
6092
|
+
'application/json': components['schemas']['app__routers__connections__ConnectionItem'][];
|
|
5867
6093
|
};
|
|
5868
6094
|
};
|
|
5869
6095
|
/** @description Not Found */
|
|
@@ -6267,7 +6493,32 @@ export interface operations {
|
|
|
6267
6493
|
/** @description Successful Response */
|
|
6268
6494
|
200: {
|
|
6269
6495
|
content: {
|
|
6270
|
-
'application/json': components['schemas']['
|
|
6496
|
+
'application/json': components['schemas']['ReadSyncItem'][];
|
|
6497
|
+
};
|
|
6498
|
+
};
|
|
6499
|
+
};
|
|
6500
|
+
};
|
|
6501
|
+
/**
|
|
6502
|
+
* Create sync
|
|
6503
|
+
* @description Returns the created sync
|
|
6504
|
+
*/
|
|
6505
|
+
syncs_post_sync: {
|
|
6506
|
+
requestBody: {
|
|
6507
|
+
content: {
|
|
6508
|
+
'application/json': components['schemas']['CreateSyncItem'];
|
|
6509
|
+
};
|
|
6510
|
+
};
|
|
6511
|
+
responses: {
|
|
6512
|
+
/** @description Successful Response */
|
|
6513
|
+
200: {
|
|
6514
|
+
content: {
|
|
6515
|
+
'application/json': components['schemas']['ReadSyncItem'];
|
|
6516
|
+
};
|
|
6517
|
+
};
|
|
6518
|
+
/** @description Validation Error */
|
|
6519
|
+
422: {
|
|
6520
|
+
content: {
|
|
6521
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
6271
6522
|
};
|
|
6272
6523
|
};
|
|
6273
6524
|
};
|
|
@@ -6286,7 +6537,7 @@ export interface operations {
|
|
|
6286
6537
|
/** @description Successful Response */
|
|
6287
6538
|
200: {
|
|
6288
6539
|
content: {
|
|
6289
|
-
'application/json': components['schemas']['
|
|
6540
|
+
'application/json': components['schemas']['ReadSyncItem'];
|
|
6290
6541
|
};
|
|
6291
6542
|
};
|
|
6292
6543
|
/** @description Not Found */
|
|
@@ -8833,6 +9084,101 @@ export interface operations {
|
|
|
8833
9084
|
};
|
|
8834
9085
|
};
|
|
8835
9086
|
};
|
|
9087
|
+
/**
|
|
9088
|
+
* Get product categories
|
|
9089
|
+
* @description Returns a list of product categories
|
|
9090
|
+
*/
|
|
9091
|
+
pos_get_product_categories: {
|
|
9092
|
+
parameters: {
|
|
9093
|
+
query?: {
|
|
9094
|
+
only_parents?: components['schemas']['BoolParam'];
|
|
9095
|
+
page?: number;
|
|
9096
|
+
size?: number;
|
|
9097
|
+
};
|
|
9098
|
+
path: {
|
|
9099
|
+
consumer_id: string;
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
responses: {
|
|
9103
|
+
/** @description Successful Response */
|
|
9104
|
+
200: {
|
|
9105
|
+
content: {
|
|
9106
|
+
'application/json': components['schemas']['Page_ProductCategoryItem_'];
|
|
9107
|
+
};
|
|
9108
|
+
};
|
|
9109
|
+
/** @description Bad Request */
|
|
9110
|
+
400: {
|
|
9111
|
+
content: {
|
|
9112
|
+
'application/json': components['schemas']['ChiftError'];
|
|
9113
|
+
};
|
|
9114
|
+
};
|
|
9115
|
+
/** @description Method Not Allowed */
|
|
9116
|
+
405: {
|
|
9117
|
+
content: {
|
|
9118
|
+
'application/json': components['schemas']['ChiftError'];
|
|
9119
|
+
};
|
|
9120
|
+
};
|
|
9121
|
+
/** @description Validation Error */
|
|
9122
|
+
422: {
|
|
9123
|
+
content: {
|
|
9124
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
9125
|
+
};
|
|
9126
|
+
};
|
|
9127
|
+
/** @description Bad Gateway */
|
|
9128
|
+
502: {
|
|
9129
|
+
content: {
|
|
9130
|
+
'application/json': components['schemas']['ChiftError'];
|
|
9131
|
+
};
|
|
9132
|
+
};
|
|
9133
|
+
};
|
|
9134
|
+
};
|
|
9135
|
+
/**
|
|
9136
|
+
* Get products
|
|
9137
|
+
* @description Returns a list of products
|
|
9138
|
+
*/
|
|
9139
|
+
pos_get_products: {
|
|
9140
|
+
parameters: {
|
|
9141
|
+
query?: {
|
|
9142
|
+
page?: number;
|
|
9143
|
+
size?: number;
|
|
9144
|
+
};
|
|
9145
|
+
path: {
|
|
9146
|
+
consumer_id: string;
|
|
9147
|
+
};
|
|
9148
|
+
};
|
|
9149
|
+
responses: {
|
|
9150
|
+
/** @description Successful Response */
|
|
9151
|
+
200: {
|
|
9152
|
+
content: {
|
|
9153
|
+
'application/json': components['schemas']['Page_POSProductItem_'];
|
|
9154
|
+
};
|
|
9155
|
+
};
|
|
9156
|
+
/** @description Bad Request */
|
|
9157
|
+
400: {
|
|
9158
|
+
content: {
|
|
9159
|
+
'application/json': components['schemas']['ChiftError'];
|
|
9160
|
+
};
|
|
9161
|
+
};
|
|
9162
|
+
/** @description Method Not Allowed */
|
|
9163
|
+
405: {
|
|
9164
|
+
content: {
|
|
9165
|
+
'application/json': components['schemas']['ChiftError'];
|
|
9166
|
+
};
|
|
9167
|
+
};
|
|
9168
|
+
/** @description Validation Error */
|
|
9169
|
+
422: {
|
|
9170
|
+
content: {
|
|
9171
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
9172
|
+
};
|
|
9173
|
+
};
|
|
9174
|
+
/** @description Bad Gateway */
|
|
9175
|
+
502: {
|
|
9176
|
+
content: {
|
|
9177
|
+
'application/json': components['schemas']['ChiftError'];
|
|
9178
|
+
};
|
|
9179
|
+
};
|
|
9180
|
+
};
|
|
9181
|
+
};
|
|
8836
9182
|
/**
|
|
8837
9183
|
* Get closure info for a specific day
|
|
8838
9184
|
* @description Returns whether the closure was already done for a specific day or not
|