@feedmepos/mf-e-invoice 0.0.10 → 0.0.11
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-BomAdQHK.js +30999 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/app.js +1 -1
- package/dist/store/index.d.ts +6 -34
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/EInvoiceCopyDialog.vue.d.ts +58 -0
- package/package.json +1 -1
- package/dist/EInvoice-5Slt6P3f.js +0 -30760
package/dist/api/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const api: {
|
|
|
5
5
|
getMarketingProfile: typeof getMarketingProfile;
|
|
6
6
|
createProfile: typeof createProfile;
|
|
7
7
|
updateProfile: typeof updateProfile;
|
|
8
|
+
copyProfile: typeof copyProfile;
|
|
8
9
|
testSubmit: typeof testSubmit;
|
|
9
10
|
getSettings: typeof getSettings;
|
|
10
11
|
updateSettings: typeof updateSettings;
|
|
@@ -16,6 +17,7 @@ declare function getRestaurantProfile(restaurantId: string, custom?: CustomApiCo
|
|
|
16
17
|
declare function getMarketingProfile(businessId: string, custom?: CustomApiConfig): Promise<FdoEInvoiceMarketingProfile | null>;
|
|
17
18
|
declare function createProfile(profile: FdoEInvoiceMerchantProfile, custom?: CustomApiConfig): Promise<any>;
|
|
18
19
|
declare function updateProfile(profile: FdoEInvoiceMerchantProfile, custom?: CustomApiConfig): Promise<any>;
|
|
20
|
+
declare function copyProfile(fromRestaurantId: string, toRestaurantIds: string[], custom?: CustomApiConfig): Promise<FdoEInvoiceRestaurantProfile[]>;
|
|
19
21
|
declare function testSubmit(profile: FdoEInvoiceMerchantProfile, custom?: CustomApiConfig): Promise<boolean>;
|
|
20
22
|
declare function getSettings(businessId: string, custom?: CustomApiConfig): Promise<FdoEInvoiceSetting>;
|
|
21
23
|
declare function updateSettings(settings: FdoEInvoiceSetting, custom?: CustomApiConfig): Promise<FdoEInvoiceSetting>;
|
package/dist/app.js
CHANGED
package/dist/store/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MarketingEInvoice, RestaurantEInvoice } from "@/types";
|
|
2
|
-
import { FdoEInvoiceSetting, FdoFlattenTaxSetting } from "@feedmepos/core/entity";
|
|
2
|
+
import { FdoEInvoiceRestaurantProfile, FdoEInvoiceSetting, FdoFlattenTaxSetting } from "@feedmepos/core/entity";
|
|
3
3
|
export interface AppLoading {
|
|
4
4
|
message: string;
|
|
5
5
|
exec: () => Promise<void> | void;
|
|
@@ -11,7 +11,7 @@ export interface FdtoEInvoiceItemSetting {
|
|
|
11
11
|
reason: string;
|
|
12
12
|
}
|
|
13
13
|
interface AppState {
|
|
14
|
-
restaurants: RestaurantEInvoice
|
|
14
|
+
restaurants: Record<string, RestaurantEInvoice>;
|
|
15
15
|
marketing: MarketingEInvoice | null;
|
|
16
16
|
settings: FdoEInvoiceSetting | null;
|
|
17
17
|
menu: FdtoEInvoiceItemSetting[];
|
|
@@ -23,46 +23,18 @@ export declare const useStore: import("pinia").StoreDefinition<"app", AppState,
|
|
|
23
23
|
taxLevel?: number | null | undefined;
|
|
24
24
|
name: string;
|
|
25
25
|
default: boolean;
|
|
26
|
+
taxCode: string;
|
|
27
|
+
systemCode: string;
|
|
26
28
|
rate: {
|
|
27
29
|
amount: number;
|
|
28
30
|
precision: number;
|
|
29
31
|
};
|
|
30
|
-
taxCode: string;
|
|
31
|
-
systemCode: string;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
exemptedTax(): FdoFlattenTaxSetting | null;
|
|
35
35
|
}, {
|
|
36
|
-
getRestaurants(): Promise<
|
|
37
|
-
|
|
38
|
-
name: string;
|
|
39
|
-
thumbnail: string;
|
|
40
|
-
type: "restaurant";
|
|
41
|
-
profile: {
|
|
42
|
-
active?: string | null | undefined;
|
|
43
|
-
phoneNo?: string | null | undefined;
|
|
44
|
-
queryToken?: string | null | undefined;
|
|
45
|
-
name: string;
|
|
46
|
-
type: "restaurant";
|
|
47
|
-
address: {
|
|
48
|
-
coordinates?: number[] | null | undefined;
|
|
49
|
-
line2?: string | null | undefined;
|
|
50
|
-
state: string;
|
|
51
|
-
country: string;
|
|
52
|
-
line1: string;
|
|
53
|
-
city: string;
|
|
54
|
-
postcode: string;
|
|
55
|
-
};
|
|
56
|
-
email: string;
|
|
57
|
-
_id: string;
|
|
58
|
-
regNo: string;
|
|
59
|
-
sstRegNo: string;
|
|
60
|
-
businessId: string;
|
|
61
|
-
restaurantId: string;
|
|
62
|
-
tinNo: string;
|
|
63
|
-
msicCode: string;
|
|
64
|
-
};
|
|
65
|
-
}[]>;
|
|
36
|
+
getRestaurants(): Promise<Record<string, RestaurantEInvoice>>;
|
|
37
|
+
setRestaurant(profile: FdoEInvoiceRestaurantProfile): void;
|
|
66
38
|
getMarketing(): Promise<void>;
|
|
67
39
|
getSettings(): Promise<void>;
|
|
68
40
|
updateSettings(newSettings: FdoEInvoiceSetting): Promise<void>;
|