@feedmepos/mf-payment 1.5.58-dev → 1.5.59-dev

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.
Files changed (27) hide show
  1. package/dist/{OnboardForm-DvRA8ZFe.js → OnboardForm-JVgZ181b.js} +553 -481
  2. package/dist/{OnboardForm-D-wyJQY9.js → OnboardForm-zsULkQrh.js} +2 -2
  3. package/dist/{OnboardSubmission-DvWwQFy6.js → OnboardSubmission-BvUrpOC3.js} +336 -121
  4. package/dist/{OnboardSubmission-C2BYK2p1.js → OnboardSubmission-CR6o2zIK.js} +25 -25
  5. package/dist/{PayoutAccount-CFlQtAoG.js → PayoutAccount-3zLhh0ti.js} +1 -1
  6. package/dist/{PayoutAccount-NlE9-0J7.js → PayoutAccount-B42ffsVM.js} +1 -1
  7. package/dist/{Terminal-Sfe6Nf9j.js → Terminal-DqSu2QTe.js} +1 -1
  8. package/dist/TerminalSetting-BCVX0Jdf.js +2102 -0
  9. package/dist/{Transaction-hVVgSn4x.js → Transaction-Cuh4qbT0.js} +1 -1
  10. package/dist/api/onboard-submission/index.d.ts +13 -0
  11. package/dist/api/terminal/index.d.ts +1 -0
  12. package/dist/{app-C5xqFDpA.js → app-B9xMyKhl.js} +187 -137
  13. package/dist/app.js +1 -1
  14. package/dist/composable/async-poller/index.d.ts +22 -0
  15. package/dist/index-BteYHCd3.js +63 -0
  16. package/dist/{index-CnN_MV2-.js → index-CQI_8W1T.js} +23 -8
  17. package/dist/index-MdV54cWO.js +58 -0
  18. package/dist/package.json +1 -1
  19. package/dist/{payout-account-CrHhzFPk.js → payout-account-BkGj6HJy.js} +1 -1
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +81 -0
  22. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +2 -2
  23. package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +10 -0
  24. package/dist/views/onboard-submission/tyro-submission-polling.d.ts +27 -0
  25. package/package.json +1 -1
  26. package/dist/TerminalSetting-KjacSx_V.js +0 -1958
  27. package/dist/index-XTdSN6CV.js +0 -60
