@chift/chift-nodejs 1.0.0 → 1.0.2
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 +13 -2
- 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/sync.js +2 -0
- 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 +4 -4
- package/package.json +1 -1
- package/src/modules/accounting.ts +26 -1
- package/src/types/public-api/schema.d.ts +218 -5
- package/test/modules/accounting.test.ts +117 -16
- package/test/modules/consumers.test.ts +3 -1
package/dist/src/modules/sync.js
CHANGED
|
@@ -22,7 +22,9 @@ const Sync = (internalApi, body) => {
|
|
|
22
22
|
};
|
|
23
23
|
const getFlowByName = (name) => {
|
|
24
24
|
const flow = data.flows.find((flow) => flow.name.toLowerCase() === name.toLowerCase());
|
|
25
|
+
console.log('undefined ?');
|
|
25
26
|
if (flow) {
|
|
27
|
+
console.log('on a le flux');
|
|
26
28
|
return (0, flow_1.Flow)(_internalApi, flow, data.syncid, data.consumers);
|
|
27
29
|
}
|
|
28
30
|
return undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
const globals_1 = require("@jest/globals");
|
|
36
|
+
const chift = __importStar(require("../../src/index"));
|
|
37
|
+
const dotenv = __importStar(require("dotenv"));
|
|
38
|
+
dotenv.config();
|
|
39
|
+
const client = new chift.API({
|
|
40
|
+
baseUrl: process.env.CHIFT_BASE_URL,
|
|
41
|
+
clientId: process.env.CHIFT_CLIENT_ID,
|
|
42
|
+
clientSecret: process.env.CHIFT_CLIENT_SECRET,
|
|
43
|
+
accountId: process.env.CHIFT_ACCOUNT_ID,
|
|
44
|
+
});
|
|
45
|
+
let flow;
|
|
46
|
+
(0, globals_1.beforeAll)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
|
+
const syncId = process.env.CHIFT_TEST_SYNC_ID;
|
|
48
|
+
const sync = yield client.Syncs.getSyncById(syncId);
|
|
49
|
+
flow = yield sync.createFlow({
|
|
50
|
+
name: 'Je suis un flux de test',
|
|
51
|
+
description: 'Flux de test',
|
|
52
|
+
execution: {
|
|
53
|
+
type: 'code',
|
|
54
|
+
},
|
|
55
|
+
trigger: {
|
|
56
|
+
type: 'event',
|
|
57
|
+
},
|
|
58
|
+
config: {},
|
|
59
|
+
}, (consumer, flowContext) => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
|
+
console.log(`Mon flow_id : ${flowContext.flow_id}`);
|
|
61
|
+
console.log(`Bonjour, ceci est un test, on exécute le flux pour consumer: ${consumer}`);
|
|
62
|
+
}));
|
|
63
|
+
}));
|
|
64
|
+
(0, globals_1.test)('executeLocal', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
+
flow.execute({ context: { logs: true, local: true } });
|
|
66
|
+
}));
|
|
67
|
+
(0, globals_1.test)('execute', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
|
+
flow.execute({ context: { logs: true, local: false } });
|
|
69
|
+
}));
|
|
@@ -61,8 +61,8 @@ let lightspeedConsumer;
|
|
|
61
61
|
let orders;
|
|
62
62
|
(0, globals_1.test)('getOrders', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
63
|
orders = yield lightspeedConsumer.pos.getOrders({
|
|
64
|
-
date_from: '
|
|
65
|
-
date_to: '
|
|
64
|
+
date_from: '2022-08-11',
|
|
65
|
+
date_to: '2022-08-12',
|
|
66
66
|
});
|
|
67
67
|
(0, globals_1.expect)(orders).toBeInstanceOf(Array);
|
|
68
68
|
(0, globals_1.expect)(orders.length).toBeGreaterThan(0);
|
|
@@ -142,8 +142,8 @@ globals_1.test.skip('getCustomer', () => __awaiter(void 0, void 0, void 0, funct
|
|
|
142
142
|
}));
|
|
143
143
|
(0, globals_1.test)('getPayments', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
144
144
|
const payments = yield lightspeedConsumer.pos.getPayments({
|
|
145
|
-
date_from: '
|
|
146
|
-
date_to: '
|
|
145
|
+
date_from: '2022-08-11',
|
|
146
|
+
date_to: '2022-08-12',
|
|
147
147
|
});
|
|
148
148
|
(0, globals_1.expect)(payments).toBeInstanceOf(Array);
|
|
149
149
|
(0, globals_1.expect)(payments.length).toBeGreaterThan(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chift/chift-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "The Chift NodeJS library provides convenient access to the Chift API from applications written in the NodeJS language (Javascript/Typescript).",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -31,6 +31,11 @@ type getInvoicesByTypeParams = Omit<
|
|
|
31
31
|
'page' | 'size'
|
|
32
32
|
>;
|
|
33
33
|
|
|
34
|
+
type getOutstandingsParams = Omit<
|
|
35
|
+
operations['accounting_get_outstandings']['parameters']['query'],
|
|
36
|
+
'page' | 'size'
|
|
37
|
+
>;
|
|
38
|
+
|
|
34
39
|
const accountingFactory = {
|
|
35
40
|
getAnalyticPlans(): RequestData<components['schemas']['AnalyticPlanItem'][]> {
|
|
36
41
|
return {
|
|
@@ -343,15 +348,35 @@ const accountingFactory = {
|
|
|
343
348
|
url: '/consumers/{consumer_id}/accounting/employees',
|
|
344
349
|
};
|
|
345
350
|
},
|
|
351
|
+
getOutstandings(
|
|
352
|
+
params: getOutstandingsParams
|
|
353
|
+
): RequestData<components['schemas']['OutstandingItem'][]> {
|
|
354
|
+
return {
|
|
355
|
+
params,
|
|
356
|
+
method: 'get',
|
|
357
|
+
url: '/consumers/{consumer_id}/accounting/outstandings',
|
|
358
|
+
};
|
|
359
|
+
},
|
|
346
360
|
createFinancialEntry(
|
|
347
|
-
financial_entry: components['schemas']['FinancialEntryItemIn']
|
|
361
|
+
financial_entry: components['schemas']['FinancialEntryItemIn'],
|
|
362
|
+
params: operations['accounting_create_financial_entry']['parameters']['query']
|
|
348
363
|
): RequestData<components['schemas']['FinancialEntryItemOut']> {
|
|
349
364
|
return {
|
|
365
|
+
params,
|
|
350
366
|
method: 'post',
|
|
351
367
|
url: '/consumers/{consumer_id}/accounting/financial-entry',
|
|
352
368
|
body: financial_entry,
|
|
353
369
|
};
|
|
354
370
|
},
|
|
371
|
+
createJournalEntry(
|
|
372
|
+
journal_entry: components['schemas']['JournalEntryIn']
|
|
373
|
+
): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']> {
|
|
374
|
+
return {
|
|
375
|
+
method: 'post',
|
|
376
|
+
url: '/consumers/{consumer_id}/accounting/journal/entries',
|
|
377
|
+
body: journal_entry,
|
|
378
|
+
};
|
|
379
|
+
},
|
|
355
380
|
};
|
|
356
381
|
|
|
357
382
|
export { accountingFactory };
|
|
@@ -64,6 +64,10 @@ export interface paths {
|
|
|
64
64
|
*/
|
|
65
65
|
get: operations['integrations_get_integrations'];
|
|
66
66
|
};
|
|
67
|
+
'/integrations/{integrationid}/{image_type}.json': {
|
|
68
|
+
/** Returns a logo/icon of an integration (as base64) */
|
|
69
|
+
get: operations['integrations_get_integration_logo_json'];
|
|
70
|
+
};
|
|
67
71
|
'/webhooks/list': {
|
|
68
72
|
/**
|
|
69
73
|
* Get list of possible webhooks
|
|
@@ -128,6 +132,13 @@ export interface paths {
|
|
|
128
132
|
*/
|
|
129
133
|
post: operations['syncs_send_custom_event'];
|
|
130
134
|
};
|
|
135
|
+
'/consumers/{consumerid}/syncs/{syncid}/flows/{flowid}/executions': {
|
|
136
|
+
/**
|
|
137
|
+
* Get executions information for one consumer/flow/sync
|
|
138
|
+
* @description Returns executions information for one consumer/flow/sync
|
|
139
|
+
*/
|
|
140
|
+
get: operations['syncs_get_consumer_executions'];
|
|
141
|
+
};
|
|
131
142
|
'/syncs/{syncid}/flows/{flowid}/executions/{executionid}': {
|
|
132
143
|
/**
|
|
133
144
|
* Get execution start/end timestamp
|
|
@@ -431,6 +442,13 @@ export interface paths {
|
|
|
431
442
|
*/
|
|
432
443
|
post: operations['accounting_create_financial_entry'];
|
|
433
444
|
};
|
|
445
|
+
'/consumers/{consumer_id}/accounting/outstandings': {
|
|
446
|
+
/**
|
|
447
|
+
* Get clients/suppliers outstandings
|
|
448
|
+
* @description Returns a list of all clients/suppliers outstanding's informations
|
|
449
|
+
*/
|
|
450
|
+
get: operations['accounting_get_outstandings'];
|
|
451
|
+
};
|
|
434
452
|
'/consumers/{consumer_id}/pos/orders': {
|
|
435
453
|
/**
|
|
436
454
|
* Get orders
|
|
@@ -1284,6 +1302,8 @@ export interface components {
|
|
|
1284
1302
|
addresses?: components['schemas']['models__common__AddressItemOut'][];
|
|
1285
1303
|
/** Account Number */
|
|
1286
1304
|
account_number?: string;
|
|
1305
|
+
/** Company Number */
|
|
1306
|
+
company_number?: string;
|
|
1287
1307
|
/** Id */
|
|
1288
1308
|
id?: string;
|
|
1289
1309
|
};
|
|
@@ -1930,7 +1950,7 @@ export interface components {
|
|
|
1930
1950
|
account_number: string;
|
|
1931
1951
|
/**
|
|
1932
1952
|
* Partner Id
|
|
1933
|
-
* @description Must be filled in it is a 'customer_account' or '
|
|
1953
|
+
* @description Must be filled in it is a 'customer_account', 'supplier_account' or 'employee_account' line type.
|
|
1934
1954
|
*/
|
|
1935
1955
|
partner_id?: string;
|
|
1936
1956
|
/**
|
|
@@ -1948,7 +1968,7 @@ export interface components {
|
|
|
1948
1968
|
account_number: string;
|
|
1949
1969
|
/**
|
|
1950
1970
|
* Partner Id
|
|
1951
|
-
* @description Must be filled in it is a 'customer_account' or '
|
|
1971
|
+
* @description Must be filled in it is a 'customer_account', 'supplier_account' or 'employee_account' line type.
|
|
1952
1972
|
*/
|
|
1953
1973
|
partner_id?: string;
|
|
1954
1974
|
/**
|
|
@@ -2062,6 +2082,12 @@ export interface components {
|
|
|
2062
2082
|
/** Url */
|
|
2063
2083
|
url: string;
|
|
2064
2084
|
};
|
|
2085
|
+
/**
|
|
2086
|
+
* ImageType
|
|
2087
|
+
* @description An enumeration.
|
|
2088
|
+
* @enum {unknown}
|
|
2089
|
+
*/
|
|
2090
|
+
ImageType: 'icon' | 'logo';
|
|
2065
2091
|
/** IntegrationItem */
|
|
2066
2092
|
IntegrationItem: {
|
|
2067
2093
|
/** Integrationid */
|
|
@@ -2070,6 +2096,10 @@ export interface components {
|
|
|
2070
2096
|
name: string;
|
|
2071
2097
|
status: components['schemas']['app__routers__integrations__Status'];
|
|
2072
2098
|
api: components['schemas']['Api'];
|
|
2099
|
+
/** Logo Url */
|
|
2100
|
+
logo_url: string;
|
|
2101
|
+
/** Icon Url */
|
|
2102
|
+
icon_url: string;
|
|
2073
2103
|
/**
|
|
2074
2104
|
* Credentials
|
|
2075
2105
|
* @description List of credentials that must be specified to create a connection. Can be used if you want to pass credentials on connection creation. Not compatible with oAuth2 routes.
|
|
@@ -3087,7 +3117,8 @@ export interface components {
|
|
|
3087
3117
|
| 'supplier_invoice'
|
|
3088
3118
|
| 'supplier_refund'
|
|
3089
3119
|
| 'financial_operation'
|
|
3090
|
-
| 'miscellaneous_operation'
|
|
3120
|
+
| 'miscellaneous_operation'
|
|
3121
|
+
| 'unknown';
|
|
3091
3122
|
/** LinkItem */
|
|
3092
3123
|
LinkItem: {
|
|
3093
3124
|
/** Url */
|
|
@@ -3098,6 +3129,13 @@ export interface components {
|
|
|
3098
3129
|
/** Url */
|
|
3099
3130
|
url: string;
|
|
3100
3131
|
};
|
|
3132
|
+
/** LogoImage */
|
|
3133
|
+
LogoImage: {
|
|
3134
|
+
/** Integrationid */
|
|
3135
|
+
integrationid: string;
|
|
3136
|
+
/** Data */
|
|
3137
|
+
data: string;
|
|
3138
|
+
};
|
|
3101
3139
|
/** MappingItem */
|
|
3102
3140
|
MappingItem: {
|
|
3103
3141
|
/** Source Id */
|
|
@@ -3629,6 +3667,48 @@ export interface components {
|
|
|
3629
3667
|
* @enum {string}
|
|
3630
3668
|
*/
|
|
3631
3669
|
OrderStatus: 'cancelled' | 'draft' | 'confirmed';
|
|
3670
|
+
/** OutstandingItem */
|
|
3671
|
+
OutstandingItem: {
|
|
3672
|
+
/** Id */
|
|
3673
|
+
id: string;
|
|
3674
|
+
/** Number */
|
|
3675
|
+
number?: string;
|
|
3676
|
+
/** Journal Id */
|
|
3677
|
+
journal_id: string;
|
|
3678
|
+
journal_type: components['schemas']['JournalType'];
|
|
3679
|
+
/**
|
|
3680
|
+
* Date
|
|
3681
|
+
* Format: date
|
|
3682
|
+
*/
|
|
3683
|
+
date: string;
|
|
3684
|
+
/**
|
|
3685
|
+
* Due Date
|
|
3686
|
+
* Format: date
|
|
3687
|
+
*/
|
|
3688
|
+
due_date?: string;
|
|
3689
|
+
/** Currency */
|
|
3690
|
+
currency: string;
|
|
3691
|
+
/** Currency Exchange Rate */
|
|
3692
|
+
currency_exchange_rate: number;
|
|
3693
|
+
/** Amount */
|
|
3694
|
+
amount: number;
|
|
3695
|
+
/** Open Amount */
|
|
3696
|
+
open_amount: number;
|
|
3697
|
+
/** Partner Id */
|
|
3698
|
+
partner_id: string;
|
|
3699
|
+
/** Account Number */
|
|
3700
|
+
account_number: string;
|
|
3701
|
+
/** Reference */
|
|
3702
|
+
reference?: string;
|
|
3703
|
+
/** Posted */
|
|
3704
|
+
posted: boolean;
|
|
3705
|
+
};
|
|
3706
|
+
/**
|
|
3707
|
+
* OutstandingType
|
|
3708
|
+
* @description An enumeration.
|
|
3709
|
+
* @enum {string}
|
|
3710
|
+
*/
|
|
3711
|
+
OutstandingType: 'client' | 'supplier';
|
|
3632
3712
|
/** POSCreateCustomerItem */
|
|
3633
3713
|
POSCreateCustomerItem: {
|
|
3634
3714
|
/** First Name */
|
|
@@ -3942,6 +4022,17 @@ export interface components {
|
|
|
3942
4022
|
/** Size */
|
|
3943
4023
|
size: number;
|
|
3944
4024
|
};
|
|
4025
|
+
/** Page[OutstandingItem] */
|
|
4026
|
+
Page_OutstandingItem_: {
|
|
4027
|
+
/** Items */
|
|
4028
|
+
items: components['schemas']['OutstandingItem'][];
|
|
4029
|
+
/** Total */
|
|
4030
|
+
total: number;
|
|
4031
|
+
/** Page */
|
|
4032
|
+
page: number;
|
|
4033
|
+
/** Size */
|
|
4034
|
+
size: number;
|
|
4035
|
+
};
|
|
3945
4036
|
/** Page[POSCustomerItem] */
|
|
3946
4037
|
Page_POSCustomerItem_: {
|
|
3947
4038
|
/** Items */
|
|
@@ -4564,6 +4655,8 @@ export interface components {
|
|
|
4564
4655
|
addresses?: components['schemas']['models__common__AddressItemOut'][];
|
|
4565
4656
|
/** Account Number */
|
|
4566
4657
|
account_number?: string;
|
|
4658
|
+
/** Company Number */
|
|
4659
|
+
company_number?: string;
|
|
4567
4660
|
/** Id */
|
|
4568
4661
|
id?: string;
|
|
4569
4662
|
};
|
|
@@ -4735,7 +4828,15 @@ export interface components {
|
|
|
4735
4828
|
* @description An enumeration.
|
|
4736
4829
|
* @enum {string}
|
|
4737
4830
|
*/
|
|
4738
|
-
TransactionAccountingCategory:
|
|
4831
|
+
TransactionAccountingCategory:
|
|
4832
|
+
| 'all'
|
|
4833
|
+
| 'unknown'
|
|
4834
|
+
| 'payout'
|
|
4835
|
+
| 'payout_cancel'
|
|
4836
|
+
| 'payment'
|
|
4837
|
+
| 'payment_cancel'
|
|
4838
|
+
| 'fee'
|
|
4839
|
+
| 'fee_cancel';
|
|
4739
4840
|
/**
|
|
4740
4841
|
* TransactionFilterDateType
|
|
4741
4842
|
* @description An enumeration.
|
|
@@ -5737,6 +5838,35 @@ export interface operations {
|
|
|
5737
5838
|
};
|
|
5738
5839
|
};
|
|
5739
5840
|
};
|
|
5841
|
+
/** Returns a logo/icon of an integration (as base64) */
|
|
5842
|
+
integrations_get_integration_logo_json: {
|
|
5843
|
+
parameters: {
|
|
5844
|
+
path: {
|
|
5845
|
+
integrationid: number;
|
|
5846
|
+
image_type: components['schemas']['ImageType'];
|
|
5847
|
+
};
|
|
5848
|
+
};
|
|
5849
|
+
responses: {
|
|
5850
|
+
/** @description Successful Response */
|
|
5851
|
+
200: {
|
|
5852
|
+
content: {
|
|
5853
|
+
'application/json': components['schemas']['LogoImage'];
|
|
5854
|
+
};
|
|
5855
|
+
};
|
|
5856
|
+
/** @description Not Found */
|
|
5857
|
+
404: {
|
|
5858
|
+
content: {
|
|
5859
|
+
'application/json': components['schemas']['ChiftError'];
|
|
5860
|
+
};
|
|
5861
|
+
};
|
|
5862
|
+
/** @description Validation Error */
|
|
5863
|
+
422: {
|
|
5864
|
+
content: {
|
|
5865
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
5866
|
+
};
|
|
5867
|
+
};
|
|
5868
|
+
};
|
|
5869
|
+
};
|
|
5740
5870
|
/**
|
|
5741
5871
|
* Get list of possible webhooks
|
|
5742
5872
|
* @description Returns a list of webhook that are available for your account
|
|
@@ -6022,12 +6152,52 @@ export interface operations {
|
|
|
6022
6152
|
};
|
|
6023
6153
|
};
|
|
6024
6154
|
};
|
|
6155
|
+
/**
|
|
6156
|
+
* Get executions information for one consumer/flow/sync
|
|
6157
|
+
* @description Returns executions information for one consumer/flow/sync
|
|
6158
|
+
*/
|
|
6159
|
+
syncs_get_consumer_executions: {
|
|
6160
|
+
parameters: {
|
|
6161
|
+
query?: {
|
|
6162
|
+
date_to?: string;
|
|
6163
|
+
date_from?: string;
|
|
6164
|
+
};
|
|
6165
|
+
path: {
|
|
6166
|
+
consumerid: string;
|
|
6167
|
+
syncid: string;
|
|
6168
|
+
flowid: string;
|
|
6169
|
+
};
|
|
6170
|
+
};
|
|
6171
|
+
responses: {
|
|
6172
|
+
/** @description Successful Response */
|
|
6173
|
+
200: {
|
|
6174
|
+
content: {
|
|
6175
|
+
'application/json': components['schemas']['ChainExecutionItem'][];
|
|
6176
|
+
};
|
|
6177
|
+
};
|
|
6178
|
+
/** @description Not Found */
|
|
6179
|
+
404: {
|
|
6180
|
+
content: {
|
|
6181
|
+
'application/json': components['schemas']['ChiftError'];
|
|
6182
|
+
};
|
|
6183
|
+
};
|
|
6184
|
+
/** @description Validation Error */
|
|
6185
|
+
422: {
|
|
6186
|
+
content: {
|
|
6187
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
6188
|
+
};
|
|
6189
|
+
};
|
|
6190
|
+
};
|
|
6191
|
+
};
|
|
6025
6192
|
/**
|
|
6026
6193
|
* Get execution start/end timestamp
|
|
6027
6194
|
* @description Get execution start/end timestamp
|
|
6028
6195
|
*/
|
|
6029
6196
|
syncs_get_execution: {
|
|
6030
6197
|
parameters: {
|
|
6198
|
+
query?: {
|
|
6199
|
+
consumerid?: string;
|
|
6200
|
+
};
|
|
6031
6201
|
path: {
|
|
6032
6202
|
syncid: string;
|
|
6033
6203
|
flowid: string;
|
|
@@ -6161,6 +6331,8 @@ export interface operations {
|
|
|
6161
6331
|
datastores_get_consumer_and_datastoredata: {
|
|
6162
6332
|
parameters: {
|
|
6163
6333
|
query?: {
|
|
6334
|
+
date_to?: string;
|
|
6335
|
+
date_from?: string;
|
|
6164
6336
|
executionid?: string;
|
|
6165
6337
|
};
|
|
6166
6338
|
path: {
|
|
@@ -7822,6 +7994,10 @@ export interface operations {
|
|
|
7822
7994
|
*/
|
|
7823
7995
|
accounting_create_financial_entry: {
|
|
7824
7996
|
parameters: {
|
|
7997
|
+
query?: {
|
|
7998
|
+
/** @description Counterpart account number of the bank/cash journal. This will be retrieved from the accounting settings if left empty. */
|
|
7999
|
+
financial_counterpart_account?: string;
|
|
8000
|
+
};
|
|
7825
8001
|
path: {
|
|
7826
8002
|
consumer_id: string;
|
|
7827
8003
|
};
|
|
@@ -7858,6 +8034,43 @@ export interface operations {
|
|
|
7858
8034
|
};
|
|
7859
8035
|
};
|
|
7860
8036
|
};
|
|
8037
|
+
/**
|
|
8038
|
+
* Get clients/suppliers outstandings
|
|
8039
|
+
* @description Returns a list of all clients/suppliers outstanding's informations
|
|
8040
|
+
*/
|
|
8041
|
+
accounting_get_outstandings: {
|
|
8042
|
+
parameters: {
|
|
8043
|
+
query: {
|
|
8044
|
+
type: components['schemas']['OutstandingType'];
|
|
8045
|
+
unposted_allowed: components['schemas']['BoolParam'];
|
|
8046
|
+
page?: number;
|
|
8047
|
+
size?: number;
|
|
8048
|
+
};
|
|
8049
|
+
path: {
|
|
8050
|
+
consumer_id: string;
|
|
8051
|
+
};
|
|
8052
|
+
};
|
|
8053
|
+
responses: {
|
|
8054
|
+
/** @description Successful Response */
|
|
8055
|
+
200: {
|
|
8056
|
+
content: {
|
|
8057
|
+
'application/json': components['schemas']['Page_OutstandingItem_'];
|
|
8058
|
+
};
|
|
8059
|
+
};
|
|
8060
|
+
/** @description Bad Request */
|
|
8061
|
+
400: {
|
|
8062
|
+
content: {
|
|
8063
|
+
'application/json': components['schemas']['ChiftError'];
|
|
8064
|
+
};
|
|
8065
|
+
};
|
|
8066
|
+
/** @description Validation Error */
|
|
8067
|
+
422: {
|
|
8068
|
+
content: {
|
|
8069
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
8070
|
+
};
|
|
8071
|
+
};
|
|
8072
|
+
};
|
|
8073
|
+
};
|
|
7861
8074
|
/**
|
|
7862
8075
|
* Get orders
|
|
7863
8076
|
* @description Returns a list of the orders
|
|
@@ -8669,7 +8882,7 @@ export interface operations {
|
|
|
8669
8882
|
date_from?: string;
|
|
8670
8883
|
/** @description Filter orders created at or before this date (e.g. 2023-01-31) */
|
|
8671
8884
|
date_to?: string;
|
|
8672
|
-
/** @description Filter orders last updated at or after this date (e.g. 2023-01-31T15:00:00 for 31 of January 2023 at 3PM UTC) */
|
|
8885
|
+
/** @description Filter orders last updated at or after this date (e.g. 2023-01-31T15:00:00 for 31 of January 2023 at 3PM UTC). UTC is the only format that is supported on all connectors. */
|
|
8673
8886
|
updated_after?: string;
|
|
8674
8887
|
/** @description Include detailed information concerning refunds */
|
|
8675
8888
|
include_detailed_refunds?: components['schemas']['BoolParam'];
|