@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.41
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/{ApprovalView-xF73Z1jN.js → ApprovalView-DKqwRFlF.js} +25 -26
- package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-CtMSqEuE.js} +9 -9
- package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-DCLNF1PL.js} +22 -22
- package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-6ndQuHeA.js} +1 -1
- package/dist/ClosingTemplateView-BPrDQ_8-.js +1688 -0
- package/dist/FmDroppableField-DQFPEiJn.js +152 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js +359 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js +51 -0
- package/dist/IngredientsView-B1jGkWYN.js +1611 -0
- package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-Bu0waSjB.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-DTQViYuX.js} +7 -7
- package/dist/ReceiveRequestView-CNRixgQu.js +4069 -0
- package/dist/RecipeView-HStPC5pE.js +591 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-JO3NtkX9.js +7762 -0
- package/dist/{SupplierView-TYCkPXan.js → SupplierView-gtaS4K3U.js} +111 -111
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js +1146 -0
- package/dist/TransferTemplateView-C0pjLfbz.js +2054 -0
- package/dist/{UnitView-B9yE4-rc.js → UnitView-dbInWUk4.js} +18 -18
- package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-BlTBvLF0.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +72 -85
- package/dist/api/netsuite.d.ts +47 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/{app-w8TOQVZc.js → app-TB3IWuaU.js} +24520 -23671
- package/dist/app.d.ts +7 -0
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/{decimal-C4q7UMfr.js → decimal-BRAYgPnN.js} +1 -1
- package/dist/defineDeepModel-DrEk5Fhq.js +13 -0
- package/dist/format-time-from-id-kpVYfVQb.js +15 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-ZMNa__2l.js +348 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +85 -0
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/netsuite.d.ts +69 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/style.css +1 -1
- package/dist/supplier-CJcqHpaM.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-DyD24laW.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BggStaH1.js → xlsx-Dd5ckm6-.js} +1525 -1525
- package/dist/xlsx.util-qlqvEcJz.js +78 -0
- package/package.json +7 -5
- package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
- package/dist/IngredientsView-DnwwQJTN.js +0 -1758
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
- package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
- package/dist/RecipeView-BHkTgm5H.js +0 -581
- package/dist/StockView-iczCFYxn.js +0 -1892
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
- package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
- package/dist/defineDeepModel-BOApqV24.js +0 -13
- package/dist/format-time-from-id-Cafjo8fn.js +0 -15
- package/dist/id-to-date-CtSHSVJF.js +0 -30
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
- package/dist/supplier-CM-vZ4bQ.js +0 -69
- package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
- package/dist/xlsx.util-CqlYZLKW.js +0 -109
- /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
1
2
|
export interface RecentPublish {
|
|
2
3
|
recentJob?: PublishingJob | null;
|
|
3
4
|
publishedRevs?: FdoClosingTemplatePublish['publishedRev'] | null;
|
|
@@ -13,9 +14,10 @@ export interface PublishingJob {
|
|
|
13
14
|
export declare const useClosingTemplateApi: () => {
|
|
14
15
|
getRecentPublishingJob(): Promise<RecentPublish>;
|
|
15
16
|
startNewPublish(): Promise<PublishingJob>;
|
|
16
|
-
getTemplate(id: string): Promise<FdoClosingTemplate>;
|
|
17
|
-
readTemplates(): Promise<FdoClosingTemplate[]>;
|
|
17
|
+
getTemplate(id: string): Promise<FdoClosingTemplate & RevisionIdMeta>;
|
|
18
|
+
readTemplates(): Promise<(FdoClosingTemplate & RevisionIdMeta)[]>;
|
|
18
19
|
createTemplate(template: Omit<FdoClosingTemplate, '_id'>): Promise<FdoClosingTemplate>;
|
|
19
|
-
updateTemplate(template: FdoClosingTemplate): Promise<FdoClosingTemplate>;
|
|
20
|
-
deleteTemplate(template: FdoClosingTemplate): Promise<any>;
|
|
20
|
+
updateTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<FdoClosingTemplate>;
|
|
21
|
+
deleteTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<any>;
|
|
22
|
+
importTemplates(templates: Array<(FdoClosingTemplate & RevisionIdMeta) | Omit<FdoClosingTemplate, '_id'>>): Promise<any>;
|
|
21
23
|
};
|
package/dist/api/inventory.d.ts
CHANGED
|
@@ -1,94 +1,18 @@
|
|
|
1
1
|
import { type WithRev } from '@/api/type';
|
|
2
2
|
export declare const useInventoryApi: () => {
|
|
3
|
-
readInventoryLocations(): Promise<
|
|
4
|
-
|
|
5
|
-
type: "restaurant";
|
|
6
|
-
name: string;
|
|
7
|
-
acceptRequest: boolean;
|
|
8
|
-
dbName: string;
|
|
9
|
-
} | {
|
|
10
|
-
type: "warehouse";
|
|
3
|
+
readInventoryLocations(): Promise<{
|
|
4
|
+
type: "restaurant" | "warehouse";
|
|
11
5
|
name: string;
|
|
12
6
|
acceptRequest: boolean;
|
|
13
7
|
dbName: string;
|
|
14
8
|
doc: {
|
|
15
|
-
pf_business?: {
|
|
16
|
-
internal?: boolean | null | undefined;
|
|
17
|
-
url?: string | null | undefined;
|
|
18
|
-
expiredAt?: string | null | undefined;
|
|
19
|
-
agentId?: string | null | undefined;
|
|
20
|
-
restaurantTagGroups?: {
|
|
21
|
-
name: string;
|
|
22
|
-
id: string;
|
|
23
|
-
tags: {
|
|
24
|
-
name: string;
|
|
25
|
-
id: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[] | null | undefined;
|
|
28
|
-
pf_agent?: {
|
|
29
|
-
clickupId?: string | null | undefined;
|
|
30
|
-
members?: {
|
|
31
|
-
pf_user?: {
|
|
32
|
-
email?: string | null | undefined;
|
|
33
|
-
phoneNumber?: string | null | undefined;
|
|
34
|
-
birthday?: string | null | undefined;
|
|
35
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
36
|
-
addresses?: {
|
|
37
|
-
name: string;
|
|
38
|
-
address: string;
|
|
39
|
-
coordinates: number[];
|
|
40
|
-
}[] | null | undefined;
|
|
41
|
-
photoURL?: string | null | undefined;
|
|
42
|
-
displayName?: string | null | undefined;
|
|
43
|
-
imported?: {
|
|
44
|
-
raw: Record<string, any>;
|
|
45
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
46
|
-
} | null | undefined;
|
|
47
|
-
_id: string;
|
|
48
|
-
} | null | undefined;
|
|
49
|
-
role: "ADMIN";
|
|
50
|
-
userId: string;
|
|
51
|
-
}[] | null | undefined;
|
|
52
|
-
code: string;
|
|
53
|
-
name: string;
|
|
54
|
-
_id: string;
|
|
55
|
-
isReseller: boolean;
|
|
56
|
-
} | null | undefined;
|
|
57
|
-
thumbnail?: string | null | undefined;
|
|
58
|
-
billingInfos?: {
|
|
59
|
-
_id?: string | null | undefined;
|
|
60
|
-
name: string;
|
|
61
|
-
address: {
|
|
62
|
-
coordinates?: number[] | null | undefined;
|
|
63
|
-
line2?: string | null | undefined;
|
|
64
|
-
state: string;
|
|
65
|
-
country: string;
|
|
66
|
-
line1: string;
|
|
67
|
-
city: string;
|
|
68
|
-
postcode: string;
|
|
69
|
-
};
|
|
70
|
-
email: string;
|
|
71
|
-
companyName: string;
|
|
72
|
-
contact: string;
|
|
73
|
-
}[] | null | undefined;
|
|
74
|
-
customerDisplayImages?: {
|
|
75
|
-
url: string;
|
|
76
|
-
restaurantIds: string[];
|
|
77
|
-
}[] | null | undefined;
|
|
78
|
-
name: string;
|
|
79
|
-
_id: string;
|
|
80
|
-
ownerId: string;
|
|
81
|
-
restaurantQuota: number;
|
|
82
|
-
warehouseQuota: number;
|
|
83
|
-
menuVersion: string;
|
|
84
|
-
} | null | undefined;
|
|
85
9
|
_id: string;
|
|
86
10
|
businessId: string;
|
|
87
11
|
profile: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
name
|
|
91
|
-
address
|
|
12
|
+
code?: string | null | undefined;
|
|
13
|
+
_id?: string | null | undefined;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
address?: {
|
|
92
16
|
coordinates?: number[] | null | undefined;
|
|
93
17
|
line2?: string | null | undefined;
|
|
94
18
|
state: string;
|
|
@@ -96,11 +20,73 @@ export declare const useInventoryApi: () => {
|
|
|
96
20
|
line1: string;
|
|
97
21
|
city: string;
|
|
98
22
|
postcode: string;
|
|
99
|
-
};
|
|
100
|
-
|
|
23
|
+
} | undefined;
|
|
24
|
+
email?: string | undefined;
|
|
25
|
+
regNo?: string | undefined;
|
|
26
|
+
sstRegNo?: string | null | undefined;
|
|
27
|
+
phoneNo?: string | undefined;
|
|
28
|
+
legalName?: string | null | undefined;
|
|
29
|
+
discovery?: boolean | null | undefined;
|
|
30
|
+
coverPhoto?: string | null | undefined;
|
|
31
|
+
thumbnailPhoto?: string | null | undefined;
|
|
32
|
+
description?: string | null | undefined;
|
|
33
|
+
photos?: string[] | null | undefined;
|
|
34
|
+
operatingHours?: {
|
|
35
|
+
0: {
|
|
36
|
+
hours: {
|
|
37
|
+
end: string;
|
|
38
|
+
start: string;
|
|
39
|
+
}[];
|
|
40
|
+
enable: boolean;
|
|
41
|
+
};
|
|
42
|
+
2: {
|
|
43
|
+
hours: {
|
|
44
|
+
end: string;
|
|
45
|
+
start: string;
|
|
46
|
+
}[];
|
|
47
|
+
enable: boolean;
|
|
48
|
+
};
|
|
49
|
+
1: {
|
|
50
|
+
hours: {
|
|
51
|
+
end: string;
|
|
52
|
+
start: string;
|
|
53
|
+
}[];
|
|
54
|
+
enable: boolean;
|
|
55
|
+
};
|
|
56
|
+
3: {
|
|
57
|
+
hours: {
|
|
58
|
+
end: string;
|
|
59
|
+
start: string;
|
|
60
|
+
}[];
|
|
61
|
+
enable: boolean;
|
|
62
|
+
};
|
|
63
|
+
4: {
|
|
64
|
+
hours: {
|
|
65
|
+
end: string;
|
|
66
|
+
start: string;
|
|
67
|
+
}[];
|
|
68
|
+
enable: boolean;
|
|
69
|
+
};
|
|
70
|
+
5: {
|
|
71
|
+
hours: {
|
|
72
|
+
end: string;
|
|
73
|
+
start: string;
|
|
74
|
+
}[];
|
|
75
|
+
enable: boolean;
|
|
76
|
+
};
|
|
77
|
+
6: {
|
|
78
|
+
hours: {
|
|
79
|
+
end: string;
|
|
80
|
+
start: string;
|
|
81
|
+
}[];
|
|
82
|
+
enable: boolean;
|
|
83
|
+
};
|
|
84
|
+
} | null | undefined;
|
|
85
|
+
tags?: string[] | null | undefined;
|
|
86
|
+
url?: string | null | undefined;
|
|
101
87
|
};
|
|
102
88
|
};
|
|
103
|
-
}
|
|
89
|
+
}[]>;
|
|
104
90
|
readInventory(): Promise<WithRev<{
|
|
105
91
|
unit?: {
|
|
106
92
|
_id: string;
|
|
@@ -412,6 +398,7 @@ export declare const useInventoryApi: () => {
|
|
|
412
398
|
}>>;
|
|
413
399
|
urls: {
|
|
414
400
|
portalBackendUrl: string;
|
|
401
|
+
netSuiteBackendUrl: string;
|
|
415
402
|
businessesBackendUrl: string;
|
|
416
403
|
inventoryBackendUrl: string;
|
|
417
404
|
foodMarketHubUrl: string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const useNetSuiteApi: () => {
|
|
2
|
+
readSetting(): Promise<{
|
|
3
|
+
accessToken?: string | null | undefined;
|
|
4
|
+
syncedAt?: string | null | undefined;
|
|
5
|
+
_id: string;
|
|
6
|
+
items: {
|
|
7
|
+
id: string;
|
|
8
|
+
netSuiteId: string;
|
|
9
|
+
unitTypeId: string;
|
|
10
|
+
unitOfMeasureId: string;
|
|
11
|
+
subsidiaryIds: string[];
|
|
12
|
+
}[];
|
|
13
|
+
enable: boolean;
|
|
14
|
+
locations: {
|
|
15
|
+
type: "restaurant" | "warehouse";
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
netSuiteId: string;
|
|
19
|
+
subsidiaryId: string;
|
|
20
|
+
}[];
|
|
21
|
+
units: {
|
|
22
|
+
id: string;
|
|
23
|
+
measurements: {
|
|
24
|
+
id: string;
|
|
25
|
+
netSuiteId: string;
|
|
26
|
+
}[];
|
|
27
|
+
netSuiteId: string;
|
|
28
|
+
}[];
|
|
29
|
+
subsidiaries: {
|
|
30
|
+
parentId?: string | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
country: string;
|
|
34
|
+
currency: string;
|
|
35
|
+
}[];
|
|
36
|
+
realm: string;
|
|
37
|
+
}>;
|
|
38
|
+
urls: {
|
|
39
|
+
portalBackendUrl: string;
|
|
40
|
+
netSuiteBackendUrl: string;
|
|
41
|
+
businessesBackendUrl: string;
|
|
42
|
+
inventoryBackendUrl: string;
|
|
43
|
+
foodMarketHubUrl: string;
|
|
44
|
+
menuV4BackendUrl: string;
|
|
45
|
+
dataBackendUrl: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
1
2
|
export declare const usePurchaseOrderTemplateApi: () => {
|
|
2
|
-
getTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
|
|
3
|
-
|
|
4
|
-
getBusinessTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
|
|
5
|
-
readTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
6
|
-
readLocationTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
7
|
-
readBusinessTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
|
|
3
|
+
getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
|
|
4
|
+
readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
|
|
8
5
|
createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
|
|
9
6
|
updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
|
|
10
7
|
deleteTemplate(template: FdoPurchaseOrderTemplate): Promise<any>;
|
|
8
|
+
importTemplates(templates: Array<(FdoPurchaseOrderTemplate & RevisionIdMeta) | Omit<FdoPurchaseOrderTemplate, '_id'>>): Promise<any>;
|
|
11
9
|
};
|