@@ -0,0 +1,81 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ submission: {
4
+ type: PropType<{
5
+ statusReason?: string | null | undefined;
6
+ rates?: Record<string, number> | null | undefined;
7
+ type: "softspace" | "digipay" | "ntt" | "tyro";
8
+ status: "pending" | "submitted" | "rejected" | "approved" | "ready";
9
+ _id: string;
10
+ updatedAt: string;
11
+ profile: {
12
+ legalName?: string | null | undefined;
13
+ name: string;
14
+ email: string;
15
+ phoneNo: string;
16
+ };
17
+ restaurantId: string;
18
+ fields: Record<string, string>;
19
+ documents: Record<string, string>;
20
+ }>;
21
+ required: true;
22
+ };
23
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
+ "update:submission": (submission: {
25
+ statusReason?: string | null | undefined;
26
+ rates?: Record<string, number> | null | undefined;
27
+ type: "softspace" | "digipay" | "ntt" | "tyro";
28
+ status: "pending" | "submitted" | "rejected" | "approved" | "ready";
29
+ _id: string;
30
+ updatedAt: string;
31
+ profile: {
32
+ legalName?: string | null | undefined;
33
+ name: string;
34
+ email: string;
35
+ phoneNo: string;
36
+ };
37
+ restaurantId: string;
38
+ fields: Record<string, string>;
39
+ documents: Record<string, string>;
40
+ }) => any;
41
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ submission: {
43
+ type: PropType<{
44
+ statusReason?: string | null | undefined;
45
+ rates?: Record<string, number> | null | undefined;
46
+ type: "softspace" | "digipay" | "ntt" | "tyro";
47
+ status: "pending" | "submitted" | "rejected" | "approved" | "ready";
48
+ _id: string;
49
+ updatedAt: string;
50
+ profile: {
51
+ legalName?: string | null | undefined;
52
+ name: string;
53
+ email: string;
54
+ phoneNo: string;
55
+ };
56
+ restaurantId: string;
57
+ fields: Record<string, string>;
58
+ documents: Record<string, string>;
59
+ }>;
60
+ required: true;
61
+ };
62
+ }>> & Readonly<{
63
+ "onUpdate:submission"?: ((submission: {
64
+ statusReason?: string | null | undefined;
65
+ rates?: Record<string, number> | null | undefined;
66
+ type: "softspace" | "digipay" | "ntt" | "tyro";
67
+ status: "pending" | "submitted" | "rejected" | "approved" | "ready";
68
+ _id: string;
69
+ updatedAt: string;
70
+ profile: {
71
+ legalName?: string | null | undefined;
72
+ name: string;
73
+ email: string;
74
+ phoneNo: string;
75
+ };
76
+ restaurantId: string;
77
+ fields: Record<string, string>;
78
+ documents: Record<string, string>;
79
+ }) => any) | undefined;
80
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
+ export default _default;
@@ -1,5 +1,5 @@
1
- import { type FdoTerminal } from '@feedmepos/payment-entity';
2
- import { type PropType } from 'vue';
1
+ import { type FdoTerminal } from "@feedmepos/payment-entity";
2
+ import { type PropType } from "vue";
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  terminal: {
5
5
  type: PropType<{
@@ -0,0 +1,10 @@
1
+ import { type FdoTerminal } from '@feedmepos/payment-entity';
2
+ import { type Ref } from 'vue';
3
+ export declare function useTyroSoftposGateway(terminal: Ref<FdoTerminal>): {
4
+ isLoading: Ref<boolean, boolean>;
5
+ isPollingTyroReader: Ref<boolean, boolean>;
6
+ uniqueId: import("vue").ComputedRef<string>;
7
+ canSyncTyroReader: import("vue").ComputedRef<boolean>;
8
+ tyroSyncButtonLabel: import("vue").ComputedRef<"Synced" | "Sync">;
9
+ syncTyroReader: () => Promise<void>;
10
+ };
@@ -0,0 +1,27 @@
1
+ import type { Ref } from 'vue';
2
+ import type { FdoOnboardSubmission } from '@feedmepos/payment-entity';
3
+ export type TyroSubmissionSnapshot = {
4
+ exists: boolean;
5
+ id: string | null;
6
+ status: FdoOnboardSubmission['status'] | null;
7
+ };
8
+ type CreateTyroSubmissionPollerParams = {
9
+ fetchSubmissions: () => Promise<void>;
10
+ getCurrentSubmission: () => FdoOnboardSubmission | undefined;
11
+ loadTyroLocations: () => Promise<void>;
12
+ onApproved: () => void;
13
+ onRejected: () => void;
14
+ onTimeout: () => void;
15
+ onError: (error: unknown) => void;
16
+ intervalMs?: number;
17
+ timeoutMs?: number;
18
+ };
19
+ type TyroSubmissionPoller = {
20
+ isPolling: Ref<boolean>;
21
+ start: (baseline?: TyroSubmissionSnapshot) => void;
22
+ stop: () => void;
23
+ };
24
+ export declare function captureTyroSubmissionSnapshot(submission?: FdoOnboardSubmission | null): TyroSubmissionSnapshot;
25
+ export declare function hasTyroSubmissionChanged(baseline: TyroSubmissionSnapshot, submission?: FdoOnboardSubmission | null): boolean;
26
+ export declare function createTyroSubmissionPoller({ fetchSubmissions, getCurrentSubmission, loadTyroLocations, onApproved, onRejected, onTimeout, onError, intervalMs, timeoutMs, }: CreateTyroSubmissionPollerParams): TyroSubmissionPoller;
27
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.58-dev",
3
+ "version": "1.5.59-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"