@feedmepos/mf-e-invoice 0.0.8 → 0.0.10
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/EInvoice-5Slt6P3f.js +30760 -0
- package/dist/api/index.d.ts +7 -3
- package/dist/app.js +1 -1
- package/dist/store/index.d.ts +12 -5
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/EInvoiceDocument.vue.d.ts +21 -0
- package/dist/views/EInvoiceSubmission.vue.d.ts +2 -271
- package/dist/views/EInvoiceSubmissionRow.vue.d.ts +22 -0
- package/dist/views/submission.d.ts +38 -0
- package/package.json +3 -4
- package/dist/EInvoice-DrucJThJ.js +0 -74398
package/dist/api/index.d.ts
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { FdtoEInvoiceItemSetting } from "@/store";
|
|
2
|
+
import { FdoEInvoiceMarketingProfile, FdoEInvoiceMerchantProfile, FdoEInvoiceRestaurantProfile, FdoEInvoiceSetting, FdoEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
3
3
|
export declare const api: {
|
|
4
4
|
getRestaurantProfile: typeof getRestaurantProfile;
|
|
5
5
|
getMarketingProfile: typeof getMarketingProfile;
|
|
6
6
|
createProfile: typeof createProfile;
|
|
7
7
|
updateProfile: typeof updateProfile;
|
|
8
|
+
testSubmit: typeof testSubmit;
|
|
8
9
|
getSettings: typeof getSettings;
|
|
9
10
|
updateSettings: typeof updateSettings;
|
|
10
11
|
getSubmissions: typeof getSubmissions;
|
|
11
12
|
getBusinessMenu: typeof getBusinessMenu;
|
|
13
|
+
getBusinessMarketingMenu: typeof getBusinessMarketingMenu;
|
|
12
14
|
};
|
|
13
15
|
declare function getRestaurantProfile(restaurantId: string, custom?: CustomApiConfig): Promise<FdoEInvoiceRestaurantProfile | null>;
|
|
14
16
|
declare function getMarketingProfile(businessId: string, custom?: CustomApiConfig): Promise<FdoEInvoiceMarketingProfile | null>;
|
|
15
17
|
declare function createProfile(profile: FdoEInvoiceMerchantProfile, custom?: CustomApiConfig): Promise<any>;
|
|
16
18
|
declare function updateProfile(profile: FdoEInvoiceMerchantProfile, custom?: CustomApiConfig): Promise<any>;
|
|
19
|
+
declare function testSubmit(profile: FdoEInvoiceMerchantProfile, custom?: CustomApiConfig): Promise<boolean>;
|
|
17
20
|
declare function getSettings(businessId: string, custom?: CustomApiConfig): Promise<FdoEInvoiceSetting>;
|
|
18
21
|
declare function updateSettings(settings: FdoEInvoiceSetting, custom?: CustomApiConfig): Promise<FdoEInvoiceSetting>;
|
|
19
22
|
declare function getSubmissions(merchantId: string, filter: {
|
|
20
23
|
start: string;
|
|
21
24
|
end: string;
|
|
22
25
|
}, custom?: CustomApiConfig): Promise<FdoEInvoiceSubmission[]>;
|
|
23
|
-
declare function getBusinessMenu(businessId: string, custom?: CustomApiConfig): Promise<
|
|
26
|
+
declare function getBusinessMenu(businessId: string, custom?: CustomApiConfig): Promise<FdtoEInvoiceItemSetting[]>;
|
|
27
|
+
declare function getBusinessMarketingMenu(businessId: string, custom?: CustomApiConfig): Promise<FdtoEInvoiceItemSetting[]>;
|
|
24
28
|
interface CustomApiConfig {
|
|
25
29
|
businessId?: string;
|
|
26
30
|
userToken?: string;
|
package/dist/app.js
CHANGED
package/dist/store/index.d.ts
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import type { MarketingEInvoice, RestaurantEInvoice } from
|
|
2
|
-
import { FdoEInvoiceSetting, FdoFlattenTaxSetting } from
|
|
3
|
-
import type { FdoMenuV4 } from '@feedmepos/menu/entity';
|
|
1
|
+
import type { MarketingEInvoice, RestaurantEInvoice } from "@/types";
|
|
2
|
+
import { FdoEInvoiceSetting, FdoFlattenTaxSetting } from "@feedmepos/core/entity";
|
|
4
3
|
export interface AppLoading {
|
|
5
4
|
message: string;
|
|
6
|
-
exec: () =>
|
|
5
|
+
exec: () => Promise<void> | void;
|
|
6
|
+
}
|
|
7
|
+
export interface FdtoEInvoiceItemSetting {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
exempted: boolean;
|
|
11
|
+
reason: string;
|
|
7
12
|
}
|
|
8
13
|
interface AppState {
|
|
9
14
|
restaurants: RestaurantEInvoice[];
|
|
10
15
|
marketing: MarketingEInvoice | null;
|
|
11
16
|
settings: FdoEInvoiceSetting | null;
|
|
12
|
-
menu:
|
|
17
|
+
menu: FdtoEInvoiceItemSetting[];
|
|
18
|
+
marketingMenu: FdtoEInvoiceItemSetting[];
|
|
13
19
|
}
|
|
14
20
|
export declare const useStore: import("pinia").StoreDefinition<"app", AppState, {
|
|
15
21
|
countryTaxes(): {
|
|
@@ -61,5 +67,6 @@ export declare const useStore: import("pinia").StoreDefinition<"app", AppState,
|
|
|
61
67
|
getSettings(): Promise<void>;
|
|
62
68
|
updateSettings(newSettings: FdoEInvoiceSetting): Promise<void>;
|
|
63
69
|
getMenu(): Promise<void>;
|
|
70
|
+
getMarketingMenu(): Promise<void>;
|
|
64
71
|
}>;
|
|
65
72
|
export {};
|