@silexpert/core 0.4.43 → 0.4.46
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/es/api/resources/dashboard.d.ts +6 -3
- package/es/api/resources/dashboard.d.ts.map +1 -1
- package/es/api/resources/dashboard.js +12 -2
- package/es/api/resources/dashboard.js.map +1 -1
- package/es/types/Enum/ShopifyFinancialStatus.d.ts +2 -0
- package/es/types/Enum/ShopifyFinancialStatus.d.ts.map +1 -0
- package/es/types/Enum/ShopifyFinancialStatus.js +2 -0
- package/es/types/Enum/ShopifyFinancialStatus.js.map +1 -0
- package/es/types/Enum/StockType.js +1 -1
- package/es/types/Enum/StockType.js.map +1 -1
- package/es/types/Enum/TransactionKind.d.ts +2 -0
- package/es/types/Enum/TransactionKind.d.ts.map +1 -0
- package/es/types/Enum/TransactionKind.js +2 -0
- package/es/types/Enum/TransactionKind.js.map +1 -0
- package/es/types/Enum/TransactionStatus.d.ts +2 -0
- package/es/types/Enum/TransactionStatus.d.ts.map +1 -0
- package/es/types/Enum/TransactionStatus.js +2 -0
- package/es/types/Enum/TransactionStatus.js.map +1 -0
- package/es/types/Interface/api/crisp/GetCrisp.d.ts +42 -0
- package/es/types/Interface/api/crisp/GetCrisp.d.ts.map +1 -0
- package/es/types/Interface/api/crisp/GetCrisp.js +2 -0
- package/es/types/Interface/api/crisp/GetCrisp.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.js +21 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.js +21 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryVat.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryVat.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryVat.js +21 -0
- package/es/types/Interface/api/dashboard/QueryVat.js.map +1 -0
- package/es/types/Interface/api/dashboard/{ResultBalanceBankAccount.d.ts → ReadBalanceBankAccount.d.ts} +2 -2
- package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.js +5 -0
- package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.d.ts +6 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.js +3 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.d.ts +6 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.js +3 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.js.map +1 -0
- package/es/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.d.ts → ReadTurnOverProfitAndLoss.d.ts} +2 -2
- package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js +7 -0
- package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadVat.d.ts +11 -0
- package/es/types/Interface/api/dashboard/ReadVat.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadVat.js +5 -0
- package/es/types/Interface/api/dashboard/ReadVat.js.map +1 -0
- package/es/types/Interface/api/pdf/BillingDocumentData.d.ts +22 -20
- package/es/types/Interface/api/pdf/BillingDocumentData.d.ts.map +1 -1
- package/es/types/Interface/api/pdf/BillingDocumentData.js.map +1 -1
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.d.ts +5 -0
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.js +21 -0
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.js.map +1 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.d.ts +366 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.js +2 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.js.map +1 -0
- package/es/types/Interface/api/shopify/address.d.ts +72 -0
- package/es/types/Interface/api/shopify/address.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/address.js +2 -0
- package/es/types/Interface/api/shopify/address.js.map +1 -0
- package/es/types/Interface/api/shopify/base.d.ts +11 -0
- package/es/types/Interface/api/shopify/base.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/base.js +2 -0
- package/es/types/Interface/api/shopify/base.js.map +1 -0
- package/es/types/Interface/api/shopify/client_details.d.ts +28 -0
- package/es/types/Interface/api/shopify/client_details.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/client_details.js +2 -0
- package/es/types/Interface/api/shopify/client_details.js.map +1 -0
- package/es/types/Interface/api/shopify/customer.d.ts +99 -0
- package/es/types/Interface/api/shopify/customer.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/customer.js +2 -0
- package/es/types/Interface/api/shopify/customer.js.map +1 -0
- package/es/types/Interface/api/shopify/discount_allocation.d.ts +17 -0
- package/es/types/Interface/api/shopify/discount_allocation.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/discount_allocation.js +2 -0
- package/es/types/Interface/api/shopify/discount_allocation.js.map +1 -0
- package/es/types/Interface/api/shopify/discount_application.d.ts +74 -0
- package/es/types/Interface/api/shopify/discount_application.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/discount_application.js +2 -0
- package/es/types/Interface/api/shopify/discount_application.js.map +1 -0
- package/es/types/Interface/api/shopify/discount_code.d.ts +16 -0
- package/es/types/Interface/api/shopify/discount_code.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/discount_code.js +2 -0
- package/es/types/Interface/api/shopify/discount_code.js.map +1 -0
- package/es/types/Interface/api/shopify/fulfillment.d.ts +93 -0
- package/es/types/Interface/api/shopify/fulfillment.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/fulfillment.js +2 -0
- package/es/types/Interface/api/shopify/fulfillment.js.map +1 -0
- package/es/types/Interface/api/shopify/line_item.d.ts +126 -0
- package/es/types/Interface/api/shopify/line_item.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/line_item.js +2 -0
- package/es/types/Interface/api/shopify/line_item.js.map +1 -0
- package/es/types/Interface/api/shopify/line_item_property.d.ts +12 -0
- package/es/types/Interface/api/shopify/line_item_property.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/line_item_property.js +2 -0
- package/es/types/Interface/api/shopify/line_item_property.js.map +1 -0
- package/es/types/Interface/api/shopify/location.d.ts +57 -0
- package/es/types/Interface/api/shopify/location.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/location.js +2 -0
- package/es/types/Interface/api/shopify/location.js.map +1 -0
- package/es/types/Interface/api/shopify/note_attribute.d.ts +11 -0
- package/es/types/Interface/api/shopify/note_attribute.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/note_attribute.js +2 -0
- package/es/types/Interface/api/shopify/note_attribute.js.map +1 -0
- package/es/types/Interface/api/shopify/payment_details.d.ts +9 -0
- package/es/types/Interface/api/shopify/payment_details.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/payment_details.js +2 -0
- package/es/types/Interface/api/shopify/payment_details.js.map +1 -0
- package/es/types/Interface/api/shopify/price_set.d.ts +11 -0
- package/es/types/Interface/api/shopify/price_set.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/price_set.js +2 -0
- package/es/types/Interface/api/shopify/price_set.js.map +1 -0
- package/es/types/Interface/api/shopify/refund.d.ts +140 -0
- package/es/types/Interface/api/shopify/refund.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/refund.js +2 -0
- package/es/types/Interface/api/shopify/refund.js.map +1 -0
- package/es/types/Interface/api/shopify/shipping_line.d.ts +59 -0
- package/es/types/Interface/api/shopify/shipping_line.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/shipping_line.js +2 -0
- package/es/types/Interface/api/shopify/shipping_line.js.map +1 -0
- package/es/types/Interface/api/shopify/tax_line.d.ts +22 -0
- package/es/types/Interface/api/shopify/tax_line.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/tax_line.js +2 -0
- package/es/types/Interface/api/shopify/tax_line.js.map +1 -0
- package/es/types/Interface/api/shopify/transaction.d.ts +103 -0
- package/es/types/Interface/api/shopify/transaction.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/transaction.js +2 -0
- package/es/types/Interface/api/shopify/transaction.js.map +1 -0
- package/es/types/Interface/models/IAccountingFile.d.ts +1 -1
- package/es/types/Interface/models/IAccountingFile.js.map +1 -1
- package/es/types/Interface/models/IEngagementAccountingFile.d.ts +1 -1
- package/es/types/Interface/models/IEngagementAccountingFile.js.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.d.ts +29 -29
- package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
- package/es/types/index.d.ts +12 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +12 -2
- package/es/types/index.js.map +1 -1
- package/js/api/resources/dashboard.js +22 -2
- package/js/api/resources/dashboard.js.map +1 -1
- package/js/types/Enum/ShopifyFinancialStatus.js +6 -0
- package/js/types/Enum/ShopifyFinancialStatus.js.map +1 -0
- package/js/types/Enum/StockType.js +1 -1
- package/js/types/Enum/StockType.js.map +1 -1
- package/js/types/Enum/TransactionKind.js +6 -0
- package/js/types/Enum/TransactionKind.js.map +1 -0
- package/js/types/Enum/TransactionStatus.js +6 -0
- package/js/types/Enum/TransactionStatus.js.map +1 -0
- package/js/types/Interface/api/crisp/GetCrisp.js +6 -0
- package/js/types/Interface/api/crisp/GetCrisp.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryTopBuys.js +29 -0
- package/js/types/Interface/api/dashboard/QueryTopBuys.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryTopProviders.js +29 -0
- package/js/types/Interface/api/dashboard/QueryTopProviders.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryVat.js +29 -0
- package/js/types/Interface/api/dashboard/QueryVat.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadBalanceBankAccount.js +14 -0
- package/js/types/Interface/api/dashboard/ReadBalanceBankAccount.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadTopBuys.js +10 -0
- package/js/types/Interface/api/dashboard/ReadTopBuys.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadTopProviders.js +10 -0
- package/js/types/Interface/api/dashboard/ReadTopProviders.js.map +1 -0
- package/js/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.js → ReadTurnOverProfitAndLoss.js} +3 -3
- package/js/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadVat.js +14 -0
- package/js/types/Interface/api/dashboard/ReadVat.js.map +1 -0
- package/js/types/Interface/api/shopify/ImportInvoicesShopify.js +29 -0
- package/js/types/Interface/api/shopify/ImportInvoicesShopify.js.map +1 -0
- package/js/types/Interface/api/shopify/ShopifyOrder.js +6 -0
- package/js/types/Interface/api/shopify/ShopifyOrder.js.map +1 -0
- package/js/types/Interface/api/shopify/address.js +6 -0
- package/js/types/Interface/api/shopify/address.js.map +1 -0
- package/js/types/Interface/api/shopify/base.js +6 -0
- package/js/types/Interface/api/shopify/base.js.map +1 -0
- package/js/types/Interface/api/shopify/client_details.js +6 -0
- package/js/types/Interface/api/shopify/client_details.js.map +1 -0
- package/js/types/Interface/api/shopify/customer.js +6 -0
- package/js/types/Interface/api/shopify/customer.js.map +1 -0
- package/js/types/Interface/api/shopify/discount_allocation.js +6 -0
- package/js/types/Interface/api/shopify/discount_allocation.js.map +1 -0
- package/js/types/Interface/api/shopify/discount_application.js +6 -0
- package/js/types/Interface/api/shopify/discount_application.js.map +1 -0
- package/js/types/Interface/api/shopify/discount_code.js +6 -0
- package/js/types/Interface/api/shopify/discount_code.js.map +1 -0
- package/js/types/Interface/api/shopify/fulfillment.js +6 -0
- package/js/types/Interface/api/shopify/fulfillment.js.map +1 -0
- package/js/types/Interface/api/shopify/line_item.js +6 -0
- package/js/types/Interface/api/shopify/line_item.js.map +1 -0
- package/js/types/Interface/api/shopify/line_item_property.js +6 -0
- package/js/types/Interface/api/shopify/line_item_property.js.map +1 -0
- package/js/types/Interface/api/shopify/location.js +6 -0
- package/js/types/Interface/api/shopify/location.js.map +1 -0
- package/js/types/Interface/api/shopify/note_attribute.js +6 -0
- package/js/types/Interface/api/shopify/note_attribute.js.map +1 -0
- package/js/types/Interface/api/shopify/payment_details.js +6 -0
- package/js/types/Interface/api/shopify/payment_details.js.map +1 -0
- package/js/types/Interface/api/shopify/price_set.js +6 -0
- package/js/types/Interface/api/shopify/price_set.js.map +1 -0
- package/js/types/Interface/api/shopify/refund.js +6 -0
- package/js/types/Interface/api/shopify/refund.js.map +1 -0
- package/js/types/Interface/api/shopify/shipping_line.js +6 -0
- package/js/types/Interface/api/shopify/shipping_line.js.map +1 -0
- package/js/types/Interface/api/shopify/tax_line.js +6 -0
- package/js/types/Interface/api/shopify/tax_line.js.map +1 -0
- package/js/types/Interface/api/shopify/transaction.js +6 -0
- package/js/types/Interface/api/shopify/transaction.js.map +1 -0
- package/js/types/index.js +126 -6
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/dashboard.ts +32 -6
- package/ts/types/Enum/ShopifyFinancialStatus.ts +11 -0
- package/ts/types/Enum/StockType.ts +1 -1
- package/ts/types/Enum/TransactionKind.ts +7 -0
- package/ts/types/Enum/TransactionStatus.ts +6 -0
- package/ts/types/Interface/api/crisp/GetCrisp.ts +46 -0
- package/ts/types/Interface/api/dashboard/QueryTopBuys.ts +9 -0
- package/ts/types/Interface/api/dashboard/QueryTopProviders.ts +9 -0
- package/ts/types/Interface/api/dashboard/QueryVat.ts +9 -0
- package/ts/types/Interface/api/dashboard/{ResultBalanceBankAccount.ts → ReadBalanceBankAccount.ts} +1 -1
- package/ts/types/Interface/api/dashboard/ReadTopBuys.ts +5 -0
- package/ts/types/Interface/api/dashboard/ReadTopProviders.ts +5 -0
- package/ts/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.ts → ReadTurnOverProfitAndLoss.ts} +1 -1
- package/ts/types/Interface/api/dashboard/ReadVat.ts +11 -0
- package/ts/types/Interface/api/pdf/BillingDocumentData.ts +22 -20
- package/ts/types/Interface/api/shopify/ImportInvoicesShopify.ts +8 -0
- package/ts/types/Interface/api/shopify/ShopifyOrder.ts +436 -0
- package/ts/types/Interface/api/shopify/address.ts +88 -0
- package/ts/types/Interface/api/shopify/base.ts +10 -0
- package/ts/types/Interface/api/shopify/client_details.ts +33 -0
- package/ts/types/Interface/api/shopify/customer.ts +125 -0
- package/ts/types/Interface/api/shopify/discount_allocation.ts +19 -0
- package/ts/types/Interface/api/shopify/discount_application.ts +83 -0
- package/ts/types/Interface/api/shopify/discount_code.ts +18 -0
- package/ts/types/Interface/api/shopify/fulfillment.ts +110 -0
- package/ts/types/Interface/api/shopify/line_item.ts +153 -0
- package/ts/types/Interface/api/shopify/line_item_property.ts +13 -0
- package/ts/types/Interface/api/shopify/location.ts +69 -0
- package/ts/types/Interface/api/shopify/note_attribute.ts +11 -0
- package/ts/types/Interface/api/shopify/payment_details.ts +13 -0
- package/ts/types/Interface/api/shopify/price_set.ts +10 -0
- package/ts/types/Interface/api/shopify/refund.ts +142 -0
- package/ts/types/Interface/api/shopify/shipping_line.ts +71 -0
- package/ts/types/Interface/api/shopify/tax_line.ts +25 -0
- package/ts/types/Interface/api/shopify/transaction.ts +123 -0
- package/ts/types/Interface/models/IAccountingFile.ts +1 -1
- package/ts/types/Interface/models/IEngagementAccountingFile.ts +1 -1
- package/ts/types/Interface/models/ISocietyGescom.ts +29 -29
- package/ts/types/index.ts +12 -2
- package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.js +0 -5
- package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.js.map +0 -1
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +0 -7
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +0 -1
- package/js/types/Interface/api/dashboard/ResultBalanceBankAccount.js +0 -14
- package/js/types/Interface/api/dashboard/ResultBalanceBankAccount.js.map +0 -1
- package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.46",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,14 +1,40 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
QueryBalanceBankAccount,
|
|
3
|
+
QueryBalanceBankAccount,
|
|
4
|
+
QueryTurnoverProfitAndLoss,
|
|
5
|
+
QueryVat,
|
|
6
|
+
QueryTopBuys,
|
|
7
|
+
QueryTopProviders,
|
|
8
|
+
ReadTopProviders,
|
|
9
|
+
ReadTurnoverProfitAndLoss,
|
|
10
|
+
ReadBalanceBankAccount,
|
|
11
|
+
ReadVat,
|
|
12
|
+
ReadTopBuys,
|
|
4
13
|
} from '../../types';
|
|
5
14
|
|
|
15
|
+
const ROUTE = 'dashboard';
|
|
6
16
|
export class Dashboard extends Resource {
|
|
7
|
-
getTurnoverProfitAndLoss(
|
|
8
|
-
|
|
17
|
+
getTurnoverProfitAndLoss(
|
|
18
|
+
params: QueryTurnoverProfitAndLoss,
|
|
19
|
+
): Promise<ReadTurnoverProfitAndLoss> {
|
|
20
|
+
return this.axios.$get(`${ROUTE}/turnoverProfitAndLoss`, { params });
|
|
9
21
|
}
|
|
10
22
|
|
|
11
|
-
getBalanceBankAccount(
|
|
12
|
-
|
|
23
|
+
getBalanceBankAccount(
|
|
24
|
+
params: QueryBalanceBankAccount,
|
|
25
|
+
): Promise<ReadBalanceBankAccount[]> {
|
|
26
|
+
return this.axios.$get(`${ROUTE}/balanceBankAccount`, { params });
|
|
13
27
|
}
|
|
14
|
-
|
|
28
|
+
|
|
29
|
+
getTva(dates: QueryVat): Promise<ReadVat> {
|
|
30
|
+
return this.axios.get(`${ROUTE}/vat`, { params: dates });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
getTopBuys(dates: QueryTopBuys): Promise<ReadTopBuys[]> {
|
|
34
|
+
return this.axios.$get(`${ROUTE}/topBuys`, { params: dates });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
getTopProviders(params: QueryTopProviders): Promise<ReadTopProviders[]> {
|
|
38
|
+
return this.axios.$get(`${ROUTE}/topProviders`, { params });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -42,7 +42,7 @@ export const StockType: stockInterface = {
|
|
|
42
42
|
designation: 'Stock de travaux de production en cours',
|
|
43
43
|
idAccount: 352,
|
|
44
44
|
idAccountVariation: 422,
|
|
45
|
-
idAccountDepreciation:
|
|
45
|
+
idAccountDepreciation: 386,
|
|
46
46
|
},
|
|
47
47
|
STOCK_PRODUITS_SERVICE_EN_COURS: {
|
|
48
48
|
designation: 'Stock de produit et service en cours',
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type CrispHookPayload = {
|
|
2
|
+
website_id: string;
|
|
3
|
+
event: CrispEvent;
|
|
4
|
+
data: CrispData | any; // TODO: Implement other data when used
|
|
5
|
+
timestamp: number;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type CrispEvent = 'session:sync:rating' | 'session:update_availability' |'session:update_verify' |'session:request' |'session:set_email' |'session:set_phone' |'session:set_address' |'session:set_avatar' |'session:set_nickname' |'session:set_data' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:set_state' |'session:set_block' |'session:set_segments' |'session:set_opened' |'session:set_closed' |'session:set_participants' |'session:set_mentions' |'session:set_routing' |'session:removed' | 'message:updated' |'message:send' |'message:received' |'message:compose:send' |'message:compose:receive' |'message:acknowledge:read:send' |'message:acknowledge:read:received' |'message:acknowledge:delivered' |'message:notify:unread:send' |'message:notify:unread:received' |'people:profile:created' |'people:profile:updated' |'people:profile:removed' |'people:bind:session' |'people:sync:profile' |'people:import:progress' |'people:import:done' |'campaign:progress' |'campaign:dispatched' |'campaign:running' |'browsing:request:initiated' |'browsing:request:rejected' |'call:request:initiated' |'call:request:rejected' |'widget:action:processed' |'status:health:changed' |'website:update_visitors_count' |'website:update_operators_availability' |'website:users:available' |'bucket:url:upload:generated' |'bucket:url:avatar:generated' |'bucket:url:website:generated' |'bucket:url:campaign:generated' |'bucket:url:helpdesk:generated' |'bucket:url:status:generated' |'bucket:url:processing:generated' |'media:animation:listed' |'email:subscribe' |'email:track:view' |'plugin:channel' |'plugin:event' |'plugin:settings:saved';
|
|
9
|
+
|
|
10
|
+
export type CrispData = SessionSyncRating;
|
|
11
|
+
|
|
12
|
+
export type SessionSyncRating = {
|
|
13
|
+
website_id: string;
|
|
14
|
+
session_id: string;
|
|
15
|
+
rating: {
|
|
16
|
+
stars: number;
|
|
17
|
+
comment: string;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type GetConversationSuccessValue = {
|
|
22
|
+
session_id: string;
|
|
23
|
+
availability: string;
|
|
24
|
+
created_at: number;
|
|
25
|
+
is_blocked: boolean;
|
|
26
|
+
meta: {
|
|
27
|
+
nickname: string;
|
|
28
|
+
email: string;
|
|
29
|
+
phone: string;
|
|
30
|
+
avatar: string;
|
|
31
|
+
ip: string;
|
|
32
|
+
data: any,
|
|
33
|
+
segments: string;
|
|
34
|
+
},
|
|
35
|
+
state: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type CrispError = {
|
|
39
|
+
reason: string;
|
|
40
|
+
message: string;
|
|
41
|
+
code: number,
|
|
42
|
+
data: {
|
|
43
|
+
namespace: string;
|
|
44
|
+
message: string;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
@@ -4,7 +4,7 @@ interface BillingDocumentItemVat {
|
|
|
4
4
|
computeMethod: 'percentage',
|
|
5
5
|
vatPercentageValue: number,
|
|
6
6
|
}
|
|
7
|
-
interface BillingDocumentItem {
|
|
7
|
+
export interface BillingDocumentItem {
|
|
8
8
|
name: string,
|
|
9
9
|
comment: string,
|
|
10
10
|
quantity: number,
|
|
@@ -14,6 +14,25 @@ interface BillingDocumentItem {
|
|
|
14
14
|
unit: string,
|
|
15
15
|
vat: BillingDocumentItemVat,
|
|
16
16
|
}
|
|
17
|
+
export interface BillingDocumentRecipient {
|
|
18
|
+
id?: number;
|
|
19
|
+
fullname: string | null;
|
|
20
|
+
company: string;
|
|
21
|
+
address?: string | null;
|
|
22
|
+
zipCode?: string | null;
|
|
23
|
+
city?: string | null;
|
|
24
|
+
phone?: string | null;
|
|
25
|
+
nTva?: string | null;
|
|
26
|
+
thirdPartyCountry: {
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export interface BillingDocumentReferences {
|
|
31
|
+
createdDate: Date | null;
|
|
32
|
+
ref: string | null;
|
|
33
|
+
paymentPlan: string | null;
|
|
34
|
+
dueDate: Date | null;
|
|
35
|
+
}
|
|
17
36
|
|
|
18
37
|
export type BillingDocumentData = {
|
|
19
38
|
society: Partial<ISociety>,
|
|
@@ -21,24 +40,7 @@ export type BillingDocumentData = {
|
|
|
21
40
|
template: number | null;
|
|
22
41
|
generalComment: string | null;
|
|
23
42
|
generalDiscount: number | null;
|
|
24
|
-
recipient:
|
|
25
|
-
|
|
26
|
-
fullname: string | null;
|
|
27
|
-
company: string;
|
|
28
|
-
address?: string | null;
|
|
29
|
-
zipCode?: string | null;
|
|
30
|
-
city?: string | null;
|
|
31
|
-
phone?: string | null;
|
|
32
|
-
nTva?: string | null;
|
|
33
|
-
thirdPartyCountry: {
|
|
34
|
-
name: string;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
references: {
|
|
38
|
-
createdDate: Date | null;
|
|
39
|
-
ref: string | null;
|
|
40
|
-
paymentPlan: string | null;
|
|
41
|
-
dueDate: Date | null;
|
|
42
|
-
},
|
|
43
|
+
recipient: BillingDocumentRecipient;
|
|
44
|
+
references: BillingDocumentReferences,
|
|
43
45
|
items: BillingDocumentItem[]
|
|
44
46
|
};
|